{"url": "http://www.enterpriseintegrationpatterns.com/", "titulek": "Home - Enterprise Integration Patterns", "h1": "", "popis": "Enterprise Integration Patterns", "klicova_slova": "eai, soa, esb, service, patterns, enterprise, integration, messaging, middleware, eai patterns, soa patterns, enterprise integration, service bus, rest", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "website", "og:site_name": "Enterprise Integration Patterns", "og:title": "Home - Enterprise Integration Patterns", "og:description": "A comprehensive pattern language for the robust design of asynchronous messaging solutions. The patterns stay product neutral and emphasize design trade-offs over specific technology choices.", "og:url": "https://www.enterpriseintegrationpatterns.com/", "og:image": "https://www.enterpriseintegrationpatterns.com/img/eip1_patterns.png"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Patterns and Best Practices for Asynchronous Messaging"}, {"uroven": 2, "text": "Messaging Patterns in Today's World: Microservices and Serverless"}, {"uroven": 2, "text": "New Book: Platform Strategy"}, {"uroven": 2, "text": "Book: The Software Architect Elevator"}, {"uroven": 2, "text": "Work-in-progress: Conversation Patterns"}, {"uroven": 2, "text": "What Makes Integration Difficult?"}, {"uroven": 2, "text": "Asynchronous Messaging Architectures"}, {"uroven": 2, "text": "How can Patterns Help?"}, {"uroven": 2, "text": "What am I Reading Right Now?"}], "markdown": "## Patterns and Best Practices for Asynchronous Messaging\n\nBuy on\n\nToday's applications rarely live in isolation. Users expect instant access across all functions, which may reside in disparate applications or third-party services. However, building distributed and integrated applications requires developers to tackle asynchrony, partial failures, incompatible data models, API drift, and much more.\n\nThis [pattern language consisting of 65 integration patterns](/patterns/messaging) helps developers design and build distributed applications or integrate existing ones. The patterns provide a technology-independent vocabulary and visual notation harvested from proven solutions to recurring problems. They also share common \"gotchas\" and design considerations. Besides receiving [numerous accolades](/praise.html), the patterns spurred the development of a whole generation of open source Enterprise Service Bus (ESB) implementations, such as Apache Camel, Mule, WSO2, Oracle Service Bus, Open ESB, SonicESB, or Fuse ServiceMix.\n\nBuy the book [Enterprise Integration Patterns](http://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20) or read a [sample chapter](docs/EnterpriseIntegrationPatterns_HohpeWoolf_ch03.pdf) first. Find the most recent content in [my blog](/ramblings) or [articles](/articles.html).\n\n## Messaging Patterns in Today's World: Microservices and Serverless\n\nWhen Bobby Woolf and I started to document the patterns 20 years ago, the key technologies for distributed applications were JMS, SOAP, MSMQ, and .NET WCF. Large-scale application integration was done with integration tools and platforms, such as IBM WebSphere MQ, TIBCO, WebMethods (now Software AG), or Microsoft BizTalk. Although technology has evolved, many of these products still form the backbone of modern enterprises.\n\nCloud platforms and deployment automation have laid the foundation for a new generation of distributed systems: microservices and serverless architectures. Those applications rely on a smooth interconnect between components, giving rise to Service Meshes, Serverless Orchestrators, and Event Buses. Amazingly, we find the same integration patterns in those systems! That's why this site contains [many modern examples for integration patterns](/ramblings/eip1_examples_updated.html):\n\n- [Serverless Loan Broker Implementation with AWS Step Functions](/ramblings/loanbroker_stepfunctions.html)\n- [Serverless Loan Broker Implementation with GCP Workflows](/ramblings/loanbroker_gcp_workflows.html)\n- [Modern Examples and Implementations](/ramblings/eip1_examples_updated.html)\n- [Serverless Integration Patterns on Google Cloud](/ramblings/google_cloud_functions.html)\n\n## New Book: [Platform Strategy](https://PlatformStrategyBook.info)\n\nAlmost every IT strategy these days includes some element of platform strategy. And that's no surprise: platforms appear to be able to rewrite the laws of IT physics. They boost innovation despite (or perhaps due to) standardizing; they speed up developers while assuring compliance; and they reduce cognitive load without restricting choice.\n\nAs one might guess, building such an in-house platform, or even deploying one, is far from easy. Many organizations end up with something that’s outdated by the time it’s launched, restricts rather than enables users, and faces a certain demise when its use is mandated in a last-ditch effort to make the economics work.\n\nHarvested from a decade of building successful in-house platforms and enabling enterprises to utilize cloud platforms, this book provides a fresh look at what makes IT platforms work, why they are different from other IT services, and how you can use them to boost developer productivity. Get a paper copy on [Amazon](https://amzn.to/3WpMVm0) or the ebook from [Leanpub](https://leanpub.com/platformstrategy/c/eip) (Kindle, PDF).\n\n## Book: [The Software Architect Elevator](https://amzn.to/3egsIr5)\n\nModern architects must do more than draw UML diagrams and recite architectural styles. Rather than focus on technical decisions alone, architects and senior technologists need to combine organizational and technical knowledge to help transform their company’s structure and processes. That's why successful architects are those who connect the IT engine room, where the technical reality is defined, to the organization's penthouse, where the business strategy is set.\n\nThis books equips architects and IT leaders with the technical, communication, and organizational skills to be successfully in modern enterprises. Available now on [Amazon](https://amzn.to/3egsIr5')) and anywhere where books are sold.\n\n## Work-in-progress: [Conversation Patterns](/patterns/conversation)\n\nAsynchronous messaging is the foundation for most integration solution because its architectural style acknowledges the challenges of distributed communication, such as latency or partial failure. However, many interactions between systems extend beyond sending a single, stateless message: a request may expect a response; a handshake or authentication are needed first; a reservation is confirmed or expires. Such *conversations*, stateful exchanges between participants, present new design challenges and patterns. I therefore started documenting [Conversation Patterns](/patterns/conversation), which are the starting point for *Enterprise Integration Patterns 2*.\n\n## What Makes Integration Difficult?\n\nArchitecting integration solutions is a complex task. There are many conflicting drivers and even more possible 'right' solutions. Whether the architecture was in fact a good choice usually is not known until many months or even years later, when inevitable changes and additions put the original architecture to test. Unfortunately, there is no \"cookbook\" for enterprise integration solutions. Most integration vendors provide methodologies and best practices, but these instructions tend to be very much geared towards the vendor-provided tool set and often lack treatment of the bigger picture, including underlying guidelines, principles and best practices.\n\n## Asynchronous Messaging Architectures\n\nAsynchronous messaging architectures have proven to be the best strategy for enterprise integration because they allow for a loosely coupled solution that overcomes the limitations of remote communication, such as latency and unreliability. That's why most EAI suites and ESB's are based on asynchronous messaging. Unfortunately, asynchronous messaging is not without pitfalls. Many of the assumptions that hold true when developing single, synchronous applications are no longer valid. Vendor-independent design guidance helps developers avoid these pitfalls so they can build robust integration architectures based on asynchronous messaging.\n\n## How can Patterns Help?\n\nPatterns are a proven way to capture experts' knowledge where no simple “one size fits all” answers exist, for example in application architecture, object-oriented design, or message-oriented integration . Each pattern tackles a specific problem by discussing design considerations and presenting an elegant solution that balances often conflicting forces. The solution is not the first approach that comes to mind, but one that has evolved through actual use over time, capturing the experience that senior developers and architects have gained by repeatedly building solutions and learning from their mistakes.\n\n## What am I Reading Right Now?\n\n[Modern Software Engineering: Doing What Works to Build Better Software Faster](https://amzn.to/3s9VFgL) , Dave Farley, 2021\n\nThe \"father of continuous delivery\" distills the concepts behind modern software delivery, such as modularity, feedback, coupling. A must-read for every modern software engineer.\n\n[Practical Process Automation: Orchestration and Integration in Microservices and Cloud Native Architectures](https://amzn.to/3HlQkcx) , Ruecker, 2021\n\nProcess automation is no longer the domain of large-scale business processes but an integral part of modern application architecture. This books shows you where the two meet.\n\n[System Architecture: Strategy and Product Development for Complex Systems](https://amzn.to/3saiaCj) , Crawley, Cameron, Selva, Addison-Wesley 2015\n\nA tour de force on designing complex systems with a special emphasis on decomposition and logical relationships, augmented by a list of System Architecture Principles. Most examples drawing on non-IT domains helps convey the concepts without getting lost in technology debates and makes it worth the price.", "znaku_textu": 8463, "slov": 1118, "odkazu": 142, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 07:41:53", "sha256": "074c32eb64d9ef79bec751994ec70f45664cf3c53229d4fbd469715bcfff3fe3", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://www.infoq.com/presentations/hohpe-soa-conversations", "http://www.infoq.com/", "http://www.infoq.com/presentations/hohpe-soa-development", "http://www.drdobbs.com/an-asynchronous-world/184415001", "https://sites.google.com/site/gcodejp/slides/ProgrammingCloud_QCon.pdf", "http://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "https://platformstrategybook.info/", "https://amzn.to/3WpMVm0", "https://leanpub.com/platformstrategy/c/eip", "https://amzn.to/3egsIr5", "https://amzn.to/3egsIr5')", "https://amzn.to/3s9VFgL", "https://amzn.to/3HlQkcx", "https://amzn.to/3saiaCj"]} {"url": "http://www.enterpriseintegrationpatterns.com/Aggregator.html", "titulek": "Aggregator - Enterprise Integration Patterns", "h1": "", "popis": "How do we combine the results of individual, but related messages so that they can be processed as a whole?", "klicova_slova": "Aggregator,integration, messaging, events, patterns, event-driven, coupling, eai, middleware, application integration, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns", "og:title": "Aggregator - Enterprise Integration Patterns", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/Aggregator.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/Aggregator.gif"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Example: Serverless Loan Broker on AWSNEW"}, {"uroven": 2, "text": "Example: Serverless Loan Broker on GCPNEW"}, {"uroven": 2, "text": "Integration Pattern Language"}], "markdown": "| | Aggregator[Messaging Patterns](index.html) » [Message Routing](MessageRoutingIntro.html) | [Contents](toc.html)[⇐ Prev](Sequencer.html)[Next ⇒](Resequencer.html) |\n| --- | --- | --- |\n\nA [*Splitter*](Sequencer.html) is useful to break out a single message into a sequence of sub-messages that can be processed individually. Likewise, a [*Recipient List*](RecipientList.html) or a [*Publish-Subscribe Channel*](PublishSubscribeChannel.html) is useful to forward a request message to multiple recipients in parallel in order to get multiple responses to choose from. In most of these scenarios, the further processing depends on successful processing of the sub-messages. For example, we want to select the best bid from a number of vendor responses or we want to bill the client for an order after all items have been pulled from the warehouse.\n\nHow do we combine the results of individual, but related messages so that they can be processed as a whole?\n\nUse a stateful filter, an *Aggregator*, to collect and store individual messages until a complete set of related messages has been received. Then, the *Aggregator* publishes a single message distilled from the individual messages.\n\nThe *Aggregator* is a special *Filter* that receives a stream of messages and identifies messages that are correlated. Once a complete set of messages has been received (more on how to decide when a set is 'complete' below), the *Aggregator* collects information from each correlated message and publishes a single, aggregated message to the output channel for further processing.\n\nWhen designing an *Aggregator*, we need to specify the following items:\n\n- **Correlation** - which incoming messages belong together?\n- **Completeness Condition** - when are we ready to publish the result message?\n- **Aggregation Algorithm** - how do we combine the received messages into a single result message?\n\nThere are a number of strategies for aggregator completeness conditions. The available strategies primarily depend on whether we know how many messages to expect or not. The *Aggregator* could know the number of sub-messages to expect because it received a copy of the original composite message or because each individual message contains the total count (as described in the [*Splitter*](Sequencer.html) example). Depending on how much the *Aggregator* knows about the message stream, the most common strategies are as follows:\n\n- **\"Wait for All\"** Wait until all responses are received. This scenario is most likely in the order example we discussed earlier. An incomplete order may not be meaningful. So if not all items are received within a certain time-out period an error condition should be raised by the *Aggregator* . This approach may give us the best basis for decision-making, but may also be the slowest and most brittle (plus we need to know how many messages to expect). A single missing or delayed message will prevent further processing of the whole aggregate. Resolving such error conditions can be a complicated matter in loosely-coupled asynchronous systems because the asynchronous flow of messages makes it hard to reliably detect error conditions (how long should we wait before a message is \"missing\"?). One way to deal with missing messages is to re-request the message. However, this approach requires the *Aggregator* to know the source of the message, which may introduce additional dependencies between the *Aggregator* and other components.\n- **\"Time Out\"** Wait for a specified length of time for responses and then make a decision by evaluating those responses received within that time limit. If no responses are received, the system may report an exception or retry. This heuristic is useful if incoming responses are scored and only the message (or a small number of messages) with the highest score is used. This approach is common in \"bidding\" scenarios.\n- **\"First Best\"** Wait only until the first (fastest) response is received and ignore all other responses. This approach is the fastest, but ignores a lot of information. It may be practical in a bidding or quoting scenario where response time is critical.\n- **\"Time Out with Override\"** Wait for a specified amount of time or until a message with a preset minimum score has been received. In this scenario, we are willing to abort early if we find a very favorable response; otherwise, we keep on going until time is up. If no clear winner was found at that point, rank ordering among all the messages received so far occurs.\n- **\"External Event\"** Sometimes the aggregation is concluded by the arrival of an external business event. For example, in the financial industry, the end of the trading day may signal the end of an aggregation of incoming price quotes. Using a fixed timer for such an event reduces flexibility because it does not other variability. Also, a designated business even in form of an [*Event Message*](EventMessage.html) allows for central control of the system. The *Aggregator* can listen for the [*Event Message*](EventMessage.html) on a special control channel or receive a specially formatted message that indicates the end of the aggregation.\n\n...\nRead the entire pattern in the book [Enterprise Integration Patterns](/books1.html)\n\n## Example: Serverless Loan Broker on AWS[NEW](/ramblings/eip1_examples_updated.html)\n\nThe [modern implementation of the Loan Broker using AWS serverless constructs](/ramblings/loanbroker_stepfunctions_pubsub.html#aggregator) includes an implementation of a *Aggregator* with Lambda and DynamoDB. The *Aggregator* uses a simple completeness condition of waiting for a minimum number of answers. The surrounding workflow, implemented using AWS Step Functions, adds a time-out component.\n\n## Example: Serverless Loan Broker on GCP[NEW](/ramblings/eip1_examples_updated.html)\n\nThe [modern implementation of the Loan Broker using GCP](/ramblings/loanbroker_gcp_workflows.html) includes an implementation of a *Aggregator* with a Cloud Function and Datastore. The implementation stores all elements of a specific Aggregate under the same key and can therefore fail when inserting the record (Datastore doesn't seem to like heavy contention on one record). It therefore configures retry logic on the incoming messages. The *Aggregator* signals back to the [*Process Manager*](ProcessManager.html) on completion.\n\n**Related patterns:**\n\n[*Scatter-Gather*](BroadcastAggregate.html), [*Introduction to Composed Messaging Examples*](ComposedMessagingExample.html), [*Content-Based Router*](ContentBasedRouter.html), [*Control Bus*](ControlBus.html), [*Correlation Identifier*](CorrelationIdentifier.html), [*Composed Message Processor*](DistributionAggregate.html), [*Event-Driven Consumer*](EventDrivenConsumer.html), [*Event Message*](EventMessage.html), [*Guaranteed Delivery*](GuaranteedMessaging.html), [*Message Expiration*](MessageExpiration.html), [*Point-to-Point Channel*](PointToPointChannel.html), [*Process Manager*](ProcessManager.html), [*Publish-Subscribe Channel*](PublishSubscribeChannel.html), [*Recipient List*](RecipientList.html), [*Resequencer*](Resequencer.html), [*Splitter*](Sequencer.html), [*Transactional Client*](TransactionalClient.html)\n\n---\n\n## Integration Pattern Language\n\n[Message Construct.](MessageConstructionIntro.html)\n\n[Message](Message.html)\n\n[Command Message](CommandMessage.html)\n\n[Document Message](DocumentMessage.html)\n\n[Event Message](EventMessage.html)\n\n[Request-Reply](RequestReply.html)\n\n[Return Address](ReturnAddress.html)\n\n[Correlation Identifier](CorrelationIdentifier.html)\n\n[Message Sequence](MessageSequence.html)\n\n[Message Expiration](MessageExpiration.html)\n\n[Format Indicator](FormatIndicator.html)\n\n[Message Routing](MessageRoutingIntro.html)\n\n[Pipes-and-Filters](PipesAndFilters.html)\n\n[Message Router](MessageRouter.html)\n\n[Content-based Router](ContentBasedRouter.html)\n\n[Message Filter](Filter.html)\n\n[Dynamic Router](DynamicRouter.html)\n\n[Recipient List](RecipientList.html)\n\n[Splitter](Sequencer.html)\n\n[Aggregator](Aggregator.html)\n\n[Resequencer](Resequencer.html)\n\n[Composed Msg. Processor](DistributionAggregate.html)\n\n[Scatter-Gather](BroadcastAggregate.html)\n\n[Routing Slip](RoutingTable.html)\n\n[Process Manager](ProcessManager.html)\n\n[Message Broker](MessageBroker.html)\n\n[Message\nTransformation](MessageTransformationIntro.html)\n\n[Message Translator](MessageTranslator.html)\n\n[Envelope Wrapper](EnvelopeWrapper.html)\n\n[Content Enricher](DataEnricher.html)\n\n[Content Filter](ContentFilter.html)\n\n[Claim Check](StoreInLibrary.html)\n\n[Normalizer](Normalizer.html)\n\n[Canonical Data Model](CanonicalDataModel.html)\n\n[Messaging Endpoints](MessagingEndpointsIntro.html)\n\n[Message Endpoint](MessageEndpoint.html)\n\n[Messaging Gateway](MessagingGateway.html)\n\n[Messaging Mapper](MessagingMapper.html)\n\n[Transactional Client](TransactionalClient.html)\n\n[Polling Consumer](PollingConsumer.html)\n\n[Event-driven Consumer](EventDrivenConsumer.html)\n\n[Competing Consumers](CompetingConsumers.html)\n\n[Message Dispatcher](MessageDispatcher.html)\n\n[Selective Consumer](MessageSelector.html)\n\n[Durable Subscriber](DurableSubscription.html)\n\n[Idempotent Receiver](IdempotentReceiver.html)\n\n[Service Activator](MessagingAdapter.html)\n\n[Messaging Channels](MessagingChannelsIntro.html)\n\n[Message Channel](MessageChannel.html)\n\n[Point-to-Point Channel](PointToPointChannel.html)\n\n[Publish-Subscr. Channel](PublishSubscribeChannel.html)\n\n[Datatype Channel](DatatypeChannel.html)\n\n[Invalid Message Channel](InvalidMessageChannel.html)\n\n[Dead Letter Channel](DeadLetterChannel.html)\n\n[Guaranteed Delivery](GuaranteedMessaging.html)\n\n[Channel Adapter](ChannelAdapter.html)\n\n[Messaging Bridge](MessagingBridge.html)\n\n[Message Bus](MessageBus.html)\n\n[Systems Mgmt.](SystemManagementIntro.html)\n\n[Control Bus](ControlBus.html)\n\n[Detour](Detour.html)\n\n[Wire Tap](WireTap.html)\n\n[Message History](MessageHistory.html)\n\n[Message Store](MessageStore.html)\n\n[Smart Proxy](SmartProxy.html)\n\n[Test Message](TestMessage.html)\n\n[Channel Purger](ChannelPurger.html)", "znaku_textu": 9842, "slov": 1169, "odkazu": 111, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 15:34:18", "sha256": "15d8640d5ad149a0e54a23c4cfe4a84c0abdcec421de2f9eb301daf21d708f58", "hloubka": 4, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://creativecommons.org/licenses/by/4.0/", "https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "https://www.architectelevator.com/book", "https://www.cloudstrategybook.com/", "https://www.platformstrategybook.info/"]} {"url": "http://www.enterpriseintegrationpatterns.com/BroadcastAggregate.html", "titulek": "Scatter-Gather - Enterprise Integration Patterns", "h1": "", "popis": "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?", "klicova_slova": "Scatter-Gather,integration, messaging, events, patterns, event-driven, coupling, eai, middleware, application integration, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns", "og:title": "Scatter-Gather - Enterprise Integration Patterns", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/BroadcastAggregate.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/BroadcastAggregate.gif"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Example: Serverless Loan Broker on AWSNEW"}, {"uroven": 2, "text": "Example: Mulesoft ESBNEW"}, {"uroven": 2, "text": "Example: Azure Durable Functions (Fan out/fan in)NEW"}, {"uroven": 2, "text": "Integration Pattern Language"}], "markdown": "| | Scatter-Gather[Messaging Patterns](index.html) » [Message Routing](MessageRoutingIntro.html) | [Contents](toc.html)[⇐ Prev](DistributionAggregate.html)[Next ⇒](RoutingTable.html) |\n| --- | --- | --- |\n\nIn the order processing example introduced in the previous patterns , each order item that is not currently in stock could be supplied by one of multiple external suppliers. However, the suppliers may or may not have the respective item in stock themselves, they may charge a different price and may be able to supply the part by a different date. To fill the order in the best way possible, we should request quotes from all suppliers and decide which one provides us with the best term for the requested item.\n\nHow do you maintain the overall message flow when a message needs to be sent to multiple recipients, each of which may send a reply?\n\nUse a *Scatter-Gather* that broadcasts a message to multiple recipients and re-aggregates the responses back into a single message\n\nThe *Scatter-Gather* routes a request message to the a number of recipients. It then uses an [*Aggregator*](Aggregator.html) to collect the responses and distill them into a single response message.\n\nThere are two variants of the *Scatter-Gather* that use different mechanisms to send the request messages to the intended recipients:\n\n- **Distribution** via a [*Recipient List*](RecipientList.html) allows the *Scatter-Gather* to control the list of recipients but requires the *Scatter-Gather* to be aware of each recipient's message channel.\n- **Auction** -style *Scatter-Gather* s use a [*Publish-Subscribe Channel*](PublishSubscribeChannel.html) to broadcast the request to any interested participant. This option allows the *Scatter-Gather* to use a single channel but at the same time relinquishes control.\n\n...\nRead the entire pattern in the book [Enterprise Integration Patterns](/books1.html)\n\n## Example: Serverless Loan Broker on AWS[NEW](/ramblings/eip1_examples_updated.html)\n\nThe [serverless Loan Broker example](/ramblings/loanbroker_stepfunctions.html) includes a *Scatter-Gather* that routes requests for a loan quote to interested banks and selects the best offer from the incoming responses. The example implements both a a [*Recipient List*](RecipientList.html) using AWS Step Functions' Map state (see [Part 2](/ramblings/loanbroker_stepfunctions_recipient_list.html)) and a [*Publish-Subscribe Channel*](PublishSubscribeChannel.html) using the Amazon Simple Queuing Service (SQS) (see [Part 3](https://www.enterpriseintegrationpatterns.com/ramblings/loanbroker_stepfunctions_pubsub.html)).\n\n## Example: Mulesoft ESB[NEW](/ramblings/eip1_examples_updated.html)\n\nMulesoft's enterprise service bus includes a *Scatter-Gather* construct, described as [Scatter-Gather Router](https://docs.mulesoft.com/mule-runtime/4.3/scatter-gather-concept) and can be configured using the scatter-gather element.\n\nAlthough each route is independently executed, the Scatter-Gather Router configures a pre-defined number of paths, so it doesn't broadcast to an unknown number of recipients. Knowing all recipients makes the completeness condition of \"Wait for all\" (see [*Aggregator*](Aggregator.html)) a natural choice. Route errors propagate to the Scatter-Gather, which in turn flags an error, passing on any results that were successfully passed by the individual routes. The aggregation strategy is concatenation, turning single variable values into a list of all route results.\n\n## Example: Azure Durable Functions (Fan out/fan in)[NEW](/ramblings/eip1_examples_updated.html)\n\nDurable functions, which are used to orchestrate serverless Azure Functions, make it easy to implement *Scatter-Gather*, following the [Fan out/fan in](https://docs.microsoft.com/en-us/azure/azure-functions/durable/durable-functions-overview?tabs=csharp#fan-in-out) construct. which is supported by the WhenAll method, which waits for all functions to execute:\n\n**Fan out/fan in with Azure Durable Functions**\n\n```\ndef orchestrator_function(context: df.DurableOrchestrationContext):\n work_batch = yield context.call_activity(\"GetVendors\", None)\n parallel_tasks = [ context.call_activity(\"Vendor\", b) for b in work_batch ]\n outputs = yield context.task_all(parallel_tasks)\n total = sum(outputs)\n \n```\n\nThe number of recipients can be calculated at run-time, and the completeness condition can support a variety of strategies, including \"Wait for all\" (Task.WhenAll), \"First Best\" (Task.WhenAny), or \"Fixed Timeout\" (Task.WaitAll).\n\n**Related patterns:**\n\n[*Aggregator*](Aggregator.html), [*Introduction to Composed Messaging Examples*](ComposedMessagingExample.html), [*Asynchronous Implementation with MSMQ*](ComposedMessagingMSMQ.html), [*Asynchronous Implementation with TIBCO ActiveEnterprise*](ComposedMessagingTIBCO.html), [*Composed Message Processor*](DistributionAggregate.html), [*Publish-Subscribe Channel*](PublishSubscribeChannel.html), [*Recipient List*](RecipientList.html), [*Return Address*](ReturnAddress.html), [*Splitter*](Sequencer.html)\n\n---\n\n## Integration Pattern Language\n\n[Message Construct.](MessageConstructionIntro.html)\n\n[Message](Message.html)\n\n[Command Message](CommandMessage.html)\n\n[Document Message](DocumentMessage.html)\n\n[Event Message](EventMessage.html)\n\n[Request-Reply](RequestReply.html)\n\n[Return Address](ReturnAddress.html)\n\n[Correlation Identifier](CorrelationIdentifier.html)\n\n[Message Sequence](MessageSequence.html)\n\n[Message Expiration](MessageExpiration.html)\n\n[Format Indicator](FormatIndicator.html)\n\n[Message Routing](MessageRoutingIntro.html)\n\n[Pipes-and-Filters](PipesAndFilters.html)\n\n[Message Router](MessageRouter.html)\n\n[Content-based Router](ContentBasedRouter.html)\n\n[Message Filter](Filter.html)\n\n[Dynamic Router](DynamicRouter.html)\n\n[Recipient List](RecipientList.html)\n\n[Splitter](Sequencer.html)\n\n[Aggregator](Aggregator.html)\n\n[Resequencer](Resequencer.html)\n\n[Composed Msg. Processor](DistributionAggregate.html)\n\n[Scatter-Gather](BroadcastAggregate.html)\n\n[Routing Slip](RoutingTable.html)\n\n[Process Manager](ProcessManager.html)\n\n[Message Broker](MessageBroker.html)\n\n[Message\nTransformation](MessageTransformationIntro.html)\n\n[Message Translator](MessageTranslator.html)\n\n[Envelope Wrapper](EnvelopeWrapper.html)\n\n[Content Enricher](DataEnricher.html)\n\n[Content Filter](ContentFilter.html)\n\n[Claim Check](StoreInLibrary.html)\n\n[Normalizer](Normalizer.html)\n\n[Canonical Data Model](CanonicalDataModel.html)\n\n[Messaging Endpoints](MessagingEndpointsIntro.html)\n\n[Message Endpoint](MessageEndpoint.html)\n\n[Messaging Gateway](MessagingGateway.html)\n\n[Messaging Mapper](MessagingMapper.html)\n\n[Transactional Client](TransactionalClient.html)\n\n[Polling Consumer](PollingConsumer.html)\n\n[Event-driven Consumer](EventDrivenConsumer.html)\n\n[Competing Consumers](CompetingConsumers.html)\n\n[Message Dispatcher](MessageDispatcher.html)\n\n[Selective Consumer](MessageSelector.html)\n\n[Durable Subscriber](DurableSubscription.html)\n\n[Idempotent Receiver](IdempotentReceiver.html)\n\n[Service Activator](MessagingAdapter.html)\n\n[Messaging Channels](MessagingChannelsIntro.html)\n\n[Message Channel](MessageChannel.html)\n\n[Point-to-Point Channel](PointToPointChannel.html)\n\n[Publish-Subscr. Channel](PublishSubscribeChannel.html)\n\n[Datatype Channel](DatatypeChannel.html)\n\n[Invalid Message Channel](InvalidMessageChannel.html)\n\n[Dead Letter Channel](DeadLetterChannel.html)\n\n[Guaranteed Delivery](GuaranteedMessaging.html)\n\n[Channel Adapter](ChannelAdapter.html)\n\n[Messaging Bridge](MessagingBridge.html)\n\n[Message Bus](MessageBus.html)\n\n[Systems Mgmt.](SystemManagementIntro.html)\n\n[Control Bus](ControlBus.html)\n\n[Detour](Detour.html)\n\n[Wire Tap](WireTap.html)\n\n[Message History](MessageHistory.html)\n\n[Message Store](MessageStore.html)\n\n[Smart Proxy](SmartProxy.html)\n\n[Test Message](TestMessage.html)\n\n[Channel Purger](ChannelPurger.html)", "znaku_textu": 7697, "slov": 766, "odkazu": 114, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 15:34:21", "sha256": "ed4e25c160ba5c6c908b79de8011ba8f69c26c40ccd92f7612903029b7db78e6", "hloubka": 4, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://docs.mulesoft.com/mule-runtime/4.3/scatter-gather-concept", "https://docs.microsoft.com/en-us/azure/azure-functions/durable/durable-functions-overview?tabs=csharp", "http://creativecommons.org/licenses/by/4.0/", "https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "https://www.architectelevator.com/book", "https://www.cloudstrategybook.com/", "https://www.platformstrategybook.info/"]} {"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?", "klicova_slova": "Canonical Data Model,integration, messaging, events, patterns, event-driven, coupling, eai, middleware, application integration, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns", "og:title": "Canonical Data Model - Enterprise Integration Patterns", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/CanonicalDataModel.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/CanonicalDataModel.gif"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Integration Pattern Language"}], "markdown": "| | Canonical Data Model[Messaging Patterns](index.html) » [Message Transformation](MessageTransformationIntro.html) | [Contents](toc.html)[⇐ Prev](Normalizer.html)[Next ⇒](ComposedMessagingExample.html) |\n| --- | --- | --- |\n\nI am designing several applications to work together through [*Messaging*](Messaging.html). Each application has its own internal data format.\n\nHow can you minimize dependencies when integrating applications that use different data formats?\n\nTherefore, design a *Canonical Data Model* that is independent from any specific application. Require each application to produce and consume messages in this common format.\n\nThe *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.\n\nThe 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*.\n\n...\nRead the entire pattern in the book [Enterprise Integration Patterns](/books1.html)\n\n**Related patterns:**\n\n[*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)\n\n---\n\n## Integration Pattern Language\n\n[Message Construct.](MessageConstructionIntro.html)\n\n[Message](Message.html)\n\n[Command Message](CommandMessage.html)\n\n[Document Message](DocumentMessage.html)\n\n[Event Message](EventMessage.html)\n\n[Request-Reply](RequestReply.html)\n\n[Return Address](ReturnAddress.html)\n\n[Correlation Identifier](CorrelationIdentifier.html)\n\n[Message Sequence](MessageSequence.html)\n\n[Message Expiration](MessageExpiration.html)\n\n[Format Indicator](FormatIndicator.html)\n\n[Message Routing](MessageRoutingIntro.html)\n\n[Pipes-and-Filters](PipesAndFilters.html)\n\n[Message Router](MessageRouter.html)\n\n[Content-based Router](ContentBasedRouter.html)\n\n[Message Filter](Filter.html)\n\n[Dynamic Router](DynamicRouter.html)\n\n[Recipient List](RecipientList.html)\n\n[Splitter](Sequencer.html)\n\n[Aggregator](Aggregator.html)\n\n[Resequencer](Resequencer.html)\n\n[Composed Msg. Processor](DistributionAggregate.html)\n\n[Scatter-Gather](BroadcastAggregate.html)\n\n[Routing Slip](RoutingTable.html)\n\n[Process Manager](ProcessManager.html)\n\n[Message Broker](MessageBroker.html)\n\n[Message\nTransformation](MessageTransformationIntro.html)\n\n[Message Translator](MessageTranslator.html)\n\n[Envelope Wrapper](EnvelopeWrapper.html)\n\n[Content Enricher](DataEnricher.html)\n\n[Content Filter](ContentFilter.html)\n\n[Claim Check](StoreInLibrary.html)\n\n[Normalizer](Normalizer.html)\n\n[Canonical Data Model](CanonicalDataModel.html)\n\n[Messaging Endpoints](MessagingEndpointsIntro.html)\n\n[Message Endpoint](MessageEndpoint.html)\n\n[Messaging Gateway](MessagingGateway.html)\n\n[Messaging Mapper](MessagingMapper.html)\n\n[Transactional Client](TransactionalClient.html)\n\n[Polling Consumer](PollingConsumer.html)\n\n[Event-driven Consumer](EventDrivenConsumer.html)\n\n[Competing Consumers](CompetingConsumers.html)\n\n[Message Dispatcher](MessageDispatcher.html)\n\n[Selective Consumer](MessageSelector.html)\n\n[Durable Subscriber](DurableSubscription.html)\n\n[Idempotent Receiver](IdempotentReceiver.html)\n\n[Service Activator](MessagingAdapter.html)\n\n[Messaging Channels](MessagingChannelsIntro.html)\n\n[Message Channel](MessageChannel.html)\n\n[Point-to-Point Channel](PointToPointChannel.html)\n\n[Publish-Subscr. Channel](PublishSubscribeChannel.html)\n\n[Datatype Channel](DatatypeChannel.html)\n\n[Invalid Message Channel](InvalidMessageChannel.html)\n\n[Dead Letter Channel](DeadLetterChannel.html)\n\n[Guaranteed Delivery](GuaranteedMessaging.html)\n\n[Channel Adapter](ChannelAdapter.html)\n\n[Messaging Bridge](MessagingBridge.html)\n\n[Message Bus](MessageBus.html)\n\n[Systems Mgmt.](SystemManagementIntro.html)\n\n[Control Bus](ControlBus.html)\n\n[Detour](Detour.html)\n\n[Wire Tap](WireTap.html)\n\n[Message History](MessageHistory.html)\n\n[Message Store](MessageStore.html)\n\n[Smart Proxy](SmartProxy.html)\n\n[Test Message](TestMessage.html)\n\n[Channel Purger](ChannelPurger.html)", "znaku_textu": 5089, "slov": 428, "odkazu": 108, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 15:34:32", "sha256": "02992f61d7529d80300b901e152622f0e876669b52f49d035dba00745a2405f8", "hloubka": 4, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://creativecommons.org/licenses/by/4.0/", "https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "https://www.architectelevator.com/book", "https://www.cloudstrategybook.com/", "https://www.platformstrategybook.info/"]} {"url": "http://www.enterpriseintegrationpatterns.com/ChannelAdapter.html", "titulek": "Channel Adapter - Enterprise Integration Patterns", "h1": "", "popis": "How can you connect an application to the messaging system so that it can send and receive messages?", "klicova_slova": "Channel Adapter,integration, messaging, events, patterns, event-driven, coupling, eai, middleware, application integration, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns", "og:title": "Channel Adapter - Enterprise Integration Patterns", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/ChannelAdapter.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/ChannelAdapterSolution.gif"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Integration Pattern Language"}], "markdown": "Messaging Patterns\n\n[Messaging Patterns](index.html)\n\n- [Integration Styles](IntegrationStylesIntro.html)\n- [Messaging Systems](MessagingComponentsIntro.html)\n- [Messaging Channels](MessagingChannelsIntro.html)\n- [Message Construction](MessageConstructionIntro.html)\n- [Interlude: Simple Messaging](SimpleMessagingIntro.html)\n- [Message Routing](MessageRoutingIntro.html)\n- [Message Transformation](MessageTransformationIntro.html)\n- [Interlude: Composed Messaging](ComposedMessagingExample.html)\n- [Messaging Endpoints](MessagingEndpointsIntro.html)\n- [System Management](SystemManagementIntro.html)\n- Interlude: Systems Management Example\n- Integration Patterns in Practice\n- Concluding Remarks\n- Appendices\n\n| | Channel Adapter[Messaging Patterns](index.html) » [Messaging Channels](MessagingChannelsIntro.html) | [Contents](toc.html)[⇐ Prev](GuaranteedMessaging.html)[Next ⇒](MessagingBridge.html) |\n| --- | --- | --- |\n\nMany enterprises use [*Messaging*](Messaging.html) to integrate multiple, disparate applications.\n\nHow can you connect an application to the messaging system so that it can send and receive messages?\n\nUse a *Channel Adapter* that can access the application's API or data and publish messages on a channel based on this data, and that likewise can receive messages and invoke functionality inside the application.\n\nThe adapter acts as a messaging client to the messaging system and invokes applications functions via an application-supplied interface. This way, any application can connect to the messaging system and be integrated with other applications as long as it has a proper *Channel Adapter*.\n\nThe *Channel Adapter* can connect to different layers of the application's architecture, depending on that architecture and the data the messaging system needs to access.\n\n*A Channel Adapter Connecting to Different Layers of an Application*\n\n...\nRead the entire pattern in the book [Enterprise Integration Patterns](/books1.html)\n\n**Related patterns:**\n\n[*Canonical Data Model*](CanonicalDataModel.html), [*Message Channel*](MessageChannel.html), [*Introduction to Message Transformation*](MessageTransformationIntro.html), [*Message Translator*](MessageTranslator.html), [*Messaging*](Messaging.html), [*Messaging Bridge*](MessagingBridge.html), [*Transactional Client*](TransactionalClient.html)\n\n---\n\n## Integration Pattern Language\n\n[Message Construct.](MessageConstructionIntro.html)\n\n[Message](Message.html)\n\n[Command Message](CommandMessage.html)\n\n[Document Message](DocumentMessage.html)\n\n[Event Message](EventMessage.html)\n\n[Request-Reply](RequestReply.html)\n\n[Return Address](ReturnAddress.html)\n\n[Correlation Identifier](CorrelationIdentifier.html)\n\n[Message Sequence](MessageSequence.html)\n\n[Message Expiration](MessageExpiration.html)\n\n[Format Indicator](FormatIndicator.html)\n\n[Message Routing](MessageRoutingIntro.html)\n\n[Pipes-and-Filters](PipesAndFilters.html)\n\n[Message Router](MessageRouter.html)\n\n[Content-based Router](ContentBasedRouter.html)\n\n[Message Filter](Filter.html)\n\n[Dynamic Router](DynamicRouter.html)\n\n[Recipient List](RecipientList.html)\n\n[Splitter](Sequencer.html)\n\n[Aggregator](Aggregator.html)\n\n[Resequencer](Resequencer.html)\n\n[Composed Msg. Processor](DistributionAggregate.html)\n\n[Scatter-Gather](BroadcastAggregate.html)\n\n[Routing Slip](RoutingTable.html)\n\n[Process Manager](ProcessManager.html)\n\n[Message Broker](MessageBroker.html)\n\n[Message\nTransformation](MessageTransformationIntro.html)\n\n[Message Translator](MessageTranslator.html)\n\n[Envelope Wrapper](EnvelopeWrapper.html)\n\n[Content Enricher](DataEnricher.html)\n\n[Content Filter](ContentFilter.html)\n\n[Claim Check](StoreInLibrary.html)\n\n[Normalizer](Normalizer.html)\n\n[Canonical Data Model](CanonicalDataModel.html)\n\n[Messaging Endpoints](MessagingEndpointsIntro.html)\n\n[Message Endpoint](MessageEndpoint.html)\n\n[Messaging Gateway](MessagingGateway.html)\n\n[Messaging Mapper](MessagingMapper.html)\n\n[Transactional Client](TransactionalClient.html)\n\n[Polling Consumer](PollingConsumer.html)\n\n[Event-driven Consumer](EventDrivenConsumer.html)\n\n[Competing Consumers](CompetingConsumers.html)\n\n[Message Dispatcher](MessageDispatcher.html)\n\n[Selective Consumer](MessageSelector.html)\n\n[Durable Subscriber](DurableSubscription.html)\n\n[Idempotent Receiver](IdempotentReceiver.html)\n\n[Service Activator](MessagingAdapter.html)\n\n[Messaging Channels](MessagingChannelsIntro.html)\n\n[Message Channel](MessageChannel.html)\n\n[Point-to-Point Channel](PointToPointChannel.html)\n\n[Publish-Subscr. Channel](PublishSubscribeChannel.html)\n\n[Datatype Channel](DatatypeChannel.html)\n\n[Invalid Message Channel](InvalidMessageChannel.html)\n\n[Dead Letter Channel](DeadLetterChannel.html)\n\n[Guaranteed Delivery](GuaranteedMessaging.html)\n\n[Channel Adapter](ChannelAdapter.html)\n\n[Messaging Bridge](MessagingBridge.html)\n\n[Message Bus](MessageBus.html)\n\n[Systems Mgmt.](SystemManagementIntro.html)\n\n[Control Bus](ControlBus.html)\n\n[Detour](Detour.html)\n\n[Wire Tap](WireTap.html)\n\n[Message History](MessageHistory.html)\n\n[Message Store](MessageStore.html)\n\n[Smart Proxy](SmartProxy.html)\n\n[Test Message](TestMessage.html)\n\n[Channel Purger](ChannelPurger.html)\n\n- » [Read the latest in My Blog](/ramblings)\n- » [Get more insights from My Articles](/articles.html)\n- » [See me live in my Upcoming Talks](/talks)\n\nYou can reuse the following elements under the [Creative Commons Attribution](http://creativecommons.org/licenses/by/4.0/) license: pattern icon, pattern name, problem and solution statements (in bold), and the sketch. Other portions are protected by copyright.\n\n[Enterprise Integration Patterns](https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20)\nThe de-facto language for designing asynchronous, distributed systems. Over 100,000 copies sold.\n\n[The Software Architect Elevator](https://www.architectelevator.com/book)\n\n Rethink the role of architects as a connecting element across organizational layers. Acquire the technical, communication, and organizational skills to succeed in this new role.\n\n[Cloud Strategy](https://www.cloudstrategybook.com)\n\n Make your cloud migration a success by translating high-level goals into conscious decisions with well-understood trade-offs.\n\n[Platform Strategy](https://www.platformstrategybook.info)\n\n Platforms can boost innovation through harmonization, but they aren't easy to build. Learn from over a decade of designing and rolling out IT platforms.", "znaku_textu": 6275, "slov": 520, "odkazu": 108, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 15:34:54", "sha256": "f40687cadb1e37a5dea09e841cc54f2e1fe927366258bd2d0a9cee33e7990ace", "hloubka": 4, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://creativecommons.org/licenses/by/4.0/", "https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "https://www.architectelevator.com/book", "https://www.cloudstrategybook.com/", "https://www.platformstrategybook.info/"]} {"url": "http://www.enterpriseintegrationpatterns.com/ChannelPurger.html", "titulek": "Channel Purger - Enterprise Integration Patterns", "h1": "", "popis": "How can you keep 'left-over' messages on a channel from disturbing tests or running systems?", "klicova_slova": "Channel Purger,integration, messaging, events, patterns, event-driven, coupling, eai, middleware, application integration, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns", "og:title": "Channel Purger - Enterprise Integration Patterns", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/ChannelPurger.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/ChannelPurger.gif"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Example: Channel Purger in Amazon SQSNEW"}, {"uroven": 2, "text": "Integration Pattern Language"}], "markdown": "| | Channel Purger[Messaging Patterns](index.html) » [System Management](SystemManagementIntro.html) | [Contents](toc.html)[⇐ Prev](TestMessage.html)[Next ⇒](SystemManagementExample.html) |\n| --- | --- | --- |\n\nWhen Bobby and I worked on the simple [*JMS Request/Reply Example*](RequestReplyJmsExample.html), we ran into a simple, but interesting problem. The example consists of a Requestor which sends a message to a Replier and waits for the response. The example uses two [*Point-to-Point Channel*](PointToPointChannel.html)s, RequestQueue and ReplyQueue (see picture).\n\nWe had plastered println statements all over the code so we can see what is going on. We started the Replier first, then the Requestor. Then a very odd thing happened. The Requestor console window claimed to have gotten a response before the Replier ever acknowledged receiving a request. A delay in the console output? Lacking any great ideas, we decided to shut the Replier down and re-ran the Requestor. Odd enough, we still received a response to our request! Magic? No, just a side effect of persistent messaging. A superfluous message was present on the ReplyQueue. When we started the Requestor it placed a new message on the RequestQueue and then immediately retrieved the extraneous reply message that was sitting on the ReplyQueue. We never noticed that this was not the reply to the request the Requestor just made! Once the Replier received the request message, it placed a new reply message on the ReplyQueue so that the 'magic' repeated during the next test. It can be amazing (or amazingly frustrating) how persistent, asynchronous messaging can play tricks on you in even the most simple scenarios!\n\nHow can you keep 'left-over' messages on a channel from disturbing tests or running systems?\n\nUse a *Channel Purger* to remove unwanted messages from a channel.\n\nA simple *Channel Purger* simply remove all the messages from a channel. This may be sufficient for test scenarios where we want to reset the system into a consistent state. If we are debugging a production system we may need to remove individual message or a set of messages based on specific criteria, such as the message ID or the values of specific message fields.\n\n...\nRead the entire pattern in the book [Enterprise Integration Patterns](/books1.html)\n\n## Example: Channel Purger in Amazon SQS[NEW](/ramblings/eip1_examples_updated.html)\n\nMany hosted messaging systems have a built-in function to purge channels. For example, with Amazon's [Simple Queuing Service (SQS)](https://aws.amazon.com/sqs), you can purge a queue simply from the web user interface:\n\n*Purging a queue in Amazon SQS*\n\n**Related patterns:**\n\n[*Correlation Identifier*](CorrelationIdentifier.html), [*Invalid Message Channel*](InvalidMessageChannel.html), [*Message Channel*](MessageChannel.html), [*Message Store*](MessageStore.html), [*Point-to-Point Channel*](PointToPointChannel.html), [*JMS Request/Reply Example*](RequestReplyJmsExample.html)\n\n---\n\n## Integration Pattern Language\n\n[Message Construct.](MessageConstructionIntro.html)\n\n[Message](Message.html)\n\n[Command Message](CommandMessage.html)\n\n[Document Message](DocumentMessage.html)\n\n[Event Message](EventMessage.html)\n\n[Request-Reply](RequestReply.html)\n\n[Return Address](ReturnAddress.html)\n\n[Correlation Identifier](CorrelationIdentifier.html)\n\n[Message Sequence](MessageSequence.html)\n\n[Message Expiration](MessageExpiration.html)\n\n[Format Indicator](FormatIndicator.html)\n\n[Message Routing](MessageRoutingIntro.html)\n\n[Pipes-and-Filters](PipesAndFilters.html)\n\n[Message Router](MessageRouter.html)\n\n[Content-based Router](ContentBasedRouter.html)\n\n[Message Filter](Filter.html)\n\n[Dynamic Router](DynamicRouter.html)\n\n[Recipient List](RecipientList.html)\n\n[Splitter](Sequencer.html)\n\n[Aggregator](Aggregator.html)\n\n[Resequencer](Resequencer.html)\n\n[Composed Msg. Processor](DistributionAggregate.html)\n\n[Scatter-Gather](BroadcastAggregate.html)\n\n[Routing Slip](RoutingTable.html)\n\n[Process Manager](ProcessManager.html)\n\n[Message Broker](MessageBroker.html)\n\n[Message\nTransformation](MessageTransformationIntro.html)\n\n[Message Translator](MessageTranslator.html)\n\n[Envelope Wrapper](EnvelopeWrapper.html)\n\n[Content Enricher](DataEnricher.html)\n\n[Content Filter](ContentFilter.html)\n\n[Claim Check](StoreInLibrary.html)\n\n[Normalizer](Normalizer.html)\n\n[Canonical Data Model](CanonicalDataModel.html)\n\n[Messaging Endpoints](MessagingEndpointsIntro.html)\n\n[Message Endpoint](MessageEndpoint.html)\n\n[Messaging Gateway](MessagingGateway.html)\n\n[Messaging Mapper](MessagingMapper.html)\n\n[Transactional Client](TransactionalClient.html)\n\n[Polling Consumer](PollingConsumer.html)\n\n[Event-driven Consumer](EventDrivenConsumer.html)\n\n[Competing Consumers](CompetingConsumers.html)\n\n[Message Dispatcher](MessageDispatcher.html)\n\n[Selective Consumer](MessageSelector.html)\n\n[Durable Subscriber](DurableSubscription.html)\n\n[Idempotent Receiver](IdempotentReceiver.html)\n\n[Service Activator](MessagingAdapter.html)\n\n[Messaging Channels](MessagingChannelsIntro.html)\n\n[Message Channel](MessageChannel.html)\n\n[Point-to-Point Channel](PointToPointChannel.html)\n\n[Publish-Subscr. Channel](PublishSubscribeChannel.html)\n\n[Datatype Channel](DatatypeChannel.html)\n\n[Invalid Message Channel](InvalidMessageChannel.html)\n\n[Dead Letter Channel](DeadLetterChannel.html)\n\n[Guaranteed Delivery](GuaranteedMessaging.html)\n\n[Channel Adapter](ChannelAdapter.html)\n\n[Messaging Bridge](MessagingBridge.html)\n\n[Message Bus](MessageBus.html)\n\n[Systems Mgmt.](SystemManagementIntro.html)\n\n[Control Bus](ControlBus.html)\n\n[Detour](Detour.html)\n\n[Wire Tap](WireTap.html)\n\n[Message History](MessageHistory.html)\n\n[Message Store](MessageStore.html)\n\n[Smart Proxy](SmartProxy.html)\n\n[Test Message](TestMessage.html)\n\n[Channel Purger](ChannelPurger.html)", "znaku_textu": 5694, "slov": 568, "odkazu": 110, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 15:35:04", "sha256": "d8f42e8a137828b3f8d9f1665478c3a8b32361cf1d058807f3154041cd256cdc", "hloubka": 4, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://aws.amazon.com/sqs", "http://creativecommons.org/licenses/by/4.0/", "https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "https://www.architectelevator.com/book", "https://www.cloudstrategybook.com/", "https://www.platformstrategybook.info/"]} {"url": "http://www.enterpriseintegrationpatterns.com/CommandMessage.html", "titulek": "Command Message - Enterprise Integration Patterns", "h1": "", "popis": "How can messaging be used to invoke a procedure in another application?", "klicova_slova": "Command Message,integration, messaging, events, patterns, event-driven, coupling, eai, middleware, application integration, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns", "og:title": "Command Message - Enterprise Integration Patterns", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/CommandMessage.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/CommandMessageSolution.gif"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Integration Pattern Language"}], "markdown": "Messaging Patterns\n\n[Messaging Patterns](index.html)\n\n- [Integration Styles](IntegrationStylesIntro.html)\n- [Messaging Systems](MessagingComponentsIntro.html)\n- [Messaging Channels](MessagingChannelsIntro.html)\n- [Message Construction](MessageConstructionIntro.html)\n- [Interlude: Simple Messaging](SimpleMessagingIntro.html)\n- [Message Routing](MessageRoutingIntro.html)\n- [Message Transformation](MessageTransformationIntro.html)\n- [Interlude: Composed Messaging](ComposedMessagingExample.html)\n- [Messaging Endpoints](MessagingEndpointsIntro.html)\n- [System Management](SystemManagementIntro.html)\n- Interlude: Systems Management Example\n- Integration Patterns in Practice\n- Concluding Remarks\n- Appendices\n\n| | Command Message[Messaging Patterns](index.html) » [Message Construction](MessageConstructionIntro.html) | [Contents](toc.html)[⇐ Prev](MessageConstructionIntro.html)[Next ⇒](DocumentMessage.html) |\n| --- | --- | --- |\n\nAn application needs to invoke functionality provided by other applications. It would typically use [*Remote Procedure Invocation*](EncapsulatedSynchronousIntegration.html), but would like to take advantage of the benefits of using [*Messaging*](Messaging.html).\n\nHow can messaging be used to invoke a procedure in another application?\n\nUse a *Command Message* to reliably invoke a procedure in another application.\n\nThere is no specific message type for commands; a *Command Message* is simply a regular message that happens to contain a command. In JMS, the command message could be any type of message; examples include an ObjectMessage containing a Serializable command object, a TextMessage containing the command in XML form, etc. In .NET, a command message is a Message with a command stored in it. A Simple Object Access Protocol (SOAP) request is a command message.\n\n...\nRead the entire pattern in the book [Enterprise Integration Patterns](/books1.html)\n\n**Related patterns:**\n\n[*Remote Procedure Invocation*](EncapsulatedSynchronousIntegration.html), [*Message*](Message.html), [*Message Channel*](MessageChannel.html), [*Messaging*](Messaging.html), [*Point-to-Point Channel*](PointToPointChannel.html)\n\n---\n\n## Integration Pattern Language\n\n[Message Construct.](MessageConstructionIntro.html)\n\n[Message](Message.html)\n\n[Command Message](CommandMessage.html)\n\n[Document Message](DocumentMessage.html)\n\n[Event Message](EventMessage.html)\n\n[Request-Reply](RequestReply.html)\n\n[Return Address](ReturnAddress.html)\n\n[Correlation Identifier](CorrelationIdentifier.html)\n\n[Message Sequence](MessageSequence.html)\n\n[Message Expiration](MessageExpiration.html)\n\n[Format Indicator](FormatIndicator.html)\n\n[Message Routing](MessageRoutingIntro.html)\n\n[Pipes-and-Filters](PipesAndFilters.html)\n\n[Message Router](MessageRouter.html)\n\n[Content-based Router](ContentBasedRouter.html)\n\n[Message Filter](Filter.html)\n\n[Dynamic Router](DynamicRouter.html)\n\n[Recipient List](RecipientList.html)\n\n[Splitter](Sequencer.html)\n\n[Aggregator](Aggregator.html)\n\n[Resequencer](Resequencer.html)\n\n[Composed Msg. Processor](DistributionAggregate.html)\n\n[Scatter-Gather](BroadcastAggregate.html)\n\n[Routing Slip](RoutingTable.html)\n\n[Process Manager](ProcessManager.html)\n\n[Message Broker](MessageBroker.html)\n\n[Message\nTransformation](MessageTransformationIntro.html)\n\n[Message Translator](MessageTranslator.html)\n\n[Envelope Wrapper](EnvelopeWrapper.html)\n\n[Content Enricher](DataEnricher.html)\n\n[Content Filter](ContentFilter.html)\n\n[Claim Check](StoreInLibrary.html)\n\n[Normalizer](Normalizer.html)\n\n[Canonical Data Model](CanonicalDataModel.html)\n\n[Messaging Endpoints](MessagingEndpointsIntro.html)\n\n[Message Endpoint](MessageEndpoint.html)\n\n[Messaging Gateway](MessagingGateway.html)\n\n[Messaging Mapper](MessagingMapper.html)\n\n[Transactional Client](TransactionalClient.html)\n\n[Polling Consumer](PollingConsumer.html)\n\n[Event-driven Consumer](EventDrivenConsumer.html)\n\n[Competing Consumers](CompetingConsumers.html)\n\n[Message Dispatcher](MessageDispatcher.html)\n\n[Selective Consumer](MessageSelector.html)\n\n[Durable Subscriber](DurableSubscription.html)\n\n[Idempotent Receiver](IdempotentReceiver.html)\n\n[Service Activator](MessagingAdapter.html)\n\n[Messaging Channels](MessagingChannelsIntro.html)\n\n[Message Channel](MessageChannel.html)\n\n[Point-to-Point Channel](PointToPointChannel.html)\n\n[Publish-Subscr. Channel](PublishSubscribeChannel.html)\n\n[Datatype Channel](DatatypeChannel.html)\n\n[Invalid Message Channel](InvalidMessageChannel.html)\n\n[Dead Letter Channel](DeadLetterChannel.html)\n\n[Guaranteed Delivery](GuaranteedMessaging.html)\n\n[Channel Adapter](ChannelAdapter.html)\n\n[Messaging Bridge](MessagingBridge.html)\n\n[Message Bus](MessageBus.html)\n\n[Systems Mgmt.](SystemManagementIntro.html)\n\n[Control Bus](ControlBus.html)\n\n[Detour](Detour.html)\n\n[Wire Tap](WireTap.html)\n\n[Message History](MessageHistory.html)\n\n[Message Store](MessageStore.html)\n\n[Smart Proxy](SmartProxy.html)\n\n[Test Message](TestMessage.html)\n\n[Channel Purger](ChannelPurger.html)\n\n- » [Read the latest in My Blog](/ramblings)\n- » [Get more insights from My Articles](/articles.html)\n- » [See me live in my Upcoming Talks](/talks)\n\nYou can reuse the following elements under the [Creative Commons Attribution](http://creativecommons.org/licenses/by/4.0/) license: pattern icon, pattern name, problem and solution statements (in bold), and the sketch. Other portions are protected by copyright.\n\n[Enterprise Integration Patterns](https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20)\nThe de-facto language for designing asynchronous, distributed systems. Over 100,000 copies sold.\n\n[The Software Architect Elevator](https://www.architectelevator.com/book)\n\n Rethink the role of architects as a connecting element across organizational layers. Acquire the technical, communication, and organizational skills to succeed in this new role.\n\n[Cloud Strategy](https://www.cloudstrategybook.com)\n\n Make your cloud migration a success by translating high-level goals into conscious decisions with well-understood trade-offs.\n\n[Platform Strategy](https://www.platformstrategybook.info)\n\n Platforms can boost innovation through harmonization, but they aren't easy to build. Learn from over a decade of designing and rolling out IT platforms.", "znaku_textu": 6102, "slov": 500, "odkazu": 108, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 15:34:01", "sha256": "53bdbb89e16b007c7336df050ed4744bf812f662c16c591bd2a827adb236c23f", "hloubka": 4, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://creativecommons.org/licenses/by/4.0/", "https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "https://www.architectelevator.com/book", "https://www.cloudstrategybook.com/", "https://www.platformstrategybook.info/"]} {"url": "http://www.enterpriseintegrationpatterns.com/CompetingConsumers.html", "titulek": "Competing Consumers - Enterprise Integration Patterns", "h1": "", "popis": "How can a messaging client process multiple messages concurrently?", "klicova_slova": "Competing Consumers,integration, messaging, events, patterns, event-driven, coupling, eai, middleware, application integration, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns", "og:title": "Competing Consumers - Enterprise Integration Patterns", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/CompetingConsumers.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/CompetingConsumers.gif"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Example: Apache KafkaNEW"}, {"uroven": 2, "text": "Integration Pattern Language"}], "markdown": "| | Competing Consumers[Messaging Patterns](index.html) » [Messaging Endpoints](MessagingEndpointsIntro.html) | [Contents](toc.html)[⇐ Prev](EventDrivenConsumer.html)[Next ⇒](MessageDispatcher.html) |\n| --- | --- | --- |\n\nAn application is using [*Messaging*](Messaging.html). However, it cannot process messages as fast as they’re being added to the channel.\n\nHow can a messaging client process multiple messages concurrently?\n\nCreate multiple *Competing Consumers* on a single channel so that the consumers can process multiple messages concurrently.\n\n*Competing Consumers* are multiple consumers that are all created to receive messages from a single [*Point-to-Point Channel*](PointToPointChannel.html). When the channel delivers a message, any of the consumers could potentially receive it. The messaging system's implementation determines which consumer actually receives the message, but in effect the consumers compete with each other to be the receiver. Once a consumer receives a message, it can delegate to the rest of its application to help process the message. (This solution only works with [*Point-to-Point Channel*](PointToPointChannel.html)s; multiple consumers on a [*Publish-Subscribe Channel*](PublishSubscribeChannel.html) just create more copies of each message.)\n\n*Competing Consumers Sequence*\n\n...\nRead the entire pattern in the book [Enterprise Integration Patterns](/books1.html)\n\n## Example: Apache Kafka[NEW](/ramblings/eip1_examples_updated.html)\n\n[Apache Kafka](http://kafka.apache.org) is a distributed streaming platform that allows clients to consume messages in both [*Publish-Subscribe Channel*](PublishSubscribeChannel.html) and *Competing Consumers* semantics. Kafka is optimized for high throughout and horizontal scalability and therefore tries to avoid the overhead that can be inherent in coordinating across multiple *Competing Consumers*. So while the client interface allows multiple consumers to consume messages off a topic in a competing fashion, guaranteeing that each message is only consumed by one of the consumers, the implementation actually relies on multiple *partitions* implemented as [*Point-to-Point Channel*](PointToPointChannel.html)s:\n\nIn the example above, a Kafka topic consists of three partitions divided across two consumers. A [*Message Router*](MessageRouter.html) distributes the messages across the three [*Point-to-Point Channel*](PointToPointChannel.html)s. This router is generally a [*Content-Based Router*](ContentBasedRouter.html) that works off the message key. This allows the sender to control the distribution of messages, e.g. to assure related messages go onto the same partition. This can be necessary to preserve order because in-order delivery is not guaranteed across partitions.\n\nThis design implies that the decision which consumer receives the message is made *a priori*, meaning consumers don't actually compete but rather read from independent channels. This limits the ability to load balance between consumers, e.g. if one channel runs empty, the corresponding consumer won't be able to aid other consumers whose channels still have messages. Also, as the number of partitions is set independently, not all consumers will service the same number of partitions, as illustrated in the example above.\n\nHowever, as Kafka partitions are relatively inexpensive, there are usually lots of them, meaning that each consumer is in reality likely to read of many partitions and therefore channels. This highlights another trade-off: there can't be more competing consumers in a *consumer group* than there are partitions on that topic.\n\n**Related patterns:**\n\n[*Content-Based Router*](ContentBasedRouter.html), [*Event-Driven Consumer*](EventDrivenConsumer.html), [*Message*](Message.html), [*Message Channel*](MessageChannel.html), [*Message Dispatcher*](MessageDispatcher.html), [*Message Router*](MessageRouter.html), [*Messaging*](Messaging.html), [*Point-to-Point Channel*](PointToPointChannel.html), [*Polling Consumer*](PollingConsumer.html), [*Publish-Subscribe Channel*](PublishSubscribeChannel.html), [*Transactional Client*](TransactionalClient.html)\n\n---\n\n## Integration Pattern Language\n\n[Message Construct.](MessageConstructionIntro.html)\n\n[Message](Message.html)\n\n[Command Message](CommandMessage.html)\n\n[Document Message](DocumentMessage.html)\n\n[Event Message](EventMessage.html)\n\n[Request-Reply](RequestReply.html)\n\n[Return Address](ReturnAddress.html)\n\n[Correlation Identifier](CorrelationIdentifier.html)\n\n[Message Sequence](MessageSequence.html)\n\n[Message Expiration](MessageExpiration.html)\n\n[Format Indicator](FormatIndicator.html)\n\n[Message Routing](MessageRoutingIntro.html)\n\n[Pipes-and-Filters](PipesAndFilters.html)\n\n[Message Router](MessageRouter.html)\n\n[Content-based Router](ContentBasedRouter.html)\n\n[Message Filter](Filter.html)\n\n[Dynamic Router](DynamicRouter.html)\n\n[Recipient List](RecipientList.html)\n\n[Splitter](Sequencer.html)\n\n[Aggregator](Aggregator.html)\n\n[Resequencer](Resequencer.html)\n\n[Composed Msg. Processor](DistributionAggregate.html)\n\n[Scatter-Gather](BroadcastAggregate.html)\n\n[Routing Slip](RoutingTable.html)\n\n[Process Manager](ProcessManager.html)\n\n[Message Broker](MessageBroker.html)\n\n[Message\nTransformation](MessageTransformationIntro.html)\n\n[Message Translator](MessageTranslator.html)\n\n[Envelope Wrapper](EnvelopeWrapper.html)\n\n[Content Enricher](DataEnricher.html)\n\n[Content Filter](ContentFilter.html)\n\n[Claim Check](StoreInLibrary.html)\n\n[Normalizer](Normalizer.html)\n\n[Canonical Data Model](CanonicalDataModel.html)\n\n[Messaging Endpoints](MessagingEndpointsIntro.html)\n\n[Message Endpoint](MessageEndpoint.html)\n\n[Messaging Gateway](MessagingGateway.html)\n\n[Messaging Mapper](MessagingMapper.html)\n\n[Transactional Client](TransactionalClient.html)\n\n[Polling Consumer](PollingConsumer.html)\n\n[Event-driven Consumer](EventDrivenConsumer.html)\n\n[Competing Consumers](CompetingConsumers.html)\n\n[Message Dispatcher](MessageDispatcher.html)\n\n[Selective Consumer](MessageSelector.html)\n\n[Durable Subscriber](DurableSubscription.html)\n\n[Idempotent Receiver](IdempotentReceiver.html)\n\n[Service Activator](MessagingAdapter.html)\n\n[Messaging Channels](MessagingChannelsIntro.html)\n\n[Message Channel](MessageChannel.html)\n\n[Point-to-Point Channel](PointToPointChannel.html)\n\n[Publish-Subscr. Channel](PublishSubscribeChannel.html)\n\n[Datatype Channel](DatatypeChannel.html)\n\n[Invalid Message Channel](InvalidMessageChannel.html)\n\n[Dead Letter Channel](DeadLetterChannel.html)\n\n[Guaranteed Delivery](GuaranteedMessaging.html)\n\n[Channel Adapter](ChannelAdapter.html)\n\n[Messaging Bridge](MessagingBridge.html)\n\n[Message Bus](MessageBus.html)\n\n[Systems Mgmt.](SystemManagementIntro.html)\n\n[Control Bus](ControlBus.html)\n\n[Detour](Detour.html)\n\n[Wire Tap](WireTap.html)\n\n[Message History](MessageHistory.html)\n\n[Message Store](MessageStore.html)\n\n[Smart Proxy](SmartProxy.html)\n\n[Test Message](TestMessage.html)\n\n[Channel Purger](ChannelPurger.html)", "znaku_textu": 6852, "slov": 682, "odkazu": 110, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 15:34:40", "sha256": "4e7aeddaaaf41076903f75e647af7990dcdb940fb5c13c1da0793261f33f003d", "hloubka": 4, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://kafka.apache.org/", "http://creativecommons.org/licenses/by/4.0/", "https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "https://www.architectelevator.com/book", "https://www.cloudstrategybook.com/", "https://www.platformstrategybook.info/"]} {"url": "http://www.enterpriseintegrationpatterns.com/ContentBasedRouter.html", "titulek": "Content-Based Router - Enterprise Integration Patterns", "h1": "", "popis": "How do we handle a situation where the implementation of a single logical function (e.g., inventory check) is spread across multiple physical systems?", "klicova_slova": "Content-Based Router,integration, messaging, events, patterns, event-driven, coupling, eai, middleware, application integration, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns", "og:title": "Content-Based Router - Enterprise Integration Patterns", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/ContentBasedRouter.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/ContentBasedRouter.gif"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Example: Apache CamelNEW"}, {"uroven": 2, "text": "Integration Pattern Language"}], "markdown": "| | Content-Based Router[Messaging Patterns](index.html) » [Message Routing](MessageRoutingIntro.html) | [Contents](toc.html)[⇐ Prev](MessageRoutingIntro.html)[Next ⇒](Filter.html) |\n| --- | --- | --- |\n\nAssume that we are building an order processing system. When an incoming order is received, we first validate the order and then verify that the ordered item is available in the warehouse. This function is performed by the inventory system. This sequence of processing steps is a perfect candidate for the [*Pipes and Filters*](PipesAndFilters.html) style. We create two filters, one for the validation step and one for the inventory system, and route the incoming messages through both filters. However, in many enterprise integration scenarios more than one inventory system exists with each system being able to handle only specific items.\n\nHow do we handle a situation where the implementation of a single logical function (e.g., inventory check) is spread across multiple physical systems?\n\nUse a *Content-Based Router* to route each message to the correct recipient based on message content.\n\nThe *Content-Based Router* examines the message content and routes the message onto a different channel based on data contained in the message. The routing can be based on a number of criteria such as existence of fields, specific field values etc. When implementing a *Content-Based Router*, special caution should be taken to make the routing function easy to maintain as the router can become a point of frequent maintenance. In more sophisticated integration scenarios, the *Content-Based Router* can take on the form of a configurable rules engine that computes the destination channel based on a set of configurable rules.\n\n...\nRead the entire pattern in the book [Enterprise Integration Patterns](/books1.html)\n\n## Example: Apache Camel[NEW](/ramblings/eip1_examples_updated.html)\n\nMany open source ESBs like [Apache Camel](http://camel.apache.org/) have direct support for many Enterprise Integration Patterns, wither in a Java-based DSL or as configuration. For example, setting up a *Content-Based Router* in Camel is quite easy and idiomatic by using a RouteBuilder:\n\n```\nRouteBuilder builder = new RouteBuilder() {\n public void configure() {\n errorHandler(deadLetterChannel(\"mock:error\"));\n\n from(\"direct:in\")\n .choice()\n .when(header(\"type\").isEqualTo(\"widget\"))\n .to(\"direct:widget\")\n .when(header(\"type\").isEqualTo(\"gadget\"))\n .to(\"direct:gadget\")\n .otherwise()\n .to(\"direct:other\");\n }\n};\n```\n\n**Related patterns:**\n\n[*Dynamic Router*](DynamicRouter.html), [*Message Filter*](Filter.html), [*Invalid Message Channel*](InvalidMessageChannel.html), [*Message Router*](MessageRouter.html), [*Pipes and Filters*](PipesAndFilters.html), [*Publish-Subscribe Channel*](PublishSubscribeChannel.html), [*Routing Slip*](RoutingTable.html), [*Transactional Client*](TransactionalClient.html)\n\n---\n\n## Integration Pattern Language\n\n[Message Construct.](MessageConstructionIntro.html)\n\n[Message](Message.html)\n\n[Command Message](CommandMessage.html)\n\n[Document Message](DocumentMessage.html)\n\n[Event Message](EventMessage.html)\n\n[Request-Reply](RequestReply.html)\n\n[Return Address](ReturnAddress.html)\n\n[Correlation Identifier](CorrelationIdentifier.html)\n\n[Message Sequence](MessageSequence.html)\n\n[Message Expiration](MessageExpiration.html)\n\n[Format Indicator](FormatIndicator.html)\n\n[Message Routing](MessageRoutingIntro.html)\n\n[Pipes-and-Filters](PipesAndFilters.html)\n\n[Message Router](MessageRouter.html)\n\n[Content-based Router](ContentBasedRouter.html)\n\n[Message Filter](Filter.html)\n\n[Dynamic Router](DynamicRouter.html)\n\n[Recipient List](RecipientList.html)\n\n[Splitter](Sequencer.html)\n\n[Aggregator](Aggregator.html)\n\n[Resequencer](Resequencer.html)\n\n[Composed Msg. Processor](DistributionAggregate.html)\n\n[Scatter-Gather](BroadcastAggregate.html)\n\n[Routing Slip](RoutingTable.html)\n\n[Process Manager](ProcessManager.html)\n\n[Message Broker](MessageBroker.html)\n\n[Message\nTransformation](MessageTransformationIntro.html)\n\n[Message Translator](MessageTranslator.html)\n\n[Envelope Wrapper](EnvelopeWrapper.html)\n\n[Content Enricher](DataEnricher.html)\n\n[Content Filter](ContentFilter.html)\n\n[Claim Check](StoreInLibrary.html)\n\n[Normalizer](Normalizer.html)\n\n[Canonical Data Model](CanonicalDataModel.html)\n\n[Messaging Endpoints](MessagingEndpointsIntro.html)\n\n[Message Endpoint](MessageEndpoint.html)\n\n[Messaging Gateway](MessagingGateway.html)\n\n[Messaging Mapper](MessagingMapper.html)\n\n[Transactional Client](TransactionalClient.html)\n\n[Polling Consumer](PollingConsumer.html)\n\n[Event-driven Consumer](EventDrivenConsumer.html)\n\n[Competing Consumers](CompetingConsumers.html)\n\n[Message Dispatcher](MessageDispatcher.html)\n\n[Selective Consumer](MessageSelector.html)\n\n[Durable Subscriber](DurableSubscription.html)\n\n[Idempotent Receiver](IdempotentReceiver.html)\n\n[Service Activator](MessagingAdapter.html)\n\n[Messaging Channels](MessagingChannelsIntro.html)\n\n[Message Channel](MessageChannel.html)\n\n[Point-to-Point Channel](PointToPointChannel.html)\n\n[Publish-Subscr. Channel](PublishSubscribeChannel.html)\n\n[Datatype Channel](DatatypeChannel.html)\n\n[Invalid Message Channel](InvalidMessageChannel.html)\n\n[Dead Letter Channel](DeadLetterChannel.html)\n\n[Guaranteed Delivery](GuaranteedMessaging.html)\n\n[Channel Adapter](ChannelAdapter.html)\n\n[Messaging Bridge](MessagingBridge.html)\n\n[Message Bus](MessageBus.html)\n\n[Systems Mgmt.](SystemManagementIntro.html)\n\n[Control Bus](ControlBus.html)\n\n[Detour](Detour.html)\n\n[Wire Tap](WireTap.html)\n\n[Message History](MessageHistory.html)\n\n[Message Store](MessageStore.html)\n\n[Smart Proxy](SmartProxy.html)\n\n[Test Message](TestMessage.html)\n\n[Channel Purger](ChannelPurger.html)", "znaku_textu": 5605, "slov": 511, "odkazu": 110, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 15:34:13", "sha256": "2e1bcb059062a373d4a86319925c989b73ec891cebffe089608b4e48bc69256c", "hloubka": 4, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://camel.apache.org/", "http://creativecommons.org/licenses/by/4.0/", "https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "https://www.architectelevator.com/book", "https://www.cloudstrategybook.com/", "https://www.platformstrategybook.info/"]} {"url": "http://www.enterpriseintegrationpatterns.com/ContentFilter.html", "titulek": "Content Filter - Enterprise Integration Patterns", "h1": "", "popis": "How do you simplify dealing with a large message, when you are interested only in a few data items?", "klicova_slova": "Content Filter,integration, messaging, events, patterns, event-driven, coupling, eai, middleware, application integration, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns", "og:title": "Content Filter - Enterprise Integration Patterns", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/ContentFilter.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/ContentFilter.gif"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Integration Pattern Language"}], "markdown": "Messaging Patterns\n\n[Messaging Patterns](index.html)\n\n- [Integration Styles](IntegrationStylesIntro.html)\n- [Messaging Systems](MessagingComponentsIntro.html)\n- [Messaging Channels](MessagingChannelsIntro.html)\n- [Message Construction](MessageConstructionIntro.html)\n- [Interlude: Simple Messaging](SimpleMessagingIntro.html)\n- [Message Routing](MessageRoutingIntro.html)\n- [Message Transformation](MessageTransformationIntro.html)\n- [Interlude: Composed Messaging](ComposedMessagingExample.html)\n- [Messaging Endpoints](MessagingEndpointsIntro.html)\n- [System Management](SystemManagementIntro.html)\n- Interlude: Systems Management Example\n- Integration Patterns in Practice\n- Concluding Remarks\n- Appendices\n\n| | Content Filter[Messaging Patterns](index.html) » [Message Transformation](MessageTransformationIntro.html) | [Contents](toc.html)[⇐ Prev](DataEnricher.html)[Next ⇒](StoreInLibrary.html) |\n| --- | --- | --- |\n\nThe [*Content Enricher*](DataEnricher.html) helps us in situations where a message receiver requires more - or different - data elements than the message creator provides. There are surprisingly many situations where the opposite effect is desired: removing data elements from a message.\n\nHow do you simplify dealing with a large message, when you are interested only in a few data items?\n\nUse a *Content Filter* to remove unimportant data items from a message leaving only important items.\n\nThe *Content Filter* does not necessarily just remove data elements. A *Content Filter* is also useful to simplify the structure of the message. Often times, messages are represented as tree structures. Many messages originating from external systems or packaged applications contain many levels of nested, repeating groups because they are modeled after generic, normalized database structures. Frequently, known constraints and assumptions make this level of nesting superfluous and a *Content Filter* can be used to 'flatten' the hierarchy into a simple list of elements than can be more easily understood and processed by other systems.\n\n...\nRead the entire pattern in the book [Enterprise Integration Patterns](/books1.html)\n\n**Related patterns:**\n\n[*Channel Adapter*](ChannelAdapter.html), [*Content Enricher*](DataEnricher.html), [*Splitter*](Sequencer.html)\n\n---\n\n## Integration Pattern Language\n\n[Message Construct.](MessageConstructionIntro.html)\n\n[Message](Message.html)\n\n[Command Message](CommandMessage.html)\n\n[Document Message](DocumentMessage.html)\n\n[Event Message](EventMessage.html)\n\n[Request-Reply](RequestReply.html)\n\n[Return Address](ReturnAddress.html)\n\n[Correlation Identifier](CorrelationIdentifier.html)\n\n[Message Sequence](MessageSequence.html)\n\n[Message Expiration](MessageExpiration.html)\n\n[Format Indicator](FormatIndicator.html)\n\n[Message Routing](MessageRoutingIntro.html)\n\n[Pipes-and-Filters](PipesAndFilters.html)\n\n[Message Router](MessageRouter.html)\n\n[Content-based Router](ContentBasedRouter.html)\n\n[Message Filter](Filter.html)\n\n[Dynamic Router](DynamicRouter.html)\n\n[Recipient List](RecipientList.html)\n\n[Splitter](Sequencer.html)\n\n[Aggregator](Aggregator.html)\n\n[Resequencer](Resequencer.html)\n\n[Composed Msg. Processor](DistributionAggregate.html)\n\n[Scatter-Gather](BroadcastAggregate.html)\n\n[Routing Slip](RoutingTable.html)\n\n[Process Manager](ProcessManager.html)\n\n[Message Broker](MessageBroker.html)\n\n[Message\nTransformation](MessageTransformationIntro.html)\n\n[Message Translator](MessageTranslator.html)\n\n[Envelope Wrapper](EnvelopeWrapper.html)\n\n[Content Enricher](DataEnricher.html)\n\n[Content Filter](ContentFilter.html)\n\n[Claim Check](StoreInLibrary.html)\n\n[Normalizer](Normalizer.html)\n\n[Canonical Data Model](CanonicalDataModel.html)\n\n[Messaging Endpoints](MessagingEndpointsIntro.html)\n\n[Message Endpoint](MessageEndpoint.html)\n\n[Messaging Gateway](MessagingGateway.html)\n\n[Messaging Mapper](MessagingMapper.html)\n\n[Transactional Client](TransactionalClient.html)\n\n[Polling Consumer](PollingConsumer.html)\n\n[Event-driven Consumer](EventDrivenConsumer.html)\n\n[Competing Consumers](CompetingConsumers.html)\n\n[Message Dispatcher](MessageDispatcher.html)\n\n[Selective Consumer](MessageSelector.html)\n\n[Durable Subscriber](DurableSubscription.html)\n\n[Idempotent Receiver](IdempotentReceiver.html)\n\n[Service Activator](MessagingAdapter.html)\n\n[Messaging Channels](MessagingChannelsIntro.html)\n\n[Message Channel](MessageChannel.html)\n\n[Point-to-Point Channel](PointToPointChannel.html)\n\n[Publish-Subscr. Channel](PublishSubscribeChannel.html)\n\n[Datatype Channel](DatatypeChannel.html)\n\n[Invalid Message Channel](InvalidMessageChannel.html)\n\n[Dead Letter Channel](DeadLetterChannel.html)\n\n[Guaranteed Delivery](GuaranteedMessaging.html)\n\n[Channel Adapter](ChannelAdapter.html)\n\n[Messaging Bridge](MessagingBridge.html)\n\n[Message Bus](MessageBus.html)\n\n[Systems Mgmt.](SystemManagementIntro.html)\n\n[Control Bus](ControlBus.html)\n\n[Detour](Detour.html)\n\n[Wire Tap](WireTap.html)\n\n[Message History](MessageHistory.html)\n\n[Message Store](MessageStore.html)\n\n[Smart Proxy](SmartProxy.html)\n\n[Test Message](TestMessage.html)\n\n[Channel Purger](ChannelPurger.html)\n\n- » [Read the latest in My Blog](/ramblings)\n- » [Get more insights from My Articles](/articles.html)\n- » [See me live in my Upcoming Talks](/talks)\n\nYou can reuse the following elements under the [Creative Commons Attribution](http://creativecommons.org/licenses/by/4.0/) license: pattern icon, pattern name, problem and solution statements (in bold), and the sketch. Other portions are protected by copyright.\n\n[Enterprise Integration Patterns](https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20)\nThe de-facto language for designing asynchronous, distributed systems. Over 100,000 copies sold.\n\n[The Software Architect Elevator](https://www.architectelevator.com/book)\n\n Rethink the role of architects as a connecting element across organizational layers. Acquire the technical, communication, and organizational skills to succeed in this new role.\n\n[Cloud Strategy](https://www.cloudstrategybook.com)\n\n Make your cloud migration a success by translating high-level goals into conscious decisions with well-understood trade-offs.\n\n[Platform Strategy](https://www.platformstrategybook.info)\n\n Platforms can boost innovation through harmonization, but they aren't easy to build. Learn from over a decade of designing and rolling out IT platforms.", "znaku_textu": 6227, "slov": 528, "odkazu": 108, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 15:34:29", "sha256": "f69bfd2a462917b1a97497a9362c30a30d9744d85cd8258b01fa9ee0a9118afb", "hloubka": 4, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://creativecommons.org/licenses/by/4.0/", "https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "https://www.architectelevator.com/book", "https://www.cloudstrategybook.com/", "https://www.platformstrategybook.info/"]} {"url": "http://www.enterpriseintegrationpatterns.com/ControlBus.html", "titulek": "Control Bus - Enterprise Integration Patterns", "h1": "", "popis": "How can we effectively administer a messaging system that is distributed across multiple platforms and a wide geographic area?", "klicova_slova": "Control Bus,integration, messaging, events, patterns, event-driven, coupling, eai, middleware, application integration, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns", "og:title": "Control Bus - Enterprise Integration Patterns", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/ControlBus.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/ControlBus.gif"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Integration Pattern Language"}], "markdown": "Messaging Patterns\n\n[Messaging Patterns](index.html)\n\n- [Integration Styles](IntegrationStylesIntro.html)\n- [Messaging Systems](MessagingComponentsIntro.html)\n- [Messaging Channels](MessagingChannelsIntro.html)\n- [Message Construction](MessageConstructionIntro.html)\n- [Interlude: Simple Messaging](SimpleMessagingIntro.html)\n- [Message Routing](MessageRoutingIntro.html)\n- [Message Transformation](MessageTransformationIntro.html)\n- [Interlude: Composed Messaging](ComposedMessagingExample.html)\n- [Messaging Endpoints](MessagingEndpointsIntro.html)\n- [System Management](SystemManagementIntro.html)\n- Interlude: Systems Management Example\n- Integration Patterns in Practice\n- Concluding Remarks\n- Appendices\n\n| | Control Bus[Messaging Patterns](index.html) » [System Management](SystemManagementIntro.html) | [Contents](toc.html)[⇐ Prev](SystemManagementIntro.html)[Next ⇒](Detour.html) |\n| --- | --- | --- |\n\nNaturally, enterprise integration systems are distributed. In fact, one of the defining qualities of an enterprise messaging system is to enable communication between disparate systems. Messaging systems allow information to be routed and transformed so that data can be exchanged between these systems. In most cases, these applications are spread across multiple networks, buildings, cities or continents.\n\nHow can we effectively administer a messaging system that is distributed across multiple platforms and a wide geographic area?\n\nUse a *Control Bus* to manage an enterprise integration system. The *Control Bus* uses the same messaging mechanism used by the application data, but uses separate channels to transmit data that is relevant to the management of components involved in the message flow.\n\nEach component in the system is now connected to two messaging subsystems:\n\n- The Application Message Flow\n- The *Control Bus*\n\n...\nRead the entire pattern in the book [Enterprise Integration Patterns](/books1.html)\n\n**Related patterns:**\n\n[*Asynchronous Implementation with MSMQ*](ComposedMessagingMSMQ.html), [*Content-Based Router*](ContentBasedRouter.html), [*Loan Broker System Management*](SystemManagementExample.html), [*Test Message*](TestMessage.html)\n\n---\n\n## Integration Pattern Language\n\n[Message Construct.](MessageConstructionIntro.html)\n\n[Message](Message.html)\n\n[Command Message](CommandMessage.html)\n\n[Document Message](DocumentMessage.html)\n\n[Event Message](EventMessage.html)\n\n[Request-Reply](RequestReply.html)\n\n[Return Address](ReturnAddress.html)\n\n[Correlation Identifier](CorrelationIdentifier.html)\n\n[Message Sequence](MessageSequence.html)\n\n[Message Expiration](MessageExpiration.html)\n\n[Format Indicator](FormatIndicator.html)\n\n[Message Routing](MessageRoutingIntro.html)\n\n[Pipes-and-Filters](PipesAndFilters.html)\n\n[Message Router](MessageRouter.html)\n\n[Content-based Router](ContentBasedRouter.html)\n\n[Message Filter](Filter.html)\n\n[Dynamic Router](DynamicRouter.html)\n\n[Recipient List](RecipientList.html)\n\n[Splitter](Sequencer.html)\n\n[Aggregator](Aggregator.html)\n\n[Resequencer](Resequencer.html)\n\n[Composed Msg. Processor](DistributionAggregate.html)\n\n[Scatter-Gather](BroadcastAggregate.html)\n\n[Routing Slip](RoutingTable.html)\n\n[Process Manager](ProcessManager.html)\n\n[Message Broker](MessageBroker.html)\n\n[Message\nTransformation](MessageTransformationIntro.html)\n\n[Message Translator](MessageTranslator.html)\n\n[Envelope Wrapper](EnvelopeWrapper.html)\n\n[Content Enricher](DataEnricher.html)\n\n[Content Filter](ContentFilter.html)\n\n[Claim Check](StoreInLibrary.html)\n\n[Normalizer](Normalizer.html)\n\n[Canonical Data Model](CanonicalDataModel.html)\n\n[Messaging Endpoints](MessagingEndpointsIntro.html)\n\n[Message Endpoint](MessageEndpoint.html)\n\n[Messaging Gateway](MessagingGateway.html)\n\n[Messaging Mapper](MessagingMapper.html)\n\n[Transactional Client](TransactionalClient.html)\n\n[Polling Consumer](PollingConsumer.html)\n\n[Event-driven Consumer](EventDrivenConsumer.html)\n\n[Competing Consumers](CompetingConsumers.html)\n\n[Message Dispatcher](MessageDispatcher.html)\n\n[Selective Consumer](MessageSelector.html)\n\n[Durable Subscriber](DurableSubscription.html)\n\n[Idempotent Receiver](IdempotentReceiver.html)\n\n[Service Activator](MessagingAdapter.html)\n\n[Messaging Channels](MessagingChannelsIntro.html)\n\n[Message Channel](MessageChannel.html)\n\n[Point-to-Point Channel](PointToPointChannel.html)\n\n[Publish-Subscr. Channel](PublishSubscribeChannel.html)\n\n[Datatype Channel](DatatypeChannel.html)\n\n[Invalid Message Channel](InvalidMessageChannel.html)\n\n[Dead Letter Channel](DeadLetterChannel.html)\n\n[Guaranteed Delivery](GuaranteedMessaging.html)\n\n[Channel Adapter](ChannelAdapter.html)\n\n[Messaging Bridge](MessagingBridge.html)\n\n[Message Bus](MessageBus.html)\n\n[Systems Mgmt.](SystemManagementIntro.html)\n\n[Control Bus](ControlBus.html)\n\n[Detour](Detour.html)\n\n[Wire Tap](WireTap.html)\n\n[Message History](MessageHistory.html)\n\n[Message Store](MessageStore.html)\n\n[Smart Proxy](SmartProxy.html)\n\n[Test Message](TestMessage.html)\n\n[Channel Purger](ChannelPurger.html)\n\n- » [Read the latest in My Blog](/ramblings)\n- » [Get more insights from My Articles](/articles.html)\n- » [See me live in my Upcoming Talks](/talks)\n\nYou can reuse the following elements under the [Creative Commons Attribution](http://creativecommons.org/licenses/by/4.0/) license: pattern icon, pattern name, problem and solution statements (in bold), and the sketch. Other portions are protected by copyright.\n\n[Enterprise Integration Patterns](https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20)\nThe de-facto language for designing asynchronous, distributed systems. Over 100,000 copies sold.\n\n[The Software Architect Elevator](https://www.architectelevator.com/book)\n\n Rethink the role of architects as a connecting element across organizational layers. Acquire the technical, communication, and organizational skills to succeed in this new role.\n\n[Cloud Strategy](https://www.cloudstrategybook.com)\n\n Make your cloud migration a success by translating high-level goals into conscious decisions with well-understood trade-offs.\n\n[Platform Strategy](https://www.platformstrategybook.info)\n\n Platforms can boost innovation through harmonization, but they aren't easy to build. Learn from over a decade of designing and rolling out IT platforms.", "znaku_textu": 6130, "slov": 505, "odkazu": 108, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 15:34:57", "sha256": "02e972bbe0613828b484908e5a6d0c01de80d324a76267dc0bd80763a925f6bb", "hloubka": 4, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://creativecommons.org/licenses/by/4.0/", "https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "https://www.architectelevator.com/book", "https://www.cloudstrategybook.com/", "https://www.platformstrategybook.info/"]} {"url": "http://www.enterpriseintegrationpatterns.com/CorrelationIdentifier.html", "titulek": "Correlation Identifier - Enterprise Integration Patterns", "h1": "", "popis": "How does a requestor that has received a reply know which request this is the reply for?", "klicova_slova": "Correlation Identifier,integration, messaging, events, patterns, event-driven, coupling, eai, middleware, application integration, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns", "og:title": "Correlation Identifier - Enterprise Integration Patterns", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/CorrelationIdentifier.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/CorrelationIdentifierSolution.gif"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Integration Pattern Language"}], "markdown": "Messaging Patterns\n\n[Messaging Patterns](index.html)\n\n- [Integration Styles](IntegrationStylesIntro.html)\n- [Messaging Systems](MessagingComponentsIntro.html)\n- [Messaging Channels](MessagingChannelsIntro.html)\n- [Message Construction](MessageConstructionIntro.html)\n- [Interlude: Simple Messaging](SimpleMessagingIntro.html)\n- [Message Routing](MessageRoutingIntro.html)\n- [Message Transformation](MessageTransformationIntro.html)\n- [Interlude: Composed Messaging](ComposedMessagingExample.html)\n- [Messaging Endpoints](MessagingEndpointsIntro.html)\n- [System Management](SystemManagementIntro.html)\n- Interlude: Systems Management Example\n- Integration Patterns in Practice\n- Concluding Remarks\n- Appendices\n\n| | Correlation Identifier[Messaging Patterns](index.html) » [Message Construction](MessageConstructionIntro.html) | [Contents](toc.html)[⇐ Prev](ReturnAddress.html)[Next ⇒](MessageSequence.html) |\n| --- | --- | --- |\n\nMy application is using [*Messaging*](Messaging.html) to perform a [*Request-Reply*](RequestReply.html) and has received a reply message.\n\nHow does a requestor that has received a reply know which request this is the reply for?\n\nEach reply message should contain a *Correlation Identifier*, a unique identifier that indicates which request message this reply is for.\n\nThere are six parts to *Correlation Identifier*:\n\n1. **Requestor** — An application that performs a business task by sending a request and waiting for a reply.\n2. **Replier** — Another application that receives the request, fulfills it, then sends the reply. It gets the request ID from the request and stores it as the correlation ID in the reply.\n3. **Request** — A [*Message*](Message.html) sent from the requestor to the replier containing a request ID.\n4. **Reply** — A [*Message*](Message.html) sent from the replier to the requestor containing a correlation ID.\n5. **Request ID** — A token in the request that uniquely identifies the request.\n6. **Correlation ID** — A token in the reply that has the same value as the request ID in the request.\n\n...\nRead the entire pattern in the book [Enterprise Integration Patterns](/books1.html)\n\n**Related patterns:**\n\n[*Remote Procedure Invocation*](EncapsulatedSynchronousIntegration.html), [*Message*](Message.html), [*Selective Consumer*](MessageSelector.html), [*Message Sequence*](MessageSequence.html), [*Messaging*](Messaging.html), [*Request-Reply*](RequestReply.html), [*Return Address*](ReturnAddress.html)\n\n**Further reading:**\n\n- [Correlation and Conversations](/ramblings/09_correlation.html)\n\n---\n\n## Integration Pattern Language\n\n[Message Construct.](MessageConstructionIntro.html)\n\n[Message](Message.html)\n\n[Command Message](CommandMessage.html)\n\n[Document Message](DocumentMessage.html)\n\n[Event Message](EventMessage.html)\n\n[Request-Reply](RequestReply.html)\n\n[Return Address](ReturnAddress.html)\n\n[Correlation Identifier](CorrelationIdentifier.html)\n\n[Message Sequence](MessageSequence.html)\n\n[Message Expiration](MessageExpiration.html)\n\n[Format Indicator](FormatIndicator.html)\n\n[Message Routing](MessageRoutingIntro.html)\n\n[Pipes-and-Filters](PipesAndFilters.html)\n\n[Message Router](MessageRouter.html)\n\n[Content-based Router](ContentBasedRouter.html)\n\n[Message Filter](Filter.html)\n\n[Dynamic Router](DynamicRouter.html)\n\n[Recipient List](RecipientList.html)\n\n[Splitter](Sequencer.html)\n\n[Aggregator](Aggregator.html)\n\n[Resequencer](Resequencer.html)\n\n[Composed Msg. Processor](DistributionAggregate.html)\n\n[Scatter-Gather](BroadcastAggregate.html)\n\n[Routing Slip](RoutingTable.html)\n\n[Process Manager](ProcessManager.html)\n\n[Message Broker](MessageBroker.html)\n\n[Message\nTransformation](MessageTransformationIntro.html)\n\n[Message Translator](MessageTranslator.html)\n\n[Envelope Wrapper](EnvelopeWrapper.html)\n\n[Content Enricher](DataEnricher.html)\n\n[Content Filter](ContentFilter.html)\n\n[Claim Check](StoreInLibrary.html)\n\n[Normalizer](Normalizer.html)\n\n[Canonical Data Model](CanonicalDataModel.html)\n\n[Messaging Endpoints](MessagingEndpointsIntro.html)\n\n[Message Endpoint](MessageEndpoint.html)\n\n[Messaging Gateway](MessagingGateway.html)\n\n[Messaging Mapper](MessagingMapper.html)\n\n[Transactional Client](TransactionalClient.html)\n\n[Polling Consumer](PollingConsumer.html)\n\n[Event-driven Consumer](EventDrivenConsumer.html)\n\n[Competing Consumers](CompetingConsumers.html)\n\n[Message Dispatcher](MessageDispatcher.html)\n\n[Selective Consumer](MessageSelector.html)\n\n[Durable Subscriber](DurableSubscription.html)\n\n[Idempotent Receiver](IdempotentReceiver.html)\n\n[Service Activator](MessagingAdapter.html)\n\n[Messaging Channels](MessagingChannelsIntro.html)\n\n[Message Channel](MessageChannel.html)\n\n[Point-to-Point Channel](PointToPointChannel.html)\n\n[Publish-Subscr. Channel](PublishSubscribeChannel.html)\n\n[Datatype Channel](DatatypeChannel.html)\n\n[Invalid Message Channel](InvalidMessageChannel.html)\n\n[Dead Letter Channel](DeadLetterChannel.html)\n\n[Guaranteed Delivery](GuaranteedMessaging.html)\n\n[Channel Adapter](ChannelAdapter.html)\n\n[Messaging Bridge](MessagingBridge.html)\n\n[Message Bus](MessageBus.html)\n\n[Systems Mgmt.](SystemManagementIntro.html)\n\n[Control Bus](ControlBus.html)\n\n[Detour](Detour.html)\n\n[Wire Tap](WireTap.html)\n\n[Message History](MessageHistory.html)\n\n[Message Store](MessageStore.html)\n\n[Smart Proxy](SmartProxy.html)\n\n[Test Message](TestMessage.html)\n\n[Channel Purger](ChannelPurger.html)\n\n- » [Read the latest in My Blog](/ramblings)\n- » [Get more insights from My Articles](/articles.html)\n- » [See me live in my Upcoming Talks](/talks)\n\nYou can reuse the following elements under the [Creative Commons Attribution](http://creativecommons.org/licenses/by/4.0/) license: pattern icon, pattern name, problem and solution statements (in bold), and the sketch. Other portions are protected by copyright.\n\n[Enterprise Integration Patterns](https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20)\nThe de-facto language for designing asynchronous, distributed systems. Over 100,000 copies sold.\n\n[The Software Architect Elevator](https://www.architectelevator.com/book)\n\n Rethink the role of architects as a connecting element across organizational layers. Acquire the technical, communication, and organizational skills to succeed in this new role.\n\n[Cloud Strategy](https://www.cloudstrategybook.com)\n\n Make your cloud migration a success by translating high-level goals into conscious decisions with well-understood trade-offs.\n\n[Platform Strategy](https://www.platformstrategybook.info)\n\n Platforms can boost innovation through harmonization, but they aren't easy to build. Learn from over a decade of designing and rolling out IT platforms.", "znaku_textu": 6477, "slov": 567, "odkazu": 109, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 15:34:06", "sha256": "d388f9c3f4b82638a3d57033e9e8e779ab919370c13af8a5fd79c76219e327e1", "hloubka": 4, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://creativecommons.org/licenses/by/4.0/", "https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "https://www.architectelevator.com/book", "https://www.cloudstrategybook.com/", "https://www.platformstrategybook.info/"]} {"url": "http://www.enterpriseintegrationpatterns.com/DataEnricher.html", "titulek": "Content Enricher - Enterprise Integration Patterns", "h1": "", "popis": "How do we communicate with another system if the message originator does not have all the required data items available?", "klicova_slova": "Content Enricher,integration, messaging, events, patterns, event-driven, coupling, eai, middleware, application integration, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns", "og:title": "Content Enricher - Enterprise Integration Patterns", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/DataEnricher.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/DataEnricher.gif"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Example: Content Enricher with Amazon EventBridge PipesNEW"}, {"uroven": 2, "text": "Integration Pattern Language"}], "markdown": "| | Content Enricher[Messaging Patterns](index.html) » [Message Transformation](MessageTransformationIntro.html) | [Contents](toc.html)[⇐ Prev](EnvelopeWrapper.html)[Next ⇒](ContentFilter.html) |\n| --- | --- | --- |\n\nWhen sending messages from one system to another it is common for the target system to require more information than the source system can provide. For example, incoming Address messages may just contain the ZIP code because the designers felt that storing a redundant state code would be superfluous. Likely, another system is going to want to specify both a state code and a ZIP code field. Yet another system may not actually use state codes, but spell the state name out because it uses free-form addresses in order to support international addresses. Likewise, one system may provide us with a customer ID, but the receiving system actually requires the customer name and address. An order message sent by the order management system may just contain an order number, but we need to find the customer ID associated with that order, so we can pass it to the customer management system. The scenarios are plentiful.\n\nHow do we communicate with another system if the message originator does not have all the required data items available?\n\nUse a specialized transformer, a *Content Enricher*, to access an external data source in order to augment a message with missing information.\n\nThe *Content Enricher* uses information inside the incoming message (e.g. key fields) to retrieve data from an external source. After the *Content Enricher* retrieves the required data from the resource, it appends the data to the message. The original information from the incoming message may be carried over into the resulting message or may no longer be needed, depending on the specific needs of the receiving application.\n\nThe additional information injected by the *Content Enricher* has to be available somewhere in the system. The most common sources for the new data are:\n\n- **Computation** The *Content Enricher* may be able to compute the missing information. In this case, the algorithm incorporates the additional information. For example, if the receiving system requires a state code but the incoming message only contains a ZIP code. Or, a receiving system may require a data format that specifies the total size of the message. The *Content Enricher* can add the length of all message fields and thus compute the message size. This form of *Content Enricher* is very similar to the basic [*Message Translator*](MessageTranslator.html) because it needs no external data source.\n- **Environment** The *Content Enricher* may be able to retrieve the additional data from the operating environment. The most common example is a time stamp. For example, the receiving system may require each message to carry a time stamp. if the sending system does not include this field, the *Content Enricher* can get the current time from the operating system and add it to the message.\n- **Another System** This option is the most common one. The *Content Enricher* has to retrieve the missing data from another system. This data resource can take on a number of forms, including a database, a file, an LDAP directory, a system, or a user who manually enters missing data.\n\n...\nRead the entire pattern in the book [Enterprise Integration Patterns](/books1.html)\n\n## Example: Content Enricher with Amazon EventBridge Pipes[NEW](/ramblings/eip1_examples_updated.html)\n\nFor cloud-based messaging systems, [Amazon EventBridge Pipes](https://docs.aws.amazon.com/eventbridge/latest/userguide/eb-pipes.html#pipes-enrichment) can implement a *Content Enricher* through the \"Enrichment\" step:\n\n*Enriching messages with Amazon EventBridge Pipes*\n\nThe step itself is a slight misnomer as it can implement any [*Message Translator*](MessageTranslator.html) or even a [*Message Filter*](Filter.html) for batched sources. The pipe simply passes on the message(s) that are returned by the *Enrichment* step. To build an actual *Content Enricher*, you can use a Lambda function that fetches additional data from a DynamoDB table based on a key from the original message. You can find the source code for this example implementation in the [EIP Code Repository](https://github.com/spac3lord/eip/tree/master/ContentEnricher).\n\nYou start out by creating two [*Message Channel*](MessageChannel.html)s in form of Amazon SQS Queues (the example uses the AWS CLI command line to keep things simple; for real projects an automation script is highly recommended):\n\n```\n$ aws sqs create-queue --queue-name EntityIDs --attributes='{\"MessageRetentionPeriod\": \"300\"}'\n$ aws sqs create-queue --queue-name EntityUpdates --attributes='{\"MessageRetentionPeriod\": \"300\"}'\n$ aws sqs list-queues\n```\n\nThe last command prints out the URLs of the created queues, which you will need later.\n\nThe *Content Enricher*, implemented in EventBridge Pipes, Lambda, and DynamoDB, will fetch messages containing just id fields from *EntityID* queue and publish enriched events to the *EntityUpdates* queue. To build the *Content Enricher*, you first create a table to hold the *Entity* data and load it up with sample data, which is most easily done with a JSON file (available in the [EIP Code Repository](https://github.com/spac3lord/eip/tree/master/ContentEnricher)):\n\n```\n$ aws dynamodb create-table --table-name Entities \\\n --attribute-definitions AttributeName=id,AttributeType=S \\\n --key-schema AttributeName=id,KeyType=HASH \\\n --billing-mode PAY_PER_REQUEST\n\n$ aws dynamodb batch-write-item --request-items file://entities.json\n```\n\nTo check that the table is loaded (and to get accustomed to DynamoDB's syntax), you can fetch an entity:\n\n```\n $ aws dynamodb get-item --table-name Entities --key '{\"id\": {\"S\": \"123\"}}'\n {\n \"Item\": {\n \"id\": { \"S\": \"123\" },\n \"Amount\": { \"N\": \"12.34\" },\n \"Type\": { \"S\": \"Order\" },\n \"Customer\": { \"S\": \"Pete's Pizza\" }\n }\n}\n```\n\nBefore you create the Pipe, you need to create a security role with the required permissions (the trust policy file is supplied in the EIP repository) so that your pipe can read and write messages from SQS and invoke a Lambda function. It's also handy to get your account ID and store it in a variable (if the command line doesn't support evaluations, you can execute the command by hand and set the variable explicitly or just replace $id with the number on each command line):\n\n```\n$ id=`aws sts get-caller-identity --query 'Account' --output text`\n$ echo $id\n1234567890\n\n$ aws iam create-role --role-name EventBridge_Pipes_Enricher --assume-role-policy-document file://trust_policy_pipes.json\n\n$ aws iam create-policy --policy-name pipes_sqs_lambda_sqs --policy-document file://pipes_role_policy.json \\\n --query Policy.Arn --output text\n\n$ aws iam attach-role-policy --role-name EventBridge_Pipes_Enricher --policy-arn arn:aws:iam::$id:policy/pipes_sqs_lambda_sqs\n```\n\nAdditionally, you need to grant write permission to the *EntityUpdates* queue with a so-called resource policy that's attached to a resource instead of a role:\n\n```\n$ aws sqs add-permission --queue-url= https://sqs.ap-southeast-1.amazonaws.com/$id/EntityUpdates \\\n --aws-account-ids=$id \\\n --actions SendMessage ReceiveMessage DeleteMessage ChangeMessageVisibility \\\n --label SendEntities\n```\n\nYou can now create a Pipe and give it the required permissions through the role you just created (notice the use of $id for the account ID):\n\n```\n$ aws pipes create-pipe --name ContentEnricher \\\n --source arn:aws:sqs:ap-southeast-1:$id:EntityIDs \\\n --target arn:aws:sqs:ap-southeast-1:$id:EntityUpdates \\\n --enrichment arn:aws:lambda:ap-southeast-1:$id:function:EnrichFromDynamoDB \\\n --role-arn arn:aws:iam::$id:role/EventBridge_Pipes_Enricher\n```\n\nYou also need to deploy the Lambda function that looks up the entities from the database and returns the enriched messages. EventBridge pipes can work in batches, meaning it can fetch more than one event from the event source at one time. Correspondingly, your Lambda function has to be prepared receive a list of IDs. In my implementation, it uses the batch_get_item method to look up all IDs at once (invalid IDs simply don't return an item):\n\n```\nimport json\nimport boto3\n\ndynamo = boto3.resource('dynamodb')\ntable_name = 'Entities'\n\ndef lambda_handler(event, context):\n keys = []\n for evt in event:\n body = json.loads(evt['body'])\n keys += [ {'id': body['id']} ]\n data = dynamo.batch_get_item(RequestItems={table_name: {'Keys': keys} })\n return data['Responses'][table_name]\n```\n\nAs you might have guessed, the Lambda function also needs a role that allows it to read from DynamoDB and write logs:\n\n```\n$ aws iam create-role --role-name Lambda_Enricher --assume-role-policy-document file://trust_policy_lambda.json\n\n$ aws iam attach-role-policy --role-name Lambda_Enricher --policy-arn arn:aws:iam::aws:policy/AmazonDynamoDBReadOnlyAccess\n\n$ aws iam attach-role-policy --role-name Lambda_Enricher --policy-arn arn:aws:iam::aws:policy/service-role/AWSLambdaBasicExecutionRole\n```\n\nTo deploy the function directly, you need to first zip it up (using any Zip utility) to code.zip and deploy it with the following command line (again, notice the $id being referenced):\n\n```\n$ aws lambda create-function --function-name EnrichFromDynamoDB \\\n --role arn:aws:iam::$id:role/Lambda_Enricher \\\n --runtime python3.9 --zip-file fileb://code.zip --handler DynamoDBEnricher.lambda_handler\n```\n\nShow time! You can now send a message to the inbound queue for the *Content Enricher* and poll the result queue for enriched messages (the query and output parameters just filter down the output to the message body; feel free to omit them for the full experience):\n\n```\n$ aws sqs send-message --queue-url https://sqs.ap-southeast-1.amazonaws.com/$id/EntityIDs --message-body '{\"id\": \"123\"}'\n$ aws sqs send-message --queue-url https://sqs.ap-southeast-1.amazonaws.com/$id/EntityIDs --message-body '{\"id\": \"456\"}'\n\n$ aws sqs receive-message --max-number-of-messages 5 \\\n --queue-url https://sqs.ap-southeast-1.amazonaws.com/$id/EntityUpdates \\\n --query 'Messages[*].Body' --output text\n{\"id\":\"123\",\"Amount\":\"12.34\",\"Type\":\"Order\",\"Customer\":\"Pete's Pizza\"}\n{\"id\":\"456\",\"Amount\":\"22.22\",\"Type\":\"Order\",\"Customer\":\"Mary's Muffins\"}\n```\n\n**Related patterns:**\n\n[*Content Filter*](ContentFilter.html), [*Event Message*](EventMessage.html), [*Message Filter*](Filter.html), [*Message Channel*](MessageChannel.html), [*Message Translator*](MessageTranslator.html), [*Claim Check*](StoreInLibrary.html)\n\n---\n\n## Integration Pattern Language\n\n[Message Construct.](MessageConstructionIntro.html)\n\n[Message](Message.html)\n\n[Command Message](CommandMessage.html)\n\n[Document Message](DocumentMessage.html)\n\n[Event Message](EventMessage.html)\n\n[Request-Reply](RequestReply.html)\n\n[Return Address](ReturnAddress.html)\n\n[Correlation Identifier](CorrelationIdentifier.html)\n\n[Message Sequence](MessageSequence.html)\n\n[Message Expiration](MessageExpiration.html)\n\n[Format Indicator](FormatIndicator.html)\n\n[Message Routing](MessageRoutingIntro.html)\n\n[Pipes-and-Filters](PipesAndFilters.html)\n\n[Message Router](MessageRouter.html)\n\n[Content-based Router](ContentBasedRouter.html)\n\n[Message Filter](Filter.html)\n\n[Dynamic Router](DynamicRouter.html)\n\n[Recipient List](RecipientList.html)\n\n[Splitter](Sequencer.html)\n\n[Aggregator](Aggregator.html)\n\n[Resequencer](Resequencer.html)\n\n[Composed Msg. Processor](DistributionAggregate.html)\n\n[Scatter-Gather](BroadcastAggregate.html)\n\n[Routing Slip](RoutingTable.html)\n\n[Process Manager](ProcessManager.html)\n\n[Message Broker](MessageBroker.html)\n\n[Message\nTransformation](MessageTransformationIntro.html)\n\n[Message Translator](MessageTranslator.html)\n\n[Envelope Wrapper](EnvelopeWrapper.html)\n\n[Content Enricher](DataEnricher.html)\n\n[Content Filter](ContentFilter.html)\n\n[Claim Check](StoreInLibrary.html)\n\n[Normalizer](Normalizer.html)\n\n[Canonical Data Model](CanonicalDataModel.html)\n\n[Messaging Endpoints](MessagingEndpointsIntro.html)\n\n[Message Endpoint](MessageEndpoint.html)\n\n[Messaging Gateway](MessagingGateway.html)\n\n[Messaging Mapper](MessagingMapper.html)\n\n[Transactional Client](TransactionalClient.html)\n\n[Polling Consumer](PollingConsumer.html)\n\n[Event-driven Consumer](EventDrivenConsumer.html)\n\n[Competing Consumers](CompetingConsumers.html)\n\n[Message Dispatcher](MessageDispatcher.html)\n\n[Selective Consumer](MessageSelector.html)\n\n[Durable Subscriber](DurableSubscription.html)\n\n[Idempotent Receiver](IdempotentReceiver.html)\n\n[Service Activator](MessagingAdapter.html)\n\n[Messaging Channels](MessagingChannelsIntro.html)\n\n[Message Channel](MessageChannel.html)\n\n[Point-to-Point Channel](PointToPointChannel.html)\n\n[Publish-Subscr. Channel](PublishSubscribeChannel.html)\n\n[Datatype Channel](DatatypeChannel.html)\n\n[Invalid Message Channel](InvalidMessageChannel.html)\n\n[Dead Letter Channel](DeadLetterChannel.html)\n\n[Guaranteed Delivery](GuaranteedMessaging.html)\n\n[Channel Adapter](ChannelAdapter.html)\n\n[Messaging Bridge](MessagingBridge.html)\n\n[Message Bus](MessageBus.html)\n\n[Systems Mgmt.](SystemManagementIntro.html)\n\n[Control Bus](ControlBus.html)\n\n[Detour](Detour.html)\n\n[Wire Tap](WireTap.html)\n\n[Message History](MessageHistory.html)\n\n[Message Store](MessageStore.html)\n\n[Smart Proxy](SmartProxy.html)\n\n[Test Message](TestMessage.html)\n\n[Channel Purger](ChannelPurger.html)", "znaku_textu": 13013, "slov": 1606, "odkazu": 111, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 15:34:28", "sha256": "5abab4ed38c6771bde64ba64de89986647662400f460b1873ade68e41f7dcb1d", "hloubka": 4, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://docs.aws.amazon.com/eventbridge/latest/userguide/eb-pipes.html", "https://github.com/spac3lord/eip/tree/master/ContentEnricher", "http://creativecommons.org/licenses/by/4.0/", "https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "https://www.architectelevator.com/book", "https://www.cloudstrategybook.com/", "https://www.platformstrategybook.info/"]} {"url": "http://www.enterpriseintegrationpatterns.com/DatatypeChannel.html", "titulek": "Datatype Channel - Enterprise Integration Patterns", "h1": "", "popis": "How can the application send a data item such that the receiver will know how to process it?", "klicova_slova": "Datatype Channel,integration, messaging, events, patterns, event-driven, coupling, eai, middleware, application integration, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns", "og:title": "Datatype Channel - Enterprise Integration Patterns", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/DatatypeChannel.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/DatatypeSolution.gif"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Integration Pattern Language"}], "markdown": "Messaging Patterns\n\n[Messaging Patterns](index.html)\n\n- [Integration Styles](IntegrationStylesIntro.html)\n- [Messaging Systems](MessagingComponentsIntro.html)\n- [Messaging Channels](MessagingChannelsIntro.html)\n- [Message Construction](MessageConstructionIntro.html)\n- [Interlude: Simple Messaging](SimpleMessagingIntro.html)\n- [Message Routing](MessageRoutingIntro.html)\n- [Message Transformation](MessageTransformationIntro.html)\n- [Interlude: Composed Messaging](ComposedMessagingExample.html)\n- [Messaging Endpoints](MessagingEndpointsIntro.html)\n- [System Management](SystemManagementIntro.html)\n- Interlude: Systems Management Example\n- Integration Patterns in Practice\n- Concluding Remarks\n- Appendices\n\n| | Datatype Channel[Messaging Patterns](index.html) » [Messaging Channels](MessagingChannelsIntro.html) | [Contents](toc.html)[⇐ Prev](PublishSubscribeChannel.html)[Next ⇒](InvalidMessageChannel.html) |\n| --- | --- | --- |\n\nAn application is using [*Messaging*](Messaging.html) to transfer different types of data, such as different types of documents.\n\nHow can the application send a data item such that the receiver will know how to process it?\n\nUse a separate *Datatype Channel* for each data type, so that all data on a particular channel is of the same type.\n\nBy using a separate *Datatype Channel* for each type of data, all of the messages on a given channel will contain the same type of data. The sender, knowing what type the data is, will need to select the appropriate channel to send it on. The receiver, knowing what channel the data was received on, will know what its type is.\n\n...\nRead the entire pattern in the book [Enterprise Integration Patterns](/books1.html)\n\n**Related patterns:**\n\n[*Canonical Data Model*](CanonicalDataModel.html), [*Command Message*](CommandMessage.html), [*Format Indicator*](FormatIndicator.html), [*Message Channel*](MessageChannel.html), [*Message Dispatcher*](MessageDispatcher.html), [*Selective Consumer*](MessageSelector.html), [*Messaging*](Messaging.html)\n\n---\n\n## Integration Pattern Language\n\n[Message Construct.](MessageConstructionIntro.html)\n\n[Message](Message.html)\n\n[Command Message](CommandMessage.html)\n\n[Document Message](DocumentMessage.html)\n\n[Event Message](EventMessage.html)\n\n[Request-Reply](RequestReply.html)\n\n[Return Address](ReturnAddress.html)\n\n[Correlation Identifier](CorrelationIdentifier.html)\n\n[Message Sequence](MessageSequence.html)\n\n[Message Expiration](MessageExpiration.html)\n\n[Format Indicator](FormatIndicator.html)\n\n[Message Routing](MessageRoutingIntro.html)\n\n[Pipes-and-Filters](PipesAndFilters.html)\n\n[Message Router](MessageRouter.html)\n\n[Content-based Router](ContentBasedRouter.html)\n\n[Message Filter](Filter.html)\n\n[Dynamic Router](DynamicRouter.html)\n\n[Recipient List](RecipientList.html)\n\n[Splitter](Sequencer.html)\n\n[Aggregator](Aggregator.html)\n\n[Resequencer](Resequencer.html)\n\n[Composed Msg. Processor](DistributionAggregate.html)\n\n[Scatter-Gather](BroadcastAggregate.html)\n\n[Routing Slip](RoutingTable.html)\n\n[Process Manager](ProcessManager.html)\n\n[Message Broker](MessageBroker.html)\n\n[Message\nTransformation](MessageTransformationIntro.html)\n\n[Message Translator](MessageTranslator.html)\n\n[Envelope Wrapper](EnvelopeWrapper.html)\n\n[Content Enricher](DataEnricher.html)\n\n[Content Filter](ContentFilter.html)\n\n[Claim Check](StoreInLibrary.html)\n\n[Normalizer](Normalizer.html)\n\n[Canonical Data Model](CanonicalDataModel.html)\n\n[Messaging Endpoints](MessagingEndpointsIntro.html)\n\n[Message Endpoint](MessageEndpoint.html)\n\n[Messaging Gateway](MessagingGateway.html)\n\n[Messaging Mapper](MessagingMapper.html)\n\n[Transactional Client](TransactionalClient.html)\n\n[Polling Consumer](PollingConsumer.html)\n\n[Event-driven Consumer](EventDrivenConsumer.html)\n\n[Competing Consumers](CompetingConsumers.html)\n\n[Message Dispatcher](MessageDispatcher.html)\n\n[Selective Consumer](MessageSelector.html)\n\n[Durable Subscriber](DurableSubscription.html)\n\n[Idempotent Receiver](IdempotentReceiver.html)\n\n[Service Activator](MessagingAdapter.html)\n\n[Messaging Channels](MessagingChannelsIntro.html)\n\n[Message Channel](MessageChannel.html)\n\n[Point-to-Point Channel](PointToPointChannel.html)\n\n[Publish-Subscr. Channel](PublishSubscribeChannel.html)\n\n[Datatype Channel](DatatypeChannel.html)\n\n[Invalid Message Channel](InvalidMessageChannel.html)\n\n[Dead Letter Channel](DeadLetterChannel.html)\n\n[Guaranteed Delivery](GuaranteedMessaging.html)\n\n[Channel Adapter](ChannelAdapter.html)\n\n[Messaging Bridge](MessagingBridge.html)\n\n[Message Bus](MessageBus.html)\n\n[Systems Mgmt.](SystemManagementIntro.html)\n\n[Control Bus](ControlBus.html)\n\n[Detour](Detour.html)\n\n[Wire Tap](WireTap.html)\n\n[Message History](MessageHistory.html)\n\n[Message Store](MessageStore.html)\n\n[Smart Proxy](SmartProxy.html)\n\n[Test Message](TestMessage.html)\n\n[Channel Purger](ChannelPurger.html)\n\n- » [Read the latest in My Blog](/ramblings)\n- » [Get more insights from My Articles](/articles.html)\n- » [See me live in my Upcoming Talks](/talks)\n\nYou can reuse the following elements under the [Creative Commons Attribution](http://creativecommons.org/licenses/by/4.0/) license: pattern icon, pattern name, problem and solution statements (in bold), and the sketch. Other portions are protected by copyright.\n\n[Enterprise Integration Patterns](https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20)\nThe de-facto language for designing asynchronous, distributed systems. Over 100,000 copies sold.\n\n[The Software Architect Elevator](https://www.architectelevator.com/book)\n\n Rethink the role of architects as a connecting element across organizational layers. Acquire the technical, communication, and organizational skills to succeed in this new role.\n\n[Cloud Strategy](https://www.cloudstrategybook.com)\n\n Make your cloud migration a success by translating high-level goals into conscious decisions with well-understood trade-offs.\n\n[Platform Strategy](https://www.platformstrategybook.info)\n\n Platforms can boost innovation through harmonization, but they aren't easy to build. Learn from over a decade of designing and rolling out IT platforms.", "znaku_textu": 5974, "slov": 494, "odkazu": 108, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 15:34:50", "sha256": "c3f2c8b483585a0a5266e02aa491ddfacbb5154f2f7c89e91ba5678a73b5c3f8", "hloubka": 4, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://creativecommons.org/licenses/by/4.0/", "https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "https://www.architectelevator.com/book", "https://www.cloudstrategybook.com/", "https://www.platformstrategybook.info/"]} {"url": "http://www.enterpriseintegrationpatterns.com/DeadLetterChannel.html", "titulek": "Dead Letter Channel - Enterprise Integration Patterns", "h1": "", "popis": "What will the messaging system do with a message it cannot deliver?", "klicova_slova": "Dead Letter Channel,integration, messaging, events, patterns, event-driven, coupling, eai, middleware, application integration, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns", "og:title": "Dead Letter Channel - Enterprise Integration Patterns", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/DeadLetterChannel.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/DeadLetterChannelSolution.gif"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Example: Dead Letter Queue in Amazon SQSNEW"}, {"uroven": 2, "text": "Example: Kafka ConnectNEW"}, {"uroven": 2, "text": "Integration Pattern Language"}], "markdown": "| | Dead Letter Channel[Messaging Patterns](index.html) » [Messaging Channels](MessagingChannelsIntro.html) | [Contents](toc.html)[⇐ Prev](InvalidMessageChannel.html)[Next ⇒](GuaranteedMessaging.html) |\n| --- | --- | --- |\n\nAn enterprise is using [*Messaging*](Messaging.html) to integrate applications.\n\nWhat will the messaging system do with a message it cannot deliver?\n\nWhen a messaging system determines that it cannot or should not deliver a message, it may elect to move the message to a *Dead Letter Channel*.\n\nThe specific way a *Dead Letter Channel* works depends on the specific messaging system’s implementation, if it provides one at all. The channel may be called a “dead message queue” [[Monson-Haefel, p.125](http://www.amazon.com/exec/obidos/ASIN/0596000685/enterpriseint-20)] or *dead letter queue* (DLQ). [[MQSeries](http://www.ibm.com/software/mqseries)], [[Dickman, pp.28-29](http://www.amazon.com/exec/obidos/ASIN/0201325810/enterpriseint-20)] Typically, each machine the messaging system is installed on has its own local *Dead Letter Channel* so that whatever machine a message dies on, it can be moved from one local queue to another without any networking uncertainties. This also records what machine the message died on. When the messaging system moves the message, it may also record the original channel the message was supposed to be delivered on.\n\n...\nRead the entire pattern in the book [Enterprise Integration Patterns](/books1.html)\n\n## Example: Dead Letter Queue in Amazon SQS[NEW](/ramblings/eip1_examples_updated.html)\n\nMany hosted messaging systems, including Amazon's [Simple Queuing Service (SQS)](https://aws.amazon.com/sqs) include a *Dead Letter Channel*. Amazon's Dead Letter Queue behavior is closely related to the way SQS delivers messages. After a consumer fetches a message from a queue, the messages remains on the queue, but hidden from other consumers to avoid fetching and processing the same message multiple times. After processing a message, the consumer is responsible for explicitly deleting the message. If the consumer doesn't delete the message, for example because because it crashed while processing the message, the message becomes visible again after the message's *Visibility Timeout* expires. Each time this happens, the message's receive count is increased. When this count reaches a configured limit, the message is considered undeliverable and placed in a designated Dead Letter Queue. Other AWS services like [Amazon EventBridge](https://aws.amazon.com/eventbridge/) also feature a *Dead Letter Channel*.\n\n## Example: Kafka Connect[NEW](/ramblings/eip1_examples_updated.html)\n\nKafka Connect, Confluent's tool for data streaming to and from Kafka includes a *Dead Letter Channel* for sink connectors. As per the [documentation](https://docs.confluent.io/platform/current/connect/concepts.html#dead-letter-queue), the *Dead Letter Channel* is active when the connector is configured to tolerate errors (otherwise, it'd abort and not send messages to any queue). The name of the *Dead Letter Channel* can easily be configured:\n\n```\nerrors.tolerance = all\nerrors.deadletterqueue.topic.name = \n```\n\n**Related patterns:**\n\n[*Invalid Message Channel*](InvalidMessageChannel.html), [*Message Expiration*](MessageExpiration.html), [*Selective Consumer*](MessageSelector.html), [*Messaging*](Messaging.html)\n\n---\n\n## Integration Pattern Language\n\n[Message Construct.](MessageConstructionIntro.html)\n\n[Message](Message.html)\n\n[Command Message](CommandMessage.html)\n\n[Document Message](DocumentMessage.html)\n\n[Event Message](EventMessage.html)\n\n[Request-Reply](RequestReply.html)\n\n[Return Address](ReturnAddress.html)\n\n[Correlation Identifier](CorrelationIdentifier.html)\n\n[Message Sequence](MessageSequence.html)\n\n[Message Expiration](MessageExpiration.html)\n\n[Format Indicator](FormatIndicator.html)\n\n[Message Routing](MessageRoutingIntro.html)\n\n[Pipes-and-Filters](PipesAndFilters.html)\n\n[Message Router](MessageRouter.html)\n\n[Content-based Router](ContentBasedRouter.html)\n\n[Message Filter](Filter.html)\n\n[Dynamic Router](DynamicRouter.html)\n\n[Recipient List](RecipientList.html)\n\n[Splitter](Sequencer.html)\n\n[Aggregator](Aggregator.html)\n\n[Resequencer](Resequencer.html)\n\n[Composed Msg. Processor](DistributionAggregate.html)\n\n[Scatter-Gather](BroadcastAggregate.html)\n\n[Routing Slip](RoutingTable.html)\n\n[Process Manager](ProcessManager.html)\n\n[Message Broker](MessageBroker.html)\n\n[Message\nTransformation](MessageTransformationIntro.html)\n\n[Message Translator](MessageTranslator.html)\n\n[Envelope Wrapper](EnvelopeWrapper.html)\n\n[Content Enricher](DataEnricher.html)\n\n[Content Filter](ContentFilter.html)\n\n[Claim Check](StoreInLibrary.html)\n\n[Normalizer](Normalizer.html)\n\n[Canonical Data Model](CanonicalDataModel.html)\n\n[Messaging Endpoints](MessagingEndpointsIntro.html)\n\n[Message Endpoint](MessageEndpoint.html)\n\n[Messaging Gateway](MessagingGateway.html)\n\n[Messaging Mapper](MessagingMapper.html)\n\n[Transactional Client](TransactionalClient.html)\n\n[Polling Consumer](PollingConsumer.html)\n\n[Event-driven Consumer](EventDrivenConsumer.html)\n\n[Competing Consumers](CompetingConsumers.html)\n\n[Message Dispatcher](MessageDispatcher.html)\n\n[Selective Consumer](MessageSelector.html)\n\n[Durable Subscriber](DurableSubscription.html)\n\n[Idempotent Receiver](IdempotentReceiver.html)\n\n[Service Activator](MessagingAdapter.html)\n\n[Messaging Channels](MessagingChannelsIntro.html)\n\n[Message Channel](MessageChannel.html)\n\n[Point-to-Point Channel](PointToPointChannel.html)\n\n[Publish-Subscr. Channel](PublishSubscribeChannel.html)\n\n[Datatype Channel](DatatypeChannel.html)\n\n[Invalid Message Channel](InvalidMessageChannel.html)\n\n[Dead Letter Channel](DeadLetterChannel.html)\n\n[Guaranteed Delivery](GuaranteedMessaging.html)\n\n[Channel Adapter](ChannelAdapter.html)\n\n[Messaging Bridge](MessagingBridge.html)\n\n[Message Bus](MessageBus.html)\n\n[Systems Mgmt.](SystemManagementIntro.html)\n\n[Control Bus](ControlBus.html)\n\n[Detour](Detour.html)\n\n[Wire Tap](WireTap.html)\n\n[Message History](MessageHistory.html)\n\n[Message Store](MessageStore.html)\n\n[Smart Proxy](SmartProxy.html)\n\n[Test Message](TestMessage.html)\n\n[Channel Purger](ChannelPurger.html)", "znaku_textu": 6088, "slov": 566, "odkazu": 115, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 15:34:52", "sha256": "714f6babd327e622695d9be989c93c704d23b034cb2e0fcc1065a0eaa203a278", "hloubka": 4, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://www.amazon.com/exec/obidos/ASIN/0596000685/enterpriseint-20", "http://www.ibm.com/software/mqseries", "http://www.amazon.com/exec/obidos/ASIN/0201325810/enterpriseint-20", "https://aws.amazon.com/sqs", "https://aws.amazon.com/eventbridge/", "https://docs.confluent.io/platform/current/connect/concepts.html", "http://creativecommons.org/licenses/by/4.0/", "https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "https://www.architectelevator.com/book", "https://www.cloudstrategybook.com/", "https://www.platformstrategybook.info/"]} {"url": "http://www.enterpriseintegrationpatterns.com/Detour.html", "titulek": "Detour - Enterprise Integration Patterns", "h1": "", "popis": "How can you route a message through intermediate steps to perform validation, testing or debugging functions?", "klicova_slova": "Detour,integration, messaging, events, patterns, event-driven, coupling, eai, middleware, application integration, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns", "og:title": "Detour - Enterprise Integration Patterns", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/Detour.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/Detour.gif"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Integration Pattern Language"}], "markdown": "Messaging Patterns\n\n[Messaging Patterns](index.html)\n\n- [Integration Styles](IntegrationStylesIntro.html)\n- [Messaging Systems](MessagingComponentsIntro.html)\n- [Messaging Channels](MessagingChannelsIntro.html)\n- [Message Construction](MessageConstructionIntro.html)\n- [Interlude: Simple Messaging](SimpleMessagingIntro.html)\n- [Message Routing](MessageRoutingIntro.html)\n- [Message Transformation](MessageTransformationIntro.html)\n- [Interlude: Composed Messaging](ComposedMessagingExample.html)\n- [Messaging Endpoints](MessagingEndpointsIntro.html)\n- [System Management](SystemManagementIntro.html)\n- Interlude: Systems Management Example\n- Integration Patterns in Practice\n- Concluding Remarks\n- Appendices\n\n| | Detour[Messaging Patterns](index.html) » [System Management](SystemManagementIntro.html) | [Contents](toc.html)[⇐ Prev](ControlBus.html)[Next ⇒](WireTap.html) |\n| --- | --- | --- |\n\nA [*Wire Tap*](WireTap.html) is useful to inspect messages that travel across a channel. Sometimes, though, we need to modify or reroute the messages instead of simply inspecting them.\n\nHow can you route a message through intermediate steps to perform validation, testing or debugging functions?\n\nConstruct a *Detour* with a context-based router controlled via the *Control Bus*. In one state the router routes incoming messages through additional steps while in the other it routes messages directly to the destination channel.\n\nThe *Detour* uses a simple context-based router with two output channels. One output channel passes the unmodified message to the original destination. When instructed by the [*Control Bus*](ControlBus.html), the *Detour* routes messages to a different channel. This channel sends the message to additional components that can inspect and/or modify the message. Ultimately, these components route the message to the same destination.\n\n...\nRead the entire pattern in the book [Enterprise Integration Patterns](/books1.html)\n\n**Related patterns:**\n\n[*Control Bus*](ControlBus.html), [*Publish-Subscribe Channel*](PublishSubscribeChannel.html), [*Wire Tap*](WireTap.html)\n\n---\n\n## Integration Pattern Language\n\n[Message Construct.](MessageConstructionIntro.html)\n\n[Message](Message.html)\n\n[Command Message](CommandMessage.html)\n\n[Document Message](DocumentMessage.html)\n\n[Event Message](EventMessage.html)\n\n[Request-Reply](RequestReply.html)\n\n[Return Address](ReturnAddress.html)\n\n[Correlation Identifier](CorrelationIdentifier.html)\n\n[Message Sequence](MessageSequence.html)\n\n[Message Expiration](MessageExpiration.html)\n\n[Format Indicator](FormatIndicator.html)\n\n[Message Routing](MessageRoutingIntro.html)\n\n[Pipes-and-Filters](PipesAndFilters.html)\n\n[Message Router](MessageRouter.html)\n\n[Content-based Router](ContentBasedRouter.html)\n\n[Message Filter](Filter.html)\n\n[Dynamic Router](DynamicRouter.html)\n\n[Recipient List](RecipientList.html)\n\n[Splitter](Sequencer.html)\n\n[Aggregator](Aggregator.html)\n\n[Resequencer](Resequencer.html)\n\n[Composed Msg. Processor](DistributionAggregate.html)\n\n[Scatter-Gather](BroadcastAggregate.html)\n\n[Routing Slip](RoutingTable.html)\n\n[Process Manager](ProcessManager.html)\n\n[Message Broker](MessageBroker.html)\n\n[Message\nTransformation](MessageTransformationIntro.html)\n\n[Message Translator](MessageTranslator.html)\n\n[Envelope Wrapper](EnvelopeWrapper.html)\n\n[Content Enricher](DataEnricher.html)\n\n[Content Filter](ContentFilter.html)\n\n[Claim Check](StoreInLibrary.html)\n\n[Normalizer](Normalizer.html)\n\n[Canonical Data Model](CanonicalDataModel.html)\n\n[Messaging Endpoints](MessagingEndpointsIntro.html)\n\n[Message Endpoint](MessageEndpoint.html)\n\n[Messaging Gateway](MessagingGateway.html)\n\n[Messaging Mapper](MessagingMapper.html)\n\n[Transactional Client](TransactionalClient.html)\n\n[Polling Consumer](PollingConsumer.html)\n\n[Event-driven Consumer](EventDrivenConsumer.html)\n\n[Competing Consumers](CompetingConsumers.html)\n\n[Message Dispatcher](MessageDispatcher.html)\n\n[Selective Consumer](MessageSelector.html)\n\n[Durable Subscriber](DurableSubscription.html)\n\n[Idempotent Receiver](IdempotentReceiver.html)\n\n[Service Activator](MessagingAdapter.html)\n\n[Messaging Channels](MessagingChannelsIntro.html)\n\n[Message Channel](MessageChannel.html)\n\n[Point-to-Point Channel](PointToPointChannel.html)\n\n[Publish-Subscr. Channel](PublishSubscribeChannel.html)\n\n[Datatype Channel](DatatypeChannel.html)\n\n[Invalid Message Channel](InvalidMessageChannel.html)\n\n[Dead Letter Channel](DeadLetterChannel.html)\n\n[Guaranteed Delivery](GuaranteedMessaging.html)\n\n[Channel Adapter](ChannelAdapter.html)\n\n[Messaging Bridge](MessagingBridge.html)\n\n[Message Bus](MessageBus.html)\n\n[Systems Mgmt.](SystemManagementIntro.html)\n\n[Control Bus](ControlBus.html)\n\n[Detour](Detour.html)\n\n[Wire Tap](WireTap.html)\n\n[Message History](MessageHistory.html)\n\n[Message Store](MessageStore.html)\n\n[Smart Proxy](SmartProxy.html)\n\n[Test Message](TestMessage.html)\n\n[Channel Purger](ChannelPurger.html)\n\n- » [Read the latest in My Blog](/ramblings)\n- » [Get more insights from My Articles](/articles.html)\n- » [See me live in my Upcoming Talks](/talks)\n\nYou can reuse the following elements under the [Creative Commons Attribution](http://creativecommons.org/licenses/by/4.0/) license: pattern icon, pattern name, problem and solution statements (in bold), and the sketch. Other portions are protected by copyright.\n\n[Enterprise Integration Patterns](https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20)\nThe de-facto language for designing asynchronous, distributed systems. Over 100,000 copies sold.\n\n[The Software Architect Elevator](https://www.architectelevator.com/book)\n\n Rethink the role of architects as a connecting element across organizational layers. Acquire the technical, communication, and organizational skills to succeed in this new role.\n\n[Cloud Strategy](https://www.cloudstrategybook.com)\n\n Make your cloud migration a success by translating high-level goals into conscious decisions with well-understood trade-offs.\n\n[Platform Strategy](https://www.platformstrategybook.info)\n\n Platforms can boost innovation through harmonization, but they aren't easy to build. Learn from over a decade of designing and rolling out IT platforms.", "znaku_textu": 6046, "slov": 505, "odkazu": 108, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 15:34:58", "sha256": "d8c4b3ed6198c327bd5d47bb941cd81c56df9375d8964612e34c11a24db8f790", "hloubka": 4, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://creativecommons.org/licenses/by/4.0/", "https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "https://www.architectelevator.com/book", "https://www.cloudstrategybook.com/", "https://www.platformstrategybook.info/"]} {"url": "http://www.enterpriseintegrationpatterns.com/DistributionAggregate.html", "titulek": "Composed Message Processor - Enterprise Integration Patterns", "h1": "", "popis": "How can you maintain the overall message flow when processing a message consisting of multiple elements, each of which may require different processing?", "klicova_slova": "Composed Message Processor,integration, messaging, events, patterns, event-driven, coupling, eai, middleware, application integration, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns", "og:title": "Composed Message Processor - Enterprise Integration Patterns", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/DistributionAggregate.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/DistributionAggregate.gif"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Integration Pattern Language"}], "markdown": "Messaging Patterns\n\n[Messaging Patterns](index.html)\n\n- [Integration Styles](IntegrationStylesIntro.html)\n- [Messaging Systems](MessagingComponentsIntro.html)\n- [Messaging Channels](MessagingChannelsIntro.html)\n- [Message Construction](MessageConstructionIntro.html)\n- [Interlude: Simple Messaging](SimpleMessagingIntro.html)\n- [Message Routing](MessageRoutingIntro.html)\n- [Message Transformation](MessageTransformationIntro.html)\n- [Interlude: Composed Messaging](ComposedMessagingExample.html)\n- [Messaging Endpoints](MessagingEndpointsIntro.html)\n- [System Management](SystemManagementIntro.html)\n- Interlude: Systems Management Example\n- Integration Patterns in Practice\n- Concluding Remarks\n- Appendices\n\n| | Composed Message Processor[Messaging Patterns](index.html) » [Message Routing](MessageRoutingIntro.html) | [Contents](toc.html)[⇐ Prev](Resequencer.html)[Next ⇒](BroadcastAggregate.html) |\n| --- | --- | --- |\n\nThe order-processing example presented in the [*Content-Based Router*](ContentBasedRouter.html) and [*Splitter*](Sequencer.html) patterns processes an incoming order consisting of individual line items. Each line item requires an inventory check with the respective inventory system. After all items have been verified we want to pass the validated order message to the next processing step.\n\nHow can you maintain the overall message flow when processing a message consisting of multiple elements, each of which may require different processing?\n\nUse *Composed Message Processor* to process a composite message. The *Composed Message Processor* splits the message up, routes the sub-messages to the appropriate destinations and re-aggregates the responses back into a single message.\n\nThe *Composed Message Processor* uses an [*Aggregator*](Aggregator.html) to reconcile the requests that were dispatched to the multiple inventory systems. Each processing unit sends a response message to the aggregator stating the inventory on hand for the specified item. The Aggregator collects the individual responses and processes them based on a predefined algorithm as described under [*Aggregator*](Aggregator.html).\n\n...\nRead the entire pattern in the book [Enterprise Integration Patterns](/books1.html)\n\n**Related patterns:**\n\n[*Aggregator*](Aggregator.html), [*Content-Based Router*](ContentBasedRouter.html), [*Pipes and Filters*](PipesAndFilters.html), [*Splitter*](Sequencer.html)\n\n---\n\n## Integration Pattern Language\n\n[Message Construct.](MessageConstructionIntro.html)\n\n[Message](Message.html)\n\n[Command Message](CommandMessage.html)\n\n[Document Message](DocumentMessage.html)\n\n[Event Message](EventMessage.html)\n\n[Request-Reply](RequestReply.html)\n\n[Return Address](ReturnAddress.html)\n\n[Correlation Identifier](CorrelationIdentifier.html)\n\n[Message Sequence](MessageSequence.html)\n\n[Message Expiration](MessageExpiration.html)\n\n[Format Indicator](FormatIndicator.html)\n\n[Message Routing](MessageRoutingIntro.html)\n\n[Pipes-and-Filters](PipesAndFilters.html)\n\n[Message Router](MessageRouter.html)\n\n[Content-based Router](ContentBasedRouter.html)\n\n[Message Filter](Filter.html)\n\n[Dynamic Router](DynamicRouter.html)\n\n[Recipient List](RecipientList.html)\n\n[Splitter](Sequencer.html)\n\n[Aggregator](Aggregator.html)\n\n[Resequencer](Resequencer.html)\n\n[Composed Msg. Processor](DistributionAggregate.html)\n\n[Scatter-Gather](BroadcastAggregate.html)\n\n[Routing Slip](RoutingTable.html)\n\n[Process Manager](ProcessManager.html)\n\n[Message Broker](MessageBroker.html)\n\n[Message\nTransformation](MessageTransformationIntro.html)\n\n[Message Translator](MessageTranslator.html)\n\n[Envelope Wrapper](EnvelopeWrapper.html)\n\n[Content Enricher](DataEnricher.html)\n\n[Content Filter](ContentFilter.html)\n\n[Claim Check](StoreInLibrary.html)\n\n[Normalizer](Normalizer.html)\n\n[Canonical Data Model](CanonicalDataModel.html)\n\n[Messaging Endpoints](MessagingEndpointsIntro.html)\n\n[Message Endpoint](MessageEndpoint.html)\n\n[Messaging Gateway](MessagingGateway.html)\n\n[Messaging Mapper](MessagingMapper.html)\n\n[Transactional Client](TransactionalClient.html)\n\n[Polling Consumer](PollingConsumer.html)\n\n[Event-driven Consumer](EventDrivenConsumer.html)\n\n[Competing Consumers](CompetingConsumers.html)\n\n[Message Dispatcher](MessageDispatcher.html)\n\n[Selective Consumer](MessageSelector.html)\n\n[Durable Subscriber](DurableSubscription.html)\n\n[Idempotent Receiver](IdempotentReceiver.html)\n\n[Service Activator](MessagingAdapter.html)\n\n[Messaging Channels](MessagingChannelsIntro.html)\n\n[Message Channel](MessageChannel.html)\n\n[Point-to-Point Channel](PointToPointChannel.html)\n\n[Publish-Subscr. Channel](PublishSubscribeChannel.html)\n\n[Datatype Channel](DatatypeChannel.html)\n\n[Invalid Message Channel](InvalidMessageChannel.html)\n\n[Dead Letter Channel](DeadLetterChannel.html)\n\n[Guaranteed Delivery](GuaranteedMessaging.html)\n\n[Channel Adapter](ChannelAdapter.html)\n\n[Messaging Bridge](MessagingBridge.html)\n\n[Message Bus](MessageBus.html)\n\n[Systems Mgmt.](SystemManagementIntro.html)\n\n[Control Bus](ControlBus.html)\n\n[Detour](Detour.html)\n\n[Wire Tap](WireTap.html)\n\n[Message History](MessageHistory.html)\n\n[Message Store](MessageStore.html)\n\n[Smart Proxy](SmartProxy.html)\n\n[Test Message](TestMessage.html)\n\n[Channel Purger](ChannelPurger.html)\n\n- » [Read the latest in My Blog](/ramblings)\n- » [Get more insights from My Articles](/articles.html)\n- » [See me live in my Upcoming Talks](/talks)\n\nYou can reuse the following elements under the [Creative Commons Attribution](http://creativecommons.org/licenses/by/4.0/) license: pattern icon, pattern name, problem and solution statements (in bold), and the sketch. Other portions are protected by copyright.\n\n[Enterprise Integration Patterns](https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20)\nThe de-facto language for designing asynchronous, distributed systems. Over 100,000 copies sold.\n\n[The Software Architect Elevator](https://www.architectelevator.com/book)\n\n Rethink the role of architects as a connecting element across organizational layers. Acquire the technical, communication, and organizational skills to succeed in this new role.\n\n[Cloud Strategy](https://www.cloudstrategybook.com)\n\n Make your cloud migration a success by translating high-level goals into conscious decisions with well-understood trade-offs.\n\n[Platform Strategy](https://www.platformstrategybook.info)\n\n Platforms can boost innovation through harmonization, but they aren't easy to build. Learn from over a decade of designing and rolling out IT platforms.", "znaku_textu": 6357, "slov": 538, "odkazu": 108, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 15:34:20", "sha256": "57a15e18261a4dfe75b10bf4b606473d80af4496ae2e23662e883e851edd5b12", "hloubka": 4, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://creativecommons.org/licenses/by/4.0/", "https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "https://www.architectelevator.com/book", "https://www.cloudstrategybook.com/", "https://www.platformstrategybook.info/"]} {"url": "http://www.enterpriseintegrationpatterns.com/DocumentMessage.html", "titulek": "Document Message - Enterprise Integration Patterns", "h1": "", "popis": "How can messaging be used to transfer data between applications?", "klicova_slova": "Document Message,integration, messaging, events, patterns, event-driven, coupling, eai, middleware, application integration, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns", "og:title": "Document Message - Enterprise Integration Patterns", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/DocumentMessage.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/DocumentMessageSolution.gif"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Integration Pattern Language"}], "markdown": "Messaging Patterns\n\n[Messaging Patterns](index.html)\n\n- [Integration Styles](IntegrationStylesIntro.html)\n- [Messaging Systems](MessagingComponentsIntro.html)\n- [Messaging Channels](MessagingChannelsIntro.html)\n- [Message Construction](MessageConstructionIntro.html)\n- [Interlude: Simple Messaging](SimpleMessagingIntro.html)\n- [Message Routing](MessageRoutingIntro.html)\n- [Message Transformation](MessageTransformationIntro.html)\n- [Interlude: Composed Messaging](ComposedMessagingExample.html)\n- [Messaging Endpoints](MessagingEndpointsIntro.html)\n- [System Management](SystemManagementIntro.html)\n- Interlude: Systems Management Example\n- Integration Patterns in Practice\n- Concluding Remarks\n- Appendices\n\n| | Document Message[Messaging Patterns](index.html) » [Message Construction](MessageConstructionIntro.html) | [Contents](toc.html)[⇐ Prev](CommandMessage.html)[Next ⇒](EventMessage.html) |\n| --- | --- | --- |\n\nAn application would like to transfer data to another application. It could do so using [*File Transfer*](FileTransferIntegration.html) or [*Shared Database*](SharedDataBaseIntegration.html), but those approaches have shortcomings. The transfer might work better using [*Messaging*](Messaging.html).\n\nHow can messaging be used to transfer data between applications?\n\nUse a *Document Message* to reliably transfer a data structure between applications.\n\nWhereas a [*Command Message*](CommandMessage.html) tells the receiver to invoke certain behavior, a *Document Message* just passes data and lets the receiver decide what, if anything, to do with the data. The data is a single unit of data, a single object or data structure which may decompose into smaller units.\n\n*Document Message*s can seem very much like [*Event Message*](EventMessage.html)s; the main difference is a matter of timing and content. The important part of a *Document Message* is its content, the document. Successfully transferring the document is important; the timing of when it is sent and received is less important. [*Guaranteed Delivery*](GuaranteedMessaging.html) may be a consideration; [*Message Expiration*](MessageExpiration.html) probably is not.\n\n...\nRead the entire pattern in the book [Enterprise Integration Patterns](/books1.html)\n\n**Related patterns:**\n\n[*Command Message*](CommandMessage.html), [*Remote Procedure Invocation*](EncapsulatedSynchronousIntegration.html), [*Event Message*](EventMessage.html), [*File Transfer*](FileTransferIntegration.html), [*Guaranteed Delivery*](GuaranteedMessaging.html), [*Message*](Message.html), [*Message Expiration*](MessageExpiration.html), [*Messaging*](Messaging.html), [*Point-to-Point Channel*](PointToPointChannel.html), [*Publish-Subscribe Channel*](PublishSubscribeChannel.html), [*Request-Reply*](RequestReply.html), [*Shared Database*](SharedDataBaseIntegration.html)\n\n---\n\n## Integration Pattern Language\n\n[Message Construct.](MessageConstructionIntro.html)\n\n[Message](Message.html)\n\n[Command Message](CommandMessage.html)\n\n[Document Message](DocumentMessage.html)\n\n[Event Message](EventMessage.html)\n\n[Request-Reply](RequestReply.html)\n\n[Return Address](ReturnAddress.html)\n\n[Correlation Identifier](CorrelationIdentifier.html)\n\n[Message Sequence](MessageSequence.html)\n\n[Message Expiration](MessageExpiration.html)\n\n[Format Indicator](FormatIndicator.html)\n\n[Message Routing](MessageRoutingIntro.html)\n\n[Pipes-and-Filters](PipesAndFilters.html)\n\n[Message Router](MessageRouter.html)\n\n[Content-based Router](ContentBasedRouter.html)\n\n[Message Filter](Filter.html)\n\n[Dynamic Router](DynamicRouter.html)\n\n[Recipient List](RecipientList.html)\n\n[Splitter](Sequencer.html)\n\n[Aggregator](Aggregator.html)\n\n[Resequencer](Resequencer.html)\n\n[Composed Msg. Processor](DistributionAggregate.html)\n\n[Scatter-Gather](BroadcastAggregate.html)\n\n[Routing Slip](RoutingTable.html)\n\n[Process Manager](ProcessManager.html)\n\n[Message Broker](MessageBroker.html)\n\n[Message\nTransformation](MessageTransformationIntro.html)\n\n[Message Translator](MessageTranslator.html)\n\n[Envelope Wrapper](EnvelopeWrapper.html)\n\n[Content Enricher](DataEnricher.html)\n\n[Content Filter](ContentFilter.html)\n\n[Claim Check](StoreInLibrary.html)\n\n[Normalizer](Normalizer.html)\n\n[Canonical Data Model](CanonicalDataModel.html)\n\n[Messaging Endpoints](MessagingEndpointsIntro.html)\n\n[Message Endpoint](MessageEndpoint.html)\n\n[Messaging Gateway](MessagingGateway.html)\n\n[Messaging Mapper](MessagingMapper.html)\n\n[Transactional Client](TransactionalClient.html)\n\n[Polling Consumer](PollingConsumer.html)\n\n[Event-driven Consumer](EventDrivenConsumer.html)\n\n[Competing Consumers](CompetingConsumers.html)\n\n[Message Dispatcher](MessageDispatcher.html)\n\n[Selective Consumer](MessageSelector.html)\n\n[Durable Subscriber](DurableSubscription.html)\n\n[Idempotent Receiver](IdempotentReceiver.html)\n\n[Service Activator](MessagingAdapter.html)\n\n[Messaging Channels](MessagingChannelsIntro.html)\n\n[Message Channel](MessageChannel.html)\n\n[Point-to-Point Channel](PointToPointChannel.html)\n\n[Publish-Subscr. Channel](PublishSubscribeChannel.html)\n\n[Datatype Channel](DatatypeChannel.html)\n\n[Invalid Message Channel](InvalidMessageChannel.html)\n\n[Dead Letter Channel](DeadLetterChannel.html)\n\n[Guaranteed Delivery](GuaranteedMessaging.html)\n\n[Channel Adapter](ChannelAdapter.html)\n\n[Messaging Bridge](MessagingBridge.html)\n\n[Message Bus](MessageBus.html)\n\n[Systems Mgmt.](SystemManagementIntro.html)\n\n[Control Bus](ControlBus.html)\n\n[Detour](Detour.html)\n\n[Wire Tap](WireTap.html)\n\n[Message History](MessageHistory.html)\n\n[Message Store](MessageStore.html)\n\n[Smart Proxy](SmartProxy.html)\n\n[Test Message](TestMessage.html)\n\n[Channel Purger](ChannelPurger.html)\n\n- » [Read the latest in My Blog](/ramblings)\n- » [Get more insights from My Articles](/articles.html)\n- » [See me live in my Upcoming Talks](/talks)\n\nYou can reuse the following elements under the [Creative Commons Attribution](http://creativecommons.org/licenses/by/4.0/) license: pattern icon, pattern name, problem and solution statements (in bold), and the sketch. Other portions are protected by copyright.\n\n[Enterprise Integration Patterns](https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20)\nThe de-facto language for designing asynchronous, distributed systems. Over 100,000 copies sold.\n\n[The Software Architect Elevator](https://www.architectelevator.com/book)\n\n Rethink the role of architects as a connecting element across organizational layers. Acquire the technical, communication, and organizational skills to succeed in this new role.\n\n[Cloud Strategy](https://www.cloudstrategybook.com)\n\n Make your cloud migration a success by translating high-level goals into conscious decisions with well-understood trade-offs.\n\n[Platform Strategy](https://www.platformstrategybook.info)\n\n Platforms can boost innovation through harmonization, but they aren't easy to build. Learn from over a decade of designing and rolling out IT platforms.", "znaku_textu": 6782, "slov": 575, "odkazu": 108, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 15:34:02", "sha256": "57602aee9cb4c73ce40968668db54354449db23152f4ab6cba77f4d5313c8ac7", "hloubka": 4, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://creativecommons.org/licenses/by/4.0/", "https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "https://www.architectelevator.com/book", "https://www.cloudstrategybook.com/", "https://www.platformstrategybook.info/"]} {"url": "http://www.enterpriseintegrationpatterns.com/DurableSubscription.html", "titulek": "Durable Subscriber - Enterprise Integration Patterns", "h1": "", "popis": "How can a subscriber avoid missing messages while it’s not listening for them?", "klicova_slova": "Durable Subscriber,integration, messaging, events, patterns, event-driven, coupling, eai, middleware, application integration, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns", "og:title": "Durable Subscriber - Enterprise Integration Patterns", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/DurableSubscription.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/DurableSubscriptionSolution.gif"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Integration Pattern Language"}], "markdown": "Messaging Patterns\n\n[Messaging Patterns](index.html)\n\n- [Integration Styles](IntegrationStylesIntro.html)\n- [Messaging Systems](MessagingComponentsIntro.html)\n- [Messaging Channels](MessagingChannelsIntro.html)\n- [Message Construction](MessageConstructionIntro.html)\n- [Interlude: Simple Messaging](SimpleMessagingIntro.html)\n- [Message Routing](MessageRoutingIntro.html)\n- [Message Transformation](MessageTransformationIntro.html)\n- [Interlude: Composed Messaging](ComposedMessagingExample.html)\n- [Messaging Endpoints](MessagingEndpointsIntro.html)\n- [System Management](SystemManagementIntro.html)\n- Interlude: Systems Management Example\n- Integration Patterns in Practice\n- Concluding Remarks\n- Appendices\n\n| | Durable Subscriber[Messaging Patterns](index.html) » [Messaging Endpoints](MessagingEndpointsIntro.html) | [Contents](toc.html)[⇐ Prev](MessageSelector.html)[Next ⇒](IdempotentReceiver.html) |\n| --- | --- | --- |\n\nAn application is receiving messages on a [*Publish-Subscribe Channel*](PublishSubscribeChannel.html).\n\nHow can a subscriber avoid missing messages while it’s not listening for them?\n\nUse a *Durable Subscriber* to make the messaging system save messages published while the subscriber is disconnected.\n\nA durable subscription saves messages for an inactive subscriber and delivers these saved messages when the subscriber reconnects. In this way, a subscriber will not lose any messages even though it disconnected. A durable subscription has no effect on the behavior of the subscriber or the messaging system while the subscriber is *active* (e.g., connected). A connected subscriber acts the same whether its subscription is durable or non-durable. The difference is in how the messaging system behaves when the subscriber is disconnected.\n\n...\nRead the entire pattern in the book [Enterprise Integration Patterns](/books1.html)\n\n**Related patterns:**\n\n[*Guaranteed Delivery*](GuaranteedMessaging.html), [*Message Expiration*](MessageExpiration.html), [*Point-to-Point Channel*](PointToPointChannel.html), [*Publish-Subscribe Channel*](PublishSubscribeChannel.html)\n\n---\n\n## Integration Pattern Language\n\n[Message Construct.](MessageConstructionIntro.html)\n\n[Message](Message.html)\n\n[Command Message](CommandMessage.html)\n\n[Document Message](DocumentMessage.html)\n\n[Event Message](EventMessage.html)\n\n[Request-Reply](RequestReply.html)\n\n[Return Address](ReturnAddress.html)\n\n[Correlation Identifier](CorrelationIdentifier.html)\n\n[Message Sequence](MessageSequence.html)\n\n[Message Expiration](MessageExpiration.html)\n\n[Format Indicator](FormatIndicator.html)\n\n[Message Routing](MessageRoutingIntro.html)\n\n[Pipes-and-Filters](PipesAndFilters.html)\n\n[Message Router](MessageRouter.html)\n\n[Content-based Router](ContentBasedRouter.html)\n\n[Message Filter](Filter.html)\n\n[Dynamic Router](DynamicRouter.html)\n\n[Recipient List](RecipientList.html)\n\n[Splitter](Sequencer.html)\n\n[Aggregator](Aggregator.html)\n\n[Resequencer](Resequencer.html)\n\n[Composed Msg. Processor](DistributionAggregate.html)\n\n[Scatter-Gather](BroadcastAggregate.html)\n\n[Routing Slip](RoutingTable.html)\n\n[Process Manager](ProcessManager.html)\n\n[Message Broker](MessageBroker.html)\n\n[Message\nTransformation](MessageTransformationIntro.html)\n\n[Message Translator](MessageTranslator.html)\n\n[Envelope Wrapper](EnvelopeWrapper.html)\n\n[Content Enricher](DataEnricher.html)\n\n[Content Filter](ContentFilter.html)\n\n[Claim Check](StoreInLibrary.html)\n\n[Normalizer](Normalizer.html)\n\n[Canonical Data Model](CanonicalDataModel.html)\n\n[Messaging Endpoints](MessagingEndpointsIntro.html)\n\n[Message Endpoint](MessageEndpoint.html)\n\n[Messaging Gateway](MessagingGateway.html)\n\n[Messaging Mapper](MessagingMapper.html)\n\n[Transactional Client](TransactionalClient.html)\n\n[Polling Consumer](PollingConsumer.html)\n\n[Event-driven Consumer](EventDrivenConsumer.html)\n\n[Competing Consumers](CompetingConsumers.html)\n\n[Message Dispatcher](MessageDispatcher.html)\n\n[Selective Consumer](MessageSelector.html)\n\n[Durable Subscriber](DurableSubscription.html)\n\n[Idempotent Receiver](IdempotentReceiver.html)\n\n[Service Activator](MessagingAdapter.html)\n\n[Messaging Channels](MessagingChannelsIntro.html)\n\n[Message Channel](MessageChannel.html)\n\n[Point-to-Point Channel](PointToPointChannel.html)\n\n[Publish-Subscr. Channel](PublishSubscribeChannel.html)\n\n[Datatype Channel](DatatypeChannel.html)\n\n[Invalid Message Channel](InvalidMessageChannel.html)\n\n[Dead Letter Channel](DeadLetterChannel.html)\n\n[Guaranteed Delivery](GuaranteedMessaging.html)\n\n[Channel Adapter](ChannelAdapter.html)\n\n[Messaging Bridge](MessagingBridge.html)\n\n[Message Bus](MessageBus.html)\n\n[Systems Mgmt.](SystemManagementIntro.html)\n\n[Control Bus](ControlBus.html)\n\n[Detour](Detour.html)\n\n[Wire Tap](WireTap.html)\n\n[Message History](MessageHistory.html)\n\n[Message Store](MessageStore.html)\n\n[Smart Proxy](SmartProxy.html)\n\n[Test Message](TestMessage.html)\n\n[Channel Purger](ChannelPurger.html)\n\n- » [Read the latest in My Blog](/ramblings)\n- » [Get more insights from My Articles](/articles.html)\n- » [See me live in my Upcoming Talks](/talks)\n\nYou can reuse the following elements under the [Creative Commons Attribution](http://creativecommons.org/licenses/by/4.0/) license: pattern icon, pattern name, problem and solution statements (in bold), and the sketch. Other portions are protected by copyright.\n\n[Enterprise Integration Patterns](https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20)\nThe de-facto language for designing asynchronous, distributed systems. Over 100,000 copies sold.\n\n[The Software Architect Elevator](https://www.architectelevator.com/book)\n\n Rethink the role of architects as a connecting element across organizational layers. Acquire the technical, communication, and organizational skills to succeed in this new role.\n\n[Cloud Strategy](https://www.cloudstrategybook.com)\n\n Make your cloud migration a success by translating high-level goals into conscious decisions with well-understood trade-offs.\n\n[Platform Strategy](https://www.platformstrategybook.info)\n\n Platforms can boost innovation through harmonization, but they aren't easy to build. Learn from over a decade of designing and rolling out IT platforms.", "znaku_textu": 6051, "slov": 490, "odkazu": 108, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 15:34:43", "sha256": "d8697f78f17e355548692ad6ed8459e2fe3932ab1119d7b613c029774e0f2139", "hloubka": 4, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://creativecommons.org/licenses/by/4.0/", "https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "https://www.architectelevator.com/book", "https://www.cloudstrategybook.com/", "https://www.platformstrategybook.info/"]} {"url": "http://www.enterpriseintegrationpatterns.com/DynamicRouter.html", "titulek": "Dynamic Router - Enterprise Integration Patterns", "h1": "", "popis": "How can you avoid the dependency of the router on all possible destinations while maintaining its efficiency?", "klicova_slova": "Dynamic Router,integration, messaging, events, patterns, event-driven, coupling, eai, middleware, application integration, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns", "og:title": "Dynamic Router - Enterprise Integration Patterns", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/DynamicRouter.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/DynamicRouter.gif"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Integration Pattern Language"}], "markdown": "Messaging Patterns\n\n[Messaging Patterns](index.html)\n\n- [Integration Styles](IntegrationStylesIntro.html)\n- [Messaging Systems](MessagingComponentsIntro.html)\n- [Messaging Channels](MessagingChannelsIntro.html)\n- [Message Construction](MessageConstructionIntro.html)\n- [Interlude: Simple Messaging](SimpleMessagingIntro.html)\n- [Message Routing](MessageRoutingIntro.html)\n- [Message Transformation](MessageTransformationIntro.html)\n- [Interlude: Composed Messaging](ComposedMessagingExample.html)\n- [Messaging Endpoints](MessagingEndpointsIntro.html)\n- [System Management](SystemManagementIntro.html)\n- Interlude: Systems Management Example\n- Integration Patterns in Practice\n- Concluding Remarks\n- Appendices\n\n| | Dynamic Router[Messaging Patterns](index.html) » [Message Routing](MessageRoutingIntro.html) | [Contents](toc.html)[⇐ Prev](Filter.html)[Next ⇒](RecipientList.html) |\n| --- | --- | --- |\n\nYou are using a [*Message Router*](MessageRouter.html) to route messages between multiple destinations.\n\nHow can you avoid the dependency of the router on all possible destinations while maintaining its efficiency?\n\nUse a *Dynamic Router*, a Router that can self-configure based on special configuration messages from participating destinations.\n\nBesides the usual input and output channels the *Dynamic Router* uses an additional *control channel*. 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.\n\n...\nRead the entire pattern in the book [Enterprise Integration Patterns](/books1.html)\n\n**Related patterns:**\n\n[*Content-Based Router*](ContentBasedRouter.html), [*Message Filter*](Filter.html), [*Message Router*](MessageRouter.html), [*Publish-Subscribe Channel*](PublishSubscribeChannel.html), [*Recipient List*](RecipientList.html), [*Routing Slip*](RoutingTable.html)\n\n---\n\n## Integration Pattern Language\n\n[Message Construct.](MessageConstructionIntro.html)\n\n[Message](Message.html)\n\n[Command Message](CommandMessage.html)\n\n[Document Message](DocumentMessage.html)\n\n[Event Message](EventMessage.html)\n\n[Request-Reply](RequestReply.html)\n\n[Return Address](ReturnAddress.html)\n\n[Correlation Identifier](CorrelationIdentifier.html)\n\n[Message Sequence](MessageSequence.html)\n\n[Message Expiration](MessageExpiration.html)\n\n[Format Indicator](FormatIndicator.html)\n\n[Message Routing](MessageRoutingIntro.html)\n\n[Pipes-and-Filters](PipesAndFilters.html)\n\n[Message Router](MessageRouter.html)\n\n[Content-based Router](ContentBasedRouter.html)\n\n[Message Filter](Filter.html)\n\n[Dynamic Router](DynamicRouter.html)\n\n[Recipient List](RecipientList.html)\n\n[Splitter](Sequencer.html)\n\n[Aggregator](Aggregator.html)\n\n[Resequencer](Resequencer.html)\n\n[Composed Msg. Processor](DistributionAggregate.html)\n\n[Scatter-Gather](BroadcastAggregate.html)\n\n[Routing Slip](RoutingTable.html)\n\n[Process Manager](ProcessManager.html)\n\n[Message Broker](MessageBroker.html)\n\n[Message\nTransformation](MessageTransformationIntro.html)\n\n[Message Translator](MessageTranslator.html)\n\n[Envelope Wrapper](EnvelopeWrapper.html)\n\n[Content Enricher](DataEnricher.html)\n\n[Content Filter](ContentFilter.html)\n\n[Claim Check](StoreInLibrary.html)\n\n[Normalizer](Normalizer.html)\n\n[Canonical Data Model](CanonicalDataModel.html)\n\n[Messaging Endpoints](MessagingEndpointsIntro.html)\n\n[Message Endpoint](MessageEndpoint.html)\n\n[Messaging Gateway](MessagingGateway.html)\n\n[Messaging Mapper](MessagingMapper.html)\n\n[Transactional Client](TransactionalClient.html)\n\n[Polling Consumer](PollingConsumer.html)\n\n[Event-driven Consumer](EventDrivenConsumer.html)\n\n[Competing Consumers](CompetingConsumers.html)\n\n[Message Dispatcher](MessageDispatcher.html)\n\n[Selective Consumer](MessageSelector.html)\n\n[Durable Subscriber](DurableSubscription.html)\n\n[Idempotent Receiver](IdempotentReceiver.html)\n\n[Service Activator](MessagingAdapter.html)\n\n[Messaging Channels](MessagingChannelsIntro.html)\n\n[Message Channel](MessageChannel.html)\n\n[Point-to-Point Channel](PointToPointChannel.html)\n\n[Publish-Subscr. Channel](PublishSubscribeChannel.html)\n\n[Datatype Channel](DatatypeChannel.html)\n\n[Invalid Message Channel](InvalidMessageChannel.html)\n\n[Dead Letter Channel](DeadLetterChannel.html)\n\n[Guaranteed Delivery](GuaranteedMessaging.html)\n\n[Channel Adapter](ChannelAdapter.html)\n\n[Messaging Bridge](MessagingBridge.html)\n\n[Message Bus](MessageBus.html)\n\n[Systems Mgmt.](SystemManagementIntro.html)\n\n[Control Bus](ControlBus.html)\n\n[Detour](Detour.html)\n\n[Wire Tap](WireTap.html)\n\n[Message History](MessageHistory.html)\n\n[Message Store](MessageStore.html)\n\n[Smart Proxy](SmartProxy.html)\n\n[Test Message](TestMessage.html)\n\n[Channel Purger](ChannelPurger.html)\n\n- » [Read the latest in My Blog](/ramblings)\n- » [Get more insights from My Articles](/articles.html)\n- » [See me live in my Upcoming Talks](/talks)\n\nYou can reuse the following elements under the [Creative Commons Attribution](http://creativecommons.org/licenses/by/4.0/) license: pattern icon, pattern name, problem and solution statements (in bold), and the sketch. Other portions are protected by copyright.\n\n[Enterprise Integration Patterns](https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20)\nThe de-facto language for designing asynchronous, distributed systems. Over 100,000 copies sold.\n\n[The Software Architect Elevator](https://www.architectelevator.com/book)\n\n Rethink the role of architects as a connecting element across organizational layers. Acquire the technical, communication, and organizational skills to succeed in this new role.\n\n[Cloud Strategy](https://www.cloudstrategybook.com)\n\n Make your cloud migration a success by translating high-level goals into conscious decisions with well-understood trade-offs.\n\n[Platform Strategy](https://www.platformstrategybook.info)\n\n Platforms can boost innovation through harmonization, but they aren't easy to build. Learn from over a decade of designing and rolling out IT platforms.", "znaku_textu": 6231, "slov": 523, "odkazu": 108, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 15:34:15", "sha256": "d3b57d8e01cd6bf5adb7a12af887562bc6635a806d26cf8a71a215714d474922", "hloubka": 4, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://creativecommons.org/licenses/by/4.0/", "https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "https://www.architectelevator.com/book", "https://www.cloudstrategybook.com/", "https://www.platformstrategybook.info/"]} {"url": "http://www.enterpriseintegrationpatterns.com/EnvelopeWrapper.html", "titulek": "Envelope Wrapper - Enterprise Integration Patterns", "h1": "", "popis": "How can existing systems participate in a messaging exchange that places specific requirements on the message format, such as message header fields or encryption?", "klicova_slova": "Envelope Wrapper,integration, messaging, events, patterns, event-driven, coupling, eai, middleware, application integration, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns", "og:title": "Envelope Wrapper - Enterprise Integration Patterns", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/EnvelopeWrapper.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/Wrapper.gif"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Integration Pattern Language"}], "markdown": "Messaging Patterns\n\n[Messaging Patterns](index.html)\n\n- [Integration Styles](IntegrationStylesIntro.html)\n- [Messaging Systems](MessagingComponentsIntro.html)\n- [Messaging Channels](MessagingChannelsIntro.html)\n- [Message Construction](MessageConstructionIntro.html)\n- [Interlude: Simple Messaging](SimpleMessagingIntro.html)\n- [Message Routing](MessageRoutingIntro.html)\n- [Message Transformation](MessageTransformationIntro.html)\n- [Interlude: Composed Messaging](ComposedMessagingExample.html)\n- [Messaging Endpoints](MessagingEndpointsIntro.html)\n- [System Management](SystemManagementIntro.html)\n- Interlude: Systems Management Example\n- Integration Patterns in Practice\n- Concluding Remarks\n- Appendices\n\n| | Envelope Wrapper[Messaging Patterns](index.html) » [Message Transformation](MessageTransformationIntro.html) | [Contents](toc.html)[⇐ Prev](MessageTransformationIntro.html)[Next ⇒](DataEnricher.html) |\n| --- | --- | --- |\n\nMost messaging systems divide the message data into a header and a body. The header contains fields that are used by the messaging infrastructure to manage the flow of messages. However, most endpoint systems that participate in the integration solution generally are not aware of these extra data elements. In some cases, systems may even consider these fields as erroneous because they do not match the message format used by the application. On the other hand, the messaging components that route the messages between the applications may require the header fields and would consider a message invalid if it does not contain the proper header fields.\n\nHow can existing systems participate in a messaging exchange that places specific requirements on the message format, such as message header fields or encryption?\n\nUse a *Envelope Wrapper* to wrap application data inside an envelope that is compliant with the messaging infrastructure. Unwrap the message when it arrives at the destination.\n\nThe process of wrapping and unwrapping a message consists of five steps:\n\n...\nRead the entire pattern in the book [Enterprise Integration Patterns](/books1.html)\n\n**Related patterns:**\n\n[*Content-Based Router*](ContentBasedRouter.html), [*Content Enricher*](DataEnricher.html), [*Messaging Bridge*](MessagingBridge.html), [*Pipes and Filters*](PipesAndFilters.html)\n\n---\n\n## Integration Pattern Language\n\n[Message Construct.](MessageConstructionIntro.html)\n\n[Message](Message.html)\n\n[Command Message](CommandMessage.html)\n\n[Document Message](DocumentMessage.html)\n\n[Event Message](EventMessage.html)\n\n[Request-Reply](RequestReply.html)\n\n[Return Address](ReturnAddress.html)\n\n[Correlation Identifier](CorrelationIdentifier.html)\n\n[Message Sequence](MessageSequence.html)\n\n[Message Expiration](MessageExpiration.html)\n\n[Format Indicator](FormatIndicator.html)\n\n[Message Routing](MessageRoutingIntro.html)\n\n[Pipes-and-Filters](PipesAndFilters.html)\n\n[Message Router](MessageRouter.html)\n\n[Content-based Router](ContentBasedRouter.html)\n\n[Message Filter](Filter.html)\n\n[Dynamic Router](DynamicRouter.html)\n\n[Recipient List](RecipientList.html)\n\n[Splitter](Sequencer.html)\n\n[Aggregator](Aggregator.html)\n\n[Resequencer](Resequencer.html)\n\n[Composed Msg. Processor](DistributionAggregate.html)\n\n[Scatter-Gather](BroadcastAggregate.html)\n\n[Routing Slip](RoutingTable.html)\n\n[Process Manager](ProcessManager.html)\n\n[Message Broker](MessageBroker.html)\n\n[Message\nTransformation](MessageTransformationIntro.html)\n\n[Message Translator](MessageTranslator.html)\n\n[Envelope Wrapper](EnvelopeWrapper.html)\n\n[Content Enricher](DataEnricher.html)\n\n[Content Filter](ContentFilter.html)\n\n[Claim Check](StoreInLibrary.html)\n\n[Normalizer](Normalizer.html)\n\n[Canonical Data Model](CanonicalDataModel.html)\n\n[Messaging Endpoints](MessagingEndpointsIntro.html)\n\n[Message Endpoint](MessageEndpoint.html)\n\n[Messaging Gateway](MessagingGateway.html)\n\n[Messaging Mapper](MessagingMapper.html)\n\n[Transactional Client](TransactionalClient.html)\n\n[Polling Consumer](PollingConsumer.html)\n\n[Event-driven Consumer](EventDrivenConsumer.html)\n\n[Competing Consumers](CompetingConsumers.html)\n\n[Message Dispatcher](MessageDispatcher.html)\n\n[Selective Consumer](MessageSelector.html)\n\n[Durable Subscriber](DurableSubscription.html)\n\n[Idempotent Receiver](IdempotentReceiver.html)\n\n[Service Activator](MessagingAdapter.html)\n\n[Messaging Channels](MessagingChannelsIntro.html)\n\n[Message Channel](MessageChannel.html)\n\n[Point-to-Point Channel](PointToPointChannel.html)\n\n[Publish-Subscr. Channel](PublishSubscribeChannel.html)\n\n[Datatype Channel](DatatypeChannel.html)\n\n[Invalid Message Channel](InvalidMessageChannel.html)\n\n[Dead Letter Channel](DeadLetterChannel.html)\n\n[Guaranteed Delivery](GuaranteedMessaging.html)\n\n[Channel Adapter](ChannelAdapter.html)\n\n[Messaging Bridge](MessagingBridge.html)\n\n[Message Bus](MessageBus.html)\n\n[Systems Mgmt.](SystemManagementIntro.html)\n\n[Control Bus](ControlBus.html)\n\n[Detour](Detour.html)\n\n[Wire Tap](WireTap.html)\n\n[Message History](MessageHistory.html)\n\n[Message Store](MessageStore.html)\n\n[Smart Proxy](SmartProxy.html)\n\n[Test Message](TestMessage.html)\n\n[Channel Purger](ChannelPurger.html)\n\n- » [Read the latest in My Blog](/ramblings)\n- » [Get more insights from My Articles](/articles.html)\n- » [See me live in my Upcoming Talks](/talks)\n\nYou can reuse the following elements under the [Creative Commons Attribution](http://creativecommons.org/licenses/by/4.0/) license: pattern icon, pattern name, problem and solution statements (in bold), and the sketch. Other portions are protected by copyright.\n\n[Enterprise Integration Patterns](https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20)\nThe de-facto language for designing asynchronous, distributed systems. Over 100,000 copies sold.\n\n[The Software Architect Elevator](https://www.architectelevator.com/book)\n\n Rethink the role of architects as a connecting element across organizational layers. Acquire the technical, communication, and organizational skills to succeed in this new role.\n\n[Cloud Strategy](https://www.cloudstrategybook.com)\n\n Make your cloud migration a success by translating high-level goals into conscious decisions with well-understood trade-offs.\n\n[Platform Strategy](https://www.platformstrategybook.info)\n\n Platforms can boost innovation through harmonization, but they aren't easy to build. Learn from over a decade of designing and rolling out IT platforms.", "znaku_textu": 6256, "slov": 533, "odkazu": 108, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 15:34:27", "sha256": "57e50ee6fbc76b0c9f124fba57e677541bc7c2366d0ec45fd76ff198ff1e483d", "hloubka": 4, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://creativecommons.org/licenses/by/4.0/", "https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "https://www.architectelevator.com/book", "https://www.cloudstrategybook.com/", "https://www.platformstrategybook.info/"]} {"url": "http://www.enterpriseintegrationpatterns.com/EventDrivenConsumer.html", "titulek": "Event-Driven Consumer - Enterprise Integration Patterns", "h1": "", "popis": "How can an application automatically consume messages as they become available?", "klicova_slova": "Event-Driven Consumer,integration, messaging, events, patterns, event-driven, coupling, eai, middleware, application integration, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns", "og:title": "Event-Driven Consumer - Enterprise Integration Patterns", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/EventDrivenConsumer.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/EventDrivenConsumerSolution.gif"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Example: RabbitMQ ConsumerNEW"}, {"uroven": 2, "text": "Integration Pattern Language"}], "markdown": "| | Event-Driven Consumer[Messaging Patterns](index.html) » [Messaging Endpoints](MessagingEndpointsIntro.html) | [Contents](toc.html)[⇐ Prev](PollingConsumer.html)[Next ⇒](CompetingConsumers.html) |\n| --- | --- | --- |\n\nAn application needs to consume [*Message*](Message.html)s as soon as they’re delivered.\n\nHow can an application automatically consume messages as they become available?\n\nThe application should use an *Event-Driven Consumer*, one that is automatically handed messages as they’re delivered on the channel.\n\nThis is also known as an asynchronous receiver, because the receiver does not have a running thread until a callback thread delivers a message. We call it an *Event-Driven Consumer* because the receiver acts like the message delivery is an event that triggers the receiver into action.\n\nAn *Event-Driven Consumer* is an object that is invoked by the messaging system when a message arrives on the consumer’s channel. The consumer passes the message to the application through a callback in the application’s API. (How the messaging system gets the message is implementation-specific and may or may not be event-driven. All the consumer knows is that it can sit dormant with no active threads until it gets invoked by the messaging system passing it a message.)\n\n...\nRead the entire pattern in the book [Enterprise Integration Patterns](/books1.html)\n\n## Example: RabbitMQ Consumer[NEW](/ramblings/eip1_examples_updated.html)\n\n[RabbitMQ](http://www.rabbitmq.com) consumers are by default event-driven. When consuming messages off a Channel, you have to provide an implementation of the Consumer interface. The following code example sets up a very simple consumer that simply prints incoming messages as strings:\n\n```\nConsumer consumer = new DefaultConsumer(channel) {\n @Override\n public void handleDelivery(\n String consumerTag, \n Envelope envelope, \n AMQP.BasicProperties properties, \n byte[] body) throws IOException {\n String message = new String(body, \"UTF-8\");\n System.out.println(\"Received '\" + message + \"'\");\n }\n};\n\nboolean autoAck = true;\nchannel.basicConsume(queueName, autoAck, consumer);\t\n```\n\nThis implementation is not a [*Transactional Client*](TransactionalClient.html) because the client acknowledges messages automatically on receipt but before processing.\n\nThe complete source code for this example can be found on [Github](https://github.com/spac3lord/eip/tree/master/Rabbit/src).\n\n**Related patterns:**\n\n[*Competing Consumers*](CompetingConsumers.html), [*Durable Subscriber*](DurableSubscription.html), [*Message*](Message.html), [*Message Channel*](MessageChannel.html), [*Message Dispatcher*](MessageDispatcher.html), [*Selective Consumer*](MessageSelector.html), [*Polling Consumer*](PollingConsumer.html), [*Transactional Client*](TransactionalClient.html)\n\n---\n\n## Integration Pattern Language\n\n[Message Construct.](MessageConstructionIntro.html)\n\n[Message](Message.html)\n\n[Command Message](CommandMessage.html)\n\n[Document Message](DocumentMessage.html)\n\n[Event Message](EventMessage.html)\n\n[Request-Reply](RequestReply.html)\n\n[Return Address](ReturnAddress.html)\n\n[Correlation Identifier](CorrelationIdentifier.html)\n\n[Message Sequence](MessageSequence.html)\n\n[Message Expiration](MessageExpiration.html)\n\n[Format Indicator](FormatIndicator.html)\n\n[Message Routing](MessageRoutingIntro.html)\n\n[Pipes-and-Filters](PipesAndFilters.html)\n\n[Message Router](MessageRouter.html)\n\n[Content-based Router](ContentBasedRouter.html)\n\n[Message Filter](Filter.html)\n\n[Dynamic Router](DynamicRouter.html)\n\n[Recipient List](RecipientList.html)\n\n[Splitter](Sequencer.html)\n\n[Aggregator](Aggregator.html)\n\n[Resequencer](Resequencer.html)\n\n[Composed Msg. Processor](DistributionAggregate.html)\n\n[Scatter-Gather](BroadcastAggregate.html)\n\n[Routing Slip](RoutingTable.html)\n\n[Process Manager](ProcessManager.html)\n\n[Message Broker](MessageBroker.html)\n\n[Message\nTransformation](MessageTransformationIntro.html)\n\n[Message Translator](MessageTranslator.html)\n\n[Envelope Wrapper](EnvelopeWrapper.html)\n\n[Content Enricher](DataEnricher.html)\n\n[Content Filter](ContentFilter.html)\n\n[Claim Check](StoreInLibrary.html)\n\n[Normalizer](Normalizer.html)\n\n[Canonical Data Model](CanonicalDataModel.html)\n\n[Messaging Endpoints](MessagingEndpointsIntro.html)\n\n[Message Endpoint](MessageEndpoint.html)\n\n[Messaging Gateway](MessagingGateway.html)\n\n[Messaging Mapper](MessagingMapper.html)\n\n[Transactional Client](TransactionalClient.html)\n\n[Polling Consumer](PollingConsumer.html)\n\n[Event-driven Consumer](EventDrivenConsumer.html)\n\n[Competing Consumers](CompetingConsumers.html)\n\n[Message Dispatcher](MessageDispatcher.html)\n\n[Selective Consumer](MessageSelector.html)\n\n[Durable Subscriber](DurableSubscription.html)\n\n[Idempotent Receiver](IdempotentReceiver.html)\n\n[Service Activator](MessagingAdapter.html)\n\n[Messaging Channels](MessagingChannelsIntro.html)\n\n[Message Channel](MessageChannel.html)\n\n[Point-to-Point Channel](PointToPointChannel.html)\n\n[Publish-Subscr. Channel](PublishSubscribeChannel.html)\n\n[Datatype Channel](DatatypeChannel.html)\n\n[Invalid Message Channel](InvalidMessageChannel.html)\n\n[Dead Letter Channel](DeadLetterChannel.html)\n\n[Guaranteed Delivery](GuaranteedMessaging.html)\n\n[Channel Adapter](ChannelAdapter.html)\n\n[Messaging Bridge](MessagingBridge.html)\n\n[Message Bus](MessageBus.html)\n\n[Systems Mgmt.](SystemManagementIntro.html)\n\n[Control Bus](ControlBus.html)\n\n[Detour](Detour.html)\n\n[Wire Tap](WireTap.html)\n\n[Message History](MessageHistory.html)\n\n[Message Store](MessageStore.html)\n\n[Smart Proxy](SmartProxy.html)\n\n[Test Message](TestMessage.html)\n\n[Channel Purger](ChannelPurger.html)", "znaku_textu": 5516, "slov": 487, "odkazu": 111, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 15:34:39", "sha256": "bdd22eb6db0ea6606a9ff53c93d17750b2977ec7f0a25120467a49c532c446d0", "hloubka": 4, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://www.rabbitmq.com/", "https://github.com/spac3lord/eip/tree/master/Rabbit/src", "http://creativecommons.org/licenses/by/4.0/", "https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "https://www.architectelevator.com/book", "https://www.cloudstrategybook.com/", "https://www.platformstrategybook.info/"]} {"url": "http://www.enterpriseintegrationpatterns.com/EventMessage.html", "titulek": "Event Message - Enterprise Integration Patterns", "h1": "", "popis": "How can messaging be used to transmit events from one application to another?", "klicova_slova": "Event Message,integration, messaging, events, patterns, event-driven, coupling, eai, middleware, application integration, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns", "og:title": "Event Message - Enterprise Integration Patterns", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/EventMessage.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/EventMessageSolution.gif"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Integration Pattern Language"}], "markdown": "Messaging Patterns\n\n[Messaging Patterns](index.html)\n\n- [Integration Styles](IntegrationStylesIntro.html)\n- [Messaging Systems](MessagingComponentsIntro.html)\n- [Messaging Channels](MessagingChannelsIntro.html)\n- [Message Construction](MessageConstructionIntro.html)\n- [Interlude: Simple Messaging](SimpleMessagingIntro.html)\n- [Message Routing](MessageRoutingIntro.html)\n- [Message Transformation](MessageTransformationIntro.html)\n- [Interlude: Composed Messaging](ComposedMessagingExample.html)\n- [Messaging Endpoints](MessagingEndpointsIntro.html)\n- [System Management](SystemManagementIntro.html)\n- Interlude: Systems Management Example\n- Integration Patterns in Practice\n- Concluding Remarks\n- Appendices\n\n| | Event Message[Messaging Patterns](index.html) » [Message Construction](MessageConstructionIntro.html) | [Contents](toc.html)[⇐ Prev](DocumentMessage.html)[Next ⇒](RequestReply.html) |\n| --- | --- | --- |\n\nSeveral applications would like to use event-notification to coordinate their actions, and would like to use [*Messaging*](Messaging.html) to communicate those events.\n\nHow can messaging be used to transmit events from one application to another?\n\nUse an *Event Message* for reliable, asynchronous event notification between applications.\n\nWhen a subject has an event to announce, it will create an event object, wrap it in a message, and send it on a channel. The observer will receive the event message, get the event, and process it. Messaging does not change the event notification, just makes sure that the notification gets to the observer.\n\nThe difference between an *Event Message* and a [*Document Message*](DocumentMessage.html) is a matter of timing and content. An event’s contents is typically less important. Many events are empty; their mere occurrance tells the observer to react. An event’s timing is very important; the subject should issue an event as soon as a change occurs, and the observer should process it quickly while it’s still relevant. [*Guaranteed Delivery*](GuaranteedMessaging.html) is usually not very helpful with events because they’re frequent and need to be delivered quickly. [*Message Expiration*](MessageExpiration.html) can be very helpful to make sure that an event is processed quickly or not at all.\n\n...\nRead the entire pattern in the book [Enterprise Integration Patterns](/books1.html)\n\n**Related patterns:**\n\n[*Command Message*](CommandMessage.html), [*Document Message*](DocumentMessage.html), [*Durable Subscriber*](DurableSubscription.html), [*Remote Procedure Invocation*](EncapsulatedSynchronousIntegration.html), [*Guaranteed Delivery*](GuaranteedMessaging.html), [*Message*](Message.html), [*Message Expiration*](MessageExpiration.html), [*Messaging*](Messaging.html), [*JMS Publish/Subscribe Example*](ObserverJmsExample.html), [*Point-to-Point Channel*](PointToPointChannel.html), [*Publish-Subscribe Channel*](PublishSubscribeChannel.html)\n\n---\n\n## Integration Pattern Language\n\n[Message Construct.](MessageConstructionIntro.html)\n\n[Message](Message.html)\n\n[Command Message](CommandMessage.html)\n\n[Document Message](DocumentMessage.html)\n\n[Event Message](EventMessage.html)\n\n[Request-Reply](RequestReply.html)\n\n[Return Address](ReturnAddress.html)\n\n[Correlation Identifier](CorrelationIdentifier.html)\n\n[Message Sequence](MessageSequence.html)\n\n[Message Expiration](MessageExpiration.html)\n\n[Format Indicator](FormatIndicator.html)\n\n[Message Routing](MessageRoutingIntro.html)\n\n[Pipes-and-Filters](PipesAndFilters.html)\n\n[Message Router](MessageRouter.html)\n\n[Content-based Router](ContentBasedRouter.html)\n\n[Message Filter](Filter.html)\n\n[Dynamic Router](DynamicRouter.html)\n\n[Recipient List](RecipientList.html)\n\n[Splitter](Sequencer.html)\n\n[Aggregator](Aggregator.html)\n\n[Resequencer](Resequencer.html)\n\n[Composed Msg. Processor](DistributionAggregate.html)\n\n[Scatter-Gather](BroadcastAggregate.html)\n\n[Routing Slip](RoutingTable.html)\n\n[Process Manager](ProcessManager.html)\n\n[Message Broker](MessageBroker.html)\n\n[Message\nTransformation](MessageTransformationIntro.html)\n\n[Message Translator](MessageTranslator.html)\n\n[Envelope Wrapper](EnvelopeWrapper.html)\n\n[Content Enricher](DataEnricher.html)\n\n[Content Filter](ContentFilter.html)\n\n[Claim Check](StoreInLibrary.html)\n\n[Normalizer](Normalizer.html)\n\n[Canonical Data Model](CanonicalDataModel.html)\n\n[Messaging Endpoints](MessagingEndpointsIntro.html)\n\n[Message Endpoint](MessageEndpoint.html)\n\n[Messaging Gateway](MessagingGateway.html)\n\n[Messaging Mapper](MessagingMapper.html)\n\n[Transactional Client](TransactionalClient.html)\n\n[Polling Consumer](PollingConsumer.html)\n\n[Event-driven Consumer](EventDrivenConsumer.html)\n\n[Competing Consumers](CompetingConsumers.html)\n\n[Message Dispatcher](MessageDispatcher.html)\n\n[Selective Consumer](MessageSelector.html)\n\n[Durable Subscriber](DurableSubscription.html)\n\n[Idempotent Receiver](IdempotentReceiver.html)\n\n[Service Activator](MessagingAdapter.html)\n\n[Messaging Channels](MessagingChannelsIntro.html)\n\n[Message Channel](MessageChannel.html)\n\n[Point-to-Point Channel](PointToPointChannel.html)\n\n[Publish-Subscr. Channel](PublishSubscribeChannel.html)\n\n[Datatype Channel](DatatypeChannel.html)\n\n[Invalid Message Channel](InvalidMessageChannel.html)\n\n[Dead Letter Channel](DeadLetterChannel.html)\n\n[Guaranteed Delivery](GuaranteedMessaging.html)\n\n[Channel Adapter](ChannelAdapter.html)\n\n[Messaging Bridge](MessagingBridge.html)\n\n[Message Bus](MessageBus.html)\n\n[Systems Mgmt.](SystemManagementIntro.html)\n\n[Control Bus](ControlBus.html)\n\n[Detour](Detour.html)\n\n[Wire Tap](WireTap.html)\n\n[Message History](MessageHistory.html)\n\n[Message Store](MessageStore.html)\n\n[Smart Proxy](SmartProxy.html)\n\n[Test Message](TestMessage.html)\n\n[Channel Purger](ChannelPurger.html)\n\n- » [Read the latest in My Blog](/ramblings)\n- » [Get more insights from My Articles](/articles.html)\n- » [See me live in my Upcoming Talks](/talks)\n\nYou can reuse the following elements under the [Creative Commons Attribution](http://creativecommons.org/licenses/by/4.0/) license: pattern icon, pattern name, problem and solution statements (in bold), and the sketch. Other portions are protected by copyright.\n\n[Enterprise Integration Patterns](https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20)\nThe de-facto language for designing asynchronous, distributed systems. Over 100,000 copies sold.\n\n[The Software Architect Elevator](https://www.architectelevator.com/book)\n\n Rethink the role of architects as a connecting element across organizational layers. Acquire the technical, communication, and organizational skills to succeed in this new role.\n\n[Cloud Strategy](https://www.cloudstrategybook.com)\n\n Make your cloud migration a success by translating high-level goals into conscious decisions with well-understood trade-offs.\n\n[Platform Strategy](https://www.platformstrategybook.info)\n\n Platforms can boost innovation through harmonization, but they aren't easy to build. Learn from over a decade of designing and rolling out IT platforms.", "znaku_textu": 6871, "slov": 604, "odkazu": 108, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 15:34:03", "sha256": "62f373d66f1ade20d93b672a0cdacd6fc2deed62b0508c2bfe3fc25952d0de42", "hloubka": 4, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://creativecommons.org/licenses/by/4.0/", "https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "https://www.architectelevator.com/book", "https://www.cloudstrategybook.com/", "https://www.platformstrategybook.info/"]} {"url": "http://www.enterpriseintegrationpatterns.com/Filter.html", "titulek": "Message Filter - Enterprise Integration Patterns", "h1": "", "popis": "How can a component avoid receiving uninteresting messages?", "klicova_slova": "Message Filter,integration, messaging, events, patterns, event-driven, coupling, eai, middleware, application integration, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns", "og:title": "Message Filter - Enterprise Integration Patterns", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/Filter.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/MessageFilter.gif"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Example: RabbitMQ BindingsNEW"}, {"uroven": 2, "text": "Integration Pattern Language"}], "markdown": "| | Message Filter[Messaging Patterns](index.html) » [Message Routing](MessageRoutingIntro.html) | [Contents](toc.html)[⇐ Prev](ContentBasedRouter.html)[Next ⇒](DynamicRouter.html) |\n| --- | --- | --- |\n\nContinuing with the order processing example, let's assume that company management publishes price changes and promotions to large customers. Whenever a price for an item changes, we send a message notifying the customer. We do the same if we are running a special promotion, e.g. all widgets are 10% off in the month of November. Some customers may be interested in receiving price updates or promotions only related to specific items. If I purchase primarily gadgets, I may not be interested in knowing whether widgets are on sale or not.\n\nHow can a component avoid receiving uninteresting messages?\n\nUse a special kind of Message Router, a *Message Filter*, to eliminate undesired messages from a channel based on a set of criteria.\n\nThe *Message Filter* has only a single output channel. If the message content matches the criteria specified by the *Message Filter*, the message is routed to the output channel. If the message content does not match the criteria, the message is discarded.\n\n...\nRead the entire pattern in the book [Enterprise Integration Patterns](/books1.html)\n\n## Example: RabbitMQ Bindings[NEW](/ramblings/eip1_examples_updated.html)\n\nRabbitMQ allows a straightforward implementation of [*Publish-Subscribe Channel*](PublishSubscribeChannel.html) with *Message Filter*s via a *direct exchange*. Exchanges are a concept which is distinct from a queue. Generally, message producers publish messages to an exchange, which controls how the message is propagated to other queues. For example, a \"fanout\" exchange simply propagates a message to all subscribed queues while a \"direct\" exchange allows subscribing queues to express a filter condition for the messages they want to receive.\n\nA direct exchange places incoming messages into a subscribing queue based on a message's *routing key* and the queue's *binding key*. Multiple binding keys are allowed per queue and multiple queues can use the same binding key, which results in each of them receiving a copy of the queue.\n\n*Mapping RabbitMQ Concepts to Enterprise Integration Patterns*\n\nThe Widgets and Gadgets example from above can be implemented quite easily with a single direct exchange and two queues bound to this exchange, each with its respective filter. A helper method helps create a new queue, bind it to the exchange with the filter, and setup a [*Event-Driven Consumer*](EventDrivenConsumer.html) that simply prints out messages.\n\n```\nstatic void filteredReceive(final Channel channel, String filter, String exchangeName) throws IOException {\n\n System.out.println(filter + \" waiting for messages. To exit press CTRL+C\");\n\n Consumer consumer = new DefaultConsumer(channel) {\n @Override\n public void handleDelivery(String consumerTag, Envelope envelope, AMQP.BasicProperties properties, byte[] body)\n throws IOException {\n String message = new String(body, \"UTF-8\");\n System.out.println(filter + \" Received '\" + message + \"'\");\n }\n };\n\n String queueName = channel.queueDeclare().getQueue();\n channel.queueBind(queueName, EXCHANGE_NAME, filter);\n\n boolean autoAck = true;\n channel.basicConsume(queueName, autoAck, consumer);\n}\n```\n\nThe consumer is a simple [*Event-Driven Consumer*](EventDrivenConsumer.html) that is called every time a message is received. The following lines generate a new private queue and bind it to the exchange with the specified filter string. Lastly, the consumer implementation is attached to the queue.\n\nWe can now create the direct exchange and start multiple of these consumers, giving each a respective *binding key*:\n\n```\nchannel.exchangeDeclare(EXCHANGE_NAME, \"direct\");\n\nfilteredReceive(channel, \"Widget\", EXCHANGE_NAME);\nfilteredReceive(channel, \"Gadget\", EXCHANGE_NAME);\n```\n\nLastly, we publish some messages against the exchange with different message keys:\n\n```\nchannel.exchangeDeclare(EXCHANGE_NAME, \"direct\");\n\nsendMessage(channel, EXCHANGE_NAME, \"Widget\", \"Hello EIP Widget!\");\nsendMessage(channel, EXCHANGE_NAME, \"Gadget\", \"Hello EIP Gadget!\");\n```\n\nsendMessage is a simple helper method:\n\n```\nstatic void sendMessage(Channel channel, String exchange, String key, String message) throws IOException {\n channel.basicPublish(exchange, key, null, message.getBytes());\n System.out.println(\" [x] Sent '\" + message + \"'\");\n}\n```\n\nYou can run this code and observe that RabbitMQ filters the messages according to their key:\n\n```\nWidget waiting for messages. To exit press CTRL+C\nGadget waiting for messages. To exit press CTRL+C\nWidget Received 'Hello EIP Widget!'\nGadget Received 'Hello EIP Gadget!'\n```\n\nThe complete source code for this example can be found on [Github](https://github.com/spac3lord/eip/tree/master/Rabbit/src).\n\n**Related patterns:**\n\n[*Content-Based Router*](ContentBasedRouter.html), [*Event-Driven Consumer*](EventDrivenConsumer.html), [*Message Router*](MessageRouter.html), [*Selective Consumer*](MessageSelector.html), [*Publish-Subscribe Channel*](PublishSubscribeChannel.html), [*Recipient List*](RecipientList.html)\n\n---\n\n## Integration Pattern Language\n\n[Message Construct.](MessageConstructionIntro.html)\n\n[Message](Message.html)\n\n[Command Message](CommandMessage.html)\n\n[Document Message](DocumentMessage.html)\n\n[Event Message](EventMessage.html)\n\n[Request-Reply](RequestReply.html)\n\n[Return Address](ReturnAddress.html)\n\n[Correlation Identifier](CorrelationIdentifier.html)\n\n[Message Sequence](MessageSequence.html)\n\n[Message Expiration](MessageExpiration.html)\n\n[Format Indicator](FormatIndicator.html)\n\n[Message Routing](MessageRoutingIntro.html)\n\n[Pipes-and-Filters](PipesAndFilters.html)\n\n[Message Router](MessageRouter.html)\n\n[Content-based Router](ContentBasedRouter.html)\n\n[Message Filter](Filter.html)\n\n[Dynamic Router](DynamicRouter.html)\n\n[Recipient List](RecipientList.html)\n\n[Splitter](Sequencer.html)\n\n[Aggregator](Aggregator.html)\n\n[Resequencer](Resequencer.html)\n\n[Composed Msg. Processor](DistributionAggregate.html)\n\n[Scatter-Gather](BroadcastAggregate.html)\n\n[Routing Slip](RoutingTable.html)\n\n[Process Manager](ProcessManager.html)\n\n[Message Broker](MessageBroker.html)\n\n[Message\nTransformation](MessageTransformationIntro.html)\n\n[Message Translator](MessageTranslator.html)\n\n[Envelope Wrapper](EnvelopeWrapper.html)\n\n[Content Enricher](DataEnricher.html)\n\n[Content Filter](ContentFilter.html)\n\n[Claim Check](StoreInLibrary.html)\n\n[Normalizer](Normalizer.html)\n\n[Canonical Data Model](CanonicalDataModel.html)\n\n[Messaging Endpoints](MessagingEndpointsIntro.html)\n\n[Message Endpoint](MessageEndpoint.html)\n\n[Messaging Gateway](MessagingGateway.html)\n\n[Messaging Mapper](MessagingMapper.html)\n\n[Transactional Client](TransactionalClient.html)\n\n[Polling Consumer](PollingConsumer.html)\n\n[Event-driven Consumer](EventDrivenConsumer.html)\n\n[Competing Consumers](CompetingConsumers.html)\n\n[Message Dispatcher](MessageDispatcher.html)\n\n[Selective Consumer](MessageSelector.html)\n\n[Durable Subscriber](DurableSubscription.html)\n\n[Idempotent Receiver](IdempotentReceiver.html)\n\n[Service Activator](MessagingAdapter.html)\n\n[Messaging Channels](MessagingChannelsIntro.html)\n\n[Message Channel](MessageChannel.html)\n\n[Point-to-Point Channel](PointToPointChannel.html)\n\n[Publish-Subscr. Channel](PublishSubscribeChannel.html)\n\n[Datatype Channel](DatatypeChannel.html)\n\n[Invalid Message Channel](InvalidMessageChannel.html)\n\n[Dead Letter Channel](DeadLetterChannel.html)\n\n[Guaranteed Delivery](GuaranteedMessaging.html)\n\n[Channel Adapter](ChannelAdapter.html)\n\n[Messaging Bridge](MessagingBridge.html)\n\n[Message Bus](MessageBus.html)\n\n[Systems Mgmt.](SystemManagementIntro.html)\n\n[Control Bus](ControlBus.html)\n\n[Detour](Detour.html)\n\n[Wire Tap](WireTap.html)\n\n[Message History](MessageHistory.html)\n\n[Message Store](MessageStore.html)\n\n[Smart Proxy](SmartProxy.html)\n\n[Test Message](TestMessage.html)\n\n[Channel Purger](ChannelPurger.html)", "znaku_textu": 7839, "slov": 815, "odkazu": 110, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 15:34:14", "sha256": "899fcd8bbb8d91b9a0985314998a4707c1b4e0b34aa79a2821149c861d53db2c", "hloubka": 4, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/spac3lord/eip/tree/master/Rabbit/src", "http://creativecommons.org/licenses/by/4.0/", "https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "https://www.architectelevator.com/book", "https://www.cloudstrategybook.com/", "https://www.platformstrategybook.info/"]} {"url": "http://www.enterpriseintegrationpatterns.com/FormatIndicator.html", "titulek": "Format Indicator - Enterprise Integration Patterns", "h1": "", "popis": "How can a message’s data format be designed to allow for possible future changes?", "klicova_slova": "Format Indicator,integration, messaging, events, patterns, event-driven, coupling, eai, middleware, application integration, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns", "og:title": "Format Indicator - Enterprise Integration Patterns", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/FormatIndicator.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/eip1_patterns_wide.png"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Integration Pattern Language"}], "markdown": "Messaging Patterns\n\n[Messaging Patterns](index.html)\n\n- [Integration Styles](IntegrationStylesIntro.html)\n- [Messaging Systems](MessagingComponentsIntro.html)\n- [Messaging Channels](MessagingChannelsIntro.html)\n- [Message Construction](MessageConstructionIntro.html)\n- [Interlude: Simple Messaging](SimpleMessagingIntro.html)\n- [Message Routing](MessageRoutingIntro.html)\n- [Message Transformation](MessageTransformationIntro.html)\n- [Interlude: Composed Messaging](ComposedMessagingExample.html)\n- [Messaging Endpoints](MessagingEndpointsIntro.html)\n- [System Management](SystemManagementIntro.html)\n- Interlude: Systems Management Example\n- Integration Patterns in Practice\n- Concluding Remarks\n- Appendices\n\n| | Format Indicator[Messaging Patterns](index.html) » [Message Construction](MessageConstructionIntro.html) | [Contents](toc.html)[⇐ Prev](MessageExpiration.html)[Next ⇒](SimpleMessagingIntro.html) |\n| --- | --- | --- |\n\nSeveral applications are communicating via [*Message*](Message.html)s that follow an agreed upon data format, perhaps an enterprise-wide [*Canonical Data Model*](CanonicalDataModel.html). However, that format may need to change over time.\n\nHow can a message’s data format be designed to allow for possible future changes?\n\nDesign a data format that includes a *Format Indicator*, so that the message specifies what format it is using.\n\nThe 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.\n\nThere are three main alternatives for implementing a format indicator:\n\n1. **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.\n2. **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.\n3. **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.\n\n...\nRead the entire pattern in the book [Enterprise Integration Patterns](/books1.html)\n\n**Related patterns:**\n\n[*Canonical Data Model*](CanonicalDataModel.html), [*Message*](Message.html)\n\n---\n\n## Integration Pattern Language\n\n[Message Construct.](MessageConstructionIntro.html)\n\n[Message](Message.html)\n\n[Command Message](CommandMessage.html)\n\n[Document Message](DocumentMessage.html)\n\n[Event Message](EventMessage.html)\n\n[Request-Reply](RequestReply.html)\n\n[Return Address](ReturnAddress.html)\n\n[Correlation Identifier](CorrelationIdentifier.html)\n\n[Message Sequence](MessageSequence.html)\n\n[Message Expiration](MessageExpiration.html)\n\n[Format Indicator](FormatIndicator.html)\n\n[Message Routing](MessageRoutingIntro.html)\n\n[Pipes-and-Filters](PipesAndFilters.html)\n\n[Message Router](MessageRouter.html)\n\n[Content-based Router](ContentBasedRouter.html)\n\n[Message Filter](Filter.html)\n\n[Dynamic Router](DynamicRouter.html)\n\n[Recipient List](RecipientList.html)\n\n[Splitter](Sequencer.html)\n\n[Aggregator](Aggregator.html)\n\n[Resequencer](Resequencer.html)\n\n[Composed Msg. Processor](DistributionAggregate.html)\n\n[Scatter-Gather](BroadcastAggregate.html)\n\n[Routing Slip](RoutingTable.html)\n\n[Process Manager](ProcessManager.html)\n\n[Message Broker](MessageBroker.html)\n\n[Message\nTransformation](MessageTransformationIntro.html)\n\n[Message Translator](MessageTranslator.html)\n\n[Envelope Wrapper](EnvelopeWrapper.html)\n\n[Content Enricher](DataEnricher.html)\n\n[Content Filter](ContentFilter.html)\n\n[Claim Check](StoreInLibrary.html)\n\n[Normalizer](Normalizer.html)\n\n[Canonical Data Model](CanonicalDataModel.html)\n\n[Messaging Endpoints](MessagingEndpointsIntro.html)\n\n[Message Endpoint](MessageEndpoint.html)\n\n[Messaging Gateway](MessagingGateway.html)\n\n[Messaging Mapper](MessagingMapper.html)\n\n[Transactional Client](TransactionalClient.html)\n\n[Polling Consumer](PollingConsumer.html)\n\n[Event-driven Consumer](EventDrivenConsumer.html)\n\n[Competing Consumers](CompetingConsumers.html)\n\n[Message Dispatcher](MessageDispatcher.html)\n\n[Selective Consumer](MessageSelector.html)\n\n[Durable Subscriber](DurableSubscription.html)\n\n[Idempotent Receiver](IdempotentReceiver.html)\n\n[Service Activator](MessagingAdapter.html)\n\n[Messaging Channels](MessagingChannelsIntro.html)\n\n[Message Channel](MessageChannel.html)\n\n[Point-to-Point Channel](PointToPointChannel.html)\n\n[Publish-Subscr. Channel](PublishSubscribeChannel.html)\n\n[Datatype Channel](DatatypeChannel.html)\n\n[Invalid Message Channel](InvalidMessageChannel.html)\n\n[Dead Letter Channel](DeadLetterChannel.html)\n\n[Guaranteed Delivery](GuaranteedMessaging.html)\n\n[Channel Adapter](ChannelAdapter.html)\n\n[Messaging Bridge](MessagingBridge.html)\n\n[Message Bus](MessageBus.html)\n\n[Systems Mgmt.](SystemManagementIntro.html)\n\n[Control Bus](ControlBus.html)\n\n[Detour](Detour.html)\n\n[Wire Tap](WireTap.html)\n\n[Message History](MessageHistory.html)\n\n[Message Store](MessageStore.html)\n\n[Smart Proxy](SmartProxy.html)\n\n[Test Message](TestMessage.html)\n\n[Channel Purger](ChannelPurger.html)\n\n- » [Read the latest in My Blog](/ramblings)\n- » [Get more insights from My Articles](/articles.html)\n- » [See me live in my Upcoming Talks](/talks)\n\nYou can reuse the following elements under the [Creative Commons Attribution](http://creativecommons.org/licenses/by/4.0/) license: pattern icon, pattern name, problem and solution statements (in bold), and the sketch. Other portions are protected by copyright.\n\n[Enterprise Integration Patterns](https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20)\nThe de-facto language for designing asynchronous, distributed systems. Over 100,000 copies sold.\n\n[The Software Architect Elevator](https://www.architectelevator.com/book)\n\n Rethink the role of architects as a connecting element across organizational layers. Acquire the technical, communication, and organizational skills to succeed in this new role.\n\n[Cloud Strategy](https://www.cloudstrategybook.com)\n\n Make your cloud migration a success by translating high-level goals into conscious decisions with well-understood trade-offs.\n\n[Platform Strategy](https://www.platformstrategybook.info)\n\n Platforms can boost innovation through harmonization, but they aren't easy to build. Learn from over a decade of designing and rolling out IT platforms.", "znaku_textu": 6515, "slov": 594, "odkazu": 108, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 15:34:09", "sha256": "54fd70b7f96611bc8e639462761098b2ae2f6624ab4bd279699cca1308436683", "hloubka": 4, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://creativecommons.org/licenses/by/4.0/", "https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "https://www.architectelevator.com/book", "https://www.cloudstrategybook.com/", "https://www.platformstrategybook.info/"]} {"url": "http://www.enterpriseintegrationpatterns.com/GuaranteedMessaging.html", "titulek": "Guaranteed Delivery - Enterprise Integration Patterns", "h1": "", "popis": "How can the sender make sure that a message will be delivered, even if the messaging system fails?", "klicova_slova": "Guaranteed Delivery,integration, messaging, events, patterns, event-driven, coupling, eai, middleware, application integration, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns", "og:title": "Guaranteed Delivery - Enterprise Integration Patterns", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/GuaranteedMessaging.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/GuaranteedMessagingSolution.gif"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Integration Pattern Language"}], "markdown": "Messaging Patterns\n\n[Messaging Patterns](index.html)\n\n- [Integration Styles](IntegrationStylesIntro.html)\n- [Messaging Systems](MessagingComponentsIntro.html)\n- [Messaging Channels](MessagingChannelsIntro.html)\n- [Message Construction](MessageConstructionIntro.html)\n- [Interlude: Simple Messaging](SimpleMessagingIntro.html)\n- [Message Routing](MessageRoutingIntro.html)\n- [Message Transformation](MessageTransformationIntro.html)\n- [Interlude: Composed Messaging](ComposedMessagingExample.html)\n- [Messaging Endpoints](MessagingEndpointsIntro.html)\n- [System Management](SystemManagementIntro.html)\n- Interlude: Systems Management Example\n- Integration Patterns in Practice\n- Concluding Remarks\n- Appendices\n\n| | Guaranteed Delivery[Messaging Patterns](index.html) » [Messaging Channels](MessagingChannelsIntro.html) | [Contents](toc.html)[⇐ Prev](DeadLetterChannel.html)[Next ⇒](ChannelAdapter.html) |\n| --- | --- | --- |\n\nAn enterprise is using [*Messaging*](Messaging.html) to integrate applications.\n\nHow can the sender make sure that a message will be delivered, even if the messaging system fails?\n\nUse *Guaranteed Delivery* to make messages persistent so that they are not lost even if the messaging system crashes.\n\nWith *Guaranteed Delivery*, the messaging system uses a built-in data store to persist messages. Each computer the messaging system is installed on has its own data store so that the messages can be stored locally. When the sender sends a message, the send operation does not complete successfully until the message is safely stored in the sender’s data store. Subsequently, the message is not deleted from one data store until it is successfully forwarded to and stored in the next data store. In this way, once the sender successfully sends the message, it is always stored on disk on at least one computer until is successfully delivered to and acknowledged by the receiver.\n\n...\nRead the entire pattern in the book [Enterprise Integration Patterns](/books1.html)\n\n**Related patterns:**\n\n[*Durable Subscriber*](DurableSubscription.html), [*Event Message*](EventMessage.html), [*Message Expiration*](MessageExpiration.html), [*Messaging*](Messaging.html), [*Point-to-Point Channel*](PointToPointChannel.html), [*Publish-Subscribe Channel*](PublishSubscribeChannel.html), [*Transactional Client*](TransactionalClient.html)\n\n---\n\n## Integration Pattern Language\n\n[Message Construct.](MessageConstructionIntro.html)\n\n[Message](Message.html)\n\n[Command Message](CommandMessage.html)\n\n[Document Message](DocumentMessage.html)\n\n[Event Message](EventMessage.html)\n\n[Request-Reply](RequestReply.html)\n\n[Return Address](ReturnAddress.html)\n\n[Correlation Identifier](CorrelationIdentifier.html)\n\n[Message Sequence](MessageSequence.html)\n\n[Message Expiration](MessageExpiration.html)\n\n[Format Indicator](FormatIndicator.html)\n\n[Message Routing](MessageRoutingIntro.html)\n\n[Pipes-and-Filters](PipesAndFilters.html)\n\n[Message Router](MessageRouter.html)\n\n[Content-based Router](ContentBasedRouter.html)\n\n[Message Filter](Filter.html)\n\n[Dynamic Router](DynamicRouter.html)\n\n[Recipient List](RecipientList.html)\n\n[Splitter](Sequencer.html)\n\n[Aggregator](Aggregator.html)\n\n[Resequencer](Resequencer.html)\n\n[Composed Msg. Processor](DistributionAggregate.html)\n\n[Scatter-Gather](BroadcastAggregate.html)\n\n[Routing Slip](RoutingTable.html)\n\n[Process Manager](ProcessManager.html)\n\n[Message Broker](MessageBroker.html)\n\n[Message\nTransformation](MessageTransformationIntro.html)\n\n[Message Translator](MessageTranslator.html)\n\n[Envelope Wrapper](EnvelopeWrapper.html)\n\n[Content Enricher](DataEnricher.html)\n\n[Content Filter](ContentFilter.html)\n\n[Claim Check](StoreInLibrary.html)\n\n[Normalizer](Normalizer.html)\n\n[Canonical Data Model](CanonicalDataModel.html)\n\n[Messaging Endpoints](MessagingEndpointsIntro.html)\n\n[Message Endpoint](MessageEndpoint.html)\n\n[Messaging Gateway](MessagingGateway.html)\n\n[Messaging Mapper](MessagingMapper.html)\n\n[Transactional Client](TransactionalClient.html)\n\n[Polling Consumer](PollingConsumer.html)\n\n[Event-driven Consumer](EventDrivenConsumer.html)\n\n[Competing Consumers](CompetingConsumers.html)\n\n[Message Dispatcher](MessageDispatcher.html)\n\n[Selective Consumer](MessageSelector.html)\n\n[Durable Subscriber](DurableSubscription.html)\n\n[Idempotent Receiver](IdempotentReceiver.html)\n\n[Service Activator](MessagingAdapter.html)\n\n[Messaging Channels](MessagingChannelsIntro.html)\n\n[Message Channel](MessageChannel.html)\n\n[Point-to-Point Channel](PointToPointChannel.html)\n\n[Publish-Subscr. Channel](PublishSubscribeChannel.html)\n\n[Datatype Channel](DatatypeChannel.html)\n\n[Invalid Message Channel](InvalidMessageChannel.html)\n\n[Dead Letter Channel](DeadLetterChannel.html)\n\n[Guaranteed Delivery](GuaranteedMessaging.html)\n\n[Channel Adapter](ChannelAdapter.html)\n\n[Messaging Bridge](MessagingBridge.html)\n\n[Message Bus](MessageBus.html)\n\n[Systems Mgmt.](SystemManagementIntro.html)\n\n[Control Bus](ControlBus.html)\n\n[Detour](Detour.html)\n\n[Wire Tap](WireTap.html)\n\n[Message History](MessageHistory.html)\n\n[Message Store](MessageStore.html)\n\n[Smart Proxy](SmartProxy.html)\n\n[Test Message](TestMessage.html)\n\n[Channel Purger](ChannelPurger.html)\n\n- » [Read the latest in My Blog](/ramblings)\n- » [Get more insights from My Articles](/articles.html)\n- » [See me live in my Upcoming Talks](/talks)\n\nYou can reuse the following elements under the [Creative Commons Attribution](http://creativecommons.org/licenses/by/4.0/) license: pattern icon, pattern name, problem and solution statements (in bold), and the sketch. Other portions are protected by copyright.\n\n[Enterprise Integration Patterns](https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20)\nThe de-facto language for designing asynchronous, distributed systems. Over 100,000 copies sold.\n\n[The Software Architect Elevator](https://www.architectelevator.com/book)\n\n Rethink the role of architects as a connecting element across organizational layers. Acquire the technical, communication, and organizational skills to succeed in this new role.\n\n[Cloud Strategy](https://www.cloudstrategybook.com)\n\n Make your cloud migration a success by translating high-level goals into conscious decisions with well-understood trade-offs.\n\n[Platform Strategy](https://www.platformstrategybook.info)\n\n Platforms can boost innovation through harmonization, but they aren't easy to build. Learn from over a decade of designing and rolling out IT platforms.", "znaku_textu": 6304, "slov": 538, "odkazu": 108, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 15:34:53", "sha256": "4efebed2bd57249fea064f02cf12f1ca8ecd5294370adf6e1ca73b451ad3a9b0", "hloubka": 4, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://creativecommons.org/licenses/by/4.0/", "https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "https://www.architectelevator.com/book", "https://www.cloudstrategybook.com/", "https://www.platformstrategybook.info/"]} {"url": "http://www.enterpriseintegrationpatterns.com/IdempotentReceiver.html", "titulek": "Idempotent Receiver - Enterprise Integration Patterns", "h1": "", "popis": "How can a message receiver deal with duplicate messages?", "klicova_slova": "Idempotent Receiver,integration, messaging, events, patterns, event-driven, coupling, eai, middleware, application integration, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns", "og:title": "Idempotent Receiver - Enterprise Integration Patterns", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/IdempotentReceiver.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/eip1_patterns_wide.png"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Integration Pattern Language"}], "markdown": "Messaging Patterns\n\n[Messaging Patterns](index.html)\n\n- [Integration Styles](IntegrationStylesIntro.html)\n- [Messaging Systems](MessagingComponentsIntro.html)\n- [Messaging Channels](MessagingChannelsIntro.html)\n- [Message Construction](MessageConstructionIntro.html)\n- [Interlude: Simple Messaging](SimpleMessagingIntro.html)\n- [Message Routing](MessageRoutingIntro.html)\n- [Message Transformation](MessageTransformationIntro.html)\n- [Interlude: Composed Messaging](ComposedMessagingExample.html)\n- [Messaging Endpoints](MessagingEndpointsIntro.html)\n- [System Management](SystemManagementIntro.html)\n- Interlude: Systems Management Example\n- Integration Patterns in Practice\n- Concluding Remarks\n- Appendices\n\n| | Idempotent Receiver[Messaging Patterns](index.html) » [Messaging Endpoints](MessagingEndpointsIntro.html) | [Contents](toc.html)[⇐ Prev](DurableSubscription.html)[Next ⇒](MessagingAdapter.html) |\n| --- | --- | --- |\n\nEven when a sender application only sends a message once, the receiver application may receive the message more than once.\n\nHow can a message receiver deal with duplicate messages?\n\nDesign a receiver to be an *Idempotent Receiver*--one that can safely receive the same message multiple times.\n\nThe term *idempotent* is used in mathematics to describe a function that produces the same result if it is applied to itself, i.e. f(x) = f(f(x)). In [*Messaging*](Messaging.html) this concepts translates into a message that has the same effect whether it is received once or multiple times. This means that a message can safely be resent without causing any problems even if the receiver receives duplicates of the same message.\n\nIdempotency can be achieved through two primary means:\n\n1. Explicit \"de-duping\", i.e. the removal of duplicate messages.\n2. Defining the message semantics to support idempotency.\n\n...\nRead the entire pattern in the book [Enterprise Integration Patterns](/books1.html)\n\n**Related patterns:**\n\n[*Command Message*](CommandMessage.html), [*Guaranteed Delivery*](GuaranteedMessaging.html), [*Messaging*](Messaging.html), [*Resequencer*](Resequencer.html)\n\n---\n\n## Integration Pattern Language\n\n[Message Construct.](MessageConstructionIntro.html)\n\n[Message](Message.html)\n\n[Command Message](CommandMessage.html)\n\n[Document Message](DocumentMessage.html)\n\n[Event Message](EventMessage.html)\n\n[Request-Reply](RequestReply.html)\n\n[Return Address](ReturnAddress.html)\n\n[Correlation Identifier](CorrelationIdentifier.html)\n\n[Message Sequence](MessageSequence.html)\n\n[Message Expiration](MessageExpiration.html)\n\n[Format Indicator](FormatIndicator.html)\n\n[Message Routing](MessageRoutingIntro.html)\n\n[Pipes-and-Filters](PipesAndFilters.html)\n\n[Message Router](MessageRouter.html)\n\n[Content-based Router](ContentBasedRouter.html)\n\n[Message Filter](Filter.html)\n\n[Dynamic Router](DynamicRouter.html)\n\n[Recipient List](RecipientList.html)\n\n[Splitter](Sequencer.html)\n\n[Aggregator](Aggregator.html)\n\n[Resequencer](Resequencer.html)\n\n[Composed Msg. Processor](DistributionAggregate.html)\n\n[Scatter-Gather](BroadcastAggregate.html)\n\n[Routing Slip](RoutingTable.html)\n\n[Process Manager](ProcessManager.html)\n\n[Message Broker](MessageBroker.html)\n\n[Message\nTransformation](MessageTransformationIntro.html)\n\n[Message Translator](MessageTranslator.html)\n\n[Envelope Wrapper](EnvelopeWrapper.html)\n\n[Content Enricher](DataEnricher.html)\n\n[Content Filter](ContentFilter.html)\n\n[Claim Check](StoreInLibrary.html)\n\n[Normalizer](Normalizer.html)\n\n[Canonical Data Model](CanonicalDataModel.html)\n\n[Messaging Endpoints](MessagingEndpointsIntro.html)\n\n[Message Endpoint](MessageEndpoint.html)\n\n[Messaging Gateway](MessagingGateway.html)\n\n[Messaging Mapper](MessagingMapper.html)\n\n[Transactional Client](TransactionalClient.html)\n\n[Polling Consumer](PollingConsumer.html)\n\n[Event-driven Consumer](EventDrivenConsumer.html)\n\n[Competing Consumers](CompetingConsumers.html)\n\n[Message Dispatcher](MessageDispatcher.html)\n\n[Selective Consumer](MessageSelector.html)\n\n[Durable Subscriber](DurableSubscription.html)\n\n[Idempotent Receiver](IdempotentReceiver.html)\n\n[Service Activator](MessagingAdapter.html)\n\n[Messaging Channels](MessagingChannelsIntro.html)\n\n[Message Channel](MessageChannel.html)\n\n[Point-to-Point Channel](PointToPointChannel.html)\n\n[Publish-Subscr. Channel](PublishSubscribeChannel.html)\n\n[Datatype Channel](DatatypeChannel.html)\n\n[Invalid Message Channel](InvalidMessageChannel.html)\n\n[Dead Letter Channel](DeadLetterChannel.html)\n\n[Guaranteed Delivery](GuaranteedMessaging.html)\n\n[Channel Adapter](ChannelAdapter.html)\n\n[Messaging Bridge](MessagingBridge.html)\n\n[Message Bus](MessageBus.html)\n\n[Systems Mgmt.](SystemManagementIntro.html)\n\n[Control Bus](ControlBus.html)\n\n[Detour](Detour.html)\n\n[Wire Tap](WireTap.html)\n\n[Message History](MessageHistory.html)\n\n[Message Store](MessageStore.html)\n\n[Smart Proxy](SmartProxy.html)\n\n[Test Message](TestMessage.html)\n\n[Channel Purger](ChannelPurger.html)\n\n- » [Read the latest in My Blog](/ramblings)\n- » [Get more insights from My Articles](/articles.html)\n- » [See me live in my Upcoming Talks](/talks)\n\nYou can reuse the following elements under the [Creative Commons Attribution](http://creativecommons.org/licenses/by/4.0/) license: pattern icon, pattern name, problem and solution statements (in bold), and the sketch. Other portions are protected by copyright.\n\n[Enterprise Integration Patterns](https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20)\nThe de-facto language for designing asynchronous, distributed systems. Over 100,000 copies sold.\n\n[The Software Architect Elevator](https://www.architectelevator.com/book)\n\n Rethink the role of architects as a connecting element across organizational layers. Acquire the technical, communication, and organizational skills to succeed in this new role.\n\n[Cloud Strategy](https://www.cloudstrategybook.com)\n\n Make your cloud migration a success by translating high-level goals into conscious decisions with well-understood trade-offs.\n\n[Platform Strategy](https://www.platformstrategybook.info)\n\n Platforms can boost innovation through harmonization, but they aren't easy to build. Learn from over a decade of designing and rolling out IT platforms.", "znaku_textu": 6057, "slov": 505, "odkazu": 108, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 15:34:43", "sha256": "e9c278723f6c5bdcab0fdd9c410e8a17bc4eda0b2f63aefb8fe4afb22d76a86d", "hloubka": 4, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://creativecommons.org/licenses/by/4.0/", "https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "https://www.architectelevator.com/book", "https://www.cloudstrategybook.com/", "https://www.platformstrategybook.info/"]} {"url": "http://www.enterpriseintegrationpatterns.com/IntegrationStylesIntro.html", "titulek": "Introduction to Integration Styles - Enterprise Integration Patterns", "h1": "", "popis": "Enterprise integration is the task of making separate applications work together to produce a unified set of functionality. Some applications may be custom developed in-house while others are bought from third-party vendors. The applications probably run on multiple computers, which may represent multiple platforms, and may be geographically dispersed. Some of the applications may be run outside of the enterprise by business partners or customers. Some applications may need to be integrated even though they were not designed for integration and cannot be changed. These issues and others like them are what make application integration difficult. This chapter will explore the options available for application integration.", "klicova_slova": "Introduction to Integration Styles,integration, messaging, events, patterns, event-driven, coupling, eai, middleware, application integration, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns", "og:title": "Introduction to Integration Styles - Enterprise Integration Patterns", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/IntegrationStylesIntro.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/eip1_patterns_wide.png"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Application Integration Criteria"}, {"uroven": 2, "text": "Application Integration Options"}, {"uroven": 2, "text": "Integration Pattern Language"}], "markdown": "| | Introduction to Integration Styles[Messaging Patterns](index.html) » [Integration Styles](IntegrationStylesIntro.html) | [Contents](toc.html)[⇐ Prev](Chapter1.html)[Next ⇒](FileTransferIntegration.html) |\n| --- | --- | --- |\n\nEnterprise integration is the task of making separate applications work together to produce a unified set of functionality. Some applications may be custom developed in-house while others are bought from third-party vendors. The applications probably run on multiple computers, which may represent multiple platforms, and may be geographically dispersed. Some of the applications may be run outside of the enterprise by business partners or customers. Some applications may need to be integrated even though they were not designed for integration and cannot be changed. These issues and others like them are what make application integration difficult. This chapter will explore the options available for application integration.\n\n## Application Integration Criteria\n\nWhat makes for good application integration? If integration needs were always the same, there would only be one integration style. Yet like any complex technological effort, application integration involves a range of considerations and consequences that should be taken into account for any integration opportunity.\n\nThe first criterion is **application integration** itself. If you can develop a single, stand-alone application that doesn’t need to collaborate with any other applications, you can avoid the whole integration issue entirely. Realistically, though, even a simple enterprise has multiple applications, applications that need to work together to provide a unified experience for the enterprise’s employees, partners, and customers.\n\nThe other main decision criteria are:\n\n**Application coupling** — Even integrated applications should minimize their dependencies on each other so that each can evolve without causing problems for the others. Tightly coupled applications make numerous assumptions about how the other applications work; when the applications change and break those assumptions, the integration breaks. The interface for integrating applications should be specific enough to implement useful functionality, but general enough to allow that implementation to change as needed.\n\n**Integration simplicity** — When integrating an application into an enterprise, developers should strive to minimize changing the application and minimize the amount of integration code needed. Yet changes and new code will usually be necessary to provide good integration functionality, and the approaches with the least impact on the application may not provide the best integration into the enterprise.\n\n**Integration technology** — Different integration techniques require varying amounts of specialized software and hardware. These special tools can be expensive, can lead to vendor lock-in, and increase the burden on developers to understand how to use the tools to integrate applications.\n\n**Data format** — Integrated applications must agree on the format of the data they exchange, or must have an intermediate traslator to unify applications that insist on different data formats. A related issue is **data format evolution and extensibility**—how the format can change over time and how that will affect the applications.\n\n**Data timeliness** — Integration should minimize the length of time between when one application decides to share some data and other applications have that data. Data should be exchanged frequently in small chunks, rather than waiting to exchange a large set of unrelated items. Applications should be informed as soon as shared data is ready for consumption. Latency in data sharing has to be factored into the integration design; the longer sharing can take, the more opportunity for shared data to become stale, and the more complex integration becomes.\n\n**Data or functionality** — Integrated applications may not want to simply share data, they may wish to share functionality such that each application can invoke the functionality in the others. Invoking functionality remotely can be difficult to achieve, and even though it may seem the same as invoking local functionality, it works quite differently, with significant consequences for how well the integration works.\n\n**Asynchronicity** — Computer processing is typically synchronous, such that a procedure waits while its subprocedure executes. It’s a given that the subprocedure is available when the procedure wants to invoke it. However, a procedure may not want to wait for the subprocedure to execute; it may want to invoke the subprocedure asynchronously, starting the subprocedure but then letting it execute in the background. This is especially true of integrated applications, where the remote application may not be running or the network may be unavailable—the source application may wish to simply make shared data available or log a request for a subprocedure call, but then go on to other work confident that the remote application will act sometime later.\n\nAs you can see, there are several different criteria that must be considered when choosing and designing an integration approach. The question then becomes: Which integration approaches best address which of these criteria?\n\n## Application Integration Options\n\nThere’s more than one approach for integrating applications. Each approach addresses some of the integration criteria better than others. The various approaches can be summed up in four main integration styles:\n\n**[*File Transfer*](FileTransferIntegration.html)** — Have each application produce files of shared data for others to consume, and consume files that others have produced.\n\n**[*Shared Database*](SharedDataBaseIntegration.html)** — Have the applications store the data they wish to share in a common database.\n\n**[*Remote Procedure Invocation*](EncapsulatedSynchronousIntegration.html)** — Have each application expose some of its procedures so that they can be invoked remotely, and have applications invoke those to run behavior and exchange data.\n\n**[*Messaging*](Messaging.html)** — Have each application connect to a common messaging system, and exchange data and invoke behavior using messages.\n\nEach of the patterns has the same problem statement—the need to integrate applications—and very similar contexts. What differentiates them is different forces searching for a more elegant solution. Each pattern builds on the last, looking for a more sophisticated approach to address the shortcomings of its predecessors. Thus the pattern order reflects an increasing order of sophistication.\n\nThe trick is not to choose the one style to use always, but to choose the best style for a particular integration opportunity. Each style has its advantages and disadvantages. Two applications may integrate using multiple styles such that each point of integration takes advantage of the style that suits it best. Likewise, an application may use different styles to integrate with different applications, so as to choose the style that works best for the other application. Some integration approaches can best be viewed as a hybrid of multiple styles. An integration product or EAI middleware may employ a combination of styles, all of which are effectively hidden in the product’s implementation.\n\nThe remainder of this book will expand on the [*Messaging*](Messaging.html) pattern. We focus on messaging in part because we believe it is often the best style for solving many integration opportunities. It is also the least well understood of the integration styles and a technology ripe with patterns that quickly explain how to make good use of it. Finally, messaging is the basis for many EAI products, so explaining how to use messaging well also goes a long way in teaching you how to use those products.\n\nFamiliarize yourself with these patterns to better understand the issues involved with application integration, and to better understand how messaging fits into the mix.\n\n## Integration Pattern Language\n\n[Message Construct.](MessageConstructionIntro.html)\n\n[Message](Message.html)\n\n[Command Message](CommandMessage.html)\n\n[Document Message](DocumentMessage.html)\n\n[Event Message](EventMessage.html)\n\n[Request-Reply](RequestReply.html)\n\n[Return Address](ReturnAddress.html)\n\n[Correlation Identifier](CorrelationIdentifier.html)\n\n[Message Sequence](MessageSequence.html)\n\n[Message Expiration](MessageExpiration.html)\n\n[Format Indicator](FormatIndicator.html)\n\n[Message Routing](MessageRoutingIntro.html)\n\n[Pipes-and-Filters](PipesAndFilters.html)\n\n[Message Router](MessageRouter.html)\n\n[Content-based Router](ContentBasedRouter.html)\n\n[Message Filter](Filter.html)\n\n[Dynamic Router](DynamicRouter.html)\n\n[Recipient List](RecipientList.html)\n\n[Splitter](Sequencer.html)\n\n[Aggregator](Aggregator.html)\n\n[Resequencer](Resequencer.html)\n\n[Composed Msg. Processor](DistributionAggregate.html)\n\n[Scatter-Gather](BroadcastAggregate.html)\n\n[Routing Slip](RoutingTable.html)\n\n[Process Manager](ProcessManager.html)\n\n[Message Broker](MessageBroker.html)\n\n[Message\nTransformation](MessageTransformationIntro.html)\n\n[Message Translator](MessageTranslator.html)\n\n[Envelope Wrapper](EnvelopeWrapper.html)\n\n[Content Enricher](DataEnricher.html)\n\n[Content Filter](ContentFilter.html)\n\n[Claim Check](StoreInLibrary.html)\n\n[Normalizer](Normalizer.html)\n\n[Canonical Data Model](CanonicalDataModel.html)\n\n[Messaging Endpoints](MessagingEndpointsIntro.html)\n\n[Message Endpoint](MessageEndpoint.html)\n\n[Messaging Gateway](MessagingGateway.html)\n\n[Messaging Mapper](MessagingMapper.html)\n\n[Transactional Client](TransactionalClient.html)\n\n[Polling Consumer](PollingConsumer.html)\n\n[Event-driven Consumer](EventDrivenConsumer.html)\n\n[Competing Consumers](CompetingConsumers.html)\n\n[Message Dispatcher](MessageDispatcher.html)\n\n[Selective Consumer](MessageSelector.html)\n\n[Durable Subscriber](DurableSubscription.html)\n\n[Idempotent Receiver](IdempotentReceiver.html)\n\n[Service Activator](MessagingAdapter.html)\n\n[Messaging Channels](MessagingChannelsIntro.html)\n\n[Message Channel](MessageChannel.html)\n\n[Point-to-Point Channel](PointToPointChannel.html)\n\n[Publish-Subscr. Channel](PublishSubscribeChannel.html)\n\n[Datatype Channel](DatatypeChannel.html)\n\n[Invalid Message Channel](InvalidMessageChannel.html)\n\n[Dead Letter Channel](DeadLetterChannel.html)\n\n[Guaranteed Delivery](GuaranteedMessaging.html)\n\n[Channel Adapter](ChannelAdapter.html)\n\n[Messaging Bridge](MessagingBridge.html)\n\n[Message Bus](MessageBus.html)\n\n[Systems Mgmt.](SystemManagementIntro.html)\n\n[Control Bus](ControlBus.html)\n\n[Detour](Detour.html)\n\n[Wire Tap](WireTap.html)\n\n[Message History](MessageHistory.html)\n\n[Message Store](MessageStore.html)\n\n[Smart Proxy](SmartProxy.html)\n\n[Test Message](TestMessage.html)\n\n[Channel Purger](ChannelPurger.html)", "znaku_textu": 10696, "slov": 1314, "odkazu": 107, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 15:35:06", "sha256": "b6e6d00558498ea07804faf248ba5526cd916c79dc0503c106f8e1d77f431f9a", "hloubka": 4, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "https://www.architectelevator.com/book", "https://www.cloudstrategybook.com/", "https://www.platformstrategybook.info/"]} {"url": "http://www.enterpriseintegrationpatterns.com/InvalidMessageChannel.html", "titulek": "Invalid Message Channel - Enterprise Integration Patterns", "h1": "", "popis": "How can a messaging receiver gracefully handle receiving a message that makes no sense?", "klicova_slova": "Invalid Message Channel,integration, messaging, events, patterns, event-driven, coupling, eai, middleware, application integration, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns", "og:title": "Invalid Message Channel - Enterprise Integration Patterns", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/InvalidMessageChannel.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/InvalidMessageSolution.gif"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Integration Pattern Language"}], "markdown": "Messaging Patterns\n\n[Messaging Patterns](index.html)\n\n- [Integration Styles](IntegrationStylesIntro.html)\n- [Messaging Systems](MessagingComponentsIntro.html)\n- [Messaging Channels](MessagingChannelsIntro.html)\n- [Message Construction](MessageConstructionIntro.html)\n- [Interlude: Simple Messaging](SimpleMessagingIntro.html)\n- [Message Routing](MessageRoutingIntro.html)\n- [Message Transformation](MessageTransformationIntro.html)\n- [Interlude: Composed Messaging](ComposedMessagingExample.html)\n- [Messaging Endpoints](MessagingEndpointsIntro.html)\n- [System Management](SystemManagementIntro.html)\n- Interlude: Systems Management Example\n- Integration Patterns in Practice\n- Concluding Remarks\n- Appendices\n\n| | Invalid Message Channel[Messaging Patterns](index.html) » [Messaging Channels](MessagingChannelsIntro.html) | [Contents](toc.html)[⇐ Prev](DatatypeChannel.html)[Next ⇒](DeadLetterChannel.html) |\n| --- | --- | --- |\n\nAn application is using [*Messaging*](Messaging.html) to receive [*Message*](Message.html)s.\n\nHow can a messaging receiver gracefully handle receiving a message that makes no sense?\n\nThe receiver should move the improper message to an *Invalid Message Channel*, a special channel for messages that could not be processed by their receivers.\n\nWhen designing a messaging system for applications to use, the administrator will need to define one or more *Invalid Message Channel*s for the applications to use.\n\nThe *Invalid Message Channel* will not be used for normal, successful communication, so its being cluttered with improper messages will not cause a problem. An error handler that wants to diagnose improper messages can use a receiver on the invalid channel to detect messages as they become available.\n\n...\nRead the entire pattern in the book [Enterprise Integration Patterns](/books1.html)\n\n**Related patterns:**\n\n[*Command Message*](CommandMessage.html), [*Correlation Identifier*](CorrelationIdentifier.html), [*Datatype Channel*](DatatypeChannel.html), [*Dead Letter Channel*](DeadLetterChannel.html), [*Message*](Message.html), [*Message Channel*](MessageChannel.html), [*Message Sequence*](MessageSequence.html), [*Messaging*](Messaging.html), [*Service Activator*](MessagingAdapter.html), [*Messaging Gateway*](MessagingGateway.html), [*JMS Request/Reply Example*](RequestReplyJmsExample.html), [*.NET Request/Reply Example*](RequestReplyNetExample.html), [*Return Address*](ReturnAddress.html)\n\n---\n\n## Integration Pattern Language\n\n[Message Construct.](MessageConstructionIntro.html)\n\n[Message](Message.html)\n\n[Command Message](CommandMessage.html)\n\n[Document Message](DocumentMessage.html)\n\n[Event Message](EventMessage.html)\n\n[Request-Reply](RequestReply.html)\n\n[Return Address](ReturnAddress.html)\n\n[Correlation Identifier](CorrelationIdentifier.html)\n\n[Message Sequence](MessageSequence.html)\n\n[Message Expiration](MessageExpiration.html)\n\n[Format Indicator](FormatIndicator.html)\n\n[Message Routing](MessageRoutingIntro.html)\n\n[Pipes-and-Filters](PipesAndFilters.html)\n\n[Message Router](MessageRouter.html)\n\n[Content-based Router](ContentBasedRouter.html)\n\n[Message Filter](Filter.html)\n\n[Dynamic Router](DynamicRouter.html)\n\n[Recipient List](RecipientList.html)\n\n[Splitter](Sequencer.html)\n\n[Aggregator](Aggregator.html)\n\n[Resequencer](Resequencer.html)\n\n[Composed Msg. Processor](DistributionAggregate.html)\n\n[Scatter-Gather](BroadcastAggregate.html)\n\n[Routing Slip](RoutingTable.html)\n\n[Process Manager](ProcessManager.html)\n\n[Message Broker](MessageBroker.html)\n\n[Message\nTransformation](MessageTransformationIntro.html)\n\n[Message Translator](MessageTranslator.html)\n\n[Envelope Wrapper](EnvelopeWrapper.html)\n\n[Content Enricher](DataEnricher.html)\n\n[Content Filter](ContentFilter.html)\n\n[Claim Check](StoreInLibrary.html)\n\n[Normalizer](Normalizer.html)\n\n[Canonical Data Model](CanonicalDataModel.html)\n\n[Messaging Endpoints](MessagingEndpointsIntro.html)\n\n[Message Endpoint](MessageEndpoint.html)\n\n[Messaging Gateway](MessagingGateway.html)\n\n[Messaging Mapper](MessagingMapper.html)\n\n[Transactional Client](TransactionalClient.html)\n\n[Polling Consumer](PollingConsumer.html)\n\n[Event-driven Consumer](EventDrivenConsumer.html)\n\n[Competing Consumers](CompetingConsumers.html)\n\n[Message Dispatcher](MessageDispatcher.html)\n\n[Selective Consumer](MessageSelector.html)\n\n[Durable Subscriber](DurableSubscription.html)\n\n[Idempotent Receiver](IdempotentReceiver.html)\n\n[Service Activator](MessagingAdapter.html)\n\n[Messaging Channels](MessagingChannelsIntro.html)\n\n[Message Channel](MessageChannel.html)\n\n[Point-to-Point Channel](PointToPointChannel.html)\n\n[Publish-Subscr. Channel](PublishSubscribeChannel.html)\n\n[Datatype Channel](DatatypeChannel.html)\n\n[Invalid Message Channel](InvalidMessageChannel.html)\n\n[Dead Letter Channel](DeadLetterChannel.html)\n\n[Guaranteed Delivery](GuaranteedMessaging.html)\n\n[Channel Adapter](ChannelAdapter.html)\n\n[Messaging Bridge](MessagingBridge.html)\n\n[Message Bus](MessageBus.html)\n\n[Systems Mgmt.](SystemManagementIntro.html)\n\n[Control Bus](ControlBus.html)\n\n[Detour](Detour.html)\n\n[Wire Tap](WireTap.html)\n\n[Message History](MessageHistory.html)\n\n[Message Store](MessageStore.html)\n\n[Smart Proxy](SmartProxy.html)\n\n[Test Message](TestMessage.html)\n\n[Channel Purger](ChannelPurger.html)\n\n- » [Read the latest in My Blog](/ramblings)\n- » [Get more insights from My Articles](/articles.html)\n- » [See me live in my Upcoming Talks](/talks)\n\nYou can reuse the following elements under the [Creative Commons Attribution](http://creativecommons.org/licenses/by/4.0/) license: pattern icon, pattern name, problem and solution statements (in bold), and the sketch. Other portions are protected by copyright.\n\n[Enterprise Integration Patterns](https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20)\nThe de-facto language for designing asynchronous, distributed systems. Over 100,000 copies sold.\n\n[The Software Architect Elevator](https://www.architectelevator.com/book)\n\n Rethink the role of architects as a connecting element across organizational layers. Acquire the technical, communication, and organizational skills to succeed in this new role.\n\n[Cloud Strategy](https://www.cloudstrategybook.com)\n\n Make your cloud migration a success by translating high-level goals into conscious decisions with well-understood trade-offs.\n\n[Platform Strategy](https://www.platformstrategybook.info)\n\n Platforms can boost innovation through harmonization, but they aren't easy to build. Learn from over a decade of designing and rolling out IT platforms.", "znaku_textu": 6393, "slov": 527, "odkazu": 108, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 15:34:50", "sha256": "3865c2583cffca54da97244d8fab6bd3779da1686077418810ae21283c1e24e3", "hloubka": 4, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://creativecommons.org/licenses/by/4.0/", "https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "https://www.architectelevator.com/book", "https://www.cloudstrategybook.com/", "https://www.platformstrategybook.info/"]} {"url": "http://www.enterpriseintegrationpatterns.com/Message.html", "titulek": "Message - Enterprise Integration Patterns", "h1": "", "popis": "How can two applications connected by a message channel exchange a piece of information?", "klicova_slova": "Message,integration, messaging, events, patterns, event-driven, coupling, eai, middleware, application integration, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns", "og:title": "Message - Enterprise Integration Patterns", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/Message.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/MessageSolution.gif"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Integration Pattern Language"}], "markdown": "Messaging Patterns\n\n[Messaging Patterns](index.html)\n\n- [Integration Styles](IntegrationStylesIntro.html)\n- [Messaging Systems](MessagingComponentsIntro.html)\n- [Messaging Channels](MessagingChannelsIntro.html)\n- [Message Construction](MessageConstructionIntro.html)\n- [Interlude: Simple Messaging](SimpleMessagingIntro.html)\n- [Message Routing](MessageRoutingIntro.html)\n- [Message Transformation](MessageTransformationIntro.html)\n- [Interlude: Composed Messaging](ComposedMessagingExample.html)\n- [Messaging Endpoints](MessagingEndpointsIntro.html)\n- [System Management](SystemManagementIntro.html)\n- Interlude: Systems Management Example\n- Integration Patterns in Practice\n- Concluding Remarks\n- Appendices\n\n| | Message[Messaging Patterns](index.html) » [Messaging Systems](MessagingComponentsIntro.html) | [Contents](toc.html)[⇐ Prev](MessageChannel.html)[Next ⇒](PipesAndFilters.html) |\n| --- | --- | --- |\n\nAn enterprise has two separate applications that are communicating via [*Messaging*](Messaging.html), using a [*Message Channel*](MessageChannel.html) that connects them.\n\nHow can two applications connected by a message channel exchange a piece of information?\n\nPackage the information into a *Message*, a data record that the messaging system can transmit through a message channel.\n\nThus any data that is to be transmitted via a messaging system must be converted into one or more messages that can be sent through messaging channels.\n\nA message consists of two basic parts:\n\n1. **Header** – Information used by the messaging system that describes the data being transmitted, its origin, its destination, and so on.\n2. **Body** – The data being transmitted; generally ignored by the messaging system and simply transmitted as-is.\n\n...\nRead the entire pattern in the book [Enterprise Integration Patterns](/books1.html)\n\n**Related patterns:**\n\n[*Canonical Data Model*](CanonicalDataModel.html), [*Command Message*](CommandMessage.html), [*Document Message*](DocumentMessage.html), [*Event Message*](EventMessage.html), [*Message Channel*](MessageChannel.html), [*Message Expiration*](MessageExpiration.html), [*Message Sequence*](MessageSequence.html), [*Messaging*](Messaging.html), [*Request-Reply*](RequestReply.html)\n\n---\n\n## Integration Pattern Language\n\n[Message Construct.](MessageConstructionIntro.html)\n\n[Message](Message.html)\n\n[Command Message](CommandMessage.html)\n\n[Document Message](DocumentMessage.html)\n\n[Event Message](EventMessage.html)\n\n[Request-Reply](RequestReply.html)\n\n[Return Address](ReturnAddress.html)\n\n[Correlation Identifier](CorrelationIdentifier.html)\n\n[Message Sequence](MessageSequence.html)\n\n[Message Expiration](MessageExpiration.html)\n\n[Format Indicator](FormatIndicator.html)\n\n[Message Routing](MessageRoutingIntro.html)\n\n[Pipes-and-Filters](PipesAndFilters.html)\n\n[Message Router](MessageRouter.html)\n\n[Content-based Router](ContentBasedRouter.html)\n\n[Message Filter](Filter.html)\n\n[Dynamic Router](DynamicRouter.html)\n\n[Recipient List](RecipientList.html)\n\n[Splitter](Sequencer.html)\n\n[Aggregator](Aggregator.html)\n\n[Resequencer](Resequencer.html)\n\n[Composed Msg. Processor](DistributionAggregate.html)\n\n[Scatter-Gather](BroadcastAggregate.html)\n\n[Routing Slip](RoutingTable.html)\n\n[Process Manager](ProcessManager.html)\n\n[Message Broker](MessageBroker.html)\n\n[Message\nTransformation](MessageTransformationIntro.html)\n\n[Message Translator](MessageTranslator.html)\n\n[Envelope Wrapper](EnvelopeWrapper.html)\n\n[Content Enricher](DataEnricher.html)\n\n[Content Filter](ContentFilter.html)\n\n[Claim Check](StoreInLibrary.html)\n\n[Normalizer](Normalizer.html)\n\n[Canonical Data Model](CanonicalDataModel.html)\n\n[Messaging Endpoints](MessagingEndpointsIntro.html)\n\n[Message Endpoint](MessageEndpoint.html)\n\n[Messaging Gateway](MessagingGateway.html)\n\n[Messaging Mapper](MessagingMapper.html)\n\n[Transactional Client](TransactionalClient.html)\n\n[Polling Consumer](PollingConsumer.html)\n\n[Event-driven Consumer](EventDrivenConsumer.html)\n\n[Competing Consumers](CompetingConsumers.html)\n\n[Message Dispatcher](MessageDispatcher.html)\n\n[Selective Consumer](MessageSelector.html)\n\n[Durable Subscriber](DurableSubscription.html)\n\n[Idempotent Receiver](IdempotentReceiver.html)\n\n[Service Activator](MessagingAdapter.html)\n\n[Messaging Channels](MessagingChannelsIntro.html)\n\n[Message Channel](MessageChannel.html)\n\n[Point-to-Point Channel](PointToPointChannel.html)\n\n[Publish-Subscr. Channel](PublishSubscribeChannel.html)\n\n[Datatype Channel](DatatypeChannel.html)\n\n[Invalid Message Channel](InvalidMessageChannel.html)\n\n[Dead Letter Channel](DeadLetterChannel.html)\n\n[Guaranteed Delivery](GuaranteedMessaging.html)\n\n[Channel Adapter](ChannelAdapter.html)\n\n[Messaging Bridge](MessagingBridge.html)\n\n[Message Bus](MessageBus.html)\n\n[Systems Mgmt.](SystemManagementIntro.html)\n\n[Control Bus](ControlBus.html)\n\n[Detour](Detour.html)\n\n[Wire Tap](WireTap.html)\n\n[Message History](MessageHistory.html)\n\n[Message Store](MessageStore.html)\n\n[Smart Proxy](SmartProxy.html)\n\n[Test Message](TestMessage.html)\n\n[Channel Purger](ChannelPurger.html)\n\n- » [Read the latest in My Blog](/ramblings)\n- » [Get more insights from My Articles](/articles.html)\n- » [See me live in my Upcoming Talks](/talks)\n\nYou can reuse the following elements under the [Creative Commons Attribution](http://creativecommons.org/licenses/by/4.0/) license: pattern icon, pattern name, problem and solution statements (in bold), and the sketch. Other portions are protected by copyright.\n\n[Enterprise Integration Patterns](https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20)\nThe de-facto language for designing asynchronous, distributed systems. Over 100,000 copies sold.\n\n[The Software Architect Elevator](https://www.architectelevator.com/book)\n\n Rethink the role of architects as a connecting element across organizational layers. Acquire the technical, communication, and organizational skills to succeed in this new role.\n\n[Cloud Strategy](https://www.cloudstrategybook.com)\n\n Make your cloud migration a success by translating high-level goals into conscious decisions with well-understood trade-offs.\n\n[Platform Strategy](https://www.platformstrategybook.info)\n\n Platforms can boost innovation through harmonization, but they aren't easy to build. Learn from over a decade of designing and rolling out IT platforms.", "znaku_textu": 6181, "slov": 511, "odkazu": 108, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 15:34:00", "sha256": "76e03593d1fab869622593e4b0c27139b18ade8ccfd509ccc32be72e0a45185c", "hloubka": 4, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://creativecommons.org/licenses/by/4.0/", "https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "https://www.architectelevator.com/book", "https://www.cloudstrategybook.com/", "https://www.platformstrategybook.info/"]} {"url": "http://www.enterpriseintegrationpatterns.com/MessageBroker.html", "titulek": "Message Broker - Enterprise Integration Patterns", "h1": "", "popis": "How can you decouple the destination of a message from the sender and maintain central control over the flow of messages?", "klicova_slova": "Message Broker,integration, messaging, events, patterns, event-driven, coupling, eai, middleware, application integration, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns", "og:title": "Message Broker - Enterprise Integration Patterns", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/MessageBroker.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/MessageBroker.png"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Integration Pattern Language"}], "markdown": "| | Message Broker[Messaging Patterns](index.html) » [Message Routing](MessageRoutingIntro.html) | [Contents](toc.html)[⇐ Prev](ProcessManager.html)[Next ⇒](MessageTransformationIntro.html) |\n| --- | --- | --- |\n\nMany patterns in this chapter present ways to route messages to the proper destination without the originating application being aware of the ultimate destination of the message. Most of the patterns focused on specific types of routing logic. However, in aggregate, these patterns solve a bigger problem.\n\nHow can you decouple the destination of a message from the sender and maintain central control over the flow of messages?\n\nUse a central *Message Broker* that can receive messages from multiple destinations, determine the correct destination and route the message to the correct channel. Implement the internals of the *Message Broker* using the design patterns presented in this chapter.\n\nUsing a central *Message Broker* is sometimes referred to as *hub-and-spoke* architectural style, which appears to be a descriptive name when looking at the diagram above.\n\nThe *Message Broker* pattern has a slightly different scope than most of the other patterns presented in this chapter. It is an architecture pattern as opposed to individual design patterns we presented in this chapter. As such, it is comparable to the [*Pipes and Filters*](PipesAndFilters.html) architectural style, which gives us a fundamental way of chaining components together to form more complex message flows. Rather than just chaining individual components, the *Message Broker* concerns itself with larger solutions and helps us deal with the inevitable complexity of managing such a system.\n\nThe *Message Broker* is not a monolithic component. Internally, it uses many of the message routing patterns presented in this chapter. So once you decide to use the *Message Broker* as an architectural pattern, you can choose the correct [*Message Router*](MessageRouter.html) design patterns to implement the *Message Broker*.\n\nThe advantage of central maintenance of a *Message Broker* can also turn into a disadvantage. Routing all messages through a single *Message Broker* can turn the *Message Broker* into a serious bottleneck. A number of techniques can help us alleviate this problem. For example, the *Message Broker* pattern only tells us to *develop* a single entity that performs routing. It does not prescribe how many instances of this entity we deploy in the system at deployment time. If the *Message Broker* design is stateless (i.e. if it is composed only of stateless components), we can easily deploy multiple instances of the broker to improve throughput. The properties of a [*Point-to-Point Channel*](PointToPointChannel.html) ensure that only one instance of the *Message Broker* consumes any incoming message. Also, as in most real-life situations, the ultimate solution ends up being a combination of a patterns. Likewise, in many complex integration solutions it may make sense to design multiple *Message Broker* components, each specializing on a specific portion of the solution. This avoids creating the über-*Message Broker* that is so complex as to become unmaintainable. The apparent flip-side is that we no longer have a single point of maintenance and could create a new form of \"*Message Broker* spaghetti\". One excellent architectural style to use a combination of *Message Broker*s is a *Message Broker* *hierarchy* (see picture). This configuration resembles a network configuration composed out of individual subnets. If a message has to travel only between two applications inside a \"subnet\" the local *Message Broker* can manage the routing of the message. If the message is destined for another subnet, the local *Message Broker* can pass the message to the central *Message Broker* who then determines the ultimate destination. The central *Message Broker* performs the same functions as a local *Message Broker*, but instead of decoupling individual applications it decouples whole subsystems consisting of multiple applications.\n\n...\nRead the entire pattern in the book [Enterprise Integration Patterns](/books1.html)\n\n**Related patterns:**\n\n[*Canonical Data Model*](CanonicalDataModel.html), [*Event-Driven Consumer*](EventDrivenConsumer.html), [*Message Channel*](MessageChannel.html), [*Message Endpoint*](MessageEndpoint.html), [*Message Router*](MessageRouter.html), [*Pipes and Filters*](PipesAndFilters.html), [*Point-to-Point Channel*](PointToPointChannel.html), [*Publish-Subscribe Channel*](PublishSubscribeChannel.html), [*Recipient List*](RecipientList.html)\n\n**Further reading:**\n\n- [Hub and Spoke [or] The Art of Message Broker Maintenance](/ramblings/03_hubandspoke.html)\n\n---\n\n## Integration Pattern Language\n\n[Message Construct.](MessageConstructionIntro.html)\n\n[Message](Message.html)\n\n[Command Message](CommandMessage.html)\n\n[Document Message](DocumentMessage.html)\n\n[Event Message](EventMessage.html)\n\n[Request-Reply](RequestReply.html)\n\n[Return Address](ReturnAddress.html)\n\n[Correlation Identifier](CorrelationIdentifier.html)\n\n[Message Sequence](MessageSequence.html)\n\n[Message Expiration](MessageExpiration.html)\n\n[Format Indicator](FormatIndicator.html)\n\n[Message Routing](MessageRoutingIntro.html)\n\n[Pipes-and-Filters](PipesAndFilters.html)\n\n[Message Router](MessageRouter.html)\n\n[Content-based Router](ContentBasedRouter.html)\n\n[Message Filter](Filter.html)\n\n[Dynamic Router](DynamicRouter.html)\n\n[Recipient List](RecipientList.html)\n\n[Splitter](Sequencer.html)\n\n[Aggregator](Aggregator.html)\n\n[Resequencer](Resequencer.html)\n\n[Composed Msg. Processor](DistributionAggregate.html)\n\n[Scatter-Gather](BroadcastAggregate.html)\n\n[Routing Slip](RoutingTable.html)\n\n[Process Manager](ProcessManager.html)\n\n[Message Broker](MessageBroker.html)\n\n[Message\nTransformation](MessageTransformationIntro.html)\n\n[Message Translator](MessageTranslator.html)\n\n[Envelope Wrapper](EnvelopeWrapper.html)\n\n[Content Enricher](DataEnricher.html)\n\n[Content Filter](ContentFilter.html)\n\n[Claim Check](StoreInLibrary.html)\n\n[Normalizer](Normalizer.html)\n\n[Canonical Data Model](CanonicalDataModel.html)\n\n[Messaging Endpoints](MessagingEndpointsIntro.html)\n\n[Message Endpoint](MessageEndpoint.html)\n\n[Messaging Gateway](MessagingGateway.html)\n\n[Messaging Mapper](MessagingMapper.html)\n\n[Transactional Client](TransactionalClient.html)\n\n[Polling Consumer](PollingConsumer.html)\n\n[Event-driven Consumer](EventDrivenConsumer.html)\n\n[Competing Consumers](CompetingConsumers.html)\n\n[Message Dispatcher](MessageDispatcher.html)\n\n[Selective Consumer](MessageSelector.html)\n\n[Durable Subscriber](DurableSubscription.html)\n\n[Idempotent Receiver](IdempotentReceiver.html)\n\n[Service Activator](MessagingAdapter.html)\n\n[Messaging Channels](MessagingChannelsIntro.html)\n\n[Message Channel](MessageChannel.html)\n\n[Point-to-Point Channel](PointToPointChannel.html)\n\n[Publish-Subscr. Channel](PublishSubscribeChannel.html)\n\n[Datatype Channel](DatatypeChannel.html)\n\n[Invalid Message Channel](InvalidMessageChannel.html)\n\n[Dead Letter Channel](DeadLetterChannel.html)\n\n[Guaranteed Delivery](GuaranteedMessaging.html)\n\n[Channel Adapter](ChannelAdapter.html)\n\n[Messaging Bridge](MessagingBridge.html)\n\n[Message Bus](MessageBus.html)\n\n[Systems Mgmt.](SystemManagementIntro.html)\n\n[Control Bus](ControlBus.html)\n\n[Detour](Detour.html)\n\n[Wire Tap](WireTap.html)\n\n[Message History](MessageHistory.html)\n\n[Message Store](MessageStore.html)\n\n[Smart Proxy](SmartProxy.html)\n\n[Test Message](TestMessage.html)\n\n[Channel Purger](ChannelPurger.html)", "znaku_textu": 7389, "slov": 816, "odkazu": 109, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 15:34:24", "sha256": "ddc6d825aa8a17ef30a18ff8178085022c9424432a6082947f9f7983826f79ca", "hloubka": 4, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://creativecommons.org/licenses/by/4.0/", "https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "https://www.architectelevator.com/book", "https://www.cloudstrategybook.com/", "https://www.platformstrategybook.info/"]} {"url": "http://www.enterpriseintegrationpatterns.com/MessageBus.html", "titulek": "Message Bus - Enterprise Integration Patterns", "h1": "", "popis": "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?", "klicova_slova": "Message Bus,integration, messaging, events, patterns, event-driven, coupling, eai, middleware, application integration, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns", "og:title": "Message Bus - Enterprise Integration Patterns", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/MessageBus.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/MessageBusSolution.gif"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Integration Pattern Language"}], "markdown": "| | Message Bus[Messaging Patterns](index.html) » [Messaging Channels](MessagingChannelsIntro.html) | [Contents](toc.html)[⇐ Prev](MessagingBridge.html)[Next ⇒](MessageConstructionIntro.html) |\n| --- | --- | --- |\n\nAn enterprise contains several existing systems that must be able to share data and operate in a unified manner in response to a set of common business requests.\n\nWhat 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?\n\nStructure the connecting middleware between these applications as a *Message Bus* that enables them to work together using messaging.\n\nA *Message Bus* is a combination of a common data model, a common command set, and a messaging infrastructure to allow different systems to communicate through a shared set of interfaces. This is analogous to a communications bus in a computer system, which serves as the focal point for communication between the CPU, main memory, and peripherals. Just as in the hardware analogy, there are a number of pieces that come together to form the message bus:\n\n- **Common communication infrastructure** — Just as the physical pins and wires of a PCI bus provide a common, well-known physical infrastructure for a PC, a common infrastructure must serve the same purpose in a message bus. Typically, a messaging system is chosen to serve as the physical communications infrastructure, providing a cross-platform, cross-language universal adapter between the applications. The infrastructure may include [*Message Router*](MessageRouter.html) capabilities to facilitate the correct routing of messages from system to system. Another common option is to use [*Publish-Subscribe Channel*](PublishSubscribeChannel.html) s to facilitate sending messages to all receivers.\n- **Adapters** — The different systems must find a way to interface with the message bus. Most commonly, this is done with commercial or custom [*Channel Adapter*](ChannelAdapter.html) s and [*Service Activator*](MessagingAdapter.html) s that can handle things like invoking CICS transactions with the proper parameters, or representing the general data structures flowing on the bus in the specific and particular way they should be represented inside each system. This also requires a [*Canonical Data Model*](CanonicalDataModel.html) that all systems can agree on.\n- **Common Command Structure** — Just like PC architectures have a common set of commands to represent the different operations possible on the physical bus (read bytes from an address, write bytes to an address), there needs to be common commands that are understood by all the participants in the *Message Bus* . [*Command Message*](CommandMessage.html) illustrates how this feature works. Another common implementation for this is the [*Datatype Channel*](DatatypeChannel.html) , where a [*Message Router*](MessageRouter.html) makes an explicit decision as to how to route particular messages (like Purchase Orders) to particular endpoints. It is at the end that the analogy breaks down, since the level of the messages carried on the bus are much more fine-grained than the “read/write” kinds of messages carried on a physical bus.\n\n...\nRead the entire pattern in the book [Enterprise Integration Patterns](/books1.html)\n\n**Related patterns:**\n\n[*Canonical Data Model*](CanonicalDataModel.html), [*Channel Adapter*](ChannelAdapter.html), [*Command Message*](CommandMessage.html), [*Datatype Channel*](DatatypeChannel.html), [*Message Router*](MessageRouter.html), [*Service Activator*](MessagingAdapter.html), [*Publish-Subscribe Channel*](PublishSubscribeChannel.html)\n\n---\n\n## Integration Pattern Language\n\n[Message Construct.](MessageConstructionIntro.html)\n\n[Message](Message.html)\n\n[Command Message](CommandMessage.html)\n\n[Document Message](DocumentMessage.html)\n\n[Event Message](EventMessage.html)\n\n[Request-Reply](RequestReply.html)\n\n[Return Address](ReturnAddress.html)\n\n[Correlation Identifier](CorrelationIdentifier.html)\n\n[Message Sequence](MessageSequence.html)\n\n[Message Expiration](MessageExpiration.html)\n\n[Format Indicator](FormatIndicator.html)\n\n[Message Routing](MessageRoutingIntro.html)\n\n[Pipes-and-Filters](PipesAndFilters.html)\n\n[Message Router](MessageRouter.html)\n\n[Content-based Router](ContentBasedRouter.html)\n\n[Message Filter](Filter.html)\n\n[Dynamic Router](DynamicRouter.html)\n\n[Recipient List](RecipientList.html)\n\n[Splitter](Sequencer.html)\n\n[Aggregator](Aggregator.html)\n\n[Resequencer](Resequencer.html)\n\n[Composed Msg. Processor](DistributionAggregate.html)\n\n[Scatter-Gather](BroadcastAggregate.html)\n\n[Routing Slip](RoutingTable.html)\n\n[Process Manager](ProcessManager.html)\n\n[Message Broker](MessageBroker.html)\n\n[Message\nTransformation](MessageTransformationIntro.html)\n\n[Message Translator](MessageTranslator.html)\n\n[Envelope Wrapper](EnvelopeWrapper.html)\n\n[Content Enricher](DataEnricher.html)\n\n[Content Filter](ContentFilter.html)\n\n[Claim Check](StoreInLibrary.html)\n\n[Normalizer](Normalizer.html)\n\n[Canonical Data Model](CanonicalDataModel.html)\n\n[Messaging Endpoints](MessagingEndpointsIntro.html)\n\n[Message Endpoint](MessageEndpoint.html)\n\n[Messaging Gateway](MessagingGateway.html)\n\n[Messaging Mapper](MessagingMapper.html)\n\n[Transactional Client](TransactionalClient.html)\n\n[Polling Consumer](PollingConsumer.html)\n\n[Event-driven Consumer](EventDrivenConsumer.html)\n\n[Competing Consumers](CompetingConsumers.html)\n\n[Message Dispatcher](MessageDispatcher.html)\n\n[Selective Consumer](MessageSelector.html)\n\n[Durable Subscriber](DurableSubscription.html)\n\n[Idempotent Receiver](IdempotentReceiver.html)\n\n[Service Activator](MessagingAdapter.html)\n\n[Messaging Channels](MessagingChannelsIntro.html)\n\n[Message Channel](MessageChannel.html)\n\n[Point-to-Point Channel](PointToPointChannel.html)\n\n[Publish-Subscr. Channel](PublishSubscribeChannel.html)\n\n[Datatype Channel](DatatypeChannel.html)\n\n[Invalid Message Channel](InvalidMessageChannel.html)\n\n[Dead Letter Channel](DeadLetterChannel.html)\n\n[Guaranteed Delivery](GuaranteedMessaging.html)\n\n[Channel Adapter](ChannelAdapter.html)\n\n[Messaging Bridge](MessagingBridge.html)\n\n[Message Bus](MessageBus.html)\n\n[Systems Mgmt.](SystemManagementIntro.html)\n\n[Control Bus](ControlBus.html)\n\n[Detour](Detour.html)\n\n[Wire Tap](WireTap.html)\n\n[Message History](MessageHistory.html)\n\n[Message Store](MessageStore.html)\n\n[Smart Proxy](SmartProxy.html)\n\n[Test Message](TestMessage.html)\n\n[Channel Purger](ChannelPurger.html)", "znaku_textu": 6406, "slov": 663, "odkazu": 108, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 15:34:56", "sha256": "95b205a5f55cf1116fc65a3973f8a6fb623bd7032f6e3434ec0782f634484dc9", "hloubka": 4, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://creativecommons.org/licenses/by/4.0/", "https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "https://www.architectelevator.com/book", "https://www.cloudstrategybook.com/", "https://www.platformstrategybook.info/"]} {"url": "http://www.enterpriseintegrationpatterns.com/MessageChannel.html", "titulek": "Message Channel - Enterprise Integration Patterns", "h1": "", "popis": "How does one application communicate with another using messaging?", "klicova_slova": "Message Channel,integration, messaging, events, patterns, event-driven, coupling, eai, middleware, application integration, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns", "og:title": "Message Channel - Enterprise Integration Patterns", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/MessageChannel.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/MessageChannelSolution.gif"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Integration Pattern Language"}], "markdown": "| | Message Channel[Messaging Patterns](index.html) » [Messaging Systems](MessagingComponentsIntro.html) | [Contents](toc.html)[⇐ Prev](MessagingComponentsIntro.html)[Next ⇒](Message.html) |\n| --- | --- | --- |\n\nAn enterprise has two separate applications that need to communicate, preferably by using [*Messaging*](Messaging.html).\n\nHow does one application communicate with another using messaging?\n\nConnect the applications using a *Message Channel*, where one application writes information to the channel and the other one reads that information from the channel.\n\nWhen an application has information to communicate, it doesn't just fling the information into the messaging system, it adds the information to a particular *Message Channel*. An application receiving information doesn't just pick it up at random from the messaging system; it retrieves the information from a particular *Message Channel*.\n\nThe application adding info doesn't necessarily know what particular application will end up retrieving the info, but it can be assured that whatever application retrieves the info, that application will be interested in the info. This is because the messaging system has different *Message Channel*s for different types of information the applications want to communicate. When an application sends information, it doesn't randomly add the info to any channel available; it adds the info to a channel whose specific purpose is to communicate that sort of information. Likewise, an application that wants to receive particular information doesn't pull info off some random channel; it selects what channel to get information from based on what type of information it wants.\n\n...\nRead the entire pattern in the book [Enterprise Integration Patterns](/books1.html)\n\n**Related patterns:**\n\n[*Channel Adapter*](ChannelAdapter.html), [*Datatype Channel*](DatatypeChannel.html), [*Invalid Message Channel*](InvalidMessageChannel.html), [*Message Bus*](MessageBus.html), [*Message Endpoint*](MessageEndpoint.html), [*Selective Consumer*](MessageSelector.html), [*Messaging*](Messaging.html), [*Introduction to Messaging Channels*](MessagingChannelsIntro.html), [*Point-to-Point Channel*](PointToPointChannel.html), [*Publish-Subscribe Channel*](PublishSubscribeChannel.html)\n\n---\n\n## Integration Pattern Language\n\n[Message Construct.](MessageConstructionIntro.html)\n\n[Message](Message.html)\n\n[Command Message](CommandMessage.html)\n\n[Document Message](DocumentMessage.html)\n\n[Event Message](EventMessage.html)\n\n[Request-Reply](RequestReply.html)\n\n[Return Address](ReturnAddress.html)\n\n[Correlation Identifier](CorrelationIdentifier.html)\n\n[Message Sequence](MessageSequence.html)\n\n[Message Expiration](MessageExpiration.html)\n\n[Format Indicator](FormatIndicator.html)\n\n[Message Routing](MessageRoutingIntro.html)\n\n[Pipes-and-Filters](PipesAndFilters.html)\n\n[Message Router](MessageRouter.html)\n\n[Content-based Router](ContentBasedRouter.html)\n\n[Message Filter](Filter.html)\n\n[Dynamic Router](DynamicRouter.html)\n\n[Recipient List](RecipientList.html)\n\n[Splitter](Sequencer.html)\n\n[Aggregator](Aggregator.html)\n\n[Resequencer](Resequencer.html)\n\n[Composed Msg. Processor](DistributionAggregate.html)\n\n[Scatter-Gather](BroadcastAggregate.html)\n\n[Routing Slip](RoutingTable.html)\n\n[Process Manager](ProcessManager.html)\n\n[Message Broker](MessageBroker.html)\n\n[Message\nTransformation](MessageTransformationIntro.html)\n\n[Message Translator](MessageTranslator.html)\n\n[Envelope Wrapper](EnvelopeWrapper.html)\n\n[Content Enricher](DataEnricher.html)\n\n[Content Filter](ContentFilter.html)\n\n[Claim Check](StoreInLibrary.html)\n\n[Normalizer](Normalizer.html)\n\n[Canonical Data Model](CanonicalDataModel.html)\n\n[Messaging Endpoints](MessagingEndpointsIntro.html)\n\n[Message Endpoint](MessageEndpoint.html)\n\n[Messaging Gateway](MessagingGateway.html)\n\n[Messaging Mapper](MessagingMapper.html)\n\n[Transactional Client](TransactionalClient.html)\n\n[Polling Consumer](PollingConsumer.html)\n\n[Event-driven Consumer](EventDrivenConsumer.html)\n\n[Competing Consumers](CompetingConsumers.html)\n\n[Message Dispatcher](MessageDispatcher.html)\n\n[Selective Consumer](MessageSelector.html)\n\n[Durable Subscriber](DurableSubscription.html)\n\n[Idempotent Receiver](IdempotentReceiver.html)\n\n[Service Activator](MessagingAdapter.html)\n\n[Messaging Channels](MessagingChannelsIntro.html)\n\n[Message Channel](MessageChannel.html)\n\n[Point-to-Point Channel](PointToPointChannel.html)\n\n[Publish-Subscr. Channel](PublishSubscribeChannel.html)\n\n[Datatype Channel](DatatypeChannel.html)\n\n[Invalid Message Channel](InvalidMessageChannel.html)\n\n[Dead Letter Channel](DeadLetterChannel.html)\n\n[Guaranteed Delivery](GuaranteedMessaging.html)\n\n[Channel Adapter](ChannelAdapter.html)\n\n[Messaging Bridge](MessagingBridge.html)\n\n[Message Bus](MessageBus.html)\n\n[Systems Mgmt.](SystemManagementIntro.html)\n\n[Control Bus](ControlBus.html)\n\n[Detour](Detour.html)\n\n[Wire Tap](WireTap.html)\n\n[Message History](MessageHistory.html)\n\n[Message Store](MessageStore.html)\n\n[Smart Proxy](SmartProxy.html)\n\n[Test Message](TestMessage.html)\n\n[Channel Purger](ChannelPurger.html)", "znaku_textu": 4998, "slov": 431, "odkazu": 108, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 15:34:47", "sha256": "f41fc68d6347d0dc4654778f14f973682dce4ade3dcc4fd4cb99e54bdbbb428f", "hloubka": 4, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://creativecommons.org/licenses/by/4.0/", "https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "https://www.architectelevator.com/book", "https://www.cloudstrategybook.com/", "https://www.platformstrategybook.info/"]} {"url": "http://www.enterpriseintegrationpatterns.com/MessageConstructionIntro.html", "titulek": "Introduction to Message Construction - Enterprise Integration Patterns", "h1": "", "popis": "In Introduction to Messaging Systems, we discussed Message. When two applications wish to exchange a piece of data, they do so by wrapping it in a message. Whereas a Message Channel cannot transmit raw data per se, it can transmit the data wrapped in a message.", "klicova_slova": "Introduction to Message Construction,integration, messaging, events, patterns, event-driven, coupling, eai, middleware, application integration, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns", "og:title": "Introduction to Message Construction - Enterprise Integration Patterns", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/MessageConstructionIntro.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/eip1_patterns_wide.png"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Integration Pattern Language"}], "markdown": "| | Introduction to Message Construction[Messaging Patterns](index.html) » [Message Construction](MessageConstructionIntro.html) | [Contents](toc.html)[⇐ Prev](MessageBus.html)[Next ⇒](CommandMessage.html) |\n| --- | --- | --- |\n\nIn [*Introduction to Messaging Systems*](MessagingComponentsIntro.html), we discussed [*Message*](Message.html). When two applications wish to exchange a piece of data, they do so by wrapping it in a message. Whereas a [*Message Channel*](MessageChannel.html) cannot transmit raw data per se, it can transmit the data wrapped in a message.\n\nDeciding to create a [*Message*](Message.html) and send it raises several other issues:\n\n**Message intent** — Messages are ultimately just bundles of data, but the sender can have different intentions for what it expects the receiver to do with the message. It can send a [*Command Message*](CommandMessage.html), specifying a function or method on the receiver that the sender wishes to invoke. The sender is telling the receiver what code to run. It can send a [*Document Message*](DocumentMessage.html), enabling the sender to transmit one of its data structures to the receiver. The sender is passing the data to the receiver, but not specifying what the receiver should necessarily do with it. Or it can send an [*Event Message*](EventMessage.html), notifying the receiver of a change in the sender. The sender is not telling the receiver how to react, just providing notification.\n\n**Returning a response** — When an application sends a message, it often expects a response confirming that the message has been processed and providing the result. This is a [*Request-Reply*](RequestReply.html) scenario. The request is usually a [*Command Message*](CommandMessage.html), and the reply is a [*Document Message*](DocumentMessage.html) containing a result value or an exception. The requestor should specify a [*Return Address*](ReturnAddress.html) in the request to tell the replier what channel to use to transmit the reply. The requestor may have multiple requests in process, so the reply should contain a [*Correlation Identifier*](CorrelationIdentifier.html) that specifies which request this reply corresponds to. [[JMS11, pp.27-28](http://java.sun.com/products/jms/docs.html)]\n\nThere are two common [*Request-Reply*](RequestReply.html) scenarios worth noting that both involve a [*Command Message*](CommandMessage.html) request and a corresponding [*Document Message*](DocumentMessage.html) reply. In the first scenario, *Messaging RPC*, the requestor not only wants to invoke a function on the replier, but also wants the return value from the function. This is how applications perform an RPC (Remote Procedure Call) using [*Messaging*](Messaging.html). In the other scenario, *Messaging Query*, the requestor is performing a query that the replier will execute and return the results in the reply. This is how applications use messaging to perform a query remotely.\n\n**Huge amounts of data** — Sometimes applications want to transfer a really large data structure, one that may not fit comfortably in a single message. In this case, break the data into more managable chunks and send them as a [*Message Sequence*](MessageSequence.html). The chunks have to be sent as a sequence, and not just a bunch of messages, so that the receiver can reconstruct the original data structure.\n\n**Slow messages** — A concern with messaging is that the sender often does not know how long it will take for the receiver to receive the message. Yet the message contents may be time-sensitive, such that if the message isn’t received by a deadline, it should just be ignored and discarded. In this situation, the sender can use [*Message Expiration*](MessageExpiration.html) to specify an expiration date. If the messaging system cannot deliver a message by its expiration, it should discard the message. If a receiver gets a message after its expiration, it should discard the message.\n\nSo it’s not enough to decide to use a [*Message*](Message.html); anytime data needs to be transferred, it will be done through a message. This chapter will explain the other decisions that go into making messages work.\n\n## Integration Pattern Language\n\n[Message Construct.](MessageConstructionIntro.html)\n\n[Message](Message.html)\n\n[Command Message](CommandMessage.html)\n\n[Document Message](DocumentMessage.html)\n\n[Event Message](EventMessage.html)\n\n[Request-Reply](RequestReply.html)\n\n[Return Address](ReturnAddress.html)\n\n[Correlation Identifier](CorrelationIdentifier.html)\n\n[Message Sequence](MessageSequence.html)\n\n[Message Expiration](MessageExpiration.html)\n\n[Format Indicator](FormatIndicator.html)\n\n[Message Routing](MessageRoutingIntro.html)\n\n[Pipes-and-Filters](PipesAndFilters.html)\n\n[Message Router](MessageRouter.html)\n\n[Content-based Router](ContentBasedRouter.html)\n\n[Message Filter](Filter.html)\n\n[Dynamic Router](DynamicRouter.html)\n\n[Recipient List](RecipientList.html)\n\n[Splitter](Sequencer.html)\n\n[Aggregator](Aggregator.html)\n\n[Resequencer](Resequencer.html)\n\n[Composed Msg. Processor](DistributionAggregate.html)\n\n[Scatter-Gather](BroadcastAggregate.html)\n\n[Routing Slip](RoutingTable.html)\n\n[Process Manager](ProcessManager.html)\n\n[Message Broker](MessageBroker.html)\n\n[Message\nTransformation](MessageTransformationIntro.html)\n\n[Message Translator](MessageTranslator.html)\n\n[Envelope Wrapper](EnvelopeWrapper.html)\n\n[Content Enricher](DataEnricher.html)\n\n[Content Filter](ContentFilter.html)\n\n[Claim Check](StoreInLibrary.html)\n\n[Normalizer](Normalizer.html)\n\n[Canonical Data Model](CanonicalDataModel.html)\n\n[Messaging Endpoints](MessagingEndpointsIntro.html)\n\n[Message Endpoint](MessageEndpoint.html)\n\n[Messaging Gateway](MessagingGateway.html)\n\n[Messaging Mapper](MessagingMapper.html)\n\n[Transactional Client](TransactionalClient.html)\n\n[Polling Consumer](PollingConsumer.html)\n\n[Event-driven Consumer](EventDrivenConsumer.html)\n\n[Competing Consumers](CompetingConsumers.html)\n\n[Message Dispatcher](MessageDispatcher.html)\n\n[Selective Consumer](MessageSelector.html)\n\n[Durable Subscriber](DurableSubscription.html)\n\n[Idempotent Receiver](IdempotentReceiver.html)\n\n[Service Activator](MessagingAdapter.html)\n\n[Messaging Channels](MessagingChannelsIntro.html)\n\n[Message Channel](MessageChannel.html)\n\n[Point-to-Point Channel](PointToPointChannel.html)\n\n[Publish-Subscr. Channel](PublishSubscribeChannel.html)\n\n[Datatype Channel](DatatypeChannel.html)\n\n[Invalid Message Channel](InvalidMessageChannel.html)\n\n[Dead Letter Channel](DeadLetterChannel.html)\n\n[Guaranteed Delivery](GuaranteedMessaging.html)\n\n[Channel Adapter](ChannelAdapter.html)\n\n[Messaging Bridge](MessagingBridge.html)\n\n[Message Bus](MessageBus.html)\n\n[Systems Mgmt.](SystemManagementIntro.html)\n\n[Control Bus](ControlBus.html)\n\n[Detour](Detour.html)\n\n[Wire Tap](WireTap.html)\n\n[Message History](MessageHistory.html)\n\n[Message Store](MessageStore.html)\n\n[Smart Proxy](SmartProxy.html)\n\n[Test Message](TestMessage.html)\n\n[Channel Purger](ChannelPurger.html)", "znaku_textu": 6882, "slov": 774, "odkazu": 108, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 15:33:59", "sha256": "6e406f30907047d22a98c1bf5075272eeeea25db2dd9cd1428b0854c2d71249c", "hloubka": 4, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://java.sun.com/products/jms/docs.html", "https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "https://www.architectelevator.com/book", "https://www.cloudstrategybook.com/", "https://www.platformstrategybook.info/"]} {"url": "http://www.enterpriseintegrationpatterns.com/MessageDispatcher.html", "titulek": "Message Dispatcher - Enterprise Integration Patterns", "h1": "", "popis": "How can multiple consumers on a single channel coordinate their message processing?", "klicova_slova": "Message Dispatcher,integration, messaging, events, patterns, event-driven, coupling, eai, middleware, application integration, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns", "og:title": "Message Dispatcher - Enterprise Integration Patterns", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/MessageDispatcher.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/MessageDispatcher.gif"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Integration Pattern Language"}], "markdown": "Messaging Patterns\n\n[Messaging Patterns](index.html)\n\n- [Integration Styles](IntegrationStylesIntro.html)\n- [Messaging Systems](MessagingComponentsIntro.html)\n- [Messaging Channels](MessagingChannelsIntro.html)\n- [Message Construction](MessageConstructionIntro.html)\n- [Interlude: Simple Messaging](SimpleMessagingIntro.html)\n- [Message Routing](MessageRoutingIntro.html)\n- [Message Transformation](MessageTransformationIntro.html)\n- [Interlude: Composed Messaging](ComposedMessagingExample.html)\n- [Messaging Endpoints](MessagingEndpointsIntro.html)\n- [System Management](SystemManagementIntro.html)\n- Interlude: Systems Management Example\n- Integration Patterns in Practice\n- Concluding Remarks\n- Appendices\n\n| | Message Dispatcher[Messaging Patterns](index.html) » [Messaging Endpoints](MessagingEndpointsIntro.html) | [Contents](toc.html)[⇐ Prev](CompetingConsumers.html)[Next ⇒](MessageSelector.html) |\n| --- | --- | --- |\n\nAn application is using [*Messaging*](Messaging.html). The application needs multiple consumers on a single [*Message Channel*](MessageChannel.html) to work in a coordinated fashion.\n\nHow can multiple consumers on a single channel coordinate their message processing?\n\nCreate a *Message Dispatcher* on a channel that will consume messages from a channel and distribute them to performers.\n\nA *Message Dispatcher* consists of two parts:\n\n1. **Dispatcher** – The object that consumes messages from a channel and distributes each message to a performer.\n2. **Performer** – The object that is given the message by the dispatcher and processes it.\n\nWhen a *Message Dispatcher* receives a message, it obtains a performer and dispatches the message to the performer to process it. A performer can delegate to the rest of its application to help process its message. The performer could be newly created by the dispatcher, or could be selected from a pool of available performers. Each performer can run in its own thread to process messages concurrently. All performers may be appropriate for all messages, or the dispatcher may match a message to a specialized performer based on properties of the message.\n\n*Message Dispatcher Sequence*\n\n...\nRead the entire pattern in the book [Enterprise Integration Patterns](/books1.html)\n\n**Related patterns:**\n\n[*Competing Consumers*](CompetingConsumers.html), [*Datatype Channel*](DatatypeChannel.html), [*Remote Procedure Invocation*](EncapsulatedSynchronousIntegration.html), [*Event-Driven Consumer*](EventDrivenConsumer.html), [*Message Channel*](MessageChannel.html), [*Selective Consumer*](MessageSelector.html), [*Messaging*](Messaging.html), [*Point-to-Point Channel*](PointToPointChannel.html), [*Polling Consumer*](PollingConsumer.html), [*Publish-Subscribe Channel*](PublishSubscribeChannel.html), [*Claim Check*](StoreInLibrary.html), [*Transactional Client*](TransactionalClient.html)\n\n---\n\n## Integration Pattern Language\n\n[Message Construct.](MessageConstructionIntro.html)\n\n[Message](Message.html)\n\n[Command Message](CommandMessage.html)\n\n[Document Message](DocumentMessage.html)\n\n[Event Message](EventMessage.html)\n\n[Request-Reply](RequestReply.html)\n\n[Return Address](ReturnAddress.html)\n\n[Correlation Identifier](CorrelationIdentifier.html)\n\n[Message Sequence](MessageSequence.html)\n\n[Message Expiration](MessageExpiration.html)\n\n[Format Indicator](FormatIndicator.html)\n\n[Message Routing](MessageRoutingIntro.html)\n\n[Pipes-and-Filters](PipesAndFilters.html)\n\n[Message Router](MessageRouter.html)\n\n[Content-based Router](ContentBasedRouter.html)\n\n[Message Filter](Filter.html)\n\n[Dynamic Router](DynamicRouter.html)\n\n[Recipient List](RecipientList.html)\n\n[Splitter](Sequencer.html)\n\n[Aggregator](Aggregator.html)\n\n[Resequencer](Resequencer.html)\n\n[Composed Msg. Processor](DistributionAggregate.html)\n\n[Scatter-Gather](BroadcastAggregate.html)\n\n[Routing Slip](RoutingTable.html)\n\n[Process Manager](ProcessManager.html)\n\n[Message Broker](MessageBroker.html)\n\n[Message\nTransformation](MessageTransformationIntro.html)\n\n[Message Translator](MessageTranslator.html)\n\n[Envelope Wrapper](EnvelopeWrapper.html)\n\n[Content Enricher](DataEnricher.html)\n\n[Content Filter](ContentFilter.html)\n\n[Claim Check](StoreInLibrary.html)\n\n[Normalizer](Normalizer.html)\n\n[Canonical Data Model](CanonicalDataModel.html)\n\n[Messaging Endpoints](MessagingEndpointsIntro.html)\n\n[Message Endpoint](MessageEndpoint.html)\n\n[Messaging Gateway](MessagingGateway.html)\n\n[Messaging Mapper](MessagingMapper.html)\n\n[Transactional Client](TransactionalClient.html)\n\n[Polling Consumer](PollingConsumer.html)\n\n[Event-driven Consumer](EventDrivenConsumer.html)\n\n[Competing Consumers](CompetingConsumers.html)\n\n[Message Dispatcher](MessageDispatcher.html)\n\n[Selective Consumer](MessageSelector.html)\n\n[Durable Subscriber](DurableSubscription.html)\n\n[Idempotent Receiver](IdempotentReceiver.html)\n\n[Service Activator](MessagingAdapter.html)\n\n[Messaging Channels](MessagingChannelsIntro.html)\n\n[Message Channel](MessageChannel.html)\n\n[Point-to-Point Channel](PointToPointChannel.html)\n\n[Publish-Subscr. Channel](PublishSubscribeChannel.html)\n\n[Datatype Channel](DatatypeChannel.html)\n\n[Invalid Message Channel](InvalidMessageChannel.html)\n\n[Dead Letter Channel](DeadLetterChannel.html)\n\n[Guaranteed Delivery](GuaranteedMessaging.html)\n\n[Channel Adapter](ChannelAdapter.html)\n\n[Messaging Bridge](MessagingBridge.html)\n\n[Message Bus](MessageBus.html)\n\n[Systems Mgmt.](SystemManagementIntro.html)\n\n[Control Bus](ControlBus.html)\n\n[Detour](Detour.html)\n\n[Wire Tap](WireTap.html)\n\n[Message History](MessageHistory.html)\n\n[Message Store](MessageStore.html)\n\n[Smart Proxy](SmartProxy.html)\n\n[Test Message](TestMessage.html)\n\n[Channel Purger](ChannelPurger.html)\n\n- » [Read the latest in My Blog](/ramblings)\n- » [Get more insights from My Articles](/articles.html)\n- » [See me live in my Upcoming Talks](/talks)\n\nYou can reuse the following elements under the [Creative Commons Attribution](http://creativecommons.org/licenses/by/4.0/) license: pattern icon, pattern name, problem and solution statements (in bold), and the sketch. Other portions are protected by copyright.\n\n[Enterprise Integration Patterns](https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20)\nThe de-facto language for designing asynchronous, distributed systems. Over 100,000 copies sold.\n\n[The Software Architect Elevator](https://www.architectelevator.com/book)\n\n Rethink the role of architects as a connecting element across organizational layers. Acquire the technical, communication, and organizational skills to succeed in this new role.\n\n[Cloud Strategy](https://www.cloudstrategybook.com)\n\n Make your cloud migration a success by translating high-level goals into conscious decisions with well-understood trade-offs.\n\n[Platform Strategy](https://www.platformstrategybook.info)\n\n Platforms can boost innovation through harmonization, but they aren't easy to build. Learn from over a decade of designing and rolling out IT platforms.", "znaku_textu": 6802, "slov": 590, "odkazu": 108, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 15:34:41", "sha256": "8c60016066a0c10b5757e12e9fd45f5c1db6a226bdfd112338d5e6e96be0a136", "hloubka": 4, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://creativecommons.org/licenses/by/4.0/", "https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "https://www.architectelevator.com/book", "https://www.cloudstrategybook.com/", "https://www.platformstrategybook.info/"]} {"url": "http://www.enterpriseintegrationpatterns.com/MessageEndpoint.html", "titulek": "Message Endpoint - Enterprise Integration Patterns", "h1": "", "popis": "How does an application connect to a messaging channel to send and receive messages?", "klicova_slova": "Message Endpoint,integration, messaging, events, patterns, event-driven, coupling, eai, middleware, application integration, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns", "og:title": "Message Endpoint - Enterprise Integration Patterns", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/MessageEndpoint.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/MessageEndpointSolution.gif"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Integration Pattern Language"}], "markdown": "Messaging Patterns\n\n[Messaging Patterns](index.html)\n\n- [Integration Styles](IntegrationStylesIntro.html)\n- [Messaging Systems](MessagingComponentsIntro.html)\n- [Messaging Channels](MessagingChannelsIntro.html)\n- [Message Construction](MessageConstructionIntro.html)\n- [Interlude: Simple Messaging](SimpleMessagingIntro.html)\n- [Message Routing](MessageRoutingIntro.html)\n- [Message Transformation](MessageTransformationIntro.html)\n- [Interlude: Composed Messaging](ComposedMessagingExample.html)\n- [Messaging Endpoints](MessagingEndpointsIntro.html)\n- [System Management](SystemManagementIntro.html)\n- Interlude: Systems Management Example\n- Integration Patterns in Practice\n- Concluding Remarks\n- Appendices\n\n| | Message Endpoint[Messaging Patterns](index.html) » [Messaging Systems](MessagingComponentsIntro.html) | [Contents](toc.html)[⇐ Prev](MessageTranslator.html)[Next ⇒](MessagingChannelsIntro.html) |\n| --- | --- | --- |\n\nApplications are communicating by sending [*Message*](Message.html)s to each other via [*Message Channel*](MessageChannel.html)s.\n\nHow does an application connect to a messaging channel to send and receive messages?\n\nConnect an application to a messaging channel using a *Message Endpoint*, a client of the messaging system that the application can then use to send or receive messages.\n\n*Message Endpoint* code is custom to both the application and the messaging system’s client API. The rest of the application knows little about message formats, messaging channels, or any of the other details of communicating with other applications via messaging. It just knows that it has a request or piece of data to send to another application, or is expecting those from another application. It is the messaging endpoint code that takes that command or data, makes it into a message, and sends it on a particular messaging channel. It is the endpoint that receives a message, extracts the contents, and gives them to the application in a meaningful way.\n\n...\nRead the entire pattern in the book [Enterprise Integration Patterns](/books1.html)\n\n**Related patterns:**\n\n[*Channel Adapter*](ChannelAdapter.html), [*Competing Consumers*](CompetingConsumers.html), [*Durable Subscriber*](DurableSubscription.html), [*Event-Driven Consumer*](EventDrivenConsumer.html), [*Idempotent Receiver*](IdempotentReceiver.html), [*Message*](Message.html), [*Message Channel*](MessageChannel.html), [*Message Dispatcher*](MessageDispatcher.html), [*Selective Consumer*](MessageSelector.html), [*Service Activator*](MessagingAdapter.html), [*Messaging Gateway*](MessagingGateway.html), [*Messaging Mapper*](MessagingMapper.html), [*Polling Consumer*](PollingConsumer.html), [*Transactional Client*](TransactionalClient.html)\n\n---\n\n## Integration Pattern Language\n\n[Message Construct.](MessageConstructionIntro.html)\n\n[Message](Message.html)\n\n[Command Message](CommandMessage.html)\n\n[Document Message](DocumentMessage.html)\n\n[Event Message](EventMessage.html)\n\n[Request-Reply](RequestReply.html)\n\n[Return Address](ReturnAddress.html)\n\n[Correlation Identifier](CorrelationIdentifier.html)\n\n[Message Sequence](MessageSequence.html)\n\n[Message Expiration](MessageExpiration.html)\n\n[Format Indicator](FormatIndicator.html)\n\n[Message Routing](MessageRoutingIntro.html)\n\n[Pipes-and-Filters](PipesAndFilters.html)\n\n[Message Router](MessageRouter.html)\n\n[Content-based Router](ContentBasedRouter.html)\n\n[Message Filter](Filter.html)\n\n[Dynamic Router](DynamicRouter.html)\n\n[Recipient List](RecipientList.html)\n\n[Splitter](Sequencer.html)\n\n[Aggregator](Aggregator.html)\n\n[Resequencer](Resequencer.html)\n\n[Composed Msg. Processor](DistributionAggregate.html)\n\n[Scatter-Gather](BroadcastAggregate.html)\n\n[Routing Slip](RoutingTable.html)\n\n[Process Manager](ProcessManager.html)\n\n[Message Broker](MessageBroker.html)\n\n[Message\nTransformation](MessageTransformationIntro.html)\n\n[Message Translator](MessageTranslator.html)\n\n[Envelope Wrapper](EnvelopeWrapper.html)\n\n[Content Enricher](DataEnricher.html)\n\n[Content Filter](ContentFilter.html)\n\n[Claim Check](StoreInLibrary.html)\n\n[Normalizer](Normalizer.html)\n\n[Canonical Data Model](CanonicalDataModel.html)\n\n[Messaging Endpoints](MessagingEndpointsIntro.html)\n\n[Message Endpoint](MessageEndpoint.html)\n\n[Messaging Gateway](MessagingGateway.html)\n\n[Messaging Mapper](MessagingMapper.html)\n\n[Transactional Client](TransactionalClient.html)\n\n[Polling Consumer](PollingConsumer.html)\n\n[Event-driven Consumer](EventDrivenConsumer.html)\n\n[Competing Consumers](CompetingConsumers.html)\n\n[Message Dispatcher](MessageDispatcher.html)\n\n[Selective Consumer](MessageSelector.html)\n\n[Durable Subscriber](DurableSubscription.html)\n\n[Idempotent Receiver](IdempotentReceiver.html)\n\n[Service Activator](MessagingAdapter.html)\n\n[Messaging Channels](MessagingChannelsIntro.html)\n\n[Message Channel](MessageChannel.html)\n\n[Point-to-Point Channel](PointToPointChannel.html)\n\n[Publish-Subscr. Channel](PublishSubscribeChannel.html)\n\n[Datatype Channel](DatatypeChannel.html)\n\n[Invalid Message Channel](InvalidMessageChannel.html)\n\n[Dead Letter Channel](DeadLetterChannel.html)\n\n[Guaranteed Delivery](GuaranteedMessaging.html)\n\n[Channel Adapter](ChannelAdapter.html)\n\n[Messaging Bridge](MessagingBridge.html)\n\n[Message Bus](MessageBus.html)\n\n[Systems Mgmt.](SystemManagementIntro.html)\n\n[Control Bus](ControlBus.html)\n\n[Detour](Detour.html)\n\n[Wire Tap](WireTap.html)\n\n[Message History](MessageHistory.html)\n\n[Message Store](MessageStore.html)\n\n[Smart Proxy](SmartProxy.html)\n\n[Test Message](TestMessage.html)\n\n[Channel Purger](ChannelPurger.html)\n\n- » [Read the latest in My Blog](/ramblings)\n- » [Get more insights from My Articles](/articles.html)\n- » [See me live in my Upcoming Talks](/talks)\n\nYou can reuse the following elements under the [Creative Commons Attribution](http://creativecommons.org/licenses/by/4.0/) license: pattern icon, pattern name, problem and solution statements (in bold), and the sketch. Other portions are protected by copyright.\n\n[Enterprise Integration Patterns](https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20)\nThe de-facto language for designing asynchronous, distributed systems. Over 100,000 copies sold.\n\n[The Software Architect Elevator](https://www.architectelevator.com/book)\n\n Rethink the role of architects as a connecting element across organizational layers. Acquire the technical, communication, and organizational skills to succeed in this new role.\n\n[Cloud Strategy](https://www.cloudstrategybook.com)\n\n Make your cloud migration a success by translating high-level goals into conscious decisions with well-understood trade-offs.\n\n[Platform Strategy](https://www.platformstrategybook.info)\n\n Platforms can boost innovation through harmonization, but they aren't easy to build. Learn from over a decade of designing and rolling out IT platforms.", "znaku_textu": 6687, "slov": 571, "odkazu": 108, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 15:34:34", "sha256": "2c9380b85e3fdaaac9b47e713e209aab5795c47d05fb319ca0bc80eb59efbf3c", "hloubka": 4, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://creativecommons.org/licenses/by/4.0/", "https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "https://www.architectelevator.com/book", "https://www.cloudstrategybook.com/", "https://www.platformstrategybook.info/"]} {"url": "http://www.enterpriseintegrationpatterns.com/MessageExpiration.html", "titulek": "Message Expiration - Enterprise Integration Patterns", "h1": "", "popis": "How can a sender indicate when a message should be considered stale and thus shouldn’t be processed?", "klicova_slova": "Message Expiration,integration, messaging, events, patterns, event-driven, coupling, eai, middleware, application integration, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns", "og:title": "Message Expiration - Enterprise Integration Patterns", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/MessageExpiration.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/MessageExpirationSolution.gif"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Example: Azure Service BusNEW"}, {"uroven": 2, "text": "Example: Amazon EventBridgeNEW"}, {"uroven": 2, "text": "Example: Google Cloud PubSubNEW"}, {"uroven": 2, "text": "Integration Pattern Language"}], "markdown": "| | Message Expiration[Messaging Patterns](index.html) » [Message Construction](MessageConstructionIntro.html) | [Contents](toc.html)[⇐ Prev](MessageSequence.html)[Next ⇒](FormatIndicator.html) |\n| --- | --- | --- |\n\nMy application is using [*Messaging*](Messaging.html). If a [*Message*](Message.html)’s data or request is not received by a certain time, it is useless and should be ignored.\n\nHow can a sender indicate when a message should be considered stale and thus shouldn’t be processed?\n\nSet the *Message Expiration* to specify a time limit how long the message is viable.\n\nOnce the time for which a message is viable passes, and the message still has not been consumed, then the message will expire. The messaging system’s consumers will ignore an expired message; they treat the message as if it where never sent in the first place. Most messaging system implementations reroute expired messages to the [*Dead Letter Channel*](DeadLetterChannel.html), while others simply discard expired messages; this may be configurable.\n\nA *Message Expiration* is like the expiration date on a carton of milk—after that date, you’re not supposed to drink the milk. If the expiration date passes while the milk is on the grocery store shelf, the grocer is supposed to pull the milk off the shelf and not sell it. If you end up with a carton on milk that expires, you’re supposed to pour it out. Likewise, when a message expires, the messaging system should no longer deliver it. If a receiver nevertheless receives a message but cannot process it before the expiration, the receiver should throw away the message.\n\n...\nRead the entire pattern in the book [Enterprise Integration Patterns](/books1.html)\n\n## Example: Azure Service Bus[NEW](/ramblings/eip1_examples_updated.html)\n\n[Azure Service Bus](https://azure.microsoft.com/en-au/products/service-bus/) implements *Message Expiration* [both at the entity and the message level](https://learn.microsoft.com/en-us/azure/service-bus-messaging/message-expiration). Messages expire at the earliest of the *Message Expiration* set in the message or the entity, e.g. the queue or topic. Expired messages are sent to a [*Dead Letter Channel*](DeadLetterChannel.html) if one is specified. Messages that are locked for delivery (see [*Transactional Client*](TransactionalClient.html)) won't expire as long as they are locked.\n\n## Example: Amazon EventBridge[NEW](/ramblings/eip1_examples_updated.html)\n\n[Amazon EventBridge](https://aws.amazon.com/eventbridge/) uses a built-in *Message Expiration* that can [trigger on elapsed time or the number of failed delivery attempts](https://docs.aws.amazon.com/eventbridge/latest/userguide/eb-rule-dlq.html), whichever comes first. The default values are 24 hours and 185 retries, but can be customized in the console or via the command-line by using the RetryPolicy setting of the EventBridge target:\n\n```\n\"RetryPolicy\": {\n \"MaximumRetryAttempts\": integer,\n \"MaximumEventAgeInSeconds\": integer\n }\n```\n\nAsynchronous targets like SQS, SNS, or CloudWatch logs rarely trigger the *Message Expiration* because they can consume messages at the same rate as they arrive on the event bus. However, *Message Expiration* is an important setting when using rate-limited targets like [API Destinations](https://docs.aws.amazon.com/eventbridge/latest/userguide/eb-api-destinations.html) (HTTP calls).\n\n## Example: Google Cloud PubSub[NEW](/ramblings/eip1_examples_updated.html)\n\n[*Publish-Subscribe Channel*](PublishSubscribeChannel.html)s generally have longer *Message Expiration* as a new subscriber might be interested in messages that have already been consumed by existing subscribers. [Google Cloud PubSub](https://cloud.google.com/pubsub/) includes a message_retention_duration setting for both topics and subscriptions (see [*Publish-Subscribe Channel*](PublishSubscribeChannel.html) for an explanation of topics and subscriptions) that allows subscriptions to [replay messages that predate the subscription](https://cloud.google.com/pubsub/docs/replay-overview), allowing subscriptions to act as [*Durable Subscriber*](DurableSubscription.html)s. The maximum setting is a generous 31 days, but you pay for storage.\n\n**Related patterns:**\n\n[*Dead Letter Channel*](DeadLetterChannel.html), [*Durable Subscriber*](DurableSubscription.html), [*Guaranteed Delivery*](GuaranteedMessaging.html), [*Invalid Message Channel*](InvalidMessageChannel.html), [*Message*](Message.html), [*Messaging*](Messaging.html), [*Publish-Subscribe Channel*](PublishSubscribeChannel.html), [*Request-Reply*](RequestReply.html), [*Transactional Client*](TransactionalClient.html)\n\n---\n\n## Integration Pattern Language\n\n[Message Construct.](MessageConstructionIntro.html)\n\n[Message](Message.html)\n\n[Command Message](CommandMessage.html)\n\n[Document Message](DocumentMessage.html)\n\n[Event Message](EventMessage.html)\n\n[Request-Reply](RequestReply.html)\n\n[Return Address](ReturnAddress.html)\n\n[Correlation Identifier](CorrelationIdentifier.html)\n\n[Message Sequence](MessageSequence.html)\n\n[Message Expiration](MessageExpiration.html)\n\n[Format Indicator](FormatIndicator.html)\n\n[Message Routing](MessageRoutingIntro.html)\n\n[Pipes-and-Filters](PipesAndFilters.html)\n\n[Message Router](MessageRouter.html)\n\n[Content-based Router](ContentBasedRouter.html)\n\n[Message Filter](Filter.html)\n\n[Dynamic Router](DynamicRouter.html)\n\n[Recipient List](RecipientList.html)\n\n[Splitter](Sequencer.html)\n\n[Aggregator](Aggregator.html)\n\n[Resequencer](Resequencer.html)\n\n[Composed Msg. Processor](DistributionAggregate.html)\n\n[Scatter-Gather](BroadcastAggregate.html)\n\n[Routing Slip](RoutingTable.html)\n\n[Process Manager](ProcessManager.html)\n\n[Message Broker](MessageBroker.html)\n\n[Message\nTransformation](MessageTransformationIntro.html)\n\n[Message Translator](MessageTranslator.html)\n\n[Envelope Wrapper](EnvelopeWrapper.html)\n\n[Content Enricher](DataEnricher.html)\n\n[Content Filter](ContentFilter.html)\n\n[Claim Check](StoreInLibrary.html)\n\n[Normalizer](Normalizer.html)\n\n[Canonical Data Model](CanonicalDataModel.html)\n\n[Messaging Endpoints](MessagingEndpointsIntro.html)\n\n[Message Endpoint](MessageEndpoint.html)\n\n[Messaging Gateway](MessagingGateway.html)\n\n[Messaging Mapper](MessagingMapper.html)\n\n[Transactional Client](TransactionalClient.html)\n\n[Polling Consumer](PollingConsumer.html)\n\n[Event-driven Consumer](EventDrivenConsumer.html)\n\n[Competing Consumers](CompetingConsumers.html)\n\n[Message Dispatcher](MessageDispatcher.html)\n\n[Selective Consumer](MessageSelector.html)\n\n[Durable Subscriber](DurableSubscription.html)\n\n[Idempotent Receiver](IdempotentReceiver.html)\n\n[Service Activator](MessagingAdapter.html)\n\n[Messaging Channels](MessagingChannelsIntro.html)\n\n[Message Channel](MessageChannel.html)\n\n[Point-to-Point Channel](PointToPointChannel.html)\n\n[Publish-Subscr. Channel](PublishSubscribeChannel.html)\n\n[Datatype Channel](DatatypeChannel.html)\n\n[Invalid Message Channel](InvalidMessageChannel.html)\n\n[Dead Letter Channel](DeadLetterChannel.html)\n\n[Guaranteed Delivery](GuaranteedMessaging.html)\n\n[Channel Adapter](ChannelAdapter.html)\n\n[Messaging Bridge](MessagingBridge.html)\n\n[Message Bus](MessageBus.html)\n\n[Systems Mgmt.](SystemManagementIntro.html)\n\n[Control Bus](ControlBus.html)\n\n[Detour](Detour.html)\n\n[Wire Tap](WireTap.html)\n\n[Message History](MessageHistory.html)\n\n[Message Store](MessageStore.html)\n\n[Smart Proxy](SmartProxy.html)\n\n[Test Message](TestMessage.html)\n\n[Channel Purger](ChannelPurger.html)", "znaku_textu": 7322, "slov": 715, "odkazu": 116, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 15:34:08", "sha256": "9522e7c0d36b461b363796225d7fc9cef2609467e252c9ac17edc1d2354a98ee", "hloubka": 4, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://azure.microsoft.com/en-au/products/service-bus/", "https://learn.microsoft.com/en-us/azure/service-bus-messaging/message-expiration", "https://aws.amazon.com/eventbridge/", "https://docs.aws.amazon.com/eventbridge/latest/userguide/eb-rule-dlq.html", "https://docs.aws.amazon.com/eventbridge/latest/userguide/eb-api-destinations.html", "https://cloud.google.com/pubsub/", "https://cloud.google.com/pubsub/docs/replay-overview", "http://creativecommons.org/licenses/by/4.0/", "https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "https://www.architectelevator.com/book", "https://www.cloudstrategybook.com/", "https://www.platformstrategybook.info/"]} {"url": "http://www.enterpriseintegrationpatterns.com/MessageHistory.html", "titulek": "Message History - Enterprise Integration Patterns", "h1": "", "popis": "How can we effectively analyze and debug the flow of messages in a loosely coupled system?", "klicova_slova": "Message History,integration, messaging, events, patterns, event-driven, coupling, eai, middleware, application integration, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns", "og:title": "Message History - Enterprise Integration Patterns", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/MessageHistory.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/MessageHistory.gif"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Integration Pattern Language"}], "markdown": "| | Message History[Messaging Patterns](index.html) » [System Management](SystemManagementIntro.html) | [Contents](toc.html)[⇐ Prev](WireTap.html)[Next ⇒](MessageStore.html) |\n| --- | --- | --- |\n\nOne of key benefits of a message-based systems is the loose coupling between participants; the message sender and recipient make no (or few) assumptions about each other's identity. If a message recipient retrieves a message from a message channel, it generally does not know nor care which application put the message on the channel. The message is by definition self-contained and is not associated with a specific sender. This is one of the architectural strengths of message-based systems.\n\nHowever, the same property can make debugging and analyzing dependencies very difficult. If we are not sure where a message goes, how can we assess the impact of a change in the message format? Likewise, if we don't know which application published a message it is difficult to correct a problem with the message.\n\nHow can we effectively analyze and debug the flow of messages in a loosely coupled system?\n\nTherefore, attach a *Message History* to the message. The *Message History* is a list of all applications that the message passed through since its origination.\n\nThe *Message History* maintains a list of all components that the message passed through. Every component that processes the message (including the originator) adds one entry to the list. The *Message History* should be part of the message header because it contains system-specific control information. Keeping this information in the header separates it from the message body that contains application specific data.\n\nNot every message that a component publishes is the result of a single message. For example,an [*Aggregator*](Aggregator.html) publishes a single message that carries information collected from multiple messages, each of which could have its own history. If we want to represent this scenario in the *Message History*, we have two choices. If we want to track the complete history we can enhance the *Message History* to be stored as a hierarchical tree structure. Because of the recursive nature of a tree structure we can store multiple message histories under a single 'node'. Alternatively, we can keep a simple list and only keep the history of one incoming message. This can work well if one incoming message is more important to the result than other, auxiliary messages.\n\n...\nRead the entire pattern in the book [Enterprise Integration Patterns](/books1.html)\n\n**Related patterns:**\n\n[*Aggregator*](Aggregator.html), [*Control Bus*](ControlBus.html), [*Message Router*](MessageRouter.html), [*Message Store*](MessageStore.html), [*Process Manager*](ProcessManager.html), [*Publish-Subscribe Channel*](PublishSubscribeChannel.html), [*Recipient List*](RecipientList.html)\n\n---\n\n## Integration Pattern Language\n\n[Message Construct.](MessageConstructionIntro.html)\n\n[Message](Message.html)\n\n[Command Message](CommandMessage.html)\n\n[Document Message](DocumentMessage.html)\n\n[Event Message](EventMessage.html)\n\n[Request-Reply](RequestReply.html)\n\n[Return Address](ReturnAddress.html)\n\n[Correlation Identifier](CorrelationIdentifier.html)\n\n[Message Sequence](MessageSequence.html)\n\n[Message Expiration](MessageExpiration.html)\n\n[Format Indicator](FormatIndicator.html)\n\n[Message Routing](MessageRoutingIntro.html)\n\n[Pipes-and-Filters](PipesAndFilters.html)\n\n[Message Router](MessageRouter.html)\n\n[Content-based Router](ContentBasedRouter.html)\n\n[Message Filter](Filter.html)\n\n[Dynamic Router](DynamicRouter.html)\n\n[Recipient List](RecipientList.html)\n\n[Splitter](Sequencer.html)\n\n[Aggregator](Aggregator.html)\n\n[Resequencer](Resequencer.html)\n\n[Composed Msg. Processor](DistributionAggregate.html)\n\n[Scatter-Gather](BroadcastAggregate.html)\n\n[Routing Slip](RoutingTable.html)\n\n[Process Manager](ProcessManager.html)\n\n[Message Broker](MessageBroker.html)\n\n[Message\nTransformation](MessageTransformationIntro.html)\n\n[Message Translator](MessageTranslator.html)\n\n[Envelope Wrapper](EnvelopeWrapper.html)\n\n[Content Enricher](DataEnricher.html)\n\n[Content Filter](ContentFilter.html)\n\n[Claim Check](StoreInLibrary.html)\n\n[Normalizer](Normalizer.html)\n\n[Canonical Data Model](CanonicalDataModel.html)\n\n[Messaging Endpoints](MessagingEndpointsIntro.html)\n\n[Message Endpoint](MessageEndpoint.html)\n\n[Messaging Gateway](MessagingGateway.html)\n\n[Messaging Mapper](MessagingMapper.html)\n\n[Transactional Client](TransactionalClient.html)\n\n[Polling Consumer](PollingConsumer.html)\n\n[Event-driven Consumer](EventDrivenConsumer.html)\n\n[Competing Consumers](CompetingConsumers.html)\n\n[Message Dispatcher](MessageDispatcher.html)\n\n[Selective Consumer](MessageSelector.html)\n\n[Durable Subscriber](DurableSubscription.html)\n\n[Idempotent Receiver](IdempotentReceiver.html)\n\n[Service Activator](MessagingAdapter.html)\n\n[Messaging Channels](MessagingChannelsIntro.html)\n\n[Message Channel](MessageChannel.html)\n\n[Point-to-Point Channel](PointToPointChannel.html)\n\n[Publish-Subscr. Channel](PublishSubscribeChannel.html)\n\n[Datatype Channel](DatatypeChannel.html)\n\n[Invalid Message Channel](InvalidMessageChannel.html)\n\n[Dead Letter Channel](DeadLetterChannel.html)\n\n[Guaranteed Delivery](GuaranteedMessaging.html)\n\n[Channel Adapter](ChannelAdapter.html)\n\n[Messaging Bridge](MessagingBridge.html)\n\n[Message Bus](MessageBus.html)\n\n[Systems Mgmt.](SystemManagementIntro.html)\n\n[Control Bus](ControlBus.html)\n\n[Detour](Detour.html)\n\n[Wire Tap](WireTap.html)\n\n[Message History](MessageHistory.html)\n\n[Message Store](MessageStore.html)\n\n[Smart Proxy](SmartProxy.html)\n\n[Test Message](TestMessage.html)\n\n[Channel Purger](ChannelPurger.html)", "znaku_textu": 5571, "slov": 559, "odkazu": 108, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 15:35:00", "sha256": "d5aefe0d1353167cdd7be8f1ddc822d5ad13c4c39bb36f6aeb6d1fa11f5c865d", "hloubka": 4, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://creativecommons.org/licenses/by/4.0/", "https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "https://www.architectelevator.com/book", "https://www.cloudstrategybook.com/", "https://www.platformstrategybook.info/"]} {"url": "http://www.enterpriseintegrationpatterns.com/MessageRouter.html", "titulek": "Message Router - Enterprise Integration Patterns", "h1": "", "popis": "How can you decouple individual processing steps so that messages can be passed to different filters depending on a set of conditions?", "klicova_slova": "Message Router,integration, messaging, events, patterns, event-driven, coupling, eai, middleware, application integration, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns", "og:title": "Message Router - Enterprise Integration Patterns", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/MessageRouter.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/MessageRouter.gif"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Integration Pattern Language"}], "markdown": "Messaging Patterns\n\n[Messaging Patterns](index.html)\n\n- [Integration Styles](IntegrationStylesIntro.html)\n- [Messaging Systems](MessagingComponentsIntro.html)\n- [Messaging Channels](MessagingChannelsIntro.html)\n- [Message Construction](MessageConstructionIntro.html)\n- [Interlude: Simple Messaging](SimpleMessagingIntro.html)\n- [Message Routing](MessageRoutingIntro.html)\n- [Message Transformation](MessageTransformationIntro.html)\n- [Interlude: Composed Messaging](ComposedMessagingExample.html)\n- [Messaging Endpoints](MessagingEndpointsIntro.html)\n- [System Management](SystemManagementIntro.html)\n- Interlude: Systems Management Example\n- Integration Patterns in Practice\n- Concluding Remarks\n- Appendices\n\n| | Message Router[Messaging Patterns](index.html) » [Messaging Systems](MessagingComponentsIntro.html) | [Contents](toc.html)[⇐ Prev](PipesAndFilters.html)[Next ⇒](MessageTranslator.html) |\n| --- | --- | --- |\n\nMultiple processing steps in a [*Pipes and Filters*](PipesAndFilters.html) chain are connected by [*Message Channel*](MessageChannel.html)s.\n\nHow can you decouple individual processing steps so that messages can be passed to different filters depending on a set of conditions?\n\nInsert a special filter, a *Message Router*, which consumes a [*Message*](Message.html) from one [*Message Channel*](MessageChannel.html) and republishes it to a different [*Message Channel*](MessageChannel.html) channel depending on a set of conditions.\n\nThe *Message Router* differs from the most basic notion of [*Pipes and Filters*](PipesAndFilters.html) in that it connects to multiple output channels. Thanks to the [*Pipes and Filters*](PipesAndFilters.html) architecture the components surrounding the *Message Router* are completely unaware of the existence of a *Message Router*. A key property of the *Message Router* is that it does not modify the message contents. It only concerns itself with the destination of the message.\n\nThe key benefit of using a *Message Router* is that the decision criteria for the destination of a message are maintained in a single location. If new message types are defined, new processing components are added, or the routing rules change, we need to change only the *Message Router* logic and all other components remain unaffected. Also, since all messages pass through a single *Message Router*, incoming messages are guaranteed to be processed one-by-one in the correct order.\n\n...\nRead the entire pattern in the book [Enterprise Integration Patterns](/books1.html)\n\n**Related patterns:**\n\n[*Channel Adapter*](ChannelAdapter.html), [*Content-Based Router*](ContentBasedRouter.html), [*Control Bus*](ControlBus.html), [*Datatype Channel*](DatatypeChannel.html), [*Dynamic Router*](DynamicRouter.html), [*Message Filter*](Filter.html), [*Message*](Message.html), [*Message Channel*](MessageChannel.html), [*Message History*](MessageHistory.html), [*Introduction to Message Routing*](MessageRoutingIntro.html), [*Message Translator*](MessageTranslator.html), [*Pipes and Filters*](PipesAndFilters.html), [*Publish-Subscribe Channel*](PublishSubscribeChannel.html), [*Transactional Client*](TransactionalClient.html)\n\n---\n\n## Integration Pattern Language\n\n[Message Construct.](MessageConstructionIntro.html)\n\n[Message](Message.html)\n\n[Command Message](CommandMessage.html)\n\n[Document Message](DocumentMessage.html)\n\n[Event Message](EventMessage.html)\n\n[Request-Reply](RequestReply.html)\n\n[Return Address](ReturnAddress.html)\n\n[Correlation Identifier](CorrelationIdentifier.html)\n\n[Message Sequence](MessageSequence.html)\n\n[Message Expiration](MessageExpiration.html)\n\n[Format Indicator](FormatIndicator.html)\n\n[Message Routing](MessageRoutingIntro.html)\n\n[Pipes-and-Filters](PipesAndFilters.html)\n\n[Message Router](MessageRouter.html)\n\n[Content-based Router](ContentBasedRouter.html)\n\n[Message Filter](Filter.html)\n\n[Dynamic Router](DynamicRouter.html)\n\n[Recipient List](RecipientList.html)\n\n[Splitter](Sequencer.html)\n\n[Aggregator](Aggregator.html)\n\n[Resequencer](Resequencer.html)\n\n[Composed Msg. Processor](DistributionAggregate.html)\n\n[Scatter-Gather](BroadcastAggregate.html)\n\n[Routing Slip](RoutingTable.html)\n\n[Process Manager](ProcessManager.html)\n\n[Message Broker](MessageBroker.html)\n\n[Message\nTransformation](MessageTransformationIntro.html)\n\n[Message Translator](MessageTranslator.html)\n\n[Envelope Wrapper](EnvelopeWrapper.html)\n\n[Content Enricher](DataEnricher.html)\n\n[Content Filter](ContentFilter.html)\n\n[Claim Check](StoreInLibrary.html)\n\n[Normalizer](Normalizer.html)\n\n[Canonical Data Model](CanonicalDataModel.html)\n\n[Messaging Endpoints](MessagingEndpointsIntro.html)\n\n[Message Endpoint](MessageEndpoint.html)\n\n[Messaging Gateway](MessagingGateway.html)\n\n[Messaging Mapper](MessagingMapper.html)\n\n[Transactional Client](TransactionalClient.html)\n\n[Polling Consumer](PollingConsumer.html)\n\n[Event-driven Consumer](EventDrivenConsumer.html)\n\n[Competing Consumers](CompetingConsumers.html)\n\n[Message Dispatcher](MessageDispatcher.html)\n\n[Selective Consumer](MessageSelector.html)\n\n[Durable Subscriber](DurableSubscription.html)\n\n[Idempotent Receiver](IdempotentReceiver.html)\n\n[Service Activator](MessagingAdapter.html)\n\n[Messaging Channels](MessagingChannelsIntro.html)\n\n[Message Channel](MessageChannel.html)\n\n[Point-to-Point Channel](PointToPointChannel.html)\n\n[Publish-Subscr. Channel](PublishSubscribeChannel.html)\n\n[Datatype Channel](DatatypeChannel.html)\n\n[Invalid Message Channel](InvalidMessageChannel.html)\n\n[Dead Letter Channel](DeadLetterChannel.html)\n\n[Guaranteed Delivery](GuaranteedMessaging.html)\n\n[Channel Adapter](ChannelAdapter.html)\n\n[Messaging Bridge](MessagingBridge.html)\n\n[Message Bus](MessageBus.html)\n\n[Systems Mgmt.](SystemManagementIntro.html)\n\n[Control Bus](ControlBus.html)\n\n[Detour](Detour.html)\n\n[Wire Tap](WireTap.html)\n\n[Message History](MessageHistory.html)\n\n[Message Store](MessageStore.html)\n\n[Smart Proxy](SmartProxy.html)\n\n[Test Message](TestMessage.html)\n\n[Channel Purger](ChannelPurger.html)\n\n- » [Read the latest in My Blog](/ramblings)\n- » [Get more insights from My Articles](/articles.html)\n- » [See me live in my Upcoming Talks](/talks)\n\nYou can reuse the following elements under the [Creative Commons Attribution](http://creativecommons.org/licenses/by/4.0/) license: pattern icon, pattern name, problem and solution statements (in bold), and the sketch. Other portions are protected by copyright.\n\n[Enterprise Integration Patterns](https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20)\nThe de-facto language for designing asynchronous, distributed systems. Over 100,000 copies sold.\n\n[The Software Architect Elevator](https://www.architectelevator.com/book)\n\n Rethink the role of architects as a connecting element across organizational layers. Acquire the technical, communication, and organizational skills to succeed in this new role.\n\n[Cloud Strategy](https://www.cloudstrategybook.com)\n\n Make your cloud migration a success by translating high-level goals into conscious decisions with well-understood trade-offs.\n\n[Platform Strategy](https://www.platformstrategybook.info)\n\n Platforms can boost innovation through harmonization, but they aren't easy to build. Learn from over a decade of designing and rolling out IT platforms.", "znaku_textu": 7105, "slov": 639, "odkazu": 108, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 15:34:12", "sha256": "a4f1bda42d7ab7edf2340d2b661d36fc39b9bb0b52fb0bb3dae2b844ae10e3c6", "hloubka": 4, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://creativecommons.org/licenses/by/4.0/", "https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "https://www.architectelevator.com/book", "https://www.cloudstrategybook.com/", "https://www.platformstrategybook.info/"]} {"url": "http://www.enterpriseintegrationpatterns.com/MessageRoutingIntro.html", "titulek": "Introduction to Message Routing - Enterprise Integration Patterns", "h1": "", "popis": "In Chapter 2, we discussed how a Message Router can be used to decouple a message source from the ultimate destination of the message. This chapter elaborates on specific types of Message Routers to explain how to provide routing and brokering ability to an integration solution. Most patterns are refinements of the Message Router pattern while others combine multiple Message Routers to solve more complex problems. Therefore, we can categorize the Message Routing patterns into the following groups:", "klicova_slova": "Introduction to Message Routing,integration, messaging, events, patterns, event-driven, coupling, eai, middleware, application integration, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns", "og:title": "Introduction to Message Routing - Enterprise Integration Patterns", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/MessageRoutingIntro.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/eip1_patterns_wide.png"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Simple Routers"}, {"uroven": 2, "text": "Composed Routers"}, {"uroven": 2, "text": "Architectural Patterns"}, {"uroven": 2, "text": "The Right Router for the Right Purpose"}, {"uroven": 2, "text": "Integration Pattern Language"}], "markdown": "| | Introduction to Message Routing[Messaging Patterns](index.html) » [Message Routing](MessageRoutingIntro.html) | [Contents](toc.html)[⇐ Prev](ObserverJmsExample.html)[Next ⇒](ContentBasedRouter.html) |\n| --- | --- | --- |\n\nIn Chapter 2, we discussed how a [*Message Router*](MessageRouter.html) can be used to decouple a message source from the ultimate destination of the message. This chapter elaborates on specific types of [*Message Router*](MessageRouter.html)s to explain how to provide routing and brokering ability to an integration solution. Most patterns are refinements of the [*Message Router*](MessageRouter.html) pattern while others combine multiple [*Message Router*](MessageRouter.html)s to solve more complex problems. Therefore, we can categorize the Message Routing patterns into the following groups:\n\n- **Simple Routers** are variants of the [*Message Router*](MessageRouter.html) and route messages from one inbound channel to one or more outbound channels.\n- **Composed Routers** combine multiple simple routers to create more complex message flows.\n- **Architectural Patterns** describe architectural styles based on [*Message Router*](MessageRouter.html) s.\n\n## Simple Routers\n\nThe [*Content-Based Router*](ContentBasedRouter.html) inspects the content of a message and routes it to another channel based on the content of the message. Using such a router enables the message producer to send messages to a single channel and leave it to the [*Content-Based Router*](ContentBasedRouter.html) to inspect messages and route them to the proper destination. This alleviates the sending application from this task and avoids coupling the message producer to specific destination channels.\n\nA [*Message Filter*](Filter.html) is a special form of a [*Content-Based Router*](ContentBasedRouter.html). It examines the message content and passes the message to another channel if the message content matches certain criteria. Otherwise, it discards the message. [*Message Filter*](Filter.html)s can be used with [*Publish-Subscribe Channel*](PublishSubscribeChannel.html) to route a message to all possible recipients and allow the recipients to filter out irrelevant messages. A [*Message Filter*](Filter.html) performs a function that is very similar to that of a [*Selective Consumer*](MessageSelector.html) with the key difference being that a [*Message Filter*](Filter.html) is part of the messaging system, routing qualifying messages to another channel, whereas a [*Selective Consumer*](MessageSelector.html) is built into a [*Message Endpoint*](MessageEndpoint.html).\n\nA [*Content-Based Router*](ContentBasedRouter.html) and a [*Message Filter*](Filter.html) can actually solve a similar problem. A [*Content-Based Router*](ContentBasedRouter.html) routes a message to the correct destination based on the criteria encoded in the [*Content-Based Router*](ContentBasedRouter.html). Equivalent behavior can be achieved by using a [*Publish-Subscribe Channel*](PublishSubscribeChannel.html) and an array of [*Message Filter*](Filter.html)s, one for each potential recipient. Each [*Message Filter*](Filter.html) eliminates the messages that to not match the criteria for the specific destination. The [*Content-Based Router*](ContentBasedRouter.html) routes predictively to a single channel and therefore has total control, but is also dependent on the list of all possible destination channels. The [*Message Filter*](Filter.html) array filters reactively, spreading the routing logic across many [*Message Filter*](Filter.html)s but avoiding a single component that is dependent on all possible destinations. The trade-off between these solutions is described in more detail in the [*Message Filter*](Filter.html) pattern.\n\nA basic [*Message Router*](MessageRouter.html) uses fixed rules to determine the destination of an incoming message. Where we need more flexibility, a [*Dynamic Router*](DynamicRouter.html) can be very useful. This router allows the routing logic to be modified by sending control messages to a designated control port. The dynamic nature of the [*Dynamic Router*](DynamicRouter.html) can be combined with most forms of the [*Message Router*](MessageRouter.html).\n\nChapter 3 introduced the concept of a [*Point-to-Point Channel*](PointToPointChannel.html) and a [*Publish-Subscribe Channel*](PublishSubscribeChannel.html). Sometimes, you need to send a message to more than one recipient, but want to maintain control over the recipients. The [*Recipient List*](RecipientList.html) allows you do just that. In essence, a [*Recipient List*](RecipientList.html) is a [*Content-Based Router*](ContentBasedRouter.html) that can route a single message to more than one destination channel.\n\nSome messages contain lists of individual items. How do you process these items individually? Use a [*Splitter*](Sequencer.html) to split the large message into individual messages. Each message can then be routed further and processed individually.\n\nHowever, you may need to recombine the messages that the [*Splitter*](Sequencer.html) created back into a single message. This is one of the functions an [*Aggregator*](Aggregator.html) performs. An [*Aggregator*](Aggregator.html) can receive a stream of messages, identify related messages and combine them into a single message. Unlike the other routing patterns, the [*Aggregator*](Aggregator.html) is a stateful [*Message Router*](MessageRouter.html) because it has to store messages internally until specific conditions are fulfilled. This mean that an [*Aggregator*](Aggregator.html) can consume a number of messages before it publishes a message.\n\nBecause we use messaging to connect applications or components running on multiple computers, multiple messages can be processed in parallel. For example, more than one process may consume messages off a single channel. One of these processes may execute faster than another, causing messages to be processed out of order. However, some components depend on the correct sequence of individual messages, for example ledger-based systems. The [*Resequencer*](Resequencer.html) puts out-of-sequence messages back into sequence. The [*Resequencer*](Resequencer.html) is also a stateful [*Message Router*](MessageRouter.html) because it may need to store a number of messages internally until the message arrives that completes the sequence. Unlike the [*Aggregator*](Aggregator.html), though, the [*Resequencer*](Resequencer.html) ultimately publishes the same number of messages it consumed.\n\nThe following table summarizes the properties of the [*Message Router*](MessageRouter.html) variants (we did not include the [*Dynamic Router*](DynamicRouter.html) as a separate alternative because any router can be implemented as a dynamic variant):\n\n| **Pattern** | **Number of Msgs Consumed** | **Number of Msgs Published** | **Stateful?** | **Comment** |\n| --- | --- | --- | --- | --- |\n| [*Content-Based Router*](ContentBasedRouter.html) | 1 | 1 | No (mostly) | |\n| [*Message Filter*](Filter.html) | 1 | 0 or 1 | No (mostly) | |\n| [*Recipient List*](RecipientList.html) | 1 | multiple (incl. 0) | No | |\n| [*Splitter*](Sequencer.html) | 1 | multiple | No | |\n| [*Aggregator*](Aggregator.html) | multiple | 1 | Yes | |\n| [*Resequencer*](Resequencer.html) | multiple | multiple | Yes | Publishes same number it consumes. |\n\n## Composed Routers\n\nA key advantage of the [*Pipes and Filters*](PipesAndFilters.html) architecture is the fact that we can compose multiple filters into a larger solution. [*Composed Message Processor*](DistributionAggregate.html) or an [*Scatter-Gather*](BroadcastAggregate.html) combine multiple [*Message Router*](MessageRouter.html) variants to create more comprehensive solutions. Both patterns allow us to retrieve information from multiple sources and recombine it into a single message. While the [*Composed Message Processor*](DistributionAggregate.html) maintains control over the possible sources the [*Scatter-Gather*](BroadcastAggregate.html) uses a [*Publish-Subscribe Channel*](PublishSubscribeChannel.html) so that any interested component can participate in the process.\n\nBoth the [*Composed Message Processor*](DistributionAggregate.html) and the [*Scatter-Gather*](BroadcastAggregate.html) route a single message to a number of participants concurrently and reassemble the replies into a single message. We can say that these patterns manage the *parallel routing* of a message. Two more patterns manage the *sequential routing* of a message, i.e. routing a message through a sequence of individual steps. If we want to control the path of a message from a central point we can use a [*Routing Slip*](RoutingTable.html) to specify the path the message should take. This pattern works just like the routing slip attached to office documents to pass them sequentially by a number of recipients. Alternatively, we can use a [*Process Manager*](ProcessManager.html) which gives us more flexibility but requires the message to return to a central component after each function.\n\n## Architectural Patterns\n\n[*Message Router*](MessageRouter.html)s enable us to architect an integration solution using a central [*Message Broker*](MessageBroker.html). As opposed to the different message routing design patterns, this pattern describes a *hub-and-spoke* architectural style.\n\n## The Right Router for the Right Purpose\n\nThis chapter contains 10 patterns. How can we make it easy to find the right pattern for the right purpose? The following decision chart helps you find the right pattern for the right purpose by matter of simple yes/no decisions. For example, if you are looking for a simple routing pattern that consumes one message at a time but publishes multiple messages in sequential order, you should use a [*Splitter*](Sequencer.html). The diagram also helps illustrate how closely the individual patterns are related. For example, a [*Routing Slip*](RoutingTable.html) and a [*Process Manager*](ProcessManager.html) solve similar problems while a [*Message Filter*](Filter.html) does something rather different.\n\n## Integration Pattern Language\n\n[Message Construct.](MessageConstructionIntro.html)\n\n[Message](Message.html)\n\n[Command Message](CommandMessage.html)\n\n[Document Message](DocumentMessage.html)\n\n[Event Message](EventMessage.html)\n\n[Request-Reply](RequestReply.html)\n\n[Return Address](ReturnAddress.html)\n\n[Correlation Identifier](CorrelationIdentifier.html)\n\n[Message Sequence](MessageSequence.html)\n\n[Message Expiration](MessageExpiration.html)\n\n[Format Indicator](FormatIndicator.html)\n\n[Message Routing](MessageRoutingIntro.html)\n\n[Pipes-and-Filters](PipesAndFilters.html)\n\n[Message Router](MessageRouter.html)\n\n[Content-based Router](ContentBasedRouter.html)\n\n[Message Filter](Filter.html)\n\n[Dynamic Router](DynamicRouter.html)\n\n[Recipient List](RecipientList.html)\n\n[Splitter](Sequencer.html)\n\n[Aggregator](Aggregator.html)\n\n[Resequencer](Resequencer.html)\n\n[Composed Msg. Processor](DistributionAggregate.html)\n\n[Scatter-Gather](BroadcastAggregate.html)\n\n[Routing Slip](RoutingTable.html)\n\n[Process Manager](ProcessManager.html)\n\n[Message Broker](MessageBroker.html)\n\n[Message\nTransformation](MessageTransformationIntro.html)\n\n[Message Translator](MessageTranslator.html)\n\n[Envelope Wrapper](EnvelopeWrapper.html)\n\n[Content Enricher](DataEnricher.html)\n\n[Content Filter](ContentFilter.html)\n\n[Claim Check](StoreInLibrary.html)\n\n[Normalizer](Normalizer.html)\n\n[Canonical Data Model](CanonicalDataModel.html)\n\n[Messaging Endpoints](MessagingEndpointsIntro.html)\n\n[Message Endpoint](MessageEndpoint.html)\n\n[Messaging Gateway](MessagingGateway.html)\n\n[Messaging Mapper](MessagingMapper.html)\n\n[Transactional Client](TransactionalClient.html)\n\n[Polling Consumer](PollingConsumer.html)\n\n[Event-driven Consumer](EventDrivenConsumer.html)\n\n[Competing Consumers](CompetingConsumers.html)\n\n[Message Dispatcher](MessageDispatcher.html)\n\n[Selective Consumer](MessageSelector.html)\n\n[Durable Subscriber](DurableSubscription.html)\n\n[Idempotent Receiver](IdempotentReceiver.html)\n\n[Service Activator](MessagingAdapter.html)\n\n[Messaging Channels](MessagingChannelsIntro.html)\n\n[Message Channel](MessageChannel.html)\n\n[Point-to-Point Channel](PointToPointChannel.html)\n\n[Publish-Subscr. Channel](PublishSubscribeChannel.html)\n\n[Datatype Channel](DatatypeChannel.html)\n\n[Invalid Message Channel](InvalidMessageChannel.html)\n\n[Dead Letter Channel](DeadLetterChannel.html)\n\n[Guaranteed Delivery](GuaranteedMessaging.html)\n\n[Channel Adapter](ChannelAdapter.html)\n\n[Messaging Bridge](MessagingBridge.html)\n\n[Message Bus](MessageBus.html)\n\n[Systems Mgmt.](SystemManagementIntro.html)\n\n[Control Bus](ControlBus.html)\n\n[Detour](Detour.html)\n\n[Wire Tap](WireTap.html)\n\n[Message History](MessageHistory.html)\n\n[Message Store](MessageStore.html)\n\n[Smart Proxy](SmartProxy.html)\n\n[Test Message](TestMessage.html)\n\n[Channel Purger](ChannelPurger.html)", "znaku_textu": 12657, "slov": 1559, "odkazu": 107, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 15:34:10", "sha256": "17ec81524f67e57023db779842ba8018132255c63006c9b3ea7301a90cf5dd6d", "hloubka": 4, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "https://www.architectelevator.com/book", "https://www.cloudstrategybook.com/", "https://www.platformstrategybook.info/"]} {"url": "http://www.enterpriseintegrationpatterns.com/MessageSelector.html", "titulek": "Selective Consumer - Enterprise Integration Patterns", "h1": "", "popis": "How can a message consumer select which messages it wishes to receive?", "klicova_slova": "Selective Consumer,integration, messaging, events, patterns, event-driven, coupling, eai, middleware, application integration, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns", "og:title": "Selective Consumer - Enterprise Integration Patterns", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/MessageSelector.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/MessageSelectorSolution.gif"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Integration Pattern Language"}], "markdown": "| | Selective Consumer[Messaging Patterns](index.html) » [Messaging Endpoints](MessagingEndpointsIntro.html) | [Contents](toc.html)[⇐ Prev](MessageDispatcher.html)[Next ⇒](DurableSubscription.html) |\n| --- | --- | --- |\n\nAn application is using [*Messaging*](Messaging.html). It consumes [*Message*](Message.html)s from a [*Message Channel*](MessageChannel.html), but it does not necessarily want to consume all of the messages on that channel, just some of them.\n\nHow can a message consumer select which messages it wishes to receive?\n\nMake the consumer a *Selective Consumer*, one that filteres the messages delivered by its channel so that it only receives the ones that match its criteria.\n\nThere are three parts to this filtering process:\n\n1. **Specifying Producer** — Specifies the message’s selection value before sending it.\n2. **Selection Value** — One or more values specified in the message that allow a consumer to decide whether to select the message.\n3. **Selective Consumer** — Only receives messages that meet its selection criteria.\n\nWhen multiple *Selective Consumer*s are used with a [*Point-to-Point Channel*](PointToPointChannel.html), they effectively become [*Competing Consumers*](CompetingConsumers.html) that are also selective. If two consumer’s criteria overlap, and a message’s selection value meets both of their criteria, either consumer can consume the message. Consumers should be designed to ensure that at least one of them is eligable to consume every valid selection value. Otherwise, a message with an unmatched selection value will never be consumed and will clutter the channel forever (or at least until [*Message Expiration*](MessageExpiration.html) occurrs).\n\nWhen multiple *Selective Consumer*s are used with a [*Publish-Subscribe Channel*](PublishSubscribeChannel.html), each message will be delivered to each subscriber, but a subscriber will simply ignore its copy of a message that does not fit its criteria. Once a consumer decides to ignore a message, the messaging system can discard the message since it has been successfully delivered and will never be consumed. A messaging system can optimize this process by not even delivering a message it knows the consumer will ignore, thereby decreasing the number of copies of a message that must be produced and transmitted. This behavior of discarding ignored messages is independent of whatever [*Guaranteed Delivery*](GuaranteedMessaging.html), [*Durable Subscriber*](DurableSubscription.html), and/or [*Message Expiration*](MessageExpiration.html) settings are used.\n\n*Selective Consumer*s make a single channel act like multiple [*Datatype Channel*](DatatypeChannel.html)s. If different message types have distinct selection values, each consumer that is specialized for a particular type will only receive messages of that type. This approach facilitates sending many message types using a small number of channels, which can be beneficial in an enterprise that requires more channels than their messaging system can support.\n\n*Competing, Selective Consumers*\n\n...\nRead the entire pattern in the book [Enterprise Integration Patterns](/books1.html)\n\n**Related patterns:**\n\n[*Competing Consumers*](CompetingConsumers.html), [*Content-Based Router*](ContentBasedRouter.html), [*Correlation Identifier*](CorrelationIdentifier.html), [*Datatype Channel*](DatatypeChannel.html), [*Durable Subscriber*](DurableSubscription.html), [*Event-Driven Consumer*](EventDrivenConsumer.html), [*Message Filter*](Filter.html), [*Guaranteed Delivery*](GuaranteedMessaging.html), [*Invalid Message Channel*](InvalidMessageChannel.html), [*Message*](Message.html), [*Message Channel*](MessageChannel.html), [*Message Dispatcher*](MessageDispatcher.html), [*Message Expiration*](MessageExpiration.html), [*Messaging*](Messaging.html), [*Point-to-Point Channel*](PointToPointChannel.html), [*Polling Consumer*](PollingConsumer.html), [*Publish-Subscribe Channel*](PublishSubscribeChannel.html), [*Request-Reply*](RequestReply.html), [*Transactional Client*](TransactionalClient.html)\n\n---\n\n## Integration Pattern Language\n\n[Message Construct.](MessageConstructionIntro.html)\n\n[Message](Message.html)\n\n[Command Message](CommandMessage.html)\n\n[Document Message](DocumentMessage.html)\n\n[Event Message](EventMessage.html)\n\n[Request-Reply](RequestReply.html)\n\n[Return Address](ReturnAddress.html)\n\n[Correlation Identifier](CorrelationIdentifier.html)\n\n[Message Sequence](MessageSequence.html)\n\n[Message Expiration](MessageExpiration.html)\n\n[Format Indicator](FormatIndicator.html)\n\n[Message Routing](MessageRoutingIntro.html)\n\n[Pipes-and-Filters](PipesAndFilters.html)\n\n[Message Router](MessageRouter.html)\n\n[Content-based Router](ContentBasedRouter.html)\n\n[Message Filter](Filter.html)\n\n[Dynamic Router](DynamicRouter.html)\n\n[Recipient List](RecipientList.html)\n\n[Splitter](Sequencer.html)\n\n[Aggregator](Aggregator.html)\n\n[Resequencer](Resequencer.html)\n\n[Composed Msg. Processor](DistributionAggregate.html)\n\n[Scatter-Gather](BroadcastAggregate.html)\n\n[Routing Slip](RoutingTable.html)\n\n[Process Manager](ProcessManager.html)\n\n[Message Broker](MessageBroker.html)\n\n[Message\nTransformation](MessageTransformationIntro.html)\n\n[Message Translator](MessageTranslator.html)\n\n[Envelope Wrapper](EnvelopeWrapper.html)\n\n[Content Enricher](DataEnricher.html)\n\n[Content Filter](ContentFilter.html)\n\n[Claim Check](StoreInLibrary.html)\n\n[Normalizer](Normalizer.html)\n\n[Canonical Data Model](CanonicalDataModel.html)\n\n[Messaging Endpoints](MessagingEndpointsIntro.html)\n\n[Message Endpoint](MessageEndpoint.html)\n\n[Messaging Gateway](MessagingGateway.html)\n\n[Messaging Mapper](MessagingMapper.html)\n\n[Transactional Client](TransactionalClient.html)\n\n[Polling Consumer](PollingConsumer.html)\n\n[Event-driven Consumer](EventDrivenConsumer.html)\n\n[Competing Consumers](CompetingConsumers.html)\n\n[Message Dispatcher](MessageDispatcher.html)\n\n[Selective Consumer](MessageSelector.html)\n\n[Durable Subscriber](DurableSubscription.html)\n\n[Idempotent Receiver](IdempotentReceiver.html)\n\n[Service Activator](MessagingAdapter.html)\n\n[Messaging Channels](MessagingChannelsIntro.html)\n\n[Message Channel](MessageChannel.html)\n\n[Point-to-Point Channel](PointToPointChannel.html)\n\n[Publish-Subscr. Channel](PublishSubscribeChannel.html)\n\n[Datatype Channel](DatatypeChannel.html)\n\n[Invalid Message Channel](InvalidMessageChannel.html)\n\n[Dead Letter Channel](DeadLetterChannel.html)\n\n[Guaranteed Delivery](GuaranteedMessaging.html)\n\n[Channel Adapter](ChannelAdapter.html)\n\n[Messaging Bridge](MessagingBridge.html)\n\n[Message Bus](MessageBus.html)\n\n[Systems Mgmt.](SystemManagementIntro.html)\n\n[Control Bus](ControlBus.html)\n\n[Detour](Detour.html)\n\n[Wire Tap](WireTap.html)\n\n[Message History](MessageHistory.html)\n\n[Message Store](MessageStore.html)\n\n[Smart Proxy](SmartProxy.html)\n\n[Test Message](TestMessage.html)\n\n[Channel Purger](ChannelPurger.html)", "znaku_textu": 6768, "slov": 664, "odkazu": 108, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 15:34:42", "sha256": "200eeab56af2adb679a5a81c4edc0e97a1e0a1f24a65902cc2a8d6f2c90d17d1", "hloubka": 4, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://creativecommons.org/licenses/by/4.0/", "https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "https://www.architectelevator.com/book", "https://www.cloudstrategybook.com/", "https://www.platformstrategybook.info/"]} {"url": "http://www.enterpriseintegrationpatterns.com/MessageSequence.html", "titulek": "Message Sequence - Enterprise Integration Patterns", "h1": "", "popis": "How can messaging transmit an arbitrarily large amount of data?", "klicova_slova": "Message Sequence,integration, messaging, events, patterns, event-driven, coupling, eai, middleware, application integration, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns", "og:title": "Message Sequence - Enterprise Integration Patterns", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/MessageSequence.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/MessageSequenceSize.gif"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Integration Pattern Language"}], "markdown": "Messaging Patterns\n\n[Messaging Patterns](index.html)\n\n- [Integration Styles](IntegrationStylesIntro.html)\n- [Messaging Systems](MessagingComponentsIntro.html)\n- [Messaging Channels](MessagingChannelsIntro.html)\n- [Message Construction](MessageConstructionIntro.html)\n- [Interlude: Simple Messaging](SimpleMessagingIntro.html)\n- [Message Routing](MessageRoutingIntro.html)\n- [Message Transformation](MessageTransformationIntro.html)\n- [Interlude: Composed Messaging](ComposedMessagingExample.html)\n- [Messaging Endpoints](MessagingEndpointsIntro.html)\n- [System Management](SystemManagementIntro.html)\n- Interlude: Systems Management Example\n- Integration Patterns in Practice\n- Concluding Remarks\n- Appendices\n\n| | Message Sequence[Messaging Patterns](index.html) » [Message Construction](MessageConstructionIntro.html) | [Contents](toc.html)[⇐ Prev](CorrelationIdentifier.html)[Next ⇒](MessageExpiration.html) |\n| --- | --- | --- |\n\nMy application needs to send a huge amount of data to another process, more than may fit in a single message. Or my application has made a request whose reply contains too much data for a single message.\n\nHow can messaging transmit an arbitrarily large amount of data?\n\nWhenever a large set of data may need to be broken into message-size chunks, send the data as a *Message Sequence* and mark each message with sequence identification fields.\n\nThe three *Message Sequence* identification fields are:\n\n1. **Sequence identifier** – Distinguishes this cluster of messages from others.\n2. **Position identifier** – Uniquely identifies and sequentially orders each message in a sequence.\n3. **Size** or **End indicator** – Specifies the number of messages in the cluster, or marks the last message in the cluster (whose position identifier then specifies the size of the cluster).\n\n...\nRead the entire pattern in the book [Enterprise Integration Patterns](/books1.html)\n\n**Related patterns:**\n\n[*Competing Consumers*](CompetingConsumers.html), [*Correlation Identifier*](CorrelationIdentifier.html), [*Invalid Message Channel*](InvalidMessageChannel.html), [*Message Channel*](MessageChannel.html), [*Message Dispatcher*](MessageDispatcher.html), [*Request-Reply*](RequestReply.html), [*Claim Check*](StoreInLibrary.html), [*Transactional Client*](TransactionalClient.html)\n\n---\n\n## Integration Pattern Language\n\n[Message Construct.](MessageConstructionIntro.html)\n\n[Message](Message.html)\n\n[Command Message](CommandMessage.html)\n\n[Document Message](DocumentMessage.html)\n\n[Event Message](EventMessage.html)\n\n[Request-Reply](RequestReply.html)\n\n[Return Address](ReturnAddress.html)\n\n[Correlation Identifier](CorrelationIdentifier.html)\n\n[Message Sequence](MessageSequence.html)\n\n[Message Expiration](MessageExpiration.html)\n\n[Format Indicator](FormatIndicator.html)\n\n[Message Routing](MessageRoutingIntro.html)\n\n[Pipes-and-Filters](PipesAndFilters.html)\n\n[Message Router](MessageRouter.html)\n\n[Content-based Router](ContentBasedRouter.html)\n\n[Message Filter](Filter.html)\n\n[Dynamic Router](DynamicRouter.html)\n\n[Recipient List](RecipientList.html)\n\n[Splitter](Sequencer.html)\n\n[Aggregator](Aggregator.html)\n\n[Resequencer](Resequencer.html)\n\n[Composed Msg. Processor](DistributionAggregate.html)\n\n[Scatter-Gather](BroadcastAggregate.html)\n\n[Routing Slip](RoutingTable.html)\n\n[Process Manager](ProcessManager.html)\n\n[Message Broker](MessageBroker.html)\n\n[Message\nTransformation](MessageTransformationIntro.html)\n\n[Message Translator](MessageTranslator.html)\n\n[Envelope Wrapper](EnvelopeWrapper.html)\n\n[Content Enricher](DataEnricher.html)\n\n[Content Filter](ContentFilter.html)\n\n[Claim Check](StoreInLibrary.html)\n\n[Normalizer](Normalizer.html)\n\n[Canonical Data Model](CanonicalDataModel.html)\n\n[Messaging Endpoints](MessagingEndpointsIntro.html)\n\n[Message Endpoint](MessageEndpoint.html)\n\n[Messaging Gateway](MessagingGateway.html)\n\n[Messaging Mapper](MessagingMapper.html)\n\n[Transactional Client](TransactionalClient.html)\n\n[Polling Consumer](PollingConsumer.html)\n\n[Event-driven Consumer](EventDrivenConsumer.html)\n\n[Competing Consumers](CompetingConsumers.html)\n\n[Message Dispatcher](MessageDispatcher.html)\n\n[Selective Consumer](MessageSelector.html)\n\n[Durable Subscriber](DurableSubscription.html)\n\n[Idempotent Receiver](IdempotentReceiver.html)\n\n[Service Activator](MessagingAdapter.html)\n\n[Messaging Channels](MessagingChannelsIntro.html)\n\n[Message Channel](MessageChannel.html)\n\n[Point-to-Point Channel](PointToPointChannel.html)\n\n[Publish-Subscr. Channel](PublishSubscribeChannel.html)\n\n[Datatype Channel](DatatypeChannel.html)\n\n[Invalid Message Channel](InvalidMessageChannel.html)\n\n[Dead Letter Channel](DeadLetterChannel.html)\n\n[Guaranteed Delivery](GuaranteedMessaging.html)\n\n[Channel Adapter](ChannelAdapter.html)\n\n[Messaging Bridge](MessagingBridge.html)\n\n[Message Bus](MessageBus.html)\n\n[Systems Mgmt.](SystemManagementIntro.html)\n\n[Control Bus](ControlBus.html)\n\n[Detour](Detour.html)\n\n[Wire Tap](WireTap.html)\n\n[Message History](MessageHistory.html)\n\n[Message Store](MessageStore.html)\n\n[Smart Proxy](SmartProxy.html)\n\n[Test Message](TestMessage.html)\n\n[Channel Purger](ChannelPurger.html)\n\n- » [Read the latest in My Blog](/ramblings)\n- » [Get more insights from My Articles](/articles.html)\n- » [See me live in my Upcoming Talks](/talks)\n\nYou can reuse the following elements under the [Creative Commons Attribution](http://creativecommons.org/licenses/by/4.0/) license: pattern icon, pattern name, problem and solution statements (in bold), and the sketch. Other portions are protected by copyright.\n\n[Enterprise Integration Patterns](https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20)\nThe de-facto language for designing asynchronous, distributed systems. Over 100,000 copies sold.\n\n[The Software Architect Elevator](https://www.architectelevator.com/book)\n\n Rethink the role of architects as a connecting element across organizational layers. Acquire the technical, communication, and organizational skills to succeed in this new role.\n\n[Cloud Strategy](https://www.cloudstrategybook.com)\n\n Make your cloud migration a success by translating high-level goals into conscious decisions with well-understood trade-offs.\n\n[Platform Strategy](https://www.platformstrategybook.info)\n\n Platforms can boost innovation through harmonization, but they aren't easy to build. Learn from over a decade of designing and rolling out IT platforms.", "znaku_textu": 6240, "slov": 521, "odkazu": 108, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 15:34:07", "sha256": "0b96b30456ccbc3f7528528047151d34c4625e6c90e9f00e18eeb2997203db24", "hloubka": 4, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://creativecommons.org/licenses/by/4.0/", "https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "https://www.architectelevator.com/book", "https://www.cloudstrategybook.com/", "https://www.platformstrategybook.info/"]} {"url": "http://www.enterpriseintegrationpatterns.com/MessageStore.html", "titulek": "Message Store - Enterprise Integration Patterns", "h1": "", "popis": "How can we report against message information without disturbing the loosely coupled and transient nature of a messaging system?", "klicova_slova": "Message Store,integration, messaging, events, patterns, event-driven, coupling, eai, middleware, application integration, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns", "og:title": "Message Store - Enterprise Integration Patterns", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/MessageStore.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/MessageStore.gif"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Integration Pattern Language"}], "markdown": "Messaging Patterns\n\n[Messaging Patterns](index.html)\n\n- [Integration Styles](IntegrationStylesIntro.html)\n- [Messaging Systems](MessagingComponentsIntro.html)\n- [Messaging Channels](MessagingChannelsIntro.html)\n- [Message Construction](MessageConstructionIntro.html)\n- [Interlude: Simple Messaging](SimpleMessagingIntro.html)\n- [Message Routing](MessageRoutingIntro.html)\n- [Message Transformation](MessageTransformationIntro.html)\n- [Interlude: Composed Messaging](ComposedMessagingExample.html)\n- [Messaging Endpoints](MessagingEndpointsIntro.html)\n- [System Management](SystemManagementIntro.html)\n- Interlude: Systems Management Example\n- Integration Patterns in Practice\n- Concluding Remarks\n- Appendices\n\n| | Message Store[Messaging Patterns](index.html) » [System Management](SystemManagementIntro.html) | [Contents](toc.html)[⇐ Prev](MessageHistory.html)[Next ⇒](SmartProxy.html) |\n| --- | --- | --- |\n\nAs the [*Message History*](MessageHistory.html) describes, the architectural principle of loose coupling allows for flexibility in the solution, but can make it difficult to gain insight into the dynamic behavior of the integration solution.\n\nHow can we report against message information without disturbing the loosely coupled and transient nature of a messaging system?\n\nUse a *Message Store* to capture information about each message in a central location.\n\nWhen using a *Message Store*, we can take advantage of the asynchronous nature of a messaging infrastructure. When we send a message to a channel, we send a duplicate of the message to a special channel to be collected by the *Message Store*. This can be performed by the component itself or we can insert a [*Wire Tap*](WireTap.html) into the channel. We can consider the secondary channel that carries a copy of the message as part of the [*Control Bus*](ControlBus.html). Sending a second message in a 'fire-and-forget' mode will not slow down the flow of the main application messages. It does, however, increase network traffic. That's why we may not store the complete message, but just a few key fields that are required for later analysis, such as a message ID, or the channel on which the message was sent and a timestamp.\n\n...\nRead the entire pattern in the book [Enterprise Integration Patterns](/books1.html)\n\n**Related patterns:**\n\n[*Control Bus*](ControlBus.html), [*Message History*](MessageHistory.html), [*Wire Tap*](WireTap.html)\n\n---\n\n## Integration Pattern Language\n\n[Message Construct.](MessageConstructionIntro.html)\n\n[Message](Message.html)\n\n[Command Message](CommandMessage.html)\n\n[Document Message](DocumentMessage.html)\n\n[Event Message](EventMessage.html)\n\n[Request-Reply](RequestReply.html)\n\n[Return Address](ReturnAddress.html)\n\n[Correlation Identifier](CorrelationIdentifier.html)\n\n[Message Sequence](MessageSequence.html)\n\n[Message Expiration](MessageExpiration.html)\n\n[Format Indicator](FormatIndicator.html)\n\n[Message Routing](MessageRoutingIntro.html)\n\n[Pipes-and-Filters](PipesAndFilters.html)\n\n[Message Router](MessageRouter.html)\n\n[Content-based Router](ContentBasedRouter.html)\n\n[Message Filter](Filter.html)\n\n[Dynamic Router](DynamicRouter.html)\n\n[Recipient List](RecipientList.html)\n\n[Splitter](Sequencer.html)\n\n[Aggregator](Aggregator.html)\n\n[Resequencer](Resequencer.html)\n\n[Composed Msg. Processor](DistributionAggregate.html)\n\n[Scatter-Gather](BroadcastAggregate.html)\n\n[Routing Slip](RoutingTable.html)\n\n[Process Manager](ProcessManager.html)\n\n[Message Broker](MessageBroker.html)\n\n[Message\nTransformation](MessageTransformationIntro.html)\n\n[Message Translator](MessageTranslator.html)\n\n[Envelope Wrapper](EnvelopeWrapper.html)\n\n[Content Enricher](DataEnricher.html)\n\n[Content Filter](ContentFilter.html)\n\n[Claim Check](StoreInLibrary.html)\n\n[Normalizer](Normalizer.html)\n\n[Canonical Data Model](CanonicalDataModel.html)\n\n[Messaging Endpoints](MessagingEndpointsIntro.html)\n\n[Message Endpoint](MessageEndpoint.html)\n\n[Messaging Gateway](MessagingGateway.html)\n\n[Messaging Mapper](MessagingMapper.html)\n\n[Transactional Client](TransactionalClient.html)\n\n[Polling Consumer](PollingConsumer.html)\n\n[Event-driven Consumer](EventDrivenConsumer.html)\n\n[Competing Consumers](CompetingConsumers.html)\n\n[Message Dispatcher](MessageDispatcher.html)\n\n[Selective Consumer](MessageSelector.html)\n\n[Durable Subscriber](DurableSubscription.html)\n\n[Idempotent Receiver](IdempotentReceiver.html)\n\n[Service Activator](MessagingAdapter.html)\n\n[Messaging Channels](MessagingChannelsIntro.html)\n\n[Message Channel](MessageChannel.html)\n\n[Point-to-Point Channel](PointToPointChannel.html)\n\n[Publish-Subscr. Channel](PublishSubscribeChannel.html)\n\n[Datatype Channel](DatatypeChannel.html)\n\n[Invalid Message Channel](InvalidMessageChannel.html)\n\n[Dead Letter Channel](DeadLetterChannel.html)\n\n[Guaranteed Delivery](GuaranteedMessaging.html)\n\n[Channel Adapter](ChannelAdapter.html)\n\n[Messaging Bridge](MessagingBridge.html)\n\n[Message Bus](MessageBus.html)\n\n[Systems Mgmt.](SystemManagementIntro.html)\n\n[Control Bus](ControlBus.html)\n\n[Detour](Detour.html)\n\n[Wire Tap](WireTap.html)\n\n[Message History](MessageHistory.html)\n\n[Message Store](MessageStore.html)\n\n[Smart Proxy](SmartProxy.html)\n\n[Test Message](TestMessage.html)\n\n[Channel Purger](ChannelPurger.html)\n\n- » [Read the latest in My Blog](/ramblings)\n- » [Get more insights from My Articles](/articles.html)\n- » [See me live in my Upcoming Talks](/talks)\n\nYou can reuse the following elements under the [Creative Commons Attribution](http://creativecommons.org/licenses/by/4.0/) license: pattern icon, pattern name, problem and solution statements (in bold), and the sketch. Other portions are protected by copyright.\n\n[Enterprise Integration Patterns](https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20)\nThe de-facto language for designing asynchronous, distributed systems. Over 100,000 copies sold.\n\n[The Software Architect Elevator](https://www.architectelevator.com/book)\n\n Rethink the role of architects as a connecting element across organizational layers. Acquire the technical, communication, and organizational skills to succeed in this new role.\n\n[Cloud Strategy](https://www.cloudstrategybook.com)\n\n Make your cloud migration a success by translating high-level goals into conscious decisions with well-understood trade-offs.\n\n[Platform Strategy](https://www.platformstrategybook.info)\n\n Platforms can boost innovation through harmonization, but they aren't easy to build. Learn from over a decade of designing and rolling out IT platforms.", "znaku_textu": 6373, "slov": 577, "odkazu": 108, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 15:35:01", "sha256": "c9c9d42c8cb0d107905b903d5b25b4c71e7b77c6c6308ed73ece722086f6e15e", "hloubka": 4, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://creativecommons.org/licenses/by/4.0/", "https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "https://www.architectelevator.com/book", "https://www.cloudstrategybook.com/", "https://www.platformstrategybook.info/"]} {"url": "http://www.enterpriseintegrationpatterns.com/MessageTransformationIntro.html", "titulek": "Introduction to Message Transformation - Enterprise Integration Patterns", "h1": "", "popis": "As described in the Message Translator, applications that need to be integrated by a messaging system rarely agree on a common data format. For example, an accounting system is going to have a different notion of a Customer object than a customer relationship management system. On top of that, one system may persist data in a relational model, while another application uses flat files or XML documents. Integrating existing applications often times means that we do not have the liberty of modifying the applications to work more easily with other systems. Rather, the integration solution has to accommodate and resolve the differences between the varying systems. The Message Translator pattern offers a general solution to such differences in data formats. This chapter explores specific variants of the Message Translator.", "klicova_slova": "Introduction to Message Transformation,integration, messaging, events, patterns, event-driven, coupling, eai, middleware, application integration, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns", "og:title": "Introduction to Message Transformation - Enterprise Integration Patterns", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/MessageTransformationIntro.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/eip1_patterns_wide.png"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Integration Pattern Language"}], "markdown": "| | Introduction to Message Transformation[Messaging Patterns](index.html) » [Message Transformation](MessageTransformationIntro.html) | [Contents](toc.html)[⇐ Prev](MessageBroker.html)[Next ⇒](EnvelopeWrapper.html) |\n| --- | --- | --- |\n\nAs described in the [*Message Translator*](MessageTranslator.html), applications that need to be integrated by a messaging system rarely agree on a common data format. For example, an accounting system is going to have a different notion of a Customer object than a customer relationship management system. On top of that, one system may persist data in a relational model, while another application uses flat files or XML documents. Integrating existing applications often times means that we do not have the liberty of modifying the applications to work more easily with other systems. Rather, the integration solution has to accommodate and resolve the differences between the varying systems. The [*Message Translator*](MessageTranslator.html) pattern offers a general solution to such differences in data formats. This chapter explores specific variants of the [*Message Translator*](MessageTranslator.html).\n\nMost messaging systems place specific requirements on the format and contents of a message header. We wrap message payload data into an [*Envelope Wrapper*](EnvelopeWrapper.html) that is compliant with the requirements of the messaging infrastructure. Multiple [*Envelope Wrapper*](EnvelopeWrapper.html)s can be combined if a message is passed through across different messaging infrastructures.\n\nA [*Content Enricher*](DataEnricher.html) is needed if the target system requires data fields that the originating system cannot supply. It has the ability to look up missing information or compute it from the available data. The [*Content Filter*](ContentFilter.html) does the opposite -- it removes unwanted data from a message. The [*Claim Check*](StoreInLibrary.html) also removes data from a message but stores it for later retrieval. The [*Normalizer*](Normalizer.html) translates messages arriving in many different formats into a common format.\n\nMessage transformation is a deep topic in integration. [*Message Channel*](MessageChannel.html)s and [*Message Router*](MessageRouter.html)s can remove basic dependencies between applications by eliminating the need for one application to be aware of the other's location. One application can send a message to a [*Message Channel*](MessageChannel.html) and worry about what application will consume it. However, message formats impose another set of dependency. If one application has to format messages in another application's data format, the decoupling in form of the [*Message Channel*](MessageChannel.html) is somewhat of an illusion. Any change to the receiving application or the switch from one receiving application to another still requires a change to the sending application. [*Message Translator*](MessageTranslator.html)s help remove this dependency. Due to the importance of message formats and the transformation between them, we can view any integration solution as two parallel systems. One deals with actual message data, the other one with metadata, the data that describes message data. Many of the patterns used in creation of the message flow can also be used to manage metadata. For example, a [*Channel Adapter*](ChannelAdapter.html) can not only move messages in an out of a system, but it can also extract metadata from external applications and load it into a central metadata repository. Using this repository the integration developers can define transformations between the application metadata and the [*Canonical Data Model*](CanonicalDataModel.html).\n\n*Metadata Integration*\n\nFor example, the picture above depicts the integration between two applications that need to exchange customer information. Each system has a slightly different definition of customer data. Application A stores first and last name in two separate fields whereas Application B stores it in one field. Likewise, Application A stores the customer's ZIP code and not the state while Application B stores only the state code. Messages flowing from Application A to Application B have to undergo a transformation so that Application B can receive data in the required format. Creating the transformation is much simplified if the [*Channel Adapter*](ChannelAdapter.html)s can also extract metadata, e.g. data describing the message format. This metadata can then be loaded into a repository, greatly simplifying the configuration and validation of the [*Message Translator*](MessageTranslator.html). The metadata can be stored in a variety of formats. A common format used for XML messages are XSD's -- XML Schema Definitions. Other EAI tools implement proprietary metadata formats, but allow administrators to import and export of metadata into different formats.\n\nMany of the principles incorporated in these patterns are applicable outside of messaging integration. For example, [*File Transfer*](FileTransferIntegration.html) has to perform transformation functions between systems. Likewise, [*Remote Procedure Invocation*](EncapsulatedSynchronousIntegration.html) has to make requests in the data format specified by the service that is to be called even if the application's internal format is different.\n\nThis chapter describes variations of data transformation tasks. It does not go into the details of structural transformations between entities (e.g., how to you transform between two data models if one model supports many-to-many relationships between customer and address but the other model includes address fields on the customer record). One of the oldest and still most relevant books on the topic of data representation and relationships is [[Kent](http://www.amazon.com/exec/obidos/ASIN/1585009709/enterpriseint-20)].\n\n## Integration Pattern Language\n\n[Message Construct.](MessageConstructionIntro.html)\n\n[Message](Message.html)\n\n[Command Message](CommandMessage.html)\n\n[Document Message](DocumentMessage.html)\n\n[Event Message](EventMessage.html)\n\n[Request-Reply](RequestReply.html)\n\n[Return Address](ReturnAddress.html)\n\n[Correlation Identifier](CorrelationIdentifier.html)\n\n[Message Sequence](MessageSequence.html)\n\n[Message Expiration](MessageExpiration.html)\n\n[Format Indicator](FormatIndicator.html)\n\n[Message Routing](MessageRoutingIntro.html)\n\n[Pipes-and-Filters](PipesAndFilters.html)\n\n[Message Router](MessageRouter.html)\n\n[Content-based Router](ContentBasedRouter.html)\n\n[Message Filter](Filter.html)\n\n[Dynamic Router](DynamicRouter.html)\n\n[Recipient List](RecipientList.html)\n\n[Splitter](Sequencer.html)\n\n[Aggregator](Aggregator.html)\n\n[Resequencer](Resequencer.html)\n\n[Composed Msg. Processor](DistributionAggregate.html)\n\n[Scatter-Gather](BroadcastAggregate.html)\n\n[Routing Slip](RoutingTable.html)\n\n[Process Manager](ProcessManager.html)\n\n[Message Broker](MessageBroker.html)\n\n[Message\nTransformation](MessageTransformationIntro.html)\n\n[Message Translator](MessageTranslator.html)\n\n[Envelope Wrapper](EnvelopeWrapper.html)\n\n[Content Enricher](DataEnricher.html)\n\n[Content Filter](ContentFilter.html)\n\n[Claim Check](StoreInLibrary.html)\n\n[Normalizer](Normalizer.html)\n\n[Canonical Data Model](CanonicalDataModel.html)\n\n[Messaging Endpoints](MessagingEndpointsIntro.html)\n\n[Message Endpoint](MessageEndpoint.html)\n\n[Messaging Gateway](MessagingGateway.html)\n\n[Messaging Mapper](MessagingMapper.html)\n\n[Transactional Client](TransactionalClient.html)\n\n[Polling Consumer](PollingConsumer.html)\n\n[Event-driven Consumer](EventDrivenConsumer.html)\n\n[Competing Consumers](CompetingConsumers.html)\n\n[Message Dispatcher](MessageDispatcher.html)\n\n[Selective Consumer](MessageSelector.html)\n\n[Durable Subscriber](DurableSubscription.html)\n\n[Idempotent Receiver](IdempotentReceiver.html)\n\n[Service Activator](MessagingAdapter.html)\n\n[Messaging Channels](MessagingChannelsIntro.html)\n\n[Message Channel](MessageChannel.html)\n\n[Point-to-Point Channel](PointToPointChannel.html)\n\n[Publish-Subscr. Channel](PublishSubscribeChannel.html)\n\n[Datatype Channel](DatatypeChannel.html)\n\n[Invalid Message Channel](InvalidMessageChannel.html)\n\n[Dead Letter Channel](DeadLetterChannel.html)\n\n[Guaranteed Delivery](GuaranteedMessaging.html)\n\n[Channel Adapter](ChannelAdapter.html)\n\n[Messaging Bridge](MessagingBridge.html)\n\n[Message Bus](MessageBus.html)\n\n[Systems Mgmt.](SystemManagementIntro.html)\n\n[Control Bus](ControlBus.html)\n\n[Detour](Detour.html)\n\n[Wire Tap](WireTap.html)\n\n[Message History](MessageHistory.html)\n\n[Message Store](MessageStore.html)\n\n[Smart Proxy](SmartProxy.html)\n\n[Test Message](TestMessage.html)\n\n[Channel Purger](ChannelPurger.html)", "znaku_textu": 8566, "slov": 965, "odkazu": 108, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 15:34:25", "sha256": "f1b3821d4514d6393531201e0f15c3d0a2c860aa9c42cff0a9fe980b796eca8c", "hloubka": 4, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://www.amazon.com/exec/obidos/ASIN/1585009709/enterpriseint-20", "https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "https://www.architectelevator.com/book", "https://www.cloudstrategybook.com/", "https://www.platformstrategybook.info/"]} {"url": "http://www.enterpriseintegrationpatterns.com/MessageTranslator.html", "titulek": "Message Translator - Enterprise Integration Patterns", "h1": "", "popis": "How can systems using different data formats communicate with each other using messaging?", "klicova_slova": "Message Translator,integration, messaging, events, patterns, event-driven, coupling, eai, middleware, application integration, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns", "og:title": "Message Translator - Enterprise Integration Patterns", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/MessageTranslator.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/MessageTranslator.gif"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Integration Pattern Language"}], "markdown": "| | Message Translator[Messaging Patterns](index.html) » [Messaging Systems](MessagingComponentsIntro.html) | [Contents](toc.html)[⇐ Prev](MessageRouter.html)[Next ⇒](MessageEndpoint.html) |\n| --- | --- | --- |\n\nThe previous patterns describe how to construct messages and how to route them to the correct destination. In many cases, enterprise integration solutions route messages between existing applications such as legacy systems, packaged applications, homegrown custom applications, or applications operated by external partners. Each of these applications is usually built around a proprietary data model. Each application may have a slightly different notion of the *Customer* entity , the attributes that define a *Customer* and which other entities a *Customer* is related to. For example, the accounting system may be more interested in the customer's tax payer ID numbers while the customer-relationship management (CRM) system stores phone numbers and addresses. The application’s underlying data model usually drives the design of the physical database schema, an interface file format or a programming interface (API) -- those entities that an integration solution has to interface with. As a result, the applications expect to receive messages that mimic the application's internal data format.\n\nIn addition to the proprietary data models and data formats incorporated in the various applications, integration solutions often times interact with standardized data formats that seek to be independent from specific applications. There are a number of consortia and standards bodies that define these protocols, such as RosettaNet, ebXML, OAGIS and many other, industry specific consortia. In many cases, the integration solution needs to be able to communicate with external parties using the ‘official’ data formats while the internal systems are based on proprietary formats.\n\nHow can systems using different data formats communicate with each other using messaging?\n\nUse a special filter, a *Message Translator*, between other filters or applications to translate one data format into another.\n\nThe *Message Translator* is the messaging equivalent of the *Adapter* pattern described in [[GoF](http://www.amazon.com/exec/obidos/ASIN/0201633612/enterpriseint-20)]. An adapter converts the interface of a component into a another interface so it can be used in a different context.\n\n...\nRead the entire pattern in the book [Enterprise Integration Patterns](/books1.html)\n\n**Related patterns:**\n\n[*Canonical Data Model*](CanonicalDataModel.html), [*Channel Adapter*](ChannelAdapter.html), [*Content Filter*](ContentFilter.html), [*Content Enricher*](DataEnricher.html), [*Message Channel*](MessageChannel.html), [*Message Endpoint*](MessageEndpoint.html), [*Message Router*](MessageRouter.html), [*Message Translator*](MessageTranslator.html), [*Messaging Bridge*](MessagingBridge.html), [*Normalizer*](Normalizer.html), [*Pipes and Filters*](PipesAndFilters.html), [*Shared Database*](SharedDataBaseIntegration.html), [*Claim Check*](StoreInLibrary.html)\n\n---\n\n## Integration Pattern Language\n\n[Message Construct.](MessageConstructionIntro.html)\n\n[Message](Message.html)\n\n[Command Message](CommandMessage.html)\n\n[Document Message](DocumentMessage.html)\n\n[Event Message](EventMessage.html)\n\n[Request-Reply](RequestReply.html)\n\n[Return Address](ReturnAddress.html)\n\n[Correlation Identifier](CorrelationIdentifier.html)\n\n[Message Sequence](MessageSequence.html)\n\n[Message Expiration](MessageExpiration.html)\n\n[Format Indicator](FormatIndicator.html)\n\n[Message Routing](MessageRoutingIntro.html)\n\n[Pipes-and-Filters](PipesAndFilters.html)\n\n[Message Router](MessageRouter.html)\n\n[Content-based Router](ContentBasedRouter.html)\n\n[Message Filter](Filter.html)\n\n[Dynamic Router](DynamicRouter.html)\n\n[Recipient List](RecipientList.html)\n\n[Splitter](Sequencer.html)\n\n[Aggregator](Aggregator.html)\n\n[Resequencer](Resequencer.html)\n\n[Composed Msg. Processor](DistributionAggregate.html)\n\n[Scatter-Gather](BroadcastAggregate.html)\n\n[Routing Slip](RoutingTable.html)\n\n[Process Manager](ProcessManager.html)\n\n[Message Broker](MessageBroker.html)\n\n[Message\nTransformation](MessageTransformationIntro.html)\n\n[Message Translator](MessageTranslator.html)\n\n[Envelope Wrapper](EnvelopeWrapper.html)\n\n[Content Enricher](DataEnricher.html)\n\n[Content Filter](ContentFilter.html)\n\n[Claim Check](StoreInLibrary.html)\n\n[Normalizer](Normalizer.html)\n\n[Canonical Data Model](CanonicalDataModel.html)\n\n[Messaging Endpoints](MessagingEndpointsIntro.html)\n\n[Message Endpoint](MessageEndpoint.html)\n\n[Messaging Gateway](MessagingGateway.html)\n\n[Messaging Mapper](MessagingMapper.html)\n\n[Transactional Client](TransactionalClient.html)\n\n[Polling Consumer](PollingConsumer.html)\n\n[Event-driven Consumer](EventDrivenConsumer.html)\n\n[Competing Consumers](CompetingConsumers.html)\n\n[Message Dispatcher](MessageDispatcher.html)\n\n[Selective Consumer](MessageSelector.html)\n\n[Durable Subscriber](DurableSubscription.html)\n\n[Idempotent Receiver](IdempotentReceiver.html)\n\n[Service Activator](MessagingAdapter.html)\n\n[Messaging Channels](MessagingChannelsIntro.html)\n\n[Message Channel](MessageChannel.html)\n\n[Point-to-Point Channel](PointToPointChannel.html)\n\n[Publish-Subscr. Channel](PublishSubscribeChannel.html)\n\n[Datatype Channel](DatatypeChannel.html)\n\n[Invalid Message Channel](InvalidMessageChannel.html)\n\n[Dead Letter Channel](DeadLetterChannel.html)\n\n[Guaranteed Delivery](GuaranteedMessaging.html)\n\n[Channel Adapter](ChannelAdapter.html)\n\n[Messaging Bridge](MessagingBridge.html)\n\n[Message Bus](MessageBus.html)\n\n[Systems Mgmt.](SystemManagementIntro.html)\n\n[Control Bus](ControlBus.html)\n\n[Detour](Detour.html)\n\n[Wire Tap](WireTap.html)\n\n[Message History](MessageHistory.html)\n\n[Message Store](MessageStore.html)\n\n[Smart Proxy](SmartProxy.html)\n\n[Test Message](TestMessage.html)\n\n[Channel Purger](ChannelPurger.html)", "znaku_textu": 5780, "slov": 530, "odkazu": 109, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 15:34:26", "sha256": "b009179437399ba4b8107ba944487e08c3788cc8b5afeba6ac3a81c5d7d0da0b", "hloubka": 4, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://www.amazon.com/exec/obidos/ASIN/0201633612/enterpriseint-20", "http://creativecommons.org/licenses/by/4.0/", "https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "https://www.architectelevator.com/book", "https://www.cloudstrategybook.com/", "https://www.platformstrategybook.info/"]} {"url": "http://www.enterpriseintegrationpatterns.com/Messaging.html", "titulek": "Messaging - Enterprise Integration Patterns", "h1": "", "popis": "How can I integrate multiple applications so that they work together and can exchange information?", "klicova_slova": "Messaging,integration, messaging, events, patterns, event-driven, coupling, eai, middleware, application integration, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns", "og:title": "Messaging - Enterprise Integration Patterns", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/Messaging.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/Messaging.gif"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Integration Pattern Language"}], "markdown": "| | Messaging[Messaging Patterns](index.html) » [Integration Styles](IntegrationStylesIntro.html) | [Contents](toc.html)[⇐ Prev](EncapsulatedSynchronousIntegration.html)[Next ⇒](MessagingComponentsIntro.html) |\n| --- | --- | --- |\n\nAn enterprise has multiple applications that are being built independently, with different languages and platforms. The enterprise needs to share data and processes in a responsive way.\n\nHow can I integrate multiple applications so that they work together and can exchange information?\n\nUse *Messaging* to transfer packets of data frequently, immediately, reliably, and asynchronously, using customizable formats.\n\nAsynchronous messaging is fundamentally a pragmatic reaction to the\nproblems of distributed systems. Sending a message does not require\nboth systems to be up and ready at the same time. Furthermore, thinking\nabout the communication in an asynchronous manner forces developers to\nrecognize that working with a remote application is slower, which encourages\ndesign of components with high cohesion (lots of work locally) and low adhesion\n(selective work remotely).\n\nMessaging systems also allow much of the decoupling you get when\nusing [*File Transfer*](FileTransferIntegration.html). Messages can be\ntransformed in transit without either the sender or receiver knowing\nabout the transformation. Indeed the decoupling allows integrators to\nbroadcast messages to multiple receivers, support choosing one of many\npotential receivers, and other topologies that allow integration to be\nseparated from the development of the applications. Since human issues\ntend to separate application development from application integration,\nthis approach works with human nature rather than against it.\n\n...\nRead the entire pattern in the book [Enterprise Integration Patterns](/books1.html)\n\n**Related patterns:**\n\n[*Remote Procedure Invocation*](EncapsulatedSynchronousIntegration.html), [*File Transfer*](FileTransferIntegration.html), [*Message*](Message.html), [*Message Channel*](MessageChannel.html), [*Message Endpoint*](MessageEndpoint.html), [*Message Router*](MessageRouter.html), [*Message Translator*](MessageTranslator.html), [*Shared Database*](SharedDataBaseIntegration.html)\n\n**Further reading:**\n\n- [What Does It Mean to Use Messaging?](/ramblings/74_messaging.html)\n- [Integration Styles](/ramblings/08_integrationstyles.html)\n\n---\n\n## Integration Pattern Language\n\n[Message Construct.](MessageConstructionIntro.html)\n\n[Message](Message.html)\n\n[Command Message](CommandMessage.html)\n\n[Document Message](DocumentMessage.html)\n\n[Event Message](EventMessage.html)\n\n[Request-Reply](RequestReply.html)\n\n[Return Address](ReturnAddress.html)\n\n[Correlation Identifier](CorrelationIdentifier.html)\n\n[Message Sequence](MessageSequence.html)\n\n[Message Expiration](MessageExpiration.html)\n\n[Format Indicator](FormatIndicator.html)\n\n[Message Routing](MessageRoutingIntro.html)\n\n[Pipes-and-Filters](PipesAndFilters.html)\n\n[Message Router](MessageRouter.html)\n\n[Content-based Router](ContentBasedRouter.html)\n\n[Message Filter](Filter.html)\n\n[Dynamic Router](DynamicRouter.html)\n\n[Recipient List](RecipientList.html)\n\n[Splitter](Sequencer.html)\n\n[Aggregator](Aggregator.html)\n\n[Resequencer](Resequencer.html)\n\n[Composed Msg. Processor](DistributionAggregate.html)\n\n[Scatter-Gather](BroadcastAggregate.html)\n\n[Routing Slip](RoutingTable.html)\n\n[Process Manager](ProcessManager.html)\n\n[Message Broker](MessageBroker.html)\n\n[Message\nTransformation](MessageTransformationIntro.html)\n\n[Message Translator](MessageTranslator.html)\n\n[Envelope Wrapper](EnvelopeWrapper.html)\n\n[Content Enricher](DataEnricher.html)\n\n[Content Filter](ContentFilter.html)\n\n[Claim Check](StoreInLibrary.html)\n\n[Normalizer](Normalizer.html)\n\n[Canonical Data Model](CanonicalDataModel.html)\n\n[Messaging Endpoints](MessagingEndpointsIntro.html)\n\n[Message Endpoint](MessageEndpoint.html)\n\n[Messaging Gateway](MessagingGateway.html)\n\n[Messaging Mapper](MessagingMapper.html)\n\n[Transactional Client](TransactionalClient.html)\n\n[Polling Consumer](PollingConsumer.html)\n\n[Event-driven Consumer](EventDrivenConsumer.html)\n\n[Competing Consumers](CompetingConsumers.html)\n\n[Message Dispatcher](MessageDispatcher.html)\n\n[Selective Consumer](MessageSelector.html)\n\n[Durable Subscriber](DurableSubscription.html)\n\n[Idempotent Receiver](IdempotentReceiver.html)\n\n[Service Activator](MessagingAdapter.html)\n\n[Messaging Channels](MessagingChannelsIntro.html)\n\n[Message Channel](MessageChannel.html)\n\n[Point-to-Point Channel](PointToPointChannel.html)\n\n[Publish-Subscr. Channel](PublishSubscribeChannel.html)\n\n[Datatype Channel](DatatypeChannel.html)\n\n[Invalid Message Channel](InvalidMessageChannel.html)\n\n[Dead Letter Channel](DeadLetterChannel.html)\n\n[Guaranteed Delivery](GuaranteedMessaging.html)\n\n[Channel Adapter](ChannelAdapter.html)\n\n[Messaging Bridge](MessagingBridge.html)\n\n[Message Bus](MessageBus.html)\n\n[Systems Mgmt.](SystemManagementIntro.html)\n\n[Control Bus](ControlBus.html)\n\n[Detour](Detour.html)\n\n[Wire Tap](WireTap.html)\n\n[Message History](MessageHistory.html)\n\n[Message Store](MessageStore.html)\n\n[Smart Proxy](SmartProxy.html)\n\n[Test Message](TestMessage.html)\n\n[Channel Purger](ChannelPurger.html)", "znaku_textu": 5090, "slov": 417, "odkazu": 110, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 15:35:07", "sha256": "d868aeb114e06193cb59708e0ef8c492f273fe9cb0ddfadbfba533f101b6c3dd", "hloubka": 4, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://creativecommons.org/licenses/by/4.0/", "https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "https://www.architectelevator.com/book", "https://www.cloudstrategybook.com/", "https://www.platformstrategybook.info/"]} {"url": "http://www.enterpriseintegrationpatterns.com/MessagingAdapter.html", "titulek": "Service Activator - Enterprise Integration Patterns", "h1": "", "popis": "How can an application design a service to be invoked both via various messaging technologies and via non-messaging techniques?", "klicova_slova": "Service Activator,integration, messaging, events, patterns, event-driven, coupling, eai, middleware, application integration, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns", "og:title": "Service Activator - Enterprise Integration Patterns", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/MessagingAdapter.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/MessagingAdapterSolution.gif"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Integration Pattern Language"}], "markdown": "Messaging Patterns\n\n[Messaging Patterns](index.html)\n\n- [Integration Styles](IntegrationStylesIntro.html)\n- [Messaging Systems](MessagingComponentsIntro.html)\n- [Messaging Channels](MessagingChannelsIntro.html)\n- [Message Construction](MessageConstructionIntro.html)\n- [Interlude: Simple Messaging](SimpleMessagingIntro.html)\n- [Message Routing](MessageRoutingIntro.html)\n- [Message Transformation](MessageTransformationIntro.html)\n- [Interlude: Composed Messaging](ComposedMessagingExample.html)\n- [Messaging Endpoints](MessagingEndpointsIntro.html)\n- [System Management](SystemManagementIntro.html)\n- Interlude: Systems Management Example\n- Integration Patterns in Practice\n- Concluding Remarks\n- Appendices\n\n| | Service Activator[Messaging Patterns](index.html) » [Messaging Endpoints](MessagingEndpointsIntro.html) | [Contents](toc.html)[⇐ Prev](IdempotentReceiver.html)[Next ⇒](SystemManagementIntro.html) |\n| --- | --- | --- |\n\nAn application has a service that it would like to make available to other applications.\n\nHow can an application design a service to be invoked both via various messaging technologies and via non-messaging techniques?\n\nDesign a *Service Activator* that connects the messages on the channel to the service being accessed.\n\nA *Service Activator* can be one-way (request only) or two-way ([*Request-Reply*](RequestReply.html)). The service can be as simple as a method call—synchronous and non-remote—perhaps part of a Service Layer [[EAA](http://www.amazon.com/exec/obidos/ASIN/0321127420/enterpriseint-20)]. The activator can be hard-coded to always invoke the same service, or can use reflection to invoke the service indicated by the message. The activator handles all of the messaging details and invokes the service like any other client, such that the service doesn’t even know it’s being invoked through messaging.\n\n...\nRead the entire pattern in the book [Enterprise Integration Patterns](/books1.html)\n\n**Related patterns:**\n\n[*Command Message*](CommandMessage.html), [*Competing Consumers*](CompetingConsumers.html), [*Event-Driven Consumer*](EventDrivenConsumer.html), [*Invalid Message Channel*](InvalidMessageChannel.html), [*Message Dispatcher*](MessageDispatcher.html), [*Message Endpoint*](MessageEndpoint.html), [*Messaging Gateway*](MessagingGateway.html), [*Polling Consumer*](PollingConsumer.html), [*Request-Reply*](RequestReply.html), [*Transactional Client*](TransactionalClient.html)\n\n---\n\n## Integration Pattern Language\n\n[Message Construct.](MessageConstructionIntro.html)\n\n[Message](Message.html)\n\n[Command Message](CommandMessage.html)\n\n[Document Message](DocumentMessage.html)\n\n[Event Message](EventMessage.html)\n\n[Request-Reply](RequestReply.html)\n\n[Return Address](ReturnAddress.html)\n\n[Correlation Identifier](CorrelationIdentifier.html)\n\n[Message Sequence](MessageSequence.html)\n\n[Message Expiration](MessageExpiration.html)\n\n[Format Indicator](FormatIndicator.html)\n\n[Message Routing](MessageRoutingIntro.html)\n\n[Pipes-and-Filters](PipesAndFilters.html)\n\n[Message Router](MessageRouter.html)\n\n[Content-based Router](ContentBasedRouter.html)\n\n[Message Filter](Filter.html)\n\n[Dynamic Router](DynamicRouter.html)\n\n[Recipient List](RecipientList.html)\n\n[Splitter](Sequencer.html)\n\n[Aggregator](Aggregator.html)\n\n[Resequencer](Resequencer.html)\n\n[Composed Msg. Processor](DistributionAggregate.html)\n\n[Scatter-Gather](BroadcastAggregate.html)\n\n[Routing Slip](RoutingTable.html)\n\n[Process Manager](ProcessManager.html)\n\n[Message Broker](MessageBroker.html)\n\n[Message\nTransformation](MessageTransformationIntro.html)\n\n[Message Translator](MessageTranslator.html)\n\n[Envelope Wrapper](EnvelopeWrapper.html)\n\n[Content Enricher](DataEnricher.html)\n\n[Content Filter](ContentFilter.html)\n\n[Claim Check](StoreInLibrary.html)\n\n[Normalizer](Normalizer.html)\n\n[Canonical Data Model](CanonicalDataModel.html)\n\n[Messaging Endpoints](MessagingEndpointsIntro.html)\n\n[Message Endpoint](MessageEndpoint.html)\n\n[Messaging Gateway](MessagingGateway.html)\n\n[Messaging Mapper](MessagingMapper.html)\n\n[Transactional Client](TransactionalClient.html)\n\n[Polling Consumer](PollingConsumer.html)\n\n[Event-driven Consumer](EventDrivenConsumer.html)\n\n[Competing Consumers](CompetingConsumers.html)\n\n[Message Dispatcher](MessageDispatcher.html)\n\n[Selective Consumer](MessageSelector.html)\n\n[Durable Subscriber](DurableSubscription.html)\n\n[Idempotent Receiver](IdempotentReceiver.html)\n\n[Service Activator](MessagingAdapter.html)\n\n[Messaging Channels](MessagingChannelsIntro.html)\n\n[Message Channel](MessageChannel.html)\n\n[Point-to-Point Channel](PointToPointChannel.html)\n\n[Publish-Subscr. Channel](PublishSubscribeChannel.html)\n\n[Datatype Channel](DatatypeChannel.html)\n\n[Invalid Message Channel](InvalidMessageChannel.html)\n\n[Dead Letter Channel](DeadLetterChannel.html)\n\n[Guaranteed Delivery](GuaranteedMessaging.html)\n\n[Channel Adapter](ChannelAdapter.html)\n\n[Messaging Bridge](MessagingBridge.html)\n\n[Message Bus](MessageBus.html)\n\n[Systems Mgmt.](SystemManagementIntro.html)\n\n[Control Bus](ControlBus.html)\n\n[Detour](Detour.html)\n\n[Wire Tap](WireTap.html)\n\n[Message History](MessageHistory.html)\n\n[Message Store](MessageStore.html)\n\n[Smart Proxy](SmartProxy.html)\n\n[Test Message](TestMessage.html)\n\n[Channel Purger](ChannelPurger.html)\n\n- » [Read the latest in My Blog](/ramblings)\n- » [Get more insights from My Articles](/articles.html)\n- » [See me live in my Upcoming Talks](/talks)\n\nYou can reuse the following elements under the [Creative Commons Attribution](http://creativecommons.org/licenses/by/4.0/) license: pattern icon, pattern name, problem and solution statements (in bold), and the sketch. Other portions are protected by copyright.\n\n[Enterprise Integration Patterns](https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20)\nThe de-facto language for designing asynchronous, distributed systems. Over 100,000 copies sold.\n\n[The Software Architect Elevator](https://www.architectelevator.com/book)\n\n Rethink the role of architects as a connecting element across organizational layers. Acquire the technical, communication, and organizational skills to succeed in this new role.\n\n[Cloud Strategy](https://www.cloudstrategybook.com)\n\n Make your cloud migration a success by translating high-level goals into conscious decisions with well-understood trade-offs.\n\n[Platform Strategy](https://www.platformstrategybook.info)\n\n Platforms can boost innovation through harmonization, but they aren't easy to build. Learn from over a decade of designing and rolling out IT platforms.", "znaku_textu": 6393, "slov": 527, "odkazu": 109, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 15:34:45", "sha256": "1743682be5bf9efa2141801b7c1e8bc6a02b32c12583e31fd79dd1e106fc29aa", "hloubka": 4, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://www.amazon.com/exec/obidos/ASIN/0321127420/enterpriseint-20", "http://creativecommons.org/licenses/by/4.0/", "https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "https://www.architectelevator.com/book", "https://www.cloudstrategybook.com/", "https://www.platformstrategybook.info/"]} {"url": "http://www.enterpriseintegrationpatterns.com/MessagingBridge.html", "titulek": "Messaging Bridge - Enterprise Integration Patterns", "h1": "", "popis": "How can multiple messaging systems be connected so that messages available on one are also available on the others?", "klicova_slova": "Messaging Bridge,integration, messaging, events, patterns, event-driven, coupling, eai, middleware, application integration, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns", "og:title": "Messaging Bridge - Enterprise Integration Patterns", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/MessagingBridge.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/MessagingBridge.gif"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Integration Pattern Language"}], "markdown": "Messaging Patterns\n\n[Messaging Patterns](index.html)\n\n- [Integration Styles](IntegrationStylesIntro.html)\n- [Messaging Systems](MessagingComponentsIntro.html)\n- [Messaging Channels](MessagingChannelsIntro.html)\n- [Message Construction](MessageConstructionIntro.html)\n- [Interlude: Simple Messaging](SimpleMessagingIntro.html)\n- [Message Routing](MessageRoutingIntro.html)\n- [Message Transformation](MessageTransformationIntro.html)\n- [Interlude: Composed Messaging](ComposedMessagingExample.html)\n- [Messaging Endpoints](MessagingEndpointsIntro.html)\n- [System Management](SystemManagementIntro.html)\n- Interlude: Systems Management Example\n- Integration Patterns in Practice\n- Concluding Remarks\n- Appendices\n\n| | Messaging Bridge[Messaging Patterns](index.html) » [Messaging Channels](MessagingChannelsIntro.html) | [Contents](toc.html)[⇐ Prev](ChannelAdapter.html)[Next ⇒](MessageBus.html) |\n| --- | --- | --- |\n\nAn enterprise is using [*Messaging*](Messaging.html) to enable applications to communicate. However, the enterprise uses more than one messaging system, which confuses the issue of which messaging system an application should connect to.\n\nHow can multiple messaging systems be connected so that messages available on one are also available on the others?\n\nUse a *Messaging Bridge*, a connection between messaging systems, to replicate messages between systems.\n\nTypically, there is no practical way to connect two complete messaging systems, so instead we connect individual, corresponding channels between the messaging systems. The *Messaging Bridge* is a set of [*Channel Adapter*](ChannelAdapter.html)s, where the non-messaging client is a actually another messaging system, and where each pair of adapters connects a pair of corresponding channels. The bridge acts as map from one set of channels to the other, and also transforms the message format of one system to the other. The connected channels may be used to transmit messages between traditional clients of the messaging system, or strictly for messages intended for other messaging systems.\n\n...\nRead the entire pattern in the book [Enterprise Integration Patterns](/books1.html)\n\n**Related patterns:**\n\n[*Channel Adapter*](ChannelAdapter.html), [*Emerging Standards and Futures in Enterprise Integration*](Future.html), [*Message Channel*](MessageChannel.html), [*Message Endpoint*](MessageEndpoint.html), [*Messaging*](Messaging.html)\n\n---\n\n## Integration Pattern Language\n\n[Message Construct.](MessageConstructionIntro.html)\n\n[Message](Message.html)\n\n[Command Message](CommandMessage.html)\n\n[Document Message](DocumentMessage.html)\n\n[Event Message](EventMessage.html)\n\n[Request-Reply](RequestReply.html)\n\n[Return Address](ReturnAddress.html)\n\n[Correlation Identifier](CorrelationIdentifier.html)\n\n[Message Sequence](MessageSequence.html)\n\n[Message Expiration](MessageExpiration.html)\n\n[Format Indicator](FormatIndicator.html)\n\n[Message Routing](MessageRoutingIntro.html)\n\n[Pipes-and-Filters](PipesAndFilters.html)\n\n[Message Router](MessageRouter.html)\n\n[Content-based Router](ContentBasedRouter.html)\n\n[Message Filter](Filter.html)\n\n[Dynamic Router](DynamicRouter.html)\n\n[Recipient List](RecipientList.html)\n\n[Splitter](Sequencer.html)\n\n[Aggregator](Aggregator.html)\n\n[Resequencer](Resequencer.html)\n\n[Composed Msg. Processor](DistributionAggregate.html)\n\n[Scatter-Gather](BroadcastAggregate.html)\n\n[Routing Slip](RoutingTable.html)\n\n[Process Manager](ProcessManager.html)\n\n[Message Broker](MessageBroker.html)\n\n[Message\nTransformation](MessageTransformationIntro.html)\n\n[Message Translator](MessageTranslator.html)\n\n[Envelope Wrapper](EnvelopeWrapper.html)\n\n[Content Enricher](DataEnricher.html)\n\n[Content Filter](ContentFilter.html)\n\n[Claim Check](StoreInLibrary.html)\n\n[Normalizer](Normalizer.html)\n\n[Canonical Data Model](CanonicalDataModel.html)\n\n[Messaging Endpoints](MessagingEndpointsIntro.html)\n\n[Message Endpoint](MessageEndpoint.html)\n\n[Messaging Gateway](MessagingGateway.html)\n\n[Messaging Mapper](MessagingMapper.html)\n\n[Transactional Client](TransactionalClient.html)\n\n[Polling Consumer](PollingConsumer.html)\n\n[Event-driven Consumer](EventDrivenConsumer.html)\n\n[Competing Consumers](CompetingConsumers.html)\n\n[Message Dispatcher](MessageDispatcher.html)\n\n[Selective Consumer](MessageSelector.html)\n\n[Durable Subscriber](DurableSubscription.html)\n\n[Idempotent Receiver](IdempotentReceiver.html)\n\n[Service Activator](MessagingAdapter.html)\n\n[Messaging Channels](MessagingChannelsIntro.html)\n\n[Message Channel](MessageChannel.html)\n\n[Point-to-Point Channel](PointToPointChannel.html)\n\n[Publish-Subscr. Channel](PublishSubscribeChannel.html)\n\n[Datatype Channel](DatatypeChannel.html)\n\n[Invalid Message Channel](InvalidMessageChannel.html)\n\n[Dead Letter Channel](DeadLetterChannel.html)\n\n[Guaranteed Delivery](GuaranteedMessaging.html)\n\n[Channel Adapter](ChannelAdapter.html)\n\n[Messaging Bridge](MessagingBridge.html)\n\n[Message Bus](MessageBus.html)\n\n[Systems Mgmt.](SystemManagementIntro.html)\n\n[Control Bus](ControlBus.html)\n\n[Detour](Detour.html)\n\n[Wire Tap](WireTap.html)\n\n[Message History](MessageHistory.html)\n\n[Message Store](MessageStore.html)\n\n[Smart Proxy](SmartProxy.html)\n\n[Test Message](TestMessage.html)\n\n[Channel Purger](ChannelPurger.html)\n\n- » [Read the latest in My Blog](/ramblings)\n- » [Get more insights from My Articles](/articles.html)\n- » [See me live in my Upcoming Talks](/talks)\n\nYou can reuse the following elements under the [Creative Commons Attribution](http://creativecommons.org/licenses/by/4.0/) license: pattern icon, pattern name, problem and solution statements (in bold), and the sketch. Other portions are protected by copyright.\n\n[Enterprise Integration Patterns](https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20)\nThe de-facto language for designing asynchronous, distributed systems. Over 100,000 copies sold.\n\n[The Software Architect Elevator](https://www.architectelevator.com/book)\n\n Rethink the role of architects as a connecting element across organizational layers. Acquire the technical, communication, and organizational skills to succeed in this new role.\n\n[Cloud Strategy](https://www.cloudstrategybook.com)\n\n Make your cloud migration a success by translating high-level goals into conscious decisions with well-understood trade-offs.\n\n[Platform Strategy](https://www.platformstrategybook.info)\n\n Platforms can boost innovation through harmonization, but they aren't easy to build. Learn from over a decade of designing and rolling out IT platforms.", "znaku_textu": 6371, "slov": 545, "odkazu": 108, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 15:34:55", "sha256": "e4f028e0c11196cdf7e66884a37e9d60fa340caa027f0c05c7b22f43822a301b", "hloubka": 4, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://creativecommons.org/licenses/by/4.0/", "https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "https://www.architectelevator.com/book", "https://www.cloudstrategybook.com/", "https://www.platformstrategybook.info/"]} {"url": "http://www.enterpriseintegrationpatterns.com/MessagingChannelsIntro.html", "titulek": "Introduction to Messaging Channels - Enterprise Integration Patterns", "h1": "", "popis": "In Introduction to Messaging Systems, we discussed Message Channel. When two applications wish to exchange data, they do so by sending the data through a channel that connects the two. The application sending the data may not know which application will receive the data, but by selecting a particular channel to send the data on, the sender knows that the receiver will be one that is looking for that sort of data by looking for it on that channel. In this way, the applications that produce shared data have a way to communicate with those that wish to consume it.", "klicova_slova": "Introduction to Messaging Channels,integration, messaging, events, patterns, event-driven, coupling, eai, middleware, application integration, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns", "og:title": "Introduction to Messaging Channels - Enterprise Integration Patterns", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/MessagingChannelsIntro.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/eip1_patterns_wide.png"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Message Channel Themes"}, {"uroven": 2, "text": "Message Channel Decisions"}, {"uroven": 2, "text": "Integration Pattern Language"}], "markdown": "| | Introduction to Messaging Channels[Messaging Patterns](index.html) » [Messaging Channels](MessagingChannelsIntro.html) | [Contents](toc.html)[⇐ Prev](MessageEndpoint.html)[Next ⇒](PointToPointChannel.html) |\n| --- | --- | --- |\n\nIn [*Introduction to Messaging Systems*](MessagingComponentsIntro.html), we discussed [*Message Channel*](MessageChannel.html). When two applications wish to exchange data, they do so by sending the data through a channel that connects the two. The application sending the data may not know which application will receive the data, but by selecting a particular channel to send the data on, the sender knows that the receiver will be one that is looking for that sort of data by looking for it on that channel. In this way, the applications that produce shared data have a way to communicate with those that wish to consume it.\n\n## Message Channel Themes\n\nDeciding to use a [*Message Channel*](MessageChannel.html) is the simple part; if an application has data to transmit or data it wishes to receive, it will have to use a channel. The challenge is knowing what channels your applications will need and what to use them for.\n\n**Fixed set of channels** — One theme in this chapter is that the set of [*Message Channel*](MessageChannel.html)s available to an application tends to be static. When designing an application, a developer has to know where to put what types of data to share that data with other applications, and likewise where to look for what types of data coming from other applications. These paths of communication cannot be dynamically created and discovered at runtime; they need to be agreed upon at design time so that the application knows where its data is coming from and where the data is going to. \n (While it is true that most channels must be staticly defined, there are exceptions to this theme, cases where dynamic channels are practical and useful. One exception is the reply channel in [*Request-Reply*](RequestReply.html). The requestor can create or obtain a new channel the replier knows nothing about, specify it as the [*Return Address*](ReturnAddress.html) of a request message, and then the replier can make use of it. Another exception is messaging system implementations that support hierarchical channels. A receiver can subscribe to a parent in the hierarchy, then a sender can publish to a new child channel the receiver knows nothing about, and the subscriber will still receive the message. These relatively unusual cases notwithstanding, channels are usually defined at deployment-time and applications are designed around a known set of channels.)\n\n**Determining the set of channels** — A related issue is: Who decides what [*Message Channel*](MessageChannel.html)s are available, the messaging system or the applications? That is to say: Does the messaging system define certain channels and require the applications to make due with those? Or do the applications determine what channels they need and require the messaging system to provide them? There is no simple answer; designing the needed set of channels is iterative. First the applications determine the channels the messaging system will need to provide. Subsequent applications will try to design their communication around the channels that are available, but when this is not practical, they will require that additional channels be added. When a set of applications already use a certain set of channels, and new applications wish to join in, they too will use the existing set of channels. When existing applications add new functionality, they may require new channels.\n\n**Unidirectional channels** — Another common source of confusion is whether a [*Message Channel*](MessageChannel.html) is unidirectional or bidirectional. Technically, it’s neither; a channel is more like a bucket that some applications add data to and other applications take data from (albeit a bucket that is distributed across multiple computers in some coordinated fashion). But because the data is in messages that travel from one application to another, that gives the channel direction, making it unidirectional. If a channel were bidirectional, that would mean that an application would both send messages to and receive messages from the same channel, which—while technically possible—makes little sense because the application would tend to keep consuming its own messages, the messages it’s supposed to be sending to other applications. So for all practical purposes, channels are unidirectional. As a consequence, for two applications to have a two-way conversation, they will need two channels, one in each direction (see [*Request-Reply*](RequestReply.html) in the next chapter).\n\n## Message Channel Decisions\n\nNow that we understand what [*Message Channel*](MessageChannel.html)s are, let’s consider the decisions involved in using them:\n\n**One-to-one or one-to-many** — When your application shares a piece of data, do you want to share it with just one other application or with any other application that is interested? To send the data to a single application, use a [*Point-to-Point Channel*](PointToPointChannel.html). This does not guarantee that every piece of data sent on that channel will necessarily go to the same receiver, because the channel might have multiple receivers; but it does ensure that any one piece of data will only be received by one of the applications. If you want all of the receiver applications to be able to receive the data, use a [*Publish-Subscribe Channel*](PublishSubscribeChannel.html). When you send a piece of data this way, the channel effectively copies the data for each of the receivers.\n\n**What type of data** — Any data in any computer memory has to conform to some sort of *type*: a known format or expected structure with an agreed upon meaning. Otherwise, all data would just be a bunch of bytes and there would be no way to make any sense of it. Messaging systems work much the same way; the message contents must conform to some type so that the receiver understands the data’s structure. [*Datatype Channel*](DatatypeChannel.html) is the principle that all of the data on a channel has to be of the same type. This is the main reason why messaging systems need lots of channels; if the data could be of any type, the messaging system would only need one channel (in each direction) between any two applications.\n\n**Invalid and dead messages** — The message system can ensure that a message is delivered properly, but it cannot guarantee that the receiver will know what to do with it. The receiver has expectations about the data’s type and meaning; when it receives a message that doesn’t meet these expectations, there’s not much it can do. What it can do, though, is put the strange message on a specially designated [*Invalid Message Channel*](InvalidMessageChannel.html), in hopes that some utility monitoring the channel will pick up the message and figure out what to do with it. Many messaging systems have a similar built-in feature, a [*Dead Letter Channel*](DeadLetterChannel.html) for messages which are successfully sent but ultimately cannot be successfully delivered. Again, hopefully some utility monitoring the channel will know what to do with the messages that could not be delivered.\n\n**Crash proof** — If the messaging system crashes or is shut down for maintence, what happens to its messages? When it is back up and running, will its messages still be in its channels? By default, no; channels store their messages in memory. However, [*Guaranteed Delivery*](GuaranteedMessaging.html) makes channels persistent so that their messages are stored on disk. This hurts performance but makes messaging more reliable, even when the messaging system isn’t.\n\n**Non-messaging clients** — What if an application cannot connect to a messaging system but still wants to participate in messaging? Normally it would be out of luck; but if the messaging system can connect to the application somehow—through its user interface, its business services API, its database, or through a network connection such as TCP/IP or HTTP—then a [*Channel Adapter*](ChannelAdapter.html) on the messaging system can be used to connect a channel (or set of channels) to the application without having to modify the application and perhaps without having to have a messaging client running on the same machine as the application. Sometimes the \"non-messaging client\" really is a messaging client, just for a different messaging system. In that case, an application that is a client on both messaging systems can build a [*Messaging Bridge*](MessagingBridge.html) between the two, effectively connecting them into one composite messaging system.\n\n**Communications backbone** — As more and more of an enterprise’s applications connect to the messaging system and make their functionality available through messaging, the messaging system becomes a centeralized point of one-stop-shopping for functionality in the enterprise. A new application simply needs to know which channels to use to request functionality and which others to listen on for the results. The messaging system itself essentially becomes a [*Message Bus*](MessageBus.html), a backbone providing access to all of the enterprise’s various and ever-changing applications and functionality. You can achieve this integration nirvana more quickly and easily by specifically designing for it from the beginning.\n\nSo as you can see, getting applications set up for [*Messaging*](Messaging.html) involves more than just connecting them to the messaging system so that they can send messages. The messages must have [*Message Channel*](MessageChannel.html)s to transmit on. Slapping in some channels doesn’t get the job done either. They have to be designed with a purpose, based on the data type being shared, the sort of application making the data available, and the sort of application receiving the data. This chapter will explain the decisions that go into designing these channels.\n\nTo help illustrate the patterns, each one has an example from a ficticious, simplified \"stock trading\" domain. While none of these examples should be used as the basis for implementing a real trading system, they do serve as quick and specific examples of how the patterns can be used.\n\n## Integration Pattern Language\n\n[Message Construct.](MessageConstructionIntro.html)\n\n[Message](Message.html)\n\n[Command Message](CommandMessage.html)\n\n[Document Message](DocumentMessage.html)\n\n[Event Message](EventMessage.html)\n\n[Request-Reply](RequestReply.html)\n\n[Return Address](ReturnAddress.html)\n\n[Correlation Identifier](CorrelationIdentifier.html)\n\n[Message Sequence](MessageSequence.html)\n\n[Message Expiration](MessageExpiration.html)\n\n[Format Indicator](FormatIndicator.html)\n\n[Message Routing](MessageRoutingIntro.html)\n\n[Pipes-and-Filters](PipesAndFilters.html)\n\n[Message Router](MessageRouter.html)\n\n[Content-based Router](ContentBasedRouter.html)\n\n[Message Filter](Filter.html)\n\n[Dynamic Router](DynamicRouter.html)\n\n[Recipient List](RecipientList.html)\n\n[Splitter](Sequencer.html)\n\n[Aggregator](Aggregator.html)\n\n[Resequencer](Resequencer.html)\n\n[Composed Msg. Processor](DistributionAggregate.html)\n\n[Scatter-Gather](BroadcastAggregate.html)\n\n[Routing Slip](RoutingTable.html)\n\n[Process Manager](ProcessManager.html)\n\n[Message Broker](MessageBroker.html)\n\n[Message\nTransformation](MessageTransformationIntro.html)\n\n[Message Translator](MessageTranslator.html)\n\n[Envelope Wrapper](EnvelopeWrapper.html)\n\n[Content Enricher](DataEnricher.html)\n\n[Content Filter](ContentFilter.html)\n\n[Claim Check](StoreInLibrary.html)\n\n[Normalizer](Normalizer.html)\n\n[Canonical Data Model](CanonicalDataModel.html)\n\n[Messaging Endpoints](MessagingEndpointsIntro.html)\n\n[Message Endpoint](MessageEndpoint.html)\n\n[Messaging Gateway](MessagingGateway.html)\n\n[Messaging Mapper](MessagingMapper.html)\n\n[Transactional Client](TransactionalClient.html)\n\n[Polling Consumer](PollingConsumer.html)\n\n[Event-driven Consumer](EventDrivenConsumer.html)\n\n[Competing Consumers](CompetingConsumers.html)\n\n[Message Dispatcher](MessageDispatcher.html)\n\n[Selective Consumer](MessageSelector.html)\n\n[Durable Subscriber](DurableSubscription.html)\n\n[Idempotent Receiver](IdempotentReceiver.html)\n\n[Service Activator](MessagingAdapter.html)\n\n[Messaging Channels](MessagingChannelsIntro.html)\n\n[Message Channel](MessageChannel.html)\n\n[Point-to-Point Channel](PointToPointChannel.html)\n\n[Publish-Subscr. Channel](PublishSubscribeChannel.html)\n\n[Datatype Channel](DatatypeChannel.html)\n\n[Invalid Message Channel](InvalidMessageChannel.html)\n\n[Dead Letter Channel](DeadLetterChannel.html)\n\n[Guaranteed Delivery](GuaranteedMessaging.html)\n\n[Channel Adapter](ChannelAdapter.html)\n\n[Messaging Bridge](MessagingBridge.html)\n\n[Message Bus](MessageBus.html)\n\n[Systems Mgmt.](SystemManagementIntro.html)\n\n[Control Bus](ControlBus.html)\n\n[Detour](Detour.html)\n\n[Wire Tap](WireTap.html)\n\n[Message History](MessageHistory.html)\n\n[Message Store](MessageStore.html)\n\n[Smart Proxy](SmartProxy.html)\n\n[Test Message](TestMessage.html)\n\n[Channel Purger](ChannelPurger.html)", "znaku_textu": 12997, "slov": 1773, "odkazu": 107, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 15:34:46", "sha256": "12542489ee77139f16c4fcf6b8445e9efb36571e09db8e1c431333d49a0f3ee8", "hloubka": 4, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "https://www.architectelevator.com/book", "https://www.cloudstrategybook.com/", "https://www.platformstrategybook.info/"]} {"url": "http://www.enterpriseintegrationpatterns.com/MessagingEndpointsIntro.html", "titulek": "Introduction to Messaging Endpoints - Enterprise Integration Patterns", "h1": "", "popis": "In Introduction to Messaging Systems, we discussed Message Endpoint. This is how an application connects to a messaging system so that it can send and receive messages. As an application programmer, when you program to a messaging API such as JMS or the System.Messaging namespace, you’re developing endpoint code. If you are using a commercial middleware package, most of this coding is already done for you using the libraries and tools provided by the vendor.", "klicova_slova": "Introduction to Messaging Endpoints,integration, messaging, events, patterns, event-driven, coupling, eai, middleware, application integration, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns", "og:title": "Introduction to Messaging Endpoints - Enterprise Integration Patterns", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/MessagingEndpointsIntro.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/eip1_patterns_wide.png"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Send and Receive Patterns"}, {"uroven": 2, "text": "Message Consumer Patterns"}, {"uroven": 2, "text": "Message Endpoint Themes"}, {"uroven": 2, "text": "Integration Pattern Language"}], "markdown": "| | Introduction to Messaging Endpoints[Messaging Patterns](index.html) » [Messaging Endpoints](MessagingEndpointsIntro.html) | [Contents](toc.html)[⇐ Prev](ComposedMessagingTIBCO.html)[Next ⇒](MessagingGateway.html) |\n| --- | --- | --- |\n\nIn [*Introduction to Messaging Systems*](MessagingComponentsIntro.html), we discussed [*Message Endpoint*](MessageEndpoint.html). This is how an application connects to a messaging system so that it can send and receive messages. As an application programmer, when you program to a messaging API such as JMS or the System.Messaging namespace, you’re developing endpoint code. If you are using a commercial middleware package, most of this coding is already done for you using the libraries and tools provided by the vendor.\n\n## Send and Receive Patterns\n\nSome endpoint patterns apply to both senders and receivers. They concern how the application relates to the messaging system in general.\n\n**Encapsulate the messaging code** — In general, an application should not be aware that it is using [*Messaging*](Messaging.html) to integrate with other applications. Most of the application’s code should be written without messaging in mind. At the points where the application integrate with others, there should be a thin layer of code that performs the application’s part of the integration. When the integration is implemented with messaging, that thin layer of code that attches the application to the messaging system is a [*Messaging Gateway*](MessagingGateway.html).\n\n**Data translation** — It’s great when the internal data representation the sender and receiver applications use are the same, and when the message format uses that same representation as well. However, this is often not the case. Either the sender and receiver disagree on data format, or the messages use a different format (usually to support other senders and receivers). In this situation, use a [*Messaging Mapper*](MessagingMapper.html) to convert data between the application’s format and the message’s format.\n\n**Externally-controlled transactions** — Messaging systems use transactions internally; externally, by default, each send or receive method call runs in its own transaction. However, message producers and consumers have the option of using a [*Transactional Client*](TransactionalClient.html) to control these transactions externally, which is useful when you need to batch together multiple messages or to coordinate messaging with other transactional services.\n\n## Message Consumer Patterns\n\nOther endpoint patterns only apply to message receivers. Sending messages is easy. There are issues involved in deciding when a message should be sent, what it should contain, and how to communicate its intent to the receiver—that’s why we have the Message Construction patterns (see [*Introduction to Message Construction*](MessageConstructionIntro.html))—but once the message is built, sending it is easy. Receiving messages, on the other hand—that’s tricky. So many of these patterns are about receiving messages.\n\nAn overriding theme in message consumption is *throttling*, which means the application controlling the rate at which it consumes messages. As discussed in the [*Introduction*](Introduction.html), a potential problem any server faces is that a high volume of client requests could overload the server. With [*Remote Procedure Invocation*](EncapsulatedSynchronousIntegration.html), the server is pretty much at the mercy of the rate that clients make calls. Likewise, with [*Messaging*](Messaging.html), the server cannot control the rate at which clients send requests—but the server can control the rate at which it processes those requests. The application does not have to receive and process the messages as rapidly as they’re delivered by the messaging system; it can process them at a sustainable pace and let the extras queue up to be processed in some sort of first come, first serve basis. On the other hand, if the messages are piling up too much and the server has the resources to process more messages faster, the server can increase its message consumption throughput using concurrent message consumers. So use these patterns to let your application control the rate at which it consumes messages.\n\nMany of these patterns come in pairs that represent alternatives. You can design an endpoint one way or the other. A single application may design some endpoints one way and some endpoints the other way, but a single endpoint can only implement one alternative. Alternatives from each pair can be combined, leading to a great number of choices for how to implement a particular endpoint.\n\n**Synchronous or asynchronous consumer** — One alternative is whether to use a [*Polling Consumer*](PollingConsumer.html) or an [*Event-Driven Consumer*](EventDrivenConsumer.html). [[JMS11, pp.68-69](http://java.sun.com/products/jms/docs.html)], [[Hapner, p.13](http://www.amazon.com/exec/obidos/ASIN/0201784726/enterpriseint-20)], [[Dickman, p.29](http://www.amazon.com/exec/obidos/ASIN/0201325810/enterpriseint-20)] Polling provides the best throttling because if the server is busy, it won’t run the code to receive more messages, so the messages will queue up. Consumers that are event-driven tend to process messages as fast as they arrive, which could overload the server; but each consumer can only process one message at a time, so limiting the number of consumers effectively throttles the consumption rate.\n\n**Message assignment vs. message grab** — Another alternative concerns how a handful of consumers process a handful of messages. If each consumer gets a message, they can process the messages concurrently. The simplest approach is [*Competing Consumers*](CompetingConsumers.html), where one [*Point-to-Point Channel*](PointToPointChannel.html) has multiple consumers. Each one could potentially grab any message; the messaging system’s implementation decides which consumer gets a message. If you want to control this message-to-consumer matching process, use a [*Message Dispatcher*](MessageDispatcher.html). This is a single consumer that receives a message but delegates it to a performer for processing. An application can throttle message load by limiting the number of consumers/performers. Also, the dispatcher in a [*Message Dispatcher*](MessageDispatcher.html) can implement explicit throttling behavior.\n\n**Accept all messages or filter** — By default, any message delivered on a [*Message Channel*](MessageChannel.html) becomes available to any [*Message Endpoint*](MessageEndpoint.html) listening on that channel for messages to consume. However, some consumers may not want to consume just any message on that channel, but only wish to consume messages of a certain type or description. Such a discriminating consumer can use a [*Selective Consumer*](MessageSelector.html) to describe what sort of message it’s willing to receive. Then the messaging system will only make messages matching that description available to that receiver.\n\n**Subscribe while disconnected** — An issue that comes up with [*Publish-Subscribe Channel*](PublishSubscribeChannel.html)s: What if a subscriber was interested in the data being published on a particular channel and will be again, but is currently disconnected from the network or shut down for maintenance? Will a disconnected application miss messages published while it is disconnected, even though it has subscribed? By default, yes, a subscription is only valid while the subscriber is connected. To keep the application from missing messages published inbetween connections, make it a [*Durable Subscriber*](DurableSubscription.html).\n\n**Idempotency** — Sometimes the same message gets delivered more than once, either because the messaging system is not certain the message has been successfully delivered yet, or because the [*Message Channel*](MessageChannel.html)’s quality-of-service has been lowered to improve performance. Message receivers, on the other hand, tend to assume that each message will be delivered exactly once, and tend to cause problems when they repeat processing because of repeat messages. A receiver designed as an [*Idempotent Receiver*](IdempotentReceiver.html) handles duplicate messages and prevents them from causing problems in the receiver application.\n\n**Synchronous or asynchronous service** — Another tough choice is whether an application should expose its services to be invoked synchronously (via [*Remote Procedure Invocation*](EncapsulatedSynchronousIntegration.html)) or asynchronously (via [*Messaging*](Messaging.html)). Different clients may prefer different approaches; different circumstances may require different approaches. Since it’s often hard to choose just one approach or the other, let’s have both. A [*Service Activator*](MessagingAdapter.html) connects a [*Message Channel*](MessageChannel.html) to a synchronous service in an application so that when a message is received, the service is invoked. Synchronous clients can simply invoke the service directly; asynchronous clients can invoke the service by sending a message.\n\n## Message Endpoint Themes\n\nAnother significant theme in this chapter is difficulty using [*Transactional Client*](TransactionalClient.html) with other patterns. [*Event-Driven Consumer*](EventDrivenConsumer.html) usually cannot externally control transactions properly, [*Message Dispatcher*](MessageDispatcher.html) must be carefully designed to do so, and [*Competing Consumers*](CompetingConsumers.html) that externally manage transactions can run into significant problems. The safest bet for using [*Transactional Client*](TransactionalClient.html) is with a single [*Polling Consumer*](PollingConsumer.html), but that may not be a very satisfactory solution.\n\nSpecial mention should be made of JMS-style message-driven beans, one type of Enterprise JavaBeans (EJB). [[EJB20, pp.311-326](http://java.sun.com/products/ejb/docs.html)], [[Hapner, pp.69-74](http://www.amazon.com/exec/obidos/ASIN/0201784726/enterpriseint-20)] An MDB is a message consumer that is an [*Event-Driven Consumer*](EventDrivenConsumer.html), a [*Transactional Client*](TransactionalClient.html) that supports J2EE distributed (e.g., XAResource) transactions, and can be dynamically pooled as [*Competing Consumers*](CompetingConsumers.html), even for a [*Publish-Subscribe Channel*](PublishSubscribeChannel.html). This is a difficult and tedious combination to implement in one’s own application code, but this functionality is provided as a ready-built feature of compatible EJB containers (such as BEA’s WebLogic and IBM’s WebSphere). (How is the MDB framework implemented? Essentially, the container implements a [*Message Dispatcher*](MessageDispatcher.html) with a dynamicly-sized pool of reusable performers, where each performer consumes the message itself using its own session and transaction.)\n\nFinally, keep in mind that a single [*Message Endpoint*](MessageEndpoint.html) may well combine several different patterns from this chapter. A group of [*Competing Consumers*](CompetingConsumers.html) may be implemented as [*Polling Consumer*](PollingConsumer.html)s that are also [*Selective Consumer*](MessageSelector.html)s and act as a [*Service Activator*](MessagingAdapter.html) on a service in the application. A [*Message Dispatcher*](MessageDispatcher.html) may be an [*Event-Driven Consumer*](EventDrivenConsumer.html) and a [*Durable Subscriber*](DurableSubscription.html) that uses a [*Messaging Mapper*](MessagingMapper.html). Whatever other patterns an endpoint implements, it should also be a [*Messaging Gateway*](MessagingGateway.html). So don’t think of what one pattern to use, think of the combinations. That’s the beauty of solving the problems with patterns.\n\nSo there are a lot of options for making an application into a [*Message Endpoint*](MessageEndpoint.html). This chapter will explain what those options are and how to make the best use of them.\n\n## Integration Pattern Language\n\n[Message Construct.](MessageConstructionIntro.html)\n\n[Message](Message.html)\n\n[Command Message](CommandMessage.html)\n\n[Document Message](DocumentMessage.html)\n\n[Event Message](EventMessage.html)\n\n[Request-Reply](RequestReply.html)\n\n[Return Address](ReturnAddress.html)\n\n[Correlation Identifier](CorrelationIdentifier.html)\n\n[Message Sequence](MessageSequence.html)\n\n[Message Expiration](MessageExpiration.html)\n\n[Format Indicator](FormatIndicator.html)\n\n[Message Routing](MessageRoutingIntro.html)\n\n[Pipes-and-Filters](PipesAndFilters.html)\n\n[Message Router](MessageRouter.html)\n\n[Content-based Router](ContentBasedRouter.html)\n\n[Message Filter](Filter.html)\n\n[Dynamic Router](DynamicRouter.html)\n\n[Recipient List](RecipientList.html)\n\n[Splitter](Sequencer.html)\n\n[Aggregator](Aggregator.html)\n\n[Resequencer](Resequencer.html)\n\n[Composed Msg. Processor](DistributionAggregate.html)\n\n[Scatter-Gather](BroadcastAggregate.html)\n\n[Routing Slip](RoutingTable.html)\n\n[Process Manager](ProcessManager.html)\n\n[Message Broker](MessageBroker.html)\n\n[Message\nTransformation](MessageTransformationIntro.html)\n\n[Message Translator](MessageTranslator.html)\n\n[Envelope Wrapper](EnvelopeWrapper.html)\n\n[Content Enricher](DataEnricher.html)\n\n[Content Filter](ContentFilter.html)\n\n[Claim Check](StoreInLibrary.html)\n\n[Normalizer](Normalizer.html)\n\n[Canonical Data Model](CanonicalDataModel.html)\n\n[Messaging Endpoints](MessagingEndpointsIntro.html)\n\n[Message Endpoint](MessageEndpoint.html)\n\n[Messaging Gateway](MessagingGateway.html)\n\n[Messaging Mapper](MessagingMapper.html)\n\n[Transactional Client](TransactionalClient.html)\n\n[Polling Consumer](PollingConsumer.html)\n\n[Event-driven Consumer](EventDrivenConsumer.html)\n\n[Competing Consumers](CompetingConsumers.html)\n\n[Message Dispatcher](MessageDispatcher.html)\n\n[Selective Consumer](MessageSelector.html)\n\n[Durable Subscriber](DurableSubscription.html)\n\n[Idempotent Receiver](IdempotentReceiver.html)\n\n[Service Activator](MessagingAdapter.html)\n\n[Messaging Channels](MessagingChannelsIntro.html)\n\n[Message Channel](MessageChannel.html)\n\n[Point-to-Point Channel](PointToPointChannel.html)\n\n[Publish-Subscr. Channel](PublishSubscribeChannel.html)\n\n[Datatype Channel](DatatypeChannel.html)\n\n[Invalid Message Channel](InvalidMessageChannel.html)\n\n[Dead Letter Channel](DeadLetterChannel.html)\n\n[Guaranteed Delivery](GuaranteedMessaging.html)\n\n[Channel Adapter](ChannelAdapter.html)\n\n[Messaging Bridge](MessagingBridge.html)\n\n[Message Bus](MessageBus.html)\n\n[Systems Mgmt.](SystemManagementIntro.html)\n\n[Control Bus](ControlBus.html)\n\n[Detour](Detour.html)\n\n[Wire Tap](WireTap.html)\n\n[Message History](MessageHistory.html)\n\n[Message Store](MessageStore.html)\n\n[Smart Proxy](SmartProxy.html)\n\n[Test Message](TestMessage.html)\n\n[Channel Purger](ChannelPurger.html)", "znaku_textu": 14643, "slov": 1808, "odkazu": 111, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 15:34:33", "sha256": "9b9ca9fe0ce05e757b6eb7ac08708b86ab2895184cf3dced0050f0275f0a84fd", "hloubka": 4, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://java.sun.com/products/jms/docs.html", "http://www.amazon.com/exec/obidos/ASIN/0201784726/enterpriseint-20", "http://www.amazon.com/exec/obidos/ASIN/0201325810/enterpriseint-20", "http://java.sun.com/products/ejb/docs.html", "https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "https://www.architectelevator.com/book", "https://www.cloudstrategybook.com/", "https://www.platformstrategybook.info/"]} {"url": "http://www.enterpriseintegrationpatterns.com/MessagingGateway.html", "titulek": "Messaging Gateway - Enterprise Integration Patterns", "h1": "", "popis": "How do you encapsulate access to the messaging system from the rest of the application?", "klicova_slova": "Messaging Gateway,integration, messaging, events, patterns, event-driven, coupling, eai, middleware, application integration, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns", "og:title": "Messaging Gateway - Enterprise Integration Patterns", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/MessagingGateway.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/MessagingGatewaySolution.gif"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Integration Pattern Language"}], "markdown": "Messaging Patterns\n\n[Messaging Patterns](index.html)\n\n- [Integration Styles](IntegrationStylesIntro.html)\n- [Messaging Systems](MessagingComponentsIntro.html)\n- [Messaging Channels](MessagingChannelsIntro.html)\n- [Message Construction](MessageConstructionIntro.html)\n- [Interlude: Simple Messaging](SimpleMessagingIntro.html)\n- [Message Routing](MessageRoutingIntro.html)\n- [Message Transformation](MessageTransformationIntro.html)\n- [Interlude: Composed Messaging](ComposedMessagingExample.html)\n- [Messaging Endpoints](MessagingEndpointsIntro.html)\n- [System Management](SystemManagementIntro.html)\n- Interlude: Systems Management Example\n- Integration Patterns in Practice\n- Concluding Remarks\n- Appendices\n\n| | Messaging Gateway[Messaging Patterns](index.html) » [Messaging Endpoints](MessagingEndpointsIntro.html) | [Contents](toc.html)[⇐ Prev](MessagingEndpointsIntro.html)[Next ⇒](MessagingMapper.html) |\n| --- | --- | --- |\n\nAn application accesses another system via [*Messaging*](Messaging.html).\n\nHow do you encapsulate access to the messaging system from the rest of the application?\n\nUse a *Messaging Gateway*, a class than wraps messaging-specific method calls and exposes domain-specific methods to the application.\n\nThe *Messaging Gateway* encapsulates messaging-specific code (e.g., the code required to send or receive a message) and separates it from the rest of the application code. This way, only the *Messaging Gateway* code knows about the messaging system; the rest of the application code does not. The *Messaging Gateway* exposes a business function to the rest of the application so that instead of requiring the application to set properties like Message.MessageReadPropertyFilter.AppSpecific, a *Messaging Gateway* exposes methods such as GetCreditScore that accept strongly typed parameters just like any other method. A *Messaging Gateway* is a messaging-specific version of the more general *Gateway* pattern [[EAA](http://www.amazon.com/exec/obidos/ASIN/0321127420/enterpriseint-20)].\n\n...\nRead the entire pattern in the book [Enterprise Integration Patterns](/books1.html)\n\n**Related patterns:**\n\n[*Scatter-Gather*](BroadcastAggregate.html), [*Asynchronous Implementation with MSMQ*](ComposedMessagingMSMQ.html), [*Correlation Identifier*](CorrelationIdentifier.html), [*Messaging*](Messaging.html), [*Request-Reply*](RequestReply.html)\n\n---\n\n## Integration Pattern Language\n\n[Message Construct.](MessageConstructionIntro.html)\n\n[Message](Message.html)\n\n[Command Message](CommandMessage.html)\n\n[Document Message](DocumentMessage.html)\n\n[Event Message](EventMessage.html)\n\n[Request-Reply](RequestReply.html)\n\n[Return Address](ReturnAddress.html)\n\n[Correlation Identifier](CorrelationIdentifier.html)\n\n[Message Sequence](MessageSequence.html)\n\n[Message Expiration](MessageExpiration.html)\n\n[Format Indicator](FormatIndicator.html)\n\n[Message Routing](MessageRoutingIntro.html)\n\n[Pipes-and-Filters](PipesAndFilters.html)\n\n[Message Router](MessageRouter.html)\n\n[Content-based Router](ContentBasedRouter.html)\n\n[Message Filter](Filter.html)\n\n[Dynamic Router](DynamicRouter.html)\n\n[Recipient List](RecipientList.html)\n\n[Splitter](Sequencer.html)\n\n[Aggregator](Aggregator.html)\n\n[Resequencer](Resequencer.html)\n\n[Composed Msg. Processor](DistributionAggregate.html)\n\n[Scatter-Gather](BroadcastAggregate.html)\n\n[Routing Slip](RoutingTable.html)\n\n[Process Manager](ProcessManager.html)\n\n[Message Broker](MessageBroker.html)\n\n[Message\nTransformation](MessageTransformationIntro.html)\n\n[Message Translator](MessageTranslator.html)\n\n[Envelope Wrapper](EnvelopeWrapper.html)\n\n[Content Enricher](DataEnricher.html)\n\n[Content Filter](ContentFilter.html)\n\n[Claim Check](StoreInLibrary.html)\n\n[Normalizer](Normalizer.html)\n\n[Canonical Data Model](CanonicalDataModel.html)\n\n[Messaging Endpoints](MessagingEndpointsIntro.html)\n\n[Message Endpoint](MessageEndpoint.html)\n\n[Messaging Gateway](MessagingGateway.html)\n\n[Messaging Mapper](MessagingMapper.html)\n\n[Transactional Client](TransactionalClient.html)\n\n[Polling Consumer](PollingConsumer.html)\n\n[Event-driven Consumer](EventDrivenConsumer.html)\n\n[Competing Consumers](CompetingConsumers.html)\n\n[Message Dispatcher](MessageDispatcher.html)\n\n[Selective Consumer](MessageSelector.html)\n\n[Durable Subscriber](DurableSubscription.html)\n\n[Idempotent Receiver](IdempotentReceiver.html)\n\n[Service Activator](MessagingAdapter.html)\n\n[Messaging Channels](MessagingChannelsIntro.html)\n\n[Message Channel](MessageChannel.html)\n\n[Point-to-Point Channel](PointToPointChannel.html)\n\n[Publish-Subscr. Channel](PublishSubscribeChannel.html)\n\n[Datatype Channel](DatatypeChannel.html)\n\n[Invalid Message Channel](InvalidMessageChannel.html)\n\n[Dead Letter Channel](DeadLetterChannel.html)\n\n[Guaranteed Delivery](GuaranteedMessaging.html)\n\n[Channel Adapter](ChannelAdapter.html)\n\n[Messaging Bridge](MessagingBridge.html)\n\n[Message Bus](MessageBus.html)\n\n[Systems Mgmt.](SystemManagementIntro.html)\n\n[Control Bus](ControlBus.html)\n\n[Detour](Detour.html)\n\n[Wire Tap](WireTap.html)\n\n[Message History](MessageHistory.html)\n\n[Message Store](MessageStore.html)\n\n[Smart Proxy](SmartProxy.html)\n\n[Test Message](TestMessage.html)\n\n[Channel Purger](ChannelPurger.html)\n\n- » [Read the latest in My Blog](/ramblings)\n- » [Get more insights from My Articles](/articles.html)\n- » [See me live in my Upcoming Talks](/talks)\n\nYou can reuse the following elements under the [Creative Commons Attribution](http://creativecommons.org/licenses/by/4.0/) license: pattern icon, pattern name, problem and solution statements (in bold), and the sketch. Other portions are protected by copyright.\n\n[Enterprise Integration Patterns](https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20)\nThe de-facto language for designing asynchronous, distributed systems. Over 100,000 copies sold.\n\n[The Software Architect Elevator](https://www.architectelevator.com/book)\n\n Rethink the role of architects as a connecting element across organizational layers. Acquire the technical, communication, and organizational skills to succeed in this new role.\n\n[Cloud Strategy](https://www.cloudstrategybook.com)\n\n Make your cloud migration a success by translating high-level goals into conscious decisions with well-understood trade-offs.\n\n[Platform Strategy](https://www.platformstrategybook.info)\n\n Platforms can boost innovation through harmonization, but they aren't easy to build. Learn from over a decade of designing and rolling out IT platforms.", "znaku_textu": 6316, "slov": 518, "odkazu": 109, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 15:34:35", "sha256": "80529c5186ba05ef9282ebe046bd45ab777f928b10c669ac07283c8f970f2066", "hloubka": 4, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://www.amazon.com/exec/obidos/ASIN/0321127420/enterpriseint-20", "http://creativecommons.org/licenses/by/4.0/", "https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "https://www.architectelevator.com/book", "https://www.cloudstrategybook.com/", "https://www.platformstrategybook.info/"]} {"url": "http://www.enterpriseintegrationpatterns.com/MessagingMapper.html", "titulek": "Messaging Mapper - Enterprise Integration Patterns", "h1": "", "popis": "How do you move data between domain objects and the messaging infrastructure while keeping the two independent of each other?", "klicova_slova": "Messaging Mapper,integration, messaging, events, patterns, event-driven, coupling, eai, middleware, application integration, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns", "og:title": "Messaging Mapper - Enterprise Integration Patterns", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/MessagingMapper.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/MessagingMapperClassDiagram.gif"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Integration Pattern Language"}], "markdown": "| | Messaging Mapper[Messaging Patterns](index.html) » [Messaging Endpoints](MessagingEndpointsIntro.html) | [Contents](toc.html)[⇐ Prev](MessagingGateway.html)[Next ⇒](TransactionalClient.html) |\n| --- | --- | --- |\n\nWhen integrating applications using messaging, the data inside a message is often derived from domain objects inside the integrated applications. If we use a [*Document Message*](DocumentMessage.html), the message itself may directly represent one or domain objects. If we use a [*Command Message*](CommandMessage.html), some of the data fields associated with the command are likely to be extracted from domain objects as well. There are some distinct differences between messages and objects. For example, most objects rely on associations in the form of object references and inheritance relationships. Many messaging infrastructures do not support these concepts because they have to be able to communicate with a range of applications, some of which may not be object-oriented at all.\n\nHow do you move data between domain objects and the messaging infrastructure while keeping the two independent of each other?\n\nCreate a separate *Messaging Mapper* that contains the mapping logic between the messaging infrastructure and the domain objects. Neither the objects nor the infrastructure have knowledge of the *Messaging Mapper*'s existence.\n\nThe *Messaging Mapper* accesses one or more domain objects and converts them into a message as required by the messaging channel. It also performs the opposite function, creating or updating domain objects based on incoming messages. Since the *Messaging Mapper* is implemented as a separate class that references the domain object(s) and the messaging layer, neither layer is aware of the other. The layers don't even know about the *Messaging Mapper*.\n\nThe *Messaging Mapper* is a specialization of the *Mapper* pattern defined in [[EAA](http://www.amazon.com/exec/obidos/ASIN/0321127420/enterpriseint-20)]. It shares some analogies with the *Data Mapper* defined in the same book. Anyone who has worked on O-R (Object-Relational) Mapping strategies will understand the complexities of mapping data between layers that use different paradigms. The issues inherent in the *Messaging Mapper* are similarly complex and a detailed discussion of all possible aspects is beyond the scope of this book. Many of the Data Source Architectural Patterns in [[EAA](http://www.amazon.com/exec/obidos/ASIN/0321127420/enterpriseint-20)] make a good read for anyone concerned with creating a *Messaging Mapper* layer.\n\n...\nRead the entire pattern in the book [Enterprise Integration Patterns](/books1.html)\n\n**Related patterns:**\n\n[*Aggregator*](Aggregator.html), [*Canonical Data Model*](CanonicalDataModel.html), [*Command Message*](CommandMessage.html), [*Document Message*](DocumentMessage.html), [*Message Router*](MessageRouter.html), [*Message Translator*](MessageTranslator.html)\n\n---\n\n## Integration Pattern Language\n\n[Message Construct.](MessageConstructionIntro.html)\n\n[Message](Message.html)\n\n[Command Message](CommandMessage.html)\n\n[Document Message](DocumentMessage.html)\n\n[Event Message](EventMessage.html)\n\n[Request-Reply](RequestReply.html)\n\n[Return Address](ReturnAddress.html)\n\n[Correlation Identifier](CorrelationIdentifier.html)\n\n[Message Sequence](MessageSequence.html)\n\n[Message Expiration](MessageExpiration.html)\n\n[Format Indicator](FormatIndicator.html)\n\n[Message Routing](MessageRoutingIntro.html)\n\n[Pipes-and-Filters](PipesAndFilters.html)\n\n[Message Router](MessageRouter.html)\n\n[Content-based Router](ContentBasedRouter.html)\n\n[Message Filter](Filter.html)\n\n[Dynamic Router](DynamicRouter.html)\n\n[Recipient List](RecipientList.html)\n\n[Splitter](Sequencer.html)\n\n[Aggregator](Aggregator.html)\n\n[Resequencer](Resequencer.html)\n\n[Composed Msg. Processor](DistributionAggregate.html)\n\n[Scatter-Gather](BroadcastAggregate.html)\n\n[Routing Slip](RoutingTable.html)\n\n[Process Manager](ProcessManager.html)\n\n[Message Broker](MessageBroker.html)\n\n[Message\nTransformation](MessageTransformationIntro.html)\n\n[Message Translator](MessageTranslator.html)\n\n[Envelope Wrapper](EnvelopeWrapper.html)\n\n[Content Enricher](DataEnricher.html)\n\n[Content Filter](ContentFilter.html)\n\n[Claim Check](StoreInLibrary.html)\n\n[Normalizer](Normalizer.html)\n\n[Canonical Data Model](CanonicalDataModel.html)\n\n[Messaging Endpoints](MessagingEndpointsIntro.html)\n\n[Message Endpoint](MessageEndpoint.html)\n\n[Messaging Gateway](MessagingGateway.html)\n\n[Messaging Mapper](MessagingMapper.html)\n\n[Transactional Client](TransactionalClient.html)\n\n[Polling Consumer](PollingConsumer.html)\n\n[Event-driven Consumer](EventDrivenConsumer.html)\n\n[Competing Consumers](CompetingConsumers.html)\n\n[Message Dispatcher](MessageDispatcher.html)\n\n[Selective Consumer](MessageSelector.html)\n\n[Durable Subscriber](DurableSubscription.html)\n\n[Idempotent Receiver](IdempotentReceiver.html)\n\n[Service Activator](MessagingAdapter.html)\n\n[Messaging Channels](MessagingChannelsIntro.html)\n\n[Message Channel](MessageChannel.html)\n\n[Point-to-Point Channel](PointToPointChannel.html)\n\n[Publish-Subscr. Channel](PublishSubscribeChannel.html)\n\n[Datatype Channel](DatatypeChannel.html)\n\n[Invalid Message Channel](InvalidMessageChannel.html)\n\n[Dead Letter Channel](DeadLetterChannel.html)\n\n[Guaranteed Delivery](GuaranteedMessaging.html)\n\n[Channel Adapter](ChannelAdapter.html)\n\n[Messaging Bridge](MessagingBridge.html)\n\n[Message Bus](MessageBus.html)\n\n[Systems Mgmt.](SystemManagementIntro.html)\n\n[Control Bus](ControlBus.html)\n\n[Detour](Detour.html)\n\n[Wire Tap](WireTap.html)\n\n[Message History](MessageHistory.html)\n\n[Message Store](MessageStore.html)\n\n[Smart Proxy](SmartProxy.html)\n\n[Test Message](TestMessage.html)\n\n[Channel Purger](ChannelPurger.html)", "znaku_textu": 5643, "slov": 531, "odkazu": 109, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 15:34:36", "sha256": "fdd610e2031601d9960698815ed18685d6d54450db5d4a858038258fe3e71a21", "hloubka": 4, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://www.amazon.com/exec/obidos/ASIN/0321127420/enterpriseint-20", "http://creativecommons.org/licenses/by/4.0/", "https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "https://www.architectelevator.com/book", "https://www.cloudstrategybook.com/", "https://www.platformstrategybook.info/"]} {"url": "http://www.enterpriseintegrationpatterns.com/Normalizer.html", "titulek": "Normalizer - Enterprise Integration Patterns", "h1": "", "popis": "How do you process messages that are semantically equivalent, but arrive in a different format?", "klicova_slova": "Normalizer,integration, messaging, events, patterns, event-driven, coupling, eai, middleware, application integration, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns", "og:title": "Normalizer - Enterprise Integration Patterns", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/Normalizer.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/NormalizerDetail.gif"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Integration Pattern Language"}], "markdown": "| | Normalizer[Messaging Patterns](index.html) » [Message Transformation](MessageTransformationIntro.html) | [Contents](toc.html)[⇐ Prev](StoreInLibrary.html)[Next ⇒](CanonicalDataModel.html) |\n| --- | --- | --- |\n\nIn a business-to-business (B2B) integration scenario it is quite common for an enterprise to receive messages from different business partners. These message may have the same meaning, but follow different formats, depending on the partners' internal systems and preferences. For example, we built a solution for a pay-per-view provider that has to accept and process viewership information from over 1700 (!) affiliates, most of which did not conform to a standard format.\n\nHow do you process messages that are semantically equivalent, but arrive in a different format?\n\nUse a *Normalizer* to route each message type through a custom [*Message Translator*](MessageTranslator.html) so that the resulting messages match a common format.\n\nThe *Normalizer* uses a [*Message Router*](MessageRouter.html) to route the incoming message to the correct [*Message Translator*](MessageTranslator.html). This requires the [*Message Router*](MessageRouter.html) to detect the type of the incoming message. Many messaging systems equip each message with a type specifier field in the Message Header to make this type of task simple. However, in many B2B scenarios messages do not arrive as messages compliant with the enterprise's internal messaging system, but in diverse formats such as comma separated files or XML document without associated schema. While it is certainly best practice to equip any incoming data format with a type specifier we know all to well that the world is far from perfect. As a result, we need to think of more general ways to identify the format of the incoming message. One common way for schema-less XML documents is to use the name of the root element to assume the correct type. If multiple data formats use the same root element, you can use XPATH expressions to determine the existence of specific sub-nodes. Comma-separated files can require a little more creativity. Sometimes you can determine the type based on the number of fields and the type of the data (e.g. numeric vs. string). If the data arrives as files, the easiest way may be to use the file name or the file folder structure as a surrogate [*Datatype Channel*](DatatypeChannel.html). Each business partner can name the file with a unique naming convention. The [*Message Router*](MessageRouter.html) can then use the file name to route the message to the appropriate [*Message Translator*](MessageTranslator.html).\n\n...\nRead the entire pattern in the book [Enterprise Integration Patterns](/books1.html)\n\n**Related patterns:**\n\n[*Datatype Channel*](DatatypeChannel.html), [*Message Router*](MessageRouter.html), [*Message Translator*](MessageTranslator.html)\n\n---\n\n## Integration Pattern Language\n\n[Message Construct.](MessageConstructionIntro.html)\n\n[Message](Message.html)\n\n[Command Message](CommandMessage.html)\n\n[Document Message](DocumentMessage.html)\n\n[Event Message](EventMessage.html)\n\n[Request-Reply](RequestReply.html)\n\n[Return Address](ReturnAddress.html)\n\n[Correlation Identifier](CorrelationIdentifier.html)\n\n[Message Sequence](MessageSequence.html)\n\n[Message Expiration](MessageExpiration.html)\n\n[Format Indicator](FormatIndicator.html)\n\n[Message Routing](MessageRoutingIntro.html)\n\n[Pipes-and-Filters](PipesAndFilters.html)\n\n[Message Router](MessageRouter.html)\n\n[Content-based Router](ContentBasedRouter.html)\n\n[Message Filter](Filter.html)\n\n[Dynamic Router](DynamicRouter.html)\n\n[Recipient List](RecipientList.html)\n\n[Splitter](Sequencer.html)\n\n[Aggregator](Aggregator.html)\n\n[Resequencer](Resequencer.html)\n\n[Composed Msg. Processor](DistributionAggregate.html)\n\n[Scatter-Gather](BroadcastAggregate.html)\n\n[Routing Slip](RoutingTable.html)\n\n[Process Manager](ProcessManager.html)\n\n[Message Broker](MessageBroker.html)\n\n[Message\nTransformation](MessageTransformationIntro.html)\n\n[Message Translator](MessageTranslator.html)\n\n[Envelope Wrapper](EnvelopeWrapper.html)\n\n[Content Enricher](DataEnricher.html)\n\n[Content Filter](ContentFilter.html)\n\n[Claim Check](StoreInLibrary.html)\n\n[Normalizer](Normalizer.html)\n\n[Canonical Data Model](CanonicalDataModel.html)\n\n[Messaging Endpoints](MessagingEndpointsIntro.html)\n\n[Message Endpoint](MessageEndpoint.html)\n\n[Messaging Gateway](MessagingGateway.html)\n\n[Messaging Mapper](MessagingMapper.html)\n\n[Transactional Client](TransactionalClient.html)\n\n[Polling Consumer](PollingConsumer.html)\n\n[Event-driven Consumer](EventDrivenConsumer.html)\n\n[Competing Consumers](CompetingConsumers.html)\n\n[Message Dispatcher](MessageDispatcher.html)\n\n[Selective Consumer](MessageSelector.html)\n\n[Durable Subscriber](DurableSubscription.html)\n\n[Idempotent Receiver](IdempotentReceiver.html)\n\n[Service Activator](MessagingAdapter.html)\n\n[Messaging Channels](MessagingChannelsIntro.html)\n\n[Message Channel](MessageChannel.html)\n\n[Point-to-Point Channel](PointToPointChannel.html)\n\n[Publish-Subscr. Channel](PublishSubscribeChannel.html)\n\n[Datatype Channel](DatatypeChannel.html)\n\n[Invalid Message Channel](InvalidMessageChannel.html)\n\n[Dead Letter Channel](DeadLetterChannel.html)\n\n[Guaranteed Delivery](GuaranteedMessaging.html)\n\n[Channel Adapter](ChannelAdapter.html)\n\n[Messaging Bridge](MessagingBridge.html)\n\n[Message Bus](MessageBus.html)\n\n[Systems Mgmt.](SystemManagementIntro.html)\n\n[Control Bus](ControlBus.html)\n\n[Detour](Detour.html)\n\n[Wire Tap](WireTap.html)\n\n[Message History](MessageHistory.html)\n\n[Message Store](MessageStore.html)\n\n[Smart Proxy](SmartProxy.html)\n\n[Test Message](TestMessage.html)\n\n[Channel Purger](ChannelPurger.html)", "znaku_textu": 5583, "slov": 563, "odkazu": 108, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 15:34:31", "sha256": "b7c0a62e8ab41ab534fda9fa15d4b4e0f4c4118a31b58e9d87a0ad89a2eb7b20", "hloubka": 4, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://creativecommons.org/licenses/by/4.0/", "https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "https://www.architectelevator.com/book", "https://www.cloudstrategybook.com/", "https://www.platformstrategybook.info/"]} {"url": "http://www.enterpriseintegrationpatterns.com/PipesAndFilters.html", "titulek": "Pipes and Filters - Enterprise Integration Patterns", "h1": "", "popis": "How can we perform complex processing on a message while maintaining independence and flexibility?", "klicova_slova": "Pipes and Filters,integration, messaging, events, patterns, event-driven, coupling, eai, middleware, application integration, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns", "og:title": "Pipes and Filters - Enterprise Integration Patterns", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/PipesAndFilters.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/PipesAndFilters.gif"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Integration Pattern Language"}], "markdown": "| | Pipes and Filters[Messaging Patterns](index.html) » [Messaging Systems](MessagingComponentsIntro.html) | [Contents](toc.html)[⇐ Prev](Message.html)[Next ⇒](MessageRouter.html) |\n| --- | --- | --- |\n\nIn many enterprise integration scenarios, a single event triggers a sequence of processing steps, each performing a specific function. For example, let's assume a new order arrives in our enterprise in the form of a message. One requirement may be that the message is encrypted to prevent eavesdroppers from spying on a customer's order. A second requirement is that the messages contain authentication information in the form of a digital certificate to ensure that orders are placed only by trusted customers. In addition, duplicate messages could be sent from external parties (remember all the warnings on the popular shopping sites to click the 'Order Now' button only once?). To avoid duplicate shipments and unhappy customers, we need to eliminate duplicate messages before subsequent order processing steps are initiated. To meet these requirements, we need to transform a stream of possibly duplicated, encrypted messages containing extra authentication data into a stream of unique, simple plain-text order messages without the extraneous data fields.\n\nHow can we perform complex processing on a message while maintaining independence and flexibility?\n\nUse the *Pipes and Filters* architectural style to divide a larger processing task into a sequence of smaller, independent processing steps (Filters) that are connected by channels (Pipes).\n\nEach filter exposes a very simple interface: it receives messages on the inbound pipe, processes the message, and publishes the results to the outbound pipe. The pipe connects one filter to the next, sending output messages from one filter to the next. Because all component use the same external interface they can be *composed* into different solutions by connecting the components to different pipes. We can add new filters, omit existing ones or rearrange them into a new sequence -- all without having to change the filters themselves. The connection between filter and pipe is sometimes called *port*. In the basic form, each filter component has one input port and one output port.\n\n...\nRead the entire pattern in the book [Enterprise Integration Patterns](/books1.html)\n\n**Related patterns:**\n\n[*Competing Consumers*](CompetingConsumers.html), [*Content Filter*](ContentFilter.html), [*Event-Driven Consumer*](EventDrivenConsumer.html), [*Message Filter*](Filter.html), [*Message Channel*](MessageChannel.html), [*Message Router*](MessageRouter.html), [*Messaging*](Messaging.html), [*Messaging Gateway*](MessagingGateway.html), [*Point-to-Point Channel*](PointToPointChannel.html), [*Resequencer*](Resequencer.html), [*Test Message*](TestMessage.html), [*Transactional Client*](TransactionalClient.html)\n\n---\n\n## Integration Pattern Language\n\n[Message Construct.](MessageConstructionIntro.html)\n\n[Message](Message.html)\n\n[Command Message](CommandMessage.html)\n\n[Document Message](DocumentMessage.html)\n\n[Event Message](EventMessage.html)\n\n[Request-Reply](RequestReply.html)\n\n[Return Address](ReturnAddress.html)\n\n[Correlation Identifier](CorrelationIdentifier.html)\n\n[Message Sequence](MessageSequence.html)\n\n[Message Expiration](MessageExpiration.html)\n\n[Format Indicator](FormatIndicator.html)\n\n[Message Routing](MessageRoutingIntro.html)\n\n[Pipes-and-Filters](PipesAndFilters.html)\n\n[Message Router](MessageRouter.html)\n\n[Content-based Router](ContentBasedRouter.html)\n\n[Message Filter](Filter.html)\n\n[Dynamic Router](DynamicRouter.html)\n\n[Recipient List](RecipientList.html)\n\n[Splitter](Sequencer.html)\n\n[Aggregator](Aggregator.html)\n\n[Resequencer](Resequencer.html)\n\n[Composed Msg. Processor](DistributionAggregate.html)\n\n[Scatter-Gather](BroadcastAggregate.html)\n\n[Routing Slip](RoutingTable.html)\n\n[Process Manager](ProcessManager.html)\n\n[Message Broker](MessageBroker.html)\n\n[Message\nTransformation](MessageTransformationIntro.html)\n\n[Message Translator](MessageTranslator.html)\n\n[Envelope Wrapper](EnvelopeWrapper.html)\n\n[Content Enricher](DataEnricher.html)\n\n[Content Filter](ContentFilter.html)\n\n[Claim Check](StoreInLibrary.html)\n\n[Normalizer](Normalizer.html)\n\n[Canonical Data Model](CanonicalDataModel.html)\n\n[Messaging Endpoints](MessagingEndpointsIntro.html)\n\n[Message Endpoint](MessageEndpoint.html)\n\n[Messaging Gateway](MessagingGateway.html)\n\n[Messaging Mapper](MessagingMapper.html)\n\n[Transactional Client](TransactionalClient.html)\n\n[Polling Consumer](PollingConsumer.html)\n\n[Event-driven Consumer](EventDrivenConsumer.html)\n\n[Competing Consumers](CompetingConsumers.html)\n\n[Message Dispatcher](MessageDispatcher.html)\n\n[Selective Consumer](MessageSelector.html)\n\n[Durable Subscriber](DurableSubscription.html)\n\n[Idempotent Receiver](IdempotentReceiver.html)\n\n[Service Activator](MessagingAdapter.html)\n\n[Messaging Channels](MessagingChannelsIntro.html)\n\n[Message Channel](MessageChannel.html)\n\n[Point-to-Point Channel](PointToPointChannel.html)\n\n[Publish-Subscr. Channel](PublishSubscribeChannel.html)\n\n[Datatype Channel](DatatypeChannel.html)\n\n[Invalid Message Channel](InvalidMessageChannel.html)\n\n[Dead Letter Channel](DeadLetterChannel.html)\n\n[Guaranteed Delivery](GuaranteedMessaging.html)\n\n[Channel Adapter](ChannelAdapter.html)\n\n[Messaging Bridge](MessagingBridge.html)\n\n[Message Bus](MessageBus.html)\n\n[Systems Mgmt.](SystemManagementIntro.html)\n\n[Control Bus](ControlBus.html)\n\n[Detour](Detour.html)\n\n[Wire Tap](WireTap.html)\n\n[Message History](MessageHistory.html)\n\n[Message Store](MessageStore.html)\n\n[Smart Proxy](SmartProxy.html)\n\n[Test Message](TestMessage.html)\n\n[Channel Purger](ChannelPurger.html)", "znaku_textu": 5586, "slov": 530, "odkazu": 108, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 15:34:11", "sha256": "850988a7f88fc170ad5d90f5791040fff4bc4b42643ce851466db4b4f6fb1d90", "hloubka": 4, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://creativecommons.org/licenses/by/4.0/", "https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "https://www.architectelevator.com/book", "https://www.cloudstrategybook.com/", "https://www.platformstrategybook.info/"]} {"url": "http://www.enterpriseintegrationpatterns.com/PointToPointChannel.html", "titulek": "Point-to-Point Channel - Enterprise Integration Patterns", "h1": "", "popis": "How can the caller be sure that exactly one receiver will receive the document or perform the call?", "klicova_slova": "Point-to-Point Channel,integration, messaging, events, patterns, event-driven, coupling, eai, middleware, application integration, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns", "og:title": "Point-to-Point Channel - Enterprise Integration Patterns", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/PointToPointChannel.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/PointToPointSolution.gif"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Integration Pattern Language"}], "markdown": "Messaging Patterns\n\n[Messaging Patterns](index.html)\n\n- [Integration Styles](IntegrationStylesIntro.html)\n- [Messaging Systems](MessagingComponentsIntro.html)\n- [Messaging Channels](MessagingChannelsIntro.html)\n- [Message Construction](MessageConstructionIntro.html)\n- [Interlude: Simple Messaging](SimpleMessagingIntro.html)\n- [Message Routing](MessageRoutingIntro.html)\n- [Message Transformation](MessageTransformationIntro.html)\n- [Interlude: Composed Messaging](ComposedMessagingExample.html)\n- [Messaging Endpoints](MessagingEndpointsIntro.html)\n- [System Management](SystemManagementIntro.html)\n- Interlude: Systems Management Example\n- Integration Patterns in Practice\n- Concluding Remarks\n- Appendices\n\n| | Point-to-Point Channel[Messaging Patterns](index.html) » [Messaging Channels](MessagingChannelsIntro.html) | [Contents](toc.html)[⇐ Prev](MessagingChannelsIntro.html)[Next ⇒](PublishSubscribeChannel.html) |\n| --- | --- | --- |\n\nAn application is using [*Messaging*](Messaging.html) to make remote procedure calls (RPC’s) or transfer documents.\n\nHow can the caller be sure that exactly one receiver will receive the document or perform the call?\n\nSend the message on a *Point-to-Point Channel*, which ensures that only one receiver will receive a particular message.\n\nA *Point-to-Point Channel* ensures that only one receiver consumes any given message. If the channel has multiple receivers, only one of them can successfully consume a particular message. If multiple receivers try to consume a single message, the channel ensures that only one of them succeeds, so the receivers do not have to coordinate with each other. The channel can still have multiple receivers to consume multiple messages concurrently, but only a single receiver consumes any one message.\n\n...\nRead the entire pattern in the book [Enterprise Integration Patterns](/books1.html)\n\n**Related patterns:**\n\n[*Command Message*](CommandMessage.html), [*Competing Consumers*](CompetingConsumers.html), [*Document Message*](DocumentMessage.html), [*Message*](Message.html), [*Message Channel*](MessageChannel.html), [*Messaging*](Messaging.html), [*Publish-Subscribe Channel*](PublishSubscribeChannel.html), [*Request-Reply*](RequestReply.html)\n\n---\n\n## Integration Pattern Language\n\n[Message Construct.](MessageConstructionIntro.html)\n\n[Message](Message.html)\n\n[Command Message](CommandMessage.html)\n\n[Document Message](DocumentMessage.html)\n\n[Event Message](EventMessage.html)\n\n[Request-Reply](RequestReply.html)\n\n[Return Address](ReturnAddress.html)\n\n[Correlation Identifier](CorrelationIdentifier.html)\n\n[Message Sequence](MessageSequence.html)\n\n[Message Expiration](MessageExpiration.html)\n\n[Format Indicator](FormatIndicator.html)\n\n[Message Routing](MessageRoutingIntro.html)\n\n[Pipes-and-Filters](PipesAndFilters.html)\n\n[Message Router](MessageRouter.html)\n\n[Content-based Router](ContentBasedRouter.html)\n\n[Message Filter](Filter.html)\n\n[Dynamic Router](DynamicRouter.html)\n\n[Recipient List](RecipientList.html)\n\n[Splitter](Sequencer.html)\n\n[Aggregator](Aggregator.html)\n\n[Resequencer](Resequencer.html)\n\n[Composed Msg. Processor](DistributionAggregate.html)\n\n[Scatter-Gather](BroadcastAggregate.html)\n\n[Routing Slip](RoutingTable.html)\n\n[Process Manager](ProcessManager.html)\n\n[Message Broker](MessageBroker.html)\n\n[Message\nTransformation](MessageTransformationIntro.html)\n\n[Message Translator](MessageTranslator.html)\n\n[Envelope Wrapper](EnvelopeWrapper.html)\n\n[Content Enricher](DataEnricher.html)\n\n[Content Filter](ContentFilter.html)\n\n[Claim Check](StoreInLibrary.html)\n\n[Normalizer](Normalizer.html)\n\n[Canonical Data Model](CanonicalDataModel.html)\n\n[Messaging Endpoints](MessagingEndpointsIntro.html)\n\n[Message Endpoint](MessageEndpoint.html)\n\n[Messaging Gateway](MessagingGateway.html)\n\n[Messaging Mapper](MessagingMapper.html)\n\n[Transactional Client](TransactionalClient.html)\n\n[Polling Consumer](PollingConsumer.html)\n\n[Event-driven Consumer](EventDrivenConsumer.html)\n\n[Competing Consumers](CompetingConsumers.html)\n\n[Message Dispatcher](MessageDispatcher.html)\n\n[Selective Consumer](MessageSelector.html)\n\n[Durable Subscriber](DurableSubscription.html)\n\n[Idempotent Receiver](IdempotentReceiver.html)\n\n[Service Activator](MessagingAdapter.html)\n\n[Messaging Channels](MessagingChannelsIntro.html)\n\n[Message Channel](MessageChannel.html)\n\n[Point-to-Point Channel](PointToPointChannel.html)\n\n[Publish-Subscr. Channel](PublishSubscribeChannel.html)\n\n[Datatype Channel](DatatypeChannel.html)\n\n[Invalid Message Channel](InvalidMessageChannel.html)\n\n[Dead Letter Channel](DeadLetterChannel.html)\n\n[Guaranteed Delivery](GuaranteedMessaging.html)\n\n[Channel Adapter](ChannelAdapter.html)\n\n[Messaging Bridge](MessagingBridge.html)\n\n[Message Bus](MessageBus.html)\n\n[Systems Mgmt.](SystemManagementIntro.html)\n\n[Control Bus](ControlBus.html)\n\n[Detour](Detour.html)\n\n[Wire Tap](WireTap.html)\n\n[Message History](MessageHistory.html)\n\n[Message Store](MessageStore.html)\n\n[Smart Proxy](SmartProxy.html)\n\n[Test Message](TestMessage.html)\n\n[Channel Purger](ChannelPurger.html)\n\n- » [Read the latest in My Blog](/ramblings)\n- » [Get more insights from My Articles](/articles.html)\n- » [See me live in my Upcoming Talks](/talks)\n\nYou can reuse the following elements under the [Creative Commons Attribution](http://creativecommons.org/licenses/by/4.0/) license: pattern icon, pattern name, problem and solution statements (in bold), and the sketch. Other portions are protected by copyright.\n\n[Enterprise Integration Patterns](https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20)\nThe de-facto language for designing asynchronous, distributed systems. Over 100,000 copies sold.\n\n[The Software Architect Elevator](https://www.architectelevator.com/book)\n\n Rethink the role of architects as a connecting element across organizational layers. Acquire the technical, communication, and organizational skills to succeed in this new role.\n\n[Cloud Strategy](https://www.cloudstrategybook.com)\n\n Make your cloud migration a success by translating high-level goals into conscious decisions with well-understood trade-offs.\n\n[Platform Strategy](https://www.platformstrategybook.info)\n\n Platforms can boost innovation through harmonization, but they aren't easy to build. Learn from over a decade of designing and rolling out IT platforms.", "znaku_textu": 6181, "slov": 514, "odkazu": 108, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 15:34:48", "sha256": "d49b1e29621d358d9132f88cf051f320778547c1136a5e97c5a9467dd9631291", "hloubka": 4, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://creativecommons.org/licenses/by/4.0/", "https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "https://www.architectelevator.com/book", "https://www.cloudstrategybook.com/", "https://www.platformstrategybook.info/"]} {"url": "http://www.enterpriseintegrationpatterns.com/PollingConsumer.html", "titulek": "Polling Consumer - Enterprise Integration Patterns", "h1": "", "popis": "How can an application consume a message when the application is ready?", "klicova_slova": "Polling Consumer,integration, messaging, events, patterns, event-driven, coupling, eai, middleware, application integration, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns", "og:title": "Polling Consumer - Enterprise Integration Patterns", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/PollingConsumer.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/PollingConsumerSolution.gif"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Integration Pattern Language"}], "markdown": "Messaging Patterns\n\n[Messaging Patterns](index.html)\n\n- [Integration Styles](IntegrationStylesIntro.html)\n- [Messaging Systems](MessagingComponentsIntro.html)\n- [Messaging Channels](MessagingChannelsIntro.html)\n- [Message Construction](MessageConstructionIntro.html)\n- [Interlude: Simple Messaging](SimpleMessagingIntro.html)\n- [Message Routing](MessageRoutingIntro.html)\n- [Message Transformation](MessageTransformationIntro.html)\n- [Interlude: Composed Messaging](ComposedMessagingExample.html)\n- [Messaging Endpoints](MessagingEndpointsIntro.html)\n- [System Management](SystemManagementIntro.html)\n- Interlude: Systems Management Example\n- Integration Patterns in Practice\n- Concluding Remarks\n- Appendices\n\n| | Polling Consumer[Messaging Patterns](index.html) » [Messaging Endpoints](MessagingEndpointsIntro.html) | [Contents](toc.html)[⇐ Prev](TransactionalClient.html)[Next ⇒](EventDrivenConsumer.html) |\n| --- | --- | --- |\n\nAn application needs to consume [*Message*](Message.html)s, but it wants to control when it consumes each message.\n\nHow can an application consume a message when the application is ready?\n\nThe application should use a *Polling Consumer*, one that explicitly makes a call when it wants to receive a message.\n\nThis is also known as a synchronous receiver, because the receiver thread blocks until a message is received. We call it a *Polling Consumer* because the receiver polls for a message, processes it, then polls for another. As a convenience, messaging API’s usually provide a receive method that blocks until a message is delivered, in addition to methods like receiveNoWait() and Receive(0) that return immediately if no message is available. This difference is only apparent when the receiver is polling faster than messages are arriving.\n\nA *Polling Consumer* is an object that an application uses to receive messages by explicitly requesting them. When the application is ready for another message, it polls the consumer, which in turn gets a message from the messaging system and returns it. (How the consumer gets the message from the messaging system is implementation-specific and may or may not involve polling. All the application knows is that it doesn’t get the message until it explicitly asks for one.)\n\n...\nRead the entire pattern in the book [Enterprise Integration Patterns](/books1.html)\n\n**Related patterns:**\n\n[*Competing Consumers*](CompetingConsumers.html), [*Durable Subscriber*](DurableSubscription.html), [*Event-Driven Consumer*](EventDrivenConsumer.html), [*Message*](Message.html), [*Message Dispatcher*](MessageDispatcher.html), [*Selective Consumer*](MessageSelector.html), [*Transactional Client*](TransactionalClient.html)\n\n---\n\n## Integration Pattern Language\n\n[Message Construct.](MessageConstructionIntro.html)\n\n[Message](Message.html)\n\n[Command Message](CommandMessage.html)\n\n[Document Message](DocumentMessage.html)\n\n[Event Message](EventMessage.html)\n\n[Request-Reply](RequestReply.html)\n\n[Return Address](ReturnAddress.html)\n\n[Correlation Identifier](CorrelationIdentifier.html)\n\n[Message Sequence](MessageSequence.html)\n\n[Message Expiration](MessageExpiration.html)\n\n[Format Indicator](FormatIndicator.html)\n\n[Message Routing](MessageRoutingIntro.html)\n\n[Pipes-and-Filters](PipesAndFilters.html)\n\n[Message Router](MessageRouter.html)\n\n[Content-based Router](ContentBasedRouter.html)\n\n[Message Filter](Filter.html)\n\n[Dynamic Router](DynamicRouter.html)\n\n[Recipient List](RecipientList.html)\n\n[Splitter](Sequencer.html)\n\n[Aggregator](Aggregator.html)\n\n[Resequencer](Resequencer.html)\n\n[Composed Msg. Processor](DistributionAggregate.html)\n\n[Scatter-Gather](BroadcastAggregate.html)\n\n[Routing Slip](RoutingTable.html)\n\n[Process Manager](ProcessManager.html)\n\n[Message Broker](MessageBroker.html)\n\n[Message\nTransformation](MessageTransformationIntro.html)\n\n[Message Translator](MessageTranslator.html)\n\n[Envelope Wrapper](EnvelopeWrapper.html)\n\n[Content Enricher](DataEnricher.html)\n\n[Content Filter](ContentFilter.html)\n\n[Claim Check](StoreInLibrary.html)\n\n[Normalizer](Normalizer.html)\n\n[Canonical Data Model](CanonicalDataModel.html)\n\n[Messaging Endpoints](MessagingEndpointsIntro.html)\n\n[Message Endpoint](MessageEndpoint.html)\n\n[Messaging Gateway](MessagingGateway.html)\n\n[Messaging Mapper](MessagingMapper.html)\n\n[Transactional Client](TransactionalClient.html)\n\n[Polling Consumer](PollingConsumer.html)\n\n[Event-driven Consumer](EventDrivenConsumer.html)\n\n[Competing Consumers](CompetingConsumers.html)\n\n[Message Dispatcher](MessageDispatcher.html)\n\n[Selective Consumer](MessageSelector.html)\n\n[Durable Subscriber](DurableSubscription.html)\n\n[Idempotent Receiver](IdempotentReceiver.html)\n\n[Service Activator](MessagingAdapter.html)\n\n[Messaging Channels](MessagingChannelsIntro.html)\n\n[Message Channel](MessageChannel.html)\n\n[Point-to-Point Channel](PointToPointChannel.html)\n\n[Publish-Subscr. Channel](PublishSubscribeChannel.html)\n\n[Datatype Channel](DatatypeChannel.html)\n\n[Invalid Message Channel](InvalidMessageChannel.html)\n\n[Dead Letter Channel](DeadLetterChannel.html)\n\n[Guaranteed Delivery](GuaranteedMessaging.html)\n\n[Channel Adapter](ChannelAdapter.html)\n\n[Messaging Bridge](MessagingBridge.html)\n\n[Message Bus](MessageBus.html)\n\n[Systems Mgmt.](SystemManagementIntro.html)\n\n[Control Bus](ControlBus.html)\n\n[Detour](Detour.html)\n\n[Wire Tap](WireTap.html)\n\n[Message History](MessageHistory.html)\n\n[Message Store](MessageStore.html)\n\n[Smart Proxy](SmartProxy.html)\n\n[Test Message](TestMessage.html)\n\n[Channel Purger](ChannelPurger.html)\n\n- » [Read the latest in My Blog](/ramblings)\n- » [Get more insights from My Articles](/articles.html)\n- » [See me live in my Upcoming Talks](/talks)\n\nYou can reuse the following elements under the [Creative Commons Attribution](http://creativecommons.org/licenses/by/4.0/) license: pattern icon, pattern name, problem and solution statements (in bold), and the sketch. Other portions are protected by copyright.\n\n[Enterprise Integration Patterns](https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20)\nThe de-facto language for designing asynchronous, distributed systems. Over 100,000 copies sold.\n\n[The Software Architect Elevator](https://www.architectelevator.com/book)\n\n Rethink the role of architects as a connecting element across organizational layers. Acquire the technical, communication, and organizational skills to succeed in this new role.\n\n[Cloud Strategy](https://www.cloudstrategybook.com)\n\n Make your cloud migration a success by translating high-level goals into conscious decisions with well-understood trade-offs.\n\n[Platform Strategy](https://www.platformstrategybook.info)\n\n Platforms can boost innovation through harmonization, but they aren't easy to build. Learn from over a decade of designing and rolling out IT platforms.", "znaku_textu": 6644, "slov": 589, "odkazu": 108, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 15:34:38", "sha256": "b984d2d43aec030f6c035d9abe848cd7cd7f7970c3b35a74fdbfbfd38d59f391", "hloubka": 4, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://creativecommons.org/licenses/by/4.0/", "https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "https://www.architectelevator.com/book", "https://www.cloudstrategybook.com/", "https://www.platformstrategybook.info/"]} {"url": "http://www.enterpriseintegrationpatterns.com/Preface.html", "titulek": "Preface - Enterprise Integration Patterns", "h1": "", "popis": "This is a book about enterprise integration using messaging. It does not document any particular technology or product. Rather, it is designed for developers and integrators using a variety of messaging products and technologies, such as:", "klicova_slova": "Preface,integration, messaging, events, patterns, event-driven, coupling, eai, middleware, application integration, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns", "og:title": "Preface - Enterprise Integration Patterns", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/Preface.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/eip1_patterns_wide.png"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Who Should Read This Book"}, {"uroven": 2, "text": "What You Will Learn"}, {"uroven": 2, "text": "What This Book Does Not Cover"}, {"uroven": 2, "text": "How This Book Is Organized"}, {"uroven": 2, "text": "Acknowledgements"}, {"uroven": 2, "text": "About the Cover Picture"}, {"uroven": 2, "text": "Integration Pattern Language"}], "markdown": "| | Preface[Messaging Patterns](index.html) | [Contents](toc.html)[⇐ Prev](toc.html)[Next ⇒](Introduction.html) |\n| --- | --- | --- |\n\nThis is a book about enterprise integration using messaging. It does not document any particular technology or product. Rather, it is designed for developers and integrators using a variety of messaging products and technologies, such as:\n\n- Message-oriented middleware (MOM) and integration suites offered by vendors such as the IBM (WebSphere MQ Family), Microsoft (BizTalk), TIBCO, WebMethods, SeeBeyond, Vitria, and others\n- Java Message Service (JMS) implementations incorporated into commercial and open-source J2EE application servers as well as standalone products\n- Microsoft’s Message Queuing (MSMQ), accessible through several API’s, including the System.Messaging libraries in Microsoft .NET\n- Emerging Web services standards that support asynchronous Web services (for example, WS-ReliableMessaging) and the associated API’s such as Sun’s Java API for XML Messaging (JAXM) or Microsoft’s Web Services Extensions (WSE).\n\nEnterprise integration goes beyond creating a single application with a distributed n-tier architecture, which enables a single application to be distributed across several computers. Whereas one tier in a distributed application cannot run by itself, integrated applications are independent programs that can each run by itself, yet that function by coordinating with each other in a loosely coupled way. Messaging enables data or commands to be sent across the network using a “send and forget” approach where the caller sends the information and then goes on to other work while the information is transmitted by the messaging system. Optionally, the caller can later be notified of the result through a callback. Asynchronous calls and callbacks can make a design more complex than a synchronous approach, but an asynchronous call can be retried until it succeeds, which makes the communication much more reliable. Asynchronous messaging also enables several other advantages such as throttling of requests and load balancing.\n\n## Who Should Read This Book\n\nThis book is designed to help application developers and system integrators connect applications using message-oriented middleware products:\n\n- **Application architects and developers** who design and build complex enterprise applications that need to integrate with other applications. We assume that you’re developing your applications using a modern enterprise application platform such as the Java 2 Platform, Enterprise Edition (J2EE) or the Microsoft .NET framework. This book will help you connect the application to a messaging layer and exchange information with other applications. This book focuses on the integration of applications, not on building applications; for that, we refer you to *Patterns of Enterprise Application Architecture* by Martin Fowler.\n- **Integration architects and developers** who design and build integration solutions connecting packaged or custom applications. Most readers in this group will have experience with one of the many commercial integration tools like IBM WebSphere MQ, TIBCO, WebMethods, SeeBeyond, Vitria, etc. Many of these tools incorporate the patterns presented in this book. This book helps readers understand the underlying concepts and make confident design decisions using a vendor-independent vocabulary.\n- **Enterprise Architects** have to maintain the \"big picture\" view of the software and hardware assets in an enterprise. This book presents a consistent language to describe large-scale integration solutions that may span across many technologies or point solutions. This language is also a key enabler for efficient communication between the enterprise architect and the integration and application architects and developers.\n\n## What You Will Learn\n\nThis book does not attempt to make a business case for enterprise application integration; the focus is on how to make it work. Readers of this book will learn how to integrate enterprise applications by understanding:\n\n- The advantages and limitations of messaging as compared to other integration techniques\n- How to determine the message channels your applications will need, how to control whether multiple consumers can receive the same message, and how to handle invalid messages\n- When to send a message, what it should contain, and how to use special message properties\n- How to route a message to its ultimate destination even when the sender does not know where that is\n- How to convert messages when the sender and receiver do not agree on a common format\n- How to design the code that connects an application to the messaging system\n- How to manage and monitor a messaging system once it’s in use as part of the enterprise\n\nEven readers who are familiar with these practices will benefit from having them documented and being able to use them to facilitate communication with their colleagues.\n\n## What This Book Does Not Cover\n\nWe believe that any book sporting the word \"enterprise\" in the title is likely to fall into one of three categories. Either it attempts to cover the whole breadth of the subject matter and will be forced to stop short of detailed guidance on how to implement actual solutions. Or, the book will provide specific hands-on guidance on the development of actual solutions but is forced to constrain the scope of the subject area it addresses. Lastly, books that attempt to do both are likely to never get finished or are published so late as to be irrelevant. We opted for the second choice and hopefully created a book that helps people create better integration solutions even though we had to limit the scope of the book. Topics that we would have loved to discuss but had to exclude in order not to fall into the category three trap include security, complex data mapping, workflow, rule engines, scalability and robustness, and distributed transaction processing (XA, Tuxedo and the like). We chose asynchronous messaging as the emphasis for this book because it is full of interesting design issues and trade-offs and provides a clean abstraction from the many implementation provided by various integration vendors.\n\nThis book is also not a tutorial on a specific messaging or middleware technology. You will find examples based on a number of different technologies in this book, such as JMS, MSMQ, TIBCO, Microsoft BizTalk, XSL etc. We included these examples for illustrative purposes to show readers how the pattern could be translated into an actual implementation. If you are interested in learning more about any of these specific technologies, please refer to one of the books referenced in the bibliography or one of the many on-line resources.\n\n## How This Book Is Organized\n\nThe core of the book contains 65 patterns that form a pattern language. Books such as *Design Patterns*, *Pattern Oriented Software Architecture*, *Core J2EE Patterns*, and *Patterns of Enterprise Application Architecture* have popularized the notion of using patterns to document computer-programming techniques. The concept of patterns and pattern languages was originally applied to city and building architecture by Christopher Alexander in his seminal works *A Pattern Language* and *A Timeless Way of Building*. To help the reader design an integration solution, each pattern represents a decision that the reader must make, explains the considerations that affect the decision, and presents a well regarded solution to guide the decision. A pattern language is a web of related patterns where each pattern leads to others, guiding the reader through the decision making process. This approach is a powerful technique for documenting an expert’s knowledge so that it can be readily understood and applied by non-experts.\n\nA pattern language teaches the reader how to solve a limitless variety of problems within a bounded problem space. Because the overall problem that is being solved is different every time, the path through the patterns and how they’re applied is also unique. In this way, this book was written for anyone using any messaging or integration tools for any purpose, but can be applied specifically for you and the specific application of messaging that you are facing.\n\nPatterns describe commonly accepted solutions to recurring problems, so if you’re an experienced developer of message-oriented integration solutions, many of these patterns will seem familiar to you. Yet even if you already recognize most of these patterns, there is still value in reviewing this book. This book should validate your hard-earned understanding of how to use messaging. It gives you a consolidated reference to help you pass your knowledge effectively to less-experienced colleagues. It also documents details of the solutions and relationships between them that you may not have been aware of. Finally, the pattern names give you a common vocabulary to efficiently discuss integration design alternatives with your peers.\n\n## Acknowledgements\n\nLike most books, *Enterprise Integration Patterns* has been a long time in the making. The idea of writing about message-based integration patterns dates back to the summer of 2001 when Martin was working on *Patterns of Enterprise Application Architecture*. At that time, it struck Kyle that while *P of EAA* talked a lot about how to create applications, it touches only briefly on how to integrate them. This idea was the starting point for a series of meetings between Martin and Kyle that also included Rachel Reinitz and John Crupi. Bobby joined these discussions in the fall of 2001, followed by Gregor in early 2002. The following summer the group submitted two papers for review at the Pattern Languages of Programs (PLoP) conference, one authored jointly by Bobby and Kyle and the other by Gregor. After the conference, Kyle and Martin refocused on their own book projects while Gregor and Bobby merged their papers to form the basis for the book. At the same time, the [www.enterpriseintegrationpatterns.com](http://www.enterpriseintegrationpatterns.com) site went live to allow integration architects and developers around the world to participate in the rapid evolution of the content. As they worked on the book, Gregor and Bobby invited contributors to help round out the book’s content. About two years after Kyle's original idea, the final manuscript arrived at the publisher.\n\nThis book would not have been possible without the help from a long list of contributors. *Names here...*\n\n## About the Cover Picture\n\nThe common theme for books in the *Martin Fowler Signature Series* is a picture of a bridge. In some sense we lucked out, because what theme would make a better match for a book on integration? For Thousands of years, bridges have helped connect people from different shores, mountains or sides of the road.\n\nWe selected a picture of the Taiko-bashi Bridge at the Sumiyoshi-taisha Shrine in Osaka, Japan for its simple elegance and beauty. As a Shinto shrine dedicated to the guardian deity for sailors, it was originally erected next to the water. Interestingly, land reclamation has pushed the water away so that the shrine today stands almost three miles inland. Some 3 million people visit this shrine at the beginning of a new year.\n\n## Integration Pattern Language\n\n[Message Construct.](MessageConstructionIntro.html)\n\n[Message](Message.html)\n\n[Command Message](CommandMessage.html)\n\n[Document Message](DocumentMessage.html)\n\n[Event Message](EventMessage.html)\n\n[Request-Reply](RequestReply.html)\n\n[Return Address](ReturnAddress.html)\n\n[Correlation Identifier](CorrelationIdentifier.html)\n\n[Message Sequence](MessageSequence.html)\n\n[Message Expiration](MessageExpiration.html)\n\n[Format Indicator](FormatIndicator.html)\n\n[Message Routing](MessageRoutingIntro.html)\n\n[Pipes-and-Filters](PipesAndFilters.html)\n\n[Message Router](MessageRouter.html)\n\n[Content-based Router](ContentBasedRouter.html)\n\n[Message Filter](Filter.html)\n\n[Dynamic Router](DynamicRouter.html)\n\n[Recipient List](RecipientList.html)\n\n[Splitter](Sequencer.html)\n\n[Aggregator](Aggregator.html)\n\n[Resequencer](Resequencer.html)\n\n[Composed Msg. Processor](DistributionAggregate.html)\n\n[Scatter-Gather](BroadcastAggregate.html)\n\n[Routing Slip](RoutingTable.html)\n\n[Process Manager](ProcessManager.html)\n\n[Message Broker](MessageBroker.html)\n\n[Message\nTransformation](MessageTransformationIntro.html)\n\n[Message Translator](MessageTranslator.html)\n\n[Envelope Wrapper](EnvelopeWrapper.html)\n\n[Content Enricher](DataEnricher.html)\n\n[Content Filter](ContentFilter.html)\n\n[Claim Check](StoreInLibrary.html)\n\n[Normalizer](Normalizer.html)\n\n[Canonical Data Model](CanonicalDataModel.html)\n\n[Messaging Endpoints](MessagingEndpointsIntro.html)\n\n[Message Endpoint](MessageEndpoint.html)\n\n[Messaging Gateway](MessagingGateway.html)\n\n[Messaging Mapper](MessagingMapper.html)\n\n[Transactional Client](TransactionalClient.html)\n\n[Polling Consumer](PollingConsumer.html)\n\n[Event-driven Consumer](EventDrivenConsumer.html)\n\n[Competing Consumers](CompetingConsumers.html)\n\n[Message Dispatcher](MessageDispatcher.html)\n\n[Selective Consumer](MessageSelector.html)\n\n[Durable Subscriber](DurableSubscription.html)\n\n[Idempotent Receiver](IdempotentReceiver.html)\n\n[Service Activator](MessagingAdapter.html)\n\n[Messaging Channels](MessagingChannelsIntro.html)\n\n[Message Channel](MessageChannel.html)\n\n[Point-to-Point Channel](PointToPointChannel.html)\n\n[Publish-Subscr. Channel](PublishSubscribeChannel.html)\n\n[Datatype Channel](DatatypeChannel.html)\n\n[Invalid Message Channel](InvalidMessageChannel.html)\n\n[Dead Letter Channel](DeadLetterChannel.html)\n\n[Guaranteed Delivery](GuaranteedMessaging.html)\n\n[Channel Adapter](ChannelAdapter.html)\n\n[Messaging Bridge](MessagingBridge.html)\n\n[Message Bus](MessageBus.html)\n\n[Systems Mgmt.](SystemManagementIntro.html)\n\n[Control Bus](ControlBus.html)\n\n[Detour](Detour.html)\n\n[Wire Tap](WireTap.html)\n\n[Message History](MessageHistory.html)\n\n[Message Store](MessageStore.html)\n\n[Smart Proxy](SmartProxy.html)\n\n[Test Message](TestMessage.html)\n\n[Channel Purger](ChannelPurger.html)", "znaku_textu": 13957, "slov": 1887, "odkazu": 108, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-16 17:03:45", "sha256": "857cfd138de6e7cf9f307a38ee9d904624b3bc279bbdc42df6ec7237b8125d77", "hloubka": 5, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "https://www.architectelevator.com/book", "https://www.cloudstrategybook.com/", "https://www.platformstrategybook.info/"]} {"url": "http://www.enterpriseintegrationpatterns.com/ProcessManager.html", "titulek": "Process Manager - Enterprise Integration Patterns", "h1": "", "popis": "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?", "klicova_slova": "Process Manager,integration, messaging, events, patterns, event-driven, coupling, eai, middleware, application integration, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns", "og:title": "Process Manager - Enterprise Integration Patterns", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/ProcessManager.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/ProcessManager.gif"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Example: Serverless Loan Broker with AWS Step FunctionsNEW"}, {"uroven": 2, "text": "Example: Serverless Loan Broker with GCP WorkflowsNEW"}, {"uroven": 2, "text": "Integration Pattern Language"}], "markdown": "| | Process Manager[Messaging Patterns](index.html) » [Message Routing](MessageRoutingIntro.html) | [Contents](toc.html)[⇐ Prev](RoutingTable.html)[Next ⇒](MessageBroker.html) |\n| --- | --- | --- |\n\nThe [*Routing Slip*](RoutingTable.html) demonstrates how a message can be routed through a dynamic series of processing steps. The solution of the [*Routing Slip*](RoutingTable.html) is based on two key assumptions: the sequence of processing steps has to be determined up-front and the sequence is linear. In many cases, these assumptions may not be fulfilled. For example, routing decisions might have to be made based on intermediate results. Or, the processing steps may not be sequential, but multiple steps might be executed in parallel.\n\nHow 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?\n\nUse a central processing unit, a *Process Manager*, to maintain the state of the sequence and determine the next processing step based on intermediate results.\n\nFirst of all, let me clarify that the design and configuration of a *Process Manager* is a pretty extensive topic. We could probably fill a whole book (Volume 2, maybe?) with patterns related to the design of workflow or business process management. Therefore, this pattern is intended primarily to \"round off\" the topic of routing patterns and to provide a pointer into the direction of workflow and process modeling. By no means is it a comprehensive treatment of business process design.\n\nUsing a *Process Manager* results in a so-called hub-and-spoke pattern of message flow (see diagram). An incoming message initializes the *Process Manager*. We call this message the *trigger message*. Based on the rules inside the *Process Manager*, it sends a message (1) to the first processing step, implemented by Processing Unit A. After unit A completes its task it sends a reply message back to the *Process Manager*. Next, the *Process Manager* determines the next step to be executed and sends message (2) to the next processing unit. As a result, all message traffic runs through this central 'hub', hence the term hub-and-spoke. The downside of this central control element is the danger of turning the *Process Manager* into a performance bottleneck.\n\nThe versatility of a *Process Manager* is at the same time its biggest strength and weakness. A *Process Manager* can execute any sequence of steps, sequential or in parallel. Therefore, almost any integration problem can be solved with a *Process Manager*. Likewise, most of the patterns introduced in this chapter could be implemented using a *Process Manager*. In fact, many EAI vendors make you believe that every integration problem is a process problem. We think that using a *Process Manager* for every situation may be overkill. It can distract from the core design issue and also cause significant performance overhead.\n\n...\nRead the entire pattern in the book [Enterprise Integration Patterns](/books1.html)\n\n## Example: Serverless Loan Broker with AWS Step Functions[NEW](/ramblings/eip1_examples_updated.html)\n\nThe [implementation of the Loan Broker example with AWS serverless services](/ramblings/loanbroker_stepfunctions.html) employs [AWS Step Functions](https://aws.amazon.com/step-functions) as *Process Manager*. Step Functions orchestrates a series of tasks and maintains state across tasks in a JSON document, which covers the characteristics of a *Process Manager* quote well.\n\n## Example: Serverless Loan Broker with GCP Workflows[NEW](/ramblings/eip1_examples_updated.html)\n\nThe [implementation of the Loan Broker example with GCP](/ramblings/loanbroker_gcp_workflows.html) employs [GCP Workflows](https://cloud.google.com/blog/products/application-development/get-to-know-google-cloud-workflows) as *Process Manager*.\n\n**Related patterns:**\n\n[*Aggregator*](Aggregator.html), [*Asynchronous Implementation with MSMQ*](ComposedMessagingMSMQ.html), [*Asynchronous Implementation with TIBCO ActiveEnterprise*](ComposedMessagingTIBCO.html), [*Content-Based Router*](ContentBasedRouter.html), [*Correlation Identifier*](CorrelationIdentifier.html), [*Emerging Standards and Futures in Enterprise Integration*](Future.html), [*Message Channel*](MessageChannel.html), [*Message History*](MessageHistory.html), [*Message Store*](MessageStore.html), [*Message Translator*](MessageTranslator.html), [*Pipes and Filters*](PipesAndFilters.html), [*Publish-Subscribe Channel*](PublishSubscribeChannel.html), [*Routing Slip*](RoutingTable.html), [*Claim Check*](StoreInLibrary.html)\n\n---\n\n## Integration Pattern Language\n\n[Message Construct.](MessageConstructionIntro.html)\n\n[Message](Message.html)\n\n[Command Message](CommandMessage.html)\n\n[Document Message](DocumentMessage.html)\n\n[Event Message](EventMessage.html)\n\n[Request-Reply](RequestReply.html)\n\n[Return Address](ReturnAddress.html)\n\n[Correlation Identifier](CorrelationIdentifier.html)\n\n[Message Sequence](MessageSequence.html)\n\n[Message Expiration](MessageExpiration.html)\n\n[Format Indicator](FormatIndicator.html)\n\n[Message Routing](MessageRoutingIntro.html)\n\n[Pipes-and-Filters](PipesAndFilters.html)\n\n[Message Router](MessageRouter.html)\n\n[Content-based Router](ContentBasedRouter.html)\n\n[Message Filter](Filter.html)\n\n[Dynamic Router](DynamicRouter.html)\n\n[Recipient List](RecipientList.html)\n\n[Splitter](Sequencer.html)\n\n[Aggregator](Aggregator.html)\n\n[Resequencer](Resequencer.html)\n\n[Composed Msg. Processor](DistributionAggregate.html)\n\n[Scatter-Gather](BroadcastAggregate.html)\n\n[Routing Slip](RoutingTable.html)\n\n[Process Manager](ProcessManager.html)\n\n[Message Broker](MessageBroker.html)\n\n[Message\nTransformation](MessageTransformationIntro.html)\n\n[Message Translator](MessageTranslator.html)\n\n[Envelope Wrapper](EnvelopeWrapper.html)\n\n[Content Enricher](DataEnricher.html)\n\n[Content Filter](ContentFilter.html)\n\n[Claim Check](StoreInLibrary.html)\n\n[Normalizer](Normalizer.html)\n\n[Canonical Data Model](CanonicalDataModel.html)\n\n[Messaging Endpoints](MessagingEndpointsIntro.html)\n\n[Message Endpoint](MessageEndpoint.html)\n\n[Messaging Gateway](MessagingGateway.html)\n\n[Messaging Mapper](MessagingMapper.html)\n\n[Transactional Client](TransactionalClient.html)\n\n[Polling Consumer](PollingConsumer.html)\n\n[Event-driven Consumer](EventDrivenConsumer.html)\n\n[Competing Consumers](CompetingConsumers.html)\n\n[Message Dispatcher](MessageDispatcher.html)\n\n[Selective Consumer](MessageSelector.html)\n\n[Durable Subscriber](DurableSubscription.html)\n\n[Idempotent Receiver](IdempotentReceiver.html)\n\n[Service Activator](MessagingAdapter.html)\n\n[Messaging Channels](MessagingChannelsIntro.html)\n\n[Message Channel](MessageChannel.html)\n\n[Point-to-Point Channel](PointToPointChannel.html)\n\n[Publish-Subscr. Channel](PublishSubscribeChannel.html)\n\n[Datatype Channel](DatatypeChannel.html)\n\n[Invalid Message Channel](InvalidMessageChannel.html)\n\n[Dead Letter Channel](DeadLetterChannel.html)\n\n[Guaranteed Delivery](GuaranteedMessaging.html)\n\n[Channel Adapter](ChannelAdapter.html)\n\n[Messaging Bridge](MessagingBridge.html)\n\n[Message Bus](MessageBus.html)\n\n[Systems Mgmt.](SystemManagementIntro.html)\n\n[Control Bus](ControlBus.html)\n\n[Detour](Detour.html)\n\n[Wire Tap](WireTap.html)\n\n[Message History](MessageHistory.html)\n\n[Message Store](MessageStore.html)\n\n[Smart Proxy](SmartProxy.html)\n\n[Test Message](TestMessage.html)\n\n[Channel Purger](ChannelPurger.html)", "znaku_textu": 7287, "slov": 767, "odkazu": 113, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 15:34:23", "sha256": "ac6e6180c5ee20833a84ff28fc856851828832cdbefd1fc3db2807007d4cbbd1", "hloubka": 4, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://aws.amazon.com/step-functions", "https://cloud.google.com/blog/products/application-development/get-to-know-google-cloud-workflows", "http://creativecommons.org/licenses/by/4.0/", "https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "https://www.architectelevator.com/book", "https://www.cloudstrategybook.com/", "https://www.platformstrategybook.info/"]} {"url": "http://www.enterpriseintegrationpatterns.com/PublishSubscribeChannel.html", "titulek": "Publish-Subscribe Channel - Enterprise Integration Patterns", "h1": "", "popis": "How can the sender broadcast an event to all interested receivers?", "klicova_slova": "Publish-Subscribe Channel,integration, messaging, events, patterns, event-driven, coupling, eai, middleware, application integration, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns", "og:title": "Publish-Subscribe Channel - Enterprise Integration Patterns", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/PublishSubscribeChannel.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/PublishSubscribeSolution.gif"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Example: Google Cloud Pub/SubNEW"}, {"uroven": 2, "text": "Integration Pattern Language"}], "markdown": "| | Publish-Subscribe Channel[Messaging Patterns](index.html) » [Messaging Channels](MessagingChannelsIntro.html) | [Contents](toc.html)[⇐ Prev](PointToPointChannel.html)[Next ⇒](DatatypeChannel.html) |\n| --- | --- | --- |\n\nAn application is using [*Messaging*](Messaging.html) to announce events.\n\nHow can the sender broadcast an event to all interested receivers?\n\nSend the event on a *Publish-Subscribe Channel*, which delivers a copy of a particular event to each receiver.\n\nA *Publish-Subscribe Channel* works like this: It has one input channel that splits into multiple output channels, one for each subscriber. When an event is published into the channel, the *Publish-Subscribe Channel* delivers a copy of the message to each of the output channels. Each output channel has only one subscriber, which is only allowed to consume a message once. In this way, each subscriber only gets the message once and consumed copies disappear from their channels.\n\nA *Publish-Subscribe Channel* can be a useful debugging tool. Even though a message is destined to only a single receiver, using a *Publish-Subscribe Channel* allows you to eavesdrop on a message channel without disturbing the existing message flow. Monitoring all traffic on a channel can be tremendously helpful when debugging messaging applications. It can also save you from inserting a ton of print statements into each application that participates in the messaging solution. Creating a program that listens for messages on all active channels and logs them to a file can realize many of the same benefits that a [*Message Store*](MessageStore.html) brings.\n\n...\nRead the entire pattern in the book [Enterprise Integration Patterns](/books1.html)\n\n## Example: Google Cloud Pub/Sub[NEW](/ramblings/eip1_examples_updated.html)\n\n[Google Cloud Pub/Sub](https://cloud.google.com/pubsub/overview) offers both [*Competing Consumers*](CompetingConsumers.html) and *Publish-Subscribe Channel* semantics, managed through *topics* (Publish-Subcribe) and *subscriptions* (Competing Consumers) as illustrated in this diagram:\n\n*Google Cloud Pub-Sub Concept Overview*\n\nIn this example, both *Subscriber Y* and *Subscriber Z* each receive a copy of *Message 3* as they are subscribing to the same *Topic C*, but through separate subscriptions. Google Cloud Pub/Sub does not support wildcard subscriptions.\n\nGoogle provides client API libraries that make coding against the cloud service relatively simple. The client code has to authenticate first and create topics before messages can be published. Subscriptions are created on the fly.\n\nA stand-alone application can authenticate using private keys:\n\n```\nPubsub pubsub;\n \nvoid createClient(String private_key_file, String email) throws IOException, GeneralSecurityException {\n HttpTransport transport = GoogleNetHttpTransport.newTrustedTransport();\n GoogleCredential credential = new GoogleCredential.Builder()\n .setTransport(transport)\n .setJsonFactory(JSON_FACTORY)\n .setServiceAccountScopes(PubsubScopes.all())\n .setServiceAccountId(email)\n .setServiceAccountPrivateKeyFromP12File(new File(private_key_file))\n .build();\n pubsub = new Pubsub.Builder(transport, JSON_FACTORY, credential)\n .setApplicationName(\"eaipubsub\")\n .build();\n}\n```\n\nusing the PubSub instance, you can create a new topic if it doesn't already exist:\n\n```\nTopic createTopic(String topicName) throws IOException {\n String topic = getTopic(topicName); // adds project name and resource type\n Pubsub.Projects.Topics topics = pubsub.projects().topics();\n ListTopicsResponse list = topics.list(project).execute();\n if (list.getTopics() == null || !list.getTopics().contains(new Topic().setName(topic))) {\n return topics.create(topic, new Topic()).execute();\n } else {\n return new Topic().setName(topic);\n }\n}\n```\n\nNow the code is ready to publish a message to the topic, returning the published message IDs:\n\n```\nList publishMessage(String topicName, String data) throws IOException {\n List messages = Lists.newArrayList();\n messages.add(new PubsubMessage().encodeData(data.getBytes(\"UTF-8\")));\n PublishRequest publishRequest = new PublishRequest().setMessages(messages);\n PublishResponse publishResponse = pubsub.projects().topics()\n .publish(getTopic(topicName), publishRequest)\n .execute();\n return publishResponse.getMessageIds();\n}\n```\n\nSubscriptions are identified by a name and a topic so multiple subscribers can compete for messages off the same subscription or create individual subscriptions for the same topic. If a subscription already exists, the underlying REST API throws an exception, which we can simply ignore.\n\n```\nSubscription subscribeTopic(String subscriptionName, String topicName) throws IOException {\n String sub = getSubscription(subscriptionName); // adds project name and resource type\n Subscription subscription = new Subscription()\n .setName(sub)\n .setAckDeadlineSeconds(15)\n .setTopic(getTopic(topicName));\n try {\n return pubsub.projects().subscriptions().create(sub, subscription).execute();\n } catch (GoogleJsonResponseException e) {\n if (e.getStatusCode() == HttpURLConnection.HTTP_CONFLICT) {\n return subscription;\n } else {\n throw e;\n }\n }\n}\n```\n\nNow everything is in place to pull messages off the subscription. The code is a bit verbose because it has to navigate collections that allow receiving multiple messages at once. It also has to convert the payload back into a *String* for this simple demo implementation:\n\n```\nList pullMessage(Subscription subscription, int maxMessages, boolean doAck) throws IOException {\n PullRequest pullRequest = new PullRequest()\n .setReturnImmediately(true)\n .setMaxMessages(maxMessages);\n PullResponse response = pubsub.projects().subscriptions().pull(subscription.getName(), pullRequest).execute();\n List messages = response.getReceivedMessages();\n List ackIds = Lists.newArrayList();\n List data = Lists.newArrayList();\n if (messages != null) {\n for (ReceivedMessage receivedMessage : messages) {\n PubsubMessage message = receivedMessage.getMessage();\n if (message != null) {\n byte[] bytes = message.decodeData();\n if (bytes != null) {\n data.add(new String(bytes, \"UTF-8\"));\n }\n }\n ackIds.add(receivedMessage.getAckId());\n }\n if (doAck) {\n AcknowledgeRequest ackRequest = new AcknowledgeRequest().setAckIds(ackIds);\n pubsub.projects().subscriptions().acknowledge(subscription.getName(), ackRequest).execute();\n }\n }\n return data;\n}\n```\n\nFind the source for this code snippet on [Github](https://github.com/spac3lord/eip/tree/master/GoogleCloudPubSub).\n\n**Related patterns:**\n\n[*Competing Consumers*](CompetingConsumers.html), [*Durable Subscriber*](DurableSubscription.html), [*Event Message*](EventMessage.html), [*Message*](Message.html), [*Message Channel*](MessageChannel.html), [*Message Store*](MessageStore.html), [*Messaging*](Messaging.html), [*JMS Publish/Subscribe Example*](ObserverJmsExample.html), [*Point-to-Point Channel*](PointToPointChannel.html), [*Request-Reply*](RequestReply.html)\n\n**Further reading:**\n\n- [Free Gift with Subscription (Pattern)](/ramblings/83_subscribing.html)\n- [Pub-Sub and Related Topics](/ramblings/17_acmconference.html)\n\n---\n\n## Integration Pattern Language\n\n[Message Construct.](MessageConstructionIntro.html)\n\n[Message](Message.html)\n\n[Command Message](CommandMessage.html)\n\n[Document Message](DocumentMessage.html)\n\n[Event Message](EventMessage.html)\n\n[Request-Reply](RequestReply.html)\n\n[Return Address](ReturnAddress.html)\n\n[Correlation Identifier](CorrelationIdentifier.html)\n\n[Message Sequence](MessageSequence.html)\n\n[Message Expiration](MessageExpiration.html)\n\n[Format Indicator](FormatIndicator.html)\n\n[Message Routing](MessageRoutingIntro.html)\n\n[Pipes-and-Filters](PipesAndFilters.html)\n\n[Message Router](MessageRouter.html)\n\n[Content-based Router](ContentBasedRouter.html)\n\n[Message Filter](Filter.html)\n\n[Dynamic Router](DynamicRouter.html)\n\n[Recipient List](RecipientList.html)\n\n[Splitter](Sequencer.html)\n\n[Aggregator](Aggregator.html)\n\n[Resequencer](Resequencer.html)\n\n[Composed Msg. Processor](DistributionAggregate.html)\n\n[Scatter-Gather](BroadcastAggregate.html)\n\n[Routing Slip](RoutingTable.html)\n\n[Process Manager](ProcessManager.html)\n\n[Message Broker](MessageBroker.html)\n\n[Message\nTransformation](MessageTransformationIntro.html)\n\n[Message Translator](MessageTranslator.html)\n\n[Envelope Wrapper](EnvelopeWrapper.html)\n\n[Content Enricher](DataEnricher.html)\n\n[Content Filter](ContentFilter.html)\n\n[Claim Check](StoreInLibrary.html)\n\n[Normalizer](Normalizer.html)\n\n[Canonical Data Model](CanonicalDataModel.html)\n\n[Messaging Endpoints](MessagingEndpointsIntro.html)\n\n[Message Endpoint](MessageEndpoint.html)\n\n[Messaging Gateway](MessagingGateway.html)\n\n[Messaging Mapper](MessagingMapper.html)\n\n[Transactional Client](TransactionalClient.html)\n\n[Polling Consumer](PollingConsumer.html)\n\n[Event-driven Consumer](EventDrivenConsumer.html)\n\n[Competing Consumers](CompetingConsumers.html)\n\n[Message Dispatcher](MessageDispatcher.html)\n\n[Selective Consumer](MessageSelector.html)\n\n[Durable Subscriber](DurableSubscription.html)\n\n[Idempotent Receiver](IdempotentReceiver.html)\n\n[Service Activator](MessagingAdapter.html)\n\n[Messaging Channels](MessagingChannelsIntro.html)\n\n[Message Channel](MessageChannel.html)\n\n[Point-to-Point Channel](PointToPointChannel.html)\n\n[Publish-Subscr. Channel](PublishSubscribeChannel.html)\n\n[Datatype Channel](DatatypeChannel.html)\n\n[Invalid Message Channel](InvalidMessageChannel.html)\n\n[Dead Letter Channel](DeadLetterChannel.html)\n\n[Guaranteed Delivery](GuaranteedMessaging.html)\n\n[Channel Adapter](ChannelAdapter.html)\n\n[Messaging Bridge](MessagingBridge.html)\n\n[Message Bus](MessageBus.html)\n\n[Systems Mgmt.](SystemManagementIntro.html)\n\n[Control Bus](ControlBus.html)\n\n[Detour](Detour.html)\n\n[Wire Tap](WireTap.html)\n\n[Message History](MessageHistory.html)\n\n[Message Store](MessageStore.html)\n\n[Smart Proxy](SmartProxy.html)\n\n[Test Message](TestMessage.html)\n\n[Channel Purger](ChannelPurger.html)", "znaku_textu": 9823, "slov": 943, "odkazu": 113, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 15:34:49", "sha256": "ecc6aeec40253b2dba2f326af9fce678bb110a0d26902339f2184db7129196b4", "hloubka": 4, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://cloud.google.com/pubsub/overview", "https://github.com/spac3lord/eip/tree/master/GoogleCloudPubSub", "http://creativecommons.org/licenses/by/4.0/", "https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "https://www.architectelevator.com/book", "https://www.cloudstrategybook.com/", "https://www.platformstrategybook.info/"]} {"url": "http://www.enterpriseintegrationpatterns.com/RecipientList.html", "titulek": "Recipient List - Enterprise Integration Patterns", "h1": "", "popis": "How do we route a message to a list of dynamically specified recipients?", "klicova_slova": "Recipient List,integration, messaging, events, patterns, event-driven, coupling, eai, middleware, application integration, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns", "og:title": "Recipient List - Enterprise Integration Patterns", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/RecipientList.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/RecipientList.gif"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Integration Pattern Language"}], "markdown": "| | Recipient List[Messaging Patterns](index.html) » [Message Routing](MessageRoutingIntro.html) | [Contents](toc.html)[⇐ Prev](DynamicRouter.html)[Next ⇒](Sequencer.html) |\n| --- | --- | --- |\n\nA [*Content-Based Router*](ContentBasedRouter.html) allows us to route a message to the correct system based on message content. This process is transparent to the original sender in the sense that the originator simply sends the message to a channel, where the router picks it up and takes care of everything.\n\nIn some cases, though, we may want to specify one or more recipients for the message. A common analogy are the recipient lists implemented in most e-mail systems. For each e-mail message, the sender can specify a list of recipients. The mail system then ensures transport of the message content to each recipient. An example from the domain of enterprise integration would be a situation where a function can be performed by one or more providers. For example, we may have a contract with multiple credit agencies to assess the credit worthiness of our customers. When a small order comes in we may simply route the credit request message to one credit agency. If a customer places a large order, we may want to route the credit request message to multiple agencies and compare the results before making a decision. In this case, the list of recipients depends on the dollar value of the order.\n\nIn another situation, we may want to route an order message to a select list of suppliers to obtain a quote for the requested item. Rather than sending the request to all vendors, we may want to control which vendors receive the request, possibly based on user preferences\n\nHow do we route a message to a list of dynamically specified recipients?\n\nDefine a channel for each recipient. Then use a *Recipient List* to inspect an incoming message, determine the list of desired recipients, and forward the message to all channels associated with the recipients in the list.\n\nThe logic embedded in a *Recipient List* can be pictured as two separate parts even though the implementation is often coupled together. The first part computes a list of recipients. The second part simply traverses the list and sends a copy of the received message to each recipient. Just like a [*Content-Based Router*](ContentBasedRouter.html), the *Recipient List* usually does not modify the message contents.\n\n...\nRead the entire pattern in the book [Enterprise Integration Patterns](/books1.html)\n\n**Related patterns:**\n\n[*Aggregator*](Aggregator.html), [*Scatter-Gather*](BroadcastAggregate.html), [*Introduction to Composed Messaging Examples*](ComposedMessagingExample.html), [*Content-Based Router*](ContentBasedRouter.html), [*Dynamic Router*](DynamicRouter.html), [*Message Filter*](Filter.html), [*Idempotent Receiver*](IdempotentReceiver.html), [*Message Router*](MessageRouter.html), [*Selective Consumer*](MessageSelector.html), [*Point-to-Point Channel*](PointToPointChannel.html), [*Publish-Subscribe Channel*](PublishSubscribeChannel.html)\n\n---\n\n## Integration Pattern Language\n\n[Message Construct.](MessageConstructionIntro.html)\n\n[Message](Message.html)\n\n[Command Message](CommandMessage.html)\n\n[Document Message](DocumentMessage.html)\n\n[Event Message](EventMessage.html)\n\n[Request-Reply](RequestReply.html)\n\n[Return Address](ReturnAddress.html)\n\n[Correlation Identifier](CorrelationIdentifier.html)\n\n[Message Sequence](MessageSequence.html)\n\n[Message Expiration](MessageExpiration.html)\n\n[Format Indicator](FormatIndicator.html)\n\n[Message Routing](MessageRoutingIntro.html)\n\n[Pipes-and-Filters](PipesAndFilters.html)\n\n[Message Router](MessageRouter.html)\n\n[Content-based Router](ContentBasedRouter.html)\n\n[Message Filter](Filter.html)\n\n[Dynamic Router](DynamicRouter.html)\n\n[Recipient List](RecipientList.html)\n\n[Splitter](Sequencer.html)\n\n[Aggregator](Aggregator.html)\n\n[Resequencer](Resequencer.html)\n\n[Composed Msg. Processor](DistributionAggregate.html)\n\n[Scatter-Gather](BroadcastAggregate.html)\n\n[Routing Slip](RoutingTable.html)\n\n[Process Manager](ProcessManager.html)\n\n[Message Broker](MessageBroker.html)\n\n[Message\nTransformation](MessageTransformationIntro.html)\n\n[Message Translator](MessageTranslator.html)\n\n[Envelope Wrapper](EnvelopeWrapper.html)\n\n[Content Enricher](DataEnricher.html)\n\n[Content Filter](ContentFilter.html)\n\n[Claim Check](StoreInLibrary.html)\n\n[Normalizer](Normalizer.html)\n\n[Canonical Data Model](CanonicalDataModel.html)\n\n[Messaging Endpoints](MessagingEndpointsIntro.html)\n\n[Message Endpoint](MessageEndpoint.html)\n\n[Messaging Gateway](MessagingGateway.html)\n\n[Messaging Mapper](MessagingMapper.html)\n\n[Transactional Client](TransactionalClient.html)\n\n[Polling Consumer](PollingConsumer.html)\n\n[Event-driven Consumer](EventDrivenConsumer.html)\n\n[Competing Consumers](CompetingConsumers.html)\n\n[Message Dispatcher](MessageDispatcher.html)\n\n[Selective Consumer](MessageSelector.html)\n\n[Durable Subscriber](DurableSubscription.html)\n\n[Idempotent Receiver](IdempotentReceiver.html)\n\n[Service Activator](MessagingAdapter.html)\n\n[Messaging Channels](MessagingChannelsIntro.html)\n\n[Message Channel](MessageChannel.html)\n\n[Point-to-Point Channel](PointToPointChannel.html)\n\n[Publish-Subscr. Channel](PublishSubscribeChannel.html)\n\n[Datatype Channel](DatatypeChannel.html)\n\n[Invalid Message Channel](InvalidMessageChannel.html)\n\n[Dead Letter Channel](DeadLetterChannel.html)\n\n[Guaranteed Delivery](GuaranteedMessaging.html)\n\n[Channel Adapter](ChannelAdapter.html)\n\n[Messaging Bridge](MessagingBridge.html)\n\n[Message Bus](MessageBus.html)\n\n[Systems Mgmt.](SystemManagementIntro.html)\n\n[Control Bus](ControlBus.html)\n\n[Detour](Detour.html)\n\n[Wire Tap](WireTap.html)\n\n[Message History](MessageHistory.html)\n\n[Message Store](MessageStore.html)\n\n[Smart Proxy](SmartProxy.html)\n\n[Test Message](TestMessage.html)\n\n[Channel Purger](ChannelPurger.html)", "znaku_textu": 5751, "slov": 585, "odkazu": 108, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 15:34:16", "sha256": "42c235550196a7d27adb2b0a36e15e83c330ab5d225478bb229c34eb6e869ece", "hloubka": 4, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://creativecommons.org/licenses/by/4.0/", "https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "https://www.architectelevator.com/book", "https://www.cloudstrategybook.com/", "https://www.platformstrategybook.info/"]} {"url": "http://www.enterpriseintegrationpatterns.com/RequestReply.html", "titulek": "Request-Reply - Enterprise Integration Patterns", "h1": "", "popis": "When an application sends a message, how can it get a response from the receiver?", "klicova_slova": "Request-Reply,integration, messaging, events, patterns, event-driven, coupling, eai, middleware, application integration, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns", "og:title": "Request-Reply - Enterprise Integration Patterns", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/RequestReply.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/RequestReply.gif"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Integration Pattern Language"}], "markdown": "| | Request-Reply[Messaging Patterns](index.html) » [Message Construction](MessageConstructionIntro.html) | [Contents](toc.html)[⇐ Prev](EventMessage.html)[Next ⇒](ReturnAddress.html) |\n| --- | --- | --- |\n\nWhen two applications communicate via [*Messaging*](Messaging.html), the communication is one-way. The applications may want a two-way conversation.\n\nWhen an application sends a message, how can it get a response from the receiver?\n\nSend a pair of *Request-Reply* messages, each on its own channel.\n\n*Request-Reply* has two participants:\n\n1. **Requestor** – Sends a request message and waits for a reply message.\n2. **Replier** – Receives the request message and responds with a reply message.\n\nThe request channel can be a [*Point-to-Point Channel*](PointToPointChannel.html) or a [*Publish-Subscribe Channel*](PublishSubscribeChannel.html). The difference is whether the request should be broadcast to all interested parties or should only be processed by a single consumer. The reply channel, on the other hand, is almost always point-to-point, because it usually makes no sense to broadcast replies–they should only be returned to the requestor.\n\nWhen a caller performs a [*Remote Procedure Invocation*](EncapsulatedSynchronousIntegration.html), the caller's thread must block while it waits for the response. With *Request-Reply*, the requestor has two approaches for receiving the reply:\n\n1. **Synchronous Block** – A single thread in the caller sends the request message, blocks (as a [*Polling Consumer*](PollingConsumer.html) ) to wait for the reply message, then processes the reply. This is simple to implement, but if the requestor crashes, it will have difficulty re-establishing the blocked thread. The request thread awaiting the response implies that there is only one outstanding request, or that the reply channel for this request is private for this thread.\n2. **Asynchronous Callback** – One thread in the caller sends the request message and sets up a callback for the reply. A separate thread listens for reply messages. When a reply message arrives, the reply thread invokes the appropriate callback, which re-establishes the caller's context and processes the reply. This approach enables multiple outstanding requests to share a single reply channel, and a single reply thread to process replies for multiple request threads. If the requestor crashes, it can recover by simply restarting the reply thread. An added complexity, however, is the callback mechanism that must re-establish the caller's context.\n\n...\nRead the entire pattern in the book [Enterprise Integration Patterns](/books1.html)\n\n**Related patterns:**\n\n[*Command Message*](CommandMessage.html), [*Correlation Identifier*](CorrelationIdentifier.html), [*Document Message*](DocumentMessage.html), [*Remote Procedure Invocation*](EncapsulatedSynchronousIntegration.html), [*Event Message*](EventMessage.html), [*Guaranteed Delivery*](GuaranteedMessaging.html), [*Message*](Message.html), [*Message Channel*](MessageChannel.html), [*Message Sequence*](MessageSequence.html), [*Messaging*](Messaging.html), [*Point-to-Point Channel*](PointToPointChannel.html), [*Polling Consumer*](PollingConsumer.html), [*Publish-Subscribe Channel*](PublishSubscribeChannel.html), [*Return Address*](ReturnAddress.html)\n\n**Further reading:**\n\n- [Will the real asynchrony please stand up?](/ramblings/28_asynchrony.html)\n- [Can You Say \"Synchronous Asymmetry or Asynchronous Symmetry\"?](/ramblings/26_symmetry.html)\n- [Correlation and Conversations](/ramblings/09_correlation.html)\n\n---\n\n## Integration Pattern Language\n\n[Message Construct.](MessageConstructionIntro.html)\n\n[Message](Message.html)\n\n[Command Message](CommandMessage.html)\n\n[Document Message](DocumentMessage.html)\n\n[Event Message](EventMessage.html)\n\n[Request-Reply](RequestReply.html)\n\n[Return Address](ReturnAddress.html)\n\n[Correlation Identifier](CorrelationIdentifier.html)\n\n[Message Sequence](MessageSequence.html)\n\n[Message Expiration](MessageExpiration.html)\n\n[Format Indicator](FormatIndicator.html)\n\n[Message Routing](MessageRoutingIntro.html)\n\n[Pipes-and-Filters](PipesAndFilters.html)\n\n[Message Router](MessageRouter.html)\n\n[Content-based Router](ContentBasedRouter.html)\n\n[Message Filter](Filter.html)\n\n[Dynamic Router](DynamicRouter.html)\n\n[Recipient List](RecipientList.html)\n\n[Splitter](Sequencer.html)\n\n[Aggregator](Aggregator.html)\n\n[Resequencer](Resequencer.html)\n\n[Composed Msg. Processor](DistributionAggregate.html)\n\n[Scatter-Gather](BroadcastAggregate.html)\n\n[Routing Slip](RoutingTable.html)\n\n[Process Manager](ProcessManager.html)\n\n[Message Broker](MessageBroker.html)\n\n[Message\nTransformation](MessageTransformationIntro.html)\n\n[Message Translator](MessageTranslator.html)\n\n[Envelope Wrapper](EnvelopeWrapper.html)\n\n[Content Enricher](DataEnricher.html)\n\n[Content Filter](ContentFilter.html)\n\n[Claim Check](StoreInLibrary.html)\n\n[Normalizer](Normalizer.html)\n\n[Canonical Data Model](CanonicalDataModel.html)\n\n[Messaging Endpoints](MessagingEndpointsIntro.html)\n\n[Message Endpoint](MessageEndpoint.html)\n\n[Messaging Gateway](MessagingGateway.html)\n\n[Messaging Mapper](MessagingMapper.html)\n\n[Transactional Client](TransactionalClient.html)\n\n[Polling Consumer](PollingConsumer.html)\n\n[Event-driven Consumer](EventDrivenConsumer.html)\n\n[Competing Consumers](CompetingConsumers.html)\n\n[Message Dispatcher](MessageDispatcher.html)\n\n[Selective Consumer](MessageSelector.html)\n\n[Durable Subscriber](DurableSubscription.html)\n\n[Idempotent Receiver](IdempotentReceiver.html)\n\n[Service Activator](MessagingAdapter.html)\n\n[Messaging Channels](MessagingChannelsIntro.html)\n\n[Message Channel](MessageChannel.html)\n\n[Point-to-Point Channel](PointToPointChannel.html)\n\n[Publish-Subscr. Channel](PublishSubscribeChannel.html)\n\n[Datatype Channel](DatatypeChannel.html)\n\n[Invalid Message Channel](InvalidMessageChannel.html)\n\n[Dead Letter Channel](DeadLetterChannel.html)\n\n[Guaranteed Delivery](GuaranteedMessaging.html)\n\n[Channel Adapter](ChannelAdapter.html)\n\n[Messaging Bridge](MessagingBridge.html)\n\n[Message Bus](MessageBus.html)\n\n[Systems Mgmt.](SystemManagementIntro.html)\n\n[Control Bus](ControlBus.html)\n\n[Detour](Detour.html)\n\n[Wire Tap](WireTap.html)\n\n[Message History](MessageHistory.html)\n\n[Message Store](MessageStore.html)\n\n[Smart Proxy](SmartProxy.html)\n\n[Test Message](TestMessage.html)\n\n[Channel Purger](ChannelPurger.html)", "znaku_textu": 6253, "slov": 604, "odkazu": 111, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 15:34:04", "sha256": "6d79d9ec15c68a7547682feb84c4adaea407795c64a69c98b6fed273eb2cea5f", "hloubka": 4, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://creativecommons.org/licenses/by/4.0/", "https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "https://www.architectelevator.com/book", "https://www.cloudstrategybook.com/", "https://www.platformstrategybook.info/"]} {"url": "http://www.enterpriseintegrationpatterns.com/Resequencer.html", "titulek": "Resequencer - Enterprise Integration Patterns", "h1": "", "popis": "How can we get a stream of related but out-of-sequence messages back into the correct order?", "klicova_slova": "Resequencer,integration, messaging, events, patterns, event-driven, coupling, eai, middleware, application integration, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns", "og:title": "Resequencer - Enterprise Integration Patterns", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/Resequencer.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/Resequencer.gif"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Integration Pattern Language"}], "markdown": "Messaging Patterns\n\n[Messaging Patterns](index.html)\n\n- [Integration Styles](IntegrationStylesIntro.html)\n- [Messaging Systems](MessagingComponentsIntro.html)\n- [Messaging Channels](MessagingChannelsIntro.html)\n- [Message Construction](MessageConstructionIntro.html)\n- [Interlude: Simple Messaging](SimpleMessagingIntro.html)\n- [Message Routing](MessageRoutingIntro.html)\n- [Message Transformation](MessageTransformationIntro.html)\n- [Interlude: Composed Messaging](ComposedMessagingExample.html)\n- [Messaging Endpoints](MessagingEndpointsIntro.html)\n- [System Management](SystemManagementIntro.html)\n- Interlude: Systems Management Example\n- Integration Patterns in Practice\n- Concluding Remarks\n- Appendices\n\n| | Resequencer[Messaging Patterns](index.html) » [Message Routing](MessageRoutingIntro.html) | [Contents](toc.html)[⇐ Prev](Aggregator.html)[Next ⇒](DistributionAggregate.html) |\n| --- | --- | --- |\n\nA [*Message Router*](MessageRouter.html) can route messages from one channel to different channels based on message content or other criteria. Because individual messages may follow different routes, some messages are likely to pass through the processing steps sooner than others, resulting in the messages getting out of order. However, some subsequent processing steps do require in-sequence processing of messages, for example to maintain referential integrity.\n\nHow can we get a stream of related but out-of-sequence messages back into the correct order?\n\nUse a stateful filter, a *Resequencer*, to collect and re-order messages so that they can be published to the output channel in a specified order.\n\nThe *Resequencer* can receive a stream of messages that may not arrive in order. The *Resequencer* contains in internal buffer to store out-of-sequence messages until a complete sequence is obtained. The in-sequence messages are then published to the output channel. It is important that the output channel is order-preserving so messages are guaranteed to arrive in order at the next component. Like most other routers, a *Resequencer* usually does not modify the message contents.\n\n...\nRead the entire pattern in the book [Enterprise Integration Patterns](/books1.html)\n\n**Related patterns:**\n\n[*Aggregator*](Aggregator.html), [*Competing Consumers*](CompetingConsumers.html), [*Message Router*](MessageRouter.html), [*Message Sequence*](MessageSequence.html), [*Pipes and Filters*](PipesAndFilters.html), [*Splitter*](Sequencer.html), [*Test Message*](TestMessage.html)\n\n---\n\n## Integration Pattern Language\n\n[Message Construct.](MessageConstructionIntro.html)\n\n[Message](Message.html)\n\n[Command Message](CommandMessage.html)\n\n[Document Message](DocumentMessage.html)\n\n[Event Message](EventMessage.html)\n\n[Request-Reply](RequestReply.html)\n\n[Return Address](ReturnAddress.html)\n\n[Correlation Identifier](CorrelationIdentifier.html)\n\n[Message Sequence](MessageSequence.html)\n\n[Message Expiration](MessageExpiration.html)\n\n[Format Indicator](FormatIndicator.html)\n\n[Message Routing](MessageRoutingIntro.html)\n\n[Pipes-and-Filters](PipesAndFilters.html)\n\n[Message Router](MessageRouter.html)\n\n[Content-based Router](ContentBasedRouter.html)\n\n[Message Filter](Filter.html)\n\n[Dynamic Router](DynamicRouter.html)\n\n[Recipient List](RecipientList.html)\n\n[Splitter](Sequencer.html)\n\n[Aggregator](Aggregator.html)\n\n[Resequencer](Resequencer.html)\n\n[Composed Msg. Processor](DistributionAggregate.html)\n\n[Scatter-Gather](BroadcastAggregate.html)\n\n[Routing Slip](RoutingTable.html)\n\n[Process Manager](ProcessManager.html)\n\n[Message Broker](MessageBroker.html)\n\n[Message\nTransformation](MessageTransformationIntro.html)\n\n[Message Translator](MessageTranslator.html)\n\n[Envelope Wrapper](EnvelopeWrapper.html)\n\n[Content Enricher](DataEnricher.html)\n\n[Content Filter](ContentFilter.html)\n\n[Claim Check](StoreInLibrary.html)\n\n[Normalizer](Normalizer.html)\n\n[Canonical Data Model](CanonicalDataModel.html)\n\n[Messaging Endpoints](MessagingEndpointsIntro.html)\n\n[Message Endpoint](MessageEndpoint.html)\n\n[Messaging Gateway](MessagingGateway.html)\n\n[Messaging Mapper](MessagingMapper.html)\n\n[Transactional Client](TransactionalClient.html)\n\n[Polling Consumer](PollingConsumer.html)\n\n[Event-driven Consumer](EventDrivenConsumer.html)\n\n[Competing Consumers](CompetingConsumers.html)\n\n[Message Dispatcher](MessageDispatcher.html)\n\n[Selective Consumer](MessageSelector.html)\n\n[Durable Subscriber](DurableSubscription.html)\n\n[Idempotent Receiver](IdempotentReceiver.html)\n\n[Service Activator](MessagingAdapter.html)\n\n[Messaging Channels](MessagingChannelsIntro.html)\n\n[Message Channel](MessageChannel.html)\n\n[Point-to-Point Channel](PointToPointChannel.html)\n\n[Publish-Subscr. Channel](PublishSubscribeChannel.html)\n\n[Datatype Channel](DatatypeChannel.html)\n\n[Invalid Message Channel](InvalidMessageChannel.html)\n\n[Dead Letter Channel](DeadLetterChannel.html)\n\n[Guaranteed Delivery](GuaranteedMessaging.html)\n\n[Channel Adapter](ChannelAdapter.html)\n\n[Messaging Bridge](MessagingBridge.html)\n\n[Message Bus](MessageBus.html)\n\n[Systems Mgmt.](SystemManagementIntro.html)\n\n[Control Bus](ControlBus.html)\n\n[Detour](Detour.html)\n\n[Wire Tap](WireTap.html)\n\n[Message History](MessageHistory.html)\n\n[Message Store](MessageStore.html)\n\n[Smart Proxy](SmartProxy.html)\n\n[Test Message](TestMessage.html)\n\n[Channel Purger](ChannelPurger.html)\n\n- » [Read the latest in My Blog](/ramblings)\n- » [Get more insights from My Articles](/articles.html)\n- » [See me live in my Upcoming Talks](/talks)\n\nYou can reuse the following elements under the [Creative Commons Attribution](http://creativecommons.org/licenses/by/4.0/) license: pattern icon, pattern name, problem and solution statements (in bold), and the sketch. Other portions are protected by copyright.\n\n[Enterprise Integration Patterns](https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20)\nThe de-facto language for designing asynchronous, distributed systems. Over 100,000 copies sold.\n\n[The Software Architect Elevator](https://www.architectelevator.com/book)\n\n Rethink the role of architects as a connecting element across organizational layers. Acquire the technical, communication, and organizational skills to succeed in this new role.\n\n[Cloud Strategy](https://www.cloudstrategybook.com)\n\n Make your cloud migration a success by translating high-level goals into conscious decisions with well-understood trade-offs.\n\n[Platform Strategy](https://www.platformstrategybook.info)\n\n Platforms can boost innovation through harmonization, but they aren't easy to build. Learn from over a decade of designing and rolling out IT platforms.", "znaku_textu": 6444, "slov": 562, "odkazu": 108, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 15:34:19", "sha256": "cafe3058fa70fe3bda25f83941e1ac604875e172d2388f6a334c7ff84327f42f", "hloubka": 4, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://creativecommons.org/licenses/by/4.0/", "https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "https://www.architectelevator.com/book", "https://www.cloudstrategybook.com/", "https://www.platformstrategybook.info/"]} {"url": "http://www.enterpriseintegrationpatterns.com/ReturnAddress.html", "titulek": "Return Address - Enterprise Integration Patterns", "h1": "", "popis": "How does a replier know where to send the reply?", "klicova_slova": "Return Address,integration, messaging, events, patterns, event-driven, coupling, eai, middleware, application integration, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns", "og:title": "Return Address - Enterprise Integration Patterns", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/ReturnAddress.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/ReturnAddressSolution.gif"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Example: Golang ChannelsNEW"}, {"uroven": 2, "text": "Integration Pattern Language"}], "markdown": "| | Return Address[Messaging Patterns](index.html) » [Message Construction](MessageConstructionIntro.html) | [Contents](toc.html)[⇐ Prev](RequestReply.html)[Next ⇒](CorrelationIdentifier.html) |\n| --- | --- | --- |\n\nMy application is using [*Messaging*](Messaging.html) to perform a [*Request-Reply*](RequestReply.html).\n\nHow does a replier know where to send the reply?\n\nThe request message should contain a *Return Address* that indicates where to send the reply message.\n\nThis way, the replier does not need to know where to send the reply, it can just ask the request. If different messages to the same replier require replies to different places, the replier knows where to send the reply for each request. This encapsulates the knowledge of what channels to use for requests and replies within the requestor so those decisions do not have to be hard coded within the replier. A *Return Address* is put in the header of a message because it’s not part of the data being transmitted.\n\n...\nRead the entire pattern in the book [Enterprise Integration Patterns](/books1.html)\n\n## Example: Golang Channels[NEW](/ramblings/eip1_examples_updated.html)\n\nIn Go, channels are first-class language constructs, making it easy to specify a channel as return address by including a field of type chan in the structure to be passed as the request:\n\n```\ntype Request struct {\n data []int\n resultChan chan int\n}\n```\n\nA function handling requests can now publish responses to the channel provided in the Request structure:\n\n```\nfunc handle(queue chan *Request) {\n for req := range queue {\n req.resultChan <- sum(req.data)\n }\n}\n```\n\nRequestors can now specify the desired return channel with the request as in the following example:\n\n```\nreqChannel := make(chan *Request, 10)\ngo handle(reqChannel)\n// Make two requests with separate return channels\nrequest1 := &Request{[]int{3, 4, 5}, make(chan int)}\nrequest2 := &Request{[]int{1, 2, 3}, make(chan int)}\nreqChannel <- request1\nreqChannel <- request2\n \n// Receive results on respective channels\nfmt.Printf(\"answer: %d %d\\n\", <-request1.resultChan, <-request2.resultChan)\n```\n\nFind the source for this code snippet on [Github](https://github.com/spac3lord/eip/tree/master/ReturnAddress)\n\n**Related patterns:**\n\n[*Correlation Identifier*](CorrelationIdentifier.html), [*Emerging Standards and Futures in Enterprise Integration*](Future.html), [*Message Channel*](MessageChannel.html), [*Messaging*](Messaging.html), [*Request-Reply*](RequestReply.html)\n\n---\n\n## Integration Pattern Language\n\n[Message Construct.](MessageConstructionIntro.html)\n\n[Message](Message.html)\n\n[Command Message](CommandMessage.html)\n\n[Document Message](DocumentMessage.html)\n\n[Event Message](EventMessage.html)\n\n[Request-Reply](RequestReply.html)\n\n[Return Address](ReturnAddress.html)\n\n[Correlation Identifier](CorrelationIdentifier.html)\n\n[Message Sequence](MessageSequence.html)\n\n[Message Expiration](MessageExpiration.html)\n\n[Format Indicator](FormatIndicator.html)\n\n[Message Routing](MessageRoutingIntro.html)\n\n[Pipes-and-Filters](PipesAndFilters.html)\n\n[Message Router](MessageRouter.html)\n\n[Content-based Router](ContentBasedRouter.html)\n\n[Message Filter](Filter.html)\n\n[Dynamic Router](DynamicRouter.html)\n\n[Recipient List](RecipientList.html)\n\n[Splitter](Sequencer.html)\n\n[Aggregator](Aggregator.html)\n\n[Resequencer](Resequencer.html)\n\n[Composed Msg. Processor](DistributionAggregate.html)\n\n[Scatter-Gather](BroadcastAggregate.html)\n\n[Routing Slip](RoutingTable.html)\n\n[Process Manager](ProcessManager.html)\n\n[Message Broker](MessageBroker.html)\n\n[Message\nTransformation](MessageTransformationIntro.html)\n\n[Message Translator](MessageTranslator.html)\n\n[Envelope Wrapper](EnvelopeWrapper.html)\n\n[Content Enricher](DataEnricher.html)\n\n[Content Filter](ContentFilter.html)\n\n[Claim Check](StoreInLibrary.html)\n\n[Normalizer](Normalizer.html)\n\n[Canonical Data Model](CanonicalDataModel.html)\n\n[Messaging Endpoints](MessagingEndpointsIntro.html)\n\n[Message Endpoint](MessageEndpoint.html)\n\n[Messaging Gateway](MessagingGateway.html)\n\n[Messaging Mapper](MessagingMapper.html)\n\n[Transactional Client](TransactionalClient.html)\n\n[Polling Consumer](PollingConsumer.html)\n\n[Event-driven Consumer](EventDrivenConsumer.html)\n\n[Competing Consumers](CompetingConsumers.html)\n\n[Message Dispatcher](MessageDispatcher.html)\n\n[Selective Consumer](MessageSelector.html)\n\n[Durable Subscriber](DurableSubscription.html)\n\n[Idempotent Receiver](IdempotentReceiver.html)\n\n[Service Activator](MessagingAdapter.html)\n\n[Messaging Channels](MessagingChannelsIntro.html)\n\n[Message Channel](MessageChannel.html)\n\n[Point-to-Point Channel](PointToPointChannel.html)\n\n[Publish-Subscr. Channel](PublishSubscribeChannel.html)\n\n[Datatype Channel](DatatypeChannel.html)\n\n[Invalid Message Channel](InvalidMessageChannel.html)\n\n[Dead Letter Channel](DeadLetterChannel.html)\n\n[Guaranteed Delivery](GuaranteedMessaging.html)\n\n[Channel Adapter](ChannelAdapter.html)\n\n[Messaging Bridge](MessagingBridge.html)\n\n[Message Bus](MessageBus.html)\n\n[Systems Mgmt.](SystemManagementIntro.html)\n\n[Control Bus](ControlBus.html)\n\n[Detour](Detour.html)\n\n[Wire Tap](WireTap.html)\n\n[Message History](MessageHistory.html)\n\n[Message Store](MessageStore.html)\n\n[Smart Proxy](SmartProxy.html)\n\n[Test Message](TestMessage.html)\n\n[Channel Purger](ChannelPurger.html)", "znaku_textu": 5180, "slov": 471, "odkazu": 110, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 15:34:05", "sha256": "207c823f2b8eec56be3e43e1882cd155542a5c3dccd6a3843fa1d35aeaab948a", "hloubka": 4, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/spac3lord/eip/tree/master/ReturnAddress", "http://creativecommons.org/licenses/by/4.0/", "https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "https://www.architectelevator.com/book", "https://www.cloudstrategybook.com/", "https://www.platformstrategybook.info/"]} {"url": "http://www.enterpriseintegrationpatterns.com/RoutingTable.html", "titulek": "Routing Slip - Enterprise Integration Patterns", "h1": "", "popis": "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?", "klicova_slova": "Routing Slip,integration, messaging, events, patterns, event-driven, coupling, eai, middleware, application integration, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns", "og:title": "Routing Slip - Enterprise Integration Patterns", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/RoutingTable.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/RoutingTableSimple.gif"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Integration Pattern Language"}], "markdown": "| | Routing Slip[Messaging Patterns](index.html) » [Message Routing](MessageRoutingIntro.html) | [Contents](toc.html)[⇐ Prev](BroadcastAggregate.html)[Next ⇒](ProcessManager.html) |\n| --- | --- | --- |\n\nMost of the routing patterns presented in this section route incoming messages to one or more destinations based on a set of rules. Sometimes, though, we need to route a message not just to a single component, but through a whole series of components. Let's assume, for example, that we use a [*Pipes and Filters*](PipesAndFilters.html) architecture to process incoming messages that have to undergo a sequence of processing steps and business rule validations. Since the nature of the validations varies widely and may depend on external systems (e.g., credit card validations), we implement each type of step as a separate filter. Each filter inspects the incoming message, and applies the business rule(s) to the message. If the message does not fulfill the conditions specified by the rules it is routed to an exception channel. The channels between the filters determine the sequence of validations that the message needs to undergo.\n\nNow let's assume, though, that the set of validations to perform against each message depends on the message type (for example, purchase order request do not need credit card validation or customers who send orders over a VPN may not require decryption and authentication). To accommodate this requirement we need to find a configuration that can route the message through a different sequence of filters depending on the type of the message.\n\nHow 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?\n\nAttach 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.\n\nWe insert a special component into the beginning of the process that computes the list of required steps for each message. It then attaches the list as a *Routing Slip* to the message and starts the process by routing the message to the first processing step. After successful processing, each processing step looks at the *Routing Slip* and passes the message to the next processing step specified in the routing table.\n\n...\nRead the entire pattern in the book [Enterprise Integration Patterns](/books1.html)\n\n**Related patterns:**\n\n[*Content-Based Router*](ContentBasedRouter.html), [*Message Filter*](Filter.html), [*Message Router*](MessageRouter.html), [*Pipes and Filters*](PipesAndFilters.html), [*Process Manager*](ProcessManager.html), [*Publish-Subscribe Channel*](PublishSubscribeChannel.html), [*Return Address*](ReturnAddress.html)\n\n---\n\n## Integration Pattern Language\n\n[Message Construct.](MessageConstructionIntro.html)\n\n[Message](Message.html)\n\n[Command Message](CommandMessage.html)\n\n[Document Message](DocumentMessage.html)\n\n[Event Message](EventMessage.html)\n\n[Request-Reply](RequestReply.html)\n\n[Return Address](ReturnAddress.html)\n\n[Correlation Identifier](CorrelationIdentifier.html)\n\n[Message Sequence](MessageSequence.html)\n\n[Message Expiration](MessageExpiration.html)\n\n[Format Indicator](FormatIndicator.html)\n\n[Message Routing](MessageRoutingIntro.html)\n\n[Pipes-and-Filters](PipesAndFilters.html)\n\n[Message Router](MessageRouter.html)\n\n[Content-based Router](ContentBasedRouter.html)\n\n[Message Filter](Filter.html)\n\n[Dynamic Router](DynamicRouter.html)\n\n[Recipient List](RecipientList.html)\n\n[Splitter](Sequencer.html)\n\n[Aggregator](Aggregator.html)\n\n[Resequencer](Resequencer.html)\n\n[Composed Msg. Processor](DistributionAggregate.html)\n\n[Scatter-Gather](BroadcastAggregate.html)\n\n[Routing Slip](RoutingTable.html)\n\n[Process Manager](ProcessManager.html)\n\n[Message Broker](MessageBroker.html)\n\n[Message\nTransformation](MessageTransformationIntro.html)\n\n[Message Translator](MessageTranslator.html)\n\n[Envelope Wrapper](EnvelopeWrapper.html)\n\n[Content Enricher](DataEnricher.html)\n\n[Content Filter](ContentFilter.html)\n\n[Claim Check](StoreInLibrary.html)\n\n[Normalizer](Normalizer.html)\n\n[Canonical Data Model](CanonicalDataModel.html)\n\n[Messaging Endpoints](MessagingEndpointsIntro.html)\n\n[Message Endpoint](MessageEndpoint.html)\n\n[Messaging Gateway](MessagingGateway.html)\n\n[Messaging Mapper](MessagingMapper.html)\n\n[Transactional Client](TransactionalClient.html)\n\n[Polling Consumer](PollingConsumer.html)\n\n[Event-driven Consumer](EventDrivenConsumer.html)\n\n[Competing Consumers](CompetingConsumers.html)\n\n[Message Dispatcher](MessageDispatcher.html)\n\n[Selective Consumer](MessageSelector.html)\n\n[Durable Subscriber](DurableSubscription.html)\n\n[Idempotent Receiver](IdempotentReceiver.html)\n\n[Service Activator](MessagingAdapter.html)\n\n[Messaging Channels](MessagingChannelsIntro.html)\n\n[Message Channel](MessageChannel.html)\n\n[Point-to-Point Channel](PointToPointChannel.html)\n\n[Publish-Subscr. Channel](PublishSubscribeChannel.html)\n\n[Datatype Channel](DatatypeChannel.html)\n\n[Invalid Message Channel](InvalidMessageChannel.html)\n\n[Dead Letter Channel](DeadLetterChannel.html)\n\n[Guaranteed Delivery](GuaranteedMessaging.html)\n\n[Channel Adapter](ChannelAdapter.html)\n\n[Messaging Bridge](MessagingBridge.html)\n\n[Message Bus](MessageBus.html)\n\n[Systems Mgmt.](SystemManagementIntro.html)\n\n[Control Bus](ControlBus.html)\n\n[Detour](Detour.html)\n\n[Wire Tap](WireTap.html)\n\n[Message History](MessageHistory.html)\n\n[Message Store](MessageStore.html)\n\n[Smart Proxy](SmartProxy.html)\n\n[Test Message](TestMessage.html)\n\n[Channel Purger](ChannelPurger.html)", "znaku_textu": 5536, "slov": 556, "odkazu": 108, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 15:34:22", "sha256": "5e46ed0bbff9cbd9b7d56986a778230fcbffd4de408735b71e34b93b428844cd", "hloubka": 4, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://creativecommons.org/licenses/by/4.0/", "https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "https://www.architectelevator.com/book", "https://www.cloudstrategybook.com/", "https://www.platformstrategybook.info/"]} {"url": "http://www.enterpriseintegrationpatterns.com/Sequencer.html", "titulek": "Splitter - Enterprise Integration Patterns", "h1": "", "popis": "How can we process a message if it contains multiple elements, each of which may have to be processed in a different way?", "klicova_slova": "Splitter,integration, messaging, events, patterns, event-driven, coupling, eai, middleware, application integration, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns", "og:title": "Splitter - Enterprise Integration Patterns", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/Sequencer.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/Sequencer.gif"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Integration Pattern Language"}], "markdown": "Messaging Patterns\n\n[Messaging Patterns](index.html)\n\n- [Integration Styles](IntegrationStylesIntro.html)\n- [Messaging Systems](MessagingComponentsIntro.html)\n- [Messaging Channels](MessagingChannelsIntro.html)\n- [Message Construction](MessageConstructionIntro.html)\n- [Interlude: Simple Messaging](SimpleMessagingIntro.html)\n- [Message Routing](MessageRoutingIntro.html)\n- [Message Transformation](MessageTransformationIntro.html)\n- [Interlude: Composed Messaging](ComposedMessagingExample.html)\n- [Messaging Endpoints](MessagingEndpointsIntro.html)\n- [System Management](SystemManagementIntro.html)\n- Interlude: Systems Management Example\n- Integration Patterns in Practice\n- Concluding Remarks\n- Appendices\n\n| | Splitter[Messaging Patterns](index.html) » [Message Routing](MessageRoutingIntro.html) | [Contents](toc.html)[⇐ Prev](RecipientList.html)[Next ⇒](Aggregator.html) |\n| --- | --- | --- |\n\nMany messages passing through an integration solution consist of multiple elements. For example, an order placed by a customer consists of more than just a single line item. As outlined in the description of the [*Content-Based Router*](ContentBasedRouter.html), each line item may need to be handled by a different inventory system. Thus, we need to find an approach to process a complete order, but treat each order item contained in the order individually.\n\nHow can we process a message if it contains multiple elements, each of which may have to be processed in a different way?\n\nUse a *Splitter* to break out the composite message into a series of individual messages, each containing data related to one item.\n\nuse a *Splitter* that consumes one message containing a list of repeating elements, each of which can be processed individually. The *Splitter* publishes a one message for each single element (or a subset of elements) from the original message.\n\n...\nRead the entire pattern in the book [Enterprise Integration Patterns](/books1.html)\n\n**Related patterns:**\n\n[*Aggregator*](Aggregator.html), [*Content-Based Router*](ContentBasedRouter.html), [*Content Filter*](ContentFilter.html), [*Correlation Identifier*](CorrelationIdentifier.html), [*Envelope Wrapper*](EnvelopeWrapper.html), [*Event-Driven Consumer*](EventDrivenConsumer.html), [*Pipes and Filters*](PipesAndFilters.html), [*Publish-Subscribe Channel*](PublishSubscribeChannel.html)\n\n---\n\n## Integration Pattern Language\n\n[Message Construct.](MessageConstructionIntro.html)\n\n[Message](Message.html)\n\n[Command Message](CommandMessage.html)\n\n[Document Message](DocumentMessage.html)\n\n[Event Message](EventMessage.html)\n\n[Request-Reply](RequestReply.html)\n\n[Return Address](ReturnAddress.html)\n\n[Correlation Identifier](CorrelationIdentifier.html)\n\n[Message Sequence](MessageSequence.html)\n\n[Message Expiration](MessageExpiration.html)\n\n[Format Indicator](FormatIndicator.html)\n\n[Message Routing](MessageRoutingIntro.html)\n\n[Pipes-and-Filters](PipesAndFilters.html)\n\n[Message Router](MessageRouter.html)\n\n[Content-based Router](ContentBasedRouter.html)\n\n[Message Filter](Filter.html)\n\n[Dynamic Router](DynamicRouter.html)\n\n[Recipient List](RecipientList.html)\n\n[Splitter](Sequencer.html)\n\n[Aggregator](Aggregator.html)\n\n[Resequencer](Resequencer.html)\n\n[Composed Msg. Processor](DistributionAggregate.html)\n\n[Scatter-Gather](BroadcastAggregate.html)\n\n[Routing Slip](RoutingTable.html)\n\n[Process Manager](ProcessManager.html)\n\n[Message Broker](MessageBroker.html)\n\n[Message\nTransformation](MessageTransformationIntro.html)\n\n[Message Translator](MessageTranslator.html)\n\n[Envelope Wrapper](EnvelopeWrapper.html)\n\n[Content Enricher](DataEnricher.html)\n\n[Content Filter](ContentFilter.html)\n\n[Claim Check](StoreInLibrary.html)\n\n[Normalizer](Normalizer.html)\n\n[Canonical Data Model](CanonicalDataModel.html)\n\n[Messaging Endpoints](MessagingEndpointsIntro.html)\n\n[Message Endpoint](MessageEndpoint.html)\n\n[Messaging Gateway](MessagingGateway.html)\n\n[Messaging Mapper](MessagingMapper.html)\n\n[Transactional Client](TransactionalClient.html)\n\n[Polling Consumer](PollingConsumer.html)\n\n[Event-driven Consumer](EventDrivenConsumer.html)\n\n[Competing Consumers](CompetingConsumers.html)\n\n[Message Dispatcher](MessageDispatcher.html)\n\n[Selective Consumer](MessageSelector.html)\n\n[Durable Subscriber](DurableSubscription.html)\n\n[Idempotent Receiver](IdempotentReceiver.html)\n\n[Service Activator](MessagingAdapter.html)\n\n[Messaging Channels](MessagingChannelsIntro.html)\n\n[Message Channel](MessageChannel.html)\n\n[Point-to-Point Channel](PointToPointChannel.html)\n\n[Publish-Subscr. Channel](PublishSubscribeChannel.html)\n\n[Datatype Channel](DatatypeChannel.html)\n\n[Invalid Message Channel](InvalidMessageChannel.html)\n\n[Dead Letter Channel](DeadLetterChannel.html)\n\n[Guaranteed Delivery](GuaranteedMessaging.html)\n\n[Channel Adapter](ChannelAdapter.html)\n\n[Messaging Bridge](MessagingBridge.html)\n\n[Message Bus](MessageBus.html)\n\n[Systems Mgmt.](SystemManagementIntro.html)\n\n[Control Bus](ControlBus.html)\n\n[Detour](Detour.html)\n\n[Wire Tap](WireTap.html)\n\n[Message History](MessageHistory.html)\n\n[Message Store](MessageStore.html)\n\n[Smart Proxy](SmartProxy.html)\n\n[Test Message](TestMessage.html)\n\n[Channel Purger](ChannelPurger.html)\n\n- » [Read the latest in My Blog](/ramblings)\n- » [Get more insights from My Articles](/articles.html)\n- » [See me live in my Upcoming Talks](/talks)\n\nYou can reuse the following elements under the [Creative Commons Attribution](http://creativecommons.org/licenses/by/4.0/) license: pattern icon, pattern name, problem and solution statements (in bold), and the sketch. Other portions are protected by copyright.\n\n[Enterprise Integration Patterns](https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20)\nThe de-facto language for designing asynchronous, distributed systems. Over 100,000 copies sold.\n\n[The Software Architect Elevator](https://www.architectelevator.com/book)\n\n Rethink the role of architects as a connecting element across organizational layers. Acquire the technical, communication, and organizational skills to succeed in this new role.\n\n[Cloud Strategy](https://www.cloudstrategybook.com)\n\n Make your cloud migration a success by translating high-level goals into conscious decisions with well-understood trade-offs.\n\n[Platform Strategy](https://www.platformstrategybook.info)\n\n Platforms can boost innovation through harmonization, but they aren't easy to build. Learn from over a decade of designing and rolling out IT platforms.", "znaku_textu": 6309, "slov": 539, "odkazu": 108, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 15:34:17", "sha256": "98c9d9340b6d8266d1f65a5d26adc075380da9261bb1d3b3d06ea5f9079cd9ef", "hloubka": 4, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://creativecommons.org/licenses/by/4.0/", "https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "https://www.architectelevator.com/book", "https://www.cloudstrategybook.com/", "https://www.platformstrategybook.info/"]} {"url": "http://www.enterpriseintegrationpatterns.com/SmartProxy.html", "titulek": "Smart Proxy - Enterprise Integration Patterns", "h1": "", "popis": "How can you track messages on a service that publishes reply messages to the Return Address specified by the requestor?", "klicova_slova": "Smart Proxy,integration, messaging, events, patterns, event-driven, coupling, eai, middleware, application integration, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns", "og:title": "Smart Proxy - Enterprise Integration Patterns", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/SmartProxy.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/SmartProxy.gif"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Integration Pattern Language"}], "markdown": "Messaging Patterns\n\n[Messaging Patterns](index.html)\n\n- [Integration Styles](IntegrationStylesIntro.html)\n- [Messaging Systems](MessagingComponentsIntro.html)\n- [Messaging Channels](MessagingChannelsIntro.html)\n- [Message Construction](MessageConstructionIntro.html)\n- [Interlude: Simple Messaging](SimpleMessagingIntro.html)\n- [Message Routing](MessageRoutingIntro.html)\n- [Message Transformation](MessageTransformationIntro.html)\n- [Interlude: Composed Messaging](ComposedMessagingExample.html)\n- [Messaging Endpoints](MessagingEndpointsIntro.html)\n- [System Management](SystemManagementIntro.html)\n- Interlude: Systems Management Example\n- Integration Patterns in Practice\n- Concluding Remarks\n- Appendices\n\n| | Smart Proxy[Messaging Patterns](index.html) » [System Management](SystemManagementIntro.html) | [Contents](toc.html)[⇐ Prev](MessageStore.html)[Next ⇒](TestMessage.html) |\n| --- | --- | --- |\n\nA pair of [*Wire Tap*](WireTap.html)s can be used to track messages that flow through a component. However, this approach assumes that the component publishes messages to a fixed output channel. However, many service-style components publish reply messages to the channel specified by the [*Return Address*](ReturnAddress.html) included in the request message.\n\nHow can you track messages on a service that publishes reply messages to the Return Address specified by the requestor?\n\nUse a *Smart Proxy* to store the Return Address supplied by the original requestor and replace it with the address of the *Smart Proxy*. When the service sends the reply message route it to the original Return Address.\n\nThe *Smart Proxy* intercepts messages sent on the request channel to the [*Request-Reply*](RequestReply.html) service. For each incoming message, the *Smart Proxy* stores the [*Return Address*](ReturnAddress.html) specified by the original sender. It then replaces the [*Return Address*](ReturnAddress.html) in the message with the channel the reply channel that the *Smart Proxy* is listening on. When a reply message comes in on that channel, the *Smart Proxy* retrieves the stored [*Return Address*](ReturnAddress.html) and uses a [*Message Router*](MessageRouter.html) to forward the unmodified reply address to that channel.\n\n...\nRead the entire pattern in the book [Enterprise Integration Patterns](/books1.html)\n\n**Related patterns:**\n\n[*Correlation Identifier*](CorrelationIdentifier.html), [*Message Router*](MessageRouter.html), [*Request-Reply*](RequestReply.html), [*Return Address*](ReturnAddress.html), [*Wire Tap*](WireTap.html)\n\n---\n\n## Integration Pattern Language\n\n[Message Construct.](MessageConstructionIntro.html)\n\n[Message](Message.html)\n\n[Command Message](CommandMessage.html)\n\n[Document Message](DocumentMessage.html)\n\n[Event Message](EventMessage.html)\n\n[Request-Reply](RequestReply.html)\n\n[Return Address](ReturnAddress.html)\n\n[Correlation Identifier](CorrelationIdentifier.html)\n\n[Message Sequence](MessageSequence.html)\n\n[Message Expiration](MessageExpiration.html)\n\n[Format Indicator](FormatIndicator.html)\n\n[Message Routing](MessageRoutingIntro.html)\n\n[Pipes-and-Filters](PipesAndFilters.html)\n\n[Message Router](MessageRouter.html)\n\n[Content-based Router](ContentBasedRouter.html)\n\n[Message Filter](Filter.html)\n\n[Dynamic Router](DynamicRouter.html)\n\n[Recipient List](RecipientList.html)\n\n[Splitter](Sequencer.html)\n\n[Aggregator](Aggregator.html)\n\n[Resequencer](Resequencer.html)\n\n[Composed Msg. Processor](DistributionAggregate.html)\n\n[Scatter-Gather](BroadcastAggregate.html)\n\n[Routing Slip](RoutingTable.html)\n\n[Process Manager](ProcessManager.html)\n\n[Message Broker](MessageBroker.html)\n\n[Message\nTransformation](MessageTransformationIntro.html)\n\n[Message Translator](MessageTranslator.html)\n\n[Envelope Wrapper](EnvelopeWrapper.html)\n\n[Content Enricher](DataEnricher.html)\n\n[Content Filter](ContentFilter.html)\n\n[Claim Check](StoreInLibrary.html)\n\n[Normalizer](Normalizer.html)\n\n[Canonical Data Model](CanonicalDataModel.html)\n\n[Messaging Endpoints](MessagingEndpointsIntro.html)\n\n[Message Endpoint](MessageEndpoint.html)\n\n[Messaging Gateway](MessagingGateway.html)\n\n[Messaging Mapper](MessagingMapper.html)\n\n[Transactional Client](TransactionalClient.html)\n\n[Polling Consumer](PollingConsumer.html)\n\n[Event-driven Consumer](EventDrivenConsumer.html)\n\n[Competing Consumers](CompetingConsumers.html)\n\n[Message Dispatcher](MessageDispatcher.html)\n\n[Selective Consumer](MessageSelector.html)\n\n[Durable Subscriber](DurableSubscription.html)\n\n[Idempotent Receiver](IdempotentReceiver.html)\n\n[Service Activator](MessagingAdapter.html)\n\n[Messaging Channels](MessagingChannelsIntro.html)\n\n[Message Channel](MessageChannel.html)\n\n[Point-to-Point Channel](PointToPointChannel.html)\n\n[Publish-Subscr. Channel](PublishSubscribeChannel.html)\n\n[Datatype Channel](DatatypeChannel.html)\n\n[Invalid Message Channel](InvalidMessageChannel.html)\n\n[Dead Letter Channel](DeadLetterChannel.html)\n\n[Guaranteed Delivery](GuaranteedMessaging.html)\n\n[Channel Adapter](ChannelAdapter.html)\n\n[Messaging Bridge](MessagingBridge.html)\n\n[Message Bus](MessageBus.html)\n\n[Systems Mgmt.](SystemManagementIntro.html)\n\n[Control Bus](ControlBus.html)\n\n[Detour](Detour.html)\n\n[Wire Tap](WireTap.html)\n\n[Message History](MessageHistory.html)\n\n[Message Store](MessageStore.html)\n\n[Smart Proxy](SmartProxy.html)\n\n[Test Message](TestMessage.html)\n\n[Channel Purger](ChannelPurger.html)\n\n- » [Read the latest in My Blog](/ramblings)\n- » [Get more insights from My Articles](/articles.html)\n- » [See me live in my Upcoming Talks](/talks)\n\nYou can reuse the following elements under the [Creative Commons Attribution](http://creativecommons.org/licenses/by/4.0/) license: pattern icon, pattern name, problem and solution statements (in bold), and the sketch. Other portions are protected by copyright.\n\n[Enterprise Integration Patterns](https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20)\nThe de-facto language for designing asynchronous, distributed systems. Over 100,000 copies sold.\n\n[The Software Architect Elevator](https://www.architectelevator.com/book)\n\n Rethink the role of architects as a connecting element across organizational layers. Acquire the technical, communication, and organizational skills to succeed in this new role.\n\n[Cloud Strategy](https://www.cloudstrategybook.com)\n\n Make your cloud migration a success by translating high-level goals into conscious decisions with well-understood trade-offs.\n\n[Platform Strategy](https://www.platformstrategybook.info)\n\n Platforms can boost innovation through harmonization, but they aren't easy to build. Learn from over a decade of designing and rolling out IT platforms.", "znaku_textu": 6501, "slov": 574, "odkazu": 108, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 15:35:03", "sha256": "e2d10e7a0172ac86724152a738d8c952e5984f306aac27aef52096be7048b1e3", "hloubka": 4, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://creativecommons.org/licenses/by/4.0/", "https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "https://www.architectelevator.com/book", "https://www.cloudstrategybook.com/", "https://www.platformstrategybook.info/"]} {"url": "http://www.enterpriseintegrationpatterns.com/StoreInLibrary.html", "titulek": "Claim Check - Enterprise Integration Patterns", "h1": "", "popis": "How can we reduce the data volume of message sent across the system without sacrificing information content?", "klicova_slova": "Claim Check,integration, messaging, events, patterns, event-driven, coupling, eai, middleware, application integration, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns", "og:title": "Claim Check - Enterprise Integration Patterns", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/StoreInLibrary.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/StoreInLibrary.gif"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Integration Pattern Language"}], "markdown": "| | Claim Check[Messaging Patterns](index.html) » [Message Transformation](MessageTransformationIntro.html) | [Contents](toc.html)[⇐ Prev](ContentFilter.html)[Next ⇒](Normalizer.html) |\n| --- | --- | --- |\n\nThe [*Content Enricher*](DataEnricher.html) tells us how we can deal with situations where our message is missing required data items. The [*Content Filter*](ContentFilter.html) lets us remove uninteresting data items from a message. Sometimes, we want to remove fields only temporarily. For example, a message may contain a set of data items that may be needed later in the message flow, but that are not necessary for all intermediate processing steps. We may not want to carry all this information through each processing step because it may cause performance degradation and makes debugging harder because we carry so much extra data.\n\nHow can we reduce the data volume of message sent across the system without sacrificing information content?\n\nStore message data in a persistent store and pass a *Claim Check* to subsequent components. These components can use the *Claim Check* to retrieve the stored information.\n\nThe *Claim Check* pattern consists of the following steps:\n\n1. A message with data arrives.\n2. The \"Check Luggage\" component generates a unique key for the information. This key will be used later as the *Claim Check*\n3. The Check Luggage component extracts the data from the message and stores it in a persistent store, e.g. a file or a database. It associates the stored data with the key .\n4. It removes the persisted data from the message and adds the *Claim Check* .\n5. Another component can use a [*Content Enricher*](DataEnricher.html) to retrieve the data based on the *Claim Check* .\n\nThis process is analogous to a luggage check at the airport. If you do not want to carry all your luggage with you, you simply check it with the airline counter. In return you receive a sticker on your ticket that has a reference number that uniquely identifies each piece of luggage you checked. Once you reach your final destination, you can retrieve your luggage.\n\n...\nRead the entire pattern in the book [Enterprise Integration Patterns](/books1.html)\n\n**Related patterns:**\n\n[*Content Filter*](ContentFilter.html), [*Content Enricher*](DataEnricher.html), [*Process Manager*](ProcessManager.html)\n\n---\n\n## Integration Pattern Language\n\n[Message Construct.](MessageConstructionIntro.html)\n\n[Message](Message.html)\n\n[Command Message](CommandMessage.html)\n\n[Document Message](DocumentMessage.html)\n\n[Event Message](EventMessage.html)\n\n[Request-Reply](RequestReply.html)\n\n[Return Address](ReturnAddress.html)\n\n[Correlation Identifier](CorrelationIdentifier.html)\n\n[Message Sequence](MessageSequence.html)\n\n[Message Expiration](MessageExpiration.html)\n\n[Format Indicator](FormatIndicator.html)\n\n[Message Routing](MessageRoutingIntro.html)\n\n[Pipes-and-Filters](PipesAndFilters.html)\n\n[Message Router](MessageRouter.html)\n\n[Content-based Router](ContentBasedRouter.html)\n\n[Message Filter](Filter.html)\n\n[Dynamic Router](DynamicRouter.html)\n\n[Recipient List](RecipientList.html)\n\n[Splitter](Sequencer.html)\n\n[Aggregator](Aggregator.html)\n\n[Resequencer](Resequencer.html)\n\n[Composed Msg. Processor](DistributionAggregate.html)\n\n[Scatter-Gather](BroadcastAggregate.html)\n\n[Routing Slip](RoutingTable.html)\n\n[Process Manager](ProcessManager.html)\n\n[Message Broker](MessageBroker.html)\n\n[Message\nTransformation](MessageTransformationIntro.html)\n\n[Message Translator](MessageTranslator.html)\n\n[Envelope Wrapper](EnvelopeWrapper.html)\n\n[Content Enricher](DataEnricher.html)\n\n[Content Filter](ContentFilter.html)\n\n[Claim Check](StoreInLibrary.html)\n\n[Normalizer](Normalizer.html)\n\n[Canonical Data Model](CanonicalDataModel.html)\n\n[Messaging Endpoints](MessagingEndpointsIntro.html)\n\n[Message Endpoint](MessageEndpoint.html)\n\n[Messaging Gateway](MessagingGateway.html)\n\n[Messaging Mapper](MessagingMapper.html)\n\n[Transactional Client](TransactionalClient.html)\n\n[Polling Consumer](PollingConsumer.html)\n\n[Event-driven Consumer](EventDrivenConsumer.html)\n\n[Competing Consumers](CompetingConsumers.html)\n\n[Message Dispatcher](MessageDispatcher.html)\n\n[Selective Consumer](MessageSelector.html)\n\n[Durable Subscriber](DurableSubscription.html)\n\n[Idempotent Receiver](IdempotentReceiver.html)\n\n[Service Activator](MessagingAdapter.html)\n\n[Messaging Channels](MessagingChannelsIntro.html)\n\n[Message Channel](MessageChannel.html)\n\n[Point-to-Point Channel](PointToPointChannel.html)\n\n[Publish-Subscr. Channel](PublishSubscribeChannel.html)\n\n[Datatype Channel](DatatypeChannel.html)\n\n[Invalid Message Channel](InvalidMessageChannel.html)\n\n[Dead Letter Channel](DeadLetterChannel.html)\n\n[Guaranteed Delivery](GuaranteedMessaging.html)\n\n[Channel Adapter](ChannelAdapter.html)\n\n[Messaging Bridge](MessagingBridge.html)\n\n[Message Bus](MessageBus.html)\n\n[Systems Mgmt.](SystemManagementIntro.html)\n\n[Control Bus](ControlBus.html)\n\n[Detour](Detour.html)\n\n[Wire Tap](WireTap.html)\n\n[Message History](MessageHistory.html)\n\n[Message Store](MessageStore.html)\n\n[Smart Proxy](SmartProxy.html)\n\n[Test Message](TestMessage.html)\n\n[Channel Purger](ChannelPurger.html)", "znaku_textu": 5036, "slov": 492, "odkazu": 108, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 15:34:30", "sha256": "96395638cbc1165642bdff681ec21a2862359e68f88f59cb7a2b5b2ad4753fb5", "hloubka": 4, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://creativecommons.org/licenses/by/4.0/", "https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "https://www.architectelevator.com/book", "https://www.cloudstrategybook.com/", "https://www.platformstrategybook.info/"]} {"url": "http://www.enterpriseintegrationpatterns.com/SystemManagementIntro.html", "titulek": "Introduction to System Management - Enterprise Integration Patterns", "h1": "", "popis": "While developing a messaging solution is no easy task, operating such a solution in production is equally challenging: A message-based integration solution may produce, route and transform thousands or even millions of messages in a day. We have to deal with exceptions, performance bottlenecks and changes in the participating systems. To make things ever more challenging, components are distributed across many platforms and machines that can reside at multiple locations.", "klicova_slova": "Introduction to System Management,integration, messaging, events, patterns, event-driven, coupling, eai, middleware, application integration, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns", "og:title": "Introduction to System Management - Enterprise Integration Patterns", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/SystemManagementIntro.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/eip1_patterns_wide.png"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Monitoring and Controlling"}, {"uroven": 2, "text": "Observing and Analyzing Message Traffic"}, {"uroven": 2, "text": "Testing and Debugging"}, {"uroven": 2, "text": "Integration Pattern Language"}], "markdown": "| | Introduction to System Management[Messaging Patterns](index.html) » [System Management](SystemManagementIntro.html) | [Contents](toc.html)[⇐ Prev](MessagingAdapter.html)[Next ⇒](ControlBus.html) |\n| --- | --- | --- |\n\nWhile developing a messaging solution is no easy task, operating such a solution in production is equally challenging: A message-based integration solution may produce, route and transform thousands or even millions of messages in a day. We have to deal with exceptions, performance bottlenecks and changes in the participating systems. To make things ever more challenging, components are distributed across many platforms and machines that can reside at multiple locations.\n\nBesides the inherent complexities and scale of integrating distributed packaged and custom applications, the architectural benefits of loose coupling actually make testing and debugging a system harder. Martin Fowler refers to this as the \"Architect's dream, Developer's nightmare\" symptom: architectural principles of loose coupling and indirection reduce the assumptions systems make about each other and therefore provide flexibility. However, testing a system where a message producer is not aware of who the consumers of this message are, can be challenging. Add to that the asynchronous and temporal aspects of messaging and things get even more complicated. For example, the messaging solution may not even be designed for the message producer to receive a reply message from the recipient(s). Likewise, the messaging infrastructure typically guarantees the delivery of the message but not the delivery time. This makes it hard to develop test cases that rely on the results of the message delivery.\n\nWhen monitoring a message solution, we can track message at two different levels of abstraction. A typical **System Management** solution monitors how many messages are being sent or how long it took a message to be processed. These monitoring solutions do not inspect the message data except maybe for some fields in the message header such as the message identifier or the [*Message History*](MessageHistory.html). In contrast, **Business Activity Monitoring** (BAM) solutions focus on the payload data contained in the message, for example the Dollar value of all orders placed in the last hour. Many of the patterns presented in this section are general enough that they can be used for either purpose. However, because business activity monitoring is a whole new field in itself and shares many complexities with data warehousing (something we have not touched on at all), we decided to discuss the patterns in the context of system management.\n\nSystem Management patterns are designed to address these requirements and provide the tools to keep a complex message-based system running. We divided this chapter into three sections:\n\n## Monitoring and Controlling\n\nA [*Control Bus*](ControlBus.html) provides a single point of control to manage and monitor a distributed solution. It connects multiple components to a central management console that can display the status of each component and monitor message traffic through the components. The console can also be used to send control commands to components, e.g. to change the message flow.\n\nWe may want to route messages through additional steps, such as validation or logging. Because these steps can introduce performance overheads, we may want to be able to switch them on and off via the control bus. A [*Detour*](Detour.html) gives us this ability.\n\n## Observing and Analyzing Message Traffic\n\nSometimes we need to want to inspect the contents of a message without affecting the primary message flow. A [*Wire Tap*](WireTap.html) allows us to tap into message traffic.\n\nWhen we debug a message-based system, is is a great aid to know where a specific message has been. The [*Message History*](MessageHistory.html) provides this capability without introducing dependencies between components.\n\nWhile the [*Message History*](MessageHistory.html) is tied to an individual message, a central [*Message Store*](MessageStore.html) can provide a complete account of every message that traveled through the system. Combined with the [*Message History*](MessageHistory.html) the [*Message Store*](MessageStore.html) can analyze all possible paths messages can take through the system.\n\nThe [*Wire Tap*](WireTap.html), [*Message History*](MessageHistory.html), and [*Message Store*](MessageStore.html) help us analyze the asynchronous flow of a message. In order to track messages sent to request-reply services, we need to insert a [*Smart Proxy*](SmartProxy.html) into the message stream.\n\n## Testing and Debugging\n\nTesting a messaging system before deploying it into production is a good idea. But testing should not stop there. You should be actively verifying that the running messaging system is functioning properly. You can do this by periodically injecting a [*Test Message*](TestMessage.html) into the system and verifying the results.\n\nWhen a component fails or misbehaves, it is easy to end up with unwanted messages on a channel. During testing it is very useful to remove all remaining messages from a channel so that the components under test do not receive 'leftover' messages. A [*Channel Purger*](ChannelPurger.html) does that for us.\n\n## Integration Pattern Language\n\n[Message Construct.](MessageConstructionIntro.html)\n\n[Message](Message.html)\n\n[Command Message](CommandMessage.html)\n\n[Document Message](DocumentMessage.html)\n\n[Event Message](EventMessage.html)\n\n[Request-Reply](RequestReply.html)\n\n[Return Address](ReturnAddress.html)\n\n[Correlation Identifier](CorrelationIdentifier.html)\n\n[Message Sequence](MessageSequence.html)\n\n[Message Expiration](MessageExpiration.html)\n\n[Format Indicator](FormatIndicator.html)\n\n[Message Routing](MessageRoutingIntro.html)\n\n[Pipes-and-Filters](PipesAndFilters.html)\n\n[Message Router](MessageRouter.html)\n\n[Content-based Router](ContentBasedRouter.html)\n\n[Message Filter](Filter.html)\n\n[Dynamic Router](DynamicRouter.html)\n\n[Recipient List](RecipientList.html)\n\n[Splitter](Sequencer.html)\n\n[Aggregator](Aggregator.html)\n\n[Resequencer](Resequencer.html)\n\n[Composed Msg. Processor](DistributionAggregate.html)\n\n[Scatter-Gather](BroadcastAggregate.html)\n\n[Routing Slip](RoutingTable.html)\n\n[Process Manager](ProcessManager.html)\n\n[Message Broker](MessageBroker.html)\n\n[Message\nTransformation](MessageTransformationIntro.html)\n\n[Message Translator](MessageTranslator.html)\n\n[Envelope Wrapper](EnvelopeWrapper.html)\n\n[Content Enricher](DataEnricher.html)\n\n[Content Filter](ContentFilter.html)\n\n[Claim Check](StoreInLibrary.html)\n\n[Normalizer](Normalizer.html)\n\n[Canonical Data Model](CanonicalDataModel.html)\n\n[Messaging Endpoints](MessagingEndpointsIntro.html)\n\n[Message Endpoint](MessageEndpoint.html)\n\n[Messaging Gateway](MessagingGateway.html)\n\n[Messaging Mapper](MessagingMapper.html)\n\n[Transactional Client](TransactionalClient.html)\n\n[Polling Consumer](PollingConsumer.html)\n\n[Event-driven Consumer](EventDrivenConsumer.html)\n\n[Competing Consumers](CompetingConsumers.html)\n\n[Message Dispatcher](MessageDispatcher.html)\n\n[Selective Consumer](MessageSelector.html)\n\n[Durable Subscriber](DurableSubscription.html)\n\n[Idempotent Receiver](IdempotentReceiver.html)\n\n[Service Activator](MessagingAdapter.html)\n\n[Messaging Channels](MessagingChannelsIntro.html)\n\n[Message Channel](MessageChannel.html)\n\n[Point-to-Point Channel](PointToPointChannel.html)\n\n[Publish-Subscr. Channel](PublishSubscribeChannel.html)\n\n[Datatype Channel](DatatypeChannel.html)\n\n[Invalid Message Channel](InvalidMessageChannel.html)\n\n[Dead Letter Channel](DeadLetterChannel.html)\n\n[Guaranteed Delivery](GuaranteedMessaging.html)\n\n[Channel Adapter](ChannelAdapter.html)\n\n[Messaging Bridge](MessagingBridge.html)\n\n[Message Bus](MessageBus.html)\n\n[Systems Mgmt.](SystemManagementIntro.html)\n\n[Control Bus](ControlBus.html)\n\n[Detour](Detour.html)\n\n[Wire Tap](WireTap.html)\n\n[Message History](MessageHistory.html)\n\n[Message Store](MessageStore.html)\n\n[Smart Proxy](SmartProxy.html)\n\n[Test Message](TestMessage.html)\n\n[Channel Purger](ChannelPurger.html)", "znaku_textu": 8015, "slov": 937, "odkazu": 107, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 15:34:56", "sha256": "bc252357abc1e7b4c3aafb7fa9fae9c97bc7b4821f1b766b0da30c1d8dcf5c91", "hloubka": 4, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "https://www.architectelevator.com/book", "https://www.cloudstrategybook.com/", "https://www.platformstrategybook.info/"]} {"url": "http://www.enterpriseintegrationpatterns.com/TestMessage.html", "titulek": "Test Message - Enterprise Integration Patterns", "h1": "", "popis": "What happens, though, if a component is actively processing messages, but garbles outgoing messages due to an internal fault?", "klicova_slova": "Test Message,integration, messaging, events, patterns, event-driven, coupling, eai, middleware, application integration, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns", "og:title": "Test Message - Enterprise Integration Patterns", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/TestMessage.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/TestMessage.gif"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Integration Pattern Language"}], "markdown": "| | Test Message[Messaging Patterns](index.html) » [System Management](SystemManagementIntro.html) | [Contents](toc.html)[⇐ Prev](SmartProxy.html)[Next ⇒](ChannelPurger.html) |\n| --- | --- | --- |\n\nThe [*Control Bus*](ControlBus.html) describes a number of approaches to monitor the health of the message processing system. Each component in the system can publish periodic \"heartbeat\" messages to the control bus in order to keep the monitoring mechanism informed that the component is still active. The heartbeat messages can contain vital stats of the component as well, such as the number of messages processed, the average time required to process a message or the percentage of CPU utilization on the machine.\n\nWhat happens, though, if a component is actively processing messages, but garbles outgoing messages due to an internal fault?\n\nTherefore, use *Test Message* to assure the health of message processing components (see Figure).\n\nThe *Test Message* pattern relies on the following components:\n\n- The **Test Data Generator** creates messages to be sent to the component for testing. Test data may be constant, driven by a test data file or generated randomly.\n- The **Test Message Injector** inserts test data into the regular stream of data messages sent to the component. The main role of the injector is to tag messages in order to differentiate 'real' application messages from test messages. This can be accomplished by inserting a special header field. If we have no control over the message structure, we can try to use special values to indicate test messages (e.g. OrderID = 999999). This changes the semantics of application data by using the same field to represent application data (the actual order number) and control information (this is a test message). Therefore, this approach should be used only as a last resort.\n- The **Test Message Separator** extracts the results of test messages from the output stream. This can usually be accomplished by using a [*Content-Based Router*](ContentBasedRouter.html) .\n- The **Test Data Verifier** compares actual results with expected results and flags an exception if a discrepancy is discovered. Depending on the nature of the test data, the verifier may need access to the original test data.\n\n...\nRead the entire pattern in the book [Enterprise Integration Patterns](/books1.html)\n\n**Related patterns:**\n\n[*Content-Based Router*](ContentBasedRouter.html), [*Control Bus*](ControlBus.html), [*Return Address*](ReturnAddress.html), [*Loan Broker System Management*](SystemManagementExample.html)\n\n---\n\n## Integration Pattern Language\n\n[Message Construct.](MessageConstructionIntro.html)\n\n[Message](Message.html)\n\n[Command Message](CommandMessage.html)\n\n[Document Message](DocumentMessage.html)\n\n[Event Message](EventMessage.html)\n\n[Request-Reply](RequestReply.html)\n\n[Return Address](ReturnAddress.html)\n\n[Correlation Identifier](CorrelationIdentifier.html)\n\n[Message Sequence](MessageSequence.html)\n\n[Message Expiration](MessageExpiration.html)\n\n[Format Indicator](FormatIndicator.html)\n\n[Message Routing](MessageRoutingIntro.html)\n\n[Pipes-and-Filters](PipesAndFilters.html)\n\n[Message Router](MessageRouter.html)\n\n[Content-based Router](ContentBasedRouter.html)\n\n[Message Filter](Filter.html)\n\n[Dynamic Router](DynamicRouter.html)\n\n[Recipient List](RecipientList.html)\n\n[Splitter](Sequencer.html)\n\n[Aggregator](Aggregator.html)\n\n[Resequencer](Resequencer.html)\n\n[Composed Msg. Processor](DistributionAggregate.html)\n\n[Scatter-Gather](BroadcastAggregate.html)\n\n[Routing Slip](RoutingTable.html)\n\n[Process Manager](ProcessManager.html)\n\n[Message Broker](MessageBroker.html)\n\n[Message\nTransformation](MessageTransformationIntro.html)\n\n[Message Translator](MessageTranslator.html)\n\n[Envelope Wrapper](EnvelopeWrapper.html)\n\n[Content Enricher](DataEnricher.html)\n\n[Content Filter](ContentFilter.html)\n\n[Claim Check](StoreInLibrary.html)\n\n[Normalizer](Normalizer.html)\n\n[Canonical Data Model](CanonicalDataModel.html)\n\n[Messaging Endpoints](MessagingEndpointsIntro.html)\n\n[Message Endpoint](MessageEndpoint.html)\n\n[Messaging Gateway](MessagingGateway.html)\n\n[Messaging Mapper](MessagingMapper.html)\n\n[Transactional Client](TransactionalClient.html)\n\n[Polling Consumer](PollingConsumer.html)\n\n[Event-driven Consumer](EventDrivenConsumer.html)\n\n[Competing Consumers](CompetingConsumers.html)\n\n[Message Dispatcher](MessageDispatcher.html)\n\n[Selective Consumer](MessageSelector.html)\n\n[Durable Subscriber](DurableSubscription.html)\n\n[Idempotent Receiver](IdempotentReceiver.html)\n\n[Service Activator](MessagingAdapter.html)\n\n[Messaging Channels](MessagingChannelsIntro.html)\n\n[Message Channel](MessageChannel.html)\n\n[Point-to-Point Channel](PointToPointChannel.html)\n\n[Publish-Subscr. Channel](PublishSubscribeChannel.html)\n\n[Datatype Channel](DatatypeChannel.html)\n\n[Invalid Message Channel](InvalidMessageChannel.html)\n\n[Dead Letter Channel](DeadLetterChannel.html)\n\n[Guaranteed Delivery](GuaranteedMessaging.html)\n\n[Channel Adapter](ChannelAdapter.html)\n\n[Messaging Bridge](MessagingBridge.html)\n\n[Message Bus](MessageBus.html)\n\n[Systems Mgmt.](SystemManagementIntro.html)\n\n[Control Bus](ControlBus.html)\n\n[Detour](Detour.html)\n\n[Wire Tap](WireTap.html)\n\n[Message History](MessageHistory.html)\n\n[Message Store](MessageStore.html)\n\n[Smart Proxy](SmartProxy.html)\n\n[Test Message](TestMessage.html)\n\n[Channel Purger](ChannelPurger.html)", "znaku_textu": 5265, "slov": 511, "odkazu": 108, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 15:35:03", "sha256": "62abc89458cea9392893132bafeba284c7609931f5259275a0bb2ac69a851e96", "hloubka": 4, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://creativecommons.org/licenses/by/4.0/", "https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "https://www.architectelevator.com/book", "https://www.cloudstrategybook.com/", "https://www.platformstrategybook.info/"]} {"url": "http://www.enterpriseintegrationpatterns.com/TransactionalClient.html", "titulek": "Transactional Client - Enterprise Integration Patterns", "h1": "", "popis": "How can a client control its transactions with the messaging system?", "klicova_slova": "Transactional Client,integration, messaging, events, patterns, event-driven, coupling, eai, middleware, application integration, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns", "og:title": "Transactional Client - Enterprise Integration Patterns", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/TransactionalClient.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/TransactionalClientSolution.gif"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Example: (Not quite) Transactional Client in Amazon SQSNEW"}, {"uroven": 2, "text": "Integration Pattern Language"}], "markdown": "| | Transactional Client[Messaging Patterns](index.html) » [Messaging Endpoints](MessagingEndpointsIntro.html) | [Contents](toc.html)[⇐ Prev](MessagingMapper.html)[Next ⇒](PollingConsumer.html) |\n| --- | --- | --- |\n\nA messaging system, by necessity, uses transactional behavior internally. It may be useful for an external client to be able to control the scope of the transactions that impact its behavior.\n\nHow can a client control its transactions with the messaging system?\n\nUse a *Transactional Client*—make the client’s session with the messaging system transactional so that the client can specify transaction boundaries.\n\nBoth a sender and a receiver can be transactional. With a sender, the message isn’t “really” added to the channel until the sender commits the transaction. With a receiver, the message isn’t “really” removed from the channel until the receiver commits the transaction. A sender that uses explicit transactions can be used with a receiver that uses implicit transactions, and vise versa. A single channel might have a combination of implicitly and explicitly transactional senders; it could also have a combination of receivers.\n\n...\nRead the entire pattern in the book [Enterprise Integration Patterns](/books1.html)\n\n## Example: (Not quite) Transactional Client in Amazon SQS[NEW](/ramblings/eip1_examples_updated.html)\n\n*Transactional Client* semantics can cause serious performance degradation in widely distributed systems. Many cloud-based messaging systems therefore don't implement *Transactional Client*s. However, these systems still aim to provide protection against client s crashing after they consume but before they process a message. The [Amazon Simple Queuing Service (SQS)](https://aws.amazon.com/sqs) provides this protection via so-called *Visibility Timeout*. In this configuration, message consumers don't actually remove messages from the queue - the message simply becomes invisible to other consumers. After successfully processing the message, a message consumer must explicitly delete the message from the queue. If a message is not deleted, it becomes visible again to other consumers after the set timeout interval expires.\n\nThe book *Cloud Computing Patterns* documents this behavior as a distinct pattern called [Time-out Based Delivery](http://www.cloudcomputingpatterns.org/timeout_based_delivery/).\n\n**Related patterns:**\n\n[*Channel Adapter*](ChannelAdapter.html), [*Competing Consumers*](CompetingConsumers.html), [*Document Message*](DocumentMessage.html), [*Event-Driven Consumer*](EventDrivenConsumer.html), [*Event Message*](EventMessage.html), [*Guaranteed Delivery*](GuaranteedMessaging.html), [*Message*](Message.html), [*Message Channel*](MessageChannel.html), [*Message Dispatcher*](MessageDispatcher.html), [*Message Endpoint*](MessageEndpoint.html), [*Message Router*](MessageRouter.html), [*Message Sequence*](MessageSequence.html), [*Message Translator*](MessageTranslator.html), [*Messaging Bridge*](MessagingBridge.html), [*Pipes and Filters*](PipesAndFilters.html), [*Point-to-Point Channel*](PointToPointChannel.html), [*Polling Consumer*](PollingConsumer.html), [*Publish-Subscribe Channel*](PublishSubscribeChannel.html), [*Request-Reply*](RequestReply.html), [*Resequencer*](Resequencer.html)\n\n---\n\n## Integration Pattern Language\n\n[Message Construct.](MessageConstructionIntro.html)\n\n[Message](Message.html)\n\n[Command Message](CommandMessage.html)\n\n[Document Message](DocumentMessage.html)\n\n[Event Message](EventMessage.html)\n\n[Request-Reply](RequestReply.html)\n\n[Return Address](ReturnAddress.html)\n\n[Correlation Identifier](CorrelationIdentifier.html)\n\n[Message Sequence](MessageSequence.html)\n\n[Message Expiration](MessageExpiration.html)\n\n[Format Indicator](FormatIndicator.html)\n\n[Message Routing](MessageRoutingIntro.html)\n\n[Pipes-and-Filters](PipesAndFilters.html)\n\n[Message Router](MessageRouter.html)\n\n[Content-based Router](ContentBasedRouter.html)\n\n[Message Filter](Filter.html)\n\n[Dynamic Router](DynamicRouter.html)\n\n[Recipient List](RecipientList.html)\n\n[Splitter](Sequencer.html)\n\n[Aggregator](Aggregator.html)\n\n[Resequencer](Resequencer.html)\n\n[Composed Msg. Processor](DistributionAggregate.html)\n\n[Scatter-Gather](BroadcastAggregate.html)\n\n[Routing Slip](RoutingTable.html)\n\n[Process Manager](ProcessManager.html)\n\n[Message Broker](MessageBroker.html)\n\n[Message\nTransformation](MessageTransformationIntro.html)\n\n[Message Translator](MessageTranslator.html)\n\n[Envelope Wrapper](EnvelopeWrapper.html)\n\n[Content Enricher](DataEnricher.html)\n\n[Content Filter](ContentFilter.html)\n\n[Claim Check](StoreInLibrary.html)\n\n[Normalizer](Normalizer.html)\n\n[Canonical Data Model](CanonicalDataModel.html)\n\n[Messaging Endpoints](MessagingEndpointsIntro.html)\n\n[Message Endpoint](MessageEndpoint.html)\n\n[Messaging Gateway](MessagingGateway.html)\n\n[Messaging Mapper](MessagingMapper.html)\n\n[Transactional Client](TransactionalClient.html)\n\n[Polling Consumer](PollingConsumer.html)\n\n[Event-driven Consumer](EventDrivenConsumer.html)\n\n[Competing Consumers](CompetingConsumers.html)\n\n[Message Dispatcher](MessageDispatcher.html)\n\n[Selective Consumer](MessageSelector.html)\n\n[Durable Subscriber](DurableSubscription.html)\n\n[Idempotent Receiver](IdempotentReceiver.html)\n\n[Service Activator](MessagingAdapter.html)\n\n[Messaging Channels](MessagingChannelsIntro.html)\n\n[Message Channel](MessageChannel.html)\n\n[Point-to-Point Channel](PointToPointChannel.html)\n\n[Publish-Subscr. Channel](PublishSubscribeChannel.html)\n\n[Datatype Channel](DatatypeChannel.html)\n\n[Invalid Message Channel](InvalidMessageChannel.html)\n\n[Dead Letter Channel](DeadLetterChannel.html)\n\n[Guaranteed Delivery](GuaranteedMessaging.html)\n\n[Channel Adapter](ChannelAdapter.html)\n\n[Messaging Bridge](MessagingBridge.html)\n\n[Message Bus](MessageBus.html)\n\n[Systems Mgmt.](SystemManagementIntro.html)\n\n[Control Bus](ControlBus.html)\n\n[Detour](Detour.html)\n\n[Wire Tap](WireTap.html)\n\n[Message History](MessageHistory.html)\n\n[Message Store](MessageStore.html)\n\n[Smart Proxy](SmartProxy.html)\n\n[Test Message](TestMessage.html)\n\n[Channel Purger](ChannelPurger.html)", "znaku_textu": 5989, "slov": 531, "odkazu": 111, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 15:34:37", "sha256": "4c68a9d914e3aef5c2d003ee0b823a0954189713cf3e1b949d533234a65a93c9", "hloubka": 4, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://aws.amazon.com/sqs", "http://www.cloudcomputingpatterns.org/timeout_based_delivery/", "http://creativecommons.org/licenses/by/4.0/", "https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "https://www.architectelevator.com/book", "https://www.cloudstrategybook.com/", "https://www.platformstrategybook.info/"]} {"url": "http://www.enterpriseintegrationpatterns.com/WireTap.html", "titulek": "Wire Tap - Enterprise Integration Patterns", "h1": "", "popis": "How do you inspect messages that travel on a point-to-point channel?", "klicova_slova": "Wire Tap,integration, messaging, events, patterns, event-driven, coupling, eai, middleware, application integration, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns", "og:title": "Wire Tap - Enterprise Integration Patterns", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/WireTap.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/WireTap.gif"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Integration Pattern Language"}], "markdown": "Messaging Patterns\n\n[Messaging Patterns](index.html)\n\n- [Integration Styles](IntegrationStylesIntro.html)\n- [Messaging Systems](MessagingComponentsIntro.html)\n- [Messaging Channels](MessagingChannelsIntro.html)\n- [Message Construction](MessageConstructionIntro.html)\n- [Interlude: Simple Messaging](SimpleMessagingIntro.html)\n- [Message Routing](MessageRoutingIntro.html)\n- [Message Transformation](MessageTransformationIntro.html)\n- [Interlude: Composed Messaging](ComposedMessagingExample.html)\n- [Messaging Endpoints](MessagingEndpointsIntro.html)\n- [System Management](SystemManagementIntro.html)\n- Interlude: Systems Management Example\n- Integration Patterns in Practice\n- Concluding Remarks\n- Appendices\n\n| | Wire Tap[Messaging Patterns](index.html) » [System Management](SystemManagementIntro.html) | [Contents](toc.html)[⇐ Prev](Detour.html)[Next ⇒](MessageHistory.html) |\n| --- | --- | --- |\n\n[*Point-to-Point Channel*](PointToPointChannel.html)s are often used for [*Document Message*](DocumentMessage.html)s because they ensure that exactly one consumer will consume each message. However, for testing, monitoring or troubleshooting, it may be useful to be able to inspect all messages that travel across the channel.\n\nHow do you inspect messages that travel on a point-to-point channel?\n\nInsert a simple Recipient List into the channel that publishes each incoming message to the main channel and a secondary channel.\n\nThe *Wire Tap* is a fixed [*Recipient List*](RecipientList.html) with two output channels. It consumes messages off the input channel and publishes the unmodified message to both output channels. To insert the *Wire Tap* into a channel, you need to create an additional channel and change the destination receiver to consume of the second channel. Because the analysis logic is located inside a second component, we can insert a generic *Wire Tap* into any channel without any danger of modifying the primary channel behavior. This improves reuse and reduces the risk of instrumenting an existing solution.\n\n...\nRead the entire pattern in the book [Enterprise Integration Patterns](/books1.html)\n\n**Related patterns:**\n\n[*Competing Consumers*](CompetingConsumers.html), [*Control Bus*](ControlBus.html), [*Detour*](Detour.html), [*Document Message*](DocumentMessage.html), [*Message Broker*](MessageBroker.html), [*Message Store*](MessageStore.html), [*Point-to-Point Channel*](PointToPointChannel.html), [*Publish-Subscribe Channel*](PublishSubscribeChannel.html), [*Recipient List*](RecipientList.html), [*Loan Broker System Management*](SystemManagementExample.html)\n\n---\n\n## Integration Pattern Language\n\n[Message Construct.](MessageConstructionIntro.html)\n\n[Message](Message.html)\n\n[Command Message](CommandMessage.html)\n\n[Document Message](DocumentMessage.html)\n\n[Event Message](EventMessage.html)\n\n[Request-Reply](RequestReply.html)\n\n[Return Address](ReturnAddress.html)\n\n[Correlation Identifier](CorrelationIdentifier.html)\n\n[Message Sequence](MessageSequence.html)\n\n[Message Expiration](MessageExpiration.html)\n\n[Format Indicator](FormatIndicator.html)\n\n[Message Routing](MessageRoutingIntro.html)\n\n[Pipes-and-Filters](PipesAndFilters.html)\n\n[Message Router](MessageRouter.html)\n\n[Content-based Router](ContentBasedRouter.html)\n\n[Message Filter](Filter.html)\n\n[Dynamic Router](DynamicRouter.html)\n\n[Recipient List](RecipientList.html)\n\n[Splitter](Sequencer.html)\n\n[Aggregator](Aggregator.html)\n\n[Resequencer](Resequencer.html)\n\n[Composed Msg. Processor](DistributionAggregate.html)\n\n[Scatter-Gather](BroadcastAggregate.html)\n\n[Routing Slip](RoutingTable.html)\n\n[Process Manager](ProcessManager.html)\n\n[Message Broker](MessageBroker.html)\n\n[Message\nTransformation](MessageTransformationIntro.html)\n\n[Message Translator](MessageTranslator.html)\n\n[Envelope Wrapper](EnvelopeWrapper.html)\n\n[Content Enricher](DataEnricher.html)\n\n[Content Filter](ContentFilter.html)\n\n[Claim Check](StoreInLibrary.html)\n\n[Normalizer](Normalizer.html)\n\n[Canonical Data Model](CanonicalDataModel.html)\n\n[Messaging Endpoints](MessagingEndpointsIntro.html)\n\n[Message Endpoint](MessageEndpoint.html)\n\n[Messaging Gateway](MessagingGateway.html)\n\n[Messaging Mapper](MessagingMapper.html)\n\n[Transactional Client](TransactionalClient.html)\n\n[Polling Consumer](PollingConsumer.html)\n\n[Event-driven Consumer](EventDrivenConsumer.html)\n\n[Competing Consumers](CompetingConsumers.html)\n\n[Message Dispatcher](MessageDispatcher.html)\n\n[Selective Consumer](MessageSelector.html)\n\n[Durable Subscriber](DurableSubscription.html)\n\n[Idempotent Receiver](IdempotentReceiver.html)\n\n[Service Activator](MessagingAdapter.html)\n\n[Messaging Channels](MessagingChannelsIntro.html)\n\n[Message Channel](MessageChannel.html)\n\n[Point-to-Point Channel](PointToPointChannel.html)\n\n[Publish-Subscr. Channel](PublishSubscribeChannel.html)\n\n[Datatype Channel](DatatypeChannel.html)\n\n[Invalid Message Channel](InvalidMessageChannel.html)\n\n[Dead Letter Channel](DeadLetterChannel.html)\n\n[Guaranteed Delivery](GuaranteedMessaging.html)\n\n[Channel Adapter](ChannelAdapter.html)\n\n[Messaging Bridge](MessagingBridge.html)\n\n[Message Bus](MessageBus.html)\n\n[Systems Mgmt.](SystemManagementIntro.html)\n\n[Control Bus](ControlBus.html)\n\n[Detour](Detour.html)\n\n[Wire Tap](WireTap.html)\n\n[Message History](MessageHistory.html)\n\n[Message Store](MessageStore.html)\n\n[Smart Proxy](SmartProxy.html)\n\n[Test Message](TestMessage.html)\n\n[Channel Purger](ChannelPurger.html)\n\n- » [Read the latest in My Blog](/ramblings)\n- » [Get more insights from My Articles](/articles.html)\n- » [See me live in my Upcoming Talks](/talks)\n\nYou can reuse the following elements under the [Creative Commons Attribution](http://creativecommons.org/licenses/by/4.0/) license: pattern icon, pattern name, problem and solution statements (in bold), and the sketch. Other portions are protected by copyright.\n\n[Enterprise Integration Patterns](https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20)\nThe de-facto language for designing asynchronous, distributed systems. Over 100,000 copies sold.\n\n[The Software Architect Elevator](https://www.architectelevator.com/book)\n\n Rethink the role of architects as a connecting element across organizational layers. Acquire the technical, communication, and organizational skills to succeed in this new role.\n\n[Cloud Strategy](https://www.cloudstrategybook.com)\n\n Make your cloud migration a success by translating high-level goals into conscious decisions with well-understood trade-offs.\n\n[Platform Strategy](https://www.platformstrategybook.info)\n\n Platforms can boost innovation through harmonization, but they aren't easy to build. Learn from over a decade of designing and rolling out IT platforms.", "znaku_textu": 6552, "slov": 568, "odkazu": 108, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 15:35:00", "sha256": "b275e1b1f27150cd5c5078d83113648b86702c8f2140380c8142cf9c5b6502cb", "hloubka": 4, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://creativecommons.org/licenses/by/4.0/", "https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "https://www.architectelevator.com/book", "https://www.cloudstrategybook.com/", "https://www.platformstrategybook.info/"]} {"url": "http://www.enterpriseintegrationpatterns.com/articles.html", "titulek": "Articles - Enterprise Integration Patterns", "h1": "", "popis": "I've been a steady contributor to IEEE Software over the years. Find all published articles on this page.", "klicova_slova": "", "kanonicka": "", "jazyk": "en_US", "robots_meta": "", "og": {"og:type": "article", "og:locale": "en_US", "og:site_name": "Enterprise Integration Patterns", "og:title": "Articles - Enterprise Integration Patterns", "og:description": "I've been a steady contributor to IEEE Software over the years. Find all published articles on this page.", "og:url": "https://www.enterpriseintegrationpatterns.com/articles.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/articles.jpg"}, "jsonld": [], "drobecky": [], "osnova": [], "markdown": "Articles\n\n---\n\nI like to write and speak about EAI, SOA, Web Services, Agile Development, \r\n and Patterns. This page lists my white papers and articles. Please \r\n check out the [Links](/links.html) section for interesting works by \r\n other authors. If you find any of these articles useful, feel free to [contact \r\n me](/gregor.html) directly.\n\n| | A Decade of Enterprise Integration Patterns [[Download PDF from IEEE Explore]](https://ieeexplore.ieee.org/stamp/stamp.jsp?tp=&arnumber=7368007) \n IEEE Software Magazine January/February 2016 A little over a decade after EIP was published, Bobby and I sat down with Cesare Pautasso and Olaf Zimmermann to discuss how integration platforms evolved, why the patterns remained relevant, and what we would do differently today. |\n| --- | --- |\n| | |\n| | 20 Years of Patterns' Impact [[Download PDF from IEEE Explore]](http://ieeexplore.ieee.org/xpl/articleDetails.jsp?arnumber=6648592) \n IEEE Software Magazine November/December 2013 This article under the *Impacts* column of *IEEE Software Magazine* celebrates 20 years of software patterns. IEEE Software advisory board members teamed up with members of the Hillside Group, a nonprofit organization that promotes the use of patterns and pattern languages, to reflect on the state of the practice and impact of patterns. With Rebecca Wirfs-Brock, Joe Yoder, Olaf Zimmermann |\n| | |\n| | SOA Patterns - New Insights or Recycled Knowledge? [[PDF]](/docs/SoaPatterns.pdf) \n May 2007 Design Patterns have enjoyed enormous popularity in the software community and have \r\n become somewhat of a fad. This can make it challenging to distinguish patterns that \r\n convey new knowledge from recipes or tutorials that have been cast into patterns form. \r\n This article examines the role patterns play in the adoption of new technologies and \r\n architectural styles. In particular it describes why the shift to service-oriented \r\n architectures requires us to discover, document, and share new patterns. |\n| | |\n| | Let's Have a Conversation [[PDF]](/docs/IEEE_IC_Conversations.pdf) \n IEEE Internet Computing May/June 2007 Communicating inside a single program is\r\n trivial: one method calls another, the result \r\n comes back, and the calling method continues. \r\n If anything goes wrong, an exception is \r\n thrown. If the program aborts altogether, both\r\n caller and callee share the same fate, making the \r\n interaction an all-or-nothing affair. \n\r\n In the land of loosely coupled distributed systems, \r\n things are a little more complicated. Messages are sent, correlated, lost, retried, timed out. Soon we are looking at a full fledged conversation between multiple systems. |\n| | |\n| | Workshop Report: Conversation Patterns [[PDF]](http://drops.dagstuhl.de/opus/frontdoor.php?source_opus=828) \n June 2006, Dagstuhl Seminar Proceedings 06291 In a service-oriented architecture systems communicate by exchanging messages. Message passing provides for robust and loosely coupled interaction but it also provides less structure than traditional RPC models, which are based on a fairly rigid request-response interaction style. Instead, messages exchanged over time between a set of parties can form a multitude of conversations. An expressive contract between communicating parties should define a coordination protocol that describes which conversations are legal. Such a protocol can be expressed in different ways, for example through choreography or public endpoint process definitions. The purpose of conversations patterns is to document common forms of conversations in the design pattern format, highlighting design trade-offs and popular implementations. As part of the Dagstuhl Seminar 06291 on The Role of Business Processes in Service Oriented Architectures in July 2006 we held a Workshop on Conversation Patterns. In this paper, we report on the results of this workshop. |\n| | |\n| | Programmieren ohne Stack: Ereignis-getriebene \r\n Architekturen [[PDF]](http://www.sigs-datacom.de/fachzeitschriften/objektspektrum/archiv/artikelansicht.html?tx_mwjournals_pi1%5Bpointer%5D=0&tx_mwjournals_pi1%5Bmode%5D=1&tx_mwjournals_pi1%5BshowUid%5D=1791) \n ObjektSpektrum March/April 2006 My first published article in German. Here the (unedited) English adaptation \r\n - [Programming Without a Call Stack](/docs/EDA.pdf). Most computer systems are built on a command-and-control scheme: one \r\n method calls another method and instructs it to perform some action or \r\n to retrieve some required information. But often the real world works \r\n differently. A company receives a new order; a web server receives a request \r\n for a Web page, the right front wheel of my car locks up. In neither case \r\n did the system (order processing, web server, anti-lock brake control) \r\n schedule or request the action. Instead the event occurred based on external \r\n action or activity, caused either by the physical world or another, connected \r\n computer system. Could we change the architecture of our system to relinquish \r\n control and instead respond to events as they arrive? What would such \r\n a system look like? |\n| | |\n| | Cutter Executive Update: Open Source Middleware: Ready for Prime Time?\n July 2005, Cutter Consortium (with Ian Cartwright) Open source software (OSS) has captured enormous mindshare not only among developers but also among consumers and enterprise users. When you browse the Web, you might well use a Mozilla FireFox browser, be routed to the correct host via a BIND DNS server, and view a Web page served up by the Apache HTTP server running on a LINUX operating system. All four pieces of software are part of the growing repertoire of successful open source applications. The [full text version](http://www.cutter.com/content/architecture/fulltext/updates/2005/eau0512.html) can be ordered on the Cutter site. |\n| | |\n| | The Best Software Writing I: Selected and Introduced \r\n by Joel Spolsky\n June 2005, APress Joel selected my blog entry [Starbucks \r\n does not use Two-Phase Commit](/ramblings/18_starbucks.html) for his collection of software essays. |\n| | |\n| | Your Coffee Shop Does Not Use Two-Phase Commit [[HTML]](http://csdl.computer.org/comp/mags/so/2005/02/s2064abs.htm) [[PDF]](/docs/IEEE_Software_Design_2PC.pdf) \n IEEE Software Magazine March/April 2005 Asynchronous processing models can be highly efficient but are not without \r\n challenges. If the real world writes the best stories, then maybe we can \r\n learn something from Starbucks about designing successful asynchronous \r\n messaging solutions.\n (on-line article only available to IEEE digital \r\n library subscribers) (This material is presented to ensure timely dissemination \r\n of scholarly and technical work. Copyright and all rights therein are \r\n retained by authors or by other copyright holders. All persons copying \r\n this information are expected to adhere to the terms and constraints invoked \r\n by each author's copyright. In most cases, these works may not be reposted \r\n without the explicit permission of the copyright holder.) |\n| | |\n| | Developing in a Service-Oriented World [[PDF]](/docs/SOA_World.pdf)\n January 2005, GI Lecture Notes in Informatics \r\n P-65 The biggest shift triggered by SOA is not in the technologies used but \r\n in the way we think about our software. This paper explores what SOA means \r\n for developers - new architectural styles, new programming models and \r\n new tools.\n \n (This paper originally appeared in the proceedings \r\n of the [BTW 2005 Conference](http://www.btw2005.de)in Karlsruhe.) |\n| | |\n| | Enterprise Integration Patterns with BizTalk \r\n Server 2004 [[PDF]](/docs/integrationpatterns_biztalk.pdf)\n July 2004\n This paper demonstrates how a pattern-based design approach can help \r\n decompose an integration problem into a set of reusable patterns. Next, \r\n we map these patterns to the Microsoft BizTalk Server 2004 platform. |\n| | |\n| | An Asynchronous World [[HTML]](http://www.drdobbs.com/an-asynchronous-world/184415001)\n July 2003, Software Development Magazine\n Online, you can get all the documentation you want \r\n on the Java Messaging Service API. But when it comes to drafting messaging \r\n architectures for distributed logic and data, it's often more interesting \r\n to look at what sits between the applications.\n (free one-time registration required to \r\n access on-line article) |\n| | |\n| | XML Abuse [[HTML]](http://www.drdobbs.com/xml-abuse/184414926)\n Dec 2002, Software Development Magazine\n XML is the wonderdrug of the 21st century. Or so make \r\n you the vendors and marchitects believe. However, like any good tool it \r\n can be abused in at least five different ways. This article discusses \r\n some of the most hair-raising XML abuse I have encountered.\n (Free one-time registration required to \r\n access on-line article) |\n| | |\n| | Agile EAI [[PDF]](/docs/Agile%20EAI.pdf) [[HTML]](/docs/agileEAI.html)\n Nov 2002, with Martin Fowler\n This article describes some of the benefits and challenges \r\n of implementing agile practices for EAI development. It is based on a \r\n talk that Martin and I gave at the LOMA Systems Forum last year. |\n| | |\n| | Test-Driven Development in Enterprise Integration \r\n Projects [[PDF]](/docs/TestDrivenEAI.pdf)Nov 2002 This whitepaper describes how test-driven development \r\n can benefit EAI projects. It examines the challenges of automated testing \r\n in an asynchronous messaging environment and presents tools and techniques \r\n to help improve quality and productivity on EAI projects. |\n| | |\n| | Enterprise Integration Patterns [[PDF]](/docs/Enterprise%20Integration%20Patterns%20-%20PLoP%20Final%20Draft%203.pdf)July 2002\n My original paper on integration patterns. I workshopped \r\n this paper at the PLoP conference in 2002. You can see that the patterns \r\n have come a long way since last Summer. |\n| | |\n| | Stairway to Heaven - Service Oriented Architectures [[PDF]](/docs/stairwaytoheaven.pdf)\n May 2002, Software Development Magazine This article tries to dampen some of the hype around \r\n Web services and Service-Oriented Architectures (SOA). Web Services supporters \r\n herald the advent of the Service-Oriented Architecture which will solve \r\n our EAI-style integration pains. SOAs are an intriguing concept, but it \r\n will take a multi-phase evolution until SOAs will establish themselves \r\n as the integration architecture of choice.\n (Free one-time registration required to \r\n access on-line article) |\n| | |\n\n---\n\n---", "znaku_textu": 10248, "slov": 1380, "odkazu": 34, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 14:54:28", "sha256": "afb7b1389188571a14c83929e5e1fbd774830b9ee44d54fe6fb6a6f6a5c38a67", "hloubka": 3, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://ieeexplore.ieee.org/stamp/stamp.jsp?arnumber=7368007&tp=", "http://ieeexplore.ieee.org/xpl/articleDetails.jsp?arnumber=6648592", "http://drops.dagstuhl.de/opus/frontdoor.php?source_opus=828", "http://www.sigs-datacom.de/sd/publications/pub_article_show.htm?AID=1791&TABLE=sd_article", "http://www.sigs-datacom.de/fachzeitschriften/objektspektrum/archiv/artikelansicht.html?tx_mwjournals_pi1%5Bmode%5D=1&tx_mwjournals_pi1%5Bpointer%5D=0&tx_mwjournals_pi1%5BshowUid%5D=1791", "http://www.apress.com/book/bookDisplay.html?bID=453+", "http://www.cutter.com/content/architecture/fulltext/updates/2005/eau0512.html", "http://www.apress.com/book/bookDisplay.html?bID=453", "http://csdl.computer.org/comp/mags/so/2005/02/s2064abs.htm", "http://www.btw2005.de/", "http://www.drdobbs.com/an-asynchronous-world/184415001", "http://www.drdobbs.com/xml-abuse/184414926"]} {"url": "http://www.enterpriseintegrationpatterns.com/books1.html", "titulek": "Books - Enterprise Integration Patterns", "h1": "", "popis": "", "klicova_slova": "", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [], "markdown": "Books\n\n---\n\nSome of the books in this annotated bibliography on enterprise integration are dated now, but most of them are still relevant because they're not limited to a specific technology. I own almost all of the books listed here and have read all of the good ones :-) Also see [books I authored or co-authored](gregor.html).\n\n| **EAI** | **[Web Services & SOA](books2.html)** | **[Messaging](books3.html)** | **[Patterns](books4.html)** | **[Software Architecture](books5.html)** |\n| --- | --- | --- | --- | --- |\n\n| Many EAI books present different technologies at a high level (I call them \"glorified glossary\") but don't provide sufficient guidance on how to build an actual solution. Those that do usually focus on a specific API such as CORBA or JMS. |\n| --- |\n\n| | | |\n| --- | --- | --- |\n| | **[Enterprise Integration Patterns](http://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20)** \n\r\n Hohpe, Woolf\r\n \n\r\n Addison-Wesley, 2003 | |\n| This book includes all 65 patterns from this site plus more examples and lots of edits. The book was born out of the absence of books that focus on the design of messaging systems without being limited to a specific technology. | | |\n| | | |\n| | **[Integration Patterns](http://amazon.com/o/asin/073561850X/ref=nosim/enterpriseint-20)** \n\r\n Trowbridge, Roxburgh, Hohpe, Manolescu, Nadhan\r\n \n\r\n Microsoft, 2004 | |\n| The Microsoft Patterns and Practices group published a book that I contributed to for a few months. The content has been on-line on MSDN for a while but it is nice to have it in printed form. The book complements our book quite well as it focuses on higher-level integration constructs and uses larger industry examples. It should be a worthwhile read even for people outside of the Microsoft community because the architecture and design patterns are universally applicable. Naturally, the implementation examples use ASP.NET and BizTalk Server 2004. | | |\n| | | |\n| | **[Data and Reality](http://amazon.com/o/asin/1585009709/ref=nosim/enterpriseint-20)** \n\r\n William Kent\r\n \n\r\n 1stBooks, 1978, 2000 | |\n| Hold on, a 20-year-old book on EAI? Yes. Not about EAI technologies, but about one of the toughest issues in integration: how to model and integrate data. Kent explains why highways are not painted red and rivers do not have county lines run down the middle, even though it likes like that on a map! The classic book tells us why modeling reality inside a computer system is so hard. You can get the hardcover at Amazon for $45, but 1stBooks offers an electronic version for $8.95 or a $30 paperback version at http://www.1stbooks.com. | | |\n| | | |\n| | **[IT Architectures and Middleware: Strategies for Building Large, Integrated Systems (2nd ed)](http://amazon.com/o/asin/0321246942/ref=nosim/enterpriseint-20)** \n\r\n Chris Britton\r\n \n\r\n Addison-Wesley, 2004 | |\n| Reading Britton's book makes me believe that he has actually spent some time solving real integration problems. After the mandatory 'History of Integration', he quickly dives into the tougher problems of integration: how to deal with exceptions in a message queuing environment, issues with distributed two-phase commits, what to do about performance. I am also glad to see a whole chapter about security and systems management as well as a section on managing change. While this book resists diving into too much technical detail (no code here), it is definitely recommended reading for aspiring integration architects. | | |\n| | | |\n| | **[The Power of Events: An Introduction to Complex Event Processing in Distributed Enterprise Systems](http://amazon.com/o/asin/0201727897/ref=nosim/enterpriseint-20)** \n\r\n David Luckham\r\n \n\r\n Addison-Wesley, 2002 | |\n| A great book on what it means to be event-driven. Good treatment of event aggregation, event hierarchies and causality. David is a language guy so expect a technology neutral, but formal treatment without being too academic. Required reading for everyone who throws the \"EDA\" (Event-Driven Architecture) term around! | | |\n| | | |\n| | **[Communicating and Mobile Systems](http://amazon.com/o/asin/0521658691/ref=nosim/enterpriseint-20)** \n\r\n Robin Milner\r\n \n\r\n Cambridge Univ Press, 1999 | |\n| There is a lot of ranting these days in the BPEL community about pi-calculus so I figured I stick the original reference on here. If you are not into reading academic texts but want to spot pi-calculus con artists, read JJ's excellent overview:\r\n \n [www.ebpml.org/pi-calculus.htm](http://www.ebpml.org/pi-calculus.htm) | | |\n| | | |\n| | **[Enterprise Integration: An Architecture for Enterprise Application and Systems Integration](http://amazon.com/o/asin/0471400106/ref=nosim/enterpriseint-20)** \n\r\n Fred Cummins\r\n \n\r\n John Wiley & Sons, 2002 | |\n| I am delighted to see an OMG book that does not simply belabor the greatness of CORBA and MDA. In fact, most mentions of 'CORBA' seem to be relegated to the mandatory 'About the OMG' intro. The word 'model' may still appear a tad bit often, but the book does give a comprehensive treatment of the enterprise architecture considerations inherent in integration work. It also goes into a little more technical detail than Linthicum -- we even get to see some UML diagrams! The book makes a good checklist of items to consider, but stops short of explaining how to actually construct working solutions. | | |\n| | | |\n| | **[Enterprise Application Integration: A Wiley Tech Brief](http://amazon.com/o/asin/0471376418/ref=nosim/enterpriseint-20)** \n\r\n William A. Ruh\r\n \n\r\n John Wiley & Sons, 2000 | |\n| A bit dated, but still a relevant overview of basic integration technologies: RPC, Data Access, MOM, Distributed Objects, TP Monitors. It's a pretty think book (224 pages), so I would recommend picking one up from the Amazon marketplace for under 20 bucks. | | |\n| | | |\n| | **[Enterprise Application Integration](http://amazon.com/o/asin/0201844567/ref=nosim/enterpriseint-20)** \n\r\n David Linthicum\r\n \n\r\n Addison-Wesley, 2003 | |\n| David Linthicum's third book on EAI. Thoroughly reworked, it now includes Web Services, Service Oriented-Architectures and related topics. A worthwhile read for IS managers needing to come up to speed on EAI terminology and technologies at a high level. | | |\n| | | |\n| | **[Integration Models: Templates for Business Transformation](http://amazon.com/o/asin/067232055X/ref=nosim/enterpriseint-20)** \n\r\n Laura Brown\r\n \n\r\n Sams, 2000 | |\n| This book does not describe specific integration technologies, but presents a collection of eight modeling templates that help describe an integration solution. \r\n It is apparent that the author has spent some time on actual integration projects -- something not to be taken for granted! \r\n The templates are not as structured as patterns, but they are visually intuitive, which is important to get the big picture. \r\n Still, I would have enjoyed a bit more thorough treatment on the information presentation aspect of the templates. \r\n For example, I am still wondering why the Wave template is a wave and not a layer. | | |\n| | | |\n| | **[Middleware Enterprise Application Integration](http://amazon.com/o/asin/185233570X/ref=nosim/enterpriseint-20)** \n\r\n Daniel Serain\r\n \n\r\n Springer Verlag, 2002 | |\n| Serain describes and compares specific integration and distributed component methodologies, such as CORBA, OLE/COM, Java RMI. I felt like some of the sections were page fillers, e.g. 'Introduction to the Internet' and 'Introduction to Object Technology'. Maybe Springer thought that for 65 bucks you should get more than 200 pages. | | |\n| | | |\n| | **[TCP/IP Illustrated, Volume 1: The Protocols](http://amazon.com/o/asin/0201633469/ref=nosim/enterpriseint-20)** \n\r\n W. Richard Stevens\r\n \n\r\n Addison-Wesley, 1994 | |\n| Not a book on EAI, but a book on low-level networking. A lot of the message-oriented EAI solutions are based on TCP/IP connectivity. They also have to deal with similar problems like out-of-sequence packets (or messages). This is the ultimate reference to figure out what is really going on under the covers. Especially relevant if you are working with multi-cast / UDP style transport layers. | | |\n| | | |\n| | **[TCP/IP Illustrated, Volume 2: The Implementation](http://amazon.com/o/asin/020163354X/ref=nosim/enterpriseint-20)** \n\r\n Gary R. Wright, W. Richard Stevens\r\n \n\r\n Addison-Wesley, 1995 | |\n| The continuation of Vol 1. | | |\n| | | |", "znaku_textu": 7995, "slov": 1109, "odkazu": 41, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 14:54:31", "sha256": "211ad49877e87af6af4091d3d33ec7b1653de365fe8da8e4612a79e2779fab6d", "hloubka": 3, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "http://www.amazon.com/exec/obidos/ASIN/0321200683/enterpriseint-20", "http://amazon.com/o/asin/073561850X/ref=nosim/enterpriseint-20", "http://www.amazon.com/exec/obidos/ASIN/073561850X/enterpriseint-20", "http://amazon.com/o/asin/1585009709/ref=nosim/enterpriseint-20", "http://www.amazon.com/exec/obidos/ASIN/1585009709/enterpriseint-20", "http://amazon.com/o/asin/0321246942/ref=nosim/enterpriseint-20", "http://www.amazon.com/exec/obidos/ASIN/0321246942/enterpriseint-20", "http://amazon.com/o/asin/0201727897/ref=nosim/enterpriseint-20", "http://www.amazon.com/exec/obidos/ASIN/0201727897/enterpriseint-20", "http://amazon.com/o/asin/0521658691/ref=nosim/enterpriseint-20", "http://www.amazon.com/exec/obidos/ASIN/0521658691/enterpriseint-20", "http://www.ebpml.org/pi-calculus.htm", "http://amazon.com/o/asin/0471400106/ref=nosim/enterpriseint-20", "http://www.amazon.com/exec/obidos/ASIN/0471400106/enterpriseint-20", "http://amazon.com/o/asin/0471376418/ref=nosim/enterpriseint-20", "http://www.amazon.com/exec/obidos/ASIN/0471376418/enterpriseint-20", "http://amazon.com/o/asin/0201844567/ref=nosim/enterpriseint-20", "http://www.amazon.com/exec/obidos/ASIN/0201844567/enterpriseint-20", "http://amazon.com/o/asin/067232055X/ref=nosim/enterpriseint-20", "http://www.amazon.com/exec/obidos/ASIN/067232055X/enterpriseint-20", "http://amazon.com/o/asin/185233570X/ref=nosim/enterpriseint-20", "http://www.amazon.com/exec/obidos/ASIN/185233570X/enterpriseint-20", "http://amazon.com/o/asin/0201633469/ref=nosim/enterpriseint-20", "http://www.amazon.com/exec/obidos/ASIN/0201633469/enterpriseint-20", "http://amazon.com/o/asin/020163354X/ref=nosim/enterpriseint-20", "http://www.amazon.com/exec/obidos/ASIN/020163354X/enterpriseint-20"]} {"url": "http://www.enterpriseintegrationpatterns.com/books2.html", "titulek": "Books - Enterprise Integration Patterns", "h1": "", "popis": "", "klicova_slova": "", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [], "markdown": "Books\n\n---\n\nSome of the books in this annotated bibliography on enterprise integration are dated now, but most of them are still relevant because they're not limited to a specific technology. I own almost all of the books listed here and have read all of the good ones :-) Also see [books I authored or co-authored](gregor.html).\n\n| **[EAI](books1.html)** | **Web Services & SOA** | **[Messaging](books3.html)** | **[Patterns](books4.html)** | **[Software Architecture](books5.html)** |\n| --- | --- | --- | --- | --- |\n\n| Web Services are a broad field, which is reflected in the list of books. Still, there are some timeless gems in here. |\n| --- |\n\n| | | |\n| --- | --- | --- |\n| | **[Enterprise SOA : Service-Oriented Architecture Best Practices](http://amazon.com/o/asin/0131465759/ref=nosim/enterpriseint-20)** \n\r\n Dirk Krafzig, Karl Banke, Dirk Slama\r\n \n\r\n Prentice Hall PTR, 2004 | |\n| When the authors claim that the book is based on their collective experiences since 1998, I believe them. The book avoids specific technologies and instead focuses on architectural trade-offs and solutions, such as coupling, concurrency control and the issues with distributed 2-phase commit (it is not a \"manager\" book). The \"Recommendations for SOA Architects\" are excellent. They discuss general advice and then show how it translates into a real life scenario. If you are interested in the \"A\" of SOA , get this one.\r\n \n [www.enterprise-soa.com](http://www.enterprise-soa.com) | | |\n| | | |\n| | **[Web Services](http://amazon.com/o/asin/3540440089/ref=nosim/enterpriseint-20)** \n\r\n Alonso, Casati, Kuno, Machiraju\r\n \n\r\n Springer, 2003 | |\n| I found this one at Gary Cornell's (APress CEO) house. Unfortunately Springer books are often harder to find in stores since they focus mostly on the academic market. I really enjoy the accuracy and depth of the discussion in this book -- there is no hand waving here! Still it is an easy read with good illustrations. Recommended for SOA architects. | | |\n| | | |\n| | **[Web Services Platform Architecture](http://amazon.com/o/asin/0131488740/ref=nosim/enterpriseint-20)** \n\r\n Weerawarana, Curbera, Leymann, Storey, Ferguson\r\n \n\r\n Prentice Hall PTR, 2005 | |\n| This one just came out -- just got my copy. If you are interested in a comprehensive, easy to digest walkthrough of the most popular WS-* standards, this is the right book to get. The book makes a good case for the existing specs, explains why they exist and how they relate to each other. | | |\n| | | |\n| | **[Perspectives on Web Services : Applying SOAP, WSDL and UDDI to Real-World Projects](http://amazon.com/o/asin/3540009140/ref=nosim/enterpriseint-20)** \n\r\n Zimmermann, Tomlinson, Peuser\r\n \n\r\n Springer, 2003 | |\n| Just got this one. I like the idea of applying different perspectives: business, training, architecture, development, operations. It highlights the impact of SOA on different parts of the organization. It appears, though, that each perspectives targets a different audience so the book has become pretty broad in scope. Time to sit down and read... :-) | | |\n| | | |\n| | **[Service-Oriented Architecture : A Field Guide to Integrating XML and Web Services](http://amazon.com/o/asin/0131428985/ref=nosim/enterpriseint-20)** \n\r\n Thomas Erl\r\n \n\r\n Prentice Hall PTR, 2004 | |\n| This book is setup as a collection of \"Strategies\" and \"Best Practices\" around XML, Web Services and SOA. I wish some of these strategies went into a little more detail, but then it is a broad topic area and the book is already over 500 pages. I would have scratched the technology overview chapters (XML, WS, WS-*) in favor of more in-depth discussion of the strategies. | | |\n| | | |\n| | **[Essential Business Process Modeling](http://amazon.com/o/asin/0596008430/ref=nosim/enterpriseint-20)** \n\r\n Michael Havey\r\n \n\r\n O'Reilly, 2005 | |\n| New book on a familiar topic. However, this one adds a fresh perspective by looking at BPM in the context of SOA and Web services. I like it because it strikes a nice balance between theory and practice. We get to see a brief overview of the theoretical foundation, common design patterns and standards work. A nice and accurate read. | | |\n| | | |\n| | **[Business Process Execution Language](http://amazon.com/o/asin/1904811183/ref=nosim/enterpriseint-20)** \n\r\n Matjaz B. Juric\r\n \n\r\n Packt Publishing, 2004 | |\n| One of the first (the first?) tool-independent books on BPEL. The book is a fairly easy read and uses many examples -- definitely beats reading the spec! Still, I would have wished the book would show more common usage scenarios using the more advanced features like correlation, convoys (the BizTalk term for multiple receives), compensation and fault handling. These concepts look simple in terms of language syntax but can give serious headaches when used in combination. Nevertheless, at this time this book is likely the best printed introduction into BPEL. More info and a free sample chapter can be found at \r\n \n [www.bpelbook.com](http://www.bpelbook.com) | | |\n| | | |\n| | **[Loosely Coupled: The Missing Pieces of Web Services](http://amazon.com/o/asin/1881378241/ref=nosim/enterpriseint-20)** \n\r\n Doug Kaye\r\n \n\r\n RDS Press, 2003 | |\n| A refreshing look at Web services. Instead of wading through APIs we get to read about the core principles at work in Service-Oriented Architectures in a technology-neutral jargon-free way. It does not have quite the technical depth of \"Enterprise SOA\" but makes for a good overview. | | |\n| | | |\n| | **[Production Workflow: Concepts and Techniques](http://amazon.com/o/asin/0130217530/ref=nosim/enterpriseint-20)** \n\r\n Frank Leymann, Dieter Roller \r\n \n\r\n Prentice Hall PTR, 1999 | |\n| With the current focus on orchestration (read BPEL), workflow books are coming back into vogue. It turns out that Frank could actually be considered one of the \"grandfathers\" of BPEL as he was the driving force behind IBM's WSFL which in turn merged with Microsoft's XLANG into BPEL. I have not read the whole book yet but Chapter 7 on distributed transactions alone is worth getting it. This area tends to be dominated by hand waving so reading this precise treatment was truly refreshing. | | |\n| | | |\n| | **[Principles of Transaction Processing](http://amazon.com/o/asin/1558604154/ref=nosim/enterpriseint-20)** \n\r\n Philip Bernstein, Eric Newcomer\r\n \n\r\n Morgan Kaufmann, 1997 | |\n| Think transactions are for databases? Think again! Transactions in distributed and asynchronous systems are a very important topic. Most importantly you can't just decree \"two-phase commit\" for everything, but have to reach deeper into the toolbox to get a system that provides loose coupling, high throughput and consistency. This book has good chapters on Transaction Processing Communications, Queued Transaction Processing, and, yes, Two-phase commit. Also, it shows us that we can still learn quite a bit from LU 6.2. | | |\n| | | |\n| | **[Enterprise Services Architecture](http://amazon.com/o/asin/0596005512/ref=nosim/enterpriseint-20)** \n\r\n Dan Woods\r\n \n\r\n O'Reilly, 2003 | |\n| This is essentially a marketing title from SAP, so I was skeptical a first, especially after noticing the one-star rating on Amazon. I have to say though that this book appears to give a good high-level overview on how to get an organization to think in more service-oriented terms. Now obviously this is a high-level (think Gartner or Big 5) book targeted at technology strategists who will not want to read a SOAP spec. My first impression (not done reading yet) is that the book does a good job targeting that audience. A book you might want to hand your boss. | | |\n| | | |\n| | **[.NET Web Services: Architecture and Implementation with .NET](http://amazon.com/o/asin/0321113594/ref=nosim/enterpriseint-20)** \n\r\n Keith Ballinger\r\n \n\r\n Addison-Wesley, 2003 | |\n| Amongst the technology-specific Web services books, I quite like this one because it does not simply walk through all the API features, but also gives useful architectural advice. | | |\n| | | |\n| | **[Web Service Patterns: Java Edition](http://amazon.com/o/asin/1590590848/ref=nosim/enterpriseint-20)** \n\r\n Paul Monday\r\n \n\r\n Apress, 2003 | |\n| More of a tutorial on Apache Axis than a patterns book, it nevertheless presents relevant architectural guidance for Web services development. The book includes some nice examples on how to implement pub-sub with Web services. If you are looking for a tutorial on how to build a real Web-services application considering relevant architectural trade-offs, this book will be a good guide. | | |\n| | | |\n| | **[Architecting Web Services](http://amazon.com/o/asin/1893115585/ref=nosim/enterpriseint-20)** \n\r\n William L. Oellermann\r\n \n\r\n Apress, 2001 | |\n| I always cringe when I see a book with \"architecting\" in the title that spends 40 pages on \"Web Services Architecture\" followed by 130 pages on XML basics. The core of the book is a chapter on Web Services Models and a comprehensive example in Visual Basic. | | |\n| | | |", "znaku_textu": 8566, "slov": 1219, "odkazu": 44, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 15:37:18", "sha256": "b2fb03cbb08b3e9be22a59255892710c70546331412d6e131f209b6bfe1e77bf", "hloubka": 4, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://amazon.com/o/asin/0131465759/ref=nosim/enterpriseint-20", "http://www.amazon.com/exec/obidos/ASIN/0131465759/enterpriseint-20", "http://www.enterprise-soa.com/", "http://amazon.com/o/asin/3540440089/ref=nosim/enterpriseint-20", "http://www.amazon.com/exec/obidos/ASIN/3540440089/enterpriseint-20", "http://amazon.com/o/asin/0131488740/ref=nosim/enterpriseint-20", "http://www.amazon.com/exec/obidos/ASIN/0131488740/enterpriseint-20", "http://amazon.com/o/asin/3540009140/ref=nosim/enterpriseint-20", "http://www.amazon.com/exec/obidos/ASIN/3540009140/enterpriseint-20", "http://amazon.com/o/asin/0131428985/ref=nosim/enterpriseint-20", "http://www.amazon.com/exec/obidos/ASIN/0131428985/enterpriseint-20", "http://amazon.com/o/asin/0596008430/ref=nosim/enterpriseint-20", "http://www.amazon.com/exec/obidos/ASIN/0596008430/enterpriseint-20", "http://amazon.com/o/asin/1904811183/ref=nosim/enterpriseint-20", "http://www.amazon.com/exec/obidos/ASIN/1904811183/enterpriseint-20", "http://www.bpelbook.com/", "http://amazon.com/o/asin/1881378241/ref=nosim/enterpriseint-20", "http://www.amazon.com/exec/obidos/ASIN/1881378241/enterpriseint-20", "http://amazon.com/o/asin/0130217530/ref=nosim/enterpriseint-20", "http://www.amazon.com/exec/obidos/ASIN/0130217530/enterpriseint-20", "http://amazon.com/o/asin/1558604154/ref=nosim/enterpriseint-20", "http://www.amazon.com/exec/obidos/ASIN/1558604154/enterpriseint-20", "http://amazon.com/o/asin/0596005512/ref=nosim/enterpriseint-20", "http://www.amazon.com/exec/obidos/ASIN/0596005512/enterpriseint-20", "http://amazon.com/o/asin/0321113594/ref=nosim/enterpriseint-20", "http://www.amazon.com/exec/obidos/ASIN/0321113594/enterpriseint-20", "http://amazon.com/o/asin/1590590848/ref=nosim/enterpriseint-20", "http://www.amazon.com/exec/obidos/ASIN/1590590848/enterpriseint-20", "http://amazon.com/o/asin/1893115585/ref=nosim/enterpriseint-20", "http://www.amazon.com/exec/obidos/ASIN/1893115585/enterpriseint-20"]} {"url": "http://www.enterpriseintegrationpatterns.com/books3.html", "titulek": "Books - Enterprise Integration Patterns", "h1": "", "popis": "", "klicova_slova": "", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [], "markdown": "Books\n\n---\n\nSome of the books in this annotated bibliography on enterprise integration are dated now, but most of them are still relevant because they're not limited to a specific technology. I own almost all of the books listed here and have read all of the good ones :-) Also see [books I authored or co-authored](gregor.html).\n\n| **[EAI](books1.html)** | **[Web Services & SOA](books2.html)** | **Messaging** | **[Patterns](books4.html)** | **[Software Architecture](books5.html)** |\n| --- | --- | --- | --- | --- |\n\n| Books on designing messaging solutions are relatively rare and usually focus on a specific technology like JMS or MSMQ. |\n| --- |\n\n| | | |\n| --- | --- | --- |\n| | **[Concurrent Programming in Java: Design Principles and Patterns (2nd Edition)](http://amazon.com/o/asin/0201310090/ref=nosim/enterpriseint-20)** \n\r\n Doug Lea\r\n \n\r\n Addison-Wesley, 1999 | |\n| Messaging systems are concurrent systems and have to deal with many of the same challenges described in Doug's excellent book. Chapter 4 contains about 100 pages describing communication patterns between threads, including one-way messaging, flow networks (aka pipes-and-filters) and futures. Plenty of code examples in Java bring these concepts to life. | | |\n| | | |\n| | **[Remoting Patterns : Foundations of Enterprise, Internet and Realtime Distributed Object Middleware](http://amazon.com/o/asin/0470856629/ref=nosim/enterpriseint-20)** \n\r\n Voelter, Kircher, Zdun\r\n \n\r\n Wiley, 2004 | |\n| Nice pattern language describing the building blocks of remote object communication. The authors describe the relationships and interactions between the patterns very nicely. They use the Alexandrian pattern format, which means that the individual pattern descriptions are sometimes a little bit on the brief side. The PDF version of the authors' IEEE Internet Computing article is available on-line for preview at: \r\n \n [http://www.voelter.de/publications/books-rem.html](http://www.voelter.de/publications/books-rem.html) | | |\n| | | |\n| | **[Enterprise Messaging Using JMS and IBM WebSphere](http://amazon.com/o/asin/0131468634/ref=nosim/enterpriseint-20)** \n\r\n Kareem Yusuf\r\n \n\r\n Prentice Hall PTR, 2004 | |\n| A recent book on JMS that is part of the IBM Press series. Covers basic messaging concepts and the JMS API. Recommended if you are new to JMS and are using IBM WebSphere. | | |\n| | | |\n| | **[Java Messaging Service API Tutorial and Reference](http://amazon.com/o/asin/0201784726/ref=nosim/enterpriseint-20)** \n\r\n Mark Hapner, Rich Burridge, Rahul Sharma, Joseph Fialli, Kim Haase\r\n \n\r\n Addison-Wesley, 2002 | |\n| As the title suggests, a journey through the JMS API. The book touches on some design considerations but largely presents sample applications that show how to use various aspects of the JMS API. If you are getting started with JMS and prefer to learn from a book rather than just downloading the sample code, this might be a good start. | | |\n| | | |\n| | **[Java Message Service](http://amazon.com/o/asin/0596000685/ref=nosim/enterpriseint-20)** \n\r\n Richard Monson-Haefel, David Chappell\r\n \n\r\n O'Reilly, 2000 | |\n| A concise introduction into the JMS API. Includes a nice introduction into messaging. It introduces the concepts incorporated in the JMS API, e.g.point-to-point messaging and pub-sub-messaging. As expected, the focus is on the JMS API itself as opposed to more complex messaging design issues. | | |\n| | | |\n| | **[Designing Applications with MSMQ](http://amazon.com/o/asin/0201325810/ref=nosim/enterpriseint-20)** \n\r\n Alan Dickman\r\n \n\r\n Addison-Wesley, 1998 | |\n| The age of the book means that all examples are in Visual Basic with COM or C++. While it does not dive deep into the depths of asynchronous messaging, I enjoyed the chapter on \"Solutions to Messaging Problems\" that deals with correlation, event-driven consumers and object serialization and deserialization. | | |\n| | | |\n| | **[Advanced Messaging Applications with MSMQ and MQSeries](http://amazon.com/o/asin/078972023X/ref=nosim/enterpriseint-20)** \n\r\n Rhys Lewis\r\n \n\r\n Que, 2000 | |\n| One of the very few cross-technology books on messaging. The book introduces five conversational \"patterns\" for asynchronous messaging solutions: Pseudosynchronous Inquiry, Fire and Forget Update, Asynchronous Inquiry, Pseudosynchronous Update, and Asynchronous Update with Acknowledgement. It then goes on to implement each \"pattern\" in MSMQ and MQSeries within the context of a real-life scenario. Examples are in C. | | |\n| | | |", "znaku_textu": 4243, "slov": 556, "odkazu": 29, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 15:37:19", "sha256": "00fda13b9d354974e6d11ce070dacbe0bcc2bf16f3e9af7edf34c903b77588e2", "hloubka": 4, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://amazon.com/o/asin/0201310090/ref=nosim/enterpriseint-20", "http://www.amazon.com/exec/obidos/ASIN/0201310090/enterpriseint-20", "http://amazon.com/o/asin/0470856629/ref=nosim/enterpriseint-20", "http://www.amazon.com/exec/obidos/ASIN/0470856629/enterpriseint-20", "http://www.voelter.de/publications/books-rem.html", "http://amazon.com/o/asin/0131468634/ref=nosim/enterpriseint-20", "http://www.amazon.com/exec/obidos/ASIN/0131468634/enterpriseint-20", "http://amazon.com/o/asin/0201784726/ref=nosim/enterpriseint-20", "http://www.amazon.com/exec/obidos/ASIN/0201784726/enterpriseint-20", "http://amazon.com/o/asin/0596000685/ref=nosim/enterpriseint-20", "http://www.amazon.com/exec/obidos/ASIN/0596000685/enterpriseint-20", "http://amazon.com/o/asin/0201325810/ref=nosim/enterpriseint-20", "http://www.amazon.com/exec/obidos/ASIN/0201325810/enterpriseint-20", "http://amazon.com/o/asin/078972023X/ref=nosim/enterpriseint-20", "http://www.amazon.com/exec/obidos/ASIN/078972023X/enterpriseint-20"]} {"url": "http://www.enterpriseintegrationpatterns.com/books4.html", "titulek": "Books - Enterprise Integration Patterns", "h1": "", "popis": "", "klicova_slova": "", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [], "markdown": "Books\n\n---\n\nSome of the books in this annotated bibliography on enterprise integration are dated now, but most of them are still relevant because they're not limited to a specific technology. I own almost all of the books listed here and have read all of the good ones :-) Also see [books I authored or co-authored](gregor.html).\n\n| **[EAI](books1.html)** | **[Web Services & SOA](books2.html)** | **[Messaging](books3.html)** | **Patterns** | **[Software Architecture](books5.html)** |\n| --- | --- | --- | --- | --- |\n\n| High-quality patterns books seemed to have run out steam in the early 2000s: the big masterworks were done but there wasn't a lot more coming. Luckily, John Crupi and his gang re-energized the software patterns book writing community, quickly followed by Martin's latest masterpiece. |\n| --- |\n\n| | | |\n| --- | --- | --- |\n| | **[A Pattern Language - Towns Buildings Construction](http://amazon.com/o/asin/0195019199/ref=nosim/enterpriseint-20)** \n\r\n C. Alexander, S. Ishikawa, M Silverstein\r\n \n\r\n Oxford University Press, 1977 | |\n| Probably the most quoted book in any work related to patterns. I actually used a number of Alexander's patterns to design a beach house for an interior architecture class. It is interesting to note that Alexander's desire to dissect architecture and design into a set of composable constructs may stem from his study of mathematics. His thesis published as \"Notes on the synthesis of form\" references a set of programs that he developed in IBM 7090 assembly code. So the tremendous success of Alexander's patterns in the software community is not quite coincidental. | | |\n| | | |\n| | **[Design Patterns: Elements of Reusable Object-Oriented Software](http://amazon.com/o/asin/0201633612/ref=nosim/enterpriseint-20)** \n\r\n Erich Gamma, Richard Helm, Ralph Johnson, John Vlissides\r\n \n\r\n Addison-Wesley, 1995 | |\n| Surely the second most quoted book in any work on patterns. | | |\n| | | |\n| | **[Pattern Hatching: Design Patterns Applied](http://amazon.com/o/asin/0201432935/ref=nosim/enterpriseint-20)** \n\r\n John Vlissides\r\n \n\r\n Addison-Wesley, 1998 | |\n| Four years after the 'GoF', John presents us with a 'behind-the-scenes' look at the discovery of the patterns, new ideas and enhancements, as well as a good section on software design with patterns and pattern writing. If you can look beyond the C++ examples (ugh), it makes a very pleasant and insightful read. After you have read and digested 'Design Patterns', you'll enjoy this one. | | |\n| | | |\n| | **[Pattern-Oriented Software Architecture](http://amazon.com/o/asin/0471958697/ref=nosim/enterpriseint-20)** \n\r\n Buschmann et al\r\n \n\r\n Wiley, 1996 | |\n| A great book on architecture and design patterns. Not the easiest read, but full of excellent content. | | |\n| | | |\n| | **[Pattern-Oriented Software Architecture Vol.2](http://amazon.com/o/asin/0471606952/ref=nosim/enterpriseint-20)** \n\r\n Schmidt et al\r\n \n\r\n Wiley, 2000 | |\n| More patterns focused on distributed systems and concurrency issues. Very relevant to integration patterns. The examples dwell a bit much on Doug's ACE architecture, but nevertheless a must-have for architects and developers building distributed systems. | | |\n| | | |\n| | **[Pattern-Oriented Software Architecture, Vol 3: Patterns for Resource Management](http://amazon.com/o/asin/0470845252/ref=nosim/enterpriseint-20)** \n\r\n Michael Kircher, Prashant Jain\r\n \n\r\n Wiley, 2004 | |\n| The third book in the POSA series. I think the book has broader applicability than the title suggests. For exmaple, cocepts such as \"Lookup\" and \"Leasing\" are very commonly used in distributed and service-oriented systems. Table of Contents and sample chapter at:\r\n \n [www.posa3.org](http://www.posa3.org) | | |\n| | | |\n| | **[Core J2EE Patterns](http://amazon.com/o/asin/0131422464/ref=nosim/enterpriseint-20)** \n\r\n Alur, Crupi, Marks\r\n \n\r\n Prentice-Hall, 2003 | |\n| The 'core' reference on J2EE patterns. Anyone who is building serious J2EE apps probably has this book. This book also underlines how patterns provide much needed architectural guidance. The developer community was longing for a book like this after Sun kept on pumping out Java specs with little help on how to build something useful on top of them. Some of the patterns are useful complements to our EAI patterns, e.g. the Service Activator. The 2nd Edition came out for JavaOne has new integration tier patterns, for example a Web Service Broker. Martin will be happy to see that they renamed the Value Object to Transfer Object. | | |\n| | | |\n| | **[Patterns of Enterprise Application Architecture](http://amazon.com/o/asin/0321127420/ref=nosim/enterpriseint-20)** \n\r\n Martin Fowler\r\n \n\r\n Addison-Wesley, 2003 | |\n| The most comprehensive book yet on application architecture patterns. Even though it covers 51 patterns, it is an easy and interesting read while never sacrificing technical accuracy. Any enterprise developer should probably own a copy of this book (judging from the sales figures it looks like they do). | | |\n| | | |\n| | **[Enterprise Solution Patterns using Microsoft .NET](http://amazon.com/o/asin/0735618399/ref=nosim/enterpriseint-20)** \n\r\n David Trowbridge, Gregor Hohpe, James Newkirk, David Lavigne (contributing authors)\r\n \n\r\n MS Press, 2003 | |\n| Microsoft's Prescriptive Architecture Guidance (PAG) group is in charge of educating developers on how to build industrial-strength, enterprise-scale solutions. PAG contracted us to help them write the equivalent of \"Core .NET Patterns\" for them. One of the unique aspects of this book is the organization of the patterns int a pattern grid, organized by level of abstraction and viewpoint. | | |\n| | | |\n| | **[Server Component Patterns](http://amazon.com/o/asin/0470843195/ref=nosim/enterpriseint-20)** \n\r\n Markus Völter, Axelander Schmid, Eberhard Wolff\r\n \n\r\n Wiley, 2002 | |\n| The authors chose to document the patterns in Alexandrian format, including the sketches and capitalization of pattern names. The Alexandrian form is more prose-like which definitely benefits the readability as compared to POSA1 and POSA2. The first part of the book describes architecture and design patterns, starting with the core patterns such as Component and Container. The second part describes how these patterns are implemented in the EJB spec. The table of contents for both parts is virtually identical, with the second part listing EJB implementation details about the pattern defined in the first part. I think the book is a worthwhile read even if you are not interested in the EJB specifics. | | |\n| | | |\n| | **[Real-Time Design Patterns](http://amazon.com/o/asin/0201699567/ref=nosim/enterpriseint-20)** \n\r\n Bruce Powel Douglass\r\n \n\r\n Addison-Wesley, 2003 | |\n| This book proves the transportability of patterns across domains. Some of Douglass' reliability patterns prove very useful in the context of enterprise messaging. | | |\n| | | |\n| | **[Web Service Patterns: Java Edition](http://amazon.com/o/asin/1590590848/ref=nosim/enterpriseint-20)** \n\r\n Paul Monday\r\n \n\r\n Apress, 2003 | |\n| I cross-listed this book from the Web Services section. More of a tutorial on Apache Axis than a patterns book, it nevertheless presents relevant architectural guidance for Web services development. The book includes some nice examples on how to implement pub-sub with Web services. If you are looking for a tutorial on how to build a real Web-services application considering relevant architectural trade-offs, this book will be a good guide. | | |\n| | | |", "znaku_textu": 7150, "slov": 967, "odkazu": 39, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 15:37:20", "sha256": "9ec31514c3e30e658787ce513e6dbe4a162e2e7814566565869fd9088d333b79", "hloubka": 4, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://amazon.com/o/asin/0195019199/ref=nosim/enterpriseint-20", "http://www.amazon.com/exec/obidos/ASIN/0195019199/enterpriseint-20", "http://amazon.com/o/asin/0201633612/ref=nosim/enterpriseint-20", "http://www.amazon.com/exec/obidos/ASIN/0201633612/enterpriseint-20", "http://amazon.com/o/asin/0201432935/ref=nosim/enterpriseint-20", "http://www.amazon.com/exec/obidos/ASIN/0201432935/enterpriseint-20", "http://amazon.com/o/asin/0471958697/ref=nosim/enterpriseint-20", "http://www.amazon.com/exec/obidos/ASIN/0471958697/enterpriseint-20", "http://amazon.com/o/asin/0471606952/ref=nosim/enterpriseint-20", "http://www.amazon.com/exec/obidos/ASIN/0471606952/enterpriseint-20", "http://amazon.com/o/asin/0470845252/ref=nosim/enterpriseint-20", "http://www.amazon.com/exec/obidos/ASIN/0470845252/enterpriseint-20", "http://www.posa3.org/", "http://amazon.com/o/asin/0131422464/ref=nosim/enterpriseint-20", "http://www.amazon.com/exec/obidos/ASIN/0131422464/enterpriseint-20", "http://amazon.com/o/asin/0321127420/ref=nosim/enterpriseint-20", "http://www.amazon.com/exec/obidos/ASIN/0321127420/enterpriseint-20", "http://amazon.com/o/asin/0735618399/ref=nosim/enterpriseint-20", "http://www.amazon.com/exec/obidos/ASIN/0735618399/enterpriseint-20", "http://amazon.com/o/asin/0470843195/ref=nosim/enterpriseint-20", "http://www.amazon.com/exec/obidos/ASIN/0470843195/enterpriseint-20", "http://amazon.com/o/asin/0201699567/ref=nosim/enterpriseint-20", "http://www.amazon.com/exec/obidos/ASIN/0201699567/enterpriseint-20", "http://amazon.com/o/asin/1590590848/ref=nosim/enterpriseint-20", "http://www.amazon.com/exec/obidos/ASIN/1590590848/enterpriseint-20"]} {"url": "http://www.enterpriseintegrationpatterns.com/books5.html", "titulek": "Books - Enterprise Integration Patterns", "h1": "", "popis": "", "klicova_slova": "", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [], "markdown": "Books\n\n---\n\nSome of the books in this annotated bibliography on enterprise integration are dated now, but most of them are still relevant because they're not limited to a specific technology. I own almost all of the books listed here and have read all of the good ones :-) Also see [books I authored or co-authored](gregor.html).\n\n| **[EAI](books1.html)** | **[Web Services & SOA](books2.html)** | **[Messaging](books3.html)** | **[Patterns](books4.html)** | **Software Architecture** |\n| --- | --- | --- | --- | --- |\n\n| Such an important area and so few book recommendations. I am simply behind in my reading... |\n| --- |\n\n| | | |\n| --- | --- | --- |\n| | **[Software Architecture: Perspectives on an Emerging Discipline](http://amazon.com/o/asin/0131829572/ref=nosim/enterpriseint-20)** \n\r\n Mary Shaw, Garlan David\r\n \n\r\n Prentice Hall, 1996 | |\n| The definitive text on software architecture and architectural styles. | | |\n| | | |\n| | **[Software Architecture in Practice, 2nd Edition](http://amazon.com/o/asin/0321154959/ref=nosim/enterpriseint-20)** \n\r\n Len Bass, Paul Clements, Rick Kazman\r\n \n\r\n Addison-Wesley, 2003 | |\n| Part of a whole series on architecture from the SEI. Generally, these books are very throrough, but for my taste too many examples and case studies are pulled from military projects or embedded systems. These types of systems typically lend themselves to a very rigorous top-down architecture and design approach, unlike today's business applications that are all about changing requirements. | | |\n| | | |", "znaku_textu": 1389, "slov": 183, "odkazu": 18, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 15:37:21", "sha256": "b194f339d7629e35675f386867341b6bca9c25f1da5798663cd835e5a4c293db", "hloubka": 4, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://amazon.com/o/asin/0131829572/ref=nosim/enterpriseint-20", "http://www.amazon.com/exec/obidos/ASIN/0131829572/enterpriseint-20", "http://amazon.com/o/asin/0321154959/ref=nosim/enterpriseint-20", "http://www.amazon.com/exec/obidos/ASIN/0321154959/enterpriseint-20"]} {"url": "http://www.enterpriseintegrationpatterns.com/docs/Agile%20EAI.pdf", "titulek": "", "h1": "", "popis": "", "klicova_slova": "", "kanonicka": "", "jazyk": "", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [], "markdown": "", "znaku_textu": 0, "slov": 0, "odkazu": 0, "kodovani": "", "kodovani_deklarovane": null, "format": "pdf", "bajtu": 39478, "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 15:37:03", "sha256": "a77b472472b76c121e587a32e3c35180e5c043e0b442b6f57986082c1d363db7", "hloubka": 4, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "application/pdf", "odkazy_externi": []} {"url": "http://www.enterpriseintegrationpatterns.com/docs/Conversations_loosely_coupled.pdf", "titulek": "", "h1": "", "popis": "", "klicova_slova": "", "kanonicka": "", "jazyk": "", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [], "markdown": "", "znaku_textu": 0, "slov": 0, "odkazu": 0, "kodovani": "", "kodovani_deklarovane": null, "format": "pdf", "bajtu": 498193, "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 14:54:48", "sha256": "0346e0b112292ccf016c74ba40226723945761298aefb31b3068d49592486078", "hloubka": 3, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "application/pdf", "odkazy_externi": []} {"url": "http://www.enterpriseintegrationpatterns.com/docs/DistributedProgrammingGoogle.pdf", "titulek": "", "h1": "", "popis": "", "klicova_slova": "", "kanonicka": "", "jazyk": "", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [], "markdown": "", "znaku_textu": 0, "slov": 0, "odkazu": 0, "kodovani": "", "kodovani_deklarovane": null, "format": "pdf", "bajtu": 1148050, "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 14:54:43", "sha256": "3669faf211dade95b2593213d5874ebf65e1f437566e774abc707185822199e0", "hloubka": 3, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "application/pdf", "odkazy_externi": []} {"url": "http://www.enterpriseintegrationpatterns.com/docs/EDA.pdf", "titulek": "", "h1": "", "popis": "", "klicova_slova": "", "kanonicka": "", "jazyk": "", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [], "markdown": "", "znaku_textu": 0, "slov": 0, "odkazu": 0, "kodovani": "", "kodovani_deklarovane": null, "format": "pdf", "bajtu": 169002, "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 14:54:38", "sha256": "dc03f4e717ff29e0748e2bdf03e058a18cc83d9c180afa66d7a645e1959a7f3e", "hloubka": 3, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "application/pdf", "odkazy_externi": []} {"url": "http://www.enterpriseintegrationpatterns.com/docs/EmbeddedOop.pdf", "titulek": "", "h1": "", "popis": "", "klicova_slova": "", "kanonicka": "", "jazyk": "", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [], "markdown": "", "znaku_textu": 0, "slov": 0, "odkazu": 0, "kodovani": "", "kodovani_deklarovane": null, "format": "pdf", "bajtu": 1022987, "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 14:54:42", "sha256": "2676f5364b7a2a4e34b95ff89b39783e704671943b20db1dc4b986800bc89a86", "hloubka": 3, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "application/pdf", "odkazy_externi": []} {"url": "http://www.enterpriseintegrationpatterns.com/docs/Enterprise%20Integration%20Patterns%20-%20PLoP%20Final%20Draft%203.pdf", "titulek": "", "h1": "", "popis": "", "klicova_slova": "", "kanonicka": "", "jazyk": "", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [], "markdown": "", "znaku_textu": 0, "slov": 0, "odkazu": 0, "kodovani": "", "kodovani_deklarovane": null, "format": "pdf", "bajtu": 510430, "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 15:37:06", "sha256": "8c3bcb833998ea82e03b654e12eff0a36ea8323b06b006615cf9e70a5af1482b", "hloubka": 4, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "application/pdf", "odkazy_externi": []} {"url": "http://www.enterpriseintegrationpatterns.com/docs/EnterpriseIntegrationPatternsHalfDay.pdf", "titulek": "", "h1": "", "popis": "", "klicova_slova": "", "kanonicka": "", "jazyk": "", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [], "markdown": "", "znaku_textu": 0, "slov": 0, "odkazu": 0, "kodovani": "", "kodovani_deklarovane": null, "format": "pdf", "bajtu": 4394251, "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 15:37:08", "sha256": "45efd71ed305e00a621772ef49c1864b2196f3d808b1938d2af82ad071d4fbbb", "hloubka": 4, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "application/pdf", "odkazy_externi": []} {"url": "http://www.enterpriseintegrationpatterns.com/docs/EnterpriseIntegrationPatterns_HohpeWoolf_ch03.pdf", "titulek": "", "h1": "", "popis": "", "klicova_slova": "", "kanonicka": "", "jazyk": "", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [], "markdown": "", "znaku_textu": 0, "slov": 0, "odkazu": 0, "kodovani": "", "kodovani_deklarovane": null, "format": "pdf", "bajtu": 628705, "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 15:33:52", "sha256": "c1e7125dcebfdd9a2b23a922dfbbc9694e5f8048e81e14dc95e2882043ac4f66", "hloubka": 3, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "application/pdf", "odkazy_externi": []} {"url": "http://www.enterpriseintegrationpatterns.com/docs/HohpeProgrammingCloudKeynote.pdf", "titulek": "", "h1": "", "popis": "", "klicova_slova": "", "kanonicka": "", "jazyk": "", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [], "markdown": "", "znaku_textu": 0, "slov": 0, "odkazu": 0, "kodovani": "", "kodovani_deklarovane": null, "format": "pdf", "bajtu": 524481, "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 15:37:09", "sha256": "637a33a8c57841c663ee9cda8f9d52e7f9d97407e2d5fb49ec150124bfc40b35", "hloubka": 4, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "application/pdf", "odkazy_externi": []} {"url": "http://www.enterpriseintegrationpatterns.com/docs/HohpeSOAPatterns.pdf", "titulek": "", "h1": "", "popis": "", "klicova_slova": "", "kanonicka": "", "jazyk": "", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [], "markdown": "", "znaku_textu": 0, "slov": 0, "odkazu": 0, "kodovani": "", "kodovani_deklarovane": null, "format": "pdf", "bajtu": 212601, "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 15:37:10", "sha256": "b9cdecdff13170d759fd672b9f9be91eec16b704a69ca4ba482673510bc136b5", "hloubka": 4, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "application/pdf", "odkazy_externi": []} {"url": "http://www.enterpriseintegrationpatterns.com/docs/IEEE_IC_Conversations.pdf", "titulek": "", "h1": "", "popis": "", "klicova_slova": "", "kanonicka": "", "jazyk": "", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [], "markdown": "", "znaku_textu": 0, "slov": 0, "odkazu": 0, "kodovani": "", "kodovani_deklarovane": null, "format": "pdf", "bajtu": 167474, "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 14:54:37", "sha256": "c50cad8f27c6f1f1e06a5ca7b3d1e27cc35192e958f80ec6933c93cb981b31de", "hloubka": 3, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "application/pdf", "odkazy_externi": []} {"url": "http://www.enterpriseintegrationpatterns.com/docs/IEEE_Software_Design_2PC.pdf", "titulek": "", "h1": "", "popis": "", "klicova_slova": "", "kanonicka": "", "jazyk": "", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [], "markdown": "", "znaku_textu": 0, "slov": 0, "odkazu": 0, "kodovani": "", "kodovani_deklarovane": null, "format": "pdf", "bajtu": 119501, "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 14:54:39", "sha256": "f29fc347d66a71a2ace4c10c8e47168d063419d7530f8075dc37bf2e5ecdc25c", "hloubka": 3, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "application/pdf", "odkazy_externi": []} {"url": "http://www.enterpriseintegrationpatterns.com/docs/NfcOopHohpe.pdf", "titulek": "", "h1": "", "popis": "", "klicova_slova": "", "kanonicka": "", "jazyk": "", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [], "markdown": "", "znaku_textu": 0, "slov": 0, "odkazu": 0, "kodovani": "", "kodovani_deklarovane": null, "format": "pdf", "bajtu": 2745471, "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 14:54:41", "sha256": "be066ab614954f42e456b1ae1fa234cd36bb78619c54ddf2d2086a54918945eb", "hloubka": 3, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "application/pdf", "odkazy_externi": []} {"url": "http://www.enterpriseintegrationpatterns.com/docs/SOA_World.pdf", "titulek": "", "h1": "", "popis": "", "klicova_slova": "", "kanonicka": "", "jazyk": "", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [], "markdown": "", "znaku_textu": 0, "slov": 0, "odkazu": 0, "kodovani": "", "kodovani_deklarovane": null, "format": "pdf", "bajtu": 73039, "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 14:54:40", "sha256": "8b8c89e3ec5c203bb6dc2d6ff448f134d0609b01d521694cb7ae9a31d4f5b665", "hloubka": 3, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "application/pdf", "odkazy_externi": []} {"url": "http://www.enterpriseintegrationpatterns.com/docs/SoaPatterns.pdf", "titulek": "", "h1": "", "popis": "", "klicova_slova": "", "kanonicka": "", "jazyk": "", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [], "markdown": "", "znaku_textu": 0, "slov": 0, "odkazu": 0, "kodovani": "", "kodovani_deklarovane": null, "format": "pdf", "bajtu": 122140, "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 14:54:36", "sha256": "1e05ee52b379d31c03a6468dc9d973c2692b04108e7555a1f8490bd87efb35dc", "hloubka": 3, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "application/pdf", "odkazy_externi": []} {"url": "http://www.enterpriseintegrationpatterns.com/docs/SpringOneKeynotePub.pdf", "titulek": "", "h1": "", "popis": "", "klicova_slova": "", "kanonicka": "", "jazyk": "", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [], "markdown": "", "znaku_textu": 0, "slov": 0, "odkazu": 0, "kodovani": "", "kodovani_deklarovane": null, "format": "pdf", "bajtu": 450728, "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 14:54:47", "sha256": "ac00599888ea6bf6365372f1bcc146feda945378e51cd9ae7c6ef9ec854ed978", "hloubka": 3, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "application/pdf", "odkazy_externi": []} {"url": "http://www.enterpriseintegrationpatterns.com/docs/TSS_Keynote_Hohpe.pdf", "titulek": "", "h1": "", "popis": "", "klicova_slova": "", "kanonicka": "", "jazyk": "", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [], "markdown": "", "znaku_textu": 0, "slov": 0, "odkazu": 0, "kodovani": "", "kodovani_deklarovane": null, "format": "pdf", "bajtu": 691963, "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 15:37:11", "sha256": "cf931e1669f86e566d2dd1340413d87028d8323403dcbc3cf5a47065eb8d57cd", "hloubka": 4, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "application/pdf", "odkazy_externi": []} {"url": "http://www.enterpriseintegrationpatterns.com/docs/TSS_software_visualization.pdf", "titulek": "", "h1": "", "popis": "", "klicova_slova": "", "kanonicka": "", "jazyk": "", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [], "markdown": "", "znaku_textu": 0, "slov": 0, "odkazu": 0, "kodovani": "", "kodovani_deklarovane": null, "format": "pdf", "bajtu": 535476, "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 14:54:46", "sha256": "05b307a9f8dcab8fc4c022e74eed242f0439c3db063840dcd27f699c7ffc2782", "hloubka": 3, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "application/pdf", "odkazy_externi": []} {"url": "http://www.enterpriseintegrationpatterns.com/docs/TestDrivenEAI.pdf", "titulek": "", "h1": "", "popis": "", "klicova_slova": "", "kanonicka": "", "jazyk": "", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [], "markdown": "", "znaku_textu": 0, "slov": 0, "odkazu": 0, "kodovani": "", "kodovani_deklarovane": null, "format": "pdf", "bajtu": 169579, "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 15:37:05", "sha256": "fff132089c3edf70571407b83f9d41b1f62e4bc3bfa33a61b980e406349c50d6", "hloubka": 4, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "application/pdf", "odkazy_externi": []} {"url": "http://www.enterpriseintegrationpatterns.com/docs/agileEAI.html", "titulek": "Agile EAI - Enterprise Integration Patterns", "h1": "Abstract", "popis": "", "klicova_slova": "", "kanonicka": "", "jazyk": "", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Abstract"}, {"uroven": 1, "text": "EAI Challenges"}, {"uroven": 1, "text": "Agile Methods"}, {"uroven": 1, "text": "Agile EAI"}, {"uroven": 2, "text": "Iterative Development"}, {"uroven": 2, "text": "Simple Design / Evolve"}, {"uroven": 2, "text": "Automated Testing / Integration"}, {"uroven": 2, "text": "Close Customer Collaboration"}, {"uroven": 1, "text": "Conclusions"}, {"uroven": 1, "text": "Authors"}], "markdown": "Agile EAI\n\n---\n\nBy Martin Fowler and Gregor Hohpe, ThoughtWorks, Inc.\n\n# Abstract\n\nEnterprise Application Integration (EAI) is a top priority in \r\n many enterprises. Requirements for improved customer service or self-service, \r\n rapidly changing business environments and support for mergers and acquisitions \r\n are major drivers for increased integration between \"stovepipe\" systems. \r\n However, despite increasingly sophisticated EAI suites, enterprise integration \r\n remains difficult. Technical, business and political challenges require EAI \r\n implementations to be carefully planned, but adaptable to inevitable change.\n\nThe apparent dichotomy between careful planning and the ability \r\n to absorb changes has been the subject of much discussion in the world of application \r\n development. In the past years, a new set of development methods referred to \r\n as \"Agile Methods\" has garnered a lot of attention. Agile Methods \r\n are founded on the realization that long-term predictive planning is not appropriate \r\n for software development efforts supporting today's business environments. These \r\n new methods combine disciplined development methods with the ability to absorb \r\n change throughout the development process.\n\nThis article examines how the notion of agile software development \r\n can benefit integration projects. It examines four best practices proposed by \r\n Agile Methods and their applicability in the EAI world.\n\n# EAI Challenges\n\nEnterprise integration efforts are as vital to today's enterprises \r\n as they are difficult. Enterprise integration by definition has to deal with \r\n multiple applications running on multiple platforms in different locations. \r\n Current EAI suites offer good solutions to multi-platform, multi-language integration \r\n and provide pre-built adapters to most common packaged business applications. \r\n However, it turns out that the technical infrastructure presents only a small \r\n portion of the EAI complexities. The true challenges of EAI implementations \r\n span far across business and technical issues.\n\nEnterprise integration requires a significant shift in corporate \r\n politics. Business applications generally focus on a specific functional area, \r\n such as Customer Relationship Management (CRM), Billing, Finance, etc. In most \r\n instances, the business and IT groups are organized along the same functional \r\n areas. Successful enterprise integration requires communication and sharing \r\n of responsibilities across units. Application groups no longer control a specific \r\n application because the application is now part of an overall flow of integrated \r\n applications and services.\n\nNaturally, application integration efforts touch many business \r\n and technical aspects within the enterprise. EAI projects require business process \r\n modeling at a wider scope than most single application deployments. At the same \r\n time, EAI projects also require a significant number of low-level technical \r\n developments efforts that generally require more diverse skill sets than application \r\n developments efforts. Being able to bridge the gap between facilitating high-level \r\n business process decisions and resolving low-level technical issues may be the \r\n single most important factor to EAI success.\n\nA number of new technologies have promised to make enterprise \r\n integration easier. One of those technologies is XML. The wide adoption of XML \r\n provides a generally accepted data representation layer that allows us to transfer \r\n data from one application to another in a platform and language independent \r\n manner. However, the frequent claim that XML is the 'Lingua franca\" of \r\n system integration is somewhat misleading. Standardizing all data exchange to \r\n XML can be likened to using a common alphabet, such as the Roman alphabet. A \r\n common alphabet can still represent many languages and dialects, which cannot \r\n be readily understood by readers. The same is true in enterprise integration. \r\n The existence of a common presentation (e.g. XML) does not imply common semantics. \r\n The notion of \"account\" can have many different semantics, connotations, \r\n constraints and assumptions in each participating system. Resolving semantic \r\n differences between systems proves to be a particularly difficult and time-consuming \r\n task because it requires significant business and technical decisions to be \r\n made. Also, there are not many tools available to aid with the semantic mapping.\n\nWhile developing an EAI solution is a difficult task in itself, \r\n operating and maintaining such a solution may be even more daunting. The mix \r\n of technologies and the distributed nature of EAI solutions make deployment, \r\n monitoring, and trouble-shooting a complex task that requires a combination \r\n of skill sets. In many cases, these skill sets do not exist within IT operations \r\n or are spread across many different individuals. Anyone who has been through \r\n an EAI deployment can attest to the fact that EAI solutions are a critical component \r\n of today's enterprise strategies, but make IT life harder, not easier.\n\n# Agile Methods\n\nTraditionally, software engineering efforts have responded \r\n to complexity and uncertainty with an exhaustive up-front planning phase. These \r\n predictive methods were based on the presumption that rigorous up-front planning \r\n is ultimately able to eliminate execution uncertainty. As a result, many projects \r\n dove into \"analysis paralysis\" and created huge requirements and design \r\n specifications, just to find that during the project execution changing requirements \r\n and new findings threatened to impact the carefully crafted project plan. In \r\n many occasions, the result was a cancelled project, a delayed delivery or delivery \r\n of a system that did not meet the business needs. Many project managers learned \r\n the hard way that \"Users do not know what they want until you give them \r\n what they asked for.\"\n\nRecently, a new family of development methods, referred to as \r\n \"Agile Methods\", took a new approach to project management. Recognizing \r\n the inability to eliminate change and uncertainty in a business environment, \r\n Agile Methods adjust the development process such that it is able to absorb \r\n change and uncertainty. The underlying values of agile development methods are \r\n represented in the following \"[Agile \r\n Manifesto](http://www.agilealliance.org)\" :\n\nAgile Methods value:\n\n- Individuals and Interactions over Process and Tools\n- Working Software over Comprehensive Documents\n- Customer Collaboration over Contract Negotiation\n- Responding to Change over Following a Plan\n\nThis means, while Agile Methods value the items on the right, \r\n they value the items on the left more. For example, while design documentation \r\n is important, when faced with an either-or decision, Agile Methods value working \r\n software over a stack of papers. Agile Methods are certainly not suited for \r\n every type of project. Pacemakers and missile control systems do tend to have \r\n the benefit of stable requirements and are best served by a rigorous up-front \r\n planning and design effort. On the other hand, most business applications are \r\n driven by market forces and demands and are therefore subject to constant change. \r\n For these projects, Agile Methods provides a more flexible process, which can \r\n absorb change at a higher rate than traditional methods.\n\n# Agile EAI\n\nAgile Methods have demonstrated impressive success stories in \r\n the world of enterprise application development . Enterprise integration projects \r\n are characterized by a similar or even greater level of complexity and uncertainty \r\n than enterprise applications. Additionally, integration projects increasingly \r\n contain significant application or business logic. So how can some of the benefits \r\n of Agile Methods be brought to bear on integration projects?\n\r\n Agile Methods consist of a collection of best practices that have been proven \r\n to support the need to absorb change while delivering a high-quality solution. \r\n Many of the practices can be applied in the world of application integration \r\n with small modifications:\n\n## Iterative Development\n\nMany projects end in the proverbial death march. Most of the time, \r\n this crunch near the end of the project occurs because during the final testing \r\n and deployment, all the bad surprises come to daylight: the piece of code that \r\n was 90% complete a few weeks ago is still not done. The users realize that a \r\n feature works differently than they had expected and the module that was slipped \r\n in at the last minute caused defects in other parts of the program. As much \r\n as we hate this final part of the project, it does help uncover many problems \r\n and provides us with an accurate read on the health of the project. If we could \r\n go through this final phase more frequently, chances are that it would be much \r\n less painful and would give us a more accurate read on the actual project progress. \r\n Developing and deploying a solution in multiple iterations allows us to do exactly \r\n that.\n\nDeveloping in multiple, shorter iterations realizes a number of \r\n additional benefits. Releasing a limited set of functionality early allows users \r\n to see a part of the total solution and to provide feedback throughout the development \r\n cycle. This significantly reduces the risk of missing critical features or delivering \r\n features that are no longer required. It may also allow business users to start \r\n realizing business benefit sooner. In addition, iterative development lets developers \r\n and architects familiarize themselves with the specifics of the systems that \r\n are to be integrated within the context of a small piece of functionality. We \r\n can think of it as the \"Hello World\" of EAI.\n\r\n The benefits of releasing functionality in multiple iterations applies to enterprise \r\n integration just as well as it does to application development. The key is to \r\n identify meaningful subsets of functionality that can be reviewed by the users. \r\n Similar to application development, there are a number of design decisions that \r\n have to be made at the beginning and cannot be significantly changed throughout \r\n the iterations. This includes fundamental architectural decisions such as naming \r\n standards and the underlying network architecture. These fundamentals are usually \r\n defined in a so-called discovery phase that precedes the first iteration.\n\n## Simple Design / Evolve\n\nThe concept of simplicity goes hand-in-hand with iterative development. \r\n In order to deliver value in a shorter amount of time, the solution has to be \r\n simple in nature. Rather than developing a huge framework over six months, we \r\n solve a specific problem in a few weeks and demonstrate that we understand what \r\n the business needs.\n\nSimple does not mean unsophisticated or sloppy. Simple means that \r\n we attack the problem straight on and do not create an enormous humungous (?another \r\n word instead of humungous?) infrastructure to support a minuscule portion of \r\n functionality. Building infrastructures is fun. It lets the developers work \r\n in an idealized world of elegant concepts and generic solutions to theoretical \r\n problems. We have seen many very, very beautiful infrastructures - works of \r\n art! Well, that was usually at the end of the \"infrastructure phase\" \r\n before the ugly reality of vague and changing business requirements marred the \r\n beautiful picture. What a shame. By growing the infrastructure as the functionality \r\n grows, we can ensure that the infrastructure supports what is really needed \r\n by the business. In the end, an infrastructure that was properly evolved leads \r\n to a better result than a beautiful ivory-tower infrastructure that was subsequently \r\n bastardized to meet real requirements.\n\nHow can an infrastructure be evolved without deteriorating into \r\n a complete mess? Two key factors: discipline and frequent testing. Evolving \r\n the infrastructure and functionality does not imply hacking away. To the contrary, \r\n a more disciplined approach is needed - especially in the world of EAI that \r\n is ripe with loosely coupled, cross-language, cross-platform interactions. Before \r\n we start developing, crucial standards have to be established: subject / queue \r\n / channel naming, component naming, documentation standards. As the system evolves, \r\n these standards and guidelines will allow developers to get a quick and accurate \r\n read of the system at any point in time and allows them to make changes that \r\n are in line with the overall solution philosophy.\n\n## Automated Testing / Integration\n\nThe second key factor to allow evolution is frequent testing. \r\n In order to keep the whole development team from testing eight hours a day, \r\n these tests better be automated. Running a complete test suite should be as \r\n simple as clicking a button and reviewing the report later on. In the world \r\n of custom application development, the suite of public domain 'xUnit' frameworks \r\n have become the tools of choice for automated unit testing. These frameworks \r\n execute all test cases and compare actual results with desired results. Any \r\n deviations are reported. If all test cases succeedss, we see the infamous 'green \r\n bar' (the progress bar turns red if a test case fails) .\n\nIt turns out that effective unit testing is more difficult in \r\n an EAI setting development than in application development setting for a number \r\n of reasons:\n\n- The minimal unit of test in the EAI world tends to be larger \r\n and more data driven than in application development. Testing a single method \r\n of a Java class generally requires a moderate amount of preparation. On the \r\n contrary, testing a single integration function may require complex data setup \r\n inside multiple packaged applications.\n- Most application testing is synchronous. A specific function \r\n is called and the results are compared to the expected result. EAI functions \r\n are often times asynchronous. An EAI test case may produce results in an asynchronous \r\n manner. Results may arrive later or not at all.\n- EAI environments are inherently heterogeneous. In an application \r\n development environment, a Java-based tool such as jUnit can cover the vast \r\n majority of unit test cases. The EAI solution may span across multiple languages \r\n and platforms, including mainframe legacy systems. This makes the capture \r\n and comparison of test results much more difficult.\n- Testing tools are not yet readily available. Many EAI vendors \r\n focused more heavily on integration functionality than testing support. In \r\n many cases, testing tools have to be created and are vendor specific. Some \r\n integrators (such as ThoughtWorks) have created proprietary testing tools. \r\n When you select an integrator to assist with EAI implementations, ask them \r\n about their approach to testing and specific tools they can bring to bear.\n\n## Close Customer Collaboration\n\nContinuous customer collaboration is another critical enabler \r\n to iterative development and short feedback cycles. This successful practice \r\n is arguably easier to perform in front-end application development than in enterprise \r\n integration, because infrastructure software is inherently difficult to demonstrate. \r\n Many of us may have seen an EAI demo where some person clicks a button on one \r\n machine and the screen changes on the machine next to it. While interesting \r\n to watch, this demonstration may not move us to spend a six or seven digit amount \r\n on an enterprise EAI initiative.\n\nOn the other hand, the need to demonstrate business features to \r\n a customer frequently reminds the integration teams of the ultimate deliverable \r\n -- business value. As such, it is a critical metric for the EAI development \r\n teams to come out of the dark hiding places of infrastructure retrofits and \r\n measure their success by the value that was provided to the business.\n\n# Conclusions\n\nEnterprise integration is a critical part of today's enterprise \r\n strategies. Integration projects are equally or even more difficult than most \r\n application development efforts. This difficulty stems from complexities in \r\n both the business and technical domains. Given the spotty track record of large \r\n application development efforts, embarking on a complex integration project \r\n may scare many business sponsors and IT departments. Agile development methods \r\n have offered the development communities some relief and demonstrated critical \r\n project successes. With some modification, many of the principles and techniques \r\n used in agile software development can be applied to the world of enterprise \r\n integration and help make the next integration project a successful one.\n\n# Authors\n\nMartin Fowler is the Chief Scientist at ThoughtWorks, Inc, an \r\n Internet systems delivery and consulting company. Contact him at fowler@acm.org.\n\nGregor Hohpe leads the Enterprise Integration Services practice \r\n at ThoughtWorks, Inc., a provider of application development and enterprise \r\n integration services. For the past four years, he has been helping clients around \r\n the world design and implement enterprise integration solutions. He can be contacted \r\n at ghohpe@thoughtworks.com.\n\n---\n\n---", "znaku_textu": 17194, "slov": 2520, "odkazu": 10, "kodovani": "iso-8859-1", "kodovani_deklarovane": "iso-8859-1", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 15:37:04", "sha256": "be3d218173d1e4985d8c472739519f5e271c90e4985dff17be5c38c0396ccd65", "hloubka": 4, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://www.agilealliance.org/"]} {"url": "http://www.enterpriseintegrationpatterns.com/docs/hohpe_developing_in_soa_world.pdf", "titulek": "", "h1": "", "popis": "", "klicova_slova": "", "kanonicka": "", "jazyk": "", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [], "markdown": "", "znaku_textu": 0, "slov": 0, "odkazu": 0, "kodovani": "", "kodovani_deklarovane": null, "format": "pdf", "bajtu": 1319463, "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 14:54:44", "sha256": "3b7ac38207364dffa97244c8cd65dc18a4cf357ac5bc1ca20a6f27d4b525f0b7", "hloubka": 3, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "application/pdf", "odkazy_externi": []} {"url": "http://www.enterpriseintegrationpatterns.com/docs/hohpe_event_driven_architectures.pdf", "titulek": "", "h1": "", "popis": "", "klicova_slova": "", "kanonicka": "", "jazyk": "", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [], "markdown": "", "znaku_textu": 0, "slov": 0, "odkazu": 0, "kodovani": "", "kodovani_deklarovane": null, "format": "pdf", "bajtu": 527400, "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 14:54:46", "sha256": "d4c2ea6021bf68a6681b7209bdf29a3c22b57b0e02adedea0eb4dc92719fc010", "hloubka": 3, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "application/pdf", "odkazy_externi": []} {"url": "http://www.enterpriseintegrationpatterns.com/docs/hohpeg_enterpriseintegrationpatterns.pdf", "titulek": "", "h1": "", "popis": "", "klicova_slova": "", "kanonicka": "", "jazyk": "", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [], "markdown": "", "znaku_textu": 0, "slov": 0, "odkazu": 0, "kodovani": "", "kodovani_deklarovane": null, "format": "pdf", "bajtu": 956676, "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 15:37:13", "sha256": "d21bdf5d0d1db8e14582dddc6003f7f788a2a6e8680e1894e94440ccb62b37ff", "hloubka": 4, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "application/pdf", "odkazy_externi": []} {"url": "http://www.enterpriseintegrationpatterns.com/docs/hohpeg_enterpriseintegrationpatterns_sdbp.pdf", "titulek": "", "h1": "", "popis": "", "klicova_slova": "", "kanonicka": "", "jazyk": "", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [], "markdown": "", "znaku_textu": 0, "slov": 0, "odkazu": 0, "kodovani": "", "kodovani_deklarovane": null, "format": "pdf", "bajtu": 290938, "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 15:37:12", "sha256": "fc381c99b8affd40d3def7afa2210a537c41b775507232a285677a9ffd1fcbb2", "hloubka": 4, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "application/pdf", "odkazy_externi": []} {"url": "http://www.enterpriseintegrationpatterns.com/docs/integrationpatterns_biztalk.pdf", "titulek": "", "h1": "", "popis": "", "klicova_slova": "", "kanonicka": "", "jazyk": "", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [], "markdown": "", "znaku_textu": 0, "slov": 0, "odkazu": 0, "kodovani": "", "kodovani_deklarovane": null, "format": "pdf", "bajtu": 368655, "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 15:37:02", "sha256": "1aada1c872f6be186dc489c98c2be54b4bfca11e662fb709d88b6d77fcb76eb7", "hloubka": 4, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "application/pdf", "odkazy_externi": []} {"url": "http://www.enterpriseintegrationpatterns.com/docs/jaoo_hohpeg_enterpriseintegrationpatterns.pdf", "titulek": "", "h1": "", "popis": "", "klicova_slova": "", "kanonicka": "", "jazyk": "", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [], "markdown": "", "znaku_textu": 0, "slov": 0, "odkazu": 0, "kodovani": "", "kodovani_deklarovane": null, "format": "pdf", "bajtu": 431115, "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 14:54:49", "sha256": "58da9148c49d901a6ded35419aedec084ace3cb442918bef9669b7fa29fec776", "hloubka": 3, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "application/pdf", "odkazy_externi": []} {"url": "http://www.enterpriseintegrationpatterns.com/docs/stairwaytoheaven.pdf", "titulek": "", "h1": "", "popis": "", "klicova_slova": "", "kanonicka": "", "jazyk": "", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [], "markdown": "", "znaku_textu": 0, "slov": 0, "odkazu": 0, "kodovani": "", "kodovani_deklarovane": null, "format": "pdf", "bajtu": 60324, "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 15:37:07", "sha256": "8a8c0e506ce997f04edc63e7577e93bf18225074ee44f83b54536555dd6eae0f", "hloubka": 4, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "application/pdf", "odkazy_externi": []} {"url": "http://www.enterpriseintegrationpatterns.com/download/ComposedMessagingMSMQReadme.html", "titulek": "", "h1": "Enterprise Integration Patterns", "popis": "", "klicova_slova": "", "kanonicka": "", "jazyk": "", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Enterprise Integration Patterns"}, {"uroven": 2, "text": "The Loan Broker MSMQ Example (Chapter 9)"}, {"uroven": 3, "text": "Prequisites"}, {"uroven": 3, "text": "Installation"}, {"uroven": 3, "text": "Run"}], "markdown": "# Enterprise Integration Patterns\n\n## The Loan Broker MSMQ Example (Chapter 9)\n\n### Prequisites\n\nThis example is the executable version of the example in Chapter 9 of *Enterprise \r\n Integraiton Patterns* (Addison-Wesley, ISBN 0321200683). The example is implemented \r\n in C# and requires the following components:\n\n- The **Microsoft \r\n .NET Framework 1.1** ( [http://msdn.microsoft.com/net](http://msdn.microsoft.com/net) )\n- The **Message \r\n Queing** component of the Windows operating system. This component \r\n is part of Windows 2000, Windows XP and Windows 2003, but is not installed \r\n by default. To install this component, enter the Control Panel, select Add \r\n or Remove Programs. On the icon bar on the left select Add/Remove Windows \r\n Components. Select the checkbox next to Message \r\n Queueing . Since this examples uses only local queues, you do not have \r\n to install the Active \r\n Directory Integration subcomponent.\n- Once the Message \r\n Queing component is installed, make sure the Message \r\n Queuing service is started. Open the Control Panel, select Administrative \r\n Tools, then Services. Make sure the service Message \r\n Queuing has a status of Started . If not, highlight the service and select Start from the Action menu.\n- **Visual Studio \r\n .NET 2003** . While you can compile the C# files from the command \r\n line, the included solution and project files require Visual Studio .NET 2003. \r\n The sample has been tested with the Professional Edition.\n\n### Installation\n\nUnzip the ZIP file into an empty directory. You should see sub-folders for \r\n the individual programs, e.g. Bank and CreditBureau.\n\nDouble-click the file ComposedMessaging.sln. \r\n This will start Visual Studio. Select \"Build Solution\".\n\n### Run\n\nRun TestLoanBroker.bat. This \r\n batch script opens multiple command windows, one for each credit bureau (3) \r\n and one for each bank (5). It also opens one window for the Loan Broker process \r\n and one window for the test client. The test client sends 50 random requests \r\n to the loan broker. After it receives all 50 responses, it displays summary \r\n statistics.\n\nYou can close the console windows by hitting the Enter key.\n\n[www.eaipatterns.com](http://www.eaipatterns.com)", "znaku_textu": 2172, "slov": 318, "odkazu": 2, "kodovani": "utf-8", "kodovani_deklarovane": null, "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 15:37:17", "sha256": "79e1dca7480fc3c76b3e7120603656ee5e8975622ed592b843d906407215e120", "hloubka": 4, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://msdn.microsoft.com/net", "http://www.eaipatterns.com/"]} {"url": "http://www.enterpriseintegrationpatterns.com/download/EIPTutorialReferenceChart.pdf", "titulek": "", "h1": "", "popis": "", "klicova_slova": "", "kanonicka": "", "jazyk": "", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [], "markdown": "", "znaku_textu": 0, "slov": 0, "odkazu": 0, "kodovani": "", "kodovani_deklarovane": null, "format": "pdf", "bajtu": 69394, "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 15:37:15", "sha256": "ebff07cf00d48064c988569a743ed05cabf19eaa49fb851344f4d24fa458c242", "hloubka": 4, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "application/pdf", "odkazy_externi": []} {"url": "http://www.enterpriseintegrationpatterns.com/download/TutorialOverviewAndExercises.pdf", "titulek": "", "h1": "", "popis": "", "klicova_slova": "", "kanonicka": "", "jazyk": "", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [], "markdown": "", "znaku_textu": 0, "slov": 0, "odkazu": 0, "kodovani": "", "kodovani_deklarovane": null, "format": "pdf", "bajtu": 1261733, "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 15:37:17", "sha256": "f8b6b2e091c277448c940e93a10eecf1f06f47fc12cd2dcf574c3d51f872fb65", "hloubka": 4, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "application/pdf", "odkazy_externi": []} {"url": "http://www.enterpriseintegrationpatterns.com/download_notes.html", "titulek": "Simple Messaging Toolkit - Release Notes", "h1": "", "popis": "", "klicova_slova": "", "kanonicka": "", "jazyk": "", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [], "markdown": "---\n\n| Simple Messaging \r\n Toolkit Release Notes |\n| --- |\n| |\n| March 22, 2007 Fixed bug: Barista (and other components) would not work properly if messages were already queued up on the input channel. New feature: you can change the item strings in the drop-downs of the Customer component. These strings are also embedded into the XML document generated by the Customer. This allows you to use the toolkit in different contexts or domains. The customer.bat command line syntax is as follows:\n customer outputChannel \"item1,item2,item3\"\n\r\n The list of items has to be comma separated. Whitespace around the commas becomes part of the item text. The second parameter has to be enclosed in double quotes to avoid having it split up by the command line processor.\r\n The feature only works in the ExercisesViz folder. |\n| Feb 2, 2007 Ported to .Net 2.0 Added validator. Visualizer now generates file validation.html that describes potential error situations in the message graph. For more information see [Validating Dynamic Systems](ramblings/48_validation.html). |\n\n---\n\n---", "znaku_textu": 1043, "slov": 158, "odkazu": 1, "kodovani": "iso-8859-1", "kodovani_deklarovane": "iso-8859-1", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 15:37:14", "sha256": "4919800e1b25d074e9a2515d294b114b0cfbf9205955f0e96eeab2ecdbd9f7ed", "hloubka": 4, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": []} {"url": "http://www.enterpriseintegrationpatterns.com/downloads.html", "titulek": "Tools & Downloads - Enterprise Integration Patterns", "h1": "", "popis": "", "klicova_slova": "eai, patterns, enterprise, integration, messaging, middleware, eai patterns, enterprise integration, soa, rest", "kanonicka": "", "jazyk": "", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Visio and Omnigraffle Stencil"}, {"uroven": 2, "text": "Articles and Presentations"}, {"uroven": 2, "text": "Sample Chapter"}, {"uroven": 2, "text": "On-line Resources"}, {"uroven": 2, "text": "Simple Messaging Toolkit"}, {"uroven": 2, "text": "Loan Broker MSMQ Example from Chapter 9"}], "markdown": "## Visio and Omnigraffle Stencil\n\nMatthew Oskowis ([contact](mailto:eip@zenworx.com)) \r\n created a Visio stencil that contains 51 integration pattern icons as Visio \r\n shapes. Each shape includes the solution text for the corresponding pattern. \r\n This stencil is invaluable when drawing out solutions based on the notation \r\n defined in the book. The stencil is available in Visio \r\n 2002 and a Visio 5 versions. If soneone if willing to port these to a newer version of visio, \r\n [let me know](/gregor.html).\n\n[EIP Stencil for Visio 2002](/download/EIP_Visio_stencil.zip) (147 KB ZIP)\n [EIP Stencil for Visio 5](/download/EIP_Visio5_stencil.zip) (134 KB ZIP)\n\nGunnar Peterson created a stencil for Omnigraffle. According to the site it has over 18000 downloads!\n\n[EIP Stencil for Omnigraffle](http://www.graffletopia.com/stencils/137) (200 KB)\n\n## Articles and Presentations\n\nYou can download most of my articles from the [Articles](/articles.html) page and many of my presentations from the [Talks](/talks.html) page. You may also want to check out [my blog](/ramblings.html).\n\n## Sample Chapter\n\nPearson has generously made the Introduction, Chapter 2 (\"Integration Styles\") and Chapter 3 (\"Messaging Systems\") of our book available for download. If you like what you see, please consider buying the book.\n\n[Chapter 2: \"Integration Styles\"](http://ptgmedia.pearsoncmg.com/images/9780321200686/samplepages/0321200683.pdf) PDF Download from Pearson Education (1073 KB) \n [Chapter 3: \"Messaging Systems\"](/docs/EnterpriseIntegrationPatterns_HohpeWoolf_ch03.pdf) PDF (614 KB)\n\n## On-line Resources\n\n| [**Workflow Patterns**](http://www.workflowpatterns.com), Wil van der Aalst, Arthur ter Hofstede, Marlon Dumas An extensive collection of workflow patterns from multiple perspectives: control-flow, data, resource, and exception handling. Wil also wrote a [good book on Workflow Management](http://www.amazon.com/exec/obidos/ASIN/0262720469/enterpriseint-20) and one on [Process Mining](http://www.amazon.com/exec/obidos/ASIN/3642193447/enterpriseint-20). [**Service Interaction Patterns**](http://kodu.ut.ee/~dumas/ServiceInteractionPatterns/patterns.html), Alistair Barros, Marlon Dumas, Arthur ter Hofstede A collection of basic interaction patterns. [**Patterns of System Integration with Enterprise Messaging**](http://www.hillside.net/plop/plop2002/final/woolfbrown2.pdf), Bobby Woolf, Kyle Brown Bobby and Kyle's original paper workshopped at PLoP 2002 and subsequently merged with my paper to become the nucleus of [Enterprise Integration Patterns](/eaipatterns.html). [**Stylized Architecture, Design Patterns, and Objects**](http://www-2.cs.cmu.edu/afs/cs/project/compose/ftp/pdf/ObjPatternsArch-ieee97.pdf), Monroe, Kompanek, Melton, Garlan | [**A Note on Distributed Computing**](http://citeseerx.ist.psu.edu/viewdoc/summary?doi=10.1.1.41.7628) Samuel C. Kendall, Jim Waldo, Ann Wollrath and Geoff Wyant, 1994 10 years ago Waldo et al. already reminded us why attempting to make distribution transparent to developers is a bad idea. I wish more Web services architects read this paper. [**UML Profile for Enterprise Application Integration**](http://www.omg.org/spec/EAI/), Object Management Group , 2002 A more formal approach to describing integration solutions, implemented as a UML profile. While it uses some of the same vocabulary as our patterns the focus is on a formal specification language whereas our patterns provide guidance about proper usage and trade-offs. [**Communicating Sequential Processes**](http://doi.acm.org/10.1145/359576.359585), C. A. R. Hoare, Communications of the ACM , 1978 Still one of the best concurrency models, which for example inspired the Go Language. *ACM on-line library access is required to see the full-text version of this article.* |\n| --- | --- |\n\n## Simple Messaging Toolkit\n\nFor my [ACM \r\n Middleware](http://www.eecg.utoronto.ca/middleware2004) and [OOPSLA](http://www.oopsla.org) tutorials I used a messaging toolkit that implements many of the basic patterns in our book. The toolkit allows users to compose solutions from \r\n the basic patterns and observe them in action. I developed the toolkit \r\n in C#, mostly because I am more familiar with the .NET user interface \r\n libraries. The kit is likely not 100% robust yet, but I am looking for \r\n feedback on the usefulness of the concept. The individual components can \r\n be run directly from the DOS command line or from a batch script. These \r\n scripts have a very nice, Domain-specific language feel to them.\n\nThese example implementations are not the patterns, \r\n but only a consistent example pattern implementations. Patterns \r\n comprise intent, forces, context etc. and are generally technology independent. \r\n For this toolkit I chose a specific implementation technology and created \r\n a collection of *examples* of the patterns. Read [[more \r\n on the relationship between the toolkit and the patterns](/ramblings/16_patternscomponents.html)]\n\n**Quickstart**: [download_notes](/download_notes.html)\n\n1) Extract the ZIP file, preserving the folder structure.\n\r\n 2) Make sure your Windows Message Queuing service is active (see reference Sheet for details). \n\r\n 3) Run \"Exercise1a.bat\" from the \"Exercises\" folder.\n\r\n 4) Select values from the drop-down lists in the Customer window and click ' Send Order'.\n\r\n 5) Follow the Tutorial Presentation for more complex examples and exercises.\n\n**Requirements**:\n\nMicrosoft Windows XP or 2003\n\r\n Microsoft .NET Framework 2.0 \n\r\n Microsoft Message Queuing (part of Windows)\n\n[Download ZIP File](/download/MessagingKitInstallWithSolution.zip) (1 MB) • \r\n [Reference Sheet and Installation](/download/EIPTutorialReferenceChart.pdf) (51 KB) • \r\n [Tutorial Presentation](/download/TutorialOverviewAndExercises.pdf) (1.2 MB) • \r\n [Release Notes](/download_notes.html)\n\n## Loan Broker MSMQ Example from Chapter 9\n\nMultiple readers have asked for the complete source for the Loan Broker \r\n example from Chapter 9. While the examples in the book are primarily intended \r\n to illustrate design trade-offs, a running example can be a useful learning tool. \r\n The ZIP file contains the complete Visual Studio solution. \r\n It should also load in newer versions of .Net and Visual Studio.\r\n It is also possible to compile the individual projects from the command line and avoid the need for Visual Studio.\n\n**Requirements** :\n\nMicrosoft Windows XP or 2003\n\r\n Microsoft .NET Framework 1.1\n\r\n Microsoft Visual Studio .NET 2003\n\n[Download ZIP File](/download/ComposedMessagingMSMQ.zip) (48 KB) • \r\n [ReadMe File](/download/ComposedMessagingMSMQReadme.html)", "znaku_textu": 6529, "slov": 834, "odkazu": 57, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 14:54:30", "sha256": "744bd3f21ad2932020bf920c97747b6307973f3fa0f955ca962ab24dfdb4072f", "hloubka": 3, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://www.infoq.com/presentations/hohpe-soa-conversations", "http://www.infoq.com/", "http://www.infoq.com/presentations/hohpe-soa-development", "http://www.drdobbs.com/an-asynchronous-world/184415001", "https://sites.google.com/site/gcodejp/slides/ProgrammingCloud_QCon.pdf", "http://www.graffletopia.com/stencils/137", "http://ptgmedia.pearsoncmg.com/images/9780321200686/samplepages/0321200683.pdf", "http://www.workflowpatterns.com/", "http://www.amazon.com/exec/obidos/ASIN/0262720469/enterpriseint-20", "http://www.amazon.com/exec/obidos/ASIN/3642193447/enterpriseint-20", "http://kodu.ut.ee/~dumas/ServiceInteractionPatterns/patterns.html", "http://www.hillside.net/plop/plop2002/final/woolfbrown2.pdf", "http://www-2.cs.cmu.edu/afs/cs/project/compose/ftp/pdf/ObjPatternsArch-ieee97.pdf", "http://citeseerx.ist.psu.edu/viewdoc/summary?doi=10.1.1.41.7628", "http://www.omg.org/spec/EAI/", "http://doi.acm.org/10.1145/359576.359585", "http://www.eecg.utoronto.ca/middleware2004", "http://www.oopsla.org/"]} {"url": "http://www.enterpriseintegrationpatterns.com/eaipatterns.html", "titulek": "Messaging Patterns Overview - Enterprise Integration Patterns", "h1": "", "popis": "This pattern catalog includes 65 integration patterns that we collected from integration projects and updated over two decades. They provide technology-independent design guidance for developers and architects to develop and document robust integration solutions. The 65 messaging patterns are organized as follows (click on the image or view the Table of Contents):", "klicova_slova": "Messaging Patterns Overview,integration, messaging, events, patterns, event-driven, coupling, eai, middleware, application integration, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns", "og:title": "Messaging Patterns Overview - Enterprise Integration Patterns", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/index.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/eip1_patterns_wide.png"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Integration Pattern Language"}, {"uroven": 2, "text": "Why Enterprise Integration Patterns?"}, {"uroven": 2, "text": "What products implement or use Enterprise Integration Patterns?"}, {"uroven": 2, "text": "How can you use the Patterns?"}, {"uroven": 2, "text": "What about REST / SOA / Serverless / EDA Patterns?"}, {"uroven": 2, "text": "Be Part of the Community"}, {"uroven": 2, "text": "Contributors"}], "markdown": "| | Messaging Patterns Overview[Messaging Patterns](index.html) | [Contents](toc.html)[Next ⇒](toc.html) |\n| --- | --- | --- |\n\nThis pattern catalog includes 65 integration patterns that we collected from integration projects and updated over two decades. They provide technology-independent design guidance for developers and architects to develop and document robust integration solutions. The [65 messaging patterns](toc.html) are organized as follows (click on the image or view the [Table of Contents](toc.html)):\n\n## Integration Pattern Language\n\n[Message Construct.](MessageConstructionIntro.html)\n\n[Message](Message.html)\n\n[Command Message](CommandMessage.html)\n\n[Document Message](DocumentMessage.html)\n\n[Event Message](EventMessage.html)\n\n[Request-Reply](RequestReply.html)\n\n[Return Address](ReturnAddress.html)\n\n[Correlation Identifier](CorrelationIdentifier.html)\n\n[Message Sequence](MessageSequence.html)\n\n[Message Expiration](MessageExpiration.html)\n\n[Format Indicator](FormatIndicator.html)\n\n[Message Routing](MessageRoutingIntro.html)\n\n[Pipes-and-Filters](PipesAndFilters.html)\n\n[Message Router](MessageRouter.html)\n\n[Content-based Router](ContentBasedRouter.html)\n\n[Message Filter](Filter.html)\n\n[Dynamic Router](DynamicRouter.html)\n\n[Recipient List](RecipientList.html)\n\n[Splitter](Sequencer.html)\n\n[Aggregator](Aggregator.html)\n\n[Resequencer](Resequencer.html)\n\n[Composed Msg. Processor](DistributionAggregate.html)\n\n[Scatter-Gather](BroadcastAggregate.html)\n\n[Routing Slip](RoutingTable.html)\n\n[Process Manager](ProcessManager.html)\n\n[Message Broker](MessageBroker.html)\n\n[Message\nTransformation](MessageTransformationIntro.html)\n\n[Message Translator](MessageTranslator.html)\n\n[Envelope Wrapper](EnvelopeWrapper.html)\n\n[Content Enricher](DataEnricher.html)\n\n[Content Filter](ContentFilter.html)\n\n[Claim Check](StoreInLibrary.html)\n\n[Normalizer](Normalizer.html)\n\n[Canonical Data Model](CanonicalDataModel.html)\n\n[Messaging Endpoints](MessagingEndpointsIntro.html)\n\n[Message Endpoint](MessageEndpoint.html)\n\n[Messaging Gateway](MessagingGateway.html)\n\n[Messaging Mapper](MessagingMapper.html)\n\n[Transactional Client](TransactionalClient.html)\n\n[Polling Consumer](PollingConsumer.html)\n\n[Event-driven Consumer](EventDrivenConsumer.html)\n\n[Competing Consumers](CompetingConsumers.html)\n\n[Message Dispatcher](MessageDispatcher.html)\n\n[Selective Consumer](MessageSelector.html)\n\n[Durable Subscriber](DurableSubscription.html)\n\n[Idempotent Receiver](IdempotentReceiver.html)\n\n[Service Activator](MessagingAdapter.html)\n\n[Messaging Channels](MessagingChannelsIntro.html)\n\n[Message Channel](MessageChannel.html)\n\n[Point-to-Point Channel](PointToPointChannel.html)\n\n[Publish-Subscr. Channel](PublishSubscribeChannel.html)\n\n[Datatype Channel](DatatypeChannel.html)\n\n[Invalid Message Channel](InvalidMessageChannel.html)\n\n[Dead Letter Channel](DeadLetterChannel.html)\n\n[Guaranteed Delivery](GuaranteedMessaging.html)\n\n[Channel Adapter](ChannelAdapter.html)\n\n[Messaging Bridge](MessagingBridge.html)\n\n[Message Bus](MessageBus.html)\n\n[Systems Mgmt.](SystemManagementIntro.html)\n\n[Control Bus](ControlBus.html)\n\n[Detour](Detour.html)\n\n[Wire Tap](WireTap.html)\n\n[Message History](MessageHistory.html)\n\n[Message Store](MessageStore.html)\n\n[Smart Proxy](SmartProxy.html)\n\n[Test Message](TestMessage.html)\n\n[Channel Purger](ChannelPurger.html)\n\n- [**Integration Styles**](IntegrationStylesIntro.html) document different ways applications can be integrated, providing a historical account of integration technologies. All subsequent patterns follow the [*Messaging*](Messaging.html) style.\n- [**Channel Patterns**](MessagingChannelsIntro.html) describe how messages are transported across a [*Message Channel*](MessageChannel.html) . Most messaging systems implement these patterns.\n- [**Message Construction Patterns**](MessageConstructionIntro.html) describe the intent, form and content of the messages that travel across the messaging system. The [*Message*](Message.html) pattern is the base pattern for this section.\n- [**Routing Patterns**](MessageRoutingIntro.html) discuss how messages are directed from a sender to the correct receiver(s). The patterns presented in this section are specializations of the [*Message Router*](MessageRouter.html) pattern.\n- [**Transformation Patterns**](MessageTransformationIntro.html) change the content of a message, for example to accommodate different data formats used by the sending and the receiving system. Data may have to be added, taken away or existing data may have to be rearranged. The base pattern for this section is the [*Message Translator*](MessageTranslator.html) .\n- [**Endpoint Patterns**](MessagingEndpointsIntro.html) describe how applications produce or consume messages.\n- [**System Management Patterns**](SystemManagementIntro.html) describe what's needed to keep a complex message-based system running smoothly.\n\n## Why Enterprise Integration Patterns?\n\nIntegration is a long-running topic in all aspects of software and IT, and it's too multi-faceted to be tackled with a simple 'cookbook' approach. Patterns, in contrast, document knowledge and experience that usually lives only in architects' heads. As accepted solutions to recurring problems, patterns are abstract enough to apply across integration technologies, but specific enough to provide hands-on guidance. They also provide a vocabulary to accurately describe solutions.\n\nPatterns are not 'invented'; they are harvested from repeated use in practice. If you have built integration solutions, you likely have used some of these patterns, maybe in slight variations and perhaps calling them by a different name. This site condenses that experience into a coherent collection of proven patterns that form an integration pattern language. Patterns live in a specific context. This first set of patterns focus on [*Messaging*](Messaging.html). We also started to [harvest Conversation patterns](/patterns/conversation).\n\n## What products implement or use Enterprise Integration Patterns?\n\nThe patterns are independent of a specific implementation and help you design better solutions with any of the following platforms:\n\n- **Open source ESB's** like [Mule ESB](http://www.mulesoft.org/) , [JBoss Fuse](http://www.jboss.org/products/fuse/overview/) , [Open ESB](http://www.open-esb.net/) , [WSo2](http://wso2.com/) , [Spring Integration](http://projects.spring.io/spring-integration/) , or [Talend ESB](http://www.talend.com/)\n- **Message Brokers** like [ActiveMQ](http://activemq.apache.org) , [Apache Kafka](https://kafka.apache.org/) , or [RabbitMQ](https://www.rabbitmq.com)\n- **EAI and SOA platforms** , such as [IBM WebSphere MQ](http://www.ibm.com/software/mqseries) , [TIBCO](http://www.tibco.com) , [Vitria](http://www.vitria.com) , [Oracle Service Bus](http://www.oracle.com/technetwork/middleware/service-bus) , [WebMethods](http://www.softwareag.com/corporate/products/webmethods_integration/integration/overview/default.asp) (now Software AG), [Microsoft BizTalk](http://www.microsoft.com/biztalk) , or [Fiorano](http://www.fiorano.com) .\n- **Cloud-based integration** , including [Amazon Simple Queue Service (SQS)](http://aws.amazon.com/sqs/) , [Amazon EventBridge](https://aws.amazon.com/eventbridge/) , [Google Cloud Pub/Sub](https://cloud.google.com/pubsub/) , or [Azure Service Bus](https://azure.microsoft.com/en-us/products/service-bus) .\n- **JMS-based messaging systems**\n- **Microsoft technologies** like [MSMQ](https://msdn.microsoft.com/en-us/library/ms711472) or [Windows Communication Foundation (WCF)](https://msdn.microsoft.com/library/vstudio/ms735119)\n\n## How can you use the Patterns?\n\nTo encourage widespread use of the integration pattern language, many parts are available under open source licensing. You are free to use the pattern name, icon, problem and solution statements, and the sketches (the diagram below the solution statement) under the [Creative Commons Attribution](http://creativecommons.org/licenses/by/4.0/) license.\n\n> The [CC-BY](https://creativecommons.org/licenses/by/4.0/) license allows you share, use and modify these elements as long as you give proper attribution, such as a link to this site or a citation of the book. See the [license for more detail](https://creativecommons.org/licenses/by/4.0/)\n> \n> .\n\nYou can do a lot more with the patterns:\n\n- **Build** . Many open-source frameworks, such as [Mule](http://mule.codehaus.org/display/MULE/Architecture+Guide) , [Apache Camel](http://activemq.apache.org/camel/) , or [Spring Integration](http://projects.spring.io/spring-integration/) incorporate our patterns. You can not only think in integration patterns, but also to code in them!\n- **Document** . You can create design documents using our icon language by downloading the [Visio stencil](downloads.html) or using the [OmniGraffle stencil](http://www.graffletopia.com/stencils/137) created by one of our readers.\n- **Read** . The book [*Enterprise Integration Patterns*](http://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20) (Addison-Wesley, ISBN 0321200683) contains the full description of each pattern with plenty of examples -- over 700 pages worth of material. You can also read the full text [on-line on Safari](http://safari.informit.com/0321200683) (with membership).\n- **Teach** . A number of professors use our material in lectures. If you are interested in getting access to material for academic purposes, please [contact us](gregor.html) .\n\n## What about REST / SOA / Serverless / EDA Patterns?\n\nThe integration problems we solve today remain [frustratingly similar](/ramblings/81_restconversation.html) to 20 years ago. The design knowledhe encapsulated in the patterns does not age like specific technologies. A list of [modern examples](/ramblings/eip1_examples_updated.html) shows how the patterns apply to integration technologies like Kafka, Google Cloud Pub/Sub, Amazon SQS or [REST](/ramblings/81_restconversation.html). I've also re-implemented the Loan Broker example application in [AWS Lambda, EventBridge, and Step Functions](/ramblings/loanbroker_stepfunctions.html) and [GCP PubSub and Workflows](/ramblings/loanbroker_gcp_workflows.html).\n\n## Be Part of the Community\n\nFeel free to connect on [LinkedIn](https://www.linkedin.com/in/ghohpe). We welcome your feedback!\n\n## Contributors\n\nThe patterns on this site are the result of discussions involving numerous individuals. Kyle Brown (co-author of \"Enterprise Java Programming for IBM WebSphere\" and \"The Design Patterns Smalltalk Companion\"), John Crupi (co-author of \"Core J2EE Patterns\"), Martin Fowler (author of too many books to mention here), Rachel Reinitz, Mark Weitzel were part of the original discussions. Conrad D'Cruz, Sean Neville, Mike Rettig, Jonathan Simon ended up authoring examples, case studies, and a chapter on the future of integration.", "znaku_textu": 10651, "slov": 1085, "odkazu": 124, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 14:54:26", "sha256": "dc85b74166b38c3432f7ef43820ecbd22e4e2ef0d7177fb1748db04b01f2bb90", "hloubka": 3, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://www.mulesoft.org/", "http://www.jboss.org/products/fuse/overview/", "http://www.open-esb.net/", "http://wso2.com/", "http://projects.spring.io/spring-integration/", "http://www.talend.com/", "http://activemq.apache.org/", "https://kafka.apache.org/", "https://www.rabbitmq.com/", "http://www.ibm.com/software/mqseries", "http://www.tibco.com/", "http://www.vitria.com/", "http://www.oracle.com/technetwork/middleware/service-bus", "http://www.softwareag.com/corporate/products/webmethods_integration/integration/overview/default.asp", "http://www.microsoft.com/biztalk", "http://www.fiorano.com/", "http://aws.amazon.com/sqs/", "https://aws.amazon.com/eventbridge/", "https://cloud.google.com/pubsub/", "https://azure.microsoft.com/en-us/products/service-bus", "https://msdn.microsoft.com/en-us/library/ms711472", "https://msdn.microsoft.com/library/vstudio/ms735119", "http://creativecommons.org/licenses/by/4.0/", "https://creativecommons.org/licenses/by/4.0/", "http://mule.codehaus.org/display/MULE/Architecture+Guide", "http://activemq.apache.org/camel/", "http://www.graffletopia.com/stencils/137", "http://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "http://safari.informit.com/0321200683", "https://www.linkedin.com/in/ghohpe", "https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "https://www.architectelevator.com/book", "https://www.cloudstrategybook.com/", "https://www.platformstrategybook.info/"]} {"url": "http://www.enterpriseintegrationpatterns.com/gregor.html", "titulek": "Gregor Hohpe - Enterprise Integration Patterns", "h1": "", "popis": "", "klicova_slova": "", "kanonicka": "", "jazyk": "", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Interests [MORE]"}, {"uroven": 2, "text": "Short Bio"}, {"uroven": 2, "text": "My Books"}, {"uroven": 2, "text": "Chapters and Contributions"}, {"uroven": 2, "text": "Disclosures & Privacy"}, {"uroven": 2, "text": "This Site"}, {"uroven": 2, "text": "Projects [MORE]"}], "markdown": "Gregor Hohpe\n\n---\n\nThis site is maintained by Gregor Hohpe (\"[hoh-puh](docs/gregorhohpe.wav)\").\n\n[@ghohpe](https://www.twitter.com/ghohpe)\n\n[Gregor Hohpe](https://www.linkedin.com/in/ghohpe)\n\nThe opinions expressed on this site are my personal ones, not those of my current or past employers.\n\nI enjoy seeing the field of IT from different angles (consulting, software engineering, corporate IT) and collecting my thoughts in my [ramblings](/ramblings.html). I like to tinker with [hardware](https://code.google.com/p/nfc-smart-tag/), mostly based on [AVR micro controllers](http://en.wikipedia.org/wiki/Atmel_AVR) and [Raspberry Pi](http://www.raspberrypi.org/). I am also fairly active on [Linkedin](https://www.linkedin.com/today/author/ghohpe).\n\n## Interests [[MORE]](http://www.hohpe.com/Gregor/Work/interests.html)\n\nI aim to make building distributed and integrated solutions less difficult and error-prone by collecting and documenting [Integration Patterns](eaipatterns.html) from many client projects. It all started with a paper at the [PLoP\n 2002 conference](http://www.hillside.net/plop/plop2002/proceedings.html), which evolved into a successful [book](books1.html), published in 2003. By now (2023) more than 90,000 copies have been sold.\n\nI also help large organizations transform their IT infrastructure and processes to reduce cost and complexity while increasing software delivery velocity. You can find the related book and information at [architectelevator.com](http://architectelevator.com).\n\n## Short Bio\n\nGregor advises CTOs and technology leaders in the transformation of both their organization and technology platform. Riding the Architect Elevator from the engine room to the penthouse, he assures that corporate strategy connects with the technical implementation and vice versa.\n\nGregor held positions as a Singapore Smart Nation Fellow and technical director in Google Cloud's Office of the CTO, where he helped customers maximize the value from a cloud-based IT model, and as Chief Architect at Allianz SE, where he oversaw the architecture of a global data center consolidation and deployed the first private cloud software delivery platform.\n\nGregor is known as co-author of the seminal book \"Enterprise Integration Patterns\", which is widely cited as the reference vocabulary for asynchronous messaging solutions. His book \"37 Things One Architect Knows About IT Transformation\" tells stories from the trenches of IT transformation while his articles have been featured in \"Best Software Writing\" by Joel Spolsky and \"97 Things Every Software Architect Should Know\". He is an active member of the IEEE Software advisory board.\n\n## My Books\n\nI enjoy writing because putting my thoughts into words forces me to clarify my thinking and allows me to share it with a wide audience.\n\n[Enterprise Integration Patterns](http://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20)\n\nwith Bobby Woolf\nISBN 0321200683\n\n2003, Addison-Wesley\n\n[The Software Architect Elevator](https://www.architectelevator.com/book)\n\n Learn how architects can play a critical role in IT transformation by applying their technical, communication, and organizational skills.\n\n2020, O'Reilly\n\n[Cloud Strategy](https://www.cloudstrategybook.com)\n\n Fill the large gap between high-level goals and product details by understanding decision trade-offs.\n\n2020, KDP\n\n[37 Things One Architect Knows](https://leanpub.com/37things)\n\n2016, Leanpub\n\n## Chapters and Contributions\n\n[Enterprise Solution Patterns using Microsoft .NET](http://amazon.com/o/asin/0735618399/ref=nosim/enterpriseint-20)\n\nDavid Trowbridge, Gregor Hohpe, James Newkirk, David Lavigne\n\n ISBN 0735618399\n\n2003, Microsoft Press\n\n[Integration Patterns](http://amazon.com/o/asin/073561850X/ref=nosim/enterpriseint-20)\n\nDavid Trowbridge, Ulrich Roxburgh, Gregor Hohpe, Dragos Manolescu, E.G. Nadhan \n\n ISBN 073561850X\n\n2004, Microsoft Press\n\n[The Best Software Writing](http://amazon.com/o/asin/1590595009/ref=nosim/enterpriseint-20)\n\nJoel Spolsky\n\n ISBN 1590595009\n\n2005, APress\n\n[97 Things Every Software Architect Should Know](http://amazon.com/o/asin/059652269X/ref=nosim/enterpriseint-20)\n\n Edited by Richard Monson-Haefel\n\n ISBN 059652269X\n\n2009, O'Reilly\n\n[97 Things Every Programmer Should Know](http://amazon.com/o/asin/0596809484/ref=nosim/enterpriseint-20)\n\n Edited by Kevlin Henney\n\n ISBN 0596809484\n \n\n 2009, O'Reilly\n\n[SOA Expertenwissen](http://www.amazon.de/SOA-Expertenwissen-Gernot-Starke/dp/3898644375) (in German)\n\nGernot Starke, Stefan Tilkov (Eds)\n\n ISBN 3898644375\n\n2007, dPunkt Verlag\n\n[Potenziale Entdecken](http://www.amazon.de/Potenziale-entdecken-Inspirationen-Pers%C3%B6nlichkeits--Unternehmensentwicklung/dp/3662488396) (in German)\n\nRalf Schneider, Robert Becker (Eds)\n\n ISBN 3662488396\n\n2015, Springer\n\n## Disclosures & Privacy\n\nThe founders and main committers of almost all open source ESB players are personal friends, so I don't have a favorite one. I generally do not recommend or endorse specific products.\n\nI hold stocks in mutual funds plus many of the popular IT companies, but not nearly enough to believe that my statements have any influence on their stock price or my net worth.\n\nThis site is static and does not collect or store user data. The site uses Google Analytics but is configured to anonymize IP addresses and to not share data with Google.\n\nWhen you purchase books from the site, I earn a referral fee through Amazon's affiliate program. I occasionally receive free review copies from publishers without any obligation to post a positive review.\n\n## This Site\n\nThis site was launched with the book [EIP](/eaipatterns.html) in 2003 and still largely follows the original design. The pages are rendered from XML source via XSLT driven from Ant 1.7 and deployed to Amazon S3 for hosting and distribution via CloudFront. Some pages are HTML 4.0 compliant and mobile friendly, but many are still the way the Web was around 2002. Bless backwards compatibility!\n\n## Projects [[MORE]](http://www.hohpe.com/Gregor/Work/portfolio.html)\n\nThe domain of Enterprise Integration Patterns is much broader than asynchronous messaging. That's why I am trying to collect more Enterprise Integration Patterns, mostly focused on [stateful interactions between systems](/patterns/conversation). But it's slow going...\n\nA long time ago, I created a number of tools to automate tedious EAI development, such as StubGen (a code generator for TIBCO AE) and [TibDoc](http://www.hohpe.com/Gregor/Work/portfolio.html#TibDoc)\n (a documentation generation tool). I have also created a [messaging\n toolkit](downloads.html) that demonstrates the patterns in my book. I am in the process of [open-sourcing](https://code.google.com/p/eipkit/source/browse/#svn%2FFilterComponents) it.\n\n» [More very old Projects](http://www.hohpe.com/Gregor/Work/portfolio.html)\n\n---", "znaku_textu": 6760, "slov": 842, "odkazu": 39, "kodovani": "iso-8859-1", "kodovani_deklarovane": "iso-8859-1", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 14:54:32", "sha256": "74133887b16a13b90cfd20562c7128fe4abe1f597ccb51c4c29d8f0e8ebe2429", "hloubka": 3, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://www.twitter.com/ghohpe", "https://www.linkedin.com/in/ghohpe", "https://code.google.com/p/nfc-smart-tag/", "http://en.wikipedia.org/wiki/Atmel_AVR", "http://www.raspberrypi.org/", "https://www.linkedin.com/today/author/ghohpe", "http://www.computer.org/software", "http://www.hohpe.com/Gregor/Work/interests.html", "http://www.hillside.net/plop/plop2002/proceedings.html", "http://architectelevator.com/", "http://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "https://www.architectelevator.com/book", "https://www.cloudstrategybook.com/", "https://leanpub.com/37things", "http://amazon.com/o/asin/0735618399/ref=nosim/enterpriseint-20", "http://amazon.com/o/asin/073561850X/ref=nosim/enterpriseint-20", "http://amazon.com/o/asin/1590595009/ref=nosim/enterpriseint-20", "http://amazon.com/o/asin/059652269X/ref=nosim/enterpriseint-20", "http://amazon.com/o/asin/0596809484/ref=nosim/enterpriseint-20", "http://www.amazon.de/SOA-Expertenwissen-Gernot-Starke/dp/3898644375", "http://www.amazon.de/Potenziale-entdecken-Inspirationen-Pers%C3%B6nlichkeits--Unternehmensentwicklung/dp/3662488396", "http://www.hohpe.com/Gregor/Work/portfolio.html", "https://code.google.com/p/eipkit/source/browse/"]} {"url": "http://www.enterpriseintegrationpatterns.com/index.html", "titulek": "Home - Enterprise Integration Patterns", "h1": "", "popis": "Enterprise Integration Patterns", "klicova_slova": "eai, soa, esb, service, patterns, enterprise, integration, messaging, middleware, eai patterns, soa patterns, enterprise integration, service bus, rest", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "website", "og:site_name": "Enterprise Integration Patterns", "og:title": "Home - Enterprise Integration Patterns", "og:description": "A comprehensive pattern language for the robust design of asynchronous messaging solutions. The patterns stay product neutral and emphasize design trade-offs over specific technology choices.", "og:url": "https://www.enterpriseintegrationpatterns.com/", "og:image": "https://www.enterpriseintegrationpatterns.com/img/eip1_patterns.png"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Patterns and Best Practices for Asynchronous Messaging"}, {"uroven": 2, "text": "Messaging Patterns in Today's World: Microservices and Serverless"}, {"uroven": 2, "text": "New Book: Platform Strategy"}, {"uroven": 2, "text": "Book: The Software Architect Elevator"}, {"uroven": 2, "text": "Work-in-progress: Conversation Patterns"}, {"uroven": 2, "text": "What Makes Integration Difficult?"}, {"uroven": 2, "text": "Asynchronous Messaging Architectures"}, {"uroven": 2, "text": "How can Patterns Help?"}, {"uroven": 2, "text": "What am I Reading Right Now?"}], "markdown": "## Patterns and Best Practices for Asynchronous Messaging\n\nBuy on\n\nToday's applications rarely live in isolation. Users expect instant access across all functions, which may reside in disparate applications or third-party services. However, building distributed and integrated applications requires developers to tackle asynchrony, partial failures, incompatible data models, API drift, and much more.\n\nThis [pattern language consisting of 65 integration patterns](/patterns/messaging) helps developers design and build distributed applications or integrate existing ones. The patterns provide a technology-independent vocabulary and visual notation harvested from proven solutions to recurring problems. They also share common \"gotchas\" and design considerations. Besides receiving [numerous accolades](/praise.html), the patterns spurred the development of a whole generation of open source Enterprise Service Bus (ESB) implementations, such as Apache Camel, Mule, WSO2, Oracle Service Bus, Open ESB, SonicESB, or Fuse ServiceMix.\n\nBuy the book [Enterprise Integration Patterns](http://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20) or read a [sample chapter](docs/EnterpriseIntegrationPatterns_HohpeWoolf_ch03.pdf) first. Find the most recent content in [my blog](/ramblings) or [articles](/articles.html).\n\n## Messaging Patterns in Today's World: Microservices and Serverless\n\nWhen Bobby Woolf and I started to document the patterns 20 years ago, the key technologies for distributed applications were JMS, SOAP, MSMQ, and .NET WCF. Large-scale application integration was done with integration tools and platforms, such as IBM WebSphere MQ, TIBCO, WebMethods (now Software AG), or Microsoft BizTalk. Although technology has evolved, many of these products still form the backbone of modern enterprises.\n\nCloud platforms and deployment automation have laid the foundation for a new generation of distributed systems: microservices and serverless architectures. Those applications rely on a smooth interconnect between components, giving rise to Service Meshes, Serverless Orchestrators, and Event Buses. Amazingly, we find the same integration patterns in those systems! That's why this site contains [many modern examples for integration patterns](/ramblings/eip1_examples_updated.html):\n\n- [Serverless Loan Broker Implementation with AWS Step Functions](/ramblings/loanbroker_stepfunctions.html)\n- [Serverless Loan Broker Implementation with GCP Workflows](/ramblings/loanbroker_gcp_workflows.html)\n- [Modern Examples and Implementations](/ramblings/eip1_examples_updated.html)\n- [Serverless Integration Patterns on Google Cloud](/ramblings/google_cloud_functions.html)\n\n## New Book: [Platform Strategy](https://PlatformStrategyBook.info)\n\nAlmost every IT strategy these days includes some element of platform strategy. And that's no surprise: platforms appear to be able to rewrite the laws of IT physics. They boost innovation despite (or perhaps due to) standardizing; they speed up developers while assuring compliance; and they reduce cognitive load without restricting choice.\n\nAs one might guess, building such an in-house platform, or even deploying one, is far from easy. Many organizations end up with something that’s outdated by the time it’s launched, restricts rather than enables users, and faces a certain demise when its use is mandated in a last-ditch effort to make the economics work.\n\nHarvested from a decade of building successful in-house platforms and enabling enterprises to utilize cloud platforms, this book provides a fresh look at what makes IT platforms work, why they are different from other IT services, and how you can use them to boost developer productivity. Get a paper copy on [Amazon](https://amzn.to/3WpMVm0) or the ebook from [Leanpub](https://leanpub.com/platformstrategy/c/eip) (Kindle, PDF).\n\n## Book: [The Software Architect Elevator](https://amzn.to/3egsIr5)\n\nModern architects must do more than draw UML diagrams and recite architectural styles. Rather than focus on technical decisions alone, architects and senior technologists need to combine organizational and technical knowledge to help transform their company’s structure and processes. That's why successful architects are those who connect the IT engine room, where the technical reality is defined, to the organization's penthouse, where the business strategy is set.\n\nThis books equips architects and IT leaders with the technical, communication, and organizational skills to be successfully in modern enterprises. Available now on [Amazon](https://amzn.to/3egsIr5')) and anywhere where books are sold.\n\n## Work-in-progress: [Conversation Patterns](/patterns/conversation)\n\nAsynchronous messaging is the foundation for most integration solution because its architectural style acknowledges the challenges of distributed communication, such as latency or partial failure. However, many interactions between systems extend beyond sending a single, stateless message: a request may expect a response; a handshake or authentication are needed first; a reservation is confirmed or expires. Such *conversations*, stateful exchanges between participants, present new design challenges and patterns. I therefore started documenting [Conversation Patterns](/patterns/conversation), which are the starting point for *Enterprise Integration Patterns 2*.\n\n## What Makes Integration Difficult?\n\nArchitecting integration solutions is a complex task. There are many conflicting drivers and even more possible 'right' solutions. Whether the architecture was in fact a good choice usually is not known until many months or even years later, when inevitable changes and additions put the original architecture to test. Unfortunately, there is no \"cookbook\" for enterprise integration solutions. Most integration vendors provide methodologies and best practices, but these instructions tend to be very much geared towards the vendor-provided tool set and often lack treatment of the bigger picture, including underlying guidelines, principles and best practices.\n\n## Asynchronous Messaging Architectures\n\nAsynchronous messaging architectures have proven to be the best strategy for enterprise integration because they allow for a loosely coupled solution that overcomes the limitations of remote communication, such as latency and unreliability. That's why most EAI suites and ESB's are based on asynchronous messaging. Unfortunately, asynchronous messaging is not without pitfalls. Many of the assumptions that hold true when developing single, synchronous applications are no longer valid. Vendor-independent design guidance helps developers avoid these pitfalls so they can build robust integration architectures based on asynchronous messaging.\n\n## How can Patterns Help?\n\nPatterns are a proven way to capture experts' knowledge where no simple “one size fits all” answers exist, for example in application architecture, object-oriented design, or message-oriented integration . Each pattern tackles a specific problem by discussing design considerations and presenting an elegant solution that balances often conflicting forces. The solution is not the first approach that comes to mind, but one that has evolved through actual use over time, capturing the experience that senior developers and architects have gained by repeatedly building solutions and learning from their mistakes.\n\n## What am I Reading Right Now?\n\n[Modern Software Engineering: Doing What Works to Build Better Software Faster](https://amzn.to/3s9VFgL) , Dave Farley, 2021\n\nThe \"father of continuous delivery\" distills the concepts behind modern software delivery, such as modularity, feedback, coupling. A must-read for every modern software engineer.\n\n[Practical Process Automation: Orchestration and Integration in Microservices and Cloud Native Architectures](https://amzn.to/3HlQkcx) , Ruecker, 2021\n\nProcess automation is no longer the domain of large-scale business processes but an integral part of modern application architecture. This books shows you where the two meet.\n\n[System Architecture: Strategy and Product Development for Complex Systems](https://amzn.to/3saiaCj) , Crawley, Cameron, Selva, Addison-Wesley 2015\n\nA tour de force on designing complex systems with a special emphasis on decomposition and logical relationships, augmented by a list of System Architecture Principles. Most examples drawing on non-IT domains helps convey the concepts without getting lost in technology debates and makes it worth the price.", "znaku_textu": 8463, "slov": 1118, "odkazu": 142, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 14:54:25", "sha256": "074c32eb64d9ef79bec751994ec70f45664cf3c53229d4fbd469715bcfff3fe3", "hloubka": 3, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://www.infoq.com/presentations/hohpe-soa-conversations", "http://www.infoq.com/", "http://www.infoq.com/presentations/hohpe-soa-development", "http://www.drdobbs.com/an-asynchronous-world/184415001", "https://sites.google.com/site/gcodejp/slides/ProgrammingCloud_QCon.pdf", "http://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "https://platformstrategybook.info/", "https://amzn.to/3WpMVm0", "https://leanpub.com/platformstrategy/c/eip", "https://amzn.to/3egsIr5", "https://amzn.to/3egsIr5')", "https://amzn.to/3s9VFgL", "https://amzn.to/3HlQkcx", "https://amzn.to/3saiaCj"]} {"url": "http://www.enterpriseintegrationpatterns.com/links.html", "titulek": "Tools & Downloads - Enterprise Integration Patterns", "h1": "", "popis": "", "klicova_slova": "eai, patterns, enterprise, integration, messaging, middleware, eai patterns, enterprise integration, soa, rest", "kanonicka": "", "jazyk": "", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Visio and Omnigraffle Stencil"}, {"uroven": 2, "text": "Articles and Presentations"}, {"uroven": 2, "text": "Sample Chapter"}, {"uroven": 2, "text": "On-line Resources"}, {"uroven": 2, "text": "Simple Messaging Toolkit"}, {"uroven": 2, "text": "Loan Broker MSMQ Example from Chapter 9"}], "markdown": "## Visio and Omnigraffle Stencil\n\nMatthew Oskowis ([contact](mailto:eip@zenworx.com)) \r\n created a Visio stencil that contains 51 integration pattern icons as Visio \r\n shapes. Each shape includes the solution text for the corresponding pattern. \r\n This stencil is invaluable when drawing out solutions based on the notation \r\n defined in the book. The stencil is available in Visio \r\n 2002 and a Visio 5 versions. If soneone if willing to port these to a newer version of visio, \r\n [let me know](/gregor.html).\n\n[EIP Stencil for Visio 2002](/download/EIP_Visio_stencil.zip) (147 KB ZIP)\n [EIP Stencil for Visio 5](/download/EIP_Visio5_stencil.zip) (134 KB ZIP)\n\nGunnar Peterson created a stencil for Omnigraffle. According to the site it has over 18000 downloads!\n\n[EIP Stencil for Omnigraffle](http://www.graffletopia.com/stencils/137) (200 KB)\n\n## Articles and Presentations\n\nYou can download most of my articles from the [Articles](/articles.html) page and many of my presentations from the [Talks](/talks.html) page. You may also want to check out [my blog](/ramblings.html).\n\n## Sample Chapter\n\nPearson has generously made the Introduction, Chapter 2 (\"Integration Styles\") and Chapter 3 (\"Messaging Systems\") of our book available for download. If you like what you see, please consider buying the book.\n\n[Chapter 2: \"Integration Styles\"](http://ptgmedia.pearsoncmg.com/images/9780321200686/samplepages/0321200683.pdf) PDF Download from Pearson Education (1073 KB) \n [Chapter 3: \"Messaging Systems\"](/docs/EnterpriseIntegrationPatterns_HohpeWoolf_ch03.pdf) PDF (614 KB)\n\n## On-line Resources\n\n| [**Workflow Patterns**](http://www.workflowpatterns.com), Wil van der Aalst, Arthur ter Hofstede, Marlon Dumas An extensive collection of workflow patterns from multiple perspectives: control-flow, data, resource, and exception handling. Wil also wrote a [good book on Workflow Management](http://www.amazon.com/exec/obidos/ASIN/0262720469/enterpriseint-20) and one on [Process Mining](http://www.amazon.com/exec/obidos/ASIN/3642193447/enterpriseint-20). [**Service Interaction Patterns**](http://kodu.ut.ee/~dumas/ServiceInteractionPatterns/patterns.html), Alistair Barros, Marlon Dumas, Arthur ter Hofstede A collection of basic interaction patterns. [**Patterns of System Integration with Enterprise Messaging**](http://www.hillside.net/plop/plop2002/final/woolfbrown2.pdf), Bobby Woolf, Kyle Brown Bobby and Kyle's original paper workshopped at PLoP 2002 and subsequently merged with my paper to become the nucleus of [Enterprise Integration Patterns](/eaipatterns.html). [**Stylized Architecture, Design Patterns, and Objects**](http://www-2.cs.cmu.edu/afs/cs/project/compose/ftp/pdf/ObjPatternsArch-ieee97.pdf), Monroe, Kompanek, Melton, Garlan | [**A Note on Distributed Computing**](http://citeseerx.ist.psu.edu/viewdoc/summary?doi=10.1.1.41.7628) Samuel C. Kendall, Jim Waldo, Ann Wollrath and Geoff Wyant, 1994 10 years ago Waldo et al. already reminded us why attempting to make distribution transparent to developers is a bad idea. I wish more Web services architects read this paper. [**UML Profile for Enterprise Application Integration**](http://www.omg.org/spec/EAI/), Object Management Group , 2002 A more formal approach to describing integration solutions, implemented as a UML profile. While it uses some of the same vocabulary as our patterns the focus is on a formal specification language whereas our patterns provide guidance about proper usage and trade-offs. [**Communicating Sequential Processes**](http://doi.acm.org/10.1145/359576.359585), C. A. R. Hoare, Communications of the ACM , 1978 Still one of the best concurrency models, which for example inspired the Go Language. *ACM on-line library access is required to see the full-text version of this article.* |\n| --- | --- |\n\n## Simple Messaging Toolkit\n\nFor my [ACM \r\n Middleware](http://www.eecg.utoronto.ca/middleware2004) and [OOPSLA](http://www.oopsla.org) tutorials I used a messaging toolkit that implements many of the basic patterns in our book. The toolkit allows users to compose solutions from \r\n the basic patterns and observe them in action. I developed the toolkit \r\n in C#, mostly because I am more familiar with the .NET user interface \r\n libraries. The kit is likely not 100% robust yet, but I am looking for \r\n feedback on the usefulness of the concept. The individual components can \r\n be run directly from the DOS command line or from a batch script. These \r\n scripts have a very nice, Domain-specific language feel to them.\n\nThese example implementations are not the patterns, \r\n but only a consistent example pattern implementations. Patterns \r\n comprise intent, forces, context etc. and are generally technology independent. \r\n For this toolkit I chose a specific implementation technology and created \r\n a collection of *examples* of the patterns. Read [[more \r\n on the relationship between the toolkit and the patterns](/ramblings/16_patternscomponents.html)]\n\n**Quickstart**: [download_notes](/download_notes.html)\n\n1) Extract the ZIP file, preserving the folder structure.\n\r\n 2) Make sure your Windows Message Queuing service is active (see reference Sheet for details). \n\r\n 3) Run \"Exercise1a.bat\" from the \"Exercises\" folder.\n\r\n 4) Select values from the drop-down lists in the Customer window and click ' Send Order'.\n\r\n 5) Follow the Tutorial Presentation for more complex examples and exercises.\n\n**Requirements**:\n\nMicrosoft Windows XP or 2003\n\r\n Microsoft .NET Framework 2.0 \n\r\n Microsoft Message Queuing (part of Windows)\n\n[Download ZIP File](/download/MessagingKitInstallWithSolution.zip) (1 MB) • \r\n [Reference Sheet and Installation](/download/EIPTutorialReferenceChart.pdf) (51 KB) • \r\n [Tutorial Presentation](/download/TutorialOverviewAndExercises.pdf) (1.2 MB) • \r\n [Release Notes](/download_notes.html)\n\n## Loan Broker MSMQ Example from Chapter 9\n\nMultiple readers have asked for the complete source for the Loan Broker \r\n example from Chapter 9. While the examples in the book are primarily intended \r\n to illustrate design trade-offs, a running example can be a useful learning tool. \r\n The ZIP file contains the complete Visual Studio solution. \r\n It should also load in newer versions of .Net and Visual Studio.\r\n It is also possible to compile the individual projects from the command line and avoid the need for Visual Studio.\n\n**Requirements** :\n\nMicrosoft Windows XP or 2003\n\r\n Microsoft .NET Framework 1.1\n\r\n Microsoft Visual Studio .NET 2003\n\n[Download ZIP File](/download/ComposedMessagingMSMQ.zip) (48 KB) • \r\n [ReadMe File](/download/ComposedMessagingMSMQReadme.html)", "znaku_textu": 6529, "slov": 834, "odkazu": 57, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/downloads.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 15:37:01", "sha256": "744bd3f21ad2932020bf920c97747b6307973f3fa0f955ca962ab24dfdb4072f", "hloubka": 4, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://www.infoq.com/presentations/hohpe-soa-conversations", "http://www.infoq.com/", "http://www.infoq.com/presentations/hohpe-soa-development", "http://www.drdobbs.com/an-asynchronous-world/184415001", "https://sites.google.com/site/gcodejp/slides/ProgrammingCloud_QCon.pdf", "http://www.graffletopia.com/stencils/137", "http://ptgmedia.pearsoncmg.com/images/9780321200686/samplepages/0321200683.pdf", "http://www.workflowpatterns.com/", "http://www.amazon.com/exec/obidos/ASIN/0262720469/enterpriseint-20", "http://www.amazon.com/exec/obidos/ASIN/3642193447/enterpriseint-20", "http://kodu.ut.ee/~dumas/ServiceInteractionPatterns/patterns.html", "http://www.hillside.net/plop/plop2002/final/woolfbrown2.pdf", "http://www-2.cs.cmu.edu/afs/cs/project/compose/ftp/pdf/ObjPatternsArch-ieee97.pdf", "http://citeseerx.ist.psu.edu/viewdoc/summary?doi=10.1.1.41.7628", "http://www.omg.org/spec/EAI/", "http://doi.acm.org/10.1145/359576.359585", "http://www.eecg.utoronto.ca/middleware2004", "http://www.oopsla.org/"]} {"url": "http://www.enterpriseintegrationpatterns.com/patterns/conversation", "titulek": "Overview - Enterprise Integration Patterns 2", "h1": "", "popis": "Enterprise Integration Patterns", "klicova_slova": "eai, patterns, enterprise, integration, messaging, middleware, eai patterns, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns 2", "og:title": "Overview - Enterprise Integration Patterns 2", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/index.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/eip1_patterns_wide.png"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Conversations between Loosely Coupled Systems"}, {"uroven": 2, "text": "EIP 2: Conversation Patterns"}, {"uroven": 2, "text": "A Comparison: Subscriptions"}, {"uroven": 2, "text": "The Pattern Language"}, {"uroven": 2, "text": "Real Life Conversations"}], "markdown": "| | Overview[Conversation Patterns](index.html) » Introduction | [Contents](toc.html)[Next ⇒](Preface.html) |\n| --- | --- | --- |\n\n## Conversations between Loosely Coupled Systems\n\n*Work in progress. Last update: Jan 2017*\n\nAsynchronous [*Messaging*](/patterns/messaging/Messaging.html) is a great way for distributed systems to communicate while maintaining loose coupling. Sending a single message isn't always enough for a meaningful exchange, though: a request expects a response; a certificate exchange may be needed for initial authentication; an order message is supposed to lead to a payment message, and if something goes wrong, additional messages may be needed to handle or correct errors. In these situations, participants engage in *Conversations*, an exchange of related messages. Examples of conversations occur at many levels: traditional web services are orchestrated into larger services, REST services provide referrals or use HATEOAS to trigger subsequent interactions, low-level networking protocols discover services. Conversations also occur in real world: coworkers schedule a suitable meeting time by exchanging their availability, vendors issue offers to be followed by orders, shipments, and payments.\n\nDesigning robust conversations is no simple task, though: lost messages, participants' state getting out of sync, timeouts, and lots of other annoying stuff can happen in distributed systems that communicate over unreliable networks. Developers may have a 1000-page TCP/IP tome on the shelf, but are quietly happy that someone else already figured this out for them. Conversations quickly sneak up on developers, though, even when things start out pretty simple: a basic [*Asynchronous Request-Response*](RequestResponse.html) interaction may foresee re-sending the request if no response is received within a specific time window. Doing so may result in a duplicate response being received if the original response was simply delayed, forcing the requestor to detect and ignore duplicate responses. The requestor likely also shouldn't send indefinite retry messages as this may overburden the system. Quickly the simple sending of a message turned up a number of considerations that govern how multiple messages can be exchanged: we need to decide the rules of the conversation.\n\n## EIP 2: Conversation Patterns\n\n[Conversation Patterns](toc.html) assist developers in designing robust interchanges between loosely coupled components just like [Messaging Patterns](/patterns/messaging) did for stateless message exchanges. Just as before, each design pattern represents a \"mind-sized\" chunk of information that not only describes a concrete solution but also elaborates the trade-offs and forces that motivate it. Building on the idea of the pattern icons, informal sketches capture the essence of the conversation while real-life examples provide a precise protocol specification.\n\n*Comparing conversation and messaging patterns*\n\nConversation Patterns highlight that [Enterprise Integration Patterns](/) consist of more than just messaging patterns: Conversation Patterns are set to become Volume 2 of the \"Enterprise Integration Patterns\" book series. Each pattern language's base vocabulary allows tackling different kinds of design problems. Whereas messaging patterns follow the flow of a message through a series of components, conversation patterns take the complementary viewpoint by following the stateful exchange of messages between components over time. The introduction of conversation state in EIP Vol. 2 allows the discussion new topics like error handling or resource management, something that the messaging patterns in EIP Vol. 1 weren't able to do.\n\n## A Comparison: Subscriptions\n\nA simple example highlights the complementary viewpoint that messaging and conversation patterns take.\n\n*Comparing conversation and messaging patterns*\n\nA [*Publish-Subscribe Channel*](/patterns/messaging/PublishSubscribeChannel.html), shown on the left, is a basic messaging pattern that describes how messages are routed to a set of subscribers. The pattern considers a single message to be distributed across multiple subscribers, discussing how each subscriber receiving its own copy of the message makes adding new subscribers side-effect free. A related, but distinct conversation pattern, takes the opposite viewpoint: it looks at how a single subscriber receives notification messages over time, tacitly assuming that multiple subscribers can do so at the same time. Discussing the flow of messages over time raises important questions, such as how long the flow of messages should continue, which in turn leads to patterns like [*Lease*](Lease.html) expiration.\n\n## The Pattern Language\n\nA pattern language structures a collection of patterns and guides the developer towards a meaningful solution (see [[POSA5](http://www.amazon.com/exec/obidos/ASIN/0471486485/enterpriseint-20)]). The Conversation Patterns language distinguishes *foundational* patterns that deal with technical aspects, such as finding a conversation partner, from *application-level* patterns that serve higher-level goals, such as managing resources or negotiating agreements. Both groups of patterns rely on a common vocabulary to [describe and compose conversations](DescribingIntro.html).\n\nThe *foundational* patterns roughly follow the life cycle of setting up a conversation:\n\n- [*Discovery*](DiscoveryIntro.html) : Before services can interact, they have to identify one or more conversation partners.\n- [*Starting a Conversation*](EstablishingIntro.html) : Once the conversation partners are known, a conversation has to be established, including authentication, handshaking, and negotiating conversation parameters.\n- [*Basic Conversations*](BasicIntro.html) take place between two participants and a small number of message types. They establish a core vocabulary for the description of more complex conversations.\n- [*Intermediaries*](MultiIntro.html) are simple conversations that have messages flow through a third party.\n\nBased on these foundational conversation patterns, we can tackle common distributed system problems at the *application level*, organized by type of consideration:\n\n- [*Resource Management*](ResourceIntro.html) : Acquiring resources from a service represents a form of coupling: if the requestor disappears unexpectedly, the resource provider continues to hold unneeded resources. Resource management patterns deal with resource allocation and deallocation in loosely coupled systems.\n- [*Ensuring Consistency*](EnsuringConsistencyIntro.html) : Things don't always go according to plan in distributed systems where messages can be duplicated and lost, or conversation partners may disappear altogether. These patterns deal with error conditions and help participants reach a consistent state.\n- *Reaching Agreement* : Most business situations depend on multiple independent parties reaching an agreement through offers, counter-offers, negotiations and deals.\n\nAll patterns are listed in the [Table of Contents](toc.html).\n\n## Real Life Conversations\n\nConversations between components often resemble conversations in real life. That's the case because real life is inherently unreliable and asynchronous. Humans have therefore learned to interact by exchanging asynchronous messages, such as leaving a voice mail, mailing a letter, or sending an email. A series of such messages forms a conversation, which serves an overarching purpose, such as negotiating a deal or determining a place for dinner. Real-life conversations can span hours, days, or even months, and have to deal with many of the same issues as distributed systems do, including duplicate messages (\"I really need that TPS report\"), messages crossing in transit (\"Ignore this notice if you've already sent your payment\"), and coordinating multiple independent resources (\"You got the money? You got the goods?\"). Therefore, one can learn a good bit about distributed system design from real life.", "znaku_textu": 7937, "slov": 1103, "odkazu": 61, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 15:33:57", "sha256": "ec849c66cb5965f82d6c897f87412323518a2b690cf834672a62567105025e68", "hloubka": 3, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://www.amazon.com/exec/obidos/ASIN/0471486485/enterpriseint-20"]} {"url": "http://www.enterpriseintegrationpatterns.com/patterns/conversation/ConsultDirectory.html", "titulek": "Consult Directory - Enterprise Integration Patterns 2", "h1": "", "popis": "Enterprise Integration Patterns", "klicova_slova": "eai, patterns, enterprise, integration, messaging, middleware, eai patterns, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns 2", "og:title": "Consult Directory - Enterprise Integration Patterns 2", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/ConsultDirectory.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/ConsultDirectory.png"}, "jsonld": [], "drobecky": [], "osnova": [], "markdown": "| | Consult Directory[Conversation Patterns](index.html) » [Discovery](DiscoveryIntro.html) | [Contents](toc.html)[⇐ Prev](ParticipantsAdvertise.html)[Next ⇒](Referral.html) |\n| --- | --- | --- |\n\nA participant wants to initiate a conversation.\n\nHow can a conversation initiator find a partner across a large network without flooding the network with requests?\n\nThe late binding between participants lowers the location coupling between them. However, it also puts the discovery on the critical path to establishing a conversation.Many networks do not route broadcast packets beyond the local network. This makes it difficult or impossible for an initiator using [*Dynamic Discovery*](DynamicDiscovery.html) to discover participants that are not nearby.Broadcast or multicast queries do not scale to large networks as the network may become flooded with discovery requests.Centralized administration may be involved in setting up a new service, e.g. to assure service quality. Therefore, new participants should not be allowed to introduce themselves to the network.\n\nThe initiator consults a directory, which refers it to one or more appropriate participants. Available participants register with the directory upfront.\n\nThe *Consult Directory* conversation involves the following participants:\n\n- The *Initiator* initiates the conversation by sending a *Lookup* message to the *Directory* .\n- The *Directory* receives *Register* messages from available *Providers* . When it receives a *Lookup* messages from the *Initiator* it responds with a reference to one or more *Provider* .\n- The *Provider* registers itself with the *Directory* .\n\nIn order to select an appropriate conversation partner, the directory has to provide a language for the initiator to express what type of partner it desires. Common strategies include:\n\n- *Unique Identifiers* : Each type of service or conversation partner may be assigned a globally unique identifier. An initiator specifies this identifier to locate a partner of the desired type. This approach typically requires manual registration of participant types in some sort of global catalog.\n- *Interface Definition* : An initiator may look for a service that conforms to a specific type interface. The interace may be specified by the type, which is similar to using a unique identifier.\n- *Attributes* : Participants may represent their capabilities through sets of attributes selected from a global set.\n- *Keyword match>* : Directories may not impose a structure at all, but allow the initiator to express its needs in plain text. The directory uses search heuristics to supply the initiator with services candidates.\n\nA service directory is only useful if it keeps up-to-date with which available conversation partners. Most directories use *Services Register in Directory* or *Directory Finds Services* strategies [[PLoPD5](http://www.amazon.com/exec/obidos/ASIN/0321321944/enterpriseint-20)] to maintain a relevant list of participants. Alternatively, new participants can be entered by hand. The more frequently services appear or disappear, the more difficult it is for the directory to stay in sync with the real state of the network, favoring a [*Dynamic Discovery*](DynamicDiscovery.html) approach.\n\nIn order to use *Consult Directory*, an initiator must know how to contact the directory. This can be achieved through [*Dynamic Discovery*](DynamicDiscovery.html) or [*Advertise Availability*](ParticipantsAdvertise.html) as the number of directories tends to be small and fairly stable.\n\nBecause queries to the directory may be expensive, conversation initiators frequently cache results of previous inquiries. This approach reduces traffic on the directory but increases the likelihood that the initiator operates with out-of-date information. This approach is most viable in networks where service discovery is frequent, but services join or depart infrequently. A connection error on initial connect to the conversation partner helps identify outdated cached information.\n\n**Related patterns:**[*Dynamic Discovery*](DynamicDiscovery.html), [*Advertise Availability*](ParticipantsAdvertise.html)\n\n---", "znaku_textu": 4064, "slov": 572, "odkazu": 58, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 15:37:27", "sha256": "c2a39d153383da84f9c48be7d285378a6e13abcab15aaab14b19ac7b02e2372f", "hloubka": 4, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://www.amazon.com/exec/obidos/ASIN/0321321944/enterpriseint-20", "http://creativecommons.org/licenses/by/4.0/"]} {"url": "http://www.enterpriseintegrationpatterns.com/patterns/messaging", "titulek": "Messaging Patterns Overview - Enterprise Integration Patterns", "h1": "", "popis": "This pattern catalog includes 65 integration patterns that we collected from integration projects and updated over two decades. They provide technology-independent design guidance for developers and architects to develop and document robust integration solutions. The 65 messaging patterns are organized as follows (click on the image or view the Table of Contents):", "klicova_slova": "Messaging Patterns Overview,integration, messaging, events, patterns, event-driven, coupling, eai, middleware, application integration, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns", "og:title": "Messaging Patterns Overview - Enterprise Integration Patterns", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/index.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/eip1_patterns_wide.png"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Integration Pattern Language"}, {"uroven": 2, "text": "Why Enterprise Integration Patterns?"}, {"uroven": 2, "text": "What products implement or use Enterprise Integration Patterns?"}, {"uroven": 2, "text": "How can you use the Patterns?"}, {"uroven": 2, "text": "What about REST / SOA / Serverless / EDA Patterns?"}, {"uroven": 2, "text": "Be Part of the Community"}, {"uroven": 2, "text": "Contributors"}], "markdown": "| | Messaging Patterns Overview[Messaging Patterns](index.html) | [Contents](toc.html)[Next ⇒](toc.html) |\n| --- | --- | --- |\n\nThis pattern catalog includes 65 integration patterns that we collected from integration projects and updated over two decades. They provide technology-independent design guidance for developers and architects to develop and document robust integration solutions. The [65 messaging patterns](toc.html) are organized as follows (click on the image or view the [Table of Contents](toc.html)):\n\n## Integration Pattern Language\n\n[Message Construct.](MessageConstructionIntro.html)\n\n[Message](Message.html)\n\n[Command Message](CommandMessage.html)\n\n[Document Message](DocumentMessage.html)\n\n[Event Message](EventMessage.html)\n\n[Request-Reply](RequestReply.html)\n\n[Return Address](ReturnAddress.html)\n\n[Correlation Identifier](CorrelationIdentifier.html)\n\n[Message Sequence](MessageSequence.html)\n\n[Message Expiration](MessageExpiration.html)\n\n[Format Indicator](FormatIndicator.html)\n\n[Message Routing](MessageRoutingIntro.html)\n\n[Pipes-and-Filters](PipesAndFilters.html)\n\n[Message Router](MessageRouter.html)\n\n[Content-based Router](ContentBasedRouter.html)\n\n[Message Filter](Filter.html)\n\n[Dynamic Router](DynamicRouter.html)\n\n[Recipient List](RecipientList.html)\n\n[Splitter](Sequencer.html)\n\n[Aggregator](Aggregator.html)\n\n[Resequencer](Resequencer.html)\n\n[Composed Msg. Processor](DistributionAggregate.html)\n\n[Scatter-Gather](BroadcastAggregate.html)\n\n[Routing Slip](RoutingTable.html)\n\n[Process Manager](ProcessManager.html)\n\n[Message Broker](MessageBroker.html)\n\n[Message\nTransformation](MessageTransformationIntro.html)\n\n[Message Translator](MessageTranslator.html)\n\n[Envelope Wrapper](EnvelopeWrapper.html)\n\n[Content Enricher](DataEnricher.html)\n\n[Content Filter](ContentFilter.html)\n\n[Claim Check](StoreInLibrary.html)\n\n[Normalizer](Normalizer.html)\n\n[Canonical Data Model](CanonicalDataModel.html)\n\n[Messaging Endpoints](MessagingEndpointsIntro.html)\n\n[Message Endpoint](MessageEndpoint.html)\n\n[Messaging Gateway](MessagingGateway.html)\n\n[Messaging Mapper](MessagingMapper.html)\n\n[Transactional Client](TransactionalClient.html)\n\n[Polling Consumer](PollingConsumer.html)\n\n[Event-driven Consumer](EventDrivenConsumer.html)\n\n[Competing Consumers](CompetingConsumers.html)\n\n[Message Dispatcher](MessageDispatcher.html)\n\n[Selective Consumer](MessageSelector.html)\n\n[Durable Subscriber](DurableSubscription.html)\n\n[Idempotent Receiver](IdempotentReceiver.html)\n\n[Service Activator](MessagingAdapter.html)\n\n[Messaging Channels](MessagingChannelsIntro.html)\n\n[Message Channel](MessageChannel.html)\n\n[Point-to-Point Channel](PointToPointChannel.html)\n\n[Publish-Subscr. Channel](PublishSubscribeChannel.html)\n\n[Datatype Channel](DatatypeChannel.html)\n\n[Invalid Message Channel](InvalidMessageChannel.html)\n\n[Dead Letter Channel](DeadLetterChannel.html)\n\n[Guaranteed Delivery](GuaranteedMessaging.html)\n\n[Channel Adapter](ChannelAdapter.html)\n\n[Messaging Bridge](MessagingBridge.html)\n\n[Message Bus](MessageBus.html)\n\n[Systems Mgmt.](SystemManagementIntro.html)\n\n[Control Bus](ControlBus.html)\n\n[Detour](Detour.html)\n\n[Wire Tap](WireTap.html)\n\n[Message History](MessageHistory.html)\n\n[Message Store](MessageStore.html)\n\n[Smart Proxy](SmartProxy.html)\n\n[Test Message](TestMessage.html)\n\n[Channel Purger](ChannelPurger.html)\n\n- [**Integration Styles**](IntegrationStylesIntro.html) document different ways applications can be integrated, providing a historical account of integration technologies. All subsequent patterns follow the [*Messaging*](Messaging.html) style.\n- [**Channel Patterns**](MessagingChannelsIntro.html) describe how messages are transported across a [*Message Channel*](MessageChannel.html) . Most messaging systems implement these patterns.\n- [**Message Construction Patterns**](MessageConstructionIntro.html) describe the intent, form and content of the messages that travel across the messaging system. The [*Message*](Message.html) pattern is the base pattern for this section.\n- [**Routing Patterns**](MessageRoutingIntro.html) discuss how messages are directed from a sender to the correct receiver(s). The patterns presented in this section are specializations of the [*Message Router*](MessageRouter.html) pattern.\n- [**Transformation Patterns**](MessageTransformationIntro.html) change the content of a message, for example to accommodate different data formats used by the sending and the receiving system. Data may have to be added, taken away or existing data may have to be rearranged. The base pattern for this section is the [*Message Translator*](MessageTranslator.html) .\n- [**Endpoint Patterns**](MessagingEndpointsIntro.html) describe how applications produce or consume messages.\n- [**System Management Patterns**](SystemManagementIntro.html) describe what's needed to keep a complex message-based system running smoothly.\n\n## Why Enterprise Integration Patterns?\n\nIntegration is a long-running topic in all aspects of software and IT, and it's too multi-faceted to be tackled with a simple 'cookbook' approach. Patterns, in contrast, document knowledge and experience that usually lives only in architects' heads. As accepted solutions to recurring problems, patterns are abstract enough to apply across integration technologies, but specific enough to provide hands-on guidance. They also provide a vocabulary to accurately describe solutions.\n\nPatterns are not 'invented'; they are harvested from repeated use in practice. If you have built integration solutions, you likely have used some of these patterns, maybe in slight variations and perhaps calling them by a different name. This site condenses that experience into a coherent collection of proven patterns that form an integration pattern language. Patterns live in a specific context. This first set of patterns focus on [*Messaging*](Messaging.html). We also started to [harvest Conversation patterns](/patterns/conversation).\n\n## What products implement or use Enterprise Integration Patterns?\n\nThe patterns are independent of a specific implementation and help you design better solutions with any of the following platforms:\n\n- **Open source ESB's** like [Mule ESB](http://www.mulesoft.org/) , [JBoss Fuse](http://www.jboss.org/products/fuse/overview/) , [Open ESB](http://www.open-esb.net/) , [WSo2](http://wso2.com/) , [Spring Integration](http://projects.spring.io/spring-integration/) , or [Talend ESB](http://www.talend.com/)\n- **Message Brokers** like [ActiveMQ](http://activemq.apache.org) , [Apache Kafka](https://kafka.apache.org/) , or [RabbitMQ](https://www.rabbitmq.com)\n- **EAI and SOA platforms** , such as [IBM WebSphere MQ](http://www.ibm.com/software/mqseries) , [TIBCO](http://www.tibco.com) , [Vitria](http://www.vitria.com) , [Oracle Service Bus](http://www.oracle.com/technetwork/middleware/service-bus) , [WebMethods](http://www.softwareag.com/corporate/products/webmethods_integration/integration/overview/default.asp) (now Software AG), [Microsoft BizTalk](http://www.microsoft.com/biztalk) , or [Fiorano](http://www.fiorano.com) .\n- **Cloud-based integration** , including [Amazon Simple Queue Service (SQS)](http://aws.amazon.com/sqs/) , [Amazon EventBridge](https://aws.amazon.com/eventbridge/) , [Google Cloud Pub/Sub](https://cloud.google.com/pubsub/) , or [Azure Service Bus](https://azure.microsoft.com/en-us/products/service-bus) .\n- **JMS-based messaging systems**\n- **Microsoft technologies** like [MSMQ](https://msdn.microsoft.com/en-us/library/ms711472) or [Windows Communication Foundation (WCF)](https://msdn.microsoft.com/library/vstudio/ms735119)\n\n## How can you use the Patterns?\n\nTo encourage widespread use of the integration pattern language, many parts are available under open source licensing. You are free to use the pattern name, icon, problem and solution statements, and the sketches (the diagram below the solution statement) under the [Creative Commons Attribution](http://creativecommons.org/licenses/by/4.0/) license.\n\n> The [CC-BY](https://creativecommons.org/licenses/by/4.0/) license allows you share, use and modify these elements as long as you give proper attribution, such as a link to this site or a citation of the book. See the [license for more detail](https://creativecommons.org/licenses/by/4.0/)\n> \n> .\n\nYou can do a lot more with the patterns:\n\n- **Build** . Many open-source frameworks, such as [Mule](http://mule.codehaus.org/display/MULE/Architecture+Guide) , [Apache Camel](http://activemq.apache.org/camel/) , or [Spring Integration](http://projects.spring.io/spring-integration/) incorporate our patterns. You can not only think in integration patterns, but also to code in them!\n- **Document** . You can create design documents using our icon language by downloading the [Visio stencil](downloads.html) or using the [OmniGraffle stencil](http://www.graffletopia.com/stencils/137) created by one of our readers.\n- **Read** . The book [*Enterprise Integration Patterns*](http://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20) (Addison-Wesley, ISBN 0321200683) contains the full description of each pattern with plenty of examples -- over 700 pages worth of material. You can also read the full text [on-line on Safari](http://safari.informit.com/0321200683) (with membership).\n- **Teach** . A number of professors use our material in lectures. If you are interested in getting access to material for academic purposes, please [contact us](gregor.html) .\n\n## What about REST / SOA / Serverless / EDA Patterns?\n\nThe integration problems we solve today remain [frustratingly similar](/ramblings/81_restconversation.html) to 20 years ago. The design knowledhe encapsulated in the patterns does not age like specific technologies. A list of [modern examples](/ramblings/eip1_examples_updated.html) shows how the patterns apply to integration technologies like Kafka, Google Cloud Pub/Sub, Amazon SQS or [REST](/ramblings/81_restconversation.html). I've also re-implemented the Loan Broker example application in [AWS Lambda, EventBridge, and Step Functions](/ramblings/loanbroker_stepfunctions.html) and [GCP PubSub and Workflows](/ramblings/loanbroker_gcp_workflows.html).\n\n## Be Part of the Community\n\nFeel free to connect on [LinkedIn](https://www.linkedin.com/in/ghohpe). We welcome your feedback!\n\n## Contributors\n\nThe patterns on this site are the result of discussions involving numerous individuals. Kyle Brown (co-author of \"Enterprise Java Programming for IBM WebSphere\" and \"The Design Patterns Smalltalk Companion\"), John Crupi (co-author of \"Core J2EE Patterns\"), Martin Fowler (author of too many books to mention here), Rachel Reinitz, Mark Weitzel were part of the original discussions. Conrad D'Cruz, Sean Neville, Mike Rettig, Jonathan Simon ended up authoring examples, case studies, and a chapter on the future of integration.", "znaku_textu": 10651, "slov": 1085, "odkazu": 124, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/eaipatterns.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 14:56:22", "sha256": "dc85b74166b38c3432f7ef43820ecbd22e4e2ef0d7177fb1748db04b01f2bb90", "hloubka": 3, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://www.mulesoft.org/", "http://www.jboss.org/products/fuse/overview/", "http://www.open-esb.net/", "http://wso2.com/", "http://projects.spring.io/spring-integration/", "http://www.talend.com/", "http://activemq.apache.org/", "https://kafka.apache.org/", "https://www.rabbitmq.com/", "http://www.ibm.com/software/mqseries", "http://www.tibco.com/", "http://www.vitria.com/", "http://www.oracle.com/technetwork/middleware/service-bus", "http://www.softwareag.com/corporate/products/webmethods_integration/integration/overview/default.asp", "http://www.microsoft.com/biztalk", "http://www.fiorano.com/", "http://aws.amazon.com/sqs/", "https://aws.amazon.com/eventbridge/", "https://cloud.google.com/pubsub/", "https://azure.microsoft.com/en-us/products/service-bus", "https://msdn.microsoft.com/en-us/library/ms711472", "https://msdn.microsoft.com/library/vstudio/ms735119", "http://creativecommons.org/licenses/by/4.0/", "https://creativecommons.org/licenses/by/4.0/", "http://mule.codehaus.org/display/MULE/Architecture+Guide", "http://activemq.apache.org/camel/", "http://www.graffletopia.com/stencils/137", "http://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "http://safari.informit.com/0321200683", "https://www.linkedin.com/in/ghohpe", "https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "https://www.architectelevator.com/book", "https://www.cloudstrategybook.com/", "https://www.platformstrategybook.info/"]} {"url": "http://www.enterpriseintegrationpatterns.com/patterns/messaging/Aggregator.html", "titulek": "Aggregator - Enterprise Integration Patterns", "h1": "", "popis": "How do we combine the results of individual, but related messages so that they can be processed as a whole?", "klicova_slova": "Aggregator,integration, messaging, events, patterns, event-driven, coupling, eai, middleware, application integration, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns", "og:title": "Aggregator - Enterprise Integration Patterns", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/Aggregator.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/Aggregator.gif"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Example: Serverless Loan Broker on AWSNEW"}, {"uroven": 2, "text": "Example: Serverless Loan Broker on GCPNEW"}, {"uroven": 2, "text": "Integration Pattern Language"}], "markdown": "| | Aggregator[Messaging Patterns](index.html) » [Message Routing](MessageRoutingIntro.html) | [Contents](toc.html)[⇐ Prev](Sequencer.html)[Next ⇒](Resequencer.html) |\n| --- | --- | --- |\n\nA [*Splitter*](Sequencer.html) is useful to break out a single message into a sequence of sub-messages that can be processed individually. Likewise, a [*Recipient List*](RecipientList.html) or a [*Publish-Subscribe Channel*](PublishSubscribeChannel.html) is useful to forward a request message to multiple recipients in parallel in order to get multiple responses to choose from. In most of these scenarios, the further processing depends on successful processing of the sub-messages. For example, we want to select the best bid from a number of vendor responses or we want to bill the client for an order after all items have been pulled from the warehouse.\n\nHow do we combine the results of individual, but related messages so that they can be processed as a whole?\n\nUse a stateful filter, an *Aggregator*, to collect and store individual messages until a complete set of related messages has been received. Then, the *Aggregator* publishes a single message distilled from the individual messages.\n\nThe *Aggregator* is a special *Filter* that receives a stream of messages and identifies messages that are correlated. Once a complete set of messages has been received (more on how to decide when a set is 'complete' below), the *Aggregator* collects information from each correlated message and publishes a single, aggregated message to the output channel for further processing.\n\nWhen designing an *Aggregator*, we need to specify the following items:\n\n- **Correlation** - which incoming messages belong together?\n- **Completeness Condition** - when are we ready to publish the result message?\n- **Aggregation Algorithm** - how do we combine the received messages into a single result message?\n\nThere are a number of strategies for aggregator completeness conditions. The available strategies primarily depend on whether we know how many messages to expect or not. The *Aggregator* could know the number of sub-messages to expect because it received a copy of the original composite message or because each individual message contains the total count (as described in the [*Splitter*](Sequencer.html) example). Depending on how much the *Aggregator* knows about the message stream, the most common strategies are as follows:\n\n- **\"Wait for All\"** Wait until all responses are received. This scenario is most likely in the order example we discussed earlier. An incomplete order may not be meaningful. So if not all items are received within a certain time-out period an error condition should be raised by the *Aggregator* . This approach may give us the best basis for decision-making, but may also be the slowest and most brittle (plus we need to know how many messages to expect). A single missing or delayed message will prevent further processing of the whole aggregate. Resolving such error conditions can be a complicated matter in loosely-coupled asynchronous systems because the asynchronous flow of messages makes it hard to reliably detect error conditions (how long should we wait before a message is \"missing\"?). One way to deal with missing messages is to re-request the message. However, this approach requires the *Aggregator* to know the source of the message, which may introduce additional dependencies between the *Aggregator* and other components.\n- **\"Time Out\"** Wait for a specified length of time for responses and then make a decision by evaluating those responses received within that time limit. If no responses are received, the system may report an exception or retry. This heuristic is useful if incoming responses are scored and only the message (or a small number of messages) with the highest score is used. This approach is common in \"bidding\" scenarios.\n- **\"First Best\"** Wait only until the first (fastest) response is received and ignore all other responses. This approach is the fastest, but ignores a lot of information. It may be practical in a bidding or quoting scenario where response time is critical.\n- **\"Time Out with Override\"** Wait for a specified amount of time or until a message with a preset minimum score has been received. In this scenario, we are willing to abort early if we find a very favorable response; otherwise, we keep on going until time is up. If no clear winner was found at that point, rank ordering among all the messages received so far occurs.\n- **\"External Event\"** Sometimes the aggregation is concluded by the arrival of an external business event. For example, in the financial industry, the end of the trading day may signal the end of an aggregation of incoming price quotes. Using a fixed timer for such an event reduces flexibility because it does not other variability. Also, a designated business even in form of an [*Event Message*](EventMessage.html) allows for central control of the system. The *Aggregator* can listen for the [*Event Message*](EventMessage.html) on a special control channel or receive a specially formatted message that indicates the end of the aggregation.\n\n...\nRead the entire pattern in the book [Enterprise Integration Patterns](/books1.html)\n\n## Example: Serverless Loan Broker on AWS[NEW](/ramblings/eip1_examples_updated.html)\n\nThe [modern implementation of the Loan Broker using AWS serverless constructs](/ramblings/loanbroker_stepfunctions_pubsub.html#aggregator) includes an implementation of a *Aggregator* with Lambda and DynamoDB. The *Aggregator* uses a simple completeness condition of waiting for a minimum number of answers. The surrounding workflow, implemented using AWS Step Functions, adds a time-out component.\n\n## Example: Serverless Loan Broker on GCP[NEW](/ramblings/eip1_examples_updated.html)\n\nThe [modern implementation of the Loan Broker using GCP](/ramblings/loanbroker_gcp_workflows.html) includes an implementation of a *Aggregator* with a Cloud Function and Datastore. The implementation stores all elements of a specific Aggregate under the same key and can therefore fail when inserting the record (Datastore doesn't seem to like heavy contention on one record). It therefore configures retry logic on the incoming messages. The *Aggregator* signals back to the [*Process Manager*](ProcessManager.html) on completion.\n\n**Related patterns:**\n\n[*Scatter-Gather*](BroadcastAggregate.html), [*Introduction to Composed Messaging Examples*](ComposedMessagingExample.html), [*Content-Based Router*](ContentBasedRouter.html), [*Control Bus*](ControlBus.html), [*Correlation Identifier*](CorrelationIdentifier.html), [*Composed Message Processor*](DistributionAggregate.html), [*Event-Driven Consumer*](EventDrivenConsumer.html), [*Event Message*](EventMessage.html), [*Guaranteed Delivery*](GuaranteedMessaging.html), [*Message Expiration*](MessageExpiration.html), [*Point-to-Point Channel*](PointToPointChannel.html), [*Process Manager*](ProcessManager.html), [*Publish-Subscribe Channel*](PublishSubscribeChannel.html), [*Recipient List*](RecipientList.html), [*Resequencer*](Resequencer.html), [*Splitter*](Sequencer.html), [*Transactional Client*](TransactionalClient.html)\n\n---\n\n## Integration Pattern Language\n\n[Message Construct.](MessageConstructionIntro.html)\n\n[Message](Message.html)\n\n[Command Message](CommandMessage.html)\n\n[Document Message](DocumentMessage.html)\n\n[Event Message](EventMessage.html)\n\n[Request-Reply](RequestReply.html)\n\n[Return Address](ReturnAddress.html)\n\n[Correlation Identifier](CorrelationIdentifier.html)\n\n[Message Sequence](MessageSequence.html)\n\n[Message Expiration](MessageExpiration.html)\n\n[Format Indicator](FormatIndicator.html)\n\n[Message Routing](MessageRoutingIntro.html)\n\n[Pipes-and-Filters](PipesAndFilters.html)\n\n[Message Router](MessageRouter.html)\n\n[Content-based Router](ContentBasedRouter.html)\n\n[Message Filter](Filter.html)\n\n[Dynamic Router](DynamicRouter.html)\n\n[Recipient List](RecipientList.html)\n\n[Splitter](Sequencer.html)\n\n[Aggregator](Aggregator.html)\n\n[Resequencer](Resequencer.html)\n\n[Composed Msg. Processor](DistributionAggregate.html)\n\n[Scatter-Gather](BroadcastAggregate.html)\n\n[Routing Slip](RoutingTable.html)\n\n[Process Manager](ProcessManager.html)\n\n[Message Broker](MessageBroker.html)\n\n[Message\nTransformation](MessageTransformationIntro.html)\n\n[Message Translator](MessageTranslator.html)\n\n[Envelope Wrapper](EnvelopeWrapper.html)\n\n[Content Enricher](DataEnricher.html)\n\n[Content Filter](ContentFilter.html)\n\n[Claim Check](StoreInLibrary.html)\n\n[Normalizer](Normalizer.html)\n\n[Canonical Data Model](CanonicalDataModel.html)\n\n[Messaging Endpoints](MessagingEndpointsIntro.html)\n\n[Message Endpoint](MessageEndpoint.html)\n\n[Messaging Gateway](MessagingGateway.html)\n\n[Messaging Mapper](MessagingMapper.html)\n\n[Transactional Client](TransactionalClient.html)\n\n[Polling Consumer](PollingConsumer.html)\n\n[Event-driven Consumer](EventDrivenConsumer.html)\n\n[Competing Consumers](CompetingConsumers.html)\n\n[Message Dispatcher](MessageDispatcher.html)\n\n[Selective Consumer](MessageSelector.html)\n\n[Durable Subscriber](DurableSubscription.html)\n\n[Idempotent Receiver](IdempotentReceiver.html)\n\n[Service Activator](MessagingAdapter.html)\n\n[Messaging Channels](MessagingChannelsIntro.html)\n\n[Message Channel](MessageChannel.html)\n\n[Point-to-Point Channel](PointToPointChannel.html)\n\n[Publish-Subscr. Channel](PublishSubscribeChannel.html)\n\n[Datatype Channel](DatatypeChannel.html)\n\n[Invalid Message Channel](InvalidMessageChannel.html)\n\n[Dead Letter Channel](DeadLetterChannel.html)\n\n[Guaranteed Delivery](GuaranteedMessaging.html)\n\n[Channel Adapter](ChannelAdapter.html)\n\n[Messaging Bridge](MessagingBridge.html)\n\n[Message Bus](MessageBus.html)\n\n[Systems Mgmt.](SystemManagementIntro.html)\n\n[Control Bus](ControlBus.html)\n\n[Detour](Detour.html)\n\n[Wire Tap](WireTap.html)\n\n[Message History](MessageHistory.html)\n\n[Message Store](MessageStore.html)\n\n[Smart Proxy](SmartProxy.html)\n\n[Test Message](TestMessage.html)\n\n[Channel Purger](ChannelPurger.html)", "znaku_textu": 9842, "slov": 1169, "odkazu": 111, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/Aggregator.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 14:55:37", "sha256": "15d8640d5ad149a0e54a23c4cfe4a84c0abdcec421de2f9eb301daf21d708f58", "hloubka": 3, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://creativecommons.org/licenses/by/4.0/", "https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "https://www.architectelevator.com/book", "https://www.cloudstrategybook.com/", "https://www.platformstrategybook.info/"]} {"url": "http://www.enterpriseintegrationpatterns.com/patterns/messaging/BondTradingCaseStudy.html", "titulek": "Case Study: Bond Trading System - Enterprise Integration Patterns", "h1": "", "popis": "It is easy to distance yourself from a large collection of patterns or a pattern language. Patterns are the abstraction of an idea in a reusable form. Often, the very generic nature of patterns that makes them so useful also makes them hard to grasp. Sometimes the best thing to help understand patterns is a real world example. Not a contrived scenario of what could happen; but what actually happens and what will happen.", "klicova_slova": "Case Study: Bond Trading System,integration, messaging, events, patterns, event-driven, coupling, eai, middleware, application integration, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns", "og:title": "Case Study: Bond Trading System - Enterprise Integration Patterns", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/BondTradingCaseStudy.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/eip1_patterns_wide.png"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Building a System"}, {"uroven": 2, "text": "Architecture with Patterns"}, {"uroven": 2, "text": "Structuring Channels"}, {"uroven": 2, "text": "Selecting a Message Channel?"}, {"uroven": 2, "text": "Problem Solving With Patterns"}, {"uroven": 2, "text": "Flashing Market Data Updates"}, {"uroven": 2, "text": "Major Production Crash"}, {"uroven": 2, "text": "Summary"}, {"uroven": 2, "text": "Integration Pattern Language"}], "markdown": "| | Case Study: Bond Trading System[Messaging Patterns](index.html) » Integration Patterns in Practice | [Contents](toc.html)[⇐ Prev](SystemManagementExample.html)[Next ⇒](Future.html) |\n| --- | --- | --- |\n\n*(By Jonathan Simon)*\n\nIt is easy to distance yourself from a large collection of patterns or a pattern language. Patterns are the abstraction of an idea in a reusable form. Often, the very generic nature of patterns that makes them so useful also makes them hard to grasp. Sometimes the best thing to help understand patterns is a real world example. Not a contrived scenario of what *could* happen; but what *actually* happens and what *will* happen.\n\nThis chapter applies patterns to solve problems using a discovery process. The system we will discuss is a bond trading system that I worked with for two years from initial design through production. We will explore scenarios and problems that were encountered and how to solve them with patterns. This involves the decision process of choosing a pattern, as well as how to combine and adjust patterns to suit the needs of the system. And this is all done taking into account the forces encountered in real systems including business requirements, client decisions, architectural and technical requirements, as well as legacy system integration. The intent of this approach is to provide a clearer understanding of the patterns themselves through practical application.\n\n## Building a System\n\nA major Wall Street investment bank sets out to build a bond pricing system in an effort to streamline the workflow of their bond trading desk. Currently, bond traders have to send prices for a large number of bonds to several different trading venues, each with its own user interface. The goal for the system is to minimize the minutiae of pricing all of their bonds combined with advanced analytic functionality specific to the bond market in a single encapsulated user interface. This means integration and communication with several components over various communication protocols. The high level flow of the system looks like this:\n\n*High Level Flow*\n\nFirst, market data comes into the system. Market data is data regarding the price and other properties of the bond representing what people are willing to buy and sell the bond for on the free market. The market data is immediately sent to the analytics engine that alters the data. Analytics refers to mathematical functions for financial applications that alter the prices and other attributes of bonds. These are generic functions that use input variables to tailor the results of the function to a particular bond. The client application that will run on each trader desktop will configure the analytics engine on a per trader basis, controlling the specifics of the analytics for each bond the trader is pricing. Once the analytics are applied to the market data, the modified data is sent out to various trading venues where traders from other firms can buy or sell the bonds.\n\n## Architecture with Patterns\n\nWith this overview of the workflow of the system, we can approach some of the architectural problems we encounter during the design process. Let’s take a look at what we know to date. Traders need a very responsive application on both Windows NT and Solaris workstations. Therefore, we decided to implement the client application as a Java thick client because of its platform independence and its ability to quickly respond to user input and market data. On the server side, we are inheriting legacy C++ components that our system will utilize. The market data components communicate with the TIBCO Information Bus (TIB) messaging infrastructure.\n\nWe are inheriting the following components:\n\n- **Market Data Price Feed Server** : Publishes incoming market data to the TIB.\n- **Analytics Engine** : Performs analytics on incoming market data and broadcasts the modified market data to the TIB.\n- **Contribution Server** : Performs all communication with trading venues. The trading venues are third party components not controlled by the bank.\n\n*Legacy Market Data Subsystem* \n *Legacy Contribution Subsystem*\n\nWe need to decide how the separate subsystems (Java thick client, market data, and contribution) are going to communicate. We could have the thick client communicate directly with the legacy servers, but that would require too much business logic on the client. Instead, we’ll build a pair of Java gateways to communicate with the legacy servers—The Pricing Gateway for market data a Contribution Gateway for sending prices to trading venues. This will achieve nice encapsulation of the business logic related to these areas. The current components in the system are shown below. The connections marked as “???” indicate that we are still unsure how some of the components will communicate.\n\n*The system and its components*\n\nThe first communication question is how to integrate the Java thick client and the two Java server components in order to exchange data. Let’s look at the four integration styles suggested in this book: [*File Transfer*](FileTransferIntegration.html), [*Shared Database*](SharedDataBaseIntegration.html), [*Remote Procedure Invocation*](EncapsulatedSynchronousIntegration.html), and [*Messaging*](Messaging.html). We can rule out [*Shared Database*](SharedDataBaseIntegration.html) immediately because we wanted to create a layer of abstraction between the client and the database and don’t want to have database access code in the client. [*File Transfer*](FileTransferIntegration.html) can similarly be ruled out since minimal latency is required to ensure current prices are sent out to the trading venues. This leaves us with a choice between [*Remote Procedure Invocation*](EncapsulatedSynchronousIntegration.html) or [*Messaging*](Messaging.html).\n\nThe Java platform provides built-in support for both [*Remote Procedure Invocation*](EncapsulatedSynchronousIntegration.html) and [*Messaging*](Messaging.html). RPC-style integration can be achieved using Remote Method Invocation (RMI), CORBA, or Enterprise Java Beans (EJB). The Java Messaging Service (JMS) is the common API for messaging-style integration. So both integration styles are easy to implement in Java.\n\nSo which will work better for this project, [*Remote Procedure Invocation*](EncapsulatedSynchronousIntegration.html) or [*Messaging*](Messaging.html)? There’s only one instance of the Pricing Gateway and one instance of the Contribution Gateway in the system, but usually many Thick Clients simultaneously connect to these services (one for each bond trader that happens to be logged in at a particular time). Furthermore, the bank would like this to be a generic pricing system that can be utilized in other applications. So besides an unknown number of Think Clients, there may be an unknown number of other applications using the pricing data coming out of the Gateways.\n\nA Thick Client (or other application using the pricing data) can fairly easily use RPC to make calls to the Gateways to get pricing data and invoke processing. However, pricing data will constantly be published, and certain clients are only interested in certain data, so getting the relevant data to the proper clients in a timely manner could be difficult. The clients could poll the Gateways, but that will create a lot of overhead. It would be better for the Gateways to make the data available to the clients as soon as it is available. This, however, will require each Gateway to keep track of which clients are currently active, and which want what particular data; then, when a new piece of data becomes available (which will happen numerous times per second), the Gateway will have to make an RPC to each interested client to pass the data to the client. Ideally, all clients should be notified simultaneously, so each RPC needs to be made in its own concurrent thread. This can work, but is getting very complicated very fast.\n\n[*Messaging*](Messaging.html) greatly simplifies this problem. With [*Messaging*](Messaging.html), we can define separate channels for the different types of pricing data. Then, when a Gateway gets a new piece of data, it will add a message containing that data to the [*Publish-Subscribe Channel*](PublishSubscribeChannel.html) for that data type. Meanwhile, all clients interested in a certain type of data will listen on the channel for that type. In this way, the Gateways can easily send out new data to whomever is interested, without needing to know how many listener applications there are or what they are.\n\nThe clients still need to be able to invoke behavior in the Gateways as well. Since there are ever only two Gateways, and the client can probably block while the method is invoked synchronously, these client-to-Gateway invocations can fairly easily be implemented using RPC. However, since we are already using messaging for Gateway-to-client communication, messages are probably just as good a way to implement client-to-Gateway communication as well.\n\nTherefore, all communication between the Gateways and the clients will be accomplished through messaging. Because all of the components are written in Java, JMS presents an easy choice for as the messaging system. This is effectively creating a [*Message Bus*](MessageBus.html) or an architecture that will make it possible for future systems to integrate with the current system with little or no changes to the messaging infrastructure. This way, the business functionality of the application can be easily used by other application the bank develops.\n\n*Java Components Communicating with JMS*\n\nJMS is simply a specification and we need to decide on a JMS-compliant messaging system. We decided to use IBM MQSeries JMS because the bank is an “IBM shop,” using WebSphere application servers and many other IBM products. As a result, we will use MQSeries since we already have a support infrastructure in place and a site license of the product.\n\nThe next question is how to connect the MQSeries messaging system with the standalone C++ Contribution server and the TIBCO based Market Data and Analytics Engine servers. We need a way for the MQSeries consumers to have access to the TIB messages. But how? Perhaps we could use the [*Message Translator*](MessageTranslator.html) pattern to translate TIB messages into MQSeries messages. Although the C++ client for MQSeries serves as a [*Message Translator*](MessageTranslator.html), using it would sacrifice JMS server independence. And although TIBCO does have a Java API, the customer architect and manager have rejected it. As a result, the [*Message Translator*](MessageTranslator.html) approach has to be abandoned.\n\nThe bridge from the TIB server to the MQSeries server requires communication between C++ and Java. We could use CORBA, but then what about the messaging? A closer look at the [*Message Translator*](MessageTranslator.html) pattern shows it is related to the [*Channel Adapter*](ChannelAdapter.html) in its use of communication protocols. The heart of a [*Channel Adapter*](ChannelAdapter.html) is to connect non-messaging systems to messaging systems. A pair of channel adapters that connects two messaging systems is a [*Messaging Bridge*](MessagingBridge.html).\n\nThe purpose of a [*Messaging Bridge*](MessagingBridge.html) is to transfer messages from one messaging system to another. This is exactly what we are doing with the added complexity of the intra-language Java to C++ communication. We can implement the cross language [*Messaging Bridge*](MessagingBridge.html) using a combination of [*Channel Adapter*](ChannelAdapter.html)s and CORBA. We will build two lightweight [*Channel Adapter*](ChannelAdapter.html) servers, one in C++ managing communication with the TIB, and one in Java managing communication with JMS. These two [*Channel Adapter*](ChannelAdapter.html), which are [*Message Endpoint*](MessageEndpoint.html)s themselves, will communicate with each other via CORBA. Like our choice for MQSeries, we will use CORBA rather than JNI since it is a company standard. The messaging bridge implements the effectively simulated message translation between seemingly incompatible messaging systems and different languages.\n\n*Message Translator using Channel Adapters*\n\nThe next diagram shows the current system design including the Gateways and other components. This is a good example of pattern application. We combined two [*Channel Adapter*](ChannelAdapter.html)s with a non-messaging protocol to implement the [*Message Translator*](MessageTranslator.html) pattern, effectively using one pattern to implement another pattern. Additionally, we changed the [*Channel Adapter*](ChannelAdapter.html)s' context to link two messaging systems with a non-messaging cross language translation protocol rather than connecting a messaging system to a non-messaging system.\n\n*The current system with the Channel Adapters*\n\n## Structuring Channels\n\nA key to working with patterns is not only knowing when to use which pattern, but also how to most effectively use it. Each pattern implementation has to take into account specifics of the technology platform as well as other design criteria. This section applies the same discovery process to find the most efficient use of the [*Publish-Subscribe Channel*](PublishSubscribeChannel.html) in the context of the market data server communicating with the analytics engine.\n\nReal time market data originates with market data feed, a C++ server that broadcasts market data on the TIB. The market data feed uses a separate [*Publish-Subscribe Channel*](PublishSubscribeChannel.html) for each bond it is publishing prices for. This may seem a little extreme since each new bond needs its own new channel. But this is not so severe since you do not actually need to create channels in TIBCO. Rather, channels are referenced by a hierarchical set of topic names called subjects. The TIBCO server then filters a single message flow by subject, sending each unique subject to a single virtual channel. The result of which is a very lightweight message channel.\n\nWe could create a system that publishes on a few channels and subscribers could listen only for prices they are interested in. This would require subscribers to use a [*Message Filter*](Filter.html) or [*Selective Consumer*](MessageSelector.html) to filter the entire data flow for interesting bond prices, deciding whether each message should be processed as it is received. Given that the market data is published on bond-dedicated channels, subscribers can register for updates on a series of bonds. This effectively allows subscribers to \"filter\" by selectively subscribing to channels and only receiving updates of interest rather than deciding after the message is received. It is important to note that using multiple channels to avoid filtering is a nonstandard use of messaging channels. In context of the TIBCO technology however, we are really deciding whether to implement or own filters or utilize the channel filtering built into TIBCO -- rather than whether to use so many channels.\n\nThe next component we need to design is the analytics engine, another C++/TIB server that will modify the market data and rebroadcast it to the TIB. Although it is out of the scope of our Java/JMS development, we are working closely with the C++ team to design it since we are the analytics engine's primary 'customer'. The problem at hand is to find the channel structure that most efficiently rebroadcast the newly modified market data.\n\nSince we already have one dedicated [*Message Channel*](MessageChannel.html) per bond inherited from the market data price feed, it would be logical to modify the market data and rebroadcast the modified market data on the bond dedicated [*Message Channel*](MessageChannel.html). But this will not work since the analytics modifying the bonds prices are trader specific. If we rebroadcast the modified data on the bond [*Message Channel*](MessageChannel.html), we will destroy the data integrity by replacing generic market data with trader specific data. On the other hand, we could have a different message type for trader specific market data that we publish on the same channel allowing subscribers to decide which message they are interested in to avoid destroying the data integrity. But then clients will have to implement their own filters to separate out messages for other traders. Additionally, there will a substantial increase in messages received by subscribers, placing an unnecessary burden on them.\n\nThere are two options:\n\n1. One Channel per Trader: Each trader has a designated channel for the modified market data. This way, the original market data remains intact and each trader application can listen to its specific traders Message Channel for the modified price updates.\n2. One Channel per trader per Bond: Create one Message Channel per-trader per-bond solely for the modified market data of that bond. For example, the market data for bond ABC would be published on channel \"Bond ABC\" while the modified market data for trader A would be published on Message Channel \"Trader A, Bond ABC\", modified market data for trader B on \"Trader B, Bond ABC,\" and so on.\n\n*One channel per trader* \n *One channel per bond per trader*\n\nThere are advantages and disadvantages to each approach. The per-bond approach, for example, uses a lot more [*Message Channel*](MessageChannel.html). In the worst-case scenario, the number of [*Message Channel*](MessageChannel.html) will be the number of bonds total multiplied by the number of traders. We can put upper bounds on the number of channels that will be created since we know that there are only around 20 traders and they never price more than a couple hundred bonds. This puts the upper limit below the 10,000 range, which is not so outlandish compared to the nearly 100,000 [*Message Channel*](MessageChannel.html) the market data price feed is using. Also, since we are using the TIB and [*Message Channel*](MessageChannel.html) are quite inexpensive, the number of [*Message Channel*](MessageChannel.html)s is not a severe issue. On the other hand, the sheer number of [*Message Channel*](MessageChannel.html)s could be a problem from a management perspective. Every time a bond is added a channel for each trader must be maintained. This could be severe in a very dynamic system. Our system, however, is essentially static. It also has an infrastructure for automatically managing [*Message Channel*](MessageChannel.html)s. This combined with the inherited architecture of a legacy component using a similar approach minimizes the downside. This is not to say we should make an unnecessarily excessive number of [*Message Channel*](MessageChannel.html)s. Rather, we can implement an architectural approach that uses a large number of [*Message Channel*](MessageChannel.html)s when there is a reason.\n\nAnd there is a reason in this case that comes down to the location of logic. If we implement the per trader approach, the Analytics Engine needs logic to group input and output channels. This is because the input channels from the Analytics Engine are per bond and the output [*Message Channel*](MessageChannel.html)s would be per trader, requiring the Analytics Engine to route all analytics input from multiple bonds for a particular trader to a trader specific output [*Message Channel*](MessageChannel.html). This effectively turns the analytics engine into a [*Content-Based Router*](ContentBasedRouter.html) to implement custom routing logic for our application.\n\nFollowing the [*Message Bus*](MessageBus.html) structure, the Analytics Engine is a generic server that could be used by several other systems in the. So we don’t want to cloud it with system specific functionality. On the other hand, the per-bond approach works since the idea of a trader owning the analytics output of bond prices is a company accepted practice. The per-bond approach keeps the [*Message Channel*](MessageChannel.html) separation of the market data feed intact, while adding several more [*Message Channel*](MessageChannel.html)s. Before we reach the client, we want a [*Content-Based Router*](ContentBasedRouter.html) to combine these several channels into a manageable number of channels. We don’t want the client application running on the trader’s desktop to be listening to thousands or tens of thousands of [*Message Channel*](MessageChannel.html)s. Now the question becomes where to put the [*Content-Based Router*](ContentBasedRouter.html). We could simply have the C++/TIB [*Channel Adapter*](ChannelAdapter.html) forward all of the messages to the Pricing Gateway on a single [*Message Channel*](MessageChannel.html). This is bad for two reasons; we would be splitting up the business logic between C++ and Java, and we would lose the benefit of the separate [*Message Channel*](MessageChannel.html)s on the TIB side allowing us to avoid filtering later in the data flow. Looking at our Java components, we could either place it in the Pricing Gateway or create an intermediary component between the Pricing Gateway and the client.\n\nIn theory, if we persisted the bond-based separation of [*Message Channel*](MessageChannel.html)s all the way to the client, the Pricing Gateway would rebroadcast pricing information with the same channel structure as the Pricing Gateway and Analytics Engine. This means a duplication of all of the bond dedicated TIB channels in JMS. Even if we create an intermediary component between the Pricing Gateway and the client, the Pricing Gateway will still have to duplicate all of the channels in JMS. On the other hand, implementing logic directly in the Pricing Gateway allows us to avoid duplicating the large number of channels in JMS—allowing us to create a much smaller number of channels in the order of one per trader. The Pricing Gateway registers itself through the C++/TIB [*Channel Adapter*](ChannelAdapter.html) as a consumer for each bond of every trader in the system. Then the Pricing Gateway will forward each specific client only the messages related to that particular trader. This way, we only use a small number of [*Message Channel*](MessageChannel.html)s on the JMS end, while maximizing the benefit of the separation on the TIB end.\n\n*The complete Market Data Flow to the client*\n\nThe [*Message Channel*](MessageChannel.html) layout discussion is a good example of how integrating patterns is important. The goal here was to figure out how to effectively use the [*Message Channel*](MessageChannel.html)s. Saying you use a pattern isn’t enough. You need to figure out how to best implement it and incorporate into your system to solve the problems at hand. Additionally, this example shows business forces in action. If we could implement business logic in any of our components, we could have gone with the per trader approach and implemented an overall more simple approach with many less channels.\n\n## Selecting a Message Channel?\n\nNow that we know the mechanics of the communication between the Java/JMS components and the C++/ TIBCO components, and we have seen some [*Message Channel*](MessageChannel.html) structuring, we need to decide which type of JMS [*Message Channel*](MessageChannel.html)s the Java components should use to communicate. Before we can choose between the different Message Channels available in JMS, let’s look at the high level message flow of the system. We have two gateways (Pricing and Contribution) communicating with the client. Market data flows to the client from the Pricing Gateway which sends it out to the Contribution Gateway. The client application sends message to the Pricing Gateway to alter the analytics being applied to each bond. The Contribution Gateway also sends messages to the Client application relaying the status of the price updates to the different trading venues.\n\n*The system message flow*\n\nThe JMS specification describes two [*Message Channel*](MessageChannel.html) types, [*Point-to-Point Channel*](PointToPointChannel.html) (JMS Queue) and [*Publish-Subscribe Channel*](PublishSubscribeChannel.html) (JMS Topic). Recall that the case for using publish-subscribe is to enable all interested consumers to receive a message while the case for using point-to-point is to ensure that only one eligible consumer receives a particular message.\n\nMany systems would simply broadcast messages to all client applications, leaving each individual client application to decide for itself whether or not to process a particular message. This will not work for our application since there are a large number of market data messages being sent to each client application. If we broadcast market data updates to uninterested trader, we will be unnecessarily wasting client processor cycles deciding whether or not to process a market data update.\n\n[*Point-to-Point Channel*](PointToPointChannel.html)s initially sound like a good choice since the clients are sending messages to unique servers and visa versa. But it was a business requirement that traders may be logged in to multiple machines at the same time. If we have a trader logged in at two workstations simultaneously and a point-to-point price update is sent, only one of the two client applications will get the message. This is because only one consumer on a [*Point-to-Point Channel*](PointToPointChannel.html) can receive a particular message. Notice that only the first of each group of a trader's client applications receives the message.\n\n*Point-to-Point Messaging for Price Updates*\n\nWe could solve this using the [*Recipient List*](RecipientList.html) pattern, which publishes messages to a list of intended recipients, guaranteeing that only clients in the recipient list will receive messages. Using this pattern, the system could create recipient lists with all client application instances related to each trader. Sending a message related to a particular trader would in turn send the message to each application in the recipient list. This guarantees all client application instances related to a particular trader would receive the message. The downside of this approach is that it requires quite a bit of implementation logic to manage the recipients and dispatch messages.\n\n*Recipient List for Price Updates*\n\nEven though point-to-point could be made to work, let’s see if there is a better way. Using [*Publish-Subscribe Channel*](PublishSubscribeChannel.html)s, the system could broadcast messages on trader specific channels rather than client application specific channels. This way, all client applications processing messages for a single trader would receive and process the message.\n\n*Publish-Subscribe Messaging for Price Updates*\n\nThe downside of using [*Publish-Subscribe Channel*](PublishSubscribeChannel.html)s is that unique message processing is not guaranteed with the server components. It would be possible for multiple instances of a server component to be instantiated and each instance process the same message, possibly sending out invalid prices.\n\nRecalling the system message flow, only a single communication direction is satisfactory with each [*Message Channel*](MessageChannel.html). Server-to-client communication with publish-subscribe is satisfactory while client-to-server communication is not and client-server communication with point-to-point is satisfactory while server-client is not. Since there is no need to use the same [*Message Channel*](MessageChannel.html) in both directions, we can use each [*Message Channel*](MessageChannel.html) only one direction. Client-to-server communication will be implemented with point-to-point while server-to-client communication will be implemented with publish-subscribe. Using this combination of [*Message Channel*](MessageChannel.html)s, the system benefits from direct communication with the server components using point-to-point messaging and the multicast nature of publish-subscribe without either of the drawbacks.\n\n*Message flow with Channel Types*\n\n## Problem Solving With Patterns\n\nPatterns are tools and collections of patterns are toolboxes. They help solve problems. Some think that patterns are only useful during design. Following the toolbox analogy, this is like saying that tools are only useful when you build a house, not when you fix it. The fact is that patterns are a useful tool throughout a project when applied well. In the following sections we will use the same pattern exploration process we used in the previous section to solve problems in our now working system.\n\n## Flashing Market Data Updates\n\nTraders want table cells to flash when new market data is received for a bond, clearly indicating changes. The Java client receives messages with new data which triggers a client data cache update and eventually flashing in the table. The problem is that updates come quite frequently. The GUI thread stack is becoming overloaded and eventually freezing the client since it can’t respond to user interaction. We will assume that the flashing is optimized and concentrate on the data flow of messages through the updating process. An examination of performance data shows the client application is receiving several updates a second; some updates occurred less than a millisecond apart. Two patterns that seem like they could help slow down the message flow are Aggregator and Message Filter.\n\nA first thought is to implement a [*Message Filter*](Filter.html) to control the speed of the message flow by throwing out updates received a small amount of time after the reference message. As an example, lets say that we are going to ignore messages within 5 milliseconds of each other. The [*Message Filter*](Filter.html) could cache the time of the last acceptable message and throw out anything received within the next 5 milliseconds. While other applications may not be able to withstand data loss to such an extent, this is perfectly acceptable in our system due to the frequency of price updates.\n\n*Time based Message Filter*\n\nThe problem with this approach is that not all data fields are updated at the same time. Each bond has approximately 50 data fields displayed to the user including price. We realize that not every field is updated in every message. If the system ignores consecutive messages, it may very well be throwing out important data.\n\nThe other pattern of interest is the [*Aggregator*](Aggregator.html). The [*Aggregator*](Aggregator.html) is used to manage the reconciliation of multiple, related messages into a single message, potentially reducing the message flow. The [*Aggregator*](Aggregator.html) could keep a copy of the bond data from the first aggregated message, then update only new or changed fields successive messages. Eventually the aggregated bond data will be passed in a message to the client. For now, lets assume that the Aggregator will send a message every 5 milliseconds like the [*Message Filter*](Filter.html). Later, we'll explore another alternative.\n\n*Aggregator with partial successive updates*\n\nThe [*Aggregator*](Aggregator.html), like any other pattern, is not a silver bullet; it has its pluses and minuses that need to be explored. One potential minus is that implementing an [*Aggregator*](Aggregator.html) would reduce the message traffic by a great amount in our case only if many messages are coming in within a relatively short time regarding the same bond. On the other hand, we would accomplish nothing if the Java client only receives updates for one field across all of the traders bonds. For example, if we receive 1000 messages in a specified timeframe with 4 bonds of interest, we would reduce the message flow from 1000 to 4 messages over that timeframe. Alternatively, if we receive 1000 messages in the same timeframe with 750 bonds of interest, we will have reduced the message flow from 1000 to 750 messages; relatively little gain for the amount of effort. A quick analysis of the message updates proves that the Java client receives many messages updating fields of the same bond, and therefore related messages. So, [*Aggregator*](Aggregator.html) is in fact a good decision.\n\nWhat's left is to determine how the [*Aggregator*](Aggregator.html) will know when to send a message it has been aggregating. The pattern describes a few algorithms for the [*Aggregator*](Aggregator.html) to know when to send the message. These include algorithms to cause the aggregator to send out its contents after a certain amount of time has elapsed, after all required fields in a data set have been completed, and others. The problem with all of these approaches is that the aggregator is controlling the message flow, not the client. And the client is the major bottleneck in this case, not the message flow.\n\nThis is because the [*Aggregator*](Aggregator.html) is assuming the consumers of its purged messages (the client application in this case) are [*Event-Driven Consumer*](EventDrivenConsumer.html)s, or consumers that rely on events from an external source. We need to turn the client into a [*Polling Consumer*](PollingConsumer.html), or a consumer that continuously checks for messages, so the client application can control the message flow. We can do this by creating a background thread that continuously cycles through the set of bonds and updates and flashes any changes that have occurred since the last iteration. This way, the client controls when messages are received and as a result, guarantees that it will never become overloaded with messages during high update periods. We can easily implement this by sending a [*Command Message*](CommandMessage.html) to the [*Aggregator*](Aggregator.html) initiating an update. The [*Aggregator*](Aggregator.html) will respond with a [*Document Message*](DocumentMessage.html) containing the set of updated fields that the client will process.\n\nThe choice of [*Aggregator*](Aggregator.html) over [*Message Filter*](Filter.html) is clearly a decision based solely on the business requirements of our system. Each could help us solve our performance problems, but using the [*Message Filter*](Filter.html) would solve the problem at cost of the system data integrity.\n\n## Major Production Crash\n\nWith the performance of the flashing fixed, we are now in production. One day the entire system goes down. MQSeries crashes, bringing several components down with it. We struggle with the problem for a while and finally trace it back to the MQSeries dead letter queue (an implementation of the [*Dead Letter Channel*](DeadLetterChannel.html)). The queue grows so large that it brings down the entire server. After exploring the messages in the dead letter queue we find they are all expired market data messages. This is caused by “slow consumers,” or consumers that do not process messages fast enough. While messages are waiting to be processed, they time out (see the [*Message Expiration*](MessageExpiration.html) pattern) and are sent to the [*Dead Letter Channel*](DeadLetterChannel.html). The excessive number of expired market data messages in the dead letter queue is a clear indication that the message flow is too great – messages expire before the target application can consume them. We need to fix the message flow and we turn to patterns for help slowing down the message flow.\n\n*The bottleneck*\n\nA reasonable first step is to explore solving this problem with the [*Aggregator*](Aggregator.html) as we recently used this pattern to solve the similar flashing market data control rate problem. The system design relies on the client application to immediately forward market data update messages to the trading venues. This means the system cannot wait to collect messages and aggregate them. So the [*Aggregator*](Aggregator.html) must be abandoned.\n\nThere are two other patterns that deal with the problem of consuming messages concurrently: [*Competing Consumers*](CompetingConsumers.html) and [*Message Dispatcher*](MessageDispatcher.html). Starting with [*Competing Consumers*](CompetingConsumers.html), the benefit of this pattern is the parallel processing of incoming messages. This is accomplished using several consumers on the same channel. Only one consumer processes each incoming message leaving the others to process successive messages. [*Competing Consumers*](CompetingConsumers.html), however, will not work for us since we are using [*Publish-Subscribe Channel*](PublishSubscribeChannel.html)s in server-to-client communication. [*Competing Consumers*](CompetingConsumers.html) on a [*Publish-Subscribe Channel*](PublishSubscribeChannel.html) channel means that all consumers process the same incoming message. This results in more work without any gain and completely misses the goal of the pattern. This approach also has to be abandoned.\n\nOn the other hand, the [*Message Dispatcher*](MessageDispatcher.html) describes an approach whereby you add several consumers to a ‘pool’. Each consumer can run its own execution thread. One main Message Consumer listens to the Channel and delegates the message on to an unoccupied Message Consumer in the pool and immediately returns to listening on the [*Message Channel*](MessageChannel.html). This achieves the parallel processing benefit of [*Competing Consumers*](CompetingConsumers.html), but works on [*Publish-Subscribe Channel*](PublishSubscribeChannel.html)s.\n\n*The Message Dispatcher in context*\n\nImplementing this in our system is simple. We create a single JMSListener called the Dispatcher, which contains a collection of other JMSListeners called Performers. When the onMessage method of the Dispatcher is called, it in turn picks a Performer out of the collection to actually process the message. The result of which is a Message Listener (the Dispatcher) that always returns immediately. This guarantees a steady flow of message processing regardless of the message flow rate. Additionally, this works equally well on a [*Publish-Subscribe Channel*](PublishSubscribeChannel.html)s as it does on a [*Point-to-Point Channel*](PointToPointChannel.html)s. With this infrastructure, messages can be received by the client application at almost any rate. If the client application is still slow to process the message after receiving them, the client application can deal with the delayed processing and potentially outdated market data rather than the messages expiring in the JMS [*Message Channel*](MessageChannel.html).\n\nThe crash discussed in this section and the fix using the [*Message Dispatcher*](MessageDispatcher.html) is an excellent example of the limits of applying patterns. We encountered a performance problem based on a design flaw not allowing the client to process messages in parallel. This greatly improved the problem, but did not completely fix it. This is because the real problem was the client becoming a bottleneck. This couldn’t be fixed with a thousand patterns. We later addressed this problem by refactoring the message flow architecture to route messages directly from the Pricing Gateway to the Contribution Gateway. So patterns can help design and maintain a system, but don’t necessarily make up for poor upfront design.\n\n## Summary\n\nThroughout this chapter, we have applied patterns to several different aspects of a bond trading system including solving initial upfront design problems and fixing a nearly job threatening production crash with patterns. We also saw these patterns as they already exist in third party product, legacy components, and our JMS and TIBCO messaging systems. Most importantly, these are real problems with the same types of architectural, technical and business problems we experience as we design and maintain our own systems. Hopefully reading about applying patterns to this system helps give you a better understanding of the patterns as well as how to apply them to your own systems.\n\n## Integration Pattern Language\n\n[Message Construct.](MessageConstructionIntro.html)\n\n[Message](Message.html)\n\n[Command Message](CommandMessage.html)\n\n[Document Message](DocumentMessage.html)\n\n[Event Message](EventMessage.html)\n\n[Request-Reply](RequestReply.html)\n\n[Return Address](ReturnAddress.html)\n\n[Correlation Identifier](CorrelationIdentifier.html)\n\n[Message Sequence](MessageSequence.html)\n\n[Message Expiration](MessageExpiration.html)\n\n[Format Indicator](FormatIndicator.html)\n\n[Message Routing](MessageRoutingIntro.html)\n\n[Pipes-and-Filters](PipesAndFilters.html)\n\n[Message Router](MessageRouter.html)\n\n[Content-based Router](ContentBasedRouter.html)\n\n[Message Filter](Filter.html)\n\n[Dynamic Router](DynamicRouter.html)\n\n[Recipient List](RecipientList.html)\n\n[Splitter](Sequencer.html)\n\n[Aggregator](Aggregator.html)\n\n[Resequencer](Resequencer.html)\n\n[Composed Msg. Processor](DistributionAggregate.html)\n\n[Scatter-Gather](BroadcastAggregate.html)\n\n[Routing Slip](RoutingTable.html)\n\n[Process Manager](ProcessManager.html)\n\n[Message Broker](MessageBroker.html)\n\n[Message\nTransformation](MessageTransformationIntro.html)\n\n[Message Translator](MessageTranslator.html)\n\n[Envelope Wrapper](EnvelopeWrapper.html)\n\n[Content Enricher](DataEnricher.html)\n\n[Content Filter](ContentFilter.html)\n\n[Claim Check](StoreInLibrary.html)\n\n[Normalizer](Normalizer.html)\n\n[Canonical Data Model](CanonicalDataModel.html)\n\n[Messaging Endpoints](MessagingEndpointsIntro.html)\n\n[Message Endpoint](MessageEndpoint.html)\n\n[Messaging Gateway](MessagingGateway.html)\n\n[Messaging Mapper](MessagingMapper.html)\n\n[Transactional Client](TransactionalClient.html)\n\n[Polling Consumer](PollingConsumer.html)\n\n[Event-driven Consumer](EventDrivenConsumer.html)\n\n[Competing Consumers](CompetingConsumers.html)\n\n[Message Dispatcher](MessageDispatcher.html)\n\n[Selective Consumer](MessageSelector.html)\n\n[Durable Subscriber](DurableSubscription.html)\n\n[Idempotent Receiver](IdempotentReceiver.html)\n\n[Service Activator](MessagingAdapter.html)\n\n[Messaging Channels](MessagingChannelsIntro.html)\n\n[Message Channel](MessageChannel.html)\n\n[Point-to-Point Channel](PointToPointChannel.html)\n\n[Publish-Subscr. Channel](PublishSubscribeChannel.html)\n\n[Datatype Channel](DatatypeChannel.html)\n\n[Invalid Message Channel](InvalidMessageChannel.html)\n\n[Dead Letter Channel](DeadLetterChannel.html)\n\n[Guaranteed Delivery](GuaranteedMessaging.html)\n\n[Channel Adapter](ChannelAdapter.html)\n\n[Messaging Bridge](MessagingBridge.html)\n\n[Message Bus](MessageBus.html)\n\n[Systems Mgmt.](SystemManagementIntro.html)\n\n[Control Bus](ControlBus.html)\n\n[Detour](Detour.html)\n\n[Wire Tap](WireTap.html)\n\n[Message History](MessageHistory.html)\n\n[Message Store](MessageStore.html)\n\n[Smart Proxy](SmartProxy.html)\n\n[Test Message](TestMessage.html)\n\n[Channel Purger](ChannelPurger.html)", "znaku_textu": 42469, "slov": 6340, "odkazu": 107, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 14:56:18", "sha256": "4408d4d7e856507b20eca4a1805096d6deb897f2a766c911edd4caf1c931dce8", "hloubka": 3, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "https://www.architectelevator.com/book", "https://www.cloudstrategybook.com/", "https://www.platformstrategybook.info/"]} {"url": "http://www.enterpriseintegrationpatterns.com/patterns/messaging/BroadcastAggregate.html", "titulek": "Scatter-Gather - Enterprise Integration Patterns", "h1": "", "popis": "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?", "klicova_slova": "Scatter-Gather,integration, messaging, events, patterns, event-driven, coupling, eai, middleware, application integration, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns", "og:title": "Scatter-Gather - Enterprise Integration Patterns", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/BroadcastAggregate.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/BroadcastAggregate.gif"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Example: Serverless Loan Broker on AWSNEW"}, {"uroven": 2, "text": "Example: Mulesoft ESBNEW"}, {"uroven": 2, "text": "Example: Azure Durable Functions (Fan out/fan in)NEW"}, {"uroven": 2, "text": "Integration Pattern Language"}], "markdown": "| | Scatter-Gather[Messaging Patterns](index.html) » [Message Routing](MessageRoutingIntro.html) | [Contents](toc.html)[⇐ Prev](DistributionAggregate.html)[Next ⇒](RoutingTable.html) |\n| --- | --- | --- |\n\nIn the order processing example introduced in the previous patterns , each order item that is not currently in stock could be supplied by one of multiple external suppliers. However, the suppliers may or may not have the respective item in stock themselves, they may charge a different price and may be able to supply the part by a different date. To fill the order in the best way possible, we should request quotes from all suppliers and decide which one provides us with the best term for the requested item.\n\nHow do you maintain the overall message flow when a message needs to be sent to multiple recipients, each of which may send a reply?\n\nUse a *Scatter-Gather* that broadcasts a message to multiple recipients and re-aggregates the responses back into a single message\n\nThe *Scatter-Gather* routes a request message to the a number of recipients. It then uses an [*Aggregator*](Aggregator.html) to collect the responses and distill them into a single response message.\n\nThere are two variants of the *Scatter-Gather* that use different mechanisms to send the request messages to the intended recipients:\n\n- **Distribution** via a [*Recipient List*](RecipientList.html) allows the *Scatter-Gather* to control the list of recipients but requires the *Scatter-Gather* to be aware of each recipient's message channel.\n- **Auction** -style *Scatter-Gather* s use a [*Publish-Subscribe Channel*](PublishSubscribeChannel.html) to broadcast the request to any interested participant. This option allows the *Scatter-Gather* to use a single channel but at the same time relinquishes control.\n\n...\nRead the entire pattern in the book [Enterprise Integration Patterns](/books1.html)\n\n## Example: Serverless Loan Broker on AWS[NEW](/ramblings/eip1_examples_updated.html)\n\nThe [serverless Loan Broker example](/ramblings/loanbroker_stepfunctions.html) includes a *Scatter-Gather* that routes requests for a loan quote to interested banks and selects the best offer from the incoming responses. The example implements both a a [*Recipient List*](RecipientList.html) using AWS Step Functions' Map state (see [Part 2](/ramblings/loanbroker_stepfunctions_recipient_list.html)) and a [*Publish-Subscribe Channel*](PublishSubscribeChannel.html) using the Amazon Simple Queuing Service (SQS) (see [Part 3](https://www.enterpriseintegrationpatterns.com/ramblings/loanbroker_stepfunctions_pubsub.html)).\n\n## Example: Mulesoft ESB[NEW](/ramblings/eip1_examples_updated.html)\n\nMulesoft's enterprise service bus includes a *Scatter-Gather* construct, described as [Scatter-Gather Router](https://docs.mulesoft.com/mule-runtime/4.3/scatter-gather-concept) and can be configured using the scatter-gather element.\n\nAlthough each route is independently executed, the Scatter-Gather Router configures a pre-defined number of paths, so it doesn't broadcast to an unknown number of recipients. Knowing all recipients makes the completeness condition of \"Wait for all\" (see [*Aggregator*](Aggregator.html)) a natural choice. Route errors propagate to the Scatter-Gather, which in turn flags an error, passing on any results that were successfully passed by the individual routes. The aggregation strategy is concatenation, turning single variable values into a list of all route results.\n\n## Example: Azure Durable Functions (Fan out/fan in)[NEW](/ramblings/eip1_examples_updated.html)\n\nDurable functions, which are used to orchestrate serverless Azure Functions, make it easy to implement *Scatter-Gather*, following the [Fan out/fan in](https://docs.microsoft.com/en-us/azure/azure-functions/durable/durable-functions-overview?tabs=csharp#fan-in-out) construct. which is supported by the WhenAll method, which waits for all functions to execute:\n\n**Fan out/fan in with Azure Durable Functions**\n\n```\ndef orchestrator_function(context: df.DurableOrchestrationContext):\n work_batch = yield context.call_activity(\"GetVendors\", None)\n parallel_tasks = [ context.call_activity(\"Vendor\", b) for b in work_batch ]\n outputs = yield context.task_all(parallel_tasks)\n total = sum(outputs)\n \n```\n\nThe number of recipients can be calculated at run-time, and the completeness condition can support a variety of strategies, including \"Wait for all\" (Task.WhenAll), \"First Best\" (Task.WhenAny), or \"Fixed Timeout\" (Task.WaitAll).\n\n**Related patterns:**\n\n[*Aggregator*](Aggregator.html), [*Introduction to Composed Messaging Examples*](ComposedMessagingExample.html), [*Asynchronous Implementation with MSMQ*](ComposedMessagingMSMQ.html), [*Asynchronous Implementation with TIBCO ActiveEnterprise*](ComposedMessagingTIBCO.html), [*Composed Message Processor*](DistributionAggregate.html), [*Publish-Subscribe Channel*](PublishSubscribeChannel.html), [*Recipient List*](RecipientList.html), [*Return Address*](ReturnAddress.html), [*Splitter*](Sequencer.html)\n\n---\n\n## Integration Pattern Language\n\n[Message Construct.](MessageConstructionIntro.html)\n\n[Message](Message.html)\n\n[Command Message](CommandMessage.html)\n\n[Document Message](DocumentMessage.html)\n\n[Event Message](EventMessage.html)\n\n[Request-Reply](RequestReply.html)\n\n[Return Address](ReturnAddress.html)\n\n[Correlation Identifier](CorrelationIdentifier.html)\n\n[Message Sequence](MessageSequence.html)\n\n[Message Expiration](MessageExpiration.html)\n\n[Format Indicator](FormatIndicator.html)\n\n[Message Routing](MessageRoutingIntro.html)\n\n[Pipes-and-Filters](PipesAndFilters.html)\n\n[Message Router](MessageRouter.html)\n\n[Content-based Router](ContentBasedRouter.html)\n\n[Message Filter](Filter.html)\n\n[Dynamic Router](DynamicRouter.html)\n\n[Recipient List](RecipientList.html)\n\n[Splitter](Sequencer.html)\n\n[Aggregator](Aggregator.html)\n\n[Resequencer](Resequencer.html)\n\n[Composed Msg. Processor](DistributionAggregate.html)\n\n[Scatter-Gather](BroadcastAggregate.html)\n\n[Routing Slip](RoutingTable.html)\n\n[Process Manager](ProcessManager.html)\n\n[Message Broker](MessageBroker.html)\n\n[Message\nTransformation](MessageTransformationIntro.html)\n\n[Message Translator](MessageTranslator.html)\n\n[Envelope Wrapper](EnvelopeWrapper.html)\n\n[Content Enricher](DataEnricher.html)\n\n[Content Filter](ContentFilter.html)\n\n[Claim Check](StoreInLibrary.html)\n\n[Normalizer](Normalizer.html)\n\n[Canonical Data Model](CanonicalDataModel.html)\n\n[Messaging Endpoints](MessagingEndpointsIntro.html)\n\n[Message Endpoint](MessageEndpoint.html)\n\n[Messaging Gateway](MessagingGateway.html)\n\n[Messaging Mapper](MessagingMapper.html)\n\n[Transactional Client](TransactionalClient.html)\n\n[Polling Consumer](PollingConsumer.html)\n\n[Event-driven Consumer](EventDrivenConsumer.html)\n\n[Competing Consumers](CompetingConsumers.html)\n\n[Message Dispatcher](MessageDispatcher.html)\n\n[Selective Consumer](MessageSelector.html)\n\n[Durable Subscriber](DurableSubscription.html)\n\n[Idempotent Receiver](IdempotentReceiver.html)\n\n[Service Activator](MessagingAdapter.html)\n\n[Messaging Channels](MessagingChannelsIntro.html)\n\n[Message Channel](MessageChannel.html)\n\n[Point-to-Point Channel](PointToPointChannel.html)\n\n[Publish-Subscr. Channel](PublishSubscribeChannel.html)\n\n[Datatype Channel](DatatypeChannel.html)\n\n[Invalid Message Channel](InvalidMessageChannel.html)\n\n[Dead Letter Channel](DeadLetterChannel.html)\n\n[Guaranteed Delivery](GuaranteedMessaging.html)\n\n[Channel Adapter](ChannelAdapter.html)\n\n[Messaging Bridge](MessagingBridge.html)\n\n[Message Bus](MessageBus.html)\n\n[Systems Mgmt.](SystemManagementIntro.html)\n\n[Control Bus](ControlBus.html)\n\n[Detour](Detour.html)\n\n[Wire Tap](WireTap.html)\n\n[Message History](MessageHistory.html)\n\n[Message Store](MessageStore.html)\n\n[Smart Proxy](SmartProxy.html)\n\n[Test Message](TestMessage.html)\n\n[Channel Purger](ChannelPurger.html)", "znaku_textu": 7697, "slov": 766, "odkazu": 114, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/BroadcastAggregate.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 14:55:40", "sha256": "ed4e25c160ba5c6c908b79de8011ba8f69c26c40ccd92f7612903029b7db78e6", "hloubka": 3, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://docs.mulesoft.com/mule-runtime/4.3/scatter-gather-concept", "https://docs.microsoft.com/en-us/azure/azure-functions/durable/durable-functions-overview?tabs=csharp", "http://creativecommons.org/licenses/by/4.0/", "https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "https://www.architectelevator.com/book", "https://www.cloudstrategybook.com/", "https://www.platformstrategybook.info/"]} {"url": "http://www.enterpriseintegrationpatterns.com/patterns/messaging/CanonicalDataModel.html", "titulek": "Canonical Data Model - Enterprise Integration Patterns", "h1": "", "popis": "How can you minimize dependencies when integrating applications that use different data formats?", "klicova_slova": "Canonical Data Model,integration, messaging, events, patterns, event-driven, coupling, eai, middleware, application integration, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns", "og:title": "Canonical Data Model - Enterprise Integration Patterns", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/CanonicalDataModel.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/CanonicalDataModel.gif"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Integration Pattern Language"}], "markdown": "| | Canonical Data Model[Messaging Patterns](index.html) » [Message Transformation](MessageTransformationIntro.html) | [Contents](toc.html)[⇐ Prev](Normalizer.html)[Next ⇒](ComposedMessagingExample.html) |\n| --- | --- | --- |\n\nI am designing several applications to work together through [*Messaging*](Messaging.html). Each application has its own internal data format.\n\nHow can you minimize dependencies when integrating applications that use different data formats?\n\nTherefore, design a *Canonical Data Model* that is independent from any specific application. Require each application to produce and consume messages in this common format.\n\nThe *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.\n\nThe 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*.\n\n...\nRead the entire pattern in the book [Enterprise Integration Patterns](/books1.html)\n\n**Related patterns:**\n\n[*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)\n\n---\n\n## Integration Pattern Language\n\n[Message Construct.](MessageConstructionIntro.html)\n\n[Message](Message.html)\n\n[Command Message](CommandMessage.html)\n\n[Document Message](DocumentMessage.html)\n\n[Event Message](EventMessage.html)\n\n[Request-Reply](RequestReply.html)\n\n[Return Address](ReturnAddress.html)\n\n[Correlation Identifier](CorrelationIdentifier.html)\n\n[Message Sequence](MessageSequence.html)\n\n[Message Expiration](MessageExpiration.html)\n\n[Format Indicator](FormatIndicator.html)\n\n[Message Routing](MessageRoutingIntro.html)\n\n[Pipes-and-Filters](PipesAndFilters.html)\n\n[Message Router](MessageRouter.html)\n\n[Content-based Router](ContentBasedRouter.html)\n\n[Message Filter](Filter.html)\n\n[Dynamic Router](DynamicRouter.html)\n\n[Recipient List](RecipientList.html)\n\n[Splitter](Sequencer.html)\n\n[Aggregator](Aggregator.html)\n\n[Resequencer](Resequencer.html)\n\n[Composed Msg. Processor](DistributionAggregate.html)\n\n[Scatter-Gather](BroadcastAggregate.html)\n\n[Routing Slip](RoutingTable.html)\n\n[Process Manager](ProcessManager.html)\n\n[Message Broker](MessageBroker.html)\n\n[Message\nTransformation](MessageTransformationIntro.html)\n\n[Message Translator](MessageTranslator.html)\n\n[Envelope Wrapper](EnvelopeWrapper.html)\n\n[Content Enricher](DataEnricher.html)\n\n[Content Filter](ContentFilter.html)\n\n[Claim Check](StoreInLibrary.html)\n\n[Normalizer](Normalizer.html)\n\n[Canonical Data Model](CanonicalDataModel.html)\n\n[Messaging Endpoints](MessagingEndpointsIntro.html)\n\n[Message Endpoint](MessageEndpoint.html)\n\n[Messaging Gateway](MessagingGateway.html)\n\n[Messaging Mapper](MessagingMapper.html)\n\n[Transactional Client](TransactionalClient.html)\n\n[Polling Consumer](PollingConsumer.html)\n\n[Event-driven Consumer](EventDrivenConsumer.html)\n\n[Competing Consumers](CompetingConsumers.html)\n\n[Message Dispatcher](MessageDispatcher.html)\n\n[Selective Consumer](MessageSelector.html)\n\n[Durable Subscriber](DurableSubscription.html)\n\n[Idempotent Receiver](IdempotentReceiver.html)\n\n[Service Activator](MessagingAdapter.html)\n\n[Messaging Channels](MessagingChannelsIntro.html)\n\n[Message Channel](MessageChannel.html)\n\n[Point-to-Point Channel](PointToPointChannel.html)\n\n[Publish-Subscr. Channel](PublishSubscribeChannel.html)\n\n[Datatype Channel](DatatypeChannel.html)\n\n[Invalid Message Channel](InvalidMessageChannel.html)\n\n[Dead Letter Channel](DeadLetterChannel.html)\n\n[Guaranteed Delivery](GuaranteedMessaging.html)\n\n[Channel Adapter](ChannelAdapter.html)\n\n[Messaging Bridge](MessagingBridge.html)\n\n[Message Bus](MessageBus.html)\n\n[Systems Mgmt.](SystemManagementIntro.html)\n\n[Control Bus](ControlBus.html)\n\n[Detour](Detour.html)\n\n[Wire Tap](WireTap.html)\n\n[Message History](MessageHistory.html)\n\n[Message Store](MessageStore.html)\n\n[Smart Proxy](SmartProxy.html)\n\n[Test Message](TestMessage.html)\n\n[Channel Purger](ChannelPurger.html)", "znaku_textu": 5089, "slov": 428, "odkazu": 108, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/CanonicalDataModel.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 14:55:50", "sha256": "02992f61d7529d80300b901e152622f0e876669b52f49d035dba00745a2405f8", "hloubka": 3, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://creativecommons.org/licenses/by/4.0/", "https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "https://www.architectelevator.com/book", "https://www.cloudstrategybook.com/", "https://www.platformstrategybook.info/"]} {"url": "http://www.enterpriseintegrationpatterns.com/patterns/messaging/ChannelAdapter.html", "titulek": "Channel Adapter - Enterprise Integration Patterns", "h1": "", "popis": "How can you connect an application to the messaging system so that it can send and receive messages?", "klicova_slova": "Channel Adapter,integration, messaging, events, patterns, event-driven, coupling, eai, middleware, application integration, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns", "og:title": "Channel Adapter - Enterprise Integration Patterns", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/ChannelAdapter.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/ChannelAdapterSolution.gif"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Integration Pattern Language"}], "markdown": "Messaging Patterns\n\n[Messaging Patterns](index.html)\n\n- [Integration Styles](IntegrationStylesIntro.html)\n- [Messaging Systems](MessagingComponentsIntro.html)\n- [Messaging Channels](MessagingChannelsIntro.html)\n- [Message Construction](MessageConstructionIntro.html)\n- [Interlude: Simple Messaging](SimpleMessagingIntro.html)\n- [Message Routing](MessageRoutingIntro.html)\n- [Message Transformation](MessageTransformationIntro.html)\n- [Interlude: Composed Messaging](ComposedMessagingExample.html)\n- [Messaging Endpoints](MessagingEndpointsIntro.html)\n- [System Management](SystemManagementIntro.html)\n- Interlude: Systems Management Example\n- Integration Patterns in Practice\n- Concluding Remarks\n- Appendices\n\n| | Channel Adapter[Messaging Patterns](index.html) » [Messaging Channels](MessagingChannelsIntro.html) | [Contents](toc.html)[⇐ Prev](GuaranteedMessaging.html)[Next ⇒](MessagingBridge.html) |\n| --- | --- | --- |\n\nMany enterprises use [*Messaging*](Messaging.html) to integrate multiple, disparate applications.\n\nHow can you connect an application to the messaging system so that it can send and receive messages?\n\nUse a *Channel Adapter* that can access the application's API or data and publish messages on a channel based on this data, and that likewise can receive messages and invoke functionality inside the application.\n\nThe adapter acts as a messaging client to the messaging system and invokes applications functions via an application-supplied interface. This way, any application can connect to the messaging system and be integrated with other applications as long as it has a proper *Channel Adapter*.\n\nThe *Channel Adapter* can connect to different layers of the application's architecture, depending on that architecture and the data the messaging system needs to access.\n\n*A Channel Adapter Connecting to Different Layers of an Application*\n\n...\nRead the entire pattern in the book [Enterprise Integration Patterns](/books1.html)\n\n**Related patterns:**\n\n[*Canonical Data Model*](CanonicalDataModel.html), [*Message Channel*](MessageChannel.html), [*Introduction to Message Transformation*](MessageTransformationIntro.html), [*Message Translator*](MessageTranslator.html), [*Messaging*](Messaging.html), [*Messaging Bridge*](MessagingBridge.html), [*Transactional Client*](TransactionalClient.html)\n\n---\n\n## Integration Pattern Language\n\n[Message Construct.](MessageConstructionIntro.html)\n\n[Message](Message.html)\n\n[Command Message](CommandMessage.html)\n\n[Document Message](DocumentMessage.html)\n\n[Event Message](EventMessage.html)\n\n[Request-Reply](RequestReply.html)\n\n[Return Address](ReturnAddress.html)\n\n[Correlation Identifier](CorrelationIdentifier.html)\n\n[Message Sequence](MessageSequence.html)\n\n[Message Expiration](MessageExpiration.html)\n\n[Format Indicator](FormatIndicator.html)\n\n[Message Routing](MessageRoutingIntro.html)\n\n[Pipes-and-Filters](PipesAndFilters.html)\n\n[Message Router](MessageRouter.html)\n\n[Content-based Router](ContentBasedRouter.html)\n\n[Message Filter](Filter.html)\n\n[Dynamic Router](DynamicRouter.html)\n\n[Recipient List](RecipientList.html)\n\n[Splitter](Sequencer.html)\n\n[Aggregator](Aggregator.html)\n\n[Resequencer](Resequencer.html)\n\n[Composed Msg. Processor](DistributionAggregate.html)\n\n[Scatter-Gather](BroadcastAggregate.html)\n\n[Routing Slip](RoutingTable.html)\n\n[Process Manager](ProcessManager.html)\n\n[Message Broker](MessageBroker.html)\n\n[Message\nTransformation](MessageTransformationIntro.html)\n\n[Message Translator](MessageTranslator.html)\n\n[Envelope Wrapper](EnvelopeWrapper.html)\n\n[Content Enricher](DataEnricher.html)\n\n[Content Filter](ContentFilter.html)\n\n[Claim Check](StoreInLibrary.html)\n\n[Normalizer](Normalizer.html)\n\n[Canonical Data Model](CanonicalDataModel.html)\n\n[Messaging Endpoints](MessagingEndpointsIntro.html)\n\n[Message Endpoint](MessageEndpoint.html)\n\n[Messaging Gateway](MessagingGateway.html)\n\n[Messaging Mapper](MessagingMapper.html)\n\n[Transactional Client](TransactionalClient.html)\n\n[Polling Consumer](PollingConsumer.html)\n\n[Event-driven Consumer](EventDrivenConsumer.html)\n\n[Competing Consumers](CompetingConsumers.html)\n\n[Message Dispatcher](MessageDispatcher.html)\n\n[Selective Consumer](MessageSelector.html)\n\n[Durable Subscriber](DurableSubscription.html)\n\n[Idempotent Receiver](IdempotentReceiver.html)\n\n[Service Activator](MessagingAdapter.html)\n\n[Messaging Channels](MessagingChannelsIntro.html)\n\n[Message Channel](MessageChannel.html)\n\n[Point-to-Point Channel](PointToPointChannel.html)\n\n[Publish-Subscr. Channel](PublishSubscribeChannel.html)\n\n[Datatype Channel](DatatypeChannel.html)\n\n[Invalid Message Channel](InvalidMessageChannel.html)\n\n[Dead Letter Channel](DeadLetterChannel.html)\n\n[Guaranteed Delivery](GuaranteedMessaging.html)\n\n[Channel Adapter](ChannelAdapter.html)\n\n[Messaging Bridge](MessagingBridge.html)\n\n[Message Bus](MessageBus.html)\n\n[Systems Mgmt.](SystemManagementIntro.html)\n\n[Control Bus](ControlBus.html)\n\n[Detour](Detour.html)\n\n[Wire Tap](WireTap.html)\n\n[Message History](MessageHistory.html)\n\n[Message Store](MessageStore.html)\n\n[Smart Proxy](SmartProxy.html)\n\n[Test Message](TestMessage.html)\n\n[Channel Purger](ChannelPurger.html)\n\n- » [Read the latest in My Blog](/ramblings)\n- » [Get more insights from My Articles](/articles.html)\n- » [See me live in my Upcoming Talks](/talks)\n\nYou can reuse the following elements under the [Creative Commons Attribution](http://creativecommons.org/licenses/by/4.0/) license: pattern icon, pattern name, problem and solution statements (in bold), and the sketch. Other portions are protected by copyright.\n\n[Enterprise Integration Patterns](https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20)\nThe de-facto language for designing asynchronous, distributed systems. Over 100,000 copies sold.\n\n[The Software Architect Elevator](https://www.architectelevator.com/book)\n\n Rethink the role of architects as a connecting element across organizational layers. Acquire the technical, communication, and organizational skills to succeed in this new role.\n\n[Cloud Strategy](https://www.cloudstrategybook.com)\n\n Make your cloud migration a success by translating high-level goals into conscious decisions with well-understood trade-offs.\n\n[Platform Strategy](https://www.platformstrategybook.info)\n\n Platforms can boost innovation through harmonization, but they aren't easy to build. Learn from over a decade of designing and rolling out IT platforms.", "znaku_textu": 6275, "slov": 520, "odkazu": 108, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/ChannelAdapter.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 14:55:15", "sha256": "f40687cadb1e37a5dea09e841cc54f2e1fe927366258bd2d0a9cee33e7990ace", "hloubka": 3, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://creativecommons.org/licenses/by/4.0/", "https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "https://www.architectelevator.com/book", "https://www.cloudstrategybook.com/", "https://www.platformstrategybook.info/"]} {"url": "http://www.enterpriseintegrationpatterns.com/patterns/messaging/ChannelPurger.html", "titulek": "Channel Purger - Enterprise Integration Patterns", "h1": "", "popis": "How can you keep 'left-over' messages on a channel from disturbing tests or running systems?", "klicova_slova": "Channel Purger,integration, messaging, events, patterns, event-driven, coupling, eai, middleware, application integration, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns", "og:title": "Channel Purger - Enterprise Integration Patterns", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/ChannelPurger.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/ChannelPurger.gif"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Example: Channel Purger in Amazon SQSNEW"}, {"uroven": 2, "text": "Integration Pattern Language"}], "markdown": "| | Channel Purger[Messaging Patterns](index.html) » [System Management](SystemManagementIntro.html) | [Contents](toc.html)[⇐ Prev](TestMessage.html)[Next ⇒](SystemManagementExample.html) |\n| --- | --- | --- |\n\nWhen Bobby and I worked on the simple [*JMS Request/Reply Example*](RequestReplyJmsExample.html), we ran into a simple, but interesting problem. The example consists of a Requestor which sends a message to a Replier and waits for the response. The example uses two [*Point-to-Point Channel*](PointToPointChannel.html)s, RequestQueue and ReplyQueue (see picture).\n\nWe had plastered println statements all over the code so we can see what is going on. We started the Replier first, then the Requestor. Then a very odd thing happened. The Requestor console window claimed to have gotten a response before the Replier ever acknowledged receiving a request. A delay in the console output? Lacking any great ideas, we decided to shut the Replier down and re-ran the Requestor. Odd enough, we still received a response to our request! Magic? No, just a side effect of persistent messaging. A superfluous message was present on the ReplyQueue. When we started the Requestor it placed a new message on the RequestQueue and then immediately retrieved the extraneous reply message that was sitting on the ReplyQueue. We never noticed that this was not the reply to the request the Requestor just made! Once the Replier received the request message, it placed a new reply message on the ReplyQueue so that the 'magic' repeated during the next test. It can be amazing (or amazingly frustrating) how persistent, asynchronous messaging can play tricks on you in even the most simple scenarios!\n\nHow can you keep 'left-over' messages on a channel from disturbing tests or running systems?\n\nUse a *Channel Purger* to remove unwanted messages from a channel.\n\nA simple *Channel Purger* simply remove all the messages from a channel. This may be sufficient for test scenarios where we want to reset the system into a consistent state. If we are debugging a production system we may need to remove individual message or a set of messages based on specific criteria, such as the message ID or the values of specific message fields.\n\n...\nRead the entire pattern in the book [Enterprise Integration Patterns](/books1.html)\n\n## Example: Channel Purger in Amazon SQS[NEW](/ramblings/eip1_examples_updated.html)\n\nMany hosted messaging systems have a built-in function to purge channels. For example, with Amazon's [Simple Queuing Service (SQS)](https://aws.amazon.com/sqs), you can purge a queue simply from the web user interface:\n\n*Purging a queue in Amazon SQS*\n\n**Related patterns:**\n\n[*Correlation Identifier*](CorrelationIdentifier.html), [*Invalid Message Channel*](InvalidMessageChannel.html), [*Message Channel*](MessageChannel.html), [*Message Store*](MessageStore.html), [*Point-to-Point Channel*](PointToPointChannel.html), [*JMS Request/Reply Example*](RequestReplyJmsExample.html)\n\n---\n\n## Integration Pattern Language\n\n[Message Construct.](MessageConstructionIntro.html)\n\n[Message](Message.html)\n\n[Command Message](CommandMessage.html)\n\n[Document Message](DocumentMessage.html)\n\n[Event Message](EventMessage.html)\n\n[Request-Reply](RequestReply.html)\n\n[Return Address](ReturnAddress.html)\n\n[Correlation Identifier](CorrelationIdentifier.html)\n\n[Message Sequence](MessageSequence.html)\n\n[Message Expiration](MessageExpiration.html)\n\n[Format Indicator](FormatIndicator.html)\n\n[Message Routing](MessageRoutingIntro.html)\n\n[Pipes-and-Filters](PipesAndFilters.html)\n\n[Message Router](MessageRouter.html)\n\n[Content-based Router](ContentBasedRouter.html)\n\n[Message Filter](Filter.html)\n\n[Dynamic Router](DynamicRouter.html)\n\n[Recipient List](RecipientList.html)\n\n[Splitter](Sequencer.html)\n\n[Aggregator](Aggregator.html)\n\n[Resequencer](Resequencer.html)\n\n[Composed Msg. Processor](DistributionAggregate.html)\n\n[Scatter-Gather](BroadcastAggregate.html)\n\n[Routing Slip](RoutingTable.html)\n\n[Process Manager](ProcessManager.html)\n\n[Message Broker](MessageBroker.html)\n\n[Message\nTransformation](MessageTransformationIntro.html)\n\n[Message Translator](MessageTranslator.html)\n\n[Envelope Wrapper](EnvelopeWrapper.html)\n\n[Content Enricher](DataEnricher.html)\n\n[Content Filter](ContentFilter.html)\n\n[Claim Check](StoreInLibrary.html)\n\n[Normalizer](Normalizer.html)\n\n[Canonical Data Model](CanonicalDataModel.html)\n\n[Messaging Endpoints](MessagingEndpointsIntro.html)\n\n[Message Endpoint](MessageEndpoint.html)\n\n[Messaging Gateway](MessagingGateway.html)\n\n[Messaging Mapper](MessagingMapper.html)\n\n[Transactional Client](TransactionalClient.html)\n\n[Polling Consumer](PollingConsumer.html)\n\n[Event-driven Consumer](EventDrivenConsumer.html)\n\n[Competing Consumers](CompetingConsumers.html)\n\n[Message Dispatcher](MessageDispatcher.html)\n\n[Selective Consumer](MessageSelector.html)\n\n[Durable Subscriber](DurableSubscription.html)\n\n[Idempotent Receiver](IdempotentReceiver.html)\n\n[Service Activator](MessagingAdapter.html)\n\n[Messaging Channels](MessagingChannelsIntro.html)\n\n[Message Channel](MessageChannel.html)\n\n[Point-to-Point Channel](PointToPointChannel.html)\n\n[Publish-Subscr. Channel](PublishSubscribeChannel.html)\n\n[Datatype Channel](DatatypeChannel.html)\n\n[Invalid Message Channel](InvalidMessageChannel.html)\n\n[Dead Letter Channel](DeadLetterChannel.html)\n\n[Guaranteed Delivery](GuaranteedMessaging.html)\n\n[Channel Adapter](ChannelAdapter.html)\n\n[Messaging Bridge](MessagingBridge.html)\n\n[Message Bus](MessageBus.html)\n\n[Systems Mgmt.](SystemManagementIntro.html)\n\n[Control Bus](ControlBus.html)\n\n[Detour](Detour.html)\n\n[Wire Tap](WireTap.html)\n\n[Message History](MessageHistory.html)\n\n[Message Store](MessageStore.html)\n\n[Smart Proxy](SmartProxy.html)\n\n[Test Message](TestMessage.html)\n\n[Channel Purger](ChannelPurger.html)", "znaku_textu": 5694, "slov": 568, "odkazu": 110, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/ChannelPurger.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 14:56:16", "sha256": "d8f42e8a137828b3f8d9f1665478c3a8b32361cf1d058807f3154041cd256cdc", "hloubka": 3, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://aws.amazon.com/sqs", "http://creativecommons.org/licenses/by/4.0/", "https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "https://www.architectelevator.com/book", "https://www.cloudstrategybook.com/", "https://www.platformstrategybook.info/"]} {"url": "http://www.enterpriseintegrationpatterns.com/patterns/messaging/Chapter1.html", "titulek": "Solving Integration Problems using Patterns - Enterprise Integration Patterns", "h1": "", "popis": "This chapter illustrates how the patterns in this book can be used to solve a variety of integration problems. In order to do so, we examine common integration scenarios and present a comprehensive integration example. As we design the solution to this example, we will express the solution using the patterns contained in this book. At the end of this chapter you will be familiar with about two dozen integration patterns.", "klicova_slova": "Solving Integration Problems using Patterns,integration, messaging, events, patterns, event-driven, coupling, eai, middleware, application integration, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns", "og:title": "Solving Integration Problems using Patterns - Enterprise Integration Patterns", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/Chapter1.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/eip1_patterns_wide.png"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "The Need for Integration"}, {"uroven": 2, "text": "Integration Challenges"}, {"uroven": 2, "text": "How Integration Patterns Can Help"}, {"uroven": 2, "text": "The Wide World of Integration"}, {"uroven": 2, "text": "Loose Coupling"}, {"uroven": 2, "text": "1 Minute EAI"}, {"uroven": 2, "text": "A Loosely Coupled Integration Solution"}, {"uroven": 2, "text": "Widget-Gadget Corp -- An Example"}, {"uroven": 2, "text": "Summary"}, {"uroven": 2, "text": "Integration Pattern Language"}], "markdown": "| | Solving Integration Problems using Patterns[Messaging Patterns](index.html) | [Contents](toc.html)[⇐ Prev](Introduction.html)[Next ⇒](IntegrationStylesIntro.html) |\n| --- | --- | --- |\n\nThis chapter illustrates how the patterns in this book can be used to solve a variety of integration problems. In order to do so, we examine common integration scenarios and present a comprehensive integration example. As we design the solution to this example, we will express the solution using the patterns contained in this book. At the end of this chapter you will be familiar with about two dozen integration patterns.\n\n## The Need for Integration\n\nEnterprises are typically comprised of hundreds if not thousands of applications that are custom-built, acquired from a third-party, part of a legacy system, or a combination thereof, operating in multiple tiers of different operating system platforms. It is not uncommon to find an enterprise that has 30 different Websites, three instances of SAP and countless departmental solutions.\n\nWe may be tempted to ask: How do businesses allow themselves to get into such a mess? Shouldn’t any CIO of such an enterprise spaghetti architecture be fired? Well, like in most cases things happen for a reason.\n\nFirst of all, writing business applications is hard. Creating a single, big application to run a complete business is next to impossible. The ERP vendors have had some success at creating larger-than-ever business applications. The reality, though, is that even the heavyweights like SAP, Oracle, Peoplesoft and the like only perform a fraction of the business functions required in a typical enterprise. We can see this easily by the fact that ERP systems are one of the most popular integration points in today’s enterprises.\n\nSecond, spreading business functions across multiple applications provides the business with the flexibility to select the “best” accounting package, the “best” customer relationship management or the order processing system that best suits the business’ needs. One-stop-shopping for enterprise applications is usually not what IT organizations are interested in, nor is possible given the number individual business requirements.\n\nVendors have learned to cater to this preference and offer focused applications around a specific core function. However, the ever-present urge to add new functionality to existing software packages has caused some functionality spillover amongst packaged business applications. For example, many billing systems started to incorporate customer care and accounting functionality. Likewise, the customer care software maker takes a stab at implementing simple billing functions such as disputes or adjustments. Defining a clear functional separation between systems is hard: is a customer disputing a bill considered a customer care or a billing function?\n\nUsers such as customers, business partners and internal users do generally not think about system boundaries when they interact with a business. They execute business functions, regardless of the how many internal systems the business function cuts across. For example, a customer may call to change his or her address and see whether the last payment was received. In many enterprises, this simple request can span across the customer care and billing systems. Likewise, a customer placing a new order may require the coordination of many systems. The business needs to validate the customer ID, verify the customer’s good standing, check inventory, fulfill the order, get a shipping quote, compute sales tax, send a bill, etc. This process can easily span across five or six different systems. From the customer’s perspective, it is a single business transaction.\n\nIn order to support common business processes and data sharing across applications, these applications need to be integrated. Application integration needs to provide efficient, reliable and secure data exchange between multiple enterprise applications.\n\n## Integration Challenges\n\nUnfortunately, enterprise integration is no easy task. By definition, enterprise integration has to deal with multiple applications running on multiple platforms in different locations, making the term ‘simple integration’ pretty much an oxymoron. Software vendors offer EAI suites that provide cross-platform, cross-language integration as well as the ability to interface with many popular packaged business applications. However, this technical infrastructure presents only a small portion of the integration complexities. The true challenges of integration span far across business and technical issues.\n\n- Enterprise integration requires a significant shift in corporate politics. Business applications generally focus on a specific functional area, such as Customer Relationship Management (CRM), Billing, Finance, etc. This seems to be an extension of Conway's famous law that postulates that \"Organizations which design systems are constrained to produce designs which are copies of the communication structures of these organizations.\" As a result, many IT groups are organized in alignment with these functional areas. Successful enterprise integration does not only need to establish communication between multiple computer systems but also between business units and IT departments -- in an integrated enterprise application groups no longer control a specific application because each application is now part of an overall flow of integrated applications and services.\n- Because of their wide scope, integration efforts typically have far-reaching implications on the business. Once the processing of the most critical business functions is incorporated into an integration solution, the proper functioning of that solution becomes vital to the business. A failing or misbehaving integration solution can cost a business millions of Dollars in lost orders, misrouted payments and disgruntled customers.\n- One important constraint of developing integration solutions is the limited amount of control the integration developers typically have over the participating applications. In most cases, the applications are “legacy” systems or packaged applications that cannot be changed just to be connected to an integration solution. This often leaves the integration developers in a situation where they have to make up for deficiencies or idiosyncrasies inside the applications or differences between the applications. Often it would be easier to implement part of the solution inside the application “endpoints”, but for political or technical reasons that option may not be available.\n- Despite the wide-spread need for integration solutions, only few standards have established themselves in this domain. The advent of XML, XSL and Web services certainly mark the most significant advance of standards-based features in an integration solution. However, the hype around Web services has also given grounds to new fragmentation of the marketplace, resulting in a flurry of new “extensions” and “interpretations” of the standards. This should remind us that the lack of interoperability between “standards-compliant” products was one of the major stumbling blocks for CORBA, which offered a sophisticated technical solution for system integration.\n- Also, existing XML Web Services standards address only a fraction of the integration challenges. For example, the frequent claim that XML is the ‘Lingua franca” of system integration is somewhat misleading. Standardizing all data exchange to XML can be likened to writing all documents using a common alphabet, such as the Roman alphabet. Even though the alphabet is common, it is still being used to represent many languages and dialects, which cannot be readily understood by all readers. The same is true in enterprise integration. The existence of a common presentation (e.g. XML) does not imply common semantics. The notion of “account” can have many different semantics, connotations, constraints and assumptions in each participating system. Resolving semantic differences between systems proves to be a particularly difficult and time-consuming task because it involves significant business and technical decisions.\n- While developing an EAI solution is challenging in itself, operating and maintaining such a solution can be even more daunting. The mix of technologies and the distributed nature of EAI solutions make deployment, monitoring, and trouble-shooting complex tasks that require a combination of skill sets. In many cases, these skill sets do not exist within IT operations or are spread across many different individuals.\n\nAnyone who has been through an EAI deployment can attest to the fact that EAI solutions are a critical component of today’s enterprise strategies, but make IT life harder, not easier. It’s a long way between the high-level vision of the integrated enterprise (defined by terms such as “Straight-Through-Processing”, “T+1”, “Agile Enterprise”) and the nuts-and-bolts implementations (what parameters did System.Messaging.XmlMessageFormatter take again?).\n\n## How Integration Patterns Can Help\n\nThere are no simple answers for enterprise integration. In our opinion, anyone who claims that integration is easy must be either incredibly smart (or at least a good bit smarter than the rest of us), incredibly ignorant (OK, let’s say optimistic), or they have a financial interest in making you believe that integration is easy.\n\nEven though integration is a broad and difficult topic, we can always observer some people who are much better at it than others. What do these people know that others don’t? Since there is no such thing as “Teach Yourself Integration in 21 Days” (this book sure ain't!) it is unlikely that these people know all the answers to integration. However, these people have usually solved enough integration problems that they can compare new problems to prior problems they have solved. They know the “patterns” of problems and associated solutions. They learned these patterns over time by trial-and-error or from other experienced integration architects.\n\nThe “patterns” are not copy-paste code samples or shrink-wrap components, but rather nuggets of advice that describe solutions to frequently recurring problems. Used properly, the integration patterns can help fill the wide gap between the high-level vision of integration and the actual system implementation.\n\n## The Wide World of Integration\n\nWe intentionally left the definition of “integration” very broad. To us it means connecting computer systems, companies or people. While this broad definition gives us the convenience of sticking whatever we find interesting into this book, it is helpful to have a closer look at some of the most common integration scenarios. Helping clients design and implement integration solutions, we repeatedly came across the following six types of integration projects:\n\n- Information Portals\n- Data Replication\n- Shared Business Functions\n- Service-Oriented Architectures\n- Distributed Business Processes\n- Business-to-Business Integration\n\nThis list is by no means a complete taxonomy of all things integration but it does help to illustrate the kind of solutions that integration architects build. Many integration projects consist of a combination of multiple types of integration. For example, reference data replication is often required in order to tie applications into a single distributed business process.\n\n**Information Portal**\n\nMany business users have to access more than one system to answer a specific question or to perform a single business function. For example, to verify the status of an order, a customer service representative may have to access the order management system on the mainframe plus log on to the system that manages orders placed over the Web. Information portals aggregate information from multiple sources into a single display to avoid having the user access multiple systems for information. Simple information portals divide the screen into multiple zones, each of which displays information from a different system. More sophisticated systems provide limited interaction between zones, for example when a user selects an item from a list in zone A, zone B refreshes with detailed information about the selected item. Other portals provide even more sophisticated user interaction and blur the line between a portal and an integrated application.\n\n**Data Replication**\n\nMany business systems require access to the same data. For example, a customer’s address may be used in the customer care system (when the customer calls to change it), the accounting system (to compute sales tax), the shipping system (to label the shipment) and the billing system (to send an invoice). Many of these systems are going to have their own data stores to store customer related information. When a customer calls to change his or her address all these systems need to change their copy of the customer’s address. This can be accomplished by implementing an integration strategy based on data replication.\n\nThere are many different ways to implement data replication. For example, some database vendors build replication functions into the database, we can export data into files and re-import them into the other system, or we can use message-oriented middleware to transport data records inside messages.\n\n**Shared Business Function**\n\nIn the same way that many business applications store redundant data, they also tend to implement redundant functionality. Multiple systems may need to check whether a social-security number is valid, whether the address matches the specified postal code or whether a particular item is in stock. It makes business sense to expose these functions as a shared business function that is implemented once and available as a service to other systems.\n\nA shared business function can address some of the same needs as data replication. For example, we could implement a business function called ‘Get Customer Address’ that could allow other systems to request the customer’s address when it is needed rather than always storing a redundant copy. The decision between these two approaches is driven by a number of criteria, such as the amount of control we have over the systems (calling a shared function is usually more intrusive than loading data into the database) or the rate of change (an address may be needed frequently but change very infrequently).\n\n**Service-Oriented Architecture**\n\nShared business functions are often referred to as services. A service is a well-defined function that is universally available and responds to requests from “service consumers”. Once an enterprise assembles a collection of useful services, managing the services becomes an important function. First of all, applications need some form of service directory, a centralized list of all available services. Second, each service needs to describe its interface in such a way that an application can “negotiate” a communications contract with the service. These two functions, service discovery and negotiation, are the key elements that make up a service-oriented architecture.\n\nService-oriented architectures (SOAs) blur the line between integration and distributed applications. A new application can be developed using existing, remote services that may be provided by other applications. Therefore, calling a service may be considered integration between the two applications. On the other hand a service-oriented architecture usually provides tools that make calling an external service almost as simple as calling a local method (performance considerations aside). Because all services are available in a consistent manner, SOAs are sometimes referred to as “service bus architectures”.\n\n**Distributed Business Process**\n\nOne of the key drivers of integration is the fact that a single business transaction is often spread across many different systems. A previous example showed us that a simple business function such as “place order” can easily touch six or seven systems. In most cases, all relevant functions are incorporated inside existing applications. What is missing is the coordination between the applications. Therefore, we can add a business process management component that manages the execution of a business function across multiple existing systems.\n\nThe boundaries between a service-oriented architecture and a distributed business can blur. For example, you could expose all relevant business functions as service and then encode the business process inside an application that accesses all services via an SOA.\n\n**Business-to-Business Integration**\n\nSo far we have mainly considered the interaction between applications and business functions inside an enterprise. In many cases, business functions may be available from outside suppliers or business partners. For example, the shipping company may provide a service for customers to compute shipping cost or track shipments. Or a business may use an outside provider to compute sales tax rates. Likewise, integration frequently occurs between business partners. A customer may contact a retailer to inquire on the price and the availability of an item. In response, the retailer may ask the supplier for the status of an expected shipment that contains the out-of-stock item.\n\nMany of the above considerations apply equally to business-to-business integration. However, communicating across the Internet or some other network usually raises new issues related to transport protocols and security. Also, since many business partners may collaborate in an electronic “conversation” standardized data formats are critically important.\n\n## Loose Coupling\n\nOne of the biggest buzz words in enterprise architecture and integration is the notion of loose coupling. It is in fact such a popular term that Doug Kaye wrote a whole book titled after this ubiquitous concept [[Kaye](http://www.amazon.com/exec/obidos/ASIN/1881378241/enterpriseint-20)]. The benefits of loose coupling have been know for quite some time now, but they have taken center stage more recently due to the surging popularity of Web services architectures.\n\nThe core principle behind loose coupling is to reduce the assumptions two parties (components, applications, services, programs, users) make about each other when they exchange information. The more assumptions two parties make about each other and the common protocol, the more efficient the communication can be, but the less tolerant the solution is of interruptions or changes because the parties are tightly coupled to each other.\n\nA great example of tight coupling is a local method invocation. Invoking a local method inside an application is based on a lot of assumptions between the called and the calling routine. Both methods have to run in the same process (e.g. a virtual machine) and be written in the same language (or at least use a common intermediate language or byte code). The calling method has to pass the exact number of expected parameters, each using the correct type. The call is immediate, i.e. the called method starts processing immediately after the calling method makes the call. Meanwhile, the calling method will only resume processing when the called method completes (meaning the invocation is synchronous). Processing will automatically resume in the calling method with the next statement after the method call. The communication between the methods is immediate and instantaneous, so neither the caller nor the called method have to worry about security in the form of eavesdropping 3rd parties. All these assumptions make it very easy to write well structured applications that break functionality into individual methods to be called by other methods. A large number of small method allow for flexibility and reuse.\n\nMany integration approaches have aimed to make remote communications simple by packaging a remote data exchange into the same semantics as a local method call. This strategy resulted in the notion of a Remote Procedure Call (RPC) or Remote Method Invocation (RMI), supported by many popular frameworks and platforms: CORBA (see[[Zahavi](http://www.amazon.com/exec/obidos/ASIN/0471327204/enterpriseint-20)]), Microsoft DCOM, .NET Remoting, or Java RMI, and most recently, RPC-style Web services. The intended upside of this approach is twofold. First, synchronous method-call semantics are very familiar to application developers, so why not build on what we already know. Second, using the same syntax and semantics for both local method calls and remote invocations would allow us to defer the decision about what components should run locally and which ones run remotely until deployment time, leaving the application developer with one less thing to worry about.\n\nThe challenge that all these approaches face lies in the fact that remote communication invalidates many of the assumptions that a local method call is based on. As a result, abstracting the remote communication into the simple semantics of a method call can be confusing and misleading. Waldo et al. reminded us back in 1994 that \"objects that interact in a distributed system need to be dealt with in ways that are intrinsically different from objects that interact in a single address space\" [[Waldo](http://citeseer.nj.nec.com/waldo94note.html)]. For example, if we call a remote service to perform a function for us, do we really want to restrict ourselves to only those services that were built using the same programming language as we do? A call across the network also tends to be multiple orders of magnitude slower than a local call. Should the calling method really wait until the called method completes? What if the network is interrupted and the called method is temporarily unreachable? How long should we wait? How can we be sure we communicate with the intended party and not a 3rd party “spoofer”? How can we protect against eavesdropping? What if the method signature (the list of expected parameters) of the called method changes? If the remote method is maintained by a third party or a business partner we no longer have control over such changes. Should we have our method invocation fail or should we attempt to find the best possible mapping between the parameters and still make the call? It becomes quickly apparent that remote integration brings up a lot of issues that a local method call never had to deal with.\n\nIn summary, trying to portray remote communication as a variant of a local method invocation is asking for trouble. Such architectures typically result in brittle, hard to maintain and poorly scalable solutions. Many Web services pioneers recently (re-)discovered this fact the hard way.\n\n## 1 Minute EAI\n\nTo show the effects of tightly coupled dependencies and how to resolve them, let’s look at different options of connecting two systems. Let’s assume we are building an on-line banking system that allows customers to deposit money into their account from another bank. To perform this function, the front-end Web application has to be integrated with the back-end financial system that manages fund transfers.\n\nThe easiest way to connect the two systems is through the TCP/IP protocol. Every self-respecting operating system or programming library created in the last 15 years is certain to include a TCP/IP stack. TCP/IP is the ubiquitous communications protocol that transports data between the millions of computers connected to the Internet and local networks. Why not use the most ubiquitous of all network protocols to communicate between two applications?\n\nLet’s assume that the remote function that deposits money into a person’s account takes only the person’s name and the Dollar amount as arguments. The following few lines of code then suffice to call such a function over TCP/IP (we chose C#, but this code would look virtually identical in C or Java).\n\n```\nString hostName = \"www.eaipatterns.com\";\nint port = 80;\n\nIPHostEntry hostInfo = Dns.GetHostByName(hostName);\nIPAddress address = hostInfo.AddressList[0];\n\nIPEndPoint endpoint = new IPEndPoint(address, port);\n\nSocket socket = new Socket(address.AddressFamily, SocketType.Stream, ProtocolType.Tcp);\nsocket.Connect(endpoint);\n\nbyte[] amount = BitConverter.GetBytes(1000);\nbyte[] name = Encoding.ASCII.GetBytes(\"Joe\");\n\nint bytesSent = socket.Send(amount);\nbytesSent += socket.Send(name);\n\nsocket.Close();\n```\n\nThis code opens a socket connection to the address www.eaipatterns.com and sends two data items (the amount and the customer’s name) across the network. No expensive middleware is required, no EAI tools, RPC toolkits, just 10 lines of code. When we run this code it tells us: “7 bytes sent”. Voila! How can integration be so difficult?\n\nThere are a couple of major problems with this integration attempt. One of the strengths of the TCP/IP protocol is its wide support so that we can connect to pretty much any computer connected to the network regardless of the operating system or programming language it uses. However, the platform independence works only for very simple messages: byte streams. In order to convert our data into a byte stream we used the BitConverter class. This class converts any data type into a byte array, using the internal memory representation of the data type. The catch is that the internal representation of an integer number varies with computer systems. For example, .NET uses a 32 bit integer while other systems may use a 64 bit representation. Our example transfers 4 bytes across the network to represent a 32 bit integer number. A system using 64 bits would be inclined to read 8 bytes off the network and would end up interpreting the whole message (including the customer name) as a single number.\n\nAlso, some computer systems store their numbers in big-endian format while others store them in little-endian format. A big-endian format stores numbers starting with the highest byte first while little-endian systems store the lowest byte first. PCs operate on a little-endian scheme so that the code passes the following 4 bytes across the network:\n\n```\n232 3 0 0\n```\n\n232 + 3 * 2^8 equals 1000. A system that uses big-endian numbers would consider this message to mean 232* 2^24 + 3 * 2^16 = 3,892,510,720. Joe will be a very rich man! So this approach works only under the assumption that all connected computers represent numbers in the same internal format.\n\nThe second problem with this simple approach is that we specify the location of the remote machine (in our case www.eaipatterns.com). The Dynamic Naming Service (DNS) gives us one level of indirection between the domain name and the IP address, but what if we want to move the function to a different computer on a different domain? What if the machine fails and we have to setup another machine? What if we want to send the information to more than one machine? For each scenario we would have to change the code. If we use a lot of remote functions this could become very tedious. So we should find a way to make our communication independent from a specific machine on the network.\n\nOur simple TCP/IP example also establishes temporal dependencies between the two machines. TCP/IP is a *connection-oriented* protocol. Before any data can be transferred, a connection has to be established first. Establishing a TCP connection involves IP packets traveling back and forth between sender and receiver. This requires that both machines and the network are all available at the same time. If any of the three pieces is malfunctioning or not available due to high load, the data cannot be sent.\n\nLastly, the simple communication also relies on a very strict data format. We are sending 4 bytes of amount data and then a sequence of characters that define the customer’s account. If we want to insert a third parameter, e.g. the name of the currency, we would have to modify both sender and receiver to use the new data format.\n\n*Tightly Coupled Interaction*\n\nIn summary, our minimalist integration solution is fast and cheap, but it results in a very brittle solution because the two participating parties make the following assumptions about each other:\n\n- Platform Technology – internal representations of numbers and objects\n- Location – hard-coded machine addresses\n- Time – all components have to be available at the same time\n- Data Format – the list of parameters and their types must match\n\nAs we stated in the beginning, coupling is a measure of how many assumptions parties make about each other when they communicate. Our simple solution requires the parties to make a lot of assumptions. Therefore, this solution is tightly coupled.\n\nIn order to make the solution more loosely coupled we can try to remove these dependencies one by one. We should use a standard data format that is self-describing and platform independent, such as XML. Instead of sending information directly to a specific machine we should send it to an addressable “channel”. A channel is a logical address that both sender and receiver can agree on the same channel without being aware of each other’s identity. Using channels resolves the location-dependency, but still requires all components to be available at the same time if the channel is implemented using a connection-oriented protocol.. In order to remove this temporal dependency we can enhance the channel to queue up sent requests until the network and the receiving system are ready. To support queuing of requests inside the channel, we need wrap data into self-contained messages so that the channel knows how much data to buffer and deliver at any one time. Lastly, the two systems still depend on a common data format. We can remove this dependency by allowing for data format transformations inside the channel. If the format of one system changes we only have to change the transformer and not the other participating systems. This is particularly useful if many applications send data to the same channel.\n\n*Loosely Coupled Interaction*\n\nMechanisms such as a common data format, queuing channels, and transformers help turn a tightly coupled solution into a loosely coupled solution. The sender no longer has to depend on the receiver's internal data format not its location. It does not even have to pay attention to whether the other computer is ready to accept requests or not. Removing these dependencies between the systems makes the overall solution more tolerant to change, the key benefit of loose coupling. The main drawback of the loosely coupled approach is the additional complexity. This is no longer a 10-lines-of-code solution! Therefore, we use a message-oriented middleware infrastructure that provides these services for us. This infrastructure makes exchanging data in a loosely coupled way almost as easy as the example we started with. The next section describes the components that make up such a middleware solution.\n\nIs loose coupling the panacea? Like everything else in enterprise architecture, there is no single best answer. Loose coupling provides important benefits such as flexibility and scalability, but it introduces a more complex programming model and can make designing, building and debugging solutions more difficult.\n\n## A Loosely Coupled Integration Solution\n\nIn order to connect two systems via an integration solution, a number of things have to happen. These things make up what we call middleware – the things that sit between applications.\n\nInvariably, some data has to be transported from one application to the next. This data could be an address record that needs to be replicated, a call to a remote service or a snippet of HTML headed for a portal display. Regardless of the payload, this piece of data needs to be understood by both ends and needs to be transported, usually across a network. Two elements provide this basic function. We need a communications *channel* that can move information from one application to the other. This channel could be a series of TCP/IP connections, a shared file, a shared database or a floppy disk being carried from one computer to the next (the infamous ‘sneakernet’). Inside this channel we place a message – a snippet of data that has an agreed-upon meaning to both applications that are to be integrated. This piece of data can be very small, such as the phone number of a single customer that has changed, or very large, such as the complete list of all customers and their associated addresses. We call this piece of data a *message*.\n\n*Basic Elements of an Integration Solution*\n\nNow that we can send messages across channels we can establish a very basic form of integration. However, we promised that simple integration is an oxymoron, so let’s see what is missing. We mentioned before that integration solutions often have limited control over the applications they are integrating, such as the internal data formats used by the applications. For example, one data format may store the customer name in two fields, called FIRST_NAME and LAST_NAME, while the other system may use a single field called Customer_Name. Likewise, one system may support multiple customer addresses while the other system only supports a single address. Because the internal data format of an application can often not be changed the middleware needs to provide some mechanism to convert one application’s data format in the other’s. We call this step *translation*.\n\nSo far we can send data from one system to another and accommodate differences in data formats. What happens if we integrate more than two systems? Where does the data have to be moved? We could expect each application to specify the target system(s) for the data it is sending over the channel. For example, if the customer address changes in the customer care system we could make that system responsible for sending the data to all other systems that store copies of the customer address. As the number of systems increases this becomes very tedious and requires the sending system to have knowledge about all other systems. Every time a new system is added, the customer care system would have to be adjusted to the new environment. Things would be a lot easier of the middleware could take care of sending messages to the correct places. This is the role of a *routing* component such as a message broker.\n\nIntegration solutions can quickly become complex because they deal with multiple applications, data formats, channels, routing and transformation. All these elements may be spread across multiple operating platforms and geographic locations. In order to have any idea what is going on inside the system we need a *systems management* function. This subsystem monitors the flow of data, makes sure that all applications and components are available and reports error conditions to a central location.\n\nOur integration solution is now almost complete. We can move data from one system from another, accommodate differences in the data format, route the data to the required systems and monitor the performance of the solution. So far we assumed that an application sends data as a message to the channel. However, most packaged and legacy applications and many custom applications are not prepared to participate in an integration solution. We need a message *endpoint* to connect the system explicitly to the integration solution. The endpoint can be a special piece of code or a [*Channel Adapter*](ChannelAdapter.html) provided by an integration software vendor.\n\n## Widget-Gadget Corp -- An Example\n\nThe best way to understand message-based integration solutions is by walking through a concrete example. Let’s consider Widgets & Gadgets ‘R Us (WGRUS), an on-line retailer that buys widgets and gadgets from manufacturers and resells them to customers.\n\n*WGRUS Ecosystem*\n\nFor this example, we assume that the solution needs to support the following requirements. Naturally, we simplified the requirements a bit for sake of brevity, but nevertheless these types of requirements occur frequently in real businesses.\n\n- **Take Orders** : Customers can place orders via Web, phone or fax\n- **Process Orders** : Processing an order involves multiple steps, including verifying inventory, shipping the goods and invoicing the customer\n- **Check Status** : Customers can check the order status\n- **Change Address** : Customers can use a Web front-end to change their billing and shipping address\n- **New Catalog** : The suppliers update their catalog periodically. WGRUS needs to update its pricing and availability based in the new catalogs.\n- **Announcements** : Customers can subscribe to selective announcements from WGRUS.\n- **Testing and Monitoring** : The operations staff needs to be able to monitor all individual components and the message flow between them.\n\nWe will tackle each of these requirements separately and describe the solution alternatives and trade-offs using the pattern language introduced in this book.\n\n**Internal Systems**\n\nLike in most integration scenarios, WGRUS is not a so-called “green field” implementation, but rather the integration of an existing IT infrastructure comprised of a variety of packaged and custom applications. The fact that we have to work with existing applications often makes integration work challenging. In our example WGRUS runs the following systems (see picture).\n\n*WGRUS IT Infrastructure*\n\nWGRUS has four different channels to interact with customers. Customers can visit the company Web site, call the customer service representative at the call center or submit orders via fax. Customers can also receive notifications via e-mail.\n\nWGRUS’ internal systems are comprised of the accounting system, which also includes billing functions, the shipping system that computes shipping charges and interacts with the shipping companies. For historic reasons, WGRUS has two inventory and catalog systems. WGRUS used to sell only widgets but acquired another retailer that sells gadgets. WGRUS decided it will be less expensive to operate parallel systems than trying to rewrite both systems into a single system.\n\n**Taking Orders**\n\nThe first function we want to implement is taking orders. Taking orders is a good thing because they bring revenue. However, placing orders is currently a tedious manual process so that the cost incurred with each order is high. In fact, on orders below $20 WGRUS hardly makes any money because any potential profit is eaten up by labor cost processing the order.\n\nThe first step to streamlining order processing is to unify taking orders. A customer can place orders over one of three channels: Web site, call center or fax. Unfortunately, each system is based on a different technology and stores incoming orders in a different data format. The call center system is a packaged application while the Web site is a custom J2EE application. The inbound fax system requires manual data entry into a small Microsoft Access application. We want to treat all orders equally, regardless of their source. For example, a customer should be able to place an order via the call center and check the order status on the Web site.\n\nBecause placing an order is an asynchronous process that connects many systems, we decide to implement a message-oriented middleware solution to streamline the order entry process. Because the packaged call center application was not developed with integration in mind, we connect it to the messaging system using a [*Channel Adapter*](ChannelAdapter.html). A [*Channel Adapter*](ChannelAdapter.html) is a component that can attach to an application and publish messages to a [*Message Channel*](MessageChannel.html) whenever an event occurs inside the application. With some [*Channel Adapter*](ChannelAdapter.html)s, the application may not even be aware of the presence of the adapter. For example, a database adapter may add triggers to specific tables so that every time the application inserts a row of data a message is sent to the [*Message Channel*](MessageChannel.html). [*Channel Adapter*](ChannelAdapter.html)s can also work in the opposite direction, consuming messages off a [*Message Channel*](MessageChannel.html) and triggering an action inside the application in response.\n\nWe use the same approach for the inbound fax application, connecting the [*Channel Adapter*](ChannelAdapter.html) to the application database. Because the Web application is custom-built we implement the Endpoint code inside the application. We use a Messaging Gateway to isolate the application code from the messaging-specific code.\n\n*Taking Orders From Three Difrerent Channels*\n\nBecause each system uses a different data format for the incoming orders we use three [*Message Translator*](MessageTranslator.html)s to convert the different data formats into a common New Order message that follows a [*Canonical Data Model*](CanonicalDataModel.html). A [*Canonical Data Model*](CanonicalDataModel.html) defines message formats that are independent from any specific application so that all applications can communicate with each other in this common format. If the internal format of an application changes, only the [*Message Translator*](MessageTranslator.html) between the affected application and the coming [*Message Channel*](MessageChannel.html) has to change while all other applications and [*Message Translator*](MessageTranslator.html)s remain unaffected. Using a [*Canonical Data Model*](CanonicalDataModel.html) means that we deal with two types of messages: canonical (public) messages and application-specific (private) messages. Application-specific messages should not be consumed by any other component except the related application and the associated [*Message Translator*](MessageTranslator.html). To reinforce this policy we name application-specific [*Message Channel*](MessageChannel.html)s starting with the name of the application, e.g. WEB_NEW_ORDER. Channels carrying canonical messages are named after the intent of the message without any prefix, e.g. NEW_ORDER.\n\nWe connect each [*Channel Adapter*](ChannelAdapter.html) to the [*Message Translator*](MessageTranslator.html) via a [*Point-to-Point Channel*](PointToPointChannel.html) because we want to be sure that each order message is consumed only once. We could get away without using a [*Message Translator*](MessageTranslator.html) for the Web Interface if we programmed the transformation logic into the Gateway. However, hand-coding transformation functions can be tedious and error prone and we prefer to use a consistent approach. The additional [*Message Translator*](MessageTranslator.html) also allows us to shield the New Order flow from minor changes in the Web Interface data format. All [*Message Translator*](MessageTranslator.html)s publish to the same NEW_ORDER [*Point-to-Point Channel*](PointToPointChannel.html) so that orders can be processed off this channel without regard to the order’s origin.\n\nThe NEW_ORDER [*Message Channel*](MessageChannel.html) is a so-called [*Datatype Channel*](DatatypeChannel.html) because it carries messages of only one type, i.e. new orders. This makes it easy for message consumers to know what type of message to expect. The New Order message itself is designed as a [*Document Message*](DocumentMessage.html). The intent of the message is not to instruct the receiver to take a specific action, but rather to pass a document to any interested recipient who is free to decide how to process document.\n\n**Processing Orders**\n\nNow that we have a consistent order message that is independent from the message source we need to process orders. In order to fulfill an order we need to complete the following steps:\n\n- Verify the customer’s credit standing. If the customer has outstanding bills, we want to reject the new order.\n- Verify inventory. We can’t fulfill orders for items that are not in stock.\n- If the customer is in good standing and we have inventory we want to shop the goods and bill the customer.\n\nWe can express this sequence of events using a UML activity diagram. Activity diagrams have relatively simple semantics and are a good tool to depict processes that include parallel activities. Subsequent activities are connected by simple arrows. Parallel activities are connected by a thick black bar representing fork and join actions. A fork action causes all connected activities to start simultaneously while the join action only continues after all incoming activities have been completed.\n\nThe activity diagram executes the “Check Inventory” task and the “Verify Customer Standing” task in parallel. The join bar waits until both activities are completed before it allows the next activity to start. The next activity verifies the results of both steps – do we have inventory and is the customer in good standing? If both conditions are fulfilled, the process goes on to fulfill the order. Otherwise, we transition to an exception handling activity. For example, we may call the customer to remind them to pay the last invoice or send an e-mail letting him or her know that the order will be delayed. Because this book focuses on the design aspects of message-oriented integration rather than workflow modeling, we leave the details of the exception handling process aside for now. For a very good discussion of workflow architecture and workflow modeling we refer you to [[Leyman](http://www.amazon.com/exec/obidos/ASIN/0130217530/enterpriseint-20)] and [[Sharp](http://www.amazon.com/exec/obidos/ASIN/1580530214/enterpriseint-20)].\n\n*Activity Diagram for Order Processing*\n\nIt turns out that the activities map relatively nicely to the systems in WGRUS’ IT department. The Accounting system verifies the customer’s credit standing, the inventory systems check the inventory and the shipping system initiates the physical shipping of goods. The accounting system also acts as the billing system and sends invoices. The order processing function is a typical implementation of a distributed business process.\n\nTo convert the logical activity diagram into an integration design, we use a [*Publish-Subscribe Channel*](PublishSubscribeChannel.html) to implement the fork action and an [*Aggregator*](Aggregator.html) to implement the join action. A [*Publish-Subscribe Channel*](PublishSubscribeChannel.html) sends a message to all active consumers while an [*Aggregator*](Aggregator.html) receives multiple incoming messages and combines them into a single outgoing message (see picture):\n\n*Order Processing Implementation using Asynchronous Messaging*\n\nThe [*Aggregator*](Aggregator.html) combines the results from both messages and passes the resulting message to a [*Content-Based Router*](ContentBasedRouter.html). A Content-Based-Router is a component that consumes a message and publishes it unmodified to a choice of other channels based on rules coded inside the router. The Content-Based-Router is equivalent to the branch in a UML activity diagram. In this case, if both the inventory check and the credit check have been affirmative, the [*Content-Based Router*](ContentBasedRouter.html) forwards the message to the VALIDATED_ORDER channel. If the customer is not in good standing or we have no inventory on hand, it forwards the message to the INVALID_ORDER process. The exception process (not shown in the picture) listens to messages on this channel and notifies the customer of the rejected order.\n\nAs we learned in the requirements section, WGRUS has two inventory systems, one for widgets and one for gadgets. As a result, we have to route the request for inventory to the correct system. Because we want to hide the peculiarities of the inventory systems from the other systems, we insert a [*Content-Based Router*](ContentBasedRouter.html) that routes the message to the correct system based on the type of item ordered (see picture). For example, all incoming messages with an item number starting with ‘W’ are routed to the widget inventory system and all orders with an item number starting with ‘G’ are routed to the gadget inventory system.\n\n*Routing the Inventory Request*\n\nNote that the intent of messages on the [*Point-to-Point Channel*](PointToPointChannel.html)s between the [*Content-Based Router*](ContentBasedRouter.html) and the inventory systems is different from the previous channel. These channels contain [*Command Message*](CommandMessage.html)s, messages that instruct the system to execute the specified command, in this case verifying the inventory of an item.\n\nBecause the widget inventory system and the gadget inventory system use different internal data formats we again insert [*Message Translator*](MessageTranslator.html)s to convert from the canonical New Order message format into a system-specific format. Using [*Message Translator*](MessageTranslator.html)s with each originating system (Web Interface, call center, inbound fax) and each target system (widget inventory and gadget inventory) allows us to decouple changes between the systems. For example, if we added another way of placing orders (e.g. ordering by e-mail), none of the other systems would be affected. The price we pay for this flexibility is the fact that we translate each message twice, once at the source and once at the destination.\n\nWhat happens if the order item starts neither with ‘W’ nor with ‘G”? The [*Content-Based Router*](ContentBasedRouter.html) routes the message to the INVALID_ORDER channel so that the invalid order can be processed accordingly, e.g. by notifying the customer. This channel is a typical example of an Invalid [*Message Channel*](MessageChannel.html). This is example highlights the fact that the meaning of a message changes depending what channel it is on. Both the NEW_ORDER channel and the INVALID_ORDER channel transport the same type of message, but in one case a new order is being processed while in the other case the order is deemed invalid.\n\nSo far, we have assumed that each order can only contain a single item. This would be pretty inconvenient for our customers because they would have to place a new order for each item. Also, we would end up shipping multiple orders to the same customer and incur unnecessary shipping costs. However, if we allow multiple items inside an order, which inventory system should verify the inventory for this order? We could use a [*Publish-Subscribe Channel*](PublishSubscribeChannel.html) to send the order to each inventory system to pick out the items that it can process. But what would then happen to invalid items? How would we notice that neither inventory system processed the item? We want to maintain the central control the [*Content-Based Router*](ContentBasedRouter.html) gives us, but we need to be able to route each order item individually.\n\nTherefore, we insert a [*Splitter*](Sequencer.html), a component that breaks a single message into multiple individual messages. In our case, the [*Splitter*](Sequencer.html) splits a single Order message into multiple Order Item message. Each Order Item message can then be routed to the correct inventory system using a [*Content-Based Router*](ContentBasedRouter.html) (see below).\n\n*Processing Order Items Individually*\n\nNaturally, when the inventory for all items has been verified, we need to recombine the messages into a single message. We already learned that the component that can combine multiple messages into a single message is the [*Aggregator*](Aggregator.html). Using both a [*Splitter*](Sequencer.html) and an [*Aggregator*](Aggregator.html), we can logically separate the message flow for order items from that for orders.\n\nWhen designing an [*Aggregator*](Aggregator.html), we have to make three key decisions:\n\n- Which messages belong together (“correlation”)?\n- How do we determine that all messages are received (the “completeness condition”)?\n- How do we combine the individual messages into one result message (the “aggregation algorithm”)?\n\nWe can’t correlate order items by the customer ID because a customer may place multiple orders in short succession. Therefore, we need a unique order ID for each order. We accomplish this by inserting a [*Content Enricher*](DataEnricher.html)into the Taking Orders solution (see picture). A [*Content Enricher*](DataEnricher.html)is a component that adds missing data items to an incoming message.\n\n*Taking Orders With Enricher*\n\nNow that we have an order ID to correlate order item messages, we need to define the completeness condition and the aggregation algorithm. Because we route all messages including invalid items to the [*Aggregator*](Aggregator.html), the [*Aggregator*](Aggregator.html) can simply use the number of items in the order (one of the fields in the order message) to count until all order items arrive. The aggregation algorithm is similarly simple. The [*Aggregator*](Aggregator.html) concatenates all item messages back into a single order message and publishes it to the VALIDATED_ORDER channel.\n\nThe combination of a [*Splitter*](Sequencer.html), a Router and an [*Aggregator*](Aggregator.html) is fairly common. We refer to it as a [*Composed Message Processor*](DistributionAggregate.html). To simplify the picture, we insert the symbol for a [*Composed Message Processor*](DistributionAggregate.html) into the original message flow diagram:\n\n*Revised Order Process Implementation*\n\n**Checking Status**\n\nDespite connecting the systems via messaging channels, fulfilling an order can take some amount of time. For example, we may be out of a certain item and the inventory system may be holding the inventory check message until new items arrive. This is one of the advantages of asynchronous messaging: the communication is designed to happen at the pace of the components. While the inventory system is “holding” the message, the accounting system can still verify the customer’s credit standing. Once both steps are completed, the [*Aggregator*](Aggregator.html) publishes the Validated Order message to initiate shipment and invoicing.\n\nA long-running business process also means that both customers and managers are likely to want to know the status of a specific order. For example, if certain items are out of inventory, the customer may decide to process just those items that are in stock. Or if the customer has not received the goods it is useful if we can tell him or her that the goods are on their way (including the shipping company’s tracking number) or that there is an internal delay in the warehouse.\n\nTracking the status of an order with the current design is not so easy. Related messages flow through multiple systems. In order to ascertain the status of the order in the sequence of steps we would have to know the “last” message related to this order. One of the advantages of a [*Publish-Subscribe Channel*](PublishSubscribeChannel.html) is that we can add additional subscribers without disturbing the flow of messages. We can use this property to listen in to new and validated orders and store them into a [*Message Store*](MessageStore.html). We could then query the [*Message Store*](MessageStore.html) database for the status (see picture):\n\n*Adding a Message Store To Track Order Status*\n\nIn situations where we use a Point-Point-Channel, we cannot simply add a subscriber to the channel because in a [*Point-to-Point Channel*](PointToPointChannel.html), each message can only be consumer by a single subscriber. However, we can insert a Wire Tap, a simple component that consumes a message off one channel and publishes it to two channels. We can then use the second channel to send messages to the [*Message Store*](MessageStore.html) (see picture).\n\n*Tracking Messages with a Wire Tap*\n\nStoring message data in a central database has another significant advantage. In the original design each message had to carry all relevant data in order to continue processing the message down the line. For example, the ‘Verify Customer Standing’ may have to pass through all sorts of customer data even though it may only require the customer ID. This additional data is necessary so that the resulting message still contains all data from the original order message. Storing the New Order message in a [*Message Store*](MessageStore.html) has the advantage that all subsequent components can refer to the [*Message Store*](MessageStore.html) for important message data without all intermediate steps having to carry the data along (we will later to this function as [*Claim Check*](StoreInLibrary.html) - messages can “check” data for later retrieval).\n\nNow the [*Message Store*](MessageStore.html) is responsible for maintaining data related to the new message as well as the progress of the message within the process. This data gives us enough information to use the [*Message Store*](MessageStore.html) to determine the next required steps in the process rather than connecting components with fixed [*Message Channel*](MessageChannel.html)s. For example, if the database contains reply messages from both the inventory systems and the billing system, we can conclude that the order has been validated and send a message to the Shipping and billing system. Instead of making this decision in a separate [*Aggregator*](Aggregator.html) component, we can do it right in the [*Message Store*](MessageStore.html). Effectively, we are turning the [*Message Store*](MessageStore.html) into a [*Process Manager*](ProcessManager.html).\n\nA [*Process Manager*](ProcessManager.html) is a central component that manages the flow of messages through the system. The [*Process Manager*](ProcessManager.html) provides two main functions:\n\n- Storing data between messages\n- Keeping track of progress and determining the next step\n\n*Processing Orders With a Process Manager*\n\nThis architecture turns the individual systems (e.g. the inventory systems) into Shared Services that can be accessed by any process. This increases reuse and allows for rapid changes and maintenance. The services themselves can still be composed out of multiple steps, wired together via a message flow (for example, using a [*Composed Message Processor*](DistributionAggregate.html) to check inventory status for each order item), or orchestrated via a [*Process Manager*](ProcessManager.html).\n\nThe [*Process Manager*](ProcessManager.html) itself uses a persistent store (typically files or a relational database) to store data associated with each process instance. In order to allow the Web Interface to query the status of an order we could send a message to the [*Process Manager*](ProcessManager.html) or the order DB. However, checking status is a synchronous process – the customer expects the response right away. Because the Web Interface is a custom application, we decide to access the Order Database directly to query the order status. This form of [*Shared Database*](SharedDataBaseIntegration.html) is the simplest and most efficient approach and we are always ensured that the Web Interface displays the most current status. The potential downside of this approach is the fact that the Web Interface is tightly coupled to the database, a trade-off that we are willing to take.\n\nThe new architecture exposes all services to a common services bus so that they can be invoked from any other component. If we add facilities to lookup (“discover”) a service from a service registry, we can turn the WGRUS IT infrastructure into a Service-Oriented Architecture. In order to participate in a Service-Oriented Architecture, each service has to provide additional functions. For example, each service has to expose an interface contract that describes the functions provided by the service. Each request-reply service also needs to support the concept of a [*Return Address*](ReturnAddress.html). A [*Return Address*](ReturnAddress.html) allows the caller (the “service consumer”) to specify the channel where the service should send the reply message. This is important to allow the service to be reused in different contexts, each of which may require its own channel for reply messages.\n\nOne difficulty in enabling these service functions is that many legacy systems were not build with features such as [*Return Address*](ReturnAddress.html) in mind. Therefore, we “wrap” access to the legacy system with a [*Smart Proxy*](SmartProxy.html). This [*Smart Proxy*](SmartProxy.html) enhances the basic system service with additional capability so that it can participate in a Service-Oriented Architecture. To do this, the [*Smart Proxy*](SmartProxy.html) intercepts both request and reply messages to and from the basic service (see picture).\n\n*Inserting a Smart Proxy to Turn a Legacy System Into a Shared Service*\n\nThe [*Smart Proxy*](SmartProxy.html) can store information from the request message (e.g. the [*Return Address*](ReturnAddress.html) specified by the requestor) and use this information to process the reply message, (e.g. route it to the correct reply channel). A [*Smart Proxy*](SmartProxy.html) is also very useful to track quality of service (e.g. response times) of an external service.\n\n**Change Address**\n\nWGRUS needs to deal with a number of addresses. For example, the invoice has to be sent to the customer’s billing address while the goods are shipped to the shipping address. We want to allow the customer to maintain all these addresses through the Web Interface to eliminate unnecessary manual steps.\n\nWe can choose between two basic approaches to get the correct billing and shipping addresses to the billing and shipping systems:\n\n- Include address data with the New Order message\n- Replicate address data to other systems\n\nThe first option has the advantage that we can use an existing integration channel to transport the additional information. A potential downside is the additional data flowing across the middleware infrastructure. We pass the address data along with every order even though the address may change much less frequently.\n\nBecause the billing and shipping systems are packaged applications they were not designed with integration in mind. As such, they are unlikely to be able to accept addresses with a new order but rather use the address that is stored in their local database. In order to enable the systems to update the address with the New Order message we need to execute two functions in the billing system (and the shipping system): first, we need to update the address, and then we need to send the bill (or ship the goods). Because the order of the two messages matters we insert a simple [*Process Manager*](ProcessManager.html) component that receives a New Order message (which includes the current shipping and billing address0 and publishes two separate messages to the billing (or shipping) system (see diagram).\n\n*Including Address Data in the New Order Message*\n\nWe update the address directly into the system database using a database [*Channel Adapter*](ChannelAdapter.html). Sending the goods or producing an invoice has to invoke the applications’ business logic. Therefore, we connect to the applications’ business tiers and invoke the correct API function when a message is received.\n\nWe need to keep in mind that the [*Channel Adapter*](ChannelAdapter.html)s require messages to be formatted in the proprietary formats used by the applications (using so-called private messages). Because the New Order message arrives in the canonical message format we need to perform a translation between the two formats. We could build the transformation into the [*Process Manager*](ProcessManager.html) but we actually prefer external [*Message Translator*](MessageTranslator.html)s so that the logic inside the [*Process Manager*](ProcessManager.html) is not affected by the possibly complicated data format required by the applications.\n\nThe second option uses data replication to propagate address changes to all affected systems independently of the New Order process. Whenever the address information changes in the Web interface we propagate the changes to all interested systems using a [*Publish-Subscribe Channel*](PublishSubscribeChannel.html). The systems store the updated address internally and use it when an order message arrives. This approach reduces message traffic (assuming customers change addresses less frequently than they place orders). It can also reduce coupling between systems. Any system that uses an address can subscribe to the ADDRESS_CHANGE channel without affecting any other systems. The potential downside is that we have to build another interface function for the billing and shipping systems to enable them to consume address change messages.\n\nBecause we are dealing with multiple types of addresses (shipping and billing addresses) we need to make sure that only the right type of address is stored in each system. We need to avoid sending an address change message to the shipping system if the address is a billing address. We accomplish this by using Message Filters that only pass messages matching certain criteria (see diagram).\n\nWe also use [*Message Translator*](MessageTranslator.html)s to translate the generic Address Change message into the specific message format used by the applications. In this case we do not use a [*Message Translator*](MessageTranslator.html) for the Web Interface because we define the [*Canonical Data Model*](CanonicalDataModel.html) as equal to the format of the Web Interface application. This could limit out flexibility if we want to introduce other ways of changing addresses in the future, but for now it is sufficient.\n\n*Propagating Address Changes via a Separate Publish-Subscribe Channel*\n\nBoth the shipping and the billing system store addresses in a relational database so that we use a database [*Channel Adapter*](ChannelAdapter.html) to update the data in each system.\n\nHow do we decide between the two options? In our situation the message traffic is not much of a concern because we only process a few hundred orders a day, so either solution would work well. The main decision driver is going to be the internal structure of the applications. We may not be able to insert the addresses directly into the database, but rather through the applications’ business layer. In this case the applications may perform additional validation steps and record the address change activity. The system may even be programmed to e-mail a confirmation message to the customer every time the address changes. This would get very annoying if the update the address with every order. Such a condition would favor propagating address changes using dedicated messages that are sent only when the customer actually changes the address.\n\nIn general we prefer well-defined, self-contained business actions such as “Change Address” and “Place Order” because they give us more flexibility in orchestrating the businesses processes. It all comes down to a question of granularity and the associated trade-offs. Fine-grained interfaces can lead to sluggish systems due to an excessive number of remote calls being made or messages being sent. For example, imagine an interface that exposes a separate method to change each address field. This approach would be efficient if the communication happens inside a single application – you only update those fields that changed. In an integration scenario sending six or seven messages to update an address would be a significant overhead plus we would have to deal with synchronizing the individual messages. Fine-grained interfaces also lead to tight coupling. If we change the address format, we have to define new message formats and change all other applications to send an additional message.\n\nCoarse grained interfaces solve these issues. We send fewer messages and are therefore more efficient and less tightly coupled. However, interfaces that are too coarse can limit our flexibility. If Send Invoice and Change Address are combined into one external function, will we never need to change an address without sending a bill? So as always the best answer is the happy medium and depends on the specific trade-offs at work in the real-life scenario.\n\n**New Catalog**\n\nIn order for customers to place orders they need to see the currently offered items and their prices on-line. WGRUS’ catalog is driven by the offerings from the respective suppliers. However, one of the services that WGRUS provides to its customers is allowing them to view widgets and gadgets on the same site and to order both types of items in a single order. This function is an example of an Information Portal scenario – we combine information from multiple sources into a single view.\n\nIt turns out that both suppliers update their product catalog once every 3 months. Therefore, it makes relatively little sense to create a real-time messaging infrastructure to propagate catalog changes from the suppliers to WGRUS. Instead, we use File Transfer integration to move catalog data from suppliers to WGRUS. The other advantage of using files is that they are easily and efficiently transported across public networks using FTP or similar protocols. In comparison, most asynchronous messaging infrastructures do not work well over the public Internet.\n\nWe still can use Translators and Adapters to transform the data to our internal catalog format. However, these Translators process a whole catalog at once instead of one item at a time. This approach is much more efficient if we are dealing with large amounts of data in the same format.\n\n*Updating Catalog Data via File Transfer*\n\n**Announcements**\n\nIn order to improve business, we want to announce specials to our customers every once in a while. In order to not annoy the customers, we allow the customer to only receive messages that are of interest to them. We also want to target specific messages to a specific subset of customers. For example, we may announce special deals only to preferred customers. When we need to send information to multiple recipients, a [*Publish-Subscribe Channel*](PublishSubscribeChannel.html) immediately comes to mind. However, a [*Publish-Subscribe Channel*](PublishSubscribeChannel.html) has some disadvantages. First, it allows any subscriber to listen to the published messages without the publisher’s knowledge. For example, we would not want smaller customers to receive special offers intended for high-volume customers. The second downside of [*Publish-Subscribe Channel*](PublishSubscribeChannel.html)s is that they work efficiently only on local networks. If we send data across wide-area networks the [*Publish-Subscribe Channel*](PublishSubscribeChannel.html) we have to send a separate copy of the message to each recipient. If a recipient is not interested in the message we would have incurred unnecessary network traffic.\n\nTherefore, we should look for a solution that allows subscribers to issue their subscription preferences and then send individual messages only to interested (and authorized) customers. In order to perform this function we use a *Dynamic Recipient List*. A *Dynamic Recipient List* is the combination of two Message Routing patterns. A [*Recipient List*](RecipientList.html) is a router that propagates a single message to a set of recipients. The main difference between the [*Recipient List*](RecipientList.html) and a [*Publish-Subscribe Channel*](PublishSubscribeChannel.html) is that the [*Recipient List*](RecipientList.html) addresses each recipient specifically and therefore has tight control over who receives messages. A [*Dynamic Router*](DynamicRouter.html) is a router whose routing algorithm can change based on control messages. These control messages can take the form of subscription preferences issued by the subscribers. Combining these two patterns results in a *Dynamic Recipient List*.\n\n*Sending Announcements With a Dynamic Recipient List*\n\nIf customers receive announcements via e-mail, the implementation of these patterns can use the mailing lists features typically supplied by e-mail systems. Each recipient channel is then identified by an e-mail address. Likewise, if customers prefer to receive announcements via a Web services interface, each recipient channel is implemented by a SOAP request and the channel address is the URI of the Web service. This example illustrates that the patterns we use to describe the solution design are independent of a specific transport technology.\n\n**Testing and Monitoring**\n\nMonitoring the correct execution of messages is a critical operations and support function. The [*Message Store*](MessageStore.html) can provide us with some important business metrics such as the average time to fulfill an order. However, we may need for more detailed information for the successful operation of an integration solution. Let’s assume we enhance our solution to access an external credit agency to better assess our customer’s credit standing. Even if we show no outstanding payments we may want to decline a customer’s order if the customer’s credit ranking is particularly poor. This is especially useful for new customers. Because the service is provided by an outside provider we are being charged for its use. To verify the provider’s invoice we want to track our actual usage and reconcile the two reports. We cannot simply go by the number of orders because the business logic may not request an external credit check for long-standing customers. Also, we have a Quality of Service (QoS) with the external provider. If the response time exceeds a specified time, we do not have to pay for the request.\n\nTo make sure we are being billed correctly we want to track the number of requests we made and the time it takes for the associated response to arrive. We have to be able to deal with two specific situations. The external service can process more than one request at a time, so we need to be able to match up request and reply messages. Second, since we treat the external service as a shared service inside our enterprise we want to allow the service consumer to specify a [*Return Address*](ReturnAddress.html), the channel where the service should send the reply message. It could be difficult to match request and reply messages if we don’t know which channel the reply message is on.\n\nOnce again the [*Smart Proxy*](SmartProxy.html) is the answer. We insert the [*Smart Proxy*](SmartProxy.html) between any service consumer and the external service. We replace the [*Return Address*](ReturnAddress.html) specified by the service consumer with a fixed reply channel. We store the original [*Return Address*](ReturnAddress.html) inside the [*Smart Proxy*](SmartProxy.html) so that it can forward the reply message to the channel specified by the consumer. The [*Smart Proxy*](SmartProxy.html) also measures the time elapsed between request and reply message from the external service. The [*Smart Proxy*](SmartProxy.html) publishes this data to the [*Control Bus*](ControlBus.html). The [*Control Bus*](ControlBus.html) is connected to a management console that collects metrics from many different components.\n\n*Inserting a Smart Proxy to Track Response Times*\n\nWe also want to make sure that the external credit service is working correctly. The [*Smart Proxy*](SmartProxy.html) can report cases where no reply message is received within a specified time-out period to the management console. Much harder to detect are cases where the external service returns a reply message but the results in the message are incorrect. For example is the external service malfunctions and returns a credit score of zero for every customer we would end up denying every order. There are two mechanisms that can help us protect against such a scenario. First, we can periodically inject a [*Test Message*](TestMessage.html) into the request stream. This [*Test Message*](TestMessage.html) requests the score for a specific person so that the result is known. We can then use a *Test Data Verifier* to not only check the fact that a reply was received but also the accuracy of the message content. Because the [*Smart Proxy*](SmartProxy.html) supports Reply Addresses the *Test Data Generator* can specify a special reply channel to separate test replies from regular replies (see picture).\n\n*Inserting Test Messages to Verify Accurate Results*\n\nAnother effective strategy to detect malfunctioning services that return messages in a valid format but with bad data is to take a statistical sample. For example, we may expect to decline an average of less than one in 10 orders due to the customer’s poor standing. If we decline more than 5 orders in a row this may be an indication that an external service or some business logic is malfunctioning. The management console could e-mail the five orders to an administrator who can then take a quick look at the data to verify whether the rejections were justified.\n\n## Summary\n\nWe have walked through a fairly extensive integration scenario using different integration strategies such as [*File Transfer*](FileTransferIntegration.html), [*Shared Database*](SharedDataBaseIntegration.html) and asynchronous [*Messaging*](Messaging.html). We routed, split and aggregated messages. We also added functions to monitor the correct operation of the solution. While the requirements for this example were admittedly simplified the issues and design trade-offs we had to consider are very real. The solution diagrams and descriptions highlight how we can describe a solution in a vendor-and technology-neutral language that is much more accurate than a high-level sequence diagram.\n\nThe integration scenario in this chapter focused primarly on how to connect existing applications. For a detailed description on how to publish and consume messages from inside a custom application see the examples in Chapter 6 and Chapter 9 (see [*Introduction to Simple Messaging Examples*](SimpleMessagingIntro.html) and [*Introduction to Composed Messaging Examples*](ComposedMessagingExample.html))\n\nThe remainder of the book contains detailed descriptions and code examples for each of the patterns that we used in our solution design. The patterns are categorized by their primary intent between base patterns, channel patterns, message patterns, routing patterns, transformation patterns, endpoint patterns and system management patterns. This arrangement makes it easy to read all patterns in sequence or look up individual patterns as a reference.\n\n## Integration Pattern Language\n\n[Message Construct.](MessageConstructionIntro.html)\n\n[Message](Message.html)\n\n[Command Message](CommandMessage.html)\n\n[Document Message](DocumentMessage.html)\n\n[Event Message](EventMessage.html)\n\n[Request-Reply](RequestReply.html)\n\n[Return Address](ReturnAddress.html)\n\n[Correlation Identifier](CorrelationIdentifier.html)\n\n[Message Sequence](MessageSequence.html)\n\n[Message Expiration](MessageExpiration.html)\n\n[Format Indicator](FormatIndicator.html)\n\n[Message Routing](MessageRoutingIntro.html)\n\n[Pipes-and-Filters](PipesAndFilters.html)\n\n[Message Router](MessageRouter.html)\n\n[Content-based Router](ContentBasedRouter.html)\n\n[Message Filter](Filter.html)\n\n[Dynamic Router](DynamicRouter.html)\n\n[Recipient List](RecipientList.html)\n\n[Splitter](Sequencer.html)\n\n[Aggregator](Aggregator.html)\n\n[Resequencer](Resequencer.html)\n\n[Composed Msg. Processor](DistributionAggregate.html)\n\n[Scatter-Gather](BroadcastAggregate.html)\n\n[Routing Slip](RoutingTable.html)\n\n[Process Manager](ProcessManager.html)\n\n[Message Broker](MessageBroker.html)\n\n[Message\nTransformation](MessageTransformationIntro.html)\n\n[Message Translator](MessageTranslator.html)\n\n[Envelope Wrapper](EnvelopeWrapper.html)\n\n[Content Enricher](DataEnricher.html)\n\n[Content Filter](ContentFilter.html)\n\n[Claim Check](StoreInLibrary.html)\n\n[Normalizer](Normalizer.html)\n\n[Canonical Data Model](CanonicalDataModel.html)\n\n[Messaging Endpoints](MessagingEndpointsIntro.html)\n\n[Message Endpoint](MessageEndpoint.html)\n\n[Messaging Gateway](MessagingGateway.html)\n\n[Messaging Mapper](MessagingMapper.html)\n\n[Transactional Client](TransactionalClient.html)\n\n[Polling Consumer](PollingConsumer.html)\n\n[Event-driven Consumer](EventDrivenConsumer.html)\n\n[Competing Consumers](CompetingConsumers.html)\n\n[Message Dispatcher](MessageDispatcher.html)\n\n[Selective Consumer](MessageSelector.html)\n\n[Durable Subscriber](DurableSubscription.html)\n\n[Idempotent Receiver](IdempotentReceiver.html)\n\n[Service Activator](MessagingAdapter.html)\n\n[Messaging Channels](MessagingChannelsIntro.html)\n\n[Message Channel](MessageChannel.html)\n\n[Point-to-Point Channel](PointToPointChannel.html)\n\n[Publish-Subscr. Channel](PublishSubscribeChannel.html)\n\n[Datatype Channel](DatatypeChannel.html)\n\n[Invalid Message Channel](InvalidMessageChannel.html)\n\n[Dead Letter Channel](DeadLetterChannel.html)\n\n[Guaranteed Delivery](GuaranteedMessaging.html)\n\n[Channel Adapter](ChannelAdapter.html)\n\n[Messaging Bridge](MessagingBridge.html)\n\n[Message Bus](MessageBus.html)\n\n[Systems Mgmt.](SystemManagementIntro.html)\n\n[Control Bus](ControlBus.html)\n\n[Detour](Detour.html)\n\n[Wire Tap](WireTap.html)\n\n[Message History](MessageHistory.html)\n\n[Message Store](MessageStore.html)\n\n[Smart Proxy](SmartProxy.html)\n\n[Test Message](TestMessage.html)\n\n[Channel Purger](ChannelPurger.html)", "znaku_textu": 80799, "slov": 12307, "odkazu": 112, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 14:54:54", "sha256": "0d44128b54c6346240be872f77d6c4e3c76e11f6d7ac1b245aeee37a4ff9006f", "hloubka": 3, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://www.amazon.com/exec/obidos/ASIN/1881378241/enterpriseint-20", "http://www.amazon.com/exec/obidos/ASIN/0471327204/enterpriseint-20", "http://citeseer.nj.nec.com/waldo94note.html", "http://www.amazon.com/exec/obidos/ASIN/0130217530/enterpriseint-20", "http://www.amazon.com/exec/obidos/ASIN/1580530214/enterpriseint-20", "https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "https://www.architectelevator.com/book", "https://www.cloudstrategybook.com/", "https://www.platformstrategybook.info/"]} {"url": "http://www.enterpriseintegrationpatterns.com/patterns/messaging/CommandMessage.html", "titulek": "Command Message - Enterprise Integration Patterns", "h1": "", "popis": "How can messaging be used to invoke a procedure in another application?", "klicova_slova": "Command Message,integration, messaging, events, patterns, event-driven, coupling, eai, middleware, application integration, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns", "og:title": "Command Message - Enterprise Integration Patterns", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/CommandMessage.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/CommandMessageSolution.gif"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Integration Pattern Language"}], "markdown": "Messaging Patterns\n\n[Messaging Patterns](index.html)\n\n- [Integration Styles](IntegrationStylesIntro.html)\n- [Messaging Systems](MessagingComponentsIntro.html)\n- [Messaging Channels](MessagingChannelsIntro.html)\n- [Message Construction](MessageConstructionIntro.html)\n- [Interlude: Simple Messaging](SimpleMessagingIntro.html)\n- [Message Routing](MessageRoutingIntro.html)\n- [Message Transformation](MessageTransformationIntro.html)\n- [Interlude: Composed Messaging](ComposedMessagingExample.html)\n- [Messaging Endpoints](MessagingEndpointsIntro.html)\n- [System Management](SystemManagementIntro.html)\n- Interlude: Systems Management Example\n- Integration Patterns in Practice\n- Concluding Remarks\n- Appendices\n\n| | Command Message[Messaging Patterns](index.html) » [Message Construction](MessageConstructionIntro.html) | [Contents](toc.html)[⇐ Prev](MessageConstructionIntro.html)[Next ⇒](DocumentMessage.html) |\n| --- | --- | --- |\n\nAn application needs to invoke functionality provided by other applications. It would typically use [*Remote Procedure Invocation*](EncapsulatedSynchronousIntegration.html), but would like to take advantage of the benefits of using [*Messaging*](Messaging.html).\n\nHow can messaging be used to invoke a procedure in another application?\n\nUse a *Command Message* to reliably invoke a procedure in another application.\n\nThere is no specific message type for commands; a *Command Message* is simply a regular message that happens to contain a command. In JMS, the command message could be any type of message; examples include an ObjectMessage containing a Serializable command object, a TextMessage containing the command in XML form, etc. In .NET, a command message is a Message with a command stored in it. A Simple Object Access Protocol (SOAP) request is a command message.\n\n...\nRead the entire pattern in the book [Enterprise Integration Patterns](/books1.html)\n\n**Related patterns:**\n\n[*Remote Procedure Invocation*](EncapsulatedSynchronousIntegration.html), [*Message*](Message.html), [*Message Channel*](MessageChannel.html), [*Messaging*](Messaging.html), [*Point-to-Point Channel*](PointToPointChannel.html)\n\n---\n\n## Integration Pattern Language\n\n[Message Construct.](MessageConstructionIntro.html)\n\n[Message](Message.html)\n\n[Command Message](CommandMessage.html)\n\n[Document Message](DocumentMessage.html)\n\n[Event Message](EventMessage.html)\n\n[Request-Reply](RequestReply.html)\n\n[Return Address](ReturnAddress.html)\n\n[Correlation Identifier](CorrelationIdentifier.html)\n\n[Message Sequence](MessageSequence.html)\n\n[Message Expiration](MessageExpiration.html)\n\n[Format Indicator](FormatIndicator.html)\n\n[Message Routing](MessageRoutingIntro.html)\n\n[Pipes-and-Filters](PipesAndFilters.html)\n\n[Message Router](MessageRouter.html)\n\n[Content-based Router](ContentBasedRouter.html)\n\n[Message Filter](Filter.html)\n\n[Dynamic Router](DynamicRouter.html)\n\n[Recipient List](RecipientList.html)\n\n[Splitter](Sequencer.html)\n\n[Aggregator](Aggregator.html)\n\n[Resequencer](Resequencer.html)\n\n[Composed Msg. Processor](DistributionAggregate.html)\n\n[Scatter-Gather](BroadcastAggregate.html)\n\n[Routing Slip](RoutingTable.html)\n\n[Process Manager](ProcessManager.html)\n\n[Message Broker](MessageBroker.html)\n\n[Message\nTransformation](MessageTransformationIntro.html)\n\n[Message Translator](MessageTranslator.html)\n\n[Envelope Wrapper](EnvelopeWrapper.html)\n\n[Content Enricher](DataEnricher.html)\n\n[Content Filter](ContentFilter.html)\n\n[Claim Check](StoreInLibrary.html)\n\n[Normalizer](Normalizer.html)\n\n[Canonical Data Model](CanonicalDataModel.html)\n\n[Messaging Endpoints](MessagingEndpointsIntro.html)\n\n[Message Endpoint](MessageEndpoint.html)\n\n[Messaging Gateway](MessagingGateway.html)\n\n[Messaging Mapper](MessagingMapper.html)\n\n[Transactional Client](TransactionalClient.html)\n\n[Polling Consumer](PollingConsumer.html)\n\n[Event-driven Consumer](EventDrivenConsumer.html)\n\n[Competing Consumers](CompetingConsumers.html)\n\n[Message Dispatcher](MessageDispatcher.html)\n\n[Selective Consumer](MessageSelector.html)\n\n[Durable Subscriber](DurableSubscription.html)\n\n[Idempotent Receiver](IdempotentReceiver.html)\n\n[Service Activator](MessagingAdapter.html)\n\n[Messaging Channels](MessagingChannelsIntro.html)\n\n[Message Channel](MessageChannel.html)\n\n[Point-to-Point Channel](PointToPointChannel.html)\n\n[Publish-Subscr. Channel](PublishSubscribeChannel.html)\n\n[Datatype Channel](DatatypeChannel.html)\n\n[Invalid Message Channel](InvalidMessageChannel.html)\n\n[Dead Letter Channel](DeadLetterChannel.html)\n\n[Guaranteed Delivery](GuaranteedMessaging.html)\n\n[Channel Adapter](ChannelAdapter.html)\n\n[Messaging Bridge](MessagingBridge.html)\n\n[Message Bus](MessageBus.html)\n\n[Systems Mgmt.](SystemManagementIntro.html)\n\n[Control Bus](ControlBus.html)\n\n[Detour](Detour.html)\n\n[Wire Tap](WireTap.html)\n\n[Message History](MessageHistory.html)\n\n[Message Store](MessageStore.html)\n\n[Smart Proxy](SmartProxy.html)\n\n[Test Message](TestMessage.html)\n\n[Channel Purger](ChannelPurger.html)\n\n- » [Read the latest in My Blog](/ramblings)\n- » [Get more insights from My Articles](/articles.html)\n- » [See me live in my Upcoming Talks](/talks)\n\nYou can reuse the following elements under the [Creative Commons Attribution](http://creativecommons.org/licenses/by/4.0/) license: pattern icon, pattern name, problem and solution statements (in bold), and the sketch. Other portions are protected by copyright.\n\n[Enterprise Integration Patterns](https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20)\nThe de-facto language for designing asynchronous, distributed systems. Over 100,000 copies sold.\n\n[The Software Architect Elevator](https://www.architectelevator.com/book)\n\n Rethink the role of architects as a connecting element across organizational layers. Acquire the technical, communication, and organizational skills to succeed in this new role.\n\n[Cloud Strategy](https://www.cloudstrategybook.com)\n\n Make your cloud migration a success by translating high-level goals into conscious decisions with well-understood trade-offs.\n\n[Platform Strategy](https://www.platformstrategybook.info)\n\n Platforms can boost innovation through harmonization, but they aren't easy to build. Learn from over a decade of designing and rolling out IT platforms.", "znaku_textu": 6102, "slov": 500, "odkazu": 108, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/CommandMessage.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 14:55:19", "sha256": "53bdbb89e16b007c7336df050ed4744bf812f662c16c591bd2a827adb236c23f", "hloubka": 3, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://creativecommons.org/licenses/by/4.0/", "https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "https://www.architectelevator.com/book", "https://www.cloudstrategybook.com/", "https://www.platformstrategybook.info/"]} {"url": "http://www.enterpriseintegrationpatterns.com/patterns/messaging/CompetingConsumers.html", "titulek": "Competing Consumers - Enterprise Integration Patterns", "h1": "", "popis": "How can a messaging client process multiple messages concurrently?", "klicova_slova": "Competing Consumers,integration, messaging, events, patterns, event-driven, coupling, eai, middleware, application integration, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns", "og:title": "Competing Consumers - Enterprise Integration Patterns", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/CompetingConsumers.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/CompetingConsumers.gif"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Example: Apache KafkaNEW"}, {"uroven": 2, "text": "Integration Pattern Language"}], "markdown": "| | Competing Consumers[Messaging Patterns](index.html) » [Messaging Endpoints](MessagingEndpointsIntro.html) | [Contents](toc.html)[⇐ Prev](EventDrivenConsumer.html)[Next ⇒](MessageDispatcher.html) |\n| --- | --- | --- |\n\nAn application is using [*Messaging*](Messaging.html). However, it cannot process messages as fast as they’re being added to the channel.\n\nHow can a messaging client process multiple messages concurrently?\n\nCreate multiple *Competing Consumers* on a single channel so that the consumers can process multiple messages concurrently.\n\n*Competing Consumers* are multiple consumers that are all created to receive messages from a single [*Point-to-Point Channel*](PointToPointChannel.html). When the channel delivers a message, any of the consumers could potentially receive it. The messaging system's implementation determines which consumer actually receives the message, but in effect the consumers compete with each other to be the receiver. Once a consumer receives a message, it can delegate to the rest of its application to help process the message. (This solution only works with [*Point-to-Point Channel*](PointToPointChannel.html)s; multiple consumers on a [*Publish-Subscribe Channel*](PublishSubscribeChannel.html) just create more copies of each message.)\n\n*Competing Consumers Sequence*\n\n...\nRead the entire pattern in the book [Enterprise Integration Patterns](/books1.html)\n\n## Example: Apache Kafka[NEW](/ramblings/eip1_examples_updated.html)\n\n[Apache Kafka](http://kafka.apache.org) is a distributed streaming platform that allows clients to consume messages in both [*Publish-Subscribe Channel*](PublishSubscribeChannel.html) and *Competing Consumers* semantics. Kafka is optimized for high throughout and horizontal scalability and therefore tries to avoid the overhead that can be inherent in coordinating across multiple *Competing Consumers*. So while the client interface allows multiple consumers to consume messages off a topic in a competing fashion, guaranteeing that each message is only consumed by one of the consumers, the implementation actually relies on multiple *partitions* implemented as [*Point-to-Point Channel*](PointToPointChannel.html)s:\n\nIn the example above, a Kafka topic consists of three partitions divided across two consumers. A [*Message Router*](MessageRouter.html) distributes the messages across the three [*Point-to-Point Channel*](PointToPointChannel.html)s. This router is generally a [*Content-Based Router*](ContentBasedRouter.html) that works off the message key. This allows the sender to control the distribution of messages, e.g. to assure related messages go onto the same partition. This can be necessary to preserve order because in-order delivery is not guaranteed across partitions.\n\nThis design implies that the decision which consumer receives the message is made *a priori*, meaning consumers don't actually compete but rather read from independent channels. This limits the ability to load balance between consumers, e.g. if one channel runs empty, the corresponding consumer won't be able to aid other consumers whose channels still have messages. Also, as the number of partitions is set independently, not all consumers will service the same number of partitions, as illustrated in the example above.\n\nHowever, as Kafka partitions are relatively inexpensive, there are usually lots of them, meaning that each consumer is in reality likely to read of many partitions and therefore channels. This highlights another trade-off: there can't be more competing consumers in a *consumer group* than there are partitions on that topic.\n\n**Related patterns:**\n\n[*Content-Based Router*](ContentBasedRouter.html), [*Event-Driven Consumer*](EventDrivenConsumer.html), [*Message*](Message.html), [*Message Channel*](MessageChannel.html), [*Message Dispatcher*](MessageDispatcher.html), [*Message Router*](MessageRouter.html), [*Messaging*](Messaging.html), [*Point-to-Point Channel*](PointToPointChannel.html), [*Polling Consumer*](PollingConsumer.html), [*Publish-Subscribe Channel*](PublishSubscribeChannel.html), [*Transactional Client*](TransactionalClient.html)\n\n---\n\n## Integration Pattern Language\n\n[Message Construct.](MessageConstructionIntro.html)\n\n[Message](Message.html)\n\n[Command Message](CommandMessage.html)\n\n[Document Message](DocumentMessage.html)\n\n[Event Message](EventMessage.html)\n\n[Request-Reply](RequestReply.html)\n\n[Return Address](ReturnAddress.html)\n\n[Correlation Identifier](CorrelationIdentifier.html)\n\n[Message Sequence](MessageSequence.html)\n\n[Message Expiration](MessageExpiration.html)\n\n[Format Indicator](FormatIndicator.html)\n\n[Message Routing](MessageRoutingIntro.html)\n\n[Pipes-and-Filters](PipesAndFilters.html)\n\n[Message Router](MessageRouter.html)\n\n[Content-based Router](ContentBasedRouter.html)\n\n[Message Filter](Filter.html)\n\n[Dynamic Router](DynamicRouter.html)\n\n[Recipient List](RecipientList.html)\n\n[Splitter](Sequencer.html)\n\n[Aggregator](Aggregator.html)\n\n[Resequencer](Resequencer.html)\n\n[Composed Msg. Processor](DistributionAggregate.html)\n\n[Scatter-Gather](BroadcastAggregate.html)\n\n[Routing Slip](RoutingTable.html)\n\n[Process Manager](ProcessManager.html)\n\n[Message Broker](MessageBroker.html)\n\n[Message\nTransformation](MessageTransformationIntro.html)\n\n[Message Translator](MessageTranslator.html)\n\n[Envelope Wrapper](EnvelopeWrapper.html)\n\n[Content Enricher](DataEnricher.html)\n\n[Content Filter](ContentFilter.html)\n\n[Claim Check](StoreInLibrary.html)\n\n[Normalizer](Normalizer.html)\n\n[Canonical Data Model](CanonicalDataModel.html)\n\n[Messaging Endpoints](MessagingEndpointsIntro.html)\n\n[Message Endpoint](MessageEndpoint.html)\n\n[Messaging Gateway](MessagingGateway.html)\n\n[Messaging Mapper](MessagingMapper.html)\n\n[Transactional Client](TransactionalClient.html)\n\n[Polling Consumer](PollingConsumer.html)\n\n[Event-driven Consumer](EventDrivenConsumer.html)\n\n[Competing Consumers](CompetingConsumers.html)\n\n[Message Dispatcher](MessageDispatcher.html)\n\n[Selective Consumer](MessageSelector.html)\n\n[Durable Subscriber](DurableSubscription.html)\n\n[Idempotent Receiver](IdempotentReceiver.html)\n\n[Service Activator](MessagingAdapter.html)\n\n[Messaging Channels](MessagingChannelsIntro.html)\n\n[Message Channel](MessageChannel.html)\n\n[Point-to-Point Channel](PointToPointChannel.html)\n\n[Publish-Subscr. Channel](PublishSubscribeChannel.html)\n\n[Datatype Channel](DatatypeChannel.html)\n\n[Invalid Message Channel](InvalidMessageChannel.html)\n\n[Dead Letter Channel](DeadLetterChannel.html)\n\n[Guaranteed Delivery](GuaranteedMessaging.html)\n\n[Channel Adapter](ChannelAdapter.html)\n\n[Messaging Bridge](MessagingBridge.html)\n\n[Message Bus](MessageBus.html)\n\n[Systems Mgmt.](SystemManagementIntro.html)\n\n[Control Bus](ControlBus.html)\n\n[Detour](Detour.html)\n\n[Wire Tap](WireTap.html)\n\n[Message History](MessageHistory.html)\n\n[Message Store](MessageStore.html)\n\n[Smart Proxy](SmartProxy.html)\n\n[Test Message](TestMessage.html)\n\n[Channel Purger](ChannelPurger.html)", "znaku_textu": 6852, "slov": 682, "odkazu": 110, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/CompetingConsumers.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 14:56:01", "sha256": "4e7aeddaaaf41076903f75e647af7990dcdb940fb5c13c1da0793261f33f003d", "hloubka": 3, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://kafka.apache.org/", "http://creativecommons.org/licenses/by/4.0/", "https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "https://www.architectelevator.com/book", "https://www.cloudstrategybook.com/", "https://www.platformstrategybook.info/"]} {"url": "http://www.enterpriseintegrationpatterns.com/patterns/messaging/ComposedMessagingExample.html", "titulek": "Introduction to Composed Messaging Examples - Enterprise Integration Patterns", "h1": "", "popis": "This chapter demonstrates how to compose routing and transformation patterns into a larger solution. We chose to model the process of a consumer obtaining quotes for a loan from multiple banks. We simplified the process a little bit so we can focus on a discussion of integration patterns as opposed to holding a lecture in consumer financial services. Based on the patterns that we defined we discuss and create three alternative implementations for this process, using different programming languages, technologies and messaging models.", "klicova_slova": "Introduction to Composed Messaging Examples,integration, messaging, events, patterns, event-driven, coupling, eai, middleware, application integration, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns", "og:title": "Introduction to Composed Messaging Examples - Enterprise Integration Patterns", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/ComposedMessagingExample.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/eip1_patterns_wide.png"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Overview"}, {"uroven": 2, "text": "Obtaining a Loan Quote"}, {"uroven": 2, "text": "Designing the Message Flow"}, {"uroven": 2, "text": "Sequencing: Synchronous vs. Asynchronous"}, {"uroven": 2, "text": "Addressing: Distribution vs. Auction"}, {"uroven": 2, "text": "Aggregating Strategies: Multiple Channels vs. Single Channel"}, {"uroven": 2, "text": "Managing Concurrency"}, {"uroven": 2, "text": "Three Implementations"}, {"uroven": 2, "text": "Integration Pattern Language"}], "markdown": "| | Introduction to Composed Messaging Examples[Messaging Patterns](index.html) » [Interlude: Composed Messaging](ComposedMessagingExample.html) | [Contents](toc.html)[⇐ Prev](CanonicalDataModel.html)[Next ⇒](ComposedMessagingWS.html) |\n| --- | --- | --- |\n\n## Overview\n\nThis chapter demonstrates how to compose routing and transformation patterns into a larger solution. We chose to model the process of a consumer obtaining quotes for a loan from multiple banks. We simplified the process a little bit so we can focus on a discussion of integration patterns as opposed to holding a lecture in consumer financial services. Based on the patterns that we defined we discuss and create three alternative implementations for this process, using different programming languages, technologies and messaging models.\n\n## Obtaining a Loan Quote\n\nWhen shopping for a loan, a customer usually calls several banks to find the deal with the best possible interest rate. Each bank asks the customer for his or her social security number, the amount of the loan and the desired term , i.e. the number of months until the loan has to be paid off. Each bank then investigates the customer's credit background, usually by contacting a credit agency. Based on the requested terms and the customer's credit history, the bank responds with an interest rate quote to the consumer (or declines thankfully). Once the customer has received quotes from all banks, he or she can then select the best offer, i.e. the lowest interest rate.\n\n*A Consumer Talking to Banks to Get a Loan Quote*\n\nBecause contacting multiple banks with a loan quote request is a tedious task, loan brokers offer this service to consumers. A loan broker is typically not affiliated with any one bank but has access to many lending institutions. The broker gathers the customer data once and contacts the credit agency to obtain the customer's credit history. Based on the credit score and history, the broker presents the request to a number of banks that are best suited to meet the customer’s criteria. The broker gathers the resulting quotes from the banks and selects the best offer (i.e. the lowest interest rate) to pass back to the consumer.\n\n*A Loan Broker Acting as Intermediary*\n\n## Designing the Message Flow\n\nWe want to design a loan broker system using integration patterns in the previous chapters. To do this, let's first list the individual tasks that the loan broker needs to perform.\n\n1. Receive the consumer's loan quote request\n2. Obtain credit score and history from credit agency\n3. Determine the most appropriate banks to contact\n4. Send a request to each selected bank\n5. Collect responses from each selected bank\n6. Determine the best response\n7. Pass the result back to the consumer\n\nLet's have a look to see which patterns could help us implement the loan broker. The first step describes how the broker receives the incoming request. We cover this topic in much more detail in the following chapter on endpoint patterns. So for now, let's skip over this step and assume the message is somehow received by the broker. Now, the broker has to retrieve some additional information, i.e. the customer's credit score. A [*Content Enricher*](DataEnricher.html) sounds like the ideal choice for this task. Once the broker has the complete information, the broker has to determine the appropriate banks to route the request message to. We can accomplish this with another [*Content Enricher*](DataEnricher.html) that computes the list of recipients for the request. Sending a request message to multiple recipients and re-combining the responses back into a single message is the specialty of the [*Scatter-Gather*](BroadcastAggregate.html). The [*Scatter-Gather*](BroadcastAggregate.html) can use a [*Publish-Subscribe Channel*](PublishSubscribeChannel.html) or a [*Recipient List*](RecipientList.html) to send the request to the banks. Once the banks reply with their rate quotes, the [*Scatter-Gather*](BroadcastAggregate.html) aggregates the individual rate quotes into a single quote for the consumer using an [*Aggregator*](Aggregator.html).\n\nIf we model the message flow using these patterns, we arrive at the following design:\n\n*Simple Loan Broker Design*\n\nWe have not yet accounted for the likely event that each bank may use a slightly different message format for the loan request and response. Because we want to separate the routing and aggregation logic from the banks' proprietary formats, we need to insert [*Message Translator*](MessageTranslator.html)s into the communication lines between the broker and the banks. We can use a [*Normalizer*](Normalizer.html) to translate the individual responses into a common format:\n\n*Complete Loan Broker Design*\n\n## Sequencing: Synchronous vs. Asynchronous\n\nSo far, we have described the flow of the messages and the routing and transformation patterns we can use to describe the design of the loan broker component. We have not yet discussed the timing of the broker operation. We have two primary choices:\n\n- **Synchronous (Sequential)** : The broker asks one bank for the quote and waits for a response.\n- **Asynchronous (Parallel)** : The broker sends all quote requests at once and waits for the answers to come back.\n\nWe can use UML sequence diagrams to illustrate the two options. The synchronous option implies a sequential processing of all loan requests (see picture). This solution has the advantage of being simpler to manage because we do not have to deal with any concurrency issues or threads. However, it is an inefficient solution because we do not take advantage of the fact that each bank possesses independent processing power and could be executing requests simultaneously. As a result, the consumer might have to wait a long time for an answer.\n\n*Synchronous, Sequential Processing of Loan Requests*\n\nThe asynchronous solution issues all requests right away so that each bank can start processing. As the banks finish the computation, they return the results to the loan broker. This solution allows for a much quicker response. For example, if all banks take a similar amount of time to produce a loan quote, this solution is almost *n* times faster where *n* is the number of banks we are dealing with. The loan broker now needs to be able to accept the loan quote messages in any order because there is no guarantee that responses arrive in the same order that requests were made. The following sequence diagram illustrates this option. The half arrowhead on the loan quote requests indicate asynchronous invocations.\n\n*Asynchronous, Parallel Processing of Loan Requests*\n\nAnother significant advantage of using asynchronous invocation over a message queue is the ability to create more than one instance of a service. For example, if it turns out that the credit bureau is a bottleneck, we could decide to run two instances of the credit bureau component. Because the loan broker sends the request message to a queue instead of directly to the credit bureau component it does not matter which component instance processes the message as long as the response is put back onto the response channel.\n\n## Addressing: Distribution vs. Auction\n\nUsing a [*Scatter-Gather*](BroadcastAggregate.html) to obtain the best quote allows us to choose from two addressing mechanisms, a [*Recipient List*](RecipientList.html) or a [*Publish-Subscribe Channel*](PublishSubscribeChannel.html). The decision primarily depends on how much control do we want to exert over the banks who are allowed to participate in a specific loan request? Again, we have a number of choices:\n\n- **Fixed** : The list of banks is hard-coded. Each loan request goes to the same set of banks.\n- **Distribution** : The broker maintains criteria on which banks are a good match for a specific request. For example, it would not send a quote request for a customer with a poor credit history to a bank that specializes in premier customers.\n- **Auction:** The broker broadcasts the request using a [*Publish-Subscribe Channel*](PublishSubscribeChannel.html) . Any bank that is interested is allowed to subscribe to the channel and 'bid' on the request. Banks can subscribe or unsubscribe at will. Each bank can still apply its own criteria on whether to submit a bid.\n\nWhich option is best for our scenario? As always, there is no simple \"and the answer is...\", but the choice is driven by both business and technical preferences and constraints. The first option is simple and gives the broker control over the list of banks. However, if new banks come and go frequently, the solution can result in an administrative burden. Also, the bank may not be happy to be receiving a bunch of irrelevant requests because each request incurs a certain internal cost for the bank. Also, to maintain the simplicity of this approach, the aggregation strategy is more likely to require banks to submit a response. Banks may want to reserve the right to withhold from the bid.\n\nA distribution approach (using a [*Recipient List*](RecipientList.html)) gives the broker more control over which bank to involve in each loan request. This allows the broker to be more efficient by reducing the number of requests. It also allows the broker to prefer certain banks based on the business relationship. On the downside, it requires additional business logic to be implemented and maintained inside the loan broker component. Both the distribution and the fixed approach require a separate [*Message Channel*](MessageChannel.html) for each participant in order to control the message flow.\n\nUsing a [*Publish-Subscribe Channel*](PublishSubscribeChannel.html) broadcasts a loan request to all subscribing banks and lets each bank determine which requests to service. Each bank can use a [*Message Filter*](Filter.html) or implement a [*Selective Consumer*](MessageSelector.html) to filter out undesirable loan requests. This approach renders the loan broker pretty much maintenance free in case of adding or removing banks but it requires more work on the side of the banks. This solution requires only a single [*Message Channel*](MessageChannel.html), but it has to be implemented as a [*Publish-Subscribe Channel*](PublishSubscribeChannel.html). Many efficient publish-subscribe schemes use IP Multicast that typically does not route across wide-area networks or the Internet. Other implementations emulate a [*Publish-Subscribe Channel*](PublishSubscribeChannel.html) by using an array of [*Point-to-Point Channel*](PointToPointChannel.html)s and a [*Recipient List*](RecipientList.html). This approach preserves the simple semantics of a [*Publish-Subscribe Channel*](PublishSubscribeChannel.html), but is less efficient in its use of channels and network bandwidth. For additional trade-offs between routing and pub-sub plus filtering, see the description of the [*Message Filter*](Filter.html).\n\n## Aggregating Strategies: Multiple Channels vs. Single Channel\n\nWhen receiving loan quotes from the bank we have similar design choices. We can have all banks submit their responses to a single response channel or we can have a separate response channel for each bank. Using a single channel reduces the maintenance burden of setting up a separate channel for each participating bank, but requires each bank reply message to include a field identifying the bank who issued the quote. If we use a single response channel, the [*Aggregator*](Aggregator.html) may not know how many response messages to expect unless the [*Recipient List*](RecipientList.html) passes this information to the [*Aggregator*](Aggregator.html) (we call this an Initialized Aggregator). If we use an auction-style [*Publish-Subscribe Channel*](PublishSubscribeChannel.html) the number of possible responses is unknown to the loan broker so that the [*Aggregator*](Aggregator.html) has to employ a completeness condition that does not depend on the total number of participants. For example, the [*Aggregator*](Aggregator.html) could simply wait until it has a minimum of three responses. But even that would be risky if temporarily only two banks participate. In that case, the [*Aggregator*](Aggregator.html) could time out and report that it received an insufficient number of responses.\n\n## Managing Concurrency\n\nA service such as a loan broker should be able to deal with multiple clients wanting to use the service concurrently. For example, if we expose the loan broker function as a Web service or connect it to a public Web site we do not really have any control over the number of clients and we may receive hundreds or thousands of concurrent requests. We can enable the loan broker to process multiple concurrent requests using two different strategies:\n\n- Execute multiple instances.\n- A single even-driven instance\n\nThe first option maintains multiple parallel instances of the loan broker component. We can either start a new instance for each incoming request or maintain a 'pool' of active loan broker processes and assign incoming requests to the next available process (using a [*Message Dispatcher*](MessageDispatcher.html)). If no process is available we would queue up the requests until a process becomes available. A process pool has the advantage that we can allocate system resources in a predictable way. For example, we can decide to execute a maximum of 20 loan broker instances. In contrast, if we started a new process for each request we could quickly choke the machine if a spike of concurrent requests arrives. Also, maintaining a pool of running processes allows us to 'reuse' an existing process for multiple requests, saving time for process instantiation and initialization.\n\nBecause much of the 'processing' required by the loan broker is to wait for replies from external parties (the credit bureau and the banks) running many parallel processes may not be a good use of system resources. Instead, we can run a single process instance that reacts to incoming message events as they arrive. Processing an individual message (e.g. a bank quote) is a relatively simple task so that a single process may be able to service many concurrent requests. This approach uses system resources more efficiently and simplifies management of the solution due to the fact that we only have to monitor a single process instance. The potential downside is the limited scalability because we are tied to one process. Many high-volume applications use a combination of the two techniques, executing multiple parallel processes each of which can handle multiple requests concurrently.\n\nExecuting multiple concurrent requests requires us to associate each message in the system to the correct process instance. For example, it may be most convenient for a bank to send all reply messages to a fixed channel. This means that the reply channel can contain messages related to different customers' concurrent quote requests. Therefore, we need to equip each message with a [*Correlation Identifier*](CorrelationIdentifier.html) to identify which customer request the bank is responding to.\n\n## Three Implementations\n\nIn order to implement the loan broker example, we have three main design decisions to make: we have to select a sequencing scheme for the requests , we have to select and addressing scheme for the banks and we have to define an aggregation strategy. In addition we have to select a programming language and a messaging infrastructure. In aggregate, these individual options result in a large number of potential implementation choices. We chose to implement three representative solutions to highlight the main trade-offs between the different implementation options. As with all examples in this book, the choice of specific technologies is somewhat arbitrary and does not indicate the superiority of a specific vendor's technology. The following table highlights the characteristics of each solution:\n\n| **Implementation** | **Sequencing** | **Addressing** | **Aggregation** | **Channel Type** | **Product / Technology** |\n| --- | --- | --- | --- | --- | --- |\n| A | Synchronous | Distribution | Channel | Web Service / SOAP | Java / Apache Axis |\n| B | Asynchronous | Distribution | Correlation ID | Message Queue | C# / Microsoft MSMQ |\n| C | Asynchronous | Auction | Correlation ID | Pub-Sub | TIBCO ActiveEnterprise |\n\nThe first implementation uses synchronous Web Services, implemented in Java and Apache Axis. The communication with each bank occurs over a separate HTTP channel which serves both as a request and reply channel. Therefore, the aggregation strategy is based on individual reply channels and does not require correlation. The second implementation uses an asynchronous approach with message queues. We implement it using Microsoft's MSMQ, but an implementation using JMS Queues or IBM WebSphere MQ could look very similar. The last implementation uses an Auction approach and leverages TIBCO's pub-sub infrastructure and the TIB/Integration Manager [*Process Manager*](ProcessManager.html) tool. In option B and C, all reply messages arrive on a single channel and the implementations use [*Correlation Identifier*](CorrelationIdentifier.html)s to associate reply messages to customer loan quote inquiries.\n\n## Integration Pattern Language\n\n[Message Construct.](MessageConstructionIntro.html)\n\n[Message](Message.html)\n\n[Command Message](CommandMessage.html)\n\n[Document Message](DocumentMessage.html)\n\n[Event Message](EventMessage.html)\n\n[Request-Reply](RequestReply.html)\n\n[Return Address](ReturnAddress.html)\n\n[Correlation Identifier](CorrelationIdentifier.html)\n\n[Message Sequence](MessageSequence.html)\n\n[Message Expiration](MessageExpiration.html)\n\n[Format Indicator](FormatIndicator.html)\n\n[Message Routing](MessageRoutingIntro.html)\n\n[Pipes-and-Filters](PipesAndFilters.html)\n\n[Message Router](MessageRouter.html)\n\n[Content-based Router](ContentBasedRouter.html)\n\n[Message Filter](Filter.html)\n\n[Dynamic Router](DynamicRouter.html)\n\n[Recipient List](RecipientList.html)\n\n[Splitter](Sequencer.html)\n\n[Aggregator](Aggregator.html)\n\n[Resequencer](Resequencer.html)\n\n[Composed Msg. Processor](DistributionAggregate.html)\n\n[Scatter-Gather](BroadcastAggregate.html)\n\n[Routing Slip](RoutingTable.html)\n\n[Process Manager](ProcessManager.html)\n\n[Message Broker](MessageBroker.html)\n\n[Message\nTransformation](MessageTransformationIntro.html)\n\n[Message Translator](MessageTranslator.html)\n\n[Envelope Wrapper](EnvelopeWrapper.html)\n\n[Content Enricher](DataEnricher.html)\n\n[Content Filter](ContentFilter.html)\n\n[Claim Check](StoreInLibrary.html)\n\n[Normalizer](Normalizer.html)\n\n[Canonical Data Model](CanonicalDataModel.html)\n\n[Messaging Endpoints](MessagingEndpointsIntro.html)\n\n[Message Endpoint](MessageEndpoint.html)\n\n[Messaging Gateway](MessagingGateway.html)\n\n[Messaging Mapper](MessagingMapper.html)\n\n[Transactional Client](TransactionalClient.html)\n\n[Polling Consumer](PollingConsumer.html)\n\n[Event-driven Consumer](EventDrivenConsumer.html)\n\n[Competing Consumers](CompetingConsumers.html)\n\n[Message Dispatcher](MessageDispatcher.html)\n\n[Selective Consumer](MessageSelector.html)\n\n[Durable Subscriber](DurableSubscription.html)\n\n[Idempotent Receiver](IdempotentReceiver.html)\n\n[Service Activator](MessagingAdapter.html)\n\n[Messaging Channels](MessagingChannelsIntro.html)\n\n[Message Channel](MessageChannel.html)\n\n[Point-to-Point Channel](PointToPointChannel.html)\n\n[Publish-Subscr. Channel](PublishSubscribeChannel.html)\n\n[Datatype Channel](DatatypeChannel.html)\n\n[Invalid Message Channel](InvalidMessageChannel.html)\n\n[Dead Letter Channel](DeadLetterChannel.html)\n\n[Guaranteed Delivery](GuaranteedMessaging.html)\n\n[Channel Adapter](ChannelAdapter.html)\n\n[Messaging Bridge](MessagingBridge.html)\n\n[Message Bus](MessageBus.html)\n\n[Systems Mgmt.](SystemManagementIntro.html)\n\n[Control Bus](ControlBus.html)\n\n[Detour](Detour.html)\n\n[Wire Tap](WireTap.html)\n\n[Message History](MessageHistory.html)\n\n[Message Store](MessageStore.html)\n\n[Smart Proxy](SmartProxy.html)\n\n[Test Message](TestMessage.html)\n\n[Channel Purger](ChannelPurger.html)", "znaku_textu": 19760, "slov": 2811, "odkazu": 87, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 14:55:51", "sha256": "eecd3b006d25a888a7819e0a2a5e963d5331fb8c6ea9e3deae46c7fc8fcce4c4", "hloubka": 3, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "https://www.architectelevator.com/book", "https://www.cloudstrategybook.com/", "https://www.platformstrategybook.info/"]} {"url": "http://www.enterpriseintegrationpatterns.com/patterns/messaging/ComposedMessagingMSMQ.html", "titulek": "Asynchronous Implementation with MSMQ - Enterprise Integration Patterns", "h1": "", "popis": "This section describes how to implement the Loan Broker example (see Introduction to Composed Messaging Examples) using Microsoft .NET, C# and MSMQ. The Microsoft .NET framework includes the System.Messaging namespace that gives .NET programs access to the Microsoft Message Queuing Service that is included in the recent versions of the Windows operating system (Windows 2000, Windows XP, Windows Server 2003 etc). The example walks through many of the design decisions and shows the actual code that is required to make this solution work. I tried as much as possible to focus on the design aspects of the solution so that this example is of value even if you are not a hard-core C# developer. In fact, much of the application besides the actual interface into System.Messaging would look very similar if this implementation was done in Java and JMS.", "klicova_slova": "Asynchronous Implementation with MSMQ,integration, messaging, events, patterns, event-driven, coupling, eai, middleware, application integration, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns", "og:title": "Asynchronous Implementation with MSMQ - Enterprise Integration Patterns", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/ComposedMessagingMSMQ.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/eip1_patterns_wide.png"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Loan Broker Ecosystem"}, {"uroven": 2, "text": "Laying the Groundwork: A Messaging Gateway"}, {"uroven": 2, "text": "Base Classes for Common Functionality"}, {"uroven": 2, "text": "Designing the Bank"}, {"uroven": 2, "text": "Designing the Credit Bureau"}, {"uroven": 2, "text": "Designing the Loan Broker"}, {"uroven": 2, "text": "Refactoring the Loan Broker"}, {"uroven": 2, "text": "Putting it All Together"}, {"uroven": 2, "text": "Improving Performance"}, {"uroven": 2, "text": "A Few Words on Testing"}, {"uroven": 2, "text": "Limitations of This Example"}, {"uroven": 2, "text": "Summary"}, {"uroven": 2, "text": "Integration Pattern Language"}], "markdown": "| | Asynchronous Implementation with MSMQ[Messaging Patterns](index.html) » [Interlude: Composed Messaging](ComposedMessagingExample.html) | [Contents](toc.html)[⇐ Prev](ComposedMessagingWS.html)[Next ⇒](ComposedMessagingTIBCO.html) |\n| --- | --- | --- |\n\nThis section describes how to implement the Loan Broker example (see [*Introduction to Composed Messaging Examples*](ComposedMessagingExample.html)) using Microsoft .NET, C# and MSMQ. The Microsoft .NET framework includes the System.Messaging namespace that gives .NET programs access to the Microsoft Message Queuing Service that is included in the recent versions of the Windows operating system (Windows 2000, Windows XP, Windows Server 2003 etc). The example walks through many of the design decisions and shows the actual code that is required to make this solution work. I tried as much as possible to focus on the design aspects of the solution so that this example is of value even if you are not a hard-core C# developer. In fact, much of the application besides the actual interface into System.Messaging would look very similar if this implementation was done in Java and JMS.\n\nSome of the functions demonstrated in this solution could likely be implemented with less effort by using an integration and orchestration tool such as Microsoft BizTalk Server. I intentionally avoided using such tools for two reasons. First, these tools are not free and would require you to acquire a license just to run this simple example. Second, I wanted to demonstrate the explicit implementation of all necessary functions.\n\nI setup the solution as multiple executables so that the different components could be run distributed across multiple computers. For purpose of the example I use local, private message to keep the setup requirements simple and avoid having to install ActiveDirectory. As a result, the solution 'as is' needs to run on a single machine.\n\nThis implementation of the loan broker example uses asynchronous messaging over message queues. As described in the example overview, this allows us to process multiple quote requests concurrently, but also requires us to correlate messages as they flow though the system and ultimately produce a response message to the loan quote request. Many of our design decisions are driven by the need for asynchronous processing.\n\n## Loan Broker Ecosystem\n\nIt is a good idea to start understanding the loan broker design from the outside in. Let's start by examining all external interfaces that the loan broker has to support (see picture). Because message queues are unidirectional we need a pair of queues to establish a request-response communication with another component (see [*.NET Request/Reply Example*](RequestReplyNetExample.html) for a simple case). As a result, the loan broker receives requests for loan quotes on the loanRequestQueue and replies to the test client on the loanReplyQueue. The interaction with the credit bureau happens over a similar pair of queues. I did not want to create a pair of queues for each bank, so I decided to have all banks reply to the same bankReplyQueue. The [*Recipient List*](RecipientList.html) sends the request message to each individual bank queue while the [*Aggregator*](Aggregator.html) selects the best quote from the reply messages arriving on the loanReplyQueue. Together, the [*Recipient List*](RecipientList.html) and the [*Aggregator*](Aggregator.html) act as a distribution-style [*Scatter-Gather*](BroadcastAggregate.html). For simplicity's sake all banks in this example use the same message format so that a [*Normalizer*](Normalizer.html) is not required. But because the common bank message format is different from the format expected by the consumer, we still need to use one [*Message Translator*](MessageTranslator.html) to convert bank reply messages into loan broker reply messages. I decided to design the loan broker as a [*Process Manager*](ProcessManager.html). Rather than implementing the functions inside the loan broker as individual components separated by message queues, the loan broker is a single component that executes all functions internally. As a result, this approach eliminates the overhead that would be incurred by sending messages across queues between these functions, but requires the loan broker to maintain multiple, concurrent process instances.\n\n*Loan Broker with Message Queue Interfaces*\n\n## Laying the Groundwork: A Messaging Gateway\n\nI do not want this section to become an introduction into the System.Messaging namespace and MSMQ. Therefore, it makes sense to try to separate some of the MSMQ specific functions into separate classes so that the application code will not be littered with MSMQ-specific commands. Mike Rettig reminded me that the *Gateway* [[EAA](http://www.amazon.com/exec/obidos/ASIN/0321127420/enterpriseint-20)] is an excellent pattern to use for this. Mike created the JMS example for Martin's *P of EAA* book and has been instrumental in bringing the [*Messaging Gateway*](MessagingGateway.html) into this implementation. As Martin points out, the use of a *Gateway* has two key advantages. First, it abstracts the technical details of the communication from the application. Second, if we choose to separate the gateway interface from the gateway implementation we can replace the actual external service with a *Service Stub* [[EAA](http://www.amazon.com/exec/obidos/ASIN/0321127420/enterpriseint-20)] for testing.\n\n*Use of a Gateway helps keep MSMQ details out of the application and improves testability*\n\nIn our case we define two interfaces into the[*Messaging Gateway*](MessagingGateway.html): IMessageSender and IMessageReceiver. We kept these interfaces almost trivially simplistic. All the IMessageSender can do is send a message and all the IMessageReceiver can do is (surprise!) receive a message. Additionally, the receiver has a Begin method to tell it that it is OK to start receiving messages. Keeping the interfaces this simple makes it easy to define classes that implement the interface.\n\n**IMessageSender.cs**\n\n```\nnamespace MessageGateway\n{\n using System.Messaging;\n\t\n public interface IMessageSender\n {\n void Send(Message mess);\n }\n}\n \n```\n\n**IMessageReceiver.cs**\n\n```\nnamespace MessageGateway\n{\n using System.Messaging;\n\n public interface IMessageReceiver\n {\n OnMsgEvent OnMessage \n { \n get;\n set;\n }\n\t\t\n void Begin();\n\n MessageQueue GetQueue();\n }\n}\n \n```\n\nThe actual implementations reside in the MessageSenderGateway and MessageReceiverGateway classes. These classes take care of configuring the message queue properties such as MessageReadPropertyFilter or Formatter settings. MessageReceiverGateway uses a *Template Method* for the ReceiveCompleted event of the MSMQ message queue to take care of small, but important details such as calling the mq.BeginReceive method after processing the message. I am not going to dive into the details of these features right now but refer you to the on-line documentation on MSDN ([[MSMQ01](http://www.microsoft.com/msmq)]).\n\nBecause we defined very narrow interfaces, it is also possible to provide an implementation that does not even use a message queue. MockQueue implements both interfaces without even referencing a message queue! When an application sends a message, MockQueue immediately triggers the OnMessageevent with that same message. This makes testing the application in a single address space much simpler without having to worry about the asynchronous aspects (more on testing below).\n\nThe line \"OnMsgEvent OnMessage\" in IMessageReceiver may require a little bit of explanation for readers who are new to C#. The .NET Framework provides language features for the *Observer* pattern, called *delegates* and *events*. OnMsgEvent is a *delegate* defined in the MessageReceiverGateway:\n\n```\npublic delegate void OnMsgEvent(Message msg);\n```\n\nA delegate allows objects to register with a certain type of event. When the event is invoked, .NET calls all registered methods. A delegate can be invoked in a number of different ways but the simplest form is the direct invocation by using the name of the delegate:\n\n```\nOnMsgEvent receiver;\nMessage message;\n...\nreceiver(message);\n```\n\nIf this leaves you more interested in *delegates* have a look at a good .NET or C# book. If you want to know the dirty details on how the CLR implements them, have a look at [[Box](http://www.amazon.com/exec/obidos/ASIN/0201734117/enterpriseint-20)].\n\n## Base Classes for Common Functionality\n\nWhen we look at the high-level design, we quickly realize that some of the components in the loan broker scenario have common functions. For example, both a bank and a credit bureau act as a service by receiving a request, processing the request and publishing the result to another channel. Sounds easy enough. But since we live in the world of asynchronous messaging, we have to do a little extra work to implement a simple request-reply scheme. First, we want the caller of the service to specify a [*Return Address*](ReturnAddress.html) for the reply. This allows different callers to use the same service but use different reply queues. The service should also support a [*Correlation Identifier*](CorrelationIdentifier.html) so that the caller can reconcile incoming reply messages with request messages. Furthermore, if the service receives a message in an unrecognized format it would be good manners to route the message to an [*Invalid Message Channel*](InvalidMessageChannel.html) instead of simply discarding it.\n\nTo eliminate code duplication (the deadly sin of object-oriented programming), I created the base class MQService. This class incorporates the support for [*Return Address*](ReturnAddress.html) and [*Correlation Identifier*](CorrelationIdentifier.html). Really, the server-side support for a [*Correlation Identifier*](CorrelationIdentifier.html) consists of nothing more than copying the message ID of the incoming message to the correlation id of the reply message. In our example, I also copy the AppSpecific property because we will see later that sometimes we need to correlate by something else besides message ID. The MQService also makes sure to send the response to the specified [*Return Address*](ReturnAddress.html). Because the requestor supplies the [*Return Address*](ReturnAddress.html), the only initialization parameter for the MQService is the name of the request queue, i.e. the queue where new request messages come in. If the requestor forgets to supply a [*Return Address*](ReturnAddress.html), the RequestReplyService sends the reply to the [*Invalid Message Channel*](InvalidMessageChannel.html). One may also consider sending the request message to the [*Invalid Message Channel*](InvalidMessageChannel.html) because that's the one that is faulty. For now, we will keep our lives simple and not get into the details of error handling.\n\n**MQService.cs**\n\n```\npublic abstract class MQService\n{\n static protected readonly String InvalidMessageQueueName = \".\\\\private$\\\\invalidMessageQueue\";\n IMessageSender invalidQueue = new MessageSenderGateway(InvalidMessageQueueName);\n\n protected IMessageReceiver requestQueue;\n protected Type requestBodyType;\n\t\n public MQService(IMessageReceiver receiver)\n {\n requestQueue = receiver;\n Register(requestQueue);\n }\n\t\n public MQService(String requestQueueName)\n {\n MessageReceiverGateway q = new MessageReceiverGateway(requestQueueName, GetFormatter());\n Register(q);\n this.requestQueue = q;\n Console.WriteLine(\"Processing messages from \" + requestQueueName);\n }\n\t\t\t\n protected virtual IMessageFormatter GetFormatter()\n {\n return new XmlMessageFormatter(new Type[] { GetRequestBodyType() });\n }\n\n protected abstract Type GetRequestBodyType();\n\n protected Object GetTypedMessageBody(Message msg)\n {\n try \n {\n if (msg.Body.GetType(). Equals(GetRequestBodyType())) \n {\n return msg.Body;\n }\n else\n { \n Console.WriteLine(\"Illegal message format.\");\n return null;\n }\n }\n catch (Exception e) \n {\n Console.WriteLine(\"Illegal message format\" + e.Message); \n return null;\n }\n }\n\n public void Register(IMessageReceiver rec)\n {\n OnMsgEvent ev = new OnMsgEvent(OnMessage);\n rec.OnMessage += ev;\n }\n\t\n public void Run()\n {\n requestQueue.Begin();\n }\n\n \n public void SendReply(Object outObj, Message inMsg)\n {\n Message outMsg = new Message(outObj);\n outMsg.CorrelationId = inMsg.Id;\n outMsg.AppSpecific = inMsg.AppSpecific;\n\n if (inMsg.ResponseQueue != null) \n {\n IMessageSender replyQueue = new MessageSenderGateway(inMsg.ResponseQueue);\n replyQueue.Send(outMsg);\n }\n else\n {\n invalidQueue.Send(outMsg);\n }\n }\n\n protected abstract void OnMessage(Message inMsg);\n\n}\n```\n\nThe class is abstract because it does not provide an implementation for the GetTypedMessageBody and OnMessage methods. We want our classes to deal as much as possible with strongly typed business objects as opposed to Message data types. Therefore, we want would like the MQService to verify the type of the message body and cast it to the correct type. The problem is that this abstract base class does not know which type to cast it to because it can be used by many different service implementations each of which is likely to use a different message type. To perform as much work in the base class we created the GetTypedMessageBody and the abstract method GetRequestBodyType. Each subclass has to implement the method GetRequestBodyType to specify the type of the messages that it expects to receive. MQServer use the type to initialize the XML formatter and to perform type checking. After these checks the subclass can safely cast the incoming message body to the desired type without being afraid of exceptions. The exception handling inside GetTypedMessageBodyis admittedly primitive at this point -- all it does is print a message to the console. If this weren't a simple demo app, we would definitely use some more sophisticated approach to logging or better yet a comprehensive [*Control Bus*](ControlBus.html).\n\nThe OnMessage method is left to be implemented by the subclasses of MQService. We provide two implementations, a synchronous one and an asynchronous one. The synchronous implementation (RequestReplyService) calls the virtual method ProcessMessage which is expected to return a reply message right away. The synchronous implementation of OnMessage calls SendReply right away. The asynchronous implementation (AsyncRequestReplyService) in contrast, defines the virtual ProcessMessage method without any return parameter. The inheriting subclasses are responsible for calling SendReply.\n\n```\npublic class RequestReplyService : MQService\n{\n public RequestReplyService(IMessageReceiver receiver) : base(receiver) {}\t\t\n public RequestReplyService(String requestQueueName) : base (requestQueueName) {}\n\n protected override Type GetRequestBodyType()\n {\n return typeof(System.String);\n }\n\n protected virtual Object ProcessMessage(Object o)\n {\n String body = (String)o;\n Console.WriteLine(\"Received Message: \" + body);\n return body;\n }\n\n protected override void OnMessage(Message inMsg)\n {\n inMsg.Formatter = GetFormatter();\n Object inBody = GetTypedMessageBody(inMsg);\n if (inBody != null) \n {\n Object outBody = ProcessMessage(inBody);\n\n if (outBody != null) \n {\n SendReply(outBody, inMsg);\n }\n }\n }\t\n}\n\npublic class AsyncRequestReplyService : MQService\n{\n public AsyncRequestReplyService(IMessageReceiver receiver) : base(receiver) {}\t\t\n public AsyncRequestReplyService(String requestQueueName) : base (requestQueueName) {}\n\n protected override Type GetRequestBodyType()\n {\n return typeof(System.String);\n }\n\n protected virtual void ProcessMessage(Object o, Message msg)\n {\n String body = (String)o;\n Console.WriteLine(\"Received Message: \" + body);\n }\n \n protected override void OnMessage(Message inMsg)\n {\n inMsg.Formatter = GetFormatter();\n Object inBody = GetTypedMessageBody(inMsg);\n if (inBody != null) \n {\n ProcessMessage(inBody, inMsg);\n }\n\n }\t\n}\n \n```\n\nBoth classes provide a default implementation of the GetRequestBodyType and ProcessMessage methods. GetRequestBodyType specifies that the message expects a simple string and ProcessMessage prints that string to the console. Technically speaking we could have omitted the default implementations of these methods from RequestReplyService and AsyncRequestReplyService so that they remain abstract themselves. This would allow the compiler to detect any subclass of one of these classes that forgot to implement one of the abstract methods. On the other hand, it is nice to have a default implementation of a service available for testing and debugging purposes. So I decided to go ahead and let these classes be concrete so that they can be instantiated as is.\n\nIn summary, the class diagram for the base classes looks as follows (we will discuss the bank, credit bureau and loan broker classes shortly):\n\n*Base Classes for Message Services*\n\n## Designing the Bank\n\nNow that we have created a set of base classes and utility functions it is time to start implementing the application logic. An easy way to start creating the solution is to build the application components by reverse order of dependency. This means, we first create components that do not depend on anything else. This allows us to run and test these components independently. The bank is certainly one of those components. The loan broker depends on the banks, but the banks themselves are self-contained. Conveniently enough, a bank is a prime example of a request-reply-service. So implementing a bank should be as simple as inheriting from RequestReplyService and filling in some business logic.\n\nBefore we start working on the internals of the bank, though, we should define the external interface. We need to define the message types for loan quote requests and replies. For our simple implementation, we defined a common message format for all banks. That lets us use a common class for all five bank instances. C# supports structs, so we use those as message types:\n\n**Message Types for Bank**\n\n```\npublic struct BankQuoteRequest \n{\n public int SSN;\n public int CreditScore;\n public int HistoryLength;\n public int LoanAmount;\n public int LoanTerm;\n}\n\npublic struct BankQuoteReply\n{\n public double InterestRate;\n public String QuoteID;\n public int ErrorCode;\n}\n```\n\nBecause we want to use a single class for all bank instances we need to parameterize the banks for different behavior. Our banks are very simple institutions, so the only parameters are BankName, RatePremium, and MaxLoanTerm. The RatePremium determines the number of interest rate points that the bank charges above the *prime rate*, basically the bank's profit margin. The MaxLoanTerm specifies the longest loan term (in months) that the bank is willing to extend. If a loan request is for a longer duration than specified, the bank will thankfully decline. After plugging in the appropriate convenience constructors and accessors, we can build the ProcessMessage method of the bank:\n\n**Bank.cs**\n\n```\nprotected override Type GetRequestBodyType()\n{\n return typeof(BankQuoteRequest);\n}\n\nprotected BankQuoteReply ComputeBankReply(BankQuoteRequest requestStruct)\n{\n BankQuoteReply replyStruct = new BankQuoteReply();\n\n if (requestStruct.LoanTerm <= MaxLoanTerm) \n {\n replyStruct.InterestRate = PrimeRate + RatePremium \n + (double)(requestStruct.LoanTerm / 12)/10 \n + (double)random.Next(10) / 10;\n replyStruct.ErrorCode = 0;\n }\n else\n {\n replyStruct.InterestRate = 0.0;\n replyStruct.ErrorCode = 1;\n }\n replyStruct.QuoteID = String.Format(\"{0}-{1:00000}\", BankName, quoteCounter);\n quoteCounter++;\n return replyStruct;\n}\n\nprotected override Object ProcessMessage(Object o)\n{\n BankQuoteRequest requestStruct;\n BankQuoteReply replyStruct;\n\n requestStruct = (BankQuoteRequest)o;\n replyStruct = ComputeBankReply(requestStruct);\n\n Console.WriteLine(\"Received request for SSN {0} for {1:c} / {2} months\", \n requestStruct.SSN, requestStruct.LoanAmount, requestStruct.LoanTerm);\n Thread.Sleep(random.Next(10) * 100);\n Console.WriteLine(\" Quote: {0} {1} {2}\", \n replyStruct.ErrorCode, replyStruct.InterestRate, replyStruct.QuoteID); \n\n return replyStruct;\n}\n```\n\nWe can see that the concrete service has to implement only the GetRequestBodyType and ProcessMessage methods. The service can safely cast the object passed in by ProcessMessage because the base class has already verified the correct type. As we can see the remaining implementation has rather little to do with messaging -- all the details are taken care if in the base classes. The MQService and RequestReplyService classes act as a [*Service Activator*](MessagingAdapter.html), keeping the application from having to dig into messaging system details.\n\nThe method ComputeBankReply contains the complete business logic for a bank. If life were only so simple! Well, this is not an introduction into macro-economics but an example of messaging so I took some liberties here to simplify things. The logic is the same as in the previous implementation. The computed interest rate is the sum of the prime rate, the configured rate premium, the loan term and a sprinkle of randomness. If the requested loan term is longer than the bank is comfortable with, it returns an error code. Each quote that the bank issues receives a unique quote ID so the customer may refer back to it later. In the current implementation I use a simple incrementing counter to create these IDs.\n\nThe ProcessMessage method incorporates a small delay (between 1/10th and 1 second) to make the bank transaction a bit more realistic. The ProcessMessage also logs some activities to the console so we can see what is going on when we run it inside a simple console application.\n\nTo start a bank, we simply instantiate it with the appropriate parameters and call the Run method that it inherits from RequestReplyService. Since the processing happens through events, the Run method returns right away. Therefore, we need to be careful not to terminate the program right after it starts. For my simple tests, I simple inserted a Console.ReadLine() statement after the call to Run.\n\n## Designing the Credit Bureau\n\nThe credit bureau implementation is very analogous to the bank. The only difference is in the message types and the business logic. The credit bureau can handle the following message types:\n\n**Message Types for Credit Bureau**\n\n```\npublic class CreditBureauRequest \n{\n public int SSN;\n}\n\npublic class CreditBureauReply\n{\n public int SSN;\n public int CreditScore; \n public int HistoryLength;\n}\n```\n\nThe ProcessMessage method is nearly identical to the bank code, except it deals with different data structures and invokes different application logic. The credit bureau also has a built-in delay.\n\n**CreditBureau.cs**\n\n```\nprivate int getCreditScore(int ssn) \n{\n return (int)(random.Next(600) + 300);\n}\n\nprivate int getCreditHistoryLength(int ssn)\n{\n return (int)(random.Next(19) + 1);\n}\n```\n\n## Designing the Loan Broker\n\nNow that we have a functioning credit bureau and a bank class that lets us instantiate multiple incarnations of a bank, we are ready to work in the internal design of the loan broker. The routing and transformation patterns from this book help us segment the functions that the loan broker needs to provide. We can group the internal functions of the loan broker into three main portions (see picture): the request-reply interface that accepts requests from clients, the credit bureau interface, and the bank interface.\n\n*Internal structure of the Loan Broker*\n\nIn similar fashion to building the whole solution in reverse order of dependency, let's start building the pieces that only depend on what's already there. Because we just built a bank and a credit bureau service it makes sense to create the interface from the loan broker to these external components. The credit bureau interface definitely seems simpler, so let's start there.\n\n**Credit Bureau Gateway**\n\nThe loan broker needs to make requests to the credit bureau to obtain the customer's credit rating, which is required by the bank. This implies sending a message to the external loan broker component and receiving reply messages. Wrapping the details of sending a generic message inside a MessageGateway allowed us to hide many MSMQ details from the rest of the application. Following the same reasoning we should encapsulate sending and receiving messages to the credit bureau inside a *credit bureau gateway*. This credit bureau gateway performs the important function of *semantic enrichment*, allowing the loan broker to call methods such as GetCreditScore as opposed to SendMessage. This makes the loan broker code more readable and provides a strong encapsulation of the communication between the loan broker and the credit bureau. The following diagram illustrates the levels of abstraction achieved by \"chaining\" the two gateways.\n\n*The Loan Broker Provides an Additional Level of Abstraction From the Messaging Infrastructure*\n\nIn order to request a credit score, the gateway needs to create an instance of a CreditBureauRequest struct as specified by credit bureau. Likewise, the interface will receive the results inside a CreditBureauReply struct. In the beginning we stated that the solution is built from separate executables to that the credit bureau can run on a different computer than the loan broker. This means, though, that the loan broker may not have access to types defined in the credit bureau's assembly. And really we would not want the loan broker to make any references to the credit bureau internals because that would eliminate the benefits of loose coupling over message queues. The loan broker is supposed to be completely unaware of who services the credit score requests. The loan broker needs, however, access to the structs that define the message formats. Luckily, the Microsoft .NET Framework SKD contains a tool that lets us do just that, the XML Schema Definition Tool (xsd.exe). This tool can create XML schemas from an assembly and also create C# source code from XML schemas. The following picture describes the process:\n\n*Creating Class Stubs from Another Assembly*\n\nxsd.exe extracts public type definitions and creates an XML schema file based on the type definition and optional attributes that control serialization. In our case, xsd.exe created the following schema:\n\n```\n\n\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n```\n\nUsually a service would publish this schema definition to potential callers. This allows the caller the option to produce the required message format in a number of different ways. First, the caller could construct the xsd-compliant explicitly. Alternatively, the caller could use the .NET built-in serialization. Since the .NET CLR is programming language independent, the client would still have a choice of programming languages.\n\nWe decide to use .NET's built-in serialization. Therefore, we run xsd.exe again to create source files to be used by the service consumer, and get a file that looks like this:\n\n```\n// \n// This source code was auto-generated by xsd, Version=1.1.4322.573.\n// \nnamespace CreditBureau {\n using System.Xml.Serialization;\n \n \n /// \n [System.Xml.Serialization.XmlRootAttribute(Namespace=\"\", IsNullable=false)]\n public class CreditBureauRequest {\n \n /// \n public int SSN;\n }\n ...\n \n```\n\nIt is worth noting that the .NET XML serialization and deserialization allows loose coupling. So technically speaking, the request message that we send to the credit bureau does not have to be of the exact same type that is used inside the credit bureau implementation as long as the XML representation contains the required elements. For example, this would allow a requestor to send a message whose XML representation contains additional elements without disturbing the communication. For our example, we assume that the loan broker is willing to conform to the credit bureau's specified format and use the same types on both ends of the communication.\n\nWe are now ready to send messages in the correct format to the credit bureau. We need to keep in mind, though, that this communication is asynchronous with a separate, asynchronous request message and reply message. We could design the credit bureau gateway so that after sending a request the gateway code waits for the response to come back. This approach has one significant drawback: the application will just sit and wait while the credit bureau is processing a message. This type of pseudo-synchronous processing can quickly result in a performance bottleneck. If we make each step of the process pseudo-synchronous it means that the loan broker can only process one request process at a time. For example, it would not be able to request the credit score for a new request while it is still waiting for bank replies for the previous quote request. To visualize the difference let's consider that the loan broker has to perform two main steps: get the credit score and get the best quote from the banks. If we assume the loan broker runs only a single, sequential execution, the execution will look like the top half of the following picture:\n\n*Pipeline Processing Can Provide Significantly Higher Throughput*\n\nBecause the bulk of the actual work is executed by external components the loan broker component basically sits around and waits for results -- not an efficient use of computing resources. If we design the whole loan broker process as an [*Event-Driven Consumer*](EventDrivenConsumer.html), we can start processing multiple requests in parallel and process the results as they come in. We call this mode 'pipeline' processing. The scalability of the system now only depends on the processing capacity of the external components and not on the loan broker. If we run only a single instance of the credit bureau process, the difference may not be as pronounced because the bureau request queue will queue up the requests anyway. However, if we decide to run multiple credit bureau instances in parallel we will see immediate performance gains (more on performance below).\n\nThere are two primary ways to make the loan broker process event-driven. For once, we can create a sequential process but create a new thread for each incoming message. Alternatively, we can let the messaging system notify the loan broker whenever an event is pending. This way we let the messaging system control the threads of execution. Each approach has pros and cons. Coding a sequential process can make the code easier to understand, however if our component is primarily a broker component that brokers messages between external entities it would result in a potentially large number of threads that are waiting for incoming messages. These threads could consume a large number of system resources and accomplish little. Therefore, we may be better off to let the messaging system drive the execution. Whenever a message is ready to be consumed, the system will invoke the broker execution. This lets us maintain a single thread of execution and not worry about thread management. However, we need to deal with the fact that the execution path is not a single sequential method, but multiple code segments that are executed as messages arrive.\n\nYou might have guessed that the way to make things event-driven in .NET is the use of *delegates*. As expected, the credit bureau gateway defines a new delegate.\n\n```\npublic delegate void OnCreditReplyEvent(CreditBureauReply creditReply, Object ACT);\n```\n\nThis delegate allows other code segments to tell the credit bureau gateway which method to call when the result come in. The credit bureau gateway passes a properly typed CreditBureauReply struct back to the caller. It also passes something we call ACT -- an *Asynchronous Completion Token* [[POSA](http://www.amazon.com/exec/obidos/ASIN/0471958697/enterpriseint-20)]. This token allows the caller to pass in data to the gateway and receive the data back when the corresponding reply message comes in. Basically, the credit bureau gateway performs correlation for the request and reply messages so that the caller does not have to.\n\nWhat's left is a method to request a credit score and the method that handles an incoming message, correlating the proper ACT and invoking the properly typed delegate.\n\n**CreditBureauGateway.cs**\n\n```\ninternal struct CreditRequestProcess\n{\n public int CorrelationID;\n public Object ACT;\n public OnCreditReplyEvent callback;\n}\n\ninternal class CreditBureauGateway \n{\n protected IMessageSender creditRequestQueue;\n protected IMessageReceiver creditReplyQueue;\n\n protected IDictionary activeProcesses = (IDictionary)(new Hashtable());\n\n protected Random random = new Random();\n\n public void Listen()\n {\n creditReplyQueue.Begin();\n }\n\n public void GetCreditScore(CreditBureauRequest quoteRequest, OnCreditReplyEvent OnCreditResponse, Object ACT)\n {\n Message requestMessage = new Message(quoteRequest);\n requestMessage.ResponseQueue = creditReplyQueue.GetQueue();\n requestMessage.AppSpecific = random.Next();\n\n CreditRequestProcess processInstance = new CreditRequestProcess();\n processInstance.ACT = ACT;\n processInstance.callback = OnCreditResponse;\n processInstance.CorrelationID = requestMessage.AppSpecific;\n\n creditRequestQueue.Send(requestMessage);\n\n activeProcesses.Add(processInstance.CorrelationID, processInstance);\n }\n\n private void OnCreditResponse(Message msg)\n {\n msg.Formatter = GetFormatter();\n\n CreditBureauReply replyStruct;\n try \n {\n if (msg.Body is CreditBureauReply) \n {\n replyStruct = (CreditBureauReply)msg.Body;\n int CorrelationID = msg.AppSpecific;\n\n if (activeProcesses.Contains(CorrelationID))\n {\n CreditRequestProcess processInstance = (CreditRequestProcess)(activeProcesses[CorrelationID]);\n processInstance.callback(replyStruct, processInstance.ACT);\n activeProcesses.Remove(CorrelationID);\n }\n else { Console.WriteLine(\"Incoming credit response does not match any request\"); }\n }\n else\n { Console.WriteLine(\"Illegal reply.\"); }\n }\n catch (Exception e) \n {\n Console.WriteLine(\"Exception: {0}\", e.ToString()); \n }\n }\n}\n```\n\nWhen a caller requests a credit score via the GetCreditScoremethod, the credit bureau gateway allocates a new instance of the CreditRequestProcess structure. The collection activeProcesses contains one instance of CreditRequestProcess for each outstanding request, keyed by the [*Correlation Identifier*](CorrelationIdentifier.html) of the message. The structure also holds the delegate for the OnCreditReplyEvent event. Storing the delegate for each message allows each caller to specify a different callback location for each request. As we will see later this allows the caller to use delegates to manage conversation state.\n\nit is important to note that we do not use the message's built-in Id field to correlate. Instead, we assign a random integer number to the AppSpecific field and correlate incoming messages by the value of that field (remember that we designed the RequestReplyService to copy both the Id field and the AppSpecific field to the reply message). Why would we want to correlate by something else but the message ID? The advantage of the message ID is that it is unique for each message in the system. But that also limits our flexibility. Requiring a reply message to correlate to the message ID of the request message does not allow us to insert intermediate steps (for example, a router) into the message flow. Because any intermediate step would consume the request message and publish a new message to the service, the reply message's CorrelationId would match the message the service received but not the message that the Loan Broker originally sent (see picture).\n\n*Intermediaries Hinder Correlation with System-Generated Message IDs*\n\nThere are two solutions to this problem. First, any intermediate would be required to intercept both request and reply messages and make sure to equip reply messages with the correct CorrelationId value (for an example of this approach see the [*Smart Proxy*](SmartProxy.html). Alternatively, we can use a separate field for correlation purposes so that all related messages that flow through the intermediary and the service carry the same ID. In this example we chose the second approach to make it easier for an intermediary component to intercept request messages between the Loan Broker and the Credit Bureau (we will take advantage of this in [*Loan Broker System Management*](SystemManagementExample.html). How should we pick a value for the AppSpecific property? We could use sequential values, but then we have to be careful that two concurrent instances do not use use the same starting value. We could also use a central ID generation module (e.g. a Database) that guarantees system-wide uniqueness. This seemed a little too much trouble for this simple example, so we chose a random number. .NET generates random numbers as signed 32-bit integers so that the odds of a duplicate are 1 in 2 billion -- a risk we are willing to take.\n\nThe credit bureau gateway now provides the clean abstraction from the Windows message queuing infrastructure that we were aiming for. The only public interface into the credit bureau gateway (besides constructors) are a delegate and two methods:\n\n```\ndelegate void OnCreditReplyEvent(CreditBureauReply creditReply, Object ACT);\nvoid Listen() {...}\nvoid GetCreditScore(CreditBureauRequest quoteRequest, OnCreditReplyEvent OnCreditResponse, Object ACT) {...}\n```\n\nNeither construct makes any reference to a message or a message queue. This provides a number of benefits. First, we can easily implement a stubbed out version of the credit bureau gateway that does not rely on message queues at all (similar to the MockQueue). Second, we can replace the implementation of the credit bureau gateway if we decide to use a transport different from MSMQ. For example, if we were going to use a Web services interface using SOAP and http instead of MSMQ the methods exposed by the gateway would most likely not have to change at all.\n\n**Bank Gateway**\n\nThe design of the bank gateway follows the same design principles as the design of the credit bureau gateway. We use the same process as before to declare stubs for the request and reply message types specified by the bank. The external portion of the bank gateway is very similar to the credit bureau gateway:\n\n```\ndelegate void OnBestQuoteEvent(BankQuoteReply bestQuote, Object ACT);\nclass BankGateway {\n void Listen() {...}\n void GetBestQuote(BankQuoteRequest quoteRequest, OnBestQuoteEvent onBestQuoteEvent, Object ACT) {...}\n ...\n}\n```\n\nThe internal workings are slightly more complex because the [*Scatter-Gather*](BroadcastAggregate.html) style of interaction routes a single BankQuoteRequest to multiple banks. Likewise, a single BankQuoteReply is usually the result of multiple bank quote reply messages. The former part is handled by a [*Recipient List*](RecipientList.html) while the latter part is handled by an [*Aggregator*](Aggregator.html). Let's start with the [*Recipient List*](RecipientList.html).\n\nThe [*Recipient List*](RecipientList.html) has to implement three main functions:\n\n- Computation of appropriate recipients\n- Sending the message to the recipients\n- Initializing the [*Aggregator*](Aggregator.html) to process incoming replies.\n\nAs described in the design overview ([*Introduction to Composed Messaging Examples*](ComposedMessagingExample.html)), this implementation uses the *distribution* style of [*Scatter-Gather*](BroadcastAggregate.html), actively determining which banks to route the request to. This approach makes business sense if the banks charge the broker for each quote or the bank and the broker have an agreement that requires the broker to prequalify leads he or she generates . The loan broker makes the routing decision based on the customer's credit score, the amount of the loan and the length of the credit history. We encapsulate each connection to a bank inside a class that inherits from the abstract BankConnection. This class contains a reference to the properly addressed message queue and a method CanHandleLoanRequest that determines whether the quote request should be forwarded to this bank. The BankConnectionManager simply iterates through the list of all bank connections and compiles a list of those that match the criteria of the loan quote. If the list of banks was longer we could consider implementing a configurable rules engine. We prefer the current approach because it is simple and explicit.\n\n```\ninternal class BankConnectionManager\n{\n static protected BankConnection[] banks = {new Bank1(), new Bank2(), new Bank3(), new Bank4(), new Bank5() };\n\n public IMessageSender[] GetEligibleBankQueues(int CreditScore, int HistoryLength, int LoanAmount)\n {\n ArrayList lenders = new ArrayList();\n\n for (int index = 0; index < banks.Length; index++) \n {\n if (banks[index].CanHandleLoanRequest(CreditScore, HistoryLength, LoanAmount))\n lenders.Add(banks[index].Queue);\n }\n IMessageSender[] lenderArray = (IMessageSender [])Array.CreateInstance(typeof(IMessageSender), lenders.Count);\n lenders.CopyTo(lenderArray);\n return lenderArray;\n }\n}\n\ninternal abstract class BankConnection\n{\n protected MessageSenderGateway queue;\n protected String bankName = \"\";\n public MessageSenderGateway Queue\n {\n get { return queue; }\n }\n public String BankName \n {\n get { return bankName; }\n }\n\n public BankConnection (MessageSenderGateway queue) \n {\n this.queue = queue; \n }\n\n public abstract bool CanHandleLoanRequest(int CreditScore, int HistoryLength, int LoanAmount);\n}\n\ninternal class Bank1 : BankConnection\n{ \n protected String bankname = \"Exclusive Country Club Bankers\";\n \n public Bank1 (IMessageGatewayFactory gatewayFactory) : base (gatewayFactory.GetSenderInstance(\".\\\\private$\\\\bank1Queue\")) {}\n public override bool CanHandleLoanRequest(int CreditScore, int HistoryLength, int LoanAmount)\n {\n return LoanAmount >= 75000 && CreditScore >= 600 && HistoryLength >= 8;\n }\n}\n\n...\n```\n\nOnce the list of relevant banks is compiled, sending the message is a simple matter of iterating over the list. In a production application, this iteration should occur inside a single transaction to avoid error conditions where a message may be sent to some banks but not to others. Once again, we chose to let simplicity prevail for this example.\n\n```\ninternal class MessageRouter\n{\n public static void SendToRecipientList (Message msg, IMessageSender[] recipientList)\n { \n IEnumerator e = recipientList.GetEnumerator();\n while (e.MoveNext()) \n {\n ((IMessageSender)e.Current).Send(msg);\n }\n }\n}\n```\n\nNow that request message are on their way to the banks we need to initialize the [*Aggregator*](Aggregator.html) to expect incoming bank quotes. Due to the event driven nature of the loan broker the aggregator needs to be prepared to work on more than one aggregate concurrently -- maintaining one active aggregate for each quote request that is pending. This means that incoming messages need to be uniquely correlated to a specific aggregate. Unfortunately, we cannot use the message ID as correlation identifier because the [*Recipient List*](RecipientList.html) needs to send individual messages to each of the banks. As a result, if three banks participate in a quote request, the [*Recipient List*](RecipientList.html) needs to send 3 unique messages, one to each bank. Each of these messages will have a unique message ID. If the banks correlate by message ID the three responses will have different correlation IDs even though they belong to the same aggregate. We could have the aggregate store the message ID for each message and thus correlate the incoming message's correlation ID back to the aggregate. However, this would seem more complicated than we need it to be. Instead, we just generate our own correlation IDs -- one for each aggregate as opposed to one for each message. We store this (numeric) ID in the AppSpecific property of the outgoing request messages. The banks inherit from RequestReplyService which already transfers the incoming message's AppSpecific property to the reply messages. When a quote message comes in from a bank, the BankGateway can easily correlate the incoming message by the AppSpecific property of the message (see picture).\n\n*The BankGateway uses the AppSpecific Message Property to Correlate Response Messages to Aggregates*\n\nThe bank gateway initializes an aggregate with the aggregate ID (generated by a simple counter) and the number of expected messages. In addition, the caller needs to supply a delegate and can optionally specify an object reference to an ACT in the same way the credit bureau gateway functioned. The aggregation strategy is simple. The aggregate is considered complete when all selected banks responded with a reply message. The [*Recipient List*](RecipientList.html) initializes the aggregate with the number of expected messages. Remember that banks have the option of declining to provide a quote. So we can know when an aggregate is complete we require the banks to provide a reply message with the error code set if they do not want to provide a quote. We could easily modify the aggregation strategy, for example to cut off the bidding after 1 second and take the best response up to that point.\n\n```\ninternal class BankQuoteAggregate\n{\n protected int ID;\n protected int expectedMessages;\n protected Object ACT;\n protected OnBestQuoteEvent callback;\n\n protected double bestRate = 0.0;\n\n protected ArrayList receivedMessages = new ArrayList();\n protected BankQuoteReply bestReply = null;\n\n public BankQuoteAggregate(int ID, int expectedMessages, OnBestQuoteEvent callback, Object ACT)\n {\n this.ID = ID;\n this.expectedMessages = expectedMessages;\n this.callback = callback;\n this.ACT = ACT;\n }\n\n public void AddMessage(BankQuoteReply reply) \n {\n if (reply.ErrorCode == 0) \n {\n if (bestReply == null)\n {\n bestReply = reply;\n }\n else \n {\n if (reply.InterestRate < bestReply.InterestRate)\n {\n bestReply = reply;\n }\n }\n }\n receivedMessages.Add(reply);\n }\n\n public bool IsComplete()\n {\n return receivedMessages.Count == expectedMessages;\n }\n\n public BankQuoteReply getBestResult()\n {\n return bestReply;\n }\n\n public void NotifyBestResult()\n {\n if (callback != null)\n {\n callback(bestReply, ACT);\n }\n }\n}\n```\n\nArmed with the bank connection manager, the recipient list, and the aggregate the implementation of the BankGateway's functions becomes relatively simple:\n\n```\ninternal class BankGateway\n{\n protected IMessageReceiver bankReplyQueue;\n protected BankConnectionManager connectionManager;\n\n protected IDictionary aggregateBuffer = (IDictionary)(new Hashtable());\n protected int aggregationCorrelationID;\n\n public void Listen()\n {\n bankReplyQueue.Begin();\n }\n\n public void GetBestQuote(BankQuoteRequest quoteRequest, OnBestQuoteEvent onBestQuoteEvent, Object ACT)\n {\n\n Message requestMessage = new Message(quoteRequest);\n requestMessage.AppSpecific = aggregationCorrelationID;\n requestMessage.ResponseQueue = bankReplyQueue.GetQueue();\n IMessageSender[] eligibleBanks = \n connectionManager.GetEligibleBankQueues(quoteRequest.CreditScore, quoteRequest.HistoryLength, \n quoteRequest.LoanAmount);\n \n aggregateBuffer.Add(aggregationCorrelationID, \n new BankQuoteAggregate(aggregationCorrelationID, eligibleBanks.Length, onBestQuoteEvent, ACT));\n aggregationCorrelationID++;\n\n MessageRouter.SendToRecipientList(requestMessage, eligibleBanks);\n }\n\n private void OnBankMessage(Message msg)\n {\n msg.Formatter = GetFormatter();\n\n BankQuoteReply replyStruct;\n try \n {\n if (msg.Body is BankQuoteReply) \n {\n replyStruct = (BankQuoteReply)msg.Body;\n int aggregationCorrelationID = msg.AppSpecific;\n Console.WriteLine(\"Quote {0:0.00}% {1} {2}\", \n replyStruct.InterestRate, replyStruct.QuoteID, replyStruct.ErrorCode);\n if (aggregateBuffer.Contains(aggregationCorrelationID))\n {\n BankQuoteAggregate aggregate = \n (BankQuoteAggregate)(aggregateBuffer[aggregationCorrelationID]);\n aggregate.AddMessage(replyStruct);\n if (aggregate.IsComplete()) \n {\n aggregate.NotifyBestResult();\n aggregateBuffer.Remove(aggregationCorrelationID);\n }\n }\n else \n { Console.WriteLine(\"Incoming bank response does not match any aggregate\"); }\n }\n else\n { Console.WriteLine(\"Illegal request.\"); }\n }\n catch (Exception e) \n {\n Console.WriteLine(\"Exception: {0}\", e.ToString()); \n }\n }\n}\n```\n\nWhen the bank gateway receives a quote reply from a bank the OnBankMessage method executes. The method converts the incoming message to the correct type and goes on to locate the related aggregate via the AppSpecific property. It adds the new bid to the aggregate. Once the aggregate is complete (as defined in the BankQuoteAggregate class, the BankGateway invokes the delegate supplied by the caller.\n\n**Accepting Requests**\n\nNow that we have a well encapsulated credit bureau gateway and bank gateway we are ready to have the loan broker accept requests. In the earlier sections we discussed the design of the MQService and AsyncRequestReplyService base class. The LoanBroker class inherits from AsyncRequestReplyService because it cannot send the results back to the reply queue right away, but only after several asynchronous operations (obtaining the credit store and communicating with the banks) complete.\n\nThe first step in implementing the LoanBroker is to define the message types the loan broker handles:\n\n```\npublic struct LoanQuoteRequest \n{\n public int SSN;\n public double LoanAmount;\n public int LoanTerm;\n}\n\npublic struct LoanQuoteReply\n{\n public int SSN;\n public double LoanAmount; \n public double InterestRate;\n public string QuoteID;\n}\n```\n\nNext, we need to create a class that inherits from AsyncRequestReplyService and override the ProcessMessage method.\n\n**The \"Process\"**\n\nThe loan broker is different from the previous classes because the process that is triggered by an incoming message is not contained in any single method. Instead, the completion of the process depends on a sequence of external events. The loan broker can receive three types of events:\n\n- A new loan request message arrives\n- A credit score reply message arrives (via the CreditBureauGateway)\n- A bank quote message arrives (via the BankGateway)\n\nSince the logic for the loan broker is spread across multiple event handlers we need to keep the state of the broker across these functions. That's where the asynchronous completion tokens come in! Remember that the credit bureau gateway and the bank gateway allow the caller (the loan broker) to pass a reference to an object instance when sending a request. The gateway passes the object reference back when the reply message is received. To take advantage of this functionality, we declare an ACT in the loan broker as follows:\n\n```\ninternal class ACT \n{\n public LoanQuoteRequest loanRequest;\n public Message message;\n\n public ACT(LoanQuoteRequest loanRequest, Message message)\n {\n this.loanRequest = loanRequest;\n this.message = message;\n }\n}\n```\n\nThe ACT contains a copy of the original request message (which contains the message ID and the reply address required to create the reply message) and the request data structure (needed to copy the SSN and the loan amount into the reply message). Technically speaking, the ACT stores duplicate information because we could extract the content of the request structure from the request message. However, the convenience of accessing a strongly typed structure is worth the few extra bytes.\n\nThe remainder of the loan broker is implemented as follows:\n\n```\ninternal class LoanBroker : AsyncRequestReplyService\n{\n protected ICreditBureauGateway creditBureauInterface;\n protected BankGateway bankInterface;\n\n public LoanBroker(String requestQueueName,\n String creditRequestQueueName, String creditReplyQueueName, \n String bankReplyQueueName, BankConnectionManager connectionManager): base(requestQueueName)\n {\n\n creditBureauInterface = (ICreditBureauGateway)\n (new CreditBureauGatewayImp(creditRequestQueueName, creditReplyQueueName));\n creditBureauInterface.Listen();\n\n bankInterface = new BankGateway(bankReplyQueueName, connectionManager);\n bankInterface.Listen();\n }\n\n protected override Type GetRequestBodyType()\n {\n return typeof(LoanQuoteRequest);\n }\n\n protected override void ProcessMessage(Object o, Message msg)\n {\n LoanQuoteRequest quoteRequest;\n quoteRequest = (LoanQuoteRequest)o;\n \n CreditBureauRequest creditRequest = LoanBrokerTranslator.GetCreditBureaurequest(quoteRequest);\n\n ACT act = new ACT(quoteRequest, msg);\n\n creditBureauInterface.GetCreditScore(creditRequest, new OnCreditReplyEvent(OnCreditReply), act);\n }\n\t\n private void OnCreditReply(CreditBureauReply creditReply, Object act)\n {\n ACT myAct = (ACT)act;\n\n Console.WriteLine(\"Received Credit Score -- SSN {0} Score {1} Length {2}\", \n creditReply.SSN, creditReply.CreditScore, creditReply.HistoryLength);\n BankQuoteRequest bankRequest = \n LoanBrokerTranslator.GetBankQuoteRequest(myAct.loanRequest ,creditReply);\n bankInterface.GetBestQuote(bankRequest, new OnBestQuoteEvent(OnBestQuote), act);\n }\n \n private void OnBestQuote(BankQuoteReply bestQuote, Object act)\n {\n ACT myAct = (ACT)act;\n\n LoanQuoteReply quoteReply = LoanBrokerTranslator.GetLoanQuoteReply(myAct.loanRequest, bestQuote);\n Console.WriteLine(\"Best quote {0} {1}\", quoteReply.InterestRate, quoteReply.QuoteID);\n SendReply(quoteReply, myAct.message);\n }\n}\n```\n\nLoanBroker inherits from AsyncRequestReplyService which provides support for receiving requests and sending correlated replies. LoanBroker overrides the method ProcessMessage to deal with incoming request messages. ProcessMessage creates a new instance of the ACT and calls the credit bureau gateway to request a credit score. Interestingly, the method ends there. Processing continues when the credit bureau gateway invokes the delegate specified by LoanBroker: OnCreditReply. This method uses the ACT and the reply to create a bank quote request and calls the bank gateway to send the request messages. This time it specifies the method OnBestQuote as the callback delegate. Once the bank gateway received all bank quote replies it invokes this method via the delegate and passes back the instance of the ACT. OnBestQuote uses the bank quote and the ACT to create a reply to the customer and sends it off using the base class implementation of SendReply.\n\nOne class you probably noticed in the source code is the LoanBrokerTranslator. This class provides a handful of static methods that help convert between the different message formats.\n\nThe LoanBroker class demonstrates the trade-off we made in our design. The code is free of references to messaging or thread-related concepts (except for the inheritance from AsyncRequestReplyService), which makes the code very easy to read. However, the execution of the main function is spread across three methods that make no direct reference to each other besides the delegates. This can make the flow of execution hard to understand without considering the total solution including all external components.\n\n## Refactoring the Loan Broker\n\nWhen we look at the way the loan broker functions we realize that we are separating data and functionality. We have one instance of the LoanBrokerclass that emulates multiple instances by means of the ACT collection. While ACT's are very useful they seem to go against the spirit of object-oriented programming by separating data and functionality -- the two parts that make up an object. However, we can refactor the LoanBroker class to avoid the repeated lookup of the ACT if we use the delegates in a better way. Delegates are essentially type-safe function pointers. As such they point to a specific object instance. So rather than supplying the credit bureau and bank gateway with a reference to a method in the sole LoanBroker instance we can use the delegates to point to a specific instance of a 'process object' that maintains the current state like an ACT but also contains the logic of the loan broker process'. To do this we turn the ACT into new class called LoanBrokerProcess and move the message handler functions into this class:\n\n```\ninternal class LoanBrokerProcess \n{\n protected LoanBrokerPM broker;\n protected String processID;\n protected LoanQuoteRequest loanRequest;\n protected Message message;\n\n protected CreditBureauGateway creditBureauGateway;\n protected BankGateway bankInterface;\n\n public LoanBrokerProcess(LoanBrokerPM broker, String processID, \n CreditBureauGateway creditBureauGateway,\n BankGateway bankGateway,\n LoanQuoteRequest loanRequest, Message msg) \n {\n this.broker = broker;\n this.creditBureauGateway = creditBureauGateway;\n this.bankInterface = bankGateway;\n this.processID = processID;\n this.loanRequest = loanRequest;\n this.message = msg;\n\n CreditBureauRequest creditRequest = LoanBrokerTranslator.GetCreditBureaurequest(loanRequest);\n creditBureauGateway.GetCreditScore(creditRequest, new OnCreditReplyEvent(OnCreditReply), null);\n }\n\n private void OnCreditReply(CreditBureauReply creditReply, Object act)\n {\n Console.WriteLine(\"Received Credit Score -- SSN {0} Score {1} Length {2}\", creditReply.SSN, creditReply.CreditScore, creditReply.HistoryLength);\n BankQuoteRequest bankRequest = LoanBrokerTranslator.GetBankQuoteRequest(loanRequest, creditReply);\n bankInterface.GetBestQuote(bankRequest, new OnBestQuoteEvent(OnBestQuote), null);\n }\n \n private void OnBestQuote(BankQuoteReply bestQuote, Object act)\n {\n LoanQuoteReply quoteReply = LoanBrokerTranslator.GetLoanQuoteReply(loanRequest, bestQuote);\n Console.WriteLine(\"Best quote {0} {1}\", quoteReply.InterestRate, quoteReply.QuoteID);\n broker.SendReply(quoteReply, message);\n broker.OnProcessComplete(processID);\n }\n}\n```\n\nThe methods no longer reference the ACT parameter provided by the credit bureau gateway and the bank gateway because all necessary information is stored in the instance of the LoanBrokerProcess. Once the process completes, it sends the reply message using the SendReply method that the LoanBrokerPM inherits from the AsyncRequestReplyService. Next, it notifies the LoanBrokerPM of the completion of the process.\n\n```\ninternal class LoanBrokerPM : AsyncRequestReplyService\n{\n protected CreditBureauGateway creditBureauGateway;\n protected BankGateway bankInterface;\n protected IDictionary activeProcesses = (IDictionary)(new Hashtable());\n \n public LoanBrokerPM(String requestQueueName,\n String creditRequestQueueName, String creditReplyQueueName, \n String bankReplyQueueName, BankConnectionManager connectionManager): base(requestQueueName)\n {\n creditBureauGateway = new CreditBureauGateway(creditRequestQueueName, creditReplyQueueName);\n creditBureauGateway.Listen();\n\n bankInterface = new BankGateway(bankReplyQueueName, connectionManager);\n bankInterface.Listen();\n }\n\n protected override Type GetRequestBodyType()\n {\n return typeof(LoanQuoteRequest);\n }\n\n protected override void ProcessMessage(Object o, Message message)\n {\n LoanQuoteRequest quoteRequest;\n quoteRequest = (LoanQuoteRequest)o;\n\n String processID = message.Id;\n LoanBrokerProcess newProcess = \n new LoanBrokerProcess(this, processID, creditBureauGateway,\n bankInterface, quoteRequest, message);\n activeProcesses.Add(processID, newProcess);\n }\n\n public void OnProcessComplete(String processID)\n {\n activeProcesses.Remove(processID);\n }\n}\n```\n\nThis LoanBrokerPM is basically a generic implementation of a [*Process Manager*](ProcessManager.html). It creates a new process instance when a new message arrives. When a process completes, the process manager removes the process instance from the list of active processes. The process manager uses the message ID as the unique process ID assigned to each process instance. We can now change the behavior of the loan broker just by editing the LoanBrokerProcess class, which has no references to messaging besides passing the message object around. It looks like paying attention to proper encapsulation and refactoring paid off.\n\nThe following class diagram summarizes the internal structure of the loan broker:\n\n*Loan Broker Class Diagram*\n\n## Putting it All Together\n\nThe only remaining piece is the test client. The test client design is similar to that of the credit bureau gateway. The test client can make a specified number of repeated requests and correlate incoming responses to outstanding requests. Once we start all processes (banks, credit bureau and the loan broker), we can execute the example. We use a number of simple Main classes to start the respective components as console applications. We see a flurry of activity on the screen indicating the flow of messages through the system (see picture).\n\n*Running the MSMQ Example*\n\n## Improving Performance\n\nNow that we have the complete solution running we can gather some performance metrics to compare the throughput of the asynchronous solution to the synchronous solution. Using the test data generator we send 50 randomly generated requests to the loan broker. The test data generator reports that is took a total of 27 seconds to receive the 50 reply messages.\n\n*Sending 50 Quote Requests*\n\nIt would be tempting to think that each request took 27 / 50 = 0.5 seconds. Wrong! The *throughput* of the loan broker is 50 requests in 27 seconds, but some of the requests took 26 seconds to complete! Why is the system so slow? Let's look at a snapshot of the message queue during the test run:\n\n*39 Messages Are Queued up in the Credit Request Queue*\n\n39 messages are queued up in the credit bureau request queue! So apparently the credit bureau is our bottleneck because all quote requests have to go through the credit bureau first. Now we can reap some of the rewards of loose coupling and start two additional instances of the credit bureau. Now we have three parallel instances of the credit bureau service running. This should fix our bottleneck, right? Let's see:\n\n*Sending 50 Quote Requests, Using 3 credit Bureau Instances*\n\nThe total time to process all 50 messages is reduced to 21 seconds with the longest request waiting for a response for less than 15 seconds. On average, the client had to wait for a reply to the loan request for 8 seconds, half of the original version. It looks like we eliminated the bottleneck. The message throughput did not increase as dramatically as we might have hoped but we need to remember that for this simple example we are running all processes on a single CPU so that all processes compete for the same resources. Let's look at the new queue statistics to verify that the credit bureau bottleneck is in fact corrected :\n\n*Now Bank 5 Appears to be a Bottleneck*\n\nWell, it looks like we eliminated one bottleneck just to find a new one -- Bank 5. Why Bank 5? Bank 5 is the Pawn Shop that offers loans to everybody. So Bank 5 is part of almost every quote request. We could now go on to start multiple instances of Bank 5 but it's not realistic to expect the pawnshop to run multiple instances just to improve our throughput. Our other option is to change the routing logic for the bank requests. Since the Pawn Shop charges a substantial premium over the other banks the Pawn Shop quote tends to be the lowest quote only in those cases where no other bank provided a quote. Taking this observation into account we can improve the efficiency of the system by not routing requests to the Pawn Shop if the quote can also be serviced by another bank without affecting the overall behavior of the system.\n\nWe change the BankConnectionManager to include Bank 5 only for those quote requests that cannot be serviced by any other bank. The modified BankConnectionManager looks like this:\n\n```\ninternal class BankConnectionManager\n{\n IMessageGatewayFactory gatewayFactory;\n\n protected BankConnection[] banks;\n protected BankConnection catchAll;\n\n public BankConnectionManager(IMessageGatewayFactory gatewayFactory)\n {\n this.gatewayFactory = gatewayFactory;\n banks = new BankConnection[4];\n banks[0] = new Bank1(gatewayFactory);\n banks[1] = new Bank2(gatewayFactory);\n banks[2] = new Bank3(gatewayFactory);\n banks[3] = new Bank4(gatewayFactory);\n catchAll = new Bank5(gatewayFactory); \n }\n\n public IMessageSender[] GetEligibleBankQueues(int CreditScore, int HistoryLength, int LoanAmount)\n {\n ArrayList lenders = new ArrayList();\n\n for (int index = 0; index < banks.Length; index++) \n {\n if (banks[index].CanHandleLoanRequest(CreditScore, HistoryLength, LoanAmount))\n lenders.Add(banks[index].Queue);\n }\n if (lenders.Count == 0)\n lenders.Add(catchAll.Queue);\n IMessageSender[] lenderArray = (IMessageSender [])Array.CreateInstance(typeof(IMessageSender), lenders.Count);\n lenders.CopyTo(lenderArray);\n return lenderArray;\n }\n}\n```\n\nRunning with the modified code produces the following results:\n\n*Sending 50 Quote Requests, Using 3 credit Bureau Instances and a modified BankConnectionManager*\n\nThe test results now show that all 50 requests were serviced in 12 seconds, half of the original time. More importantly, the average time to service a loan quote request is now under 4 seconds, a 4-fold improvement over the initial version. This example demonstrates the advantage of predictive routing by using a [*Recipient List*](RecipientList.html). Because the loan broker has control over the routing we can decide how much 'intelligence' we can build into the routing logic without requiring any changes to the external parties. The trade-off is that the loan broker becomes more and more dependent on knowledge about the internal parties. For example, while the original BankConnectionManager treated all banks as equal, the modified version relies on the fact that Bank5 is a catch-all provider that should only be contacted if there are not other options. If Bank5 starts to offer better rates, the clients may no longer get the best possible deal.\n\nThe screen clip also demonstrates that response messages do not necessarily arrive in the order in which the requests were made. We can see that the test client received the response to request number 48 right after the response to request number 43. Because we are not missing any responses, this means that the test client received responses 44 through 47 before response 43. How did these requests 'pass' number 43? It looks like the request number 43 was routed to the General Retail Bank (Bank 3). After the Pawn Shop, this bank has the next least restrictive selection criteria and is more likely to be backed up with requests than the other banks. If requests number 44 through 47 did not match the General Retail Bank's criteria, the bank gateway would have received all responses for these requests while the quote request for request number 43 was still sitting in the bank3Queue. Because our loan broker is truly event driven it will reply to a loan request as soon as it receives all bank quotes. As a result, if the bank quotes for request number 44 arrive before the bank quotes for number 43 the loan broker will send the reply message for request number 44 first. This scenario also highlights the importance of the [*Correlation Identifier*](CorrelationIdentifier.html) in the messages so that the test client can match responses to requests even if they arrive out of order.\n\nTuning asynchronous, message-based systems can be a very complex task. Our example showed some of the most basic techniques of identifying and resolving bottlenecks. But even our simple example made it clear that correcting one problem (the credit bureau bottleneck) can cause another problem (the Bank 5 bottleneck) to surface. We can also clearly see the advantages of asynchronous messaging and event-driven consumers. We were able to process 50 quote requests in 12 seconds -- a synchronous solution would have taken 8 or 10 times as long!\n\n## A Few Words on Testing\n\nThe loan broker example demonstrates how a simple application can become reasonably complex once it becomes distributed, asynchronous and event-driven. We now have a dozen classes and use delegates throughout to deal with the event-driven nature of asynchronous message processing. The increased complexity also means increased risk of defects. The asynchronous nature means risk of defects that are hard to reproduce or trouble-shoot because they depend on specific temporal conditions. Because of these additional risks, messaging solutions require a very thorough approach to testing. While we could probably write a whole book on testing messaging solutions I do want to include some simple, actionable advice on testing in this example. Let me summarize the testing advice in the following there rules:\n\n- Isolate the application from the messaging implementation by using interfaces and implementation classes\n- Test the business logic with unit test cases before plugging it into the messaging environment\n- Provide a 'Mock' implementation of the messaging layer that allows you to test synchronously\n\n**Isolate the Application From the Messaging Implementation**\n\nTesting a single application is much easier than testing multiple, distributed applications connected by messaging channels. A single application allows us to trace through the complete execution path, we do not need a complex start-up procedure to fire up all components, and there is no need to purge channels between tests (see [*Channel Purger*](ChannelPurger.html). Sometimes it is useful to \"stub out\" some external functions while testing others. For example, while we are testing the bank gateway we might as well stub out the credit bureau gateway instead of actually sending messages to an external credit bureau process.\n\nHow can we achieve some of the benefits of testing inside a single application with a minimal impact on the application code? We can separate the implementation of a messaging gateway from the interface definition. That allows us to provide multiple implementations of the interface.\n\n*Separating Credit Bureau Interface from Implementation*\n\nBecause we encapsulated all messaging-specific logic inside the credit bureau gateway we can define a very simple interface:\n\n```\npublic interface ICreditBureauGateway\n{\n void GetCreditScore(CreditBureauRequest quoteRequest, OnCreditReplyEvent OnCreditResponse, Object ACT);\n void Listen();\n}\n```\n\nFor example, we can create a mock credit bureau gateway implementation that does not actually connect to any message queue but rather invokes the specified delegate right inside the GetCreditScore method. This mock implementation contains the same logic as the actual credit bureau so the remainder of the loan broker is completely unaware of this switcheroo.\n\n```\npublic class MockCreditBureauGatewayImp : ICreditBureauGateway\n{ \n\n private Random random = new Random();\n\n public MockCreditBureauGatewayImp() \n { }\n\n public void GetCreditScore(CreditBureauRequest quoteRequest, OnCreditReplyEvent OnCreditResponse, Object ACT)\n {\n CreditBureauReply reply = new CreditBureauReply();\n reply.CreditScore = (int)(random.Next(600) + 300);\n reply.HistoryLength = (int)(random.Next(19) + 1);\n reply.SSN = quoteRequest.SSN;\n OnCreditResponse(reply, ACT);\n }\n\n public void Listen()\n { }\n}\n```\n\n**Test the Business Logic with Unit Test Cases**\n\nThe implementation of the CreditBureau class demonstrated a clean separation of messaging-related functions (encapsulated in the base class) and the business logic (reduced to a randomizer in our simple example). In a real-life scenario the business logic would (hopefully) be somewhat more complex. In that case it pays off to move the getCreditScore and getCreditHistoryLength methods into a separate class together that does not have any dependency on the messaging layer (even though it is less visible, inheritance still carries dependencies from the subclass to the base class and related classes). We can the use a unit test tool such as nUnit (www.nunit.org) to write test cases without having to worry about messaging.\n\n**Provide a 'mock' Implementation of the Messaging Layer**\n\nThe mock implementation of the ICreditBureauGateway is simple and effective. But it also replaces all credit bureau gateway-related code so that the class CreditBureauGatewayImp has to be tested separately. If we want to eliminate the dependency (and the associated performance hit) on message queues but still execute the code inside the CreditBureauGatewayImp class we can use a mock implementation of the IMessageReceiver and IMessageSender interfaces. A simple mock implementation could look like this:\n\n```\npublic class MockQueue: IMessageSender, IMessageReceiver\n{\n\tprivate OnMsgEvent onMsg = new OnMsgEvent(DoNothing);\n\t\n\tpublic void Send(Message msg){\n\t\tonMsg(msg);\n\t}\n\t\n\tprivate static void DoNothing(Message msg){\n\t\t\n\t}\n\t\n\tpublic OnMsgEvent OnMessage \n\t{ \n\t\tget { return onMsg; } \n\t\tset { onMsg = value; }\n\t}\n\t\n\tpublic void Begin()\n\t{\n\t\t\n\t}\n\n public MessageQueue GetQueue()\n {\n return null;\n }\n\t\n}\n```\n\nWe can see that the Send triggers the onMsg delegate immediately without using any message queue. To use this mock queue for the credit bureau gateway we would have to make sure to reply with a message of the correct type. We would not be able to simply pass the request message back to the reply message. This implementation is not shown here but can be simple if, for example, we use a canned reply message.\n\n## Limitations of This Example\n\nThis section reminded us that even a simple messaging system (the loan broker really has to execute only two steps -- get the credit score and get the best bank quote) can get fairly complex due to the asynchronous nature and loose coupling between components. However, I still took a number of shortcuts to make the example fit inside the book. Specifically, the example does not address the following topics:\n\n- Error Handling\n- Transactions\n- Thread Safety\n\nThe example has no managed mechanism to handle errors. At this point, components simple spit out messages into the various console windows -- not a suitable solution for a production system. For a real implementation error messages should be routed to a central console so they can notify an operator in a unified way. The systems management patterns in the following chapter (e.g., the [*Control Bus*](ControlBus.html) address these requirements.\n\nThis example does not use transactional queues. For example, if the MessageRouter crashes after sending 2 out of 4 quote request messages to the banks, some banks will process a quite request while others will not. Likewise, if the loan broker crashes after it receives all bank quote replies but before it sends a reply to the client the client will never receive a reply. In a real-life system, actions like this need to be encapsulated inside transactions so that incoming messages are not consumed until the corresponding outbound message had been sent.\n\nThe loan broker implementation executes only in a single thread and does not worry about thread safety. For example, the BeginReceive method on an inbound message queue (hidden away in MessageReceiverGateway) is not called until the processing of the previous message has been completed. This is just fine for an example application (and a lot faster than the synchronous implementation) but for a high-throughput environment we would want to use a [*Message Dispatcher*](MessageDispatcher.html) that manages multiple performer threads.\n\n## Summary\n\nThis chapter walked us through the implementation of the loan broker application using asynchronous message queues and MSMQ. I intentionally did not shy away from showing implementation details in order to bring the real issues inherent in building asynchronous messaging applications to light. I tried to focus on the design trade-offs more so than the vendor-specific messaging API so that the example is also valuable for non-C# developers.\n\nThis example reminds us of the complexities of implementing even a simple messaging application. Many things that can be taken for granted in a monolithic application (e.g. invoking a method) can require a significant amount of coding effort when using asynchronous messaging. Luckily, the design patterns provide us with a language to describe some of the design trade-offs without having to descend too deeply into the vendor jargon.\n\n## Integration Pattern Language\n\n[Message Construct.](MessageConstructionIntro.html)\n\n[Message](Message.html)\n\n[Command Message](CommandMessage.html)\n\n[Document Message](DocumentMessage.html)\n\n[Event Message](EventMessage.html)\n\n[Request-Reply](RequestReply.html)\n\n[Return Address](ReturnAddress.html)\n\n[Correlation Identifier](CorrelationIdentifier.html)\n\n[Message Sequence](MessageSequence.html)\n\n[Message Expiration](MessageExpiration.html)\n\n[Format Indicator](FormatIndicator.html)\n\n[Message Routing](MessageRoutingIntro.html)\n\n[Pipes-and-Filters](PipesAndFilters.html)\n\n[Message Router](MessageRouter.html)\n\n[Content-based Router](ContentBasedRouter.html)\n\n[Message Filter](Filter.html)\n\n[Dynamic Router](DynamicRouter.html)\n\n[Recipient List](RecipientList.html)\n\n[Splitter](Sequencer.html)\n\n[Aggregator](Aggregator.html)\n\n[Resequencer](Resequencer.html)\n\n[Composed Msg. Processor](DistributionAggregate.html)\n\n[Scatter-Gather](BroadcastAggregate.html)\n\n[Routing Slip](RoutingTable.html)\n\n[Process Manager](ProcessManager.html)\n\n[Message Broker](MessageBroker.html)\n\n[Message\nTransformation](MessageTransformationIntro.html)\n\n[Message Translator](MessageTranslator.html)\n\n[Envelope Wrapper](EnvelopeWrapper.html)\n\n[Content Enricher](DataEnricher.html)\n\n[Content Filter](ContentFilter.html)\n\n[Claim Check](StoreInLibrary.html)\n\n[Normalizer](Normalizer.html)\n\n[Canonical Data Model](CanonicalDataModel.html)\n\n[Messaging Endpoints](MessagingEndpointsIntro.html)\n\n[Message Endpoint](MessageEndpoint.html)\n\n[Messaging Gateway](MessagingGateway.html)\n\n[Messaging Mapper](MessagingMapper.html)\n\n[Transactional Client](TransactionalClient.html)\n\n[Polling Consumer](PollingConsumer.html)\n\n[Event-driven Consumer](EventDrivenConsumer.html)\n\n[Competing Consumers](CompetingConsumers.html)\n\n[Message Dispatcher](MessageDispatcher.html)\n\n[Selective Consumer](MessageSelector.html)\n\n[Durable Subscriber](DurableSubscription.html)\n\n[Idempotent Receiver](IdempotentReceiver.html)\n\n[Service Activator](MessagingAdapter.html)\n\n[Messaging Channels](MessagingChannelsIntro.html)\n\n[Message Channel](MessageChannel.html)\n\n[Point-to-Point Channel](PointToPointChannel.html)\n\n[Publish-Subscr. Channel](PublishSubscribeChannel.html)\n\n[Datatype Channel](DatatypeChannel.html)\n\n[Invalid Message Channel](InvalidMessageChannel.html)\n\n[Dead Letter Channel](DeadLetterChannel.html)\n\n[Guaranteed Delivery](GuaranteedMessaging.html)\n\n[Channel Adapter](ChannelAdapter.html)\n\n[Messaging Bridge](MessagingBridge.html)\n\n[Message Bus](MessageBus.html)\n\n[Systems Mgmt.](SystemManagementIntro.html)\n\n[Control Bus](ControlBus.html)\n\n[Detour](Detour.html)\n\n[Wire Tap](WireTap.html)\n\n[Message History](MessageHistory.html)\n\n[Message Store](MessageStore.html)\n\n[Smart Proxy](SmartProxy.html)\n\n[Test Message](TestMessage.html)\n\n[Channel Purger](ChannelPurger.html)", "znaku_textu": 79006, "slov": 10891, "odkazu": 94, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 14:55:53", "sha256": "2ce2911b2f9a410825d8ac135a7c98cf603b5090e35aef6adccd740a8e2ee8a8", "hloubka": 3, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://www.amazon.com/exec/obidos/ASIN/0321127420/enterpriseint-20", "http://www.microsoft.com/msmq", "http://www.amazon.com/exec/obidos/ASIN/0201734117/enterpriseint-20", "http://www.amazon.com/exec/obidos/ASIN/0471958697/enterpriseint-20", "https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "https://www.architectelevator.com/book", "https://www.cloudstrategybook.com/", "https://www.platformstrategybook.info/"]} {"url": "http://www.enterpriseintegrationpatterns.com/patterns/messaging/ComposedMessagingTIBCO.html", "titulek": "Asynchronous Implementation with TIBCO ActiveEnterprise - Enterprise Integration Patterns", "h1": "", "popis": "The previous two implementations of the Loan Broker used integration frameworks that provided basic Message Channel functionality. For example, both Axis and MSMQ provided APIs to send messages to or receive messages from a Message Channel while the application had to take care of pretty much everything else. We chose this type of implementation intentionally to demonstrate how an integration solution can be built from the ground up, using commonly available Java or C# libraries.", "klicova_slova": "Asynchronous Implementation with TIBCO ActiveEnterprise,integration, messaging, events, patterns, event-driven, coupling, eai, middleware, application integration, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns", "og:title": "Asynchronous Implementation with TIBCO ActiveEnterprise - Enterprise Integration Patterns", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/ComposedMessagingTIBCO.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/eip1_patterns_wide.png"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Solution Architecture"}, {"uroven": 2, "text": "The Implementation Toolset"}, {"uroven": 2, "text": "The Interfaces"}, {"uroven": 2, "text": "Implementing the Synchronous Services"}, {"uroven": 2, "text": "The Loan Broker Process"}, {"uroven": 2, "text": "Managing Concurrent Auctions"}, {"uroven": 2, "text": "Execution"}, {"uroven": 2, "text": "Conclusion"}, {"uroven": 2, "text": "Integration Pattern Language"}], "markdown": "| | Asynchronous Implementation with TIBCO ActiveEnterprise[Messaging Patterns](index.html) » [Interlude: Composed Messaging](ComposedMessagingExample.html) | [Contents](toc.html)[⇐ Prev](ComposedMessagingMSMQ.html)[Next ⇒](MessagingEndpointsIntro.html) |\n| --- | --- | --- |\n\n*(By Michael J. Rettig)*\n\nThe previous two implementations of the Loan Broker used integration frameworks that provided basic [*Message Channel*](MessageChannel.html) functionality. For example, both Axis and MSMQ provided APIs to send messages to or receive messages from a [*Message Channel*](MessageChannel.html) while the application had to take care of pretty much everything else. We chose this type of implementation intentionally to demonstrate how an integration solution can be built from the ground up, using commonly available Java or C# libraries.\n\nMany commercial EAI product suites offer substantially more functionality to streamline the development of integration solutions. These product suites typically include visual development environments that allow for \"drag-drop\" configuration of [*Message Translator*](MessageTranslator.html)s and [*Process Manager*](ProcessManager.html)s. Many also provide sophisticated system management and metadata management functions. We chose the TIBCO ActiveEnterprise integration suite for this example implementation. As with the previous implementations, we focus primarily on design decisions and trade-offs and only introduce as much product-specific language as is necessary to understand the solution. Therefore, this section should be useful even if you have not worked with TIBCO ActiveEnterprise before. If you are interested in detailed product or vendor information please visit [www.tibco.com](http://www.tibco.com).\n\nThis example implementation also differs in the solution design by using an Auction-style [*Scatter-Gather*](BroadcastAggregate.html) approach. This approach uses a [*Publish-Subscribe Channel*](PublishSubscribeChannel.html) instead of a [*Recipient List*](RecipientList.html) so that the Loan Broker can send the quote request to any number of banks. This type of Scatter-Gather pattern performs a dynamic Request/Reply with an unknown number of listeners. Additionally, the implementation of the Loan Broker component uses the business process management functionality provided by TIBCO’s [*Process Manager*](ProcessManager.html) tool.\n\n## Solution Architecture\n\nOur application is a simple bank quote request system. Customers submit quote requests to a loan broker interface. The loan broker fulfills the request by first obtaining a credit score, then requesting quotes from a number of banks. Once the loan broker obtains quotes from the banks it selects the best quote and returns it to the customer (see picture).\n\nClients of the system expect a synchronous Request-Reply interface to the loan broker – the client sends a quote request and waits for a reply message from the loan broker. The loan broker in turn uses a Request-Reply interface to communicate with the credit bureau to obtain credit scores. Once the initial client request is received, the loan broker has the option to perform asynchronous operations behind the distributed, synchronous facade. This allows the loan broker to utilize an auction-style Scatter-Gather with a [*Publish-Subscribe Channel*](PublishSubscribeChannel.html) to acquire the bank quotes from multiple banks.\n\n*TIBCO Loan Broker Solution Architecture*\n\nThe auction sequence begins by publishing the request for quotes message to the bank.loan.request [*Publish-Subscribe Channel*](PublishSubscribeChannel.html)so that any interested party can listen for the message and provide their own rates. The number of banks submitting replies is unknown and can vary for each quote request. The auction works by opening the auction to the banks, then waiting a predefined amount of time for response messages on the channel bank.loan.reply. Each time a bid is received the timeout is reset, giving other banks time to submit another bid if possible. In this case, the bids of other banks are public, so another bank could actually listen for other bids and place a counter bid if desired.\n\nThe loan broker broadcasts the request for a quote to an unknown number of recipients. This is quite different from a Recipient List which involves sending the request to a predefined list of banks. This is reflected in the [*Aggregator*](Aggregator.html)’s Completeness Condition. Instead of waiting for a response from each bank like the previous implementations, the [*Aggregator*](Aggregator.html) relies solely on a time-out condition to terminate the auction. The [*Aggregator*](Aggregator.html) simply ignores any responses received after the auction times out. If no bank replies within the specified interval, the [*Aggregator*](Aggregator.html) will send response message to the client indicating that no quotes were obtained.\n\n*Activity Diagram Describing the Process Manager Behavior*\n\nIn this implementation, the [*Content Enricher*](DataEnricher.html) and [*Aggregator*](Aggregator.html) functions are implemented within the [*Process Manager*](ProcessManager.html) component. As a result, the solution architecture diagram does not describe the details of the interaction between the components because they are embedded in a single component. Instead, we need to have a look at the activity diagram that represents the Process Template definition used by the [*Process Manager*](ProcessManager.html). An initial activity diagram cleanly defines the role of the loan broker as well as providing the basis for the Process Template. From the diagram, we can see that the loan broker has several responsibilities. This translates well into a process diagram which shows graphically, the exact order of events, and decision paths.\n\n## The Implementation Toolset\n\nIn order to explain the design of our solution, we need to introduce some basic concepts about the TIBCO product suite. Implementing TIBCO solutions often requires evaluating different tools for a particular problem. At times, a problem can be solved with several different tools. The trick is picking the best one. We limit the discussion to only those TIBCO features that are required to construct the example implementation:\n\n- TIB/RendezVous Transport\n- TIB/IntegrationManager Process Manager tool\n- TIBCO Repository for Metadata Management\n\n**TIB/RendezVous Transport**\n\nAt the heart of TIBCO's messaging suite is the TIB/Rendezvous transport layer. Rendezvous provides the messaging mechanism for sending and receiving TIBCO messages on the \"information bus\". TIBCO supports a wide range of transports including (but not limited to) JMS, HTTP, FTP, and email. Rendezvous will provide the underlying transport for the messages in our example. The transport supports both synchronous and asynchronous messages, as well as [*Point-to-Point Channel*](PointToPointChannel.html)s and [*Publish-Subscribe Channel*](PublishSubscribeChannel.html)s. Each channel can be configured for different service levels:\n\n- Reliable Messaging (RV) - provides high performance, but at the realistic risk of losing messages.\n- Certified messages (RVCM) - at least once delivery\n- Transactional messaging (RVTX) - guaranteed once and only once delivery\n\nSimilar to the MSMQ examples in this book, TIBCO provides an open API for creating messaging solutions using Java or C++, and includes a range of tools for simplifying the development process.\n\n**TIB/IntegrationManager Process Manager tool**\n\nIntegrationManager is a TIBCO development tool consisting of a rich user interface for designing workflow solutions, and a Process Manager engine for executing them. The GUI provides an extensive array of configuration, workflow, and implementation options that are stored in the TIBCO Repository. TIBCO uses the repository as the central configuration artifact for the system. It holds all metadata, workflow and custom code.\n\nThe workflow component of the solution is an aspect that sets it apart from code level solution. For the loan broker example, IntegrationManager provides asynchronous and synchronous messaging, as well as basic workflow including *ServerSessionState* [[EAA](http://www.amazon.com/exec/obidos/ASIN/0321127420/enterpriseint-20)] For our purposes, we can break IntegrationManager into 3 parts: the channel, job creator, and the process diagram.\n\n*TIB/IntegrationManager Components*\n\nEvery process in Integration Manager creates a \"job\" (or Process Instance) which provides a central session object for maintaining state. This object includes a slotted environment with get and put operations for storing objects, as well as utility methods for interacting with the session. \nA simple GUI allows TIBCO developers to create Process Definitions (called Process Diagrams in TIBCO) that specify the sequence of tasks the job executes. Process Definitions resemble UML style activity diagrams, consisting of tasks, connected by transition lines (see diagram). However, the diagrams only provide the skeleton; behind each activity (i.e., box on the diagram) is a good amount of configuration and code. For our example, we require some code for processing the loans. Integration manager uses ECMAScript (commonly referred to as \"JavaScript\") as the underlying scripting language.\n\n*TIB/IntegrationManager Process Diagram Example*\n\nA typical process diagram includes a series of integration tasks. These include control tasks, such as forks, sync bars, or decision points, signal tasks to send and receive messages, and execution tasks such as data translation, routing, and system integration. The basic diagram pictured here includes two tasks: an ECMAScript task that executes some custom logic, and a signal out task that publishes a message to a channel. Task transitions can contain logic for selecting a particular route based upon message contents or other criteria.\n\n**TIBCO Repository for Metadata Management**\n\nIntegration and messaging nearly always requires some form of self-describing data (see [*Introduction to Message Transformation*](MessageTransformationIntro.html)). TIBCO defines metadata classes as Active Enterprise (AE) objects stored in the TIBCO repository. Every AE object sent across a message channel includes a [*Format Indicator*](FormatIndicator.html) to indicate the class definition that this message adheres to.\n\nManaging message metadata is an important part of the development process. TIBCO developers can define the metadata directly within the development environment, can extract it from external systems such as relational databases (using a Metadata Adapter as described in [*Channel Adapter*](ChannelAdapter.html)), or import XML Schemas. The metadata provides an explicit contract for objects and messages in the system. Once the classes are defined in the TIBCO repository, the objects are available for instantiation and manipulation within ECMA script:\n\n```\n//Instantiation of a TIBCO AE class\nvar bank = new aeclass.BankQuoteRequest();\nbank.CorrelationID = job.generateGUID();\nbank.SSN = job.request.SSN;\n```\n\nHowever, remember that this is a dynamic, scripted environment with limited compile-time type checking. Changing a metadata definition can easily break another part of your system. Without proper testing and development practices, message based systems can easily become \"add only\" systems, meaning metadata is only added to the system, and never changed for fear of breaking something.\n\n## The Interfaces\n\nThe Solution Architecture diagram shows us that the solution requires the following services.\n\n**Loan Broker**\n\n- Receives the initial request\n- Obtains a credit score\n- Holds loan auction with banks\n- Returns best loan offer to client\n\n**Credit Service**\n\n- Provides a credit score based upon SSN\n\n**Bank(s)**\n\n- Submit a quote based upon the credit rating and loan amount\n\nEach service is accessible through an external interface. For each such interface we have to make the following design decisions:\n\n- Conversation Style: Synchronous vs. Asynchronous\n- Quality of Service Level\n\nThe conversation styles for the interfaces have been predetermined by the solution architecture. The loan broker and credit service will both need synchronous interfaces, while the communication with the banks will be purely asynchronous.\n\nService levels for messaging solutions can become quite complicated especially given failover scenarios. Fortunately, the loan example service level resolves to a simple solution. In event of failure (timeout, dropped messages, down systems), the original request can be resubmitted (the loan broker as an [*Idempotent Receiver*](IdempotentReceiver.html)). Remember that we are only obtaining a quote at this point. It is not yet a legally binding agreement. Of course, this type of assumption needs to be documented in the system and understood by all parties involved. For example, the banks need to know that a quote may be resubmitted a second time. If the banks track customer loan requests for fraud detection purposes we may have to change the solution to avoid sending duplicate requests, for example by using [*Guaranteed Delivery*](GuaranteedMessaging.html).\n\n## Implementing the Synchronous Services\n\nThe loan broker system has 2 synchronous interfaces – between the customer and the loan broker and between the loan broker and the credit bureau. TIBCO implements RPC style messaging with operations using [*Request-Reply*](RequestReply.html) and [*Command Message*](CommandMessage.html). Essentially, this is a synchronous wrapper to the underlying TIBCO messaging engine. During the invocation of TIBCO operations, you can listen to the request and reply messages passing across the bus. The request message is published on the specified channel (for example customer.loan.request). The message includes a Return Address that specifies the address of a so-called INBOX channel for the reply. TIBCO hides the asynchronous details behind an RPC-style programming model. In Integration Manager, the domain operations such as obtain credit score, etc. are defined as part of the AE classes and can be invoked from the process modeling tool.\n\nFor example, to expose the loan broker as a synchronous interface we must perform several implementation steps. The implementation of the credit bureau service follows closely to these same steps.\n\n**Define the AE Class Definitions**\n\nAE classes define the data format for messages sent across TIB/RendezVous channels. Defining a class in Integration Manager is quite different from creating a class in your favorite IDE. AE classes are defined through a series of dialog boxes (see picture) from the TIB/IntegrationManager IDE. The dialog boxes allow you to select a name for your class, and then designate fields for the class. The fields can be typed as integers, floats, doubles, or composed of other AE classes.\n\n*Defining an AE Class with Attributes and Operations*\n\n**Define the AE Operation Definitions**\n\nSimilar to adding interface methods, operations can be added to an AE class. The parameters and the return types can be specified in the definition. True to an interface, no implementation is specified. The implementation is bound later when we use the job creator to bind a channel to a process instance.\n\n**Create a Process Diagram**\n\nA process diagram provides the implementation for the operation. The operations implemented in this example require a return parameter. Unlike method implemented in code, a process diagram doesn't have a \"return\" value. Instead, we specify the slot in the job where the return value will be placed. We designate this in the job creator, and we must remember to properly assign the value to the job slot in our process diagram. The actual implementation of the process diagram will be discussed in detail in a later section.\n\n**Create a Client/Server Channel to Receive the Requests**\n\nThe channel allows us to define our transport, message definition, service, and subject. For our synchronous operations we need a client/server channel. We can specify the AE classes that we created in step 1. From our initial interface definitions, we chose Rendezvous with reliable messaging. Configuring these options is just a matter of clicking and selecting the proper options.\n\n*Defining Channel Properties*\n\n**Configure a Job Creator to Instantiate the Process Diagram**\n\nThe job creator retrieves values from the channel and passes them to the process diagram by creating a job and initializing its environment slots. Once the job is created, the process diagram is instantiated. Execution will follow the path defined by the activity diagram. Once the process finishes, the job creator returns the reply back to the channel. We can see in the job creator dialog the name of our operation.\n\n*Configuring the Job Creator*\n\n## The Loan Broker Process\n\nWith our synchronous services in place, we can implement the loan broker to tie everything together. The included diagram represents the loan broker process. This process defines the behavior of the Loan Broker component. In our prior steps, we defined the AE operation, channel, and job creator to instantiate the process diagram when a client submits a message to the CreditRequest channel.\n\n**Design Considerations**\n\nFrom a design perspective, we need to be very careful as to what is included in the process diagram. Large, complex diagram quickly become unmanageable. It is critical to create an effective separation of concerns within the diagrams, avoiding an ugly mixture of business logic and process logic inside a single process definition. Defining what is process logic and what is business logic is hard. A good rule of thumb is to think of process logic as external system interaction. What system do I connect to next? What do I do if the system is not available? Business logic will typically involve more domain specific language. How do I activate an order? How do I calculate a credit score? How do I create a quote for a bank loan? Given the complex nature of business code, a full featured development language is often the best choice for implementation. Most process management tools, including Integration Manager, will allow you to integrate directly with Java or another language.\n\nFor those familiar with the MVC (Model, View, Controller) concept (see, for example, [[POSA](http://www.amazon.com/exec/obidos/ASIN/0471958697/enterpriseint-20)], the implementation can be viewed in a similar context. By simply renaming view to workflow, our implementation falls into a concise definition.\n\n1. Workflow - A visualized model of the workflow\n2. Controller - The process engine that receives events from the message bus, executing the proper component of the process workflow.\n3. Model - The Underlying business code (ECMAScript, JavaScript, Java, J2EE, etc)\n\n**The Process Model Implementation**\n\n*The Loan Broker Process Definition*\n\nOur diagram contains a mix of script execution boxes and custom tasks that perform integration actions. One of the big advantages of modeling processes using a visual process modeling tool is the fact that the running \"code\" looks very similar to the UML activity diagram that we used to design the solution.\n\nSince each task icon can contain actual code or important configuration parameters, we'll walk through each task and describe it in more detail.\n\nThe first box represents an ECMAScript to instantiate an AE object and assign values to the fields.\n\n```\nvar credit = new aeclass.CreditBureauRequest();\ncredit.SSN = job.request.SSN;\njob.creditRequest = credit;\n```\n\nThe credit request created is needed as a parameter in the next activity which invokes the synchronous operations call to the credit bureau. The credit bureau is implemented as a separate process diagram consisting of a single ECMA task that receives the message and returns a credit score. The synchronous operation implies that the Loan Broker process will wait until a reply message from the credit bureau arrives.\n\nOnce the loan broker receives a reply from the credit bureau, we can see in the diagram that another AE object needs to be created to publish a quote request to any participating banks. To implement this function, we'll use the Mapper task that allows us to graphically map data items from multiple sources. The Mapper is a visual implementation of the [*Message Translator*](MessageTranslator.html) pattern. The Mapper task demonstrates one of the advantages of managing metadata. Because IntegrationManager has access to the metadata defining the structure of each object, the mapper displays the structure of the source and target objects and allows us to visually map the fields with a few mouse clicks. A new object is instantiated with the values from the input object. We use the job object’s generateGUID method to generate a unique [*Correlation Identifier*](CorrelationIdentifier.html) and assign it to the Correlation ID field of the bankRequest object. As we will see later, the Correlation ID field is important to allow us to process more than one loan request at the same time.\n\n*The Visual Mapper Task Creates the Bank Request Message*\n\nInstead of using the visual Mapper we could have used an ECMAScript task to accomplish the same function. The equivalent code would look like the following. You can see how we create a new object of type BankQuoteRequest and assign each field from the source objects:\n\n```\nvar bank = new aeclass.BankQuoteRequest();\n//Create ID to uniquely identify this transaction.\n// We will need this later to filter replies\nbank.CorrelationID = job.generateGUID();\nbank.SSN = job.request.SSN;\nbank.CreditScore = job.creditReply.CreditScore;\nbank.HistoryLength = job.creditReply.HistoryLength;\nbank.LoanAmount = job.request.LoanAmount;\nbank.LoanTerm = job.request.LoanTerm;\n\njob.bankRequest = bank;\n```\n\nWhether to use the visual Mapper Task or an ECMAScript Task to implement a [*Message Translator*](MessageTranslator.html) function depends on the type and complexity of a mapping. The Mapper Task can give us a nice visual view of the connections between source and target object, but can become hard to read when the objects have many fields. On the other hand, the Mapper includes special functions that allow us to map repeating fields (i.e. Arrays) with a single line instead of having to code a loop.\n\nNext, a very simple ECMAScript task instantiates a bid array that will hold the incoming bank responses. This script contains only a single line:\n\n```\njob.bids = new Array();\n```\n\nThe next task is a Signal Out task that publishes the bankRequest object to the bank.loan.request channel. This is an asynchronous action, so the process immediately transitions to the next step without waiting for a reply.\n\nThe following tasks waits for incoming quote reply messages on the bank.loan.reply channel. If a message is received within the specified timeout interval, the script task adds the received message to the bids array:\n\n```\njob.bids[job.bids.length] = job.loanReply;\n```\n\nOnce the auction period ends, the Signal In task times out and transitions the process to the final task. This ECMAScript task implements the Aggregation Algorithm of the [*Aggregator*](Aggregator.html), selecting the best quote from all the bids. The code creates a new instance of the LoanQuoteReply, transfers the SSN and LoanAmount fields from the request object to this reply object, and loops through the bids array to find the best quote.\n\n```\nvar loanReply = new aeclass.LoanQuoteReply();\nloanReply.SSN = job.request.SSN;\nloanReply.LoanAmount = job.request.LoanAmount;\n\nvar bids = job.bids;\nfor(var i = 0; i < bids.length; i++){\n var item = bids[i];\n if(i == 0 || (item.InterestRate < loanReply.InterestRate)){\n loanReply.InterestRate = item.InterestRate;\n loanReply.QuoteID = item.QuoteID;\n }\n}\n\njob.loanReply = loanReply;\n```\n\nThe last line of the ECMA script places the loan reply object to be returned to customer into a job slot . We configured the loan broker job creator to return the loanReply attribute of the job to the customer as the reply message (see picture). When the process finishes, the job creator pulls the message found in the loanReply attribute of the job, and returns the value to the client.\n\n*Configuring the Job Creator’s Rule Set to Return the Best Quote*\n\n## Managing Concurrent Auctions\n\nThe implementation of the auction provided a few development hurdles. Concurrency adds a degree of complexity to the problem. For the auction to work, we need to publish an asynchronous message then wait a specified amount of time for replies. However, if multiple auctions occur at once, we must ensure that each loan broker only receives the replies they are concerned about, and not all the replies.\n\nThis functionality was implemented using a [*Correlation Identifier*](CorrelationIdentifier.html) and a [*Selective Consumer*](MessageSelector.html) to discard unrelated messages. Ideally, we would want this filtering to occur at the channel level and not at the process instance. However, that would require the dynamic creation of channel subjects at runtime, one for each pending auction. Presently, there are implementation constraints within Integration Manager that prevent us from using this approach. When a process diagram is instantiated at runtime, it needs to register all subjects it is listening to. This allows the process engine to listen for any messages on those subjects and queue them as needed. Queuing prevents timing bugs due to process diagrams that publish on one subject then transition to another state to listen for a reply. In an asynchronous world, if the transition takes too long, the reply could be received before the process diagram gets a chance to subscribe. Therefore, the process diagram conveniently queues inbound messages, but at the cost of disallowing dynamic subjects. Given the requirements of the present example, filtering at the process level works perfectly well. The [*Correlation Identifier*](CorrelationIdentifier.html) is a unique identifier assigned to each process that is then passed to each bank process and is included in each reply. A single line of ECMAScript provides the filtering in the SignalIn task:\n\n```\n(event.msg.CorrelationID == job.bankRequest.CorrelationID)\n```\n\n## Execution\n\nWith the example in place, we can now run the solution. Running the solution involves starting the Integration Manager engine. To test the solution, a simple test client is included in the repository that submits loan requests every 5 seconds. Simple stubs are used for the implementations of the credit service and the banks. One of the advantages of [*Publish-Subscribe Channel*](PublishSubscribeChannel.html)s is that we can easily listen to all messages on the message bus to inspect the message flow. We used a simple tool to log all messages to the console. For clarity, we truncated the message content to show only relevant fields and eliminated the format identification and tracking information included in each message. We can see from the logs, the times, subjects, and inboxes of messages. The inboxes are the return addresses for the synchronous services.\n\n```\ntibrvlisten: Listening to subject >\n\n2003-07-12 16:42:30 (2003-07-12 21:42:30.032000000Z):\nsubject=customer.loan.request,\nreply=_INBOX.C0A80164.1743F10809898B4B60.3,\nSSN=1234567890 LoanAmount=100000.000000 LoanTerm=360\n\n2003-07-12 16:42:30 (2003-07-12 21:42:30.052000000Z):\nsubject=credit.loan.request,\nreply=_INBOX.C0A80164.1743F10809898B4B60.4,\nSSN=1234567890\n\n2003-07-12 16:42:30 (2003-07-12 21:42:30.092000000Z):\nsubject=bank.loan.request,\nSSN=1234567890 CreditScore=345 HistoryLength=456 LoanAmount=100000.000000\nCorrelationID=\"pUQI3GEWK5Q3d-QiuLzzwGM-zzw\" LoanTerm=360\n\n2003-07-12 16:42:30 (2003-07-12 21:42:30.112000000Z):\nsubject=bank.loan.reply,\nInterestRate=5.017751 QuoteID=\"5E0x1K_dK5Q3i-QiuMzzwGM-zzw\" ErrorCode=0 CorrelationID=\"pUQI3GEWK5Q3d-QiuLzzwGM-zzw\"\n\n2003-07-12 16:42:30 (2003-07-12 21:42:30.112000000Z):\nsubject=bank.loan.reply,\nInterestRate=5.897514 QuoteID=\"S9iIAXqgK5Q3n-QiuNzzwGM-zzw\" ErrorCode=0 CorrelationID=\"pUQI3GEWK5Q3d-QiuLzzwGM-zzw\"\n```\n\nWe see the request message from the test client on the channel customer.loan.request. The message includes the social security number of the customer as well as the desired loan amount and term (100,000 Dollars for 360 months). The message specifies the test client's private reply channel _INBOX.C0A80164.8CC3F0E4FAA97E1EA8.123 as the [*Return Address*](ReturnAddress.html) so that the loan broker knows where to send the reply message.\n\nThe next message represents the request from the loan broker to the credit service, carrying the private inbox of the loan broker as the [*Return Address*](ReturnAddress.html). The credit service only requires the social security number. The reply message is not captured by our logging tool because _INBOX channels are private channels.\n\nAfter the loan broker receives the credit score, it publishes a message to the bank.loan.request channel. The two bank stubs in our example immediately reply with one interest rate each. Each bank also assigns a unique QuoteID to the reply so that the customer can refer back to it later. The auction period times out in a few seconds. Because we cannot see the reply message from the loan broker process to the test client we can look in the debug log for the process manager engine to verify that our test client received the lower interest rate. Within this message we can see the CorrelationID and the [*Format Indicator*](FormatIndicator.html) for the class.\n\n```\nreply= class/LoanQuoteReply {\n SSN=1234567890\n InterestRate=5.017751017038945\n LoanAmount=100000.0\n QuoteID=5E0x1K_dK5Q3i-QiuMzzwGM-zzw\n}\n```\n\n## Conclusion\n\nThe solution provides some interesting points for comparison. Visual Workflows can be easy to view and understand, but just as in code, this relative simplicity can turn into a maze of confusion as implementations become more complex. The dynamic nature of the Scatter-Gather allows for a clean decoupling of the pub/sub interface. The loan broker can publish bank loan requests without any knowledge of the subscribing banks. Similarly, the [*Aggregator*](Aggregator.html) for the replies doesn't need to know the number of expected replies. The potential downside of this flexibility is that it can hide errors resulting from incorrect subject naming, developer error, or dropped messages.\n\nThe visual, GUI driven implementation with TIBCO provides a corollary approach to the code level implementations. While the sheer power and flexibility of code cannot be argued against, a more graphical environment can greatly simplify very complex tasks. Configuration is a very large part of integration, and graphical environments work well for this. At times, it may seem that developers have to choose between writing code and using a vendor development tool. However, they can often coexist effectively. For instance, you could choose to use Integration Manager to model integration workflows, and use J2EE session beans to implement domain logic.\n\nFor the sake of brevity, our example was relatively simple, leading to an easy to understand scenario. Real world implementations are rarely this simple. Rapid development tools can facilitate faster initial development, but can limit your development options. Process management tools can help hide the complexities of messaging, allowing developers to focus on integration tasks without worrying about what happens behind the scenes. However, ignorance of messaging infrastructure has led to the death of more than one project.\n\n## Integration Pattern Language\n\n[Message Construct.](MessageConstructionIntro.html)\n\n[Message](Message.html)\n\n[Command Message](CommandMessage.html)\n\n[Document Message](DocumentMessage.html)\n\n[Event Message](EventMessage.html)\n\n[Request-Reply](RequestReply.html)\n\n[Return Address](ReturnAddress.html)\n\n[Correlation Identifier](CorrelationIdentifier.html)\n\n[Message Sequence](MessageSequence.html)\n\n[Message Expiration](MessageExpiration.html)\n\n[Format Indicator](FormatIndicator.html)\n\n[Message Routing](MessageRoutingIntro.html)\n\n[Pipes-and-Filters](PipesAndFilters.html)\n\n[Message Router](MessageRouter.html)\n\n[Content-based Router](ContentBasedRouter.html)\n\n[Message Filter](Filter.html)\n\n[Dynamic Router](DynamicRouter.html)\n\n[Recipient List](RecipientList.html)\n\n[Splitter](Sequencer.html)\n\n[Aggregator](Aggregator.html)\n\n[Resequencer](Resequencer.html)\n\n[Composed Msg. Processor](DistributionAggregate.html)\n\n[Scatter-Gather](BroadcastAggregate.html)\n\n[Routing Slip](RoutingTable.html)\n\n[Process Manager](ProcessManager.html)\n\n[Message Broker](MessageBroker.html)\n\n[Message\nTransformation](MessageTransformationIntro.html)\n\n[Message Translator](MessageTranslator.html)\n\n[Envelope Wrapper](EnvelopeWrapper.html)\n\n[Content Enricher](DataEnricher.html)\n\n[Content Filter](ContentFilter.html)\n\n[Claim Check](StoreInLibrary.html)\n\n[Normalizer](Normalizer.html)\n\n[Canonical Data Model](CanonicalDataModel.html)\n\n[Messaging Endpoints](MessagingEndpointsIntro.html)\n\n[Message Endpoint](MessageEndpoint.html)\n\n[Messaging Gateway](MessagingGateway.html)\n\n[Messaging Mapper](MessagingMapper.html)\n\n[Transactional Client](TransactionalClient.html)\n\n[Polling Consumer](PollingConsumer.html)\n\n[Event-driven Consumer](EventDrivenConsumer.html)\n\n[Competing Consumers](CompetingConsumers.html)\n\n[Message Dispatcher](MessageDispatcher.html)\n\n[Selective Consumer](MessageSelector.html)\n\n[Durable Subscriber](DurableSubscription.html)\n\n[Idempotent Receiver](IdempotentReceiver.html)\n\n[Service Activator](MessagingAdapter.html)\n\n[Messaging Channels](MessagingChannelsIntro.html)\n\n[Message Channel](MessageChannel.html)\n\n[Point-to-Point Channel](PointToPointChannel.html)\n\n[Publish-Subscr. Channel](PublishSubscribeChannel.html)\n\n[Datatype Channel](DatatypeChannel.html)\n\n[Invalid Message Channel](InvalidMessageChannel.html)\n\n[Dead Letter Channel](DeadLetterChannel.html)\n\n[Guaranteed Delivery](GuaranteedMessaging.html)\n\n[Channel Adapter](ChannelAdapter.html)\n\n[Messaging Bridge](MessagingBridge.html)\n\n[Message Bus](MessageBus.html)\n\n[Systems Mgmt.](SystemManagementIntro.html)\n\n[Control Bus](ControlBus.html)\n\n[Detour](Detour.html)\n\n[Wire Tap](WireTap.html)\n\n[Message History](MessageHistory.html)\n\n[Message Store](MessageStore.html)\n\n[Smart Proxy](SmartProxy.html)\n\n[Test Message](TestMessage.html)\n\n[Channel Purger](ChannelPurger.html)", "znaku_textu": 34194, "slov": 4792, "odkazu": 90, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 14:55:54", "sha256": "46bfd765509915cf7c0fe8ff862dec647fff33e37794e3bfd3291b94763df702", "hloubka": 3, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://www.tibco.com/", "http://www.amazon.com/exec/obidos/ASIN/0321127420/enterpriseint-20", "http://www.amazon.com/exec/obidos/ASIN/0471958697/enterpriseint-20", "https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "https://www.architectelevator.com/book", "https://www.cloudstrategybook.com/", "https://www.platformstrategybook.info/"]} {"url": "http://www.enterpriseintegrationpatterns.com/patterns/messaging/ComposedMessagingWS.html", "titulek": "Synchronous Implementation using Web Services - Enterprise Integration Patterns", "h1": "", "popis": "This section describes the implementation of the loan broker example using Java and XML Web Services. We use the open-source Apache AXIS toolkit to take care of the Web Services mechanics for us. We do not want this to be an exercise in Java development and chose this tool to abstract the complexity of designing and implementing a synchronous Web Service. The discussion in this section focuses on the design decisions that we make in designing a synchronous messaging solution.", "klicova_slova": "Synchronous Implementation using Web Services,integration, messaging, events, patterns, event-driven, coupling, eai, middleware, application integration, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns", "og:title": "Synchronous Implementation using Web Services - Enterprise Integration Patterns", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/ComposedMessagingWS.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/eip1_patterns_wide.png"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Solution Architecture"}, {"uroven": 2, "text": "Web Services Design Considerations"}, {"uroven": 2, "text": "Apache Axis"}, {"uroven": 2, "text": "Service Discovery"}, {"uroven": 2, "text": "The Loan Broker Application"}, {"uroven": 2, "text": "Components of the Loan Broker Application"}, {"uroven": 2, "text": "Client Application"}, {"uroven": 2, "text": "Running the Solution"}, {"uroven": 2, "text": "Performance Limitations"}, {"uroven": 2, "text": "Limitations of This Example"}, {"uroven": 2, "text": "Summary"}, {"uroven": 2, "text": "Integration Pattern Language"}], "markdown": "| | Synchronous Implementation using Web Services[Messaging Patterns](index.html) » [Interlude: Composed Messaging](ComposedMessagingExample.html) | [Contents](toc.html)[⇐ Prev](ComposedMessagingExample.html)[Next ⇒](ComposedMessagingMSMQ.html) |\n| --- | --- | --- |\n\n*(By Conrad F. D'Cruz)*\n\nThis section describes the implementation of the loan broker example using Java and XML Web Services. We use the open-source Apache AXIS toolkit to take care of the Web Services mechanics for us. We do not want this to be an exercise in Java development and chose this tool to abstract the complexity of designing and implementing a synchronous Web Service. The discussion in this section focuses on the design decisions that we make in designing a synchronous messaging solution.\n\n## Solution Architecture\n\n*Web Services Solution Architecture*\n\nThe figure above shows the overall architecture of the synchronous predictive web service example. There are seven significant interfaces between the loan broker and the rest of the solution. As indicated, SOAP over HTTP is used to communicate between each pair of participants.\n\nThe first interface is the entry point in to the loan broker that the client application uses to pass in the message containing the loan application information. The client receives the results of the query back from the loan broker via the same interface. Although the Axis server is not shown in this diagram it receives the Message from the client and implements the [*Service Activator*](MessagingAdapter.html).\n\nThe second interface is between the loan broker and the credit agency. The credit agency is an external bureau and provides a Web service interface for the loan broker to acquire additional customer data that is required by the banks. The loan broker enriches the incoming request with the data from the credit agency, implementing a [*Content Enricher*](DataEnricher.html).\n\nThe next five interfaces are between the loan broker and each of the five banks. These interfaces are used to obtain the rate quote for a loan from that particular bank. Each bank interface provides the same functionality (obtain a quote) but may specify a different format for the associated SOAP messages. Therefore, the loan broker has to translate the quote request message to the format required by each particular bank before querying the bank.\n\nThe loan broker contacts each bank directly using predictive routing i.e., the set of banks that participate in the quote gathering is known right before they are called for a quote. In this stage the loan broker application sends the request to the selected banks using the [*Recipient List*](RecipientList.html) pattern. Because each bank can use a different format for the request, the loan broker needs to use an array of [*Message Translator*](MessageTranslator.html)s to convert the request into the format required by each bank.\n\nLikewise, each reply message has to be converted to a common format using a [*Normalizer*](Normalizer.html), so that all replies can be aggregated into the single best quote. The request and response messages are passed synchronously, i.e., the client and loan broker is blocked until each Bank responds or times out. The loan broker aggregates all responses into the single best quote and sends the best quote reply back to the client.\n\nSynchronous messaging is useful in some problem domains where a simple solution is necessitated. By using synchronous messaging we do not have to worry about handling asynchronous events, thread safety or the infrastructure needed to support them. The client invokes the loan broker web service and then waits for the response from the server. Based on the general description of the overall example the first component of the server application is the loan broker whose endpoint is exposed as the web service. There are several components in this solution and each component makes a synchronous call to the next component and waits for the response.\n\n## Web Services Design Considerations\n\nXML Web services rely on the Simple Object Access Protocol (SOAP). The SOAP specification was submitted to the W3C and defines an XML based protocol for the purpose of exchanging messages between decentralized and distributed systems. For more details on SOAP please refer to the documents at the World Wide Web Consortium web site ([www.w3.org/TR/SOAP](http://www.w3.org/TR/SOAP)).\n\nUnfortunately, the \"S\" in \"SOAP\" is no longer valid. Actually, we have jokingly postulated that SOAP be renamed to Complex Remote Access Protocol -- you figure out the acronym... Seriously, designing a robust Web services interface requires us to dive into a a number of terminologies and associated design trade-offs. While this book is not an introduction into Web Services, we feel it is important to briefly discuss the following design considerations:\n\n- Transport protocol\n- Asynchronous messaging versus Synchronous messaging\n- Encoding style (SOAP Encoding vs. doc/literal)\n- Binding style (RPC vs. Document-style)\n- Reliability and Security\n\n**Transport Protocol**\n\nThe SOAP specification was created to allow applications to make synchronous RPC-style calls to a service across the network in a technology-neutral way. The SOAP specification actually defines a separate request and response message for each invocation to a Web Service (as defined in the WSDL document describing the service). Even though SOAP was developed with messaging in mind, the vast majority of the Web Service applications use HTTP as the transport protocol. HTTP is a natural choice because it is the most commonly used protocol on the Web and can sneak through firewalls. However, the HTTP protocol is the \"Hyper Text Transfer Protocol\" -- it was designed to allow users with Web browsers to retrieve documents over the Internet, not for applications to communicate with each other. The HTTP protocol is inherently unreliable and designed for synchronous document retrieval -- the client application uses the same connection for sending the request to the server and receiving the response. Therefore, Web Services that use the HTTP protocol will invariably use synchronous request/response messaging because asynchronous messaging over an unreliable channel is about as useful as dropping a bottle into the ocean.\n\n**Asynchronous vs. Synchronous**\n\nIn a synchronous implementation of a Web Service, the client connection remains open from the time the request is submitted to the server. The client will wait until the server sends back the response message. The advantage of using the synchronous RPC communication is that the client application knows the status of the Web Service operation in a very short time (either it receives a response or it times out). A serious limitation of using synchronous messaging is that the server may have to deal with a large number of concurrent connections because each concurrent client maintains an open to connection while waiting for the results. This causes the server application to become increasingly complex. If one of the invocations to a synchronous service provider fails, the server application has to provide the mechanism to trap the failure and recover and re-route the processing or flag an error before continuing with the other synchronous invocations.\n\nAt the present time, most Web Services toolkits only support synchronous messaging by default. However, using existing standards and tools such as asynchronous message queuing frameworks, some vendors have emulated asynchronous messaging for Web Services. Several organizations, companies and the Web Services working groups have recognized the need to have asynchronous messaging support and have been moving towards defining standards (e.g. WS-ReliableMessaging). For the latest on Web Services standards, please refer to the World Wide Web Consortium web site at [http://www.w3.org/](http://www.w3.org/) and see the chapter [*Emerging Standards and Futures in Enterprise Integration*](Future.html) at the end of this book.\n\n**Encoding Style**\n\nThe notion of SOAP encoding has led to a fair amount of debate and confusion. The SOAP Specification specifies a mode called \"encoding Style\" specified by the encodingStyle attribute. This mode can take on two values, \"encoded\" (by setting the attribute value to \"http://schemas.xmlsoap.org/soap/encoding/\") and \"literal\" (by specifying a different (or no) attribute value). This mode determines how application objects and parameters are represented in the XML \"on the wire\". \"Encoded\" (also referred to as SOAP Encoding) refers to Section-5 of the SOAP specification ([www.w3.org/TR/SOAP](http://www.w3.org/TR/SOAP)), which defines a primitive mechanism for mapping programming language types to XML. \"Literal\" (also called \"doc/literal\") means don't do that. Instead, the type information is provided by an external mechanism, more likely than not a WSDL (Web Services Description Language) document that uses XML schema to define exactly what types are used in the SOAP message.\n\nThe reason this came about is because the SOAP specification was written prior to the adoption of the XML schema specification (XSD). Thus, the original\nSOAP specification had to provide a way of encoding type information along with the parameters being sent for method calls because there was no\naccepted way of specifying it. Where this really comes into play is with complex data types such as Arrays. Section 5.4.2 of the SOAP specification defines a particular\nmechanism for representing programming language arrays in XML that uses a special SOAPEnc:Array schema type.\n\nHowever, since the adoption of XML Schema (see [http://www.w3.org/TR/xmlschema-0/](http://www.w3.org/TR/xmlschema-0/)), most languages have rendered the need for SOAP encoding obsolete by specifying their own mappings (or serialization rules) from XML schema to the programming language types. For instance, the JAX-RPC specification uniquely specifies how Java types are mapped to XML schema elements and vice-versa. This obviates the need for extra encoding information in the XML. So, as a result, SOAP Encoding is no longer favored, and has been superceded by literal encoding with the mapping being specified externally by an XML schema document, usually in\nthe form of a WSDL document.\n\n**Binding Style**\n\nThe WSDL Specification specifies two different \"binding styles\" in its SOAP binding. The values of the binding style attribute are \"RPC\" and \"Document\". What this means is that if a WSDL document specifies an operation has a binding style attribute set to \"RPC\" then the receiver must interpret that message using the rules found in Section 7 of the SOAP specification. This means, for instance, that the XML element inside the SOAP body (called a \"wrapper element\") must have a name identical to the name of the corresponding programming-language operation that is to be invoked, that each message part within that element must correspond exactly (in name and order) to a parameter of that programming-language operation, and that there must be only a single element returned (which must be named XXXResponse, where XXX\nis the name of the corresponding operation in the language) that contains inside it exactly one element, that is the return value of the operation.\n\nThe \"Document\" binding style is much looser. A message in the document binding style must simply be made up of well-formed XML. It is up to the SOAP engine that receives it how it will be interpreted. Now, having said that, it is fairly common (for instance among Microsoft tools) to use \"Document\" binding style and \"Literal\" encoding to represent RPC semantics. Even though a \"Document\" style is used, the message being sent represents a [*Command Message*](CommandMessage.html), with the operation to be invoked and the parameters to be passed encoded in the \"Document\".\n\n**Reliability and Security**\n\nIn the chapter [*Emerging Standards and Futures in Enterprise Integration*](Future.html), Sean Neville describes evolving standards that aim to address the issues of reliability and security for Web Services.\n\nOur solution uses the most basic and probably still most prevalent combination of these design choices. The loan broker implementation uses SOAP over HTTP with synchronous communication, encoding messages with the default SOAP encoding style and RPC binding. This makes the Web service behave very much like a [*Remote Procedure Invocation*](EncapsulatedSynchronousIntegration.html). We went this route so that we do not get stuck debating Web services internals (well, not any more than we already did) but can focus on contrasting the synchronous Web services implementation with the other implementations.\n\n## Apache Axis\n\nThis section provides a brief description of the Axis architecture to help elucidate the significant points in our design. For additional details on Axis please refer to the Apache Axis web site at [xml.apache.org/axis](http://xml.apache.org/axis).\n\nThe chapter Root Patterns defines a [*Message Endpoint*](MessageEndpoint.html) as the mechanism an application uses to connect to a messaging channel in order to send and receive messages. In our loan broker application, the Axis framework itself represents the message channel and its main function is to handle the processing of messages on behalf of the user application.\n\nThe Axis server implements the [*Service Activator*](MessagingAdapter.html) pattern. In the chapter on Messaging Endpoints, we described how a [*Service Activator*](MessagingAdapter.html) connects a [*Message Channel*](MessageChannel.html) to a synchronous service in an application so that when a message is received, the service is invoked.\n\nThe Message Adapter is implemented within the Axis server so that the developer does not need to implement this functionality. Therefore the application code contains only business logic for the application and the Axis server takes care of all message-handling services.\n\nThe client-programming model of Axis provides the components for the client application to invoke an endpoint URL and then receive the response message from the server. The loan broker client in this application is a synchronous client that uses this client-programming model of Axis. Within the server there is a listener for each transport protocol supported by the server. When the client sends a message to the endpoint, a transport listener within the Axis framework creates a message context object and passes it through a request chain in a framework. The Message Context contains the actual Message received from the client along with associated properties added by the transport client.\n\nThe Axis framework is made up of a series of Handlers, which are invoked in a particular order depending on the deployment configuration and whether the client or server is invoking the framework. Handlers are part of the Message Flow subsystem and are grouped together and called Chains. Request messages are processed by a sequence of request Handlers in a Chain. Any response messages are sent back on the corresponding response Chain through a sequence of response Handlers.\n\nThe figure above shows a high level representation of the internals of the Axis framework. A detailed discussion on the architecture of Axis can be found at http://xml.apache.org/axis.\n\nAxis consists of several subsystems that work together to provide the functionality of a Message Channel. This framework is available for use by both the client and server application.\n\nThe relevant Axis subsystems for our example are as follows:\n\n- Message Model subsystem defines the XML syntax of the SOAP messages.\n- Message Flow subsystem defines Handlers and Chains to pass the messages\n- Service subsystem defines the service handler (SOAP, XML-RPC)\n- Transport subsystem provides alternatives for the transport of messages (for e.g., HTTP, JMS, SMTP)\n- Provider subsystem defines the providers for different types of classes (for e.g., java:RPC, EJB, MDB)\n\nAs mentioned earlier, the developer only needs to focus on creating an application that implements the business logic, which can then be deployed in the Axis server. There are three techniques for deploying a java class as a Web service and being made available as an endpoint service and we have named them as follows.\n\n- Automatic Deployment\n- Using a Web Services Deployment Descriptor\n- Generate proxies from an existing WSDL document\n\nThe first and simplest way is to write the class containing the business logic as a Java Web Service file (this is a Java source file with a *.jws extension). The methods of this class contain the business logic. The JWS file does not need to be compiled and can be instantly deployed by copying the source file into the webapps directory on the server. Each public method is now accessible as a Web service. The name of this JWS file forms part of the endpoint that the Axis server exposes as a Web service as shown below:\n\n```\nhttp://hostname:portnumber/axis/LoanBroker.jws\n```\n\nAxis 1.1 automatically generates the WSDL (Web Services Description Language - see [http://www.w3.org/TR/wsdl](http://www.w3.org/TR/wsdl).) document from services deployed within the server. WSDL is an XML format that describes the public interface of a Web service (i.e. the methods available through the interface) as well as the location of the service (i.e. the URL). The automatic generation of WSDL allows other applications to inspect the remote interface provided by the Web service class. It can also be used to automatically generate client stub classes that encapsulate the Web services call inside a regular Java class. The disadvantage of this method is the developer cannot control the deployment parameters.\n\nThe second technique deploys a compiled class using a WSDD (Web Services Deployment Descriptor), which allows the developer to control the deployment parameters, e.g. the class scope. By default, a class gets deployed in the request scope i.e., a new instance of the class is instantiated for each request that is received. Once the processing is finished the instance is destroyed. If the class has to persist for the entire session to service multiple requests from the same client over a period of time, we need to define the class in the session scope. For some applications, we need all clients to access a singleton class, i.e., the class has to be instantiated and made available for the entire duration the application is active, in which case the web service is defined in the application scope.\n\nThe last technique is more complicated than the previous two techniques but allows the generation of proxies and skeletons from an existing WSDL document (using the wsdl2java tool). The proxies and skeletons encapsulate all SOAP-related code so that the developer does not have to write any SOAP (or Axis)-related code, but can instead insert the business logic right into in the method bodies of the generated skeleton.\n\nWe choose to implement all our Web services using the Automatic Deployment technique using JWS files, in order to keep the design and deployment requirements as simple as possible. On the client side it is a lot easier to hand code the call to the Web Service. We could have used wsdl2java to generate the stubs, which would then be called by the client code, however we tried to minimize the amount of code generation because it can make it difficult to walk through an example solution.\n\n## Service Discovery\n\nBefore we proceed with a discussion of the loan broker application, we need to describe a few general steps that we follow when implementing the solution to help in creating an application that is easy to deploy. In order to invoke a Web service that is deployed on a server, any client application needs to know the endpoint URL. In the Web services model, an application would look up the location of a web service they need to access from a common service registry.\n\nUDDI (Universal Description, Discovery and Integration) is a standard for such a repository. A discussion of UDDI is beyond the scope of this section and you can get additional information at [www.uddi.org](http://www.uddi.org/). In our example we hard code the endpoint URLs in the application itself. However, to make it easy to deploy the example code, we create properties files for both the server and client applications. The properties file has name value pairs for the hostname and port number parameters, which match the parameters of your Axis server installation. This gives you some flexibility in deploying the loan broker application in your environment. We provide a utility method readProps() in some of the Java classes. This method is for reading files that contain the deployment parameters of the Axis server. The readProps() method is not used by any of the functional aspects of the loan broker application.\n\nIn any distributed computing framework whether it is Java RMI, CORBA or SOAP Web services, we need to define parameters of the method calls on remote objects as primitive data types or objects that can be serialized to and from the network. These parameters are the properties of the message objects that are sent from the client to the server. To keep the loan broker solution simple we use a java String object to return the response from the loan broker to the client. If the calling parameters are primitive data types (e.g. int, double, etc.) they have to be wrapped in the predefined object wrappers called the type wrappers (for e.g., Integer, Double, etc.).\n\n## The Loan Broker Application\n\nThe figure below shows the class diagram for the loan broker component. The core business logic for the loan broker is encapsulated inside the LoanBrokerWS class. This class inherits from a class provided by the Axis framework that implements a [*Service Activator*](MessagingAdapter.html) to invoke a method in the LoanBrokerWS class when a SOAP request arrives. The LoanBrokerWS references a set of gateway classes that implement details of interfacing with external entities, such as the credit agency and the banks. This logic is encapsulated inside the classes CreditAgencyGateway, LenderGateway, BankQuoteGateway.\n\n*Loan Broker Class Diagram*\n\nThe only service interface from the loan broker to the outside world is the message endpoint for the client to access the loan broker service. There is no need to define a [*Messaging Gateway*](MessagingGateway.html) since the Axis framework acts as the gateway on behalf of the application.\n\nThe following sequence diagram illustrates the interaction between the components for the synchronous predictive Web service example. The loan broker first calls the credit agency gateway component, which enriches the minimum data provided with a credit score and the length of credit history for the customer. The loan broker uses the enriched data to call the lender gateway. This component implements the [*Recipient List*](RecipientList.html) that uses all the data provided to choose the set of lenders that can service the loan request.\n\nThe loan broker then calls the bank quote gateway. This component performs the predictive routing operation by calling each bank in turn. The bank components model the interface to a real-world banking operation. For example the Bank1 class is the interface to the Bank1WS.jws Web Service that models the banking operation. When a loan request comes in, there is some amount of clerical work performed before generating the rate quote based on all the parameters. In this example, the rate quote is generated by a banking Web service.\n\nThe bank quote gateway aggregates the responses from the banks and chooses the best quote from all the quotes received. The response is sent back to the loan broker, which formats the data from the best quote and returns the report to the client.\n\n*Loan Broker Sequence Diagram*\n\nWe have only shown two of the five banks in the sequence diagram in the interest of keeping the picture manageable. Based on the [*Recipient List*](RecipientList.html) generated for a particular request, the loan broker could contact exactly one bank or all five banks to service the client request.\n\nThe diagram highlights the sequential processing of the quote requests to each bank. The sequential processing has some advantages because we can run the application in a single thread calling each bank in turn. The application does not need to spawn threads to request a quote from each bank and so we don’t have to worry about concurrency issues. However, the total time to get the response quote is high since the loan broker has to wait for a response from each bank before submitting a request to the next bank in the lenders list. The net result is the customer will have to wait a long time to get the result quote back after submitting the request.\n\n## Components of the Loan Broker Application\n\nWe will now start designing the functional aspects of the loan broker application. As stated earlier the Axis framework can support both the client and server application. This allows a remote client to access the published endpoint across the network. A server application may also need to act like a client and access some other Web service endpoint, regardless of whether that endpoint is on the same server or a remote server. We are going to demonstrate this by modeling the key components of our solution as Web services albeit running on the same instance of our server.\n\nThe loan broker solution has to implement the following functions. The following sections discuss the implementation of each function.\n\n- Accept Client Requests\n- Retrieve Credit Agency Data\n- Implement the Credit Agency Service\n- Obtain Quotes\n- Implement the Banking Operations\n\n**Accepting Client Requests**\n\nThe loan broker is implemented in a JWS file named LoanBrokerWS.jws. It exposes a single public method as a Web service: GetLoanQuote. The loan broker needs three pieces of data from the client to start processing a loan request: the social security number (SSN) that acts as the customer identification number, the amount of the loan and the duration of the loan in months:\n\n```\n public String getLoanQuote(int ssn, double loanamount, int loanduration) {\n\n String results = \"\";\n\n results = results + \"Client with ssn= \" + ssn + \" requests a loan of amount= \" + loanamount + \" for \" + loanduration + \" months\" + \"\\n\\n\";\n results = results + this.getLoanQuotesWithScores(ssn,loanamount,loanduration);\n\n return results;\n }\n```\n\nThe only step in this method is the call to the method getLoanQuotesWithScores. This method returns a string, which is sent back to the client along a response chain in the Axis framework. At the end of the chain, the transport listener that received the request will accept the response message from within the Axis framework and send it back to the client on the network.\n\nAs described earlier, since we use the Automatic Deployment of the JWS file for the loan broker component, Axis generates the WSDL file for the LoanBrokerWS service. The WSDL file for the LoanBrokerWS.jws file is shown below.\n\n```\n\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n```\n\nIn the interest of space we condensed the WSDL document to highlight the most significant elements. The tags define the service name (LoanBrokerWSService) and the endpoint location. The tags define the method (operation) name along with the parameters required for the client to access the LoanBrokerWS Web Service. The two messages defined in the tags define the request and the response messages for the getLoanQuote operation: getLoanQuoteRequest and getLoanQuoteResponse with the appropriate parameters they pass in to or receive from the Web Service. The element confirms that we are using the RPC binding style that we discussed at the beginning of this chapter while the reveals that we are using SOAP encoding (as opposed to doc/literal).\n\nIf you want to see the WSDL file from your server, you can type in the following URL in your browser window where hostname and portnumber are replaced with the appropriate values of your server installation,\n\n```\nhttp://hostname:portnumber/axis/LoanBrokerWS.jws?wsdl\n```\n\n**Retrieving Credit Agency Data**\n\nAnother requirement for the loan broker is to gather additional data on the customer to complete the loan request application. The next stage of the LoanBrokerWS, implements the [*Content Enricher*](DataEnricher.html) as shown below:\n\n```\n private String getLoanQuotesWithScores(int de_ssn, double de_loanamount, int de_duration) {\n String qws_results=\"Additional data for customer: credit score and length of credit history\\n\";\n int ssn = de_ssn;\n double loanamount = de_loanamount;\n int loanduration = de_duration;\n int credit_score = 0;\n int credit_history_length = 0;\n\n CreditProfile creditprofile = CreditAgencyGateway.getCustomerCreditProfile(ssn);\n\n credit_score = creditprofile.getCreditScore();\n credit_history_length = creditprofile.getCreditHistoryLength(); \n \n qws_results = qws_results + \"Credit Score= \" + credit_score + \" Credit History Length= \" + credit_history_length;\n qws_results = qws_results + \"\\n\\n\";\n qws_results = qws_results + \"The details of the best quote from all banks that responded are shown below: \\n\\n\";\n\n qws_results = qws_results + getResultsFromLoanClearingHouse(ssn,loanamount,loanduration,credit_history_length,credit_score);\n\n qws_results = qws_results + \"\\n\\n\";\n return qws_results;\n }\n```\n\nWe now design the credit agency operations, which is the next logical area of the loan broker application. In order to keep the SOAP code out of the loan broker application, and minimize the dependencies between the loan broker and the credit agency we will use the Gateway pattern. In Martin’s P of EAA book, using an example created by Mike Rettig, Martin highlighted two key advantages of using the Gateway pattern. First, it abstracts the technical details of the communication from the application. Second, if we choose to separate the gateway interface from the gateway implementation we can replace the actual external service with a Service Stub [EAA] for testing.\n\nOur CreditAgencyGateway abstracts the technical details of the communication between the CreditAgencyGateway and the credit agency Web Service (CreditAgencyWS). We could replace the Web service with a test stub if needed. The gateway takes in the customer identification number (ssn) and acquires additional data from the credit agency. The two pieces of data returned by the credit agency are the credit score and the length of credit history for the customer both of which are needed to complete the loan application. This gateway will contain all the client side code to access the CreditAgencyWS implemented in the CreditAgencyWS.jws file.\n\n```\n public static CreditProfile getCustomerCreditProfile(int ssn){\n\n int credit_score = 0;\n int credit_history_length = 0;\n\n CreditProfile creditprofile = null;\n\n try{\n CreditAgencyGateway.readProps();\n\n creditprofile = new CreditProfile();\n\n String creditagency_ep = \"http://\" + hostname + \":\" + portnum + \"/axis/CreditAgencyWS.jws\";\n\n Integer i1 = new Integer(ssn);\n\n Service service = new Service();\n Call call = (Call) service.createCall();\n call.setTargetEndpointAddress( new java.net.URL(creditagency_ep) );\n\n call.setOperationName(\"getCreditHistoryLength\");\n call.addParameter( \"op1\", XMLType.XSD_INT, ParameterMode.IN );\n call.setReturnType( XMLType.XSD_INT );\n\n Integer ret1 = (Integer) call.invoke( new Object [] {i1});\n credit_history_length = ret1.intValue();\n\n call.setOperationName(\"getCreditScore\");\n\n Integer ret2 = (Integer) call.invoke( new Object [] {i1});\n credit_score = ret2.intValue();\n\n creditprofile.setCreditScore(credit_score);\n creditprofile.setCreditHistoryLength(credit_history_length);\n\n\t Thread.sleep(credit_score);\n }catch(Exception ex){\n System.out.println(\"Error accessing the CreditAgency Webservice\");\n }\n\n return creditprofile;\n }\n}\n```\n\nThe purpose of using this Gateway is to show how a server application uses the Axis client framework to access a Web service, either on the same server or a remote server.\n\n**Implementing the Credit Agency Service**\n\nThe credit agency Web service is coded in CreditAgencyWS.jws and shown below. . The two significant pieces of data needed to complete the loan application are the customer credit score and the length of the customer’s credit history. The credit agency has this data for each customer with a credit history and can be accessed using the customer identification number.\n\n```\n public int getCreditScore(int de_ssn) throws Exception\n {\n int credit_score;\n\n credit_score = (int)(Math.random()*600+300);\n\n return credit_score;\n }\n\n public int getCreditHistoryLength(int de_ssn) throws Exception\n {\n int credit_history_length;\n\n credit_history_length = (int)(Math.random()*19+1);\n\n return credit_history_length;\n }\n```\n\nThe code below shows the WSDL file for the CreditAgencyWS.jws file. This file was automatically generated by the Axis server.\n\n```\n\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n ...\n \n \n \n \n \n \n\n```\n\nThe defines the CreditAgencyWSService and exposes the endpoint that will be accessed by the client in this case the loan broker. The defines the two public methods defined in the CreditAgencyWS.jws file, getCreditScore and getCreditHistoryLength. For each of these methods, there will be a request-response message pair defined as can be seen in the tags. These are listed here, getCreditScoreRequest, getCreditScoreResponse, getCreditHistoryLengthRequest, getCreditHistoryLengthResponse.\n\nOnce again, in the interest of space we have collapsed most of the elements of the WSDL file to fit the format of the section. If you are interested in seeing the entire file, it can be accessed on your server using the following URL where hostname and portnumber are the values for your server installation,\n\n```\nhttp://hostname:portnumber/axis/CreditAgencyWS.jws?wsdl\n```\n\nThe credit agency webservice in our example stubs out the implementation and returns dummy data that can be used by other parts of the application.\n\n**Obtaining Quotes**\n\nHaving enriched the customer data, the loan broker now calls the loan clearing house function, which is part of the loan broker itself. As seen in the call below, the loan-clearing house receives all the data for the loan application.\n\n```\ngetResultsFromLoanClearingHouse(ssn,loanamount,loanduration,credit_history_length,credit_score);\n```\n\nThe loan clearing house functions could be further demarcated into its own logical unit if the application gets more complex or the loan broker requirements change to use an external loan-clearing house. In our example the loan clearing house functionality can be broken down into three steps, namely:\n\n- Get a list of lenders who can service the customer loan\n- Get the best quote out of all quotes from each bank in the lender list\n- Format the data from the best quote and return it to the loan broker\n\nThe code shows these steps:\n\n```\nprivate String getResultsFromLoanClearingHouse(int ssn, double loanamount, int loanduration, int credit_history_length, int credit_score) {\n String lch_results=\"Results from Loan Clearing House \";\n \n ArrayList lenderlist = LenderGateway.getLenderList(loanamount, credit_history_length, credit_score);\n\n BankQuote bestquote = BankQuoteGateway.getBestQuote(lenderlist,ssn,loanamount,loanduration,credit_history_length,credit_score);\n\n lch_results = \"Out of a total of \" + lenderlist.size() + \" quote(s), the best quote is from\" + this.getLoanQuotesReport(bestquote);\n\n return lch_results; \n}\n```\n\nThe first requirement for the loan-clearing house is to get a list of suitable lenders that can service the customer loan application. In order to abstract the functions of the lender selection process from the loan broker we will create a LenderGateway class. We could make the solution more interesting by making this a Web Service. However, Web Services should be designed carefully and the parameters and return types should be taken into consideration since these have to be types that can be serialized to and from the network.\n\nFor this example, we could have chosen to return a collection of the service endpoint for the banks from a LenderGateway. The drawback of doing this is the identification of the bank webservice will have to be hard coded in the lender gateway. This becomes a maintenance nightmare in real life, especially since banks get bought, sold or merged more often than IT architects change jobs. We will discuss a robust solution for the bank and its webservice in the discussion of the BankQuoteGateway topic later in this section.\n\nThe method getLenderList shown below will return the set of lenders (i.e. banks) that can service the loan request.\n\n```\n public static ArrayList getLenderList(double loanamount, int credit_history_length, int credit_score){\n\n ArrayList lenders = new ArrayList();\n LenderGateway.readProps();\n\n if ((loanamount >= (double)75000) && (credit_score >= 600) && (credit_history_length >= 8))\n {\n lenders.add(new Bank1(hostname, portnum));\n lenders.add(new Bank2(hostname, portnum));\n }\n\n if (((loanamount >= (double)10000) && (loanamount <= (double)74999)) && (credit_score >= 400) && (credit_history_length >= 3))\n {\n lenders.add(new Bank3(hostname, portnum));\n lenders.add(new Bank4(hostname, portnum));\n }\n\n lenders.add(new Bank5(hostname, portnum));\n\n return lenders;\n }\n```\n\nThis method implements the RecipientList pattern. In our example the rule base consists of very simple if statements that choose a bank or banks based on a set of predefined conditions. We have also set a default selection for every customer request so that every customer request will have at least one quote.\n\nThe loan broker will now pass the list of lenders to the bank quote gateway to start gathering quotes and make a selection. Once again we create a class named BankQuoteGateway to abstract the internal functioning of the bank quote gateway. The loan broker will only need to request the best quote from the BankQuoteGateway as seen in the method call below:\n\n```\nBankQuote bestquote = BankQuoteGateway.getBestQuote(lenderlist,ssn,loanamount,loanduration,credit_history_length,credit_score);\n```\n\nThe BankQuoteGateway responds to the loan broker request by getting the quotes from all the banks and then selecting the best quote (i.e., the quote with the lowest rate). The getBestQuote method is shown below:\n\n```\n public static BankQuote getBestQuote(ArrayList lenders, int ssn, double loanamount, int loanduration, int credit_history_length, int credit_score){\n\n BankQuote lowestquote = null;\n BankQuote currentquote = null;\n\n ArrayList bankquotes = BankQuoteGateway.getBankQuotes(lenders,ssn,loanamount,loanduration,credit_history_length,credit_score);\n\n Iterator allquotes = bankquotes.iterator();\n\n while (allquotes.hasNext()){\n if (lowestquote == null){\n lowestquote = (BankQuote)allquotes.next();\n }\n else{\n currentquote = (BankQuote)allquotes.next();\n if (currentquote.getInterestRate() < lowestquote.getInterestRate()){\n lowestquote = currentquote;\n }\n }\n }\n\n return lowestquote;\n }\n```\n\nThe most significant line in the code above is the call to getBankQuotes. This method not only performs the controlled Auction but also implements the Aggregator pattern. The listing below shows the getBankQuotes method:\n\n```\n public static ArrayList getBankQuotes(ArrayList lenders, int ssn, double loanamount, int loanduration, int credit_history_length, int credit_score) {\n\n ArrayList bankquotes = new ArrayList();\n\n BankQuote bankquote = null;\n Bank bank = null;\n\n Iterator banklist = lenders.iterator();\n\n while (banklist.hasNext()){\n bank = (Bank)banklist.next();\n bankquote = bank.getBankQuote(ssn,loanamount,loanduration,credit_history_length,credit_score);\n bankquotes.add(bankquote);\n\n }\n\n return bankquotes;\n }\n```\n\nThe while loop performs the function of the controlled Auction. Each bank is extracted from the lender list and the method to generate a bank quote is invoked as highlighted below. Pay special attention to the order of the parameter list in the call to the method and we will explain the significance when we start designing the banks and the associated webservices.\n\n```\nbank.getBankQuote(ssn, loanamount,loanduration, credit_history_length, credit_score);\n```\n\nThe response is aggregated using the bankquotes ArrayList. The getBestQuote method iterates over this collection of bank quotes and selects the lowest quote, which is sent back to the loan broker.\n\nAs mentioned earlier, we will design the bank and bank webservice to emulate a real-world bank operation and keep the functions of the bank separate and not couple them tightly with the functions of the loan broker. This will let our bank classes have the advantages of using the Gateway pattern described earlier in the CreditAgencyGateway class.\n\nWe define an abstract Bank class as follows:\n\n```\npublic abstract class Bank{\n\n String bankname;\n String endpoint = \"\";\n double prime_rate;\n\n public Bank(String hostname, String portnum){\n this.bankname = \"\";\n this.prime_rate = 3.5;\n }\n\n public void setEndPoint(String endpt){this.endpoint = endpt;}\n\n public String getBankName(){return this.bankname;}\n public String getEndPoint(){return this.endpoint;}\n public double getPrimeRate(){return this.prime_rate;}\n public abstract BankQuote getBankQuote(int ssn, double loanamount, int loanduration, int credit_history_length, int credit_score);\n\n public void arbitraryWait(){\n try{\n Thread.sleep((int)(Math.random()*10)*100);\n\n }catch(java.lang.InterruptedException intex){\n intex.printStackTrace();\n }\n }\n}\n```\n\nIn our example, the process for getting a quote from a bank is modeled roughly along the same lines a real world bank operates. First there is a small amount of clerical work done followed by an access to the computerized rate quote system and then some additional amount of clerical work before the quote is returned to the BankQuoteGateway.\n\nThe Bank abstract class and the child bank classes (Bank1 to Bank5) model the operation of a regular bank. In our example, the bank receives the loan request and the clerical staff conducts the due diligence research while verifying that the customer information is accurate. We have chosen to model the clerical work as an arbitrary wait method implemented in the Bank abstract class as shown above and invoked in the getBankQuote method. To make things interesting, we will model the bank’s rate quote system for getting rate quotes, using webservices. For a given bank (Bankn) the rate quote system is modeled using a BanknWS and coded in a file named BanknWS.jws. There will be five bank classes (Bank1 to Bank5) and five rate quote systems (Bank1WS to Bank5WS). To make things even more interesting each of the rate quote systems will use a different format for the parameter list in the method call. This means the Bank class has to use a Translator to translate the format of the message before calling the webservice. We will show this after discussing the Bank classes.\n\nYou will note that the getBankQuote method in the abstract Bank class is an abstract method and has the parameters ordered in a particular format. We will now look at one of the bank implementations and for no particular reason choose Bank1. The class structure of all the banks will be identical and each will differ only in the values of its fields (the bank name and endpoint address) which are set when the bank object is constructed.\n\n```\npublic class Bank1 extends Bank {\n\n public Bank1(String hostname, String portnum){\n super(hostname,portnum);\n bankname = \"Exclusive Country Club Bankers\\n\";\n String ep1 = \"http://\" + hostname + \":\" + portnum + \"/axis/Bank1WS.jws\";\n this.setEndPoint(ep1);\n }\n\n public void setEndPoint(String endpt){this.endpoint = endpt;}\n\n public String getBankName(){return this.bankname;}\n public String getEndPoint(){return this.endpoint;}\n\n public BankQuote getBankQuote(int ssn, double loanamount, int loanduration, int credit_history_length, int credit_score) {\n\n BankQuote bankquote = new BankQuote();\n\n Integer i1 = new Integer(ssn);\n Double i2 = new Double(prime_rate);\n Double i3 = new Double(loanamount);\n Integer i4 = new Integer(loanduration);\n Integer i5 = new Integer(credit_history_length);\n Integer i6 = new Integer(credit_score);\n\n try{\n Service service = new Service();\n Call call = (Call) service.createCall();\n call.setTargetEndpointAddress( new java.net.URL(endpoint) );\n\n call.setOperationName(\"getQuote\");\n\n call.addParameter( \"op1\", XMLType.XSD_INT, ParameterMode.IN );\n call.addParameter( \"op2\", XMLType.XSD_DOUBLE, ParameterMode.IN );\n call.addParameter( \"op3\", XMLType.XSD_DOUBLE, ParameterMode.IN );\n call.addParameter( \"op4\", XMLType.XSD_INT, ParameterMode.IN );\n call.addParameter( \"op5\", XMLType.XSD_INT, ParameterMode.IN );\n call.addParameter( \"op6\", XMLType.XSD_INT, ParameterMode.IN );\n\n call.setReturnType( XMLType.XSD_DOUBLE);\n\n Double interestrate = (Double) call.invoke( new Object [] {i1,i2,i3,i4,i5,i6});\n\n bankquote.setBankName(bankname);\n bankquote.setInterestRate(interestrate.doubleValue());\n }catch(Exception ex){\n System.err.println(\"Error accessing the axis webservice from \" + bankname);\n\n BankQuote badbq = new BankQuote();\n badbq.setBankName(\"ERROR in WS\");\n return badbq;\n }\n\n arbitraryWait();\n\n return bankquote;\n }\n\n}\n```\n\nAs seen in the code above, the getBankQuote method is implemented and has the parameters in a particular order.\n\n```\npublic BankQuote getBankQuote(int ssn, double loanamount, int loanduration, int credit_history_length, int credit_score)\n```\n\n**Implementing the Banking Operations**\n\nAs described earlier, the format for the parameters of the rate quote system for each bank is different. This means the getBankQuote method of the Bank class implements the Translator pattern and has to translate the order of the parameters before calling the respective webservice. The details of the method signature for each bank webservice getQuote method is shown below:\n\nBank1WS:\n\n```\ngetQuote(int ssn, double prime_rate, double loanamount, int loanduration, int credit_history_length, int credit_score)\n```\n\nBank2WS:\n\n```\ngetQuote(double prime_rate, double loanamount, int loanduration, int credit_history_length, int credit_score, int ssn)\n```\n\nBank3WS:\n\n```\ngetQuote(double loanamount, int loanduration, int credit_history_length, int credit_score, int ssn, double prime_rate)\n```\n\nBank4WS:\n\n```\ngetQuote(int loanduration, int credit_history_length, int credit_score, int ssn, double prime_rate, double loanamount)\n```\n\nBank5WS:\n\n```\ngetQuote(int credit_history_length, int credit_score, int ssn, double prime_rate, double loanamount, int loanduration)\n```\n\nThe actual implementation of the getQuote method is a placeholder and returns a rate quote using a simple algorithm as shown below for Bank1WS.jws.\n\n```\npublic class Bank1WS {\n\n public double getQuote(int ssn, double prime_rate, double loanamount, int loanduration, int credit_history_length, int credit_score)\n {\n double ratepremium = 1.5;\n\n double int_rate = prime_rate + ratepremium + (double)(loanduration/12)/10 + (double)(Math.random()*10)/10;\n\n return int_rate;\n }\n \n}\n```\n\nIn a real world application, the formula is a lot more detailed and complicated. The return type of the getQuote method is a double precision number representing the rate the bank offers the customer given the parameters in the loan application.\n\nOnce again the Axis server automatically generates a WSDL file for each Bank JWS file (exposed at http://hostname:portnum/axis/Bank1WS.jws?wsdl) . The WSDL files for the other Banks will have a similar format but will differ in the definition of the parameters. The WSDL file for the Bank1WS.jws Web Service is shown below.\n\n```\n\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n ...\n \n \n \n \n \n \n\n```\n\nAs we can see, the WSDL contains one operation getQuote defined in the tag, which Axis maps to the getQuote method in the Bank1WS.jws class. The tag defines the Web Service Bank1WS Web Service. There is a request-response message pair, each defined in a tag and they are getQuoteRequest and getQuoteResponse.\n\nThis rate quote is set in a bank quote bean, which is added to the collection sent back to the BankQuoteGateway. The bean does not require any formatting and essentially the beans returned by all the banks look the same. This eliminates the need for a Normalizer to convert the reply messages to a common format.\n\nThe BankQuoteGateway selects the lowest quote from the collection of bank quotes it gets back and sends one bank quote bean back to the loan broker. The loan broker will access the data in the bean and format a report to send back to the client application. The method that formats the report is shown below:\n\n```\nprivate static String getLoanQuotesReport(BankQuote bestquote){\n String bankname = bestquote.getBankName();\n double bestrate = ((double)((long)(bestquote.getInterestRate()*1000))/(double)1000);\n\n String results = \"\\nBank Name: \" + bankname + \"Interest Rate: \" + bestrate;\n\n return results;\n}\n```\n\n## Client Application\n\nThe client application is the customer's interface to the loan broker application. The main requirement of the client is to gather information from the customer in a functional graphical user interface environment with adequate error checking. Beneath the covers and far away from the eyes of the customer, the client application will prepare the three pieces of data for delivery to the endpoint of the server application. For simplicity we designed the client application to be a java class with a main method that takes in the client information as command line arguments. In reality the user interface could be implemented as a windows based fat client or a browser based thin client. The client could also be part of another business system that has the client-programming model deployed. The most significant part of the client application with respect to invoking the webservice is shown below:\n\n```\n Service service = new Service();\n Call call = (Call) service.createCall();\n\n call.setTargetEndpointAddress( new java.net.URL(endpoint) );\n call.setOperationName( \"getLoanQuote\" );\n call.addParameter( \"op1\", XMLType.XSD_INT, ParameterMode.IN );\n call.addParameter( \"op2\", XMLType.XSD_DOUBLE, ParameterMode.IN );\n call.addParameter( \"op3\", XMLType.XSD_INT, ParameterMode.IN );\n\n call.setReturnType( XMLType.XSD_STRING );\n\n String ret = (String) call.invoke( new Object [] {ssn, loanamount, loanduration});\n```\n\nThe salient points in the code, are the lines, which define the method name (getLoanQuotes) and those that set the parameters and return types. The method getLoanQuotes takes in a customer id, loan amount and loan duration. The return value will be a string.\n\nSince we are not using UDDI, the webservices lookup service, we hard code the endpoint URL for our webservice. Since we chose to deploy the loan broker application as a JWS file, the endpoint will have the standard format as defined by the Axis API for java web services (JWS). The end point for our deployment is shown below, where hostname and portnumber are the values of your server installation,\n\n```\nhttp://hostname:portnumber/axis/LoanBroker.jws\n```\n\nThe client application which was blocked all along waiting for the response will accept the formatted report and display it in the GUI area setup for it. Alternatively it can be saved or sent to a printer.\n\n## Running the Solution\n\nPlease refer to the sections on installation of Axis and the loan broker application which appears towards the end of the chapter. The server now needs to be restarted or started if it were not running. Follow the documentation in the Tomcat help files for the proper steps to start or restart the server. You can then verify that Tomcat and Apache Axis are up and running by following the steps that were described in the section Installing XML-Axis at the beginning of this chapter.\n\nOpen a shell or command window on the client machine and run the application as shown for either Unix/Linux or Microsoft Windows:\n\n```\njava -classpath %CLASSPATH% LoanQueryClient [customerid[ [loanamount] [loanduration in months]\n```\n\nor\n\n```\njava -classpath $CLASSPATH LoanQueryClient [customerid] [loanamount] [loanduration in months]\n```\n\nfor e.g.:\n\n```\njava -classpath %CLASSPATH% LoanQueryClient 199 100000.00 29\n```\n\nThis invokes the webservice and returns the following results:\n\n```\nCalling the LoanBroker webservice at 1053292919270 ticks\nLoanBroker service replied at 1053292925860 ticks\n\nTotal time to run the query = 6590 milliseconds\n\nThe following reply was received from the Loan Clearing House\n\nClient with ssn= 199 requests a loan of amount= 100000.0 for 29 months\n\nAdditional data for customer: credit score and length of credit history\nCredit Score= 756 Credit History Length= 12\n\nThe details of the best quote from all banks that responded are shown below:\n\nOut of a total of 3 quote(s), the best quote is from\nBank Name: Exclusive Country Club Bankers\nInterest Rate: 6.197\n```\n\nYou can test out the loan broker by entering different loan amounts when running the client. We will now analyze the output results with a single client running. Later on we will launch multiple clients and study the output.\n\n**Analyzing the Output**\n\nThe client application keeps track of the time when it invokes the webservice endpoint on the server. The client also notes the time when the server responds with the result. Both start and end times of the call to the webservice are reported in the client application together with the difference between the two.\n\n```\nCalling the LoanBroker webservice at 1053292919270 ticks\nLoanBroker service replied at 1053292925860 ticks\n\nTotal time to run the query = 6590 milliseconds\n```\n\nThe Loan Clearing House webservice, reports all relevant details of the customer request sent across the network by the client application.\n\n```\nClient with ssn= 199 requests a loan of amount= 100000.0 for 29 months\n```\n\nThe Loan Clearing House also reports additional credit data that was gathered to support the customer request.\n\n```\nAdditional data for customer: credit score and length of credit history\nCredit Score= 756 Credit History Length= 12\n```\n\nThe LoanBroker analyzes the data and selects a set of banks that fit the customer loan request criteria. The LoanBroker submits the customer data in the format required for individual banks and waits for each bank to respond. Since this is a synchronous application, this request is a blocking wait until a bank responds or the request times out or fails.\n\nThe LoanBroker collects all the responses, analyzes the return quotes and chooses the best quote. This quote is formatted and sent bank to the customer along with any relevant data.\n\nThe details of the best quote from all banks that responded are shown below:\n\n```\nOut of a total of 3 quote(s), the best quote is from\nBank Name: Exclusive Country Club Bankers\nInterest Rate: 6.197\n```\n\nFrom the above code segment we see that the LoanBroker reports that three banks responded and it had select the best quote and presented that to the user.\n\n## Performance Limitations\n\nAs we discussed in the topic on the sequence diagram earlier on, the total time to get the response quote is significantly high since the loan broker has to wait for a response from each bank before submitting to the next bank in the lenders list. The net result is the customer will have to wait a long time to get the result quote back after submitting the request. We ran several baseline tests with a single client against the server and obtained an average of the total time to run the query (8070 milliseconds). We then launched four instances of the client in separate windows on the same client machine and obtained the following average times:\n\n```\nClient 1: 12520 milliseconds\nClient 2: 12580 milliseconds\nClient 3: 15710 milliseconds\nClient 4: 13760 milliseconds\n```\n\nWhile these tests could not be consider scientific by any stretch of imagination, the empirical evidence points to the fact that performance suffers tremendously when multiple clients try to simultaneously access our loan broker system.\n\n## Limitations of This Example\n\nTo make the discussion of the design of the loan broker example easier, we chose to implement all the webservices as JWS files. This gave us the advantage of deploying the service by simply copying it over to the server. The disadvantage, however, is that the webservice class gets instantiated when it is invoked and dies as soon as the service is complete. This means that some amount of the time lag we noticed is a result of the server creating instances of the class before invoking the service.\n\nWe could have chosen the more complicated route and designed a java class file that would get deployed using a WSDD file. This would give us the flexibility of defining how long the instantiated class would persist, i.e. for the entire client session or the duration of the application. The issue of how the webservice will be deployed is very significant when designing a real world application. If we had chosen to include the deployment issue, the description of the example would have become very lengthy and the design details would have become unnecessarily complicated for the purposes of this chapter.\n\n## Summary\n\nIn this section we stepped through the implementation of the loan broker application using synchronous access to SOAP/HTTP web services. We used predictive routing to submit our loan request to a set of banks. We highlighted the strengths and drawbacks of using this approach. We made some design tradeoffs to manage the discussion and avoid getting bogged down in describing deployment details. The overall intention was to provide a discussion on the merits and demerits of this approach. We also got to see many of the patterns described in this book used which will help in adapting the synchronous predictive approach to other business domains.\n\n## Integration Pattern Language\n\n[Message Construct.](MessageConstructionIntro.html)\n\n[Message](Message.html)\n\n[Command Message](CommandMessage.html)\n\n[Document Message](DocumentMessage.html)\n\n[Event Message](EventMessage.html)\n\n[Request-Reply](RequestReply.html)\n\n[Return Address](ReturnAddress.html)\n\n[Correlation Identifier](CorrelationIdentifier.html)\n\n[Message Sequence](MessageSequence.html)\n\n[Message Expiration](MessageExpiration.html)\n\n[Format Indicator](FormatIndicator.html)\n\n[Message Routing](MessageRoutingIntro.html)\n\n[Pipes-and-Filters](PipesAndFilters.html)\n\n[Message Router](MessageRouter.html)\n\n[Content-based Router](ContentBasedRouter.html)\n\n[Message Filter](Filter.html)\n\n[Dynamic Router](DynamicRouter.html)\n\n[Recipient List](RecipientList.html)\n\n[Splitter](Sequencer.html)\n\n[Aggregator](Aggregator.html)\n\n[Resequencer](Resequencer.html)\n\n[Composed Msg. Processor](DistributionAggregate.html)\n\n[Scatter-Gather](BroadcastAggregate.html)\n\n[Routing Slip](RoutingTable.html)\n\n[Process Manager](ProcessManager.html)\n\n[Message Broker](MessageBroker.html)\n\n[Message\nTransformation](MessageTransformationIntro.html)\n\n[Message Translator](MessageTranslator.html)\n\n[Envelope Wrapper](EnvelopeWrapper.html)\n\n[Content Enricher](DataEnricher.html)\n\n[Content Filter](ContentFilter.html)\n\n[Claim Check](StoreInLibrary.html)\n\n[Normalizer](Normalizer.html)\n\n[Canonical Data Model](CanonicalDataModel.html)\n\n[Messaging Endpoints](MessagingEndpointsIntro.html)\n\n[Message Endpoint](MessageEndpoint.html)\n\n[Messaging Gateway](MessagingGateway.html)\n\n[Messaging Mapper](MessagingMapper.html)\n\n[Transactional Client](TransactionalClient.html)\n\n[Polling Consumer](PollingConsumer.html)\n\n[Event-driven Consumer](EventDrivenConsumer.html)\n\n[Competing Consumers](CompetingConsumers.html)\n\n[Message Dispatcher](MessageDispatcher.html)\n\n[Selective Consumer](MessageSelector.html)\n\n[Durable Subscriber](DurableSubscription.html)\n\n[Idempotent Receiver](IdempotentReceiver.html)\n\n[Service Activator](MessagingAdapter.html)\n\n[Messaging Channels](MessagingChannelsIntro.html)\n\n[Message Channel](MessageChannel.html)\n\n[Point-to-Point Channel](PointToPointChannel.html)\n\n[Publish-Subscr. Channel](PublishSubscribeChannel.html)\n\n[Datatype Channel](DatatypeChannel.html)\n\n[Invalid Message Channel](InvalidMessageChannel.html)\n\n[Dead Letter Channel](DeadLetterChannel.html)\n\n[Guaranteed Delivery](GuaranteedMessaging.html)\n\n[Channel Adapter](ChannelAdapter.html)\n\n[Messaging Bridge](MessagingBridge.html)\n\n[Message Bus](MessageBus.html)\n\n[Systems Mgmt.](SystemManagementIntro.html)\n\n[Control Bus](ControlBus.html)\n\n[Detour](Detour.html)\n\n[Wire Tap](WireTap.html)\n\n[Message History](MessageHistory.html)\n\n[Message Store](MessageStore.html)\n\n[Smart Proxy](SmartProxy.html)\n\n[Test Message](TestMessage.html)\n\n[Channel Purger](ChannelPurger.html)", "znaku_textu": 64625, "slov": 8909, "odkazu": 95, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 14:55:52", "sha256": "7fae1dd4d1a6743fd6aa8e37d09960393881f1ea6a1e9d5be27cf09d43779e6b", "hloubka": 3, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://www.w3.org/TR/SOAP", "http://www.w3.org/", "http://www.w3.org/TR/xmlschema-0/", "http://xml.apache.org/axis", "http://www.w3.org/TR/wsdl", "http://www.uddi.org/", "https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "https://www.architectelevator.com/book", "https://www.cloudstrategybook.com/", "https://www.platformstrategybook.info/"]} {"url": "http://www.enterpriseintegrationpatterns.com/patterns/messaging/ContentBasedRouter.html", "titulek": "Content-Based Router - Enterprise Integration Patterns", "h1": "", "popis": "How do we handle a situation where the implementation of a single logical function (e.g., inventory check) is spread across multiple physical systems?", "klicova_slova": "Content-Based Router,integration, messaging, events, patterns, event-driven, coupling, eai, middleware, application integration, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns", "og:title": "Content-Based Router - Enterprise Integration Patterns", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/ContentBasedRouter.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/ContentBasedRouter.gif"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Example: Apache CamelNEW"}, {"uroven": 2, "text": "Integration Pattern Language"}], "markdown": "| | Content-Based Router[Messaging Patterns](index.html) » [Message Routing](MessageRoutingIntro.html) | [Contents](toc.html)[⇐ Prev](MessageRoutingIntro.html)[Next ⇒](Filter.html) |\n| --- | --- | --- |\n\nAssume that we are building an order processing system. When an incoming order is received, we first validate the order and then verify that the ordered item is available in the warehouse. This function is performed by the inventory system. This sequence of processing steps is a perfect candidate for the [*Pipes and Filters*](PipesAndFilters.html) style. We create two filters, one for the validation step and one for the inventory system, and route the incoming messages through both filters. However, in many enterprise integration scenarios more than one inventory system exists with each system being able to handle only specific items.\n\nHow do we handle a situation where the implementation of a single logical function (e.g., inventory check) is spread across multiple physical systems?\n\nUse a *Content-Based Router* to route each message to the correct recipient based on message content.\n\nThe *Content-Based Router* examines the message content and routes the message onto a different channel based on data contained in the message. The routing can be based on a number of criteria such as existence of fields, specific field values etc. When implementing a *Content-Based Router*, special caution should be taken to make the routing function easy to maintain as the router can become a point of frequent maintenance. In more sophisticated integration scenarios, the *Content-Based Router* can take on the form of a configurable rules engine that computes the destination channel based on a set of configurable rules.\n\n...\nRead the entire pattern in the book [Enterprise Integration Patterns](/books1.html)\n\n## Example: Apache Camel[NEW](/ramblings/eip1_examples_updated.html)\n\nMany open source ESBs like [Apache Camel](http://camel.apache.org/) have direct support for many Enterprise Integration Patterns, wither in a Java-based DSL or as configuration. For example, setting up a *Content-Based Router* in Camel is quite easy and idiomatic by using a RouteBuilder:\n\n```\nRouteBuilder builder = new RouteBuilder() {\n public void configure() {\n errorHandler(deadLetterChannel(\"mock:error\"));\n\n from(\"direct:in\")\n .choice()\n .when(header(\"type\").isEqualTo(\"widget\"))\n .to(\"direct:widget\")\n .when(header(\"type\").isEqualTo(\"gadget\"))\n .to(\"direct:gadget\")\n .otherwise()\n .to(\"direct:other\");\n }\n};\n```\n\n**Related patterns:**\n\n[*Dynamic Router*](DynamicRouter.html), [*Message Filter*](Filter.html), [*Invalid Message Channel*](InvalidMessageChannel.html), [*Message Router*](MessageRouter.html), [*Pipes and Filters*](PipesAndFilters.html), [*Publish-Subscribe Channel*](PublishSubscribeChannel.html), [*Routing Slip*](RoutingTable.html), [*Transactional Client*](TransactionalClient.html)\n\n---\n\n## Integration Pattern Language\n\n[Message Construct.](MessageConstructionIntro.html)\n\n[Message](Message.html)\n\n[Command Message](CommandMessage.html)\n\n[Document Message](DocumentMessage.html)\n\n[Event Message](EventMessage.html)\n\n[Request-Reply](RequestReply.html)\n\n[Return Address](ReturnAddress.html)\n\n[Correlation Identifier](CorrelationIdentifier.html)\n\n[Message Sequence](MessageSequence.html)\n\n[Message Expiration](MessageExpiration.html)\n\n[Format Indicator](FormatIndicator.html)\n\n[Message Routing](MessageRoutingIntro.html)\n\n[Pipes-and-Filters](PipesAndFilters.html)\n\n[Message Router](MessageRouter.html)\n\n[Content-based Router](ContentBasedRouter.html)\n\n[Message Filter](Filter.html)\n\n[Dynamic Router](DynamicRouter.html)\n\n[Recipient List](RecipientList.html)\n\n[Splitter](Sequencer.html)\n\n[Aggregator](Aggregator.html)\n\n[Resequencer](Resequencer.html)\n\n[Composed Msg. Processor](DistributionAggregate.html)\n\n[Scatter-Gather](BroadcastAggregate.html)\n\n[Routing Slip](RoutingTable.html)\n\n[Process Manager](ProcessManager.html)\n\n[Message Broker](MessageBroker.html)\n\n[Message\nTransformation](MessageTransformationIntro.html)\n\n[Message Translator](MessageTranslator.html)\n\n[Envelope Wrapper](EnvelopeWrapper.html)\n\n[Content Enricher](DataEnricher.html)\n\n[Content Filter](ContentFilter.html)\n\n[Claim Check](StoreInLibrary.html)\n\n[Normalizer](Normalizer.html)\n\n[Canonical Data Model](CanonicalDataModel.html)\n\n[Messaging Endpoints](MessagingEndpointsIntro.html)\n\n[Message Endpoint](MessageEndpoint.html)\n\n[Messaging Gateway](MessagingGateway.html)\n\n[Messaging Mapper](MessagingMapper.html)\n\n[Transactional Client](TransactionalClient.html)\n\n[Polling Consumer](PollingConsumer.html)\n\n[Event-driven Consumer](EventDrivenConsumer.html)\n\n[Competing Consumers](CompetingConsumers.html)\n\n[Message Dispatcher](MessageDispatcher.html)\n\n[Selective Consumer](MessageSelector.html)\n\n[Durable Subscriber](DurableSubscription.html)\n\n[Idempotent Receiver](IdempotentReceiver.html)\n\n[Service Activator](MessagingAdapter.html)\n\n[Messaging Channels](MessagingChannelsIntro.html)\n\n[Message Channel](MessageChannel.html)\n\n[Point-to-Point Channel](PointToPointChannel.html)\n\n[Publish-Subscr. Channel](PublishSubscribeChannel.html)\n\n[Datatype Channel](DatatypeChannel.html)\n\n[Invalid Message Channel](InvalidMessageChannel.html)\n\n[Dead Letter Channel](DeadLetterChannel.html)\n\n[Guaranteed Delivery](GuaranteedMessaging.html)\n\n[Channel Adapter](ChannelAdapter.html)\n\n[Messaging Bridge](MessagingBridge.html)\n\n[Message Bus](MessageBus.html)\n\n[Systems Mgmt.](SystemManagementIntro.html)\n\n[Control Bus](ControlBus.html)\n\n[Detour](Detour.html)\n\n[Wire Tap](WireTap.html)\n\n[Message History](MessageHistory.html)\n\n[Message Store](MessageStore.html)\n\n[Smart Proxy](SmartProxy.html)\n\n[Test Message](TestMessage.html)\n\n[Channel Purger](ChannelPurger.html)", "znaku_textu": 5605, "slov": 511, "odkazu": 110, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/ContentBasedRouter.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 14:55:32", "sha256": "2e1bcb059062a373d4a86319925c989b73ec891cebffe089608b4e48bc69256c", "hloubka": 3, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://camel.apache.org/", "http://creativecommons.org/licenses/by/4.0/", "https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "https://www.architectelevator.com/book", "https://www.cloudstrategybook.com/", "https://www.platformstrategybook.info/"]} {"url": "http://www.enterpriseintegrationpatterns.com/patterns/messaging/ContentFilter.html", "titulek": "Content Filter - Enterprise Integration Patterns", "h1": "", "popis": "How do you simplify dealing with a large message, when you are interested only in a few data items?", "klicova_slova": "Content Filter,integration, messaging, events, patterns, event-driven, coupling, eai, middleware, application integration, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns", "og:title": "Content Filter - Enterprise Integration Patterns", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/ContentFilter.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/ContentFilter.gif"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Integration Pattern Language"}], "markdown": "Messaging Patterns\n\n[Messaging Patterns](index.html)\n\n- [Integration Styles](IntegrationStylesIntro.html)\n- [Messaging Systems](MessagingComponentsIntro.html)\n- [Messaging Channels](MessagingChannelsIntro.html)\n- [Message Construction](MessageConstructionIntro.html)\n- [Interlude: Simple Messaging](SimpleMessagingIntro.html)\n- [Message Routing](MessageRoutingIntro.html)\n- [Message Transformation](MessageTransformationIntro.html)\n- [Interlude: Composed Messaging](ComposedMessagingExample.html)\n- [Messaging Endpoints](MessagingEndpointsIntro.html)\n- [System Management](SystemManagementIntro.html)\n- Interlude: Systems Management Example\n- Integration Patterns in Practice\n- Concluding Remarks\n- Appendices\n\n| | Content Filter[Messaging Patterns](index.html) » [Message Transformation](MessageTransformationIntro.html) | [Contents](toc.html)[⇐ Prev](DataEnricher.html)[Next ⇒](StoreInLibrary.html) |\n| --- | --- | --- |\n\nThe [*Content Enricher*](DataEnricher.html) helps us in situations where a message receiver requires more - or different - data elements than the message creator provides. There are surprisingly many situations where the opposite effect is desired: removing data elements from a message.\n\nHow do you simplify dealing with a large message, when you are interested only in a few data items?\n\nUse a *Content Filter* to remove unimportant data items from a message leaving only important items.\n\nThe *Content Filter* does not necessarily just remove data elements. A *Content Filter* is also useful to simplify the structure of the message. Often times, messages are represented as tree structures. Many messages originating from external systems or packaged applications contain many levels of nested, repeating groups because they are modeled after generic, normalized database structures. Frequently, known constraints and assumptions make this level of nesting superfluous and a *Content Filter* can be used to 'flatten' the hierarchy into a simple list of elements than can be more easily understood and processed by other systems.\n\n...\nRead the entire pattern in the book [Enterprise Integration Patterns](/books1.html)\n\n**Related patterns:**\n\n[*Channel Adapter*](ChannelAdapter.html), [*Content Enricher*](DataEnricher.html), [*Splitter*](Sequencer.html)\n\n---\n\n## Integration Pattern Language\n\n[Message Construct.](MessageConstructionIntro.html)\n\n[Message](Message.html)\n\n[Command Message](CommandMessage.html)\n\n[Document Message](DocumentMessage.html)\n\n[Event Message](EventMessage.html)\n\n[Request-Reply](RequestReply.html)\n\n[Return Address](ReturnAddress.html)\n\n[Correlation Identifier](CorrelationIdentifier.html)\n\n[Message Sequence](MessageSequence.html)\n\n[Message Expiration](MessageExpiration.html)\n\n[Format Indicator](FormatIndicator.html)\n\n[Message Routing](MessageRoutingIntro.html)\n\n[Pipes-and-Filters](PipesAndFilters.html)\n\n[Message Router](MessageRouter.html)\n\n[Content-based Router](ContentBasedRouter.html)\n\n[Message Filter](Filter.html)\n\n[Dynamic Router](DynamicRouter.html)\n\n[Recipient List](RecipientList.html)\n\n[Splitter](Sequencer.html)\n\n[Aggregator](Aggregator.html)\n\n[Resequencer](Resequencer.html)\n\n[Composed Msg. Processor](DistributionAggregate.html)\n\n[Scatter-Gather](BroadcastAggregate.html)\n\n[Routing Slip](RoutingTable.html)\n\n[Process Manager](ProcessManager.html)\n\n[Message Broker](MessageBroker.html)\n\n[Message\nTransformation](MessageTransformationIntro.html)\n\n[Message Translator](MessageTranslator.html)\n\n[Envelope Wrapper](EnvelopeWrapper.html)\n\n[Content Enricher](DataEnricher.html)\n\n[Content Filter](ContentFilter.html)\n\n[Claim Check](StoreInLibrary.html)\n\n[Normalizer](Normalizer.html)\n\n[Canonical Data Model](CanonicalDataModel.html)\n\n[Messaging Endpoints](MessagingEndpointsIntro.html)\n\n[Message Endpoint](MessageEndpoint.html)\n\n[Messaging Gateway](MessagingGateway.html)\n\n[Messaging Mapper](MessagingMapper.html)\n\n[Transactional Client](TransactionalClient.html)\n\n[Polling Consumer](PollingConsumer.html)\n\n[Event-driven Consumer](EventDrivenConsumer.html)\n\n[Competing Consumers](CompetingConsumers.html)\n\n[Message Dispatcher](MessageDispatcher.html)\n\n[Selective Consumer](MessageSelector.html)\n\n[Durable Subscriber](DurableSubscription.html)\n\n[Idempotent Receiver](IdempotentReceiver.html)\n\n[Service Activator](MessagingAdapter.html)\n\n[Messaging Channels](MessagingChannelsIntro.html)\n\n[Message Channel](MessageChannel.html)\n\n[Point-to-Point Channel](PointToPointChannel.html)\n\n[Publish-Subscr. Channel](PublishSubscribeChannel.html)\n\n[Datatype Channel](DatatypeChannel.html)\n\n[Invalid Message Channel](InvalidMessageChannel.html)\n\n[Dead Letter Channel](DeadLetterChannel.html)\n\n[Guaranteed Delivery](GuaranteedMessaging.html)\n\n[Channel Adapter](ChannelAdapter.html)\n\n[Messaging Bridge](MessagingBridge.html)\n\n[Message Bus](MessageBus.html)\n\n[Systems Mgmt.](SystemManagementIntro.html)\n\n[Control Bus](ControlBus.html)\n\n[Detour](Detour.html)\n\n[Wire Tap](WireTap.html)\n\n[Message History](MessageHistory.html)\n\n[Message Store](MessageStore.html)\n\n[Smart Proxy](SmartProxy.html)\n\n[Test Message](TestMessage.html)\n\n[Channel Purger](ChannelPurger.html)\n\n- » [Read the latest in My Blog](/ramblings)\n- » [Get more insights from My Articles](/articles.html)\n- » [See me live in my Upcoming Talks](/talks)\n\nYou can reuse the following elements under the [Creative Commons Attribution](http://creativecommons.org/licenses/by/4.0/) license: pattern icon, pattern name, problem and solution statements (in bold), and the sketch. Other portions are protected by copyright.\n\n[Enterprise Integration Patterns](https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20)\nThe de-facto language for designing asynchronous, distributed systems. Over 100,000 copies sold.\n\n[The Software Architect Elevator](https://www.architectelevator.com/book)\n\n Rethink the role of architects as a connecting element across organizational layers. Acquire the technical, communication, and organizational skills to succeed in this new role.\n\n[Cloud Strategy](https://www.cloudstrategybook.com)\n\n Make your cloud migration a success by translating high-level goals into conscious decisions with well-understood trade-offs.\n\n[Platform Strategy](https://www.platformstrategybook.info)\n\n Platforms can boost innovation through harmonization, but they aren't easy to build. Learn from over a decade of designing and rolling out IT platforms.", "znaku_textu": 6227, "slov": 528, "odkazu": 108, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/ContentFilter.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 14:55:47", "sha256": "f69bfd2a462917b1a97497a9362c30a30d9744d85cd8258b01fa9ee0a9118afb", "hloubka": 3, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://creativecommons.org/licenses/by/4.0/", "https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "https://www.architectelevator.com/book", "https://www.cloudstrategybook.com/", "https://www.platformstrategybook.info/"]} {"url": "http://www.enterpriseintegrationpatterns.com/patterns/messaging/ControlBus.html", "titulek": "Control Bus - Enterprise Integration Patterns", "h1": "", "popis": "How can we effectively administer a messaging system that is distributed across multiple platforms and a wide geographic area?", "klicova_slova": "Control Bus,integration, messaging, events, patterns, event-driven, coupling, eai, middleware, application integration, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns", "og:title": "Control Bus - Enterprise Integration Patterns", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/ControlBus.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/ControlBus.gif"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Integration Pattern Language"}], "markdown": "Messaging Patterns\n\n[Messaging Patterns](index.html)\n\n- [Integration Styles](IntegrationStylesIntro.html)\n- [Messaging Systems](MessagingComponentsIntro.html)\n- [Messaging Channels](MessagingChannelsIntro.html)\n- [Message Construction](MessageConstructionIntro.html)\n- [Interlude: Simple Messaging](SimpleMessagingIntro.html)\n- [Message Routing](MessageRoutingIntro.html)\n- [Message Transformation](MessageTransformationIntro.html)\n- [Interlude: Composed Messaging](ComposedMessagingExample.html)\n- [Messaging Endpoints](MessagingEndpointsIntro.html)\n- [System Management](SystemManagementIntro.html)\n- Interlude: Systems Management Example\n- Integration Patterns in Practice\n- Concluding Remarks\n- Appendices\n\n| | Control Bus[Messaging Patterns](index.html) » [System Management](SystemManagementIntro.html) | [Contents](toc.html)[⇐ Prev](SystemManagementIntro.html)[Next ⇒](Detour.html) |\n| --- | --- | --- |\n\nNaturally, enterprise integration systems are distributed. In fact, one of the defining qualities of an enterprise messaging system is to enable communication between disparate systems. Messaging systems allow information to be routed and transformed so that data can be exchanged between these systems. In most cases, these applications are spread across multiple networks, buildings, cities or continents.\n\nHow can we effectively administer a messaging system that is distributed across multiple platforms and a wide geographic area?\n\nUse a *Control Bus* to manage an enterprise integration system. The *Control Bus* uses the same messaging mechanism used by the application data, but uses separate channels to transmit data that is relevant to the management of components involved in the message flow.\n\nEach component in the system is now connected to two messaging subsystems:\n\n- The Application Message Flow\n- The *Control Bus*\n\n...\nRead the entire pattern in the book [Enterprise Integration Patterns](/books1.html)\n\n**Related patterns:**\n\n[*Asynchronous Implementation with MSMQ*](ComposedMessagingMSMQ.html), [*Content-Based Router*](ContentBasedRouter.html), [*Loan Broker System Management*](SystemManagementExample.html), [*Test Message*](TestMessage.html)\n\n---\n\n## Integration Pattern Language\n\n[Message Construct.](MessageConstructionIntro.html)\n\n[Message](Message.html)\n\n[Command Message](CommandMessage.html)\n\n[Document Message](DocumentMessage.html)\n\n[Event Message](EventMessage.html)\n\n[Request-Reply](RequestReply.html)\n\n[Return Address](ReturnAddress.html)\n\n[Correlation Identifier](CorrelationIdentifier.html)\n\n[Message Sequence](MessageSequence.html)\n\n[Message Expiration](MessageExpiration.html)\n\n[Format Indicator](FormatIndicator.html)\n\n[Message Routing](MessageRoutingIntro.html)\n\n[Pipes-and-Filters](PipesAndFilters.html)\n\n[Message Router](MessageRouter.html)\n\n[Content-based Router](ContentBasedRouter.html)\n\n[Message Filter](Filter.html)\n\n[Dynamic Router](DynamicRouter.html)\n\n[Recipient List](RecipientList.html)\n\n[Splitter](Sequencer.html)\n\n[Aggregator](Aggregator.html)\n\n[Resequencer](Resequencer.html)\n\n[Composed Msg. Processor](DistributionAggregate.html)\n\n[Scatter-Gather](BroadcastAggregate.html)\n\n[Routing Slip](RoutingTable.html)\n\n[Process Manager](ProcessManager.html)\n\n[Message Broker](MessageBroker.html)\n\n[Message\nTransformation](MessageTransformationIntro.html)\n\n[Message Translator](MessageTranslator.html)\n\n[Envelope Wrapper](EnvelopeWrapper.html)\n\n[Content Enricher](DataEnricher.html)\n\n[Content Filter](ContentFilter.html)\n\n[Claim Check](StoreInLibrary.html)\n\n[Normalizer](Normalizer.html)\n\n[Canonical Data Model](CanonicalDataModel.html)\n\n[Messaging Endpoints](MessagingEndpointsIntro.html)\n\n[Message Endpoint](MessageEndpoint.html)\n\n[Messaging Gateway](MessagingGateway.html)\n\n[Messaging Mapper](MessagingMapper.html)\n\n[Transactional Client](TransactionalClient.html)\n\n[Polling Consumer](PollingConsumer.html)\n\n[Event-driven Consumer](EventDrivenConsumer.html)\n\n[Competing Consumers](CompetingConsumers.html)\n\n[Message Dispatcher](MessageDispatcher.html)\n\n[Selective Consumer](MessageSelector.html)\n\n[Durable Subscriber](DurableSubscription.html)\n\n[Idempotent Receiver](IdempotentReceiver.html)\n\n[Service Activator](MessagingAdapter.html)\n\n[Messaging Channels](MessagingChannelsIntro.html)\n\n[Message Channel](MessageChannel.html)\n\n[Point-to-Point Channel](PointToPointChannel.html)\n\n[Publish-Subscr. Channel](PublishSubscribeChannel.html)\n\n[Datatype Channel](DatatypeChannel.html)\n\n[Invalid Message Channel](InvalidMessageChannel.html)\n\n[Dead Letter Channel](DeadLetterChannel.html)\n\n[Guaranteed Delivery](GuaranteedMessaging.html)\n\n[Channel Adapter](ChannelAdapter.html)\n\n[Messaging Bridge](MessagingBridge.html)\n\n[Message Bus](MessageBus.html)\n\n[Systems Mgmt.](SystemManagementIntro.html)\n\n[Control Bus](ControlBus.html)\n\n[Detour](Detour.html)\n\n[Wire Tap](WireTap.html)\n\n[Message History](MessageHistory.html)\n\n[Message Store](MessageStore.html)\n\n[Smart Proxy](SmartProxy.html)\n\n[Test Message](TestMessage.html)\n\n[Channel Purger](ChannelPurger.html)\n\n- » [Read the latest in My Blog](/ramblings)\n- » [Get more insights from My Articles](/articles.html)\n- » [See me live in my Upcoming Talks](/talks)\n\nYou can reuse the following elements under the [Creative Commons Attribution](http://creativecommons.org/licenses/by/4.0/) license: pattern icon, pattern name, problem and solution statements (in bold), and the sketch. Other portions are protected by copyright.\n\n[Enterprise Integration Patterns](https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20)\nThe de-facto language for designing asynchronous, distributed systems. Over 100,000 copies sold.\n\n[The Software Architect Elevator](https://www.architectelevator.com/book)\n\n Rethink the role of architects as a connecting element across organizational layers. Acquire the technical, communication, and organizational skills to succeed in this new role.\n\n[Cloud Strategy](https://www.cloudstrategybook.com)\n\n Make your cloud migration a success by translating high-level goals into conscious decisions with well-understood trade-offs.\n\n[Platform Strategy](https://www.platformstrategybook.info)\n\n Platforms can boost innovation through harmonization, but they aren't easy to build. Learn from over a decade of designing and rolling out IT platforms.", "znaku_textu": 6130, "slov": 505, "odkazu": 108, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/ControlBus.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 14:56:08", "sha256": "02e972bbe0613828b484908e5a6d0c01de80d324a76267dc0bd80763a925f6bb", "hloubka": 3, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://creativecommons.org/licenses/by/4.0/", "https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "https://www.architectelevator.com/book", "https://www.cloudstrategybook.com/", "https://www.platformstrategybook.info/"]} {"url": "http://www.enterpriseintegrationpatterns.com/patterns/messaging/CorrelationIdentifier.html", "titulek": "Correlation Identifier - Enterprise Integration Patterns", "h1": "", "popis": "How does a requestor that has received a reply know which request this is the reply for?", "klicova_slova": "Correlation Identifier,integration, messaging, events, patterns, event-driven, coupling, eai, middleware, application integration, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns", "og:title": "Correlation Identifier - Enterprise Integration Patterns", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/CorrelationIdentifier.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/CorrelationIdentifierSolution.gif"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Integration Pattern Language"}], "markdown": "Messaging Patterns\n\n[Messaging Patterns](index.html)\n\n- [Integration Styles](IntegrationStylesIntro.html)\n- [Messaging Systems](MessagingComponentsIntro.html)\n- [Messaging Channels](MessagingChannelsIntro.html)\n- [Message Construction](MessageConstructionIntro.html)\n- [Interlude: Simple Messaging](SimpleMessagingIntro.html)\n- [Message Routing](MessageRoutingIntro.html)\n- [Message Transformation](MessageTransformationIntro.html)\n- [Interlude: Composed Messaging](ComposedMessagingExample.html)\n- [Messaging Endpoints](MessagingEndpointsIntro.html)\n- [System Management](SystemManagementIntro.html)\n- Interlude: Systems Management Example\n- Integration Patterns in Practice\n- Concluding Remarks\n- Appendices\n\n| | Correlation Identifier[Messaging Patterns](index.html) » [Message Construction](MessageConstructionIntro.html) | [Contents](toc.html)[⇐ Prev](ReturnAddress.html)[Next ⇒](MessageSequence.html) |\n| --- | --- | --- |\n\nMy application is using [*Messaging*](Messaging.html) to perform a [*Request-Reply*](RequestReply.html) and has received a reply message.\n\nHow does a requestor that has received a reply know which request this is the reply for?\n\nEach reply message should contain a *Correlation Identifier*, a unique identifier that indicates which request message this reply is for.\n\nThere are six parts to *Correlation Identifier*:\n\n1. **Requestor** — An application that performs a business task by sending a request and waiting for a reply.\n2. **Replier** — Another application that receives the request, fulfills it, then sends the reply. It gets the request ID from the request and stores it as the correlation ID in the reply.\n3. **Request** — A [*Message*](Message.html) sent from the requestor to the replier containing a request ID.\n4. **Reply** — A [*Message*](Message.html) sent from the replier to the requestor containing a correlation ID.\n5. **Request ID** — A token in the request that uniquely identifies the request.\n6. **Correlation ID** — A token in the reply that has the same value as the request ID in the request.\n\n...\nRead the entire pattern in the book [Enterprise Integration Patterns](/books1.html)\n\n**Related patterns:**\n\n[*Remote Procedure Invocation*](EncapsulatedSynchronousIntegration.html), [*Message*](Message.html), [*Selective Consumer*](MessageSelector.html), [*Message Sequence*](MessageSequence.html), [*Messaging*](Messaging.html), [*Request-Reply*](RequestReply.html), [*Return Address*](ReturnAddress.html)\n\n**Further reading:**\n\n- [Correlation and Conversations](/ramblings/09_correlation.html)\n\n---\n\n## Integration Pattern Language\n\n[Message Construct.](MessageConstructionIntro.html)\n\n[Message](Message.html)\n\n[Command Message](CommandMessage.html)\n\n[Document Message](DocumentMessage.html)\n\n[Event Message](EventMessage.html)\n\n[Request-Reply](RequestReply.html)\n\n[Return Address](ReturnAddress.html)\n\n[Correlation Identifier](CorrelationIdentifier.html)\n\n[Message Sequence](MessageSequence.html)\n\n[Message Expiration](MessageExpiration.html)\n\n[Format Indicator](FormatIndicator.html)\n\n[Message Routing](MessageRoutingIntro.html)\n\n[Pipes-and-Filters](PipesAndFilters.html)\n\n[Message Router](MessageRouter.html)\n\n[Content-based Router](ContentBasedRouter.html)\n\n[Message Filter](Filter.html)\n\n[Dynamic Router](DynamicRouter.html)\n\n[Recipient List](RecipientList.html)\n\n[Splitter](Sequencer.html)\n\n[Aggregator](Aggregator.html)\n\n[Resequencer](Resequencer.html)\n\n[Composed Msg. Processor](DistributionAggregate.html)\n\n[Scatter-Gather](BroadcastAggregate.html)\n\n[Routing Slip](RoutingTable.html)\n\n[Process Manager](ProcessManager.html)\n\n[Message Broker](MessageBroker.html)\n\n[Message\nTransformation](MessageTransformationIntro.html)\n\n[Message Translator](MessageTranslator.html)\n\n[Envelope Wrapper](EnvelopeWrapper.html)\n\n[Content Enricher](DataEnricher.html)\n\n[Content Filter](ContentFilter.html)\n\n[Claim Check](StoreInLibrary.html)\n\n[Normalizer](Normalizer.html)\n\n[Canonical Data Model](CanonicalDataModel.html)\n\n[Messaging Endpoints](MessagingEndpointsIntro.html)\n\n[Message Endpoint](MessageEndpoint.html)\n\n[Messaging Gateway](MessagingGateway.html)\n\n[Messaging Mapper](MessagingMapper.html)\n\n[Transactional Client](TransactionalClient.html)\n\n[Polling Consumer](PollingConsumer.html)\n\n[Event-driven Consumer](EventDrivenConsumer.html)\n\n[Competing Consumers](CompetingConsumers.html)\n\n[Message Dispatcher](MessageDispatcher.html)\n\n[Selective Consumer](MessageSelector.html)\n\n[Durable Subscriber](DurableSubscription.html)\n\n[Idempotent Receiver](IdempotentReceiver.html)\n\n[Service Activator](MessagingAdapter.html)\n\n[Messaging Channels](MessagingChannelsIntro.html)\n\n[Message Channel](MessageChannel.html)\n\n[Point-to-Point Channel](PointToPointChannel.html)\n\n[Publish-Subscr. Channel](PublishSubscribeChannel.html)\n\n[Datatype Channel](DatatypeChannel.html)\n\n[Invalid Message Channel](InvalidMessageChannel.html)\n\n[Dead Letter Channel](DeadLetterChannel.html)\n\n[Guaranteed Delivery](GuaranteedMessaging.html)\n\n[Channel Adapter](ChannelAdapter.html)\n\n[Messaging Bridge](MessagingBridge.html)\n\n[Message Bus](MessageBus.html)\n\n[Systems Mgmt.](SystemManagementIntro.html)\n\n[Control Bus](ControlBus.html)\n\n[Detour](Detour.html)\n\n[Wire Tap](WireTap.html)\n\n[Message History](MessageHistory.html)\n\n[Message Store](MessageStore.html)\n\n[Smart Proxy](SmartProxy.html)\n\n[Test Message](TestMessage.html)\n\n[Channel Purger](ChannelPurger.html)\n\n- » [Read the latest in My Blog](/ramblings)\n- » [Get more insights from My Articles](/articles.html)\n- » [See me live in my Upcoming Talks](/talks)\n\nYou can reuse the following elements under the [Creative Commons Attribution](http://creativecommons.org/licenses/by/4.0/) license: pattern icon, pattern name, problem and solution statements (in bold), and the sketch. Other portions are protected by copyright.\n\n[Enterprise Integration Patterns](https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20)\nThe de-facto language for designing asynchronous, distributed systems. Over 100,000 copies sold.\n\n[The Software Architect Elevator](https://www.architectelevator.com/book)\n\n Rethink the role of architects as a connecting element across organizational layers. Acquire the technical, communication, and organizational skills to succeed in this new role.\n\n[Cloud Strategy](https://www.cloudstrategybook.com)\n\n Make your cloud migration a success by translating high-level goals into conscious decisions with well-understood trade-offs.\n\n[Platform Strategy](https://www.platformstrategybook.info)\n\n Platforms can boost innovation through harmonization, but they aren't easy to build. Learn from over a decade of designing and rolling out IT platforms.", "znaku_textu": 6477, "slov": 567, "odkazu": 109, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/CorrelationIdentifier.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 14:55:24", "sha256": "d388f9c3f4b82638a3d57033e9e8e779ab919370c13af8a5fd79c76219e327e1", "hloubka": 3, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://creativecommons.org/licenses/by/4.0/", "https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "https://www.architectelevator.com/book", "https://www.cloudstrategybook.com/", "https://www.platformstrategybook.info/"]} {"url": "http://www.enterpriseintegrationpatterns.com/patterns/messaging/DataEnricher.html", "titulek": "Content Enricher - Enterprise Integration Patterns", "h1": "", "popis": "How do we communicate with another system if the message originator does not have all the required data items available?", "klicova_slova": "Content Enricher,integration, messaging, events, patterns, event-driven, coupling, eai, middleware, application integration, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns", "og:title": "Content Enricher - Enterprise Integration Patterns", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/DataEnricher.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/DataEnricher.gif"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Example: Content Enricher with Amazon EventBridge PipesNEW"}, {"uroven": 2, "text": "Integration Pattern Language"}], "markdown": "| | Content Enricher[Messaging Patterns](index.html) » [Message Transformation](MessageTransformationIntro.html) | [Contents](toc.html)[⇐ Prev](EnvelopeWrapper.html)[Next ⇒](ContentFilter.html) |\n| --- | --- | --- |\n\nWhen sending messages from one system to another it is common for the target system to require more information than the source system can provide. For example, incoming Address messages may just contain the ZIP code because the designers felt that storing a redundant state code would be superfluous. Likely, another system is going to want to specify both a state code and a ZIP code field. Yet another system may not actually use state codes, but spell the state name out because it uses free-form addresses in order to support international addresses. Likewise, one system may provide us with a customer ID, but the receiving system actually requires the customer name and address. An order message sent by the order management system may just contain an order number, but we need to find the customer ID associated with that order, so we can pass it to the customer management system. The scenarios are plentiful.\n\nHow do we communicate with another system if the message originator does not have all the required data items available?\n\nUse a specialized transformer, a *Content Enricher*, to access an external data source in order to augment a message with missing information.\n\nThe *Content Enricher* uses information inside the incoming message (e.g. key fields) to retrieve data from an external source. After the *Content Enricher* retrieves the required data from the resource, it appends the data to the message. The original information from the incoming message may be carried over into the resulting message or may no longer be needed, depending on the specific needs of the receiving application.\n\nThe additional information injected by the *Content Enricher* has to be available somewhere in the system. The most common sources for the new data are:\n\n- **Computation** The *Content Enricher* may be able to compute the missing information. In this case, the algorithm incorporates the additional information. For example, if the receiving system requires a state code but the incoming message only contains a ZIP code. Or, a receiving system may require a data format that specifies the total size of the message. The *Content Enricher* can add the length of all message fields and thus compute the message size. This form of *Content Enricher* is very similar to the basic [*Message Translator*](MessageTranslator.html) because it needs no external data source.\n- **Environment** The *Content Enricher* may be able to retrieve the additional data from the operating environment. The most common example is a time stamp. For example, the receiving system may require each message to carry a time stamp. if the sending system does not include this field, the *Content Enricher* can get the current time from the operating system and add it to the message.\n- **Another System** This option is the most common one. The *Content Enricher* has to retrieve the missing data from another system. This data resource can take on a number of forms, including a database, a file, an LDAP directory, a system, or a user who manually enters missing data.\n\n...\nRead the entire pattern in the book [Enterprise Integration Patterns](/books1.html)\n\n## Example: Content Enricher with Amazon EventBridge Pipes[NEW](/ramblings/eip1_examples_updated.html)\n\nFor cloud-based messaging systems, [Amazon EventBridge Pipes](https://docs.aws.amazon.com/eventbridge/latest/userguide/eb-pipes.html#pipes-enrichment) can implement a *Content Enricher* through the \"Enrichment\" step:\n\n*Enriching messages with Amazon EventBridge Pipes*\n\nThe step itself is a slight misnomer as it can implement any [*Message Translator*](MessageTranslator.html) or even a [*Message Filter*](Filter.html) for batched sources. The pipe simply passes on the message(s) that are returned by the *Enrichment* step. To build an actual *Content Enricher*, you can use a Lambda function that fetches additional data from a DynamoDB table based on a key from the original message. You can find the source code for this example implementation in the [EIP Code Repository](https://github.com/spac3lord/eip/tree/master/ContentEnricher).\n\nYou start out by creating two [*Message Channel*](MessageChannel.html)s in form of Amazon SQS Queues (the example uses the AWS CLI command line to keep things simple; for real projects an automation script is highly recommended):\n\n```\n$ aws sqs create-queue --queue-name EntityIDs --attributes='{\"MessageRetentionPeriod\": \"300\"}'\n$ aws sqs create-queue --queue-name EntityUpdates --attributes='{\"MessageRetentionPeriod\": \"300\"}'\n$ aws sqs list-queues\n```\n\nThe last command prints out the URLs of the created queues, which you will need later.\n\nThe *Content Enricher*, implemented in EventBridge Pipes, Lambda, and DynamoDB, will fetch messages containing just id fields from *EntityID* queue and publish enriched events to the *EntityUpdates* queue. To build the *Content Enricher*, you first create a table to hold the *Entity* data and load it up with sample data, which is most easily done with a JSON file (available in the [EIP Code Repository](https://github.com/spac3lord/eip/tree/master/ContentEnricher)):\n\n```\n$ aws dynamodb create-table --table-name Entities \\\n --attribute-definitions AttributeName=id,AttributeType=S \\\n --key-schema AttributeName=id,KeyType=HASH \\\n --billing-mode PAY_PER_REQUEST\n\n$ aws dynamodb batch-write-item --request-items file://entities.json\n```\n\nTo check that the table is loaded (and to get accustomed to DynamoDB's syntax), you can fetch an entity:\n\n```\n $ aws dynamodb get-item --table-name Entities --key '{\"id\": {\"S\": \"123\"}}'\n {\n \"Item\": {\n \"id\": { \"S\": \"123\" },\n \"Amount\": { \"N\": \"12.34\" },\n \"Type\": { \"S\": \"Order\" },\n \"Customer\": { \"S\": \"Pete's Pizza\" }\n }\n}\n```\n\nBefore you create the Pipe, you need to create a security role with the required permissions (the trust policy file is supplied in the EIP repository) so that your pipe can read and write messages from SQS and invoke a Lambda function. It's also handy to get your account ID and store it in a variable (if the command line doesn't support evaluations, you can execute the command by hand and set the variable explicitly or just replace $id with the number on each command line):\n\n```\n$ id=`aws sts get-caller-identity --query 'Account' --output text`\n$ echo $id\n1234567890\n\n$ aws iam create-role --role-name EventBridge_Pipes_Enricher --assume-role-policy-document file://trust_policy_pipes.json\n\n$ aws iam create-policy --policy-name pipes_sqs_lambda_sqs --policy-document file://pipes_role_policy.json \\\n --query Policy.Arn --output text\n\n$ aws iam attach-role-policy --role-name EventBridge_Pipes_Enricher --policy-arn arn:aws:iam::$id:policy/pipes_sqs_lambda_sqs\n```\n\nAdditionally, you need to grant write permission to the *EntityUpdates* queue with a so-called resource policy that's attached to a resource instead of a role:\n\n```\n$ aws sqs add-permission --queue-url= https://sqs.ap-southeast-1.amazonaws.com/$id/EntityUpdates \\\n --aws-account-ids=$id \\\n --actions SendMessage ReceiveMessage DeleteMessage ChangeMessageVisibility \\\n --label SendEntities\n```\n\nYou can now create a Pipe and give it the required permissions through the role you just created (notice the use of $id for the account ID):\n\n```\n$ aws pipes create-pipe --name ContentEnricher \\\n --source arn:aws:sqs:ap-southeast-1:$id:EntityIDs \\\n --target arn:aws:sqs:ap-southeast-1:$id:EntityUpdates \\\n --enrichment arn:aws:lambda:ap-southeast-1:$id:function:EnrichFromDynamoDB \\\n --role-arn arn:aws:iam::$id:role/EventBridge_Pipes_Enricher\n```\n\nYou also need to deploy the Lambda function that looks up the entities from the database and returns the enriched messages. EventBridge pipes can work in batches, meaning it can fetch more than one event from the event source at one time. Correspondingly, your Lambda function has to be prepared receive a list of IDs. In my implementation, it uses the batch_get_item method to look up all IDs at once (invalid IDs simply don't return an item):\n\n```\nimport json\nimport boto3\n\ndynamo = boto3.resource('dynamodb')\ntable_name = 'Entities'\n\ndef lambda_handler(event, context):\n keys = []\n for evt in event:\n body = json.loads(evt['body'])\n keys += [ {'id': body['id']} ]\n data = dynamo.batch_get_item(RequestItems={table_name: {'Keys': keys} })\n return data['Responses'][table_name]\n```\n\nAs you might have guessed, the Lambda function also needs a role that allows it to read from DynamoDB and write logs:\n\n```\n$ aws iam create-role --role-name Lambda_Enricher --assume-role-policy-document file://trust_policy_lambda.json\n\n$ aws iam attach-role-policy --role-name Lambda_Enricher --policy-arn arn:aws:iam::aws:policy/AmazonDynamoDBReadOnlyAccess\n\n$ aws iam attach-role-policy --role-name Lambda_Enricher --policy-arn arn:aws:iam::aws:policy/service-role/AWSLambdaBasicExecutionRole\n```\n\nTo deploy the function directly, you need to first zip it up (using any Zip utility) to code.zip and deploy it with the following command line (again, notice the $id being referenced):\n\n```\n$ aws lambda create-function --function-name EnrichFromDynamoDB \\\n --role arn:aws:iam::$id:role/Lambda_Enricher \\\n --runtime python3.9 --zip-file fileb://code.zip --handler DynamoDBEnricher.lambda_handler\n```\n\nShow time! You can now send a message to the inbound queue for the *Content Enricher* and poll the result queue for enriched messages (the query and output parameters just filter down the output to the message body; feel free to omit them for the full experience):\n\n```\n$ aws sqs send-message --queue-url https://sqs.ap-southeast-1.amazonaws.com/$id/EntityIDs --message-body '{\"id\": \"123\"}'\n$ aws sqs send-message --queue-url https://sqs.ap-southeast-1.amazonaws.com/$id/EntityIDs --message-body '{\"id\": \"456\"}'\n\n$ aws sqs receive-message --max-number-of-messages 5 \\\n --queue-url https://sqs.ap-southeast-1.amazonaws.com/$id/EntityUpdates \\\n --query 'Messages[*].Body' --output text\n{\"id\":\"123\",\"Amount\":\"12.34\",\"Type\":\"Order\",\"Customer\":\"Pete's Pizza\"}\n{\"id\":\"456\",\"Amount\":\"22.22\",\"Type\":\"Order\",\"Customer\":\"Mary's Muffins\"}\n```\n\n**Related patterns:**\n\n[*Content Filter*](ContentFilter.html), [*Event Message*](EventMessage.html), [*Message Filter*](Filter.html), [*Message Channel*](MessageChannel.html), [*Message Translator*](MessageTranslator.html), [*Claim Check*](StoreInLibrary.html)\n\n---\n\n## Integration Pattern Language\n\n[Message Construct.](MessageConstructionIntro.html)\n\n[Message](Message.html)\n\n[Command Message](CommandMessage.html)\n\n[Document Message](DocumentMessage.html)\n\n[Event Message](EventMessage.html)\n\n[Request-Reply](RequestReply.html)\n\n[Return Address](ReturnAddress.html)\n\n[Correlation Identifier](CorrelationIdentifier.html)\n\n[Message Sequence](MessageSequence.html)\n\n[Message Expiration](MessageExpiration.html)\n\n[Format Indicator](FormatIndicator.html)\n\n[Message Routing](MessageRoutingIntro.html)\n\n[Pipes-and-Filters](PipesAndFilters.html)\n\n[Message Router](MessageRouter.html)\n\n[Content-based Router](ContentBasedRouter.html)\n\n[Message Filter](Filter.html)\n\n[Dynamic Router](DynamicRouter.html)\n\n[Recipient List](RecipientList.html)\n\n[Splitter](Sequencer.html)\n\n[Aggregator](Aggregator.html)\n\n[Resequencer](Resequencer.html)\n\n[Composed Msg. Processor](DistributionAggregate.html)\n\n[Scatter-Gather](BroadcastAggregate.html)\n\n[Routing Slip](RoutingTable.html)\n\n[Process Manager](ProcessManager.html)\n\n[Message Broker](MessageBroker.html)\n\n[Message\nTransformation](MessageTransformationIntro.html)\n\n[Message Translator](MessageTranslator.html)\n\n[Envelope Wrapper](EnvelopeWrapper.html)\n\n[Content Enricher](DataEnricher.html)\n\n[Content Filter](ContentFilter.html)\n\n[Claim Check](StoreInLibrary.html)\n\n[Normalizer](Normalizer.html)\n\n[Canonical Data Model](CanonicalDataModel.html)\n\n[Messaging Endpoints](MessagingEndpointsIntro.html)\n\n[Message Endpoint](MessageEndpoint.html)\n\n[Messaging Gateway](MessagingGateway.html)\n\n[Messaging Mapper](MessagingMapper.html)\n\n[Transactional Client](TransactionalClient.html)\n\n[Polling Consumer](PollingConsumer.html)\n\n[Event-driven Consumer](EventDrivenConsumer.html)\n\n[Competing Consumers](CompetingConsumers.html)\n\n[Message Dispatcher](MessageDispatcher.html)\n\n[Selective Consumer](MessageSelector.html)\n\n[Durable Subscriber](DurableSubscription.html)\n\n[Idempotent Receiver](IdempotentReceiver.html)\n\n[Service Activator](MessagingAdapter.html)\n\n[Messaging Channels](MessagingChannelsIntro.html)\n\n[Message Channel](MessageChannel.html)\n\n[Point-to-Point Channel](PointToPointChannel.html)\n\n[Publish-Subscr. Channel](PublishSubscribeChannel.html)\n\n[Datatype Channel](DatatypeChannel.html)\n\n[Invalid Message Channel](InvalidMessageChannel.html)\n\n[Dead Letter Channel](DeadLetterChannel.html)\n\n[Guaranteed Delivery](GuaranteedMessaging.html)\n\n[Channel Adapter](ChannelAdapter.html)\n\n[Messaging Bridge](MessagingBridge.html)\n\n[Message Bus](MessageBus.html)\n\n[Systems Mgmt.](SystemManagementIntro.html)\n\n[Control Bus](ControlBus.html)\n\n[Detour](Detour.html)\n\n[Wire Tap](WireTap.html)\n\n[Message History](MessageHistory.html)\n\n[Message Store](MessageStore.html)\n\n[Smart Proxy](SmartProxy.html)\n\n[Test Message](TestMessage.html)\n\n[Channel Purger](ChannelPurger.html)", "znaku_textu": 13013, "slov": 1606, "odkazu": 111, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/DataEnricher.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 14:55:46", "sha256": "5abab4ed38c6771bde64ba64de89986647662400f460b1873ade68e41f7dcb1d", "hloubka": 3, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://docs.aws.amazon.com/eventbridge/latest/userguide/eb-pipes.html", "https://github.com/spac3lord/eip/tree/master/ContentEnricher", "http://creativecommons.org/licenses/by/4.0/", "https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "https://www.architectelevator.com/book", "https://www.cloudstrategybook.com/", "https://www.platformstrategybook.info/"]} {"url": "http://www.enterpriseintegrationpatterns.com/patterns/messaging/DatatypeChannel.html", "titulek": "Datatype Channel - Enterprise Integration Patterns", "h1": "", "popis": "How can the application send a data item such that the receiver will know how to process it?", "klicova_slova": "Datatype Channel,integration, messaging, events, patterns, event-driven, coupling, eai, middleware, application integration, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns", "og:title": "Datatype Channel - Enterprise Integration Patterns", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/DatatypeChannel.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/DatatypeSolution.gif"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Integration Pattern Language"}], "markdown": "Messaging Patterns\n\n[Messaging Patterns](index.html)\n\n- [Integration Styles](IntegrationStylesIntro.html)\n- [Messaging Systems](MessagingComponentsIntro.html)\n- [Messaging Channels](MessagingChannelsIntro.html)\n- [Message Construction](MessageConstructionIntro.html)\n- [Interlude: Simple Messaging](SimpleMessagingIntro.html)\n- [Message Routing](MessageRoutingIntro.html)\n- [Message Transformation](MessageTransformationIntro.html)\n- [Interlude: Composed Messaging](ComposedMessagingExample.html)\n- [Messaging Endpoints](MessagingEndpointsIntro.html)\n- [System Management](SystemManagementIntro.html)\n- Interlude: Systems Management Example\n- Integration Patterns in Practice\n- Concluding Remarks\n- Appendices\n\n| | Datatype Channel[Messaging Patterns](index.html) » [Messaging Channels](MessagingChannelsIntro.html) | [Contents](toc.html)[⇐ Prev](PublishSubscribeChannel.html)[Next ⇒](InvalidMessageChannel.html) |\n| --- | --- | --- |\n\nAn application is using [*Messaging*](Messaging.html) to transfer different types of data, such as different types of documents.\n\nHow can the application send a data item such that the receiver will know how to process it?\n\nUse a separate *Datatype Channel* for each data type, so that all data on a particular channel is of the same type.\n\nBy using a separate *Datatype Channel* for each type of data, all of the messages on a given channel will contain the same type of data. The sender, knowing what type the data is, will need to select the appropriate channel to send it on. The receiver, knowing what channel the data was received on, will know what its type is.\n\n...\nRead the entire pattern in the book [Enterprise Integration Patterns](/books1.html)\n\n**Related patterns:**\n\n[*Canonical Data Model*](CanonicalDataModel.html), [*Command Message*](CommandMessage.html), [*Format Indicator*](FormatIndicator.html), [*Message Channel*](MessageChannel.html), [*Message Dispatcher*](MessageDispatcher.html), [*Selective Consumer*](MessageSelector.html), [*Messaging*](Messaging.html)\n\n---\n\n## Integration Pattern Language\n\n[Message Construct.](MessageConstructionIntro.html)\n\n[Message](Message.html)\n\n[Command Message](CommandMessage.html)\n\n[Document Message](DocumentMessage.html)\n\n[Event Message](EventMessage.html)\n\n[Request-Reply](RequestReply.html)\n\n[Return Address](ReturnAddress.html)\n\n[Correlation Identifier](CorrelationIdentifier.html)\n\n[Message Sequence](MessageSequence.html)\n\n[Message Expiration](MessageExpiration.html)\n\n[Format Indicator](FormatIndicator.html)\n\n[Message Routing](MessageRoutingIntro.html)\n\n[Pipes-and-Filters](PipesAndFilters.html)\n\n[Message Router](MessageRouter.html)\n\n[Content-based Router](ContentBasedRouter.html)\n\n[Message Filter](Filter.html)\n\n[Dynamic Router](DynamicRouter.html)\n\n[Recipient List](RecipientList.html)\n\n[Splitter](Sequencer.html)\n\n[Aggregator](Aggregator.html)\n\n[Resequencer](Resequencer.html)\n\n[Composed Msg. Processor](DistributionAggregate.html)\n\n[Scatter-Gather](BroadcastAggregate.html)\n\n[Routing Slip](RoutingTable.html)\n\n[Process Manager](ProcessManager.html)\n\n[Message Broker](MessageBroker.html)\n\n[Message\nTransformation](MessageTransformationIntro.html)\n\n[Message Translator](MessageTranslator.html)\n\n[Envelope Wrapper](EnvelopeWrapper.html)\n\n[Content Enricher](DataEnricher.html)\n\n[Content Filter](ContentFilter.html)\n\n[Claim Check](StoreInLibrary.html)\n\n[Normalizer](Normalizer.html)\n\n[Canonical Data Model](CanonicalDataModel.html)\n\n[Messaging Endpoints](MessagingEndpointsIntro.html)\n\n[Message Endpoint](MessageEndpoint.html)\n\n[Messaging Gateway](MessagingGateway.html)\n\n[Messaging Mapper](MessagingMapper.html)\n\n[Transactional Client](TransactionalClient.html)\n\n[Polling Consumer](PollingConsumer.html)\n\n[Event-driven Consumer](EventDrivenConsumer.html)\n\n[Competing Consumers](CompetingConsumers.html)\n\n[Message Dispatcher](MessageDispatcher.html)\n\n[Selective Consumer](MessageSelector.html)\n\n[Durable Subscriber](DurableSubscription.html)\n\n[Idempotent Receiver](IdempotentReceiver.html)\n\n[Service Activator](MessagingAdapter.html)\n\n[Messaging Channels](MessagingChannelsIntro.html)\n\n[Message Channel](MessageChannel.html)\n\n[Point-to-Point Channel](PointToPointChannel.html)\n\n[Publish-Subscr. Channel](PublishSubscribeChannel.html)\n\n[Datatype Channel](DatatypeChannel.html)\n\n[Invalid Message Channel](InvalidMessageChannel.html)\n\n[Dead Letter Channel](DeadLetterChannel.html)\n\n[Guaranteed Delivery](GuaranteedMessaging.html)\n\n[Channel Adapter](ChannelAdapter.html)\n\n[Messaging Bridge](MessagingBridge.html)\n\n[Message Bus](MessageBus.html)\n\n[Systems Mgmt.](SystemManagementIntro.html)\n\n[Control Bus](ControlBus.html)\n\n[Detour](Detour.html)\n\n[Wire Tap](WireTap.html)\n\n[Message History](MessageHistory.html)\n\n[Message Store](MessageStore.html)\n\n[Smart Proxy](SmartProxy.html)\n\n[Test Message](TestMessage.html)\n\n[Channel Purger](ChannelPurger.html)\n\n- » [Read the latest in My Blog](/ramblings)\n- » [Get more insights from My Articles](/articles.html)\n- » [See me live in my Upcoming Talks](/talks)\n\nYou can reuse the following elements under the [Creative Commons Attribution](http://creativecommons.org/licenses/by/4.0/) license: pattern icon, pattern name, problem and solution statements (in bold), and the sketch. Other portions are protected by copyright.\n\n[Enterprise Integration Patterns](https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20)\nThe de-facto language for designing asynchronous, distributed systems. Over 100,000 copies sold.\n\n[The Software Architect Elevator](https://www.architectelevator.com/book)\n\n Rethink the role of architects as a connecting element across organizational layers. Acquire the technical, communication, and organizational skills to succeed in this new role.\n\n[Cloud Strategy](https://www.cloudstrategybook.com)\n\n Make your cloud migration a success by translating high-level goals into conscious decisions with well-understood trade-offs.\n\n[Platform Strategy](https://www.platformstrategybook.info)\n\n Platforms can boost innovation through harmonization, but they aren't easy to build. Learn from over a decade of designing and rolling out IT platforms.", "znaku_textu": 5974, "slov": 494, "odkazu": 108, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/DatatypeChannel.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 14:55:11", "sha256": "c3f2c8b483585a0a5266e02aa491ddfacbb5154f2f7c89e91ba5678a73b5c3f8", "hloubka": 3, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://creativecommons.org/licenses/by/4.0/", "https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "https://www.architectelevator.com/book", "https://www.cloudstrategybook.com/", "https://www.platformstrategybook.info/"]} {"url": "http://www.enterpriseintegrationpatterns.com/patterns/messaging/DeadLetterChannel.html", "titulek": "Dead Letter Channel - Enterprise Integration Patterns", "h1": "", "popis": "What will the messaging system do with a message it cannot deliver?", "klicova_slova": "Dead Letter Channel,integration, messaging, events, patterns, event-driven, coupling, eai, middleware, application integration, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns", "og:title": "Dead Letter Channel - Enterprise Integration Patterns", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/DeadLetterChannel.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/DeadLetterChannelSolution.gif"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Example: Dead Letter Queue in Amazon SQSNEW"}, {"uroven": 2, "text": "Example: Kafka ConnectNEW"}, {"uroven": 2, "text": "Integration Pattern Language"}], "markdown": "| | Dead Letter Channel[Messaging Patterns](index.html) » [Messaging Channels](MessagingChannelsIntro.html) | [Contents](toc.html)[⇐ Prev](InvalidMessageChannel.html)[Next ⇒](GuaranteedMessaging.html) |\n| --- | --- | --- |\n\nAn enterprise is using [*Messaging*](Messaging.html) to integrate applications.\n\nWhat will the messaging system do with a message it cannot deliver?\n\nWhen a messaging system determines that it cannot or should not deliver a message, it may elect to move the message to a *Dead Letter Channel*.\n\nThe specific way a *Dead Letter Channel* works depends on the specific messaging system’s implementation, if it provides one at all. The channel may be called a “dead message queue” [[Monson-Haefel, p.125](http://www.amazon.com/exec/obidos/ASIN/0596000685/enterpriseint-20)] or *dead letter queue* (DLQ). [[MQSeries](http://www.ibm.com/software/mqseries)], [[Dickman, pp.28-29](http://www.amazon.com/exec/obidos/ASIN/0201325810/enterpriseint-20)] Typically, each machine the messaging system is installed on has its own local *Dead Letter Channel* so that whatever machine a message dies on, it can be moved from one local queue to another without any networking uncertainties. This also records what machine the message died on. When the messaging system moves the message, it may also record the original channel the message was supposed to be delivered on.\n\n...\nRead the entire pattern in the book [Enterprise Integration Patterns](/books1.html)\n\n## Example: Dead Letter Queue in Amazon SQS[NEW](/ramblings/eip1_examples_updated.html)\n\nMany hosted messaging systems, including Amazon's [Simple Queuing Service (SQS)](https://aws.amazon.com/sqs) include a *Dead Letter Channel*. Amazon's Dead Letter Queue behavior is closely related to the way SQS delivers messages. After a consumer fetches a message from a queue, the messages remains on the queue, but hidden from other consumers to avoid fetching and processing the same message multiple times. After processing a message, the consumer is responsible for explicitly deleting the message. If the consumer doesn't delete the message, for example because because it crashed while processing the message, the message becomes visible again after the message's *Visibility Timeout* expires. Each time this happens, the message's receive count is increased. When this count reaches a configured limit, the message is considered undeliverable and placed in a designated Dead Letter Queue. Other AWS services like [Amazon EventBridge](https://aws.amazon.com/eventbridge/) also feature a *Dead Letter Channel*.\n\n## Example: Kafka Connect[NEW](/ramblings/eip1_examples_updated.html)\n\nKafka Connect, Confluent's tool for data streaming to and from Kafka includes a *Dead Letter Channel* for sink connectors. As per the [documentation](https://docs.confluent.io/platform/current/connect/concepts.html#dead-letter-queue), the *Dead Letter Channel* is active when the connector is configured to tolerate errors (otherwise, it'd abort and not send messages to any queue). The name of the *Dead Letter Channel* can easily be configured:\n\n```\nerrors.tolerance = all\nerrors.deadletterqueue.topic.name = \n```\n\n**Related patterns:**\n\n[*Invalid Message Channel*](InvalidMessageChannel.html), [*Message Expiration*](MessageExpiration.html), [*Selective Consumer*](MessageSelector.html), [*Messaging*](Messaging.html)\n\n---\n\n## Integration Pattern Language\n\n[Message Construct.](MessageConstructionIntro.html)\n\n[Message](Message.html)\n\n[Command Message](CommandMessage.html)\n\n[Document Message](DocumentMessage.html)\n\n[Event Message](EventMessage.html)\n\n[Request-Reply](RequestReply.html)\n\n[Return Address](ReturnAddress.html)\n\n[Correlation Identifier](CorrelationIdentifier.html)\n\n[Message Sequence](MessageSequence.html)\n\n[Message Expiration](MessageExpiration.html)\n\n[Format Indicator](FormatIndicator.html)\n\n[Message Routing](MessageRoutingIntro.html)\n\n[Pipes-and-Filters](PipesAndFilters.html)\n\n[Message Router](MessageRouter.html)\n\n[Content-based Router](ContentBasedRouter.html)\n\n[Message Filter](Filter.html)\n\n[Dynamic Router](DynamicRouter.html)\n\n[Recipient List](RecipientList.html)\n\n[Splitter](Sequencer.html)\n\n[Aggregator](Aggregator.html)\n\n[Resequencer](Resequencer.html)\n\n[Composed Msg. Processor](DistributionAggregate.html)\n\n[Scatter-Gather](BroadcastAggregate.html)\n\n[Routing Slip](RoutingTable.html)\n\n[Process Manager](ProcessManager.html)\n\n[Message Broker](MessageBroker.html)\n\n[Message\nTransformation](MessageTransformationIntro.html)\n\n[Message Translator](MessageTranslator.html)\n\n[Envelope Wrapper](EnvelopeWrapper.html)\n\n[Content Enricher](DataEnricher.html)\n\n[Content Filter](ContentFilter.html)\n\n[Claim Check](StoreInLibrary.html)\n\n[Normalizer](Normalizer.html)\n\n[Canonical Data Model](CanonicalDataModel.html)\n\n[Messaging Endpoints](MessagingEndpointsIntro.html)\n\n[Message Endpoint](MessageEndpoint.html)\n\n[Messaging Gateway](MessagingGateway.html)\n\n[Messaging Mapper](MessagingMapper.html)\n\n[Transactional Client](TransactionalClient.html)\n\n[Polling Consumer](PollingConsumer.html)\n\n[Event-driven Consumer](EventDrivenConsumer.html)\n\n[Competing Consumers](CompetingConsumers.html)\n\n[Message Dispatcher](MessageDispatcher.html)\n\n[Selective Consumer](MessageSelector.html)\n\n[Durable Subscriber](DurableSubscription.html)\n\n[Idempotent Receiver](IdempotentReceiver.html)\n\n[Service Activator](MessagingAdapter.html)\n\n[Messaging Channels](MessagingChannelsIntro.html)\n\n[Message Channel](MessageChannel.html)\n\n[Point-to-Point Channel](PointToPointChannel.html)\n\n[Publish-Subscr. Channel](PublishSubscribeChannel.html)\n\n[Datatype Channel](DatatypeChannel.html)\n\n[Invalid Message Channel](InvalidMessageChannel.html)\n\n[Dead Letter Channel](DeadLetterChannel.html)\n\n[Guaranteed Delivery](GuaranteedMessaging.html)\n\n[Channel Adapter](ChannelAdapter.html)\n\n[Messaging Bridge](MessagingBridge.html)\n\n[Message Bus](MessageBus.html)\n\n[Systems Mgmt.](SystemManagementIntro.html)\n\n[Control Bus](ControlBus.html)\n\n[Detour](Detour.html)\n\n[Wire Tap](WireTap.html)\n\n[Message History](MessageHistory.html)\n\n[Message Store](MessageStore.html)\n\n[Smart Proxy](SmartProxy.html)\n\n[Test Message](TestMessage.html)\n\n[Channel Purger](ChannelPurger.html)", "znaku_textu": 6088, "slov": 566, "odkazu": 115, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/DeadLetterChannel.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 14:55:13", "sha256": "714f6babd327e622695d9be989c93c704d23b034cb2e0fcc1065a0eaa203a278", "hloubka": 3, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://www.amazon.com/exec/obidos/ASIN/0596000685/enterpriseint-20", "http://www.ibm.com/software/mqseries", "http://www.amazon.com/exec/obidos/ASIN/0201325810/enterpriseint-20", "https://aws.amazon.com/sqs", "https://aws.amazon.com/eventbridge/", "https://docs.confluent.io/platform/current/connect/concepts.html", "http://creativecommons.org/licenses/by/4.0/", "https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "https://www.architectelevator.com/book", "https://www.cloudstrategybook.com/", "https://www.platformstrategybook.info/"]} {"url": "http://www.enterpriseintegrationpatterns.com/patterns/messaging/Detour.html", "titulek": "Detour - Enterprise Integration Patterns", "h1": "", "popis": "How can you route a message through intermediate steps to perform validation, testing or debugging functions?", "klicova_slova": "Detour,integration, messaging, events, patterns, event-driven, coupling, eai, middleware, application integration, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns", "og:title": "Detour - Enterprise Integration Patterns", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/Detour.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/Detour.gif"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Integration Pattern Language"}], "markdown": "Messaging Patterns\n\n[Messaging Patterns](index.html)\n\n- [Integration Styles](IntegrationStylesIntro.html)\n- [Messaging Systems](MessagingComponentsIntro.html)\n- [Messaging Channels](MessagingChannelsIntro.html)\n- [Message Construction](MessageConstructionIntro.html)\n- [Interlude: Simple Messaging](SimpleMessagingIntro.html)\n- [Message Routing](MessageRoutingIntro.html)\n- [Message Transformation](MessageTransformationIntro.html)\n- [Interlude: Composed Messaging](ComposedMessagingExample.html)\n- [Messaging Endpoints](MessagingEndpointsIntro.html)\n- [System Management](SystemManagementIntro.html)\n- Interlude: Systems Management Example\n- Integration Patterns in Practice\n- Concluding Remarks\n- Appendices\n\n| | Detour[Messaging Patterns](index.html) » [System Management](SystemManagementIntro.html) | [Contents](toc.html)[⇐ Prev](ControlBus.html)[Next ⇒](WireTap.html) |\n| --- | --- | --- |\n\nA [*Wire Tap*](WireTap.html) is useful to inspect messages that travel across a channel. Sometimes, though, we need to modify or reroute the messages instead of simply inspecting them.\n\nHow can you route a message through intermediate steps to perform validation, testing or debugging functions?\n\nConstruct a *Detour* with a context-based router controlled via the *Control Bus*. In one state the router routes incoming messages through additional steps while in the other it routes messages directly to the destination channel.\n\nThe *Detour* uses a simple context-based router with two output channels. One output channel passes the unmodified message to the original destination. When instructed by the [*Control Bus*](ControlBus.html), the *Detour* routes messages to a different channel. This channel sends the message to additional components that can inspect and/or modify the message. Ultimately, these components route the message to the same destination.\n\n...\nRead the entire pattern in the book [Enterprise Integration Patterns](/books1.html)\n\n**Related patterns:**\n\n[*Control Bus*](ControlBus.html), [*Publish-Subscribe Channel*](PublishSubscribeChannel.html), [*Wire Tap*](WireTap.html)\n\n---\n\n## Integration Pattern Language\n\n[Message Construct.](MessageConstructionIntro.html)\n\n[Message](Message.html)\n\n[Command Message](CommandMessage.html)\n\n[Document Message](DocumentMessage.html)\n\n[Event Message](EventMessage.html)\n\n[Request-Reply](RequestReply.html)\n\n[Return Address](ReturnAddress.html)\n\n[Correlation Identifier](CorrelationIdentifier.html)\n\n[Message Sequence](MessageSequence.html)\n\n[Message Expiration](MessageExpiration.html)\n\n[Format Indicator](FormatIndicator.html)\n\n[Message Routing](MessageRoutingIntro.html)\n\n[Pipes-and-Filters](PipesAndFilters.html)\n\n[Message Router](MessageRouter.html)\n\n[Content-based Router](ContentBasedRouter.html)\n\n[Message Filter](Filter.html)\n\n[Dynamic Router](DynamicRouter.html)\n\n[Recipient List](RecipientList.html)\n\n[Splitter](Sequencer.html)\n\n[Aggregator](Aggregator.html)\n\n[Resequencer](Resequencer.html)\n\n[Composed Msg. Processor](DistributionAggregate.html)\n\n[Scatter-Gather](BroadcastAggregate.html)\n\n[Routing Slip](RoutingTable.html)\n\n[Process Manager](ProcessManager.html)\n\n[Message Broker](MessageBroker.html)\n\n[Message\nTransformation](MessageTransformationIntro.html)\n\n[Message Translator](MessageTranslator.html)\n\n[Envelope Wrapper](EnvelopeWrapper.html)\n\n[Content Enricher](DataEnricher.html)\n\n[Content Filter](ContentFilter.html)\n\n[Claim Check](StoreInLibrary.html)\n\n[Normalizer](Normalizer.html)\n\n[Canonical Data Model](CanonicalDataModel.html)\n\n[Messaging Endpoints](MessagingEndpointsIntro.html)\n\n[Message Endpoint](MessageEndpoint.html)\n\n[Messaging Gateway](MessagingGateway.html)\n\n[Messaging Mapper](MessagingMapper.html)\n\n[Transactional Client](TransactionalClient.html)\n\n[Polling Consumer](PollingConsumer.html)\n\n[Event-driven Consumer](EventDrivenConsumer.html)\n\n[Competing Consumers](CompetingConsumers.html)\n\n[Message Dispatcher](MessageDispatcher.html)\n\n[Selective Consumer](MessageSelector.html)\n\n[Durable Subscriber](DurableSubscription.html)\n\n[Idempotent Receiver](IdempotentReceiver.html)\n\n[Service Activator](MessagingAdapter.html)\n\n[Messaging Channels](MessagingChannelsIntro.html)\n\n[Message Channel](MessageChannel.html)\n\n[Point-to-Point Channel](PointToPointChannel.html)\n\n[Publish-Subscr. Channel](PublishSubscribeChannel.html)\n\n[Datatype Channel](DatatypeChannel.html)\n\n[Invalid Message Channel](InvalidMessageChannel.html)\n\n[Dead Letter Channel](DeadLetterChannel.html)\n\n[Guaranteed Delivery](GuaranteedMessaging.html)\n\n[Channel Adapter](ChannelAdapter.html)\n\n[Messaging Bridge](MessagingBridge.html)\n\n[Message Bus](MessageBus.html)\n\n[Systems Mgmt.](SystemManagementIntro.html)\n\n[Control Bus](ControlBus.html)\n\n[Detour](Detour.html)\n\n[Wire Tap](WireTap.html)\n\n[Message History](MessageHistory.html)\n\n[Message Store](MessageStore.html)\n\n[Smart Proxy](SmartProxy.html)\n\n[Test Message](TestMessage.html)\n\n[Channel Purger](ChannelPurger.html)\n\n- » [Read the latest in My Blog](/ramblings)\n- » [Get more insights from My Articles](/articles.html)\n- » [See me live in my Upcoming Talks](/talks)\n\nYou can reuse the following elements under the [Creative Commons Attribution](http://creativecommons.org/licenses/by/4.0/) license: pattern icon, pattern name, problem and solution statements (in bold), and the sketch. Other portions are protected by copyright.\n\n[Enterprise Integration Patterns](https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20)\nThe de-facto language for designing asynchronous, distributed systems. Over 100,000 copies sold.\n\n[The Software Architect Elevator](https://www.architectelevator.com/book)\n\n Rethink the role of architects as a connecting element across organizational layers. Acquire the technical, communication, and organizational skills to succeed in this new role.\n\n[Cloud Strategy](https://www.cloudstrategybook.com)\n\n Make your cloud migration a success by translating high-level goals into conscious decisions with well-understood trade-offs.\n\n[Platform Strategy](https://www.platformstrategybook.info)\n\n Platforms can boost innovation through harmonization, but they aren't easy to build. Learn from over a decade of designing and rolling out IT platforms.", "znaku_textu": 6046, "slov": 505, "odkazu": 108, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/Detour.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 14:56:09", "sha256": "d8c4b3ed6198c327bd5d47bb941cd81c56df9375d8964612e34c11a24db8f790", "hloubka": 3, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://creativecommons.org/licenses/by/4.0/", "https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "https://www.architectelevator.com/book", "https://www.cloudstrategybook.com/", "https://www.platformstrategybook.info/"]} {"url": "http://www.enterpriseintegrationpatterns.com/patterns/messaging/DistributionAggregate.html", "titulek": "Composed Message Processor - Enterprise Integration Patterns", "h1": "", "popis": "How can you maintain the overall message flow when processing a message consisting of multiple elements, each of which may require different processing?", "klicova_slova": "Composed Message Processor,integration, messaging, events, patterns, event-driven, coupling, eai, middleware, application integration, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns", "og:title": "Composed Message Processor - Enterprise Integration Patterns", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/DistributionAggregate.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/DistributionAggregate.gif"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Integration Pattern Language"}], "markdown": "Messaging Patterns\n\n[Messaging Patterns](index.html)\n\n- [Integration Styles](IntegrationStylesIntro.html)\n- [Messaging Systems](MessagingComponentsIntro.html)\n- [Messaging Channels](MessagingChannelsIntro.html)\n- [Message Construction](MessageConstructionIntro.html)\n- [Interlude: Simple Messaging](SimpleMessagingIntro.html)\n- [Message Routing](MessageRoutingIntro.html)\n- [Message Transformation](MessageTransformationIntro.html)\n- [Interlude: Composed Messaging](ComposedMessagingExample.html)\n- [Messaging Endpoints](MessagingEndpointsIntro.html)\n- [System Management](SystemManagementIntro.html)\n- Interlude: Systems Management Example\n- Integration Patterns in Practice\n- Concluding Remarks\n- Appendices\n\n| | Composed Message Processor[Messaging Patterns](index.html) » [Message Routing](MessageRoutingIntro.html) | [Contents](toc.html)[⇐ Prev](Resequencer.html)[Next ⇒](BroadcastAggregate.html) |\n| --- | --- | --- |\n\nThe order-processing example presented in the [*Content-Based Router*](ContentBasedRouter.html) and [*Splitter*](Sequencer.html) patterns processes an incoming order consisting of individual line items. Each line item requires an inventory check with the respective inventory system. After all items have been verified we want to pass the validated order message to the next processing step.\n\nHow can you maintain the overall message flow when processing a message consisting of multiple elements, each of which may require different processing?\n\nUse *Composed Message Processor* to process a composite message. The *Composed Message Processor* splits the message up, routes the sub-messages to the appropriate destinations and re-aggregates the responses back into a single message.\n\nThe *Composed Message Processor* uses an [*Aggregator*](Aggregator.html) to reconcile the requests that were dispatched to the multiple inventory systems. Each processing unit sends a response message to the aggregator stating the inventory on hand for the specified item. The Aggregator collects the individual responses and processes them based on a predefined algorithm as described under [*Aggregator*](Aggregator.html).\n\n...\nRead the entire pattern in the book [Enterprise Integration Patterns](/books1.html)\n\n**Related patterns:**\n\n[*Aggregator*](Aggregator.html), [*Content-Based Router*](ContentBasedRouter.html), [*Pipes and Filters*](PipesAndFilters.html), [*Splitter*](Sequencer.html)\n\n---\n\n## Integration Pattern Language\n\n[Message Construct.](MessageConstructionIntro.html)\n\n[Message](Message.html)\n\n[Command Message](CommandMessage.html)\n\n[Document Message](DocumentMessage.html)\n\n[Event Message](EventMessage.html)\n\n[Request-Reply](RequestReply.html)\n\n[Return Address](ReturnAddress.html)\n\n[Correlation Identifier](CorrelationIdentifier.html)\n\n[Message Sequence](MessageSequence.html)\n\n[Message Expiration](MessageExpiration.html)\n\n[Format Indicator](FormatIndicator.html)\n\n[Message Routing](MessageRoutingIntro.html)\n\n[Pipes-and-Filters](PipesAndFilters.html)\n\n[Message Router](MessageRouter.html)\n\n[Content-based Router](ContentBasedRouter.html)\n\n[Message Filter](Filter.html)\n\n[Dynamic Router](DynamicRouter.html)\n\n[Recipient List](RecipientList.html)\n\n[Splitter](Sequencer.html)\n\n[Aggregator](Aggregator.html)\n\n[Resequencer](Resequencer.html)\n\n[Composed Msg. Processor](DistributionAggregate.html)\n\n[Scatter-Gather](BroadcastAggregate.html)\n\n[Routing Slip](RoutingTable.html)\n\n[Process Manager](ProcessManager.html)\n\n[Message Broker](MessageBroker.html)\n\n[Message\nTransformation](MessageTransformationIntro.html)\n\n[Message Translator](MessageTranslator.html)\n\n[Envelope Wrapper](EnvelopeWrapper.html)\n\n[Content Enricher](DataEnricher.html)\n\n[Content Filter](ContentFilter.html)\n\n[Claim Check](StoreInLibrary.html)\n\n[Normalizer](Normalizer.html)\n\n[Canonical Data Model](CanonicalDataModel.html)\n\n[Messaging Endpoints](MessagingEndpointsIntro.html)\n\n[Message Endpoint](MessageEndpoint.html)\n\n[Messaging Gateway](MessagingGateway.html)\n\n[Messaging Mapper](MessagingMapper.html)\n\n[Transactional Client](TransactionalClient.html)\n\n[Polling Consumer](PollingConsumer.html)\n\n[Event-driven Consumer](EventDrivenConsumer.html)\n\n[Competing Consumers](CompetingConsumers.html)\n\n[Message Dispatcher](MessageDispatcher.html)\n\n[Selective Consumer](MessageSelector.html)\n\n[Durable Subscriber](DurableSubscription.html)\n\n[Idempotent Receiver](IdempotentReceiver.html)\n\n[Service Activator](MessagingAdapter.html)\n\n[Messaging Channels](MessagingChannelsIntro.html)\n\n[Message Channel](MessageChannel.html)\n\n[Point-to-Point Channel](PointToPointChannel.html)\n\n[Publish-Subscr. Channel](PublishSubscribeChannel.html)\n\n[Datatype Channel](DatatypeChannel.html)\n\n[Invalid Message Channel](InvalidMessageChannel.html)\n\n[Dead Letter Channel](DeadLetterChannel.html)\n\n[Guaranteed Delivery](GuaranteedMessaging.html)\n\n[Channel Adapter](ChannelAdapter.html)\n\n[Messaging Bridge](MessagingBridge.html)\n\n[Message Bus](MessageBus.html)\n\n[Systems Mgmt.](SystemManagementIntro.html)\n\n[Control Bus](ControlBus.html)\n\n[Detour](Detour.html)\n\n[Wire Tap](WireTap.html)\n\n[Message History](MessageHistory.html)\n\n[Message Store](MessageStore.html)\n\n[Smart Proxy](SmartProxy.html)\n\n[Test Message](TestMessage.html)\n\n[Channel Purger](ChannelPurger.html)\n\n- » [Read the latest in My Blog](/ramblings)\n- » [Get more insights from My Articles](/articles.html)\n- » [See me live in my Upcoming Talks](/talks)\n\nYou can reuse the following elements under the [Creative Commons Attribution](http://creativecommons.org/licenses/by/4.0/) license: pattern icon, pattern name, problem and solution statements (in bold), and the sketch. Other portions are protected by copyright.\n\n[Enterprise Integration Patterns](https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20)\nThe de-facto language for designing asynchronous, distributed systems. Over 100,000 copies sold.\n\n[The Software Architect Elevator](https://www.architectelevator.com/book)\n\n Rethink the role of architects as a connecting element across organizational layers. Acquire the technical, communication, and organizational skills to succeed in this new role.\n\n[Cloud Strategy](https://www.cloudstrategybook.com)\n\n Make your cloud migration a success by translating high-level goals into conscious decisions with well-understood trade-offs.\n\n[Platform Strategy](https://www.platformstrategybook.info)\n\n Platforms can boost innovation through harmonization, but they aren't easy to build. Learn from over a decade of designing and rolling out IT platforms.", "znaku_textu": 6357, "slov": 538, "odkazu": 108, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/DistributionAggregate.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 14:55:39", "sha256": "57a15e18261a4dfe75b10bf4b606473d80af4496ae2e23662e883e851edd5b12", "hloubka": 3, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://creativecommons.org/licenses/by/4.0/", "https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "https://www.architectelevator.com/book", "https://www.cloudstrategybook.com/", "https://www.platformstrategybook.info/"]} {"url": "http://www.enterpriseintegrationpatterns.com/patterns/messaging/DocumentMessage.html", "titulek": "Document Message - Enterprise Integration Patterns", "h1": "", "popis": "How can messaging be used to transfer data between applications?", "klicova_slova": "Document Message,integration, messaging, events, patterns, event-driven, coupling, eai, middleware, application integration, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns", "og:title": "Document Message - Enterprise Integration Patterns", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/DocumentMessage.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/DocumentMessageSolution.gif"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Integration Pattern Language"}], "markdown": "Messaging Patterns\n\n[Messaging Patterns](index.html)\n\n- [Integration Styles](IntegrationStylesIntro.html)\n- [Messaging Systems](MessagingComponentsIntro.html)\n- [Messaging Channels](MessagingChannelsIntro.html)\n- [Message Construction](MessageConstructionIntro.html)\n- [Interlude: Simple Messaging](SimpleMessagingIntro.html)\n- [Message Routing](MessageRoutingIntro.html)\n- [Message Transformation](MessageTransformationIntro.html)\n- [Interlude: Composed Messaging](ComposedMessagingExample.html)\n- [Messaging Endpoints](MessagingEndpointsIntro.html)\n- [System Management](SystemManagementIntro.html)\n- Interlude: Systems Management Example\n- Integration Patterns in Practice\n- Concluding Remarks\n- Appendices\n\n| | Document Message[Messaging Patterns](index.html) » [Message Construction](MessageConstructionIntro.html) | [Contents](toc.html)[⇐ Prev](CommandMessage.html)[Next ⇒](EventMessage.html) |\n| --- | --- | --- |\n\nAn application would like to transfer data to another application. It could do so using [*File Transfer*](FileTransferIntegration.html) or [*Shared Database*](SharedDataBaseIntegration.html), but those approaches have shortcomings. The transfer might work better using [*Messaging*](Messaging.html).\n\nHow can messaging be used to transfer data between applications?\n\nUse a *Document Message* to reliably transfer a data structure between applications.\n\nWhereas a [*Command Message*](CommandMessage.html) tells the receiver to invoke certain behavior, a *Document Message* just passes data and lets the receiver decide what, if anything, to do with the data. The data is a single unit of data, a single object or data structure which may decompose into smaller units.\n\n*Document Message*s can seem very much like [*Event Message*](EventMessage.html)s; the main difference is a matter of timing and content. The important part of a *Document Message* is its content, the document. Successfully transferring the document is important; the timing of when it is sent and received is less important. [*Guaranteed Delivery*](GuaranteedMessaging.html) may be a consideration; [*Message Expiration*](MessageExpiration.html) probably is not.\n\n...\nRead the entire pattern in the book [Enterprise Integration Patterns](/books1.html)\n\n**Related patterns:**\n\n[*Command Message*](CommandMessage.html), [*Remote Procedure Invocation*](EncapsulatedSynchronousIntegration.html), [*Event Message*](EventMessage.html), [*File Transfer*](FileTransferIntegration.html), [*Guaranteed Delivery*](GuaranteedMessaging.html), [*Message*](Message.html), [*Message Expiration*](MessageExpiration.html), [*Messaging*](Messaging.html), [*Point-to-Point Channel*](PointToPointChannel.html), [*Publish-Subscribe Channel*](PublishSubscribeChannel.html), [*Request-Reply*](RequestReply.html), [*Shared Database*](SharedDataBaseIntegration.html)\n\n---\n\n## Integration Pattern Language\n\n[Message Construct.](MessageConstructionIntro.html)\n\n[Message](Message.html)\n\n[Command Message](CommandMessage.html)\n\n[Document Message](DocumentMessage.html)\n\n[Event Message](EventMessage.html)\n\n[Request-Reply](RequestReply.html)\n\n[Return Address](ReturnAddress.html)\n\n[Correlation Identifier](CorrelationIdentifier.html)\n\n[Message Sequence](MessageSequence.html)\n\n[Message Expiration](MessageExpiration.html)\n\n[Format Indicator](FormatIndicator.html)\n\n[Message Routing](MessageRoutingIntro.html)\n\n[Pipes-and-Filters](PipesAndFilters.html)\n\n[Message Router](MessageRouter.html)\n\n[Content-based Router](ContentBasedRouter.html)\n\n[Message Filter](Filter.html)\n\n[Dynamic Router](DynamicRouter.html)\n\n[Recipient List](RecipientList.html)\n\n[Splitter](Sequencer.html)\n\n[Aggregator](Aggregator.html)\n\n[Resequencer](Resequencer.html)\n\n[Composed Msg. Processor](DistributionAggregate.html)\n\n[Scatter-Gather](BroadcastAggregate.html)\n\n[Routing Slip](RoutingTable.html)\n\n[Process Manager](ProcessManager.html)\n\n[Message Broker](MessageBroker.html)\n\n[Message\nTransformation](MessageTransformationIntro.html)\n\n[Message Translator](MessageTranslator.html)\n\n[Envelope Wrapper](EnvelopeWrapper.html)\n\n[Content Enricher](DataEnricher.html)\n\n[Content Filter](ContentFilter.html)\n\n[Claim Check](StoreInLibrary.html)\n\n[Normalizer](Normalizer.html)\n\n[Canonical Data Model](CanonicalDataModel.html)\n\n[Messaging Endpoints](MessagingEndpointsIntro.html)\n\n[Message Endpoint](MessageEndpoint.html)\n\n[Messaging Gateway](MessagingGateway.html)\n\n[Messaging Mapper](MessagingMapper.html)\n\n[Transactional Client](TransactionalClient.html)\n\n[Polling Consumer](PollingConsumer.html)\n\n[Event-driven Consumer](EventDrivenConsumer.html)\n\n[Competing Consumers](CompetingConsumers.html)\n\n[Message Dispatcher](MessageDispatcher.html)\n\n[Selective Consumer](MessageSelector.html)\n\n[Durable Subscriber](DurableSubscription.html)\n\n[Idempotent Receiver](IdempotentReceiver.html)\n\n[Service Activator](MessagingAdapter.html)\n\n[Messaging Channels](MessagingChannelsIntro.html)\n\n[Message Channel](MessageChannel.html)\n\n[Point-to-Point Channel](PointToPointChannel.html)\n\n[Publish-Subscr. Channel](PublishSubscribeChannel.html)\n\n[Datatype Channel](DatatypeChannel.html)\n\n[Invalid Message Channel](InvalidMessageChannel.html)\n\n[Dead Letter Channel](DeadLetterChannel.html)\n\n[Guaranteed Delivery](GuaranteedMessaging.html)\n\n[Channel Adapter](ChannelAdapter.html)\n\n[Messaging Bridge](MessagingBridge.html)\n\n[Message Bus](MessageBus.html)\n\n[Systems Mgmt.](SystemManagementIntro.html)\n\n[Control Bus](ControlBus.html)\n\n[Detour](Detour.html)\n\n[Wire Tap](WireTap.html)\n\n[Message History](MessageHistory.html)\n\n[Message Store](MessageStore.html)\n\n[Smart Proxy](SmartProxy.html)\n\n[Test Message](TestMessage.html)\n\n[Channel Purger](ChannelPurger.html)\n\n- » [Read the latest in My Blog](/ramblings)\n- » [Get more insights from My Articles](/articles.html)\n- » [See me live in my Upcoming Talks](/talks)\n\nYou can reuse the following elements under the [Creative Commons Attribution](http://creativecommons.org/licenses/by/4.0/) license: pattern icon, pattern name, problem and solution statements (in bold), and the sketch. Other portions are protected by copyright.\n\n[Enterprise Integration Patterns](https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20)\nThe de-facto language for designing asynchronous, distributed systems. Over 100,000 copies sold.\n\n[The Software Architect Elevator](https://www.architectelevator.com/book)\n\n Rethink the role of architects as a connecting element across organizational layers. Acquire the technical, communication, and organizational skills to succeed in this new role.\n\n[Cloud Strategy](https://www.cloudstrategybook.com)\n\n Make your cloud migration a success by translating high-level goals into conscious decisions with well-understood trade-offs.\n\n[Platform Strategy](https://www.platformstrategybook.info)\n\n Platforms can boost innovation through harmonization, but they aren't easy to build. Learn from over a decade of designing and rolling out IT platforms.", "znaku_textu": 6782, "slov": 575, "odkazu": 108, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/DocumentMessage.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 14:55:19", "sha256": "57602aee9cb4c73ce40968668db54354449db23152f4ab6cba77f4d5313c8ac7", "hloubka": 3, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://creativecommons.org/licenses/by/4.0/", "https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "https://www.architectelevator.com/book", "https://www.cloudstrategybook.com/", "https://www.platformstrategybook.info/"]} {"url": "http://www.enterpriseintegrationpatterns.com/patterns/messaging/DurableSubscription.html", "titulek": "Durable Subscriber - Enterprise Integration Patterns", "h1": "", "popis": "How can a subscriber avoid missing messages while it’s not listening for them?", "klicova_slova": "Durable Subscriber,integration, messaging, events, patterns, event-driven, coupling, eai, middleware, application integration, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns", "og:title": "Durable Subscriber - Enterprise Integration Patterns", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/DurableSubscription.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/DurableSubscriptionSolution.gif"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Integration Pattern Language"}], "markdown": "Messaging Patterns\n\n[Messaging Patterns](index.html)\n\n- [Integration Styles](IntegrationStylesIntro.html)\n- [Messaging Systems](MessagingComponentsIntro.html)\n- [Messaging Channels](MessagingChannelsIntro.html)\n- [Message Construction](MessageConstructionIntro.html)\n- [Interlude: Simple Messaging](SimpleMessagingIntro.html)\n- [Message Routing](MessageRoutingIntro.html)\n- [Message Transformation](MessageTransformationIntro.html)\n- [Interlude: Composed Messaging](ComposedMessagingExample.html)\n- [Messaging Endpoints](MessagingEndpointsIntro.html)\n- [System Management](SystemManagementIntro.html)\n- Interlude: Systems Management Example\n- Integration Patterns in Practice\n- Concluding Remarks\n- Appendices\n\n| | Durable Subscriber[Messaging Patterns](index.html) » [Messaging Endpoints](MessagingEndpointsIntro.html) | [Contents](toc.html)[⇐ Prev](MessageSelector.html)[Next ⇒](IdempotentReceiver.html) |\n| --- | --- | --- |\n\nAn application is receiving messages on a [*Publish-Subscribe Channel*](PublishSubscribeChannel.html).\n\nHow can a subscriber avoid missing messages while it’s not listening for them?\n\nUse a *Durable Subscriber* to make the messaging system save messages published while the subscriber is disconnected.\n\nA durable subscription saves messages for an inactive subscriber and delivers these saved messages when the subscriber reconnects. In this way, a subscriber will not lose any messages even though it disconnected. A durable subscription has no effect on the behavior of the subscriber or the messaging system while the subscriber is *active* (e.g., connected). A connected subscriber acts the same whether its subscription is durable or non-durable. The difference is in how the messaging system behaves when the subscriber is disconnected.\n\n...\nRead the entire pattern in the book [Enterprise Integration Patterns](/books1.html)\n\n**Related patterns:**\n\n[*Guaranteed Delivery*](GuaranteedMessaging.html), [*Message Expiration*](MessageExpiration.html), [*Point-to-Point Channel*](PointToPointChannel.html), [*Publish-Subscribe Channel*](PublishSubscribeChannel.html)\n\n---\n\n## Integration Pattern Language\n\n[Message Construct.](MessageConstructionIntro.html)\n\n[Message](Message.html)\n\n[Command Message](CommandMessage.html)\n\n[Document Message](DocumentMessage.html)\n\n[Event Message](EventMessage.html)\n\n[Request-Reply](RequestReply.html)\n\n[Return Address](ReturnAddress.html)\n\n[Correlation Identifier](CorrelationIdentifier.html)\n\n[Message Sequence](MessageSequence.html)\n\n[Message Expiration](MessageExpiration.html)\n\n[Format Indicator](FormatIndicator.html)\n\n[Message Routing](MessageRoutingIntro.html)\n\n[Pipes-and-Filters](PipesAndFilters.html)\n\n[Message Router](MessageRouter.html)\n\n[Content-based Router](ContentBasedRouter.html)\n\n[Message Filter](Filter.html)\n\n[Dynamic Router](DynamicRouter.html)\n\n[Recipient List](RecipientList.html)\n\n[Splitter](Sequencer.html)\n\n[Aggregator](Aggregator.html)\n\n[Resequencer](Resequencer.html)\n\n[Composed Msg. Processor](DistributionAggregate.html)\n\n[Scatter-Gather](BroadcastAggregate.html)\n\n[Routing Slip](RoutingTable.html)\n\n[Process Manager](ProcessManager.html)\n\n[Message Broker](MessageBroker.html)\n\n[Message\nTransformation](MessageTransformationIntro.html)\n\n[Message Translator](MessageTranslator.html)\n\n[Envelope Wrapper](EnvelopeWrapper.html)\n\n[Content Enricher](DataEnricher.html)\n\n[Content Filter](ContentFilter.html)\n\n[Claim Check](StoreInLibrary.html)\n\n[Normalizer](Normalizer.html)\n\n[Canonical Data Model](CanonicalDataModel.html)\n\n[Messaging Endpoints](MessagingEndpointsIntro.html)\n\n[Message Endpoint](MessageEndpoint.html)\n\n[Messaging Gateway](MessagingGateway.html)\n\n[Messaging Mapper](MessagingMapper.html)\n\n[Transactional Client](TransactionalClient.html)\n\n[Polling Consumer](PollingConsumer.html)\n\n[Event-driven Consumer](EventDrivenConsumer.html)\n\n[Competing Consumers](CompetingConsumers.html)\n\n[Message Dispatcher](MessageDispatcher.html)\n\n[Selective Consumer](MessageSelector.html)\n\n[Durable Subscriber](DurableSubscription.html)\n\n[Idempotent Receiver](IdempotentReceiver.html)\n\n[Service Activator](MessagingAdapter.html)\n\n[Messaging Channels](MessagingChannelsIntro.html)\n\n[Message Channel](MessageChannel.html)\n\n[Point-to-Point Channel](PointToPointChannel.html)\n\n[Publish-Subscr. Channel](PublishSubscribeChannel.html)\n\n[Datatype Channel](DatatypeChannel.html)\n\n[Invalid Message Channel](InvalidMessageChannel.html)\n\n[Dead Letter Channel](DeadLetterChannel.html)\n\n[Guaranteed Delivery](GuaranteedMessaging.html)\n\n[Channel Adapter](ChannelAdapter.html)\n\n[Messaging Bridge](MessagingBridge.html)\n\n[Message Bus](MessageBus.html)\n\n[Systems Mgmt.](SystemManagementIntro.html)\n\n[Control Bus](ControlBus.html)\n\n[Detour](Detour.html)\n\n[Wire Tap](WireTap.html)\n\n[Message History](MessageHistory.html)\n\n[Message Store](MessageStore.html)\n\n[Smart Proxy](SmartProxy.html)\n\n[Test Message](TestMessage.html)\n\n[Channel Purger](ChannelPurger.html)\n\n- » [Read the latest in My Blog](/ramblings)\n- » [Get more insights from My Articles](/articles.html)\n- » [See me live in my Upcoming Talks](/talks)\n\nYou can reuse the following elements under the [Creative Commons Attribution](http://creativecommons.org/licenses/by/4.0/) license: pattern icon, pattern name, problem and solution statements (in bold), and the sketch. Other portions are protected by copyright.\n\n[Enterprise Integration Patterns](https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20)\nThe de-facto language for designing asynchronous, distributed systems. Over 100,000 copies sold.\n\n[The Software Architect Elevator](https://www.architectelevator.com/book)\n\n Rethink the role of architects as a connecting element across organizational layers. Acquire the technical, communication, and organizational skills to succeed in this new role.\n\n[Cloud Strategy](https://www.cloudstrategybook.com)\n\n Make your cloud migration a success by translating high-level goals into conscious decisions with well-understood trade-offs.\n\n[Platform Strategy](https://www.platformstrategybook.info)\n\n Platforms can boost innovation through harmonization, but they aren't easy to build. Learn from over a decade of designing and rolling out IT platforms.", "znaku_textu": 6051, "slov": 490, "odkazu": 108, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/DurableSubscription.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 14:56:04", "sha256": "d8697f78f17e355548692ad6ed8459e2fe3932ab1119d7b613c029774e0f2139", "hloubka": 3, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://creativecommons.org/licenses/by/4.0/", "https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "https://www.architectelevator.com/book", "https://www.cloudstrategybook.com/", "https://www.platformstrategybook.info/"]} {"url": "http://www.enterpriseintegrationpatterns.com/patterns/messaging/DynamicRouter.html", "titulek": "Dynamic Router - Enterprise Integration Patterns", "h1": "", "popis": "How can you avoid the dependency of the router on all possible destinations while maintaining its efficiency?", "klicova_slova": "Dynamic Router,integration, messaging, events, patterns, event-driven, coupling, eai, middleware, application integration, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns", "og:title": "Dynamic Router - Enterprise Integration Patterns", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/DynamicRouter.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/DynamicRouter.gif"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Integration Pattern Language"}], "markdown": "Messaging Patterns\n\n[Messaging Patterns](index.html)\n\n- [Integration Styles](IntegrationStylesIntro.html)\n- [Messaging Systems](MessagingComponentsIntro.html)\n- [Messaging Channels](MessagingChannelsIntro.html)\n- [Message Construction](MessageConstructionIntro.html)\n- [Interlude: Simple Messaging](SimpleMessagingIntro.html)\n- [Message Routing](MessageRoutingIntro.html)\n- [Message Transformation](MessageTransformationIntro.html)\n- [Interlude: Composed Messaging](ComposedMessagingExample.html)\n- [Messaging Endpoints](MessagingEndpointsIntro.html)\n- [System Management](SystemManagementIntro.html)\n- Interlude: Systems Management Example\n- Integration Patterns in Practice\n- Concluding Remarks\n- Appendices\n\n| | Dynamic Router[Messaging Patterns](index.html) » [Message Routing](MessageRoutingIntro.html) | [Contents](toc.html)[⇐ Prev](Filter.html)[Next ⇒](RecipientList.html) |\n| --- | --- | --- |\n\nYou are using a [*Message Router*](MessageRouter.html) to route messages between multiple destinations.\n\nHow can you avoid the dependency of the router on all possible destinations while maintaining its efficiency?\n\nUse a *Dynamic Router*, a Router that can self-configure based on special configuration messages from participating destinations.\n\nBesides the usual input and output channels the *Dynamic Router* uses an additional *control channel*. 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.\n\n...\nRead the entire pattern in the book [Enterprise Integration Patterns](/books1.html)\n\n**Related patterns:**\n\n[*Content-Based Router*](ContentBasedRouter.html), [*Message Filter*](Filter.html), [*Message Router*](MessageRouter.html), [*Publish-Subscribe Channel*](PublishSubscribeChannel.html), [*Recipient List*](RecipientList.html), [*Routing Slip*](RoutingTable.html)\n\n---\n\n## Integration Pattern Language\n\n[Message Construct.](MessageConstructionIntro.html)\n\n[Message](Message.html)\n\n[Command Message](CommandMessage.html)\n\n[Document Message](DocumentMessage.html)\n\n[Event Message](EventMessage.html)\n\n[Request-Reply](RequestReply.html)\n\n[Return Address](ReturnAddress.html)\n\n[Correlation Identifier](CorrelationIdentifier.html)\n\n[Message Sequence](MessageSequence.html)\n\n[Message Expiration](MessageExpiration.html)\n\n[Format Indicator](FormatIndicator.html)\n\n[Message Routing](MessageRoutingIntro.html)\n\n[Pipes-and-Filters](PipesAndFilters.html)\n\n[Message Router](MessageRouter.html)\n\n[Content-based Router](ContentBasedRouter.html)\n\n[Message Filter](Filter.html)\n\n[Dynamic Router](DynamicRouter.html)\n\n[Recipient List](RecipientList.html)\n\n[Splitter](Sequencer.html)\n\n[Aggregator](Aggregator.html)\n\n[Resequencer](Resequencer.html)\n\n[Composed Msg. Processor](DistributionAggregate.html)\n\n[Scatter-Gather](BroadcastAggregate.html)\n\n[Routing Slip](RoutingTable.html)\n\n[Process Manager](ProcessManager.html)\n\n[Message Broker](MessageBroker.html)\n\n[Message\nTransformation](MessageTransformationIntro.html)\n\n[Message Translator](MessageTranslator.html)\n\n[Envelope Wrapper](EnvelopeWrapper.html)\n\n[Content Enricher](DataEnricher.html)\n\n[Content Filter](ContentFilter.html)\n\n[Claim Check](StoreInLibrary.html)\n\n[Normalizer](Normalizer.html)\n\n[Canonical Data Model](CanonicalDataModel.html)\n\n[Messaging Endpoints](MessagingEndpointsIntro.html)\n\n[Message Endpoint](MessageEndpoint.html)\n\n[Messaging Gateway](MessagingGateway.html)\n\n[Messaging Mapper](MessagingMapper.html)\n\n[Transactional Client](TransactionalClient.html)\n\n[Polling Consumer](PollingConsumer.html)\n\n[Event-driven Consumer](EventDrivenConsumer.html)\n\n[Competing Consumers](CompetingConsumers.html)\n\n[Message Dispatcher](MessageDispatcher.html)\n\n[Selective Consumer](MessageSelector.html)\n\n[Durable Subscriber](DurableSubscription.html)\n\n[Idempotent Receiver](IdempotentReceiver.html)\n\n[Service Activator](MessagingAdapter.html)\n\n[Messaging Channels](MessagingChannelsIntro.html)\n\n[Message Channel](MessageChannel.html)\n\n[Point-to-Point Channel](PointToPointChannel.html)\n\n[Publish-Subscr. Channel](PublishSubscribeChannel.html)\n\n[Datatype Channel](DatatypeChannel.html)\n\n[Invalid Message Channel](InvalidMessageChannel.html)\n\n[Dead Letter Channel](DeadLetterChannel.html)\n\n[Guaranteed Delivery](GuaranteedMessaging.html)\n\n[Channel Adapter](ChannelAdapter.html)\n\n[Messaging Bridge](MessagingBridge.html)\n\n[Message Bus](MessageBus.html)\n\n[Systems Mgmt.](SystemManagementIntro.html)\n\n[Control Bus](ControlBus.html)\n\n[Detour](Detour.html)\n\n[Wire Tap](WireTap.html)\n\n[Message History](MessageHistory.html)\n\n[Message Store](MessageStore.html)\n\n[Smart Proxy](SmartProxy.html)\n\n[Test Message](TestMessage.html)\n\n[Channel Purger](ChannelPurger.html)\n\n- » [Read the latest in My Blog](/ramblings)\n- » [Get more insights from My Articles](/articles.html)\n- » [See me live in my Upcoming Talks](/talks)\n\nYou can reuse the following elements under the [Creative Commons Attribution](http://creativecommons.org/licenses/by/4.0/) license: pattern icon, pattern name, problem and solution statements (in bold), and the sketch. Other portions are protected by copyright.\n\n[Enterprise Integration Patterns](https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20)\nThe de-facto language for designing asynchronous, distributed systems. Over 100,000 copies sold.\n\n[The Software Architect Elevator](https://www.architectelevator.com/book)\n\n Rethink the role of architects as a connecting element across organizational layers. Acquire the technical, communication, and organizational skills to succeed in this new role.\n\n[Cloud Strategy](https://www.cloudstrategybook.com)\n\n Make your cloud migration a success by translating high-level goals into conscious decisions with well-understood trade-offs.\n\n[Platform Strategy](https://www.platformstrategybook.info)\n\n Platforms can boost innovation through harmonization, but they aren't easy to build. Learn from over a decade of designing and rolling out IT platforms.", "znaku_textu": 6231, "slov": 523, "odkazu": 108, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/DynamicRouter.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 14:55:34", "sha256": "d3b57d8e01cd6bf5adb7a12af887562bc6635a806d26cf8a71a215714d474922", "hloubka": 3, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://creativecommons.org/licenses/by/4.0/", "https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "https://www.architectelevator.com/book", "https://www.cloudstrategybook.com/", "https://www.platformstrategybook.info/"]} {"url": "http://www.enterpriseintegrationpatterns.com/patterns/messaging/EncapsulatedSynchronousIntegration.html", "titulek": "Remote Procedure Invocation - Enterprise Integration Patterns", "h1": "", "popis": "How can I integrate multiple applications so that they work together and can exchange information?", "klicova_slova": "Remote Procedure Invocation,integration, messaging, events, patterns, event-driven, coupling, eai, middleware, application integration, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns", "og:title": "Remote Procedure Invocation - Enterprise Integration Patterns", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/EncapsulatedSynchronousIntegration.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/EncapsulatedSynchronousIntegration.gif"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Integration Pattern Language"}], "markdown": "| | Remote Procedure Invocation[Messaging Patterns](index.html) » [Integration Styles](IntegrationStylesIntro.html) | [Contents](toc.html)[⇐ Prev](SharedDataBaseIntegration.html)[Next ⇒](Messaging.html) |\n| --- | --- | --- |\n\nAn enterprise has multiple applications that are being built independently, with different languages and platforms. The enterprise needs to share data and processes in a responsive way.\n\nHow can I integrate multiple applications so that they work together and can exchange information?\n\nDevelop each application as a large-scale object or component with encapsulated data. Provide an interface to allow other applications to interact with the running application.\n\n*Remote Procedure Invocation* applies the principle of encapsulation to integrating\napplications. If an application needs some information that is owned\nby another application, it asks that application directly. If one\napplication needs to modify the data of another, then it does so by making a call\nto the other application. Each application can maintain the\nintegrity of the data it owns. Furthermore, each application can alter\nits internal data without having every other application be\naffected.\n\nAlthough the encapsulation helps reduce the coupling of the\napplications, by eliminating a large shared data structure, the\napplications are still fairly tightly coupled together. The remote\ncalls each system supports tends to tie the different systems into a\ngrowing knot. In particular, sequencing--doing certain things in a\nparticular order--can make it difficult to change systems\nindependently. Often these become problems because issues that aren't\nsignificant within a single application become so when integrating\napplications. People often design the integration the way they would\ndesign a single application, unaware that the rules change.\n\n...\nRead the entire pattern in the book [Enterprise Integration Patterns](/books1.html)\n\n**Related patterns:**\n\n[*File Transfer*](FileTransferIntegration.html), [*Messaging*](Messaging.html), [*Shared Database*](SharedDataBaseIntegration.html)\n\n---\n\n## Integration Pattern Language\n\n[Message Construct.](MessageConstructionIntro.html)\n\n[Message](Message.html)\n\n[Command Message](CommandMessage.html)\n\n[Document Message](DocumentMessage.html)\n\n[Event Message](EventMessage.html)\n\n[Request-Reply](RequestReply.html)\n\n[Return Address](ReturnAddress.html)\n\n[Correlation Identifier](CorrelationIdentifier.html)\n\n[Message Sequence](MessageSequence.html)\n\n[Message Expiration](MessageExpiration.html)\n\n[Format Indicator](FormatIndicator.html)\n\n[Message Routing](MessageRoutingIntro.html)\n\n[Pipes-and-Filters](PipesAndFilters.html)\n\n[Message Router](MessageRouter.html)\n\n[Content-based Router](ContentBasedRouter.html)\n\n[Message Filter](Filter.html)\n\n[Dynamic Router](DynamicRouter.html)\n\n[Recipient List](RecipientList.html)\n\n[Splitter](Sequencer.html)\n\n[Aggregator](Aggregator.html)\n\n[Resequencer](Resequencer.html)\n\n[Composed Msg. Processor](DistributionAggregate.html)\n\n[Scatter-Gather](BroadcastAggregate.html)\n\n[Routing Slip](RoutingTable.html)\n\n[Process Manager](ProcessManager.html)\n\n[Message Broker](MessageBroker.html)\n\n[Message\nTransformation](MessageTransformationIntro.html)\n\n[Message Translator](MessageTranslator.html)\n\n[Envelope Wrapper](EnvelopeWrapper.html)\n\n[Content Enricher](DataEnricher.html)\n\n[Content Filter](ContentFilter.html)\n\n[Claim Check](StoreInLibrary.html)\n\n[Normalizer](Normalizer.html)\n\n[Canonical Data Model](CanonicalDataModel.html)\n\n[Messaging Endpoints](MessagingEndpointsIntro.html)\n\n[Message Endpoint](MessageEndpoint.html)\n\n[Messaging Gateway](MessagingGateway.html)\n\n[Messaging Mapper](MessagingMapper.html)\n\n[Transactional Client](TransactionalClient.html)\n\n[Polling Consumer](PollingConsumer.html)\n\n[Event-driven Consumer](EventDrivenConsumer.html)\n\n[Competing Consumers](CompetingConsumers.html)\n\n[Message Dispatcher](MessageDispatcher.html)\n\n[Selective Consumer](MessageSelector.html)\n\n[Durable Subscriber](DurableSubscription.html)\n\n[Idempotent Receiver](IdempotentReceiver.html)\n\n[Service Activator](MessagingAdapter.html)\n\n[Messaging Channels](MessagingChannelsIntro.html)\n\n[Message Channel](MessageChannel.html)\n\n[Point-to-Point Channel](PointToPointChannel.html)\n\n[Publish-Subscr. Channel](PublishSubscribeChannel.html)\n\n[Datatype Channel](DatatypeChannel.html)\n\n[Invalid Message Channel](InvalidMessageChannel.html)\n\n[Dead Letter Channel](DeadLetterChannel.html)\n\n[Guaranteed Delivery](GuaranteedMessaging.html)\n\n[Channel Adapter](ChannelAdapter.html)\n\n[Messaging Bridge](MessagingBridge.html)\n\n[Message Bus](MessageBus.html)\n\n[Systems Mgmt.](SystemManagementIntro.html)\n\n[Control Bus](ControlBus.html)\n\n[Detour](Detour.html)\n\n[Wire Tap](WireTap.html)\n\n[Message History](MessageHistory.html)\n\n[Message Store](MessageStore.html)\n\n[Smart Proxy](SmartProxy.html)\n\n[Test Message](TestMessage.html)\n\n[Channel Purger](ChannelPurger.html)", "znaku_textu": 4810, "slov": 414, "odkazu": 108, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 14:54:58", "sha256": "f88407ac27ec387f1ea39207ad6a549484d3a8189782f82abbb5e3d62b563716", "hloubka": 3, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://creativecommons.org/licenses/by/4.0/", "https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "https://www.architectelevator.com/book", "https://www.cloudstrategybook.com/", "https://www.platformstrategybook.info/"]} {"url": "http://www.enterpriseintegrationpatterns.com/patterns/messaging/EnvelopeWrapper.html", "titulek": "Envelope Wrapper - Enterprise Integration Patterns", "h1": "", "popis": "How can existing systems participate in a messaging exchange that places specific requirements on the message format, such as message header fields or encryption?", "klicova_slova": "Envelope Wrapper,integration, messaging, events, patterns, event-driven, coupling, eai, middleware, application integration, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns", "og:title": "Envelope Wrapper - Enterprise Integration Patterns", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/EnvelopeWrapper.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/Wrapper.gif"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Integration Pattern Language"}], "markdown": "Messaging Patterns\n\n[Messaging Patterns](index.html)\n\n- [Integration Styles](IntegrationStylesIntro.html)\n- [Messaging Systems](MessagingComponentsIntro.html)\n- [Messaging Channels](MessagingChannelsIntro.html)\n- [Message Construction](MessageConstructionIntro.html)\n- [Interlude: Simple Messaging](SimpleMessagingIntro.html)\n- [Message Routing](MessageRoutingIntro.html)\n- [Message Transformation](MessageTransformationIntro.html)\n- [Interlude: Composed Messaging](ComposedMessagingExample.html)\n- [Messaging Endpoints](MessagingEndpointsIntro.html)\n- [System Management](SystemManagementIntro.html)\n- Interlude: Systems Management Example\n- Integration Patterns in Practice\n- Concluding Remarks\n- Appendices\n\n| | Envelope Wrapper[Messaging Patterns](index.html) » [Message Transformation](MessageTransformationIntro.html) | [Contents](toc.html)[⇐ Prev](MessageTransformationIntro.html)[Next ⇒](DataEnricher.html) |\n| --- | --- | --- |\n\nMost messaging systems divide the message data into a header and a body. The header contains fields that are used by the messaging infrastructure to manage the flow of messages. However, most endpoint systems that participate in the integration solution generally are not aware of these extra data elements. In some cases, systems may even consider these fields as erroneous because they do not match the message format used by the application. On the other hand, the messaging components that route the messages between the applications may require the header fields and would consider a message invalid if it does not contain the proper header fields.\n\nHow can existing systems participate in a messaging exchange that places specific requirements on the message format, such as message header fields or encryption?\n\nUse a *Envelope Wrapper* to wrap application data inside an envelope that is compliant with the messaging infrastructure. Unwrap the message when it arrives at the destination.\n\nThe process of wrapping and unwrapping a message consists of five steps:\n\n...\nRead the entire pattern in the book [Enterprise Integration Patterns](/books1.html)\n\n**Related patterns:**\n\n[*Content-Based Router*](ContentBasedRouter.html), [*Content Enricher*](DataEnricher.html), [*Messaging Bridge*](MessagingBridge.html), [*Pipes and Filters*](PipesAndFilters.html)\n\n---\n\n## Integration Pattern Language\n\n[Message Construct.](MessageConstructionIntro.html)\n\n[Message](Message.html)\n\n[Command Message](CommandMessage.html)\n\n[Document Message](DocumentMessage.html)\n\n[Event Message](EventMessage.html)\n\n[Request-Reply](RequestReply.html)\n\n[Return Address](ReturnAddress.html)\n\n[Correlation Identifier](CorrelationIdentifier.html)\n\n[Message Sequence](MessageSequence.html)\n\n[Message Expiration](MessageExpiration.html)\n\n[Format Indicator](FormatIndicator.html)\n\n[Message Routing](MessageRoutingIntro.html)\n\n[Pipes-and-Filters](PipesAndFilters.html)\n\n[Message Router](MessageRouter.html)\n\n[Content-based Router](ContentBasedRouter.html)\n\n[Message Filter](Filter.html)\n\n[Dynamic Router](DynamicRouter.html)\n\n[Recipient List](RecipientList.html)\n\n[Splitter](Sequencer.html)\n\n[Aggregator](Aggregator.html)\n\n[Resequencer](Resequencer.html)\n\n[Composed Msg. Processor](DistributionAggregate.html)\n\n[Scatter-Gather](BroadcastAggregate.html)\n\n[Routing Slip](RoutingTable.html)\n\n[Process Manager](ProcessManager.html)\n\n[Message Broker](MessageBroker.html)\n\n[Message\nTransformation](MessageTransformationIntro.html)\n\n[Message Translator](MessageTranslator.html)\n\n[Envelope Wrapper](EnvelopeWrapper.html)\n\n[Content Enricher](DataEnricher.html)\n\n[Content Filter](ContentFilter.html)\n\n[Claim Check](StoreInLibrary.html)\n\n[Normalizer](Normalizer.html)\n\n[Canonical Data Model](CanonicalDataModel.html)\n\n[Messaging Endpoints](MessagingEndpointsIntro.html)\n\n[Message Endpoint](MessageEndpoint.html)\n\n[Messaging Gateway](MessagingGateway.html)\n\n[Messaging Mapper](MessagingMapper.html)\n\n[Transactional Client](TransactionalClient.html)\n\n[Polling Consumer](PollingConsumer.html)\n\n[Event-driven Consumer](EventDrivenConsumer.html)\n\n[Competing Consumers](CompetingConsumers.html)\n\n[Message Dispatcher](MessageDispatcher.html)\n\n[Selective Consumer](MessageSelector.html)\n\n[Durable Subscriber](DurableSubscription.html)\n\n[Idempotent Receiver](IdempotentReceiver.html)\n\n[Service Activator](MessagingAdapter.html)\n\n[Messaging Channels](MessagingChannelsIntro.html)\n\n[Message Channel](MessageChannel.html)\n\n[Point-to-Point Channel](PointToPointChannel.html)\n\n[Publish-Subscr. Channel](PublishSubscribeChannel.html)\n\n[Datatype Channel](DatatypeChannel.html)\n\n[Invalid Message Channel](InvalidMessageChannel.html)\n\n[Dead Letter Channel](DeadLetterChannel.html)\n\n[Guaranteed Delivery](GuaranteedMessaging.html)\n\n[Channel Adapter](ChannelAdapter.html)\n\n[Messaging Bridge](MessagingBridge.html)\n\n[Message Bus](MessageBus.html)\n\n[Systems Mgmt.](SystemManagementIntro.html)\n\n[Control Bus](ControlBus.html)\n\n[Detour](Detour.html)\n\n[Wire Tap](WireTap.html)\n\n[Message History](MessageHistory.html)\n\n[Message Store](MessageStore.html)\n\n[Smart Proxy](SmartProxy.html)\n\n[Test Message](TestMessage.html)\n\n[Channel Purger](ChannelPurger.html)\n\n- » [Read the latest in My Blog](/ramblings)\n- » [Get more insights from My Articles](/articles.html)\n- » [See me live in my Upcoming Talks](/talks)\n\nYou can reuse the following elements under the [Creative Commons Attribution](http://creativecommons.org/licenses/by/4.0/) license: pattern icon, pattern name, problem and solution statements (in bold), and the sketch. Other portions are protected by copyright.\n\n[Enterprise Integration Patterns](https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20)\nThe de-facto language for designing asynchronous, distributed systems. Over 100,000 copies sold.\n\n[The Software Architect Elevator](https://www.architectelevator.com/book)\n\n Rethink the role of architects as a connecting element across organizational layers. Acquire the technical, communication, and organizational skills to succeed in this new role.\n\n[Cloud Strategy](https://www.cloudstrategybook.com)\n\n Make your cloud migration a success by translating high-level goals into conscious decisions with well-understood trade-offs.\n\n[Platform Strategy](https://www.platformstrategybook.info)\n\n Platforms can boost innovation through harmonization, but they aren't easy to build. Learn from over a decade of designing and rolling out IT platforms.", "znaku_textu": 6256, "slov": 533, "odkazu": 108, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/EnvelopeWrapper.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 14:55:45", "sha256": "57e50ee6fbc76b0c9f124fba57e677541bc7c2366d0ec45fd76ff198ff1e483d", "hloubka": 3, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://creativecommons.org/licenses/by/4.0/", "https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "https://www.architectelevator.com/book", "https://www.cloudstrategybook.com/", "https://www.platformstrategybook.info/"]} {"url": "http://www.enterpriseintegrationpatterns.com/patterns/messaging/EventDrivenConsumer.html", "titulek": "Event-Driven Consumer - Enterprise Integration Patterns", "h1": "", "popis": "How can an application automatically consume messages as they become available?", "klicova_slova": "Event-Driven Consumer,integration, messaging, events, patterns, event-driven, coupling, eai, middleware, application integration, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns", "og:title": "Event-Driven Consumer - Enterprise Integration Patterns", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/EventDrivenConsumer.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/EventDrivenConsumerSolution.gif"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Example: RabbitMQ ConsumerNEW"}, {"uroven": 2, "text": "Integration Pattern Language"}], "markdown": "| | Event-Driven Consumer[Messaging Patterns](index.html) » [Messaging Endpoints](MessagingEndpointsIntro.html) | [Contents](toc.html)[⇐ Prev](PollingConsumer.html)[Next ⇒](CompetingConsumers.html) |\n| --- | --- | --- |\n\nAn application needs to consume [*Message*](Message.html)s as soon as they’re delivered.\n\nHow can an application automatically consume messages as they become available?\n\nThe application should use an *Event-Driven Consumer*, one that is automatically handed messages as they’re delivered on the channel.\n\nThis is also known as an asynchronous receiver, because the receiver does not have a running thread until a callback thread delivers a message. We call it an *Event-Driven Consumer* because the receiver acts like the message delivery is an event that triggers the receiver into action.\n\nAn *Event-Driven Consumer* is an object that is invoked by the messaging system when a message arrives on the consumer’s channel. The consumer passes the message to the application through a callback in the application’s API. (How the messaging system gets the message is implementation-specific and may or may not be event-driven. All the consumer knows is that it can sit dormant with no active threads until it gets invoked by the messaging system passing it a message.)\n\n...\nRead the entire pattern in the book [Enterprise Integration Patterns](/books1.html)\n\n## Example: RabbitMQ Consumer[NEW](/ramblings/eip1_examples_updated.html)\n\n[RabbitMQ](http://www.rabbitmq.com) consumers are by default event-driven. When consuming messages off a Channel, you have to provide an implementation of the Consumer interface. The following code example sets up a very simple consumer that simply prints incoming messages as strings:\n\n```\nConsumer consumer = new DefaultConsumer(channel) {\n @Override\n public void handleDelivery(\n String consumerTag, \n Envelope envelope, \n AMQP.BasicProperties properties, \n byte[] body) throws IOException {\n String message = new String(body, \"UTF-8\");\n System.out.println(\"Received '\" + message + \"'\");\n }\n};\n\nboolean autoAck = true;\nchannel.basicConsume(queueName, autoAck, consumer);\t\n```\n\nThis implementation is not a [*Transactional Client*](TransactionalClient.html) because the client acknowledges messages automatically on receipt but before processing.\n\nThe complete source code for this example can be found on [Github](https://github.com/spac3lord/eip/tree/master/Rabbit/src).\n\n**Related patterns:**\n\n[*Competing Consumers*](CompetingConsumers.html), [*Durable Subscriber*](DurableSubscription.html), [*Message*](Message.html), [*Message Channel*](MessageChannel.html), [*Message Dispatcher*](MessageDispatcher.html), [*Selective Consumer*](MessageSelector.html), [*Polling Consumer*](PollingConsumer.html), [*Transactional Client*](TransactionalClient.html)\n\n---\n\n## Integration Pattern Language\n\n[Message Construct.](MessageConstructionIntro.html)\n\n[Message](Message.html)\n\n[Command Message](CommandMessage.html)\n\n[Document Message](DocumentMessage.html)\n\n[Event Message](EventMessage.html)\n\n[Request-Reply](RequestReply.html)\n\n[Return Address](ReturnAddress.html)\n\n[Correlation Identifier](CorrelationIdentifier.html)\n\n[Message Sequence](MessageSequence.html)\n\n[Message Expiration](MessageExpiration.html)\n\n[Format Indicator](FormatIndicator.html)\n\n[Message Routing](MessageRoutingIntro.html)\n\n[Pipes-and-Filters](PipesAndFilters.html)\n\n[Message Router](MessageRouter.html)\n\n[Content-based Router](ContentBasedRouter.html)\n\n[Message Filter](Filter.html)\n\n[Dynamic Router](DynamicRouter.html)\n\n[Recipient List](RecipientList.html)\n\n[Splitter](Sequencer.html)\n\n[Aggregator](Aggregator.html)\n\n[Resequencer](Resequencer.html)\n\n[Composed Msg. Processor](DistributionAggregate.html)\n\n[Scatter-Gather](BroadcastAggregate.html)\n\n[Routing Slip](RoutingTable.html)\n\n[Process Manager](ProcessManager.html)\n\n[Message Broker](MessageBroker.html)\n\n[Message\nTransformation](MessageTransformationIntro.html)\n\n[Message Translator](MessageTranslator.html)\n\n[Envelope Wrapper](EnvelopeWrapper.html)\n\n[Content Enricher](DataEnricher.html)\n\n[Content Filter](ContentFilter.html)\n\n[Claim Check](StoreInLibrary.html)\n\n[Normalizer](Normalizer.html)\n\n[Canonical Data Model](CanonicalDataModel.html)\n\n[Messaging Endpoints](MessagingEndpointsIntro.html)\n\n[Message Endpoint](MessageEndpoint.html)\n\n[Messaging Gateway](MessagingGateway.html)\n\n[Messaging Mapper](MessagingMapper.html)\n\n[Transactional Client](TransactionalClient.html)\n\n[Polling Consumer](PollingConsumer.html)\n\n[Event-driven Consumer](EventDrivenConsumer.html)\n\n[Competing Consumers](CompetingConsumers.html)\n\n[Message Dispatcher](MessageDispatcher.html)\n\n[Selective Consumer](MessageSelector.html)\n\n[Durable Subscriber](DurableSubscription.html)\n\n[Idempotent Receiver](IdempotentReceiver.html)\n\n[Service Activator](MessagingAdapter.html)\n\n[Messaging Channels](MessagingChannelsIntro.html)\n\n[Message Channel](MessageChannel.html)\n\n[Point-to-Point Channel](PointToPointChannel.html)\n\n[Publish-Subscr. Channel](PublishSubscribeChannel.html)\n\n[Datatype Channel](DatatypeChannel.html)\n\n[Invalid Message Channel](InvalidMessageChannel.html)\n\n[Dead Letter Channel](DeadLetterChannel.html)\n\n[Guaranteed Delivery](GuaranteedMessaging.html)\n\n[Channel Adapter](ChannelAdapter.html)\n\n[Messaging Bridge](MessagingBridge.html)\n\n[Message Bus](MessageBus.html)\n\n[Systems Mgmt.](SystemManagementIntro.html)\n\n[Control Bus](ControlBus.html)\n\n[Detour](Detour.html)\n\n[Wire Tap](WireTap.html)\n\n[Message History](MessageHistory.html)\n\n[Message Store](MessageStore.html)\n\n[Smart Proxy](SmartProxy.html)\n\n[Test Message](TestMessage.html)\n\n[Channel Purger](ChannelPurger.html)", "znaku_textu": 5516, "slov": 487, "odkazu": 111, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/EventDrivenConsumer.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 14:56:00", "sha256": "bdd22eb6db0ea6606a9ff53c93d17750b2977ec7f0a25120467a49c532c446d0", "hloubka": 3, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://www.rabbitmq.com/", "https://github.com/spac3lord/eip/tree/master/Rabbit/src", "http://creativecommons.org/licenses/by/4.0/", "https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "https://www.architectelevator.com/book", "https://www.cloudstrategybook.com/", "https://www.platformstrategybook.info/"]} {"url": "http://www.enterpriseintegrationpatterns.com/patterns/messaging/EventMessage.html", "titulek": "Event Message - Enterprise Integration Patterns", "h1": "", "popis": "How can messaging be used to transmit events from one application to another?", "klicova_slova": "Event Message,integration, messaging, events, patterns, event-driven, coupling, eai, middleware, application integration, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns", "og:title": "Event Message - Enterprise Integration Patterns", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/EventMessage.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/EventMessageSolution.gif"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Integration Pattern Language"}], "markdown": "Messaging Patterns\n\n[Messaging Patterns](index.html)\n\n- [Integration Styles](IntegrationStylesIntro.html)\n- [Messaging Systems](MessagingComponentsIntro.html)\n- [Messaging Channels](MessagingChannelsIntro.html)\n- [Message Construction](MessageConstructionIntro.html)\n- [Interlude: Simple Messaging](SimpleMessagingIntro.html)\n- [Message Routing](MessageRoutingIntro.html)\n- [Message Transformation](MessageTransformationIntro.html)\n- [Interlude: Composed Messaging](ComposedMessagingExample.html)\n- [Messaging Endpoints](MessagingEndpointsIntro.html)\n- [System Management](SystemManagementIntro.html)\n- Interlude: Systems Management Example\n- Integration Patterns in Practice\n- Concluding Remarks\n- Appendices\n\n| | Event Message[Messaging Patterns](index.html) » [Message Construction](MessageConstructionIntro.html) | [Contents](toc.html)[⇐ Prev](DocumentMessage.html)[Next ⇒](RequestReply.html) |\n| --- | --- | --- |\n\nSeveral applications would like to use event-notification to coordinate their actions, and would like to use [*Messaging*](Messaging.html) to communicate those events.\n\nHow can messaging be used to transmit events from one application to another?\n\nUse an *Event Message* for reliable, asynchronous event notification between applications.\n\nWhen a subject has an event to announce, it will create an event object, wrap it in a message, and send it on a channel. The observer will receive the event message, get the event, and process it. Messaging does not change the event notification, just makes sure that the notification gets to the observer.\n\nThe difference between an *Event Message* and a [*Document Message*](DocumentMessage.html) is a matter of timing and content. An event’s contents is typically less important. Many events are empty; their mere occurrance tells the observer to react. An event’s timing is very important; the subject should issue an event as soon as a change occurs, and the observer should process it quickly while it’s still relevant. [*Guaranteed Delivery*](GuaranteedMessaging.html) is usually not very helpful with events because they’re frequent and need to be delivered quickly. [*Message Expiration*](MessageExpiration.html) can be very helpful to make sure that an event is processed quickly or not at all.\n\n...\nRead the entire pattern in the book [Enterprise Integration Patterns](/books1.html)\n\n**Related patterns:**\n\n[*Command Message*](CommandMessage.html), [*Document Message*](DocumentMessage.html), [*Durable Subscriber*](DurableSubscription.html), [*Remote Procedure Invocation*](EncapsulatedSynchronousIntegration.html), [*Guaranteed Delivery*](GuaranteedMessaging.html), [*Message*](Message.html), [*Message Expiration*](MessageExpiration.html), [*Messaging*](Messaging.html), [*JMS Publish/Subscribe Example*](ObserverJmsExample.html), [*Point-to-Point Channel*](PointToPointChannel.html), [*Publish-Subscribe Channel*](PublishSubscribeChannel.html)\n\n---\n\n## Integration Pattern Language\n\n[Message Construct.](MessageConstructionIntro.html)\n\n[Message](Message.html)\n\n[Command Message](CommandMessage.html)\n\n[Document Message](DocumentMessage.html)\n\n[Event Message](EventMessage.html)\n\n[Request-Reply](RequestReply.html)\n\n[Return Address](ReturnAddress.html)\n\n[Correlation Identifier](CorrelationIdentifier.html)\n\n[Message Sequence](MessageSequence.html)\n\n[Message Expiration](MessageExpiration.html)\n\n[Format Indicator](FormatIndicator.html)\n\n[Message Routing](MessageRoutingIntro.html)\n\n[Pipes-and-Filters](PipesAndFilters.html)\n\n[Message Router](MessageRouter.html)\n\n[Content-based Router](ContentBasedRouter.html)\n\n[Message Filter](Filter.html)\n\n[Dynamic Router](DynamicRouter.html)\n\n[Recipient List](RecipientList.html)\n\n[Splitter](Sequencer.html)\n\n[Aggregator](Aggregator.html)\n\n[Resequencer](Resequencer.html)\n\n[Composed Msg. Processor](DistributionAggregate.html)\n\n[Scatter-Gather](BroadcastAggregate.html)\n\n[Routing Slip](RoutingTable.html)\n\n[Process Manager](ProcessManager.html)\n\n[Message Broker](MessageBroker.html)\n\n[Message\nTransformation](MessageTransformationIntro.html)\n\n[Message Translator](MessageTranslator.html)\n\n[Envelope Wrapper](EnvelopeWrapper.html)\n\n[Content Enricher](DataEnricher.html)\n\n[Content Filter](ContentFilter.html)\n\n[Claim Check](StoreInLibrary.html)\n\n[Normalizer](Normalizer.html)\n\n[Canonical Data Model](CanonicalDataModel.html)\n\n[Messaging Endpoints](MessagingEndpointsIntro.html)\n\n[Message Endpoint](MessageEndpoint.html)\n\n[Messaging Gateway](MessagingGateway.html)\n\n[Messaging Mapper](MessagingMapper.html)\n\n[Transactional Client](TransactionalClient.html)\n\n[Polling Consumer](PollingConsumer.html)\n\n[Event-driven Consumer](EventDrivenConsumer.html)\n\n[Competing Consumers](CompetingConsumers.html)\n\n[Message Dispatcher](MessageDispatcher.html)\n\n[Selective Consumer](MessageSelector.html)\n\n[Durable Subscriber](DurableSubscription.html)\n\n[Idempotent Receiver](IdempotentReceiver.html)\n\n[Service Activator](MessagingAdapter.html)\n\n[Messaging Channels](MessagingChannelsIntro.html)\n\n[Message Channel](MessageChannel.html)\n\n[Point-to-Point Channel](PointToPointChannel.html)\n\n[Publish-Subscr. Channel](PublishSubscribeChannel.html)\n\n[Datatype Channel](DatatypeChannel.html)\n\n[Invalid Message Channel](InvalidMessageChannel.html)\n\n[Dead Letter Channel](DeadLetterChannel.html)\n\n[Guaranteed Delivery](GuaranteedMessaging.html)\n\n[Channel Adapter](ChannelAdapter.html)\n\n[Messaging Bridge](MessagingBridge.html)\n\n[Message Bus](MessageBus.html)\n\n[Systems Mgmt.](SystemManagementIntro.html)\n\n[Control Bus](ControlBus.html)\n\n[Detour](Detour.html)\n\n[Wire Tap](WireTap.html)\n\n[Message History](MessageHistory.html)\n\n[Message Store](MessageStore.html)\n\n[Smart Proxy](SmartProxy.html)\n\n[Test Message](TestMessage.html)\n\n[Channel Purger](ChannelPurger.html)\n\n- » [Read the latest in My Blog](/ramblings)\n- » [Get more insights from My Articles](/articles.html)\n- » [See me live in my Upcoming Talks](/talks)\n\nYou can reuse the following elements under the [Creative Commons Attribution](http://creativecommons.org/licenses/by/4.0/) license: pattern icon, pattern name, problem and solution statements (in bold), and the sketch. Other portions are protected by copyright.\n\n[Enterprise Integration Patterns](https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20)\nThe de-facto language for designing asynchronous, distributed systems. Over 100,000 copies sold.\n\n[The Software Architect Elevator](https://www.architectelevator.com/book)\n\n Rethink the role of architects as a connecting element across organizational layers. Acquire the technical, communication, and organizational skills to succeed in this new role.\n\n[Cloud Strategy](https://www.cloudstrategybook.com)\n\n Make your cloud migration a success by translating high-level goals into conscious decisions with well-understood trade-offs.\n\n[Platform Strategy](https://www.platformstrategybook.info)\n\n Platforms can boost innovation through harmonization, but they aren't easy to build. Learn from over a decade of designing and rolling out IT platforms.", "znaku_textu": 6871, "slov": 604, "odkazu": 108, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/EventMessage.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 14:55:20", "sha256": "62f373d66f1ade20d93b672a0cdacd6fc2deed62b0508c2bfe3fc25952d0de42", "hloubka": 3, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://creativecommons.org/licenses/by/4.0/", "https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "https://www.architectelevator.com/book", "https://www.cloudstrategybook.com/", "https://www.platformstrategybook.info/"]} {"url": "http://www.enterpriseintegrationpatterns.com/patterns/messaging/FileTransferIntegration.html", "titulek": "File Transfer - Enterprise Integration Patterns", "h1": "", "popis": "How can I integrate multiple applications so that they work together and can exchange information?", "klicova_slova": "File Transfer,integration, messaging, events, patterns, event-driven, coupling, eai, middleware, application integration, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns", "og:title": "File Transfer - Enterprise Integration Patterns", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/FileTransferIntegration.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/FileTransferIntegration.gif"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Integration Pattern Language"}], "markdown": "Messaging Patterns\n\n[Messaging Patterns](index.html)\n\n- [Integration Styles](IntegrationStylesIntro.html)\n- [Messaging Systems](MessagingComponentsIntro.html)\n- [Messaging Channels](MessagingChannelsIntro.html)\n- [Message Construction](MessageConstructionIntro.html)\n- [Interlude: Simple Messaging](SimpleMessagingIntro.html)\n- [Message Routing](MessageRoutingIntro.html)\n- [Message Transformation](MessageTransformationIntro.html)\n- [Interlude: Composed Messaging](ComposedMessagingExample.html)\n- [Messaging Endpoints](MessagingEndpointsIntro.html)\n- [System Management](SystemManagementIntro.html)\n- Interlude: Systems Management Example\n- Integration Patterns in Practice\n- Concluding Remarks\n- Appendices\n\n| | File Transfer[Messaging Patterns](index.html) » [Integration Styles](IntegrationStylesIntro.html) | [Contents](toc.html)[⇐ Prev](IntegrationStylesIntro.html)[Next ⇒](SharedDataBaseIntegration.html) |\n| --- | --- | --- |\n\nAn enterprise has multiple applications that are being built independently, with different languages and platforms.\n\nHow can I integrate multiple applications so that they work together and can exchange information?\n\nHave each application produce files containing information that other applications need to consume. Integrators take the responsibility of transforming files into different formats. Produce the files at regular intervals according to the nature of the business.\n\nAn important decision with files is what format to use. Very\n rarely will the output of one application be exactly what's needed\n for another, so you'll have to do a fair bit of processing of files\n along the way. Not just do all the applications that use a file have\n to read it, you also have to be able to use processing tools on\n it. As a result, standard file formats have grown up over\n time. Mainframe systems commonly use data feeds based on the file\n system formats of COBOL. Unix systems use text based files. The\n modern fashion is to use XML. An industry of readers, writers, and transformation\n tools has built up around each of these formats.\n\n...\nRead the entire pattern in the book [Enterprise Integration Patterns](/books1.html)\n\n**Related patterns:**\n\n[*Remote Procedure Invocation*](EncapsulatedSynchronousIntegration.html), [*Messaging*](Messaging.html), [*Shared Database*](SharedDataBaseIntegration.html)\n\n---\n\n## Integration Pattern Language\n\n[Message Construct.](MessageConstructionIntro.html)\n\n[Message](Message.html)\n\n[Command Message](CommandMessage.html)\n\n[Document Message](DocumentMessage.html)\n\n[Event Message](EventMessage.html)\n\n[Request-Reply](RequestReply.html)\n\n[Return Address](ReturnAddress.html)\n\n[Correlation Identifier](CorrelationIdentifier.html)\n\n[Message Sequence](MessageSequence.html)\n\n[Message Expiration](MessageExpiration.html)\n\n[Format Indicator](FormatIndicator.html)\n\n[Message Routing](MessageRoutingIntro.html)\n\n[Pipes-and-Filters](PipesAndFilters.html)\n\n[Message Router](MessageRouter.html)\n\n[Content-based Router](ContentBasedRouter.html)\n\n[Message Filter](Filter.html)\n\n[Dynamic Router](DynamicRouter.html)\n\n[Recipient List](RecipientList.html)\n\n[Splitter](Sequencer.html)\n\n[Aggregator](Aggregator.html)\n\n[Resequencer](Resequencer.html)\n\n[Composed Msg. Processor](DistributionAggregate.html)\n\n[Scatter-Gather](BroadcastAggregate.html)\n\n[Routing Slip](RoutingTable.html)\n\n[Process Manager](ProcessManager.html)\n\n[Message Broker](MessageBroker.html)\n\n[Message\nTransformation](MessageTransformationIntro.html)\n\n[Message Translator](MessageTranslator.html)\n\n[Envelope Wrapper](EnvelopeWrapper.html)\n\n[Content Enricher](DataEnricher.html)\n\n[Content Filter](ContentFilter.html)\n\n[Claim Check](StoreInLibrary.html)\n\n[Normalizer](Normalizer.html)\n\n[Canonical Data Model](CanonicalDataModel.html)\n\n[Messaging Endpoints](MessagingEndpointsIntro.html)\n\n[Message Endpoint](MessageEndpoint.html)\n\n[Messaging Gateway](MessagingGateway.html)\n\n[Messaging Mapper](MessagingMapper.html)\n\n[Transactional Client](TransactionalClient.html)\n\n[Polling Consumer](PollingConsumer.html)\n\n[Event-driven Consumer](EventDrivenConsumer.html)\n\n[Competing Consumers](CompetingConsumers.html)\n\n[Message Dispatcher](MessageDispatcher.html)\n\n[Selective Consumer](MessageSelector.html)\n\n[Durable Subscriber](DurableSubscription.html)\n\n[Idempotent Receiver](IdempotentReceiver.html)\n\n[Service Activator](MessagingAdapter.html)\n\n[Messaging Channels](MessagingChannelsIntro.html)\n\n[Message Channel](MessageChannel.html)\n\n[Point-to-Point Channel](PointToPointChannel.html)\n\n[Publish-Subscr. Channel](PublishSubscribeChannel.html)\n\n[Datatype Channel](DatatypeChannel.html)\n\n[Invalid Message Channel](InvalidMessageChannel.html)\n\n[Dead Letter Channel](DeadLetterChannel.html)\n\n[Guaranteed Delivery](GuaranteedMessaging.html)\n\n[Channel Adapter](ChannelAdapter.html)\n\n[Messaging Bridge](MessagingBridge.html)\n\n[Message Bus](MessageBus.html)\n\n[Systems Mgmt.](SystemManagementIntro.html)\n\n[Control Bus](ControlBus.html)\n\n[Detour](Detour.html)\n\n[Wire Tap](WireTap.html)\n\n[Message History](MessageHistory.html)\n\n[Message Store](MessageStore.html)\n\n[Smart Proxy](SmartProxy.html)\n\n[Test Message](TestMessage.html)\n\n[Channel Purger](ChannelPurger.html)\n\n- » [Read the latest in My Blog](/ramblings)\n- » [Get more insights from My Articles](/articles.html)\n- » [See me live in my Upcoming Talks](/talks)\n\nYou can reuse the following elements under the [Creative Commons Attribution](http://creativecommons.org/licenses/by/4.0/) license: pattern icon, pattern name, problem and solution statements (in bold), and the sketch. Other portions are protected by copyright.\n\n[Enterprise Integration Patterns](https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20)\nThe de-facto language for designing asynchronous, distributed systems. Over 100,000 copies sold.\n\n[The Software Architect Elevator](https://www.architectelevator.com/book)\n\n Rethink the role of architects as a connecting element across organizational layers. Acquire the technical, communication, and organizational skills to succeed in this new role.\n\n[Cloud Strategy](https://www.cloudstrategybook.com)\n\n Make your cloud migration a success by translating high-level goals into conscious decisions with well-understood trade-offs.\n\n[Platform Strategy](https://www.platformstrategybook.info)\n\n Platforms can boost innovation through harmonization, but they aren't easy to build. Learn from over a decade of designing and rolling out IT platforms.", "znaku_textu": 6300, "slov": 543, "odkazu": 108, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 14:54:56", "sha256": "be57c18fdfa2d127668f67f9495ddf18a3b06ce7888e84fc5910aa2ee97e981e", "hloubka": 3, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://creativecommons.org/licenses/by/4.0/", "https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "https://www.architectelevator.com/book", "https://www.cloudstrategybook.com/", "https://www.platformstrategybook.info/"]} {"url": "http://www.enterpriseintegrationpatterns.com/patterns/messaging/Filter.html", "titulek": "Message Filter - Enterprise Integration Patterns", "h1": "", "popis": "How can a component avoid receiving uninteresting messages?", "klicova_slova": "Message Filter,integration, messaging, events, patterns, event-driven, coupling, eai, middleware, application integration, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns", "og:title": "Message Filter - Enterprise Integration Patterns", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/Filter.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/MessageFilter.gif"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Example: RabbitMQ BindingsNEW"}, {"uroven": 2, "text": "Integration Pattern Language"}], "markdown": "| | Message Filter[Messaging Patterns](index.html) » [Message Routing](MessageRoutingIntro.html) | [Contents](toc.html)[⇐ Prev](ContentBasedRouter.html)[Next ⇒](DynamicRouter.html) |\n| --- | --- | --- |\n\nContinuing with the order processing example, let's assume that company management publishes price changes and promotions to large customers. Whenever a price for an item changes, we send a message notifying the customer. We do the same if we are running a special promotion, e.g. all widgets are 10% off in the month of November. Some customers may be interested in receiving price updates or promotions only related to specific items. If I purchase primarily gadgets, I may not be interested in knowing whether widgets are on sale or not.\n\nHow can a component avoid receiving uninteresting messages?\n\nUse a special kind of Message Router, a *Message Filter*, to eliminate undesired messages from a channel based on a set of criteria.\n\nThe *Message Filter* has only a single output channel. If the message content matches the criteria specified by the *Message Filter*, the message is routed to the output channel. If the message content does not match the criteria, the message is discarded.\n\n...\nRead the entire pattern in the book [Enterprise Integration Patterns](/books1.html)\n\n## Example: RabbitMQ Bindings[NEW](/ramblings/eip1_examples_updated.html)\n\nRabbitMQ allows a straightforward implementation of [*Publish-Subscribe Channel*](PublishSubscribeChannel.html) with *Message Filter*s via a *direct exchange*. Exchanges are a concept which is distinct from a queue. Generally, message producers publish messages to an exchange, which controls how the message is propagated to other queues. For example, a \"fanout\" exchange simply propagates a message to all subscribed queues while a \"direct\" exchange allows subscribing queues to express a filter condition for the messages they want to receive.\n\nA direct exchange places incoming messages into a subscribing queue based on a message's *routing key* and the queue's *binding key*. Multiple binding keys are allowed per queue and multiple queues can use the same binding key, which results in each of them receiving a copy of the queue.\n\n*Mapping RabbitMQ Concepts to Enterprise Integration Patterns*\n\nThe Widgets and Gadgets example from above can be implemented quite easily with a single direct exchange and two queues bound to this exchange, each with its respective filter. A helper method helps create a new queue, bind it to the exchange with the filter, and setup a [*Event-Driven Consumer*](EventDrivenConsumer.html) that simply prints out messages.\n\n```\nstatic void filteredReceive(final Channel channel, String filter, String exchangeName) throws IOException {\n\n System.out.println(filter + \" waiting for messages. To exit press CTRL+C\");\n\n Consumer consumer = new DefaultConsumer(channel) {\n @Override\n public void handleDelivery(String consumerTag, Envelope envelope, AMQP.BasicProperties properties, byte[] body)\n throws IOException {\n String message = new String(body, \"UTF-8\");\n System.out.println(filter + \" Received '\" + message + \"'\");\n }\n };\n\n String queueName = channel.queueDeclare().getQueue();\n channel.queueBind(queueName, EXCHANGE_NAME, filter);\n\n boolean autoAck = true;\n channel.basicConsume(queueName, autoAck, consumer);\n}\n```\n\nThe consumer is a simple [*Event-Driven Consumer*](EventDrivenConsumer.html) that is called every time a message is received. The following lines generate a new private queue and bind it to the exchange with the specified filter string. Lastly, the consumer implementation is attached to the queue.\n\nWe can now create the direct exchange and start multiple of these consumers, giving each a respective *binding key*:\n\n```\nchannel.exchangeDeclare(EXCHANGE_NAME, \"direct\");\n\nfilteredReceive(channel, \"Widget\", EXCHANGE_NAME);\nfilteredReceive(channel, \"Gadget\", EXCHANGE_NAME);\n```\n\nLastly, we publish some messages against the exchange with different message keys:\n\n```\nchannel.exchangeDeclare(EXCHANGE_NAME, \"direct\");\n\nsendMessage(channel, EXCHANGE_NAME, \"Widget\", \"Hello EIP Widget!\");\nsendMessage(channel, EXCHANGE_NAME, \"Gadget\", \"Hello EIP Gadget!\");\n```\n\nsendMessage is a simple helper method:\n\n```\nstatic void sendMessage(Channel channel, String exchange, String key, String message) throws IOException {\n channel.basicPublish(exchange, key, null, message.getBytes());\n System.out.println(\" [x] Sent '\" + message + \"'\");\n}\n```\n\nYou can run this code and observe that RabbitMQ filters the messages according to their key:\n\n```\nWidget waiting for messages. To exit press CTRL+C\nGadget waiting for messages. To exit press CTRL+C\nWidget Received 'Hello EIP Widget!'\nGadget Received 'Hello EIP Gadget!'\n```\n\nThe complete source code for this example can be found on [Github](https://github.com/spac3lord/eip/tree/master/Rabbit/src).\n\n**Related patterns:**\n\n[*Content-Based Router*](ContentBasedRouter.html), [*Event-Driven Consumer*](EventDrivenConsumer.html), [*Message Router*](MessageRouter.html), [*Selective Consumer*](MessageSelector.html), [*Publish-Subscribe Channel*](PublishSubscribeChannel.html), [*Recipient List*](RecipientList.html)\n\n---\n\n## Integration Pattern Language\n\n[Message Construct.](MessageConstructionIntro.html)\n\n[Message](Message.html)\n\n[Command Message](CommandMessage.html)\n\n[Document Message](DocumentMessage.html)\n\n[Event Message](EventMessage.html)\n\n[Request-Reply](RequestReply.html)\n\n[Return Address](ReturnAddress.html)\n\n[Correlation Identifier](CorrelationIdentifier.html)\n\n[Message Sequence](MessageSequence.html)\n\n[Message Expiration](MessageExpiration.html)\n\n[Format Indicator](FormatIndicator.html)\n\n[Message Routing](MessageRoutingIntro.html)\n\n[Pipes-and-Filters](PipesAndFilters.html)\n\n[Message Router](MessageRouter.html)\n\n[Content-based Router](ContentBasedRouter.html)\n\n[Message Filter](Filter.html)\n\n[Dynamic Router](DynamicRouter.html)\n\n[Recipient List](RecipientList.html)\n\n[Splitter](Sequencer.html)\n\n[Aggregator](Aggregator.html)\n\n[Resequencer](Resequencer.html)\n\n[Composed Msg. Processor](DistributionAggregate.html)\n\n[Scatter-Gather](BroadcastAggregate.html)\n\n[Routing Slip](RoutingTable.html)\n\n[Process Manager](ProcessManager.html)\n\n[Message Broker](MessageBroker.html)\n\n[Message\nTransformation](MessageTransformationIntro.html)\n\n[Message Translator](MessageTranslator.html)\n\n[Envelope Wrapper](EnvelopeWrapper.html)\n\n[Content Enricher](DataEnricher.html)\n\n[Content Filter](ContentFilter.html)\n\n[Claim Check](StoreInLibrary.html)\n\n[Normalizer](Normalizer.html)\n\n[Canonical Data Model](CanonicalDataModel.html)\n\n[Messaging Endpoints](MessagingEndpointsIntro.html)\n\n[Message Endpoint](MessageEndpoint.html)\n\n[Messaging Gateway](MessagingGateway.html)\n\n[Messaging Mapper](MessagingMapper.html)\n\n[Transactional Client](TransactionalClient.html)\n\n[Polling Consumer](PollingConsumer.html)\n\n[Event-driven Consumer](EventDrivenConsumer.html)\n\n[Competing Consumers](CompetingConsumers.html)\n\n[Message Dispatcher](MessageDispatcher.html)\n\n[Selective Consumer](MessageSelector.html)\n\n[Durable Subscriber](DurableSubscription.html)\n\n[Idempotent Receiver](IdempotentReceiver.html)\n\n[Service Activator](MessagingAdapter.html)\n\n[Messaging Channels](MessagingChannelsIntro.html)\n\n[Message Channel](MessageChannel.html)\n\n[Point-to-Point Channel](PointToPointChannel.html)\n\n[Publish-Subscr. Channel](PublishSubscribeChannel.html)\n\n[Datatype Channel](DatatypeChannel.html)\n\n[Invalid Message Channel](InvalidMessageChannel.html)\n\n[Dead Letter Channel](DeadLetterChannel.html)\n\n[Guaranteed Delivery](GuaranteedMessaging.html)\n\n[Channel Adapter](ChannelAdapter.html)\n\n[Messaging Bridge](MessagingBridge.html)\n\n[Message Bus](MessageBus.html)\n\n[Systems Mgmt.](SystemManagementIntro.html)\n\n[Control Bus](ControlBus.html)\n\n[Detour](Detour.html)\n\n[Wire Tap](WireTap.html)\n\n[Message History](MessageHistory.html)\n\n[Message Store](MessageStore.html)\n\n[Smart Proxy](SmartProxy.html)\n\n[Test Message](TestMessage.html)\n\n[Channel Purger](ChannelPurger.html)", "znaku_textu": 7839, "slov": 815, "odkazu": 110, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/Filter.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 14:55:33", "sha256": "899fcd8bbb8d91b9a0985314998a4707c1b4e0b34aa79a2821149c861d53db2c", "hloubka": 3, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/spac3lord/eip/tree/master/Rabbit/src", "http://creativecommons.org/licenses/by/4.0/", "https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "https://www.architectelevator.com/book", "https://www.cloudstrategybook.com/", "https://www.platformstrategybook.info/"]} {"url": "http://www.enterpriseintegrationpatterns.com/patterns/messaging/FormatIndicator.html", "titulek": "Format Indicator - Enterprise Integration Patterns", "h1": "", "popis": "How can a message’s data format be designed to allow for possible future changes?", "klicova_slova": "Format Indicator,integration, messaging, events, patterns, event-driven, coupling, eai, middleware, application integration, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns", "og:title": "Format Indicator - Enterprise Integration Patterns", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/FormatIndicator.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/eip1_patterns_wide.png"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Integration Pattern Language"}], "markdown": "Messaging Patterns\n\n[Messaging Patterns](index.html)\n\n- [Integration Styles](IntegrationStylesIntro.html)\n- [Messaging Systems](MessagingComponentsIntro.html)\n- [Messaging Channels](MessagingChannelsIntro.html)\n- [Message Construction](MessageConstructionIntro.html)\n- [Interlude: Simple Messaging](SimpleMessagingIntro.html)\n- [Message Routing](MessageRoutingIntro.html)\n- [Message Transformation](MessageTransformationIntro.html)\n- [Interlude: Composed Messaging](ComposedMessagingExample.html)\n- [Messaging Endpoints](MessagingEndpointsIntro.html)\n- [System Management](SystemManagementIntro.html)\n- Interlude: Systems Management Example\n- Integration Patterns in Practice\n- Concluding Remarks\n- Appendices\n\n| | Format Indicator[Messaging Patterns](index.html) » [Message Construction](MessageConstructionIntro.html) | [Contents](toc.html)[⇐ Prev](MessageExpiration.html)[Next ⇒](SimpleMessagingIntro.html) |\n| --- | --- | --- |\n\nSeveral applications are communicating via [*Message*](Message.html)s that follow an agreed upon data format, perhaps an enterprise-wide [*Canonical Data Model*](CanonicalDataModel.html). However, that format may need to change over time.\n\nHow can a message’s data format be designed to allow for possible future changes?\n\nDesign a data format that includes a *Format Indicator*, so that the message specifies what format it is using.\n\nThe 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.\n\nThere are three main alternatives for implementing a format indicator:\n\n1. **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.\n2. **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.\n3. **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.\n\n...\nRead the entire pattern in the book [Enterprise Integration Patterns](/books1.html)\n\n**Related patterns:**\n\n[*Canonical Data Model*](CanonicalDataModel.html), [*Message*](Message.html)\n\n---\n\n## Integration Pattern Language\n\n[Message Construct.](MessageConstructionIntro.html)\n\n[Message](Message.html)\n\n[Command Message](CommandMessage.html)\n\n[Document Message](DocumentMessage.html)\n\n[Event Message](EventMessage.html)\n\n[Request-Reply](RequestReply.html)\n\n[Return Address](ReturnAddress.html)\n\n[Correlation Identifier](CorrelationIdentifier.html)\n\n[Message Sequence](MessageSequence.html)\n\n[Message Expiration](MessageExpiration.html)\n\n[Format Indicator](FormatIndicator.html)\n\n[Message Routing](MessageRoutingIntro.html)\n\n[Pipes-and-Filters](PipesAndFilters.html)\n\n[Message Router](MessageRouter.html)\n\n[Content-based Router](ContentBasedRouter.html)\n\n[Message Filter](Filter.html)\n\n[Dynamic Router](DynamicRouter.html)\n\n[Recipient List](RecipientList.html)\n\n[Splitter](Sequencer.html)\n\n[Aggregator](Aggregator.html)\n\n[Resequencer](Resequencer.html)\n\n[Composed Msg. Processor](DistributionAggregate.html)\n\n[Scatter-Gather](BroadcastAggregate.html)\n\n[Routing Slip](RoutingTable.html)\n\n[Process Manager](ProcessManager.html)\n\n[Message Broker](MessageBroker.html)\n\n[Message\nTransformation](MessageTransformationIntro.html)\n\n[Message Translator](MessageTranslator.html)\n\n[Envelope Wrapper](EnvelopeWrapper.html)\n\n[Content Enricher](DataEnricher.html)\n\n[Content Filter](ContentFilter.html)\n\n[Claim Check](StoreInLibrary.html)\n\n[Normalizer](Normalizer.html)\n\n[Canonical Data Model](CanonicalDataModel.html)\n\n[Messaging Endpoints](MessagingEndpointsIntro.html)\n\n[Message Endpoint](MessageEndpoint.html)\n\n[Messaging Gateway](MessagingGateway.html)\n\n[Messaging Mapper](MessagingMapper.html)\n\n[Transactional Client](TransactionalClient.html)\n\n[Polling Consumer](PollingConsumer.html)\n\n[Event-driven Consumer](EventDrivenConsumer.html)\n\n[Competing Consumers](CompetingConsumers.html)\n\n[Message Dispatcher](MessageDispatcher.html)\n\n[Selective Consumer](MessageSelector.html)\n\n[Durable Subscriber](DurableSubscription.html)\n\n[Idempotent Receiver](IdempotentReceiver.html)\n\n[Service Activator](MessagingAdapter.html)\n\n[Messaging Channels](MessagingChannelsIntro.html)\n\n[Message Channel](MessageChannel.html)\n\n[Point-to-Point Channel](PointToPointChannel.html)\n\n[Publish-Subscr. Channel](PublishSubscribeChannel.html)\n\n[Datatype Channel](DatatypeChannel.html)\n\n[Invalid Message Channel](InvalidMessageChannel.html)\n\n[Dead Letter Channel](DeadLetterChannel.html)\n\n[Guaranteed Delivery](GuaranteedMessaging.html)\n\n[Channel Adapter](ChannelAdapter.html)\n\n[Messaging Bridge](MessagingBridge.html)\n\n[Message Bus](MessageBus.html)\n\n[Systems Mgmt.](SystemManagementIntro.html)\n\n[Control Bus](ControlBus.html)\n\n[Detour](Detour.html)\n\n[Wire Tap](WireTap.html)\n\n[Message History](MessageHistory.html)\n\n[Message Store](MessageStore.html)\n\n[Smart Proxy](SmartProxy.html)\n\n[Test Message](TestMessage.html)\n\n[Channel Purger](ChannelPurger.html)\n\n- » [Read the latest in My Blog](/ramblings)\n- » [Get more insights from My Articles](/articles.html)\n- » [See me live in my Upcoming Talks](/talks)\n\nYou can reuse the following elements under the [Creative Commons Attribution](http://creativecommons.org/licenses/by/4.0/) license: pattern icon, pattern name, problem and solution statements (in bold), and the sketch. Other portions are protected by copyright.\n\n[Enterprise Integration Patterns](https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20)\nThe de-facto language for designing asynchronous, distributed systems. Over 100,000 copies sold.\n\n[The Software Architect Elevator](https://www.architectelevator.com/book)\n\n Rethink the role of architects as a connecting element across organizational layers. Acquire the technical, communication, and organizational skills to succeed in this new role.\n\n[Cloud Strategy](https://www.cloudstrategybook.com)\n\n Make your cloud migration a success by translating high-level goals into conscious decisions with well-understood trade-offs.\n\n[Platform Strategy](https://www.platformstrategybook.info)\n\n Platforms can boost innovation through harmonization, but they aren't easy to build. Learn from over a decade of designing and rolling out IT platforms.", "znaku_textu": 6515, "slov": 594, "odkazu": 108, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/FormatIndicator.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 14:55:26", "sha256": "54fd70b7f96611bc8e639462761098b2ae2f6624ab4bd279699cca1308436683", "hloubka": 3, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://creativecommons.org/licenses/by/4.0/", "https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "https://www.architectelevator.com/book", "https://www.cloudstrategybook.com/", "https://www.platformstrategybook.info/"]} {"url": "http://www.enterpriseintegrationpatterns.com/patterns/messaging/Future.html", "titulek": "Emerging Standards and Futures in Enterprise Integration - Enterprise Integration Patterns", "h1": "", "popis": "As data flows across system and domain boundaries through \n messaging conduits, and as developers and architects become more proficient \n in the patterns that govern messaging systems, new standards and products \n will emerge to extend the tactical reach of those patterns. Over time, patterns \n tend to strengthen but otherwise change little if at all; but their implementation \n strategies often evolve rapidly to allow developers to apply them to much \n broader scales of sophistication. The fundamental Message \n Pattern, for example, finds its reach and applicability extended as implementation \n artifacts grow from EDI to proprietary MOM to open XML and SOAP-based web \n services to global BPEL and beyond. ", "klicova_slova": "Emerging Standards and Futures in Enterprise Integration,integration, messaging, events, patterns, event-driven, coupling, eai, middleware, application integration, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns", "og:title": "Emerging Standards and Futures in Enterprise Integration - Enterprise Integration Patterns", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/Future.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/eip1_patterns_wide.png"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "The Relationship between Standards and Design Patterns"}, {"uroven": 2, "text": "Survey of Standards Processes and Organizations"}, {"uroven": 2, "text": "Business Process Components and Intra-Web Service Messaging"}, {"uroven": 2, "text": "ebXML and the Electronic Business Messaging Service (ebMS)"}, {"uroven": 2, "text": "Business Process Execution Language for Web Services (BPEL4WS)"}, {"uroven": 2, "text": "Web Service Choreography Interface (WSCI)"}, {"uroven": 2, "text": "Java business process component standards"}, {"uroven": 2, "text": "WS-*"}, {"uroven": 2, "text": "Summary"}, {"uroven": 2, "text": "Integration Pattern Language"}], "markdown": "| | Emerging Standards and Futures in Enterprise Integration[Messaging Patterns](index.html) » Concluding Remarks | [Contents](toc.html)[⇐ Prev](BondTradingCaseStudy.html)[Next ⇒](bib.html) |\n| --- | --- | --- |\n\n*(By Sean Neville)*\n\nAs data flows across system and domain boundaries through \n messaging conduits, and as developers and architects become more proficient \n in the patterns that govern messaging systems, new standards and products \n will emerge to extend the tactical reach of those patterns. Over time, patterns \n tend to strengthen but otherwise change little if at all; but their implementation \n strategies often evolve rapidly to allow developers to apply them to much \n broader scales of sophistication. The fundamental [*Message*](Message.html) \n Pattern, for example, finds its reach and applicability extended as implementation \n artifacts grow from EDI to proprietary MOM to open XML and SOAP-based web \n services to global BPEL and beyond.\n\nThis chapter takes a look at the future of message-based enterprise \n integration in terms of the emerging standards that application developers \n will encounter in the mid 00's. Many of these standards are not currently\n in common use, but are coalescing with broad industry support, and are likely \n to serve as the foundation of integration pattern implementations particularly \n in service-oriented architectures. Most of them extend nascent web services \n technologies to support the types of patterns presented in this book. We'll \n take a look at why these standards are important in relation to design patterns, \n which organizations are creating them and how they're going about it, and \n offer a brief summary of the technical solutions for business process integration \n that a few of the most promising web services and Java standards aim to provide.\n\n## The Relationship between Standards and Design Patterns\n\nTwo mental artifacts provide the highest levels of abstraction \n in software architecture today: Programming orientations, which include object-oriented \n programming, service-oriented programming, generative programming and the \n like; and pattern languages, such as that documented in this book. If a particular \n orientation or design pattern proves useful, and if its context proves to \n recur frequently, the tactics and strategies used to implement the pattern \n often become very similar. Pattern solutions on multiple platforms, products \n and applications end up owning very few differences -- but those few differences \n are often frustrating growth inhibitors, typically semantic in nature, and\n produce interoperability that hinders sophistication of scale. To extend the \n reach of applications and the patterns on which they're based, such differences \n tend to be eliminated from products and platforms through formally agreed-upon \n standards.\n\nWhen a pattern's tactic or implementation strategy is standardized, \n the pattern does not wane in usefulness, replaced by that standard; instead, \n quite the opposite occurs. Like rings within a tree trunk, a strong pattern \n grows upon itself to ever-broader levels of applicability, creating and then \n applying itself in broader instances of context. This growth in scale occurs \n because separate instances of a pattern's implementation become interoperable \n with one another. Taking a typical message-oriented J2EE application as an \n example: A pattern such as [*Pipes and Filters*](PipesAndFilters.html) exists at many levels -- within the application as designed \n by the developer, but also within the server product used to host the application, \n within the containers and services within that server, within the filters \n and components that compose the messaging subsystems, and so forth in recursive \n fashion.\n\nEmerging messaging and web service standards will serve to \n strengthen the patterns in this book by extending the reach of the developers \n who employ them. Standards such as Business Process Execution Language (BPEL) \n and Web Services Reliability (WS-Reliability) propagate the scope of these patterns \n beyond bits, beyond languages, beyond products, and outward into increasingly \n useful compositions in the human- and system-centric circles of use cases \n and requirements. Application developers can stop using patterns such as [*Correlation Identifier*](CorrelationIdentifier.html)\n to match raw message replies to their senders, and can \n start using that same pattern to correlate process components that consist \n of multiple asynchronous message senders and receivers. Without the benefit\n of messaging standards, a Java developer may implement [*Message Router*](MessageRouter.html)\n at the code level to inspect the contents of individual XML \n messages in order to programmatically forward the message to a particular \n service or filter. Emerging workflow and choreography standards will allow \n that same developer to apply his knowledge of the [*Message Router*](MessageRouter.html)\n pattern at a higher level of abstraction to route workflow among process compositions, \n where the tactical artifacts are business process components rather than raw \n sections of XML documents. In other words, application developers can stop \n spending precious time linking protocols and set about the business of linking \n business processes and services across domain boundaries.\n\nThe usefulness of design patterns and programming orientation \n for developing sophisticated systems is proportional to the application developer's \n ability to depend upon common, interoperable implementation strategies and \n tactics. Today, strategies for working with a messaging pattern in J2EE may \n mean use of JMS, JCA, or JAX-RPC; tomorrow, the strategies used by application \n developers may involve use of model-driven technology, schema-based scripts, \n aspects or intentions -- and any such shifts in implementation tactics only \n increase the significance of the patterns, if both the pattern's contextual \n definition and relevant standards are appropriately embraced. Standards provide \n the best way we currently know to enforce these commonalities to extend the \n software architect's mastery of design patterns.\n\n## Survey of Standards Processes and Organizations\n\nContrary to popular cynicism, standards are not intended to \n be developed in a vendor vacuum isolated from practical application development. \n They are intended to unify and improve the implementation approaches discovered \n and developed by application developers. By exercising the design patterns \n in this book, you may be contributing to the development of a standard even \n if you don't directly contribute to a specification working group. The organizations \n and consortiums that oversee specification working groups don't always do \n a great job of recognizing and assimilating implementation approaches, but\n that's the intention.\n\nStandards are officially born when an inventor or group of \n inventors makes a formal proposal to a standards body. Usually this requires \n membership in the standards body. Each standards body enforces its own process \n for shaping proposals into a standard, and all members are legally bound to \n those rules. The processes generally involve the forming of a working group \n or committee to further develop the specification under the oversight and \n eventual approval of the organization's management. Intellectual property \n rights and licensing policies are often hot topics in these organizations, \n and can vary between standard bodies and even between working groups within \n the standards bodies.\n\nHere's a look at the major standards organizations involved \n in creating the emerging messaging and web service standards:\n\n**W3C** ([http://www.w3c.org](http://www.w3c.org)): \n The World Wide Web Consortium develops many of the basic web technologies \n that are in turn used as building blocks by other standards organizations. \n It is managed by an international team of researchers and engineers, and \n consists of a large group of member vendors, content providers, governments, \n research laboratories, and other entities. The W3C makes use of an open, \n collaborative review process in Working Groups and subsequently in public \n that results in lengthy but generally high-quality iterations. Technologies \n created through the W3C are usually unencumbered by member claims to intellectual \n property rights. W3C technologies include SOAP and WSDL, as well as all \n of the core XML specifications. The W3C Choreography Working Group will \n likely resolve conflicting business process specifications and provide \n the definitive basis for integration using web services.\n\n**OASIS** ([http://www.oasis-open.org](http://www.oasis-open.org/home/index.php)): \n One of several organizations that builds on W3C technologies is the Organization \n for the Advancement of Structured Information Standards, or OASIS. Chartered \n to foster guidelines for SGML development, this non-profit consortium \n of vendors now focuses on driving the adoption of global e-business standards. \n OASIS technical committees are producing many emerging web service standards, \n such as ebXML and WS-Reliability. OASIS also hosts the xml.org portal.\n\n**WS-I** ([http://www.ws-i.org](http://www.ws-i.org/)): \n The Web Services Interoperability Organization (WS-I) aims to ensure that \n web service technologies and standards are suitable for enabling business \n collaborations in a generic, interoperable manner. The organization promotes \n web service protocols and practices that can apply across multiple systems, \n platforms, and languages. A key tactic in achieving these goals is the \n WS-I Basic Profile, which specifies the collection of web service standards \n along with their version numbers -- in the first profile these are XML Schema\n 1.0, SOAP 1.1, WSDL 1.1, and UDDI 1.0 -- as well as conventions governing \n how they should be used together. Thus the WS-I intends to play a unifying \n role in ensuring that various vendors involved in web services development \n can work together in a way that benefits application developers. It was \n founded and is managed by the leading web service vendor companies, including \n Microsoft, IBM, BEA Systems, Oracle, and others.\n\n**JCP**([http://www.jcp.org](http://www.jcp.org)): \n The Java Community Process (JCP) produces Java language bindings and\n J2EE APIs for technologies such as the web services and messaging standards \n developed by other organizations. Led by Sun Microsystems, the JCP has \n not historically been an open process; although it makes use of Expert \n Groups and a proposal process similar to that of other standards organizations, \n intellectual property rights are typically retained by Sun and licensed \n to the Java and J2EE platform vendors for a fee. Most of the JSR Expert \n Groups are also led by Sun engineers. While lacking the openness of other \n organizations, the JCP has, on the other hand, benefited from the focus\n that Sun has provided somewhat unhindered by external agendas.\n\n**Ad Hoc Vendor Consortiums:** In the race \n to establish control over portions of the emerging web services technologies, \n particularly for the purposes of enterprise integration, traditional competitors \n such as IBM and Microsoft have in some cases united to publish would-be \n standards without submitting those works to any standards body. Many of \n the WS-* specifications fall into this bucket. Often standards developed through\n vendor consortiums end up as submissions to standards organizations; the promising Business\n Process Execution Language (BPEL), for example, spent its early life as a creation of\n Microsoft and IBM before being submitted to OASIS. Interest in retaining \n intellectual property rights seems to be the catalyst for working in ad \n hoc fashion. These specifications achieve interoperability without the \n licensing openness, which is often satisfactory for application developers \n integrating platforms as popular as those produced by Microsoft and IBM, \n though whether these works are truly \"open standards\" is understandably \n the subject of much debate.\n\n## Business Process Components and Intra-Web Service Messaging\n\nNot content merely to influence object-oriented programming, \n structural decomposition, and domain modeling, Aristotle also mischievously \n posed one of the most influential rhetorical questions ever to trouble software \n architecture: Is the world predominantly a series of processes or is it a \n series of objects?\n\nMessaging standards reply with an answer worthy of a Zen disciple: \n \"yes.\" The world is a series of objects whose most important characteristics \n are usually the processes through which they engage with and relate to other \n objects. It is often an object's behaviors related to other objects rather \n than its own internal composition that turns out to be most significant. In\n the realm of web services and enterprise integration, this object/process \n hybrid view is referred to as the business process component. The business \n process component unites a series of services into a logical unit that interacts \n with other such units via messaging to achieve highly-scalable, resilient \n flows of logic and data. The coalescence of process, object, and interaction\n patterns into a business process component is the future of messaging as seen \n by many web services vendors and standards bodies.\n\nThe process component is a macro view of a set of services \n that is particularly relevant to enterprise integration. Taking a non-technical \n example: A man can drive a car, and both the man and the car are separate \n highly-complex systems; the process view of the man and car, however, sees \n them as a single component defined by their interactions with one another, \n and does not focus on the composition of either the man or the car separate \n from the interaction between them. Further, the process component view goes \n on to describe the interactions of that single component with others on the \n road, again without interest in the internal composition of other automobiles \n or drivers. This is not the same as simply presenting an external interface, \n as it also includes the rules that govern behaviors between usages of the \n interfaces.\n\nThe business process component as emerging in standards is \n a single component that internally consists of a set of web services and a \n definition for how messages flow into and out of them. Web services and other\n message destinations are building blocks used to compose larger compositions\n whose interactions follow messaging patterns -- both the composition of the\n process component, and the linking of multiple process components into an\n application follow messaging patterns. Business process standards address\n the correlation of messages between web services in order to create flows of\n execution, and include behaviors related to errors, transactions, and data\n exchange.\n\nA more technical business example is illustrated below, in which the processing\n of a purchase order is handled by a component that consists of a number of service\n operations.\n\n*Figure 1: The Business Process Component exposing a single destination endpoint on behalf of multiple internally choreographed web services.*\n\nThe example includes the following characteristics and activities:\n\n- Each operation in the Process Purchase Order component is an operation available\n on the portType of a web service, and the various web services which expose the\n operations may reside on remote hosts in partner production facilities.\n- When a purchase order is received, four operations are invoked concurrently; but\n some of the operations have dependencies that must be synchronously resolved\n (the dashed arrows in the illustration indicate dependencies).\n- Two specific dependencies show that the shipping agreement and insurance costs\n are needed in order to calculate the final cost, and that a binding insurance agreement\n must be received before the manufacturer will commit resources to a production schedule.\n- Once all service operations have asynchronously completed, the purchase order has\n been processed. Rather than requiring the messaging client to interact with all of\n these services individually and manage the dependencies between them -- that is,\n rather than requiring the client to create a [*Process Manager*](ProcessManager.html) implementation -- the process component exposes a single network endpoint on behalf\n of all the services, and manages all of the messaging and dependencies between\n services internally, simplifying the client's tasks.\n- The Purchase Order process component is in turn linked to another business process\n component, the Process Invoice Component.\n\nFour standards initiatives warrant a good look in the business process component and integration space: the ebXML initiative, \n two competing proposals called Business Process Execution Language and Web \n Services Choreography Interface, and a collection of individual specifications \n joined through the \"WS-\" prefix that address pieces of the same \n functionality in slightly narrower, more specific fashion.\n\n## ebXML and the Electronic Business Messaging Service (ebMS)\n\nEven before the explosive popularity of SOAP and WSDL, many \n bright thinkers working on business collaboration and B2B integration projects \n saw a need to develop an open, secure, and interoperable infrastructure for \n exchanging business information using XML messaging. The several specifications \n and initiatives developed under the Electronic Business using eXtensible Markup\n Language (ebXML) banner address that need, and as technologies such as SOAP \n have become popular, ebXML has grown to include and build upon them. The ebXML \n initiatives are jointly managed through OASIS and the United Nations UN/CEFACT \n organization. UN/CEFACT is the global group that brought the Electronic Data \n Interchange (EDI) standard into the world, and ebXML in many ways represents \n the next logical stage in the evolution of EDI.\n\nSeveral specifications comprise ebXML, covering topics such \n as how enterprises advertise their business process and search for those of \n potential partners, how partners agree upon and initiate communication, the \n use of registries to facilitate the discovery and initialization of business\n conversations, and the behavior of the messaging infrastructure required to \n facilitate the conversations. This last element in particular has garnered \n a great deal of attention, and while it leverages the other ebXML specifications, \n it can also be considered separately, which is useful for the purposes of \n focusing on messaging patterns.\n\nThe Electronic Business Messaging Service (ebMS) is not quite \n as \"emerging\" as some of the other standards mentioned here, as \n it has already achieved significant success as a means of integrating business \n processes, augmenting EDI systems, and extending SOAP to provide reliability \n and security for web services. Developed by OASIS over a three-year period \n beginning in 1999, ebMS is also proving influential in the development of other\n business process standards.\n\nThe goal of ebMS is to ease the exchange of business messages \n within an XML framework, but that framework includes the use of message payloads \n that are not necessarily XML -- the payload can take any form, including traditional \n EDI formats as well as binary formats. Thus ebMS can encapsulate existing \n messaging systems and serve as a flexible bridging technology, containing \n a set of [*Message Translator*](MessageTranslator.html)\n implementations, which is particularly useful in scaling integration to extranets \n and to B2B communication between business partners. An important source of \n use cases for ebMS is the linkage of proprietary MOM systems across separate \n enterprises, and considerable testing between vendors and developers has occurred \n to verify this interoperability. Critical to ebMS is that it supports legacy\n EDI systems, allowing enterprises to leverage longstanding investments in \n EDI while compensating for EDI's shortcomings by incorporating features of \n the web and XML.\n\nWhile on the one hand ebMS is a compatible iteration of EDI, \n on the other hand it is also a sophisticated improvement of standard SOAP-based \n services. The XML transmissions used in an ebMS system consist of SOAP envelopes\n that include ebMS-specific SOAP Headers to record unique message identifiers, \n timestamps, digital signatures, and a manifest which provides metadata about \n the message's payload. Thus ebMS uses the SOAP Header mechanism to implement \n the [*Introduction to Message Routing*](MessageRoutingIntro.html)\n patterns and many of the [*Introduction to Messaging Endpoints*](MessagingEndpointsIntro.html)\npatterns, such as [*Idempotent Receiver*](IdempotentReceiver.html) and others related to guaranteed sequential delivery.\n\nebMS transports its payloads by using the SOAP with Attachments \n standard to attach the payload to the SOAP envelope in much the same way that \n attachments are added to email messages. These payloads, again, have no formatting \n restrictions placed upon them: a message's payload may be XML data, binary \n data, link-based references to external data, etc. Further, each payload may \n have its own digital signature, and additional authentication and authorization \n may be provided by ebMS implementers.\n\n*Figure 2: An ebMS message is composed as SOAP messages with attachments.*\n\nAsynchronous message delivery is the default, but synchronous \n delivery is also possible through ebMS. The error-handling mechanism is also \n quite sophisticated, and depending on the implementation can provide SOAP \n Fault information along with payload-specific error messages.\n\nTo provide reliability, the critical element of an ebMS implementation \n -- called ebXML Message Service Handlers -- persist messages at the sending \n end of a conversation. Developers can provide semantic declarations such as \n \"once-and-only-once\" and \"store-and-forward\" for individual \n messages or for groups of messages. ebMS specifies services to manage sequential \n delivery and management as well; this last service is implemented through \n a Message Status Service that represents a\n [*Control Bus*](ControlBus.html). It provides the ability to request the status of a message previously \n sent into the ebMS system, which underneath the covers operates through an \n implementation of [*Message History*](MessageHistory.html) and related patterns.\n\nMore information on ebXML can be found here: [http://www.ebxml.org/](http://www.ebxml.org/)\n\nThe ebMS specification can be found here: [http://www.ebxml.org/specs/ebMS2.pdf](http://www.ebxml.org/specs/ebMS2.pdf)\n\n## Business Process Execution Language for Web Services (BPEL4WS)\n\nA popular emerging standard for defining business process \n components and their interactions is Business Process Execution Language for \n Web Services (BPEL4WS). The name is often pronounced \"bee-pel\" or \n even worse -- \"bee-pel for wuss.\" This standard represents the merging \n of two competing proposals from IBM and from Microsoft. IBM's Web Services \n Flow Language (WSFL) specified a means of creating and linking service endpoints \n to choreograph web service workflows, while Microsoft's XLANG provided a syntax \n and development model for creating workflow components as realized in the \n Microsoft BizTalk server product. BPEL4WS provides a bit of both: It includes \n a syntax for composing processes from existing services, and for describing \n process interfaces for the purpose of linking them together in larger workflows. \n It was created by an ad hoc collaboration between BEA Systems, IBM, and Microsoft, and has been submitted to OASIS.\n\nThe design of BPEL calls for linkages of web services, named \n \"partners,\" to put XML messages into and out of message stores, \n called \"containers,\" according to rules called \"activities.\" \n A logical set of service linkages, message containers, and activities comprise \n a single business process component. The BPEL specification essentially defines \n a [*Process Manager*](ProcessManager.html) that creates [*Routing Slip*](RoutingTable.html), \n [*Durable Subscriber*](DurableSubscription.html), [*Datatype Channel*](DatatypeChannel.html), and more based on a declarative XML syntax. Developers declare behaviors in XML (perhaps with the aid of visual tools) in order to craft business process components such as the one in Figure 1 above, and do not need to programmatically create the messaging between services.\n\nWeb Service Description Language (WSDL) documents are very \n important to BPEL, as the BPEL component will consist of and manage multiple \n web services based on the services' WSDL documents. The business process instantiates \n and routes messages to the service endpoints declared within these services' \n WSDL documents using messages that are formatted according to the WSDL message \n declarations. The BPEL syntax links the portType and operations of a set of \n web services by importing their WSDL files and declaring what sequences to \n use to receive the service messages, where to send them, when and how to reply, \n when to invoke other web services, and so forth.\n\nIn order to establish the linkages between services, the application \n developer imports the WSDL of the web services comprising the component and \n defines the partner relationships between them using the BPEL serviceLinkType \n element. This element refers to the portTypes of the web services involved \n in a flow and the partner roles that they play in relation to the process; \n the developer is then able to refer to these linkages and partner roles when \n declaring how messages should flow into and out of them.\n\nAfter declaring the relationships between services, the developer \n uses BPEL to create \"containers\" to hold the messages that the services \n use as input and output. Containers are very much like a [*Datatype Channel*](DatatypeChannel.html)\nfor the message types defined in WSDL. Depending on the \n underlying container implementation, a container could also be considered \n from the perspective of the [*Shared Database*](SharedDataBaseIntegration.html) integration style, but with added encapsulation and built-in \n collaboration semantics; a container is a shared data repository used by separate \n services. In addition to connecting containers to services through the BPEL \n elements, a container's contents can be accessed directly via XPath extensions.\n\nA BPEL component itself exposes its own input and output points \n as a single interface, and it does so in the same form that its internal web \n services use: through WSDL. It should be evident, however, that the WSDL of \n a business process component is slightly different from a web service WSDL \n document in that the business process WSDL's portTypes define entry points \n into and out of that single process, and not separate pieces of logic implemented \n as methods in a service interface.\n\nThe behavior of a BPEL component is declared as a set of actions. \n In any one specific action, a business processes can send messages to a service \n (in this case the web service is called an invoked partner), receive messages \n from a service (in this case the service is called a client partner), reply \n to a message sent by a client partner, determine whether it should send or \n receive messages based on some logical rule, wait for a scheduled period of \n time, report an error, copy a message from one place to another, or do nothing \n at all.\n\nThe BPEL XML grammar reflects each these basic actions. A \n developer uses the element to send messages to an invoked partner, and uses \n and to receive and reply to a client partner. Elements such \n as and fork logic into parallel and event-based channels of execution. The element facilitates error reporting, while the , and elements pause or halt execution. Elements to structure activities include\n , and , and conditionals in BPEL are declared using XPath \n statements.\n\nOnce a developer has created the XML source file that defines \n the services that will compose a business process, declares the message containers \n that the services will use, and declares the sequence of operations involved \n in the message exchange, he is ready to deploy the business process component. \n This is where the runtime aspects of BPEL implementations come into play.\n\nIn addition to acting as declarations of service relationships \n and message flow, BPEL descriptions are also executables file that can be \n fed into a BPEL4WS engine. When this happens, the engine interprets the file \n and sets up a series of messaging constructs for the application developer \n that connects the web services that are part of the business process. As a \n [*Process Manager*](ProcessManager.html) implementation, the BPEL4WS runtime is the governing entity that manages and \n correlates the flow of messages between services. The BPEL4WS engine accepts \n all of the necessary documents and dynamically generates and manages the messaging \n infrastructure.\n\nThe BPEL specification can be found here: [http://www-106.ibm.com/developerworks/webservices/library/ws-bpel/](http://www-106.ibm.com/developerworks/webservices/library/ws-bpel/)\n\n## Web Service Choreography Interface (WSCI)\n\nThe Web Service Choreography Interface (often pronounced \"whiskey\") \n addresses the same problem domain tackled by BPEL. The two were competing specifications\n initially backed by competing vendor alliances (with the exception of BEA, which appears\n to be hedging bets by contributing to both specifications). WSCI was backed\n by Sun, Intalio, SAP, and BEA, and has been submitted to the W3C. However, several original\n supporters of WSCI are now lending support to BPEL.\n\nWSCI is influenced by Business Process Modeling Language (BPML), \n which while not directly relevant to integration patterns does bear mentioning \n for the sake of WSCI's historical context. BPML represents business processes \n in an XML-based meta language used in process modeling. BPML's workflow aspects \n are largely part of WSCI, but BPML also includes a companion graphical notation \n and query language.\n\nLike BPEL, WSCI recognizes the fact that enterprise integration \n involves lengthy conversations among composite services rather than the single \n operational invocations assumed by basic web services protocols. WSCI provides \n a way to link service messages from multiple operations into these composite \n processes, ensuring along the way that messages are sent or received in the \n proper sequences, sent and received according to declarative business rules, \n sent in transactional fashion when needed, and portrayable and manageable \n as a single global process. Leveraging web service advantages over \n traditional proprietary MOM solutions, WSCI also accommodates the dynamic discovery\n of services, heterogeneous protocols, and decentralized coordination of workflow.\n\nLike BPEL, WSCI relies heavily upon WSDL's advertisement of \n service endpoints, portTypes, operations, and message types. WSCI actions \n directly map to operations exposed in the WSDL of the services within a choreography. Moreover, the WSCI syntax is embedded directly within a WSDL \n file; the declarations sit either in a WSDL document which imports the WSDL \n documents of the choreographed services, or within the WSDL file of a single \n service whose operations are being choreographed. WSCI elements are contained \n within the WSDL element.\n\nThe fundamental construct of WSCI is the action, in which \n web service messaging occurs. Actions are grouped within process elements \n so that they are declared to occur sequentially, in parallel, in loop, or \n conditionally. A set of processes is grouped with an interface declaration; \n this element is the interface to the process component, and it is \n directly embedded within the WSDL definitions of a web service. Many of the \n activity elements are similar to those of BPEL, and like their BPEL counterparts \n they include support for XPath expressions.\n\nThe WSCI specification can be found here: [http://wwws.sun.com/software/xml/developers/wsci/wsci-spec-10.pdf](http://wwws.sun.com/software/xml/developers/wsci/wsci-spec-10.pdf)\n\n## Java business process component standards\n\nThe Java Community Process (JCP) creates Java language APIs \n and bindings influenced by non-Java standards. In particular, standards developed \n by the Object Management Group (OMG) and the W3C have been shadowed by the \n JCP. Recently, the JCP has turned this approach toward web service standards \n developed by groups such as the WS-I, and two new much-ballyhooed JSR's are \n now underway to address Java bindings for business process components: Process \n Definition for Java (JSR-207) submitted by BEA Systems, and Java Business \n Integration (JSR-208) submitted by Sun Microsystems. While at first glance \n these two proposals may seem to overlap, they are actually fairly complimentary. \n JSR-207 specifies a way for developers to craft messaging \n or process components quickly and easily using metadata attached to Java code; JSR-208 specifies \n how those components will interact with each other, with containers, and with \n the rest of the J2EE and web services world. So JSR-207 is more or less a \n micro view and JSR-208 is a macro view of how the messaging between process \n components is to be standardized in Java.\n\n**Process Definition for Java (JSR-207)**\n\nProcess Definition for Java (JSR-207), submitted by BEA Systems, \n aims to define metadata, interfaces, and a runtime model for creating business \n processes in the Java/J2EE environment. This very important JSR intends to \n specify the standard means of crafting business process components using the \n Java language and Javadoc-like metadata annotations. Proposed as an addition \n to J2EE, the mechanism could also be used to build Java implementations of \n business process initiatives such as BPEL4WS, WSCI, and those produced by \n the W3C Choreography Working Group.\n\nThis technology builds upon Java Language Metadata technology \n (JSR-175) in order to supply a simple syntax for describing business \n processes. Metadata can be applied directly to Java source code in order to \n dynamically generate and bind process behaviors, including support for asynchronous \n messaging, parallel execution, message correlation, message routing, error \n handling, and other common flow activities. The metadata semantics, therefore, \n need to be rich enough to support the parameters needed for a component's \n container to dynamically set up the messaging infrastructure and handle \nissues described in [*Introduction to Message Construction*](MessageConstructionIntro.html) upon the component's deployment.\n\nIt is worth noting that this JSR is not needed to enable developers \n to build business process components in J2EE. It is possible to build such processes \n today -- but it is laborious work that requires developers to apply messaging \n patterns at a very low level, and results in workflows that are costly to \n maintain. This specification intends to simplify the creation of process components \n so that developers can apply their skills at a higher level, creating more\n powerful applications more rapidly that are less expensive to evolve and administer \n over time.\n\nMore details on Process definition for Java can be found here: \n [http://www.jcp.org/en/jsr/detail?id=207](http://www.jcp.org/en/jsr/detail?id=207)\n\n**Java Business Integration (JSR-208)**\n\nSun proposed Java Business Integration (JBI) in JSR-208 with \n the intention of defining service provider interfaces (SPIs) for creating \n a business integration environment for specifications such as WSCI, BPEL4WS \n and the work produced by the W3C Choreography Working Group. JBI proposes \n no new Java APIs or annotations, but does include a new deployment and packaging \n mechanism. Instead of adding APIs for developers, JBI focuses on integration \n infrastructure, and its SPIs will be visible primarily to product vendors \n who create messaging and process component models for performing integration \n work in a Java setting. The JBI expert group aims to follow the lead of the \n W3C Choreography Working Group and ensure that the work of that group will \n fit seamlessly into the J2EE platform.\n\nJBI has a fairly lofty goal: Map various systems and protocol \n standards -- that is, multiple syntaxes used to describe relationships between \n processes, including syntaxes that are proprietary and vendor-specific as \n well as those that become standard -- to one another and to J2EE. It provides \n a Java binding for message choreography regardless of the underlying message \n and process specifics. It also includes a new packaging mechanism that extends \n J2EE packaging (such as WAR, JAR, RAR and EAR) to support the deployment of \n a JBI component into a J2EE environment.\n\nJBI sees three principal roles required for supporting process \n components: Bindings, machines, and the environment. Bindings are about communication \n formats, and include message formats and network transports along with their \n mappings as well as forming an umbrella around workflow formats such as BPEL; \n machines are the service and process containers that host and manage business \n processes; the environment is the over-arching process management system that \n links heterogeneous machines and bindings to one another. JBI focuses on the\n environment as the core of the integration system, and specifies how machines \n and bindings interact with it. The JBI packaging and deployment mechanism \n is intended to provide a means of hooking processes up to the environment \n in a standard way, but the actual creation of those components is outside \n the scope of the specification.\n\nJBI views the Process Definition for Java (JSR-207) described above as \n a way of composing process components, and the runtime that will host those \n components fits into the category of a JBI machine. That machine should implement \n the [*Message Translator*](MessageTranslator.html), [*Service Activator*](MessagingAdapter.html), [*Envelope Wrapper*](EnvelopeWrapper.html)\nand other patterns necessary to expose their formats and \n protocol behaviors through JBI to ensure that it can integrate correctly with \n the integration environment.\n\nMore details on JBI can be found here: [http://www.jcp.org/en/jsr/detail?id=208](http://www.jcp.org/en/jsr/detail?id=208)\n\n## WS-*\n\nLess ambitious than the process integration specifications \n described above, a number of web services specifications are emerging to extend \n SOAP- and WSDL-based web services to include reliability, security, statefulness, \n and quality of service. Typically identifiable by the \"WS-\" prefix, \n these specifications build on the W3C technologies and each addresses a fairly \n specific problem.\n\nUnfortunately the web services standards landscape has become \n muddled with competing versions backed by competing vendor alliances, and \n perhaps as a result of this competition many of these standards are rarely \n seen implemented in the wild today. A standards shake-out seems to be looming.\n Nevertheless, these specifications are worth noting, as their idioms and tactics \n might prove useful to application developers who are applying web services \n technologies like SOAP and WSDL to messaging-based enterprise integration. \n These standards are also certain to find a home in the products of the vendors \n who propose them, including those of IBM, BEA, Microsoft, and Oracle.\n\nA few of the more notable specifications in this category \n include those dealing with transactability, reliability, routing, conversational state, and security.\n These are described below.\n\n**WS-Coordination and WS-Transaction**\n\nBeing stateless and unreliable, the most popular web service \n protocols and transports do not provide the quality of service required by \n transactional processes. This shortcoming blossoms into a critically important \n problem. In practice, it means that if a developer wishes to use a web service-based \n integration mechanism, that developer must grow his own transaction scheme within those integration mechanisms. A collection of service invocations that occur \n through asynchronous messaging must be capable of being batched atomically, \n so that the messages function as unit that can fail or rollback all at once, \n or as a unit whose failure can trigger some form of compensation. This is \n common in proprietary MOM systems. The Web Services Coordination and Web Services \n Transaction specifications tackle this problem for web services.\n\nWS-Coordination, drafted by BEA, Microsoft and IBM, specifies \n a way to create and propagate contextual information by all of the services \n participating in a flow, even asynchronously and over jagged time intervals. \n The specification describes an extensible framework for creating protocols \n that coordinate the actions of applications and services. These coordination \n protocols function by creating and registering XML-based contexts that are \n propagated with SOAP messages and used by coordinators located at all endpoints in an \n interaction.\n\nSuch contexts can be used to support a number of application \n behaviors, such as those that need to reach consistent agreement on the outcome \n of distributed transactions. Accordingly, the WS-Transaction specification \n uses WS-Coordination to implement distributed transactability across service \n invocations.\n\nWS-Transaction defines a way to monitor and message the success \n or failure of each action in a flow. Practically, this means that when a SOAP \n message arrives at an endpoint, the SOAP Header containing the coordination \n context must be filtered and pulled from the message (implementations may \n employ the [*Content Filter*](ContentFilter.html) and [*Splitter*](Sequencer.html)\n patterns for this task) and then sent to the transaction coordinator for interpretation.\n\nThe SOAP envelope excerpt below provides a simple example of a coordination context used for making SOAP operations transactable through WS-Transaction. This context information in the SOAP header is used by coordinators to register applications to receive transaction events such as enlistments, the prepare stage of a two-phase commit process, rollbacks, and commits.\n\n```\n\n\n \n\n \n\n http://foo.com/baz/bar\n 2004-12-31T18:00:00-08:00\n\n \n http://schemas.xmlsoap.org/ws/2002/08/wstx\n \n\n \n \n http://foo.com/coordinationservice/registration\n \n \n\n \n RepeatableRead\n \n\n \n\n \n\n \n\n \n```\n\nThe WS-Transaction specification defines two coordination \n types for developers to use in their applications: Atomic Transaction (AT) \n and Business Activity (BA).\n\nAtomic Transactions map fairly well to traditional distributed \n transaction technology, such as XA. They are useful for relatively short-lived \n operations in which locking of resources -- such as threads and portions of \n data sources -- are acceptable, and in which absolute rollbacks make sense. \n WS-Transaction provides a means of linking proprietary XA implementations, \n including support for two-phase commit, to web services.\n\nA Business Activity is typically a long-lived process that \n may consist of a number of atomic transactions. A global rollback is usually \n not desirable in the event of a single failure condition in a business activity; \n instead, a failure of one atomic transaction within a business activity should \n often trigger another set of service invocations and message exchanges. These \n exchanges might include compensation techniques to recover from the error \n in a way that preserves part of the history of the business activity. An example \n is a business activity that includes the booking of an airline flight, rental \n of a car, reservation of a hotel room, and reservation of theater tickets \n that a user makes over a two- or three-day period. Each activity in this flow \n may be an atomic transaction, and if one of the events should fail, the over-arching \n business activity of making the travel arrangements should adjust via compensation \n rather than through coordinated rollback of all atomic transactions.\n\nThe WS-Coordination and WS-Transaction specifications are \n promising attempts to provide reliable, rich behaviors in the event of failures \n during service messaging. As they begin to wind their way into products, they \n should take the burden off of developers to craft their own transactability \n and contextual services around message-based service applications.\n\nInformation on WS-Transaction can be found here: [http://dev2dev.bea.com/technologies/webservices/ws-transaction.jsp](http://dev2dev.bea.com/technologies/webservices/ws-transaction.jsp)\n\n**WS-Reliability and WS-ReliableMessaging**\n\nIt is common for message-based interactions between web services \n to require reliable, guaranteeable messaging even in the event of network, \n application, or component failures, and to include persistence mechanisms \n and resend semantics. The most popular web service technologies do not provide \n such reliability, however; SOAP without enhancements, for example, isn't comprehensively \n useful in many enterprise messaging scenarios because its most popular bindings \n don't reliably guarantee message delivery.\n\nTo remedy this, application developers are typically forced \n to implement reliability themselves using the extensibility of web service \n mechanisms such as SOAP Headers. To eliminate the need for application developers \n to take on this task, new standards are emerging to tackle web service reliability. \n Two such specifications are WS-Reliability and WS-ReliableMessaging. As is \n common in the nascent web services standards space, these two standards are competing, \n backed by different groups of vendors aimed at the same problem domain.\n\nWeb Services Reliability (WS-Reliability) provides SOAP-based \n web services with the ability to exchange messages asynchronously with guaranteed \n delivery, without duplicates, and with message ordering. It is a SOAP standard \n for managing message aggregation and sequencing, and provides a standard tactic \n for implementing the[*Guaranteed Delivery*](GuaranteedMessaging.html)\nand [*Resequencer*](Resequencer.html)\n patterns, among others. WS-Reliability leverages the SOAP Header mechanism \n to add the header elements MessageHeader, ReliableMessage, MessageOrder, and \n RMResponse to SOAP messages. These elements denote message identifiers such \n as group ids and sequence numbers, timestamps, time to live values, message \n type values, sender and receiver information, and acknowledgment callback \n information. WS-Reliability is produced by a number of vendors, including \n Sun, Oracle, and Sonic, and it has been submitted to OASIS. It is heavily influenced by the functionality of the \n ebXML Message Service (ebMS) described above.\n\nTo conform to WS-Reliability, the receiver of a SOAP message \n must respond with either a fault or an acknowledgement using the RMResponse \n element in a SOAP header. If such an acknowledgement is not received, then \n the sender will resend the same message using the same message identifier. \n The sender is required to persist the message until its time to live value \n has expired, or until acknowledgment or failure has occurred; the receiver \n is also required to persist the message until it can be reliably transmitted \n to the application layer.\n\nTo ensure that once-and-only-once message behaviors are enforced, \n WS-Reliability provides a sequence number mechanism which can be enabled based \n on application requirements. Separate messages that are grouped together may \n share the same group identifier, but will advertise their own sequence numbers \n within the SOAP header, allowing receivers to resequence the messages before \n delivering them to the application.\n\nThe WS-Reliability specification can be found here: [http://www.oasis-open.org/committees/documents.php?wg_abbrev=wsrm](http://www.oasis-open.org/committees/documents.php?wg_abbrev=wsrm)\n\nThe Web Services Reliable Messaging (WS-ReliableMessaging) \n specification describes a similar protocol that allows messages to be delivered \n reliably between distributed applications in the presence of failures. The \n protocol is described in an independent manner, allowing it to be implemented \n using a variety of network transport technologies and bindings. The specification does include one specific binding for SOAP. WS-ReliableMessaging \n is backed by BEA, IBM, and Microsoft and has not yet been released to a standards \n body.\n\nWS-ReliableMessaging operates on the same principles as WS-Reliability. \n It makes similar use of acknowledgements, callbacks, identifiers, implies \n similar usage of persistent message caches, and offers detailed fault messages. \n It ensures that messages are delivered according to any of four basic delivery \n assurances: At most once, at least once, exactly once, and in order. An example of a message sequence delivered through WS-ReliableMessaging is illustrated below.\n\n*Figure 3: WS-ReliableMessaging provides guaranteed sequential delivery through a series of acknowledgment callbacks that rely on unique ID's inserted into the SOAP header element.*\n\nA key difference between the two competing reliability specifications \n is that WS-ReliableMessaging includes usage of other critical web services \n specifications, such as WS-Security and WS-Addressing. In practice, this means \n that WS-ReliableMessaging uses specific idioms from other standards for supplying\n this information, whereas WS-Reliability supports the features but does not \n yet insist on the idiomatic forms specified in the other new standards.\n\nMore information on WS-ReliableMessaging can be found here: \n [http://dev2dev.bea.com/technologies/webservices/ws-reliablemessaging.jsp](http://dev2dev.bea.com/technologies/webservices/ws-reliablemessaging.jsp)\n\n**WS-Conversation**\n\nWeb Services Conversation (WS-Conversation) specifies a protocol \n for managing stateful asynchronous message exchange between a sender and receiver, \n usually across two SOAP endpoints. In contrast to relying on an encapsulating \n business process component for managing stateful message exchange among multiple \n partners, this proposal provides a simple means of accomplishing the same \n thing between a single client and single service (where the client may also \n be a service).\n\nThe protocol leverages the SOAP Header mechanism to send identifiers, \n or token ids, along with SOAP messages. When a stateful conversation is begun, \n the element is used to supply a conversation identifier and callback \n URI. Subsequent messages that are part of the same conversation use the \n and the for further requests and replies, and these elements \n will include the same identifier established when the conversation was started.\n\nThe SOAP Header mechanism can be used to implement these patterns \n without use of these standard mechanisms, though there is benefit in establishing\n a common mechanism for clients and services across platforms. It is a formalization \n of the [*Aggregator*](Aggregator.html) and [*Composed Message Processor*](DistributionAggregate.html)\npatterns using [*Correlation Identifier*](CorrelationIdentifier.html)\nfor the purposes of mapping multiple messages to a single \n session.\n\nThe approach of externalizing state management through a process \n component or choreography seems more promising for larger-scale integration \n projects where it is useful for simplicity's sake to consider the services \n and components as black boxes, but WS-Conversation is an example of what can \n be done when greater control over the services and clients is possible.\n\n**WS-Security**\n\nWhile standards such as WS-ReliableMessaging, WS-Coordination, and WS-Addressing\n provide various mechanisms that identify the sender of a message, none of those\n specifications guarantee that the sender actually owns the identity it claims. The\n elements of the WS-I Basic Profile -- XML Schema, SOAP, WSDL and UDDI -- make no\n mention of how identity is verified and guaranteed, or how message integrity\n is to be maintained. Early adopters of web services either kept their services\n open and available to all, or developed proprietary security protocols in order\n to fill this gap. The proprietary and private approaches created an undesirable\n coupling between message senders and receivers, something particuarly galling in\n otherwise asynchronous and loosely coupled federations of message nodes.\n\nWS-Security, also referred to as the Web Services Security Language, is the proposed\n standard means of addressing these issues. Of all the WS-* specifications, it enjoys\n perhaps the broadest level of consensus among the major web service platform vendors.\n Created by a consortium consisting of Microsoft, IBM, and Verisign, it is now part of\n OASIS; it has received votes of confidence from the likes of Sun, BEA, Intel, SAP,\n IONA, RSA Security, and others.\n\nWS-Security does not propose new security technologies, but rather it bridges SOAP and\n existing security technologies. It provides a generic, extensible means of associating\n security tokens with SOAP messages and propagating those tokens to SOAP endpoints. It\n also specifies the standard approach to encoding binary security tokens, such as digital\n certificates and Kerberos tickets, in SOAP messages. It does not describe specific fixed\n protocols, but rather establishes a general set of mechanisms for implementing any number\n of security protocols and incorporating any number of trust domains, signature formats,\n and encryption technologies. In as much as it can include use of digital certificates,\n digests, and implementations of technologies such as PKI, Kerberos, SSL and the like,\n WS-Security represents a way to apply familiar Internet security standbys to SOAP endpoints.\n\nIn addition to verification of sender identity, WS-Security may also protect message integrity --\n that is, protect it from intermediary prying eyes during network transmission -- by leveraging the\n W3C XML Signature and XML Encryption standards. In cases in which intermediary actors and third\n party services are not involved, however, the use of HTTPS is a common alternative means of protecting\n SOAP messages in transit.\n\nThe security model specifies that a SOAP message sender makes a series of claims such as\n the sender's identity, group, privilege, and the like. These claims are collected in the form\n of a signed security token. The receiver of the message is charged with endorsing the claims.\n The tokens and signatures are carried in a SOAP Header block, specifically under the\n header element in the WS-Security namespace. If an error occurs when the\n receiver endorses claims, that error will be one of two types: \"unsupported\" errors, which\n indicate that the endpoint does not support a particular token or encryption algorithm; and\n \"failure\" errors, which indicate most other errors, including all those related to invalid\n tokens and signatures. The specification does not mandate that failure errors always be reported,\n as they may be the result of an attack. When errors are reported, they take the form of SOAP Faults\n with fault codes defined in the specification.\n\nThe WS-Security specification can be found on the web sites of each of its co-authoring vendors,\n including the following location at IBM: [http://www-106.ibm.com/developerworks/library/ws-secure/](http://www-106.ibm.com/developerworks/library/ws-secure/)\n\n**WS-Addressing, WS-Policy other WS- Specifications**\n\nThere are a number of other proposed \"WS-\" specifications \n with varying degrees of support and acceptance. Some are quite narrow in scope, \n such as WS-Addressing which defines XML elements to identify web service endpoints \n in messages. This specification aims to support messaging through intermediaries \n such as endpoint managers, proxies, firewalls, and gateways in a transport-neutral \n manner. Essentially, WS-Addressing is a standard way to denote who a message \n is from (\"From:\") and who it is to (\"To:\"). It provides \n a means to plug SOAP-based web services into [*Recipient List*](RecipientList.html)\n solutions. As it provides a means of specifying where to direct a reply, it appears\n destined to be the standard web services approach to resolving the issues raised in\n [*Return Address*](ReturnAddress.html).\n\nA means of supplying metadata about services, the Web Services \n Policy Framework (WS-Policy) offers a syntax for describing the policies of \n a web service. Such policies include service requirements, preferences, capabilities, \n and quality of service metadata. The accompanying Web Services Policy Assertions \n Language (WS-PolicyAssertions) specifies a means of asserting that a message \n or service endpoint supports a particular policy. It involves investigating\n the WS-Policy declarations in search of a specific required policy. Finally, \n the Web Services Policy Attachment (WS-PolicyAttachment) describes how these \n policy standards fit into existing web service technologies. It specifies \n how to associate policy expressions with WSDL type definitions and UDDI entities, \n and it defines how to associate implementation-specific policies with all \n or part of a WSDL portType.\n\nNew WS-* specifications are surfacing quickly as vendors race \n to formalize the implementation practices that application developers are \n following, staking a claim to valuable web service intellectual property in \n the process. Wise application developers will keep an eye on interesting standards \n and cull idioms from them when useful, but will also bear in mind that the \n pattern and not the implementation idiom is most important to crafting a message-based \n application. The emerging WS- standards are not yet required for implementing \n interoperable enterprise messaging systems, and where they become hindrances \n or distractions, they should boldly be ignored until mature.\n\n## Summary\n\nAt their best, standards extend the reach of design patterns \n by ensuring that different implementations of the same pattern are interoperable. \n Many efforts are underway to extend messaging patterns through web service \n standards; many of these standards focus on the composition and behavior of \n workflow components called business process components. Standards such as \n BPEL, WSCI, and the WS-* specifications tackle many of the problems described \n in this book, and implement several of the patterns in this pattern language.\n\nStill, the emerging standards stories are occasionally conflicting \n and can be confusing. They're certainly not all ready for prime time. When\n applying a pattern, an application developer should avoid getting bogged down \n by standards and stay focused instead on the particular use cases at hand. \n Take a look at how certain standards are approaching a problem, and adopt \n those tactical, idiomatic implementations of a pattern if it makes sense, \n or if it's helpful during implementation -- regardless of whether the approach \n is standardized across vendor products. Developers can also provide feedback \n to standards organizations to challenge, criticize, and otherwise ensure that \n standards become practically useful and not academic or vendor exercises. \n As standards mature, architects are wise to consider how their use might extend \n enterprise integration solutions to broader, less risky, less costly, and \n more powerful levels of sophistication.\n\n## Integration Pattern Language\n\n[Message Construct.](MessageConstructionIntro.html)\n\n[Message](Message.html)\n\n[Command Message](CommandMessage.html)\n\n[Document Message](DocumentMessage.html)\n\n[Event Message](EventMessage.html)\n\n[Request-Reply](RequestReply.html)\n\n[Return Address](ReturnAddress.html)\n\n[Correlation Identifier](CorrelationIdentifier.html)\n\n[Message Sequence](MessageSequence.html)\n\n[Message Expiration](MessageExpiration.html)\n\n[Format Indicator](FormatIndicator.html)\n\n[Message Routing](MessageRoutingIntro.html)\n\n[Pipes-and-Filters](PipesAndFilters.html)\n\n[Message Router](MessageRouter.html)\n\n[Content-based Router](ContentBasedRouter.html)\n\n[Message Filter](Filter.html)\n\n[Dynamic Router](DynamicRouter.html)\n\n[Recipient List](RecipientList.html)\n\n[Splitter](Sequencer.html)\n\n[Aggregator](Aggregator.html)\n\n[Resequencer](Resequencer.html)\n\n[Composed Msg. Processor](DistributionAggregate.html)\n\n[Scatter-Gather](BroadcastAggregate.html)\n\n[Routing Slip](RoutingTable.html)\n\n[Process Manager](ProcessManager.html)\n\n[Message Broker](MessageBroker.html)\n\n[Message\nTransformation](MessageTransformationIntro.html)\n\n[Message Translator](MessageTranslator.html)\n\n[Envelope Wrapper](EnvelopeWrapper.html)\n\n[Content Enricher](DataEnricher.html)\n\n[Content Filter](ContentFilter.html)\n\n[Claim Check](StoreInLibrary.html)\n\n[Normalizer](Normalizer.html)\n\n[Canonical Data Model](CanonicalDataModel.html)\n\n[Messaging Endpoints](MessagingEndpointsIntro.html)\n\n[Message Endpoint](MessageEndpoint.html)\n\n[Messaging Gateway](MessagingGateway.html)\n\n[Messaging Mapper](MessagingMapper.html)\n\n[Transactional Client](TransactionalClient.html)\n\n[Polling Consumer](PollingConsumer.html)\n\n[Event-driven Consumer](EventDrivenConsumer.html)\n\n[Competing Consumers](CompetingConsumers.html)\n\n[Message Dispatcher](MessageDispatcher.html)\n\n[Selective Consumer](MessageSelector.html)\n\n[Durable Subscriber](DurableSubscription.html)\n\n[Idempotent Receiver](IdempotentReceiver.html)\n\n[Service Activator](MessagingAdapter.html)\n\n[Messaging Channels](MessagingChannelsIntro.html)\n\n[Message Channel](MessageChannel.html)\n\n[Point-to-Point Channel](PointToPointChannel.html)\n\n[Publish-Subscr. Channel](PublishSubscribeChannel.html)\n\n[Datatype Channel](DatatypeChannel.html)\n\n[Invalid Message Channel](InvalidMessageChannel.html)\n\n[Dead Letter Channel](DeadLetterChannel.html)\n\n[Guaranteed Delivery](GuaranteedMessaging.html)\n\n[Channel Adapter](ChannelAdapter.html)\n\n[Messaging Bridge](MessagingBridge.html)\n\n[Message Bus](MessageBus.html)\n\n[Systems Mgmt.](SystemManagementIntro.html)\n\n[Control Bus](ControlBus.html)\n\n[Detour](Detour.html)\n\n[Wire Tap](WireTap.html)\n\n[Message History](MessageHistory.html)\n\n[Message Store](MessageStore.html)\n\n[Smart Proxy](SmartProxy.html)\n\n[Test Message](TestMessage.html)\n\n[Channel Purger](ChannelPurger.html)", "znaku_textu": 62972, "slov": 8754, "odkazu": 121, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 14:56:19", "sha256": "d17b36f6690f17a59d9b99f45c502726d2aa1fa206d1dbba93ea63ff02aee757", "hloubka": 3, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://www.w3c.org/", "http://www.oasis-open.org/home/index.php", "http://www.ws-i.org/", "http://www.jcp.org/", "http://www.ebxml.org/", "http://www.ebxml.org/specs/ebMS2.pdf", "http://www-106.ibm.com/developerworks/webservices/library/ws-bpel/", "http://wwws.sun.com/software/xml/developers/wsci/wsci-spec-10.pdf", "http://www.jcp.org/en/jsr/detail?id=207", "http://www.jcp.org/en/jsr/detail?id=208", "http://dev2dev.bea.com/technologies/webservices/ws-transaction.jsp", "http://www.oasis-open.org/committees/documents.php?wg_abbrev=wsrm", "http://dev2dev.bea.com/technologies/webservices/ws-reliablemessaging.jsp", "http://www-106.ibm.com/developerworks/library/ws-secure/", "https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "https://www.architectelevator.com/book", "https://www.cloudstrategybook.com/", "https://www.platformstrategybook.info/"]} {"url": "http://www.enterpriseintegrationpatterns.com/patterns/messaging/GuaranteedMessaging.html", "titulek": "Guaranteed Delivery - Enterprise Integration Patterns", "h1": "", "popis": "How can the sender make sure that a message will be delivered, even if the messaging system fails?", "klicova_slova": "Guaranteed Delivery,integration, messaging, events, patterns, event-driven, coupling, eai, middleware, application integration, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns", "og:title": "Guaranteed Delivery - Enterprise Integration Patterns", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/GuaranteedMessaging.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/GuaranteedMessagingSolution.gif"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Integration Pattern Language"}], "markdown": "Messaging Patterns\n\n[Messaging Patterns](index.html)\n\n- [Integration Styles](IntegrationStylesIntro.html)\n- [Messaging Systems](MessagingComponentsIntro.html)\n- [Messaging Channels](MessagingChannelsIntro.html)\n- [Message Construction](MessageConstructionIntro.html)\n- [Interlude: Simple Messaging](SimpleMessagingIntro.html)\n- [Message Routing](MessageRoutingIntro.html)\n- [Message Transformation](MessageTransformationIntro.html)\n- [Interlude: Composed Messaging](ComposedMessagingExample.html)\n- [Messaging Endpoints](MessagingEndpointsIntro.html)\n- [System Management](SystemManagementIntro.html)\n- Interlude: Systems Management Example\n- Integration Patterns in Practice\n- Concluding Remarks\n- Appendices\n\n| | Guaranteed Delivery[Messaging Patterns](index.html) » [Messaging Channels](MessagingChannelsIntro.html) | [Contents](toc.html)[⇐ Prev](DeadLetterChannel.html)[Next ⇒](ChannelAdapter.html) |\n| --- | --- | --- |\n\nAn enterprise is using [*Messaging*](Messaging.html) to integrate applications.\n\nHow can the sender make sure that a message will be delivered, even if the messaging system fails?\n\nUse *Guaranteed Delivery* to make messages persistent so that they are not lost even if the messaging system crashes.\n\nWith *Guaranteed Delivery*, the messaging system uses a built-in data store to persist messages. Each computer the messaging system is installed on has its own data store so that the messages can be stored locally. When the sender sends a message, the send operation does not complete successfully until the message is safely stored in the sender’s data store. Subsequently, the message is not deleted from one data store until it is successfully forwarded to and stored in the next data store. In this way, once the sender successfully sends the message, it is always stored on disk on at least one computer until is successfully delivered to and acknowledged by the receiver.\n\n...\nRead the entire pattern in the book [Enterprise Integration Patterns](/books1.html)\n\n**Related patterns:**\n\n[*Durable Subscriber*](DurableSubscription.html), [*Event Message*](EventMessage.html), [*Message Expiration*](MessageExpiration.html), [*Messaging*](Messaging.html), [*Point-to-Point Channel*](PointToPointChannel.html), [*Publish-Subscribe Channel*](PublishSubscribeChannel.html), [*Transactional Client*](TransactionalClient.html)\n\n---\n\n## Integration Pattern Language\n\n[Message Construct.](MessageConstructionIntro.html)\n\n[Message](Message.html)\n\n[Command Message](CommandMessage.html)\n\n[Document Message](DocumentMessage.html)\n\n[Event Message](EventMessage.html)\n\n[Request-Reply](RequestReply.html)\n\n[Return Address](ReturnAddress.html)\n\n[Correlation Identifier](CorrelationIdentifier.html)\n\n[Message Sequence](MessageSequence.html)\n\n[Message Expiration](MessageExpiration.html)\n\n[Format Indicator](FormatIndicator.html)\n\n[Message Routing](MessageRoutingIntro.html)\n\n[Pipes-and-Filters](PipesAndFilters.html)\n\n[Message Router](MessageRouter.html)\n\n[Content-based Router](ContentBasedRouter.html)\n\n[Message Filter](Filter.html)\n\n[Dynamic Router](DynamicRouter.html)\n\n[Recipient List](RecipientList.html)\n\n[Splitter](Sequencer.html)\n\n[Aggregator](Aggregator.html)\n\n[Resequencer](Resequencer.html)\n\n[Composed Msg. Processor](DistributionAggregate.html)\n\n[Scatter-Gather](BroadcastAggregate.html)\n\n[Routing Slip](RoutingTable.html)\n\n[Process Manager](ProcessManager.html)\n\n[Message Broker](MessageBroker.html)\n\n[Message\nTransformation](MessageTransformationIntro.html)\n\n[Message Translator](MessageTranslator.html)\n\n[Envelope Wrapper](EnvelopeWrapper.html)\n\n[Content Enricher](DataEnricher.html)\n\n[Content Filter](ContentFilter.html)\n\n[Claim Check](StoreInLibrary.html)\n\n[Normalizer](Normalizer.html)\n\n[Canonical Data Model](CanonicalDataModel.html)\n\n[Messaging Endpoints](MessagingEndpointsIntro.html)\n\n[Message Endpoint](MessageEndpoint.html)\n\n[Messaging Gateway](MessagingGateway.html)\n\n[Messaging Mapper](MessagingMapper.html)\n\n[Transactional Client](TransactionalClient.html)\n\n[Polling Consumer](PollingConsumer.html)\n\n[Event-driven Consumer](EventDrivenConsumer.html)\n\n[Competing Consumers](CompetingConsumers.html)\n\n[Message Dispatcher](MessageDispatcher.html)\n\n[Selective Consumer](MessageSelector.html)\n\n[Durable Subscriber](DurableSubscription.html)\n\n[Idempotent Receiver](IdempotentReceiver.html)\n\n[Service Activator](MessagingAdapter.html)\n\n[Messaging Channels](MessagingChannelsIntro.html)\n\n[Message Channel](MessageChannel.html)\n\n[Point-to-Point Channel](PointToPointChannel.html)\n\n[Publish-Subscr. Channel](PublishSubscribeChannel.html)\n\n[Datatype Channel](DatatypeChannel.html)\n\n[Invalid Message Channel](InvalidMessageChannel.html)\n\n[Dead Letter Channel](DeadLetterChannel.html)\n\n[Guaranteed Delivery](GuaranteedMessaging.html)\n\n[Channel Adapter](ChannelAdapter.html)\n\n[Messaging Bridge](MessagingBridge.html)\n\n[Message Bus](MessageBus.html)\n\n[Systems Mgmt.](SystemManagementIntro.html)\n\n[Control Bus](ControlBus.html)\n\n[Detour](Detour.html)\n\n[Wire Tap](WireTap.html)\n\n[Message History](MessageHistory.html)\n\n[Message Store](MessageStore.html)\n\n[Smart Proxy](SmartProxy.html)\n\n[Test Message](TestMessage.html)\n\n[Channel Purger](ChannelPurger.html)\n\n- » [Read the latest in My Blog](/ramblings)\n- » [Get more insights from My Articles](/articles.html)\n- » [See me live in my Upcoming Talks](/talks)\n\nYou can reuse the following elements under the [Creative Commons Attribution](http://creativecommons.org/licenses/by/4.0/) license: pattern icon, pattern name, problem and solution statements (in bold), and the sketch. Other portions are protected by copyright.\n\n[Enterprise Integration Patterns](https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20)\nThe de-facto language for designing asynchronous, distributed systems. Over 100,000 copies sold.\n\n[The Software Architect Elevator](https://www.architectelevator.com/book)\n\n Rethink the role of architects as a connecting element across organizational layers. Acquire the technical, communication, and organizational skills to succeed in this new role.\n\n[Cloud Strategy](https://www.cloudstrategybook.com)\n\n Make your cloud migration a success by translating high-level goals into conscious decisions with well-understood trade-offs.\n\n[Platform Strategy](https://www.platformstrategybook.info)\n\n Platforms can boost innovation through harmonization, but they aren't easy to build. Learn from over a decade of designing and rolling out IT platforms.", "znaku_textu": 6304, "slov": 538, "odkazu": 108, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/GuaranteedMessaging.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 14:55:14", "sha256": "4efebed2bd57249fea064f02cf12f1ca8ecd5294370adf6e1ca73b451ad3a9b0", "hloubka": 3, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://creativecommons.org/licenses/by/4.0/", "https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "https://www.architectelevator.com/book", "https://www.cloudstrategybook.com/", "https://www.platformstrategybook.info/"]} {"url": "http://www.enterpriseintegrationpatterns.com/patterns/messaging/IdempotentReceiver.html", "titulek": "Idempotent Receiver - Enterprise Integration Patterns", "h1": "", "popis": "How can a message receiver deal with duplicate messages?", "klicova_slova": "Idempotent Receiver,integration, messaging, events, patterns, event-driven, coupling, eai, middleware, application integration, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns", "og:title": "Idempotent Receiver - Enterprise Integration Patterns", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/IdempotentReceiver.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/eip1_patterns_wide.png"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Integration Pattern Language"}], "markdown": "Messaging Patterns\n\n[Messaging Patterns](index.html)\n\n- [Integration Styles](IntegrationStylesIntro.html)\n- [Messaging Systems](MessagingComponentsIntro.html)\n- [Messaging Channels](MessagingChannelsIntro.html)\n- [Message Construction](MessageConstructionIntro.html)\n- [Interlude: Simple Messaging](SimpleMessagingIntro.html)\n- [Message Routing](MessageRoutingIntro.html)\n- [Message Transformation](MessageTransformationIntro.html)\n- [Interlude: Composed Messaging](ComposedMessagingExample.html)\n- [Messaging Endpoints](MessagingEndpointsIntro.html)\n- [System Management](SystemManagementIntro.html)\n- Interlude: Systems Management Example\n- Integration Patterns in Practice\n- Concluding Remarks\n- Appendices\n\n| | Idempotent Receiver[Messaging Patterns](index.html) » [Messaging Endpoints](MessagingEndpointsIntro.html) | [Contents](toc.html)[⇐ Prev](DurableSubscription.html)[Next ⇒](MessagingAdapter.html) |\n| --- | --- | --- |\n\nEven when a sender application only sends a message once, the receiver application may receive the message more than once.\n\nHow can a message receiver deal with duplicate messages?\n\nDesign a receiver to be an *Idempotent Receiver*--one that can safely receive the same message multiple times.\n\nThe term *idempotent* is used in mathematics to describe a function that produces the same result if it is applied to itself, i.e. f(x) = f(f(x)). In [*Messaging*](Messaging.html) this concepts translates into a message that has the same effect whether it is received once or multiple times. This means that a message can safely be resent without causing any problems even if the receiver receives duplicates of the same message.\n\nIdempotency can be achieved through two primary means:\n\n1. Explicit \"de-duping\", i.e. the removal of duplicate messages.\n2. Defining the message semantics to support idempotency.\n\n...\nRead the entire pattern in the book [Enterprise Integration Patterns](/books1.html)\n\n**Related patterns:**\n\n[*Command Message*](CommandMessage.html), [*Guaranteed Delivery*](GuaranteedMessaging.html), [*Messaging*](Messaging.html), [*Resequencer*](Resequencer.html)\n\n---\n\n## Integration Pattern Language\n\n[Message Construct.](MessageConstructionIntro.html)\n\n[Message](Message.html)\n\n[Command Message](CommandMessage.html)\n\n[Document Message](DocumentMessage.html)\n\n[Event Message](EventMessage.html)\n\n[Request-Reply](RequestReply.html)\n\n[Return Address](ReturnAddress.html)\n\n[Correlation Identifier](CorrelationIdentifier.html)\n\n[Message Sequence](MessageSequence.html)\n\n[Message Expiration](MessageExpiration.html)\n\n[Format Indicator](FormatIndicator.html)\n\n[Message Routing](MessageRoutingIntro.html)\n\n[Pipes-and-Filters](PipesAndFilters.html)\n\n[Message Router](MessageRouter.html)\n\n[Content-based Router](ContentBasedRouter.html)\n\n[Message Filter](Filter.html)\n\n[Dynamic Router](DynamicRouter.html)\n\n[Recipient List](RecipientList.html)\n\n[Splitter](Sequencer.html)\n\n[Aggregator](Aggregator.html)\n\n[Resequencer](Resequencer.html)\n\n[Composed Msg. Processor](DistributionAggregate.html)\n\n[Scatter-Gather](BroadcastAggregate.html)\n\n[Routing Slip](RoutingTable.html)\n\n[Process Manager](ProcessManager.html)\n\n[Message Broker](MessageBroker.html)\n\n[Message\nTransformation](MessageTransformationIntro.html)\n\n[Message Translator](MessageTranslator.html)\n\n[Envelope Wrapper](EnvelopeWrapper.html)\n\n[Content Enricher](DataEnricher.html)\n\n[Content Filter](ContentFilter.html)\n\n[Claim Check](StoreInLibrary.html)\n\n[Normalizer](Normalizer.html)\n\n[Canonical Data Model](CanonicalDataModel.html)\n\n[Messaging Endpoints](MessagingEndpointsIntro.html)\n\n[Message Endpoint](MessageEndpoint.html)\n\n[Messaging Gateway](MessagingGateway.html)\n\n[Messaging Mapper](MessagingMapper.html)\n\n[Transactional Client](TransactionalClient.html)\n\n[Polling Consumer](PollingConsumer.html)\n\n[Event-driven Consumer](EventDrivenConsumer.html)\n\n[Competing Consumers](CompetingConsumers.html)\n\n[Message Dispatcher](MessageDispatcher.html)\n\n[Selective Consumer](MessageSelector.html)\n\n[Durable Subscriber](DurableSubscription.html)\n\n[Idempotent Receiver](IdempotentReceiver.html)\n\n[Service Activator](MessagingAdapter.html)\n\n[Messaging Channels](MessagingChannelsIntro.html)\n\n[Message Channel](MessageChannel.html)\n\n[Point-to-Point Channel](PointToPointChannel.html)\n\n[Publish-Subscr. Channel](PublishSubscribeChannel.html)\n\n[Datatype Channel](DatatypeChannel.html)\n\n[Invalid Message Channel](InvalidMessageChannel.html)\n\n[Dead Letter Channel](DeadLetterChannel.html)\n\n[Guaranteed Delivery](GuaranteedMessaging.html)\n\n[Channel Adapter](ChannelAdapter.html)\n\n[Messaging Bridge](MessagingBridge.html)\n\n[Message Bus](MessageBus.html)\n\n[Systems Mgmt.](SystemManagementIntro.html)\n\n[Control Bus](ControlBus.html)\n\n[Detour](Detour.html)\n\n[Wire Tap](WireTap.html)\n\n[Message History](MessageHistory.html)\n\n[Message Store](MessageStore.html)\n\n[Smart Proxy](SmartProxy.html)\n\n[Test Message](TestMessage.html)\n\n[Channel Purger](ChannelPurger.html)\n\n- » [Read the latest in My Blog](/ramblings)\n- » [Get more insights from My Articles](/articles.html)\n- » [See me live in my Upcoming Talks](/talks)\n\nYou can reuse the following elements under the [Creative Commons Attribution](http://creativecommons.org/licenses/by/4.0/) license: pattern icon, pattern name, problem and solution statements (in bold), and the sketch. Other portions are protected by copyright.\n\n[Enterprise Integration Patterns](https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20)\nThe de-facto language for designing asynchronous, distributed systems. Over 100,000 copies sold.\n\n[The Software Architect Elevator](https://www.architectelevator.com/book)\n\n Rethink the role of architects as a connecting element across organizational layers. Acquire the technical, communication, and organizational skills to succeed in this new role.\n\n[Cloud Strategy](https://www.cloudstrategybook.com)\n\n Make your cloud migration a success by translating high-level goals into conscious decisions with well-understood trade-offs.\n\n[Platform Strategy](https://www.platformstrategybook.info)\n\n Platforms can boost innovation through harmonization, but they aren't easy to build. Learn from over a decade of designing and rolling out IT platforms.", "znaku_textu": 6057, "slov": 505, "odkazu": 108, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/IdempotentReceiver.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 14:56:05", "sha256": "e9c278723f6c5bdcab0fdd9c410e8a17bc4eda0b2f63aefb8fe4afb22d76a86d", "hloubka": 3, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://creativecommons.org/licenses/by/4.0/", "https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "https://www.architectelevator.com/book", "https://www.cloudstrategybook.com/", "https://www.platformstrategybook.info/"]} {"url": "http://www.enterpriseintegrationpatterns.com/patterns/messaging/IntegrationStylesIntro.html", "titulek": "Introduction to Integration Styles - Enterprise Integration Patterns", "h1": "", "popis": "Enterprise integration is the task of making separate applications work together to produce a unified set of functionality. Some applications may be custom developed in-house while others are bought from third-party vendors. The applications probably run on multiple computers, which may represent multiple platforms, and may be geographically dispersed. Some of the applications may be run outside of the enterprise by business partners or customers. Some applications may need to be integrated even though they were not designed for integration and cannot be changed. These issues and others like them are what make application integration difficult. This chapter will explore the options available for application integration.", "klicova_slova": "Introduction to Integration Styles,integration, messaging, events, patterns, event-driven, coupling, eai, middleware, application integration, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns", "og:title": "Introduction to Integration Styles - Enterprise Integration Patterns", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/IntegrationStylesIntro.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/eip1_patterns_wide.png"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Application Integration Criteria"}, {"uroven": 2, "text": "Application Integration Options"}, {"uroven": 2, "text": "Integration Pattern Language"}], "markdown": "| | Introduction to Integration Styles[Messaging Patterns](index.html) » [Integration Styles](IntegrationStylesIntro.html) | [Contents](toc.html)[⇐ Prev](Chapter1.html)[Next ⇒](FileTransferIntegration.html) |\n| --- | --- | --- |\n\nEnterprise integration is the task of making separate applications work together to produce a unified set of functionality. Some applications may be custom developed in-house while others are bought from third-party vendors. The applications probably run on multiple computers, which may represent multiple platforms, and may be geographically dispersed. Some of the applications may be run outside of the enterprise by business partners or customers. Some applications may need to be integrated even though they were not designed for integration and cannot be changed. These issues and others like them are what make application integration difficult. This chapter will explore the options available for application integration.\n\n## Application Integration Criteria\n\nWhat makes for good application integration? If integration needs were always the same, there would only be one integration style. Yet like any complex technological effort, application integration involves a range of considerations and consequences that should be taken into account for any integration opportunity.\n\nThe first criterion is **application integration** itself. If you can develop a single, stand-alone application that doesn’t need to collaborate with any other applications, you can avoid the whole integration issue entirely. Realistically, though, even a simple enterprise has multiple applications, applications that need to work together to provide a unified experience for the enterprise’s employees, partners, and customers.\n\nThe other main decision criteria are:\n\n**Application coupling** — Even integrated applications should minimize their dependencies on each other so that each can evolve without causing problems for the others. Tightly coupled applications make numerous assumptions about how the other applications work; when the applications change and break those assumptions, the integration breaks. The interface for integrating applications should be specific enough to implement useful functionality, but general enough to allow that implementation to change as needed.\n\n**Integration simplicity** — When integrating an application into an enterprise, developers should strive to minimize changing the application and minimize the amount of integration code needed. Yet changes and new code will usually be necessary to provide good integration functionality, and the approaches with the least impact on the application may not provide the best integration into the enterprise.\n\n**Integration technology** — Different integration techniques require varying amounts of specialized software and hardware. These special tools can be expensive, can lead to vendor lock-in, and increase the burden on developers to understand how to use the tools to integrate applications.\n\n**Data format** — Integrated applications must agree on the format of the data they exchange, or must have an intermediate traslator to unify applications that insist on different data formats. A related issue is **data format evolution and extensibility**—how the format can change over time and how that will affect the applications.\n\n**Data timeliness** — Integration should minimize the length of time between when one application decides to share some data and other applications have that data. Data should be exchanged frequently in small chunks, rather than waiting to exchange a large set of unrelated items. Applications should be informed as soon as shared data is ready for consumption. Latency in data sharing has to be factored into the integration design; the longer sharing can take, the more opportunity for shared data to become stale, and the more complex integration becomes.\n\n**Data or functionality** — Integrated applications may not want to simply share data, they may wish to share functionality such that each application can invoke the functionality in the others. Invoking functionality remotely can be difficult to achieve, and even though it may seem the same as invoking local functionality, it works quite differently, with significant consequences for how well the integration works.\n\n**Asynchronicity** — Computer processing is typically synchronous, such that a procedure waits while its subprocedure executes. It’s a given that the subprocedure is available when the procedure wants to invoke it. However, a procedure may not want to wait for the subprocedure to execute; it may want to invoke the subprocedure asynchronously, starting the subprocedure but then letting it execute in the background. This is especially true of integrated applications, where the remote application may not be running or the network may be unavailable—the source application may wish to simply make shared data available or log a request for a subprocedure call, but then go on to other work confident that the remote application will act sometime later.\n\nAs you can see, there are several different criteria that must be considered when choosing and designing an integration approach. The question then becomes: Which integration approaches best address which of these criteria?\n\n## Application Integration Options\n\nThere’s more than one approach for integrating applications. Each approach addresses some of the integration criteria better than others. The various approaches can be summed up in four main integration styles:\n\n**[*File Transfer*](FileTransferIntegration.html)** — Have each application produce files of shared data for others to consume, and consume files that others have produced.\n\n**[*Shared Database*](SharedDataBaseIntegration.html)** — Have the applications store the data they wish to share in a common database.\n\n**[*Remote Procedure Invocation*](EncapsulatedSynchronousIntegration.html)** — Have each application expose some of its procedures so that they can be invoked remotely, and have applications invoke those to run behavior and exchange data.\n\n**[*Messaging*](Messaging.html)** — Have each application connect to a common messaging system, and exchange data and invoke behavior using messages.\n\nEach of the patterns has the same problem statement—the need to integrate applications—and very similar contexts. What differentiates them is different forces searching for a more elegant solution. Each pattern builds on the last, looking for a more sophisticated approach to address the shortcomings of its predecessors. Thus the pattern order reflects an increasing order of sophistication.\n\nThe trick is not to choose the one style to use always, but to choose the best style for a particular integration opportunity. Each style has its advantages and disadvantages. Two applications may integrate using multiple styles such that each point of integration takes advantage of the style that suits it best. Likewise, an application may use different styles to integrate with different applications, so as to choose the style that works best for the other application. Some integration approaches can best be viewed as a hybrid of multiple styles. An integration product or EAI middleware may employ a combination of styles, all of which are effectively hidden in the product’s implementation.\n\nThe remainder of this book will expand on the [*Messaging*](Messaging.html) pattern. We focus on messaging in part because we believe it is often the best style for solving many integration opportunities. It is also the least well understood of the integration styles and a technology ripe with patterns that quickly explain how to make good use of it. Finally, messaging is the basis for many EAI products, so explaining how to use messaging well also goes a long way in teaching you how to use those products.\n\nFamiliarize yourself with these patterns to better understand the issues involved with application integration, and to better understand how messaging fits into the mix.\n\n## Integration Pattern Language\n\n[Message Construct.](MessageConstructionIntro.html)\n\n[Message](Message.html)\n\n[Command Message](CommandMessage.html)\n\n[Document Message](DocumentMessage.html)\n\n[Event Message](EventMessage.html)\n\n[Request-Reply](RequestReply.html)\n\n[Return Address](ReturnAddress.html)\n\n[Correlation Identifier](CorrelationIdentifier.html)\n\n[Message Sequence](MessageSequence.html)\n\n[Message Expiration](MessageExpiration.html)\n\n[Format Indicator](FormatIndicator.html)\n\n[Message Routing](MessageRoutingIntro.html)\n\n[Pipes-and-Filters](PipesAndFilters.html)\n\n[Message Router](MessageRouter.html)\n\n[Content-based Router](ContentBasedRouter.html)\n\n[Message Filter](Filter.html)\n\n[Dynamic Router](DynamicRouter.html)\n\n[Recipient List](RecipientList.html)\n\n[Splitter](Sequencer.html)\n\n[Aggregator](Aggregator.html)\n\n[Resequencer](Resequencer.html)\n\n[Composed Msg. Processor](DistributionAggregate.html)\n\n[Scatter-Gather](BroadcastAggregate.html)\n\n[Routing Slip](RoutingTable.html)\n\n[Process Manager](ProcessManager.html)\n\n[Message Broker](MessageBroker.html)\n\n[Message\nTransformation](MessageTransformationIntro.html)\n\n[Message Translator](MessageTranslator.html)\n\n[Envelope Wrapper](EnvelopeWrapper.html)\n\n[Content Enricher](DataEnricher.html)\n\n[Content Filter](ContentFilter.html)\n\n[Claim Check](StoreInLibrary.html)\n\n[Normalizer](Normalizer.html)\n\n[Canonical Data Model](CanonicalDataModel.html)\n\n[Messaging Endpoints](MessagingEndpointsIntro.html)\n\n[Message Endpoint](MessageEndpoint.html)\n\n[Messaging Gateway](MessagingGateway.html)\n\n[Messaging Mapper](MessagingMapper.html)\n\n[Transactional Client](TransactionalClient.html)\n\n[Polling Consumer](PollingConsumer.html)\n\n[Event-driven Consumer](EventDrivenConsumer.html)\n\n[Competing Consumers](CompetingConsumers.html)\n\n[Message Dispatcher](MessageDispatcher.html)\n\n[Selective Consumer](MessageSelector.html)\n\n[Durable Subscriber](DurableSubscription.html)\n\n[Idempotent Receiver](IdempotentReceiver.html)\n\n[Service Activator](MessagingAdapter.html)\n\n[Messaging Channels](MessagingChannelsIntro.html)\n\n[Message Channel](MessageChannel.html)\n\n[Point-to-Point Channel](PointToPointChannel.html)\n\n[Publish-Subscr. Channel](PublishSubscribeChannel.html)\n\n[Datatype Channel](DatatypeChannel.html)\n\n[Invalid Message Channel](InvalidMessageChannel.html)\n\n[Dead Letter Channel](DeadLetterChannel.html)\n\n[Guaranteed Delivery](GuaranteedMessaging.html)\n\n[Channel Adapter](ChannelAdapter.html)\n\n[Messaging Bridge](MessagingBridge.html)\n\n[Message Bus](MessageBus.html)\n\n[Systems Mgmt.](SystemManagementIntro.html)\n\n[Control Bus](ControlBus.html)\n\n[Detour](Detour.html)\n\n[Wire Tap](WireTap.html)\n\n[Message History](MessageHistory.html)\n\n[Message Store](MessageStore.html)\n\n[Smart Proxy](SmartProxy.html)\n\n[Test Message](TestMessage.html)\n\n[Channel Purger](ChannelPurger.html)", "znaku_textu": 10696, "slov": 1314, "odkazu": 107, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/IntegrationStylesIntro.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 14:54:55", "sha256": "b6e6d00558498ea07804faf248ba5526cd916c79dc0503c106f8e1d77f431f9a", "hloubka": 3, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "https://www.architectelevator.com/book", "https://www.cloudstrategybook.com/", "https://www.platformstrategybook.info/"]} {"url": "http://www.enterpriseintegrationpatterns.com/patterns/messaging/Introduction.html", "titulek": "Introduction - Enterprise Integration Patterns", "h1": "", "popis": "Interesting applications rarely live in isolation. Whether your sales application must interface with your inventory application, your procurement application must connect to an auction site, or your PDA’s PIM must synchronize with the corporate calendar server, it seems like any application can be made better by integrating it with other applications.", "klicova_slova": "Introduction,integration, messaging, events, patterns, event-driven, coupling, eai, middleware, application integration, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns", "og:title": "Introduction - Enterprise Integration Patterns", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/Introduction.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/eip1_patterns_wide.png"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "What is Messaging?"}, {"uroven": 2, "text": "What is a Messaging System?"}, {"uroven": 2, "text": "Why Use Messaging?"}, {"uroven": 2, "text": "Challenges of Asynchronous Messaging"}, {"uroven": 2, "text": "Thinking Asynchronously"}, {"uroven": 2, "text": "Distributed Applications vs. Integration"}, {"uroven": 2, "text": "Commercial Messaging Systems"}, {"uroven": 2, "text": "Pattern Form"}, {"uroven": 2, "text": "Diagram Notation"}, {"uroven": 2, "text": "Examples and Interludes"}, {"uroven": 2, "text": "Organization of this Book"}, {"uroven": 2, "text": "Getting Started"}, {"uroven": 2, "text": "Supporting Web Site"}, {"uroven": 2, "text": "Summary"}, {"uroven": 2, "text": "Integration Pattern Language"}], "markdown": "| | Introduction[Messaging Patterns](index.html) | [Contents](toc.html)[⇐ Prev](Preface.html)[Next ⇒](Chapter1.html) |\n| --- | --- | --- |\n\nInteresting applications rarely live in isolation. Whether your sales application must interface with your inventory application, your procurement application must connect to an auction site, or your PDA’s PIM must synchronize with the corporate calendar server, it seems like any application can be made better by integrating it with other applications.\n\nAll integration solutions have to deal with a few fundamental challenges:\n\n- *Networks are unreliable.* Integration solutions have to transport data from one computer to another across networks. Compared to a process running on a single computer, distributed computing has to be prepared to deal with a much larger set of possible problems. Often times, two systems to be integrated are separated by continents and data between them has to travel through phone-lines, LAN segments, routers, switches, public networks, and satellite links. Each of these steps can cause delays or interruptions.\n- *Networks are slow.* Sending data across a network is multiple orders of magnitude slower than making a local method call. Designing a widely distributed solution the same way you would approach a single application could have disastrous performance implications.\n- *Any two applications are different.* Integration solutions need to transmit information between systems that use different programming languages, operating platforms, and data formats. An integration solution needs to be able to interface with all these different technologies.\n- *Change is inevitable.* Applications change over time. An integration solution has to keep pace with changes in the applications it connects. Integration solutions can easily get caught in an avalanche effect of changes – if one system changes, all other systems may be affected. An integration solution needs to minimize the dependencies from one system to another by using *loose coupling* between applications.\n\nOver time, developers have overcome these challenges with four main approaches:\n\n1. *[*File Transfer*](FileTransferIntegration.html)* — One application writes a file that another later reads. The applications need to agree on the filename and location, the format of the file, the timing of when it will be written and read, and who will delete the file.\n2. *[*Shared Database*](SharedDataBaseIntegration.html)* — Multiple applications share the same database schema, located in a single physical database. Because there is no duplicate data storage, no data has to be transferred from one application to the other.\n3. *[*Remote Procedure Invocation*](EncapsulatedSynchronousIntegration.html)* — One application exposes some of its functionality so that it can be accessed remotely by other applications as a remote procedure. The communication occurs real-time and synchronously.\n4. *[*Messaging*](Messaging.html)* — One applications publishes a message to a common message channel. Other applications can read the message from the channel at a later time. The applications must agree on a channel as well as the format of the message. The communication is asynchronous.\n\nWhile all four approaches solve essentially the same problem, each style has its distinct advantages and disadvantages. In fact, applications may integrate using multiple styles such that each point of integration takes advantage of the style that suits it best.\n\n## What is Messaging?\n\nThis book is about how to use messaging to integrate applications. A simple way to understand what messaging does is to consider the telephone system. A telephone call is a synchronous form of communication. I can only communicate with the other party if the other party is available at the time I place the call. Voice mail on the other hand, allows asynchronous communication. With voice mail, when the receiver does not answer, the caller can leave him a message; later the receiver (at his convenience) can listen to the messages queued in his mailbox. Voice mail enables the caller to leave a message now so that the receiver can listen to it later, which is lot easier than trying to get the caller and the receiver on the phone at the same time. Voice mail bundles (at least part of) a phone call into a message and queues it for later consumption; this is essentially how messaging works.\n\n*Messaging* is a technology that enables high-speed, asynchronous, program-to-program communication with reliable delivery. Programs communicate by sending packets of data called *message*s to each other. *Channel*s, also known as queues, are logical pathways that connect the programs and convey messages. A channel behaves like a collection or array of messages, but one that is magically shared across multiple computers and can be used concurrently by multiple applications. A *sender* or *producer* is a program that sends a message by writing the message to a channel. A *receiver* or *consumer* is a program that receives a message by reading (and deleting) it from a channel.\n\nThe message itself is simply some sort of data structure—such as a string, a byte array, a record, or an object. It can be interpreted simply as data, as the description of a command to be invoked on the receiver, or as the description of an event that occurred in the sender. A message actually contains two parts, a header and a body. The *header* contains meta-information about the message—who sent it, where it’s going, etc.; this information is used by the messaging system and is mostly (but not always) ignored by the applications using the messages. The *body* contains the data being transmitted and is ignored by the messaging system. In conversation, when an application developer who is using messaging talks about a message, he’s usually referring to the data in the body of the message.\n\nAsynchronous messaging architectures are powerful, but require us to rethink our development approach. As compared to the other three integration approaches, relatively few developers have had exposure to messaging and message systems. As a result, application developers in general are not as familiar with the idioms and peculiarities of this communications platform.\n\n## What is a Messaging System?\n\nMessaging capabilities are typically provided by a separate software system called a *messaging system* or *message-oriented middleware* (MOM). A messaging system manages messaging the way a database system manages data persistence. Just as an administrator must populate the database with the schema for an application’s data, an administrator must configure the messaging system with the channels that define the paths of communication between the applications. The messaging system then coordinates and manages the sending and receiving of messages. The primary purpose of a database is to make sure each data record is safely persisted, and likewise the main task of a messaging system is to move messages from the sender’s computer to the receiver’s computer in a reliable fashion.\n\nThe reason a messaging system is needed to move messages from one computer to another is that computers and the networks that connect them are inherently unreliable. Just because one application is ready to send a communication does not mean that the other application is ready to receive it. Even if both applications are ready, the network may not be working, or may fail to transmit the data properly. A messaging system overcomes these limitations by repeatedly trying to transmit the message until it succeeds. Under ideal circumstances, the message is transmitted successfully on the first try, but circumstances are often not ideal.\n\nIn essence, a message is transmitted in five steps:\n\n1. *Create* — The sender creates the message and populates it with data.\n2. *Send* — The sender adds the message to a channel.\n3. *Deliver* — The messaging system moves the message from the sender’s computer to the receiver’s computer, making it available to the receiver.\n4. *Receive* — The receiver reads the message from the channel.\n5. *Process* — The receiver extracts the data from the message.\n\nThis diagram illustrates these five transmission steps, which computer performs each, and which steps involve the messaging system:\n\n*Message Transmission Step-by-step*\n\nThis diagram also illustrates two important messaging concepts:\n\n1. *Send and forget* — In step 2, the sending application sends the message to the message channel. Once that send is complete, the sender can go on to other work while the messaging system transmits the message in the background. The sender can be confident that the receiver will eventually receive the message and does not have to wait until that happens.\n2. *Store and forward* — In step 2, when the sending application sends the message to the message channel, the messaging system stores the message on the sender’s computer, either in memory or on disk. In step 3, the messaging system delivers the message by forwarding it from the sender’s computer to the receiver’s computer, and then stores the message once again on the receiver’s computer. This store-and-forward process may be repeated many times, as the message is moved from one computer to another, until it reaches the receiver’s computer.\n\nThe create, send, receive, and process steps may seem like unnecessary overhead. Why not simply deliver the data to the receiver? By wrapping the data as a message and storing it in the messaging system, the applications delegate to the messaging system the responsibility of delivering the data. Because the data is wrapped as an atomic message, delivery can be retried until it succeeds and the receiver can be assured of reliably receiving exactly one copy of the data.\n\n## Why Use Messaging?\n\nNow that we know what messaging is, we should ask: Why use messaging? As with any sophisticated solution, there is no one simple answer. The quick answer is that messaging is more immediate than [*File Transfer*](FileTransferIntegration.html), better encapsulated than [*Shared Database*](SharedDataBaseIntegration.html), and more reliable than [*Remote Procedure Invocation*](EncapsulatedSynchronousIntegration.html). However, that’s just the beginning of the advantages that can be gained using messaging.\n\nSpecific benefits of messaging include:\n\n- *Remote Communication.* Messaging enables separate applications to communicate and transfer data. Two objects that reside in the same process can simply share the same data in memory. Sending data to another computer is a lot more complicated and requires data to be copied from one computer to another. This means that objects have to \"serializable\", i.e. they can be converted into a simple byte stream that can be sent across the network. If remote communication is not needed, messaging is not needed; a simpler solution such as concurrent collections or shared memory is sufficient.\n- *Platform/Language Integration.* When connecting multiple computer systems via remote communication, these systems likely use different languages, technologies and platforms, perhaps because they were developed over time by independent teams. Integrating such divergent applications can require a demilitarized zone of middleware to negotiate between the applications, often using the lowest common denominator—such as flat data files with obscure formats. In these circumstances, a messaging system can be a universal translator between the applications that works with each one’s language and platform on its own terms, yet allows them to all communicate through a common messaging paradigm. This universal connectivity is the heart of the [*Message Bus*](MessageBus.html) pattern.\n- *Asynchronous Communication.* Messaging enables a *send and forget* approach to communication. The sender does not have to wait for the receiver to receive and process the message; it does not even have to wait for the messaging system to deliver the message. The sender only needs to wait for the message to be sent, e.g. for the message to successfully be stored in the channel by the messaging system. Once the message is stored, the sender is then free to perform other work while the message is transmitted in the background. The receiver may want to send an acknowledgement or result back to the sender, which requires another message, whose delivery will need to be detected by a callback mechanism on the sender.\n- *Variable Timing.* With synchronous communication, the caller must wait for the receiver to finish processing the call before the caller can receive the result and continue. In this way, the caller can only make calls as fast as the receiver can perform them. On the other hand, asynchronous communication allows the sender to batch requests to the receiver at its own pace, and for the receiver to consume the requests at its own different pace. This allows both applications to run at maximum throughput and not waste time waiting on each other (at least until the receiver runs out of messages to process).\n- *Throttling.* A problem with remote procedure calls is that too many of them on a single receiver at the same time can overload the receiver. This can cause performance degradation and even cause the receiver to crash. Asynchronous communication enables the receiver to control the rate at which it consumes requests, so as not to become overloaded by too many simultaneous requests. The adverse effect on callers caused by this throttling is minimized because the communication is asynchronous, so the callers are not blocked waiting on the receiver.\n- *Reliable Communication.* Messaging provides reliable delivery that a remote procedure call (RPC) cannot. The reason messaging is more reliable than RPC is that messaging uses a *store and forward* approach to transmitting messages. The data is packaged as messages, which are atomic, independent units. When the sender sends a message, the messaging system stores the message. It then delivers the message by forwarding it to the receiver’s computer, where it is stored again. Storing the message on the sender’s computer and the receiver’s computer is assumed to be reliable. (To make it even more reliable, the messages can be stored to disk instead of memory; see [*Guaranteed Delivery*](GuaranteedMessaging.html) .) What is unreliable is forwarding (moving) the message from the sender’s computer to the receiver’s computer, because the receiver or the network may not be running properly. The messaging system overcomes this by resending the message until it succeeds. This automatic retry enables the messaging system to overcome problems with the network such that the sender and receiver don’t have to worry about these details.\n- *Disconnected Operation.* Some applications are specifically designed to run disconnected from the network, yet to synchronize with servers when a network connection is available. Such applications are deployed on platforms like laptop computers, PDA’s, and automobile dashboards. Messaging is ideal for enabling these applications to synchronize—data to be synchronized can be queued as it is created, waiting until the application reconnects to the network.\n- *Mediation.* The messaging system acts as a mediator—as in the Mediator pattern [ [GoF](http://www.amazon.com/exec/obidos/ASIN/0201633612/enterpriseint-20) ]—between all of the programs that can send and receive messages. An application can use it as a directory of other applications or services available to integrate with. If an application becomes disconnected from the others, it need only reconnect to the messaging system, not to all of the other messaging applications. The messaging system can be used to provide a high number of distributed connections to a shared resource, such as a database. The messaging system can employ redundant resources to provide high-availability, balance load, reroute around failed network connections, and tune performance and quality of service.\n- *Thread Management.* Asynchronous communication means that one application does not have to block while waiting for another application to perform a task, unless it wants to. Rather than blocking to wait for a reply, the caller can use a callback that will alert the caller when the reply arrives. (See the [*Request-Reply*](RequestReply.html) pattern.) A large number of blocked threads, or threads blocked for a long time, can be problematic. Too many blocked threads may leave the application with too few available threads to perform real work. If an application with some dynamic number of blocked threads crashes, when the application restarts and recovers its former state, re-establishing those threads will be difficult. With callbacks, the only threads that block are a small, known number of listeners waiting for replies. This leaves most threads available for other work and defines a known number of listener threads that can easily be re-established after a crash.\n\nSo there are a number of different reasons an application or enterprise may benefit from messaging. Some of these are technical details that application developers relate most readily to, whereas others are strategic decisions that resonate best with enterprise architects. Which of these reasons is most important depends on the current requirements of your particular applications. They’re all good reasons to use messaging, so take advantage of whichever reasons provide the most benefit to you.\n\n## Challenges of Asynchronous Messaging\n\nAsynchronous messaging is not the panacea of integration. It resolves many of the challenges of integrating disparate systems in an elegant way but it also introduces new challenges. Some of these challenges are inherent in the asynchronous model while other challenges vary with the specific implementation of a messaging system.\n\n- *Complex programming model.* Asynchronous messaging requires developers to work with an event-driven programming model. Application logic can no longer be coded in a single method that invokes other methods, but the logic is now split up into a number of event handlers that respond to incoming messages. Such a system is more complex and harder to develop and debug. For example, the equivalent of a simple method call can require a request message and a request channel, a reply message and a reply channel, a correlation identifier and an invalid message queue (as described in [*Request-Reply*](RequestReply.html) ).\n- *Sequence issues.* Message channels guarantee message delivery, but they do not guarantee when the message will be delivered. This can cause messages that are sent in sequence to get out of sequence. In situations where messages depend on each other special care has to be taken to re-establish the message sequence.\n- *Synchronous scenarios.* Not all applications can operate in a send and forget mode. If a user is looking for airline tickets, he or she is going to want to see the ticket price right away, not after some undetermined time. Therefore, many messaging systems need to bridge the gap between synchronous and asynchronous solutions. (See the [*Request-Reply*](RequestReply.html) pattern.)\n- *Performance.* Messaging systems do add some overhead to communication. It takes effort to make data into a message and send it, and to receive a message and process it. If you have to transport a huge chunk of data, dividing it into a gazillion small pieces may not be a smart idea. For example, if an integration solution needs to synchronize information between two existing systems, the first step is usually to replicate all relevant information from one system to the other. For such a bulk data replication step, ETL (extract, transform, and load) tools are much more efficient than messaging. Messaging is best suited to keeping the systems in sync after the initial data replication.\n- *Limited platform support.* Many proprietary messaging systems are not available on all platforms. Often times it is easier to FTP a file to another platform than accessing it via a messaging system.\n- *Vendor lock-in.* Many messaging system implementations rely on proprietary protocols. Even common messaging specifications such as JMS do not control the physical implementation of the solution. As a result, different messaging systems usually do not connect to one another. This can leave you with a whole new integration challenge: integrating multiple integration solutions! (See the [*Messaging Bridge*](MessagingBridge.html) pattern.)\n\nSo asynchronous messaging does not solve all problems, and can even create some new ones. Keep these consequences in mind when deciding which problems to solve using messaging.\n\n## Thinking Asynchronously\n\nMessaging is an asynchronous technology, which enables delivery to be retried until it succeeds. In contrast, most applications use synchronous function calls; for example: a procedure calling a sub-procedure, one method calling another method, or one procedure invoking another remotely through a remote procedure call (RPC) (such as CORBA and DCOM). Synchronous calls imply that the calling process is halted while the sub-process is executing a function. Even in an RPC scenario, where the called sub-procedure executes in a different process, the caller blocks until the sub-procedure returns control (and the results) to the caller. When using asynchronous messaging, the caller uses a *send and forget* approach that allows it to continue to execute after it sends the message. As a result, the calling procedure continues to run while the sub-procedure is being invoked.\n\n*Synchronous and Asynchronous Call Semantics*\n\nAsynchronous communication has a number of implications. First, we no longer have a single thread of execution. Multiple threads enable sub-procedures to run concurrently, which can greatly improve performance and help ensure that some sub-processes are making progress even while other sub-processes may be waiting for external results. However, concurrent threads can also make debugging much more difficult. Second, results (if any) arrive via a callback. This enables the caller to perform other tasks and be notified when the result is available, which can improve performance. However, the caller has to be able to process the result even while it is in the middle of other tasks, and it has to be able to use the result to remember the context in which the call was made. Third, asynchronous sub-processes can execute in any order. Again, this enables one sub-procedure to make progress even while another cannot. But it also means that the subprocesses must be able to run independently in any order, and the caller must be able to determine which result came from which sub-process and combine the results together. So asynchronous communication has several advantages but requires rethinking how a procedure uses its sub-procedures.\n\n## Distributed Applications vs. Integration\n\nThis book is about enterprise integration—how to integrate independent applications so that they can work together. An enterprise application often incorporates an n-tier architecture (a more sophisticated version of a client/server architecture) enabling it to be distributed across several computers. Even though this results in processes on different machines communicating with each other, this is application distribution, not application integration.\n\nWhy is an n-tier architecture considered application distribution and not application integration? First, the communicating parts are tightly coupled—they dependent directly on each other, so that one tier cannot function without the others. Second, communication between tiers tends to be synchronous. Third, an application (n-tier or atomic) tends to have human users that will only accept rapid system response.\n\nIn contrast, integrated applications are independent applications that can each run by itself, but coordinate with each other in a loosely coupled way. This enables each application to focus on one comprehensive set of functionality and yet delegate to other applications for related functionality. Integrated applications communicating asynchronously don’t have to wait for a response; they can proceed without a response or perform other tasks concurrently until the response is available. Integrated applications tend to have a broad time constraint, such that they can work on other tasks until a result becomes available, and therefore are more patient than most human users waiting real-time for a result.\n\n## Commercial Messaging Systems\n\nThe apparent benefits of integrating systems using an asynchronous messaging solution have opened up a significant market for software vendors creating messaging middleware and associated tools. We can roughly group the messaging vendors’ products into the following four categories:\n\n1. *Operating Systems.* Messaging has become such a common need that vendors have started to integrate the necessary software infrastructure into the operating system or database platform. For example, the Microsoft Windows 2000 and Windows XP operating systems include the Microsoft Message Queuing (MSMQ) service software. This service is accessible through a number of API’s, including COM components and the System.Messaging namespace, part of the Microsoft .NET platform. Similarly, Oracle offers Oracle AQ as part of its database platform.\n2. *Application Servers.* Sun Microsystems first incorporated the Java Messaging Service (JMS) into version 1.2 of the J2EE specification. Since then, virtually all J2EE application servers (such as IBM WebSphere, BEA WebLogic, etc.) provide an implementation for this specification. Also, Sun delivers a JMS reference implementation with the J2EE JDK.\n3. *EAI Suites.* Products from these vendors offer proprietary—but functionally rich—suites that encompass messaging, business process automation, workflow, portals, and other functions. Key players in this marketplace are IBM WebSphere MQ, Microsoft BizTalk, TIBCO, WebMethods, SeeBeyond, Vitria, CrossWorlds, and others. Many of these products include JMS as one of the many client API’s they support, while other vendors—such as SonicSoftware and Fiorano—focus primarily on implementing JMS-compliant messaging infrastructures.\n4. *Web Services Toolkits.* Web services have garnered a lot of interest in the enterprise integration communities. Standards bodies and consortia are actively working on standardizing reliable message delivery over web services (i.e., WS-Reliability, WS-ReliableMessaging, and ebMS). A growing number of vendors offer tools that implement routing, transformation, and management of web services-based solutions.\n\nThe patterns in this book are vendor-independent and apply to most messaging solutions. Unfortunately, each vendor tends to define their own terminology when describing messaging solutions. In this book we have striven to choose pattern names that are technology- and product-neutral, yet descriptive and easy to use conversationally.\n\nMany messaging vendors have incorporated some of this book’s patterns as features of their products, which simplifies applying the patterns and accelerates solution development. Readers who are familiar with a particular vendor’s terminology will most likely recognize many of the concepts in this book. To help these readers map the pattern language to the vendor-specific terminology, the following tables map the most common pattern names to their corresponding product feature names in some of the most widely-used messaging products.\n\n| **Enterprise Integration Patterns** | **Java Message Service (JMS)** | **Microsoft MSMQ** | **WebSphere MQ** |\n| --- | --- | --- | --- |\n| Message Channel | Destination | MessageQueue | Queue |\n| Point-to-Point Channel | Queue | MessageQueue | Queue |\n| Publish-Subscribe Channel | Topic | --- | --- |\n| Message | Message | Message | Message |\n| Message Endpoint | MessageProducer, MessageConsumer | | |\n\n| **Enterprise Integration Patterns** | **TIBCO** | **WebMethods** | **SeeBeyond** | **Vitria** |\n| --- | --- | --- | --- | --- |\n| Message Channel | Topic | | Intelligent Queue | Channel |\n| Point-to-Point Channel | Distributed Queue | | Intelligent Queue | Channel |\n| Publish-Subscribe Channel | Subject | --- | Intelligent Queue | Pub/Sub Channel |\n| Message | Message | Document | Event | Event |\n| Message Endpoint | Publisher, Subscriber | Publisher, Subscriber | Publisher, Subscriber | Publisher, Subscriber |\n\n## Pattern Form\n\nThis book is structured as a set of patterns organized into a pattern language. Books such as *Design Patterns*, *Pattern Oriented Software Architecture*, *Core J2EE Patterns*, and *Patterns of Enterprise Application Architecture* have popularized the concept of using patterns to document computer-programming techniques. Christopher Alexander pioneered the concept of patterns and pattern languages in his books *A Pattern Language* and *A Timeless Way of Building*. Each pattern represents a decision that the reader must make and the considerations that go into that decision. A pattern language is a web of related patterns where each pattern leads to others, guiding the reader through the decision making process. This approach is a powerful technique for documenting an expert’s knowledge so that it can be readily understood and applied by non-experts.\n\nA pattern language teaches the reader how to solve a limitless variety of problems within a bounded problem space. Because the overall problem that is being solved is different every time, the path through the patterns and how they’re applied is also unique. In this way, this book was written for anyone using any messaging tools for any application, but can be applied specifically for you and the specific application of messaging that you are facing.\n\nJust using the pattern form does not guarantee that a book contains a wealth of knowledge. It is not just enough to simply say, “When you face this problem, apply this solution.” For a reader to truly learn from a pattern, it has to document why the problem is difficult to solve, consider possible solutions that in fact don’t work well, and explain why the solution offered is the best available. Likewise, the patterns need to connect to each other so as to walk the reader from one problem to the next. In this way, the pattern form can be used to teach the reader not just what solutions to apply, but how to solve problems the author could not have predicted. These are goals we strive to accomplish in this book.\n\nPatterns should be prescriptive, meaning that they should tell you what to do. They don’t just describe a problem, and they don’t just describe how to solve it, they tell you what to do to solve it. Each pattern represents a decision the reader must make: “Should I use *Messaging*?” “Would a *Reply Message* help me here?” The point of the patterns and the pattern language is to help the reader make decisions that lead to a good solution for his specific problem, even if the authors didn’t have that specific problem in mind, and even if the reader doesn’t have the knowledge and experience to develop that solution on his own.\n\nThere is no one universal pattern form; different books use various structures. We used a style that is fairly close to the Alexandrian form, which was first popularized for computer programming in *Smalltalk Best Practice Patterns* by Kent Beck. We like the Alexandrian form because it results in patterns that are more prose-like. As a result, even though each pattern follows an identical, well-defined structure, the format avoids headings for each individual sub-section, which disrupt the flow of the discussion. To improve navigability, the format uses style elements such as bolding, indentation, and pictures to help the reader identify important sections even at a quick glance.\n\nThis pattern language uses the following pattern structure:\n\n- *Name* – This is an identifier for the pattern that indicates what the pattern does. We chose names that can easily be used in a sentence that describes applying the pattern so that it is easy to reference the pattern’s concept in a conversation between designers.\n- *Icon* – Many patterns are associated with an icon in addition to the pattern name. Because many architects are used to communicating visually by using diagrams, we wanted to provide a visual language in addition to the verbal language. This visual language underlines the composability of the patterns as multiple pattern icons can be combined to describe the solution of a larger, more complex pattern.\n- *Context* – This explains what you might be working on that would make you likely to run into the problem that this pattern solves. The context sets the stage for the problem and often refers to other patterns you may have already applied.\n- *Problem* – This explains the difficulty you are facing, expressed as a question you’re asking yourself, which this pattern solves. You should be able to read the problem statement and quickly determine if this pattern is relevant to your work. We’ve formatted the problem to be one sentence, bold and indented.\n- *Forces* – The forces explore the constraints that make the problem difficult to solve. If it were easy, you wouldn’t need a pattern. They often consider alternative solutions that seem promising but don’t pan out, which helps show the value of the real solution.\n- *Solution* – This is a template that explains what you should do to solve the problem. It is not specific to your particular circumstances, but describes what to do in the variety of circumstances represented by the problem. If you understand a pattern’s problem and solution, you understand the pattern and don’t necessarily need to read the other sections. We’ve formatted the solution to be one sentence, bold and indented.\n- *Sketch* – One of the most appealing properties of the Alexandrian form is that each pattern contains a sketch that illustrates the solution. In many cases, just by looking at the pattern name and the sketch you can understand the essence of the pattern. We tried to maintain this style by inserting a solution picture, or sketch, after the solution statement of each pattern.\n- *Results* – This part expands upon the solution to explain the details of how to apply the solution and how it resolves the forces. It also addresses new challenges that may arise as a result of applying this pattern.\n- *Next* – This section lists other patterns to be considered after applying the current one. Patterns don’t live in isolation; the application of one pattern usually leads you to new problems that are solved by other patterns. This is what makes the collection a pattern language and not just a pattern catalog.\n- *Sidebars* – These sections discuss more detailed technical issues or variations of the pattern. We set these sections visually apart from the remainder of the text so you can easily skip them if they are not be relevant to your particular application of the pattern.\n- *Examples* – A pattern usually includes one or more examples of the pattern being applied or having been applied. An example may be as simple as naming a known use or as detailed as a large segment of sample code. Given the large number of available messaging technologies, we do not expect readers to be familiar with each technology used to implement an example. Therefore, we designed the patterns so that you can safely skip the example without loosing any critical content of the pattern.\n\nThe beauty in describing solutions as patterns is that it not only teaches the reader how to solve the specific problems discussed, but also how to create designs that solve problems the authors were not even aware of. As a result, these patterns for messaging describe not only messaging systems that exist today, but may also apply to new ones created well after this book is published.\n\n## Diagram Notation\n\nIntegration solutions consist of many different pieces—applications, databases, endpoints, channels, messages, routers, etc. If we want to describe an integration solution, we need to define a notation that accommodates all these different components. To our knowledge, there is no widely used, comprehensive notation that is geared towards the description of all aspects of an integration solution. The Unified Modeling Language (UML) does a fine job of describing object-oriented systems with class and interaction diagrams, but it does not contain semantics to describe messaging solutions. The UML Profile for EAI [[UMLEAI](http://cgi.omg.org/cgi-bin/doc?ptc/02-02-02)] enriches the semantics of collaboration diagrams to describe message flows between components. This notation is very useful as a precise visual description of a system that can serve as the basis for code generation as part of a model-driven architecture (MDA). We decided not to adopt this notation for two reasons. First, the UML Profile does not capture all the patterns described in our pattern language. Second, we were not looking to create a precise visual specification, but images that have a certain ‘sketch’ quality to them. We wanted pictures that are able to convey the essence of a pattern to the reader at a quick glance—very much like Alexander’s *sketch*. That’s why we decided to create our own ‘notation’. Luckily, unlike the more formal notation, ours does not require you to read a large manual. A simple picture should suffice:\n\n*Visual Notation for Messaging Solutions*\n\nThis simple picture shows a message being sent to a component over a channel. We use the word *component* very loosely here—it can indicate an application that is being integrated, an intermediary that transforms or routes the message between applications, or a specific part of an application. Sometimes, we also depict a channel as a three-dimensional pipe if we want to highlight the channel itself. Often times we are more interested in the components and draw the channels as simple lines with arrow heads. The two notations are equivalent. We depict the message as a small tree with a round root and nested, square elements. The tree elements can be shaded or colored to highlight their usage in a particular pattern. Many messaging systems allow messages to contain tree-like data structures, for example XML documents. Also, depicting messages in this way allows us to provide a quick visual description of transformation patterns—it will be easy to show a pattern that adds, re-arranges or removes fields from the message.\n\nWhen we describe application designs—for example, messaging endpoints or examples written in C# or Java—we do use standard UML class and sequence diagrams to depict the class hierarchy and the interaction between objects. The UML notation is widely accepted as the standard way of describing these types of solutions (if you need a refresher on UML, have a look at [[UML](http://www.amazon.com/exec/obidos/ASIN/0321193687/enterpriseint-20)]).\n\n## Examples and Interludes\n\nWe have tried to underline the broad applicability of the patterns by including implementation examples using a variety of integration technologies. The potential downside of this approach is that you may not be familiar with each technology that is being used in an example. That’s why we made sure that reading the examples is strictly optional — all relevant points are discussed in the pattern description. Therefore, you can safely skip the examples without risk of losing out on important detail. Also, where possible, we provided more than one implementation example using different technologies.\n\nWhen presenting example code we focused on readability over runnability. A code segment can help remove any potential ambiguity left by the solution description and many application developers and architects prefer looking at 30 lines of code as opposed to reading many paragraphs of text. To support this intent we often only show the most relevant methods or classes of a potentially larger solution. We also omitted most forms of error checking to highlight the core function implemented by the code. Most code snippets do not contain in-line comments as the code is explained in the paragraphs before and after the code segment.\n\nProviding a meaningful example for a single integration pattern is challenging. Enterprise integration solutions typically consist of a number of heterogeneous components, spread across multiple systems. Likewise, most integration patterns do not operate in isolation but rely on other patterns to form a meaningful solution. To highlight the collaboration between multiple patterns we included more comprehensive examples as interludes at the end of the major sections of the book. These solutions illustrate many of the trade-offs involved in designing a more comprehensive messaging solution.\n\nAll code samples should be treated as illustrative tools only and not as a starting point for development of an integration solution. For example, almost all examples lack any form of error checking or concern for robustness, security, or scalability.\n\nWe tried as much as possible to base the examples on software platforms that are available free of charge or as a trial version. In some cases, we used commercial platforms (such as TIBCO ActiveEnterprise or Microsoft BizTalk) to illustrate the difference between developing a solution from scratch and using a commercial tool. We presented those example in such a way that they are educational even if you do not have access to the required run-time platform. For many examples, we use relatively bare-bones messaging frameworks such as JMS or MSMQ. This allows us to be more explicit in the example and focus on the problem at hand instead of distracting from it with all the features a more complex middleware toolset may provide.\n\nThe Java examples in this book are based on the JMS 1.1 specification, which is part of the J2EE 1.4 specification. By the time this book is published, most messaging and application server vendors will support JMS 1.1. You can download Sun’s reference implementation of the JMS specification from Sun’s Web site: [http://java.sun.com/j2ee](http://java.sun.com/j2ee).\n\nThe Microsoft .NET examples are based on Version 1.1 of the .NET Framework and are written in C#. You can download the .NET Framework SDK from Microsoft’s Web site: [http://msdn.microsoft.com/net](http://msdn.microsoft.com/net).\n\n## Organization of this Book\n\nThe pattern language in this book, as with any pattern language, is a web of patterns referring to each other. At the same time, some patterns are more fundamental than others, forming a hierarchy of big-concept patterns that lead to finer-detailed patterns. The big-concept patterns form the load-baring members of the pattern language. They are the main ones, what we term *root patterns*, that provide the foundation of the language and support the other patterns.\n\nThis book groups patterns into chapters by level-of-abstraction and by topic area. The following diagram shows the root patterns and their relationship to the chapters of the book.\n\n*Relationship of Root Patterns and Chapters*\n\nThe most fundamental pattern is [*Messaging*](Messaging.html); that’s what this whole book is about. It leads to the six root patterns—which are in the *Messaging Systems* chapter—namely [*Message Channel*](MessageChannel.html), [*Message*](Message.html), [*Pipes and Filters*](PipesAndFilters.html), [*Message Router*](MessageRouter.html), [*Message Translator*](MessageTranslator.html), and [*Message Endpoint*](MessageEndpoint.html). In turn, each of these root patterns leads to its own chapter in the book (except [*Pipes and Filters*](PipesAndFilters.html), which is not specific to messaging but is the basis of the routing and transformation patterns).\n\nThe pattern language is divided into eight chapters, which follow the hierarchy described above:\n\n- *Chapter 1: Integration Styles* – This chapter reviews the different approaches available for integrating applications, including [*Messaging*](Messaging.html) .\n- *Chapter 2: Messaging Systems* – This chapter reviews the six root messaging patterns, giving an overview of the entire pattern language.\n- *Chapter 3: Messaging Channels* – Applications communicate via channels. Channels define the logical pathways a message can follow. This chapter shows how to determine what channels your applications need.\n- *Chapter 4: Message Construction* – Once you have message channels, you need messages to send on them. This chapter explains the different ways messages can be used and how to take advantage of their special properties.\n- *Chapter 5: Message Routing* – As a messaging topography becomes more complex, senders know less and less about who should receive their messages. Rather, they send the messages to intermediate applications that send them to others until the messages finally find their way to their final destination. This chapter teaches you the responsibilities of these routing applications.\n- *Chapter 6: Message Transformation* – Independently developed applications often don’t agree on messages’ formats, on the form and meaning of supposedly unique identifiers, and even the character encoding to be used. Therefore, intermediate components are needed to convert messages from the form one application produced to that which other applications will consume. This chapter shows how to design these transformer applications.\n- *Chapter 7: Messaging Endpoints* – Many applications were not designed to participate in a messaging solution. As a result, they must be explicitly connected to the messaging system. This section describes a messaging layer in the applications that is responsible for sending and receiving the messages, making your application an endpoint for messages.\n- *Chapter 8: System Management* – Once we have a messaging system in place to integrate our applications, how do we make sure that it’s running correctly and doing what we want? This chapter explores how to test and monitor a running messaging system.\n\nThese eight chapters go together to teach you what you need to know about connecting applications using messaging.\n\n## Getting Started\n\nWith any book that has a lot to teach, it’s hard to know where to start, both for the authors and the readers. Reading all of the pages straight through assures covering the entire subject area, but isn’t the quickest way to get to the issues that are of the most help. Starting with a pattern in the middle of the language can be like starting to watch a movie that’s half over; you see what’s happening but don’t understand what it means.\n\nLuckily, the pattern language is formed around root patterns (as described earlier). These root patterns collectively provide an overview of the pattern language, and individually provide starting points for delving deep into the details of messaging. To get an overall survey of the language without reviewing all of the patterns, start with reviewing the root patterns. To jump into the middle of the language, jump in at a root pattern, a place where the language has finished discussing one major topic and is now starting another.\n\n*Chapter 1: Integration Styles* provides an overview of the four main application integration techniques and settles on [*Messaging*](Messaging.html) as being the best overall for many integration opportunities. Read this chapter if you are unfamiliar with issues involved in application integration and the pros and cons of the various approaches that are available. If you just want to know what’s so great about messaging, go straight to that pattern. If you’re already convinced that messaging is the way to go and want to get started with how to use messaging, you can skip the first chapter completely.\n\n*Chapter 2: Messaging Systems* contains all of this pattern language’s root patterns (except [*Messaging*](Messaging.html), which is in the first chapter). For an overview of the pattern language, read (or at least skim) all of the patterns in this chapter. To dive deep on a particular topic, read its root pattern, then go to the patterns mentioned in its *next* section at the end of the pattern; those next patterns will all be in a chapter named after the root pattern.\n\nThe root patterns in this language are:\n\n- *[*Messaging*](Messaging.html)* – This is the #1 root pattern for the entire book: What is messaging, what problem does it solve, and how does it solve it?\n- *[*Message Channel*](MessageChannel.html)* – What is the structure in a messaging system that conveys messages from the sender to the receiver? How do you know which ones your applications need?\n- *[*Message*](Message.html)* – How does information get communicated from a sender to a receiver?\n- *[*Pipes and Filters*](PipesAndFilters.html)* – How can intermediate steps be performed after a message is sent but before it is received?\n- *[*Message Router*](MessageRouter.html)* – If the sender does not know ultimately where the message should go, how can the messaging system get it there?\n- *[*Message Translator*](MessageTranslator.html)* – If the sender and receiver do not agree on the message format, how can they communicate?\n- *[*Message Endpoint*](MessageEndpoint.html)* – How do the applications that send and receive messages connect to the messaging system?\n\nAfter the first two chapters, different types of messaging developers may be most interested in different chapters, based on the specifics of how each group uses messaging to perform integration:\n\n- *System Administrators* may be most interested in *Chapter 3: Messaging Channels* , the guidelines for what channels to create, and *Chapter 8: System Management* , guidance on how to maintain a running messaging system.\n- *Application Developers* should look at *Chapter 7: Messaging Endpoints* to learn how integrate an application with a messaging system, and *Chapter 4: Message Construction* to learn what messages to send when.\n- *System Integrators* will gain the most from *Chapter 5: Message Routing* —how to direct messages to the proper receivers—and *Chapter 6: Message Transformation* —how to convert messages from the sender’s format to the receiver’s.\n\nKeep in mind that when reading a pattern, if you’re in a hurry, start by just reading the problem and solution (the two sentences in bold). This will give you enough information to determine if the pattern is of interest to you right now, and if you already know the pattern. If you do not know the pattern and it sounds interesting, go ahead and read the other parts.\n\nAlso remember that this is a pattern language, so the patterns are not necessarily meant to be read in the order they’re presented in the book. The book’s order teaches you about messaging by considering all of the relevant topics in turn and discussing related issues together. To use the patterns to solve a particular problem, start with an appropriate root pattern. Its context explains what patterns need to be applied before this one, even if they’re not the ones immediately preceding this one in the book. Likewise, the next section (the last paragraph of the pattern) describes what patterns to consider applying after this one, even if they’re not the ones immediately following this one in the book. Use the web of interconnected patterns, not the linear list of book pages, to guide you through the material.\n\n## Supporting Web Site\n\nPlease look for companion information to this book plus related information on enterprise integration at our Web site: [www.enterpriseintegrationpatterns.com](http://www.enterpriseintegrationpatterns.com). You can also e-mail your comments, suggestions and feedback to us at authors@enterpriseintegrationpatterns.com.\n\n## Summary\n\nYou should now have a good understanding of the following concepts which are fundamental to the material in this book:\n\n- What messaging is\n- What a messaging system is\n- Why to use messaging\n- How asynchronous programming is different\n- How application integration is different from application distribution\n- What types of commercial products contain messaging systems\n\nYou should also have a feel for how this book is going to teach you how to use messaging:\n\n- The role patterns have in structuring the material\n- The meaning of the custom notation used in the diagrams\n- The purpose and scope of the examples\n- The organization of the material\n- How to get started learning the material\n\nNow that you understand the basic concepts and how the material will be presented, you are now ready to start learning how to integrate applications using messaging.\n\n## Integration Pattern Language\n\n[Message Construct.](MessageConstructionIntro.html)\n\n[Message](Message.html)\n\n[Command Message](CommandMessage.html)\n\n[Document Message](DocumentMessage.html)\n\n[Event Message](EventMessage.html)\n\n[Request-Reply](RequestReply.html)\n\n[Return Address](ReturnAddress.html)\n\n[Correlation Identifier](CorrelationIdentifier.html)\n\n[Message Sequence](MessageSequence.html)\n\n[Message Expiration](MessageExpiration.html)\n\n[Format Indicator](FormatIndicator.html)\n\n[Message Routing](MessageRoutingIntro.html)\n\n[Pipes-and-Filters](PipesAndFilters.html)\n\n[Message Router](MessageRouter.html)\n\n[Content-based Router](ContentBasedRouter.html)\n\n[Message Filter](Filter.html)\n\n[Dynamic Router](DynamicRouter.html)\n\n[Recipient List](RecipientList.html)\n\n[Splitter](Sequencer.html)\n\n[Aggregator](Aggregator.html)\n\n[Resequencer](Resequencer.html)\n\n[Composed Msg. Processor](DistributionAggregate.html)\n\n[Scatter-Gather](BroadcastAggregate.html)\n\n[Routing Slip](RoutingTable.html)\n\n[Process Manager](ProcessManager.html)\n\n[Message Broker](MessageBroker.html)\n\n[Message\nTransformation](MessageTransformationIntro.html)\n\n[Message Translator](MessageTranslator.html)\n\n[Envelope Wrapper](EnvelopeWrapper.html)\n\n[Content Enricher](DataEnricher.html)\n\n[Content Filter](ContentFilter.html)\n\n[Claim Check](StoreInLibrary.html)\n\n[Normalizer](Normalizer.html)\n\n[Canonical Data Model](CanonicalDataModel.html)\n\n[Messaging Endpoints](MessagingEndpointsIntro.html)\n\n[Message Endpoint](MessageEndpoint.html)\n\n[Messaging Gateway](MessagingGateway.html)\n\n[Messaging Mapper](MessagingMapper.html)\n\n[Transactional Client](TransactionalClient.html)\n\n[Polling Consumer](PollingConsumer.html)\n\n[Event-driven Consumer](EventDrivenConsumer.html)\n\n[Competing Consumers](CompetingConsumers.html)\n\n[Message Dispatcher](MessageDispatcher.html)\n\n[Selective Consumer](MessageSelector.html)\n\n[Durable Subscriber](DurableSubscription.html)\n\n[Idempotent Receiver](IdempotentReceiver.html)\n\n[Service Activator](MessagingAdapter.html)\n\n[Messaging Channels](MessagingChannelsIntro.html)\n\n[Message Channel](MessageChannel.html)\n\n[Point-to-Point Channel](PointToPointChannel.html)\n\n[Publish-Subscr. Channel](PublishSubscribeChannel.html)\n\n[Datatype Channel](DatatypeChannel.html)\n\n[Invalid Message Channel](InvalidMessageChannel.html)\n\n[Dead Letter Channel](DeadLetterChannel.html)\n\n[Guaranteed Delivery](GuaranteedMessaging.html)\n\n[Channel Adapter](ChannelAdapter.html)\n\n[Messaging Bridge](MessagingBridge.html)\n\n[Message Bus](MessageBus.html)\n\n[Systems Mgmt.](SystemManagementIntro.html)\n\n[Control Bus](ControlBus.html)\n\n[Detour](Detour.html)\n\n[Wire Tap](WireTap.html)\n\n[Message History](MessageHistory.html)\n\n[Message Store](MessageStore.html)\n\n[Smart Proxy](SmartProxy.html)\n\n[Test Message](TestMessage.html)\n\n[Channel Purger](ChannelPurger.html)", "znaku_textu": 54830, "slov": 8300, "odkazu": 113, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 14:54:53", "sha256": "e3f34868e3c6a8e5a30ac01f1969a225db50a51beb9bb08f8f339bbbe3582f84", "hloubka": 3, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://www.amazon.com/exec/obidos/ASIN/0201633612/enterpriseint-20", "http://cgi.omg.org/cgi-bin/doc?ptc%2F02-02-02=", "http://www.amazon.com/exec/obidos/ASIN/0321193687/enterpriseint-20", "http://java.sun.com/j2ee", "http://msdn.microsoft.com/net", "https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "https://www.architectelevator.com/book", "https://www.cloudstrategybook.com/", "https://www.platformstrategybook.info/"]} {"url": "http://www.enterpriseintegrationpatterns.com/patterns/messaging/InvalidMessageChannel.html", "titulek": "Invalid Message Channel - Enterprise Integration Patterns", "h1": "", "popis": "How can a messaging receiver gracefully handle receiving a message that makes no sense?", "klicova_slova": "Invalid Message Channel,integration, messaging, events, patterns, event-driven, coupling, eai, middleware, application integration, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns", "og:title": "Invalid Message Channel - Enterprise Integration Patterns", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/InvalidMessageChannel.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/InvalidMessageSolution.gif"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Integration Pattern Language"}], "markdown": "Messaging Patterns\n\n[Messaging Patterns](index.html)\n\n- [Integration Styles](IntegrationStylesIntro.html)\n- [Messaging Systems](MessagingComponentsIntro.html)\n- [Messaging Channels](MessagingChannelsIntro.html)\n- [Message Construction](MessageConstructionIntro.html)\n- [Interlude: Simple Messaging](SimpleMessagingIntro.html)\n- [Message Routing](MessageRoutingIntro.html)\n- [Message Transformation](MessageTransformationIntro.html)\n- [Interlude: Composed Messaging](ComposedMessagingExample.html)\n- [Messaging Endpoints](MessagingEndpointsIntro.html)\n- [System Management](SystemManagementIntro.html)\n- Interlude: Systems Management Example\n- Integration Patterns in Practice\n- Concluding Remarks\n- Appendices\n\n| | Invalid Message Channel[Messaging Patterns](index.html) » [Messaging Channels](MessagingChannelsIntro.html) | [Contents](toc.html)[⇐ Prev](DatatypeChannel.html)[Next ⇒](DeadLetterChannel.html) |\n| --- | --- | --- |\n\nAn application is using [*Messaging*](Messaging.html) to receive [*Message*](Message.html)s.\n\nHow can a messaging receiver gracefully handle receiving a message that makes no sense?\n\nThe receiver should move the improper message to an *Invalid Message Channel*, a special channel for messages that could not be processed by their receivers.\n\nWhen designing a messaging system for applications to use, the administrator will need to define one or more *Invalid Message Channel*s for the applications to use.\n\nThe *Invalid Message Channel* will not be used for normal, successful communication, so its being cluttered with improper messages will not cause a problem. An error handler that wants to diagnose improper messages can use a receiver on the invalid channel to detect messages as they become available.\n\n...\nRead the entire pattern in the book [Enterprise Integration Patterns](/books1.html)\n\n**Related patterns:**\n\n[*Command Message*](CommandMessage.html), [*Correlation Identifier*](CorrelationIdentifier.html), [*Datatype Channel*](DatatypeChannel.html), [*Dead Letter Channel*](DeadLetterChannel.html), [*Message*](Message.html), [*Message Channel*](MessageChannel.html), [*Message Sequence*](MessageSequence.html), [*Messaging*](Messaging.html), [*Service Activator*](MessagingAdapter.html), [*Messaging Gateway*](MessagingGateway.html), [*JMS Request/Reply Example*](RequestReplyJmsExample.html), [*.NET Request/Reply Example*](RequestReplyNetExample.html), [*Return Address*](ReturnAddress.html)\n\n---\n\n## Integration Pattern Language\n\n[Message Construct.](MessageConstructionIntro.html)\n\n[Message](Message.html)\n\n[Command Message](CommandMessage.html)\n\n[Document Message](DocumentMessage.html)\n\n[Event Message](EventMessage.html)\n\n[Request-Reply](RequestReply.html)\n\n[Return Address](ReturnAddress.html)\n\n[Correlation Identifier](CorrelationIdentifier.html)\n\n[Message Sequence](MessageSequence.html)\n\n[Message Expiration](MessageExpiration.html)\n\n[Format Indicator](FormatIndicator.html)\n\n[Message Routing](MessageRoutingIntro.html)\n\n[Pipes-and-Filters](PipesAndFilters.html)\n\n[Message Router](MessageRouter.html)\n\n[Content-based Router](ContentBasedRouter.html)\n\n[Message Filter](Filter.html)\n\n[Dynamic Router](DynamicRouter.html)\n\n[Recipient List](RecipientList.html)\n\n[Splitter](Sequencer.html)\n\n[Aggregator](Aggregator.html)\n\n[Resequencer](Resequencer.html)\n\n[Composed Msg. Processor](DistributionAggregate.html)\n\n[Scatter-Gather](BroadcastAggregate.html)\n\n[Routing Slip](RoutingTable.html)\n\n[Process Manager](ProcessManager.html)\n\n[Message Broker](MessageBroker.html)\n\n[Message\nTransformation](MessageTransformationIntro.html)\n\n[Message Translator](MessageTranslator.html)\n\n[Envelope Wrapper](EnvelopeWrapper.html)\n\n[Content Enricher](DataEnricher.html)\n\n[Content Filter](ContentFilter.html)\n\n[Claim Check](StoreInLibrary.html)\n\n[Normalizer](Normalizer.html)\n\n[Canonical Data Model](CanonicalDataModel.html)\n\n[Messaging Endpoints](MessagingEndpointsIntro.html)\n\n[Message Endpoint](MessageEndpoint.html)\n\n[Messaging Gateway](MessagingGateway.html)\n\n[Messaging Mapper](MessagingMapper.html)\n\n[Transactional Client](TransactionalClient.html)\n\n[Polling Consumer](PollingConsumer.html)\n\n[Event-driven Consumer](EventDrivenConsumer.html)\n\n[Competing Consumers](CompetingConsumers.html)\n\n[Message Dispatcher](MessageDispatcher.html)\n\n[Selective Consumer](MessageSelector.html)\n\n[Durable Subscriber](DurableSubscription.html)\n\n[Idempotent Receiver](IdempotentReceiver.html)\n\n[Service Activator](MessagingAdapter.html)\n\n[Messaging Channels](MessagingChannelsIntro.html)\n\n[Message Channel](MessageChannel.html)\n\n[Point-to-Point Channel](PointToPointChannel.html)\n\n[Publish-Subscr. Channel](PublishSubscribeChannel.html)\n\n[Datatype Channel](DatatypeChannel.html)\n\n[Invalid Message Channel](InvalidMessageChannel.html)\n\n[Dead Letter Channel](DeadLetterChannel.html)\n\n[Guaranteed Delivery](GuaranteedMessaging.html)\n\n[Channel Adapter](ChannelAdapter.html)\n\n[Messaging Bridge](MessagingBridge.html)\n\n[Message Bus](MessageBus.html)\n\n[Systems Mgmt.](SystemManagementIntro.html)\n\n[Control Bus](ControlBus.html)\n\n[Detour](Detour.html)\n\n[Wire Tap](WireTap.html)\n\n[Message History](MessageHistory.html)\n\n[Message Store](MessageStore.html)\n\n[Smart Proxy](SmartProxy.html)\n\n[Test Message](TestMessage.html)\n\n[Channel Purger](ChannelPurger.html)\n\n- » [Read the latest in My Blog](/ramblings)\n- » [Get more insights from My Articles](/articles.html)\n- » [See me live in my Upcoming Talks](/talks)\n\nYou can reuse the following elements under the [Creative Commons Attribution](http://creativecommons.org/licenses/by/4.0/) license: pattern icon, pattern name, problem and solution statements (in bold), and the sketch. Other portions are protected by copyright.\n\n[Enterprise Integration Patterns](https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20)\nThe de-facto language for designing asynchronous, distributed systems. Over 100,000 copies sold.\n\n[The Software Architect Elevator](https://www.architectelevator.com/book)\n\n Rethink the role of architects as a connecting element across organizational layers. Acquire the technical, communication, and organizational skills to succeed in this new role.\n\n[Cloud Strategy](https://www.cloudstrategybook.com)\n\n Make your cloud migration a success by translating high-level goals into conscious decisions with well-understood trade-offs.\n\n[Platform Strategy](https://www.platformstrategybook.info)\n\n Platforms can boost innovation through harmonization, but they aren't easy to build. Learn from over a decade of designing and rolling out IT platforms.", "znaku_textu": 6393, "slov": 527, "odkazu": 108, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/InvalidMessageChannel.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 14:55:12", "sha256": "3865c2583cffca54da97244d8fab6bd3779da1686077418810ae21283c1e24e3", "hloubka": 3, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://creativecommons.org/licenses/by/4.0/", "https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "https://www.architectelevator.com/book", "https://www.cloudstrategybook.com/", "https://www.platformstrategybook.info/"]} {"url": "http://www.enterpriseintegrationpatterns.com/patterns/messaging/Message.html", "titulek": "Message - Enterprise Integration Patterns", "h1": "", "popis": "How can two applications connected by a message channel exchange a piece of information?", "klicova_slova": "Message,integration, messaging, events, patterns, event-driven, coupling, eai, middleware, application integration, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns", "og:title": "Message - Enterprise Integration Patterns", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/Message.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/MessageSolution.gif"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Integration Pattern Language"}], "markdown": "Messaging Patterns\n\n[Messaging Patterns](index.html)\n\n- [Integration Styles](IntegrationStylesIntro.html)\n- [Messaging Systems](MessagingComponentsIntro.html)\n- [Messaging Channels](MessagingChannelsIntro.html)\n- [Message Construction](MessageConstructionIntro.html)\n- [Interlude: Simple Messaging](SimpleMessagingIntro.html)\n- [Message Routing](MessageRoutingIntro.html)\n- [Message Transformation](MessageTransformationIntro.html)\n- [Interlude: Composed Messaging](ComposedMessagingExample.html)\n- [Messaging Endpoints](MessagingEndpointsIntro.html)\n- [System Management](SystemManagementIntro.html)\n- Interlude: Systems Management Example\n- Integration Patterns in Practice\n- Concluding Remarks\n- Appendices\n\n| | Message[Messaging Patterns](index.html) » [Messaging Systems](MessagingComponentsIntro.html) | [Contents](toc.html)[⇐ Prev](MessageChannel.html)[Next ⇒](PipesAndFilters.html) |\n| --- | --- | --- |\n\nAn enterprise has two separate applications that are communicating via [*Messaging*](Messaging.html), using a [*Message Channel*](MessageChannel.html) that connects them.\n\nHow can two applications connected by a message channel exchange a piece of information?\n\nPackage the information into a *Message*, a data record that the messaging system can transmit through a message channel.\n\nThus any data that is to be transmitted via a messaging system must be converted into one or more messages that can be sent through messaging channels.\n\nA message consists of two basic parts:\n\n1. **Header** – Information used by the messaging system that describes the data being transmitted, its origin, its destination, and so on.\n2. **Body** – The data being transmitted; generally ignored by the messaging system and simply transmitted as-is.\n\n...\nRead the entire pattern in the book [Enterprise Integration Patterns](/books1.html)\n\n**Related patterns:**\n\n[*Canonical Data Model*](CanonicalDataModel.html), [*Command Message*](CommandMessage.html), [*Document Message*](DocumentMessage.html), [*Event Message*](EventMessage.html), [*Message Channel*](MessageChannel.html), [*Message Expiration*](MessageExpiration.html), [*Message Sequence*](MessageSequence.html), [*Messaging*](Messaging.html), [*Request-Reply*](RequestReply.html)\n\n---\n\n## Integration Pattern Language\n\n[Message Construct.](MessageConstructionIntro.html)\n\n[Message](Message.html)\n\n[Command Message](CommandMessage.html)\n\n[Document Message](DocumentMessage.html)\n\n[Event Message](EventMessage.html)\n\n[Request-Reply](RequestReply.html)\n\n[Return Address](ReturnAddress.html)\n\n[Correlation Identifier](CorrelationIdentifier.html)\n\n[Message Sequence](MessageSequence.html)\n\n[Message Expiration](MessageExpiration.html)\n\n[Format Indicator](FormatIndicator.html)\n\n[Message Routing](MessageRoutingIntro.html)\n\n[Pipes-and-Filters](PipesAndFilters.html)\n\n[Message Router](MessageRouter.html)\n\n[Content-based Router](ContentBasedRouter.html)\n\n[Message Filter](Filter.html)\n\n[Dynamic Router](DynamicRouter.html)\n\n[Recipient List](RecipientList.html)\n\n[Splitter](Sequencer.html)\n\n[Aggregator](Aggregator.html)\n\n[Resequencer](Resequencer.html)\n\n[Composed Msg. Processor](DistributionAggregate.html)\n\n[Scatter-Gather](BroadcastAggregate.html)\n\n[Routing Slip](RoutingTable.html)\n\n[Process Manager](ProcessManager.html)\n\n[Message Broker](MessageBroker.html)\n\n[Message\nTransformation](MessageTransformationIntro.html)\n\n[Message Translator](MessageTranslator.html)\n\n[Envelope Wrapper](EnvelopeWrapper.html)\n\n[Content Enricher](DataEnricher.html)\n\n[Content Filter](ContentFilter.html)\n\n[Claim Check](StoreInLibrary.html)\n\n[Normalizer](Normalizer.html)\n\n[Canonical Data Model](CanonicalDataModel.html)\n\n[Messaging Endpoints](MessagingEndpointsIntro.html)\n\n[Message Endpoint](MessageEndpoint.html)\n\n[Messaging Gateway](MessagingGateway.html)\n\n[Messaging Mapper](MessagingMapper.html)\n\n[Transactional Client](TransactionalClient.html)\n\n[Polling Consumer](PollingConsumer.html)\n\n[Event-driven Consumer](EventDrivenConsumer.html)\n\n[Competing Consumers](CompetingConsumers.html)\n\n[Message Dispatcher](MessageDispatcher.html)\n\n[Selective Consumer](MessageSelector.html)\n\n[Durable Subscriber](DurableSubscription.html)\n\n[Idempotent Receiver](IdempotentReceiver.html)\n\n[Service Activator](MessagingAdapter.html)\n\n[Messaging Channels](MessagingChannelsIntro.html)\n\n[Message Channel](MessageChannel.html)\n\n[Point-to-Point Channel](PointToPointChannel.html)\n\n[Publish-Subscr. Channel](PublishSubscribeChannel.html)\n\n[Datatype Channel](DatatypeChannel.html)\n\n[Invalid Message Channel](InvalidMessageChannel.html)\n\n[Dead Letter Channel](DeadLetterChannel.html)\n\n[Guaranteed Delivery](GuaranteedMessaging.html)\n\n[Channel Adapter](ChannelAdapter.html)\n\n[Messaging Bridge](MessagingBridge.html)\n\n[Message Bus](MessageBus.html)\n\n[Systems Mgmt.](SystemManagementIntro.html)\n\n[Control Bus](ControlBus.html)\n\n[Detour](Detour.html)\n\n[Wire Tap](WireTap.html)\n\n[Message History](MessageHistory.html)\n\n[Message Store](MessageStore.html)\n\n[Smart Proxy](SmartProxy.html)\n\n[Test Message](TestMessage.html)\n\n[Channel Purger](ChannelPurger.html)\n\n- » [Read the latest in My Blog](/ramblings)\n- » [Get more insights from My Articles](/articles.html)\n- » [See me live in my Upcoming Talks](/talks)\n\nYou can reuse the following elements under the [Creative Commons Attribution](http://creativecommons.org/licenses/by/4.0/) license: pattern icon, pattern name, problem and solution statements (in bold), and the sketch. Other portions are protected by copyright.\n\n[Enterprise Integration Patterns](https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20)\nThe de-facto language for designing asynchronous, distributed systems. Over 100,000 copies sold.\n\n[The Software Architect Elevator](https://www.architectelevator.com/book)\n\n Rethink the role of architects as a connecting element across organizational layers. Acquire the technical, communication, and organizational skills to succeed in this new role.\n\n[Cloud Strategy](https://www.cloudstrategybook.com)\n\n Make your cloud migration a success by translating high-level goals into conscious decisions with well-understood trade-offs.\n\n[Platform Strategy](https://www.platformstrategybook.info)\n\n Platforms can boost innovation through harmonization, but they aren't easy to build. Learn from over a decade of designing and rolling out IT platforms.", "znaku_textu": 6181, "slov": 511, "odkazu": 108, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/Message.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 14:55:02", "sha256": "76e03593d1fab869622593e4b0c27139b18ade8ccfd509ccc32be72e0a45185c", "hloubka": 3, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://creativecommons.org/licenses/by/4.0/", "https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "https://www.architectelevator.com/book", "https://www.cloudstrategybook.com/", "https://www.platformstrategybook.info/"]} {"url": "http://www.enterpriseintegrationpatterns.com/patterns/messaging/MessageBroker.html", "titulek": "Message Broker - Enterprise Integration Patterns", "h1": "", "popis": "How can you decouple the destination of a message from the sender and maintain central control over the flow of messages?", "klicova_slova": "Message Broker,integration, messaging, events, patterns, event-driven, coupling, eai, middleware, application integration, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns", "og:title": "Message Broker - Enterprise Integration Patterns", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/MessageBroker.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/MessageBroker.png"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Integration Pattern Language"}], "markdown": "| | Message Broker[Messaging Patterns](index.html) » [Message Routing](MessageRoutingIntro.html) | [Contents](toc.html)[⇐ Prev](ProcessManager.html)[Next ⇒](MessageTransformationIntro.html) |\n| --- | --- | --- |\n\nMany patterns in this chapter present ways to route messages to the proper destination without the originating application being aware of the ultimate destination of the message. Most of the patterns focused on specific types of routing logic. However, in aggregate, these patterns solve a bigger problem.\n\nHow can you decouple the destination of a message from the sender and maintain central control over the flow of messages?\n\nUse a central *Message Broker* that can receive messages from multiple destinations, determine the correct destination and route the message to the correct channel. Implement the internals of the *Message Broker* using the design patterns presented in this chapter.\n\nUsing a central *Message Broker* is sometimes referred to as *hub-and-spoke* architectural style, which appears to be a descriptive name when looking at the diagram above.\n\nThe *Message Broker* pattern has a slightly different scope than most of the other patterns presented in this chapter. It is an architecture pattern as opposed to individual design patterns we presented in this chapter. As such, it is comparable to the [*Pipes and Filters*](PipesAndFilters.html) architectural style, which gives us a fundamental way of chaining components together to form more complex message flows. Rather than just chaining individual components, the *Message Broker* concerns itself with larger solutions and helps us deal with the inevitable complexity of managing such a system.\n\nThe *Message Broker* is not a monolithic component. Internally, it uses many of the message routing patterns presented in this chapter. So once you decide to use the *Message Broker* as an architectural pattern, you can choose the correct [*Message Router*](MessageRouter.html) design patterns to implement the *Message Broker*.\n\nThe advantage of central maintenance of a *Message Broker* can also turn into a disadvantage. Routing all messages through a single *Message Broker* can turn the *Message Broker* into a serious bottleneck. A number of techniques can help us alleviate this problem. For example, the *Message Broker* pattern only tells us to *develop* a single entity that performs routing. It does not prescribe how many instances of this entity we deploy in the system at deployment time. If the *Message Broker* design is stateless (i.e. if it is composed only of stateless components), we can easily deploy multiple instances of the broker to improve throughput. The properties of a [*Point-to-Point Channel*](PointToPointChannel.html) ensure that only one instance of the *Message Broker* consumes any incoming message. Also, as in most real-life situations, the ultimate solution ends up being a combination of a patterns. Likewise, in many complex integration solutions it may make sense to design multiple *Message Broker* components, each specializing on a specific portion of the solution. This avoids creating the über-*Message Broker* that is so complex as to become unmaintainable. The apparent flip-side is that we no longer have a single point of maintenance and could create a new form of \"*Message Broker* spaghetti\". One excellent architectural style to use a combination of *Message Broker*s is a *Message Broker* *hierarchy* (see picture). This configuration resembles a network configuration composed out of individual subnets. If a message has to travel only between two applications inside a \"subnet\" the local *Message Broker* can manage the routing of the message. If the message is destined for another subnet, the local *Message Broker* can pass the message to the central *Message Broker* who then determines the ultimate destination. The central *Message Broker* performs the same functions as a local *Message Broker*, but instead of decoupling individual applications it decouples whole subsystems consisting of multiple applications.\n\n...\nRead the entire pattern in the book [Enterprise Integration Patterns](/books1.html)\n\n**Related patterns:**\n\n[*Canonical Data Model*](CanonicalDataModel.html), [*Event-Driven Consumer*](EventDrivenConsumer.html), [*Message Channel*](MessageChannel.html), [*Message Endpoint*](MessageEndpoint.html), [*Message Router*](MessageRouter.html), [*Pipes and Filters*](PipesAndFilters.html), [*Point-to-Point Channel*](PointToPointChannel.html), [*Publish-Subscribe Channel*](PublishSubscribeChannel.html), [*Recipient List*](RecipientList.html)\n\n**Further reading:**\n\n- [Hub and Spoke [or] The Art of Message Broker Maintenance](/ramblings/03_hubandspoke.html)\n\n---\n\n## Integration Pattern Language\n\n[Message Construct.](MessageConstructionIntro.html)\n\n[Message](Message.html)\n\n[Command Message](CommandMessage.html)\n\n[Document Message](DocumentMessage.html)\n\n[Event Message](EventMessage.html)\n\n[Request-Reply](RequestReply.html)\n\n[Return Address](ReturnAddress.html)\n\n[Correlation Identifier](CorrelationIdentifier.html)\n\n[Message Sequence](MessageSequence.html)\n\n[Message Expiration](MessageExpiration.html)\n\n[Format Indicator](FormatIndicator.html)\n\n[Message Routing](MessageRoutingIntro.html)\n\n[Pipes-and-Filters](PipesAndFilters.html)\n\n[Message Router](MessageRouter.html)\n\n[Content-based Router](ContentBasedRouter.html)\n\n[Message Filter](Filter.html)\n\n[Dynamic Router](DynamicRouter.html)\n\n[Recipient List](RecipientList.html)\n\n[Splitter](Sequencer.html)\n\n[Aggregator](Aggregator.html)\n\n[Resequencer](Resequencer.html)\n\n[Composed Msg. Processor](DistributionAggregate.html)\n\n[Scatter-Gather](BroadcastAggregate.html)\n\n[Routing Slip](RoutingTable.html)\n\n[Process Manager](ProcessManager.html)\n\n[Message Broker](MessageBroker.html)\n\n[Message\nTransformation](MessageTransformationIntro.html)\n\n[Message Translator](MessageTranslator.html)\n\n[Envelope Wrapper](EnvelopeWrapper.html)\n\n[Content Enricher](DataEnricher.html)\n\n[Content Filter](ContentFilter.html)\n\n[Claim Check](StoreInLibrary.html)\n\n[Normalizer](Normalizer.html)\n\n[Canonical Data Model](CanonicalDataModel.html)\n\n[Messaging Endpoints](MessagingEndpointsIntro.html)\n\n[Message Endpoint](MessageEndpoint.html)\n\n[Messaging Gateway](MessagingGateway.html)\n\n[Messaging Mapper](MessagingMapper.html)\n\n[Transactional Client](TransactionalClient.html)\n\n[Polling Consumer](PollingConsumer.html)\n\n[Event-driven Consumer](EventDrivenConsumer.html)\n\n[Competing Consumers](CompetingConsumers.html)\n\n[Message Dispatcher](MessageDispatcher.html)\n\n[Selective Consumer](MessageSelector.html)\n\n[Durable Subscriber](DurableSubscription.html)\n\n[Idempotent Receiver](IdempotentReceiver.html)\n\n[Service Activator](MessagingAdapter.html)\n\n[Messaging Channels](MessagingChannelsIntro.html)\n\n[Message Channel](MessageChannel.html)\n\n[Point-to-Point Channel](PointToPointChannel.html)\n\n[Publish-Subscr. Channel](PublishSubscribeChannel.html)\n\n[Datatype Channel](DatatypeChannel.html)\n\n[Invalid Message Channel](InvalidMessageChannel.html)\n\n[Dead Letter Channel](DeadLetterChannel.html)\n\n[Guaranteed Delivery](GuaranteedMessaging.html)\n\n[Channel Adapter](ChannelAdapter.html)\n\n[Messaging Bridge](MessagingBridge.html)\n\n[Message Bus](MessageBus.html)\n\n[Systems Mgmt.](SystemManagementIntro.html)\n\n[Control Bus](ControlBus.html)\n\n[Detour](Detour.html)\n\n[Wire Tap](WireTap.html)\n\n[Message History](MessageHistory.html)\n\n[Message Store](MessageStore.html)\n\n[Smart Proxy](SmartProxy.html)\n\n[Test Message](TestMessage.html)\n\n[Channel Purger](ChannelPurger.html)", "znaku_textu": 7389, "slov": 816, "odkazu": 109, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/MessageBroker.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 14:55:43", "sha256": "ddc6d825aa8a17ef30a18ff8178085022c9424432a6082947f9f7983826f79ca", "hloubka": 3, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://creativecommons.org/licenses/by/4.0/", "https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "https://www.architectelevator.com/book", "https://www.cloudstrategybook.com/", "https://www.platformstrategybook.info/"]} {"url": "http://www.enterpriseintegrationpatterns.com/patterns/messaging/MessageBus.html", "titulek": "Message Bus - Enterprise Integration Patterns", "h1": "", "popis": "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?", "klicova_slova": "Message Bus,integration, messaging, events, patterns, event-driven, coupling, eai, middleware, application integration, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns", "og:title": "Message Bus - Enterprise Integration Patterns", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/MessageBus.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/MessageBusSolution.gif"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Integration Pattern Language"}], "markdown": "| | Message Bus[Messaging Patterns](index.html) » [Messaging Channels](MessagingChannelsIntro.html) | [Contents](toc.html)[⇐ Prev](MessagingBridge.html)[Next ⇒](MessageConstructionIntro.html) |\n| --- | --- | --- |\n\nAn enterprise contains several existing systems that must be able to share data and operate in a unified manner in response to a set of common business requests.\n\nWhat 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?\n\nStructure the connecting middleware between these applications as a *Message Bus* that enables them to work together using messaging.\n\nA *Message Bus* is a combination of a common data model, a common command set, and a messaging infrastructure to allow different systems to communicate through a shared set of interfaces. This is analogous to a communications bus in a computer system, which serves as the focal point for communication between the CPU, main memory, and peripherals. Just as in the hardware analogy, there are a number of pieces that come together to form the message bus:\n\n- **Common communication infrastructure** — Just as the physical pins and wires of a PCI bus provide a common, well-known physical infrastructure for a PC, a common infrastructure must serve the same purpose in a message bus. Typically, a messaging system is chosen to serve as the physical communications infrastructure, providing a cross-platform, cross-language universal adapter between the applications. The infrastructure may include [*Message Router*](MessageRouter.html) capabilities to facilitate the correct routing of messages from system to system. Another common option is to use [*Publish-Subscribe Channel*](PublishSubscribeChannel.html) s to facilitate sending messages to all receivers.\n- **Adapters** — The different systems must find a way to interface with the message bus. Most commonly, this is done with commercial or custom [*Channel Adapter*](ChannelAdapter.html) s and [*Service Activator*](MessagingAdapter.html) s that can handle things like invoking CICS transactions with the proper parameters, or representing the general data structures flowing on the bus in the specific and particular way they should be represented inside each system. This also requires a [*Canonical Data Model*](CanonicalDataModel.html) that all systems can agree on.\n- **Common Command Structure** — Just like PC architectures have a common set of commands to represent the different operations possible on the physical bus (read bytes from an address, write bytes to an address), there needs to be common commands that are understood by all the participants in the *Message Bus* . [*Command Message*](CommandMessage.html) illustrates how this feature works. Another common implementation for this is the [*Datatype Channel*](DatatypeChannel.html) , where a [*Message Router*](MessageRouter.html) makes an explicit decision as to how to route particular messages (like Purchase Orders) to particular endpoints. It is at the end that the analogy breaks down, since the level of the messages carried on the bus are much more fine-grained than the “read/write” kinds of messages carried on a physical bus.\n\n...\nRead the entire pattern in the book [Enterprise Integration Patterns](/books1.html)\n\n**Related patterns:**\n\n[*Canonical Data Model*](CanonicalDataModel.html), [*Channel Adapter*](ChannelAdapter.html), [*Command Message*](CommandMessage.html), [*Datatype Channel*](DatatypeChannel.html), [*Message Router*](MessageRouter.html), [*Service Activator*](MessagingAdapter.html), [*Publish-Subscribe Channel*](PublishSubscribeChannel.html)\n\n---\n\n## Integration Pattern Language\n\n[Message Construct.](MessageConstructionIntro.html)\n\n[Message](Message.html)\n\n[Command Message](CommandMessage.html)\n\n[Document Message](DocumentMessage.html)\n\n[Event Message](EventMessage.html)\n\n[Request-Reply](RequestReply.html)\n\n[Return Address](ReturnAddress.html)\n\n[Correlation Identifier](CorrelationIdentifier.html)\n\n[Message Sequence](MessageSequence.html)\n\n[Message Expiration](MessageExpiration.html)\n\n[Format Indicator](FormatIndicator.html)\n\n[Message Routing](MessageRoutingIntro.html)\n\n[Pipes-and-Filters](PipesAndFilters.html)\n\n[Message Router](MessageRouter.html)\n\n[Content-based Router](ContentBasedRouter.html)\n\n[Message Filter](Filter.html)\n\n[Dynamic Router](DynamicRouter.html)\n\n[Recipient List](RecipientList.html)\n\n[Splitter](Sequencer.html)\n\n[Aggregator](Aggregator.html)\n\n[Resequencer](Resequencer.html)\n\n[Composed Msg. Processor](DistributionAggregate.html)\n\n[Scatter-Gather](BroadcastAggregate.html)\n\n[Routing Slip](RoutingTable.html)\n\n[Process Manager](ProcessManager.html)\n\n[Message Broker](MessageBroker.html)\n\n[Message\nTransformation](MessageTransformationIntro.html)\n\n[Message Translator](MessageTranslator.html)\n\n[Envelope Wrapper](EnvelopeWrapper.html)\n\n[Content Enricher](DataEnricher.html)\n\n[Content Filter](ContentFilter.html)\n\n[Claim Check](StoreInLibrary.html)\n\n[Normalizer](Normalizer.html)\n\n[Canonical Data Model](CanonicalDataModel.html)\n\n[Messaging Endpoints](MessagingEndpointsIntro.html)\n\n[Message Endpoint](MessageEndpoint.html)\n\n[Messaging Gateway](MessagingGateway.html)\n\n[Messaging Mapper](MessagingMapper.html)\n\n[Transactional Client](TransactionalClient.html)\n\n[Polling Consumer](PollingConsumer.html)\n\n[Event-driven Consumer](EventDrivenConsumer.html)\n\n[Competing Consumers](CompetingConsumers.html)\n\n[Message Dispatcher](MessageDispatcher.html)\n\n[Selective Consumer](MessageSelector.html)\n\n[Durable Subscriber](DurableSubscription.html)\n\n[Idempotent Receiver](IdempotentReceiver.html)\n\n[Service Activator](MessagingAdapter.html)\n\n[Messaging Channels](MessagingChannelsIntro.html)\n\n[Message Channel](MessageChannel.html)\n\n[Point-to-Point Channel](PointToPointChannel.html)\n\n[Publish-Subscr. Channel](PublishSubscribeChannel.html)\n\n[Datatype Channel](DatatypeChannel.html)\n\n[Invalid Message Channel](InvalidMessageChannel.html)\n\n[Dead Letter Channel](DeadLetterChannel.html)\n\n[Guaranteed Delivery](GuaranteedMessaging.html)\n\n[Channel Adapter](ChannelAdapter.html)\n\n[Messaging Bridge](MessagingBridge.html)\n\n[Message Bus](MessageBus.html)\n\n[Systems Mgmt.](SystemManagementIntro.html)\n\n[Control Bus](ControlBus.html)\n\n[Detour](Detour.html)\n\n[Wire Tap](WireTap.html)\n\n[Message History](MessageHistory.html)\n\n[Message Store](MessageStore.html)\n\n[Smart Proxy](SmartProxy.html)\n\n[Test Message](TestMessage.html)\n\n[Channel Purger](ChannelPurger.html)", "znaku_textu": 6406, "slov": 663, "odkazu": 108, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/MessageBus.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 14:55:17", "sha256": "95b205a5f55cf1116fc65a3973f8a6fb623bd7032f6e3434ec0782f634484dc9", "hloubka": 3, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://creativecommons.org/licenses/by/4.0/", "https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "https://www.architectelevator.com/book", "https://www.cloudstrategybook.com/", "https://www.platformstrategybook.info/"]} {"url": "http://www.enterpriseintegrationpatterns.com/patterns/messaging/MessageChannel.html", "titulek": "Message Channel - Enterprise Integration Patterns", "h1": "", "popis": "How does one application communicate with another using messaging?", "klicova_slova": "Message Channel,integration, messaging, events, patterns, event-driven, coupling, eai, middleware, application integration, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns", "og:title": "Message Channel - Enterprise Integration Patterns", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/MessageChannel.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/MessageChannelSolution.gif"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Integration Pattern Language"}], "markdown": "| | Message Channel[Messaging Patterns](index.html) » [Messaging Systems](MessagingComponentsIntro.html) | [Contents](toc.html)[⇐ Prev](MessagingComponentsIntro.html)[Next ⇒](Message.html) |\n| --- | --- | --- |\n\nAn enterprise has two separate applications that need to communicate, preferably by using [*Messaging*](Messaging.html).\n\nHow does one application communicate with another using messaging?\n\nConnect the applications using a *Message Channel*, where one application writes information to the channel and the other one reads that information from the channel.\n\nWhen an application has information to communicate, it doesn't just fling the information into the messaging system, it adds the information to a particular *Message Channel*. An application receiving information doesn't just pick it up at random from the messaging system; it retrieves the information from a particular *Message Channel*.\n\nThe application adding info doesn't necessarily know what particular application will end up retrieving the info, but it can be assured that whatever application retrieves the info, that application will be interested in the info. This is because the messaging system has different *Message Channel*s for different types of information the applications want to communicate. When an application sends information, it doesn't randomly add the info to any channel available; it adds the info to a channel whose specific purpose is to communicate that sort of information. Likewise, an application that wants to receive particular information doesn't pull info off some random channel; it selects what channel to get information from based on what type of information it wants.\n\n...\nRead the entire pattern in the book [Enterprise Integration Patterns](/books1.html)\n\n**Related patterns:**\n\n[*Channel Adapter*](ChannelAdapter.html), [*Datatype Channel*](DatatypeChannel.html), [*Invalid Message Channel*](InvalidMessageChannel.html), [*Message Bus*](MessageBus.html), [*Message Endpoint*](MessageEndpoint.html), [*Selective Consumer*](MessageSelector.html), [*Messaging*](Messaging.html), [*Introduction to Messaging Channels*](MessagingChannelsIntro.html), [*Point-to-Point Channel*](PointToPointChannel.html), [*Publish-Subscribe Channel*](PublishSubscribeChannel.html)\n\n---\n\n## Integration Pattern Language\n\n[Message Construct.](MessageConstructionIntro.html)\n\n[Message](Message.html)\n\n[Command Message](CommandMessage.html)\n\n[Document Message](DocumentMessage.html)\n\n[Event Message](EventMessage.html)\n\n[Request-Reply](RequestReply.html)\n\n[Return Address](ReturnAddress.html)\n\n[Correlation Identifier](CorrelationIdentifier.html)\n\n[Message Sequence](MessageSequence.html)\n\n[Message Expiration](MessageExpiration.html)\n\n[Format Indicator](FormatIndicator.html)\n\n[Message Routing](MessageRoutingIntro.html)\n\n[Pipes-and-Filters](PipesAndFilters.html)\n\n[Message Router](MessageRouter.html)\n\n[Content-based Router](ContentBasedRouter.html)\n\n[Message Filter](Filter.html)\n\n[Dynamic Router](DynamicRouter.html)\n\n[Recipient List](RecipientList.html)\n\n[Splitter](Sequencer.html)\n\n[Aggregator](Aggregator.html)\n\n[Resequencer](Resequencer.html)\n\n[Composed Msg. Processor](DistributionAggregate.html)\n\n[Scatter-Gather](BroadcastAggregate.html)\n\n[Routing Slip](RoutingTable.html)\n\n[Process Manager](ProcessManager.html)\n\n[Message Broker](MessageBroker.html)\n\n[Message\nTransformation](MessageTransformationIntro.html)\n\n[Message Translator](MessageTranslator.html)\n\n[Envelope Wrapper](EnvelopeWrapper.html)\n\n[Content Enricher](DataEnricher.html)\n\n[Content Filter](ContentFilter.html)\n\n[Claim Check](StoreInLibrary.html)\n\n[Normalizer](Normalizer.html)\n\n[Canonical Data Model](CanonicalDataModel.html)\n\n[Messaging Endpoints](MessagingEndpointsIntro.html)\n\n[Message Endpoint](MessageEndpoint.html)\n\n[Messaging Gateway](MessagingGateway.html)\n\n[Messaging Mapper](MessagingMapper.html)\n\n[Transactional Client](TransactionalClient.html)\n\n[Polling Consumer](PollingConsumer.html)\n\n[Event-driven Consumer](EventDrivenConsumer.html)\n\n[Competing Consumers](CompetingConsumers.html)\n\n[Message Dispatcher](MessageDispatcher.html)\n\n[Selective Consumer](MessageSelector.html)\n\n[Durable Subscriber](DurableSubscription.html)\n\n[Idempotent Receiver](IdempotentReceiver.html)\n\n[Service Activator](MessagingAdapter.html)\n\n[Messaging Channels](MessagingChannelsIntro.html)\n\n[Message Channel](MessageChannel.html)\n\n[Point-to-Point Channel](PointToPointChannel.html)\n\n[Publish-Subscr. Channel](PublishSubscribeChannel.html)\n\n[Datatype Channel](DatatypeChannel.html)\n\n[Invalid Message Channel](InvalidMessageChannel.html)\n\n[Dead Letter Channel](DeadLetterChannel.html)\n\n[Guaranteed Delivery](GuaranteedMessaging.html)\n\n[Channel Adapter](ChannelAdapter.html)\n\n[Messaging Bridge](MessagingBridge.html)\n\n[Message Bus](MessageBus.html)\n\n[Systems Mgmt.](SystemManagementIntro.html)\n\n[Control Bus](ControlBus.html)\n\n[Detour](Detour.html)\n\n[Wire Tap](WireTap.html)\n\n[Message History](MessageHistory.html)\n\n[Message Store](MessageStore.html)\n\n[Smart Proxy](SmartProxy.html)\n\n[Test Message](TestMessage.html)\n\n[Channel Purger](ChannelPurger.html)", "znaku_textu": 4998, "slov": 431, "odkazu": 108, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/MessageChannel.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 14:55:01", "sha256": "f41fc68d6347d0dc4654778f14f973682dce4ade3dcc4fd4cb99e54bdbbb428f", "hloubka": 3, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://creativecommons.org/licenses/by/4.0/", "https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "https://www.architectelevator.com/book", "https://www.cloudstrategybook.com/", "https://www.platformstrategybook.info/"]} {"url": "http://www.enterpriseintegrationpatterns.com/patterns/messaging/MessageConstructionIntro.html", "titulek": "Introduction to Message Construction - Enterprise Integration Patterns", "h1": "", "popis": "In Introduction to Messaging Systems, we discussed Message. When two applications wish to exchange a piece of data, they do so by wrapping it in a message. Whereas a Message Channel cannot transmit raw data per se, it can transmit the data wrapped in a message.", "klicova_slova": "Introduction to Message Construction,integration, messaging, events, patterns, event-driven, coupling, eai, middleware, application integration, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns", "og:title": "Introduction to Message Construction - Enterprise Integration Patterns", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/MessageConstructionIntro.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/eip1_patterns_wide.png"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Integration Pattern Language"}], "markdown": "| | Introduction to Message Construction[Messaging Patterns](index.html) » [Message Construction](MessageConstructionIntro.html) | [Contents](toc.html)[⇐ Prev](MessageBus.html)[Next ⇒](CommandMessage.html) |\n| --- | --- | --- |\n\nIn [*Introduction to Messaging Systems*](MessagingComponentsIntro.html), we discussed [*Message*](Message.html). When two applications wish to exchange a piece of data, they do so by wrapping it in a message. Whereas a [*Message Channel*](MessageChannel.html) cannot transmit raw data per se, it can transmit the data wrapped in a message.\n\nDeciding to create a [*Message*](Message.html) and send it raises several other issues:\n\n**Message intent** — Messages are ultimately just bundles of data, but the sender can have different intentions for what it expects the receiver to do with the message. It can send a [*Command Message*](CommandMessage.html), specifying a function or method on the receiver that the sender wishes to invoke. The sender is telling the receiver what code to run. It can send a [*Document Message*](DocumentMessage.html), enabling the sender to transmit one of its data structures to the receiver. The sender is passing the data to the receiver, but not specifying what the receiver should necessarily do with it. Or it can send an [*Event Message*](EventMessage.html), notifying the receiver of a change in the sender. The sender is not telling the receiver how to react, just providing notification.\n\n**Returning a response** — When an application sends a message, it often expects a response confirming that the message has been processed and providing the result. This is a [*Request-Reply*](RequestReply.html) scenario. The request is usually a [*Command Message*](CommandMessage.html), and the reply is a [*Document Message*](DocumentMessage.html) containing a result value or an exception. The requestor should specify a [*Return Address*](ReturnAddress.html) in the request to tell the replier what channel to use to transmit the reply. The requestor may have multiple requests in process, so the reply should contain a [*Correlation Identifier*](CorrelationIdentifier.html) that specifies which request this reply corresponds to. [[JMS11, pp.27-28](http://java.sun.com/products/jms/docs.html)]\n\nThere are two common [*Request-Reply*](RequestReply.html) scenarios worth noting that both involve a [*Command Message*](CommandMessage.html) request and a corresponding [*Document Message*](DocumentMessage.html) reply. In the first scenario, *Messaging RPC*, the requestor not only wants to invoke a function on the replier, but also wants the return value from the function. This is how applications perform an RPC (Remote Procedure Call) using [*Messaging*](Messaging.html). In the other scenario, *Messaging Query*, the requestor is performing a query that the replier will execute and return the results in the reply. This is how applications use messaging to perform a query remotely.\n\n**Huge amounts of data** — Sometimes applications want to transfer a really large data structure, one that may not fit comfortably in a single message. In this case, break the data into more managable chunks and send them as a [*Message Sequence*](MessageSequence.html). The chunks have to be sent as a sequence, and not just a bunch of messages, so that the receiver can reconstruct the original data structure.\n\n**Slow messages** — A concern with messaging is that the sender often does not know how long it will take for the receiver to receive the message. Yet the message contents may be time-sensitive, such that if the message isn’t received by a deadline, it should just be ignored and discarded. In this situation, the sender can use [*Message Expiration*](MessageExpiration.html) to specify an expiration date. If the messaging system cannot deliver a message by its expiration, it should discard the message. If a receiver gets a message after its expiration, it should discard the message.\n\nSo it’s not enough to decide to use a [*Message*](Message.html); anytime data needs to be transferred, it will be done through a message. This chapter will explain the other decisions that go into making messages work.\n\n## Integration Pattern Language\n\n[Message Construct.](MessageConstructionIntro.html)\n\n[Message](Message.html)\n\n[Command Message](CommandMessage.html)\n\n[Document Message](DocumentMessage.html)\n\n[Event Message](EventMessage.html)\n\n[Request-Reply](RequestReply.html)\n\n[Return Address](ReturnAddress.html)\n\n[Correlation Identifier](CorrelationIdentifier.html)\n\n[Message Sequence](MessageSequence.html)\n\n[Message Expiration](MessageExpiration.html)\n\n[Format Indicator](FormatIndicator.html)\n\n[Message Routing](MessageRoutingIntro.html)\n\n[Pipes-and-Filters](PipesAndFilters.html)\n\n[Message Router](MessageRouter.html)\n\n[Content-based Router](ContentBasedRouter.html)\n\n[Message Filter](Filter.html)\n\n[Dynamic Router](DynamicRouter.html)\n\n[Recipient List](RecipientList.html)\n\n[Splitter](Sequencer.html)\n\n[Aggregator](Aggregator.html)\n\n[Resequencer](Resequencer.html)\n\n[Composed Msg. Processor](DistributionAggregate.html)\n\n[Scatter-Gather](BroadcastAggregate.html)\n\n[Routing Slip](RoutingTable.html)\n\n[Process Manager](ProcessManager.html)\n\n[Message Broker](MessageBroker.html)\n\n[Message\nTransformation](MessageTransformationIntro.html)\n\n[Message Translator](MessageTranslator.html)\n\n[Envelope Wrapper](EnvelopeWrapper.html)\n\n[Content Enricher](DataEnricher.html)\n\n[Content Filter](ContentFilter.html)\n\n[Claim Check](StoreInLibrary.html)\n\n[Normalizer](Normalizer.html)\n\n[Canonical Data Model](CanonicalDataModel.html)\n\n[Messaging Endpoints](MessagingEndpointsIntro.html)\n\n[Message Endpoint](MessageEndpoint.html)\n\n[Messaging Gateway](MessagingGateway.html)\n\n[Messaging Mapper](MessagingMapper.html)\n\n[Transactional Client](TransactionalClient.html)\n\n[Polling Consumer](PollingConsumer.html)\n\n[Event-driven Consumer](EventDrivenConsumer.html)\n\n[Competing Consumers](CompetingConsumers.html)\n\n[Message Dispatcher](MessageDispatcher.html)\n\n[Selective Consumer](MessageSelector.html)\n\n[Durable Subscriber](DurableSubscription.html)\n\n[Idempotent Receiver](IdempotentReceiver.html)\n\n[Service Activator](MessagingAdapter.html)\n\n[Messaging Channels](MessagingChannelsIntro.html)\n\n[Message Channel](MessageChannel.html)\n\n[Point-to-Point Channel](PointToPointChannel.html)\n\n[Publish-Subscr. Channel](PublishSubscribeChannel.html)\n\n[Datatype Channel](DatatypeChannel.html)\n\n[Invalid Message Channel](InvalidMessageChannel.html)\n\n[Dead Letter Channel](DeadLetterChannel.html)\n\n[Guaranteed Delivery](GuaranteedMessaging.html)\n\n[Channel Adapter](ChannelAdapter.html)\n\n[Messaging Bridge](MessagingBridge.html)\n\n[Message Bus](MessageBus.html)\n\n[Systems Mgmt.](SystemManagementIntro.html)\n\n[Control Bus](ControlBus.html)\n\n[Detour](Detour.html)\n\n[Wire Tap](WireTap.html)\n\n[Message History](MessageHistory.html)\n\n[Message Store](MessageStore.html)\n\n[Smart Proxy](SmartProxy.html)\n\n[Test Message](TestMessage.html)\n\n[Channel Purger](ChannelPurger.html)", "znaku_textu": 6882, "slov": 774, "odkazu": 108, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/MessageConstructionIntro.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 14:55:18", "sha256": "6e406f30907047d22a98c1bf5075272eeeea25db2dd9cd1428b0854c2d71249c", "hloubka": 3, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://java.sun.com/products/jms/docs.html", "https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "https://www.architectelevator.com/book", "https://www.cloudstrategybook.com/", "https://www.platformstrategybook.info/"]} {"url": "http://www.enterpriseintegrationpatterns.com/patterns/messaging/MessageDispatcher.html", "titulek": "Message Dispatcher - Enterprise Integration Patterns", "h1": "", "popis": "How can multiple consumers on a single channel coordinate their message processing?", "klicova_slova": "Message Dispatcher,integration, messaging, events, patterns, event-driven, coupling, eai, middleware, application integration, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns", "og:title": "Message Dispatcher - Enterprise Integration Patterns", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/MessageDispatcher.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/MessageDispatcher.gif"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Integration Pattern Language"}], "markdown": "Messaging Patterns\n\n[Messaging Patterns](index.html)\n\n- [Integration Styles](IntegrationStylesIntro.html)\n- [Messaging Systems](MessagingComponentsIntro.html)\n- [Messaging Channels](MessagingChannelsIntro.html)\n- [Message Construction](MessageConstructionIntro.html)\n- [Interlude: Simple Messaging](SimpleMessagingIntro.html)\n- [Message Routing](MessageRoutingIntro.html)\n- [Message Transformation](MessageTransformationIntro.html)\n- [Interlude: Composed Messaging](ComposedMessagingExample.html)\n- [Messaging Endpoints](MessagingEndpointsIntro.html)\n- [System Management](SystemManagementIntro.html)\n- Interlude: Systems Management Example\n- Integration Patterns in Practice\n- Concluding Remarks\n- Appendices\n\n| | Message Dispatcher[Messaging Patterns](index.html) » [Messaging Endpoints](MessagingEndpointsIntro.html) | [Contents](toc.html)[⇐ Prev](CompetingConsumers.html)[Next ⇒](MessageSelector.html) |\n| --- | --- | --- |\n\nAn application is using [*Messaging*](Messaging.html). The application needs multiple consumers on a single [*Message Channel*](MessageChannel.html) to work in a coordinated fashion.\n\nHow can multiple consumers on a single channel coordinate their message processing?\n\nCreate a *Message Dispatcher* on a channel that will consume messages from a channel and distribute them to performers.\n\nA *Message Dispatcher* consists of two parts:\n\n1. **Dispatcher** – The object that consumes messages from a channel and distributes each message to a performer.\n2. **Performer** – The object that is given the message by the dispatcher and processes it.\n\nWhen a *Message Dispatcher* receives a message, it obtains a performer and dispatches the message to the performer to process it. A performer can delegate to the rest of its application to help process its message. The performer could be newly created by the dispatcher, or could be selected from a pool of available performers. Each performer can run in its own thread to process messages concurrently. All performers may be appropriate for all messages, or the dispatcher may match a message to a specialized performer based on properties of the message.\n\n*Message Dispatcher Sequence*\n\n...\nRead the entire pattern in the book [Enterprise Integration Patterns](/books1.html)\n\n**Related patterns:**\n\n[*Competing Consumers*](CompetingConsumers.html), [*Datatype Channel*](DatatypeChannel.html), [*Remote Procedure Invocation*](EncapsulatedSynchronousIntegration.html), [*Event-Driven Consumer*](EventDrivenConsumer.html), [*Message Channel*](MessageChannel.html), [*Selective Consumer*](MessageSelector.html), [*Messaging*](Messaging.html), [*Point-to-Point Channel*](PointToPointChannel.html), [*Polling Consumer*](PollingConsumer.html), [*Publish-Subscribe Channel*](PublishSubscribeChannel.html), [*Claim Check*](StoreInLibrary.html), [*Transactional Client*](TransactionalClient.html)\n\n---\n\n## Integration Pattern Language\n\n[Message Construct.](MessageConstructionIntro.html)\n\n[Message](Message.html)\n\n[Command Message](CommandMessage.html)\n\n[Document Message](DocumentMessage.html)\n\n[Event Message](EventMessage.html)\n\n[Request-Reply](RequestReply.html)\n\n[Return Address](ReturnAddress.html)\n\n[Correlation Identifier](CorrelationIdentifier.html)\n\n[Message Sequence](MessageSequence.html)\n\n[Message Expiration](MessageExpiration.html)\n\n[Format Indicator](FormatIndicator.html)\n\n[Message Routing](MessageRoutingIntro.html)\n\n[Pipes-and-Filters](PipesAndFilters.html)\n\n[Message Router](MessageRouter.html)\n\n[Content-based Router](ContentBasedRouter.html)\n\n[Message Filter](Filter.html)\n\n[Dynamic Router](DynamicRouter.html)\n\n[Recipient List](RecipientList.html)\n\n[Splitter](Sequencer.html)\n\n[Aggregator](Aggregator.html)\n\n[Resequencer](Resequencer.html)\n\n[Composed Msg. Processor](DistributionAggregate.html)\n\n[Scatter-Gather](BroadcastAggregate.html)\n\n[Routing Slip](RoutingTable.html)\n\n[Process Manager](ProcessManager.html)\n\n[Message Broker](MessageBroker.html)\n\n[Message\nTransformation](MessageTransformationIntro.html)\n\n[Message Translator](MessageTranslator.html)\n\n[Envelope Wrapper](EnvelopeWrapper.html)\n\n[Content Enricher](DataEnricher.html)\n\n[Content Filter](ContentFilter.html)\n\n[Claim Check](StoreInLibrary.html)\n\n[Normalizer](Normalizer.html)\n\n[Canonical Data Model](CanonicalDataModel.html)\n\n[Messaging Endpoints](MessagingEndpointsIntro.html)\n\n[Message Endpoint](MessageEndpoint.html)\n\n[Messaging Gateway](MessagingGateway.html)\n\n[Messaging Mapper](MessagingMapper.html)\n\n[Transactional Client](TransactionalClient.html)\n\n[Polling Consumer](PollingConsumer.html)\n\n[Event-driven Consumer](EventDrivenConsumer.html)\n\n[Competing Consumers](CompetingConsumers.html)\n\n[Message Dispatcher](MessageDispatcher.html)\n\n[Selective Consumer](MessageSelector.html)\n\n[Durable Subscriber](DurableSubscription.html)\n\n[Idempotent Receiver](IdempotentReceiver.html)\n\n[Service Activator](MessagingAdapter.html)\n\n[Messaging Channels](MessagingChannelsIntro.html)\n\n[Message Channel](MessageChannel.html)\n\n[Point-to-Point Channel](PointToPointChannel.html)\n\n[Publish-Subscr. Channel](PublishSubscribeChannel.html)\n\n[Datatype Channel](DatatypeChannel.html)\n\n[Invalid Message Channel](InvalidMessageChannel.html)\n\n[Dead Letter Channel](DeadLetterChannel.html)\n\n[Guaranteed Delivery](GuaranteedMessaging.html)\n\n[Channel Adapter](ChannelAdapter.html)\n\n[Messaging Bridge](MessagingBridge.html)\n\n[Message Bus](MessageBus.html)\n\n[Systems Mgmt.](SystemManagementIntro.html)\n\n[Control Bus](ControlBus.html)\n\n[Detour](Detour.html)\n\n[Wire Tap](WireTap.html)\n\n[Message History](MessageHistory.html)\n\n[Message Store](MessageStore.html)\n\n[Smart Proxy](SmartProxy.html)\n\n[Test Message](TestMessage.html)\n\n[Channel Purger](ChannelPurger.html)\n\n- » [Read the latest in My Blog](/ramblings)\n- » [Get more insights from My Articles](/articles.html)\n- » [See me live in my Upcoming Talks](/talks)\n\nYou can reuse the following elements under the [Creative Commons Attribution](http://creativecommons.org/licenses/by/4.0/) license: pattern icon, pattern name, problem and solution statements (in bold), and the sketch. Other portions are protected by copyright.\n\n[Enterprise Integration Patterns](https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20)\nThe de-facto language for designing asynchronous, distributed systems. Over 100,000 copies sold.\n\n[The Software Architect Elevator](https://www.architectelevator.com/book)\n\n Rethink the role of architects as a connecting element across organizational layers. Acquire the technical, communication, and organizational skills to succeed in this new role.\n\n[Cloud Strategy](https://www.cloudstrategybook.com)\n\n Make your cloud migration a success by translating high-level goals into conscious decisions with well-understood trade-offs.\n\n[Platform Strategy](https://www.platformstrategybook.info)\n\n Platforms can boost innovation through harmonization, but they aren't easy to build. Learn from over a decade of designing and rolling out IT platforms.", "znaku_textu": 6802, "slov": 590, "odkazu": 108, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/MessageDispatcher.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 14:56:02", "sha256": "8c60016066a0c10b5757e12e9fd45f5c1db6a226bdfd112338d5e6e96be0a136", "hloubka": 3, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://creativecommons.org/licenses/by/4.0/", "https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "https://www.architectelevator.com/book", "https://www.cloudstrategybook.com/", "https://www.platformstrategybook.info/"]} {"url": "http://www.enterpriseintegrationpatterns.com/patterns/messaging/MessageEndpoint.html", "titulek": "Message Endpoint - Enterprise Integration Patterns", "h1": "", "popis": "How does an application connect to a messaging channel to send and receive messages?", "klicova_slova": "Message Endpoint,integration, messaging, events, patterns, event-driven, coupling, eai, middleware, application integration, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns", "og:title": "Message Endpoint - Enterprise Integration Patterns", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/MessageEndpoint.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/MessageEndpointSolution.gif"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Integration Pattern Language"}], "markdown": "Messaging Patterns\n\n[Messaging Patterns](index.html)\n\n- [Integration Styles](IntegrationStylesIntro.html)\n- [Messaging Systems](MessagingComponentsIntro.html)\n- [Messaging Channels](MessagingChannelsIntro.html)\n- [Message Construction](MessageConstructionIntro.html)\n- [Interlude: Simple Messaging](SimpleMessagingIntro.html)\n- [Message Routing](MessageRoutingIntro.html)\n- [Message Transformation](MessageTransformationIntro.html)\n- [Interlude: Composed Messaging](ComposedMessagingExample.html)\n- [Messaging Endpoints](MessagingEndpointsIntro.html)\n- [System Management](SystemManagementIntro.html)\n- Interlude: Systems Management Example\n- Integration Patterns in Practice\n- Concluding Remarks\n- Appendices\n\n| | Message Endpoint[Messaging Patterns](index.html) » [Messaging Systems](MessagingComponentsIntro.html) | [Contents](toc.html)[⇐ Prev](MessageTranslator.html)[Next ⇒](MessagingChannelsIntro.html) |\n| --- | --- | --- |\n\nApplications are communicating by sending [*Message*](Message.html)s to each other via [*Message Channel*](MessageChannel.html)s.\n\nHow does an application connect to a messaging channel to send and receive messages?\n\nConnect an application to a messaging channel using a *Message Endpoint*, a client of the messaging system that the application can then use to send or receive messages.\n\n*Message Endpoint* code is custom to both the application and the messaging system’s client API. The rest of the application knows little about message formats, messaging channels, or any of the other details of communicating with other applications via messaging. It just knows that it has a request or piece of data to send to another application, or is expecting those from another application. It is the messaging endpoint code that takes that command or data, makes it into a message, and sends it on a particular messaging channel. It is the endpoint that receives a message, extracts the contents, and gives them to the application in a meaningful way.\n\n...\nRead the entire pattern in the book [Enterprise Integration Patterns](/books1.html)\n\n**Related patterns:**\n\n[*Channel Adapter*](ChannelAdapter.html), [*Competing Consumers*](CompetingConsumers.html), [*Durable Subscriber*](DurableSubscription.html), [*Event-Driven Consumer*](EventDrivenConsumer.html), [*Idempotent Receiver*](IdempotentReceiver.html), [*Message*](Message.html), [*Message Channel*](MessageChannel.html), [*Message Dispatcher*](MessageDispatcher.html), [*Selective Consumer*](MessageSelector.html), [*Service Activator*](MessagingAdapter.html), [*Messaging Gateway*](MessagingGateway.html), [*Messaging Mapper*](MessagingMapper.html), [*Polling Consumer*](PollingConsumer.html), [*Transactional Client*](TransactionalClient.html)\n\n---\n\n## Integration Pattern Language\n\n[Message Construct.](MessageConstructionIntro.html)\n\n[Message](Message.html)\n\n[Command Message](CommandMessage.html)\n\n[Document Message](DocumentMessage.html)\n\n[Event Message](EventMessage.html)\n\n[Request-Reply](RequestReply.html)\n\n[Return Address](ReturnAddress.html)\n\n[Correlation Identifier](CorrelationIdentifier.html)\n\n[Message Sequence](MessageSequence.html)\n\n[Message Expiration](MessageExpiration.html)\n\n[Format Indicator](FormatIndicator.html)\n\n[Message Routing](MessageRoutingIntro.html)\n\n[Pipes-and-Filters](PipesAndFilters.html)\n\n[Message Router](MessageRouter.html)\n\n[Content-based Router](ContentBasedRouter.html)\n\n[Message Filter](Filter.html)\n\n[Dynamic Router](DynamicRouter.html)\n\n[Recipient List](RecipientList.html)\n\n[Splitter](Sequencer.html)\n\n[Aggregator](Aggregator.html)\n\n[Resequencer](Resequencer.html)\n\n[Composed Msg. Processor](DistributionAggregate.html)\n\n[Scatter-Gather](BroadcastAggregate.html)\n\n[Routing Slip](RoutingTable.html)\n\n[Process Manager](ProcessManager.html)\n\n[Message Broker](MessageBroker.html)\n\n[Message\nTransformation](MessageTransformationIntro.html)\n\n[Message Translator](MessageTranslator.html)\n\n[Envelope Wrapper](EnvelopeWrapper.html)\n\n[Content Enricher](DataEnricher.html)\n\n[Content Filter](ContentFilter.html)\n\n[Claim Check](StoreInLibrary.html)\n\n[Normalizer](Normalizer.html)\n\n[Canonical Data Model](CanonicalDataModel.html)\n\n[Messaging Endpoints](MessagingEndpointsIntro.html)\n\n[Message Endpoint](MessageEndpoint.html)\n\n[Messaging Gateway](MessagingGateway.html)\n\n[Messaging Mapper](MessagingMapper.html)\n\n[Transactional Client](TransactionalClient.html)\n\n[Polling Consumer](PollingConsumer.html)\n\n[Event-driven Consumer](EventDrivenConsumer.html)\n\n[Competing Consumers](CompetingConsumers.html)\n\n[Message Dispatcher](MessageDispatcher.html)\n\n[Selective Consumer](MessageSelector.html)\n\n[Durable Subscriber](DurableSubscription.html)\n\n[Idempotent Receiver](IdempotentReceiver.html)\n\n[Service Activator](MessagingAdapter.html)\n\n[Messaging Channels](MessagingChannelsIntro.html)\n\n[Message Channel](MessageChannel.html)\n\n[Point-to-Point Channel](PointToPointChannel.html)\n\n[Publish-Subscr. Channel](PublishSubscribeChannel.html)\n\n[Datatype Channel](DatatypeChannel.html)\n\n[Invalid Message Channel](InvalidMessageChannel.html)\n\n[Dead Letter Channel](DeadLetterChannel.html)\n\n[Guaranteed Delivery](GuaranteedMessaging.html)\n\n[Channel Adapter](ChannelAdapter.html)\n\n[Messaging Bridge](MessagingBridge.html)\n\n[Message Bus](MessageBus.html)\n\n[Systems Mgmt.](SystemManagementIntro.html)\n\n[Control Bus](ControlBus.html)\n\n[Detour](Detour.html)\n\n[Wire Tap](WireTap.html)\n\n[Message History](MessageHistory.html)\n\n[Message Store](MessageStore.html)\n\n[Smart Proxy](SmartProxy.html)\n\n[Test Message](TestMessage.html)\n\n[Channel Purger](ChannelPurger.html)\n\n- » [Read the latest in My Blog](/ramblings)\n- » [Get more insights from My Articles](/articles.html)\n- » [See me live in my Upcoming Talks](/talks)\n\nYou can reuse the following elements under the [Creative Commons Attribution](http://creativecommons.org/licenses/by/4.0/) license: pattern icon, pattern name, problem and solution statements (in bold), and the sketch. Other portions are protected by copyright.\n\n[Enterprise Integration Patterns](https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20)\nThe de-facto language for designing asynchronous, distributed systems. Over 100,000 copies sold.\n\n[The Software Architect Elevator](https://www.architectelevator.com/book)\n\n Rethink the role of architects as a connecting element across organizational layers. Acquire the technical, communication, and organizational skills to succeed in this new role.\n\n[Cloud Strategy](https://www.cloudstrategybook.com)\n\n Make your cloud migration a success by translating high-level goals into conscious decisions with well-understood trade-offs.\n\n[Platform Strategy](https://www.platformstrategybook.info)\n\n Platforms can boost innovation through harmonization, but they aren't easy to build. Learn from over a decade of designing and rolling out IT platforms.", "znaku_textu": 6687, "slov": 571, "odkazu": 108, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/MessageEndpoint.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 14:55:07", "sha256": "2c9380b85e3fdaaac9b47e713e209aab5795c47d05fb319ca0bc80eb59efbf3c", "hloubka": 3, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://creativecommons.org/licenses/by/4.0/", "https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "https://www.architectelevator.com/book", "https://www.cloudstrategybook.com/", "https://www.platformstrategybook.info/"]} {"url": "http://www.enterpriseintegrationpatterns.com/patterns/messaging/MessageExpiration.html", "titulek": "Message Expiration - Enterprise Integration Patterns", "h1": "", "popis": "How can a sender indicate when a message should be considered stale and thus shouldn’t be processed?", "klicova_slova": "Message Expiration,integration, messaging, events, patterns, event-driven, coupling, eai, middleware, application integration, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns", "og:title": "Message Expiration - Enterprise Integration Patterns", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/MessageExpiration.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/MessageExpirationSolution.gif"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Example: Azure Service BusNEW"}, {"uroven": 2, "text": "Example: Amazon EventBridgeNEW"}, {"uroven": 2, "text": "Example: Google Cloud PubSubNEW"}, {"uroven": 2, "text": "Integration Pattern Language"}], "markdown": "| | Message Expiration[Messaging Patterns](index.html) » [Message Construction](MessageConstructionIntro.html) | [Contents](toc.html)[⇐ Prev](MessageSequence.html)[Next ⇒](FormatIndicator.html) |\n| --- | --- | --- |\n\nMy application is using [*Messaging*](Messaging.html). If a [*Message*](Message.html)’s data or request is not received by a certain time, it is useless and should be ignored.\n\nHow can a sender indicate when a message should be considered stale and thus shouldn’t be processed?\n\nSet the *Message Expiration* to specify a time limit how long the message is viable.\n\nOnce the time for which a message is viable passes, and the message still has not been consumed, then the message will expire. The messaging system’s consumers will ignore an expired message; they treat the message as if it where never sent in the first place. Most messaging system implementations reroute expired messages to the [*Dead Letter Channel*](DeadLetterChannel.html), while others simply discard expired messages; this may be configurable.\n\nA *Message Expiration* is like the expiration date on a carton of milk—after that date, you’re not supposed to drink the milk. If the expiration date passes while the milk is on the grocery store shelf, the grocer is supposed to pull the milk off the shelf and not sell it. If you end up with a carton on milk that expires, you’re supposed to pour it out. Likewise, when a message expires, the messaging system should no longer deliver it. If a receiver nevertheless receives a message but cannot process it before the expiration, the receiver should throw away the message.\n\n...\nRead the entire pattern in the book [Enterprise Integration Patterns](/books1.html)\n\n## Example: Azure Service Bus[NEW](/ramblings/eip1_examples_updated.html)\n\n[Azure Service Bus](https://azure.microsoft.com/en-au/products/service-bus/) implements *Message Expiration* [both at the entity and the message level](https://learn.microsoft.com/en-us/azure/service-bus-messaging/message-expiration). Messages expire at the earliest of the *Message Expiration* set in the message or the entity, e.g. the queue or topic. Expired messages are sent to a [*Dead Letter Channel*](DeadLetterChannel.html) if one is specified. Messages that are locked for delivery (see [*Transactional Client*](TransactionalClient.html)) won't expire as long as they are locked.\n\n## Example: Amazon EventBridge[NEW](/ramblings/eip1_examples_updated.html)\n\n[Amazon EventBridge](https://aws.amazon.com/eventbridge/) uses a built-in *Message Expiration* that can [trigger on elapsed time or the number of failed delivery attempts](https://docs.aws.amazon.com/eventbridge/latest/userguide/eb-rule-dlq.html), whichever comes first. The default values are 24 hours and 185 retries, but can be customized in the console or via the command-line by using the RetryPolicy setting of the EventBridge target:\n\n```\n\"RetryPolicy\": {\n \"MaximumRetryAttempts\": integer,\n \"MaximumEventAgeInSeconds\": integer\n }\n```\n\nAsynchronous targets like SQS, SNS, or CloudWatch logs rarely trigger the *Message Expiration* because they can consume messages at the same rate as they arrive on the event bus. However, *Message Expiration* is an important setting when using rate-limited targets like [API Destinations](https://docs.aws.amazon.com/eventbridge/latest/userguide/eb-api-destinations.html) (HTTP calls).\n\n## Example: Google Cloud PubSub[NEW](/ramblings/eip1_examples_updated.html)\n\n[*Publish-Subscribe Channel*](PublishSubscribeChannel.html)s generally have longer *Message Expiration* as a new subscriber might be interested in messages that have already been consumed by existing subscribers. [Google Cloud PubSub](https://cloud.google.com/pubsub/) includes a message_retention_duration setting for both topics and subscriptions (see [*Publish-Subscribe Channel*](PublishSubscribeChannel.html) for an explanation of topics and subscriptions) that allows subscriptions to [replay messages that predate the subscription](https://cloud.google.com/pubsub/docs/replay-overview), allowing subscriptions to act as [*Durable Subscriber*](DurableSubscription.html)s. The maximum setting is a generous 31 days, but you pay for storage.\n\n**Related patterns:**\n\n[*Dead Letter Channel*](DeadLetterChannel.html), [*Durable Subscriber*](DurableSubscription.html), [*Guaranteed Delivery*](GuaranteedMessaging.html), [*Invalid Message Channel*](InvalidMessageChannel.html), [*Message*](Message.html), [*Messaging*](Messaging.html), [*Publish-Subscribe Channel*](PublishSubscribeChannel.html), [*Request-Reply*](RequestReply.html), [*Transactional Client*](TransactionalClient.html)\n\n---\n\n## Integration Pattern Language\n\n[Message Construct.](MessageConstructionIntro.html)\n\n[Message](Message.html)\n\n[Command Message](CommandMessage.html)\n\n[Document Message](DocumentMessage.html)\n\n[Event Message](EventMessage.html)\n\n[Request-Reply](RequestReply.html)\n\n[Return Address](ReturnAddress.html)\n\n[Correlation Identifier](CorrelationIdentifier.html)\n\n[Message Sequence](MessageSequence.html)\n\n[Message Expiration](MessageExpiration.html)\n\n[Format Indicator](FormatIndicator.html)\n\n[Message Routing](MessageRoutingIntro.html)\n\n[Pipes-and-Filters](PipesAndFilters.html)\n\n[Message Router](MessageRouter.html)\n\n[Content-based Router](ContentBasedRouter.html)\n\n[Message Filter](Filter.html)\n\n[Dynamic Router](DynamicRouter.html)\n\n[Recipient List](RecipientList.html)\n\n[Splitter](Sequencer.html)\n\n[Aggregator](Aggregator.html)\n\n[Resequencer](Resequencer.html)\n\n[Composed Msg. Processor](DistributionAggregate.html)\n\n[Scatter-Gather](BroadcastAggregate.html)\n\n[Routing Slip](RoutingTable.html)\n\n[Process Manager](ProcessManager.html)\n\n[Message Broker](MessageBroker.html)\n\n[Message\nTransformation](MessageTransformationIntro.html)\n\n[Message Translator](MessageTranslator.html)\n\n[Envelope Wrapper](EnvelopeWrapper.html)\n\n[Content Enricher](DataEnricher.html)\n\n[Content Filter](ContentFilter.html)\n\n[Claim Check](StoreInLibrary.html)\n\n[Normalizer](Normalizer.html)\n\n[Canonical Data Model](CanonicalDataModel.html)\n\n[Messaging Endpoints](MessagingEndpointsIntro.html)\n\n[Message Endpoint](MessageEndpoint.html)\n\n[Messaging Gateway](MessagingGateway.html)\n\n[Messaging Mapper](MessagingMapper.html)\n\n[Transactional Client](TransactionalClient.html)\n\n[Polling Consumer](PollingConsumer.html)\n\n[Event-driven Consumer](EventDrivenConsumer.html)\n\n[Competing Consumers](CompetingConsumers.html)\n\n[Message Dispatcher](MessageDispatcher.html)\n\n[Selective Consumer](MessageSelector.html)\n\n[Durable Subscriber](DurableSubscription.html)\n\n[Idempotent Receiver](IdempotentReceiver.html)\n\n[Service Activator](MessagingAdapter.html)\n\n[Messaging Channels](MessagingChannelsIntro.html)\n\n[Message Channel](MessageChannel.html)\n\n[Point-to-Point Channel](PointToPointChannel.html)\n\n[Publish-Subscr. Channel](PublishSubscribeChannel.html)\n\n[Datatype Channel](DatatypeChannel.html)\n\n[Invalid Message Channel](InvalidMessageChannel.html)\n\n[Dead Letter Channel](DeadLetterChannel.html)\n\n[Guaranteed Delivery](GuaranteedMessaging.html)\n\n[Channel Adapter](ChannelAdapter.html)\n\n[Messaging Bridge](MessagingBridge.html)\n\n[Message Bus](MessageBus.html)\n\n[Systems Mgmt.](SystemManagementIntro.html)\n\n[Control Bus](ControlBus.html)\n\n[Detour](Detour.html)\n\n[Wire Tap](WireTap.html)\n\n[Message History](MessageHistory.html)\n\n[Message Store](MessageStore.html)\n\n[Smart Proxy](SmartProxy.html)\n\n[Test Message](TestMessage.html)\n\n[Channel Purger](ChannelPurger.html)", "znaku_textu": 7322, "slov": 715, "odkazu": 116, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/MessageExpiration.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 14:55:26", "sha256": "9522e7c0d36b461b363796225d7fc9cef2609467e252c9ac17edc1d2354a98ee", "hloubka": 3, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://azure.microsoft.com/en-au/products/service-bus/", "https://learn.microsoft.com/en-us/azure/service-bus-messaging/message-expiration", "https://aws.amazon.com/eventbridge/", "https://docs.aws.amazon.com/eventbridge/latest/userguide/eb-rule-dlq.html", "https://docs.aws.amazon.com/eventbridge/latest/userguide/eb-api-destinations.html", "https://cloud.google.com/pubsub/", "https://cloud.google.com/pubsub/docs/replay-overview", "http://creativecommons.org/licenses/by/4.0/", "https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "https://www.architectelevator.com/book", "https://www.cloudstrategybook.com/", "https://www.platformstrategybook.info/"]} {"url": "http://www.enterpriseintegrationpatterns.com/patterns/messaging/MessageHistory.html", "titulek": "Message History - Enterprise Integration Patterns", "h1": "", "popis": "How can we effectively analyze and debug the flow of messages in a loosely coupled system?", "klicova_slova": "Message History,integration, messaging, events, patterns, event-driven, coupling, eai, middleware, application integration, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns", "og:title": "Message History - Enterprise Integration Patterns", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/MessageHistory.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/MessageHistory.gif"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Integration Pattern Language"}], "markdown": "| | Message History[Messaging Patterns](index.html) » [System Management](SystemManagementIntro.html) | [Contents](toc.html)[⇐ Prev](WireTap.html)[Next ⇒](MessageStore.html) |\n| --- | --- | --- |\n\nOne of key benefits of a message-based systems is the loose coupling between participants; the message sender and recipient make no (or few) assumptions about each other's identity. If a message recipient retrieves a message from a message channel, it generally does not know nor care which application put the message on the channel. The message is by definition self-contained and is not associated with a specific sender. This is one of the architectural strengths of message-based systems.\n\nHowever, the same property can make debugging and analyzing dependencies very difficult. If we are not sure where a message goes, how can we assess the impact of a change in the message format? Likewise, if we don't know which application published a message it is difficult to correct a problem with the message.\n\nHow can we effectively analyze and debug the flow of messages in a loosely coupled system?\n\nTherefore, attach a *Message History* to the message. The *Message History* is a list of all applications that the message passed through since its origination.\n\nThe *Message History* maintains a list of all components that the message passed through. Every component that processes the message (including the originator) adds one entry to the list. The *Message History* should be part of the message header because it contains system-specific control information. Keeping this information in the header separates it from the message body that contains application specific data.\n\nNot every message that a component publishes is the result of a single message. For example,an [*Aggregator*](Aggregator.html) publishes a single message that carries information collected from multiple messages, each of which could have its own history. If we want to represent this scenario in the *Message History*, we have two choices. If we want to track the complete history we can enhance the *Message History* to be stored as a hierarchical tree structure. Because of the recursive nature of a tree structure we can store multiple message histories under a single 'node'. Alternatively, we can keep a simple list and only keep the history of one incoming message. This can work well if one incoming message is more important to the result than other, auxiliary messages.\n\n...\nRead the entire pattern in the book [Enterprise Integration Patterns](/books1.html)\n\n**Related patterns:**\n\n[*Aggregator*](Aggregator.html), [*Control Bus*](ControlBus.html), [*Message Router*](MessageRouter.html), [*Message Store*](MessageStore.html), [*Process Manager*](ProcessManager.html), [*Publish-Subscribe Channel*](PublishSubscribeChannel.html), [*Recipient List*](RecipientList.html)\n\n---\n\n## Integration Pattern Language\n\n[Message Construct.](MessageConstructionIntro.html)\n\n[Message](Message.html)\n\n[Command Message](CommandMessage.html)\n\n[Document Message](DocumentMessage.html)\n\n[Event Message](EventMessage.html)\n\n[Request-Reply](RequestReply.html)\n\n[Return Address](ReturnAddress.html)\n\n[Correlation Identifier](CorrelationIdentifier.html)\n\n[Message Sequence](MessageSequence.html)\n\n[Message Expiration](MessageExpiration.html)\n\n[Format Indicator](FormatIndicator.html)\n\n[Message Routing](MessageRoutingIntro.html)\n\n[Pipes-and-Filters](PipesAndFilters.html)\n\n[Message Router](MessageRouter.html)\n\n[Content-based Router](ContentBasedRouter.html)\n\n[Message Filter](Filter.html)\n\n[Dynamic Router](DynamicRouter.html)\n\n[Recipient List](RecipientList.html)\n\n[Splitter](Sequencer.html)\n\n[Aggregator](Aggregator.html)\n\n[Resequencer](Resequencer.html)\n\n[Composed Msg. Processor](DistributionAggregate.html)\n\n[Scatter-Gather](BroadcastAggregate.html)\n\n[Routing Slip](RoutingTable.html)\n\n[Process Manager](ProcessManager.html)\n\n[Message Broker](MessageBroker.html)\n\n[Message\nTransformation](MessageTransformationIntro.html)\n\n[Message Translator](MessageTranslator.html)\n\n[Envelope Wrapper](EnvelopeWrapper.html)\n\n[Content Enricher](DataEnricher.html)\n\n[Content Filter](ContentFilter.html)\n\n[Claim Check](StoreInLibrary.html)\n\n[Normalizer](Normalizer.html)\n\n[Canonical Data Model](CanonicalDataModel.html)\n\n[Messaging Endpoints](MessagingEndpointsIntro.html)\n\n[Message Endpoint](MessageEndpoint.html)\n\n[Messaging Gateway](MessagingGateway.html)\n\n[Messaging Mapper](MessagingMapper.html)\n\n[Transactional Client](TransactionalClient.html)\n\n[Polling Consumer](PollingConsumer.html)\n\n[Event-driven Consumer](EventDrivenConsumer.html)\n\n[Competing Consumers](CompetingConsumers.html)\n\n[Message Dispatcher](MessageDispatcher.html)\n\n[Selective Consumer](MessageSelector.html)\n\n[Durable Subscriber](DurableSubscription.html)\n\n[Idempotent Receiver](IdempotentReceiver.html)\n\n[Service Activator](MessagingAdapter.html)\n\n[Messaging Channels](MessagingChannelsIntro.html)\n\n[Message Channel](MessageChannel.html)\n\n[Point-to-Point Channel](PointToPointChannel.html)\n\n[Publish-Subscr. Channel](PublishSubscribeChannel.html)\n\n[Datatype Channel](DatatypeChannel.html)\n\n[Invalid Message Channel](InvalidMessageChannel.html)\n\n[Dead Letter Channel](DeadLetterChannel.html)\n\n[Guaranteed Delivery](GuaranteedMessaging.html)\n\n[Channel Adapter](ChannelAdapter.html)\n\n[Messaging Bridge](MessagingBridge.html)\n\n[Message Bus](MessageBus.html)\n\n[Systems Mgmt.](SystemManagementIntro.html)\n\n[Control Bus](ControlBus.html)\n\n[Detour](Detour.html)\n\n[Wire Tap](WireTap.html)\n\n[Message History](MessageHistory.html)\n\n[Message Store](MessageStore.html)\n\n[Smart Proxy](SmartProxy.html)\n\n[Test Message](TestMessage.html)\n\n[Channel Purger](ChannelPurger.html)", "znaku_textu": 5571, "slov": 559, "odkazu": 108, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/MessageHistory.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 14:56:12", "sha256": "d5aefe0d1353167cdd7be8f1ddc822d5ad13c4c39bb36f6aeb6d1fa11f5c865d", "hloubka": 3, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://creativecommons.org/licenses/by/4.0/", "https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "https://www.architectelevator.com/book", "https://www.cloudstrategybook.com/", "https://www.platformstrategybook.info/"]} {"url": "http://www.enterpriseintegrationpatterns.com/patterns/messaging/MessageRouter.html", "titulek": "Message Router - Enterprise Integration Patterns", "h1": "", "popis": "How can you decouple individual processing steps so that messages can be passed to different filters depending on a set of conditions?", "klicova_slova": "Message Router,integration, messaging, events, patterns, event-driven, coupling, eai, middleware, application integration, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns", "og:title": "Message Router - Enterprise Integration Patterns", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/MessageRouter.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/MessageRouter.gif"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Integration Pattern Language"}], "markdown": "Messaging Patterns\n\n[Messaging Patterns](index.html)\n\n- [Integration Styles](IntegrationStylesIntro.html)\n- [Messaging Systems](MessagingComponentsIntro.html)\n- [Messaging Channels](MessagingChannelsIntro.html)\n- [Message Construction](MessageConstructionIntro.html)\n- [Interlude: Simple Messaging](SimpleMessagingIntro.html)\n- [Message Routing](MessageRoutingIntro.html)\n- [Message Transformation](MessageTransformationIntro.html)\n- [Interlude: Composed Messaging](ComposedMessagingExample.html)\n- [Messaging Endpoints](MessagingEndpointsIntro.html)\n- [System Management](SystemManagementIntro.html)\n- Interlude: Systems Management Example\n- Integration Patterns in Practice\n- Concluding Remarks\n- Appendices\n\n| | Message Router[Messaging Patterns](index.html) » [Messaging Systems](MessagingComponentsIntro.html) | [Contents](toc.html)[⇐ Prev](PipesAndFilters.html)[Next ⇒](MessageTranslator.html) |\n| --- | --- | --- |\n\nMultiple processing steps in a [*Pipes and Filters*](PipesAndFilters.html) chain are connected by [*Message Channel*](MessageChannel.html)s.\n\nHow can you decouple individual processing steps so that messages can be passed to different filters depending on a set of conditions?\n\nInsert a special filter, a *Message Router*, which consumes a [*Message*](Message.html) from one [*Message Channel*](MessageChannel.html) and republishes it to a different [*Message Channel*](MessageChannel.html) channel depending on a set of conditions.\n\nThe *Message Router* differs from the most basic notion of [*Pipes and Filters*](PipesAndFilters.html) in that it connects to multiple output channels. Thanks to the [*Pipes and Filters*](PipesAndFilters.html) architecture the components surrounding the *Message Router* are completely unaware of the existence of a *Message Router*. A key property of the *Message Router* is that it does not modify the message contents. It only concerns itself with the destination of the message.\n\nThe key benefit of using a *Message Router* is that the decision criteria for the destination of a message are maintained in a single location. If new message types are defined, new processing components are added, or the routing rules change, we need to change only the *Message Router* logic and all other components remain unaffected. Also, since all messages pass through a single *Message Router*, incoming messages are guaranteed to be processed one-by-one in the correct order.\n\n...\nRead the entire pattern in the book [Enterprise Integration Patterns](/books1.html)\n\n**Related patterns:**\n\n[*Channel Adapter*](ChannelAdapter.html), [*Content-Based Router*](ContentBasedRouter.html), [*Control Bus*](ControlBus.html), [*Datatype Channel*](DatatypeChannel.html), [*Dynamic Router*](DynamicRouter.html), [*Message Filter*](Filter.html), [*Message*](Message.html), [*Message Channel*](MessageChannel.html), [*Message History*](MessageHistory.html), [*Introduction to Message Routing*](MessageRoutingIntro.html), [*Message Translator*](MessageTranslator.html), [*Pipes and Filters*](PipesAndFilters.html), [*Publish-Subscribe Channel*](PublishSubscribeChannel.html), [*Transactional Client*](TransactionalClient.html)\n\n---\n\n## Integration Pattern Language\n\n[Message Construct.](MessageConstructionIntro.html)\n\n[Message](Message.html)\n\n[Command Message](CommandMessage.html)\n\n[Document Message](DocumentMessage.html)\n\n[Event Message](EventMessage.html)\n\n[Request-Reply](RequestReply.html)\n\n[Return Address](ReturnAddress.html)\n\n[Correlation Identifier](CorrelationIdentifier.html)\n\n[Message Sequence](MessageSequence.html)\n\n[Message Expiration](MessageExpiration.html)\n\n[Format Indicator](FormatIndicator.html)\n\n[Message Routing](MessageRoutingIntro.html)\n\n[Pipes-and-Filters](PipesAndFilters.html)\n\n[Message Router](MessageRouter.html)\n\n[Content-based Router](ContentBasedRouter.html)\n\n[Message Filter](Filter.html)\n\n[Dynamic Router](DynamicRouter.html)\n\n[Recipient List](RecipientList.html)\n\n[Splitter](Sequencer.html)\n\n[Aggregator](Aggregator.html)\n\n[Resequencer](Resequencer.html)\n\n[Composed Msg. Processor](DistributionAggregate.html)\n\n[Scatter-Gather](BroadcastAggregate.html)\n\n[Routing Slip](RoutingTable.html)\n\n[Process Manager](ProcessManager.html)\n\n[Message Broker](MessageBroker.html)\n\n[Message\nTransformation](MessageTransformationIntro.html)\n\n[Message Translator](MessageTranslator.html)\n\n[Envelope Wrapper](EnvelopeWrapper.html)\n\n[Content Enricher](DataEnricher.html)\n\n[Content Filter](ContentFilter.html)\n\n[Claim Check](StoreInLibrary.html)\n\n[Normalizer](Normalizer.html)\n\n[Canonical Data Model](CanonicalDataModel.html)\n\n[Messaging Endpoints](MessagingEndpointsIntro.html)\n\n[Message Endpoint](MessageEndpoint.html)\n\n[Messaging Gateway](MessagingGateway.html)\n\n[Messaging Mapper](MessagingMapper.html)\n\n[Transactional Client](TransactionalClient.html)\n\n[Polling Consumer](PollingConsumer.html)\n\n[Event-driven Consumer](EventDrivenConsumer.html)\n\n[Competing Consumers](CompetingConsumers.html)\n\n[Message Dispatcher](MessageDispatcher.html)\n\n[Selective Consumer](MessageSelector.html)\n\n[Durable Subscriber](DurableSubscription.html)\n\n[Idempotent Receiver](IdempotentReceiver.html)\n\n[Service Activator](MessagingAdapter.html)\n\n[Messaging Channels](MessagingChannelsIntro.html)\n\n[Message Channel](MessageChannel.html)\n\n[Point-to-Point Channel](PointToPointChannel.html)\n\n[Publish-Subscr. Channel](PublishSubscribeChannel.html)\n\n[Datatype Channel](DatatypeChannel.html)\n\n[Invalid Message Channel](InvalidMessageChannel.html)\n\n[Dead Letter Channel](DeadLetterChannel.html)\n\n[Guaranteed Delivery](GuaranteedMessaging.html)\n\n[Channel Adapter](ChannelAdapter.html)\n\n[Messaging Bridge](MessagingBridge.html)\n\n[Message Bus](MessageBus.html)\n\n[Systems Mgmt.](SystemManagementIntro.html)\n\n[Control Bus](ControlBus.html)\n\n[Detour](Detour.html)\n\n[Wire Tap](WireTap.html)\n\n[Message History](MessageHistory.html)\n\n[Message Store](MessageStore.html)\n\n[Smart Proxy](SmartProxy.html)\n\n[Test Message](TestMessage.html)\n\n[Channel Purger](ChannelPurger.html)\n\n- » [Read the latest in My Blog](/ramblings)\n- » [Get more insights from My Articles](/articles.html)\n- » [See me live in my Upcoming Talks](/talks)\n\nYou can reuse the following elements under the [Creative Commons Attribution](http://creativecommons.org/licenses/by/4.0/) license: pattern icon, pattern name, problem and solution statements (in bold), and the sketch. Other portions are protected by copyright.\n\n[Enterprise Integration Patterns](https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20)\nThe de-facto language for designing asynchronous, distributed systems. Over 100,000 copies sold.\n\n[The Software Architect Elevator](https://www.architectelevator.com/book)\n\n Rethink the role of architects as a connecting element across organizational layers. Acquire the technical, communication, and organizational skills to succeed in this new role.\n\n[Cloud Strategy](https://www.cloudstrategybook.com)\n\n Make your cloud migration a success by translating high-level goals into conscious decisions with well-understood trade-offs.\n\n[Platform Strategy](https://www.platformstrategybook.info)\n\n Platforms can boost innovation through harmonization, but they aren't easy to build. Learn from over a decade of designing and rolling out IT platforms.", "znaku_textu": 7105, "slov": 639, "odkazu": 108, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/MessageRouter.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 14:55:05", "sha256": "a4f1bda42d7ab7edf2340d2b661d36fc39b9bb0b52fb0bb3dae2b844ae10e3c6", "hloubka": 3, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://creativecommons.org/licenses/by/4.0/", "https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "https://www.architectelevator.com/book", "https://www.cloudstrategybook.com/", "https://www.platformstrategybook.info/"]} {"url": "http://www.enterpriseintegrationpatterns.com/patterns/messaging/MessageRoutingIntro.html", "titulek": "Introduction to Message Routing - Enterprise Integration Patterns", "h1": "", "popis": "In Chapter 2, we discussed how a Message Router can be used to decouple a message source from the ultimate destination of the message. This chapter elaborates on specific types of Message Routers to explain how to provide routing and brokering ability to an integration solution. Most patterns are refinements of the Message Router pattern while others combine multiple Message Routers to solve more complex problems. Therefore, we can categorize the Message Routing patterns into the following groups:", "klicova_slova": "Introduction to Message Routing,integration, messaging, events, patterns, event-driven, coupling, eai, middleware, application integration, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns", "og:title": "Introduction to Message Routing - Enterprise Integration Patterns", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/MessageRoutingIntro.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/eip1_patterns_wide.png"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Simple Routers"}, {"uroven": 2, "text": "Composed Routers"}, {"uroven": 2, "text": "Architectural Patterns"}, {"uroven": 2, "text": "The Right Router for the Right Purpose"}, {"uroven": 2, "text": "Integration Pattern Language"}], "markdown": "| | Introduction to Message Routing[Messaging Patterns](index.html) » [Message Routing](MessageRoutingIntro.html) | [Contents](toc.html)[⇐ Prev](ObserverJmsExample.html)[Next ⇒](ContentBasedRouter.html) |\n| --- | --- | --- |\n\nIn Chapter 2, we discussed how a [*Message Router*](MessageRouter.html) can be used to decouple a message source from the ultimate destination of the message. This chapter elaborates on specific types of [*Message Router*](MessageRouter.html)s to explain how to provide routing and brokering ability to an integration solution. Most patterns are refinements of the [*Message Router*](MessageRouter.html) pattern while others combine multiple [*Message Router*](MessageRouter.html)s to solve more complex problems. Therefore, we can categorize the Message Routing patterns into the following groups:\n\n- **Simple Routers** are variants of the [*Message Router*](MessageRouter.html) and route messages from one inbound channel to one or more outbound channels.\n- **Composed Routers** combine multiple simple routers to create more complex message flows.\n- **Architectural Patterns** describe architectural styles based on [*Message Router*](MessageRouter.html) s.\n\n## Simple Routers\n\nThe [*Content-Based Router*](ContentBasedRouter.html) inspects the content of a message and routes it to another channel based on the content of the message. Using such a router enables the message producer to send messages to a single channel and leave it to the [*Content-Based Router*](ContentBasedRouter.html) to inspect messages and route them to the proper destination. This alleviates the sending application from this task and avoids coupling the message producer to specific destination channels.\n\nA [*Message Filter*](Filter.html) is a special form of a [*Content-Based Router*](ContentBasedRouter.html). It examines the message content and passes the message to another channel if the message content matches certain criteria. Otherwise, it discards the message. [*Message Filter*](Filter.html)s can be used with [*Publish-Subscribe Channel*](PublishSubscribeChannel.html) to route a message to all possible recipients and allow the recipients to filter out irrelevant messages. A [*Message Filter*](Filter.html) performs a function that is very similar to that of a [*Selective Consumer*](MessageSelector.html) with the key difference being that a [*Message Filter*](Filter.html) is part of the messaging system, routing qualifying messages to another channel, whereas a [*Selective Consumer*](MessageSelector.html) is built into a [*Message Endpoint*](MessageEndpoint.html).\n\nA [*Content-Based Router*](ContentBasedRouter.html) and a [*Message Filter*](Filter.html) can actually solve a similar problem. A [*Content-Based Router*](ContentBasedRouter.html) routes a message to the correct destination based on the criteria encoded in the [*Content-Based Router*](ContentBasedRouter.html). Equivalent behavior can be achieved by using a [*Publish-Subscribe Channel*](PublishSubscribeChannel.html) and an array of [*Message Filter*](Filter.html)s, one for each potential recipient. Each [*Message Filter*](Filter.html) eliminates the messages that to not match the criteria for the specific destination. The [*Content-Based Router*](ContentBasedRouter.html) routes predictively to a single channel and therefore has total control, but is also dependent on the list of all possible destination channels. The [*Message Filter*](Filter.html) array filters reactively, spreading the routing logic across many [*Message Filter*](Filter.html)s but avoiding a single component that is dependent on all possible destinations. The trade-off between these solutions is described in more detail in the [*Message Filter*](Filter.html) pattern.\n\nA basic [*Message Router*](MessageRouter.html) uses fixed rules to determine the destination of an incoming message. Where we need more flexibility, a [*Dynamic Router*](DynamicRouter.html) can be very useful. This router allows the routing logic to be modified by sending control messages to a designated control port. The dynamic nature of the [*Dynamic Router*](DynamicRouter.html) can be combined with most forms of the [*Message Router*](MessageRouter.html).\n\nChapter 3 introduced the concept of a [*Point-to-Point Channel*](PointToPointChannel.html) and a [*Publish-Subscribe Channel*](PublishSubscribeChannel.html). Sometimes, you need to send a message to more than one recipient, but want to maintain control over the recipients. The [*Recipient List*](RecipientList.html) allows you do just that. In essence, a [*Recipient List*](RecipientList.html) is a [*Content-Based Router*](ContentBasedRouter.html) that can route a single message to more than one destination channel.\n\nSome messages contain lists of individual items. How do you process these items individually? Use a [*Splitter*](Sequencer.html) to split the large message into individual messages. Each message can then be routed further and processed individually.\n\nHowever, you may need to recombine the messages that the [*Splitter*](Sequencer.html) created back into a single message. This is one of the functions an [*Aggregator*](Aggregator.html) performs. An [*Aggregator*](Aggregator.html) can receive a stream of messages, identify related messages and combine them into a single message. Unlike the other routing patterns, the [*Aggregator*](Aggregator.html) is a stateful [*Message Router*](MessageRouter.html) because it has to store messages internally until specific conditions are fulfilled. This mean that an [*Aggregator*](Aggregator.html) can consume a number of messages before it publishes a message.\n\nBecause we use messaging to connect applications or components running on multiple computers, multiple messages can be processed in parallel. For example, more than one process may consume messages off a single channel. One of these processes may execute faster than another, causing messages to be processed out of order. However, some components depend on the correct sequence of individual messages, for example ledger-based systems. The [*Resequencer*](Resequencer.html) puts out-of-sequence messages back into sequence. The [*Resequencer*](Resequencer.html) is also a stateful [*Message Router*](MessageRouter.html) because it may need to store a number of messages internally until the message arrives that completes the sequence. Unlike the [*Aggregator*](Aggregator.html), though, the [*Resequencer*](Resequencer.html) ultimately publishes the same number of messages it consumed.\n\nThe following table summarizes the properties of the [*Message Router*](MessageRouter.html) variants (we did not include the [*Dynamic Router*](DynamicRouter.html) as a separate alternative because any router can be implemented as a dynamic variant):\n\n| **Pattern** | **Number of Msgs Consumed** | **Number of Msgs Published** | **Stateful?** | **Comment** |\n| --- | --- | --- | --- | --- |\n| [*Content-Based Router*](ContentBasedRouter.html) | 1 | 1 | No (mostly) | |\n| [*Message Filter*](Filter.html) | 1 | 0 or 1 | No (mostly) | |\n| [*Recipient List*](RecipientList.html) | 1 | multiple (incl. 0) | No | |\n| [*Splitter*](Sequencer.html) | 1 | multiple | No | |\n| [*Aggregator*](Aggregator.html) | multiple | 1 | Yes | |\n| [*Resequencer*](Resequencer.html) | multiple | multiple | Yes | Publishes same number it consumes. |\n\n## Composed Routers\n\nA key advantage of the [*Pipes and Filters*](PipesAndFilters.html) architecture is the fact that we can compose multiple filters into a larger solution. [*Composed Message Processor*](DistributionAggregate.html) or an [*Scatter-Gather*](BroadcastAggregate.html) combine multiple [*Message Router*](MessageRouter.html) variants to create more comprehensive solutions. Both patterns allow us to retrieve information from multiple sources and recombine it into a single message. While the [*Composed Message Processor*](DistributionAggregate.html) maintains control over the possible sources the [*Scatter-Gather*](BroadcastAggregate.html) uses a [*Publish-Subscribe Channel*](PublishSubscribeChannel.html) so that any interested component can participate in the process.\n\nBoth the [*Composed Message Processor*](DistributionAggregate.html) and the [*Scatter-Gather*](BroadcastAggregate.html) route a single message to a number of participants concurrently and reassemble the replies into a single message. We can say that these patterns manage the *parallel routing* of a message. Two more patterns manage the *sequential routing* of a message, i.e. routing a message through a sequence of individual steps. If we want to control the path of a message from a central point we can use a [*Routing Slip*](RoutingTable.html) to specify the path the message should take. This pattern works just like the routing slip attached to office documents to pass them sequentially by a number of recipients. Alternatively, we can use a [*Process Manager*](ProcessManager.html) which gives us more flexibility but requires the message to return to a central component after each function.\n\n## Architectural Patterns\n\n[*Message Router*](MessageRouter.html)s enable us to architect an integration solution using a central [*Message Broker*](MessageBroker.html). As opposed to the different message routing design patterns, this pattern describes a *hub-and-spoke* architectural style.\n\n## The Right Router for the Right Purpose\n\nThis chapter contains 10 patterns. How can we make it easy to find the right pattern for the right purpose? The following decision chart helps you find the right pattern for the right purpose by matter of simple yes/no decisions. For example, if you are looking for a simple routing pattern that consumes one message at a time but publishes multiple messages in sequential order, you should use a [*Splitter*](Sequencer.html). The diagram also helps illustrate how closely the individual patterns are related. For example, a [*Routing Slip*](RoutingTable.html) and a [*Process Manager*](ProcessManager.html) solve similar problems while a [*Message Filter*](Filter.html) does something rather different.\n\n## Integration Pattern Language\n\n[Message Construct.](MessageConstructionIntro.html)\n\n[Message](Message.html)\n\n[Command Message](CommandMessage.html)\n\n[Document Message](DocumentMessage.html)\n\n[Event Message](EventMessage.html)\n\n[Request-Reply](RequestReply.html)\n\n[Return Address](ReturnAddress.html)\n\n[Correlation Identifier](CorrelationIdentifier.html)\n\n[Message Sequence](MessageSequence.html)\n\n[Message Expiration](MessageExpiration.html)\n\n[Format Indicator](FormatIndicator.html)\n\n[Message Routing](MessageRoutingIntro.html)\n\n[Pipes-and-Filters](PipesAndFilters.html)\n\n[Message Router](MessageRouter.html)\n\n[Content-based Router](ContentBasedRouter.html)\n\n[Message Filter](Filter.html)\n\n[Dynamic Router](DynamicRouter.html)\n\n[Recipient List](RecipientList.html)\n\n[Splitter](Sequencer.html)\n\n[Aggregator](Aggregator.html)\n\n[Resequencer](Resequencer.html)\n\n[Composed Msg. Processor](DistributionAggregate.html)\n\n[Scatter-Gather](BroadcastAggregate.html)\n\n[Routing Slip](RoutingTable.html)\n\n[Process Manager](ProcessManager.html)\n\n[Message Broker](MessageBroker.html)\n\n[Message\nTransformation](MessageTransformationIntro.html)\n\n[Message Translator](MessageTranslator.html)\n\n[Envelope Wrapper](EnvelopeWrapper.html)\n\n[Content Enricher](DataEnricher.html)\n\n[Content Filter](ContentFilter.html)\n\n[Claim Check](StoreInLibrary.html)\n\n[Normalizer](Normalizer.html)\n\n[Canonical Data Model](CanonicalDataModel.html)\n\n[Messaging Endpoints](MessagingEndpointsIntro.html)\n\n[Message Endpoint](MessageEndpoint.html)\n\n[Messaging Gateway](MessagingGateway.html)\n\n[Messaging Mapper](MessagingMapper.html)\n\n[Transactional Client](TransactionalClient.html)\n\n[Polling Consumer](PollingConsumer.html)\n\n[Event-driven Consumer](EventDrivenConsumer.html)\n\n[Competing Consumers](CompetingConsumers.html)\n\n[Message Dispatcher](MessageDispatcher.html)\n\n[Selective Consumer](MessageSelector.html)\n\n[Durable Subscriber](DurableSubscription.html)\n\n[Idempotent Receiver](IdempotentReceiver.html)\n\n[Service Activator](MessagingAdapter.html)\n\n[Messaging Channels](MessagingChannelsIntro.html)\n\n[Message Channel](MessageChannel.html)\n\n[Point-to-Point Channel](PointToPointChannel.html)\n\n[Publish-Subscr. Channel](PublishSubscribeChannel.html)\n\n[Datatype Channel](DatatypeChannel.html)\n\n[Invalid Message Channel](InvalidMessageChannel.html)\n\n[Dead Letter Channel](DeadLetterChannel.html)\n\n[Guaranteed Delivery](GuaranteedMessaging.html)\n\n[Channel Adapter](ChannelAdapter.html)\n\n[Messaging Bridge](MessagingBridge.html)\n\n[Message Bus](MessageBus.html)\n\n[Systems Mgmt.](SystemManagementIntro.html)\n\n[Control Bus](ControlBus.html)\n\n[Detour](Detour.html)\n\n[Wire Tap](WireTap.html)\n\n[Message History](MessageHistory.html)\n\n[Message Store](MessageStore.html)\n\n[Smart Proxy](SmartProxy.html)\n\n[Test Message](TestMessage.html)\n\n[Channel Purger](ChannelPurger.html)", "znaku_textu": 12657, "slov": 1559, "odkazu": 107, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/MessageRoutingIntro.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 14:55:31", "sha256": "17ec81524f67e57023db779842ba8018132255c63006c9b3ea7301a90cf5dd6d", "hloubka": 3, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "https://www.architectelevator.com/book", "https://www.cloudstrategybook.com/", "https://www.platformstrategybook.info/"]} {"url": "http://www.enterpriseintegrationpatterns.com/patterns/messaging/MessageSelector.html", "titulek": "Selective Consumer - Enterprise Integration Patterns", "h1": "", "popis": "How can a message consumer select which messages it wishes to receive?", "klicova_slova": "Selective Consumer,integration, messaging, events, patterns, event-driven, coupling, eai, middleware, application integration, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns", "og:title": "Selective Consumer - Enterprise Integration Patterns", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/MessageSelector.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/MessageSelectorSolution.gif"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Integration Pattern Language"}], "markdown": "| | Selective Consumer[Messaging Patterns](index.html) » [Messaging Endpoints](MessagingEndpointsIntro.html) | [Contents](toc.html)[⇐ Prev](MessageDispatcher.html)[Next ⇒](DurableSubscription.html) |\n| --- | --- | --- |\n\nAn application is using [*Messaging*](Messaging.html). It consumes [*Message*](Message.html)s from a [*Message Channel*](MessageChannel.html), but it does not necessarily want to consume all of the messages on that channel, just some of them.\n\nHow can a message consumer select which messages it wishes to receive?\n\nMake the consumer a *Selective Consumer*, one that filteres the messages delivered by its channel so that it only receives the ones that match its criteria.\n\nThere are three parts to this filtering process:\n\n1. **Specifying Producer** — Specifies the message’s selection value before sending it.\n2. **Selection Value** — One or more values specified in the message that allow a consumer to decide whether to select the message.\n3. **Selective Consumer** — Only receives messages that meet its selection criteria.\n\nWhen multiple *Selective Consumer*s are used with a [*Point-to-Point Channel*](PointToPointChannel.html), they effectively become [*Competing Consumers*](CompetingConsumers.html) that are also selective. If two consumer’s criteria overlap, and a message’s selection value meets both of their criteria, either consumer can consume the message. Consumers should be designed to ensure that at least one of them is eligable to consume every valid selection value. Otherwise, a message with an unmatched selection value will never be consumed and will clutter the channel forever (or at least until [*Message Expiration*](MessageExpiration.html) occurrs).\n\nWhen multiple *Selective Consumer*s are used with a [*Publish-Subscribe Channel*](PublishSubscribeChannel.html), each message will be delivered to each subscriber, but a subscriber will simply ignore its copy of a message that does not fit its criteria. Once a consumer decides to ignore a message, the messaging system can discard the message since it has been successfully delivered and will never be consumed. A messaging system can optimize this process by not even delivering a message it knows the consumer will ignore, thereby decreasing the number of copies of a message that must be produced and transmitted. This behavior of discarding ignored messages is independent of whatever [*Guaranteed Delivery*](GuaranteedMessaging.html), [*Durable Subscriber*](DurableSubscription.html), and/or [*Message Expiration*](MessageExpiration.html) settings are used.\n\n*Selective Consumer*s make a single channel act like multiple [*Datatype Channel*](DatatypeChannel.html)s. If different message types have distinct selection values, each consumer that is specialized for a particular type will only receive messages of that type. This approach facilitates sending many message types using a small number of channels, which can be beneficial in an enterprise that requires more channels than their messaging system can support.\n\n*Competing, Selective Consumers*\n\n...\nRead the entire pattern in the book [Enterprise Integration Patterns](/books1.html)\n\n**Related patterns:**\n\n[*Competing Consumers*](CompetingConsumers.html), [*Content-Based Router*](ContentBasedRouter.html), [*Correlation Identifier*](CorrelationIdentifier.html), [*Datatype Channel*](DatatypeChannel.html), [*Durable Subscriber*](DurableSubscription.html), [*Event-Driven Consumer*](EventDrivenConsumer.html), [*Message Filter*](Filter.html), [*Guaranteed Delivery*](GuaranteedMessaging.html), [*Invalid Message Channel*](InvalidMessageChannel.html), [*Message*](Message.html), [*Message Channel*](MessageChannel.html), [*Message Dispatcher*](MessageDispatcher.html), [*Message Expiration*](MessageExpiration.html), [*Messaging*](Messaging.html), [*Point-to-Point Channel*](PointToPointChannel.html), [*Polling Consumer*](PollingConsumer.html), [*Publish-Subscribe Channel*](PublishSubscribeChannel.html), [*Request-Reply*](RequestReply.html), [*Transactional Client*](TransactionalClient.html)\n\n---\n\n## Integration Pattern Language\n\n[Message Construct.](MessageConstructionIntro.html)\n\n[Message](Message.html)\n\n[Command Message](CommandMessage.html)\n\n[Document Message](DocumentMessage.html)\n\n[Event Message](EventMessage.html)\n\n[Request-Reply](RequestReply.html)\n\n[Return Address](ReturnAddress.html)\n\n[Correlation Identifier](CorrelationIdentifier.html)\n\n[Message Sequence](MessageSequence.html)\n\n[Message Expiration](MessageExpiration.html)\n\n[Format Indicator](FormatIndicator.html)\n\n[Message Routing](MessageRoutingIntro.html)\n\n[Pipes-and-Filters](PipesAndFilters.html)\n\n[Message Router](MessageRouter.html)\n\n[Content-based Router](ContentBasedRouter.html)\n\n[Message Filter](Filter.html)\n\n[Dynamic Router](DynamicRouter.html)\n\n[Recipient List](RecipientList.html)\n\n[Splitter](Sequencer.html)\n\n[Aggregator](Aggregator.html)\n\n[Resequencer](Resequencer.html)\n\n[Composed Msg. Processor](DistributionAggregate.html)\n\n[Scatter-Gather](BroadcastAggregate.html)\n\n[Routing Slip](RoutingTable.html)\n\n[Process Manager](ProcessManager.html)\n\n[Message Broker](MessageBroker.html)\n\n[Message\nTransformation](MessageTransformationIntro.html)\n\n[Message Translator](MessageTranslator.html)\n\n[Envelope Wrapper](EnvelopeWrapper.html)\n\n[Content Enricher](DataEnricher.html)\n\n[Content Filter](ContentFilter.html)\n\n[Claim Check](StoreInLibrary.html)\n\n[Normalizer](Normalizer.html)\n\n[Canonical Data Model](CanonicalDataModel.html)\n\n[Messaging Endpoints](MessagingEndpointsIntro.html)\n\n[Message Endpoint](MessageEndpoint.html)\n\n[Messaging Gateway](MessagingGateway.html)\n\n[Messaging Mapper](MessagingMapper.html)\n\n[Transactional Client](TransactionalClient.html)\n\n[Polling Consumer](PollingConsumer.html)\n\n[Event-driven Consumer](EventDrivenConsumer.html)\n\n[Competing Consumers](CompetingConsumers.html)\n\n[Message Dispatcher](MessageDispatcher.html)\n\n[Selective Consumer](MessageSelector.html)\n\n[Durable Subscriber](DurableSubscription.html)\n\n[Idempotent Receiver](IdempotentReceiver.html)\n\n[Service Activator](MessagingAdapter.html)\n\n[Messaging Channels](MessagingChannelsIntro.html)\n\n[Message Channel](MessageChannel.html)\n\n[Point-to-Point Channel](PointToPointChannel.html)\n\n[Publish-Subscr. Channel](PublishSubscribeChannel.html)\n\n[Datatype Channel](DatatypeChannel.html)\n\n[Invalid Message Channel](InvalidMessageChannel.html)\n\n[Dead Letter Channel](DeadLetterChannel.html)\n\n[Guaranteed Delivery](GuaranteedMessaging.html)\n\n[Channel Adapter](ChannelAdapter.html)\n\n[Messaging Bridge](MessagingBridge.html)\n\n[Message Bus](MessageBus.html)\n\n[Systems Mgmt.](SystemManagementIntro.html)\n\n[Control Bus](ControlBus.html)\n\n[Detour](Detour.html)\n\n[Wire Tap](WireTap.html)\n\n[Message History](MessageHistory.html)\n\n[Message Store](MessageStore.html)\n\n[Smart Proxy](SmartProxy.html)\n\n[Test Message](TestMessage.html)\n\n[Channel Purger](ChannelPurger.html)", "znaku_textu": 6768, "slov": 664, "odkazu": 108, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/MessageSelector.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 14:56:04", "sha256": "200eeab56af2adb679a5a81c4edc0e97a1e0a1f24a65902cc2a8d6f2c90d17d1", "hloubka": 3, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://creativecommons.org/licenses/by/4.0/", "https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "https://www.architectelevator.com/book", "https://www.cloudstrategybook.com/", "https://www.platformstrategybook.info/"]} {"url": "http://www.enterpriseintegrationpatterns.com/patterns/messaging/MessageSequence.html", "titulek": "Message Sequence - Enterprise Integration Patterns", "h1": "", "popis": "How can messaging transmit an arbitrarily large amount of data?", "klicova_slova": "Message Sequence,integration, messaging, events, patterns, event-driven, coupling, eai, middleware, application integration, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns", "og:title": "Message Sequence - Enterprise Integration Patterns", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/MessageSequence.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/MessageSequenceSize.gif"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Integration Pattern Language"}], "markdown": "Messaging Patterns\n\n[Messaging Patterns](index.html)\n\n- [Integration Styles](IntegrationStylesIntro.html)\n- [Messaging Systems](MessagingComponentsIntro.html)\n- [Messaging Channels](MessagingChannelsIntro.html)\n- [Message Construction](MessageConstructionIntro.html)\n- [Interlude: Simple Messaging](SimpleMessagingIntro.html)\n- [Message Routing](MessageRoutingIntro.html)\n- [Message Transformation](MessageTransformationIntro.html)\n- [Interlude: Composed Messaging](ComposedMessagingExample.html)\n- [Messaging Endpoints](MessagingEndpointsIntro.html)\n- [System Management](SystemManagementIntro.html)\n- Interlude: Systems Management Example\n- Integration Patterns in Practice\n- Concluding Remarks\n- Appendices\n\n| | Message Sequence[Messaging Patterns](index.html) » [Message Construction](MessageConstructionIntro.html) | [Contents](toc.html)[⇐ Prev](CorrelationIdentifier.html)[Next ⇒](MessageExpiration.html) |\n| --- | --- | --- |\n\nMy application needs to send a huge amount of data to another process, more than may fit in a single message. Or my application has made a request whose reply contains too much data for a single message.\n\nHow can messaging transmit an arbitrarily large amount of data?\n\nWhenever a large set of data may need to be broken into message-size chunks, send the data as a *Message Sequence* and mark each message with sequence identification fields.\n\nThe three *Message Sequence* identification fields are:\n\n1. **Sequence identifier** – Distinguishes this cluster of messages from others.\n2. **Position identifier** – Uniquely identifies and sequentially orders each message in a sequence.\n3. **Size** or **End indicator** – Specifies the number of messages in the cluster, or marks the last message in the cluster (whose position identifier then specifies the size of the cluster).\n\n...\nRead the entire pattern in the book [Enterprise Integration Patterns](/books1.html)\n\n**Related patterns:**\n\n[*Competing Consumers*](CompetingConsumers.html), [*Correlation Identifier*](CorrelationIdentifier.html), [*Invalid Message Channel*](InvalidMessageChannel.html), [*Message Channel*](MessageChannel.html), [*Message Dispatcher*](MessageDispatcher.html), [*Request-Reply*](RequestReply.html), [*Claim Check*](StoreInLibrary.html), [*Transactional Client*](TransactionalClient.html)\n\n---\n\n## Integration Pattern Language\n\n[Message Construct.](MessageConstructionIntro.html)\n\n[Message](Message.html)\n\n[Command Message](CommandMessage.html)\n\n[Document Message](DocumentMessage.html)\n\n[Event Message](EventMessage.html)\n\n[Request-Reply](RequestReply.html)\n\n[Return Address](ReturnAddress.html)\n\n[Correlation Identifier](CorrelationIdentifier.html)\n\n[Message Sequence](MessageSequence.html)\n\n[Message Expiration](MessageExpiration.html)\n\n[Format Indicator](FormatIndicator.html)\n\n[Message Routing](MessageRoutingIntro.html)\n\n[Pipes-and-Filters](PipesAndFilters.html)\n\n[Message Router](MessageRouter.html)\n\n[Content-based Router](ContentBasedRouter.html)\n\n[Message Filter](Filter.html)\n\n[Dynamic Router](DynamicRouter.html)\n\n[Recipient List](RecipientList.html)\n\n[Splitter](Sequencer.html)\n\n[Aggregator](Aggregator.html)\n\n[Resequencer](Resequencer.html)\n\n[Composed Msg. Processor](DistributionAggregate.html)\n\n[Scatter-Gather](BroadcastAggregate.html)\n\n[Routing Slip](RoutingTable.html)\n\n[Process Manager](ProcessManager.html)\n\n[Message Broker](MessageBroker.html)\n\n[Message\nTransformation](MessageTransformationIntro.html)\n\n[Message Translator](MessageTranslator.html)\n\n[Envelope Wrapper](EnvelopeWrapper.html)\n\n[Content Enricher](DataEnricher.html)\n\n[Content Filter](ContentFilter.html)\n\n[Claim Check](StoreInLibrary.html)\n\n[Normalizer](Normalizer.html)\n\n[Canonical Data Model](CanonicalDataModel.html)\n\n[Messaging Endpoints](MessagingEndpointsIntro.html)\n\n[Message Endpoint](MessageEndpoint.html)\n\n[Messaging Gateway](MessagingGateway.html)\n\n[Messaging Mapper](MessagingMapper.html)\n\n[Transactional Client](TransactionalClient.html)\n\n[Polling Consumer](PollingConsumer.html)\n\n[Event-driven Consumer](EventDrivenConsumer.html)\n\n[Competing Consumers](CompetingConsumers.html)\n\n[Message Dispatcher](MessageDispatcher.html)\n\n[Selective Consumer](MessageSelector.html)\n\n[Durable Subscriber](DurableSubscription.html)\n\n[Idempotent Receiver](IdempotentReceiver.html)\n\n[Service Activator](MessagingAdapter.html)\n\n[Messaging Channels](MessagingChannelsIntro.html)\n\n[Message Channel](MessageChannel.html)\n\n[Point-to-Point Channel](PointToPointChannel.html)\n\n[Publish-Subscr. Channel](PublishSubscribeChannel.html)\n\n[Datatype Channel](DatatypeChannel.html)\n\n[Invalid Message Channel](InvalidMessageChannel.html)\n\n[Dead Letter Channel](DeadLetterChannel.html)\n\n[Guaranteed Delivery](GuaranteedMessaging.html)\n\n[Channel Adapter](ChannelAdapter.html)\n\n[Messaging Bridge](MessagingBridge.html)\n\n[Message Bus](MessageBus.html)\n\n[Systems Mgmt.](SystemManagementIntro.html)\n\n[Control Bus](ControlBus.html)\n\n[Detour](Detour.html)\n\n[Wire Tap](WireTap.html)\n\n[Message History](MessageHistory.html)\n\n[Message Store](MessageStore.html)\n\n[Smart Proxy](SmartProxy.html)\n\n[Test Message](TestMessage.html)\n\n[Channel Purger](ChannelPurger.html)\n\n- » [Read the latest in My Blog](/ramblings)\n- » [Get more insights from My Articles](/articles.html)\n- » [See me live in my Upcoming Talks](/talks)\n\nYou can reuse the following elements under the [Creative Commons Attribution](http://creativecommons.org/licenses/by/4.0/) license: pattern icon, pattern name, problem and solution statements (in bold), and the sketch. Other portions are protected by copyright.\n\n[Enterprise Integration Patterns](https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20)\nThe de-facto language for designing asynchronous, distributed systems. Over 100,000 copies sold.\n\n[The Software Architect Elevator](https://www.architectelevator.com/book)\n\n Rethink the role of architects as a connecting element across organizational layers. Acquire the technical, communication, and organizational skills to succeed in this new role.\n\n[Cloud Strategy](https://www.cloudstrategybook.com)\n\n Make your cloud migration a success by translating high-level goals into conscious decisions with well-understood trade-offs.\n\n[Platform Strategy](https://www.platformstrategybook.info)\n\n Platforms can boost innovation through harmonization, but they aren't easy to build. Learn from over a decade of designing and rolling out IT platforms.", "znaku_textu": 6240, "slov": 521, "odkazu": 108, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/MessageSequence.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 14:55:25", "sha256": "0b96b30456ccbc3f7528528047151d34c4625e6c90e9f00e18eeb2997203db24", "hloubka": 3, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://creativecommons.org/licenses/by/4.0/", "https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "https://www.architectelevator.com/book", "https://www.cloudstrategybook.com/", "https://www.platformstrategybook.info/"]} {"url": "http://www.enterpriseintegrationpatterns.com/patterns/messaging/MessageStore.html", "titulek": "Message Store - Enterprise Integration Patterns", "h1": "", "popis": "How can we report against message information without disturbing the loosely coupled and transient nature of a messaging system?", "klicova_slova": "Message Store,integration, messaging, events, patterns, event-driven, coupling, eai, middleware, application integration, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns", "og:title": "Message Store - Enterprise Integration Patterns", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/MessageStore.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/MessageStore.gif"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Integration Pattern Language"}], "markdown": "Messaging Patterns\n\n[Messaging Patterns](index.html)\n\n- [Integration Styles](IntegrationStylesIntro.html)\n- [Messaging Systems](MessagingComponentsIntro.html)\n- [Messaging Channels](MessagingChannelsIntro.html)\n- [Message Construction](MessageConstructionIntro.html)\n- [Interlude: Simple Messaging](SimpleMessagingIntro.html)\n- [Message Routing](MessageRoutingIntro.html)\n- [Message Transformation](MessageTransformationIntro.html)\n- [Interlude: Composed Messaging](ComposedMessagingExample.html)\n- [Messaging Endpoints](MessagingEndpointsIntro.html)\n- [System Management](SystemManagementIntro.html)\n- Interlude: Systems Management Example\n- Integration Patterns in Practice\n- Concluding Remarks\n- Appendices\n\n| | Message Store[Messaging Patterns](index.html) » [System Management](SystemManagementIntro.html) | [Contents](toc.html)[⇐ Prev](MessageHistory.html)[Next ⇒](SmartProxy.html) |\n| --- | --- | --- |\n\nAs the [*Message History*](MessageHistory.html) describes, the architectural principle of loose coupling allows for flexibility in the solution, but can make it difficult to gain insight into the dynamic behavior of the integration solution.\n\nHow can we report against message information without disturbing the loosely coupled and transient nature of a messaging system?\n\nUse a *Message Store* to capture information about each message in a central location.\n\nWhen using a *Message Store*, we can take advantage of the asynchronous nature of a messaging infrastructure. When we send a message to a channel, we send a duplicate of the message to a special channel to be collected by the *Message Store*. This can be performed by the component itself or we can insert a [*Wire Tap*](WireTap.html) into the channel. We can consider the secondary channel that carries a copy of the message as part of the [*Control Bus*](ControlBus.html). Sending a second message in a 'fire-and-forget' mode will not slow down the flow of the main application messages. It does, however, increase network traffic. That's why we may not store the complete message, but just a few key fields that are required for later analysis, such as a message ID, or the channel on which the message was sent and a timestamp.\n\n...\nRead the entire pattern in the book [Enterprise Integration Patterns](/books1.html)\n\n**Related patterns:**\n\n[*Control Bus*](ControlBus.html), [*Message History*](MessageHistory.html), [*Wire Tap*](WireTap.html)\n\n---\n\n## Integration Pattern Language\n\n[Message Construct.](MessageConstructionIntro.html)\n\n[Message](Message.html)\n\n[Command Message](CommandMessage.html)\n\n[Document Message](DocumentMessage.html)\n\n[Event Message](EventMessage.html)\n\n[Request-Reply](RequestReply.html)\n\n[Return Address](ReturnAddress.html)\n\n[Correlation Identifier](CorrelationIdentifier.html)\n\n[Message Sequence](MessageSequence.html)\n\n[Message Expiration](MessageExpiration.html)\n\n[Format Indicator](FormatIndicator.html)\n\n[Message Routing](MessageRoutingIntro.html)\n\n[Pipes-and-Filters](PipesAndFilters.html)\n\n[Message Router](MessageRouter.html)\n\n[Content-based Router](ContentBasedRouter.html)\n\n[Message Filter](Filter.html)\n\n[Dynamic Router](DynamicRouter.html)\n\n[Recipient List](RecipientList.html)\n\n[Splitter](Sequencer.html)\n\n[Aggregator](Aggregator.html)\n\n[Resequencer](Resequencer.html)\n\n[Composed Msg. Processor](DistributionAggregate.html)\n\n[Scatter-Gather](BroadcastAggregate.html)\n\n[Routing Slip](RoutingTable.html)\n\n[Process Manager](ProcessManager.html)\n\n[Message Broker](MessageBroker.html)\n\n[Message\nTransformation](MessageTransformationIntro.html)\n\n[Message Translator](MessageTranslator.html)\n\n[Envelope Wrapper](EnvelopeWrapper.html)\n\n[Content Enricher](DataEnricher.html)\n\n[Content Filter](ContentFilter.html)\n\n[Claim Check](StoreInLibrary.html)\n\n[Normalizer](Normalizer.html)\n\n[Canonical Data Model](CanonicalDataModel.html)\n\n[Messaging Endpoints](MessagingEndpointsIntro.html)\n\n[Message Endpoint](MessageEndpoint.html)\n\n[Messaging Gateway](MessagingGateway.html)\n\n[Messaging Mapper](MessagingMapper.html)\n\n[Transactional Client](TransactionalClient.html)\n\n[Polling Consumer](PollingConsumer.html)\n\n[Event-driven Consumer](EventDrivenConsumer.html)\n\n[Competing Consumers](CompetingConsumers.html)\n\n[Message Dispatcher](MessageDispatcher.html)\n\n[Selective Consumer](MessageSelector.html)\n\n[Durable Subscriber](DurableSubscription.html)\n\n[Idempotent Receiver](IdempotentReceiver.html)\n\n[Service Activator](MessagingAdapter.html)\n\n[Messaging Channels](MessagingChannelsIntro.html)\n\n[Message Channel](MessageChannel.html)\n\n[Point-to-Point Channel](PointToPointChannel.html)\n\n[Publish-Subscr. Channel](PublishSubscribeChannel.html)\n\n[Datatype Channel](DatatypeChannel.html)\n\n[Invalid Message Channel](InvalidMessageChannel.html)\n\n[Dead Letter Channel](DeadLetterChannel.html)\n\n[Guaranteed Delivery](GuaranteedMessaging.html)\n\n[Channel Adapter](ChannelAdapter.html)\n\n[Messaging Bridge](MessagingBridge.html)\n\n[Message Bus](MessageBus.html)\n\n[Systems Mgmt.](SystemManagementIntro.html)\n\n[Control Bus](ControlBus.html)\n\n[Detour](Detour.html)\n\n[Wire Tap](WireTap.html)\n\n[Message History](MessageHistory.html)\n\n[Message Store](MessageStore.html)\n\n[Smart Proxy](SmartProxy.html)\n\n[Test Message](TestMessage.html)\n\n[Channel Purger](ChannelPurger.html)\n\n- » [Read the latest in My Blog](/ramblings)\n- » [Get more insights from My Articles](/articles.html)\n- » [See me live in my Upcoming Talks](/talks)\n\nYou can reuse the following elements under the [Creative Commons Attribution](http://creativecommons.org/licenses/by/4.0/) license: pattern icon, pattern name, problem and solution statements (in bold), and the sketch. Other portions are protected by copyright.\n\n[Enterprise Integration Patterns](https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20)\nThe de-facto language for designing asynchronous, distributed systems. Over 100,000 copies sold.\n\n[The Software Architect Elevator](https://www.architectelevator.com/book)\n\n Rethink the role of architects as a connecting element across organizational layers. Acquire the technical, communication, and organizational skills to succeed in this new role.\n\n[Cloud Strategy](https://www.cloudstrategybook.com)\n\n Make your cloud migration a success by translating high-level goals into conscious decisions with well-understood trade-offs.\n\n[Platform Strategy](https://www.platformstrategybook.info)\n\n Platforms can boost innovation through harmonization, but they aren't easy to build. Learn from over a decade of designing and rolling out IT platforms.", "znaku_textu": 6373, "slov": 577, "odkazu": 108, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/MessageStore.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 14:56:13", "sha256": "c9c9d42c8cb0d107905b903d5b25b4c71e7b77c6c6308ed73ece722086f6e15e", "hloubka": 3, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://creativecommons.org/licenses/by/4.0/", "https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "https://www.architectelevator.com/book", "https://www.cloudstrategybook.com/", "https://www.platformstrategybook.info/"]} {"url": "http://www.enterpriseintegrationpatterns.com/patterns/messaging/MessageTransformationIntro.html", "titulek": "Introduction to Message Transformation - Enterprise Integration Patterns", "h1": "", "popis": "As described in the Message Translator, applications that need to be integrated by a messaging system rarely agree on a common data format. For example, an accounting system is going to have a different notion of a Customer object than a customer relationship management system. On top of that, one system may persist data in a relational model, while another application uses flat files or XML documents. Integrating existing applications often times means that we do not have the liberty of modifying the applications to work more easily with other systems. Rather, the integration solution has to accommodate and resolve the differences between the varying systems. The Message Translator pattern offers a general solution to such differences in data formats. This chapter explores specific variants of the Message Translator.", "klicova_slova": "Introduction to Message Transformation,integration, messaging, events, patterns, event-driven, coupling, eai, middleware, application integration, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns", "og:title": "Introduction to Message Transformation - Enterprise Integration Patterns", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/MessageTransformationIntro.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/eip1_patterns_wide.png"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Integration Pattern Language"}], "markdown": "| | Introduction to Message Transformation[Messaging Patterns](index.html) » [Message Transformation](MessageTransformationIntro.html) | [Contents](toc.html)[⇐ Prev](MessageBroker.html)[Next ⇒](EnvelopeWrapper.html) |\n| --- | --- | --- |\n\nAs described in the [*Message Translator*](MessageTranslator.html), applications that need to be integrated by a messaging system rarely agree on a common data format. For example, an accounting system is going to have a different notion of a Customer object than a customer relationship management system. On top of that, one system may persist data in a relational model, while another application uses flat files or XML documents. Integrating existing applications often times means that we do not have the liberty of modifying the applications to work more easily with other systems. Rather, the integration solution has to accommodate and resolve the differences between the varying systems. The [*Message Translator*](MessageTranslator.html) pattern offers a general solution to such differences in data formats. This chapter explores specific variants of the [*Message Translator*](MessageTranslator.html).\n\nMost messaging systems place specific requirements on the format and contents of a message header. We wrap message payload data into an [*Envelope Wrapper*](EnvelopeWrapper.html) that is compliant with the requirements of the messaging infrastructure. Multiple [*Envelope Wrapper*](EnvelopeWrapper.html)s can be combined if a message is passed through across different messaging infrastructures.\n\nA [*Content Enricher*](DataEnricher.html) is needed if the target system requires data fields that the originating system cannot supply. It has the ability to look up missing information or compute it from the available data. The [*Content Filter*](ContentFilter.html) does the opposite -- it removes unwanted data from a message. The [*Claim Check*](StoreInLibrary.html) also removes data from a message but stores it for later retrieval. The [*Normalizer*](Normalizer.html) translates messages arriving in many different formats into a common format.\n\nMessage transformation is a deep topic in integration. [*Message Channel*](MessageChannel.html)s and [*Message Router*](MessageRouter.html)s can remove basic dependencies between applications by eliminating the need for one application to be aware of the other's location. One application can send a message to a [*Message Channel*](MessageChannel.html) and worry about what application will consume it. However, message formats impose another set of dependency. If one application has to format messages in another application's data format, the decoupling in form of the [*Message Channel*](MessageChannel.html) is somewhat of an illusion. Any change to the receiving application or the switch from one receiving application to another still requires a change to the sending application. [*Message Translator*](MessageTranslator.html)s help remove this dependency. Due to the importance of message formats and the transformation between them, we can view any integration solution as two parallel systems. One deals with actual message data, the other one with metadata, the data that describes message data. Many of the patterns used in creation of the message flow can also be used to manage metadata. For example, a [*Channel Adapter*](ChannelAdapter.html) can not only move messages in an out of a system, but it can also extract metadata from external applications and load it into a central metadata repository. Using this repository the integration developers can define transformations between the application metadata and the [*Canonical Data Model*](CanonicalDataModel.html).\n\n*Metadata Integration*\n\nFor example, the picture above depicts the integration between two applications that need to exchange customer information. Each system has a slightly different definition of customer data. Application A stores first and last name in two separate fields whereas Application B stores it in one field. Likewise, Application A stores the customer's ZIP code and not the state while Application B stores only the state code. Messages flowing from Application A to Application B have to undergo a transformation so that Application B can receive data in the required format. Creating the transformation is much simplified if the [*Channel Adapter*](ChannelAdapter.html)s can also extract metadata, e.g. data describing the message format. This metadata can then be loaded into a repository, greatly simplifying the configuration and validation of the [*Message Translator*](MessageTranslator.html). The metadata can be stored in a variety of formats. A common format used for XML messages are XSD's -- XML Schema Definitions. Other EAI tools implement proprietary metadata formats, but allow administrators to import and export of metadata into different formats.\n\nMany of the principles incorporated in these patterns are applicable outside of messaging integration. For example, [*File Transfer*](FileTransferIntegration.html) has to perform transformation functions between systems. Likewise, [*Remote Procedure Invocation*](EncapsulatedSynchronousIntegration.html) has to make requests in the data format specified by the service that is to be called even if the application's internal format is different.\n\nThis chapter describes variations of data transformation tasks. It does not go into the details of structural transformations between entities (e.g., how to you transform between two data models if one model supports many-to-many relationships between customer and address but the other model includes address fields on the customer record). One of the oldest and still most relevant books on the topic of data representation and relationships is [[Kent](http://www.amazon.com/exec/obidos/ASIN/1585009709/enterpriseint-20)].\n\n## Integration Pattern Language\n\n[Message Construct.](MessageConstructionIntro.html)\n\n[Message](Message.html)\n\n[Command Message](CommandMessage.html)\n\n[Document Message](DocumentMessage.html)\n\n[Event Message](EventMessage.html)\n\n[Request-Reply](RequestReply.html)\n\n[Return Address](ReturnAddress.html)\n\n[Correlation Identifier](CorrelationIdentifier.html)\n\n[Message Sequence](MessageSequence.html)\n\n[Message Expiration](MessageExpiration.html)\n\n[Format Indicator](FormatIndicator.html)\n\n[Message Routing](MessageRoutingIntro.html)\n\n[Pipes-and-Filters](PipesAndFilters.html)\n\n[Message Router](MessageRouter.html)\n\n[Content-based Router](ContentBasedRouter.html)\n\n[Message Filter](Filter.html)\n\n[Dynamic Router](DynamicRouter.html)\n\n[Recipient List](RecipientList.html)\n\n[Splitter](Sequencer.html)\n\n[Aggregator](Aggregator.html)\n\n[Resequencer](Resequencer.html)\n\n[Composed Msg. Processor](DistributionAggregate.html)\n\n[Scatter-Gather](BroadcastAggregate.html)\n\n[Routing Slip](RoutingTable.html)\n\n[Process Manager](ProcessManager.html)\n\n[Message Broker](MessageBroker.html)\n\n[Message\nTransformation](MessageTransformationIntro.html)\n\n[Message Translator](MessageTranslator.html)\n\n[Envelope Wrapper](EnvelopeWrapper.html)\n\n[Content Enricher](DataEnricher.html)\n\n[Content Filter](ContentFilter.html)\n\n[Claim Check](StoreInLibrary.html)\n\n[Normalizer](Normalizer.html)\n\n[Canonical Data Model](CanonicalDataModel.html)\n\n[Messaging Endpoints](MessagingEndpointsIntro.html)\n\n[Message Endpoint](MessageEndpoint.html)\n\n[Messaging Gateway](MessagingGateway.html)\n\n[Messaging Mapper](MessagingMapper.html)\n\n[Transactional Client](TransactionalClient.html)\n\n[Polling Consumer](PollingConsumer.html)\n\n[Event-driven Consumer](EventDrivenConsumer.html)\n\n[Competing Consumers](CompetingConsumers.html)\n\n[Message Dispatcher](MessageDispatcher.html)\n\n[Selective Consumer](MessageSelector.html)\n\n[Durable Subscriber](DurableSubscription.html)\n\n[Idempotent Receiver](IdempotentReceiver.html)\n\n[Service Activator](MessagingAdapter.html)\n\n[Messaging Channels](MessagingChannelsIntro.html)\n\n[Message Channel](MessageChannel.html)\n\n[Point-to-Point Channel](PointToPointChannel.html)\n\n[Publish-Subscr. Channel](PublishSubscribeChannel.html)\n\n[Datatype Channel](DatatypeChannel.html)\n\n[Invalid Message Channel](InvalidMessageChannel.html)\n\n[Dead Letter Channel](DeadLetterChannel.html)\n\n[Guaranteed Delivery](GuaranteedMessaging.html)\n\n[Channel Adapter](ChannelAdapter.html)\n\n[Messaging Bridge](MessagingBridge.html)\n\n[Message Bus](MessageBus.html)\n\n[Systems Mgmt.](SystemManagementIntro.html)\n\n[Control Bus](ControlBus.html)\n\n[Detour](Detour.html)\n\n[Wire Tap](WireTap.html)\n\n[Message History](MessageHistory.html)\n\n[Message Store](MessageStore.html)\n\n[Smart Proxy](SmartProxy.html)\n\n[Test Message](TestMessage.html)\n\n[Channel Purger](ChannelPurger.html)", "znaku_textu": 8566, "slov": 965, "odkazu": 108, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/MessageTransformationIntro.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 14:55:44", "sha256": "f1b3821d4514d6393531201e0f15c3d0a2c860aa9c42cff0a9fe980b796eca8c", "hloubka": 3, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://www.amazon.com/exec/obidos/ASIN/1585009709/enterpriseint-20", "https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "https://www.architectelevator.com/book", "https://www.cloudstrategybook.com/", "https://www.platformstrategybook.info/"]} {"url": "http://www.enterpriseintegrationpatterns.com/patterns/messaging/MessageTranslator.html", "titulek": "Message Translator - Enterprise Integration Patterns", "h1": "", "popis": "How can systems using different data formats communicate with each other using messaging?", "klicova_slova": "Message Translator,integration, messaging, events, patterns, event-driven, coupling, eai, middleware, application integration, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns", "og:title": "Message Translator - Enterprise Integration Patterns", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/MessageTranslator.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/MessageTranslator.gif"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Integration Pattern Language"}], "markdown": "| | Message Translator[Messaging Patterns](index.html) » [Messaging Systems](MessagingComponentsIntro.html) | [Contents](toc.html)[⇐ Prev](MessageRouter.html)[Next ⇒](MessageEndpoint.html) |\n| --- | --- | --- |\n\nThe previous patterns describe how to construct messages and how to route them to the correct destination. In many cases, enterprise integration solutions route messages between existing applications such as legacy systems, packaged applications, homegrown custom applications, or applications operated by external partners. Each of these applications is usually built around a proprietary data model. Each application may have a slightly different notion of the *Customer* entity , the attributes that define a *Customer* and which other entities a *Customer* is related to. For example, the accounting system may be more interested in the customer's tax payer ID numbers while the customer-relationship management (CRM) system stores phone numbers and addresses. The application’s underlying data model usually drives the design of the physical database schema, an interface file format or a programming interface (API) -- those entities that an integration solution has to interface with. As a result, the applications expect to receive messages that mimic the application's internal data format.\n\nIn addition to the proprietary data models and data formats incorporated in the various applications, integration solutions often times interact with standardized data formats that seek to be independent from specific applications. There are a number of consortia and standards bodies that define these protocols, such as RosettaNet, ebXML, OAGIS and many other, industry specific consortia. In many cases, the integration solution needs to be able to communicate with external parties using the ‘official’ data formats while the internal systems are based on proprietary formats.\n\nHow can systems using different data formats communicate with each other using messaging?\n\nUse a special filter, a *Message Translator*, between other filters or applications to translate one data format into another.\n\nThe *Message Translator* is the messaging equivalent of the *Adapter* pattern described in [[GoF](http://www.amazon.com/exec/obidos/ASIN/0201633612/enterpriseint-20)]. An adapter converts the interface of a component into a another interface so it can be used in a different context.\n\n...\nRead the entire pattern in the book [Enterprise Integration Patterns](/books1.html)\n\n**Related patterns:**\n\n[*Canonical Data Model*](CanonicalDataModel.html), [*Channel Adapter*](ChannelAdapter.html), [*Content Filter*](ContentFilter.html), [*Content Enricher*](DataEnricher.html), [*Message Channel*](MessageChannel.html), [*Message Endpoint*](MessageEndpoint.html), [*Message Router*](MessageRouter.html), [*Message Translator*](MessageTranslator.html), [*Messaging Bridge*](MessagingBridge.html), [*Normalizer*](Normalizer.html), [*Pipes and Filters*](PipesAndFilters.html), [*Shared Database*](SharedDataBaseIntegration.html), [*Claim Check*](StoreInLibrary.html)\n\n---\n\n## Integration Pattern Language\n\n[Message Construct.](MessageConstructionIntro.html)\n\n[Message](Message.html)\n\n[Command Message](CommandMessage.html)\n\n[Document Message](DocumentMessage.html)\n\n[Event Message](EventMessage.html)\n\n[Request-Reply](RequestReply.html)\n\n[Return Address](ReturnAddress.html)\n\n[Correlation Identifier](CorrelationIdentifier.html)\n\n[Message Sequence](MessageSequence.html)\n\n[Message Expiration](MessageExpiration.html)\n\n[Format Indicator](FormatIndicator.html)\n\n[Message Routing](MessageRoutingIntro.html)\n\n[Pipes-and-Filters](PipesAndFilters.html)\n\n[Message Router](MessageRouter.html)\n\n[Content-based Router](ContentBasedRouter.html)\n\n[Message Filter](Filter.html)\n\n[Dynamic Router](DynamicRouter.html)\n\n[Recipient List](RecipientList.html)\n\n[Splitter](Sequencer.html)\n\n[Aggregator](Aggregator.html)\n\n[Resequencer](Resequencer.html)\n\n[Composed Msg. Processor](DistributionAggregate.html)\n\n[Scatter-Gather](BroadcastAggregate.html)\n\n[Routing Slip](RoutingTable.html)\n\n[Process Manager](ProcessManager.html)\n\n[Message Broker](MessageBroker.html)\n\n[Message\nTransformation](MessageTransformationIntro.html)\n\n[Message Translator](MessageTranslator.html)\n\n[Envelope Wrapper](EnvelopeWrapper.html)\n\n[Content Enricher](DataEnricher.html)\n\n[Content Filter](ContentFilter.html)\n\n[Claim Check](StoreInLibrary.html)\n\n[Normalizer](Normalizer.html)\n\n[Canonical Data Model](CanonicalDataModel.html)\n\n[Messaging Endpoints](MessagingEndpointsIntro.html)\n\n[Message Endpoint](MessageEndpoint.html)\n\n[Messaging Gateway](MessagingGateway.html)\n\n[Messaging Mapper](MessagingMapper.html)\n\n[Transactional Client](TransactionalClient.html)\n\n[Polling Consumer](PollingConsumer.html)\n\n[Event-driven Consumer](EventDrivenConsumer.html)\n\n[Competing Consumers](CompetingConsumers.html)\n\n[Message Dispatcher](MessageDispatcher.html)\n\n[Selective Consumer](MessageSelector.html)\n\n[Durable Subscriber](DurableSubscription.html)\n\n[Idempotent Receiver](IdempotentReceiver.html)\n\n[Service Activator](MessagingAdapter.html)\n\n[Messaging Channels](MessagingChannelsIntro.html)\n\n[Message Channel](MessageChannel.html)\n\n[Point-to-Point Channel](PointToPointChannel.html)\n\n[Publish-Subscr. Channel](PublishSubscribeChannel.html)\n\n[Datatype Channel](DatatypeChannel.html)\n\n[Invalid Message Channel](InvalidMessageChannel.html)\n\n[Dead Letter Channel](DeadLetterChannel.html)\n\n[Guaranteed Delivery](GuaranteedMessaging.html)\n\n[Channel Adapter](ChannelAdapter.html)\n\n[Messaging Bridge](MessagingBridge.html)\n\n[Message Bus](MessageBus.html)\n\n[Systems Mgmt.](SystemManagementIntro.html)\n\n[Control Bus](ControlBus.html)\n\n[Detour](Detour.html)\n\n[Wire Tap](WireTap.html)\n\n[Message History](MessageHistory.html)\n\n[Message Store](MessageStore.html)\n\n[Smart Proxy](SmartProxy.html)\n\n[Test Message](TestMessage.html)\n\n[Channel Purger](ChannelPurger.html)", "znaku_textu": 5780, "slov": 530, "odkazu": 109, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/MessageTranslator.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 14:55:06", "sha256": "b009179437399ba4b8107ba944487e08c3788cc8b5afeba6ac3a81c5d7d0da0b", "hloubka": 3, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://www.amazon.com/exec/obidos/ASIN/0201633612/enterpriseint-20", "http://creativecommons.org/licenses/by/4.0/", "https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "https://www.architectelevator.com/book", "https://www.cloudstrategybook.com/", "https://www.platformstrategybook.info/"]} {"url": "http://www.enterpriseintegrationpatterns.com/patterns/messaging/Messaging.html", "titulek": "Messaging - Enterprise Integration Patterns", "h1": "", "popis": "How can I integrate multiple applications so that they work together and can exchange information?", "klicova_slova": "Messaging,integration, messaging, events, patterns, event-driven, coupling, eai, middleware, application integration, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns", "og:title": "Messaging - Enterprise Integration Patterns", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/Messaging.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/Messaging.gif"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Integration Pattern Language"}], "markdown": "| | Messaging[Messaging Patterns](index.html) » [Integration Styles](IntegrationStylesIntro.html) | [Contents](toc.html)[⇐ Prev](EncapsulatedSynchronousIntegration.html)[Next ⇒](MessagingComponentsIntro.html) |\n| --- | --- | --- |\n\nAn enterprise has multiple applications that are being built independently, with different languages and platforms. The enterprise needs to share data and processes in a responsive way.\n\nHow can I integrate multiple applications so that they work together and can exchange information?\n\nUse *Messaging* to transfer packets of data frequently, immediately, reliably, and asynchronously, using customizable formats.\n\nAsynchronous messaging is fundamentally a pragmatic reaction to the\nproblems of distributed systems. Sending a message does not require\nboth systems to be up and ready at the same time. Furthermore, thinking\nabout the communication in an asynchronous manner forces developers to\nrecognize that working with a remote application is slower, which encourages\ndesign of components with high cohesion (lots of work locally) and low adhesion\n(selective work remotely).\n\nMessaging systems also allow much of the decoupling you get when\nusing [*File Transfer*](FileTransferIntegration.html). Messages can be\ntransformed in transit without either the sender or receiver knowing\nabout the transformation. Indeed the decoupling allows integrators to\nbroadcast messages to multiple receivers, support choosing one of many\npotential receivers, and other topologies that allow integration to be\nseparated from the development of the applications. Since human issues\ntend to separate application development from application integration,\nthis approach works with human nature rather than against it.\n\n...\nRead the entire pattern in the book [Enterprise Integration Patterns](/books1.html)\n\n**Related patterns:**\n\n[*Remote Procedure Invocation*](EncapsulatedSynchronousIntegration.html), [*File Transfer*](FileTransferIntegration.html), [*Message*](Message.html), [*Message Channel*](MessageChannel.html), [*Message Endpoint*](MessageEndpoint.html), [*Message Router*](MessageRouter.html), [*Message Translator*](MessageTranslator.html), [*Shared Database*](SharedDataBaseIntegration.html)\n\n**Further reading:**\n\n- [What Does It Mean to Use Messaging?](/ramblings/74_messaging.html)\n- [Integration Styles](/ramblings/08_integrationstyles.html)\n\n---\n\n## Integration Pattern Language\n\n[Message Construct.](MessageConstructionIntro.html)\n\n[Message](Message.html)\n\n[Command Message](CommandMessage.html)\n\n[Document Message](DocumentMessage.html)\n\n[Event Message](EventMessage.html)\n\n[Request-Reply](RequestReply.html)\n\n[Return Address](ReturnAddress.html)\n\n[Correlation Identifier](CorrelationIdentifier.html)\n\n[Message Sequence](MessageSequence.html)\n\n[Message Expiration](MessageExpiration.html)\n\n[Format Indicator](FormatIndicator.html)\n\n[Message Routing](MessageRoutingIntro.html)\n\n[Pipes-and-Filters](PipesAndFilters.html)\n\n[Message Router](MessageRouter.html)\n\n[Content-based Router](ContentBasedRouter.html)\n\n[Message Filter](Filter.html)\n\n[Dynamic Router](DynamicRouter.html)\n\n[Recipient List](RecipientList.html)\n\n[Splitter](Sequencer.html)\n\n[Aggregator](Aggregator.html)\n\n[Resequencer](Resequencer.html)\n\n[Composed Msg. Processor](DistributionAggregate.html)\n\n[Scatter-Gather](BroadcastAggregate.html)\n\n[Routing Slip](RoutingTable.html)\n\n[Process Manager](ProcessManager.html)\n\n[Message Broker](MessageBroker.html)\n\n[Message\nTransformation](MessageTransformationIntro.html)\n\n[Message Translator](MessageTranslator.html)\n\n[Envelope Wrapper](EnvelopeWrapper.html)\n\n[Content Enricher](DataEnricher.html)\n\n[Content Filter](ContentFilter.html)\n\n[Claim Check](StoreInLibrary.html)\n\n[Normalizer](Normalizer.html)\n\n[Canonical Data Model](CanonicalDataModel.html)\n\n[Messaging Endpoints](MessagingEndpointsIntro.html)\n\n[Message Endpoint](MessageEndpoint.html)\n\n[Messaging Gateway](MessagingGateway.html)\n\n[Messaging Mapper](MessagingMapper.html)\n\n[Transactional Client](TransactionalClient.html)\n\n[Polling Consumer](PollingConsumer.html)\n\n[Event-driven Consumer](EventDrivenConsumer.html)\n\n[Competing Consumers](CompetingConsumers.html)\n\n[Message Dispatcher](MessageDispatcher.html)\n\n[Selective Consumer](MessageSelector.html)\n\n[Durable Subscriber](DurableSubscription.html)\n\n[Idempotent Receiver](IdempotentReceiver.html)\n\n[Service Activator](MessagingAdapter.html)\n\n[Messaging Channels](MessagingChannelsIntro.html)\n\n[Message Channel](MessageChannel.html)\n\n[Point-to-Point Channel](PointToPointChannel.html)\n\n[Publish-Subscr. Channel](PublishSubscribeChannel.html)\n\n[Datatype Channel](DatatypeChannel.html)\n\n[Invalid Message Channel](InvalidMessageChannel.html)\n\n[Dead Letter Channel](DeadLetterChannel.html)\n\n[Guaranteed Delivery](GuaranteedMessaging.html)\n\n[Channel Adapter](ChannelAdapter.html)\n\n[Messaging Bridge](MessagingBridge.html)\n\n[Message Bus](MessageBus.html)\n\n[Systems Mgmt.](SystemManagementIntro.html)\n\n[Control Bus](ControlBus.html)\n\n[Detour](Detour.html)\n\n[Wire Tap](WireTap.html)\n\n[Message History](MessageHistory.html)\n\n[Message Store](MessageStore.html)\n\n[Smart Proxy](SmartProxy.html)\n\n[Test Message](TestMessage.html)\n\n[Channel Purger](ChannelPurger.html)", "znaku_textu": 5090, "slov": 417, "odkazu": 110, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/Messaging.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 14:54:59", "sha256": "d868aeb114e06193cb59708e0ef8c492f273fe9cb0ddfadbfba533f101b6c3dd", "hloubka": 3, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://creativecommons.org/licenses/by/4.0/", "https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "https://www.architectelevator.com/book", "https://www.cloudstrategybook.com/", "https://www.platformstrategybook.info/"]} {"url": "http://www.enterpriseintegrationpatterns.com/patterns/messaging/MessagingAdapter.html", "titulek": "Service Activator - Enterprise Integration Patterns", "h1": "", "popis": "How can an application design a service to be invoked both via various messaging technologies and via non-messaging techniques?", "klicova_slova": "Service Activator,integration, messaging, events, patterns, event-driven, coupling, eai, middleware, application integration, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns", "og:title": "Service Activator - Enterprise Integration Patterns", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/MessagingAdapter.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/MessagingAdapterSolution.gif"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Integration Pattern Language"}], "markdown": "Messaging Patterns\n\n[Messaging Patterns](index.html)\n\n- [Integration Styles](IntegrationStylesIntro.html)\n- [Messaging Systems](MessagingComponentsIntro.html)\n- [Messaging Channels](MessagingChannelsIntro.html)\n- [Message Construction](MessageConstructionIntro.html)\n- [Interlude: Simple Messaging](SimpleMessagingIntro.html)\n- [Message Routing](MessageRoutingIntro.html)\n- [Message Transformation](MessageTransformationIntro.html)\n- [Interlude: Composed Messaging](ComposedMessagingExample.html)\n- [Messaging Endpoints](MessagingEndpointsIntro.html)\n- [System Management](SystemManagementIntro.html)\n- Interlude: Systems Management Example\n- Integration Patterns in Practice\n- Concluding Remarks\n- Appendices\n\n| | Service Activator[Messaging Patterns](index.html) » [Messaging Endpoints](MessagingEndpointsIntro.html) | [Contents](toc.html)[⇐ Prev](IdempotentReceiver.html)[Next ⇒](SystemManagementIntro.html) |\n| --- | --- | --- |\n\nAn application has a service that it would like to make available to other applications.\n\nHow can an application design a service to be invoked both via various messaging technologies and via non-messaging techniques?\n\nDesign a *Service Activator* that connects the messages on the channel to the service being accessed.\n\nA *Service Activator* can be one-way (request only) or two-way ([*Request-Reply*](RequestReply.html)). The service can be as simple as a method call—synchronous and non-remote—perhaps part of a Service Layer [[EAA](http://www.amazon.com/exec/obidos/ASIN/0321127420/enterpriseint-20)]. The activator can be hard-coded to always invoke the same service, or can use reflection to invoke the service indicated by the message. The activator handles all of the messaging details and invokes the service like any other client, such that the service doesn’t even know it’s being invoked through messaging.\n\n...\nRead the entire pattern in the book [Enterprise Integration Patterns](/books1.html)\n\n**Related patterns:**\n\n[*Command Message*](CommandMessage.html), [*Competing Consumers*](CompetingConsumers.html), [*Event-Driven Consumer*](EventDrivenConsumer.html), [*Invalid Message Channel*](InvalidMessageChannel.html), [*Message Dispatcher*](MessageDispatcher.html), [*Message Endpoint*](MessageEndpoint.html), [*Messaging Gateway*](MessagingGateway.html), [*Polling Consumer*](PollingConsumer.html), [*Request-Reply*](RequestReply.html), [*Transactional Client*](TransactionalClient.html)\n\n---\n\n## Integration Pattern Language\n\n[Message Construct.](MessageConstructionIntro.html)\n\n[Message](Message.html)\n\n[Command Message](CommandMessage.html)\n\n[Document Message](DocumentMessage.html)\n\n[Event Message](EventMessage.html)\n\n[Request-Reply](RequestReply.html)\n\n[Return Address](ReturnAddress.html)\n\n[Correlation Identifier](CorrelationIdentifier.html)\n\n[Message Sequence](MessageSequence.html)\n\n[Message Expiration](MessageExpiration.html)\n\n[Format Indicator](FormatIndicator.html)\n\n[Message Routing](MessageRoutingIntro.html)\n\n[Pipes-and-Filters](PipesAndFilters.html)\n\n[Message Router](MessageRouter.html)\n\n[Content-based Router](ContentBasedRouter.html)\n\n[Message Filter](Filter.html)\n\n[Dynamic Router](DynamicRouter.html)\n\n[Recipient List](RecipientList.html)\n\n[Splitter](Sequencer.html)\n\n[Aggregator](Aggregator.html)\n\n[Resequencer](Resequencer.html)\n\n[Composed Msg. Processor](DistributionAggregate.html)\n\n[Scatter-Gather](BroadcastAggregate.html)\n\n[Routing Slip](RoutingTable.html)\n\n[Process Manager](ProcessManager.html)\n\n[Message Broker](MessageBroker.html)\n\n[Message\nTransformation](MessageTransformationIntro.html)\n\n[Message Translator](MessageTranslator.html)\n\n[Envelope Wrapper](EnvelopeWrapper.html)\n\n[Content Enricher](DataEnricher.html)\n\n[Content Filter](ContentFilter.html)\n\n[Claim Check](StoreInLibrary.html)\n\n[Normalizer](Normalizer.html)\n\n[Canonical Data Model](CanonicalDataModel.html)\n\n[Messaging Endpoints](MessagingEndpointsIntro.html)\n\n[Message Endpoint](MessageEndpoint.html)\n\n[Messaging Gateway](MessagingGateway.html)\n\n[Messaging Mapper](MessagingMapper.html)\n\n[Transactional Client](TransactionalClient.html)\n\n[Polling Consumer](PollingConsumer.html)\n\n[Event-driven Consumer](EventDrivenConsumer.html)\n\n[Competing Consumers](CompetingConsumers.html)\n\n[Message Dispatcher](MessageDispatcher.html)\n\n[Selective Consumer](MessageSelector.html)\n\n[Durable Subscriber](DurableSubscription.html)\n\n[Idempotent Receiver](IdempotentReceiver.html)\n\n[Service Activator](MessagingAdapter.html)\n\n[Messaging Channels](MessagingChannelsIntro.html)\n\n[Message Channel](MessageChannel.html)\n\n[Point-to-Point Channel](PointToPointChannel.html)\n\n[Publish-Subscr. Channel](PublishSubscribeChannel.html)\n\n[Datatype Channel](DatatypeChannel.html)\n\n[Invalid Message Channel](InvalidMessageChannel.html)\n\n[Dead Letter Channel](DeadLetterChannel.html)\n\n[Guaranteed Delivery](GuaranteedMessaging.html)\n\n[Channel Adapter](ChannelAdapter.html)\n\n[Messaging Bridge](MessagingBridge.html)\n\n[Message Bus](MessageBus.html)\n\n[Systems Mgmt.](SystemManagementIntro.html)\n\n[Control Bus](ControlBus.html)\n\n[Detour](Detour.html)\n\n[Wire Tap](WireTap.html)\n\n[Message History](MessageHistory.html)\n\n[Message Store](MessageStore.html)\n\n[Smart Proxy](SmartProxy.html)\n\n[Test Message](TestMessage.html)\n\n[Channel Purger](ChannelPurger.html)\n\n- » [Read the latest in My Blog](/ramblings)\n- » [Get more insights from My Articles](/articles.html)\n- » [See me live in my Upcoming Talks](/talks)\n\nYou can reuse the following elements under the [Creative Commons Attribution](http://creativecommons.org/licenses/by/4.0/) license: pattern icon, pattern name, problem and solution statements (in bold), and the sketch. Other portions are protected by copyright.\n\n[Enterprise Integration Patterns](https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20)\nThe de-facto language for designing asynchronous, distributed systems. Over 100,000 copies sold.\n\n[The Software Architect Elevator](https://www.architectelevator.com/book)\n\n Rethink the role of architects as a connecting element across organizational layers. Acquire the technical, communication, and organizational skills to succeed in this new role.\n\n[Cloud Strategy](https://www.cloudstrategybook.com)\n\n Make your cloud migration a success by translating high-level goals into conscious decisions with well-understood trade-offs.\n\n[Platform Strategy](https://www.platformstrategybook.info)\n\n Platforms can boost innovation through harmonization, but they aren't easy to build. Learn from over a decade of designing and rolling out IT platforms.", "znaku_textu": 6393, "slov": 527, "odkazu": 109, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/MessagingAdapter.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 14:56:07", "sha256": "1743682be5bf9efa2141801b7c1e8bc6a02b32c12583e31fd79dd1e106fc29aa", "hloubka": 3, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://www.amazon.com/exec/obidos/ASIN/0321127420/enterpriseint-20", "http://creativecommons.org/licenses/by/4.0/", "https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "https://www.architectelevator.com/book", "https://www.cloudstrategybook.com/", "https://www.platformstrategybook.info/"]} {"url": "http://www.enterpriseintegrationpatterns.com/patterns/messaging/MessagingBridge.html", "titulek": "Messaging Bridge - Enterprise Integration Patterns", "h1": "", "popis": "How can multiple messaging systems be connected so that messages available on one are also available on the others?", "klicova_slova": "Messaging Bridge,integration, messaging, events, patterns, event-driven, coupling, eai, middleware, application integration, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns", "og:title": "Messaging Bridge - Enterprise Integration Patterns", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/MessagingBridge.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/MessagingBridge.gif"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Integration Pattern Language"}], "markdown": "Messaging Patterns\n\n[Messaging Patterns](index.html)\n\n- [Integration Styles](IntegrationStylesIntro.html)\n- [Messaging Systems](MessagingComponentsIntro.html)\n- [Messaging Channels](MessagingChannelsIntro.html)\n- [Message Construction](MessageConstructionIntro.html)\n- [Interlude: Simple Messaging](SimpleMessagingIntro.html)\n- [Message Routing](MessageRoutingIntro.html)\n- [Message Transformation](MessageTransformationIntro.html)\n- [Interlude: Composed Messaging](ComposedMessagingExample.html)\n- [Messaging Endpoints](MessagingEndpointsIntro.html)\n- [System Management](SystemManagementIntro.html)\n- Interlude: Systems Management Example\n- Integration Patterns in Practice\n- Concluding Remarks\n- Appendices\n\n| | Messaging Bridge[Messaging Patterns](index.html) » [Messaging Channels](MessagingChannelsIntro.html) | [Contents](toc.html)[⇐ Prev](ChannelAdapter.html)[Next ⇒](MessageBus.html) |\n| --- | --- | --- |\n\nAn enterprise is using [*Messaging*](Messaging.html) to enable applications to communicate. However, the enterprise uses more than one messaging system, which confuses the issue of which messaging system an application should connect to.\n\nHow can multiple messaging systems be connected so that messages available on one are also available on the others?\n\nUse a *Messaging Bridge*, a connection between messaging systems, to replicate messages between systems.\n\nTypically, there is no practical way to connect two complete messaging systems, so instead we connect individual, corresponding channels between the messaging systems. The *Messaging Bridge* is a set of [*Channel Adapter*](ChannelAdapter.html)s, where the non-messaging client is a actually another messaging system, and where each pair of adapters connects a pair of corresponding channels. The bridge acts as map from one set of channels to the other, and also transforms the message format of one system to the other. The connected channels may be used to transmit messages between traditional clients of the messaging system, or strictly for messages intended for other messaging systems.\n\n...\nRead the entire pattern in the book [Enterprise Integration Patterns](/books1.html)\n\n**Related patterns:**\n\n[*Channel Adapter*](ChannelAdapter.html), [*Emerging Standards and Futures in Enterprise Integration*](Future.html), [*Message Channel*](MessageChannel.html), [*Message Endpoint*](MessageEndpoint.html), [*Messaging*](Messaging.html)\n\n---\n\n## Integration Pattern Language\n\n[Message Construct.](MessageConstructionIntro.html)\n\n[Message](Message.html)\n\n[Command Message](CommandMessage.html)\n\n[Document Message](DocumentMessage.html)\n\n[Event Message](EventMessage.html)\n\n[Request-Reply](RequestReply.html)\n\n[Return Address](ReturnAddress.html)\n\n[Correlation Identifier](CorrelationIdentifier.html)\n\n[Message Sequence](MessageSequence.html)\n\n[Message Expiration](MessageExpiration.html)\n\n[Format Indicator](FormatIndicator.html)\n\n[Message Routing](MessageRoutingIntro.html)\n\n[Pipes-and-Filters](PipesAndFilters.html)\n\n[Message Router](MessageRouter.html)\n\n[Content-based Router](ContentBasedRouter.html)\n\n[Message Filter](Filter.html)\n\n[Dynamic Router](DynamicRouter.html)\n\n[Recipient List](RecipientList.html)\n\n[Splitter](Sequencer.html)\n\n[Aggregator](Aggregator.html)\n\n[Resequencer](Resequencer.html)\n\n[Composed Msg. Processor](DistributionAggregate.html)\n\n[Scatter-Gather](BroadcastAggregate.html)\n\n[Routing Slip](RoutingTable.html)\n\n[Process Manager](ProcessManager.html)\n\n[Message Broker](MessageBroker.html)\n\n[Message\nTransformation](MessageTransformationIntro.html)\n\n[Message Translator](MessageTranslator.html)\n\n[Envelope Wrapper](EnvelopeWrapper.html)\n\n[Content Enricher](DataEnricher.html)\n\n[Content Filter](ContentFilter.html)\n\n[Claim Check](StoreInLibrary.html)\n\n[Normalizer](Normalizer.html)\n\n[Canonical Data Model](CanonicalDataModel.html)\n\n[Messaging Endpoints](MessagingEndpointsIntro.html)\n\n[Message Endpoint](MessageEndpoint.html)\n\n[Messaging Gateway](MessagingGateway.html)\n\n[Messaging Mapper](MessagingMapper.html)\n\n[Transactional Client](TransactionalClient.html)\n\n[Polling Consumer](PollingConsumer.html)\n\n[Event-driven Consumer](EventDrivenConsumer.html)\n\n[Competing Consumers](CompetingConsumers.html)\n\n[Message Dispatcher](MessageDispatcher.html)\n\n[Selective Consumer](MessageSelector.html)\n\n[Durable Subscriber](DurableSubscription.html)\n\n[Idempotent Receiver](IdempotentReceiver.html)\n\n[Service Activator](MessagingAdapter.html)\n\n[Messaging Channels](MessagingChannelsIntro.html)\n\n[Message Channel](MessageChannel.html)\n\n[Point-to-Point Channel](PointToPointChannel.html)\n\n[Publish-Subscr. Channel](PublishSubscribeChannel.html)\n\n[Datatype Channel](DatatypeChannel.html)\n\n[Invalid Message Channel](InvalidMessageChannel.html)\n\n[Dead Letter Channel](DeadLetterChannel.html)\n\n[Guaranteed Delivery](GuaranteedMessaging.html)\n\n[Channel Adapter](ChannelAdapter.html)\n\n[Messaging Bridge](MessagingBridge.html)\n\n[Message Bus](MessageBus.html)\n\n[Systems Mgmt.](SystemManagementIntro.html)\n\n[Control Bus](ControlBus.html)\n\n[Detour](Detour.html)\n\n[Wire Tap](WireTap.html)\n\n[Message History](MessageHistory.html)\n\n[Message Store](MessageStore.html)\n\n[Smart Proxy](SmartProxy.html)\n\n[Test Message](TestMessage.html)\n\n[Channel Purger](ChannelPurger.html)\n\n- » [Read the latest in My Blog](/ramblings)\n- » [Get more insights from My Articles](/articles.html)\n- » [See me live in my Upcoming Talks](/talks)\n\nYou can reuse the following elements under the [Creative Commons Attribution](http://creativecommons.org/licenses/by/4.0/) license: pattern icon, pattern name, problem and solution statements (in bold), and the sketch. Other portions are protected by copyright.\n\n[Enterprise Integration Patterns](https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20)\nThe de-facto language for designing asynchronous, distributed systems. Over 100,000 copies sold.\n\n[The Software Architect Elevator](https://www.architectelevator.com/book)\n\n Rethink the role of architects as a connecting element across organizational layers. Acquire the technical, communication, and organizational skills to succeed in this new role.\n\n[Cloud Strategy](https://www.cloudstrategybook.com)\n\n Make your cloud migration a success by translating high-level goals into conscious decisions with well-understood trade-offs.\n\n[Platform Strategy](https://www.platformstrategybook.info)\n\n Platforms can boost innovation through harmonization, but they aren't easy to build. Learn from over a decade of designing and rolling out IT platforms.", "znaku_textu": 6371, "slov": 545, "odkazu": 108, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/MessagingBridge.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 14:55:16", "sha256": "e4f028e0c11196cdf7e66884a37e9d60fa340caa027f0c05c7b22f43822a301b", "hloubka": 3, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://creativecommons.org/licenses/by/4.0/", "https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "https://www.architectelevator.com/book", "https://www.cloudstrategybook.com/", "https://www.platformstrategybook.info/"]} {"url": "http://www.enterpriseintegrationpatterns.com/patterns/messaging/MessagingChannelsIntro.html", "titulek": "Introduction to Messaging Channels - Enterprise Integration Patterns", "h1": "", "popis": "In Introduction to Messaging Systems, we discussed Message Channel. When two applications wish to exchange data, they do so by sending the data through a channel that connects the two. The application sending the data may not know which application will receive the data, but by selecting a particular channel to send the data on, the sender knows that the receiver will be one that is looking for that sort of data by looking for it on that channel. In this way, the applications that produce shared data have a way to communicate with those that wish to consume it.", "klicova_slova": "Introduction to Messaging Channels,integration, messaging, events, patterns, event-driven, coupling, eai, middleware, application integration, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns", "og:title": "Introduction to Messaging Channels - Enterprise Integration Patterns", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/MessagingChannelsIntro.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/eip1_patterns_wide.png"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Message Channel Themes"}, {"uroven": 2, "text": "Message Channel Decisions"}, {"uroven": 2, "text": "Integration Pattern Language"}], "markdown": "| | Introduction to Messaging Channels[Messaging Patterns](index.html) » [Messaging Channels](MessagingChannelsIntro.html) | [Contents](toc.html)[⇐ Prev](MessageEndpoint.html)[Next ⇒](PointToPointChannel.html) |\n| --- | --- | --- |\n\nIn [*Introduction to Messaging Systems*](MessagingComponentsIntro.html), we discussed [*Message Channel*](MessageChannel.html). When two applications wish to exchange data, they do so by sending the data through a channel that connects the two. The application sending the data may not know which application will receive the data, but by selecting a particular channel to send the data on, the sender knows that the receiver will be one that is looking for that sort of data by looking for it on that channel. In this way, the applications that produce shared data have a way to communicate with those that wish to consume it.\n\n## Message Channel Themes\n\nDeciding to use a [*Message Channel*](MessageChannel.html) is the simple part; if an application has data to transmit or data it wishes to receive, it will have to use a channel. The challenge is knowing what channels your applications will need and what to use them for.\n\n**Fixed set of channels** — One theme in this chapter is that the set of [*Message Channel*](MessageChannel.html)s available to an application tends to be static. When designing an application, a developer has to know where to put what types of data to share that data with other applications, and likewise where to look for what types of data coming from other applications. These paths of communication cannot be dynamically created and discovered at runtime; they need to be agreed upon at design time so that the application knows where its data is coming from and where the data is going to. \n (While it is true that most channels must be staticly defined, there are exceptions to this theme, cases where dynamic channels are practical and useful. One exception is the reply channel in [*Request-Reply*](RequestReply.html). The requestor can create or obtain a new channel the replier knows nothing about, specify it as the [*Return Address*](ReturnAddress.html) of a request message, and then the replier can make use of it. Another exception is messaging system implementations that support hierarchical channels. A receiver can subscribe to a parent in the hierarchy, then a sender can publish to a new child channel the receiver knows nothing about, and the subscriber will still receive the message. These relatively unusual cases notwithstanding, channels are usually defined at deployment-time and applications are designed around a known set of channels.)\n\n**Determining the set of channels** — A related issue is: Who decides what [*Message Channel*](MessageChannel.html)s are available, the messaging system or the applications? That is to say: Does the messaging system define certain channels and require the applications to make due with those? Or do the applications determine what channels they need and require the messaging system to provide them? There is no simple answer; designing the needed set of channels is iterative. First the applications determine the channels the messaging system will need to provide. Subsequent applications will try to design their communication around the channels that are available, but when this is not practical, they will require that additional channels be added. When a set of applications already use a certain set of channels, and new applications wish to join in, they too will use the existing set of channels. When existing applications add new functionality, they may require new channels.\n\n**Unidirectional channels** — Another common source of confusion is whether a [*Message Channel*](MessageChannel.html) is unidirectional or bidirectional. Technically, it’s neither; a channel is more like a bucket that some applications add data to and other applications take data from (albeit a bucket that is distributed across multiple computers in some coordinated fashion). But because the data is in messages that travel from one application to another, that gives the channel direction, making it unidirectional. If a channel were bidirectional, that would mean that an application would both send messages to and receive messages from the same channel, which—while technically possible—makes little sense because the application would tend to keep consuming its own messages, the messages it’s supposed to be sending to other applications. So for all practical purposes, channels are unidirectional. As a consequence, for two applications to have a two-way conversation, they will need two channels, one in each direction (see [*Request-Reply*](RequestReply.html) in the next chapter).\n\n## Message Channel Decisions\n\nNow that we understand what [*Message Channel*](MessageChannel.html)s are, let’s consider the decisions involved in using them:\n\n**One-to-one or one-to-many** — When your application shares a piece of data, do you want to share it with just one other application or with any other application that is interested? To send the data to a single application, use a [*Point-to-Point Channel*](PointToPointChannel.html). This does not guarantee that every piece of data sent on that channel will necessarily go to the same receiver, because the channel might have multiple receivers; but it does ensure that any one piece of data will only be received by one of the applications. If you want all of the receiver applications to be able to receive the data, use a [*Publish-Subscribe Channel*](PublishSubscribeChannel.html). When you send a piece of data this way, the channel effectively copies the data for each of the receivers.\n\n**What type of data** — Any data in any computer memory has to conform to some sort of *type*: a known format or expected structure with an agreed upon meaning. Otherwise, all data would just be a bunch of bytes and there would be no way to make any sense of it. Messaging systems work much the same way; the message contents must conform to some type so that the receiver understands the data’s structure. [*Datatype Channel*](DatatypeChannel.html) is the principle that all of the data on a channel has to be of the same type. This is the main reason why messaging systems need lots of channels; if the data could be of any type, the messaging system would only need one channel (in each direction) between any two applications.\n\n**Invalid and dead messages** — The message system can ensure that a message is delivered properly, but it cannot guarantee that the receiver will know what to do with it. The receiver has expectations about the data’s type and meaning; when it receives a message that doesn’t meet these expectations, there’s not much it can do. What it can do, though, is put the strange message on a specially designated [*Invalid Message Channel*](InvalidMessageChannel.html), in hopes that some utility monitoring the channel will pick up the message and figure out what to do with it. Many messaging systems have a similar built-in feature, a [*Dead Letter Channel*](DeadLetterChannel.html) for messages which are successfully sent but ultimately cannot be successfully delivered. Again, hopefully some utility monitoring the channel will know what to do with the messages that could not be delivered.\n\n**Crash proof** — If the messaging system crashes or is shut down for maintence, what happens to its messages? When it is back up and running, will its messages still be in its channels? By default, no; channels store their messages in memory. However, [*Guaranteed Delivery*](GuaranteedMessaging.html) makes channels persistent so that their messages are stored on disk. This hurts performance but makes messaging more reliable, even when the messaging system isn’t.\n\n**Non-messaging clients** — What if an application cannot connect to a messaging system but still wants to participate in messaging? Normally it would be out of luck; but if the messaging system can connect to the application somehow—through its user interface, its business services API, its database, or through a network connection such as TCP/IP or HTTP—then a [*Channel Adapter*](ChannelAdapter.html) on the messaging system can be used to connect a channel (or set of channels) to the application without having to modify the application and perhaps without having to have a messaging client running on the same machine as the application. Sometimes the \"non-messaging client\" really is a messaging client, just for a different messaging system. In that case, an application that is a client on both messaging systems can build a [*Messaging Bridge*](MessagingBridge.html) between the two, effectively connecting them into one composite messaging system.\n\n**Communications backbone** — As more and more of an enterprise’s applications connect to the messaging system and make their functionality available through messaging, the messaging system becomes a centeralized point of one-stop-shopping for functionality in the enterprise. A new application simply needs to know which channels to use to request functionality and which others to listen on for the results. The messaging system itself essentially becomes a [*Message Bus*](MessageBus.html), a backbone providing access to all of the enterprise’s various and ever-changing applications and functionality. You can achieve this integration nirvana more quickly and easily by specifically designing for it from the beginning.\n\nSo as you can see, getting applications set up for [*Messaging*](Messaging.html) involves more than just connecting them to the messaging system so that they can send messages. The messages must have [*Message Channel*](MessageChannel.html)s to transmit on. Slapping in some channels doesn’t get the job done either. They have to be designed with a purpose, based on the data type being shared, the sort of application making the data available, and the sort of application receiving the data. This chapter will explain the decisions that go into designing these channels.\n\nTo help illustrate the patterns, each one has an example from a ficticious, simplified \"stock trading\" domain. While none of these examples should be used as the basis for implementing a real trading system, they do serve as quick and specific examples of how the patterns can be used.\n\n## Integration Pattern Language\n\n[Message Construct.](MessageConstructionIntro.html)\n\n[Message](Message.html)\n\n[Command Message](CommandMessage.html)\n\n[Document Message](DocumentMessage.html)\n\n[Event Message](EventMessage.html)\n\n[Request-Reply](RequestReply.html)\n\n[Return Address](ReturnAddress.html)\n\n[Correlation Identifier](CorrelationIdentifier.html)\n\n[Message Sequence](MessageSequence.html)\n\n[Message Expiration](MessageExpiration.html)\n\n[Format Indicator](FormatIndicator.html)\n\n[Message Routing](MessageRoutingIntro.html)\n\n[Pipes-and-Filters](PipesAndFilters.html)\n\n[Message Router](MessageRouter.html)\n\n[Content-based Router](ContentBasedRouter.html)\n\n[Message Filter](Filter.html)\n\n[Dynamic Router](DynamicRouter.html)\n\n[Recipient List](RecipientList.html)\n\n[Splitter](Sequencer.html)\n\n[Aggregator](Aggregator.html)\n\n[Resequencer](Resequencer.html)\n\n[Composed Msg. Processor](DistributionAggregate.html)\n\n[Scatter-Gather](BroadcastAggregate.html)\n\n[Routing Slip](RoutingTable.html)\n\n[Process Manager](ProcessManager.html)\n\n[Message Broker](MessageBroker.html)\n\n[Message\nTransformation](MessageTransformationIntro.html)\n\n[Message Translator](MessageTranslator.html)\n\n[Envelope Wrapper](EnvelopeWrapper.html)\n\n[Content Enricher](DataEnricher.html)\n\n[Content Filter](ContentFilter.html)\n\n[Claim Check](StoreInLibrary.html)\n\n[Normalizer](Normalizer.html)\n\n[Canonical Data Model](CanonicalDataModel.html)\n\n[Messaging Endpoints](MessagingEndpointsIntro.html)\n\n[Message Endpoint](MessageEndpoint.html)\n\n[Messaging Gateway](MessagingGateway.html)\n\n[Messaging Mapper](MessagingMapper.html)\n\n[Transactional Client](TransactionalClient.html)\n\n[Polling Consumer](PollingConsumer.html)\n\n[Event-driven Consumer](EventDrivenConsumer.html)\n\n[Competing Consumers](CompetingConsumers.html)\n\n[Message Dispatcher](MessageDispatcher.html)\n\n[Selective Consumer](MessageSelector.html)\n\n[Durable Subscriber](DurableSubscription.html)\n\n[Idempotent Receiver](IdempotentReceiver.html)\n\n[Service Activator](MessagingAdapter.html)\n\n[Messaging Channels](MessagingChannelsIntro.html)\n\n[Message Channel](MessageChannel.html)\n\n[Point-to-Point Channel](PointToPointChannel.html)\n\n[Publish-Subscr. Channel](PublishSubscribeChannel.html)\n\n[Datatype Channel](DatatypeChannel.html)\n\n[Invalid Message Channel](InvalidMessageChannel.html)\n\n[Dead Letter Channel](DeadLetterChannel.html)\n\n[Guaranteed Delivery](GuaranteedMessaging.html)\n\n[Channel Adapter](ChannelAdapter.html)\n\n[Messaging Bridge](MessagingBridge.html)\n\n[Message Bus](MessageBus.html)\n\n[Systems Mgmt.](SystemManagementIntro.html)\n\n[Control Bus](ControlBus.html)\n\n[Detour](Detour.html)\n\n[Wire Tap](WireTap.html)\n\n[Message History](MessageHistory.html)\n\n[Message Store](MessageStore.html)\n\n[Smart Proxy](SmartProxy.html)\n\n[Test Message](TestMessage.html)\n\n[Channel Purger](ChannelPurger.html)", "znaku_textu": 12997, "slov": 1773, "odkazu": 107, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/MessagingChannelsIntro.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 14:55:08", "sha256": "12542489ee77139f16c4fcf6b8445e9efb36571e09db8e1c431333d49a0f3ee8", "hloubka": 3, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "https://www.architectelevator.com/book", "https://www.cloudstrategybook.com/", "https://www.platformstrategybook.info/"]} {"url": "http://www.enterpriseintegrationpatterns.com/patterns/messaging/MessagingComponentsIntro.html", "titulek": "Introduction to Messaging Systems - Enterprise Integration Patterns", "h1": "", "popis": "Messaging makes applications loosely coupled by communicating asynchronously, which also makes the communication more reliable because the two applications do not have to be running at the same time. Messaging makes the messaging system responsible for transferring data from one application to another, so the applications can focus on what data they need to share but not worry so much about how to share it.", "klicova_slova": "Introduction to Messaging Systems,integration, messaging, events, patterns, event-driven, coupling, eai, middleware, application integration, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns", "og:title": "Introduction to Messaging Systems - Enterprise Integration Patterns", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/MessagingComponentsIntro.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/eip1_patterns_wide.png"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Basic Messaging Concepts"}, {"uroven": 2, "text": "Book Organization"}, {"uroven": 2, "text": "Integration Pattern Language"}], "markdown": "| | Introduction to Messaging Systems[Messaging Patterns](index.html) » [Messaging Systems](MessagingComponentsIntro.html) | [Contents](toc.html)[⇐ Prev](Messaging.html)[Next ⇒](MessageChannel.html) |\n| --- | --- | --- |\n\nMessaging makes applications loosely coupled by communicating asynchronously, which also makes the communication more reliable because the two applications do not have to be running at the same time. Messaging makes the messaging system responsible for transferring data from one application to another, so the applications can focus on what data they need to share but not worry so much about how to share it.\n\n## Basic Messaging Concepts\n\nLike most technologies, [*Messaging*](Messaging.html) involves certain basic concepts. Once you understand these concepts, you can make sense of the technology even before you understand all of the details about how to use it. These basic messaging concepts are:\n\n**Channels** — Messaging applications transmit data through a [*Message Channel*](MessageChannel.html), a virtual pipe that connects a sender to a receiver. A newly installed messaging system doesn’t contain any channels; you must determine how your applications need to communicate and then create the channels to facilitate it.\n\n**Messages** — A [*Message*](Message.html) is an atomic packet of data that can be transmitted on a channel. Thus to transmit data, an application must break the data into one or more packets, wrap each packet as a message, and then send the message on a channel. Likewise, a receiver application receives a message and must extract the data from the message to process it. The message system will try repeatedly to deliver the message (e.g., transmit it from the sender to the receiver) until it succeeds.\n\n**Multi-step delivery** — In the simplest case, the message system delivers a message directly from the sender’s computer to the receiver’s computer. However, actions often need to be performed on the message after it is sent by its original sender but before it is received by its final receiver. For example, the message may have to be validated or transformed because the receiver expects a different message format than the sender. A [*Pipes and Filters*](PipesAndFilters.html) architecture describes how multiple processing steps can be chained together using channels.\n\n**Routing** — In a large enterprise with numerous applications and channels to connect them, a message may have to go through several channels to reach its final destination. The route a message must follow may be so complex that the original sender does not know what channel will get the message to the final receiver. Instead, the original sender sends the message to a [*Message Router*](MessageRouter.html), an application component and filter in the pipes-and-filters architecture, which will determine how to navigate the channel topology and direct the message to the final receiver, or at least to the next router.\n\n**Transformation** — Various applications may not agree on the format for the same conceptual data; the sender formats the message one way, yet the receiver expects it to be formatted another way. To reconcile this, the message must go through an intermediate filter, a [*Message Translator*](MessageTranslator.html), that converts the message from one format to another.\n\n**Endpoints** — An application does not have some built-in capability to interface with a messaging system. Rather, it must contain a layer of code that knows both how the application works and how the messaging system works, bridging the two so that they work together. This bridge code is a set of coordinated [*Message Endpoint*](MessageEndpoint.html)s that enable the application to send and receive messages.\n\n## Book Organization\n\nThe patterns in this chapter provide you with the basic vocabulary and understanding of how to achieve enterprise integration using [*Messaging*](Messaging.html). All subsequent chapters build upon the base patterns in this chapter.\n\n*Relationship of Root Patterns and Chapters*\n\nThis chapter provides a broad overview of [*Messaging*](Messaging.html) by introducing the main messaging topics. For more details about one of these topics, skip ahead to the chapter that contains more patterns which cover that topic in greater depth.\n\n## Integration Pattern Language\n\n[Message Construct.](MessageConstructionIntro.html)\n\n[Message](Message.html)\n\n[Command Message](CommandMessage.html)\n\n[Document Message](DocumentMessage.html)\n\n[Event Message](EventMessage.html)\n\n[Request-Reply](RequestReply.html)\n\n[Return Address](ReturnAddress.html)\n\n[Correlation Identifier](CorrelationIdentifier.html)\n\n[Message Sequence](MessageSequence.html)\n\n[Message Expiration](MessageExpiration.html)\n\n[Format Indicator](FormatIndicator.html)\n\n[Message Routing](MessageRoutingIntro.html)\n\n[Pipes-and-Filters](PipesAndFilters.html)\n\n[Message Router](MessageRouter.html)\n\n[Content-based Router](ContentBasedRouter.html)\n\n[Message Filter](Filter.html)\n\n[Dynamic Router](DynamicRouter.html)\n\n[Recipient List](RecipientList.html)\n\n[Splitter](Sequencer.html)\n\n[Aggregator](Aggregator.html)\n\n[Resequencer](Resequencer.html)\n\n[Composed Msg. Processor](DistributionAggregate.html)\n\n[Scatter-Gather](BroadcastAggregate.html)\n\n[Routing Slip](RoutingTable.html)\n\n[Process Manager](ProcessManager.html)\n\n[Message Broker](MessageBroker.html)\n\n[Message\nTransformation](MessageTransformationIntro.html)\n\n[Message Translator](MessageTranslator.html)\n\n[Envelope Wrapper](EnvelopeWrapper.html)\n\n[Content Enricher](DataEnricher.html)\n\n[Content Filter](ContentFilter.html)\n\n[Claim Check](StoreInLibrary.html)\n\n[Normalizer](Normalizer.html)\n\n[Canonical Data Model](CanonicalDataModel.html)\n\n[Messaging Endpoints](MessagingEndpointsIntro.html)\n\n[Message Endpoint](MessageEndpoint.html)\n\n[Messaging Gateway](MessagingGateway.html)\n\n[Messaging Mapper](MessagingMapper.html)\n\n[Transactional Client](TransactionalClient.html)\n\n[Polling Consumer](PollingConsumer.html)\n\n[Event-driven Consumer](EventDrivenConsumer.html)\n\n[Competing Consumers](CompetingConsumers.html)\n\n[Message Dispatcher](MessageDispatcher.html)\n\n[Selective Consumer](MessageSelector.html)\n\n[Durable Subscriber](DurableSubscription.html)\n\n[Idempotent Receiver](IdempotentReceiver.html)\n\n[Service Activator](MessagingAdapter.html)\n\n[Messaging Channels](MessagingChannelsIntro.html)\n\n[Message Channel](MessageChannel.html)\n\n[Point-to-Point Channel](PointToPointChannel.html)\n\n[Publish-Subscr. Channel](PublishSubscribeChannel.html)\n\n[Datatype Channel](DatatypeChannel.html)\n\n[Invalid Message Channel](InvalidMessageChannel.html)\n\n[Dead Letter Channel](DeadLetterChannel.html)\n\n[Guaranteed Delivery](GuaranteedMessaging.html)\n\n[Channel Adapter](ChannelAdapter.html)\n\n[Messaging Bridge](MessagingBridge.html)\n\n[Message Bus](MessageBus.html)\n\n[Systems Mgmt.](SystemManagementIntro.html)\n\n[Control Bus](ControlBus.html)\n\n[Detour](Detour.html)\n\n[Wire Tap](WireTap.html)\n\n[Message History](MessageHistory.html)\n\n[Message Store](MessageStore.html)\n\n[Smart Proxy](SmartProxy.html)\n\n[Test Message](TestMessage.html)\n\n[Channel Purger](ChannelPurger.html)", "znaku_textu": 7006, "slov": 795, "odkazu": 107, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 14:55:00", "sha256": "f25add9d112c26eaae12ab98d21128540222461d2c52e32c7e5a45800ca5fa74", "hloubka": 3, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "https://www.architectelevator.com/book", "https://www.cloudstrategybook.com/", "https://www.platformstrategybook.info/"]} {"url": "http://www.enterpriseintegrationpatterns.com/patterns/messaging/MessagingEndpointsIntro.html", "titulek": "Introduction to Messaging Endpoints - Enterprise Integration Patterns", "h1": "", "popis": "In Introduction to Messaging Systems, we discussed Message Endpoint. This is how an application connects to a messaging system so that it can send and receive messages. As an application programmer, when you program to a messaging API such as JMS or the System.Messaging namespace, you’re developing endpoint code. If you are using a commercial middleware package, most of this coding is already done for you using the libraries and tools provided by the vendor.", "klicova_slova": "Introduction to Messaging Endpoints,integration, messaging, events, patterns, event-driven, coupling, eai, middleware, application integration, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns", "og:title": "Introduction to Messaging Endpoints - Enterprise Integration Patterns", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/MessagingEndpointsIntro.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/eip1_patterns_wide.png"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Send and Receive Patterns"}, {"uroven": 2, "text": "Message Consumer Patterns"}, {"uroven": 2, "text": "Message Endpoint Themes"}, {"uroven": 2, "text": "Integration Pattern Language"}], "markdown": "| | Introduction to Messaging Endpoints[Messaging Patterns](index.html) » [Messaging Endpoints](MessagingEndpointsIntro.html) | [Contents](toc.html)[⇐ Prev](ComposedMessagingTIBCO.html)[Next ⇒](MessagingGateway.html) |\n| --- | --- | --- |\n\nIn [*Introduction to Messaging Systems*](MessagingComponentsIntro.html), we discussed [*Message Endpoint*](MessageEndpoint.html). This is how an application connects to a messaging system so that it can send and receive messages. As an application programmer, when you program to a messaging API such as JMS or the System.Messaging namespace, you’re developing endpoint code. If you are using a commercial middleware package, most of this coding is already done for you using the libraries and tools provided by the vendor.\n\n## Send and Receive Patterns\n\nSome endpoint patterns apply to both senders and receivers. They concern how the application relates to the messaging system in general.\n\n**Encapsulate the messaging code** — In general, an application should not be aware that it is using [*Messaging*](Messaging.html) to integrate with other applications. Most of the application’s code should be written without messaging in mind. At the points where the application integrate with others, there should be a thin layer of code that performs the application’s part of the integration. When the integration is implemented with messaging, that thin layer of code that attches the application to the messaging system is a [*Messaging Gateway*](MessagingGateway.html).\n\n**Data translation** — It’s great when the internal data representation the sender and receiver applications use are the same, and when the message format uses that same representation as well. However, this is often not the case. Either the sender and receiver disagree on data format, or the messages use a different format (usually to support other senders and receivers). In this situation, use a [*Messaging Mapper*](MessagingMapper.html) to convert data between the application’s format and the message’s format.\n\n**Externally-controlled transactions** — Messaging systems use transactions internally; externally, by default, each send or receive method call runs in its own transaction. However, message producers and consumers have the option of using a [*Transactional Client*](TransactionalClient.html) to control these transactions externally, which is useful when you need to batch together multiple messages or to coordinate messaging with other transactional services.\n\n## Message Consumer Patterns\n\nOther endpoint patterns only apply to message receivers. Sending messages is easy. There are issues involved in deciding when a message should be sent, what it should contain, and how to communicate its intent to the receiver—that’s why we have the Message Construction patterns (see [*Introduction to Message Construction*](MessageConstructionIntro.html))—but once the message is built, sending it is easy. Receiving messages, on the other hand—that’s tricky. So many of these patterns are about receiving messages.\n\nAn overriding theme in message consumption is *throttling*, which means the application controlling the rate at which it consumes messages. As discussed in the [*Introduction*](Introduction.html), a potential problem any server faces is that a high volume of client requests could overload the server. With [*Remote Procedure Invocation*](EncapsulatedSynchronousIntegration.html), the server is pretty much at the mercy of the rate that clients make calls. Likewise, with [*Messaging*](Messaging.html), the server cannot control the rate at which clients send requests—but the server can control the rate at which it processes those requests. The application does not have to receive and process the messages as rapidly as they’re delivered by the messaging system; it can process them at a sustainable pace and let the extras queue up to be processed in some sort of first come, first serve basis. On the other hand, if the messages are piling up too much and the server has the resources to process more messages faster, the server can increase its message consumption throughput using concurrent message consumers. So use these patterns to let your application control the rate at which it consumes messages.\n\nMany of these patterns come in pairs that represent alternatives. You can design an endpoint one way or the other. A single application may design some endpoints one way and some endpoints the other way, but a single endpoint can only implement one alternative. Alternatives from each pair can be combined, leading to a great number of choices for how to implement a particular endpoint.\n\n**Synchronous or asynchronous consumer** — One alternative is whether to use a [*Polling Consumer*](PollingConsumer.html) or an [*Event-Driven Consumer*](EventDrivenConsumer.html). [[JMS11, pp.68-69](http://java.sun.com/products/jms/docs.html)], [[Hapner, p.13](http://www.amazon.com/exec/obidos/ASIN/0201784726/enterpriseint-20)], [[Dickman, p.29](http://www.amazon.com/exec/obidos/ASIN/0201325810/enterpriseint-20)] Polling provides the best throttling because if the server is busy, it won’t run the code to receive more messages, so the messages will queue up. Consumers that are event-driven tend to process messages as fast as they arrive, which could overload the server; but each consumer can only process one message at a time, so limiting the number of consumers effectively throttles the consumption rate.\n\n**Message assignment vs. message grab** — Another alternative concerns how a handful of consumers process a handful of messages. If each consumer gets a message, they can process the messages concurrently. The simplest approach is [*Competing Consumers*](CompetingConsumers.html), where one [*Point-to-Point Channel*](PointToPointChannel.html) has multiple consumers. Each one could potentially grab any message; the messaging system’s implementation decides which consumer gets a message. If you want to control this message-to-consumer matching process, use a [*Message Dispatcher*](MessageDispatcher.html). This is a single consumer that receives a message but delegates it to a performer for processing. An application can throttle message load by limiting the number of consumers/performers. Also, the dispatcher in a [*Message Dispatcher*](MessageDispatcher.html) can implement explicit throttling behavior.\n\n**Accept all messages or filter** — By default, any message delivered on a [*Message Channel*](MessageChannel.html) becomes available to any [*Message Endpoint*](MessageEndpoint.html) listening on that channel for messages to consume. However, some consumers may not want to consume just any message on that channel, but only wish to consume messages of a certain type or description. Such a discriminating consumer can use a [*Selective Consumer*](MessageSelector.html) to describe what sort of message it’s willing to receive. Then the messaging system will only make messages matching that description available to that receiver.\n\n**Subscribe while disconnected** — An issue that comes up with [*Publish-Subscribe Channel*](PublishSubscribeChannel.html)s: What if a subscriber was interested in the data being published on a particular channel and will be again, but is currently disconnected from the network or shut down for maintenance? Will a disconnected application miss messages published while it is disconnected, even though it has subscribed? By default, yes, a subscription is only valid while the subscriber is connected. To keep the application from missing messages published inbetween connections, make it a [*Durable Subscriber*](DurableSubscription.html).\n\n**Idempotency** — Sometimes the same message gets delivered more than once, either because the messaging system is not certain the message has been successfully delivered yet, or because the [*Message Channel*](MessageChannel.html)’s quality-of-service has been lowered to improve performance. Message receivers, on the other hand, tend to assume that each message will be delivered exactly once, and tend to cause problems when they repeat processing because of repeat messages. A receiver designed as an [*Idempotent Receiver*](IdempotentReceiver.html) handles duplicate messages and prevents them from causing problems in the receiver application.\n\n**Synchronous or asynchronous service** — Another tough choice is whether an application should expose its services to be invoked synchronously (via [*Remote Procedure Invocation*](EncapsulatedSynchronousIntegration.html)) or asynchronously (via [*Messaging*](Messaging.html)). Different clients may prefer different approaches; different circumstances may require different approaches. Since it’s often hard to choose just one approach or the other, let’s have both. A [*Service Activator*](MessagingAdapter.html) connects a [*Message Channel*](MessageChannel.html) to a synchronous service in an application so that when a message is received, the service is invoked. Synchronous clients can simply invoke the service directly; asynchronous clients can invoke the service by sending a message.\n\n## Message Endpoint Themes\n\nAnother significant theme in this chapter is difficulty using [*Transactional Client*](TransactionalClient.html) with other patterns. [*Event-Driven Consumer*](EventDrivenConsumer.html) usually cannot externally control transactions properly, [*Message Dispatcher*](MessageDispatcher.html) must be carefully designed to do so, and [*Competing Consumers*](CompetingConsumers.html) that externally manage transactions can run into significant problems. The safest bet for using [*Transactional Client*](TransactionalClient.html) is with a single [*Polling Consumer*](PollingConsumer.html), but that may not be a very satisfactory solution.\n\nSpecial mention should be made of JMS-style message-driven beans, one type of Enterprise JavaBeans (EJB). [[EJB20, pp.311-326](http://java.sun.com/products/ejb/docs.html)], [[Hapner, pp.69-74](http://www.amazon.com/exec/obidos/ASIN/0201784726/enterpriseint-20)] An MDB is a message consumer that is an [*Event-Driven Consumer*](EventDrivenConsumer.html), a [*Transactional Client*](TransactionalClient.html) that supports J2EE distributed (e.g., XAResource) transactions, and can be dynamically pooled as [*Competing Consumers*](CompetingConsumers.html), even for a [*Publish-Subscribe Channel*](PublishSubscribeChannel.html). This is a difficult and tedious combination to implement in one’s own application code, but this functionality is provided as a ready-built feature of compatible EJB containers (such as BEA’s WebLogic and IBM’s WebSphere). (How is the MDB framework implemented? Essentially, the container implements a [*Message Dispatcher*](MessageDispatcher.html) with a dynamicly-sized pool of reusable performers, where each performer consumes the message itself using its own session and transaction.)\n\nFinally, keep in mind that a single [*Message Endpoint*](MessageEndpoint.html) may well combine several different patterns from this chapter. A group of [*Competing Consumers*](CompetingConsumers.html) may be implemented as [*Polling Consumer*](PollingConsumer.html)s that are also [*Selective Consumer*](MessageSelector.html)s and act as a [*Service Activator*](MessagingAdapter.html) on a service in the application. A [*Message Dispatcher*](MessageDispatcher.html) may be an [*Event-Driven Consumer*](EventDrivenConsumer.html) and a [*Durable Subscriber*](DurableSubscription.html) that uses a [*Messaging Mapper*](MessagingMapper.html). Whatever other patterns an endpoint implements, it should also be a [*Messaging Gateway*](MessagingGateway.html). So don’t think of what one pattern to use, think of the combinations. That’s the beauty of solving the problems with patterns.\n\nSo there are a lot of options for making an application into a [*Message Endpoint*](MessageEndpoint.html). This chapter will explain what those options are and how to make the best use of them.\n\n## Integration Pattern Language\n\n[Message Construct.](MessageConstructionIntro.html)\n\n[Message](Message.html)\n\n[Command Message](CommandMessage.html)\n\n[Document Message](DocumentMessage.html)\n\n[Event Message](EventMessage.html)\n\n[Request-Reply](RequestReply.html)\n\n[Return Address](ReturnAddress.html)\n\n[Correlation Identifier](CorrelationIdentifier.html)\n\n[Message Sequence](MessageSequence.html)\n\n[Message Expiration](MessageExpiration.html)\n\n[Format Indicator](FormatIndicator.html)\n\n[Message Routing](MessageRoutingIntro.html)\n\n[Pipes-and-Filters](PipesAndFilters.html)\n\n[Message Router](MessageRouter.html)\n\n[Content-based Router](ContentBasedRouter.html)\n\n[Message Filter](Filter.html)\n\n[Dynamic Router](DynamicRouter.html)\n\n[Recipient List](RecipientList.html)\n\n[Splitter](Sequencer.html)\n\n[Aggregator](Aggregator.html)\n\n[Resequencer](Resequencer.html)\n\n[Composed Msg. Processor](DistributionAggregate.html)\n\n[Scatter-Gather](BroadcastAggregate.html)\n\n[Routing Slip](RoutingTable.html)\n\n[Process Manager](ProcessManager.html)\n\n[Message Broker](MessageBroker.html)\n\n[Message\nTransformation](MessageTransformationIntro.html)\n\n[Message Translator](MessageTranslator.html)\n\n[Envelope Wrapper](EnvelopeWrapper.html)\n\n[Content Enricher](DataEnricher.html)\n\n[Content Filter](ContentFilter.html)\n\n[Claim Check](StoreInLibrary.html)\n\n[Normalizer](Normalizer.html)\n\n[Canonical Data Model](CanonicalDataModel.html)\n\n[Messaging Endpoints](MessagingEndpointsIntro.html)\n\n[Message Endpoint](MessageEndpoint.html)\n\n[Messaging Gateway](MessagingGateway.html)\n\n[Messaging Mapper](MessagingMapper.html)\n\n[Transactional Client](TransactionalClient.html)\n\n[Polling Consumer](PollingConsumer.html)\n\n[Event-driven Consumer](EventDrivenConsumer.html)\n\n[Competing Consumers](CompetingConsumers.html)\n\n[Message Dispatcher](MessageDispatcher.html)\n\n[Selective Consumer](MessageSelector.html)\n\n[Durable Subscriber](DurableSubscription.html)\n\n[Idempotent Receiver](IdempotentReceiver.html)\n\n[Service Activator](MessagingAdapter.html)\n\n[Messaging Channels](MessagingChannelsIntro.html)\n\n[Message Channel](MessageChannel.html)\n\n[Point-to-Point Channel](PointToPointChannel.html)\n\n[Publish-Subscr. Channel](PublishSubscribeChannel.html)\n\n[Datatype Channel](DatatypeChannel.html)\n\n[Invalid Message Channel](InvalidMessageChannel.html)\n\n[Dead Letter Channel](DeadLetterChannel.html)\n\n[Guaranteed Delivery](GuaranteedMessaging.html)\n\n[Channel Adapter](ChannelAdapter.html)\n\n[Messaging Bridge](MessagingBridge.html)\n\n[Message Bus](MessageBus.html)\n\n[Systems Mgmt.](SystemManagementIntro.html)\n\n[Control Bus](ControlBus.html)\n\n[Detour](Detour.html)\n\n[Wire Tap](WireTap.html)\n\n[Message History](MessageHistory.html)\n\n[Message Store](MessageStore.html)\n\n[Smart Proxy](SmartProxy.html)\n\n[Test Message](TestMessage.html)\n\n[Channel Purger](ChannelPurger.html)", "znaku_textu": 14643, "slov": 1808, "odkazu": 111, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/MessagingEndpointsIntro.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 14:55:55", "sha256": "9b9ca9fe0ce05e757b6eb7ac08708b86ab2895184cf3dced0050f0275f0a84fd", "hloubka": 3, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://java.sun.com/products/jms/docs.html", "http://www.amazon.com/exec/obidos/ASIN/0201784726/enterpriseint-20", "http://www.amazon.com/exec/obidos/ASIN/0201325810/enterpriseint-20", "http://java.sun.com/products/ejb/docs.html", "https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "https://www.architectelevator.com/book", "https://www.cloudstrategybook.com/", "https://www.platformstrategybook.info/"]} {"url": "http://www.enterpriseintegrationpatterns.com/patterns/messaging/MessagingGateway.html", "titulek": "Messaging Gateway - Enterprise Integration Patterns", "h1": "", "popis": "How do you encapsulate access to the messaging system from the rest of the application?", "klicova_slova": "Messaging Gateway,integration, messaging, events, patterns, event-driven, coupling, eai, middleware, application integration, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns", "og:title": "Messaging Gateway - Enterprise Integration Patterns", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/MessagingGateway.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/MessagingGatewaySolution.gif"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Integration Pattern Language"}], "markdown": "Messaging Patterns\n\n[Messaging Patterns](index.html)\n\n- [Integration Styles](IntegrationStylesIntro.html)\n- [Messaging Systems](MessagingComponentsIntro.html)\n- [Messaging Channels](MessagingChannelsIntro.html)\n- [Message Construction](MessageConstructionIntro.html)\n- [Interlude: Simple Messaging](SimpleMessagingIntro.html)\n- [Message Routing](MessageRoutingIntro.html)\n- [Message Transformation](MessageTransformationIntro.html)\n- [Interlude: Composed Messaging](ComposedMessagingExample.html)\n- [Messaging Endpoints](MessagingEndpointsIntro.html)\n- [System Management](SystemManagementIntro.html)\n- Interlude: Systems Management Example\n- Integration Patterns in Practice\n- Concluding Remarks\n- Appendices\n\n| | Messaging Gateway[Messaging Patterns](index.html) » [Messaging Endpoints](MessagingEndpointsIntro.html) | [Contents](toc.html)[⇐ Prev](MessagingEndpointsIntro.html)[Next ⇒](MessagingMapper.html) |\n| --- | --- | --- |\n\nAn application accesses another system via [*Messaging*](Messaging.html).\n\nHow do you encapsulate access to the messaging system from the rest of the application?\n\nUse a *Messaging Gateway*, a class than wraps messaging-specific method calls and exposes domain-specific methods to the application.\n\nThe *Messaging Gateway* encapsulates messaging-specific code (e.g., the code required to send or receive a message) and separates it from the rest of the application code. This way, only the *Messaging Gateway* code knows about the messaging system; the rest of the application code does not. The *Messaging Gateway* exposes a business function to the rest of the application so that instead of requiring the application to set properties like Message.MessageReadPropertyFilter.AppSpecific, a *Messaging Gateway* exposes methods such as GetCreditScore that accept strongly typed parameters just like any other method. A *Messaging Gateway* is a messaging-specific version of the more general *Gateway* pattern [[EAA](http://www.amazon.com/exec/obidos/ASIN/0321127420/enterpriseint-20)].\n\n...\nRead the entire pattern in the book [Enterprise Integration Patterns](/books1.html)\n\n**Related patterns:**\n\n[*Scatter-Gather*](BroadcastAggregate.html), [*Asynchronous Implementation with MSMQ*](ComposedMessagingMSMQ.html), [*Correlation Identifier*](CorrelationIdentifier.html), [*Messaging*](Messaging.html), [*Request-Reply*](RequestReply.html)\n\n---\n\n## Integration Pattern Language\n\n[Message Construct.](MessageConstructionIntro.html)\n\n[Message](Message.html)\n\n[Command Message](CommandMessage.html)\n\n[Document Message](DocumentMessage.html)\n\n[Event Message](EventMessage.html)\n\n[Request-Reply](RequestReply.html)\n\n[Return Address](ReturnAddress.html)\n\n[Correlation Identifier](CorrelationIdentifier.html)\n\n[Message Sequence](MessageSequence.html)\n\n[Message Expiration](MessageExpiration.html)\n\n[Format Indicator](FormatIndicator.html)\n\n[Message Routing](MessageRoutingIntro.html)\n\n[Pipes-and-Filters](PipesAndFilters.html)\n\n[Message Router](MessageRouter.html)\n\n[Content-based Router](ContentBasedRouter.html)\n\n[Message Filter](Filter.html)\n\n[Dynamic Router](DynamicRouter.html)\n\n[Recipient List](RecipientList.html)\n\n[Splitter](Sequencer.html)\n\n[Aggregator](Aggregator.html)\n\n[Resequencer](Resequencer.html)\n\n[Composed Msg. Processor](DistributionAggregate.html)\n\n[Scatter-Gather](BroadcastAggregate.html)\n\n[Routing Slip](RoutingTable.html)\n\n[Process Manager](ProcessManager.html)\n\n[Message Broker](MessageBroker.html)\n\n[Message\nTransformation](MessageTransformationIntro.html)\n\n[Message Translator](MessageTranslator.html)\n\n[Envelope Wrapper](EnvelopeWrapper.html)\n\n[Content Enricher](DataEnricher.html)\n\n[Content Filter](ContentFilter.html)\n\n[Claim Check](StoreInLibrary.html)\n\n[Normalizer](Normalizer.html)\n\n[Canonical Data Model](CanonicalDataModel.html)\n\n[Messaging Endpoints](MessagingEndpointsIntro.html)\n\n[Message Endpoint](MessageEndpoint.html)\n\n[Messaging Gateway](MessagingGateway.html)\n\n[Messaging Mapper](MessagingMapper.html)\n\n[Transactional Client](TransactionalClient.html)\n\n[Polling Consumer](PollingConsumer.html)\n\n[Event-driven Consumer](EventDrivenConsumer.html)\n\n[Competing Consumers](CompetingConsumers.html)\n\n[Message Dispatcher](MessageDispatcher.html)\n\n[Selective Consumer](MessageSelector.html)\n\n[Durable Subscriber](DurableSubscription.html)\n\n[Idempotent Receiver](IdempotentReceiver.html)\n\n[Service Activator](MessagingAdapter.html)\n\n[Messaging Channels](MessagingChannelsIntro.html)\n\n[Message Channel](MessageChannel.html)\n\n[Point-to-Point Channel](PointToPointChannel.html)\n\n[Publish-Subscr. Channel](PublishSubscribeChannel.html)\n\n[Datatype Channel](DatatypeChannel.html)\n\n[Invalid Message Channel](InvalidMessageChannel.html)\n\n[Dead Letter Channel](DeadLetterChannel.html)\n\n[Guaranteed Delivery](GuaranteedMessaging.html)\n\n[Channel Adapter](ChannelAdapter.html)\n\n[Messaging Bridge](MessagingBridge.html)\n\n[Message Bus](MessageBus.html)\n\n[Systems Mgmt.](SystemManagementIntro.html)\n\n[Control Bus](ControlBus.html)\n\n[Detour](Detour.html)\n\n[Wire Tap](WireTap.html)\n\n[Message History](MessageHistory.html)\n\n[Message Store](MessageStore.html)\n\n[Smart Proxy](SmartProxy.html)\n\n[Test Message](TestMessage.html)\n\n[Channel Purger](ChannelPurger.html)\n\n- » [Read the latest in My Blog](/ramblings)\n- » [Get more insights from My Articles](/articles.html)\n- » [See me live in my Upcoming Talks](/talks)\n\nYou can reuse the following elements under the [Creative Commons Attribution](http://creativecommons.org/licenses/by/4.0/) license: pattern icon, pattern name, problem and solution statements (in bold), and the sketch. Other portions are protected by copyright.\n\n[Enterprise Integration Patterns](https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20)\nThe de-facto language for designing asynchronous, distributed systems. Over 100,000 copies sold.\n\n[The Software Architect Elevator](https://www.architectelevator.com/book)\n\n Rethink the role of architects as a connecting element across organizational layers. Acquire the technical, communication, and organizational skills to succeed in this new role.\n\n[Cloud Strategy](https://www.cloudstrategybook.com)\n\n Make your cloud migration a success by translating high-level goals into conscious decisions with well-understood trade-offs.\n\n[Platform Strategy](https://www.platformstrategybook.info)\n\n Platforms can boost innovation through harmonization, but they aren't easy to build. Learn from over a decade of designing and rolling out IT platforms.", "znaku_textu": 6316, "slov": 518, "odkazu": 109, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/MessagingGateway.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 14:55:56", "sha256": "80529c5186ba05ef9282ebe046bd45ab777f928b10c669ac07283c8f970f2066", "hloubka": 3, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://www.amazon.com/exec/obidos/ASIN/0321127420/enterpriseint-20", "http://creativecommons.org/licenses/by/4.0/", "https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "https://www.architectelevator.com/book", "https://www.cloudstrategybook.com/", "https://www.platformstrategybook.info/"]} {"url": "http://www.enterpriseintegrationpatterns.com/patterns/messaging/MessagingMapper.html", "titulek": "Messaging Mapper - Enterprise Integration Patterns", "h1": "", "popis": "How do you move data between domain objects and the messaging infrastructure while keeping the two independent of each other?", "klicova_slova": "Messaging Mapper,integration, messaging, events, patterns, event-driven, coupling, eai, middleware, application integration, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns", "og:title": "Messaging Mapper - Enterprise Integration Patterns", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/MessagingMapper.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/MessagingMapperClassDiagram.gif"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Integration Pattern Language"}], "markdown": "| | Messaging Mapper[Messaging Patterns](index.html) » [Messaging Endpoints](MessagingEndpointsIntro.html) | [Contents](toc.html)[⇐ Prev](MessagingGateway.html)[Next ⇒](TransactionalClient.html) |\n| --- | --- | --- |\n\nWhen integrating applications using messaging, the data inside a message is often derived from domain objects inside the integrated applications. If we use a [*Document Message*](DocumentMessage.html), the message itself may directly represent one or domain objects. If we use a [*Command Message*](CommandMessage.html), some of the data fields associated with the command are likely to be extracted from domain objects as well. There are some distinct differences between messages and objects. For example, most objects rely on associations in the form of object references and inheritance relationships. Many messaging infrastructures do not support these concepts because they have to be able to communicate with a range of applications, some of which may not be object-oriented at all.\n\nHow do you move data between domain objects and the messaging infrastructure while keeping the two independent of each other?\n\nCreate a separate *Messaging Mapper* that contains the mapping logic between the messaging infrastructure and the domain objects. Neither the objects nor the infrastructure have knowledge of the *Messaging Mapper*'s existence.\n\nThe *Messaging Mapper* accesses one or more domain objects and converts them into a message as required by the messaging channel. It also performs the opposite function, creating or updating domain objects based on incoming messages. Since the *Messaging Mapper* is implemented as a separate class that references the domain object(s) and the messaging layer, neither layer is aware of the other. The layers don't even know about the *Messaging Mapper*.\n\nThe *Messaging Mapper* is a specialization of the *Mapper* pattern defined in [[EAA](http://www.amazon.com/exec/obidos/ASIN/0321127420/enterpriseint-20)]. It shares some analogies with the *Data Mapper* defined in the same book. Anyone who has worked on O-R (Object-Relational) Mapping strategies will understand the complexities of mapping data between layers that use different paradigms. The issues inherent in the *Messaging Mapper* are similarly complex and a detailed discussion of all possible aspects is beyond the scope of this book. Many of the Data Source Architectural Patterns in [[EAA](http://www.amazon.com/exec/obidos/ASIN/0321127420/enterpriseint-20)] make a good read for anyone concerned with creating a *Messaging Mapper* layer.\n\n...\nRead the entire pattern in the book [Enterprise Integration Patterns](/books1.html)\n\n**Related patterns:**\n\n[*Aggregator*](Aggregator.html), [*Canonical Data Model*](CanonicalDataModel.html), [*Command Message*](CommandMessage.html), [*Document Message*](DocumentMessage.html), [*Message Router*](MessageRouter.html), [*Message Translator*](MessageTranslator.html)\n\n---\n\n## Integration Pattern Language\n\n[Message Construct.](MessageConstructionIntro.html)\n\n[Message](Message.html)\n\n[Command Message](CommandMessage.html)\n\n[Document Message](DocumentMessage.html)\n\n[Event Message](EventMessage.html)\n\n[Request-Reply](RequestReply.html)\n\n[Return Address](ReturnAddress.html)\n\n[Correlation Identifier](CorrelationIdentifier.html)\n\n[Message Sequence](MessageSequence.html)\n\n[Message Expiration](MessageExpiration.html)\n\n[Format Indicator](FormatIndicator.html)\n\n[Message Routing](MessageRoutingIntro.html)\n\n[Pipes-and-Filters](PipesAndFilters.html)\n\n[Message Router](MessageRouter.html)\n\n[Content-based Router](ContentBasedRouter.html)\n\n[Message Filter](Filter.html)\n\n[Dynamic Router](DynamicRouter.html)\n\n[Recipient List](RecipientList.html)\n\n[Splitter](Sequencer.html)\n\n[Aggregator](Aggregator.html)\n\n[Resequencer](Resequencer.html)\n\n[Composed Msg. Processor](DistributionAggregate.html)\n\n[Scatter-Gather](BroadcastAggregate.html)\n\n[Routing Slip](RoutingTable.html)\n\n[Process Manager](ProcessManager.html)\n\n[Message Broker](MessageBroker.html)\n\n[Message\nTransformation](MessageTransformationIntro.html)\n\n[Message Translator](MessageTranslator.html)\n\n[Envelope Wrapper](EnvelopeWrapper.html)\n\n[Content Enricher](DataEnricher.html)\n\n[Content Filter](ContentFilter.html)\n\n[Claim Check](StoreInLibrary.html)\n\n[Normalizer](Normalizer.html)\n\n[Canonical Data Model](CanonicalDataModel.html)\n\n[Messaging Endpoints](MessagingEndpointsIntro.html)\n\n[Message Endpoint](MessageEndpoint.html)\n\n[Messaging Gateway](MessagingGateway.html)\n\n[Messaging Mapper](MessagingMapper.html)\n\n[Transactional Client](TransactionalClient.html)\n\n[Polling Consumer](PollingConsumer.html)\n\n[Event-driven Consumer](EventDrivenConsumer.html)\n\n[Competing Consumers](CompetingConsumers.html)\n\n[Message Dispatcher](MessageDispatcher.html)\n\n[Selective Consumer](MessageSelector.html)\n\n[Durable Subscriber](DurableSubscription.html)\n\n[Idempotent Receiver](IdempotentReceiver.html)\n\n[Service Activator](MessagingAdapter.html)\n\n[Messaging Channels](MessagingChannelsIntro.html)\n\n[Message Channel](MessageChannel.html)\n\n[Point-to-Point Channel](PointToPointChannel.html)\n\n[Publish-Subscr. Channel](PublishSubscribeChannel.html)\n\n[Datatype Channel](DatatypeChannel.html)\n\n[Invalid Message Channel](InvalidMessageChannel.html)\n\n[Dead Letter Channel](DeadLetterChannel.html)\n\n[Guaranteed Delivery](GuaranteedMessaging.html)\n\n[Channel Adapter](ChannelAdapter.html)\n\n[Messaging Bridge](MessagingBridge.html)\n\n[Message Bus](MessageBus.html)\n\n[Systems Mgmt.](SystemManagementIntro.html)\n\n[Control Bus](ControlBus.html)\n\n[Detour](Detour.html)\n\n[Wire Tap](WireTap.html)\n\n[Message History](MessageHistory.html)\n\n[Message Store](MessageStore.html)\n\n[Smart Proxy](SmartProxy.html)\n\n[Test Message](TestMessage.html)\n\n[Channel Purger](ChannelPurger.html)", "znaku_textu": 5643, "slov": 531, "odkazu": 109, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/MessagingMapper.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 14:55:57", "sha256": "fdd610e2031601d9960698815ed18685d6d54450db5d4a858038258fe3e71a21", "hloubka": 3, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://www.amazon.com/exec/obidos/ASIN/0321127420/enterpriseint-20", "http://creativecommons.org/licenses/by/4.0/", "https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "https://www.architectelevator.com/book", "https://www.cloudstrategybook.com/", "https://www.platformstrategybook.info/"]} {"url": "http://www.enterpriseintegrationpatterns.com/patterns/messaging/Normalizer.html", "titulek": "Normalizer - Enterprise Integration Patterns", "h1": "", "popis": "How do you process messages that are semantically equivalent, but arrive in a different format?", "klicova_slova": "Normalizer,integration, messaging, events, patterns, event-driven, coupling, eai, middleware, application integration, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns", "og:title": "Normalizer - Enterprise Integration Patterns", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/Normalizer.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/NormalizerDetail.gif"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Integration Pattern Language"}], "markdown": "| | Normalizer[Messaging Patterns](index.html) » [Message Transformation](MessageTransformationIntro.html) | [Contents](toc.html)[⇐ Prev](StoreInLibrary.html)[Next ⇒](CanonicalDataModel.html) |\n| --- | --- | --- |\n\nIn a business-to-business (B2B) integration scenario it is quite common for an enterprise to receive messages from different business partners. These message may have the same meaning, but follow different formats, depending on the partners' internal systems and preferences. For example, we built a solution for a pay-per-view provider that has to accept and process viewership information from over 1700 (!) affiliates, most of which did not conform to a standard format.\n\nHow do you process messages that are semantically equivalent, but arrive in a different format?\n\nUse a *Normalizer* to route each message type through a custom [*Message Translator*](MessageTranslator.html) so that the resulting messages match a common format.\n\nThe *Normalizer* uses a [*Message Router*](MessageRouter.html) to route the incoming message to the correct [*Message Translator*](MessageTranslator.html). This requires the [*Message Router*](MessageRouter.html) to detect the type of the incoming message. Many messaging systems equip each message with a type specifier field in the Message Header to make this type of task simple. However, in many B2B scenarios messages do not arrive as messages compliant with the enterprise's internal messaging system, but in diverse formats such as comma separated files or XML document without associated schema. While it is certainly best practice to equip any incoming data format with a type specifier we know all to well that the world is far from perfect. As a result, we need to think of more general ways to identify the format of the incoming message. One common way for schema-less XML documents is to use the name of the root element to assume the correct type. If multiple data formats use the same root element, you can use XPATH expressions to determine the existence of specific sub-nodes. Comma-separated files can require a little more creativity. Sometimes you can determine the type based on the number of fields and the type of the data (e.g. numeric vs. string). If the data arrives as files, the easiest way may be to use the file name or the file folder structure as a surrogate [*Datatype Channel*](DatatypeChannel.html). Each business partner can name the file with a unique naming convention. The [*Message Router*](MessageRouter.html) can then use the file name to route the message to the appropriate [*Message Translator*](MessageTranslator.html).\n\n...\nRead the entire pattern in the book [Enterprise Integration Patterns](/books1.html)\n\n**Related patterns:**\n\n[*Datatype Channel*](DatatypeChannel.html), [*Message Router*](MessageRouter.html), [*Message Translator*](MessageTranslator.html)\n\n---\n\n## Integration Pattern Language\n\n[Message Construct.](MessageConstructionIntro.html)\n\n[Message](Message.html)\n\n[Command Message](CommandMessage.html)\n\n[Document Message](DocumentMessage.html)\n\n[Event Message](EventMessage.html)\n\n[Request-Reply](RequestReply.html)\n\n[Return Address](ReturnAddress.html)\n\n[Correlation Identifier](CorrelationIdentifier.html)\n\n[Message Sequence](MessageSequence.html)\n\n[Message Expiration](MessageExpiration.html)\n\n[Format Indicator](FormatIndicator.html)\n\n[Message Routing](MessageRoutingIntro.html)\n\n[Pipes-and-Filters](PipesAndFilters.html)\n\n[Message Router](MessageRouter.html)\n\n[Content-based Router](ContentBasedRouter.html)\n\n[Message Filter](Filter.html)\n\n[Dynamic Router](DynamicRouter.html)\n\n[Recipient List](RecipientList.html)\n\n[Splitter](Sequencer.html)\n\n[Aggregator](Aggregator.html)\n\n[Resequencer](Resequencer.html)\n\n[Composed Msg. Processor](DistributionAggregate.html)\n\n[Scatter-Gather](BroadcastAggregate.html)\n\n[Routing Slip](RoutingTable.html)\n\n[Process Manager](ProcessManager.html)\n\n[Message Broker](MessageBroker.html)\n\n[Message\nTransformation](MessageTransformationIntro.html)\n\n[Message Translator](MessageTranslator.html)\n\n[Envelope Wrapper](EnvelopeWrapper.html)\n\n[Content Enricher](DataEnricher.html)\n\n[Content Filter](ContentFilter.html)\n\n[Claim Check](StoreInLibrary.html)\n\n[Normalizer](Normalizer.html)\n\n[Canonical Data Model](CanonicalDataModel.html)\n\n[Messaging Endpoints](MessagingEndpointsIntro.html)\n\n[Message Endpoint](MessageEndpoint.html)\n\n[Messaging Gateway](MessagingGateway.html)\n\n[Messaging Mapper](MessagingMapper.html)\n\n[Transactional Client](TransactionalClient.html)\n\n[Polling Consumer](PollingConsumer.html)\n\n[Event-driven Consumer](EventDrivenConsumer.html)\n\n[Competing Consumers](CompetingConsumers.html)\n\n[Message Dispatcher](MessageDispatcher.html)\n\n[Selective Consumer](MessageSelector.html)\n\n[Durable Subscriber](DurableSubscription.html)\n\n[Idempotent Receiver](IdempotentReceiver.html)\n\n[Service Activator](MessagingAdapter.html)\n\n[Messaging Channels](MessagingChannelsIntro.html)\n\n[Message Channel](MessageChannel.html)\n\n[Point-to-Point Channel](PointToPointChannel.html)\n\n[Publish-Subscr. Channel](PublishSubscribeChannel.html)\n\n[Datatype Channel](DatatypeChannel.html)\n\n[Invalid Message Channel](InvalidMessageChannel.html)\n\n[Dead Letter Channel](DeadLetterChannel.html)\n\n[Guaranteed Delivery](GuaranteedMessaging.html)\n\n[Channel Adapter](ChannelAdapter.html)\n\n[Messaging Bridge](MessagingBridge.html)\n\n[Message Bus](MessageBus.html)\n\n[Systems Mgmt.](SystemManagementIntro.html)\n\n[Control Bus](ControlBus.html)\n\n[Detour](Detour.html)\n\n[Wire Tap](WireTap.html)\n\n[Message History](MessageHistory.html)\n\n[Message Store](MessageStore.html)\n\n[Smart Proxy](SmartProxy.html)\n\n[Test Message](TestMessage.html)\n\n[Channel Purger](ChannelPurger.html)", "znaku_textu": 5583, "slov": 563, "odkazu": 108, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/Normalizer.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 14:55:49", "sha256": "b7c0a62e8ab41ab534fda9fa15d4b4e0f4c4118a31b58e9d87a0ad89a2eb7b20", "hloubka": 3, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://creativecommons.org/licenses/by/4.0/", "https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "https://www.architectelevator.com/book", "https://www.cloudstrategybook.com/", "https://www.platformstrategybook.info/"]} {"url": "http://www.enterpriseintegrationpatterns.com/patterns/messaging/ObserverJmsExample.html", "titulek": "JMS Publish/Subscribe Example - Enterprise Integration Patterns", "h1": "", "popis": "This is a simple example that shows the power of publish/subscribe messaging, and explores the alternative designs available. It shows how multiple subscriber applications can all be informed of a single event by publishing the event just once, and considers alternative stratagies for how to communicate details of that event to the subscribers.", "klicova_slova": "JMS Publish/Subscribe Example,integration, messaging, events, patterns, event-driven, coupling, eai, middleware, application integration, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns", "og:title": "JMS Publish/Subscribe Example - Enterprise Integration Patterns", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/ObserverJmsExample.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/eip1_patterns_wide.png"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "The Observer Pattern"}, {"uroven": 2, "text": "Distributed Observer"}, {"uroven": 2, "text": "Publish-Subscribe"}, {"uroven": 2, "text": "Comparisons"}, {"uroven": 2, "text": "Push and Pull Models"}, {"uroven": 2, "text": "Channel Design"}, {"uroven": 2, "text": "Conclusions"}, {"uroven": 2, "text": "Integration Pattern Language"}], "markdown": "| | JMS Publish/Subscribe Example[Messaging Patterns](index.html) » [Interlude: Simple Messaging](SimpleMessagingIntro.html) | [Contents](toc.html)[⇐ Prev](RequestReplyNetExample.html)[Next ⇒](MessageRoutingIntro.html) |\n| --- | --- | --- |\n\nThis is a simple example that shows the power of publish/subscribe messaging, and explores the alternative designs available. It shows how multiple subscriber applications can all be informed of a single event by publishing the event just once, and considers alternative stratagies for how to communicate details of that event to the subscribers.\n\n*Publish/Subscribe using a JMS Topic*\n\nTo understand how helpful a simple [*Publish-Subscribe Channel*](PublishSubscribeChannel.html) really is, we first need to consider what it is like to implement the Observer pattern in a distributed fashion, amongst multiple applications. Before we get to that, let's review the basics of Observer.\n\n## The Observer Pattern\n\nThe Observer pattern [[GoF](http://www.amazon.com/exec/obidos/ASIN/0201633612/enterpriseint-20)] documents a design through which an object can notify its dependents of a change, while keeping that object decoupled from its dependents so that the object works just fine no matter how many dependents it has, even none at all. Its participants are a Subject—the object announcing changes in its state—and Observers—objects interested in receiving notification of changes in the Subject. When a subject's state changes, it sends itself Notify(), whose implementation knows the list of observers and sends Update() to each of them. Some observers may not be interested in this state change, but those who are can find out what the new state is by sending GetState() to the subject. The subject must also implement Attach(Observer) and Detach(Observer) methods that the observers use to register interest.\n\nObserver provides two ways to get the new state from the subject to the observer: the push model and the pull model. With the *push model*, the Update call to each observer contains the new state as a parameter. Thus interested observers can avoid having to call GetState(), but effort is wasted passing data to uninterested observers. The opposite approach is the *pull model*, where the subject sends basic notification and each observer requests the new state from the subject. Thus each observer can request the exact details it wants, even none at all, but the subject often has to serve multiple requests for the same data. The push model requires a single, one-way communication—the Subject pushes the data to an Observer as part of the update. The pull model requires three one-way communications—the Subject notifies an Observer, the Observer requests the current state from the Subject, and the Subject sends the current state to the Observer. As we'll see, the number of one-way communications affects both the design-time complexity and the runtime performance of the notification.\n\nThe easiest way to implement a Subject's Notify() method is with a single thread, but that can have undesirable performance implications. A single thread will update each observer one-at-a-time, in sequence; so those at the end of a long list of observers may need to wait a long time for updates. And a subject spending a long time updating all of its observers isn't accomplishing anything else. Even worse, an observer may well use its update thread to recact to the update, querying the subject for state and processing the new data; such observer work in the update thread makes the update process take even longer.\n\nThus the more sophisticated way to implement a Subject's Notify() method is to run each Update() call in its own thread. Then all observers can be updated concurrently, and whatever work each may do in its update thread does not delay the other observers or the subject. The downside is that implementing multithreading and handling thread-management issues is more complex.\n\n## Distributed Observer\n\nThe Observer pattern tends to assume that the Subject and its Observers all run in the same application. The pattern's design supports distribution, where the Observers run in a seperate memory space from the Subject and perhaps from each other, but the distribution takes work. The Update() and GetState() methods, as well as the Attach and Detach methods, must be made remotely accessible (see [*Remote Procedure Invocation*](EncapsulatedSynchronousIntegration.html)). Because the Subject must be able to call each Observer and vise versa, each object must be running in some type of ORB environment that allows the objects it contains to be invoked remotely. And because the update details and state data will be passed between memory spaces, the applications must be able to serialize (e.g., marshall) the objects they are passing.\n\nThus implementing Observer in a distributed environment can get rather complex. Not only is a multi-threaded Observer somewhat difficult to implement, but then making methods remotely accessible—and invoking them remotely—adds more difficulty. The can be a lot of work just to notify some dependents of state changes.\n\nAnother problem is that a [*Remote Procedure Invocation*](EncapsulatedSynchronousIntegration.html) only works when the source of the call, the target, and the network connecting them are all working properly. If a Subject announces a change and a remote Observer is not ready to process the notification or is disconnected from the network, the Observer looses the notification. While the Observer may work fine without the notification in some cases, in other cases the lost notification may cause the Observer to become out of sync with the Subject—the whole problem the Observer pattern is designed to prevent.\n\nDistribution also favors the push model over the pull model. As discussed earlier, push requires a single one-way communication whereas pull requires three. When the distribution is implemented via RPC's (remote procedure calls), push requires one call (Update()) whereas pull requires at least two calls (Update() and GetState()). RPC's have more overhead than non-distributed method invocations, so the extra calls required by the push approach can quickly hurt performance.\n\n## Publish-Subscribe\n\nA [*Publish-Subscribe Channel*](PublishSubscribeChannel.html) implements the Observer pattern, making the pattern much easier to use amongst distributed applications. The pattern is implemented in three steps:\n\n1. The messaging system administrator creates a [*Publish-Subscribe Channel*](PublishSubscribeChannel.html) . (This will be represented in Java applications as a JMS Topic .)\n2. The application acting as the Subject creates a TopicPublisher (a type of MessageProducer ) to send messages on the channel.\n3. Each of the applications acting as an Observer (e.g., a dependent) creates a TopicSubscriber (a type of MessageConsumer ) to receive messages on the channel. (This is analogous to calling the Attach(Observer) method in the Observer pattern.)\n\nThis establishes a connection between the subject and the observers through the channel. Now, whenever the subject has a change to announce, it does so by sending a message. The channel will ensure that each of the observers receives a copy of this message.\n\nHere is a simple example of the code needed to announce the change:\n\n```\nimport javax.jms.Connection;\nimport javax.jms.ConnectionFactory;\nimport javax.jms.Destination;\nimport javax.jms.JMSException;\nimport javax.jms.MessageProducer;\nimport javax.jms.Session;\nimport javax.jms.TextMessage;\nimport javax.naming.NamingException;\n\npublic class SubjectGateway {\n\n\tpublic static final String UPDATE_TOPIC_NAME = \"jms/Update\";\n\tprivate Connection connection;\n\tprivate Session session;\n\tprivate MessageProducer updateProducer;\n\n\tprotected SubjectGateway() {\n\t\tsuper();\n\t}\n\n\tpublic static SubjectGateway newGateway() throws JMSException, NamingException {\n\t\tSubjectGateway gateway = new SubjectGateway();\n\t\tgateway.initialize();\n\t\treturn gateway;\n\t}\n\n\tprotected void initialize() throws JMSException, NamingException {\n\t\tConnectionFactory connectionFactory = JndiUtil.getQueueConnectionFactory();\n\t\tconnection = connectionFactory.createConnection();\n\t\tsession = connection.createSession(false, Session.AUTO_ACKNOWLEDGE);\n\t\tDestination updateTopic = JndiUtil.getDestination(UPDATE_TOPIC_NAME);\n\t\tupdateProducer = session.createProducer(updateTopic);\n\n\t\tconnection.start();\n\t}\n\n\tpublic void notify(String state) throws JMSException {\n\t\tTextMessage message = session.createTextMessage(state);\n\t\tupdateProducer.send(message);\n\t}\n\n\tpublic void release() throws JMSException {\n\t\tif (connection != null) {\n\t\t\tconnection.stop();\n\t\t\tconnection.close();\n\t\t}\n\t}\n}\n```\n\nSubjectGateway is a [*Messaging Gateway*](MessagingGateway.html) between the Subject (not shown) and the messaging system. The subject creates the gateway and then uses it to broadcast notifications. Essentially, the subject's Notify() method is implemented to call SubjectGateway.notify(String). The gateway then announces the change by sending a message on the update channel.\n\nAnd here is an example of the code needed to receive the change notification:\n\n```\nimport javax.jms.Connection;\nimport javax.jms.ConnectionFactory;\nimport javax.jms.Destination;\nimport javax.jms.JMSException;\nimport javax.jms.Message;\nimport javax.jms.MessageConsumer;\nimport javax.jms.MessageListener;\nimport javax.jms.Session;\nimport javax.jms.TextMessage;\nimport javax.naming.NamingException;\n\npublic class ObserverGateway implements MessageListener {\n\n\tpublic static final String UPDATE_TOPIC_NAME = \"jms/Update\";\n\tprivate Observer observer;\n\tprivate Connection connection;\n\tprivate MessageConsumer updateConsumer;\n\n\tprotected ObserverGateway() {\n\t\tsuper();\n\t}\n\n\tpublic static ObserverGateway newGateway(Observer observer)\n\t\tthrows JMSException, NamingException {\n\t\tObserverGateway gateway = new ObserverGateway();\n\t\tgateway.initialize(observer);\n\t\treturn gateway;\n\t}\n\n\tprotected void initialize(Observer observer) throws JMSException, NamingException {\n\t\tthis.observer = observer;\n\n\t\tConnectionFactory connectionFactory = JndiUtil.getQueueConnectionFactory();\n\t\tconnection = connectionFactory.createConnection();\n\t\tSession session = connection.createSession(false, Session.AUTO_ACKNOWLEDGE);\n\t\tDestination updateTopic = JndiUtil.getDestination(UPDATE_TOPIC_NAME);\n\t\tupdateConsumer = session.createConsumer(updateTopic);\n\t\tupdateConsumer.setMessageListener(this);\n\t}\n\n\tpublic void onMessage(Message message) {\n\t\ttry {\n\t\t\tTextMessage textMsg = (TextMessage) message; // assume cast always works\n\t\t\tString newState = textMsg.getText();\n\t\t\tupdate(newState);\n\t\t} catch (JMSException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}\n\n\tpublic void attach() throws JMSException {\n\t\tconnection.start();\n\t}\n\n\tpublic void detach() throws JMSException {\n\t\tif (connection != null) {\n\t\t\tconnection.stop();\n\t\t\tconnection.close();\n\t\t}\n\t}\n\n\tprivate void update(String newState) throws JMSException {\n\t\tobserver.update(newState);\n\t}\n}\n```\n\nObserverGateway is another [*Messaging Gateway*](MessagingGateway.html), this time between the Observer (not shown) and the messaging system. The observer creates the gateway, then uses attach() to start the Connection (which is analogous to calling the Attach(Observer) method in the Observer pattern). The gateway is an [*Event-Driven Consumer*](EventDrivenConsumer.html), so it implements the MessageListener interface, which requires the onMessage method. In this way, when an update is received, the gateway processes the message to get the new state, and calls is own update(String) method which calls the corresponding message in the observer.\n\nThese two classes implement the push model version of Observer. With the notification message sent by SubjectGateway.notify(String), the existance of the message tells the Observer that a change has occurred, but it is the contents of the message that tell the Observer what the Subject's new state is. The new state is being pushed from the Subject to the Observer. As we'll see later, there's another way to implement all this using the pull model.\n\n## Comparisons\n\nFor distributed notification between applications, the Publish-Subscribe (e.g., messaging) approach has several advantages over the traditional, synchronous (e.g., RPC) approach of implementing Observer:\n\n- **Simplifies Notification** — The Subject's implementation of Notify() becomes incredibly simple; the code just has to send a message on a channel. Likewise, Observer.Update() just has to receive a message.\n- **Simplifies Attach/Detach** — Rather than attach to and detach from the Subject, an Observer needs to subscribe to and unsubscribe from the channel. The Subject does not need to implement Attach(Observer) or Detach(Observer) (although the Observer may implement these methods to encapsulate the subscribe and unsubscribe behavior).\n- **Simplifies Concurrent Threading** — The Subject only needs one thread to update all Observers concurrently—the channel delivers the notification message to the Observers concurrently—and each Observer handles the update in its own thread. This simplifies the Subject's implementation, and because each Observer uses its own thread, what one does in its update thread does not affect the others.\n- **Simplifies Remote Access** — Niether the Subject nor the Observers have to implement any remote methods, nor do they need to run in an ORB. They just need to access the messaging system and it handles the distribution.\n- **Increases Reliability** — Because the channel uses messaging, notifications will be queued until the Observer can process them, which also enables the Observer to throttle the notifications. If an Observer wants to receive notifications that are sent while that Observer is disconnected, it should make itself a [*Durable Subscriber*](DurableSubscription.html) .\n\nOne issue that the Publish-Subscribe approach does not change is **serialization**. Whether Observer is implemented through RPC or messaging, state data is being distributed from the Subject's memory space to each Observer's memory space, so the data has to be serialized (e.g., marshalled). This behavior has to be implemented for either approach.\n\nIf the Publish-Subscribe approach has a downside, it's that the approach requires **messaging**, which means that the Subject and Observer applications must have access to a shared messaging system and must be implemented as clients of that messaging system. Still, making applications into messaging clients is no more difficult, and probably easier, than using the RPC approach.\n\n## Push and Pull Models\n\nAnother potential downside of the Publish-Subscribe approach is that the pull model is more complex than the push model. As discussed earlier, the pull model requires more discussion back and forth than the push model. When the discussion is amongst distributed applications, the extra communication can significantly hurt performance.\n\nThe communication is more complex with messaging than with RPC. In both cases, Update() is a one-way communication, either an RPC that returns void or a single [*Event Message*](EventMessage.html) from the Subject to the Observer. The tricker part is when an Observer needs to query the Subject's state; GetState() is a two-way communication, either a single RPC that requests the state and returns it, or a [*Request-Reply*](RequestReply.html)—a pair of messages where a [*Command Message*](CommandMessage.html) requests the state and a separate [*Document Message*](DocumentMessage.html) returns it.\n\nWhat makes [*Request-Reply*](RequestReply.html) more difficult is not just that it requires a pair of messages, but that it requires a pair of channels to transmit those messages. One channel, the get-state-request channel, goes from an Observer to the Subject; an Observer sends the state request on that channel. The other channel, the get-state-reply channel, goes from the Subject back to the Observer; the Subject sends the state reply on that channel. All of the Observers can share the same request channel, but they will probably each need their own reply channel. Each Observer needs to receive not just any response, but the particular response for its specific request, and the easiest way to ensure this is for each Observer to have its own reply channel. (An alternative is to use a single reply channel and use [*Correlation Identifier*](CorrelationIdentifier.html)s to figure out which reply goes to which observer, but a separate channel per observer is a lot easier to implement.)\n\n*Publish/Subscribe using the Pull Model*\n\nA reply channel for each Observer can lead to an explosion of channels. Such a large number of channels may be managable, but the messaging system administrator does not know how many static channels to create when the number of Observers needing to use these channels changes dynamicly at runtime. Even if there are enough channels for all of the Observers, how does each Observer know which channel to use?\n\nJMS has a feature, TemporaryQueue, specifically for this purpose. [[Hapner, p.60](http://www.amazon.com/exec/obidos/ASIN/0201784726/enterpriseint-20)] (Also see the discussion in [*Request-Reply*](RequestReply.html).) An Observer can create a temporary queue, just for its own use, specify that as the [*Return Address*](ReturnAddress.html) in its request, and wait for the reply on that queue. Creating new queues frequently can be inefficient, depending on your messaging system's implementation, and temporary queues cannot be persistent (for use with [*Guaranteed Delivery*](GuaranteedMessaging.html)). However, if you don't want to use the push model, you can implement the pull model using temporary queues.\n\nThese two classes show how to implement the gateways using the pull model.\n\n```\nimport javax.jms.Connection;\nimport javax.jms.ConnectionFactory;\nimport javax.jms.Destination;\nimport javax.jms.JMSException;\nimport javax.jms.Message;\nimport javax.jms.MessageConsumer;\nimport javax.jms.MessageListener;\nimport javax.jms.MessageProducer;\nimport javax.jms.Session;\nimport javax.jms.TextMessage;\nimport javax.naming.NamingException;\n\npublic class PullSubjectGateway {\n\n\tpublic static final String UPDATE_TOPIC_NAME = \"jms/Update\";\n\tprivate PullSubject subject;\n\tprivate Connection connection;\n\tprivate Session session;\n\tprivate MessageProducer updateProducer;\n\n\tprotected PullSubjectGateway() {\n\t\tsuper();\n\t}\n\n\tpublic static PullSubjectGateway newGateway(PullSubject subject)\n\t\tthrows JMSException, NamingException {\n\t\tPullSubjectGateway gateway = new PullSubjectGateway();\n\t\tgateway.initialize(subject);\n\t\treturn gateway;\n\t}\n\n\tprotected void initialize(PullSubject subject) throws JMSException, NamingException {\n\t\tthis.subject = subject;\n\n\t\tConnectionFactory connectionFactory = JndiUtil.getQueueConnectionFactory();\n\t\tconnection = connectionFactory.createConnection();\n\t\tsession = connection.createSession(false, Session.AUTO_ACKNOWLEDGE);\n\t\tDestination updateTopic = JndiUtil.getDestination(UPDATE_TOPIC_NAME);\n\t\tupdateProducer = session.createProducer(updateTopic);\n\n\t\tnew Thread(new GetStateReplier()).start();\n\n\t\tconnection.start();\n\t}\n\n\tpublic void notifyNoState() throws JMSException {\n\t\tTextMessage message = session.createTextMessage();\n\t\tupdateProducer.send(message);\n\t}\n\n\tpublic void release() throws JMSException {\n\t\tif (connection != null) {\n\t\t\tconnection.stop();\n\t\t\tconnection.close();\n\t\t}\n\t}\n\n\tprivate class GetStateReplier implements Runnable, MessageListener {\n\n\t\tpublic static final String GET_STATE_QUEUE_NAME = \"jms/GetState\";\n\t\tprivate Session session;\n\t\tprivate MessageConsumer requestConsumer;\n\n\t\tpublic void run() {\n\t\t\ttry {\n\t\t\t\tsession = connection.createSession(false, Session.AUTO_ACKNOWLEDGE);\n\t\t\t\tDestination getStateQueue = JndiUtil.getDestination(GET_STATE_QUEUE_NAME);\n\t\t\t\trequestConsumer = session.createConsumer(getStateQueue);\n\t\t\t\trequestConsumer.setMessageListener(this);\n\t\t\t} catch (Exception e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\n\t\tpublic void onMessage(Message message) {\n\t\t\ttry {\n\t\t\t\tDestination replyQueue = message.getJMSReplyTo();\n\t\t\t\tMessageProducer replyProducer = session.createProducer(replyQueue);\n\n\t\t\t\tMessage replyMessage = session.createTextMessage(subject.getState());\n\t\t\t\treplyProducer.send(replyMessage);\n\t\t\t} catch (JMSException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t}\n}\n```\n\nPullSubjectGateway is very similar to SubjectGateway. The pull version now has a reference to its subject so that the gateway can query the subject for its state when requested by an observer. notify(String) has now become notifyNoState(), because the pull model simply sends out notification without including any state (and because Java already uses the method name notify()).\n\nThe big addition for the pull model is GetStateReplier, an inner class that implements Runnable so that it can run in its own thread. It is also a MessageListener, which makes it an [*Event-Driven Consumer*](EventDrivenConsumer.html). Its onMessage method reads requests from the GetState queue and sends replies containing the subject's state to the queue specified by the request. In this way, when an observer makes a GetState() request, the gateway sends a reply (see [*Request-Reply*](RequestReply.html)).\n\n```\nimport javax.jms.Destination;\nimport javax.jms.JMSException;\nimport javax.jms.Message;\nimport javax.jms.MessageConsumer;\nimport javax.jms.MessageListener;\nimport javax.jms.Queue;\nimport javax.jms.QueueConnection;\nimport javax.jms.QueueConnectionFactory;\nimport javax.jms.QueueRequestor;\nimport javax.jms.QueueSession;\nimport javax.jms.Session;\nimport javax.jms.TextMessage;\nimport javax.naming.NamingException;\n\npublic class PullObserverGateway implements MessageListener {\n\n\tpublic static final String UPDATE_TOPIC_NAME = \"jms/Update\";\n\tpublic static final String GET_STATE_QUEUE_NAME = \"jms/GetState\";\n\tprivate PullObserver observer;\n\tprivate QueueConnection connection;\n\tprivate QueueSession session;\n\tprivate MessageConsumer updateConsumer;\n\tprivate QueueRequestor getStateRequestor;\n\n\tprotected PullObserverGateway() {\n\t\tsuper();\n\t}\n\n\tpublic static PullObserverGateway newGateway(PullObserver observer)\n\t\tthrows JMSException, NamingException {\n\t\tPullObserverGateway gateway = new PullObserverGateway();\n\t\tgateway.initialize(observer);\n\t\treturn gateway;\n\t}\n\n\tprotected void initialize(PullObserver observer) throws JMSException, NamingException {\n\t\tthis.observer = observer;\n\n\t\tQueueConnectionFactory connectionFactory = JndiUtil.getQueueConnectionFactory();\n\t\tconnection = connectionFactory.createQueueConnection();\n\t\tsession = connection.createQueueSession(false, Session.AUTO_ACKNOWLEDGE);\n\t\tDestination updateTopic = JndiUtil.getDestination(UPDATE_TOPIC_NAME);\n\t\tupdateConsumer = session.createConsumer(updateTopic);\n\t\tupdateConsumer.setMessageListener(this);\n\n\t\tQueue getStateQueue = (Queue) JndiUtil.getDestination(GET_STATE_QUEUE_NAME);\n\t\tgetStateRequestor = new QueueRequestor(session, getStateQueue);\n\t\t\n\t}\n\n\tpublic void onMessage(Message message) {\n\t\ttry {\n\t\t\t// message's contents are empty\n\t\t\tupdateNoState();\n\t\t} catch (JMSException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}\n\n\tpublic void attach() throws JMSException {\n\t\tconnection.start();\n\t}\n\n\tpublic void detach() throws JMSException {\n\t\tif (connection != null) {\n\t\t\tconnection.stop();\n\t\t\tconnection.close();\n\t\t}\n\t}\n\n\tprivate void updateNoState() throws JMSException {\n\t\tTextMessage getStateRequestMessage = session.createTextMessage();\n\t\tMessage getStateReplyMessage = getStateRequestor.request(getStateRequestMessage);\n\t\tTextMessage textMsg = (TextMessage) getStateReplyMessage; // assume cast always works\n\t\tString newState = textMsg.getText();\n\t\tobserver.update(newState);\n\t}\n}\n```\n\nAgain, PullObserverGateway is similar to ObserverGateway, but with some more code to implement the pull model. In initialize, it not only sets up updateConsumer to listen for updates, but also sets up getStateRequestor to send GetState() requests. (getStateRequestor is a QueueRequestor; see [*Request-Reply*](RequestReply.html).) In the pull version, the gateway's onMessage code ignores the message's contents because the message is empty. The message's existance tells the observer that the subject has changed, but does not tell the observer what the subject's new state is. So all there is to do is call updateNoState() (named similarly to notifyNoState()).\n\nThe difference for the Observer between the push and pull models becomes apparent in the implementation of updateNoState() vs. update(String). Whereas the push version gets the new state as a parameter and just has to update the observer, the pull version must go get the new state before it can update the observer. To get the new state, it uses the getStateRequestor to send a request and get the reply. The reply contains the subject's new state, which the gateway uses to update the observer. (Note that in this simple implementation, the gateway is single-threaded, so while it is sending the get-state request and waiting for the reply, it is not processing any more updates. Thus if the request or reply messages take a really long time to transmit, the gateway will be stuck waiting and any more updates that occur will simply queue up.)\n\nSo as you can see, the pull model is more complex than the push model. It requires more channels (including a temporary one for every observer), it requires more messages (three messages per update per interested observer instead of one message for all observers), the subject and observer classes require more code to manage the additional messaging, and the objects at runtime require more threads to execute the additional messaging. If all of this is acceptable in your application, then the pull model is a viable approach. However, if in doubt, you should probably start with the push model because it is simpler.\n\n## Channel Design\n\nSo far, we've considered one Subject with one piece of state notifying its Observers. Using the push model, this requires one [*Publish-Subscribe Channel*](PublishSubscribeChannel.html) for communicating changes in the Subject's state to the Observers.\n\nReal enterprise applications are much more complex. An application can contain lots of Subjects that need to announce changes. Each Subject often contains several different pieces of state, called *aspects*, that can change independently. A single Observer might be interested in several different aspects in several different Subjects, where the Subjects are not only multiple instances of the same class, but may well be instances of different classes.\n\nSo update semantics in sophsticated applications can quickly become complex. The Observer pattern address this as implementation issues like \"Observing more than one subject\" and \"Specifying modifications of interest explicitly.\" Also, the SASE (Self-Addresses Stamped Envelope) pattern describes a combination of the Observer and Command patterns whereby an observer specifies the command a subject should send it when a certain change occurs. [[Alpert, pp.312-314](http://www.amazon.com/exec/obidos/ASIN/0201184621/enterpriseint-20)]\n\nWithout getting too deep into the issues of making sure observers only receive the updates they need, let's consider the implications for messaging, namely: How many channels will we need?\n\nLet's first consider a simple case. An enterprise may have several different applications responsible for storing a customer's contact information, such as a mailing address. When a customer's address is updated in one of these applications, the application should notify other applications that may need this new information as well. Meanwhile, there may be several applications that need to know when an address changes, so they would like to register to receive notification.\n\nThis is a simple problem to solve. All that is needed is a single [*Publish-Subscribe Channel*](PublishSubscribeChannel.html) for announcing address changes. Each application that can change an address then also has the responsibility to announce that change by publishing a message on the channel. Each application that wishes to receive notification subscribes to the channel. A particular change message might look like this:\n\n```\n\n\t\n\t\t123 Wall Street\n\t\tNew York\n\t\tNY\n\t\t10005\n\t\n\t\n\t\t321 Sunset Blvd\n\t\tLos Angeles\n\t\tCA\n\t\t90012\n\t\n\n```\n\nNow let's consider another problem. The enterprise may also have applications that need to announce when they are out of a product, and others that need to receive these notifications so that they can reorder the product. This is just a different example of the last problem, and is solved the same way by using a [*Publish-Subscribe Channel*](PublishSubscribeChannel.html) to make out-of-product announcements. One of these messages might look like this:\n\n```\n\n\t12345\n\t67890\n\t100\n\n```\n\nBut this leads us to wonder: Can we use the same channel for customer address changes and for out-of-product announcements? Probably not. First, [*Datatype Channel*](DatatypeChannel.html) tells us that all of the messages on a channel must be of the same type, which in this case means that they must all conform to the same XML schema. is obviously a very different element type from , so they should not be sent on the same channel. Perhaps the data formats could be reworked so that both message types fit the same schema and receivers could tell which messages were for addresses and which were for products. But then the problem is that the applications interested in address changes are probablty not the same ones interested in product updates, so if the messages use the same channel, an application will frequently receive notifications it's not interested in. Thus is makes sense to have two separate address change and product update channels.\n\nNow consider a third case where a customer's credit rating could change. The message might look like this:\n\n```\n\n\tAAA\n\tBBB\n\n```\n\nLike the case with product notifications, it might be tempting to solve the problem with a new credit-rating-changed channel (in addition to the address-changed and out-of-product channels). This would keep the credit rating changes separate from the address changes, and would allow dependents to only register for the type of changes they're interested in.\n\nThe problem with this approach is that it can lead to a channel explosion. Consider all the pieces of data that may be known about a customer: name; contacts (address, phone number, e-mail) for mailing, shipping, and billing; credit rating; service level; standard discount; etc. Each time any one of these aspects changes, other applications may need to know about it. Creating a channel for each can lead to lots of channels.\n\nLarge numbers of channels may tax the messaging system. Numerous channels with little traffic on each can waste resources and make load difficult to distribute. Or, numerous channels with lots of little messages can add to messaging overhead. Dependents can become confused as to which of a large number of channels to subscribe to. Multiple channels require multiple senders and receivers, perhaps leading to lots of threads checking lots of channels that are usually empty. So creating yet more channels may not be such a good idea.\n\nWhat may work better is to send both the address-changed and credit-rating-changed messages on the same channel, since they both concern changes to the customer and an application interested in one kind of change may be interested in the others as well. Yet a separate out-of-product channel is still a good idea since applications interested in customers may not be interested in products and vise versa.\n\nThe address-changed and credit-rating-changed messages have different formats, yet [*Datatype Channel*](DatatypeChannel.html) tells us that to be on the same channel, the messages must have the same format. With XML, this means that all of the messages must have the same root element type, but perhaps can have different optional nested elements. So unified customer-changed messages might look like this:\n\n```\n\n\t\n\t\t\n\t\t\t123 Wall Street\n\t\t\tNew York\n\t\t\tNY\n\t\t\t10005\n\t\t\n\t\t\n\t\t\t321 Sunset Blvd\n\t\t\tLos Angeles\n\t\t\tCA\n\t\t\t90012\n\t\t\n\t\n\n```\n\n```\n\n\t\n\t\tAAA\n\t\tBBB\n\t\n\n```\n\nThere may still be the problem that shipping applications interested in address changes are not interested in credit rating changes, and billing applications are interested in the opposite. These applications can use [*Selective Consumer*](MessageSelector.html)s to get only the messages of interest. If selective consumers prove to be complicated and a messaging system can easily support more channels, then perhaps separate channels would be better after all.\n\nAs with may issues in enterprise architecture and design, there are no simple answers and lots of tradeoffs. With [*Publish-Subscribe Channel*](PublishSubscribeChannel.html) (as with any message channel), the goal is to help ensure that the observers only receive the notifications they need, without an explosion of separate channels and without taxing the typical observer with lots of threads running lots of consumers monitoring lots of channels.\n\n## Conclusions\n\nThis chapter shows that [*Publish-Subscribe Channel*](PublishSubscribeChannel.html)s are an implementation of the Observer pattern that make the pattern much easier to use in distributed environments. When a channel is used, Subject.Notify() and Observer.Update() become much simpler because all they have to do is send and receive messages. The messaging system takes care of distribution and concurrency while making the remote notification more reliable. The push model is simpler and often more efficient than the pull model, especially for distributed notification, especially with messaging; yet the pull model can also be implemented using messaging. In complex applications where lots of data can change, it may be tempting to create a channel for every different thing that can change, but it's often more practical to use the same channel to trasmit similar notifications going to the same observers. Even if your applications don't need messaging for anything else, if they need to notify each other of changes, it may well be worth using [*Messaging*](Messaging.html) just so you can take advantage of [*Publish-Subscribe Channel*](PublishSubscribeChannel.html)s.\n\n## Integration Pattern Language\n\n[Message Construct.](MessageConstructionIntro.html)\n\n[Message](Message.html)\n\n[Command Message](CommandMessage.html)\n\n[Document Message](DocumentMessage.html)\n\n[Event Message](EventMessage.html)\n\n[Request-Reply](RequestReply.html)\n\n[Return Address](ReturnAddress.html)\n\n[Correlation Identifier](CorrelationIdentifier.html)\n\n[Message Sequence](MessageSequence.html)\n\n[Message Expiration](MessageExpiration.html)\n\n[Format Indicator](FormatIndicator.html)\n\n[Message Routing](MessageRoutingIntro.html)\n\n[Pipes-and-Filters](PipesAndFilters.html)\n\n[Message Router](MessageRouter.html)\n\n[Content-based Router](ContentBasedRouter.html)\n\n[Message Filter](Filter.html)\n\n[Dynamic Router](DynamicRouter.html)\n\n[Recipient List](RecipientList.html)\n\n[Splitter](Sequencer.html)\n\n[Aggregator](Aggregator.html)\n\n[Resequencer](Resequencer.html)\n\n[Composed Msg. Processor](DistributionAggregate.html)\n\n[Scatter-Gather](BroadcastAggregate.html)\n\n[Routing Slip](RoutingTable.html)\n\n[Process Manager](ProcessManager.html)\n\n[Message Broker](MessageBroker.html)\n\n[Message\nTransformation](MessageTransformationIntro.html)\n\n[Message Translator](MessageTranslator.html)\n\n[Envelope Wrapper](EnvelopeWrapper.html)\n\n[Content Enricher](DataEnricher.html)\n\n[Content Filter](ContentFilter.html)\n\n[Claim Check](StoreInLibrary.html)\n\n[Normalizer](Normalizer.html)\n\n[Canonical Data Model](CanonicalDataModel.html)\n\n[Messaging Endpoints](MessagingEndpointsIntro.html)\n\n[Message Endpoint](MessageEndpoint.html)\n\n[Messaging Gateway](MessagingGateway.html)\n\n[Messaging Mapper](MessagingMapper.html)\n\n[Transactional Client](TransactionalClient.html)\n\n[Polling Consumer](PollingConsumer.html)\n\n[Event-driven Consumer](EventDrivenConsumer.html)\n\n[Competing Consumers](CompetingConsumers.html)\n\n[Message Dispatcher](MessageDispatcher.html)\n\n[Selective Consumer](MessageSelector.html)\n\n[Durable Subscriber](DurableSubscription.html)\n\n[Idempotent Receiver](IdempotentReceiver.html)\n\n[Service Activator](MessagingAdapter.html)\n\n[Messaging Channels](MessagingChannelsIntro.html)\n\n[Message Channel](MessageChannel.html)\n\n[Point-to-Point Channel](PointToPointChannel.html)\n\n[Publish-Subscr. Channel](PublishSubscribeChannel.html)\n\n[Datatype Channel](DatatypeChannel.html)\n\n[Invalid Message Channel](InvalidMessageChannel.html)\n\n[Dead Letter Channel](DeadLetterChannel.html)\n\n[Guaranteed Delivery](GuaranteedMessaging.html)\n\n[Channel Adapter](ChannelAdapter.html)\n\n[Messaging Bridge](MessagingBridge.html)\n\n[Message Bus](MessageBus.html)\n\n[Systems Mgmt.](SystemManagementIntro.html)\n\n[Control Bus](ControlBus.html)\n\n[Detour](Detour.html)\n\n[Wire Tap](WireTap.html)\n\n[Message History](MessageHistory.html)\n\n[Message Store](MessageStore.html)\n\n[Smart Proxy](SmartProxy.html)\n\n[Test Message](TestMessage.html)\n\n[Channel Purger](ChannelPurger.html)", "znaku_textu": 37477, "slov": 4883, "odkazu": 110, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 14:55:30", "sha256": "7e29b1696ebe42055cf41bf8fa9e7dc59d6a999c407a7b3efd9804ca5bdc578e", "hloubka": 3, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://www.amazon.com/exec/obidos/ASIN/0201633612/enterpriseint-20", "http://www.amazon.com/exec/obidos/ASIN/0201784726/enterpriseint-20", "http://www.amazon.com/exec/obidos/ASIN/0201184621/enterpriseint-20", "https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "https://www.architectelevator.com/book", "https://www.cloudstrategybook.com/", "https://www.platformstrategybook.info/"]} {"url": "http://www.enterpriseintegrationpatterns.com/patterns/messaging/PipesAndFilters.html", "titulek": "Pipes and Filters - Enterprise Integration Patterns", "h1": "", "popis": "How can we perform complex processing on a message while maintaining independence and flexibility?", "klicova_slova": "Pipes and Filters,integration, messaging, events, patterns, event-driven, coupling, eai, middleware, application integration, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns", "og:title": "Pipes and Filters - Enterprise Integration Patterns", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/PipesAndFilters.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/PipesAndFilters.gif"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Integration Pattern Language"}], "markdown": "| | Pipes and Filters[Messaging Patterns](index.html) » [Messaging Systems](MessagingComponentsIntro.html) | [Contents](toc.html)[⇐ Prev](Message.html)[Next ⇒](MessageRouter.html) |\n| --- | --- | --- |\n\nIn many enterprise integration scenarios, a single event triggers a sequence of processing steps, each performing a specific function. For example, let's assume a new order arrives in our enterprise in the form of a message. One requirement may be that the message is encrypted to prevent eavesdroppers from spying on a customer's order. A second requirement is that the messages contain authentication information in the form of a digital certificate to ensure that orders are placed only by trusted customers. In addition, duplicate messages could be sent from external parties (remember all the warnings on the popular shopping sites to click the 'Order Now' button only once?). To avoid duplicate shipments and unhappy customers, we need to eliminate duplicate messages before subsequent order processing steps are initiated. To meet these requirements, we need to transform a stream of possibly duplicated, encrypted messages containing extra authentication data into a stream of unique, simple plain-text order messages without the extraneous data fields.\n\nHow can we perform complex processing on a message while maintaining independence and flexibility?\n\nUse the *Pipes and Filters* architectural style to divide a larger processing task into a sequence of smaller, independent processing steps (Filters) that are connected by channels (Pipes).\n\nEach filter exposes a very simple interface: it receives messages on the inbound pipe, processes the message, and publishes the results to the outbound pipe. The pipe connects one filter to the next, sending output messages from one filter to the next. Because all component use the same external interface they can be *composed* into different solutions by connecting the components to different pipes. We can add new filters, omit existing ones or rearrange them into a new sequence -- all without having to change the filters themselves. The connection between filter and pipe is sometimes called *port*. In the basic form, each filter component has one input port and one output port.\n\n...\nRead the entire pattern in the book [Enterprise Integration Patterns](/books1.html)\n\n**Related patterns:**\n\n[*Competing Consumers*](CompetingConsumers.html), [*Content Filter*](ContentFilter.html), [*Event-Driven Consumer*](EventDrivenConsumer.html), [*Message Filter*](Filter.html), [*Message Channel*](MessageChannel.html), [*Message Router*](MessageRouter.html), [*Messaging*](Messaging.html), [*Messaging Gateway*](MessagingGateway.html), [*Point-to-Point Channel*](PointToPointChannel.html), [*Resequencer*](Resequencer.html), [*Test Message*](TestMessage.html), [*Transactional Client*](TransactionalClient.html)\n\n---\n\n## Integration Pattern Language\n\n[Message Construct.](MessageConstructionIntro.html)\n\n[Message](Message.html)\n\n[Command Message](CommandMessage.html)\n\n[Document Message](DocumentMessage.html)\n\n[Event Message](EventMessage.html)\n\n[Request-Reply](RequestReply.html)\n\n[Return Address](ReturnAddress.html)\n\n[Correlation Identifier](CorrelationIdentifier.html)\n\n[Message Sequence](MessageSequence.html)\n\n[Message Expiration](MessageExpiration.html)\n\n[Format Indicator](FormatIndicator.html)\n\n[Message Routing](MessageRoutingIntro.html)\n\n[Pipes-and-Filters](PipesAndFilters.html)\n\n[Message Router](MessageRouter.html)\n\n[Content-based Router](ContentBasedRouter.html)\n\n[Message Filter](Filter.html)\n\n[Dynamic Router](DynamicRouter.html)\n\n[Recipient List](RecipientList.html)\n\n[Splitter](Sequencer.html)\n\n[Aggregator](Aggregator.html)\n\n[Resequencer](Resequencer.html)\n\n[Composed Msg. Processor](DistributionAggregate.html)\n\n[Scatter-Gather](BroadcastAggregate.html)\n\n[Routing Slip](RoutingTable.html)\n\n[Process Manager](ProcessManager.html)\n\n[Message Broker](MessageBroker.html)\n\n[Message\nTransformation](MessageTransformationIntro.html)\n\n[Message Translator](MessageTranslator.html)\n\n[Envelope Wrapper](EnvelopeWrapper.html)\n\n[Content Enricher](DataEnricher.html)\n\n[Content Filter](ContentFilter.html)\n\n[Claim Check](StoreInLibrary.html)\n\n[Normalizer](Normalizer.html)\n\n[Canonical Data Model](CanonicalDataModel.html)\n\n[Messaging Endpoints](MessagingEndpointsIntro.html)\n\n[Message Endpoint](MessageEndpoint.html)\n\n[Messaging Gateway](MessagingGateway.html)\n\n[Messaging Mapper](MessagingMapper.html)\n\n[Transactional Client](TransactionalClient.html)\n\n[Polling Consumer](PollingConsumer.html)\n\n[Event-driven Consumer](EventDrivenConsumer.html)\n\n[Competing Consumers](CompetingConsumers.html)\n\n[Message Dispatcher](MessageDispatcher.html)\n\n[Selective Consumer](MessageSelector.html)\n\n[Durable Subscriber](DurableSubscription.html)\n\n[Idempotent Receiver](IdempotentReceiver.html)\n\n[Service Activator](MessagingAdapter.html)\n\n[Messaging Channels](MessagingChannelsIntro.html)\n\n[Message Channel](MessageChannel.html)\n\n[Point-to-Point Channel](PointToPointChannel.html)\n\n[Publish-Subscr. Channel](PublishSubscribeChannel.html)\n\n[Datatype Channel](DatatypeChannel.html)\n\n[Invalid Message Channel](InvalidMessageChannel.html)\n\n[Dead Letter Channel](DeadLetterChannel.html)\n\n[Guaranteed Delivery](GuaranteedMessaging.html)\n\n[Channel Adapter](ChannelAdapter.html)\n\n[Messaging Bridge](MessagingBridge.html)\n\n[Message Bus](MessageBus.html)\n\n[Systems Mgmt.](SystemManagementIntro.html)\n\n[Control Bus](ControlBus.html)\n\n[Detour](Detour.html)\n\n[Wire Tap](WireTap.html)\n\n[Message History](MessageHistory.html)\n\n[Message Store](MessageStore.html)\n\n[Smart Proxy](SmartProxy.html)\n\n[Test Message](TestMessage.html)\n\n[Channel Purger](ChannelPurger.html)", "znaku_textu": 5586, "slov": 530, "odkazu": 108, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/PipesAndFilters.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 14:55:04", "sha256": "850988a7f88fc170ad5d90f5791040fff4bc4b42643ce851466db4b4f6fb1d90", "hloubka": 3, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://creativecommons.org/licenses/by/4.0/", "https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "https://www.architectelevator.com/book", "https://www.cloudstrategybook.com/", "https://www.platformstrategybook.info/"]} {"url": "http://www.enterpriseintegrationpatterns.com/patterns/messaging/PointToPointChannel.html", "titulek": "Point-to-Point Channel - Enterprise Integration Patterns", "h1": "", "popis": "How can the caller be sure that exactly one receiver will receive the document or perform the call?", "klicova_slova": "Point-to-Point Channel,integration, messaging, events, patterns, event-driven, coupling, eai, middleware, application integration, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns", "og:title": "Point-to-Point Channel - Enterprise Integration Patterns", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/PointToPointChannel.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/PointToPointSolution.gif"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Integration Pattern Language"}], "markdown": "Messaging Patterns\n\n[Messaging Patterns](index.html)\n\n- [Integration Styles](IntegrationStylesIntro.html)\n- [Messaging Systems](MessagingComponentsIntro.html)\n- [Messaging Channels](MessagingChannelsIntro.html)\n- [Message Construction](MessageConstructionIntro.html)\n- [Interlude: Simple Messaging](SimpleMessagingIntro.html)\n- [Message Routing](MessageRoutingIntro.html)\n- [Message Transformation](MessageTransformationIntro.html)\n- [Interlude: Composed Messaging](ComposedMessagingExample.html)\n- [Messaging Endpoints](MessagingEndpointsIntro.html)\n- [System Management](SystemManagementIntro.html)\n- Interlude: Systems Management Example\n- Integration Patterns in Practice\n- Concluding Remarks\n- Appendices\n\n| | Point-to-Point Channel[Messaging Patterns](index.html) » [Messaging Channels](MessagingChannelsIntro.html) | [Contents](toc.html)[⇐ Prev](MessagingChannelsIntro.html)[Next ⇒](PublishSubscribeChannel.html) |\n| --- | --- | --- |\n\nAn application is using [*Messaging*](Messaging.html) to make remote procedure calls (RPC’s) or transfer documents.\n\nHow can the caller be sure that exactly one receiver will receive the document or perform the call?\n\nSend the message on a *Point-to-Point Channel*, which ensures that only one receiver will receive a particular message.\n\nA *Point-to-Point Channel* ensures that only one receiver consumes any given message. If the channel has multiple receivers, only one of them can successfully consume a particular message. If multiple receivers try to consume a single message, the channel ensures that only one of them succeeds, so the receivers do not have to coordinate with each other. The channel can still have multiple receivers to consume multiple messages concurrently, but only a single receiver consumes any one message.\n\n...\nRead the entire pattern in the book [Enterprise Integration Patterns](/books1.html)\n\n**Related patterns:**\n\n[*Command Message*](CommandMessage.html), [*Competing Consumers*](CompetingConsumers.html), [*Document Message*](DocumentMessage.html), [*Message*](Message.html), [*Message Channel*](MessageChannel.html), [*Messaging*](Messaging.html), [*Publish-Subscribe Channel*](PublishSubscribeChannel.html), [*Request-Reply*](RequestReply.html)\n\n---\n\n## Integration Pattern Language\n\n[Message Construct.](MessageConstructionIntro.html)\n\n[Message](Message.html)\n\n[Command Message](CommandMessage.html)\n\n[Document Message](DocumentMessage.html)\n\n[Event Message](EventMessage.html)\n\n[Request-Reply](RequestReply.html)\n\n[Return Address](ReturnAddress.html)\n\n[Correlation Identifier](CorrelationIdentifier.html)\n\n[Message Sequence](MessageSequence.html)\n\n[Message Expiration](MessageExpiration.html)\n\n[Format Indicator](FormatIndicator.html)\n\n[Message Routing](MessageRoutingIntro.html)\n\n[Pipes-and-Filters](PipesAndFilters.html)\n\n[Message Router](MessageRouter.html)\n\n[Content-based Router](ContentBasedRouter.html)\n\n[Message Filter](Filter.html)\n\n[Dynamic Router](DynamicRouter.html)\n\n[Recipient List](RecipientList.html)\n\n[Splitter](Sequencer.html)\n\n[Aggregator](Aggregator.html)\n\n[Resequencer](Resequencer.html)\n\n[Composed Msg. Processor](DistributionAggregate.html)\n\n[Scatter-Gather](BroadcastAggregate.html)\n\n[Routing Slip](RoutingTable.html)\n\n[Process Manager](ProcessManager.html)\n\n[Message Broker](MessageBroker.html)\n\n[Message\nTransformation](MessageTransformationIntro.html)\n\n[Message Translator](MessageTranslator.html)\n\n[Envelope Wrapper](EnvelopeWrapper.html)\n\n[Content Enricher](DataEnricher.html)\n\n[Content Filter](ContentFilter.html)\n\n[Claim Check](StoreInLibrary.html)\n\n[Normalizer](Normalizer.html)\n\n[Canonical Data Model](CanonicalDataModel.html)\n\n[Messaging Endpoints](MessagingEndpointsIntro.html)\n\n[Message Endpoint](MessageEndpoint.html)\n\n[Messaging Gateway](MessagingGateway.html)\n\n[Messaging Mapper](MessagingMapper.html)\n\n[Transactional Client](TransactionalClient.html)\n\n[Polling Consumer](PollingConsumer.html)\n\n[Event-driven Consumer](EventDrivenConsumer.html)\n\n[Competing Consumers](CompetingConsumers.html)\n\n[Message Dispatcher](MessageDispatcher.html)\n\n[Selective Consumer](MessageSelector.html)\n\n[Durable Subscriber](DurableSubscription.html)\n\n[Idempotent Receiver](IdempotentReceiver.html)\n\n[Service Activator](MessagingAdapter.html)\n\n[Messaging Channels](MessagingChannelsIntro.html)\n\n[Message Channel](MessageChannel.html)\n\n[Point-to-Point Channel](PointToPointChannel.html)\n\n[Publish-Subscr. Channel](PublishSubscribeChannel.html)\n\n[Datatype Channel](DatatypeChannel.html)\n\n[Invalid Message Channel](InvalidMessageChannel.html)\n\n[Dead Letter Channel](DeadLetterChannel.html)\n\n[Guaranteed Delivery](GuaranteedMessaging.html)\n\n[Channel Adapter](ChannelAdapter.html)\n\n[Messaging Bridge](MessagingBridge.html)\n\n[Message Bus](MessageBus.html)\n\n[Systems Mgmt.](SystemManagementIntro.html)\n\n[Control Bus](ControlBus.html)\n\n[Detour](Detour.html)\n\n[Wire Tap](WireTap.html)\n\n[Message History](MessageHistory.html)\n\n[Message Store](MessageStore.html)\n\n[Smart Proxy](SmartProxy.html)\n\n[Test Message](TestMessage.html)\n\n[Channel Purger](ChannelPurger.html)\n\n- » [Read the latest in My Blog](/ramblings)\n- » [Get more insights from My Articles](/articles.html)\n- » [See me live in my Upcoming Talks](/talks)\n\nYou can reuse the following elements under the [Creative Commons Attribution](http://creativecommons.org/licenses/by/4.0/) license: pattern icon, pattern name, problem and solution statements (in bold), and the sketch. Other portions are protected by copyright.\n\n[Enterprise Integration Patterns](https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20)\nThe de-facto language for designing asynchronous, distributed systems. Over 100,000 copies sold.\n\n[The Software Architect Elevator](https://www.architectelevator.com/book)\n\n Rethink the role of architects as a connecting element across organizational layers. Acquire the technical, communication, and organizational skills to succeed in this new role.\n\n[Cloud Strategy](https://www.cloudstrategybook.com)\n\n Make your cloud migration a success by translating high-level goals into conscious decisions with well-understood trade-offs.\n\n[Platform Strategy](https://www.platformstrategybook.info)\n\n Platforms can boost innovation through harmonization, but they aren't easy to build. Learn from over a decade of designing and rolling out IT platforms.", "znaku_textu": 6181, "slov": 514, "odkazu": 108, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/PointToPointChannel.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 14:55:09", "sha256": "d49b1e29621d358d9132f88cf051f320778547c1136a5e97c5a9467dd9631291", "hloubka": 3, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://creativecommons.org/licenses/by/4.0/", "https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "https://www.architectelevator.com/book", "https://www.cloudstrategybook.com/", "https://www.platformstrategybook.info/"]} {"url": "http://www.enterpriseintegrationpatterns.com/patterns/messaging/PollingConsumer.html", "titulek": "Polling Consumer - Enterprise Integration Patterns", "h1": "", "popis": "How can an application consume a message when the application is ready?", "klicova_slova": "Polling Consumer,integration, messaging, events, patterns, event-driven, coupling, eai, middleware, application integration, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns", "og:title": "Polling Consumer - Enterprise Integration Patterns", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/PollingConsumer.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/PollingConsumerSolution.gif"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Integration Pattern Language"}], "markdown": "Messaging Patterns\n\n[Messaging Patterns](index.html)\n\n- [Integration Styles](IntegrationStylesIntro.html)\n- [Messaging Systems](MessagingComponentsIntro.html)\n- [Messaging Channels](MessagingChannelsIntro.html)\n- [Message Construction](MessageConstructionIntro.html)\n- [Interlude: Simple Messaging](SimpleMessagingIntro.html)\n- [Message Routing](MessageRoutingIntro.html)\n- [Message Transformation](MessageTransformationIntro.html)\n- [Interlude: Composed Messaging](ComposedMessagingExample.html)\n- [Messaging Endpoints](MessagingEndpointsIntro.html)\n- [System Management](SystemManagementIntro.html)\n- Interlude: Systems Management Example\n- Integration Patterns in Practice\n- Concluding Remarks\n- Appendices\n\n| | Polling Consumer[Messaging Patterns](index.html) » [Messaging Endpoints](MessagingEndpointsIntro.html) | [Contents](toc.html)[⇐ Prev](TransactionalClient.html)[Next ⇒](EventDrivenConsumer.html) |\n| --- | --- | --- |\n\nAn application needs to consume [*Message*](Message.html)s, but it wants to control when it consumes each message.\n\nHow can an application consume a message when the application is ready?\n\nThe application should use a *Polling Consumer*, one that explicitly makes a call when it wants to receive a message.\n\nThis is also known as a synchronous receiver, because the receiver thread blocks until a message is received. We call it a *Polling Consumer* because the receiver polls for a message, processes it, then polls for another. As a convenience, messaging API’s usually provide a receive method that blocks until a message is delivered, in addition to methods like receiveNoWait() and Receive(0) that return immediately if no message is available. This difference is only apparent when the receiver is polling faster than messages are arriving.\n\nA *Polling Consumer* is an object that an application uses to receive messages by explicitly requesting them. When the application is ready for another message, it polls the consumer, which in turn gets a message from the messaging system and returns it. (How the consumer gets the message from the messaging system is implementation-specific and may or may not involve polling. All the application knows is that it doesn’t get the message until it explicitly asks for one.)\n\n...\nRead the entire pattern in the book [Enterprise Integration Patterns](/books1.html)\n\n**Related patterns:**\n\n[*Competing Consumers*](CompetingConsumers.html), [*Durable Subscriber*](DurableSubscription.html), [*Event-Driven Consumer*](EventDrivenConsumer.html), [*Message*](Message.html), [*Message Dispatcher*](MessageDispatcher.html), [*Selective Consumer*](MessageSelector.html), [*Transactional Client*](TransactionalClient.html)\n\n---\n\n## Integration Pattern Language\n\n[Message Construct.](MessageConstructionIntro.html)\n\n[Message](Message.html)\n\n[Command Message](CommandMessage.html)\n\n[Document Message](DocumentMessage.html)\n\n[Event Message](EventMessage.html)\n\n[Request-Reply](RequestReply.html)\n\n[Return Address](ReturnAddress.html)\n\n[Correlation Identifier](CorrelationIdentifier.html)\n\n[Message Sequence](MessageSequence.html)\n\n[Message Expiration](MessageExpiration.html)\n\n[Format Indicator](FormatIndicator.html)\n\n[Message Routing](MessageRoutingIntro.html)\n\n[Pipes-and-Filters](PipesAndFilters.html)\n\n[Message Router](MessageRouter.html)\n\n[Content-based Router](ContentBasedRouter.html)\n\n[Message Filter](Filter.html)\n\n[Dynamic Router](DynamicRouter.html)\n\n[Recipient List](RecipientList.html)\n\n[Splitter](Sequencer.html)\n\n[Aggregator](Aggregator.html)\n\n[Resequencer](Resequencer.html)\n\n[Composed Msg. Processor](DistributionAggregate.html)\n\n[Scatter-Gather](BroadcastAggregate.html)\n\n[Routing Slip](RoutingTable.html)\n\n[Process Manager](ProcessManager.html)\n\n[Message Broker](MessageBroker.html)\n\n[Message\nTransformation](MessageTransformationIntro.html)\n\n[Message Translator](MessageTranslator.html)\n\n[Envelope Wrapper](EnvelopeWrapper.html)\n\n[Content Enricher](DataEnricher.html)\n\n[Content Filter](ContentFilter.html)\n\n[Claim Check](StoreInLibrary.html)\n\n[Normalizer](Normalizer.html)\n\n[Canonical Data Model](CanonicalDataModel.html)\n\n[Messaging Endpoints](MessagingEndpointsIntro.html)\n\n[Message Endpoint](MessageEndpoint.html)\n\n[Messaging Gateway](MessagingGateway.html)\n\n[Messaging Mapper](MessagingMapper.html)\n\n[Transactional Client](TransactionalClient.html)\n\n[Polling Consumer](PollingConsumer.html)\n\n[Event-driven Consumer](EventDrivenConsumer.html)\n\n[Competing Consumers](CompetingConsumers.html)\n\n[Message Dispatcher](MessageDispatcher.html)\n\n[Selective Consumer](MessageSelector.html)\n\n[Durable Subscriber](DurableSubscription.html)\n\n[Idempotent Receiver](IdempotentReceiver.html)\n\n[Service Activator](MessagingAdapter.html)\n\n[Messaging Channels](MessagingChannelsIntro.html)\n\n[Message Channel](MessageChannel.html)\n\n[Point-to-Point Channel](PointToPointChannel.html)\n\n[Publish-Subscr. Channel](PublishSubscribeChannel.html)\n\n[Datatype Channel](DatatypeChannel.html)\n\n[Invalid Message Channel](InvalidMessageChannel.html)\n\n[Dead Letter Channel](DeadLetterChannel.html)\n\n[Guaranteed Delivery](GuaranteedMessaging.html)\n\n[Channel Adapter](ChannelAdapter.html)\n\n[Messaging Bridge](MessagingBridge.html)\n\n[Message Bus](MessageBus.html)\n\n[Systems Mgmt.](SystemManagementIntro.html)\n\n[Control Bus](ControlBus.html)\n\n[Detour](Detour.html)\n\n[Wire Tap](WireTap.html)\n\n[Message History](MessageHistory.html)\n\n[Message Store](MessageStore.html)\n\n[Smart Proxy](SmartProxy.html)\n\n[Test Message](TestMessage.html)\n\n[Channel Purger](ChannelPurger.html)\n\n- » [Read the latest in My Blog](/ramblings)\n- » [Get more insights from My Articles](/articles.html)\n- » [See me live in my Upcoming Talks](/talks)\n\nYou can reuse the following elements under the [Creative Commons Attribution](http://creativecommons.org/licenses/by/4.0/) license: pattern icon, pattern name, problem and solution statements (in bold), and the sketch. Other portions are protected by copyright.\n\n[Enterprise Integration Patterns](https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20)\nThe de-facto language for designing asynchronous, distributed systems. Over 100,000 copies sold.\n\n[The Software Architect Elevator](https://www.architectelevator.com/book)\n\n Rethink the role of architects as a connecting element across organizational layers. Acquire the technical, communication, and organizational skills to succeed in this new role.\n\n[Cloud Strategy](https://www.cloudstrategybook.com)\n\n Make your cloud migration a success by translating high-level goals into conscious decisions with well-understood trade-offs.\n\n[Platform Strategy](https://www.platformstrategybook.info)\n\n Platforms can boost innovation through harmonization, but they aren't easy to build. Learn from over a decade of designing and rolling out IT platforms.", "znaku_textu": 6644, "slov": 589, "odkazu": 108, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/PollingConsumer.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 14:55:59", "sha256": "b984d2d43aec030f6c035d9abe848cd7cd7f7970c3b35a74fdbfbfd38d59f391", "hloubka": 3, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://creativecommons.org/licenses/by/4.0/", "https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "https://www.architectelevator.com/book", "https://www.cloudstrategybook.com/", "https://www.platformstrategybook.info/"]} {"url": "http://www.enterpriseintegrationpatterns.com/patterns/messaging/Preface.html", "titulek": "Preface - Enterprise Integration Patterns", "h1": "", "popis": "This is a book about enterprise integration using messaging. It does not document any particular technology or product. Rather, it is designed for developers and integrators using a variety of messaging products and technologies, such as:", "klicova_slova": "Preface,integration, messaging, events, patterns, event-driven, coupling, eai, middleware, application integration, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns", "og:title": "Preface - Enterprise Integration Patterns", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/Preface.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/eip1_patterns_wide.png"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Who Should Read This Book"}, {"uroven": 2, "text": "What You Will Learn"}, {"uroven": 2, "text": "What This Book Does Not Cover"}, {"uroven": 2, "text": "How This Book Is Organized"}, {"uroven": 2, "text": "Acknowledgements"}, {"uroven": 2, "text": "About the Cover Picture"}, {"uroven": 2, "text": "Integration Pattern Language"}], "markdown": "| | Preface[Messaging Patterns](index.html) | [Contents](toc.html)[⇐ Prev](toc.html)[Next ⇒](Introduction.html) |\n| --- | --- | --- |\n\nThis is a book about enterprise integration using messaging. It does not document any particular technology or product. Rather, it is designed for developers and integrators using a variety of messaging products and technologies, such as:\n\n- Message-oriented middleware (MOM) and integration suites offered by vendors such as the IBM (WebSphere MQ Family), Microsoft (BizTalk), TIBCO, WebMethods, SeeBeyond, Vitria, and others\n- Java Message Service (JMS) implementations incorporated into commercial and open-source J2EE application servers as well as standalone products\n- Microsoft’s Message Queuing (MSMQ), accessible through several API’s, including the System.Messaging libraries in Microsoft .NET\n- Emerging Web services standards that support asynchronous Web services (for example, WS-ReliableMessaging) and the associated API’s such as Sun’s Java API for XML Messaging (JAXM) or Microsoft’s Web Services Extensions (WSE).\n\nEnterprise integration goes beyond creating a single application with a distributed n-tier architecture, which enables a single application to be distributed across several computers. Whereas one tier in a distributed application cannot run by itself, integrated applications are independent programs that can each run by itself, yet that function by coordinating with each other in a loosely coupled way. Messaging enables data or commands to be sent across the network using a “send and forget” approach where the caller sends the information and then goes on to other work while the information is transmitted by the messaging system. Optionally, the caller can later be notified of the result through a callback. Asynchronous calls and callbacks can make a design more complex than a synchronous approach, but an asynchronous call can be retried until it succeeds, which makes the communication much more reliable. Asynchronous messaging also enables several other advantages such as throttling of requests and load balancing.\n\n## Who Should Read This Book\n\nThis book is designed to help application developers and system integrators connect applications using message-oriented middleware products:\n\n- **Application architects and developers** who design and build complex enterprise applications that need to integrate with other applications. We assume that you’re developing your applications using a modern enterprise application platform such as the Java 2 Platform, Enterprise Edition (J2EE) or the Microsoft .NET framework. This book will help you connect the application to a messaging layer and exchange information with other applications. This book focuses on the integration of applications, not on building applications; for that, we refer you to *Patterns of Enterprise Application Architecture* by Martin Fowler.\n- **Integration architects and developers** who design and build integration solutions connecting packaged or custom applications. Most readers in this group will have experience with one of the many commercial integration tools like IBM WebSphere MQ, TIBCO, WebMethods, SeeBeyond, Vitria, etc. Many of these tools incorporate the patterns presented in this book. This book helps readers understand the underlying concepts and make confident design decisions using a vendor-independent vocabulary.\n- **Enterprise Architects** have to maintain the \"big picture\" view of the software and hardware assets in an enterprise. This book presents a consistent language to describe large-scale integration solutions that may span across many technologies or point solutions. This language is also a key enabler for efficient communication between the enterprise architect and the integration and application architects and developers.\n\n## What You Will Learn\n\nThis book does not attempt to make a business case for enterprise application integration; the focus is on how to make it work. Readers of this book will learn how to integrate enterprise applications by understanding:\n\n- The advantages and limitations of messaging as compared to other integration techniques\n- How to determine the message channels your applications will need, how to control whether multiple consumers can receive the same message, and how to handle invalid messages\n- When to send a message, what it should contain, and how to use special message properties\n- How to route a message to its ultimate destination even when the sender does not know where that is\n- How to convert messages when the sender and receiver do not agree on a common format\n- How to design the code that connects an application to the messaging system\n- How to manage and monitor a messaging system once it’s in use as part of the enterprise\n\nEven readers who are familiar with these practices will benefit from having them documented and being able to use them to facilitate communication with their colleagues.\n\n## What This Book Does Not Cover\n\nWe believe that any book sporting the word \"enterprise\" in the title is likely to fall into one of three categories. Either it attempts to cover the whole breadth of the subject matter and will be forced to stop short of detailed guidance on how to implement actual solutions. Or, the book will provide specific hands-on guidance on the development of actual solutions but is forced to constrain the scope of the subject area it addresses. Lastly, books that attempt to do both are likely to never get finished or are published so late as to be irrelevant. We opted for the second choice and hopefully created a book that helps people create better integration solutions even though we had to limit the scope of the book. Topics that we would have loved to discuss but had to exclude in order not to fall into the category three trap include security, complex data mapping, workflow, rule engines, scalability and robustness, and distributed transaction processing (XA, Tuxedo and the like). We chose asynchronous messaging as the emphasis for this book because it is full of interesting design issues and trade-offs and provides a clean abstraction from the many implementation provided by various integration vendors.\n\nThis book is also not a tutorial on a specific messaging or middleware technology. You will find examples based on a number of different technologies in this book, such as JMS, MSMQ, TIBCO, Microsoft BizTalk, XSL etc. We included these examples for illustrative purposes to show readers how the pattern could be translated into an actual implementation. If you are interested in learning more about any of these specific technologies, please refer to one of the books referenced in the bibliography or one of the many on-line resources.\n\n## How This Book Is Organized\n\nThe core of the book contains 65 patterns that form a pattern language. Books such as *Design Patterns*, *Pattern Oriented Software Architecture*, *Core J2EE Patterns*, and *Patterns of Enterprise Application Architecture* have popularized the notion of using patterns to document computer-programming techniques. The concept of patterns and pattern languages was originally applied to city and building architecture by Christopher Alexander in his seminal works *A Pattern Language* and *A Timeless Way of Building*. To help the reader design an integration solution, each pattern represents a decision that the reader must make, explains the considerations that affect the decision, and presents a well regarded solution to guide the decision. A pattern language is a web of related patterns where each pattern leads to others, guiding the reader through the decision making process. This approach is a powerful technique for documenting an expert’s knowledge so that it can be readily understood and applied by non-experts.\n\nA pattern language teaches the reader how to solve a limitless variety of problems within a bounded problem space. Because the overall problem that is being solved is different every time, the path through the patterns and how they’re applied is also unique. In this way, this book was written for anyone using any messaging or integration tools for any purpose, but can be applied specifically for you and the specific application of messaging that you are facing.\n\nPatterns describe commonly accepted solutions to recurring problems, so if you’re an experienced developer of message-oriented integration solutions, many of these patterns will seem familiar to you. Yet even if you already recognize most of these patterns, there is still value in reviewing this book. This book should validate your hard-earned understanding of how to use messaging. It gives you a consolidated reference to help you pass your knowledge effectively to less-experienced colleagues. It also documents details of the solutions and relationships between them that you may not have been aware of. Finally, the pattern names give you a common vocabulary to efficiently discuss integration design alternatives with your peers.\n\n## Acknowledgements\n\nLike most books, *Enterprise Integration Patterns* has been a long time in the making. The idea of writing about message-based integration patterns dates back to the summer of 2001 when Martin was working on *Patterns of Enterprise Application Architecture*. At that time, it struck Kyle that while *P of EAA* talked a lot about how to create applications, it touches only briefly on how to integrate them. This idea was the starting point for a series of meetings between Martin and Kyle that also included Rachel Reinitz and John Crupi. Bobby joined these discussions in the fall of 2001, followed by Gregor in early 2002. The following summer the group submitted two papers for review at the Pattern Languages of Programs (PLoP) conference, one authored jointly by Bobby and Kyle and the other by Gregor. After the conference, Kyle and Martin refocused on their own book projects while Gregor and Bobby merged their papers to form the basis for the book. At the same time, the [www.enterpriseintegrationpatterns.com](http://www.enterpriseintegrationpatterns.com) site went live to allow integration architects and developers around the world to participate in the rapid evolution of the content. As they worked on the book, Gregor and Bobby invited contributors to help round out the book’s content. About two years after Kyle's original idea, the final manuscript arrived at the publisher.\n\nThis book would not have been possible without the help from a long list of contributors. *Names here...*\n\n## About the Cover Picture\n\nThe common theme for books in the *Martin Fowler Signature Series* is a picture of a bridge. In some sense we lucked out, because what theme would make a better match for a book on integration? For Thousands of years, bridges have helped connect people from different shores, mountains or sides of the road.\n\nWe selected a picture of the Taiko-bashi Bridge at the Sumiyoshi-taisha Shrine in Osaka, Japan for its simple elegance and beauty. As a Shinto shrine dedicated to the guardian deity for sailors, it was originally erected next to the water. Interestingly, land reclamation has pushed the water away so that the shrine today stands almost three miles inland. Some 3 million people visit this shrine at the beginning of a new year.\n\n## Integration Pattern Language\n\n[Message Construct.](MessageConstructionIntro.html)\n\n[Message](Message.html)\n\n[Command Message](CommandMessage.html)\n\n[Document Message](DocumentMessage.html)\n\n[Event Message](EventMessage.html)\n\n[Request-Reply](RequestReply.html)\n\n[Return Address](ReturnAddress.html)\n\n[Correlation Identifier](CorrelationIdentifier.html)\n\n[Message Sequence](MessageSequence.html)\n\n[Message Expiration](MessageExpiration.html)\n\n[Format Indicator](FormatIndicator.html)\n\n[Message Routing](MessageRoutingIntro.html)\n\n[Pipes-and-Filters](PipesAndFilters.html)\n\n[Message Router](MessageRouter.html)\n\n[Content-based Router](ContentBasedRouter.html)\n\n[Message Filter](Filter.html)\n\n[Dynamic Router](DynamicRouter.html)\n\n[Recipient List](RecipientList.html)\n\n[Splitter](Sequencer.html)\n\n[Aggregator](Aggregator.html)\n\n[Resequencer](Resequencer.html)\n\n[Composed Msg. Processor](DistributionAggregate.html)\n\n[Scatter-Gather](BroadcastAggregate.html)\n\n[Routing Slip](RoutingTable.html)\n\n[Process Manager](ProcessManager.html)\n\n[Message Broker](MessageBroker.html)\n\n[Message\nTransformation](MessageTransformationIntro.html)\n\n[Message Translator](MessageTranslator.html)\n\n[Envelope Wrapper](EnvelopeWrapper.html)\n\n[Content Enricher](DataEnricher.html)\n\n[Content Filter](ContentFilter.html)\n\n[Claim Check](StoreInLibrary.html)\n\n[Normalizer](Normalizer.html)\n\n[Canonical Data Model](CanonicalDataModel.html)\n\n[Messaging Endpoints](MessagingEndpointsIntro.html)\n\n[Message Endpoint](MessageEndpoint.html)\n\n[Messaging Gateway](MessagingGateway.html)\n\n[Messaging Mapper](MessagingMapper.html)\n\n[Transactional Client](TransactionalClient.html)\n\n[Polling Consumer](PollingConsumer.html)\n\n[Event-driven Consumer](EventDrivenConsumer.html)\n\n[Competing Consumers](CompetingConsumers.html)\n\n[Message Dispatcher](MessageDispatcher.html)\n\n[Selective Consumer](MessageSelector.html)\n\n[Durable Subscriber](DurableSubscription.html)\n\n[Idempotent Receiver](IdempotentReceiver.html)\n\n[Service Activator](MessagingAdapter.html)\n\n[Messaging Channels](MessagingChannelsIntro.html)\n\n[Message Channel](MessageChannel.html)\n\n[Point-to-Point Channel](PointToPointChannel.html)\n\n[Publish-Subscr. Channel](PublishSubscribeChannel.html)\n\n[Datatype Channel](DatatypeChannel.html)\n\n[Invalid Message Channel](InvalidMessageChannel.html)\n\n[Dead Letter Channel](DeadLetterChannel.html)\n\n[Guaranteed Delivery](GuaranteedMessaging.html)\n\n[Channel Adapter](ChannelAdapter.html)\n\n[Messaging Bridge](MessagingBridge.html)\n\n[Message Bus](MessageBus.html)\n\n[Systems Mgmt.](SystemManagementIntro.html)\n\n[Control Bus](ControlBus.html)\n\n[Detour](Detour.html)\n\n[Wire Tap](WireTap.html)\n\n[Message History](MessageHistory.html)\n\n[Message Store](MessageStore.html)\n\n[Smart Proxy](SmartProxy.html)\n\n[Test Message](TestMessage.html)\n\n[Channel Purger](ChannelPurger.html)", "znaku_textu": 13957, "slov": 1887, "odkazu": 108, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/Preface.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 14:54:52", "sha256": "857cfd138de6e7cf9f307a38ee9d904624b3bc279bbdc42df6ec7237b8125d77", "hloubka": 3, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "https://www.architectelevator.com/book", "https://www.cloudstrategybook.com/", "https://www.platformstrategybook.info/"]} {"url": "http://www.enterpriseintegrationpatterns.com/patterns/messaging/ProcessManager.html", "titulek": "Process Manager - Enterprise Integration Patterns", "h1": "", "popis": "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?", "klicova_slova": "Process Manager,integration, messaging, events, patterns, event-driven, coupling, eai, middleware, application integration, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns", "og:title": "Process Manager - Enterprise Integration Patterns", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/ProcessManager.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/ProcessManager.gif"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Example: Serverless Loan Broker with AWS Step FunctionsNEW"}, {"uroven": 2, "text": "Example: Serverless Loan Broker with GCP WorkflowsNEW"}, {"uroven": 2, "text": "Integration Pattern Language"}], "markdown": "| | Process Manager[Messaging Patterns](index.html) » [Message Routing](MessageRoutingIntro.html) | [Contents](toc.html)[⇐ Prev](RoutingTable.html)[Next ⇒](MessageBroker.html) |\n| --- | --- | --- |\n\nThe [*Routing Slip*](RoutingTable.html) demonstrates how a message can be routed through a dynamic series of processing steps. The solution of the [*Routing Slip*](RoutingTable.html) is based on two key assumptions: the sequence of processing steps has to be determined up-front and the sequence is linear. In many cases, these assumptions may not be fulfilled. For example, routing decisions might have to be made based on intermediate results. Or, the processing steps may not be sequential, but multiple steps might be executed in parallel.\n\nHow 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?\n\nUse a central processing unit, a *Process Manager*, to maintain the state of the sequence and determine the next processing step based on intermediate results.\n\nFirst of all, let me clarify that the design and configuration of a *Process Manager* is a pretty extensive topic. We could probably fill a whole book (Volume 2, maybe?) with patterns related to the design of workflow or business process management. Therefore, this pattern is intended primarily to \"round off\" the topic of routing patterns and to provide a pointer into the direction of workflow and process modeling. By no means is it a comprehensive treatment of business process design.\n\nUsing a *Process Manager* results in a so-called hub-and-spoke pattern of message flow (see diagram). An incoming message initializes the *Process Manager*. We call this message the *trigger message*. Based on the rules inside the *Process Manager*, it sends a message (1) to the first processing step, implemented by Processing Unit A. After unit A completes its task it sends a reply message back to the *Process Manager*. Next, the *Process Manager* determines the next step to be executed and sends message (2) to the next processing unit. As a result, all message traffic runs through this central 'hub', hence the term hub-and-spoke. The downside of this central control element is the danger of turning the *Process Manager* into a performance bottleneck.\n\nThe versatility of a *Process Manager* is at the same time its biggest strength and weakness. A *Process Manager* can execute any sequence of steps, sequential or in parallel. Therefore, almost any integration problem can be solved with a *Process Manager*. Likewise, most of the patterns introduced in this chapter could be implemented using a *Process Manager*. In fact, many EAI vendors make you believe that every integration problem is a process problem. We think that using a *Process Manager* for every situation may be overkill. It can distract from the core design issue and also cause significant performance overhead.\n\n...\nRead the entire pattern in the book [Enterprise Integration Patterns](/books1.html)\n\n## Example: Serverless Loan Broker with AWS Step Functions[NEW](/ramblings/eip1_examples_updated.html)\n\nThe [implementation of the Loan Broker example with AWS serverless services](/ramblings/loanbroker_stepfunctions.html) employs [AWS Step Functions](https://aws.amazon.com/step-functions) as *Process Manager*. Step Functions orchestrates a series of tasks and maintains state across tasks in a JSON document, which covers the characteristics of a *Process Manager* quote well.\n\n## Example: Serverless Loan Broker with GCP Workflows[NEW](/ramblings/eip1_examples_updated.html)\n\nThe [implementation of the Loan Broker example with GCP](/ramblings/loanbroker_gcp_workflows.html) employs [GCP Workflows](https://cloud.google.com/blog/products/application-development/get-to-know-google-cloud-workflows) as *Process Manager*.\n\n**Related patterns:**\n\n[*Aggregator*](Aggregator.html), [*Asynchronous Implementation with MSMQ*](ComposedMessagingMSMQ.html), [*Asynchronous Implementation with TIBCO ActiveEnterprise*](ComposedMessagingTIBCO.html), [*Content-Based Router*](ContentBasedRouter.html), [*Correlation Identifier*](CorrelationIdentifier.html), [*Emerging Standards and Futures in Enterprise Integration*](Future.html), [*Message Channel*](MessageChannel.html), [*Message History*](MessageHistory.html), [*Message Store*](MessageStore.html), [*Message Translator*](MessageTranslator.html), [*Pipes and Filters*](PipesAndFilters.html), [*Publish-Subscribe Channel*](PublishSubscribeChannel.html), [*Routing Slip*](RoutingTable.html), [*Claim Check*](StoreInLibrary.html)\n\n---\n\n## Integration Pattern Language\n\n[Message Construct.](MessageConstructionIntro.html)\n\n[Message](Message.html)\n\n[Command Message](CommandMessage.html)\n\n[Document Message](DocumentMessage.html)\n\n[Event Message](EventMessage.html)\n\n[Request-Reply](RequestReply.html)\n\n[Return Address](ReturnAddress.html)\n\n[Correlation Identifier](CorrelationIdentifier.html)\n\n[Message Sequence](MessageSequence.html)\n\n[Message Expiration](MessageExpiration.html)\n\n[Format Indicator](FormatIndicator.html)\n\n[Message Routing](MessageRoutingIntro.html)\n\n[Pipes-and-Filters](PipesAndFilters.html)\n\n[Message Router](MessageRouter.html)\n\n[Content-based Router](ContentBasedRouter.html)\n\n[Message Filter](Filter.html)\n\n[Dynamic Router](DynamicRouter.html)\n\n[Recipient List](RecipientList.html)\n\n[Splitter](Sequencer.html)\n\n[Aggregator](Aggregator.html)\n\n[Resequencer](Resequencer.html)\n\n[Composed Msg. Processor](DistributionAggregate.html)\n\n[Scatter-Gather](BroadcastAggregate.html)\n\n[Routing Slip](RoutingTable.html)\n\n[Process Manager](ProcessManager.html)\n\n[Message Broker](MessageBroker.html)\n\n[Message\nTransformation](MessageTransformationIntro.html)\n\n[Message Translator](MessageTranslator.html)\n\n[Envelope Wrapper](EnvelopeWrapper.html)\n\n[Content Enricher](DataEnricher.html)\n\n[Content Filter](ContentFilter.html)\n\n[Claim Check](StoreInLibrary.html)\n\n[Normalizer](Normalizer.html)\n\n[Canonical Data Model](CanonicalDataModel.html)\n\n[Messaging Endpoints](MessagingEndpointsIntro.html)\n\n[Message Endpoint](MessageEndpoint.html)\n\n[Messaging Gateway](MessagingGateway.html)\n\n[Messaging Mapper](MessagingMapper.html)\n\n[Transactional Client](TransactionalClient.html)\n\n[Polling Consumer](PollingConsumer.html)\n\n[Event-driven Consumer](EventDrivenConsumer.html)\n\n[Competing Consumers](CompetingConsumers.html)\n\n[Message Dispatcher](MessageDispatcher.html)\n\n[Selective Consumer](MessageSelector.html)\n\n[Durable Subscriber](DurableSubscription.html)\n\n[Idempotent Receiver](IdempotentReceiver.html)\n\n[Service Activator](MessagingAdapter.html)\n\n[Messaging Channels](MessagingChannelsIntro.html)\n\n[Message Channel](MessageChannel.html)\n\n[Point-to-Point Channel](PointToPointChannel.html)\n\n[Publish-Subscr. Channel](PublishSubscribeChannel.html)\n\n[Datatype Channel](DatatypeChannel.html)\n\n[Invalid Message Channel](InvalidMessageChannel.html)\n\n[Dead Letter Channel](DeadLetterChannel.html)\n\n[Guaranteed Delivery](GuaranteedMessaging.html)\n\n[Channel Adapter](ChannelAdapter.html)\n\n[Messaging Bridge](MessagingBridge.html)\n\n[Message Bus](MessageBus.html)\n\n[Systems Mgmt.](SystemManagementIntro.html)\n\n[Control Bus](ControlBus.html)\n\n[Detour](Detour.html)\n\n[Wire Tap](WireTap.html)\n\n[Message History](MessageHistory.html)\n\n[Message Store](MessageStore.html)\n\n[Smart Proxy](SmartProxy.html)\n\n[Test Message](TestMessage.html)\n\n[Channel Purger](ChannelPurger.html)", "znaku_textu": 7287, "slov": 767, "odkazu": 113, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/ProcessManager.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 14:55:43", "sha256": "ac6e6180c5ee20833a84ff28fc856851828832cdbefd1fc3db2807007d4cbbd1", "hloubka": 3, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://aws.amazon.com/step-functions", "https://cloud.google.com/blog/products/application-development/get-to-know-google-cloud-workflows", "http://creativecommons.org/licenses/by/4.0/", "https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "https://www.architectelevator.com/book", "https://www.cloudstrategybook.com/", "https://www.platformstrategybook.info/"]} {"url": "http://www.enterpriseintegrationpatterns.com/patterns/messaging/PublishSubscribeChannel.html", "titulek": "Publish-Subscribe Channel - Enterprise Integration Patterns", "h1": "", "popis": "How can the sender broadcast an event to all interested receivers?", "klicova_slova": "Publish-Subscribe Channel,integration, messaging, events, patterns, event-driven, coupling, eai, middleware, application integration, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns", "og:title": "Publish-Subscribe Channel - Enterprise Integration Patterns", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/PublishSubscribeChannel.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/PublishSubscribeSolution.gif"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Example: Google Cloud Pub/SubNEW"}, {"uroven": 2, "text": "Integration Pattern Language"}], "markdown": "| | Publish-Subscribe Channel[Messaging Patterns](index.html) » [Messaging Channels](MessagingChannelsIntro.html) | [Contents](toc.html)[⇐ Prev](PointToPointChannel.html)[Next ⇒](DatatypeChannel.html) |\n| --- | --- | --- |\n\nAn application is using [*Messaging*](Messaging.html) to announce events.\n\nHow can the sender broadcast an event to all interested receivers?\n\nSend the event on a *Publish-Subscribe Channel*, which delivers a copy of a particular event to each receiver.\n\nA *Publish-Subscribe Channel* works like this: It has one input channel that splits into multiple output channels, one for each subscriber. When an event is published into the channel, the *Publish-Subscribe Channel* delivers a copy of the message to each of the output channels. Each output channel has only one subscriber, which is only allowed to consume a message once. In this way, each subscriber only gets the message once and consumed copies disappear from their channels.\n\nA *Publish-Subscribe Channel* can be a useful debugging tool. Even though a message is destined to only a single receiver, using a *Publish-Subscribe Channel* allows you to eavesdrop on a message channel without disturbing the existing message flow. Monitoring all traffic on a channel can be tremendously helpful when debugging messaging applications. It can also save you from inserting a ton of print statements into each application that participates in the messaging solution. Creating a program that listens for messages on all active channels and logs them to a file can realize many of the same benefits that a [*Message Store*](MessageStore.html) brings.\n\n...\nRead the entire pattern in the book [Enterprise Integration Patterns](/books1.html)\n\n## Example: Google Cloud Pub/Sub[NEW](/ramblings/eip1_examples_updated.html)\n\n[Google Cloud Pub/Sub](https://cloud.google.com/pubsub/overview) offers both [*Competing Consumers*](CompetingConsumers.html) and *Publish-Subscribe Channel* semantics, managed through *topics* (Publish-Subcribe) and *subscriptions* (Competing Consumers) as illustrated in this diagram:\n\n*Google Cloud Pub-Sub Concept Overview*\n\nIn this example, both *Subscriber Y* and *Subscriber Z* each receive a copy of *Message 3* as they are subscribing to the same *Topic C*, but through separate subscriptions. Google Cloud Pub/Sub does not support wildcard subscriptions.\n\nGoogle provides client API libraries that make coding against the cloud service relatively simple. The client code has to authenticate first and create topics before messages can be published. Subscriptions are created on the fly.\n\nA stand-alone application can authenticate using private keys:\n\n```\nPubsub pubsub;\n \nvoid createClient(String private_key_file, String email) throws IOException, GeneralSecurityException {\n HttpTransport transport = GoogleNetHttpTransport.newTrustedTransport();\n GoogleCredential credential = new GoogleCredential.Builder()\n .setTransport(transport)\n .setJsonFactory(JSON_FACTORY)\n .setServiceAccountScopes(PubsubScopes.all())\n .setServiceAccountId(email)\n .setServiceAccountPrivateKeyFromP12File(new File(private_key_file))\n .build();\n pubsub = new Pubsub.Builder(transport, JSON_FACTORY, credential)\n .setApplicationName(\"eaipubsub\")\n .build();\n}\n```\n\nusing the PubSub instance, you can create a new topic if it doesn't already exist:\n\n```\nTopic createTopic(String topicName) throws IOException {\n String topic = getTopic(topicName); // adds project name and resource type\n Pubsub.Projects.Topics topics = pubsub.projects().topics();\n ListTopicsResponse list = topics.list(project).execute();\n if (list.getTopics() == null || !list.getTopics().contains(new Topic().setName(topic))) {\n return topics.create(topic, new Topic()).execute();\n } else {\n return new Topic().setName(topic);\n }\n}\n```\n\nNow the code is ready to publish a message to the topic, returning the published message IDs:\n\n```\nList publishMessage(String topicName, String data) throws IOException {\n List messages = Lists.newArrayList();\n messages.add(new PubsubMessage().encodeData(data.getBytes(\"UTF-8\")));\n PublishRequest publishRequest = new PublishRequest().setMessages(messages);\n PublishResponse publishResponse = pubsub.projects().topics()\n .publish(getTopic(topicName), publishRequest)\n .execute();\n return publishResponse.getMessageIds();\n}\n```\n\nSubscriptions are identified by a name and a topic so multiple subscribers can compete for messages off the same subscription or create individual subscriptions for the same topic. If a subscription already exists, the underlying REST API throws an exception, which we can simply ignore.\n\n```\nSubscription subscribeTopic(String subscriptionName, String topicName) throws IOException {\n String sub = getSubscription(subscriptionName); // adds project name and resource type\n Subscription subscription = new Subscription()\n .setName(sub)\n .setAckDeadlineSeconds(15)\n .setTopic(getTopic(topicName));\n try {\n return pubsub.projects().subscriptions().create(sub, subscription).execute();\n } catch (GoogleJsonResponseException e) {\n if (e.getStatusCode() == HttpURLConnection.HTTP_CONFLICT) {\n return subscription;\n } else {\n throw e;\n }\n }\n}\n```\n\nNow everything is in place to pull messages off the subscription. The code is a bit verbose because it has to navigate collections that allow receiving multiple messages at once. It also has to convert the payload back into a *String* for this simple demo implementation:\n\n```\nList pullMessage(Subscription subscription, int maxMessages, boolean doAck) throws IOException {\n PullRequest pullRequest = new PullRequest()\n .setReturnImmediately(true)\n .setMaxMessages(maxMessages);\n PullResponse response = pubsub.projects().subscriptions().pull(subscription.getName(), pullRequest).execute();\n List messages = response.getReceivedMessages();\n List ackIds = Lists.newArrayList();\n List data = Lists.newArrayList();\n if (messages != null) {\n for (ReceivedMessage receivedMessage : messages) {\n PubsubMessage message = receivedMessage.getMessage();\n if (message != null) {\n byte[] bytes = message.decodeData();\n if (bytes != null) {\n data.add(new String(bytes, \"UTF-8\"));\n }\n }\n ackIds.add(receivedMessage.getAckId());\n }\n if (doAck) {\n AcknowledgeRequest ackRequest = new AcknowledgeRequest().setAckIds(ackIds);\n pubsub.projects().subscriptions().acknowledge(subscription.getName(), ackRequest).execute();\n }\n }\n return data;\n}\n```\n\nFind the source for this code snippet on [Github](https://github.com/spac3lord/eip/tree/master/GoogleCloudPubSub).\n\n**Related patterns:**\n\n[*Competing Consumers*](CompetingConsumers.html), [*Durable Subscriber*](DurableSubscription.html), [*Event Message*](EventMessage.html), [*Message*](Message.html), [*Message Channel*](MessageChannel.html), [*Message Store*](MessageStore.html), [*Messaging*](Messaging.html), [*JMS Publish/Subscribe Example*](ObserverJmsExample.html), [*Point-to-Point Channel*](PointToPointChannel.html), [*Request-Reply*](RequestReply.html)\n\n**Further reading:**\n\n- [Free Gift with Subscription (Pattern)](/ramblings/83_subscribing.html)\n- [Pub-Sub and Related Topics](/ramblings/17_acmconference.html)\n\n---\n\n## Integration Pattern Language\n\n[Message Construct.](MessageConstructionIntro.html)\n\n[Message](Message.html)\n\n[Command Message](CommandMessage.html)\n\n[Document Message](DocumentMessage.html)\n\n[Event Message](EventMessage.html)\n\n[Request-Reply](RequestReply.html)\n\n[Return Address](ReturnAddress.html)\n\n[Correlation Identifier](CorrelationIdentifier.html)\n\n[Message Sequence](MessageSequence.html)\n\n[Message Expiration](MessageExpiration.html)\n\n[Format Indicator](FormatIndicator.html)\n\n[Message Routing](MessageRoutingIntro.html)\n\n[Pipes-and-Filters](PipesAndFilters.html)\n\n[Message Router](MessageRouter.html)\n\n[Content-based Router](ContentBasedRouter.html)\n\n[Message Filter](Filter.html)\n\n[Dynamic Router](DynamicRouter.html)\n\n[Recipient List](RecipientList.html)\n\n[Splitter](Sequencer.html)\n\n[Aggregator](Aggregator.html)\n\n[Resequencer](Resequencer.html)\n\n[Composed Msg. Processor](DistributionAggregate.html)\n\n[Scatter-Gather](BroadcastAggregate.html)\n\n[Routing Slip](RoutingTable.html)\n\n[Process Manager](ProcessManager.html)\n\n[Message Broker](MessageBroker.html)\n\n[Message\nTransformation](MessageTransformationIntro.html)\n\n[Message Translator](MessageTranslator.html)\n\n[Envelope Wrapper](EnvelopeWrapper.html)\n\n[Content Enricher](DataEnricher.html)\n\n[Content Filter](ContentFilter.html)\n\n[Claim Check](StoreInLibrary.html)\n\n[Normalizer](Normalizer.html)\n\n[Canonical Data Model](CanonicalDataModel.html)\n\n[Messaging Endpoints](MessagingEndpointsIntro.html)\n\n[Message Endpoint](MessageEndpoint.html)\n\n[Messaging Gateway](MessagingGateway.html)\n\n[Messaging Mapper](MessagingMapper.html)\n\n[Transactional Client](TransactionalClient.html)\n\n[Polling Consumer](PollingConsumer.html)\n\n[Event-driven Consumer](EventDrivenConsumer.html)\n\n[Competing Consumers](CompetingConsumers.html)\n\n[Message Dispatcher](MessageDispatcher.html)\n\n[Selective Consumer](MessageSelector.html)\n\n[Durable Subscriber](DurableSubscription.html)\n\n[Idempotent Receiver](IdempotentReceiver.html)\n\n[Service Activator](MessagingAdapter.html)\n\n[Messaging Channels](MessagingChannelsIntro.html)\n\n[Message Channel](MessageChannel.html)\n\n[Point-to-Point Channel](PointToPointChannel.html)\n\n[Publish-Subscr. Channel](PublishSubscribeChannel.html)\n\n[Datatype Channel](DatatypeChannel.html)\n\n[Invalid Message Channel](InvalidMessageChannel.html)\n\n[Dead Letter Channel](DeadLetterChannel.html)\n\n[Guaranteed Delivery](GuaranteedMessaging.html)\n\n[Channel Adapter](ChannelAdapter.html)\n\n[Messaging Bridge](MessagingBridge.html)\n\n[Message Bus](MessageBus.html)\n\n[Systems Mgmt.](SystemManagementIntro.html)\n\n[Control Bus](ControlBus.html)\n\n[Detour](Detour.html)\n\n[Wire Tap](WireTap.html)\n\n[Message History](MessageHistory.html)\n\n[Message Store](MessageStore.html)\n\n[Smart Proxy](SmartProxy.html)\n\n[Test Message](TestMessage.html)\n\n[Channel Purger](ChannelPurger.html)", "znaku_textu": 9823, "slov": 943, "odkazu": 113, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/PublishSubscribeChannel.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 14:55:10", "sha256": "ecc6aeec40253b2dba2f326af9fce678bb110a0d26902339f2184db7129196b4", "hloubka": 3, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://cloud.google.com/pubsub/overview", "https://github.com/spac3lord/eip/tree/master/GoogleCloudPubSub", "http://creativecommons.org/licenses/by/4.0/", "https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "https://www.architectelevator.com/book", "https://www.cloudstrategybook.com/", "https://www.platformstrategybook.info/"]} {"url": "http://www.enterpriseintegrationpatterns.com/patterns/messaging/RecipientList.html", "titulek": "Recipient List - Enterprise Integration Patterns", "h1": "", "popis": "How do we route a message to a list of dynamically specified recipients?", "klicova_slova": "Recipient List,integration, messaging, events, patterns, event-driven, coupling, eai, middleware, application integration, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns", "og:title": "Recipient List - Enterprise Integration Patterns", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/RecipientList.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/RecipientList.gif"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Integration Pattern Language"}], "markdown": "| | Recipient List[Messaging Patterns](index.html) » [Message Routing](MessageRoutingIntro.html) | [Contents](toc.html)[⇐ Prev](DynamicRouter.html)[Next ⇒](Sequencer.html) |\n| --- | --- | --- |\n\nA [*Content-Based Router*](ContentBasedRouter.html) allows us to route a message to the correct system based on message content. This process is transparent to the original sender in the sense that the originator simply sends the message to a channel, where the router picks it up and takes care of everything.\n\nIn some cases, though, we may want to specify one or more recipients for the message. A common analogy are the recipient lists implemented in most e-mail systems. For each e-mail message, the sender can specify a list of recipients. The mail system then ensures transport of the message content to each recipient. An example from the domain of enterprise integration would be a situation where a function can be performed by one or more providers. For example, we may have a contract with multiple credit agencies to assess the credit worthiness of our customers. When a small order comes in we may simply route the credit request message to one credit agency. If a customer places a large order, we may want to route the credit request message to multiple agencies and compare the results before making a decision. In this case, the list of recipients depends on the dollar value of the order.\n\nIn another situation, we may want to route an order message to a select list of suppliers to obtain a quote for the requested item. Rather than sending the request to all vendors, we may want to control which vendors receive the request, possibly based on user preferences\n\nHow do we route a message to a list of dynamically specified recipients?\n\nDefine a channel for each recipient. Then use a *Recipient List* to inspect an incoming message, determine the list of desired recipients, and forward the message to all channels associated with the recipients in the list.\n\nThe logic embedded in a *Recipient List* can be pictured as two separate parts even though the implementation is often coupled together. The first part computes a list of recipients. The second part simply traverses the list and sends a copy of the received message to each recipient. Just like a [*Content-Based Router*](ContentBasedRouter.html), the *Recipient List* usually does not modify the message contents.\n\n...\nRead the entire pattern in the book [Enterprise Integration Patterns](/books1.html)\n\n**Related patterns:**\n\n[*Aggregator*](Aggregator.html), [*Scatter-Gather*](BroadcastAggregate.html), [*Introduction to Composed Messaging Examples*](ComposedMessagingExample.html), [*Content-Based Router*](ContentBasedRouter.html), [*Dynamic Router*](DynamicRouter.html), [*Message Filter*](Filter.html), [*Idempotent Receiver*](IdempotentReceiver.html), [*Message Router*](MessageRouter.html), [*Selective Consumer*](MessageSelector.html), [*Point-to-Point Channel*](PointToPointChannel.html), [*Publish-Subscribe Channel*](PublishSubscribeChannel.html)\n\n---\n\n## Integration Pattern Language\n\n[Message Construct.](MessageConstructionIntro.html)\n\n[Message](Message.html)\n\n[Command Message](CommandMessage.html)\n\n[Document Message](DocumentMessage.html)\n\n[Event Message](EventMessage.html)\n\n[Request-Reply](RequestReply.html)\n\n[Return Address](ReturnAddress.html)\n\n[Correlation Identifier](CorrelationIdentifier.html)\n\n[Message Sequence](MessageSequence.html)\n\n[Message Expiration](MessageExpiration.html)\n\n[Format Indicator](FormatIndicator.html)\n\n[Message Routing](MessageRoutingIntro.html)\n\n[Pipes-and-Filters](PipesAndFilters.html)\n\n[Message Router](MessageRouter.html)\n\n[Content-based Router](ContentBasedRouter.html)\n\n[Message Filter](Filter.html)\n\n[Dynamic Router](DynamicRouter.html)\n\n[Recipient List](RecipientList.html)\n\n[Splitter](Sequencer.html)\n\n[Aggregator](Aggregator.html)\n\n[Resequencer](Resequencer.html)\n\n[Composed Msg. Processor](DistributionAggregate.html)\n\n[Scatter-Gather](BroadcastAggregate.html)\n\n[Routing Slip](RoutingTable.html)\n\n[Process Manager](ProcessManager.html)\n\n[Message Broker](MessageBroker.html)\n\n[Message\nTransformation](MessageTransformationIntro.html)\n\n[Message Translator](MessageTranslator.html)\n\n[Envelope Wrapper](EnvelopeWrapper.html)\n\n[Content Enricher](DataEnricher.html)\n\n[Content Filter](ContentFilter.html)\n\n[Claim Check](StoreInLibrary.html)\n\n[Normalizer](Normalizer.html)\n\n[Canonical Data Model](CanonicalDataModel.html)\n\n[Messaging Endpoints](MessagingEndpointsIntro.html)\n\n[Message Endpoint](MessageEndpoint.html)\n\n[Messaging Gateway](MessagingGateway.html)\n\n[Messaging Mapper](MessagingMapper.html)\n\n[Transactional Client](TransactionalClient.html)\n\n[Polling Consumer](PollingConsumer.html)\n\n[Event-driven Consumer](EventDrivenConsumer.html)\n\n[Competing Consumers](CompetingConsumers.html)\n\n[Message Dispatcher](MessageDispatcher.html)\n\n[Selective Consumer](MessageSelector.html)\n\n[Durable Subscriber](DurableSubscription.html)\n\n[Idempotent Receiver](IdempotentReceiver.html)\n\n[Service Activator](MessagingAdapter.html)\n\n[Messaging Channels](MessagingChannelsIntro.html)\n\n[Message Channel](MessageChannel.html)\n\n[Point-to-Point Channel](PointToPointChannel.html)\n\n[Publish-Subscr. Channel](PublishSubscribeChannel.html)\n\n[Datatype Channel](DatatypeChannel.html)\n\n[Invalid Message Channel](InvalidMessageChannel.html)\n\n[Dead Letter Channel](DeadLetterChannel.html)\n\n[Guaranteed Delivery](GuaranteedMessaging.html)\n\n[Channel Adapter](ChannelAdapter.html)\n\n[Messaging Bridge](MessagingBridge.html)\n\n[Message Bus](MessageBus.html)\n\n[Systems Mgmt.](SystemManagementIntro.html)\n\n[Control Bus](ControlBus.html)\n\n[Detour](Detour.html)\n\n[Wire Tap](WireTap.html)\n\n[Message History](MessageHistory.html)\n\n[Message Store](MessageStore.html)\n\n[Smart Proxy](SmartProxy.html)\n\n[Test Message](TestMessage.html)\n\n[Channel Purger](ChannelPurger.html)", "znaku_textu": 5751, "slov": 585, "odkazu": 108, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/RecipientList.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 14:55:35", "sha256": "42c235550196a7d27adb2b0a36e15e83c330ab5d225478bb229c34eb6e869ece", "hloubka": 3, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://creativecommons.org/licenses/by/4.0/", "https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "https://www.architectelevator.com/book", "https://www.cloudstrategybook.com/", "https://www.platformstrategybook.info/"]} {"url": "http://www.enterpriseintegrationpatterns.com/patterns/messaging/RequestReply.html", "titulek": "Request-Reply - Enterprise Integration Patterns", "h1": "", "popis": "When an application sends a message, how can it get a response from the receiver?", "klicova_slova": "Request-Reply,integration, messaging, events, patterns, event-driven, coupling, eai, middleware, application integration, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns", "og:title": "Request-Reply - Enterprise Integration Patterns", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/RequestReply.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/RequestReply.gif"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Integration Pattern Language"}], "markdown": "| | Request-Reply[Messaging Patterns](index.html) » [Message Construction](MessageConstructionIntro.html) | [Contents](toc.html)[⇐ Prev](EventMessage.html)[Next ⇒](ReturnAddress.html) |\n| --- | --- | --- |\n\nWhen two applications communicate via [*Messaging*](Messaging.html), the communication is one-way. The applications may want a two-way conversation.\n\nWhen an application sends a message, how can it get a response from the receiver?\n\nSend a pair of *Request-Reply* messages, each on its own channel.\n\n*Request-Reply* has two participants:\n\n1. **Requestor** – Sends a request message and waits for a reply message.\n2. **Replier** – Receives the request message and responds with a reply message.\n\nThe request channel can be a [*Point-to-Point Channel*](PointToPointChannel.html) or a [*Publish-Subscribe Channel*](PublishSubscribeChannel.html). The difference is whether the request should be broadcast to all interested parties or should only be processed by a single consumer. The reply channel, on the other hand, is almost always point-to-point, because it usually makes no sense to broadcast replies–they should only be returned to the requestor.\n\nWhen a caller performs a [*Remote Procedure Invocation*](EncapsulatedSynchronousIntegration.html), the caller's thread must block while it waits for the response. With *Request-Reply*, the requestor has two approaches for receiving the reply:\n\n1. **Synchronous Block** – A single thread in the caller sends the request message, blocks (as a [*Polling Consumer*](PollingConsumer.html) ) to wait for the reply message, then processes the reply. This is simple to implement, but if the requestor crashes, it will have difficulty re-establishing the blocked thread. The request thread awaiting the response implies that there is only one outstanding request, or that the reply channel for this request is private for this thread.\n2. **Asynchronous Callback** – One thread in the caller sends the request message and sets up a callback for the reply. A separate thread listens for reply messages. When a reply message arrives, the reply thread invokes the appropriate callback, which re-establishes the caller's context and processes the reply. This approach enables multiple outstanding requests to share a single reply channel, and a single reply thread to process replies for multiple request threads. If the requestor crashes, it can recover by simply restarting the reply thread. An added complexity, however, is the callback mechanism that must re-establish the caller's context.\n\n...\nRead the entire pattern in the book [Enterprise Integration Patterns](/books1.html)\n\n**Related patterns:**\n\n[*Command Message*](CommandMessage.html), [*Correlation Identifier*](CorrelationIdentifier.html), [*Document Message*](DocumentMessage.html), [*Remote Procedure Invocation*](EncapsulatedSynchronousIntegration.html), [*Event Message*](EventMessage.html), [*Guaranteed Delivery*](GuaranteedMessaging.html), [*Message*](Message.html), [*Message Channel*](MessageChannel.html), [*Message Sequence*](MessageSequence.html), [*Messaging*](Messaging.html), [*Point-to-Point Channel*](PointToPointChannel.html), [*Polling Consumer*](PollingConsumer.html), [*Publish-Subscribe Channel*](PublishSubscribeChannel.html), [*Return Address*](ReturnAddress.html)\n\n**Further reading:**\n\n- [Will the real asynchrony please stand up?](/ramblings/28_asynchrony.html)\n- [Can You Say \"Synchronous Asymmetry or Asynchronous Symmetry\"?](/ramblings/26_symmetry.html)\n- [Correlation and Conversations](/ramblings/09_correlation.html)\n\n---\n\n## Integration Pattern Language\n\n[Message Construct.](MessageConstructionIntro.html)\n\n[Message](Message.html)\n\n[Command Message](CommandMessage.html)\n\n[Document Message](DocumentMessage.html)\n\n[Event Message](EventMessage.html)\n\n[Request-Reply](RequestReply.html)\n\n[Return Address](ReturnAddress.html)\n\n[Correlation Identifier](CorrelationIdentifier.html)\n\n[Message Sequence](MessageSequence.html)\n\n[Message Expiration](MessageExpiration.html)\n\n[Format Indicator](FormatIndicator.html)\n\n[Message Routing](MessageRoutingIntro.html)\n\n[Pipes-and-Filters](PipesAndFilters.html)\n\n[Message Router](MessageRouter.html)\n\n[Content-based Router](ContentBasedRouter.html)\n\n[Message Filter](Filter.html)\n\n[Dynamic Router](DynamicRouter.html)\n\n[Recipient List](RecipientList.html)\n\n[Splitter](Sequencer.html)\n\n[Aggregator](Aggregator.html)\n\n[Resequencer](Resequencer.html)\n\n[Composed Msg. Processor](DistributionAggregate.html)\n\n[Scatter-Gather](BroadcastAggregate.html)\n\n[Routing Slip](RoutingTable.html)\n\n[Process Manager](ProcessManager.html)\n\n[Message Broker](MessageBroker.html)\n\n[Message\nTransformation](MessageTransformationIntro.html)\n\n[Message Translator](MessageTranslator.html)\n\n[Envelope Wrapper](EnvelopeWrapper.html)\n\n[Content Enricher](DataEnricher.html)\n\n[Content Filter](ContentFilter.html)\n\n[Claim Check](StoreInLibrary.html)\n\n[Normalizer](Normalizer.html)\n\n[Canonical Data Model](CanonicalDataModel.html)\n\n[Messaging Endpoints](MessagingEndpointsIntro.html)\n\n[Message Endpoint](MessageEndpoint.html)\n\n[Messaging Gateway](MessagingGateway.html)\n\n[Messaging Mapper](MessagingMapper.html)\n\n[Transactional Client](TransactionalClient.html)\n\n[Polling Consumer](PollingConsumer.html)\n\n[Event-driven Consumer](EventDrivenConsumer.html)\n\n[Competing Consumers](CompetingConsumers.html)\n\n[Message Dispatcher](MessageDispatcher.html)\n\n[Selective Consumer](MessageSelector.html)\n\n[Durable Subscriber](DurableSubscription.html)\n\n[Idempotent Receiver](IdempotentReceiver.html)\n\n[Service Activator](MessagingAdapter.html)\n\n[Messaging Channels](MessagingChannelsIntro.html)\n\n[Message Channel](MessageChannel.html)\n\n[Point-to-Point Channel](PointToPointChannel.html)\n\n[Publish-Subscr. Channel](PublishSubscribeChannel.html)\n\n[Datatype Channel](DatatypeChannel.html)\n\n[Invalid Message Channel](InvalidMessageChannel.html)\n\n[Dead Letter Channel](DeadLetterChannel.html)\n\n[Guaranteed Delivery](GuaranteedMessaging.html)\n\n[Channel Adapter](ChannelAdapter.html)\n\n[Messaging Bridge](MessagingBridge.html)\n\n[Message Bus](MessageBus.html)\n\n[Systems Mgmt.](SystemManagementIntro.html)\n\n[Control Bus](ControlBus.html)\n\n[Detour](Detour.html)\n\n[Wire Tap](WireTap.html)\n\n[Message History](MessageHistory.html)\n\n[Message Store](MessageStore.html)\n\n[Smart Proxy](SmartProxy.html)\n\n[Test Message](TestMessage.html)\n\n[Channel Purger](ChannelPurger.html)", "znaku_textu": 6253, "slov": 604, "odkazu": 111, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/RequestReply.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 14:55:21", "sha256": "6d79d9ec15c68a7547682feb84c4adaea407795c64a69c98b6fed273eb2cea5f", "hloubka": 3, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://creativecommons.org/licenses/by/4.0/", "https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "https://www.architectelevator.com/book", "https://www.cloudstrategybook.com/", "https://www.platformstrategybook.info/"]} {"url": "http://www.enterpriseintegrationpatterns.com/patterns/messaging/RequestReplyJmsExample.html", "titulek": "JMS Request/Reply Example - Enterprise Integration Patterns", "h1": "", "popis": "This is a simple example of how to use messaging, implemented in JMS [JMS]. It shows how to implement Request-Reply, where a requestor application sends a request, a replier application receives the request and returns a reply, and the requestor receives the reply. It also shows how an invalid message will be rerouted to a special channel.", "klicova_slova": "JMS Request/Reply Example,integration, messaging, events, patterns, event-driven, coupling, eai, middleware, application integration, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns", "og:title": "JMS Request/Reply Example - Enterprise Integration Patterns", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/RequestReplyJmsExample.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/eip1_patterns_wide.png"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Request/Reply Example"}, {"uroven": 2, "text": "Request/Reply Code"}, {"uroven": 2, "text": "Invalid Message Example"}, {"uroven": 2, "text": "Conclusions"}, {"uroven": 2, "text": "Integration Pattern Language"}], "markdown": "| | JMS Request/Reply Example[Messaging Patterns](index.html) » [Interlude: Simple Messaging](SimpleMessagingIntro.html) | [Contents](toc.html)[⇐ Prev](SimpleMessagingIntro.html)[Next ⇒](RequestReplyNetExample.html) |\n| --- | --- | --- |\n\nThis is a simple example of how to use messaging, implemented in JMS [[JMS](http://java.sun.com/products/jms/)]. It shows how to implement [*Request-Reply*](RequestReply.html), where a requestor application sends a request, a replier application receives the request and returns a reply, and the requestor receives the reply. It also shows how an invalid message will be rerouted to a special channel.\n\n*Components of the Request/Reply Example*\n\nThis example was developed using JMS 1.1 and run using the J2EE 1.4 reference implementation.\n\n## Request/Reply Example\n\nThis example consists of two main classes:\n\n1. **Requestor** — A [*Message Endpoint*](MessageEndpoint.html) that sends a request message and waits to receive a reply message as a response.\n2. **Replier** — A [*Message Endpoint*](MessageEndpoint.html) that waits to receive the request message; when it does, it responds by sending the reply message.\n\nThe Requestor and the Replier will each run in a separate Java virtual machine (JVM), which is what makes the communication distributed.\n\nThis example assumes that the messaging system has these three queues defined:\n\n1. **jms/RequestQueue** — The Queue the Requestor uses to send the request message to the Replier.\n2. **jms/ReplyQueue** — The Queue the Replier uses to send the reply message to the Requestor.\n3. **jms/InvalidMessages** — The Queue that the Requestor and Replier move a message to when they receive a message that they cannot interpret.\n\nHere's how the example works. When the Requestor is started in a command-line window, it starts and prints output like this:\n\n```\nSent request\n Time: 1048261736520 ms\n Message ID: ID:_XYZ123_1048261766139_6.2.1.1\n Correl. ID: null\n Reply to: com.sun.jms.Queue: jms/ReplyQueue\n Contents: Hello world.\n```\n\nWhat this shows is that the Requestor has sent a request message. Notice that this works even though the Replier isn't even running and therefore cannot receive the request.\n\nWhen the Replier is started in another command-line window, it starts and prints output like this:\n\n```\nReceived request\n Time: 1048261766790 ms\n Message ID: ID:_XYZ123_1048261766139_6.2.1.1\n Correl. ID: null\n Reply to: com.sun.jms.Queue: jms/ReplyQueue\n Contents: Hello world.\nSent reply\n Time: 1048261766850 ms\n Message ID: ID:_XYZ123_1048261758148_5.2.1.1\n Correl. ID: ID:_XYZ123_1048261766139_6.2.1.1\n Reply to: null\n Contents: Hello world.\n```\n\nThis shows that the Replier received the request message and sent a reply message.\n\nThere are several items in this output that are interesting to notice. First, notice the request send and received timestamps; the request was received after it was sent (30270 ms later). Second, notice that the message ID is the same in both cases, because it's the same message. Third, notice that the contents, \"Hello world,\" are the same, which is very good because this is the data being transmitted and it has got to be the same on both sides. (The request in this example is pretty lame. It is basically a [*Document Message*](DocumentMessage.html); a real request would usually be a [*Command Message*](CommandMessage.html).) Forth, the queue named \"jms/ReplyQueue\" has been specified in the request message as the destination for the reply message (an example of the [*Return Address*](ReturnAddress.html) pattern).\n\nNext, let's compare the output from receiving the request to that for sending the reply. First, notice the reply was not sent until after the request was received (60 ms after). Second, the message ID for the reply is different from that for the request; this is because the request and reply messages are different, separate messages. Third, the contents of the request have been extracted and added to the reply. Forth, the reply-to destination is unspecified because no reply is expected (the reply does not use the [*Return Address*](ReturnAddress.html) pattern). Fifth, the reply's correlation ID is the same as the request's message ID (the reply does use the [*Correlation Identifier*](CorrelationIdentifier.html) pattern).\n\nFinally, back in the first window, the requester received the reply:\n\n```\nReceived reply\n Time: 1048261797060 ms\n Message ID: ID:_XYZ123_1048261758148_5.2.1.1\n Correl. ID: ID:_XYZ123_1048261766139_6.2.1.1\n Reply to: null\n Contents: Hello world.\n```\n\nThis output contains several items of interest. The reply was received after it was sent (30210 ms). The message ID of the reply was the same when it was received as it was when it was sent, which proves that it is indeed the same message. The message contents received are the same as those sent. And the correlation ID tells the requestor which request this reply is for (the [*Correlation Identifier*](CorrelationIdentifier.html) pattern).\n\nNotice too that the requestor is designed to simply send a request, receive a reply, and exit. So having received the reply, the requestor is no longer running. The replier, on the other hand, doesn't know when it might receive a request, so it never stops running. To stop it, we go to its command shell window and press the return key, which causes the replier program to exit.\n\nSo this is the request/reply example. A request was prepared and sent by the requestor. The replier received the request and sent a reply. Then the requestor received the reply to its original request.\n\n## Request/Reply Code\n\nFirst, let's take a look at how the Requestor is implemented:\n\n```\nimport javax.jms.Connection;\nimport javax.jms.Destination;\nimport javax.jms.JMSException;\nimport javax.jms.Message;\nimport javax.jms.MessageConsumer;\nimport javax.jms.MessageProducer;\nimport javax.jms.Session;\nimport javax.jms.TextMessage;\nimport javax.naming.NamingException;\n\npublic class Requestor {\n\n\tprivate Session session;\n\tprivate Destination replyQueue;\n\tprivate MessageProducer requestProducer;\n\tprivate MessageConsumer replyConsumer;\n\tprivate MessageProducer invalidProducer;\n\n\tprotected Requestor() {\n\t\tsuper();\n\t}\n\n\tpublic static Requestor newRequestor(Connection connection, String requestQueueName,\n\t\tString replyQueueName, String invalidQueueName)\n\t\tthrows JMSException, NamingException {\n\t\t\t\n\t\tRequestor requestor = new Requestor();\n\t\trequestor.initialize(connection, requestQueueName, replyQueueName, invalidQueueName);\n\t\treturn requestor;\n\t}\n\n\tprotected void initialize(Connection connection, String requestQueueName,\n\t\tString replyQueueName, String invalidQueueName)\n\t\tthrows NamingException, JMSException {\n\t\t\t\n\t\tsession = connection.createSession(false, Session.AUTO_ACKNOWLEDGE);\n\t\t\n\t\tDestination requestQueue = JndiUtil.getDestination(requestQueueName);\n\t\treplyQueue = JndiUtil.getDestination(replyQueueName);\n\t\tDestination invalidQueue = JndiUtil.getDestination(invalidQueueName);\n\t\t\n\t\trequestProducer = session.createProducer(requestQueue);\n\t\treplyConsumer = session.createConsumer(replyQueue);\n\t\tinvalidProducer = session.createProducer(invalidQueue);\n\t}\n\n\tpublic void send() throws JMSException {\n\t\tTextMessage requestMessage = session.createTextMessage();\n\t\trequestMessage.setText(\"Hello world.\");\n\t\trequestMessage.setJMSReplyTo(replyQueue);\n\t\trequestProducer.send(requestMessage);\n\t\tSystem.out.println(\"Sent request\");\n\t\tSystem.out.println(\"\\tTime: \" + System.currentTimeMillis() + \" ms\");\n\t\tSystem.out.println(\"\\tMessage ID: \" + requestMessage.getJMSMessageID());\n\t\tSystem.out.println(\"\\tCorrel. ID: \" + requestMessage.getJMSCorrelationID());\n\t\tSystem.out.println(\"\\tReply to: \" + requestMessage.getJMSReplyTo());\n\t\tSystem.out.println(\"\\tContents: \" + requestMessage.getText());\n\t}\n\n\tpublic void receiveSync() throws JMSException {\n\t\tMessage msg = replyConsumer.receive();\n\t\tif (msg instanceof TextMessage) {\n\t\t\tTextMessage replyMessage = (TextMessage) msg;\n\t\t\tSystem.out.println(\"Received reply \");\n\t\t\tSystem.out.println(\"\\tTime: \" + System.currentTimeMillis() + \" ms\");\n\t\t\tSystem.out.println(\"\\tMessage ID: \" + replyMessage.getJMSMessageID());\n\t\t\tSystem.out.println(\"\\tCorrel. ID: \" + replyMessage.getJMSCorrelationID());\n\t\t\tSystem.out.println(\"\\tReply to: \" + replyMessage.getJMSReplyTo());\n\t\t\tSystem.out.println(\"\\tContents: \" + replyMessage.getText());\n\t\t} else {\n\t\t\tSystem.out.println(\"Invalid message detected\");\n\t\t\tSystem.out.println(\"\\tType: \" + msg.getClass().getName());\n\t\t\tSystem.out.println(\"\\tTime: \" + System.currentTimeMillis() + \" ms\");\n\t\t\tSystem.out.println(\"\\tMessage ID: \" + msg.getJMSMessageID());\n\t\t\tSystem.out.println(\"\\tCorrel. ID: \" + msg.getJMSCorrelationID());\n\t\t\tSystem.out.println(\"\\tReply to: \" + msg.getJMSReplyTo());\n\n\t\t\tmsg.setJMSCorrelationID(msg.getJMSMessageID());\n\t\t\tinvalidProducer.send(msg);\n\n\t\t\tSystem.out.println(\"Sent to invalid message queue\");\n\t\t\tSystem.out.println(\"\\tType: \" + msg.getClass().getName());\n\t\t\tSystem.out.println(\"\\tTime: \" + System.currentTimeMillis() + \" ms\");\n\t\t\tSystem.out.println(\"\\tMessage ID: \" + msg.getJMSMessageID());\n\t\t\tSystem.out.println(\"\\tCorrel. ID: \" + msg.getJMSCorrelationID());\n\t\t\tSystem.out.println(\"\\tReply to: \" + msg.getJMSReplyTo());\n\t\t}\n\t}\n}\n```\n\nAn application that wants to send requests and recieve replies could use a requestor to do so. The application provides its requestor a Connection to the messaging system. It also specifies the JNDI names of three queues: the request queue, the reply queue, and the invalid message queue. This is the information the requestor needs to initialize itself.\n\nIn initialize, the requestor uses the Connection and queue names to connect to the messaging system.\n\n- It uses the Connection to create a Session . An application only needs one connection to a messaging system, but each component in the application that wishes to be able to send and receive messages independently needs its own session. Two threads cannot share a single session; they should each use a different session so that the sessions will work properly.\n- It uses the queue names to look up the queues, which are Destination s. The names are JNDI identifiers; JndiUtil performs the JNDI lookups.\n- It creates a MessageProducer for sending messages on the request queue, a MessageConsumer for receiving messages from the reply queue, and another producer for moving messages to the invalid message queue.\n\nOne thing that the requestor needs to be able to do is send request messages. For that, it implements the send() method.\n\n- It creates a TextMessage and sets its contents to \"Hello world.\"\n- It sets the message's reply-to property to be the reply queue. This is a [*Return Address*](ReturnAddress.html) that will tell the replier how to send back the reply.\n- It uses the requestProducer to send the message. The producer is connected to the request queue, so that's the queue the message is sent on.\n- It then prints out the details of the message it just sent. This is done after the message is sent because the message ID is set by the messaging system and is not set until the message is actually sent.\n\nThe other thing the requestor needs to be able to do is receive reply messages. It implements the receiveSync() method for this purpose.\n\n- It uses its replyConsumer to receive the reply. The consumer is connected to the reply queue, so it will receive messages from there. It uses the receive() method to get the message, which synchronously blocks until a message is delivered to the queue and is read from the queue, so the requestor is a [*Polling Consumer*](PollingConsumer.html) . Because this receive is synchronous, the requestor's method is called receiveSync() .\n- The message should be a TextMessage . If so, the requestor gets the message's contents and prints out the message's details.\n- If the message is not a TextMessage , then the message cannot be processed. Rather than just discarding the message, the requestor resends it to the invalid message queue. Resending the message will change its message ID, so before resending it, the requestor stores its original message ID in its correlation ID (see [*Correlation Identifier*](CorrelationIdentifier.html) ).\n\nIn this way, a requestor does everything necessary to send a request, receive a reply, and route the reply to a special queue if the message does not make any sense.\n\nNext, let's take a look at how the Replier is implemented:\n\n```\nimport javax.jms.Connection;\nimport javax.jms.Destination;\nimport javax.jms.JMSException;\nimport javax.jms.Message;\nimport javax.jms.MessageConsumer;\nimport javax.jms.MessageListener;\nimport javax.jms.MessageProducer;\nimport javax.jms.Session;\nimport javax.jms.TextMessage;\nimport javax.naming.NamingException;\n\npublic class Replier implements MessageListener {\n\n\tprivate Session session;\n\tprivate MessageProducer invalidProducer;\n\n\tprotected Replier() {\n\t\tsuper();\n\t}\n\n\tpublic static Replier newReplier(Connection connection, String requestQueueName, String invalidQueueName)\n\t\tthrows JMSException, NamingException {\n\n\t\tReplier replier = new Replier();\n\t\treplier.initialize(connection, requestQueueName, invalidQueueName);\n\t\treturn replier;\n\t}\n\n\tprotected void initialize(Connection connection, String requestQueueName, String invalidQueueName)\n\t\tthrows NamingException, JMSException {\n\n\t\tsession = connection.createSession(false, Session.AUTO_ACKNOWLEDGE);\n\t\tDestination requestQueue = JndiUtil.getDestination(requestQueueName);\n\t\tDestination invalidQueue = JndiUtil.getDestination(invalidQueueName);\n\n\t\tMessageConsumer requestConsumer = session.createConsumer(requestQueue);\n\t\tMessageListener listener = this;\n\t\trequestConsumer.setMessageListener(listener);\n\n\t\tinvalidProducer = session.createProducer(invalidQueue);\n\t}\n\n\tpublic void onMessage(Message message) {\n\t\ttry {\n\t\t\tif ((message instanceof TextMessage) && (message.getJMSReplyTo() != null)) {\n\t\t\t\tTextMessage requestMessage = (TextMessage) message;\n\n\t\t\t\tSystem.out.println(\"Received request\");\n\t\t\t\tSystem.out.println(\"\\tTime: \" + System.currentTimeMillis() + \" ms\");\n\t\t\t\tSystem.out.println(\"\\tMessage ID: \" + requestMessage.getJMSMessageID());\n\t\t\t\tSystem.out.println(\"\\tCorrel. ID: \" + requestMessage.getJMSCorrelationID());\n\t\t\t\tSystem.out.println(\"\\tReply to: \" + requestMessage.getJMSReplyTo());\n\t\t\t\tSystem.out.println(\"\\tContents: \" + requestMessage.getText());\n\n\t\t\t\tString contents = requestMessage.getText();\n\t\t\t\tDestination replyDestination = message.getJMSReplyTo();\n\t\t\t\tMessageProducer replyProducer = session.createProducer(replyDestination);\n\n\t\t\t\tTextMessage replyMessage = session.createTextMessage();\n\t\t\t\treplyMessage.setText(contents);\n\t\t\t\treplyMessage.setJMSCorrelationID(requestMessage.getJMSMessageID());\n\t\t\t\treplyProducer.send(replyMessage);\n\n\t\t\t\tSystem.out.println(\"Sent reply\");\n\t\t\t\tSystem.out.println(\"\\tTime: \" + System.currentTimeMillis() + \" ms\");\n\t\t\t\tSystem.out.println(\"\\tMessage ID: \" + replyMessage.getJMSMessageID());\n\t\t\t\tSystem.out.println(\"\\tCorrel. ID: \" + replyMessage.getJMSCorrelationID());\n\t\t\t\tSystem.out.println(\"\\tReply to: \" + replyMessage.getJMSReplyTo());\n\t\t\t\tSystem.out.println(\"\\tContents: \" + replyMessage.getText());\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"Invalid message detected\");\n\t\t\t\tSystem.out.println(\"\\tType: \" + message.getClass().getName());\n\t\t\t\tSystem.out.println(\"\\tTime: \" + System.currentTimeMillis() + \" ms\");\n\t\t\t\tSystem.out.println(\"\\tMessage ID: \" + message.getJMSMessageID());\n\t\t\t\tSystem.out.println(\"\\tCorrel. ID: \" + message.getJMSCorrelationID());\n\t\t\t\tSystem.out.println(\"\\tReply to: \" + message.getJMSReplyTo());\n\n\t\t\t\tmessage.setJMSCorrelationID(message.getJMSMessageID());\n\t\t\t\tinvalidProducer.send(message);\n\n\t\t\t\tSystem.out.println(\"Sent to invalid message queue\");\n\t\t\t\tSystem.out.println(\"\\tType: \" + message.getClass().getName());\n\t\t\t\tSystem.out.println(\"\\tTime: \" + System.currentTimeMillis() + \" ms\");\n\t\t\t\tSystem.out.println(\"\\tMessage ID: \" + message.getJMSMessageID());\n\t\t\t\tSystem.out.println(\"\\tCorrel. ID: \" + message.getJMSCorrelationID());\n\t\t\t\tSystem.out.println(\"\\tReply to: \" + message.getJMSReplyTo());\n\t\t\t}\n\t\t} catch (JMSException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}\n}\n```\n\nReplier is what an application might use to receive a request and send a reply. The application provides its requestor a Connection to the messaging system, as well as the JNDI names of the request and invalid message queues. (It does not need to specify the name of the reply queue because, as we'll see, that will be provided by the message's [*Return Address*](ReturnAddress.html).) This is the information the requestor needs to initialize itself.\n\nThe replier's initialize code is pretty similar to the requestor's, but there are a couple of differences:\n\n- One difference is that the replier does not look up the reply queue and create a producer for it. This is because the replier does not assume it will always send replies on that queue; rather, as we'll see it will let the request message tell it what queue to send the reply message on.\n- Another difference is that replier is an [*Event-Driven Consumer*](EventDrivenConsumer.html) , so it implements MessageListener . When a message is delivered to the request queue, the messaging system will automatically call the replier's onMessage method.\n\nOnce the replier has initialized itself to be a listener on the request queue, there's not much for it to do but wait for messages. Unlike the requestor, which has to explicitedly poll the reply queue for messages, the replier is event-driven and so does nothing until the messaging system calls its onMessage method with a new message. The message will be from the request queue because initialize created the consumer on the request queue. Once onMessage receives a new message, it processes the message like this:\n\n- Like with the requestor processing a reply message, the request message is supposed to be a TextMessage . It is also supposed to specify the queue to send the reply on. If the message does not meet these requirements, the replier will move the message to the invalid message queue (same as the requestor).\n- If the message meets the requirements: Here is where the replier implements its part of the [*Return Address*](ReturnAddress.html) pattern. Remember that the requestor set the request message's reply-to property to specify the reply queue. The replier now gets that property's value and uses it to create a MessageProducer on the proper queue. The important part here is that the replier is not hard-coded to use a particular reply queue; it uses whatever reply queue each particular request message specifies.\n- The replier then creates the reply message. In doing so, it implements the [*Correlation Identifier*](CorrelationIdentifier.html) pattern by setting the relpy message's correlation-id property to the same value as the request message's message-id property.\n- The replier then sends out the reply message and displays its details.\n\nThus a replier does everything necessary to receive a message (presumably a request) and send a reply.\n\n## Invalid Message Example\n\nWhile we're at it, let's look at an example of the [*Invalid Message Channel*](InvalidMessageChannel.html) pattern. Remember, one of the queues we need is one named \"jms/InvalidMessages.\" This exists so that if a JMS client (a [*Message Endpoint*](MessageEndpoint.html)) receives a message it cannot process, it can move the strange message to a special channel.\n\nTo demonstrate invalid message handling, we have designed an InvalidMessenger class. This object is specifically designed to send a message on the request channel whose format is incorrect. Like any channel, the request channel is a [*Datatype Channel*](DatatypeChannel.html), in that the request receivers expect the requests to be of a certain format. The invalid messenger simply sends a message of a different format; when the replier receives the message, it does not recognize the message's format, and so moves the message to the invalid message queue.\n\nWe'll run the Replier in one window and the Invalid Messenger in another window. When the invalid messenger sends its message, it displays output like this:\n\n```\nSent invalid message\n Type: com.sun.jms.ObjectMessageImpl\n Time: 1048288516959 ms\n Message ID: ID:_XYZ123_1048288516639_7.2.1.1\n Correl. ID: null\n Reply to: com.sun.jms.Queue: jms/ReplyQueue\n```\n\nThis shows that the message is an instance of ObjectMessage (whereas the replier is expecting a TextMessage). The Replier recieves the invalid message and resends it to the invalid message queue:\n\n```\nInvalid message detected\n Type: com.sun.jms.ObjectMessageImpl\n Time: 1048288517049 ms\n Message ID: ID:_XYZ123_1048288516639_7.2.1.1\n Correl. ID: null\n Reply to: com.sun.jms.Queue: jms/ReplyQueue\nSent to invalid message queue\n Type: com.sun.jms.ObjectMessageImpl\n Time: 1048288517140 ms\n Message ID: ID:_XYZ123_1048287020267_6.2.1.2\n Correl. ID: ID:_XYZ123_1048288516639_7.2.1.1\n Reply to: com.sun.jms.Queue: jms/ReplyQueue\n```\n\nOne insight worth noting is that when the message is moved to the invalid message queue, it is actually being resent, so it gets a new message ID. Because of this, we apply the [*Correlation Identifier*](CorrelationIdentifier.html) pattern; once the replier determines the message to be invalid, it copies the message's main ID to its correlation ID so as to preserve a record of the message's original ID.\n\nThe code that handles this invalid-message processing is in the Replier class shown earlier, in the onMessage method. Requestor.receiveSync() contains similar invalid-message processing code.\n\n## Conclusions\n\nWe've seen how to implement two classes, Requestor and Replier ([*Message Endpoint*](MessageEndpoint.html)s), that exchange a request and reply [*Message*](Message.html)s using [*Request-Reply*](RequestReply.html). The request message uses a [*Return Address*](ReturnAddress.html) to specify what queue to send the reply on. The reply messages uses a [*Correlation Identifier*](CorrelationIdentifier.html) to specify which request this is a reply for. The Requestor implements a [*Polling Consumer*](PollingConsumer.html) to receive replies, whereas the Replier implements an [*Event-Driven Consumer*](EventDrivenConsumer.html) to receive requests. The request and reply queues are [*Datatype Channel*](DatatypeChannel.html)s; when a consumer receives a message that is not of the right type, it reroutes the message to the [*Invalid Message Channel*](InvalidMessageChannel.html).\n\n## Integration Pattern Language\n\n[Message Construct.](MessageConstructionIntro.html)\n\n[Message](Message.html)\n\n[Command Message](CommandMessage.html)\n\n[Document Message](DocumentMessage.html)\n\n[Event Message](EventMessage.html)\n\n[Request-Reply](RequestReply.html)\n\n[Return Address](ReturnAddress.html)\n\n[Correlation Identifier](CorrelationIdentifier.html)\n\n[Message Sequence](MessageSequence.html)\n\n[Message Expiration](MessageExpiration.html)\n\n[Format Indicator](FormatIndicator.html)\n\n[Message Routing](MessageRoutingIntro.html)\n\n[Pipes-and-Filters](PipesAndFilters.html)\n\n[Message Router](MessageRouter.html)\n\n[Content-based Router](ContentBasedRouter.html)\n\n[Message Filter](Filter.html)\n\n[Dynamic Router](DynamicRouter.html)\n\n[Recipient List](RecipientList.html)\n\n[Splitter](Sequencer.html)\n\n[Aggregator](Aggregator.html)\n\n[Resequencer](Resequencer.html)\n\n[Composed Msg. Processor](DistributionAggregate.html)\n\n[Scatter-Gather](BroadcastAggregate.html)\n\n[Routing Slip](RoutingTable.html)\n\n[Process Manager](ProcessManager.html)\n\n[Message Broker](MessageBroker.html)\n\n[Message\nTransformation](MessageTransformationIntro.html)\n\n[Message Translator](MessageTranslator.html)\n\n[Envelope Wrapper](EnvelopeWrapper.html)\n\n[Content Enricher](DataEnricher.html)\n\n[Content Filter](ContentFilter.html)\n\n[Claim Check](StoreInLibrary.html)\n\n[Normalizer](Normalizer.html)\n\n[Canonical Data Model](CanonicalDataModel.html)\n\n[Messaging Endpoints](MessagingEndpointsIntro.html)\n\n[Message Endpoint](MessageEndpoint.html)\n\n[Messaging Gateway](MessagingGateway.html)\n\n[Messaging Mapper](MessagingMapper.html)\n\n[Transactional Client](TransactionalClient.html)\n\n[Polling Consumer](PollingConsumer.html)\n\n[Event-driven Consumer](EventDrivenConsumer.html)\n\n[Competing Consumers](CompetingConsumers.html)\n\n[Message Dispatcher](MessageDispatcher.html)\n\n[Selective Consumer](MessageSelector.html)\n\n[Durable Subscriber](DurableSubscription.html)\n\n[Idempotent Receiver](IdempotentReceiver.html)\n\n[Service Activator](MessagingAdapter.html)\n\n[Messaging Channels](MessagingChannelsIntro.html)\n\n[Message Channel](MessageChannel.html)\n\n[Point-to-Point Channel](PointToPointChannel.html)\n\n[Publish-Subscr. Channel](PublishSubscribeChannel.html)\n\n[Datatype Channel](DatatypeChannel.html)\n\n[Invalid Message Channel](InvalidMessageChannel.html)\n\n[Dead Letter Channel](DeadLetterChannel.html)\n\n[Guaranteed Delivery](GuaranteedMessaging.html)\n\n[Channel Adapter](ChannelAdapter.html)\n\n[Messaging Bridge](MessagingBridge.html)\n\n[Message Bus](MessageBus.html)\n\n[Systems Mgmt.](SystemManagementIntro.html)\n\n[Control Bus](ControlBus.html)\n\n[Detour](Detour.html)\n\n[Wire Tap](WireTap.html)\n\n[Message History](MessageHistory.html)\n\n[Message Store](MessageStore.html)\n\n[Smart Proxy](SmartProxy.html)\n\n[Test Message](TestMessage.html)\n\n[Channel Purger](ChannelPurger.html)", "znaku_textu": 24821, "slov": 3009, "odkazu": 108, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 14:55:28", "sha256": "713e6f66ba661d91f9ddc35740753a1380522e51c5bbd5e44e498c27d105e639", "hloubka": 3, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://java.sun.com/products/jms/", "https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "https://www.architectelevator.com/book", "https://www.cloudstrategybook.com/", "https://www.platformstrategybook.info/"]} {"url": "http://www.enterpriseintegrationpatterns.com/patterns/messaging/RequestReplyNetExample.html", "titulek": ".NET Request/Reply Example - Enterprise Integration Patterns", "h1": "", "popis": "This is a simple example of how to use messaging, implemented in .NET [SysMsg] and C#. It shows how to implement Request-Reply, where a requestor application sends a request, a replier application receives the request and returns a reply, and the requestor receives the reply. It also shows how an invalid message will be rerouted to a special channel.", "klicova_slova": ".NET Request/Reply Example,integration, messaging, events, patterns, event-driven, coupling, eai, middleware, application integration, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns", "og:title": ".NET Request/Reply Example - Enterprise Integration Patterns", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/RequestReplyNetExample.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/eip1_patterns_wide.png"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Request/Reply Example"}, {"uroven": 2, "text": "Request/Reply Code"}, {"uroven": 2, "text": "Invalid Message Example"}, {"uroven": 2, "text": "Conclusions"}, {"uroven": 2, "text": "Integration Pattern Language"}], "markdown": "| | .NET Request/Reply Example[Messaging Patterns](index.html) » [Interlude: Simple Messaging](SimpleMessagingIntro.html) | [Contents](toc.html)[⇐ Prev](RequestReplyJmsExample.html)[Next ⇒](ObserverJmsExample.html) |\n| --- | --- | --- |\n\nThis is a simple example of how to use messaging, implemented in .NET [[SysMsg](http://msdn.microsoft.com/library/)] and C#. It shows how to implement [*Request-Reply*](RequestReply.html), where a requestor application sends a request, a replier application receives the request and returns a reply, and the requestor receives the reply. It also shows how an invalid message will be rerouted to a special channel.\n\n*Components of the Request/Reply Example*\n\nThis example was developed using the Microsoft .NET Framework SDK and run on a Windows XP computer with MSMQ [[MSMQ01](http://www.microsoft.com/msmq)] installed.\n\n## Request/Reply Example\n\nThis example consists of two main classes:\n\n1. **Requestor** — A [*Message Endpoint*](MessageEndpoint.html) that sends a request message and waits to receive a reply message as a response.\n2. **Replier** — A [*Message Endpoint*](MessageEndpoint.html) that waits to receive the request message; when it does, it responds by sending the reply message.\n\nThe Requestor and the Replier will each run as a separate .NET program, which is what makes the communication distributed.\n\nThis example assumes that the messaging system has these three queues defined:\n\n1. **.\\private$\\RequestQueue** — The MessageQueue the Requestor uses to send the request message to the Replier.\n2. **.\\private$\\ReplyQueue** — The MessageQueue the Replier uses to send the reply message to the Requestor.\n3. **.\\private$\\InvalidQueue** — The MessageQueue that the Requestor and Replier move a message to when they receive a message that they cannot interpret.\n\nHere's how the example works. When the Requestor is started in a command-line window, it starts and prints output like this:\n\n```\nSent request\n Time: 09:11:09.165342\n Message ID: 8b0fc389-f21f-423b-9eaa-c3a881a34808\\149\n Correl. ID:\n Reply to: .\\private$\\ReplyQueue\n Contents: Hello world.\n```\n\nWhat this shows is that the Requestor has sent a request message. Notice that this works even though the Replier isn't even running and therefore cannot receive the request.\n\nWhen the Replier is started in another command-line window, it starts and prints output like this:\n\n```\nReceived request\n Time: 09:11:09.375644\n Message ID: 8b0fc389-f21f-423b-9eaa-c3a881a34808\\149\n Correl. ID: \n Reply to: FORMATNAME:DIRECT=OS:XYZ123\\private$\\ReplyQueue\n Contents: Hello world.\nSent reply\n Time: 09:11:09.956480\n Message ID: 8b0fc389-f21f-423b-9eaa-c3a881a34808\\150\n Correl. ID: 8b0fc389-f21f-423b-9eaa-c3a881a34808\\149\n Reply to: \n Contents: Hello world.\n```\n\nThis shows that the Replier received the request message and sent a reply message.\n\nThere are several items in this output that are interesting to notice. First, notice the request send and received timestamps; the request was received after it was sent (210302 ms later). Second, notice that the message ID is the same in both cases, because it's the same message. Third, notice that the contents, \"Hello world,\" are the same, which is very good because this is the data being transmitted and it has got to be the same on both sides. (The request in this example is pretty lame. It is basically a [*Document Message*](DocumentMessage.html); a real request would usually be a [*Command Message*](CommandMessage.html).) Forth, the queue named \"jms/ReplyQueue\" has been specified in the request message as the destination for the reply message (an example of the [*Return Address*](ReturnAddress.html) pattern).\n\nNext, let's compare the output from receiving the request to that for sending the reply. First, notice the reply was not sent until after the request was received (580836 ms after). Second, the message ID for the reply is different from that for the request; this is because the request and reply messages are different, separate messages. Third, the contents of the request have been extracted and added to the reply. Forth, the reply-to destination is unspecified because no reply is expected (the reply does not use the [*Return Address*](ReturnAddress.html) pattern). Fifth, the reply's correlation ID is the same as the request's message ID (the reply does use the [*Correlation Identifier*](CorrelationIdentifier.html) pattern).\n\nFinally, back in the first window, the requester received the reply:\n\n```\nReceived reply\n Time: 09:11:10.156467\n Message ID: 8b0fc389-f21f-423b-9eaa-c3a881a34808\\150\n Correl. ID: 8b0fc389-f21f-423b-9eaa-c3a881a34808\\149\n Reply to: \n Contents: Hello world.\n```\n\nThis output contains several items of interest. The reply was received after it was sent (199987 ms). The message ID of the reply was the same when it was received as it was when it was sent, which proves that it is indeed the same message. The message contents received are the same as those sent. And the correlation ID tells the requestor which request this reply is for (the [*Correlation Identifier*](CorrelationIdentifier.html) pattern).\n\nNotice too that the requestor is designed to simply send a request, receive a reply, and exit. So having received the reply, the requestor is no longer running. The replier, on the other hand, doesn't know when it might receive a request, so it never stops running. To stop it, we go to its command shell window and press the return key, which causes the replier program to exit.\n\nSo this is the request/reply example. A request was prepared and sent by the requestor. The replier received the request and sent a reply. Then the requestor received the reply to its original request.\n\n## Request/Reply Code\n\nFirst, let's take a look at how the Requestor is implemented:\n\n```\nusing System;\nusing System.Messaging;\n\npublic class Requestor\n{\n\tprivate MessageQueue requestQueue;\n\tprivate MessageQueue replyQueue;\n\t\n\tpublic Requestor(String requestQueueName, String replyQueueName)\n\t{\n\t\trequestQueue = new MessageQueue(requestQueueName);\n\t\treplyQueue = new MessageQueue(replyQueueName);\n\n\t\treplyQueue.MessageReadPropertyFilter.SetAll();\n\t\t((XmlMessageFormatter)replyQueue.Formatter).TargetTypeNames = new string[]{\"System.String,mscorlib\"};\n\t}\n\t\n\tpublic void Send()\n\t{\n\t\tMessage requestMessage = new Message();\n\t\trequestMessage.Body = \"Hello world.\";\n\t\trequestMessage.ResponseQueue = replyQueue;\n\t\trequestQueue.Send(requestMessage);\n\t\t\n\t\tConsole.WriteLine(\"Sent request\");\n\t\tConsole.WriteLine(\"\\tTime: {0}\", DateTime.Now.ToString(\"HH:mm:ss.ffffff\"));\n\t\tConsole.WriteLine(\"\\tMessage ID: {0}\", requestMessage.Id);\n\t\tConsole.WriteLine(\"\\tCorrel. ID: {0}\", requestMessage.CorrelationId);\n\t\tConsole.WriteLine(\"\\tReply to: {0}\", requestMessage.ResponseQueue.Path);\n\t\tConsole.WriteLine(\"\\tContents: {0}\", requestMessage.Body.ToString());\n\t}\n \n\tpublic void ReceiveSync()\n\t{\n\t\tMessage replyMessage = replyQueue.Receive();\n\n\t\tConsole.WriteLine(\"Received reply\");\n\t\tConsole.WriteLine(\"\\tTime: {0}\", DateTime.Now.ToString(\"HH:mm:ss.ffffff\"));\n\t\tConsole.WriteLine(\"\\tMessage ID: {0}\", replyMessage.Id);\n\t\tConsole.WriteLine(\"\\tCorrel. ID: {0}\", replyMessage.CorrelationId);\n\t\tConsole.WriteLine(\"\\tReply to: {0}\", \"\");\n\t\tConsole.WriteLine(\"\\tContents: {0}\", replyMessage.Body.ToString());\n\t}\n}\n```\n\nAn application that wants to send requests and recieve replies could use a requestor to do so. The application specifies the pathnames of two queues: the request queue and the reply queue. This is the information the requestor needs to initialize itself.\n\nIn the Requestor constructor, the requestor uses the queue names to connect to the messaging system.\n\n- It uses the queue names to look up the queues, which are MessageQueue s. The names are pathnames to MSMQ resources.\n- It sets the reply queue's property filter so that when a message is read from the queue, all of the message's properties will be read as well. It also sets the queue's formatter to be an XmlMessageFormatter so that the message contents will be interpreted as strings.\n\nOne thing that the requestor needs to be able to do is send request messages. For that, it implements the Send() method.\n\n- It creates a Message and sets its contents to \"Hello world.\"\n- It sets the message's ResponseQueue property to be the reply queue. This is a [*Return Address*](ReturnAddress.html) that will tell the replier how to send back the reply.\n- It then sends the message to the queue.\n- It then prints out the details of the message it just sent. This is done after the message is sent because the message ID is set by the messaging system and is not set until the message is actually sent.\n\nThe other thing the requestor needs to be able to do is receive reply messages. It implements the ReceiveSync() method for this purpose.\n\n- It runs the queue's Receive() method to get the message, which synchronously blocks until a message is delivered to the queue and is read from the queue, so the requestor is a [*Polling Consumer*](PollingConsumer.html) . Because this receive is synchronous, the requestor's method is called ReceiveSync() .\n- The requestor gets the message's contents and prints out the message's details.\n\nIn this way, a requestor does everything necessary to send a request and receive a reply.\n\nNext, let's take a look at how the Replier is implemented:\n\n```\nusing System;\nusing System.Messaging;\n\nclass Replier {\n\t\n\tprivate MessageQueue invalidQueue;\n\t\n\tpublic Replier(String requestQueueName, String invalidQueueName)\n\t{\n\t\tMessageQueue requestQueue = new MessageQueue(requestQueueName);\n\t\tinvalidQueue = new MessageQueue(invalidQueueName);\n\t\t\n\t\trequestQueue.MessageReadPropertyFilter.SetAll();\n\t\t((XmlMessageFormatter)requestQueue.Formatter).TargetTypeNames = new string[]{\"System.String,mscorlib\"};\n\n\t\trequestQueue.ReceiveCompleted += new ReceiveCompletedEventHandler(OnReceiveCompleted);\n\t\trequestQueue.BeginReceive();\n\t}\n\t\n\tpublic void OnReceiveCompleted(Object source, ReceiveCompletedEventArgs asyncResult)\n\t{\n\t\tMessageQueue requestQueue = (MessageQueue)source;\n\t\tMessage requestMessage = requestQueue.EndReceive(asyncResult.AsyncResult);\n\n\t\ttry\n\t\t{\n\t\t\tConsole.WriteLine(\"Received request\");\n\t\t\tConsole.WriteLine(\"\\tTime: {0}\", DateTime.Now.ToString(\"HH:mm:ss.ffffff\"));\n\t\t\tConsole.WriteLine(\"\\tMessage ID: {0}\", requestMessage.Id);\n\t\t\tConsole.WriteLine(\"\\tCorrel. ID: {0}\", \"\");\n\t\t\tConsole.WriteLine(\"\\tReply to: {0}\", requestMessage.ResponseQueue.Path);\n\t\t\tConsole.WriteLine(\"\\tContents: {0}\", requestMessage.Body.ToString());\n\t\n\t\t\tstring contents = requestMessage.Body.ToString();\n\t\t\tMessageQueue replyQueue = requestMessage.ResponseQueue;\n\t\t\tMessage replyMessage = new Message();\n\t\t\treplyMessage.Body = contents;\n\t\t\treplyMessage.CorrelationId = requestMessage.Id;\n\t\t\treplyQueue.Send(replyMessage);\n\t\n\t\t\tConsole.WriteLine(\"Sent reply\");\n\t\t\tConsole.WriteLine(\"\\tTime: {0}\", DateTime.Now.ToString(\"HH:mm:ss.ffffff\"));\n\t\t\tConsole.WriteLine(\"\\tMessage ID: {0}\", replyMessage.Id);\n\t\t\tConsole.WriteLine(\"\\tCorrel. ID: {0}\", replyMessage.CorrelationId);\n\t\t\tConsole.WriteLine(\"\\tReply to: {0}\", \"\");\n\t\t\tConsole.WriteLine(\"\\tContents: {0}\", replyMessage.Body.ToString());\n\t\t}\n\t\tcatch ( Exception ) {\n\t\t\tConsole.WriteLine(\"Invalid message detected\");\n\t\t\tConsole.WriteLine(\"\\tType: {0}\", requestMessage.BodyType);\n\t\t\tConsole.WriteLine(\"\\tTime: {0}\", DateTime.Now.ToString(\"HH:mm:ss.ffffff\"));\n\t\t\tConsole.WriteLine(\"\\tMessage ID: {0}\", requestMessage.Id);\n\t\t\tConsole.WriteLine(\"\\tCorrel. ID: {0}\", \"\");\n\t\t\tConsole.WriteLine(\"\\tReply to: {0}\", \"\");\n\t\t\t\n\t\t\trequestMessage.CorrelationId = requestMessage.Id;\n\t\t\t\n\t\t\tinvalidQueue.Send(requestMessage);\n\t\t\t\n\t\t\tConsole.WriteLine(\"Sent to invalid message queue\");\n\t\t\tConsole.WriteLine(\"\\tType: {0}\", requestMessage.BodyType);\n\t\t\tConsole.WriteLine(\"\\tTime: {0}\", DateTime.Now.ToString(\"HH:mm:ss.ffffff\"));\n\t\t\tConsole.WriteLine(\"\\tMessage ID: {0}\", requestMessage.Id);\n\t\t\tConsole.WriteLine(\"\\tCorrel. ID: {0}\", requestMessage.CorrelationId);\n\t\t\tConsole.WriteLine(\"\\tReply to: {0}\", requestMessage.ResponseQueue.Path);\n\t\t}\n\t\t\n\t\trequestQueue.BeginReceive();\n\t}\n}\n```\n\nReplier is what an application might use to receive a request and send a reply. The application specifies the pathnames of the request and invalid message queues. (It does not need to specify the name of the reply queue because, as we'll see, that will be provided by the message's [*Return Address*](ReturnAddress.html).) This is the information the requestor needs to initialize itself.\n\nThe Replier constructor is pretty similar to the requestor's, but there are a couple of differences:\n\n- One difference is that the replier does not look up the reply queue. This is because the replier does not assume it will always send replies on that queue; rather, as we'll see it will let the request message tell it what queue to send the reply message on.\n- Another difference is that replier is an [*Event-Driven Consumer*](EventDrivenConsumer.html) , so it sets up a ReceiveCompletedEventHandler . When a message is delivered to the request queue, the messaging system will automatically call the specified method, OnReceiveCompleted .\n\nOnce the replier has initialized itself to be a listener on the request queue, there's not much for it to do but wait for messages. Unlike the requestor, which has to explicitedly poll the reply queue for messages, the replier is event-driven and so does nothing until the messaging system calls its OnReceiveCompleted method with a new message. The message will be from the request queue because the constructor created the event handler on the request queue. Once OnReceiveCompleted is called, this is what it does to get the new message and processes it:\n\n- The source is a MessageQueue , the request queue.\n- The message itself is obtained by running the queue's EndReceive method. The replier then prints out the details about the message.\n- Then the replier implements its part of the [*Return Address*](ReturnAddress.html) pattern. Remember that the requestor set the request message's response-queue property to specify the reply queue. The replier now gets that property's value and uses it reference the proper MessageQueue . The important part here is that the replier is not hard-coded to use a particular reply queue; it uses whatever reply queue each particular request message specifies.\n- The replier then creates the reply message. In doing so, it implements the [*Correlation Identifier*](CorrelationIdentifier.html) pattern by setting the relpy message's correlation-id property to the same value as the request message's message-id property.\n- The replier then sends out the reply message and displays its details.\n- If the message can be received but not successfully processed, and an Exception is thrown, the replier resends the message to the invalid message queue. In the process, it sets the new message's correlation id to the original message's message id.\n- Once the replier has finished processing the message, it runs BeginReceive to start listening for the next message.\n\nThus a replier does everything necessary to receive a message (presumably a request) and send a reply. If it cannot reply to a message, it routes the message to the invalid message queue.\n\n## Invalid Message Example\n\nWhile we're at it, let's look at an example of the [*Invalid Message Channel*](InvalidMessageChannel.html) pattern. Remember, one of the queues we need is one named \"private$\\InvalidMessages.\" This exists so that if an MSMQ client (a [*Message Endpoint*](MessageEndpoint.html)) receives a message it cannot process, it can move the strange message to a special channel.\n\nTo demonstrate invalid message handling, we have designed an InvalidMessenger class. This object is specifically designed to send a message on the request channel whose format is incorrect. Like any channel, the request channel is a [*Datatype Channel*](DatatypeChannel.html), in that the request receivers expect the requests to be of a certain format. The invalid messenger simply sends a message of a different format; when the replier receives the message, it does not recognize the message's format, and so moves the message to the invalid message queue.\n\nWe'll run the Replier in one window and the Invalid Messenger in another window. When the invalid messenger sends its message, it displays output like this:\n\n```\nSent request\n Type: 768\n Time: 09:39:44.223729\n Message ID: 8b0fc389-f21f-423b-9eaa-c3a881a34808\\168\n Correl. ID: 00000000-0000-0000-0000-000000000000\\0\n Reply to: .\\private$\\ReplyQueue\n```\n\nType 768 means that the format of the message contents is binary (whereas the replier is expecting the contents to be text/XML). The Replier recieves the invalid message and resends it to the invalid message queue:\n\n```\nInvalid message detected\n Type: 768\n Time: 09:39:44.233744\n Message ID: 8b0fc389-f21f-423b-9eaa-c3a881a34808\\168\n Correl. ID: \n Reply to: \nSent to invalid message queue\n Type: 768\n Time: 09:39:44.233744\n Message ID: 8b0fc389-f21f-423b-9eaa-c3a881a34808\\169\n Correl. ID: 8b0fc389-f21f-423b-9eaa-c3a881a34808\\168\n Reply to: FORMATNAME:DIRECT=OS:XYZ123\\private$\\ReplyQueue\n```\n\nOne insight worth noting is that when the message is moved to the invalid message queue, it is actually being resent, so it gets a new message ID. Because of this, we apply the [*Correlation Identifier*](CorrelationIdentifier.html) pattern; once the replier determines the message to be invalid, it copies the message's main ID to its correlation ID so as to preserve a record of the message's original ID.\n\nThe code that handles this invalid-message processing is in the Replier class shown earlier, in the OnReceiveCompleted method.\n\n## Conclusions\n\nWe've seen how to implement two classes, Requestor and Replier ([*Message Endpoint*](MessageEndpoint.html)s), that exchange a request and reply [*Message*](Message.html)s using [*Request-Reply*](RequestReply.html). The request message uses a [*Return Address*](ReturnAddress.html) to specify what queue to send the reply on. The reply messages uses a [*Correlation Identifier*](CorrelationIdentifier.html) to specify which request this is a reply for. The Requestor implements a [*Polling Consumer*](PollingConsumer.html) to receive replies, whereas the Replier implements an [*Event-Driven Consumer*](EventDrivenConsumer.html) to receive requests. The request and reply queues are [*Datatype Channel*](DatatypeChannel.html)s; when a consumer receives a message that is not of the right type, it reroutes the message to the [*Invalid Message Channel*](InvalidMessageChannel.html).\n\n## Integration Pattern Language\n\n[Message Construct.](MessageConstructionIntro.html)\n\n[Message](Message.html)\n\n[Command Message](CommandMessage.html)\n\n[Document Message](DocumentMessage.html)\n\n[Event Message](EventMessage.html)\n\n[Request-Reply](RequestReply.html)\n\n[Return Address](ReturnAddress.html)\n\n[Correlation Identifier](CorrelationIdentifier.html)\n\n[Message Sequence](MessageSequence.html)\n\n[Message Expiration](MessageExpiration.html)\n\n[Format Indicator](FormatIndicator.html)\n\n[Message Routing](MessageRoutingIntro.html)\n\n[Pipes-and-Filters](PipesAndFilters.html)\n\n[Message Router](MessageRouter.html)\n\n[Content-based Router](ContentBasedRouter.html)\n\n[Message Filter](Filter.html)\n\n[Dynamic Router](DynamicRouter.html)\n\n[Recipient List](RecipientList.html)\n\n[Splitter](Sequencer.html)\n\n[Aggregator](Aggregator.html)\n\n[Resequencer](Resequencer.html)\n\n[Composed Msg. Processor](DistributionAggregate.html)\n\n[Scatter-Gather](BroadcastAggregate.html)\n\n[Routing Slip](RoutingTable.html)\n\n[Process Manager](ProcessManager.html)\n\n[Message Broker](MessageBroker.html)\n\n[Message\nTransformation](MessageTransformationIntro.html)\n\n[Message Translator](MessageTranslator.html)\n\n[Envelope Wrapper](EnvelopeWrapper.html)\n\n[Content Enricher](DataEnricher.html)\n\n[Content Filter](ContentFilter.html)\n\n[Claim Check](StoreInLibrary.html)\n\n[Normalizer](Normalizer.html)\n\n[Canonical Data Model](CanonicalDataModel.html)\n\n[Messaging Endpoints](MessagingEndpointsIntro.html)\n\n[Message Endpoint](MessageEndpoint.html)\n\n[Messaging Gateway](MessagingGateway.html)\n\n[Messaging Mapper](MessagingMapper.html)\n\n[Transactional Client](TransactionalClient.html)\n\n[Polling Consumer](PollingConsumer.html)\n\n[Event-driven Consumer](EventDrivenConsumer.html)\n\n[Competing Consumers](CompetingConsumers.html)\n\n[Message Dispatcher](MessageDispatcher.html)\n\n[Selective Consumer](MessageSelector.html)\n\n[Durable Subscriber](DurableSubscription.html)\n\n[Idempotent Receiver](IdempotentReceiver.html)\n\n[Service Activator](MessagingAdapter.html)\n\n[Messaging Channels](MessagingChannelsIntro.html)\n\n[Message Channel](MessageChannel.html)\n\n[Point-to-Point Channel](PointToPointChannel.html)\n\n[Publish-Subscr. Channel](PublishSubscribeChannel.html)\n\n[Datatype Channel](DatatypeChannel.html)\n\n[Invalid Message Channel](InvalidMessageChannel.html)\n\n[Dead Letter Channel](DeadLetterChannel.html)\n\n[Guaranteed Delivery](GuaranteedMessaging.html)\n\n[Channel Adapter](ChannelAdapter.html)\n\n[Messaging Bridge](MessagingBridge.html)\n\n[Message Bus](MessageBus.html)\n\n[Systems Mgmt.](SystemManagementIntro.html)\n\n[Control Bus](ControlBus.html)\n\n[Detour](Detour.html)\n\n[Wire Tap](WireTap.html)\n\n[Message History](MessageHistory.html)\n\n[Message Store](MessageStore.html)\n\n[Smart Proxy](SmartProxy.html)\n\n[Test Message](TestMessage.html)\n\n[Channel Purger](ChannelPurger.html)", "znaku_textu": 21093, "slov": 2630, "odkazu": 109, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 14:55:29", "sha256": "026c8e4f5bfd09fd0ebe386d47aa00b2d53ab0b5fd5526846e5e86f5e71ed497", "hloubka": 3, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://msdn.microsoft.com/library/", "http://www.microsoft.com/msmq", "https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "https://www.architectelevator.com/book", "https://www.cloudstrategybook.com/", "https://www.platformstrategybook.info/"]} {"url": "http://www.enterpriseintegrationpatterns.com/patterns/messaging/Resequencer.html", "titulek": "Resequencer - Enterprise Integration Patterns", "h1": "", "popis": "How can we get a stream of related but out-of-sequence messages back into the correct order?", "klicova_slova": "Resequencer,integration, messaging, events, patterns, event-driven, coupling, eai, middleware, application integration, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns", "og:title": "Resequencer - Enterprise Integration Patterns", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/Resequencer.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/Resequencer.gif"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Integration Pattern Language"}], "markdown": "Messaging Patterns\n\n[Messaging Patterns](index.html)\n\n- [Integration Styles](IntegrationStylesIntro.html)\n- [Messaging Systems](MessagingComponentsIntro.html)\n- [Messaging Channels](MessagingChannelsIntro.html)\n- [Message Construction](MessageConstructionIntro.html)\n- [Interlude: Simple Messaging](SimpleMessagingIntro.html)\n- [Message Routing](MessageRoutingIntro.html)\n- [Message Transformation](MessageTransformationIntro.html)\n- [Interlude: Composed Messaging](ComposedMessagingExample.html)\n- [Messaging Endpoints](MessagingEndpointsIntro.html)\n- [System Management](SystemManagementIntro.html)\n- Interlude: Systems Management Example\n- Integration Patterns in Practice\n- Concluding Remarks\n- Appendices\n\n| | Resequencer[Messaging Patterns](index.html) » [Message Routing](MessageRoutingIntro.html) | [Contents](toc.html)[⇐ Prev](Aggregator.html)[Next ⇒](DistributionAggregate.html) |\n| --- | --- | --- |\n\nA [*Message Router*](MessageRouter.html) can route messages from one channel to different channels based on message content or other criteria. Because individual messages may follow different routes, some messages are likely to pass through the processing steps sooner than others, resulting in the messages getting out of order. However, some subsequent processing steps do require in-sequence processing of messages, for example to maintain referential integrity.\n\nHow can we get a stream of related but out-of-sequence messages back into the correct order?\n\nUse a stateful filter, a *Resequencer*, to collect and re-order messages so that they can be published to the output channel in a specified order.\n\nThe *Resequencer* can receive a stream of messages that may not arrive in order. The *Resequencer* contains in internal buffer to store out-of-sequence messages until a complete sequence is obtained. The in-sequence messages are then published to the output channel. It is important that the output channel is order-preserving so messages are guaranteed to arrive in order at the next component. Like most other routers, a *Resequencer* usually does not modify the message contents.\n\n...\nRead the entire pattern in the book [Enterprise Integration Patterns](/books1.html)\n\n**Related patterns:**\n\n[*Aggregator*](Aggregator.html), [*Competing Consumers*](CompetingConsumers.html), [*Message Router*](MessageRouter.html), [*Message Sequence*](MessageSequence.html), [*Pipes and Filters*](PipesAndFilters.html), [*Splitter*](Sequencer.html), [*Test Message*](TestMessage.html)\n\n---\n\n## Integration Pattern Language\n\n[Message Construct.](MessageConstructionIntro.html)\n\n[Message](Message.html)\n\n[Command Message](CommandMessage.html)\n\n[Document Message](DocumentMessage.html)\n\n[Event Message](EventMessage.html)\n\n[Request-Reply](RequestReply.html)\n\n[Return Address](ReturnAddress.html)\n\n[Correlation Identifier](CorrelationIdentifier.html)\n\n[Message Sequence](MessageSequence.html)\n\n[Message Expiration](MessageExpiration.html)\n\n[Format Indicator](FormatIndicator.html)\n\n[Message Routing](MessageRoutingIntro.html)\n\n[Pipes-and-Filters](PipesAndFilters.html)\n\n[Message Router](MessageRouter.html)\n\n[Content-based Router](ContentBasedRouter.html)\n\n[Message Filter](Filter.html)\n\n[Dynamic Router](DynamicRouter.html)\n\n[Recipient List](RecipientList.html)\n\n[Splitter](Sequencer.html)\n\n[Aggregator](Aggregator.html)\n\n[Resequencer](Resequencer.html)\n\n[Composed Msg. Processor](DistributionAggregate.html)\n\n[Scatter-Gather](BroadcastAggregate.html)\n\n[Routing Slip](RoutingTable.html)\n\n[Process Manager](ProcessManager.html)\n\n[Message Broker](MessageBroker.html)\n\n[Message\nTransformation](MessageTransformationIntro.html)\n\n[Message Translator](MessageTranslator.html)\n\n[Envelope Wrapper](EnvelopeWrapper.html)\n\n[Content Enricher](DataEnricher.html)\n\n[Content Filter](ContentFilter.html)\n\n[Claim Check](StoreInLibrary.html)\n\n[Normalizer](Normalizer.html)\n\n[Canonical Data Model](CanonicalDataModel.html)\n\n[Messaging Endpoints](MessagingEndpointsIntro.html)\n\n[Message Endpoint](MessageEndpoint.html)\n\n[Messaging Gateway](MessagingGateway.html)\n\n[Messaging Mapper](MessagingMapper.html)\n\n[Transactional Client](TransactionalClient.html)\n\n[Polling Consumer](PollingConsumer.html)\n\n[Event-driven Consumer](EventDrivenConsumer.html)\n\n[Competing Consumers](CompetingConsumers.html)\n\n[Message Dispatcher](MessageDispatcher.html)\n\n[Selective Consumer](MessageSelector.html)\n\n[Durable Subscriber](DurableSubscription.html)\n\n[Idempotent Receiver](IdempotentReceiver.html)\n\n[Service Activator](MessagingAdapter.html)\n\n[Messaging Channels](MessagingChannelsIntro.html)\n\n[Message Channel](MessageChannel.html)\n\n[Point-to-Point Channel](PointToPointChannel.html)\n\n[Publish-Subscr. Channel](PublishSubscribeChannel.html)\n\n[Datatype Channel](DatatypeChannel.html)\n\n[Invalid Message Channel](InvalidMessageChannel.html)\n\n[Dead Letter Channel](DeadLetterChannel.html)\n\n[Guaranteed Delivery](GuaranteedMessaging.html)\n\n[Channel Adapter](ChannelAdapter.html)\n\n[Messaging Bridge](MessagingBridge.html)\n\n[Message Bus](MessageBus.html)\n\n[Systems Mgmt.](SystemManagementIntro.html)\n\n[Control Bus](ControlBus.html)\n\n[Detour](Detour.html)\n\n[Wire Tap](WireTap.html)\n\n[Message History](MessageHistory.html)\n\n[Message Store](MessageStore.html)\n\n[Smart Proxy](SmartProxy.html)\n\n[Test Message](TestMessage.html)\n\n[Channel Purger](ChannelPurger.html)\n\n- » [Read the latest in My Blog](/ramblings)\n- » [Get more insights from My Articles](/articles.html)\n- » [See me live in my Upcoming Talks](/talks)\n\nYou can reuse the following elements under the [Creative Commons Attribution](http://creativecommons.org/licenses/by/4.0/) license: pattern icon, pattern name, problem and solution statements (in bold), and the sketch. Other portions are protected by copyright.\n\n[Enterprise Integration Patterns](https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20)\nThe de-facto language for designing asynchronous, distributed systems. Over 100,000 copies sold.\n\n[The Software Architect Elevator](https://www.architectelevator.com/book)\n\n Rethink the role of architects as a connecting element across organizational layers. Acquire the technical, communication, and organizational skills to succeed in this new role.\n\n[Cloud Strategy](https://www.cloudstrategybook.com)\n\n Make your cloud migration a success by translating high-level goals into conscious decisions with well-understood trade-offs.\n\n[Platform Strategy](https://www.platformstrategybook.info)\n\n Platforms can boost innovation through harmonization, but they aren't easy to build. Learn from over a decade of designing and rolling out IT platforms.", "znaku_textu": 6444, "slov": 562, "odkazu": 108, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/Resequencer.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 14:55:38", "sha256": "cafe3058fa70fe3bda25f83941e1ac604875e172d2388f6a334c7ff84327f42f", "hloubka": 3, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://creativecommons.org/licenses/by/4.0/", "https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "https://www.architectelevator.com/book", "https://www.cloudstrategybook.com/", "https://www.platformstrategybook.info/"]} {"url": "http://www.enterpriseintegrationpatterns.com/patterns/messaging/ReturnAddress.html", "titulek": "Return Address - Enterprise Integration Patterns", "h1": "", "popis": "How does a replier know where to send the reply?", "klicova_slova": "Return Address,integration, messaging, events, patterns, event-driven, coupling, eai, middleware, application integration, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns", "og:title": "Return Address - Enterprise Integration Patterns", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/ReturnAddress.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/ReturnAddressSolution.gif"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Example: Golang ChannelsNEW"}, {"uroven": 2, "text": "Integration Pattern Language"}], "markdown": "| | Return Address[Messaging Patterns](index.html) » [Message Construction](MessageConstructionIntro.html) | [Contents](toc.html)[⇐ Prev](RequestReply.html)[Next ⇒](CorrelationIdentifier.html) |\n| --- | --- | --- |\n\nMy application is using [*Messaging*](Messaging.html) to perform a [*Request-Reply*](RequestReply.html).\n\nHow does a replier know where to send the reply?\n\nThe request message should contain a *Return Address* that indicates where to send the reply message.\n\nThis way, the replier does not need to know where to send the reply, it can just ask the request. If different messages to the same replier require replies to different places, the replier knows where to send the reply for each request. This encapsulates the knowledge of what channels to use for requests and replies within the requestor so those decisions do not have to be hard coded within the replier. A *Return Address* is put in the header of a message because it’s not part of the data being transmitted.\n\n...\nRead the entire pattern in the book [Enterprise Integration Patterns](/books1.html)\n\n## Example: Golang Channels[NEW](/ramblings/eip1_examples_updated.html)\n\nIn Go, channels are first-class language constructs, making it easy to specify a channel as return address by including a field of type chan in the structure to be passed as the request:\n\n```\ntype Request struct {\n data []int\n resultChan chan int\n}\n```\n\nA function handling requests can now publish responses to the channel provided in the Request structure:\n\n```\nfunc handle(queue chan *Request) {\n for req := range queue {\n req.resultChan <- sum(req.data)\n }\n}\n```\n\nRequestors can now specify the desired return channel with the request as in the following example:\n\n```\nreqChannel := make(chan *Request, 10)\ngo handle(reqChannel)\n// Make two requests with separate return channels\nrequest1 := &Request{[]int{3, 4, 5}, make(chan int)}\nrequest2 := &Request{[]int{1, 2, 3}, make(chan int)}\nreqChannel <- request1\nreqChannel <- request2\n \n// Receive results on respective channels\nfmt.Printf(\"answer: %d %d\\n\", <-request1.resultChan, <-request2.resultChan)\n```\n\nFind the source for this code snippet on [Github](https://github.com/spac3lord/eip/tree/master/ReturnAddress)\n\n**Related patterns:**\n\n[*Correlation Identifier*](CorrelationIdentifier.html), [*Emerging Standards and Futures in Enterprise Integration*](Future.html), [*Message Channel*](MessageChannel.html), [*Messaging*](Messaging.html), [*Request-Reply*](RequestReply.html)\n\n---\n\n## Integration Pattern Language\n\n[Message Construct.](MessageConstructionIntro.html)\n\n[Message](Message.html)\n\n[Command Message](CommandMessage.html)\n\n[Document Message](DocumentMessage.html)\n\n[Event Message](EventMessage.html)\n\n[Request-Reply](RequestReply.html)\n\n[Return Address](ReturnAddress.html)\n\n[Correlation Identifier](CorrelationIdentifier.html)\n\n[Message Sequence](MessageSequence.html)\n\n[Message Expiration](MessageExpiration.html)\n\n[Format Indicator](FormatIndicator.html)\n\n[Message Routing](MessageRoutingIntro.html)\n\n[Pipes-and-Filters](PipesAndFilters.html)\n\n[Message Router](MessageRouter.html)\n\n[Content-based Router](ContentBasedRouter.html)\n\n[Message Filter](Filter.html)\n\n[Dynamic Router](DynamicRouter.html)\n\n[Recipient List](RecipientList.html)\n\n[Splitter](Sequencer.html)\n\n[Aggregator](Aggregator.html)\n\n[Resequencer](Resequencer.html)\n\n[Composed Msg. Processor](DistributionAggregate.html)\n\n[Scatter-Gather](BroadcastAggregate.html)\n\n[Routing Slip](RoutingTable.html)\n\n[Process Manager](ProcessManager.html)\n\n[Message Broker](MessageBroker.html)\n\n[Message\nTransformation](MessageTransformationIntro.html)\n\n[Message Translator](MessageTranslator.html)\n\n[Envelope Wrapper](EnvelopeWrapper.html)\n\n[Content Enricher](DataEnricher.html)\n\n[Content Filter](ContentFilter.html)\n\n[Claim Check](StoreInLibrary.html)\n\n[Normalizer](Normalizer.html)\n\n[Canonical Data Model](CanonicalDataModel.html)\n\n[Messaging Endpoints](MessagingEndpointsIntro.html)\n\n[Message Endpoint](MessageEndpoint.html)\n\n[Messaging Gateway](MessagingGateway.html)\n\n[Messaging Mapper](MessagingMapper.html)\n\n[Transactional Client](TransactionalClient.html)\n\n[Polling Consumer](PollingConsumer.html)\n\n[Event-driven Consumer](EventDrivenConsumer.html)\n\n[Competing Consumers](CompetingConsumers.html)\n\n[Message Dispatcher](MessageDispatcher.html)\n\n[Selective Consumer](MessageSelector.html)\n\n[Durable Subscriber](DurableSubscription.html)\n\n[Idempotent Receiver](IdempotentReceiver.html)\n\n[Service Activator](MessagingAdapter.html)\n\n[Messaging Channels](MessagingChannelsIntro.html)\n\n[Message Channel](MessageChannel.html)\n\n[Point-to-Point Channel](PointToPointChannel.html)\n\n[Publish-Subscr. Channel](PublishSubscribeChannel.html)\n\n[Datatype Channel](DatatypeChannel.html)\n\n[Invalid Message Channel](InvalidMessageChannel.html)\n\n[Dead Letter Channel](DeadLetterChannel.html)\n\n[Guaranteed Delivery](GuaranteedMessaging.html)\n\n[Channel Adapter](ChannelAdapter.html)\n\n[Messaging Bridge](MessagingBridge.html)\n\n[Message Bus](MessageBus.html)\n\n[Systems Mgmt.](SystemManagementIntro.html)\n\n[Control Bus](ControlBus.html)\n\n[Detour](Detour.html)\n\n[Wire Tap](WireTap.html)\n\n[Message History](MessageHistory.html)\n\n[Message Store](MessageStore.html)\n\n[Smart Proxy](SmartProxy.html)\n\n[Test Message](TestMessage.html)\n\n[Channel Purger](ChannelPurger.html)", "znaku_textu": 5180, "slov": 471, "odkazu": 110, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/ReturnAddress.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 14:55:23", "sha256": "207c823f2b8eec56be3e43e1882cd155542a5c3dccd6a3843fa1d35aeaab948a", "hloubka": 3, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/spac3lord/eip/tree/master/ReturnAddress", "http://creativecommons.org/licenses/by/4.0/", "https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "https://www.architectelevator.com/book", "https://www.cloudstrategybook.com/", "https://www.platformstrategybook.info/"]} {"url": "http://www.enterpriseintegrationpatterns.com/patterns/messaging/RoutingTable.html", "titulek": "Routing Slip - Enterprise Integration Patterns", "h1": "", "popis": "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?", "klicova_slova": "Routing Slip,integration, messaging, events, patterns, event-driven, coupling, eai, middleware, application integration, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns", "og:title": "Routing Slip - Enterprise Integration Patterns", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/RoutingTable.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/RoutingTableSimple.gif"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Integration Pattern Language"}], "markdown": "| | Routing Slip[Messaging Patterns](index.html) » [Message Routing](MessageRoutingIntro.html) | [Contents](toc.html)[⇐ Prev](BroadcastAggregate.html)[Next ⇒](ProcessManager.html) |\n| --- | --- | --- |\n\nMost of the routing patterns presented in this section route incoming messages to one or more destinations based on a set of rules. Sometimes, though, we need to route a message not just to a single component, but through a whole series of components. Let's assume, for example, that we use a [*Pipes and Filters*](PipesAndFilters.html) architecture to process incoming messages that have to undergo a sequence of processing steps and business rule validations. Since the nature of the validations varies widely and may depend on external systems (e.g., credit card validations), we implement each type of step as a separate filter. Each filter inspects the incoming message, and applies the business rule(s) to the message. If the message does not fulfill the conditions specified by the rules it is routed to an exception channel. The channels between the filters determine the sequence of validations that the message needs to undergo.\n\nNow let's assume, though, that the set of validations to perform against each message depends on the message type (for example, purchase order request do not need credit card validation or customers who send orders over a VPN may not require decryption and authentication). To accommodate this requirement we need to find a configuration that can route the message through a different sequence of filters depending on the type of the message.\n\nHow 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?\n\nAttach 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.\n\nWe insert a special component into the beginning of the process that computes the list of required steps for each message. It then attaches the list as a *Routing Slip* to the message and starts the process by routing the message to the first processing step. After successful processing, each processing step looks at the *Routing Slip* and passes the message to the next processing step specified in the routing table.\n\n...\nRead the entire pattern in the book [Enterprise Integration Patterns](/books1.html)\n\n**Related patterns:**\n\n[*Content-Based Router*](ContentBasedRouter.html), [*Message Filter*](Filter.html), [*Message Router*](MessageRouter.html), [*Pipes and Filters*](PipesAndFilters.html), [*Process Manager*](ProcessManager.html), [*Publish-Subscribe Channel*](PublishSubscribeChannel.html), [*Return Address*](ReturnAddress.html)\n\n---\n\n## Integration Pattern Language\n\n[Message Construct.](MessageConstructionIntro.html)\n\n[Message](Message.html)\n\n[Command Message](CommandMessage.html)\n\n[Document Message](DocumentMessage.html)\n\n[Event Message](EventMessage.html)\n\n[Request-Reply](RequestReply.html)\n\n[Return Address](ReturnAddress.html)\n\n[Correlation Identifier](CorrelationIdentifier.html)\n\n[Message Sequence](MessageSequence.html)\n\n[Message Expiration](MessageExpiration.html)\n\n[Format Indicator](FormatIndicator.html)\n\n[Message Routing](MessageRoutingIntro.html)\n\n[Pipes-and-Filters](PipesAndFilters.html)\n\n[Message Router](MessageRouter.html)\n\n[Content-based Router](ContentBasedRouter.html)\n\n[Message Filter](Filter.html)\n\n[Dynamic Router](DynamicRouter.html)\n\n[Recipient List](RecipientList.html)\n\n[Splitter](Sequencer.html)\n\n[Aggregator](Aggregator.html)\n\n[Resequencer](Resequencer.html)\n\n[Composed Msg. Processor](DistributionAggregate.html)\n\n[Scatter-Gather](BroadcastAggregate.html)\n\n[Routing Slip](RoutingTable.html)\n\n[Process Manager](ProcessManager.html)\n\n[Message Broker](MessageBroker.html)\n\n[Message\nTransformation](MessageTransformationIntro.html)\n\n[Message Translator](MessageTranslator.html)\n\n[Envelope Wrapper](EnvelopeWrapper.html)\n\n[Content Enricher](DataEnricher.html)\n\n[Content Filter](ContentFilter.html)\n\n[Claim Check](StoreInLibrary.html)\n\n[Normalizer](Normalizer.html)\n\n[Canonical Data Model](CanonicalDataModel.html)\n\n[Messaging Endpoints](MessagingEndpointsIntro.html)\n\n[Message Endpoint](MessageEndpoint.html)\n\n[Messaging Gateway](MessagingGateway.html)\n\n[Messaging Mapper](MessagingMapper.html)\n\n[Transactional Client](TransactionalClient.html)\n\n[Polling Consumer](PollingConsumer.html)\n\n[Event-driven Consumer](EventDrivenConsumer.html)\n\n[Competing Consumers](CompetingConsumers.html)\n\n[Message Dispatcher](MessageDispatcher.html)\n\n[Selective Consumer](MessageSelector.html)\n\n[Durable Subscriber](DurableSubscription.html)\n\n[Idempotent Receiver](IdempotentReceiver.html)\n\n[Service Activator](MessagingAdapter.html)\n\n[Messaging Channels](MessagingChannelsIntro.html)\n\n[Message Channel](MessageChannel.html)\n\n[Point-to-Point Channel](PointToPointChannel.html)\n\n[Publish-Subscr. Channel](PublishSubscribeChannel.html)\n\n[Datatype Channel](DatatypeChannel.html)\n\n[Invalid Message Channel](InvalidMessageChannel.html)\n\n[Dead Letter Channel](DeadLetterChannel.html)\n\n[Guaranteed Delivery](GuaranteedMessaging.html)\n\n[Channel Adapter](ChannelAdapter.html)\n\n[Messaging Bridge](MessagingBridge.html)\n\n[Message Bus](MessageBus.html)\n\n[Systems Mgmt.](SystemManagementIntro.html)\n\n[Control Bus](ControlBus.html)\n\n[Detour](Detour.html)\n\n[Wire Tap](WireTap.html)\n\n[Message History](MessageHistory.html)\n\n[Message Store](MessageStore.html)\n\n[Smart Proxy](SmartProxy.html)\n\n[Test Message](TestMessage.html)\n\n[Channel Purger](ChannelPurger.html)", "znaku_textu": 5536, "slov": 556, "odkazu": 108, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/RoutingTable.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 14:55:41", "sha256": "5e46ed0bbff9cbd9b7d56986a778230fcbffd4de408735b71e34b93b428844cd", "hloubka": 3, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://creativecommons.org/licenses/by/4.0/", "https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "https://www.architectelevator.com/book", "https://www.cloudstrategybook.com/", "https://www.platformstrategybook.info/"]} {"url": "http://www.enterpriseintegrationpatterns.com/patterns/messaging/Sequencer.html", "titulek": "Splitter - Enterprise Integration Patterns", "h1": "", "popis": "How can we process a message if it contains multiple elements, each of which may have to be processed in a different way?", "klicova_slova": "Splitter,integration, messaging, events, patterns, event-driven, coupling, eai, middleware, application integration, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns", "og:title": "Splitter - Enterprise Integration Patterns", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/Sequencer.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/Sequencer.gif"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Integration Pattern Language"}], "markdown": "Messaging Patterns\n\n[Messaging Patterns](index.html)\n\n- [Integration Styles](IntegrationStylesIntro.html)\n- [Messaging Systems](MessagingComponentsIntro.html)\n- [Messaging Channels](MessagingChannelsIntro.html)\n- [Message Construction](MessageConstructionIntro.html)\n- [Interlude: Simple Messaging](SimpleMessagingIntro.html)\n- [Message Routing](MessageRoutingIntro.html)\n- [Message Transformation](MessageTransformationIntro.html)\n- [Interlude: Composed Messaging](ComposedMessagingExample.html)\n- [Messaging Endpoints](MessagingEndpointsIntro.html)\n- [System Management](SystemManagementIntro.html)\n- Interlude: Systems Management Example\n- Integration Patterns in Practice\n- Concluding Remarks\n- Appendices\n\n| | Splitter[Messaging Patterns](index.html) » [Message Routing](MessageRoutingIntro.html) | [Contents](toc.html)[⇐ Prev](RecipientList.html)[Next ⇒](Aggregator.html) |\n| --- | --- | --- |\n\nMany messages passing through an integration solution consist of multiple elements. For example, an order placed by a customer consists of more than just a single line item. As outlined in the description of the [*Content-Based Router*](ContentBasedRouter.html), each line item may need to be handled by a different inventory system. Thus, we need to find an approach to process a complete order, but treat each order item contained in the order individually.\n\nHow can we process a message if it contains multiple elements, each of which may have to be processed in a different way?\n\nUse a *Splitter* to break out the composite message into a series of individual messages, each containing data related to one item.\n\nuse a *Splitter* that consumes one message containing a list of repeating elements, each of which can be processed individually. The *Splitter* publishes a one message for each single element (or a subset of elements) from the original message.\n\n...\nRead the entire pattern in the book [Enterprise Integration Patterns](/books1.html)\n\n**Related patterns:**\n\n[*Aggregator*](Aggregator.html), [*Content-Based Router*](ContentBasedRouter.html), [*Content Filter*](ContentFilter.html), [*Correlation Identifier*](CorrelationIdentifier.html), [*Envelope Wrapper*](EnvelopeWrapper.html), [*Event-Driven Consumer*](EventDrivenConsumer.html), [*Pipes and Filters*](PipesAndFilters.html), [*Publish-Subscribe Channel*](PublishSubscribeChannel.html)\n\n---\n\n## Integration Pattern Language\n\n[Message Construct.](MessageConstructionIntro.html)\n\n[Message](Message.html)\n\n[Command Message](CommandMessage.html)\n\n[Document Message](DocumentMessage.html)\n\n[Event Message](EventMessage.html)\n\n[Request-Reply](RequestReply.html)\n\n[Return Address](ReturnAddress.html)\n\n[Correlation Identifier](CorrelationIdentifier.html)\n\n[Message Sequence](MessageSequence.html)\n\n[Message Expiration](MessageExpiration.html)\n\n[Format Indicator](FormatIndicator.html)\n\n[Message Routing](MessageRoutingIntro.html)\n\n[Pipes-and-Filters](PipesAndFilters.html)\n\n[Message Router](MessageRouter.html)\n\n[Content-based Router](ContentBasedRouter.html)\n\n[Message Filter](Filter.html)\n\n[Dynamic Router](DynamicRouter.html)\n\n[Recipient List](RecipientList.html)\n\n[Splitter](Sequencer.html)\n\n[Aggregator](Aggregator.html)\n\n[Resequencer](Resequencer.html)\n\n[Composed Msg. Processor](DistributionAggregate.html)\n\n[Scatter-Gather](BroadcastAggregate.html)\n\n[Routing Slip](RoutingTable.html)\n\n[Process Manager](ProcessManager.html)\n\n[Message Broker](MessageBroker.html)\n\n[Message\nTransformation](MessageTransformationIntro.html)\n\n[Message Translator](MessageTranslator.html)\n\n[Envelope Wrapper](EnvelopeWrapper.html)\n\n[Content Enricher](DataEnricher.html)\n\n[Content Filter](ContentFilter.html)\n\n[Claim Check](StoreInLibrary.html)\n\n[Normalizer](Normalizer.html)\n\n[Canonical Data Model](CanonicalDataModel.html)\n\n[Messaging Endpoints](MessagingEndpointsIntro.html)\n\n[Message Endpoint](MessageEndpoint.html)\n\n[Messaging Gateway](MessagingGateway.html)\n\n[Messaging Mapper](MessagingMapper.html)\n\n[Transactional Client](TransactionalClient.html)\n\n[Polling Consumer](PollingConsumer.html)\n\n[Event-driven Consumer](EventDrivenConsumer.html)\n\n[Competing Consumers](CompetingConsumers.html)\n\n[Message Dispatcher](MessageDispatcher.html)\n\n[Selective Consumer](MessageSelector.html)\n\n[Durable Subscriber](DurableSubscription.html)\n\n[Idempotent Receiver](IdempotentReceiver.html)\n\n[Service Activator](MessagingAdapter.html)\n\n[Messaging Channels](MessagingChannelsIntro.html)\n\n[Message Channel](MessageChannel.html)\n\n[Point-to-Point Channel](PointToPointChannel.html)\n\n[Publish-Subscr. Channel](PublishSubscribeChannel.html)\n\n[Datatype Channel](DatatypeChannel.html)\n\n[Invalid Message Channel](InvalidMessageChannel.html)\n\n[Dead Letter Channel](DeadLetterChannel.html)\n\n[Guaranteed Delivery](GuaranteedMessaging.html)\n\n[Channel Adapter](ChannelAdapter.html)\n\n[Messaging Bridge](MessagingBridge.html)\n\n[Message Bus](MessageBus.html)\n\n[Systems Mgmt.](SystemManagementIntro.html)\n\n[Control Bus](ControlBus.html)\n\n[Detour](Detour.html)\n\n[Wire Tap](WireTap.html)\n\n[Message History](MessageHistory.html)\n\n[Message Store](MessageStore.html)\n\n[Smart Proxy](SmartProxy.html)\n\n[Test Message](TestMessage.html)\n\n[Channel Purger](ChannelPurger.html)\n\n- » [Read the latest in My Blog](/ramblings)\n- » [Get more insights from My Articles](/articles.html)\n- » [See me live in my Upcoming Talks](/talks)\n\nYou can reuse the following elements under the [Creative Commons Attribution](http://creativecommons.org/licenses/by/4.0/) license: pattern icon, pattern name, problem and solution statements (in bold), and the sketch. Other portions are protected by copyright.\n\n[Enterprise Integration Patterns](https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20)\nThe de-facto language for designing asynchronous, distributed systems. Over 100,000 copies sold.\n\n[The Software Architect Elevator](https://www.architectelevator.com/book)\n\n Rethink the role of architects as a connecting element across organizational layers. Acquire the technical, communication, and organizational skills to succeed in this new role.\n\n[Cloud Strategy](https://www.cloudstrategybook.com)\n\n Make your cloud migration a success by translating high-level goals into conscious decisions with well-understood trade-offs.\n\n[Platform Strategy](https://www.platformstrategybook.info)\n\n Platforms can boost innovation through harmonization, but they aren't easy to build. Learn from over a decade of designing and rolling out IT platforms.", "znaku_textu": 6309, "slov": 539, "odkazu": 108, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/Sequencer.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 14:55:37", "sha256": "98c9d9340b6d8266d1f65a5d26adc075380da9261bb1d3b3d06ea5f9079cd9ef", "hloubka": 3, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://creativecommons.org/licenses/by/4.0/", "https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "https://www.architectelevator.com/book", "https://www.cloudstrategybook.com/", "https://www.platformstrategybook.info/"]} {"url": "http://www.enterpriseintegrationpatterns.com/patterns/messaging/SharedDataBaseIntegration.html", "titulek": "Shared Database - Enterprise Integration Patterns", "h1": "", "popis": "How can I integrate multiple applications so that they work together and can exchange information?", "klicova_slova": "Shared Database,integration, messaging, events, patterns, event-driven, coupling, eai, middleware, application integration, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns", "og:title": "Shared Database - Enterprise Integration Patterns", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/SharedDataBaseIntegration.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/SharedDatabaseIntegration.gif"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Integration Pattern Language"}], "markdown": "| | Shared Database[Messaging Patterns](index.html) » [Integration Styles](IntegrationStylesIntro.html) | [Contents](toc.html)[⇐ Prev](FileTransferIntegration.html)[Next ⇒](EncapsulatedSynchronousIntegration.html) |\n| --- | --- | --- |\n\nAn enterprise has multiple applications that are being built independently, with different languages and platforms. The enterprise needs information to be shared rapidly and consistently.\n\nHow can I integrate multiple applications so that they work together and can exchange information?\n\nIntegrate applications by having them store their data in a single *Shared Database*.\n\nIf a family of integrated applications all rely on the same\ndatabase, then you can be pretty sure that they are always consistent\nall of the time. If you do get simultaneous updates to a single piece\nof data from different sources, then you have transaction management\nsystems that handle that about as gracefully as it ever can be\nmanaged. Since the time between updates is so small, any errors are\nmuch easier to find and fix.\n\nOne of the biggest difficulties with *Shared Database* is coming up with a\nsuitable design for the shared database. Coming up with a unified\nschema that can meet the needs of multiple applications is a very difficult\nexercise, often resulting in a schema that application programmers\nfind difficult to work with.\n\nIf the technical difficulties of designing a unified schema\naren't enough, there are also severe political difficulties. If a\ncritical application is likely to suffer delays in order to work with\na unified schema, then often there is irresistable pressure to\nseparate. Human conflicts between departments often exacerbate this\nproblem.\n\n...\nRead the entire pattern in the book [Enterprise Integration Patterns](/books1.html)\n\n**Related patterns:**\n\n[*Remote Procedure Invocation*](EncapsulatedSynchronousIntegration.html), [*File Transfer*](FileTransferIntegration.html), [*Messaging*](Messaging.html)\n\n---\n\n## Integration Pattern Language\n\n[Message Construct.](MessageConstructionIntro.html)\n\n[Message](Message.html)\n\n[Command Message](CommandMessage.html)\n\n[Document Message](DocumentMessage.html)\n\n[Event Message](EventMessage.html)\n\n[Request-Reply](RequestReply.html)\n\n[Return Address](ReturnAddress.html)\n\n[Correlation Identifier](CorrelationIdentifier.html)\n\n[Message Sequence](MessageSequence.html)\n\n[Message Expiration](MessageExpiration.html)\n\n[Format Indicator](FormatIndicator.html)\n\n[Message Routing](MessageRoutingIntro.html)\n\n[Pipes-and-Filters](PipesAndFilters.html)\n\n[Message Router](MessageRouter.html)\n\n[Content-based Router](ContentBasedRouter.html)\n\n[Message Filter](Filter.html)\n\n[Dynamic Router](DynamicRouter.html)\n\n[Recipient List](RecipientList.html)\n\n[Splitter](Sequencer.html)\n\n[Aggregator](Aggregator.html)\n\n[Resequencer](Resequencer.html)\n\n[Composed Msg. Processor](DistributionAggregate.html)\n\n[Scatter-Gather](BroadcastAggregate.html)\n\n[Routing Slip](RoutingTable.html)\n\n[Process Manager](ProcessManager.html)\n\n[Message Broker](MessageBroker.html)\n\n[Message\nTransformation](MessageTransformationIntro.html)\n\n[Message Translator](MessageTranslator.html)\n\n[Envelope Wrapper](EnvelopeWrapper.html)\n\n[Content Enricher](DataEnricher.html)\n\n[Content Filter](ContentFilter.html)\n\n[Claim Check](StoreInLibrary.html)\n\n[Normalizer](Normalizer.html)\n\n[Canonical Data Model](CanonicalDataModel.html)\n\n[Messaging Endpoints](MessagingEndpointsIntro.html)\n\n[Message Endpoint](MessageEndpoint.html)\n\n[Messaging Gateway](MessagingGateway.html)\n\n[Messaging Mapper](MessagingMapper.html)\n\n[Transactional Client](TransactionalClient.html)\n\n[Polling Consumer](PollingConsumer.html)\n\n[Event-driven Consumer](EventDrivenConsumer.html)\n\n[Competing Consumers](CompetingConsumers.html)\n\n[Message Dispatcher](MessageDispatcher.html)\n\n[Selective Consumer](MessageSelector.html)\n\n[Durable Subscriber](DurableSubscription.html)\n\n[Idempotent Receiver](IdempotentReceiver.html)\n\n[Service Activator](MessagingAdapter.html)\n\n[Messaging Channels](MessagingChannelsIntro.html)\n\n[Message Channel](MessageChannel.html)\n\n[Point-to-Point Channel](PointToPointChannel.html)\n\n[Publish-Subscr. Channel](PublishSubscribeChannel.html)\n\n[Datatype Channel](DatatypeChannel.html)\n\n[Invalid Message Channel](InvalidMessageChannel.html)\n\n[Dead Letter Channel](DeadLetterChannel.html)\n\n[Guaranteed Delivery](GuaranteedMessaging.html)\n\n[Channel Adapter](ChannelAdapter.html)\n\n[Messaging Bridge](MessagingBridge.html)\n\n[Message Bus](MessageBus.html)\n\n[Systems Mgmt.](SystemManagementIntro.html)\n\n[Control Bus](ControlBus.html)\n\n[Detour](Detour.html)\n\n[Wire Tap](WireTap.html)\n\n[Message History](MessageHistory.html)\n\n[Message Store](MessageStore.html)\n\n[Smart Proxy](SmartProxy.html)\n\n[Test Message](TestMessage.html)\n\n[Channel Purger](ChannelPurger.html)", "znaku_textu": 4678, "slov": 407, "odkazu": 108, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 14:54:57", "sha256": "8b224e20dd68b00555c7184d9b4d12ea46f5f941d50bc43628f4ba2bbd16d240", "hloubka": 3, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://creativecommons.org/licenses/by/4.0/", "https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "https://www.architectelevator.com/book", "https://www.cloudstrategybook.com/", "https://www.platformstrategybook.info/"]} {"url": "http://www.enterpriseintegrationpatterns.com/patterns/messaging/SimpleMessagingIntro.html", "titulek": "Introduction to Simple Messaging Examples - Enterprise Integration Patterns", "h1": "", "popis": "So far, we’ve introduced a lot of patterns. We’ve seen the basic Messaging Components, such as Message Channel, Message, and Message Endpoint. We’ve also seen detailed patterns for Messaging Channels and for Message Construction.", "klicova_slova": "Introduction to Simple Messaging Examples,integration, messaging, events, patterns, event-driven, coupling, eai, middleware, application integration, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns", "og:title": "Introduction to Simple Messaging Examples - Enterprise Integration Patterns", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/SimpleMessagingIntro.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/eip1_patterns_wide.png"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Request/Reply Example"}, {"uroven": 2, "text": "Publish/Subscribe Example"}, {"uroven": 2, "text": "Integration Pattern Language"}], "markdown": "| | Introduction to Simple Messaging Examples[Messaging Patterns](index.html) » [Interlude: Simple Messaging](SimpleMessagingIntro.html) | [Contents](toc.html)[⇐ Prev](FormatIndicator.html)[Next ⇒](RequestReplyJmsExample.html) |\n| --- | --- | --- |\n\nSo far, we’ve introduced a lot of patterns. We’ve seen the basic Messaging Components, such as [*Message Channel*](MessageChannel.html), [*Message*](Message.html), and [*Message Endpoint*](MessageEndpoint.html). We’ve also seen detailed patterns for Messaging Channels and for Message Construction.\n\nSo how do all of these patterns fit together? How does a developer integrate applications using these patterns? What does the code look like, and how does it work?\n\nThis is the chapter where we really get to see the code. We have two examples:\n\n- **Request/Reply** — Demonstrates (in Java and .NET/C#) how to use messaging to send a request message and respond with a reply message.\n- **Publish/Subscribe** — Explores how to use a JMS Topic to implement the Observer pattern.\n\nThese two simple examples should get you started on how add messaging to your own applications.\n\n## Request/Reply Example\n\nThis is a simple but powerful example, transmitting a request and transmitting back a reply. It consists of two main classes:\n\n- **Requestor** — The object that sends the request message and expects to receive the reply message.\n- **Replier** — The object that receives the request message and sends a reply message in response.\n\nThese two simple classes sending simple messages illustrate a number of the patterns:\n\n- **[*Message Channel*](MessageChannel.html)** and **[*Point-to-Point Channel*](PointToPointChannel.html)** — One channel for transmitting the requests, another for transmitting the replies.\n- **[*Document Message*](DocumentMessage.html)** — The default type of message, used as both the request and the reply.\n- **[*Request-Reply*](RequestReply.html)** — A pair of messages sent over a pair of channels, allowing the two applications to have a two-way conversation.\n- **[*Return Address*](ReturnAddress.html)** — The channel to send the response on.\n- **[*Correlation Identifier*](CorrelationIdentifier.html)** — The ID of the request that caused this response.\n- **[*Datatype Channel*](DatatypeChannel.html)** — All of the messages on each channel should be of the same type.\n- **[*Invalid Message Channel*](InvalidMessageChannel.html)** — What happens to messages that aren’t of the right type.\n\nThe example code also demostrates a couple of patterns from the Messaging Endpoints chapter later in the book:\n\n- **[*Polling Consumer*](PollingConsumer.html)** — How the requestor consumes reply messages.\n- **[*Event-Driven Consumer*](EventDrivenConsumer.html)** — How the replier consumes request messages.\n\nWhile this book is technology-, product-, and language-neutral, code cannot be. So we’ve choosen two messaging programming platforms to implement this example:\n\n- The JMS API in Java J2EE\n- The MSMQ API in Microsoft .NET using C#\n\nThe same request/reply example is implemented in both platforms. So choose your favorite platform as an example of how messaging works. If you’d like to see how messaging works on the other platform, even if you don’t know how to write code for that platform, you should be able to figure out how that code works by comparing it to the code in the language you already know.\n\n## Publish/Subscribe Example\n\nThis example explores how to implement the Observer pattern using a [*Publish-Subscribe Channel*](PublishSubscribeChannel.html). It considers distribution and threading issues and discusses how messaging greatly simplifies these issues. The example shows how to implement both the push and pull models of notification and compares the consequences of each. It also explores how to design an adaquate set of channels needed for a complex enterprise with numerous subjects notifing numerous observers.\n\nThe discussion and sample code will illustrate several patterns:\n\n- **[*Publish-Subscribe Channel*](PublishSubscribeChannel.html)** — The channel that provides publish/subscribe notification.\n- **[*Event Message*](EventMessage.html)** — The message type used to send notifications.\n- **[*Request-Reply*](RequestReply.html)** — The technique used as part of the pull model for an observer to request state from the subject.\n- **[*Command Message*](CommandMessage.html)** — The message type used by an observer to request state from the subject.\n- **[*Document Message*](DocumentMessage.html)** — The message type used by a subject to send its state to an observer.\n- **[*Return Address*](ReturnAddress.html)** — Tells the subject how to send the state to the observer.\n- **[*Datatype Channel*](DatatypeChannel.html)** — The main guideline for whether two unrelated subjects can use the same channel to update the same group of observers.\n\nThe example code also demostrates a couple of patterns from the Messaging Endpoints chapter later in the book:\n\n- **[*Messaging Gateway*](MessagingGateway.html)** — How the subject and observer encapsulate the messaging code so that they are not messaging-specific.\n- **[*Event-Driven Consumer*](EventDrivenConsumer.html)** — How the observers consume notification messages.\n- **[*Durable Subscriber*](DurableSubscription.html)** — An observer that does not want to miss notifications, even if the observer is temporarily disconnected when the notification is sent.\n\nThis example is implemented in Java using JMS because JMS supports [*Publish-Subscribe Channel*](PublishSubscribeChannel.html) as an explicit feature of the API through its Topic interface. .NET does not provide a similar level of support for using the publish/subscribe semantics in MSMQ; when it does, the techniques in the JMS example should be readily applicable to .NET programs as well.\n\n## Integration Pattern Language\n\n[Message Construct.](MessageConstructionIntro.html)\n\n[Message](Message.html)\n\n[Command Message](CommandMessage.html)\n\n[Document Message](DocumentMessage.html)\n\n[Event Message](EventMessage.html)\n\n[Request-Reply](RequestReply.html)\n\n[Return Address](ReturnAddress.html)\n\n[Correlation Identifier](CorrelationIdentifier.html)\n\n[Message Sequence](MessageSequence.html)\n\n[Message Expiration](MessageExpiration.html)\n\n[Format Indicator](FormatIndicator.html)\n\n[Message Routing](MessageRoutingIntro.html)\n\n[Pipes-and-Filters](PipesAndFilters.html)\n\n[Message Router](MessageRouter.html)\n\n[Content-based Router](ContentBasedRouter.html)\n\n[Message Filter](Filter.html)\n\n[Dynamic Router](DynamicRouter.html)\n\n[Recipient List](RecipientList.html)\n\n[Splitter](Sequencer.html)\n\n[Aggregator](Aggregator.html)\n\n[Resequencer](Resequencer.html)\n\n[Composed Msg. Processor](DistributionAggregate.html)\n\n[Scatter-Gather](BroadcastAggregate.html)\n\n[Routing Slip](RoutingTable.html)\n\n[Process Manager](ProcessManager.html)\n\n[Message Broker](MessageBroker.html)\n\n[Message\nTransformation](MessageTransformationIntro.html)\n\n[Message Translator](MessageTranslator.html)\n\n[Envelope Wrapper](EnvelopeWrapper.html)\n\n[Content Enricher](DataEnricher.html)\n\n[Content Filter](ContentFilter.html)\n\n[Claim Check](StoreInLibrary.html)\n\n[Normalizer](Normalizer.html)\n\n[Canonical Data Model](CanonicalDataModel.html)\n\n[Messaging Endpoints](MessagingEndpointsIntro.html)\n\n[Message Endpoint](MessageEndpoint.html)\n\n[Messaging Gateway](MessagingGateway.html)\n\n[Messaging Mapper](MessagingMapper.html)\n\n[Transactional Client](TransactionalClient.html)\n\n[Polling Consumer](PollingConsumer.html)\n\n[Event-driven Consumer](EventDrivenConsumer.html)\n\n[Competing Consumers](CompetingConsumers.html)\n\n[Message Dispatcher](MessageDispatcher.html)\n\n[Selective Consumer](MessageSelector.html)\n\n[Durable Subscriber](DurableSubscription.html)\n\n[Idempotent Receiver](IdempotentReceiver.html)\n\n[Service Activator](MessagingAdapter.html)\n\n[Messaging Channels](MessagingChannelsIntro.html)\n\n[Message Channel](MessageChannel.html)\n\n[Point-to-Point Channel](PointToPointChannel.html)\n\n[Publish-Subscr. Channel](PublishSubscribeChannel.html)\n\n[Datatype Channel](DatatypeChannel.html)\n\n[Invalid Message Channel](InvalidMessageChannel.html)\n\n[Dead Letter Channel](DeadLetterChannel.html)\n\n[Guaranteed Delivery](GuaranteedMessaging.html)\n\n[Channel Adapter](ChannelAdapter.html)\n\n[Messaging Bridge](MessagingBridge.html)\n\n[Message Bus](MessageBus.html)\n\n[Systems Mgmt.](SystemManagementIntro.html)\n\n[Control Bus](ControlBus.html)\n\n[Detour](Detour.html)\n\n[Wire Tap](WireTap.html)\n\n[Message History](MessageHistory.html)\n\n[Message Store](MessageStore.html)\n\n[Smart Proxy](SmartProxy.html)\n\n[Test Message](TestMessage.html)\n\n[Channel Purger](ChannelPurger.html)", "znaku_textu": 8396, "slov": 980, "odkazu": 107, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 14:55:28", "sha256": "ee206e8247163263a8a8e9c5a6c8b53c8f94d712fb1ab15b62e1463ff6c1a7ea", "hloubka": 3, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "https://www.architectelevator.com/book", "https://www.cloudstrategybook.com/", "https://www.platformstrategybook.info/"]} {"url": "http://www.enterpriseintegrationpatterns.com/patterns/messaging/SmartProxy.html", "titulek": "Smart Proxy - Enterprise Integration Patterns", "h1": "", "popis": "How can you track messages on a service that publishes reply messages to the Return Address specified by the requestor?", "klicova_slova": "Smart Proxy,integration, messaging, events, patterns, event-driven, coupling, eai, middleware, application integration, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns", "og:title": "Smart Proxy - Enterprise Integration Patterns", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/SmartProxy.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/SmartProxy.gif"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Integration Pattern Language"}], "markdown": "Messaging Patterns\n\n[Messaging Patterns](index.html)\n\n- [Integration Styles](IntegrationStylesIntro.html)\n- [Messaging Systems](MessagingComponentsIntro.html)\n- [Messaging Channels](MessagingChannelsIntro.html)\n- [Message Construction](MessageConstructionIntro.html)\n- [Interlude: Simple Messaging](SimpleMessagingIntro.html)\n- [Message Routing](MessageRoutingIntro.html)\n- [Message Transformation](MessageTransformationIntro.html)\n- [Interlude: Composed Messaging](ComposedMessagingExample.html)\n- [Messaging Endpoints](MessagingEndpointsIntro.html)\n- [System Management](SystemManagementIntro.html)\n- Interlude: Systems Management Example\n- Integration Patterns in Practice\n- Concluding Remarks\n- Appendices\n\n| | Smart Proxy[Messaging Patterns](index.html) » [System Management](SystemManagementIntro.html) | [Contents](toc.html)[⇐ Prev](MessageStore.html)[Next ⇒](TestMessage.html) |\n| --- | --- | --- |\n\nA pair of [*Wire Tap*](WireTap.html)s can be used to track messages that flow through a component. However, this approach assumes that the component publishes messages to a fixed output channel. However, many service-style components publish reply messages to the channel specified by the [*Return Address*](ReturnAddress.html) included in the request message.\n\nHow can you track messages on a service that publishes reply messages to the Return Address specified by the requestor?\n\nUse a *Smart Proxy* to store the Return Address supplied by the original requestor and replace it with the address of the *Smart Proxy*. When the service sends the reply message route it to the original Return Address.\n\nThe *Smart Proxy* intercepts messages sent on the request channel to the [*Request-Reply*](RequestReply.html) service. For each incoming message, the *Smart Proxy* stores the [*Return Address*](ReturnAddress.html) specified by the original sender. It then replaces the [*Return Address*](ReturnAddress.html) in the message with the channel the reply channel that the *Smart Proxy* is listening on. When a reply message comes in on that channel, the *Smart Proxy* retrieves the stored [*Return Address*](ReturnAddress.html) and uses a [*Message Router*](MessageRouter.html) to forward the unmodified reply address to that channel.\n\n...\nRead the entire pattern in the book [Enterprise Integration Patterns](/books1.html)\n\n**Related patterns:**\n\n[*Correlation Identifier*](CorrelationIdentifier.html), [*Message Router*](MessageRouter.html), [*Request-Reply*](RequestReply.html), [*Return Address*](ReturnAddress.html), [*Wire Tap*](WireTap.html)\n\n---\n\n## Integration Pattern Language\n\n[Message Construct.](MessageConstructionIntro.html)\n\n[Message](Message.html)\n\n[Command Message](CommandMessage.html)\n\n[Document Message](DocumentMessage.html)\n\n[Event Message](EventMessage.html)\n\n[Request-Reply](RequestReply.html)\n\n[Return Address](ReturnAddress.html)\n\n[Correlation Identifier](CorrelationIdentifier.html)\n\n[Message Sequence](MessageSequence.html)\n\n[Message Expiration](MessageExpiration.html)\n\n[Format Indicator](FormatIndicator.html)\n\n[Message Routing](MessageRoutingIntro.html)\n\n[Pipes-and-Filters](PipesAndFilters.html)\n\n[Message Router](MessageRouter.html)\n\n[Content-based Router](ContentBasedRouter.html)\n\n[Message Filter](Filter.html)\n\n[Dynamic Router](DynamicRouter.html)\n\n[Recipient List](RecipientList.html)\n\n[Splitter](Sequencer.html)\n\n[Aggregator](Aggregator.html)\n\n[Resequencer](Resequencer.html)\n\n[Composed Msg. Processor](DistributionAggregate.html)\n\n[Scatter-Gather](BroadcastAggregate.html)\n\n[Routing Slip](RoutingTable.html)\n\n[Process Manager](ProcessManager.html)\n\n[Message Broker](MessageBroker.html)\n\n[Message\nTransformation](MessageTransformationIntro.html)\n\n[Message Translator](MessageTranslator.html)\n\n[Envelope Wrapper](EnvelopeWrapper.html)\n\n[Content Enricher](DataEnricher.html)\n\n[Content Filter](ContentFilter.html)\n\n[Claim Check](StoreInLibrary.html)\n\n[Normalizer](Normalizer.html)\n\n[Canonical Data Model](CanonicalDataModel.html)\n\n[Messaging Endpoints](MessagingEndpointsIntro.html)\n\n[Message Endpoint](MessageEndpoint.html)\n\n[Messaging Gateway](MessagingGateway.html)\n\n[Messaging Mapper](MessagingMapper.html)\n\n[Transactional Client](TransactionalClient.html)\n\n[Polling Consumer](PollingConsumer.html)\n\n[Event-driven Consumer](EventDrivenConsumer.html)\n\n[Competing Consumers](CompetingConsumers.html)\n\n[Message Dispatcher](MessageDispatcher.html)\n\n[Selective Consumer](MessageSelector.html)\n\n[Durable Subscriber](DurableSubscription.html)\n\n[Idempotent Receiver](IdempotentReceiver.html)\n\n[Service Activator](MessagingAdapter.html)\n\n[Messaging Channels](MessagingChannelsIntro.html)\n\n[Message Channel](MessageChannel.html)\n\n[Point-to-Point Channel](PointToPointChannel.html)\n\n[Publish-Subscr. Channel](PublishSubscribeChannel.html)\n\n[Datatype Channel](DatatypeChannel.html)\n\n[Invalid Message Channel](InvalidMessageChannel.html)\n\n[Dead Letter Channel](DeadLetterChannel.html)\n\n[Guaranteed Delivery](GuaranteedMessaging.html)\n\n[Channel Adapter](ChannelAdapter.html)\n\n[Messaging Bridge](MessagingBridge.html)\n\n[Message Bus](MessageBus.html)\n\n[Systems Mgmt.](SystemManagementIntro.html)\n\n[Control Bus](ControlBus.html)\n\n[Detour](Detour.html)\n\n[Wire Tap](WireTap.html)\n\n[Message History](MessageHistory.html)\n\n[Message Store](MessageStore.html)\n\n[Smart Proxy](SmartProxy.html)\n\n[Test Message](TestMessage.html)\n\n[Channel Purger](ChannelPurger.html)\n\n- » [Read the latest in My Blog](/ramblings)\n- » [Get more insights from My Articles](/articles.html)\n- » [See me live in my Upcoming Talks](/talks)\n\nYou can reuse the following elements under the [Creative Commons Attribution](http://creativecommons.org/licenses/by/4.0/) license: pattern icon, pattern name, problem and solution statements (in bold), and the sketch. Other portions are protected by copyright.\n\n[Enterprise Integration Patterns](https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20)\nThe de-facto language for designing asynchronous, distributed systems. Over 100,000 copies sold.\n\n[The Software Architect Elevator](https://www.architectelevator.com/book)\n\n Rethink the role of architects as a connecting element across organizational layers. Acquire the technical, communication, and organizational skills to succeed in this new role.\n\n[Cloud Strategy](https://www.cloudstrategybook.com)\n\n Make your cloud migration a success by translating high-level goals into conscious decisions with well-understood trade-offs.\n\n[Platform Strategy](https://www.platformstrategybook.info)\n\n Platforms can boost innovation through harmonization, but they aren't easy to build. Learn from over a decade of designing and rolling out IT platforms.", "znaku_textu": 6501, "slov": 574, "odkazu": 108, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/SmartProxy.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 14:56:14", "sha256": "e2d10e7a0172ac86724152a738d8c952e5984f306aac27aef52096be7048b1e3", "hloubka": 3, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://creativecommons.org/licenses/by/4.0/", "https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "https://www.architectelevator.com/book", "https://www.cloudstrategybook.com/", "https://www.platformstrategybook.info/"]} {"url": "http://www.enterpriseintegrationpatterns.com/patterns/messaging/StoreInLibrary.html", "titulek": "Claim Check - Enterprise Integration Patterns", "h1": "", "popis": "How can we reduce the data volume of message sent across the system without sacrificing information content?", "klicova_slova": "Claim Check,integration, messaging, events, patterns, event-driven, coupling, eai, middleware, application integration, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns", "og:title": "Claim Check - Enterprise Integration Patterns", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/StoreInLibrary.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/StoreInLibrary.gif"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Integration Pattern Language"}], "markdown": "| | Claim Check[Messaging Patterns](index.html) » [Message Transformation](MessageTransformationIntro.html) | [Contents](toc.html)[⇐ Prev](ContentFilter.html)[Next ⇒](Normalizer.html) |\n| --- | --- | --- |\n\nThe [*Content Enricher*](DataEnricher.html) tells us how we can deal with situations where our message is missing required data items. The [*Content Filter*](ContentFilter.html) lets us remove uninteresting data items from a message. Sometimes, we want to remove fields only temporarily. For example, a message may contain a set of data items that may be needed later in the message flow, but that are not necessary for all intermediate processing steps. We may not want to carry all this information through each processing step because it may cause performance degradation and makes debugging harder because we carry so much extra data.\n\nHow can we reduce the data volume of message sent across the system without sacrificing information content?\n\nStore message data in a persistent store and pass a *Claim Check* to subsequent components. These components can use the *Claim Check* to retrieve the stored information.\n\nThe *Claim Check* pattern consists of the following steps:\n\n1. A message with data arrives.\n2. The \"Check Luggage\" component generates a unique key for the information. This key will be used later as the *Claim Check*\n3. The Check Luggage component extracts the data from the message and stores it in a persistent store, e.g. a file or a database. It associates the stored data with the key .\n4. It removes the persisted data from the message and adds the *Claim Check* .\n5. Another component can use a [*Content Enricher*](DataEnricher.html) to retrieve the data based on the *Claim Check* .\n\nThis process is analogous to a luggage check at the airport. If you do not want to carry all your luggage with you, you simply check it with the airline counter. In return you receive a sticker on your ticket that has a reference number that uniquely identifies each piece of luggage you checked. Once you reach your final destination, you can retrieve your luggage.\n\n...\nRead the entire pattern in the book [Enterprise Integration Patterns](/books1.html)\n\n**Related patterns:**\n\n[*Content Filter*](ContentFilter.html), [*Content Enricher*](DataEnricher.html), [*Process Manager*](ProcessManager.html)\n\n---\n\n## Integration Pattern Language\n\n[Message Construct.](MessageConstructionIntro.html)\n\n[Message](Message.html)\n\n[Command Message](CommandMessage.html)\n\n[Document Message](DocumentMessage.html)\n\n[Event Message](EventMessage.html)\n\n[Request-Reply](RequestReply.html)\n\n[Return Address](ReturnAddress.html)\n\n[Correlation Identifier](CorrelationIdentifier.html)\n\n[Message Sequence](MessageSequence.html)\n\n[Message Expiration](MessageExpiration.html)\n\n[Format Indicator](FormatIndicator.html)\n\n[Message Routing](MessageRoutingIntro.html)\n\n[Pipes-and-Filters](PipesAndFilters.html)\n\n[Message Router](MessageRouter.html)\n\n[Content-based Router](ContentBasedRouter.html)\n\n[Message Filter](Filter.html)\n\n[Dynamic Router](DynamicRouter.html)\n\n[Recipient List](RecipientList.html)\n\n[Splitter](Sequencer.html)\n\n[Aggregator](Aggregator.html)\n\n[Resequencer](Resequencer.html)\n\n[Composed Msg. Processor](DistributionAggregate.html)\n\n[Scatter-Gather](BroadcastAggregate.html)\n\n[Routing Slip](RoutingTable.html)\n\n[Process Manager](ProcessManager.html)\n\n[Message Broker](MessageBroker.html)\n\n[Message\nTransformation](MessageTransformationIntro.html)\n\n[Message Translator](MessageTranslator.html)\n\n[Envelope Wrapper](EnvelopeWrapper.html)\n\n[Content Enricher](DataEnricher.html)\n\n[Content Filter](ContentFilter.html)\n\n[Claim Check](StoreInLibrary.html)\n\n[Normalizer](Normalizer.html)\n\n[Canonical Data Model](CanonicalDataModel.html)\n\n[Messaging Endpoints](MessagingEndpointsIntro.html)\n\n[Message Endpoint](MessageEndpoint.html)\n\n[Messaging Gateway](MessagingGateway.html)\n\n[Messaging Mapper](MessagingMapper.html)\n\n[Transactional Client](TransactionalClient.html)\n\n[Polling Consumer](PollingConsumer.html)\n\n[Event-driven Consumer](EventDrivenConsumer.html)\n\n[Competing Consumers](CompetingConsumers.html)\n\n[Message Dispatcher](MessageDispatcher.html)\n\n[Selective Consumer](MessageSelector.html)\n\n[Durable Subscriber](DurableSubscription.html)\n\n[Idempotent Receiver](IdempotentReceiver.html)\n\n[Service Activator](MessagingAdapter.html)\n\n[Messaging Channels](MessagingChannelsIntro.html)\n\n[Message Channel](MessageChannel.html)\n\n[Point-to-Point Channel](PointToPointChannel.html)\n\n[Publish-Subscr. Channel](PublishSubscribeChannel.html)\n\n[Datatype Channel](DatatypeChannel.html)\n\n[Invalid Message Channel](InvalidMessageChannel.html)\n\n[Dead Letter Channel](DeadLetterChannel.html)\n\n[Guaranteed Delivery](GuaranteedMessaging.html)\n\n[Channel Adapter](ChannelAdapter.html)\n\n[Messaging Bridge](MessagingBridge.html)\n\n[Message Bus](MessageBus.html)\n\n[Systems Mgmt.](SystemManagementIntro.html)\n\n[Control Bus](ControlBus.html)\n\n[Detour](Detour.html)\n\n[Wire Tap](WireTap.html)\n\n[Message History](MessageHistory.html)\n\n[Message Store](MessageStore.html)\n\n[Smart Proxy](SmartProxy.html)\n\n[Test Message](TestMessage.html)\n\n[Channel Purger](ChannelPurger.html)", "znaku_textu": 5036, "slov": 492, "odkazu": 108, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/StoreInLibrary.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 14:55:48", "sha256": "96395638cbc1165642bdff681ec21a2862359e68f88f59cb7a2b5b2ad4753fb5", "hloubka": 3, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://creativecommons.org/licenses/by/4.0/", "https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "https://www.architectelevator.com/book", "https://www.cloudstrategybook.com/", "https://www.platformstrategybook.info/"]} {"url": "http://www.enterpriseintegrationpatterns.com/patterns/messaging/SystemManagementExample.html", "titulek": "Loan Broker System Management - Enterprise Integration Patterns", "h1": "", "popis": "This section uses a more elaborate example to demonstrate how the system management patterns introduced in this section can be used to monitor and control a messaging solution. The example builds upon the C# and MSMQ implementation of the Loan Broker example from Chapter ?? (see Asynchronous Implementation with MSMQ). We augment rather than modify the original example solution so it is not critical that you reviewed all the code of the original example. As with the original example implementation, the intent of this section is not to explain the use of MSMQ-specific API's but rather to illustrate the implementation of the patterns in this book using a queue-oriented messaging system. The structure of the solution would look very similar when implemented in Java using JMS queues or IBM WebSphere MQ. Because we focus mostly on the design decisions and trade-offs, this section should be valuable to you even if you are not a C# or MSMQ developer.", "klicova_slova": "Loan Broker System Management,integration, messaging, events, patterns, event-driven, coupling, eai, middleware, application integration, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns", "og:title": "Loan Broker System Management - Enterprise Integration Patterns", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/SystemManagementExample.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/eip1_patterns_wide.png"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Instrumenting the Loan Broker"}, {"uroven": 2, "text": "Management Console"}, {"uroven": 2, "text": "Loan Broker Quality of Service"}, {"uroven": 2, "text": "Verify the Credit Bureau Operation"}, {"uroven": 2, "text": "Credit Bureau Failover"}, {"uroven": 2, "text": "Enhancing the Management Console"}, {"uroven": 2, "text": "Limitations of This Example"}, {"uroven": 2, "text": "Integration Pattern Language"}], "markdown": "| | Loan Broker System Management[Messaging Patterns](index.html) » Interlude: Systems Management Example | [Contents](toc.html)[⇐ Prev](ChannelPurger.html)[Next ⇒](BondTradingCaseStudy.html) |\n| --- | --- | --- |\n\nThis section uses a more elaborate example to demonstrate how the system management patterns introduced in this section can be used to monitor and control a messaging solution. The example builds upon the C# and MSMQ implementation of the Loan Broker example from Chapter ?? (see [*Asynchronous Implementation with MSMQ*](ComposedMessagingMSMQ.html)). We augment rather than modify the original example solution so it is not critical that you reviewed all the code of the original example. As with the original example implementation, the intent of this section is not to explain the use of MSMQ-specific API's but rather to illustrate the implementation of the patterns in this book using a queue-oriented messaging system. The structure of the solution would look very similar when implemented in Java using JMS queues or IBM WebSphere MQ. Because we focus mostly on the design decisions and trade-offs, this section should be valuable to you even if you are not a C# or MSMQ developer.\n\n## Instrumenting the Loan Broker\n\nThe loan broker implementation consists of the following four key components (see picture):\n\n- The *Test Client* makes requests for loan quotes.\n- The *Loan Broker* acts as the central process manager and coordinates the communication between the credit bureau and the banks.\n- The *Credit Bureau* provides a service to the Loan Broker, computing customer's credit scores.\n- Each *Bank* receives a quote request from the Loan Broker and submits an interest rate quote according to the loan parameters.\n\nIn most integration scenarios we do not have access to the application internals but are limited to monitoring and managing components from the outside. To make this example as realistic as possible, we decide to treat each of the components as a black box. Keeping this constraint in mind, we want the management solution to meet the following requirements:\n\n- **Management Console** : We want a single front-end that displays the health of all components and allows us to take compensating actions if something goes wrong.\n- **Loan Broker Quality of Service** : In the original solution we developed a test client that monitors the loan broker's response times between quote request and response. In a real production scenario clients will not perform this function for us (they may, however, complain that the system is too slow). Therefore, we want the management solution to capture this information and relay it to the management console.\n- **Verify the Credit Bureau Operation** : The Credit Bureau is an external service provided by a third party. We want to ensure the correct operation of this service by periodically sending test messages.\n- **Credit Bureau Failover** : If the Credit Bureau malfunctions we want to temporarily redirect the credit request messages to another service provider.\n\n## Management Console\n\nWe want to be able to collect metrics from multiple components in a single point so we can assess the health of the overall solution from a central spot. The management console also has to be able to control message flow and component parameters so that we can address outages by rerouting messages or changing component behavior.\n\nThe management console communicates with the individual components via messaging. It uses a separate [*Control Bus*](ControlBus.html) that only contains messages related to system management and not application data.\n\nBecause this is a book on enterprise integration and not on user interface design, we keep the management console very, very simple. Many vendors offer real-time data displays or you can even achieve visual miracles with Visual Basic and Microsoft Office components such as Excel. Also, many operating system or programming platforms offer their own instrumentation frameworks, e.g. Java/JMX (Java Management Extensions) or Microsoft's WMI (Windows Management Instrumentation). We decide to hand-roll our solution to make it less dependent on a specific vendor's API and to demonstrate the inner workings of a monitoring solution.\n\n## Loan Broker Quality of Service\n\nThe first requirement for the management solution is to measure the quality of service that the loan broker provides to its clients. For this type of monitoring we are not interested in the business content of the individual messages, i.e. the interest rate offered to the client, but only in the time elapsed between the request message and the reply message. The tricky part in tracking the time between these two messages is the fact that the client can specify the channel for the reply message via a [*Return Address*](ReturnAddress.html). So we cannot listen on a fixed channel for the reply. Luckily, the [*Smart Proxy*](SmartProxy.html) pattern solves this dilemma for us. A [*Smart Proxy*](SmartProxy.html) intercepts request messages, stores the [*Return Address*](ReturnAddress.html) supplied by the client and replaces it with a fixed channel address. As a result, the service (the Loan Broker in our case) sends all reply messages to one channel. The [*Smart Proxy*](SmartProxy.html) listens to this channel and correlates incoming reply messages to stored request messages. It then forwards the reply message to the original [*Return Address*](ReturnAddress.html) specified by the client (see picture).\n\n*Instrumenting the Loan Broker with a Smart Proxy*\n\nIn order to take advantage of the [*Smart Proxy*](SmartProxy.html) functionality, we \"insert\" the [*Smart Proxy*](SmartProxy.html) between the client and the Loan Broker (see picture). This insertion is transparent to the client because the [*Smart Proxy*](SmartProxy.html) listens on the same channel that the Loan Broker originally listened on (loanrequestQueue). We now start the Loan Broker with new parameters so that it listens on the brokerRequestQueue channel instead of the loanrequestQueue. The [*Smart Proxy*](SmartProxy.html) instructs the Loan Broker to send all reply messages to the brokerReplyQueue channel from where it forwards the messages back to the correct [*Return Address*](ReturnAddress.html) originally specified by the client.\n\nWe want to use the [*Smart Proxy*](SmartProxy.html) to measure both the response time for loan requests and the number of requests being processed by the loan broker at any one time. The [*Smart Proxy*](SmartProxy.html) can measure the time elapsed between request and reply messages by capturing the time that the request message was received. When it receives the associated reply message, the [*Smart Proxy*](SmartProxy.html) subtracts the request time from current time to compute the time elapsed between request and reply. The [*Smart Proxy*](SmartProxy.html) can estimate how many active requests the Loan Broker is managing at one time by counting how many outstanding request messages there are (i.e. request messages that have not yet received reply messages). The [*Smart Proxy*](SmartProxy.html) cannot distinguish between messages queued up on the brokerRequestQueue from messages that the Loan Broker started processing, so this metric equals the sum of both. We can update the number of outstanding request messages whenever we receive a request message or a reply message.\n\nThe [*Smart Proxy*](SmartProxy.html) passes the metrics information to the management console for monitoring and analysis. We could send the statistics for every single message but that would clutter our network if we deal with high message volumes. Inserting a [*Smart Proxy*](SmartProxy.html) into the message flow already doubles the number of message sent (two request and reply messages instead of one each) so we want to avoid sending another control message for each request message. Instead we use a timer so that the [*Smart Proxy*](SmartProxy.html) sends a metrics message to the [*Control Bus*](ControlBus.html) in predefined intervals, e.g. every 5 seconds. The metrics message can either contain summary metrics (e.g. the maximum, minimum and average response time) or the detailed info for all messages that passed through during the interval. In order to keep the metrics messages small and the management console simple we decide to just pass the summary metrics to the console.\n\nFor the implementation of the Loan Broker smart proxy, we reuse the SmartProxy base classes introduced in the [*Smart Proxy*](SmartProxy.html) pattern. We subclass the SmartProxyBase, SmartProxyRequestConsumer, and SmartProxyReplyConsumer classes (see class diagram). Please see the [*Smart Proxy*](SmartProxy.html) pattern for the source code for these classes.\n\n*Loan Broker Smart Proxy Class Diagram*\n\nJust like the original SmartProxy, the new LoanBrokerProxy contains two separate message consumers, one for incoming request message from the client (LoanBrokerProxyRequestConsumer) and one for incoming reply messages from the Loan Broker (LoanBrokerProxyReplyConsumer). Both consumer classes inherit from their respective base classes and add a new implementation of the AnalyzeMessage method.\n\nLet's have a look at the implementation of the LoanBrokerProxy class. The class maintains two ArrayLists with metrics, performanceStats and queueStats ArrayLists. performanceStats collects data points of response-reply time intervals in seconds while queueStats collects data points of the number of outstanding request messages (those either queued up in the brokerRequestQueue or in process by the Loan Broker). When the pre-programmed timer triggers, the method OnTimerEvent moves the data from both collections and stores them temporary snapshot. We have to perform any further analysis of the data with this snapshot copy because the message consumers continue to add new data points as messages are received.\n\n**LoanBrokerProxy Class**\n\n```\npublic class LoanBrokerProxy : SmartProxyBase\n{\n protected MessageQueue controlBus;\n\n protected ArrayList performanceStats;\n protected ArrayList queueStats;\n\n protected int interval;\n protected Timer timer;\n \n public LoanBrokerProxy(MessageQueue inputQueue, MessageQueue serviceRequestQueue, MessageQueue serviceReplyQueue, MessageQueue controlBus, int interval) : \n base (inputQueue, serviceRequestQueue, serviceReplyQueue)\n {\n messageData = Hashtable.Synchronized(new Hashtable());\n queueStats = ArrayList.Synchronized(new ArrayList());\n performanceStats = ArrayList.Synchronized(new ArrayList());\n\n this.controlBus = controlBus;\n this.interval = interval;\n\n requestConsumer = new LoanBrokerProxyRequestConsumer(inputQueue, serviceRequestQueue, serviceReplyQueue, messageData, queueStats);\n replyConsumer = new LoanBrokerProxyReplyConsumer(serviceReplyQueue, messageData, queueStats, performanceStats);\n }\n\n public override void Process()\n {\n base.Process();\n\n TimerCallback timerDelegate = new TimerCallback(OnTimerEvent);\n timer = new Timer(timerDelegate, null, interval*1000, interval*1000);\n }\n\n protected void OnTimerEvent(Object state)\n {\n ArrayList currentQueueStats;\n ArrayList currentPerformanceStats;\n\n lock (queueStats)\n {\n currentQueueStats = (ArrayList)(queueStats.Clone());\n queueStats.Clear();\n }\n\n lock (performanceStats)\n {\n currentPerformanceStats = (ArrayList)(performanceStats.Clone());\n performanceStats.Clear();\n }\n\n SummaryStats summary = new SummaryStats(currentQueueStats, currentPerformanceStats);\n if (controlBus != null)\n controlBus.Send(summary);\n }\n}\n```\n\nThe LoanBrokerProxy uses the SummaryStats structure to condense the individual data points into maximum, minimum and average values and then sends the summary data to the [*Control Bus*](ControlBus.html). We could make the evaluation more efficient by updating the summary statistics with each incoming message so that we have to store only the summary data and not each datapoint. On the other hand, deferring the computation allows us to change the amount of detail we want to publish to the [*Control Bus*](ControlBus.html).\n\nThe LoanBrokerProxyRequestConsumer class is rather simple. The base class SmartProxyRequestConsumer takes care of storing relevant message data in the messageData Hashtable so that we can derive the current number of outstanding request messages from the size of the Hashtable. The LoanBrokerProxyRequestConsumer maintains a reference to the queueStats collection inside the LoanBrokerProxy so that it can add the new data point to this collection.\n\n**LoanBrokerProxyRequestConsumer Class**\n\n```\npublic class LoanBrokerProxyRequestConsumer : SmartProxyRequestConsumer\n{\n ArrayList queueStats;\n\n public LoanBrokerProxyRequestConsumer(MessageQueue requestQueue, MessageQueue serviceRequestQueue, MessageQueue serviceReplyQueue, Hashtable messageData, ArrayList queueStats) : \n base(requestQueue, serviceRequestQueue, serviceReplyQueue, messageData)\n {\n this.queueStats = queueStats;\n }\n\n protected override void ProcessMessage(Message requestMsg)\n {\n base.ProcessMessage(requestMsg);\n queueStats.Add(messageData.Count);\n }\n}\n```\n\nThe LoanBrokerProxyReplyConsumer collects two metrics when a reply message arrives. First, it computes the time it took between sending the request message and receiving the reply message and adds that metric to the performanceStats collection. Second, it captures the remaining number of outstanding requests and adds that number to the queueStats collection.\n\n**LoanBrokerProxyReplyConsumer Class**\n\n```\npublic class LoanBrokerProxyReplyConsumer : SmartProxyReplyConsumer\n{\n ArrayList queueStats;\n ArrayList performanceStats;\n\n public LoanBrokerProxyReplyConsumer(MessageQueue replyQueue, Hashtable messageData, ArrayList queueStats, ArrayList performanceStats) :\n base(replyQueue, messageData)\n {\n this.queueStats = queueStats;\n this.performanceStats = performanceStats;\n }\n\n protected override void AnalyzeMessage(MessageData data, Message replyMessage)\n {\n TimeSpan duration = DateTime.Now - data.SentTime;\n performanceStats.Add(duration.TotalSeconds);\n\n queueStats.Add(messageData.Count);\n }\n}\n```\n\nThe SummaryStats structure computes maxima, minima and averages based on the captured data. It can derive the number of request messages processed by subtracting the number of performance data points (collected only for reply messages) from the number of queue data points (collected for request and reply messages). The implementation of this structure is quite trivial so that we decided not to fill a whole page with the code.\n\nOnce we insert the new Loan Broker proxy into the message stream we can start collecting performance metrics. To collect some example data, we configured two test clients to make 50 loan quote requests each. The proxy collected the following results (we used a simple XSL transform to render an HTML table off the metric data published in XML format to the controlBusQueue):\n\n| Date | #Requests | #Replies | min Processing Time | avg Processing Time | max Processing Time | min Queue Size | avg Queue Size | max Queue Size |\n| --- | --- | --- | --- | --- | --- | --- | --- | --- |\n| 14:11:02.9644 | 0 | 0 | 0.00 | 0.00 | 0.00 | 0 | 0 | 0 |\n| 14:11:07.9718 | 89 | 7 | 0.78 | 2.54 | 3.93 | 1 | 42 | 82 |\n| 14:11:12.9792 | 11 | 9 | 4.31 | 6.43 | 8.69 | 83 | 87 | 91 |\n| 14:11:17.9866 | 0 | 8 | 9.39 | 10.83 | 12.82 | 77 | 80 | 84 |\n| 14:11:22.9940 | 0 | 8 | 13.80 | 15.75 | 17.48 | 69 | 72 | 76 |\n| 14:11:28.0014 | 0 | 7 | 18.37 | 20.19 | 22.18 | 62 | 65 | 68 |\n| 14:11:33.0088 | 0 | 6 | 22.90 | 24.83 | 26.94 | 56 | 58 | 61 |\n| 14:11:38.0162 | 0 | 10 | 27.74 | 29.53 | 31.62 | 46 | 50 | 55 |\n| 14:11:43.0236 | 0 | 9 | 31.87 | 34.47 | 36.30 | 37 | 41 | 45 |\n| 14:11:48.0310 | 0 | 7 | 36.87 | 39.06 | 40.98 | 30 | 33 | 36 |\n| 14:11:53.0384 | 0 | 9 | 41.75 | 43.82 | 45.14 | 21 | 25 | 29 |\n| 14:11:58.0458 | 0 | 8 | 45.92 | 47.67 | 49.67 | 13 | 16 | 20 |\n| 14:12:03.0532 | 0 | 8 | 50.86 | 52.58 | 54.59 | 5 | 8 | 12 |\n| 14:12:08.0606 | 0 | 4 | 55.41 | 55.96 | 56.69 | 1 | 2 | 4 |\n| 14:12:13.0680 | 0 | 0 | 0.00 | 0.00 | 0.00 | 0 | 0 | 0 |\n\nLoaded into an Excel chart, the queue size data looks like this:\n\n*Loan Broker Smart Proxy Statistics*\n\nWe can see that he two test clients pretty much flooded the Loan Broker, peaking at about 90 pending requests. The Loan Broker then processes the requests at a stable rate of about 2 requests per second. Due to the large number of queued up requests, the the response times are pretty poor, peaking at almost 1 minute. The good news is that the Loan Broker handles a large number of sudden requests gracefully, while the bad news is that the response times are very long. In order to improve response times we could decide to execute multiple Loan Broker instances or multiple Credit Bureau instances (the Credit Bureau service turned out to be a bottleneck before).\n\n## Verify the Credit Bureau Operation\n\nThe second requirement for the management solution is to monitor the correct operation of the external Credit Bureau service. The Loan Broker accesses this service to obtain credit scores for customers requesting a loan quote. The banks require this information to provide an accurate quote.\n\nIn order to verify the correct operation of the external Credit Bureau service we send periodic [*Test Message*](TestMessage.html)s to the service. Because the Credit Bureau service supports a [*Return Address*](ReturnAddress.html) it is easy to inject a [*Test Message*](TestMessage.html) without disturbing the existing message flow. We simply provide a dedicated reply channel for test messages and avoid the need for a separate test message separator.\n\n*Monitoring the Credit Bureau Service*\n\nIn order to verify the correct operation of the Credit Bureau service we need a *Test Data Generator* and a *Test Data Verifier*. The test data generator creates test data to be sent to the service under test. A Credit Bureau test message is very simple; the only field that is required is a social security number (SSN). For our tests we use a special, fixed SSN that identifies a fictitious person. This allows us to verify the result data with preestablished results. This way we can not only check whether we receive a reply message but also verify the content of the message. In our simple example, the Credit Bureau is programmed to return random results regardless of the incoming SSN. As a result, our test data verifier does not check for specific result values but instead verifies whether the results are within the allowed range (e.g. 300 - 900 for a credit score). If the results fall outside the allowed range (for example because a computational error score set the score to zero), the test data verifier notifies the management console with a message.\n\nThe test data verifier also checks the response time of the external service. If we do not receive a reply message within a preset time interval we alert the management console. To minimize network bandwidth, the test data verifier notifies the console only if the response is delayed or malformed, not when the service is operating correctly. The only exception to this rule occurs when the monitor receives a correct reply message from the service subsequent to detecting an error. In that case, the monitor sends a \"service OK\" message to the management console to indicate that the credit bureau is working correctly again. Lastly, during start-up the monitor sends a message to the console to announce its existence. This message allows the console to \"discover\" all active monitors so it can display the status for each.\n\nThe monitor implementation uses two separate timers. The Send Timer determines the time interval between the last received message or the last timeout event and sending the next [*Test Message*](TestMessage.html). The Timeout Timer is started whenever the monitor sends a request message. If a reply message arrives within the specified timeout interval, the Timeout Timer is reset and restarted with the next request message. If the monitor does not receive a reply message within the specified interval, the Timeout timer triggers and sends the monitor sends an error message to the control bus. It then starts a new Send Timer to initiate a new request message after the send interval (see diagram). A real-life scenario is likely to use a relatively short timeout (a few seconds) and a larger send interval (e.g., one minute).\n\n*Monitoring the Credit Bureau Service*\n\nThe implementation of the monitor is relatively simple and only requires a single class. The Monitor class inherits from the MessageConsumer introduced in the [*Smart Proxy*](SmartProxy.html) pattern. This class configures and inbound channel and starts an [*Event-Driven Consumer*](EventDrivenConsumer.html) to receive messages. For each incoming message it invokes the virtual ProcessMessage method. An inheriting class can simply override this method to add its own processing.\n\nThe Process method instructs a MessageConsumer to start consuming messages. The Monitor class augments the base implementation of this method by starting the Send Timer. When this timer triggers, it invokes the OnSendTimerEvent method. The Process message also sends a message to the [*Control Bus*](ControlBus.html)to announce its existence.\n\n**Monitor Class - Sending Messages**\n\n```\npublic override void Process()\n{\n base.Process();\n sendTimer = new Timer(new TimerCallback(OnSendTimerEvent), null, interval*1000, Timeout.Infinite);\n\n MonitorStatus status = new MonitorStatus(MonitorStatus.STATUS_ANNOUNCE, \"Monitor On-Line\", null, MonitorID);\n Console.WriteLine(status.Description);\n controlQueue.Send(status);\n lastStatus = status.Status;\n}\n\nprotected void OnSendTimerEvent(Object state)\n{\n CreditBureauRequest request = new CreditBureauRequest();\n request.SSN = SSN;\n\n Message requestMessage = new Message(request);\n requestMessage.Priority = MessagePriority.AboveNormal;\n requestMessage.ResponseQueue = inputQueue;\n\n Console.WriteLine(DateTime.Now.ToString() + \" Sending request message\");\n requestQueue.Send(requestMessage);\n\n correlationID = requestMessage.Id;\n\n timeoutTimer = new Timer(new TimerCallback(OnTimeoutEvent), null, timeout*1000, Timeout.Infinite);\n}\n```\n\nThe OnSendTimerEvent method creates a new request message. The only parameter in the request message is the customer's social security number (SSN). The method specifies a fixed SSN. The method also saves the message ID to verify the [*Correlation Identifier*](CorrelationIdentifier.html) of any incoming reply messages. Lastly, it starts the timeoutTimer so that the monitor is being notified after a set time interval if no reply message is received.\n\nThe method sets the test message's Priority property to AboveNormal to make sure that queued up application messages do not let the service appear as if it was not available. Using a higher priority for [*Test Message*](TestMessage.html)s causes the message queue to deliver these messages ahead of queued up application messages. Setting a higher message priority is safe in this case because test data generator injects a very small volume of [*Test Message*](TestMessage.html)s. If we injected a large volume of high priority messages into the request channel we could interrupt the flow of application messages. This would definitely violate the intention of a management solution to be as minimally intrusive as possible.\n\nThe ProcessMessage is the heart of the Monitor class. It implements the test message verifier, evaluating incoming reply messages. After stopping the timeout timer the method checks the incoming message for the correct [*Correlation Identifier*](CorrelationIdentifier.html), correct data type of the message body and reasonable values inside the message body. If any of these tests fail, the method sets up a MonitorStatus structure and sends it to the [*Control Bus*](ControlBus.html) channel. The monitor also tracks the previous status is in the lastStatus variable. If the status changes from \"error\" to \"OK\", the ProcessMessage method also sends a notification to the [*Control Bus*](ControlBus.html).\n\n**Monitor Class - Receiving Messages**\n\n```\nprotected override void ProcessMessage(Message msg)\n{\n Console.WriteLine(DateTime.Now.ToString() + \" Received reply message\");\n\n if (timeoutTimer != null)\n timeoutTimer.Dispose();\n\n msg.Formatter = new XmlMessageFormatter(new Type[] {typeof(CreditBureauReply)});\n CreditBureauReply replyStruct;\n MonitorStatus status = new MonitorStatus();\n\n status.Status = MonitorStatus.STATUS_OK;\n status.Description = \"No Error\";\n status.ID = MonitorID;\n\n try \n {\n if (msg.Body is CreditBureauReply) \n {\n replyStruct = (CreditBureauReply)msg.Body;\n if (msg.CorrelationId != correlationID) \n {\n status.Status = MonitorStatus.STATUS_FAILED_CORRELATION;\n status.Description = \"Incoming message correlation ID does not match outgoing message ID\";\n }\n else \n {\n if (replyStruct.CreditScore < 300 || replyStruct.CreditScore > 900 ||\n replyStruct.HistoryLength < 1 || replyStruct.HistoryLength > 24)\n {\n status.Status = MonitorStatus.STATUS_INVALID_DATA;\n status.Description = \"Credit score values out of range\";\n }\n }\n\n }\n else\n { \n status.Status = MonitorStatus.STATUS_INVALID_FORMAT;\n status.Description = \"Invalid message format\";\n }\n }\n catch (Exception e) \n {\n Console.WriteLine(\"Exception: {0}\", e.ToString()); \n status.Status = MonitorStatus.STATUS_INVALID_FORMAT;\n status.Description = \"Could not deserialize message body\";\n }\n\n StreamReader reader = new StreamReader (msg.BodyStream);\n status.MessageBody = reader.ReadToEnd();\n\n Console.WriteLine(status.Description);\n\n if (status.Status != MonitorStatus.STATUS_OK || \n (status.Status == MonitorStatus.STATUS_OK && lastStatus != MonitorStatus.STATUS_OK)) \n {\n controlQueue.Send(status);\n }\n\n lastStatus = status.Status;\n sendTimer.Dispose();\n sendTimer = new Timer(new TimerCallback(OnSendTimerEvent), null, interval*1000, Timeout.Infinite);\n}\n```\n\nIf no message arrives in the specified interval, the timeoutTimer will invoke the OnTimeoutEvent method. This method sends a MonitorStatus message to the [*Control Bus*](ControlBus.html) and starts a new Send timer so that a new request message is sent after the interval.\n\n**Monitor Class - Timeout**\n\n```\nprotected void OnTimeoutEvent(Object state)\n{\n MonitorStatus status = new MonitorStatus(MonitorStatus.STATUS_TIMEOUT, \"Timeout\", null, MonitorID);\n Console.WriteLine(status.Description);\n controlQueue.Send(status);\n lastStatus = status.Status;\n\n timeoutTimer.Dispose();\n sendTimer = new Timer(new TimerCallback(OnSendTimerEvent), null, interval*1000, Timeout.Infinite);\n}\n```\n\n## Credit Bureau Failover\n\nNow that we can monitor the status of the external Credit Bureau service we want to use this data to implement a failover scheme so that the Loan Broker can continue operating even when the Credit Bureau service fails. It is worthwhile noting that [*Point-to-Point Channel*](PointToPointChannel.html)s already provide a basic form of failover. When we use multiple [*Competing Consumers*](CompetingConsumers.html) on a single [*Point-to-Point Channel*](PointToPointChannel.html), the failure of one consumer will not interrupt processing as long as the other consumer(s) still operate. When multiple consumers are active, they split the load, effectively implementing a simple load balancing mechanism. Why would we need to implement an explicit fail-over mechanism? When using external services, we may be limited to simple channels that do not support [*Competing Consumers*](CompetingConsumers.html), e.g. SOAP over HTTP. Also, we may not want multiple services to load balance. For example, we may have a volume agreement with the primary service provider that gives us substantial discounts if we meet certain usage quotas. Splitting the traffic across two providers will likely cost us more. Alternatively, we may be using a low-cost provider as out primary service provider and only want to switch over to a premium provider when the low-cost provider fails. \n (For an excellent discussion of architectural decisions driven by licensing issues see [[Hohmann](http://www.amazon.com/exec/obidos/ASIN/0201775948/enterpriseint-20)])\n.\n\nIn order to implement explicit failover, we insert a [*Message Router*](MessageRouter.html) into the credit bureau request channel (see picture). This router routes the request either to the primary credit bureau service (green arrows) or the secondary credit bureau service (red arrows). Because the secondary service may use a different message format than the first service, we wrap the secondary service with a pair of [*Message Translator*](MessageTranslator.html)s. The [*Message Router*](MessageRouter.html) is a *Context-Based Router*, controlled by the management console over the [*Control Bus*](ControlBus.html). The management console gets monitoring data from the Credit Bureau Monitor we designed in the previous section. If the monitor indicates a failure, the management console instructs the [*Message Router*](MessageRouter.html) to reroute the traffic to the secondary service provider (see picture).\n\n*Explicit Failover with a Context-Based Router*\n\nEven while the request message traffic is re-routed to the secondary service provider, the monitor keeps on sending test messages to the primary provider. When the monitor confirms the correct operation of the service, the console instructs the [*Message Router*](MessageRouter.html) to return to routing request messages to the primary provider. The solution diagram does not show a monitor for the secondary service provider even though it would be very easy use a second instance of the credit bureau monitor to monitor the backup Credit Bureau service.\n\nLet's look at the implementation of the Context-Based Router. ContextBasedRouter inherits from our trusty MessageConsumer base class to process incoming messages. The ProcessMessage method checks the value of the variable control and routes incoming messages to either the primary or secondary output channel.\n\n**ContextBasedRouter Class**\n\n```\ndelegate void ControlEvent(int control);\n\nclass ContextBasedRouter : MessageConsumer\n{\n...\n protected override void ProcessMessage(Message msg)\n {\n if (control == 0) \n {\n primaryOutputQueue.Send(msg);\n }\n else \n {\n secondaryOutputQueue.Send(msg);\n }\n }\n\n protected void OnControlEvent(int control)\n {\n this.control = control;\n Console.WriteLine(\"Control = \" + control);\n }\n}\n```\n\nThe variable control can be set by invoking the OnControlEvent method. This is the purpose of the ControlReceiver class. This class also inherits from MessageConsumer as it listens for messages from the control channel. The ContextBasedRouter class supplies the ControlReceiver with a delegate of type ControlEvent to invoke when it receives a control event with a numeric value. If you have not come across delegates, they are a really neat, type-safe way to implement callbacks without having to implement another interface or relegating to function pointers ([[Box](http://www.amazon.com/exec/obidos/ASIN/0201734117/enterpriseint-20)] goes into all the gory details).\n\n**ControlReceiver Class**\n\n```\nclass ControlReceiver : MessageConsumer\n{\n protected ControlEvent controlEvent;\n\n public ControlReceiver(MessageQueue inputQueue, ControlEvent controlEvent) : base (inputQueue) \n {\n this.controlEvent = controlEvent;\n }\n\n protected override void ProcessMessage(Message msg)\n {\n String text = (string)msg.Body;\n Double resNum;\n\n if (Double.TryParse( text, NumberStyles.Integer, NumberFormatInfo.InvariantInfo, out resNum)) \n {\n int control = int.Parse(text);\n controlEvent(control);\n }\n }\n}\n```\n\n## Enhancing the Management Console\n\nThe first version of the management console was so simple that we did not even bother showing the code. All it could do was receive a message and write the message content to a file for later analysis (such as rendering performance graphs from Excel). Now we want to inject some more intelligence into the management console. First, when the primary Credit Bureau Monitor indicates a failure, the management console needs to instruct the Context-Based Router to reroute messages to the secondary service provider. We opted to implement this functionality inside the management console so that we can decouple the monitor and the Context-Based Router (effectively, the management console acts as a *Mediator* as defined in [[GoF](http://www.amazon.com/exec/obidos/ASIN/0201633612/enterpriseint-20)]). Also, implementing the failover logic in a central location gives us a single point of maintenance for the system management rules. Commercial management consoles typically include configurable rules engines to determine appropriate corrective actions based on events on the [*Control Bus*](ControlBus.html).\n\nSecond, we want to build a simple user interface for the management console that displays the current state of the system. Obtaining a \"big picture\" view of a messaging system can be quite difficult, especially if message paths change dynamically. It does not take a lot of components to make it difficult to reconcile where messages flow. Our user interface is simple but nevertheless quite useful. We use the iconic language defined in this book to represent the interaction between components. For now, the user interface only displays the Credit Bureau failover portion of the system, consisting of two services and one Context-Based Router (see picture).\n\n*The Management Console Indicates That Both Credit Bureau Services Are Active*\n\nWhen the Monitor detects a failure and instructs the router to re-route the traffic, we want to update the user interface to reflect the new status (see picture). The router shows the new route for the request messages and the primary Credit Bureau component changes colors to indicate the failure.\n\n*The Management Console Indicates That The Primary Credit Bureau Failed and Traffic is Being Re-Routed*\n\nLet's have a brief look at the code behind this console. We will focus on the system management part of the code and not dive into the details of the code that renders the pretty user interface pictures. First, the management console needs to be able to retrieve status messages from the monitor component. To make the console as robust as possible, we access the message content in a loosely coupled fashion, reading individual fields from the XML payload. This approach helps keep the management console operational even if the individual components decide to add some fields to the message.\n\nNot surprisingly, the console class also inherits from our good friend MessageConsumer, so we only show the ProcessMessage method here. The component simply reads the message's BodyStream into a string variable and passes it to the different components for analysis.\n\n**ManagementConsole - ProcessMessage**\n\n```\npublic delegate void ControlMessageReceived(String body);\n\npublic class ManagementConsole : MessageConsumer\n{\n protected Logger logger;\n public MonitorStatusHandler monitorStatusHandler;\n \n public ControlMessageReceived updateEvent;\n\n public ManagementConsole(MessageQueue inputQueue, string pathName) : base(inputQueue) \n {\n logger = new Logger(pathName);\n monitorStatusHandler = new MonitorStatusHandler();\n\n updateEvent += new ControlMessageReceived(logger.Log);\n updateEvent += new ControlMessageReceived(monitorStatusHandler.OnControlMessage);\n }\n\n protected override void ProcessMessage(Message m)\n {\n Stream stm = m.BodyStream;\n StreamReader reader = new StreamReader (stm);\n String body = reader.ReadToEnd();\n\n updateEvent(body);\n }\n ...\n}\n```\n\nThe ManagementConsole class uses a delegate to notify the logger and the MonitorStatusHandler. Using a delegate allows us to easily add other classes that also listen on incoming control messages without having to change the code inside the ProcessMessage method.\n\nOne of the components analyzing incoming control message data is the MonitorStatusHandler class. First, this class checks whether the incoming message is a MonitorStatus message. If so it loads the message body into an XML document to extract the relevant fields contained inside the and the elements. It then invokes the delegate updateEvent which is of type MonitorStatusUpdate. Any interested class inside the management console application can add a callback method to this delegate and be notified any time a MonitorStatus message arrives. All the component has to do is provide an implementation of a method with a signature equal to MonitorStatusUpdate.\n\n**MonitorStatusHandler**\n\n```\npublic delegate void MonitorStatusUpdate(String ID, int Status);\n\npublic class MonitorStatusHandler\n{\n public MonitorStatusUpdate updateEvent;\n\n public void OnControlMessage(String body)\n {\n XmlDocument doc = new XmlDocument();\n doc.LoadXml(body);\n\n XmlElement root = doc.DocumentElement;\n if (root.Name == \"MonitorStatus\") \n {\n XmlNode statusNode = root.SelectSingleNode(\"Status\");\n XmlNode idNode = root.SelectSingleNode(\"ID\");\n\n if (idNode!= null && statusNode != null) \n {\n String msgID = idNode.InnerText;\n String msgStatus = statusNode.InnerText;\n Double resNum;\n int status = 99;\n\n if (Double.TryParse( msgStatus, NumberStyles.Integer, NumberFormatInfo.InvariantInfo, out resNum)) \n {\n status = (int)resNum;\n }\n updateEvent(msgID, status);\n }\n }\n } \n}\n```\n\nIn our example, the first two components listening to the MonitorStatusUpdate event triggered by the MonitorStatusHandler are two user interface controls representing the primary and secondary Credit Bureau service in the user interface form. Each user interface control filters the events for the identifier that is unique to the respective component that is being monitored. When the status of the monitored component changes, the user interface control changes the color of the component. The following routine that is executed during the initialization of the display form ties the two Credit Bureau display controls to the monitorStatusHandler of the management console:\n\n**Console Form Initialization**\n\n```\nconsole = new ManagementConsole(controlBusQueue, logFileName);\n\nprimaryCreditBureauControl = new ComponentStatusControl(\"Primary Credit Bureau\", \"PrimaryCreditService\");\nprimaryCreditBureauControl.Bounds = new Rectangle(300, 30, COMPONENT_WIDTH, COMPONENT_HEIGHT);\n\nsecondaryCreditBureauControl = new ComponentStatusControl(\"Secondary Credit Bureau\", \"SecondaryCreditService\");\nsecondaryCreditBureauControl.Bounds = new Rectangle(300, 130, COMPONENT_WIDTH, COMPONENT_HEIGHT);\n\nconsole.monitorStatusHandler.updateEvent += new MonitorStatusUpdate(primaryCreditBureauControl.OnMonitorStatusUpdate);\nconsole.monitorStatusHandler.updateEvent += new MonitorStatusUpdate(secondaryCreditBureauControl.OnMonitorStatusUpdate);\n```\n\nAnother component listening to the MonitorStatusUpdate events is the FailOverHandler. This component is a non-visual component that analyzes status messages to determine whether a failover switch should be set. If the status of the monitor has changed (we use a logical XOR denoted by the '^' operator) the FailOverHandler sends a command message to the designated command channel. In our case, this command channel is connected to the Context-Based Router who will start re-routing credit score request messages.\n\n**FailOverHandler Class**\n\n```\npublic delegate void FailOverStatusUpdate(String ID, string Command);\n\npublic class FailOverHandler\n{\n ...\n public void OnMonitorStatusUpdate(String ID, int status)\n {\n if (componentID == ID) \n {\n if (IsOK(status) ^ IsOK(currentStatus)) \n {\n String command = IsOK(status) ? \"0\" : \"1\";\n commandQueue.Send(command);\n currentStatus = status;\n updateEvent(ID, command);\n }\n }\n }\n\n protected bool IsOK(int status)\n {\n return (status == 0 || status >= 99);\n }\n}\n```\n\nThe FailOverHandler also invokes the updateEvent, which is a delegate of type FailOverStatusUpdate. Similar to the MonitorStatusHandler we can register any component that implements a method of this type to receive update notifications whenever the FailOverHandler changes status. In our example, we register the visual FailOverControl to receive these events so that it can redraw whenever the failover status changes. The console user interface initialization routine establishes the connection between these components:\n\n**Console Form Initialization**\n\n```\nfailOverControl = new FailOverControl(\"Credit Bureau Failover\", \"PrimaryCreditService\");\nfailOverControl.Bounds = new Rectangle(100, 80, ROUTER_WIDTH, COMPONENT_HEIGHT);\n\nFailOverHandler failOverHandler = new FailOverHandler(commandQueue, \"PrimaryCreditService\");\nconsole.monitorStatusHandler.updateEvent += new MonitorStatusUpdate(failOverHandler.OnMonitorStatusUpdate);\n\nfailOverHandler.updateEvent += new FailOverStatusUpdate(failOverControl.OnMonitorStatusUpdate);\n```\n\nConnecting the individual components inside the management console through delegates and events results in a loosely coupled architecture. This architecture allows us to reuse the individual components and re-compose them into different constellations similar to the [*Pipes and Filters*](PipesAndFilters.html) architectural style introduced at the beginning of the book. Essentially, passing messages arriving on the [*Control Bus*](ControlBus.html) by using delegates resembles creating an application-internal [*Publish-Subscribe Channel*](PublishSubscribeChannel.html). Because the control bus events arrive on a [*Point-to-Point Channel*](PointToPointChannel.html), we have to use a single consumer who then publishes the event to any interested \"subscriber\" inside the application.\n\nThe following collaboration diagram illustrates the propagation of events between the individual components.\n\n*Propagation of Events Inside the Management Console*\n\nUsing a user-interface console to visualize the message flow between individual components is a powerful system management tool. Some vendors include development suites that allow designers to visually arrange components and connect their input and outputs ports to create distributed message-flow application. For example, Fiorano's Tifosi product ([www.fiorano.com](http://www.fiorano.com)) includes the *Distributed Applications Composer* that allows the design of a distributed solution from a single graphical user interface even though each component may execute on a different machine or platform. This tool uses a [*Control Bus*](ControlBus.html) to connect all distributed components to a central management and monitoring console.\n\nOur simple example requires the management console hard-code the visual connection between the individual components, e.g. to draw a line between the failover router and the Credit Bureau components. Many integration tools such as Tifosi allow the user to design the solution from the beginning using a graphical user interface. This approach makes it easy to use the graphical design to display the status of the solution.\n\nIn some cases we may analyze the message flow in an existing messaging solution to create a graphical representation of the system. There are two fundamental approaches to perform this type of analysis. A *Static Analysis* analyses the channels that each component publishes and subscribes to. If one component publishes to the same channel another component subscribes to, the tool can draw a connecting line between the two components. Storing this information in a central repository (as supported by many EAI tool suites, for example TIBCO ActiveEnterprise) is a huge benefit for this type of analysis. In the absence of such a repository, we can inspect individual messages and reverse-engineer connections between components based on the origin of messages arriving at a particular component. This task is greatly simplified if the participating components support the creation of a [*Message History*](MessageHistory.html). Without the help of a [*Message History*](MessageHistory.html), we can still reconstruct the flow of messages if each message contains a field specifying the sender of the message (many systems include such a field for authentication purposes).\n\n## Limitations of This Example\n\nUnfortunately, in order to fit this example into the scope of a single chapter, we had to make some simplifying assumptions. For example, our failover mechanism does not deal with the messages that are already queued up when the primary Credit Bureau service fails -- these messages remain queued up until the service is reinstated. The Loan Broker is able to continue functioning because it correlates incoming response message to reply messages, but the loan quote requests associated with the 'stuck' message will not be processed until the primary Credit Bureau comes back on-line. In order to improve response times in a fail-over scenario we should implement a re-send function that allows the Loan Broker to re-issue request messages for those messages that are queued up indefinitely in front of a failed service. Alternatively, the fail-over router could store all request messages that have arrived since the correct function of the service was last confirmed. If a service failure is detected, the router could re-send all these messages because some of them might not have been processed correctly. This approach can lead to duplicate request messages (and associated reply messages), but since both the Credit Bureau service and the Loan Broker messages are [*Idempotent Receiver*](IdempotentReceiver.html)s this does not cause any problems -- duplicate reply messages are simply ignored.\n\nThis example demonstrated only a small subset of the system management functions that can be implemented with the patterns in this section. For example, we could monitor message traffic across all components, set performance thresholds, have each component send \"heartbeat\" messages and more, In fact, adding robust system management to a distributed messaging solution can require as much (or more) design and implementation effort as the original solution.\n\n## Integration Pattern Language\n\n[Message Construct.](MessageConstructionIntro.html)\n\n[Message](Message.html)\n\n[Command Message](CommandMessage.html)\n\n[Document Message](DocumentMessage.html)\n\n[Event Message](EventMessage.html)\n\n[Request-Reply](RequestReply.html)\n\n[Return Address](ReturnAddress.html)\n\n[Correlation Identifier](CorrelationIdentifier.html)\n\n[Message Sequence](MessageSequence.html)\n\n[Message Expiration](MessageExpiration.html)\n\n[Format Indicator](FormatIndicator.html)\n\n[Message Routing](MessageRoutingIntro.html)\n\n[Pipes-and-Filters](PipesAndFilters.html)\n\n[Message Router](MessageRouter.html)\n\n[Content-based Router](ContentBasedRouter.html)\n\n[Message Filter](Filter.html)\n\n[Dynamic Router](DynamicRouter.html)\n\n[Recipient List](RecipientList.html)\n\n[Splitter](Sequencer.html)\n\n[Aggregator](Aggregator.html)\n\n[Resequencer](Resequencer.html)\n\n[Composed Msg. Processor](DistributionAggregate.html)\n\n[Scatter-Gather](BroadcastAggregate.html)\n\n[Routing Slip](RoutingTable.html)\n\n[Process Manager](ProcessManager.html)\n\n[Message Broker](MessageBroker.html)\n\n[Message\nTransformation](MessageTransformationIntro.html)\n\n[Message Translator](MessageTranslator.html)\n\n[Envelope Wrapper](EnvelopeWrapper.html)\n\n[Content Enricher](DataEnricher.html)\n\n[Content Filter](ContentFilter.html)\n\n[Claim Check](StoreInLibrary.html)\n\n[Normalizer](Normalizer.html)\n\n[Canonical Data Model](CanonicalDataModel.html)\n\n[Messaging Endpoints](MessagingEndpointsIntro.html)\n\n[Message Endpoint](MessageEndpoint.html)\n\n[Messaging Gateway](MessagingGateway.html)\n\n[Messaging Mapper](MessagingMapper.html)\n\n[Transactional Client](TransactionalClient.html)\n\n[Polling Consumer](PollingConsumer.html)\n\n[Event-driven Consumer](EventDrivenConsumer.html)\n\n[Competing Consumers](CompetingConsumers.html)\n\n[Message Dispatcher](MessageDispatcher.html)\n\n[Selective Consumer](MessageSelector.html)\n\n[Durable Subscriber](DurableSubscription.html)\n\n[Idempotent Receiver](IdempotentReceiver.html)\n\n[Service Activator](MessagingAdapter.html)\n\n[Messaging Channels](MessagingChannelsIntro.html)\n\n[Message Channel](MessageChannel.html)\n\n[Point-to-Point Channel](PointToPointChannel.html)\n\n[Publish-Subscr. Channel](PublishSubscribeChannel.html)\n\n[Datatype Channel](DatatypeChannel.html)\n\n[Invalid Message Channel](InvalidMessageChannel.html)\n\n[Dead Letter Channel](DeadLetterChannel.html)\n\n[Guaranteed Delivery](GuaranteedMessaging.html)\n\n[Channel Adapter](ChannelAdapter.html)\n\n[Messaging Bridge](MessagingBridge.html)\n\n[Message Bus](MessageBus.html)\n\n[Systems Mgmt.](SystemManagementIntro.html)\n\n[Control Bus](ControlBus.html)\n\n[Detour](Detour.html)\n\n[Wire Tap](WireTap.html)\n\n[Message History](MessageHistory.html)\n\n[Message Store](MessageStore.html)\n\n[Smart Proxy](SmartProxy.html)\n\n[Test Message](TestMessage.html)\n\n[Channel Purger](ChannelPurger.html)", "znaku_textu": 48035, "slov": 6484, "odkazu": 111, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 14:56:17", "sha256": "1890dc902647c280fe37efd685f9ddc152e0adce8861f58e52dee8fe17f50d56", "hloubka": 3, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://www.amazon.com/exec/obidos/ASIN/0201775948/enterpriseint-20", "http://www.amazon.com/exec/obidos/ASIN/0201734117/enterpriseint-20", "http://www.amazon.com/exec/obidos/ASIN/0201633612/enterpriseint-20", "http://www.fiorano.com/", "https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "https://www.architectelevator.com/book", "https://www.cloudstrategybook.com/", "https://www.platformstrategybook.info/"]} {"url": "http://www.enterpriseintegrationpatterns.com/patterns/messaging/SystemManagementIntro.html", "titulek": "Introduction to System Management - Enterprise Integration Patterns", "h1": "", "popis": "While developing a messaging solution is no easy task, operating such a solution in production is equally challenging: A message-based integration solution may produce, route and transform thousands or even millions of messages in a day. We have to deal with exceptions, performance bottlenecks and changes in the participating systems. To make things ever more challenging, components are distributed across many platforms and machines that can reside at multiple locations.", "klicova_slova": "Introduction to System Management,integration, messaging, events, patterns, event-driven, coupling, eai, middleware, application integration, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns", "og:title": "Introduction to System Management - Enterprise Integration Patterns", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/SystemManagementIntro.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/eip1_patterns_wide.png"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Monitoring and Controlling"}, {"uroven": 2, "text": "Observing and Analyzing Message Traffic"}, {"uroven": 2, "text": "Testing and Debugging"}, {"uroven": 2, "text": "Integration Pattern Language"}], "markdown": "| | Introduction to System Management[Messaging Patterns](index.html) » [System Management](SystemManagementIntro.html) | [Contents](toc.html)[⇐ Prev](MessagingAdapter.html)[Next ⇒](ControlBus.html) |\n| --- | --- | --- |\n\nWhile developing a messaging solution is no easy task, operating such a solution in production is equally challenging: A message-based integration solution may produce, route and transform thousands or even millions of messages in a day. We have to deal with exceptions, performance bottlenecks and changes in the participating systems. To make things ever more challenging, components are distributed across many platforms and machines that can reside at multiple locations.\n\nBesides the inherent complexities and scale of integrating distributed packaged and custom applications, the architectural benefits of loose coupling actually make testing and debugging a system harder. Martin Fowler refers to this as the \"Architect's dream, Developer's nightmare\" symptom: architectural principles of loose coupling and indirection reduce the assumptions systems make about each other and therefore provide flexibility. However, testing a system where a message producer is not aware of who the consumers of this message are, can be challenging. Add to that the asynchronous and temporal aspects of messaging and things get even more complicated. For example, the messaging solution may not even be designed for the message producer to receive a reply message from the recipient(s). Likewise, the messaging infrastructure typically guarantees the delivery of the message but not the delivery time. This makes it hard to develop test cases that rely on the results of the message delivery.\n\nWhen monitoring a message solution, we can track message at two different levels of abstraction. A typical **System Management** solution monitors how many messages are being sent or how long it took a message to be processed. These monitoring solutions do not inspect the message data except maybe for some fields in the message header such as the message identifier or the [*Message History*](MessageHistory.html). In contrast, **Business Activity Monitoring** (BAM) solutions focus on the payload data contained in the message, for example the Dollar value of all orders placed in the last hour. Many of the patterns presented in this section are general enough that they can be used for either purpose. However, because business activity monitoring is a whole new field in itself and shares many complexities with data warehousing (something we have not touched on at all), we decided to discuss the patterns in the context of system management.\n\nSystem Management patterns are designed to address these requirements and provide the tools to keep a complex message-based system running. We divided this chapter into three sections:\n\n## Monitoring and Controlling\n\nA [*Control Bus*](ControlBus.html) provides a single point of control to manage and monitor a distributed solution. It connects multiple components to a central management console that can display the status of each component and monitor message traffic through the components. The console can also be used to send control commands to components, e.g. to change the message flow.\n\nWe may want to route messages through additional steps, such as validation or logging. Because these steps can introduce performance overheads, we may want to be able to switch them on and off via the control bus. A [*Detour*](Detour.html) gives us this ability.\n\n## Observing and Analyzing Message Traffic\n\nSometimes we need to want to inspect the contents of a message without affecting the primary message flow. A [*Wire Tap*](WireTap.html) allows us to tap into message traffic.\n\nWhen we debug a message-based system, is is a great aid to know where a specific message has been. The [*Message History*](MessageHistory.html) provides this capability without introducing dependencies between components.\n\nWhile the [*Message History*](MessageHistory.html) is tied to an individual message, a central [*Message Store*](MessageStore.html) can provide a complete account of every message that traveled through the system. Combined with the [*Message History*](MessageHistory.html) the [*Message Store*](MessageStore.html) can analyze all possible paths messages can take through the system.\n\nThe [*Wire Tap*](WireTap.html), [*Message History*](MessageHistory.html), and [*Message Store*](MessageStore.html) help us analyze the asynchronous flow of a message. In order to track messages sent to request-reply services, we need to insert a [*Smart Proxy*](SmartProxy.html) into the message stream.\n\n## Testing and Debugging\n\nTesting a messaging system before deploying it into production is a good idea. But testing should not stop there. You should be actively verifying that the running messaging system is functioning properly. You can do this by periodically injecting a [*Test Message*](TestMessage.html) into the system and verifying the results.\n\nWhen a component fails or misbehaves, it is easy to end up with unwanted messages on a channel. During testing it is very useful to remove all remaining messages from a channel so that the components under test do not receive 'leftover' messages. A [*Channel Purger*](ChannelPurger.html) does that for us.\n\n## Integration Pattern Language\n\n[Message Construct.](MessageConstructionIntro.html)\n\n[Message](Message.html)\n\n[Command Message](CommandMessage.html)\n\n[Document Message](DocumentMessage.html)\n\n[Event Message](EventMessage.html)\n\n[Request-Reply](RequestReply.html)\n\n[Return Address](ReturnAddress.html)\n\n[Correlation Identifier](CorrelationIdentifier.html)\n\n[Message Sequence](MessageSequence.html)\n\n[Message Expiration](MessageExpiration.html)\n\n[Format Indicator](FormatIndicator.html)\n\n[Message Routing](MessageRoutingIntro.html)\n\n[Pipes-and-Filters](PipesAndFilters.html)\n\n[Message Router](MessageRouter.html)\n\n[Content-based Router](ContentBasedRouter.html)\n\n[Message Filter](Filter.html)\n\n[Dynamic Router](DynamicRouter.html)\n\n[Recipient List](RecipientList.html)\n\n[Splitter](Sequencer.html)\n\n[Aggregator](Aggregator.html)\n\n[Resequencer](Resequencer.html)\n\n[Composed Msg. Processor](DistributionAggregate.html)\n\n[Scatter-Gather](BroadcastAggregate.html)\n\n[Routing Slip](RoutingTable.html)\n\n[Process Manager](ProcessManager.html)\n\n[Message Broker](MessageBroker.html)\n\n[Message\nTransformation](MessageTransformationIntro.html)\n\n[Message Translator](MessageTranslator.html)\n\n[Envelope Wrapper](EnvelopeWrapper.html)\n\n[Content Enricher](DataEnricher.html)\n\n[Content Filter](ContentFilter.html)\n\n[Claim Check](StoreInLibrary.html)\n\n[Normalizer](Normalizer.html)\n\n[Canonical Data Model](CanonicalDataModel.html)\n\n[Messaging Endpoints](MessagingEndpointsIntro.html)\n\n[Message Endpoint](MessageEndpoint.html)\n\n[Messaging Gateway](MessagingGateway.html)\n\n[Messaging Mapper](MessagingMapper.html)\n\n[Transactional Client](TransactionalClient.html)\n\n[Polling Consumer](PollingConsumer.html)\n\n[Event-driven Consumer](EventDrivenConsumer.html)\n\n[Competing Consumers](CompetingConsumers.html)\n\n[Message Dispatcher](MessageDispatcher.html)\n\n[Selective Consumer](MessageSelector.html)\n\n[Durable Subscriber](DurableSubscription.html)\n\n[Idempotent Receiver](IdempotentReceiver.html)\n\n[Service Activator](MessagingAdapter.html)\n\n[Messaging Channels](MessagingChannelsIntro.html)\n\n[Message Channel](MessageChannel.html)\n\n[Point-to-Point Channel](PointToPointChannel.html)\n\n[Publish-Subscr. Channel](PublishSubscribeChannel.html)\n\n[Datatype Channel](DatatypeChannel.html)\n\n[Invalid Message Channel](InvalidMessageChannel.html)\n\n[Dead Letter Channel](DeadLetterChannel.html)\n\n[Guaranteed Delivery](GuaranteedMessaging.html)\n\n[Channel Adapter](ChannelAdapter.html)\n\n[Messaging Bridge](MessagingBridge.html)\n\n[Message Bus](MessageBus.html)\n\n[Systems Mgmt.](SystemManagementIntro.html)\n\n[Control Bus](ControlBus.html)\n\n[Detour](Detour.html)\n\n[Wire Tap](WireTap.html)\n\n[Message History](MessageHistory.html)\n\n[Message Store](MessageStore.html)\n\n[Smart Proxy](SmartProxy.html)\n\n[Test Message](TestMessage.html)\n\n[Channel Purger](ChannelPurger.html)", "znaku_textu": 8015, "slov": 937, "odkazu": 107, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/SystemManagementIntro.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 14:56:07", "sha256": "bc252357abc1e7b4c3aafb7fa9fae9c97bc7b4821f1b766b0da30c1d8dcf5c91", "hloubka": 3, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "https://www.architectelevator.com/book", "https://www.cloudstrategybook.com/", "https://www.platformstrategybook.info/"]} {"url": "http://www.enterpriseintegrationpatterns.com/patterns/messaging/TestMessage.html", "titulek": "Test Message - Enterprise Integration Patterns", "h1": "", "popis": "What happens, though, if a component is actively processing messages, but garbles outgoing messages due to an internal fault?", "klicova_slova": "Test Message,integration, messaging, events, patterns, event-driven, coupling, eai, middleware, application integration, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns", "og:title": "Test Message - Enterprise Integration Patterns", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/TestMessage.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/TestMessage.gif"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Integration Pattern Language"}], "markdown": "| | Test Message[Messaging Patterns](index.html) » [System Management](SystemManagementIntro.html) | [Contents](toc.html)[⇐ Prev](SmartProxy.html)[Next ⇒](ChannelPurger.html) |\n| --- | --- | --- |\n\nThe [*Control Bus*](ControlBus.html) describes a number of approaches to monitor the health of the message processing system. Each component in the system can publish periodic \"heartbeat\" messages to the control bus in order to keep the monitoring mechanism informed that the component is still active. The heartbeat messages can contain vital stats of the component as well, such as the number of messages processed, the average time required to process a message or the percentage of CPU utilization on the machine.\n\nWhat happens, though, if a component is actively processing messages, but garbles outgoing messages due to an internal fault?\n\nTherefore, use *Test Message* to assure the health of message processing components (see Figure).\n\nThe *Test Message* pattern relies on the following components:\n\n- The **Test Data Generator** creates messages to be sent to the component for testing. Test data may be constant, driven by a test data file or generated randomly.\n- The **Test Message Injector** inserts test data into the regular stream of data messages sent to the component. The main role of the injector is to tag messages in order to differentiate 'real' application messages from test messages. This can be accomplished by inserting a special header field. If we have no control over the message structure, we can try to use special values to indicate test messages (e.g. OrderID = 999999). This changes the semantics of application data by using the same field to represent application data (the actual order number) and control information (this is a test message). Therefore, this approach should be used only as a last resort.\n- The **Test Message Separator** extracts the results of test messages from the output stream. This can usually be accomplished by using a [*Content-Based Router*](ContentBasedRouter.html) .\n- The **Test Data Verifier** compares actual results with expected results and flags an exception if a discrepancy is discovered. Depending on the nature of the test data, the verifier may need access to the original test data.\n\n...\nRead the entire pattern in the book [Enterprise Integration Patterns](/books1.html)\n\n**Related patterns:**\n\n[*Content-Based Router*](ContentBasedRouter.html), [*Control Bus*](ControlBus.html), [*Return Address*](ReturnAddress.html), [*Loan Broker System Management*](SystemManagementExample.html)\n\n---\n\n## Integration Pattern Language\n\n[Message Construct.](MessageConstructionIntro.html)\n\n[Message](Message.html)\n\n[Command Message](CommandMessage.html)\n\n[Document Message](DocumentMessage.html)\n\n[Event Message](EventMessage.html)\n\n[Request-Reply](RequestReply.html)\n\n[Return Address](ReturnAddress.html)\n\n[Correlation Identifier](CorrelationIdentifier.html)\n\n[Message Sequence](MessageSequence.html)\n\n[Message Expiration](MessageExpiration.html)\n\n[Format Indicator](FormatIndicator.html)\n\n[Message Routing](MessageRoutingIntro.html)\n\n[Pipes-and-Filters](PipesAndFilters.html)\n\n[Message Router](MessageRouter.html)\n\n[Content-based Router](ContentBasedRouter.html)\n\n[Message Filter](Filter.html)\n\n[Dynamic Router](DynamicRouter.html)\n\n[Recipient List](RecipientList.html)\n\n[Splitter](Sequencer.html)\n\n[Aggregator](Aggregator.html)\n\n[Resequencer](Resequencer.html)\n\n[Composed Msg. Processor](DistributionAggregate.html)\n\n[Scatter-Gather](BroadcastAggregate.html)\n\n[Routing Slip](RoutingTable.html)\n\n[Process Manager](ProcessManager.html)\n\n[Message Broker](MessageBroker.html)\n\n[Message\nTransformation](MessageTransformationIntro.html)\n\n[Message Translator](MessageTranslator.html)\n\n[Envelope Wrapper](EnvelopeWrapper.html)\n\n[Content Enricher](DataEnricher.html)\n\n[Content Filter](ContentFilter.html)\n\n[Claim Check](StoreInLibrary.html)\n\n[Normalizer](Normalizer.html)\n\n[Canonical Data Model](CanonicalDataModel.html)\n\n[Messaging Endpoints](MessagingEndpointsIntro.html)\n\n[Message Endpoint](MessageEndpoint.html)\n\n[Messaging Gateway](MessagingGateway.html)\n\n[Messaging Mapper](MessagingMapper.html)\n\n[Transactional Client](TransactionalClient.html)\n\n[Polling Consumer](PollingConsumer.html)\n\n[Event-driven Consumer](EventDrivenConsumer.html)\n\n[Competing Consumers](CompetingConsumers.html)\n\n[Message Dispatcher](MessageDispatcher.html)\n\n[Selective Consumer](MessageSelector.html)\n\n[Durable Subscriber](DurableSubscription.html)\n\n[Idempotent Receiver](IdempotentReceiver.html)\n\n[Service Activator](MessagingAdapter.html)\n\n[Messaging Channels](MessagingChannelsIntro.html)\n\n[Message Channel](MessageChannel.html)\n\n[Point-to-Point Channel](PointToPointChannel.html)\n\n[Publish-Subscr. Channel](PublishSubscribeChannel.html)\n\n[Datatype Channel](DatatypeChannel.html)\n\n[Invalid Message Channel](InvalidMessageChannel.html)\n\n[Dead Letter Channel](DeadLetterChannel.html)\n\n[Guaranteed Delivery](GuaranteedMessaging.html)\n\n[Channel Adapter](ChannelAdapter.html)\n\n[Messaging Bridge](MessagingBridge.html)\n\n[Message Bus](MessageBus.html)\n\n[Systems Mgmt.](SystemManagementIntro.html)\n\n[Control Bus](ControlBus.html)\n\n[Detour](Detour.html)\n\n[Wire Tap](WireTap.html)\n\n[Message History](MessageHistory.html)\n\n[Message Store](MessageStore.html)\n\n[Smart Proxy](SmartProxy.html)\n\n[Test Message](TestMessage.html)\n\n[Channel Purger](ChannelPurger.html)", "znaku_textu": 5265, "slov": 511, "odkazu": 108, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/TestMessage.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 14:56:15", "sha256": "62abc89458cea9392893132bafeba284c7609931f5259275a0bb2ac69a851e96", "hloubka": 3, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://creativecommons.org/licenses/by/4.0/", "https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "https://www.architectelevator.com/book", "https://www.cloudstrategybook.com/", "https://www.platformstrategybook.info/"]} {"url": "http://www.enterpriseintegrationpatterns.com/patterns/messaging/TransactionalClient.html", "titulek": "Transactional Client - Enterprise Integration Patterns", "h1": "", "popis": "How can a client control its transactions with the messaging system?", "klicova_slova": "Transactional Client,integration, messaging, events, patterns, event-driven, coupling, eai, middleware, application integration, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns", "og:title": "Transactional Client - Enterprise Integration Patterns", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/TransactionalClient.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/TransactionalClientSolution.gif"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Example: (Not quite) Transactional Client in Amazon SQSNEW"}, {"uroven": 2, "text": "Integration Pattern Language"}], "markdown": "| | Transactional Client[Messaging Patterns](index.html) » [Messaging Endpoints](MessagingEndpointsIntro.html) | [Contents](toc.html)[⇐ Prev](MessagingMapper.html)[Next ⇒](PollingConsumer.html) |\n| --- | --- | --- |\n\nA messaging system, by necessity, uses transactional behavior internally. It may be useful for an external client to be able to control the scope of the transactions that impact its behavior.\n\nHow can a client control its transactions with the messaging system?\n\nUse a *Transactional Client*—make the client’s session with the messaging system transactional so that the client can specify transaction boundaries.\n\nBoth a sender and a receiver can be transactional. With a sender, the message isn’t “really” added to the channel until the sender commits the transaction. With a receiver, the message isn’t “really” removed from the channel until the receiver commits the transaction. A sender that uses explicit transactions can be used with a receiver that uses implicit transactions, and vise versa. A single channel might have a combination of implicitly and explicitly transactional senders; it could also have a combination of receivers.\n\n...\nRead the entire pattern in the book [Enterprise Integration Patterns](/books1.html)\n\n## Example: (Not quite) Transactional Client in Amazon SQS[NEW](/ramblings/eip1_examples_updated.html)\n\n*Transactional Client* semantics can cause serious performance degradation in widely distributed systems. Many cloud-based messaging systems therefore don't implement *Transactional Client*s. However, these systems still aim to provide protection against client s crashing after they consume but before they process a message. The [Amazon Simple Queuing Service (SQS)](https://aws.amazon.com/sqs) provides this protection via so-called *Visibility Timeout*. In this configuration, message consumers don't actually remove messages from the queue - the message simply becomes invisible to other consumers. After successfully processing the message, a message consumer must explicitly delete the message from the queue. If a message is not deleted, it becomes visible again to other consumers after the set timeout interval expires.\n\nThe book *Cloud Computing Patterns* documents this behavior as a distinct pattern called [Time-out Based Delivery](http://www.cloudcomputingpatterns.org/timeout_based_delivery/).\n\n**Related patterns:**\n\n[*Channel Adapter*](ChannelAdapter.html), [*Competing Consumers*](CompetingConsumers.html), [*Document Message*](DocumentMessage.html), [*Event-Driven Consumer*](EventDrivenConsumer.html), [*Event Message*](EventMessage.html), [*Guaranteed Delivery*](GuaranteedMessaging.html), [*Message*](Message.html), [*Message Channel*](MessageChannel.html), [*Message Dispatcher*](MessageDispatcher.html), [*Message Endpoint*](MessageEndpoint.html), [*Message Router*](MessageRouter.html), [*Message Sequence*](MessageSequence.html), [*Message Translator*](MessageTranslator.html), [*Messaging Bridge*](MessagingBridge.html), [*Pipes and Filters*](PipesAndFilters.html), [*Point-to-Point Channel*](PointToPointChannel.html), [*Polling Consumer*](PollingConsumer.html), [*Publish-Subscribe Channel*](PublishSubscribeChannel.html), [*Request-Reply*](RequestReply.html), [*Resequencer*](Resequencer.html)\n\n---\n\n## Integration Pattern Language\n\n[Message Construct.](MessageConstructionIntro.html)\n\n[Message](Message.html)\n\n[Command Message](CommandMessage.html)\n\n[Document Message](DocumentMessage.html)\n\n[Event Message](EventMessage.html)\n\n[Request-Reply](RequestReply.html)\n\n[Return Address](ReturnAddress.html)\n\n[Correlation Identifier](CorrelationIdentifier.html)\n\n[Message Sequence](MessageSequence.html)\n\n[Message Expiration](MessageExpiration.html)\n\n[Format Indicator](FormatIndicator.html)\n\n[Message Routing](MessageRoutingIntro.html)\n\n[Pipes-and-Filters](PipesAndFilters.html)\n\n[Message Router](MessageRouter.html)\n\n[Content-based Router](ContentBasedRouter.html)\n\n[Message Filter](Filter.html)\n\n[Dynamic Router](DynamicRouter.html)\n\n[Recipient List](RecipientList.html)\n\n[Splitter](Sequencer.html)\n\n[Aggregator](Aggregator.html)\n\n[Resequencer](Resequencer.html)\n\n[Composed Msg. Processor](DistributionAggregate.html)\n\n[Scatter-Gather](BroadcastAggregate.html)\n\n[Routing Slip](RoutingTable.html)\n\n[Process Manager](ProcessManager.html)\n\n[Message Broker](MessageBroker.html)\n\n[Message\nTransformation](MessageTransformationIntro.html)\n\n[Message Translator](MessageTranslator.html)\n\n[Envelope Wrapper](EnvelopeWrapper.html)\n\n[Content Enricher](DataEnricher.html)\n\n[Content Filter](ContentFilter.html)\n\n[Claim Check](StoreInLibrary.html)\n\n[Normalizer](Normalizer.html)\n\n[Canonical Data Model](CanonicalDataModel.html)\n\n[Messaging Endpoints](MessagingEndpointsIntro.html)\n\n[Message Endpoint](MessageEndpoint.html)\n\n[Messaging Gateway](MessagingGateway.html)\n\n[Messaging Mapper](MessagingMapper.html)\n\n[Transactional Client](TransactionalClient.html)\n\n[Polling Consumer](PollingConsumer.html)\n\n[Event-driven Consumer](EventDrivenConsumer.html)\n\n[Competing Consumers](CompetingConsumers.html)\n\n[Message Dispatcher](MessageDispatcher.html)\n\n[Selective Consumer](MessageSelector.html)\n\n[Durable Subscriber](DurableSubscription.html)\n\n[Idempotent Receiver](IdempotentReceiver.html)\n\n[Service Activator](MessagingAdapter.html)\n\n[Messaging Channels](MessagingChannelsIntro.html)\n\n[Message Channel](MessageChannel.html)\n\n[Point-to-Point Channel](PointToPointChannel.html)\n\n[Publish-Subscr. Channel](PublishSubscribeChannel.html)\n\n[Datatype Channel](DatatypeChannel.html)\n\n[Invalid Message Channel](InvalidMessageChannel.html)\n\n[Dead Letter Channel](DeadLetterChannel.html)\n\n[Guaranteed Delivery](GuaranteedMessaging.html)\n\n[Channel Adapter](ChannelAdapter.html)\n\n[Messaging Bridge](MessagingBridge.html)\n\n[Message Bus](MessageBus.html)\n\n[Systems Mgmt.](SystemManagementIntro.html)\n\n[Control Bus](ControlBus.html)\n\n[Detour](Detour.html)\n\n[Wire Tap](WireTap.html)\n\n[Message History](MessageHistory.html)\n\n[Message Store](MessageStore.html)\n\n[Smart Proxy](SmartProxy.html)\n\n[Test Message](TestMessage.html)\n\n[Channel Purger](ChannelPurger.html)", "znaku_textu": 5989, "slov": 531, "odkazu": 111, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/TransactionalClient.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 14:55:58", "sha256": "4c68a9d914e3aef5c2d003ee0b823a0954189713cf3e1b949d533234a65a93c9", "hloubka": 3, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://aws.amazon.com/sqs", "http://www.cloudcomputingpatterns.org/timeout_based_delivery/", "http://creativecommons.org/licenses/by/4.0/", "https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "https://www.architectelevator.com/book", "https://www.cloudstrategybook.com/", "https://www.platformstrategybook.info/"]} {"url": "http://www.enterpriseintegrationpatterns.com/patterns/messaging/WireTap.html", "titulek": "Wire Tap - Enterprise Integration Patterns", "h1": "", "popis": "How do you inspect messages that travel on a point-to-point channel?", "klicova_slova": "Wire Tap,integration, messaging, events, patterns, event-driven, coupling, eai, middleware, application integration, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns", "og:title": "Wire Tap - Enterprise Integration Patterns", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/WireTap.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/WireTap.gif"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Integration Pattern Language"}], "markdown": "Messaging Patterns\n\n[Messaging Patterns](index.html)\n\n- [Integration Styles](IntegrationStylesIntro.html)\n- [Messaging Systems](MessagingComponentsIntro.html)\n- [Messaging Channels](MessagingChannelsIntro.html)\n- [Message Construction](MessageConstructionIntro.html)\n- [Interlude: Simple Messaging](SimpleMessagingIntro.html)\n- [Message Routing](MessageRoutingIntro.html)\n- [Message Transformation](MessageTransformationIntro.html)\n- [Interlude: Composed Messaging](ComposedMessagingExample.html)\n- [Messaging Endpoints](MessagingEndpointsIntro.html)\n- [System Management](SystemManagementIntro.html)\n- Interlude: Systems Management Example\n- Integration Patterns in Practice\n- Concluding Remarks\n- Appendices\n\n| | Wire Tap[Messaging Patterns](index.html) » [System Management](SystemManagementIntro.html) | [Contents](toc.html)[⇐ Prev](Detour.html)[Next ⇒](MessageHistory.html) |\n| --- | --- | --- |\n\n[*Point-to-Point Channel*](PointToPointChannel.html)s are often used for [*Document Message*](DocumentMessage.html)s because they ensure that exactly one consumer will consume each message. However, for testing, monitoring or troubleshooting, it may be useful to be able to inspect all messages that travel across the channel.\n\nHow do you inspect messages that travel on a point-to-point channel?\n\nInsert a simple Recipient List into the channel that publishes each incoming message to the main channel and a secondary channel.\n\nThe *Wire Tap* is a fixed [*Recipient List*](RecipientList.html) with two output channels. It consumes messages off the input channel and publishes the unmodified message to both output channels. To insert the *Wire Tap* into a channel, you need to create an additional channel and change the destination receiver to consume of the second channel. Because the analysis logic is located inside a second component, we can insert a generic *Wire Tap* into any channel without any danger of modifying the primary channel behavior. This improves reuse and reduces the risk of instrumenting an existing solution.\n\n...\nRead the entire pattern in the book [Enterprise Integration Patterns](/books1.html)\n\n**Related patterns:**\n\n[*Competing Consumers*](CompetingConsumers.html), [*Control Bus*](ControlBus.html), [*Detour*](Detour.html), [*Document Message*](DocumentMessage.html), [*Message Broker*](MessageBroker.html), [*Message Store*](MessageStore.html), [*Point-to-Point Channel*](PointToPointChannel.html), [*Publish-Subscribe Channel*](PublishSubscribeChannel.html), [*Recipient List*](RecipientList.html), [*Loan Broker System Management*](SystemManagementExample.html)\n\n---\n\n## Integration Pattern Language\n\n[Message Construct.](MessageConstructionIntro.html)\n\n[Message](Message.html)\n\n[Command Message](CommandMessage.html)\n\n[Document Message](DocumentMessage.html)\n\n[Event Message](EventMessage.html)\n\n[Request-Reply](RequestReply.html)\n\n[Return Address](ReturnAddress.html)\n\n[Correlation Identifier](CorrelationIdentifier.html)\n\n[Message Sequence](MessageSequence.html)\n\n[Message Expiration](MessageExpiration.html)\n\n[Format Indicator](FormatIndicator.html)\n\n[Message Routing](MessageRoutingIntro.html)\n\n[Pipes-and-Filters](PipesAndFilters.html)\n\n[Message Router](MessageRouter.html)\n\n[Content-based Router](ContentBasedRouter.html)\n\n[Message Filter](Filter.html)\n\n[Dynamic Router](DynamicRouter.html)\n\n[Recipient List](RecipientList.html)\n\n[Splitter](Sequencer.html)\n\n[Aggregator](Aggregator.html)\n\n[Resequencer](Resequencer.html)\n\n[Composed Msg. Processor](DistributionAggregate.html)\n\n[Scatter-Gather](BroadcastAggregate.html)\n\n[Routing Slip](RoutingTable.html)\n\n[Process Manager](ProcessManager.html)\n\n[Message Broker](MessageBroker.html)\n\n[Message\nTransformation](MessageTransformationIntro.html)\n\n[Message Translator](MessageTranslator.html)\n\n[Envelope Wrapper](EnvelopeWrapper.html)\n\n[Content Enricher](DataEnricher.html)\n\n[Content Filter](ContentFilter.html)\n\n[Claim Check](StoreInLibrary.html)\n\n[Normalizer](Normalizer.html)\n\n[Canonical Data Model](CanonicalDataModel.html)\n\n[Messaging Endpoints](MessagingEndpointsIntro.html)\n\n[Message Endpoint](MessageEndpoint.html)\n\n[Messaging Gateway](MessagingGateway.html)\n\n[Messaging Mapper](MessagingMapper.html)\n\n[Transactional Client](TransactionalClient.html)\n\n[Polling Consumer](PollingConsumer.html)\n\n[Event-driven Consumer](EventDrivenConsumer.html)\n\n[Competing Consumers](CompetingConsumers.html)\n\n[Message Dispatcher](MessageDispatcher.html)\n\n[Selective Consumer](MessageSelector.html)\n\n[Durable Subscriber](DurableSubscription.html)\n\n[Idempotent Receiver](IdempotentReceiver.html)\n\n[Service Activator](MessagingAdapter.html)\n\n[Messaging Channels](MessagingChannelsIntro.html)\n\n[Message Channel](MessageChannel.html)\n\n[Point-to-Point Channel](PointToPointChannel.html)\n\n[Publish-Subscr. Channel](PublishSubscribeChannel.html)\n\n[Datatype Channel](DatatypeChannel.html)\n\n[Invalid Message Channel](InvalidMessageChannel.html)\n\n[Dead Letter Channel](DeadLetterChannel.html)\n\n[Guaranteed Delivery](GuaranteedMessaging.html)\n\n[Channel Adapter](ChannelAdapter.html)\n\n[Messaging Bridge](MessagingBridge.html)\n\n[Message Bus](MessageBus.html)\n\n[Systems Mgmt.](SystemManagementIntro.html)\n\n[Control Bus](ControlBus.html)\n\n[Detour](Detour.html)\n\n[Wire Tap](WireTap.html)\n\n[Message History](MessageHistory.html)\n\n[Message Store](MessageStore.html)\n\n[Smart Proxy](SmartProxy.html)\n\n[Test Message](TestMessage.html)\n\n[Channel Purger](ChannelPurger.html)\n\n- » [Read the latest in My Blog](/ramblings)\n- » [Get more insights from My Articles](/articles.html)\n- » [See me live in my Upcoming Talks](/talks)\n\nYou can reuse the following elements under the [Creative Commons Attribution](http://creativecommons.org/licenses/by/4.0/) license: pattern icon, pattern name, problem and solution statements (in bold), and the sketch. Other portions are protected by copyright.\n\n[Enterprise Integration Patterns](https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20)\nThe de-facto language for designing asynchronous, distributed systems. Over 100,000 copies sold.\n\n[The Software Architect Elevator](https://www.architectelevator.com/book)\n\n Rethink the role of architects as a connecting element across organizational layers. Acquire the technical, communication, and organizational skills to succeed in this new role.\n\n[Cloud Strategy](https://www.cloudstrategybook.com)\n\n Make your cloud migration a success by translating high-level goals into conscious decisions with well-understood trade-offs.\n\n[Platform Strategy](https://www.platformstrategybook.info)\n\n Platforms can boost innovation through harmonization, but they aren't easy to build. Learn from over a decade of designing and rolling out IT platforms.", "znaku_textu": 6552, "slov": 568, "odkazu": 108, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/WireTap.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 14:56:10", "sha256": "b275e1b1f27150cd5c5078d83113648b86702c8f2140380c8142cf9c5b6502cb", "hloubka": 3, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://creativecommons.org/licenses/by/4.0/", "https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "https://www.architectelevator.com/book", "https://www.cloudstrategybook.com/", "https://www.platformstrategybook.info/"]} {"url": "http://www.enterpriseintegrationpatterns.com/patterns/messaging/bib.html", "titulek": "Bibliography - Enterprise Integration Patterns", "h1": "", "popis": "Bibliography - Enterprise Integration Patterns", "klicova_slova": "Bibliography,integration, messaging, events, patterns, event-driven, coupling, eai, middleware, application integration, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns", "og:title": "Bibliography - Enterprise Integration Patterns", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/bib.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/eip1_patterns_wide.png"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Integration Pattern Language"}], "markdown": "| | Bibliography[Messaging Patterns](index.html) » Appendices | [Contents](toc.html)[⇐ Prev](Future.html)[Next ⇒](history.html) |\n| --- | --- | --- |\n\n**Alexander**\nC. Alexander, S. Ishikawa, M Silverstein,\n *A Pattern Language - Towns Buildings Construction,*Oxford University Press, 1977, \n ISBN: [0195019199](http://www.amazon.com/exec/obidos/ASIN/0195019199/enterpriseint-20)\nProbably the most quoted book in any work related to patterns. I actually used a number of Alexander's patterns to design a beach house for an interior architecture class. It is interesting to note that Alexander's desire to dissect architecture and design into a set of composable constructs may stem from his study of mathematics. His thesis published as \"Notes on the synthesis of form\" references a set of programs that he developed in IBM 7090 assembly code. So the tremendous success of Alexander's patterns in the software community is not quite coincidental.\n\n**Alpert**\nS. Alpert, K. Brown, B. Woolf,\n *The Design Patterns Smalltalk Companion,*Addison-Wesley, 1998, \n ISBN: [0201184621](http://www.amazon.com/exec/obidos/ASIN/0201184621/enterpriseint-20)\n\n**Box**\nDon Box,\n *Essential .NET, Volume 1: the Common Language Runtime,*Addison-Wesley, 2002, \n ISBN: [0201734117](http://www.amazon.com/exec/obidos/ASIN/0201734117/enterpriseint-20)\nMore than you ever wanted to know about the inner workings of the CLR...\n\n**BPEL4WS**\n*Business Process Execution Language for Web Services, Version 1.0,*[http://www.ibm.com/developerworks/webservices/library/ws-bpel](http://www.ibm.com/developerworks/webservices/library/ws-bpel)\n\n**CSP**\nC. A. R. Hoare,\n *Communicating Sequential Processes,*Communications of the ACM , 1978, [http://doi.acm.org/10.1145/359576.359585](http://doi.acm.org/10.1145/359576.359585)\nACM on-line library access is required to see the full-text version of this article.\n\n**CoreJ2EE**\nAlur, Crupi, Malks,\n *Core J2EE Patterns: Best Practices and Design Strategies (2nd Edition),*Prentice Hall PTR, 2003, \n ISBN: [0131422464](http://www.amazon.com/exec/obidos/ASIN/0131422464/enterpriseint-20)\n\n**Dickman**\nAlan Dickman,\n *Designing Applications with MSMQ,*Addison-Wesley, 1998, \n ISBN: [0201325810](http://www.amazon.com/exec/obidos/ASIN/0201325810/enterpriseint-20)\n\n**Douglass**\nBruce Powel Douglass,\n *Real-Time Design Patterns,*Addison-Wesley, 2003, \n ISBN: [0201699567](http://www.amazon.com/exec/obidos/ASIN/0201699567/enterpriseint-20)\nThis book proves the transportability of patterns across domains. Some of Douglass' reliability patterns prove very useful in the context of enterprise messaging.\n\n**EAA**\nMartin Fowler,\n *Patterns of Enterprise Application Architecture,*Addison-Wesley, 2003, \n ISBN: [0321127420](http://www.amazon.com/exec/obidos/ASIN/0321127420/enterpriseint-20)\nThe most comprehensive book yet on application architecture patterns. Even though it covers 51 patterns, it is an easy and interesting read while never sacrificing technical accuracy. OK, just buy the dang book :-)\n\n**EJB20**\n*Enterprise JavaBeans Specification, Version 2.0,*[http://java.sun.com/products/ejb/docs.html](http://java.sun.com/products/ejb/docs.html)\n\n**Garlan**\nMary Shaw, Garlan David,\n *Software Architecture: Perspectives on an Emerging Discipline,*Prentice Hall, 1996, \n ISBN: [0131829572](http://www.amazon.com/exec/obidos/ASIN/0131829572/enterpriseint-20)\n\n**GoF**\nErich Gamma, Richard Helm, Ralph Johnson, John Vlissides,\n *Design Patterns: Elements of Reusable Object-Oriented Software,*Addison-Wesley, 1995, \n ISBN: [0201633612](http://www.amazon.com/exec/obidos/ASIN/0201633612/enterpriseint-20)\nSurely the second most quoted book in any work on patterns.\n\n**Graham02**\nSteve Graham, Simon Simeonov, Toufic Boubez, Glen Daniels, Doug Davis, Yuichi Nakamura, Ryo Nyeama,\n *Building Web Services with Java: Making Sense of XML, SOAP and UDDI,*SAMS Publishing, 2002, \n ISBN: [0672321815](http://www.amazon.com/exec/obidos/ASIN/0672321815/enterpriseint-20)\n\n**Hohmann**\nLuke Hohmann,\n *Beyond Software Architecture: Creating and Sustaining Winning Solutions,*Addison-Wesley, 2003, \n ISBN: [0201775948](http://www.amazon.com/exec/obidos/ASIN/0201775948/enterpriseint-20)\n\n**Hapner**\nMark Hapner, Rich Burridge, Rahul Sharma, Joseph Fialli, Kim Haase,\n *Java Messaging Service API Tutorial and Reference,*Addison-Wesley, 2002, \n ISBN: [0201784726](http://www.amazon.com/exec/obidos/ASIN/0201784726/enterpriseint-20)\n\n**JMS**\n*Java Message Service (JMS),*Sun Microsystems, [http://java.sun.com/products/jms/](http://java.sun.com/products/jms/)\n\n**JMS11**\n*Java Message Service (the Sun Java Message Service (JMS) 1.1 Specification),*Sun Microsystems, [http://java.sun.com/products/jms/docs.html](http://java.sun.com/products/jms/docs.html)\n\n**JTA**\n*Transactions and Java Technology,*[http://java.sun.com/j2ee/transactions.html](http://java.sun.com/j2ee/transactions.html)\n\n**Kahn**\nG. Kahn,\n *The Semantics of a Simple Language for Parallel Programming, Information Processing 74: Proc. IFIP Congress 74,*North-Holland Publishing Co., 1974,\n\n**Kaye**\nDoug Kaye,\n *Loosely Coupled: The Missing Pieces of Web Services,*RDS Press, 2003, \n ISBN: [1881378241](http://www.amazon.com/exec/obidos/ASIN/1881378241/enterpriseint-20)\nA refreshing look at Web services. Instead of wading through APIs we get to read about the core principles at work in Service-Oriented Architectures in a technology-neutral jargon-free way. This book is likely too high-level for developers itching to make that SOAP call but it is ideal for technical managers and architects who have to explain these concepts to non-techies.\n\n**Kent**\nWilliam Kent,\n *Data and Reality,*1stBooks, 2000, \n ISBN: [1585009709](http://www.amazon.com/exec/obidos/ASIN/1585009709/enterpriseint-20)\nA classic book (the original edition is from 1978) that tells us why modeling reality inside a computer system is so hard. You can hardcover at Amazon for $45, but 1stBooks offers an electronic version for $8.95 or a $30 paperback version at http://www.1stbooks.com.\n\n**Lewis**\nRhys Lewis,\n *Advanced Messaging Applications with MSMQ and MQSeries,*Que, 2000, \n ISBN: [078972023X](http://www.amazon.com/exec/obidos/ASIN/078972023X/enterpriseint-20)\n\n**Leyman**\nFrank Leyman, et al.,\n *Production Workflow: Concepts and Techniques,*Prentice-Hall PTR, 1999, \n ISBN: [0130217530](http://www.amazon.com/exec/obidos/ASIN/0130217530/enterpriseint-20)\n\n**MDMSG**\n*Multiple-Destination Messaging,*[http://msdn.microsoft.com/library/](http://msdn.microsoft.com/library/)\n\n**Monson-Haefel**\nRichard Monson-Haefel and David A. Chappell,\n *Java Message Service,*O’Reilly, 2001, \n ISBN: [0596000685](http://www.amazon.com/exec/obidos/ASIN/0596000685/enterpriseint-20)\n\n**MicroWorkflow**\nDragos Manolescu,\n *Micro-Workflow: A Workflow Architecture Supporting Compositional Object-Oriented Software Development,*[http://micro-workflow.com/PhDThesis/phdthesis.pdf](http://micro-workflow.com/PhDThesis/phdthesis.pdf)\n\n**Monroe**\nRobert T. Monroe, Drew Kompanek, Ralph Melton, David Garlan,\n *Stylized Architecture, Design Patterns, and Objects,*1996, [http://www-2.cs.cmu.edu/afs/cs/project/compose/ftp/pdf/ObjPatternsArch-ieee97.pdf](http://www-2.cs.cmu.edu/afs/cs/project/compose/ftp/pdf/ObjPatternsArch-ieee97.pdf)\n\n**MQSeries**\n*MQSeries from IBM,*[http://www.ibm.com/software/mqseries](http://www.ibm.com/software/mqseries)\n\n**MSMQ01**\n*Microsoft Message Queuing (MSMQ),*[http://www.microsoft.com/msmq](http://www.microsoft.com/msmq)\n\n**POSA**\nBuschmann et al,\n *Pattern-Oriented Software Architecture,*Wiley, 1996, \n ISBN: [0471958697](http://www.amazon.com/exec/obidos/ASIN/0471958697/enterpriseint-20)\nA great book on architecture and design patterns.\n\n**POSA2**\nSchmidt et al,\n *Pattern-Oriented Software Architecture Vol.2,*Wiley, 2000, \n ISBN: [0471606952](http://www.amazon.com/exec/obidos/ASIN/0471606952/enterpriseint-20)\nMore patterns focused on distributed systems and concurrency issues.\n\n**PatternForms**\n*Pattern Forms, Wiki-Wiki-Web,*[http://c2.com/cgi-bin/wiki?PatternForms](http://c2.com/cgi-bin/wiki?PatternForms)\nA list of commonly used pattern forms and their differences.\n\n**PLOPD1**\nJames Coplien, Douglas Schmidt (Editor),\n *Pattern Languages of Program Design,*Addision-Wesley, 1995, \n ISBN: [0201607344](http://www.amazon.com/exec/obidos/ASIN/0201607344/enterpriseint-20)\nThe proceedings from the first PLoP conference. These proceedings contain a lot of papers that formed the basis for later books, such as POSA. This volume contain's Frank Buschmann's and Regine Meunier's \"A System of Patterns\", Regine Meunier's \"The Pipes and Filters Architecture\", and Diane Mularz' \"Pattern-Based Integration Architectures\".\n\n**Sharp**\nAlec Sharp, Patrick McDermott ,\n *Workflow Modeling: Tools for Process Improvement and Application Development,*Artech House, 2001, \n ISBN: [1580530214](http://www.amazon.com/exec/obidos/ASIN/1580530214/enterpriseint-20)\nThis book focuses on the modeling aspect of workflow -- an interesting read for analysts and business architects alike.\n\n**SOAP 1.1**\n*W3C Simple Object Access Protocol (SOAP) 1.1 Specification,*[http://www.w3.org/TR/SOAP/](http://www.w3.org/TR/SOAP/)\n\n**SOAP 1.2 Part 2**\n*SOAP Version 1.2 Part 2: Adjuncts,*[http://www.w3.org/TR/soap12-part2/](http://www.w3.org/TR/soap12-part2/)\n\n**Stevens**\nW. Richard Stevens,\n *TCP/IP Illustrated, Volume 1: The Protocols,*Addison-Wesley, 1994, \n ISBN: [0201633469](http://www.amazon.com/exec/obidos/ASIN/0201633469/enterpriseint-20)\n\n**SysMsg**\n*System.Messaging Namespace in the .NET Framework SDK,*Microsoft, [http://msdn.microsoft.com/library/](http://msdn.microsoft.com/library/)\n\n**Tennison**\nJeni Tennison,\n *XSLT and XPath On The Edge,*John Wiley & Sons, 2001, \n ISBN: [0764547763](http://www.amazon.com/exec/obidos/ASIN/0764547763/enterpriseint-20)\n\n**UML**\n*UML Distilled: A Brief Guide to the Standard Object Modeling Language, Third Edition,*Addison-Wesley, 2003, \n ISBN: [0321193687](http://www.amazon.com/exec/obidos/ASIN/0321193687/enterpriseint-20)\n\n**UMLEAI**\n*UML Profile for Enterprise Application Integration,*Object Management Group , 2002, [http://cgi.omg.org/cgi-bin/doc?ptc/02-02-02](http://cgi.omg.org/cgi-bin/doc?ptc/02-02-02)\n\n**Wright**\nGary R. Wright, W. Richard Stevens,\n *TCP/IP Illustrated, Volume 2: The Implementation,*Addison-Wesley, 1995, \n ISBN: [020163354X](http://www.amazon.com/exec/obidos/ASIN/020163354X/enterpriseint-20)\n\n**WSAUS**\n*Web Services Architecture Usage Scenarios,*W3C, [http://www.w3.org/TR/ws-arch-scenarios/](http://www.w3.org/TR/ws-arch-scenarios/)\n\n**WSDL 1.1**\n*Web Services Description Language (WSDL) 1.1,*[http://www.w3.org/TR/wsdl](http://www.w3.org/TR/wsdl)\n\n**WSFL**\n*Web Services Flow Language,*IBM, [http://www-3.ibm.com/software/solutions/webservices/pdf/WSFL.pdf](http://www-3.ibm.com/software/solutions/webservices/pdf/WSFL.pdf)\n\n**WSMQ**\n*WebSphere MQ Using Java,*IBM, [http://publibfp.boulder.ibm.com/epubs/pdf/csqzaw11.pdf](http://publibfp.boulder.ibm.com/epubs/pdf/csqzaw11.pdf)\n\n**XML 1.0**\n*Extensible Markup Language (XML) 1.0 (Second Edition),*[http://www.w3.org/TR/REC-xml](http://www.w3.org/TR/REC-xml)\n\n**XSLT 1.0**\n*XSL Transformations (XSLT) Version 1.0 -- W3C Recommendation,*[http://www.w3.org/TR/xslt](http://www.w3.org/TR/xslt)\n\n**Waldo**\nWaldo, J., Wyant, G., Wollrath, A., and Kendall, S.,\n *A Note on Distributed Computing, Technical Report SMLI TR-94-29,*Sun Microsystems Laboratories, November 1994, [http://citeseer.nj.nec.com/waldo94note.html](http://citeseer.nj.nec.com/waldo94note.html)\n\n**Zahavi**\nRon Zahavi,\n *Enterprise Application Integration with CORBA ,*John Wiley & Sons, 1999, \n ISBN: [0471327204](http://www.amazon.com/exec/obidos/ASIN/0471327204/enterpriseint-20)\n\n## Integration Pattern Language\n\n[Message Construct.](MessageConstructionIntro.html)\n\n[Message](Message.html)\n\n[Command Message](CommandMessage.html)\n\n[Document Message](DocumentMessage.html)\n\n[Event Message](EventMessage.html)\n\n[Request-Reply](RequestReply.html)\n\n[Return Address](ReturnAddress.html)\n\n[Correlation Identifier](CorrelationIdentifier.html)\n\n[Message Sequence](MessageSequence.html)\n\n[Message Expiration](MessageExpiration.html)\n\n[Format Indicator](FormatIndicator.html)\n\n[Message Routing](MessageRoutingIntro.html)\n\n[Pipes-and-Filters](PipesAndFilters.html)\n\n[Message Router](MessageRouter.html)\n\n[Content-based Router](ContentBasedRouter.html)\n\n[Message Filter](Filter.html)\n\n[Dynamic Router](DynamicRouter.html)\n\n[Recipient List](RecipientList.html)\n\n[Splitter](Sequencer.html)\n\n[Aggregator](Aggregator.html)\n\n[Resequencer](Resequencer.html)\n\n[Composed Msg. Processor](DistributionAggregate.html)\n\n[Scatter-Gather](BroadcastAggregate.html)\n\n[Routing Slip](RoutingTable.html)\n\n[Process Manager](ProcessManager.html)\n\n[Message Broker](MessageBroker.html)\n\n[Message\nTransformation](MessageTransformationIntro.html)\n\n[Message Translator](MessageTranslator.html)\n\n[Envelope Wrapper](EnvelopeWrapper.html)\n\n[Content Enricher](DataEnricher.html)\n\n[Content Filter](ContentFilter.html)\n\n[Claim Check](StoreInLibrary.html)\n\n[Normalizer](Normalizer.html)\n\n[Canonical Data Model](CanonicalDataModel.html)\n\n[Messaging Endpoints](MessagingEndpointsIntro.html)\n\n[Message Endpoint](MessageEndpoint.html)\n\n[Messaging Gateway](MessagingGateway.html)\n\n[Messaging Mapper](MessagingMapper.html)\n\n[Transactional Client](TransactionalClient.html)\n\n[Polling Consumer](PollingConsumer.html)\n\n[Event-driven Consumer](EventDrivenConsumer.html)\n\n[Competing Consumers](CompetingConsumers.html)\n\n[Message Dispatcher](MessageDispatcher.html)\n\n[Selective Consumer](MessageSelector.html)\n\n[Durable Subscriber](DurableSubscription.html)\n\n[Idempotent Receiver](IdempotentReceiver.html)\n\n[Service Activator](MessagingAdapter.html)\n\n[Messaging Channels](MessagingChannelsIntro.html)\n\n[Message Channel](MessageChannel.html)\n\n[Point-to-Point Channel](PointToPointChannel.html)\n\n[Publish-Subscr. Channel](PublishSubscribeChannel.html)\n\n[Datatype Channel](DatatypeChannel.html)\n\n[Invalid Message Channel](InvalidMessageChannel.html)\n\n[Dead Letter Channel](DeadLetterChannel.html)\n\n[Guaranteed Delivery](GuaranteedMessaging.html)\n\n[Channel Adapter](ChannelAdapter.html)\n\n[Messaging Bridge](MessagingBridge.html)\n\n[Message Bus](MessageBus.html)\n\n[Systems Mgmt.](SystemManagementIntro.html)\n\n[Control Bus](ControlBus.html)\n\n[Detour](Detour.html)\n\n[Wire Tap](WireTap.html)\n\n[Message History](MessageHistory.html)\n\n[Message Store](MessageStore.html)\n\n[Smart Proxy](SmartProxy.html)\n\n[Test Message](TestMessage.html)\n\n[Channel Purger](ChannelPurger.html)", "znaku_textu": 14280, "slov": 1298, "odkazu": 156, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 14:56:20", "sha256": "297e25e189654747651c2461356ed47a597c271dac0219e2ebffbd970d22a886", "hloubka": 3, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://www.amazon.com/exec/obidos/ASIN/0195019199/enterpriseint-20", "http://www.amazon.com/exec/obidos/ASIN/0201184621/enterpriseint-20", "http://www.amazon.com/exec/obidos/ASIN/0201734117/enterpriseint-20", "http://www.ibm.com/developerworks/webservices/library/ws-bpel", "http://doi.acm.org/10.1145/359576.359585", "http://www.amazon.com/exec/obidos/ASIN/0131422464/enterpriseint-20", "http://www.amazon.com/exec/obidos/ASIN/0201325810/enterpriseint-20", "http://www.amazon.com/exec/obidos/ASIN/0201699567/enterpriseint-20", "http://www.amazon.com/exec/obidos/ASIN/0321127420/enterpriseint-20", "http://java.sun.com/products/ejb/docs.html", "http://www.amazon.com/exec/obidos/ASIN/0131829572/enterpriseint-20", "http://www.amazon.com/exec/obidos/ASIN/0201633612/enterpriseint-20", "http://www.amazon.com/exec/obidos/ASIN/0672321815/enterpriseint-20", "http://www.amazon.com/exec/obidos/ASIN/0201775948/enterpriseint-20", "http://www.amazon.com/exec/obidos/ASIN/0201784726/enterpriseint-20", "http://java.sun.com/products/jms/", "http://java.sun.com/products/jms/docs.html", "http://java.sun.com/j2ee/transactions.html", "http://www.amazon.com/exec/obidos/ASIN/1881378241/enterpriseint-20", "http://www.amazon.com/exec/obidos/ASIN/1585009709/enterpriseint-20", "http://www.amazon.com/exec/obidos/ASIN/078972023X/enterpriseint-20", "http://www.amazon.com/exec/obidos/ASIN/0130217530/enterpriseint-20", "http://msdn.microsoft.com/library/", "http://www.amazon.com/exec/obidos/ASIN/0596000685/enterpriseint-20", "http://micro-workflow.com/PhDThesis/phdthesis.pdf", "http://www-2.cs.cmu.edu/afs/cs/project/compose/ftp/pdf/ObjPatternsArch-ieee97.pdf", "http://www.ibm.com/software/mqseries", "http://www.microsoft.com/msmq", "http://www.amazon.com/exec/obidos/ASIN/0471958697/enterpriseint-20", "http://www.amazon.com/exec/obidos/ASIN/0471606952/enterpriseint-20", "http://c2.com/cgi-bin/wiki?PatternForms=", "http://www.amazon.com/exec/obidos/ASIN/0201607344/enterpriseint-20", "http://www.amazon.com/exec/obidos/ASIN/1580530214/enterpriseint-20", "http://www.w3.org/TR/SOAP/", "http://www.w3.org/TR/soap12-part2/", "http://www.amazon.com/exec/obidos/ASIN/0201633469/enterpriseint-20", "http://www.amazon.com/exec/obidos/ASIN/0764547763/enterpriseint-20", "http://www.amazon.com/exec/obidos/ASIN/0321193687/enterpriseint-20", "http://cgi.omg.org/cgi-bin/doc?ptc%2F02-02-02=", "http://www.amazon.com/exec/obidos/ASIN/020163354X/enterpriseint-20", "http://www.w3.org/TR/ws-arch-scenarios/", "http://www.w3.org/TR/wsdl", "http://www-3.ibm.com/software/solutions/webservices/pdf/WSFL.pdf", "http://publibfp.boulder.ibm.com/epubs/pdf/csqzaw11.pdf", "http://www.w3.org/TR/REC-xml", "http://www.w3.org/TR/xslt", "http://citeseer.nj.nec.com/waldo94note.html", "http://www.amazon.com/exec/obidos/ASIN/0471327204/enterpriseint-20", "https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "https://www.architectelevator.com/book", "https://www.cloudstrategybook.com/", "https://www.platformstrategybook.info/", "https://www.amazon.com/exec/obidos/redirect-home/enterpriseint-20"]} {"url": "http://www.enterpriseintegrationpatterns.com/patterns/messaging/history.html", "titulek": "Revision History - Enterprise Integration Patterns", "h1": "", "popis": "The book is out in the stores now, so I have to take the full pattern content off the site. I will keep the catalog of all patterns, but each pattern will be shortened, essentially to context, problem, solution and the picture. This way we can continue to use the site as a reference for the pattern language without getting into trouble with the publisher.Lots of edits and additions. I added a new introductory chapter with a longer design example (Solving Integration Problems using Patterns). We also have a TIBCO implementation for the Loan Broker example (Asynchronous Implementation with TIBCO ActiveEnterprise) and show how to instrument the MSMQ version of the example (Loan Broker System Management). Plus tons of edits, more examples, more pictures.Lots of activity. Bobby added Request-Reply to the Message Construction section and I added Wire Tap, Detour and Smart Proxy to the System Management section. Also major updates to the Channel Adapter.Major edits over the routing patterns: Message Router. Renamed Routing Table to Routing Slip -- the old named clashed with common usage in the networking world. Also, I added the Dynamic Router.I rewrote the Message History so that the primary motivation is debugging and analyzing the system. Avoiding circular references is a side benefit of the solution.I added the Channel Purger pattern.I added Martin's 'Integration Style' patterns. Still missing pictures, but coming soon... This brings the total to 61 patterns.I keep on finding new patterns. I just added the Messaging Mapper. Accordingly, I renamed the BidHelper class in the Aggregator code sample into BidMapper.I created a new section at the bottom of each pattern page listing all related patterns . The section contains links to all patterns that are mentioned anywhere in the pattern description. If a pattern name displays here without a link it indicates that the pattern has not been developed yet. I wanted to save everybody the 'under construction' pages...I Modified my stylesheet to make the text more readable on Netscape's browser. Sorry for the inconvenience.I added the Message Translator and moved most of the material from the intro into structural transformations into this pattern.The site goes life. I convert my original Word document into XML files and create XSL transformations to render the HTML page.", "klicova_slova": "Revision History,integration, messaging, events, patterns, event-driven, coupling, eai, middleware, application integration, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns", "og:title": "Revision History - Enterprise Integration Patterns", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/history.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/eip1_patterns_wide.png"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "October 2003"}, {"uroven": 2, "text": "July 2003"}, {"uroven": 2, "text": "June 2003"}, {"uroven": 2, "text": "May 2003"}, {"uroven": 2, "text": "Apr 2003"}, {"uroven": 2, "text": "Mar 2003"}, {"uroven": 2, "text": "Feb 2003"}, {"uroven": 2, "text": "Jan 2003"}, {"uroven": 2, "text": "Dec 2002"}, {"uroven": 2, "text": "Oct 2002"}, {"uroven": 2, "text": "Sept 2002"}, {"uroven": 2, "text": "Aug 2002"}, {"uroven": 2, "text": "Integration Pattern Language"}], "markdown": "| | Revision History[Messaging Patterns](index.html) » Appendices | [Contents](toc.html)[⇐ Prev](bib.html) |\n| --- | --- | --- |\n\n## October 2003\n\nThe book is out in the stores now, so I have to take the full pattern content off the site. I will keep the catalog of all patterns, but each pattern will be shortened, essentially to context, problem, solution and the picture. This way we can continue to use the site as a reference for the pattern language without getting into trouble with the publisher.\n\n## July 2003\n\nLots of edits and additions. I added a new introductory chapter with a longer design example ([*Solving Integration Problems using Patterns*](Chapter1.html)). We also have a TIBCO implementation for the Loan Broker example ([*Asynchronous Implementation with TIBCO ActiveEnterprise*](ComposedMessagingTIBCO.html)) and show how to instrument the MSMQ version of the example ([*Loan Broker System Management*](SystemManagementExample.html)). Plus tons of edits, more examples, more pictures.\n\n## June 2003\n\nLots of activity. Bobby added [*Request-Reply*](RequestReply.html) to the Message Construction section and I added [*Wire Tap*](WireTap.html), [*Detour*](Detour.html) and [*Smart Proxy*](SmartProxy.html) to the System Management section. Also major updates to the [*Channel Adapter*](ChannelAdapter.html).\n\nI added the [*Message Broker*](MessageBroker.html) pattern as an architectural pattern for message routing.\n\n## May 2003\n\nMajor edits over the routing patterns: [*Message Router*](MessageRouter.html). Renamed *Routing Table* to [*Routing Slip*](RoutingTable.html) -- the old named clashed with common usage in the networking world. Also, I added the [*Dynamic Router*](DynamicRouter.html).\n\nBobby made a pass over the endpoint patterns and rewrote the introduction into this chapter ([*Introduction to Messaging Endpoints*](MessagingEndpointsIntro.html)).\n\nI am in the process of incorporating feedback into the Message Routing chapter. I added a better comparison between the patterns to the [*Introduction to Message Routing*](MessageRoutingIntro.html). I also renamed the \"Distribution with Aggregate Response\" into [*Composed Message Processor*](DistributionAggregate.html) -- the name was way too long.\n\nI added a MSMQ implementation in C# for the composed messaging example ([*Asynchronous Implementation with MSMQ*](ComposedMessagingMSMQ.html)) It's fairly comprehensive and demonstrates the implementation of a number of patterns in a real application.\n\nBobby added the [*Messaging Bridge*](MessagingBridge.html) and reworked some of the channel patterns.\n\nI added a MSMQ example in C# to the [*Resequencer*](Resequencer.html). Most of the routing and transformation patterns now have real code examples.\n\nI also added the [*Introduction to Composed Messaging Examples*](ComposedMessagingExample.html) to be followed by three comprehensive code examples: Java / Apache AXIS, MSMQ and TIBCO pub-sub.\n\n## Apr 2003\n\nI rewrote the [*Message History*](MessageHistory.html) so that the primary motivation is debugging and analyzing the system. Avoiding circular references is a side benefit of the solution.\n\nI felt that the section on message Transformation could use a few more patterns. I added the [*Normalizer*](Normalizer.html). I also added some more detail to the [*Channel Purger*](ChannelPurger.html). I also made an editing pass over the [*Introduction to System Management*](SystemManagementIntro.html) patterns, including renaming the *EnvelopeWrapper* to [*Envelope Wrapper*](EnvelopeWrapper.html).\n\nI finally finished the [*Process Manager*](ProcessManager.html). Sean Neville contributed a nice section on [*Emerging Standards and Futures in Enterprise Integration*](Future.html).\n\nWe added intro sections to the individual chapters to introduce the patterns and to explain how they relate to each other.\n\nBobby merged the *Messaging Integration* and [*Messaging*](Messaging.html) patterns. We also added additional Web Services references to underline the relevance of these patterns to Web Services solutions.\n\n## Mar 2003\n\nI added the [*Channel Purger*](ChannelPurger.html) pattern.\n\nI added pictures to the Integration Styles patterns. Bobby added a JMS and a .Net example for basic messaging: [*JMS Request/Reply Example*](RequestReplyJmsExample.html) and [*.NET Request/Reply Example*](RequestReplyNetExample.html). Also, we now have pictures in all patterns.\n\nWe rearranged the patterns in the site to make it easier to read them from front to back. Now all the 'root patterns', mostly the first pattern of each chapter are collected in a new section labeled 'Messaging Systems'.\n\nI made a pass through the Transformation Patterns, adding an XSL example to the [*Message Translator*](MessageTranslator.html). I also added a reference to WS-Routing to the [*Routing Slip*](RoutingTable.html) pattern.\n\nI added the [*Idempotent Receiver*](IdempotentReceiver.html). Bobby made a number of edits to the Channel Patterns. I am currently making edits to the transformation patterns. I removed the dandling section on Structural Transformation patterns. I have a number of good ideas in this area, but it simply out of scope for now.\n\n## Feb 2003\n\nI added Martin's 'Integration Style' patterns. Still missing pictures, but coming soon... This brings the total to 61 patterns.\n\nWe integrated Bobby's Channel Patterns, Message Patterns and Endpoint Patterns. We have over 55 patterns now! We will slow down our search for new patterns and focus on adding more pictures, more detail and examples to the patterns we have.\n\n## Jan 2003\n\nI keep on finding new patterns. I just added the [*Messaging Mapper*](MessagingMapper.html). Accordingly, I renamed the BidHelper class in the [*Aggregator*](Aggregator.html) code sample into BidMapper.\n\n## Dec 2002\n\nI created a new section at the bottom of each pattern page listing all related patterns . The section contains links to all patterns that are mentioned anywhere in the pattern description. If a pattern name displays here without a link it indicates that the pattern has not been developed yet. I wanted to save everybody the 'under construction' pages...\n\nI made a complete editing pass over all of the routing patterns. [*Recipient List*](RecipientList.html) received a new icon and was moved up closer to [*Message Filter*](Filter.html) and [*Content-Based Router*](ContentBasedRouter.html). I added a placeholder for the [*Process Manager*](ProcessManager.html) pattern.\n\nI added the [*Resequencer*](Resequencer.html) pattern.\n\nI updated the [*Aggregator*](Aggregator.html) code sample to implement the MessageListener interface. I also added class and sequence diagrams.\n\nMy site was cross-linked from [TheServerSide](http://www.theserverside.com). 770 unique visitors in a day! The site has received over 12000 unique visitors so far.\n\nI think I finally got a handle on the font sizes on the site. They now display consistently on both IE 5.x and NS 4.x and are resizable. I hope this will resolve any readability problems. I guess I really am an enterprise architect and not a Web designer...\n\n## Oct 2002\n\nI Modified my stylesheet to make the text more readable on Netscape's browser. Sorry for the inconvenience.\n\nAdded a JMS example to [*Aggregator*](Aggregator.html).\n\nReversed [*Content Filter*](ContentFilter.html) and [*Claim Check*](StoreInLibrary.html) to improve flow. Rename *Store in Library* to [*Claim Check*](StoreInLibrary.html). Changed icon and expanded description of [*Claim Check*](StoreInLibrary.html).\n\nAdded the [*Message Filter*](Filter.html). Renamed Sequencer to [*Splitter*](Sequencer.html) since the sequence is not relevant. The Sequencer is simply a special case of the [*Splitter*](Sequencer.html). Also, changed the icons for [*Splitter*](Sequencer.html) and [*Aggregator*](Aggregator.html). Renamed *Broadcast with Aggregate Response* to (much shorter) [*Scatter-Gather*](BroadcastAggregate.html).\n\nI added a reference to CSP (Communicating Sequential Processes) to [*Pipes and Filters*](PipesAndFilters.html). Reworded the problem statement.\n\nI added [*Message Router*](MessageRouter.html) as the root to all routing patterns.\n\nI finally incorporated most of the feedback from PLoP 2002. Thanks again to all my reviewers.\n\n## Sept 2002\n\nI added the [*Message Translator*](MessageTranslator.html) and moved most of the material from the intro into structural transformations into this pattern.\n\nI regrouped the patterns and added placeholders for Kyle's and Bobby's patterns.\n\nI presented the paper at the [PLoP 2002 Conference](http://jerry.cs.uiuc.edu/~plop/plop2002/). I got a number of excellent comments that I will incorporate over the next weeks.\n\nStarted working on structural transformation patterns.\n\nI am getting about 100 visits a day. I add a fancier table of contents and a 'Quick Reference'\n\n## Aug 2002\n\nThe site goes life. I convert my original Word document into XML files and create XSL transformations to render the HTML page.\n\n## Integration Pattern Language\n\n[Message Construct.](MessageConstructionIntro.html)\n\n[Message](Message.html)\n\n[Command Message](CommandMessage.html)\n\n[Document Message](DocumentMessage.html)\n\n[Event Message](EventMessage.html)\n\n[Request-Reply](RequestReply.html)\n\n[Return Address](ReturnAddress.html)\n\n[Correlation Identifier](CorrelationIdentifier.html)\n\n[Message Sequence](MessageSequence.html)\n\n[Message Expiration](MessageExpiration.html)\n\n[Format Indicator](FormatIndicator.html)\n\n[Message Routing](MessageRoutingIntro.html)\n\n[Pipes-and-Filters](PipesAndFilters.html)\n\n[Message Router](MessageRouter.html)\n\n[Content-based Router](ContentBasedRouter.html)\n\n[Message Filter](Filter.html)\n\n[Dynamic Router](DynamicRouter.html)\n\n[Recipient List](RecipientList.html)\n\n[Splitter](Sequencer.html)\n\n[Aggregator](Aggregator.html)\n\n[Resequencer](Resequencer.html)\n\n[Composed Msg. Processor](DistributionAggregate.html)\n\n[Scatter-Gather](BroadcastAggregate.html)\n\n[Routing Slip](RoutingTable.html)\n\n[Process Manager](ProcessManager.html)\n\n[Message Broker](MessageBroker.html)\n\n[Message\nTransformation](MessageTransformationIntro.html)\n\n[Message Translator](MessageTranslator.html)\n\n[Envelope Wrapper](EnvelopeWrapper.html)\n\n[Content Enricher](DataEnricher.html)\n\n[Content Filter](ContentFilter.html)\n\n[Claim Check](StoreInLibrary.html)\n\n[Normalizer](Normalizer.html)\n\n[Canonical Data Model](CanonicalDataModel.html)\n\n[Messaging Endpoints](MessagingEndpointsIntro.html)\n\n[Message Endpoint](MessageEndpoint.html)\n\n[Messaging Gateway](MessagingGateway.html)\n\n[Messaging Mapper](MessagingMapper.html)\n\n[Transactional Client](TransactionalClient.html)\n\n[Polling Consumer](PollingConsumer.html)\n\n[Event-driven Consumer](EventDrivenConsumer.html)\n\n[Competing Consumers](CompetingConsumers.html)\n\n[Message Dispatcher](MessageDispatcher.html)\n\n[Selective Consumer](MessageSelector.html)\n\n[Durable Subscriber](DurableSubscription.html)\n\n[Idempotent Receiver](IdempotentReceiver.html)\n\n[Service Activator](MessagingAdapter.html)\n\n[Messaging Channels](MessagingChannelsIntro.html)\n\n[Message Channel](MessageChannel.html)\n\n[Point-to-Point Channel](PointToPointChannel.html)\n\n[Publish-Subscr. Channel](PublishSubscribeChannel.html)\n\n[Datatype Channel](DatatypeChannel.html)\n\n[Invalid Message Channel](InvalidMessageChannel.html)\n\n[Dead Letter Channel](DeadLetterChannel.html)\n\n[Guaranteed Delivery](GuaranteedMessaging.html)\n\n[Channel Adapter](ChannelAdapter.html)\n\n[Messaging Bridge](MessagingBridge.html)\n\n[Message Bus](MessageBus.html)\n\n[Systems Mgmt.](SystemManagementIntro.html)\n\n[Control Bus](ControlBus.html)\n\n[Detour](Detour.html)\n\n[Wire Tap](WireTap.html)\n\n[Message History](MessageHistory.html)\n\n[Message Store](MessageStore.html)\n\n[Smart Proxy](SmartProxy.html)\n\n[Test Message](TestMessage.html)\n\n[Channel Purger](ChannelPurger.html)", "znaku_textu": 11620, "slov": 1454, "odkazu": 109, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 14:56:21", "sha256": "ebd0d6f1b2dfa71fa472031848da7d315ff9ee94bc2be626264675b8017a43eb", "hloubka": 3, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://www.theserverside.com/", "http://jerry.cs.uiuc.edu/~plop/plop2002/", "https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "https://www.architectelevator.com/book", "https://www.cloudstrategybook.com/", "https://www.platformstrategybook.info/"]} {"url": "http://www.enterpriseintegrationpatterns.com/patterns/messaging/index.html", "titulek": "Messaging Patterns Overview - Enterprise Integration Patterns", "h1": "", "popis": "This pattern catalog includes 65 integration patterns that we collected from integration projects and updated over two decades. They provide technology-independent design guidance for developers and architects to develop and document robust integration solutions. The 65 messaging patterns are organized as follows (click on the image or view the Table of Contents):", "klicova_slova": "Messaging Patterns Overview,integration, messaging, events, patterns, event-driven, coupling, eai, middleware, application integration, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns", "og:title": "Messaging Patterns Overview - Enterprise Integration Patterns", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/index.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/eip1_patterns_wide.png"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Integration Pattern Language"}, {"uroven": 2, "text": "Why Enterprise Integration Patterns?"}, {"uroven": 2, "text": "What products implement or use Enterprise Integration Patterns?"}, {"uroven": 2, "text": "How can you use the Patterns?"}, {"uroven": 2, "text": "What about REST / SOA / Serverless / EDA Patterns?"}, {"uroven": 2, "text": "Be Part of the Community"}, {"uroven": 2, "text": "Contributors"}], "markdown": "| | Messaging Patterns Overview[Messaging Patterns](index.html) | [Contents](toc.html)[Next ⇒](toc.html) |\n| --- | --- | --- |\n\nThis pattern catalog includes 65 integration patterns that we collected from integration projects and updated over two decades. They provide technology-independent design guidance for developers and architects to develop and document robust integration solutions. The [65 messaging patterns](toc.html) are organized as follows (click on the image or view the [Table of Contents](toc.html)):\n\n## Integration Pattern Language\n\n[Message Construct.](MessageConstructionIntro.html)\n\n[Message](Message.html)\n\n[Command Message](CommandMessage.html)\n\n[Document Message](DocumentMessage.html)\n\n[Event Message](EventMessage.html)\n\n[Request-Reply](RequestReply.html)\n\n[Return Address](ReturnAddress.html)\n\n[Correlation Identifier](CorrelationIdentifier.html)\n\n[Message Sequence](MessageSequence.html)\n\n[Message Expiration](MessageExpiration.html)\n\n[Format Indicator](FormatIndicator.html)\n\n[Message Routing](MessageRoutingIntro.html)\n\n[Pipes-and-Filters](PipesAndFilters.html)\n\n[Message Router](MessageRouter.html)\n\n[Content-based Router](ContentBasedRouter.html)\n\n[Message Filter](Filter.html)\n\n[Dynamic Router](DynamicRouter.html)\n\n[Recipient List](RecipientList.html)\n\n[Splitter](Sequencer.html)\n\n[Aggregator](Aggregator.html)\n\n[Resequencer](Resequencer.html)\n\n[Composed Msg. Processor](DistributionAggregate.html)\n\n[Scatter-Gather](BroadcastAggregate.html)\n\n[Routing Slip](RoutingTable.html)\n\n[Process Manager](ProcessManager.html)\n\n[Message Broker](MessageBroker.html)\n\n[Message\nTransformation](MessageTransformationIntro.html)\n\n[Message Translator](MessageTranslator.html)\n\n[Envelope Wrapper](EnvelopeWrapper.html)\n\n[Content Enricher](DataEnricher.html)\n\n[Content Filter](ContentFilter.html)\n\n[Claim Check](StoreInLibrary.html)\n\n[Normalizer](Normalizer.html)\n\n[Canonical Data Model](CanonicalDataModel.html)\n\n[Messaging Endpoints](MessagingEndpointsIntro.html)\n\n[Message Endpoint](MessageEndpoint.html)\n\n[Messaging Gateway](MessagingGateway.html)\n\n[Messaging Mapper](MessagingMapper.html)\n\n[Transactional Client](TransactionalClient.html)\n\n[Polling Consumer](PollingConsumer.html)\n\n[Event-driven Consumer](EventDrivenConsumer.html)\n\n[Competing Consumers](CompetingConsumers.html)\n\n[Message Dispatcher](MessageDispatcher.html)\n\n[Selective Consumer](MessageSelector.html)\n\n[Durable Subscriber](DurableSubscription.html)\n\n[Idempotent Receiver](IdempotentReceiver.html)\n\n[Service Activator](MessagingAdapter.html)\n\n[Messaging Channels](MessagingChannelsIntro.html)\n\n[Message Channel](MessageChannel.html)\n\n[Point-to-Point Channel](PointToPointChannel.html)\n\n[Publish-Subscr. Channel](PublishSubscribeChannel.html)\n\n[Datatype Channel](DatatypeChannel.html)\n\n[Invalid Message Channel](InvalidMessageChannel.html)\n\n[Dead Letter Channel](DeadLetterChannel.html)\n\n[Guaranteed Delivery](GuaranteedMessaging.html)\n\n[Channel Adapter](ChannelAdapter.html)\n\n[Messaging Bridge](MessagingBridge.html)\n\n[Message Bus](MessageBus.html)\n\n[Systems Mgmt.](SystemManagementIntro.html)\n\n[Control Bus](ControlBus.html)\n\n[Detour](Detour.html)\n\n[Wire Tap](WireTap.html)\n\n[Message History](MessageHistory.html)\n\n[Message Store](MessageStore.html)\n\n[Smart Proxy](SmartProxy.html)\n\n[Test Message](TestMessage.html)\n\n[Channel Purger](ChannelPurger.html)\n\n- [**Integration Styles**](IntegrationStylesIntro.html) document different ways applications can be integrated, providing a historical account of integration technologies. All subsequent patterns follow the [*Messaging*](Messaging.html) style.\n- [**Channel Patterns**](MessagingChannelsIntro.html) describe how messages are transported across a [*Message Channel*](MessageChannel.html) . Most messaging systems implement these patterns.\n- [**Message Construction Patterns**](MessageConstructionIntro.html) describe the intent, form and content of the messages that travel across the messaging system. The [*Message*](Message.html) pattern is the base pattern for this section.\n- [**Routing Patterns**](MessageRoutingIntro.html) discuss how messages are directed from a sender to the correct receiver(s). The patterns presented in this section are specializations of the [*Message Router*](MessageRouter.html) pattern.\n- [**Transformation Patterns**](MessageTransformationIntro.html) change the content of a message, for example to accommodate different data formats used by the sending and the receiving system. Data may have to be added, taken away or existing data may have to be rearranged. The base pattern for this section is the [*Message Translator*](MessageTranslator.html) .\n- [**Endpoint Patterns**](MessagingEndpointsIntro.html) describe how applications produce or consume messages.\n- [**System Management Patterns**](SystemManagementIntro.html) describe what's needed to keep a complex message-based system running smoothly.\n\n## Why Enterprise Integration Patterns?\n\nIntegration is a long-running topic in all aspects of software and IT, and it's too multi-faceted to be tackled with a simple 'cookbook' approach. Patterns, in contrast, document knowledge and experience that usually lives only in architects' heads. As accepted solutions to recurring problems, patterns are abstract enough to apply across integration technologies, but specific enough to provide hands-on guidance. They also provide a vocabulary to accurately describe solutions.\n\nPatterns are not 'invented'; they are harvested from repeated use in practice. If you have built integration solutions, you likely have used some of these patterns, maybe in slight variations and perhaps calling them by a different name. This site condenses that experience into a coherent collection of proven patterns that form an integration pattern language. Patterns live in a specific context. This first set of patterns focus on [*Messaging*](Messaging.html). We also started to [harvest Conversation patterns](/patterns/conversation).\n\n## What products implement or use Enterprise Integration Patterns?\n\nThe patterns are independent of a specific implementation and help you design better solutions with any of the following platforms:\n\n- **Open source ESB's** like [Mule ESB](http://www.mulesoft.org/) , [JBoss Fuse](http://www.jboss.org/products/fuse/overview/) , [Open ESB](http://www.open-esb.net/) , [WSo2](http://wso2.com/) , [Spring Integration](http://projects.spring.io/spring-integration/) , or [Talend ESB](http://www.talend.com/)\n- **Message Brokers** like [ActiveMQ](http://activemq.apache.org) , [Apache Kafka](https://kafka.apache.org/) , or [RabbitMQ](https://www.rabbitmq.com)\n- **EAI and SOA platforms** , such as [IBM WebSphere MQ](http://www.ibm.com/software/mqseries) , [TIBCO](http://www.tibco.com) , [Vitria](http://www.vitria.com) , [Oracle Service Bus](http://www.oracle.com/technetwork/middleware/service-bus) , [WebMethods](http://www.softwareag.com/corporate/products/webmethods_integration/integration/overview/default.asp) (now Software AG), [Microsoft BizTalk](http://www.microsoft.com/biztalk) , or [Fiorano](http://www.fiorano.com) .\n- **Cloud-based integration** , including [Amazon Simple Queue Service (SQS)](http://aws.amazon.com/sqs/) , [Amazon EventBridge](https://aws.amazon.com/eventbridge/) , [Google Cloud Pub/Sub](https://cloud.google.com/pubsub/) , or [Azure Service Bus](https://azure.microsoft.com/en-us/products/service-bus) .\n- **JMS-based messaging systems**\n- **Microsoft technologies** like [MSMQ](https://msdn.microsoft.com/en-us/library/ms711472) or [Windows Communication Foundation (WCF)](https://msdn.microsoft.com/library/vstudio/ms735119)\n\n## How can you use the Patterns?\n\nTo encourage widespread use of the integration pattern language, many parts are available under open source licensing. You are free to use the pattern name, icon, problem and solution statements, and the sketches (the diagram below the solution statement) under the [Creative Commons Attribution](http://creativecommons.org/licenses/by/4.0/) license.\n\n> The [CC-BY](https://creativecommons.org/licenses/by/4.0/) license allows you share, use and modify these elements as long as you give proper attribution, such as a link to this site or a citation of the book. See the [license for more detail](https://creativecommons.org/licenses/by/4.0/)\n> \n> .\n\nYou can do a lot more with the patterns:\n\n- **Build** . Many open-source frameworks, such as [Mule](http://mule.codehaus.org/display/MULE/Architecture+Guide) , [Apache Camel](http://activemq.apache.org/camel/) , or [Spring Integration](http://projects.spring.io/spring-integration/) incorporate our patterns. You can not only think in integration patterns, but also to code in them!\n- **Document** . You can create design documents using our icon language by downloading the [Visio stencil](downloads.html) or using the [OmniGraffle stencil](http://www.graffletopia.com/stencils/137) created by one of our readers.\n- **Read** . The book [*Enterprise Integration Patterns*](http://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20) (Addison-Wesley, ISBN 0321200683) contains the full description of each pattern with plenty of examples -- over 700 pages worth of material. You can also read the full text [on-line on Safari](http://safari.informit.com/0321200683) (with membership).\n- **Teach** . A number of professors use our material in lectures. If you are interested in getting access to material for academic purposes, please [contact us](gregor.html) .\n\n## What about REST / SOA / Serverless / EDA Patterns?\n\nThe integration problems we solve today remain [frustratingly similar](/ramblings/81_restconversation.html) to 20 years ago. The design knowledhe encapsulated in the patterns does not age like specific technologies. A list of [modern examples](/ramblings/eip1_examples_updated.html) shows how the patterns apply to integration technologies like Kafka, Google Cloud Pub/Sub, Amazon SQS or [REST](/ramblings/81_restconversation.html). I've also re-implemented the Loan Broker example application in [AWS Lambda, EventBridge, and Step Functions](/ramblings/loanbroker_stepfunctions.html) and [GCP PubSub and Workflows](/ramblings/loanbroker_gcp_workflows.html).\n\n## Be Part of the Community\n\nFeel free to connect on [LinkedIn](https://www.linkedin.com/in/ghohpe). We welcome your feedback!\n\n## Contributors\n\nThe patterns on this site are the result of discussions involving numerous individuals. Kyle Brown (co-author of \"Enterprise Java Programming for IBM WebSphere\" and \"The Design Patterns Smalltalk Companion\"), John Crupi (co-author of \"Core J2EE Patterns\"), Martin Fowler (author of too many books to mention here), Rachel Reinitz, Mark Weitzel were part of the original discussions. Conrad D'Cruz, Sean Neville, Mike Rettig, Jonathan Simon ended up authoring examples, case studies, and a chapter on the future of integration.", "znaku_textu": 10651, "slov": 1085, "odkazu": 124, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/eaipatterns.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 14:54:50", "sha256": "dc85b74166b38c3432f7ef43820ecbd22e4e2ef0d7177fb1748db04b01f2bb90", "hloubka": 3, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://www.mulesoft.org/", "http://www.jboss.org/products/fuse/overview/", "http://www.open-esb.net/", "http://wso2.com/", "http://projects.spring.io/spring-integration/", "http://www.talend.com/", "http://activemq.apache.org/", "https://kafka.apache.org/", "https://www.rabbitmq.com/", "http://www.ibm.com/software/mqseries", "http://www.tibco.com/", "http://www.vitria.com/", "http://www.oracle.com/technetwork/middleware/service-bus", "http://www.softwareag.com/corporate/products/webmethods_integration/integration/overview/default.asp", "http://www.microsoft.com/biztalk", "http://www.fiorano.com/", "http://aws.amazon.com/sqs/", "https://aws.amazon.com/eventbridge/", "https://cloud.google.com/pubsub/", "https://azure.microsoft.com/en-us/products/service-bus", "https://msdn.microsoft.com/en-us/library/ms711472", "https://msdn.microsoft.com/library/vstudio/ms735119", "http://creativecommons.org/licenses/by/4.0/", "https://creativecommons.org/licenses/by/4.0/", "http://mule.codehaus.org/display/MULE/Architecture+Guide", "http://activemq.apache.org/camel/", "http://www.graffletopia.com/stencils/137", "http://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "http://safari.informit.com/0321200683", "https://www.linkedin.com/in/ghohpe", "https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "https://www.architectelevator.com/book", "https://www.cloudstrategybook.com/", "https://www.platformstrategybook.info/"]} {"url": "http://www.enterpriseintegrationpatterns.com/patterns/messaging/toc.html", "titulek": "Table of Contents - Enterprise Integration Patterns", "h1": "", "popis": "Table of Contents - Enterprise Integration Patterns", "klicova_slova": "Table of Contents,integration, messaging, events, patterns, event-driven, coupling, eai, middleware, application integration, enterprise integration", "kanonicka": "", "jazyk": "", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns", "og:title": "Table of Contents - Enterprise Integration Patterns", "og:url": "https://www.enterpriseintegrationpatterns.com", "og:image": "https://www.enterpriseintegrationpatterns.com/img/eip1_patterns_wide.png"}, "jsonld": [], "drobecky": [], "osnova": [], "markdown": "Messaging Patterns\n\n| | Table of Contents[Messaging Patterns](index.html) | [Contents](toc.html)[⇐ Prev](index.html)[Next ⇒](Preface.html) |\n| --- | --- | --- |\n\n| | [Messaging Patterns Overview](index.html) | |\n| --- | --- | --- |\n| | [Table of Contents](toc.html) | Detailed table of contents. |\n| | [Preface](Preface.html) | |\n| | [Introduction](Introduction.html) | |\n| | [Solving Integration Problems using Patterns](Chapter1.html) | |\n| Integration Styles | | |\n| | [Introduction to Integration Styles](IntegrationStylesIntro.html) | |\n| | [File Transfer](FileTransferIntegration.html) | How can I integrate multiple applications so that they work together and can exchange information? |\n| | [Shared Database](SharedDataBaseIntegration.html) | How can I integrate multiple applications so that they work together and can exchange information? |\n| | [Remote Procedure Invocation](EncapsulatedSynchronousIntegration.html) | How can I integrate multiple applications so that they work together and can exchange information? |\n| | [Messaging](Messaging.html) | How can I integrate multiple applications so that they work together and can exchange information? |\n| Messaging Systems | | |\n| | [Introduction to Messaging Systems](MessagingComponentsIntro.html) | |\n| | [Message Channel](MessageChannel.html) | How does one application communicate with another using messaging? |\n| | [Message](Message.html) | How can two applications connected by a message channel exchange a piece of information? |\n| | [Pipes and Filters](PipesAndFilters.html) | How can we perform complex processing on a message while maintaining independence and flexibility? |\n| | [Message Router](MessageRouter.html) | How can you decouple individual processing steps so that messages can be passed to different filters depending on a set of conditions? |\n| | [Message Translator](MessageTranslator.html) | How can systems using different data formats communicate with each other using messaging? |\n| | [Message Endpoint](MessageEndpoint.html) | How does an application connect to a messaging channel to send and receive messages? |\n| Messaging Channels | | |\n| | [Introduction to Messaging Channels](MessagingChannelsIntro.html) | |\n| | [Point-to-Point Channel](PointToPointChannel.html) | How can the caller be sure that exactly one receiver will receive the document or perform the call? |\n| | [Publish-Subscribe Channel](PublishSubscribeChannel.html) | How can the sender broadcast an event to all interested receivers? |\n| | [Datatype Channel](DatatypeChannel.html) | How can the application send a data item such that the receiver will know how to process it? |\n| | [Invalid Message Channel](InvalidMessageChannel.html) | How can a messaging receiver gracefully handle receiving a message that makes no sense? |\n| | [Dead Letter Channel](DeadLetterChannel.html) | What will the messaging system do with a message it cannot deliver? |\n| | [Guaranteed Delivery](GuaranteedMessaging.html) | How can the sender make sure that a message will be delivered, even if the messaging system fails? |\n| | [Channel Adapter](ChannelAdapter.html) | How can you connect an application to the messaging system so that it can send and receive messages? |\n| | [Messaging Bridge](MessagingBridge.html) | How can multiple messaging systems be connected so that messages available on one are also available on the others? |\n| | [Message Bus](MessageBus.html) | 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? |\n| Message Construction | | |\n| | [Introduction to Message Construction](MessageConstructionIntro.html) | |\n| | [Command Message](CommandMessage.html) | How can messaging be used to invoke a procedure in another application? |\n| | [Document Message](DocumentMessage.html) | How can messaging be used to transfer data between applications? |\n| | [Event Message](EventMessage.html) | How can messaging be used to transmit events from one application to another? |\n| | [Request-Reply](RequestReply.html) | When an application sends a message, how can it get a response from the receiver? |\n| | [Return Address](ReturnAddress.html) | How does a replier know where to send the reply? |\n| | [Correlation Identifier](CorrelationIdentifier.html) | How does a requestor that has received a reply know which request this is the reply for? |\n| | [Message Sequence](MessageSequence.html) | How can messaging transmit an arbitrarily large amount of data? |\n| | [Message Expiration](MessageExpiration.html) | How can a sender indicate when a message should be considered stale and thus shouldn’t be processed? |\n| | [Format Indicator](FormatIndicator.html) | How can a message’s data format be designed to allow for possible future changes? |\n| Interlude: Simple Messaging | | |\n| | [Introduction to Simple Messaging Examples](SimpleMessagingIntro.html) | |\n| | [JMS Request/Reply Example](RequestReplyJmsExample.html) | |\n| | [.NET Request/Reply Example](RequestReplyNetExample.html) | |\n| | [JMS Publish/Subscribe Example](ObserverJmsExample.html) | |\n| Message Routing | | |\n| | [Introduction to Message Routing](MessageRoutingIntro.html) | |\n| | [Content-Based Router](ContentBasedRouter.html) | How do we handle a situation where the implementation of a single logical function (e.g., inventory check) is spread across multiple physical systems? |\n| | [Message Filter](Filter.html) | How can a component avoid receiving uninteresting messages? |\n| | [Dynamic Router](DynamicRouter.html) | How can you avoid the dependency of the router on all possible destinations while maintaining its efficiency? |\n| | [Recipient List](RecipientList.html) | How do we route a message to a list of dynamically specified recipients? |\n| | [Splitter](Sequencer.html) | How can we process a message if it contains multiple elements, each of which may have to be processed in a different way? |\n| | [Aggregator](Aggregator.html) | How do we combine the results of individual, but related messages so that they can be processed as a whole? |\n| | [Resequencer](Resequencer.html) | How can we get a stream of related but out-of-sequence messages back into the correct order? |\n| | [Composed Message Processor](DistributionAggregate.html) | How can you maintain the overall message flow when processing a message consisting of multiple elements, each of which may require different processing? |\n| | [Scatter-Gather](BroadcastAggregate.html) | 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? |\n| | [Routing Slip](RoutingTable.html) | 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? |\n| | [Process Manager](ProcessManager.html) | 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? |\n| | [Message Broker](MessageBroker.html) | How can you decouple the destination of a message from the sender and maintain central control over the flow of messages? |\n| Message Transformation | | |\n| | [Introduction to Message Transformation](MessageTransformationIntro.html) | |\n| | [Envelope Wrapper](EnvelopeWrapper.html) | How can existing systems participate in a messaging exchange that places specific requirements on the message format, such as message header fields or encryption? |\n| | [Content Enricher](DataEnricher.html) | How do we communicate with another system if the message originator does not have all the required data items available? |\n| | [Content Filter](ContentFilter.html) | How do you simplify dealing with a large message, when you are interested only in a few data items? |\n| | [Claim Check](StoreInLibrary.html) | How can we reduce the data volume of message sent across the system without sacrificing information content? |\n| | [Normalizer](Normalizer.html) | How do you process messages that are semantically equivalent, but arrive in a different format? |\n| | [Canonical Data Model](CanonicalDataModel.html) | How can you minimize dependencies when integrating applications that use different data formats? |\n| Interlude: Composed Messaging | | |\n| | [Introduction to Composed Messaging Examples](ComposedMessagingExample.html) | |\n| | [Synchronous Implementation using Web Services](ComposedMessagingWS.html) | |\n| | [Asynchronous Implementation with MSMQ](ComposedMessagingMSMQ.html) | |\n| | [Asynchronous Implementation with TIBCO ActiveEnterprise](ComposedMessagingTIBCO.html) | |\n| Messaging Endpoints | | |\n| | [Introduction to Messaging Endpoints](MessagingEndpointsIntro.html) | |\n| | [Messaging Gateway](MessagingGateway.html) | How do you encapsulate access to the messaging system from the rest of the application? |\n| | [Messaging Mapper](MessagingMapper.html) | How do you move data between domain objects and the messaging infrastructure while keeping the two independent of each other? |\n| | [Transactional Client](TransactionalClient.html) | How can a client control its transactions with the messaging system? |\n| | [Polling Consumer](PollingConsumer.html) | How can an application consume a message when the application is ready? |\n| | [Event-Driven Consumer](EventDrivenConsumer.html) | How can an application automatically consume messages as they become available? |\n| | [Competing Consumers](CompetingConsumers.html) | How can a messaging client process multiple messages concurrently? |\n| | [Message Dispatcher](MessageDispatcher.html) | How can multiple consumers on a single channel coordinate their message processing? |\n| | [Selective Consumer](MessageSelector.html) | How can a message consumer select which messages it wishes to receive? |\n| | [Durable Subscriber](DurableSubscription.html) | How can a subscriber avoid missing messages while it’s not listening for them? |\n| | [Idempotent Receiver](IdempotentReceiver.html) | How can a message receiver deal with duplicate messages? |\n| | [Service Activator](MessagingAdapter.html) | How can an application design a service to be invoked both via various messaging technologies and via non-messaging techniques? |\n| System Management | | |\n| | [Introduction to System Management](SystemManagementIntro.html) | |\n| | [Control Bus](ControlBus.html) | How can we effectively administer a messaging system that is distributed across multiple platforms and a wide geographic area? |\n| | [Detour](Detour.html) | How can you route a message through intermediate steps to perform validation, testing or debugging functions? |\n| | [Wire Tap](WireTap.html) | How do you inspect messages that travel on a point-to-point channel? |\n| | [Message History](MessageHistory.html) | How can we effectively analyze and debug the flow of messages in a loosely coupled system? |\n| | [Message Store](MessageStore.html) | How can we report against message information without disturbing the loosely coupled and transient nature of a messaging system? |\n| | [Smart Proxy](SmartProxy.html) | How can you track messages on a service that publishes reply messages to the Return Address specified by the requestor? |\n| | [Test Message](TestMessage.html) | What happens, though, if a component is actively processing messages, but garbles outgoing messages due to an internal fault? |\n| | [Channel Purger](ChannelPurger.html) | How can you keep 'left-over' messages on a channel from disturbing tests or running systems? |\n| Interlude: Systems Management Example | | |\n| | [Loan Broker System Management](SystemManagementExample.html) | |\n| Integration Patterns in Practice | | |\n| | [Case Study: Bond Trading System](BondTradingCaseStudy.html) | |\n| Concluding Remarks | | |\n| | [Emerging Standards and Futures in Enterprise Integration](Future.html) | |\n| Appendices | | |\n| | [Bibliography](bib.html) | Annotated list of references and recommended reading. |\n| | [Revision History](history.html) | Chronological list of changes. |", "znaku_textu": 11393, "slov": 1346, "odkazu": 101, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 14:54:51", "sha256": "929a06e03217289455d1f68f02f0f1db497ee39e27d46c18aab3388b8665c0ad", "hloubka": 3, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": []} {"url": "http://www.enterpriseintegrationpatterns.com/praise.html", "titulek": "Books - Enterprise Integration Patterns", "h1": "", "popis": "", "klicova_slova": "", "kanonicka": "", "jazyk": "", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [], "markdown": "| | Books |\n| --- | --- |\n| | |\n\n---\n\n| |\n| --- |\n\n| **[Enterprise \n Integration Patterns : Designing, Building, and Deploying Messaging \n Solutions](http://www.amazon.com/exec/obidos/redirect?tag=enterpriseint-20&path=tg/detail/-/0321200683/qid=1064833216/sr=8-2)** \n\n Gregor Hohpe, Bobby Woolf\n\n 650 pages, $49.99\n\n ISBN 0321200683 \n\n Addison-Wesley, 2004 This highly anticipated \n book includes all 65 patterns from this site plus more examples and \n lots of edits. We are now going into the third printing! . [[Sample \n Chapter](docs/EnterpriseIntegrationPatterns_HohpeWoolf_ch03.pdf)] | | |\n| --- | --- | --- |\n| | **[Enterprise \n Integration Patterns : Designing, Building, and Deploying Messaging \n Solutions](http://www.amazon.com/exec/obidos/redirect?tag=enterpriseint-20&path=tg/detail/-/0321200683/qid=1064833216/sr=8-2)** \n\n Gregor Hohpe, Bobby Woolf\n\n 650 pages, $49.99\n\n ISBN 0321200683 \n\n Addison-Wesley, 2004 | |\n| This highly anticipated \n book includes all 65 patterns from this site plus more examples and \n lots of edits. We are now going into the third printing! . [[Sample \n Chapter](docs/EnterpriseIntegrationPatterns_HohpeWoolf_ch03.pdf)] | | |\n\nPraise for Enterprise Integration Patterns:\n\n*\"This book not only provides valuable recipes for approaching \n integration problems with messaging, it shows tremendous insight into why each \n approach is useful. The authors have captured and articulated the most common \n uses of messaging in integration and shown clear ways of approaching complex \n problems using messaging channels.\"*\n\nDave Chappell, \n\n Vice President and Chief Technology Evangelist, Sonic Software\n\n Author of \"Enterprise Service Bus\", \"Java Web Services\", \n and \"Java Message Service\"\n\n---\n\n\"Enterprise Integration Patterns *details an emerging \n trend that will affect all Software & Business Process' Architects in Financial \n Services, and supports our efforts to be innovative and competitive while still \n leveraging our customer's legacy system investments. This topic is timely, and \n the Messaging & Workflow patterns are described in a concise and execution-driven \n fashion -- highly relevant & immediately applicable in today's event-driven \n and information-intensive environments. \"*\n\nGlenn Cameron\n\n Director of Middleware Solutions Architecture, Thomson Financial\n\n---\n\n*\"If you are involved with the operation or development \n of an enterprise application, there will doubtless come a time when you will \n need to integrate your application with another using the emerging preferred \n approach of messaging. When that time comes, this book will be your most valuable \n reference. Bobby and Gregor have done a masterful job of collecting the hard-won \n wisdom of the software development profession on the topic of application integration \n using messaging, and neatly organizing it into a set of patterns - the preferred \n form for communication of design knowledge between software professionals. The \n result is a vocabulary and set of proven solutions that software professionals \n can use to design and discuss enterprise application integrations.*\"\n \n Randy Stafford\n\n Chief Architect, IQNavigator, Inc.\n\n---\n\n*\"In addition to covering basics like pub-sub and guaranteed \n delivery,*Enterprise Integration Patterns*provides an architect's sourcebook \n of higher-level patterns that describe how messaging is actually *used*. The \n book is as much about describing and building messaging-based applications as \n it is about integration, and the patterns -- like Routing Slip, Aggregator, \n or Resequencer -- will serve developers well in both integration and in ground-up \n application development projects.\"*\n\nPaul Brown\n\n CEO, FiveSight Technologies, Inc.\n\n---\n\n\"Enterprise Integration*Patterns is a landmark achievement. \n The integration world has been plagued by a veritable lack of consistency in \n even the language used to talk about integration, never mind the software or \n protocol standards. This book finally provides the opportunity to change all \n that so that everyone: vendors, consultants, developers, and end-users, can \n all start communicating via a common lexicon. If there is any one development \n that will move integration best practices out of the middle-ages and launch \n a renaissance movement towards creating a formal discipline for integration \n world-wide, this is it! A must have for the bookshelf of every IT architect, \n developer and integrator.*\"\n \n\n John Schmidt \n\n Board Member, EAI Industry Consortium\n\n---\n\nEnterprise Integration Patterns*provides a timeless foundation \n to understand the present and future of integration. The authors use patterns \n to effectively capture and share their tremendous wisdom and experience. I learned \n a great deal in reviewing and reading this book, and I look forward to relying \n on its advice in the years to come.*\n \n Luke Hohmann\n\n Author of Beyond Software Architecture\n\n---\n\n---", "znaku_textu": 4782, "slov": 640, "odkazu": 14, "kodovani": "iso-8859-1", "kodovani_deklarovane": "iso-8859-1", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 15:33:51", "sha256": "526664be55ebda1a253f7745d4d994c54fbfb8d1a5a3ec3c2b209b14cb589190", "hloubka": 3, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://www.amazon.com/exec/obidos/redirect?path=tg%2Fdetail%2F-%2F0321200683%2Fqid%3D1064833216%2Fsr%3D8-2&tag=enterpriseint-20", "http://www.amazon.com/exec/obidos/ASIN/0321200683/enterpriseint-20", "http://www.thoughtworks.com/"]} {"url": "http://www.enterpriseintegrationpatterns.com/ramblings", "titulek": "Enterprise Integration Patterns: Gregor's Ramblings", "h1": "", "popis": "Thoughts on distributed system design collected over two decades.", "klicova_slova": "", "kanonicka": "", "jazyk": "", "robots_meta": "", "og": {"og:type": "website", "og:site_name": "Enterprise Integration Patterns", "og:title": "Blog - Enterprise Integration Patterns", "og:description": "Thoughts on distributed system design collected over two decades.", "og:url": "https://www.enterpriseintegrationpatterns.com/ramblings", "og:image": "https://www.enterpriseintegrationpatterns.com/img/eip1_patterns.png"}, "jsonld": [], "drobecky": [], "osnova": [], "markdown": "Gregor's Ramblings on Enterprise Integration\n\n---\n\n| My latest thoughts on integration architecture: |\n| --- |\n| [Queues invert control flow but require flow control](/ramblings/queues_flow_control.html) |\n| [Control Flow—The Other Half of Integration Patterns](/ramblings/queues_control_flow.html) |\n| [Event-driven = Loosely coupled? Not so fast!](/ramblings/eventdriven_coupling.html) |\n\n| [A Decade of Enterprise Integration Patterns](/articles.html)\n\r\n (IEEE Software) |\n| --- |\n| [20 Years of Patterns' Impact](/articles.html) \n\r\n (IEEE Software) |\n| [Conversations Between Loosely Coupled Services](http://www.infoq.com/presentations/hohpe-soa-conversations) \n\r\n (Video on [InfoQ](http://www.infoq.com)) |\n| [Developing in a Service-oriented World](http://www.infoq.com/presentations/hohpe-soa-development) \n\r\n (Video on [InfoQ](http://www.infoq.com)) |\n| [SOA Patterns - New Insights or Recycled Knowledge?](/docs/SoaPatterns.pdf)\n\r\n (Whitepaper) |\n| [Let's Have a Conversation](/docs/IEEE_IC_Conversations.pdf)\n(IEEE Internet Computing) |\n| [Programming Without a Call Stack - Event-driven Architectures](/docs/EDA.pdf)\n(ObjektSpektrum, 2006) |\n| [Your Coffee Shop Does Not Use Two-Phase Commit](/docs/IEEE_Software_Design_2PC.pdf)\n\r\n (IEEE Software) |\n| [Developing in a Service-Oriented World](/docs/SOA_World.pdf)\n(ThoughtWorks Whitepaper) |\n| [An Asynchronous World](http://www.drdobbs.com/an-asynchronous-world/184415001)\n\r\n (Software Development) |\n\n| [Nearfield Communication (NFC) in Japan](/docs/NfcOopHohpe.pdf)\n(OOP 2012) |\n| --- |\n| [Embedded OSS](/docs/EmbeddedOop.pdf)\n(OOP 2012) |\n| [Programming the Cloud](https://sites.google.com/site/gcodejp/slides/ProgrammingCloud_QCon.pdf)\n(QCOn Tokyo 2010) |\n| [Distributed Programming the Google Way](/docs/DistributedProgrammingGoogle.pdf)\n(Devoxx 2009) |\n| [Developing in a Service-Oriented World](/docs/hohpe_developing_in_soa_world.pdf)\n(SOACon 2007) |\n| [Programming without a Call Stack: Event-driven Architectures](/docs/hohpe_event_driven_architectures.pdf)\n(SOACon 2007) |\n| [Software Visualization and Model Extraction](/docs/TSS_software_visualization.pdf)\n(TheServerSide) |\n| [Where did all my beatiful code go?](/docs/SpringOneKeynotePub.pdf)\n(SpringOne, 2006) |\n| [Conversations Between Loosely Coupled Systems](/docs/Conversations_loosely_coupled.pdf)\n(SD West, 2006) |\n| [Enterprise Integration Patterns](/docs/jaoo_hohpeg_enterpriseintegrationpatterns.pdf)\n(JAOO, 2003) |\n\nThis blog chronicles my journey with asynchronous and distributed system design over\n two decades, covering [integration](/ramblings_integration.html), [messaging](/ramblings_messaging.html), and [conversation patterns](/ramblings_conversations.html), and [patterns](/ramblings_patterns.html).\n\nFind my posts on IT strategy, enterprise architecture, and digital transformation\n at [ArchitectElevator.com](https://architectelevator.com/blog).\n\n[RSS Feed](/ramblings.rss) [Twitter](https://www.twitter.com/ghohpe) [LinkedIn](https://www.linkedin.com/today/author/ghohpe)\n\n---\n\n[Queues invert control flow but require flow control](/ramblings/queues_flow_control.html) July 27, 2024 [integration](/ramblings_integration.html) [cloud](/ramblings_cloud.html) [events](/ramblings_events.html)\n\nQueues are key elements of any asynchronous system because they can invert control\n flow. Their ability to re-shape traffic enables high-throughput systems that behave\n gracefully under heavy load. But all that magic doesn't come for free: to function\n well, queues require flow control [Read more Âť](/ramblings/queues_flow_control.html)\n\n[Control Flow—The Other Half of Integration Patterns](/ramblings/queues_control_flow.html) July 30, 2024 [integration](/ramblings_integration.html) [cloud](/ramblings_cloud.html) [messaging](/ramblings_messaging.html)\n\nWhen describing messaging systems, it's natural to focus on data flow. However, control\n flow is what gives those systems their critical runtime properties like resilience\n or low latency. It's time to make control flow a first-class consideration. [Read more Âť](/ramblings/queues_control_flow.html)\n\n[Event-driven = Loosely coupled? Not so fast!](/ramblings/eventdriven_coupling.html) June 20, 2024 [integration](/ramblings_integration.html) [cloud](/ramblings_cloud.html) [events](/ramblings_events.html)\n\nEvent-driven architectures (EDAs) are frequently pitched as loosely coupled, when\n compared to other forms of integration. Coupling is a multi-faceted and nuanced property,\n so as architects we should have a closer look. [Read more Âť](/ramblings/eventdriven_coupling.html)\n\n[The Many Facets of Coupling](/ramblings/coupling_facets.html) June 10, 2024 [integration](/ramblings_integration.html) [cloud](/ramblings_cloud.html) [events](/ramblings_events.html)\n\nCoupling is integration's magic word. Despite entire books being written on the subject,\n it's still widely recited as a \"loose coupling is good\" mantra. Coupling deserves\n better, so let's clarify the dimensions and nuances of coupling. [Read more Âť](/ramblings/coupling_facets.html)\n\n[Serverless Loan Broker @ GCP](/ramblings/loanbroker_gcp_workflows.html) May 20, 2022 [integration](/ramblings_integration.html) [cloud](/ramblings_cloud.html)\n\nDo serverless solutions lock you in? Let's find out by porting / rebuilding the Serverless\n Loan Broker on top of Google's Cloud Platform (GCP). [Read more Âť](/ramblings/loanbroker_gcp_workflows.html)\n\n[Serverless Loan Broker @ AWS, Part 5: Integration Patterns with CDK](/ramblings/loanbroker_cdk.html) Jan 25, 2022 [integration](/ramblings_integration.html) [cloud](/ramblings_cloud.html)\n\nInfrastructure as Code (IaC) brings repeatability into the provisioning and deployment\n of cloud applications. However, the vocabulary used by most automation tools describes\n cloud platform resources as compared to the application's intent. As serverless applications\n take us further away from the infrastructure, we should also find better abstractions\n to express our automation. Perhaps, Enterprise Integration Patterns give us a head\n start? [Read more Âť](/ramblings/loanbroker_cdk.html)\n\n[Serverless Loan Broker @ AWS, Part 4: Automation](/ramblings/loanbroker_automation.html) November 30, 2021 [integration](/ramblings_integration.html) [cloud](/ramblings_cloud.html)\n\nInfrastructure as Code (IaC) has a whole new meaning for serverless applications.\n Rather than provision resources (the serverless frameworks do that for us), automation\n determines the system composition and configuration. As expected, quite a few options\n are available from simple command line to programming frameworks. Time to have a look. [Read more Âť](/ramblings/loanbroker_automation.html)\n\n[Serverless Loan Broker @AWS, Part 3: Publish-Subscribe with SNS](/ramblings/loanbroker_stepfunctions_pubsub.html) July 20, 2021 [integration](/ramblings_integration.html) [cloud](/ramblings_cloud.html)\n\nPart 3 of the mini-series on implementing the EIP Loan Broker as a serverless solution\n with AWS Step Functions uses a Publish-Subscribe Channel and a stand-alone Aggregator\n to request and process loan quotes. [Read more Âť](/ramblings/loanbroker_stepfunctions_pubsub.html)\n\n[Loan Broker @AWS, Part 2: Recipient List](/ramblings/loanbroker_stepfunctions_recipient_list.html) July 20, 2021 [integration](/ramblings_integration.html) [cloud](/ramblings_cloud.html)\n\nIn part 2 of this blog series I implement the Loan Broker Example using a Recipient\n List pattern, implemented in DynamoDB, Step Functions, and Lambda. [Read more Âť](/ramblings/loanbroker_stepfunctions_recipient_list.html)\n\n[Loan Broker Implementation with AWS Step Functions](/ramblings/loanbroker_stepfunctions.html) July 20, 2021 [integration](/ramblings_integration.html) [cloud](/ramblings_cloud.html)\n\nA lot has happened since we implemented the Loan Broker Example in EIP: we have the\n cloud, serverless computing, machine learning, service meshes and all sorts of other\n bells and whistles. Nevertheless, the integration patterns have passed the test of\n time as we shall see by implementing the original loan broker example with AWS Lambda\n and AWS Step Functions. [Read more Âť](/ramblings/loanbroker_stepfunctions.html)\n\n[Serverless Integration Patterns on Google Cloud Functions](/ramblings/google_cloud_functions.html) April 20, 2017 [messaging](/ramblings_messaging.html) [cloud](/ramblings_cloud.html)\n\nAfter examining which patterns are embedded in Google Cloud Pub/Sub in an earlier\n post, I implemented a few common patterns on top of Google Cloud Functions, Google's\n serverless implementation. It's amazing how easy it has become to get messaging patterns\n running in the cloud with only a minimum of wrapper code. [Read more Âť](/ramblings/google_cloud_functions.html)\n\n[Modern Examples for Enterprise Integration Patterns](/ramblings/eip1_examples_updated.html) February 5, 2017 [patterns](/ramblings_patterns.html)\n\nEnterprise Integration Patterns are timeless. That's why our book keeps selling well\n 20 years after its publication in 2003. However, the code examples haven't aged quite\n as well. I therefore updated several code examples to use modern tech like GoLang,\n Kafka, RabbitMQ, AWS, Azure Cloud Functions, and Google Cloud Pub/Sub. [Read more Âť](/ramblings/eip1_examples_updated.html)\n\n[37 Things or \"Where have all my ramblings gone?\"](/ramblings/94_37things.html) July 5, 2016 [writing](/ramblings_writing.html)\n\nAbout two years ago, I revived the ramblings from a four-year hibernation. Upon resurrection,\n the ramblings started to take a broader scope, including not only messaging, conversations,\n and patterns, but also communication and IT architecture topics. The new topics were\n a natural reflection of my new role as Chief Architect in a massive IT transformation\n and after a little while I decided that they deserve their own channel, so I wrote\n a book about it. [Read more Âť](/ramblings/94_37things.html)\n\n[25 Years of OOP](/ramblings/93_oop2016.html) February 5, 2016 [events](/ramblings_events.html)\n\nOOP is one of the conferences that originated in the \"OO\" era of the early to mid-nineties.\n While most of these events have shed the double \"O\" -- OOPSLA has become SPLASH and\n JAOO has become GOTO, OOP stayed true to its name and remains one of the premier German\n developer conferences. This year OOP celebrated its 25th anniversary. Here are my\n impressions. [Read more Âť](/ramblings/93_oop2016.html)\n\n[How to Scale an Organization? The same way you scale a system!](/ramblings/92_scaling.html) January 12, 2016 [architecture](/ramblings_architecture.html)\n\nThe digital world is all about scalability: millions of web sites, billions of hits\n per month, more data, more tweets, more images uploaded. To make this work, architects\n have learned a ton about scaling systems. With everything around us scaling to never-before-seen\n throughput, the limiting element in all this is bound to be us, the human users. And\n the organizations we work in. One may wonder, then, why scaling and optimizing throughput\n in organizations is considered a very different field usually completely ignored by\n the IT architects. I feel that many of the scalability and performance enhancement\n approaches experienced IT architects know can be just as well used to scale organizations.\n If a coffee shop can teach us about maximizing a system’s throughput, maybe our knowledge\n of IT systems design can help improve the performance of organizations! [Read more Âť](/ramblings/92_scaling.html)\n\n[The Architect’s Penthouse Bookshelf](/ramblings/91_bookshelfpenthouse.html) Dec 28, 2015 [architecture](/ramblings_architecture.html)\n\nWhen you hitchhike through the galaxy, a towel will generally do. To ride the you\n need to be a bit better equipped. Riding the elevator up and down is exciting and\n provides tremendous value to the organization. But it is also demanding as you need\n to adjust to different audiences, backgrounds and dynamics, becoming a technology\n shapeshifter of sorts. To help with this transformation, I recommended a few books\n for each major section of the corporate high-rise. [Read more Âť](/ramblings/91_bookshelfpenthouse.html)\n\n[If software eats the world, you better use version control!](/ramblings/90_softwareeatstheworld.html) Dec 6, 2015 [architecture](/ramblings_architecture.html)\n\nAs I recently observed, Corporate IT tends to be afraid of code: code is where all\n the pesky bugs come from, which have to be fixed by quirky, expensive, and unreliable\n developers or external consultants. This attitude plays to the favor of vendors who\n peddle products that \"only\" require configuration, as opposed to coding. Sadly, most\n configuration is really just programming in a poorly designed, rather constrained\n language without decent tooling or useful documentation. Being afraid of code and\n being unfamiliar with the modern development lifecycle is a dangerous proposition\n in a world where everything is becoming software-defined. [Read more Âť](/ramblings/90_softwareeatstheworld.html)\n\n[If you never kill anything, you will live among zombies. And they will eat your brain.](/ramblings/89_zombies.html) Sept 27, 2015 [architecture](/ramblings_architecture.html)\n\nCorporate IT lives among zombies: old systems that are half alive and have everyone\n in fear of going anywhere near them. They are also tough to kill completely. Worse\n yet, they eat IT staff's brains. It's like Shaun of the Dead minus the funny parts. [Read more Âť](/ramblings/89_zombies.html)\n\n[Movie Star Architects](/ramblings/88_moviestararchitects.html) Aug 1, 2015 [architecture](/ramblings_architecture.html)\n\nI recently wrote about architects and the role they play in large organizations. Still,\n the question often remains what an architect should be doing besides \"riding the elevator\".\n Let's try another analogy: movie characters. [Read more Âť](/ramblings/88_moviestararchitects.html)\n\n[Virtualization Matryoshka](/ramblings/87_matryoshka.html) July 15, 2015 [architecture](/ramblings_architecture.html) [cloud](/ramblings_cloud.html)\n\nIT loves virtualizing stuff, following the old rule that in computer science every\n problem can be solved by just one more level of indirection. Cloud computing is based\n on virtualization of compute resources - you don't need to know which machine your\n application is actually running on and you can get new ones with the click of a button.\n Before cloud was a buzzword, though, VMware and others have virtualized machines at\n the operating system levels. Recently (in terms of buzz, not technology), containers\n bring another level of light-weight virtualization of resources. And let's not forget\n the Java Virtual Machine, which also claims a level of virtualization. What are we\n supposed to do with all these levels of virtualization? [Read more Âť](/ramblings/87_matryoshka.html)\n\n[Is This Architecture? Look for Decisions!](/ramblings/86_isthisarchitecture.html) June 15, 2015 [architecture](/ramblings_architecture.html)\n\nPart of my job is to review system architectures. So I frequently ask teams to show\n me \"their architecture\", but almost as frequently I don't consider what I receive\n an architecture document. The inevitable question \"what do you expect?\" is also not\n so easy for me to answer: despite many formal definitions it's not immediately clear\n what architecture is or whether a document really depicts an architecture. One important\n test I apply is whether the document or the description contains any non-trivial decisions\n and the rationale behind them. [Read more Âť](/ramblings/86_isthisarchitecture.html)\n\n[Same Old Architecture - Best of Ramblings](/ramblings/85_sameoldarchitecture.html) May 15, 2015 [integration](/ramblings_integration.html) [writing](/ramblings_writing.html)\n\nArchitects can often be found commenting or complaining that many things in IT are\n the same old stuff in new packaging, created by marketing departments who were in\n need of a new buzzword. For example, aren't microservices really just SOA done right\n while SOA itself stands for \"Same Old Architecture\"? And the whole reactive movement\n seems to have re-discovered callbacks. Maybe there is some truth in this as at the\n recent SATURN conferences I found myself saying more often than I had expected \"I\n blogged about this\". So let's see which of my past ramblings are still relevant these\n days. [Read more Âť](/ramblings/85_sameoldarchitecture.html)\n\n[SATURN Conference 2015](/ramblings/84_saturn.html) May 1, 2015 [events](/ramblings_events.html) [architecture](/ramblings_architecture.html)\n\nI have not blogged about events in a while, but SATURN 2015 has been an amazing event\n that's well worth rambling about. [Read more Âť](/ramblings/84_saturn.html)\n\n[Free Gift with Subscription (Pattern)](/ramblings/83_subscribing.html) APR 26, 2015 [conversations](/ramblings_conversations.html) [integration](/ramblings_integration.html)\n\nDiscussing the Google cloud Pub/Sub system in the last rambling reminded me that the\n Publish-subscribe Channel pattern makes for a good example of the subtle but important\n difference between Messaging Patterns and Conversation Patterns. This comparison is\n timely as I picked up documenting Conversation Patterns again. [Read more Âť](/ramblings/83_subscribing.html)\n\n[Google Cloud Pub/Sub](/ramblings/82_googlepubsub.html) APR 8, 2015 [messaging](/ramblings_messaging.html) [integration](/ramblings_integration.html) [cloud](/ramblings_cloud.html)\n\nGoogle released the beta version of their publish-subscribe API just a few weeks ago.\n I show how to build a very simple demo app using the Java API and map the functionality\n to integration patterns to illustrate the design choices the team made. [Read more Âť](/ramblings/82_googlepubsub.html)\n\n[RESTful Conversations](/ramblings/81_restconversation.html) MAR 15, 2015 [conversations](/ramblings_conversations.html) [webservices](/ramblings_webServices.html) [integration](/ramblings_integration.html)\n\nAs indicated a good while ago I spent some time thinking about patterns that instead\n of following a message through multiple systems, looks at the message exchange over\n time between a (mostly) fixed set of systems. I call these message exchanges \"conversations\".\n Sadly my writing efforts on Conversation Patterns fell very much asleep around 2008,\n partly due to my fear that with the rise of REST, stateful conversations between systems\n would step into the background as most integration problems are now solved with a\n simple POST or GET. A presentation and conversation at Frank Leymann's IaaS PhD Seminar\n enlightened me that this is not at all true: systems following the REST architectural\n style very much engage in conversations. [Read more Âť](/ramblings/81_restconversation.html)\n\n[Sync or Swim](/ramblings/80_syncorswim.html) FEB 15, 2015 [patterns](/ramblings_patterns.html) [messaging](/ramblings_messaging.html) [modeling](/ramblings_modeling.html)\n\nWe were tempted multiple times to extend the EIP icon language, but always felt that\n simplicity should win over precision. However, seeing the visual vocabulary that my\n former Google colleague Ivan Gevirtz created, I am convinced that combining the two\n is useful. [Read more Âť](/ramblings/80_syncorswim.html)\n\n[The Architect Elevator](/ramblings/79_elevator.html) JAN 15, 2015 [architecture](/ramblings_architecture.html)\n\nArchitects frequently play a critical role as connecting and communicating element\n between multiple parties. Especially in large organizations such communication is\n an important factor: too many parties speak different languages to convey different,\n and often conflicting, objectives. Many layers of management only exacerbate the problem\n as communicating to corporate leadership resembles the \"telephone game\" where a circle\n of kids relays a message one-by-one just to realize at the end that the message has\n completely changed along the way. [Read more Âť](/ramblings/79_elevator.html)\n\n[The 3 Legs of an Architect](/ramblings/78_threelegs.html) DEC 28, 2014 [architecture](/ramblings_architecture.html)\n\nDefining what a software or IT architect is or does is no less challenging than defining\n software architecture itself. The SEI maintains a list of software architecture definitions,\n yet I have not seen a corresponding list for software architects. One could try to\n skirt the issue by declaring that software architects are the people who make software\n architecture. However, I think that this approach would be missing some important\n aspects of being an architect. [Read more Âť](/ramblings/78_threelegs.html)\n\n[Writing for Busy People](/ramblings/77_writing.html) SEP 21, 2014 [writing](/ramblings_writing.html)\n\nOne advantage of working for a relatively large organization is that I get to do a\n little more writing again. Not because I have spare time, but because in times of\n rapid change, communication across a large audience is critically important. It turns\n out, short papers are a good way to achieve that and my brief, but accurate technical\n position / decision papers have become a trademark of my architecture group (don't\n worry, we architects produce more than just paper).\n Correspondingly, one of my daily struggles is to convince others to write as well\n and to coach them to become better writers. In a sense, this forces me to transport\n what I know about writing from purely procedural knowledge, i.e. I know how to do\n it, to declarative knowledge, i.e. being able to understand why it is done and to\n describe to others how to do it.\n While this rambling's title is a pun on the popular books \"Japanese for busy People\",\n it intentionally implies an ambiguity that we are both writing for a busy audience,\n but are busy authors as well. [Read more Âť](/ramblings/77_writing.html)\n\n[Explaining Stuff](/ramblings/76_explaining.html) AUG 30, 2014 [writing](/ramblings_writing.html)\n\nAt a recent presentation, Martin Fowler introduced himself as a guy \"who is good at\n explaining things\". While this certainly has a touch of British Understatement™, it\n also highlights a critically important but rare skill in IT. As technology invades\n all parts of personal and professional lives, causing companies to absolutely depend\n on software and systems, decision makers often can no longer keep track of technical\n details. Because architects live at the intersection of technology and business, it\n is their responsibility to explain complex topics and highlight the ramifications\n of technical decisions. [Read more Âť](/ramblings/76_explaining.html)\n\n[DDD - Diagram Driven Design](/ramblings/75_ddd.html) MAR 22, 2010 [design](/ramblings_design.html) [modeling](/ramblings_modeling.html) [writing](/ramblings_writing.html)\n\nDrawing a picture turns out to be a useful system design technique. [Read more Âť](/ramblings/75_ddd.html)\n\n[What Does It Mean to Use Messaging?](/ramblings/74_messaging.html) FEB 17, 2010 [messaging](/ramblings_messaging.html)\n\nI was recently asked to help a team decide whether they should use messaging. Of course,\n I have not forgotten what I learned during many years in consulting: the consultant\n always answers \"it depends.\" A good consultant can tell you what the answer depends\n on. And a truly great consultant can convince you that you are asking the wrong question\n in the first place. [Read more Âť](/ramblings/74_messaging.html)\n\n[A Chapter a Day...](/ramblings/73_writing.html) FEB 1, 2010 [writing](/ramblings_writing.html)\n\nMy New Year's resolution was to write more, so here my thoughts on how to actually\n make that happen. In a sense it's a plan for myself to be more productive, but hopefully\n the ideas also work for other folks. Ironically, my work on EIP II has been stalled\n for a good while, so you're getting advice on how to be a prolific writer from someone\n who has not written much in 2 years. Read on at your own risk. [Read more Âť](/ramblings/73_writing.html)\n\n[EIP Visions](/ramblings/72_eipvolumes.html) JAN 22, 2010 [writing](/ramblings_writing.html) [conversations](/ramblings_conversations.html)\n\nThe beginning of a New Year is the time to reflect on the past and make resolutions\n for the future. It's become my tradition to kick off the year with some reflection\n on EIP, so here we go. [Read more Âť](/ramblings/72_eipvolumes.html)\n\n[Clouds and Integration Patterns at JavaOne](/ramblings/71_javaone.html) OCT 1, 2009 [events](/ramblings_events.html) [cloud](/ramblings_cloud.html)\n\nI joined JavaOne this year as a panelist on Cloud Computing. Here my belated impressions\n on this year's JavaOne. [Read more Âť](/ramblings/71_javaone.html)\n\n[My First Google Wave Robot](/ramblings/70_wave.html) August 1, 2009\n\nBy now everyone must have heard about Google Wave, the communication and collaboration\n platform announced at Google I/O. Google just announced that they are ramping up towards\n 20,000 developers on the current sandbox and will extend to 100,000 users by end of\n September. This will give many more people to opportunity to experiment with Wave.\n [Read more Âť](/ramblings/70_wave.html)\n\n[Google I/O](/ramblings/69_googleio.html) June 5, 2009 [events](/ramblings_events.html)\n\nI guess I am the last person to blog about Google I/O. By now, everyone should have\n read about Wave and the free Android phone (with 30 day SIM!). I am just now getting\n to write this up on my flight back to Japan, so I’ll give you my personal impressions\n and viewpoints, if you are still interested. [Read more Âť](/ramblings/69_googleio.html)\n\n[Into the Clouds on New Acid](/ramblings/68_acid.html) Mar 20, 2009 [design](/ramblings_design.html)\n\nI have been speaking more frequently about cloud computing in recent days. As SOA\n is becoming a daily reality, I needed to advance to new, still slightly nebulous topic.\n What could be a better fit than cloud computing? All jokes aside, cloud computing\n provides for some interesting discussions and one should safely assume that Google\n has a word or two to say about it. [Read more Âť](/ramblings/68_acid.html)\n\n[Design Patterns: More than meets the eye](/ramblings/67_patterns.html) Jan 13, 2009 [patterns](/ramblings_patterns.html)\n\nBlogging about design patterns seems about as original as blogging about the Java\n (TM) Programming Language, except for the missing (TM). However, as I just attended\n a workshop on software service engineering, I realized once again that people from\n different fields have very different notions about the concept and usage of patterns.\n Many workshop attendees raised questions about formalizing patterns, tooling, etc.\n I touched on this subject a tiny bit in a post from long time ago, but I figured that\n the topic really deserves more attention, especially since to me a pattern is so much\n more than the \"proven solution to a recurring problem within a specific context.\"\n [Read more Âť](/ramblings/67_patterns.html)\n\n[Reflecting on Enterprise Integration Patterns](/ramblings/66_fouryears.html) January 1, 2008 [writing](/ramblings_writing.html) [gregor](/ramblings_gregor.html)\n\nThe end of the year is always the time to reflect on the past happenings. My friends\n in Japan often send a New Year's card with 12 pictures, each showing the significant\n event during the month. I am not sure something significant related to Enterprise\n Integration Patterns happened each month, but I think it's still nice to reflect a\n little bit on the history and current state of the patterns. After all, the patterns\n have matured from a draft paper to being adopted as the lingua franca for a number\n of open source messaging projects.\n [Read more Âť](/ramblings/66_fouryears.html)\n\n[Google Gears Live From Japan](/ramblings/65_gears.html) December 26, 2007 [events](/ramblings_events.html)\n\nSince Google's Developer Day, I have been promising to speak more regularly about\n Google products. This is a bit of a balancing act for me, as I want to avoid the slippery\n slope of becoming a corporate sock puppet. I also don't want to neglect my interest\n in connected systems, SOA, and asynchronous messaging. With the Internet turning into\n the largest connected system, the gap between Web-based technologies and connected\n systems design has become significantly smaller, allowing me to combine interests\n and Google developer products more naturally. Of course, the fact that Google is rolling\n out new developer products and APIs around the clock, does not hurt either. [Read more Âť](/ramblings/65_gears.html)\n\n[Double-Dipping: OOPSLA and Colorado Software Summit](/ramblings/64_oopslacss.html) October 27, 2007 [events](/ramblings_events.html) [conversations](/ramblings_conversations.html)\n\nI am just returning from a trip to Montreal and Keystone, CO for the OOPSLA and Colorado\n Software Summit conferences. I spoke on SOA Patterns, workshopped my conversation\n pattern paper, and gave six talks on event-driven architectures and building mashups\n using Yahoo! Pipes and Google Mashup Editor. Phew! [Read more Âť](/ramblings/64_oopslacss.html)\n\n[Bubble 2.0](/ramblings/63_bubble20.html) October 15, 2007 [events](/ramblings_events.html)\n\nWhat’s wrong with this picture? I crash a stylish party at a pricey venue (SF Moma).\n I have no business being there, nor do I have the required invitation. I nonchalantly\n talk my way in, and hit the crowd with two fellow geeks. Within a few seconds an attractive\n blonde with a low cut dress approaches us and engages us in a conversation. We grab\n a few free drinks, indulge on the tirelessly circulating horse d’oeuvres, and talk\n to the blonde. [Read more Âť](/ramblings/63_bubble20.html)\n\n[Enterprise Mashup Summit](/ramblings/62_mashupsummit.html) October 1, 2007 [events](/ramblings_events.html)\n\nI attended the Enterprise Mashup Summit last Friday. It was a small-ish event, with\n about 50 people attending. We saw about 10 presentations, mostly by vendors plus an\n open forum. None of the presentations were too sales-ey, which gave the event a nice\n workshop feel. Given the limited size, it would have been nice to have more time for\n interaction. Here is a quick rundown of my impressions. [Read more Âť](/ramblings/62_mashupsummit.html)\n\n[Facebook Developer Garage](/ramblings/61_facebookgarage.html) September 25, 2007 [events](/ramblings_events.html)\n\nThe Internet is cruel. So you finally made the leap from EAI stone age to become a\n hip mashup developer. Now it turns out you are once again behind the curve, Unless\n you've written your won Facebook app and scored a million or so installs you are just\n a worm in the dust of the global data superhighway. Join the club. [Read more Âť](/ramblings/61_facebookgarage.html)\n\n[Mashups Tools Market](/ramblings/60_mashupmarket.html) August 18, 2007 [integration](/ramblings_integration.html)\n\nAs I reported from Mashup Camp, an increasing number of vendors play in the mashup\n space. I am obviously not the only one who noticed. Dion Hincliffe recently discussed\n 17 different mashup tools. Maybe I have an MBA hidden inside me (or 10 years of consulting\n left some marks), but I was temped to conduct my own market segmentation. Gartner\n would be proud of me. Just be aware that my analysis is not meant to be comprehensive\n and all statements carry a 0.5 probability of being right :-) [Read more Âť](/ramblings/60_mashupmarket.html)\n\n[Mashups == EAI 2.0?](/ramblings/59_mashupeai.html) July 27, 2007 [integration](/ramblings_integration.html)\n\nMashups pull data from different sources, aggregate and transform the data to be used\n in different contexts. EAI solutions pull data from different sources, aggregate and\n transform the data to be used in different contexts. Huh? [Read more Âť](/ramblings/59_mashupeai.html)\n\n[Mashup Camp](/ramblings/58_mashupcamp.html) July 18, 2007 [events](/ramblings_events.html)\n\nI attended the first day of Mashup Camp today. The event took place at the Computer\n History Museum, which is actually walking distance from my office. Ironically, the\n only day in the year when something actually happens within walking distance in Silicon\n Valley it had to rain. Oh well. [Read more Âť](/ramblings/58_mashupcamp.html)\n\n[I Want My Events](/ramblings/57_pipes.html) July 15, 2007 [writing](/ramblings_writing.html) [integration](/ramblings_integration.html)\n\nLast time I claimed that users like events. This time I want to show how I fulfilled\n my personal desire for events off the Web. I built two solutions to alert me to new\n book reviews on Amazon, one using a Python script, the other using Yahoo! Pipes. [Read more Âť](/ramblings/57_pipes.html)\n\n[Users Like Events](/ramblings/56_events.html) July 12, 2007 [events](/ramblings_events.html) [messaging](/ramblings_messaging.html)\n\nTwo weeks ago I presented a keynote at the DEBS (Distributed Event-based Systems)\n conference. The emphasis of the conference was on academic work in the field but event-based\n systems are rapidly gaining traction in commercial applications as CEP (Complex Event\n Processing) is becoming a household name like SOA (equally difficult to pin down).\n All this talk about events reminded me that applications on the Web are becoming increasingly\n event driven. [Read more Âť](/ramblings/56_events.html)\n\n[API's are for Humans, too](/ramblings/55_api.html) June 19, 2007 [design](/ramblings_design.html)\n\nWhen graphical user interfaces became popular thrifty people had the idea that they\n could generate them automatically. Well, that bubble burst pretty quickly. When people\n say nothing is new with Web services, they are right in this case. Once again people\n want to generate the interface automatically. [Read more Âť](/ramblings/55_api.html)\n\n[Google Developer Day](/ramblings/54_gdd.html) May 31, 2007 [events](/ramblings_events.html)\n\nLast week Google held a developer day in 10 cities around the world. Here are my take-aways. [Read more Âť](/ramblings/54_gdd.html)\n\n[Eric Newcomer is on to me](/ramblings/53_eric.html) May 26, 2007 [design](/ramblings_design.html)\n\nYou can only get away with joking about transactions for so long before the gods of\n transactions bring you to justice. So is was only a matter of time before Eric Newcomer\n would catch me waxing about coffee and transactional integrity... [Read more Âť](/ramblings/53_eric.html)\n\n[My Loss, Your Gain - SOA Patterns Article](/ramblings/52_soapatterns.html) May 21, 2007 [writing](/ramblings_writing.html) [webservices](/ramblings_webServices.html)\n\nBeginning of this year I submitted an article to a renowned software publication who\n is running a special issue on software patterns. Sadly, my article did not make it\n into the magazine but I decided to publish an expanded version on my site. Hey, I\n got to make it worth your time following my ramblings! Am I bitter that my article\n was rejected? Not at all, but if I ever get a hold of these #^%#$& -bleep- of a -bleep-\n I'll... [Read more Âť](/ramblings/52_soapatterns.html)\n\n[JavaOne 2007](/ramblings/51_javaone.html) May 11, 2007 [events](/ramblings_events.html)\n\nJavaOne is one of the few geek conferences that take place in San Francisco. The content\n can be hit or miss but the proximity and the good parties always make it worth stopping\n by. I also had to fulfil my duty to recruit the last smart software engineer in the\n Bay Area to Google. [Read more Âť](/ramblings/51_javaone.html)\n\n[I May Be a Flake, But At Least I Am Published!](/ramblings/50_publications.html) May 2, 2007 [gregor](/ramblings_gregor.html) [writing](/ramblings_writing.html)\n\nI have been pretty quiet recently, but I finally have some results to show. The current\n issue of IEEE Internet Computing (May/June 2007) contains my guest column for \"Toward\n Integration\". Also, I authored one chapter in the upcoming book \"SOA Expertenwissen\"\n (in German).\n [Read more Âť](/ramblings/50_publications.html)\n\n[Microsoft MVP Summit](/ramblings/49_mvpsummit.html) March 25, 2007 [events](/ramblings_events.html)\n\nEven though I have been working for the (self-declared) non-evil empire for a while\n now, I still have a lot of ties to the Microsoft community, even beyond drinking Weissbier\n with Christian Weyer. I am particularly proud that I have been able to maintain my\n MVP status, Microsoft's Most Valuable Professional award. Here my (brief) report from\n the MVP Summit in Seattle & Redmond.\n [Read more Âť](/ramblings/49_mvpsummit.html)\n\n[Validating Dynamic Systems](/ramblings/48_validation.html) Feb 1, 2007 [visualization](/ramblings_visualization.html) [modeling](/ramblings_modeling.html)\n\nErik Doernenburg and I have been presenting our talk on Software Validation a few\n times now and have received very positive feedback. In the talk we mention that beyond\n visualization you can use similar techniques to perform checks and validations against\n a system. However, none of our demos actually included an example. So I went out to\n correct that and added validations to my messaging visualizer. [Read more Âť](/ramblings/48_validation.html)\n\n[JAOO 2006](/ramblings/47_jaoo.html) Oct 6, 2006 [events](/ramblings_events.html) [modeling](/ramblings_modeling.html)\n\nI am just riding the train back from Aarhus (the second largest city in Denmark in\n case your geography skills are as weak as mine were before my first trip here) to\n Copenhagen. Many speakers consistently rave about JAOO. The speaker roster, the logistics,\n the attendees - everything just seems to be very high quality and run very smoothly.\n This year I was nominated to be track host for the SOA track entitled \"SOA - What's\n Left to Say?\" [Read more Âť](/ramblings/47_jaoo.html)\n\n[fooCamp](/ramblings/46_foo.html) Aug 28, 2006 [events](/ramblings_events.html)\n\nThis year I got to go to fooCamp! What is fooCamp? It is sort of like Burning Man\n for techno geeks. But just as Burning Man has gone pretty high tech fooCampers started\n to have more fun by burning things. It's difficult to put the experience into words... [Read more Âť](/ramblings/46_foo.html)\n\n[Web 2.0 Patterns](/ramblings/45_web20.html) Aug 24, 2006 [patterns](/ramblings_patterns.html)\n\nI confess. I am a groupie. When Tim O'Reilly invited me to be part of a workshop\n on Web 2.0 patterns I was quite excited. First, because I was going to meet the exalted\n one in person. Second, because I would have a chance to learn a lot about Web 2.0\n as I am pretty much starting from zero. [Read more Âť](/ramblings/45_web20.html)\n\n[Dagstuhl Seminar](/ramblings/44_dagstuhl.html) Aug 20, 2006 [events](/ramblings_events.html) [webservices](/ramblings_webServices.html) [conversations](/ramblings_conversations.html)\n\nI just returned from a trip to Germany to attend a workshop on The Role of Business\n Processes in Service Oriented Architecture. Besides a guaranteed top score in buzzword\n bingo the workshop provided a unique opportunity to connect thought leaders from academia\n and industry over the course of a week. The attendee roster sported the usual industry\n heavyweights, i.e., Microsoft, IBM, SAP, making me proud to add Google to the list.\n [Read more Âť](/ramblings/44_dagstuhl.html)\n\n[Integration Patterns in the Wild](/ramblings/43_wildpatterns.html) July 20, 2006 [writing](/ramblings_writing.html) [patterns](/ramblings_patterns.html) [integration](/ramblings_integration.html)\n\nHanging out with my intellectual drinking buddies reminded me that our integration\n patterns have been embraced by a fair number of commercial as well as open source\n projects. In my eyes this is really the best indicator of success for a pattern language.\n Latin, a dead language used mostly by doctors to sound more knowledgeable, is not\n a good model for a pattern language. You want a language that is alive and actually\n used by people. Talking to a few folks who did embrace our language motivated me to\n take a quick survey of the places where our patterns pop up. [Read more Âť](/ramblings/43_wildpatterns.html)\n\n[EAI DSLs](/ramblings/42_eaidsl.html) May 23, 2006 [design](/ramblings_design.html) [modeling](/ramblings_modeling.html)\n\nI am so clever. In my very first professional project in the US over 10 years ago\n I used a DSL to solve an EAI problem. If those buzzwords had been around at the time\n I would have been pretty cool, too. I guess you can’t have everything. [Read more Âť](/ramblings/42_eaidsl.html)\n\n[The Metrics Maid](/ramblings/41_metrics.html) April 28, 2006 [design](/ramblings_design.html)\n\nSome of the most hated people in San Francisco must be the meter maids, the DPT people\n who drive around in golf carts and hand out tickets to anyone who overslept street\n cleaning or did not have enough quarters for the meter. On some projects, the most\n hated people are the metric maids, the people who go around and try to sum up a developer’s\n hard work and intellectual genius in a number between 1 and 10. [Read more Âť](/ramblings/41_metrics.html)\n\n[March is Not a Number](/ramblings/40_marchnan.html) April 16, 2006 [design](/ramblings_design.html)\n\nA lot of discussion these days relates to DSL's (Domain Specific Languages) that allow\n business models and rules to expressed in a more readable fashion in the source code.\n Ultimately one might be able to share the executable source of the system with the\n business users to validate that this is what they wanted. While Java is not necessarily\n the greatest language to \"host\" a DSL we can go a lot further than developers generally\n believe or care for. [Read more Âť](/ramblings/40_marchnan.html)\n\n[What is in a Name?](/ramblings/39_namingchannels.html) Mar 5, 2006 [design](/ramblings_design.html) [messaging](/ramblings_messaging.html)\n\nComputer science is known as the field where every problem can be solved by just one\n more level of indirection. Well, a message channel berween two components is such\n a level of indirection. As it turns out naming this additional element can have a\n more profound influence on the system design than might appear at first. [Read more Âť](/ramblings/39_namingchannels.html)\n\n[Of Boxes and Lines](/ramblings/38_interaction.html) Feb 25, 2006 [design](/ramblings_design.html)\n\nAfter joining the big G I put particular emphasis on staying in touch with the .Net\n community. For one thing, a fair number of my intellectual drinking buddies tend to\n congregate around the large software company in the Pacific Northwest. Second, as\n a believer in cross-platform integration, technology-neutral design patterns and peace\n on earth I want to make sure I switch the koolaid flavor every so often. One opportunity\n to do that presented itself at OOP in Munich where Ralf Westphal invited me to speak\n on distributed system architectures as part of the .Net track. During the proverbial\n hallway discussions we started talking about boxes and lines, but in a profound way...\n [Read more Âť](/ramblings/38_interaction.html)\n\n[Revenge of the Nerds - OOPSLA 2005](/ramblings/37_oopsla.html) October 23, 2005 [events](/ramblings_events.html)\n\nRemember the people from high school who had strange hobbies and could never get a\n date? Well, they all grew up and they are running a conference now, the Object-Oriented\n Programming, Systems, Languages, and Applications conference, OOPSLA in short. While\n the conference logistics can be quirky at times, the content is top notch. And it\n seems like most of them have managed to get a date after all. [Read more Âť](/ramblings/37_oopsla.html)\n\n[Ramblings Now In Audio](/ramblings/36_podcast.html) October 12, 2005 [gregor](/ramblings_gregor.html)\n\nTwo years ago you were not cool if you did not have a blog. Today you are not cool\n if you have not done a podcast. Of course I cannot allow myself to fall behind, so\n here is my podcast on layered applications: [Read more Âť](/ramblings/36_podcast.html)\n\n[Googlesoft](/ramblings/35_pdc.html) September 18 2005 [events](/ramblings_events.html)\n\n(Professional) life can be a little ironic sometimes. Now that I work for Google I\n was able to go to Microsoft's Professional Developer Conference aka PDC for the first\n time. It was actually very nice to be able to stay in touch with the \"other side\". [Read more Âť](/ramblings/35_pdc.html)\n\n[What Color Are My Shoes?](/ramblings/34_cb.html) September 1, 2005 [events](/ramblings_events.html) [design](/ramblings_design.html) [visualization](/ramblings_visualization.html)\n\nTwo weeks ago I attended a very small, but special conference on enterprise software\n development. Here is what I came away with.. [Read more Âť](/ramblings/34_cb.html)\n\n[Interface User](/ramblings/33_interface.html) August 5, 2005 [design](/ramblings_design.html)\n\nOne of the biggest perceived fears of authors is that someone publishes a book or\n an article on the same topic just ever so slightly ahead of you that you have done\n all the work but look like a copy cat if you still publish your work. In reality this\n actually does not happen very often (at least not for books) as each author has his\n or her unique style and view even on the same topic. This time, though, Ken Arnold\n stole a little bit of my show by publishing an excellent article in called \"Programmers\n are People, too\". [Read more Âť](/ramblings/33_interface.html)\n\n[New Packaging, Same Good Content](/ramblings/32_google.html) August 1, 2005 [gregor](/ramblings_gregor.html)\n\nAs many people have already heard, I changed employers. Before the rumor mill completes\n its work entirely, here a few comments from my end. [Read more Âť](/ramblings/32_google.html)\n\n[TechEd 2005 Europe: Event-Driven Architectures](/ramblings/31_techededa.html) July 11, 2005 [events](/ramblings_events.html)\n\nI just returned from Microsoft TechEd Europe in Amsterdam. I was lucky enough to present\n on event-driven architectures in front of almost 600 people. Since multiple people\n asked me for the source files, I figured I'd post a quick summary of the talk, including\n the source files. [Read more Âť](/ramblings/31_techededa.html)\n\n[Configure This!](/ramblings/30_configure.html) July 5, 2005 [design](/ramblings_design.html)\n\nHaving been to a number of conferences and their attached expo floors recently it\n was not surprising that I was not able to escape the line \"this tool does not require\n programming, everything is done through configuration\". Hearing this tag line for\n the third or fourth time got me wondering, \"what really is the difference between\n coding and configuring?\" [Read more Âť](/ramblings/30_configure.html)\n\n[Microsoft TechEd 2005 Digest](/ramblings/29_teched.html) June 7, 2005 [events](/ramblings_events.html)\n\nThis year I actually missed putting in a proposal for TechEd. However, that has not\n kept me from actually presenting :-) So I am here fighting the Orlando Summer humidity\n together with 11000 other geeks and am actually having a good time. [Read more Âť](/ramblings/29_teched.html)\n\n[Will the Real Asynchrony Please Stand Up?](/ramblings/28_asynchrony.html) May 15, 2005 [design](/ramblings_design.html) [messaging](/ramblings_messaging.html) [conversations](/ramblings_conversations.html) [webservices](/ramblings_webServices.html) [patterns](/ramblings_patterns.html)\n\nOn a recent project we developed a Web services framework that supports asynchronous\n callbacks and asynchronous invocation with polling. The difficulties we had describing\n what we were trying to do to my fellow ThoughtWorkers on other projects prompted me\n to discuss the different forms of asynchrony in a little more detail. [Read more Âť](/ramblings/28_asynchrony.html)\n\n[Are You Driving a DeLorean or a Toyota?](/ramblings/27_latency.html) March 30, 2005 [design](/ramblings_design.html) [messaging](/ramblings_messaging.html)\n\nWhen you build a distributed system you have to choose between latency and reliability.\n Sticking your head in the sand will not help (and you get sand in your ears...). [Read more Âť](/ramblings/27_latency.html)\n\n[Can You Say \"Synchronous Asymmetry or Asynchronous Symmetry\"?](/ramblings/26_symmetry.html) March 25, 2005 [messaging](/ramblings_messaging.html) [design](/ramblings_design.html)\n\nIn my perennial battle to free distributed system developers' minds from the perils\n of the call stack mentality I came across another reason why a call stack is not appropriate\n for distributed applications: the call stack is inherently asymmetric. However, when\n building distributed applications, that asymmetry really has no place. [Read more Âť](/ramblings/26_symmetry.html)\n\n[Patterns and Practices Summit](/ramblings/25_pnpSummit.html) March 15, 2005 [events](/ramblings_events.html)\n\nIt seems like I spend all my time at conferences. I am speaking at the Patterns and\n Practices Summit and SD West this week. This one is setup by Keith Pleas in close\n collaboration with the Patterns and Practices group at Microsoft. So yes, I am still\n promiscuous when it comes to platforms. But it makes me feel better that Ted Neward\n seems to beat me in that category, though. [Read more Âť](/ramblings/25_pnpSummit.html)\n\n[TSS Symposium Redux](/ramblings/24_tss2005.html) March 14, 2005 [events](/ramblings_events.html)\n\nA number of people have already about the TSSS but that can't stop me from occupying\n my fair share of the cyberspace with my impressions. [Read more Âť](/ramblings/24_tss2005.html)\n\n[BTW Conference](/ramblings/23_btw2005.html) March 6, 2005 [events](/ramblings_events.html)\n\nOK, so I am officially the slowest blogger on the 'Net... last week I attended two\n conferences, the BTW in Karlsruhe, Germany and TheServerSide Symposium in Las Vegas.\n Too bad they are over 6000 miles apart :-( [Read more Âť](/ramblings/23_btw2005.html)\n\n[Extensibility Points](/ramblings/22_extensibility.html) February 1, 2005 [design](/ramblings_design.html)\n\nToday's rambling takes a look at the application side of application integration.\n We recently looked at a packaged application under development and looked at criteria\n and options for how this application can live in an evolutionary and connected environment. [Read more Âť](/ramblings/22_extensibility.html)\n\n[SOA's and Drunk Driving](/ramblings/21_drunkdriving.html) January 17, 2005 [design](/ramblings_design.html) [architecture](/ramblings_architecture.html)\n\nHappy New Year everybody! Over the holidays I tried to sort out some of my thoughts\n on Web services, SOA, architectural styles, coupling and all the other good stuff.\n I started to think about service-oriented architectures as an architectural style\n and how it compares to prior styles, such as distributed component architectures.\n Maybe it was the New Year's mood but I started to think that the evolution of architectural\n styles is a little bit like drunk driving... [Read more Âť](/ramblings/21_drunkdriving.html)\n\n[Enemy of the State](/ramblings/20_statelessness.html) December 19, 2004 [design](/ramblings_design.html)\n\nOne of my favorite pastimes is to argue with people whether a solution is stateless,\n whether it should be stateless and what it means to be stateless in the first place.\n Ideally, the debate would involve alcoholic beverages and the other person would pick\n up the check. After \"loosely coupled\", \"stateless\" must be a close runner-up as the\n ultimate nirvana in buzzword-compliant architectures. It is also equally hotly debated.\n Today, I 'd like to share my view on state and lessness. If you disagree you are welcome\n to argue with me, but you are buying! :-) [Read more Âť](/ramblings/20_statelessness.html)\n\n[Good Composers are Few and Far in Between](/ramblings/19_composing.html) November 30, 2004 [design](/ramblings_design.html)\n\nLoosely coupled architectures are often portrayed as the holy grail of architecture.\n But all too often these architectures turn into what Martin Fowler coined the \"Architect's\n dream but the developer's nightmare\". This time I want to share some of the challenges\n we have found working with loosely coupled architectures and how we addressed them. [Read more Âť](/ramblings/19_composing.html)\n\n[Starbucks Does Not Use Two-Phase Commit](/ramblings/18_starbucks.html) November 19, 2004 [design](/ramblings_design.html) [conversations](/ramblings_conversations.html)\n\nPeople often criticize asynchronous messaging solutions as too complicated and cumbersome.\n Or, they believe distributed solutions cannot be successful unless they include a\n distributed transaction model. There is little doubt that asynchronous solutions require\n us to think in new ways as we have to deal with concurrency, out-of-sequence issues,\n correlation and other. However, the real world is full of examples of asynchronous\n processes that deal successfully with exactly the same issues. We don't have to go\n further than the local coffee shop... [Read more Âť](/ramblings/18_starbucks.html)\n\n[ACM Middleware Conference: Pub-Sub and Related Topics](/ramblings/17_acmconference.html) October 25, 2004 [events](/ramblings_events.html)\n\nI just attended the conference in Toronto (I thought a 1/2 day tutorial in integration\n patterns). This conference is more of an academic events when compared to some of\n the purely commercial conferences like JavaOne. It was interesting to see what academia\n are working on these days in the areas of middleware and SOA. [Read more Âť](/ramblings/17_acmconference.html)\n\n[Are \"Pattern\" and \"Component\" Antonyms?](/ramblings/16_patternscomponents.html) October 15, 2004 [patterns](/ramblings_patterns.html)\n\nLast year's OOPSLA tutorial on Enterprise Integration Patterns was quite well received.\n The most frequent constructive criticism was that the whole tutorial was PowerPoint\n as opposed to running code. I took that feedback to heart and set out to develop a\n toolkit that demonstrates the routing and transformation patterns in our book. After\n a lot of deja-vu in Windows GDI programming I created a toolkit that contains each\n pattern as a small executable. The toolkit is a lot of fun and makes for great demos,\n but it also triggered a bigger question. Are patterns meant to be codified as components? [Read more Âť](/ramblings/16_patternscomponents.html)\n\n[Indigo Design Preview](/ramblings/15_indigo.html) October 8, 2004\n\nI just attended the Indigo Strategic Design Review in Redmond. This means we got to\n interact with the product team and play with some pre-beta bits. Naturally, a lot\n of details are under NDA and are likely to evolve before the beta release. So here\n some rather general impressions -- I heard Internet connectivity in jail is really\n bad :-). [Read more Âť](/ramblings/15_indigo.html)\n\n[Look Ma -- No Middleware! Using Event-Driven Architectures inside a JVM.](/ramblings/14_edainjvm.html) October 1, 2004 [design](/ramblings_design.html) [messaging](/ramblings_messaging.html)\n\nOur most recent project was to replace a batch-oriented stored procedure with a more\n flexible, maintainable and scaleable Java-based architecture. We chose an event-driven\n architectural style that processes events as they occur. For the initial roll-out\n we did not even have to distribute the solution so it all runs in single JVM (if you\n ignore clustering for the moment). Read on to learn more about the implementation\n and our experiences with intra-JVM EDA. [Read more Âť](/ramblings/14_edainjvm.html)\n\n[Dependency Injection in Messaging Architectures](/ramblings/13_ioc.html) September 3, 2004 [messaging](/ramblings_messaging.html) [design](/ramblings_design.html)\n\nThe notion of Dependency Injection or Inversion of Control has generated quite a bit\n of interest lately. To a large extend, the move towards this architectural style is\n driven by developer's dissatisfaction with strong dependencies of individual components\n on their run-time container (for example, J2EE). These dependencies make it difficult\n or impossible to test components outside of their container, throwing a major monkey\n wrench into test-driven development of these types of applications. Dependency Injection\n avoids these dependencies and therefore improves testability. On a recent project\n we developed an event-driven architecture (intra-JVM, not distributed) and found that\n we could realize many of the same benefits. [Read more Âť](/ramblings/13_ioc.html)\n\n[Web Services Jeopardy](/ramblings/12_jeopardy.html) August 18, 2004 [webservices](/ramblings_webServices.html)\n\nIt is nearly impossible to keep track of all the Web Services (WS-*) specifications\n or proposed \"standards\". The matter is only worsened by the many competing proposals.\n Should you be using WS-Eventing or WS-Notification? How about WS-Reliability vs. WS-ReliableMessaging?\n Even if you choose the \"right\" specification, it still is likely to evolve over time.\n So are these standards useful at all for Web Services development today? I contend\n that they are, albeit in a somewhat unconventional way.... [Read more Âť](/ramblings/12_jeopardy.html)\n\n[Visualizing Dependencies](/ramblings/11_dependencies.html) July 12, 2004 [design](/ramblings_design.html) [visualization](/ramblings_visualization.html)\n\nMany of you have seen my rants on doodleware and top-down modeling. At the same time,\n anyone who has seen my book must believe me when I say that I am a very visual person.\n Is Gregor going schizophrenic (or becoming a hypocrite)? Not at all! I am a big fan\n of visual representations that are harvested from an actual running system and present\n the user with an accurate, big picture view of a working system. I felt it was time\n to put some money (time) where my mouth is and try to build such a solution and see\n what actually happens... [Read more Âť](/ramblings/11_dependencies.html)\n\n[JavaOne Redux](/ramblings/10_javaone.html) July 2, 2004 [events](/ramblings_events.html)\n\nFor a change I spoke at a conference without traveling halfway around the world. At\n over 15,000 attendees, JavaOne is one of the largest developer conferences. Unfortunately,\n the signal-to-noise ratio is not always all that great, but it is still a good place\n to meet old and new friends. This year's conference was littered with talk and demos\n on SOA, ESB, Web Services, orchestration etc. Here my impressions... [Read more Âť](/ramblings/10_javaone.html)\n\n[Correlation and Conversations](/ramblings/09_correlation.html) May 21, 2004 [messaging](/ramblings_messaging.html) [patterns](/ramblings_patterns.html) [conversations](/ramblings_conversations.html)\n\nWhen using asynchronous messaging, we can no longer rely on the linear, in-sequence\n execution of events. Therefore, the notion of correlating multiple messages is fundamental\n to designing robust messaging solutions. While correlation seems to be a simple concept\n at first glance, there are quite a few interesting nuances. [Read more Âť](/ramblings/09_correlation.html)\n\n[Integration Styles](/ramblings/08_integrationstyles.html) May 5, 2004 [integration](/ramblings_integration.html)\n\nA number of integration books classify integration into styles such as database integration,\n functional integration and so on. However, on closer examination it turns out that\n there is a fair amount of confusion about what these styles really mean. Let me give\n my view. [Read more Âť](/ramblings/08_integrationstyles.html)\n\n[No Escape From Integration](/ramblings/07_noescape.html) January 5, 2004 [design](/ramblings_design.html)\n\nI had never thought about having guest appearances on my ramblings, but this e-mail\n response from my friend Hyon made me laugh hard enough that I think it would be a\n waste not to share it with the community. [Read more Âť](/ramblings/07_noescape.html)\n\n[Hysteresis of Design Decisions](/ramblings/06_hysteresis.html) December 31, 2003 [design](/ramblings_design.html)\n\nDesign decisions can be influenced by many factors. In order to make matters more\n predictable, many architects look for clear-cut borderlines. How complex does my screen\n navigation have to be in order to justify a Front Controller as opposed to a Page\n Controller? How complex does my integration problem have to be to justify use of an\n EAI suite instead of hand wiring the solution? Invariably, the answer is \"it depends\".\n Let's have a closer look at why that is so. [Read more Âť](/ramblings/06_hysteresis.html)\n\n[The Dark Side of Encapsulation?](/ramblings/05_encapsulation.html) December 12, 2003 [architecture](/ramblings_architecture.html)\n\nEncapsulation and abstraction are the holy grail of today's software development.\n One of the great successes of hiding the implementation details under a common, abstracted\n interface are TCP/IP stacks. But as so often, overwhelming success can also have a\n flip side. [Read more Âť](/ramblings/05_encapsulation.html)\n\n[What Makes a Good Integration Developer?](/ramblings/04_skills.html) November 25, 2003 [integration](/ramblings_integration.html)\n\nWhen we assess the quality of a software engineer we don't look as much how long he\n has worked with a specific language but rather whether he or she has a good grasp\n of the underlying models and techniques, such as OO design, systems architecture.\n Still most EAI job offers sound like a software catalog: \"x years TIBCO IntegrationManager\",\n \"y years Vitria Businessware\" etc. etc. Some thoughts on what we should be really\n looking for... [Read more Âť](/ramblings/04_skills.html)\n\n[Hub and Spoke [or] Zen and the Art of Message Broker Maintenance](/ramblings/03_hubandspoke.html) November 12, 2003 [integration](/ramblings_integration.html)\n\nThe Hub-and-Spoke concept manifests itself in many ways in integration solution. Like\n any popular concept, it can sometimes cause as much confusion as it provides help. [Read more Âť](/ramblings/03_hubandspoke.html)\n\n[Doodleware](/ramblings/02_doodleware.html) November 1, 2003 [design](/ramblings_design.html) [integration](/ramblings_integration.html)\n\nMany integration tools offer graphical development tools. Do they really make integration\n easier? [Read more Âť](/ramblings/02_doodleware.html)\n\n[Integration Appliances](/ramblings/01_appliances.html) October 1, 2003 [integration](/ramblings_integration.html)\n\nIntegration appliances aim to make integration cheaper faster and more reliable. Is\n this technology ready for prime time? [Read more Âť](/ramblings/01_appliances.html)\n\n---", "znaku_textu": 61692, "slov": 8124, "odkazu": 152, "kodovani": "iso-8859-2", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 15:33:53", "sha256": "84bcc8ef16869706f1403312a22996184a0d6139c99f7152022614f0ea265d3e", "hloubka": 3, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://www.infoq.com/presentations/hohpe-soa-conversations", "http://www.infoq.com/", "http://www.infoq.com/presentations/hohpe-soa-development", "http://www.drdobbs.com/an-asynchronous-world/184415001", "https://sites.google.com/site/gcodejp/slides/ProgrammingCloud_QCon.pdf", "https://architectelevator.com/blog", "https://www.twitter.com/ghohpe", "https://www.linkedin.com/today/author/ghohpe"]} {"url": "http://www.enterpriseintegrationpatterns.com/ramblings.html", "titulek": "Enterprise Integration Patterns: Gregor's Ramblings", "h1": "", "popis": "Thoughts on distributed system design collected over two decades.", "klicova_slova": "", "kanonicka": "", "jazyk": "", "robots_meta": "", "og": {"og:type": "website", "og:site_name": "Enterprise Integration Patterns", "og:title": "Blog - Enterprise Integration Patterns", "og:description": "Thoughts on distributed system design collected over two decades.", "og:url": "https://www.enterpriseintegrationpatterns.com/ramblings", "og:image": "https://www.enterpriseintegrationpatterns.com/img/eip1_patterns.png"}, "jsonld": [], "drobecky": [], "osnova": [], "markdown": "Gregor's Ramblings on Enterprise Integration\n\n---\n\n| My latest thoughts on integration architecture: |\n| --- |\n| [Queues invert control flow but require flow control](/ramblings/queues_flow_control.html) |\n| [Control Flow—The Other Half of Integration Patterns](/ramblings/queues_control_flow.html) |\n| [Event-driven = Loosely coupled? Not so fast!](/ramblings/eventdriven_coupling.html) |\n\n| [A Decade of Enterprise Integration Patterns](/articles.html)\n\r\n (IEEE Software) |\n| --- |\n| [20 Years of Patterns' Impact](/articles.html) \n\r\n (IEEE Software) |\n| [Conversations Between Loosely Coupled Services](http://www.infoq.com/presentations/hohpe-soa-conversations) \n\r\n (Video on [InfoQ](http://www.infoq.com)) |\n| [Developing in a Service-oriented World](http://www.infoq.com/presentations/hohpe-soa-development) \n\r\n (Video on [InfoQ](http://www.infoq.com)) |\n| [SOA Patterns - New Insights or Recycled Knowledge?](/docs/SoaPatterns.pdf)\n\r\n (Whitepaper) |\n| [Let's Have a Conversation](/docs/IEEE_IC_Conversations.pdf)\n(IEEE Internet Computing) |\n| [Programming Without a Call Stack - Event-driven Architectures](/docs/EDA.pdf)\n(ObjektSpektrum, 2006) |\n| [Your Coffee Shop Does Not Use Two-Phase Commit](/docs/IEEE_Software_Design_2PC.pdf)\n\r\n (IEEE Software) |\n| [Developing in a Service-Oriented World](/docs/SOA_World.pdf)\n(ThoughtWorks Whitepaper) |\n| [An Asynchronous World](http://www.drdobbs.com/an-asynchronous-world/184415001)\n\r\n (Software Development) |\n\n| [Nearfield Communication (NFC) in Japan](/docs/NfcOopHohpe.pdf)\n(OOP 2012) |\n| --- |\n| [Embedded OSS](/docs/EmbeddedOop.pdf)\n(OOP 2012) |\n| [Programming the Cloud](https://sites.google.com/site/gcodejp/slides/ProgrammingCloud_QCon.pdf)\n(QCOn Tokyo 2010) |\n| [Distributed Programming the Google Way](/docs/DistributedProgrammingGoogle.pdf)\n(Devoxx 2009) |\n| [Developing in a Service-Oriented World](/docs/hohpe_developing_in_soa_world.pdf)\n(SOACon 2007) |\n| [Programming without a Call Stack: Event-driven Architectures](/docs/hohpe_event_driven_architectures.pdf)\n(SOACon 2007) |\n| [Software Visualization and Model Extraction](/docs/TSS_software_visualization.pdf)\n(TheServerSide) |\n| [Where did all my beatiful code go?](/docs/SpringOneKeynotePub.pdf)\n(SpringOne, 2006) |\n| [Conversations Between Loosely Coupled Systems](/docs/Conversations_loosely_coupled.pdf)\n(SD West, 2006) |\n| [Enterprise Integration Patterns](/docs/jaoo_hohpeg_enterpriseintegrationpatterns.pdf)\n(JAOO, 2003) |\n\nThis blog chronicles my journey with asynchronous and distributed system design over\n two decades, covering [integration](/ramblings_integration.html), [messaging](/ramblings_messaging.html), and [conversation patterns](/ramblings_conversations.html), and [patterns](/ramblings_patterns.html).\n\nFind my posts on IT strategy, enterprise architecture, and digital transformation\n at [ArchitectElevator.com](https://architectelevator.com/blog).\n\n[RSS Feed](/ramblings.rss) [Twitter](https://www.twitter.com/ghohpe) [LinkedIn](https://www.linkedin.com/today/author/ghohpe)\n\n---\n\n[Queues invert control flow but require flow control](/ramblings/queues_flow_control.html) July 27, 2024 [integration](/ramblings_integration.html) [cloud](/ramblings_cloud.html) [events](/ramblings_events.html)\n\nQueues are key elements of any asynchronous system because they can invert control\n flow. Their ability to re-shape traffic enables high-throughput systems that behave\n gracefully under heavy load. But all that magic doesn't come for free: to function\n well, queues require flow control [Read more Âť](/ramblings/queues_flow_control.html)\n\n[Control Flow—The Other Half of Integration Patterns](/ramblings/queues_control_flow.html) July 30, 2024 [integration](/ramblings_integration.html) [cloud](/ramblings_cloud.html) [messaging](/ramblings_messaging.html)\n\nWhen describing messaging systems, it's natural to focus on data flow. However, control\n flow is what gives those systems their critical runtime properties like resilience\n or low latency. It's time to make control flow a first-class consideration. [Read more Âť](/ramblings/queues_control_flow.html)\n\n[Event-driven = Loosely coupled? Not so fast!](/ramblings/eventdriven_coupling.html) June 20, 2024 [integration](/ramblings_integration.html) [cloud](/ramblings_cloud.html) [events](/ramblings_events.html)\n\nEvent-driven architectures (EDAs) are frequently pitched as loosely coupled, when\n compared to other forms of integration. Coupling is a multi-faceted and nuanced property,\n so as architects we should have a closer look. [Read more Âť](/ramblings/eventdriven_coupling.html)\n\n[The Many Facets of Coupling](/ramblings/coupling_facets.html) June 10, 2024 [integration](/ramblings_integration.html) [cloud](/ramblings_cloud.html) [events](/ramblings_events.html)\n\nCoupling is integration's magic word. Despite entire books being written on the subject,\n it's still widely recited as a \"loose coupling is good\" mantra. Coupling deserves\n better, so let's clarify the dimensions and nuances of coupling. [Read more Âť](/ramblings/coupling_facets.html)\n\n[Serverless Loan Broker @ GCP](/ramblings/loanbroker_gcp_workflows.html) May 20, 2022 [integration](/ramblings_integration.html) [cloud](/ramblings_cloud.html)\n\nDo serverless solutions lock you in? Let's find out by porting / rebuilding the Serverless\n Loan Broker on top of Google's Cloud Platform (GCP). [Read more Âť](/ramblings/loanbroker_gcp_workflows.html)\n\n[Serverless Loan Broker @ AWS, Part 5: Integration Patterns with CDK](/ramblings/loanbroker_cdk.html) Jan 25, 2022 [integration](/ramblings_integration.html) [cloud](/ramblings_cloud.html)\n\nInfrastructure as Code (IaC) brings repeatability into the provisioning and deployment\n of cloud applications. However, the vocabulary used by most automation tools describes\n cloud platform resources as compared to the application's intent. As serverless applications\n take us further away from the infrastructure, we should also find better abstractions\n to express our automation. Perhaps, Enterprise Integration Patterns give us a head\n start? [Read more Âť](/ramblings/loanbroker_cdk.html)\n\n[Serverless Loan Broker @ AWS, Part 4: Automation](/ramblings/loanbroker_automation.html) November 30, 2021 [integration](/ramblings_integration.html) [cloud](/ramblings_cloud.html)\n\nInfrastructure as Code (IaC) has a whole new meaning for serverless applications.\n Rather than provision resources (the serverless frameworks do that for us), automation\n determines the system composition and configuration. As expected, quite a few options\n are available from simple command line to programming frameworks. Time to have a look. [Read more Âť](/ramblings/loanbroker_automation.html)\n\n[Serverless Loan Broker @AWS, Part 3: Publish-Subscribe with SNS](/ramblings/loanbroker_stepfunctions_pubsub.html) July 20, 2021 [integration](/ramblings_integration.html) [cloud](/ramblings_cloud.html)\n\nPart 3 of the mini-series on implementing the EIP Loan Broker as a serverless solution\n with AWS Step Functions uses a Publish-Subscribe Channel and a stand-alone Aggregator\n to request and process loan quotes. [Read more Âť](/ramblings/loanbroker_stepfunctions_pubsub.html)\n\n[Loan Broker @AWS, Part 2: Recipient List](/ramblings/loanbroker_stepfunctions_recipient_list.html) July 20, 2021 [integration](/ramblings_integration.html) [cloud](/ramblings_cloud.html)\n\nIn part 2 of this blog series I implement the Loan Broker Example using a Recipient\n List pattern, implemented in DynamoDB, Step Functions, and Lambda. [Read more Âť](/ramblings/loanbroker_stepfunctions_recipient_list.html)\n\n[Loan Broker Implementation with AWS Step Functions](/ramblings/loanbroker_stepfunctions.html) July 20, 2021 [integration](/ramblings_integration.html) [cloud](/ramblings_cloud.html)\n\nA lot has happened since we implemented the Loan Broker Example in EIP: we have the\n cloud, serverless computing, machine learning, service meshes and all sorts of other\n bells and whistles. Nevertheless, the integration patterns have passed the test of\n time as we shall see by implementing the original loan broker example with AWS Lambda\n and AWS Step Functions. [Read more Âť](/ramblings/loanbroker_stepfunctions.html)\n\n[Serverless Integration Patterns on Google Cloud Functions](/ramblings/google_cloud_functions.html) April 20, 2017 [messaging](/ramblings_messaging.html) [cloud](/ramblings_cloud.html)\n\nAfter examining which patterns are embedded in Google Cloud Pub/Sub in an earlier\n post, I implemented a few common patterns on top of Google Cloud Functions, Google's\n serverless implementation. It's amazing how easy it has become to get messaging patterns\n running in the cloud with only a minimum of wrapper code. [Read more Âť](/ramblings/google_cloud_functions.html)\n\n[Modern Examples for Enterprise Integration Patterns](/ramblings/eip1_examples_updated.html) February 5, 2017 [patterns](/ramblings_patterns.html)\n\nEnterprise Integration Patterns are timeless. That's why our book keeps selling well\n 20 years after its publication in 2003. However, the code examples haven't aged quite\n as well. I therefore updated several code examples to use modern tech like GoLang,\n Kafka, RabbitMQ, AWS, Azure Cloud Functions, and Google Cloud Pub/Sub. [Read more Âť](/ramblings/eip1_examples_updated.html)\n\n[37 Things or \"Where have all my ramblings gone?\"](/ramblings/94_37things.html) July 5, 2016 [writing](/ramblings_writing.html)\n\nAbout two years ago, I revived the ramblings from a four-year hibernation. Upon resurrection,\n the ramblings started to take a broader scope, including not only messaging, conversations,\n and patterns, but also communication and IT architecture topics. The new topics were\n a natural reflection of my new role as Chief Architect in a massive IT transformation\n and after a little while I decided that they deserve their own channel, so I wrote\n a book about it. [Read more Âť](/ramblings/94_37things.html)\n\n[25 Years of OOP](/ramblings/93_oop2016.html) February 5, 2016 [events](/ramblings_events.html)\n\nOOP is one of the conferences that originated in the \"OO\" era of the early to mid-nineties.\n While most of these events have shed the double \"O\" -- OOPSLA has become SPLASH and\n JAOO has become GOTO, OOP stayed true to its name and remains one of the premier German\n developer conferences. This year OOP celebrated its 25th anniversary. Here are my\n impressions. [Read more Âť](/ramblings/93_oop2016.html)\n\n[How to Scale an Organization? The same way you scale a system!](/ramblings/92_scaling.html) January 12, 2016 [architecture](/ramblings_architecture.html)\n\nThe digital world is all about scalability: millions of web sites, billions of hits\n per month, more data, more tweets, more images uploaded. To make this work, architects\n have learned a ton about scaling systems. With everything around us scaling to never-before-seen\n throughput, the limiting element in all this is bound to be us, the human users. And\n the organizations we work in. One may wonder, then, why scaling and optimizing throughput\n in organizations is considered a very different field usually completely ignored by\n the IT architects. I feel that many of the scalability and performance enhancement\n approaches experienced IT architects know can be just as well used to scale organizations.\n If a coffee shop can teach us about maximizing a system’s throughput, maybe our knowledge\n of IT systems design can help improve the performance of organizations! [Read more Âť](/ramblings/92_scaling.html)\n\n[The Architect’s Penthouse Bookshelf](/ramblings/91_bookshelfpenthouse.html) Dec 28, 2015 [architecture](/ramblings_architecture.html)\n\nWhen you hitchhike through the galaxy, a towel will generally do. To ride the you\n need to be a bit better equipped. Riding the elevator up and down is exciting and\n provides tremendous value to the organization. But it is also demanding as you need\n to adjust to different audiences, backgrounds and dynamics, becoming a technology\n shapeshifter of sorts. To help with this transformation, I recommended a few books\n for each major section of the corporate high-rise. [Read more Âť](/ramblings/91_bookshelfpenthouse.html)\n\n[If software eats the world, you better use version control!](/ramblings/90_softwareeatstheworld.html) Dec 6, 2015 [architecture](/ramblings_architecture.html)\n\nAs I recently observed, Corporate IT tends to be afraid of code: code is where all\n the pesky bugs come from, which have to be fixed by quirky, expensive, and unreliable\n developers or external consultants. This attitude plays to the favor of vendors who\n peddle products that \"only\" require configuration, as opposed to coding. Sadly, most\n configuration is really just programming in a poorly designed, rather constrained\n language without decent tooling or useful documentation. Being afraid of code and\n being unfamiliar with the modern development lifecycle is a dangerous proposition\n in a world where everything is becoming software-defined. [Read more Âť](/ramblings/90_softwareeatstheworld.html)\n\n[If you never kill anything, you will live among zombies. And they will eat your brain.](/ramblings/89_zombies.html) Sept 27, 2015 [architecture](/ramblings_architecture.html)\n\nCorporate IT lives among zombies: old systems that are half alive and have everyone\n in fear of going anywhere near them. They are also tough to kill completely. Worse\n yet, they eat IT staff's brains. It's like Shaun of the Dead minus the funny parts. [Read more Âť](/ramblings/89_zombies.html)\n\n[Movie Star Architects](/ramblings/88_moviestararchitects.html) Aug 1, 2015 [architecture](/ramblings_architecture.html)\n\nI recently wrote about architects and the role they play in large organizations. Still,\n the question often remains what an architect should be doing besides \"riding the elevator\".\n Let's try another analogy: movie characters. [Read more Âť](/ramblings/88_moviestararchitects.html)\n\n[Virtualization Matryoshka](/ramblings/87_matryoshka.html) July 15, 2015 [architecture](/ramblings_architecture.html) [cloud](/ramblings_cloud.html)\n\nIT loves virtualizing stuff, following the old rule that in computer science every\n problem can be solved by just one more level of indirection. Cloud computing is based\n on virtualization of compute resources - you don't need to know which machine your\n application is actually running on and you can get new ones with the click of a button.\n Before cloud was a buzzword, though, VMware and others have virtualized machines at\n the operating system levels. Recently (in terms of buzz, not technology), containers\n bring another level of light-weight virtualization of resources. And let's not forget\n the Java Virtual Machine, which also claims a level of virtualization. What are we\n supposed to do with all these levels of virtualization? [Read more Âť](/ramblings/87_matryoshka.html)\n\n[Is This Architecture? Look for Decisions!](/ramblings/86_isthisarchitecture.html) June 15, 2015 [architecture](/ramblings_architecture.html)\n\nPart of my job is to review system architectures. So I frequently ask teams to show\n me \"their architecture\", but almost as frequently I don't consider what I receive\n an architecture document. The inevitable question \"what do you expect?\" is also not\n so easy for me to answer: despite many formal definitions it's not immediately clear\n what architecture is or whether a document really depicts an architecture. One important\n test I apply is whether the document or the description contains any non-trivial decisions\n and the rationale behind them. [Read more Âť](/ramblings/86_isthisarchitecture.html)\n\n[Same Old Architecture - Best of Ramblings](/ramblings/85_sameoldarchitecture.html) May 15, 2015 [integration](/ramblings_integration.html) [writing](/ramblings_writing.html)\n\nArchitects can often be found commenting or complaining that many things in IT are\n the same old stuff in new packaging, created by marketing departments who were in\n need of a new buzzword. For example, aren't microservices really just SOA done right\n while SOA itself stands for \"Same Old Architecture\"? And the whole reactive movement\n seems to have re-discovered callbacks. Maybe there is some truth in this as at the\n recent SATURN conferences I found myself saying more often than I had expected \"I\n blogged about this\". So let's see which of my past ramblings are still relevant these\n days. [Read more Âť](/ramblings/85_sameoldarchitecture.html)\n\n[SATURN Conference 2015](/ramblings/84_saturn.html) May 1, 2015 [events](/ramblings_events.html) [architecture](/ramblings_architecture.html)\n\nI have not blogged about events in a while, but SATURN 2015 has been an amazing event\n that's well worth rambling about. [Read more Âť](/ramblings/84_saturn.html)\n\n[Free Gift with Subscription (Pattern)](/ramblings/83_subscribing.html) APR 26, 2015 [conversations](/ramblings_conversations.html) [integration](/ramblings_integration.html)\n\nDiscussing the Google cloud Pub/Sub system in the last rambling reminded me that the\n Publish-subscribe Channel pattern makes for a good example of the subtle but important\n difference between Messaging Patterns and Conversation Patterns. This comparison is\n timely as I picked up documenting Conversation Patterns again. [Read more Âť](/ramblings/83_subscribing.html)\n\n[Google Cloud Pub/Sub](/ramblings/82_googlepubsub.html) APR 8, 2015 [messaging](/ramblings_messaging.html) [integration](/ramblings_integration.html) [cloud](/ramblings_cloud.html)\n\nGoogle released the beta version of their publish-subscribe API just a few weeks ago.\n I show how to build a very simple demo app using the Java API and map the functionality\n to integration patterns to illustrate the design choices the team made. [Read more Âť](/ramblings/82_googlepubsub.html)\n\n[RESTful Conversations](/ramblings/81_restconversation.html) MAR 15, 2015 [conversations](/ramblings_conversations.html) [webservices](/ramblings_webServices.html) [integration](/ramblings_integration.html)\n\nAs indicated a good while ago I spent some time thinking about patterns that instead\n of following a message through multiple systems, looks at the message exchange over\n time between a (mostly) fixed set of systems. I call these message exchanges \"conversations\".\n Sadly my writing efforts on Conversation Patterns fell very much asleep around 2008,\n partly due to my fear that with the rise of REST, stateful conversations between systems\n would step into the background as most integration problems are now solved with a\n simple POST or GET. A presentation and conversation at Frank Leymann's IaaS PhD Seminar\n enlightened me that this is not at all true: systems following the REST architectural\n style very much engage in conversations. [Read more Âť](/ramblings/81_restconversation.html)\n\n[Sync or Swim](/ramblings/80_syncorswim.html) FEB 15, 2015 [patterns](/ramblings_patterns.html) [messaging](/ramblings_messaging.html) [modeling](/ramblings_modeling.html)\n\nWe were tempted multiple times to extend the EIP icon language, but always felt that\n simplicity should win over precision. However, seeing the visual vocabulary that my\n former Google colleague Ivan Gevirtz created, I am convinced that combining the two\n is useful. [Read more Âť](/ramblings/80_syncorswim.html)\n\n[The Architect Elevator](/ramblings/79_elevator.html) JAN 15, 2015 [architecture](/ramblings_architecture.html)\n\nArchitects frequently play a critical role as connecting and communicating element\n between multiple parties. Especially in large organizations such communication is\n an important factor: too many parties speak different languages to convey different,\n and often conflicting, objectives. Many layers of management only exacerbate the problem\n as communicating to corporate leadership resembles the \"telephone game\" where a circle\n of kids relays a message one-by-one just to realize at the end that the message has\n completely changed along the way. [Read more Âť](/ramblings/79_elevator.html)\n\n[The 3 Legs of an Architect](/ramblings/78_threelegs.html) DEC 28, 2014 [architecture](/ramblings_architecture.html)\n\nDefining what a software or IT architect is or does is no less challenging than defining\n software architecture itself. The SEI maintains a list of software architecture definitions,\n yet I have not seen a corresponding list for software architects. One could try to\n skirt the issue by declaring that software architects are the people who make software\n architecture. However, I think that this approach would be missing some important\n aspects of being an architect. [Read more Âť](/ramblings/78_threelegs.html)\n\n[Writing for Busy People](/ramblings/77_writing.html) SEP 21, 2014 [writing](/ramblings_writing.html)\n\nOne advantage of working for a relatively large organization is that I get to do a\n little more writing again. Not because I have spare time, but because in times of\n rapid change, communication across a large audience is critically important. It turns\n out, short papers are a good way to achieve that and my brief, but accurate technical\n position / decision papers have become a trademark of my architecture group (don't\n worry, we architects produce more than just paper).\n Correspondingly, one of my daily struggles is to convince others to write as well\n and to coach them to become better writers. In a sense, this forces me to transport\n what I know about writing from purely procedural knowledge, i.e. I know how to do\n it, to declarative knowledge, i.e. being able to understand why it is done and to\n describe to others how to do it.\n While this rambling's title is a pun on the popular books \"Japanese for busy People\",\n it intentionally implies an ambiguity that we are both writing for a busy audience,\n but are busy authors as well. [Read more Âť](/ramblings/77_writing.html)\n\n[Explaining Stuff](/ramblings/76_explaining.html) AUG 30, 2014 [writing](/ramblings_writing.html)\n\nAt a recent presentation, Martin Fowler introduced himself as a guy \"who is good at\n explaining things\". While this certainly has a touch of British Understatement™, it\n also highlights a critically important but rare skill in IT. As technology invades\n all parts of personal and professional lives, causing companies to absolutely depend\n on software and systems, decision makers often can no longer keep track of technical\n details. Because architects live at the intersection of technology and business, it\n is their responsibility to explain complex topics and highlight the ramifications\n of technical decisions. [Read more Âť](/ramblings/76_explaining.html)\n\n[DDD - Diagram Driven Design](/ramblings/75_ddd.html) MAR 22, 2010 [design](/ramblings_design.html) [modeling](/ramblings_modeling.html) [writing](/ramblings_writing.html)\n\nDrawing a picture turns out to be a useful system design technique. [Read more Âť](/ramblings/75_ddd.html)\n\n[What Does It Mean to Use Messaging?](/ramblings/74_messaging.html) FEB 17, 2010 [messaging](/ramblings_messaging.html)\n\nI was recently asked to help a team decide whether they should use messaging. Of course,\n I have not forgotten what I learned during many years in consulting: the consultant\n always answers \"it depends.\" A good consultant can tell you what the answer depends\n on. And a truly great consultant can convince you that you are asking the wrong question\n in the first place. [Read more Âť](/ramblings/74_messaging.html)\n\n[A Chapter a Day...](/ramblings/73_writing.html) FEB 1, 2010 [writing](/ramblings_writing.html)\n\nMy New Year's resolution was to write more, so here my thoughts on how to actually\n make that happen. In a sense it's a plan for myself to be more productive, but hopefully\n the ideas also work for other folks. Ironically, my work on EIP II has been stalled\n for a good while, so you're getting advice on how to be a prolific writer from someone\n who has not written much in 2 years. Read on at your own risk. [Read more Âť](/ramblings/73_writing.html)\n\n[EIP Visions](/ramblings/72_eipvolumes.html) JAN 22, 2010 [writing](/ramblings_writing.html) [conversations](/ramblings_conversations.html)\n\nThe beginning of a New Year is the time to reflect on the past and make resolutions\n for the future. It's become my tradition to kick off the year with some reflection\n on EIP, so here we go. [Read more Âť](/ramblings/72_eipvolumes.html)\n\n[Clouds and Integration Patterns at JavaOne](/ramblings/71_javaone.html) OCT 1, 2009 [events](/ramblings_events.html) [cloud](/ramblings_cloud.html)\n\nI joined JavaOne this year as a panelist on Cloud Computing. Here my belated impressions\n on this year's JavaOne. [Read more Âť](/ramblings/71_javaone.html)\n\n[My First Google Wave Robot](/ramblings/70_wave.html) August 1, 2009\n\nBy now everyone must have heard about Google Wave, the communication and collaboration\n platform announced at Google I/O. Google just announced that they are ramping up towards\n 20,000 developers on the current sandbox and will extend to 100,000 users by end of\n September. This will give many more people to opportunity to experiment with Wave.\n [Read more Âť](/ramblings/70_wave.html)\n\n[Google I/O](/ramblings/69_googleio.html) June 5, 2009 [events](/ramblings_events.html)\n\nI guess I am the last person to blog about Google I/O. By now, everyone should have\n read about Wave and the free Android phone (with 30 day SIM!). I am just now getting\n to write this up on my flight back to Japan, so I’ll give you my personal impressions\n and viewpoints, if you are still interested. [Read more Âť](/ramblings/69_googleio.html)\n\n[Into the Clouds on New Acid](/ramblings/68_acid.html) Mar 20, 2009 [design](/ramblings_design.html)\n\nI have been speaking more frequently about cloud computing in recent days. As SOA\n is becoming a daily reality, I needed to advance to new, still slightly nebulous topic.\n What could be a better fit than cloud computing? All jokes aside, cloud computing\n provides for some interesting discussions and one should safely assume that Google\n has a word or two to say about it. [Read more Âť](/ramblings/68_acid.html)\n\n[Design Patterns: More than meets the eye](/ramblings/67_patterns.html) Jan 13, 2009 [patterns](/ramblings_patterns.html)\n\nBlogging about design patterns seems about as original as blogging about the Java\n (TM) Programming Language, except for the missing (TM). However, as I just attended\n a workshop on software service engineering, I realized once again that people from\n different fields have very different notions about the concept and usage of patterns.\n Many workshop attendees raised questions about formalizing patterns, tooling, etc.\n I touched on this subject a tiny bit in a post from long time ago, but I figured that\n the topic really deserves more attention, especially since to me a pattern is so much\n more than the \"proven solution to a recurring problem within a specific context.\"\n [Read more Âť](/ramblings/67_patterns.html)\n\n[Reflecting on Enterprise Integration Patterns](/ramblings/66_fouryears.html) January 1, 2008 [writing](/ramblings_writing.html) [gregor](/ramblings_gregor.html)\n\nThe end of the year is always the time to reflect on the past happenings. My friends\n in Japan often send a New Year's card with 12 pictures, each showing the significant\n event during the month. I am not sure something significant related to Enterprise\n Integration Patterns happened each month, but I think it's still nice to reflect a\n little bit on the history and current state of the patterns. After all, the patterns\n have matured from a draft paper to being adopted as the lingua franca for a number\n of open source messaging projects.\n [Read more Âť](/ramblings/66_fouryears.html)\n\n[Google Gears Live From Japan](/ramblings/65_gears.html) December 26, 2007 [events](/ramblings_events.html)\n\nSince Google's Developer Day, I have been promising to speak more regularly about\n Google products. This is a bit of a balancing act for me, as I want to avoid the slippery\n slope of becoming a corporate sock puppet. I also don't want to neglect my interest\n in connected systems, SOA, and asynchronous messaging. With the Internet turning into\n the largest connected system, the gap between Web-based technologies and connected\n systems design has become significantly smaller, allowing me to combine interests\n and Google developer products more naturally. Of course, the fact that Google is rolling\n out new developer products and APIs around the clock, does not hurt either. [Read more Âť](/ramblings/65_gears.html)\n\n[Double-Dipping: OOPSLA and Colorado Software Summit](/ramblings/64_oopslacss.html) October 27, 2007 [events](/ramblings_events.html) [conversations](/ramblings_conversations.html)\n\nI am just returning from a trip to Montreal and Keystone, CO for the OOPSLA and Colorado\n Software Summit conferences. I spoke on SOA Patterns, workshopped my conversation\n pattern paper, and gave six talks on event-driven architectures and building mashups\n using Yahoo! Pipes and Google Mashup Editor. Phew! [Read more Âť](/ramblings/64_oopslacss.html)\n\n[Bubble 2.0](/ramblings/63_bubble20.html) October 15, 2007 [events](/ramblings_events.html)\n\nWhat’s wrong with this picture? I crash a stylish party at a pricey venue (SF Moma).\n I have no business being there, nor do I have the required invitation. I nonchalantly\n talk my way in, and hit the crowd with two fellow geeks. Within a few seconds an attractive\n blonde with a low cut dress approaches us and engages us in a conversation. We grab\n a few free drinks, indulge on the tirelessly circulating horse d’oeuvres, and talk\n to the blonde. [Read more Âť](/ramblings/63_bubble20.html)\n\n[Enterprise Mashup Summit](/ramblings/62_mashupsummit.html) October 1, 2007 [events](/ramblings_events.html)\n\nI attended the Enterprise Mashup Summit last Friday. It was a small-ish event, with\n about 50 people attending. We saw about 10 presentations, mostly by vendors plus an\n open forum. None of the presentations were too sales-ey, which gave the event a nice\n workshop feel. Given the limited size, it would have been nice to have more time for\n interaction. Here is a quick rundown of my impressions. [Read more Âť](/ramblings/62_mashupsummit.html)\n\n[Facebook Developer Garage](/ramblings/61_facebookgarage.html) September 25, 2007 [events](/ramblings_events.html)\n\nThe Internet is cruel. So you finally made the leap from EAI stone age to become a\n hip mashup developer. Now it turns out you are once again behind the curve, Unless\n you've written your won Facebook app and scored a million or so installs you are just\n a worm in the dust of the global data superhighway. Join the club. [Read more Âť](/ramblings/61_facebookgarage.html)\n\n[Mashups Tools Market](/ramblings/60_mashupmarket.html) August 18, 2007 [integration](/ramblings_integration.html)\n\nAs I reported from Mashup Camp, an increasing number of vendors play in the mashup\n space. I am obviously not the only one who noticed. Dion Hincliffe recently discussed\n 17 different mashup tools. Maybe I have an MBA hidden inside me (or 10 years of consulting\n left some marks), but I was temped to conduct my own market segmentation. Gartner\n would be proud of me. Just be aware that my analysis is not meant to be comprehensive\n and all statements carry a 0.5 probability of being right :-) [Read more Âť](/ramblings/60_mashupmarket.html)\n\n[Mashups == EAI 2.0?](/ramblings/59_mashupeai.html) July 27, 2007 [integration](/ramblings_integration.html)\n\nMashups pull data from different sources, aggregate and transform the data to be used\n in different contexts. EAI solutions pull data from different sources, aggregate and\n transform the data to be used in different contexts. Huh? [Read more Âť](/ramblings/59_mashupeai.html)\n\n[Mashup Camp](/ramblings/58_mashupcamp.html) July 18, 2007 [events](/ramblings_events.html)\n\nI attended the first day of Mashup Camp today. The event took place at the Computer\n History Museum, which is actually walking distance from my office. Ironically, the\n only day in the year when something actually happens within walking distance in Silicon\n Valley it had to rain. Oh well. [Read more Âť](/ramblings/58_mashupcamp.html)\n\n[I Want My Events](/ramblings/57_pipes.html) July 15, 2007 [writing](/ramblings_writing.html) [integration](/ramblings_integration.html)\n\nLast time I claimed that users like events. This time I want to show how I fulfilled\n my personal desire for events off the Web. I built two solutions to alert me to new\n book reviews on Amazon, one using a Python script, the other using Yahoo! Pipes. [Read more Âť](/ramblings/57_pipes.html)\n\n[Users Like Events](/ramblings/56_events.html) July 12, 2007 [events](/ramblings_events.html) [messaging](/ramblings_messaging.html)\n\nTwo weeks ago I presented a keynote at the DEBS (Distributed Event-based Systems)\n conference. The emphasis of the conference was on academic work in the field but event-based\n systems are rapidly gaining traction in commercial applications as CEP (Complex Event\n Processing) is becoming a household name like SOA (equally difficult to pin down).\n All this talk about events reminded me that applications on the Web are becoming increasingly\n event driven. [Read more Âť](/ramblings/56_events.html)\n\n[API's are for Humans, too](/ramblings/55_api.html) June 19, 2007 [design](/ramblings_design.html)\n\nWhen graphical user interfaces became popular thrifty people had the idea that they\n could generate them automatically. Well, that bubble burst pretty quickly. When people\n say nothing is new with Web services, they are right in this case. Once again people\n want to generate the interface automatically. [Read more Âť](/ramblings/55_api.html)\n\n[Google Developer Day](/ramblings/54_gdd.html) May 31, 2007 [events](/ramblings_events.html)\n\nLast week Google held a developer day in 10 cities around the world. Here are my take-aways. [Read more Âť](/ramblings/54_gdd.html)\n\n[Eric Newcomer is on to me](/ramblings/53_eric.html) May 26, 2007 [design](/ramblings_design.html)\n\nYou can only get away with joking about transactions for so long before the gods of\n transactions bring you to justice. So is was only a matter of time before Eric Newcomer\n would catch me waxing about coffee and transactional integrity... [Read more Âť](/ramblings/53_eric.html)\n\n[My Loss, Your Gain - SOA Patterns Article](/ramblings/52_soapatterns.html) May 21, 2007 [writing](/ramblings_writing.html) [webservices](/ramblings_webServices.html)\n\nBeginning of this year I submitted an article to a renowned software publication who\n is running a special issue on software patterns. Sadly, my article did not make it\n into the magazine but I decided to publish an expanded version on my site. Hey, I\n got to make it worth your time following my ramblings! Am I bitter that my article\n was rejected? Not at all, but if I ever get a hold of these #^%#$& -bleep- of a -bleep-\n I'll... [Read more Âť](/ramblings/52_soapatterns.html)\n\n[JavaOne 2007](/ramblings/51_javaone.html) May 11, 2007 [events](/ramblings_events.html)\n\nJavaOne is one of the few geek conferences that take place in San Francisco. The content\n can be hit or miss but the proximity and the good parties always make it worth stopping\n by. I also had to fulfil my duty to recruit the last smart software engineer in the\n Bay Area to Google. [Read more Âť](/ramblings/51_javaone.html)\n\n[I May Be a Flake, But At Least I Am Published!](/ramblings/50_publications.html) May 2, 2007 [gregor](/ramblings_gregor.html) [writing](/ramblings_writing.html)\n\nI have been pretty quiet recently, but I finally have some results to show. The current\n issue of IEEE Internet Computing (May/June 2007) contains my guest column for \"Toward\n Integration\". Also, I authored one chapter in the upcoming book \"SOA Expertenwissen\"\n (in German).\n [Read more Âť](/ramblings/50_publications.html)\n\n[Microsoft MVP Summit](/ramblings/49_mvpsummit.html) March 25, 2007 [events](/ramblings_events.html)\n\nEven though I have been working for the (self-declared) non-evil empire for a while\n now, I still have a lot of ties to the Microsoft community, even beyond drinking Weissbier\n with Christian Weyer. I am particularly proud that I have been able to maintain my\n MVP status, Microsoft's Most Valuable Professional award. Here my (brief) report from\n the MVP Summit in Seattle & Redmond.\n [Read more Âť](/ramblings/49_mvpsummit.html)\n\n[Validating Dynamic Systems](/ramblings/48_validation.html) Feb 1, 2007 [visualization](/ramblings_visualization.html) [modeling](/ramblings_modeling.html)\n\nErik Doernenburg and I have been presenting our talk on Software Validation a few\n times now and have received very positive feedback. In the talk we mention that beyond\n visualization you can use similar techniques to perform checks and validations against\n a system. However, none of our demos actually included an example. So I went out to\n correct that and added validations to my messaging visualizer. [Read more Âť](/ramblings/48_validation.html)\n\n[JAOO 2006](/ramblings/47_jaoo.html) Oct 6, 2006 [events](/ramblings_events.html) [modeling](/ramblings_modeling.html)\n\nI am just riding the train back from Aarhus (the second largest city in Denmark in\n case your geography skills are as weak as mine were before my first trip here) to\n Copenhagen. Many speakers consistently rave about JAOO. The speaker roster, the logistics,\n the attendees - everything just seems to be very high quality and run very smoothly.\n This year I was nominated to be track host for the SOA track entitled \"SOA - What's\n Left to Say?\" [Read more Âť](/ramblings/47_jaoo.html)\n\n[fooCamp](/ramblings/46_foo.html) Aug 28, 2006 [events](/ramblings_events.html)\n\nThis year I got to go to fooCamp! What is fooCamp? It is sort of like Burning Man\n for techno geeks. But just as Burning Man has gone pretty high tech fooCampers started\n to have more fun by burning things. It's difficult to put the experience into words... [Read more Âť](/ramblings/46_foo.html)\n\n[Web 2.0 Patterns](/ramblings/45_web20.html) Aug 24, 2006 [patterns](/ramblings_patterns.html)\n\nI confess. I am a groupie. When Tim O'Reilly invited me to be part of a workshop\n on Web 2.0 patterns I was quite excited. First, because I was going to meet the exalted\n one in person. Second, because I would have a chance to learn a lot about Web 2.0\n as I am pretty much starting from zero. [Read more Âť](/ramblings/45_web20.html)\n\n[Dagstuhl Seminar](/ramblings/44_dagstuhl.html) Aug 20, 2006 [events](/ramblings_events.html) [webservices](/ramblings_webServices.html) [conversations](/ramblings_conversations.html)\n\nI just returned from a trip to Germany to attend a workshop on The Role of Business\n Processes in Service Oriented Architecture. Besides a guaranteed top score in buzzword\n bingo the workshop provided a unique opportunity to connect thought leaders from academia\n and industry over the course of a week. The attendee roster sported the usual industry\n heavyweights, i.e., Microsoft, IBM, SAP, making me proud to add Google to the list.\n [Read more Âť](/ramblings/44_dagstuhl.html)\n\n[Integration Patterns in the Wild](/ramblings/43_wildpatterns.html) July 20, 2006 [writing](/ramblings_writing.html) [patterns](/ramblings_patterns.html) [integration](/ramblings_integration.html)\n\nHanging out with my intellectual drinking buddies reminded me that our integration\n patterns have been embraced by a fair number of commercial as well as open source\n projects. In my eyes this is really the best indicator of success for a pattern language.\n Latin, a dead language used mostly by doctors to sound more knowledgeable, is not\n a good model for a pattern language. You want a language that is alive and actually\n used by people. Talking to a few folks who did embrace our language motivated me to\n take a quick survey of the places where our patterns pop up. [Read more Âť](/ramblings/43_wildpatterns.html)\n\n[EAI DSLs](/ramblings/42_eaidsl.html) May 23, 2006 [design](/ramblings_design.html) [modeling](/ramblings_modeling.html)\n\nI am so clever. In my very first professional project in the US over 10 years ago\n I used a DSL to solve an EAI problem. If those buzzwords had been around at the time\n I would have been pretty cool, too. I guess you can’t have everything. [Read more Âť](/ramblings/42_eaidsl.html)\n\n[The Metrics Maid](/ramblings/41_metrics.html) April 28, 2006 [design](/ramblings_design.html)\n\nSome of the most hated people in San Francisco must be the meter maids, the DPT people\n who drive around in golf carts and hand out tickets to anyone who overslept street\n cleaning or did not have enough quarters for the meter. On some projects, the most\n hated people are the metric maids, the people who go around and try to sum up a developer’s\n hard work and intellectual genius in a number between 1 and 10. [Read more Âť](/ramblings/41_metrics.html)\n\n[March is Not a Number](/ramblings/40_marchnan.html) April 16, 2006 [design](/ramblings_design.html)\n\nA lot of discussion these days relates to DSL's (Domain Specific Languages) that allow\n business models and rules to expressed in a more readable fashion in the source code.\n Ultimately one might be able to share the executable source of the system with the\n business users to validate that this is what they wanted. While Java is not necessarily\n the greatest language to \"host\" a DSL we can go a lot further than developers generally\n believe or care for. [Read more Âť](/ramblings/40_marchnan.html)\n\n[What is in a Name?](/ramblings/39_namingchannels.html) Mar 5, 2006 [design](/ramblings_design.html) [messaging](/ramblings_messaging.html)\n\nComputer science is known as the field where every problem can be solved by just one\n more level of indirection. Well, a message channel berween two components is such\n a level of indirection. As it turns out naming this additional element can have a\n more profound influence on the system design than might appear at first. [Read more Âť](/ramblings/39_namingchannels.html)\n\n[Of Boxes and Lines](/ramblings/38_interaction.html) Feb 25, 2006 [design](/ramblings_design.html)\n\nAfter joining the big G I put particular emphasis on staying in touch with the .Net\n community. For one thing, a fair number of my intellectual drinking buddies tend to\n congregate around the large software company in the Pacific Northwest. Second, as\n a believer in cross-platform integration, technology-neutral design patterns and peace\n on earth I want to make sure I switch the koolaid flavor every so often. One opportunity\n to do that presented itself at OOP in Munich where Ralf Westphal invited me to speak\n on distributed system architectures as part of the .Net track. During the proverbial\n hallway discussions we started talking about boxes and lines, but in a profound way...\n [Read more Âť](/ramblings/38_interaction.html)\n\n[Revenge of the Nerds - OOPSLA 2005](/ramblings/37_oopsla.html) October 23, 2005 [events](/ramblings_events.html)\n\nRemember the people from high school who had strange hobbies and could never get a\n date? Well, they all grew up and they are running a conference now, the Object-Oriented\n Programming, Systems, Languages, and Applications conference, OOPSLA in short. While\n the conference logistics can be quirky at times, the content is top notch. And it\n seems like most of them have managed to get a date after all. [Read more Âť](/ramblings/37_oopsla.html)\n\n[Ramblings Now In Audio](/ramblings/36_podcast.html) October 12, 2005 [gregor](/ramblings_gregor.html)\n\nTwo years ago you were not cool if you did not have a blog. Today you are not cool\n if you have not done a podcast. Of course I cannot allow myself to fall behind, so\n here is my podcast on layered applications: [Read more Âť](/ramblings/36_podcast.html)\n\n[Googlesoft](/ramblings/35_pdc.html) September 18 2005 [events](/ramblings_events.html)\n\n(Professional) life can be a little ironic sometimes. Now that I work for Google I\n was able to go to Microsoft's Professional Developer Conference aka PDC for the first\n time. It was actually very nice to be able to stay in touch with the \"other side\". [Read more Âť](/ramblings/35_pdc.html)\n\n[What Color Are My Shoes?](/ramblings/34_cb.html) September 1, 2005 [events](/ramblings_events.html) [design](/ramblings_design.html) [visualization](/ramblings_visualization.html)\n\nTwo weeks ago I attended a very small, but special conference on enterprise software\n development. Here is what I came away with.. [Read more Âť](/ramblings/34_cb.html)\n\n[Interface User](/ramblings/33_interface.html) August 5, 2005 [design](/ramblings_design.html)\n\nOne of the biggest perceived fears of authors is that someone publishes a book or\n an article on the same topic just ever so slightly ahead of you that you have done\n all the work but look like a copy cat if you still publish your work. In reality this\n actually does not happen very often (at least not for books) as each author has his\n or her unique style and view even on the same topic. This time, though, Ken Arnold\n stole a little bit of my show by publishing an excellent article in called \"Programmers\n are People, too\". [Read more Âť](/ramblings/33_interface.html)\n\n[New Packaging, Same Good Content](/ramblings/32_google.html) August 1, 2005 [gregor](/ramblings_gregor.html)\n\nAs many people have already heard, I changed employers. Before the rumor mill completes\n its work entirely, here a few comments from my end. [Read more Âť](/ramblings/32_google.html)\n\n[TechEd 2005 Europe: Event-Driven Architectures](/ramblings/31_techededa.html) July 11, 2005 [events](/ramblings_events.html)\n\nI just returned from Microsoft TechEd Europe in Amsterdam. I was lucky enough to present\n on event-driven architectures in front of almost 600 people. Since multiple people\n asked me for the source files, I figured I'd post a quick summary of the talk, including\n the source files. [Read more Âť](/ramblings/31_techededa.html)\n\n[Configure This!](/ramblings/30_configure.html) July 5, 2005 [design](/ramblings_design.html)\n\nHaving been to a number of conferences and their attached expo floors recently it\n was not surprising that I was not able to escape the line \"this tool does not require\n programming, everything is done through configuration\". Hearing this tag line for\n the third or fourth time got me wondering, \"what really is the difference between\n coding and configuring?\" [Read more Âť](/ramblings/30_configure.html)\n\n[Microsoft TechEd 2005 Digest](/ramblings/29_teched.html) June 7, 2005 [events](/ramblings_events.html)\n\nThis year I actually missed putting in a proposal for TechEd. However, that has not\n kept me from actually presenting :-) So I am here fighting the Orlando Summer humidity\n together with 11000 other geeks and am actually having a good time. [Read more Âť](/ramblings/29_teched.html)\n\n[Will the Real Asynchrony Please Stand Up?](/ramblings/28_asynchrony.html) May 15, 2005 [design](/ramblings_design.html) [messaging](/ramblings_messaging.html) [conversations](/ramblings_conversations.html) [webservices](/ramblings_webServices.html) [patterns](/ramblings_patterns.html)\n\nOn a recent project we developed a Web services framework that supports asynchronous\n callbacks and asynchronous invocation with polling. The difficulties we had describing\n what we were trying to do to my fellow ThoughtWorkers on other projects prompted me\n to discuss the different forms of asynchrony in a little more detail. [Read more Âť](/ramblings/28_asynchrony.html)\n\n[Are You Driving a DeLorean or a Toyota?](/ramblings/27_latency.html) March 30, 2005 [design](/ramblings_design.html) [messaging](/ramblings_messaging.html)\n\nWhen you build a distributed system you have to choose between latency and reliability.\n Sticking your head in the sand will not help (and you get sand in your ears...). [Read more Âť](/ramblings/27_latency.html)\n\n[Can You Say \"Synchronous Asymmetry or Asynchronous Symmetry\"?](/ramblings/26_symmetry.html) March 25, 2005 [messaging](/ramblings_messaging.html) [design](/ramblings_design.html)\n\nIn my perennial battle to free distributed system developers' minds from the perils\n of the call stack mentality I came across another reason why a call stack is not appropriate\n for distributed applications: the call stack is inherently asymmetric. However, when\n building distributed applications, that asymmetry really has no place. [Read more Âť](/ramblings/26_symmetry.html)\n\n[Patterns and Practices Summit](/ramblings/25_pnpSummit.html) March 15, 2005 [events](/ramblings_events.html)\n\nIt seems like I spend all my time at conferences. I am speaking at the Patterns and\n Practices Summit and SD West this week. This one is setup by Keith Pleas in close\n collaboration with the Patterns and Practices group at Microsoft. So yes, I am still\n promiscuous when it comes to platforms. But it makes me feel better that Ted Neward\n seems to beat me in that category, though. [Read more Âť](/ramblings/25_pnpSummit.html)\n\n[TSS Symposium Redux](/ramblings/24_tss2005.html) March 14, 2005 [events](/ramblings_events.html)\n\nA number of people have already about the TSSS but that can't stop me from occupying\n my fair share of the cyberspace with my impressions. [Read more Âť](/ramblings/24_tss2005.html)\n\n[BTW Conference](/ramblings/23_btw2005.html) March 6, 2005 [events](/ramblings_events.html)\n\nOK, so I am officially the slowest blogger on the 'Net... last week I attended two\n conferences, the BTW in Karlsruhe, Germany and TheServerSide Symposium in Las Vegas.\n Too bad they are over 6000 miles apart :-( [Read more Âť](/ramblings/23_btw2005.html)\n\n[Extensibility Points](/ramblings/22_extensibility.html) February 1, 2005 [design](/ramblings_design.html)\n\nToday's rambling takes a look at the application side of application integration.\n We recently looked at a packaged application under development and looked at criteria\n and options for how this application can live in an evolutionary and connected environment. [Read more Âť](/ramblings/22_extensibility.html)\n\n[SOA's and Drunk Driving](/ramblings/21_drunkdriving.html) January 17, 2005 [design](/ramblings_design.html) [architecture](/ramblings_architecture.html)\n\nHappy New Year everybody! Over the holidays I tried to sort out some of my thoughts\n on Web services, SOA, architectural styles, coupling and all the other good stuff.\n I started to think about service-oriented architectures as an architectural style\n and how it compares to prior styles, such as distributed component architectures.\n Maybe it was the New Year's mood but I started to think that the evolution of architectural\n styles is a little bit like drunk driving... [Read more Âť](/ramblings/21_drunkdriving.html)\n\n[Enemy of the State](/ramblings/20_statelessness.html) December 19, 2004 [design](/ramblings_design.html)\n\nOne of my favorite pastimes is to argue with people whether a solution is stateless,\n whether it should be stateless and what it means to be stateless in the first place.\n Ideally, the debate would involve alcoholic beverages and the other person would pick\n up the check. After \"loosely coupled\", \"stateless\" must be a close runner-up as the\n ultimate nirvana in buzzword-compliant architectures. It is also equally hotly debated.\n Today, I 'd like to share my view on state and lessness. If you disagree you are welcome\n to argue with me, but you are buying! :-) [Read more Âť](/ramblings/20_statelessness.html)\n\n[Good Composers are Few and Far in Between](/ramblings/19_composing.html) November 30, 2004 [design](/ramblings_design.html)\n\nLoosely coupled architectures are often portrayed as the holy grail of architecture.\n But all too often these architectures turn into what Martin Fowler coined the \"Architect's\n dream but the developer's nightmare\". This time I want to share some of the challenges\n we have found working with loosely coupled architectures and how we addressed them. [Read more Âť](/ramblings/19_composing.html)\n\n[Starbucks Does Not Use Two-Phase Commit](/ramblings/18_starbucks.html) November 19, 2004 [design](/ramblings_design.html) [conversations](/ramblings_conversations.html)\n\nPeople often criticize asynchronous messaging solutions as too complicated and cumbersome.\n Or, they believe distributed solutions cannot be successful unless they include a\n distributed transaction model. There is little doubt that asynchronous solutions require\n us to think in new ways as we have to deal with concurrency, out-of-sequence issues,\n correlation and other. However, the real world is full of examples of asynchronous\n processes that deal successfully with exactly the same issues. We don't have to go\n further than the local coffee shop... [Read more Âť](/ramblings/18_starbucks.html)\n\n[ACM Middleware Conference: Pub-Sub and Related Topics](/ramblings/17_acmconference.html) October 25, 2004 [events](/ramblings_events.html)\n\nI just attended the conference in Toronto (I thought a 1/2 day tutorial in integration\n patterns). This conference is more of an academic events when compared to some of\n the purely commercial conferences like JavaOne. It was interesting to see what academia\n are working on these days in the areas of middleware and SOA. [Read more Âť](/ramblings/17_acmconference.html)\n\n[Are \"Pattern\" and \"Component\" Antonyms?](/ramblings/16_patternscomponents.html) October 15, 2004 [patterns](/ramblings_patterns.html)\n\nLast year's OOPSLA tutorial on Enterprise Integration Patterns was quite well received.\n The most frequent constructive criticism was that the whole tutorial was PowerPoint\n as opposed to running code. I took that feedback to heart and set out to develop a\n toolkit that demonstrates the routing and transformation patterns in our book. After\n a lot of deja-vu in Windows GDI programming I created a toolkit that contains each\n pattern as a small executable. The toolkit is a lot of fun and makes for great demos,\n but it also triggered a bigger question. Are patterns meant to be codified as components? [Read more Âť](/ramblings/16_patternscomponents.html)\n\n[Indigo Design Preview](/ramblings/15_indigo.html) October 8, 2004\n\nI just attended the Indigo Strategic Design Review in Redmond. This means we got to\n interact with the product team and play with some pre-beta bits. Naturally, a lot\n of details are under NDA and are likely to evolve before the beta release. So here\n some rather general impressions -- I heard Internet connectivity in jail is really\n bad :-). [Read more Âť](/ramblings/15_indigo.html)\n\n[Look Ma -- No Middleware! Using Event-Driven Architectures inside a JVM.](/ramblings/14_edainjvm.html) October 1, 2004 [design](/ramblings_design.html) [messaging](/ramblings_messaging.html)\n\nOur most recent project was to replace a batch-oriented stored procedure with a more\n flexible, maintainable and scaleable Java-based architecture. We chose an event-driven\n architectural style that processes events as they occur. For the initial roll-out\n we did not even have to distribute the solution so it all runs in single JVM (if you\n ignore clustering for the moment). Read on to learn more about the implementation\n and our experiences with intra-JVM EDA. [Read more Âť](/ramblings/14_edainjvm.html)\n\n[Dependency Injection in Messaging Architectures](/ramblings/13_ioc.html) September 3, 2004 [messaging](/ramblings_messaging.html) [design](/ramblings_design.html)\n\nThe notion of Dependency Injection or Inversion of Control has generated quite a bit\n of interest lately. To a large extend, the move towards this architectural style is\n driven by developer's dissatisfaction with strong dependencies of individual components\n on their run-time container (for example, J2EE). These dependencies make it difficult\n or impossible to test components outside of their container, throwing a major monkey\n wrench into test-driven development of these types of applications. Dependency Injection\n avoids these dependencies and therefore improves testability. On a recent project\n we developed an event-driven architecture (intra-JVM, not distributed) and found that\n we could realize many of the same benefits. [Read more Âť](/ramblings/13_ioc.html)\n\n[Web Services Jeopardy](/ramblings/12_jeopardy.html) August 18, 2004 [webservices](/ramblings_webServices.html)\n\nIt is nearly impossible to keep track of all the Web Services (WS-*) specifications\n or proposed \"standards\". The matter is only worsened by the many competing proposals.\n Should you be using WS-Eventing or WS-Notification? How about WS-Reliability vs. WS-ReliableMessaging?\n Even if you choose the \"right\" specification, it still is likely to evolve over time.\n So are these standards useful at all for Web Services development today? I contend\n that they are, albeit in a somewhat unconventional way.... [Read more Âť](/ramblings/12_jeopardy.html)\n\n[Visualizing Dependencies](/ramblings/11_dependencies.html) July 12, 2004 [design](/ramblings_design.html) [visualization](/ramblings_visualization.html)\n\nMany of you have seen my rants on doodleware and top-down modeling. At the same time,\n anyone who has seen my book must believe me when I say that I am a very visual person.\n Is Gregor going schizophrenic (or becoming a hypocrite)? Not at all! I am a big fan\n of visual representations that are harvested from an actual running system and present\n the user with an accurate, big picture view of a working system. I felt it was time\n to put some money (time) where my mouth is and try to build such a solution and see\n what actually happens... [Read more Âť](/ramblings/11_dependencies.html)\n\n[JavaOne Redux](/ramblings/10_javaone.html) July 2, 2004 [events](/ramblings_events.html)\n\nFor a change I spoke at a conference without traveling halfway around the world. At\n over 15,000 attendees, JavaOne is one of the largest developer conferences. Unfortunately,\n the signal-to-noise ratio is not always all that great, but it is still a good place\n to meet old and new friends. This year's conference was littered with talk and demos\n on SOA, ESB, Web Services, orchestration etc. Here my impressions... [Read more Âť](/ramblings/10_javaone.html)\n\n[Correlation and Conversations](/ramblings/09_correlation.html) May 21, 2004 [messaging](/ramblings_messaging.html) [patterns](/ramblings_patterns.html) [conversations](/ramblings_conversations.html)\n\nWhen using asynchronous messaging, we can no longer rely on the linear, in-sequence\n execution of events. Therefore, the notion of correlating multiple messages is fundamental\n to designing robust messaging solutions. While correlation seems to be a simple concept\n at first glance, there are quite a few interesting nuances. [Read more Âť](/ramblings/09_correlation.html)\n\n[Integration Styles](/ramblings/08_integrationstyles.html) May 5, 2004 [integration](/ramblings_integration.html)\n\nA number of integration books classify integration into styles such as database integration,\n functional integration and so on. However, on closer examination it turns out that\n there is a fair amount of confusion about what these styles really mean. Let me give\n my view. [Read more Âť](/ramblings/08_integrationstyles.html)\n\n[No Escape From Integration](/ramblings/07_noescape.html) January 5, 2004 [design](/ramblings_design.html)\n\nI had never thought about having guest appearances on my ramblings, but this e-mail\n response from my friend Hyon made me laugh hard enough that I think it would be a\n waste not to share it with the community. [Read more Âť](/ramblings/07_noescape.html)\n\n[Hysteresis of Design Decisions](/ramblings/06_hysteresis.html) December 31, 2003 [design](/ramblings_design.html)\n\nDesign decisions can be influenced by many factors. In order to make matters more\n predictable, many architects look for clear-cut borderlines. How complex does my screen\n navigation have to be in order to justify a Front Controller as opposed to a Page\n Controller? How complex does my integration problem have to be to justify use of an\n EAI suite instead of hand wiring the solution? Invariably, the answer is \"it depends\".\n Let's have a closer look at why that is so. [Read more Âť](/ramblings/06_hysteresis.html)\n\n[The Dark Side of Encapsulation?](/ramblings/05_encapsulation.html) December 12, 2003 [architecture](/ramblings_architecture.html)\n\nEncapsulation and abstraction are the holy grail of today's software development.\n One of the great successes of hiding the implementation details under a common, abstracted\n interface are TCP/IP stacks. But as so often, overwhelming success can also have a\n flip side. [Read more Âť](/ramblings/05_encapsulation.html)\n\n[What Makes a Good Integration Developer?](/ramblings/04_skills.html) November 25, 2003 [integration](/ramblings_integration.html)\n\nWhen we assess the quality of a software engineer we don't look as much how long he\n has worked with a specific language but rather whether he or she has a good grasp\n of the underlying models and techniques, such as OO design, systems architecture.\n Still most EAI job offers sound like a software catalog: \"x years TIBCO IntegrationManager\",\n \"y years Vitria Businessware\" etc. etc. Some thoughts on what we should be really\n looking for... [Read more Âť](/ramblings/04_skills.html)\n\n[Hub and Spoke [or] Zen and the Art of Message Broker Maintenance](/ramblings/03_hubandspoke.html) November 12, 2003 [integration](/ramblings_integration.html)\n\nThe Hub-and-Spoke concept manifests itself in many ways in integration solution. Like\n any popular concept, it can sometimes cause as much confusion as it provides help. [Read more Âť](/ramblings/03_hubandspoke.html)\n\n[Doodleware](/ramblings/02_doodleware.html) November 1, 2003 [design](/ramblings_design.html) [integration](/ramblings_integration.html)\n\nMany integration tools offer graphical development tools. Do they really make integration\n easier? [Read more Âť](/ramblings/02_doodleware.html)\n\n[Integration Appliances](/ramblings/01_appliances.html) October 1, 2003 [integration](/ramblings_integration.html)\n\nIntegration appliances aim to make integration cheaper faster and more reliable. Is\n this technology ready for prime time? [Read more Âť](/ramblings/01_appliances.html)\n\n---", "znaku_textu": 61692, "slov": 8124, "odkazu": 152, "kodovani": "iso-8859-2", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/ramblings", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 14:54:27", "sha256": "84bcc8ef16869706f1403312a22996184a0d6139c99f7152022614f0ea265d3e", "hloubka": 3, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://www.infoq.com/presentations/hohpe-soa-conversations", "http://www.infoq.com/", "http://www.infoq.com/presentations/hohpe-soa-development", "http://www.drdobbs.com/an-asynchronous-world/184415001", "https://sites.google.com/site/gcodejp/slides/ProgrammingCloud_QCon.pdf", "https://architectelevator.com/blog", "https://www.twitter.com/ghohpe", "https://www.linkedin.com/today/author/ghohpe"]} {"url": "http://www.enterpriseintegrationpatterns.com/ramblings/01_appliances.html", "titulek": "Integration Appliances - Enterprise Integration Patterns", "h1": "Integration Appliances", "popis": "Integration appliances aim to make integration cheaper faster and more reliable", "klicova_slova": "", "kanonicka": "", "jazyk": "en_US", "robots_meta": "", "og": {"og:type": "article", "og:locale": "en_US", "og:site_name": "Enterprise Integration Patterns", "og:title": "Integration Appliances", "og:description": "Integration appliances aim to make integration cheaper faster and more reliable", "og:url": "https://www.enterpriseintegrationpatterns.com/ramblings/01_appliances.html"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Integration Appliances"}], "markdown": "Gregor's Ramblings\n\n---\n\n# Integration Appliances\n\nOctober 1, 2003\n\nFind my posts on IT strategy, enterprise architecture, and digital transformation\n at [ArchitectElevator.com](https://architectelevator.com/blog).\n\nIntegration is an odd animal. It's typically a lot more network centric than \n standard business applications because it deals with routing messages between \n different applications and locations. But integration is also different from \n typical IP-type networking because it is much more dependent on application \n specifics, such as message data formats or business logic. This fact has frustrated\n \n users for quite some time -- it seems like integration solutions are more difficult\n \n to build than stand-alone applications and at the same time are more difficult \n to operate than typical networking equipment, such as routers and switches.\n\nOne of the ideas that has been floating around the integration community is \n Why can't integration be more like networking? If we can route IP-based traffic \n using hardware routers, gateways and switches, can't we extend that model to \n application data. In fact, there are a number of striking similarities between \n the two technologies. For example, a number of our patterns use examples from \n the domain of TCP/IP. So if we could make networking smart enough to deal with \n application level data (sometimes called application-aware routing), we could \n hope to achieve the same reliability and low cost of operation that we accomplish\n \n with IP-based networking equipment today.\n\nThe Market\n\nThere are a few vendors on the market today that are exploring this approach. \n We can roughly split this market into two segments:\n\n- Hardware XML Processors\n- Integration Appliances\n\nThe first category includes devices that specialize in XML transformations \n using XSLT and XPATH. These devices can be configured to accept XML data in \n form of SOAP messages or as plain XML over HTTP, transform the data and route \n it to a new destination. That destination can be fixed or it can be determined \n on the fly based on the content of the message (effectively implementing a [Content-Based \n Router](../ContentBasedRouter.html)). Alternatively, these devices can be used as XSL co-processors from \n inside applications. Two vendors playing in this arena are [DataPower](http://www.datapower.com) \n and [Sarvega](http://www.sarvega.com) (please note \n that I do not endorse any specific vendor, I am simply listing the ones I have \n come across).\n\nThe second segment includes devices that provide additional integration functions,\n \n such as application adapters, transformation, routing, and orchestration, making \n them essentially [Message Brokers](../MessageBroker.html) in a box. \n Orchestration can be configured via custom UI tools or BPEL4WS files. Two vendors\n \n specializing in this segment are [Infotone](http://www.infotone.com) \n and [Cast Iron Systems](http://www.castironsys.com). \n The line between the two categories can blur a little bit as the XML processors \n start to include more powerful routing functions as well.\n\n[Wintergreen \n Research](http://wintergreenresearch.com/reports/XML_Final.htm) estimates that this market will be $2 billion in size in 2008. \n The fact that the forecast reaches out this far into the future might give us \n a hint that this market is still early in the life cycle. It also means that \n it's hard to prove the researchers wrong...who knows what we'll be doing in \n 2008? :-)\n\nThe Benefits\n\nThese appliances appear to promise three key benefits when compared to tradition \n EAI solutions:\n\n- Speed\n- Reliability\n- Manageability\n\nIn general, dedicated appliances can offer better performance than general-purpose\n \n PCs or servers because they can employ custom hardware and software combinations \n and because they do not have to carry with them the overhead of graphical user \n interfaces, user management, Web browsers and other non-core services. However, \n a potential drawback of using custom processing hardware is the increased cost \n and the reduced flexibility due to longer development cycles. Therefore, it \n makes sense for the vendors to use as much off-the-shelf hardware as possible. \n As a result, in some cases the appliances look suspiciously like a rack-mounted \n PC loaded with special software. Big performance gains can still be achieved \n by writing specific software modules in assembler or in another language that \n is closer to the actual hardware because portability is not a concern. As a \n result XML appliances can outperform many popular XML parsers and XSLT processors\n \n by a factor of 10 to 1. This is one of the key selling points for the Hardware \n XML Processor vendors.\n\nFewer moving parts also means fewer things that can go wrong. If you are running \n a small real-time OS and a purpose-built XSLT engine you do not have to worry \n about Blaster worms and applying the latest service pack. Some appliances also \n use backplanes with redundant power supplies to make the hardware itself more \n reliable, even though you can find the same things in most PC servers as well. \n Overall, the message is \"plug in and forget\".\n\nThe manageability aspect targets the high cost of ownership of existing EAI \n solutions. Compared to networking solutions, traditional EAI middleware solutions\n \n are very complex and unstable so that most projects have a very hard time to \n hand the solution over to the operations and sysadmin staff once it is in production.\n \n This tends to drive the total cost of ownership (TCO) through the roof because \n full-time developers are required to keep the solution running.\n\nNo Free Lunch\n\nSo where's the catch? The obvious trick is to find the correct balance between \n simplicity and flexibility. If the integration appliance is based on a PC architecture\n \n and contains all the functions that a typical EAI suite contains we might not \n have gained over a traditional EAI suite. Instead, we might have introduced \n new dependencies and a new form of vendor lock-in. The key is to find the correct\n \n levels of abstraction for the solution and isolate variability points. Done \n right, this will leave us with recurring functions efficiently implemented in \n hardware that require relatively little configuration and customization. For \n example, for a [Content-Based Router](../ContentBasedRouter.html) the \n only variability point might be a simple XPATH expression that determines where \n the message should be routed. Unfortunately, in real life things are rarely \n that easy and quickly the \"configuration\" turns into a full blown \n software development effort with all the required testing and debugging cycles. \n This is no different from many previous EAI vendors who told us that \"real\" \n development is no longer needed and all EAI solutions are just a matter of simple\n \n drag-drop configuration -- yeah right! The integration appliances are in danger \n of falling into the same trap or at least they have to deal with customers who \n just got burned by projects that turned from the promised 3 weeks of \"configuration\"\n \n into 12 months of heavy-duty development. I also think the appliances have to \n offer an additional premium in realized benefits to justify introducing another \n development platform to support.\n\nLuckily, some of the Web services standards reduce vendor lock-in through the \n promotion of common languages such as XSLT and BPEL4WS for transformation and \n orchestration. This would allow us to use our regular development suite, test \n out \"code\" on a regular development box and then deploy it to a dedicated \n device for maximum stability and performance. At this moment, there are still \n a number of hurdles like evolving standards and a variety of vendor-proprietary \n extensions. But at least we are moving the right direction.\n\nWhat Role do Patterns Play?\n\nWhy am I interested in this stuff? Developing a successful integration appliance \n requires vendors to identify commonly used constructs and distill them into \n reusable components that can be implemented inside the appliance. This effort \n shares some similarities with the search for patterns -- good solutions for \n recurring problems. There is, however, a small but important difference between \n the two. Patterns are by nature \"fuzzy\", they are not spec'd out components \n that are configured via an XML file. Patterns are solution concepts that can \n be translated or \"realized\" into an actual code solution. In my opinion, \n EAI is ripe with patterns but I think the jury is still out on whether EAI can \n be decomposed into reusable constructs. It will be interesting to see what the \n appliance vendors find. I will keep watching...\n\n*Share:*\n\n*Follow:* [Follow @ghohpe](https://twitter.com/ghohpe) [SUBSCRIBE TO FEED](../ramblings.rss)\n\n*More On:* [INTEGRATION](/ramblings_integration.html) [ALL RAMBLINGS](../ramblings.html)\n\nGregor is a cloud architect and author. He is a frequent speaker on asynchronous messaging,\n IT strategy, and cloud.", "znaku_textu": 8992, "slov": 1356, "odkazu": 50, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 15:37:00", "sha256": "c1e062dd8039314915258cbdfe8f0b28fbe4b6cfa8ae4c69573fc9748e026bd1", "hloubka": 4, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://architectelevator.com/blog", "http://www.datapower.com/", "http://www.sarvega.com/", "http://www.infotone.com/", "http://www.castironsys.com/", "http://wintergreenresearch.com/reports/XML_Final.htm", "https://twitter.com/share", "https://twitter.com/ghohpe", "https://leanpub.com/37things"]} {"url": "http://www.enterpriseintegrationpatterns.com/ramblings/02_doodleware.html", "titulek": "Doodleware - Enterprise Integration Patterns", "h1": "Doodleware", "popis": "Many integration tools offer graphical development tools", "klicova_slova": "", "kanonicka": "", "jazyk": "en_US", "robots_meta": "", "og": {"og:type": "article", "og:locale": "en_US", "og:site_name": "Enterprise Integration Patterns", "og:title": "Doodleware", "og:description": "Many integration tools offer graphical development tools", "og:url": "https://www.enterpriseintegrationpatterns.com/ramblings/02_doodleware.html"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Doodleware"}, {"uroven": 2, "text": "Fun with Doodleware"}, {"uroven": 2, "text": "Credits"}], "markdown": "Gregor's Ramblings\n\n---\n\n# Doodleware\n\nNovember 1, 2003\n\nFind my posts on IT strategy, enterprise architecture, and digital transformation\n at [ArchitectElevator.com](https://architectelevator.com/blog).\n\nI am a very visual person. I enjoy sketching and holding facilitated workshops where\n I draw system diagrams on a whiteboards based on user feedback. My interest in this\n type of work actually inspired me to create the visual language that accompanies the\n pattern language in *[Enterprise Integration Patterns](../books1.html)*. So you can figure that I am a strong supporter of diagrams and visual notations.\n However, I see many of the visual editors embedded in integration suites (and increasingly\n in IDE's) as a double-edged sword. Let me explain...\n\nOne of the big benefits heralded by most EAI vendors (and Web services vendors) is\n the ease of use of the visual development environment (disparagingly called \"doodleware\"\n by hard-core developers) and the resulting increase in productivity. These suites\n typically include visual transformation editors, workflow or orchestration editors,\n schema editors, component assembly tools and the like.\n\nI believe that graphical representations are a great way to visualize the system architecture\n and dependency of a complex system. Particularly in loosely coupled, asynchronous\n systems it can be very difficult for the developers to maintain a \"big picture\" view\n of what is going on in the system. A handful of components communicating via publish-subscribe\n channels or message queues is usually sufficient to cause confusion and make testing\n and debugging difficult. In these situations, a visual representation of the data\n or control flow can be invaluable. Since manually created documentation is bound to\n be outdated and therefore inaccurate, automatic creation of visual documentation can\n be enormously useful. This realization was one of the main motivations for me to create\n the *[TibDoc](http://www.hohpe.com/Gregor/Work/portfolio.html#TibDoc)* tool that analyzes the TIBCO middleware repository and automatically renders the\n system data flow as a diagram.\n\nHowever, I am skeptical whenever visual representations are positioned as programming\n tools, essentially replacing our trusted code editors. These presentations are usually\n accompanied by claims of increased productivity, a reduced learning curve, or independence\n from expensive integration developers. I believe that the difficulty of developing\n a solution is primarily tied to the complexity of the underlying programming model.\n For example, transformations from one document format to another are usually based\n on a functional programming model, for example XSLT. In order to build such solutions,\n developers have to understand concepts like templates, regular expressions, or complex\n functions. Putting a visual veneer over such a programming model is unlikely to suddenly\n enable business analysts to create complex transformations without any technical help.\n In some cases, the visual tools even can make developing and debugging more difficult\n because the user is yet another step further removed from what is actually happening\n inside the system.\n\nAll too often such a visual veneer is used in management demos to demonstrate the\n apparent ease of use. Instead of being lured by pretty pictures, I advise clients\n to evaluate the ease of use by asking the vendor to show the realization of common\n *design patterns* using the tool. For example, a frequent design pattern for data transformation is\n a *[Content Enricher](../DataEnricher.html)* or a structural transformation from a system with a many-to-many relationship to\n a system with a single entity. A great pattern to assess the capabilities of an orchestration\n or process modeling tool is the *[Aggregator](../Aggregator.html)* because it occurs frequently in real life and is inherently event-driven and stateful.\n\nIn some cases, visual notations are very natural and make developing solutions more\n intuitive. For example, UML activity diagrams are a great way to depict multiple parallel\n activities with fork and synchronization (join) points. This is something that is\n much harder to express with line of code which are naturally linear. Therefore, an\n activity modeling tool can be a very worthwhile addition to a development suite. However,\n it is important that the model is seen as an *addition*, not a replacement for actual code. Too often I have seen very pretty visual editors,\n but dare you have to write a line of code! Coders get a multi-line edit box with proportional\n fonts and no syntax highlighting. An effective development tool must support the creation\n of components or activities using state-of-the-art code editors, combined with visual\n tools for component assembly or orchestration development. This includes syntax coloring,\n version control, good print features, visual diff tools, automatic code completion,\n refactoring and other features that we have come to love from successful IDE's such\n as IntelliJ, Eclipse and Visual Studio. In my opinion, code-free integration is a\n vision and not a reality. So until we get there, please give us developer-friendly\n code editors!\n\nSometimes I actually think that it would benefit developers and vendors alike if EAI\n vendors stopped attempting to create their own IDE's and instead developed Eclipse\n plug-ins. This way, the vendor can leverage an existing open-source infrastructure\n for code editing and can augment it with proprietary plug-in for transformations,\n orchestrations or metadata editing. If you have seen the beta version of the upcoming\n Microsoft BizTalk Server 2004 release you can see that Microsoft is heading a similar,\n if a bit more proprietary route. While integration with Eclipse may be an unlikely\n step, the new BizTalk editors plug into the Visual Studio .NET IDE, so that designing\n an orchestration or transformation is done in the same environment as writing C# code.\n\n## Fun with Doodleware\n\nOrjan Lundberg reminded me that I forgot to mention a very important aspect of doodleware:\n using it to doodle when the system is down or the clients can't make up their minds.\n Here is a great collection of [EAI doodle-art](http://www.geocities.com/im_art_competition/IM_ART.html) .\n\n## Credits\n\nAfter some poking around I found that the term \"Doodleware\" was indeed coined by ThoughtWorks'\n own [Jason Borro](http://www.drewnoakes.com/gallery/viewPhoto.jsp?photoId=2460&selectionId=3591).\n\n*Share:*\n\n*Follow:* [Follow @ghohpe](https://twitter.com/ghohpe) [SUBSCRIBE TO FEED](../ramblings.rss)\n\n*More On:* [DESIGN](/ramblings_design.html) [INTEGRATION](/ramblings_integration.html) [ALL RAMBLINGS](../ramblings.html)\n\nGregor is a cloud architect and author. He is a frequent speaker on asynchronous messaging,\n IT strategy, and cloud.", "znaku_textu": 6814, "slov": 995, "odkazu": 49, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 15:36:59", "sha256": "6af703ac423489263bb2a10f0b0b3fbba3bbd4ba89d46bcce93c8b0e0e1c641a", "hloubka": 4, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://architectelevator.com/blog", "http://www.hohpe.com/Gregor/Work/portfolio.html", "http://www.geocities.com/im_art_competition/IM_ART.html", "http://www.drewnoakes.com/gallery/viewPhoto.jsp?photoId=2460&selectionId=3591", "https://twitter.com/share", "https://twitter.com/ghohpe", "https://leanpub.com/37things"]} {"url": "http://www.enterpriseintegrationpatterns.com/ramblings/03_hubandspoke.html", "titulek": "Hub and Spoke [or] Zen and the Art of Message Broker Maintenance - Enterprise Integration Patterns", "h1": "Hub and Spoke [or] Zen and the Art of Message Broker Maintenance", "popis": "The Hub-and-Spoke concept manifests itself in many ways in integration solution", "klicova_slova": "", "kanonicka": "", "jazyk": "en_US", "robots_meta": "", "og": {"og:type": "article", "og:locale": "en_US", "og:site_name": "Enterprise Integration Patterns", "og:title": "Hub and Spoke [or] Zen and the Art of Message Broker Maintenance", "og:description": "The Hub-and-Spoke concept manifests itself in many ways in integration solution", "og:url": "https://www.enterpriseintegrationpatterns.com/ramblings/03_hubandspoke.html"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Hub and Spoke [or] Zen and the Art of Message Broker Maintenance"}, {"uroven": 2, "text": "Integration Spaghetti"}, {"uroven": 2, "text": "Hub and Spoke to the Rescue"}, {"uroven": 2, "text": "Integration Hubs"}, {"uroven": 2, "text": "Data Format Considerations"}, {"uroven": 2, "text": "The Metadata Hub"}, {"uroven": 2, "text": "No Free Lunch"}, {"uroven": 2, "text": "Your Mileage May Vary"}, {"uroven": 2, "text": "Addendum"}], "markdown": "Gregor's Ramblings\n\n---\n\n# Hub and Spoke [or] Zen and the Art of Message Broker Maintenance\n\nNovember 12, 2003\n\nFind my posts on IT strategy, enterprise architecture, and digital transformation\n at [ArchitectElevator.com](https://architectelevator.com/blog).\n\n## Integration Spaghetti\n\nAnyone who sat through an EAI vendor presentation or has spent more than a few days\n on an integration project surely has come across the idea of a *Hub-and-Spoke* architecture. The basic idea of Hub-and-Spoke is pretty simple. It stems from the\n realization that a completely connected graph of *n* nodes requires *n* / 2 * (*n* -1) edges. If the graph is directed (more closely modeling typical integration systems\n with unidirectional channels) the number climbs to *n* * (*n* - 1). The scary part about this formula is the fact that the number of edges grows\n with the square of the number of nodes. For example, while 4 nodes require only 6\n connections, 8 nodes already require 28 edges. The picture often associated with the\n dilemma looks like this:\n\n## Hub and Spoke to the Rescue\n\nThe general idea is that we can avoid the combinatorial explosion of the number of\n edges if we can replace the \"web\" with something that resembles a wheel with a central\n hub and spokes going out to all the nodes. In such a topology, the number of edges\n is equal to the number of nodes, which means it grows linearly.\n\nThe airlines (and FedEx) have been implementing this idea for quite some time. It\n is much too expensive to fly airplanes directly from everywhere from anywhere. Instead,\n each carrier maintains a small number of central hubs and tries to route as many flights\n as possible through these hubs.\n\n## Integration Hubs\n\nSo far, so good. Hub-and-Spoke seems to be a great idea, so what else is there to\n say about it? When translating the concept of hub and spoke to the world of integration\n it is useful to have a closer look at what a *connection* between two systems really entails, i.e. what does the line between two boxes really\n represent? In some cases, the line might be a message queue, in other cases it might\n be a publish-subscribe topic or in yet other cases it might be the URI. So depending\n on the system, having a lot of lines might now immediately a problem. While it sure\n would be a pain to setup a lot of message queues, publish-subscribe topics and URI's\n are largely logical concepts and having a lot of them night mean a bit more maintenance\n but is unlikely to be the end of the world.\n\nBut the Hub-and-Spoke architecture also provides another significant benefit -- it\n decouples sender and receiver by inserting an active mediator in the middle - the\n hub. For example, this hub can perform the important function of routing incoming\n messages to the correct destination. As such, it decouples the sender of the message\n from having to know the location of the receiver. Having all messages travel though\n a central component is also great for logging messages or to control message flow.\n The Hub-and-Spoke style applied in this manner is commonly referred to as [Message Broker](../MessageBroker.html) because the hub brokers messages between the participants.\n\n## Data Format Considerations\n\nA [Message Broker](../MessageBroker.html) should also include a protocol translation and data transformation function. For\n example, a message may arrive via a message queue, but has to be passed on via HTTP.\n Also, location transparency is only an illusion unless data format translation is\n also provided. Otherwise, a change in the destination (i.e. a request in form of a\n message is now being serviced by another component) is very likely to require a change\n in the message data format. Without a [Message Translator](../MessageTranslator.html) in between, the message originator would also have to be changed. Therefore, the\n implementation of this type of Hub-and-Spoke architecture typically includes data\n format translation capabilities.\n\n## The Metadata Hub\n\nThe issue of data format translation raises a new point. Let's consider a scenario\n where each participant uses a different data format. If the [Message Broker](../MessageBroker.html) has to be able to forward any message to any other participant (possibly depending\n on a set of conditions), the broker now has to be able to convert between any data\n format and any other data format. While we solved the n-square problem at the physical\n level by inserting a central hub it seems that we are now facing the same problem\n at the data format level because creating a [Message Translator](../MessageTranslator.html) between all possible combinations of *n* participants requires *n* / 2 * (*n* -1) translators. This notion is illustrated by the following diagram where every\n green dot indicates a required message format translation.\n\nWhat gives? Are we always going to be haunted by the n-square problem? Not necessarily.\n We can apply the same hub-and-spoke concept to the issue of message formats, that\n is at the metadata level (metadata is the data that describes the format of messages).\n By introducing a \"metadata hub\" we can reduce the problem from n-square to a linear\n problem the same way as with the n-square physical connections. But what does a \"metadata\n hub\" look like? This time it is not a physical component, but a [Canonical Domain Model](../CanonicalDataModel.html) that is common between all participants. When a message flows from participant A\n to participant B, the message format is first translated from A into the canonical\n format, and then from the canonical format into format B. It is sufficient to have\n a translation between each participant format and the canonical format, i.e. *n* translations for *n* participants (or 2**n* if our transformations are unidirectional). Sometimes this concept is called \"Semantic\n Hub-and-Spoke\" but I generally prefer [Canonical Domain Model](../CanonicalDataModel.html) to avoid confusion.\n\n## No Free Lunch\n\nAre there any downsides to using a Hub-and-Spoke architecture? As always, there is\n no free lunch, so we expect to see some trade-offs. First of all, inserting a hub\n into the lines communication can cause additional overhead. Each message now has to\n make two hops instead of one, with a potential routing decision in between. This is\n likely to increase the latency of a message flowing between participants, just like\n a layover at an airline \"hub\" is going to make for a much longer journey than a direct\n flight. The hub can also become a performance bottle neck since all messages have\n to travel though this hub. In some cases we can mitigate this risk my deploying multiple\n instances of the hub process. In this case the hub is centrally configured at design-time,\n but distributed at run-time.\n\nAnother challenge can be the complexity of the hub. We now have to create a single\n thing that can accommodate each and every participant and data format. This concern\n also applies to the [Canonical Domain Model](../CanonicalDataModel.html). We have to find a common data representation that suits every participant equally\n well -- an effort that is all too rarely blessed with success (this might be worthy\n of a separate rambling).\n\n## Your Mileage May Vary\n\nIs Hub-and-Spoke the answer to every integration scenario? As always, the answer has\n to be a resounding \"it depends!\" If we look back at the original pictures and the\n motivation, you notice that two (somewhat related) assumptions were baked into the\n picture:\n\n- The graph is fully connected\n- The solution is completely symmetric, i.e. there is no layering or such\n\nIn reality this is rarely the case. Typically, we can layer services into infrastructure\n services that have little external dependencies and layer other services on top of\n these services. The resulting picture looks much more like a tree than a fully connected\n graph. In those cases, a [Message Broker](../MessageBroker.html) may still play a useful role as a level of indirection (i.e. acting as a directory\n of available services), but the n-square problem steps into the background.\n\n## Addendum\n\nI just noticed that Russell Levine published an [article](http://www.bijonline.com/Article.asp?ArticleID=800&DepartmentID=7) on this very topic in the November issue of Business Integration Journal (formerly\n EAI Journal). I guess great minds do think alike :-)\n\n*Share:*\n\n*Follow:* [Follow @ghohpe](https://twitter.com/ghohpe) [SUBSCRIBE TO FEED](../ramblings.rss)\n\n*More On:* [INTEGRATION](/ramblings_integration.html) [ALL RAMBLINGS](../ramblings.html)\n\nGregor is a cloud architect and author. He is a frequent speaker on asynchronous messaging,\n IT strategy, and cloud.", "znaku_textu": 8588, "slov": 1385, "odkazu": 47, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 15:35:24", "sha256": "125db1021b4f11d3df1c0f8c244f77efad57628411441905ab7ab87a4edab15a", "hloubka": 4, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://architectelevator.com/blog", "http://www.bijonline.com/Article.asp?ArticleID=800&DepartmentID=7", "https://twitter.com/share", "https://twitter.com/ghohpe", "https://leanpub.com/37things"]} {"url": "http://www.enterpriseintegrationpatterns.com/ramblings/04_skills.html", "titulek": "What Makes a Good Integration Developer? - Enterprise Integration Patterns", "h1": "What Makes a Good Integration Developer?", "popis": "When we assess the quality of a software engineer we don't look as much how long he has worked with a specific language but rather whether he or she has a good grasp of the underlying models and techniques, such as OO design, systems architecture", "klicova_slova": "", "kanonicka": "", "jazyk": "en_US", "robots_meta": "", "og": {"og:type": "article", "og:locale": "en_US", "og:site_name": "Enterprise Integration Patterns", "og:title": "What Makes a Good Integration Developer?", "og:description": "When we assess the quality of a software engineer we don't look as much how long he has worked with a specific language but rather whether he or she has a good grasp of the underlying models and techniques, such as OO design, systems architecture", "og:url": "https://www.enterpriseintegrationpatterns.com/ramblings/04_skills.html"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "What Makes a Good Integration Developer?"}, {"uroven": 2, "text": "Good Developers are Cheap"}, {"uroven": 2, "text": "Skills Framework"}, {"uroven": 2, "text": "The Integration Octopus"}, {"uroven": 2, "text": "Asynchronous Messaging Architectures"}, {"uroven": 2, "text": "Process Modeling"}, {"uroven": 2, "text": "Rule-based Systems"}, {"uroven": 2, "text": "Network Architectures"}, {"uroven": 2, "text": "Object-Oriented Development"}, {"uroven": 2, "text": "Conclusion"}], "markdown": "Gregor's Ramblings\n\n---\n\n# What Makes a Good Integration Developer?\n\nNovember 25, 2003\n\nFind my posts on IT strategy, enterprise architecture, and digital transformation\n at [ArchitectElevator.com](https://architectelevator.com/blog).\n\n## Good Developers are Cheap\n\nOver time, a number of statistics have shown that the top developers outperform the\n average developers (not even talking about the bad ones) by an order of magnitude\n or so. As it turns out that the top developers do not earn 10 times the average salary,\n these guys (and girls) are a steal. Every company should then aim to get a hold of\n these \"top quartile\" developers, assuming the individuals demonstrate a minimum amount\n of social behavior. There are two main stumbling blocks in this chain of logic that\n I have seen. First, a company may not want hot shot developers out of fear that such\n a person may unsettle the equilibrium of average developers (or because the boss hates\n people who are smarter than he is). The second reason is that many companies do not\n know how to attract and evaluate hot shot developers. When it comes to assessing the\n quality of a developer, counting years of experience is an enticingly simple metric,\n but it is about equally flawed to using lines of code as a metric for productivity.\n\nOver time people have learned that years of experience with a certain technology are\n not a good predictor of a candidate's performance. Yes, applicable technology experience\n is important as a bottom bar, but once a person has 1 or 2 years real experience using\n vendor X's tool or programming language Y, it is unlikely that we can find the great\n developer by asking for 5 years. Instead, we need to focus on how well the person\n understands the underlying concepts and principles, such as object-oriented design\n techniques. In recent years *patterns* have become almost the de facto standard for knowledge of these underlying principles.\n Interestingly, in this context patterns have almost become the victim of their own\n success. Every self-respecting developer can't help but spew out big words like *factory*, *decorator*, or *observer*. It's almost like developers brag about how many patterns they know -- an exercise\n not much more useful than counting lines of code. [oops -- this is starting to sound\n like a whole new topic -- back on track :-) ]\n\n## Skills Framework\n\nSo what can help more fairly assess an individual's skill set or the skills balance\n on a development team? A few years ago I developed a simple skills framework to ensure\n the proper skills balance on an integration project. I started by creating a tiered\n framework that ranges from generic to specific. Here are the categories I came up\n with (The first six items form a hierarchy while the last two stand on their own):\n\n- Computer Science / Algorithms\n- Modeling / Patterns\n- Languages\n- Development Tools\n- Packaged Applications\n- Operating Systems / Platforms\n- Architecture\n- Software Engineering / Best Practices\n\nTo illustrate the framework, a real person might know how to perform tree searches,\n sorts, or linked lists (or at the top of the food chain be familiar with Don Knuth's\n [The Art of Computer Programming](http://www.amazon.com/exec/obidos/ASIN/0321751043/enterpriseint-20)). On top of that the same person might understand object-oriented design principles\n and common design patterns, such as the proverbial *Abstract Factory*. He or she applies those patterns when programming in Java or C#, using the respective\n run-time libraries. A good knowledge of a refactoring IDE such as IntelliJ, Eclipse\n or Visual Studio (well, if you wait for the Whidbey release or use the Refactory add-on)\n certainly helps productivity. Since it is more and more likely that new applications\n interface with existing, packaged applications we cannot ignore those either. So a\n good grasp of SAP iDocs or some other package API is useful. Lastly, being able to\n administer and work with the OS of choice (this should include things like file or\n network services) or the database platform rounds off the skill set of the developer.\n Architecture is a fuzzy and broad enough skill that I will dodge it for now, but most\n of us will agree that a good developer should understand best practices such as test-first\n development and refactoring.\n\nI consider all levels of the framework important, a good balance is certainly a strong\n asset. However, if I had to choose a single level it would have to be the programming\n models and associated patterns level. This is the skill that defines a developer's\n command of the underlying structures, design elements and constraints. In the object-oriented\n world, this would mean knowing how to achieve encapsulation and separation of concerns\n by using interfaces, inheritance, polymorphism, abstract base classes and the like.\n The interesting part is that in general the number of these constructs is relatively\n small, but the does and don'ts (i.e. the common patterns) around these constructs\n are plentiful. These tends to be the areas of higher conceptual complexity where 3\n or 4 years of experience vs. 1 year experience do make a big difference.\n\n## The Integration Octopus\n\nSo how can we can map all this back to integration? Like an application developer,\n an integration developer has to work with [IDEs of sorts](02_doodleware.html), do some coding and understand the packages that need to be integrated. When we examine\n the category \"models and patterns\" as it relates to integration, though, it appears\n to me that it requires a much broader range of knowledge.As a first attempt I tried\n to summarize the underlying models as follows:\n\n- Asynchronous Messaging Architectures\n- Process Modeling\n- Rule-based Systems\n- Network Architectures\n- Object-Oriented Development\n\nTo me this variety of underlying programming models is part of the reason integration\n is (and remains) so difficult (the other reason is the inherently large scale of the\n solutions). Let's look at each of those briefly.\n\n## Asynchronous Messaging Architectures\n\nMany integration solutions are based on message queues and publish-subscribe channels.\n Kilewise, there is also a considerable amount of energy around enabling Web services\n to support reliable, asynchronous messaging. Just like in the world of object-oriented\n systems, the basic constructs of this architecture are very simple: you deal with\n components, connected by message channels, which can buffer messages between sender\n and receiver. However, the correct use of such an architecture is a reasonably extensive\n topic (we managed to write a 700 page book about it!). One of the issues at the core\n of asynchronous messaging is for example the lack of a call stack, so the developer\n is responsible for keeping track what needs to happen next once a method completes.\n For an extensive treatment of design decisions in the world of asynchronous messaging,\n have a close look at the [patterns on this site](../toc.html) or, better yet, get [the book](../books1.html) :-)\n\n## Process Modeling\n\nOnce multiple participants exchange messages, it is likely that each participant executes\n an internal process to track the state of the conversation. Most EAI suites allow\n us to model these processes using specialized modeling tools (which can be [a lot of fun](http://www.geocities.com/im_art_competition/IM_ART.html)). Again the underlying constructs and constraints of process modeling are very different\n from traditional procedural or object-oriented development. Process models focus on\n parallel execution, concurrent tasks and synchronization points. Also, a process definition\n tends to be much more driven by data flow than by the association of data and behavior\n as it is common in the object-oriented world. If you want to find out more about the\n theoretical underpinnings on how these process languages (for example, BPEL) differ\n from traditional programming languages, you might want to have a look at the [π calculus](http://www.amazon.com/exec/obidos/ASIN/0521643201/enterpriseint-20) (hint: most traditional programming languages are based on the λ calculus).\n\n## Rule-based Systems\n\nRule-based systems are yet another animal with its own set of constructs, rules and\n constraints. Rule-based systems appear in integration in two primary spots: business\n rules and transformations. Business rules deserve pretty little explanation -- they\n are commonly embedded in a process definition: \"if the order is larger than $1000,\n it has to be approved by a supervisor first\" type of stuff. As these rules become\n more complex, it makes sense to maintain them in a dedicated rules engine so that\n they are easier to test and maintain. Rules are usually not executed sequentially\n either. There are usually chosen by criteria such as specificity and priority. That\n means that the exact execution path of a rules engine might not be know at design\n time -- a scary thought for application developers that are used to being able to\n step through sequential code line by line. Some rule based systems are based on predicates,\n sort of a relic from the AI days. The key is that predicate logic is *declarative* rather than procedural, which means that its correctness does not depend on the order\n of execution. The second home of rule-based systems are transformations a la XSLT.\n Anyone who has tried to debug an XSL stylesheet can appreciate the pitfalls of declarative\n programming. XSL \"chooses\" the next templates based on pattern matching and specificity.\n Many EAI tools supply visual editors for transformation tasks, but as long as XSLT\n and XPATH live underneath, developing and debugging these components will always feel\n unnatural and difficult to developers who are used to sequential, procedural logic.\n\n## Network Architectures\n\nIf all this computer science babble was not enough, integration architectures also\n have a lot to do with networks. Not only does a good knowledge of IP networking help\n with designing integration solutions (I would count that as a \"platform skill\"), but\n the underlying principles are different yet again. Now we need to concern ourselves\n with graphs, shortest paths, dynamic routing, and algorithms by Ford-Fulkerson, Dijkstra\n and friends.\n\n## Object-Oriented Development\n\nAnd last but not least, most integration solutions have significant code components\n that are best implemented using object-oriented languages and paradigms. So we expect\n the developer of these pieces to be fluent in OOAD, design patterns and related topics.\n\n## Conclusion\n\nSo does every integration developer worthy of a pay check have to be fluent in predicates,\n π calculus, graph theory and asynchronous architectures? Surely not (actually, that\n assumption would surely put a lot of us out of work!). However, this little tour though\n the theoretical underpinnings of integration solution hopefully leaves you with two\n thoughts. First, integration remains a complex field regardless of how many UI layers\n we put on top of it because the underlying programming models are inherently varied\n and complex. Second, the next time we look at a resume or compose a \"wanted\" ad we\n may go beyond the \"X years with tool ABC\" approach and see whether the candidates\n have at least a basic command of the underlying design principles and paradigms.\n\n*Share:*\n\n*Follow:* [Follow @ghohpe](https://twitter.com/ghohpe) [SUBSCRIBE TO FEED](../ramblings.rss)\n\n*More On:* [INTEGRATION](/ramblings_integration.html) [ALL RAMBLINGS](../ramblings.html)\n\nGregor is a cloud architect and author. He is a frequent speaker on asynchronous messaging,\n IT strategy, and cloud.", "znaku_textu": 11577, "slov": 1809, "odkazu": 49, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 15:36:58", "sha256": "ab587010f64e18a74c38075ba6d7876fa1014d4eabdbe615375a101466267a8a", "hloubka": 4, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://architectelevator.com/blog", "http://www.amazon.com/exec/obidos/ASIN/0321751043/enterpriseint-20", "http://www.geocities.com/im_art_competition/IM_ART.html", "http://www.amazon.com/exec/obidos/ASIN/0521643201/enterpriseint-20", "https://twitter.com/share", "https://twitter.com/ghohpe", "https://leanpub.com/37things"]} {"url": "http://www.enterpriseintegrationpatterns.com/ramblings/05_encapsulation.html", "titulek": "The Dark Side of Encapsulation? - Enterprise Integration Patterns", "h1": "The Dark Side of Encapsulation?", "popis": "Encapsulation and abstraction are the holy grail of today's software development", "klicova_slova": "", "kanonicka": "", "jazyk": "en_US", "robots_meta": "", "og": {"og:type": "article", "og:locale": "en_US", "og:site_name": "Enterprise Integration Patterns", "og:title": "The Dark Side of Encapsulation?", "og:description": "Encapsulation and abstraction are the holy grail of today's software development", "og:url": "https://www.enterpriseintegrationpatterns.com/ramblings/05_encapsulation.html"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "The Dark Side of Encapsulation?"}, {"uroven": 2, "text": "Interface vs. Implementation"}, {"uroven": 2, "text": "How Does TCP/IP Really Work?"}, {"uroven": 2, "text": "Reinventing the Wheel?"}, {"uroven": 2, "text": "Hide Complexity, Share Knowledge"}], "markdown": "Gregor's Ramblings\n\n---\n\n# The Dark Side of Encapsulation?\n\nDecember 12, 2003\n\nFind my posts on IT strategy, enterprise architecture, and digital transformation\n at [ArchitectElevator.com](https://architectelevator.com/blog).\n\n## Interface vs. Implementation\n\nIt has been stated many times that computer science is the field where every problem\n can be solved by just one more level of indirection. One instance of such indirection\n is the separation between interface and implementation. This programming construct\n manifests itself in many different technologies, such as object-oriented programming,\n as a language construct of virtually all contemporary programming languages (even\n Visual Basic!), and as a core concept of service-oriented architectures, which feature\n standards-based WSDL interface descriptions.\n\nThe core driver behind the separation of public interface and internal implementation\n is twofold:\n\n- The interface allows the implementation to vary without users of the interface having\n to know about it.\n- The interface can hide complex implementation details.\n\nHiding complex implementation details is likely the more challenging (and more abused)\n aspect of encapsulation. Too many times we see developers who purportedly abstracted\n the internals of their class be wrapping all class variables using getter/setter accessor\n methods. While this approach does provide a level of indirection, it hardly provides\n any abstraction or hiding of implementation internals. If each variable is accessible\n through a setter and getter method, the amount of knowledge that any developer has\n about the class internals is no less than is the class was simply exposing public\n properties. True encapsulation on the other hand happens when a complex implementation\n is wrapped with a much simpler public interface. In some cases, the interface can\n even present a programming model that is quite different from the internal implementation.\n\n## How Does TCP/IP Really Work?\n\nWhen most application developers think about TCP/IP these days, they think about streams\n of data that are about as easy to use as writing data to or reading from a file. The\n abstraction that the TCP/IP stack provides to higher-level application programs is\n that of a connection-oriented data stream model. The internal implementation is in\n fact quite different. TCP/IP is layered on top of the basic IP layer, which provides\n nothing much besides the unreliable routing of individual data packets. In order to\n achieve the illusion of a reliable data stream, TCP/IP has to deal with issues such\n as the retransmission of lost packets, resequencing of out of order packets, and\n elimination of duplicate packets. Much of the design of TCP is concerned with window\n size, the frequency of acknowledgement messages, and issues such as the Silly Window\n Symptom. However, none of these complexities surface in the public interface.\n\nThe Network stack is a great example of a *Layered Architecture*, where each layer encapsulates the implementation details of the layers below. Which\n application designer really needs to know how TCP works, leave alone the \"lower\" layers\n like the physical network layer.\n\n## Reinventing the Wheel?\n\nThe odd thing is that the successful encapsulation of the internal complexities of\n the lower layers can have an undesired side effect: users of the abstracted interface\n tend to forget how the lower layers already solve some of those problems that might\n reoccur at a higher level. This phenomenon has caused more than one integration developer\n to \"invent\" message resequencing and / or retransmission schemes very analogous to\n those already implemented inside any IP stack.\n\nThis results in a number of apparent disadvantages.\n\n- Developing a resequencing or resending algorithm means spending unnecessary design\n effort because the problem has already been solved before.\n- Recreating such a mechanism is likely to be less robust than the implementation incorporated\n in the IP stack. TCP networking has evolved over many years, has been reviewed by\n many experts and is very reliable. The few remaining weaknesses are well understood.\n It is unlikely that a quick-and-dirty solution developed at the application level\n is going to be that reliable.\n- Solving a problem multiple times at different layers in a layered architecture can\n lead to inefficiencies. If a lower layer already resequences packages, do we really\n have to do it again at a higher level? Or can we get away without performing it at\n the lower level? Especially in asynchronous messaging architectures, it seems odd\n that people use a reliable, connection oriented protocol (TCP/IP), layer a connection-less,\n synchronous protocol on top (HTTP), then make it asynchronous (e.g., for asynchronous\n Web Services), just to having to make it reliable again (e.g., using WS-ReliableMessaging).\n Some vendors have recognized these inefficiencies. For example, this realization was\n one of the drivers for TIBCO to create the RendezVous protocol directly on top of\n IP instead of TCP/IP with its associated overhead.\n\nSo should every developer go study IP stack implementations? Well, knowledge never\n hurts, but that may be asking a bit much. One would have to wade through these 1000\n page tomes just to harvest a few design ideas. This is where design patterns come\n in handy. The patterns allow us to pass knowledge from the lower layers up the stack\n in form of design guidance without getting stuck in low-level technical details such\n as the whether the IP address is transmitted in big endian or little endian format.\n In fact, many of the design patterns documented in [*Enterprise Integration Patterns*](../books1.html) make references to TCP/IP implementation considerations. In case you do want to know\n all the dirty details of IP networking I can highly recommend the books by [Stevens](../books1.html) or Tanenbaum.\n\n## Hide Complexity, Share Knowledge\n\nIn summary, encapsulation is a great thing. It dramatically reduces the complexity\n of developing software by allowing us to solve problems at a higher level of abstraction\n without getting bogged down in the details. However, in some cases it may be useful\n to hide the implementation complexities of lower layers but to make a concerted effort\n to share the knowledge embodied in them. I hope patterns can help us do this.\n\n*Share:*\n\n*Follow:* [Follow @ghohpe](https://twitter.com/ghohpe) [SUBSCRIBE TO FEED](../ramblings.rss)\n\n*More On:* [ARCHITECTURE](/ramblings_architecture.html) [ALL RAMBLINGS](../ramblings.html)\n\nGregor is a cloud architect and author. He is a frequent speaker on asynchronous messaging,\n IT strategy, and cloud.", "znaku_textu": 6655, "slov": 1007, "odkazu": 44, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 15:36:57", "sha256": "714cd099c4df0b8672eae7ce9f1f5392198bef3ba4e01dd35933bc3df05a9711", "hloubka": 4, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://architectelevator.com/blog", "https://twitter.com/share", "https://twitter.com/ghohpe", "https://leanpub.com/37things"]} {"url": "http://www.enterpriseintegrationpatterns.com/ramblings/06_hysteresis.html", "titulek": "Hysteresis of Design Decisions - Enterprise Integration Patterns", "h1": "Hysteresis of Design Decisions", "popis": "Design decisions can be influenced by many factors", "klicova_slova": "", "kanonicka": "", "jazyk": "en_US", "robots_meta": "", "og": {"og:type": "article", "og:locale": "en_US", "og:site_name": "Enterprise Integration Patterns", "og:title": "Hysteresis of Design Decisions", "og:description": "Design decisions can be influenced by many factors", "og:url": "https://www.enterpriseintegrationpatterns.com/ramblings/06_hysteresis.html"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Hysteresis of Design Decisions"}, {"uroven": 2, "text": "Defining Boundaries"}, {"uroven": 2, "text": "Hysteresis"}, {"uroven": 2, "text": "Hysteresis of Software Design"}], "markdown": "Gregor's Ramblings\n\n---\n\n# Hysteresis of Design Decisions\n\nDecember 31, 2003\n\nFind my posts on IT strategy, enterprise architecture, and digital transformation\n at [ArchitectElevator.com](https://architectelevator.com/blog).\n\n## Defining Boundaries\n\nFinding more precise and repeatable ways to make design decisions seems to be the\n holy grail of software development productivity. Compilers already perform the tedious\n task of converting high-level instructions into low-level assembly codes or byte codes.\n There is little debate that the transition from coding in assembler to coding in high-level\n programming languages has brought productivity gains. Similar gains are now being\n sought by a number of groups around the Model Driven Architecture (MDA) movement.\n The basic promise of the MDA is that instead of writing solutions in a high-level\n programming language, developers / analysts will define a platform-independent model\n of the problem to be solved and leave the code generation to a model compiler. Of\n course, this compiler will have to make design decisions during the code generation.\n This forces the developers of the model compiler to find precise guidelines on when\n one design is preferred over another one, much like a novice developer expects clear-cut\n answers on questions like \"should I use a factory?\" or \"is it worthwhile to extract\n a common base class?\". Most of the time, the novice developer is frustrated that\n the master developer cannot give him a clear dividing line for such decisions, but\n instead mumbles \"it depends\", while having scratching his or her chin.\n\nNow what does it depend on? is surely the burning question on the novice developer's\n mind. Every electrician can tell me that I need to use gauge 8 wire instead of gauge\n 10 if I have more than X amps of current going through the wire! Why can't I get such\n a book to make my software design decisions? The answer typically includes such things\n as how flexible the solution has to be, how much time is available, how fast it has\n to be etc. These criteria are the *forces* that form an important part of documenting design patterns. One force that is often\n not spelled out explicitly, though is What has been done so far?\n\n## Hysteresis\n\nDesign decisions are hardly ever made in a vacuum. Typically something has been created\n and the next decision builds on what already has been created. The system that is\n being created has an inherent memory of what has been done to it in the past. This\n notion reminded me a physics concept called *hysteresis*. According to Webster's, hysteresis is \"a retardation of an effect when the forces\n acting upon a body are changed\". For non-Physics PhD's the most common textbook example\n is that of magnetism. Once magnetic field is applied to a piece of metal, the metal\n will \"remember\" the orientation of the magnetic particles. When the field is reversed,\n it takes more strength to undo the existing magnetism before the piece changes polarity.\n This is the retardation of effect the definition talks about. This process is typically\n associated with a curve like the following, where the X axis shows the force being\n applied (e.g. the magnetic field) and the Y axis shows the effect (e.g. the magnetic\n orientation of a piece of metal subjected to the field):\n\nMany control systems intentionally build in hysteresis. For example, a refrigerator\n may start the compressor when the temperature is above 45 degrees. If the compressor\n stopped whenever the temperature goes below 45 degrees, the compressor would run for\n a few seconds until the temperature reaches 44.99999 degrees and stop again, just\n to kick in again as soon as the temperate climbs one thousands of a degree. No fridge\n would last very long at that rate. Therefore, thermostats are designed with a built-in\n hysteresis, so that the compressor runs until the temperature reaches 43 degrees.\n\n## Hysteresis of Software Design\n\nThanks for the refresher in physics and home appliances, you might think, but what\n this have to do with software design?. The interesting result of hysteresis is that\n it shows a certain amount of \"it depends\". Should the fridge's compressor run at 44\n degrees? It depends -- on whether the fridge is in a cooling or warning cycle. At\n what temperature should the compressor go on / off? Again, it depends -- it should\n go on at 45 degrees but turn off at 43 degrees. The area in the middle of the picture\n above describes the area where there is no clear cut answer unless you know the history\n of the system you are observing.\n\nThe same could not be more true of software design. Most decisions are not made by\n a certain parameter exceeding a specific threshold, such as \"if you have more than\n X application, you should use a message broker vs. point-to-point connections. These\n decisions depend very much on what you have done so far. Have you used a message broker\n everywhere else? Then it is probably reasonable to use one for only 3 applications.\n have you build a sophisticated framework that lets you build point-to-point connections\n very easily? In that case using point-to-point connections for 4 applications might\n still be fine. You could imagine the graph shown above with the X axis being the number\n of applications and the Y axis indicating broker or point-to-point. Just as with the\n magnetic material, the decision is subject to a retardation effect. So there is no\n precise answer to the question \"how many applications do you need to have to justify\n the use of a message broker?\", even if most external factors such as scalability or\n reliability are held constant.\n\nI hope the little excursion to hysteresis illustrated one aspect why software design\n decisions are not as clear cut as some engineering decisions that typically apply\n to new construction and do not have to deal with the \"memory\" of the existing system.\n I believe this is yet another example that underlines the usefulness of patterns in\n explaining design decisions. Patterns allow us to list the individual forces impacting\n the design decision (often including the history of design decisions) without having\n to present a magic number that forces the decision one way or another. And when someone\n does nag you for that magic decision-making number, just tell them it has something\n to do with hysteresis...\n\n*Share:*\n\n*Follow:* [Follow @ghohpe](https://twitter.com/ghohpe) [SUBSCRIBE TO FEED](../ramblings.rss)\n\n*More On:* [DESIGN](/ramblings_design.html) [ALL RAMBLINGS](../ramblings.html)\n\nGregor is a cloud architect and author. He is a frequent speaker on asynchronous messaging,\n IT strategy, and cloud.", "znaku_textu": 6616, "slov": 1081, "odkazu": 43, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 15:36:56", "sha256": "59bc42fc246c5950027220a87925e923a69d028df9143391ea5bbd5fed23962e", "hloubka": 4, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://architectelevator.com/blog", "https://twitter.com/share", "https://twitter.com/ghohpe", "https://leanpub.com/37things"]} {"url": "http://www.enterpriseintegrationpatterns.com/ramblings/07_noescape.html", "titulek": "No Escape From Integration - Enterprise Integration Patterns", "h1": "No Escape From Integration", "popis": "I had never thought about having guest appearances on my ramblings, but this e-mail response from my friend Hyon made me laugh hard enough that I think it would be a waste not to share it with the community", "klicova_slova": "", "kanonicka": "", "jazyk": "en_US", "robots_meta": "", "og": {"og:type": "article", "og:locale": "en_US", "og:site_name": "Enterprise Integration Patterns", "og:title": "No Escape From Integration", "og:description": "I had never thought about having guest appearances on my ramblings, but this e-mail response from my friend Hyon made me laugh hard enough that I think it would be a waste not to share it with the community", "og:url": "https://www.enterpriseintegrationpatterns.com/ramblings/07_noescape.html"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "No Escape From Integration"}], "markdown": "Gregor's Ramblings\n\n---\n\n# No Escape From Integration\n\nJanuary 5, 2004\n\nFind my posts on IT strategy, enterprise architecture, and digital transformation\n at [ArchitectElevator.com](https://architectelevator.com/blog).\n\nI had never thought about having guest appearances on my ramblings, but this e-mail\n response from my friend Hyon made me laugh hard enough that I think it would be a\n waste not to share it with the community:\n\nOkay, so I\"ve read the first chapter of the book... and sorrowfully and sympathetically\n (and somewhat gleefully by the evil twin\n side of me that needs others to share in my pain and misery) appreciated all the integration\n challenges that the poor Mom-n-Pop's Widgets & Gadgets R Us were faced with.\n\nSo what's the moral of the story? Simplify your life? Go find a deserted\n island somwhere, build a shack for shelter and grow vegetables and go\n fishing for food? That is... until you realize you need fresh water and\n you can only get it from Waters R Us in the mainland... so you build a\n pipe to transfer the water from the Waters R Us in the mainland to your\n island, a basic point-to-point integration... but then realize that you\n have different channels that can request water (kitchen faucets, ice maker,\n bathroom shower, bathroom sink, bathroom toilet, etc, etc) and each channel\n only wants to have to pay for the water it consumes so your point-to-point\n pipe branches out into parallel processing branches to each water requester\n source, turning it into a publish (the Waters R Us) and subscribe (the\n different water requesting channels) model with a control bus connecting to\n a management console so we can monitor how many times water is requested\n (and received) for measuring quality customer satisfaction purposes and in\n what amounts are actually consumed by each water requesting channel. Then\n the water requesting channels decide it requires different water format,\n the kitchen faucet water requesting channel needs clear water format while\n the bathroom toilet decides it needs blue water with bleach format and the\n shower head wants pale creamy peachy water format to match the complexion\n of its end user so you place a water translator at each water requesting\n channels to apply the correct water transformation. And with so many people\n fleeing to their deserted islands and requiring water, the Waters R Us is\n having problems keeping enough inventory of water to fulfill all their\n water requests so you must now query their inventory system to ensure there\n is water in its inventory before allowing the water request order to\n continue... and the bathroom sink has become delinquent in its payments and\n been ignoring the harsh 'Pay NOW or you will be CUT OFF' letters (which is\n handled through a different integration pipe that we won't get into\n here)... so now you must check inventory to make sure there is enough water\n in Waters R Us inventory system to fulfill the water request and make sure\n the water requesting channel has good credit standing so you build a\n publish-subscribe channel to send out parallel async request to the credit\n system and to the inventory system to make sure all's OK with the world,\n build an aggregator to aggregate the responses and a content based router\n to determine whether to send the water request to the Waters R Us for\n fullfillment or to send the water request to the 'water request fallout'\n system for future manual intervention. Then with all this overabundance of\n activity and increase in demand and single source of supply and increase in\n water request fallout, you decide to build a process manager to help with\n management of all your water requests, so the water request messages can be\n stored/persisted and track the progress of your water requests and etc,\n etc. And then finally... realizing that you have no idea what the hell\n you are doing anymore and have perhaps applied the wrong tools to perform\n the required task and life has just gotten a bit too complicated and can't\n afford the high consulting fees charged by Water Consulting... so you leave\n the deserted island and buy a ticket to the Mars Settlement Colony to\n simplify your life...\n\n:)\n\n----------------------------------------\n\n Hyon Kyong Na\n\n*Share:*\n\n*Follow:* [Follow @ghohpe](https://twitter.com/ghohpe) [SUBSCRIBE TO FEED](../ramblings.rss)\n\n*More On:* [DESIGN](/ramblings_design.html) [ALL RAMBLINGS](../ramblings.html)\n\nGregor is a cloud architect and author. He is a frequent speaker on asynchronous messaging,\n IT strategy, and cloud.", "znaku_textu": 4488, "slov": 731, "odkazu": 43, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 15:36:55", "sha256": "b776c3d0a4109ee34f3a7a570e888a656ab79189027fcf1369fa766316c95954", "hloubka": 4, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://architectelevator.com/blog", "https://twitter.com/share", "https://twitter.com/ghohpe", "https://leanpub.com/37things"]} {"url": "http://www.enterpriseintegrationpatterns.com/ramblings/08_integrationstyles.html", "titulek": "Integration Styles - Enterprise Integration Patterns", "h1": "Integration Styles", "popis": "A number of integration books classify integration into styles such as database integration, functional integration and so on", "klicova_slova": "", "kanonicka": "", "jazyk": "en_US", "robots_meta": "", "og": {"og:type": "article", "og:locale": "en_US", "og:site_name": "Enterprise Integration Patterns", "og:title": "Integration Styles", "og:description": "A number of integration books classify integration into styles such as database integration, functional integration and so on", "og:url": "https://www.enterpriseintegrationpatterns.com/ramblings/08_integrationstyles.html"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Integration Styles"}, {"uroven": 2, "text": "Integration Intent"}, {"uroven": 2, "text": "Connection Mechanism"}, {"uroven": 2, "text": "Interaction Mechanics"}, {"uroven": 2, "text": "Conclusion"}], "markdown": "Gregor's Ramblings\n\n---\n\n# Integration Styles\n\nMay 5, 2004\n\nFind my posts on IT strategy, enterprise architecture, and digital transformation\n at [ArchitectElevator.com](https://architectelevator.com/blog).\n\nFirst of all, my apologies for such a long pause in the ramblings. I can't believe\n it's almost been four months. It seems like I OD'd on writing a little bit while helping\n the Microsoft Patterns and Practices group write a book on integration patterns (see\n the [MSDN Architecture Center)](http://msdn.microsoft.com/architecture/). I am now on my way to Las Vegas to [TheServerSide Symposium](http://www.theserverside.com/symposium), a flight just long enough to ramble a little.\n\nThere are certainly multiple ways to classify integration styles. For example, I have\n definitely come across Database Integration, [Shared Database](../SharedDataBaseIntegration.html), and Data Replication. You are just as likely to find references to Portal Integration,\n Presentation Integration, and User Interface Integration. The names are sufficiently\n similar to cause more confusion than clarification. Even [*Enterprise Integration Patterns*](../eaipatterns.html) gives two different overviews of integration styles, one in [Chapter 1](../Chapter1.html) and another in [Chapter 2](../IntegrationStylesIntro.html). Many other integration books also start with an overview of integration styles.\n So how do we bring some order into the world of integration styles? After some mulling\n around, I identified three different ways to classify integration solutions:\n\n- By the overall intent\n- By the way in which we connect to an application\n- By the mechanics of the interaction between applications\n\n## Integration Intent\n\nI think the intent of integration is a good place to start. By intent I mean a classification\n of the ultimate problem we are trying to solve. Are we trying to give all applications\n access to a consistent set of data? Are we trying to give the users a view into multiple\n systems in one screen? Are we looking to reuse a function or a piece of logic across\n multiple applications? When customers tell me they want to integrate their applications\n this is a good way to start. The important part is that these types of integration\n make no (or very little) assumptions about the technologies or mechanisms that are\n going to be used to accomplish the integration. We might move files, make SOAP calls\n or put messages on a message bus. It does not matter (yet). This type of classification\n is the one I tried to address in [Chapter 1](../Chapter1.html) of [*Enterprise Integration Patterns*](../eaipatterns.html). I wrote Chapter 1 at the very end (a fairly common occurrence when writing books),\n so likely there is a more comprehensive taxonomy, but here are the types of intent\n I came up with (strangely, these integration types did not receive the honor of being\n patterns, a decision I would certainly revisit if I was writing the chapter again):\n\n- Information Portals\n- Data Replication\n- Shared Business Functions\n- Service-Oriented Architectures\n- Distributed Business Processes\n- Business-to-Business Integration\n\nEach of these types has a brief definition, focused on the problem the integration\n is trying to solve rather than how to solve it. For example, Information Portals solve\n the problem of business users having to access more than one system in order to view\n all the information they need to perform a specific task. The solution is to create\n a portal application that shows information from multiple systems in a single screen.\n To that extend the solution is prescriptive, but how the data gets out of the applications\n and to the portal is (intentionally) left unanswered. That type of question is answered\n by another category of \"integration style\".\n\n## Connection Mechanism\n\nOne of the key goals of an integration solution is to extract data out of one existing\n application and move it to another application. In order to do this, you have to connect\n the application to some form of integration backbone so that the application can participate\n in the exchange of information. This is the function that is commonly performed by\n commercial *connectors* or *adapters* that are being offered by many integration vendors. When we try to classify these\n adapters, it becomes apparent that the type of adapter matches the layers of most\n contemporary business applications. Most well architected business applications have\n a presentation layer, a business logic layer and a database layer. We can use each\n of these layers to move data between the application and the integration backbone.\n Correspondingly, we can define the following types in integration (see picture):\n\n- Presentation Integration\n- Functional Integration\n- Data Integration\n\nIn the soon to be published book by [Microsoft's Patterns and Practices group](http://msdn.microsoft.com/architecture), we discuss these integration styles under the heading of *System Connections*. In [*Enterprise Integration Patterns*](../eaipatterns.html), we touch on these styles under the [Channel Adapter](../ChannelAdapter.html) pattern (this Web site does not show that portion of the pattern, but it is in the\n printed book). Two things are noteworthy here. First, how I connect to an application\n is often a fairly local decision. When I receive a message (assuming for the moment\n I use message-based integration), it is largely of secondary importance whether I\n stick this message into the database (*Data Integration*), whether I call the application's API (*Functional Integration*) or whether I emulate a user entering data into a screen (*Presentation Integration*, aka \"Screen Scraping\"). Second, which mechanism I use is largely independent of\n the overall intent of my integration. I can certainly envision building an *Information Portal* using *Data Integration*, *Functional Integration*, or *Presentation Integration*, or a mix of all three! For the more mathematically inclined, if I was going to define\n a matrix across the two axes of integration intent and connection mechanism we will\n find that the matrix is reasonably densely populated. There might be some fringe cases,\n for example, performing *Shared Business Functions* via *Data Integration*, but if you have been building integration solutions for a while you will agree that\n nothing is unheard of! In fact, one of the favorite methods of connecting with one\n of our favorite ERP packages is done by placing files in certain directories to the\n picked up by the ERP application. The intent of placing the file is to invoke a common\n business function.\n\n## Interaction Mechanics\n\nSo far we have identified ways to categorize the overall intent of building an integration\n solution and the mechanics of connecting to a single application. What is left is\n a way to describe the nature of the interaction between the systems. This is what\n we attempted in [Chapter 2](../IntegrationStylesIntro.html) of our book. Admittedly, that categorization is a tad more fuzzy but I am sure you\n will agree that it is again somewhat independent from the other classifications. These\n integration styles are:\n\nEach style defines a way to move information from A to B. Each style is quite distinct\n and comes with its own set of advantages and liabilities. This decision tends to be\n a much more global architectural decision than the decision of how to connect to a\n specific application. We could call this type of classification an *architectural style* that we should chose early on and that will shape the way we go about architecting\n our system.\n\n## Conclusion\n\nI hope that presenting three distinct ways of classifying integration solutions is\n helpful in clarifying some of the terminology that is being used. Because integration\n is such a broad and varied field, there are definitely additional ways to categorize\n solutions, for example by the topology, such as *Message Bus*, or *Hub-and-Spoke*. However, I felt there was the need to start with some of the high-level categorization\n and try to bring a little bit of rigor into the terminology. Maybe I'll talk about\n topologies in my next rambling. And I promise it won't be another four months!\n\n*Share:*\n\n*Follow:* [Follow @ghohpe](https://twitter.com/ghohpe) [SUBSCRIBE TO FEED](../ramblings.rss)\n\n*More On:* [INTEGRATION](/ramblings_integration.html) [ALL RAMBLINGS](../ramblings.html)\n\nGregor is a cloud architect and author. He is a frequent speaker on asynchronous messaging,\n IT strategy, and cloud.", "znaku_textu": 8473, "slov": 1300, "odkazu": 51, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 15:36:54", "sha256": "88db6d3de0c5e36d93c84c1b4d5e265c112ce3d9e586e3a0688938a1c32c34cb", "hloubka": 4, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://architectelevator.com/blog", "http://msdn.microsoft.com/architecture/", "http://www.theserverside.com/symposium", "http://msdn.microsoft.com/architecture", "https://twitter.com/share", "https://twitter.com/ghohpe", "https://leanpub.com/37things"]} {"url": "http://www.enterpriseintegrationpatterns.com/ramblings/09_correlation.html", "titulek": "Correlation and Conversations - Enterprise Integration Patterns", "h1": "Correlation and Conversations", "popis": "When using asynchronous messaging, we can no longer rely on the linear, in-sequence execution of events", "klicova_slova": "", "kanonicka": "", "jazyk": "en_US", "robots_meta": "", "og": {"og:type": "article", "og:locale": "en_US", "og:site_name": "Enterprise Integration Patterns", "og:title": "Correlation and Conversations", "og:description": "When using asynchronous messaging, we can no longer rely on the linear, in-sequence execution of events", "og:url": "https://www.enterpriseintegrationpatterns.com/ramblings/09_correlation.html"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Correlation and Conversations"}, {"uroven": 2, "text": "Correlation Identifier"}, {"uroven": 2, "text": "Intermediaries"}, {"uroven": 2, "text": "Smart Proxy"}, {"uroven": 2, "text": "Conversation Identifier"}, {"uroven": 2, "text": "Conclusion"}, {"uroven": 2, "text": "What is in a Name?"}], "markdown": "Gregor's Ramblings\n\n---\n\n# Correlation and Conversations\n\nMay 21, 2004\n\nFind my posts on IT strategy, enterprise architecture, and digital transformation\n at [ArchitectElevator.com](https://architectelevator.com/blog).\n\nI just got back from [TheServerSide Symposium](http://www.theserverside.com/symposium) in Las Vegas. It was a great conference in a fun location. The highlight of the event\n was being [bile-blogged](http://www.jroller.com/page/fate/20040506#tsss_event_driven_architecture) and meeting Hani in person. My talk on *Enterprise Integration Patterns* also reminded me that the best way to really understand something is to explain it\n to someone else without resorting to armwaving (thanks, Hani!). After my presentation\n I felt that my explanation of the [*Correlation Identifier*](../CorrelationIdentifier.html) pattern might have included a more than necessary dose of armwaving so I am trying\n to make up for it here by drilling a bit deeper into this topic. Part of the credit\n definitely goes to [Mark Hapner](http://see.sun.com/Apps/DCS/mcp?p=73_rY03_rL0006304e4m32f40003_r50&eventid=e12s2125§ionid=3), Web Services Strategist for Sun, for insightful conversations during the vendor-sponsored\n lunch presentations.\n\n## Correlation Identifier\n\nOne of the key differences between asynchronous messaging architectures and synchronous,\n call-stack based architectures is the fact that we have to work with a thinner safety\n net when building asynchronous solutions. For example, in synchronous applications\n the call stack keeps track of the return address and local variables so that we never\n have to worry about which method to return to and what the local state of that method\n was. Asynchronous architectures do not provide such mechanisms so that we have to\n track state and return addresses ourselves. A key mechanism to regaining local state\n is the notion of *Correlation*. Our [book](../books1.html) discusses correlation primarily within the context of the [*Correlation Identifier*](../CorrelationIdentifier.html). The *Correlation Identifier* is introduced as addressing the following problem:\n\n**How does a requestor that has received a reply know which request this is the reply\n for?**\n\nThe solution is to have the requestor add a Request ID to the request message, have\n the replier copy the Request ID to the Correlation ID field of the response message\n so that the requestor can correlate the reply message to the request message.\n\nAs far as the replier is concerned, the Correlation ID is an opaque data type and\n all it has to do is to copy the Request ID field from the request message to the\n Correlation ID field of the reply message. The key decision for the requestor is how\n to chose the Request ID. The picture seems to indicate that the Message ID is a suitable\n choice. In fact, many messaging systems do not provide a separate request ID field\n but assume that the Message ID field is used for this purpose. At first glance using\n the Message ID field seems convenient because most messaging systems automatically\n populate this field with a unique value for each message that is being sent, alleviating\n the requestor from having to generate a unique number.\n\n## Intermediaries\n\nHowever, using the Message ID as the Request ID has at least one important limitation.\n It assumes that the requestor and the replier communicate directly with the exchange\n of a single message. To illustrate this point, let's see what happens when we insert\n and intermediary, such as a [*Message Router*](../MessageRouter.html), between the requestor and the replier. The ability to insert intermediaries is one\n of the key benefits of the [*Pipes-and-Filters*](../PipesAndFilters.html) architectural style. Therefore, we are generally well advised to allow for the insertion\n of intermediaries without requiring changes to the existing components. In our case,\n inserting an intermediary causes an interesting problem (see picture).\n\nThe intermediary consumes the original request message and sends a new message instance\n to the replier. Even though the message body of the new message created by the intermediary\n may be identical to the original request message, the new message is assigned its\n own unique Message ID by the messaging system. If the replier uses the Message ID\n as the Request ID and blindly copies it to the Correlation ID field of the reply message\n the requestor will not be able to correlate the incoming reply message to the original\n request message. The *Request-Reply* interaction is broken.\n\n## Smart Proxy\n\nLuckily, there is another pattern that helps us solve the dilemma, the [*Smart Proxy*](../SmartProxy.html). As the name suggest, a Smart Proxy proxies an existing service and brings some\n additional smarts into the game. The primary motivation for using a Smart Proxy is\n track message data between request and reply messages while allowing for the service\n consumer (the requestor) to specify a return address. However, as explained on page\n 560 of *EIP* the fact that the Smart Proxy keeps state between request and reply messages can\n be leveraged for other purposes as well. For example, the Smart Proxy can be used\n to reconstruct the [*Correlation Identifier*](../CorrelationIdentifier.html) for the reply message based on the message ID of the original request message (see\n picture below).\n\nThe Smart Proxy captures the message ID of the original request message and stores\n it. The Smart Proxy then uses the Correlation ID of the reply received from the service\n to look up that original message ID. It replaces the Correlation ID field in the reply\n message with the message ID of the request sent by the service consumer. As a result,\n the reply message from the Smart Proxy contains the Correlation ID expected by the\n service consumer.\n\nThis seems to solve out correlation dilemma quite nicely. The only constraint is that\n the Smart Proxy has to intercept both the request and the reply message. So far so\n good. But let's see what happens if the service we access is a composite service,\n i.e. a service that in turn accesses another service. If each service supports a smart\n proxy we get the following picture:\n\nEach Smart Proxy holds the necessary state (for example, the return address and correlation\n ID) until it receives a response from the called sub-service(s). The bottom half of\n the picture illustrates how long each Smart Proxy has to keep this state. If that\n picture looks strangely familiar to you, I am not surprised -- it looks like a call\n stack. Each Smart Proxy keeps the Return Address and additional information while\n all sub-services execute just like a call stack maintains local variables and the\n return address. Instead of a [*Pipes-and-Filters*](../PipesAndFilters.html) message flow style we ended up building an artificial call stack on top of message\n channels. This is generally not a great idea. Keeping state for extended periods of\n time means that we have to persist the state to protect against failure. It also means\n that scalability in terms of message traffic may suffer because a high volume of messages\n may cause a large amount of state to be kept. Additionally, requiring reply messages\n to return the same path that the request messages were sent might mean unnecessary\n message traffic. Essentially, this solution exhibits many of the same limitations\n as a solution based on [*Remote Procedure Invocation*](../EncapsulatedSynchronousIntegration.html). Overcoming these limitations was one of the main drivers for using [*Messaging*](../Messaging.html) so reverting back to the old synchronous paradigm does not sounds like a great idea.\n\n## Conversation Identifier\n\nSo how can we avoid the unlucky \"distributed call stack with messaging\" architecture?\n It looks like using a message ID as a Correlation Identifier works well for a simple\n request-reply interaction but has limitations as soon as the flow of messages goes\n beyond a requestor and a replier. It seems like we need to look beyond just the simple\n request-reply interaction. When we look at message exchanges between systems in a\n broader context we realize that [*Request-Reply*](../RequestReply.html) is just the most basic form of a *Conversation* between multiple systems. A conversation is the coordinated exchange of messages\n between two or more partners. The coordination is distributed as each participant\n in the conversation has a model of the conversation that relates to this participant's\n specific role in the conversation. For example, in a simple request-reply conversation\n the requestor knows to send a request message and expect a reply message while the\n replier (the service provider) knows to expect a request message and send a reply\n message in return. The topic of conversations has found a lot of interest in the Web\n services community. As one would expect, this interest has materialized in form of\n a WS?? four-letter-acronym, in this case the [Web Services Conversation Language (WSCL)](http://xml.coverpages.org/wscl.html) submitted by HP.\n\nBefore we dive deeper into the topic of modeling conversations and the relationship\n between conversations and orchestrations (a likely topic for a future rambling), let's\n get back to the correlation issue. We should have really named the Correlation Identifier,\n \"Conversation Identifier\". This would make it clear that the scope of this identifier\n spans an entire conversation, which may include intermediates or multiple services.\n Each message in the interchange would carry not only a message identifier but also\n a conversation identifier. The entity who initiates the conversation (in the Request-Reply\n example the requestor) picks a conversation ID while all intermediaries and repliers\n pass this ID along so that all messages belonging to the conversation carry a common\n conversation identifier. Separating this identifier from the message identifier nicely\n solves all the problems discussed above. as illustrated in the picture below:\n\nWe can even use the same Correlation ID field as the conversation identifier. The\n only difference is that we have to make the requestor populate the Correlation ID\n field and have the service provider copy the incoming Correlation ID field to the\n reply message Correlation ID field. Depending on the implementation the requestor\n could even use the Message ID value to set the Correlation ID field. Most implementations,\n however, do not allow this as the Message ID field is only populated *after* the message was sent.\n\nEssentially, we now have redefined the roles of the entities. Instead of Requestor\n and Replier we now have two different roles:\n\n- Conversation Originator\n- Conversation Participant\n\nThe Conversation Originator has to populate the Correlation (Conversation) ID and\n all other participants have to pass this field along. The fact that the message ultimately\n is returned to the sender (the requestor) is purely coincidental in this model (see\n figure).\n\n## Conclusion\n\nA [*Request-Reply*](../RequestReply.html) interaction between a service consumer and a service provider is really just a simple\n example of a conversation between multiple participants. Therefore, to make the interaction\n between consumer and provider flexible and extensible the [*Correlation Identifier*](../CorrelationIdentifier.html) really should be used as *Conversation Identifier*. This implies that this identifier should be independent of any specific message\n identifier. Rather, it should be generated independently by the originator and propagated\n by any subsequent participant in the conversation.\n\nThanks to Rick Wise and James Strachan for insightful comments on this topic.\n\n## What is in a Name?\n\nJames Strachan alerted me that in the BPEL and BPMN world the term *Correlation Identifier* is used to identify the conversation, so calling it *Conversation Identifier* here might cause confusion. I readily admit that constraining the [*Correlation Identifier*](../CorrelationIdentifier.html) in our book to only the context of [Request-Reply](../RequestReply.html) is inconsistent with the usage in the world of orchestration. The (narrowly defined)\n pattern in our book should probably have been called \"Request Identifier\". To minimize\n confusion, I am happy to use the term *Correlation Identifier* in both contexts, including conversations. This means we can use it synonymously\n with *Conversation Identifier*.\n\n*Share:*\n\n*Follow:* [Follow @ghohpe](https://twitter.com/ghohpe) [SUBSCRIBE TO FEED](../ramblings.rss)\n\n*More On:* [MESSAGING](/ramblings_messaging.html) [PATTERNS](/ramblings_patterns.html) [CONVERSATIONS](/ramblings_conversations.html) [ALL RAMBLINGS](../ramblings.html)\n\nGregor is a cloud architect and author. He is a frequent speaker on asynchronous messaging,\n IT strategy, and cloud.", "znaku_textu": 12767, "slov": 1930, "odkazu": 55, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 15:35:25", "sha256": "a96b64bed35b9d0d460f3b410853e62ffb0a56d7475ed86d3d7109cf0d31158d", "hloubka": 4, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://architectelevator.com/blog", "http://www.theserverside.com/symposium", "http://www.jroller.com/page/fate/20040506", "http://see.sun.com/Apps/DCS/mcp?eventid=e12s2125&p=73_rY03_rL0006304e4m32f40003_r50§ionid=3", "http://xml.coverpages.org/wscl.html", "https://twitter.com/share", "https://twitter.com/ghohpe", "https://leanpub.com/37things"]} {"url": "http://www.enterpriseintegrationpatterns.com/ramblings/10_javaone.html", "titulek": "JavaOne Redux - Enterprise Integration Patterns", "h1": "JavaOne Redux", "popis": "For a change I spoke at a conference without traveling halfway around the world", "klicova_slova": "", "kanonicka": "", "jazyk": "en_US", "robots_meta": "", "og": {"og:type": "article", "og:locale": "en_US", "og:site_name": "Enterprise Integration Patterns", "og:title": "JavaOne Redux", "og:description": "For a change I spoke at a conference without traveling halfway around the world", "og:url": "https://www.enterpriseintegrationpatterns.com/ramblings/10_javaone.html"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "JavaOne Redux"}, {"uroven": 2, "text": "SOA is Everywhere"}, {"uroven": 2, "text": "Oracle Acquires Collaxa"}, {"uroven": 2, "text": "Sun Web Services Stories"}, {"uroven": 2, "text": "WS-*"}, {"uroven": 2, "text": "JSR's"}, {"uroven": 2, "text": "Show Floor"}, {"uroven": 2, "text": "JINI"}, {"uroven": 2, "text": "Enterprise Integration Patterns"}], "markdown": "Gregor's Ramblings\n\n---\n\n# JavaOne Redux\n\nJuly 2, 2004\n\nFind my posts on IT strategy, enterprise architecture, and digital transformation\n at [ArchitectElevator.com](https://architectelevator.com/blog).\n\n## SOA is Everywhere\n\nBoth Oracle and BEA used their platinum sponsor keynotes to show their latest SOA\n and orchestration tools. Scott Dietzen from BEA demo'd the latest process designer\n additions to WL WorkShop under the [Liquid Computing](http://www.bea.com/framework.jsp?CNT=pr01301.htm&FP=/content/news_events/press_releases/2004) banner. We also got a brief glimpse at project [Quicksilver](http://www.infoworld.com/article/04/05/25/HNbeaquicksilver_1.html), BEA's answer to the Enterprise Service Bus. QuickSilver is based on an asynchronous\n messaging bus and I was happy to see our familiar patterns [Content-Based Router](../ContentBasedRouter.html) and [Message Translator](../MessageTranslator.html) in the mix. We are supposed to see a beta version of these tools by the end of the\n year. The BEA keynote was pretty good, except that I can't help but cringe when I\n hear the line \"we have a visual tool so it is suitable for business analysts\" (see\n [Doodleware](02_doodleware.html)).\n\nOracle showed their trusty JDeveloper demo, albeit with a new SOA and Web services\n spin. We got to see Ted Farrell build Web-based UI's based on external Web services.\n We then saw a BPEL editor that allowed us to chain Web service calls and the usual\n flow constructs such as decision points, forks and joins. The tools are nice, but\n in my opinion all process modeling tools start to look very similar to one another.\n Oracle's continuous zoom-in-zoom-out feature is neat even though it looks like once\n you have a good overview over the process you can't read the label text and vice versa.\n I agree with [Charles Young](http://geekswithblogs.net/cyoung/archive/2004/04/27/4415.aspx) that all integration developers should be setup with two large monitors side-by-side.\n Seriously, I believe that what we are seeing now is simply the first generation of\n BPEL editors. It's somewhat analogous to Java code editors before IntelliJ -- they\n do the job just fine but once the new generation arrives you realize just how much\n more potential there is. It will take some time for vendors to better understand the\n developer usage patterns and how to make BPEL development more efficient. While this\n year seems to be a \"me too\" year for BPEL editors I expect to see quite some innovation\n in this area next year (maybe I can help?).\n\n## Oracle Acquires Collaxa\n\nOracle revealed that their BPEL tool is essentially based on the freshly acquired\n [Collaxa](http://www.collaxa.com) BPEL engine and editor. Edwin got to be up on stage with Thomas Kurian and demo'd\n the Collaxa tools turned Oracle BPEL Process Manager. I was lucky enough to have dinner\n that night with Edwin and Amlan from Oracle and hear about their future plans. Integration\n and orchestration is high on Oracle's list so stay tuned. The good news is that they\n will continue to support multiple app servers.\n\n## Sun Web Services Stories\n\nI attended a number of Web services talks, mostly hosted by Sun engineers. In general,\n nothing really blew my socks off. A talk comparing Web services architecture and performance\n between J2EE and .NET showed a bunch of meaningless numbers somehow making us believe\n that J2EE is faster. The tests were done with the old WSE 1.0 stack from MS and the\n presenters lamented the fact that Microsoft Web services are script-based (\"like JSP\").\n I guess they had not heard about code behind pages. I am not saying that Microsoft\n Web services implementation is better than Sun's but at least give us a fair comparison\n instead of slides filled with meaningless numbers.\n\nA number of sessions talked about JAX-RPC 2.0. Despite the unlucky name, this API\n covers both sync and async Web services invocations and supercedes JAXM. JAX-RPC 2.0\n will take advantage of generics and futures, making asynchronous Web services invocations\n more comfortable -- very similar to Microsoft's delegates (available now) and generics\n coming in .NET 2.0.\n\nI attended a good session on [Fast Web Services](http://java.sun.com/developer/technicalArticles/WebServices/fastWS/). I agree that sending verbose XML strings across the wire on the off chance that\n a human wants to look at them without using a tool is a rather big waste of network\n bandwidth. A simple binary format can cut the message volume and parsing effort quite\n a bit. Other aspects of Fast Web Services include removing the self-describing nature\n of the documents. I am a bit more on the fence on that aspect; one can't help but\n wonder whether you should be using Web services in the first place if your performance\n requirements force to use a fixed binary format.\n\n## WS-*\n\nThe glut of new WS-* specs seems to be never ending and even I have a hard time keeping\n track. Two months ago, [WS-MessageDelivery](http://www.w3.org/Submission/2004/SUBM-ws-messagedelivery-20040426/) was submitted to the W3C and is likely to compete with WS-Addressing. So we have\n essentially Sun, Arjuna, IONA, Nokia, and SeeBeyond pitted against BEA, IBM and Microsoft.\n The WS-MessageDelivery team sports some very bright individuals like Mark Hapner (Sun),\n David Ingham (Arjuna) and Eric Newcomer (IONA) so I am inclined to keep an eye on\n this spec. Unfortunately, for users of Web services things seem to get more and more\n confusing and the WS-I profile seems to lag more and more behind the reality.\n\n## JSR's\n\nI have to admit that I have not had a lot of time to track the JSR activities in Java\n world. I am always a little skeptic of integration-related efforts that are language\n specific but maybe I am judging prematurely. I am going to check out [JSR 208 - Java Business Integration](http://www.jcp.org/en/jsr/detail?id=208) and [JSR 207 - Process Definition for Java](http://www.jcp.org/en/jsr/detail?id=207). On the other hand, [JSR 181 - Web Services Metadata for the Java Platform](http://www.jcp.org/en/jsr/detail?id=181) seems very reminiscent of the existing ASP.NET Web services attributes.\n\n## Show Floor\n\nThe mandatory \"Pavilion\" was packed with vendors showing their wares and handing out\n tickets to various parties. Once again, BPEL was well represented. I saw BPEL editor\n demos from SAP and Oracle. As I said before the tools are not bad but will take some\n work. Opening a dialog that makes me enter XPATH to assign a single field from one\n message to another is not likely to boost developer productivity. Do we need a reminder\n that developers do not code in dialog boxes? Or is this one for the business user?\n I was happy to hear that Oracle is planning on building a nice documentation function\n that allows me to print the process with all the detailed settings.\n\nSeeBeyond was not demoing anything as per corporate order. I can understand that they\n are afraid of the competition getting free demos (or bloggers ranting about their\n product) but not showing anything does not seem like the right answer to me either.\n If your product is truly worth steeling from you should focus on extending your lead\n not on trying to keep it secret.\n\n## JINI\n\nUnfortunately, I missed the JINI session discussing Orbitz' architecture. Orbitz went\n the JINI route as opposed to the EJB route and is quite happy with the results. I\n think architects building services architectures (including myself) can learn quite\n a bit from JINI. Too bad that I missed the Java Communities in Action event. Next\n time I need to coordinate with Bill Venners to get the whole scoop on JINI-related\n events at JavaOne.\n\n## Enterprise Integration Patterns\n\nLast but not least, my session on Asynchronous Messaging Architectures was well attended,\n somewhere around 300 - 400 people. My slides mentioned the word \"Java\" only once and\n apparently escaped the legal review, which tends to insert \"TM\" after every other\n word. I made a bet with Rupin from DigitalGuru that my book would sell out. I won\n -- it sold out by Wednesday morning but still made it to be the highest-ranked non-Java\n book at the show. Hopefully, Rupin will stock a few more copies next time :-)\n\n*Share:*\n\n*Follow:* [Follow @ghohpe](https://twitter.com/ghohpe) [SUBSCRIBE TO FEED](../ramblings.rss)\n\n*More On:* [EVENTS](/ramblings_events.html) [ALL RAMBLINGS](../ramblings.html)\n\nGregor is a cloud architect and author. He is a frequent speaker on asynchronous messaging,\n IT strategy, and cloud.", "znaku_textu": 8444, "slov": 1326, "odkazu": 55, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 15:36:53", "sha256": "9c54b21fa7e3c6e548992b9330d874ea796ad4a722a3c45b0adafa95d992faff", "hloubka": 4, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://architectelevator.com/blog", "http://www.bea.com/framework.jsp?CNT=pr01301.htm&FP=%2Fcontent%2Fnews_events%2Fpress_releases%2F2004", "http://www.infoworld.com/article/04/05/25/HNbeaquicksilver_1.html", "http://geekswithblogs.net/cyoung/archive/2004/04/27/4415.aspx", "http://www.collaxa.com/", "http://java.sun.com/developer/technicalArticles/WebServices/fastWS/", "http://www.w3.org/Submission/2004/SUBM-ws-messagedelivery-20040426/", "http://www.jcp.org/en/jsr/detail?id=208", "http://www.jcp.org/en/jsr/detail?id=207", "http://www.jcp.org/en/jsr/detail?id=181", "https://twitter.com/share", "https://twitter.com/ghohpe", "https://leanpub.com/37things"]} {"url": "http://www.enterpriseintegrationpatterns.com/ramblings/11_dependencies.html", "titulek": "Visualizing Dependencies - Enterprise Integration Patterns", "h1": "Visualizing Dependencies", "popis": "Many of you have seen my rants on doodleware and top-down modeling", "klicova_slova": "", "kanonicka": "", "jazyk": "en_US", "robots_meta": "", "og": {"og:type": "article", "og:locale": "en_US", "og:site_name": "Enterprise Integration Patterns", "og:title": "Visualizing Dependencies", "og:description": "Many of you have seen my rants on doodleware and top-down modeling", "og:url": "https://www.enterpriseintegrationpatterns.com/ramblings/11_dependencies.html"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Visualizing Dependencies"}, {"uroven": 2, "text": "Loosely Coupled Systems"}, {"uroven": 2, "text": "Top-down Modeling"}, {"uroven": 2, "text": "Bottom-Up Visualization"}, {"uroven": 2, "text": "Capturing Dependencies"}, {"uroven": 2, "text": "Visualization"}, {"uroven": 2, "text": "The Loan Broker Example"}, {"uroven": 2, "text": "The Results"}, {"uroven": 2, "text": "What's Next?"}, {"uroven": 2, "text": "Conclusion"}], "markdown": "Gregor's Ramblings\n\n---\n\n# Visualizing Dependencies\n\nJuly 12, 2004\n\nFind my posts on IT strategy, enterprise architecture, and digital transformation\n at [ArchitectElevator.com](https://architectelevator.com/blog).\n\n## Loosely Coupled Systems\n\nEveryone seems to hail the benefits of building loosely coupled systems. I have my\n own opinions on coupling but that'll have to wait until another rambling. For now,\n let's agree that loosely coupled systems are systems that make fewer assumptions about\n each other. A loosely coupled interaction is desirable in those cases where individual\n components should not depend too much on each other, for example because they are\n part of different applications or organizations.\n\nWhile loose coupling can be a desirable architectural principle it also has drawbacks.\n Loosely coupled architectures can quickly turn into what [Martin Fowler](http://www.martinfowler.com) calls *An Architect's Dream - A Developer's Nightmare*, alluding to the fact that loosely coupled systems are inherently difficult to test\n and debug. For example, if a solution uses message-based integration, a component\n may simply write messages to a channel or read messages from a channel without knowing\n which component sits at the other end of that channel. This architecture allows for\n great flexibility in composing these types of solutions from reusable components.\n However, if we face a performance bottleneck or detect invalid messages it would be\n tremendously useful to know where messages actually come from and where they are headed.\n\n## Top-down Modeling\n\nI am a big fan of visual representation of systems. Sometimes you simply need the\n literal \"big picture\" to see what is going on. Unfortunately, most visual representations\n these days are linked to the term modeling as in *model-driven architecture*. This type of modeling suggest that you can design the system visually using some\n form of [Doodleware](02_doodleware.html) and then more or less generate the code for the running system. I am [not the only one](http://www.martinfowler.com/ieeeSoftware/mda-thomas.pdf) to have mixed feelings about this approach, especially in a distributed an loosely\n coupled system that is will evolve over time. Modeling such a system in a single tool\n seems to assume that you have a clear understanding of how the individual pieces are\n going to interact. I feel that in a loosely coupled integration of multiple pieces\n this is typically not the case. In fact, not knowing how the system will evolve is\n one of the key reasons for us to build loosely coupling solutions. In a loosely coupled\n solution, components should be able to subscribe to message feeds without affecting\n the sender of the messages or the integrity of the system. It seems like loosely coupled\n systems encourage some form of controlled \"anarchy\" to allow the overall system to\n evolve in a natural manner. Most model-driven approaches, on the other hand, take\n more of a \"big brother\" stance where we want to design the whole world in one run\n from the top down.\n\n## Bottom-Up Visualization\n\nLikening a loosely coupled system to \"anarchy\" might be a bit strong but the important\n aspect is that uncontrolled variability is supported and to some extend encouraged.\n How then, do we keep tabs on what is going on in the system? A visual representation\n of the system is certainly useful, especially if we deal with a system that is asynchronous\n and concurrent by nature. If we cannot design the whole system from the top down how\n can we get such a visual representation? We should harvest it from the actual system!\n This way we get an accurate depiction of the system without imposing a certain structure\n onto it. I call this technique *bottom-up visualization* to set it apart from top-down modeling approaches a la MDA. For example, we can track\n which message channel each component is publishing or subscribing to. We can then\n use this information to create a message flow graph that depicts how information flows\n from component to component.\n\nThese kinds of visualization tools are receiving quite a bit of attention these days.\n For example, a key component in the next generation of Microsoft's Visual Studio called\n *Whitehorse* can inspect Web references from one project to another and display the resulting\n relationships in a visual editor. In Microsoft's case this editor also allows the\n user to add or remove dependencies, i.e. it is \"roundtrippable\".\n\n## Capturing Dependencies\n\nThe first step to visualizing dependencies between systems is to determine the dependencies\n in the first place. This can be accomplished in a number of ways, such as:\n\n- Metadata Repository\n- Message Store\n- Subscription Tracker\n\nA number of packaged EAI tools, such as TIBCO, feature a **Metadata Repository**. This repository is the source for configuration information for all components.\n Whenever a component is supposed to subscribe to a specific channel the channel name\n is actually stored inside the repository via a configuration tool. When the component\n starts up, it retrieves the actual channel name from a specified path in the repository.\n Having such a central repository makes it very easy to figure out all communication\n between components, that is, as long as all components use the repository as opposed\n to hard-coded channel names (for example, see my [TibDoc Project](http://www.hohpe.com/Gregor/Work/portfolio.html). However, this approach is limited to detecting static communication between components.\n For example, if a component specifies a [Return Address](../ReturnAddress.html) at run-time, the communication dependency established via the reply message would\n not be contained in the metadata repository and would therefore not be displayed.\n\nIn the absence of a metadata repository we can capture all messages that flow through\n the system in a central [Message Store](../MessageStore.html). This approach is dynamic in nature, that is, it observers a running system. In contrast,\n inspecting the Metadata Repository is considered *static analysis* because the analysis only involves design-time artifacts. Based on the message header\n we can then figure out which component sends message to which other component. Since\n we inspect a running system we can also get data on the message volume. The main drawback\n of using a message store is the high volume of message data sent to the message store.\n If all we want to do is visualize publication and subscriptions this approach can\n be overkill because it is likely that a component sends many message instances to\n the same channel.\n\nTo be more efficient we should only track subscription and publication requests. Whenever\n a component obtains a channel reference for publication or subscription we can send\n a message to the [Control Bus](../ControlBus.html) (see figure). We can even make the individual components smart enough to track all\n channels it has already used to avoid duplicate control messages. This approach seems\n to be a fair compromise between the other two approaches. We can track dynamic communication\n between components, such as usage of [Return Addresses](../ReturnAddress.html) but avoid having to intercept every single message.\n\n## Visualization\n\nThe second part of the bottom-up modeling approach is to visualize the data we captured.\n The dependency capture is likely to yield a list of components, each with a list of\n message channels that the component publishes or subscribes to. If *Component A* publishes to *Channel X* and *Component B* subscribes to the same *Channel X* we can essentially assume that *Component A* communicates with *Component B*. In a message flow diagram we would visualize this as an arrow pointing from *Component A* to *Component B* (see figure). Effective visual representation can be the key to understanding critical\n properties about a system that might otherwise go unnoticed (for some great example\n have a look at some of [Ed Tufte's](http://www.edwardtufte.com) books). So far our approach has captured a directed graph as a data structure of\n nodes (components) and edges (communication dependencies). Transforming this data\n structure into a visually appealing and useful diagram is not a trivial task. Luckily,\n ATT Research has created a great open tool for graph visualization, [GraphViz](http://www.research.att.com/sw/tools/graphviz/). GraphViz can render a multitude of graphs and has tunable layout algorithms. The\n only downsides of GraphViz are that it is file-based and that the file format pre-dates\n XML. Luckily, [WingraphViz](http://home.so-net.net.tw/oodtsen/wingraphviz/index_en.htm) implements a COM wrapper so that we can avoid generating DOT files to feed GraphViz.\n Conveniently, COM components are easily invoked from .NET programs.\n\n## The Loan Broker Example\n\nThis all sounds good in theory but let's put all the pieces together and try this\n on a real implementation. A natural test candidate is the [Loan Broker](../ComposedMessagingMSMQ.html) example in Chapter 9 of my [book](../eaipatterns.html). The scenario is implemented using three different technologies and messaging paradigms.\n For our purposes, we chose the MSMQ / C# version because it is asynchronous and it\n does not depend on any third party software (for those of us who succumbed to the\n dominating force from the Pacific Northwest). Furthermore, the simplicity of the MSMQ\n API makes it well suited for examples like this one. The following figure shows the\n base architecture of the Loan Broker:\n\nBut let's realize that not everyone working with our system is going to have access\n to this pretty high-level picture or that the picture may be inaccurate because the\n solution changed over time. Therefore, we want to enhance the existing solution to\n support visualization of the message flow. First, we have to send a message to a control\n queue whenever a component accesses a message queue to receive or send messages. In\n order to minimize code changes to the existing loan broker solution, we need to make\n this tracing of publication or subscription as transparent as possible. Luckily, we\n had some apparent foresight when we developed the loan broker solution. We abstracted\n the components' interaction with the MSMQ *MessageQueue* objects behind the *IMessageSender* and *IMessageReceiver* interfaces. Defining these interfaces allows us to supplement different implementations\n for them without having to change the code for the messaging component. When we instantiate\n a component, the component constructor accepts references to these interfaces instead\n of actual *MessageQueue* objects. By passing references to the component, the outside components can control\n which implementation to use for each interfaces (see figure). This is very useful\n for testing or when you need to extend the default implementation (like we are doing\n now). We refer to this configuration as [Dependency Injection](http://www.martinfowler.com/articles/injection.html) .\n\nHowever, not all queues a component interacts with are known up front. For example,\n a service that supports a [Return Address](../ReturnAddress.html) has to publish messages to queues that are not known at component start-up time.\n In order to accurately track dependencies between components we have to capture the\n fact that a component publishes messages to these queues. How can we intercept the\n instantiation of the *MessageSenderGateway* object by the component? Rather than letting the component instantiate the object\n directly using *new* we pass a factory to the messaging component. The messaging component uses the factory\n object to obtain references to the *IMessageSender* interface to send reply messages. Because the factory is invoked for each message\n queue reference it is the ideal spot to trace queue publication for visualization\n purposes.\n\nFor example the factory method to access a queue to send messages is implemented as\n follows:\n\n```\npublic MessageSenderGateway GetSenderInstance(String q){\n SendPublishTrace(q);\n return new MessageSenderGateway(q);\n}\n\nprotected void SendPublishTrace(string QueueName)\n{\n if (!SendQueues.Contains(QueueName)) \n {\n PubSubTrace trace = new PubSubTrace(ComponentName, QueueName, QueueInteractionEnum.QUEUE_PUBLISH);\n controlBusQueue.Send(trace);\n SendQueues.Add(QueueName, null);\n }\n}\n```\n\nWe notice one optimization in this code. Because a request-reply service component\n has to gain access to a queue for every reply message the default approach would send\n a publication message to the visualizer for every message. In reality, though, the\n reply queue is going to be the same for many messages. Therefore we make the factory\n smart enough to keep a list of queue names that have already been sent to the visualizer.\n This way we avoid sending duplicate messages onto the control bus.\n\nNow that we can send a message to the control bus whenever a component publishes or\n subscribes to a message queue we have to write a console that reads the messages off\n the control bus and generates the dependency graph. The component then calls GraphViz\n to layout and render the corresponding graph as a GIF image. To see how the graph\n builds up over time I created a simple HTML page with a *meta refresh* tag to automatically reload the picture every few seconds.\n\n## The Results\n\nSo what does the visualization look like? It takes a few seconds for the complete\n graph to be generated because many dependencies are established by messages send to\n dynamic [Return Addresses](../ReturnAddress.html). The following picture shows the image produced by GraphViz:\n\nWhile the picture is not quite as pretty as our design diagram with the patterns icons,\n this generated image gives us some immediate information: The system we created uses\n one central component (the loan broker) to interact will all other components in a\n request-reply fashion. We can also see that the test configuration used two instances\n of the Credit Bureau component. Looking at the image it is immediately obvious which\n component faces the highest message traffic and could present a potential bottleneck.\n Visualization the message exchanges can help us identify the architectural style of\n our solution, in this case a central [Process Manager](../ProcessManager.html) with request-reply interaction (represented as circles in the graph) with all other\n components.\n\n## What's Next?\n\nGenerating diagrams from a running system can give us quick information about the\n type of system we created without having to model the complete system up front. I\n could imagine different types of diagrams for different purposes. For example if we\n are interested only in dependencies and not the complete message flow we might only\n track request messages and not reply messages in a request-reply interaction because\n the service provider does not actually depend on the service consumer. Or, rather\n than drawing lines directly between components we could depict the channel itself\n as a node. This way it would be easier to see that all Bank components in the Loan\n Broker example publish their replies to the same channel.\n\nTaking things one step further, it would be interesting to investigate whether the\n resulting graphs can tell us more about the nature and quality of the solution. For\n example, we could count how many circles the graph has and what the average size of\n a circle is. Small circles imply more request-reply interaction, which could mean\n poorer scalability of the solution. It would be interesting to see whether we could\n identify certain patterns (or anti-patterns) from the graph data. This would be neat\n because the patterns now really look like (visual) patterns. What I created so far\n is a very simple but it could ultimately take on the shape of something like [SALSA](http://www.eweek.com/article2/0,1759,1611792,00.asp). One could even imagine some sort of query language against the graph to efficiently\n extract information from larger graphs. We could also augment the current system with\n message traffic data and depict the amount of message traffic by using different line\n weights in the graph.\n\n## Conclusion\n\nVisualizing the dependencies between loosely coupled systems can be very useful and\n can be implemented with moderate effort. This way, the system can evolve organically\n without us having to pre-impose a predefined structure. At any point in time we can\n visualize what shape the system has taken on. This type of bottom-up visualization\n can be a viable and more agile alternative to top-down modeling\n\n*Share:*\n\n*Follow:* [Follow @ghohpe](https://twitter.com/ghohpe) [SUBSCRIBE TO FEED](../ramblings.rss)\n\n*More On:* [DESIGN](/ramblings_design.html) [VISUALIZATION](/ramblings_visualization.html) [ALL RAMBLINGS](../ramblings.html)\n\nGregor is a cloud architect and author. He is a frequent speaker on asynchronous messaging,\n IT strategy, and cloud.", "znaku_textu": 16838, "slov": 2561, "odkazu": 58, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 15:36:52", "sha256": "c5d3872ab4ac40b59690ecadc9f3a1cfb7deadb1d01b3f87b21d81a4c15f5775", "hloubka": 4, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://architectelevator.com/blog", "http://www.martinfowler.com/", "http://www.martinfowler.com/ieeeSoftware/mda-thomas.pdf", "http://www.hohpe.com/Gregor/Work/portfolio.html", "http://www.edwardtufte.com/", "http://www.research.att.com/sw/tools/graphviz/", "http://home.so-net.net.tw/oodtsen/wingraphviz/index_en.htm", "http://www.martinfowler.com/articles/injection.html", "http://www.eweek.com/article2/0,1759,1611792,00.asp", "https://twitter.com/share", "https://twitter.com/ghohpe", "https://leanpub.com/37things"]} {"url": "http://www.enterpriseintegrationpatterns.com/ramblings/12_jeopardy.html", "titulek": "Web Services Jeopardy - Enterprise Integration Patterns", "h1": "Web Services Jeopardy", "popis": "It is nearly impossible to keep track of all the Web Services (WS-*) specifications or proposed \"standards\"", "klicova_slova": "", "kanonicka": "", "jazyk": "en_US", "robots_meta": "", "og": {"og:type": "article", "og:locale": "en_US", "og:site_name": "Enterprise Integration Patterns", "og:title": "Web Services Jeopardy", "og:description": "It is nearly impossible to keep track of all the Web Services (WS-*) specifications or proposed \"standards\"", "og:url": "https://www.enterpriseintegrationpatterns.com/ramblings/12_jeopardy.html"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Web Services Jeopardy"}, {"uroven": 2, "text": "WS-Alphabetsoup"}, {"uroven": 2, "text": "WS-Jeopardy"}], "markdown": "Gregor's Ramblings\n\n---\n\n# Web Services Jeopardy\n\nAugust 18, 2004\n\nFind my posts on IT strategy, enterprise architecture, and digital transformation\n at [ArchitectElevator.com](https://architectelevator.com/blog).\n\n## WS-Alphabetsoup\n\nThe fact that we now refer to the Web Services standardization efforts as \"WS-*\" (*\n being the wildcard character) is a pretty good indication that most people have lost\n track of the countless individual standardization efforts. There is no doubt that\n most of these proposed standards pursue a worthwhile goal. Typically, these proposals\n advocate to add a set of agreed upon fields to the SOAP message header. Each proposed\n standard defines the name, type, and meaning of fields and how they are supposed to\n be used. For example, WS-Addressing recommends to add header elements > and\n that identify the sender and ultimate recipient of stream of SOAP messages. These\n fields are very useful if a SOAP message is routed through intermediaries on its way\n to the ultimate destination. Other proposed standards add fields for security, reliable\n message resend in case a message gets lost, and much more. The details of the standard\n implementation are generally of little interest to the users and developer as the\n intend is for every vendor to agree to the standard and to incorporate support in\n their Web services toolkit.\n\nUnfortunately, this is where things get complicated. Most of these specifications\n are no standards at all but rather proposals drafted by a specific group of vendors.\n The vendor list is typically composed of the usual suspects: Microsoft, IBM, BEA,\n Sun and smaller middleware and Web services vendors such as TIBCO, IONA, Arjuna and\n others. Many drafts are even hosted on the vendor's site. Others are submitted to\n organizations such as OASIS, which decouples them a little bit from the vendor itself.\n We need to keep in mind, though, that requirements for submission to OASIS are fairly\n loose. The fact that a specification is hosted on OASIS is no guarantee that it is\n a widely adopted and supported standard. It is also no guarantee that vendors can\n freely implement the standard without having to obtain permission or pay license fees.\n\nAs a result, for many WS-* drafts the list of vendors at the top might be the most\n interesting part for the Web Services developers and architects because it gives an\n indication which vendors are likely to implement the proposed standard. However, recently\n this is no longer a guarantee either. For example, Microsoft has received some flak\n for their less-than-expected support for BPEL in BizTalk Server 2004 despite their\n active involvement in the definition of the specification. The same is true for other\n vendors as well -- I am just using Microsoft as an example.\n\n## WS-Jeopardy\n\nNow that I have drawn such a grim picture about the WS-* efforts, why should we even\n pay attention at all? First of all because a lot of very smart people are contributing\n to these proposals. Most of the proposal contributors are experienced architects and\n developer with many years of experience developing distributed solutions. With that\n experience it is often that these architects identify an important aspect of distributed\n computing that is missing from the current Web services specifications. For example,\n the ability to send one-way message reliably. Or the ability to route a message through\n a number of recipients before it reaches its final destination. These architects then\n go on to form a vendor-sponsored committee to find a way to fill the gap.\n\nThis is all good. But once the multi-vendor politics come into play, things get much\n more difficult. Who is supposed to contribute how much, who gets to implement when,\n who makes the first step, who endorses, who is left out etc. etc? That's why I propose\n that architects and developers of service-oriented architectures should look at these\n standards as a form of Jeopardy. Instead of focusing on the answer (the details of\n the standard), have a look at what problem the standard is trying to solve. More\n likely than not, it is a problem that you are going to have when you go to implement\n your architectural vision. For example, not knowing where SOAP messages come from\n and where they are going makes debugging and diagnostics very hard. Not being able\n to reliably send asynchronous messaging is likely to result in a brittle and not very\n scaleable \"RPC-over-the-network\" model.\n\nTherefore, I propose to many of my clients to use the WS-* standards as a checklist\n for their designs. I generally do not recommend they use WS-Addressing or WS-ReliableMessaging\n (or at least not right out of the gate). I do, however, challenge them by asking,\n \"What is your strategy to track messages in case of error?\" or \"How do you intend\n to support asynchronous messaging?\" The answer has sometimes little to do with Web\n Services. For example, the answer to reliable asynchronous messaging might be to use\n JMS or MQ or another middleware that ensures guaranteed delivery of asynchronous messages.\n And that's OK. \n ...\n\n*Share:*\n\n*Follow:* [Follow @ghohpe](https://twitter.com/ghohpe) [SUBSCRIBE TO FEED](../ramblings.rss)\n\n*More On:* [WEBSERVICES](/ramblings_webServices.html) [ALL RAMBLINGS](../ramblings.html)\n\nGregor is a cloud architect and author. He is a frequent speaker on asynchronous messaging,\n IT strategy, and cloud.", "znaku_textu": 5388, "slov": 864, "odkazu": 43, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 15:36:51", "sha256": "7bc2def5345429c0727d29894120cfd24f4db86f6c9bb6b6baecbed1da68ae52", "hloubka": 4, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://architectelevator.com/blog", "https://twitter.com/share", "https://twitter.com/ghohpe", "https://leanpub.com/37things"]} {"url": "http://www.enterpriseintegrationpatterns.com/ramblings/13_ioc.html", "titulek": "Dependency Injection in Messaging Architectures - Enterprise Integration Patterns", "h1": "Dependency Injection in Messaging Architectures", "popis": "The notion of Dependency Injection or Inversion of Control has generated quite a bit of interest lately", "klicova_slova": "", "kanonicka": "", "jazyk": "en_US", "robots_meta": "", "og": {"og:type": "article", "og:locale": "en_US", "og:site_name": "Enterprise Integration Patterns", "og:title": "Dependency Injection in Messaging Architectures", "og:description": "The notion of Dependency Injection or Inversion of Control has generated quite a bit of interest lately", "og:url": "https://www.enterpriseintegrationpatterns.com/ramblings/13_ioc.html"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Dependency Injection in Messaging Architectures"}, {"uroven": 2, "text": "Dependency Injection"}, {"uroven": 2, "text": "Message Injection"}, {"uroven": 2, "text": "Data vs. Objects"}, {"uroven": 2, "text": "Look Ma, No Middleware!"}], "markdown": "Gregor's Ramblings\n\n---\n\n# Dependency Injection in Messaging Architectures\n\nSeptember 3, 2004\n\nFind my posts on IT strategy, enterprise architecture, and digital transformation\n at [ArchitectElevator.com](https://architectelevator.com/blog).\n\n## Dependency Injection\n\nA lot of developers are talking about inversion of control (IoC) and dependency injection\n these days. I don't want to reiterate what others have already described in much detail.\n If you are interested in the detailed story behind dependency injection please refer\n to this [article](http://www.martinfowler.com/articles/injection.html#FormsOfDependencyInjection) by [Martin Fowler](http://www.martinfowler.com) or this [post](http://docs.codehaus.org/display/PICO/Inversion+of+Control) by Aslak Hellesoy and Paul Hammant (fellow ThoughtWorkers in the UK). To save you\n some reading, here is the gist of it (or at least my interpretation). Assume an object\n A requires a reference to object B because it wants to make use of B's services. The\n usual approach is for A to instantiate an instance of B using the 'new' command. A\n now holds a reference to B and can invoke its methods. So far, this could well be\n a lesson from OO 101 and is not terribly interesting. What, however, if in different\n situations A needs different versions of B? For example, assume B provides persistence\n services. During testing you might want to simply write data into a file but during\n production you might want to use an industrial-strength database. Or, if B provides\n messaging services, you might want to use a synchronous implementation for unit testing\n and an asynchronous one for integration testing and production. Or, you might want\n to use a mock-messaging layer that is not a messaging layer at all but verifies that\n A sends the correct data to the layer.\n\nObject-oriented constructs like interfaces, inheritance and polymorphism give us well\n known mechanisms to hide different implementations behind a common interface. This\n allows A to access B's services via a common interface B, which may be implemented\n by different implementations B* and B'. The question that now remains is, how does\n A instantiate the right implementation of B? Ideally A should not be aware that there\n is a testing and production mode and that there are two different implementation of\n B. This implies that A should no longer instantiate B' or B* directly. There are multiple\n ways to resolve this dependency. One options is to allow A to use a B-factory. This\n way A can ask the factory for an instance of B. The factory could be smart enough\n to figure out which implementation of B to create behind the interface. Alternatively,\n A could simply advertise that it requires a reference to B and the external environment\n (e.g. the run-time container) would pass in the appropriate implementation of B. For\n example, in [Pico Container](http://docs.codehaus.org/display/PICO/Inversion+of+Control) objects use the class constructor to advertise their needs for other objects. The\n container inspects the constructor, instantiates the appropriate implementations of\n the specified types and passes them to the component.\n\n## Message Injection\n\nSo what does this have to do with messaging? Let's assume a component A is processing\n data. In a common procedural approach, A would either call the data source for data\n or the data producer would invoke A with the data. In either scenario there is a direct\n linkage between A and the source of the data. Let's now assume that there is a chain\n of these types of data processing components. If each component expects to be called\n with data it is easy for us to pass in test data: we simply instantiate the component\n and invoke it with our desired test data. However, the component will in turn call\n other components. This is often not desirable for a unit test because we prefer to\n test only one component at a time. Likewise, if each component asks it source for\n data we need to be able swap out the source for a test data source to feed test data\n into the component.\n\n[Pipes-and-Filters](../PipesAndFilters.html) messaging architectures help break these dependencies between components. Component\n A no longer requests data from a specific component nor does it send data to a specific\n component. Instead, the component consumes messages of a channel and writes messages\n to another channel. This makes it ideal to replace a component's ecosystem during\n testing. This way we can feed test data into the component's input channels and monitor\n the component's output channels for correct result data. Essentially, component A\n has no direct dependencies on any other component. However, just as with the Inversion\n of Control containers *somewhere* the dependencies must be resolved. In the world of messaging this can happen in one\n of two ways:\n\n- The component can subscribe and publish to one or more channels of its choosing. Because\n channels are decoupled from the sender and receiver we can still use these channels\n to feed test data from a test data source. The composition of the individual components\n into a larger system happens by virtue of two components publishing or subscribing\n to the same channel. This configuration is very flexible but sometimes it can be difficult\n to understand what component communicates with what other component.\n- Alternatively, we can pass the required channels to each component. Composition of\n a pipes-and-filters message flow would then happen by virtue of the composer choosing\n to pass the same channel to multiple components for publication or subscription. This\n option allows the composer to reuse the same component with different channels. The\n main drawback is that it does require an external composer to establish connections\n between components.\n\nIn either scenario the component itself does not acquire references to other component\n but 'advertises' its needs by subscribing to one or more specific message channels.\n This property gives us many of the same advantages that drives dependency injection,\n for example improved testability or the ability to execute a component without having\n to instantiate all other components.\n\n## Data vs. Objects\n\nEven though [Pipes-and-Filters](../PipesAndFilters.html) architectures exhibit some of the same properties as dependency injection models\n there is one important difference. Dependency injection schemes are generally used\n to provide object references to a component. Often these references provide useful\n services to the component, such as persistence, transactional support etc. In the\n world of message message data might arrive in the form of an object but the message\n does not provide any services to the component -- it is simply a holder of data.\n\n## Look Ma, No Middleware!\n\nOne of the nice properties of [Pipes-and-Filters](../PipesAndFilters.html) architectures is that they can be realized in many different technologies. For example,\n an implementation could use third party middleware a la JMS, TIBCO, MQ etc. Or it\n could all just be implemented inside a single JVM using a custom EventChannel class\n (our most recent project used this approach -- I'll share more about our experiences\n soon). In either case, this type of architecture enables dynamic composability, extensibility\n and great testability of individual components.\n\n*Share:*\n\n*Follow:* [Follow @ghohpe](https://twitter.com/ghohpe) [SUBSCRIBE TO FEED](../ramblings.rss)\n\n*More On:* [MESSAGING](/ramblings_messaging.html) [DESIGN](/ramblings_design.html) [ALL RAMBLINGS](../ramblings.html)\n\nGregor is a cloud architect and author. He is a frequent speaker on asynchronous messaging,\n IT strategy, and cloud.", "znaku_textu": 7657, "slov": 1162, "odkazu": 47, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 15:36:50", "sha256": "8d0a8e6698a2ab8f8cb2673cb37a64e9b62e89ba1592a263bcafd62a97a8d16e", "hloubka": 4, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://architectelevator.com/blog", "http://www.martinfowler.com/articles/injection.html", "http://www.martinfowler.com/", "http://docs.codehaus.org/display/PICO/Inversion+of+Control", "https://twitter.com/share", "https://twitter.com/ghohpe", "https://leanpub.com/37things"]} {"url": "http://www.enterpriseintegrationpatterns.com/ramblings/14_edainjvm.html", "titulek": "Look Ma -- No Middleware! Using Event-Driven Architectures inside a JVM. - Enterprise Integration Patterns", "h1": "Look Ma -- No Middleware! Using Event-Driven Architectures inside a JVM.", "popis": "Our most recent project was to replace a batch-oriented stored procedure with a more flexible, maintainable and scaleable Java-based architecture", "klicova_slova": "", "kanonicka": "", "jazyk": "en_US", "robots_meta": "", "og": {"og:type": "article", "og:locale": "en_US", "og:site_name": "Enterprise Integration Patterns", "og:title": "Look Ma -- No Middleware! Using Event-Driven Architectures inside a JVM.", "og:description": "Our most recent project was to replace a batch-oriented stored procedure with a more flexible, maintainable and scaleable Java-based architecture", "og:url": "https://www.enterpriseintegrationpatterns.com/ramblings/14_edainjvm.html"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Look Ma -- No Middleware! Using Event-Driven Architectures inside a JVM."}, {"uroven": 2, "text": "From SP to EDA in 6 weeks"}, {"uroven": 2, "text": "Event Channels in Java"}, {"uroven": 2, "text": "Topic Hierarchy"}, {"uroven": 2, "text": "Emerging Patterns"}, {"uroven": 2, "text": "Granularity"}, {"uroven": 2, "text": "Instant Replay"}, {"uroven": 2, "text": "Other Lessons Learned"}, {"uroven": 2, "text": "Look Ahead"}], "markdown": "Gregor's Ramblings\n\n---\n\n# Look Ma -- No Middleware! Using Event-Driven Architectures inside a JVM.\n\nOctober 1, 2004\n\nFind my posts on IT strategy, enterprise architecture, and digital transformation\n at [ArchitectElevator.com](https://architectelevator.com/blog).\n\n## From SP to EDA in 6 weeks\n\nOur client had a rather lengthy stored procedure to aggregate values across a series\n of data records and compute \"scores\" from these aggregates using various look-up tables.\n The records in the database represent essentially a collection of user input over\n time. Our client was facing two main issues: first, the stored procedure was becoming\n unwieldy due to new requirements for the support of new types of products and scores.\n Second, the batch-orientation of the stored procedure caused response times to be\n uncomfortably slow. While the data access part of the procedure was naturally efficient,\n more and more business logic inside the procedure started to bog down the database\n server.\n\nWe addressed the first problem by converting from PL/SQL to Java code, which allowed\n us to structure the solution using object-oriented constructs. We targeted the second\n problem by processing user events as they occur instead of waiting for all events\n to be collected first before starting to compute aggregated values. In order to allow\n for future flexibility we developed a set of self-contained components, called \"calculators\",\n that we could connect to one another via event channels. Each calculator would subscribe\n to a set of relevant event types and in response publish events of other types. This\n this loosely coupled architecture enabled us to compose new solutions from existing\n calculators quite easily, sorta like Lego.\n\n## Event Channels in Java\n\nIn order to realize this architecture we had to build an event channel and a way for\n calculators to publish events or subscribe to them. We chose to build the solution\n from scratch because our requirements were in fact quite simple. For example, we wanted\n our architecture to be amenable to distribution and asynchrony but for our initial\n channel a synchronous single-JVM implementation was sufficient. On a second look,\n we could have benefited from something like [ActiveMQ](http://activemq.codehaus.org), a messaging framework that supports intra-VM channels. Also, some of the J2SE5 features\n in the [java.util.concurrent package](http://java.sun.com/j2se/1.5.0/docs/api/java/util/concurrent/package-summary.html) as well as generics could have come in handy, but the GA release was just a few months\n too late for us. BTW, I just saw there the is a [Back-port to 1.4](http://altair.cs.oswego.edu/pipermail/concurrency-interest/2004-September/001035.html) for the concurrency package, which is great.\n\nAnyway, we set out to build the event channel from scratch and it turned out not to\n be very much code. The channel interface is in fact very trivial:\n\npublic interface Channel {\n public void send(Event event);\n public void subscribe(EventRecipient recipient, Class eventClass);\n}\n\nThis interface sure seems simple enough to be implemented in a variety of messaging\n frameworks. Subscriptions are based on the type (class) of the event (more about\n this soon). One important property, however, is not apparent in the interface: our\n channels are [Publish-Subscribe Channels](../PublishSubscribeChannel.html). This implies that many subscribers can subscribe to the same channel and each receive\n a copy of the same message.\n\nOne important part is still missing in this messaging layer: subscribers need to be\n notified when an event occurs. We wanted all our subscribers to be strictly event-driven,\n i.e. subscribers do not have to poll for events but instead are actively invoked whenever\n an event occurred. With our solution, receiving messages became as simple as implementing\n a method of name onEvent with a parameter of type Event, or a subtype thereof. Whenever an event of the subscribed type is published to the\n channel, the channel will directly invoke the onEvent method of all appropriate subscribers. In our simple implementation, this invocation\n occurs via reflection.\n\nWith all this in mind, to build a very simple subscriber here is all you have to do:\n\npublic class DebugCalculator {\n public DebugCalculator (Channel channel) {\n channel.subscribe(this, Event.class);\n }\n\n public void onEvent(Event event) {\n System.out.println(\"event = \" + event);\n }\n}\n\n## Topic Hierarchy\n\nIt might be impractical to have to create a new channel for each type of event so\n we allow subscribers to subscribe to specific types of events. A subscriber will only\n receive events of the type it subscribed to or subtypes thereof. Essentially, we created\n a publish-subscribe topic hierarchy based on Java classes. Most publish-subscribe\n messaging systems specify topic hierarchies in a specific textual notation, such as\n topic.subtopic.subsubtopic. A subscriber can then choose to subscribe to topic.* to receive all messages for this topic or any subtopic. As a side note, JMS does\n not specify this behavior for its publish-subscribe topics, but essentially all JMS\n providers support it with slightly varying syntax.\n\nIn our world, such a topic hierarchy would be represented as a class hierarchy like\n the following:\n\nA subscriber who subscribes to the type Event would receive all events while a subscriber who subscribes to SubtestEvent would only receive events of type SubtestEvent, SubtestStartedEvent and SubtestEndedEvent. This feature makes it very convenient for calculators to subscribe to multiple\n topics at once. For example, the DebugCalculator shown above simply subscribes to all events by invoking subscribe with Event.class. Even if new event types are added, the DebugCalculator will receive the new types just as well. At the same time the publish-subscribe property\n of the channel ensures that this debug calculator does not affect any of the existing\n message flow. We could say that [Publish-Subscribe Channels](../PublishSubscribeChannel.html) are side-effect free in regards to adding new subscribers. Programming this way has\n a very aspect-like flavor as you can easily apply processing to whole classes (pun\n intended) of events.\n\nOur event channel deals with a second type of hierarchy though, which is somewhat\n unique to the way we invoke event recipients. We wanted to avoid the typical if (... instanceof ...) goo that often plagues message-driven systems that deal with multiple event types.\n Therefore, we made our channel smart enough to invoke the most specific (i.e. deepest\n subclass) implementation of the onEvent method in the recipient. The channel performs that evaluation for each event. This\n behavior becomes clear with a simple example:\n\nclass SubEvent1 extends Event {}\nclass SubEvent2 extends Event {}\n\nclass SubScribeToAll {\n public SubScribeToAll {\n channel.subscribe(Event.class);\n }\n public void onEvent (Event e) {}\n public void onEvent (SubEvent1 se) {}\n}\n\nThis class subscribes to the base type Event. As a result, it will receive events of type Event, SubEvent1, and SubEvent2. According to our implementation, for each event of type Event (excluding subclasses), the method onEvent(Event) is invoked. For events of type SubEvent1, the method onEvent(SubEvent1) is invoked because this is the most specific onEvent methods. On the other hand, for events of type SubEvent2, onEvent(Event) is called because that is the most specific method that matches type SubEvent2.\n\nThis feature makes event dispatching inside event receivers almost trivially simple\n as demonstrated by the DebugCalculator.\n\n## Emerging Patterns\n\nOriginally I was going to dive into the implementation details of the channel but\n I think I'll postpone that into a separate posting. If you are of the impatient type,\n [Binkley's Blog](http://binkley.blogspot.com/2004_08_01_binkley_archive.html#109193832630412000) gives you a good idea. He also converted the channel to J2SE5.0 using generics.\n\ni was particularly interesting to see what kind of common patterns would emerge given\n our basic architectural style. I intentionally held back on giving everybody a copy\n of [my book](../eaipatterns.html) and say \"Hey, use these patterns!\". In the end I was even more pleasantly surprised\n that the calculators essentially fell into a handful of pattern categories in my book\n (see figure).\n\nThe first \"bank\" of calculators acts as [Enrichers](../DataEnricher.html). These calculators access the database to retrieve context data that is required\n to compute the scores. The Enrichers publish the context data to the event channel.\n The next stage is a set of [Message Translators](../MessageTranslator.html) that use both the context data and the event data to compute basic scores. These\n basic scores are then republished as events, which are consumed by a bank of [Aggregators](../Aggregator.html). The Aggregators republish aggregated data to be transformed by another set of transformers.\n It was interesting to observe that this staged architecture was not clear at the beginning\n but evolved over time.\n\n## Granularity\n\nOne important design decision was how small or how big to make the calculators. Smaller\n calculators would improve composability and testability but could also cause unnecessary\n overhead and complexity. It turned out that the message channel overhead was quite\n insignificant. Therefore, we decided to make the calculators as small and as generic\n as we could. This drastically improved testability. For example, a score calculator\n would not retrieve its own context data from the database but instead subscribe to\n an event from a separate Enricher. This allowed us to feed mock context data to the\n calculator during unit tests and kept these tests database independent. This realization\n prompted my earlier posting on [Inversion of Control](13_ioc.html).\n\nHowever, having many calculators also caused some pain. The number of event types\n exploded as the event type was our only routing mechanism. This was partly due to\n the fact that we sent all events on a single channel. Using different channels for\n different stages would have made life a little simpler. Also, having multiple inheritance\n could have been helpful. We briefly considered routing events based on multiple marker\n interfaces attached to events but the production deadline kept us from exploring\n this option further.\n\n## Instant Replay\n\nOne of the coolest features this architecture enabled was the ability to replay events.\n None of the intermediate calculators persist any state. We do, however, persist each\n original user event in the database (the exiting application already did this for\n us). This allowed us to largely ignore transactions, which can be painful in event-driven\n environments. Also, in the event of failure we could simple re-instantiate all calculators\n and replay all events in the user event log. All calculators would then rebuild their\n state based on the original message stream. This feature came in very handy.\n\n## Other Lessons Learned\n\n- **Make calculators small** -- see above.\n- **Keep event classes simple** -- As events are veritable Java objects it is tempting to load them up with neat\n helper functions. Before you know it they are full-fledged business objects. This\n turned out to be a bad idea. The event classes are the primary coupling points between\n calculators. Having complex events made it much more likely that changes in one calculator\n cascaded down the chain and forced us to change other calculators as well.\n- **Unit testing is a breeze** -- The loosely coupled nature of the calculators made it trivial to provide mocks\n and feed mock data to a unit under test. Since our channels are synchronous we did\n not have to worry about timing conditions during testing. If we used asynchronous\n channels I would recommend to replace the channel implementation with a synchronous\n one during unit testing.\n- **Add rather than replace** -- The publish-subscribe nature makes it very easy to add a parallel branch to existing\n code. So major refactorings are more easily completed by adding a parallel set of\n calculators to the existing event infrastructure. Then you can compare results side\n by side and ultimately shut off the original message path. This is essentially the\n strategy Martin Fowler describes as [Strangler Application](http://www.martinfowler.com/bliki/StranglerApplication.html) .\n- **Don't underestimate integration testing** -- Loosely coupled systems allow individual components to be unit tested very thoroughly\n because most external dependencies can be injected via events. However, loosely coupled\n architectures tend to suffer from more integration testing issues as components can\n make fewer assumptions about each other. Fewer assumptions and less compile-time validation\n mean more problems at integration time. Make sure to write some automated end-to-end\n tests. Otherwise you run the risk of having a collection of bug-free calculators,\n which in aggregate do nothing particularly useful.\n- **Build tools** -- Loosely coupled solutions allow (one might say even encourage) independent variability.\n This is a great feature but also means that before long you are not sure anymore what\n you actually built. Automated tools to analyze and visualize the active configuration\n can be very, very useful and are often not very difficult to build (see [Visualizing Dependencies](11_dependencies.html) ).\n- **Careful with sequencing assumptions** -- Our channels had a specific depth-first sequencing property. We had to be careful\n not to rely on this as a port to asynchronous events would no longer preserve this\n property. Therefore, calculators should make the minimum amount of assumptions about\n event order. For example, lazy initialization is often better than relying on another\n event to trigger initialization. Binkley also posted an interesting entry on the breadth-first\n vs. depth-first event processing: [Turning 90 degrees](http://binkley.blogspot.com/2004_08_01_binkley_archive.html#109313937627982681) .\n\n## Look Ahead\n\nWhat else would we like to do if time permits? I would definitely recommend a Visualization\n engine like [this one](11_dependencies.html). Generating HTML like my good old [TibDoc](http://www.hohpe.com/Gregor/Work/portfolio.html) would also be a great troubleshooting tool (on of these days I should post sample\n output of that tool...)\n\nThe next logical step would be to replace the synchronous intra-jvm channel implementation\n with \"real\" JMS channels. This would carry more messaging overhead but allows us to\n scale out enormously. It would be interesting to see whether it is better to cluster\n certain types of calculators on one set of machines (SEDA style) or run a whole calculator\n chain on each machine and load balance (with session stickiness) across them. My intuition\n tells me SEDA but since out calculators are small the messaging overhead might be\n prohibitive. As with any performance tuning only a real experiment will tell.\n\nNext time: the channel implementation in Java.\n\n*Share:*\n\n*Follow:* [Follow @ghohpe](https://twitter.com/ghohpe) [SUBSCRIBE TO FEED](../ramblings.rss)\n\n*More On:* [DESIGN](/ramblings_design.html) [MESSAGING](/ramblings_messaging.html) [ALL RAMBLINGS](../ramblings.html)\n\nGregor is a cloud architect and author. He is a frequent speaker on asynchronous messaging,\n IT strategy, and cloud.", "znaku_textu": 15333, "slov": 2290, "odkazu": 57, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 15:36:49", "sha256": "1d42ac3f2e29e1acadc3dc267bb561a925d3670225e05d7db9ad050056480e7c", "hloubka": 4, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://architectelevator.com/blog", "http://activemq.codehaus.org/", "http://java.sun.com/j2se/1.5.0/docs/api/java/util/concurrent/package-summary.html", "http://altair.cs.oswego.edu/pipermail/concurrency-interest/2004-September/001035.html", "http://binkley.blogspot.com/2004_08_01_binkley_archive.html", "http://www.martinfowler.com/bliki/StranglerApplication.html", "http://www.hohpe.com/Gregor/Work/portfolio.html", "https://twitter.com/share", "https://twitter.com/ghohpe", "https://leanpub.com/37things"]} {"url": "http://www.enterpriseintegrationpatterns.com/ramblings/15_indigo.html", "titulek": "Indigo Design Preview - Enterprise Integration Patterns", "h1": "Indigo Design Preview", "popis": "I just attended the Indigo Strategic Design Review in Redmond", "klicova_slova": "", "kanonicka": "", "jazyk": "en_US", "robots_meta": "", "og": {"og:type": "article", "og:locale": "en_US", "og:site_name": "Enterprise Integration Patterns", "og:title": "Indigo Design Preview", "og:description": "I just attended the Indigo Strategic Design Review in Redmond", "og:url": "https://www.enterpriseintegrationpatterns.com/ramblings/15_indigo.html"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Indigo Design Preview"}], "markdown": "Gregor's Ramblings\n\n---\n\n# Indigo Design Preview\n\nOctober 8, 2004\n\nFind my posts on IT strategy, enterprise architecture, and digital transformation\n at [ArchitectElevator.com](https://architectelevator.com/blog).\n\nIt appears that I did ramble a bit too much in detail about the design review. As\n a result, the Indigo product management team has asked me to take the posting down.\n I asked them whether it is OK to leave some portions here, so hopefully we can find\n a happy compromise. Otherwise we'll have to wait for the public beta some time next\n year. :-(\n\nI just saw on [Artima](http://www.artima.com/forums/flat.jsp?forum=152&thread=75185) that Don Box had even linked to this entry but now it seems that his posting got\n pulled off-line as well. And I was just going to celebrate my fame (by virtue of\n being a Don link!).\n\n*Share:*\n\n*Follow:* [Follow @ghohpe](https://twitter.com/ghohpe) [SUBSCRIBE TO FEED](../ramblings.rss)\n\n*More On:* [ALL RAMBLINGS](../ramblings.html)\n\nGregor is a cloud architect and author. He is a frequent speaker on asynchronous messaging,\n IT strategy, and cloud.", "znaku_textu": 1086, "slov": 161, "odkazu": 44, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 15:36:48", "sha256": "19ff756e1a7004c954819bb8491c3bb300662eec96aea0af743131ad528edbce", "hloubka": 4, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://architectelevator.com/blog", "http://www.artima.com/forums/flat.jsp?forum=152&thread=75185", "https://twitter.com/share", "https://twitter.com/ghohpe", "https://leanpub.com/37things"]} {"url": "http://www.enterpriseintegrationpatterns.com/ramblings/16_patternscomponents.html", "titulek": "Are \"Pattern\" and \"Component\" Antonyms? - Enterprise Integration Patterns", "h1": "Are \"Pattern\" and \"Component\" Antonyms?", "popis": "Last year's OOPSLA tutorial on Enterprise Integration Patterns was quite well received", "klicova_slova": "", "kanonicka": "", "jazyk": "en_US", "robots_meta": "", "og": {"og:type": "article", "og:locale": "en_US", "og:site_name": "Enterprise Integration Patterns", "og:title": "Are \"Pattern\" and \"Component\" Antonyms?", "og:description": "Last year's OOPSLA tutorial on Enterprise Integration Patterns was quite well received", "og:url": "https://www.enterpriseintegrationpatterns.com/ramblings/16_patternscomponents.html"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Are \"Pattern\" and \"Component\" Antonyms?"}, {"uroven": 2, "text": "EAI Patterns Toolkit"}, {"uroven": 2, "text": "Codifying Patterns"}, {"uroven": 2, "text": "Patterns to Components"}, {"uroven": 2, "text": "Example: Splitter"}, {"uroven": 2, "text": "Mixed Success"}, {"uroven": 2, "text": "Next Steps"}], "markdown": "Gregor's Ramblings\n\n---\n\n# Are \"Pattern\" and \"Component\" Antonyms?\n\nOctober 15, 2004\n\nFind my posts on IT strategy, enterprise architecture, and digital transformation\n at [ArchitectElevator.com](https://architectelevator.com/blog).\n\n## EAI Patterns Toolkit\n\nAfter last year's OOPSLA my goal was to develop a messaging toolkit that allows people\n to run the patterns from [our book](../eaipatterns.html) and observe a live messaging system in action. Well, it took a bit longer than originally\n expected but I now have a kit that implements about a dozen key patterns as individual\n executables. These executables can be composed into messaging solutions straight from\n the command line or with simple batch scripts. Most components have a cute little\n GUI as shown in the following figure.\n\nThe example domain for the messaging toolkit is a coffee shop where customers place\n orders that are then fulfilled by baristas. Along the way orders can be enriched,\n split, aggregated, resequenced etc. The diagram shows a simple example of a customer\n placing an order, which is split into individual order items by a [Splitter](../Sequencer.html). Two baristas act as [Competing Consumers](../CompetingConsumers.html) to process orders. A Logger displays messages on the orderCompletedChannel. The scenario can be scripted in a simple batch file:\n\n```\nCustomer orderChannel\nSplitter orderChannel orderItemChannel \"/Order/Item\"\nBarista orderItemChannel orderCompletedChannel\nSecondBarista orderItemChannel orderCompletedChannel\nLogger orderCompletedChannel\n```\n\nThese scripts make up a nice Domain-Specific Language which is based on the vocabulary\n in our book. The free composability makes it interesting in fun to build larger messaging\n solutions from these relatively simple building blocks.\n\n## Codifying Patterns\n\nTypically, when people ask me about \"codifying\" or \"toolifying\" patterns my first\n reaction is one of skepticism. Patterns are meant to be a human-to-human communication\n mechanism, not a human-to-machine mechanism. After all, I have pointed many people\n to the fact that a pattern is not just the piece of code in the example section. It's\n the context-problem-forces-solution combination that makes patterns so useful. A pattern\n applies most of the time, but not always. Patterns can be combined and morphed. Most\n patterns lead to multiple different implementation strategies. And last but not least\n a pattern has to be realized, i.e. mapped into a specific programming environment\n to be used.\n\nThis does not mean that patterns cannot be incorporated into a tool. Many tools and\n libraries embody many successful patterns. Almost every messaging library supports\n [Competing Consumers](../CompetingConsumers.html), [Event-driven Consumers](../EventDrivenConsumer.html) and many more patterns. Of course patterns are meant to be included in all kinds\n of software, including libraries and tools. My skepticism usually arises when someone\n mentions notion of programming in patterns a la \"right click and make a factory\" or\n when someone plans to map patters to a strict metamodel like the [OMG](http://www.omg.org)'s MOF (meta-object facility). The power of patterns lies in the fact that they can\n be a little bit fuzzy around the edges and constraining them into a specific model\n seems to me like sticking a wild animal into a cage. They'll likely survive but they\n will definitely not flourish.\n\nWith all this in the back of my mind, now I sit here with a whole collection of codified\n patterns and am having a ball with it. Did I forget to eat my proverbial dog food\n or did I have pre-established opinions that were not grounded in actual experience?\n\n## Patterns to Components\n\nThere is no doubt that implementing the patterns in my messaging toolkit required\n me to tighten up the \"fuzziness\" of the patterns. Each component has to have a very\n specific (read embedded in code) behavior and has to have well defined input and output\n ports. There is also a specific command line syntax for each component.\n\nSo what is the secret sauce here? I think there are a number of specific reasons that\n the patterns I chose (only about 10 of 65 patterns are implemented) are easily translated\n into components. First, I fixed a lot of the technical environment parameters: the\n components only run on a .NET platform (most likely Windows), require MSMQ, can only\n execute on a single machine, and process only XML messages. As all pattern components\n share these properties a consistent realization of a collection of patterns seems\n a lot more likely.\n\nBut I believe that other forces are at work. One definite contributor to the easy\n conversion of these patterns into components is the [Pipes-and-Filters](../PipesAndFilters.html) architectural style. This style's strongest asset is its simplicity and the easy\n *composability* of individual components. This composability allows us to create larger solutions\n once we have morphed a set of base patterns into components. Object-oriented systems\n expose much more complex (and also more powerful) ways of composing patterns that\n do not necessary make it that easy to combine patterns without overlap between them.\n\nI believe one last reason the conversion from pattern to component worked out well\n in this case is due to the fact that I deliberately choose a family of patterns with\n well-defined variability points. Each pattern exhibits certain givens while other\n elements are up to the specific instantiation of the pattern. We call these elements\n variability points.\n\nMany of the routing patterns are very close descendants of the basic router. They\n look at a message, make a simple decision and republish the message. The variability\n point is how the router makes the decision, for example which field of the incoming\n message it looks at. It turns out that the variability points for most routing patterns\n are relatively simple expressions. Fixing the document format to XML allows us to\n codify the expressions in XPath. This means that the behavior of the pattern can be\n fixed as long as the expressions are variable. This is exactly what happens in case\n of a [Splitter](../Sequencer.html) or [Content-Based Router](../ContentBasedRouter.html). Essentially, we use a general purpose programming language (C# in this example)\n to codify the general behavior of the pattern (and all the fluff like cutesy user\n interfaces). Then we rely on a more domain-specific programming (XPath in this example)\n to codify the variability points. Because the domain-specific language is interpreted\n it is easy to allow it to be specified on the command line. Voila, we have converted\n a pattern into a generic enough component.\n\nLikely, we could have created our own domain-specific language to express the variability\n points or use a popular scripting language like Ruby. However, since our XML documents\n are simple, using XPath to express the variability seemed simple and convenient.\n\n## Example: Splitter\n\nTo demonstrate how this reasoning translated into practice, let's look at the (abbreviated)\n implementation of the [Splitter](../Sequencer.html) component. The core code of the Splitter is quite compact, once again benefiting\n from imposing the proper constraints (XML only, .NET only, using a highly abstracted\n messaging library):\n\n```\npublic class SplitterComponent : SimpleFilter\n{\n protected string nodePath;\n\n public SplitterComponent(IMessageReceiver input, IMessageSender output, string nodePath) : base (input, output)\n {\n this.nodePath = nodePath;\n }\n\n protected override void OnMessage(XmlDocument message)\n {\n XmlNodeList nodeList = message.SelectNodes(nodePath);\n foreach (XmlNode node in nodeList)\n {\n XmlDocument splitDoc = new XmlDocument();\n splitDoc.AppendChild(splitDoc.ImportNode(node, true));\n output.Send(splitDoc);\n }\n }\n}\n```\n\nThe run-time environment provides the Splitter class with an input channel, an output channel and an XPath expression that specifies\n where to slice the incoming document. The remainder of the code is little more than\n a loop over an XML node set.\n\nNow is this the Splitter pattern? Not really. It is one possible implementation of a Splitter in a specific\n run-time environment. Consequently, if I constrain my world to match the specific\n constraints of the run-time environment assumptions baked into this specific implementation\n of a Splitter, I can then view the executable component as my \"Splitter\". This is what happened\n in case of the messaging toolkit.\n\n## Mixed Success\n\nNot all routing patterns were that easily converted into components. For example,\n an [Aggregator](../Aggregator.html) has very well defined variability points (Correlation, Completeness Condition and\n Aggregation Algorithms), but not all of these are as easily expressed in a higher-level\n domain-specific language. Correlation can easily be expressed using XPath if all documents\n are XML, but the completeness condition and the aggregation algorithm pretty much\n have to be expressed in a more general purpose programming language. Because I am\n using a compiled language, I had to hard-code this part of the logic. I still isolated\n it from the core Aggregator logic via a generic interface (any comments abut the I...\n naming convention for interface belong into another forum...).\n\n```\npublic interface IAggregate\n{\n void AddMessage(XmlDocument message);\n bool IsComplete();\n XmlDocument GetResultMessage();\n}\n```\n\nIt is easy to see that the interface represents the remaining variability points of\n an [Aggregator](../Aggregator.html) (Correlation is taken care of by an XPath command line parameter). However, the\n relationship between Aggregator and Completeness Condition is now made at compile-time\n as opposed to composition time.\n\n## Next Steps\n\nI hope this example sheds some light on the sometimes controversial topic of codifying\n patterns. Given the right constraints and a limited scope (a the messaging toolkit\n is only for educational purposes and contains only a subset of patterns) turning patterns\n into composable components can be a great learning tool. However, using them as a\n generic programming construct is more dangerous. There is a reason these elements\n are patterns and not a coding library. Granted, as patterns mature, they ultimately\n tend to be incorporated into libraries. This usually happens to specific patterns\n in a narrow domain. For example, many UI frameworks are based on the Model-View Controller\n pattern. However, using patterns as a high-level generic programming construct a\n la MDA is in my opinion still fraught with many problems and unanswered questions.\n Alas, I have received a request from the [Integration Consortium](http://www.eaiic.org) to map the patterns in out book to the MOF. My general attitude is that skepticism\n is healthy but you never know until you try. Now I just need to find someone who understands\n the meta-meta model to do the work. That sounds like a meta-meta-meta problem :-)\n\n*Share:*\n\n*Follow:* [Follow @ghohpe](https://twitter.com/ghohpe) [SUBSCRIBE TO FEED](../ramblings.rss)\n\n*More On:* [PATTERNS](/ramblings_patterns.html) [ALL RAMBLINGS](../ramblings.html)\n\nGregor is a cloud architect and author. He is a frequent speaker on asynchronous messaging,\n IT strategy, and cloud.", "znaku_textu": 11221, "slov": 1683, "odkazu": 52, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 15:36:47", "sha256": "8fcd6119369f7ba272c358f5f3f1c7ebbbc087bfb623cdfbb4677447e0591a65", "hloubka": 4, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://architectelevator.com/blog", "http://www.omg.org/", "http://www.eaiic.org/", "https://twitter.com/share", "https://twitter.com/ghohpe", "https://leanpub.com/37things"]} {"url": "http://www.enterpriseintegrationpatterns.com/ramblings/17_acmconference.html", "titulek": "ACM Middleware Conference: Pub-Sub and Related Topics - Enterprise Integration Patterns", "h1": "ACM Middleware Conference: Pub-Sub and Related Topics", "popis": "I just attended the ACM Middleware conference in Toronto (I thought a 1/2 day tutorial in integration patterns)", "klicova_slova": "", "kanonicka": "", "jazyk": "en_US", "robots_meta": "", "og": {"og:type": "article", "og:locale": "en_US", "og:site_name": "Enterprise Integration Patterns", "og:title": "ACM Middleware Conference: Pub-Sub and Related Topics", "og:description": "I just attended the ACM Middleware conference in Toronto (I thought a 1/2 day tutorial in integration patterns)", "og:url": "https://www.enterpriseintegrationpatterns.com/ramblings/17_acmconference.html"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "ACM Middleware Conference: Pub-Sub and Related Topics"}, {"uroven": 2, "text": "Patterns vs. Research Papers"}, {"uroven": 2, "text": "Publish-Subscribe"}, {"uroven": 2, "text": "Languages"}, {"uroven": 2, "text": "Conclusion"}], "markdown": "Gregor's Ramblings\n\n---\n\n# ACM Middleware Conference: Pub-Sub and Related Topics\n\nOctober 25, 2004\n\nFind my posts on IT strategy, enterprise architecture, and digital transformation\n at [ArchitectElevator.com](https://architectelevator.com/blog).\n\n## Patterns vs. Research Papers\n\nAfter I finished teaching my tutorial someone came up an essentially said that the\n patterns are not that useful for their work because they are mostly old stuff. For\n example, topic-based publish-subscribe is soo 1999 and not really interesting anymore.\n This discussion reminded of me of one important difference between patterns authors\n and research paper / thesis authors. The goal of pattern authors is to find common\n themes in existing usage and to make them easily understood. The goal of research\n paper authors is curiously opposite. They need to find something that no one has done\n yet and make it appear very different from everything else. So I guess you can expect\n s little bit of natural friction between the two groups. Cynics might say that patterns\n book only contain stuff you already knew while research papers are never interested\n in something that is actually useful in practice.\n\nStill, I like to attend more academic conferences from time to time. First, JavaOne\n et al often degrade into a series of advertorials so it is refreshing to see less\n snazzy but more information rich presentations. It is also interesting to see what\n the researchers are working on because in a year or two some of that work might find\n its way into commercial products. So it's a little bit like looking into the future.\n So what were some of the current research topics that were discussed?\n\n## Publish-Subscribe\n\nOne interesting track focused on publish-subscribe messaging. Most of the talks focused\n on efficient implementations of content-based publish-subscribe. A [Publish-Subscribe Channel](../PublishSubscribeChannel.html) sends a copy of a message to multiple recipients, based on the subscription preferences\n of the subscribers. It can be useful to distinguish levels of sophistication for subscribers\n to express their subscription preferences:\n\n- **Simple Topics** . The simplest way to subscribe to messages is to specify a topic. Any message published\n to this specific topic will be sent to the subscriber. The topic is often expressed\n as a simple string. Within the context of our book we would actually consider each\n topic a logical [Channel](../MessageChannel.html) .\n- **Topics with Wildcards** . Wildcards are a simple enhancement to simple topics. Most of these systems use the\n topic string to represent a hierarchy of individual \"topic nodes\". For example, a\n message might be sent to the topic \"prod.customer.new\" to indicate that the message\n is part of a production system, relates to customer data, and indicates that this\n message is the result of a new customer being added. Subscribers can subscribe to\n \"prod.customer.*\" to receive all messages published to topics that start with \"prod.customer\",\n such as \"prod.customer.new\" or \"prod.customer.delete\". This type of publish-subscribe\n messaging is quite common, for example in TIBCO Rendezvous. Interestingly, the JMS\n specification does not define such a topic hierarchy but virtually all JMS implementations\n support it with slightly varying syntax notations.\n- **Content-based Subscription** . Not all ontologies are easily represented in a hierarchy tree as the \"Topics with\n Wildcards\" approach requires. A topic tree forces all messages to be attached to a\n hierarchy. If a message is identified by a number of independent fields and values,\n this mapping can be unnatural. For example, if messages are meant to be routed by\n business divisions (operations, finance, HR, etc) and environment (production, testing,\n etc), should business division sit above environment in the tree or below? They are\n really two independent dimensions of the messaging space. Content-based subscriptions\n support this model by allowing subscribers to express their subscription preferences\n by boolean expressions on fields rather than a topic hierarchy. For example, a subscriber\n could subscribe to \" Division='HR' and Environment='Production' \". Any message whose\n fields match this expression will be routed to the subscriber. The JMS API supports\n this concept via [Message Selectors](http://java.sun.com/j2ee/sdk_1.3/techdocs/api/javax/jms/Message.html) (the expressions are limited to header and property fields). Message Selectors allow\n subscribers to specify an expression to apply against incoming messages. Applying\n Message Selectors against a publish-subscribe channel (a JMS topic) results in the\n same semantics as content-based publish-subscribe. However, most implementations implement\n this functionality in the receiver using a reactive filtering approach as opposed\n to in the messaging infrastructure. This implementation is naturally inefficient because\n a message has to be delivered to the end point just to find out that the message does\n not match the expression. Most of the talks at ACM Middleware were concerned with\n how to make this implementation more efficient.\n- **Content-based Subscription with Aggregation** . When using content-based subscriptions it is likely that a message fulfills part\n of a condition but does not contain the fields related to another part of the condition.\n Advanced experimental middleware can store this partial message and then wait for\n another message that might fulfil another part of the expression. For example, an\n endpoint can subscribe to \" A='X' and B='Y' \", with both A and B being optional fields.\n Of one message contains A='X' and another B='Y', the messaging infrastructure can\n wait for both messages and merge their content. Essentially, the messaging infrastructure\n implements an [Aggregator](../Aggregator.html) . The completeness condition of the Aggregator is to fulfill all pieces of the expression.\n Naturally, there are a number of issues to be resolved. For example, what if a message\n fulfils one part of the expression but violates another? How should we merge messages\n if each message could have a different value for the same field? What to do if we\n receive multiple messages that fulfill the same partial expression while waiting for\n another part of the expression? Should we keep all messages or just the first or the\n last? These are exactly the issues the research papers deal with.\n\n## Languages\n\nAnother discussion we had at the conference was one of languages. Academics often\n like to create languages and new language formalisms. New languages can be powerful\n as they can cleanly represent a new concept. However, new language syntax is often\n a big deterrent to commercial developers. Language syntax is an inconvenience in the\n first place (who needs semicolons??) and learning a new one makes it only more frustrating.\n Also, development tools for mainstream all-purpose languages like Java or C# have\n become so powerful (Refactoring, syntax highlighting, auto-correct, auto-format) that\n shifting back to vi or Notepad is only worth it if the new language offers a huge\n improvement in productivity. As a result I think that the bar to adoption of new languages\n in commercial environments is quite high. Another big factor is skill set portability.\n [SeeBeyond](http://www.seebeyond.com) got so much crap from the analysts for its Monk language. Not because Monk is bad\n but because of the cost and risk of training developers in a new language.\n\n## Conclusion\n\nit was fun to attend a more academic conference for a change. I am OOPSLA this week,\n which manages to maintain a good balance between academics (published papers) and\n practitioners (tutorials, practitioner reports, panels etc).\n\n*Share:*\n\n*Follow:* [Follow @ghohpe](https://twitter.com/ghohpe) [SUBSCRIBE TO FEED](../ramblings.rss)\n\n*More On:* [EVENTS](/ramblings_events.html) [ALL RAMBLINGS](../ramblings.html)\n\nGregor is a cloud architect and author. He is a frequent speaker on asynchronous messaging,\n IT strategy, and cloud.", "znaku_textu": 8018, "slov": 1209, "odkazu": 48, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 15:36:46", "sha256": "66f2dc3dc1ee5b6c452238c614b91128535f6bced71765680873995c89595693", "hloubka": 4, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://architectelevator.com/blog", "http://java.sun.com/j2ee/sdk_1.3/techdocs/api/javax/jms/Message.html", "http://www.seebeyond.com/", "https://twitter.com/share", "https://twitter.com/ghohpe", "https://leanpub.com/37things"]} {"url": "http://www.enterpriseintegrationpatterns.com/ramblings/18_starbucks.html", "titulek": "Starbucks Does Not Use Two-Phase Commit - Enterprise Integration Patterns", "h1": "Starbucks Does Not Use Two-Phase Commit", "popis": "People often criticize asynchronous messaging solutions as too complicated and cumbersome", "klicova_slova": "", "kanonicka": "", "jazyk": "en_US", "robots_meta": "", "og": {"og:type": "article", "og:locale": "en_US", "og:site_name": "Enterprise Integration Patterns", "og:title": "Starbucks Does Not Use Two-Phase Commit", "og:description": "People often criticize asynchronous messaging solutions as too complicated and cumbersome", "og:url": "https://www.enterpriseintegrationpatterns.com/ramblings/18_starbucks.html"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Starbucks Does Not Use Two-Phase Commit"}, {"uroven": 2, "text": "Hotto Cocoa o Kudasai"}, {"uroven": 2, "text": "Correlation"}, {"uroven": 2, "text": "Exception Handling"}, {"uroven": 2, "text": "Conversations"}, {"uroven": 2, "text": "The Software Architect Elevator"}], "markdown": "Gregor's Ramblings\n\n---\n\n# Starbucks Does Not Use Two-Phase Commit\n\nNovember 19, 2004\n\nFind my posts on IT strategy, enterprise architecture, and digital transformation\n at [ArchitectElevator.com](https://architectelevator.com/blog).\n\n## Hotto Cocoa o Kudasai\n\nI just returned from a 2 week trip to Japan. One of the more familiar sights was the\n ridiculous number of Starbucks (スターバックス) coffee shops, especially around Shinjuku\n and Roppongi. While waiting for my \"Hotto Cocoa\" I started to think about how Starbucks\n processes drink orders. Starbucks, like most other businesses is primarily interested\n in maximizing throughput of orders. More orders equals more revenue. As a result they\n use asynchronous processing. When you place your order the cashier marks a coffee\n cup with your order and places it into the queue. The queue is quite literally a queue\n of coffee cups lined up on top of the espresso machine. This queue decouples cashier\n and barista and allows the cashier to keep taking orders even if the barista is backed\n up for a moment. It allows them to deploy multiple baristas in a [Competing Consumer](../CompetingConsumers.html) scenario if the store gets busy.\n\n## Correlation\n\nBy taking advantage of an asynchronous approach Starbucks also has to deal with the\n same challenges that asynchrony inherently brings. Take for example, correlation.\n Drink orders are not necessarily completed in the order they were placed. This can\n happen for two reasons. First, multiple baristas may be processing orders using different\n equipment. Blended drinks may take longer than a drip coffee. Second, baristas may\n make multiple drinks in one batch to optimize processing time. As a result, Starbucks\n has a correlation problem. Drinks are delivered out of sequence and need to be matched\n up to the correct customer. Starbucks solves the problem with the same \"pattern\" we\n use in messaging architectures -- they use a [Correlation Identifier](../CorrelationIdentifier.html). In the US, most Starbucks use an explicit correlation identifier by writing your\n name on the cup and calling it out when the drink is complete. In other countries,\n you have to correlate by the type of drink.\n\n## Exception Handling\n\nException handling in asynchronous messaging scenarios can be difficult. If the real\n world writes the best stories maybe we can learn something by watching how Starbucks\n deals with exceptions. What do they do if you can't pay? They will toss the drink\n if it has already been made or otherwise pull your cup from the \"queue\". If they deliver\n you a drink that is incorrect or nonsatisfactory they will remake it. If the machine\n breaks down and they cannot make your drink they will refund your money. Each of these\n scenarios describes a different, but common error handling strategy:\n\n- **Write-off** - This error handling strategy is the simplest of all: do nothing. Or discard what\n you have done. This might seem like a bad plan but in the reality of business this\n option might be acceptable. If the loss is small it might be more expensive to build\n an error correction solution than to just let things be. For example, I worked for\n a number of ISP providers who would chose this approach when there was an error in\n the billing / provisioning cycle. As a result, a customer might end up with active\n service but would not get billed. The revenue loss was small enough to allow the business\n to operate in this way. Periodically, they would run reconciliation reports to detect\n the \"free\" accounts and close them.\n- **Retry** - When some operations of a larger group (i.e. \"transaction\") fail, we have essentially\n two choices: undo the ones that are already done or retry the ones that failed. Retry\n is a plausible option if there is a realistic chance that the retry will actually\n succeed. For example, if a business rule is violated it is unlikely a retry will succeed.\n However, if an external system is not available a retry might well be successful.\n A special case is a retry with [Idempotent Receiver](../IdempotentReceiver.html) . In this case we can simply retry all operations since the successful receivers will\n ignore duplicate messages.\n- **Compensating Action** - The last option is to undo operations that were already completed to put the system\n back into a consistent state. Such \"compensating actions\" work well for example if\n we deal with monetary systems where we can recredit money that has been debited.\n\nAll of these strategies are different than a two-phase commit that relies on separate\n prepare and execute steps. In the Starbucks example, a two-phase commit would equate\n to waiting at the cashier with the receipt and the money on the table until the drink\n is finished. Then, the drink would be added to the mix. Finally the money, receipt\n and drink would change hands in one swoop. Neither the cashier nor the customer would\n be able to leave until the \"transaction\" is completed. Using such a two-phase-commit\n approach would certainly kill Starbucks' business because the number of customers\n they can serve within a certain time interval would decrease dramatically. This is\n a good reminder that a two-phase-commit can make life a lot simpler but it can also\n hurt the free flow of messages (and therefore the scalability) because it has to maintain\n stateful transaction resources across the flow of multiple, asynchronous actions.\n\n## Conversations\n\nThe coffee shop interaction is also a good example of a simple, but common [Conversation](09_correlation.html) pattern. The interaction between two parties (customer and coffee shop) consists\n of a short synchronous interaction (ordering and paying) and a longer, asynchronous\n interaction (making and receiving the drink). This type of conversation is quite common\n in purchasing scenarios. For example, when placing an order on Amazon the short synchronous\n interaction assigns an order number and all subsequent steps (charging credit card,\n packaging, shipping) are done asynchronously. You are notified via e-mail (asynchronous)\n when the additional steps complete. If anything goes wrong, Amazon usually compensates\n (refund to credit card) or retries (resend lost goods).\n\nIn summary we can see that the real world is often asynchronous. Our daily lives consists\n of many coordinated, but asynchronous interactions (reading and replying to e-mail,\n buying coffee etc). This means that an asynchronous messaging architecture can often\n be a natural way to model these types of interactions. It also means that often we\n can look at daily life to help design successful messaging solutions. Domo arigato\n gozaimasu!\n\n## The Software Architect Elevator\n\nAn edited version of this article and 40 other insights into redefining the role of\n the architect for the digital world are part of my new book [The Software Architect Elevator](https://amzn.to/3egsIr5). Become a better architect by moving beyond UML and architectural styles to effect\n lasting change onto organizations.\n\n*Share:*\n\n*Follow:* [Follow @ghohpe](https://twitter.com/ghohpe) [SUBSCRIBE TO FEED](../ramblings.rss)\n\n*More On:* [DESIGN](/ramblings_design.html) [CONVERSATIONS](/ramblings_conversations.html) [ALL RAMBLINGS](../ramblings.html)\n\nGregor is a cloud architect and author. He is a frequent speaker on asynchronous messaging,\n IT strategy, and cloud.", "znaku_textu": 7299, "slov": 1134, "odkazu": 48, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 15:35:22", "sha256": "ef5d87c1e1f66a25431a3ef0b6d790cc2e149eec6f379ef320732f66f3ce235b", "hloubka": 4, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://architectelevator.com/blog", "https://amzn.to/3egsIr5", "https://twitter.com/share", "https://twitter.com/ghohpe", "https://leanpub.com/37things"]} {"url": "http://www.enterpriseintegrationpatterns.com/ramblings/19_composing.html", "titulek": "Good Composers are Few and Far in Between - Enterprise Integration Patterns", "h1": "Good Composers are Few and Far in Between", "popis": "Loosely coupled architectures are often portrayed as the holy grail of architecture", "klicova_slova": "", "kanonicka": "", "jazyk": "en_US", "robots_meta": "", "og": {"og:type": "article", "og:locale": "en_US", "og:site_name": "Enterprise Integration Patterns", "og:title": "Good Composers are Few and Far in Between", "og:description": "Loosely coupled architectures are often portrayed as the holy grail of architecture", "og:url": "https://www.enterpriseintegrationpatterns.com/ramblings/19_composing.html"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Good Composers are Few and Far in Between"}, {"uroven": 2, "text": "To Couple or Not to Couple"}, {"uroven": 2, "text": "Composability"}, {"uroven": 2, "text": "Integration Testing"}, {"uroven": 2, "text": "New Programming Model"}, {"uroven": 2, "text": "Validation Rules"}, {"uroven": 2, "text": "Conclusion"}], "markdown": "Gregor's Ramblings\n\n---\n\n# Good Composers are Few and Far in Between\n\nNovember 30, 2004\n\nFind my posts on IT strategy, enterprise architecture, and digital transformation\n at [ArchitectElevator.com](https://architectelevator.com/blog).\n\n## To Couple or Not to Couple\n\nThere is a lot of debate about coupling these days. In fact, there is enough to be\n said about this topic that I'll leave most of it for a separate posting. Let it suffice\n to say that in my opinion coupling is a measure of dependency between systems. [David Orchard](http://www.pacificspirit.com/blog/) has given us a nice definition of the ultimate loosely coupled solution by stating:\n \"How do you make two systems loosely coupled? Don't connect them!\" I believe one\n of the reasons we are having so many debates about coupling is due to the fact that\n we more commonly connect systems that were not necessarily designed to be connected\n in the first place. Naturally, the resulting debate is how much dependency and hence\n how much coupling to introduce between the systems.\n\nAlas, there is rarely one right answer in software architecture and coupling is no\n exception. More coupling gives us efficiency and simplicity but can also introduce\n rigidity and brittleness. One example of generally more loosely coupled architectures\n are event-driven systems. These systems consist of a collection of individual processing\n elements that respond to incoming events. When a processing element receives an event\n message it perform its designated function and publishes one or more resulting events.\n These events can then be picked up by other processing nodes. A complete solution\n is created by composing the individual processing elements into a larger interconnected\n system (see figure).\n\n## Composability\n\nOne of the advantages of composability is that the processing elements can be reused\n in various constellations because the elements do not make any direct assumptions\n about each other. This helps with reuse and provides flexibility to support future\n requirements. For example, it is quite easy to interject a new processing node between\n two existing nodes. But this flexibility also has a dark side ([hear Darth Vader breathe](../img/vader.wav)). We built flexibility into the system by loosening the constraints on the system\n composition. This gives us the ability to recompose the system according to future\n needs. But this also means that the system has fewer means of detecting our mistakes.\n For example, we might have composed something that is perfectly valid according to\n the loosely coupled architecture but that does not actually do anything useful. For\n example, a processing element may listen for events that are never published. Or,\n the type of message on a channel might not match what the element expects.\n\n## Integration Testing\n\nAs a result, integration testing is more critical than ever with loosely coupled,\n composable systems. We learned that lesson ourselves on a number of projects. The\n story goes kinda like this: Each component is thoroughly unit tested (for more on\n messaging and unit testing see [Dependency Injection in Messaging Architectures](13_ioc.html)) and produces the coveted green bar. However, the actual system exhibits fatal flaws,\n a popular one being a system that does plain nothing. Most of the time this happens\n because the individual components were improperly composed. We need to remind ourselves\n that in most systems 95% of all compositions don't actually do anything useful. However,\n as far as the flexible architecture is concerned, they are perfectly valid.\n\nThis implies that we need to think carefully about validating the composability as\n well as the actual composition of the individual processing elements. Neither one\n is a trivial task. Composability implies that individual processing elements do not\n make any undue assumptions about the actual composition. Often this cannot be validated\n by traditional testing because composability implies being able to use the component\n in unforeseen scenarios. Naturally, it is difficult to test explicitly for unforeseen\n scenarios. Instead, we often have to use code analysis or inspection to make any statements\n about composability. One of the biggest hindrances to composability are hidden assumptions.\n Hidden assumptions are often unavoidable but can also introduce a glut of problems.\n For example, if one component stores data in a central database that is read by another\n component, we introduced an \"out of band\" dependency between the two components. The\n main issue is that this dependency is not explicitly represented anywhere in the system\n and is often not detected until run-time.\n\n## New Programming Model\n\nTesting the actual composition of the individual elements is another important part\n of validating the system. This type of testing can be categorized as integration testing\n and sits in between unit testing and true functional (i.e. user) testing. This type\n of testing is important to validate that the chosen composition of the individual\n elements performs the desired functions. It typically does so by channeling test data\n into the system and comparing actual with expected results. Luckily, loosely coupled\n systems generally make it quite easy to inject test data so the mechanics of these\n test are quite simple. However, achieving proper test coverage can be challenging.\n\nWhen creating these integration tests we need to be aware that with the introduction\n of composability we also introduced a new programming model into the application.\n The compositions follow the rules of a [Pipes-and-Filters](../PipesAndFilters.html) architecture, not an object-oriented architecture. This means that we deal with different\n constructs and rules. This requires us to rethink our approach to testing slightly.\n\n## Validation Rules\n\nTesting in the traditional sense will only perform part of the necessary validation.\n The reason for this is that in traditional programming models (for example, object-oriented\n programming) the compiler already validates a lot of the rules inherent in the programming\n model. For example, syntax errors, referencing an object before creating it etc. Because\n the composition layer follows our own rules, we often need to create our own validations.\n For example, is it valid to have loops? Is it valid to subscribe to an event that\n is never published? Is it valid to publish an event that no one subscribes to? Is\n it valid to have multiple subsystems that communicate amongst themselves but not between\n each other?\n\nIt is very useful to have means of inspecting the composition to execute these validation\n rules automatically. Because we can typically represent pipes-and-filters systems\n as a directed graph we can often draw on simple graph algorithms to perform these\n validations. The key is to consolidate information about event publishing and event\n subscription into a simple, central repository of sorts. That can preferably occur\n at design time or alternatively at run-time (for example, through a [Control Bus](../ControlBus.html)). The importance of such validations is underlined by the fact that many architects\n consider the ability to perform automated analysis a key characteristic of an architectural\n style (for example, see [Stylized Architecture, Design Patterns, and Objects](http://www-2.cs.cmu.edu/afs/cs/project/compose/ftp/pdf/ObjPatternsArch-ieee97.pdf)\n ). Once the architectural style is expressed more formally, one can envision actual\n languages that can help express the desired constraints. This might in fact be useful\n in larger systems. Alternatively, we can translate the system structure into a more\n familiar syntax (for example, XML) and the use languages such as XPATH to execute\n the desired validations.\n\nA less formal form of analysis is a visualization of the resulting system, for example\n as described in an [earlier blog entry](11_dependencies.html). In this case, the validation is only half automated because we use human beings\n to assess whether the composition is a good one or not. However, the system automatically\n preprocesses the information such that it is easily understood by human beings. This\n approach often turns out to be a quite reasonable compromise.\n\n## Conclusion\n\nBuilding loosely coupled and composable systems have definite advantages. However,\n we have to keep in mind that such architectures introduce an additional layer, the\n composition layer, into the system. This layer has to be understood and tested separately\n as it often follows different architectural styles and design principles than the\n other layers.\n\n*Share:*\n\n*Follow:* [Follow @ghohpe](https://twitter.com/ghohpe) [SUBSCRIBE TO FEED](../ramblings.rss)\n\n*More On:* [DESIGN](/ramblings_design.html) [ALL RAMBLINGS](../ramblings.html)\n\nGregor is a cloud architect and author. He is a frequent speaker on asynchronous messaging,\n IT strategy, and cloud.", "znaku_textu": 8915, "slov": 1335, "odkazu": 50, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 15:36:45", "sha256": "03a7ab88ae1f190903316e0c7c388a961c26d4d22d844e0cf75e8ee5a6ad4981", "hloubka": 4, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://architectelevator.com/blog", "http://www.pacificspirit.com/blog/", "http://www-2.cs.cmu.edu/afs/cs/project/compose/ftp/pdf/ObjPatternsArch-ieee97.pdf", "https://twitter.com/share", "https://twitter.com/ghohpe", "https://leanpub.com/37things"]} {"url": "http://www.enterpriseintegrationpatterns.com/ramblings/20_statelessness.html", "titulek": "Enemy of the State - Enterprise Integration Patterns", "h1": "Enemy of the State", "popis": "One of my favorite pastimes is to argue with people whether a solution is stateless, whether it should be stateless and what it means to be stateless in the first place", "klicova_slova": "", "kanonicka": "", "jazyk": "en_US", "robots_meta": "", "og": {"og:type": "article", "og:locale": "en_US", "og:site_name": "Enterprise Integration Patterns", "og:title": "Enemy of the State", "og:description": "One of my favorite pastimes is to argue with people whether a solution is stateless, whether it should be stateless and what it means to be stateless in the first place", "og:url": "https://www.enterpriseintegrationpatterns.com/ramblings/20_statelessness.html"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Enemy of the State"}, {"uroven": 2, "text": "State is Like the Matrix"}, {"uroven": 2, "text": "Visible and Invisible State"}, {"uroven": 2, "text": "Recoverable State"}, {"uroven": 2, "text": "Conversation State"}], "markdown": "Gregor's Ramblings\n\n---\n\n# Enemy of the State\n\nDecember 19, 2004\n\nFind my posts on IT strategy, enterprise architecture, and digital transformation\n at [ArchitectElevator.com](https://architectelevator.com/blog).\n\nOne of my favorite pastimes is to argue with people whether a solution is stateless,\n whether it should be stateless and what it means to be stateless in the first place.\n Ideally, the debate would involve alcoholic beverages and the other person would pick\n up the check. After \"loosely coupled\", \"stateless\" must be a close runner-up as the\n ultimate nirvana in buzzword-compliant architectures. It is also equally hotly debated.\n Today, I 'd like to share my view on state and lessness. If you disagree you are welcome\n to argue with me, but you are buying! :-)\n\n## State is Like the Matrix\n\nState is like the Matrix. It is everywhere around us but most of the time you don't\n notice it. Every modern computer is stateful. A Turing machine is stateful, in particular\n the band holds state and the head is at a certain position, which is also state. Every\n modern computer has an instruction counter that points to the next instruction to\n be executed. That is state. Almost every modern machine has a call stack that remembers\n which methods you executed last. That is state, too. I think the last truly \"stateless\"\n computer I can think of are analog computers, wired together from transistors and\n resistors. But even those have a stateful element, the capacitor. So, chances you\n are whatever you build outside of an op-amp, it is stateful. Get over it.\n\nOnce we get this part out of our system, the debate of statelessness becomes a lot\n more productive. So the question is not whether a system has state, but rather:\n\n- Does the state matter?\n- For the state that matters, where is it held?\n\n## Visible and Invisible State\n\nSo I hope we all agree that every modern computer system is stateful. So how can we\n talk about stateless systems? The key is whether the statefulness matters at our level\n of abstraction. If I look at a system from the perspective of service consumers communicating\n with service providers state such as the instruction pointer does not matter. It is\n not relevant to the discussion at the chosen level of abstraction. If I talk about\n designing the thread management part of the operating system in the very same environment,\n then the instruction pointer is a very important piece of state that needs to be stored\n and restored during a task switch. So any debate of statelessness is futile unless\n a clear level of abstraction is set and agreed upon first.\n\n## Recoverable State\n\nOne reason state might be irrelevant is because it is below the agreed upon level\n of abstraction. Another reason state might be irrelevant is because it is easily recoverable.\n Loading a static routing table into a messaging component would fall into such a category.\n If the table is completely static or quasi-static, a component can easily load or\n re-load that table from disk or a database. Holding the table in memory technically\n speaking makes the component stateful, but it does not really matter as the state\n is not impacted by the messages traveling through the component and can be recovered\n at will. If the component shuts down and restarts this extra state has no impact.\n Likewise, if a bank of processing nodes processes incoming messages it does not matter\n which node processes a message because they all loaded the same configuration and\n the configuration is not impacted by past messages consumed by a particular component.\n\n## Conversation State\n\nOne type of state that is likely to be relevant to a messaging system is the conversational\n state. A [Conversation](09_correlation.html) is a sequence of coordinated message exchanges. The conversational state defines\n where in that sequence of message exchanges a conversation is. For example, a conversational\n state could be that component A has made a request and is now waiting for the reply.\n Or, that component A has subscribed to events from component B with the subscription\n due to expire in 10 minutes.\n\nThis state information is quite relevant and typically has to be shared between the\n participants. There are also a number of different places where this state can be\n kept and a discussion of where that should be is in fact quite relevant to designing\n a successful integration or messaging solution. So where could part of this conversational\n state be kept?\n\n**TCP Stack**\n\nOne equally popular and inefficient way to represent the state of the conversation\n is the TCP stack. How so, you might ask. This happens when the architecture (ab)uses\n HTTP-based Web services calls as RPC's: one component invokes a service, holding an\n open HTTP (read TCP) connection. In a service-oriented environment it is likely that\n the service in turn accesses another service. As a result, yet another TCP connection\n is established and held for the duration of this request-reply interaction. Essentially,\n we built some form of distributed call stack via a set of open TCP connections (see\n figure). The TCP stack is chartered with correlating incoming response data packets\n to the right process waiting for a response. The advantage is that the application\n process does not have to worry about [correlation](09_correlation.html). The downside is that we use the TCP stack as a surrogate call stack for a distributed\n system with long-running interactions. This can quickly lead to a huge number of open\n connections, something a TCP stack is usually not designed to handle. Also, we can\n easily imagine that a dropped connection can quickly bring the house of cards down\n because the connections make up the conversation state.\n\n**Message Queues**\n\nIn order to remove the dependency on the TCP stack for state management we can use\n asynchronous message channels to communicate between parties. Message passing is asynchronous,\n so there is no need to keep state in the network connection itself. If the messages\n contain all information necessary for a component to complete a processing step, the\n resulting architecture is a true [Pipes-and-Filters](../PipesAndFilters.html) architecture because no state is shared between the components (\"filters\") outside\n of message passing. This approach makes for a highly scaleable message flow architecture,\n however, real life constraints often often force a compromise on this pure architectural\n style. For example, complex conversations almost always require some state to be kept\n in the endpoints or an explicit conversation coordinator. Also, this approach often\n makes it inefficient to monitor the state of a conversation. Because the state of\n the conversation is represented by a message sitting in a specific message queue,\n each message queue might have to be inspected.\n\n**Shared Blackboard**\n\nA more generic version of a message queue is a shared blackboard or scratchpad. This\n blackboard acts as a shared memory space to allow distributed components to communicate\n with each other. They do so by placing entries in form of tuples into the blackboard.\n The blackboard does not impose an order for entries in the way that a message queue\n does for messages (i.e. FIFO). Recipients simply look for tuples that match their\n specified criteria (typically the type of the object plus and specified public property\n fields). The blackboard will return a reference to any entry that matches the request.\n This architecture is most prominently implemented in [JavaSpaces](http://java.sun.com/docs/books/jini/javaspaces/). The advantage is that the state of the conversation can be more easily obtained\n by inspecting the blackboard. The downside is that a shared blackboard can become\n a bottleneck in a large distributed system.\n\n**In the Endpoints**\n\nIn order to track more complex conversations a portion of the conversation state is\n typically kept in the communication end points. In an asynchronous conversation, each\n conversation partner has to \"remember\" what to do next once a message comes in. This\n implies that the endpoint has to have some concept of how far the conversation is.\n For example, if a component sent a request message it typically knows that it is waiting\n for a reply message. Also, it might keep internal state data to be carried over to\n the processing of the reply message. When the reply message arrives, the component\n uses the [Conversation Identifier](09_correlation.html) to retrieve this state context.\n\n**Conversation Coordinator**\n\nIn more complicated multi-party conversations, a conversation coordinator might be\n added into the mix. The sole role of this coordinator is to track the conversation\n across the multiple parties. In a multi-party conversation each individual participant\n may only have a partial view of the conversation. A conversation coordinator may be\n required to make decisions that require knowledge of the whole conversation. This\n model is commonly used to implement 2-phase commit protocols using a transaction coordinator.\n\nI hope that this brief overview illustrates the fact that there is often more to statefulness\n and statelessness than initially meets the eye. Distinguishing what kind of state\n is kept where and whether this state is relevant is an important first step to having\n a debate related to this topic.\n\nThanks to Michael Qvortrup for an enlightening discussion on this topic at OOPSLA.\n It motivated me to finally write this rambling up (with a 6 week delay...).\n\n*Share:*\n\n*Follow:* [Follow @ghohpe](https://twitter.com/ghohpe) [SUBSCRIBE TO FEED](../ramblings.rss)\n\n*More On:* [DESIGN](/ramblings_design.html) [ALL RAMBLINGS](../ramblings.html)\n\nGregor is a cloud architect and author. He is a frequent speaker on asynchronous messaging,\n IT strategy, and cloud.", "znaku_textu": 9756, "slov": 1549, "odkazu": 46, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 15:36:44", "sha256": "85c1f36f4c9d1966c43b87c5deab01b5eb4eba0c1ad99abe57c6a1fd31e36007", "hloubka": 4, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://architectelevator.com/blog", "http://java.sun.com/docs/books/jini/javaspaces/", "https://twitter.com/share", "https://twitter.com/ghohpe", "https://leanpub.com/37things"]} {"url": "http://www.enterpriseintegrationpatterns.com/ramblings/21_drunkdriving.html", "titulek": "SOA's and Drunk Driving - Enterprise Integration Patterns", "h1": "SOA's and Drunk Driving", "popis": "Happy New Year everybody! Over the holidays I tried to sort out some of my thoughts on Web services, SOA, architectural styles, coupling and all the other good stuff", "klicova_slova": "", "kanonicka": "", "jazyk": "en_US", "robots_meta": "", "og": {"og:type": "article", "og:locale": "en_US", "og:site_name": "Enterprise Integration Patterns", "og:title": "SOA's and Drunk Driving", "og:description": "Happy New Year everybody! Over the holidays I tried to sort out some of my thoughts on Web services, SOA, architectural styles, coupling and all the other good stuff", "og:url": "https://www.enterpriseintegrationpatterns.com/ramblings/21_drunkdriving.html"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "SOA's and Drunk Driving"}, {"uroven": 2, "text": "Web Services vs. Service-oriented Architectures"}, {"uroven": 2, "text": "Architectural Styles"}, {"uroven": 2, "text": "Service-Oriented Architectural Style"}, {"uroven": 2, "text": "Evolution"}, {"uroven": 2, "text": "Don't hit the Curb"}, {"uroven": 2, "text": "Almost Home?"}], "markdown": "Gregor's Ramblings\n\n---\n\n# SOA's and Drunk Driving\n\nJanuary 17, 2005\n\nFind my posts on IT strategy, enterprise architecture, and digital transformation\n at [ArchitectElevator.com](https://architectelevator.com/blog).\n\n## Web Services vs. Service-oriented Architectures\n\nIf you have a Web browser and are interested in Web services you probably have not\n escaped the discussion around SOA, REST, Web services etc. I am going to let the REST\n argument rest for for the time being (pun intended), but want to share a few thoughts\n on Service-oriented architectures. By now most people agree that a service-oriented\n architecture is not a specific technology, but rather a design philosophy or *architectural style*. Web services technologies make implementing this architectural style convenient\n but are by no means the only technology choice. For example, one can build fine SOAs\n using CORBA, even though the nagging question might be \"why would you?\" (Steve V.,\n please forgive me!).\n\n## Architectural Styles\n\nSo what is an architectural style? Roy Fielding defined it in his [oft cited thesis](http://www1.ics.uci.edu/~fielding/pubs/dissertation/top) as follows:\n\n*\"An architectural style is a coordinated set of architectural constraints that restricts\n the roles/features of architectural elements and the allowed relationships among those\n elements within any architecture that conforms to that style.\"*\n\nEssentially, an architectural style describes what elements we can work with (for\n example, filters in a [Pipes-and-Filters](../PipesAndFilters.html) architectural style or objects, interfaces and classes in an object-oriented architectural\n style. The style also defines the rules and constraints on how the elements can be\n composed. For example, in a [Pipes-and-Filters](../PipesAndFilters.html) style, filters have input and output ports that can be connected to pipes whose purpose\n it is to transport messages from one filter's output port to another filter's input\n port. One constraint is prescribes that you are not allowed to connect one filter\n directly to another filter.\n\nThere are more formal definitions of architectural styles, which enable the formal\n expression of the constraints in architectural design languages (ADLs). I touched\n on them briefly in [a prior posting](19_composing.html), so I won't repeat them here.\n\n## Service-Oriented Architectural Style\n\nSo what are the design elements and constraints that make up a service-oriented architecture?\n The elements of an SOA are services, self-contained modules that are universally accessible\n and advertise their interface contracts via some form of registry. [Hao He](http://webservices.xml.com/pub/a/ws/2003/09/30/soa.html) has defined the following architectural constraints for SOAs:\n\n1. A small set of simple and ubiquitous interfaces to all participating software agents.\n Only generic semantics are encoded at the interfaces. The interfaces should be universally\n available for all providers and consumers.\n2. Descriptive messages constrained by an extensible schema delivered through the interfaces.\n No, or only minimal, system behavior is prescribed by messages. A schema limits the\n vocabulary and structure of messages. An extensible schema allows new versions of\n services to be introduced without breaking existing services.\n\nThese principles are some of the main ingredients into making SOA's *loosely coupled*. Interfaces hide implementation details and services communicate by exchanging documents\n rather than by invoking methods directly on another service.\n\n## Evolution\n\nWe often underline the advantages of loosely coupled, service-oriented architectures\n by comparing them to the prior architectural style, namely *distributed component* (DC) architectures. This is only natural. It is hard to define the optimum architectural\n style for a given category of applications. Instead, it is much easier to learn from\n the shortcomings of the last attempt and to correct them based on incremental evolution.\n In the case of distributed component architectures, the shortcomings we set out to\n fix include the following:\n\n- **Vendor lock-in.** Many DC architectures were based on proprietary protocols and implementations. In\n contrast, standards-based protocols support (at least in theory) free interoperability\n between multiple vendor products.\n- **Tight coupling.** DC architectures typically link components directly to one another, making the solutions\n brittle. An asynchronous, document-oriented style of interaction allows more independent\n variability between components [3].\n- **The Transparency Illusion** . Distributed components promised to hide remote communication from the developer\n by making the remoteness \"transparent\". While the basic syntactic interaction between\n remote components can be wrapped inside a proxy object, it turned out that dealing\n with partial failures, latency, and remote exceptions could not be hidden from the\n developer. It turned out that 90% transparency was actually worse than no transparency\n because it gave developers a false sense of comfort.\n- **Complexity.** DC architectures extend the rich, but complex interaction between objects across\n the wire. One object can control the lifetime of remote objects, pass references,\n and rely on polymorphism and inheritance. This model turned out to be quite complex\n given the inherent complexity that distributed architectures add into the mix.\n- **Call Stack.** While a call stack is an enormous convenience for monolithic applications it can\n quickly turn into a liability for loosely coupled, distributed applications. Waiting\n for a remote component to complete a task before continuing execution at the source\n tends to make distributed architectures unresponsive and brittle.\n- **Connectivity.** Most DC architectures require reliable, permanent connectivity between components.\n They do not work well over wide-area, intermittent networks such as the Internet or\n mobile networks.\n\nNote that some of these problems are inherent in the architectural style (e.g., tight\n coupling) while others are merely byproducts of popular implementations of the style\n (e.g., vendor lock-in). For practical applications, though, both kinds of problems\n are relevant factors in the adoption of Service-oriented architectures.\n\nWe can easily see how service-oriented architectures based on the Web-services standards\n and specs resolve these issues. They are (somewhat) vendor neutral, have a simplified,\n loosely coupled interaction model, and are based on an asynchronous document-passing\n model that allows for communication over partially connected networks.\n\nSo it seems that SOAs solve all our problems. Well, at least the ones we had with\n the distributed component architectures. But there remain two nagging thoughts. First,\n if SOAs are largely driven by the desire to cure problems in the prior style how can\n we be sure that SOAs are in fact the best approach or are they maybe a sub-optimization\n of the problem? And, more importantly, what other problems do they introduce?\n\n## Don't hit the Curb\n\nCollective learning and vendor adoption cycles in our seemingly fast-moving field\n are often surprisingly slow. Object-oriented development took about a decade from\n early adoption (SmallTalk, early C++) to the preferred mainstream style of development.\n Given the long cycle times and the reactive nature of defining a new style via the\n weaknesses of the old style, we start to wonder whether we are really converging on\n a good style or whether we are swaying back and forth like a drunk driver who is swaying\n back and forth across the street trying to avoid hitting the curb. Every time the\n curb comes near the driver yanks the steering wheel in the opposite direction, causing\n the car to sway in the other direction until it is about to hit the other curb.\n\nSo are Web services and SOAs over-compensating the perceived issues with distributed\n component architectures? Are we heading for the curb on the opposite side? Sometimes\n I feel like that's what's going on. For example, distributed component architectures\n are too tightly coupled and brittle. A few levels of indirection can help resolve\n that but I think UDDI was aiming hard for the other curb by trying to make service\n discovery so generic that it became difficult to use. Likewise, we discovered that\n the object-oriented interaction model of instantiation and method invocation is too\n complex and chatty for network-based communication. So we fixed that with the document-oriented\n model. But is passing a document to a totally stateless service really sufficient\n for many real-life scenarios? What if I need a reply back? What if I don't have all\n required information available to assemble a single document? How about more complex\n conversations, transactions etc? Many of the WS-* specifications like WS-Addressing\n etc are trying to address these shortcomings. But then if I look at the dozens of\n WS-* specifications, where is the simplicity that we were aiming for?\n\n## Almost Home?\n\nIt will be interesting to see where the Web service evolution balances out or whether\n we'll hit another curb. It will also be interesting to see what the next best thing\n will be. One can't blame the business users for asking \"How can you be sure you got\n it right this time? First you tell me terminals and mainframe hosts are all the rage,\n then it is client-server, then 3-tier, then distributed components and now SOAs. What's\n next?\" I kind of have to agree with the end users but at the same time I have no idea\n what will be next. But we can be assured that once SOAs reach wide adoption all marketing\n departments are itching to define the next major trend...\n\n*Share:*\n\n*Follow:* [Follow @ghohpe](https://twitter.com/ghohpe) [SUBSCRIBE TO FEED](../ramblings.rss)\n\n*More On:* [DESIGN](/ramblings_design.html) [ARCHITECTURE](/ramblings_architecture.html) [ALL RAMBLINGS](../ramblings.html)\n\nGregor is a cloud architect and author. He is a frequent speaker on asynchronous messaging,\n IT strategy, and cloud.", "znaku_textu": 10002, "slov": 1494, "odkazu": 47, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 15:36:43", "sha256": "ad064fbd50a5da06855a79912b89c388685b020d6d371e08f9c608e099b21b4c", "hloubka": 4, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://architectelevator.com/blog", "http://www1.ics.uci.edu/~fielding/pubs/dissertation/top", "http://webservices.xml.com/pub/a/ws/2003/09/30/soa.html", "https://twitter.com/share", "https://twitter.com/ghohpe", "https://leanpub.com/37things"]} {"url": "http://www.enterpriseintegrationpatterns.com/ramblings/22_extensibility.html", "titulek": "Extensibility Points - Enterprise Integration Patterns", "h1": "Extensibility Points", "popis": "Today's rambling takes a look at the application side of application integration", "klicova_slova": "", "kanonicka": "", "jazyk": "en_US", "robots_meta": "", "og": {"og:type": "article", "og:locale": "en_US", "og:site_name": "Enterprise Integration Patterns", "og:title": "Extensibility Points", "og:description": "Today's rambling takes a look at the application side of application integration", "og:url": "https://www.enterpriseintegrationpatterns.com/ramblings/22_extensibility.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/extension_options.gif"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Extensibility Points"}, {"uroven": 2, "text": "Anticipating Change"}, {"uroven": 2, "text": "Domain Model Extensibility (elements)"}, {"uroven": 3, "text": "All Purpose Fields"}, {"uroven": 3, "text": "Extension Tables (A)"}, {"uroven": 3, "text": "Portal Extension (B)"}, {"uroven": 3, "text": "Composite Application (C)"}, {"uroven": 3, "text": "Presentation Layer Integration (D)"}, {"uroven": 2, "text": "Domain Model Extensibility (structure)"}, {"uroven": 2, "text": "Domain Logic Extensibility"}, {"uroven": 2, "text": "Ability to Publish Business Events"}, {"uroven": 2, "text": "Ability for External Applications to Invoke Actions"}, {"uroven": 2, "text": "Conclusion"}], "markdown": "Gregor's Ramblings\n\n---\n\n# Extensibility Points\n\nFebruary 1, 2005\n\nFind my posts on IT strategy, enterprise architecture, and digital transformation\n at [ArchitectElevator.com](https://architectelevator.com/blog).\n\n## Anticipating Change\n\nDeveloping an architecture is a bit like a guessing game. You are anticipating future\n changes to the system and try to devise a system architecture that can (most likely)\n accommodate these changes. This is admittedly not the only purpose of architecture\n but certainly a major component of it. Well, are architects then essentially a bunch\n of fairground charlatans who suck money out of people's pockets for some form of \"clairvoyant\"\n trick performance just to have moved on to the next village by the time their scam\n is being revealed? (Rob Zombie's [Living Dead Girl](http://boss.4.streamos.com/real/4/interscope/robzombie/hellbillydeluxe/video/livingdeadgirl/00_livingdeadgirl.ram) video comes to mind) I am sure [Hani](http://www.jroller.com/page/fate) would concur after inserting the words \"wanker\", \"bastard\" and \"$%^%@#\". And some\n of you might feel that \"finally we have a definition of architects that is based on\n real life!\". OK, but you'll have to admit that some people are better guessers than\n others. For example, experience can make you a better guesser, ahem, architect and\n so can the ability to abstract problems, for example by using patterns.\n\nOne person was recently willing to watch me rub the crystal ball and proclaim what\n kind of variability and extensibility points their application, which is currently\n under development, should have. A lot of the themes we came up with relate to integrating\n with other applications, but this time we view them from the perspective of an application.\n Here is a brief list of items I came up with.\n\n- Domain Model Extensibility (elements)\n- Domain Model Extensibility (structure)\n- Domain Logic Extensibility\n- Ability to Publish Business Events\n- Ability for External Applications to invoke Actions\n\nI am sure there are many more, but one of the well-known secrets of consulting is\n the \"lingerie principle\" -- never bare everything right away!\n\n## Domain Model Extensibility (elements)\n\nIf your application models a portion of an overall business domain it is likely that\n the domain objects that you use are also represented by other applications, albeit\n with a slightly different emphasis. Since businesses without customers are rare (hey,\n it's not 1999 anymore!), the customer entity is a good candidate for an example. An\n order entry system might be most interested in the customer's preferences, while the\n shipping system is most interested in their shipping address, and the financial system\n might be interested in the customer's billing address and tax exemption code. This\n is all well as some of these additional fields are likely to live in related entities\n anyway (e.g., the address entity) and each application is allowed to have their version\n of customer and address . However, the users of your application are likely to want\n to see some of the extra data. The fact that the additional data fields reside in\n a different \"application\" will seem terribly irrelevant to the users if they have\n a customer on the line asking for just that information. The extra data itself can\n come from different sources: it can be entered by the user or it can be replicated\n from another application via [Data Replication](http://patternshare.org/default.aspx/Home.PP.DataReplication).\n\nHow can an application anticipate the need for these additional data elements? Let's\n look at a few options (see figure).\n\n### All Purpose Fields\n\nThis option must be a close contender to \"screen scraping\" in the categories of wide-spread\n use and disdain. These are the kind of techniques that none of us use but that are\n to be found everywhere. All purpose fields are these \"data1\" varchar(255) fields that\n linger at the end of tables in case someone needs to stuff data in there that was\n not anticipated. This option certainly does not align well with the relational model\n but is unbeatable for convenience. Hey, I need to store the customer's pet's name,\n so there I go -- I have a varchar column to spare. Most systems will allow the display\n of this field on the UI screens, likely even with a custom label. Unfortunately, convenience\n often leads us down dangerous paths. In fact, the popularity of this option with\n early (\"legacy\") systems has shown us all too well where the path is likely to lead:\n before long you'll end up with a system where the first 3 characters of field \"foo\"\n contain some cryptic code. If that code is \"bar\" the next 5 characters are the person's\n birth date in hexadecimal except if they are born on a Tuesday...\n\n### Extension Tables (A)\n\nExtension tables provide a little better separation between core application data\n and ancillary data. This approach suggests the existence of a CUSTOMER table and a\n CUSTOMER_Z (or whatever naming scheme you prefer), which is keyed to the customer\n table but is under the control of the administrator. This allows the addition of properly\n named and typed fields to be associated with a customer. The business logic layer\n would loop through this extra data to the UI so that it can be rendered. This approach\n can work reasonably well of you choose to (or have to) integrate with other applications\n by [Maintaining Data Copies](http://patternshare.org/default.aspx/Home.PP.MaintainDataCopies). As with the previous solution, the business logic layer typically provides a means\n of pulling the data through to the user interface without having to know much about\n the detailed composition of the data. The pros and cons of this approach are pretty\n well understood:\n\n- You have all the data in one place (i.e. one database)\n- Thus, you can avoid a lot of synchronization issues\n- You can make transactional updates across core data and extension data\n- The separation between core data and extension data can be well hidden from the outside\n- The application can start to bloat as it has to store data not relevant to its core\n purpose\n- When you upgrade the packaged application you need to careful not to destroy the relationships\n with the extension data\n- You might need dedicated tools to manage the extension tables so users do not have\n to manipulate the database directly\n\n### Portal Extension (B)\n\nThis option is a simple form of [Portal Integration](http://patternshare.org/default.aspx/Home.PP.PortalIntegration). Rather than extending the data model of the existing application, you create the\n user interface in such a way that additional application front-ends can be plugged\n in. Several portal standards, e.g. [WSRP](http://www.oasis-open.org/committees/tc_home.php?wg_abbrev=wsrp), simplify this task. One advantage of this approach is that the core application\n does not have to be modified internally. However, if close interactivity between the\n existing and the new data elements is required, the portal might provide a less than\n ideal user interface experience. Also, updates to both core application data and extension\n data are no longer under the scope of a single database transaction.\n\n### Composite Application (C)\n\nA more sophisticated approach along the same lines is a composite application. In\n this case, we assume that the user has to interact with a number of applications simultaneously\n and we provide a separate layer whose role it is to render a coherent user interface\n on top of a number of disparate back-end applications or service. While in Option\n (B) one application plays the primary role of the user interface and allows a few\n other items to the \"plugged in\", this approach separates the user interface completely\n from the different back-end systems. A composite application is often viewed as a\n key part of a service-oriented architecture where new applications are composed of\n existing services. This requires, however a solid services infrastructure and a good\n handle on how to expose your application's business functions as services (see below).\n\n### Presentation Layer Integration (D)\n\nSometimes you can achieve very simple integration and extension of the UI by using\n the ability of browsers to link to another application. This is essentially option\n (B) but without the ability to incorporate the new data into the existing screen.\n Instead, the front-end simply links to another user interface. This makes the user\n still work with two applications (i.e., there is no integration) but it makes it easier\n for the user to switch from one application to another. In a sense, this options is\n a more efficient version of \"swivel chair integration\". It also carries the same disadvantages,\n for example, the user might have to re-key information from one application to the\n next.\n\n## Domain Model Extensibility (structure)\n\nWhile there are already a lot of options for just adding simple fields to an existing\n domain object, sometimes an application requires the addition of entirely new domain\n objects or the interjection of new relationships or indirections into existing objects\n graphs. When dealing with a packaged application, these kind of changes are pretty\n hard to introduce without touching core application code and data. Some applications\n try to protect against this kind of scenario by employing a very generic domain model.\n This can work well to some extend, but you need to be careful that the application\n does not start to resemble \"Microsoft Access\", i.e. a generic database with a generic\n user interface builder. Yes, this kind of tool provides ultimate flexibility but does\n not bring much value out of the box. Once again, finding the correct compromise between\n specificity and extensibility is the secret.\n\nThe implementation choices essentially mimic the choices for the simple domain model\n extensibility. Either you need to be able to modify or extend the application core\n itself or you need to have a user interface that is flexible enough to have the separate\n applications appear as one.\n\n## Domain Logic Extensibility\n\nSo far, we only considered extending the data side of the model. More likely than\n not, some business logic will also depend on the new fields or entities. The need\n for new logic makes approaches such as *All Purpose Fields* or *Extension Tables* tougher because now you need to be able to add code to the application that deals\n with the new, generic fields. This no longer makes it possible to simply pull through\n generic data to the UI, but we need the ability to add new code modules that can process\n data values entered by the user for these new fields. IF a lot of logic crosses existing\n and new elements, a *Composite Application* approach starts to appear more likely.\n\n## Ability to Publish Business Events\n\nA less intrusive way to extend an application is to allow other applications to receive\n relevant business events from your application. In the currently preferred style of\n service-oriented architecture or event-driven architecture, this ability is expected\n from any \"enterprise class\" application. For example, other applications should be\n able to find out about major activities happening in your application, for example,\n updates to entities such as the customer, new orders etc. The main implementation\n decisions for this feature are as follows:\n\n- **How to subscribe.** How do other applications express their interest in an event? Is this handled through\n some messaging infrastructure, a config file, or code? Are subscriptions static or\n do they take the form of \"leases\" where subscription interest has to be renewed periodically?\n- **Communication infrastructure.** How closely do you want to tie outgoing events to a specific messaging infrastructure?\n DO you publish to a JMS channel but allow the enterprise to chose the JMS provider?\n Do you provide support for middleware packages such as TIBCO, SeeBeyond or WebMethods?\n DO you intend to support emerging Web services specs, such as WS-Eventing and/or WS-Notification?\n- **Metadata.** What kind of metadata do you want to provide for the event data? If you publish XML\n documents you should at a minimum make XML schemas available.\n- **Push or Pull.** A Push model publishes all data pertaining to an event with the event message. In\n contrast, a pull model simply publishes the event message with minimal data and requires\n each subscriber to retrieve all desired data elements. The pros and cons of each approach\n are described quite well in the original *Observer* pattern or [here](../ObserverJmsExample.html) .\n\n## Ability for External Applications to Invoke Actions\n\nIn addition to publishing relevant business events, your application should also allow\n other applications to invoke relevant business functions provided by your application.\n This is the essence of a services layer that is accessible via a *service bus* or a similar communications backbone. Design decisions for this interface are similar\n to the ones above. For example, once again, you want to make sure your application\n provides metadata for the available functions.\n\n## Conclusion\n\nAdmittedly, this was a superfast sweep across extensibility requirements for an \"enterprise\n class\" application. One thing is for sure, though. Developing an enterprise application\n is as much about extensibility and integratability as it is about core application\n functionality. Not paying enough attention to these requirements can turn today's\n new application into tomorrow's silo. It is therefore critically important that you\n document specific extension scenarios (for example, \"need to show an additional field\n in the user interface\") and outline what kind of effort it takes to fulfill this use\n case. Will code changes be required? Will the vendor or the original developers have\n to get involved? Will such a change impact future upgrades? The only thing worse than\n not having an answer is to never ask the question!\n\n*Share:*\n\n*Follow:* [Follow @ghohpe](https://twitter.com/ghohpe) [SUBSCRIBE TO FEED](../ramblings.rss)\n\n*More On:* [DESIGN](/ramblings_design.html) [ALL RAMBLINGS](../ramblings.html)\n\nGregor is a cloud architect and author. He is a frequent speaker on asynchronous messaging,\n IT strategy, and cloud.", "znaku_textu": 14173, "slov": 2201, "odkazu": 50, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 15:36:42", "sha256": "5d564b6c81df3b4bfa19e4c9b51cf8e1302ba27baa743994a8bface5ea2cb9a3", "hloubka": 4, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://architectelevator.com/blog", "http://boss.4.streamos.com/real/4/interscope/robzombie/hellbillydeluxe/video/livingdeadgirl/00_livingdeadgirl.ram", "http://www.jroller.com/page/fate", "http://patternshare.org/default.aspx/Home.PP.DataReplication", "http://patternshare.org/default.aspx/Home.PP.MaintainDataCopies", "http://patternshare.org/default.aspx/Home.PP.PortalIntegration", "http://www.oasis-open.org/committees/tc_home.php?wg_abbrev=wsrp", "https://twitter.com/share", "https://twitter.com/ghohpe", "https://leanpub.com/37things"]} {"url": "http://www.enterpriseintegrationpatterns.com/ramblings/23_btw2005.html", "titulek": "BTW Conference - Enterprise Integration Patterns", "h1": "BTW Conference", "popis": "OK, so I am officially the slowest blogger on the 'Net", "klicova_slova": "", "kanonicka": "", "jazyk": "en_US", "robots_meta": "", "og": {"og:type": "article", "og:locale": "en_US", "og:site_name": "Enterprise Integration Patterns", "og:title": "BTW Conference", "og:description": "OK, so I am officially the slowest blogger on the 'Net", "og:url": "https://www.enterpriseintegrationpatterns.com/ramblings/23_btw2005.html"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "BTW Conference"}, {"uroven": 2, "text": "BTW - GI Fachtagung für Datenbanksysteme in Business, Technologie und Web"}, {"uroven": 2, "text": "XML in BPM Workshop"}, {"uroven": 2, "text": "Web Services"}, {"uroven": 2, "text": "Takeaways"}], "markdown": "Gregor's Ramblings\n\n---\n\n# BTW Conference\n\nMarch 6, 2005\n\nFind my posts on IT strategy, enterprise architecture, and digital transformation\n at [ArchitectElevator.com](https://architectelevator.com/blog).\n\n## BTW - GI Fachtagung für Datenbanksysteme in Business, Technologie und Web\n\nThe German language is (in)famous for its ability to concatenate words together into\n single ueberwords with a gazillion letters. We get to hear about \"Wirtschaftlichkeitsberechnungsmethoden\",\n i.e methods to compute economics or \"Schnittstellenankopplung\", which translates into\n something like interface attachment. Anyway, the [BTW conference](http://www.btw2005.de/) is held every other year. As the name suggests, the conference originated in the\n database world but has not escaped the influence of services and service-oriented\n architectures. Frank Leymann, one of the co-creators of [BPEL](ftp://www6.software.ibm.com/software/developer/library/ws-bpel.pdf), invited me to speak on SOA from a developer perspective. Satish Thatte from Microsoft,\n the other mastermind behind BPEL, presented as well, so it was a great opportunity\n to get a behind the scenes look at BPEL. By now vendor support for BPEL is increasing\n (the \"big guys\" IBM, Microsoft and Oracle each have an offering) and the spec has\n been submitted to OASIS. I think it is time for me to start blogging a bit more about\n BPEL, so stay tuned.\n\n## XML in BPM Workshop\n\nI managed to sneak into an interesting [workshop on \"XML4BPM\"](http://wi.wu-wien.ac.at/%7Emendling/XML4BPM2005/). There was a lot of discussion on two new acronyms I had not heard: [EPC - Event-Driven Process Chain](http://xml.coverpages.org/ni2003-11-21-a.html) and CBP - Cross-organizational Business Process. Maybe I am simple a little behind\n the times as someone already created a [Visio template for EPC](http://office.microsoft.com/en-us/assistance/HP010575031033.aspx). To my rescue I just saw a site stating that it is particularly popular in Germany,\n which is not surprising because SAP uses it. I'll try to check it out in a little\n more detail as it seems to relate closely to the whole [Orchestration vs. Choreography](http://blog.whatfettle.com/archives/000250.html) debate.\n\nI particularly liked the separation into multiple process modeling layers, i.e. business\n process, technical process and executable process. I love BPEL as an execution language\n but too often I see some vendor making a pitch that business analysts will use a BPEL-centric\n tool to model business processes. I see these as pretty different use cases. Acknowledging\n that there are different levels and that explicit (partially automated) mapping is\n required between them is a definite step forward.\n\nAnother talk focused on comparing the semantics od EPC and Petri nets and the like.\n Sounds like a pretty arcane topic but I am kind of growing fond of the Petri notation\n for processes. Unfortunately, there aren't really any execution environments for them\n outside of the academic world. The talk focused on showing how to implement [Wil's Workflow Patterns](http://tmitwww.tm.tue.nl/research/patterns/patterns.htm) (BTW, his site has really cool [Flash animations](http://tmitwww.tm.tue.nl/research/patterns/download/swf/pat_18.swf) of these patterns). The [Milestone](http://tmitwww.tm.tue.nl/research/patterns/milestone.htm) pattern caught my particular interest (even though I would consider renaming it to\n \"Window of opportunity\"): A task has to happen after another task completes but before\n that task moves into it next phase (i.e. reaches the milestone). The following figure\n uses an extended EPC notation to represent this interaction pattern:\n\nIn this pattern, Task D can execute once the Milestone is reached but before the milestone\n expires (i.e. function B is executed).\n\nI have seen an interesting variation of this pattern quite frequently in real life.\n For example, a foreground task might have to perform some computation. It also starts\n a background task. Once the foreground task is completed, the foreground task checks\n whether the background task is done or not. If the background task is completed, the\n foreground task uses the result, otherwise it just moves on. This is different than\n the milestone because the milestone pattern does wait until task C is done if it was\n in fact started. I don;t have a name for this pattern yet, for now I call it \"Giving\n it a Shot\" or \"Impatient Master\".\n\n## Web Services\n\nFrank Leymann gave a very nice tutorial that demonstrated the significance and interrelationships\n between all the WS-* specifications, especially WS-Policy. I also learned about the\n new [WS-MetadataExchange](http://www-128.ibm.com/developerworks/library/specification/ws-mex/) spec.\n\n## Takeaways\n\nOne should always walk away from a conference with a new quote that makes you look\n smarter. In case of BTW, it was this one related to the vendor race in the SOA space:\n *We don't know where we are going but we want to get there first!*\n\n*Share:*\n\n*Follow:* [Follow @ghohpe](https://twitter.com/ghohpe) [SUBSCRIBE TO FEED](../ramblings.rss)\n\n*More On:* [EVENTS](/ramblings_events.html) [ALL RAMBLINGS](../ramblings.html)\n\nGregor is a cloud architect and author. He is a frequent speaker on asynchronous messaging,\n IT strategy, and cloud.", "znaku_textu": 5260, "slov": 749, "odkazu": 53, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 15:36:41", "sha256": "79ea9c5c67031b41e94f7035ea94f0b5bda2c7817f51716a7a0e0b791812cab8", "hloubka": 4, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://architectelevator.com/blog", "http://www.btw2005.de/", "http://wi.wu-wien.ac.at/~mendling/XML4BPM2005/", "http://xml.coverpages.org/ni2003-11-21-a.html", "http://office.microsoft.com/en-us/assistance/HP010575031033.aspx", "http://blog.whatfettle.com/archives/000250.html", "http://tmitwww.tm.tue.nl/research/patterns/patterns.htm", "http://tmitwww.tm.tue.nl/research/patterns/download/swf/pat_18.swf", "http://tmitwww.tm.tue.nl/research/patterns/milestone.htm", "http://www-128.ibm.com/developerworks/library/specification/ws-mex/", "https://twitter.com/share", "https://twitter.com/ghohpe", "https://leanpub.com/37things"]} {"url": "http://www.enterpriseintegrationpatterns.com/ramblings/24_tss2005.html", "titulek": "TSS Symposium Redux - Enterprise Integration Patterns", "h1": "TSS Symposium Redux", "popis": "A number of people have already blogged, er ranted, in detail about the TSSS but that can't stop me from occupying my fair share of the cyberspace with my impressions", "klicova_slova": "", "kanonicka": "", "jazyk": "en_US", "robots_meta": "", "og": {"og:type": "article", "og:locale": "en_US", "og:site_name": "Enterprise Integration Patterns", "og:title": "TSS Symposium Redux", "og:description": "A number of people have already blogged, er ranted, in detail about the TSSS but that can't stop me from occupying my fair share of the cyberspace with my impressions", "og:url": "https://www.enterpriseintegrationpatterns.com/ramblings/24_tss2005.html"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "TSS Symposium Redux"}, {"uroven": 2, "text": "John Crupi on SOA"}, {"uroven": 2, "text": "Future of Enterprise Java Panel"}, {"uroven": 2, "text": "TestNG"}, {"uroven": 2, "text": "AspectJ"}, {"uroven": 2, "text": "XQuery"}, {"uroven": 2, "text": "SOA = Same Old Architecture?"}, {"uroven": 2, "text": "Social Events"}], "markdown": "Gregor's Ramblings\n\n---\n\n# TSS Symposium Redux\n\nMarch 14, 2005\n\nFind my posts on IT strategy, enterprise architecture, and digital transformation\n at [ArchitectElevator.com](https://architectelevator.com/blog).\n\nStraight from Karlsruhe I joined the annual geek pilgrimage to Las Vegas for TheServerSide\n Symposium. The quality of content at this conference is quite impressive, which is\n easily evidenced by the fact that the sessions are actually very well attended despite\n the apparent surplus of distractions and the lack of sleep. And as always, it was\n great fun to catch up with people like Mike Cannon-Brooks, Rod Johnson, Ted Neward,\n Mark Hapner, John Crupi and many others.\n\nI also got a chance to observer real-time ranting in action. This is great, the speakers\n can essentially observe as their talk is being trashed on-line :-)\n\n## John Crupi on SOA\n\nJohn Crupi also realized that application patterns are so 2001 :-) So he jumped on\n the SOA train and shared his Big Rules for Web Services, which I liked quite a bit:\n\n- Coarse grained business services\n- XML document based\n- Mostly asynchronous\n- Conversational\n- Reliable\n- Secure Identity\n- Policy driven\n- Registered & Retrieved\n- WSDL described\n- BPEL orchestrated\n- JBI based\n- ACDC - AsynC Doc Centric\n\nI guess the list really describes \"Web Services developed in Java (TM)\" because otherwise\n it would be hard to explain that JBI item on the list ;-) Not that I dislike JBI,\n but it starts with J after all...\n\nIt is an open secret that the most important things at any conference go on in the\n hallway (well, the casino in this case, I guess). Anyway, it was good to run into\n Mark Hapner again. He informed me that a new public review draft of the BJI spec is\n [now available](http://jcp.org/aboutJava/communityprocess/pr/jsr208/index.html). I have not read the whole spec but it has some interesting sections on Message Exchange\n in it, so it'll be worth a look to harvest more design patterns.\n\n## Future of Enterprise Java Panel\n\nI also got to be on a 9am (!) panel on the future of Enterprise Java. I was a little\n worried that it would be a boring rerun of last year's panel but it turned out to\n be pretty interesting even though Rod Johnson was unusually kind to the Sun employees\n on the panel. Here are the main topics that came up:\n\n**State of Java**\n\nMost of us agreed that the J2EE platform is maturing. This makes for fewer sexy topics\n on a panel like this but it is actually a very good thing for developers. Rod summed\n it up nicely as \"It's all about execution now\". But he did not miss an opportunity\n to voice his opinion about EJB's: \"J2EE had the choice between becoming even more\n bloated and be rendered insignificant or slimming down and enjoying a long life. Luckily,\n J2EE chose life\". I believe that the focus on SOA will drive us to smaller components,\n exposed as services, in lighter weight containers, often referred to as Service containers.\n These service containers have slightly different needs from app servers and should\n be cheaper, have a small footprint and should be easy to manage, given that there\n will be many of them. I think most of the necessary pieces are part of most J2EE containers,\n it will be mostly a matter of slimming down and making the development and management\n of services more user friendly.\n\n**.Net vs. J2EE**\n\nThe inevitable question on .Net vs. J2EE came up fairly early. A gentleman stated\n his observation that in his company all new projects are .Net. To me this alone does\n not spell the demise of J2EE as 90% of all development effort is typically spent maintaining\n existing applications as opposed to starting new projects. Nevertheless this is a\n fun topic to discuss on a panel.\n\nOf course, Sun is quick to highlight their \"open\" community model. Some people (like\n [Jason Hunter](http://servlets.com/blog/)) have mixed views on the JCP and I am mostly in the skeptical camp as well. Hey,\n Microsoft listens very actively to developers, the ideas are just owned by MS in the\n end. Oh, and who \"owns\" the Java language and spec? Hmmm.... And, if you present a\n really good idea to MS, their \"community process\" is to hire you. Something to think\n about... after the likes of Ward Cunningham and Blake Stone now work there.\n\nAll panelists agreed to credit Microsoft with a good sense of pragmatism and making\n it easy for developers to get started. I think in this category, the much derided\n VBX/ActiveX/COM technology deserves a huge credit. It is one of the most successful\n commercial component models that I can remember. The ability for a VB developer to\n get a few components for 99 bucks and to show one cool app to his or her boss is largely\n unparalleled in the Java world. Of course, half the VB code often did not work, but\n hey, it looks cool :-)\n\nMicrosoft also runs one great developer community. Maybe I am a little biased (I had\n my hands in 2 of the Patterns and Practices books) but Microsoft has gained a lot\n of credibility in the patterns and enterprise developer community for contributing\n guidance that is not marketing material in disguise. Also, Microsofties now regularly\n attend and speak at high-end developer events like OOPSLA (even though the keynote\n there apparently went to the marketing department).\n\n**EJB 3.0 vs. JDOM 2.0**\n\nThis one was funny because we got Rod to come out of the box after Linda proclaimed\n this a big success. She was really asking for it to the extend that one wondered whether\n it was a setup.\n\n**What is SOA?**\n\nThis question was a great segue into my talk [SOA = Same Old Architecture?](http://www.theserverside.com/symposium/abstracts.html#same_old) Apparently my plug helped as they had to bring more chairs into the room for my talk.\n Essential agreement on that there is more hype and confusion than real solutions being\n built. The good old teen sex joke (\"everybody talks about it, noone does it\") was\n good enough for a few laughs -- maybe people were just being polite. On the other\n hand, a little more dynamic never hurts any panel. Jerry Springer gets high ratings\n after all.\n\n## TestNG\n\n[Cedric Beust](http://www.beust.com/weblog/) gave a talk on TestNG. I thought it was interesting but feel that all the jUnit bashing\n was unnecessary. Of course, [Hani liked it](http://www.jroller.com/page/fate/20050304#tsss_day_2_testng) because the first 20 minutes were essentially a bitching contest on the shortcomings\n of jUnit. Apparently jUnit does not use annotations and so won't you unless you are\n on J2SE5. The biggest gripe about jUnit is likely the instantiation model (each test\n case runs in its own instance of the class containing the test). I think most smart\n people have been bitten by that at least once (the dumb ones many more times), so\n it would be good to make this property a bit more apparent.\n\n## AspectJ\n\n[Adrian Coyler](http://www.aspectprogrammer.org/blogs/adrian/) gave a great talk on the new Eclipse tools for AspectJ (not the usual \"Apache logging\"\n talk) . So far I liked aspects from a conceptual point of view but was always afraid\n that it gives developers an automatic rifle instead of a shot gun to shoot themselves\n in the foot. It is nice to see that we are now getting tool support to let people\n work with aspects effectively. I particularly liked the visualization tool that shows\n where an aspect is applied, allowing you to navigate straight to the affected code.\n\nAdrian also picked up on my [EDA talk from a day earlier](http://www.theserverside.com/symposium/abstracts.html#event_driven_arch). When we built the channel implementation in JDK 1.4 we had to go through a bunch\n of hoops with reflection etc. It was nicely encapsulated behind a generic channel\n interface but it was still ugly and hard to test. After the project, Binkley mocked\n up a version with J2SE5 using annotations. Adrian [took it a step further](http://www.aspectprogrammer.org/blogs/adrian/2005/03/event_driven_ar.html) to show how aspects can make publishing and consuming events trivially simple. He\n managed to mock up most of it before his talk the next day!\n\n## XQuery\n\nA nice talk by Jason Hunter. I particularly like the examples, e.g. [Executive Paycheck](http://paycheck.demo.marklogic.com/). It uses XQuery to parse through the SEC filings to extract the executive compensation\n figures.\n\n## SOA = Same Old Architecture?\n\nMy talk went well, I did not get biled, noone threw things at me, and I got some [press coverage](http://searchwebservices.techtarget.com/originalContent/0,289142,sid26_gci1065615,00.html). Strangely they quote me as saying \"forget about SOAP and design patterns\". Now\n I know how rumors start. Let me set this straight: *Design patterns are your friend!!*\n\nThe highlight of the talk was certainly [Alef Arendsen of Spring fame](http://www.arendsen.net) confirming that SOA in Dutch means as much as STD.\n\n## Social Events\n\nWhat would a conference in Vegas be without all the dirty stories?? Well, I saw one\n of the speakers at 3am at the bar with a different kind of \"professional\"... oh wait,\n what happens in Vegas, stays in Vegas!\n\nUnfortunately, I missed the pool party but made sure to hit the Strip on Friday night.\n Some noble donor (reliable sources state that it was funded by [OpenSymphony's](http://www.opensymphony.com) GoogleAds Dollars -- give them a click!) threw an open bar at the Bellagio, followed\n by a migration to Mix and the Hard Rock. Thanks to the BEA guys for letting me leech\n of them for most of the night. Nothing like coming home with money left in your pocket.\n Of course, having a 9am panel the next day did suck.\n\nSaturday, Adrian and I paid a visit to the Hofbraeuhaus \"branch office\" in Las Vegas.\n With German guys in short pants giving each other piggyback rides and dancing, I felt\n like I was back in SF there for a while. The food was marginal (hey, German \"cuisine\")\n but the beer and the atmosphere were great. Once we migrated to the Hard Rock we got\n in fact spotted (well, how hard is it to spot two uebergeeks in Vegas??) and were\n able to scam a few free drinks. Around 4am I made 3 attempts to go to bed but the\n constant stream of slightly intoxicated and confused geeks in the Caesar's lobby was\n too entertaining to pass on. Too bad the flight home was only one hour -- I had a\n lot more sleep to catch on.\n\n*Share:*\n\n*Follow:* [Follow @ghohpe](https://twitter.com/ghohpe) [SUBSCRIBE TO FEED](../ramblings.rss)\n\n*More On:* [EVENTS](/ramblings_events.html) [ALL RAMBLINGS](../ramblings.html)\n\nGregor is a cloud architect and author. He is a frequent speaker on asynchronous messaging,\n IT strategy, and cloud.", "znaku_textu": 10540, "slov": 1732, "odkazu": 55, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 15:36:40", "sha256": "6a9f4eed9e866c2f449f122e3e2d7afe54a6837220e4f4e99149a57a31225d47", "hloubka": 4, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://architectelevator.com/blog", "http://jcp.org/aboutJava/communityprocess/pr/jsr208/index.html", "http://servlets.com/blog/", "http://www.theserverside.com/symposium/abstracts.html", "http://www.beust.com/weblog/", "http://www.jroller.com/page/fate/20050304", "http://www.aspectprogrammer.org/blogs/adrian/", "http://www.aspectprogrammer.org/blogs/adrian/2005/03/event_driven_ar.html", "http://paycheck.demo.marklogic.com/", "http://searchwebservices.techtarget.com/originalContent/0,289142,sid26_gci1065615,00.html", "http://www.arendsen.net/", "http://www.opensymphony.com/", "https://twitter.com/share", "https://twitter.com/ghohpe", "https://leanpub.com/37things"]} {"url": "http://www.enterpriseintegrationpatterns.com/ramblings/25_pnpSummit.html", "titulek": "Patterns and Practices Summit - Enterprise Integration Patterns", "h1": "Patterns and Practices Summit", "popis": "It seems like I spend all my time at conferences", "klicova_slova": "", "kanonicka": "", "jazyk": "en_US", "robots_meta": "", "og": {"og:type": "article", "og:locale": "en_US", "og:site_name": "Enterprise Integration Patterns", "og:title": "Patterns and Practices Summit", "og:description": "It seems like I spend all my time at conferences", "og:url": "https://www.enterpriseintegrationpatterns.com/ramblings/25_pnpSummit.html"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Patterns and Practices Summit"}, {"uroven": 2, "text": "Alan Cooper: Death March"}, {"uroven": 2, "text": "Billy Hollis on Declarative UI Development"}, {"uroven": 2, "text": "Ward Cunningham on Patterns"}, {"uroven": 2, "text": "Ted Neward on Design Patterns"}, {"uroven": 2, "text": "PAG Update"}], "markdown": "Gregor's Ramblings\n\n---\n\n# Patterns and Practices Summit\n\nMarch 15, 2005\n\nFind my posts on IT strategy, enterprise architecture, and digital transformation\n at [ArchitectElevator.com](https://architectelevator.com/blog).\n\nTechnical conferences are great. You get to network with your buddies and during the\n sessions you finally have time to get some actual work done! No interruptions like\n phone calls, e-mail etc. Some of my conference weeks are actually the most productive.\n\nThis is my first time at the [Patterns and Practices Summit](http://www.pnpsummit.com/) and I like it quite a bit. The show sports some celebrities like Alan Cooper, Blake\n Stone (ex Borland, now Microsoft), and Ward Cunningham and a nice line-up of people\n who have a lot to say about Microsoft technology: Jim Newkirk, David Trowbridge, Rocky,\n Ron Jacobs, Ted Neward. The event is not huge, so attendees get to hang out with speakers\n quite a bit. I think with a little more marketing this show could become the equivalent\n of TheServerSide Symposium for the .Net world. Unfortunately, there is much less going\n on in the open source world for .Net but that is changing as well. Maybe it would\n be worthwhile to invite [Erik](http://erik.doernenburg.com/projects.html) to talk about Neo or Rod to talk about [Spring.Net](http://sourceforge.net/projects/springnet/).\n\nMy favorite feature of the conference is that each attendee receives a USB Flash drive\n with all the presentation material on it.\n\n## Alan Cooper: Death March\n\nAlan Cooper gave one of his equally insightful and controversial talks on how to end\n the dreaded Death March. He reminds us to focus on user-centric design and to remember\n that in the software world \"Users do not equal customers\". For example, many of us\n use MS Office but very few actually purchased an individual copy at the store. Alan\n also distinguishes very clearly between Design Engineers, who want to do it right,\n and Programmers, who want to ship. Death March often ensues because management puts\n the technical people under pressure to solve problems that are really management problems.\n Subsequently, the team falls into the \"Efficiency vs. Effectiveness trap\": They try\n to build as many features as possible forgetting that features really don't matter.\n What matters is satisfaction.\n\nMy favorite quote: \"It takes technical and management people time to find the right\n level of communication where they can understand each other. Sort of like two modems\n going \"beeeeep, beep, beep\" until they found a compatible bit rate\".\n\n## Billy Hollis on Declarative UI Development\n\nBilly gave a nice talk on smart client development and how to use a more declarative\n programming style to deal with items such as validation. .Net and Visual Studio allow\n the creation of [Extender Providers](http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnadvnet/html/vbnet04082003.asp), controls that can extend properties of other controls. Once the extender control\n is placed on a form, other controls on the same form show a new property in the property\n window. Some of the VB case statements look a little scary but using these controls\n has a nice aspect-like feel to it.\n\n## Ward Cunningham on Patterns\n\nOne might wonder whether there is much more left to be said on patterns. If there\n is one to prove that wrong, it is Ward. Ward has been very active in creating [PatternShare](http://www.patternshare.org), a forum for patterns. It is a little more structured than a Wiki but allows third\n party contributions. Microsoft preloaded the forum with content from the GoF, [Martin's book](http://www.martinfowler.com/books.html), the [Microsoft PnP books](http://msdn.microsoft.com/patterns), [Eric's book](http://domaindrivendesign.org/book/) and [our book](../eaipatterns.html). A big bonus: all the content is available under the [Creative Commons license](http://creativecommons.org/licenses/by/2.0/), pioneered by [Larry Lessig](http://www.lessig.org), not some obscure Microsoft EULA.\n\n## Ted Neward on Design Patterns\n\nTed hosted a very interactive session on design patterns. About half the audience\n declared themselves as regular pattern users so it was interesting to get feedback\n on the accessibility (or lack thereof) of design patterns.\n\nAn interesting question came up regarding the [Service Activator](../MessagingAdapter.html). Isn't a Service Activator just a special form of an [Adapter](http://patternshare.org/default.aspx/Home.GOF.Adapter)? I would be inclined to say that the overall intent shares some similarities (e.g.\n \"make A look like B\") but the context and the scope of the problem are quite different.\n The GoF Adapter only translates from one interface of a class to a different one.\n A Service Activator in contrast has to deal with object-document mapping, asynchrony,\n remote protocols etc. If you define an Adapter broadly enough to cover all these scenarios\n you don't have much left to say about the solution. Therefore in my opinion it helps\n to draw a little more context around the pattern so we can provide more concrete guidance\n with the solution and the resulting context.\n\nThe next interesting question centered on patterns becoming part of the language,\n for example a DataSet being the incarnation of a [Data Transfer Object](http://patternshare.org/default.aspx/Home.PP.DataTransferObject). I pointed out that the DataSet is not actually a language construct but part of\n the .Net library and that it is fairly common for a library to implement very common\n patterns. This initiated another comment from the audience that delegates are in fact\n a language construct and implement for example the [Publish-Subscribe Pattern](../PublishSubscribeChannel.html). That question triggered another thought, namely whether patterns depend on the programming\n language. The consensus was that a pattern should not depend too much on the programming\n language, and if it did it would more likely be called an idiom. Patterns do, however,\n depend on the underlying programming model. That's why patterns for object-oriented\n applications are different from patterns for asynchronous messaging. Delegates are\n an interesting case because they are part of the C# language but they have little\n to do with object-orientation. They are much more aligned with the pipes-and-filters\n style that underlies most of the patterns in our book. So it is interesting to see\n that even within one language different programming models and therefore different\n patterns can emerge.\n\n## PAG Update\n\nMike Kropp, who is running the PAG group, pointed at the apparent lack of higher level\n patterns that let us start with business requirements and trace them through to an\n implementation. Tomorrow, David Trowbridge will demonstrate some of that with the\n [Global Bank example](http://workspaces.gotdotnet.com/gbi) the PAG group has been creating (with some help from ThoughtWorks). I particularly\n like the notion of a \"narrator application\" that visualizes how all the pieces work\n together. Now if that image was only [generated dynamically](11_dependencies.html) :-)\n\nAnother cool quote from Ted Neward: *If you publish an interface you can change it as long as you don't violate the \"2\n cubicle rule\". If the users of your interface are no more than 2 cubes away you can\n simple yell \"foo changed\"*. This underlines the fact that the rules in distributed systems development are very\n dependent on the organizational structure of the development team: if I have control\n over all pieces (e.g. because one team is building all pieces of the application),\n I don't need a whole lot of loose coupling.\n\nNow I am off to SD West. Attendee numbers at SD have been growing nicely with SD West\n 2005 clocking in at over 1100 attendees. Next week it's back to real client work,\n messing around with .asmx Web services, Soap Extension Reflectors, WS-Addressing,\n WSDL and friends.\n\n*Share:*\n\n*Follow:* [Follow @ghohpe](https://twitter.com/ghohpe) [SUBSCRIBE TO FEED](../ramblings.rss)\n\n*More On:* [EVENTS](/ramblings_events.html) [ALL RAMBLINGS](../ramblings.html)\n\nGregor is a cloud architect and author. He is a frequent speaker on asynchronous messaging,\n IT strategy, and cloud.", "znaku_textu": 8186, "slov": 1218, "odkazu": 60, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 15:36:39", "sha256": "15f7739f8eb096813888ef09842b450b0a80326f2061b42acac141117b1be50d", "hloubka": 4, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://architectelevator.com/blog", "http://www.pnpsummit.com/", "http://erik.doernenburg.com/projects.html", "http://sourceforge.net/projects/springnet/", "http://msdn.microsoft.com/library/default.asp?url=%2Flibrary%2Fen-us%2Fdnadvnet%2Fhtml%2Fvbnet04082003.asp", "http://www.patternshare.org/", "http://www.martinfowler.com/books.html", "http://msdn.microsoft.com/patterns", "http://domaindrivendesign.org/book/", "http://creativecommons.org/licenses/by/2.0/", "http://www.lessig.org/", "http://patternshare.org/default.aspx/Home.GOF.Adapter", "http://patternshare.org/default.aspx/Home.PP.DataTransferObject", "http://workspaces.gotdotnet.com/gbi", "https://twitter.com/share", "https://twitter.com/ghohpe", "https://leanpub.com/37things"]} {"url": "http://www.enterpriseintegrationpatterns.com/ramblings/26_symmetry.html", "titulek": "Can You Say \"Synchronous Asymmetry or Asynchronous Symmetry\"? - Enterprise Integration Patterns", "h1": "Can You Say \"Synchronous Asymmetry or Asynchronous Symmetry\"?", "popis": "In my perennial battle to free distributed system developers' minds from the perils of the call stack mentality I came across another reason why a call stack is not appropriate for distributed applications: the call stack is inherently asymmetric", "klicova_slova": "", "kanonicka": "", "jazyk": "en_US", "robots_meta": "", "og": {"og:type": "article", "og:locale": "en_US", "og:site_name": "Enterprise Integration Patterns", "og:title": "Can You Say \"Synchronous Asymmetry or Asynchronous Symmetry\"?", "og:description": "In my perennial battle to free distributed system developers' minds from the perils of the call stack mentality I came across another reason why a call stack is not appropriate for distributed applications: the call stack is inherently asymmetric", "og:url": "https://www.enterpriseintegrationpatterns.com/ramblings/26_symmetry.html"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Can You Say \"Synchronous Asymmetry or Asynchronous Symmetry\"?"}, {"uroven": 2, "text": "Synchronous Asymmetry"}, {"uroven": 2, "text": "Asynchronous Symmetry"}, {"uroven": 2, "text": "One Step Further"}, {"uroven": 2, "text": "Examples"}, {"uroven": 2, "text": "Conclusion"}], "markdown": "Gregor's Ramblings\n\n---\n\n# Can You Say \"Synchronous Asymmetry or Asynchronous Symmetry\"?\n\nMarch 25, 2005\n\nFind my posts on IT strategy, enterprise architecture, and digital transformation\n at [ArchitectElevator.com](https://architectelevator.com/blog).\n\n## Synchronous Asymmetry\n\nA call stack is inherently asymmetric: one method, the \"caller\", calls another method,\n the \"callee\". While the callee is working the caller is stalled. When the callee is\n done doing the work, control returns back to the caller. The call stack makes sure\n work continues within the caller exactly where it had left off. The asymmetry between\n caller and callee is even represented in the UML notation:\n\nMethod invocations are depicted as a solid line. Return values are optional and if\n included are represented as a dashed line. Within the virtual machine or the processor\n level the asymmetry takes the form of the push/pop and call/ret pairs. Inherently,\n invoking a method or calling a subroutine is different than returning from a method\n or subroutine.\n\n## Asynchronous Symmetry\n\nIn the world of distributed systems, the situation is slightly different. Distributed\n systems can ultimately only communicate through unidirectional data streams (often\n represented as \"sockets\" to the application). If you want to dive deeper down the\n stack, you could also make the claim that they can only communicate via packets or\n voltage sequences on some sort of wire. Either way, this means that both invoking\n a method and returning a result have to be performed in a way that it can be done\n over a data stream. Therefore, each component participating in remote communications\n needs to have sender and receiver modules that can turn objects into data streams\n and vice versa.\n\nThe interesting part is that this causes the solution to look a lot more symmetric.\n For example, in the following picture, which component invokes which one?\n\nYou might assume that the picture is drawn from left to right or from top to bottom\n but any cultural hints aside (they tend to vary across continents anyway) you'll quickly\n see that the picture is essentially symmetric. Both a caller and a callee have to\n send a message and receive a message. The only difference is in the order because\n the caller typically sends a message first and receives a message later, while the\n callee receives a message first and sends a message afterwards. Otherwise there is\n little difference between caller and callee.\n\nThe fact that one message is the method call (i.e., the \"request\" message) and the\n other one is the return (i.e., the \"response\" message) often manifests itself only\n in naming conventions or the presence of a element in the reply message\n that acts as a [Correlation Identifier.](../CorrelationIdentifier.html) Some people who equate service-oriented architectures with Web services and Web services\n with SOAP over HTTP might feel that the request-response model is nicely represented\n in the HTTP protocol: everything that \"goes out\" is a request and everything that\n \"comes back\" is a response. That works as long as you look it from the perspective\n of a client , i.e. a consumer of services. For the service provider everything that\n \"comes in\" is a request and everything that \"goes out\" is a response. Sounds pretty\n symmetric doesn't it? OK, the \"client\" gets to open and close the connection but once\n that is done we are back to \"data stream out, data steam in\". Besides, once you move\n to a call-back model for long-running services, the \"server\" now opens a connection\n to the \"client\" to deliver the \"result\" message. Who is now the caller and who is\n the callee? Sounds confusing? Well, yeah, because this is not the right way to think\n about these kinds of systems.\n\n## One Step Further\n\nThe symmetry becomes even more apparent if you zoom in on the parts that convert from\n the synchronous object-oriented world of the application to the asynchronous data\n stream world of the network (see figure).\n\nWhat does it take to get an object on the wire? You typically have to add any system-specific\n header elements, for example SOAP headers such as [WS-Addressing](http://www.w3.org/Submission/ws-addressing). You then might have to attach any necessary security certificates and finally serialize\n everything into a data stream. You might also want to encrypt parts of the stream.\n The receiving end looks pretty much like the mirror image: you first have to deserialize,\n check any applicable certificates and parse out the header elements to be used by\n the infrastructure. Whether the data you deal with is a \"request\" or a \"response\"\n is totally secondary. Sending a response message still requires you to attach headers,\n to serialize, and to deal with security. These functions are typically implemented\n as a chain of [Intercepting Filters](http://patternshare.org/default.aspx/Home.PP.InterceptingFilter), a pattern that is ultimately based on the [Pipes-and-Filters](../PipesAndFilters.html) principle that forms the basis of most messaging systems.\n\nTherefore, it makes a lot more sense to think about the interaction between the systems\n as an exchange of messages. The systems are primarily message senders and message\n receivers. Only a few higher level indicators (such as header fields) indicate which\n system is the \"client\" or \"caller\" and which system is the \"server\" or \"callee\". Thinking\n about the messages first allows for better code reuse and ultimately a simpler system\n model.\n\n## Examples\n\nIt is nice to see that a number of vendors have come to the same conclusion and are\n steering their Web services products into the direction of messaging. Microsoft makes\n for a good example. While the original ASP.NET Web Services framework was all about\n \"how can I call my method over SOAP?\", the more recent [Web Services Enhancements](http://msdn.microsoft.com/webservices/building/wse/) (WSE) are completely based on a `SoapSender` and `SoapReceiver` model. Yes, they also include `SoapClient` and `SoapServer` classes but these are actually inherited from the `SoapSender` and `SoapReceiver` classes. Both \"clients\" and \"servers\" use the same input filter and output filter\n chain to provide support for WS-Addressing and WS-Security for inbound and outbound\n messages.\n\nIf you look a little bit further down the (time)line you'll easily notice that Microsoft's\n distributed systems strategy has \"messaging\" written all over it. [Indigo](http://msdn.microsoft.com/Longhorn/understanding/pillars/Indigo/default.aspx) is all about messaging.\n\n## Conclusion\n\nA call stack mentality is very useful for synchronous, object-oriented applications\n that live in a single address space. However, when it comes to building distributed\n systems, the call stack mentality haunts us and makes us not realize the real structure\n of the system: sending and receiving messages. With message-based asynchrony we achieve\n symmetry that can save us a lot of duplication and grief.\n\n*Share:*\n\n*Follow:* [Follow @ghohpe](https://twitter.com/ghohpe) [SUBSCRIBE TO FEED](../ramblings.rss)\n\n*More On:* [MESSAGING](/ramblings_messaging.html) [DESIGN](/ramblings_design.html) [ALL RAMBLINGS](../ramblings.html)\n\nGregor is a cloud architect and author. He is a frequent speaker on asynchronous messaging,\n IT strategy, and cloud.", "znaku_textu": 7273, "slov": 1107, "odkazu": 49, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 15:36:38", "sha256": "6b73697d3736b57a31b264bb3e5a0cc5b501dfca340e34f55acc7983981060c2", "hloubka": 4, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://architectelevator.com/blog", "http://www.w3.org/Submission/ws-addressing", "http://patternshare.org/default.aspx/Home.PP.InterceptingFilter", "http://msdn.microsoft.com/webservices/building/wse/", "http://msdn.microsoft.com/Longhorn/understanding/pillars/Indigo/default.aspx", "https://twitter.com/share", "https://twitter.com/ghohpe", "https://leanpub.com/37things"]} {"url": "http://www.enterpriseintegrationpatterns.com/ramblings/27_latency.html", "titulek": "Are You Driving a DeLorean or a Toyota? - Enterprise Integration Patterns", "h1": "Are You Driving a DeLorean or a Toyota?", "popis": "When you build a distributed system you have to choose between latency and reliability", "klicova_slova": "", "kanonicka": "", "jazyk": "en_US", "robots_meta": "", "og": {"og:type": "article", "og:locale": "en_US", "og:site_name": "Enterprise Integration Patterns", "og:title": "Are You Driving a DeLorean or a Toyota?", "og:description": "When you build a distributed system you have to choose between latency and reliability", "og:url": "https://www.enterpriseintegrationpatterns.com/ramblings/27_latency.html"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Are You Driving a DeLorean or a Toyota?"}, {"uroven": 2, "text": "Indigo SDR"}, {"uroven": 2, "text": "The Toyota"}, {"uroven": 2, "text": "The DeLorean"}, {"uroven": 2, "text": "No Cheating"}], "markdown": "Gregor's Ramblings\n\n---\n\n# Are You Driving a DeLorean or a Toyota?\n\nMarch 30, 2005\n\nFind my posts on IT strategy, enterprise architecture, and digital transformation\n at [ArchitectElevator.com](https://architectelevator.com/blog).\n\n## Indigo SDR\n\nI am in Seattle at Microsoft's Indigo SDR (Strategic Design Review). Oops -- now Ari\n will send me to jail again for blogging about this. Oh wait, this time the bits are\n available as a CTP (Community Technology Preview), so I guess I am legit. Actually,\n this post is not really about Indigo but the result of a great discussion we had at\n the birds of a feather roundtables. I'll save the Indigo ramblings for another posting\n - I need to get that stuff setup on my machine first.\n\n## The Toyota\n\nIndigo implements [WS-ReliableMessaging](http://schemas.xmlsoap.org/ws/2005/02/rm/), a protocol overlaid over SOAP that makes message transmission reliable even if the\n underlying transport is not (e.g., HTTP) or if the communication contains unreliable\n intermediaries. The way it accomplishes this is by incorporating a retry and acknowledgment\n protocol that resubmits failed messages. The receiver is [idempotent](../IdempotentReceiver.html) so it can filter out potential duplicate resends. Combined with a persistent send\n buffer this makes the message transmission reliable even if the underlying network\n or protocol is not (if you use SOAP over a reliable transport like JMS you generally\n won't need WS-ReliableMessaging). The apparent trade-off is that the retransmission\n takes time. The less reliable the network is the longer it will take to successfully\n transmit a series of messages. So you make a conscious decision to trade off speed\n (latency) for more reliability, sort of like buying a Toyota (since they stopped making\n the Supra). This approach is definitely desirable for many business applications where\n a message can mean \"Order over $1 million\". Waiting a few seconds is definitely better\n than losing the message.\n\n## The DeLorean\n\nSome other systems have very different requirements. A great example is the [networked version of Halo 2](http://stuffo.howstuffworks.com/halo-network.htm). A fast paced first-person shooter game like Halo cannot afford to allow significant\n of latency between machines. If I am fighting an opponent I need to see where the\n other player is so I can aim accurately. Likewise if I am shot at I want to be able\n to see the fire so I can duck or run. A latency of even a few hundred milliseconds\n would make the game unplayable. Therefore, the developers of Halo 2 decided to minimize\n latency between machines. This meant, though, that they had to give up reliability.\n Sort of like having a DeLorean with Flux Capacitor but a spotty reliability record.\n They need to be prepared for the fact that a transmission might get lost. They also\n need to acknowledge the fact that there is inherent uncertainty about the state of\n the other machine. Because there is a delay between the actions on one machine and\n the transmission of the information, one user might see a slightly different world\n than another user. They use predictive algorithms to try to minimize surprises. For\n example, if the screen shows another player running from left to right, the local\n display will show the person continuing to run in the same direction if it has not\n received any updates. Continuing in the same direction is the best guess the local\n machine can make in the absence of more accurate information.\n\n## No Cheating\n\nAn RPC-based system model is based on the basic assumption that latency and unreliability\n do not exist. Unfortunately, for a distributed system these are bad assumptions. You\n can often trade off one aspect for the other but it is a definite trade-off. The more\n reliable you want your system to be the more latency you need to be able to accommodate.\n In such a system you need to be prepared for the fact that information does not travel\n instantaneously. This means you should be prepared to deal with long-running interactions,\n out-of-sequence messages, correlation, orchestration and so on. If you want to reduce\n latency you usually have to give up some reliability (or make your system not distributed).\n Once again there is no free lunch...\n\n*Share:*\n\n*Follow:* [Follow @ghohpe](https://twitter.com/ghohpe) [SUBSCRIBE TO FEED](../ramblings.rss)\n\n*More On:* [DESIGN](/ramblings_design.html) [MESSAGING](/ramblings_messaging.html) [ALL RAMBLINGS](../ramblings.html)\n\nGregor is a cloud architect and author. He is a frequent speaker on asynchronous messaging,\n IT strategy, and cloud.", "znaku_textu": 4570, "slov": 712, "odkazu": 46, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 15:36:37", "sha256": "bc401900baa72dbdc39622af0923b59c9eebff7817978b2fcd2046cdda1c6279", "hloubka": 4, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://architectelevator.com/blog", "http://schemas.xmlsoap.org/ws/2005/02/rm/", "http://stuffo.howstuffworks.com/halo-network.htm", "https://twitter.com/share", "https://twitter.com/ghohpe", "https://leanpub.com/37things"]} {"url": "http://www.enterpriseintegrationpatterns.com/ramblings/28_asynchrony.html", "titulek": "Will the Real Asynchrony Please Stand Up? - Enterprise Integration Patterns", "h1": "Will the Real Asynchrony Please Stand Up?", "popis": "On a recent project we developed a Web services framework that supports asynchronous callbacks and asynchronous invocation with polling", "klicova_slova": "", "kanonicka": "", "jazyk": "en_US", "robots_meta": "", "og": {"og:type": "article", "og:locale": "en_US", "og:site_name": "Enterprise Integration Patterns", "og:title": "Will the Real Asynchrony Please Stand Up?", "og:description": "On a recent project we developed a Web services framework that supports asynchronous callbacks and asynchronous invocation with polling", "og:url": "https://www.enterpriseintegrationpatterns.com/ramblings/28_asynchrony.html"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Will the Real Asynchrony Please Stand Up?"}, {"uroven": 2, "text": "Asynchronous Invocation Patterns"}, {"uroven": 2, "text": "Patterns Everywhere"}, {"uroven": 2, "text": "Asynchronous Client Library"}, {"uroven": 2, "text": "Asynchronous Service Handler"}, {"uroven": 2, "text": "Asynchronous Conversation"}, {"uroven": 2, "text": "Conclusion"}], "markdown": "Gregor's Ramblings\n\n---\n\n# Will the Real Asynchrony Please Stand Up?\n\nMay 15, 2005\n\nFind my posts on IT strategy, enterprise architecture, and digital transformation\n at [ArchitectElevator.com](https://architectelevator.com/blog).\n\n## Asynchronous Invocation Patterns\n\nWe all know by now that synchronous, object-oriented applications are a thing of the\n past. If you want to be cool these days you have to be asynchronous. Hey, even [Starbucks](18_starbucks.html) figured that out! Anyway, our last project had \"asynchronous service invocation\"\n already in the list of the requirements so very little convincing was necessary. Being\n a huge fan of asynchrony and patterns, I quickly started to recite asynchronous invocation\n patterns. Having learned that quoting other people's books reduces the amount of\n eye rolling and sighing, I described the patterns in Chapter 8 of [Remoting Patterns](http://www.amazon.com/exec/obidos/ASIN/0470856629/enterpriseint-20). This chapter has a nice side-by-side comparison of asynchronous interactions between\n systems, such as *Fire-and-Forget*, *Callback*, *Polling*.\n\n## Patterns Everywhere\n\nThe great thing about patterns is that they often apply to different contexts and\n levels of abstraction. As such they allow us to transfer knowledge and experience\n gained in one area to another area or another level of abstraction. This holds particularly\n true in areas such as message flows or workflow processing that can span domains as\n diverse as fluid dynamics, EAI messaging, manufacturing optimization, coffee shops,\n or composite services.\n\nInteraction patterns enjoy a wide range of applicability as well, particularly in\n the world of event-driven applications and message-based integration. Unfortunately,\n this wide applicability can increase the chance of misunderstandings, especially if\n we deal with remote communication. When I tell a coworker that I use \"Asynchronous\n Callback\" for my Web service he or she might think that I use an asynchronous client\n API. Another colleague who is developing a service provider might think that I want\n to invoke his service code through threads or delegates. Another person yet might\n think to use message-oriented middleware between components as supposed to HTTP. These\n examples portray (at least) three different views that exist when we look at communicating\n systems:\n\n- The client (consumer) view\n- The service (provider) view\n- The conversation (observer> view\n\nLet's look at asynchrony from all three viewpoints: (Depending on the nature of the\n conversation the roles may be more manifold than simply consumer and provider but\n let's stick with those two for now to exemplify an entity that sends a message and\n expects a response, and an entity that accepts requests and returns response, respectively.)\n\n## Asynchronous Client Library\n\nIt is very common for Web services frameworks to offer asynchronous client libraries.\n This functionality is often already baked into the client stub that the toolkit generates\n from the provider's WSDL. For example, on the .Net platform the client proxy generates\n three methods for every operation listed in the WSDL document. For example, if the\n provider exposes an operation `GetLoanQuote`, the client proxy exposes the methods:\n\n```\npublic LoanQuoteReply GetLoanQuote(LoanQuoteRequest LoanQuoteRequest) {...}\npublic IAsyncResult BeginGetLoanQuote(LoanQuoteRequest LoanQuoteRequest, AsyncCallback callback, object asyncState) {...}\npublic LoanQuoteReply EndGetLoanQuote(IAsyncResult asyncResult) {...}\n```\n\nThe `BeginGetLoanQuote` and `EndGetLoanQuote` methods allow the consumer to invoke the service asynchronously. Or do they? Well,\n it depends on your point of view. These methods are wrappers around the `BeginInvoke` and `EndInvoke` methods in the `SoapHttpClientProtocol` base class and provide for an asynchronous (i.e. non-blocking) programming model\n for the client application. This type of asynchrony is quite useful to keep the client\n application from sitting in a loop waiting for a response from a remote service. In\n fact, it is highly recommended to use the BeginXXX and EndXXX methods (and in .Net\n 2.0 we get a nicer version of these methods based on event handlers). However, this\n type of asynchrony has very little to do with the interaction between consumer and\n provider. Whether the client application calls `GetLoanQuote` or `BeginGetLoanQuote` / `EndGetLoanQuote` is completely invisible to the service provider. The client proxy will still open\n an HTTP connection, send the request, and keep the connection open until the response\n is received. From an observer point of view, this interaction looks rather RPC-like,\n i.e. synchronous.\n\n## Asynchronous Service Handler\n\nOn the provider side things naturally look a bit more synchronous: you need to accept\n a request and process it. The service can't really buck out before the response is\n computed. However, many service providers maintain a thread pool so that individual\n requests can be handled by a pool of worker threads. From the request handler's point\n of view the invocation of a worker thread is asynchronous -- the handler does not\n block and wait until the handler completes processing the request. Instead, the handler\n managers many workers at the same time. This type of processing is commonly implemented\n in most [Service Activators](../MessagingAdapter.html) because it provides efficient use of resources and good throughput. But again, this\n asynchrony is related to the local programming model inside the server process. It\n has no impact on the client programming model or the conversation protocol between\n consumer and provider.\n\n## Asynchronous Conversation\n\nIf we want to achieve an asynchronous interaction model between client and server\n (for example to avoid holding connection resources for the entire duration of a long-running\n interaction) we need to look outside of the consumer and provider programming models.\n We can, for example, choose a message-oriented communications layer such as JMS or\n MSMQ. Or we can use two separate HTTP connections -- one for the request message and\n one for the response message. In either case we can use the familiar asynchronous\n messaging patterns such as [Correlation Identifier](../CorrelationIdentifier.html) and [Return Address](../ReturnAddress.html) to manage the relationship between the two messages. Using HTTP is still not asynchronous\n from the viewpoint of a single message, i.e. the sender of a message still has to\n wait for the receiver to respond to the request to establish a connection and until\n the data is transmitted. However, it does provide asynchrony from the viewpoint of\n the overall conversation. No conversation state (see [Enemy of the State](20_statelessness.html)) is held in the connection between consumer and provider. Instead, the state travels\n with the message that is sent by the consumer to the provider and back.\n\n## Conclusion\n\nAsynchrony is a broad concept and not surprisingly there are many incarnations. All\n types of asynchrony have their place but are very different. Therefore, it is important\n to avoid confusion by specifying the context when we use the asynchronous pattern\n names.\n\nInterestingly the same viewpoints apply to the notion of transactions. A lot of messaging\n layers provide client-side transactions or provider-side transactions but no conversation\n transactions. This is a very interesting topic, but it'll have to wait for another\n rambling...\n\n*Share:*\n\n*Follow:* [Follow @ghohpe](https://twitter.com/ghohpe) [SUBSCRIBE TO FEED](../ramblings.rss)\n\n*More On:* [DESIGN](/ramblings_design.html) [MESSAGING](/ramblings_messaging.html) [CONVERSATIONS](/ramblings_conversations.html) [WEBSERVICES](/ramblings_webServices.html) [PATTERNS](/ramblings_patterns.html) [ALL RAMBLINGS](../ramblings.html)\n\nGregor is a cloud architect and author. He is a frequent speaker on asynchronous messaging,\n IT strategy, and cloud.", "znaku_textu": 7904, "slov": 1131, "odkazu": 49, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 15:36:36", "sha256": "a504b20be47359c276427abbcede315e356f1f6d46be8cc3808c207d8be7eee9", "hloubka": 4, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://architectelevator.com/blog", "http://www.amazon.com/exec/obidos/ASIN/0470856629/enterpriseint-20", "https://twitter.com/share", "https://twitter.com/ghohpe", "https://leanpub.com/37things"]} {"url": "http://www.enterpriseintegrationpatterns.com/ramblings/29_teched.html", "titulek": "Microsoft TechEd 2005 Digest - Enterprise Integration Patterns", "h1": "Microsoft TechEd 2005 Digest", "popis": "This year I actually missed putting in a proposal for TechEd", "klicova_slova": "", "kanonicka": "", "jazyk": "en_US", "robots_meta": "", "og": {"og:type": "article", "og:locale": "en_US", "og:site_name": "Enterprise Integration Patterns", "og:title": "Microsoft TechEd 2005 Digest", "og:description": "This year I actually missed putting in a proposal for TechEd", "og:url": "https://www.enterpriseintegrationpatterns.com/ramblings/29_teched.html"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Microsoft TechEd 2005 Digest"}, {"uroven": 2, "text": "Celebrity Hunting"}, {"uroven": 2, "text": "Best Quotes"}, {"uroven": 2, "text": "Web Services Contract First"}, {"uroven": 2, "text": "Book Ego"}, {"uroven": 2, "text": "New Track - CSI"}, {"uroven": 2, "text": "C# 2.0"}, {"uroven": 2, "text": "Web Services Support in Visual Studio 2005"}, {"uroven": 2, "text": "WSE 3.0"}, {"uroven": 2, "text": "Don Box and DSLs"}], "markdown": "Gregor's Ramblings\n\n---\n\n# Microsoft TechEd 2005 Digest\n\nJune 7, 2005\n\nFind my posts on IT strategy, enterprise architecture, and digital transformation\n at [ArchitectElevator.com](https://architectelevator.com/blog).\n\n## Celebrity Hunting\n\nConferences are a great place to connect or reconnect with other people who like to\n talk about technology but who are notoriously busy. This time I managed to spend a\n few late nights with [Ingo Rammer](http://www.thinktecture.com/staff/ingo/weblog/) and [Christian Weyer](http://weblogs.asp.net/cweyer/) from [Thinktecture](http://www.thinktecture.com) and [Beat Schwegler](http://blogs.msdn.com/beatsch/) from Microsoft EMEA. It was not until this TechEd it became apparent to me for the\n first time how many of the foreign speakers at TechEd are German. It was good to see\n Ingo, Christian, Beat, Clemens, and Jochen speak -- it is nice to hear a familiar\n accent :-)\n\nI also got to hang out with a lot of the Indigo guys like Steve Schwartz, Shy Cohen.\n These guys are always fun to hang out with. Coming in from the West Coast provided\n the distinct advantage that 3am feels more or less like midnight to me. Naturally,\n I have little to report about the 9am keynote talks :-)\n\n## Best Quotes\n\nConferences are a great place to steal sound bites from other speakers. The best part\n is -- we have most of them on tape! Here the best ones I can remember:\n\n\"It all sucks\" - Don Box (summarizing his talk)\n\n\"Integrating = Hooking Shit Together\" - Pat Helland via Don Box\n\n\"People who write XSLT really ought to be killed\" - Clemens Vasters\n\n\"We don't need faster cars but wider bridges\" - Clemens Vasters (talking about throughput of messaging systems)\n\n\"I am glad my alias is scohen and not shyc, which would be pronounced \"Scheisse\" -\n Shy Cohen\n\n\"I think the people who designed the MOF had a bad childhood and were hit by their\n mothers\" - Don Box\n\n\"Why should people be in this session? Because they are confused!\" - Don Box\n\n\"You like to go above the call of duty\" - My hand writing analyst\n\n\"Oh, I did not realize you are *the* Gregor who wrote that patterns book. That guy seemed so... smart\" -- Yumai Chang\n\n\"Gregor, I don't think you are desperate enough.\" - Yumai Chang\n\n\"You want to have fun, you come to my room. You don't want to have fun, you don't\n come.\" - unidentified drunk woman at the hotel bar at 2am.\n\n\"His T-shirt is printed in Braille. You have to touch it to read it\" - Gregor (talking to Beat and attractive lady).\n\n## Web Services Contract First\n\nChristian Weyer is working on a quite interesting tool called [WSCF](http://www.thinktecture.com/Resources/Software/WSContractFirst) - Web Services Contract First. This tool addresses a specific issue with the apsx\n Web services development approach that can be summarized as \"design message schemas\n first, but let ASP.NET generate the WSDL\". This approach is commonly used and is definitely\n preferable to the \"code first\" approach. We actually outline the process in the [Implementing Service-Oriented Integration with ASP.NET](http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnpag/html/implsoiwithnet.asp) pattern in the [Integration Patterns](http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnpag/html/implsoiwithnet.asp) book that I wrote with the Patterns & Practices folks in Redmond. The issue with\n this approach is that the schemas referenced by the WSDL are not the real schemas\n you created at the beginning to define the message formats. Instead, .Net generates\n classes from the schema and then inspects these generated classes to render schemas\n to be included in the WSDL document. This works OK only as long as you trust .NET\n that this round-trip is 100% loss-less. Unfortunately, loss-less bidirectional conversion\n between the world of documents and the world of objects is a tricky proposition --\n anyone who has taken a closer look at the `XmlSerializer` can tell endless stories about this subject. Additionally, if someone modifies the\n classes in the generated service code, your WSDL has magically changed without any\n corresponding changes to the originally design message schemas. WSCF corrects this\n whole round-tripping issue by modifying the WSDL generated from .Net to include the\n original schema files rather than using the schemas generated from the classes by\n the ASP.NET infrastructure.\n\n## Book Ego\n\nI stopped by the conference book store and realized that [Enterprise Integration Patterns](../books1.html) is now in its 5th printing :-) We also had an interesting discussion about the title\n of the book. Why is the book called Enterprise Integration Patterns when 90% of the\n content is about messaging? Well, when we were dciding on a title we put our marketing\n hat on :-). Since it was going to be the first book about patterns in the integration\n space we wanted to put the broadest possible footprint down. If there was one book\n about integration and patterns, we wanted it to be ours. Therefore the name \"Enterprise\n Integration Patterns\". It's analogous to the infamous \"Design Patterns\", which is\n also not called \"Object-oriented design patterns using C++ and SmallTalk.\" The book\n defined a whole new category and underlined that fact with a short and broad title.\n Either way, it seems that our title has not hurt book sales all that much :-)\n\nMy book signing event went surprisingly well, which means that either people liked\n our talk so much that they rushed to get the book or they were more confused than\n before and felt they need to read the book to get anything out of the topic. I hope\n it was the former :-)\n\n## New Track - CSI\n\nThis year's TechEd featured a new track, CSI. No, not the tv show, but the Connected\n Systems Infrastructure. This term is the new umbrella for all things SOA, distributed\n systems and business processes. Most interesting talks related to BizTalk, Indigo\n and Web Services are now hosted under this track. In fact, there is only one Indigo\n talk at the whole show because most of that material is being saved for PDC in Fall.\n Interestingly, Clemens' async talk ran under CSI while Ted and my talk ran under ARC.\n I hope there won't be too much overlap. On a related note, the BizTalk Server2006\n Beta is being handed out at the show.\n\n## C# 2.0\n\nAnders Hejlsberg gave a nice overview over the new C# language features. While I am\n a little worried that the language is becoming bloated, most of the new features seem\n useful. On top of the list are obviously the generics. Generics allow types to be\n used as parameters to define methods and classes. These type parameters are instantiated\n at run-time. However, the type checking is performed at declaration time. The main\n difference between C# generics is that C# generics are a platform feature, i.e. the\n CLR is aware of them. In the Java world they are a pure language features, i.e. they\n are compiled into regular JVM byte code through a process called type erasure. This\n difference can be explained with the longer legacy of the Java platform, which severely\n limits their ability to change the JVM and the libraries. On a more subtle note, Java\n generics are also limited to reference types whereas C# can handle both reference\n and value t\\ypes.\n\nC# 2.0 will also have anonymous methods, something very similar to \"blocks\" found\n in other programming languages. Blocks are very useful when you would like to pass\n a piece of code to a method, something that is difficult to do with the current C#\n syntax. The best example is a method that can iterate over a collection and allows\n you to pass in a piece of code to be executed for each collection element. You can\n accomplish this today with delegates but it requires a fair amount of typing plus\n a \"home\" for the delegate method. With anonymous methods you can pass in a method\n body as a delegate without actually having to declare the method:\n\n```\ndelegate bool Predicate(T item);\npublic List FindAll(Predicate filter) {...}\n...\naccounts.FindAll(delegate(Account a) { return a.Balance < 0; } \n```\n\nNullable types are another feature that should bring some relief to code that has\n to deal with optional XML elements or attributes. We now can declare any variable\n type as nullable:\n\n```\nint? foo = null;\n```\n\nYou can check whether a variable has a value via the `HasValue()` method. This is definitely nicer than having to use `Integer` types and comparing them against `null` all the time. It also does away with the clunky `[XmlIgnore]public bool fooSpecified;` construct that would indicate to the XmlSerializer that the bool should be set to\n `true` if and only if a value for `foo` was specified.\n\n## Web Services Support in Visual Studio 2005\n\nJohn Bristowe gave a great talk on the new features in VS 2005 that make developing\n Web services with ASP.Net 2.0 easier. Some of the highlights:\n\n- IXmlSerializable came out of the shadow and is now officially supported. By implementing\n this interface you can process incoming and outgoing SOAP messages via `XmlReader` and `XmlWriter` without having to hold the complete object model in memory. This is very useful for\n large messages or if you want to have direct access to a small subset of document\n elements. The \"official\" alternative so far was to declare your webmethod with a XmlElement\n parameter but that approach does in fact build a whole DOM tree. Even better news\n is that even if you implement `IXmlSerializable` you can still specify a schema to be used for the WSDL generation. As a result, your\n operation looks to the outside just like a method that takes a strongly typed parameter.\n- The new client libraries support automatic proxy discovery, which should alleviate\n the need to configure app.config with the proxy information.\n- Enhanced network libraries allow you go get a lot more information about the status\n of the network connection. For example, you can find out on which ports your machine\n is listening. You can also register your application to be notified when the network\n connection becomes available or unavailable.\n- A number of folks have already described the new event-based asynchronous client proxies\n that are generated by wsdl.exe or the IDE. Referring back to my previous [rambling](28_asynchrony.html) it is important to realize that this asynchrony is a client-side only asynchrony.\n Still it is a nicer programming model than the old `BeginFoo` and `EndFoo` methods.\n\n## WSE 3.0\n\nI like the Web Service Enhancemets (WSE), commonly referred to as \"wissie\". WSE includes\n a set of SoapExtension filters that provide support for WS-Addressing and WS-Security.\n It also provides a nice programming model that supports both an RPC as well as a message-oriented\n view of the interaction between a service provider and service consumer. Mark Fussel\n gave a great talk on WSE 3.0. Contrary to earlier claims there will be a 3.0 release\n of WSE. The Community Technology Preview (CTP) release has just been made available.\n To me the most notable additions are:\n\n- The WSE team created a set of common security scenarios (e.g., \"Username over Certificate\")\n and has created a wizard that helps configure all the pieces according to the scenario.\n I am sure everyone who has played with certificates and WSE configuration will appreciate\n this new feature.\n- WSE 3.0 will also have a MSMQ transport built-in. A number of people had built this\n function on their own so it is nice to have it as part of the official stack now.\n Obviously I am a big fan of MSMQ because it provides a very nice asynchronous messaging\n infrastructure.\n- WSE 3.0 will also make it easier to host .asmx Services outside of IIS and support\n alternative protocols (such as MSMQ). The independence of IIS and therefore the independence\n from the transport protocol is a great step into the right direction. On our last\n project we had to build quite a bit of code to allow services to be invoked synchronously\n and asynchronously.\n\n## Don Box and DSLs\n\nDon Box wowed a large crowd with his funny yet insightful presentation style. This\n time he mused about metadata, models, and DSL's (Domain Specific Languages). BTW,\n he defined the verb \"to model\" as \"write stuff down\". I share Don's view (I guess\n if I didn't I would not be dumb enough to publicly disagree with him...) that models\n are something extremely useful but that a lot of the current OMG stack of meta-meta-models\n is far too much for most developers [[more on my view on models](11_dependencies.html)]. According to Don, some of these folks \"have simply gone meta\". He suggests that\n there are only two levels: the concrete level and the other level. What we are therefore\n looking for is an easier way to model our systems and use transformations to convert\n these models into something executable. The Visual Studio 2005 DSL tools are definitely\n heading in that direction but I think we are still pretty early in the cycle.\n\nI think that it will become more and more common for systems to be developed in more\n than one language. This multi-language phenomenon has little to do with C# vs. Java\n but with the advent of more Domain Specific Languages. Especially in the area of Web\n Services and integration a lot of new languages have already arrived. We have XSLT\n for document transformations, XPATH and XQuery to extract data from XML documents;\n we use rules engines that are based on new languages and use BPEL for orchestrations.\n Many times, these languages are hidden behind some [visual veneer](02_doodleware.html) to shield the user from the (sometimes cumbersome) syntax. Nevertheless, the general\n adoption of these languages is pretty low (maybe the low number of XSLT programmers\n is a result of [Clemens](http://staff.newtelligence.net/clemensv/) following through on his opinions about XSLT programmers... ). Seriously though,\n the new languages are often powerful and expressive but require the developer to adapt\n to a whole new programming model. Also, since many of these languages are based on\n standards or are embedded in commercial tools they have to be fairly general purpose\n to maximize their applicability.\n\nDomain Specific Languages try to provide the benefits of purpose-built languages but\n aim to make it much easier to define them and to use them. They plan on accomplishing\n this by providing better tools and by making the languages smaller in scope. For example,\n one would not create a language that can transform any XML document but more likely\n a language that can deal with specific XML documents that are used by the application\n at hand.\n\nJochen Seemann gave an early preview to the Domain Specific Language tools in the\n upcoming Visual Studio 2005. This is a bigger topic than fits into this rambling but\n here is my quick summary. VS 2005 focuses solely on visual languages by using a meta-model\n that is based on a directed graph. You can define nodes and connectors and equip them\n with specific attributes, visuals and composition rules. Then you can write code generation\n classes for each type of node and connector you defined. This allows you to programm\n (some might say \"doodle\"...) in a Visio-like environment but with a vocabulary and\n constraints that you define.\n\n**Update**: [Martin Fowler](http://www.martinfowler.com) posted an excellent article on [Language Workbenches](http://www.martinfowler.com/articles/languageWorkbench.html) -- tools to design DSLs.\n\n*Share:*\n\n*Follow:* [Follow @ghohpe](https://twitter.com/ghohpe) [SUBSCRIBE TO FEED](../ramblings.rss)\n\n*More On:* [EVENTS](/ramblings_events.html) [ALL RAMBLINGS](../ramblings.html)\n\nGregor is a cloud architect and author. He is a frequent speaker on asynchronous messaging,\n IT strategy, and cloud.", "znaku_textu": 15566, "slov": 2516, "odkazu": 56, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 15:36:35", "sha256": "748e631d126656f762d5a4bcc5eb792eb2aa5863ab0dd898a8e61e6a1a8b4e3c", "hloubka": 4, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://architectelevator.com/blog", "http://www.thinktecture.com/staff/ingo/weblog/", "http://weblogs.asp.net/cweyer/", "http://www.thinktecture.com/", "http://blogs.msdn.com/beatsch/", "http://www.thinktecture.com/Resources/Software/WSContractFirst", "http://msdn.microsoft.com/library/default.asp?url=%2Flibrary%2Fen-us%2Fdnpag%2Fhtml%2Fimplsoiwithnet.asp", "http://staff.newtelligence.net/clemensv/", "http://www.martinfowler.com/", "http://www.martinfowler.com/articles/languageWorkbench.html", "https://twitter.com/share", "https://twitter.com/ghohpe", "https://leanpub.com/37things"]} {"url": "http://www.enterpriseintegrationpatterns.com/ramblings/30_configure.html", "titulek": "Configure This! - Enterprise Integration Patterns", "h1": "Configure This!", "popis": "Having been to a number of conferences and their attached expo floors recently it was not surprising that I was not able to escape the line \"this tool does not require programming, everything is done through configuration\"", "klicova_slova": "", "kanonicka": "", "jazyk": "en_US", "robots_meta": "", "og": {"og:type": "article", "og:locale": "en_US", "og:site_name": "Enterprise Integration Patterns", "og:title": "Configure This!", "og:description": "Having been to a number of conferences and their attached expo floors recently it was not surprising that I was not able to escape the line \"this tool does not require programming, everything is done through configuration\"", "og:url": "https://www.enterpriseintegrationpatterns.com/ramblings/30_configure.html"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Configure This!"}, {"uroven": 2, "text": "Good Intentions"}, {"uroven": 2, "text": "Levels of Abstraction"}, {"uroven": 2, "text": "Variability Points"}, {"uroven": 2, "text": "Domain-Specific Languages"}, {"uroven": 2, "text": "Configuration or Programming?"}, {"uroven": 2, "text": "Configuration Progamming"}, {"uroven": 2, "text": "Conclusion"}], "markdown": "Gregor's Ramblings\n\n---\n\n# Configure This!\n\nJuly 5, 2005\n\nFind my posts on IT strategy, enterprise architecture, and digital transformation\n at [ArchitectElevator.com](https://architectelevator.com/blog).\n\nHaving been to a number of conferences and their attached expo floors recently it\n was not surprising that I was not able to escape the line \"this tool does not require\n programming, everything is done through configuration\". Hearing this tag line for\n the third or fourth time got me wondering, \"what really is the difference between\n coding and configuring?\"\n\n## Good Intentions\n\nJust to be sure, this is not intended to be vendor bashing (even though it can sure\n be tempting sometimes :-) ). Seriously, buying tools can save a lot of development\n work that we can buy off the shelves. These tools make our lives easier because they\n do a lot of the grunt work for us. Libraries and tools also serve an important community\n function by widening the reach of a specific technology. Yeah, a lot of us guys who\n like to have dinner with the Microsoft Indigo team or the Java OSS crowd for fun sure\n don't mind dabbling with WSDL elements and writing our own XML serializers. However,\n if your main task is to solve business problems and your boss won't let you go to\n TechEd because he (or she) considers it a waste of time, having a tool that lets you\n stay out of the nitty gritty can be a lifesaver.\n\n## Levels of Abstraction\n\nThe primary technique of making developers' lives easier is to raise the level of\n abstraction at which they have to work. Very few of us still write assembly code,\n read individual file blocks from a disk, or put individual packets onto the network.\n This level of detail has been nicely wrapped behind high-level languages, file and\n socket streams. These programming abstractions are very convenient (try doing without\n them!) and dramatically increase productivity. All I have to do is know a file name\n or a URI and bytes come streaming in and out. Of course, if abstractions are this\n useful, the question is whether we can add new abstraction layers to increase productivity\n further. If we are able to provide enough abstraction, we might be able to do away\n with coding and can create a solution simply by configuration. Or can we?\n\n## Variability Points\n\nIn our quest to provide more and more abstraction and to simplify the programming\n model further and further we come up to an interesting challenge: We want to simplify\n our world but we do not want to lose too much flexibility. If I need to store individual\n data records on my hard disk (for example to create a rapid direct-access indexing\n system) a file stream abstraction doesn't do me much good. To make our life actually\n easier, it's not enough to just paint a thin [visual veneer](02_doodleware.html) over the existing programming interface. Instead we have to actively reduce complexity,\n and therefore likely some flexibility. This exercise is quite similar to the [architecture guessing game](22_extensibility.html) I talked about before. If we take away the wrong things, our abstraction is limited\n in its usefulness. If we take away too few things, we didn't accomplish much in terms\n of simplifying our (programming) life.\n\n## Domain-Specific Languages\n\nTwo ways lead us out of the abstraction and variability conundrum. For one, you can\n try to get more people to think along your mental model. This'll make them less likely\n to desire features that you eliminated when you created the abstraction. This is the\n approach of the evangelists and, to some extend, the patterns authors. Alternatively,\n you can avoid limiting yourself to a single general-purpose abstraction, instead providing\n different abstractions for different purposes. This approach is great as long as you\n can make creating these abstractions easy, which is usually not the case. This is\n the very problem the Domain-Specific Language (DSL) folks are trying to solve by providing\n [Language Workbenches](http://www.martinfowler.com/articles/languageWorkbench.html). The workbenches are tools to create new languages that provide specific abstractions.\n DSLs are still in very early stages but promise to become quite useful.\n\n## Configuration or Programming?\n\nBut back to our original question. What kind of abstraction deserves to be called\n \"configuration\" versus \"high-level programming\"? We are often led to believe that\n everything that sits in an XML file can be considered configuration. This can be true\n for very simple scenarios, but XSLT programs are also XML files, and those things\n are definitely programming, and not for the faint of heart at that. A better criterion\n that comes to mind is whether what you create is executable. If the algorithm is predefined\n and I only supply a few key values this is more likely to be considered configuration.\n On the other hand, calling a method with parameters is not really any different and\n is certainly considered programming. Also, a \"configuration\" value can decide between\n different algorithms, so it has some impact on the program execution. Many development\n platforms actually allow us to accomplish the same tasks via configuration or code,\n depending on our preference (Microsoft Indigo is a good example where this is done\n fairly consistently).\n\nSo how about distinguishing by whether the things you enter are executed in a specific\n order. delineating pure data from a set of sequential instructions. This looks like\n a reasonable separation, even though some definite gray areas remain, especially when\n using declarative programming languages, for example to configure rules engines or\n our favorite language XSLT. Declarative languages focus on specifying relationships\n between constructs and do typically not presuppose a specific execution order as procedural\n languages would do. Also, aren't coding instructions just data for the execution engine?\n Apparently, it is still largely a matter of perspective.\n\nWhen you make a system configurable, consider carefully whether you are really just\n configuring or whether you are actually programming at a high level of abstraction.\n Considering your mechanism as programming can remind of the value of proper tool support\n like editors or validation.\n\n> We once built an application from individual components that were composed via channels,\n> with \"configuration\" files telling a component which channel(s) to receives messages\n> from and which ones to send message to. Being a common setup in EAI tools, where adapters\n> and such are configured to talk to each other via specific channel names, we stored\n> the data in local XML files. After a while, though, a lot of errors in the system\n> occurred due to misconfiguration: components would not talk to each other because\n> the channel names were misconfigured or the flow of messages was wrong because we\n> chained together the right components in the wrong order. This started to get us thinking\n> that what we created was not a simple configuration file but really a high-level programming\n> model for the\n> \n> composition layer\n> \n> of our system.\n\nEnding the shadow life of the config files and making them first class citizens caused\n us to check these files into source control like any other source file, and to create\n a set of validation and management tools to perform efficient debugging and troubleshooting\n (see my related [earlier post](19_composing.html)) . It also reminded us that providing this \"configuration\" is useful but it does\n not automatically mean that it is trivial or does not require skilled developers.\n\nSo, I'd summarize my advice on configuration as such:\n\n> If changing settings can break your application, you better consider that coding.\n\n## Configuration Progamming\n\nNow that I am back on-line I can include a link to a [dictionary entry on Configuration Programming](http://foldoc.org/configuration%20programming). Here it states that:\n\n> Configuration Programming\n> \n> : An approach that advocates the use of a separate configuration language to specify\n> the coarse-grain structure of programs. Configuration programming is particularly\n> attractive for concurrent, parallel and distributed systems that have inherently complex\n> program structures.\n\nThis definition highlights that academia have been thinking about the gray area between\n configuration and programming for some time. One example of a language designed specifically\n for the described purpose is [Darwin](http://citeseer.ist.psu.edu/rd/0%2C192436%2C1%2C0.25%2CDownload/http://citeseer.ist.psu.edu/cache/papers/cs/241/http:zSzzSzhypatia.dcs.qmw.ac.ukzSzdatazSzukzSzdse.doc.ic.ac.ukzSzdarwinzSziwcds.pdf/magee93structuring.pdf).\n\n## Conclusion\n\nAbstractions are a good thing, but let's not get carried away thinking that calling\n the abstraction \"configuration\" is suddenly going to eliminate the need for developers.\n Instead, treat configuration as a first-class citizen that requires design, testing,\n version control, and deployment management.\n\n*Share:*\n\n*Follow:* [Follow @ghohpe](https://twitter.com/ghohpe) [SUBSCRIBE TO FEED](../ramblings.rss)\n\n*More On:* [DESIGN](/ramblings_design.html) [ALL RAMBLINGS](../ramblings.html)\n\nGregor is a cloud architect and author. He is a frequent speaker on asynchronous messaging,\n IT strategy, and cloud.", "znaku_textu": 9253, "slov": 1395, "odkazu": 49, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 15:36:34", "sha256": "2c2f2d0e8aa96afc4b113a699b6764e236bc08e56242c348023a173e6944921d", "hloubka": 4, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://architectelevator.com/blog", "http://www.martinfowler.com/articles/languageWorkbench.html", "http://foldoc.org/configuration%20programming", "http://citeseer.ist.psu.edu/rd/0,192436,1,0.25,Download/http://citeseer.ist.psu.edu/cache/papers/cs/241/http:zSzzSzhypatia.dcs.qmw.ac.ukzSzdatazSzukzSzdse.doc.ic.ac.ukzSzdarwinzSziwcds.pdf/magee93structuring.pdf", "https://twitter.com/share", "https://twitter.com/ghohpe", "https://leanpub.com/37things"]} {"url": "http://www.enterpriseintegrationpatterns.com/ramblings/31_techededa.html", "titulek": "TechEd 2005 Europe: Event-Driven Architectures - Enterprise Integration Patterns", "h1": "TechEd 2005 Europe: Event-Driven Architectures", "popis": "I just returned from Microsoft TechEd Europe in Amsterdam", "klicova_slova": "", "kanonicka": "", "jazyk": "en_US", "robots_meta": "", "og": {"og:type": "article", "og:locale": "en_US", "og:site_name": "Enterprise Integration Patterns", "og:title": "TechEd 2005 Europe: Event-Driven Architectures", "og:description": "I just returned from Microsoft TechEd Europe in Amsterdam", "og:url": "https://www.enterpriseintegrationpatterns.com/ramblings/31_techededa.html"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "TechEd 2005 Europe: Event-Driven Architectures"}, {"uroven": 2, "text": "The Call Stack"}, {"uroven": 2, "text": "Composability"}, {"uroven": 2, "text": "Event-Driven Architectures"}, {"uroven": 2, "text": "A Simple Event Channel"}, {"uroven": 2, "text": "Design Decisions"}, {"uroven": 2, "text": "Specifying Behavior"}, {"uroven": 2, "text": "Channel Implementation"}, {"uroven": 2, "text": "Code Download"}, {"uroven": 2, "text": "Conclusion"}], "markdown": "Gregor's Ramblings\n\n---\n\n# TechEd 2005 Europe: Event-Driven Architectures\n\nJuly 11, 2005\n\nFind my posts on IT strategy, enterprise architecture, and digital transformation\n at [ArchitectElevator.com](https://architectelevator.com/blog).\n\nMy second talk at TechEd Europe was a rapid journey through call-stack semantics,\n coupling, composability, and visualizations, with a bit of test-driven development,\n inversion of control, and [Resharper](http://www.jetbrains.com/resharper) mixed in. Since I had a large audience and got decent feedback ratings (aside from\n the comment that I tend to look like I am running for a train...) I figured it might\n be worth sharing some of the talk as a blog post. The talk is obviously inspired by\n some of my earlier postings, namely [Good Composers are Far and Few in Between](19_composing.html), [Look Ma -- No Middleware!](14_edainjvm.html), and [Visualizing Dependencies](11_dependencies.html) so I won't go into a ton of detail on those topics but invite you to (re)read these\n earlier posts. Also, since this talk was part of a Microsoft conference all code examples\n are in C#. However, I won't dwell on C# language features. Everything I show here\n would look very similar in Java (except for the stupid \"I\" in front of the interface\n names).\n\n## The Call Stack\n\nThe call stack is one of these things that we rarely think about (except when we get\n a stack trace) but that actually governs the way we think and write software in a\n fairly significant way. Most high-level programming languages like Java, C#, C++,\n VB are based on a stack model. Even declarative languages like XSLT support a call-stack\n model through elements like call-template (even though this can lead to more pain\n than gain). The call stack actually provides a few critical functions for us:\n\n- **Coordination** - The stack ensures that only one method executes at a time (unless we specifically\n instruct otherwise, e.g. through asynchronous delegate invocations).\n- **Continuation** - The stack also makes sure that once a called method completes, the calling method\n continues where it left off. Obviously this is done by pushing the instruction pointer\n on the call stack and pulling it back off during the RET statement. This is a very\n specific case of *continuation* . Some programming languages allow for a more flexible model, where the caller can\n choose where something should go after it completes a function.\n- **Context** - The call stack also contains your local variables, so that once a method call completes\n you have your local context back as if nothing happened.\n\nOK, so you might feel like you are having back flashs from CompSci 101. Why is this\n interesting to professional developers? It becomes interesting when you use a programming\n model that does *not* have a built-in call stack. Particularly, because all the assumptions that you became\n used to making are no longer given. This can give you quite a headache.\n\nFor example, a messaging model does not support a call stack. When I send a request\n message and receive a response message at a later time, none of the mechanisms mentioned\n above are at work. There is no coordination unless I put in an active wait loop. The\n message does actually not come back to me unless I specifically supply a [Return Address](../ReturnAddress.html). Lastly, I do not have my local state when I receive the response message unless\n I use a [Correlation Identifier](../CorrelationIdentifier.html) or include all necessary state in the message.\n\nSome messaging approaches are trying to put the call stack back into the model but\n this is [generally a bad idea](26_symmetry.html).\n\n## Composability\n\nAnother key ingredient into event-driven architectures is the notion of composability.\n Composability is the ability to build new things from existing pieces. This can occur\n because the individual pieces make fewer assumptions about other components and therefore\n do not presuppose the overall structure of the system. This is one of the key benefits\n of loose coupling: the fewer assumptions I make about the components I interact with\n the easier it is to change the other components. Composability is a great benefit\n because it promotes reuse and adaptability. It is also great during testing -- I might\n want to swap out another component for a test or mock component during testing. If\n my system is composable, that is very easy to do.\n\nA key aspect of composability is that *something* must perform the composition. We can distinguish there between *explicit composition* and *implicit composition*. Explicit composition is one where a special [Assembler](http://patternshare.org/default.aspx/Home.MF.Assembler) wires two (or more) components together. Implicit composition takes place when one\n component decides by itself (or is configure to) publish data to `Channel X` and another component is setup to receive data from `Channel X`. Because both components independently decided to work with the same channel they\n will exchange data without knowing the other party. Because there is no Assembler\n needed, we refer to this approach as implicit composition.\n\n## Event-Driven Architectures\n\nEvent-driven architectures are those that expose a top-layer structure that is not\n dependent on a call stack and is highly composable. The high-level components communicate\n solely through events that are passed through event channels. For example, one component\n might receive orders via a Web site or a Web service. Once the component did some\n basic validation it publishes a message \"Order Received\". It is completely oblivious\n to which other components listen and react to this event. It also does not presuppose\n what actions should happen next. This is very different from a method call where I\n specifically instruct another component to perform a function of my choice.\n\nI mentioned \"top-layer structure\" because each individual component is most likely\n constructed using regular, call-stack oriented techniques. This is just fine because\n the inside of a component benefits from the much richer interaction model that a method\n call gives us. It would be a huge pain to have to correlate and synchronize for every\n method call! Also, the tighter coupling inside a component is a non-issue because\n typically one person or one team develops and controls all pieces of the component.\n\n## A Simple Event Channel\n\nAlright, let's go ahead and build some of the core pieces to build an EDA. The first\n important piece we need are the event channels, i.e. the pieces that allow us to publish\n events and subscribe to them. We'll build those from scratch here. In order to focus\n on architectural trade-offs instead of language features I intentionally keep things\n very simple. This is partly just practicality (call it laziness if you wish) but that\n aside it is still a good idea to keep your channels simple. The channel behavior and\n the events are the key coupling point between components. The more complex these things\n are the more implicit coupling occurs between the components.\n\nWhat does a very simple channel have to do? It has to allow on component to send message\n and another one to receive them. Going back to basics here, the interface can look\n like this:\n\n```\npublic delegate void OnMsgEvent(XmlDocument msg);\n\npublic interface IMessageReceiver\n{\n void Subscribe(OnMsgEvent handler); \n}\n \npublic interface IMessageSender\n{\n void Send(XmlDocument msg);\n}\n\npublic interface IChannel : IMessageSender, IMessageReceiver\n{}\n```\n\nIt is common wisdom that a good design is not the one where nothing can be added but\n rather one where nothing can be taking away. It seems like we are pretty close to\n that design goal here :-) We have a method to send an event in form of an XML document\n and a method to signify our interest in receiving all events coming in on this channel.\n This is done through delegates, making for a [Event-driven Consumer](../EventDrivenConsumer.html) (note that an Event-driven consumer itself has little to do with Event-driven architectures\n -- one is a microscoping implementation decision inside an endpoint and the other\n is an architectural style).\n\nSo far so good, all we need to do now is implement this interface. That should not\n be too hard given that all we have is two methods. But not so fast, there are a few\n more things we need to decide on...\n\n## Design Decisions\n\nThe `IChannel` interface merely specifies the syntax of our channel interface. The name and parameters\n of our methods suggest some semantics, i.e. a it is fairly likely that a method named\n `send` that takes an `XmlDocument` does in fact send a message. But this assumption leaves quite a bit to be desired\n in terms of precision. Let's look at a few more details that I would like to know\n about a channel:\n\n- Is the channel a [Point-to-Point Channel](../PointToPointChannel.html) or a [Publish-subscribe Channel](../PublishSubscribeChannel.html) ? That means, if there are multiple subscribers to a channel will only one subscriber\n receive the message or will each subscriber receive a copy of the message.\n- Is the channel distributed or distributable, i.e. can communicating components reside\n on different machines? Not that distributable means something different than local.\n For example, a distributable channel is a local channel that behaves very much like\n a remote channel, i.e. it delivers a *copy* of a message to the recipients instead of a reference to the original message. Details\n like this are critical because these are exactly the things that tend to trip us up\n when we transition from a local to a remote system.\n- Is the channel asynchronous or simply one-way but synchronous? Even though the `Send` method does not return anything we might still be interested to know whether the\n call blocks until the receiving end has executed the function or not. This is critical\n when multiple messages are sent and we are tempted to make timing assumptions across\n messages.\n\nIn some of these cases you might be inclined to argue that a component should not\n have to know how the channel behaves in detail. This is true as long as the component\n does not make any implicit assumptions that might be fulfilled by some channels and\n not others. For example, if a component that receives a message modifies that message\n it makes an implicit assumption that it received its own copy of the message. This\n will work for distibuted systems but may not work for a simple local channel that\n simply sends a copy of the same message.\n\n## Specifying Behavior\n\nBecause the interface itself does not say much about the expected behavior of the\n channel we need to find a better way to express what we decided. The best way to do\n that is code -- test code. So let's whoop up some [nUnit](http://www.nunit.org) test cases to specify the behavior we discussed. First, we want to make sure that\n basic composition works. We also want to verify that our channel is a [Publish-subscribe Channel](../PublishSubscribeChannel.html) and that it sends copies of the inbound messages. This makes for three test cases:\n\n- SequentialComposition\n- ChannelSendsMessageToAllSubscribers\n- ChannelMakesCopyOfMessage\n\nThe code for the first test looks like this:\n\n```\n[Test]\npublic void SequentialComposition()\n{\n\tDebugChannel inChannel = new DebugChannel(new StraightThroughChannel());\n\tDebugChannel connChannel = new DebugChannel(new StraightThroughChannel());\n\tDebugChannel outChannel = new DebugChannel(new StraightThroughChannel());\n\n\tnew TraceFilter(inChannel, connChannel, \"filter1\");\n\tnew TraceFilter(connChannel, outChannel, \"filter2\");\n\n\tinChannel.Send(doc);\n\n\tAssert.AreEqual(\"filter1\", outChannel.LastMessage.DocumentElement.ChildNodes[0].Name);\n\tAssert.AreEqual(\"filter2\", outChannel.LastMessage.DocumentElement.ChildNodes[1].Name);\n}\n```\n\nThis code uses two helper classes. One is the `DebugChannel`. This channel is a [Decorator](http://en.wikipedia.org/wiki/Decorator_pattern) around our simple channel that allows us to inspect the last message that was sent.\n The other one is the `TraceFilter`, a filter that appends its name to any message that passes through. The filter takes\n an input and an output channel in its constructor along with the name of the channel.\n The test explicitly composes two filters to that the message passes through them sequentially\n (see figure). At the end it verifies that the message passed through `filter1` first and through `filter2` last. By the way, the `doc` variable has been initialized by the `[SetUp]` method that nUnit calls before every test case.\n\nIn order to verify that we have a [Pub-Sub Channel](../PublishSubscribeChannel.html) we need to hook two subscribers to the same channel. We do this again with two `TraceFilter`s. This time we verify that each output event has passed through exactly on filter\n and has been tagged by that filter:\n\n```\n[Test]\npublic void ChannelSendsMessageToAllSubscribers()\n{\n DebugChannel inChannel = new DebugChannel(new StraightThroughChannel());\n DebugChannel out1Channel = new DebugChannel(new StraightThroughChannel());\n DebugChannel out2Channel = new DebugChannel(new StraightThroughChannel());\n\n new TraceFilter(inChannel, out1Channel, \"filter1\");\n new TraceFilter(inChannel, out2Channel, \"filter2\");\n\n inChannel.Send(doc);\n\n Assert.AreEqual(1, out1Channel.LastMessage.DocumentElement.ChildNodes.Count);\n Assert.AreEqual(\"filter1\", out1Channel.LastMessage.DocumentElement.ChildNodes[0].Name);\n Assert.AreEqual(1, out2Channel.LastMessage.DocumentElement.ChildNodes.Count);\n Assert.AreEqual(\"filter2\", out2Channel.LastMessage.DocumentElement.ChildNodes[0].Name);\n}\n```\n\nLastly, we want to make sure the channel delivers copies of the original message instead\n of references to the same in-memory instance. We can do this by creating another filter,\n the `ManglingFilter`. A `ManglingFilter` modifies the message it receives from the channel. Our test makes sure that we can\n send a message to a `ManglingFilter` without our message object being harmed:\n\n```\n[Test]\npublic void ChannelMakesCopyOfMessage()\n{\n StraightThroughChannel inChannel = new StraightThroughChannel();\n StraightThroughChannel outChannel = new StraightThroughChannel();\n\n new ManglingFilter(inChannel, outChannel);\n\n inChannel.Send(doc);\n Assert.AreEqual(0, doc.DocumentElement.ChildNodes.Count);\n}\n```\n\n## Channel Implementation\n\nNow we are ready to implement a channel that supports all these test cases. The code\n is surprisingly simple because we use a local, i.e. distributable, channel:\n\n```\npublic class StraightThroughChannel : IChannel\n{\n OnMsgEvent subscriber;\n\n public StraightThroughChannel()\n {\n subscriber = new OnMsgEvent(NullEvent);\n }\n\n public void Subscribe (OnMsgEvent handler)\n {\n subscriber += handler;\n }\n\n public virtual void Send (XmlDocument msg)\n {\n subscriber((XmlDocument)msg.Clone());\n }\n\n private void NullEvent(XmlDocument doc)\n {}\n}\n```\n\nNote the call to `Clone` that ensures we deliver a copy of the message that passed to the `Send` method. Actually, this implementation has a minor flaw. If multiple subscribers subscribe\n to the `StraightThroughChannel`, they each receive a copy of the original message. However, they receive the *same* copy. So if one subscriber mangles the message, other subscribers will see the change.\n If this is undesired, we have to replace the elegant one-liner delegate invocation\n with a `foreach` statement.\n\n## Code Download\n\nThe complete solution does not contain a lot of code but still a little more that\n I showed here. There is a `SimpleFilter` base class that does nothing but simply forward a message, I created an asynchronous\n channel and a Null Channel that acts like `/dev/null` for messages. You can [download the Visual Studio solution here](../download/SimpleMessaging.zip). Note that this solution requires [nUnit 2.2](http://www.nunit.org).\n\n## Conclusion\n\nComposability is a major ingredient into making system adaptable and promoting reuse.\n As simple as introducing a channel between two components may look, the devil is often\n in the detailed behavior. Defining a simple channel interface and specifying its behavior\n using coded unit tests is an important starting point to creating a composable architecture.\n\nOur simple example used explicit conposition using code. One could easily imagine\n using a configuration file ([more on configuration](30_configure.html)) or the new [Visual Studio 2005 Software Factories](http://lab.msdn.microsoft.com/teamsystem/workshop/sf/default.aspx).\n\n*Share:*\n\n*Follow:* [Follow @ghohpe](https://twitter.com/ghohpe) [SUBSCRIBE TO FEED](../ramblings.rss)\n\n*More On:* [EVENTS](/ramblings_events.html) [ALL RAMBLINGS](../ramblings.html)\n\nGregor is a cloud architect and author. He is a frequent speaker on asynchronous messaging,\n IT strategy, and cloud.", "znaku_textu": 16651, "slov": 2458, "odkazu": 59, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 15:36:33", "sha256": "465b467f6094b71c458678a81a67c5f70c5b78e917d75c76f01fe367815047d8", "hloubka": 4, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://architectelevator.com/blog", "http://www.jetbrains.com/resharper", "http://patternshare.org/default.aspx/Home.MF.Assembler", "http://www.nunit.org/", "http://en.wikipedia.org/wiki/Decorator_pattern", "http://lab.msdn.microsoft.com/teamsystem/workshop/sf/default.aspx", "https://twitter.com/share", "https://twitter.com/ghohpe", "https://leanpub.com/37things"]} {"url": "http://www.enterpriseintegrationpatterns.com/ramblings/32_google.html", "titulek": "New Packaging, Same Good Content - Enterprise Integration Patterns", "h1": "New Packaging, Same Good Content", "popis": "As many people have already heard, I changed employers", "klicova_slova": "", "kanonicka": "", "jazyk": "en_US", "robots_meta": "", "og": {"og:type": "article", "og:locale": "en_US", "og:site_name": "Enterprise Integration Patterns", "og:title": "New Packaging, Same Good Content", "og:description": "As many people have already heard, I changed employers", "og:url": "https://www.enterpriseintegrationpatterns.com/ramblings/32_google.html"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "New Packaging, Same Good Content"}], "markdown": "Gregor's Ramblings\n\n---\n\n# New Packaging, Same Good Content\n\nAugust 1, 2005\n\nFind my posts on IT strategy, enterprise architecture, and digital transformation\n at [ArchitectElevator.com](https://architectelevator.com/blog).\n\nSo it's true... even I have not been immune to the major center of gravity for software\n professionals in the Bay Area. So I followed the footsteps of [Adam Bosworth](http://www.adambosworth.net), [Josh Bloch](http://www.theserverside.com/news/thread.tss?thread_id=27163), [Cedric Beust](http://www.beust.com/weblog/archives/000172.html), [Crazybob](http://crazybob.org/) and other notable influencers in the Java and enterprise software world and joined\n Google. Luckily I am not important enough for anyone to [sue Google](http://www.theregister.co.uk/2005/07/19/microsoft_google/) over my move. It also looks like I am going to keep my blog as long as I don't post\n tomorrow's stock price. And at my option strike price it does not look like I will\n retire too soon (I am hoping for it to hit $500!), so expect more work on EAI Patterns\n for a while to come.\n\nSo is there integration work at Google? Keep in mind that Google runs one of the largest\n (civilian) distributed computing infrastructures in the world. Do they care about\n reliability and fail over? You betcha! Do they write lots of software? Well, yeah!\n\nNow Google is a bit on the secretive side about its projects, technologies, how many\n servers there are (I swear I don't know!). And it is understandable when you realize\n how much IP is floating around there and how many billions of Dollars hinge on that.\n Somehow we need to protect our $80B market cap...\n\nBTW, it is true that Google provides free gourmet lunch, breakfast and dinner (attendance\n is not required). Working for a company that pulled $1.4B last quarter with 4000 or\n so employees sure has its benefits.\n\nJoining Google does not mean I will retire from conferences and public events. I will\n present a [tutorial at OOPSLA](http://www.oopsla.org/2005/ShowEvent.do?id=128)and will likely be speaking at [Microsoft PDC](http://msdn.microsoft.com/events/pdc/) and [OOP](http://www.sigs-datacom.de/sd/kongresse/oop_2005/) in Germany so my German does not get rusty.\n\nWhy did I leave [ThoughtWorks](http://www.thoughtworks.com)? Mostly to reduce the travel burden on my aging body. Somehow living in one of the\n nicest (and most expensive) cities in the US and hardly ever being there makes little\n sense (apparently, this took me only 10 years or so to figure out). As far as consulting\n companies go, ThoughtWorks is still on the top of my list. In consulting you get to\n work on an unparalleled variety of projects, which proves to be an invaluable source\n of ideas and design patterns. Over time, though, the temptation of less travel and\n more stock options grew stronger :-)\n\nOh, and by the way, I did not take the last spot at Google, they are [looking for many more smart people](http://www.google.com/jobs/)\n\n*Share:*\n\n*Follow:* [Follow @ghohpe](https://twitter.com/ghohpe) [SUBSCRIBE TO FEED](../ramblings.rss)\n\n*More On:* [GREGOR](/ramblings_gregor.html) [ALL RAMBLINGS](../ramblings.html)\n\nGregor is a cloud architect and author. He is a frequent speaker on asynchronous messaging,\n IT strategy, and cloud.", "znaku_textu": 3254, "slov": 470, "odkazu": 53, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 15:36:32", "sha256": "b0d8b988d501ef4f503e440de5fabc27405a14a0ed56f23ca4f6797d939c4985", "hloubka": 4, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://architectelevator.com/blog", "http://www.adambosworth.net/", "http://www.theserverside.com/news/thread.tss?thread_id=27163", "http://www.beust.com/weblog/archives/000172.html", "http://crazybob.org/", "http://www.theregister.co.uk/2005/07/19/microsoft_google/", "http://www.oopsla.org/2005/ShowEvent.do?id=128", "http://msdn.microsoft.com/events/pdc/", "http://www.sigs-datacom.de/sd/kongresse/oop_2005/", "http://www.thoughtworks.com/", "http://www.google.com/jobs/", "https://twitter.com/share", "https://twitter.com/ghohpe", "https://leanpub.com/37things"]} {"url": "http://www.enterpriseintegrationpatterns.com/ramblings/33_interface.html", "titulek": "Interface User - Enterprise Integration Patterns", "h1": "Interface User", "popis": "One of the biggest perceived fears of authors is that someone publishes a book or an article on the same topic just ever so slightly ahead of you that you have done all the work but look like a copy cat if you still publish your work", "klicova_slova": "", "kanonicka": "", "jazyk": "en_US", "robots_meta": "", "og": {"og:type": "article", "og:locale": "en_US", "og:site_name": "Enterprise Integration Patterns", "og:title": "Interface User", "og:description": "One of the biggest perceived fears of authors is that someone publishes a book or an article on the same topic just ever so slightly ahead of you that you have done all the work but look like a copy cat if you still publish your work", "og:url": "https://www.enterpriseintegrationpatterns.com/ramblings/33_interface.html"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Interface User"}, {"uroven": 2, "text": "What Makes an Interface Usable?"}], "markdown": "Gregor's Ramblings\n\n---\n\n# Interface User\n\nAugust 5, 2005\n\nFind my posts on IT strategy, enterprise architecture, and digital transformation\n at [ArchitectElevator.com](https://architectelevator.com/blog).\n\nWe often consider user interface design to be related to graphical or text-based interfaces\n where users enter data, select from menu items and drop-down lists, or click hyperlinks.\n There are many good books on user interface design, both in terms of the aesthetic\n aspects as well the process of usability studies and task analysis.\n\nOne user group that is all too often forgotten from the usability effort, however,\n are other programmers. Programmers are clearly users of code: they code against your\n classes or interfaces or might access your Web services remotely. And all too often\n they struggle with the same issues end user do: which function to execute first, confusion\n over unclear error messages, uncertainty over the meaning of a specific field, mismatches\n between the users mental model and the (user) interface model just to name a few.\n\nJust as I was thinking of rambling on this topic of programming interface usability\n I discovered Ken Arnold's excellent article [Programmer's are people, Too](http://doi.acm.org/10.1145/1071713.1071731) in [ACM Queue Magazine](http://www.acmqueue.com) (unfortunately, the full version requires ACM on-line library access). Alas, it turns\n out that his interest in this topic is by no means recent -- I just never happened\n to stumble on his work. He actually shared a number of the same thoughts in an [Interview on Artima](http://today.java.net/pub/a/today/2003/06/10/design.html) quite a while ago. So I won't plagiarize his work here but just give some of the\n highlights and add my personal views on the topic.\n\nWhy is this topic worth highlighting on a blog about enterprise integration? Programming\n interface usability issues are often minor as long as the \"programmer user\" is on\n the same team (or even the same person) as the creator of the code and the number\n of potential users is small. However, if you are developing a code library or a published\n service, your users might be far away or might want to access functions even after\n the original developer might have left the company. With the increasing popularity\n of Web services a lot more programming interfaces of sorts are being exposed to an\n ever-increasing number of developers. This naturally increases the concerns of usability.\n\n## What Makes an Interface Usable?\n\nA number of usability considerations match good common design guidelines for interfaces:\n\n- Good, descriptive field and operation names.\n- Consistent naming in both word choice and sequence. For example, one can easily think\n of least the following names for a simple operation: `StartOperation` , `BeginOperation` , `OperationBegin` , `OperationStart` , `OpStart` , and so on. If you want to make your interface users happy, choose one style and\n use it consistently.\n\nOther design aspects are more subtle and more directly related to usability:\n\n- Progressive Disclosure - when you look at successful end-user software such as MS\n Office or Star Office, the key feature that tends to stand out is that of progressive\n disclosure. My mom uses Word even though she is familiar with maybe 5% of the features.\n I use Word as well but probably use 50% of the features. Magically the software adapts\n to either usage scenario because advanced features are available but do not stand\n in the way of simple usage. Unfortunately, this approach is rarely used in the design\n of programming interfaces. You usually get a list of umpteen functions, most likely\n in alphabetical order. This gives a user very little guidance as to where to get started.\n- Common Patterns - following a common design pattern increases the chances that the\n reader can quickly grasp how the interface functions. Every so often, readers lament\n that books on design patterns contain material that they already knew. Nevertheless,\n having a catalog of named patterns allows many developers to talk about the same concept\n by the same name. I have experienced this many times where after hours of discussion\n one developer shouts out \"oh, what you mean is an xxx'. This benefit extends to the\n design of programming interfaces. I hope that my work on conversation and interaction\n patterns will be particularly helpful in this area.\n- Executable Test Cases - one of the most useful aids in helping someone how to use\n an interface is to provide a suite of executable test cases that can both serve as\n example code as well as a precise description of the observable behavior of the component\n at hand. If your interface is available across platforms, this can be a little harder\n to do because test cases provided in one programming language might not be useful\n to all developers. However, the behavior of a Web service could be described by a\n set of matching input and output documents (assuming the service follows a request-response\n interaction model).\n- Forcing Functions - the best usability guides are devices that keep users from making\n simple mistakes by prescribing a logical sequence and enforcing it. For example, you\n won't get you money out of the ATM until you remove the card -- making it nearly impossible\n to forget your card (unless you do not care about picking up your cash!). This function\n became particularly clear to me when I walked up to an ATM and the machine put someone\n else's card right into my hands. The person had *deposited* money and the machine does not have a similar forcing function for deposits. In the\n world of programming interfaces, strong typing can help in this regard. If one operation\n requires a type that can only be obtained by one (or a few) other operations, the\n expected sequence of operations is implicitly enforced. if all parameters are `string` s and `int` s then it is hard to guess what should happen in what order.\n- Affordances - similar, but different are affordances. Affordances are cues as to the\n usage of an object. A round door know suggests to turn it, a handle suggests pulling,\n and a bar suggests pushing. We can use similar approaches with methods and operations.\n\nThere is a lot to be said about the usability of programming interfaces. For an entertaining\n and enlightening insight into the world of usability I highly recommend Don Norman's\n [Design of Everyday Things](http://amazon.com/o/asin/0465067107/ref=nosim/enterpriseint-20). And thanks again to Ken Arnold for inspiring me to finally write this up.\n\n*Share:*\n\n*Follow:* [Follow @ghohpe](https://twitter.com/ghohpe) [SUBSCRIBE TO FEED](../ramblings.rss)\n\n*More On:* [DESIGN](/ramblings_design.html) [ALL RAMBLINGS](../ramblings.html)\n\nGregor is a cloud architect and author. He is a frequent speaker on asynchronous messaging,\n IT strategy, and cloud.", "znaku_textu": 6803, "slov": 1071, "odkazu": 47, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 15:36:31", "sha256": "b3156a4e2a450ec03c6524188d25f915543732f0288ef17c32e90edc73fe637a", "hloubka": 4, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://architectelevator.com/blog", "http://doi.acm.org/10.1145/1071713.1071731", "http://www.acmqueue.com/", "http://today.java.net/pub/a/today/2003/06/10/design.html", "http://amazon.com/o/asin/0465067107/ref=nosim/enterpriseint-20", "https://twitter.com/share", "https://twitter.com/ghohpe", "https://leanpub.com/37things"]} {"url": "http://www.enterpriseintegrationpatterns.com/ramblings/34_cb.html", "titulek": "What Color Are My Shoes? - Enterprise Integration Patterns", "h1": "What Color Are My Shoes?", "popis": "Two weeks ago I attended a very small, but special conference on enterprise software development", "klicova_slova": "", "kanonicka": "", "jazyk": "en_US", "robots_meta": "", "og": {"og:type": "article", "og:locale": "en_US", "og:site_name": "Enterprise Integration Patterns", "og:title": "What Color Are My Shoes?", "og:description": "Two weeks ago I attended a very small, but special conference on enterprise software development", "og:url": "https://www.enterpriseintegrationpatterns.com/ramblings/34_cb.html"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "What Color Are My Shoes?"}, {"uroven": 2, "text": "Attributes / Annotations"}, {"uroven": 2, "text": "Model Extraction / Visualization"}, {"uroven": 2, "text": "Mixing Architectural Styles"}, {"uroven": 2, "text": "Domain Specific Languages (DSL's)"}, {"uroven": 2, "text": "Goal-based Design"}], "markdown": "Gregor's Ramblings\n\n---\n\n# What Color Are My Shoes?\n\nSeptember 1, 2005\n\nFind my posts on IT strategy, enterprise architecture, and digital transformation\n at [ArchitectElevator.com](https://architectelevator.com/blog).\n\n[Martin Fowler](http://www.martinfowler.com) once said that you can tell a social geek by the fact that he looks at the *other* person’s shoes. While this makes for a good joke I have actually found that there\n is a distinct group of software developers who are quite social and well connected.\n When someone asked me recently how I keep up on all the happenings in the software\n world I realized that I do a good portion of it by hanging out around the people who\n know a lot more than I do. This can mean a pub crawl in London, late nights at the\n TechEd speaker hotel, or the Tangosol party at JavaOne.\n\nOver time I have actually become used to attending conferences not so much for the\n session content but for the networking and hallway or bar discussions. Apparently\n I am not alone because Bruce Eckel created a “conference” just for people like me.\n This “conference” includes only people who are usually speakers at other conferences\n (or easily could be) and it features a very loosely structured format that is reminiscent\n of a dinner or beer discussion. Because of the selective audience the noise level\n at the event is very low and marketing is completely absent because we have nothing\n to sell to each other. For the past 3 years I have always left a little smarter and\n quite inspired. \n Since the audience for such an event is naturally limited this year I want to share\n some of the topics we discussed. Each of the topics is probably worth its own blog\n entry so I will expand the ones I find particularly interesting. But here a few sound\n bytes to wet your appetite. Note that these notes were derived from discussion groups\n rather than prepared talks so that the \"conclusions\" take a smaller role than the\n exchange of experiences and opinions.\n\n## Attributes / Annotations\n\nMetadata in the code (aka Attributes / Annotations) is the shiny new toy in both the\n C# and Java world. Having worked with C# for a while I can’t help myself but to be\n amused and irritated by the fact that Sun used to tell Java developers that all this\n “syntactic sugar” is superfluous, just to completely change their mind once the competition\n moved in. So either they were lying all along or they have no spine. But anyway, before\n I start to sound like [Hani](http://www.jroller.com/page/fate/), let me share some of our discussions around metadata annotations.\n\nOne of the problems with every new tool is that it is hard to determine what the boundaries\n of its best usage are unless you actually cross those boundaries. I think many people\n went through that experience with attributes not too long ago. In order to shorten\n the learning cycle we exchanged some experiences and opinions on proper use of attributes.\n\n- Attributes (I’ll avoid the \"attributes / annotations\" going forward – I don’t get\n paid by the word…) are usually a good replacement for naming conventions. For example,\n nUnit replaced the old testXYZ naming convention with a [TestCase] attribute. However,\n be careful to consider subtle differences. For example, if you use `SetUp` as the naming convention for a setup method, only one method in each class can have\n this name (assuming an empty list of parameters). If you use an attribute, you need\n to decide whether you want to allow multiple methods to be marked this way and, if\n so, what the desired behavior is. Moreover, if you allow inheritance do you want to\n automatically “inherit” the attribute to the child class? You might end up building\n some of the compiler infrastructure yourself in order to get the behavior. So be careful\n if the behavior associated with the attribute is more complex than “for every method\n with the attribute do X”.\n- Another common usage of attributes is to replace a marker interface, i.e. an interface\n that does not contain any methods. These interfaces are often used to categorize classes\n or specify inherent properties (e.g. is the class reentrant, serializable etc). This\n seems to be the sweet spot for attributes because it keeps us from abusing a language\n construct such as interfaces. However, we have to keep in mind that with attributes\n we cannot declare a method that takes only a `ISerializable` . Instead, we would have to perform the equivalent check explicitly and at run-time,\n reducing the amount of validation the compiler can do for us.\n- The general sentiment was that using attributes to specify external configuration\n is a slippery slope. For example, I have been often frustrated by the attribute-happy\n .asmx Web service configuration. What if I want to change the `SoapAction` name at deployment time? Attributes are part of the source code after all and require\n access to the source code. Microsoft Indigo is fixing this aspect by allowing all\n configuration to be specified either as attributes, as code, or in a config file.\n Another example of external configuration is provided by the EJB 3.0 configuration\n of schema and table name of an entity: `@Entity @Table(name=”…” schema=”…”)` . This is information that is typically intended to be changed at deployment time\n and it will be cumbersome (at the least) to have to edit source code and rebuild the\n application. On the other hand though, for very simple apps this usage can be more\n explicit (and hence more readable) than an external configuration file. So as in most\n cases, the world is not exactly black and white.\n- A less obvious but very effective use of attributes is to assist external tools in\n the creation of documentation or diagrams. This can go far beyond the usual JavaDoc\n approach of using comment blocks with specific notations. For example, I could come\n up with a set of attributes to designate “critical classes” that should be shown in\n a high-level dependency diagram. Classes that do not carry this attribute might only\n be included in a more detailed diagram. Or I could assign colors to my classes so\n the software can create color coded diagrams. In either scenario, the attribute is\n used by an external program, but it denotes a property of the class itself, e.g. whether\n the class is “important”.\n\nIn summary people appreciated attributes because they can make properties of a class\n (or the application of a cross-cutting concern) a lot more visible in the class source.\n However, caution should be exercised that the attributed truly denotes a property\n of the class itself and not a property or relationship external to the class (e.g.\n the table or Web service configuration described above).\n\n## Model Extraction / Visualization\n\nI have previously declared my [love for visualizations](11_dependencies.html). I am quite convinced that many people do not have enough of a “big picture” of\n what their system looks like. Visualizations are very powerful tools, especially considering\n humans’ ability to quickly recognize patterns in complex diagrams. The gist of model\n extraction is to use modeling not to generate source code but to use source code (or\n a running system) to extract a model. Essentially you define a metamodel (yeah, big\n word, I know) and then apply the actual system against this metamodel. For example,\n a directed graph is a very popular metamodel and can be used very well to depict dependencies,\n message flows and the like. Once you have this model you can use it for validations,\n visualizations etc.\n\nOne of the shortcomings of most visualizations is that they tend not to scale very\n well, exemplified by the proverbial 3’ by 4’ database schema poster that is entirely\n useless. I think that assisted model generation using attributes can help in this\n category. You can actively decorate your source code with metadata to distinguish\n “important” from “unimportant” elements etc. This type of decoration (using attributes\n in the source) are particularly useful because they convey intent (i.e. the “why”)\n as opposed to the “how”. The latter is (well, should be) quite obvious in the source\n code itself and does not require any further explanation (reminding me of my favorite\n source comment `// sets variable x to zero`).\n\nAnother way to convey relevant information without running our of paper is to use\n *polymetric diagrams*, i.e., diagrams that convey more than one metric in a single picture. The most famous\n example of a polymetric chart is likely the [map of napoleon’s Russia campaign](http://www.edwardtufte.com/tufte/posters). [Erik](http://www.doernenburg.com/) showed us Code Crawler which provides a host of visualizations that use position, size, shading and shape\n to convey multiple aspects of your source code. Unfortunately, is runs only on SmallTalk\n but an Eclipse plug-in allows for conversion from Java code. Erik showed some very\n cool visualizations that show class lines of code, the number of methods and the number\n of fields in a single diagram.\n\n## Mixing Architectural Styles\n\nI hosted the topic of mixing multiple architectural styles in a single application.\n This topic is close to my heart since I spend a lot of time with workflow engines,\n messaging, rules engines, document transformations and other non-OO stuff. Each of\n these tools and engines is based on a different architectural style and often uses\n a different programming languages (e.g., BPEL, XSLT, etc). Some of the topics we discussed\n included when an application layer becomes complex enough to warrant a new style and\n whether this style should be based on the core language (e.g. Java or X#) or whether\n a whole new language should be created. When creating a new language, you have further\n choices, such as whether to use a \"standard\" language or create your own domain language.\n As this post is already getting lengthy (and slow in coming along) I’ll postpone a\n more detailed discussion to a separate post. Plus, this topic makes a great segue\n to the next item.\n\n## Domain Specific Languages (DSL's)\n\nMany of us believe that DSLs are the “next big thing” on the horizon for enterprise\n software development. Some very early tools are starting to appear, such as [JetBrains' MPS](http://www.jetbrains.com/mps/) or [Microsoft's Visual Studio 2005 DSL Tools](http://lab.msdn.microsoft.com/teamsystem/workshop/dsltools/default.aspx). Other tools, like the [Intentional Programming](http://intentsoft.com/) work continue to be shrouded in mystery.\n\n## Goal-based Design\n\nEinar hosted a great session on goal-based design used primarily in the context of\n agent systems. Agent-based systems consists of a collection of collaborating agents,\n which in unison accomplish an overall goal. The individual agents' behavior is based\n on their belief (aka state), their goal (a completeness condition) and their plan\n (an algorithm of sorts). Agent-based systems can be very effective at breaking down\n complex goals into small, manageable tasks. Agent-based systems are generally associated\n more with the academic fringe, with many [commercial tools](http://www.agent-software.com) being quite expensive and mostly limited to military applications. However, some\n [open source alternatives](http://jade.tilab.com) seem to be appearing.\n\nTo me two discussion items stood out particularly:\n\n- Agent-based design tends to focus on the interaction between components over (or in\n addition to) the internal structure of them. Modeling the interaction between agents\n is quite analogous to the interaction between loosely coupled services, which is one\n of my current areas of interest. During this discussion I learned that the much cursed [UML 2.0](http://www.uml.org/#UML2.0) spec added semantics to the [sequence diagram](http://www-128.ibm.com/developerworks/rational/library/3101.html) so that it can now express interaction rules as opposed to just a single instance\n of many possible possible interactions. The notation might take some getting used\n to but then [Petri Nets](http://www.informatik.uni-hamburg.de/TGI/PetriNets/) are not everybody's favorite either.\n- I like the idea that goal-based design represents overall goals in the system design.\n Einar's book showed an example of a book store with the overall goal of \"ensure books\n are in stock\". I feel that these kind of goals are too often stated somewhere in a\n project charter but too rarely make it into actual designs. In this example, the overall\n goal broke down into the sub-goals \"reorder books\", \"track outgoing books\" and \"track\n incoming books\". I have to admit I have not thought this 100% through but the approach\n seems appealing.\n\nI guess I have to buy the bullet and get the (pricey) [book](http://www.cs.rmit.edu.au/agents/prometheus/) that Einar was reading. The book does not as much talk about what agents are but\n focuses instead on a methodology to design agent-based systems.\n\n*Share:*\n\n*Follow:* [Follow @ghohpe](https://twitter.com/ghohpe) [SUBSCRIBE TO FEED](../ramblings.rss)\n\n*More On:* [EVENTS](/ramblings_events.html) [DESIGN](/ramblings_design.html) [VISUALIZATION](/ramblings_visualization.html) [ALL RAMBLINGS](../ramblings.html)\n\nGregor is a cloud architect and author. He is a frequent speaker on asynchronous messaging,\n IT strategy, and cloud.", "znaku_textu": 13323, "slov": 2087, "odkazu": 57, "kodovani": "windows-1250", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 15:36:30", "sha256": "16e7ffc419d6d5994c0c831af4b6fb8ac96c3f81514c1c5fc59f18fd2e9b1590", "hloubka": 4, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://architectelevator.com/blog", "http://www.martinfowler.com/", "http://www.jroller.com/page/fate/", "http://www.edwardtufte.com/tufte/posters", "http://www.doernenburg.com/", "http://www.jetbrains.com/mps/", "http://lab.msdn.microsoft.com/teamsystem/workshop/dsltools/default.aspx", "http://intentsoft.com/", "http://www.agent-software.com/", "http://jade.tilab.com/", "http://www.uml.org/", "http://www-128.ibm.com/developerworks/rational/library/3101.html", "http://www.informatik.uni-hamburg.de/TGI/PetriNets/", "http://www.cs.rmit.edu.au/agents/prometheus/", "https://twitter.com/share", "https://twitter.com/ghohpe", "https://leanpub.com/37things"]} {"url": "http://www.enterpriseintegrationpatterns.com/ramblings/35_pdc.html", "titulek": "Googlesoft - Enterprise Integration Patterns", "h1": "Googlesoft", "popis": "(Professional) life can be a little ironic sometimes", "klicova_slova": "", "kanonicka": "", "jazyk": "en_US", "robots_meta": "", "og": {"og:type": "article", "og:locale": "en_US", "og:site_name": "Enterprise Integration Patterns", "og:title": "Googlesoft", "og:description": "(Professional) life can be a little ironic sometimes", "og:url": "https://www.enterpriseintegrationpatterns.com/ramblings/35_pdc.html"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Googlesoft"}, {"uroven": 2, "text": "Google Meets Microsoft"}, {"uroven": 2, "text": "Connected Systems Panel"}, {"uroven": 2, "text": "ARC Symposium"}, {"uroven": 2, "text": "Day 3 Keynote"}, {"uroven": 2, "text": "C# 3.0"}, {"uroven": 2, "text": "Don on WWF & Indigo"}, {"uroven": 2, "text": "Other Stuff"}], "markdown": "Gregor's Ramblings\n\n---\n\n# Googlesoft\n\nSeptember 18 2005\n\nFind my posts on IT strategy, enterprise architecture, and digital transformation\n at [ArchitectElevator.com](https://architectelevator.com/blog).\n\n## Google Meets Microsoft\n\nMy biggest fear of joining Google was that I would be living somewhat on \"borrowed\n time\" as far as my participation in Microsoft events is concerned. I have a lot of\n good friends at Microsoft and I am a still an MVP so I am not yet ready to give up\n my connections into that universe for quite some time to come. However, being on\n stage at a Microsoft event with a Google badge (and with a straight face) is a bit\n harder. Therefore, I was particularly happy to be invited to this year’s PDC, [Microsoft’s Professional Developer Conference](http://msdn.microsoft.com/events/pdc/). It is ironic that in my years working as a consultant with a lot of Microsoft technologies\n I never got to go to PDC. Now that I work for Google I am here as a speaker :-) The\n part I like the best: I work for Google, speak at a Microsoft event, have an IBM laptop\n and just e-mailed a friend at Sun. Peace on earth :-)\n\nOne of the equally exciting and frustrating things at PDC is that when you get there\n people shower you with a whole set of new acronyms that get you excited about all\n the new stuff and disappointed when you find out that most it are new names for the\n same old stuff. We already knew that Longhorn is now Vista but I had missed the baptizing\n of Indigo into WCF – The Windows Communication Foundation. According to Don, the acronym\n WTF was considered but was reserved for the Windows Transaction Foundation...\n\nConferences are all about getting free stuff and talking to interesting people. I\n had a good start with Jim Newkirk taking me to the Addison-Wesley author dinner, which\n I crashed. Hey, my book has enough C# code to deserve a free dinner :-) Plus it was\n nice to hang out with Don Box, Anders Hejlsberg, David Chappell, Jim Newkirk and many\n others again. Speaking of publishers, [The Best Software Writing](http://amazon.com/o/asin/1590595009/ref=nosim/enterpriseint-20) was [slashdotted](http://books.slashdot.org/article.pl?sid=05/09/15/1640233) on Thursday. I am particularly proud that my [Starbucks article](18_starbucks.html) was pointed out specifically with a link to Google search. Now how appropriate is\n that? And I still think Starbucks really should buy me free drinks! After all Google\n buys me free lunches :-) While I am digression already let me put one more item on\n the stack. The conference Starbucks happened to use the (sequential) invoice number\n for correlation instead of the name. First of all I could not help but notice and\n secondly it demonstrated how much out of sequence the drinks really come when people\n order hot and cold drinks or multiples of the same kind. And who says going to Starbucks\n is not inspiring?\n\nThe free dinner was followed by free rides at the usual Universal Studios party. Actually,\n I can no longer imagine an amusement park without free food and 10,000 geeks. I am\n not sure whether that is a good thing or a bad thing :-)\n\nBy the way, PDC 2005 is the “other year” PDC, i.e. many of the previewed technologies\n more or less were talked about already at PDC 2 years ago. However, I did not mind\n at all because I did not attend last time and it seems that this time hand waving\n was largely replaced with actual demos. Regardless, many products are still a year\n or two away from GA. So while many things we got to see are very cool, patience is\n the order of the day.\n\n## Connected Systems Panel\n\nPDC has very few external speakers because most presentations are previews of upcoming\n products, delivered by the responsible product managers or lead architects. I was\n lucky enough to participate in a panel on [The Art and Practice of Connected Systems](http://commnet.microsoftpdc.com/content/sessionview.aspx?TopicID=0400a210-d20e-47c4-a250-0752ee17b3d6), part of the architecture symposium organized by Devhawk Harry Pierson. Connected\n Systems are a big item in Microsoft’s developer strategy, ranging from the Indigo\n (WCF) to the Windows Workflow Services.\n\nThe panel was the last agenda item on Friday so attendance was a bit lower than most\n of the sessions. I hope the people who did come got something out of it and also found\n it entertaining. Steve Swartz makes for a great anchor on panels and did not disappoint\n this time. I also enjoyed meeting and interacting with David Ing from Meridian Software.\n He even gave me upfront kudos in his [blog](http://www.from9till2.com/default.aspx?date=2005-08-12)! Sadly, a quick (Google) search did not reveal too much blog coverage of the panel.\n I personally like panels (both as panelist and attendee) because it provides real-time\n interaction and ad-hoc opportunity for disagreement and discussion. I see them as\n a nice contrast to scripted and polished presentations.\n\n## ARC Symposium\n\nThe symposium itself was based on a skid that covered topics ranging from SOA to Agile\n to process and domain modeling. We got to see Harry Pierson, Brenton Webster, Arvindra\n Sehmi, Beat Schwegler, Simon Guest and a few other usual suspects on stage. It seems\n that you can only be an architect if you have a funny accent... Skids are always a\n bit tricky but this one worked out pretty well. Here some of my take-aways. The symposium\n lasted 3 hours so obviously my list is a little condensed...\n\n- Creating business processes that cross organizational boundaries is difficult. But\n pretending these boundaries do not exist makes it only worse!\n- How to factor services? First, create a service model. This is what the CSI (Connected\n Systems Initiative) really is. It gives you a consistent way to build loosely coupled\n systems, consisting of base capabilities and a process on top. The process should\n be able to change without having to change the capabilities.\n- Contract first development: A contract is not just a WSDL document, but an abstract\n domain model. Don’t try to model the whole enterprise but start in an area that is\n small but useful. XML documents are based on composition. Conceptual contract first\n over schema first. Decoupling the service implementation from the public interface\n by using an adapter allows different transports to be configured for the core service\n functionality.\n- The symposium included the demo of a tool to allocate logical services to the physical\n infrastructure. During the mapping constraints are verified, such as requiring SSL/Port\n 443. Quite pretty, but the obvious question is again: how will this approach scale?\n What if I have 100 modules and 300 servers? Would I rather have a command language\n than a 5’ x 6’ diagram that I am trying to fit onto a 19” screen?\n- One of the key themes was modeling. One slide highlighted the relationships between\n many different kinds of models, such as process models, interaction models, operational\n models etc. I need to get a hold of that slide.\n\n## Day 3 Keynote\n\nSince I did not arrive until Wednesday night I missed the major keynotes on Tuesday\n and Wednesday. I made it to Thursday's key note about 15 minutes late. It was mostly\n a sequence of brief feature intros. For example, they showed a pretty nice programming\n model to manage clusters / grids. Also, Microsoft is \n making shell scripting a first class citizen with the new OO command line language\n [Monad](http://www.microsoft.com/downloads/details.aspx?FamilyID=2ac59b30-5a44-4782-b0b7-79fe2efd1280&DisplayLang=en). Furthermore, some time in the not too distant future we will see a transactional\n file system that allows multiple file creation and writes in a single commit. The\n overhead is supposed to be in the single digit %. Sweet.\n\nIIS 7 was also demo'd. In short, IIS has been dislodged from the OS and is now modular\n and can be run and configured much more like a service. Whoohoo! Here my take-aways:\n\n- Activation Services -- equally anticipated and overdue.\n- Configurable with XML, no restart, no metabase!\n- Modularized: for example AnonymousAuthenticationModule, DefaultDocumentModule, StaticFileModule,\n DirectoryListingModule. You can remove these if not needed or replace them with your\n own modules. Very cool.\n\n## C# 3.0\n\nOne of the most popular sessions was Anders' intro into C# 3.0 During the *rerun* of the session the overflow room overflowed! A good way to describe the difference\n between TechEd and PDS is that at TechEd US Anders talked about the new C# 2.0 features\n whereas at PDC he talked about C# 3.0 features. Now keep in mind that C# 2.0 has not\n even be released as part of the official platform...\n\nMaybe I got suckered in by the Universal party and the free food but my impression\n is that in terms of language and platform design Microsoft is the big innovator these\n days. You might not immediately fall in love with all the proposed C# 3.0 features\n (language bloat is a definite concern) but the amount of innovation going into the\n C# language design is very impressive. 3.0 will provide lambda expressions, extension\n methods (I just wished for those in Java the other day), local variable type inference,\n object initializers, anonymous types, query expressions, and expression trees. Whew!\n\nTo me two parts of C# 3.0 are truly outstanding:\n\n- The CLR 2.0 already supports all the necessary features (generics, anonymous methods),\n so C# 3.0 does not require any CLR changes. Essentially, Linq is the “Cherry” that\n Don and Anders put on top of C# 2.0.\n- The language features that are being added to the language appear to play very well\n together and form a consistent set. It would be hard to imagine taking any of the\n features away. For example, type inference seems like syntactic sugar until you realize\n that it is essential when using anonymous types. How else would you declare a typed\n variable of a type that is anonymous? Of course anonymous types really help the readability\n of select statements. So it all makes sense.\n\n**Lambda Expressions**\n\nLambda expressions are a way to pass code to a function similar to delegates or anonymous\n methods. In that sense they are a logical evolution of delegates. Having type inference\n helps tremendously because the types can be inferred from context instead of having\n to be specified in the language. The operator “ => “ is read as “for which”.\n\n**Linq**\n\nThe killer app for all the new features is certainly [Linq](http://msdn.microsoft.com/netframework/future/linq/). Linq allows queries against a variety of data sources to be performed without having\n to embed nasty SQL or XPATH expressions into string variables. Instead it uses the\n native language syntax to express the queries and result sets. Very cool.\n\n## Don on WWF & Indigo\n\nSad but true... not many smart people are funny and not many funny people are exceptionally\n smart. Don Box is the definite exception to this rule, so it is always great to hear\n him talk. This time he showed off a major \"Frankenbuild\" of WWF (the workflow foundation,\n formerly known as WinOE), Indigo and what not to show how process models and services\n can interact to create more transparent distributed systems. According to him \"this\n stuff does not run anywhere except in Dharma’s bedroom\" but it was still quite interesting\n and entertaining. As such, Don reminded us to take this all with a grain of salt and\n emphasized that “There are no tenets of workflow enabled services”. :-) Instead of\n a complete transcript of the talk (I am sure you can find that somewhere) I captured\n a few highlights and noteworthy quotes, especially the ones that are funny and insightful.\n\n- “Exchanging messages gives you deniability: I did not know he is such a FORTRAN hack”.\n This is a rarely mentioned benefit of abstraction.\n- \"The Web services union rules required us to make a calculator service.\"\n- \"Our world is not constrained by stack frames.\"\n- \"Go ahead, live the dream. Put a DLL out there.\"\n\nThe core message (no pun intended) of the talk can be summarized as follows:\n\n- Workflow-enabled services are (potentially long-running) transparent processes.\n - Long-running = longer than one (ACID) transaction\n - Transparent = not an opaque DLL, I have visibility into the definition and the running\n state\n- Transparency is necessary but not sufficient to enable post-deployment modification\n of process definitions.\n\nThe big picture looks like this: messages come into an endpoint (according to Don\n \"You now know Indigo\" ). The message starts a XAML-based workflow that uses the WWF\n execution engine. The workflow simplifies asynchronous and concurrent execution, as\n opposed to having to deal with threads and all that. \n The main activities of the workflow are send and receive. Keep in mind that the service\n provider can be both sender and receiver. Do not mix up sender and receiver with client\n and server. (of course anyone who reads my ramblings has [known this for a long time](26_symmetry.html)). The basic MEP of request-reply has made this distinction so confusing.\n\nCool feature: As part of the transparency goal state transitions inside the work flow\n are published as an RSS feed. You can also inspect the XAML for the service by appending\n `?rawContent` to the URL. You can then open this process definition in the workflow designer and\n edit the XAML post-deployment.\n\n## Other Stuff\n\nJochen Seemann gave another demo of the DSL tools in VS 2005. Early stage still but\n very interesting. I'll save this for another post.\n\nLuckily we had Friday afternoon off and got to see a little bit of LA. Every time\n I roam around \"downtown\" LA I feel like there is no way Blade Runner could have taken\n place in any other city. Fittingly enough the last part of the movie was filmed in\n the [Bradbury Building](http://www.brmovie.com/Locations/Bradbury_Building.htm) in Downtown LA. [Pip](http://mikeroberts.thoughtworks.net/blog/) and I then braved the LA traffic and crawled to the Getty and Santa Monica. All in\n all a nice way to finish up the conference.\n\n*Share:*\n\n*Follow:* [Follow @ghohpe](https://twitter.com/ghohpe) [SUBSCRIBE TO FEED](../ramblings.rss)\n\n*More On:* [EVENTS](/ramblings_events.html) [ALL RAMBLINGS](../ramblings.html)\n\nGregor is a cloud architect and author. He is a frequent speaker on asynchronous messaging,\n IT strategy, and cloud.", "znaku_textu": 14240, "slov": 2319, "odkazu": 54, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 15:36:29", "sha256": "b94a46dc34cd63aeaf5302b61e796f3b99eaf9a1f90dea352254b38aeaa2eb01", "hloubka": 4, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://architectelevator.com/blog", "http://msdn.microsoft.com/events/pdc/", "http://amazon.com/o/asin/1590595009/ref=nosim/enterpriseint-20", "http://books.slashdot.org/article.pl", "http://commnet.microsoftpdc.com/content/sessionview.aspx?TopicID=0400a210-d20e-47c4-a250-0752ee17b3d6", "http://www.from9till2.com/default.aspx?date=2005-08-12", "http://www.microsoft.com/downloads/details.aspx?DisplayLang=en&FamilyID=2ac59b30-5a44-4782-b0b7-79fe2efd1280", "http://msdn.microsoft.com/netframework/future/linq/", "http://www.brmovie.com/Locations/Bradbury_Building.htm", "http://mikeroberts.thoughtworks.net/blog/", "https://twitter.com/share", "https://twitter.com/ghohpe", "https://leanpub.com/37things"]} {"url": "http://www.enterpriseintegrationpatterns.com/ramblings/36_podcast.html", "titulek": "Ramblings Now In Audio - Enterprise Integration Patterns", "h1": "Ramblings Now In Audio", "popis": "Two years ago you were not cool if you did not have a blog", "klicova_slova": "", "kanonicka": "", "jazyk": "en_US", "robots_meta": "", "og": {"og:type": "article", "og:locale": "en_US", "og:site_name": "Enterprise Integration Patterns", "og:title": "Ramblings Now In Audio", "og:description": "Two years ago you were not cool if you did not have a blog", "og:url": "https://www.enterpriseintegrationpatterns.com/ramblings/36_podcast.html"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Ramblings Now In Audio"}], "markdown": "Gregor's Ramblings\n\n---\n\n# Ramblings Now In Audio\n\nOctober 12, 2005\n\nFind my posts on IT strategy, enterprise architecture, and digital transformation\n at [ArchitectElevator.com](https://architectelevator.com/blog).\n\nWhen Mario asked me at the Microsoft MVP Summit to do a PodCast on the layering pattern\n I at first thought that this would be slightly boring. However, once we started talking\n we realized that there are a lot of nuances and related topics to layering that are\n quite worthwhile discussing. While thinking out loud what we would talk about I told\n Mario to better start recording because good ideas were popping out left and right.\n In the end this talk about \"layering\" included snippets on model generation, interaction\n models, architectural styles, process engines, SOA, state transfer, and (gasp!) Microsoft\n Access. [Check it out.](http://www.mariocardinal.com/podcast/Show/0007.html)\n\nThink that listening to layering is old news and everybody should know anyway? Well,\n look through some large business apps and see how well layered they are. Oops... so\n what happened? Who wrote all that crappy code that drags SQL data types into the UI\n layer? No one, of course. Maybe the janitor came in at night and did that... Right!\n (remember the Dilbert where the garbage man finds a mistake in Dilbert's math? When\n Dilbert asks him how come that he is a garbage man his response is that the real question\n is how come that Dilbert gets to be an engineer...). The fact is: bad code is not\n actually written but rather happens. Therefore, I think it rarely hurts to reinforce\n some of the well-known ideas and remind people of the nuances and motivations. So\n have a peek -- it is shorter than your typical soap opera episode. And no commercials...\n\n*Share:*\n\n*Follow:* [Follow @ghohpe](https://twitter.com/ghohpe) [SUBSCRIBE TO FEED](../ramblings.rss)\n\n*More On:* [GREGOR](/ramblings_gregor.html) [ALL RAMBLINGS](../ramblings.html)\n\nGregor is a cloud architect and author. He is a frequent speaker on asynchronous messaging,\n IT strategy, and cloud.", "znaku_textu": 2051, "slov": 310, "odkazu": 44, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 15:36:28", "sha256": "bcdd18a66130b201a99706c1e316722a647782f0cb8d673f6fcea501d0c347a2", "hloubka": 4, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://architectelevator.com/blog", "http://www.mariocardinal.com/podcast/Show/0007.html", "https://twitter.com/share", "https://twitter.com/ghohpe", "https://leanpub.com/37things"]} {"url": "http://www.enterpriseintegrationpatterns.com/ramblings/37_oopsla.html", "titulek": "Revenge of the Nerds - OOPSLA 2005 - Enterprise Integration Patterns", "h1": "Revenge of the Nerds - OOPSLA 2005", "popis": "Remember the people from high school who had strange hobbies and could never get a date? Well, they all grew up and they are running a conference now, the Object-Oriented Programming, Systems, Languages, and Applications conference, OOPSLA in short", "klicova_slova": "", "kanonicka": "", "jazyk": "en_US", "robots_meta": "", "og": {"og:type": "article", "og:locale": "en_US", "og:site_name": "Enterprise Integration Patterns", "og:title": "Revenge of the Nerds - OOPSLA 2005", "og:description": "Remember the people from high school who had strange hobbies and could never get a date? Well, they all grew up and they are running a conference now, the Object-Oriented Programming, Systems, Languages, and Applications conference, OOPSLA in short", "og:url": "https://www.enterpriseintegrationpatterns.com/ramblings/37_oopsla.html"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Revenge of the Nerds - OOPSLA 2005"}, {"uroven": 2, "text": "Revenge of the Nerds"}, {"uroven": 2, "text": "Do Acronyms With \"O\" Have Bad Karma?"}, {"uroven": 2, "text": "Echoes: Structured Design and Modern Software Practices"}, {"uroven": 2, "text": "Brian Foote: I have Nothing to Declare but my Genius"}, {"uroven": 2, "text": "Grady Booch"}, {"uroven": 2, "text": "Kevlin Henney"}, {"uroven": 2, "text": "Jerry Sussman"}], "markdown": "Gregor's Ramblings\n\n---\n\n# Revenge of the Nerds - OOPSLA 2005\n\nOctober 23, 2005\n\nFind my posts on IT strategy, enterprise architecture, and digital transformation\n at [ArchitectElevator.com](https://architectelevator.com/blog).\n\n## Revenge of the Nerds\n\nOOPSLA is not your typical developer conference. At first sight it can appear utterly\n disorganized and a little clique-ish. Dick Gabriel even created an unofficial schedule\n because the official one was nearly impossible to figure out. And the venue was\n a 60ies relic of a \"resort\" that would be more suitable as a backdrop for a teenage\n slasher movie than a professional conference. Alas, attendees came from pretty far\n away and for good reasons.\n\nIf I was marketing OOPSLA my slogan would be \"If you are too smart to go to JavaOne\n or TechEd, you should come to OOPSLA!\" OOPSLA offers an eclectic mix of tutorials,\n often taught by leading authors and thought leaders in their respective fields, and\n presentations from academia that can appear a bit on the intellectual fringe. In combination,\n though, it makes for an inspiring mix of pragmatic information and intellectual stimulation.\n Care to learn more about new programming languages and models, such as programming\n by example? Learn more about dynamic languages? It's all right here, including GoF\n fellow Ralph Johnson getting box lunches for the panelists (as seen on the right).\n\n## Do Acronyms With \"O\" Have Bad Karma?\n\nOne observation I could not help but make is the fact that the letter \"O\" fares particularly\n poorly when it comes to acronyms in our industry. First, we had to give up the \"O\"\n in SOAP because SOAP has nothing to do with objects -- more likely the opposite. Subsequently,\n Microsoft killed the \"O\" in all of its workflow related products: XOML became XAML,\n WinOE became WWF. Somehow \"O\"rchestration must have fallen out of favor with the marketing\n department. OOPSLA is in even bigger trouble as it has two O's. It seems that there\n is simply not much left to say about objects these days. Everybody is using it, the\n common patterns are well understood, and language support is fairly abundant. One\n could say that OOPSLA has become the victim of its own success because only a small\n portion of OOPLSA still has something to do with object-oriented design.\n\nThe most interesting discussions on objects seemed to center on two themes. First,\n not everything is an object and object modeling is not the best choice for all problem\n domains. This become more apparent as the SOA buzzword engine actually does draw attention\n to some useful non-OO programming styles such as process modeling, document-based\n interactions, and service composition. In the end it is the same old \"hammer and nail\"\n effect but the object success may have caused a significant amount of inertia that\n makes for a bigger hammer.\n\nInterestingly, though, some talks also focused on areas where objects would be very\n useful but are not utilized. Brian Foote's talk in the Dynamic Language Symposium\n rightly challenged that the whole programming and execution environment should be\n available as objects: \"Why is my source code not an object?\" \"I should be able to\n get the process object and invoke the kill() method\". In fact, SmallTalk let you do\n this.\n\n## Echoes: Structured Design and Modern Software Practices\n\nWhile the title of this panel did not necessarily catch my attention, the all-star\n cast did: Having Ed Yourdon, Larry Constantine, Grady Booch, and Kent Beck amongst\n the panelists suggested an entertaining and insightful debate. And we were not disappointed.\n After all, panels live and die with the wit of the panelists and this one definitely\n lived. Kent Beck's opening remark stating that he reread [Structured Design](http://www.amazon.com/exec/obidos/ASIN/0138544719/enterpriseint-20) to prepare for the panel was a reliable indicator of more good things to come.\n\nMost of the discussion centered on the role of design techniques and modeling languages\n and the way we design software. Structured design, introduced by Constantine and Yourdon\n some 25 years ago was one of the early \"methodologies\" and also included a design\n notation. An interesting theme during the panel focused on how much a methodology\n and notation can help developers come up with good designs. There was also general\n consensus that using any structured design technique is more important than picking\n a specific approach. Structured design had many of the right ingredients to guide\n developers to think about the way they map the problem domain to the solution domain\n even though it did not provide the expressiveness of an object-oriented design. In\n a nice acknowledgment to Constantine and Yourdon 's work , Kent Beck remarked appropriately\n that *\"People who could not do a decent job with structured design went to objects so noone\n would notice.\"*\n\nThe panel was dotted with memorable quotes from some of the more memorable names in\n the history of software engineering:\n\n- \" *Software design is rarely the subject of a lawsuit. Probably because the average juror\n is a chicken farmer with a 6th grade education* \" -- Ed Yourdon\n- *\"The UML is not a modeling language. It is a mess of bits and pieces with no unifying\n consistency.\"* -- Larry Constantine\n- *\"I cannot be held responsible for all the stupid uses of the UML\"* -- Grady Booch\n- *\"Yes, I created one of the first 'waterfall' approaches but I did not create analysis\n paralysis\"* -- Larry Constantine\n- *\"You should aim to produce a system that the users wish they had asked for.\"* -- Kent Beck\n- *\"I blog because I can't get published.\"* -- Grady Booch\n- *\"I have always used intentional programming. I always intended my program to do something\n else.\"* -- Grady Booch\n\n## Brian Foote: I have Nothing to Declare but my Genius\n\nAs the title might suggest, Brian gave a funny and insightful talk as part of the\n Dynamic Language Symposium. My key take-away was Brian's statement that the notion\n of a dynamic language that interacts transparently with the development and run-time\n environment seems to have been ignored in the last decade of language design. Brian\n showed a list of items spanning two slides that should be accessible as objects. This\n includes the run-time environment, such as running processes or the source code. Why\n would you want the source code of your program available as objects from your program?\n This may sound like an idea that only hard core geeks with too much time on their\n hands could find useful, but think again. Refactoring tools have very quickly matured\n from academic ideas to must-have tools (I will not code anything without ReSharper\n or IntelliJ). The key to these tools is the insight that the source window does not\n simply contain a sequence of characters but an abstract syntax tree. Parsing and manipulating\n this tree allows for the real-time underlining and refactoring that we have come to\n love so dearly. Now why couldn't this be part of the language run-time already rather\n than proprietary vendor technology?\n\nMost interestingly, there are a few programming environments that are closer to the\n notion of everything being an object. Oddly these environments tend to use very clunky,\n XML-based languages. We are talking about the tools and languages that live in the\n Web-services / SOA space, such as BPEL and XSL. XSL must be one of the most hated\n languages of recent times, but the fact that XSL source code is an XML document means\n that you can easily modify an XSL \"program\" using XSL. This is something not so easily\n accomplished in Java or C#. Process modeling and execution tools based on BPEL (or\n comparable languages) also do pretty good in terms of making the run-time environment\n available programmatically. For example, most process engines let us enumerate the\n running process instances and interact with them. Once again the programming language\n syntax itself is debatable (and has been debated) but that should not make us ignore\n some of the good ideas that are part of the run-time environment. I think Dragos'\n [Orchestration Patterns](http://www.orchestrationpatterns.com/) might give us some better appreciation for these types of features.\n\n## Grady Booch\n\nGrady gave an update on his work on the [Handbook of Software Architecture](http://www.booch.com/architecture/index.jsp). After helping create a unified modeling language (despite all the bickering about\n UML, most people will agree that the creation of a unified modeling and diagramming\n language was a good thing) Grady is taking things up one level and wants to document\n what makes good architecture. I was excited to see that he views patterns as a key\n element in this endeavor. Of course I was ecstatic when Grady showed the list of his\n favorite patterns books and it included our book!!\n\n## Kevlin Henney\n\nKevlin gave a nice tutorial on the design of programming interfaces. Unfortunately,\n my paper notes are in the office so I'll have to write about it in more detail later.\n I wish the Google book scanning project, which always draws grief from publishers,\n included my notes :-) The good news is that some time next year Kevlin's and Frank\n Buschmann's new book on patterns languages will come out.\n\n## Jerry Sussman\n\nYou cannot complete your OOPSLA experience without attending one talk that is completely\n over your head. For me, this was Jerry Sussman's talk with the illustrious title [Why Programming is a Good Medium for Expressing Poorly Understood and Sloppily Formulated\n Ideas](https://www.oopsla.org/2005/ShowEvent87cf.html). I was very interested in the abstract of the talk, which promised to focus on the\n expressiveness of computer programs and how the program can help us better understand\n and express our ideas. Sadly, the talk used overhead foils that were projected via\n a camera, which made it harder to read the slides. The AV setup aside, the talk still\n went pretty clearly over my head. Luckily there's a [video available](https://dl.acm.org/doi/abs/10.1145/1094855.1094860) (also with difficult to read slides).\n\n*Share:*\n\n*Follow:* [Follow @ghohpe](https://twitter.com/ghohpe) [SUBSCRIBE TO FEED](../ramblings.rss)\n\n*More On:* [EVENTS](/ramblings_events.html) [ALL RAMBLINGS](../ramblings.html)\n\nGregor is a cloud architect and author. He is a frequent speaker on asynchronous messaging,\n IT strategy, and cloud.", "znaku_textu": 10300, "slov": 1647, "odkazu": 48, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 15:36:27", "sha256": "daf3a108d53ac402b238f15eb4d4c6b66523d1140c55ebb6ec5c78e5bac1e8c8", "hloubka": 4, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://architectelevator.com/blog", "http://www.amazon.com/exec/obidos/ASIN/0138544719/enterpriseint-20", "http://www.orchestrationpatterns.com/", "http://www.booch.com/architecture/index.jsp", "https://www.oopsla.org/2005/ShowEvent87cf.html", "https://dl.acm.org/doi/abs/10.1145/1094855.1094860", "https://twitter.com/share", "https://twitter.com/ghohpe", "https://leanpub.com/37things"]} {"url": "http://www.enterpriseintegrationpatterns.com/ramblings/38_interaction.html", "titulek": "Of Boxes and Lines - Enterprise Integration Patterns", "h1": "Of Boxes and Lines", "popis": "After joining the big G I put particular emphasis on staying in touch with the ", "klicova_slova": "", "kanonicka": "", "jazyk": "en_US", "robots_meta": "", "og": {"og:type": "article", "og:locale": "en_US", "og:site_name": "Enterprise Integration Patterns", "og:title": "Of Boxes and Lines", "og:description": "After joining the big G I put particular emphasis on staying in touch with the ", "og:url": "https://www.enterpriseintegrationpatterns.com/ramblings/38_interaction.html"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Of Boxes and Lines"}, {"uroven": 2, "text": "Raising a Structure"}, {"uroven": 2, "text": "Interaction gets Attention"}, {"uroven": 2, "text": "Of Boxes and Lines"}, {"uroven": 2, "text": "Even the OMG took Notice"}, {"uroven": 2, "text": "Patterns"}], "markdown": "Gregor's Ramblings\n\n---\n\n# Of Boxes and Lines\n\nFeb 25, 2006\n\nFind my posts on IT strategy, enterprise architecture, and digital transformation\n at [ArchitectElevator.com](https://architectelevator.com/blog).\n\nWow, it's been a while since my last post... I guess typing on an airplane is more\n productive than on a shuttle bus bouncing up and down 101. Winter also tends to be\n busy because slide material for the developer conferences in Spring are due. I am\n going to be teaching 2 sessions at [SD West](http:/www.sdexpo.com) and 3 at [TheServerSide Java Symposium](http://javasymposium.techtarget.com) in March. And I was able to squeeze in an article for [ObjektSpektrum](http://www.sigs-datacom.de/sd/publications/os/2006/02/index.htm) in Germany. But let's talk about messaging...\n\n## Raising a Structure\n\nTraditional application design using object-oriented methods tends to focus on the\n structural aspects of the solution over the modes of interaction. This is no surprise\n considering that object-orientation provides for rich compositional constructs such\n as inheritance and aggregation. Classes tend to be rather fine-grained so that the\n structure composed of the individual elements is often the key design artifact. Lifecycle\n control is a close second, manifesting itself in creational patterns such as Factories\n and Singletons and structural concepts such as aggregation vs composition (which one\n was the solid diamond again?). The specific type of interaction between two individual\n components appears to be less interesting than the nature of the relationship between\n them. This observation also explains why UML Class Diagrams tend to be more popular\n then Collaboration Diagrams. Because I tend to rant about people who portray their\n own opinions as facts, let me substantiate my claim with some hard, scientific evidence!\n In the second edition of [UML Distilled](http://www.martinfowler.com/books.html#uml) (yeah, I still live in the \"UML<2\" world) Martin Fowler dedicates two chapters with\n a combined 46 pages to Class Diagrams while he speeds through Interaction Diagrams\n (combining Sequence and Collaboration Diagrams) in a mere 12 pages. Now who would\n want to argue with Martin Fowler? His opinions *are* facts :-)\n\n## Interaction gets Attention\n\nThe focus on structure over interaction is generally quite appropriate for most systems\n that exist in a single memory space and are under the control of a single development\n team. Method calls are pretty cheap and any issues related to the interaction of two\n objects are easily resolved. Still, traditional object-oriented design does not ignore\n interaction altogether. Some of the classic design patterns presented in GOF do concern\n themselves with the way objects interact. For example, the Mediator \"encapsulates\n how a set of objects interact\" while the Observer \"notifies all dependent objects\n of a state change\". Both patterns elevate the interaction between objects from their\n shadow life to become first class players in the object model. These patterns give\n us a hint that looking at the way components interact can be more interesting than\n might at first appear.\n\nIn distributed systems the significance of interaction increases dramatically:\n\n- Most obviously, the cost of interaction between components goes up significantly as\n data has to be serialized, sent over the wire, and put back together at the other\n end. Add a little routing, some transformation into the mix and soon the cost of a\n method call increased by a few orders of magnitude. Suddenly it matters a lot whether\n one component sends a single message or a series of small messages...\n- Distributed systems also introduce uncertainty into the mix. For example, if one component\n does not receive acknowledgment for a message it sent, more than one possible scenarios\n might have occurred. The request message might have been lost, the other component\n might have failed, or the response message might have been lost. Suddenly, even simple\n interactions have to deal with these eventualities. For example, is the sender allowed\n (or expected) to resend the request? How many times? How long does the sender have\n to wait? What happens if the resending is also unsuccessful? These questions rarely\n come up in the world of synchronous, object-oriented applications.\n- Additionally, loose coupling brings variability and lack of control. When dealing\n with a remote entity (assume for example a B2B scenario) the two communicating entities\n are typically developed by separate parties. Therefore, nailing down the rules of\n the interaction is important to make sure (potentially high value) transactions can\n be executed predictably and reliably.\n\nAt the same time structural aspects can move into the background as distributed\n systems often do not provide for rich structural mechanisms such as inheritance, polymorphism\n and the like. For example, this shift of attention from structure to interaction is\n at the heart of many of the debates on service-oriented computing. Service-oriented\n architectures have rather simple composition rules but pay close attention to loosely\n coupled interaction between systems.\n\n## Of Boxes and Lines\n\nRalf Westphal summarized this shift nicely when he concluded that we \"turn the lines\n into boxes\". He was referring to the usual diagram that depicts each component as\n a box and each interaction as a line between two boxes. Now that we are more interested\n in the interaction we turn the line (i.e. the interaction) into a first class citizen,\n i.e. a box. This metaphor works especially well in the world of messaging where we\n have a message *object* that represents a portion of the interaction. So even an OO class diagram would depict\n that message class (or object) as a box.\n\n## Even the OMG took Notice\n\nIt is a popular hobby to poke fun at the OMG. A friend of mine, who was involved in\n the CORBA spec work, once claimed that the \"OMG takes over good work and ruins it\".\n Hmmm... that sounds a little like the acquisition strategy used by Sun, so maybe misery\n loves company. Oh well, this is not the bile blog so let's focus on the bright side\n of life.\n\nThe weakness of sequence diagrams have long been the number one target in the UML\n specification. Sequence diagrams only depict *one possible* way for components to interact. This leaves a lot to be desired from the standpoint\n of a precise specification (\"execute that, my friend!\"). I am not sure whether it\n was this oft cited weakness or the realization that interaction is stepping in the\n foreground, but UML 2.0 introduces a series of additions to the good old sequence\n diagram. These extensions allow us to specify the actual rules of the interaction.For\n example, we now have interaction operators such as *option*, *parallel*, *weak sequencing* and so on. Sadly, the notation is rather hideous. Could this be the reason that \"UML\n 2.0 in a Nutshell\" banishes interaction diagrams to Chapter 10?\n\n## Patterns\n\nOf course, where there is something new, there are always a pattern or two to be found\n :-) While the p word has been abused pretty badly (apparently it helps sell stuff\n -- hey this would make good geek trivia \"what do patterns and sex have in common?\")\n focus on a new part of the application design does warrant a new set of patterns.\n Commonly occurring problems when designing interactions are inherently different from\n the problems you encounter when designing structures. If this is true, we should be\n seeing some new pattern languages around interaction and conversations. And I can\n back up my claim once again. Marlon Dumas and Arthur ter Hofstede (with the help\n of SAP) maintain a very nice collection of interaction patterns at [www.serviceinteraction.com](http://www.serviceinteraction.com). And reliable sources also tell me that we might be seeing integration patterns focused\n on conversations soon. To give you a hint, my talk at SD West is titled \"Conversations\n between Loosely Coupled Services\".\n\n*Share:*\n\n*Follow:* [Follow @ghohpe](https://twitter.com/ghohpe) [SUBSCRIBE TO FEED](../ramblings.rss)\n\n*More On:* [DESIGN](/ramblings_design.html) [ALL RAMBLINGS](../ramblings.html)\n\nGregor is a cloud architect and author. He is a frequent speaker on asynchronous messaging,\n IT strategy, and cloud.", "znaku_textu": 8263, "slov": 1279, "odkazu": 48, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 15:36:26", "sha256": "a0cb3c2a6bf6078236fccbfc91dadd1bc969af9afa24a2d84878466964063dc6", "hloubka": 4, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://architectelevator.com/blog", "http://javasymposium.techtarget.com/", "http://www.sigs-datacom.de/sd/publications/os/2006/02/index.htm", "http://www.martinfowler.com/books.html", "http://www.serviceinteraction.com/", "https://twitter.com/share", "https://twitter.com/ghohpe", "https://leanpub.com/37things"]} {"url": "http://www.enterpriseintegrationpatterns.com/ramblings/39_namingchannels.html", "titulek": "What is in a Name? - Enterprise Integration Patterns", "h1": "What is in a Name?", "popis": "Computer science is known as the field where every problem can be solved by just one more level of indirection", "klicova_slova": "", "kanonicka": "", "jazyk": "en_US", "robots_meta": "", "og": {"og:type": "article", "og:locale": "en_US", "og:site_name": "Enterprise Integration Patterns", "og:title": "What is in a Name?", "og:description": "Computer science is known as the field where every problem can be solved by just one more level of indirection", "og:url": "https://www.enterpriseintegrationpatterns.com/ramblings/39_namingchannels.html"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "What is in a Name?"}, {"uroven": 2, "text": "A New Element"}, {"uroven": 2, "text": "More Than Just a Name"}, {"uroven": 2, "text": "Shifting Responsibilities"}, {"uroven": 2, "text": "The Catch"}], "markdown": "Gregor's Ramblings\n\n---\n\n# What is in a Name?\n\nMar 5, 2006\n\nFind my posts on IT strategy, enterprise architecture, and digital transformation\n at [ArchitectElevator.com](https://architectelevator.com/blog).\n\n## A New Element\n\nMessaging-based interaction introduces two new elements, a channel and a message.\n Despite their simplicity these new elements open up options and force new decisions.\n A deceivingly simple question is “how should the channel be named?” When one method\n called another directly there was no intermediate element and therefore no decision\n to make. Now that we afforded ourselves the new level of indirection we have to name\n it appropriately. Choices, choices...\n\n## More Than Just a Name\n\nIn order to find an appropriate name for a channel we need to first determine what\n the channel should represent. Even though a channel can be a purely logical construct,\n it is the key mechanism that couples sender and receiver. Both sender and receiver\n of messages have to agree on a common channel name in order to exchange messages.\n\nLet's look at a few obvious choices:\n\n- A very simple approach assigns each component its own channel. For example, a component\n that deals with credit card validations could be called the `CreditService` and react to messages sent on a channel also named `CreditService` . If any component needs something related to credit it would send a message to that\n channel. This simple approach does give us a level of indirection at the implementation\n level -- we could replace one credit service implementation with another without anyone\n noticing since the channel name would not change. The semantics of the interaction,\n however, are not much decoupled. The caller still has to know which component provides\n the functionality it requires, much like it does in a direct one-to-one interaction\n between components.\n- To reduce the dependency on a specific service we could name the channel analogous\n to a method name, i.e. according to the operation that is to be performed. For example,\n if the service provided an operation that can verify a credit card supplied by a customer\n we might simply name the channel `VerifyCreditCard` . It is important to keep in mind that these channel operations are not tied to a\n specific class as is the case in object-oriented approaches. As a result, the caller\n no longer has to know which component is able to service this type of request, increasing\n the level of abstraction somewhat. Service-oriented computing generally follows this\n approach with the only caveat that the operation is typically tied to a specific service\n (interface).\n- Despite the introduction of the channel the semantics of the interaction between the\n two components still smells a little like a call stack-based system: One component\n sends a specific request (“check this credit card”) and expects a response (“card\n good” or “card bad”). But don't despair, we have not yet exhausted the creative possibilities\n of the channel semantics. Both examples above assume that the requesting component\n knows that a credit card has to be verified. Could we lift this burden from the “caller”\n altogether so that the components are truly decoupled? We can take the decoupling\n one step further by changing the channel name (and the associated semantics) to `OrderReceived` . This simple change in name signifies a fairly significant shift in responsibility.\n The message on the channel no longer represents an instruction but rather an event,\n a notification that something happened. How a receiver responds to this event is completely\n hidden to the sender. We also no longer assume that there is a single recipient for\n the event -- the event might be processed by more than one subscriber. For example,\n a new order not only has to go through credit checking but inventory might also have\n to be verified. Again, the assumptions between the communicating parties have been\n reduced. As a result, EDA is often considered to be more loosely coupled than SOA.\n\n## Shifting Responsibilities\n\nCommunicating through events as opposed to commands indicates a subtle but important\n shift of responsibility. It allows components to be decoupled to the extent that the\n “caller” is no longer aware of what function is executed next nor which component\n is executing it. Another equally important shift of responsibility between caller\n and callee is that of keeping state.\n\nIn a system that is based on queries and commands state is usually kept in one application\n that is considered the “master” for the data. When another application needs to reference\n that data it sends a query to the owning application and waits for the response before\n it continues processing. For example, when an order management system needs to fulfill\n an order it queries the customer management systems for the customer’s address so\n it can instruct the shipping application to send the shipment to that address.\n\nEvent-driven systems work differently, almost to the inverse. Systems do not query\n other systems for information but instead keep their own copy of the required data\n and listen to updates as they occur. In our example this would mean that the shipping\n system keeps its own copy of the customer’s address so when an order arrives it can\n use that address to label the shipment without having to query the customer management\n system. While replicating data this way might seem dangerous it also has advantages.\n The customer management system simply broadcasts changes to the data without having\n to know who all keeps a copy. Because the customer management is never queried for\n address data it never becomes a bottleneck even as the system grows and the demands\n for address data multiply.\n\nThe principle behind the shift in responsibility is once again tied to the concept\n of coupling. In a loosely coupled interaction a source of data should not be required\n to keep state at the convenience of its communication partners. By shifting the burden\n of keeping state to the consumer the component is can be completely oblivious to the\n needs of the data consumers – the key ingredient into loose coupling. The shift away\n from the query-response pattern of interaction means that many components have to\n act as event [Aggregators](../Aggregator.html): they listen to events from multiple sources, keep the relevant state and combine\n information from multiple events into new events. For example, the shipping system\n effectively combines address change events and order events into request for shipment\n to a specific address.\n\n## The Catch\n\nIt sounds like event-based systems surpass command-and-control systems across the\n architectural \"score card\". They are more loosely coupled and allow free composition\n of individual components into a larger system, thus aiding reuse and flexibility.\n Additionally, they can provide a natural mapping of a problem space into the system\n model. After all, many interactions in the real world are based on events. So are\n non-event-based systems for losers? Not quite -- as always, there is not free lunch,\n at least outside Google. Dynamic, loosely coupled systems are inherently difficult\n to design and debug (see [Good Composers are Far and Few in Between](19_composing.html)). So we need to make sure to have the right tools at hand (for example, see [Visualizing Dependencies](11_dependencies.html)) and to gain experience by making mistakes early in a small scale.\n\n*Share:*\n\n*Follow:* [Follow @ghohpe](https://twitter.com/ghohpe) [SUBSCRIBE TO FEED](../ramblings.rss)\n\n*More On:* [DESIGN](/ramblings_design.html) [MESSAGING](/ramblings_messaging.html) [ALL RAMBLINGS](../ramblings.html)\n\nGregor is a cloud architect and author. He is a frequent speaker on asynchronous messaging,\n IT strategy, and cloud.", "znaku_textu": 7760, "slov": 1221, "odkazu": 46, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 15:36:25", "sha256": "3028dde92ddc4c45dfe483527483e3e876386384164a76ff16a45d1d1c4095a9", "hloubka": 4, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://architectelevator.com/blog", "https://twitter.com/share", "https://twitter.com/ghohpe", "https://leanpub.com/37things"]} {"url": "http://www.enterpriseintegrationpatterns.com/ramblings/40_marchnan.html", "titulek": "March is Not a Number - Enterprise Integration Patterns", "h1": "March is Not a Number", "popis": "A lot of discussion these days relates to DSL's (Domain Specific Languages) that allow business models and rules to expressed in a more readable fashion in the source code", "klicova_slova": "", "kanonicka": "", "jazyk": "en_US", "robots_meta": "", "og": {"og:type": "article", "og:locale": "en_US", "og:site_name": "Enterprise Integration Patterns", "og:title": "March is Not a Number", "og:description": "A lot of discussion these days relates to DSL's (Domain Specific Languages) that allow business models and rules to expressed in a more readable fashion in the source code", "og:url": "https://www.enterpriseintegrationpatterns.com/ramblings/40_marchnan.html"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "March is Not a Number"}, {"uroven": 2, "text": "Domain Languages"}, {"uroven": 2, "text": "Domain-driven Design"}, {"uroven": 2, "text": "Easy to Write vs. Easy to Read"}, {"uroven": 2, "text": "Time and Money"}, {"uroven": 2, "text": "Explicit and Implicit Concepts"}, {"uroven": 2, "text": "Make Your Code Worth Reading"}], "markdown": "Gregor's Ramblings\n\n---\n\n# March is Not a Number\n\nApril 16, 2006\n\nFind my posts on IT strategy, enterprise architecture, and digital transformation\n at [ArchitectElevator.com](https://architectelevator.com/blog).\n\n## Domain Languages\n\nDomain specific languages promise to be the next big step in software development\n productivity, significantly reducing the gap between the business domain and the implementation\n domain. As with most things in our field, the idea of domain languages is not exactly\n new. Many of the unix tools such as tcl, lex, yacc can justly be called domain specific\n languages (for text processing, scanner generation, etc). Unfortunately, in the past\n creating a new language was generally quite difficult and working with them also mostly\n meant giving up modern IDE amenities such as syntax-highlighting, interactive debugging,\n and auto-complete. Now many people are now working on making creating and working\n with these languages easier so that it becomes a viable option to create a (or multiple)\n new languages for each project.\n\nOne major distinction in DSLs are *embedded* DSLs vs. *external* DSLs. In short, external DSLs define a new language from ground up. For example XSLT\n is an external language for XML document transformation. Embedded DSLs are built inside\n a \"host\" language such as Java or Ruby. There are quite a few discussions about what\n makes a programming language a good host language. For now I'll simply refer to a\n [higher authority](http://martinfowler.com/articles/languageWorkbench.html).\n\n## Domain-driven Design\n\nOnce we talk about things that start with *domain* [Eric Evans](http://domainlanguage.com/ddd/index.html) (the author, not the porn star) is never far away, at least conceptually. Eric has\n written an excellent [book](http://domaindrivendesign.org/book/) on domain-driven design. Once again, I defer to the higher authority for all the\n gory details (Eric's site features an excellent [summary of the patterns](http://domaindrivendesign.org/book/PatternSummariesUnderCreativeCommons.doc) in his book). For my purposes let it suffice to say that the goal is to develop an\n expressive model of the problem domain that can be closely reflected in the resulting\n source code. Coding against this model results in code that uses essentially the same\n language the domain experts use (albeit with some inevitable syntax clutter).\n\n## Easy to Write vs. Easy to Read\n\nOne of the main motivations behind these techniques and approaches is to write code\n that is more expressive as to the problem it is trying to solve. Ever wondered what\n a piece of code is actually doing? Or, worse yet, can you tell a business person where\n in the code base a specific piece of business logic is \"buried\"? A lot has been said\n about \"code that is worth reading\" to quote Ward Cunningham. Along the same lines\n my recent [keynote](../docs/TSS_Keynote_Hohpe.pdf) at [TheServerSide Java Symposium](http://javasymposium.techtarget.com/) (re-)emphasized the notion of \"coding for humans instead of the machine\".\n\nOne of my key realizations in this topic area is that you do not have to go out and\n write a whole new domain language to make headway in achieving this goal. Just thinking\n a bit harder and putting special emphasis on the way your code reads often gets you\n leaps and bounds ahead of hard-to-understand everyday code. And while Java is not\n the best language to host a domain language you can get a whole lot further than you\n would by not trying.\n\nThe essence is a mental shift away from code that is easy to write to code that is\n easy to read. Once you realize that most code is read a lot more often than it is\n written (insert your favorite statistic stating that X% of total software cost results\n from maintenance here) it makes sense to put a bit more effort into code that is nice\n to read. I am not talking about indentation and comments here but about code that\n is actually a pleasure to read because it represents an accurate and elegant representation\n of the problem that is being solved. Source code is such an expressive medium that\n it would be a shame not take more advantage of its capabilities. Let me give you a\n simple example.\n\n## Time and Money\n\nEric Evans developed an open source [Time and Money](http://sourceforge.net/projects/timeandmoney) library that he uses in projects and also in his training classes. I was lucky enough\n to attend one of his workshops and write some code against the library. While it is\n easy to come up with something significantly better than `java.util.Calendar` (e.g. see [JodaTime](http://joda-time.sourceforge.net/)) Eric's library has some nice properties that get to the heart of expressive software.\n\nOne exercise in Eric's tutorial asks us to implement the following business rule:\n payments are due 30 days after the end of the month in which the work was completed.\n Using `java.util.Calendar` one can easily imagine the ugly code that has to wrestle with months that start with\n 0 and years that start with 1900, all of which has rather little to do with the problem\n at hand. Implemented on top of Eric's [Time and Money](http://sourceforge.net/projects/timeandmoney) the code looks like this:\n\n```\nCalendarDate dueDate(CalendarDate workEndDate, int allowableDays) {\n return workEndDate.month().end().plusDays(allowableDays);\n}\n```\n\nThe first observation is surely that the code reads very much like the requirement\n in English: \"from the work's month end add *n* days\". To me, the most noteworthy piece of this nice line of code is the `month()` method. One might find it curious that this method actually returns a `CalendarInterval` instead of a number like `java.util.Calendar` would. But come to think about it, the month of March is not a number, so any expression\n like `3 == date.getMonth()` should seem silly. Instead the month of March is a range of days from March 1st to\n March 31st.\n\n## Explicit and Implicit Concepts\n\nAnother critical observation is that `CalendarDate` actually denotes a date and not a specific point in time like `java.util.Calendar`. Dates do not have hours and minutes and also do not have time zones. The 20th of\n March is simply that, a day in the year, regardless of where on earth you are. In\n contrast, were you using Java `Calendar` you would have to bake in some assumptions to have it represent a date instead of\n a specific point in time. Most implementations do this by fixing the time to 0:00:00\n and selecting a default time zone such as GMT. It gets tricky when these assumptions\n are not explicitly stated. For example, is a method allowed to look at the hours\n or minutes of a `Calendar` that is passed in? Can it assume that they would also be zero? If it sets a different\n value will that be persisted to the database? Code is better off not having to ask\n such questions.\n\nThe Time and Money library does not hide these concepts but instead makes them explicit.\n That means that if you want to convert from a `CalendarDate` to a `java.util.Calendar` you have to specify all assumptions that are made implicitly by `Calendar`, such as the time zone. The code to accomplish this conversion looks like this:\n\n```\nCalendar convertToCalendar(CalendarDate date) {\n return date.asTimeInterval(TimeZone.getDefault()).start().asJavaCalendar();\n}\n```\n\nYou might think: wow, why so much code? But come to think about it, `CalendarDate` is a date, not a point in time. So first you have to convert the day into a time\n interval, e.g. the span of time from midnight on the beginning of the date until midnight\n of the next day. Since we are talking times now we need to introduce the concept of\n time zones. While March 20th is always March 20th when we talk about dates, as soon\n as we start talking about times and time intervals we need to realize that March 20th\n starts a lot earlier in Japan than it does in California. Note that because the concept\n of time zone is critical for this conversion there is no default constructor. You\n have to make it explicit which time zone you want to use, even if you choose the default\n time zone. Lastly, if your convention is to default the time portion of `Calendar` to 0:00:00 you express that by specifying the `start()` of that time interval to be used for the conversion to `Calendar`. Having to re-inject the assumptions might mean more typing but it answers all the\n nagging questions posed above. You can shorten the expression a little:\n\n`return date.startAsTimePoint(TimeZone.getDefault()).asJavaCalendar();`\n\nHere the notion of taking the starting point and converting it to a time point is\n accomplished in a single step. I almost prefer the former option as it makes it more\n explicit what the step-by-step conversion is.\n\n## Make Your Code Worth Reading\n\nI hope this simple example illustrates how a simple piece of business logic can be\n implemented in code such that it truly expresses what the business is asking for.\n No compiler generators, byte code injection, or other magic were needed. All that\n it took was to take the time to really understand the problem domain and to write\n code that reflects this understanding. Now that's what I call code that is worth reading.\n\n*Share:*\n\n*Follow:* [Follow @ghohpe](https://twitter.com/ghohpe) [SUBSCRIBE TO FEED](../ramblings.rss)\n\n*More On:* [DESIGN](/ramblings_design.html) [ALL RAMBLINGS](../ramblings.html)\n\nGregor is a cloud architect and author. He is a frequent speaker on asynchronous messaging,\n IT strategy, and cloud.", "znaku_textu": 9411, "slov": 1511, "odkazu": 51, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 15:36:24", "sha256": "6010ab4727a09c5efd36ad0cd0f525308895f262e774ca28e972ed5414e2222d", "hloubka": 4, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://architectelevator.com/blog", "http://martinfowler.com/articles/languageWorkbench.html", "http://domainlanguage.com/ddd/index.html", "http://domaindrivendesign.org/book/", "http://domaindrivendesign.org/book/PatternSummariesUnderCreativeCommons.doc", "http://javasymposium.techtarget.com/", "http://sourceforge.net/projects/timeandmoney", "http://joda-time.sourceforge.net/", "https://twitter.com/share", "https://twitter.com/ghohpe", "https://leanpub.com/37things"]} {"url": "http://www.enterpriseintegrationpatterns.com/ramblings/41_metrics.html", "titulek": "The Metrics Maid - Enterprise Integration Patterns", "h1": "The Metrics Maid", "popis": "Some of the most hated people in San Francisco must be the meter maids, the DPT people who drive around in golf carts and hand out tickets to anyone who overslept street cleaning or did not have enough quarters for the meter", "klicova_slova": "", "kanonicka": "", "jazyk": "en_US", "robots_meta": "", "og": {"og:type": "article", "og:locale": "en_US", "og:site_name": "Enterprise Integration Patterns", "og:title": "The Metrics Maid", "og:description": "Some of the most hated people in San Francisco must be the meter maids, the DPT people who drive around in golf carts and hand out tickets to anyone who overslept street cleaning or did not have enough quarters for the meter", "og:url": "https://www.enterpriseintegrationpatterns.com/ramblings/41_metrics.html"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "The Metrics Maid"}, {"uroven": 2, "text": "I Got You Covered"}, {"uroven": 2, "text": "May the Source Be With You"}, {"uroven": 2, "text": "Metric Magic"}, {"uroven": 2, "text": "Dangling the Carrot"}, {"uroven": 2, "text": "Recommended Use"}], "markdown": "Gregor's Ramblings\n\n---\n\n# The Metrics Maid\n\nApril 28, 2006\n\nFind my posts on IT strategy, enterprise architecture, and digital transformation\n at [ArchitectElevator.com](https://architectelevator.com/blog).\n\nSome of the most hated people in San Francisco must be the meter maids, the DPT people\n who drive around in golf carts and hand out tickets to anyone who overslept street\n cleaning or did not have enough quarters for the meter. On some projects, the most\n hated people are the metric maids, the people who go around and try to sum up a developer’s\n hard work and intellectual genius in a number between 1 and 10.\n\nMany managers love metrics: “You can’t manage it if you can’t measure it”. I am actually\n a big proponent of extracting and visualizing information from large code bases or\n running systems (see [Visualizing Dependencies](11_dependencies.html)). But when one tries to boil the spectrum between good and evil down to a single\n number we have to be careful as to what this number actually expresses.\n\n## I Got You Covered\n\nA frequently used metric for the quality of code is test coverage, typically expressed\n as a percentage computed by the (executable) lines of code that are hit by test cases\n over the total number of (executable) lines of code. If I have 80% test coverage this\n means that 80 out of 100 lines are being hit by my tests. It is a fairly safe statement\n to claim that a code module with 80% test coverage is better than one with 20% coverage.\n However, is one that has 90% really better than one that has 80%? Are two modules\n with 80% coverage equally “good”?\n We quickly find that a single number cannot do justice to all that is going on in\n a few thousand lines of source code. Still, finding an abstraction is nice so let’s\n see how far we can get with this metric.\n\n## May the Source Be With You\n\nFirst we need to qualify the metric with how it is obtained. 80% coverage obtained\n via fine-grained, automated unit tests probably counts more than 80% coverage obtained\n via coarse regression tests. We need to keep in mind that code coverage counts every\n line that was hit by a test, intentionally or unintentionally. Also, the metric does\n not make any statement whether any test actually verified that the specific line actually\n works correctly. It is a little scary to realize that test cases with no `assert` statements achieve the same coverage as tests with `assert`s. I have seen a few proposals to remedy this problem:\n\nYou might only count lines executed in the class specifically targeted by the unit\n test. For example, if `fooTest` exercises 60 out of 100 lines in `Foo` but also hits 50 lines in `Bar`, the lines in `Bar` do not count towards `Bar`'s test coverage because this test was not intended to test `Bar`. In fact, `Bar` being hit at all might have been the result of insufficient mocking or stubbing of\n the test for `Foo`. Such behavior should not be rewarded.\n\nA particularly interesting technique is *mutation testing*. This class of tools modify the source code (or byte code) in the class under test\n to see whether the change breaks any tests. If no tests break as a result of the random\n change the mutated line does not count as thoroughly unit tested. Ivan Moore wrote\n [Jester](http://jester.sourceforge.net), which performs Java mutation testing. It can produce [nice reports](http://jester.sourceforge.net/jester/acceptancetests/Untested.html) that show what was actually changed and whether the change resulted in a failed test.\n\n## Metric Magic\n\nA while ago we refactored a pretty miserable chunk of code. It took us more than a\n day to extract the meaningful concepts, refactor the code and add meaningful unit\n tests. Being proud of our work we ran a test coverage tool against the class to give\n ourselves a pad on the back about how much better our test coverage was. Sadly, the\n pad on the back was more like a kick in the pants. For one class the test coverage\n crept up by a mere 2 percentage points and for the other one it actually decreased!\n It turned out that the portion of the code that we refactored had actually decent\n test \"coverage\" (as determined by the tool), even though it was very poorly written.\n Rewriting it (and simplifying the logic) reduced the number of lines in this code\n segment, causing the overall percentage of tested code in the class actually to decrease\n because the remaining (still) poorly tested code did not shrink.\n\n## Dangling the Carrot\n\nYou should also be cautious about which metric carrot you want to dangle in front\n of the developers. In [Managing Software Maniacs](http://www.amazon.com/gp/product/0471009970) Ken Whittaker already warned that you should \"reward, never incent\". The biggest\n danger of incentives is that you might just get what you asked for, but not what you\n had in mind. If achieving a certain test coverage goal brings a bonus you have to\n expect developers to have high morals not to come up with a quick scheme to get coverage\n (such as tests without `assert`s). If your developers are really that sophisticated and honest maybe they need no\n incentive at all to do the right thing. A lot can be said about the dangers of incentives\n for developers but it seems that incentives based on metrics are particularly dangerous\n because a simple number can rarely represent the real intent.\n\n## Recommended Use\n\nEven with all these caveats metrics can be quite useful. I frequently use metrics\n in the following situations:\n\n- **Hotspotting** - If I measure [cyclomatic complexity](http://en.wikipedia.org/wiki/Cyclomatic_complexity) across a large code base and most methods come out with a value of 5-10 but a dozen\n or so methods have a value of 20 I should probably have a closer look at the outliers.\n- **Trending** - If I observe the unit test coverage in my system to be around 70% that by itself\n does not mean much -- some people might consider it quite high, others will frown\n upon this number. However, if my coverage used to be 70% a few months ago and it is\n 65% now, that is probably a bad sign. New code that is being checked into the system\n apparently has lower coverage than existing code. There might be a variety of reasons\n for this (maybe the system design calls for the addition of a large number of dumb\n data transfer objects that are not deemed complex enough to warrant tests) but unless\n there is a good explanation you should be concerned.\n- **Verifying assumptions** - I actually run coverage tools most frequently to see whether my coverage matches\n my expectations. Coverage tools such as [Emma](http://emma.sourceforge.net/) create [excellent reports](http://emma.sourceforge.net/coverage_sample_b/_files/2.html) that color code ines that were executed as part of a test vs. those that weren't.\n Again, I do not strive for a certain magic number but a I quickly scan the red lines\n (the ones that were not covered) to see whether I thought they were covered by a test.\n If there is a mismatch between my expectations and the actual line coverage it might\n indicate my misunderstanding of the logic or a test that succeeds without actually\n hitting the functionality I had in mind.\n\nOh, and I forgot one useful application of metrics: during performance review times\n they can be a handy weapon. Who can argue with \"my code has 95% test coverage\"? Just\n make sure your boss does not read this blog...\n\n*Share:*\n\n*Follow:* [Follow @ghohpe](https://twitter.com/ghohpe) [SUBSCRIBE TO FEED](../ramblings.rss)\n\n*More On:* [DESIGN](/ramblings_design.html) [ALL RAMBLINGS](../ramblings.html)\n\nGregor is a cloud architect and author. He is a frequent speaker on asynchronous messaging,\n IT strategy, and cloud.", "znaku_textu": 7610, "slov": 1266, "odkazu": 50, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 15:36:23", "sha256": "f3f5e43fe6f3ecf932e0524e368a0ba897ce960fdd450b22f627426a1d8769df", "hloubka": 4, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://architectelevator.com/blog", "http://jester.sourceforge.net/", "http://jester.sourceforge.net/jester/acceptancetests/Untested.html", "http://www.amazon.com/gp/product/0471009970", "http://en.wikipedia.org/wiki/Cyclomatic_complexity", "http://emma.sourceforge.net/", "http://emma.sourceforge.net/coverage_sample_b/_files/2.html", "https://twitter.com/share", "https://twitter.com/ghohpe", "https://leanpub.com/37things"]} {"url": "http://www.enterpriseintegrationpatterns.com/ramblings/42_eaidsl.html", "titulek": "EAI DSLs - Enterprise Integration Patterns", "h1": "EAI DSLs", "popis": " I am so clever", "klicova_slova": "", "kanonicka": "", "jazyk": "en_US", "robots_meta": "", "og": {"og:type": "article", "og:locale": "en_US", "og:site_name": "Enterprise Integration Patterns", "og:title": "EAI DSLs", "og:description": " I am so clever", "og:url": "https://www.enterpriseintegrationpatterns.com/ramblings/42_eaidsl.html"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "EAI DSLs"}, {"uroven": 2, "text": "Cool Projects"}, {"uroven": 2, "text": "Nostalgia"}, {"uroven": 2, "text": "A Domain Language"}, {"uroven": 2, "text": "Limitations"}, {"uroven": 2, "text": "EAI DSLs"}], "markdown": "Gregor's Ramblings\n\n---\n\n# EAI DSLs\n\nMay 23, 2006\n\nFind my posts on IT strategy, enterprise architecture, and digital transformation\n at [ArchitectElevator.com](https://architectelevator.com/blog).\n\n## Cool Projects\n\nDSLs (Domain Specific Languages) are a hot topics these days. Integration is also\n hot, despite the acronym du jour having evolved from EAI to SOA to EDA to SOA 2.0.\n When pondering the value of buzzword compliant architectures it struck me that a decade\n ago I created an EAI DSL! And I had almost forgotten.\n\nWhen I worked for AMS, my very first programming assignment was to connect from one\n state agency to another one to retrieve data. Classic integration! Now these were\n the days of C and PowerBuilder, and I used a magic tool called [EHLLAPI](http://www.inventu.com/ehllapi.html). This tool allows a program to simulate a user accessing another other system via\n a 3270 terminal. EHLLAPI actually stands for Extended High Level Language Application\n Programming Interface, which is a bit of a euphemism. Essentially, the API provides\n a single method called `hllc`. By passing variations of the ominous parameters to this method one can instruct\n the interface to perform various functions, such as emulating the user hitting a key\n or extracting characters from the 80 by 25 screen.\n\nEHLLAPI is the classic incarnation of [Presentation Integration](http://msdn.microsoft.com/practices/topics/appint/default.aspx?pull=/library/en-us/dnpag/html/archpresentationintegration.asp), more commonly referred to as \"[screen scraping](http://en.wikipedia.org/wiki/Screen_scraping)\". Screen scraping is widely considered the most “uncool” of all integration technologies\n since it is clunky and lacks cool buzzwords -- that is, until HTML became mainstream,\n at which point screen scraping was suddenly elevated to an art form and involved the\n much needed buzz to be taken seriously. Even I could not resist at the time and created\n [InfoGate](http://www.hohpe.com/Gregor/Work/portfolio.html#InfoGate). Of course, now that we live in a 2.0 world, [mashups](http://en.wikipedia.org/wiki/Mashup_(web_application_hybrid)) have surpassed Web screen scraping.\n\nAnyway, I think every project is only as cool as you make it and I thought this was\n a pretty cool one. The undeniable strength of screen scraping is that you can obtain\n automated access to external systems without requiring any changes to that system.\n Often, you can even accomplish it without the owner of the other system knowing about\n it. In our example, all we needed was a simple user ID and password. Of course, it\n would have been easier to just get a data feed from the other agency but that would\n have required a lot of coordination and a pile of paperwork. The going joke was always\n whether the other agency would notice that they had a very productive user who would\n log in and 6 am sharp and would never take a break.\n\n## Nostalgia\n\nLooking back at my old code nostalgia struck me. What kind of code did I write in\n 1994?\n\n```\n /*---------------------------------------------------------------------\n *\tPROGRAM:\tscript.c \n *\n *\tAUTHOR(s):\tGregor Hohpe\n *\n *\tDATE:\t\t11/08/94 \n *\n *\tDESCRIPTION:\n * \n *\tThe external agency interface script compiler.\n *---------------------------------------------------------------------*/ \n```\n\nWell, it doesn't have any unit tests, but at least it is well documented. Maybe the\n writing was on the wall that I wanted to write about integration some day!\n\n## A Domain Language\n\nI recall that in the beginning writing this software was no fun. The API provides\n a single method\n\n[void hllc (int *func, char *data, int *len, int *rc)](http://www.dataconnection.com/sna/sxdocs/hllpg.htm?./hllpg0f.htm)\n\nAaaah... the long gone days of APIs with an `int *function` parameter. Isn't it great to have an interface that never has to change? Hey, why\n not just pass a `void *`? someone passes in the wrong data structure, too bad. That's what protection faults\n are for. Interestingly, [TheServerSide](http://www.theserverside.com) just posted the video for my [Where did All My Beautiful Code Go?](http://www.theserverside.com/news/thread.tss?thread_id=40372) keynote at the TheServerSide Java Symposium. Well, I can attest that it did not go\n here!\n\nTo make matters worse, the biggest weakness of screen scraping is that it is inherently\n brittle. As soon as the user interface changes, chances are that the integration is\n broken. Soon I figured out that if I did not want to spend the rest of my passing\n parameters to `hllc` I better come up with an alternative.\n\nThis alternative came in form of a domain language. I did not so much have the creation\n of a real language on my mind, but having left school recently the Dragon Book left\n me with a certain fascinated for compilers. So I set out to implement the core screen\n scraping functions once in a generic engine and then drive the application through\n a series of scripts, one for each screen to be scraped. Each script would specify\n where on the screen the information could be found and would specify the name of database\n column that should receive this data element. If the screen layout ever changed, all\n I would have to do was edit the script.\n\nArmed with a general idea on how to build a tokenizer, parser, and interpreter I set\n out to define a scripting language that would suit my needs. As I hand rolled the\n all parts of the system, I kept the syntax very simple.\n\n```\n ;---- scrape XYZ screen ----\n LABEL SCREEN_ABC\n \n FIND \"ADDRESS\"\n EXTRACT \"Street\"\n POSITION 653\n EXTRACT \"City\"\n EXTRACT \"State\"\n EXTRACT \"ZIP\"\n \n FIND \"INACT DT\"\n EXTRACT \"InactiveDate\"\n NEXT \n EXTRACT \"Inactive\" \n \n```\n\nThis script could be invoked from the code by its label `SCREEN_ABC`. It would look at the current screen and find the label `ADDRESS`. It would then extract the next field (3270 screens are organized by input fields),\n write it into the database column `Street`, and advance to the next field on the screen. Other commands could skip a field (`NEXT`), or go to an absolute position on the screen (`POSITION`) if necessary. The syntax is trivial: each script line starts with a command or a\n comment indicator. Data types are limited to strings and integers. One might laugh\n at such a simple language syntax but it definitely did the trick and it only took\n less than a day to code up the parser.\n\n## Limitations\n\nSo how does this language stack up? It has a very simple syntax, but encompasses all\n required commands to extract data from a 3270 screen and stick it into a database.\n One thing the script language cannot do is navigate from screen to screen. It turned\n out that logging on and navigating through menus required quite a bit of logic that\n would require control constructs and expressions -- definitely outside of what my\n little parser could handle. So the system used \"C\" for navigation and the domain language\n for scraping. Here are my little lessons I remember (given that I did this 12 years\n ago):\n\n- *Find a consistent set of functionality* . Think about the problem space the language is intended solve. Make sure the boundaries\n are clear and somewhat consistent. In my case the language can extract data from a\n screen. That's it. It has all functions that are needed to scrape (find, position,\n extract etc) but not much else. There are no control constructs, expressions etc.\n- *Keep the syntax simple* . Some people might claim that having a line-based syntax is bad and that not having\n scopes and `if` statements makes the language less useful. Bogus. If you can define the syntax in\n a few sentences or, better yet, by showing a few example lines, you are in good shape.\n- *Language-level error messages* . If the slightest problem results in someone having to understand the source code\n behind the interpreter, the abstraction is not very good. It means that you can live\n in the world of the domain language as long as nothing goes wrong. Experience shows\n that this time tends to be a lot shorter than anticipated. This holds true for both\n compile errors and run-time errors. At a minimum, the user should see a line number\n and a descriptive message for syntax errors.\n- *Angle brackets do not make a language* . Noticed something? My little script was strangely easy to read. I believe the main\n reason is that it predates XML. XML can be convenient because it is easy to parse\n and schema-aware editors can help with IntelliSense-like editing. However, the price\n is often readability. XML is not bad in and by itself but think carefully how much\n those brackets really get you or hurt you (see [XML Abuse](http://www.ddj.com/dept/architect/184414926) ).\n\n## EAI DSLs\n\nI think integration is a great area for the creation of domain languages. For once,\n integration deals with different programming models, and we already find (for better\n or worse) a number of domain languages, such as for transformations (XSL) or orchestrations\n (BPEL). But these languages are still pretty generic and often difficult to deal with.\n Creating simpler, more purpose-built languages could help make integrations a little\n easier.\n\n**Ads by Giggle**\n\nInterface21 - the honest consultants. If we make a mess, we clean it up. Promised!\n\n*Share:*\n\n*Follow:* [Follow @ghohpe](https://twitter.com/ghohpe) [SUBSCRIBE TO FEED](../ramblings.rss)\n\n*More On:* [DESIGN](/ramblings_design.html) [MODELING](/ramblings_modeling.html) [ALL RAMBLINGS](../ramblings.html)\n\nGregor is a cloud architect and author. He is a frequent speaker on asynchronous messaging,\n IT strategy, and cloud.", "znaku_textu": 9322, "slov": 1484, "odkazu": 52, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 15:36:22", "sha256": "8579ef506309485e0fcf935e2664bb8e098e42ebed30f1bf1141d973457d032e", "hloubka": 4, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://architectelevator.com/blog", "http://www.inventu.com/ehllapi.html", "http://msdn.microsoft.com/practices/topics/appint/default.aspx?pull=%2Flibrary%2Fen-us%2Fdnpag%2Fhtml%2Farchpresentationintegration.asp", "http://en.wikipedia.org/wiki/Screen_scraping", "http://www.hohpe.com/Gregor/Work/portfolio.html", "http://en.wikipedia.org/wiki/Mashup_(web_application_hybrid)", "http://www.dataconnection.com/sna/sxdocs/hllpg.htm?.%2Fhllpg0f.htm=", "http://www.theserverside.com/", "http://www.theserverside.com/news/thread.tss?thread_id=40372", "http://www.ddj.com/dept/architect/184414926", "https://twitter.com/share", "https://twitter.com/ghohpe", "https://leanpub.com/37things"]} {"url": "http://www.enterpriseintegrationpatterns.com/ramblings/43_wildpatterns.html", "titulek": "Integration Patterns in the Wild - Enterprise Integration Patterns", "h1": "Integration Patterns in the Wild", "popis": "Hanging out with my intellectual drinking buddies reminded me that our integration patterns have been embraced by a fair number of commercial as well as open source projects", "klicova_slova": "", "kanonicka": "", "jazyk": "en_US", "robots_meta": "", "og": {"og:type": "article", "og:locale": "en_US", "og:site_name": "Enterprise Integration Patterns", "og:title": "Integration Patterns in the Wild", "og:description": "Hanging out with my intellectual drinking buddies reminded me that our integration patterns have been embraced by a fair number of commercial as well as open source projects", "og:url": "https://www.enterpriseintegrationpatterns.com/ramblings/43_wildpatterns.html"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Integration Patterns in the Wild"}, {"uroven": 2, "text": "Service Mix"}, {"uroven": 2, "text": "Mule"}, {"uroven": 2, "text": "Dave Chappell's Enterprise Service Bus Book"}, {"uroven": 2, "text": "Sonic MQ Sample Application"}, {"uroven": 2, "text": "BizTalk Paper"}, {"uroven": 2, "text": "Visio Stencils"}, {"uroven": 2, "text": "Handbook on Architecture"}, {"uroven": 2, "text": "Patternshare.org"}, {"uroven": 2, "text": "Integration Patters on the Run"}], "markdown": "Gregor's Ramblings\n\n---\n\n# Integration Patterns in the Wild\n\nJuly 20, 2006\n\nFind my posts on IT strategy, enterprise architecture, and digital transformation\n at [ArchitectElevator.com](https://architectelevator.com/blog).\n\nI just returned from an exciting speaking tour with talks in San Francisco (Burton\n Catalyst), Antwerpen (SpringOne), and Barcelona (TheServerSide Java Symposium Europe).\n After 5 talks in 3 cities, stays in 6 cities, and segments by car, train, and 4 different\n airlines it feels good to be back home.\n\nSpeaking at conferences is a great opportunity to catch up with what is going on in\n the community, usually over a pint of beer. Hanging out with Bruce Snyder, James Strachan,\n [Ross Mason](http://static.flickr.com/73/201239832_7f13a81dd1.jpg), [John Davies](http://static.flickr.com/67/201239798_c84cca7bbf.jpg), and others reminded me that our [integration patterns](../toc.html) have been embraced by a fair number of commercial as well as open source projects.\n In my eyes this is really the best indicator of success for a pattern language (and\n the best indicator of happiness for the author). Latin – a dead language used mostly\n by doctors to sound more knowledgeable – is not a good model for a pattern language.\n You want a language that is alive and actually used by a broad group of people. Talking\n to a few folks who did embrace our language motivated me to take a quick survey of\n the places where our patterns pop up.\n\n## Service Mix\n\nQuite a while ago I blogged about my experiments [implementing the patterns in our book as executable components](16_patternscomponents.html). At the time I concluded that it was interesting (and fun) to be able to quickly\n compose a running messaging system using the vocabulary defined in the book: I wired\n a Splitter to a Router, followed by an Aggregator, and used a Wire Tap to log the\n results. While patterns themselves are not executable components, there is nothing\n wrong with developing components whose essence is a pattern, rendered onto a specific\n platform.\n\nWhile my toolkit is largely of educational value, the guys from LogicBlaze took things\n a step further. Apache [ServiceMix](http://servicemix.org) is *an Enterprise Service Bus (ESB) that combines the functionality of a Service Oriented\n Architecture (SOA) and an Event Driven Architecture (EDA) to create an agile, enterprise\n ESB*. The framework supplies a few sets of [preconfigured JBI components](http://servicemix.org/site/components.html). One of them implements a [set of patterns from our book](http://servicemix.org/site/servicemix-eip.html). You'll find a Content-based Router, a Wire Tap, a Splitter, and many more. The components\n are configured via XML files. For example, a [Content-based Router](../ContentBasedRouter.html)can be configured using the following configuration:\n\n```\n\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n```\n\nThe configuration specifies multiple potential routing destinations and an XPath expression\n that determines when to use this destination. The last destination has an optional\n XPath predicate. If it is not specified, the destination becomes the default destination.\n In the above example messages that have a single item are routed to a specific endpoint\n while all other messages are routed to a service. We should try and implement the\n coffee shop example that I built from my toolkit using these components.\n\n## Mule\n\nAnother popular open source ESB is [Mule](http://mule.codehaus.org). Mule champion Ross Mason (as seen on the right) realized early on that using a standard\n vocabulary to explain the [Mule Architecture](http://mule.codehaus.org/Architecture+Guide) makes a lot of sense, especially for an open source product. The spirit of open source\n is to share experience in an open and accessible way very much like patterns do. So\n he chose to highlight Mule's architectural properties through our pattern language:\n you'll find Channels, Transactional Endpoints, Transformers, Routers and so on. Of\n course it helps that this vocabulary is shared with the common definition of an Enterprise\n Service Bus (ESB). As it turns out that this is not complete coincidence either...\n\n## Dave Chappell's Enterprise Service Bus Book\n\nWhen Dave set out to write a book that finally explains what an ESB really is (well,\n let's say it is the most serious attempt up to that point) he knew that patterns are\n a great tool to explain architectural principles in a technology neutral way. This\n is particularly relevant for an ESB, which uses largely existing technologies, but\n composes those technologies into a cohesive architectural style. Soon it became clear\n that [ESB – the book](http://amazon.com/o/asin/0596006756/ref=nosim/enterpriseint-20) should list patterns to highlight the main architectural features. The book not only\n defines a verbal pattern language on top of our language but also adopted the notion\n of a visual language, analogous to our icons. One of the nicest features of the book\n is the tear-out card at the back of the book that describes the visual pattern language.\n Maybe we should add something like that to our book.\n\n## Sonic MQ Sample Application\n\nBut the connection between our book and [Sonic](http://www.sonicsoftware.com) does not stop there. Rumor has it that the new service pack release 7.0.1 will include\n our [Loan Broker](../ComposedMessagingExample.html) example. The [ThinkTecture](http://www.thinktecture.com) guys used the same example for the Microsoft [Indigo](http://msdn.microsoft.com/webservices/indigo) (now WCF) design reviews. A typo in one of my e-mails motivated Ross to consider\n writing a Lone broker example that implements a dating service.\n\n## BizTalk Paper\n\nA little closer to home we have the whitepaper [Integration Patterns with BizTalk 2004](http://www.eaipatterns.com/docs/integrationpatterns_biztalk.pdf) that explains how to implement some of the key patterns on top of the BizTalk platform.\n Once again, the ever popular Loan Broker serves as the example application.\n\n## Visio Stencils\n\nI believe the earliest adopter of our pattern language was Matthew Oskowis, who developed\n a [Visio](..\\downloads.html) stencil for our icons. Each stencil also contains the pattern text and the page number.\n Quite fancy!\n\n## Handbook on Architecture\n\nAs described in my [rambling about Oopsla 2005](37_oopsla.html) Grady Booch is planning to use patterns in his work on the architecture handbook\n and included our book in his list of defining patterns books. I am very proud :-)\n\n## Patternshare.org\n\nDuring his time with the [Microsoft Patterns and Practices Group](http://msdn.microsoft.com/patterns) Ward Cunningham created [patternshare.org](http://www.patternshare.org), a site that compiles patterns from multiple authors. The purpose is to make it easier\n to find a pattern and also to provide stable URLs to reference patterns. The site\n currently hosts pattern summaries by Martin Fowler, Eric Evans, our integration patterns\n and others. All content is available under the [Creative Commons](http://creativecommons.org/) license, which in essence allows free reuse as long a the source is referenced.\n\n## Integration Patters on the Run\n\nUnfortunately, the collaboration is not always as friendly and collaborative as the\n aforementioned examples. It is my goal to own (and read or at least peruse) every\n pertinent book in the field of EAI, messaging, SOA, etc. Sometimes I am surprised\n to come across work that \"borrows\" significantly from our work without us ever having\n been contacted by the \"authors\". I don't want to mention the specific books here (my\n motto is \"buy from the source!\") but there are two books in particular that contain\n a chapter each about integration patterns, adopting our icons and pattern descriptions.\n I think these works are largely a result of some authors still not embracing the spirit\n of the pattern community. Pattern authors have a sincere motivation to share knowledge\n and promote the community as a whole. We talk about new book projects, share review\n drafts and bounce ideas back and forth. This benefits the works, the community, and\n the authors. It always feels odd to see a book that touches on our patterns without\n the authors having taken advantage of this pattern author community. Sadly, it is\n also often reflected in the quality of the respective publication.\n\nLuckily the friendly collaboration far outweighs the pattern poaching so I can only\n encourage people to share their work openly. You'll meet great people, not to mention\n the satisfaction you receive that your work actually has an impact and makes developers'\n lives at least a little easier and more enjoyable.\n\n*Share:*\n\n*Follow:* [Follow @ghohpe](https://twitter.com/ghohpe) [SUBSCRIBE TO FEED](../ramblings.rss)\n\n*More On:* [WRITING](/ramblings_writing.html) [PATTERNS](/ramblings_patterns.html) [INTEGRATION](/ramblings_integration.html) [ALL RAMBLINGS](../ramblings.html)\n\nGregor is a cloud architect and author. He is a frequent speaker on asynchronous messaging,\n IT strategy, and cloud.", "znaku_textu": 9434, "slov": 1351, "odkazu": 64, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 15:36:21", "sha256": "9878df9e4d24080b4af20e6b04f8fdefa3eb052758d3723599395cb203a8d6c9", "hloubka": 4, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://architectelevator.com/blog", "http://static.flickr.com/73/201239832_7f13a81dd1.jpg", "http://static.flickr.com/67/201239798_c84cca7bbf.jpg", "http://servicemix.org/", "http://servicemix.org/site/components.html", "http://servicemix.org/site/servicemix-eip.html", "http://mule.codehaus.org/", "http://mule.codehaus.org/Architecture+Guide", "http://amazon.com/o/asin/0596006756/ref=nosim/enterpriseint-20", "http://www.sonicsoftware.com/", "http://www.thinktecture.com/", "http://msdn.microsoft.com/webservices/indigo", "http://www.eaipatterns.com/docs/integrationpatterns_biztalk.pdf", "http://msdn.microsoft.com/patterns", "http://www.patternshare.org/", "http://creativecommons.org/", "https://twitter.com/share", "https://twitter.com/ghohpe", "https://leanpub.com/37things"]} {"url": "http://www.enterpriseintegrationpatterns.com/ramblings/44_dagstuhl.html", "titulek": "Dagstuhl Seminar - Enterprise Integration Patterns", "h1": "Dagstuhl Seminar", "popis": " I just returned from a trip to Germany to attend a workshop on The Role of Business Processes in Service Oriented Architecture", "klicova_slova": "", "kanonicka": "", "jazyk": "en_US", "robots_meta": "", "og": {"og:type": "article", "og:locale": "en_US", "og:site_name": "Enterprise Integration Patterns", "og:title": "Dagstuhl Seminar", "og:description": " I just returned from a trip to Germany to attend a workshop on The Role of Business Processes in Service Oriented Architecture", "og:url": "https://www.enterpriseintegrationpatterns.com/ramblings/44_dagstuhl.html"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Dagstuhl Seminar"}, {"uroven": 2, "text": "SCA"}, {"uroven": 2, "text": "BPEL Engines"}, {"uroven": 2, "text": "BPEL4PPEL"}, {"uroven": 2, "text": "Open Workflow Nets"}, {"uroven": 2, "text": "Conversation Patterns"}, {"uroven": 2, "text": "Heading Home"}], "markdown": "Gregor's Ramblings\n\n---\n\n# Dagstuhl Seminar\n\nAug 20, 2006\n\nFind my posts on IT strategy, enterprise architecture, and digital transformation\n at [ArchitectElevator.com](https://architectelevator.com/blog).\n\nI just returned from a trip to Germany to attend a workshop on [The Role of Business Processes in Service Oriented Architectures](http://www.dagstuhl.de/programm/kalender/semhp/?semid=28468). Besides a guaranteed top score in [buzzword bingo](http://en.wikipedia.org/wiki/Buzzword_bingo) the workshop provided a unique opportunity to connect thought leaders from academia\n and industry over the course of a week. The attendee roster sported the usual industry\n heavyweights, i.e., Microsoft, IBM, SAP, making me proud to add Google to the list.\n The workshop format gave participants a chance to present their current work, followed\n by numerous ad-hoc workshops and discussions in larger and smaller groups.\n\nArriving at the event Sunday evening, I quickly realized that this would become an\n interesting week. How could it not if I already had a few beers with Satish Thatte\n (the \"father\" of XLANG and a co-creator of WS-BPEL), Sanjiva Weerawarana (co-author\n of WSDL and WS-BPEL), Frank Leymann (\"father\" of WSFL and co-creator of BPEL), and\n many other SOA and BPM authorities before the workshop even formally started. Want\n to know why \"port type\" is called just that? Well, I can simply put Sanjiva on the\n spot. Is BPEL too low level? I am sure Satish has an opinion. Choreography vs. Orchestration?\n Just ring the bell and let Frank and Kohei battled this one out.\n\nIt is also nice to be back in Germany. The conference venue is a veritable castle,\n of course equipped with wireless Internet access and a well stocked library that operates\n on the honor system 24 hours a day. They also \"rent\" bikes (they are actually available\n for free) without one having to sign a 3 page release form containing only sentences\n starting with \"whereas\". Beer is freely (OK, readily) available on location -- you\n simply grab a bottle and mark it down on your weekly consumption sheet. At the end\n of the week you get to compare scores with your intellectual drinking buddies. Oh,\n and the best part: beer is 1 Euro per bottle.\n\nThe workshop is not a conference in your traditional sense where hundreds of people\n pay a thousand Dollars or so to listen to a stream of more or less interesting monologues\n by more or less well known people. The workshop had a series of short presentations,\n followed by many ad-hoc discussions, a panel or two, and a lot of dinner table conversations.\n The density of information being passed around was truly mind boggling. I am trying\n here to summarize some of my take-aways.\n\n## SCA\n\nDieter Koenig gave an update on the role of BPEL in [SCA (Service Component Architecture)](http://www-128.ibm.com/developerworks/library/specification/ws-sca/). SCA focuses on the assembly of individual services into larger applications. It\n defines (amongst other things) a common format that allows the configuration of a\n module for deployment, by specifying properties and resolving references. Components\n that are composed into modules can be custom programs, BPEL processes or anything\n else that conforms to the interface specification. One interesting question came up,\n question the necessity of yet another level of indirection when BPEL already has the\n notion of partner links and roles, which allow processes to be hooked into other services\n at deployment time. The conclusion was that in case of a BPEL component being deployed\n in the context of SCA the tools should generate the SCA spec from the BPEL process\n template so that the double level of indirection is transparent to the component developer\n and the (human) assembler.\n\n## BPEL Engines\n\nSanjiva alerted me to the fact that FiveSight's PXE BPEL Engine, which was open sourced by Intalio is now part of the [Apache ODE](http://incubator.apache.org/projects/ode.html) project. The goal is to merge the multiple BPEL implementations that live under the\n Apache umbrella into a single one. The good news is that we are converging towards\n a single \"standard\" open source BPEL implementation. The question how long the transition\n will take. [According to Intalio](http://www.intalio.com/news/intalio-pxe-moved-into-apache-ode-trunk/) major progress has been made.\n\n## BPEL4PPEL\n\nGerhard Pfau and Matthias Kloppmann presented on [BPEL for People](http://www-128.ibm.com/developerworks/webservices/library/specification/ws-bpel4people). The highlight to me was the list of Interaction Patterns (see [Slide 4](http://kathrin.dagstuhl.de/files/Materials/06/06291/06291.PfauGerhard.Slides.pdf)). It catalogs different roles humans play in an automated process and describes the\n interactions the humans have as part of each role. For example, humans participate\n in a task, they usually query for a list of available tasks, claim a task and later\n complete the task (or return it into the pool). My suggestion was to make the acronym\n cooler by calling it BPEL4PPL or BPEL4PPEL. This would also have the nice side-effect\n to convert the last hard core Microsofties who insist on pronouncing BPEL as \"beppel\"\n instead of \"bee-pel\" (unless they want to go the route of \"beppel for peppel\"…)\n\n## Open Workflow Nets\n\nKarsten Wolf and Peter Massuthe (working with [Wolfgang Reisig](https://www2.informatik.hu-berlin.de/top/www/mitarbeiter/wolfgang_reisig)) applied the notion of Open Workflow Nets to analyzing the observable behavior of\n a service. The context to this work is to identify formal models of workflow services.\n A simple example of a vending machine illustrated the depth of this problem. The process\n modeling the vending machine supports four external \"operations\": *Insert Coin*, *Select Tea*, *Select Coffee* and *Deliver Beverage*. The first three are inbound and the last one is outbound messages. The question\n is, which client processes are valid in a sense that they actually complete the process\n without getting stuck somewhere (such a client is called a *Strategy*)? For example, a customer inserting a coin, selecting coffee and accepting the beverage\n is a strategy while a customer who inserts a coin and waits for a beverage without\n making a selection is not (the vending machine ends up in a deadlock state). The set\n of all strategies for a service is called an *Operating Guideline*. it provides an interesting artifact for a published workflow-driven service because\n it allows the service composition layer to assess whether service consumer and provider\n are \"compatible\". Wolfgang Reisig posted a [nice overview presentation](http://www2.informatik.hu-berlin.de/top/lehre/WS05-06/taskforce/05-11-17_Ohrid_Operating_Guidelines.pdf#search=%22most%20permissive%20strategy%20owfn%22) on this topic. [Tools4BPEL](http://www2.informatik.hu-berlin.de/top/tools4bpel/tools.html) contains associated tools that can convert BPEL processes into open workflow nets.\n\n## Conversation Patterns\n\nI gave both a [presentation](http://kathrin.dagstuhl.de/files/Materials/06/06291/06291.HohpeGregor.Slides.pdf) and held a [workshop](http://kathrin.dagstuhl.de/files/Materials/06/06291/06291.SWM1.Paper.pdf) on Conversation Patterns. It was great (and a little daunting) to have such an experienced\n audience for my presentation. Immediately, good discussions and suggestions erupted.\n Sanjiva is cataloging more [MEPs](http://www.w3.org/TR/2004/WD-wsdl20-patterns-20040326/) (Message Exchange Patterns) as part of [WSDL 2.0](http://www.w3.org/TR/wsdl20/#property-InterfaceOperation.messageexchangepattern). Uwe Zdun, who is working with Shahram Duster on describing process models using\n patterns, suggested arranging a pattern language where larger patterns can be composed\n from smaller \"pattern primitives\". Egon Börger authored a paper with Alistair Barros\n on and suggested a decomposition of the patterns into send and receive primitives. The\n level of interest and discussion left me inspired and motivated to continue my work\n on Conversation Patterns.\n\n## Heading Home\n\nAfter so much intellectual stimulation I stopped by the Nürburgring's infamous *Nordschleife* on the way home. This treacherous race track of 20km has more corners than I could\n count and is full of blind turns, hill tops, and changing road conditions. At multiple\n points in its history the track was deemed too dangerous for racing but interestingly\n it was deemed safe enough to let the general public go wild on it. That is if you\n consider Evo, STi, RS4, M5, and 911 GT3 drivers the general public. Sadly, the combination\n of lack of horsepower, lack of familiarity with the track and lack of racing experience\n turned me and my BMW 116 into a 170 km/h obstacle.\n\n*Share:*\n\n*Follow:* [Follow @ghohpe](https://twitter.com/ghohpe) [SUBSCRIBE TO FEED](../ramblings.rss)\n\n*More On:* [EVENTS](/ramblings_events.html) [WEBSERVICES](/ramblings_webServices.html) [CONVERSATIONS](/ramblings_conversations.html) [ALL RAMBLINGS](../ramblings.html)\n\nGregor is a cloud architect and author. He is a frequent speaker on asynchronous messaging,\n IT strategy, and cloud.", "znaku_textu": 9093, "slov": 1306, "odkazu": 58, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 15:36:20", "sha256": "46710b289586ba53e496cff4b0fe4dd03ea54e994cee63b63d01ee587f64977b", "hloubka": 4, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://architectelevator.com/blog", "http://www.dagstuhl.de/programm/kalender/semhp/?semid=28468", "http://en.wikipedia.org/wiki/Buzzword_bingo", "http://www-128.ibm.com/developerworks/library/specification/ws-sca/", "http://incubator.apache.org/projects/ode.html", "http://www.intalio.com/news/intalio-pxe-moved-into-apache-ode-trunk/", "http://www-128.ibm.com/developerworks/webservices/library/specification/ws-bpel4people", "http://kathrin.dagstuhl.de/files/Materials/06/06291/06291.PfauGerhard.Slides.pdf", "https://www2.informatik.hu-berlin.de/top/www/mitarbeiter/wolfgang_reisig", "http://www2.informatik.hu-berlin.de/top/lehre/WS05-06/taskforce/05-11-17_Ohrid_Operating_Guidelines.pdf", "http://www2.informatik.hu-berlin.de/top/tools4bpel/tools.html", "http://kathrin.dagstuhl.de/files/Materials/06/06291/06291.HohpeGregor.Slides.pdf", "http://kathrin.dagstuhl.de/files/Materials/06/06291/06291.SWM1.Paper.pdf", "http://www.w3.org/TR/2004/WD-wsdl20-patterns-20040326/", "http://www.w3.org/TR/wsdl20/", "http://sky.fit.qut.edu.au/~dumas/ServiceInteractionPatterns/InteractionPatternsFormalisation.pdf", "https://twitter.com/share", "https://twitter.com/ghohpe", "https://leanpub.com/37things"]} {"url": "http://www.enterpriseintegrationpatterns.com/ramblings/45_web20.html", "titulek": "Web 2.0 Patterns - Enterprise Integration Patterns", "h1": "Web 2.0 Patterns", "popis": "I confess", "klicova_slova": "", "kanonicka": "", "jazyk": "en_US", "robots_meta": "", "og": {"og:type": "article", "og:locale": "en_US", "og:site_name": "Enterprise Integration Patterns", "og:title": "Web 2.0 Patterns", "og:description": "I confess", "og:url": "https://www.enterpriseintegrationpatterns.com/ramblings/45_web20.html"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Web 2.0 Patterns"}, {"uroven": 2, "text": "Attributes of Web 2.0"}, {"uroven": 2, "text": "Values"}, {"uroven": 2, "text": "Other Cool Stuff"}], "markdown": "Gregor's Ramblings\n\n---\n\n# Web 2.0 Patterns\n\nAug 24, 2006\n\nFind my posts on IT strategy, enterprise architecture, and digital transformation\n at [ArchitectElevator.com](https://architectelevator.com/blog).\n\nI confess. I am a groupie. When Tim O'Reilly invited me to be part of on a workshop\n on Web 2.0 patterns I was quite excited. First, because I was going to meet the exalted\n one in person. Second, because I would have a chance to learn a lot about Web 2.0\n as I am pretty much starting from zero (working for Google does not automatically\n mean working on super-secret next generation massive computing projects). Lucky for\n me, the other participants are quite entrenched in the Web 2.0 phenomeon. Amongst\n others we had Bill Scott from Yahoo!, Jennifer Tidwell, Cal Henderson from Flickr,\n John Musser who runs ProgrammableWeb, Martin Fowler, and Sandy from Meebo.\n\nThe goal of the workshop was to build on Tim's paper [What is Web 2.0](http://www.oreillynet.com/pub/a/oreilly/tim/news/2005/09/30/what-is-web-20.html). The paper cites a few examples that demonstrate the shift in thinking from Web 1.0\n to Web 2.0:\n\n- DoubleClick --> AdSense\n- OFoto --> Flickr\n- Britannica Online --> Wikipedia\n\nThese examples alone show a clear shift from publishing towards sharing and participation,\n a richer user interaction, and a stronger focus on sharing data. Our day-long workshop\n aimed to distill *values*, *principles*, and *patterns* of Web 2.0 (Martin recommended that we \"borrow\" this structure from Kent Beck's XP\n book).\n\n## Attributes of Web 2.0\n\nWe started by brainstorming what Web 2.0 means to us. As expected we ended up with\n a wide spectrum of ideas, which we then sorted into categories. One of the most interesting\n parts for me were the many examples that I had not yet heard about, such as:\n\n- **Do one thing well** : [meebo.com](http://www.meebo.com) - an on-line chat client? Sounds not that exciting? Unless you do it well and make\n it fun, give people the ability to embed a chat client into their Web app, and get\n your fans to translate the Web site for you.\n- **Work across devices** : [frucall.com](http://www.frucall.com) - allows you to check prices over your phone and then look up your history over the\n web site.\n- **Work across devices** : [http://www.backpackit.com](http://www.backpackit.com) sends a meeting reminder to your cell phone (actually [Google Calendar](http://www.google.com/calendar) does that, too).\n- **Encourage participation** : An experiment on Yahoo personals revealed that prefilling fields with slightly incorrect\n data motivates people to enter personal data. This also relates to the common joke\n that \"80% of all usenet posts start with \"Actually\" – it is hard to get a question\n answered, but if you make an incorrect statement people are compelled to correct you.\n Along the same lines it turned out that the rather [unappealing default buddy icon](http://www.flickr.com/images/buddyicon.jpg?66541867@N00) on [Flikr](http://www.flickr.com) results in a higher percentage of personalized icons.\n- **Make public data public** The well-known examples here are [Zillow](http://www.zillow.com) , [TheyWorkForYou](http://www.theyworkforyou.com) and [FundRace](http://www.fundrace.org) (lots of John Kerry donations in my neighborhood)\n- **Narcistic Search** - what do people say about my work? Type your own name into Google.\n\n## Values\n\nWe tried to compile a set of values, along the lines of the [Agile Manifesto](http://agilemanifesto.org/). The key with the agile values is that is used a \"X over Y\" format where Y by itself\n is a fairly reasonable goal. For example, the value is not \"Working Software over\n Broken Software\" (duh!) but \"Working Software over Comprehensive Documentation\". Here\n are some of our candidates:\n\n- Simplicity over Completeness\n- Long tail over Mass Audience\n- Share over Protect\n- Advertise over Subscribe\n- Syndication over Stickiness\n- Early Availability over Correctness\n- Select by Crowd over Editor\n- Honest voice over Corporate Speak\n- Participation over Publishing\n- Community over Product\n\n## Other Cool Stuff\n\nJohn from [ProgrammableWeb](http://www.programmableweb.com/) shared a beer over visualizing complex integration systems. His team actually won\n an award once for a system that could visualize a complex integration solution consisting\n of messaging, file transfer, and many other technologies. His side links to a fun\n game [GuessTheGoogle](http://grant.robinson.name/projects/guess-the-google/).\n\nMartin taught me a new acronym: [POX](http://en.wikipedia.org/wiki/POX) = Plain Old XML (as opposed to SOAP + WS-*)\n\n[hadoop.com](http://www.hadoop.com) is an open source map/reduce implementation.\n\nSomeone pointed me to [BlueOrganizer](http://www.adaptiveblue.com) - a Firefox plugin that allows the creation of semantically rich bookmarks that can\n be shared. For example, if you mark one of the supported sites (e.g. Amazon) the tool\n will bookmark the specific product (as opposed to simply the URL) and file it under\n the proper category (e.g., books, electronics).\n\n*Share:*\n\n*Follow:* [Follow @ghohpe](https://twitter.com/ghohpe) [SUBSCRIBE TO FEED](../ramblings.rss)\n\n*More On:* [PATTERNS](/ramblings_patterns.html) [ALL RAMBLINGS](../ramblings.html)\n\nGregor is a cloud architect and author. He is a frequent speaker on asynchronous messaging,\n IT strategy, and cloud.", "znaku_textu": 5281, "slov": 757, "odkazu": 61, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 15:36:18", "sha256": "26336d0fa69d7168f88bf93cea97d9b874ff1cdd5136186218b4bd7146a1bcb1", "hloubka": 4, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://architectelevator.com/blog", "http://www.flickr.com/photos/skylinegtr/224611742/", "http://www.oreillynet.com/pub/a/oreilly/tim/news/2005/09/30/what-is-web-20.html", "http://www.meebo.com/", "http://www.frucall.com/", "http://www.backpackit.com/", "http://www.google.com/calendar", "http://www.flickr.com/images/buddyicon.jpg?66541867%40N00=", "http://www.flickr.com/", "http://www.zillow.com/", "http://www.theyworkforyou.com/", "http://www.fundrace.org/", "http://www.flickr.com/photos/skylinegtr/224612230", "http://agilemanifesto.org/", "http://www.programmableweb.com/", "http://grant.robinson.name/projects/guess-the-google/", "http://en.wikipedia.org/wiki/POX", "http://www.hadoop.com/", "http://www.adaptiveblue.com/", "https://twitter.com/share", "https://twitter.com/ghohpe", "https://leanpub.com/37things"]} {"url": "http://www.enterpriseintegrationpatterns.com/ramblings/46_foo.html", "titulek": "fooCamp - Enterprise Integration Patterns", "h1": "fooCamp", "popis": " This year I got to go to fooCamp! What is fooCamp? It is sort of like Burning Man for techno geeks", "klicova_slova": "", "kanonicka": "", "jazyk": "en_US", "robots_meta": "", "og": {"og:type": "article", "og:locale": "en_US", "og:site_name": "Enterprise Integration Patterns", "og:title": "fooCamp", "og:description": " This year I got to go to fooCamp! What is fooCamp? It is sort of like Burning Man for techno geeks", "og:url": "https://www.enterpriseintegrationpatterns.com/ramblings/46_foo.html"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "fooCamp"}, {"uroven": 2, "text": "Highlights and Lowlights"}, {"uroven": 2, "text": "Friday"}, {"uroven": 2, "text": "Saturday"}, {"uroven": 2, "text": "Sunday"}], "markdown": "Gregor's Ramblings\n\n---\n\n# fooCamp\n\nAug 28, 2006\n\nFind my posts on IT strategy, enterprise architecture, and digital transformation\n at [ArchitectElevator.com](https://architectelevator.com/blog).\n\nThis year I got to go to fooCamp! What is fooCamp? It is sort of like [Burning Man](http://www.burningman.com) for techno geeks. But just as Burning Man has gone pretty high tech fooCampers started\n to have more fun by burning things. It's difficult to put the experience into words...\n\n## Highlights and Lowlights\n\n**Most embarrassing moment**: At a session about stealth I asked Jay Adelson, [Digg.com](http://www.digg.com)'s CEO) which company he is with. Oops. On the bright side he told me that once he\n arrived for a talk, entering as Larry Page was leaving the stage. Jay went on to introduce\n himself and finished with \"and you work for…\" Doesn't misery love company!\n\n**Made**: fooCamp is about making stuff. I did not make anything particularly extraordinary\n but managed to solder together a [miniPov](http://www.ladyada.net/make/minipov3/) kit, consisting essentially of an Atmel microcontroller and 8 bright LEDs. Afterwards\n I realized that Thinkpads actually do not have serial ports (they do have, out of\n all things, a parallel port). So I had to wait until I got home to actually download\n the firmware. The source is in \"C\" so maybe I will do a bit C programming, I was actually\n amazed at the easy availability of an open source compiler (based on GCC and the winAVR\n programming tools. No external hardware is needed to burn this microcontroller. Tinkering\n with hardware and microcontrollers was like a flashback to my teenage years and college\n when I used to do a lot of hardware, mostly around TTL chips and a NEC microcontroller.\n\n**Coolest Device**: Naturally, people were showing off all sorts of cool stuff, including a flame thrower,\n a (non Google) map projection installation, a cell phone that looks like a regular\n rotary phone (without cable) and lots more. I think my favorite is still Mitch's [TV B Gone](http://www.tvbgone.com). It is a tiny remote control that sends the \"power off\" code for all popular tv\n models. Hold it for a minute towards any tv you encounter and it will turn off. Very\n cool. Good that I don't have one – I am sure I would take it to the first sports bar\n and get beaten up by jockstraps when I nuke the tv in the middle of some game.\n\n**Coolest People**: This category is difficult as fooCamp was packed with cool people. I think the guys\n from [Graffiti Research Lab](http://graffitiresearchlab.com/) deserve a special mention for their projection projects, their effort to make public\n spaces in NYC more usable by building chairs out of priority mail boxes, and decorating\n buildings with [LED throwies](http://www.instructables.com/id/E9D2ZJ3FG0EP286JEJ/). You can now buy [bulk kits](http://www.hebeiltd.com.cn/?p=throwies) to make making throwies more economical.\n\n**Funniest Moment**: Crazybob and Geir staged a session titled \"Java still matters\". No one showed up.\n\n**Silliest Moment**: Formed the idea to create a map that visualizes my trip to Hakone in Japan that\n makes use of Shinkansen, regular trains, tram, funicular, ropeway, boat, and bus (the\n paddleboats were not running in the fall season). Plotting mode of transportation\n in color coding across time, elevation, and level of excitement I would use this map\n to triumph over Ed Tufte's favorite [map of Napoleon's Russia campaign](http://www.edwardtufte.com/tufte/posters).\n\n**Proudest Moment**: Rode a Segway hands free.\n\n## Friday\n\nFriday evening started with introductions. It was one impressive list of 250 people,\n including the other celebrity Mitch Kapor, Ray Ozzie, and Jeff Bezos. Google showed\n a strong presence, but each of the attendees was invited for work they did outside\n or before they joined Google, which is good because foo is about individuals and not\n about corporations. But it also worried me a little as I started to wonder whether\n people will do cool enough things at Google (that they can talk about) that gets them\n invited to foo.\n\nI headed onto the Make area, run by the folks behind [Makezine](http://www.makezine.com). These guys not only make cool stuff they also make great mojitos! [Bre Pettis](http://www.brepettis.com/) showed us some of his new projects. We could not stop laughing when we saw [Pink Bunny](http://www.pinkbunny.org) and [Magic Monkey Bob](http://magicmonkeybob.com). After seeing the remix of the double decker bus video I won't be able to go to London\n without thinking \"downstairs, down, down, downstairs.\"\n\nFriday evening I was able to score a [Chumby](http://www.chumby.com), a small, cushy device with a reasonable CPU, a nice color LCD, WiFi, and Linux.\n It runs Flash widgets like a Flickr photo viewer or stock quotes. Later, Bunnie and\n his cohorts showed us how to turn a Teletubby into a [Telechumby](http://www.flickr.com/photos/skylinegtr/226652035/). Very cool.\n\n## Saturday\n\nSaturday was [filled with interesting sessions](http://www.flickr.com/photos/skylinegtr/226654025/). The folks from Spark Fun Electronics revealed the innards of their cellular rotary\n phone. They also built a very simple device consisting of a GPS antenna, a microcontroller\n and an SD card. It samples your position every second or so and loads it onto the\n SD card. Since it has no display and other gimmicks it can last a week or so on battery,\n When you are done you insert the SD card into your PC and plot the data on Google\n Earth or whatever. Great for vacations, especially in countries where it is difficult\n to read street signs and remember where you went.\n\n**Geo Hacking**\n\nOne hot topic was anything related to geotagging, mach-ups on top of maps or Earth\n etc. In Japan 2D bar-codes are now the hit. You can take a picture with your cell\n phone camera, which translates it into a URL. It is mostly used for advertising. Since\n the URLs are mapped directly to the bar code no server round trip is required for\n decoding. I believe a similar system is used by Emery-Go-Around to check the expected\n arrival time of the next bus. However, that one requires a server roundtrip.\n\nAnother question that came up is that of a geopedia, i.e. a place where a large community\n charts out the planet and gives information about buildings and locations. This would\n be a big step towards the \"tell me what this is\" device that one could carry around\n and point at buildings or points of interest.\n\n**Domain Specific Languages**\n\n[Martin](http://www.martinfowler) held a session on DSLs, asking people for their experiences. One interesting project\n that was mentioned uses the C# [Linq](http://msdn.microsoft.com/data/ref/linq/) project to work against data sources such as Amazon. I am sure Martin is going to\n post a nice summary of his session notes.\n\n**Out of Control**\n\nI hosted a session titled \"out of control\" (sexy titles always help improve attendance)\n to discuss management and visualization of large Web sites. It was quite well attended\n and it was great to get input from folks who run mlb.com, livejournal.com, puzzlepirates\n etc. The session was adequately followed by \"F*cking big Websites\". I felt that too\n many sessions had great discussions but little tangible take-away so I decided to\n take notes during my session. I posted them on the [fooCamp wiki](http://wiki.oreillynet.com/foocamp06/index.cgi?OutOfControl).\n\n**Visualizations**\n\nAfter dinner I attended a great session around visualization. The session was split\n into two parts. The first part dealt largely with maps addressing the problem that\n a consistent level of detail is not useful if you are traveling 50 miles on the freeway\n followed by having to navigate a maze of local streets. Some of the works out of [Berkeley](http://vis.berkeley.edu) solve this problem through iterative optimization, creating a map that is much closer\n to what a person would sketch up.\n\nThe second part used visualization techniques to track changes on Wikipedia topics.\n The same code can be used against source code repositories. It is available on IBM\n Alphaworks under \"HistoryFlow\" (great work by fviegas at media.mit.edu).\n\n**Laptop Tattoo**\n\nThe guys from the Graffiti Research Project brought a $15k laser engraver that quickly\n turned a bunch of laptops into works of art. Our very own Chris deserves big kudos\n for working past midnight to fulfill various fooCampers' wishes for unique designs.\n Rumor has it one person ended up with Hello Kitty angel on the laptop. Definitely\n unique.\n\n## Sunday\n\n**Chumby Hacks**\n\nWe learned how to connect a serial port to a chumby to get a linux shell. The main\n board has rx and tx pins and ground is easy to find. Main caveat: the rx amd tx pins\n run directly into the microcontroller, which operates on 3.3 volts. Any attempt to\n connect these wires into a \"real\" RS232 (with +/- 9 volts) will quickly transport\n your chumby into the eternal chumbing grounds. Otherwise, set your serial port to\n 115kbs, 8N1 and no flow control. You can start an sshd daemon from the shell or mount\n a USB still with content.\n\n**Technology Underground**\n\nEver wondered how to make a potato cannon or pumpkin cannon? How about a flame throwing\n robot? Just in time for burning man... A [rail gun](http://www.powerlabs.org/railgun2.htm) could be a lot of fun as well.\n\n**Global Geek Culture**\n\nDanny O'Brien gave one of the most entertaining talks about cultural differences.\n The surprising cultural differences between the UK and the US motivated him to dig\n up some research by [Geert HofStede](http://www.geert-hofstede.com), who defined five cultural dimensions. Very interesting.\n\nI am sure I missed a lot of interesting sessions. For example, I only caught the last\n minutes of Pipes and Filters on the Web. I need to check out [Dabble DB](http://www.dabbledb.com). Is there anything bad about fooCamp? Not really, the worst part is having to come\n home to the daily grind…\n\n*Share:*\n\n*Follow:* [Follow @ghohpe](https://twitter.com/ghohpe) [SUBSCRIBE TO FEED](../ramblings.rss)\n\n*More On:* [EVENTS](/ramblings_events.html) [ALL RAMBLINGS](../ramblings.html)\n\nGregor is a cloud architect and author. He is a frequent speaker on asynchronous messaging,\n IT strategy, and cloud.", "znaku_textu": 10181, "slov": 1605, "odkazu": 68, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 15:36:18", "sha256": "8c6e9ea49526762d7e0dc390282bdfdf35449102bae38adc7c4112facbf5783b", "hloubka": 4, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://architectelevator.com/blog", "http://www.burningman.com/", "http://www.digg.com/", "http://www.flickr.com/photos/skylinegtr/225714718", "http://www.ladyada.net/make/minipov3/", "http://www.tvbgone.com/", "http://graffitiresearchlab.com/", "http://www.instructables.com/id/E9D2ZJ3FG0EP286JEJ/", "http://www.hebeiltd.com.cn/?p=throwies", "http://www.edwardtufte.com/tufte/posters", "http://www.flickr.com/photos/skylinegtr/230716288", "http://www.makezine.com/", "http://www.brepettis.com/", "http://www.pinkbunny.org/", "http://magicmonkeybob.com/", "http://www.chumby.com/", "http://www.flickr.com/photos/skylinegtr/226652035/", "http://www.flickr.com/photos/skylinegtr/226654025/", "http://www.martinfowler/", "http://msdn.microsoft.com/data/ref/linq/", "http://wiki.oreillynet.com/foocamp06/index.cgi?OutOfControl=", "http://vis.berkeley.edu/", "http://www.flickr.com/photos/skylinegtr/226652710", "http://www.powerlabs.org/railgun2.htm", "http://www.geert-hofstede.com/", "http://www.dabbledb.com/", "https://twitter.com/share", "https://twitter.com/ghohpe", "https://leanpub.com/37things"]} {"url": "http://www.enterpriseintegrationpatterns.com/ramblings/47_jaoo.html", "titulek": "JAOO 2006 - Enterprise Integration Patterns", "h1": "JAOO 2006", "popis": " I am just riding the train back from Aarhus (the second largest city in Denmark in case your geography skills are as weak as mine were before my first trip here) to Copenhagen", "klicova_slova": "", "kanonicka": "", "jazyk": "en_US", "robots_meta": "", "og": {"og:type": "article", "og:locale": "en_US", "og:site_name": "Enterprise Integration Patterns", "og:title": "JAOO 2006", "og:description": " I am just riding the train back from Aarhus (the second largest city in Denmark in case your geography skills are as weak as mine were before my first trip here) to Copenhagen", "og:url": "https://www.enterpriseintegrationpatterns.com/ramblings/47_jaoo.html"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "JAOO 2006"}, {"uroven": 2, "text": "The Beers vs. The Waters"}, {"uroven": 2, "text": "Werner Vogels Keynote"}, {"uroven": 2, "text": "Domain Annotations"}, {"uroven": 2, "text": "DSL Tutorial"}, {"uroven": 2, "text": "Resources, Events, Agents"}, {"uroven": 2, "text": "So Much More"}], "markdown": "Gregor's Ramblings\n\n---\n\n# JAOO 2006\n\nOct 6, 2006\n\nFind my posts on IT strategy, enterprise architecture, and digital transformation\n at [ArchitectElevator.com](https://architectelevator.com/blog).\n\nI am just riding the train back from Aarhus (the second largest city in Denmark in\n case your geography skills are as weak as mine were before my first trip here) to\n Copenhagen. Many speakers consistently rave about JAOO. The speaker roster, the logistics,\n the attendees – everything just seems to be very high quality and run very smoothly.\n This year I was nominated to be track host for the SOA track, entitled \"SOA – What's\n Left to Say?\" (if you pronounce SOA *Ass Oh Ay*, it actually rhymes).\n\nThe overarching scheme at JAOO this year was certainly languages, which is not all\n too surprising if you look at the concentration of language heavyweights in the speakers\n list. I got to meet Guy Steele (Scheme), Erik Meijer (self-declared \"Language Pimper\"),\n Betrand Meyer (Eiffel), and Ole Lehrmann Madsen (Simula). A whole track focused on\n DSLs and a separate track on abstractions for concurrency. With so much gray hair\n at the event, Dave Thomas moderated a track on \"Back to the Future\". In various sessions\n words like OCCAM, CSP, SIMULA, BETA, SCOOP, fortress, Scheme, Lisp, Visual Basic,\n C# and (almost forgot) Java were part of the vocabulary. Time to dust of those language\n books! It seems that the advent of multi-core chips (and to some extend the increasing\n pervasiveness of SOA) have really brought into the foreground of developers' minds\n that we are always working with concurrent systems. It also causes a lingering feeling\n that our current popular languages are not terribly well suited for such an environment.\n\nNot surprisingly a lot more happened at JAOO than I can capture in a single blog entry.\n What follows are merely the highlights. A number of the talks would surely warrant\n a whole post on their own.\n\n## The Beers vs. The Waters\n\nOne highlight of the conference must have been he closing panel moderated by Dave\n Thomas. He pitched The Beers (Erik Meijer, Kevlin Henney, and Steve Vinoski) against\n The Waters (Guy Steele and Ole Lehrmann Madsen) to talk about Programming in 2016.\n\nBefore taking questions from the audience, Dave asked each participant for their opening\n statement. I think the viewpoints reflected the sentiment of the audience quite well.\n Guy's observation is that multi-core chips make parallelism more visible at the language\n level. Just writing a single-threaded app and hoping for the best will no longer cut\n it. Guy also expects a more diverse programming language environment. However, this\n could be a self-fulfilling prophecy as he is actively contributing to said diversity\n with [Fortress](http://research.sun.com/projects/plrg/faq/index.html). Guy also anticipates that the pervasiveness of Unicode might mean that languages\n are will no longer be tied to the ASCII character set. APL here we come…\n\nOle is looking for languages that provide for better abstractions and support for\n common patterns. Most of us would agree with him that many of today's popular languages\n hide useful patterns behind way too much syntax clutter.\n Steve expects IDEs to better support dynamic languages so that Ruby users no longer\n have to code in NotePad. Interestingly, he also expects us to be closer to where we\n were with SmallTalk 10 years ago. Maybe this will be the day the SmallTalkers will\n finally stop complaining that everything was so much better back when (Gartner purportedly\n has a 0.01 probability attached to that part of the prediction).\n\nKevlin, who has once described his favorite activity as talking picked right up on\n Steve's point on IDE's. \"These EMACS users. Their heads are so full of key combinations\n there is no room for anything else\". His biggest fear is that the future of programming\n looks like XML. He had only three words for that scenario: \"That just sucks\"\n\nFor the rest of the panel Dave collected questions from the audience. He asked participants\n to write their questions up \"so he could spice them up a little if they are not mean\n enough\". Here some of the more interesting questions and more entertaining answers.\n Keep in mind that these are not always my views, but those of the panel (with a little\n literary license).\n\n**Will Ruby succeed where Smalltalk failed? Or will it be like Java in 2006?**\n\n- One of the reasons SmallTalk failed is because it was fairly bound up. One could not\n just use NotePad and code something up. Not even an `if` statements looked like an if statement. Erik: I hope Ruby will get closures right.\n- According to Dave, SmallTalk failed because the market shifted and it was very difficult\n to make dynamic language like SmallTalk run efficiently on a virtual machine like\n the JVM. So it was not a developer preference that killed SmallTalk, but a shift in\n the market. Sadly, the arrogance and close-mindedness of SmallTalkers sealed the lid.\n\n**Will Mapping (O-R, XML) Become Easier or Go Away?**\n\n- Steve: JAX-WS allows you to work without mapping by allowing you to work directly\n with the XML documents .The problem is, though, that Java is not all that great at\n working with XML. He prefers languages like E4X (ECMA for XML) that are much more\n terse.\n- Erik: Mapping is always doomed. You need to pick your model(s) carefully because you\n cannot expect any system to just magically go from one model to another.\n- Dave thinks that a lot of the OO stuff will simply go away and simplify the mapping\n problem. A lot of OO code is written for things that are not inherently OO. Some day\n people will use objects properly to build the domain model but not for application\n infrastructure.\n\n**What role will AI play?**\n\n- AI is by definition the thing that is not yet commercially applied. Once AI technologies\n are successful (e.g. camera autofocus) people stop calling it AI.\n\n**Will CSP or OCCAM come back?**\n\n- It would be useful to define CSP style programming in other languages\n- Guy stated that CSP inspired some of the ways parallelism is expressed in Fortress.\n (unfortunately I missed Guy's Fortress talk because it was scheduled for a cruel 9am\n start)\n- Erik: Co-routines should come back. He points out that iterators in C# are not real\n co-routines. Kevlin also feels that Co-routines are one of the great lost paradigms.\n- Everybody agreed that CSP could help make concurrent systems easier to understand\n and safer to program. We really need to find a simpler model for distributed systems\n to stay clear of deadlocks, race conditions and poor performance.\n\n**What Do You Think of Formal Views in Programming Languages?**\n\n- Ole thinks that pre and post conditions are a good way to express more about the intent\n of your program. For example, one of Bertrand Meyer's student has created a tool\n that can create unit tests from a contract (he demo'd this tool at the [Google Testing Automation Conference in London](http://googleresearch.blogspot.com/2006/04/our-conference-on-automated-testing.html) )\n- Kevlin struck back by observing that pre and post conditions are Structured Programming\n in disguise because they assume top-down control.\n\n**Will DSL's Cause Language Proliferation?**\n\n- Steve likes to tell the episode from the Blues Brothers movie where the woman at the\n bar proudly states that \"We have both kinds of music: country and western\". Too many\n programmers today think \"We have both languages, C# and Java\". In Steve's view, more\n languages mean more choices, not necessarily having to learn many languages.\n- Kevlin is also worried about 4GL Soup as the result of DSL movement. Most people are\n simply not good language designers because it is very difficult. Another worry of\n his is that creating too many languages will cause a new class of problems: What if\n my domain changes, which causes me to change my domain specific language? Now we have\n to deal with schema drift inside a programming language.\n\n**Will AOP Make It to the Mainstream?**\n\n- Too bad Rod Johnson was not on the panel for this one as Kevlin dealt a blow against\n AOP. Kevlin reminded us that FORTRAN had the infamous assign-to operation, which is\n an incarnation of the [comeFrom](http://en.wikipedia.org/wiki/COMEFROM) concept. Assign-to was considered too dangerous to be used in production code and\n recommended only for debugging. According to Kevlin, AOP is very similar to assign-to.\n The main problem is that one has no clue about what is actually going on by looking\n at the source code. He thinks that it is unlikely that AOP will become a general purpose\n programming thing. However, the thinks that AOSD (Aspect Oriented Software Development)\n might have better luck.\n- Guy took a more balanced stance, pointing out that too many AOP papers and talks recycle\n the same old examples. We would really like to see more use cases before we can decide\n which way it is going to go.\n- Ole felt that aspects would benefit from a better theoretical foundation. I'll let\n him elaborate on that. My brain is just the size of a peanut. Oh wait, this is Erik\n Meijer's line!\n\n**Is This Programming Thing Ever Going to Get Easier?**\n\nThere seemed to be a general sentiment in the audience that programming is getting\n harder and harder as opposed to simpler. Besides all the excitement about better programming\n models and more efficient environments it seemed that the panel shares some of the\n same concerns.\n\n- Ole's main worry was that we are having a difficult time keeping the tools up with\n the complexity of new languages and platforms (in Java land it took almost a decade\n for a decent IDE to arrive). He could not help but point out that some people (all\n hands pointing at Steve) still use EMACS!\n- Dave believes that a lot of the problem lies in the fact that the platform vendors\n essentially ensure that the automated tools will always behind the complexity of the\n platform.\n\n**Best Quotes (Kevlin is the clear winner in this category):**\n\n- *I don’t use emacs. My embedded systems background taught me not to run multiple operating\n systems on the same hardware.*\n- *Concurrency will bring new bugs. So in 2016 our bugs will run faster.*\n- *The biggest problem with SmallTalk are the SmallTalkers.*\n\n## Werner Vogels Keynote\n\nWerner gave a keynote summarizing the history of Amazon's infrastructure. It quickly\n became apparent that having a bunch of app servers access a single database would\n not scale. So Amazon decided to avoid direct database access from the application\n and instead wraps all core business logic behind a ser of services. Services consists\n of both foundation services and aggregators. Aggregators combine data from multiple\n application services to build up a page. Amazon assigns one team to build each service.\n On occasion they have multiple teams competing for the construction of a service.\n I coined this the Reverse [Conway's Law](http://en.wikipedia.org/wiki/Conway's_Law): you design your organizational structure so that the resulting system, which according\n to the law will resemble this structure, comes out the way you like it.\n\nAmazon is continuing to battle the CAP theorem – the balance between Consistency,\n Availability, and Partionability. The theorem states that one can achieve only two\n of the three desirable properties when designing a system. For example, high availability\n is generally achieved through redundancy, which tends to compromise consistency. Werner's\n current thinking is that the application should be involved in data partinioning in\n order to maximize scalability.\n\n## Domain Annotations\n\n[Erik Doernenburg](http://www.doernenburg.com) and Mike Royle gave their great [Talk on Domain Annotations](http://erik.doernenburg.com/talks/older/#domain-annotations) (they chose the word \"annotations\", but their guidance applies equally to Java annotations\n and .Net attributes). They reminded us of four ways that we commonly express metadata\n in source code:\n\n- Keywords, such as `override`\n- Naming conventions, such as `testNewCollectionIsEmpty`\n- Marker interfaces, such as `serializable`\n- Formatted comments, such as JavaDocs\n\nProgrammers use annotations for a variety of things. They make great markers for pointcuts\n (as opposed to naming or types). They can also be used to represent (and enforce)\n structural rules. For example, specific classes in the system could be tagged as [Layer(\"domain\")].\n The build system could validate dependencies between these layers, so that for example\n the domain layer cannot depend on the UI layer or the persistence layer.\n\nOne important guideline for annotations that is often overlooked (and was already\n discussed at [Crested Butte](34_cb.html)) is the fact that they should describe a property that is intrinsic to the item being\n annotated. The annotation should change when the code of the annotated items change,\n not when the environment changes. This observation became apparent in the design of\n [nUnit](http://www.nunit.org). While the use of annotations in nUnit is definitely a step forward over the jUnit\n naming conventions, the annotations do suffer from some violation of this useful guideline.\n For example, the [TestFixture] annotation is redundant. If a class contains a method\n annotated with [Test], it should be considered a fixture automatically. The [SetUp]\n annotation indicates which method should be called before any test invocation. As\n such it describes the role of this method in a larger context, i.e. the test invocation.\n This forces the nUnit framework to deal with issues like inheritance, which more or\n less led to a reimplementation of method dispatch.\n\nErik and Mike continued to show some interesting uses of annotations in the context\n of a domain model, i.e. a set of classes that describe a business domain. For example,\n they annotated string fields with a maxLength attribute. While this sounds trivial\n it is actually quite useful as different layers of the application could interpret\n this attribute in different ways. For the example, the UI layer could generate JavaScript\n that limits input length to the specified number of characters while the domain layer\n throws an exception of the string exceed the limit. Even though the field is used\n in different contexts, the meaning of the annotation is directly related to the annotated\n field and will only change if the nature of the field changes.\n\nOther uses of annotations in domain models include classifying classes as (static)\n reference data or transactional data. For example, changes to reference data might\n need to be audited. Such annotations can also be used to color visualizations generated\n from the code base.\n\nErik and Mike showed a more involved example that uses annotations to navigate the\n object graph. The annotations describe the relationships between classes and which\n fields form this relationship. At runtime they can inspect these relationships without\n actually having to instantiate any objects as the annotations sit on the classes themselves.\n Some of the actual code to manage the navigation was a bit hairy but luckily it was\n well hidden inside utility classes. All the application developer has to do is place\n the annotations.\n\n## DSL Tutorial\n\nThursday and Friday are tutorials days at JAOO. I attended [Markus Voelter](http://www.voelter.de)’s hands-on tutorial on building a DSL with Eclipse and [openArchitectureWare](http://www.openarchitectureware.org). Markus was clever enough to omit the dreaded MDA acronym from the title of his tutorial\n – the night before we discussed the trend towards MDC –Model-driven Crap. Markus is\n one of the more pragmatic members of the MDSD (Model-driven Software Development)\n community and it showed in this tutorial. After 15 minutes of PowerPoint slides he\n fired up Eclipse and started building a domain language using his modeling framework.\n Our goal was to define a language that uses Eric Evan’s vocabulary of entities and\n value objects. In order to make such a language we would have to create a metamodel,\n a code generator, and design a textual language. In order to express the metamodel\n we need to define a metametamodel. While that sounds a little scary it actually isn’t\n – we used the [EMF](http://www.eclipse.org/emf/) metametamodel. From there we create the notion of a ValueObject, which we define\n as having a name and a set of attributes. In the end the template-based code generator\n turns each ValueObject in an immutable class with the appropriate constructor and\n getters.\n\nThe best part about this tutorial was that 90% of the time was spent coding as opposed\n to handwaving. Also, the focus on development tools for DSLs makes a lot of sense.\n For example, the framework supplies an editor for our newly made textual language,\n complete with autocomplete and syntax underlining.\n\n## Resources, Events, Agents\n\n[Pavel Hruby](http://www.phruby.com/) gave a tutorial on modeling using REA(Resources, Events, Agents). By the way. Pavel\n is the guy who created by far the best [UML stencils for Visio](http://www.softwarestencils.com/uml/index.html). Pavel just completed a [book](http://www.phruby.com/book/index.html) on Model-driven Design using Business Patterns.\n\nThe REA approach starts from the assumption that almost all business software applications\n deal with a few common concepts, such as economic resources, events, agents. Pavel\n uses a pizzeria example to illustrate how these concepts can be used to model the\n pizzeria. For example, the sale of pizza involves economic agents Customer and Pizzeria\n and involves the events Sale and Payment Receipt, which affect the economic resources\n Pizza and Cash. Pavel then demonstrated how to create similar models for all business\n processes that make up the pizzeria’s business, such as making pizza, ordering raw\n materials, or acquiring labor.\n\nThe strength of REA is that it allows for validations of a domain model based on axioms\n (e.g., every increment economic event must be related to a decrement economic event\n via exchange duality). These validations allow the early discovery of imbalances\n or omissions in domain models.\n\nPavel illustrated how to extend the model to include concepts like time etc., but\n I think it is fair to say that the REA approach has a certain sweet spot and I had\n a more difficult time with the extensions.\n\n## So Much More\n\nOK, I got to stop writing. I attended so many more interesting sessions that I can\n only mention in passing here:\n\n- Charles Simonyi on Intentional Programming (finally we got to see a demo)\n- Erik Meijer waxing about the greatness of higher order functions in Haskell.\n- Alistair’s keynote on the analogies between swimsuits and methodologies.\n- Dan North and Niclas on behavior-driven development\n- Oh, and my SOA track!\n- And so on and so on\n\n*Share:*\n\n*Follow:* [Follow @ghohpe](https://twitter.com/ghohpe) [SUBSCRIBE TO FEED](../ramblings.rss)\n\n*More On:* [EVENTS](/ramblings_events.html) [MODELING](/ramblings_modeling.html) [ALL RAMBLINGS](../ramblings.html)\n\nGregor is a cloud architect and author. He is a frequent speaker on asynchronous messaging,\n IT strategy, and cloud.", "znaku_textu": 19052, "slov": 3022, "odkazu": 61, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 15:36:16", "sha256": "6b56db319831502663c90ac9be4ca1aa8b1b0fd9ec04c82a8a5a430b3e392f96", "hloubka": 4, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://architectelevator.com/blog", "http://www.flickr.com/photos/skylinegtr/260685034/", "http://www.flickr.com/photos/skylinegtr/260680842/", "http://research.sun.com/projects/plrg/faq/index.html", "http://googleresearch.blogspot.com/2006/04/our-conference-on-automated-testing.html", "http://en.wikipedia.org/wiki/COMEFROM", "http://www.flickr.com/photos/skylinegtr/259610046/", "http://en.wikipedia.org/wiki/Conway's_Law", "http://www.flickr.com/photos/skylinegtr/260707794/", "http://www.doernenburg.com/", "http://erik.doernenburg.com/talks/older/", "http://www.nunit.org/", "http://www.voelter.de/", "http://www.openarchitectureware.org/", "http://www.eclipse.org/emf/", "http://www.phruby.com/", "http://www.softwarestencils.com/uml/index.html", "http://www.phruby.com/book/index.html", "https://twitter.com/share", "https://twitter.com/ghohpe", "https://leanpub.com/37things"]} {"url": "http://www.enterpriseintegrationpatterns.com/ramblings/48_validation.html", "titulek": "Validating Dynamic Systems - Enterprise Integration Patterns", "h1": "Validating Dynamic Systems", "popis": "Erik Doernenburg and I have been presenting our talk on Software Validation a few times now and have received very positive feedback", "klicova_slova": "", "kanonicka": "", "jazyk": "en_US", "robots_meta": "", "og": {"og:type": "article", "og:locale": "en_US", "og:site_name": "Enterprise Integration Patterns", "og:title": "Validating Dynamic Systems", "og:description": "Erik Doernenburg and I have been presenting our talk on Software Validation a few times now and have received very positive feedback", "og:url": "https://www.enterpriseintegrationpatterns.com/ramblings/48_validation.html"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Validating Dynamic Systems"}, {"uroven": 2, "text": "Sharing is Caring"}, {"uroven": 2, "text": "Show Me the Money"}, {"uroven": 2, "text": "The Model is the Key"}, {"uroven": 2, "text": "A Graph Model"}, {"uroven": 2, "text": "Implementation Details"}, {"uroven": 2, "text": "Connectedness"}, {"uroven": 2, "text": "Did Google Make a Hiring Mistake?"}, {"uroven": 2, "text": "Tying up Loose Ends"}, {"uroven": 2, "text": "Hooking it all Together"}, {"uroven": 2, "text": "Output – Keep it Simple"}, {"uroven": 2, "text": "Future Plans"}, {"uroven": 2, "text": "Try for Yourself"}], "markdown": "Gregor's Ramblings\n\n---\n\n# Validating Dynamic Systems\n\nFeb 1, 2007\n\nFind my posts on IT strategy, enterprise architecture, and digital transformation\n at [ArchitectElevator.com](https://architectelevator.com/blog).\n\nAt the [2005 Crested Butte workshop](34_cb.html) Erik Doernenburg and gave each other demos of our visualization work. After we managed\n to peek each other's interest we decided to create a [Talk on Software Validation](http://www.eaipatterns.com/docs/TSS_software_visualization.pdf). We have delivered the talk a few times and have received great feedback. The talk\n is especially fun because it includes five live demos (and they usually work).\n\n## Sharing is Caring\n\nThese demos also provided a reminder how useful it is to share your code with the\n community. At JavaZone in Oslo my hard drive crashed shortly before our talk and I\n was not able to run the demos off my machine. Luckily, my messaging toolkit is [available for download](../downloads.html), so I was able to quickly install the demo on Erik's machine. Setting up under time\n pressure also provided an excellent data point regarding the \"out of box experience\"\n with the toolkit.\n\n## Show Me the Money\n\nMy section of the talk is based on my earlier work with [Visualizing Dependencies](11_dependencies.html). I instrumented a simple messaging library so that all publication and subscription\n information is sent to a [Control Bus](../ControlBus.html) channel. A visualizer component listens on the control bus channel and converts the\n publication and subscription information into a graph, which it subsequently renders\n into a GIF image.\n\nDuring our talk we mention an \"advanced\" technique that would not just render an\n image of the system model, but also examines the model and alerts the user about potential\n problems. It does so by applying known rules for \"do's\" and \"don'ts\" to the model.\n These rules could be as simple as \"circles in your dependency graph are bad\" or one\n of those sophisticated self-learning AI algorithms that we never quite understand.\n The only catch is that we actually never demo such a validation tool. Finally the\n time came for me to put my money where my mouth is and enhance the messaging toolkit\n to perform validations of the messaging system.\n\n## The Model is the Key\n\nOne of the key messages we are trying to highlight during our talk is the importance\n of mapping the captured data to a model that is suited to answering the questions\n you are interested in. This model can be a graph, a process or any other abstract\n representation of your system. Making a model is important for a number of reasons:\n\n- It is just plain old separation of concerns: extracting data from your system (from\n design artifacts or the running system) should be separated from analyzing the data.\n A model defines the connection between these two steps\n- Your system typically limits what kind of data you can extract from it. For example,\n if all you have to work with is a log file then, well, your input data is going to\n be in the format of the log file. Not much choice there. Even if the system gives\n you access to more data it is often a good strategy to work with the data that is\n easy to get to. Good visualizations very much depend on the context in which they\n are used, so being pragmatic when extracting data is a good strategy. However, that\n usually means that the data you get is not ideal for visualizing or validating. That's\n why transforming it into a model is useful.\n- Even if the data that you pull from the system is represented in a way that is close\n to what you need, a small dose of abstraction and stratification almost always helps.\n The model can eliminate idiosyncrasies in the input data, make navigating the data\n easier, or create a nice OO representation of poorly structured input data.\n- A model also allows you to more easily reuse known algorithms. Mapping your input\n data into a graph gives you instant access to a wealth of algorithms. Finding circles,\n longest paths, etc becomes (almost) trivial.\n- Once you harvested data from your system you want to be able to create different visualizations\n and validations rapidly. Again, having a nice representation of your data supports\n experimenting.\n\n## A Graph Model\n\nAfter I convinced myself that a model is a useful thing I set out to make one. My\n [simple messaging toolkit](../downloads.html) allows users to compose solutions by connecting system components through message\n channels. The resulting system very much resembles a graph, where nodes represent\n the components and edges represent the message channels. This is the model I want\n to extract from a running messaging system.\n\nI developed the model generation as an add-on to the [existing visualizer](11_dependencies.html). The visualizer listens on the [Control Bus](../ControlBus.html) for messages announcing components sending messages to and receiving messages from\n certain channels. Instead of rendering a picture, the validator's role is to create\n a graph model and to analyze it.\n\nMaybe I am biased but the first high-level architecture that came to mind for this\n task was a processing pipeline:\n\nIf Conway's law holds true in the reverse I must be 4-way schizophrenic. In all earnest\n I think this is one of the many cases where a \"non-OO\" top-level architecture works\n very well and can be nicely implemented using an OO language. The pipeline consists\n of 4 parts:\n\n| **Component** | **Purpose** | **Input** | **Output** |\n| --- | --- | --- | --- |\n| Parser | Parse XML messages from the control bus into a strongly typed format | XML | Events |\n| Graph Generator | Construct a graph from the control bus data | Events | Graph Nodes & Edges |\n| Validation | Run algorithms over the graph | Graph Nodes & Edges | List of error and informational messages |\n| Renderer | Display results to the user | List of messages | HMTL page |\n\nThe most interesting parts of the chain are the Graph and the Validation. The Parser\n and Renderer are nothing more than adapters from the core algorithms into the outside\n world. The primary contribution of these components is to keep the core algorithm\n free of XML and HTML cruft.\n\n## Implementation Details\n\nLet's take a closer look at the second step in the pipeline – the graph generator.\n The generator receives events from the Control Bus, informing us of components publishing\n or subscribing to channels. Constructing a graph based on these events consists primarily\n of matching publishers and subscribers using the same channel. I have to apologize\n for not migrating the messaging toolkit to .Net 2.0, so this code does not use generics.\n I am still in shock, though, to discover that .Net collections do not provide a Set\n class! Luckily, I am not the first one noticing this oversight, so I pulled one off\n [Code Project](http://www.codeproject.com/csharp/sets.asp) (since then I discovered [C5](http://www.itu.dk/research/c5) and [PowerCollections](http://www.wintellect.com/powercollections)). Overlooking these little handicaps, the solution is fairly straightforward. The\n component converts a set of subscriptions and publications into a set of nodes and\n edges. The method works off `publications` and `subscriptions` dictionaries that map from a channel name to a list of publishing and subscribing\n components, respectively. The good news is that this is a demo application and not\n a Google job interview so we don't have to come up with a *O(1)* algorithm but simple nested loops will do. The real trick here is to define Node\n and Edge as value objects. This makes it easy to just new up nodes and edges at will\n and add them to a set. The value-based equality of these objects ensures that the\n sets hold at most one instance of each node or edge object.\n\n```\nvoid BuildEdges(IDictionary publications, IDictionary subscriptions)\n {\n foreach (string channel in publications.Keys)\n {\n if (subscriptions.Contains(channel))\n {\n foreach (string pub in (IList) publications[channel])\n {\n foreach (string sub in (IList) subscriptions[channel])\n {\n AddEdge(channel, new Node(pub), new Node(sub));\n }\n }\n } \n }\n }\n```\n\nBecause not all nodes are actually connected to other nodes we need to make sure\n that all nodes are represented in the graph, even if they are isolated.\n\n```\nvoid BuildNodes(IDictionary publications, IDictionary subscriptions)\n{\n foreach (string channel in subscriptions.Keys)\n {\n foreach (string subscriber in (ArrayList) subscriptions[channel])\n {\n nodes.Add(new Node(subscriber));\n }\n }\n foreach (string channel in publications.Keys)\n {\n foreach (string publisher in (ArrayList) publications[channel])\n {\n nodes.Add(new Node(publisher));\n }\n }\n}\n```\n\nThis approach is a bit brute force but plenty good for a demo application. Again,\n the set collection ensures that each node and edge is only stored once in the graph.\n\n## Connectedness\n\nNice separation of concerns enables us to generate a graph that has very little to\n do with message channels or publications. This makes it easy to run standard graph\n algorithms against our system model. For example, we can easily determine whether\n the graph is fully connected, i.e. whether all nodes are connected through edges.\n Depending on the messaging solution a disconnected graph is not necessarily an error\n condition, but it provides a useful status check. For example, if we are building\n a single message pipeline and we find that the graph is not connected, something must\n have gone wrong, maybe because a component shut down or a channel was misnamed.\n\nTo assess the connectedness of a graph, the direction of the edges is not relevant.\n Therefore, for each existing edge we add a reverse edge between the same nodes (see\n figure). Now can just pick any node and from there recursively traverse all neighboring\n nodes. Once we are done, we can check whether we visited all nodes in the graph. If\n so, the graph is connected, otherwise it consists of multiple \"islands\".\n\n## Did Google Make a Hiring Mistake?\n\nAnother useful property of the directed message graph is the presence of circles.\n Again, circles are not a show stopper but they can be an indicator of a solution that\n is request-reply heavy as opposed to a pipes-and-filters message flow.\n\nA simple depth-first-search (DFS) can easily find circles in a graph. If you hit a\n node you already visited, the graph contains a circle. Finding circles in a directed\n graph is not quite so trivial. When the search hits a node that was already visited,\n the algorithm has to distinguish between upward edges and sideways edges. This ensures\n that a \"diamond pattern\" is not reported as a circle. For example, DFS over the following\n graph hits node D twice, but the graph does not contain a circle.\n\nThis took me a bit of work to get it to work correctly. Maybe this is a sign that\n Google should not have hired me—they love to ask these kinds of algorithm questions\n in job interviews ;-P Once again mapping the messaging into a generic graph paid off\n because it made creating unit test cases very easy:\n\n```\npublic void GraphWithDiamondButNoCircles()\n{\n graph.AddEdge(\"AB\")\n .AddEdge(\"AC\")\n .AddEdge(\"BD\")\n .AddEdge(\"CD\");\n \n Assert.IsFalse(new CircleFinder(graph).HasCircles());\n}\n```\n\nThey to making these tests so simple is a little helper class that makes string assumptions\n (e.g. nodes have only single letter names) and allows method chaining by returning\n `this`.\n\n```\nclass SimpleGraph : DirectedGraph\n{\n internal SimpleGraph AddEdge(String edgeString)\n {\n if (edgeString.Length != 2)\n {\n throw new ArgumentException(\"test edge string has to have two characters\");\n }\n Node source = new Node(edgeString.Substring(0, 1));\n Node dest = new Node(edgeString.Substring(1, 1));\n AddEdge(edgeString, source, dest);\n return this;\n }\n}\n```\n\n## Tying up Loose Ends\n\nYou can do cool things with graphs, but there is another interesting validation you\n can perform before you build the graph. The graph model assumes senders and receivers\n are connected via channel. But what if a component sends messages to a channel that\n no one listens to? Such a \"loose end\" would certainly seem suspicious.\n\nOnce again I access the `publications` and `subscriptions` dictionaries that map from a channel name to a list of publishing and subscribing\n components. Finding publishers that have no one to talk to is as simple as this:\n\n```\nIList PublishersWithoutSubscribers()\n{\n IList result = new ArrayList();\n foreach (string queue in tracker.Publications.Keys)\n {\n if (!tracker.Subscriptions.Contains(queue) || ((ICollection)tracker.Subscriptions[queue]).Count == 0)\n {\n foreach (string component in (ICollection)tracker.Publications[queue])\n result.Add(new EndPoint(component, queue));\n }\n }\n return result;\n}\n```\n\nThis code finds channels that have no subscribers and adds all publishers to such\n a channel to the list. Note that we left the formatting of the error message to the\n output component.\n\n## Hooking it all Together\n\nThe existing Visualizer component already tracked messages for the purpose of graph\n rendering. We can now hook the Validator into the same infrastructure.\n\nThis is where delegates make it very easy to hook in additional algorithms to the\n original parser.\n\n## Output – Keep it Simple\n\nNow that we encapsulated all the business logic rendering the messages is trivial.\n First, we need to decide which messages are warnings and which ones are just informational.\n Lastly, we need to render into a suitable output format. Once again creating an HTML\n file with a META-REFRESH tag in the header proved to be more than sufficient. This\n causes the browser to reload the file every few seconds or so, giving us \"real-time\"\n display of warning messages:\n\n## Future Plans\n\nYou could think of many more validations. For example, one could check whether all\n competing consumers on a single queue are of the same type. Different kinds of consumers\n competing for the same type of message is probably suspicious.\n\n## Try for Yourself\n\nThe updated messaging kit is [available for download](../downloads.html). Starting the Visualizer (see instructions) by default generates two HTML files:\n `graph.html` and `validation.html`. `graph.html` shows the rendered GIF image of the message graph while `validation.html` displays warnings and informational messages. To test the system, simply start the\n `Visualizer` and a logger to an unused channel: `logger someChannel`. The `validation.html` contains a message:\n\n```\nWARNING: Component Logger\\nsomeChannel subscribes to somechannel, which has no publishers.\n```\n\n*Share:*\n\n*Follow:* [Follow @ghohpe](https://twitter.com/ghohpe) [SUBSCRIBE TO FEED](../ramblings.rss)\n\n*More On:* [VISUALIZATION](/ramblings_visualization.html) [MODELING](/ramblings_modeling.html) [ALL RAMBLINGS](../ramblings.html)\n\nGregor is a cloud architect and author. He is a frequent speaker on asynchronous messaging,\n IT strategy, and cloud.", "znaku_textu": 14713, "slov": 2281, "odkazu": 51, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 15:36:16", "sha256": "cbfd8e4f7813cd41c75c6b3ecf1132b495ab4af9a4de0de362bee0c4bde8f5f9", "hloubka": 4, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://architectelevator.com/blog", "http://www.eaipatterns.com/docs/TSS_software_visualization.pdf", "http://www.codeproject.com/csharp/sets.asp", "http://www.itu.dk/research/c5", "http://www.wintellect.com/powercollections", "https://twitter.com/share", "https://twitter.com/ghohpe", "https://leanpub.com/37things"]} {"url": "http://www.enterpriseintegrationpatterns.com/ramblings/49_mvpsummit.html", "titulek": "Microsoft MVP Summit - Enterprise Integration Patterns", "h1": "Microsoft MVP Summit", "popis": "Even though I have been working for the (self-declared) non-evil empire for a while now, I still have a lot of ties to the Microsoft community, even beyond drinking Weissbier with Christian Weyer", "klicova_slova": "", "kanonicka": "", "jazyk": "en_US", "robots_meta": "", "og": {"og:type": "article", "og:locale": "en_US", "og:site_name": "Enterprise Integration Patterns", "og:title": "Microsoft MVP Summit", "og:description": "Even though I have been working for the (self-declared) non-evil empire for a while now, I still have a lot of ties to the Microsoft community, even beyond drinking Weissbier with Christian Weyer", "og:url": "https://www.enterpriseintegrationpatterns.com/ramblings/49_mvpsummit.html"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Microsoft MVP Summit"}, {"uroven": 2, "text": "Billg Unplugged"}, {"uroven": 2, "text": "Tightlipped"}, {"uroven": 2, "text": "Social"}, {"uroven": 2, "text": "Messaging Toolkit Update"}], "markdown": "Gregor's Ramblings\n\n---\n\n# Microsoft MVP Summit\n\nMarch 25, 2007\n\nFind my posts on IT strategy, enterprise architecture, and digital transformation\n at [ArchitectElevator.com](https://architectelevator.com/blog).\n\nEven though I have been working for the (self-declared) non-evil empire for a while\n now, I still have a lot of ties to the Microsoft community, even beyond drinking Weissbier\n with [Christian Weyer](http://www.thinktecture.com/staff/christian). I am particularly proud that I have been able to maintain my MVP status, Microsoft's\n Most Valuable Professional award. Having \"Google\" on my badge certainly gave some\n softies the chills at this NDA-only event. But I think having me there is a great\n testimony to the MVP program being focused on community, not corporate rivalry (and\n chair throwing). Furthermore, this event focuses on languages, frameworks, and tools\n for the Microsoft developer community, whereas very few of Google's offerings (e.g.,\n [GWT](http://code.google.com/webtoolkit/)) are targeted directly at developers. In any case, the event was a great opportunity\n to spend some time with fellow MVPs and to get access to Microsoft product groups\n in a more intimate setting than the usual TechEd mayhem.\n\n## Billg Unplugged\n\nThe MVP summit also provided a chance to see Bill Gates in a smaller setting, where\n smaller means about 1500 people as compared to the 25,000 or so attendees at the average\n TechEd event. Despite the various opinions about Microsoft I count billg as one of\n the more popular and personable leaders in the IT space. Admittedly this crowd was\n pretty much as friendly as it gets, but it was still nice to see standing ovations\n and the several GB of digital images being produced within seconds of Bill's appearance\n on stage. The format of the talk was excellent: about 20 minutes of PowerPoint-less\n presentation followed by extensive Q&A (I wish more of the sessions would have followed\n this format). The topics Bill touched on were not entirely surprising, but they provided\n some nice reassurance that Redmond is thinking about many of the same things the developer\n community is thinking about:\n\n- Challenges in programming for multi-core chips. How can we enable the average developer\n to write programs that take advantage of today's (and tomorrow's) multi-core chips?\n- Ubiquitous wireless / broadband access change the way people interact with the Internet.\n Bill mentioned cities being covered with mesh-like wireless networks. He did not point\n out Mountain View in particular…\n- Transition from 32 bit to 64 bit computing. According to Bill we are not going to\n see another address bus width change for quite some time, so this one is exciting.\n- Video as the \"final frontier\" of the Internet. According to Bill, YouTube is just\n the very beginning. For example, Bill is interested to see how businesses and consumer\n manage their video data, such as classroom lectures, company meetings etc. Content\n will be more targeted to viewer's interests and so will be the ads.\n- Programs no longer run on a single computer but on a vast, dynamic infrastructure.\n A developer won't even know which machine the program runs on – a machine is selected\n based on criteria. This also raises questions of how to deal with problems. For example,\n which exceptions are meant for the hosting operator (e.g., disk full, network failure)\n and which ones are meant for the developer (e.g. application exceptions). Having divided\n roles requires a much better separation.\n- Expect more Web-based services like data storage and back-up. Also, expect more services\n related to identity (passport?), payment, reputation. The BizTalk team has made a [Security Token Service](http://sts.labs.live.com/) and a [Relay Service](http://relay.labs.live.com/) available already:\n\nFun quote: Bill started off one of his topics talking about \"Microsoft and others\n who do search…\" Who might he be referring to? The whole [transcript of his talk is available](http://www.microsoft.com/presspass/exec/billg/speeches/2007/03-13MVPSummit.mspx).\n\n## Tightlipped\n\nMost remaining sessions of the summit fall under our individual non-disclosure agreements\n with Microsoft. I wish the product teams had used that as an opportunity to give us\n some insights beyond the (not so secret) [Orcas CTP](http://www.microsoft.com/downloads/details.aspx?familyid=281FCB3D-5E79-4126-B4C0-8DB6332DE26E&displaylang=en) (while on that topic, it seems that you want to install the 7-part version, not the\n 9-part version). Anders talked about Linq (no surprise here), the Connected Systems\n Divisions showed Workflow enabled Services (interesting, and also in the CTP). I was\n excited to see that the CTPs now come as Virtual PC images so I no longer have to\n install OS, .Net, Studio etc etc. You \"just\" downloaded the 5 GB or so and let it\n run. Excellent idea. I attended mostly the CSD (Connected Systems Division) track.\n This group unites both the old \"Indigo\" team and BizTalk. Accordingly, they fielded\n a number of questions on how they will collaborate etc. According to Clemens \"we now\n love each other.\"\n\nDon Box gave a great session on his current work (super-secret). Luckily, his jokes\n should be non-confidential. My favorite quote: \"I like Ruby for its directness but\n I always feel a little dirty afterwards\"\n\n## Social\n\nWith the rather strict NDA most that is left to report is of social nature. [Scott Bellware](http://geekswithblogs.net/sbellware/) was on his best behavior, the Canadians were loud and wore goofy Maple leaf shirts,\n the bus driver pointed out Bill's house on 76th Ave, the [line to the Microsoft Company store](http://farm1.static.flickr.com/164/427742606_3870a7129f.jpg) was infinitely long (I sacrificed one session to go early), Software in the Store\n was cheap ($45 for Vista Ultimate), and it only rained a little. It was great to also\n great to see my friends from far-away places like Japan. As expected, the Japanese\n team [aced the Karaoke contest](http://www.flickr.com/photos/skylinegtr/427742244/), and the vegetarian food at the [Museum of Flight party](http://www.flickr.com/photos/skylinegtr/427742140) was excellent.\n\n## Messaging Toolkit Update\n\nWhile I have your attention I want to point out that I ported the [Simple Messaging Toolkit](../downloads.html) to .Net 2.0 and fixed a few bugs. You can now also pass your own item strings to\n the Customer component if you rather order Hot Dogs, Fries, and Burgers as opposed\n to Coffee, Latte, and Frappucino. And some people claim creating domain-specific languages\n is difficult :-)\n\n*Share:*\n\n*Follow:* [Follow @ghohpe](https://twitter.com/ghohpe) [SUBSCRIBE TO FEED](../ramblings.rss)\n\n*More On:* [EVENTS](/ramblings_events.html) [ALL RAMBLINGS](../ramblings.html)\n\nGregor is a cloud architect and author. He is a frequent speaker on asynchronous messaging,\n IT strategy, and cloud.", "znaku_textu": 6864, "slov": 1031, "odkazu": 56, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 15:36:15", "sha256": "6823b76f8ff021efa048c80fbd21bdee4fcfd789250dfb24f0979b10b59fa484", "hloubka": 4, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://architectelevator.com/blog", "http://www.thinktecture.com/staff/christian", "http://code.google.com/webtoolkit/", "http://www.flickr.com/photos/skylinegtr/427741304/", "http://sts.labs.live.com/", "http://relay.labs.live.com/", "http://www.microsoft.com/presspass/exec/billg/speeches/2007/03-13MVPSummit.mspx", "http://www.flickr.com/photos/skylinegtr/427741372", "http://www.microsoft.com/downloads/details.aspx?displaylang=en&familyid=281FCB3D-5E79-4126-B4C0-8DB6332DE26E", "http://geekswithblogs.net/sbellware/", "http://farm1.static.flickr.com/164/427742606_3870a7129f.jpg", "http://www.flickr.com/photos/skylinegtr/427742244/", "http://www.flickr.com/photos/skylinegtr/427742140", "https://twitter.com/share", "https://twitter.com/ghohpe", "https://leanpub.com/37things"]} {"url": "http://www.enterpriseintegrationpatterns.com/ramblings/50_publications.html", "titulek": "I May Be a Flake, But At Least I Am Published! - Enterprise Integration Patterns", "h1": "I May Be a Flake, But At Least I Am Published!", "popis": "I have been pretty quiet recently, but I finally have some results to show", "klicova_slova": "", "kanonicka": "", "jazyk": "en_US", "robots_meta": "", "og": {"og:type": "article", "og:locale": "en_US", "og:site_name": "Enterprise Integration Patterns", "og:title": "I May Be a Flake, But At Least I Am Published!", "og:description": "I have been pretty quiet recently, but I finally have some results to show", "og:url": "https://www.enterpriseintegrationpatterns.com/ramblings/50_publications.html"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "I May Be a Flake, But At Least I Am Published!"}], "markdown": "Gregor's Ramblings\n\n---\n\n# I May Be a Flake, But At Least I Am Published!\n\nMay 2, 2007\n\nFind my posts on IT strategy, enterprise architecture, and digital transformation\n at [ArchitectElevator.com](https://architectelevator.com/blog).\n\nSorry for the somewhat unsubstantive post but I wanted to point you to some of my\n recent works to tie you over until my next \"real\" post.\n\nSteve Vinoski has been running the [IEEE Internet Computing](http://www.computer.org/internet) column [Toward Integration](http://dsonline.computer.org/portal/site/dsonline/menuitem.bc6cc7000140e2ec2587e0606bcd45f3/index.jsp?&pName=dso_level1_article_list&TheCat=1030) for some 30 issues now. I have the honor to be their first guest author with [\"Let's have a Conversation\"](/docs/IEEE_IC_Conversations.pdf).\n\nGernot Starke and Stefan Tilkov assembled a whole book full of articles by SOA experts.\n The \"edited by\"-style books can be hit or miss but it looks like Gernot and Stefan\n have done a great job ensuring consistently high quality. The book [SOA Expertenwissen](http://www.dpunkt.de/buecher/3-89864-437-5.html) is scheduled to be published in June. Only catch -- it is in German.\n\nLast but not least Floyd Marinescu recorded my [Developing in a Service-oriented World](http://www.infoq.com/presentations/hohpe-soa-development) talk at [JavaZone](http://www.javazone.no) in Oslo. The [video is now available on InfoQ](http://www.infoq.com/presentations/hohpe-soa-development). Be careful to turn the volume down. And Markus is right -- I do say \"sort of\" too\n much. I guess this is the trick you learn being a consultant: \"I never said to do\n it this way. I said 'do it **sort of** this way'.\"\n\nIf you like the sound but can't bear the visuals, have a look (or listen) at my [podcast on messaging systems](http://www.se-radio.net/index.php?post_id=160206) on [SE Radio](http://www.se-radio.net).\n\nAlso, if you have not seen it, go and check out Ian Robinson's [article on consumer-driven contracts](http://www.martinfowler.com/articles/consumerDrivenContracts.html). I found it very interesting.\n\nThanks for listening! BTW, I used the line in the title once for an autograph to a\n friend of mine after I (inadvertently) stood her up. I hope it helped...\n\n*Share:*\n\n*Follow:* [Follow @ghohpe](https://twitter.com/ghohpe) [SUBSCRIBE TO FEED](../ramblings.rss)\n\n*More On:* [GREGOR](/ramblings_gregor.html) [WRITING](/ramblings_writing.html) [ALL RAMBLINGS](../ramblings.html)\n\nGregor is a cloud architect and author. He is a frequent speaker on asynchronous messaging,\n IT strategy, and cloud.", "znaku_textu": 2545, "slov": 335, "odkazu": 52, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 15:36:14", "sha256": "e76c5422d60507a6c729cd6c52fc1111cfc41808c584ab92aebacca1d8bd809f", "hloubka": 4, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://architectelevator.com/blog", "http://www.computer.org/internet", "http://dsonline.computer.org/portal/site/dsonline/menuitem.bc6cc7000140e2ec2587e0606bcd45f3/index.jsp?TheCat=1030&pName=dso_level1_article_list", "http://www.dpunkt.de/buecher/3-89864-437-5.html", "http://www.infoq.com/presentations/hohpe-soa-development", "http://www.javazone.no/", "http://www.se-radio.net/index.php?post_id=160206", "http://www.se-radio.net/", "http://www.martinfowler.com/articles/consumerDrivenContracts.html", "https://twitter.com/share", "https://twitter.com/ghohpe", "https://leanpub.com/37things"]} {"url": "http://www.enterpriseintegrationpatterns.com/ramblings/51_javaone.html", "titulek": "JavaOne 2007 - Enterprise Integration Patterns", "h1": "JavaOne 2007", "popis": "JavaOne is one of the few geek conferences that take place in San Francisco", "klicova_slova": "", "kanonicka": "", "jazyk": "en_US", "robots_meta": "", "og": {"og:type": "article", "og:locale": "en_US", "og:site_name": "Enterprise Integration Patterns", "og:title": "JavaOne 2007", "og:description": "JavaOne is one of the few geek conferences that take place in San Francisco", "og:url": "https://www.enterpriseintegrationpatterns.com/ramblings/51_javaone.html"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "JavaOne 2007"}, {"uroven": 2, "text": "Gregor = Booth Babe"}, {"uroven": 2, "text": "Real Lessons Learned"}, {"uroven": 2, "text": "Mashup Blueprints"}, {"uroven": 2, "text": "Designing Service Collaborations"}, {"uroven": 2, "text": "SCA != SOA"}, {"uroven": 2, "text": "Highlights and Lowlights"}, {"uroven": 2, "text": "Networking Activities"}], "markdown": "Gregor's Ramblings\n\n---\n\n# JavaOne 2007\n\nMay 11, 2007\n\nFind my posts on IT strategy, enterprise architecture, and digital transformation\n at [ArchitectElevator.com](https://architectelevator.com/blog).\n\n## Gregor = Booth Babe\n\nAs last year, Google had a booth at the JavaOne Pavillion, i.e. show floor. This year,\n though, the focus extended beyond just recruiting and giving out swag to include demoing\n some of our developer-focused products. Most of the [GWT](http://code.google.com/webtoolkit/) team were here to give demos and answer questions and Patrick (also a presenter at\n JavaOne) showed off [Google Checkout](http://checkout.google.com). Google is also holding a developer day later this month, underlining the increased\n focus on the developer community (aka the people we have not hired yet).\n\n## Real Lessons Learned\n\nBeing a booth babe equipped me with a mere \"Pavillion Only\" pass. So I decided to\n put my fame to test and request a press pass. Sure enough, I was allowed into the\n super-secret (and super not exciting) press lounge and into the actual sessions. Going\n to a large conference is always a good chance to catch up on all the technologies\n that you may have heard off but never had the time to have a closer look at. JavaOne\n always presents me with a particular challenge, though (besides having to get up in\n the morning after the late night socials): I typically attend sessions based on the\n speaker more than the topic. At JavaOne, however, many of the speakers are Sun engineers\n or product managers, so my usual filter function did not work very well. Accordingly,\n my biggest learnings were what to do and not to do in conference presentations. Because\n I surely committed one or more of these offenses during my talks, I have the more\n reasons to remind everyone here:\n\n- **Do not spend half of your talk \"motivating\" your topic.** If you can't interest people in your topic within the first 2 minutes, you should\n pick a different topic (or profession). [Hani](http://www.bileblog.org) captured how we [endured a never ending introduction](http://www.bileblog.org/?p=332) that began with the economics of development ( *Benefit > Cost = Good* ) and \"progressed\" to a *Rename Method* refactoring after some 30 minutes (out of 60!). I give this particular talk an extra\n minus point for promising \"Advanced Refactoring Techniques\". What could be easier\n to demo than an IDE? But I guess if you don't have much to show you'll make up for\n it with a length intro.\n- **Kick off with a demo (or example)** . Building up to your topic allows you to introduce your line of reasoning and vocabulary\n to the audience. But it also leaves the audience dangling for a long time. Basically,\n this kind of intro is really for you (making it easier to make your point later) as\n opposed to the audience. Because the audience is the one who shells out the money\n (and time) here, you should make sure the presentation is for them, not you. Starting\n with a demo is certainly more difficult because it does not give you a chance to establish\n a lot of vocabulary or context. However, that's why it's you who is presenting and\n not some random sociophobic engineer.\n- **Have a rhythm.** Let's be honest: the average conference attendee arrives from a different time zone,\n is slightly jet-lagged, and often has to make do with 5 hours of sleep. That is 5\n hours at night. They usually get the other 2 or 3 hours during the day, i.e. in your\n talk. Nothing makes people nod off faster than a soothing and constant lullaby of\n arcane technical data -- no matter how relevant it is. To fight the audience's urge\n to sleep make sure you have some fast parts, and some slow parts, some loud parts\n and some quiet parts. Tell an anecdote, get people to laugh, or, better yet, to applaud:\n whenever dozers hear applause their subconscious triggers the \"end of session\" signal\n causing them to wake up immediately. Now you have another chance to engage them.\n- **Tell a story.** The old \"My name is Dilbert and I am here to tell you about\" technique only goes\n so far. Make sure you have an easy to follow story for your talk. Not the kind of\n story a 2-year-old tells ( *and then we used Java (TM) technology. And then we used this cool new API. And then\n everything was good* ). But one with turning points, road blocks, desperation, solutions, euphoria, betrayal,\n love, hate etc. This comes back to the \"rhythm\" point. Also, having a good story allows\n the dozers to catch up more easily once they re-enter the *awake* state.\n- **Make sure you solve an actual problem.** This must sound like motherhood and apple pie, but I guess not everybody has gotten\n it. I still see a lot of presenters selling solutions that seem intellectually useful\n without ever applying them to an actual problem. At academic conferences you can usually\n spot these kinds of talks by the work *toward* in the title, but professional presenters tend to put snazzy titles on purely conceptual\n talks, making the more difficult to spot. I certainly have given my share of conceptual\n talks, but at least let's be honest and state this fact in the title.\n- **Not everything you say has to be brand new.** Hani and I once joked that the highest rated talks are the ones that tell developers\n what they already know. Granted, there is a difference between *highest rated* and *best* but there is still a lesson to be learned here. Many developers are not looking for\n the sneak preview of the pre-beta-alpha API but could use some confirmation of what\n they are currently doing. Helping them conceptualize and better understand their current\n work leaves them reconfirmed and they can go back and tell their boss that they were\n right all along.\n- **Never let anyone touch your slides after you have last seen them.** JavaOne is infamous for muddling with presenters' slides. Of course there is the\n mandatory `:s/Java/Java(TM) Technology` act, but it gets worse. More than one presenter lamented the fact that the final\n edit (for style presumably) introduced factual errors or rendered graphics useless.\n You have to stand up in front of 500 people -- you should get the last word.\n\n## Mashup Blueprints\n\nMy first session I attended was \"Blueprints for Mashups\". For a Googler I am embarrassingly\n ignorant on the whole RIA (Rich Internet Application) topic space, so this seemed\n to be a good way to catch up, reconfirmed by the incredibly long line (see picture).\n The content wasn't even that bad -- the presenters offered solution recipes for issues\n developers tend to encounter when building mashups. For example, accessing external\n servers from a client-side mash-up is often restricted through cross-site scripting\n constraints. To solve this problem you can proxy through your server, which in turn\n accesses the external resource. This \"pattern\" allows you to keep control of any developer\n keys you need to access the external site and also allows you to cache data. The main\n drawback is that you have to deal with two HTTP hops (unless you get a cache hit).\n They also showed a variety of approaches to deal with developer authentication for\n your APIs. A lot of the examples used [jMaki](https://ajax.dev.java.net/) but I did not pay enough attention to really form an opinion on it. I also took note\n of the recently established [JSR 311 (JAX-RS: The JavaTM API for RESTful Web Services)](http://www.jcp.org/en/jsr/detail?id=311). Sounds interesting but I gave up trying to follow every proposed Java API years\n ago. Again, the overall content was a little high-level but not bad. However, somehow\n this ended up being one of the presentations that just seemed to trickle along in\n a steady stream, putting people to sleep one by one (see advice above). So I decided\n to wander down the hall and stumbled upon...\n\n## Designing Service Collaborations\n\nWalking down the hall I realized that a talk on conversations was going on at the\n same time. Naturally, I wanted to catch as much of it as I could. Getting to this\n talk 15 minutes before the end, I was warned by the people scanning badges that everybody\n left the talk saying it was boring. I snuck into the room to find Mark Hapner presenting\n to a hard core of 100 or so people. I love Mark, but it would not be unfair to say\n that his IQ outweighs his charisma as a speaker by about 10 : 1. Of course this topic\n is close to my heart, so I tried to make the best our of the short time. In brief,\n Mark is urging developers to focus on what's going on the wire (as opposed to inside\n your apps). You'll be thinking about conversations, correlation, Message Exchange\n Patterns, etc. He left us with a pointer to [Open ESB](http://open-esb.org), which I am going to check out.\n\n## SCA != SOA\n\nThe Panel \"SCA/SDO and Java Technology: Complementary Technologies That Drive Open\n SOA Environments\" was well attended and featured a promising line-up of panelists\n from BEA, IBM, Oracle, SAP, Sun, and TIBCO, who are all implementing the [SCA Specification](http://www.osoa.org/display/Main/Service+Component+Architecture+Home). [David Chappell (the one)](http://www.davidchappell.com/) moderated while David Chappell (the other) spoke for Oracle. You can easily tell\n them apart by their attire: David Chappell (the other) is dutifully wearing his company\n logo shirt as not to be mistaken for the (late) David Chappell who worked for Sonic,\n while David Chappell (the one) will not be caught without European designer fashion.\n David (the one) has been focusing on writing lately so it was fun to see him live\n again. He made an excellent moderator, quickly pinpointing two key issues around SCA:\n\n- Are the vendors supporting both SCA's programming model and the assembly model?\n- Is SCA really suitable for SOA as it requires that a single composite is running within\n a single vendor environment?\n\nThe programming model, much like Microsoft's WCF, provides a unified API for all kinds of distributed systems communication. In the\n Microsoft world this is a big deal, and rightly so. So it was a little surprising\n that the vendor support for SCA's programming model is at best luke warm. Even a lot\n of the \"official\" documents seem to downplay this aspect of the spec. Only IBM and\n BEA are really supporting both aspects while the others openly stated that the programming\n model is not their focus. A poll to the audience (\"who would like to see a new programming\n model\") seemed to confirm this attitude (no hands went up) but I think this might\n be misleading. I agree that learning a new model is always a liability, unless it\n replaces multiple outdated programming models and makes developers more productive\n and code easier to understand. I don't think this aspect came out in the question\n to the audience.\n\n[When I looked at SCA before](44_dagstuhl.html) it totally escaped me that the spec assumes that a composite has to run in a single\n vendor environment. This limitation means to me that SCA has relatively little to\n do with SOA, which has to deal with an environment that is heterogeneous and not controlled\n by a single vendor. This does not mean that SCA is useless, but it means that it targets\n \"programming in the middle\" (wiring components in a single vendor environment) as\n opposed to \"programming in the large\" (wiring services in an enterprise setting).\n This makes all sense because the \"programming in the large\" is the realm of the WS-*\n specs but it was still surprising to me that I missed this critical part.\n\nDavid has [summarized his take-away](http://www.davidchappell.com/blog/2007/05/supporting-scas-java-component-model.html) in more detail and, as expected, more eloquently.\n\n## Highlights and Lowlights\n\nBrian Goetz and Bill Pugh gave a nice talk on testing concurrent systems. The definite\n low-light for me was *Advanced Java Programming Language Refactoring: Pushing the Envelope*. The only pushing I observed were the people being pushed out of the room by the\n never ending introduction into the topic material. We all agree that having benefit\n outweigh cost is a good thing, so no need to reiterate that. If you spend half your\n talk leading into your topic you run the danger of boring and/or insulting your audience\n to death, not to mention [being biled](http://www.bileblog.org/?p=332). How about \"Who here does not want to be more productive?\" as an opening, followed\n by an impressive demo? Sadly, this talk reconfirmed my impression that NetBeans is\n not really worth looking at. Go IntelliJ!\n\nI only attended two BoF's due to the intense social schedule. I caught the tail end\n of \"Debugging BPEL Processes\" because it somehow took us 20 minutes to settle the\n dinner bill (software engineers and Dollar bills do not seem to mix). I followed up\n by Alex Ruiz presenting an open-source GUI testing framework. It was nice to see that\n a fair number of the presented projects are hosted on [code.google.com](http://code.google.com).\n\nAnother low-light must have been the wireless network. Full signal, but no IP or no\n gateway :-( No wonder Sun dropped *The Network is the Computer* from their corporate vocabulary. At JavaOne the network was a piece of crap...\n\n## Networking Activities\n\nWhat would JavaOne be without the social events? The Tangosol party was attended by\n the usual suspects, which made for an entertaining evening. Sadly we missed the moment\n where the bouncer denied Cameron admission to the party as he was lacking an invite.\n As usual, we were booted at 1am or so, aimlessly wandering the streets. Carlos reported\n back from a taxi that they are heading for *The Stud*. A few minutes later reported that they are coming back from Studs. And I thought\n Carlos is not even that bad looking...\n\nWeds night sported a host of company receptions and the exclusive-yet-not-so-exclusive\n reception Google reception at the (trying to appear exclusive) W Hotel. First i stumbled\n through Jillian's, hitting TerraCotta, Eclipse, Amazon, and IBM. The blogger event\n at Thirsty Bear was kinda lame, so we headed off to the Google party. They actually\n had poor Bob check for tickets at the door so I had to pull people in continually\n (somehow the people we really liked to be there were beaten by the swag hunters in\n the race for a ticket). The party was good fun but somehow ended a little early. A\n hort trip to House of Shields provided one more drink. Somehow the whole gang felt\n a little old and tired when compared to last year. Maybe we are actually getting old\n and tired. The only thing open after 2am appeared to be Denny's. Eating there was\n the penalty we morons paid for not knowing that there is a 24 hour Naan 'n Curry just\n a few blocks away. But then our stomachs may have thanked us.\n\nThe guiding theme for Thursday was provided by James observing that he \"has not gotten\n properly drunk yet\". After dinner and two BoF's (\"Debugging BPEL Processes\" and \"Simplifying\n GUI Testing\") it was time to hit the bar. We walked all the way to the Starlight room\n to join forces with James, Hani etc (who skipped the BoF's in favor of AsiaSF). In\n usual fashion we were booted at 1:30 or so. After the crowd thinned a little, six\n of us hopped into cabs to see how long the 15 beers in my fridge would last us. About\n 6am...\n\nSee you all next year!\n\n*Share:*\n\n*Follow:* [Follow @ghohpe](https://twitter.com/ghohpe) [SUBSCRIBE TO FEED](../ramblings.rss)\n\n*More On:* [EVENTS](/ramblings_events.html) [ALL RAMBLINGS](../ramblings.html)\n\nGregor is a cloud architect and author. He is a frequent speaker on asynchronous messaging,\n IT strategy, and cloud.", "znaku_textu": 15465, "slov": 2598, "odkazu": 60, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 15:36:13", "sha256": "a87020c68169def13f65de8d978a5bc8b78e71936b22977d5b4489e628135c8e", "hloubka": 4, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://architectelevator.com/blog", "http://code.google.com/webtoolkit/", "http://checkout.google.com/", "http://www.flickr.com/photos/skylinegtr/497014744", "http://www.bileblog.org/", "http://www.bileblog.org/?p=332", "http://www.flickr.com/photos/skylinegtr/497044305", "https://ajax.dev.java.net/", "http://www.jcp.org/en/jsr/detail?id=311", "http://open-esb.org/", "http://www.flickr.com/photos/skylinegtr/497044619/", "http://www.osoa.org/display/Main/Service+Component+Architecture+Home", "http://www.davidchappell.com/", "http://www.davidchappell.com/blog/2007/05/supporting-scas-java-component-model.html", "http://www.flickr.com/photos/skylinegtr/497015570/", "http://code.google.com/", "http://www.flickr.com/photos/skylinegtr/497014490", "https://twitter.com/share", "https://twitter.com/ghohpe", "https://leanpub.com/37things"]} {"url": "http://www.enterpriseintegrationpatterns.com/ramblings/52_soapatterns.html", "titulek": "My Loss, Your Gain - SOA Patterns Article - Enterprise Integration Patterns", "h1": "My Loss, Your Gain - SOA Patterns Article", "popis": "Beginning of this year I submitted an article to a renowned software publication who is running a special issue on software patterns", "klicova_slova": "", "kanonicka": "", "jazyk": "en_US", "robots_meta": "", "og": {"og:type": "article", "og:locale": "en_US", "og:site_name": "Enterprise Integration Patterns", "og:title": "My Loss, Your Gain - SOA Patterns Article", "og:description": "Beginning of this year I submitted an article to a renowned software publication who is running a special issue on software patterns", "og:url": "https://www.enterpriseintegrationpatterns.com/ramblings/52_soapatterns.html"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "My Loss, Your Gain - SOA Patterns Article"}, {"uroven": 2, "text": "Abstract"}], "markdown": "Gregor's Ramblings\n\n---\n\n# My Loss, Your Gain - SOA Patterns Article\n\nMay 21, 2007\n\nFind my posts on IT strategy, enterprise architecture, and digital transformation\n at [ArchitectElevator.com](https://architectelevator.com/blog).\n\nI just added a new article to my site. There is a lot going on in the area of SOA\n patterns but not everything that shines is gold. It thought it's time I'd share my\n thoughts on the intersection between patterns and SOA.\n\n## Abstract\n\nDesign Patterns have enjoyed enormous popularity in the software community and have\n become somewhat of a fad. This can make it challenging to distinguish patterns that\n convey new knowledge from recipes or tutorials that have been cast into patterns form.\n This article examines the role patterns play in the adoption of new technologies and\n architectural styles. In particular it describes why the shift to service-oriented\n architectures requires us to discover, document, and share new patterns.\n\n[Read the full article.](../docs/SoaPatterns.pdf)\n\n*Share:*\n\n*Follow:* [Follow @ghohpe](https://twitter.com/ghohpe) [SUBSCRIBE TO FEED](../ramblings.rss)\n\n*More On:* [WRITING](/ramblings_writing.html) [WEBSERVICES](/ramblings_webServices.html) [ALL RAMBLINGS](../ramblings.html)\n\nGregor is a cloud architect and author. He is a frequent speaker on asynchronous messaging,\n IT strategy, and cloud.", "znaku_textu": 1345, "slov": 181, "odkazu": 44, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 15:36:12", "sha256": "3bd04845436a54860497faf255fcb9a38445cbfbd0e31416fc919f2b87fb6419", "hloubka": 4, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://architectelevator.com/blog", "https://twitter.com/share", "https://twitter.com/ghohpe", "https://leanpub.com/37things"]} {"url": "http://www.enterpriseintegrationpatterns.com/ramblings/53_eric.html", "titulek": "Eric Newcomer is on to me - Enterprise Integration Patterns", "h1": "Eric Newcomer is on to me", "popis": "You can only get away with joking about transactions for so long before the gods of transactions bring you to justice", "klicova_slova": "", "kanonicka": "", "jazyk": "en_US", "robots_meta": "", "og": {"og:type": "article", "og:locale": "en_US", "og:site_name": "Enterprise Integration Patterns", "og:title": "Eric Newcomer is on to me", "og:description": "You can only get away with joking about transactions for so long before the gods of transactions bring you to justice", "og:url": "https://www.enterpriseintegrationpatterns.com/ramblings/53_eric.html"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Eric Newcomer is on to me"}], "markdown": "Gregor's Ramblings\n\n---\n\n# Eric Newcomer is on to me\n\nMay 26, 2007\n\nFind my posts on IT strategy, enterprise architecture, and digital transformation\n at [ArchitectElevator.com](https://architectelevator.com/blog).\n\nMy most popular rambling [Starbucks Does Not Use Two-phase Commit](18_starbucks.html) has been around for a good two years now and was even featured in Joel Spolsky's\n \"Best Software Writing\". So I should consider myself lucky that I escaped [Eric Newcomer](http://www.iona.com/info/aboutus/management/eric_newcomer.htm)'s scrutiny for so long. Eric is the long-time CTO of [IONA](http://www.iona.com), a company most of us value for being a bunch of really smart and nice people. In\n fact, they just gobbled up [James Strachan](http://macstrac.blogspot.com/) with LogicBlaze and John Davies with C24. I wonder how I was able to could miss starting\n a company and have it be acquired. Oh well. At least Google hired me :-)\n\nEric is well known and respected for co-authoring the highly recommended [Principles of Transaction Processing](http://amazon.com/o/asin/1558604154/ref=nosim/enterpriseint-20) amongst many other things. So you want to tread lightly with statements about transactions\n and two-phase-commit when you are around Eric because chances are he knows more about\n the topic than you do. So it was simply a matter of time until [my tongue-in-cheek statements about the relationship between coffee and distributed\n transactions](18_starbucks.html) [caught Eric's attention](http://blogs.iona.com/newcomer/archives/000495.html). I am a little embarrassed that so many people (including Eric) watched my [Developing in a Service-oriented World](http://www.infoq.com/presentations/hohpe-soa-development) talk on [InfoQ](http://www.infoq.com). But I guess eyeballs still count. Come on, click on one of those Google ads, help\n me pay for new gadgets^H^H^H^Hmaintaining this site! ;-)\n\nBut back to Eric. Interestingly Eric and I share a lot of the common interests but\n I don't think we ever formally met. I was back at the MVP meeting this year but somehow\n failed to run into him. Hopefully I get a chance to chat with him next time. Anyway,\n Eric pointed out that Starbucks does in fact use transactions for some parts of its\n business operations, such as recording the payment, if simply by virtue of using a\n (transactional) relational database. I think Eric and I both agree that distributed\n transactions have their pros and cons and we have to think about when to use them\n and when we can come up with alternate solutions. The Starbucks story was primarily\n aimed at those folks who claim that nothing can be done unless we have distributed\n transactions. So I wanted to highlight that real life can well happen without 2PC,\n while taking some literary license and with my tongue firmly planted in my cheek.\n Naturally, real life also uses 2PC. For example, the whole point of an escrow company\n during the purchase of a home is to ensure transactional integrity. I think living\n with uncertainty is a key theme of SOA (as well as asynchronous messaging) and we\n developers who love the command-and-control predictability of call stacks and ACID\n transactions better get used to it.\n\nI think Eric and I also have a very similar view on WS-CDL. CDL has conceptual appeal,\n but it has not seen very much uptake. I think the reason is partly political (for\n example, the big guns have lots of $$$ invested in BPEL) and partly because CDL is\n a conceptually heavyweight topic. I talked about this a little bit in [my article in IEEE Internet Computing](/docs/IEEE_IC_Conversations.pdf)\n\nI think transactions in large and distributed systems are likely to remain an active\n topic for some time to come. For example, Martin Fowler just recently wrote about\n being [transactionless](http://www.martinfowler.com/bliki/Transactionless.html). Also, [Pat Helland's post on SOA and relativity](http://blogs.msdn.com/pathelland/archive/2007/05/20/soa-and-newton-s-universe.aspx) relates very much to transactions and transactional scope in distributed systems.\n\nIn any case I hope to get a chance to chat more with Eric about SOA and transactions.\n And I'll be happy to buy him a coffee and observe whether the coffee shop does use\n transactions or not :-)\n\n*Share:*\n\n*Follow:* [Follow @ghohpe](https://twitter.com/ghohpe) [SUBSCRIBE TO FEED](../ramblings.rss)\n\n*More On:* [DESIGN](/ramblings_design.html) [ALL RAMBLINGS](../ramblings.html)\n\nGregor is a cloud architect and author. He is a frequent speaker on asynchronous messaging,\n IT strategy, and cloud.", "znaku_textu": 4559, "slov": 680, "odkazu": 54, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 15:36:11", "sha256": "4279c17c966f80019dd65ee8daff66e8417b9be21e415c8f380eebd5896ae118", "hloubka": 4, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://architectelevator.com/blog", "http://www.iona.com/info/aboutus/management/eric_newcomer.htm", "http://www.iona.com/", "http://macstrac.blogspot.com/", "http://amazon.com/o/asin/1558604154/ref=nosim/enterpriseint-20", "http://blogs.iona.com/newcomer/archives/000495.html", "http://www.infoq.com/presentations/hohpe-soa-development", "http://www.infoq.com/", "http://www.martinfowler.com/bliki/Transactionless.html", "http://blogs.msdn.com/pathelland/archive/2007/05/20/soa-and-newton-s-universe.aspx", "https://twitter.com/share", "https://twitter.com/ghohpe", "https://leanpub.com/37things"]} {"url": "http://www.enterpriseintegrationpatterns.com/ramblings/54_gdd.html", "titulek": "Google Developer Day - Enterprise Integration Patterns", "h1": "Google Developer Day", "popis": "Last week Google held a developer day in 10 cities around the world", "klicova_slova": "", "kanonicka": "", "jazyk": "en_US", "robots_meta": "", "og": {"og:type": "article", "og:locale": "en_US", "og:site_name": "Enterprise Integration Patterns", "og:title": "Google Developer Day", "og:description": "Last week Google held a developer day in 10 cities around the world", "og:url": "https://www.enterpriseintegrationpatterns.com/ramblings/54_gdd.html"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Google Developer Day"}, {"uroven": 2, "text": "Jeff Huber Keynote"}, {"uroven": 2, "text": "Jeff Dean"}, {"uroven": 2, "text": "GData APIs"}, {"uroven": 2, "text": "Networking"}], "markdown": "Gregor's Ramblings\n\n---\n\n# Google Developer Day\n\nMay 31, 2007\n\nFind my posts on IT strategy, enterprise architecture, and digital transformation\n at [ArchitectElevator.com](https://architectelevator.com/blog).\n\nMost of you have probably noticed that I rarely blog about anything related to Google.\n That's partly because a lot of the information is confidential and partly because\n a lot of it is frankly not that interesting (yes, even Google has boring projects).\n Luckily, an increasing number of Google products feature public APIs, and these are,\n well, public, so I can talk about them freely without risking being fired. In fact,\n the Google developer-focused products have reached enough critical mass to convert\n last year's geo developer event into a full fledged [Developer Day](http://code.google.com/events/developerday). Sort of like Microsoft's PDC or Sun's JavaOne but Googley. [This funny article](http://www.apcmag.com/6250/developer_wars_google_skinnies_versus_microsoft_fatties) highlights the major differences between a Google developer event and a Microsoft\n developer event so I don't have to.\n\nDeveloper Day took place in 10 cities around the world. Somehow I found out about\n the whole gig way to late and failed to put myself in for a speaking gig in Tokyo\n or Sao Paulo. Hopefully next year. This time I made do with attending the local event\n in San Jose, together with about 1500 attendees who came to find out more about the\n latest Google products, see cool demos, interact with the product teams and grab a\n free snack or two. Oh, btw, part of being Googley means being free so attending the\n event was free of charge.\n The first impression was quite positive. First off, the wireless did not suck (unlike\n JavaOne), there were free snacks, Lego tables, bean bags, and gigantic lava lamps.\n The wireless was in fact good enough to post a bunch of pictures to [Flickr](http://www.flickr.com) (hey, being interoperable is Googley). The images are tagged with \"GDD07\", so give\n it a try.\n\n## Jeff Huber Keynote\n\nJeff Huber kicked off with the keynote. Apparently Google has become the biggest independent\n network with over ½ billion unique visitors in a month. So we better listen up. Jeff\n gave a brief overview over the history of Google APIs: the Search API had its debut\n in 2002 and things got really interesting in 2005 when developers started to reverse\n engineer the Maps API. Today over 50,000 Web sites use the Google Maps API. The biggest\n deal in Google's API basket these days is [GData](http://code.google.com/apis/gdata/index.html). GData is the foundation for many product APIs such as Calendar, Spreadsheets, Base.\n Of course, it is in Beta, but that just makes it more exciting.\n\n**Google Mashup Editor**\n\nOf course Google wouldn't go through all this effort and expense if it didn't have\n any new products to announce. These days you are totally not cool if you haven't built\n a mash-up. Come on, do you still live in World 1.0? To make being cool a bit easier\n Google announced the [Mashup editor](http://editor.googlemashups.com/), an editing environment that pull different feeds together and outputs HTML pages,\n which include lists, maps, and other elements ([Yahoo Pipes](http://pipes.yahoo.com) more or less targets the same niche). While this is a cool tool I was hoping that\n the guy on stage would have actually hand-coded something, no matter how small or\n insignificant. I understand that keynotes are always rushed for time and you don't\n want to take any chances. But when it comes to developer tools, actually developing\n something is unbeatable. And after all we hire only the smartest and brightest, so\n I should not be asking too much.\n\n**Google Gears**\n\nThe other big news is Google Gears. We all love Google tools and applications, but\n they have one big limitation: you have to be connected to the Internet to use them.\n If you live outside of Mountain View (which Google blanketed with free WiFi access)\n that might not always be the case. That's where [Google Gears](http://gears.google.com/) comes in. Gears caches Web pages (or data) locally and also gives browser applications\n access to a local database. The ability to run off-line makes any RIA (Rich Internet\n Application) even richer. But before you convert all your apps, keep in mind that\n Gears is an experimental release, i.e. not recommended for production environments.\n\n**Maplets**\n\nThe Maps team did not want to be left behind and announced [Maplets](http://maps.google.com/preview). These mini applications allow you to plot data from different maplets onto the same\n map. For example, you can plot hotel prices (from Orbitz) and weather data (from weatherbug)\n onto the same map to find the best deal on a hotel outside San Francisco's fog belt.\n\n**Gadgets**\n\nThe keynote also reminded us how much traffic some of the Google Gadgets get. Not\n surprisingly, a game is near the top: PacMan got 6.7 million views a months while\n Notes is a strong contender with 4.7 million views. Think about the exposure (i.e.\n fame) and the potential AdSense Dollars (i.e. money). The keynote demo'd a cool gadget:\n the Expedia fare calendar. Given a source and destination it plots the lowest fares\n on a calendar-like widget. Maybe we are really entering the age of the widget economy.\n\n**Sergey**\n\nSergey Brin made a \"surprise\" appearance. Sergey mused how the Internet can help create\n developers by supplying dating services, which can lead to human offspring, who then\n can help develop more apps. A Matrix-like vision of a self-hosted Internet I guess.\n\n## Jeff Dean\n\nJeff Dean, a Google fellow, shared details about Google's core infrastructure. While\n some of the key components have been described in public papers (e.g. GFS, MapReduce,\n BigTable) this talk promised to give us a bit more insight into what is really going\n on in the Google data centers. Amazingly, Jeff shared quite a bit of detail, e.g.\n real pictures of Google server racks (I have not been able to find one for my public\n talks) and hard numbers.\n\nJeff reminded everyone that increasing amounts of data (his back of the napkin computation\n suggested we are dealing with 5 Exabytes or so per year) and smarter (i.e. computationally\n more intensive) algorithms cause a constant need for more computing power. Google's\n strategy is to optimize the price/performance ratio of its computing resources. As\n a result, Google data centers are not equipped with the latest high-end servers but\n rather with lots and lots of PC-class machines. Making the machines themselves more\n resilient, for example by equipping them with redundant power supplies typically does\n not pay off. The large number of machines make failures a question of when rather\n than if, so your software infrastructure has to be prepared to deal with it in any\n case. Once you have that infrastructure, the price increment to bring an individual\n machine from four 9's to five 9's availability is not warranted. You rather put the\n extra money into more machines, which are available most of the time.\n\nJeff ran through a quick history of Google data centers, starting with the infamous\n \"cork board\" machines, named after the cork board that separated the motherboard from\n the metallic tray. However primitive, this setup allowed 4 motherboards to be fitted\n on a single tray (and a single power supply). Subsequent generations of server racks\n have more computing power, cleaner cabling, but maintain the spirit of high-density,\n low-cost machines.\n\nBut this massive computing infrastructure comes to life only in combination with an\n appropriate software stack. Running programs on this many machines requires dealing\n with failing machines, huge amounts of data storage, back-ups, restart points etc.\n To make developing highly parallelized applications easier Google developed three\n pieces of core infrastructure:\n\n- GFS is Google's own file system. Why write another one? Google's data bandwidth requirements\n are fairly unique and since we have full control over all applications having them\n use a different file system is not difficult to do. GFS replicates data across chunk\n servers so that each 64 MB chunk of data is replicated across three physical disks.\n Some of the larger clusters have 50,000 chunk servers. A client writes to multiple\n servers at the same time so it does not have to wait for the data to be propagated,\n- If you need more structure than a flat file, BigTable comes to the rescue. Big table\n implements a very simple data base without all the gimmick's of a modern relational\n database. In return your data can be big: some of the larger cell hold 3,000 TB.\n- MapReduce is the key abstraction for parallel computing on Google's infrastructure.\n As the name suggests, it is a two-stage abstraction. The first stage computes a key\n for each input item whereas the second step aggregates all items with the same key.\n It is astonishing how many problems can be mapped into this abstraction. The MapReduce\n engine makes running these jobs fast, robust, scalable, and manageable. Mapreduce\n is so popular that 172,000 jobs run in a single month, processing some 52 PetaByte\n of data. These reduces experience an average of 5 deaths, that is process deaths,\n not programmer deaths. Interestingly, the MapReduce usage spikes clearly when new\n interns arrive in the summer. After all, what is more fun than running a job across\n thousands or tens of thousands of machines?\n\nAll these technologies are described in public papers: [http://labs.google.com/papers](http://labs.google.com/papers).\n\n## GData APIs\n\nI attended two sessions on [GData](http://code.google.com/apis/gdata/index.html). GData forms the basis for a number of new product APIs, such as Base, Blogger, Calendar,\n Notebook, Spreadsheets, and Picasa Web. GData follows a relative simple data model.\n Requests are made REST style with descriptive URL's and query strings (plus HTTP headers\n and/or session cookies for authentication). Response data is in Atom format, with\n Google specific extensions (for example `gd:when` and `gd:where` for calendar events). GData provides a consistent query mechanism, authentication,\n and off-line concurrency management. Concurrency is optimistic, i.e resources are\n not locked, making concurrent updates possible. Conflicts (e.g., updates to stale\n data) can be detected and result in a 409 error because resource links contain unique\n version identifiers.\n\nUsing these APIs someone developed a cool [ambient clock](http://ambientclock.com/) gadget that shows busy and free times on an analog dial. Amazingly, the developer\n was right in the audience. The presenter left ample time for Q&A, which was very much\n appreciated by the audience. Fielding audience questions as a Google engineer is always\n a tricky situation because topics can be controversial or touch on confidential issues.\n Jeff did a good job answering questions without having to resort to the \"I am not\n privileged to comment on such matter\" too often.\n\nNaturally the SOAP Search API question (no new developer keys are being issued) came\n up. How committed is Google to keep the new API's around, especially given that they\n are free (and free of ads)? Jeff reminded us that he is not in charge of these decisions.\n According to him, Google is committed to continued support for the GData APIs because\n they give the user access to their own data, i.e. their appointments or photos. One\n of Google's maxims it to not lock users in, i.e. to allow them to grab their data\n at any time and take it somewhere else. The APIs play a key part in that statement\n and are here to stay. Google also derives value because they can observe what the\n developer community builds on top of their platform.\n\nJeff clarified that there are currently no SLA's in place for GData API's. On the\n upside Google is pretty good at running high-availability, low-latency services. \n Product comparisons can be treacherous territory but it is clear that Google's Mash-up\n editor and Yahoo Pipes are playing in similar territory. In fact, you can combine\n the two by using Pipes against GData feeds because they both use popular Arom and\n RSS formats.\n\nThere was some unhappiness about the way the [AdWords API](http://www.google.com/apis/adwords/) is being evolved. AdWords supports four concurrent versions of the API, causing an\n API to be decommissioned 4 months after a new version is announced. The new set of\n Google APIs seem more amenable to evolution so hopefully they will provide a smoother\n transition for developers, even though they will continue to evolve.\n\n## Networking\n\nIn between the sessions, attendees networked over lunch or in the blogger lounge.\n The day concluded with a social event on Google campus. Sadly one could not obtain\n an alcoholic beverage without a wristband, which was being issued on the other side\n of campus. There are some things even Google can't touch.\n\n*Share:*\n\n*Follow:* [Follow @ghohpe](https://twitter.com/ghohpe) [SUBSCRIBE TO FEED](../ramblings.rss)\n\n*More On:* [EVENTS](/ramblings_events.html) [ALL RAMBLINGS](../ramblings.html)\n\nGregor is a cloud architect and author. He is a frequent speaker on asynchronous messaging,\n IT strategy, and cloud.", "znaku_textu": 13178, "slov": 2085, "odkazu": 58, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 15:36:10", "sha256": "01618ecb336415b9ce2c6345a431310056ee0bdc79b44ddcdbe41bd8483100ec", "hloubka": 4, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://architectelevator.com/blog", "http://www.flickr.com/photos/skylinegtr/523510493/", "http://code.google.com/events/developerday", "http://www.apcmag.com/6250/developer_wars_google_skinnies_versus_microsoft_fatties", "http://www.flickr.com/", "http://www.flickr.com/photos/skylinegtr/523510717/", "http://code.google.com/apis/gdata/index.html", "http://editor.googlemashups.com/", "http://pipes.yahoo.com/", "http://gears.google.com/", "http://maps.google.com/preview", "http://www.flickr.com/photos/skylinegtr/525952661/", "http://labs.google.com/papers", "http://www.flickr.com/photos/skylinegtr/525951651/", "http://ambientclock.com/", "http://www.google.com/apis/adwords/", "https://twitter.com/share", "https://twitter.com/ghohpe", "https://leanpub.com/37things"]} {"url": "http://www.enterpriseintegrationpatterns.com/ramblings/55_api.html", "titulek": "API's are for Humans, too - Enterprise Integration Patterns", "h1": "API's are for Humans, too", "popis": "When graphical user interfaces became popular thrifty people had the idea that they could generate them automatically", "klicova_slova": "", "kanonicka": "", "jazyk": "en_US", "robots_meta": "", "og": {"og:type": "article", "og:locale": "en_US", "og:site_name": "Enterprise Integration Patterns", "og:title": "API's are for Humans, too", "og:description": "When graphical user interfaces became popular thrifty people had the idea that they could generate them automatically", "og:url": "https://www.enterpriseintegrationpatterns.com/ramblings/55_api.html"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "API's are for Humans, too"}], "markdown": "Gregor's Ramblings\n\n---\n\n# API's are for Humans, too\n\nJune 19, 2007\n\nFind my posts on IT strategy, enterprise architecture, and digital transformation\n at [ArchitectElevator.com](https://architectelevator.com/blog).\n\nWhen graphical user interfaces became popular developers loved it because GUI's are\n cool and fun, and make the software easier to use. But creating good GUI's is not\n easy and often requires user interface designers, developers writing abstraction layers\n etc. From the view of a development manager this equates to Dollars (well, at the\n current exchange rate US Dollars don’t matter that much, lets assume it equates to\n a real currency like Euros or British Pounds). Naturally, it was not long before vendors\n decided to capitalize on that market opportunity. Why don’t you create the GUI from\n your business objects or your database tables? If a customer has 10 fields we can\n simply render a screen with text boxes and labels for people to enter that data. If\n an order form has multiple line items we can create a grid multi-row input element.\n As expected, to a drowning man any straw seems good enough so people jumped on the\n bandwagon. When the buzz wore off they realized that the silver bullets were in fact\n made from lead (and failed to kill any werewolves). Data structures (objects nor tables)\n do not make good user interface elements unless you build a simple data entry application\n (despite all the jokes Microsoft Access can claim some success in that category).\n I like to remind people that in the real world people do not set their address, their\n last name, or their bank account balance. Instead, they move, get married (or divorced)\n or transfer money into their account. User interfaces are all about intuition, guiding\n the user, having the user build a mental model, not about setting fields on business\n objects.\n\nSoon people shuddered at the mere thought of generating user interfaces from the\n code (who would ever do that?!) and went on to hire interaction designers, information\n architects and the like to build nicely usable applications. Of course then the Web\n came around and GUI's started to look worse than the stuff generated from the code.\n But I digress. This is supposed to be about API's after all.\n\nHalf a decade later we discovered that we can not only have users browse over the\n Internet but we can make machines talk to each other as well. Web services and SOA\n became the latest buzzwords and it is all about API's now. Once again we need to create\n a new type of interface, but this time it is one for machines. Instead of drop-down\n controls and drag-drop interactions we deal with Schemas, WSDL, XML parsers and the\n like. Once again, this requires new skill and new Dollars (or British Pounds or Euros).\n Invariably the thought of just generating this interface from your objects springs\n to mind. If we could only generate this stuff, we won't have to hire people specializing\n in all the Web services hoopla. This time it is even more appealing. Generating stuff\n that is meant for actual users seems kinda hard. But generating a programming interface?\n That must be much easier. With predictable certainty dozens of vendor offerings and\n open source frameworks generate WSDL and what not from Java classes and about anything\n else that looks like an application code.\n\nLet's not forget, though, that API's are also consumed by humans. Some developer (yes,\n developers are humans!) does read that documentation or sample code and builds an\n application that interacts with yours. What's most important, this developer forms\n a mental model very much in the way a GUI user does. Anyone interacting with your\n system sees it as a big black box with a few knobs and levers, i.e. API methods or\n buttons. Based on the observed behavior (and the invariably terse documentation) they\n form a mental model of what goes on inside the box. They use that model to predict\n what will happen and are surprised (or frustrated, or aggravated) when the actual\n result does not match the expected result.\n\nI was reminded of how difficult it is to build a good model when Aaron Geman came\n to Google to show his [TinkerThink Puzzle](http://www.makerfaire.com/pub/e/381). His puzzle is not even in a black box but a transparent one. And the controls are\n limited to one crank and two or three handles. Based on these controls pinballs are\n routed through the maze, the goal being to channel one ball into each of the three\n output lanes. According to Aaron it takes many people an hour to resolve this puzzle\n (I managed to get 2 balls in within 10 minutes and decided to quit while I am ahead).\n Now compare this to an API to a complex system. The inner working consisting of hundreds\n of classes are reduced to a few dozen levers and cranks, leaving the user wondering\n which lever they have to pull to get the desired effect. And they can't even look\n inside.\n\nNow I am not the first person to advocate contract-first design of public interfaces.\n Yet there is still surprisingly little work telling us how to build intuitive programming\n interfaces. Kevlin Henney as well as Josh Bloch have shared some of their experience.\n For example Josh popularized the notion of the [conceptual weight](http://www.scribd.com/doc/33655/How-to-Design-a-Good-API-and-Why-it-Matters) of an interface. I would like to see more concrete guidance for good design of Web\n services interfaces that allow developers to build consistent and accurate mental\n models, which make using the API intuitive. But first we have to get people of the\n \"auto-generate the interface\" koolaid.\n\nps: If you are wondering what [Big G](http://www.google.com) is doing in API's, [have a look](http://code.google.com/apis/). More on that later...\n\n*Share:*\n\n*Follow:* [Follow @ghohpe](https://twitter.com/ghohpe) [SUBSCRIBE TO FEED](../ramblings.rss)\n\n*More On:* [DESIGN](/ramblings_design.html) [ALL RAMBLINGS](../ramblings.html)\n\nGregor is a cloud architect and author. He is a frequent speaker on asynchronous messaging,\n IT strategy, and cloud.", "znaku_textu": 6051, "slov": 988, "odkazu": 47, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 15:36:09", "sha256": "568a92309782485072bbe2368678bc35408d3aa3d55cf2e6192242cd1db9be2d", "hloubka": 4, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://architectelevator.com/blog", "http://www.makerfaire.com/pub/e/381", "http://www.scribd.com/doc/33655/How-to-Design-a-Good-API-and-Why-it-Matters", "http://www.google.com/", "http://code.google.com/apis/", "https://twitter.com/share", "https://twitter.com/ghohpe", "https://leanpub.com/37things"]} {"url": "http://www.enterpriseintegrationpatterns.com/ramblings/56_events.html", "titulek": "Users Like Events - Enterprise Integration Patterns", "h1": "Users Like Events", "popis": "Two weeks ago I presented a keynote at the DEBS (Distributed Event-based Systems) conference", "klicova_slova": "", "kanonicka": "", "jazyk": "en_US", "robots_meta": "", "og": {"og:type": "article", "og:locale": "en_US", "og:site_name": "Enterprise Integration Patterns", "og:title": "Users Like Events", "og:description": "Two weeks ago I presented a keynote at the DEBS (Distributed Event-based Systems) conference", "og:url": "https://www.enterpriseintegrationpatterns.com/ramblings/56_events.html"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Users Like Events"}, {"uroven": 2, "text": "Distributed Event-based Systems"}, {"uroven": 2, "text": "The Human Protocol: Polling"}, {"uroven": 2, "text": "Events to the Rescue"}, {"uroven": 2, "text": "Feed Reader = Event-based System?"}, {"uroven": 2, "text": "Once Again, No Free Lunch"}, {"uroven": 2, "text": "Got Code?"}], "markdown": "Gregor's Ramblings\n\n---\n\n# Users Like Events\n\nJuly 12, 2007\n\nFind my posts on IT strategy, enterprise architecture, and digital transformation\n at [ArchitectElevator.com](https://architectelevator.com/blog).\n\n## Distributed Event-based Systems\n\nTwo weeks ago I presented a keynote at the [DEBS (Distributed Event-based Systems)](http://www.debs.msrg.utoronto.ca/) conference. The emphasis of the conference was on academic work in the field but\n event-based systems are rapidly gaining traction in commercial applications as CEP\n (Complex Event Processing) is becoming a household name like SOA (and equally difficult\n to pin down). All this talk about events reminded me that applications on the Web\n are becoming increasingly event driven.\n\n## The Human Protocol: Polling\n\nHow many times have you visited a website just to check the status of a resource and\n to make a decision based on it? Do I have enough money left in my checking account?\n Has that check cleared yet? Did this camera I am looking to buy go on sale? Is anyone\n selling the used car I am looking for? While an HTML and HTTP-based Internet is inherently\n tied to a synchronous request-response interaction, the user model often more closely\n resembles an ECA (Event-Condition-Action) interaction. A specific event (e.g., the\n price of the digital camera drops below $300) is applied to one or more conditions\n (bank account balance is > $1000 and significant other approves) and results in an\n action (buy camera). Sadly, most Web page users have to implement the event-driven\n aspect of this interaction through polling, i.e. by repeatedly opening a Web page,\n retrieving the data, and comparing it to the conditions. This is obviously tedious\n and cries for a more efficient solution.\n\n## Events to the Rescue\n\nMany years ago, the availability of information was the biggest challenge. With the\n advent of the Internet finding the right information was the challenge. Now that this\n problem has been mostly solved (my employer had a certain hand in that) accessing\n and processing information has become the biggest challenge. Having an event-based\n system to perform preprocessing for us and alert us only when certain conditions match\n allows us to process more information in a more efficient manner.\n\nThe late 90ies saw the rapid rise of a push-based Internet but things have gotten\n fairly quiet in that segment (a [search for \"Marimba\"](http://www.google.com/search?hl=en&q=Marimba) nowadays seems to yield more musical sites than Internet-related topics). I believe\n that the most established event model for the Web today takes the form of feed readers.\n Feed readers retrieve feed data, checking periodically for new items in the feed.\n Originally meant for syndication of news items and blogs, these readers have one important\n property: they perform the polling in the background and alert the user to new items.\n This works especially well in reader sidebars, as supplied for example by [Google Desktop](http://desktop.google.com) or other pluggable gadget frameworks. Such sidebars display feed entries in a floating\n bar on the desktop so that the user can easily track the arrival of new items while\n working on other applications.\n\n## Feed Reader = Event-based System?\n\nFor these types of alerts to be useful, the user has to have the ability to specify\n alert criteria or rules. Increasingly, feeds accept query parameters to perform such\n functions. For example, Craigslist allows me to receive new entries (i.e. alerts),\n when someone posts the type of item I am looking for, based on price and keywords.\n For example, I can be alerted to any Audi S4 Avant for sale in my area with a subscription\n to [http://www.craigslist.com/cgi-bin/search?areaID=1&subAreaID=0&query=s4+avant&catAbbreviation=car&minAsk=min&maxAsk=max&format=rss](http://www.craigslist.com/cgi-bin/search?areaID=1&subAreaID=0&query=s4+avant&catAbbreviation=car&minAsk=min&maxAsk=max&format=rss). Displaying the resulting feed in Google sidebar puts the burden of implementing\n an event-based system onto the RSS client, not me.\n\nOne can also compare these types of subscriptions to long-running database queries\n that update the result set whenever new data arrives. Such analogies remind us that\n we can often view the same system from a different perspective. Is an RSS feed more\n like a database query or more like an event stream? I believe it is both, it depends\n on how you use it.\n\n## Once Again, No Free Lunch\n\nAs always, many useful applications on the Internet are somewhat complicated by security\n issues. While a feed into my checking account or credit card activity would be surely\n convenient, serious security concerns are likely to make this a wish rather than reality.\n But many banks have recognized user's desire for events and provide one-off event\n notification mechanisms in lieu of RSS. For example, my bank alerts me via e-mail\n or SMS when a deposit is made (yeah!) or a check cashed (boo!). Once again it turns\n out that asynchronous messaging is a great way to deliver events. So the idea of using\n e-mail and SMS as a transport seems natural. As ubiquitous as these protocols are,\n though, the integration opportunities are more limited than with HTTP and RSS.\n\nInterestingly, users receiving these event streams have to deal with some of the same\n issues that can make building event-based systems challenging. For example, events\n can arrive out of order. Or event correlation may be difficult. For example, I may\n receive an event telling me that my credit card payment posted. Another event alerts\n me to the debit to my checking account. Without sufficient context it is not obvious\n that these events are related because they originate from different sources. Maybe\n banks should allow me to specify a correlation identifier to make this easier so I\n can do some CEP on my financial transactions? Lastly, event-driven applications have\n to deal with events as they come in, often requiring the recipient to regain enough\n context to deal with the event. For example, when I process my e-mail stream I often\n have to remind myself what we were talking about by looking at the history of the\n conversation or a related Web site.\n\n## Got Code?\n\nThis rambling has been all work and no play, and experience shows that this makes\n us a dull boy (and makes us want to kill our family with an axe). To stay clear of\n that scenario I prepared a few running examples that show how to build event streams\n on the Web. Stay tuned.\n\nIn the meantime, if you want some event-based notification of content changes on my\n site, I have two feeds for you, one [feed for my conference talks](http://www.enterpriseintegrationpatterns.com/talks.rss) and one [feed for my ramblings](http://www.enterpriseintegrationpatterns.com/ramblings.rss).\n\n*Share:*\n\n*Follow:* [Follow @ghohpe](https://twitter.com/ghohpe) [SUBSCRIBE TO FEED](../ramblings.rss)\n\n*More On:* [EVENTS](/ramblings_events.html) [MESSAGING](/ramblings_messaging.html) [ALL RAMBLINGS](../ramblings.html)\n\nGregor is a cloud architect and author. He is a frequent speaker on asynchronous messaging,\n IT strategy, and cloud.", "znaku_textu": 7112, "slov": 1092, "odkazu": 49, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 15:36:08", "sha256": "db4014a7d4db88a51f227d49fe02fe8f4281ee5336003597e5e923c37f4e29b0", "hloubka": 4, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://architectelevator.com/blog", "http://www.debs.msrg.utoronto.ca/", "http://www.google.com/search?hl=en&q=Marimba", "http://desktop.google.com/", "http://www.craigslist.com/cgi-bin/search?areaID=1&catAbbreviation=car&format=rss&maxAsk=max&minAsk=min&query=s4+avant&subAreaID=0", "https://twitter.com/share", "https://twitter.com/ghohpe", "https://leanpub.com/37things"]} {"url": "http://www.enterpriseintegrationpatterns.com/ramblings/57_pipes.html", "titulek": "I Want My Events - Enterprise Integration Patterns", "h1": "I Want My Events", "popis": "Last time I claimed that users like events", "klicova_slova": "", "kanonicka": "", "jazyk": "en_US", "robots_meta": "", "og": {"og:type": "article", "og:locale": "en_US", "og:site_name": "Enterprise Integration Patterns", "og:title": "I Want My Events", "og:description": "Last time I claimed that users like events", "og:url": "https://www.enterpriseintegrationpatterns.com/ramblings/57_pipes.html"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "I Want My Events"}, {"uroven": 2, "text": "Web 0.0: Person-to-Person"}, {"uroven": 2, "text": "Web 1.0: HTML"}, {"uroven": 2, "text": "Web 1.5: Web Services"}, {"uroven": 2, "text": "Web 2.0: Pipes and Mash-Ups"}, {"uroven": 2, "text": "Web 2.5: Structured Search (?)"}, {"uroven": 2, "text": "Appendix Y: Making it Happen with Yahoo! Pipes"}, {"uroven": 2, "text": "Appendix P: Making it happen with Python"}], "markdown": "Gregor's Ramblings\n\n---\n\n# I Want My Events\n\nJuly 15, 2007\n\nFind my posts on IT strategy, enterprise architecture, and digital transformation\n at [ArchitectElevator.com](https://architectelevator.com/blog).\n\n[Last time](56_events.html) I claimed that users like events. This time I want to show how I fulfilled my personal\n desire for events off the Web. A large portion of my \"spare time\" is occupied with\n writing. The scariest moment in a book author's life is the day the book goes on the\n shelf. Martin calls this the \"will they like my baby??\" moment, even though he has\n had little to worry about (but having set his own bar so high, so I am sure he is\n still nervous). Because technical authors really don't make much money off the books\n (unless you wrote Harry Potter and the Aggregator Pattern), reader reviews are often\n the primary source of bragging rights and Amazon stars carry a cachet close to the\n coveted Michelin stars.\n\nLong story short, I like to know what people think about my book and like to be notified\n when a new opinion surfaces. Since this is a not a new desire I have built various\n solutions to this problem over the years. Join me in my chronology of being alerted\n over the Internet.\n\n## Web 0.0: Person-to-Person\n\nFirst there was the Web. Well, not quite. First there was the World without the Web.\n Before the Internet came around, getting actual feedback on your book involved physical\n or inter personal activity, which are both equally daunting to most technical authors.\n You could try to hang out a book store (preferably a busy venue like a conference\n book store) and prompt people along the lines of \"A good friend of mine wrote this.\n Don't you think it is great?\" Ah, the good old days. Fun but not very efficient.\n\n## Web 1.0: HTML\n\nAmazon started selling books over the Internet in 1995. Soon they realized that just\n selling individual items is merely a Web-enabled version of a traditional store. So\n Amazon started to transform their site from a mere store to a community, providing\n customers with recommendations, rankings and user reviews. Nowadays, user contributed\n content is counted as one of the key requirements to deserve that cool \"Web 2.0\" label,\n so Amazon was definitely a trend setter.\n\nI could visit [my book's page](http://www.amazon.com/Enterprise-Integration-Patterns-Designing-Addison-Wesley/dp/0321200683) on Amazon and look at the customer reviews, implementing the polling protocol I [described last time](56_events.html), i.e. I'd go there periodically to see whether anything changed.\n\nIf I was looking for automation I could access the page programmatically and \"screen\n scrape\" the information off the HTML source. Experience shows that screen scraping\n is cumbersome and brittle because changes in the page layout tend to break the \"integration\".\n Nevertheless screen scraping HTML was and is popular (for example, my Infogate tool\n relied on screen scraping to send relevant information to my cell phone) and one could\n even posit that Web crawling and indexing is a fancy version of screen scraping.\n\n## Web 1.5: Web Services\n\nIn 2002 Amazon launched their [Amazon Web services](http://aws.amazon.com), allowing users to access Amazon's data programmatically. Amazon provides both a\n REST-inspired interface and a SOAP interface, making it easy to access the store's\n information from about any programming language (and easy to get into lengthy REST\n vs. SOAP debates). Apply for a developer token, form an HTTP request, parse the resulting\n XML, and you have built an integration across the Internet. Very neat.\n\nNaturally Web services allow for much more robust integration than screen scraping\n because the data format is more stable and free of formatting elements. To move closer\n to my original goal of receiving an alert for new book reviews, I created a variety\n of programs, the latest incarnation of which is written in Python (statically typed\n languages are so 2003).\n\nThe program runs on a daily cycle (e.g., via a cron job) and performs the following\n steps:\n\n- Retrieve the book information in XML format from Amazon.\n- Parse the XML and extract the reviews.\n- Compare the number of reviews to the last seen number of reviews.\n- If the new number is higher, retrieve the latest reviews, update the history, and\n e-mail the reviews.\n\nA shell script sends the mail message using UNIX `mail`. The review history is stored in a simple text file. The whole setup works quite\n well, but does require a bit of manual coding. I describe the program in more detail\n below.\n\n## Web 2.0: Pipes and Mash-Ups\n\nHand-coding integration solutions is about as uncool as saying EAI in an SOA world.\n In preparation of next week's [Mashup Camp](http://www.mashupcamp.com) I started to spend some time with various mashup tools, including [Google Mashup Editor](http://code.google.com/gme) ([see my GME tutorial on code.google.com](http://code.google.com/support/bin/answer.py?answer=71042&topic=12044)) and [Yahoo! Pipes](http://pipes.yahoo.com). It occurred to me that combining these tools with [my insights regarding events on the Web](56_events.html) would make for a very elegant and simple solution:\n\nYahoo! Pipes can access an arbitrary XML data stream, manipulate it and re-publish\n it as an RSS feed, hosted by Yahoo. Using the widespread RSS format affords this solution\n a critical integration point that the previous solution was missing: I can use any\n RSS Feed reader to perform change tracking and alert me of new reviews, i.e. new items\n in the feed (see below). Or I could create another pipe that combines the RSS feed\n with data from another provider. This solution reduces the effort form some 100 lines\n of Python code to configuring a few elements in a drag-drop editor (see below for\n a detailed discussion of this implementation).\n\nThe solution is general enough to work with any ASIN, the Amazon Standard Identification\n Number used to reference items in Amazon's store.\n\n## Web 2.5: Structured Search (?)\n\nWhat's next? Mashing up existing data into a feed is convenient but requires you to\n know the location and structure of the data source. If you imagine search technologies\n becoming more context aware and better at parsing structured information it might\n not be long until you can find any Web page that voices an opinion about my book.\n I occasionally do this by hand by searching for \"Enterprise Integration Patterns\"\n or doing a link search ([search link:eaipatterns.com](http://www.google.com/search?hl=en&q=link%3Aeaipatterns.com)). However, the evaluation of the results is entirely manual and subjective. Maybe\n stronger search technologies will obsolete my Pipes-based solution within a year or\n two...\n\n## Appendix Y: Making it Happen with Yahoo! Pipes\n\nTo prove that I am not in the \"I used to be a coder\" camp, here the actual solution\n in detail. Yahoo! Pipes follows a data flow model, represented as a pipeline of connected\n modules. Pipes provides a dozen or two predefined modules that provide for data retrieval,\n enrichment, and transformation. My Amazon Yahoo! Pipe looks as follows:\n\nFirst, the pipe has to construct a URL to the Amazon Web service. The URL to the REST\n service is pretty straightforward and contains 2 parameters: the ASIN of the product\n to be retrieved and the Amazon developer token. The token is needed to perform throttling\n and enforce quota limits (you are allowed one request per second per IP). So while\n you are free to use my pipe I'll ask that you use your own developer token. You can\n get one at [aws.amazon.com](http://aws.amazon.com).\n\nThe final URL to access the Amazon Web service looks like this:\n\n```\nhttp://ecs.amazonaws.com/onca/xml?Service=AWSECommerceService&ResponseGroup=Reviews%2CItemAttributes&Operation=ItemLookup&ItemId=0321200683&AWSAccessKeyId=???\n```\n\n(replace ??? with your Amazon developer token).\n\nThe Fetch Data module hits this URL and extracts the specified node from the XML result.\n In our case the reviews are under Items.Item.CustomerReviews.Review (Pipes uses the\n dot notation as opposed to XPath). The Rename module copies the interesting fields\n for each review into the standard RSS elements (title and description). Lastly, we\n manipulate the title string field to also include the number of stars the reviewer\n awarded. The output is an RSS feed of reviews for the given ASIN:\n\n```\n \n \n AmazonReviews Gregor\n Pipes Output\n http://pipes.yahoo.com/pipes/pipe.info?_id=mmTwRpgw3BGOKomHyjUFzw\n Sat, 14 Jul 2007 00:53:32 PDT\n http://pipes.yahoo.com/pipes/\n \n The Bible for Enterprise Application Integration (5 Stars)\n As a developer working on application integration for...\n \n ...\n \n \n Required for any architect (5 Stars)\n Whether you are new to integration architecture... \n \n ...\n \n \n \n```\n\nThe exciting news is that a running Yahoo pipe is available from a public URL, allowing\n you to subscribe to the following URL from any RSS reader: http://pipes.yahoo.com/pipes/pipe.run?ASIN=0321200683&AccessKey=???&_id=lHe4hDAw3BGKdk3SdLq02Q&_render=rss&_run=1.\n Simply replace the AccessKey with your Amazon key, replace the ASIN with a product\n of your choice (e.g., the ISBN of a book) and you have an RSS feed for reviews!\n\nIf you like to see the pipe source or clone it for your experiments search for AmazonReviews\n on [pipes.yahoo.com](http://pipes.yahoo.com).\n\n## Appendix P: Making it happen with Python\n\nIf you still live in the Web 1.5 world I am happy to share my Python program with\n you. The general flow is similar to the Yahoo Pipe, except the program has to do its\n own change tracking. The main method looks like this:\n\n```\ndef main(args):\n # process command line args\n if len(args) > 1:\n asin = args[1]\n if asin == \"help\" or asin == \"--help\":\n help(args[0])\n sys.exit(0)\n else:\n asin = \"0321200683\"\n\n if len(args) > 2:\n tld = args[2]\n else:\n tld = \"com\"\n \n print(\"Reviews for ISBN %s\" % asin)\n try:\n dom = GetAmazonData(\"???\", asin, tld)\n except Exception:\n print(\"Unable to connect to Amazon\")\n sys.exit(0)\n print(getTitle(dom))\n num = GetNumReviews(dom)\n oldnum = ReadNumReviews(asin)\n if (num != oldnum):\n PrintReviews(dom)\n WriteNumReviews(asin, num)\n sys.exit(1)\n else:\n print(\"no new reviews\")\n sys.exit(0)\n```\n\nFirst, the program parses some command line arguments, such as the ASIN. By default\n it gets the reviews for my book. As with the Pipes implementation you need to provide\n an Amazon developer token, which you can request at [aws.amazon.com](http://aws.amazon.com). The method then forms the query URL and parses the results into an XML DOM. I use\n the built-in minidom library, which is somewhat limited but it allows this Python\n program to run without any external libraries. From the dom, the function gets the\n number of reviews and compares it to the last seen number of reviews (stored in a\n file). If there are new reviews, it writes the last 5 reviews (as reported in the\n XML document) to a file, which can be picked up by a shell script, for example to\n send an e-mail. The return value of the program indicates whether new reviews were\n found or not. Most of the code is straightforward enough. You can [download the full source](../download/amazon.py).\n\nLet me point out the few gotcha's and surprises I hit:\n\n- Amazon does have country-specific items. For example, to get the reviews for our book [SOA Expertenwissen](http://www.amazon.de/SOA-Expertenwissen-Gernot-Starke/dp/3898644375) you have to hit the German Amazon Web Service at ecs.amazonaws.de. That's why we\n allow the top-level domain as a parameter.\n- As always, text inside XML elements can be split across multiple text nodes. A helper\n method `getText()` iterates over all text sub-nodes of a given node and concatenates them.\n- Not surprisingly, character encoding issues also came up. The XML uses UTF-8 encoding,\n but we want our file output to use an 8-bit character set. Therefore, I encode the\n output sting into latin-1, which includes Umlauts and other special characters.\n- Storing the number of reviews is fairly low-tech. I create a file for every ASIN,\n which contains the number of reviews. The files are stored in the `/tmp` folder so if your OS does not have this path, you have to either create it or change\n the method `FileName()`\n\nThat's it. [Download the source](../download/amazon.py), install [Python](http://www.python.org), and have fun!\n\n*Share:*\n\n*Follow:* [Follow @ghohpe](https://twitter.com/ghohpe) [SUBSCRIBE TO FEED](../ramblings.rss)\n\n*More On:* [WRITING](/ramblings_writing.html) [INTEGRATION](/ramblings_integration.html) [ALL RAMBLINGS](../ramblings.html)\n\nGregor is a cloud architect and author. He is a frequent speaker on asynchronous messaging,\n IT strategy, and cloud.", "znaku_textu": 13091, "slov": 1968, "odkazu": 54, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 15:36:07", "sha256": "9577bd0081f944e74564afc8aa8b8109cfd8233ecb51a30b202f6eba6b75f24c", "hloubka": 4, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://architectelevator.com/blog", "http://www.amazon.com/Enterprise-Integration-Patterns-Designing-Addison-Wesley/dp/0321200683", "http://aws.amazon.com/", "http://www.mashupcamp.com/", "http://code.google.com/gme", "http://code.google.com/support/bin/answer.py?answer=71042&topic=12044", "http://pipes.yahoo.com/", "http://www.google.com/search?hl=en&q=link%3Aeaipatterns.com", "http://www.amazon.de/SOA-Expertenwissen-Gernot-Starke/dp/3898644375", "http://www.python.org/", "https://twitter.com/share", "https://twitter.com/ghohpe", "https://leanpub.com/37things"]} {"url": "http://www.enterpriseintegrationpatterns.com/ramblings/58_mashupcamp.html", "titulek": "Mashup Camp - Enterprise Integration Patterns", "h1": "Mashup Camp", "popis": "I attended the first day of Mashup Camp today", "klicova_slova": "", "kanonicka": "", "jazyk": "en_US", "robots_meta": "", "og": {"og:type": "article", "og:locale": "en_US", "og:site_name": "Enterprise Integration Patterns", "og:title": "Mashup Camp", "og:description": "I attended the first day of Mashup Camp today", "og:url": "https://www.enterpriseintegrationpatterns.com/ramblings/58_mashupcamp.html"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Mashup Camp"}, {"uroven": 2, "text": "Vendor Presence"}, {"uroven": 2, "text": "Voice Integration"}, {"uroven": 2, "text": "End User License Agreements"}, {"uroven": 2, "text": "Integration Tools"}, {"uroven": 2, "text": "Enterprise Mashups"}, {"uroven": 2, "text": "Mashup Patterns"}, {"uroven": 2, "text": "More Later"}], "markdown": "Gregor's Ramblings\n\n---\n\n# Mashup Camp\n\nJuly 18, 2007\n\nFind my posts on IT strategy, enterprise architecture, and digital transformation\n at [ArchitectElevator.com](https://architectelevator.com/blog).\n\nI attended the first day of [Mashup Camp](http://www.mashupcamp.com) today. The event took place at the [Computer History Museum](http://www.computerhistory.org), which is actually walking distance from my office. Ironically, the only day in the\n year when something actually happens within walking distance in Silicon Valley it\n had to rain. Oh well. On the upside, my walk took me past the temporary Kwiki Mart.\n\nThis was my first mashup camp so I mostly came to listen and get plugged into this\n community. It's part of my master plan to bring integration ideas to a whole new user\n group. To not embarrass myself completely I authored some [tutorials on Google Mashup Editor and Yahoo! Pipes](http://code.google.com/support/bin/topic.py?topic=12044) to code.google.com.\n\nThe camp drew a good 100 – 150 people, which is a good size for an openspaces unconference.\n Apparently the Mashup University held during the past 2 days drew only about two dozen\n people, which is disappointing. Maybe people are intimidated by the hipster mashups\n crowd or it's impossible to time off from work to learn how to plot your favorite\n bars onto a Google map? Or maybe building mashups has become so easy that there is\n no need for a university? I guess we can only speculate or do a better job advertising\n the event next year.\n\nHere my impressions of day one:\n\n## Vendor Presence\n\nI was impressed and a bit surprised by the number of vendors at the conference. About\n 7 or 8 vendors had setup a table, including the usual heavyweights like IBM, Sun,\n Google (I was hoping for some Yahoo! Pipes folks) as well as mashup pureplays like\n Dapper. The overall feel I got was that the mashup community is a bit confused whether\n they want to be baggy pants wearing renegades scraping data off big corporate sites\n for the greater good of mankind or whether they want to be the next generation of\n VC funded Internet startups. I honestly expected more discussion and sharing as opposed\n to vendor demos, but some of the demos were actually interesting.\n\nI was a little put off by the openkapow guy who claimed that they solved all issues\n of brittleness in HTML screen scraping without being able to say exactly how. The\n demo seemed to use a fully qualified XPath into the DOM node of interest, the slashes\n cleverly replaced with dots. Not so robust. I am sure the tool can do much better\n than that but I did not expect to see that much hand waving and corporate attitude\n at camp. They one-upped this only when someone asked for their competitors to be told\n \"I don't know. Can you name some?\" Come on, dude, this is not MBA Camp but is supposed\n to be a community event. Plus, if you don’t know your competitors you should not be\n running a business in the first place. Well, at least they are making money, which\n after some prompting turned out to be revenue money as opposed to profit money. I\n think the last time we brushed off the difference as a minor detail was in 2000. Besides\n the attitude, though, the tool looked pretty powerful.\n\n## Voice Integration\n\nI noticed a surprising variety of voice integration, possibly spurred by the attendance\n of folks from [Lignup](http://www.lignup.com/). The ability to have your computer call you is intriguing because the system includes\n an IVR voice prompt ability. Hmmm, now I can create my own customer service menus?\n Press \"1\" if you are aggravated, \"2\" if you want to kill the service rep. I think\n voice also has liabilities because it is a synchronous medium (at least if you want\n the interactivity). Also, getting 50 alert e-mails are easier to deal with than 50\n alert calls. Still I like to have the option of integrating voice into my applications.\n Google local voice for example is great and the voice recognition is amazingly good.\n\n## End User License Agreements\n\nMashup Camp partly felt like a graffiti artist convention. The performers know that\n what they do is not quite legal but it is cool. Until they try to make a living off\n it. The issue of Web site end user agreements became most apparent when one of the\n guys decided to use his \"Clipper\" tool to take the Google search page and replace\n the Google logo with the Yahoo! Logo and clip the ads off the results page. To his\n shock, Google had asked him to take down some of these hosted \"services\". While it\n may seem so corporate and anal for people to not allow you to scrape their screens\n we need to remember that some of them pay for the data, so there rarely is a free\n lunch. Even in the dot-com run-up someone paid for all those free services and parties.\n Some of my friends are still writing their $3000 per year capital losses. It'll be\n interesting to see how the issue of data ownership will evolve. Ads in RSS? Micropayments?\n As mashups become more popular (especially the HTML scraping ones) I am certain the\n issue will come up. HTML screen scraping is always going to be controversial because\n sites who like to share their data already provide feeds (e.g., most of the Web 2.0\n crowd or marketplaces like craiglist). The ones who don't, probably don't like you\n to scrape their data off their (probably ad-funded) site. Luckily, inside the enterprise\n this is less of an issue.\n\n## Integration Tools\n\nThe guys from IBM and [SnapLogic](http://www.snaplogic.com/) showed mashup data processing tools that share some similarities with early EAI tools\n (TIBCO MessageBroker comes to mind). Similar to Yahoo! Pipes they allow users to users\n to compose data pipelines that extract, transform, and combine data. The data stream\n is then available in a variety of formats, for example RSS and Atom. The demo combined\n data from SalesForce and Quickbooks.\n\n## Enterprise Mashups\n\nI joined a good discussion on enterprise mashups. This was not a demo but more of\n a brainstorm. We concluded that it is not so simple to distinguish between mashups\n and composite applications. We did compile the following list to help contrast them:\n\n- Mashups: REST/XML, ad-hoc, bottom-up, easy to change, low expectations, built by user\n- Composite Apps: SOA/WS-*, planned, top-down, more static, (too) high expectations,\n built by IT\n\nI think part of the big shift here is that in the past ad-hoc solutions were not integratable\n and integratable solutions were cumbersome to build. Mashups are often built ad-hoc\n but simple protocols like RSS or Atoms allow them to be integrated very easily. One\n person rightly pointed out that enterprise mashups are the Visual Basic macro of the\n Internet age.\n\n## Mashup Patterns\n\nI really enjoyed talking to the guy who build a mashup across Amazon and public library\n Web sites. He keeps a wish list on Amazon and checks the public library to see whether\n they have the book. It was refreshing to hear about some of the actuall issues and\n hurdles he had to overcome (unlike most of the vendors, who make you believe it is\n a piece of cake once you use their tool). For example, Amazon data for books works\n by ASIN, which for books equals the ISBN. As such, it cannot recognize the relationship\n between the same works published in different editions or as book on tape.\n\nAnother interesting hurdle was the fact that you cannot search Amazon by UPC for non-book\n products. However, you can get the UPS once you have the ASIN. To go from UPC to ASIN\n the solution uses Google search. The wide syndication of Amazon data enables a search\n for the UPC and the word \"ASIN\" to include the ASIN in the search results. To minimize\n errors the solution uses the discovered ASIN and retrieves the UPC from Amazon to\n make sure the match is correct.\n\nI think these techniques could make for some more widely applicable mashup patterns:\n\n**Key Translation with Search**\n\nProblem: You have a key but require a different key for a database lookup.\n\nForces: Popular keys are likely to be stored on Web pages in proximity. Getting a\n key translation database will be difficult or impossible\n\nSolution: Search for the key you have and the name of the desired key.\n\nI tried this approach to do perform geocoding. A [simple search for \"San Francisco geo:long\"](http://www.google.com/search?q=san+francisco+geo%3along) yields the following text in the first result **geo:lat=37.759665 geo:long=-122.421509**. A quick check in Google Earth confirms that the coordinates do in fact point to\n San Francisco. Maybe this is a trivial example but it makes we want to try this with\n more types of keys.\n\n**Lookup Confirmation**\n\nProblem: You can find key B from key A but nor the other way around. You have a unreliable\n method to lookup A from B.\n\nSolution: Perform the unreliable lookup from B to A. Then use the precise lookup from\n A to B to make sure you got the right A.\n\nThese patterns could benefit from some more elaboration but I think documenting some\n of the approaches will be useful for mashup developers\n\n## More Later\n\nTime to go to bed to be fresh for another day at camp.\n\n*Share:*\n\n*Follow:* [Follow @ghohpe](https://twitter.com/ghohpe) [SUBSCRIBE TO FEED](../ramblings.rss)\n\n*More On:* [EVENTS](/ramblings_events.html) [ALL RAMBLINGS](../ramblings.html)\n\nGregor is a cloud architect and author. He is a frequent speaker on asynchronous messaging,\n IT strategy, and cloud.", "znaku_textu": 9354, "slov": 1574, "odkazu": 52, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 15:36:06", "sha256": "ffb7dfcf309f03938aee703abdaf666e279714f00f8179e5ab1f707fb96e18b6", "hloubka": 4, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://architectelevator.com/blog", "http://www.flickr.com/photos/skylinegtr/849893114", "http://www.mashupcamp.com/", "http://www.computerhistory.org/", "http://code.google.com/support/bin/topic.py?topic=12044", "http://www.lignup.com/", "http://www.flickr.com/photos/skylinegtr/847950819/", "http://www.snaplogic.com/", "http://www.flickr.com/photos/skylinegtr/848721152", "http://www.google.com/search?q=san+francisco+geo%3Along", "https://twitter.com/share", "https://twitter.com/ghohpe", "https://leanpub.com/37things"]} {"url": "http://www.enterpriseintegrationpatterns.com/ramblings/59_mashupeai.html", "titulek": "Mashups == EAI 2.0? - Enterprise Integration Patterns", "h1": "Mashups == EAI 2.0?", "popis": "Mashups pull data from different sources, aggregate and transform the data to be used in different contexts", "klicova_slova": "", "kanonicka": "", "jazyk": "en_US", "robots_meta": "", "og": {"og:type": "article", "og:locale": "en_US", "og:site_name": "Enterprise Integration Patterns", "og:title": "Mashups == EAI 2.0?", "og:description": "Mashups pull data from different sources, aggregate and transform the data to be used in different contexts", "og:url": "https://www.enterpriseintegrationpatterns.com/ramblings/59_mashupeai.html"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Mashups == EAI 2.0?"}, {"uroven": 2, "text": "Web 2.0"}, {"uroven": 2, "text": "Google Mashup Editor"}, {"uroven": 2, "text": "Integration. Again. Or Still?"}, {"uroven": 2, "text": "(Yahoo!) Pipes and Filters"}, {"uroven": 2, "text": "VETO and Friends"}, {"uroven": 2, "text": "Something Old, Something New"}, {"uroven": 2, "text": "Down to Earth"}], "markdown": "Gregor's Ramblings\n\n---\n\n# Mashups == EAI 2.0?\n\nJuly 27, 2007\n\nFind my posts on IT strategy, enterprise architecture, and digital transformation\n at [ArchitectElevator.com](https://architectelevator.com/blog).\n\nMashups pull data from different sources, aggregate and transform the data to be used\n in different contexts. EAI solutions pull data from different sources, aggregate and\n transform the data to be used in different contexts. Huh?\n\n## Web 2.0\n\nThe Internet has come a long way, from static HTML pages to online shopping pages\n and photo albums to community-driven sites like MySpace, Digg, del.icio.us, Flickr,\n Twitter and so on. The newer sites fall into the so-called Web 2.0 category, a term\n coined by Tim O'Reilly back in 2003 (time flies!). While it is difficult to define\n Web 2.0 in precise terms, this class of applications usually lives off a network effect\n created by user participation, for example users tagging photos or sharing their bookmarks.\n They also use the Web as a platform to retrieve and share data, often from multiple\n sites. These mashups use lightweight programming models such as JavaScript to pull\n data together and present them to the user in a meaningful way. For example, one such\n mashup pulls a feed of suitable apartments from a listing site and plots them on Google\n Maps. Don't be left behind in Web 1.0!\n\n## Google Mashup Editor\n\n[In a previous post](54_gdd.html) I promised to talk a bit more on Google products, especially now that Google has\n a variety of offerings in the Web 2.0 space. As great as maps are, the Maps API is\n now one of 34 (!) public Google API's and developer tools. Since I've been playing\n with Mashups recently, what would be a better fit than [Google Mashup Editor (GME)](http://code.google.com/gme/)? GME provides a browser based development environment that allows developers to create\n HTML pages, which incorporate data from external sources. My [GME tutorial](http://code.google.com/support/bin/answer.py?answer=71042&topic=12044) on Google Code describes how to build a simple GME application, which uses data from\n my [public Google speaking calendar](http://www.google.com/calendar/embed?src=k6bnejmmglue0r1tsg6bfhnku8%40group.calendar.google.com) (the calendar is a little sparse right now as I am planning my next round of conference\n appearances). Google calendar data is available as an Atom Feed, which can be read\n by GME. My GME application calls the [Google Maps API](http://www.google.com/apis/maps/) to enrich the feed with longitude and latitude data based on the conference location.\n Finally, it [plots the results on a map](http://confmap.googlemashups.com). Not earth shattering, but trying to build this type of application 5 years ago before\n the advent of geocoding, RSS, Atom, and Google maps would been very time consuming\n at best. The presence of standard protocols and powerful tools make this type of integration\n relatively easy.\n\n## Integration. Again. Or Still?\n\nDid I say \"integration\"? Yes, you heard correctly. Nowadays the term \"EAI\" is certainly\n more uncool than anything Web 1.0 but the problems of integration have not gone away.\n Let's look at the GME application I just described from a higher level of abstraction,\n let's say at the level of integration patterns:\n\nLooking at the application from this angle, the solution is made up from a data source\n (the calendar feed), a [Content Enricher](../DataEnricher.html), which access a resource (Google's geocoding database), and a message consumer (the\n GME application). The tutorial uses the Google Maps JavaScript API to perform the\n geo lookup: every time the user selects an entry from the list of conferences, GME\n invokes a short JavaScript to perform the geo lookup. This implementation ties the\n Content Enricher aspect of the solution rather tightly to the display module. Obviously,\n tight coupling is frowned upon in integration land. So let's change it.\n\n## (Yahoo!) Pipes and Filters\n\nThe [integration patterns](../eaipatterns.html) help us decompose the behavior of our solution into individual patterns. Using the\n [Pipes-and-Filters](../PipesAndFilters.html) style, we can implement each pattern as its own component and compose the solution\n from the individual pieces. The composability of the pipes-and-filters approach is\n one of its biggest strengths and hinges on the availability of a universal message\n channel. As we all know, the Internet is not message-oriented (although I [argued before](56_events.html) that it can be considered event-driven), but not all is lost. The most common integration\n point on the Web is XML over HTTP, especially when using standard formats like RSS.\n So could we use RSS as our message channel and compose the solution from independent\n components? [Last time](57_pipes.html) I showed how to use [Yahoo! Pipes](http://pipes.yahoo.com) to extract XML data from Amazon's e-Commerce Service and convert it into an RSS feed.\n Pipes can do a lot more, including geocoding of an incoming RSS feed. In this role\n Pipes enriches the data stream with geo data, i.e. longitude and latitude, and makes\n the enriched stream available as an RSS feed, our universal integration point. Naturally,\n GME applications read geo-enriched RSS feeds and display the data on a map without\n even a single line of code. The new solution looks as follows (sorry for the 90 degree\n rotation):\n\nMy new [tutorial on Google Mashup Editor and Yahoo! Pipes](http://code.google.com/support/bin/answer.py?answer=72765&topic=12044) describes how to build this solution step-by-step.\n\n## VETO and Friends\n\nUsing Pipes in this role reminds me of the [VETO pattern](http://www.google.com/search?hl=en&q=veto+pattern): Validate, Extract, Transform Operate, which is commonly used in EAI and ESB solutions\n (e.g., see [Dave Chappell's description of the pattern](http://webservices.sys-con.com/read/46170.htm)). It sounds like a number of our friends from the EAI world are still useful in the\n world of Web 2.0 and mashups.\n\n## Something Old, Something New\n\nIn my [post about Mashup Camp](58_mashupcamp.html) I speculated that the difference between mashups and composite applications is more\n about the approach than the technology, so it is not surprising that some of the same\n patterns and techniques seem familiar. This fact appears to be confirmed by vendors\n with extensive integration and ETL experience now dabbling in the mashup space (more\n about that next time). While we do not want to sound like the CORBA people in an SOA\n world (\"we built all that 10 years ago!\"), it does mean that some of the old challenges\n are likely to still haunt us. For example, token and ID management can already become\n a challenge for mashups. Semantic mismatches and incompatible data formats are a staple\n of data integration and are not likely to vanish.\n\n## Down to Earth\n\nHowever, I think we learned a few things in the meantime. Because integration is difficult,\n mashups set the expectations lower and are generally less ambitious. They provide\n small, high-value point solutions as opposed to trying to achieve enterprise-wide\n integration nirvana. Moreover, after realizing that syntactic schema definitions à\n la WSDL solve only a very small portion of the semantic mismatch issues, mashups\n put the whole notion if schema aside and just look at an example message. Yahoo! Pipes\n makes this very clear when you use the \"Rename\" module. This module is the equivalent\n of the omnipresent EAI transformation editor. Rather than requiring a schema, the\n module samples the incoming stream and gives you a selection of all fields it saw.\n Is the field required or optional, a string or a number? Pipes does not care much\n because it does not have to. Does this mean schemas and data formats are a dumb idea?\n No, if you are building a B2B integration with your business partners a rigid definition\n of all message formats and protocols (beyond schema) is an excellent idea (hello,\n RosettaNet). Tools like Pipes highlight that the schema approach is a pretty big hammer\n and you can get pretty far with a much smaller hammer, that is also easier to carry\n around.\n\nThe IT world is known for its short memory (and attention span). So let's remember\n what we learned in EAI and not reinvent everything from scratch. Repackaging some\n of the old stuff can be fun and gets attention. In the EAI world I would have never\n written a tutorial explaining how to add two data fields to a message stream...\n\n*Share:*\n\n*Follow:* [Follow @ghohpe](https://twitter.com/ghohpe) [SUBSCRIBE TO FEED](../ramblings.rss)\n\n*More On:* [INTEGRATION](/ramblings_integration.html) [ALL RAMBLINGS](../ramblings.html)\n\nGregor is a cloud architect and author. He is a frequent speaker on asynchronous messaging,\n IT strategy, and cloud.", "znaku_textu": 8757, "slov": 1342, "odkazu": 59, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 15:36:05", "sha256": "e10c1a0ae405fdc04f886225d6d4eadbdf9d66e30efbe5af88b88edb7696015e", "hloubka": 4, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://architectelevator.com/blog", "http://code.google.com/gme/", "http://code.google.com/support/bin/answer.py?answer=71042&topic=12044", "http://www.google.com/calendar/embed?src=k6bnejmmglue0r1tsg6bfhnku8%40group.calendar.google.com", "http://www.google.com/apis/maps/", "http://confmap.googlemashups.com/", "http://pipes.yahoo.com/", "http://code.google.com/support/bin/answer.py?answer=72765&topic=12044", "http://www.google.com/search?hl=en&q=veto+pattern", "http://webservices.sys-con.com/read/46170.htm", "https://twitter.com/share", "https://twitter.com/ghohpe", "https://leanpub.com/37things"]} {"url": "http://www.enterpriseintegrationpatterns.com/ramblings/60_mashupmarket.html", "titulek": "Mashups Tools Market - Enterprise Integration Patterns", "h1": "Mashups Tools Market", "popis": "As I reported from Mashup Camp, an increasing number of vendors play in the mashup space", "klicova_slova": "", "kanonicka": "", "jazyk": "en_US", "robots_meta": "", "og": {"og:type": "article", "og:locale": "en_US", "og:site_name": "Enterprise Integration Patterns", "og:title": "Mashups Tools Market", "og:description": "As I reported from Mashup Camp, an increasing number of vendors play in the mashup space", "og:url": "https://www.enterpriseintegrationpatterns.com/ramblings/60_mashupmarket.html"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Mashups Tools Market"}, {"uroven": 2, "text": "Back-to-Front"}, {"uroven": 2, "text": "Operational"}, {"uroven": 2, "text": "It slices, it dices"}, {"uroven": 2, "text": "Mashup in a box?"}, {"uroven": 2, "text": "More tools"}, {"uroven": 2, "text": "New Mashup Podcast"}], "markdown": "Gregor's Ramblings\n\n---\n\n# Mashups Tools Market\n\nAugust 18, 2007\n\nFind my posts on IT strategy, enterprise architecture, and digital transformation\n at [ArchitectElevator.com](https://architectelevator.com/blog).\n\nAs I [reported from Mashup Camp](58_mashupcamp.html), an increasing number of vendors play in the mashup space. I am obviously not the\n only one who noticed. Dion Hincliffe recently [discussed 17 different mashup tools](http://blogs.zdnet.com/Hinchcliffe/?p=111). Maybe I have an MBA hidden inside me (or 10 years of consulting left some marks),\n but I was temped to conduct my own market segmentation. Gartner would be proud of\n me. Just be aware that my analysis is not meant to be comprehensive and all statements\n carry a 0.5 probability of being right :-)\n\n## Back-to-Front\n\nBeing an old EAI type, one classification that immediately sprung to my mind is the\n separation between adapters, transformation, and presentation. These terms might be\n a little dated but each segment still offers a critical piece of behavior. My \"picture\"\n of the market would look something like this:\n\nMashups are all about data. So let's start with the data sources, i.e. the right hand\n side. Mashups like simple XML data sources, ideally RSS or Atom feeds. These are not\n yet too common in the enterprise, so making data sources available is step one. These\n tools might scrape information off HTML pages (e.g. [Dapper](http://www.dapper.net) or [OpenKapow](http://www.openkapow.com)), or enable more traditional data sources like data bases or enterprise applications.\n In the mashup world these \"adapters\" either produce feeds or allow REST-like requests\n against their data entities.\n\nMashups are also about combining data in interesting ways, for example plotting meeting\n locations on a map, correlating neighborhoods with crimes, and the like. This is the\n domain of transformation and aggregation tools. These tools can enrich incoming data\n streams, extract data from XML documents, or perform more advanced functions such\n as geocoding. [Yahoo! Pipes](http://pipes.yahoo.com) is probably the most prototypical implementation of the transformation layer.\n\nLastly, mashups are about rich user experiences on the client side. Another crop of\n tools makes this feasible without requiring you to know the ins and outs of JavaScript.\n This is where [Google Mashup Editor](http://code.google.com/gme/) and [IBM's QEDWiki](http://services.alphaworks.ibm.com/qedwiki/) play. This segment blurs a little bit with \"generic\" AJAX tools, such as TIBCO's\n General Interface.\n\nOf course the real world is not all black and white. A number of tools span more than\n a single layer. For example, Microsoft's Popfly seems to combine presentation and\n transformation (I don’t have an account yet). Pipes has a default presentation layer,\n which for example plots locations on a map. [Snaplogic](http://www.snaplogic.com) does both data sourcing and transformation.\n\nYou might have noticed that my picture does not include any service providers. These\n are the folks who provide data feeds or services and enable to Web to become a true\n platform. I omitted them because I wanted to focus on tools. Highlights in the provider\n / API space are Amazon, eBay, Google, Yahoo, AOL, and many more. [Programmable Web](http://www.programmableweb.com/apis) listed 498 of them at last count...\n\n## Operational\n\nWith things running in the cloud, functionality is only one half of the equation.\n The (possibly even bigger) half is considered with operational aspects. Is it going\n to scale? Is it secure? Can it survive DDOS attacks? How do I manage a large set\n of these mashups? Such concerns run orthogonal to the division of functionality. The\n only company I have come across in this space is [mashery](http://www.mashery.com/). I am sure there are others (or at least there are going to be).\n\n## It slices, it dices\n\nOf course there are many other ways to segment this market. For example, we see open\n source, free (closed source) software, and commercial vendors. We also see small players\n and the usual heavyweights (Microsoft, IBM, Yahoo, Google etc). We can also distinguish\n newcomers from \"converts\", i.e. companies that shifted their attention from EAI or\n ETL into mashups.\n\n## Mashup in a box?\n\nIn the Web services / SOA world, some of the operational considerations have led to\n the advent of integration and XML appliances (see [my first rambling ever!](01_appliances.html)). Should we expect to see mashup appliances? I think it would be great if I could\n run and manage Pipes on an appliance in my enterprise. The pitch would be analogous\n to the [Google Search Appliance](http://www.google.com/enterprise/gsa): run the service you love from the external cloud inside your enterprise, where you\n have full control, have access to your private data, and make sure your data never\n leaves your network. Anyone willing to fund me?\n\n## More tools\n\nI have a day job, so I have limited time to play with mashup tools (my 20% project,\n perhaps?) High on my list is [IBM's DAMIA](http://services.alphaworks.ibm.com/damia/). I heard the code name used to be \"Mafia\" (Mashup Fabric for Intranet Applications).\n No wonder that didn't make it past the corporate approval. Also, my Core J2EE Patterns\n friends now work at [JackBe](http://www.jackbe.com). I'll need to check out what they are up to -- they have mashup written all over\n them.\n\n## New Mashup Podcast\n\nLastly, my ramblings are a lot more fun if done with the proper accent, ja! My [podcast on mashups in the enterprise](http://google-code-updates.blogspot.com/2007/08/google-developer-podcast-episode-seven.html) is now live on the [Google Code Blog](http://google-code-updates.blogspot.com/). Enjoy!\n\n*Share:*\n\n*Follow:* [Follow @ghohpe](https://twitter.com/ghohpe) [SUBSCRIBE TO FEED](../ramblings.rss)\n\n*More On:* [INTEGRATION](/ramblings_integration.html) [ALL RAMBLINGS](../ramblings.html)\n\nGregor is a cloud architect and author. He is a frequent speaker on asynchronous messaging,\n IT strategy, and cloud.", "znaku_textu": 6015, "slov": 892, "odkazu": 59, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 15:36:04", "sha256": "0d4ec2b29e6c5e549d4ebfb6d20813067a88b0b22e73d43c2d4e7dfb4c06c594", "hloubka": 4, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://architectelevator.com/blog", "http://blogs.zdnet.com/Hinchcliffe/?p=111", "http://www.dapper.net/", "http://www.openkapow.com/", "http://pipes.yahoo.com/", "http://code.google.com/gme/", "http://services.alphaworks.ibm.com/qedwiki/", "http://www.snaplogic.com/", "http://www.programmableweb.com/apis", "http://www.mashery.com/", "http://www.google.com/enterprise/gsa", "http://services.alphaworks.ibm.com/damia/", "http://www.jackbe.com/", "http://google-code-updates.blogspot.com/2007/08/google-developer-podcast-episode-seven.html", "http://google-code-updates.blogspot.com/", "https://twitter.com/share", "https://twitter.com/ghohpe", "https://leanpub.com/37things"]} {"url": "http://www.enterpriseintegrationpatterns.com/ramblings/61_facebookgarage.html", "titulek": "Facebook Developer Garage - Enterprise Integration Patterns", "h1": "Facebook Developer Garage", "popis": "The Internet is cruel", "klicova_slova": "", "kanonicka": "", "jazyk": "en_US", "robots_meta": "", "og": {"og:type": "article", "og:locale": "en_US", "og:site_name": "Enterprise Integration Patterns", "og:title": "Facebook Developer Garage", "og:description": "The Internet is cruel", "og:url": "https://www.enterpriseintegrationpatterns.com/ramblings/61_facebookgarage.html"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Facebook Developer Garage"}, {"uroven": 2, "text": "Old Dog, New Tricks"}, {"uroven": 2, "text": "Boozemail"}, {"uroven": 2, "text": "Facebook vs. dot-com"}, {"uroven": 2, "text": "Meet a Facebook developer"}, {"uroven": 2, "text": "Not a level playing field"}, {"uroven": 2, "text": "Analytics"}, {"uroven": 2, "text": "Advertiser's Paradise"}, {"uroven": 2, "text": "Ventures"}, {"uroven": 2, "text": "Googlers to Facebookers"}], "markdown": "Gregor's Ramblings\n\n---\n\n# Facebook Developer Garage\n\nSeptember 25, 2007\n\nFind my posts on IT strategy, enterprise architecture, and digital transformation\n at [ArchitectElevator.com](https://architectelevator.com/blog).\n\n## Old Dog, New Tricks\n\nThe Internet is cruel. So you finally made the leap from EAI stone age to become a\n hip mashup developer. Now it turns out you are once again behind the curve. Unless\n you've written your own Facebook app and scored a million or so installs, you are\n just a worm in the dust of the global data superhighway. Join the club.\n\nI decided to make an attempt at running with the cool kids and attended the [Facebook Developer Garage in Palo Alto](http://wiki.developers.facebook.com/index.php/Garage_Calendar#Palo_Alto_August_25.2C_2007_-_Saturday), taking place at Facebooks headquarters, which comes close to being the center of\n the Internet these days. As I walked in (late), Mark Zuckerberg walked off the stage\n after giving his keynote. At least I can give myself another check mark in my \"famous\n people who were closer than 3 feet to me\" list. After a social networking break, the\n next segment included lightning talks by about 8 companies that developed successful\n Facebook applications. Sadly, I was ill prepared (i.e. no pen and paper) and I have\n to replay this from memory.\n\n## Boozemail\n\nA (sober) lady from Renkoo, creators of the Facebook Booze Mail application, explained\n how she runs her app on the [Amazon EC2](http://www.amazon.com/gp/browse.html?node=201590011), the elastic compute cloud. For about $100 / day they get enough resources to support\n a million or so Facebook users. According to her, the machines are not the latest\n models (i.e. on the slow side) but the convenience of having hardware on tap is appealing\n nevertheless. On a side note, it also seems that a good portion of Facebook apps is\n developed in Ruby on Rails.\n\n## Facebook vs. dot-com\n\nAli, [ilike](http://www.ilike.com/)'s CEO explained how their switch to Facebook resulted in more users and hits within\n a matter of weeks. Currently, their original ilike.com Web site dwarfs in comparison\n to their Facebook traffic (total user count is 10,000,000!). A natural concern is\n whether relying on Facebook for you core business (iLike is a money-generating business)\n is a big risk. Ali's take is that you can’t ignore the opportunity, but you can try\n to make your application as independent as possible to reduce risk. It's also important\n to embed yourself in an ecosystem so you do not solely rely on Facebook. For example\n iLike has its own API, partners with Ticketmaster (who, according to Ali, are becoming\n less evil over time) and has other relationships in mind.\n\n## Meet a Facebook developer\n\nJoe and Eric from Quizzes probably scored in the Facebook developer stereotype category\n \"We work from 3 to 3, no boss can tell us otherwise\". They also mentioned that their\n apps target younger females than the ones in the audience. Apparently they have an\n open position for a PR spokesperson...\n\n## Not a level playing field\n\nPart of the public perception of Facebook is that some developer writes a small but\n useful app in his bedroom and becomes famous (and rich) over night, sort of like the\n Internet in 1999. YouRock reminded us that it's not quite like that anymore. During\n their launch they cross-marketed YouRock through their other Facebook applications,\n which include such heavy hitters as Super Wall with 5,000,000+ users. This cross marketing\n boosted their user base to 100k almost overnight, growing quickly to 700k. For new\n players who do not have a Super Wall app to launch of off, this presents a bit of\n a chicken and egg problem. Apparently Rock You now offers other developer cross marketing\n -- for a price.\n\n## Analytics\n\nThe guys who developed Courses highlighted the importance of analytics. You always\n want to know who did what on your app, how they came to you etc. This is one of the\n most fun (and lucrative parts) of running apps on the Internet. You can gather a lot\n of data about your users' behavior and you can use that data to refine your app, increase\n revenue, or gain more users. I run Google Analytics on my site. So far I have only\n determined that I have a lot more traffic Monday through Friday (some of you seem\n to have been leaving work early on Fridays it seems), and that you guys don't click\n on my AdSense ads as often as I'd like you to. The analytics data, did help me, though,\n to cross link parts of my site more effectively (hence the \"recent ramblings' box\n on the right).\n\n## Advertiser's Paradise\n\nSpeaking of advertising. Advertising is all about targeting. The better the target,\n the higher the chances of \"conversion\", meaning the targeted user performs a desired\n action such as buying something, watching a video etc. Facebook users routinely specify\n their sex, date of birth, and city in their profile. Knowing age, sex, and location\n is any advertisers dream. Accordingly, advertising on Facebook can be very lucrative,\n for both the advertisers and Facebook.\n\nOne slide explained the Facebook user base as follows: 1/3 college, 1/3 high school\n and 1/3 old people. I guess I fall into the last category.\n\n## Ventures\n\nOf course the venture capital community would not want to miss this congregation\n of Silicon Valley billionaires in the making. One of them was easily identified by\n wearing the proverbial blue shirt and khakis. I don't think he closed a deal that\n day. Salil was better camouflaged.\n\n## Googlers to Facebookers\n\nLastly, it is a bit of an open secret that a fair number of Googlers now work for\n Facebook. Their office is not far, the food is free as well, and Googlers know the\n importance of joining before the IPO all too well. So it's funny when I can into a\n number of coworkers and had to ask them whether they switched sides or are simply\n attending. For now I am simply attending :-)\n\n*Share:*\n\n*Follow:* [Follow @ghohpe](https://twitter.com/ghohpe) [SUBSCRIBE TO FEED](../ramblings.rss)\n\n*More On:* [EVENTS](/ramblings_events.html) [ALL RAMBLINGS](../ramblings.html)\n\nGregor is a cloud architect and author. He is a frequent speaker on asynchronous messaging,\n IT strategy, and cloud.", "znaku_textu": 6176, "slov": 1005, "odkazu": 46, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 15:36:03", "sha256": "7115eace640eb041f4889715188b9cbad997a538cb32359e158acb025c018cdb", "hloubka": 4, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://architectelevator.com/blog", "http://wiki.developers.facebook.com/index.php/Garage_Calendar", "http://www.amazon.com/gp/browse.html?node=201590011", "http://www.ilike.com/", "https://twitter.com/share", "https://twitter.com/ghohpe", "https://leanpub.com/37things"]} {"url": "http://www.enterpriseintegrationpatterns.com/ramblings/62_mashupsummit.html", "titulek": "Enterprise Mashup Summit - Enterprise Integration Patterns", "h1": "Enterprise Mashup Summit", "popis": "I attended the Enterprise Mashup Summit last Friday", "klicova_slova": "", "kanonicka": "", "jazyk": "en_US", "robots_meta": "", "og": {"og:type": "article", "og:locale": "en_US", "og:site_name": "Enterprise Integration Patterns", "og:title": "Enterprise Mashup Summit", "og:description": "I attended the Enterprise Mashup Summit last Friday", "og:url": "https://www.enterpriseintegrationpatterns.com/ramblings/62_mashupsummit.html"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Enterprise Mashup Summit"}, {"uroven": 2, "text": "Buzz"}, {"uroven": 2, "text": "Dave Nielsen, StrikeIron"}, {"uroven": 2, "text": "Stefan Andreasen, Kapow"}, {"uroven": 2, "text": "Patrick Chanezon, Google"}, {"uroven": 2, "text": "Oren Michels, Mashery"}, {"uroven": 2, "text": "Sriram Padmanabhan, Lauren Cooney, IBM"}, {"uroven": 2, "text": "Deepak Alur, JackBe"}, {"uroven": 2, "text": "Panel"}], "markdown": "Gregor's Ramblings\n\n---\n\n# Enterprise Mashup Summit\n\nOctober 1, 2007\n\nFind my posts on IT strategy, enterprise architecture, and digital transformation\n at [ArchitectElevator.com](https://architectelevator.com/blog).\n\nI attended the Enterprise Mashup Summit last Friday. It was a small-ish event, with\n about 50 people attending. We saw about 10 presentations, mostly by vendors plus an\n open forum. None of the presentations were too sales-ey, which gave the event a nice\n workshop feel. Given the limited size, it would have been nice to have more time for\n interaction. Here is a quick rundown of my impressions.\n\n## Buzz\n\n**Situational Applications**\n\nThe word of the event was certainly [situational application](http://en.wikipedia.org/wiki/Situational_application). I like the word and it even has a Wikipedia entry already: *A situational application is software created for a small group of users with specific\n needs. The application typically has a short life span, and is often created within\n the group where it is used, sometimes by the users themselves.* The best part about it is that you no longer have to say that you hacked something\n together quickly. Rather, you built a situation application.\n\n**Copy-paste Developer**\n\nThe \"copy-paste developers\" are coming out into the open. After a first copy-paste\n generation built fancy JavaScript-enable web sites, the new generation can manage\n to built actual Web applications. Copy-paste development is a key ingredient into\n making the trend more viral – everyone can participate.\n\n**Creativity with Control**\n\nThis IBM slogan highlights the dilemma corporate IT faces. Enabling end users to build\n situational applications takes a lot of load off IT. On the other hand, without any\n kind of governance a growing repertoire of these applications can become unmanageable.\n\n## Dave Nielsen, StrikeIron\n\nStrikeiron acts as a marketplace for high-value web services, i.e. the ones a business\n would want to pay for, such as sales tax computation, address correction, etc. StrikeIron\n acts as a middleman between service provider and consumer, providing security, metering,\n monetization, reporting, etc.\n\nDave summarized his view of Web 2.0 in three bullet points: more users, more savvy,\n more willing. When the bubble burst, the valuable users did not go away, they just\n became more savvy, meaning they wanted more sophisticated applications than a lot\n of the dot-coms offered. As we have all seen, users are also much more willing to\n contribute personal information etc. This underlines the view that mashups are more\n of a social phenomenon, as opposed SOA being technical phenomenon. Dave illustrated\n his point by comparing pre-bust matchmaker.com, which provided simple multiple-choice\n profiles to match.com, which allowed freeform text and image sharing, to [YouTube](http://www.youtube.com), which hosts more embarrassing videos than we'd like to imagine.\n\nWhen asked about governance, Dave mentioned that he does not see many issues. Mashups\n based on StrikeIron tend to be in departmental, not business critical applications.\n In his view, the full fledged SaaS applications (SalesForce and friends) are leading\n the way there by providing SLA etc. StrikeIron alleviates privacy concerns by assuring\n customers that they do not store data. In general, they try to see to the business\n directly as the IT sales cycle can be 6 months or longer.\n\n## Stefan Andreasen, Kapow\n\nStefan talked to his product suite, which can help scrape data off Web sites and make\n it available as a feed or service. In this realm he distinguishes between *horizontal data*, which is easily available to everyone and *vertical data*, which is more personalized and more difficult to get at. He compared housingmaps.com\n (horizontal) to a more targeted application that might provide school rating for families\n with kids or bars for single people.\n\nTo Stefan, Mashups do not have to use JavaScript, Excel can be a great mashup platform.\n The key ingredients to him are: RIA + Do-it-yourself + Scripting + Content. He compared\n Mashups with traditional applications in a similar way as we did at [Mashup Camp](58_mashupcamp.html):\n\n- Mashups are: opportunistic, data centric, collaborative, web based\n- IT projects are: company wide, controlled, task centric, scalable, high volume\n\nKapow currently sells their software into the enterprise as investment towards future\n mashups. Sample applications include reputation management (e.g., checking blogs for\n mentions of your company) or competitive intelligence (e.g., check competitors' prices\n or monitor retailers' \"out of stock\" situations to estimate how well an item is selling).\n The obvious questions for Stefan were the robustness of the scraping approach and\n the quality of the data. In his view, the business value of data is higher than the\n cost of having to rewrite your application every once in a while, making it viable\n to work with a solution that is a little brittle. Inside the enterprise application\n changes can be managed more easily, making the scraping approach more viable.\n\nThe second major question relates to legality and end user agreements. In my view,\n sites who like to share their data typically provide web services and / or feeds already,\n while sites who do not share their data as a feed typically issue end user agreements\n that prohibit users from scraping and repurposing the data. Stefan has obviously heard\n this question before. One response is the \"guns don't kill people\" attitude, even\n though we learned from the Digital Millennium Act that in the eyes of the government\n \"Software, not people, cracks code.\" Taking another point of view, these tools simply\n automate tasks that companies already execute manually, e.g. by having someone copy\n and paste competitor's prices off their sites. The most convincing scenario is probably\n company internal use, where such concerns do not arise.\n\n## Patrick Chanezon, Google\n\nPatrick gave a nice overview of [Google's offerings for the enterprise market](http://code.google.com/enterprise). Google is becoming an increasingly important platform player, [Google Apps](http://code.google.com/apis/apps/) being the most visible offering. Apps is complemented by a set of APIs, some of which\n are available specifically to enterprise customers, such as [Google Maps for Enterprise](http://www.google.com/enterprise/maps/). Patrick also pointed out it's easier to use effectively more recent products, such\n as Google Gears, inside an enterprise, where a consistent software image can be deployed\n to all users. In true Web 2.0 spirit, Patrick shared his slides and demo material\n on [del.icio.us](http://del.icio.us/chanezon/enterprisemashup2007).\n\n## Oren Michels, Mashery\n\nOren spoke from a vendor who actually makes money in the mashup space. Mashery markets\n primarily to companies who own high value data but have relatively little traffic\n to their Web site. Mashery proposition is to make it fast and safe to expose offerings\n as public web services. For example, [domaintools.com](http://www.domaintools.com)'s API traffic is a multiple of the site traffic. Oren mentioned a photo web site\n that does not currently offer an API and apparently receives 100 requests a day (!)\n to provide one. Mashery runs its servers on Amazon's [EC2](http://aws.amazon.com/ec2).\n\n## Sriram Padmanabhan, Lauren Cooney, IBM\n\nSriram and Lauren shared IBM's Info 2.0 vision: discover, transform, feeds, mashup.\n They underlined the fact that enterprise applications and situational applications\n complement each other. IBM play in the space consists of three elements: Mashup Hub\n for discovery, DAMIA for data processing, and QED Wiki to assemble mashups. More at\n [Lauren's blog](http://jroller.com/cooney).\n\n## Deepak Alur, JackBe\n\nDeepak demo'd the JackBe mashup platform. The [Presto Wires](http://www.jackbe.com/products/index.php) mashup composer offers a composition model similar to [Yahoo! Pipes](http://pipes.yahoo.com) or IBM's DAMIA. Alur sees mahsups as a new layer in the layered software model, resulting\n in Presentation, Mashup, Business, and Integration layers. As co-author of the well-know\n \"Core J2EE Patterns\", Deepak is interested in documenting common mashup patterns.\n He listed the following patterns: invoke service, filter, sort, join, merge data,\n transformation, annotation, for-each, web clipping, scripting.\n\nAt the core of JackBe's mashup server is an XML scripting language, which allows developers\n to define \"services\". These services can be composed into larger services through\n micro-orchestrations.\n\n## Panel\n\nThe event completed with a panel, which was more of an open discussion. This part\n was very interesting -- I wish we had more time for this type of interaction. I wish\n I had taken better notes. For now I have only the questions:\n\n- What tools are available, especially to feed data back into the system (i.e. not read-only)?\n- Application lifecycle management?\n- What implementation tools are available?\n- How do solutions move from the situational/mashup to controlled/enterprise?\n- Do fat client applications have a place or is it all in the cloud?\n- Data security?\n- How to get flexibility while ensuring data quality?\n- Who will be the first CTO who recognizes that opening API's is a good thing?\n- What is driving the need?\n- How do you make money with this?\n\nThe buzz around Web 2.0 can be heard quite clearly in the Bay Area. This weekend we\n have the [Community Next](http://www.communitynext.com/) event, followed next week by the [The Business of APIs](http://www.apiconference.com) event and the [Web 2.0 Summit](http://www.web2summit.com/). It's become difficult to keep track of all the events in the area. Luckily, Web\n 2.0 application like [Upcoming](http://upcoming.yahoo.com/) or [Facebook](http://www.facebook.com) help us manage.\n\n*Share:*\n\n*Follow:* [Follow @ghohpe](https://twitter.com/ghohpe) [SUBSCRIBE TO FEED](../ramblings.rss)\n\n*More On:* [EVENTS](/ramblings_events.html) [ALL RAMBLINGS](../ramblings.html)\n\nGregor is a cloud architect and author. He is a frequent speaker on asynchronous messaging,\n IT strategy, and cloud.", "znaku_textu": 10096, "slov": 1495, "odkazu": 60, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 15:36:02", "sha256": "7b3772c9144183aa0635f7132b004b349b706cb21634cb25fd3d3c820b4f1654", "hloubka": 4, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://architectelevator.com/blog", "http://en.wikipedia.org/wiki/Situational_application", "http://www.youtube.com/", "http://code.google.com/enterprise", "http://code.google.com/apis/apps/", "http://www.google.com/enterprise/maps/", "http://del.icio.us/chanezon/enterprisemashup2007", "http://www.domaintools.com/", "http://aws.amazon.com/ec2", "http://jroller.com/cooney", "http://www.jackbe.com/products/index.php", "http://pipes.yahoo.com/", "http://www.communitynext.com/", "http://www.apiconference.com/", "http://www.web2summit.com/", "http://upcoming.yahoo.com/", "http://www.facebook.com/", "https://twitter.com/share", "https://twitter.com/ghohpe", "https://leanpub.com/37things"]} {"url": "http://www.enterpriseintegrationpatterns.com/ramblings/63_bubble20.html", "titulek": "Bubble 2.0 - Enterprise Integration Patterns", "h1": "Bubble 2.0", "popis": "What’s wrong with this picture? I crash a stylish party at a pricey venue (SF Moma)", "klicova_slova": "", "kanonicka": "", "jazyk": "en_US", "robots_meta": "", "og": {"og:type": "article", "og:locale": "en_US", "og:site_name": "Enterprise Integration Patterns", "og:title": "Bubble 2.0", "og:description": "What’s wrong with this picture? I crash a stylish party at a pricey venue (SF Moma)", "og:url": "https://www.enterpriseintegrationpatterns.com/ramblings/63_bubble20.html"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Bubble 2.0"}, {"uroven": 2, "text": "MySpace Party Socializing"}, {"uroven": 2, "text": "Web 2.0 Summit"}, {"uroven": 2, "text": "Another Bubble?"}], "markdown": "Gregor's Ramblings\n\n---\n\n# Bubble 2.0\n\nOctober 15, 2007\n\nFind my posts on IT strategy, enterprise architecture, and digital transformation\n at [ArchitectElevator.com](https://architectelevator.com/blog).\n\nWhat’s wrong with this picture? I crash a stylish party at a pricey venue (SF Moma).\n I have no business being there, nor do I have the required invitation. I nonchalantly\n talk my way in, and hit the crowd with two fellow geeks. Within a few seconds an attractive\n blonde with a low cut dress approaches us and engages us in a conversation. We grab\n a few free drinks, indulge on the tirelessly circulating horse d’oeuvres, and talk\n to the blonde.\n\nWhat’s wrong with this picture? That we are a bunch of geeks with no social skills\n and nothing to talk about the last mashup we built. This kind of stuff happens only\n in my dreams or in the 1999 dot-com bubble years. Strangely, though, it also happened\n last night at the MySpace Party. Accompanied by fellow geeks [John Musser](http://www.programmableweb.com) and [Richard MacManus](http://www.readwriteweb.com), I crashed the party and (not very successfully) tried to blend into the mass of\n beautiful people.\n\n## MySpace Party Socializing\n\nIn my frantic attempts to socialize, I did meet [Jyri Engeström](http://jyri.jaiku.com/), [Jaiku](http://www.jaiku.com) co-founder and now fellow Googler. According to his [micro-blog](http://jyri.jaiku.com/), he just found a house in the Mission and is turning 30. Congrats!\n\nWe also exchanged a few words with Oren from [Mashery](http://www.mashery.com), who staged the [Business of APIs](http://www.apiconference.com/) conference earlier in the week.\n\nPeople were expecting MySpace to make a big announcement, but it ended up just being\n a see-and-be-seen event. Earlier that evening, Chris DeWolfe announced that MySpace\n is going to come out with some platform play some time in the future. As if we could\n not have guessed.\n\n## Web 2.0 Summit\n\nI did not attend the actual [Web 2.0 (TM) Summit](http://www.web2summit.com/), partly because I did not want to pay $3000, partly because I missed the registration\n (apparently it sold out in a week), and partly because it’s meant for people who are\n more important than I am. [Programmable John](http://blog.programmableweb.com/) (who got a press pass) lamented that the hallway discussions were not all that interesting,\n most likely because attendees are looking for investment opportunities and do not\n like to share their insights.\n\n## Another Bubble?\n\nGregor’s will-they-let-a-geek-like-me-into-a-hip-party meter indicates that Silicon\n Valley is pumping once again at full pace. A lot of my friends recently received funding\n or are starting new companies. The parties are more extravagant and easier to get\n into. Rent is up. Waiters are getting cockier. Will it be another bubble? I think\n there is a lot of opportunity in Web 2.0 (or whatever we want to call it), but things\n are a bit more sane this time than last. For example, I don’t think my grandma is\n going to invest her life savings again in some fly-by-night dot com.\n\nI also feel better about how these companies are using the Web. It seems that the\n new breed of applications consists of true Web applications, the ones that would not\n be possible without Internet technology. Last time around, people seemed most interested\n in teleporting traditional revenue models onto the Internet (I got my [sock puppet](http://en.wikipedia.org/wiki/Pets.com)). This generation of Internet applications exploits the inherent network effect of\n the Internet, combined with user’s ability to contribute information to the network.\n By now, it’s also proven that advertising-funded revenue models are working.\n\n*Share:*\n\n*Follow:* [Follow @ghohpe](https://twitter.com/ghohpe) [SUBSCRIBE TO FEED](../ramblings.rss)\n\n*More On:* [EVENTS](/ramblings_events.html) [ALL RAMBLINGS](../ramblings.html)\n\nGregor is a cloud architect and author. He is a frequent speaker on asynchronous messaging,\n IT strategy, and cloud.", "znaku_textu": 3991, "slov": 607, "odkazu": 52, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 15:36:01", "sha256": "91c81983df8c50b375c755a0bc5240119f095b3eac0b7e8f8efee5228888d281", "hloubka": 4, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://architectelevator.com/blog", "http://www.programmableweb.com/", "http://www.readwriteweb.com/", "http://jyri.jaiku.com/", "http://www.jaiku.com/", "http://www.mashery.com/", "http://www.apiconference.com/", "http://www.web2summit.com/", "http://blog.programmableweb.com/", "http://en.wikipedia.org/wiki/Pets.com", "https://twitter.com/share", "https://twitter.com/ghohpe", "https://leanpub.com/37things"]} {"url": "http://www.enterpriseintegrationpatterns.com/ramblings/64_oopslacss.html", "titulek": "Double-Dipping: OOPSLA and Colorado Software Summit - Enterprise Integration Patterns", "h1": "Double-Dipping: OOPSLA and Colorado Software Summit", "popis": "I am just returning from a trip to Montreal and Keystone, CO for the OOPSLA and Colorado Software Summit conferences", "klicova_slova": "", "kanonicka": "", "jazyk": "en_US", "robots_meta": "", "og": {"og:type": "article", "og:locale": "en_US", "og:site_name": "Enterprise Integration Patterns", "og:title": "Double-Dipping: OOPSLA and Colorado Software Summit", "og:description": "I am just returning from a trip to Montreal and Keystone, CO for the OOPSLA and Colorado Software Summit conferences", "og:url": "https://www.enterpriseintegrationpatterns.com/ramblings/64_oopslacss.html"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Double-Dipping: OOPSLA and Colorado Software Summit"}, {"uroven": 2, "text": "OOPSLA"}, {"uroven": 2, "text": "Kagemusha"}, {"uroven": 2, "text": "Web Service Workshop"}, {"uroven": 2, "text": "Mini PLoP"}, {"uroven": 2, "text": "Colorado Software Summit"}, {"uroven": 2, "text": "Dan Pritchett on eBay Architecture"}, {"uroven": 2, "text": "Adventurous Drive Home"}], "markdown": "Gregor's Ramblings\n\n---\n\n# Double-Dipping: OOPSLA and Colorado Software Summit\n\nOctober 27, 2007\n\nFind my posts on IT strategy, enterprise architecture, and digital transformation\n at [ArchitectElevator.com](https://architectelevator.com/blog).\n\nI am just returning from a trip to Montreal and Keystone, CO for the [OOPSLA](http://www.oopsla.org) and [Colorado Software Summit](http://www.softwaresummit.com) conferences. I spoke on SOA Patterns, workshopped my conversation pattern paper,\n and gave six talks on event-driven architectures and building mashups using Yahoo!\n Pipes and Google Mashup Editor.\n\n## OOPSLA\n\nI only attended the workshop and the Mini-PLoP portion of OOPSLA. In some sense, these\n are often the most interesting portion of the conference. I once joked that if you\n want to guarantee something will fail, you have academics make a plan and have volunteers\n execute it. This is pretty similar to how OOPSLA is run. But strangely, it does work.\n\nThe most interesting part for me was to hang out with some of the more interesting\n people in the industry. Holding the conference in downtown Montreal provided for many\n opportunities to exchange thoughts over a glass of wine in the evenings. A chat on\n functional programming with Erik Meijer was almost worth the trip by itself. Erik\n gave a live demo of Volta, Microsoft's entry into programming Rich Internet Applications.\n Volta allows Internet applications to be developed in C#, generating any necessary\n JavaScript to make it run smoothly in the browser. A key feature is that the programming\n model appears to the developer as if he or she is writing a rich client application.\n During code generation, one can choose whether individual functions execute inside\n the browser or on the server-side. The client invokes server-side functions via XML-HTTP\n calls. Erik also demo'd how to render a rotating 3D tea pot using 30,000
tags.\n I also got to catch up with Martin Fowler, who is feverishly working on another book.\n Stay tuned. It was also good to see [Dave Thomas](http://www.davethomas.net) (the OTI one) again.\n\n## Kagemusha\n\n[Kagemusha](http://en.wikipedia.org/wiki/Kagemusha) is a beautiful movie by Akira Kurosawa. One of the most memorable scenes is at the\n end, when the petty thief, who served as doppelganger for an assassinated feudal lord,\n picks up a flag and runs into the battlefield to his certain demise. This is the image\n that came to my mind when [Max](http://blog.maximilien.com/) started to argue with Erik Meijer about programming languages, trying to convince\n Erik that Ruby is just so much better than anything else. What a bloodshed. Too bad\n I missed Max's next suicide mission when he told Dave Thomas to his face that Erich\n Gamma conceived Eclipse. Ouch!\n\n## Web Service Workshop\n\nI gave a talk on SOA Patterns at the Web services workshop, co-organized by Olaf Zimmermann.\n Olaf is doing his PhD on using patterns to describe architectural decisions and offer\n alternatives (he has a much fancier title, but that's how I understand it). I am usually\n a little skeptical when someone uses patterns in some tool or framework, but Olaf\n brings 10 years of IBM Web services consulting into the mix, so I am curious to see\n the results.\n\n## Mini PLoP\n\nIn the ranking of technical conferences with dorky names, PLoP must rank right behind\n OOPSLA (if you speak German, by far the worst conference name must be [WICSA](http://www.wicsa.net)!). PLoP is the Pattern Languages of Programming \"conference\". It's really a series\n of writer's workshops, which discuss pattern papers. A writer's workshop is a moderated\n session where one author shares a paper to be critiqued by other workshop members\n (typically also authors). The author is not allowed to speak or defend the paper,\n simulating the fact that the paper will have to stand on its own when someone reads\n it outside of the workshop. I workshopped my original [Integration Patterns paper](../docs/Enterprise%20Integration%20Patterns%20-%20PLoP%20Final%20Draft%203.pdf) at PLoP 2002 and received a lot of great feedback from Martin Fowler, John Crupi,\n Brian Marick, and many others.\n\nOf course, a writer's workshop is only as good as the people attending. This time\n I was able to recruit Ralph Johnson and Olaf Zimmermann into my session. I workshopped\n my paper on conversation patterns. It's a little long (45 pages), but I got a lot\n of great feedback, which I will start to incorporate. Hopefully I will have enough\n substance to post the patterns to my site by end of this year.\n\n## Colorado Software Summit\n\nI had to leave OOPSLA Tuesday morning to catch an early flight to Denver. The Colorado\n Software Summit (CSS) is held every Fall in the Keystone Resort, near Breckenridge.\n Apparently, it snowed heavily on the weekend, making for beautiful vistas (and happy\n ski resorts). CSS started as a mailing list of OS/2 users, who helped each other out\n in face of poor documentation. It's now in its 11th year, and the first year I am\n attending as a speaker. I presented on Event-driven Architectures and gave a talk\n on mashups, featuring a live demo using Google Calendar, Yahoo! Pipes, and Google\n Mashup Editor. This talk was result of my observation / complaint after a Google developer\n that no presenter built a solution from scratch. So I put my money where my mouth\n is and prepared a talk that builds a mashup application from scratch. Luckily, the\n connectivity held up and the talk was a big success.\n\nThe Colorado Software Summit has a peculiar format: every speaker gives each talk\n 3 times (meaning 6 sessions for me in total!), giving attendees multiple options to\n see all their favorite talks without running into conflicts. It's a bit tiring for\n speakers, but a great idea. And, towards the end of the conference the talks tend\n to go very smoothly.\n\nThe event was a little smaller than in past years, counting around 250-300 attendees.\n Being in a mountain resort gives the event a very cozy feel, with lots of interactions\n between speakers and attendees. I had the pleasure of meeting Dan, who is famous for\n being the chief implementation officer for the [Dating Design Patterns](http://www.datingdesignpatterns.com/) book. He is married now, so the patterns seem to work.\n\n## Dan Pritchett on eBay Architecture\n\nDan is a technical fellow and shared a ton of detail on [eBay's architecture](http://www.addsimplicity.com/downloads/eBaySDForum2006-11-29.pdf) in a special evening session. Seeing how a site with 248 Million users works is certainly\n interesting. Dan was very open and answered many detailed questions. Here some interesting\n facts (some of them are from a few months ago and likely higher today):\n\n- 1 Billion photos\n- > 1 Billion page views / day\n- 26 Billion SQL queries / day\n- 100 Million items for sale\n- 99.94% availability\n\nHow do they make this happen? Some of the key architectural decisions include a functional\n decomposition of the site across application servers, abstaining from using database\n transactions and foreign key constraints. Asynchronous messaging and even-driven approaches\n contribute to decoupling key systems (billing /search / fraud) and increasing throughput.\n Dan actually attended my EDA talk and was able to provide convincing arguments for\n the use of event-driven architectures. It's nice to see that some people understand\n (and realize) the potential for higher throughput in these architectures when compared\n to synchronous interaction or the dreaded shared database integration. Interestingly,\n Dan also mentioned that changing the architecture to be message-oriented required\n a long series of argument against the incumbent \"architects\". Maybe misery does love\n company, because it made me feel about my many attempts to convince fellow architects\n of the benefits of a message-oriented approach. Maybe there is hope...\n\n## Adventurous Drive Home\n\nOn the way back I collected some [hard data](../img/gpslog.png) towards the suitability of a Mustang for crossing an 11,500 ft mountain pass a few\n days after heavy snow fall (notice the 90 minutes of speed 0 at 11,00 feet). After\n a lot wheel spinning, digging, jacking, and towing, I ultimately managed to reach\n Highway 285, which is famous for leading through [South Park](http://en.wikipedia.org/wiki/South_Park_%28Colorado_basin%29).\n\n*Share:*\n\n*Follow:* [Follow @ghohpe](https://twitter.com/ghohpe) [SUBSCRIBE TO FEED](../ramblings.rss)\n\n*More On:* [EVENTS](/ramblings_events.html) [CONVERSATIONS](/ramblings_conversations.html) [ALL RAMBLINGS](../ramblings.html)\n\nGregor is a cloud architect and author. He is a frequent speaker on asynchronous messaging,\n IT strategy, and cloud.", "znaku_textu": 8644, "slov": 1337, "odkazu": 54, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 15:36:00", "sha256": "2468d39dcc02adf765037850c68db84a9876600cacd0494f3f8f639d08aeb7a5", "hloubka": 4, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://architectelevator.com/blog", "http://www.oopsla.org/", "http://www.softwaresummit.com/", "http://www.davethomas.net/", "http://en.wikipedia.org/wiki/Kagemusha", "http://blog.maximilien.com/", "http://www.wicsa.net/", "http://www.datingdesignpatterns.com/", "http://www.addsimplicity.com/downloads/eBaySDForum2006-11-29.pdf", "http://en.wikipedia.org/wiki/South_Park_(Colorado_basin)", "https://twitter.com/share", "https://twitter.com/ghohpe", "https://leanpub.com/37things"]} {"url": "http://www.enterpriseintegrationpatterns.com/ramblings/65_gears.html", "titulek": "Google Gears Live From Japan - Enterprise Integration Patterns", "h1": "Google Gears Live From Japan", "popis": "Since Google's Developer Day, I have been promising to speak more regularly about Google products", "klicova_slova": "", "kanonicka": "", "jazyk": "en_US", "robots_meta": "", "og": {"og:type": "article", "og:locale": "en_US", "og:site_name": "Enterprise Integration Patterns", "og:title": "Google Gears Live From Japan", "og:description": "Since Google's Developer Day, I have been promising to speak more regularly about Google products", "og:url": "https://www.enterpriseintegrationpatterns.com/ramblings/65_gears.html"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Google Gears Live From Japan"}, {"uroven": 2, "text": "Google Gears – More than offline"}, {"uroven": 2, "text": "It's Open Source, and it's Google"}, {"uroven": 2, "text": "Google Developer Roundtable"}, {"uroven": 2, "text": "A Presentation on Gears in Gears"}, {"uroven": 2, "text": "Questions"}], "markdown": "Gregor's Ramblings\n\n---\n\n# Google Gears Live From Japan\n\nDecember 26, 2007\n\nFind my posts on IT strategy, enterprise architecture, and digital transformation\n at [ArchitectElevator.com](https://architectelevator.com/blog).\n\nSince Google's [Developer Day](54_gdd.html), I have been promising to speak more regularly about Google products. This is a bit\n of a balancing act for me as I want to avoid the slippery slope of becoming a [corporate sock puppet](http://en.wikipedia.org/wiki/Pets.com#The_Pets.com_sock_puppet). I also don't want to neglect my real interest in connected systems, SOA, and asynchronous\n messaging. With the Internet turning into the largest connected system (see my [The Cloud as the New Middleware Platforms](http://qcon.infoq.com/london/tracks/show_track.jsp?trackOID=95) track on at [QCon](http://qcon.infoq.com/london/conference/)), the gap between Web-based technologies and connected systems design has become\n significantly smaller, allowing me to combine interests and Google developer products\n more naturally. Of course, the fact that Google is rolling out new developer products\n and API's around the clock, does not hurt either. What's funny, though, is that my\n first official external Google appearance was staged in the land of the rising sun,\n far far away from Mountain View.\n\n## Google Gears – More than offline\n\nSo it was just a matter of time until I took a closer look at [Google Gears](http://gears.google.com/). While I have no aspiration (or hope) to become [Mr. Gears](http://almaer.com/blog/category/gears), I find Gears to be quite fascinating. Like many new technologies, Gears was a bit\n misunderstood at the beginning. Many people (myself included) equated Gears with offline\n browsing. I think to some extend this image was reinforced through many of the early\n demos, which focused on making all sorts of Web sites (Wikipedia, Google Maps, what\n not) available offline. While this is very tempting (I could not resist but build\n my own offline calendar app in Gears), looking only at offline is a very narrow view\n on Gears.\n\nGears is primarily about enhancing browser capabilities across multiple browser platforms.\n While browsers are very powerful platforms, developers still have to deal with a number\n of deficiencies. It's in Google's best interest to enhance this platform because the\n vast majority of our applications are delivered through the browser. The initial set\n of API's includes the following features:\n\n- caching of resources, such as HTML pages, images, CSS, etc.\n- a local SQLite database\n- a worker pool for background task processing\n\nThese functions are available to JavaScript running inside FireFox, IE, or Safari\n (soon). The function set is well suited to data synchronization for offline applications,\n but storing data and resources in a local database can make even connected applications\n much more responsive. Plus, the resource manager, local database, and worker pool\n are just the initial set of functions. The [Google Gears Wiki](http://code.google.com/p/google-gears/w/list) shows a variety of proposed API's for subsequent versions of Google Gears.\n\n## It's Open Source, and it's Google\n\nThis seems like a good time to point out that [code.google.com](http:// code.google.com) is a little schizophrenic. It's an open source code repository as well as Google's\n developer support site. You could say it is [MSDN](http://msdn.microsoft.com) and [Sourceforge](http://www.sourceforge.net) in one. Likewise, the content related to Gears is split into two distinct parts:\n the [open source project repository](http://code.google.com/p/google-gears/) and the [Google Developer site](http://code.google.com/apis/gears/design.html). It kind of makes sense when you consider that Gears is an open source project (which\n happens to be hosted at code.google.com), but is still considered one of Google's\n supported developer products (so tutorials and documentation are available just like\n for other APIs).\n\n## Google Developer Roundtable\n\nGoogle Japan has been hosting a series of \"developer round tables\" to share information\n about Google API's and developer products with the local community. I like the format\n – it typically consists of a presentation followed by a panel discussion. I stated\n many times that I am a big fan of panels – they provide the kind of interactivity\n that you can't get from a blog. [Roundtable #4](http://googlejapan.blogspot.com/2007/12/4.html) focused on Gears, and I had a chance to take on the presentation slot, which will\n be made available on video. The panel was held in Japanese, so that was off-limits\n for me because people wanted to hear more than \"eki wa doko desuka\", i.e. \"where is\n the train station\". The panel consisted of two Google developers and four invited\n guests, moderated by Naoki-san, a product manager and developer relations manager\n in Japan. Most of the panelists demo'd applications they built in Gears and described\n their experiences building these applications. I really enjoyed this focus on real\n developer experience -- this was definitely not a marketing event! Ichikawa-san, one\n of the Google developers on the panel, showed a demo application that can suggest\n keywords as the user types into an input field, similar to [Google Suggest](http://www.google.com/webhp?complete=1&hl=en). The application is extremely responsive because the application uses a local SQL\n database with a 'LIKE' query clause.\n\n## A Presentation on Gears in Gears\n\nWhen giving a presentation about Google Gears, what would be better than actually\n making a Gears application that renders the presentation? That's what the sample application,\n that comes with Google Gears, does. It reads a text file into the local SQLite database\n and renders the presentation from the database records. On slide 10 of my updated\n [presentation](http://gearspreso.googlecode.com/svn/trunk/p10n.html) you can cache all application resources (e.g., images, JavaScript files, CSS files,\n etc) in the resource manager and run the presentation offline (naturally, following\n this link requires Gears). I demonstrated that feature during the talk by pulling\n the network cable right after synchronizing. Thank god it worked. I hope it shows\n on the video! I uploaded the presentation application with all supporting files to\n the [code.google.com subversion repository](http://gearspreso.googlecode.com).\n\nIn a lucky stroke of genius, a Japanese publisher managed to publish a [book on Gears](http://www.amazon.co.jp/Google-Gears%E3%82%B9%E3%82%BF%E3%83%BC%E3%83%88%E3%82%AC%E3%82%A4%E3%83%89-%E7%99%BD%E7%9F%B3-%E4%BF%8A%E5%B9%B3/dp/477413287X/ref=pd_bbs_sr_1?ie=UTF8&s=books&qid=1198679161&sr=8-1) the very day of the roundtable. Naturally, the book got a bunch of free PR during\n the event. Ito-san from [WebOS Goodies](http://webos-goodies.jp) pointed out that more powerful API's in the browser will lead to less dependence\n on server resources, reducing server cost. This may enable more people to implement\n their dreams to create web applications.\n\n## Questions\n\nThe event also included a Q&A session, giving the audience a chance to pose questions\n directly to the developers or the invited panelists. Of course, it's also useful feedback\n for us to hear what concerns developers. Questions included Google's future plans\n (naturally, the answer is a little vague), especially the relationship to the [offline support coming in FireFox 3.0](http://developer.mozilla.org/en/docs/Firefox_3_for_developers). Google and Mozilla are actually working quite closely, so I don't see much of a\n conflict. Also, Gears is a cross-browser platform API, so it's inherently broader\n in scope than a FireFox only feature. Lastly the FireFox off-line capability does\n not include an actual database that can store and search structured data.\n\nNaturally, attendees were curious about Gears support for mobile applications. It's\n easy to see that Gears' features are particularly interesting in a mobile environment\n where high latency and spotty connections can plague browser applications. With [Android](http://code.google.com/android/) around the corner, I am sure we are bound to hear more about this topic.\n\nDevelopers also pointed out that the Gears API's are relatively low level building\n blocks, making more guidance and advice from Google essential. A recent [article on the Gears Architecture](http://code.google.com/apis/gears/architecture.html) clearly points this direction. This is a topic close to my heart. I want to make\n sure that developing rich and responsive browser apps is not reserved for hard core\n hackers and JavaScript junkies. While the \"competition\" (a good friend of mine, actually)\n has been getting a lot of air time regarding [Democratizing the Cloud](http://channel9.msdn.com/Showpost.aspx?postid=223865), it's equally important for Google to bring Web development to the masses. A little\n voice in my head tells me that there may be some interesting design patterns for these\n types of applications waiting to be documented. [AJAX Design Patterns](http://amazon.com/o/asin/0596101805/ref=nosim/enterpriseint-20) is a good step into that direction, but Gears has fundamentally changed the landscape\n for AJAX development.\n\n*Share:*\n\n*Follow:* [Follow @ghohpe](https://twitter.com/ghohpe) [SUBSCRIBE TO FEED](../ramblings.rss)\n\n*More On:* [EVENTS](/ramblings_events.html) [ALL RAMBLINGS](../ramblings.html)\n\nGregor is a cloud architect and author. He is a frequent speaker on asynchronous messaging,\n IT strategy, and cloud.", "znaku_textu": 9518, "slov": 1332, "odkazu": 66, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 15:35:59", "sha256": "4b85d5a63aba82966c8eace8f7da47a13622677936c13188c15e42f752dcd908", "hloubka": 4, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://architectelevator.com/blog", "http://en.wikipedia.org/wiki/Pets.com", "http://qcon.infoq.com/london/tracks/show_track.jsp?trackOID=95", "http://qcon.infoq.com/london/conference/", "http://gears.google.com/", "http://almaer.com/blog/category/gears", "http://code.google.com/p/google-gears/w/list", "http:// code.google.com/", "http://msdn.microsoft.com/", "http://www.sourceforge.net/", "http://code.google.com/p/google-gears/", "http://code.google.com/apis/gears/design.html", "http://googlejapan.blogspot.com/2007/12/4.html", "http://www.google.com/webhp?complete=1&hl=en", "http://gearspreso.googlecode.com/svn/trunk/p10n.html", "http://gearspreso.googlecode.com/", "http://www.amazon.co.jp/Google-Gears%E3%82%B9%E3%82%BF%E3%83%BC%E3%83%88%E3%82%AC%E3%82%A4%E3%83%89-%E7%99%BD%E7%9F%B3-%E4%BF%8A%E5%B9%B3/dp/477413287X/ref=pd_bbs_sr_1?ie=UTF8&qid=1198679161&s=books&sr=8-1", "http://webos-goodies.jp/", "http://developer.mozilla.org/en/docs/Firefox_3_for_developers", "http://code.google.com/android/", "http://code.google.com/apis/gears/architecture.html", "http://channel9.msdn.com/Showpost.aspx?postid=223865", "http://amazon.com/o/asin/0596101805/ref=nosim/enterpriseint-20", "https://twitter.com/share", "https://twitter.com/ghohpe", "https://leanpub.com/37things"]} {"url": "http://www.enterpriseintegrationpatterns.com/ramblings/66_fouryears.html", "titulek": "Reflecting on Enterprise Integration Patterns - Enterprise Integration Patterns", "h1": "Reflecting on Enterprise Integration Patterns", "popis": "The end of the year is always the time to reflect on the past happenings", "klicova_slova": "", "kanonicka": "", "jazyk": "en_US", "robots_meta": "", "og": {"og:type": "article", "og:locale": "en_US", "og:site_name": "Enterprise Integration Patterns", "og:title": "Reflecting on Enterprise Integration Patterns", "og:description": "The end of the year is always the time to reflect on the past happenings", "og:url": "https://www.enterpriseintegrationpatterns.com/ramblings/66_fouryears.html"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Reflecting on Enterprise Integration Patterns"}, {"uroven": 2, "text": "Pre-Dawn"}, {"uroven": 2, "text": "EIP Shotgun Wedding"}, {"uroven": 2, "text": "PLoP 2002"}, {"uroven": 2, "text": "EnterpriseIntegrationPatterns.com is Born"}, {"uroven": 2, "text": "Lots of Editing"}, {"uroven": 2, "text": "The Book!"}, {"uroven": 2, "text": "Too Much to Say"}, {"uroven": 2, "text": "The World Wild Web"}, {"uroven": 2, "text": "Family"}, {"uroven": 2, "text": "Proud Moments"}, {"uroven": 2, "text": "Integration Patterns in Open Source"}, {"uroven": 2, "text": "Universal Language"}, {"uroven": 2, "text": "What's Next?"}], "markdown": "Gregor's Ramblings\n\n---\n\n# Reflecting on Enterprise Integration Patterns\n\nJanuary 1, 2008\n\nFind my posts on IT strategy, enterprise architecture, and digital transformation\n at [ArchitectElevator.com](https://architectelevator.com/blog).\n\nThe end of the year is always the time to reflect on the past happenings. My friends\n in Japan often send a New Year's card with 12 pictures, each showing the significant\n event during the month. I am not sure something significant related to Enterprise\n Integration Patterns happened each month, but I think it's still nice to reflect a\n little bit on the history and current state of the patterns. After all, the patterns\n have matured from a draft paper to being adopted as the lingua franca for a number\n of open source messaging projects.\n\n## Pre-Dawn\n\nI have been working in integration since the ancient days, when \"EAI\" was still a\n cool term. Even my [very first client project](42_eaidsl.html) was an integration project! I had also used Design Patterns extensively when building\n large applications (I remember it took me a few attempts to understand the [Visitor](http://en.wikipedia.org/wiki/Visitor_pattern) pattern).\n\nWorking with EAI tools of the day, it did not take long for me to figure out that\n [integration is difficult](04_skills.html). Besides building solutions with the tools, I started to focus on best practices\n to help clients better understand the development process and architectural trade-offs.\n When I started working with multiple integration technologies (my company figured\n that someone who knows Vitria should also understand TIBCO), it occurred to me that\n deep beneath the surface (and a pile marketing material) these tools do share similarities.\n There are message queues, transformations, process editors and engines, message metadata,\n routing, and so on. But it had not dawned on me to document some of these insights\n as patterns.\n\n## EIP Shotgun Wedding\n\nThe meeting between integration and patterns happened when Martin Fowler was putting\n the finishing touches on [PofEAA](http://martinfowler.com/books.html#eaa). Kyle Brown from IBM pointed out that enterprise applications often rely on messaging\n (and IBM happens to sell a J2EE container including JMS), and suggested Martin should\n include messaging patterns in his book. Martin, knowing a thing or two about publishing\n books, quickly sensed the dangers of scope creep and decided to stick to patterns\n inside the application (with a few cliff hangers like [Gateway](http://martinfowler.com/eaaCatalog/gateway.html).\n\nWith everyone agreeing on messaging being a relevant, but under served topic, in early\n 2002 Kyle started a series of meetings in [RTP](http://www.rtp.org) to talk about messaging patterns. I remember that on one of our first meetings, North\n Carolina was blessed with very rare snow fall, pretty much crippling all forms of\n transportation. RTP is also the place of the \"shotgun wedding\" (Martin's choice of\n words) between Bobby and myself to take on the task of documenting patterns related\n to asynchronous messaging and enterprise integration.\n\n## PLoP 2002\n\nThe first milestone was the [Pattern Languages of Programming conference](http://www.hillside.net/plop/plop2002/) in summer of 2002. Bobby and Kyle submitted one large paper titled [Patterns of System Integration with Enterprise Messaging](http://www.hillside.net/plop/plop2002/final/woolfbrown2.pdf), while I submitted a paper on [Enterprise Integration Patterns](http://www.eaipatterns.com/docs/Enterprise%20Integration%20Patterns%20-%20PLoP%20Final%20Draft%203.pdf) (it looks like the title ultimately stuck). Together this already accounted for\n some 100 pages of material and 27 + 17 = 44 patterns (with a small amount of overlap).\n Both papers are still available in the [PLoP 2002 Proceedings](http://www.hillside.net/plop/plop2002/proceedings.html). We were lucky enough to have a great set of workshop participants, including Martin\n Fowler, John Crupi, Brian Marick, Ali Arsanjani, and many more.\n\n## EnterpriseIntegrationPatterns.com is Born\n\nAfter we looked at the volume of work contained in the submitted papers, we decided\n (with a lot of nudging from Martin) that the patterns deserve a more permanent home\n on the Internet. Hence, the domain with the long name [www.enterpriseintegrationpatterns.com](http://www.enterpriseintegrationpatterns.com) was born. Because I am a poor typist (and the name is too long), I also registered\n [www.eaipatterns.com](http://www.eaipatterns.com), and Kyle got [www.messagingpatterns.com](http://www.messagingpatterns.com) (we actually \"lost\" that domain to squatters for some time, but it is back in good\n hands now). All domains point to the same content. We now receive a steady stream\n of about a thousand visitors a day.\n\n## Lots of Editing\n\nThe next few months were characterized by a lot of feedback, revisions, and editing.\n Our [revision history](http://www.eaipatterns.com/history.html) captures some of this activity. A lot of discussion also occurred on our [Yahoo! mailing list](http://tech.groups.yahoo.com/group/eipatterns/). The list has been overrun by spammers, but we'll try to clean it up so we can preserve\n this historical record.\n After the \"open\" review, we submitted the manuscript to select reviewers, which included\n Luke Hohmann, David Rice, Richard Helm, and the Silicon Valley Patterns Group. Based\n on the detailed feedback (and to our shock), the manuscript grew from some 400 pages\n to 700.\n\nIncorporating the technical feedback was followed by tedious months of proof reading,\n image editing, and copy editing. That's when Martin Fowler's voice appeared to us\n like Obiwan reminding us that every time you think you are done with the book, there's\n more work left than you did up to that point. Even the force can't help there.\n\n## The Book!\n\nOur lives returned somewhat to normal in summer of 2003 when the final manuscript\n when to the printer. Finally, at OOPSLA 2003 in Anaheim, [Enterprise Integration Patterns](http://www.amazon.com/exec/obidos/ASIN/0321200683/enterpriseint-20) hit the shelves. At the show, we were outsold by Eric Evans' Domain Driven Design,\n but we were still mighty proud to see people actually buy the book. We even got to\n autograph a good handful, much to Martin's astonishment.\n\nOf course, the book has come a long way since then. We have well over 35,000 copies\n in print by now, not counting the international versions. We still look at our [Amazon Sales Rank](http://www.amazon.com/exec/obidos/ASIN/0321200683/enterpriseint-20) every once in a while. We are also most pleased to report that 25 out of 29 reviews\n give us 5 stars. Since feedback is important to us, I even created an [RSS feed for our book reviews](57_pipes.html) using [Yahoo! Pipes](http://www.pipes.yahoo.com). Interestingly, EIP also put on some weight over the years. No, we did not add anything\n (I am busy posting ramblings and Bobby runs a [blog at Developerworks](http://www.ibm.com/developerworks/blogs/page/woolf)), but it's simply the magic of paper weight.\n\n## Too Much to Say\n\nNaturally, as soon as a book goes to the printer, the authors can't think of anything\n else but all the things they would have liked to include in the book. There is always\n more to say than fits in a single book. Thus, in October of 2003, these [Ramblings](../ramblings.html) started. Instead of having a traditional blog, my intention was to have start a collection\n of small \"articles\", which cover relevant topics in the integration space. I was envisioning\n something like my own monthly column. It turns out that I have not even managed to\n post once a month on average, but I think I managed to cover some interesting topics.\n The ramblings is also where we first learned about the [relationship between making coffee and transactions](18_starbucks.html), the rambling that still gets the most hits and was featured in Joel Spolsky's [Best Software Writing](http://www.joelonsoftware.com/articles/BestSoftwareWriting.html).\n\n## The World Wild Web\n\nUnlike most blogs, mine does not allow readers to post of comments. It's not really\n by intention, it's mainly because my blog system is hand-rolled in XSLT (argh!) and\n it was too much work to implement a comment-feature with spam detection and such.\n A full-text RSS feed is also still missing. At least I made my feeds recognizable\n by FireFox.\n\nSpeaking of spam, it's the thing that killed the Enterprise Integration Pattern Wiki.\n As we often point out, patterns are not invented, but harvested from practice. Therefore,\n it seemed great to have a Wiki with a page for each pattern that allows readers to\n add their own experience using the pattern, or even add new patterns. This was quite\n successful for a while – it was great to see people's input on our patterns. For example,\n some readers added implementation tips or words of caution when applying certain patterns.\n Sadly, spam wiped out all topics on the Wiki because I used a standard wiki with no\n spam protection. I think I still have a backup. I hope to be able to find time to\n reinstate at least some of the content.\n\n## Family\n\nOne of the greatest things about writing the book is the group of truly great people\n I met through the work. All of these people are extremely bright, great communicators,\n and simply fun to hang out with. The list of people I met is simply too long to be\n fair to everyone, but I want to rattle a few folks off. Even in the early stages I\n got to meet the folks from the [Silicon Valley Patterns Group](http://c2.com/cgi-bin/wiki/wiki?SiliconValleyPatternsGroup). You'll see their names in the \"Acknowledgment\" section of many, many good books.\n Then of course, I got in close touch with many other popular pattern authors, including\n Ralph Johnson, Martin Fowler, the John Crupi, Danny Malks, Deepak Alur triumvirate,\n the Siemens Gang (Frank Buschmann, Michael Kircher, and many more), and words-do-not-suffice\n folks like Kevlin Henney. The Hillside folks are a group of really neat people, including\n Linda Rising, Joe Yoder, and Brian Foote (the last two of [Big Ball of Mud](http://www.laputan.org/mud/) fame). Of course, patterns are also a popular teaching tool, so I like to connect\n with folks like Uwe Zdun and Schahram Dustdar from the TU Vienna, Wil van der Aalst\n in Eindhoven, folks from the [Enterprise Architecture Center at the TU Berlin](http://www.sysedv.tu-berlin.de/Homepage/SYSEDV.nsf?Open&ID=E9E5D067784BB8DDC1256E0100499F8C&Key=59ZF92&Sel=59ZF92&Lang=de), Gustavo Alonso at the ETH Zurich, and of course [Frank Leymann in Stuttgart](http://www.iaas.uni-stuttgart.de/institut/mitarbeiter/leymann/indexE.php). Frank is a convert from another great group of people, the often underappreciated\n folks who work on standards. Even I have dished out the occasional joke at the standards\n bodies, but they include a long list of very bright folks who truly try to make solution\n development less painful. I certainly can't list everyone, but Frank Leymann (WSFL\n -> BPEL), Satish Thatte (XLANG -> BPEL), [Sanjiva who-can-tell-me-how-many-vowels-his-last-name-has-wins-a-price](http://wso2.com/about/leadership/sanjiva_weerawarana/) (WSDL and many more), John Evdemon (BPEL), [Jean Jacques Dubrai](http://www.ebpml.org/about.htm) (ebXML, WS-CDL) spring immediately to mind. Open source is a major driver of innovation\n these days, so I am very happy to have met many of the great minds behind the most\n significant software movement of the last decade. Again, many omissions, but of course\n the [LogicBlaze / Iona](http://www.logicblaze) folks (James, Bruce), the [Mule team](http://www.mulesource.com/) (Ross, Dan), and the [Interface 21 gang](http://www.interface21.com) (Rod, Rob, Alef, Arjen, Adrian, and many more) have to be near the top of the list\n (it's particularly fun, because on one hand they are fierce competitors, but they\n are also all great guys). Then there are the illustrious personalities like Hani and\n Crazybob, plus the [Fowlbots](http://www.bileblog.org/?p=200), including Paul Hammant, Alsak, Erik, Jon Tirsen, and many more. Oh, I am tired of\n typing (I can’t touch type), so please fill in all the missing folks. I am also too\n lazy to create links to everyone, but I can recommend a decent search engine to do\n the job for you ;-)\n\n## Proud Moments\n\nNew Year is certainly not the time to brag, but I think mentioning proud moments is\n OK. I mean the graduation day type of proud moment. Without a doubt, this must include\n OOPSLA 2005 when [Grady Booch included our book in the list of most significant software patterns books](37_oopsla.html).\n\n## Integration Patterns in Open Source\n\nI often find myself explaining that patterns are more than a solution (the canonical\n example are GOF's *State* and *Strategy* patterns, which have exactly the same solution structure, but very different intents).\n Still, it is quite normal for frequently used patterns to make their way into common\n libraries and platforms. Naturally, a number of our patterns were already implemented\n in messaging middleware before we even documented them. Still, I am very happy that\n a number of (commercial) open source projects have adopted our patterns. The most\n relevant ones (in no particular order are):\n\n- [Mule ESB](http://mule.mulesource.org/display/MULE/Architecture+Guide) , an enterprise service bus running over reliable asynchronous messaging, particularly\n JMS.\n- [Apache Camel](http://activemq.apache.org/camel/enterprise-integration-patterns.html) , a routing engine that can be configured using XML or an embedded DSL. It runs on\n top of various transports, including ActiveMQ.\n- [Spring Integration](http://blog.interface21.com/main/2007/12/14/spring-integration-a-new-addition-to-the-spring-portfolio) , a new component of the popular Spring framework.\n\nIf you know of other open source frameworks that use our patterns, [let me know](../gregor.html).\n\n## Universal Language\n\nEnterprise Integration Patterns is also no longer restricted to English. We already\n have a Russian and Chinese copy out, with a Korean one in the works, and a Japanese\n version under negotiation. If all goes according to plan, EIP will soon be available\n in five languages for you to enjoy.\n\n## What's Next?\n\nPeople sometimes ask whether we'll do a second edition since many of the code examples\n are now also four years old. My prediction is that the chances for a second edition\n are slim. Almost all code examples use languages that are still in very popular use\n (mainly Java and C#) and should compile with the latest versions of the respective\n languages and frameworks. Yes, we are missing out on some neat language features (annotations\n / attributes, generics, etc), but for our small code examples those would not really\n add a whole lot to the pattern. We would be happy to make all code examples available\n in open source, which also allows readers to help maintain or update them. If I ever\n have a spare minute, I'll set that up.\n\nOf course, there are many more integration patterns to be harvested and documented.\n Sadly, my progress on this front is extremely slow (it turns out you can't use [20% time](http://www.google.com/support/jobs/bin/static.py?page=about.html&about=eng) to work on personal book projects). Last year, I held a [workshop in Dagstuhl](http://drops.dagstuhl.de/opus/frontdoor.php?source_opus=828) on conversation patterns, and just last month I workshopped a like titled paper at\n OOPSLA, which documents over a dozen new patterns. With a little luck, we'll be seeing\n some of the new patterns on this site soon.\n\n*Share:*\n\n*Follow:* [Follow @ghohpe](https://twitter.com/ghohpe) [SUBSCRIBE TO FEED](../ramblings.rss)\n\n*More On:* [WRITING](/ramblings_writing.html) [GREGOR](/ramblings_gregor.html) [ALL RAMBLINGS](../ramblings.html)\n\nGregor is a cloud architect and author. He is a frequent speaker on asynchronous messaging,\n IT strategy, and cloud.", "znaku_textu": 15882, "slov": 2348, "odkazu": 81, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 15:35:58", "sha256": "6f1e618d3b7ed815c4191cc85ebfbd05fc40076417229d7a2201fe5f5eb7747e", "hloubka": 4, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://architectelevator.com/blog", "http://en.wikipedia.org/wiki/Visitor_pattern", "http://martinfowler.com/books.html", "http://martinfowler.com/eaaCatalog/gateway.html", "http://www.rtp.org/", "http://www.hillside.net/plop/plop2002/", "http://www.hillside.net/plop/plop2002/final/woolfbrown2.pdf", "http://www.eaipatterns.com/docs/Enterprise%20Integration%20Patterns%20-%20PLoP%20Final%20Draft%203.pdf", "http://www.hillside.net/plop/plop2002/proceedings.html", "http://www.eaipatterns.com/", "http://www.messagingpatterns.com/", "http://www.eaipatterns.com/history.html", "http://tech.groups.yahoo.com/group/eipatterns/", "http://www.amazon.com/exec/obidos/ASIN/0321200683/enterpriseint-20", "http://www.pipes.yahoo.com/", "http://www.ibm.com/developerworks/blogs/page/woolf", "http://www.joelonsoftware.com/articles/BestSoftwareWriting.html", "http://c2.com/cgi-bin/wiki/wiki?SiliconValleyPatternsGroup=", "http://www.laputan.org/mud/", "http://www.sysedv.tu-berlin.de/Homepage/SYSEDV.nsf?ID=E9E5D067784BB8DDC1256E0100499F8C&Key=59ZF92&Lang=de&Open=&Sel=59ZF92", "http://www.iaas.uni-stuttgart.de/institut/mitarbeiter/leymann/indexE.php", "http://wso2.com/about/leadership/sanjiva_weerawarana/", "http://www.ebpml.org/about.htm", "http://www.logicblaze/", "http://www.mulesource.com/", "http://www.interface21.com/", "http://www.bileblog.org/?p=200", "http://mule.mulesource.org/display/MULE/Architecture+Guide", "http://activemq.apache.org/camel/enterprise-integration-patterns.html", "http://blog.interface21.com/main/2007/12/14/spring-integration-a-new-addition-to-the-spring-portfolio", "http://www.google.com/support/jobs/bin/static.py?about=eng&page=about.html", "http://drops.dagstuhl.de/opus/frontdoor.php?source_opus=828", "https://twitter.com/share", "https://twitter.com/ghohpe", "https://leanpub.com/37things"]} {"url": "http://www.enterpriseintegrationpatterns.com/ramblings/67_patterns.html", "titulek": "Design Patterns: More than meets the eye - Enterprise Integration Patterns", "h1": "Design Patterns: More than meets the eye", "popis": "Blogging about design patterns seems about as original as blogging about the Java (TM) Programming Language, except for the missing (TM)", "klicova_slova": "", "kanonicka": "", "jazyk": "en_US", "robots_meta": "", "og": {"og:type": "article", "og:locale": "en_US", "og:site_name": "Enterprise Integration Patterns", "og:title": "Design Patterns: More than meets the eye", "og:description": "Blogging about design patterns seems about as original as blogging about the Java (TM) Programming Language, except for the missing (TM)", "og:url": "https://www.enterpriseintegrationpatterns.com/ramblings/67_patterns.html"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Design Patterns: More than meets the eye"}, {"uroven": 2, "text": "An Example: Bed Alcove"}, {"uroven": 2, "text": "Pattern Tooling"}, {"uroven": 2, "text": "Variability Points"}, {"uroven": 2, "text": "Componentization"}, {"uroven": 2, "text": "Patterns are for Humans"}], "markdown": "Gregor's Ramblings\n\n---\n\n# Design Patterns: More than meets the eye\n\nJan 13, 2009\n\nFind my posts on IT strategy, enterprise architecture, and digital transformation\n at [ArchitectElevator.com](https://architectelevator.com/blog).\n\nBlogging about design patterns seems about as original as blogging about the Java\n (TM) Programming Language, except for the missing (TM). However, as I just attended\n a workshop on software service engineering, I realized once again that people from\n different fields have very different notions about the concept and usage of patterns.\n Many workshop attendees raised questions about formalizing patterns, tooling, etc.\n I touched on this subject a tiny bit in a [post from long time ago](16_patternscomponents.html), but I figured that the topic really deserves more attention, especially since to\n me a pattern is so much more than the \"proven solution to a recurring problem within\n a specific context.\"\n\nObviously, there is already a lot of good work out there on this topic. My favorite\n books on the topic of patterns (as opposed to patterns on some topic) are the late\n John Vlissides' [Pattern Hatching](http://www.amazon.com/exec/obidos/ASIN/0201432935/enterpriseint-20) and [Pattern-oriented Software Architecture 5](http://www.amazon.com/exec/obidos/ASIN/0471486485/enterpriseint-20) (aka POSA5) by Frank Buschmann and Kevlin Henney. Martin Fowler has also written\n a [nice article](http://www.martinfowler.com/articles/writingPatterns.html) on what patterns are and aren't. My intent is to give you an abridged version and\n also inject my personal opinion :-)\n\n## An Example: Bed Alcove\n\nEspecially in the academic world, it's easy to get stuck on definitional issues. So\n rather than try to define \"what is a pattern\" I just want to show one and proclaim\n \"This is a pattern.\" Where else to start than with Christopher Alexander? Let's look\n at one of his patterns in detail. I abbreviated it from the original works, but I\n believe all the salient points remain. I also omitted the much discussed diamonds\n and other formatting details as they are not relevant to the point I am trying to\n make.\n\n`-----------------------`\n\n*Patterns for the Smallest Rooms*\n\n**BED ALCOVE**\n\n**Design problem**\n\nBedrooms make no sense.\n\n**Forces**\n\nFirst, the bed in a bedroom creates awkward spaces around it: dressing, working, watching\n television, sitting, are all rather foreign to the side spaces left over around a\n bed. Second, the bed itself seems more comfortable in a space that is adjusted to\n it.\n\n**Solution**\n\nDon't put single beds in empty rooms called bedrooms, but instead put individual bed\n alcoves off rooms with other nonsleeping functions, so the bed itself becomes a tiny\n private haven.\n\n**Related Patterns**\n\nCommunal Sleeping, Marriage Bed\n\nCeiling Height Variety, Half-open Room, Thick Walls\n\n`-----------------------`\n\nThis pattern is taken from Alexander's extensive catalog of patterns, published as\n the book [A Pattern Language](http://www.amazon.com/exec/obidos/ASIN/0195019199/enterpriseint-20) and discusses the placement of a bed in a house. First off, the pattern has a descriptive\n name. The name is important because it allows us to use the pattern easily in a spoken\n or written sentence: \"should we add a bed alcove to our house?\" Since patterns are\n primarily meant for human consumption, enabling humans to embed patterns in their\n natural language is important.\n\nThe pattern is also part of a larger pattern language. It is part of the section *Patterns for the Smallest Rooms*. Patterns do not live in isolation, but are part of a pattern ecosystem or \"pattern\n language.\" Alexander's language is organized from the macro level, discussing cities\n and neighborhoods, down to the micro level, describing where to put your bed or how\n high to make a room's ceiling. The bottom section of the pattern description, Related\n Patterns, links to other patterns in the language. Some patterns are \"earlier\" in\n the language, i.e. apply to a broader scope and are applied before one comes to the\n topic of bed alcoves. Communal Sleeping falls into this category. The second set\n of related patterns, such as Ceiling Height Variety, comes \"later\" in the language.\n If I decide to put a Bed Alcove into my house, I should consider the ceiling height\n next.\n\nTrue to the oft-cited definition \"a pattern is a proven solution to a recurring problem\",\n the pattern starts with a problem statement. Note that the problem isn't \"Where should\n I put my bed?\" which feels more like a design step or decision to be made than an\n actual problem to be addressed. Instead, the problem is that traditional bedrooms\n make no sense. Why not? The forces tell us why. The forces are often described as\n the \"heart\" or the \"meat\" of the pattern. They elaborate the problem and tell us why\n it's difficult to solve. The forces often also explore alternatives and tell us what's\n good or bad about these alternatives. In our case, the forces talk about the notion\n of \"negative space\" and how a bed stuck into a rectangular room results in awkward\n negative space. While that makes sense, it's also somewhat non-obvious. Experienced\n interior designers are very familiar with the notion of \"negative space\", but to many\n people placing beds this may not be the case. Similarly, the notion of coupling and\n cohesion is quite familiar to many experienced (software) engineers and architects,\n but not to everyone hooking software components together.\n\nNext, the pattern presents a solution. First you notice the sketch, which gives us\n a quick impression of the solution. Note that the sketch is not a design specification\n or precise architectural drawing. It's meant for people using the patterns to quickly\n grasp the essence of the solution. It's not something you throw over the wall to a\n builder to be built, but rather something you can use to help the builder understand\n your ideas and preferences.\n\nIn the software world, the discussion often arises whether the solution is a piece\n of code. While the solution is specific enough that someone can implement it based\n on the pattern, it's not meant to be cookie cutter code. A pattern is not a recipe\n or a code repository. Source code can be very useful as an example to illustrate one\n implementation of the pattern in a specific language or platform. But the solution\n itself is usually described with text, in combination with the sketch.\n\nAt this point, it's useful to repeat that the pattern is a lot more than the solution.\n The solution covers the \"what\" and some of the \"how\", but is lacking the \"why\", or\n the motivation for choosing this solution. The solution is specific enough to solve\n the problem and resolve the forces, but generic enough to be applied in a wide variety\n of contexts.\n\nThe solution is usually accompanied by a resulting context, which describes how this\n solution addresses the various forces, the strengths and weaknesses of the solution,\n related patterns, etc. It may also give tips for the actual implementation. I abbreviated\n this section from the above example.\n\n## Pattern Tooling\n\nWhen I speak about patterns to vendors or the academic community, one of the first\n questions is usually about tooling. Tools are (usually rightly so) a key ingredient\n into making software engineering better and more efficient. It's also something people\n pay for, which is not to be neglected. The idea of a patterns tool is typically along\n the lines of an IDE that allows you to create a solution by picking a pattern plus\n maybe some fine-tuning. Such a tool would raise the level of abstraction and improve\n productivity. In the case of the Bed Alcove, such a tool could be a CAD tool that\n allows you to draw the floor plan of the house. Rather than just placing individual\n lines representing walls, the tool would give you ready-made \"pattern\" building blocks,\n such as a Bed Alcove. In principle that's a good idea, and one of the reasons we supply\n a [Visio Stencil for our Enterprise Integration Patterns](../downloads.html).\n\nThere are a few things to watch out for, though. In the case of the EAI Patterns Visio\n stencil, the target environment is a drawing to help humans understand the solution.\n It's not an executable language or specification, or a component framework ([more about patterns and components](16_patternscomponents.html)). A drawing stencil is relatively natural extension of the pattern, but still not\n without problems. First off, the pattern sketch is meant to be just that – something\n that conveys the essence of the pattern, not a precise specification. These sketches\n typically also do not follow a common underlying metamodel. Bed Alcove uses black\n lines to represent walls, other patterns in the same language may use black lines\n to represent roads, studs, or electrical wiring. Another challenge is that clean composition\n of the patterns is not addressed by the sketch. It's fairly natural to \"add\" a Bed\n Alcove to a room, but how to you add Communal Sleeping or Varying Ceiling Height?\n It becomes difficult to claim that this piece of wood and drywall maps back directly\n to a single pattern. Yes, the patterns are in there somewhere, but it's not clear\n which part comes from which pattern, which is usually important for tools, especially\n if we think about round-tripping, a common requirement for software tools. As explained\n in my [earlier blog post](16_patternscomponents.html) the fact that this works relatively well with the EAI Patterns is thanks to the fact\n that the composition is based on the very simple (and strict) pipes and filters architectural\n style.\n\nSo I'd say some tooling for patterns comes fairly natural while other tooling requires\n more thought and effort. The distinguishing factor is often whether the tooling requires\n the pattern to be formalized, a topic that is often also raised when I talk about\n patterns to the academic community.\n\n## Variability Points\n\nWhen talking about pattern tooling, and how patterns can be formalized, the word variability\n point frequently comes up. The idea behind variability points is to distill the common\n elements of a design construct, and separate the elements that still have to be decided\n later during the design process, for example because they depend on the specific platform\n or implementation. A quick stab at identifying some variability points for Bed Alcove\n could be:\n\n- Dimensions: width, depth, height from floor, ceiling height\n- Materials: type of wood, dry wall, brick\n- Colors / finish: paint, wallpaper, decorative elements\n\nThe relevance of variability points lies in the notion that pattern + specific values\n for the variability points yield an (executable) specification. So if I provide all\n the values for the points above, I could in fact hand this over to a builder, come\n back in a week and find my Bed Alcove constructed exactly like I envisioned it. Or\n at least that's the idea.\n\nI generally like the notion of variability points as they help me find abstractions,\n but like to highlight two important limitations. First, a list of variability points\n and the associated tools are less about describing the pattern, but about projecting\n the pattern solution to a specific platform. Nothing wrong with that, but I always\n like to remind people that the pattern is much more then than just the implementation.\n The canonical example in this context are Strategy and State, patterns from GoF, which\n have identical solutions, but obviously quite different intents. I'd say that distilling\n variability points is one thing you can do with (and also without) the pattern, but\n the pattern has enormous value as a design tool without any mention of them.\n\nThe second challenge is whether the variability points can really describe the whole\n solution, or are simply an attempt at shrinking the gap between the pattern and the\n implementation. The Bed Alcove dimensions fare reasonably well here. If I want my\n alcove to be 200 x 120 x 150cm made from wooden stubs covered with drywall and painted\n with paint foo from vendor bar, I am pretty likely to get one that meets these specifications.\n It gets tougher on the decorative elements. Can I specify a \"rustic\" vs. a \"contemporary\"\n look with variability points? If possible, does it make sense to do so or would I\n end up creating more paperwork than it takes to actually build the alcove? Do we have\n a precise enough language to express these implementation details? Imagine trying\n to define variability points for the design of a chair. Some books show hundreds of\n successful chair designs, which have very little in common besides the fact that a\n person can sit on them.\n\nFinding a formal specification that allows the injection of platform-dependent parameters\n is much closer to the domain of [generative programming](http://www.amazon.com/exec/obidos/ASIN/0201309777/enterpriseint-20) than patterns. Patterns can provide some inspiration, kind of like Las Vegas casinos\n are \"inspired\" by Paris or Venice. For a more elaborate description of the gap between\n patterns and formalisms, see Chapter 2 of [POSA 5](http://www.amazon.com/exec/obidos/ASIN/0471486485/enterpriseint-20).\n\n## Componentization\n\nAn immediate follow-up to variability points is usually the notion of componentization.\n The hope is that if I can drive out all the variability points, I can develop a generic\n component, and inject the actual values for the variability points via configuration.\n Voila, I have a (semi-) automated pattern tool. This tool raises the level of abstraction\n from Java or C# source code to patterns and supplied variability points. This can\n work in some circumstances, as demonstrated for example by the [Simple Messaging Toolkit](../downloads.html).\n\nThe closest analogy to componentizing the Bed Alcove is heading to IKEA and picking\n up the \"Sloep\" bed from the shelf, making sure the dimensions match the requirements.\n This can certainly speed up construction, but again we have to remind ourselves that\n Sloep the bed is only loosely related to the pattern. Bed Alcove discusses trade-offs\n of where to place a sleeping location, focusing primarily on human well-being and\n comfort. Sloep is all about inexpensive manufacturing and quick assembly, which certainly\n has value, but in a different context. Bridging the gap between the pattern and the\n component two is valuable, but my fear is that the gap is so big that one is tempted\n to fudge the pattern a bit to make the gap smaller and thus be able to find better\n a tie-in. For example, instead of Bed Alcove, someone who focuses on components may\n be tempted to define the pattern as Bed, the problem as \"Where should people sleep?\"\n ,the forces as \"People like to sleep horizontally\", and the solution as \"Buy Sloep\n the Bed\". Now pattern and parameterized component solution are unified, but in the\n process the pattern has lost most of its value. Where people should sleep is not a\n very interesting design challenge and buying a bed, while recurring, is really not\n a surprising solution. The pattern also no longer forms a vocabulary for design decisions.\n \"Bed\" is a piece of furniture, not a design problem. We don't really need a pattern\n for this.\n\nAgain, I am not saying it can't be done, but too many times I have seen people fall\n into these pitfalls that I am tempted to put more energy into making a good pattern\n and pattern language than to try to componentize the patterns.\n\n## Patterns are for Humans\n\nThe primary purpose of patterns is to help humans understand design problems. Solving\n design problems is generally much more difficult than typing in some code, so patterns\n have enormous value in themselves. Patterns owe their popularity to this value. A\n better hammer can help speed up the construction of a bed, but a pattern helps us\n place the bed in a way that makes us feel comfortable.\n\n*Share:*\n\n*Follow:* [Follow @ghohpe](https://twitter.com/ghohpe) [SUBSCRIBE TO FEED](../ramblings.rss)\n\n*More On:* [PATTERNS](/ramblings_patterns.html) [ALL RAMBLINGS](../ramblings.html)\n\nGregor is a cloud architect and author. He is a frequent speaker on asynchronous messaging,\n IT strategy, and cloud.", "znaku_textu": 16096, "slov": 2575, "odkazu": 50, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 15:35:57", "sha256": "7c4b379bc649521c72d98c7660876f73f8cc72d044aa178f11c0dc20bdf1a034", "hloubka": 4, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://architectelevator.com/blog", "http://www.amazon.com/exec/obidos/ASIN/0201432935/enterpriseint-20", "http://www.amazon.com/exec/obidos/ASIN/0471486485/enterpriseint-20", "http://www.martinfowler.com/articles/writingPatterns.html", "http://www.amazon.com/exec/obidos/ASIN/0195019199/enterpriseint-20", "http://www.amazon.com/exec/obidos/ASIN/0201309777/enterpriseint-20", "https://twitter.com/share", "https://twitter.com/ghohpe", "https://leanpub.com/37things"]} {"url": "http://www.enterpriseintegrationpatterns.com/ramblings/68_acid.html", "titulek": "Into the Clouds on New Acid - Enterprise Integration Patterns", "h1": "Into the Clouds on New Acid", "popis": "I have been speaking more frequently about cloud computing in recent days", "klicova_slova": "", "kanonicka": "", "jazyk": "en_US", "robots_meta": "", "og": {"og:type": "article", "og:locale": "en_US", "og:site_name": "Enterprise Integration Patterns", "og:title": "Into the Clouds on New Acid", "og:description": "I have been speaking more frequently about cloud computing in recent days", "og:url": "https://www.enterpriseintegrationpatterns.com/ramblings/68_acid.html"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Into the Clouds on New Acid"}, {"uroven": 2, "text": "Google Cloud (or Clout)"}, {"uroven": 2, "text": "AAF – Acronyms Are Fun or Alien Ant Farm?"}, {"uroven": 2, "text": "A New Kind of Drug"}, {"uroven": 2, "text": "Google App Engine: Old or New ACID?"}, {"uroven": 2, "text": "More on Clouds"}], "markdown": "Gregor's Ramblings\n\n---\n\n# Into the Clouds on New Acid\n\nMar 20, 2009\n\nFind my posts on IT strategy, enterprise architecture, and digital transformation\n at [ArchitectElevator.com](https://architectelevator.com/blog).\n\nI have been speaking more frequently about cloud computing in recent days. As SOA\n is becoming a daily reality, I needed to advance to new, still slightly nebulous topic.\n What could be a better fit than cloud computing?\n\nSeriously, cloud computing is an exciting topic. Many of the underlying technologies\n and principles have been around, mostly in distributed systems and systems integration.\n But as so often, it took some time for things to reach a tipping point where cheap\n hardware and storage is just cheap enough and abundant bandwidth is just abundant\n enough to make this a reality for a wide range of developers. Many people (including\n my cynic self) often criticize our industry for being too much driven by fads. Strangely,\n I am finding myself increasingly convinced that it’s the only way the industry can\n really advance. We have so many different technologies on our hands that it’s almost\n impossible to focus, turning us into a collective scatterbrain. In the days of Gigahertz\n processor in every other refrigerator, technically almost anything is possible. But\n it really takes a number of people pulling the same direction for disruptive change\n to happen. The best way for these people to find each other is to collectively jump\n on the latest fad bandwagon. Objects were a big fad: \"created by the people who could\n not grasp structured analysis\" ([Kent Beck](37_oopsla.html)), complete with the usual dose of hype, useless tools, and confusion. Still, we should\n be quite happy objects became mainstream. With this in mind, I decided to jump on\n the cloud computing wagon.\n\n## Google Cloud (or Clout)\n\nGoogle is no newbie (or Noogler, as we like to say) to building large-scale distributed\n systems, so we should have something to say in this topic space. Some of it may not\n even be top-secret. All conspiracy jokes aside (I work on Tokyo, not on the moon base),\n Google has been publishing a wide range of papers on our [research pages](http://research.google.com/pubs/papers.htm). There you can learn about some of the technologies that form the foundation of Google\n computing infrastructure, such as the [Google File System](http://labs.google.com/papers/gfs.html), [Bigtable](http://labs.google.com/papers/bigtable.html), [MapReduce](http://labs.google.com/papers/mapreduce.html), or the [Sawzall](http://labs.google.com/papers/sawzall.htm) log analysis language. And of course we also have a public product in this space,\n namely [Google App Engine](http://code.google.com/appengine). I have spoken about App Engine a few times, as I consider it a very interesting\n and very demo-able product. Alas, giving product demos always carries the danger of\n turning you into the proverbial [corporate sock puppet](http://en.wikipedia.org/wiki/Pets.com#The_Pets.com_sock_puppet). At last year’s JAOO conference Dan North cautioned me after my talk that the hand\n seemed to be inside the sock puppet already, even if it wasn’t quite moving yet. A\n painful image indeed, and a scenario I’d like to avoid. So I prefer to talk about\n App Engine in the proper context of cloud computing, explaining what’s different when\n programming the cloud and how Google builds systems that are almost infinitely scalable.\n\n## AAF – Acronyms Are Fun or Alien Ant Farm?\n\nI always cringe when every self-respecting self-help methodology is based on a dorky\n acronym – from KISS (Keep It Simple, Stupid) to the [ADDIE model of instructional design](http://en.wikipedia.org/wiki/ADDIE_Model) (Analysis - Design - Development - Implementation - Evaluation) or SMART goals (Specific,\n Measurable, Achievable, Realistic, Timed). Of course our industry is equally littered\n with (maybe less cute, but equally dorky) acronyms. And let’s face it; people tend\n to remember only a handful of things from a 45 minute talk, so making things catchy\n can be useful.\n\n## A New Kind of Drug\n\nOne of the most inescapable acronyms in software must be ACID – the Atomic, Consistent,\n Isolated, and Durable property of (database) transactions. These properties form the\n backbone of many a computer system, ensuring a precise, predictable outcome for database\n (and other) operations, having promoted ACID to a sort of axiom of modern computing.\n\nAs I illustrated [quite a while ago](18_starbucks.html), your local coffee shop and many other distributed, high throughput systems have\n chosen to trade off some of these properties in favor of scalability and throughput.\n Instead of coming up with a new acronym to describe the architecture of these systems,\n a very clever person has managed to rebrand the old one with new meaning. ACID now\n stands for:\n\n- A – Associative\n- C – Commutative\n- I – Idempotent\n- D - Distributed\n\nI learned about this catchy “new acid” acronym from Pat Helland’s when we discussed\n his excellent paper on (the demise of) [distributed transactions](http://www-db.cs.wisc.edu/cidr/cidr2007/papers/cidr07p15.pdf). Pat told me he picked it up from Shel Finkelstein from SAP, but we are not sure\n where exactly it originated. The software industry has been chasing reuse so much,\n now here we have a good example of it.\n\nWhile the original ACID properties are all about correctness and precision, the new\n ones are about flexibility and robustness. Being *associative* means that a chain of operations can be performed in any order, the classical example\n being (A + B) + C = A + (B + C) for the associative operator ‘+’. Likewise, we remember\n *commutative* from junior high math as A + B = B + A, meaning an operator can be applied to a pair\n of operands in either direction. Finally, a function is *idempotent* if its repeated application does not change the result, i.e. f(x) = f(f(x)).\n\nWhat does high-school math have to do with cloud computing and distributed systems?\n The new ACID properties give cloud-based systems the necessary flexibility to distribute\n and parallelize operations. As I lectured many times before, distributed computing\n is to a large extent about reducing assumptions. Too many assumptions make systems\n tightly coupled and rigid. Ordering assumptions in particular restrain parallel processing,\n which typically does not respect a global order. Put another way, ordering is the\n prototypical example of state-fulness, but we know that state-lessness is a key property\n of high-throughput systems.\n\nBack to the new ACID, let’s assume I need to process a large set of records to compute\n the sum of a certain elements across all records. I can distribute this operation\n by dividing the input record set into multiple chunks, process each chunk on a separate\n machine, and then aggregate the intermediate results into the final sum. This approach\n works because the sum operator is associative and commutative: I can sum up intermediate\n results for each chunk as they come along. I can then sum up intermediate results\n into the final result. Luckily, many aggregation operations have these properties.\n Computing averages (if you remember how many elements are in each sub-result), computing\n percentiles, statistical samples, etc shares the same properties.\n\nIn the world of distributed systems, idempotency translates to the fact that an operation\n can be invoked repeatedly without changing the result. Some operations, such as reading\n a value or setting a field, are inherently idempotent, while others can be made idempotent\n by using concepts such as [Correlation Identifiers](../CorrelationIdentifier.html). Idempotency is critical in distributed computing to deal with the inherent uncertainty\n between communicating systems. If System A communicates with System B, A is inherently\n uncertain about B’s actual state – it merely makes assumptions about B’s state based\n on the communication it receives. If anything goes wrong, such as no response from\n B, A usually left with two choices: retry the operation or give up. Giving up being\n the appealing of the two, A will be inclined to retry. If the original action was\n in fact processed by B, B now receives a second request for the same operation. Idempotency\n resolves this conundrum by ensuring the repeated request does not have any effect\n beyond the original request.\n\nThe last property, being *distributed* is kind of a truism in cloud computing. Unlike the army, a cloud of one is not that\n interesting. I guess the original author had to find something to make the ACID acronym\n work. After my talk on this topic at [DevSummit in Tokyo](http://www.seshop.com/event/dev/2009/timetable/), Tadayoshi Sato from OGIS challenged me to find a better “D”. I am thinking about\n it…\n\n## Google App Engine: Old or New ACID?\n\nSo where does Google App Engine fit in regards to distributed transactions? App Engine\n uses Bigtable storage under the covers. Bigtable does not support traditional (“old\n ACID”) transactions because transactional guarantees can put a heavy burden on a highly\n distributed data storage model. In case of Bigtable, shedding transactional guarantees\n is not such a big deal because Bigtable also does not support foreign keys or joins.\n After all it’s Big-table, not Big-database.\n\nGoogle App Engine aims to present a programming model that’s familiar to engineers,\n but scales up to enormous scale: \"easy to start, easy to scale\". In order to get\n the latter, we have to make compromises on transactional guarantees. In order to get\n the former, we need to offer developers a convenient storage model that does not simply\n drop the burden of consisting data into the application developer’s lap. The answer\n lies in allowing developers to declare [entity groups](http://code.google.com/appengine/docs/python/datastore/transactions.html) (). Google App Engine supports a richer storage model than out-of-box Bigtable by\n offering object-storage mapping (skipping the relational part). Python entities can\n be persisted into the storage layer based on a primary key. By default, only single\n entity updates are atomic. However, developers can place multiple entities in a single\n entity group, which provides atomic updates along the lines of old-style ACID. The\n trade-off is largely convenience and consistency vs. throughput. Entity groups incur\n a definite cost in a highly distributed environment, so we ask developers to choose\n wisely. Brett Slatkin ’s Google I/O talk on [App Engine performance](http://sites.google.com/site/io/building-scalable-web-applications-with-google-app-engine) does a nice job of explaining the trade-offs.\n\n## More on Clouds\n\nIf you'd like to hear more from me about Cloud Computing, I'll be speaking at [QCon Tokyo](http://qcontokyo.com/) and participating [in a panel](http://www28.cplan.com/cc230/sessions_catalog.jsp?ilc=230-1&ilg=english&isort=&isort_type=&is=yes&icriteria3=hohpe) at [JavaOne](http://java.sun.com/javaone/) in June. As always, you can track my public appearances on my [Talks Page](../talks.html).\n\n*Share:*\n\n*Follow:* [Follow @ghohpe](https://twitter.com/ghohpe) [SUBSCRIBE TO FEED](../ramblings.rss)\n\n*More On:* [DESIGN](/ramblings_design.html) [ALL RAMBLINGS](../ramblings.html)\n\nGregor is a cloud architect and author. He is a frequent speaker on asynchronous messaging,\n IT strategy, and cloud.", "znaku_textu": 11337, "slov": 1704, "odkazu": 62, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 15:35:56", "sha256": "6ed0bb1ff11b0a1cc006c251599939d03c613dea92bb0324da075216bb49366c", "hloubka": 4, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://architectelevator.com/blog", "http://research.google.com/pubs/papers.htm", "http://labs.google.com/papers/gfs.html", "http://labs.google.com/papers/bigtable.html", "http://labs.google.com/papers/mapreduce.html", "http://labs.google.com/papers/sawzall.htm", "http://code.google.com/appengine", "http://en.wikipedia.org/wiki/Pets.com", "http://en.wikipedia.org/wiki/ADDIE_Model", "http://www-db.cs.wisc.edu/cidr/cidr2007/papers/cidr07p15.pdf", "http://www.seshop.com/event/dev/2009/timetable/", "http://code.google.com/appengine/docs/python/datastore/transactions.html", "http://sites.google.com/site/io/building-scalable-web-applications-with-google-app-engine", "http://qcontokyo.com/", "http://www28.cplan.com/cc230/sessions_catalog.jsp?icriteria3=hohpe&ilc=230-1&ilg=english&is=yes&isort=&isort_type=", "http://java.sun.com/javaone/", "https://twitter.com/share", "https://twitter.com/ghohpe", "https://leanpub.com/37things"]} {"url": "http://www.enterpriseintegrationpatterns.com/ramblings/69_googleio.html", "titulek": "Google I/O - Enterprise Integration Patterns", "h1": "Google I/O", "popis": "I guess I am the last person to blog about Google I/O", "klicova_slova": "", "kanonicka": "", "jazyk": "en_US", "robots_meta": "", "og": {"og:type": "article", "og:locale": "en_US", "og:site_name": "Enterprise Integration Patterns", "og:title": "Google I/O", "og:description": "I guess I am the last person to blog about Google I/O", "og:url": "https://www.enterpriseintegrationpatterns.com/ramblings/69_googleio.html"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Google I/O"}, {"uroven": 2, "text": "Eric Schmidt Opening Keynote"}, {"uroven": 2, "text": "Day 1 Keynote"}, {"uroven": 2, "text": "Google Wave"}, {"uroven": 2, "text": "AppEngine From Sparkplug to Drivetrain"}, {"uroven": 2, "text": "Martin Fowler and Rebecca Parsons on App Engine"}, {"uroven": 2, "text": "Bespin"}], "markdown": "Gregor's Ramblings\n\n---\n\n# Google I/O\n\nJune 5, 2009\n\nFind my posts on IT strategy, enterprise architecture, and digital transformation\n at [ArchitectElevator.com](https://architectelevator.com/blog).\n\nI guess I am the last person to blog about Google I/O. I am sure everyone already\n read about Wave and the free Android phone (with 30 day SIM!). I am just now getting\n to write this up on my flight back to Japan, so I’ll give you my personal impressions\n and viewpoints, if you are still interested.\n\n## Eric Schmidt Opening Keynote\n\nGoogle I/O was a huge success, running smoothly with some 4000 attendees (and Android\n phones given out). Eric is hands down one of Google’s most accomplished speaker.\n His speeches tend to be inspiring and thoughtful, even though we tend to wonder afterwards\n what exactly he told us. He chose “It’s time” as his key theme. It’s time that bandwidth,\n available compute power, and simple programming models come together to make Internet\n programming available to a everyone. He spoke on the importance of embracing the Internet\n Programming Model, which is of course close to my heart.\n\nEric also reminded us that innovation is always elsewhere. And he did not bring this\n across as a “your job will go to Usbekishangalore” kind of way, but to remind us of\n the importance of platforms that support this type of innovation by giving global\n and easy access to internet computing platforms.\n\nPeople are tired of complexity. Eric feels that we are just at the beginning of getting\n this (as in the Internet Programming Model) right. You no longer have to pick up a\n book on operating systems and programming interfaces (well, we do have 35-some API’s\n on [code.google.com](http://code.google.com/more)). Instead, you pick and choose, mashing up what you need. You do this in the cloud,\n which takes care of deployment, scaling, and management. I think Eric was spot on\n to remind us how powerful easy access to an amazing set of capability out in the cloud\n really is. People build cool mashups every day, such as telling the user the history\n of a building as you walk down the street.\n\n## Day 1 Keynote\n\nIt’s a tough act to follow Eric. Luckily, Eric and Vic Gotundra have quite different\n personalities, making a diect comparison unlikely. Clearly, Eric gave us the grand\n vision while Vic shows us all the cool products Google has been building. I actually\n wish we had a few sessions explaining how Google views the space (of cloud and Internet\n computing), as well as the role it intends to play in it. As expected, most sessions\n were product focused. But hey, a free phone lets us forgive a lot.\n\nIt took Vic only 30 seconds to make the first snipe at Microsoft: “We underestimated\n the Web” That’s certainly true, but the MS bashing reminds me of JavaOne a few years\n back, where instead of showing innovation in his own backyard, Scott McNealy would\n just ridicule Microsoft. I don’t really come to company A’s event to hear how dumb\n company B is. Maybe I am overly sensitive, but I guess honest feedback counts. And\n we saw where it got Sun.\n\nThe keynote focused on two areas this year:\n\n- HTML5: making the browser a viable platform for killer internet applications.\n- Google Services: giving you access to amazing functionality in the cloud.\n\nVic introduced the increased power of the browser with another Microsoft snipe: Back\n at Microsoft, they could not get adoption for XmlHttpRequest. Then Google Maps came\n along and presented the killer app. I wonder whose job it was to drive adoption back\n then :-) Actually, I think the killer feature of Maps was the panning of pre-rendered\n map tiles, which I don’t think use XmlHttpRequest, but modify the DOM and have the\n browser load the tiles. But I may be wrong. The most interesting comment in this context\n came from Erik Meijer from Meijcrosoft. He revealed that XmlHttpRequest was actually\n snuck into IE as a hack to make Outlook Web Access more responsive. Basically, like\n Gmail! At its day, Outlook Web Access was actually pretty neat. I feel a bit weird\n saying this, but it’s true – Outlook Web Access looked strikingly similar to the desktop\n app. However, Microsoft marketed this only to the Outlook enterprise crowd instead\n of exploiting the feature for broader applications. Maybe they were ashamed of the\n “hack”. So if there is a lesson to be learned: don’t be afraid to exploit hacks to\n the fullest extend if it gives you a killer feature.\n\nBespin got a quick mention as one of the killer HTML 5 apps – a full-blown, responsive\n IDE in a browser (well, at least Firefox). I attended Dion’s session on Bespin later.\n Sign-ups for Google App Engine for Jave (GAE/J) are now wide open – no more wait lists.\n We actually saw some live coding for the App Engine demo. In my opinion, live coding\n in a keynote takes some guts, and makes for a great dynamic. Interestingly, in a conversation\n with Martin Fowler, Martin expressed that to him the value of a live demo is pretty\n small. I think he said that before the Wave demo :-) Maybe it’s the switch from PowerPoint\n (or Presently), which makes live coding appealing to me. I also like seeing something\n built from scratch to appreciate what it really takes, as opposed to having pre-made\n demos that may obscure the core of what the product does behind a lot of CSS and other\n machinery. Martin’s valid counter point is that it’s quite possible to explain cause\n (as in developer effort) and effect (as in product feature) without a live demo.\n\nBack to the keynote, the next announcement belonged to Google WebElements. These elements\n allow you to easily embed Google gadgets, such as calendars, discussions, or presentations\n into any web page. Kind of like iGoogle without the “i”. Copy-Paste development for\n the Internet. We did notice, though, that despite the apparent copying and pasting,\n the presenter was taking some shortcuts in the “live” demo. I can’t blame him too\n much – if you are given a 3 minute slot in a keynote, maybe you do not want to wait\n for your app to deploy with every change.\n\nThe demos went very smoothly and were well rehearsed, but it felt a bit like JavaOne\n in 2000 – “look, we can have things move inside the browser.” In a funny coincidence,\n during the JavaOne keynote the Sun folks re-ran one of the original “rotating molecules”\n Applet demos. I think we are all happy that this is now possible using HTML 5 instead\n of Java applets.\n\n## Google Wave\n\nThe second day keynote was all about [Google Wave](http://wave.google.com), Google’s amazing new collaboration / document platform. This project was kept secret\n inside Google for some year-and-a-half (ticking off many people), so it’s cool to\n see the audience’s reaction. After an hour and a half of live demo, Lars and his team\n received a standing ovation. Wave is equally innovative and ambitious. As already\n described my many, it’s a combination of communication, collaboration, and document\n management. It’s a very interesting concept to see a conversation embedded in a document.\n You can play back this conversation over time later. The playback even applies to\n gadgets like a chess game. I am guessing that the internal model is that of an [event-sourced application](http://martinfowler.com/eaaDev/EventSourcing.html), which can recover the state at any point in time by replaying the sequence of events.\n\nI believe making time a first class citizen has a number of powerful applications.\n For example, we have seen how being able to dynamically rewind time on a source code\n repository gives you valuable insights into the code evolution. One of the most difficult\n things in software is to unearth the intention and motivation. From the code we can\n easily see what was done, but it’s much harder to ascertain why it was done. That’s\n why comments such as “Loops over all values and adds them up” are so meaningless.\n\nLars admitted that the near real-time concurrent editing was the hardest feature.\n It’s certainly great for meeting notes. The spell checker was impressive. It’s context\n aware, so it can turn “icland is an icland” into “Iceland is an island.” Wave is\n an open platform, with a published waveprotocol.org. Alas, according to Lars the external\n API’s are *almost* same as the internal ones. Kinda like Microsoft Windows .\n\nOne of the many neat features of Wave is that you can create robots, who can participate\n in a wave much like humans do. These robots can be built using Google App Engine,\n by virtue of an [AbstractRobotServlet](http://wave-robot-java-client.googlecode.com/svn/trunk/doc/com/google/wave/api/AbstractRobotServlet.html) class. The honors for the first third-party robot must go to uebersmart ThoughtWorks\n developer Ola Bini, who demo’d his [iokebot](http://github.com/olabini/iokebot) in an [afternoon session](http://code.google.com/events/io/sessions/JrubyAppEngineJava.html), only a few hours after Wave was announced. My plan was to demo App engine at JavaOne\n by writing a JavaLawyer robot, which replaces every occurrence of “Java” with “Java(TM)-based\n Technology” Unfortunately (or luckily for my relationship with Sun), I was not able\n to get a Wave account in time.\n\n## AppEngine From Sparkplug to Drivetrain\n\nGoogle engineer Alon Levi shared some of the internal App Engine architecture in his\n talk, [AppEngine From Sparkplug to Drivetrain](http://code.google.com/events/io/sessions/FromSparkPlugToDriveTrain.html). A good portion is what you’d expect from high-performance Web app: separate database\n servers and app servers. Then scale out to multiple app servers and load balance across\n them. DNS round-robin as a load balancing mechanism is slow, so use a reverse proxy.\n Serve static content separately because it’s stateless and does not require an app\n server\n\nOn the database end, master-slave replication is a common technique. This scales\n reads, but not writes. As a next step, you can partition, or “shard” the data by spreading\n it across multiple database instances. But this requires a good amount of management\n on the side of the application. If data spans multiple partitions, the application\n has to deal with being able to perform joins, manage transactions, etc. across shardss.\n The next step is to move to a non-relational, but highly scalable and distributed\n storage infrastructure, aka Bigtable. On the front-end, external traffic hits the\n nearest Google data center and is then routed on the internal Google network. Google\n App Engine currently handles some 140M pageviews per day on this configuration, and\n I am sure it can go a lot higher.\n\n## Martin Fowler and Rebecca Parsons on App Engine\n\nMartin Fowler was one of the invited third-party speakers. I am expecting that as\n Google I/O and Google’s developer community grow, we’ll see more third party talks\n at Google events. Martin gave a balanced view of the pros and cons of App Engine.\n Of course, deploying Java servlet apps into the cloud with the push of a button is\n unbelievably powerful. But there are also some limitations: the App Engine JVM is\n not 100% complete and has some holes, for example you cannot start new threads. Martin\n agrees that this is the right decision, but in the near term it means that you can’t\n use libraries that use threads unless they are open source and you (or someone else)\n rewrites them. Actually, at JavaOne someone commented that the Spring framework does\n not run on App Engine, but when I pinged Rod Johnson, he thought otherwise (and he\n would know). Spring is a fairly substantial framework, so it may be that some portions\n don’t run on App Engine. The good news is that as App Engine becomes increasingly\n popular, we can expect most Java-based open source projects to be modified to run\n on it.\n\nMartin also highlighted that the local App Engine server, which is part of the SDK,\n is not an exact clone of server-side framework. For example, it’s missing the implementation\n of Google services, such as mail. Lastly, Martin is suspicious about the mapping of\n the non-relational Bigtable data store to an object model via JDO / JPA. This is no\n surprise given the many different object-relational mapping frameworks, each of which\n has its own quirks and limitations. In Martin’s opinion, the underlying model tends\n to leak, especially if your application is performance sensitive. I guess the presence\n of explicit index tables in the App Engine config file is an example of such leakage.\n But I think that such mappings can make your life much easier, as long as you understand\n the limitations and assumptions baked into the mapping layer.\n\n## Bespin\n\nEx-Googler and now Mozilla tools hacker Dion Almaer and Ben Galbraith [showed off Bespin](http://code.google.com/events/io/sessions/BespinOpenWeb.html), a browser based code editor that pushes the envelope of what’s possible in today's\n (or tomorrow's) browsers. These guys hit a home run by exploiting my weakness for\n live coding on stage. They set out to build a minimal text editor using JavaScript\n and an HTML 5 canvas element. From scratch. They feel that the Ajax libraries, e.g.\n Dojo etc, are donem so it’s time to move on to the next sexy thing, HTML5. They are\n not shy about exploiting the fact that Web developers tend to use a smaller set of\n browsers, so they don’t need to support Internet Explorer. Apparently, it is possible\n to get HTML 5 Canvas behavior into IE with a bridge or ActiveX. Yahoo Pipes apparently\n uses this for its smooth UI. In the same vein of making time a first class citizen,\n Bespin also allows you (or will allow you) to play back changes made to the code base\n over time. This way you can replay how other developers work. It could be quite exciting\n to see how rockstar developers create their open source code.\n\nSadly, I was too sick to attend many sessions on Day 2. But it's fair to say that\n this was the biggest and most successful Google I/O so far. Judging from the mood\n at JavaOne this year, Google I/O may indeed become a more relevant conference than\n JavaOne. I think the key points will be to branch out beyond Google speakers and to\n attract enterprise developers in addition to the Internet wiz kids. And it'll be tough\n to satisfy the crowd next year after giving out a free phone to every attendee this\n year.\n\n*Share:*\n\n*Follow:* [Follow @ghohpe](https://twitter.com/ghohpe) [SUBSCRIBE TO FEED](../ramblings.rss)\n\n*More On:* [EVENTS](/ramblings_events.html) [ALL RAMBLINGS](../ramblings.html)\n\nGregor is a cloud architect and author. He is a frequent speaker on asynchronous messaging,\n IT strategy, and cloud.", "znaku_textu": 14690, "slov": 2404, "odkazu": 51, "kodovani": "windows-1250", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 15:35:55", "sha256": "dc621f8a9940aca7d58c825d58b4f38ad54bb5dc269c86d8ed94f43ef2b2009c", "hloubka": 4, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://architectelevator.com/blog", "http://code.google.com/more", "http://wave.google.com/", "http://martinfowler.com/eaaDev/EventSourcing.html", "http://wave-robot-java-client.googlecode.com/svn/trunk/doc/com/google/wave/api/AbstractRobotServlet.html", "http://github.com/olabini/iokebot", "http://code.google.com/events/io/sessions/JrubyAppEngineJava.html", "http://code.google.com/events/io/sessions/FromSparkPlugToDriveTrain.html", "http://code.google.com/events/io/sessions/BespinOpenWeb.html", "https://twitter.com/share", "https://twitter.com/ghohpe", "https://leanpub.com/37things"]} {"url": "http://www.enterpriseintegrationpatterns.com/ramblings/70_wave.html", "titulek": "My First Google Wave Robot - Enterprise Integration Patterns", "h1": "My First Google Wave Robot", "popis": "By now everyone must have heard about Google Wave, the communication and collaboration platform announced at Google I/O", "klicova_slova": "", "kanonicka": "", "jazyk": "en_US", "robots_meta": "", "og": {"og:type": "article", "og:locale": "en_US", "og:site_name": "Enterprise Integration Patterns", "og:title": "My First Google Wave Robot", "og:description": "By now everyone must have heard about Google Wave, the communication and collaboration platform announced at Google I/O", "og:url": "https://www.enterpriseintegrationpatterns.com/ramblings/70_wave.html"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "My First Google Wave Robot"}, {"uroven": 2, "text": "Wave Robots"}, {"uroven": 2, "text": "A Text Replacement Robot"}, {"uroven": 2, "text": "DLL Hell has Many Faces"}, {"uroven": 2, "text": "The Shortcuts Robot"}, {"uroven": 2, "text": "Robot Gotchas"}, {"uroven": 2, "text": "Robot Profile"}], "markdown": "Gregor's Ramblings\n\n---\n\n# My First Google Wave Robot\n\nAugust 1, 2009\n\nFind my posts on IT strategy, enterprise architecture, and digital transformation\n at [ArchitectElevator.com](https://architectelevator.com/blog).\n\nBy now everyone must have heard about [Google Wave](http://wave.google.com), the communication and collaboration platform announced at Google I/O. Google [just announced](http://googlewavedev.blogspot.com/2009/07/google-wave-updates-from-todays.html) that they are ramping up towards 20,000 developers on the current sandbox and will\n extend to 100,000 users by end of September. This will give many more people to opportunity\n to experiment with Wave.\n\nOne of the key features of Wave is its extensibility. For example, you can create\n robots, which can participate in waves just like humans do (that is once they are\n invited in). As I hinted [last time](69_googleio.html), I intended to build a \"make the Sun lawyers happy\" robot, which would replace any\n mention of \"Java\" with the preferred version of \"Java(TM)-based technology\". Alas,\n I was not able to get it working in time for JavaOne. So I took advantage of the [Tokyo Wave Hackathon](http://atnd.org/events/1091) organized by the [Tokyo Google Technology User group](http://groups.google.com/group/tokyo-gtug/) to receive some debugging aid and get my robot working.\n\n## Wave Robots\n\nWave has two primary extension mechanisms, gadgets and robots. Gadgets are embedded\n inside a wave and run inside the browser client. Robots are automated wave participants,\n which can edit text, add new blips, etc. Time for a super-quick Wave vocabulary lesson:\n interaction between participants happens through waves (think \"discussion thread++\"),\n which contain wavelets made up of blips. In a traditional e-mail thread, a blip would\n correspond to a single e-mail post.\n Unlike gadgets, robots are hosted externally and can be invited to a wave just like\n a human user. Currently, all robots are hosted via Google App Engine at [appspot.com](http://www.appspot.com), but I hear that restriction is going to be lifted in the future. Since I am a back-end\n kind of guy (and my JavaScript skills are very crude), I decided to write a robot.\n\nWriting robots is relatively simple thanks to the [Wave Robot API](http://wave-robot-java-client.googlecode.com/svn/trunk/doc/index.html), which was just [open sourced](http://code.google.com/p/wave-robot-java-client/source/browse/). App Engine (for Java) works with servlets, so it's natural that the API provides\n a servlet base class, [AbstractRobotServlet](http://wave-robot-java-client.googlecode.com/svn/trunk/doc/com/google/wave/api/AbstractRobotServlet.html). Your own servlet inherits from this base class and gains access to methods that\n check for different event types and read or modify the wave's blips. Of course, the\n App Engine servlet as access to all the other App Engine API's, such as persistence\n through JPA or JDO.\n\nA robot cannot simply call Wave or read a wave. It has to be explicitly invited by\n a user first. The robot name is currently derived from the App Engine name, meaning\n your servlet at `xyz.appspot.com` will be known to the wave sandbox as `xyz@appspot.com`. Once invited into a wave conversation, the robot reacts to events issued by wave,\n such as the addition of a new participant or the submission of a new blip. Each robot\n exposes a `capabilities.xml` file, which describes the events that the robot would like to listen to.\n\n## A Text Replacement Robot\n\nMy robot's task is to replace text, particularly occurrences of \"Java\" with \"Java(TM)-based\n technology. Playing an existing wave back through the cool Playback feature shows\n what the robot did to the sentence containing Java (it also played with the number\n of \"o\"s in \"Google\"):\n\nSince I like building software in small iterations, I started with a simple, hard-coded\n replacement. Whenever a blip with the word \"Java\" is submitted to a wave, which the\n robot listens to, the robot will replace this particular text. Any robot needs a `capabilities.xml` file, so I start there. The [Wave Robot Overview](http://code.google.com/apis/wave/extensions/robots/index.html) shows an example file, but forgets to list all allowable capabilities. I assume they\n match the names of the constants in [EventType.java](http://wave-robot-java-client.googlecode.com/svn/trunk/doc/com/google/wave/api/EventType.html). I did not see a statement as to whether casing matters, so I'll stick with the lowercase\n from the sample. Details, details – what do I expect from living on the bleeding edge?\n (note: it seems that in fact casing does not matter) Our robot only needs to subscribe\n to a single event, `blip_submitted`, which is triggered whenever a blip is submitted (duh!). Many robots are more eager\n and subscribe to `document_changed`, which is invoked as a user types. For now, I am happy to wait for the robot to kick\n in once the blip is \"done\". The `capabilities.xml` file, deployed under the relative path `/_wave` looks as follows:\n\n```\n\n\n \n \n \n 0.33\n\n```\n\nThe servlet itself is relatively simple. It inherits from the `AbstractRobotServlet` base class and overrides the `processEvents` method:\n\n```\npublic class WaveServlet extends AbstractRobotServlet {\n\n@Override\npublic void processEvents(RobotMessageBundle events) {\n if (events.wasSelfAdded()) {\n Wavelet wavelet = events.getWavelet();\n Blip blip = wavelet.appendBlip();\n TextView textView = blip.getDocument();\n textView.append(\"Trademark Bot listening...\");\n return;\n }\n\n List submittedEvents = events.getBlipSubmittedEvents();\n for (Event e : submittedEvents ) {\n Blip blip = e.getBlip();\n if (!blip.getCreator().equals(\"your robot\")) {\n TextView textView = blip.getDocument();\n replaceWords(dictionary, textView);\n }\n }\n}\n```\n\nThe method responds to two types of events: WAVELET_SELF_ADDED and BLIP_SUBMITTED.\n We did not actually subscribe to the former, but it arrives by default whenever the\n robot is added to a wave. In response, the robot appends a new blip and populates\n the blip text with a simple greeting. The \"meat\" of the robot is in the remainder\n of the method, which loops over each submitted blip. If the blip is not submitted\n by this robot (trying to stay out of infinite loops), it replaces occurrences of words\n based on a dictionary. I hacked this together really quickly, so the algorithm replaces\n only the first occurrence of each word, so don't repeat yourself too much. I guess\n should have written a test first.\n\n```\nfinal static Map dictionary = new HashMap();\n\nstatic {\n dictionary.put(\"Java\", \"Java(TM) based technology\");\n dictionary.put(\"Microsoft\", \"Micro$oft\");\n}\n \nboolean isSeparator(char c) {\n return Character.isWhitespace(c) || \",.;!\\\"\".indexOf(c) >= 0; \t\n}\n \nvoid replaceWords(Map dictionary, TextView textView) {\n String text = textView.getText();\n for (String word : dictionary.keySet()) {\n int pos = text.indexOf(word);\n if (pos >= 0) {\n // make sure this is a word\n if (pos > 0 && !isSeparator(text.charAt(pos-1))) {\n break;\n }\n if (pos < text.length()-1 && !isSeparator(text.charAt(pos + word.length()))) {\n break;\n }\n textView.replace(new Range(pos, pos + word.length()), dictionary.get(word));\n text = textView.getText();\n }\n }\n}\n```\n\nA couple of items to note: the BLIP_SUBMITTED event appears to be triggered when a\n new blip is submitted or when an existing one is edited. Unfortunately the [JavaDoc for the event constants](http://wave-robot-java-client.googlecode.com/svn/trunk/doc/index.html) is still empty, so it's better to run a quick check to make sure your robot gets\n the events you were expecting. Also, my robot does not work on the Wave title. I would\n have to subscribe to WAVELET_TITLE_CHANGED to catch this event.\n\nThe rest of the robot is standard servlet fare. You need a web.xml file, which maps\n relative URL's to servlets. The robot servlet has to live under the relative path\n `/_wave/robot/jsonrpc`. The name of the robot as a wave participant is derived from your App Engine application\n name, meaning a robot at xyz.appspot.com will be known to the wave sandbox as xyz@appspot.com.\n Somehow, it became a quick fashion to name all robots ending in a \"\"y\", giving it\n a cute-y name like \"spelly\" or \"groupy\". Following this rule I should have named mine\n \"replacey\", but I felt it sounds too dorky.\n\n## DLL Hell has Many Faces\n\nThis robot is very simple, but it still took me some time to get it working. In the\n end it turned out I had some nasty version mismatches between the Wave Robot SDK,\n the App Engine run-time and the Eclipse plug-in. When your robot does not seem to\n receive the desired event or does not respond at all, things can be pretty frustrating.\n Once you have a basic robot working, debug and test cycles are relatively swift thanks\n to the easy deployment of App Engine applications. So I'd always recommend to start\n with a \"Hello World\" robot and go from there. The bottom of the [Wave Robot Api Overview](http://code.google.com/apis/wave/extensions/robots/index.html) has some useful troubleshooting tips. If your robot is not well, it's best is to\n check out the App Engine application logs, which are available from the App Engine\n console. For example, my logs alerted me to missing object ID's on my JDO classes.\n\n## The Shortcuts Robot\n\nTo make our robot a bit more useful (and interesting), I decided to give it a dictionary\n data store, meaning you can define your own terms and chose their replacements. Replacing\n Java with Java(TM) will be just one of many useful replacements. For example, you\n could replace the phrase \"Moron!\" with \"Thank you very much for your suggestion. I\n will be sure to bring up your feedback at our next internal meeting.\" This way you\n get all the satisfaction without losing political capital.\n\nApp Engine for Java supports JPA and JDO for persistence. Having successfully escaped\n from both throughout my career, I decided to see what it would take to get JDO-based\n persistence working for someone who has no clue. The good news is that this part was\n pretty pain free. The App Engine Eclipse plug-in deploys the right jar files (assuming\n you have matching versions of the plug-in and SDK) and sets up a `jdoconfig.xml` file for you.\n\nI setup a simple immutable value object for each dictionary entry, equipped it with\n a primary key, and made it persistable:\n\n```\n@PersistenceCapable(identityType = IdentityType.APPLICATION)\npublic class DictEntry {\n\n @PrimaryKey\n @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)\n private Long id;\n\n @Persistent\n private String key;\n\n @Persistent\n private String value;\n\n public DictEntry(String key, String value) {\n super();\n this.key = key;\n this.value = value;\n }\n\n public String getKey() { return key; }\n public String getValue() { return value; }\n}\n```\n\nNow I can load my dictionary from the persistent data store:\n\n```\nMap loadDictionary() {\n Map dict = new HashMap();\n PersistenceManager pm = PMF.get().getPersistenceManager();\n Query query = pm.newQuery(DictEntry.class);\n try {\n List results = (List) query.execute();\n if (results.iterator().hasNext()) {\n for (DictEntry e : results) {\n dict.put(e.getKey(), e.getValue()); \n }\n } \n } finally {\n query.closeAll();\n pm.close();\n }\n return dict;\n}\n```\n\n`PMF` is a singleton `PersistenceManagerFactory` . The rest of the code is pretty self-explanatory: it inserts one entry into the\n map for each row in the data store.\n\nLoading the dictionary from the database is only useful if you can also insert data:\n\n```\nboolean addToDict(String key, String value) {\n deleteFromDict(key);\n DictEntry entry = new DictEntry(key, value);\n PersistenceManager pm = PMF.get().getPersistenceManager();\t \n try {\n pm.makePersistent(entry);\n return true;\n } catch (Exception e) {\n return false;\n } finally {\n pm.close();\n }\n}\n```\n\n`deleteDict` iterates over all entries matching the key and deletes them one by one. In order\n to enable management of the persistent dictionary, I made the robot understand and\n respond to a simple set of commands, `#help, #replace, #showdict`. If a blip starts with such a command, the robot responds with a child blip by calling\n `createChild` on the blip. I had some struggles getting the output formatted in any reasonable\n way. The docs state that some HTML is allowed, but did not indulge us in which tags\n are part of that elite club. I got tired of trying pretty quickly, so the output looks\n pretty raw. What really tripped me up was that `TextView.append` does simply nothing if the string contains a \"greater than\" sign. You'll have to\n use `>` instead, so it does not think you are trying to do some invalid HTML. It would have\n been nice to mention that in the docs. Ironically, the supplied JavaDoc for `appendMarkup` makes a similar mistake by also forgetting to escape special characters, causing\n the generated JavaDoc HTML page to interpret the tags instead of displaying them as\n text. When I was trying to figure out why my test is now appended to the `TextView`, I figured I'd simply check out the source code, but most of the methods of the robot\n API simply translate the Java call into an instance of `Operation`, which is then serialized and returned to the Wave server. This means looking at\n the robot API source does not really help you answer detailed questions like these.\n\n## Robot Gotchas\n\nBecause you can invite more than one robot into a wave, you can inadvertently end\n up building a new version of Robot Wars. For example, one robot could reply to another\n one's changes and vice versa. The current solution is to give robots limited quota,\n so infinite loops will ultimaltely run out of steam.\n\n## Robot Profile\n\nNow that everything is working, you can put the icing on the cake and give our robot\n a profile servlet. This servlet equips the robot with a proper name and an avatar\n by overriding the respective methods of the `ProfileServlet` base class. Map this servlet to `/_wave/robot/profile` in `web.xml` and you are good to go. I chose a picture I took of the [live size Gundam](http://mdn.mainichi.jp/photospecials/graph/gundam/index.html), which is currently on display in Odaiba, Tokyo. Robots don't get much cooler than\n that.\n\n*Share:*\n\n*Follow:* [Follow @ghohpe](https://twitter.com/ghohpe) [SUBSCRIBE TO FEED](../ramblings.rss)\n\n*More On:* [ALL RAMBLINGS](../ramblings.html)\n\nGregor is a cloud architect and author. He is a frequent speaker on asynchronous messaging,\n IT strategy, and cloud.", "znaku_textu": 14659, "slov": 2209, "odkazu": 55, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 15:35:54", "sha256": "d021f10c4b946eaf768a5b0996e90934a466a1f5c0328dcc8f98cadffa073ac6", "hloubka": 4, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://architectelevator.com/blog", "http://wave.google.com/", "http://googlewavedev.blogspot.com/2009/07/google-wave-updates-from-todays.html", "http://atnd.org/events/1091", "http://groups.google.com/group/tokyo-gtug/", "http://www.appspot.com/", "http://wave-robot-java-client.googlecode.com/svn/trunk/doc/index.html", "http://code.google.com/p/wave-robot-java-client/source/browse/", "http://wave-robot-java-client.googlecode.com/svn/trunk/doc/com/google/wave/api/AbstractRobotServlet.html", "http://code.google.com/apis/wave/extensions/robots/index.html", "http://wave-robot-java-client.googlecode.com/svn/trunk/doc/com/google/wave/api/EventType.html", "http://mdn.mainichi.jp/photospecials/graph/gundam/index.html", "https://twitter.com/share", "https://twitter.com/ghohpe", "https://leanpub.com/37things"]} {"url": "http://www.enterpriseintegrationpatterns.com/ramblings/71_javaone.html", "titulek": "Clouds and Integration Patterns at JavaOne - Enterprise Integration Patterns", "h1": "Clouds and Integration Patterns at JavaOne", "popis": "I joined JavaOne this year as a panelist on Cloud Computing", "klicova_slova": "", "kanonicka": "", "jazyk": "en_US", "robots_meta": "", "og": {"og:type": "article", "og:locale": "en_US", "og:site_name": "Enterprise Integration Patterns", "og:title": "Clouds and Integration Patterns at JavaOne", "og:description": "I joined JavaOne this year as a panelist on Cloud Computing", "og:url": "https://www.enterpriseintegrationpatterns.com/ramblings/71_javaone.html"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Clouds and Integration Patterns at JavaOne"}, {"uroven": 2, "text": "Cloud Computing: Show me the money (or demo)"}, {"uroven": 2, "text": "Socializing: To demo or not to demo"}, {"uroven": 2, "text": "Relating to Non-Relational Data"}, {"uroven": 2, "text": "Integration Patterns all over JavaOne"}, {"uroven": 2, "text": "Till Next Year?"}], "markdown": "Gregor's Ramblings\n\n---\n\n# Clouds and Integration Patterns at JavaOne\n\nOCT 1, 2009\n\nFind my posts on IT strategy, enterprise architecture, and digital transformation\n at [ArchitectElevator.com](https://architectelevator.com/blog).\n\nI joined JavaOne this year as a panelist on Cloud Computing. As always, you’ll have\n to run `s/Java/Java (TM) Technology Based` over this article to satisfy Sun’s legal requirements.\n\nWe all expected the mood at JavaOne to be a bit more somber than during the fat years,\n but I’ll have to say it was out right depressing. I walked into the keynote fashionably\n late, just as James Gosling was introducing the Java application store. I have a lot\n of respect for James, but Jonathan Schwarz and James were simply stumbling over their\n own words. I would assume these guys are used to being on stage, so I am not sure\n what was going on. Apparently, other snafoos occurred earlier with one of the Sunsters\n referring to app store half an hour before it was actually announced. To add to the\n drama, Scott McNealy came back on stage, all sentimental, followed by Larry E. himself\n engaged in a somewhat staged (well, can we blame them?) dialog. While Scott was able\n to strike a chord with some in the melancholy department, the overall performance\n really lacked in energy and coherence. It felt like a bunch of grumpy old men reminiscing\n about better times. Even the T-shirt cannon felt a bit like playing silly games at\n the kid’s birthday party after you’ve grown too old just to make grandma happy.\n\nThe distinct lack of entertaining (non-Sun-sponsored) parties and the associated party\n regulars only added to the somber mood. No Zebulon party, no Hani, James Strachan,\n or Cameron Purdy. Patrick Linsky was apparently sighted somewhere, but I did not manage\n to grab a pint with him.\n\nThe most striking feature on the expo floor (“pavilion”) was the complete absence\n of Oracle, and hence BEA. Rumor has it that this was due to legal restrictions during\n the planned acquisition, but it still left a noticeable hole. One vendor managed to\n drive a Lincoln Continental out of the show floor before the booth breakdown even\n started. The most allegorical moment must have been when I described Sebastian Meyen,\n who runs the JAX conferences in Germany, that JavaOne seems to be falling apart, just\n as the vendors started tearing off the decoration from the pavilion entrance.\n\n## Cloud Computing: Show me the money (or demo)\n\nI had the honor to be teamed up on a cloud computing panel with representatives from\n Amazon, SalesForce, Intuit, Microsoft, and Sun. I love panels because they are interactive\n and require little preparation, but I was a bit nervous about having a panel with\n so many participants, each of which would give a demo. However, it actually went quite\n well at least from my perspective (the audience will be the ultimate judge via the\n feedback forms). Jeff Bar from Amazon showed an application that scrapes Seattle traffic\n data (like the weather, usually bad) and stores it on S3. Simon Guest from Microsoft\n deserves the bonus point for inviting everyone to hit his live Azure app, which queues\n up requests to validate prime numbers. Unfortunately, the app bogged down under the\n traffic, but came back up towards the end. I guess a perfect live demo without hiccups\n runs the risk of looking fake.\n\nNaturally, I represented Google App Engine for Java (GAE/J). Since I expected most\n of my (friendly) competitors to come with ready-made demos, I joked that I forgot\n to make a demo and fired up Eclipse to throw together world’s simplest “Hello World”\n servlet. A simple button push deployed it out into the cloud, and there was really\n nothing more to tell. I was only half joking when I declared that it’s difficult to\n demo GAE because it’s so seamless that there’s really not much to show. The strategy\n seemed to have worked out as one attendee came to me afterwards to let me know that\n he appreciated the simplicity of my demo.\n\nAfter my 2 minutes of demo chest chumping (and a round of applause for two lines of\n Java code), the audience posed a number of interesting questions to the panel:\n\n- One of the most common concerns relates to storage location and ownership of the data.\n This question touches both on privacy as well as regulatory concerns. Especially in\n the EU, legal requirements can restrict on which continent data can be stored. One\n of the recent Google products, the Secure Data Connector, brings some relief in this\n aspect, as cloud-based applications, such as App Engine programs can selectively access\n data residing inside the corporate firewall. I am sure there are other products in\n the market to address this need as well. Data access latency will likely be the biggest\n hurdle as fetching data from a cloud application across a secure channel will be an\n order of magnitude slower than running a direct query against Bigtable or SimpleDB.\n- Another question was the direct reaction to me hitting the “App Engine” button in\n Eclipse to deploy my application. The gentleman spoke from the operations perspective,\n to who “someone hitting a button in Eclipse to deploy an app is our worst nightmare.”\n He was curious to find out about staging procedures and check points. I was able to\n answer from the Google App Engine perspective, where we ask the user to authenticate\n to a Google account in order to deploy an application. For staging procedures, users\n typically setup separate instances of their application in the cloud, similar to what\n you would do internally.\n- Another listener was curious as to when using a cloud provider such as Amazon or Google\n is no longer economical compared to running your own datacenter, measured in storage\n and traffic size. It’s difficult to give general advice here. Usually there are additional\n aspects beyond size that motivate companies to run proprietary datacenter, such as\n the aforementioned privacy or regulatory concerns. The answer will also depend on\n the usage patterns. If usage fluctuates significantly, for example in seasonal patterns,\n the elasticity of the cloud solutions can become a major economical benefit (assuming\n not everyone customer is subject to the same seasonal pattern). An oft cited case\n study is that of the New York Times, which used Amazon’s EC2 to convert a mass of\n scanned newspaper images. It deployed a batch-style data processing job to EC2 and\n paid a few hundred Dollars for the whole event. For such one-time computing jobs,\n the cloud model is certainly economically appealing.\n\nThe last point relates to a discussion I had with [David Chappell](http://www.davidchappell.com) (not the Oracle one) over lunch at the Four Seasons. In a recent [keynote presentation](http://www.davidchappell.com/CloudPlatformsToday--APerspective--Chappell.pdf), he compared popular cloud computing platforms. Rather than ticking off feature checklists\n for each platform, he chose a scenario-based approach, comparing how suitable today’s\n cloud vendor platforms are to a set of five specific scenarios:\n\n1. Running an on-premises app unchanged in the cloud\n2. Creating a moderately scalable Web app\n3. Creating a very scalable Web application\n4. Creating a parallel processing application (as in the New York Times example above)\n5. Creating a very scalable Web application with background processing\n\nHe applied these scenarios against Amazon EC2, Mosso Cloud Servers, Azure, Google\n App Engine, and Salesforce.com. Check out his presentation to view his findings.\n\n## Socializing: To demo or not to demo\n\nJavaOne nevertheless drew a number of good friends, who I don't get to see often enough.\n I had a good conversation with Martin Fowler, Erik Meijer, and Yuji over dinner at\n Ame, the fancy Japanese fusion restaurant at the St Regis hotel. The highlight of\n the dinner was that OGIS (Osaka Gas Information Systems division) covered the bill\n (arigatō!) The strong Yen may be helping. The fact that we just walked into the restaurant\n without any reservation during a major conference event is a certain indicator of\n the poor state of the US expense accounts. Martin shared his view that live demos\n do not add much value to a talk. I generally like (good) demos because they keep the\n audience engaged and demonstrate cause and effect of actions. If I write a certain\n piece of code, the demo shows what comes out the other hand. Unfortunately, this is\n where many (not useful) demos fail. Often too much “magic” is already prepared, making\n it difficult for the audience to build a suitable mental model of the system. Or pieces\n of code are added in various places without am obvious connection between them. Martin\n agreed that linking cause and effect is an important aspect for the audience, but\n he feels that one can accomplish the same effect with diagrams or explanation, which\n is certainly true. So doing a live demo is mostly a matter of style, with a tiny bit\n of geek chest chumping added into the mix.\n\n## Relating to Non-Relational Data\n\nAnother topic that came up in a few discussions is the recent rise of non-relational\n datastores, amongst them SimpleDB, Bigtable, and Azure Data Services. At Google IO,\n Martin voiced his concerns that developers are likely to get tangled up in the impedance\n mismatch between persistence frameworks and the underlying non-relational storage.\n David Chappell voiced a similar concern. Microsoft must have faced pressure a lot\n of pressure as they quickly put the SQL back into the Azure SQL Data Services. A recent\n discussion on the [cloud computing mailing list](http://groups.google.com/group/cloud-computing) offered additional insights into this topic.\n\nI believe that a non-relational model can work reasonably well for “typical” Web applications,\n which are usually not based on a complex domain model. Data storage such as Bigtable\n makes up for the lack of relationships by providing a richer storage model inside\n a single table (I always like to highlight the fact that it’s called Bigtable and\n not Bigdatabase): Bigtable can store an arbitrary number of columns for a single row\n and is not tied to a fixed schema across rows – it’s essentially a persistent map.\n Because column names are not fixed, applications use them as data items as well, in\n addition to the date cells. Furthermore, each Bigtable cell can store multiple versions\n of data, providing a third dimension of data access beyond key and column name. Combined\n with an utter disregard for normal forms (compression is very effective for duplicated\n data), a single Bigtable can often provide the same storage model as a handful of\n tables in a relational database. The Bigtable storage model for AppEngine gives a\n nice example how clever use of row keys and prefix scans allows a variety of queries\n to be performed against a single Bigtable.\n\nThe biggest challenge I see is that it’s difficult for developers to understand the\n performance consequences of their application design when the details of the underlying\n storage model are not well publicized. For Google App Engine storage, I highly recommend\n Ryan Barrett's talk [Under the Covers of the Google App Engine Datastore](http://sites.google.com/site/io/under-the-covers-of-the-google-app-engine-datastore).\n\n## Integration Patterns all over JavaOne\n\nWith all that somber mood at JavaOne, I was most excited to see a surprisingly strong\n presence of Enterprise Integration Patterns -- and even more excitingly neither Bobby\n nor I had anything to do with it.\n\n- First off, we were most pleased to see that our book made it onto the Top 10 Bestseller\n List from the conference bookstore!\n- This may have been largely a byproduct of [Project Fuji](https://fuji.dev.java.net/) Open Source ESB being part of the Tuesday morning general session / keynote. Their\n demo and tutorials make heavy use of our patterns. Sadly, I just walked in after the\n demo finished. This could have easily ranked as my second proudest conference moment\n after [Grady Booch mentioning our book as one of the most influential pattern books](37_oopsla.html) .\n- Andreas Egloff and Bruce Snyder gave a [Enterprise Integration Patterns in Practice](http://www.slideshare.net/aegloff/ts-4839-enterprise-integration-patterns-in-practice) talk, which demonstrates how our patterns are implemented in Apache Camel and Fuji\n / OpenESB.\n- The show floor aka Pavillion provided another nice EIP surprise: LogicBlaze-turned-Iona-turned-Progress\n Software created very nice [Dzone RefCardz](http://refcardz.dzone.com/refcardz/enterprise-integration) for [Fuse](http://fusesource.com/) aka Apache Camel, which implements many of our patterns. They adopted the [icon language and diagrams from our book](../toc.html) (which are available under the creative commons license) and mapped them to the corresponding\n implementation in Fuse.\n\n## Till Next Year?\n\nWhat's going to be hot at JavaOne next year? I think many of us don't know what to\n expect. I feel that the transition of Java from the cool, exciting to bread-and-butter\n is sombering, but ultimately a good thing. In many ways, the transition had started\n quite a few years ago, and the transition to Oracle really just puts the icing on\n the cake. On the upshot, Oracle knows how to throw a good party. See you all there\n next year!\n\n*Share:*\n\n*Follow:* [Follow @ghohpe](https://twitter.com/ghohpe) [SUBSCRIBE TO FEED](../ramblings.rss)\n\n*More On:* [EVENTS](/ramblings_events.html) [CLOUD](/ramblings_cloud.html) [ALL RAMBLINGS](../ramblings.html)\n\nGregor is a cloud architect and author. He is a frequent speaker on asynchronous messaging,\n IT strategy, and cloud.", "znaku_textu": 13600, "slov": 2178, "odkazu": 53, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 15:35:53", "sha256": "06da06d13cb6a4185524163a5e4dec54caf3506335aa4fc21ccddd4af51a3343", "hloubka": 4, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://architectelevator.com/blog", "http://www.davidchappell.com/", "http://www.davidchappell.com/CloudPlatformsToday--APerspective--Chappell.pdf", "http://groups.google.com/group/cloud-computing", "http://sites.google.com/site/io/under-the-covers-of-the-google-app-engine-datastore", "https://fuji.dev.java.net/", "http://www.slideshare.net/aegloff/ts-4839-enterprise-integration-patterns-in-practice", "http://refcardz.dzone.com/refcardz/enterprise-integration", "http://fusesource.com/", "https://twitter.com/share", "https://twitter.com/ghohpe", "https://leanpub.com/37things"]} {"url": "http://www.enterpriseintegrationpatterns.com/ramblings/72_eipvolumes.html", "titulek": "EIP Visions - Enterprise Integration Patterns", "h1": "EIP Visions", "popis": "The beginning of a New Year is the time to reflect on the past and make resolutions for the future", "klicova_slova": "", "kanonicka": "", "jazyk": "en_US", "robots_meta": "", "og": {"og:type": "article", "og:locale": "en_US", "og:site_name": "Enterprise Integration Patterns", "og:title": "EIP Visions", "og:description": "The beginning of a New Year is the time to reflect on the past and make resolutions for the future", "og:url": "https://www.enterpriseintegrationpatterns.com/ramblings/72_eipvolumes.html"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "EIP Visions"}, {"uroven": 2, "text": "Bestseller!?"}, {"uroven": 2, "text": "Having a Conversation"}, {"uroven": 2, "text": "Life Work: 4 Volumes of EIP"}, {"uroven": 2, "text": "Harsh Reality"}], "markdown": "Gregor's Ramblings\n\n---\n\n# EIP Visions\n\nJAN 22, 2010\n\nFind my posts on IT strategy, enterprise architecture, and digital transformation\n at [ArchitectElevator.com](https://architectelevator.com/blog).\n\nThe beginning of the New Year is the time to reflect on the past and make resolutions\n for the future. As long as you make it a resolution to reflect more on the past, you\n can check off items with one stone. One of my resolutions was to write more regularly,\n so I am trying to start the year on the right foot by writing this rambling. Another\n resolution was to get myself a new laptop (the company issued model is all but unusable),\n so I am writing this on a Panasonic Let’s Note N8 running Japanese Windows 7. I am pouring water into the keyboard as we speak. Just\n kidding. The battery meter shows 8時10分 at 88%, so it looks like I can type along for\n quite some time.\n\n## Bestseller!?\n\nIt's been over 6 years now since *Enterprise Integration Patterns* first hit the shelves. The book continues to quite popular, so I am contemplating\n whether we could call it a “bestseller” soon. Actually, I have no idea what that label\n really means: I have always been equally amused and disturbed by the notion of a\n “bestselling author” or “bestsellers” in general. The exact criteria to call one's\n work a bestseller appear to be even less well understood than the Amazon Sales Rank\n algorithm. To my relief, [Wikipedia states](http://en.wikipedia.org/wiki/Bestseller) that \"Bestsellers tend not to be books considered of superior academic value or literary\n quality.\" So maybe it’s a label we don’t actually want.\n\nTechnical book sales are certainly not what they used to be, and are by no means comparable\n to fiction titles. The Harry Potter series apparently topped 400 million copies and\n The Lord of the Rings (my teenage year favorite) logged 150 million copies. These\n days a technical book that sells more than 10,000 copies is probably considered a\n solid seller, whereas 50,000 copies constitute quite a success. At a minimum, the\n publisher is going to encourage you to write another one. With a little luck, *EIP* may hit the 50,000 mark this year, which would be a happy cause for celebration.\n It's not that we make that much money from it, but once you put this much effort into\n a book, you really do want people to read it. Write one and you'll know the feeling.\n Martin Fowler has aptly described the scary \"will they like my baby\" moment when a\n book hits the shelves. It's not like you can go back and fix it afterwards. It feels\n good if they like your baby.\n\nWhat excites us the most is that the book has remained relevant over so many years.\n Sure, there are some \"antique\" TIBCO Integration Manager screen shots (maybe Mike\n Rettig will show these to his children some time, who will never understand why integration\n was difficult), and our code samples are refreshingly \"generics free\", but nevertheless\n quite generic. Of course the problems (and solutions) of asynchronous messaging have\n not changed terribly much in six years, making EIP as relevant as ever.\n It’s nice to see that EIP also still receives favorable reviews. What caught my attention\n in [Mike Hadlow's blog post](http://mikehadlow.blogspot.com/2009/12/book-review-enterprise-integration.html) is that he originally got the book in 2004, but now actually applies it as he is\n working on messaging products. It's certainly nice to read statements about EIP like\n \"I don’t think anyone can have an intelligent discussion about integration architecture\n without referencing it.\" Mike also understands well that one does not have to read\n the book cover to cover, but that it doubles up as a reference book. [Jan Van Ryswyck agrees with him](http://elegantcode.com/2009/08/18/book-review-enterprise-integration-patterns/) here, and points out that reading the 600+ pages back-to-back is quite an undertaking.\n Jan is aptly pointing out that the almost 50 page introduction contains many (hidden)\n gems about what messaging is, and why it works so well. In hindsight, we probably\n should have made it Chapter 1. This follows the advice from a smart fellow author\n (whose name escapes me), who solves the problem that people don't read introductions\n by renaming the introduction to \"Chapter 1\". Our introduction actually runs past page\n \"li\", i.e. lowercase roman 51, which is likely an indication that it would have made\n a good chapter.\n\nI mentioned quite a few times before that we owe a lot of the success of EIP to the\n ESB community and particularly the open source implementations. Virtually all of them,\n including [Mule](http://mule.mulesource.org/display/MULE/Architecture+Guide), [Apache Camel](http://activemq.apache.org/camel/enterprise-integration-patterns.html), [Spring Integration](http://blog.interface21.com/main/2007/12/14/spring-integration-a-new-addition-to-the-spring-portfolio), and OpenESB aka [Project Fuji](https://fuji.dev.java.net/) support our patterns out of the box and use our vocabulary to describe their products'\n capabilities. I even found a (short) [paper comparing the implementation of EIP patterns in different open source ESB's](http://www.schatten.info/pub/cee_set/cee_set2008.pdf). Lastly, seeing our patterns at the JavaOne keynote certainly ranks as one of my\n proud moments (as #2 behind Grady Booch listing EIP as one of his favorite pattern\n books at OOPSLA).\n\n## Having a Conversation\n\nIn his blog post, Jan also echoed the most common criticism about the book: the fact\n that it's not about the entirety of enterprise integration, but just about messaging.\n So the title is in fact a little misleading. The snip reply is to read the subtitle\n more carefully, which clearly hints at messaging. The real reason, though, is that\n when I was writing EIP with Bobby, I had something bigger in mind than a single volume.\n\nMessaging is the foundation for many connected systems, but as many people have pointed\n out, it's only one part of a comprehensive integration solution. Messaging is great\n because it makes for an elegant interaction model which favors asynchronous, stateless\n solutions, and allows high throughput. As much as all those buzzwords make you think\n it's the best thing since sliced bread, messaging also has limitations. For example,\n the absence of state (beyond the position of the message) makes it difficult to discuss\n topics like error handling or conversations. Many readers probably noticed the \"cliff\n hanger\" pattern in our book, the [Process Manager](../ProcessManager.html). We could not really hide the fact that this pattern is really a window into a different\n world, with design trade-offs rules, vocabulary, and patterns.\n\nProcess managers are often employed to track the exchange of multiple messages over\n time, i.e. a *conversation*. If you followed some of my (somewhat) recent publications in [IEEE Internet Computing](/docs/IEEE_IC_Conversations.pdf), [SOA Expertenswissen](http://www.amazon.de/SOA-Expertenwissen-Gernot-Starke/dp/3898644375), or [EuroPLoP](http://hillside.net/europlop/europlop2008/submission/shepherd.cgi?token=ddb3e5acccc162303656b24adea5a0f8bd0cc350&action=download&label=1203322025_15), or my [Dagstuhl workshop report](http://drops.dagstuhl.de/opus/frontdoor.php?source_opus=828), you realize that conversation patterns have been the center of my attention for\n some time. Conversations are interesting to me because they are commonplace, both\n in connected systems as well as the real world. As [Pat Helland discussed](http://www-db.cs.wisc.edu/cidr/cidr2007/papers/cidr07p15.pdf), multiple interacting systems engage in mini activities aka conversations to compensate\n for the absence of 2-phase-commit transactional guarantees. Since the real world also\n does not provide such guarantees, humans are very used to holding conversations, i.e.\n to exchange messages over time, to achieve an ultimate goal. For example, planning\n a dinner with your friends may involve a series of e-mail exchanges to pick a suitable\n time and location, and to inform everyone of the decision. Because these days e-mail\n is the asynchronous messaging infrastructure of choice for humans, many conversations\n are \"hidden\" behind threads of e-mail discussions. Not quite coincidentally, [Google Wave](http://www.google.com/wave) is aiming to put the conversational aspect of e-mail exchanges into the center by\n choosing a document-oriented model of interaction. In some ideological universe we\n could call Google Wave is the [blackboard architecture](http://books.google.com/books?id=WVQF2PK2tlgC&pg=PA205&dq=buschmann+pattern+blackboard&cd=1#v=onepage&q=&f=false) of asynchronous human interaction.\n\nThere is a lot more to say about conversations, but it becomes apparent fairly soon\n that [designing and describing them is not an easy task](/docs/IEEE_IC_Conversations.pdf). I am hoping that once again design patterns can help us tackle these design challenges\n by defining a consistent vocabulary and building a collection of design trade-offs\n and pitfalls. Enter *EIP 2: Conversations between Loosely Coupled Systems*. I [concluded 4 years ago](38_interaction.html) that interaction gets (and deserves) a lot of attention, so I think it's time we\n collect some guidance on how to do it right.\n\n## Life Work: 4 Volumes of EIP\n\nConversation Patterns make a very natural extension to EIP I:Messaging, but the series\n does not have to stop there. Conversation participants almost invariably hold state,\n to track which messages were sent and received already, to count the number of retries,\n and so on. Osten, this state is held in a process engine of sorts, which expresses\n the conversation in form of orchestrations and process models. This is yet again\n a whole new world and probably deserves its own volume. You could consider it the\n dualistic (but different) view of conversation patterns.\n\nBut that's not it. CEP (Complex Event Processing) is getting more and more attention\n and I had a chance to connect with [some very smart folks](http://www.biotec.tu-dresden.de/~adrianp/europlop08_cep/) from the \"CEP tribe\" at EuroPLoP 2008 (man, why does everything seem ages ago?).\n CEP takes a bottom-up approach in the sense that instead of prescribing rules of conversations,\n the event processor observes a stream of events travelling the \"event cloud\" and interprets\n them to gain a higher-level understanding. A fascinating topic, which has been garnering\n vendor support, including an attractive open source engine, [Esper](http://esper.codehaus.org/).\n\nAm I in all honesty proposing 4 volumes of *Enterprise Integration Patterns*? I guess so:\n\n- EIP I: Messaging\n- EIP II: Conversations\n- EIP III: Process\n- EIP IV: Event Processing\n\nI think it'd be a valuable body of work, if I can only ever get around to writing\n it! The volumes would be in somewhat logical order from the bottom up with messaging\n being the foundation. One could also say the volumes follow the trend of basic EAI\n (messaging) to SOA (orchestration) and then SOA 2.0 (event processing). I feel a little\n dirty after typing SOA 2.0, so I won't get into the debate about \"2.0\" technologies.\n\n## Harsh Reality\n\nWith all these grand dreams, where does reality settle in? The EIP world domination\n plan stands about here:\n\n- Volume I - Messaging. 650 pages, 187000 words. All done.\n- Volume II - Conversations. 50 page paper, [workshopped at EuroPLoP 2008](http://hillside.net/europlop/europlop2008/submission/shepherd.cgi?token=ddb3e5acccc162303656b24adea5a0f8bd0cc350&action=download&label=1203322025_15) . It's obviously missing a lot, but the first paper of Integration Patterns at OOPSLA\n 2002 was not a whole lot further along.\n- Volume III - Process: Not much more than a thought bubble and some notes of conversations\n I had with smart people.\n- Volume IV – Inspired by talking with folks like Adrian Paschke, but far from even\n starting to think about concrete patterns.\n\nSo obviously I have some work ahead of me. Sadly, progress has been grinding to a\n halt for almost two years now, but I have not given up yet. Wish me luck!\n\n*Share:*\n\n*Follow:* [Follow @ghohpe](https://twitter.com/ghohpe) [SUBSCRIBE TO FEED](../ramblings.rss)\n\n*More On:* [WRITING](/ramblings_writing.html) [CONVERSATIONS](/ramblings_conversations.html) [ALL RAMBLINGS](../ramblings.html)\n\nGregor is a cloud architect and author. He is a frequent speaker on asynchronous messaging,\n IT strategy, and cloud.", "znaku_textu": 12388, "slov": 1833, "odkazu": 62, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 15:35:52", "sha256": "71492b28f662bde64dacb096552ff710b774cd179efaa7c438ee55cb11765fb3", "hloubka": 4, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://architectelevator.com/blog", "http://en.wikipedia.org/wiki/Bestseller", "http://mikehadlow.blogspot.com/2009/12/book-review-enterprise-integration.html", "http://elegantcode.com/2009/08/18/book-review-enterprise-integration-patterns/", "http://mule.mulesource.org/display/MULE/Architecture+Guide", "http://activemq.apache.org/camel/enterprise-integration-patterns.html", "http://blog.interface21.com/main/2007/12/14/spring-integration-a-new-addition-to-the-spring-portfolio", "https://fuji.dev.java.net/", "http://www.schatten.info/pub/cee_set/cee_set2008.pdf", "http://www.amazon.de/SOA-Expertenwissen-Gernot-Starke/dp/3898644375", "http://hillside.net/europlop/europlop2008/submission/shepherd.cgi?action=download&label=1203322025_15&token=ddb3e5acccc162303656b24adea5a0f8bd0cc350", "http://drops.dagstuhl.de/opus/frontdoor.php?source_opus=828", "http://www-db.cs.wisc.edu/cidr/cidr2007/papers/cidr07p15.pdf", "http://www.google.com/wave", "http://books.google.com/books?cd=1&dq=buschmann+pattern+blackboard&id=WVQF2PK2tlgC&pg=PA205", "http://www.biotec.tu-dresden.de/~adrianp/europlop08_cep/", "http://esper.codehaus.org/", "https://twitter.com/share", "https://twitter.com/ghohpe", "https://leanpub.com/37things"]} {"url": "http://www.enterpriseintegrationpatterns.com/ramblings/73_writing.html", "titulek": "A Chapter a Day... - Enterprise Integration Patterns", "h1": "A Chapter a Day...", "popis": "My New Year's resolution was to write more, so here my thoughts on how to actually make that happen", "klicova_slova": "", "kanonicka": "", "jazyk": "en_US", "robots_meta": "", "og": {"og:type": "article", "og:locale": "en_US", "og:site_name": "Enterprise Integration Patterns", "og:title": "A Chapter a Day...", "og:description": "My New Year's resolution was to write more, so here my thoughts on how to actually make that happen", "og:url": "https://www.enterpriseintegrationpatterns.com/ramblings/73_writing.html"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "A Chapter a Day..."}, {"uroven": 2, "text": "Harness the Power of Procrastination"}, {"uroven": 2, "text": "Write *Something* Every Day"}, {"uroven": 2, "text": "Use Your Best Hours – Mornings"}, {"uroven": 2, "text": "Reward Yourself"}, {"uroven": 2, "text": "Read More"}, {"uroven": 2, "text": "Capture Ideas Anytime Anywhere"}, {"uroven": 2, "text": "Start from Different Angles"}, {"uroven": 2, "text": "Recycle"}, {"uroven": 2, "text": "Announce Your Progress Publicly"}, {"uroven": 2, "text": "Share"}, {"uroven": 2, "text": "Co-Author"}, {"uroven": 2, "text": "No Silver Bullet Here Either"}], "markdown": "Gregor's Ramblings\n\n---\n\n# A Chapter a Day...\n\nFEB 1, 2010\n\nFind my posts on IT strategy, enterprise architecture, and digital transformation\n at [ArchitectElevator.com](https://architectelevator.com/blog).\n\n...keeps the writer's block away. My New Year's resolution was to write more, so here\n my thoughts on how to actually make that happen. In a sense it's a plan for myself\n to be more productive, but hopefully the ideas also work for other folks. Ironically,\n my work on EIP II has been stalled for a good while, so you're getting advice on how\n to be a prolific writer from someone who has not written much in 2 years. Read on\n at your own risk.\n\n## Harness the Power of Procrastination\n\nYou can easily tell when I am “writing”: the house is 105% dust-free, no dirty dishes\n are to be found anywhere in the kitchen, and all laundry clean and neatly folded.\n Twice. That's the power of procrastination (it's certainly not the normal state).\n It's hard to avoid procrastination, but you can try to make it work for you. For example,\n if your goal is to write a whole book, you can easily procrastinate by writing blog\n entries or chapters for books. For example, that's how my chapters in EAI Expertenwissen and [97 Things every Architect Should Know](http://amazon.com/o/asin/059652269X/ref=nosim/enterpriseint-20), or this rambling came about. I still did not work on my book much, but at least\n I got some work published.\n\n## Write *Something* Every Day\n\nEven you feel like you are in no condition to write anything useful, write something.\n Or at least copy edit some text or draw a new diagram. One of the biggest dangers\n is for your mind to go stale, i.e. you forget the \"story\" or \"spirit\" of the book.\n Writing is a slow activity, so it's natural to have many open \"threads\" in your mind\n at one time. But you can't keep these threads idling forever. I call it the \"cliff\n of freshness\": if you don't write for a few days, no problem. After one week, I slowly\n start to forget some of the open threads. After 2 weeks, they are mostly gone and\n I end up having to re-read what I wrote and slowly reconstruct where I wanted to go.\n Keep your mind in the fresh zone by doing something related to your writing every\n day. When I wrote EIP my co-workers refused to eat lunch with me unless I promised\n not to talk about \"the book\" – because that was the only thing on my mind.\n\n## Use Your Best Hours – Mornings\n\nI got this advice from Martin Fowler, who has the luxury of living on the East Coast\n in a company that has many projects further westwards. This allows him to write in\n the morning before his regular work day starts. As most developers, I tended to do\n most of my work late at night, but I recently followed Martin's approach. Not because\n I have a time zone advantage, but because many developers only get into the office\n at around 11am (to avoid the train rush). So I try to write from 8am to 11am 3 days\n a week, as long as I can fend off meetings with California, which tend to be in the\n mornings. Nothing feels better than showing up for the daily grind with 3 hours of\n fun work under your belt.\n\n## Reward Yourself\n\nA good state of mind is important for writing. Some new gear can be very helpful to\n put yourself into a positive state of mind. I love my new laptop after I had been\n so frustrated with my company Thinkpad for a long time. Thinkpads are not actually\n bad machines, but the combination of an encrypted hard drive, overly zealous virus\n checking, too little drive capacity, and memory hungry Chrome meant that the machine\n swapped itself to death. It often took 30 seconds for a Chrome tab to refresh or even\n open. I ultimately realized that my time is more valuable than that, so I got myself\n a shiny new laptop, one of those funny looking Panasonic Let's Note. It's very Japanese\n including the ridiculously cute name, but it offers an outstanding combination of\n power (2.53GHz dual core), light weight (just over 1kg), battery life (I get 10h+),\n and sturdiness (supposedly survives 70 drop with no issue). Now that I spent all this\n money, I better use it to write!\n\n## Read More\n\nNobody writes in isolation. Part of writing is also to read more to get inspired,\n and see what other folks are working on. And when you are totally out of ideas on\n what to write, you can simply write about the great thing you read. I am considering\n getting the small Kindle to be able to read and review comfortably anywhere. Except\n PDF's don't show terribly well, largely because PDF is meant for page layout, not\n for reading on a 6\" screen. But I hear you can easily convert to the Kindle format\n and solve this problem. Plus getting a Kindle also falls into the previous point of\n making an investment / commitment.\n\n## Capture Ideas Anytime Anywhere\n\nGood ideas don't arrive on schedule. They also tend to disappear quickly, so it's\n useful to have something to jot down ideas with you any time. It can be as low tech\n as a tiny notebook or as high tech as an iPhone. Many good ideas come from talking\n to other folks, so maybe it should not be considered rude to take notes during beer\n chats. Maybe that's what the coasters are for? How about the proverbial idea in the\n shower? Don't get the fog free mirror.\n\n## Start from Different Angles\n\nWhen you flip through EIP, you may notice that the amount of code increases towards\n the end of the book. That's mainly because we got so tired of writing that it seemed\n easier to code (see also \"procrastination\"). So try different tacks instead of just\n typing words. Make up a picture, sketch something out, code up a solution.\n\n## Recycle\n\nI am not talking about scribbling on the back side of your printer paper here, but\n about recycling ideas. I found that I have good ideas of how to explain things when\n I prepare a talk. But too often I don't actually write about them or, worse yet, I\n forget about them. So turning a talk into a short article or a blog post into a book\n chapter can be quite productive and keeps your mind fresh.\n\n## Announce Your Progress Publicly\n\nI saw many tweets from Martin on his DSL book. Announcing your progress is a good\n way to make a commitment and share your success.\n\n## Share\n\nThe notion of someone locking themselves up for 3 months in a dark chamber to write\n a book is in fact quite rare, at least for technical books. These days, a chamber\n with WiFi may do the trick, but the reality is that the majority of good technical\n books are the result of a community effort based on formal and informal reviewers.\n So don't be afraid to share your work. Nothing is a better motivator than receiving\n useful feedback.\n\n## Co-Author\n\nMany authors state that the chances of success for a book co-authorship is lower than\n that of marriage. While that may be the case, having a co-author is great to get you\n over lows or busy periods. If you write by yourself, it is just too easy to drop things.\n If you have a co-author, you can balance between the two (or three) of you and make\n steady progress. I think one of the reasons we actually finished EIP was because we\n were a team of two.\n\n## No Silver Bullet Here Either\n\nLet me conclude with my insight that writing books is infinitely more difficult than\n writing code. I can happy crank code 10 hours a day without breaking a sweat (even\n though I rarely do these days). On the other hand, 5 hours of intense writing wipes\n my brain out completely.\n\nWill my advice work for me? Ask me in 6 months. My plan for this year is to speak\n at fewer events and dedicate more time to writing. Of course, meeting fellow authors\n and \"intellectual drinking buddies\" at events is still an important part of staying\n ahead of the curve and getting ideas and inspiration. So it's unlikely that I'll go\n into complete isolation. My [talks RSS feed](../talks.rss) should keep you up-to-date.\n\n*Share:*\n\n*Follow:* [Follow @ghohpe](https://twitter.com/ghohpe) [SUBSCRIBE TO FEED](../ramblings.rss)\n\n*More On:* [WRITING](/ramblings_writing.html) [ALL RAMBLINGS](../ramblings.html)\n\nGregor is a cloud architect and author. He is a frequent speaker on asynchronous messaging,\n IT strategy, and cloud.", "znaku_textu": 8096, "slov": 1436, "odkazu": 45, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 15:35:51", "sha256": "d09b90d6d458c9688a6563c77cb6819c0a0e3db98087711b383c87d12871eb90", "hloubka": 4, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://architectelevator.com/blog", "http://amazon.com/o/asin/059652269X/ref=nosim/enterpriseint-20", "https://twitter.com/share", "https://twitter.com/ghohpe", "https://leanpub.com/37things"]} {"url": "http://www.enterpriseintegrationpatterns.com/ramblings/74_messaging.html", "titulek": "What Does It Mean to Use Messaging? - Enterprise Integration Patterns", "h1": "What Does It Mean to Use Messaging?", "popis": "I was recently asked to help a team decide whether they should use messaging", "klicova_slova": "", "kanonicka": "", "jazyk": "en_US", "robots_meta": "", "og": {"og:type": "article", "og:locale": "en_US", "og:site_name": "Enterprise Integration Patterns", "og:title": "What Does It Mean to Use Messaging?", "og:description": "I was recently asked to help a team decide whether they should use messaging", "og:url": "https://www.enterpriseintegrationpatterns.com/ramblings/74_messaging.html"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "What Does It Mean to Use Messaging?"}, {"uroven": 2, "text": "Transport Mechanism"}, {"uroven": 2, "text": "Programming Model"}, {"uroven": 2, "text": "Event-sourced Applications"}], "markdown": "Gregor's Ramblings\n\n---\n\n# What Does It Mean to Use Messaging?\n\nFEB 17, 2010\n\nFind my posts on IT strategy, enterprise architecture, and digital transformation\n at [ArchitectElevator.com](https://architectelevator.com/blog).\n\nI was recently asked to help a team decide whether they should use messaging. Of course,\n I have not forgotten what I learned during many years in consulting: the consultant\n always answers \"it depends.\" A good consultant can tell you what the answer depends\n on. And a truly great consultant can convince you that you are asking the wrong question\n in the first place.\n\nWithout hesitation, I told the team that they are asking the wrong question. Messaging\n is not an all/or nothing decision, but one that happens at many different levels.\n With the limited time I had, I concluded that messaging has a place in at least three\n levels. There may well be more.\n\n- Transport Mechanism\n- Programming Model\n- Event-sourced Applications\n\n## Transport Mechanism\n\nThe first usage of messaging is as a transport mechanism in distributed systems. This\n is the messaging as we described it *EIP*. Using messaging in this context has many advantages as we outlined in our introduction:\n\n- *Remote Communication* . Messaging enables separate applications to communicate and transfer data.\n- *Platform/Language Integration* . A messaging system can be a universal translator between the applications that works\n with different languages and platforms.\n- *Asynchronous Communication* . Messaging enables a send and forget approach to communication. The sender does not\n have to wait for the receiver to receive and process the message; it does not even\n have to wait for the messaging system to deliver the message.\n- *Variable Timing* . Asynchronous communication allows the sender fire off requests to the receiver\n at its pace, and for the receiver to consume the requests at its own different pace.\n This allows both applications to run at maximum throughput and not waste time waiting\n on each other.\n- *Throttling* . A problem with remote procedure calls is that too many of them on a single receiver\n at the same time can overload the receiver. This can cause performance degradation\n and even cause the receiver to crash. Asynchronous communication enables the receiver\n to control the rate at which it consumes requests, so as not to become overloaded\n by too many simultaneous requests. The adverse effect on callers caused by this throttling\n is minimized because the communication is asynchronous, so the callers are not blocked\n waiting on the receiver.\n- *Reliable Communication* . Messaging provides reliable delivery because it can use a store and forward approach\n to transmitting messages with automatic retry.\n- *Disconnected Operation* . Some applications are specifically designed to run disconnected from the network,\n yet to synchronize with servers when a network connection is available. Messaging\n is ideal for these applications.\n- *Mediation* . A messaging system acts as a mediator, as in the Mediator pattern [GoF]. For example,\n if an application becomes disconnected from the others, it need only reconnect to\n the messaging system, not to all of the other messaging applications.\n\n## Programming Model\n\nMessaging is not limited to physically distributed systems. It can be just as useful\n as a programming model to define the interaction between different parts of an application.\n Naturally, applications that include concurrent processing benefit the most from messaging.\n This fact is reflected by programming languages that are aimed at concurrent programming,\n such as [Erlang](http://ftp.sunet.se/pub/lang/erlang/) (see a also the [Functions + Messages + Concurrency = Erlang](http://www.slideshare.net/siouxhotornot/presentatie-joe-armstrong) presentation by Joe Armstrong) or more recently [Go](http://golang.org/). Go includes [channels](http://golang.org/doc/effective_go.html#sharing), which can be buffered (allowing for asynchronous communication) or unbuffered (allowing\n for sync points). I am hopelessly behind on checking out Go, but I hope to get to\n play with it one of these days.\n\nEven though latency or unreliable communication are typically less of a concern in\n a non-distributed system, these systems share some of the benefits of a distributed\n message-based system. On top of the list is likely the simplified interaction model.\n Sending (one-way) messages to other components makes for a clear separation and often\n provides a more convenient programming model than threads. Message-oriented API's\n steer towards a data flow architecture as opposed to threads, where the control flow\n tends to stand in the foreground. What better suits your application depends, but\n it's good to consider both options.\n\n## Event-sourced Applications\n\nSo far we looked at messaging at the infrastructure (plumbing) and API layers. But\n a quite different use of messaging can be found the application domain layer. If all\n interactions with your domain layer occur through messages (or events – let's postpone\n the discussion about the difference), you can gain some unique features that would\n be otherwise difficult to obtain. The best description I have seen is Martin Fowler's\n [event-sourced application](http://martinfowler.com/eaaDev/EventSourcing.html).\n\nThe short version is that by representing all system updates as a stream of messages\n over time, you are able to go back in time and play back a modified stream of events,\n thus allowing you to perform \"what if\" calculations. A prime example is payroll computation.\n Let's assume an error was made during data entry, causing a worker to report an incorrect\n number of hours worked. The system recorded 39 hours worked, but the person actually\n worked 41 hours. By the time the error is detected, the pay period has already been\n closed and (incorrect) wages have been paid. The system is now tasked with computing\n how much the employee should have been paid. This may not be as simple as computing\n 2 hours' wage and adding it to the next payroll because a number of business rules\n may impact the amount to be paid. For example, by working 41 hours the employee may\n be eligible to be paid overtime, or to receive additional vacation or comp-time. Computing\n the differential can therefore be quite complicated. However, resetting the system\n to a \"snapshot\" to the previous pay period and replaying the correct series of events\n (including the actual hours worked) can compute the correct system state, taking into\n account all business rules. Resolving the error is now reduced to checking the difference\n between the system state based on the correct message stream versus the system state\n based on the actual, but incorrect message stream.\n\nFinancial systems are often based on a similar concept: instead of simply setting\n the account value to $100, each change (aka message) is logged in the system. This\n way one can review what transactions (credits and debits) led to the current system\n state (the account balance).\n\nAs we can see, using messaging is not an all-or-nothing proposition. It can span different\n layers, such as transport, API, or the business domain layer. But even within one\n layer, it's not binary either. For an interesting discussion, see Udi Dahan's [blog post on CQRS](http://www.udidahan.com/2009/12/09/clarified-cqrs/), aka Command-Query Responsibility Segregation. In this architectural model, updates\n are performed via [command messages](../CommandMessage.html), whereas reads are performed synchronously.\n\n*Share:*\n\n*Follow:* [Follow @ghohpe](https://twitter.com/ghohpe) [SUBSCRIBE TO FEED](../ramblings.rss)\n\n*More On:* [MESSAGING](/ramblings_messaging.html) [ALL RAMBLINGS](../ramblings.html)\n\nGregor is a cloud architect and author. He is a frequent speaker on asynchronous messaging,\n IT strategy, and cloud.", "znaku_textu": 7811, "slov": 1173, "odkazu": 50, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 15:35:50", "sha256": "0c9f77ceac0eebdbfa1b4e4e429b8ae10ab695f31149292214a177ae8d17b551", "hloubka": 4, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://architectelevator.com/blog", "http://ftp.sunet.se/pub/lang/erlang/", "http://www.slideshare.net/siouxhotornot/presentatie-joe-armstrong", "http://golang.org/", "http://golang.org/doc/effective_go.html", "http://martinfowler.com/eaaDev/EventSourcing.html", "http://www.udidahan.com/2009/12/09/clarified-cqrs/", "https://twitter.com/share", "https://twitter.com/ghohpe", "https://leanpub.com/37things"]} {"url": "http://www.enterpriseintegrationpatterns.com/ramblings/75_ddd.html", "titulek": "DDD - Diagram Driven Design - Enterprise Integration Patterns", "h1": "DDD - Diagram Driven Design", "popis": "Drawing a picture turns out to be a useful system design technique", "klicova_slova": "", "kanonicka": "", "jazyk": "en_US", "robots_meta": "", "og": {"og:type": "article", "og:locale": "en_US", "og:site_name": "Enterprise Integration Patterns", "og:title": "DDD - Diagram Driven Design", "og:description": "Drawing a picture turns out to be a useful system design technique", "og:url": "https://www.enterpriseintegrationpatterns.com/ramblings/75_ddd.html"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "DDD - Diagram Driven Design"}, {"uroven": 2, "text": "Presentation Skills – More than a Wide Stance"}, {"uroven": 2, "text": "Diagramming as Design Technique"}, {"uroven": 2, "text": "No Silver Bullet(point)"}], "markdown": "Gregor's Ramblings\n\n---\n\n# DDD - Diagram Driven Design\n\nMAR 22, 2010\n\nFind my posts on IT strategy, enterprise architecture, and digital transformation\n at [ArchitectElevator.com](https://architectelevator.com/blog).\n\nA few years ago, the [Enterprise Architecture Summit](34_cb.html) in Crested Butte once again proved that sticking a bunch of geeks into a remote town\n and injecting alcohol into the mix can lead to very impressive results. In our case,\n it was an A-Z list of 26 new development strategies, starting with ADD – Activity\n Driven Development and ending on ZDD- Zero Defect Development. DDD was allocated in\n honor of Eric Evans as \"Domain Driven Design\". However, I have become convinced that\n another DDD could compete with this choice: Diagram Driven Design.\n\nWhen I talk about Diagram Driven Design, I don’t mean generating code from UML diagrams.\n As I declared before, I am pretty firmly rooted in the [UML as Sketch](http://martinfowler.com/bliki/UmlAsSketch.html) camp. And if people don't give too much about my opinion, I simply quote Grady Booch,\n who remarked that \"The UML was never intended to be a programming language.\" Instead,\n I am talking about a picture that conveys one or more important concepts -- the proverbial\n big picture instead that does not get caught up in details. So you could also call\n what I am about to propose Sketch Driven Development and knock off two letters of\n the development alphabet.\n\n## Presentation Skills – More than a Wide Stance\n\nI recently created and taught a class on presentation skills for engineers. The presentation\n starts with the usual ideas of using strong, impactful visuals, inspired for example\n by books like [Presentation Zen](http://www.amazon.com/exec/obidos/ASIN/0321525655/enterpriseint-20). [iStockPhoto](http://www.istockphoto.com), referenced in that book, turned out to be a good place to invest fifty bucks (beware\n of the free offer – the selection of free images is very limited. Also keep in mind\n that your pre-paid credits expire after one year). I now have high-resolution graphics\n of confident managers, fuel gages indicating that your mileage may indeed vary, shoes\n that apparently do not fit all, and so on. Still, however impactful fancy graphics\n may be, for most technical presentations a wide stance, deep voice, and Steve Jobs-like\n hand gestures (turtleneck optional) are unlikely to cut it. Instead, you need meat:\n what design alternatives did the team have? How do they differ? What are the main\n building blocks of the systems and how do they interact? How did you track down that\n performance bottleneck and what can we learn from it? When Garr Reynolds came to Google\n to give a talk, he acknowledged that technical discussions often require detailed\n diagrams or even snippets of source code. He suggested to provide such detailed information\n in form of a hand-out instead of including it in visual aids. While that’s sound advice,\n your technical presentation will likely be composed of one or more of the following:\n\n- Bullet points\n- Source code\n- Diagrams\n\nTufte already [put bullet points through the grinder](http://www.wired.com/wired/archive/11.09/ppt2.html). According to a recent Tweet, every time you use a bullet point, Ed Tufte kills a\n kitten. Let's hope not. Finally, Death by PowerPoint was immortalized by none less\n than [Dilbert](http://dilbert.com/strips/comic/2000-08-16/) as early as 2000. You also can't fit a lot of source code on a slide, especially\n if you are using a verbose language with checked exceptions. That leaves you with\n diagrams. I believe that diagrams are by far the most useful out of the three, both\n in a technical presentation or a hand-out.\n\nHowever, it's reasonably safe to say that the visual damage caused by Visio's default\n 10 point font size and skimpy line width coupled with poor user judgment is not far\n behind that of endless bullet points. Once again, it's not the tool that is the main\n issue here, but how it's being used. Visio's default settings make for fine engineering\n schematics, but are not suitable to project the proverbial big picture on the wall.\n\nThis insight prompted me to create a sequel to my presentation skills class, which\n explains how to create good technical diagrams. The module covers basics like legibility\n (sans serif fonts of decent size), good color contrast, and alignment, before explaining\n how to maintain visual balance, use a consistent visual vocabulary, or omit unnecessary\n details to emphasize the essentials. While I was putting this presentation together,\n I recognized that many of the techniques that make a good diagram also contribute\n to good system design in general. Diagram-Driven Design can in fact improve your application\n architecture! Let's see how.\n\n## Diagramming as Design Technique\n\n**Visual Vocabulary and Viewpoints**\n\nGood diagrams use a consistent visual language. A box means something (for example,\n a component, a class, a process), a solid line something else (maybe a build dependency,\n data flow, or an HTTP request), and a dashed line something else yet. No, you don’t\n need a [MOF](http://www.omg.org/mof/) and rock-solid semantics, but you need to have an idea what you are depicting how.\n Picking this visual vocabulary is important to define the aspect or architectural\n viewpoint of the system you are going to concern yourself with. Are you going to talk\n (or draw) about source code dependencies, run-time dependencies, call trees, or allocation\n of processes to machines? Good design is often tied to the ability to think in abstractions.\n Diagrams are personified abstractions and can be instrumental in this process.\n\n**Limit Levels of Abstraction**\n\nWhen reading technical documents, one of the most frequent problems I encounter is\n a wild mix of different levels of abstraction (the same problem can be found in source\n code). For example, someone may explain the way configuration data affects a system’s\n behavior like this:\n\n> The system configuration is stored on an XML file. The “timetravel” entry can be set\n> to either true or false. The file is read from the local file system or alternatively\n> from the network. If it’s read from the network, you need to have NFS access. The\n> parser is a SAX parser because it’s more memory efficient than a DOM parser. Application\n> code accesses these settings from the “Config” class. This class is a singleton because...\n\nIn these few sentences we learn about the file format, project design decisions, implementation\n detail, performance optimizations and what not. It’s rather unlikely that a single\n reader is actually interested in this smörgåsbord of facts. Drawing a picture forces\n us to clean up our thinking, lest we run out of paper. Do we depict the data flow,\n the class structure, or implementation detail? While a picture does not automagically\n make this problem go away, it puts it in your face much more than a meandering chain\n of prose, which from afar may not look all that bad. A well-known German proverb proclaims\n that “Papier ist geduldig” (paper is patient), meaning paper is unlikely to object\n to what garbage you scribble on it. Diagrams tend to be a little less patient, and\n expose a wild mix of metaphors and abstractions more easily.\n\nWith any diagram or description, it's good to remember that it's simply a model of\n the system, not the actual system. So it's OK to use a bit of artistic license. The\n opening paragraph of \"Data and Reality\" aptly reminds us that \"rivers do not have\n dotted lines in them and freeways are not painted red\".\n\n**Reducing to the Essence**\n\nLimiting the levels of abstraction is only one form of mental scope control. You may\n have seen the billboard-size database schema posters, which include every single table\n and are impressive, but fairly useless, especially when shrunk down to fit on a single\n presentation slide. Omitting unimportant detail to concentrate on what's relevant\n to your message can make a huge difference here.\n\n**Balance and Harmony**\n\nLimiting the levels of abstraction and scope does not yet guarantee a useful diagram.\n Good diagrams lay out important entities such that they are logically grouped, relationships\n become naturally clear, and an overall balance and harmony emerges. If such a balance\n does not emerge, it may just be that your system does not have one. I once sat down\n to review a relative small module of code that consisted of a rather entangled mess\n of classes and relationships. When we tried to document this module, we just could\n not come up with a half-decent way to sketch up what's going on. After a lot of sketching\n and erasing we came up with a picture that resembled a data processing pipeline.\n We subsequently refactored the entangled code to match this new system metaphor.\n\n**Degrees of Uncertainty**\n\nWhen we look at a piece of code, we can always figure out *what* was done, but it's much harder to understand *why* it was done. It can be even more difficult to understand which decisions were made\n consciously and which ones simply happened. When creating diagrams, we have more tools\n at hand to express these nuances: for example, you can use a hand-drawn sketch instead\n of an engineering drawing to convey that the picture is the basis for discussion as\n opposed to the ultimate truth. Many books use this technique effectively, including\n Eric Evans' Domain-driven Design.\n\n**Diagrams are Art**\n\nDiagrams can (and should) be beautiful – little works of art, even. Writing can certainly\n also be artistic, but looking for that beautiful prose in a technical document is\n bound to be a rather disappointing exercise. I am a firm believer that system design\n and architecture has a close relationship to art and (non-technical) design. I do\n have a copy of [Machine Beauty](http://www.amazon.com/exec/obidos/ASIN/046504316X/enterpriseint-20) firmly planted on my bed side table, but learning purely by osmosis has so far not\n been successful, so I'll have to come back to that topic in the future.\n\nBoth visual and technical design start with a blank slate and virtually unlimited\n possibilities. Decisions are often influenced by multiple, usually conflicting forces.\n Good design resolves these forces to create a functional solution, which attains a\n good balance and some degree of beauty. This may explain why many of my friends who\n are great (software) designers and architects have an artistic vein or at least interest.\n\n## No Silver Bullet(point)\n\nAs always, bad diagrams outnumber good diagrams by some margin. Bad diagrams are not\n a useful design technique. They may not even be useful, period. Drawing a lame picture\n will not make your poor design any better. Likewise, beautiful [marchitecture](http://en.wikipedia.org/wiki/Marchitecture) diagrams usually have little do with the actual system being built, and are also\n of limited value (drawing up the real system and placing it side-by-side with the\n marchitecture probably does have some value).\n\nIn technical discussions I have observed many occasions where drawing a diagram has\n greatly improved a conversation and the resulting design decisions. If you are unable\n to draw a good diagram (and it isn't due to lack of skill), it may just be because\n your actual system structure is nothing worth showing to anyone.\n\n*Share:*\n\n*Follow:* [Follow @ghohpe](https://twitter.com/ghohpe) [SUBSCRIBE TO FEED](../ramblings.rss)\n\n*More On:* [DESIGN](/ramblings_design.html) [MODELING](/ramblings_modeling.html) [WRITING](/ramblings_writing.html) [ALL RAMBLINGS](../ramblings.html)\n\nGregor is a cloud architect and author. He is a frequent speaker on asynchronous messaging,\n IT strategy, and cloud.", "znaku_textu": 11629, "slov": 1839, "odkazu": 52, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 15:35:26", "sha256": "d72edb07a5b8a47ae3a9c29c5de63dfb446641976250d05882985db41d81c7c6", "hloubka": 4, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://architectelevator.com/blog", "http://martinfowler.com/bliki/UmlAsSketch.html", "http://www.amazon.com/exec/obidos/ASIN/0321525655/enterpriseint-20", "http://www.istockphoto.com/", "http://www.wired.com/wired/archive/11.09/ppt2.html", "http://dilbert.com/strips/comic/2000-08-16/", "http://www.omg.org/mof/", "http://www.amazon.com/exec/obidos/ASIN/046504316X/enterpriseint-20", "http://en.wikipedia.org/wiki/Marchitecture", "https://twitter.com/share", "https://twitter.com/ghohpe", "https://leanpub.com/37things"]} {"url": "http://www.enterpriseintegrationpatterns.com/ramblings/76_explaining.html", "titulek": "Explaining Stuff - Enterprise Integration Patterns", "h1": "Explaining Stuff", "popis": "At a recent presentation, Martin Fowler introduced himself as a guy \"who is good at explaining things\"", "klicova_slova": "", "kanonicka": "", "jazyk": "en_US", "robots_meta": "", "og": {"og:type": "article", "og:locale": "en_US", "og:site_name": "Enterprise Integration Patterns", "og:title": "Explaining Stuff", "og:description": "At a recent presentation, Martin Fowler introduced himself as a guy \"who is good at explaining things\"", "og:url": "https://www.enterpriseintegrationpatterns.com/ramblings/76_explaining.html"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Explaining Stuff"}, {"uroven": 2, "text": "High-performance Computing Architectures for Executives"}, {"uroven": 2, "text": "Build a ramp, not a cliff"}, {"uroven": 2, "text": "First, create a language"}, {"uroven": 2, "text": "Consistent level of detail"}, {"uroven": 2, "text": "To want I would have liked, but to be allowed I didn't dare"}], "markdown": "Gregor's Ramblings\n\n---\n\n# Explaining Stuff\n\nAUG 30, 2014\n\nFind my posts on IT strategy, enterprise architecture, and digital transformation\n at [ArchitectElevator.com](https://architectelevator.com/blog).\n\nAt a recent presentation, Martin Fowler introduced himself as a guy \"who is good at\n explaining things\". While this certainly has a touch of British Understatement™, it\n also highlights a critically important but rare skill in IT. As technology invades\n all parts of personal and professional lives, causing companies to absolutely depend\n on software and systems, decision makers often can no longer keep track of technical\n details. While no business executive is expected to code a solution, complete ignorance\n of technological evolution and capabilities undoubtedly leads to missed business opportunities\n or unpleasant surprises of IT systems not being able to deliver what the business\n needs or want.\n\nBecause architects live at the intersection of technology and business, it is their\n responsibility to highlight the ramifications of technical decisions to the extent\n they influence development and operational cost, flexibility, agility, or other factors\n that have a direct impact on the business. As the speed of technology evolution continues\n to increase and technology plays an increasingly critical role in new product innovation,\n the group of \"non-technical\" people who have to concern themselves with the ramifications\n of technological decisions will keep on growing.\n\nBut it's not only \"business types\" who face this challenge. Even architects and developers\n cannot possibly keep up with all aspects of complex solutions, forcing them to rely\n on easy-to-understand, but technically accurate descriptions of architectural decisions\n and their implications.\n\n## High-performance Computing Architectures for Executives\n\nA team of architects was recently asked to define a new hardware and software stack\n for high-performance computing, ranging from workload management to storage, for review\n and approval by a management steering committee. Such a recommendation has to consider\n complete stacks like Hadoop, which includes a file system as well as a workload distribution\n mechanism, as well as stand-alone workload management solutions like LSF that run\n on top of a high performance file system. When looking through the slides, I noticed\n \"POSIX compliance\" as criterion for the selection. While this may be completely appropriate,\n how do you explain to someone who knows little about file systems what this means,\n why it is important, and what the ramifications are?\n\n## Build a ramp, not a cliff\n\nWe like to talk about learning curves as \"steep\", meaning it is tough for newcomers\n to become familiar, or \"ramp up\", with a system or tool. I tend to assume my executive\n audience is quite intelligent (you don't get that high up simply by brown-nosing and\n playing politics), so they can in fact climb up a petty steep learning ramp. What\n they cannot do is climb up a vertical cliff.\n\nBuilding a logical sequence and drawing conclusions in an unfamiliar domain is \"steep\",\n but doable. Being bombarded with out-of-context acronyms or technical jargon constitutes\n a \"cliff\". \"Posix compliance\" is a cliff for most people. Explaining that POSIX is\n an API standard widely adhered to by most Unix distributions, and thus avoids lock-in,\n builds a ramp. More importantly, executives could quickly reason that because they\n standardized on a specific Linux distribution, POSIX compliance may not actually be\n quite as relevant as long as the file system is compatible with that distribution.\n Now you involved someone who is not deeply technical in the decision making without\n using much more than a few words. That is a steep, but passable ramp. The ramp may\n not take the audience into the depths of POSIX versions and Linux flavors, but it\n is sufficient within the scope of the discussion at hand. A steep ramp quickly becomes\n too tiresome if you are trying to have your audience climb up to the peak of Mt. Everest,\n so think about how high (or deep) you need your audience to go. Details about POSIX\n history and LSB are not material to the decision at hand, so you should omit them.\n\n## First, create a language\n\nWhen preparing such conversations I tend to use a two-step approach: first I set out\n to establish a basic mental model combined with some vocabulary. Once equipped with\n this, the audience is able to reason in the problem space and to discern the relevance\n of parameters onto the decision. The mental model does not have to be anything formal,\n it merely has to give the audience a way to make a connection between the different\n elements that are being described.\n\nIn the file system example above I would first describe how file access is composed\n of a stack ranging from hardware (i.e. disk), basic block storage (like a SAN) to\n file systems and ultimately the operating system and the applications on top. This\n does not even have to occupy half a slide. Then I can use this vocabulary to explain\n that Hadoop is integrated from the application layer down to the local file system\n and disks without any SAN, NAS or the like. This has specific advantages, such as\n low cost, data locality management etc, but requires you to build applications on\n top of this complete stack. In contrast, stand-alone file systems for high-performance\n computing, for example GPFS or pNFS, either build on top of standard file systems\n or provide \"adapters\" that make the proprietary file system available through standard\n API's. Now this is where the argument of POSIX compliance adds some value, as the\n audience can now understand why it is important and that Hadoop HDFS does not provide\n this feature.\n\n## Consistent level of detail\n\nWhen creating such a line of reasoning determining the appropriate level of detail\n is difficult. For example, we pretended \"POSIX\" is a single thing when in reality\n there are many different version and components, the Linux Standard Base etc. The\n ability to draw the line at roughly the right level of detail is an important skill\n of an architect. Many developers or IT specialists will consider all this detail terribly\n obvious and have a difficult time refraining from inundating their audience with irrelevant\n jargon.\n\nAs with any document or presentation, drawing the line at the right level of detail\n requires you to know your audience. If your audience is mixed, building a good ramp\n is ever more important as it allows you to catch up folks less familiar with the details\n without boring the ones who are. The highest form of creating the ramp is such that\n audience members already familiar with the subject matter appreciate your way of explaining\n it despite not having learned new facts. This is tough to achieve, but a noble goal\n to aim for.\n\nGetting the level of detail \"just right\" is usually a crapshoot, even if you do know\n the audience. At least as important, though, is to have a consistent level of detail.\n If you describe high-level file systems on slide one and then dive into bit encoding\n on magnetic disks in slide two, you are almost guaranteed to either bore or lose your\n audience. Therefore, strive to find a line that provides some amount of cohesion for\n the reasoning required to discern the architectural decision at hand.\n\n## To want I would have liked, but to be allowed I didn't dare\n\nThis is my poor translation of Karl Valentin's famous quote \"Mögen hatt ich schon\n wollen, aber dürfen habe ich mich nicht getraut\", which remind me of the biggest challenge\n in explaining technical matter: too many architects believe their audience will never\n \"get\" their explanations anyway or will consider them a gearhead unfit for management\n for trying to do so. Others go a step further and actually prefer to confuse management\n with disconnected jargon so that their \"decisions\" (in fact, often simply preferences\n or vendor recommendations) are not unnecessarily put into question.\n\nI have a very critical view of such behavior. Your role as an architect is to get\n a broad audience to understand the ramifications of decisions and assumptions that\n were made. After all, this is where most of the biggest problems pop up. For example,\n if a few years later an IT system can no longer serve the business needs, it is often\n due to a constraint or an invalid assumption that was made but never clearly communicated.\n Therefore, communicating decisions and trade-offs clearly protects both you and the\n business.\n\n*Share:*\n\n*Follow:* [Follow @ghohpe](https://twitter.com/ghohpe) [SUBSCRIBE TO FEED](../ramblings.rss)\n\n*More On:* [WRITING](/ramblings_writing.html) [ALL RAMBLINGS](../ramblings.html)\n\nGregor is a cloud architect and author. He is a frequent speaker on asynchronous messaging,\n IT strategy, and cloud.", "znaku_textu": 8803, "slov": 1415, "odkazu": 43, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 15:35:49", "sha256": "84ee6bcf4a365be4f5f97f5654eae658d7348e9b4a41b254d3d3426e2090f308", "hloubka": 4, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://architectelevator.com/blog", "https://twitter.com/share", "https://twitter.com/ghohpe", "https://leanpub.com/37things"]} {"url": "http://www.enterpriseintegrationpatterns.com/ramblings/77_writing.html", "titulek": "Writing for Busy People - Enterprise Integration Patterns", "h1": "Writing for Busy People", "popis": "One advantage of working for a relatively large organization is that I get to do a little more writing again", "klicova_slova": "", "kanonicka": "", "jazyk": "en_US", "robots_meta": "", "og": {"og:type": "article", "og:locale": "en_US", "og:site_name": "Enterprise Integration Patterns", "og:title": "Writing for Busy People", "og:description": "One advantage of working for a relatively large organization is that I get to do a little more writing again", "og:url": "https://www.enterpriseintegrationpatterns.com/ramblings/77_writing.html"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Writing for Busy People"}, {"uroven": 2, "text": "Quality vs. Impact"}, {"uroven": 2, "text": "\"In the hand\" - First Impressions Count"}, {"uroven": 2, "text": "A good paper is like \"Shrek\""}, {"uroven": 2, "text": "Making it easy for the Reader"}, {"uroven": 2, "text": "How do you spell \"hierarchy\"?"}, {"uroven": 2, "text": "In der Kuerze liegt die Wuerze"}, {"uroven": 2, "text": "Writer's workshop"}, {"uroven": 2, "text": "Producing Paper"}, {"uroven": 2, "text": "Acknowledgment"}], "markdown": "Gregor's Ramblings\n\n---\n\n# Writing for Busy People\n\nSEP 21, 2014\n\nFind my posts on IT strategy, enterprise architecture, and digital transformation\n at [ArchitectElevator.com](https://architectelevator.com/blog).\n\nOne advantage of working for a relatively large organization is that I get to do a\n little more writing again. Not because I have spare time, but because in times of\n rapid change, communication across a large audience is critically important. It turns\n out, short papers are a good way to achieve that and my brief, but accurate technical\n position / decision papers have become a trademark of my architecture group (don't\n worry, we architects produce more than just paper).\n\nCorrespondingly, one of my daily struggles is to convince others to write as well\n and to coach them to become better writers. In a sense, this forces me to transport\n what I know about writing from purely procedural knowledge, i.e. I know how to do\n it, to declarative knowledge, i.e. being able to understand why it is done and to\n describe to others how to do it.\n\nWhile this rambling's title is a pun on the popular books \"Japanese for busy People\",\n it intentionally implies an ambiguity that we are both writing for a busy audience,\n but are busy authors as well.\n\n## Quality vs. Impact\n\nWriting is a tough business because writing takes so much more effort than reading,\n but the written word has distinct advantages over the spoken word:\n\n1. it scales: you can address a large audience without gathering them all in one room\n (podcasts admittedly can also accomplish that)\n2. it's fast: people read 2-3 times faster than they can listen\n3. it can be easily searched or versioned.\n\nConsequently, writing pays off once you have a large (or important) enough audience.\n The catch is that while you can to some extent force people to (at least pretend to)\n listen to you, it's much harder to force anyone to read your stuff. I always remind\n writers that \"the reader is by no means required to turn the page. He or she decides\n based on what they read so far.\" Hey, I am writing this only in the hope that people\n will read it because they find it useful.\n Assuming the topic and focus of the paper are correct, i.e. the readership has a fundamental\n interest in reading the paper, I have repeatedly observed a classic non-linear relationship\n between the quality of writing / editing and the actual readership, which is a good\n proxy metric for the impact, or the \"pay-off\" of writing a technical paper. If the\n paper does not meet a minimum quality bar, e.g. it is verbose, poorly structured,\n full of typos, or displayed in some ridiculous, difficult to read font, people won't\n read it at all, meaning impact is near zero. I call this the \"trash bin\" zone to make\n the outcome blatantly obvious. You may euphemize it to \"shelfware zone\", but the impact\n remains the same: zero. Once the paper reaches a certain quality threshold, people\n will in fact read at least part of the paper and impact starts building. As so often,\n additional quality initially brings rapid improvement, but then quickly tapers off\n as it approaches the infamous \"gold plating\" zone.\n\nThe biggest debate I tend have with my colleagues is where the sweet spot or \"tipping\n point\" is. It will certainly depend on what you are writing and for whom, but in corporate\n communications I posit that it is further to the right than most authors believe.\n Key influencers are very busy people and tend to shy away from anything that is more\n than 5 pages long, unless it is from a high-paid consultancy, in which case they make\n someone else read it. For this impatient readership, clarity of wording and brevity\n are not nice-to-haves: their lack will quickly put your paper quite literally into\n the \"trash bin\" zone. Unsubstantiated claims will do the same: I recently saw an internal\n presentation where the first slide stated \"only technology ABCD has proven to be a\n viable solution\". My immediate response: \"great, show me the proof!\" Sadly, no proof\n existed due to lack of time and funding. These are not wording issues, but fatal flaws.\n I no longer want to see page 2 if I cannot trust page 1.\n\n## \"In the hand\" - First Impressions Count\n\nWhen Bobby and I wrote \"Enterprise Integration Patterns\", the publisher told us about\n the importance of the \"in the hand\" moment, which occurs just when a potential buyer\n picks the book from the shelf and gives a quick glimpse to front and back cover, maybe\n the table of contents, or leaves through the book (back in 2003 people still bought\n books in physical book stores). The reader makes the purchasing decision at this moment,\n not when he or she stumbles on your ingenious conclusion on page 326. This is one\n (but not the only) reason why we included a lot of graphics in our book. About 80%\n of all facing pages contain a piece of graphic: an icon (aka \"Gregorgram\"), a pattern\n sketch, a screen shot, or even a UML diagram. This sends an important message to the\n potential reader that the book is not academic, but pragmatic and approachable.\n\nThe same is true for technical papers to be read not by academics, but by a corporate\n audience. Use a clean layout, insert a handful of expressive diagrams, and, above\n all, keep it short! We limit our internal papers to 5 pages (at 11pt sans serif font\n this equates to 2000-2500 words, about the length of this rambling), with the inevitable\n occasional exception.\n\nTo assess what a short paper will \"feel\" like to the reader without wasting printer\n paper, I zoom out my wysiwyg editor far enough that all pages appear on the screen.\n I can't read the text anymore, but can see the headings, diagrams, and overall flow,\n e.g. the length of paragraphs and sections. This is exactly what a reader will see\n when flipping through your document and deciding whether to start reading. If they\n see and endless parade of bullet points, bulky paragraphs or a giant mess, the paper\n will leave \"the hand\" quite quickly as gravity teleports it into the trash bin.\n\nThis example paper has a lot of diagrams, which is good. However, their visual style\n is somewhat inconsistent. Also, some diagrams are wrapped by text while others are\n isolated. All in all the paper looks interesting, but probably a little too \"busy\".\n\n## A good paper is like \"Shrek\"\n\nMost animated movies have to entertain multiple audiences: the kids who love the characters\n and humor plus the adults who had to shell out thirty bucks to take the family to\n the movies. Great animated movies like \"Shrek\" manage to address both audiences without\n boring the other. They will laugh at different scenes without being distracted by\n each other. Many technical paper also have to address a broad and diverse audience:\n some readers will look for technical detail while others are more interested in key\n decisions and recommendations. While challenging, a few mechanisms can help make everyone\n happy:\n\n- An *executive summary* prefaces the actual paper with the highlights and key decisions. For short papers\n I avoid summaries as I fear they entice readers to not read the rest. If everything\n important can fit into the summary, then why write a whole paper?\n- *Story-telling headings* are a great way to engage readers with very little time while still taking them through\n the whole paper. Imagine your readers only read the headings. Will they get the gist\n of the paper? This implies that headings like \"introduction\" or \"conclusion\" have\n no place in a short paper. Instead, simply state what the context or conclusion are.\n- *Diagrams* can provide a visual anchor for important parts of the paper. Readers who flip through\n may pause at a diagram, so it's good to position them strategically to guide the reader\n to critical sections. Diagrams also help readers who better reason visually than from\n words alone.\n- *Callouts* , i.e. short sections that are offset in a different font or color, indicate to the\n reader that additional detail is provided, but that it can be safely skipped without\n losing the thread of thought. Bobby and I used them in EIP when we could not agree\n whether to include or remove a section which provided \"color commentary\".\n\n## Making it easy for the Reader\n\nAfter a good first impression, your readers will start reading your paper. Because\n trying to condense all good advice on technical writing into a blog entry would be\n preposterous, I like to refer my colleagues, who are mostly non-native speakers, to\n the book [Technical Writing and Professional Communication for Non-Native Speakers](http://www.amazon.com/exec/obidos/ASIN/007030825X/enterpriseint-20) (it appears out of print, but you can fetch a used copy for a few Dollars - I only\n have the second edition from 1991, so I can't comment on how similar it is to the\n first edition). It covers a lot of ground from the very basics, but I like the sections\n on parallelism and paragraph structure best because the fast reader benefits significantly\n from these simple tricks.\n\nParallelism in lists demands that all list entries follow a similar grammatical structure,\n e.g. all start with a verb or an adjective. A counter example would be:\n\n*System A is preferred because:*\n\n- *It is faster*\n- *Cost is also important*\n- *Flexibility*\n- *Stable*\n- *Don't forget to look at long-term evolution*\n\nYou are simply using too many of your reader's brain cells just to parse the text\n instead of focusing on your message. Parallelism is not only useful in lists but also\n in sentences, e.g. when drawing analogies or contrasting. [Technical Writing and Professional Communication for Non-Native Speakers](http://www.amazon.com/exec/obidos/ASIN/007030825X/enterpriseint-20) includes many good examples of this.\n\nParagraphs should focus on a single topic and introduce that topic right at the beginning,\n like this very paragraph: readers can glean that this paragraph is about paragraphs\n even if they only read the first word. They can also rest assured that I don't start\n talking about lists or grammar halfway through, so if they feel they already know\n how to write a good paragraph, they can safely skip this one. This also implies that\n \"It is further important to note that...\" makes for a very poor paragraph opening.\n\n## How do you spell \"hierarchy\"?\n\nFor solid document structure I tend to point colleagues to [The Pyramid Principle](http://www.amazon.com/exec/obidos/ASIN/0273710516/enterpriseint-20), even though I jest that the author must have been unsure how to spell \"hierarchy\"\n and safely opted for \"pyramid\" instead -- to me the logic inside the books is clearly\n about hierarchy of content. Pyramids stand in Egypt. This book tackles another enormous\n challenge in technical writing: your subject is very unlikely to be single-dimensional,\n but your text has to be 100% linear: one word after the other.\n\nWhile somewhat over-hyped and over-priced, I do appreciate the book's sections on\n order. The author highlights that every list or grouping should have an order, which\n is either by time (chronological), structure (relationships), or ranking (importance).\n \"How is this ordered?\" has become a standard question when I review documents including\n a list or grouping.\n\nAnother pet peeve of mine is the usage of the word \"this\" as a stand-alone reference.\n As programmers we understand the dangers of dangling pointers and NPE's, but many\n seem not to apply the same rigor to writing. Too many sentences simply state that\n \"this is a problem\" without being clear what \"this\" actually refers to.\n\n## In der Kuerze liegt die Wuerze\n\nIn technical writing, your readers are not out to appreciate your literary creativity,\n but to understand what you are saying. This implies that less is more when it comes\n to word count. While Walker Royce's book [Eureka!: Discover and Enjoy the Hidden Power of the English Language](http://www.amazon.com/exec/obidos/ASIN/1600379443/enterpriseint-20) spends a good part of the book musing about English words, the advice on brevity\n and editing is sound and the citation from [Zinsser](http://www.amazon.com/exec/obidos/ASIN/0060891548/enterpriseint-20) on the usage of \"I might add,\" \"It should be pointed out,\" and \"It is interesting\n to note.\" fitting: If you might add, add it. If it should be pointed out, point it\n out. If it is interesting to note, make it interesting. The book gives many concrete\n suggestions on how to replace long-winded expressions with single words.\n\nIn our team's internal editing cycles we routinely cut word count by 20-30% despite\n including additional material or previously missing detail. To the first-time author\n this may be shocking, but Saint-Exupéry's adage that \"perfection is achieved not when\n there is nothing more to add, but when nothing is left to take away\" is especially\n true for technical papers. When this type of cruel editing was first bestowed upon\n me by a professional copy editor I felt that the document no longer sounded \"like\n me\". Over the years I have come to appreciate that being crisp and accurate is a great\n way to have a document sound like me.\n\n## Writer's workshop\n\nThe most effective vehicle for improving technical papers is to hold a writer's workshop,\n see this [short description](http://www.cs.wustl.edu/~schmidt/writersworkshop.html) or this [long description](http://www.dreamsongs.com/Files/WritersWorkshop.pdf) for more detail. Writer's workshops have people read and discuss the paper while\n allowing the author to listen, but not intervene. This simulates what happens with\n a paper in real life. Too often I have to remind authors that we cannot distribute\n them personally with every copy of their paper so that they can explain to the reader\n what was really meant. Because writer's workshops are time-intensive we tend to restrict\n them to papers that have gone through an initial review for comprehensibility, but\n are expected to have a large and diverse audience, justifying the extra effort.\n\n## Producing Paper\n\nProducing high-quality position papers can lead to an unexpected amount of organizational\n head-wind. The word \"perfection\" quickly comes up with an invariably negative connotation.\n Other teams claim that their \"agility\" spares them from any need to produce documentation,\n notwithstanding the fact that those teams have no running code to show either. Agile\n software development places the emphasis on producing working code that is worth reading,\n but multi-year IT strategy plans are unlikely to manifest themselves in code alone.\n This is where a document that is worth reading will provide the most value. Alas,\n such documents seem to be even more difficult to find than good code.\n\n## Acknowledgment\n\nI would like to thank [Olaf Zimmermann](http://www.ifs.hsr.ch/Olaf-Zimmermann.11623.0.html?&L=4) for the fruitful discussion at [ECSA 2014](http://ecsa2014.cs.univie.ac.at/) that inspired me to write down my thoughts on writing for busy people.\n\n*Share:*\n\n*Follow:* [Follow @ghohpe](https://twitter.com/ghohpe) [SUBSCRIBE TO FEED](../ramblings.rss)\n\n*More On:* [WRITING](/ramblings_writing.html) [ALL RAMBLINGS](../ramblings.html)\n\nGregor is a cloud architect and author. He is a frequent speaker on asynchronous messaging,\n IT strategy, and cloud.", "znaku_textu": 15155, "slov": 2458, "odkazu": 51, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 15:35:48", "sha256": "9ebf9d1cea1087460a5d3f7c19bf0ce0c45071613cd524c283ae4679f83ab661", "hloubka": 4, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://architectelevator.com/blog", "http://www.amazon.com/exec/obidos/ASIN/007030825X/enterpriseint-20", "http://www.amazon.com/exec/obidos/ASIN/0273710516/enterpriseint-20", "http://www.amazon.com/exec/obidos/ASIN/1600379443/enterpriseint-20", "http://www.amazon.com/exec/obidos/ASIN/0060891548/enterpriseint-20", "http://www.cs.wustl.edu/~schmidt/writersworkshop.html", "http://www.dreamsongs.com/Files/WritersWorkshop.pdf", "http://www.ifs.hsr.ch/Olaf-Zimmermann.11623.0.html?L=4", "http://ecsa2014.cs.univie.ac.at/", "https://twitter.com/share", "https://twitter.com/ghohpe", "https://leanpub.com/37things"]} {"url": "http://www.enterpriseintegrationpatterns.com/ramblings/78_threelegs.html", "titulek": "The 3 Legs of an Architect - Enterprise Integration Patterns", "h1": "The 3 Legs of an Architect", "popis": "Defining what a software or IT architect is or does is no less challenging than defining software architecture itself", "klicova_slova": "", "kanonicka": "", "jazyk": "en_US", "robots_meta": "", "og": {"og:type": "article", "og:locale": "en_US", "og:site_name": "Enterprise Integration Patterns", "og:title": "The 3 Legs of an Architect", "og:description": "Defining what a software or IT architect is or does is no less challenging than defining software architecture itself", "og:url": "https://www.enterpriseintegrationpatterns.com/ramblings/78_threelegs.html"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "The 3 Legs of an Architect"}, {"uroven": 2, "text": "Skill, Impact, Leadership"}, {"uroven": 2, "text": "The Virtuous Cycle"}, {"uroven": 2, "text": "You spin me right round…"}], "markdown": "Gregor's Ramblings\n\n---\n\n# The 3 Legs of an Architect\n\nDEC 28, 2014\n\nFind my posts on IT strategy, enterprise architecture, and digital transformation\n at [ArchitectElevator.com](https://architectelevator.com/blog).\n\nDefining what a software or IT architect is or does is no less challenging than defining\n software architecture itself. The SEI maintains a [list of software architecture definitions](http://www.sei.cmu.edu/architecture/start/glossary/bibliographicdefs.cfm), yet I have not seen a corresponding list for software architects. One could try\n to skirt the issue by declaring that software architects are the people who make software\n architecture. However, I think that this approach would be missing some important\n aspects of being an architect.\n\n## Skill, Impact, Leadership\n\nWhen I am asked to characterize the seniority of an architect, I resort to a simple\n framework that I believe applies to most high-end professions. A successful architect\n has to stand on 3 \"legs\":\n\n1. Skill is the foundation for practicing architects. Depending on the specialization\n this may include specific technologies or architectures such as Service-oriented Architectures.\n This aspect of being an architect can usually be acquired by taking a course, reading\n a book, or perusing on-line material. Most (but not all) certifications focus on verifying\n skill, partly because verifying skill is more easily mapped to multiple choice questions.\n2. Impact measures how the skill is applied in projects to the benefit of a project or\n a company. Impact can take on many forms from financial gain to cost avoidance to\n reduced time-to-market to the ability to incorporate unforeseen requirements late\n in the product cycle without having to start over.\n3. Lastly, leadership acknowledges that experienced architects should mentor junior architects\n to pass on their knowledge and experience. Thought leadership also furthers the state\n of the field as a whole. This can happen for example through publications, speaking\n engagement, research or blogging.\n\nThis classification maps well to other professional fields such as medicine: after\n studying and acquiring skill, doctors practice and treat patients before they go to\n publish in medical journals and pass their learnings to the next generation of doctors.\n\n## The Virtuous Cycle\n\nWhile the model is rather simple, just as a stool cannot stand on two legs it's important\n to appreciate the balance between all three aspects. Skill without impact is where\n new architects start out as students or apprentices. But soon it is time to get out\n into the world and make an impact. Architects that do not make an impact do not have\n a place in a for-profit business.\n\nImpact without leadership is a great place for a solution architect who is engrained\n in projects. However, without leadership this architect will hit a glass ceiling and\n won't become a thought leader in the field. Many companies don't put enough emphasis\n on nurturing or pushing their architects to this level as they fear any distraction\n from the projects reduces impact and thus will cost them money. As a result, architects\n in these companies plateau at an intermediate level and typically won't lead the company\n to innovative or transformative solutions, which can be a much higher cost. Some companies\n like IBM formalize this aspect of leadership under the category \"give back\": distinguished\n engineers and fellows are expected to \"give back\" to the community inside and outside\n the company.\n\nLikewise, leadership without (prior) impact lacks foundation and may be a warning\n signal for so-called ivory tower architects, which lack any relation to reality. This\n undesirable effect can also happen when the impact stage of an architect lies many\n years or even decades back: the architect may preach methods or insights that are\n no longer applicable to current technologies. While some insights are timeless, others\n age with technology: putting as much logic as possible into the database as stored\n procedures because it speeds up processing is no longer a wise approach as the database\n turns out to be the bottleneck in most modern web-scale architectures. Even more dramatic\n is the misalignment of nightly batch cycles with modern 24/7 real-time processing\n requirements.\n\nThe circle closes when a senior architect mentors junior architects. Because feedback\n cycles in (software) architecture are inherently slow, this process can save new architects\n many years of learning by doing and making mistakes. In the end 10 well-mentored\n junior architects can have much more impact than one senior architect, so this aspect\n is critical to scale the architect skill. As I am continuously trying to recruit architects\n and sense that many other large enterprises are in a similar need of architects, scaling\n the skill set is as important as ever.\n\nMentoring not only benefits the mentee, but also the mentor. The old saying that to\n really understand something you need to teach it to someone else is most true for\n architecture. Likewise, giving a talk or writing a paper requires you to sharpen your\n thoughts, which often leads to renewed insight.\n\n## You spin me right round…\n\nExperienced architects will correctly interpret the 80ies reference to mean that an\n architect does not complete the virtuous cycle just once. This is partly driven by\n ever changing technologies and architectural styles. While a person may be a thought\n leader in relational databases, the same person may acquire skill in NoSQL databases.\n The second time around building skill is likely significantly faster because we can\n build on what we already learned. After a sufficient number of cycles we may in fact\n experience what the curmudgeons always knew: that there is really not much new in\n software architecture and we've seen it all before.\n\nAnother reason to repeat the cycle is that the second time around our understanding\n may be at a much deeper level. The first time around we may have learned how to do\n things, but the second time we may understand why. For example, it is likely no misrepresentation\n that writing [Enterprise Integration Patterns](../eaipatterns.html) is a form of thought leadership. Still, some of the elements such as the pattern\n icons or the decision trees and tables in the [chapter introductions](../MessageRoutingIntro.html) were more accidental than based on deep insight. Only now in hindsight we can we\n understand them as instances of a visual pattern language or pattern-aided decision\n approaches. Thus it's often worth to make another cycle.\n\n*Share:*\n\n*Follow:* [Follow @ghohpe](https://twitter.com/ghohpe) [SUBSCRIBE TO FEED](../ramblings.rss)\n\n*More On:* [ARCHITECTURE](/ramblings_architecture.html) [ALL RAMBLINGS](../ramblings.html)\n\nGregor is a cloud architect and author. He is a frequent speaker on asynchronous messaging,\n IT strategy, and cloud.", "znaku_textu": 6884, "slov": 1059, "odkazu": 46, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 15:35:47", "sha256": "dc91c4cde21d4da7061ce20d654802a70fe6e99bfdec9505d2c31fd8b926d411", "hloubka": 4, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://architectelevator.com/blog", "http://www.sei.cmu.edu/architecture/start/glossary/bibliographicdefs.cfm", "https://twitter.com/share", "https://twitter.com/ghohpe", "https://leanpub.com/37things"]} {"url": "http://www.enterpriseintegrationpatterns.com/ramblings/79_elevator.html", "titulek": "The Architect Elevator - Enterprise Integration Patterns", "h1": "The Architect Elevator", "popis": "Architects frequently play a critical role as connecting and communicating element between multiple parties", "klicova_slova": "", "kanonicka": "", "jazyk": "en_US", "robots_meta": "", "og": {"og:type": "article", "og:locale": "en_US", "og:site_name": "Enterprise Integration Patterns", "og:title": "The Architect Elevator", "og:description": "Architects frequently play a critical role as connecting and communicating element between multiple parties", "og:url": "https://www.enterpriseintegrationpatterns.com/ramblings/79_elevator.html"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "The Architect Elevator"}, {"uroven": 2, "text": "A Missing Link"}, {"uroven": 2, "text": "The Architect Elevator"}, {"uroven": 2, "text": "Not a One Way Street"}, {"uroven": 2, "text": "High-Speed Elevators"}, {"uroven": 2, "text": "Other Passengers"}, {"uroven": 2, "text": "Update: The Lift Boy"}, {"uroven": 2, "text": "Commercial Break: Ride the Elevator with Us!"}, {"uroven": 2, "text": "Colophon"}], "markdown": "Gregor's Ramblings\n\n---\n\n# The Architect Elevator\n\nJAN 15, 2015\n\nFind my posts on IT strategy, enterprise architecture, and digital transformation\n at [ArchitectElevator.com](https://architectelevator.com/blog).\n\n## A Missing Link\n\nArchitects frequently play a critical role as connecting and communicating element\n between multiple parties. Especially in large organizations such communication is\n an important factor: too many parties speak different languages to convey different,\n and often conflicting, objectives. Many layers of management only exacerbate the problem\n as communicating to corporate leadership resembles the \"telephone game\" where a circle\n of kids relays a message one-by-one just to realize at the end that the message has\n completely changed along the way. In the enterprise IT world, the worst case scenario\n happens when people holding relevant information are not allowed to make decisions\n and the decision makers lack relevant information. Not a good state to be in, especially\n in the days where IT has become a driving factor for most types of business.\n\n## The Architect Elevator\n\nArchitects can fill an important void: they work and communicate closely with technical\n staff on projects, but are able to convey technical topics to upper management [without losing the essence of the message](76_explaining.html). Conversely, they understand the company strategy and can translate it into technical\n decisions that support it.\n\nThis is what I call the architect elevator: architects ride the elevator up and down\n to move between the board room and the engine room of a large enterprise. Such a direct\n linkage has become more important than ever: if the board room (or the bridge) believes\n the engines are in reverse and the rudder is turned in hard, but in reality the engines\n are running ahead, major disasters are preprogrammed. This is one reason why (good)\n architects are such a critical asset in the enterprise today.\n\nThe number of floors an architect has to ride in the elevator depends on the organization.\n Flat organizations may not need the elevator at all -- a few flights of stairs are\n sufficient. This may also mean that the up-and-down role of an architect is much less\n critical: if management is keenly aware of the technical reality at the necessary\n level of detail, fewer \"enterprise\" architects are needed. However, classic IT shops\n in large organizations tend to have many, many floors. So many in fact, that a single\n architect elevator may not be able to span all levels. In this case it's OK if a technical\n architect and an enterprise architect meet in the middle and cover their \"half\" of\n the building. The value of the architects in this scenario should not be measured\n by how \"high\" they travel, but by how many floors they span. This is a common mistake\n in large organizations where the folks in the penthouse tend to see only the architects\n in the upper half and assume that they have more value. Conversely, many developers\n or technical architects consider \"enterprise\" architects less useful because they\n don't code. This can be true in some cases -- these architects enjoy life in the\n upper floors so much that they are not keen to take the elevator ever down again.\n But an \"enterprise\" architect who travels half way down the building to meet up with\n technical architects can have a significant value.\n\n## Not a One Way Street\n\nInvariably you will meet folks who ride the elevator, but only once to the top and\n never back down. They enjoy the good view too much and feel that they did not work\n so hard to be still visiting the grimy basement or engine room. Frequently you will\n hear the following comment from these folks: \"I used to be technical\". I often can't\n help but retort: \"I used to be a manager\" (it's true) or \"Why did you stop? Were you\n no good at it\"? If you want to be more diplomatic (and philosophical) about it, cite\n [Metropolis](http://en.wikipedia.org/wiki/Metropolis_%281927_film%29) with the slogan \"the head and the hands need a mediator\". In any case: the elevator\n is meant to be ridden up and down. Eating caviar in the penthouse while the basement\n is flooded is not the way to transform corporate IT.\n\nRiding the elevator up-and-down is also an important mechanism for the architect to\n obtain feedback on decisions. As [before](78_threelegs.html), obtaining feedback on decisions is a general challenge for architects. If by the\n time the architectural decision actually had an impact, the architect is only enjoying\n the view from high up, the dreaded [authority without responsibility](http://c2.com/cgi/wiki?AuthorityWithoutResponsibility) anti-pattern has been reached and all hope for feedback cycles is lost.\n\n## High-Speed Elevators\n\nIn the past IT decisions were fairly far removed from the business strategy: IT was\n pretty \"vanilla\" and the main parameter (or KPI = Key performance Indicator) was cost.\n Nowadays the linkage between business goals and technology choices has become much\n more direct, even for \"traditional\" businesses. For example, the need for faster time\n to market to meet competitive pressures translates into an elastic cloud approach\n to computing which in turn requires applications that scale horizontally and thus\n should be designed to be stateless. Targeted content on customer channels necessitates\n analytical models which are tuned by churning through large amounts of data via a\n Hadoop cluster, which favors local hard drive storage over network storage. The fact\n that in one or two sentences a business need has turned into application design or\n the choice of storage attachment highlights the need for architects to ride the elevator.\n Increasingly they have to take the express elevator, though, to keep up with the pace\n at which business and IT are intertwined.\n\n## Other Passengers\n\nIf you are riding the elevator up and down as a successful architect you may encounter\n other folks riding the elevator with you. You may for example meet business or non-technical\n folks who learned that a deeper understanding of IT is critical to the business. Be\n kind to those folks, take them with you and show them around. Engage them in a dialog\n -- it will allow you to better understand business goals and needs and maybe they\n will take you to some higher floors you have not been to.\n\nYou may also encounter folks who ride the elevator down, look around to pick up ideas\n and buzzwords and take them up, selling them as their own suggestions. We don't call\n these people architects. We call them *corporate opportunists*, who have learned that much ignorance in the penthouse supports a solid \"technical\"\n career without going too deep. More colorful names taken from the animal kingdom,\n inspired mostly by things sucking blood or biting ankles, exist. You may be able to\n convert some of these folks and get them more genuinely interested in what is going\n on in the engine room. You may not succeed, though, and then it's best to maintain\n the prototypical elevator silence, avoiding eye contact by examining every ceiling\n tile in detail. Keep your \"elevator pitch\" for those moments when you have a senior\n exec with you, not a mere messenger.\n\n## Update: The Lift Boy\n\nMe friend [Stefan Tai](https://www.ise.tu-berlin.de/menue/team/stefan_tai_prof_dr-ing/) expanded the elevator analogy by another common pattern: people who ride the elevator\n down, but never really get out of the elevator to interact with people in the engine\n room. Instead they may catch some ideas or vocabulary to take back up. People who\n ride the elevator but don't get out are not called architects. They are called \"lift\n boys\".\n\n## Commercial Break: Ride the Elevator with Us!\n\nAre you frequently riding the architect elevator in a large organization, enjoying\n hands-on work in the \"engine room\" as much as connecting technology evolution to business\n strategy? Do you converse equally well in *DI/IOC* and *TDD* or *PaaS* and *HPC* as you do in *IT Transformation*, *2-Speed Architecture*, and *Business Case*? Then you should consider [joining in my team](https://www.linkedin.com/jobs2/view/136775174)! I am looking for a handful of seasoned IT architects in cloud infrastructure, but\n also in middleware and data architecture, to augment my current team at [Allianz](https://www.allianz.com/en/products_solutions/global_lines/amos/amos.html) in Munich, Germany. The team is just 6 months old, rapidly growing, and has direct\n visibility to the Group and Business unit CIO's as well as all Chief Architects. And\n most importantly, we are a bunch of passionate, smart, and fun folks who are challenging\n and transforming \"big\" IT! Sounds interesting? Here is the [job listing](https://jobs.allianz.com/sap/bc/bsp/sap/zhcmx_erc_ui_ex/?jobId=5581793D097E0700E10080000A670216).\n\n## Colophon\n\nI took the elevator photo inside the [Taipei 101](http://en.wikipedia.org/wiki/Taipei_101) tower elevator, which claims to be world's fastest. The elevator to the exclusive\n and somewhat elusive *Summit 101* club is clearly visible.\n\n*Share:*\n\n*Follow:* [Follow @ghohpe](https://twitter.com/ghohpe) [SUBSCRIBE TO FEED](../ramblings.rss)\n\n*More On:* [ARCHITECTURE](/ramblings_architecture.html) [ALL RAMBLINGS](../ramblings.html)\n\nGregor is a cloud architect and author. He is a frequent speaker on asynchronous messaging,\n IT strategy, and cloud.", "znaku_textu": 9312, "slov": 1448, "odkazu": 52, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 15:35:46", "sha256": "e0cb11189372d24d4302134015505886f51cf9c4cb2f3d28c2f46a810528236c", "hloubka": 4, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://architectelevator.com/blog", "http://en.wikipedia.org/wiki/Metropolis_(1927_film)", "http://c2.com/cgi/wiki?AuthorityWithoutResponsibility=", "https://www.ise.tu-berlin.de/menue/team/stefan_tai_prof_dr-ing/", "https://www.linkedin.com/jobs2/view/136775174", "https://www.allianz.com/en/products_solutions/global_lines/amos/amos.html", "https://jobs.allianz.com/sap/bc/bsp/sap/zhcmx_erc_ui_ex/?jobId=5581793D097E0700E10080000A670216", "http://en.wikipedia.org/wiki/Taipei_101", "https://twitter.com/share", "https://twitter.com/ghohpe", "https://leanpub.com/37things"]} {"url": "http://www.enterpriseintegrationpatterns.com/ramblings/80_syncorswim.html", "titulek": "Sync or Swim - Enterprise Integration Patterns", "h1": "Sync or Swim", "popis": "We were tempted multiple times to extend the EIP icon language, but always felt that simplicity should win over precision", "klicova_slova": "", "kanonicka": "", "jazyk": "en_US", "robots_meta": "", "og": {"og:type": "article", "og:locale": "en_US", "og:site_name": "Enterprise Integration Patterns", "og:title": "Sync or Swim", "og:description": "We were tempted multiple times to extend the EIP icon language, but always felt that simplicity should win over precision", "og:url": "https://www.enterpriseintegrationpatterns.com/ramblings/80_syncorswim.html"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Sync or Swim"}, {"uroven": 2, "text": "Polling vs. Event-driven Consumers"}, {"uroven": 2, "text": "Sink or Swim"}, {"uroven": 2, "text": "Augmenting EIP Icons"}], "markdown": "Gregor's Ramblings\n\n---\n\n# Sync or Swim\n\nFEB 15, 2015\n\nFind my posts on IT strategy, enterprise architecture, and digital transformation\n at [ArchitectElevator.com](https://architectelevator.com/blog).\n\nOur [visual pattern language](../toc.html) has turned out to be a major feature of EIP: what started as an attempt to provide\n an Alexandrian \"sketch\" for each pattern ended up becoming a useful design and communication\n tool. The pattern icons have since been implemented in [Visio and Omnigraffle stencils](../downloads.html), and, thanks to the great folks at [FuseSource](http://fusesource.com) (now Red Hat), compiled into a deck of cards (see right). Also, subsequent pattern\n authors have adopted the idea of defining an iconic language for their patterns, for\n example the [Cloud Computing Patterns](http://www.cloudcomputingpatterns.org/). Lastly, the patterns have also been incorporated into a variety of tools, for example\n the [Fusesource IDE](https://access.redhat.com/documentation/en-US/Fuse_IDE/7.1/html/Introduction_to_Fuse_IDE/files/RiderGSEclipseEditor.html).\n\nWhen talking about tooling, the question often comes up whether it's useful to extend\n or formalize the visual language in a way that facilitates code generation or immediate\n execution. Because we have seen the idea of [visual programming languages go wrong too many times](http://www.jot.fm/issues/issue_2003_01/column1/) we tended to shy away from turning the patterns into a programming language, with\n the notable exception of representing the [patterns as components](16_patternscomponents.html). However, the problems with visual programming may be rooted in the attempt to make\n a *generic* visual language. With messaging being a fairly specific and well defined domain and\n relatively constrained domain, we may just get away with it.\n\n## Polling vs. Event-driven Consumers\n\nEIP defines two patterns that describe how a component consumes and processes events.\n A [Polling Consumer](../PollingConsumer.html) consumes messages at the preferred rate of the application by having the application\n explicitly request the next message. The [Event-driven Consumer](../EventDrivenConsumer.html) on the other hand processes messages as soon as they arrive on the channel. The pattern\n description also mentions the alternative names *synchronous receiver* for the [Polling Consumer](../PollingConsumer.html) and *asynchronous receiver* for the [Event-driven Consumer](../EventDrivenConsumer.html). For example, message processing in the [Polling Consumer](../PollingConsumer.html) happens synchronously with the program execution. We did not detail the synchronous\n or asynchronous aspect for message producers as we assume they are always synchronous,\n meaning they fire messages off at the convenience of the executing program. After\n all, this is one of the benefits of asynchronous messaging: the producer can fire\n off messages at will and the consumer can process them when it feels like doing so.\n If you put the asynchronous channel aside for a moment (and accept somewhat tighter\n coupling), you could connect a synchronous sender directly, i.e. without a queuing\n channel, to an asynchronous receiver: a message created in the context of the producing\n code is processed by the consumer whenever it is received. If both producer and consumer\n are synchronous you do need a buffer or a queue in between as both sides want to produce\n and consume messages at their leisure.\n\n## Sink or Swim\n\nMy former co-worker Ivan Gevirtz described exactly these concepts in his (now somewhat\n dated, but still very relevant) blog post [Sink or swim](http://www.ivanism.com/Articles/SinkorSwim.html), which was inspired by his work in media processing pipelines: \"A side which gets\n told when to act is considered to be asynchronous. It is waiting for the appropriate\n trigger or event to activate it. Otherwise, it is dormant. The side which tells\n another side to act will be called the synchronous side. The synchronous side is\n what determines the timing of the interaction.\"\n\nIvan also defines a visual notation that expresses whether a consumer is synchronous,\n i.e. polling, or asynchronous, i.e. even-driven: the synchronous consumer has a \"nose\"\n and the asynchronous consumer a matching indentation. This visual style makes it clear\n that an asynchronous consumer can only be directly connected to a synchronous producer\n and vice versa. At the very start, I thought assigning the \"nose\" to the synchronous\n consumer is somewhat arbitrary, but if we remind ourselves that a synchronous consumer\n is actively looking for messages from a channel (or another component), the \"nose\"\n is a fitting visual representation: the control flow of this consumer extends \"into\"\n the other component. As long as we assume messages flow left to right, the notation\n feels very natural.\n\n## Augmenting EIP Icons\n\nOne nice property of Ivan's notation is that it overlays nicely with the EIP icons.\n For example, the [endpoint patterns](../MessagingEndpointsIntro.html) are essentially orthogonal to the [routing patterns](../MessageRoutingIntro.html) or [transformation patterns](../MessageTransformationIntro.html), so a single icon could express both aspects: the main function of the pattern and\n the synchronicity of message consumption and generation. We could even think to extend\n the notation to include properties such as whether the endpoint is [transactional](../TransactionalClient.html) or not. One would have to be careful, though that the language remains intuitive\n and avoids getting messy. So let's stick with sync/async for now.\n\nConsidering that most routing and transformation patterns both consume and publish\n messages, we can use the four combinations as defined by Ivan. The diagrams on the\n right shows what the augmented pattern icons would look like (reading the message\n flow from left to right):\n\n- A *Puller* consumes messages synchronously, meaning it \"pulls\" messages when it is ready to\n do so. It publishes messages asynchronously, i.e. when asked for a new message. The\n Puller is driven by the subsequent message consumer asking for messages, which caus\n eit to go and fetch a new source message. The \"noses\" appropriately indicate the control\n flow from right to left.\n- A *Pusher* consumes messages asynchronously, i.e. a channel \"pushes\" messages to it to be processed.\n Each resulting message that is produced is published synchronously at the time it\n is available. Control flow matches data flow in this scenario: from left to right.\n- A *Pool* can connect two synchronous elements, i.e. it needs to provide a buffer to decouple\n the timing between the neighboring elements. [Message Channels](../MessageChannel.html) are classic Pools.\n- A *Driver* can connect two synchronous elements, meaning it has to provide a trigger for these\n elements to take action.\n\nTypical messaging systems as discussed in EIP mostly consist of Pushers, Drivers,\n and Pools (channels) as the control flow follows the messages. Synchronous consumers\n cannot request generation of messages through a [Message Channels](../MessageChannel.html) as the channel decouples the sender from the receiver. However, as our patterns are\n used inside systems that allow control flow in both directions, all forms of interaction\n models are relevant.\n\n*Share:*\n\n*Follow:* [Follow @ghohpe](https://twitter.com/ghohpe) [SUBSCRIBE TO FEED](../ramblings.rss)\n\n*More On:* [PATTERNS](/ramblings_patterns.html) [MESSAGING](/ramblings_messaging.html) [MODELING](/ramblings_modeling.html) [ALL RAMBLINGS](../ramblings.html)\n\nGregor is a cloud architect and author. He is a frequent speaker on asynchronous messaging,\n IT strategy, and cloud.", "znaku_textu": 7665, "slov": 1072, "odkazu": 58, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 15:35:45", "sha256": "8b3eefc1b651e9292938eef37bbdedfc13311c3121f5cf79440704a4d1953dd9", "hloubka": 4, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://architectelevator.com/blog", "http://fusesource.com/", "http://www.cloudcomputingpatterns.org/", "https://access.redhat.com/documentation/en-US/Fuse_IDE/7.1/html/Introduction_to_Fuse_IDE/files/RiderGSEclipseEditor.html", "http://www.jot.fm/issues/issue_2003_01/column1/", "http://www.ivanism.com/Articles/SinkorSwim.html", "https://twitter.com/share", "https://twitter.com/ghohpe", "https://leanpub.com/37things"]} {"url": "http://www.enterpriseintegrationpatterns.com/ramblings/81_restconversation.html", "titulek": "RESTful Conversations - Enterprise Integration Patterns", "h1": "RESTful Conversations", "popis": "As indicated a good while ago I spent some time thinking about patterns that instead of following a message through multiple systems, looks at the message exchange over time between a (mostly) fixed set of systems", "klicova_slova": "", "kanonicka": "", "jazyk": "en_US", "robots_meta": "", "og": {"og:type": "article", "og:locale": "en_US", "og:site_name": "Enterprise Integration Patterns", "og:title": "RESTful Conversations", "og:description": "As indicated a good while ago I spent some time thinking about patterns that instead of following a message through multiple systems, looks at the message exchange over time between a (mostly) fixed set of systems", "og:url": "https://www.enterpriseintegrationpatterns.com/ramblings/81_restconversation.html"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "RESTful Conversations"}, {"uroven": 2, "text": "To REST or not to REST"}, {"uroven": 2, "text": "Application State"}, {"uroven": 2, "text": "Conversation State"}, {"uroven": 2, "text": "Conversation Patterns for REST Services"}, {"uroven": 2, "text": "Conversation Patterns Quo Vadis?"}, {"uroven": 2, "text": "Join my Team"}], "markdown": "Gregor's Ramblings\n\n---\n\n# RESTful Conversations\n\nMAR 15, 2015\n\nFind my posts on IT strategy, enterprise architecture, and digital transformation\n at [ArchitectElevator.com](https://architectelevator.com/blog).\n\nAs indicated a [good while ago](72_eipvolumes.html) I spent some time thinking about patterns that instead of following a message through\n multiple systems, looks at the message exchange over time between a (mostly) fixed\n set of systems. I call these message exchanges \"conversations\", partly because it\n avoids collision with terms like \"orchestration\" or \"choreography\" and partly because\n it makes for a nice bridge between communicating systems and communicating humans.\n \"interactions\" would have been another good name, but I found it a tad too generic,\n even though I did register [interactionpatterns.com](http://www.interactionpatterns.com).\n\nVocabulary aside, my writing efforts on EIP Vol 2 fell very much asleep around 2008,\n first due to lack of time, but then also to my fear that with the rise of REST, stateful\n conversations between systems would step into the background as most integration problems\n are now solved with a simple POST or GET. A presentation and conversation at Stuttgart\n University's [IAAS](http://www.iaas.uni-stuttgart.de/indexE.php) (not IaaS!) PhD Seminar setup by [Frank Leymann](http://www.iaas.uni-stuttgart.de/institut/mitarbeiter/leymann/indexE.php) enlightened me that this is not at all true: systems following the REST architectural\n style very much engage in conversations.\n\n## To REST or not to REST\n\nI am probably the last person to admonish everyone that neither using XML or JSON\n nor HTTP verbs alone makes an interface \"ReSTful\" in the intended sense. First up,\n REST is an architecture style, not a specific technology or encoding. [Mary Shaw and Dave Garlan](/books5.html) defined an architectural style as \"defining a vocabulary of components and connector\n types, and a set of constraints on how they can be combined\". [side note: in my ranking\n of proudest moments, being listed as a [SATURN 2015 keynote speaker](http://www.sei.cmu.edu/saturn/2015/keynotes-and-speakers) alongside Mary Shaw vies for 1st place with [Grady Booch's mention of our book at OOPSLA 2005](37_oopsla.html)]. Second, ReSTfulness is not a binary property. [Leonard Richardson's REST Maturity Model](http://www.crummy.com/writing/speaking/2008-QCon/act3.html) describes multiple levels of maturity that make an API actually ReSTful. Martin Fowler\n wrote a [nice explanation of this model](http://martinfowler.com/articles/richardsonMaturityModel.html), including a halo to be achieved in the REST Nirvana, the mismatching religious metaphors\n being my contribution. Not quite coincidentally, simply sending POX over HTTP gets\n you only maturity level 0, the lowest possible one.\n\n## Application State\n\nThe connection between REST and conversations starts at level 3 of the model, where\n we encounter what must be one of the worse acronyms in recent IT history: [HATEOAS](http://en.wikipedia.org/wiki/HATEOAS), which is supposed to stand for \"Hypertext as the Engine of Application State\". I\n could not actually make out who blessed us with this acronymial masterpiece -- it\n does not appear in [Roy Fielding's thesis](http://www.ics.uci.edu/~fielding/pubs/dissertation/top.htm) or [blog](http://roy.gbiv.com/untangled/2008/rest-apis-must-be-hypertext-driven). If it was up to me, I would change its meaning to *Hideous Acronym That Elaborates On Application State*.\n\nThe unlucky name aside, the idea behind level 3 of the maturity model is that application\n state is expressed through hypermedia (read URI's). In reality this means that a service\n response describes possible follow-on on resources to acted upon by the client in\n form of embedded URI's, aka \"links\". Essentially, this set of URI's defines the legal\n state transitions of the application (and thus the allowed states) to the client as\n Roy Fielding explained in a [somewhat emotional post from 2008](http://roy.gbiv.com/untangled/2008/REST-apis-must-be-hypertext-driven): \"*From that point on, all application state transitions must be driven by client selection\n of server-provided choices that are present in the received representations or implied\n by the user's manipulation of those representations*\". As the application state transitions drive the conversation a client can engage\n in, this representation of application state translates fairly directly into a description\n of allowed conversations. Compared to other ways of describing conversations, such\n as choreography or orchestration, describing conversations with links embedded in\n response messages is a dynamic and relatively loosely coupled mechanism. Speaking\n of loose coupling, my favorite quote from Roy's post is \"*There is so much coupling on display that it should be given an X rating*\" -- I'll make sure to borrow that some time.\n\nPutting the idea of embedding application state transitions in URI's to practice,\n let's draw on [Jim Webber's, Savas Parastatidis' and Ian Robinson's RestBucks example](http://www.infoq.com/articles/webber-rest-workflow), which was in turn inspired by a [popular rambling of mine](18_starbucks.html) -- it's a small world! In their example, once you placed a drink order to RestBucks\n via an HTTP POST, the service will supply you with a response similar to this:\n\n```\n201 Created\nLocation: http://starbucks.example.org/order/1234\nContent-Type: application/xml\n\n\n latte\n 3.0\n \n\n```\n\nAfter the customer has just ordered a drink the next action he or she can take is\n to submit a payment. Correspondingly, a URI for the payment resource is included in\n the response message under the \"next\" element. The semantics of \"next\" URI's are indicated\n by the \"rel\" attribute `http://starbucks.example.org/payment`, meaning client and server have to share a common vocabulary and semantics of resources\n such as \"payment\". The set of the resources and associated actions is also the vocabulary\n for the conversation to be had: you can place an order, make a payment etc. The links\n do not show, though, that you can also potentially update your order -- this is handled\n by the HTTP protocol via the `OPTIONS` verb or the `expect` header.\n\n## Conversation State\n\nThe inclusion of \"next\" links in responses defines the set of valid conversations\n from the perspective of the service provider. Unlike [choreography and orchestration approaches](../docs/IEEE_IC_Conversations.pdf), the conversations are dynamically defined at the time of interaction as opposed\n to an a priori definition. This approach reduces coupling (and thus avoids an X rating),\n however, it does not allow the upfront creation of client workflows that model allowed\n conversations. Instead, the client has to start interacting with the service and see\n what it is being offered to do next. For example, constraints that define valid conversations,\n such as whether a customer can pick up a drink before payment is made or whether the\n drink is started to be made before a payment is received, are represented as a set\n of links embedded in multiple response messages and not known upfront. This means\n that clients cannot make strong assumptions on message order -- the service is in\n the driver's seat. [Once again](19_composing.html), reduced coupling means fewer assumptions, but you (or your code) have to be more\n flexible, which can bring complexity or at least a different way of thinking about\n process flow. If (slightly) stronger coupling is allowed, a REST service could describe\n legal transitions upfront through a special media type. The transitions are then mapped\n to concrete resources via the URI's embedded in `next` elements.\n\nThis relatively simple example also makes it nice and clear that REST services are\n indeed engaged in conversations just like traditional web services, and maybe even\n more so because the individual interactions tend to be simpler, causing services and\n clients to engage in longer conversations to accomplish their ultimate goal.\n\n## Conversation Patterns for REST Services\n\nHaving learned that REST services engage in conversations we should hope that some\n of the [Conversation Patterns I started to document a while ago](../docs/ConversationsEuroPlopFinal.pdf) still have relevance. In fact, one can assume that many new patterns are waiting\n to be \"mined\" from the magnitude of REST services out there, from OpenStack to the\n Amazon API's. This should motivate me to pick the topic of conversation patterns\n back up and make a push towards [EIP 2](72_eipvolumes.html).\n\n[Florian Haupt](http://www.iaas.uni-stuttgart.de/institut/mitarbeiter/haupt/indexE.php), a PhD student at [IAAS Stuttgart](http://www.iaas.uni-stuttgart.de/indexE.php) presented conversation pattern candidates at the PhD Seminar and documented them\n in his upcoming paper [A conversation based approach for modeling REST APIs](http://www.iaas.uni-stuttgart.de/institut/mitarbeiter/haupt/indexE.php#publications), which he is presenting at [WICSA 2015](http://wicsa2015.org/) in May. His interest in conversations stems from his work in model-driven development\n for REST services. Modeling languages are particularly useful if they include higher-level\n constructs for frequently recurring solutions. Such solutions are not patterns *per se*, but could be an indicator that there are related patterns to be harvested. His conversational\n constructs originated from analyzing REST services, but, like all good patterns, are\n not limited to REST services alone.\n\nFlorian shared the example of a *long-running tasks*, which in the REST world defines three resources: a *manager*, a *task*, and a *result* for the client to interact with. This could well be an implementation strategy to\n a *polling* or *callback* conversational pattern. A second example, a [Try-Confirm-Cancel](http://www.atomikos.com/Publications/TryCancelConfirm) sequence, is indeed a common conversation pattern that is as useful with REST services\n as with any distributed system that lacks global transactions. In my [paper on Conversation Patterns](/docs/ConversationsEuroPlopFinal.pdf) I deal with these conversations under the chapter \"Reaching Agreement\", which is\n still incomplete.\n\n## Conversation Patterns Quo Vadis?\n\nThe realization that conversation patterns are as relevant as ever begs the questions\n where I am with [EIP 2: Conversation Patterns](72_eipvolumes.html). I did post the [paper I workshopped at EuroPLoP 2008](/docs/ConversationsEuroPlopFinal.pdf) on-line, but I think I really need two things: a good vehicle to share work in progress\n and a community to provide input and feedback to give me energy. For the former, you\n may have noticed small changes to the Web site's navigation and the renaming of the\n pattern catalog to \"Messaging Patterns\" in preparation of making room for another,\n work-in-progress, catalog. Alas, the site is still being built by Ant 1.7 and XSLT,\n which may soon find a place in the [Computer History Museum](http://www.computerhistory.org/), but is not a great tool for content management or collaboration. For EIP we used\n a simple mailing list and archives for discussion because our Wiki was flooded by\n spam. Maybe mailing lists are becoming \"retro\" and actually work? There is no writing\n on conversation patterns without engaging in conversations!\n\n## Join my Team\n\nOur team is still growing! I am looking for one more senior [Cloud Infrastructure Architect](https://www.linkedin.com/jobs2/view/136775174) to join my team at [Allianz](https://www.allianz.com/en/products_solutions/global_lines/amos/amos.html) in Munich.\n\n*Share:*\n\n*Follow:* [Follow @ghohpe](https://twitter.com/ghohpe) [SUBSCRIBE TO FEED](../ramblings.rss)\n\n*More On:* [CONVERSATIONS](/ramblings_conversations.html) [WEBSERVICES](/ramblings_webServices.html) [INTEGRATION](/ramblings_integration.html) [ALL RAMBLINGS](../ramblings.html)\n\nGregor is a cloud architect and author. He is a frequent speaker on asynchronous messaging,\n IT strategy, and cloud.", "znaku_textu": 12228, "slov": 1696, "odkazu": 69, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 15:35:08", "sha256": "675a4fae174ec93c88ffaa47509fd33d5baa5c13a9036e2c54adba56743e766d", "hloubka": 4, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://architectelevator.com/blog", "http://www.interactionpatterns.com/", "http://www.iaas.uni-stuttgart.de/indexE.php", "http://www.iaas.uni-stuttgart.de/institut/mitarbeiter/leymann/indexE.php", "http://www.sei.cmu.edu/saturn/2015/keynotes-and-speakers", "http://www.crummy.com/writing/speaking/2008-QCon/act3.html", "http://martinfowler.com/articles/richardsonMaturityModel.html", "http://en.wikipedia.org/wiki/HATEOAS", "http://www.ics.uci.edu/~fielding/pubs/dissertation/top.htm", "http://roy.gbiv.com/untangled/2008/rest-apis-must-be-hypertext-driven", "http://roy.gbiv.com/untangled/2008/REST-apis-must-be-hypertext-driven", "http://www.infoq.com/articles/webber-rest-workflow", "http://www.iaas.uni-stuttgart.de/institut/mitarbeiter/haupt/indexE.php", "http://wicsa2015.org/", "http://www.atomikos.com/Publications/TryCancelConfirm", "http://www.computerhistory.org/", "https://www.linkedin.com/jobs2/view/136775174", "https://www.allianz.com/en/products_solutions/global_lines/amos/amos.html", "https://twitter.com/share", "https://twitter.com/ghohpe", "https://leanpub.com/37things"]} {"url": "http://www.enterpriseintegrationpatterns.com/ramblings/82_googlepubsub.html", "titulek": "Google Cloud Pub/Sub - Enterprise Integration Patterns", "h1": "Google Cloud Pub/Sub", "popis": "Google released the beta version of their publish-subscribe API just a few weeks ago", "klicova_slova": "", "kanonicka": "", "jazyk": "en_US", "robots_meta": "", "og": {"og:type": "article", "og:locale": "en_US", "og:site_name": "Enterprise Integration Patterns", "og:title": "Google Cloud Pub/Sub ", "og:description": "Google released the beta version of their publish-subscribe API just a few weeks ago", "og:url": "https://www.enterpriseintegrationpatterns.com/ramblings/82_googlepubsub.html"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Google Cloud Pub/Sub"}, {"uroven": 2, "text": "Cloud Pub/Sub = Publish-Subscribe Channel and Competing Consumers"}, {"uroven": 2, "text": "Topics and Subscriptions"}, {"uroven": 2, "text": "REST API"}, {"uroven": 2, "text": "Java Client API"}, {"uroven": 3, "text": "Authenticating"}, {"uroven": 3, "text": "Creating Topics"}, {"uroven": 3, "text": "Publishing Messages"}, {"uroven": 3, "text": "Creating Subscriptions"}, {"uroven": 3, "text": "Consuming Messages"}, {"uroven": 3, "text": "A Tiny Demo App"}, {"uroven": 2, "text": "Integration Patterns"}, {"uroven": 3, "text": "Publish-Subscribe Channel"}, {"uroven": 3, "text": "Competing Consumers"}, {"uroven": 3, "text": "Polling Consumer, Event-driven Consumer"}, {"uroven": 3, "text": "Durable Subscriber"}, {"uroven": 3, "text": "Message Expiration"}, {"uroven": 3, "text": "Transactional Client"}, {"uroven": 3, "text": "Idempotent Receiver"}, {"uroven": 2, "text": "Google Cloud Pub/Sub and Integration Patterns"}, {"uroven": 2, "text": "Join my Team!"}], "markdown": "Gregor's Ramblings\n\n---\n\n# Google Cloud Pub/Sub\n\nAPR 8, 2015\n\nFind my posts on IT strategy, enterprise architecture, and digital transformation\n at [ArchitectElevator.com](https://architectelevator.com/blog).\n\nGoogle [released](http://googlecloudplatform.blogspot.de/2015/03/using-Google-Cloud-pubsub-to-Connect-applications-and-data-streams.html) the beta version of their [Google Cloud Pub/Sub API](https://cloud.google.com/pubsub/overview) in early March. For a beta version, it comes with pretty generous quota: 10,000 messages\n per second across up to 10,000 topics. I built a very simple demo app to and describe\n the implementation choices using [Integration Patterns](/eaipatterns.html).\n\n## Cloud Pub/Sub = Publish-Subscribe Channel and Competing Consumers\n\nAt the heart of the Cloud Pub/Sub is a classic [Publish-Subscribe Channel](/PublishSubscribeChannel.html), which delivers a single message published to it to multiple subscribers. One advantage\n of this pattern is that adding subscribers is side-effect free, which is one reason\n a [Publish-Subscribe Channel](/PublishSubscribeChannel.html) is sometimes considered more loosely coupled than a [Point-to-Point Channel](/PointToPointChannel.html), which delivers a message to exactly one subscriber. Adding consumers to a [Point-to-Point Channel](/PointToPointChannel.html) results in [Competing Consumers](/CompetingConsumers.html) and thus has a strong side effect.\n\nUpon closer inspection, we realize that the Google Cloud Pub/Sub API actually implements\n both the [Publish-Subscribe Channel](/PublishSubscribeChannel.html) **and** the [Competing Consumers](/CompetingConsumers.html) patterns. This is the reason Google can cite a variety of use cases in the [Overview Document](https://cloud.google.com/pubsub/overview):\n\n- Balancing workload\n- Distributing event notifications\n- Logging to multiple systems\n- Data streaming\n- ...\n\n## Topics and Subscriptions\n\nInterestingly, the [Competing Consumers](/CompetingConsumers.html) aspect is not (yet) shown in the [Overview Diagram.](https://cloud.google.com/pubsub/images/many-to-many.png) The diagram makes clear, though, that the Pub/Sub implementation separates the concepts\n of *topic* and *subscription*:\n\n- **Topics** represent the pub-sub aspect of the system: if multiple subscribers subscribe to\n the same topic, each of them will receive a copy of the message published to the topic.\n- **Subscriptions** represent the competing consumers aspect of the system: if multiple subscribers pull\n messages from the same subscription, only one of them will receive the message.\n\nI depicted this behavior in a modified version of Google's image:\n\nIn this example *Message 2* is only received by *Subscriber B1* as both *Subscriber B1* and *Subscriber B2* compete for the message from the same subscription. In contrast, both *Subscriber Y* and *Subscriber Z* each receive a copy of *Message 3* as they are subscribing to the same *Topic C*, but through separate subscriptions.\n\nSeparating topics and subscriptions is an elegant way to provide both [Publish-Subscribe Channel](/PublishSubscribeChannel.html) and [Point-to-Point Channel](/PointToPointChannel.html) semantics through a single API. It also clarifies why Google separated the two concepts:\n each subscription represents a message queue that is fed by the pub-sub topics. If\n multiple subscriptions are attached to one topic, each of them receives a copy of\n each message.\n\n## REST API\n\nCloud Pub/Sub is accessed through a set of REST API's, which, once you are familiar\n with the concept, are fairly natural. A small, but important detail are the resource\n names for topics and subscriptions, which must follow the following format: `projects/*project-identifier/collection/resource-name*` where `*collection*` can be `topics` or `subscriptions`. Following this scheme, listing defined subscriptions can be as simple as making\n the following REST call, assuming you have authenticated via OAuth and your app is\n called `eaipubsub`:\n\n`GET https://pubsub.googleapis.com/v1beta2/projects/eaipubsub/subscriptions`\n\nThe response is a simple JSON structure:\n\n```\n{\n \"subscriptions\": [\n {\n \"name\": \"projects/eaipubsub/subscriptions/mysubscription\",\n \"topic\": \"projects/eaipubsub/topics/sometopic\",\n \"pushConfig\": { },\n \"ackDeadlineSeconds\": 60\n }\n ]\n}\n```\n\n## Java Client API\n\nAs with most Cloud API's, Cloud Pub/Sub comes with a variety of client libraries.\n I tend to have mixed feelings with generated client libraries for REST API's as I\n fear they negate some of the dynamic aspects and simplicity of the REST style. For\n building little sample applications, though, they do provide a nice starting point.\n I set out to build simple console applications that setup topics and subscriptions\n and then publish and consume messages. Wrapping all this into a little helper class\n resulted in a little less than 100 lines of code, which is not too bad. However, since\n Google recently open sourced Stubby aka [gRPC](https://github.com/grpc), which also includes client stub generators, one wonders whether these could also\n be used for the Cloud API's.\n\nIf you setup your project from scratch, you'll need to import about 10 libraries as\n described in the `readme.html` file in the download.\n\n### Authenticating\n\nWorking with a stand-alone application requires you to authenticate using private\n keys:\n\n```\n private void createClient(String private_key_file, String email) throws IOException, GeneralSecurityException {\n HttpTransport transport = GoogleNetHttpTransport.newTrustedTransport();\n GoogleCredential credential = new GoogleCredential.Builder()\n .setTransport(transport)\n .setJsonFactory(JSON_FACTORY)\n .setServiceAccountScopes(PubsubScopes.all())\n .setServiceAccountId(email)\n .setServiceAccountPrivateKeyFromP12File(new File(private_key_file))\n .build();\n pubsub = new Pubsub.Builder(transport, JSON_FACTORY, credential)\n .setApplicationName(\"eaipubsub\")\n .build();\n }\n```\n\nYou would want to use a custom `HttpRequestInitializer` to enable automatic retry upon failures for anything but trivial demos.\n\n### Creating Topics\n\nMost of the methods throw exceptions based on error HTTP responses, such as creating\n objects that already exist. You can swallow the exceptions or check for existence\n first like I did for topic creation:\n\n```\n Topic createTopic(String topicName) throws IOException {\n String topic = getTopic(topicName);\n Pubsub.Projects.Topics topics = pubsub.projects().topics();\n ListTopicsResponse list = topics.list(project).execute();\n if (list.getTopics() == null || !list.getTopics().contains(new Topic().setName(topic))) {\n Topic newTopic = topics.create(topic, new Topic()).execute();\n return newTopic;\n } else {\n return new Topic().setName(topic);\n }\n }\n```\n\nAs a topic only contains the name, I simply instantiate a new one if the chosen topic\n already exists. `getTopic` does the magic translation from `sometopic` to `/projects/eaipubsub/topics/sometopic`. Many methods are available only through the `projects()` collection, which is likely the result of the translation from the REST URI's.\n\n### Publishing Messages\n\nPublishing a message is similarly straightforward:\n\n```\n List publishMessage(String topicName, String data) throws IOException {\n List messages = Lists.newArrayList();\n messages.add(new PubsubMessage().encodeData(data.getBytes(\"UTF-8\")));\n PublishRequest publishRequest = new PublishRequest().setMessages(messages);\n PublishResponse publishResponse = pubsub.projects().topics()\n .publish(getTopic(topicName), publishRequest)\n .execute();\n return publishResponse.getMessageIds();\n }\n```\n\nYou can publish more than one message at a time and you will receive a list of published\n message ID's in return. Messages carry base64 encoded data, which makes publishing\n them from the [API Explorer](https://developers.google.com/apis-explorer/#p/pubsub/v1beta2/) a little less convenient. You can also add name-value attributes to the message,\n e.g. to carry metadata.\n\n### Creating Subscriptions\n\nCreating subscriptions is also easy if you keep in mind the naming convention and\n the object hierarchy:\n\n```\n Subscription subscribeTopic(String subscriptionName, String topicName) throws IOException {\n String sub = getSubscription(subscriptionName);\n Subscription subscription = new Subscription()\n .setName(sub)\n .setAckDeadlineSeconds(15)\n .setTopic(getTopic(topicName));\n try {\n return pubsub.projects().subscriptions().create(sub, subscription).execute();\n } catch (GoogleJsonResponseException e) {\n if (e.getStatusCode() == HttpURLConnection.HTTP_CONFLICT) {\n return subscription;\n } else {\n throw e;\n }\n }\n}\n```\n\nHere I opted to swallow the exception associated with the 409 \"Conflict\" return code\n if the subscription already exists. As explained above, it's important to distinguish\n the naming (and thus the identity) of topics and subscriptions to make sure you achieve\n the desired channel semantics -- my first attempt did not.\n\n### Consuming Messages\n\nLast, but not least, consuming, or \"pulling\", messages mostly involves navigating\n collections and decoding data while avoid NPE's. Messages have to be explicitly acknowledged\n -- more on that below. I am passing a flag to my method to auto-acknowledge messages\n right after they were received. If you desire (local) transactional semantics, you\n postpone acknowledgment until after successfully processing the message.\n\n```\n List pullMessage(Subscription subscription, int maxMessages, boolean doAck) throws IOException {\n PullRequest pullRequest = new PullRequest()\n .setReturnImmediately(true)\n .setMaxMessages(maxMessages);\n PullResponse response = pubsub.projects().subscriptions().pull(subscription.getName(), pullRequest).execute();\n List messages = response.getReceivedMessages();\n List ackIds = Lists.newArrayList();\n List data = Lists.newArrayList();\n if (messages != null) {\n for (ReceivedMessage receivedMessage : messages) {\n PubsubMessage message = receivedMessage.getMessage();\n if (message != null) {\n byte[] bytes = message.decodeData();\n if (bytes != null) {\n data.add(new String(bytes, \"UTF-8\"));\n }\n }\n ackIds.add(receivedMessage.getAckId());\n }\n if (doAck) {\n AcknowledgeRequest ackRequest = new AcknowledgeRequest().setAckIds(ackIds);\n pubsub.projects().subscriptions().acknowledge(subscription.getName(), ackRequest).execute();\n }\n }\n return data;\n }\n```\n\nYou can pull one or multiple messages per pull request and also chose whether to block\n until a message arrives or whether to return immediately by means of the `setReturnImmediately` property.\n\n### A Tiny Demo App\n\nPackaging all of this along with some fields and a constructor into a wrapper class\n allows you to send messages like this:\n\n```\n static final String PROJECT = \"eaipubsub\";\n static final String TOPIC = \"sometopic\";\n\n public static void main(String[] args) throws IOException, GeneralSecurityException {\n PubSubWrapper pubsub = PubSubWrapper.getInstance(\n System.getProperty(\"PRIVATE_KEY_FILE_PATH\"),\n System.getProperty(\"SERVICE_ACCOUNT_EMAIL\"),\n PROJECT);\n\n String data = (args.length > 0) ? args[0] : \"hello pub/sub api\";\n pubsub.createTopic(TOPIC);\n List messageIds = pubsub.publishMessage(TOPIC, data);\n if (messageIds != null) {\n for (String messageId : messageIds) {\n System.out.println(\"Published with a message id: \" + messageId);\n }\n }\n }\n```\n\n## Integration Patterns\n\nLet's look at how different [Integration Patterns](http://www.eaipatterns.com/toc.html) find themselves in the Cloud Pub/Sub implementation. This will also be a nice test\n of time for the patterns to see whether the vocabulary established through the patterns\n is still relevant with cloud API's, something we did not even dream off when we wrote\n the book in 2003!\n\n### Publish-Subscribe Channel\n\nCloud Pub/Sub has classic [Publish-Subscribe Channel](/PublishSubscribeChannel.html) semantics. Not part of the pattern, but of the related discussion is the notion of\n a *topic hierarchy*, as for example described in the (somewhat dated) [OASIS WS-Topics](http://docs.oasis-open.org/wsn/wsn-ws_topics-1.3-spec-os.pdf) specification. A topic hierarchy organizes the topic as a hierarchy or tree and is\n often coupled with wildcard subscriptions that allow subscribing to \"higher-up\" nodes,\n which equates to subscribing to all topics underneath that node. Cloud Pub/Sub does\n not implement a topic hierarchy -- topics must be simple names. Topic names can contain\n a period to create topics such as `mytopic.subtopic`, albeit without any related semantics.\n\n### Competing Consumers\n\nAs illustrated above, Cloud Pub/Sub supports [Competing Consumers](/CompetingConsumers.html) by having multiple consumers pull messages from the same subscription. This feature\n allows for example for the distribution of workload across multiple consumers while\n guaranteeing that each message is consumer by only one consumer.\n\n### Polling Consumer, Event-driven Consumer\n\nMy simple code example implements a rather old-school [Polling Consumer](/PollingConsumer.html) and therefore does not include a `pushConfig` in the subscription. If you are building cloud applications, you are much more likely\n to implement an [Event-Driven consumer](/EventDrivenConsumer.html), which can act as a WebHook receiver. Cloud Pub/Sub is happy to [support both](https://cloud.google.com/pubsub/subscriber#receive).\n\n### Durable Subscriber\n\nCloud Pub/Sub subscribers are [Durable Subscriber](/DurableSubscription.html)s: messages published to a topic with an active subscription are received even while\n the application is not running and are stored until the application pulls the message.\n This also leads to the \"Poison Message\" syndrome (indeed a missing pattern in our\n [book](http://www.eaipatterns.com/books1.html)): if a particular message causes the consuming application to crash, that same message\n will be pulled again on application restart, causing the application to crash again.\n This happened to me while building the simple Cloud Pub/Sub demo when I sent a non-base64-encoded\n message from the API Explorer that caused `decodeData` to return `null`. A [Channel Purger](/ChannelPurger.html) may be helpful in such situations\n\n### Message Expiration\n\nCloud Pub/Sub does implement a general [Message Expiration](/MessageExpiration.html) of 7 days as explained in the [Quota Policy](https://cloud.google.com/pubsub/quotas). However, this property is not settable on a per-message basis, so the messaging\n system cannot automatically discard messages whose value decreases rapidly with increasing\n age. There also is no [Dead Letter Channel](/DeadLetterChannel.html). On the upside 7 days at 10,000 messages a second adds up to a nice chunk of storage.\n\n### Transactional Client\n\nCloud Pub/Sub supports [Transactional Client](/TransactionalClient.html)s via an explicit message acknowledgment: messages consumers have to acknowledge message\n consumption within a configurable time interval of 15 -600 seconds. Messages that\n were not acknowledged are returned to the subscription to be pulled again.\n\nI tested this behavior with a client that pulls, but never acknowledges messages.\n As expected, a message published to the associated topic is repeatedly redelivered\n after the specified acknowledgment deadline. After starting another subscriber that\n does acknowledge messages on the same subscription (thus operating in the [Competing Consumers](/CompetingConsumers.html) model), the \"bad\" subscriber kept on receiving the message for some time until eventually\n the \"good\" receiver got it and acknowledged it. Fairness across multiple competing\n subscribers to a single subscription is not explicitly defined in the spec, but it\n seems that in case of a wrecked consumer other consumers will eventually have a chance\n to pull the messages that were not acknowledged by the \"bad\" consumer. It's probably\n best to assume the distribution of messages across multiple consumers on a single\n subscription is random.\n\n### Idempotent Receiver\n\nCloud Pub/Sub usually delivers messages exactly once and in order. However, it does\n [not guarantee](https://cloud.google.com/pubsub/subscriber#receive) this behavior. Therefore, the application layer has to ensure subscribers are [Idempotent Receiver](/IdempotentReceiver.html)s. This is not an omission, but surely results in a significant simplification of\n the implementation. Applications that require idempotency at the application level\n can use additional mechanisms, such as a list of received message ID's, to implement\n this behavior.\n\nSadly we did not design an icon for [Idempotent Receiver](/IdempotentReceiver.html) when we wrote the book. I just made this one up. Maybe it'll make it into the 2nd\n edition...\n\n## Google Cloud Pub/Sub and Integration Patterns\n\nIt's satisfying to see that we can discuss much of what Google Cloud Pub/Sub does\n using the pattern language described in [Enterprise Integration Patterns](/eaipatterns.html) 12 years ago. It's also nice to see that messaging semantics blend well with REST\n API's and cloud services, something that seemed very far away in 2003 -- even Web\n Services were described as an [Emerging Standard](/Future.html) back then!\n\nIn case of the Google Cloud Pub/Sub system, I am particularly happy to see it become\n available as I was lucky enough to observe some of the humble beginnings in my days\n at Google CorpEng\n\n## Join my Team!\n\nAre you a top-notch cloud infrastructure or application architect that wants to help\n establish a private cloud infrastructure for one of the largest insurance companies\n in the world? And re-architect critical core applications to efficiently run on it?\n Then consider [joining my team](https://jobs.allianz.com/sap/bc/bsp/sap/zhcmx_erc_ui_ex/?jobId=55C128F4F6E92260E10080000A670216) at Allianz in Munich! I currently have two listings on LinkedIn: [Cloud Infrastructure Architect](https://www.linkedin.com/jobs2/view/136775174) and [Principal Software Architect](https://www.linkedin.com/jobs2/view/136775174), but am also looking for other highly qualified individuals in the areas of IoT,\n Data Architecture, High Performance Computing, etc. Apply directly on [Allianz Careers](https://jobs.allianz.com/sap/bc/bsp/sap/zhcmx_erc_ui_ex/?jobId=55C128F4F6E92260E10080000A670216)!\n\n*Share:*\n\n*Follow:* [Follow @ghohpe](https://twitter.com/ghohpe) [SUBSCRIBE TO FEED](../ramblings.rss)\n\n*More On:* [MESSAGING](/ramblings_messaging.html) [INTEGRATION](/ramblings_integration.html) [CLOUD](/ramblings_cloud.html) [ALL RAMBLINGS](../ramblings.html)\n\nGregor is a cloud architect and author. He is a frequent speaker on asynchronous messaging,\n IT strategy, and cloud.", "znaku_textu": 18458, "slov": 2335, "odkazu": 67, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 15:35:44", "sha256": "6299f3187093ccef68c4b6dd0e7b53378b54815233071b61a0b718ac609c4d14", "hloubka": 4, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://architectelevator.com/blog", "http://googlecloudplatform.blogspot.de/2015/03/using-Google-Cloud-pubsub-to-Connect-applications-and-data-streams.html", "https://cloud.google.com/pubsub/overview", "https://cloud.google.com/pubsub/images/many-to-many.png", "https://github.com/grpc", "https://developers.google.com/apis-explorer/", "http://www.eaipatterns.com/toc.html", "http://docs.oasis-open.org/wsn/wsn-ws_topics-1.3-spec-os.pdf", "https://cloud.google.com/pubsub/subscriber", "http://www.eaipatterns.com/books1.html", "https://cloud.google.com/pubsub/quotas", "https://jobs.allianz.com/sap/bc/bsp/sap/zhcmx_erc_ui_ex/?jobId=55C128F4F6E92260E10080000A670216", "https://www.linkedin.com/jobs2/view/136775174", "https://twitter.com/share", "https://twitter.com/ghohpe", "https://leanpub.com/37things"]} {"url": "http://www.enterpriseintegrationpatterns.com/ramblings/83_subscribing.html", "titulek": "Free Gift with Subscription (Pattern) - Enterprise Integration Patterns", "h1": "Free Gift with Subscription (Pattern)", "popis": "Discussing the Google cloud Pub/Sub system in the last rambling reminded me that the Publish-subscribe Channel pattern makes for a good example of the subtle but important difference between Messaging Patterns and Conversation Patterns", "klicova_slova": "", "kanonicka": "", "jazyk": "en_US", "robots_meta": "", "og": {"og:type": "article", "og:locale": "en_US", "og:site_name": "Enterprise Integration Patterns", "og:title": "Free Gift with Subscription (Pattern)", "og:description": "Discussing the Google cloud Pub/Sub system in the last rambling reminded me that the Publish-subscribe Channel pattern makes for a good example of the subtle but important difference between Messaging Patterns and Conversation Patterns", "og:url": "https://www.enterpriseintegrationpatterns.com/ramblings/83_subscribing.html"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Free Gift with Subscription (Pattern)"}, {"uroven": 2, "text": "Publish-Subscribe"}, {"uroven": 2, "text": "Subscribe-Notify"}, {"uroven": 2, "text": "Conversation Patterns vs. Messaging Patterns"}, {"uroven": 2, "text": "What is in a name?"}, {"uroven": 2, "text": "More Conversation Patterns"}], "markdown": "Gregor's Ramblings\n\n---\n\n# Free Gift with Subscription (Pattern)\n\nAPR 26, 2015\n\nFind my posts on IT strategy, enterprise architecture, and digital transformation\n at [ArchitectElevator.com](https://architectelevator.com/blog).\n\nDiscussing the Google cloud Pub/Sub system in the [last rambling](/ramblings/82_googlepubsub.html) reminded me that the [Publish-Subscribe Channel](/PublishSubscribeChannel.html) pattern makes for a good example of the subtle but important difference between [Messaging Patterns](/Introduction.html) and [Conversation Patterns](/ramblings/72_eipvolumes.html). This comparison is timely as I picked up documenting Conversation Patterns again.\n It is even more timely as I am flying to Baltimore (via Newark) to [speak](/talks.html) at SATURN 2015, and also to participate in a workshop on microservices.\n\n## Publish-Subscribe\n\n[Publish-Subscribe Channel](/PublishSubscribeChannel.html) is a messaging pattern that explains how multiple subscribers each receive a copy\n of all messages published into this channel. The pattern concerns itself with message\n delivery and takes the viewpoint of a message traveling through the system via channels:\n\n## Subscribe-Notify\n\nIn contrast, *Subscribe-Notify* is a conversation pattern, which focuses on the flow of messages over time between\n a set of participants.\n\nI use the same pattern form to document Conversation Patterns:\n\n- **Context** : the situation in which the pattern applies\n- **Problem** : what design problem the pattern addresses\n- **Forces** : the \"heart\" of the pattern -- why is the problem really a problem?\n- **Sketch** : an overview picture (not a specification) that expresses the \"spirit\" of the pattern\n solution\n- **Solution** : the resolution of the forces\n- **Resulting Context** : Implementation details and ramifications of applying the pattern solution\n\nOne of the best treatments of the role of the individual sections and how to combine\n them into a useful pattern can be found in [Pattern-oriented Software Architecture Vol. 5: On Patterns and Pattern Languages](http://www.amazon.com/exec/obidos/ASIN/0471486485/enterpriseint-20). As always, there is an element of personal preferences in pattern formats. For example,\n Bobby and I prefer to keep the solution statement short, deferring much of the discussion\n into the resulting context. Other pattern authors may set a different emphasis\n\nI show an abbreviated version of the *Subscribe-Notify* conversation pattern here -- the expanded versions will appear on this site some\n time this summer.\n\n---\n\nA participant wants to retrieve information from another participant.\n\n**How can one participant receive information from another participant if that information\n cannot easily be packaged into a single message?**\n\n- A participant could try to aggregate as many individual messages into a larger message\n as possible, but most messaging systems have size limits for messages.\n- Large messages can overburden the receiver who has to parse the message -- an operation\n typically performed in memory. Especially parsing large XML messages, which are still\n in widespread use, tax the receiving system's memory and CPU resources.\n- The individual data to be transmitted may be time sensitive. Storing and aggregating\n it into a single message would reduce the data's value for the recipient.\n- The response data may not be a finite set of data but a continuous stream of data,\n which would make it impossible to know when to bundle up messages.\n\n**The interested participant, or Subscriber, initiates a *Subscribe-Notify* conversation by sending a message to the Provider that expresses its interest in\n data the Provider can supply. The Provider subsequently keeps sending messages to\n the Subscriber until a stop condition is reached.**\n\nThe *Subscribe-Notify* conversation involves the following participants:\n\n- The *Subscriber* initiates the conversation by sending a *Subscribe* message that expresses interest in receiving notification messages. The interest\n may be defined solely by the provider's address (and thus identity) or the *Subscribe* message can contain information as to what messages the *Subscriber* would like to receive, e.g. through a list of *Topics* .\n- The *Provider* waits for incoming *Subscribe* messages and subsequently delivers a stream of *Notify* messages to each *Subscriber* at the pace in which data becomes available or events occur.\n\nThe *Subscribe-Notify* conversation does not have a natural stopping point -- notification messages could\n continue indefinitely. Therefore, a stopping condition is needed. Typical stopping\n conditions include:\n\n- The subscriber sends a stop request in form of an *Unsubscribe* message.\n- The conversation uses a *Lease* (another conversation pattern), causing the conversation to stop after a deadline\n is reached without the subscriber renewing interest.\n- If the channel is connection-oriented (such as an HTTP connection), the provider stops\n sending messages after the subscriber stops accepting connections.\n- The provider notifies the subscriber of the end of the transmission.\n- The provider may simply stop sending messages, leaving the subscriber to realize this\n via a time-out condition.\n\n---\n\n## Conversation Patterns vs. Messaging Patterns\n\nThe conversation pattern discusses the solution from the viewpoint of the participants,\n which are named and exchange messages over time. The conversation sketch includes\n a time dimension, in our case running from top to bottom, whereas the sketch for the\n [Publish-subscribe Channel](/PublishSubscribeChannel.html) only shows the flow of messages from left to right. In the abstract, the difference\n in the pattern languages can be exemplified by the difference in the sketches:\n\nThe *Subscribe-Notify* conversation pattern includes considerations related to unsubscribing or terminating\n the conversation. For example, a *Lease* automatically terminates a conversation if it is not renewed by the *Lessor* in a specified amount of time. The [Publish-Subscribe Channel](/PublishSubscribeChannel.html) on the other hand simply assumes that subscribing and unsubscribing is a lower-level\n function of the messaging system and does not go into much detail on it as the message\n delivery is in the center of the discussion. Conversely, *Subscribe-Notify* does not show multiple *Subscribers* because each of them is engaged in a separate conversation.\n\n## What is in a name?\n\nDiscussing the differences between the patterns got me thinking whether *Subscribe-Notify* is really a good name for the pattern. Synonym names I came across are *Multi-responses* or *Streamed Responses*. Picking the right name is not easy and can often help refine the pattern itself.\n *Subscribe-Notify* and *Streamed Responses* very much emphasize the aspect that messages are sent as data becomes available or\n events occur, implying that the solution of sending a single large messages is not\n practical at all. *Multi-responses* points towards a broader problem, which could include simply breaking a message down\n into smaller parts, e.g. to meet size restrictions. This could be done by a [Splitter](/Sequencer.html) for example. I may consider splitting (pun intended) the two scenarios into separate\n patterns. For example, splitting one message in multiple parts has simpler and deterministic\n termination conditions than subscribing to a stream of events. Such subtle differences\n often help refine and harden the patterns.\n\nThinking of names, \"Publish-Subscribe\" is not the greatest name either. For one, participants\n have to subscribe first before they can receive published messages, so \"Subscribe-Publish\"\n may be more appropriate. Also, \"Publish\" is a per-message action, meaning the message\n source publishes every message while \"Subscribe\" is a meta-action that registers a\n subscriber once to receive published messages. From this view point, \"Subscribe-Unsubscribe\"\n is a more logical pair of terms. [Pattern-oriented Software Architecture](http://www.amazon.com/exec/obidos/ASIN/0471958697/enterpriseint-20) names the pattern *Publisher-Subscriber*, deriving from the roles of the participants, being more consistent. I am guessing\n \"Pub-Sub\" just made such a catchy name, that splitting hairs over the message semantics\n became a secondary consideration.\n\n## More Conversation Patterns\n\nI am in the process of preparing the Conversation Pattern language for publication\n on this site. In the meantime you can get an overview in the [Conversation Patterns Paper](/docs/ConversationsEuroPlopFinal.pdf) I workshopped at EuroPLoP 2008. Good that (good) patterns are timeless...\n\n*Share:*\n\n*Follow:* [Follow @ghohpe](https://twitter.com/ghohpe) [SUBSCRIBE TO FEED](../ramblings.rss)\n\n*More On:* [CONVERSATIONS](/ramblings_conversations.html) [INTEGRATION](/ramblings_integration.html) [ALL RAMBLINGS](../ramblings.html)\n\nGregor is a cloud architect and author. He is a frequent speaker on asynchronous messaging,\n IT strategy, and cloud.", "znaku_textu": 8849, "slov": 1262, "odkazu": 51, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 15:35:43", "sha256": "c9a5f842961f5c7e15e2ba194f125e93b63c502a0346edd6fc75a6fb91560969", "hloubka": 4, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://architectelevator.com/blog", "http://www.amazon.com/exec/obidos/ASIN/0471486485/enterpriseint-20", "http://www.amazon.com/exec/obidos/ASIN/0471958697/enterpriseint-20", "https://twitter.com/share", "https://twitter.com/ghohpe", "https://leanpub.com/37things"]} {"url": "http://www.enterpriseintegrationpatterns.com/ramblings/84_saturn.html", "titulek": "SATURN Conference 2015 - Enterprise Integration Patterns", "h1": "SATURN Conference 2015", "popis": "I have not blogged about events in a while, but SATURN 2015 has been an amazing event that's well worth rambling about", "klicova_slova": "", "kanonicka": "", "jazyk": "en_US", "robots_meta": "", "og": {"og:type": "article", "og:locale": "en_US", "og:site_name": "Enterprise Integration Patterns", "og:title": "SATURN Conference 2015", "og:description": "I have not blogged about events in a while, but SATURN 2015 has been an amazing event that's well worth rambling about", "og:url": "https://www.enterpriseintegrationpatterns.com/ramblings/84_saturn.html"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "SATURN Conference 2015"}, {"uroven": 2, "text": "The perfect blend"}, {"uroven": 2, "text": "Celebrity Spotting"}, {"uroven": 2, "text": "Microservices Workshop"}, {"uroven": 2, "text": "Mary Shaw Keynote"}, {"uroven": 2, "text": "Sam Newman on Microservices"}, {"uroven": 2, "text": "Software Architecture as Code"}, {"uroven": 2, "text": "80 Years of Patterns Impact"}], "markdown": "Gregor's Ramblings\n\n---\n\n# SATURN Conference 2015\n\nMay 1, 2015\n\nFind my posts on IT strategy, enterprise architecture, and digital transformation\n at [ArchitectElevator.com](https://architectelevator.com/blog).\n\nI have not blogged about events in a while (my [Rambling category](/ramblings_events.html) tells me almost 6 years!), but [SATURN 2015](http://www.sei.cmu.edu/saturn/2015/) in Baltimore has been an amazing event that's well worth rambling about.\n\n## The perfect blend\n\nOne interesting aspect of [SATURN](http://www.sei.cmu.edu/saturn/2015/) is that academics call it an industry conference whereas folks from industry tend\n to call it an academic conference. While this can lead to minor annoyances (yes, it\n is an industry conference), I feel it highlights why the event is so unique and useful:\n it is a perfect blend of structured thinking from the academic edge combined with\n valuable industry experience that would otherwise not make it to an academic conference\n due to lack of analysis and validation. The blend worked extremely well for me. It\n also implies that there is no product or vendor pitching at this event, aside from\n the occasional book pitch by the author (which should be acceptable - you would do\n the same after going through all the effort) and brief mentions of the sponsors, including\n [Allianz](http://www.allianz.com/careers).\n\n## Celebrity Spotting\n\nIf OOPSLA used to be the spot to hang out with the \"big boys\" (and some girls), SATURN\n has likely taken its place. If you were going to bring all books you could get signed\n from the folks attending the event, you'd need to check an extra piece of luggage:\n [Mary Shaw](http://www.amazon.com/exec/obidos/ASIN/0131829572/enterpriseint-20), [Rebecca Wirfs-Brock](http://www.amazon.com/exec/obidos/ASIN/0201379430/enterpriseint-20), [Len Bass](http://www.amazon.com/exec/obidos/ASIN/0134049845/enterpriseint-20) (his books alone would have you pay an overweight charge), [Simon Brown](https://leanpub.com/software-architecture-for-developers), [George Fairbanks](http://www.amazon.com/exec/obidos/ASIN/0984618104/enterpriseint-20), [Cesare Pautasso](http://www.amazon.com/exec/obidos/ASIN/146149298X/enterpriseint-20), [Doug Schmidt](http://www.amazon.com/exec/obidos/ASIN/0471486485/enterpriseint-20), [Joe Yoder](http://www.joeyoder.com/), [Olaf Zimmermann](http://www.amazon.com/exec/obidos/ASIN/3642624685/enterpriseint-20). And I am sure to have forgotten some folks.\n\n## Microservices Workshop\n\nMonday was an all-day [microservices workshop](https://github.com/michaelkeeling/SATURN2015-Microservices-Workshop) setup by George Fairbanks and Michael Keeling. One may feel that there is not much\n left to say about microservices with [Sam's Book](http://www.amazon.com/exec/obidos/ASIN/1491950358/enterpriseint-20) out and [Martin bliki-ing](http://martinfowler.com/articles/microservices.html) about it. Still, thanks to the superb moderation and the caliber of attendants I\n found the workshop to be very useful. We split into subgroups, of which I attended\n the one on \"API Design\", always a topic of interest. We discussed way too many things\n to even fit into a rambling, so here just some sound bites:\n\n- *Interaction Models* : API design focusses too much on data representation and too little on interaction\n models. I am trying to help solve this.\n- *Domain-driven Service Design* : For the data representation aspect and the \"slicing\" of micro services we should\n have a fresh look at Eric Evans' [Domain-driven Design](http://www.amazon.com/exec/obidos/ASIN/0321125215/enterpriseint-20) . Much of his guidance should apply to service design as well. For example, domain\n boundaries might make good service boundaries.\n- *Versioning* : Service API's should be immutable, relegating evolution to new versions. Another\n option is to do what Google did with Stubby and ProtoBufs's: they push the versioning\n problem into the application layer by extending existing data formats with optional\n fields and designing services such that they can accept calls from \"old\" callers who\n do not yet supply the new fields. In the easiest case this is done with defaults,\n but it can require the service to check which fields are present and to execute the\n corresponding version of the service. It's clever, but from my experience it depends\n on thorough documentation of the behavior inside the proto definition files.\n- *It's all connected* : While this sounds like the dream of a person enamored with integration, at the logical\n level things are indeed also interconnected: the current complex systems and rapid\n cycles have too many moving parts and too many client versions to rely on complete\n testing upfront. Therefore you can only test in production, e.g. with canaries (deploying\n new versions to a limited number of servers to see how things go). This raises the\n question whether users are happy if they experience different versions of a service\n or web site, sometimes even ahead of announcement. If your changes are small and incremental,\n it works relatively well. You can have small changes only if you have short release\n cycles -- otherwise you are making no progress. This implies that out of the Micro-services\n / Agile / DevOps mix you cannot arbitrarily pick a subset - its \"all in or nothing\".\n Martin makes a similar argument in his [You must be this tall to use microservices](http://martinfowler.com/bliki/MicroservicePrerequisites.html) article.\n- *Governance* : Do you let 1000 flowers bloom or do you exercise central control? To me this sounds\n like a classic [decision analysis](http://www.amazon.com/exec/obidos/ASIN/0132336243/enterpriseint-20) question: If you decide upfront and exercise governance you have lower cost -- as\n long as you guess right. If you guess wrong you face high rework costs. Letting things\n evolve over time has a higher inherent cost, but also a higher chance of leading to\n the \"right\" answer. Governance also takes many more forms than a fat book and a big hammer. For example\n Netflix (all good exampels these days seem to come from Netflix) provides a client\n library that include circuit-breaker functionality. Of course not everyone uses that\n library. So they run little disturbances in production that causes your service to\n get hung -- this helps adoption!\n- *Dynamic properties* : Mary Shaw reasoned that systems using micro services architectures are emergent,\n meaning you cannot reason about their behavior until they are assembled and running.\n She would place them in the \"implicit invocation\" block of architectural styles because\n the invocation of one method by another is not explicit like in OO systems, but implicit\n like in pub-sub systems.\n- *Monitoring* : In such a dynamic system, monitoring is paramount. Len mentioned that Netflix collects\n 90 metrics for their canaries.\n\n## Mary Shaw Keynote\n\nIn case you did not know, Mary Shaw co-authored the first and seminal book on [Software Architecture](http://www.amazon.com/exec/obidos/ASIN/0131829572/enterpriseint-20) with Davie Garlan. A key aspect of the book is the categorization into \"architectural\n styles\". For example, we cite the [Pipes-and-filters](/PipesAndFilters.html) style in EIP. She described that the concept emerged when she collected a large number\n of technical documents which tended to include roughly 6 column-inches on \"the architecture\n of my system\" supplemented by about 2 column-inches of diagrams. Looking at a large\n number of these sections, certain categories emerged, which after a while solidified\n into architectural styles. Harvesting design patterns is actually a quite similar\n process of looking for common approaches, although the nuances are somewhat different:\n patterns dig deeper into the forces and intents of the recurring solutions.\n\nMary (unsurprisingly) talked about software engineering, with the core thesis whether\n software engineering does in fact deserve to be called engineering. She drew on civil\n engineering, specifically bridges (Cindy would be happy). It's actually quite amazing\n that the methods devised by the Roman's without any theory and very little mathematics\n lasted into the 19th century. A key element to their success was empirical progress:\n they learned from failure and kept refining their concepts. So real-life buildings\n can be agile, at least if you have enough time and cheap labor. If you want to add\n a true classic to your bookshelf, get Vitruvius' [De Architectura](http://www.amazon.com/exec/obidos/ASIN/0486206459/enterpriseint-20) from 25 BC. The science of bridge engineering came much later, e.g in the form of\n tabulation of iron properties in the mid 1750's. A hundred years later engineers were\n able to do a full analysis of a bridge, at least minus [resonance](http://en.wikipedia.org/wiki/Tacoma_Narrows_Bridge_(1940)).\n\nSo how does software engineering compare? In oder to start from the right mental model\n we have to remember that software is design intensive with negligible manufacturing\n cost: coding is design. Manufacturing used to consist of printing CD's but now consists\n mostly of uploading binaries to a distribution site. People often feel that there\n is no science software development or software engineering. Mary showed that there\n is quite some science in software; it just takes 15-20 years from basic research to\n popularization, at which point it is no longer called \"science\". In our world much\n basic research happened in the mid-80ies, e.g. the notion that connectors are as important\n as components. I guess it's time I finish my interaction patterns... The early 90ies\n saw concept formation followed by much development, exemplified in many conference\n tracks on software architecture and engineering. Internal exploration brought focus\n on formal analysis, quality attributes, and methods such as [ATAM](http://en.wikipedia.org/wiki/Architecture_tradeoff_analysis_method). External exploration brought us processes such as RUP and component-based software\n engineering. Popularization was reached in the last 15 years with many standard interfaces\n and frameworks, many of them driven by the evolution of the Web.\n\nBut software engineering still falls short in many aspects. \"I am trying as hard as\n I can\" is not engineering, Mary reminded us. We fall extremely short in making reference\n materials available. Every chemical engineer can reach for his copy of Perry's Handbook\n -- we have no such thing. Even Grady's effort on the grand Handbook of Architecture\n seem to have stalled. One key difference is that Perry's Handbook has a 15 year update\n cycle, something that would not do us much good (side note: it looks like EIP is heading\n for a similar update cycle). Search has become our method of sharing knowledge. While\n this is a fact of life we should consider whether crawling discussion groups is really\n the path to more mature and reliable software engineering.\n\n## Sam Newman on Microservices\n\nIt was great to see Sam again and reminisce about old stories including pasta tongues\n imported from Japan. He gace a great overview of what it means to use microservices.\n Rather than rehash it here I recommend you read his [new book](http://www.amazon.com/exec/obidos/ASIN/1491950358/enterpriseint-20).\n\nLater Simon and Len put Sam on the \"Microservices trial\", which yielded a ton of great\n sound bites and pearls of wisdom, including:\n\n- Box-box-cylinder as architectural style (Simon)\n- Monolith vs. microservices style is like America vs. Europe (Les)\n- Using the network enforces discipline in setting boundaries (Sam)\n- How would you use a [chaos monkey](http://techblog.netflix.com/2012/07/chaos-monkey-released-into-wild.html) with a monolith? You'd have to take the whole system down! (Sam)\n- We should be cautious with standards. UDDI was a \"lets solve a problem we have not\n solved yet\" type of standard (Sam)\n- Tool progress has allowed us to go smaller, e.g. automation, containers (Sam)\n- If you have a brand-new product, first build a monolith, because you won't know where\n the seams are. Then go to microservices later. (Sam)\n\n## Software Architecture as Code\n\nSimon Brown and I bonded on software visualization, especially aided by annotations.\n I should visit Jersey and he should talk with Erik Doernenburg.\n\n## 80 Years of Patterns Impact\n\nSATURN was also a great moment to bring together the 4 authors of our [20 years of patterns' impact paper](/articles.html): Rebecca, Joe, Olaf and myself. I am still entertained by the thought what the odds\n are that you can author a paper with 3 co-authors whose names start with W (Wirfs-Brock),\n Y (Yoder), and Z (Zimmermann). Bobby should talk to some of these guys :-) The 80\n years are maybe a slight exaggeration as for example I was not part of PLoP until\n 2002 when we [workshopped EIP](/ramblings/66_fouryears.html). The picture shows us in correct alphabetical order.\n\nThanks to all for a great event. There were many more great talks and conversations\n (and some Belgian style brews) that I did not manage to write up. And we stayed safe\n despite the ongoing protests in Baltimore. In the end we only saw a single and very\n peaceful protester on the way home.\n\nLast, but certainly not least, I should thank [my muse](http://www.ifs.hsr.ch/Olaf-Zimmermann.11623.0.html?&L=4) for inviting me to SATURN!\n\n*Share:*\n\n*Follow:* [Follow @ghohpe](https://twitter.com/ghohpe) [SUBSCRIBE TO FEED](../ramblings.rss)\n\n*More On:* [EVENTS](/ramblings_events.html) [ARCHITECTURE](/ramblings_architecture.html) [ALL RAMBLINGS](../ramblings.html)\n\nGregor is a cloud architect and author. He is a frequent speaker on asynchronous messaging,\n IT strategy, and cloud.", "znaku_textu": 13591, "slov": 1968, "odkazu": 67, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 15:35:42", "sha256": "41b3b7e6c380cdba47dcfe2568c441536e4aa54248020929d2fc9ca800eaf81d", "hloubka": 4, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://architectelevator.com/blog", "http://www.sei.cmu.edu/saturn/2015/", "http://www.allianz.com/careers", "http://www.amazon.com/exec/obidos/ASIN/0131829572/enterpriseint-20", "http://www.amazon.com/exec/obidos/ASIN/0201379430/enterpriseint-20", "http://www.amazon.com/exec/obidos/ASIN/0134049845/enterpriseint-20", "https://leanpub.com/software-architecture-for-developers", "http://www.amazon.com/exec/obidos/ASIN/0984618104/enterpriseint-20", "http://www.amazon.com/exec/obidos/ASIN/146149298X/enterpriseint-20", "http://www.amazon.com/exec/obidos/ASIN/0471486485/enterpriseint-20", "http://www.joeyoder.com/", "http://www.amazon.com/exec/obidos/ASIN/3642624685/enterpriseint-20", "https://github.com/michaelkeeling/SATURN2015-Microservices-Workshop", "http://www.amazon.com/exec/obidos/ASIN/1491950358/enterpriseint-20", "http://martinfowler.com/articles/microservices.html", "http://www.amazon.com/exec/obidos/ASIN/0321125215/enterpriseint-20", "http://martinfowler.com/bliki/MicroservicePrerequisites.html", "http://www.amazon.com/exec/obidos/ASIN/0132336243/enterpriseint-20", "http://www.amazon.com/exec/obidos/ASIN/0486206459/enterpriseint-20", "http://en.wikipedia.org/wiki/Tacoma_Narrows_Bridge_(1940)", "http://en.wikipedia.org/wiki/Architecture_tradeoff_analysis_method", "http://techblog.netflix.com/2012/07/chaos-monkey-released-into-wild.html", "http://www.ifs.hsr.ch/Olaf-Zimmermann.11623.0.html?L=4", "https://twitter.com/share", "https://twitter.com/ghohpe", "https://leanpub.com/37things"]} {"url": "http://www.enterpriseintegrationpatterns.com/ramblings/85_sameoldarchitecture.html", "titulek": "Same Old Architecture - Best of Ramblings - Enterprise Integration Patterns", "h1": "Same Old Architecture - Best of Ramblings", "popis": "Architects can often be found commenting or complaining that many things in IT are the same old stuff in new packaging, created by marketing departments who were in need of a new buzzword", "klicova_slova": "", "kanonicka": "", "jazyk": "en_US", "robots_meta": "", "og": {"og:type": "article", "og:locale": "en_US", "og:site_name": "Enterprise Integration Patterns", "og:title": "Same Old Architecture - Best of Ramblings", "og:description": "Architects can often be found commenting or complaining that many things in IT are the same old stuff in new packaging, created by marketing departments who were in need of a new buzzword", "og:url": "https://www.enterpriseintegrationpatterns.com/ramblings/85_sameoldarchitecture.html"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Same Old Architecture - Best of Ramblings"}, {"uroven": 2, "text": "12 Years of Ramblings"}, {"uroven": 2, "text": "Composition"}, {"uroven": 2, "text": "Boxes and Lines"}, {"uroven": 2, "text": "Configuration over Coding"}, {"uroven": 2, "text": "Statelessness"}, {"uroven": 2, "text": "Domain Modeling"}, {"uroven": 2, "text": "Drunk Driving"}, {"uroven": 2, "text": "Extracting Architecture from Code"}, {"uroven": 2, "text": "Diagram-driven Design"}, {"uroven": 2, "text": "Conversation Patterns"}, {"uroven": 2, "text": "Writing History"}, {"uroven": 2, "text": "It's Good to be Architect at Allianz!"}], "markdown": "Gregor's Ramblings\n\n---\n\n# Same Old Architecture - Best of Ramblings\n\nMay 15, 2015\n\nFind my posts on IT strategy, enterprise architecture, and digital transformation\n at [ArchitectElevator.com](https://architectelevator.com/blog).\n\nArchitects can often be found commenting or complaining that many things in IT are\n the same old stuff in new packaging, created by marketing departments who were in\n need of a new buzzword. For example, aren't microservices really just SOA done right\n while SOA itself stands for \"Same Old Architecture\"? And the whole reactive movement\n seems to have re-discovered callbacks. Maybe there is some truth in this as at the\n recent [SATURN](84_saturn.html) conferences I found myself saying more often than I had expected \"I blogged about\n this\". So let's see which of my past ramblings are still relevant these days.\n\n## 12 Years of Ramblings\n\nThe [first rambling](01_appliances.html) appeared October 2003, almost 12 years ago. The ramblings were intended the be a\n blog format consisting of short articles, but allowing for the occasional rant or\n personal opinion. They were also a vehicle to keep publishing ideas that arose after\n the book was sent to the printer. The ramblings now count around 127,000 words, which\n is approaching the 185,000 words in the book. The ramblings initially came in pretty\n regularly at a rate of about 2 a month, then slowed a little and took a notable interruption\n of almost 4.5 years from 2010 to 2014. In the first 6.5 years 75 ramblings accumulated,\n which comes out to about one rambling per month. The length of the ramblings is fairly\n uniformly distributed with just a few outliers at the bottom (one being [censored](15_indigo.html) and the other one simply [pointing to an article](52_soapatterns.html)) and one at the top (so much going on at [JAOO 2006](47_jaoo.html)):\n\nIn the old days we would have called all this useless statistics, now it is data science!\n\nThe funny naming scheme of the rambling HTML files actually derives from using rather\n primitive shell scripts for HTML page generation, which needed something simple to\n sort on. As I am approaching 100 ramblings soon I should consider an alternative -\n it looks like I created my own Y2K problem! I am sure the odd naming does not help\n the search rank either.\n\n## Composition\n\nMany discussions on microservices highlight again that separating systems into independent\n components or services enables reuse through re-composition. It also brings new complexities,\n e.g. by having to manage the composition layer at design and run-time. The available\n tools at the run-time composition level often are not up to the level we have come\n to rely on at the coding level, making [Good Composers Few and Far in Between](19_composing.html) (2004).\n\n## Boxes and Lines\n\nDiscussing the architecture of large applications broken down into recomposable services\n places the emphasis on how the individual components interact. Therefore, it is still\n the case that when we speak [Of Boxes and Lines](38_interaction.html) (2006) we should pay a lot more attention to the lines than we usually do: the lines\n define the coupling between components and determine run-time overhead. Poorly sliced\n microservices architectures are bound to be poor performers and provide little benefit.\n\n## Configuration over Coding\n\nAnother recurring theme, especially in vendor presentations and corporate IT departments,\n is the \"no coding required\" pitch. It amazes me how afraid corporate IT can be of\n code, especially since we know that pretty much all value generated by IT comes from\n software, which consists of code. Nevertheless, code is seen as a source of problems\n and bugs created by pesky overpaid programmers who hold the business hostage. Therefore,\n the lure of \"it's just configuration, not coding\" is as strong as ever. While raising\n the level of abstraction is generally beneficial, I don't see the magic line between\n coding and configuring. And often, configuration lacks all the great tools and discipline\n coding benefits from, making it cumbersome and dangerous to \"just\" [Configure this](30_configure.html) (2005).\n\n## Statelessness\n\nIf there is one universally desired property in system design, it's statelessness.\n Especially in cloud-ready systems, statelessness brings horizontal scalability and\n resilience. At the same time, a (probably wise) person also once noted a completely\n stateless system never earned a Dollar. I may even go further and claim that pretty\n much all systems are stateful, so claiming statelessness without specifying at which\n abstraction level can make you an [Enemy of the State](20_statelessness.html) (2004).\n\n## Domain Modeling\n\nA good friend of mine recently showed me a slide titled \"The most widely used domain\n concepts\". In giant letters the slide contained the two words \"int\" and \"string\".\n This reminded me that [March is Not a Number](40_marchnan.html) (2006). I guess [Eric Evans](http://domainlanguage.com/) does not have to worry about job security. His search rank now also easily outdoes\n the one of his \"[actor](http://en.wikipedia.org/wiki/Eric_Evans_%28actor%29)\" namesake.\n\n## Drunk Driving\n\nOK, what does this have to do with software? It's pretty easy: slow feedback loops\n cause systems to overswing. This is what happens during [Drunk driving](21_drunkdriving.html) and in much of IT innovation. We tend to oversteer from one extreme to the other\n before we realize we are too close to the curb. For example, some of our microservices\n will end up being too \"micro\" causing performance degradation and management complexity.\n\n## Extracting Architecture from Code\n\nI really enjoyed [Simon Brown's talk at SATURN 2015](http://www.codingthearchitecture.com/presentations/saturn2015-software-architecture-as-code). He highlighted the fact that architecture is not something abstract and decoupled\n from the code - architecture lives in the code. Therefore it is best to extract the\n architecture from the source code, aided by annotations or similar mechanisms as needed.\n This has the advantage that the architecture diagrams are accurate and always up-to-date.\n Simon's talk reminded me of my work [Visualizing Dependencies](11_dependencies.html) (2004), which showed that my beautiful messaging system was really just a bunch of\n synchronous calls managed by a central instance (and bottleneck). Generated architecture\n diagrams don't lie.\n\n## Diagram-driven Design\n\nSpeaking of pictures, drawing a good picture can be useful design tool, leading to\n [Diagram-driven Design](75_ddd.html) (2010). Digrams are concrete and can accommodate limited levels of abstraction, forcing\n architects to focus on the essentials. If it becomes very difficult to draw a picture\n of a system it may be an indication that the system structure is problematic.\n\n## Conversation Patterns\n\nOne topic high on my mind these days are conversation patterns, which I am currently\n documenting and preparing for publication on this site. Conversation patterns look\n ate stateful exchanges between participants over time, which is a nice complement\n to the message-centric view of [Messaging Patterns](/toc.html). The original trigger for a \"conversation view\" on messaging systems came in 2004\n when I compared [Correlation and Conversations](09_correlation.html).\n\n## Writing History\n\nNot all ramblings are treasures of deep historic relevance. While the concept is still\n relevant, the collection of EAI Art drawn in TIBCO Integration Manager hosted at GeoCities\n and linked from my rambling on [Doodleware](02_doodleware.html) (2003) is long gone. The [Wayback machine](http://web.archive.org/web/20090215191139/http://geocities.com/im_art_competition/IM_ART.html) captured the page but not the images. Luckily I preserved one of them for posteriority\n (see right). Who says integration can't be fun?\n\nAlas, no one talks much about [Mashups](58_mashupcamp.html) (2007) anymore. Facebook has long moved out of their [Developer Garage](61_facebookgarage.html) (2007) and [Google Wave](70_wave.html) (2009) has transcended into Internet Nirvana many moons ago. [Google Developer Day](54_gdd.html) (2007) has long become a [massive conference](69_googleio.html) (2009) with a lottery to buy tickets. Many good developer events like [Colorado Software Summit](64_oopslacss.html) (where you would give each talk 3 times) and SD folded. I am no longer a [Microsoft MVP](49_mvpsummit.html) (2007) and I never installed the copy of Vista I bought at the company store. My\n good intentions to write a [Chapter a Day](73_writing.html) (2010) were good for just two more ramblings before a 4.5 year hiatus.\n\nOn the upshot, ramblings are now categorized via tags as I found myself talking about\n more than just integration and messaging. And the layout got cleaned up a tiny bit.\n In the end the ramblings provide a time capsule with some items as relevant as ever\n and some making you go \"oh my\". Thanks for reading through all these years.\n\n## It's Good to be Architect at Allianz!\n\nI am looking for a top-notch [Cloud Infrastructure Architect](https://www.linkedin.com/jobs2/view/136775174) and a [Principal Software Architect](https://www.linkedin.com/jobs2/view/136775174) to help establish a private cloud infrastructure for one of the largest insurance\n companies in the world and nd re-architect critical core applications to efficiently\n run on it. You'll be working in a highly motivated team of technical experts with\n your hands deep in technology but immediate visibility to board-level management.\n\n*Share:*\n\n*Follow:* [Follow @ghohpe](https://twitter.com/ghohpe) [SUBSCRIBE TO FEED](../ramblings.rss)\n\n*More On:* [INTEGRATION](/ramblings_integration.html) [WRITING](/ramblings_writing.html) [ALL RAMBLINGS](../ramblings.html)\n\nGregor is a cloud architect and author. He is a frequent speaker on asynchronous messaging,\n IT strategy, and cloud.", "znaku_textu": 9848, "slov": 1438, "odkazu": 74, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 15:35:41", "sha256": "b4a7bc0ce564b83e675a39d58c61d39ab13a6f624cd5a0069ccb56d9f1ee0508", "hloubka": 4, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://architectelevator.com/blog", "http://domainlanguage.com/", "http://en.wikipedia.org/wiki/Eric_Evans_(actor)", "http://www.codingthearchitecture.com/presentations/saturn2015-software-architecture-as-code", "http://geocities.com/im_art_competition/IM_ART.html", "https://jobs.allianz.com/sap/bc/bsp/sap/zhcmx_erc_ui_ex/?jobId=55C128F4F6E92260E10080000A670216", "https://www.linkedin.com/jobs2/view/136775174", "https://twitter.com/share", "https://twitter.com/ghohpe", "https://leanpub.com/37things"]} {"url": "http://www.enterpriseintegrationpatterns.com/ramblings/86_isthisarchitecture.html", "titulek": "Is This Architecture? Look for Decisions! - Enterprise Integration Patterns", "h1": "Is This Architecture? Look for Decisions!", "popis": "Part of my job is to review system architectures", "klicova_slova": "", "kanonicka": "", "jazyk": "en_US", "robots_meta": "", "og": {"og:type": "article", "og:locale": "en_US", "og:site_name": "Enterprise Integration Patterns", "og:title": "Is This Architecture? Look for Decisions!", "og:description": "Part of my job is to review system architectures", "og:url": "https://www.enterpriseintegrationpatterns.com/ramblings/86_isthisarchitecture.html"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Is This Architecture? Look for Decisions!"}, {"uroven": 2, "text": "Defining Software Architecture"}, {"uroven": 2, "text": "(Building) Architectural Decisions"}, {"uroven": 2, "text": "Fit for Purpose"}, {"uroven": 2, "text": "Passing the Test"}, {"uroven": 2, "text": "Know how to tell Architecture? Do it with us at Allianz!"}], "markdown": "Gregor's Ramblings\n\n---\n\n# Is This Architecture? Look for Decisions!\n\nJune 15, 2015\n\nFind my posts on IT strategy, enterprise architecture, and digital transformation\n at [ArchitectElevator.com](https://architectelevator.com/blog).\n\nPart of my job is to review system architectures. So I frequently ask teams to show\n me \"their architecture\", but almost as frequently I don't consider what I receive\n an architecture document. The inevitable question \"what do you expect?\" is also not\n so easy for me to answer: despite many formal definitions it's not immediately clear\n what architecture is or whether a document really depicts an architecture. Too often\n we have to fall back to the \"I know it when I see it\" test famously applied to obscene\n material by the Supreme Court. We'd hope that identifying architecture is a more noble\n task than identifying obscene material, so let's try a little harder. I am not a big\n believer in all-encompassing definitions, but tend to use lists of defining characteristics\n or tests that can be applied. One of my favorite tests for architecture documentation\n is whether it contains any non-trivial decisions and the rationale behind them.\n\n## Defining Software Architecture\n\nEnough attempts at defining software architecture have been made that the [Software Engineering Institute](http://www.sei.cmu.edu/) maintains a [reference page of architecture definitions.](http://www.sei.cmu.edu/architecture/start/glossary/classicdefs.cfm)\n\nThe most widely used definitions are likely the one from Garlan and Perry from 1995:\n\nThe structure of the components of a system, their interrelationships, and principles\n and guidelines governing their design and evolution over time\n\nthe ANSI/IEEE Std 1471 version from 2000 (adopted as ISO/IEC 42010 in 2007):\n\nThe fundamental organization of a system, embodied in its components, their relationships\n to each other and the environment, and the principles governing its design and evolution\n\nand the [TOGAF variation](http://www.opengroup.org/public/arch/p1/togaf_faq.htm) thereof:\n\nThe structure of the components, their interrelationships, and principles and guidelines\n governing their design and evolution over time\n\nOne of my personal favorites is from Desmond D'Souza's and Alan Cameron Wills' book\n [Objects, Components, and Frameworks with UML: The Catalysis(SM) Approach](http://www.amazon.com/exec/obidos/ASIN/0201310120/enterpriseint-20) (1998):\n\nDesign decisions about any system that keep implementors and maintainers from exercising\n needless creativity\n\nThe key point here is not that architecture should dampen all creativity, but *needless* creativity, of which I witness ample amounts. I also like the mention of *decisions*. Decision-making is a big part of what an architect does and that's why I like books\n like Ron Howard's [Foundations of Decision Analysis](http://www.amazon.com/exec/obidos/ASIN/0132336243/enterpriseint-20) and Coursera courses like Scott Page's [Model Thinking](https://www.coursera.org/course/modelthinking).\n\n## (Building) Architectural Decisions\n\nDespite these well-thought-out definitions, it's not easy to apply them when someone\n walks up with a PowerPoint slide showing boxes and lines and claims \"this is the architecture\n of my system\". The first test I tend to apply is whether the documentation contains\n meaningful decisions. After all, if no decisions need to be made, why do we need an\n architect and architectural documentation?\n\nI am a big fan of [Martin Fowler's](http://www.martinfowler.com/) knack for explaining the essence of things using extremely simple examples. This\n motivated me to illustrate the \"architectural decision test\" with the simplest example\n I could think of, drawing from the (admittedly limping) analogy to building architecture.\n I even took it upon myself to supply the artwork to make sure things end up about\n as basic as one could wish for and to pay homage to [Alexander's Pattern Sketches](67_patterns.html):\n\nLet's look at the drawing of a house on the left. It has many of the elements that\n we desire in the popular definitions of systems architecture: we see the main *components of the system* (door, windows, roof) and their *interrelationships* (door and windows in the wall, roof on the top). We might be a tad thin, though,\n on *principles governing its design*, but we do notice that we have a single door that reaches the ground and multiple\n windows, which follows common building principles.\n\nYet, to build such a house I would not want to pay an architect. To me this house\n is \"cookie-cutter\", meaning I don't see any non-obvious decisions that an architect\n would have made. Consequently, I would not consider this architecture.\n\nLet's compare this to the sketch on the right-hand side. The sketch is equally simple\n and poorly drawn and the house is almost the same, except for the roof. This house\n has a steep roof and for a good reason: the house is designed for a cold climate where\n winters bring extensive snowfall. Snow is quite heavy and can easily overload the\n roof of the house. A steep roof allows the snow to [slide off](https://www.youtube.com/watch?v=KU58pO74ELg) or be [easily removed](https://www.youtube.com/watch?v=_Po-qpUZ6pE) thanks to gravity, a pretty cheap and widely available resource. Additionally, an\n overhang prevents the sliding snow from piling up right in front of the windows.\n\nTo me, this is architecture: non-trivial decisions have been made and documented.\n The decisions are driven by the system context, in this case the climate. The documentation\n highlights the decisions and omits unnecessary noise.\n\nIf you believe these architectural decisions were all too obvious, let's look at a\n very different house:\n\nThis house looks very different because it was designed for a very different climate:\n a hot and sunny one. This allows the walls to be made out of glass as insulation against\n low temperatures is less of a concern. However, walls of glass have the problem that\n the sun heats up the building making it feel more like a greenhouse. A flat roof is\n no problem in this climate, so extending the roof well beyond the glass walls provides\n shade in the hot summer when the sun is high in the sky. In the winter, when the sun\n is low on the horizon, the sun reaches through the windows and helps warm the building\n interior. Again, we see a fairly simple, but fundamental architectural decision documented\n in an easy-to-understand format that highlights the essence of the decision and the\n rationale behind it.\n\nIf you think the idea of building an overhanging roof is not all that original or\n significant, try buying one of the first homes to feature such a design, e.g. the\n [Case Study House No 22](http://www.stahlhouse.com/) in Los Angeles by architect Pierre Koenig. It's easily in the league for the most\n recognized residential building in Los Angeles or beyond (aided by [Julius Shulman's iconic photograph](http://www.stahlhouse.com/index.php?option=com_content&view=article&id=2&Itemid=113)) and is obviously not for sale. No one is perfect, though: UCLA PhD students have\n measured that the overhang [works better on the south-facing facade](http://www.cpp.edu/~pmlaroche/rdocs/LA_ROCHE_PLEA2002.pdf) than west or east.\n\n## Fit for Purpose\n\nThe simple house example also highlights another important property of architectures:\n rarely is an architecture simply \"good\" or \"bad\". Rather, architecture tends to be\n fit or unfit for purpose. A house with glass walls and a flat roof may be regarded\n as great architecture, but probably not in the Swiss Alps where it'll collapse after\n a few winters or get a leaking roof. Even the dreaded [Big Ball of Mud](http://www.laputan.org/mud/) has its place in \"fit for purpose\" architectures, e.g. when you need to make a deadline\n at all cost and can't care much about what happens afterwards. This may not be the\n context you wish for, but just like houses in some regions have to be earthquake proof,\n some architectures have to be management-proof.\n\n## Passing the Test\n\nHaving stretched the overused building architecture analogy one more time, how do\n we translate this back to software systems architecture? Systems architecture does\n not have to be something terribly complicated. It must include, however, significant\n decisions that are documented and are based on a clear rationale. The word \"significant\"\n may be open to some interpretation and depend on the level of sophistication of the\n organization, but \"we separate front-end from back-end code\", \"we use monitoring\",\n or \"migrating systems is risky\" surely have the ring of \"my door reaches the ground\n so people can walk in\" or \"I put windows in the walls so light can enter\". Instead,\n when discussing architectures let's talk about what is not obvious or something that\n involved heavy trade-offs. For example, \"do you use a service layer and why?\" (some\n people may find even this obvious) or \"why do you use a session-oriented conversation\n protocol?\"\n\nIt's quite amazing how many \"architecture documents\" do not pass this relatively simple\n test. I hope using the building analogy provides a simple and non-threatening way\n to provide feedback and to motivate architects to better document their designs and\n decisions.\n\n## Know how to tell Architecture? Do it with us at Allianz!\n\nI am looking for top-notch [Cloud Infrastructure Architects](https://www.linkedin.com/jobs2/view/136775174) and [Principal Software Architects](https://www.linkedin.com/jobs2/view/136775174) for my team. We are building a private cloud infrastructure for one of the largest\n insurance companies in the world and re-architect critical core applications to efficiently\n run on it. You'll be working in a highly motivated team of technical experts who understand\n what architecture is.\n\n*Share:*\n\n*Follow:* [Follow @ghohpe](https://twitter.com/ghohpe) [SUBSCRIBE TO FEED](../ramblings.rss)\n\n*More On:* [ARCHITECTURE](/ramblings_architecture.html) [ALL RAMBLINGS](../ramblings.html)\n\nGregor is a cloud architect and author. He is a frequent speaker on asynchronous messaging,\n IT strategy, and cloud.", "znaku_textu": 10080, "slov": 1503, "odkazu": 59, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 15:35:23", "sha256": "ee1319defa76e2c27e5cade20780e4391a2d54141f92498ed861cade8a81bf41", "hloubka": 4, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://architectelevator.com/blog", "http://www.sei.cmu.edu/", "http://www.sei.cmu.edu/architecture/start/glossary/classicdefs.cfm", "http://www.opengroup.org/public/arch/p1/togaf_faq.htm", "http://www.amazon.com/exec/obidos/ASIN/0201310120/enterpriseint-20", "http://www.amazon.com/exec/obidos/ASIN/0132336243/enterpriseint-20", "https://www.coursera.org/course/modelthinking", "http://www.martinfowler.com/", "https://www.youtube.com/watch?v=KU58pO74ELg", "https://www.youtube.com/watch?v=_Po-qpUZ6pE", "http://www.stahlhouse.com/", "http://www.stahlhouse.com/index.php?Itemid=113&id=2&option=com_content&view=article", "http://www.cpp.edu/~pmlaroche/rdocs/LA_ROCHE_PLEA2002.pdf", "http://www.laputan.org/mud/", "https://jobs.allianz.com/sap/bc/bsp/sap/zhcmx_erc_ui_ex/?jobId=55C128F4F6E92260E10080000A670216", "https://www.linkedin.com/jobs2/view/136775174", "https://twitter.com/share", "https://twitter.com/ghohpe", "https://leanpub.com/37things"]} {"url": "http://www.enterpriseintegrationpatterns.com/ramblings/87_matryoshka.html", "titulek": "Virtualization Matryoshka - Enterprise Integration Patterns", "h1": "Virtualization Matryoshka", "popis": "IT loves virtualizing stuff, following the old rule that in computer science every problem can be solved by just one more level of indirection", "klicova_slova": "", "kanonicka": "", "jazyk": "en_US", "robots_meta": "", "og": {"og:type": "article", "og:locale": "en_US", "og:site_name": "Enterprise Integration Patterns", "og:title": "Virtualization Matryoshka", "og:description": "IT loves virtualizing stuff, following the old rule that in computer science every problem can be solved by just one more level of indirection", "og:url": "https://www.enterpriseintegrationpatterns.com/ramblings/87_matryoshka.html"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Virtualization Matryoshka"}, {"uroven": 2, "text": "What is Virtualization?"}, {"uroven": 2, "text": "Levels of Virtualization"}, {"uroven": 2, "text": "Why Do We Want to Virtualize Everything?"}, {"uroven": 2, "text": "The Virtualization Matryoshka"}, {"uroven": 2, "text": "Slimming Down"}], "markdown": "Gregor's Ramblings\n\n---\n\n# Virtualization Matryoshka\n\nJuly 15, 2015\n\nFind my posts on IT strategy, enterprise architecture, and digital transformation\n at [ArchitectElevator.com](https://architectelevator.com/blog).\n\nIT loves virtualizing stuff, following the old rule that in computer science every\n problem can be solved by just one more level of indirection. Cloud computing is based\n on virtualization of compute resources - you don't need to know which physical machine\n your application is actually running on and you can get new ones with the click of\n a button. Before cloud was a buzzword, though, VMware and others have virtualized\n machines at the operating system levels. Recently (in terms of buzz, not technology),\n containers bring another level of light-weight virtualization of computing resources.\n And let's not forget the Java Virtual Machine, which also claims a level of virtualization.\n What are we supposed to do with all these levels of virtualization?\n\n## What is Virtualization?\n\nVirtualization turns physical resources into logical resources, which are more flexible\n and often available on demand. Think of it as a rental car as opposed to owning a\n car: you can rent a convertible in nice weather, a four-wheel-drive in the winter\n and a wagon (estate) for hauling stuff. And you pay for them only when you need them.\n Buying all these cars would be highly inefficient, especially when you rarely use\n them (I actually own a wagon and a convertible, so I know). Making things virtual\n allows you to create new instances of something from existing resources - like renting\n a car from a large pool. In the software world we have some added flexibilities: we\n can instantiate different operating systems, such as Windows or Linux, on the same\n hardware and a hypervisor or can turn one large physical machine into multiple small\n virtual machines. This is where the rental car analogy runs out of steam: turning\n wagons into convertibles is a lot harder and one car can hardly be segmented into\n two motorcycles.\n\n## Levels of Virtualization\n\nOS-level virtualization has been around for a long time. A hypervisor manages and\n abstracts machine hardware, so you can create new operating system instances of varying\n flavors and sizes on a fixed set of physical hardware. This is old news in the mainframe\n world and the likes of VMware have been offering this for quite some time on x86 platforms,\n reducing machine deployment times and costs while increasing resource utilization.\n\nMost internet giants don't use hypervisors internally, though, because they carry\n a certain overhead in the 5-15% range and cost a good bit of licensing money if you\n use a commercial product. If you have 100 machines this is likely not a big deal,\n but if you have 100,000 machines, you are going to want something different. Most\n public clouds do use hypervisors, e.g. KVM for Google Compute Engine or Xen for [Amazon EC2](http://aws.amazon.com/de/ec2/), because they have to support multiple operating system vendors and versions.\n\nToday's large computing infrastructures often use containers, typically based on [Linux LXC](http://en.wikipedia.org/wiki/LXC) technology: multiple containers run on a single operating system instance and thus\n carry less overhead than separate OS instances. They usually also provide less isolation\n between instances -- something to consider if your business requires PCI compliance\n or the like. Big infrastructures typically use cluster management software like [Mesos](http://mesos.apache.org/) or [Kubernetes](http://kubernetes.io/) to allocate workload across a large number of containers. We did this at Google many\n years ago at grand scale.\n\nThe Java virtual Machine was also popularized as the virtualization layer of choice\n - \"write once - run anywhere\". In addition to byte code abstraction, J2EE containers\n also provided run-time abstraction by managing multiple applications running on a\n single server by means of thread pools and the like. Multiple Java applications can\n be hot-deployed to such (Java) containers through WAR files.\n\nMany of today's modern software stacks also provide a level of virtualization by operating\n independently from the number and identity of the compute nodes underneath. MapReduce\n and its cousins are built on this principle: they manage workload distribution, process\n restarts and all the other nasty stuff inside their framework. On one hand, this allows\n the application to not have to worry about it and and on the other hand it reduces\n the need for infrastructure management features.\n\n## Why Do We Want to Virtualize Everything?\n\nVirtualization has a clear user benefit: computing resources become available on demand\n without setting up and wiring new physical hardware. Better yet, the virtualization\n layer makes this (largely) transparent to the application layer by abstracting implementation\n details. The ability to divide physical resources into many logical units also improves\n utilization and therefore cost efficiency: you can buy larger servers and use them\n in small increments without changing the way the software is written.\n\nVendors love to provide a virtualization layer for another reason: it positions them\n right in the middle of the computing ecosystem, holding a central role that is difficult\n to replace. For example, VMware ESX is widely used and central to many IT infrastructures.\n While the hardware virtualization is largely transparent to the application, provisioning\n and management tools are not and result in a certain amount of vendor lock-in. [OpenStack](https://www.openstack.org/) will bring some relief in this area, but implementation maturity still varies.\n\n## The Virtualization Matryoshka\n\nHow many virtualization layers does one need, though? Running a Java App in a Java\n Container in a Linux container on top of a virtual machine starts to look like a [Matryoshka Doll](http://en.wikipedia.org/wiki/Matryoshka_doll): little dolls stacked one inside the other. I call this **Virtualization Matryoshka**: many layers of virtualization stacked inside each other. While matryoshka dolls\n are entertaining, you probably have a feeling that this is not the most efficient\n setup for a run-time infrastructure.\n\n## Slimming Down\n\nToo many layers not only bring complexity and overhead, but also don't add much benefit.\n The natural question then is what layer(s) we should eliminate. For Java applications,\n we probably do want to keep the JVM, but there is a clear trend towards lighter-weight,\n embedded containers whose job is not to run many applications, but a single application\n with as little abstraction as possible. This does away with one virtualization layer\n at the application server level.\n\nPaaS (Platform-as-a-service) platforms, which tend to leverage containers, are starting\n to eliminate the operating system VM layer by deploying on physical machines in a\n so-called \"bare metal PaaS\" approach. You will need a component that manages these\n physical machines, but much of that can be hidden underneath the PaaS model, making\n it largely transparent to the application deployer. OpenStack is also looking at a\n bare-metal implementation of Nova, which runs under the name [Ironic](http://docs.openstack.org/developer/ironic/deploy/user-guide.html). All we need is an implementation for [open compute](http://www.opencompute.org/) and we are set to go.\n\nRemoving layers will provide an up-tick in performance and reduced license cost for\n the virtualization layer. This may be most pronounced in I/O heavy and low-latency\n or high-performance compute applications. I believe eliminating a few layers of virtualization\n is a healthy trend. Layering is fine - [Matryoshka Dolls](http://en.wikipedia.org/wiki/Matryoshka_doll) are amusing but not efficient.\n\n*Share:*\n\n*Follow:* [Follow @ghohpe](https://twitter.com/ghohpe) [SUBSCRIBE TO FEED](../ramblings.rss)\n\n*More On:* [ARCHITECTURE](/ramblings_architecture.html) [CLOUD](/ramblings_cloud.html) [ALL RAMBLINGS](../ramblings.html)\n\nGregor is a cloud architect and author. He is a frequent speaker on asynchronous messaging,\n IT strategy, and cloud.", "znaku_textu": 8107, "slov": 1203, "odkazu": 51, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 15:35:40", "sha256": "ec9bd3cf51b37dca26ed1db6638bdef28fc4e186d32f50c7280b3dc3b98d4512", "hloubka": 4, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://architectelevator.com/blog", "http://aws.amazon.com/de/ec2/", "http://en.wikipedia.org/wiki/LXC", "http://mesos.apache.org/", "http://kubernetes.io/", "https://www.openstack.org/", "http://en.wikipedia.org/wiki/Matryoshka_doll", "http://docs.openstack.org/developer/ironic/deploy/user-guide.html", "http://www.opencompute.org/", "https://twitter.com/share", "https://twitter.com/ghohpe", "https://leanpub.com/37things"]} {"url": "http://www.enterpriseintegrationpatterns.com/ramblings/88_moviestararchitects.html", "titulek": "Movie Star Architects - Enterprise Integration Patterns", "h1": "Movie Star Architects", "popis": "I recently wrote about architects and the role they play in large organizations", "klicova_slova": "", "kanonicka": "", "jazyk": "en_US", "robots_meta": "", "og": {"og:type": "article", "og:locale": "en_US", "og:site_name": "Enterprise Integration Patterns", "og:title": "Movie Star Architects", "og:description": "I recently wrote about architects and the role they play in large organizations", "og:url": "https://www.enterpriseintegrationpatterns.com/ramblings/88_moviestararchitects.html"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Movie Star Architects"}, {"uroven": 2, "text": "The Matrix - The Master Planner"}, {"uroven": 2, "text": "Edward Scissorhands - The Gardener"}, {"uroven": 2, "text": "Name the Movie (Vanishing Point?) - Guide"}, {"uroven": 2, "text": "The Wizard of Oz"}, {"uroven": 2, "text": "Superhero? Superglue!"}, {"uroven": 2, "text": "Making the Call"}, {"uroven": 2, "text": "Looking for (Movie) Star Architects"}], "markdown": "Gregor's Ramblings\n\n---\n\n# Movie Star Architects\n\nAug 1, 2015\n\nFind my posts on IT strategy, enterprise architecture, and digital transformation\n at [ArchitectElevator.com](https://architectelevator.com/blog).\n\nI [recently](/ramblings_architecture.html) wrote about architects and the role they play in large organizations. Still, the\n question often remains what an architect should be doing besides [riding the elevator](79_elevator.html). Let's try another analogy: movie characters.\n\nBefore the movie starts, we'll watch some previews or commercials, in our case the\n origin of the work \"architect\". It derives from the Greek [ἀρχιτέκτων](https://en.wiktionary.org/wiki/%E1%BC%80%CF%81%CF%87%CE%B9%CF%84%CE%AD%CE%BA%CF%84%CF%89%CE%BD) (\"architekton\"), which roughly translates into \"chief builder\". We have to keep in\n mind that this word was meant for people who built houses and structures, not IT systems.\n We should also note that the word implies \"builder\", not \"designer\" - an architect\n should be someone who builds, not someone who draws pretty pictures. But now to the\n main feature...\n\n## The Matrix - The Master Planner\n\nIf you ask (tech) folk to name a prototypical architect in the movies you are likely\n to hear [The Matrix](http://www.imdb.com/title/tt0133093) trilogy. The architect of the Matrix is a \"cold, humorless, white-haired man in a\n light gray suit\" ([Wikipedia](http://en.wikipedia.org/wiki/Architect_%28The_Matrix%29)), which he largely owes to the fact that he is a computer program himself. Wikipedia\n also describes that the architect \"speaks in long logical chains of reasoning\", something\n that many IT architects are known to do. So perhaps the analogy holds?\n\nThe Matrix architect is also the ultimate authority: he designed the Matrix (a computer\n program to simulate reality to humans being farmed by machines as an energy source)\n and knows and controls everything. Enterprise architects are sometimes seen as such\n a person - the all-knowing decision maker. Some even wish themselves into such a role,\n partly because it is neat to be all-knowing and partly because it gets you a lot of\n respect. Naturally, this role model has some issues: all-knowingness is a little\n (too) challenging for humans, meaning we should expect a fair amount of bad decision\n making and all sorts of other problems. Even if the architect is a super smart person,\n he or she can base decisions only on those facts that are known to them. In large\n companies, this inevitably means relying on PowerPoint slides or statements from middle\n management as it is impossible to be in touch with all technology that is in place.\n Such an information channel to the supreme decision maker tends to be heavily guarded\n by people who understand its value as an influencing vehicle, which results in the\n architect being fed indirect, often biased information, as opposed to reality. Making\n decisions based on such a model is dangerous. The antidote would be to [ride the elevator](79_elevator.html) more often, but that won't be feasible on a broad scale in complex environments.\n\nIn summary: Corporate IT is no movie and its role isn't to provide an illusion for\n humans being farmed as power sources. We should be cautious with this role model.\n\nFun fact: [Vint Cerf](https://en.wikipedia.org/wiki/Vint_Cerf) looks awfully similar to the Matrix architect. Considering he designed much of the\n Matrix we live in this may not be a coincidence.\n\n## Edward Scissorhands - The Gardener\n\nA slightly more fitting analogy is that of a gardener. I tend to depict this metaphor\n with a character from one of my favorite movies, [Edward Scissorhands](http://www.imdb.com/title/tt0099487/). Large-scale IT is much like a garden: things evolve and grow on their own. Weeds\n tend to grow the fastest. The role of the gardener is to trim and prune what does\n not fit and to establish an overall balance and harmony in the garden, keeping in\n mind plants' needs, for example by planting shade-loving plants near large trees or\n bushes. A good gardener is no dictatorial master planner and certainly does not make\n all the detailed decisions about which direction a strain of grass should grow --\n Japanese gardens being a possible exception. Rather, the gardener sees him or herself\n as the care taker of a living ecosystem. Some gardeners, like Edward, are true artists!\n\nI like this analogy as it has a \"soft\" touch to it. Complex enterprise IT does feel\n organic and good architecture has a sense of balance, which can also often be found\n in a garden. Top-down governance with weed killer is unlikely to have a lasting effect\n and usually does more harm than good, as does planting flowers in winter to mimic\n a beautiful garden. Whether this thinking leads to a new application for [The Nature of Order](http://www.amazon.com/exec/obidos/ASIN/0972652914/enterpriseint-20) I am not sure yet. I should go read it.\n\n## Name the Movie (Vanishing Point?) - Guide\n\n[Erik Doernenburg](http://erik.doernenburg.com/), ThoughtWorks' Head of Technology Europe, introduced me to another very apt metaphor.\n Erik closely works with many software projects, which tend to loathe the ostensibly\n all-knowing, all-decision-making architect who is disconnected from reality. Erik\n even coined the term [architecture without architects](http://erik.doernenburg.com/2014/12/new-recording-of-architecture-without-architects/), which might make some of us architects worry about our career.\n\nErik likens an architect to a tour guide, someone who has been to a place before many\n times and can gently guide you to pay attention to special aspects or also warn you\n about certain risks. This is a guiding role: tour guides cannot force their guests\n to follow their advice, except maybe those who drop a bus load of tourists off at\n a tourist trap restaurant in the middle of nowhere.\n\nThis type of architect has to \"lead by influence\" and has to be hands-on enough to\n earn the respect of those he or she is leading. The tour guide also stays along for\n the ride and does not just hand a map to the tourists like some consultant architects\n are known to do. An architect who acts as a guide often depends on strong management\n support because evidence that good things happened due to his or her guidance may\n be subtle. In purely \"business case-driven\" environments this could be limiting the\n \"tour guide\" architect's impact or career.\n\nA great movie analogy for the tour guide has not yet come to my mind. [Charlie](http://www.imdb.com/title/tt0367594/) tours the kids around the Chocolate Factory, but he certainly has a stronger and\n slightly more devious agenda than the tour guide we are thinking about.\n\nUpdate: A unconventional guide out of another one of my favorite movies is the blind [DJ SuperSoul](https://www.google.com/search?q=super+soul+cleavon+little+vanishing+point&safe=off&source=lnms&tbm=isch&sa=X/) from the 1971 road movie [Vanishing Point](http://www.imdb.com/title/tt0067927/). Like so may IT projects the movie's protagonist, Kowalski, is on a kind of death\n march with an impossible deadline to meet and numerous obstacles along the way. He\n is not delivering code, but a 1970 Dodge Challenger R/T 440 Magnum from Denver to\n San Francisco - in 15 hours. Kowalski is being guided by the blind DJ SuperSoul who\n has tapped the police network - just as with architects being plugged into the management\n network is crucial. The guide tracks progress and keeps the hero clear of all sorts\n of traps police / management has setup. After Super Soul is compromised by \"management\",\n the \"project\" gets adrift and ends like too many IT projects: in a fiery crash.\n\n## The Wizard of Oz\n\nArchitects can sometimes be seen as wizards that can solve just about any technical\n challenge. While that can be a short-term ego boost, it's not a good job description\n and expectation to live up to. Hence by the \"wizard\" architect analogy I don't mean\n an actual wizard waving the magic wand, but the \"Mighty Oz\" - a video projection that\n appears large and powerful, but is in fact controlled by a mere human \"wizard\", who\n turns out to be an ordinary man who uses the big machinery to garner respect.\n\nA gentle dose of such engineered deception can be of use in large organizations where\n \"normal\" developers are rarely involved in management discussions or major decisions.\n This is where the \"architect\" title can be used to make oneself a bit more \"great\n and mighty\": the projection can garner the respect of the general (more easily fooled)\n population and can even be a precondition to be able to [take the elevator to the top floors](79_elevator.html). Is this cheating? I would say \"no\" as long as you don't get enamored in so much\n wizardry that you forget about your technical roots.\n\n## Superhero? Superglue!\n\nSimilar to the wizard, another expectation of the architect is that of the superhero:\n if you believe some job postings, enterprise architects can single-handedly catapult\n companies into the digital age, solve about any technical problem, and are always\n up-to-date on the latest technology. These are tough expectations to live up to, so\n I'd caution any architect against taking advantage of this common misconception.\n\nAmir Shenhav from Intel therefore pointed out that instead of the super hero we need\n \"super glue\" architects - the guys who hold architecture, technical details, business\n needs, and people together across a large organization or complex projects. I like\n this metaphor as it resembles the analogy of an architect being a catalyst. We just\n have to be a little careful: being the glue (or catalyst) means understanding a good\n bit about the things you glue together. We don't talk about the architect as pure\n match maker.\n\n## Making the Call\n\nWhich type of architect should one be? First, there are likely many more types and\n movie analogies. You could play \"Inception\" and create architectural dream worlds\n with a (dangerous) twist. Or be one of the two impostors debating Chilean architecture\n in \"There's Something about Mary\" or (more creepily) Anthony Royal in the upcoming\n \"High-rise\" - the opportunities are manifold.\n\nIn the end, most architects exhibit a combination of these prototypical stereotypes.\n Periodic gluing, gardening, guiding, impressing and a little bit of all-knowing every\n now-and-then can make for a pretty good architect.\n\n## Looking for (Movie) Star Architects\n\nOur team is still growing! I am looking for one more senior [Cloud Infrastructure Architect](https://www.linkedin.com/jobs2/view/136775174) to join my team at [Allianz](https://www.allianz.com/en/products_solutions/global_lines/amos/amos.html) in Munich.\n\n*Share:*\n\n*Follow:* [Follow @ghohpe](https://twitter.com/ghohpe) [SUBSCRIBE TO FEED](../ramblings.rss)\n\n*More On:* [ARCHITECTURE](/ramblings_architecture.html) [ALL RAMBLINGS](../ramblings.html)\n\nGregor is a cloud architect and author. He is a frequent speaker on asynchronous messaging,\n IT strategy, and cloud.", "znaku_textu": 10924, "slov": 1674, "odkazu": 57, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 15:35:39", "sha256": "11ffeb683646db9102c6be1a80214d272f3baa10b4c1363b981d65fbb293239c", "hloubka": 4, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://architectelevator.com/blog", "https://en.wiktionary.org/wiki/%E1%BC%80%CF%81%CF%87%CE%B9%CF%84%CE%AD%CE%BA%CF%84%CF%89%CE%BD", "http://www.imdb.com/title/tt0133093", "http://en.wikipedia.org/wiki/Architect_(The_Matrix)", "https://en.wikipedia.org/wiki/Vint_Cerf", "http://www.imdb.com/title/tt0099487/", "http://www.amazon.com/exec/obidos/ASIN/0972652914/enterpriseint-20", "http://erik.doernenburg.com/", "http://erik.doernenburg.com/2014/12/new-recording-of-architecture-without-architects/", "http://www.imdb.com/title/tt0367594/", "https://www.google.com/search?q=super+soul+cleavon+little+vanishing+point&sa=X%2F&safe=off&source=lnms&tbm=isch", "http://www.imdb.com/title/tt0067927/", "https://www.linkedin.com/jobs2/view/136775174", "https://www.allianz.com/en/products_solutions/global_lines/amos/amos.html", "https://twitter.com/share", "https://twitter.com/ghohpe", "https://leanpub.com/37things"]} {"url": "http://www.enterpriseintegrationpatterns.com/ramblings/89_zombies.html", "titulek": "If you never kill anything, you will live among zombies. And they will eat your brain. - Enterprise Integration Patterns", "h1": "If you never kill anything, you will live among zombies. And they will eat your brain.", "popis": "Corporate IT lives among zombies: old systems that are half alive and have everyone in fear of going anywhere near them", "klicova_slova": "", "kanonicka": "", "jazyk": "en_US", "robots_meta": "", "og": {"og:type": "article", "og:locale": "en_US", "og:site_name": "Enterprise Integration Patterns", "og:title": "If you never kill anything, you will live among zombies. And they will eat your brain.", "og:description": "Corporate IT lives among zombies: old systems that are half alive and have everyone in fear of going anywhere near them", "og:url": "https://www.enterpriseintegrationpatterns.com/ramblings/89_zombies.html"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "If you never kill anything, you will live among zombies. And they will eat your brain."}, {"uroven": 2, "text": "Legacy"}, {"uroven": 2, "text": "Fear of Change"}, {"uroven": 2, "text": "Fear of Code"}, {"uroven": 2, "text": "Lack of Feedback"}, {"uroven": 2, "text": "Version Upgrades"}, {"uroven": 2, "text": "Run vs. Change"}, {"uroven": 2, "text": "Planned Obsolescence"}, {"uroven": 2, "text": "If it hurts, do it more often"}, {"uroven": 2, "text": "Culture of Change"}, {"uroven": 2, "text": "Brave enough to kill some zombies?"}], "markdown": "Gregor's Ramblings\n\n---\n\n# If you never kill anything, you will live among zombies. And they will eat your brain.\n\nSept 27, 2015\n\nFind my posts on IT strategy, enterprise architecture, and digital transformation\n at [ArchitectElevator.com](https://architectelevator.com/blog).\n\nCorporate IT lives among zombies: old systems that are half alive and have everyone\n in fear of going anywhere near them. They are also tough to kill completely. Worse\n yet, they eat IT staff's brains. It's like [Shaun of the Dead](http://www.imdb.com/title/tt0365748) minus the funny parts.\n\n## Legacy\n\nLegacy systems are systems that are built on outdated technology, are often poorly\n documented, but (ostensibly) still perform important business functions -- in many\n cases, the exact scope of the function they perform is not completely known. Systems\n often fall into the state of legacy because technology moves faster than the business:\n life insurance systems often must maintain data and functionality for many decades,\n rendering much of the technology used to build the system obsolete. With a bit of\n luck, the systems don't have to be updated anymore, so IT may be inclined to \"simply\n let it run\", following the popular advice to \"never touch a running system\". However,\n changing regulations or security vulnerabilities in old versions of the application\n or the underlying software stack make this a pretty poor approach.\n\nWhen confronted with the problem traditional IT often cites the need to support the\n business. They also often claim that digital companies don't have such problems because\n they have no legacy. Interestingly, when Mike Feathers came to Google to give a talk\n about [Working Effectively with Legacy Code](http://www.amazon.com/exec/obidos/ASIN/0131177052/enterpriseint-20), almost 150 developers attended, making this a questionable assumption. Because Google's\n systems evolve rapidly they also accumulate legacy more quickly. So it's not that\n they have been blessed with not having legacy, but they simply found a way to deal\n with it.\n\n## Fear of Change\n\nSystems become legacy zombies by not evolving with the technology. This happens in\n classic IT largely because change is seen as a risk. Once again: \"never touch a running\n system\". System releases are based on extensive test cycles that can last months,\n making updates or changes a costly endeavor. Worse yet, there is no \"business case\"\n for updating the system. This widespread logic is about as sound as considering changing\n the oil in your car a waste of money – after all the car still runs if you don't.\n And it even makes your quarterly P&L look a little better.\n\nA team from Credit Suisse described how to counterbalance this trap in their aptly\n titled book [Managed Evolution](http://www.amazon.com/exec/obidos/ASIN/3642016324/enterpriseint-20). The key driver for managed evolution is to maintain agility in a system. A system\n that no one wants to touch has no agility at all – it can't be changed. In a very\n static business and technology environment, this may not be all that terrible. Today's\n environment is everything but stable, though, turning the inability to change a system\n into a major liability for It and the business.\n\n## Fear of Code\n\nThe fear of change in corporate IT is closely related to the fear of code. Corporate\n IT is largely driven by operational considerations. Code is considered the stuff that\n contains all the bugs and performance problems, often written by expensive external\n consultants who are difficult to hold liable as they'll have long moved to another\n project by the time the problems surface. Hence corporate IT is a sucker for configuration\n over coding (see [Configure this](/ramblings/30_configure.html) for my view on this), much to the delight of enterprise software vendors. The most\n grotesque example of fear of code I have seen has corporate IT providing application\n servers that carry no operational support once you put code on it. It's like voiding\n a car's warranty after you start the engine – after all the manufacturer has no idea\n what you will do to it!\n\nThere are two ironies in the fear of code: first, business value comes only from code,\n not from the network, hardware or operating system. Second, the fear of code leads\n enterprises to buy into large frameworks, which in turn make version upgrades tough\n and increase the chance of growing zombies. Anyone who has done an SAP upgrade can\n relate.\n\n## Lack of Feedback\n\nMost things are the way they are for a reason. This is also true for the fear of change\n in corporate IT. These organizations typically lack the tools, processes, and skills\n to closely observe production metrics and to rapidly deploy fixes in case something\n goes awry. Hence they focus on trying to test for all scenarios before deploying and\n then running the application more or less \"blind\", hoping that nothing breaks. Jess\n Sussna describes the necessity to break out of this conundrum very nicely in his great\n book [Designing Delivery](http://www.amazon.com/exec/obidos/ASIN/1491949880/enterpriseint-20).\n\n## Version Upgrades\n\nThe zombie problem is not limited to systems written in PL/1 running on an IBM/360,\n though. Often updating basic runtime infrastructures like application servers, JDK\n versions, browsers, or operating systems scare the living daylights out of IT, causing\n version updates to be deferred until the vendor ceases support. The natural reaction\n then is to pay the vendor to extend support because anything is less painful than\n having to migrate your software to a new version of the software stack.\n\nOften the inability to migrate cascades across multiple layers of the software stack:\n one cannot upgrade to a newer JDK because it doesn't run on the current app server\n version, which can't be updated because the new version requires a new version of\n the operating system which lacks some library or feature the software depends on.\n I have seen IT shops that are stuck on Internet Explorer 6 because their software\n utilizes some proprietary feature not present in later versions. Looking at the user\n interfaces of most corporate applications one finds it difficult to imagine that they\n eked out every little bit of browser capability. They surely would have been better\n off not depending on such a peculiar feature and instead being able to benefit from\n browser evolution. Such a line of thought does require a \"change is good\" mindset\n to begin with, though.\n\n## Run vs. Change\n\nThe fear of change is even encoded in many IT organizations that separate \"run\" (operating)\n from \"change\" (development), making it clear that running software does not imply\n change. Rather, it is the opposite of change, which is done by application development\n – those guys who produce the flaky code IT is afraid of. Structuring IT teams this\n way will guarantee that systems will age and become legacy because no change could\n be applied to them.\n\nOne may think that by not changing running system, IT can keep the operational cost\n low. Ironically, the opposite is true: many IT departments spend more than half %\n of their IT budget on \"run\" and \"maintenance\", leaving only a fraction of the budget\n for \"change\" that can support the evolving demands of the business. That's because\n running and supporting legacy applications is expensive: operational processes are\n often manual; the software may not be stable, necessitating constant attention; the\n software may not scale well, requiring the procurement of expensive hardware; lack\n of documentation means time-consuming trial-and-error troubleshooting in case of problems.\n These reasons legacy systems tie up valuable IT resources and skills, effectively\n devouring the brains of IT that could be applied to more useful tasks, for example\n delivering features to the business.\n\n## Planned Obsolescence\n\nWhen selecting a product or conducting an RfP , classic IT tends to compile a list\n containing dozens or hundreds of features or capabilities that a candidate product\n has to offer. Often, these lists are compiled by external consultants who don't even\n know the real business need or the company's IT strategy. However, they tend to come\n up with longer lists and longer appears better to the classic IT staff. To stick with\n the car analogy, this is a bit like evaluating a car by having an endless list of\n more or less (ir)relevant features like \"must have a 12V lighter outlet\", \"speedometer\n goes above 200 km/h\", \"can turn the front wheels\" and then scoring a BMW vs. a Mercedes\n for these. How likely this is to steer (pun intended) you towards the car you will\n enjoy the most is questionable.\n\nWorse, one item routinely missing from such \"features\" lists is planned obsolescence:\n how easy is it to replace the system? Can the data be exported in a well defined format?\n Can business logic be extracted and re-used in a replacement system? How to avoid\n vendor lock-in? To the folks in the new product selection honeymoon this may seem\n like discussing a pre-nup before the wedding – who likes to think about it parting\n when you are just about to embark on a lifelong journey? In case of an IT system you\n better hope the journey isn't lifelong – systems are meant to come and go. So better\n have a pre-nup in place than being held hostage by the system (or vendor) you are\n trying to part with.\n\n## If it hurts, do it more often\n\nHow to break out of the \"change is bad\" cycle? As mentioned before, without proper\n instrumentation and automation, making changes is not only scary but indeed risky.\n The reluctance to upgrade or migrate software is similar to the reluctance to build\n and test software often. [Martin Fowler](http://martinfowler.com/bliki/FrequencyReducesDifficulty.html) issued the best advice to break this cycle: \"if it hurts, do it more often\". No,\n this is not meant to appeal to masochistic IT staff, but it highlights that deferring\n a painful task generally makes it disproportionally more painful: if you have not\n built your source code in months, it's guaranteed not to go smoothly. Likewise, if\n you are 3 versions of an application server behind, you'll have the migration from\n hell.\n\nPerforming such tasks more frequently provides a forcing function to automate some\n of the processes, e.g. with automated builds or test suites. Dealing with migration\n problems will also become routine. This is the reason emergency workers train regularly\n – otherwise they'll freak out in case of an actual emergency and won't be effective.\n Of course, training takes time and energy. But what's the alternative?\n\n## Culture of Change\n\nDigital companies also have to deal with change and obsolescence. The going joke at\n Google was that every API had two versions: the obsolete one and the not-yet-quite-ready\n one. Actually, it wasn't a joke, but pretty close to reality. Dealing with this was\n often painful – every piece of code you wrote could break at any time because of changes\n in the dependencies. But living this culture of change allows Google to keep the pace\n up – the most important of today's IT capabilities that sadly is rarely listed as\n a KPI for classic IT. Even Shaun knows that zombies can't run fast.\n\n## Brave enough to kill some zombies?\n\nOur team is still growing! I am looking for one more senior [Cloud Infrastructure Architect](https://www.linkedin.com/jobs2/view/136775174) to join my team at [Allianz](https://www.allianz.com/en/products_solutions/global_lines/amos/amos.html) in Munich.\n\n*Share:*\n\n*Follow:* [Follow @ghohpe](https://twitter.com/ghohpe) [SUBSCRIBE TO FEED](../ramblings.rss)\n\n*More On:* [ARCHITECTURE](/ramblings_architecture.html) [ALL RAMBLINGS](../ramblings.html)\n\nGregor is a cloud architect and author. He is a frequent speaker on asynchronous messaging,\n IT strategy, and cloud.", "znaku_textu": 11766, "slov": 1862, "odkazu": 51, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 15:35:37", "sha256": "319ca907a428818e2720c23c5849cc729f76995228b0b56220943ad756aed384", "hloubka": 4, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://architectelevator.com/blog", "http://www.imdb.com/title/tt0365748", "http://www.amazon.com/exec/obidos/ASIN/0131177052/enterpriseint-20", "http://www.amazon.com/exec/obidos/ASIN/3642016324/enterpriseint-20", "http://www.amazon.com/exec/obidos/ASIN/1491949880/enterpriseint-20", "http://martinfowler.com/bliki/FrequencyReducesDifficulty.html", "https://www.linkedin.com/jobs2/view/136775174", "https://www.allianz.com/en/products_solutions/global_lines/amos/amos.html", "https://twitter.com/share", "https://twitter.com/ghohpe", "https://leanpub.com/37things"]} {"url": "http://www.enterpriseintegrationpatterns.com/ramblings/90_softwareeatstheworld.html", "titulek": "If software eats the world, you better use version control! - Enterprise Integration Patterns", "h1": "If software eats the world, you better use version control!", "popis": "As I recently observed, Corporate IT tends to be afraid of code: code is where all the pesky bugs come from, which have to be fixed by quirky, expensive, and unreliable developers or external consultants", "klicova_slova": "", "kanonicka": "", "jazyk": "en_US", "robots_meta": "", "og": {"og:type": "article", "og:locale": "en_US", "og:site_name": "Enterprise Integration Patterns", "og:title": "If software eats the world, you better use version control!", "og:description": "As I recently observed, Corporate IT tends to be afraid of code: code is where all the pesky bugs come from, which have to be fixed by quirky, expensive, and unreliable developers or external consultants", "og:url": "https://www.enterpriseintegrationpatterns.com/ramblings/90_softwareeatstheworld.html"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "If software eats the world, you better use version control!"}, {"uroven": 2, "text": "SDX – Software-defined Anything"}, {"uroven": 2, "text": "Automate Everything!"}, {"uroven": 2, "text": "The Loomers’ Riot?"}, {"uroven": 2, "text": "Undoing by Redoing"}, {"uroven": 2, "text": "Think like a Software Developer!"}, {"uroven": 2, "text": "Use a Build Pipeline"}, {"uroven": 2, "text": "Automated Quality Checks"}, {"uroven": 2, "text": "Proper Language"}, {"uroven": 2, "text": "Software eats the world, one revision at a time"}], "markdown": "Gregor's Ramblings\n\n---\n\n# If software eats the world, you better use version control!\n\nDec 6, 2015\n\nFind my posts on IT strategy, enterprise architecture, and digital transformation\n at [ArchitectElevator.com](https://architectelevator.com/blog).\n\nAs I [recently observed](89_zombies.html), Corporate IT tends to be afraid of code: code is where all those pesky bugs come\n from that have to be fixed by quirky and unreliable software developers or , expensive\n external consultants. This attitude plays to the favor of vendors who peddle products\n that \"only\" require configuration, as opposed to coding. Sadly, as we know since at\n least 2005, most configuration is really just [programming in a poorly designed, rather constrained language without decent tooling\n or useful documentation](30_configure.html). Being afraid of code and being unfamiliar with the modern development lifecycle\n is a dangerous proposition in a world where everything is becoming defined by software.\n\n## SDX – Software-defined Anything\n\nMuch of traditional IT infrastructure is either hard-wired or semi-manually configured:\n servers are racked and cabled, network switches are configured manually with tools\n or config files. Operations staff is often quite happy with this state of affairs\n because it keeps the programmer types away from the critical infrastructure where\n the last thing we need is bugs and stuff like \"agile\" development, which is still\n widely (mis-)interpreted as just doing something random and hoping for the best.\n\nThis is rapidly changing, though, and that's a good thing. The continuing virtualization\n of infrastructure makes resources that were once shipped by truck or wired by hand\n available via a call to an OpenStack API. It's like going from haggling in a car dealership\n and waiting 4 months for delivery just to find out that you should have gotten the\n better seats after all to locating a Zipcar / DriveNow from your mobile phone and\n driving off 3 minutes later. Virtualized infrastructure is an essential element to\n keeping up with the scalability and evolution demands of digital applications. You\n can't build an agile business model when it takes you 4 weeks to get a server and\n 4 months to get it on the right network segment.\n\nOperating-system level virtualization is by no means a new invention, but the \"software-defined\"\n trend has extended to SDN, *Software-defined Networks*, and full-blown SDDC, Software Defined Data Centers. If that isn't enough, you can\n opt for [SDx](https://www.sdxcentral.com/articles/editorial/sdx-series-software-defined-everything-introduction/2015/05/) – Software Defined *Anything*, which includes virtualization of compute, storage, network and whatever else can\n be found in a data center, hopefully in some coordinated manner.\n\nAs so often, it's easy to look into the future of IT by reading those Google research\n papers that describe their systems of 5+ years ago (side note: finally there is an\n official paper on [Borg](http://static.googleusercontent.com/media/research.google.com/en//pubs/archive/43438.pdf), Google's cluster manager). To get a glimpse of where SDN is headed, look at what\n Google has done with the so-called [Jupiter Network Architecture](http://googleresearch.blogspot.de/2015/08/pulling-back-curtain-on-googles-network.html) (or jump straight to the [SIGCOMM Paper](http://conferences.sigcomm.org/sigcomm/2015/pdf/papers/p183.pdf)). If you are too busy to read the whole thing, this three-liner will do to get you\n excited: \"Our latest-generation Jupiter network […] delivering more than 1 petabit/sec\n of total bisection bandwidth. This means that each of 100,000 servers can communicate\n with one another in an arbitrary pattern at 10Gb/s.\" This can only be achieved by\n having a network infrastructure that can be configured based on the applications'\n needs and is considered as an integral part of the overall infrastructure virtualization.\n\n## Automate Everything!\n\nI once shocked a large portion of our IT staff by defining my strategy as: \"automate\n everything and make those parts that can't be automated a self-service\"\". The reaction\n ranged from confusion and disbelief to anger. Still, this is exactly what Amazon &\n Co have done. And they have revolutionized how people access IT infrastructure. If\n corporate IT infrastructure wants to remain competitive, this is the way corporate\n IT got to be thinking!\n\nIn a recent meeting one of our vendors' architect stated that automation should not\n be implemented for infrequently performed tasks because it isn't economically viable.\n Basically they calculated that writing the automation would take more hours than would\n ever be spent completing the task manually (they also appear to be on a fixed-price\n contract). I challenged this reasoning with the argument of repeatability and traceability:\n wherever humans are involved, mistakes are bound to happen and work will get performed\n ad-hoc without proper documentation. The error rate is likely the highest for infrequently\n performed tasks as the operators are lacking the routine. Of course, the whole argument\n collapses when you think about disaster recovery scenarios: one hopes that they occur\n infrequently, but when they happen you better be fully automated. Otherwise you may\n argue that the fire brigade should use a bucket chain as all those fire trucks and\n pumps are not economically viable given how few fires we have.\n\nComputers are much better at executing repetitive tasks while we humans are better\n at coming up with new ideas, designing things or automating stuff. We should stick\n to this separation of duty and let the machines do the repeatable tasks without fearing\n that Skynet will take over the world any moment.\n\n## The Loomers’ Riot?\n\nNew tools necessitate a new way of thinking, though, to be useful. It's the old \"a\n fool with a tool is still a fool\". I actually don't like this saying because you don't\n have to be a fool to be unfamiliar with a new tool and a new way of thinking. For\n example, many folks in infrastructure and operations are far detached from the way\n contemporary software development is done. This doesn't make them fools in any way,\n but it prevents them from migrating into the \"software-defined\" world. They may have\n never heard of unit tests or build pipelines and may have been led to believe that\n \"agile\" is a synonym for \"haphazard\". They have not had enough time to conclude that\n immutability is an essential property and that rebuilding / regenerating something\n from scratch beats making incremental changes.\n\nAs a result, despite often being the bottleneck in an IT ecosystem that demands ever\n faster changes and innovation cycles, operations teams are often not ready to hand\n over their domain to the \"application folk\" who can script the heck out of the software-defined\n anything. One could posit that such behavior is akin to the [Loomer Riots](https://en.wikipedia.org/wiki/Power-loom_riots) because the economic benefits of a software-defined infrastructure are too strong\n for anyone to put a stop to it. At the same time, it's important to get those folks\n on board that keep the lights on and understand the existing systems the best, so\n we can't ignore this dilemma.\n\nExplaining to everyone [What is Code?](http://www.bloomberg.com/graphics/2015-paul-ford-what-is-code/) is certainly a step in the right direction. As I often say: \"if software eats the\n world, there will be only 2 kinds of people: those who tell the machines what to do\n and those where it's the opposite.\" Having more senior management role models who\n can code would be another good step. However, living successfully in a software-defined\n world is not a simple matter of learning programming or scripting.\n\n## Undoing by Redoing\n\nA great example how people have to start thinking differently was provided by the\n same vendor of ours when brought the argument of reversibility: if a configuration\n is not working, we need to quickly revert to the last known stable state to minimize\n the recovery time. If you have made manual updates, this is very difficult at best.\n In a software-defined, automated world this becomes much easier. The vendor countered\n that this would require an explicit \"undo\" script for each possible action, which\n would make it even more expensive or cumbersome to develop the automation.\n\n## Think like a Software Developer!\n\nThis response highlights that many infrastructure teams don't yet think like software\n developers. Software developers who have been using software tools and processes for\n quite some time know that if they can build an artifact such as a binary or a piece\n of configuration from scratch using an automated build system, they can easily revert\n to a previous version by resetting version control to the last know good state, rebuilding\n from scratch and republishing this \"undone\" configuration. Software build processes\n don't know \"undo\", they simply \"redo\".\n\nIn complex software projects this is a quite normal procedure, often instigated by\n the so-called \"build cop\" after the build goes \"red\" because of failing tests. The\n build cop will try to get the developer who checked in the offending code to fix it\n quickly or simply reverts that code submission. Modern configuration automation tools\n have a similar ability to regain a known stable, so one can apply the same process\n of reverting and automatically re-configuring.\n\n## Use a Build Pipeline\n\nThe concept of \"no snowflake\" or \"no pet\" servers underline the spirit that in the\n software-defined world a server (or network) configuration can be recreated automatically\n with ease, similar to re-creating a build artefact such as a jar file: when infrastructure\n is software-defined, you can provision or configure it in the same manner you would\n create a software artifact. You no longer have to be afraid to mess up a specific\n instance of a server because you can easily recreate that specific configuration via\n software in minutes.\n\nJust like continuous integration can rebuild a software system frequently and predictably,\n software defined infrastructure is not just about replacing hardware configuration\n with software but primarily about adopting a rigorous development lifecycle based\n around disciplined development, automated testing, and continuous integration.\n\n## Automated Quality Checks\n\nIn another Google example from 8 years ago, one of the most critical pieces of request\n routing infrastructure was configured via a file consisting of hundreds of regular\n expressions. Of course, this file was under version control as it should be. Even\n though proposed changes had to be reviewed by an owner of this specific code branch,\n invariably someday someone checked in a misconfiguration, which brought down most\n of Google's services because the relative URL path of Google's site was no longer\n routed to the corresponding service instance. But the answer was not to disallow changes\n to this file as that would have slowed things down. Instead, the problem was quickly\n undone as the file was under version control and the previous version was available.\n Second, additional automatic checks were implemented in the code submit pipeline to\n make sure that syntax errors or conflicting regular expressions are detected before\n the file is checked into the code repository, not when it is pushed to production.\n When working with software-defined infrastructure you need to work like you would\n in professional software development.\n\n## Proper Language\n\nOne curiosity about Google is that no one working there ever used buzzwords like \"Big\n data\", \"Cloud\", or \"Software-defined data center\" because Google had all these things\n well before the buzzwords were created by industry analysts: much of Google's infrastructure\n was software-defined 10 years ago. One aspect of deploying large numbers of tasks\n onto a data center infrastructure is the configuration of the individual process\n instances: each instance is likely to require small variations in configuration.\n For example, front-ends 1 through 4 may connect to back-end *A* while front-ends 5-7 connect to back-end *B*. Maintaining individual config files for each instance would be cumbersome and error-prone,\n especially as you scale up and down. Instead, each [configuration is generated](http://static.googleusercontent.com/media/research.google.com/en//pubs/archive/43438.pdf) and passed to the process via the command line. Google avoided the trap of configuration\n files and decided to use a well-defined functional language called BCL, which supports\n templates and value inheritance. It also provides built-on functions like map() that\n are convenient for manipulating lists of values for such configurations.\n\nLearning a custom functional language to describe deployment descriptors for jobs\n may not everyone's cup of tea but it highlights what a real software-defined system\n looks like. As the language BCL was widely used and configuration programs got bigger\n and more complex, debugging became an issue. As a result, folks started to write an\n [expression evaluator](http://alexandria.tue.nl/extra1/afstversl/wsk-i/bokharouss2008.pdf) and unit testing tools around the configuration language. That's what software people\n would do to solve the problem: solve software problems with software!\n\n## Software eats the world, one revision at a time\n\nThere's much more to being software-defined than a few scripts and config files. Rather,\n it's about making infrastructure part of your software development lifecycle (SDLC).\n First, make sure your SDLC is fast but disciplined and automated but quality-oriented.\n Second, apply the same thinking to your software-defined infrastructure. Or else you\n may end up with *SDA*, Software-Defined Armageddon.\n\n*Share:*\n\n*Follow:* [Follow @ghohpe](https://twitter.com/ghohpe) [SUBSCRIBE TO FEED](../ramblings.rss)\n\n*More On:* [ARCHITECTURE](/ramblings_architecture.html) [ALL RAMBLINGS](../ramblings.html)\n\nGregor is a cloud architect and author. He is a frequent speaker on asynchronous messaging,\n IT strategy, and cloud.", "znaku_textu": 14061, "slov": 2149, "odkazu": 52, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 15:35:37", "sha256": "67e104eac0f6537b6457330212960089036d1c6508d5fcf4b90021232435475b", "hloubka": 4, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://architectelevator.com/blog", "https://www.sdxcentral.com/articles/editorial/sdx-series-software-defined-everything-introduction/2015/05/", "http://static.googleusercontent.com/media/research.google.com/en//pubs/archive/43438.pdf", "http://googleresearch.blogspot.de/2015/08/pulling-back-curtain-on-googles-network.html", "http://conferences.sigcomm.org/sigcomm/2015/pdf/papers/p183.pdf", "https://en.wikipedia.org/wiki/Power-loom_riots", "http://www.bloomberg.com/graphics/2015-paul-ford-what-is-code/", "http://alexandria.tue.nl/extra1/afstversl/wsk-i/bokharouss2008.pdf", "https://twitter.com/share", "https://twitter.com/ghohpe", "https://leanpub.com/37things"]} {"url": "http://www.enterpriseintegrationpatterns.com/ramblings/91_bookshelfpenthouse.html", "titulek": "The Architect’s Penthouse Bookshelf - Enterprise Integration Patterns", "h1": "The Architect’s Penthouse Bookshelf", "popis": "When you hitchhike through the galaxy, a towel will generally do", "klicova_slova": "", "kanonicka": "", "jazyk": "en_US", "robots_meta": "", "og": {"og:type": "article", "og:locale": "en_US", "og:site_name": "Enterprise Integration Patterns", "og:title": "The Architect’s Penthouse Bookshelf", "og:description": "When you hitchhike through the galaxy, a towel will generally do", "og:url": "https://www.enterpriseintegrationpatterns.com/ramblings/91_bookshelfpenthouse.html"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "The Architect’s Penthouse Bookshelf"}, {"uroven": 2, "text": "37 Things One Architect Knows"}, {"uroven": 2, "text": "Navigating the Penthouse"}, {"uroven": 2, "text": "Knowing What’s Going On"}, {"uroven": 2, "text": "Making Your Point"}, {"uroven": 2, "text": "Gathering Support"}], "markdown": "Gregor's Ramblings\n\n---\n\n# The Architect’s Penthouse Bookshelf\n\nDec 28, 2015\n\nFind my posts on IT strategy, enterprise architecture, and digital transformation\n at [ArchitectElevator.com](https://architectelevator.com/blog).\n\nWhen you hitchhike through the galaxy, [a towel](https://en.wikipedia.org/wiki/The_Hitchhiker%27s_Guide_to_the_Galaxy) will generally do. To ride the [Architect Elevator](79_elevator.html) you need to be a bit better equipped. Riding the elevator up and down is exciting\n and provides tremendous value to the organization. But it is also demanding as the\n architect needs to adjust to different audiences, backgrounds and dynamics, becoming\n a technology [shapeshifter](http://futurama.wikia.com/wiki/Alcazar) of sorts. To help with this transformation (and to avoid getting your rear kicked\n by Leela), I recommended a few books for each major section of the corporate high-rise.\n\nI should clarify that in this context I interpret “Enterprise Architect\" as any IT\n architect who works in a large enterprises, covering a broad scope of responsibilities.\n This can be a strategic architect, but also an infrastructure or data architect. Specifically,\n I don't limit it to prototypical “Enterprise Architects\" that manage application inventories,\n conduct gap analyses, and devise transformational roadmaps. I could have called the\n role \"Architect in the Enterprise\" to make the distinction clear, but that's not as\n catchy.\n\nYou won’t find any computer technology books on this list. I assume architects looking\n to play a technical leadership role already have the technical foundation to do their\n job and the inclination and drive to keep learning new technologies. This bookshelf\n is about becoming a better thinker and decision maker and about engaging with upper\n management in meaningful ways.\n\n## 37 Things One Architect Knows\n\nThis list originated from audience requests for the slides from my talk [The Enterprise Architect - Ivory Tower Resident or Corporate Savior?](/talks.html). It does not aim for completeness and is subject to the serendipity of me discovering\n some great books while completely missing other equally great books. As mentioned\n in my [disclosure](/gregor.html), I earn a referral fee through the Amazon Associates program for any books you purchase\n through the links in this blog post. It’s certainly not enough, though, to make me\n recommend books just to earn a fee. I have purchased all the books I list, except\n where explicitly mentioned (my reading bandwidth is limited).\n\nI would also not want to miss the opportunity to test interest in my book side-project\n [37 Things One Architect Knows](http://leanpub.com/37things) on LeanPub. Right now it’s just a skeleton, but please give me feedback to your level\n of interest in acquiring the content as a DRM-free lean pub (or print) book. The content\n is an organized, edited, and expanded version of some of my [Ramblings](/ramblings).\n\n## Navigating the Penthouse\n\nLet’s start riding the architect elevator from the top floor – the penthouse. Successful\n interaction in the penthouse depends on a combination of factors:\n\n- You need to have a solid read on the company strategy and major industry trends.\n- You must be able to get your point across to a largely non-technical audience.\n- You have to be able to get support for your ideas and projects.\n\n## Knowing What’s Going On\n\nFeeding my inclination to include popular culture analogies, this section header reminds\n me of the epic movie [Metropolis by Fritz Lang](http://www.imdb.com/title/tt0017136/). The city of Metropolis is likely the ultimate example of an organization that maintains\n a strict separation between the ruling class in the penthouse (enjoying themselves\n in the “eternal gardens\") and the workers toiling deep underground in the engine room.\n The ruler’s son Freder is not an architect, but he does end up saving the whole place\n from self-destruction by riding the elevator up and down after trading places with\n a worker in the machine room. In the end he becomes the much needed mediator between\n the “head\" and the “hands\" in something you might call an enterprise transformation.\n To top off the metaphor, the 1984 version of the movie by [Giorgio Moroder](http://www.giorgiomoroder.com/) contains a song titled “What’s going on?\" by Adam Ant. Knowing what’s going on is\n critical if you want to engage in the penthouse.\n\nI often tell people that you will encounter much fewer surprises in your professional\n life if you can think like your boss’s boss. In corporate IT, this typically translates\n into tracking Gartner, Forrester, IDC and other analyst firms. Hard-core technologists\n may despise some of this material because analysts have a tendency to invent buzzwords\n for already existing trends that plant dangerous ideas into pointy-haired management’s\n heads. If that’s how you feel, consider following the analysts like listening to\n enemy radio: you may not agree with what is being said, but you are better informed\n and prepared.\n\nA successful architect also needs to understand what drives the business. After all,\n the architect's job is to build IT platforms and systems that support the business.\n For example, if you work in insurance you need to understand the impact a low-interest\n environment has on the life insurance business. You also need to understand the critical\n use cases for major technological advances like the Internet of Things (IoT) in your\n industry. Which publications or books to read for this aspect will depend on the business\n you or rather your employer is in. Try having coffee with business people more often!\n\nThe first two book recommendations cover major trends that upper management should\n pay attention to, so these are not only books you should read but also books you should\n recommend to your management to read. I have been handing out many copies of these\n in our organization.\n\n| | The classic “novel\" behind DevOps and already fairly widely known (over 1000 reviews\n on Amazon) is [The Phoenix Project](http://www.amazon.com/exec/obidos/ASIN/0988262509/enterpriseint-20), a healthy mix of getting IT operations out of being the perceived bottleneck who\n gets kicked by application development and the business, “system of constraints\" thinking\n a la [The Goal](http://www.amazon.com/exec/obidos/ASIN/0884271951/enterpriseint-20) and IT-enabled business transformation, all wrapped into a highly readable storyline\n with actual characters, including the IT ops whiz-kid who can do everything but explain\n nothing, the security officer who is bringing everything to a grinding halt, and the\n change manager who is mired in bureaucratic processes. The storyline including the\n dramatic low-point (our hero quits) and the happy ending (not telling) reminds us\n of the recipes described in some of the books on storytelling below.\n\n While a “must-read\" for everyone involved in corporate IT, I don't find the text terribly\n actionable. You may hand it out as an awareness builder and to collect some brownie\n points for seeing the changing role of IT in large organizations. I have not yet read\n the [The Visible Ops Handbook](http://www.amazon.com/exec/obidos/ASIN/0975568612/enterpriseint-20) by the same authors, which promises to be more concrete and actionable. |\n| --- | --- |\n| | A great follow-on read to *The Phoenix Project* is Jeff Sussna’s recent book [Designing Delivery](http://www.amazon.com/exec/obidos/ASIN/1491949880/enterpriseint-20). While the title may mislead (physical) book stores into shelving the book under\n “expecting mothers\", I found this book to do the best job so far at explaining how\n traditional IT has to change in order to survive in the digital world when the business\n is ready to replace the slow and unreliable IT with Amazon cloud solutions. Jeff explains\n well that DevOps is not (just) about sitting developers and operations staff together,\n but that it is based on a fundamentally different model, which derives from cybernetic\n systems, complex systems, and design thinking. It is noticeable that the book is composed\n of three distinct trains of thought, but I don’t see that as an issue – just read\n the parts that are most useful for your situation. After having had the chance to\n meet Jeff in person, I handed a copy of the book to all our business unit chief architects. |\n| | While the first two books focus on operational aspects of IT, i.e. building a bridge\n to the “engine room\", I’d also throw in one book on traditional enterprise architecture.\n Probably not the best overall book on the topic, but a definite classic is [Enterprise Architecture as Strategy](http://www.amazon.com/exec/obidos/ASIN/1591398398/enterpriseint-20) by MIT’s Center for Information Systems Research master minds Jeanne Ross and Peter\n Weill. This is a book about IT, not an IT book. It’s also a bit dated (anno 2006),\n but some of the graphics have become classic (most of them are visible on the [CISR Enterprise Architecture Site](http://cisr.mit.edu/research/research-overview/classic-topics/enterprise-architecture/)). Here you can learn how company leadership thinks about the role and the state of\n their IT. Good to know if you are part of said IT. |\n| | No list about understanding the changing role of corporate IT would be complete without\n Eric Riese's [The Lean Startup](http://www.amazon.com/exec/obidos/ASIN/0307887898/enterpriseint-20), which has made \"Minimum Viable Product\" and the \"Build - Measure - Learn loop\" \n household terms alongside \"Agile\" and \"DevOps\". The core idea to maximize the amount\n of learning by validating assumptions by placing actual products in front of your\n customer is as simple as it is profound. As with most simple ideas, though, implementing\n them can be harder than it may seem: you need to be fast, smart, and close to the\n customer. Large corporations that \"test\" their ideas on the white board and hire armies\n of external consultants to build solutions have a long way to go towards this vision.\n Getting the idea in front of as many people as possible is still the best way to start\n changing the way the organization works. |\n\n## Making Your Point\n\nUnderstanding industry trends and getting attention are great, but only if you have\n a point to make and are able to get it across. This requires more than just pretty\n slides and a wide stance - you also need to have a compelling storyline and stir your\n audience's emotions. Architects and engineers too often believe that because they\n have analyzed the situation and found the best path of action that everyone with a\n reasonable IQ would have no choice but agree with them. Sadly, this is one of the\n biggest fallacies of technically-minded presenters -- over 2000 years ago Aristotle\n already knew that you can argue based on logic (*logos*), but also on the character and credentials of the presenter (*ethos*), or based on emotion (*pathos*). That fact that he ordered them as ethos, pathos, and logos should make rational\n thinkers think again.\n\nWhen you are using *logos*, i.e. logic to reason about technical matters, never forget to [build a ramp](76_explaining.html) for your audience - otherwise they can't even appreciate your *logos*. Tons of books describe how to make expressive slides and give convincing talks,\n so I’ll just highlight lesser known titles specifically aimed at technical writers\n and presenters.\n\n| | [Stories that Move Mountains](http://www.amazon.com/exec/obidos/ASIN/1118423992/enterpriseint-20) is not your usual book -- it feels more like a collage of ideas and anecdotes from\n three [Microsofties](https://en.wiktionary.org/wiki/Microsoftie). So you better have a look inside before buying it to see whether the format suits\n you. I found the \"noisy\" visual style a bit distracting -- it's certainly no book\n you can read back-to-back. But the techniques are very useful when crafting engaging\n storylines to multiple levels of audiences. We learn about how to setup a plot (yes,\n something else to learn from Aristotle) and behind all the colors and fonts we learn\n a fairly structured process consisting of Content (Why, What, How, What If), Audience,\n Story (Structure, Character, Sense of Urgency, Plan), and Tell, the last one being\n related to delivering the story, but named to generate the [backronym](https://en.wikipedia.org/wiki/Backronym) CAST. If you are worried that following such a simple \"recipe\" will appear repetitive,\n just look at all the Hollywood movies that rake in hundreds of millions of Dollars\n with seemingly even simpler recipes. People like to be entertained. Even at work. |\n| --- | --- |\n| | When it comes to making pretty slides and impressive stage performances, it's one\n of the rare times when you can trust the consultants. In this book, \"the consultants\"\n have taken a fresh approach of teaching presentation design and delivery by using\n [Presentation Patterns](http://www.amazon.com/exec/obidos/ASIN/0321820800/enterpriseint-20), which has the advantage of giving you a “menu\" of presentation techniques as opposed\n to the “one right way\" of a wide stance and deep breath. The patterns also have catchy\n names like \"Carnegie Hall\" (practice, practice, practice) or \"Crucible\" (the best\n way to improve your presentation is to give it). The content covers coming up with\n a storyline (\"Narrative Arc\"), creating the slide material (the authors may be a bit\n heavy on using animations), and delivering the presentation. Patterns related to visual\n effects include detailed instructions on how to implement them in popular tools like\n Keynote and PowerPoint. Coincidentally, I contributed the somewhat obscure PowerPoint\n menu option to get the *Charred Trail* pattern to work properly. |\n| | Richard Guindon pointed out that writing is nature's way of telling us how sloppy\n our thinking is. That alone makes writing a worthwhile exercise as it requires us\n to sort out our thoughts so we can put them into a somewhat cohesive storyline. Unlike\n most slide decks well-written documents are also self-contained, so they can be widely\n distributed. The curse of writing is, though, that interesting topics are hardly ever\n linear, but writing is: word after word, paragraph after paragraph. [I described before](77_writing.html) how you can help the reader break out of this linearity, but this doesn’t put away\n with the need to string together words and sentences into a single, meaningful sequence.\n \n To computer scientists writing could hence be portrayed as a graph traversal problem:\n how do you walk the topic graph or mind map so that the resulting path is easiest\n for the reader to follow? The book [The Pyramid Principle](http://www.amazon.com/exec/obidos/ASIN/0273710516/enterpriseint-20) presents such an algorithm of traversing a topic hierarchy (called “pyramid\" in the\n book).\n\n The McKinsey staple \"Situation - Complication - Solution\" that is also covered in\n the book (the author is a former \"Mackie\") makes for a very simple, but effective\n storyline. That is, unless you turn these concepts into actual chapter headings, which\n one of our McK consultants insisted on doing. \n\n Oddly, the title seems out of print in some markets and appears in many different\n editions and versions at occasionally mind-boggling prices. The author is now [selling an expanded textbook](http://www.barbaraminto.com/textbook.html) for a whopping US$ 135! I recommend you look for a good used copy on [Amazon](http://www.amazon.com/exec/obidos/ASIN/0273710516/enterpriseint-20) - they start at US$ 40. |\n| | Some 95% of the world's population are non-native speakers of English (some British\n fellows may even petition to exclude the 4% across the pond from that set). Hence,\n in my rambling on [Writing for Busy People](77_writing.html) I introduced the book [Technical Writing and Professional Communication for Non-native Speakers](http://www.amazon.com/exec/obidos/ASIN/007030825X/enterpriseint-20). Sadly, it's also out of print, which is especially surprising in light of its 92%\n \"5 star\" reviews (plus a single 4-star review).\n\n The chapters on \"General Strategies for the Writing Process\" are a great intro (just\n skip the chapter on \"Using the Computer\" - the original title dates back to 1983),\n but the real asset are the chapters under \"Readability\". They contain the best guidance\n on how to cover complex technical topics that I have seen: not only do we learn how\n to structure lists (\"parallelism\") and paragraphs (\"chronological\", \"cause-effect\",\n \"comparison\", etc.), but also how to maintain focus through \"optimal ordering of noun\n phrases.\" I'd posit that many a native speaker / writer could benefit significantly\n from this guidance.\n\n This book is all about *logos*: examples from arcane technical domains like financial derivatives or chemical processing\n plants highlight how proper transitions between sentences can help the reader follow\n the technical logic. This book convinced me that English grammar is very suitable\n for describing complex technical relationships in simple words and clear structures.\n Take advantage of that!\n\n Despite its age I still recommend it to anyone doing technical writing on complex\n subjects. I often say that we must minimize the percentage of brain cells the readers\n must use to parse the sentences and paragraphs, so that they have more brain cells\n left for your content! |\n\n## Gathering Support\n\nNow you understand the business strategy and the role architecture plays in it and\n you have attracted management’s attention with a killer presentation. Now you need\n to get support for your ideas! And the support doesn’t necessarily come from the person\n highest in the org chart. Better yet, you have done your homework before and aligned\n with key stakeholders and influencers. To understand how organizations work and how\n to navigate them, a few more books are helpful:\n\n| | The book [The Ape in the Corner Office](http://www.amazon.com/exec/obidos/ASIN/140005219X/enterpriseint-20) was recommended to me by Erik Meijer. Even though I have not had a chance to read\n it, I blindly trust Erik’s advice and his verbal summary. The long story short is\n that despite all noble thoughts and thousands of years of evolution, when you put\n a bunch of humans into a social structure, the dynamics are awfully similar to putting\n a few primates into a cage: individuals fights for position, split into groups, take\n up habits (or corporate culture). The somewhat cynic, but quite accurate revelation\n is that in large organizations only two motivators dominate decisions making and behavior:\n fear and greed. Bringing your message to this level might make you feel a tiny bit\n dirty, but it’s bound to get your point across. |\n| --- | --- |\n| | If you want to get support from your audience, you first need to understand how people\n think, or rather how our brain works. The most popular and quite arguably the best\n title on that subject is Danny Kahneman's [Thinking, Fast and Slow](http://www.amazon.com/exec/obidos/ASIN/0374533555/enterpriseint-20). As so often, the premise is simple: we have two types of modes in our brains, one\n that works fast and automatic, but can play tricks on us, and another one that is\n much better, but that requires conscious effort to gear up. This insight isn't completely\n new, but Kahneman focuses on the interplay between the systems and provides great\n examples and stories on how to use this insight when presenting or receiving data.\n On top of all that it's an entertaining read and a great source of anecdotes: I have\n used the \"Kidney Cancer\" example in my talks because it illustrates so easily how\n our mind plays tricks on us. |\n| | I have to admit that the first time I heard about Dale Carnegie's [How to Win Friends and Influence People](http://www.amazon.com/exec/obidos/ASIN/0671027034/enterpriseint-20) I was a little put off by the title as it sounded pretty insincere to me. Having\n found out much later that Carnegie actually changed the spelling of his name (originally\n \"Carnagey\")to coincide with Andrew Carnegie, who built the aforementioned hall, to\n gather more attention all but underlines my initial impression. The book is of course\n coming from an American cultural point-of-view, which will make some Europeans, who\n still struggle to internalize that \"how are you doing today?\" is actually not a question,\n scratch their heads.\n \n On the other hand, the book that pretty much started the market for self-help books\n in the US and has sold over 15 million copies is certainly worth a read. And some\n of the advice like \"be genuinely interested in other people\" does sound a bit more\n sincere than the title. If you are impatient, the [Wikipedia page](https://en.wikipedia.org/wiki/How_to_Win_Friends_and_Influence_People#Major_sections_and_points) summarizes the key points. |\n\nIf you feel like reading these books will make you a better shrink but not a better\n IT architect, recall that you are preparing for visits to the penthouse. Enjoy the\n read and the ride.\n\n*Share:*\n\n*Follow:* [Follow @ghohpe](https://twitter.com/ghohpe) [SUBSCRIBE TO FEED](../ramblings.rss)\n\n*More On:* [ARCHITECTURE](/ramblings_architecture.html) [ALL RAMBLINGS](../ramblings.html)\n\nGregor is a cloud architect and author. He is a frequent speaker on asynchronous messaging,\n IT strategy, and cloud.", "znaku_textu": 21214, "slov": 3242, "odkazu": 71, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 15:35:35", "sha256": "241e73063b5edb5c22c2972deecb564e6d0dc7f740aaa0607a87b4ddd22a3c40", "hloubka": 4, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://architectelevator.com/blog", "https://en.wikipedia.org/wiki/The_Hitchhiker's_Guide_to_the_Galaxy", "http://futurama.wikia.com/wiki/Alcazar", "http://leanpub.com/37things", "http://www.imdb.com/title/tt0017136/", "http://www.giorgiomoroder.com/", "http://www.amazon.com/exec/obidos/ASIN/0988262592/enterpriseint-20", "http://www.amazon.com/exec/obidos/ASIN/0988262509/enterpriseint-20", "http://www.amazon.com/exec/obidos/ASIN/0884271951/enterpriseint-20", "http://www.amazon.com/exec/obidos/ASIN/0975568612/enterpriseint-20", "http://www.amazon.com/exec/obidos/ASIN/1491949880/enterpriseint-20", "http://www.amazon.com/exec/obidos/ASIN/1591398398/enterpriseint-20", "http://cisr.mit.edu/research/research-overview/classic-topics/enterprise-architecture/", "http://www.amazon.com/exec/obidos/ASIN/0307887898/enterpriseint-20", "http://www.amazon.com/exec/obidos/ASIN/1118423992/enterpriseint-20", "https://en.wiktionary.org/wiki/Microsoftie", "https://en.wikipedia.org/wiki/Backronym", "http://www.amazon.com/exec/obidos/ASIN/0321820800/enterpriseint-20", "http://www.amazon.com/exec/obidos/ASIN/0273710516/enterpriseint-20", "http://www.barbaraminto.com/textbook.html", "http://www.amazon.com/exec/obidos/ASIN/007030825X/enterpriseint-20", "http://www.amazon.com/exec/obidos/ASIN/140005219X/enterpriseint-20", "http://www.amazon.com/exec/obidos/ASIN/0374533555/enterpriseint-20", "http://www.amazon.com/exec/obidos/ASIN/0671027034/enterpriseint-20", "https://en.wikipedia.org/wiki/How_to_Win_Friends_and_Influence_People", "https://twitter.com/share", "https://twitter.com/ghohpe", "https://leanpub.com/37things"]} {"url": "http://www.enterpriseintegrationpatterns.com/ramblings/92_scaling.html", "titulek": "How to Scale an Organization? The same way you scale a system! - Enterprise Integration Patterns", "h1": "How to Scale an Organization? The same way you scale a system!", "popis": "The digital world is all about scalability: millions of web sites, billions of hits per month, more data, more tweets, more images uploaded", "klicova_slova": "", "kanonicka": "", "jazyk": "en_US", "robots_meta": "", "og": {"og:type": "article", "og:locale": "en_US", "og:site_name": "Enterprise Integration Patterns", "og:title": "How to Scale an Organization? The same way you scale a system!", "og:description": "The digital world is all about scalability: millions of web sites, billions of hits per month, more data, more tweets, more images uploaded", "og:url": "https://www.enterpriseintegrationpatterns.com/ramblings/92_scaling.html"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "How to Scale an Organization? The same way you scale a system!"}, {"uroven": 2, "text": "Component Design - Personal Productivity"}, {"uroven": 2, "text": "Avoid Sync Points - Meetings Don’t Scale"}, {"uroven": 2, "text": "Interrupts Interrupt - Phone Calls"}, {"uroven": 2, "text": "Piling on instead of backing off"}, {"uroven": 2, "text": "Asynchronous Communication – Email, Chat, and More"}, {"uroven": 2, "text": "Asking Doesn’t Scale – Build a Cache!"}, {"uroven": 2, "text": "Poorly Set Domain Boundaries - Excessive Alignment"}, {"uroven": 2, "text": "Self-Service is Better Service"}, {"uroven": 2, "text": "Scaling for Size or for Speed"}, {"uroven": 2, "text": "Staying Human"}], "markdown": "Gregor's Ramblings\n\n---\n\n# How to Scale an Organization? The same way you scale a system!\n\nJanuary 12, 2016\n\nFind my posts on IT strategy, enterprise architecture, and digital transformation\n at [ArchitectElevator.com](https://architectelevator.com/blog).\n\nThe digital world is all about scalability: millions of web sites, billions of hits\n per month, more data, more tweets, more images uploaded. To make this work, architects\n have learned a ton about scaling systems: make services stateless for horizontal scalability,\n avoid synchronization points to maximize throughput, keep transactions local, reduce\n synchronous remote communication, use clever caching strategies, shorten your variable\n names (just kidding!).\n\nWith everything around us scaling to never-before-seen throughput, the limiting element\n in all this is bound to be us, the human users. And the organizations we work in.\n One may wonder, then, why scaling and optimizing throughput in organizations is considered\n a very different field usually completely ignored by the IT architects who know so\n much about scalability. I may have become an [Architect Astronaut](http://www.joelonsoftware.com/articles/fog0000000018.html) suffering from Oxygen deprivation due to exceedingly high levels of abstraction,\n but I nevertheless feel that many of the scalability and performance enhancement approaches\n experienced IT architects know can be just as well used to scale organizations. If\n a [Coffee Shop](/ramblings/ 18_starbucks.html) can teach us about maximizing a system’s throughput, maybe our knowledge of IT systems\n design can help improve the performance of organizations!\n\n## Component Design - Personal Productivity\n\nIncreasing throughput starts with the individual. Some folks are simply ten times\n more productive than others. For me it’s hit or miss: I can be incredibly productive\n if I am “in the zone\", or can lose track when I am annoyed by something or being frequently\n interrupted. So I won’t bestow you with any great advice, but refer you to the many\n resources like [GTD – Getting Things Done](https://en.wikipedia.org/wiki/Getting_Things_Done). The key point of these techniques tends to be to minimize inventory of open tasks\n (making the “lean\" folks happy) and by breaking larger tasks down into small tasks\n that are actionable. For example, “I really need to replace that old clunker\" turns\n into “visit 3 dealerships this weekend\". Incoming “stuff\" is categorized and parked\n if needed until it is actionable to reduce the number of concurrent threads. The suggestions\n are very sound but as always it takes a bit of trust and lots of discipline to succeed\n at implementing them.\n\n## Avoid Sync Points - Meetings Don’t Scale\n\nLet’s assume people do their best individually to be productive and have high throughput,\n meaning we have efficient and effective system components. Now we need to look at\n the integration architecture, which includes interaction between the components, er\n people. One of the most common interaction points (short of e-mail, more on that later)\n surely is the *meeting*. The name alone gives some of us goose bumps because it suggests that people get\n together to “meet\" each other, but does not define any specific objective or outcome.\n\nFrom a system design perspective meetings have another troublesome property: Meetings\n require multiple humans to be (mostly) in the same place at the same time. In software\n architecture we call this a \"synchronization\" point, known as one of the biggest throughput\n killers. A synchronization point almost invariably means that some parties or components\n wait for others (that’s how they get “synchronized\"), which kills throughput.\n\nIn many traditional organizations, setting up a meeting can take a month or longer,\n depending on whose attendance is required, which leads to significantly slowed down\n decision-making and project progress. Meetings also lead to resource contention: people’s\n time. When I look at my calendar I all too often see 3 or 4 meetings stacked in the\n same time slot despite the significant effort put into managing the calendar. The\n fact that most managers in large organizations have someone manage their calendar\n underlines the overhead involved in employing meetings as the primary interaction\n strategy. To top things off, full schedules trigger a positive feedback loop consisting\n of planning further ahead and blocking time \"just in case\", which subsequently makes\n it even more difficult to find a slot. In system design we would call this *pessimistic resource allocation*, which is also known to be placing a burden on the system.\n\nWhile meetings can be useful for critical discussions and decisions (see below), the\n worst kind of meetings must be status meetings. If I want to know where a project\n “stands\" I need to wait for the next status meeting in a week or two. Worse yet, many\n status meetings I attended consisted of someone reading off slides, which were unavailable\n to be distributed ahead of the meeting lest someone could read them by themselves\n and skip the meeting.\n\n## Interrupts Interrupt - Phone Calls\n\nWhen you can’t wait for the next meeting, you tend to call the person. I know well\n as I log half a dozen incoming calls a day, which I routinely don’t answer (they typically\n lead to an e-mail starting with the phrase “I was unable to reach you by phone\", whose\n purpose I never quite understood). Phone calls are also synchronous, but don’t require\n wait time, so they should be better than setting up a meeting?\n\nYes, phone calls are low-latency because the requestor doesn’t wait, but they also\n require two or more resources to be available at the same time. How many times have\n you played “phone tag\", i.e. you were busy or on the phone when someone called just\n to experience the reverse when you call them back? I am not sure there’s an analog\n to this in system communication (I should know; after all I am documenting [conversation patterns](/ramblings/83_subscribing.html)…), but it’s difficult to imagine this as effective communication.\n\nPhone calls are “interrupts\" (they are blockable as long as you mute your ringer),\n and in open environment they not only interrupt you, but also your coworkers. That's\n one reason that the Google Japan desks were by default not equipped with phones -\n you had to specifically request one, which was looked upon as a little old-fashioned.\n The damage ringing phones can do in open office spaces was already illustrated in\n Tom DeMarco and Tim Lister's classic [Peopleware](http://www.amazon.com/exec/obidos/ASIN/0321934113/enterpriseint-20). The \"tissue trick\" won't work anymore with digital phones, but luckily almost all\n of them have a volume setting. My pet peeve related to phones is that people bust\n into my office while I am on the speaker phone (conference calls), so I'd like to\n build a pet project to illuminate an \"on air\" sign when I am on the phone. IP telephony\n should make this fairly easy, barring any self-inflicted access restrictions.\n\nPhone calls also also tend to lead to very uneven resource usage. It seems that suddenly\n everyone calls you, but other times it’s awfully quiet. This is a classic utilization\n problem that queuing solves by performing “traffic shaping\" – spikes are absorbed\n by the queue to allow the service to process requests at the optimal rate without\n becoming overloaded.\n\n## Piling on instead of backing off\n\nRetrying an unsuccessful operation is a typical remote [conversation pattern](/patterns/conversation/RequestResponseRetry.html). It is also a dangerous operation because it can escalate a small disturbance in\n a system into an onslaught of retries which bring everything to a grinding halt. That's\n why [Exponential Backoff](https://en.wikipedia.org/wiki/Exponential_backoff) is a well-known pattern and forms the basis of many low-level networking protocols,\n such as the CSMA/CD (Carrier Sense, Multiple Access with Collision Detection), which\n is a core element of the Ethernet protocol.\n\nIronically, humans tend to not back off if a phone call fails, but have a tendency\n to \"pile on\": if you don't pick up they tend to call you at ever shorter intervals\n to signal you that \"it's urgent\". Ultimately, they will back off, but only after burdening\n the system with overly aggressive retries.\n\n## Asynchronous Communication – Email, Chat, and More\n\nIn corporate environments E-Mail tends to draw almost as much hatred as meetings.\n It has one big advantage, though: it is asynchronous. Instead of being interrupted,\n you can process your e-mail whenever you have a few minutes to spare. Getting a response\n may take slightly longer, but it’s a classic “throughput over latency\" architecture,\n best described by Clemens Vaster’s analogy of needing [wider bridges not faster cars](/ramblings/29_teched.html) (referring to the perennially congested highway 520 bridge that connects Seattle\n to Redmond).\n\nOf course e-mail has significant draw-backs, the main one being is that people tend\n to flood everyone with it as it is perceived as having no cost. You must have a good\n inbox filter if you want to survive – those of us who use Outlook without working\n search (not the product’s fault, but a \"feature\" of our setup) are doomed. Also,\n Mail isn't collectively searchable – each person has their own record of history.\n I guess you could call that an *eventually-consistent* architecture of sorts and just live with it, but it still seems horribly inefficient.\n I wonder how many copies of that same 10 MB PowerPoint presentation plus all it's\n prior versions are stored on our Exchange server.\n\nOne of the best ways I have seen to overcome the limitations of e-mail is to integrate\n chat with mail: if you don’t get a reply or the reply indicates that a real-time discussion\n is needed, you select the “reply by chat\" button, which turns the conversation into\n a quasi-synchronous mode: it still allows the receiver to answer at will (so it’s\n asynchronous), but allows for much quicker iterations than mail. The other effective\n way to conduct asynchronous communication without e-Mail is to use products like [Slack](https://slack.com), which favor a chat / channel paradigm (I have not had a chance to use it irl). In\n systems architecture you could liken this to [Tuple spaces](https://en.wikipedia.org/wiki/Tuple_space), which employ a *blackboard* architectural style. Such a style is well suited for scalable, distributed systems\n as it is loosely coupled and avoids duplication.\n\nSpeaking of blackboard, the most transformative change in corporate collaboration\n I have seen was the advent of Google Docs and it’s not due to my 7 years of drinking\n Google Koolaid. In fact, when Docs first became available internally at Google I complained\n a lot because it had a level of feature maturity below that of Microsoft Word 5.0.\n However, being able to collaborate in real-time on a document completely changed the\n way people work together towards a shared outcome. Having had to go back to mailing\n Word documents back-and-forth has been an extremely frustrating experience.\n\n## Asking Doesn’t Scale – Build a Cache!\n\nMuch of corporate communication consists of asking questions, often using synchronous\n communication. This does not scale because the same questions get asked again and\n again. Architects would surely introduce a cache into their system to offload the\n source component.\n\nI was reminded of this when I received repeated requests for simple information, such\n as a photo of our new team member. I simply typed his name into Google, and replied\n with the link to the picture: I asked Google, not another person. Search scales, but\n only if the answers are available in a globally (as in across your organization) searchable\n medium. So if you receive a question, answer so that everyone can see (and search\n it), e.g. on an internal forum. That’s how you load the cache. Taking the time to\n explain something in a short document or forum post scales: 1000 people can search\n for and read what you have to share. 1000 1:1 meetings to explain the same story would\n take half or your annual work time.\n\n## Poorly Set Domain Boundaries - Excessive Alignment\n\nWhen I joined corporate IT I had to learn a whole new language. Not just because I\n moved to Bavaria ([ja mei!](http://www.muenchen.de/veranstaltungen/oktoberfest/schmankerl/bayerisch-kurs.html)), but because corporate IT in large organizations has a distinct vocabulary. My\n coworkers can attest that my most unwelcome word at work is “to align\". I often jest\n that that “aligning\" is what I do when my car doesn’t run straight or wears the tires\n unevenly. Why I need to do it at work all the time puzzled me. Especially as “alignment\"\n invariably triggered a meeting with no clear objective (see above).\n\nIn corp speak, “to align\" means to coordinate on an issue and come to some sort of\n common understanding or agreement. A common understanding is an integral part of productive\n team work, but what worries me is that the act of “aligning\" takes on a life of its\n own. My explanation is that it’s a sign of mis-alignment (pun intended) between the\n project and organizational structure: the people that are critical to a project’s\n success or are vital decision makers are not part of the project, requiring frequent\n “steering\" and “alignment\" meetings.\n\nThe system design analog for this problem are poorly set domain boundaries, drawing\n on Eric Evan’s [Domain-driven Design](https://domainlanguage.com/) concept of a [Bounded Context](http://martinfowler.com/bliki/BoundedContext.html). As a side note, Eric’s website layout will quickly reveal that his book was published\n at the same time as ours.\n\n## Self-Service is Better Service\n\nSelf-service generally has poor connotations – would you rather eat at McDonald’s\n or in a white table-cloth restaurant with waiter service if the price was the same?\n However, if you are a food chain looking to optimize throughput would you rather be\n McDonald’s or the quaint Italian place with 5 tables? Self-service scales. Like a\n large supermarket. Requesting a service or ordering a product by making a phone call\n or e-mailing spreadsheets attachments for someone to manually enter data does not\n scale, even if you lower the labor cost with near- or offshoring. In order to scale,\n [automate everything](/ramblings/90_softwareeatstheworld.html): make all functions and processes available on-line on the intranet, ideally both\n as Web UI’s and as (access protected) service API’s so users can layer services or\n custom user interfaces on top, e.g. to combine popular functions.\n\n## Scaling for Size or for Speed\n\nSo far we discussed scaling organizations for speed and throughput. Typically, “Economies\n of scale\" are associated with scale in terms of size, though. Our organization often\n prides itself in “economies of skill, scale, and scope\". Since we are a large organization,\n this should be a good thing, but I often don’t see the economies of scale in software.\n A software vendor once visited us and stated that “obviously the license cost per\n unit goes down if we buy more licenses\". To me this is not obvious at all as there\n is no distribution cost per unit of software, aside from the sales person sitting\n across the table from me. Whether 10000 customers download one license or 1 customer\n buys 10000 licenses should be the same, assuming the software vendor automated everything.\n I guess enterprise software sales still has some transformations to make.\n\nSize is often seen as an advantage, but it also brings disadvantages as many large\n organizations that wish to compete with start-ups and digital native companies can\n attest. Large organizations tend to be slower as they are bogged down in internal\n processes and control structures that are required or perceived to be required to\n keep a large organization in check. The same holds true for cities: density and scale\n have definite advantages (e.g. short transportation and communication paths, diverse\n labor supply), but also brings pollution and congestion problems, which ultimately\n limit the size of cities. For organizations one big factor is speed of change – in\n times of little change being big is almost always an advantage. In times of change\n economies of speed are likely to outweigh economies of scale.\n\n## Staying Human\n\nDoes scaling organizations like computer systems mean that the digital world shuns\n personal interaction, turning us into faceless e-mail and workflow drones that must\n maximize throughput? I don't think so. I very much value personal interaction for\n brainstorming, negotiation, solution finding, bonding, or just having a good time.\n That's what we should maximize face-to-face time for. Having someone read slides aloud\n or calling me the third time to ask the same question could be achieved many times\n faster by optimizing communication patterns. Am I being impatient? Possibly, but in\n a world where everything moves faster and faster, patience may not be the best strategy.\n High-throughput systems do not reward patience.\n\n*Share:*\n\n*Follow:* [Follow @ghohpe](https://twitter.com/ghohpe) [SUBSCRIBE TO FEED](../ramblings.rss)\n\n*More On:* [ARCHITECTURE](/ramblings_architecture.html) [ALL RAMBLINGS](../ramblings.html)\n\nGregor is a cloud architect and author. He is a frequent speaker on asynchronous messaging,\n IT strategy, and cloud.", "znaku_textu": 17356, "slov": 2732, "odkazu": 57, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 15:35:34", "sha256": "b799409fdd7d2ebf2f4639f72547b30d4c3636c59829d0e77673a4c7e25f7195", "hloubka": 4, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://architectelevator.com/blog", "http://www.joelonsoftware.com/articles/fog0000000018.html", "https://en.wikipedia.org/wiki/Getting_Things_Done", "http://www.amazon.com/exec/obidos/ASIN/0321934113/enterpriseint-20", "https://en.wikipedia.org/wiki/Exponential_backoff", "https://slack.com/", "https://en.wikipedia.org/wiki/Tuple_space", "http://www.muenchen.de/veranstaltungen/oktoberfest/schmankerl/bayerisch-kurs.html", "https://domainlanguage.com/", "http://martinfowler.com/bliki/BoundedContext.html", "https://twitter.com/share", "https://twitter.com/ghohpe", "https://leanpub.com/37things"]} {"url": "http://www.enterpriseintegrationpatterns.com/ramblings/93_oop2016.html", "titulek": "25 Years of OOP - Enterprise Integration Patterns", "h1": "25 Years of OOP", "popis": "OOP is one of the conferences that originated in the \"OO\" era of the early to mid-nineties", "klicova_slova": "", "kanonicka": "", "jazyk": "en_US", "robots_meta": "", "og": {"og:type": "article", "og:locale": "en_US", "og:site_name": "Enterprise Integration Patterns", "og:title": "25 Years of OOP", "og:description": "OOP is one of the conferences that originated in the \"OO\" era of the early to mid-nineties", "og:url": "https://www.enterpriseintegrationpatterns.com/ramblings/93_oop2016.html"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "25 Years of OOP"}, {"uroven": 2, "text": "Ralph Johnson: Modeling vs. Coding"}, {"uroven": 2, "text": "James Grenning on Agile"}, {"uroven": 2, "text": "Linda Rising: Patterns: My Journey"}, {"uroven": 2, "text": "When will I, will I be famous?"}, {"uroven": 2, "text": "Frank and Kevlin on Objects"}, {"uroven": 2, "text": "Kresten Krab Thorub on Messaging with Erlang"}], "markdown": "Gregor's Ramblings\n\n---\n\n# 25 Years of OOP\n\nFebruary 5, 2016\n\nFind my posts on IT strategy, enterprise architecture, and digital transformation\n at [ArchitectElevator.com](https://architectelevator.com/blog).\n\nOOP is one of the conferences that originated in the \"OO\" era of the early to mid-nineties.\n While most of these events have shed the double \"O\" -- OOPSLA has become SPLASH and\n JAOO has become GOTO, OOP stayed true to its name and remains one of the premier German\n developer conferences. This year OOP celebrated its 25th anniversary. Here are my\n impressions.\n\nFor the 25 year anniversary, Frank Buschmann of [POSA](http://www.amazon.com/exec/obidos/ASIN/0471958697/enterpriseint-20) fame setup a special jubilee track with famous folks who have been around the block\n once or twice. First up was Eoin Woods (pronounced \"Owen\"), co-author of [Software Systems Architecture](http://www.amazon.com/exec/obidos/ASIN/032171833X/enterpriseint-20). Eoin spoke on dissolving systems, meaning instead of a giant monolithic chunk these\n systems consist of an almost organic structure of distributed components. He observed\n that this not only changes the architecture, but also the role of architects.\n\nTrue to the spirit of the track, Eoin gave a history of preferred software architectures\n from monoliths in the 80ies to distributed monoliths (consisting of large pieces)\n in the 90ies, Internet connected systems in the 2000s and Internet distributed systems\n in the 2010s. He predicts that systems in the 2020s will be *intelligent connected*. Along this evolution, the role of architects also changed: with monolithic systems,\n the vendor pretty much gave us the architecture, leaving us to focus on writing programs.\n In the 1990s software architecture emerged as a serious topic, for example with the\n WICSA conference (German speakers can never say this with a straight face). Also,\n Mary Shaw's and Dave Garlan's seminal title [Software Architecture](http://www.amazon.com/exec/obidos/ASIN/0131829572/enterpriseint-20) dates back to just 1996 -- not actually that long ago.\n\nAs systems become distributed, being dissolved into microservices and connected via\n API's, architecture takes a stronger role. Maybe this explains my observation of new\n software architecture conferences popping up in recent years, e.g. the [Software Architect Summit](http://software-architecture-summit.de/) and O'Reilly's [Software Architecture](http://conferences.oreilly.com/software-architecture/) conference. Eoin observed that just in the 2010s the discipline of software architecture\n matured with a focus on decision-making, sustainability, managed evolution.\n\nReflecting on the current state of software architecture, Eoin observes that software\n architects have become pretty good at structure, relationships, certainty, but not\n so good at dynamic structures, data and algorithms and operational aspects.\n\n## Ralph Johnson: Modeling vs. Coding\n\nRalph is now officially retired, but appears as active as ever: he is working for\n [Metaficient](http://metaficient.com/), which builds end-user programming tools for the financial industry. No quite coincidentally,\n his talk reflected on the different ways we are looking for models, abstractions,\n or patterns to make programming easier and more expressive. He consciously excluded\n visual modeling as he wanted to focus on the essence of the model, not the notation\n (this is also why he did not mention our EIP patterns).\n\nRalph was not the only speaker who reminded us of the “Scandinavian School of OO”,\n which pursued an object model that maps objects to real world items and a vocabulary\n that is meaningful to users, allowing users to participate in the design process.\n This actually worked well in business domains, but not so well in things like physics\n simulations. In contrast the \"American School of OO\" was driven by pursuit of efficiency\n through reuse, i.e. economics.\n\nRalph also reminded us of two famous and very insightful quotes from George Box:\n\n- All models are wrong, but some are useful.\n- Simple but evocative models are the signature of the great scientist, but over-elaboration\n and over-parameterization is often the mark of mediocrity.\n\nThe most enjoyable part of Ralph's talk was to have the opportunity to chat with him\n for a good 10 minutes afterwards. I was surprised not more attendees would line up\n to talk to *the* Ralph Johnson of GoF fame. I guess German attendees are a bit shy. Ralph reminded\n me to have another look at [Data Model Patterns](http://www.amazon.com/exec/obidos/ASIN/0932633293/enterpriseint-20), which shares many parallels with Martin Fowler's [Analysis Patterns](http://www.amazon.com/exec/obidos/ASIN/0201895420/enterpriseint-20), although the books are based on different meta-models: relational vs. object-oriented.\n\n## James Grenning on Agile\n\nBeing one of the original authors of the [Agile Manifesto](http://www.agilemanifesto.org/), James reflected on what went right and what went wrong with \"agile\". Much of what\n went wrong relates to [Scrum](https://en.wikipedia.org/wiki/Scrum_(software_development)). The most noteworthy sound bites were:\n\n- \"There are 6 times more certified Scrum masters than certified Scrum developers. It\n seems 6 Scrum Masters are needed to manage one Scrum developer.\"\n- \"If there always is a Scrum master, who are the poor Scrum slaves?\"\n- \"Why do we have to sprint all the time? Sprinting over long distances makes no sense.\"\n\nI fear my employer actively supports James' first point: we recently sent around 100\n project managers through Scrum certification. They'll be looking for developers to\n chase through sprints now.\n\n## Linda Rising: Patterns: My Journey\n\nIt was great to see Linda again. I attended her talk mostly to see her speak as I\n was part of a good portion of the patterns journey from [workshopping](66_fouryears.html) *Enterprise Integration Patterns* at PLoP 2002, *Conversation Patterns* at EuroPLoP 2008, and attending various PLoPs and ChiliPLoPs. Linda has a knack for\n making connections between seemingly disconnected domains and a great way of highlighting\n subtleties that may otherwise go unnoticed. For example, I really enjoyed Linda's\n description of the difference between a patterns conference and a usual (academic)\n conference: in a normal conference, a person submits a paper, which is either accepted\n or rejected, based on the state it is in at the time of submission. Authors of accepted\n papers are allowed to present their paper, but leave pretty much with the same state\n of knowledge they came with, aside from interesting Q&A perhaps. Pattern conferences\n work differently: papers are actively \"shepherded\" to improve them and to get them\n into prime time for the conference. During the conference the author does not speak\n at all -- the paper must speak for itself. Instead, fellow participants and other\n authors comment on the paper in a so-called *writers' workshop*. The author leaves with fantastic feedback on his or her paper. While giving feedback\n on a paper sounds trivial, you have to have experienced a well-moderated writers'\n workshop to really understand its power. Dick Gabriel's thoughtful book [Writers' Workshops](http://www.amazon.com/exec/obidos/ASIN/020172183X/enterpriseint-20) appears out of print, but he made the [PDF available on-line](https://www.dreamsongs.com/Files/WritersWorkshopTypeset.pdf).\n\nSpeaking of making things available, Linda pointed out that she makes all her material\n available freely and encourages us to give her talk ourselves. Her main motivation\n is to share the message with as many people as possible.\n\n## When will I, will I be famous?\n\nRegular readers already know that most of my references originate from cheesy 80s\n songs or the movie *The Matrix*. Staying in tune with Bros' 1987 hit, I felt a big step closer to stardom when I\n was invited to join a panel on *Software Engineering 10 years from Now* with none less than (OTI) Dave Thomas, Ward Cunningham, and Richard Soley, Chairman\n of OMG. These guys have seen the last 30 years of software engineering from up-close\n and certainly left their mark, so I was a bit nervous about being able to add much\n at all. Hence, this was the first time I was inclined to actually prepare for a panel.\n\nLuckily, at a dinner at Frank Buschmann's earlier in the week, Kevlin Henney and I\n recalled that exactly 10 years earlier, at [JAOO 2006](47_jaoo.html) we had a similar panel, that time with Dave as moderator and Kevlin as one of the\n panelist. So I felt it'd be a good start to recap some of the items that occupied\n us back then and see what they feel like 10 years later:\n\n- In 2006 folks were concerned about AOP (Aspect-Oriented Programming). It seems we\n are no longer that concerned because it has gotten pretty quiet on that topic. Dave\n clearly expressed his view on AOP with a strong thumbs-down vote.\n- In 2006, there was still some quite some activity on mapping, e.g. O/R or Objects-XML.\n Kevlin already commented back then that mapping sucks. Today it seems we found peace\n with solutions that don't totally suck and stopped trying.\n- Another topic 10 years ago were CSP - Communicating Sequential Processes. This one\n actually got traction with Erlang being popular and Go being based on CSP.\n- DSLs are still a topic, but somewhat of a niche. It turns out that building good DSLs\n with great tool support is possible, but requires some smart folks like [Markus Völter and Bernd Kolb](http://www.oop-konferenz.de/oop2016/konferenz/konferenzprogramm/sessiondetails/action/detail/session/di-53/title/wir-sind-aber-keine-programmierer-oder-doch.html) .\n\nAlas, Ward was even better prepared and had a whole opening speech drafted up, which\n included visions of Starbucks Hacker Spaces. Being part of such a star-studded panel,\n I actually managed to take some notes myself. I hope the audience didn't think I was\n replying to e-mails during the panel. Here some of the key messages I was able to\n capture:\n\n- Ward: We have already seen all the things that will be important in 10 years.\n- Ward: the \"Internet of Things\" will be just \"Things\". The Internet weill be taken\n for granted.\n- Richard: The most widespread languages are still same old Fortran and COBOL.\n- Richard: Security is and will be a key consideration.\n- Dave: Tooling and affordances are still very weak. The accidental complexity can kill\n us.\n- Dave: Cheap hardware has been saving us: we did not achieve isolation because we are\n smart enough to understand Erlang, but because processors are so cheap that we can\n use a micro-services architecture.\n- Dave: The future belongs to people with domain knowledge. You better understand some\n domains.\n- Dave: With 10TB local storage on your laptop you won't need to reach out to a server\n for every little thing. Peer-to-peer communication will see a revival.\n- Dave: we will see quantum computing, but you and I won't be using it.\n- Dave: People need to understand *software physics* , for example threading does not make things magically faster.\n\nI wasn't able to take notes on my own comments, but recall touching on the following\n topics:\n\n- It seems that after preoccupying ourselves with things like type systems and languages,\n we now focus on truly important aspects of software development: security and resilience.\n- Some part of having to deal with these is self-inflicted as we moved to more dynamic,\n but also more complex run-time architectures.\n\n## Frank and Kevlin on Objects\n\nFrank and Kevlin gave a another great review of object-oriented programming, highlighting\n how much we owe to Simula-67. Simula has some distinct features like the ability to\n \"park\" procedures, which are referred to as \"classes\". The story goes that Bjarne\n Stroustrup wasn't allowed to use Simula at AT&T and hence extended C to become C++.\n\nTheir talk was lined with fantastic sound bites, like the observation that the opposite\n of *set*set is *unset*, not *get*. Likewise, *get* doesn't even have an opposite. *get* and *set* just happen to rhyme.\n\nWe also often forget that the terms \"class\" and \"instance\" were already part of [Structured Programming](http://www.amazon.com/exec/obidos/ASIN/0122005503/enterpriseint-20) (looking at Amazon, it seems that by now all good Computer Science books are out\n of print -- or I am simply getting old).\n\n## Kresten Krab Thorub on Messaging with Erlang\n\nKresten gave a really nice talk on Erlang, making the case that Erlang will not be\n a mainstream language, but will have a big influence on future languages, much like\n Smalltalk influenced Java. Hos talk struck the perfect balance between being contemplative\n and easy to follow. Erlang originated from building reliable, distributed systems\n -- something that has become increasingly relevant.\n\nThe key to Erlang's robustness is isolation: components execute independently and\n communicate via messages sent across in-memory message queues. Kresten explained that\n the big relief when moving from C++ to Java is not have to worry about deallocation.\n When moving from Java to Erlang you gain \"state containment\".\n\nKresten's talk reminded me how lazy I am when it comes to learning new languages.\n I think the last language I learned is Python. So I downloaded Go-lang to get of my\n butt and learn a new language. I was also wondering whether Erlang could make for\n a suitable language to program some [Conversation Patterns](/patterns/conversation).\n\n*Share:*\n\n*Follow:* [Follow @ghohpe](https://twitter.com/ghohpe) [SUBSCRIBE TO FEED](../ramblings.rss)\n\n*More On:* [EVENTS](/ramblings_events.html) [ALL RAMBLINGS](../ramblings.html)\n\nGregor is a cloud architect and author. He is a frequent speaker on asynchronous messaging,\n IT strategy, and cloud.", "znaku_textu": 13655, "slov": 2083, "odkazu": 60, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 15:35:33", "sha256": "b07ed4b595fda06fd64a50e5ac878c05c0123c845c0ca2afdf8757d0383058b5", "hloubka": 4, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://architectelevator.com/blog", "http://www.amazon.com/exec/obidos/ASIN/0471958697/enterpriseint-20", "http://www.amazon.com/exec/obidos/ASIN/032171833X/enterpriseint-20", "http://www.amazon.com/exec/obidos/ASIN/0131829572/enterpriseint-20", "http://software-architecture-summit.de/", "http://conferences.oreilly.com/software-architecture/", "http://metaficient.com/", "http://www.amazon.com/exec/obidos/ASIN/0932633293/enterpriseint-20", "http://www.amazon.com/exec/obidos/ASIN/0201895420/enterpriseint-20", "http://www.agilemanifesto.org/", "https://en.wikipedia.org/wiki/Scrum_(software_development)", "http://www.amazon.com/exec/obidos/ASIN/020172183X/enterpriseint-20", "https://www.dreamsongs.com/Files/WritersWorkshopTypeset.pdf", "http://www.oop-konferenz.de/oop2016/konferenz/konferenzprogramm/sessiondetails/action/detail/session/di-53/title/wir-sind-aber-keine-programmierer-oder-doch.html", "http://www.amazon.com/exec/obidos/ASIN/0122005503/enterpriseint-20", "https://twitter.com/share", "https://twitter.com/ghohpe", "https://leanpub.com/37things"]} {"url": "http://www.enterpriseintegrationpatterns.com/ramblings/94_37things.html", "titulek": "37 Things or \"Where have all my ramblings gone?\" - Enterprise Integration Patterns", "h1": "37 Things or \"Where have all my ramblings gone?\"", "popis": "About two years ago, I revived the ramblings from a four-year hibernation", "klicova_slova": "", "kanonicka": "", "jazyk": "en_US", "robots_meta": "", "og": {"og:type": "article", "og:locale": "en_US", "og:site_name": "Enterprise Integration Patterns", "og:title": "37 Things or \"Where have all my ramblings gone?\"", "og:description": "About two years ago, I revived the ramblings from a four-year hibernation", "og:url": "https://www.enterpriseintegrationpatterns.com/ramblings/94_37things.html"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "37 Things or \"Where have all my ramblings gone?\""}, {"uroven": 2, "text": "IT Transformation"}, {"uroven": 2, "text": "37 Things One Architect Knows about IT Transformation"}, {"uroven": 2, "text": "Buy the Book"}, {"uroven": 2, "text": "Follow along: ArchitectElevator.com"}, {"uroven": 2, "text": "See 37 Things Live"}, {"uroven": 2, "text": "What's Next?"}], "markdown": "Gregor's Ramblings\n\n---\n\n# 37 Things or \"Where have all my ramblings gone?\"\n\nJuly 5, 2016\n\nFind my posts on IT strategy, enterprise architecture, and digital transformation\n at [ArchitectElevator.com](https://architectelevator.com/blog).\n\nAbout two years ago, I revived the ramblings from a four-year hibernation. Upon resurrection,\n the ramblings started to take a broader scope, including not only messaging, conversations,\n and patterns, but also communication and IT architecture topics. The new topics were\n a natural reflection of my new role as Chief Architect in a massive IT transformation\n and after a little while I decided that they deserve their own channel, so I wrote\n a book about it.\n\n## IT Transformation\n\nIT transformation has become quite a popular word as traditional enterprises are coming\n under pressure from \"digital disruptors\" who innovate faster, at lower cost, and\n don't have to deal with legacy. Such transformations often focus on IT organizations\n and systems architecture as enterprises understand that IT is no longer a necessary\n evil, but a critical business enabler. Sadly, an IT department that has been run as\n a cost center for years or decades while valuing stability over change, is not well\n prepared to provide business agility and flexibility to the business.\n\nIT architects can and must play a critical role in such transformations because they\n combine the technical, communication, and organizational skill to organize and apply\n information technology for measurable business benefit. They understand what \"being\n agile\" and \"DevOps\" really mean and what cultural, organizational, and technical changes\n are needed to implement them. They know that shoving random monoliths into a Docker\n container doesn't make them cloud-native. And they can weigh the risk of new technology\n against the need to transform. It's no surprise then that software and IT architects\n have become some of the most sought-after IT professionals around the globe.\n\nThe architects' job is not an easy one, though: they must maneuver a rigid organization\n where IT is still seen as a cost center, where operations means \"run\" as opposed to\n \"change\", and where middle-management has become cozy neither understanding the business\n strategy nor the underlying technology. On top of all this, the affected organizations\n are often still quite profitable, reducing their appetite for change: non-IT-savvy\n management may be quite content with the status quo and actively resist change as\n that will expose their ignorance. Vendors like to introduce new technology, but are\n also generally happy having their clients not too IT savvy lest they no longer require\n services.\n\n## 37 Things One Architect Knows about IT Transformation\n\nTo assist architects who are involved in an IT transformation or are contemplating\n taking a bigger role, I decided to write down my experiences into a collection of\n short essays of about 1500 - 2500 words, slightly longer than the [average rambling](/ramblings/85_sameoldarchitecture.html). I absorbed a handful of ramblings into the book, including the classic [Starbucks rambling](/ramblings/18_starbucks.html), but edited and expanded all of them to make them fit for print publication.\n\nI structured the topics into 5 sections:\n\n1. What does it mean to be an architect?\n2. How architecture influences digital transformation.\n3. How to communicate to a broad range of stakeholders.\n4. How to understand organizational structures and systems.\n5. How to achieve change and transformation.\n\nTo set myself a concrete target, I decided that I would write 37 essays on the topic\n and named the book [37 Things One Architect Knows](https://leanpub.com/37things). Why 37 things and not 36 or 38? 37 is a nice prime number with a mellow sound to\n it. The title is also a spoof on O'Reillys [97 Things](/gregor.html) books, to which I contributed.\n\nBorrowing from the ramblings, I gave the essays catchy titles like:\n\n- Never Send a Human to Do a Machine’s Job\n- If Software Eats the World, Better Use Version Control!\n- Show the Kids the Pirate Ship!\n- Sketching Bank Robbers\n- Control is an Illusion\n- Governance Through Inception\n- No Pain, no Change!\n- Economies of Speed\n- The Infinite Loop\n- Money can’t buy Love.\n\nThe writing process was fairly fast just over 72,000 words written from February until\n end of June, in just 5 months. That's almost 500 words a day, or about 2 \"things\"\n a week. Not quite on par with the popular [750 Words](http://750words.com/) thing, but also without the motivating metrics. I guess the somewhat annoying Island\n Paradise Blogger dude (link intentionally omitted) would have written 70,000 words\n in just a week... ah well. I'll try it next time I am in Phuket. Actually, I did write\n 2 chapters while in Mai Khao so maybe there is something very inspiring about Thailand.\n\n## Buy the Book\n\nYou can buy the e-book DRM-free in epub, mobi, and pdf formats at [leanpub.com/37things](https://leanpub.com/37things). There's also a [free preview](https://leanpub.com/37things/read).\n\nWhen writing a book about the digital, fast moving world, publishing an e-book seems\n most appropriate. Leanpub is a nifty little platform that allows you to write your\n book in markdown with a local GIT workflow and Dropbox synchronization. They also\n allow readers to chose the price they want to pay, making them an interesting mix\n of a publishing platform and Kickstarter.\n\nYou can also buy printed copies at [Lulu](http://www.lulu.com/spotlight/37things)(Europe) or [Amazon](http://amazon.com/o/asin/1537082981/ref=nosim/enterpriseint-20)(Worldwide). Feel free to contact me for volume discounts, e.g. for a lecture or workshop.\n I also provide copies to [workshop participants](/talks).\n\n## Follow along: ArchitectElevator.com\n\nWhile both Enterprise Integration and Enterprise Transformation are important enterprise-level\n topics, I figured that the audiences will be somewhat distinct. I have therefore\n given my thoughts on digital transformation and IT strategy its own home, [ArchitectElevator.com](https://architectelevator.com). Go and have a look.\n\n## See 37 Things Live\n\nCommunication and organizational transformation skills are difficult to learn from\n books, so I offer [2-day workshops](https://architectelevator.com/workshops) , which include many exercises.\n\n## What's Next?\n\nWhat will happen to the ramblings now? 37 Things started out as the procrastination\n project for [EIP 2](/ramblings/81_restconversation.html). Now that I have the 37 things out of my system, I will start rambling and writing\n about conversation patterns again.\n\n*Share:*\n\n*Follow:* [Follow @ghohpe](https://twitter.com/ghohpe) [SUBSCRIBE TO FEED](../ramblings.rss)\n\n*More On:* [WRITING](/ramblings_writing.html) [ALL RAMBLINGS](../ramblings.html)\n\nGregor is a cloud architect and author. He is a frequent speaker on asynchronous messaging,\n IT strategy, and cloud.", "znaku_textu": 6869, "slov": 1017, "odkazu": 52, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 15:35:32", "sha256": "0ca606b6de0a64effb865e995ba8ca0a604830bc647642c50223103e4e586dbe", "hloubka": 4, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://architectelevator.com/blog", "https://leanpub.com/37things", "http://750words.com/", "http://www.lulu.com/shop/gregor-hohpe/37-things-one-architect-knows-about-it-transformation/paperback/product-22825591.html", "https://leanpub.com/37things/read", "http://www.lulu.com/spotlight/37things", "http://amazon.com/o/asin/1537082981/ref=nosim/enterpriseint-20", "https://architectelevator.com/", "https://architectelevator.com/workshops", "https://twitter.com/share", "https://twitter.com/ghohpe"]} {"url": "http://www.enterpriseintegrationpatterns.com/ramblings/coupling_facets.html", "titulek": "The Many Facets of Coupling - Enterprise Integration Patterns", "h1": "The Many Facets of Coupling", "popis": "Coupling is integration's magic word", "klicova_slova": "", "kanonicka": "", "jazyk": "en_US", "robots_meta": "", "og": {"og:type": "article", "og:locale": "en_US", "og:site_name": "Enterprise Integration Patterns", "og:title": "The Many Facets of Coupling", "og:description": "Coupling is integration's magic word", "og:url": "https://www.enterpriseintegrationpatterns.com/ramblings/coupling_facets.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/coupling_dimensions_all.png"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "The Many Facets of Coupling"}, {"uroven": 2, "text": "Coupling is a Measure of Variability"}, {"uroven": 2, "text": "Coupling Isn't Binary"}, {"uroven": 2, "text": "Coupling is Multi-Dimensional"}, {"uroven": 2, "text": "Dimensions of Coupling"}, {"uroven": 3, "text": "Technology Dependency"}, {"uroven": 3, "text": "Location Dependency"}, {"uroven": 3, "text": "Topology Dependency"}, {"uroven": 3, "text": "Data Format & Type Dependency"}, {"uroven": 3, "text": "Semantic Dependency"}, {"uroven": 3, "text": "Conversation Dependency"}, {"uroven": 3, "text": "Order Dependency"}, {"uroven": 3, "text": "Temporal Dependency"}, {"uroven": 2, "text": "What's Next?"}, {"uroven": 3, "text": "Nuanced discussion of coupling"}, {"uroven": 3, "text": "Hidden Coupling"}], "markdown": "Gregor's Ramblings\n\n---\n\n# The Many Facets of Coupling\n\nJune 10, 2024\n\nFind my posts on IT strategy, enterprise architecture, and digital transformation\n at [ArchitectElevator.com](https://architectelevator.com/blog).\n\nCoupling is integration's magic word. Loose coupling affords the participants desirable\n properties like independent variability or operational resilience. However, as pointed\n out in a [recent blog post](https://architectelevator.com/cloud/cloud-decoupling-cost/), coupling isn't binary nor is it a single dimension. So it's time to apply our favorite\n architect maneuvres—seeing more dimensions and seeing shades of gray—to coupling.\n\n## Coupling is a Measure of Variability\n\nLike most architecture concepts (and the concept of architecture itself), finding\n a universally agreed-upon definition of coupling isn't easy. I fall back to my description\n from many years ago:\n\n> Coupling describes the independent variability of connected systems, i.e., whether\n> a change in System A affects System B. If it does, A and B are coupled.\n\nThis definition places coupling at the center of *change propagation*, meaning if one component changes, does that change affect other components? Change\n comes in many forms, for example, a change in requirements, a change in scale, or\n a change in component latency or availability. Systems that are (more) tightly coupled\n tend to be brittle: local changes trickle through the system. Those changes can be\n functional, meaning the system is difficult (and risky) to change. They can also be\n operational changes like the outage of one component. If other components are temporally\n coupled to this component, a local issue can drag the entire system down. We call\n such a system brittle, meaning it isn't *resilient* because it doesn't absorb disturbance.\n\n## Coupling Isn't Binary\n\nI have long resented the idea of coupling being regarded as some form of bit that's\n either set or not, meaning something is coupled or magically decoupled. As computer\n folks, we like binary things, but unfortunately coupling (like most architecture considerations)\n isn't one of them. My oldest and still favorite quote aptly takes the notion of coupling\n being an on/off switch to the extreme by providing this clever advice for setting\n the coupling bit to \"false\":\n\n> How do you make two systems loosely coupled? Don't connect them. (David Orchard)\n\nSo, the objective can't be to make everything loosely coupled but rather to understand\n the nuance of coupling and the design trade-offs that are involved. For example, for\n functional changes, if you have full control over all system components, good test\n coverage, and high levels of automation, coupling may not be a big issue. For example,\n method names are tightly coupled, but most modern IDEs support a *rename method* refactoring, which allows us to overcome the change propagation with a single (right)\n button click.\n\nThe insight that an acceptable amount of coupling is connected to the level of control\n leads us to my *basic theorem of coupling*:\n\n> The appropriate level of coupling depends on the level of control that you have over\n> the endpoints.\n\n## Coupling is Multi-Dimensional\n\nNot only is coupling non-binary, it's also not one-dimensional. Whether a change propagates\n through the system depends on the type of change. So, we amend our definition:\n\n> Coupling describes the independent variability of connected systems, i.e., whether\n> a change in System A affects System B. If it does, A and B are coupled\n> \n> with respect to this change\n> \n> .\n\nFor example, a location-dependent solution requires an update to each sender when\n a recipient changes location (such as a new URL or IP address). In other words, sender\n and receiver are coupled with respect to location, or *location coupled* in short. It's easy to see that even this single dimension has many nuances. For\n example, using URLs or hostnames instead of IP addresses gives the sender and receiver\n more variability, but it's a sliding scale. A hostname doesn't cover a server failure\n as the new server likely has a different name. Also, the solution might use a load\n balancer that can decouple single server outages but not the loss of an entire availability\n zone.\n\nI first captured the notion of breaking coupling down into multiple dimensions in\n the [introduction for Conversation Patterns](/patterns/conversation/Introduction.html), which indicates the last update to be from January 2017. A quick check into the\n git repo revealed that this text is at least from 2015\n\nThe same idea found its way into a slide deck on resilience at Yow! 2016:\n\nSome good ideas apparently take time to fully bake, so I evolved it for my [GOTO EDA Day Keynote](https://www.youtube.com/watch?v=w9a7eI6BlVc&list=PLEx5khR4g7PKxJBkaGmSDRywZ3aAZcwpK&index=1&t=1497s) and my [re:Invent talk on distributed systems](https://youtu.be/Zrj7RD7G24Q?t=882) in 2022 (the number of facets increased from 5 to 8 over the course of nine years):\n\nAvid readers will recognize the following slide from a [blog post on my Architect Elevator site](https://architectelevator.com/cloud/cloud-decoupling-cost/#its-always-about-coupling).\n\n## Dimensions of Coupling\n\nIt's time to give each dimension a closer look:\n\n### Technology Dependency\n\nThis dependency exists when communicating systems depend on each other's implementation\n technology. Such dependencies are reflected in the protocol, naming schemes, or data\n types. For example, data encoding can be impacted by the underlying operating system\n or processor architecture, such as a big-endian or small-endian encoding of integer\n numbers. Accordingly, if one component changes the processor architecture, other components\n would have to be updated unless this aspect is decoupled.\n\nProtocols built into frameworks or libraries, such as JMS, [DCOM](https://en.wikipedia.org/wiki/Distributed_Component_Object_Model), Java RMI, Jini, etc. tend to trade off technology dependency for efficiency, which—as\n we learned above— is a reasonable choice if you control the technology of all participating\n systems. Still, it's not that they are tightly coupled in all regards. For example,\n DCOM works across different languages like C++ or C#.\n\n### Location Dependency\n\nTo allow systems to communicate with one another, they must agree on some common addressing\n scheme. A local method call does so by the method name or the memory address for compiled\n languages under the assumption that the target resides in the same virtual machine\n as the sender. RPC-based distributed systems tend to use IP addresses, host names,\n or URLs. Message-oriented systems specify a destination via the name of a [Message Channel](/patterns/messaging/MessageChannel.html), topic hierarchies, or a shared [blackboard tuple](https://en.wikipedia.org/wiki/Tuple_space). Each of these choices can absorb certain degrees of change without propagating it\n to other participants, meaning they are loosely coupled with to that change. A simplified\n heuristic implies that logical addressing is more change-tolerant than physical addressing.\n Although that is true in principle, \"logical\" and \"physical\" are relative to the respective\n layer in the communications stack. For example, IP addresses are logical when compared\n to MAC addresses with the mapping managed by a DHCP server, which plays the role of\n the [Consult Directory](/patterns/conversation/ConsultDirectory.html) conversation pattern.\n\nOnce again going back a decade-and-a-half, a slide from a [presentation about Event-Driven Architectures from 2007](/docs/hohpe_event_driven_architectures.pdf) elaborates on different naming schemes and their levels of coupling:\n\nNote how the slide cleverly avoids suggesting a single dimension of coupling, but\n rather presents the location dependency on a spectrum of more or less structured.\n Using channel names is structured, because sender and receiver must agree on a common\n name in order to connect to one another. Topics, which are frequently used with [Publish-Subscribe Channels](/patterns/messaging/PublishSubscribeChannel.html), provide subscribers with the ability to subscribe to different nodes in a hierarchy.\n This way, they have more control over the messages they receive. Some systems have\n prefix matching for string fields, which can be used to emulate a topic hiararchy\n (by matching for \"A.B.*\" for example). The least structured form allows recipients\n to filter messages by data fields. In this case, the sender doesn't need to specify\n any particular data for matching with recipients but. Instead, this responsiblity\n is pushed entirely to the recipient.\n\nThe need for sender and receiver to agree on a common address can also be eliminated\n by using [explicit composition via an \"Assembler\" component](https://www.enterpriseintegrationpatterns.com/ramblings/loanbroker_stepfunctions_pubsub.html#composition). Sender and receiver have no knowledge of each other because they are connected by\n a third party.\n\nAs expected, there is no free lunch. In the pursuit of total location decoupling,\n you are shifting the change dependency to a special kind of \"god class\", which can\n become a maintenance bottleneck.\n\nAlthough this single dimension of coupling isn't linear, we can roughly depict the\n progression of location coupling from tight to loose as follows:\n\n> Hard-coded addresses → Host Names / URLs → Logical Names → Topics → Content → Explicit\n> Composition\n\nThe [Reactive principles](https://www.reactiveprinciples.org/principles/) highlight the importance of location decoupling for operational resilience. The\n principle of [Decoupling Space](https://www.reactiveprinciples.org/principles/decouple-space.html) states:\n\n> Spatial decoupling enables replication, which ultimately increases the resilience\n> of the system and availability. By running multiple instances of a component, these\n> instances can share the load. Thanks to location transparency, the rest of the system\n> does not need to know where these instances are located.\n\nA common challenge of location decoupling is that logical abstractions cannot hide\n physical properties. For example, if the system is location decoupled, but the new\n component is further away and carries more latency, then there is physical coupling,\n which might affect run-time characteristics.\n\nAs highlighted in the presentation from 2016, location independence affords [composability](/ramblings/19_composing.html): if one component doesn't make location assumptions about the components it is interacting\n with, another component such as an intermediary can take its place without any changes\n to the sender. This special case leads us to the next dimension:\n\n### Topology Dependency\n\nTopology in this context indicates the arrangement of the application components,\n akin to a [Network Tolopogy](https://en.wikipedia.org/wiki/Network_topology). Swapping out one element for another or moving it to a different location (without\n changing the interconnections) does not alter the topology because the graph of connections\n didn't change. However, adding an intermediary or an additional recipient does alter\n the topology because a node was added and connections changed.\n\nWhen component A regularly communicates with component B, inserting an intermediary\n C between A and B implies a topology change. Likewise, if A sends messages to B and\n C, adding a new recipient D is a topology change:\n\nInserting an intermediary is a popular way to reduce other forms of coupling. If A\n sends messages to B, but B changes the expected message format (for example, renames\n a field), you would have to change A as well (because they are coupled with respect\n to data format). However, in some cases you may not have control over A, for example,\n because it is a third-party application. In those cases, you can insert a [Message Translator](/patterns/messaging/MessageTranslator.html) between A and B that takes care of the difference in data format. This new element\n now decouples A and B, at the cost of an additional element. However, for this to\n work, A and B must be *topology decoupled*, meaning that inserting the intermediary doesn't require any change to A. That could\n be because A emits events or sends messages to a logical channel instead of to B directly.\n We notice that the dimensions of coupling aren't entirely independent, but that you\n can use one form of decoupling (topology) to overcome another form of coupling (data\n format).\n\n### Data Format & Type Dependency\n\nMost integration data formats, such as CSV files, XML, or JSON are designed to reduce\n or eliminate technology dependency, such as big or small endian or terminating strings\n with a zero or not. However, data encoding also carries many nuances that in turn\n imply coupling. An integer number may consist of 32 bits on one system and 64 bits\n on another. Character strings might consist of 8-bit ASCII characters, EBCDIC values,\n or UNICODE characters. Therefore, both systems have to agree on a common data representation\n scheme. Some encodings, like fixed format EDI records, rely on a particular order\n of parameters, which breaks when adding or removing data items. \"Tagged\" formats such\n as name-value pairs, XML, or JSON documents loosen up such constraints and reduce\n coupling.\n\nThe two levels that I lumped into one category have slightly different \"change triggers\":\n a data format change refers to a new, renamed, or repositioned field. For example,\n JSON will tolerate a position change or a field addition whereas EDI records will\n not. Data type dependency relates to the encoding of fields, which can include aspects\n such as optional fields or whether missing fields are interpreted the same as a present,\n but empty field. Such seeming nuances have broken numerous integrations in subtle\n ways!\n\nMost integration tools have provisions to lower this form of coupling by providing\n common transport and encodings plus [Message Translators](/patterns/messaging/MessageTranslator.html) to absorb differences in field names or document structure.\n\nData format coupling can depend on the endpoint implementation. If a message consumer\n iterates over the nodes of an XML document, expecting a specific order (perhaps a\n poor idea, but I am sure it happens), it will not be tolerant of order changes. In\n contrast, a consumer that uses XPath expressions to extract fields will be. As a result,\n it's not a sufficient contract to just state the data format; you also need to document\n assumptions or levels of change that must be tolerated by the endpoints.\n\n> At Google we used Protocol Buffers to describe the contract between services. Protocol\n> Buffers specify the data format using an IDL (Interface Definition Language), from\n> which endpoints can be generated for various languages. To make data formats backward\n> compatible, new fields were routinely tagged as\n> \n> optional\n> \n> even though they were required by the receiver. The result was that coupling shifted\n> from the IDL to the endpoint implementation.\n\nData format coupling has a nasty habit of getting in the way of other forms of decoupling.\n For example, components may be topology decoupled, but changing the topology may impact\n the data format, essentially voiding the decoupling.\n\n### Semantic Dependency\n\nSemantic coupling is the \"next level up\" from data formats and types, both from a\n layer communications model as well as from a complexity point-of-view. Having a UTF-8\n encoded string with a well-defined field name doesn't mean two systems have the same\n interpretation of its content. The same can happen for systems that break down data\n into geographic regions: one may use ZIP codes, another one area codes, and a third\n one segments like *Midwest*. One system reports data weekly, another monthly, and a third one by 30-day intervals.\n\nSemantic dependencies and mismatches are notoriously difficult to overcome with format-oriented\n integration tools. For example, area code boundaries don't line up with ZIP code boundaries,\n leaving you very little for a conversion from one to the other. In many other cases,\n the real meaning of fields may be buried in a legacy system or long forgotten.\n\n### Conversation Dependency\n\nSystem interaction isn't done by sending one message or invoking a simple API. Many\n business interactions involve acknowledgment, confirmation, retries, timeouts, cancellations,\n and compensating actions—in the real world as much as in system integration (I could\n add Sagas here just to tick off [Udi](https://udidahan.com/) ;-) ). Assumptions about the order of messages and changes thereof constitute a major\n dimension of dependency and coupling.\n\nFor example, if your [favorite coffee shop](/ramblings/18_starbucks.html) asks you for payment before delivering the drink, is that specified in the protocol\n or just coincidence? If the consumer assumes this order, then the two parties are\n coupled with regard to a change in message order.\n\nThe relationship between conversations and coupling is a key force behind [Conversation Patterns](/patterns/conversation/toc.html). One could write an entire book about it ;-) Understanding conversation coupling\n is often hindered by the fact that the conversation can span different systems and\n isn't documented in a central place.\n\nIf you feel that your interaction is simple and there isn't much conversation going\n on, be aware that a retry is also a conversation and is bound by its rules and assumptions:\n are retries allowed? is the number of retries unbounded? Is the recipient idempotent?\n how should the requestor handle duplicate responses resulting from overeager retries?\n\n### Order Dependency\n\nSystems may make assumptions about message order. If those assumptions change, or\n a message producer changes the order of messages, subsequent systems may have to change—another\n form of coupling! Messages that contain unique time stamps or unique keys for insertion\n into a data store tend to be tolerant towards out-of-order delivery, caused by the\n sender, the [Message Channel](/patterns/messaging/MessageChannel.html), or intermediaries. In-order delivery makes building systems easier but can hurt\n throughput. As I often state:\n\n> Message endpoints usually prefer in-order delivery, but messages don't! Drawing an\n> analogy with a supermarket check-out line, imagine a person who is extremely slow\n> to check out and holds up everyone else in the queue. Everyone wishes for out-of-order\n> processing!\n\nOrder generally has to be defined relative to a scope. A [Messaging System](/patterns/messaging/MessagingComponentsIntro.html) may preserve order, but a set of [Competing Consumers](/patterns/messaging/CompetingConsumers.html) process messages out of order nevertheless.\n\n> One of my favorite ordering stories is from my Silicon Valley days where one of our\n> best developers built a message-based integration between multiple systems to replace\n> a brittle\n> \n> Database Integration\n> \n> . He initially felt that this task was somewhat beneath him until he discovered a\n> \n> race condition\n> \n> in the original system. Asking the users for the desired behavior yielded no results\n> as no one was aware of this bug. Oh, the joys of integration!\n\n### Temporal Dependency\n\nIf systems communicate synchronously, i.e., the requestor waits for the provider's\n response, the requestor is temporally dependent on the provider: a slow provider causes\n the requestor to also become slow. Worse yet, if the provider is unavailable or unreachable,\n the requesting system is also rendered unavailable. Asynchronous messaging solutions\n cannot magically make an unavailable system available, but they can temporally decouple\n systems by having the requestor not expect an immediate response. Alternatively, the\n requestor could implement *graceful degradation*, so that it remains operational, although perhaps with limited features.\n\n## What's Next?\n\nA popular saying of mine is that the purpose of a model is to answer a question or\n help you make a better decision. So, the proposed model of coupling dimensions should\n pass this test, right? Interestingly, I extracted this post from another one that\n got too long. That means, this model came to be so that It helps me have a better\n discussion about the following topics:\n\n### Nuanced discussion of coupling\n\nThe first one is to put more meaning behind blanket statements like [event-driven architectures are loosely coupled](/ramblings/eventdriven_coupling.html). Architects should as, loosely coupled in which regard? Compared to what? Why does\n it matter? Having this model and vocabulary allows us to debunk such oversimplified\n statements. My learning while writing this up was the following:\n\n> Once you describe the real architecture forces behind blanket pseudo-architecture\n> statements, you may run out of space.\n\nThat's why I split that post into two parts, this being part one.\n\n### Hidden Coupling\n\nThe model also helps us discover a dangerous form of coupling: things look decoupled\n at one level, but are actually coupled due to another type of coupling. I observed\n this in cloud-based serverless applications:\n\n> Serverless integration services appear to be topology decoupled thanks to logical\n> resource identifiers like ARNs on AWS. But it turns out that message formats are dependent\n> on the source. Therefore, inserting a message queue or changing the data source in\n> a serverless, event-driven application changes the message and forces downstream\n> consumers to change—topology coupling!\n\nSuch applications look recomposable at the surface but are topology-coupled via the\n data format. That's worth a blog post as well!\n\n*Share:*\n\n*Follow:* [Follow @ghohpe](https://twitter.com/ghohpe) [SUBSCRIBE TO FEED](../ramblings.rss)\n\n*More On:* [INTEGRATION](/ramblings_integration.html) [CLOUD](/ramblings_cloud.html) [EVENTS](/ramblings_events.html) [ALL RAMBLINGS](../ramblings.html)\n\nGregor is a cloud architect and author. He is a frequent speaker on asynchronous messaging,\n IT strategy, and cloud.", "znaku_textu": 21899, "slov": 3254, "odkazu": 68, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 15:35:27", "sha256": "ba9d43f16e89e517086df278d330ad87415c43b5dcaf9c00409b4d90a09d9687", "hloubka": 4, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://architectelevator.com/blog", "https://architectelevator.com/cloud/cloud-decoupling-cost/", "https://www.youtube.com/watch?index=1&list=PLEx5khR4g7PKxJBkaGmSDRywZ3aAZcwpK&t=1497s&v=w9a7eI6BlVc", "https://youtu.be/Zrj7RD7G24Q?t=882", "https://en.wikipedia.org/wiki/Distributed_Component_Object_Model", "https://en.wikipedia.org/wiki/Tuple_space", "https://www.reactiveprinciples.org/principles/", "https://www.reactiveprinciples.org/principles/decouple-space.html", "https://en.wikipedia.org/wiki/Network_topology", "https://udidahan.com/", "https://en.wikipedia.org/wiki/Race_condition", "https://twitter.com/share", "https://twitter.com/ghohpe", "https://leanpub.com/37things"]} {"url": "http://www.enterpriseintegrationpatterns.com/ramblings/eip1_examples_updated.html", "titulek": "Modern Examples for Enterprise Integration Patterns - Enterprise Integration Patterns", "h1": "Modern Examples for Enterprise Integration Patterns", "popis": "Enterprise Integration Patterns are timeless", "klicova_slova": "", "kanonicka": "", "jazyk": "en_US", "robots_meta": "", "og": {"og:type": "article", "og:locale": "en_US", "og:site_name": "Enterprise Integration Patterns", "og:title": "Modern Examples for Enterprise Integration Patterns", "og:description": "Enterprise Integration Patterns are timeless", "og:url": "https://www.enterpriseintegrationpatterns.com/ramblings/eip1_examples_updated.html"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Modern Examples for Enterprise Integration Patterns"}], "markdown": "Gregor's Ramblings\n\n---\n\n# Modern Examples for Enterprise Integration Patterns\n\nFebruary 5, 2017\n\nFind my posts on IT strategy, enterprise architecture, and digital transformation\n at [ArchitectElevator.com](https://architectelevator.com/blog).\n\nEnterprise Integration Patterns are timeless. That our book keeps selling well two\n decades after its publication in 2003 underlines this fact. However, the code examples\n haven't aged quite as well. While for example the JMS API remained somewhat stable,\n the examples were built with JDK 1.4 without any modern constructs such as generics,\n streams, etc. The EAI tool landscape has also dramatically changed, with the advent\n of open source ESBs (which were fueled by the publication of EIP) and later IPaas\n and serverless solutions. It's hard to imagine that back in 2003 you had to get a\n server and manually install all software on it just to try a few simple concepts.\n\nThe [Messaging Pattern](/patterns/messaging) catalog on this web site remained static, but the patterns could benefit from code\n examples that use modern tech like GoLang, Kafka, RabbitMQ, Amazon SQS, Amazon EventBridge,\n or Google Cloud Pub/Sub. Many of these recent languages and tools embrace the original\n integration patterns or make it easy to implement them.\n\nThe following patterns contain modern examples:\n\n| | [Publish-Subscribe Channel](/patterns/messaging/PublishSubscribeChannel.html) | Google Cloud Pub/sub |\n| --- | --- | --- |\n| | [Dead Letter Channel](/patterns/messaging/DeadLetterChannel.html) | Amazon SQS\nKafka Connect |\n| | [Return Address](/patterns/messaging/ReturnAddress.html) | GoLang |\n| | [Message Expiration](/patterns/messaging/MessageExpiration.html) | Azure Service Bus\nAmazon EventBridge\nGoogle Cloud PubSub |\n| | [Content-based Router](/patterns/messaging/ContentBasedRouter.html) | Apache Camel |\n| | [Scatter-Gather](/patterns/messaging/BroadcastAggregate.html) | Serverless Loan Broker on AWS\nMulesoft ESB\nAzure Durable Functions: Fan out/fan in |\n| | [Message Filter](/patterns/messaging/Filter.html) | RabbitMQ |\n| | [Aggregator](/patterns/messaging/Aggregator.html) | Serverless Loan Broker on AWS (Lambda, DynamoDB)\nServerless Loan Broker on GCP (Cloud Function, Datastore) |\n| | [Process Manager](/patterns/messaging/ProcessManager.html) | Serverless Loan Broker with AWS Step Functions\nServerless Loan Broker with GCP Workflows |\n| | [Content Enricher](/patterns/messaging/DataEnricher.html) | Amazon EventBridge Pipes |\n| | [Transactional Client](/patterns/messaging/TransactionalClient.html) | Amazon SQS |\n| | [Event-driven Consumer](/patterns/messaging/EventDrivenConsumer.html) | RabbitMQ |\n| | [Competing Consumers](/patterns/messaging/CompetingConsumers.html) | Apache Kafka |\n| | [Channel Purger](/patterns/messaging/ChannelPurger.html) | Amazon SQS |\n\nBack in 2003, hosting code on open source repositories was less common. Lucky we used\n version control for the text as well as the code samples, but sadly both lived on\n a local hard drive in a Visual Source Safe repository. We converted them to git since\n and I now upload all new code samples to a public [Github Repository](https://github.com/spac3lord/eip). Most projects don't include complete build files - I run these simple apps from\n IntelliJ IDEA. This is both a bug (due to laziness) and a feature: as the examples\n are of educational value only and not intended for production there's a certain safety\n net in users not being able to build and run them immediately with the push of a button.\n\n*Share:*\n\n*Follow:* [Follow @ghohpe](https://twitter.com/ghohpe) [SUBSCRIBE TO FEED](../ramblings.rss)\n\n*More On:* [PATTERNS](/ramblings_patterns.html) [ALL RAMBLINGS](../ramblings.html)\n\nGregor is a cloud architect and author. He is a frequent speaker on asynchronous messaging,\n IT strategy, and cloud.", "znaku_textu": 3715, "slov": 448, "odkazu": 59, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 15:33:55", "sha256": "39daf573be5689e308dbd15c98c4e1b82596356bb66b9e8f9f210a41f7648cfe", "hloubka": 3, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://architectelevator.com/blog", "https://github.com/spac3lord/eip", "https://twitter.com/share", "https://twitter.com/ghohpe", "https://leanpub.com/37things"]} {"url": "http://www.enterpriseintegrationpatterns.com/ramblings/eventdriven_coupling.html", "titulek": "Event-driven = Loosely coupled? Not so fast! - Enterprise Integration Patterns", "h1": "Event-driven = Loosely coupled? Not so fast!", "popis": "Event-driven architectures (EDAs) are frequently pitched as loosely coupled, when compared to other forms of integration", "klicova_slova": "", "kanonicka": "", "jazyk": "en_US", "robots_meta": "", "og": {"og:type": "article", "og:locale": "en_US", "og:site_name": "Enterprise Integration Patterns", "og:title": "Event-driven = Loosely coupled? Not so fast!", "og:description": "Event-driven architectures (EDAs) are frequently pitched as loosely coupled, when compared to other forms of integration", "og:url": "https://www.enterpriseintegrationpatterns.com/ramblings/eventdriven_coupling.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/eda_coupling_table.png"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Event-driven = Loosely coupled? Not so fast!"}, {"uroven": 2, "text": "Messages vs. Events"}, {"uroven": 2, "text": "Messages vs. Channels"}, {"uroven": 2, "text": "Events and Coupling"}, {"uroven": 2, "text": "Easy Adding Can Make Modifying Harder"}, {"uroven": 2, "text": "Inversion of (Coupling) Control"}], "markdown": "Gregor's Ramblings\n\n---\n\n# Event-driven = Loosely coupled? Not so fast!\n\nJune 20, 2024\n\nFind my posts on IT strategy, enterprise architecture, and digital transformation\n at [ArchitectElevator.com](https://architectelevator.com/blog).\n\nEvent-driven architectures (EDA) are seeing a marked renaissance, especially in the\n context of serverless applications. That's great, but it's also not a new topic by\n any means. Besides my [EDA presentation at Distributed Event-Based Systems (DEBS) from 2007](https://2007.debs.org/hohpe.pdf), you might recall my ambitious plans to write an [EIP volume on Event Patterns](/ramblings/72_eipvolumes.html) about a decade ago, right after [Conversation Patterns](/patterns/conversation), ahem.\n\nAs EDA isn't a new topic, it behooves us to not be caught celebrating our new discovery\n without acknowledging past challenges and understanding architecture trade-offs. One\n such trade-off is coupling. \"Decoupled\" is a frequently cited benefit of EDAs, routinely\n showing up in [many definitions of EDA](https://aws.amazon.com/event-driven-architecture/): \"Decoupled systems that run in response to events\". The assumption behind such statements\n is that \"decoupled\" is a simple and universally positive thing. But architects know\n that life isn't that simple. [Coupling is a sliding scale and has many dimensions](/ramblings/coupling_facets.html), so perhaps there's more behind events and coupling!\n\n## Messages vs. Events\n\nBefore we can discuss the magical properties of events, we first want to gain clarity\n on whether events are something entirely unique, or whether the benefits commonly\n associated with events exist more broadly. \"My chicken laid an egg\" is mighty interesting\n for a person who's only ever seen a chicken but less so for people who know about\n birds in general (apologies for my poor attempt at making a non-car analogy).\n\nEvents are commonly described as a notification of a change in state, or something\n that took place. Such notifications must be conveyed to other systems, and the natural\n way to do so is via a message. Whereas some narratives contrast events with messages,\n *EIP* takes a clear stance on the relationship between events and messages (Akka and the\n [reactive manifesto appear to agree](https://doc.akka.io/guide/concepts/message-driven-event-driven.html#_events_are_messages)):\n\n> Events are Messages\n\nDenoted in a UML Class Diagram, the relationship looks as follows:\n\nEIP underlines this *is-a* relationship by calling events [Event Message](/patterns/messaging/EventMessage.html). In hindsight, this naming sets an appropriate context. As Eric Evans of DDD fame\n [pointed out in a recent conversation](https://thenewstack.io/celebrating-20-years-of-domain-driven-design-ddd-and-eip/), an event could be something different depending on the domain. In the domain of\n integration, it denotes a message. The [Message Construction Introduction](/patterns/messaging/MessageConstructionIntro.html) clarifies the distinction between the interaction style and message semantics (there\n are actually quite a few hidden gems in these introductions):\n\n> Messaging is an\n> \n> interaction style\n> \n> whereas \"Event\" describes the\n> \n> semantics\n> \n> of a message.\n\nTherefore:\n\n> When assessing the properties of event-based solutions, the discussion splits into\n> two parts: 1) properties of messaging in general and 2) those of events in particular\n> (contrasted with commands, for example).\n\nTo stretch our poor analogy, events are chickens and messages are birds. They both\n lay eggs but the chickens may lay the most tasty ones.\n\n## Messages vs. Channels\n\nEvent-based architectures are associated with [Publish-Subscribe Channels](/patterns/messaging/PublishSubscribeChannel.html) because multiple recipients might be interested in the occurrence of an event. This\n stands in contrast to the [Point-to-Point Channels](/patterns/messaging/PointToPointChannel.html) commonly used for commands or document messages.\n\nAgain, we must delineate which characteristics of an event-driven system derive from\n the properties of the channel rather than the message intent (such as being an Event).\n For example, if I place a *Command Message* on a [Publish-Subscribe Channel](/patterns/messaging/PublishSubscribeChannel.html), would I gain the same benefits?\n\nNow some people might think that placing a command message on a [Publish-Subscribe Channel](/patterns/messaging/PublishSubscribeChannel.html) is non-sensical, but life isn't that simple (crocodiles also lay eggs--I promise\n I'll stop pushing the analogy). Consider the following example:\n\nDoes naming a message `OrderPlaced` (indicating an event has occurred) or `ProcessOrder` (instructing recipients to process the order) make a system more or less coupled?\n If an e-mail should be sent to a customer as part of processing an order, a recipient\n could be added to perform this function regardless of the event semantics. We commonly\n think that the schema of a command is defined by the recipient of the command, e.g.\n the e-mail sender has an interface for sending e-mails, but to me that is just common\n usage and not an inherent characteristic. So, it may be less about the semantics of\n the message than which entity defines the message schema. Hold that thought--we will\n come back to it later.\n\nIf events on a queue still seem odd to you, consider that [Publish-Subscribe Channels](/patterns/messaging/PublishSubscribeChannel.html) are commonly coupled with [Point-to-Point Channels](/patterns/messaging/PointToPointChannel.html) to scale out event consumption via a [Competing Consumers](/patterns/messaging/CompetingConsumers.html) approach. This combination is so common that GCP's Pub/Sub [bundles it into a single service](/patterns/messaging/PublishSubscribeChannel.html#example4):\n\n> Frequently Publish-Subscribe Channels define the application message flow, whereas\n> Point-to-Point Channels are used for operational aspects.\n\nSo, you'll find events being transported via a Point-to-Point Channel more frequently\n than you might expect. And if you use an event-router like AWS EventBridge, you are\n already sending Events via a Point-to-Point Channel because the service uses several\n internally.\n\n## Events and Coupling\n\nNow that we better understand what events are and how they're related to channels,\n we can have a much richer conversation about coupling. My [previous blog post laid useful groundwork](/ramblings/coupling_facets.html) by enumerating the facets of coupling:\n\nAlong these dimensions, we can now compare the coupling of event-based communication\n with other types of integration. Based on the discussion above, we don't separate\n by message semantics but by interaction style:\n\n- [RPC (Remote Procedure Calls)](/patterns/messaging/EncapsulatedSynchronousIntegration.html) , which use a synchronous request-response style interaction.\n- Point-to-Point [Messaging](https://www.enterpriseintegrationpatterns.com/patterns/messaging/Messaging.html) as a one-way, asynchronous interaction style.\n- [Publish-Subscribe](/patterns/messaging/PublishSubscribeChannel.html) messaging, commonly used for [Event Messages](/patterns/messaging/EventMessage.html) .\n\nRecalling that coupling indicates change propagation, the table includes typical changes\n that are relevant for each dimension of coupling. A quick scan reveals that the level\n of coupling for general message-oriented solutions, which may send [Command Messages](/patterns/messaging/CommandMessage.html), is identical for most dimensions.\n\n- *Temporal Coupling* propagates changes in latency or availability. Synchronous communication styles are\n inherently coupled this way (if a provider is slow, the consumer will also be until\n it times out), whereas one-way, asynchronous ones (Point-to-Point and Pub-Sub alike)\n are not.\n- *Location Coupling* propagates a recipient moving to a different location or scaling out to more instances.\n Message channels decouple location changes because they are (mostly) logical constructs:\n adding more consumers to a channel (or relocating them) doesn't affect the sender.\n Some channel names include physical locations (such as cloud availability zones),\n so they can decouple location changes within a zone but not across. RPC specify a\n recipient address but can achieve some decoupling through [lookups](/patterns/conversation/ConsultDirectory.html) (like DNS or logical names like [BNS](https://sre.google/sre-book/production-environment/#managing-machines-XQsKIBTq) ) or inserting a load balancer.\n- *Space Coupling* - for this discussion I separate *Location* from *Space* and *Topology* decoupling, with Space decoupling denoting the ability to insert an intermediary\n without changes to the sender. Message channels also provide this form of decoupling:\n the sender continues sending messages to the same channel, unaware that it is no longer\n talking directly to the recipient.\n- *Topology Coupling* - is used more narrowly here to specifically call out adding a recipient. Publish-Subscribe\n channels do this free of side-effects, unlike any of the other options.\n- Regardless of the interaction style, sender and receiver have to agree on a *data format and associated semantics* , e.g. a person's age is stored in an integer field called \"age\", the unit is years,\n and it counts the years passed since birth, unlike the [traditional Korean system](https://www.bbc.com/news/world-asia-66028606) . Most changes (except perhaps adding optional fields) will propagate, meaning sender\n and receiver are coupled.\n\nThanks to breaking down the problem and the solution space into multiple dimensions,\n we come to our main insights. First, while there is a big difference between synchronous\n and asynchronous interaction styles, the difference between messaging in general and\n event-driven communication appears relatively minor:\n\n> Event-Driven Architectures are loosely coupled, but very similar to any asynchronous,\n> message-oriented interactions.\n\nSecond, the additional topology decoupling for adding recipients is due to the use\n of a [Publish-Subscribe](/patterns/messaging/PublishSubscribeChannel.html), not from using event semantics.\n\n> Most of the decoupling properties of EDAs derive from the use of Publish-Subscribe\n> Channels, not event semantics.\n\nThe key difference in coupling lies in being able to add recipients without affecting\n existing recipients nor the sender. Two main scenarios make this ability appealing:\n\n- During the construction or growth phase of the system.\n- If you don't have control over the sender.\n\nLet's look at each one.\n\n## Easy Adding Can Make Modifying Harder\n\nBeing able to add message recipients without side effects is great for a system that\n is growing, for example, because it is still under construction or because adding\n recipients is a natural occurrence over the life of the system. But that convenience\n comes at a price:\n\n- First, you may not be aware of the evolving system structure (I hinted at this almost\n 20 years ago in my chapter in [97 Things Every Software Architect Should Know](http://www.amazon.com/exec/obidos/ASIN/059652269X/enterpriseint-20) : [Don't Control, but Observe](https://learning.oreilly.com/library/view/97-things-every/9780596800611/ch48.html) ).\n- Second, the more you take advantage of your ability to add recipients, the harder\n it will become to make a change. Thus, taking advantage of one dimension of decoupling\n exposes you more to another dimension of coupling.\n\nThe risk is that EDAs demo very well, but become messy as they grow over time. The\n second risk is related:\n\n> Folks pitching EDA as decoupled may be the ones early in the lifecycle (like vendors)\n> and won't have to live with the consequences of their (coupling) decisions.\n\nHaving event hierarchies and distinguishing between internal and external events can\n help place some sanity back into the event cloud, and some cohesion back into the\n application.\n\n> Having dependencies between components all over the system is likely a poor design\n> choice and should not be considered \"loose coupling\".\n\n## Inversion of (Coupling) Control\n\nArchitects are known to [zoom in](https://architectelevator.com/architecture/architects-zoom/), so if we look yet more closely at coupling, we find that it not only has dimensions\n but also a direction. Coupling can be asymmetric, meaning change propagation has a\n direction. Here we find the real magic of Publish-Subscribe channels: adding subscribers\n doesn't affect the sender:\n\nIn contrast, a [Recipient List](/patterns/messaging/RecipientList.html), which also sends messages to multiple recipients, requires a change to the source\n to add a recipient. This makes the source subject to change propagation.\n\nIn both cases, sending a message (and likewise changing its format or semantics) travels\n from left to right, meaning a change in the source very much impacts the recipients\n (sender to recipient coupling). For stable sources (like system services) that's less\n of a concern, but it can put a major monkey wrench into your \"loosely coupled\" applications.\n In short, a Recipient List propagates changes both ways, whereas a Publish-Subscribe\n Channel does so only in one direction (from sender to receiver).\n\nWe do encounter [Recipient Lists](/patterns/messaging/RecipientList.html) rather frequently in EDAs. For example, AWS EventBridge rules and targets act as\n recipient list. So, in a way, using an event broker like EventBridge negates some\n of the \"right-to-left\" decoupling benefits of Publish-Subscribe channels. You won't\n have to modify the sender, but you have to modify a central element nonetheless.\n\nWe conclude that:\n\n> If you don't have control over the source, Publish-Subscribe channels are ideal.\n\nThis property also explains the origin of services like AWS EventBridge. EventBridge\n evolved from CloudWatch Events, which made system events available for rule-based\n alerting. Naturally, the sources being AWS services, adding listeners had to free\n of side effects to the producers.\n\n> In your own application (where you have control over sender and receiver), adding\n> recipients free of side effects is a less-pronounced benefit.\n\nOne last observation before we wrap up: decisions about topology and interaction styles\n are closely related to an application's architecture. Message formats and semantics\n are associated with application and domain-driven design. So could it be that we're\n back at [Architect's Dream, Developer's Nightmare??](https://2007.debs.org/hohpe.pdf)\n\n*Share:*\n\n*Follow:* [Follow @ghohpe](https://twitter.com/ghohpe) [SUBSCRIBE TO FEED](../ramblings.rss)\n\n*More On:* [INTEGRATION](/ramblings_integration.html) [CLOUD](/ramblings_cloud.html) [EVENTS](/ramblings_events.html) [ALL RAMBLINGS](../ramblings.html)\n\nGregor is a cloud architect and author. He is a frequent speaker on asynchronous messaging,\n IT strategy, and cloud.", "znaku_textu": 14792, "slov": 2055, "odkazu": 67, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 14:54:35", "sha256": "9615e3424d34b8853e53594e52e89be9537a5737771161e56b97dbe85ccf65e7", "hloubka": 3, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://architectelevator.com/blog", "https://2007.debs.org/hohpe.pdf", "https://aws.amazon.com/event-driven-architecture/", "https://doc.akka.io/guide/concepts/message-driven-event-driven.html", "https://thenewstack.io/celebrating-20-years-of-domain-driven-design-ddd-and-eip/", "https://sre.google/sre-book/production-environment/", "https://www.bbc.com/news/world-asia-66028606", "http://www.amazon.com/exec/obidos/ASIN/059652269X/enterpriseint-20", "https://learning.oreilly.com/library/view/97-things-every/9780596800611/ch48.html", "https://architectelevator.com/architecture/architects-zoom/", "https://twitter.com/share", "https://twitter.com/ghohpe", "https://leanpub.com/37things"]} {"url": "http://www.enterpriseintegrationpatterns.com/ramblings/google_cloud_functions.html", "titulek": "Serverless Integration Patterns on Google Cloud Functions - Enterprise Integration Patterns", "h1": "Serverless Integration Patterns on Google Cloud Functions", "popis": "After examining which patterns are embedded in Google Cloud Pub/Sub in an earlier post, I implemented a few common patterns on top of Google Cloud Functions, Google's serverless implementation", "klicova_slova": "", "kanonicka": "", "jazyk": "en_US", "robots_meta": "", "og": {"og:type": "article", "og:locale": "en_US", "og:site_name": "Enterprise Integration Patterns", "og:title": "Serverless Integration Patterns on Google Cloud Functions", "og:description": "After examining which patterns are embedded in Google Cloud Pub/Sub in an earlier post, I implemented a few common patterns on top of Google Cloud Functions, Google's serverless implementation", "og:url": "https://www.enterpriseintegrationpatterns.com/ramblings/google_cloud_functions.html"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Serverless Integration Patterns on Google Cloud Functions"}, {"uroven": 2, "text": "Serverless"}, {"uroven": 2, "text": "Google Cloud Functions"}, {"uroven": 2, "text": "Implementing a Content-based Router"}, {"uroven": 2, "text": "Deploying & Running the patterns"}, {"uroven": 2, "text": "Stateful Patterns"}], "markdown": "Gregor's Ramblings\n\n---\n\n# Serverless Integration Patterns on Google Cloud Functions\n\nApril 20, 2017\n\nFind my posts on IT strategy, enterprise architecture, and digital transformation\n at [ArchitectElevator.com](https://architectelevator.com/blog).\n\n## Serverless\n\nAfter examining which patterns are embedded in [Google Cloud Pub/Sub](https://cloud.google.com/pubsub/) in an [earlier post](/ramblings/82_googlepubsub.html), I set out to implement a few common messaging patterns on top of [Google Cloud Functions](https://cloud.google.com/functions/), Google's *serverless* implementation.\n\n*Serverless* is one of the latest buzzwords in the cloud world and a name that's easily mis-understood.\n Of course, serverless applications still run on servers. The key point that the application\n owner doesn't have to worry about which server their application runs on. Technically,\n that has been true for most PaaS (Platform-as-a-Service), but *serverless* takes the concepts of deployment automation to a new level. Mike Roberts wrote an\n [excellent article](https://martinfowler.com/articles/serverless.html) explaining serverless in detail. I generally summarize the evolution towards serverless\n as follows:\n\n- **Physical servers** : There was a time when to run software you had to order a physical server. This would\n take months, involved a fair bit of manual effort and usually you'd end up with a\n server that's hopelessly oversized because having to order another one would take\n another three months. And your application wouldn't scale out across both, anyway,\n so you'd have to toss the first one you ordered. The easy way out was to run the software\n on the PC under your desk.\n- **Virtualization** : Server virtualization was a major step ahead: instead of ordering and mounting an\n actual physical machine, existing machines would be partitioned into multiple virtual\n machines, drastically reducing provisioning times, increasing hardware utilization,\n and making server sizing more flexible. However, deploying applications onto these\n servers remained a separate, often manual task. Also, many applications did not utilize\n the virtual resources very well.\n- **Containers & PaaS** : Docker-style containerization addresses two issues: it packages applications in\n self-contained images that can be automatically deployed and it allows multiple application\n instances to share a single server securely and with sufficient isolation. Combined,\n containers vastly improve application deployment and resource utilization. Platform-as-a-Service\n and Container Orchestration tools deal with managing container instances, such as\n automated restarts, and inter-container communication.\n- **Serverless** : While PaaS and containers are a huge step forward from manual deployment on physical\n servers, they still work based on the concept of applications that are deployed once\n or in a fixed number of instances. As demands on the application increases, new instances\n would have to be deployed. The serverless approach improves both aspects: instead\n of complete applications, serverless deploys individual functions, which are dynamically\n instantiated as requests come in and thus scale automatically based on current demand.\n\nThe dramatic progress can be summarized in a table as follows. The figures are meant\n to be qualitative in nature and can vary depending on many factors:\n\n| Stage | Deployment unit | Deployment method | Deployment time |\n| --- | --- | --- | --- |\n| Physical server | Server | Manual | Months |\n| Virtual server | Operating System | OS automated, application usually manual | Days or weeks |\n| Container / PaaS | Application | Automated | Minutes |\n| Serverless | Function | Automated | \"Real-time\" |\n\n## Google Cloud Functions\n\n[Google Cloud Functions](https://cloud.google.com/functions/) is Google Cloud Platform's implementation of a serverless architecture. Cloud functions\n can be written in JavaScript in a Node.js run-time environment. As the run-time environment\n manages the execution of the function, a function has to be bound to an endpoint or\n an event in order to be invokable. Google functions come in two flavors of binding:\n\n- *HTTP functions* are triggered via an HTTP request, e.g. from a browser application.\n- *Background functions* are triggered by a Google Pub/Sub message or storage bucket change.\n\nAs we are interested in asynchronous messaging, we implement a background function\n that is triggered by a message event on a pub/sub channel. Writing and deploying cloud\n functions is quite easy - you can deploy them from the command line if you have the\n [Google Cloud SDK](https://cloud.google.com/sdk/) installed. You manage the function bindings via command line arguments. Once deployed,\n functions are invoked directly by the run-time - that's the power of serverless!\n\nThe big advantage of using cloud functions is that the amount of wrapper code needed\n to bind and invoke code is dramatically reduced. This makes writing messaging pattern\n examples actually easier, as so much is already taken care of.\n\n## Implementing a Content-based Router\n\nDisclaimer: I am not a JavaScript developer, so some of this code is likely non-idiomatic\n and not production quality. My intention was to focus on the direct translation of\n the pattern into an expressive implementation. Feel free to send me a pull request\n with suggestions for improvement.\n\nLet's start with a very simple pattern implementation, a [Content-based Router](/patterns/messaging/ContentBasedRouter.html). This pattern inspects an incoming message and routes it to different destination\n channels based on its content. To avoid exercising unneeded creativity, we stick with\n the [Widgets and Gadgets](/patterns/messaging/Chapter1.html) example from the book, which routes incoming orders to a widget or gadget channel\n depending on the order type.\n\nSetting up a basic cloud function is quite easy. The function is called with an `event` parameter that holds all needed data and optionally a callback parameter that the\n function must call when it is done. Alternatively, the function can return a promise.\n So pretty much all we need to do is unpack the incoming data, look at the order type,\n determine the correct channel, and forward the message to that channel. All this can\n be done with a few lines of JavaScript:\n\n```\nconst Pubsub = require('@google-cloud/pubsub');\nconst pubsub = Pubsub({projectId: \"eaipubsub\"})\n\nexports.contentBasedRouter = function contentBasedRouter(event) {\n const pubsubMessage = event.data;\n const payload = Buffer.from(pubsubMessage.data, 'base64').toString();\n console.log(\"Payload: \" + payload);\n order = JSON.parse(payload)\n\n outChannel = getOutChannel(order.type);\n console.log(\"Publishing to: \" + outChannel)\n\n return pubsub.topic(outChannel).get({autoCreate: true}).then(function(data) {\n var topic = data[0];\n return topic.publish(order);\n })\n};\n\nfunction getOutChannel(type) {\n switch(type) {\n case \"widget\":\n return \"widgets\";\n case \"gadget\":\n return \"gadgets\";\n default:\n return \"unknown\";\n }\n}\n```\n\nMost code examples in the book are extracts that rely on quite a bit or wrapper code\n in order to function. In this case, the code above is all the code there is! There's\n a fairly good JavaScript library for Google Cloud Platform, which we `require` to publish messages. Luckily I found a function to automatically create a topic if\n it doesn't yet exist, which eliminates a lot of conditional code that plagued my first\n version. The pub/sub message comes in in the `data` field of the `event` parameter. JSON data is base64 encoded, so we unpack it first and do some unnecessary\n logging for our own entertainment. After we parse the data into JSON, we look at the\n `type` field to determine the channel to relay the message to. That's almost it - we still\n have to get a reference to the topic and off we go. The `get` and `publish` methods return JavaScript promises. In case of `get`, we process the result synchronously so we can return the promise returned by the\n `publish` method to Google Cloud Functions.\n\nAll that's missing is the dependency on Google Cloud Pub/sub in the `package.json` file:\n\n```\n{\n \"dependencies\": {\n \"@google-cloud/pubsub\": \"~0.10.0\"\n }\n}\n```\n\n## Deploying & Running the patterns\n\nDeploying a function from the Cloud SDK is quite straightforward:\n\n`gcloud beta functions deploy contentBasedRouter --stage-bucket eaipubsub-functions\n --trigger-topic orders`\n\nThis command deploys the function and binds it to the topic `orders` within our project, resulting in the full topic name `projects/eaipubsub/topics/orders`. We are now ready to feed some messages in this topic and see our pattern function\n in action:\n\n```\ngcloud beta functions logs read contentBasedRouter\nD contentBasedRouter 118580632422832 2017-04-23 17:53:34.912 Function execution started\nI contentBasedRouter 118580632422832 2017-04-23 17:53:38.788 Payload: { \"type\":\"widget\", \"quantity\":3, \"ID\":123 }\nI contentBasedRouter 118580632422832 2017-04-23 17:53:38.799 Publishing to: widgets\nD contentBasedRouter 118580632422832 2017-04-23 17:53:38.843 Function execution took 3933 ms, finished with status: 'ok'\nD contentBasedRouter 118580674297419 2017-04-23 17:54:13.921 Function execution started\nI contentBasedRouter 118580674297419 2017-04-23 17:54:15.873 Payload: { \"type\":\"widget\", \"quantity\":3, \"ID\":123 }\nI contentBasedRouter 118580674297419 2017-04-23 17:54:15.879 Publishing to: widgets\nD contentBasedRouter 118580674297419 2017-04-23 17:54:15.914 Function execution took 1994 ms, finished with status: 'ok'\nD contentBasedRouter 118580598336288 2017-04-23 17:54:15.921 Function execution started\nI contentBasedRouter 118580598336288 2017-04-23 17:54:15.936 Payload: { \"type\":\"widget\", \"quantity\":3, \"ID\":123 }\nI contentBasedRouter 118580598336288 2017-04-23 17:54:15.937 Publishing to: widgets\nD contentBasedRouter 118580598336288 2017-04-23 17:54:15.999 Function execution took 78 ms, finished with status: 'ok'\n```\n\nWe can see that execution times vary quite a bit, which hints at some cache loading\n / warm-up being at work. After I converted the function to return a promise instead\n of explicitly calling back, the times appeared to get a bit more consistent. I didn't\n do any performance tests, though, and we have to keep in mind that a setup using pub/sub\n channels is not intended to minimize latency but to maximize throughput.\n\n## Stateful Patterns\n\nCloud functions are stateless - that's how they can be instantiated and discarded\n by the framework at will. Stateful patterns like an [Aggregator](/patterns/messaging/Aggregator.html) therefore require use of a database. I'll tackle those next.\n\nThe source code is available on [github.com](https://github.com/spac3lord/eip/tree/master/GoogleCloudPubSub/functions).\n\n*Share:*\n\n*Follow:* [Follow @ghohpe](https://twitter.com/ghohpe) [SUBSCRIBE TO FEED](../ramblings.rss)\n\n*More On:* [MESSAGING](/ramblings_messaging.html) [CLOUD](/ramblings_cloud.html) [ALL RAMBLINGS](../ramblings.html)\n\nGregor is a cloud architect and author. He is a frequent speaker on asynchronous messaging,\n IT strategy, and cloud.", "znaku_textu": 10946, "slov": 1540, "odkazu": 52, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 15:33:56", "sha256": "b4f459489bcec1fc9427a086e370f4e9e077915df09405597733c8483bf2d8c0", "hloubka": 3, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://architectelevator.com/blog", "https://cloud.google.com/pubsub/", "https://cloud.google.com/functions/", "https://martinfowler.com/articles/serverless.html", "https://cloud.google.com/sdk/", "https://github.com/spac3lord/eip/tree/master/GoogleCloudPubSub/functions", "https://twitter.com/share", "https://twitter.com/ghohpe", "https://leanpub.com/37things"]} {"url": "http://www.enterpriseintegrationpatterns.com/ramblings/loanbroker_automation.html", "titulek": "Serverless Loan Broker @ AWS, Part 4: Automation - Enterprise Integration Patterns", "h1": "Serverless Loan Broker @ AWS, Part 4: Automation", "popis": "Infrastructure as Code (IaC) has a whole new meaning for serverless applications", "klicova_slova": "", "kanonicka": "", "jazyk": "en_US", "robots_meta": "", "og": {"og:type": "article", "og:locale": "en_US", "og:site_name": "Enterprise Integration Patterns", "og:title": "Serverless Loan Broker @ AWS, Part 4: Automation", "og:description": "Infrastructure as Code (IaC) has a whole new meaning for serverless applications", "og:url": "https://www.enterpriseintegrationpatterns.com/ramblings/loanbroker_automation.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/step-function-recipient-list.png"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Serverless Loan Broker @ AWS, Part 4: Automation"}, {"uroven": 2, "text": "CLI - The Command Line"}, {"uroven": 2, "text": "AWS CloudFormation"}, {"uroven": 3, "text": "Creating a Bank in YAML"}, {"uroven": 3, "text": "Creating a Stack"}, {"uroven": 3, "text": "Composing Multiple Banks"}, {"uroven": 2, "text": "Polyglot Low-Code"}, {"uroven": 2, "text": "Looking for Abstraction: SAM"}, {"uroven": 2, "text": "Serverless Automation: A Reflection"}, {"uroven": 3, "text": "Separation of Concerns"}, {"uroven": 3, "text": "Syntax and Tooling"}, {"uroven": 3, "text": "Abstraction"}, {"uroven": 3, "text": "Composability and Orthogonality"}, {"uroven": 2, "text": "IaaC - Infrastructure as actual Code"}, {"uroven": 3, "text": "Related Posts in This Series"}], "markdown": "Gregor's Ramblings\n\n---\n\n# Serverless Loan Broker @ AWS, Part 4: Automation\n\nNovember 30, 2021\n\nFind my posts on IT strategy, enterprise architecture, and digital transformation\n at [ArchitectElevator.com](https://architectelevator.com/blog).\n\nIt's hard to imagine cloud without automation. Cloud computing has transformed the\n way we provision infrastructure and deploy applications because it makes functions\n that used to require lengthy manual processes available as an API call. Not taking\n advantage of this capability would seem outright silly. So, let's automate our [Loan Broker application](/ramblings/loanbroker_stepfunctions_pubsub.html).\n\nThis is the Part 4 of the Serverless Loan Broker mini-series. If you landed on this\n page first, here's a quick recap:\n\n- **Part 1** : [Loan Broker Implementation with AWS Step Functions](/ramblings/loanbroker_stepfunctions.html)\n- **Part 2** : [Recipient List](/ramblings/loanbroker_stepfunctions_recipient_list.html)\n- **Part 3** : [Publish-Subscribe with SNS](/ramblings/loanbroker_stepfunctions_pubsub.html)\n\n## CLI - The Command Line\n\nAutomation is hardly a new idea—sysadmins have been replacing manual tasks with shell\n scripts for decades. Shell scripts make automation straightforward because they use\n the same commands that you'd issue by hand. For that very reason, my initial implementation\n uses the following shell script with calls to the AWS CLI (command-line interface)\n to create the bank functions ([on Github](https://github.com/spac3lord/eip/blob/master/LoanBroker/AwsStepFunctions/PubSub/makeBanks)):\n\n```\naccount=`aws sts get-caller-identity --query Account --output text`\n\n# TODO: edit to reflect your role to be used\nrole=arn:aws:iam::$account:role/service-role/CreditBureau-role-abcdefg\n\nzip BankSns.zip BankSns.js\n\naws lambda delete-function --function-name=BankSnsPawnshop\naws lambda delete-function --function-name=BankSnsUniversal\naws lambda delete-function --function-name=BankSnsPremium\n\naws lambda create-function --function-name=BankSnsPawnshop \\\n --runtime=nodejs12.x --handler=BankSns.handler --role=$role \\\n --environment=\"Variables={BANK_ID=PawnShop,BASE_RATE=5,MAX_LOAN_AMOUNT=500000,MIN_CREDIT_SCORE=400}\" \\\n --zip-file=fileb://BankSns.zip\n\naws lambda create-function --function-name=BankSnsUniversal \\\n --runtime=nodejs12.x --handler=BankSns.handler --role=$role \\\n --environment=\"Variables={BANK_ID=Universal,BASE_RATE=4,MAX_LOAN_AMOUNT=700000,MIN_CREDIT_SCORE=500}\" \\\n --zip-file=fileb://BankSns.zip\n\naws lambda create-function --function-name=BankSnsPremium \\\n --runtime=nodejs12.x --handler=BankSns.handler --role=$role \\\n --environment=\"Variables={BANK_ID=Premium,BASE_RATE=3,MAX_LOAN_AMOUNT=900000,MIN_CREDIT_SCORE=600}\" \\\n --zip-file=fileb://BankSns.zip\n```\n\nThe script packages the Bank source code, deletes any potentially already existing\n functions and deploys three Bank lambda functions, passing the respective configuration\n parameters.\n\nAlthough convenient, this method has a major (and well-known) drawback: it isn't designed\n to deal with change. How would you deploy one additional bank? If you make a separate\n script for just that bank, you'd end up with a large collection of scripts that depend\n on each other. Deleting and re-creating all Bank functions, like this script does,\n unnecessarily interrupts the existing service. A smarter script could determine which\n banks already exist and update only the ones that need changing, but it'll become\n excessively complex as it has to cover an ever larger variety of cases. That's why\n modern cloud automation doesn't use shell scripts.\n\n## AWS CloudFormation\n\nDating back to 2011, 5 years after the birth of AWS, [AWS CloudFormation](https://aws.amazon.com/cloudformation/) is one of the earliest cloud automation tools (Terraform came about in 2014 with\n Terraform 1.0.0 being released in 2021). CloudFormation looks more like a data structure\n than a script, using hierarchical YAML (or equivalent JSON) syntax to describe the\n resources that should be deployed. It follows a *declarative* approach by specifying a desired target state, e.g., three banks. By letting the\n tool figure out what resources to (de-)provision to reach that state from the current\n setup, it solves the script explosion problem from above.\n\nCloudFormation is a new language, but you can get a small head start from the CLI\n by describing existing resources in a YAML format via the `output` parameter:\n\n```\n$ aws lambda list-functions --output=yaml --query='Functions[?starts_with(FunctionName, `BankSns`) == `true`]'\n```\n\nAlthough the result won't fit the CloudFormation script 100%, for example because\n CloudFormation requires additional settings like the source file, it's a reasonable\n start for simple resources.\n\n### Creating a Bank in YAML\n\nI like to start simple, so my first CloudFormation template creates just a single\n bank function:\n\n```\nAWSTemplateFormatVersion: '2010-09-09'\nParameters:\n BankRole:\n Type: String\nResources:\n BankSnsPawnShop:\n Type: AWS::Lambda::Function\n DeletionPolicy: Delete\n Properties:\n Runtime: nodejs12.x\n Code:\n S3Bucket: loanbroker-source\n S3Key: BankSns\n Handler: BankSns.handler\n Role:\n Ref: BankRole\n FunctionName: 'BankSnsPawnShop2'\n Description: 'Pawn Shop'\n Environment:\n Variables:\n BANK_ID: PawnShop\n BASE_RATE: '5'\n MAX_LOAN_AMOUNT: '500000'\n MIN_CREDIT_SCORE: '400'\n```\n\nAfter specifying a version header and requiring the security role as a parameter,\n my template defines a single resource of type `Lambda::Function`. All parameters that we'd pass on the command line before are now represented as\n nested YAML elements. For example, the environment settings of the name of the handler\n code can be found under `Properties/Environment/Variables`.\n\nCloudFormation pulls the ZIP'd source code from an S3 bucket, so before we can execute\n the CloudFormation template, we upload (copy) it there (yes, via command line):\n\n```\n$ aws s3 cp BankSns.zip s3://loanbroker-source/BankSns\n```\n\n### Creating a Stack\n\nCloudFormation is based on the concepts of a *template* and a *stack*. The template is the file above - a description of the resources that should be provisioned.\n A stack is an actual deployment of the template that tracks the deployed state. You\n could think of it as classes and objects instantiated from a class, with the key difference\n that your instances are running systems, which also incur costs. Deleting a stack\n equates to deprovisioning all resources associated with it.\n\nWe create a stack `LoanBrokerPubSub` based on the template above to deploy a single bank function, specifying the required\n security role parameter (as always, replace it with your role).\n\n```\n$ aws cloudformation create-stack --stack-name LoanBrokerPubSub \\\n --template-body file://LoanBrokerPubSub.yml \\\n --parameters ParameterKey=BankRole,ParameterValue=arn:aws:iam::1234567890:role/service-role/CreditBureau-role-abcdef\n{\n \"StackId\": \"arn:aws:cloudformation:us-east-2:1234567890:stack/LoanBrokerPubSub/abcdef\"\n}\n```\n\nThe CLI returns a `StackId` so we can refer to it later. Just having an ID doesn't mean the whole stack was created\n flawlessly, though, so it's a good idea to check the detailed event log:\n\n```\n$ aws cloudformation describe-stack-events --stack-name LoanBrokerPubSub \n```\n\nThis command will show the time and status for each resource that is created by the\n template (you'll fondly remember the JMESPath syntax for the `query` parameter from [Part 2](/ramblings/loanbroker_stepfunctions_recipient_list.html)).\n\n### Composing Multiple Banks\n\nSo far, so good, but we want to do a bit more than just deploy a single bank. Being\n largely a data structure, CloudFormation doesn't support loops or expansions as you\n would find them in regular programming languages.\n\nProvisioning multiple banks therefore follows the proven CTRL+C / CTRL+V method. A\n thorough read of the [CloudFormation Resource Reference](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-template-resource-type-ref.html) and good dosage of grit enabled me to also create the `QuoteRequestChannel` as an SNS topic, the `QuoteResponseChannel` as an SQS queue, and the message filter as an EventBridge rule. The script wires\n everything together by subscribing the Bank functions to the SNS channel and sending\n responses to the SQS queue via EventBridge. Those links are accomplished with resource\n references, e.g. to the subscribe banks to the Topic (some unrelated settings are\n omitted):\n\n```\nBankUniversalSubscription:\n Type: AWS::SNS::Subscription\n Properties:\n TopicArn: !Ref QuoteRequestChannel\n Protocol: lambda\n Endpoint: !GetAtt BankSnsUniversal.Arn\n```\n\nand to send responses to the EventBridge bus:\n\n```\nSendQuoteUniversal:\n Type: AWS::Lambda::EventInvokeConfig\n Properties:\n FunctionName: !Ref BankSnsUniversal\n DestinationConfig:\n OnSuccess:\n Destination: !GetAtt FilterMortgageQuotesBus.Arn\n```\n\nEven for our simple example, the code grows quickly, so you'll find the 200+ lines\n on [Github](https://github.com/spac3lord/eip/blob/master/LoanBroker/AwsStepFunctions/PubSub/LoanBrokerPubSub.yml).\n\nSecurity constructs such as queue and event bus policies are also represented as CloudFormation\n resources. For example, allowing our banks to receive quote requests and to publish\n responses requires the following policies:\n\n```\nBankPawnShopInvokePermission:\n Type: 'AWS::Lambda::Permission'\n DeletionPolicy: Delete\n Properties:\n Action: 'lambda:InvokeFunction'\n FunctionName: !Ref BankSnsPawnShop\n Principal: sns.amazonaws.com\n SourceArn: !Ref QuoteRequestChannel\n\nAllowMessagesToResponseChannel: \n Type: AWS::SQS::QueuePolicy\n DeletionPolicy: Delete\n Properties:\n Queues:\n - !Ref QuoteResponseChannel\n PolicyDocument:\n Statement:\n - Action:\n - \"SQS:SendMessage\"\n - \"SQS:ReceiveMessage\"\n - \"SQS:DeleteMessage\"\n - \"SQS:ChangeMessageVisibility\"\n Effect: \"Allow\"\n Resource: !GetAtt QuoteResponseChannel.Arn\n Principal:\n AWS: !Ref AWS::AccountId\n - Action:\n - \"SQS:SendMessage\"\n Effect: \"Allow\"\n Resource: !GetAtt QuoteResponseChannel.Arn\n Principal:\n Service: events.amazonaws.com\n```\n\nOnce defined, we can deploy the banks and queues (the Step Functions broker and aggregator\n aren't yet included) with a single command:\n\n```\n$ aws cloudformation update-stack --stack-name LoanBrokerPubSub --template-body file://LoanBrokerPubSub.yml \\\n --parameters ParameterKey=BankRole,ParameterValue=arn:aws:iam::1234567890:role/service-role/CreditBureau-role-abcdef\n```\n\nProud of our creation, we can test the setup by sending a quote request to the SNS\n channel and looking for responses on the response queue:\n\n```\n$ aws sns publish --topic-arn arn:aws:sns:us-east-2:1234567890:MortgageQuoteRequest2 \\\n --message '{ \"SSN\": \"123-45-6666\", \"Amount\": 500000, \"Term\": 30, \"Credit\": { \"Score\": 803, \"History\": 22 } }' \\\n --message-attributes '{ \"RequestId\": { \"DataType\": \"String\", \"StringValue\": \"ABC12345\" } }'\n```\n\nThe great news is that with a single command we can deploy a serverless solution that\n combines [Publish-subscribe Channels](/patterns/messaging/PublishSubscribeChannel.html), [Message Queues](/patterns/messaging/MessageChannel.html), [Message Filters](/patterns/messaging/Filter.html), and Lambda Functions. However, composing such an automation script blends resource\n provisioning, application composition, component configuration, and security settings.\n Not only does this mix separate concerns, it also makes writing and debugging these\n scripts a non-trivial exercise.\n\n## Polyglot Low-Code\n\nAutomating with CloudFormation is a huge step ahead from CLI scripts. However, getting\n the syntax right can be challenging at times (at least for me). The following snippet\n that configures the event bus to filter out empty mortgage quote responses might not\n look too complicated but took me an extraordinary amount of time to get right:\n\n```\nRouteMortgageQuotes:\n Type: AWS::Events::Rule\n DeletionPolicy: Retain\n Properties:\n Name: RouteMortgageQuotes2\n Description: \"Filter out empty quotes\"\n EventBusName: !GetAtt FilterMortgageQuotesBus.Name\n EventPattern:\n detail:\n requestContext:\n functionArn: [{ prefix: !Sub 'arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:BankSns2' }]\n responsePayload:\n bankId: [{ exists: true }]\n Targets:\n - Arn: !GetAtt QuoteResponseChannel.Arn\n InputPath: $.detail.responsePayload\n Id: MortgageQuotes\n```\n\nAfter trying to assemble an expression using the `Fn::Join` function, the [Burning Monk](https://theburningmonk.com/2019/05/cloudformation-protip-use-fnsub-instead-of-fnjoin/) saved me by recommending `Fn::Sub` instead. Nevertheless, I found the cognitive load to be high as this single line\n combines syntax from multiple languages:\n\n```\nfunctionArn: [{ prefix: !Sub 'arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:BankSns2' }]\n```\n\nThis line filters incoming events to only process those originating from our banks,\n identified by the name prefix `BankSns2`. Because EventBridge only supports prefix matching, the code constructs a full arn\n ([AWS Resource Name](https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html)) prefix.\n\n1. `!Sub` is syntactic sugar for `Fn::Sub` , a [CloudFormation intrinsic function](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/intrinsic-function-reference-sub.html) that substitutes placeholders in a string.\n2. In this case, the values to be substituted are pre-defined [CloudFormation pseudo parameters](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/pseudo-parameter-reference.html) . The resulting string looks like `arn:aws:lambda:us-east-2:1234567890:function:BankSns2` .\n3. This string is used inside the EventBridge pattern syntax to perform [prefix matching](https://docs.aws.amazon.com/eventbridge/latest/userguide/eb-event-patterns-content-based-filtering.html) , following the syntax `[{ prefix: \"string\"}]` .\n4. `functionArn` is the field name used in the envelope ( `requestContext` ) added by the Lambda destination to form the [invocation record](https://docs.aws.amazon.com/lambda/latest/dg/invocation-async.html) .\n\nThis single line pulls from several topic domains, including CloudFormation syntax,\n functions, and pseudo parameters, EventBridge filter patterns, and Lambda Destination\n event formats, so it's low-code but in a polyglot flavor. Luckily, my simple use case\n didn't need to [supply integer values](https://github.com/aws-cloudformation/cloudformation-coverage-roadmap/issues/251).\n\nDefining the event bus target utilizes another syntax. This EventBridge SQS Target\n filters down the message content to the actual quote, removing the event envelope\n (a classic [Content Filter](/patterns/messaging/ContentFilter.html)):\n\n```\nTargets:\n - Arn: !GetAtt QuoteResponseChannel.Arn\n InputPath: $.detail.responsePayload\n Id: MortgageQuotes\n```\n\nThese harmless-looking lines also combine syntax from multiple sources:\n\n1. `InputPath` is an EventBridge attribute to pass filtered content to the target. Alternatively,\n you can use the `Input` (JSON literal) or `InputTransformer` attributes (a map of JSONPath expressions plus a template in form of a JSON literal\n with placeholders for the fields calculated in the map).\n2. The value `$.detail.responsePayload` references a specific field from the event using JSONPath syntax. Nested fields are\n represented with dot notation here, as opposed to nested elements in the `EventPattern` attribute.\n3. `Arn` references the `MortgageQuotes` SQS channel that non-empty mortgage quotes are sent to, using the [intrinsic function](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/intrinsic-function-reference-sub.html) `GetAtt` , which accepts the name of an attribute in dot notation, however without a `$` .\n\n## Looking for Abstraction: SAM\n\nAlthough automation scripts are a great help, they can be verbose at times with too\n much boilerplate text. Oddly enough, they also contain very dense lines that combine\n syntax from multiple languages. Knowing that architecture is defined by meaningful\n decisions, I'd like to find a way to amplify the meaningful text while reducing the\n noise. In short, I am looking for useful abstractions. In AWS-land the next stop is\n SAM - The Serverless Application Model.\n\nThe [Serverless Application Model](https://aws.amazon.com/serverless/sam) comprises several elements, including the ability to build and run Lambda functions\n locally and to speed up (non-production) deployments with [SAM Accelerate](https://docs.aws.amazon.com/serverless-application-model/latest/developerguide/accelerate.html). At the heart of it are [additional resource types](https://docs.aws.amazon.com/serverless-application-model/latest/developerguide/sam-specification-resources-and-properties.html) that promise to make CloudFormation templates less verbose.\n\nIn our automation template above, defining a Lambda function that consumes messages\n from an SNS Topic and sends responses to EventBridge via Lambda Destination required\n three resources (`AWS::Lambda::Function`, `AWS::SNS::Subscription`, `AWS::Lambda::EventInvokeConfig`) plus IAM permissions (`AWS::Lambda::Permission`, `AWS::Events::EventBusPolicy`). SAM condenses this to a single Lambda resource with `Event` and `EventInvokeConfig` properties (I omitted the environment parameters below):\n\n```\nBankSnsPawnShop:\n Type: AWS::Serverless::Function\n Properties:\n PackageType: Zip\n Runtime: nodejs12.x\n CodeUri: src\n Handler: BankSns.handler\n FunctionName: 'BankSns3PawnShop'\n Description: 'Pawn Shop'\n Events:\n MortgageQuoteRequest:\n Type: SNS\n Properties:\n Topic: !Ref QuoteRequestChannel\n EventInvokeConfig:\n DestinationConfig:\n OnSuccess:\n Type: EventBridge\n Destination: !GetAtt FilterMortgageQuotesBus.Arn\n```\n\nYou notice the new resource type `AWS::Serverless::Function`. Instead of specifying the ZIP package, this resource type accepts the source code\n because SAM will actually build and package the function (for my trivial example it's\n really just ZIP-ing up the source file). Also, this resource no longer specifies a\n `Role` attribute as SAM will generate one for us, including the required permissions. The\n reduction from five resources to one is surely welcome. The resulting template (on\n [GitHub](https://github.com/spac3lord/eip/blob/master/LoanBroker/AwsStepFunctions/PubSub/template.yml)) is now 129 non-empty lines, a 35% reduction.\n\nYou build and run SAM applications from the command line (CloudShell has SAM pre-installed):\n\n```\n$ sam build\n$ sam deploy --guide\n```\n\nThe `guide` option allows you to enter required settings (like the CloudFormation stack name)\n on the command line and stores them in a local file so you don't have to repeat the\n process. SAM expands the serverless resources into actual resources:\n\n```\nCloudFormation stack changeset\n----------------------------------------------------------------------------------------------\nOperation LogicalResourceId ResourceType \n----------------------------------------------------------------------------------------------\n+ Add BankSnsPawnShopEventInvokeConfig AWS::Lambda::EventInvokeConfig \n+ Add BankSnsPawnShopMortgageQuoteRequestPermission AWS::Lambda::Permission \n+ Add BankSnsPawnShopMortgageQuoteRequest AWS::SNS::Subscription \n+ Add BankSnsPawnShopRole AWS::IAM::Role \n+ Add BankSnsPawnShop AWS::Lambda::Function \n+ Add BankSnsPremiumEventInvokeConfig AWS::Lambda::EventInvokeConfig \n+ Add BankSnsPremiumMortgageQuoteRequestPermission AWS::Lambda::Permission \n+ Add BankSnsPremiumMortgageQuoteRequest AWS::SNS::Subscription \n+ Add BankSnsPremiumRole AWS::IAM::Role \n+ Add BankSnsPremium AWS::Lambda::Function \n+ Add BankSnsUniversalEventInvokeConfig AWS::Lambda::EventInvokeConfig \n+ Add BankSnsUniversalMortgageQuoteRequestPermission AWS::Lambda::Permission \n+ Add BankSnsUniversalMortgageQuoteRequest AWS::SNS::Subscription \n+ Add BankSnsUniversalRole AWS::IAM::Role \n+ Add BankSnsUniversal AWS::Lambda::Function \n+ Add FilterMortgageQuotesBus AWS::Events::EventBus \n+ Add QuoteRequestChannel AWS::SNS::Topic \n+ Add QuoteResponseChannel AWS::SQS::Queue \n+ Add RouteMortgageQuotes AWS::Events::Rule \n```\n\nHere you can see roles created for each function, e.g. `BankSnsPawnShopRole` plus the required permissions. The cool part is that with just two command lines,\n you're ready to send quote requests and fetch the results from the `MortgageQuotes3` channel (that `query` parameter is really coming in handy):\n\n```\n$ aws sns publish --topic-arn arn:aws:sns:us-east-2:1234567890:MortgageQuoteRequest3 \\\n --message '{ \"SSN\": \"123-45-6666\", \"Amount\": 500000, \"Term\": 30, \"Credit\": { \"Score\": 803, \"History\": 22 } }' \\\n --message-attributes '{ \"RequestId\": { \"DataType\": \"String\", \"StringValue\": \"ABCD1234\" } }'\n\n$ aws sqs receive-message --queue-url https://sqs.us-east-2.amazonaws.com/1234567890/MortgageQuotes3 \\\n --query='Messages[].Body' --max-number-of-messages=5 --wait-time-seconds=5\n\n[\n \"{\\\"rate\\\":6.134508050538122,\\\"bankId\\\":\\\"PawnShop\\\",\\\"id\\\":\\\"ABCD1234\\\"}\"\n \"{\\\"rate\\\":5.692421843390756,\\\"bankId\\\":\\\"Universal\\\",\\\"id\\\":\\\"ABCD1234\\\"}\"\n]\n\n$ aws sqs purge-queue --queue-url https://sqs.us-east-2.amazonaws.com/1234567890/MortgageQuotes3\n```\n\n`sqs receive-message` doesn't delete messages from the queue, so for testing it's handy to purge the queue\n after receiving messages (it's great that SQS includes a [Channel Purger](/patterns/messaging/ChannelPurger.html)). Also, be aware that a single call to `sqs receive-message` might not return all messages at once.\n\nWhat initially tripped me up is that specifying an EventBridge Target to an SQS channel\n doesn't automatically give the event bus permission to send messages. If you consider\n that the EventBridge resource type is still `AWS::Events::Rule`, this makes sense as all the SAM magic is reserved for resources of the `AWS::Serverless` types. So, the SAM template still needs a `AWS::SQS::QueuePolicy` to allow our event bus to send messages.\n\nSAM certainly makes automation template development easier, especially for complex\n resources like API gateways. But did it really provide us with a new model, i.e. abstraction,\n as the name suggests?\n\n## Serverless Automation: A Reflection\n\nCloud without automation is just going to be a better data center, which isn't really\n what anyone wants. Especially with serverless applications, automation takes on a\n whole new meaning as it's less concerned with provisioning (the platform takes care\n of that) but much more with composition (which resource sends messages where) and\n application settings (like our bank parameters). However, these expanded responsibilities\n also stretch what automation languages like CloudFormation were originally designed\n to do. Time for us architects to [zoom out](https://architectelevator.com/architecture/architects-zoom).\n\n### Separation of Concerns\n\nEven for our simple demo application, the automation script handles multiple levels\n of application management:\n\n- **Code deployment** of the Lambda functions\n- **Composition** , e.g., by setting Lambda Destinations and EventBridge Targets\n- **Application settings** , e.g. the loan and credit score limits of the banks\n- **Security settings** , e.g. by granting permissions or assigning roles\n\nHaving all these capabilities coded and version controlled is a definite asset. However,\n you can expect these respective settings to be made by different parties at different\n times and perhaps subject to different authorization rules. Parameters allow separation\n for very simple cases (like the role identifierin my simple example), so you might\n need to resort to YAML / JSON manipulation (they're easily parsed!), or built-in mechanisms\n like [nested stacks](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-nested-stacks.html). The danger here is that you are building layers over layers (your templating system\n - SAM - CloudFormation - AWS API), which will make debugging cumbersome.\n\n### Syntax and Tooling\n\nAs shown above, using YAML (or JSON is you prefer) syntax is convenient for expressing\n resource definitions. However, most automation languages like CloudFormation combine\n elements from multiple technical domains into the same file and often the same line.\n For example, the following snippet nests CloudFormation-defined elements (`Properties`, `EventPattern`) with event node names that are defined by AWS resources (`detail`, `requestContext`) and event node names defined by your application (`bankId`):\n\n```\nProperties:\n EventPattern:\n detail:\n requestContext:\n functionArn: [{ prefix: !Sub 'arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:BankSns2' }]\n responsePayload:\n bankId: [{ exists: true }]\n```\n\nOn top of this, expression combines syntax from CloudFormation functions (e.g., `!Sub` or `${AWS:Region}`) and that used by the respective service (e.g., `prefix` in this case).\n\nThe basic syntax also makes the scripts verbose: a script that implements only a subset\n of the Loan Broker (the most complex elements, i.e., the Step Functions orchestrator\n and the Aggregator are missing) already contains over 200 lines.\n\n### Abstraction\n\nThe automation scripts we created provide a huge convenience and in fact a new way\n of working. For example, I had made a mistake by not specifying the correct bank IDs\n and all I had to do was update the SAM template, `build` and `deploy` and SAM figured out to re-provision just those functions (SAM accelerate might have\n been able to do it on the fly, even). However, the automation languages don't really\n provide abstractions over the cloud resources: we are still dealing with Functions\n and EventBridges and Step Functions. You might guess that I have [some ideas](/patterns/messaging) on how to describe asynchronous, distributed systems at a higher level of abstraction.\n Using such abstractions isn't syntactic sugar or shortcuts but a different vocabulary\n that emphases the key design decisions. For example, I'd want to be able to express\n that my EventBridge Rule acts as a [Message Filter](/patterns/messaging/Filter.html) and a [Content Filter](/patterns/messaging/ContentFilter.html), highlighting the key parameters, which are the filter predicate and the content\n selection.\n\n### Composability and Orthogonality\n\nDistributed solutions should be loosely coupled, meaning that a change in one component\n doesn't propagate to other components. Not specific to automation tools but rather\n the platform itself, I spotted several instances where the current implementation\n would struggle to meet this test. For example, the EventBridge pattern filters on\n the specific event header added by the Lambda Destination (`detail.requestContext.functionArn`). If I was to change the implementation to use a different composition mechanism\n (e.g. sending messages directly from the function code), this logic in the EventBridge\n pattern would fail.\n\nLikewise, when a Lambda Destination calls calls EventBridge, the data is inside the\n `Detail` element (we referenced that above). However, for Lambda-to-Lambda calls you have\n the option of sending the response only by specifying `responseOnly` in the [CDK Configuration](https://docs.aws.amazon.com/cdk/api/v1/docs/aws-lambda-destinations-readme.html#auto-extract-response-payload-with-lambda-destination). That option isn't available for other destination targets. Making the availability\n of options independent from other settings, makes a system *orthogonal* and therefore more freely composable. A great example are Unix pipes, which are freely\n composable due to all components reading and writing to standard streams.\n\n## IaaC - Infrastructure as actual Code\n\nLuckily, I am not the first person to encounter these limitations. A new generation\n of automation tools like [AWS CDK](https://aws.amazon.com/cdk), [Pulumi](https://www.pulumi.com/), or [CDK for Terraform](https://www.terraform.io/cdktf) provide programming libraries for cloud automation. We might appropriately call this\n IaaC - *Infrastructure as actual Code* (which, not coincidentally, is also a chapter in my book [Cloud Strategy](https://architectelevator.com/book/cloudstrategy/)).\n\nThat automation code gives us an ideal starting point for abstraction and tooling.\n That'll be the [perfect topic for the next post](/ramblings/loanbroker_cdk.html)!\n\n### Related Posts in This Series\n\n- **Part 1** : [Loan Broker Implementation with AWS Step Functions](/ramblings/loanbroker_stepfunctions.html)\n- **Part 2** : [Recipient List](/ramblings/loanbroker_stepfunctions_recipient_list.html)\n- **Part 3** : [Publish-Subscribe with SNS](/ramblings/loanbroker_stepfunctions_pubsub.html)\n- **Part 4** : [Automation](/ramblings/loanbroker_automation.html)\n- **Part 5** : [Integration Patterns with CDK](/ramblings/loanbroker_cdk.html)\n\n*Share:*\n\n*Follow:* [Follow @ghohpe](https://twitter.com/ghohpe) [SUBSCRIBE TO FEED](../ramblings.rss)\n\n*More On:* [INTEGRATION](/ramblings_integration.html) [CLOUD](/ramblings_cloud.html) [ALL RAMBLINGS](../ramblings.html)\n\nGregor is a cloud architect and author. He is a frequent speaker on asynchronous messaging,\n IT strategy, and cloud.", "znaku_textu": 28404, "slov": 3504, "odkazu": 76, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 15:35:30", "sha256": "13669c35fdfbc29ec0447fb9dd5dbb29b32b89fdfa7a1bd3e6589a77d107b005", "hloubka": 4, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://architectelevator.com/blog", "https://github.com/spac3lord/eip/blob/master/LoanBroker/AwsStepFunctions/PubSub/makeBanks", "https://aws.amazon.com/cloudformation/", "https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-template-resource-type-ref.html", "https://github.com/spac3lord/eip/blob/master/LoanBroker/AwsStepFunctions/PubSub/LoanBrokerPubSub.yml", "https://theburningmonk.com/2019/05/cloudformation-protip-use-fnsub-instead-of-fnjoin/", "https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html", "https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/intrinsic-function-reference-sub.html", "https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/pseudo-parameter-reference.html", "https://docs.aws.amazon.com/eventbridge/latest/userguide/eb-event-patterns-content-based-filtering.html", "https://docs.aws.amazon.com/lambda/latest/dg/invocation-async.html", "https://github.com/aws-cloudformation/cloudformation-coverage-roadmap/issues/251", "https://aws.amazon.com/serverless/sam", "https://docs.aws.amazon.com/serverless-application-model/latest/developerguide/accelerate.html", "https://docs.aws.amazon.com/serverless-application-model/latest/developerguide/sam-specification-resources-and-properties.html", "https://github.com/spac3lord/eip/blob/master/LoanBroker/AwsStepFunctions/PubSub/template.yml", "https://architectelevator.com/architecture/architects-zoom", "https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-nested-stacks.html", "https://docs.aws.amazon.com/cdk/api/v1/docs/aws-lambda-destinations-readme.html", "https://aws.amazon.com/cdk", "https://www.pulumi.com/", "https://www.terraform.io/cdktf", "https://architectelevator.com/book/cloudstrategy/", "https://twitter.com/share", "https://twitter.com/ghohpe", "https://leanpub.com/37things"]} {"url": "http://www.enterpriseintegrationpatterns.com/ramblings/loanbroker_cdk.html", "titulek": "Serverless Loan Broker @ AWS, Part 5: Integration Patterns with CDK - Enterprise Integration Patterns", "h1": "Serverless Loan Broker @ AWS, Part 5: Integration Patterns with CDK", "popis": "Infrastructure as Code (IaC) brings repeatability into the provisioning and deployment of cloud applications", "klicova_slova": "", "kanonicka": "", "jazyk": "en_US", "robots_meta": "", "og": {"og:type": "article", "og:locale": "en_US", "og:site_name": "Enterprise Integration Patterns", "og:title": "Serverless Loan Broker @ AWS, Part 5: Integration Patterns with CDK", "og:description": "Infrastructure as Code (IaC) brings repeatability into the provisioning and deployment of cloud applications", "og:url": "https://www.enterpriseintegrationpatterns.com/ramblings/loanbroker_cdk.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/cdk-layers.png"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Serverless Loan Broker @ AWS, Part 5: Integration Patterns with CDK"}, {"uroven": 2, "text": "CDK - IaC for Grown-Ups"}, {"uroven": 2, "text": "CDK Constructs"}, {"uroven": 2, "text": "Design Pattern: Circuit Breaker"}, {"uroven": 2, "text": "Expressing Intent - Integration Patterns"}, {"uroven": 3, "text": "Layers, but different"}, {"uroven": 2, "text": "Integration Patterns in CDK"}, {"uroven": 2, "text": "Serverless Automation Patterns"}, {"uroven": 3, "text": "Mapping Integration Patterns to AWS Serverless"}, {"uroven": 3, "text": "Coding Integration Patterns with CDK"}, {"uroven": 2, "text": "What about leaky abstractions?"}, {"uroven": 2, "text": "What's Next?"}, {"uroven": 3, "text": "Related Posts in This Series"}], "markdown": "Gregor's Ramblings\n\n---\n\n# Serverless Loan Broker @ AWS, Part 5: Integration Patterns with CDK\n\nJan 25, 2022\n\nFind my posts on IT strategy, enterprise architecture, and digital transformation\n at [ArchitectElevator.com](https://architectelevator.com/blog).\n\nIn Part 4 of this mini-series we [automated the serverless Loan Broker](/ramblings/loanbroker_automation.html) using the CLI (just for kicks), AWS CloudFormation, and the Serverless Application\n Model (SAM). Although that was a solid step forward, by using an object-oriented language\n and CDK, the Cloud Development Kit we can build abstractions to express the intent\n of our distributed composition. If that reminds you of patterns, especially asynchronous\n messaging patterns, you are spot on!\n\nThis is the fifth installment of the Serverless Loan Broker mini-series. If you landed\n on this page first, here's a quick recap:\n\n- [Part 1](/ramblings/loanbroker_stepfunctions.html) implemented the Loan Broker using AWS Step Functions orchestration to enrich incoming\n requests with the credit bureau data.\n- [Part 2](/ramblings/loanbroker_stepfunctions_recipient_list.html) integrated the Loan Broker with the banks via a [Recipient List](/patterns/messaging/RecipientList.html) .\n- [Part 3](/ramblings/loanbroker_stepfunctions_pubsub.html) upped the ante by invoking the banks asynchronously via a [Publish-Subscribe Channel](/patterns/messaging/PublishSubscribeChannel.html) and combining the results in a stand-alone [Aggregator](/patterns/messaging/Aggregator.html) .\n- [Part 4](/ramblings/loanbroker_automation.html) automated our proud creation (sans Step Functions and Aggregator) using AWS CloudFormation\n and the Serverless Application Model.\n\n## CDK - IaC for Grown-Ups\n\nAs we saw in [Part 4](/ramblings/loanbroker_automation.html), traditional automation tools favor document-oriented languages, represented in YAML\n or JSON syntax, occasionally augmented by simple functions to reduce repetition by\n means of loops or templates. Still, as your application grows, the resulting structures\n are likely to grow unwieldy. That's why recent automation tools like [Pulumi](https://www.pulumi.com/), [AWS CDK](https://aws.amazon.com/cdk), or [CDK for Terraform](https://github.com/hashicorp/terraform-cdk) encode cloud automation as libraries for popular object-oriented languages like Java,\n Python, or TypeScript.\n\nBecause these libraries correspond to the same base constructs as document-oriented\n languages (which in turn map to the underlying cloud APIs), the transition to tools\n like CDK is relatively smooth. For example, creating an EventBridge target to invoke\n a Lambda function looks as follows in CDK for TypeScript (when checking [the CDK reference docs](https://docs.aws.amazon.com/cdk/api/v2//docs/aws-cdk-lib.aws_events_targets-readme.html), make sure you're viewing the up-to-date v2):\n\n```\nconst fn = new lambda.Function(this, ...);\nconst rule = new events.Rule(this, 'rule', { eventPattern: { detail: { \"field\": \"value\" } } } );\nrule.addTarget(new targets.LambdaFunction(fn));\n```\n\nThe first line creates a Lambda Function, followed by an event rule that triggers\n when incoming messages contain a certain field value. The last line connects the rule\n to the function, instructing EventBridge to invoke the function for any message that\n matches the rule. The rule itself has to be associated with an `[EventBus](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_events.EventBus.html)`, which is set to the `default` bus if none is specified (as is the case here).\n\n`lambda.Function` is part of the `[aws_lambda](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_lambda.Function.html)` package whereas `targets.LambdaFunction` is specific to defining an EventBridge target that happens to be a Lambda function\n and is appropriately part of the `[aws_events](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_events_targets.LambdaFunction.html)` package. I am wondering whether a factory method and some overloading would have\n saved us from having to use a separate class for each type of event target, but then\n different targets have different options, which might break our polymorphism or leave\n us with a generic and untyped `props` collection, which isn't any better.\n\n## CDK Constructs\n\nBeing able to use a proper IDE, auto-complete and all the OO language features that\n have grown so dear to our heart is a definite step forward. However, wouldn't suit\n us to actually use those freshly rediscovered language features to provide some abstractions,\n like what we do when writing applications?\n\nSure enough, CDK defines three levels of [constructs](https://docs.aws.amazon.com/cdk/v2/guide/constructs.html):\n\n- **Level 1** constructs match existing CloudFormation resources, the same elements that we referenced\n in the YAML script in [Part 4](/ramblings/loanbroker_automation.html) . These classes receive the same properties, often via a `props` helper.\n- **Level 2** constructs also represent existing resources, but with an \"intent-based\" API, which\n in most cases translates into smart defaults or additional convenient methods like\n the `[grantPutEventsTo](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_events.EventBus.html#grantwbrputwbreventswbrtograntee)` method on the `EventBus` construct, which takes care of the needed IAM settings. One of the most convenient\n Level 2 constructs might be the [VPC Construct](https://docs.aws.amazon.com/cdk/api/v2//docs/aws-cdk-lib.aws_ec2.Vpc.html) , which can [save you several hundred lines of CloudFormation template code](https://bobbyhadz.com/blog/cdk-constructs-tutorial#level-2-constructs) .\n- **Level 3** constructs are referred to as *patterns* . The standard CDK only\n includes two categories for patterns (ECS and Route53) with all others being shared\n less formally as \"solutions\", like this [API Gateway connected to a Lambda function](https://docs.aws.amazon.com/solutions/latest/constructs/aws-apigateway-lambda.html) .\n\nAlthough the higher-level CDK constructs provide a welcome mechanism for reducing\n the amount of code and options that need to be set, they don't really provide much\n abstraction: the new constructs either correspond to a single resource or to a combination\n of multiple (usually two) resources. The former means that we still code automation\n at the cloud resource level, with the additional constructs largely providing convenience\n functions. The latter significantly reduces the amount of code to be written as it\n can pre-wire multiple resources, but it falls short of establishing a new vocabulary\n for us to describe the solution architecture. It also quickly ends up with a n-squared\n effort.\n\nGiven that it's an object-oriented library, I feel that CDK could go further towards\n implementing actual design patterns and establishing a [pattern language](/ramblings/67_patterns.html) that's distinct from the AWS resources.\n\n> CDK constructs use the language of the atomic resources. Although that's what chemists\n> do by naming molecules \"(h)aitch-two-oh\", the rest of us prefer to call it \"water\".\n> That kind of vocabulary would be a huge addition to CDK constructs.\n\nSo, let's see if we can \"raise the bar\" a bit.\n\n## Design Pattern: Circuit Breaker\n\nA commonly used design pattern in distributed systems is the [Circuit Breaker](https://martinfowler.com/bliki/CircuitBreaker.html). A Circuit Breaker prevents a slow or partially failing component from compromising\n the whole system be detects such a situation and \"tripping\", causing it to immediately\n return an error code instead of consuming components sending repeated requests and\n timing out, unnecessarily consume resources, While in the open state, the Circuit\n Breaker probes the failing component at a reasonable interval to detect the component\n recovery and return into a normal state (users of [asynchronous messaging](/patterns/messaging/) might find this mechanism strangely unnecessary).\n\nThere's an implementation of a\n [EventBridge Circuit Breaker](https://github.com/cdk-patterns/serverless/tree/main/the-eventbridge-circuit-breaker) in CDK by [AWS Hero Matt Coulter](https://github.com/nideveloper) (the example of Google being down is rather humorous). The implementation uses DynamoDB\n as a simple time-series database to track the number of errors that occurred in the\n last 60 seconds (using [Timestream](https://aws.amazon.com/timestream/features/) might be overkill but would be an interesting exercise). If the error count exceeds\n a given threshold, the Circuit Breaker (a Lambda function in this case) trips and\n returns instant errors instead of calling the external service over and over again.\n The message flow is as follows:\n\nThe pattern code ([GitHub](https://github.com/cdk-patterns/serverless/blob/main/the-eventbridge-circuit-breaker/python/the_eventbridge_circuit_breaker/the_eventbridge_circuit_breaker_stack.py)) combines Python (or TypeScript) CDK code and Lambda functions written in TypeScript.\n The [Context-Based Router](https://www.enterpriseintegrationpatterns.com/patterns/messaging/MessageRouter.html) pattern (the web page only shows an abridged version of the pattern; full-text in\n the book) that routes messages based on external state is implemented in a custom\n Lambda function. It'd be interesting to see if it also be implemented in EventBridge.\n\nI noticed is that this pattern implementation doesn't actively probe the service to\n see if it's still brokenbut rather relies on the sliding time window that \"expires\"\n past errors. On a service that receives consistent traffic this might lead to the\n faulty service receiving a burst of `ERROR_THRESHOLD` requests about every 60 seconds. It could also be a nice enhancement to map out the\n parameters and variability points, e.g. thresholds, external service ARN etc, as parameters.\n The code is open source, so I guess I am invited to submit a pull request :-) .\n\n## Expressing Intent - Integration Patterns\n\nIn our quest to find suitable abstractions for distributed serverless applications\n let's close the loop and recall our very own integration patterns. It turns out, they\n actually make for a very good combo.\n\n### Layers, but different\n\nDuring the Loan Broker implementation, we found that many integration patterns are\n already built into the platform. For example AWS SNS (or GCP Pub/Sub) are great implementations\n of a [Publish-Subscribe Channel](/patterns/messaging/PublishSubscribeChannel.html). We also used a [Content Filter](/patterns/messaging/ContentFilter.html) and a [Message Filter](/patterns/messaging/Filter.html) to eliminate empty bank quotes and to only pass the useful message payload. The pattern\n icons are nicely included in this [Overview Diagram](/ramblings/loanbroker_stepfunctions_pubsub.html#conclusion):\n\nNow, wouldn't it be awesome to describe the solution with those patterns instead of\n YAML expressions? The filter expressions would then be neatly in our code as opposed\n to [being buried deep down in a YAML document](/ramblings/loanbroker_automation.html#polyglot). Well, it looks like CDK might be exactly our ticket for that!\n\n## Integration Patterns in CDK\n\nBeing able to write automation code in an object-oriented language gives us the ability\n to form clean layers that each use a different vocabulary. Those layers are quite\n different from the existing CDK layers (extra points for noticing the non-arbitrary\n color scheme):\n\nThe bottom layer of our approach consists of the usual CDK constructs, such as the\n EventBridge event bus, Lambda functions, and SQS queues. Moving up the stack, our\n goal is to describe applications using Enterprise Integration Patterns instead of\n cloud resources. We achieve that with a (icon-green) middle layer that implements\n common integration patterns on top of the AWS serverless ecosystem. The top layer\n finally uses the language of our example domain, meaning banks and loan brokers, credit\n bureaus, etc.\n\nThe three layers each use the language of their respective domain:\n\n- The application domain, using the vocabulary of the business and translating it into\n an application.\n- The domain of fine-grained distributed systems, using the vocabulary from Enterprise\n Integration Patterns (at least initially; I'd be happy to discover new patterns).\n- The cloud provider domain, i.e. AWS resource names.\n\nThe second layer is the critical one as it allows separates the application from the\n product / service / resource names.\n\n## Serverless Automation Patterns\n\nApplication automation code in the top layer now looks like this snippet (see\n [CDK Integration Patterns Github Repo](https://github.com/aws-samples/aws-cdk-loan-broker/blob/main/cdk/LoanBroker-PubSub-stack.ts)).\n\n```\nvar nonEmptyQuoteMessageFilter = MessageFilter.fromDetail(this, \"nonEmptyQuoteMessageFilter\",\n { responsePayload: { bankId: [{ exists: true }] } }\n);\nvar payloadContentFilter = ContentFilter.createPayloadFilter(this, \"PayloadContentFilter\");\n\nnew MessageContentFilter(this, \"FilterMortgageQuotes\", {\n sourceEventBus: mortgageQuotesEventBus,\n targetQueue: mortgageQuotesQueue,\n messageFilter: nonEmptyQuoteMessageFilter,\n contentFilter: payloadContentFilter,\n});\n```\n\nThis automation code looks oddly like... application code. It uses a language that's\n abstracted from the cloud resources and instead uses a vocabulary that's suitable\n to describing message-oriented solutions.\n\nThe `nonEmptyQuoteMessageFilter` is a [Message Filter](/patterns/messaging/Filter.html). As you'd expect, this Message Filter accepts a predicate, an expression that evaluates\n to `true` or `false`. In our case, that predicate is described in [EventBridge event pattern](https://docs.aws.amazon.com/eventbridge/latest/userguide/eb-event-patterns.html) syntax. We happily accept this leak from the underlying platform because it vastly\n simplifies the implementation. The expression `{ responsePayload: { bankId: [{ exists: true }] } }` specifies that the message has to have a `bankId` field inside the `responsePayload`, just as it did when it [was embedded in YAML in Part 4](/ramblings/loanbroker_automation.html).\n\nSecond, we create a special kind of Content Filter, a Payload Filter, that reduces\n incoming messages to just the payload, stripping off the metadata that might have\n been added by Lambda Destinations. This class doesn't require any additional parameters.\n\nLast, the code combines both patterns into a `MessageContentFilter`, which additionally accepts a source and a target. The `MessageContentFilter` is a somewhat contrived combination of a Message Filter and a Content Filter that\n matches the EventBridge implementation under the covers. You'd be right to point out\n another small amount of leakage from the lower layers. I'll discuss our options on\n this below.\n\n> Automation code isn't limited to dealing with platform resources. Instead, it should\n> be using abstractions that express the intent of your application.\n\n### Mapping Integration Patterns to AWS Serverless\n\nThe magic question now is: what does the middle layer look like? That layer exposes\n the Integration Pattern language and maps that to the AWS Serverless ecosystem. We\n are starting very simple here with just two patterns, a [Message Filter](/patterns/messaging/Filter.html) and a [Content Filter](/patterns/messaging/ContentFilter.html). Both patterns are conveniently implemented inside EventBridge, although with some\n nuances.\n\nThe official functional diagram of [Amazon EventBridge](https://aws.amazon.com/eventbridge/) provides a starting point:\n\nBeing a universal event bus, the diagram focuses on the variety of supported sources\n and targets. It also highlights the ability to work with Event Schemas, which we aren't\n using for the Loan Broker. The \"Rules\" description gives us a hint by highlighting\n that it can be used \"to filter and send events\". That's going to be our [Message Filter](/patterns/messaging/Filter.html). The [Content Filter](/patterns/messaging/ContentFilter.html) isn't really visible in this diagram, though. As we found out in [Part 3](/ramblings/loanbroker_stepfunctions_pubsub.html#replies), content filtering is part of the EventBridge target. The setting looked like this\n in CloudFormation (see [Part 4](/ramblings/loanbroker_automation.html#polyglot)):\n\n```\nTargets:\n - Arn: !GetAtt QuoteResponseChannel.Arn\n InputPath: $.detail.responsePayload\n Id: MortgageQuotes\n```\n\n`InputPath` is one of the options for selecting data to be sent to the target, in this case,\n a subset of the event.\n\n### Coding Integration Patterns with CDK\n\nArmed with the mapping from pattern to AWS resource, we can implement the Integration\n Patterns on top of CDK. The green middle layer contains two core classes `MessageFilter` and `ContentFilter` (see [Source on GitHub](https://github.com/aws-samples/aws-cdk-loan-broker/blob/main/cdk/LoanBroker-PubSub-stack.ts)). Let's tackle the Message Filter first:\n\n```\ninterface MessageFilterProps extends EventPattern {}\ninterface MessageFilterDetailProps { [key: string]: any; }\n\nclass MessageFilter extends Construct {\n public readonly eventPattern: EventPattern;\n\n constructor(scope: Construct, id: string, props: MessageFilterProps) {\n super(scope, id);\n this.eventPattern = props;\n }\n\n static fromDetail(scope: Construct, id: string, detailProps: MessageFilterDetailProps): MessageFilter {\n return new MessageFilter(scope, id, {\n detail: detailProps,\n });\n }\n}\n```\n\nThe `MessageFilter` is really just a wrapper for a CDK `[EventPattern](https://docs.aws.amazon.com/cdk/api/v2//docs/aws-cdk-lib.aws_events.EventPattern.html)`. One of the `EventPattern`'s properties is the `detail`parameter, which according to the documentation is \"A JSON object, whose content is\n at the discretion of the service originating the event.\" Er, ah, OK... not really.\n What we need to understand here is the structure of the incoming events, passed along\n by the Lambda Destination (I omit numerous fields—this is the reason use a Content\n Filter!):\n\n```\n{\n \"version\": \"0\",\n \"id\": \"12345678-0054-2c61-4c9f-c3c77a599782\",\n \"detail-type\": \"Lambda Function Invocation Result - Success\",\n \"source\": \"lambda\",\n \"account\": \"1234567890\",\n \"time\": \"2022-01-18T08:02:39Z\",\n \"region\": \"us-east-2\",\n \"resources\": [\n \"arn:aws:events:us-east-2:1234567890:event-bus/LoanBroker3\",\n \"arn:aws:lambda:us-east-2:1234567890:function:BankSns3Premium:$LATEST\"\n ],\n \"detail\": {\n \"version\": \"1.0\",\n \"timestamp\": \"2022-01-18T08:02:39.190Z\",\n \"requestContext\": {\n \"requestId\": \"12345678-6eed-46f3-8725-6e62466588ae\",\n \"functionArn\": \"arn:aws:lambda:us-east-2:1234567890:function:BankSns3Premium:$LATEST\",\n \"condition\": \"Success\",\n \"approximateInvokeCount\": 1\n },\n \"requestPayload\": {\n \"Records\": [ ] ## Removed\n },\n \"responseContext\": {\n \"statusCode\": 200,\n },\n \"responsePayload\": {\n \"rate\": 4.225740338234942,\n \"bankId\": \"Premium\",\n \"id\": \"AAAA12345\"\n }\n }\n}\n```\n\nThe `detail` property of the CDK `[EventPattern](https://docs.aws.amazon.com/cdk/api/v2//docs/aws-cdk-lib.aws_events.EventPattern.html)` corresponds to the event's `detail` element (you'll find other properties for `account`, `detail-type` (`detailType` in TypeScript CDK), etc). Now it makes sense that we accept `MessageFilterDetailProps`, which really can represent any JSON construct. Passing `{ responsePayload: { bankId: [{ exists: true }] } }` specifies that a `bankId` element must exist under the `responsePayload` within the `detail` section of the event.\n\nThe Content Filter we are using is a very common one: we only want to retain the `responsePayload`. Hence we create a static method `createPayloadFilter`, which conveniently contains the correct JSONPath expression to the `responsePayload` (you'll see `detail` here again, albeit this time as part of the expression string—those little variations\n are one reason the pattern layer is so helpful):\n\n```\ninterface ContentFilterProps { readonly jsonPath: string; }\n\nclass ContentFilter extends Construct {\n public readonly ruleTargetInput: RuleTargetInput;\n\n constructor(scope: Construct, id: string, props: ContentFilterProps) {\n super(scope, id);\n this.ruleTargetInput = RuleTargetInput.fromEventPath(props.jsonPath);\n }\n\n static createPayloadFilter(scope: Construct, id: string): ContentFilter {\n return new ContentFilter(scope, id, {\n jsonPath: \"$.detail.responsePayload\",\n });\n }\n}\n```\n\nThe arguments to the `MessageFilter` and the `ContentFilter` are different (JSON Object vs. JSONPath expression) because EventBridge rules support\n complex expressions, including \"logical AND\" (within limits), whereas the target's\n `InputPath` extracts a single subset of the event. At the same time, both objects are really\n just data holders - neither one invokes the lower-level CDK constructs directly.\n\nFinally, the `MessageContentFilter` defines an event bus rule and target based on the settings from the two objects,\n plus an event source and a destination (our SQS Queue):\n\n```\ninterface MessageContentFilterProps {\n sourceEventBus: EventBus;\n targetQueue: IQueue;\n messageFilter: MessageFilter;\n contentFilter: ContentFilter;\n}\n\nclass MessageContentFilter extends Construct {\n constructor(scope: Construct, id: string, props: MessageContentFilterProps) {\n super(scope, id);\n\n const messageFilterRule = new Rule(scope, id + \"Rule\", {\n eventBus: props.sourceEventBus,\n ruleName: id + \"Rule\",\n eventPattern: props.messageFilter.eventPattern,\n });\n\n var queueMessageProps = props.contentFilter.ruleTargetInput ? {\n message: props.contentFilter.ruleTargetInput,\n } : {};\n messageFilterRule.addTarget(new targets.SqsQueue(props.targetQueue, queueMessageProps));\n }\n}\n```\n\nThe abstraction implements *explicit composition*, as [described in Part 3](/ramblings/loanbroker_stepfunctions_pubsub.html#composition):\n\nMaking the composition explicit in a central component might be considered more tightly\n coupled. However, being able to describe the composition in automation code that can\n freely recompose the application's anatomy, allows for rapid and reliable changes.\n The key requirement is that you have control over all application elements, making\n this technique more useful for distributed applications than application integration.\n\n> Describing an application's composition in automation code allows us to freely recompose\n> the application's anatomy.\n\n## What about leaky abstractions?\n\nWhile discussing the pattern layer, we noticed multiple leaks from the CDK layer,\n such as the expression syntax or the existence of a MessageContentFilter. You would\n rightly conclude that such leakages would make it difficult to use the same abstraction\n with an implemnentation on another cloud. There are several pragmatic reason that\n I am fine with those leaks, at least at this point:\n\n- Building a full wrapper is a massive effort.\n- A full wrapper would require users to learn a new syntax, adding to the learning ramp.\n- Building an abstraction based on a simple instance is a slippery slope. I would have\n to at least implement the Loan Broker in two more clouds to find suitable commonality.\n\nThe bigger consideration is main objective:\n\n> The primary objective is expressive automation code, not portability. Portability\n> might be a welcome bonus.\n\nPortability is a valuable benefit. However, it's also a future, potential benefit—it's\n an [Option](https://architectelevator.com/architecture/architecture-options/). In comparison, more expressive automation code and a smoother on-ramp are immediate\n benefits.\n\n## What's Next?\n\nI firmly believe that we are just starting to realize the true potential of cloud\n automation. Modern cloud automation isn't just about reducing toil. It also isn't\n about converting CLI scripts into something slightly more elegant. Instead, it can\n help us blur the line between application and automation code. You surely could have\n implemented a Content Filter in application code. However, you can also map it to\n a platform service, without leaving the comfort of your programming language and without\n having to switch to another technical domain (that of platform services). That, in\n my opinion, is huge. Watch this space!\n\n### Related Posts in This Series\n\n- **Part 1** : [Loan Broker Implementation with AWS Step Functions](/ramblings/loanbroker_stepfunctions.html)\n- **Part 2** : [Recipient List](/ramblings/loanbroker_stepfunctions_recipient_list.html)\n- **Part 3** : [Publish-Subscribe with SNS](/ramblings/loanbroker_stepfunctions_pubsub.html)\n- **Part 4** : [Automation](/ramblings/loanbroker_automation.html)\n- **Part 5** : [Integration Patterns with CDK](/ramblings/loanbroker_cdk.html)\n\n*Share:*\n\n*Follow:* [Follow @ghohpe](https://twitter.com/ghohpe) [SUBSCRIBE TO FEED](../ramblings.rss)\n\n*More On:* [INTEGRATION](/ramblings_integration.html) [CLOUD](/ramblings_cloud.html) [ALL RAMBLINGS](../ramblings.html)\n\nGregor is a cloud architect and author. He is a frequent speaker on asynchronous messaging,\n IT strategy, and cloud.", "znaku_textu": 24668, "slov": 3197, "odkazu": 82, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 15:35:28", "sha256": "fb26864db70945f6de7fdd4565858e71002691682df6ff886f2df21b9b8dfe38", "hloubka": 4, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://architectelevator.com/blog", "https://www.pulumi.com/", "https://aws.amazon.com/cdk", "https://github.com/hashicorp/terraform-cdk", "https://docs.aws.amazon.com/cdk/api/v2//docs/aws-cdk-lib.aws_events_targets-readme.html", "https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_events.EventBus.html", "https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_lambda.Function.html", "https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_events_targets.LambdaFunction.html", "https://docs.aws.amazon.com/cdk/v2/guide/constructs.html", "https://docs.aws.amazon.com/cdk/api/v2//docs/aws-cdk-lib.aws_ec2.Vpc.html", "https://bobbyhadz.com/blog/cdk-constructs-tutorial", "https://docs.aws.amazon.com/solutions/latest/constructs/aws-apigateway-lambda.html", "https://martinfowler.com/bliki/CircuitBreaker.html", "https://github.com/cdk-patterns/serverless/tree/main/the-eventbridge-circuit-breaker", "https://github.com/nideveloper", "https://aws.amazon.com/timestream/features/", "https://github.com/cdk-patterns/serverless/blob/main/the-eventbridge-circuit-breaker/python/the_eventbridge_circuit_breaker/the_eventbridge_circuit_breaker_stack.py", "https://github.com/aws-samples/aws-cdk-loan-broker/blob/main/cdk/LoanBroker-PubSub-stack.ts", "https://docs.aws.amazon.com/eventbridge/latest/userguide/eb-event-patterns.html", "https://aws.amazon.com/eventbridge/", "https://docs.aws.amazon.com/cdk/api/v2//docs/aws-cdk-lib.aws_events.EventPattern.html", "https://architectelevator.com/architecture/architecture-options/", "https://twitter.com/share", "https://twitter.com/ghohpe", "https://leanpub.com/37things"]} {"url": "http://www.enterpriseintegrationpatterns.com/ramblings/loanbroker_gcp_workflows.html", "titulek": "Serverless Loan Broker @ GCP - Enterprise Integration Patterns", "h1": "Serverless Loan Broker @ GCP", "popis": "Do serverless solutions lock you in? Let's find out by porting / rebuilding the Serverless Loan Broker on top of Google's Cloud Platform (GCP)", "klicova_slova": "", "kanonicka": "", "jazyk": "en_US", "robots_meta": "", "og": {"og:type": "article", "og:locale": "en_US", "og:site_name": "Enterprise Integration Patterns", "og:title": "Serverless Loan Broker @ GCP", "og:description": "Do serverless solutions lock you in? Let's find out by porting / rebuilding the Serverless Loan Broker on top of Google's Cloud Platform (GCP)", "og:url": "https://www.enterpriseintegrationpatterns.com/ramblings/loanbroker_gcp_workflows.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/loanbroker_serverless.png"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Serverless Loan Broker @ GCP"}, {"uroven": 2, "text": "Interchangeability is an -ility"}, {"uroven": 2, "text": "The Proof is in the Pudding: Porting Loan Broker to GCP"}, {"uroven": 2, "text": "The Starting Point: A Cloud-Native Serverless Application"}, {"uroven": 2, "text": "Deploying Credit Bureau and Bank Functions"}, {"uroven": 3, "text": "Credit Bureau (HTTP Trigger)"}, {"uroven": 3, "text": "Banks (PubSub Trigger)"}, {"uroven": 2, "text": "Quick Recap"}, {"uroven": 2, "text": "Basic Orchestration, CGP-style"}, {"uroven": 3, "text": "Calling the Credit Bureau"}, {"uroven": 3, "text": "Sending Quote Requests"}, {"uroven": 2, "text": "Workflow Recap"}, {"uroven": 2, "text": "Aggregator"}, {"uroven": 3, "text": "Collating Quotes"}, {"uroven": 3, "text": "Handling Contention"}, {"uroven": 3, "text": "The Message Filter"}, {"uroven": 2, "text": "Async Workflow Completion"}, {"uroven": 3, "text": "Waiting for Callback"}, {"uroven": 3, "text": "Invoking the Callback"}, {"uroven": 2, "text": "End-to-end Test"}, {"uroven": 2, "text": "Evaluating the Solution"}, {"uroven": 2, "text": "Patterns, Serverless, and Cloud Platforms"}, {"uroven": 3, "text": "Pattern-based design"}, {"uroven": 3, "text": "Platform differences: tools, quirks, features, docs"}, {"uroven": 3, "text": "Service Mapping"}, {"uroven": 3, "text": "Performance and stability"}, {"uroven": 3, "text": "Lock-in and portability"}], "markdown": "Gregor's Ramblings\n\n---\n\n# Serverless Loan Broker @ GCP\n\nMay 20, 2022\n\nFind my posts on IT strategy, enterprise architecture, and digital transformation\n at [ArchitectElevator.com](https://architectelevator.com/blog).\n\nWhile implementing the [EIP Loan Broker Example](/patterns/messaging/ComposedMessagingExample.html) on AWS, we realized that integration patterns are a [useful design tool for serverless applications](/ramblings/loanbroker_stepfunctions_pubsub.html) and can help us find [meaningful abstractions for automation code](/ramblings/loanbroker_cdk.html#cdkpatterns). One argument that is routinely held against building serverless solutions, which\n I consider the canonical way of building cloud-native applications, is that they lock\n you into one vendor, meaning it's difficult to move them from one cloud platform to\n the next. Architects shun slogans and prefer to dig deeper, so let's do that by taking\n a well-designed serverless application and porting it to another cloud platform.\n\n## Interchangeability is an -ility\n\nInterchangeability has long been a critical consideration of good software design:\n we choose abstractions so we can replace the implementations without the changes trickling\n through the rest of our system. So it'd seem natural to also want to maintain this\n ability when we aren't speaking of individual components but about a platform that\n we operate on. The counterpoint to this argument is that portability is a future concern\n whereas building a successful product is an immediate concern—without the latter you\n won't need the former.\n\nAs architects we look for balance in our designs, and we learned that the extrema\n of a spectrum are rarely the optima. That's why I warned a while ago to [not get locked up into avoiding lock-in](https://martinfowler.com/articles/oss-lockin.html) and to [develop a holistic view on switching costs](https://architectelevator.com/cloud/multi-cloud-decision-model/#switching-costs-vs-option-cost). And although I am a big fan of modern cloud architectures, I am critical of attempts\n to redefine \"cloud native\" to mean avoiding native cloud platform features. It's also\n outright silly naming as it contradicts what we mean when we have been saying \"native\n app\" for decades (see [TechTarget](https://www.techtarget.com/searchsoftwarequality/definition/native-application-native-app#) ):\n\n> A native application is a software program that is developed for use on a particular\n> platform or device.\n\n## The Proof is in the Pudding: Porting Loan Broker to GCP\n\nArchitects improve their decisions with models, but also regularly [dive into the engine room](https://architectelevator.com/architecture/engine-room/) to validate their assumptions. So, when debating the immediate merits of serverless\n architectures against a potential increase in future switching cost, it behooves us\n to inject some real-life data points into the discussion. The [AWS serverless Loan Broker](/ramblings/loanbroker_stepfunctions.html), which was built as a prototypical serverless application and has sufficient run-time\n complexity, makes a great data point. Let's port it to GCP!\n\nJust like the prior posts, my write-up will be part experience journal, part architectural\n pondering. As an architect, it's less about the code I write but more about what insights\n I bring back with me from the engine room:\n\n> My goal isn't to develop a hardened production application but rather to reflect on\n> the product architecture, available services, and design trade-offs.\n\nI consider myself a good test subject because I have a clear idea of what I want to\n build, understand the technical domain (asynchronous, distributed apps) very well,\n but have near-zero expertise in the specifics of the platform, aside from having [toyed with PubSub and Cloud Functions](/ramblings/google_cloud_functions.html) five years ago:\n\n> I understand the technical domain very well but am likely to make the same silly mistakes\n> as other folks who are new to the platform.\n\nAs before, i will try to avoid installing any software locally by working in Cloud\n Shell and the console as much as possible. I am sure, it'll be possible to build the\n Loan Broker on GCP, so this isn't a test of the platform's capabilities as much as\n the platforms approachability:\n\n> My metric for the perceived cognitive load is the number of browser tabs that I need\n> to open to accomplish a specific task.\n\nAs before all source code is available in the [EIP GitHub repo](https://github.com/spac3lord/eip). Keep in mind that this code is for educational purposed only and is not intended\n for production use.\n\n## The Starting Point: A Cloud-Native Serverless Application\n\nLet's recap our starting point: a serverless cloud application that maximizes the\n use of managed services and follows serverless best practices of loosely coupled components,\n externalized state, and event-flow. Portability was a secondary concern when this\n app was built.\n\nThe Loan Broker implementation consists of the following key components, following\n a fine-grained, asynchronous design philosophy:\n\n1. The *Loan Broker* orchestrates the interaction between a consumer, the credit bureau, and mortgage\n banks.\n2. The broker first [enriches](/patterns/messaging/DataEnricher.html) requests for loan quotes with the customer's credit score retrieved from the *Credit Bureau* , before sending them to multiple *Banks* via a [Publish-Subscribe Channel](/patterns/messaging/PublishSubscribeChannel.html) .\n3. The *Banks* reply with a loan offer if they are willing to service the loan. A [Message Filter](/messaging/Filter.html) eliminates messages that don't contain quotes.\n4. All valid response messages containing a quote are sent to a common [Message Channel](/patterns/messaging/MessageChannel.html) .\n5. An [Aggregator](/patterns/messaging/Aggregator.html) collects the responses from the channel and signals the Loan Broker when sufficient\n responses, as defined by the Aggregator's *completeness condition* have been received.\n6. The *Loan Broker* returns the result(s) to the *Customer* .\n\nLet's quickly recap several key design decisions:\n\n- The number of *Banks* isn't known to the *Loan Broker* and should be variable.\n- The interaction with the *Credit Bureau* is synchronous whereas the *Banks* work asynchronously.\n- The *Aggregator* , although it is a stateful component, is implemented outside the orchestration because\n the orchestrator doesn't support a [Correlation Identifier](/patterns/messaging/CorrelationIdentifier.html) that routes incoming quotes to a matching workflow instance (most workflow engines\n would be able to do that).\n\n## Deploying Credit Bureau and Bank Functions\n\nArmed with the source code of the AWS implementation, it *shouldn't* be too difficult to deploy the Lambda functions, which are now called Cloud Functions.\n A major [overhaul of Google Cloud Functions is underway](https://cloud.google.com/functions/docs/2nd-gen/overview), which builds on top of Cloud Run. However those capabilities are still in preview\n and not available in Southeast Asia regions, close to where I am writing this. For\n our Loan Broker, 1st gen Cloud Functions should therefore easily suffice.\n\n### Credit Bureau (HTTP Trigger)\n\nWe can make relatively minor adjustments to the Credit Bureau source in the excellent\n GCP Cloud Shell editor:\n\n```\nconst functions = require('@google-cloud/functions-framework');\n\nfunction getRandomInt(min, max) {\n return min + Math.floor(Math.random() * (max-min));\n}\n\n// Expects a SSN to return a random credit score. Passes back RequestId.\nfunctions.http('CreditBureau', (req, res) => {\n const min_score = 300\n const max_score = 900\n\n var ssn_regex = new RegExp(\"^\\\\d{3}-\\\\d{2}-\\\\d{4}$\");\n if (ssn_regex.test(req.query.SSN)) {\n res.status(200).send(JSON.stringify(\n {\n request_id: req.query.RequestId,\n body: {\n SSN: req.query.SSN,\n score: getRandomInt(min_score, max_score),\n history: getRandomInt(1,30)\n }\n }\n ));\n } else {\n res.status(400).send(JSON.stringify(\n {\n request_id: req.query.RequestId,\n body: {\n SSN: req.query.SSN\n }\n }\n ));\n }\n};\n```\n\nOur Credit Bureau works synchronously, which in GCP parlance translates into an HTTP\n function. That's why the function code accesses the incoming data via HTTP `req` and `res` parameters. This change caused the majority of code changes.\n\nStarting out with basic automation (there's no CDK equivalent for GCP to my knowledge—most\n folks I know use Terraform), we deploy the Loan Broker function from the Cloud Shell\n Command Line (CLI):\n\n```\n$ gcloud functions deploy CreditBureau --region=asia-southeast1 \\\n --source=CreditBureau --runtime=nodejs14 --entry-point=creditBureau \\\n --trigger-http --allow-unauthenticated\n```\n\nAlthough the parameters appear intuitive enough, my initial attempt is punished with\n an elaborate but not very insightful error message:\n\n```\nERROR: (gcloud.functions.deploy) OperationError: code=3, message=Function failed on loading user code. This is likely due to a bug in the user code.\nError message: Error: please examine your function logs to see the error cause: https://cloud.google.com/functions/docs/monitoring/logging#viewing_logs.\nAdditional troubleshooting documentation can be found at https://cloud.google.com/functions/docs/troubleshooting#logging.\nPlease visit https://cloud.google.com/functions/docs/troubleshooting for in-depth troubleshooting documentation.\n```\n\nThat makes for two additional tabs open and public embarrassment for omitting the\n `package.json` file to declare the dependency on `google-cloud/functions-framework`. Correcting that mistake is rewarded with a deployed credit bureau (shortened for\n readability):\n\n```\n$ gcloud functions describe CreditBureau --region=asia-southeast1\navailableMemoryMb: 256\nentryPoint: creditBureau\nhttpsTrigger:\n securityLevel: SECURE_OPTIONAL\n url: https://asia-southeast1-eaipubsub.cloudfunctions.net/CreditBureau\nname: projects/eaipubsub/locations/asia-southeast1/functions/CreditBureau\nruntime: nodejs14\nstatus: ACTIVE\ntimeout: 60s\nversionId: '3'\n```\n\nInvoking the credit bureau is equally easy from Cloud Shell via `curl` (don't forget the double quotes as your shell won't like the ampersand in the query\n string otherwise):\n\n```\n$ curl \"https://asia-southeast1-eaipubsub.cloudfunctions.net/CreditBureau?RequestId=ABCDEFG&SSN=123-45-6789\"\n{\"request_id\":\"ABCDEFG\",\"body\":{\"SSN\":\"123-45-6789\",\"score\":470,\"history\":4}}\n```\n\nWe note that in GCP, the application trigger is set right on deployment. That's convenient,\n but it also propagates code changes into the function should you decide to change\n the trigger. We learn that:\n\n> Separating function invocation and data passing logic, such as request data parsing,\n> return codes, etc., from application logics is good practice because it simplifies\n> both changing triggers and porting functions to another platform.\n\n### Banks (PubSub Trigger)\n\nUnlike the Credit Bureau, our Banks will receive requests for mortgage quotes via\n GCP Pub/Sub, which conveniently supports both Point-to-Point channels and Publish-Subscribe\n Channels. Interestingly, there's no \"integration\" service category for GCP, so we\n find Pub/Sub under \"Data Analytics\":\n\nBesides small differences in the way data is based (a base64-encoded string), the\n code can remain largely unchanged. GCP Cloud Functions do not have destinations, so\n the function has to send the response message explicitly. We therefore need to pass\n the topic name as an environment variable. Also, the message accepts a `Buffer` as opposed to a regular string, so don't forget that conversion. To keep our function\n code clean, we extract that logic into a wrapper method. A base class might be an\n even more elegant solution.\n\n```\nconst {PubSub} = require('@google-cloud/pubsub');\nconst pubSub = new PubSub();\n\nfunction calcRate(amount, term, score, history) {\n if (amount <= process.env.MAX_LOAN_AMOUNT && score >= process.env.MIN_CREDIT_SCORE) {\n return parseFloat(process.env.BASE_RATE) + Math.random() * ((1000 - score) / 100.0);\n }\n}\n\nexports.bank = async (message, context) => {\n const request = message.data ? Buffer.from(message.data, 'base64').toString() : '{}';\n const quoteRequest = JSON.parse(request);\n const requestId = message.attributes[\"RequestId\"];\n const bankId = process.env.BANK_ID;\n const responseTopic = process.env.QUOTE_RESP_TOPIC;\n\n response = bankQuote(quoteRequest, bankId);\n\n const dataBuffer = Buffer.from(JSON.stringify(response));\n const customAttributes = { id: requestId };\n const messageId = await pubSub.topic(responseTopic).publish(dataBuffer, customAttributes);\n}\n\nbankQuote = (quoteRequest, bankId) => {\n const rate = calcRate(quoteRequest.Amount, quoteRequest.Term, quoteRequest.Credit.Score, quoteRequest.Credit.History);\n\n if (rate) {\n console.log('%s offering Loan at %f', bankId, rate);\n return { \"rate\": rate, \"bankId\": bankId };\n } else {\n console.log('%s rejecting Loan', bankId);\n return {};\n }\n}\n```\n\nSubscribing a Cloud Function to a PubSub topic is surprisingly easy and can be done\n straight from the deployment command. Under the covers, it creates a `subscription`, a key construct of PubSub that determines whether you're running in [Publish-Subscribe](/patterns/messaging/PublishSubscribeChannel.html) or [Point-to-Point](/patterns/messaging/PointToPointChannel.html) mode with [Competing Consumers](/patterns/messaging/CompetingConsumers.html). See my [post on Google Cloud Pub/Sub from 2015](/ramblings/82_googlepubsub.html) for more details.\n\n```\n$ gcloud pubsub topics create QuoteRequest\n$ gcloud pubsub topics create QuoteResponse\n$ gcloud functions deploy BankPawnShop --entry-point=bank --region=asia-southeast1 \\\n --source=Bank --runtime=nodejs14 --trigger-topic QuoteRequest \\\n --set-env-vars MAX_LOAN_AMOUNT=500000,MIN_CREDIT_SCORE=300,BASE_RATE=3,BANK_ID=PawnShop,QUOTE_RESP_TOPIC=QuoteResponse\n```\n\nIt's time for a simple test (after we deploy two more banks). We monitor the responses\n on the `QuoteResponse` topic via an additional subscription, which is side-effect free in the Publish-Subscribe\n model. To test, we send a message to the `QuoteRequest` channel and observe the bank's response on the `QuoteResponse` topic:\n\n```\n$ gcloud pubsub subscriptions create responses --topic=QuoteResponse\n\n$ gcloud pubsub topics publish QuoteRequest \\\n --message='{ \"Amount\": 300000, \"Term\": 30, \"Credit\": { \"Score\":700, \"History\": 15 } }' \\\n --attribute=RequestId=ABCDEFG\n\n$ gcloud pubsub subscriptions pull responses --auto-ack --limit=5\nDATA: {\"rate\":4.655600086643112,\"bankId\":\"BankPremium\"}\nMESSAGE_ID: 4856059258002262\nATTRIBUTES: id=ABCDEFG\n\nDATA: {\"rate\":5.8170958335644,\"bankId\":\"BankUniversal\"}\nMESSAGE_ID: 4856047506661721\nATTRIBUTES: id=ABCDEFG\n\nDATA: {\"rate\":7.206690977561289,\"bankId\":\"BankPawnshop\"}\nMESSAGE_ID: 4856047534743250\nATTRIBUTES: id=ABCDEFG\n```\n\nYup, this works. Time for a quick pause and some initial observations.\n\n## Quick Recap\n\nOverall, re-implementing the serverless functions on GCP is relatively pain-free.\n Most of the design constructs translate 1:1 into the new platform. Of course, there\n are also some surprises - positive and negative, which may partly be due to my unfamiliarity\n with the new platform. Again, I consider that a plus because when I stumble, it's\n likely because something in the platform isn't as intuitive as it could be.\n\n- **Function code** : The Bank function code got longer due to the lack of [Lambda Destinations](https://aws.amazon.com/blogs/compute/introducing-aws-lambda-destinations/) . Sending messages explicitly also requires the PubSub client library, increasing\n the code size.\n- **Building and deploying** : Deploying functions takes significantly longer, close to one minute for my trivial\n functions. There might be a faster way of doing this (local testing, perhaps), but\n for the moment fixing cycles (I am now to the platform, after all) are very slow.\n In fact, I am writing up these points as I am waiting for my banks to re-deploy after\n a code change.\n- **Composition** : Linking functions to PubSub is surprisingly easy. No need to deal with `EventSourceMapping` etc. Also, a single service implements both [Publish-Subscribe](/patterns/messaging/PublishSubscribeChannel.html) and [Point-to-Point](/patterns/messaging/PointToPointChannel.html) semantics.\n- **IAM** : Amazingly, I have not had to deal with IAM at all. That might be due to my ignorance\n and just clicking 'accept' in the console, but for demo apps like this one it's a\n major relief.\n- **Code Editing** : The Cloud Shell source code editor is quite handy, including syntax highlighting,\n refactorings, quick fixes, git integration, and more. For small projects like mine\n it's entirely sufficient.\n- **Cognitive load** : starting with a new platform will always carry a moderate to high load, as shown\n via my \"tab-open\" metric below (I count 26 and that's after closing many along the\n way). I need to get used to new CLI syntax, PubSub client library APIs, logging, message\n formats, etc\n\nIn summary, I am inclined to claim:\n\n> A clean and evocative design that highlights design decision makes migrating a serverless\n> application to a new platform significantly easier.\n\nLet's try to back this up as we proceed to implement the orchestration and the [Aggregator](/patterns/messaging/Aggregator.html).\n\n## Basic Orchestration, CGP-style\n\nOrchestrations are implemented using GCP's [Workflows](https://cloud.google.com/blog/products/application-development/get-to-know-google-cloud-workflows). Just like AWS Step Functions, GCP Workflows follow a state machine model that allows\n for sequences, loops, branching, and error states. GCP Workflows are also coded in\n a custom language that uses YAML or JSON syntax - pick your poison. I wasn't able\n to find a formal language specification analog to the [Amazon States Language](https://states-language.net/), but there's a useful [Syntax Overview](https://cloud.google.com/workflows/docs/reference/syntax).\n\nI couldn't help but detect some irony in the fact that AWS *Step* Functions calls its elements *States* whereas Google Workflows calls them *Steps*.\n\nGCP Workflows don't have a visual editor, so we're finding ourselves counting indents\n to get our YAML file to parse. Syntax checking in the console editor and a quasi-real\n time (read only) visualization provide some support as we type along.\n\n### Calling the Credit Bureau\n\nThe first step in our workflow [Enriches](/patterns/messaging/DataEnricher.html) the incoming request with the requestor's credit worthiness. Most interactions between\n the workflow and the outside world are handled via a `[Call](https://cloud.google.com/workflows/docs/reference/syntax/calls)` step, which can utilize a variety of [Connectors](https://cloud.google.com/workflows/docs/reference/googleapis).\n\nJust as with Step Functions, we can pass arguments into the workflow and prepare the\n request data format. We then invoke the Credit Bureau with a synchronous HTTP call.\n In GCP Workflows YAML, this looks as follows (as always, the source code is available\n in the [public EIP repo](https://github.com/spac3lord/eip/tree/master/LoanBroker/GcpWorkflows)):\n\n```\nmain:\n params: [input]\n steps:\n - init:\n assign:\n - project: ${sys.get_env(\"GOOGLE_CLOUD_PROJECT_ID\")}\n - location: \"asia-southeast1\"\n - topic: \"QuoteRequest\"\n - get_function:\n call: googleapis.cloudfunctions.v1.projects.locations.functions.get\n args:\n name: ${\"projects/\" + project + \"/locations/\" + location + \"/functions/CreditBureau\"}\n result: creditBureau\n - getCreditScore:\n call: http.get\n args:\n url: ${creditBureau.httpsTrigger.url}\n query:\n RequestId: ${sys.get_env(\"GOOGLE_CLOUD_WORKFLOW_EXECUTION_ID\")}\n SSN: ${input.SSN}\n result: creditBureauResponse\n```\n\nUnlike Step Functions, Workflows assumes an implicit sequence of the steps, so that\n a `next` element isn't required for simple sequential workflows. Just as before, we can access\n a select set of [predefined variables](https://cloud.google.com/workflows/docs/reference/stdlib/sys/get_env), including project names and workflow execution ID, with the latter being a convenient\n source for a unique [Correlation Identifier](/patterns/messaging/CorrelationIdentifier.html). Custom arguments can be passed in from the command line or the workflow trigger\n and accessed via the variable specified as `params`. All this feels quite intuitive.\n\nInvoking a cloud function via HTTP requires the function URL. Following one of the\n examples, the flow fetches the URL via an API call. You could also retrieve it from\n the command line via `functions describe` and pass it as a parameter to the workflow. If specifying the function name in the\n workflow smells like tight coupling, I'd agree with you. We would want to separate\n composition from logic.\n\n### Sending Quote Requests\n\nArmed with a richer data set, our workflow is ready to send a request for quote to\n any participating banks via a PubSub topic:\n\n```\n - setQuoteRequest:\n assign:\n - creditScore:\n ${json.decode(creditBureauResponse.body).body}\n - quoteRequest:\n SSN: ${input.SSN}\n Amount: ${input.Amount}\n Term: ${input.Term}\n Credit:\n Score: ${creditScore.score}\n History: ${creditScore.history}\n - base64Msg: ${base64.encode(json.encode(quoteRequest))}\n - sendQuoteRequest:\n call: googleapis.pubsub.v1.projects.topics.publish\n args:\n topic: ${\"projects/\" + project + \"/topics/\" + topic}\n body:\n messages:\n - data: ${base64Msg}\n attributes:\n RequestId: ${sys.get_env(\"GOOGLE_CLOUD_WORKFLOW_EXECUTION_ID\")}\n```\n\nAs we [experienced before](/ramblings/loanbroker_automation.html#polyglot), some of the lines implied more hurdles than one might guess from the result. For\n example, understanding what data is passed as a string vs. JSON vs. stringified JSON\n vs. a base64-encoded string took a good bit of finessing. Likewise, expressions like\n `${json.decode(creditBureauResponse.body).body}` didn't come easily (at least to me), as the first `body` derives from the `http.get` return format and contains a stringified JSON. The second `body` is the field name chosen by our Credit Bureau implementation, which is contained\n in the JSON, which is stringified in the first `body`. Of course, in hindsight that all seems obvious, but without types nor auto-complete,\n and somewhat tedious logging, it took longer to get working than I'd like to admit.\n To make things ever more fun, PubSub messages ought to be base64 encoded, unlike the\n attributes, which, however, have to be in form of a `map`, not a `list`. Misplacing the `-` cost me nerves and the better part of one hour.\n\nI could not have managed to get this to work without inserting additional logging\n steps into the workflow. It appears that cloud workflow tools tend to focus on the\n control flow over data handling, even though the latter is at least as important.\n The basic flow so far already looks a bit longer than intended, as shown on the right.\n\n## Workflow Recap\n\nLet's take a pause for a quick recap and first impressions.\n\n- Switching from AWS Step Functions to GCP Workflows made me realize just how useful\n a visual editor is, at least to get an initial flow going (even if that's against\n my \"no changes in GUI\" mantra). GCP's text editor is nice, but it's a big step back\n to not be able to position and add steps in the visual editor. It seems like a few\n folks started to [build a visual editor](https://medium.com/google-cloud/gcp-workflows-visual-editor-9876fb1c823f) , but you'd really want it seamlessly integrated into the console.\n- I ended up using more states than expected - this very simple flow (one sync call\n and publishing a message) ended up using 8 states, which makes visualization challenging.\n The reasons are twofold: first, I ended up adding logging states as I had a hard time\n debugging. Second, `call` steps do not include result data transformations as they do in Step Functions, leading\n to the addition of two `assign` steps. It might be possible to squeeze the creation of the `quoteRequest` message into the `call` step, but I am quite happy to have separated creation of the JSON structure, stringification,\n and base64 encoding. Two additional steps are `init` and `return` , which currently don't do much, but that's how we got from two essential states to\n eight in total.\n- When hand-coding workflows, having the default order of steps implied by the order\n of the `step` elements in the YAML document is handy. Step Functions wants you to provide an explicit `next` element with each step (task), which makes inserting logging or assignment steps\n slightly more tedious (although the Workflow Studio takes care of that mostly).\n- GCP Workflows has connectors to most any Cloud API through connectors, a feature that\n Step Functions [just recently added](https://aws.amazon.com/about-aws/whats-new/2021/09/aws-step-functions-200-aws-sdk-integration/) . On the flip side, the integration between AWS Step Functions and core services like\n SQS, SNS, EventBridge, DynamoDB, etc. felt much smoother in the visual editor as each\n service has a dedicated menu for relevant options.\n- As a newbie, I was in dire need of documentation, which occasionally felt like a run-around.\n Sending a PubSub message defers to the [standard PubSub docs](https://cloud.google.com/pubsub/docs/reference/rest/v1/PubsubMessage) , which state that the `attributes` field takes a map of values. Translating that into the Workflows YAML took a fair\n bit of creativity and guesswork (my deliberate lack of YAML experience might have\n exacerbated the situation).\n- I found debugging to be noticeably more difficult with GCP Workflows. I ended up filtering\n logs all over the place but still had a hard time finding what I was looking for.\n Step Functions' execution view lets you inspect the data at any state just by clicking\n on it—a feature that has been available since 2016, That is pure gold in comparison.\n- I did not need it for this flow, but it appears that Workflows is lacking a parallel\n execution construct, something that you'd expect to be a fundamental to any workflow\n engine—why would you want things to be sequential in an asynchronous world?. There's\n an [experimental step that can achieve this](https://cloud.google.com/workflows/docs/reference/stdlib/experimental.executions/map) , albeit with some limitations. It makes one wonder whether there's an inherent limitation\n in the underlying execution engine.\n\nOverall, you can tell that this service hasn't had as much time to mature the developer\n experience as its AWS counterpart (Dec 2016 vs. Jan 2021). At the same time, the concepts\n feel quite familiar to someone coming from AWS and it's likely that most orchestrations\n port over fairly well, although you'd have to recode it in the new syntax. The absence\n of a `map` construct might be the only major hurdle.\n\n## Aggregator\n\nSending quote requests is fine, but aggregating quote responses from an unknown number\n of banks is where the messaging rubber meets the cloud platform road. The AWS implementation\n used a [lambda function written in Python with DynamoDB as the backing data store](https://github.com/spac3lord/eip/blob/master/LoanBroker/AwsStepFunctions/PubSub/QuoteAggregator.py). In GCP land, that'll translate into Cloud Functions with Datastore, or rather [Firestore in Datastore mode](https://cloud.google.com/datastore/docs). When it comes to naming, all cloud providers apparently have their weak spots.\n\nFirst, we'll need to create a data store. That should be easy enough, but for some\n reason, Firestore data stores are tied to App Engine, which is tied to a region, which\n you can't change. Off we go, create a new project, a new app (which we don't actually\n need) and a new `datastore` (someone grant me the serenity …):\n\n```\n$ gcloud app create --region=asia-southeast1\n$ gcloud datastore databases create --region=asia-southeast1\nSuccess! Confirmed selection of a Google Cloud Firestore in Datastore Mode database for eiploanbroker\n```\n\n### Collating Quotes\n\nGCP Datastore stores `Entities`, which equate to rows in a relational database. You can fetch them with a `key` and add new ones by instantiating one with a key and `put`ing it into the data store. As Datastore appears to lack an *append* operation, we must wrap reading and writing into a transaction to avoid conflicting\n operations and data loss. As before, just for fun, we write the [Aggregator](/patterns/messaging/Aggregator.html) in Python ([source code in EIP repo](https://github.com/spac3lord/eip/blob/master/LoanBroker/GcpWorkflows/Aggregator/main.py)):\n\n```\ndef store_quote(correlationId, quote):\n key = db.key(\"MortgageQuotes\", correlationId)\n with db.transaction():\n item = db.get(key)\n if not item:\n item = datastore.Entity(key)\n item['Quotes'] = []\n item['Quotes'].append({ 'bankId': quote['bankId'], 'rate': quote['rate'] })\n db.put(item)\n logging.info(item)\n return item\n```\n\nAlthough method names change, the code remains quite similar to the AWS version. Again,\n wrapping the logic in a helper method localizes such changes. We might even be able\n to avoid the `if` statement by using `get_multi`, but I didn't want to push my luck.\n\nTime to wire this together and give it a shot. We test by publishing messages to the\n `QuoteRequest` topic directly, bypassing the workflow.\n\n```\n$ gcloud functions deploy Aggregator --source=Aggregator --entry-point=handle_quote \\\n --region=asia-southeast1 --runtime=python39 --trigger-topic=QuoteResponse\n\n$ gcloud pubsub topics publish QuoteRequest \\\n --message='{ \"Amount\": 300000, \"Term\": 30, \"Credit\": { \"Score\":700, \"History\": 15 } }' \\\n --attribute=RequestId=ABDD\n```\n\nOff we go! Our Aggregator doesn't yet signal back to the workflow, so we check the\n results in the log:\n\n```\ngoogle.api_core.exceptions.Aborted: 409 Aborted due to cross-transaction contention.\nThis occurs when multiple transactions attempt to access the same data,\nrequiring Firestore to abort at least one in order to enforce serializability.\n```\n\nOops. That didn't work. So we took care to use transactions but Datastore doesn't\n seem to like conflicting transactions.\n\n### Handling Contention\n\nThe [docs](https://cloud.google.com/firestore/docs/troubleshooting) didn't help me much, aside from proposing to reduce updates on individual documents\n to one per second, which doesn't exactly sound like an infinitely scalable serverless\n data store. My initial fix is to limit the `Aggregator` cloud function to a single instance by adding a `--max-instances` option:\n\n```\n$ gcloud functions deploy Aggregator --source=Aggregator --entry-point=handle_quote \\\n --region=asia-southeast1 --runtime=python39 --trigger-topic=QuoteResponse --max-instances 1\n```\n\nThis solves the concurrency issue but appears overly restrictive as contention only\n occurs for responses on one individual loan request to the Loan Broker. A quick scan\n of the logs suggests execution times for the `Aggregator` function of about 140ms, which would process only 7 quotes per second if we limit\n to a single instance:\n\nThat isn't great and something we should fix. On the upside, we got exactly what we\n were looking for:\n\n> Despite its apparent simplicity, the EIP Loan Broker quickly reveals many nuances\n> and challenges in asynchronous, distributed applications.\n\nA better solution than throttling updates is to retry on failure. This will work well\n because the transaction failures are transient, meaning they are likely to succeed\n just a short time later. Luckily, GCP has a built-in option to retry message delivery\n on error per the `--retry` command line option on function deployment.\n\n```\n$ gcloud functions deploy Aggregator --source=Aggregator --entry-point=handle_quote \\\n --region=asia-southeast1 --runtime=python39 --trigger-topic=QuoteResponse --retry\n```\n\nAny failures stemming from transaction contention now cause the message to be re-delivered\n and the `Aggregator` function to be re-executed. This way we don't have to compromise the happy path to\n accommodate a relatively rare error condition. The [retry documentation](https://cloud.google.com/functions/docs/bestpractices/retries) advises to make retried functions [idempotent](/patterns/messaging/IdempotentReceiver.html). Strictly speaking, ours isn't as it'll append the same quote twice. However, if\n the error resulted from a data store `insert` in the first place, that won't be a problem. We could relatively easily make the\n function idempotent by replacing the `Quotes` list with a map indexed by `BankId`. The docs also warn of potentially infinite retries caused by application errors,\n which I can confirm (deleting the topic seems to get you out of it at the price of\n total data loss). You'd therefore want to catch any errors that shouldn't trigger\n a retry, ignore old messages (essentially implementing your own TTL), and use the\n `--retry` flag only after thorough testing.\n\n> Run-time considerations like contention, re-try logic, back pressure, infinite loops\n> make up a large portion of designing and building distributed, asynchronous applications.\n\n### The Message Filter\n\nOne part from the original design that we didn't yet implement is the [Message Filter](/patterns/messaging/Filter.html) that eliminates empty responses from banks that aren't interested in the loan application.\n AWS handled this nicely with EventBridge rules. GCP [EventArc](https://cloud.google.com/eventarc/docs) might be a usable option, but I'll have to check into that later. For now, I add\n a simple condition into the aggregator code:\n\n```\nif not 'bankId' in quote:\n logging.warning(\"incomplete quote received\")\n return 0\n```\n\nThis of course works, but it blurs the role of the Aggregator with that of the Message\n Filter. It's up to you if you consider that acceptable. Another feature lacking from\n our implementation is purging of aggregate data from the database. Right now, our\n entities just keep accumulating, but for this simple experiment that's alright.\n\n## Async Workflow Completion\n\nAs a last step, the Aggregator needs to signal to the workflow that an aggregate is\n complete, meaning a sufficient number of quotes have been received. Workflows supports\n [Callback endpoints](https://cloud.google.com/workflows/docs/creating-callback-endpoints), which is a perfect match for this use case. A special library call creates a unique\n callback URL, which you can pass to an external task. You can then pause the workflow\n until that URL is invoked or you reach a time-out. Similar to AWS Step Functions,\n GCP Workflows allow the caller to pass data back with the callback by performing a\n POST.\n\n### Waiting for Callback\n\nThe easiest way to pass the callback URL to the Aggregator is via the `id` message attribute that's already in place and propagated by the banks. Because the\n callback URL is unique to each workflow instance, this field can act both as a [Correlation Identifier](/patterns/messaging/CorrelationIdentifier.html) and as callback address.\n\nWe add the following steps to the workflow (see [source](https://github.com/spac3lord/eip/blob/master/LoanBroker/GcpWorkflows/LoanBrokerFlowCallback.yml)):\n\n```\n- create_callback:\n call: events.create_callback_endpoint\n args:\n http_callback_method: \"POST\"\n result: callback_details\n\n[send request message as before]\n\n- await_callback:\n try:\n call: events.await_callback\n args:\n callback: ${callback_details}\n timeout: 30.0\n result: aggregate_quotes\n except:\n as: e\n steps:\n - log_error:\n call: sys.log\n args:\n severity: \"WARNING\"\n text: ${\"Error \" + e.message}\n next: end\n- print_callback_data:\n call: sys.log\n args:\n severity: \"INFO\"\n text: ${aggregate_quotes}\n- returnOutput:\n return: ${aggregate_quotes.http_request.body}\n```\n\nThe callback result comes back as a JSON element embedded in the `http_request.body` of the request object (this might once again seem apparent after some mandatory logging\n and debugging content types and encodings).\n\n### Invoking the Callback\n\nThe following code in the Aggregator sends the required callback signal with attached\n aggregate data:\n\n```\ndef completion_callback(correlationId, aggregate):\n logging.info(\"Aggregate complete: %s\", correlationId)\n url = correlationId\n\n auth_req = google.auth.transport.requests.Request()\n creds.refresh(auth_req)\n status = requests.post(url, json=aggregate, headers={\"Authorization\": f\"Bearer {creds.token}\"})\n logging.info(\"Sent Callback: %i\", status.status_code)\n```\n\nWhile I escaped IAM so far, these callbacks do require an authentication token. Luckily,\n you can fetch one from `google.auth.transport.requests` as both the workflow and the function operate under the same service account. This\n code once again looks simple but took a good amount of digging through [the docs](https://cloud.google.com/functions/docs/samples/functions-bearer-token) and [Stack Overflow](https://stackoverflow.com/questions/53472429/how-to-get-a-gcp-bearer-token-programmatically-with-python). The python `requests` library allows us to conveniently pass a JSON object back to the workflow. Overall,\n the cognitive load of this async callback, measured in open browser tabs, was rather\n high at about 8 tabs, more than the lines of code.\n\n> The number of open browser tabs to check documentation and examples exceeded the lines\n> of code.\n\nArchitects should have a lot of appreciation for life in the engine room.\n\n## End-to-end Test\n\nLet's give the whole setup a run-through:\n\n- Trigger a new workflow instance from the command line, passing a loan application.\n- The workflow enriches the request with the credit data fetched from the Credit Bureau.\n- The workflow sets up an asynchronous callback and publishes a quote request message\n to the PubSub topic `QuoteRequest` .\n- Bank functions subscribe to this topic and reply with a `QuoteResponse` if they are willing to service the loan. Otherwise, they send an empty message.\n- The Aggregator listens to messages on `QuoteResponse` and stores them into Firestore, indexed by the correlation identifier.\n- When sufficiently many responses are received (arbitrarily set to 2 in our case),\n the Aggregator signals completion back to the workflow, using the correlation identifier\n as URL.\n- The workflow returns the list of quotes.\n\nFrom the gcloud command line, this looks somewhat less exciting, but that's likely\n a good thing (minor formatting done by the operator):\n\n```\n$ gcloud workflows deploy LoanBrokerCallback --source=LoanBrokerFlowCallback.yml \\\n --location=asia-southeast1\n\n$ gcloud workflows execute LoanBrokerCallback --location=asia-southeast1 \\\n --data='{ \"Amount\": 300000, \"SSN\": \"123-45-1113\", \"Term\": 10 }'\nCreated [284be31c-f5dd-4978-9538-123456789]\n\n$ gcloud workflows executions describe 284be31c-f5dd-4978-9538-123456789 \\\n --workflow=LoanBrokerCallback --location=asia-southeast1\nargument: '{\"Amount\":300000,\"SSN\":\"123-45-2211\",\"Term\":10}'\nendTime: '2022-06-12T11:38:00.248691113Z'\nstartTime: '2022-06-12T11:37:50.357602769Z'\nstate: SUCCEEDED\nresult: '{\"Quotes\":[\n {\"bankId\":\"BankPawnshop\",\"rate\":6.415049525230497},\n {\"bankId\":\"BankPremium\",\"rate\":4.537483020303889}\n ]}'\n```\n\nDue to our Aggregator's simplistic *completion condition*, the Aggregator function may invoke the workflow callback more than once, e.g. when\n all three banks respond with a quote. That actually works OK as the second invocation\n of the callback URL simply returns a 404 HTTP code - these URLs are for one-time use\n only. This also means that we should invoke the callback near the end of our function.\n Otherwise function errors occurring after the callback would trigger a message delivery\n retry, which would not be able to invoke the callback again.\n\n## Evaluating the Solution\n\nThis solution works, but it's by no means production ready. For example, the following\n aspects would still need to be addressed:\n\n- The Aggregator will need much better error handling to avoid unintended (and potentially\n infinite) retries.\n- We likely want a better completion condition. For example, if a third quote comes\n in just milliseconds after the second, it is currently ignored. In real-life, we'd\n likely use an absolute or incremental time-out.\n- I completely ignored IAM, which is equally impressive and dangerous. I was surprised\n that I was able to get the solution to work this way, but I have no insight into the\n kind of permissions I set or the roles I created.\n- I did not build a client for the workflow, choosing instead to start and poll it from\n the command line.\n- The workflow itself includes no error handling aside from a simple time-out.\n\nAs our professor would say, we leave those enhancements as an exercise to the reader.\n\n## Patterns, Serverless, and Cloud Platforms\n\nDespite leaving several \"to do's\", the EIP Loan Broker application mapped quite well\n onto GCP's serverless platform. It also revealed several important nuances for serverless\n application development:\n\n### Pattern-based design\n\nExpressing our solution with the Integration Patterns vocabulary provided a significant\n head start for the implementation because they highlight the solution structure and\n critical design decisions in platform-independent terms. In each platform, those design\n decisions map into different implementation details, sometimes spanning multiple services.\n For example, on GCP the details of Datastore transactions for the Aggregator implementation\n influence PubSub subscription settings (`--retry`). The design patterns pull these aspects together and allow us to build a correct\n and reusable implementation.\n\n### Platform differences: tools, quirks, features, docs\n\nBoth platforms support the integration patterns well and the resulting solution architecture\n is comparable. However, I noticed significant differences in developer tooling. For\n example, although I occasionally deride [Doodleware](/ramblings/02_doodleware.html), AWS Workflow Studio is a godsend for designing an initial workflow structure. Also,\n data manipulation feels more like a first class concern on AWS Step Functions, although\n each workflow instance is limited to a single JSON document.\n\nOn the flip side, I really enjoyed the GCP Cloud Shell editor: you almost forget that\n you are working in a browser. Also, switching between editor and shell in a single\n tab feels natural. Git integration is trivial.\n\nAWS clearly has had more time to mature the serverless ecosystem, not only with tooling,\n but also with concepts like Destinations, which nicely separate composition from application\n logic. Also, EventBridge is a very good match for Message Transformation and Message Routing patterns. [GCP EventArc](https://cloud.google.com/eventarc/docs/overview) is still in preview, so we'll need to see how close it can come. For now it seems\n that its event filters are less expressive than EventBridge Rules. GCP Workflows are\n lacking parallel execution (an experimental option is available). And GCP lacks a\n built-in automation tool like CloudFormation or AWS CDK. None of these are show stoppers,\n but you don't want to end up playing [Takeshi's Castle](https://architectelevator.com/strategy/takeshi-castle/).\n\nBoth platforms have their quirks, things that appear obvious once you know them, but\n until then seem insurmountable. AWS IAM tends to nib you in the rear whenever it can\n and also has a curious structure of IAM roles and resource-based policies (as I said\n they make total sense once you get your head around it). GCP Datastore requiring you\n to setup an AppEngine project and being bound to that projects region seems equally\n arbitrary. The light at the end of the tunnel is that you're likely to face those\n learning cliffs only once.\n\nLast, modern cloud platforms are vast and powerful, so finding all docs to be approachable,\n meaningful, precise, and easy to discover might be asking for a lot. Still, I found\n myself opening more tabs across product docs, tutorial, quick starts, and Stack Overflow\n for GCP than I had to for AWS (and my starting point was equally ignorant).\n\n### Service Mapping\n\nThe old joke that you need at least 10 AWS services on to write \"Hello World\" basically\n held true during the initial Loan Broker implementation. Mathematically speaking,\n GCP used fewer services. However, aside from Pub/Sub being a single service whereas\n it's split into SQS and SNS on AWS, the difference is largely due to the absence of\n some services that we would have liked to use. Here is the current service mapping\n for our solution:\n\n```\nFunction AWS GCP Comment\n-------- --- --- -------\nServerless Function Lambda Cloud Functions\nOrchestration Step Functions Workflows\n1:many messaging SNS PubSub\n1:1 messaging SQS PubSub\nKey Value Store DynamoDB Datastore\nLogging CloudWatch Logging\nDevelopment Cloud Shell Cloud Shell\nAutomation CloudFormation/CDK (none) 3rd party, often Terraform\nEvent Router EventBridge (EventArc) In preview, fewer filter capabilities\nAccess Management IAM (IAM) Didn't explicitly use, but should have\n```\n\nOnce you factor in 3rd party services or services in preview, the number of services\n involved is comparable. Both platforms allowed me to fully build the Loan Broker without\n any local installation, which is impressive.\n\n### Performance and stability\n\nOur test did not address how the solution behaves under heavy load and error conditions.\n This is where scaling policies, quotas, message deliver guarantees, etc. will come\n into play.\n\n### Lock-in and portability\n\nThe key question we posed at the beginning was related to \"lock-in\" or rather switching\n costs from one platform top another. A common argument building using serverless solutions,\n despite the apparent advantages, is the perceived difficulty of porting code from\n one platform to another if the need arises. I have already [discussed the value and cost of options](https://architectelevator.com/cloud/multi-cloud-decision-model/#switching-costs-vs-option-cost) and the danger of forgoing today's feature delivery velocity for a reduction in tomorrow's\n potential switching cost. For serverless solutions the lost opportunity cost appears\n particularly high.\n\nBuilding the Loan Broker on GCP wasn't a mechanical port. However, having expressed\n the solution in form of Integration Patterns gave me a significant head start because\n the key design decisions were expressed independent of the platform. If I had structured\n the original solution code with cleaner abstractions between pattern and platform,\n I likely would have been able to re-use most actual application logic without minimal\n changes. Based on the data point gathered from the Loan Broker, I venture to state:\n\n> A clean design based on integration patterns improves code structure such that moving\n> the solution to a different platform is much simplified.\n\nPattern-based design therefore helps you build a better solution now, and also makes\n it easier to move it, if you should ever have the need. This insight is profound enough\n that it'll deserve its own post. Stay tuned.\n\n*Share:*\n\n*Follow:* [Follow @ghohpe](https://twitter.com/ghohpe) [SUBSCRIBE TO FEED](../ramblings.rss)\n\n*More On:* [INTEGRATION](/ramblings_integration.html) [CLOUD](/ramblings_cloud.html) [ALL RAMBLINGS](../ramblings.html)\n\nGregor is a cloud architect and author. He is a frequent speaker on asynchronous messaging,\n IT strategy, and cloud.", "znaku_textu": 46582, "slov": 6493, "odkazu": 91, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 15:33:55", "sha256": "ee990c934ddde99a0ddd7978907ec9ee86c6205d203867f2d58015a640e07114", "hloubka": 3, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://architectelevator.com/blog", "https://martinfowler.com/articles/oss-lockin.html", "https://architectelevator.com/cloud/multi-cloud-decision-model/", "https://www.techtarget.com/searchsoftwarequality/definition/native-application-native-app", "https://architectelevator.com/architecture/engine-room/", "https://github.com/spac3lord/eip", "https://cloud.google.com/functions/docs/2nd-gen/overview", "https://aws.amazon.com/blogs/compute/introducing-aws-lambda-destinations/", "https://cloud.google.com/blog/products/application-development/get-to-know-google-cloud-workflows", "https://states-language.net/", "https://cloud.google.com/workflows/docs/reference/syntax", "https://cloud.google.com/workflows/docs/reference/syntax/calls", "https://cloud.google.com/workflows/docs/reference/googleapis", "https://github.com/spac3lord/eip/tree/master/LoanBroker/GcpWorkflows", "https://cloud.google.com/workflows/docs/reference/stdlib/sys/get_env", "https://medium.com/google-cloud/gcp-workflows-visual-editor-9876fb1c823f", "https://aws.amazon.com/about-aws/whats-new/2021/09/aws-step-functions-200-aws-sdk-integration/", "https://cloud.google.com/pubsub/docs/reference/rest/v1/PubsubMessage", "https://cloud.google.com/workflows/docs/reference/stdlib/experimental.executions/map", "https://github.com/spac3lord/eip/blob/master/LoanBroker/AwsStepFunctions/PubSub/QuoteAggregator.py", "https://cloud.google.com/datastore/docs", "https://github.com/spac3lord/eip/blob/master/LoanBroker/GcpWorkflows/Aggregator/main.py", "https://cloud.google.com/firestore/docs/troubleshooting", "https://cloud.google.com/functions/docs/bestpractices/retries", "https://cloud.google.com/eventarc/docs", "https://cloud.google.com/workflows/docs/creating-callback-endpoints", "https://github.com/spac3lord/eip/blob/master/LoanBroker/GcpWorkflows/LoanBrokerFlowCallback.yml", "https://cloud.google.com/functions/docs/samples/functions-bearer-token", "https://stackoverflow.com/questions/53472429/how-to-get-a-gcp-bearer-token-programmatically-with-python", "https://cloud.google.com/eventarc/docs/overview", "https://architectelevator.com/strategy/takeshi-castle/", "https://twitter.com/share", "https://twitter.com/ghohpe", "https://leanpub.com/37things"]} {"url": "http://www.enterpriseintegrationpatterns.com/ramblings/loanbroker_stepfunctions.html", "titulek": "Loan Broker Implementation with AWS Step Functions - Enterprise Integration Patterns", "h1": "Loan Broker Implementation with AWS Step Functions", "popis": "A lot has happened since we implemented the Loan Broker Example in EIP: we have the cloud, serverless computing, machine learning, service meshes and all sorts of other bells and whistles", "klicova_slova": "", "kanonicka": "", "jazyk": "en_US", "robots_meta": "", "og": {"og:type": "article", "og:locale": "en_US", "og:site_name": "Enterprise Integration Patterns", "og:title": "Loan Broker Implementation with AWS Step Functions", "og:description": "A lot has happened since we implemented the Loan Broker Example in EIP: we have the cloud, serverless computing, machine learning, service meshes and all sorts of other bells and whistles", "og:url": "https://www.enterpriseintegrationpatterns.com/ramblings/loanbroker_stepfunctions.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/step-function-recipient-list.png"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Loan Broker Implementation with AWS Step Functions"}, {"uroven": 2, "text": "A Hint of Nostalgia"}, {"uroven": 2, "text": "AWS Step Functions: An Integration Architect's View"}, {"uroven": 3, "text": "Low-code, Visual, Orchestrate, Sequence, Serverless, Business Critical"}, {"uroven": 2, "text": "AWS Step Functions Design Decisions"}, {"uroven": 3, "text": "States vs. Activities"}, {"uroven": 3, "text": "Document management"}, {"uroven": 3, "text": "Instance Management and Correlation"}, {"uroven": 3, "text": "Error handling"}, {"uroven": 3, "text": "Integrations"}, {"uroven": 3, "text": "Development and Debug cycles"}, {"uroven": 2, "text": "Creating a Loan Broker State Machine"}, {"uroven": 3, "text": "TTSO: Time to Stack Overflow"}, {"uroven": 3, "text": "Making the Big Decisions"}, {"uroven": 2, "text": "Building the Credit Bureau: AWS Lambda"}, {"uroven": 2, "text": "Building the Loan Broker: Step Functions"}, {"uroven": 3, "text": "Lambda:Invoke"}, {"uroven": 3, "text": "Data Mapping"}, {"uroven": 3, "text": "Error handling"}, {"uroven": 2, "text": "First Test Run"}, {"uroven": 2, "text": "Getting Loan Quotes: Design Decisions"}, {"uroven": 3, "text": "Recipient List"}, {"uroven": 3, "text": "Publish Subscribe"}], "markdown": "Gregor's Ramblings\n\n---\n\n# Loan Broker Implementation with AWS Step Functions\n\nJuly 20, 2021\n\nFind my posts on IT strategy, enterprise architecture, and digital transformation\n at [ArchitectElevator.com](https://architectelevator.com/blog).\n\nMy last rambling from, ahem, 2017 transported the integration patterns into the era\n of serverless compute. After implementing a [Content-based Router](/patterns/messaging/ContentBasedRouter.html) as a Google Cloud Function, I want to be a bit more ambitious this time and implement\n the book's venerable [Loan Broker Example](/patterns/messaging/ComposedMessagingExample.html) using AWS Lambda and AWS Step Functions.\n\nSo, it's time for the hands-off architect(TM) to get the hands dirty! I expect it\n to be the first in a series where I share my first-time experience with popular tools.\n Having a lot of expertise in the technical domain but absolutely no clue about the\n product likely makes me a tough customer. So, be prepared for deep architecture insight\n coupled with UI hiccups and occasional ignorance.\n\n## A Hint of Nostalgia\n\nI can't help but feel a sense of nostalgia while I am writing about AWS Step Functions\n in an XML document (hello,

, good bye, `##`!) that's being rendered by an [Ant](https://ant.apache.org/) script, which kicks off a chain of XSLT transformations. Ant 1.10.10 just having\n been released a few months ago makes me feel like the setup isn't as retro as one\n might think. For my part, I was happily surprised that the decade-old Ant script executes\n flawlessly from my Windows GIT bash console. And nothing beats running `ant clean` to blow away all your output because you know you'll get a fresh build in just a\n few seconds thanks to the lack of any external dependencies. It almost feels like\n you're using GitHub pages :-) .\n\nThe use case I will implement is the [original Loan Broker example from our book](/patterns/messaging/ComposedMessagingExample.html) that served as the \"Composed Messaging\" example:\n\nIt's a relatively basic integration scenario that describes a simplified loan broker\n business:\n\n1. A *Customer* submits a loan application with personal data and desired terms, such as loan amount\n and duration.\n2. The *Loan Broker* enriches the request with the customer's credit score retrieved from the *Credit Bureau* .\n3. The *Loan Broker* submits the application to multiple *Banks* .\n4. The *Banks* reply with a loan offer if they are willing to service the loan.\n5. The *Loan Broker* aggregates the results, for example by selecting the best offer.\n6. The *Loan Broker* returns the result(s) to the *Customer* .\n\nDespite its simplicity, this scenario highlights many design options and trade-offs\n involved in building asynchronous distributed solutions, including state management,\n correlation, coupling, error handling, and many more. The book included implementations\n with Web Services (a novelty at the time!), [MSMQ](https://en.wikipedia.org/wiki/Microsoft_Message_Queuing) (still going in Windows 10 - try `More Windows features`!), and [TIBCO](/patterns/messaging/ComposedMessagingTIBCO.html) (the days of ActiveEnterprise are long gone but it's still one of the most robust\n messaging systems). A little later we described a [detailed implementation in BizTalk Server 2004](/docs/integrationpatterns_biztalk.pdf). So, it's time for some cloud and serverless action!\n\n## AWS Step Functions: An Integration Architect's View\n\nWhen architects look at integration products like AWS Step Functions they don't just\n walk through the tutorials and \"Get Started\" instructions. Rather, they are interested\n in the product team's [critical decisions](/ramblings/86_isthisarchitecture.html) and associated trade-offs. This makes us quite demanding customers in a way but perhaps\n also more interesting ones.\n\n### Low-code, Visual, Orchestrate, Sequence, Serverless, Business Critical\n\n[AWS Step Functions](https://aws.amazon.com/step-functions/) describes itself as \"a low-code visual workflow service used to orchestrate AWS services,\n automate business processes, and build serverless applications\". In plain English\n that means it's a [Process Manager](/patterns/messaging/ProcessManager.html) with the recent and welcome addition of a visual [Doodleware](https://www.urbandictionary.com/define.php?term=doodleware) editor. \"Low-code\" means that any logic that can't be represented visually will be\n painstakingly typed (or more likely pasted) in as JSON fragment, a [JsonPath](https://github.com/json-path/JsonPath) expression, or a [JMESPath query](https://jmespath.org/).\n\nThe AWS console page details AWS Step Functions as \"a serverless function orchestrator\n that makes it easy to sequence AWS Lambda functions and multiple AWS services into\n business-critical applications\". That's a bit more concrete. I hope it'll forgive\n me for not building anything business critical this time around.\n\nBehind the buzzword soup lies a lightweight orchestrator that executes state machine\n definitions as long as they don't contain complex loops and/or logic. Its main strength\n lies in the seamless integration with many AWS services, making it simple to invoke\n orchestrations via a call to the API Gateway, then storing or fetching data from a\n database, calling a Lambda function, and sending messages to SNS or SQS. The visual\n editor makes building such service orchestrations relatively straightforward.\n\n## AWS Step Functions Design Decisions\n\nSo, what design decisions and trade-offs does Step Functions include? Let's start\n simple, acknowledging that we are working with a state machine, not a full-blown workflow\n / business process engine:\n\n### States vs. Activities\n\nWorkflow tools either model states (which makes it easy to track the current state)\n or activities (often more natural as the purpose of these flows is to coordinate activities).\n As the name \"state machine\" would suggest, Step Functions models states using the\n [Amazon States Language](https://docs.aws.amazon.com/step-functions/latest/dg/concepts-amazon-states-language.html). That's different from BPMN, which is based on activities. Interestingly, Step Functions\n includes \"Task\" states, which are called \"Actions\" in the GUI, and also \"Activities\".\n So, there appears to be a notion of orchestrating activities of sorts. We'll see how\n this plays out later on.\n\n### Document management\n\nIn addition to the current execution state, most workflow engines manage a current\n data set (document likely isn't the greatest name for it but it avoids confusion with\n the state of execution). They accumulate data into that document / data set and transport\n across the individual steps.\n\nStep Functions does this by keeping an active JSON document, which is manipulated\n by task executions. Oddly, it doesn't seem to have a name but rather it shows up via\n the `Input` settings for a task. In addition to filtering and transforming, you can also [merge the task output with the input](https://docs.aws.amazon.com/step-functions/latest/dg/concepts-input-output-filtering.html), effectively accumulating state. I wish this data management aspect was a bit more\n visible in the Workflow Studio.\n\n### Instance Management and Correlation\n\nPowerful workflow engines allow an instance to be triggered by different incoming\n events and can correlate events to existing workflow instances to enable flows like\n the [discriminator pattern](http://www.workflowpatterns.com/patterns/control/advanced_branching/wcp9.php).\n\nStep Functions takes it a bit simpler with a single starting point, triggered for\n example via a call to an API Gateway. That's totally fine for an orchestrator - we\n aren't looking to build a business process modeling tool. Step Functions does have\n a callback mechanism, meaning asynchronous operations can call back into a running\n process via API by providing the correct [Correlation Identifier](/patterns/messaging/CorrelationIdentifier.html) that's derived from the task ID.\n\n### Error handling\n\nLong-running processes need to deal with local error conditions like time-outs as\n well as achieving some sort of consistency across long-running processes, e.g. through\n compensating transactions in a [Saga pattern](https://www.cs.cornell.edu/andru/cs711/2002fa/reading/sagas.pdf).\n\nStep Functions handles local errors via time-outs and retries with exponential back-off.\n Per the (marketing) home page it supports Sagas but it doesn't appear to be a built-in\n feature (an older [blog post](https://theburningmonk.com/2017/07/applying-the-saga-pattern-with-aws-lambda-and-step-functions/) shows one implementation). Because you can define error states and route to them\n if a state encounters a specified error class you can likely implement common error\n handling mechanisms but it might make the resulting flows more complex.\n\n### Integrations\n\nWorkflow engines never live in isolation but coordinate activities across other systems\n or functions. This is where Step Functions shines: you have anything from a Lambda\n function invocation to a SNS notification or a DynamoDB update at your fingertips.\n On top of that you can create EKS clusters. EMR (MapReduce) clusters and Sagemaker\n models. The long list of AWS services highlights Step Functions' role as an automation\n hub for AWS services.\n\n### Development and Debug cycles\n\nIterative development and debugging is the Achilles heel of many integration and workflow\n tools. They assume that you know everything upfront, enter it once and 100% correct\n into the tool, and live happily ever after while promotions and pay raises keep rolling\n in. If you know any developer who works like that, please send them my way.\n\nStep Functions doesn't seem to have the ability to pause or restart a partially executed\n flow for inspection. But it does have a nifty event history that allows you to dig\n into what went wrong. I used it mostly to see what the current document set looks\n like and this would have liked to be able to stored intermediate data so I can test\n a subsequent state I am working on. It'd be similar to saved data sets for Lambda\n functions. Running state machines from the command line (CLI) or inserting a `Pass` state with hard-coded data is a reasonable work-around for simple cases. Still, I\n spent 90% of my development time switching between an execution log, a [JSONPath evaluator](https://jsonpath.com/), and a task definition.\n\nOverall, Step Functions looks well-rounded as a state engine for service and function\n orchestration with many built-in integrations. Also, it can't be mistaken for a full-blown\n process management tool like [Camunda](https://camunda.com/) and friends.\n\n## Creating a Loan Broker State Machine\n\nNow it's time to bring those concepts into action by building out the Loan Broker\n example. As I am all fired up to enter the world of serverless orchestration, I'll\n start by building a Step Functions state machine for the Loan Broker.\n\n### TTSO: Time to Stack Overflow\n\nAlas... embarrassingly I can't quite figure out how to create a process definition:\n\n\"`Get Started`\" wants to create a pre-made sample, which while surely well-intended, makes me wonder\n if we hadn't relegated copy-paste programming to Stack Overflow instead of baking\n it right into the tool. The rest of the screen seems to have been leased to the marketing\n department--a bit late for someone who already opened the console and is looking for\n the `Create` button?\n\nGetting ready to revert back to the command line, the low-code label encourages me\n to give it an extra round of mouse hunting, and voilà, the Hamburger menu on the left\n includes a \"State machines\" entry, which I assume is local lingo for a process template.\n Sure enough, clicking on it yields a big orange button to create a new one, pushing\n back the time to visit Stack Overflow by a good bit.\n\n### Making the Big Decisions\n\nStep Functions must know that I am an architect: it's asking me to make the big decisions\n that are difficult to change later (TM):\n\nNaturally, I'll prefer nearly unlimited state transitions. Alas, I might want call-backs,\n which are only available in the \"Standard\" type. But at $25 per million state transitions\n it looks several orders of magnitude more expensive than paying $1 for a million complete\n executions (and $0.000004 to $0.00001 per GB-second, which I have no idea how many\n I'll incur). It would have been nice to be told if this decision is a [one-way or a two-way door](https://fortune.com/2017/05/11/jeff-bezos-shareholder-letter/) :-) (sources confirm it's indeed a one-way decision). For my trivial example, it's\n a toss-up. I'll go for \"Standard\".\n\nThe first thing my flow needs to do is call the Credit Bureau, which I'll implement\n as a AWS Lambda function (let's leave the async stuff for later). Encouraged by the\n drag-and-drop UI, I easily inserted a `Lambda:Invoke` action into my flow. Not having created any Lambda function, however, meant that\n I wasn't able to select one in the Workflow Studio. Step Functions punished my haste\n by not saving my flow. Oops. This is a classic case of the tool assuming a specific\n work sequence, which might not match reality. Luckily I only lost a state machine\n with a single task.\n\n## Building the Credit Bureau: AWS Lambda\n\nSlightly smarter, I created the Lambda function first. The integrated editor makes\n creating and testing simple functions very easy. As our focus will be on the integration,\n my function is very simple: it validates the supplied SSN and returns random numbers\n for Credit *score* and *history*. To anticipate an asynchronous setup, my function also returns a caller-supplied\n request ID. In JavaScript, the function looks like this:\n\n```\nfunction getRandomInt(min, max) {\n return min + Math.floor(Math.random() * (max-min));\n}\n\nexports.handler = async (event) => {\n // TODO implement\n const min_score = 300\n const max_score = 900\n\n var ssn_regex = new RegExp(\"^\\\\d{3}-\\\\d{2}-\\\\d{4}$\");\n if (ssn_regex.test(event.SSN)) {\n return {\n statusCode: 200,\n request_id: event.RequestId,\n body: {\n SSN: event.SSN,\n score: getRandomInt(min_score, max_score),\n history: getRandomInt(1,30)\n }\n };\n } else {\n return {\n statusCode: 400,\n request_id: event.RequestId,\n body: {\n SSN: event.SSN\n }\n };\n }\n};\n```\n\nThis is where I should likely be ZIP-ing up the function and storing it in an S3 bucket\n for deployment via CloudFormation, but... the giant `DEPLOY` button is right in front of me. How do I often say: transformations that prescribe\n one behavior and reward another are bound to fail. So I am not weak, I am simply the\n victim of a misaligned incentive system!\n\n## Building the Loan Broker: Step Functions\n\n### Lambda:Invoke\n\nNow we're ready to invoke the Loan Broker function with a `Lambda:Invoke` action, implementing a [Content Enricher](/patterns/messaging/DataEnricher.html).\n\nNow that was easy! However, data mapping turned out to be quite a bit trickier.\n\n### Data Mapping\n\nStep Functions allows you to transform data passed to an external entity as well as\n the results that are returned. As described in the [original Loan Broker Example](/patterns/messaging/ComposedMessagingExample.html), you can't expect other services to comply with your data format, so this is a very\n useful feature. What's less useful is that those transformations are somewhat hidden\n inside the `Input` and `Output` tabs of the editor. There you have to choose from a `Payload` expression, `ResultSelector`, `ResultPath`, `Context` object and a few other bits and pieces of magic that can be summoned through various\n special character sequences. A Data Flow Simulator tool helps develop the needed JSonPath\n expressions, but seems to require you to paste the JSON docs back and forth.\n\nThe `Lambda:Invoke` references a fixed parameter `Payload` that accepts JSON documents decorated with special expressions, for example to access\n the [Context Object](https://docs.aws.amazon.com/step-functions/latest/dg/input-output-contextobject.html) via `$$`. We use the `Context` object's unique ID to provide a [Correlation Identifier](/patterns/messaging/CorrelationIdentifier.html). An appended `.$` indicates that an element is defined based on a JsonPath expression. But you likely\n knew that...\n\nIt's easy implemented but you'll be hard pressed to explain to anyone why those two\n lines took you 20 minutes to write. This is a common challenge I see with low-code\n tools, which defer the specification of \"logic\" to another language, [JsonPath](https://github.com/json-path/JsonPath) in this case, with limited editor support like auto-complete or syntax check. You\n end up writing less code, but it's not necessarily faster than using a regular IDE.\n\nProcessing the data returned by the Credit Bureau gets a bit more complicated. To\n Step Functions' defense I likely should have read the section [Input and Output Processing](https://docs.aws.amazon.com/step-functions/latest/dg/concepts-input-output-filtering.html) under \"How Step Functions works\":\n\nDrawn with EIP icons makes the intent a bit clearer ( reducing the blank space in\n favor of a larger font might have also helped):\n\nThe document state is sent to the external process after filtering and transforming.\n Returned data is also filtered and transformed before being enriched into the document\n state.\n\nSadly, the Workflow Studio UI gives little hint as to this underlying execution model.\n Also, I have to enter JsonPath expressions for document structures that I cannot easily\n see. I assume folks run the state machine partway, capture an example JSON document,\n then use the Data Flow Simulator to define the expressions and then paste them into\n the Workflow Studio.\n\nWe invoke the Credit Bureau synchronously, so we filter and transform the incoming\n response via a `ResultSelector` expression and a `ResultPath` node.\n\nOne issue I ran into is that if one of the expected fields wasn't present, I'd be\n served a runtime error that I wasn't able to catch with the error \"Catcher\".\n\n### Error handling\n\nA \"Retrier\" setting allows Step Functions to automatically retry failed calls with\n an exponential back-off rate. I skipped this one for now as it's unlikely that a failed\n Credit Bureau invocation will success on a repeated attempt.\n\n## First Test Run\n\nWe're still missing the banks but it's a good time for a test run. No better place\n for that than [CloudShell](https://aws.amazon.com/cloudshell/). Via the command line you can easily fetch the ID for the Step Functions state machine\n you defined (`123456789` will be replaced by your account ID):\n\n```\n$ aws stepfunctions list-state-machines\n{\n \"stateMachines\": [\n {\n \"stateMachineArn\": \"arn:aws:states:us-east-2:123456789:stateMachine:LoanBroker\",\n \"name\": \"LoanBroker\",\n \"type\": \"STANDARD\",\n \"creationDate\": \"2021-07-11T06:39:34.552000+00:00\"\n }\n ]\n}\n```\n\nExecuting the state machine is also simple enough by supplying the state machine's\n `arn` (arn's are like URLs for AWS resources; you can see they follow a [quite logical format](https://docs.aws.amazon.com/quicksight/latest/APIReference/qs-arn-format.html)) and any input data. Make sure to supply a unique run name as that becomes part of\n the execution's arn.\n\n```\n$ aws stepfunctions start-execution --name=myrun \\\n --state-machine-arn=arn:aws:states:us-east-2:1234567890:stateMachine:LoanBroker \\\n --input=\"{\\\"SSN\\\": \\\"123-45-6789\\\", \\\"Amount\\\": 500000, \\\"Term\\\": 30 }\"\n{\n \"executionArn\": \"arn:aws:states:us-east-2:1234567890:execution:LoanBroker:myrun\",\n \"startDate\": \"2021-07-11T08:10:40.033000+00:00\"\n}\n```\n\nLooks good. Let's see how it did:\n\n```\naws stepfunctions describe-execution \\\n --execution-arn=arn:aws:states:us-east-2:1234567890:execution:LoanBroker:myrun\n{\n \"executionArn\": \"arn:aws:states:us-east-2:1234567890:execution:LoanBroker:myrun\",\n \"stateMachineArn\": \"arn:aws:states:us-east-2:1234567890:stateMachine:LoanBroker\",\n \"name\": \"myrun\",\n \"status\": \"SUCCEEDED\",\n \"startDate\": \"2021-07-11T08:10:40.033000+00:00\",\n \"stopDate\": \"2021-07-11T08:10:40.453000+00:00\",\n \"input\": \"{}\",\n \"inputDetails\": {\n \"included\": true\n },\n \"output\": \"{\\\"SSN\\\":\\\"123-45-6789\\\",\\\"Amount\\\":500000,\\\"Term\\\":30,\\\"Credit\\\":{\\\"Score\\\":524,\\\"History\\\":13}}\",\n \"outputDetails\": {\n \"included\": true\n }\n}\n```\n\nIf you don't fancy all the extras but just the data, you can append `--query=\"output\"` to that command and pipe it into `jq -r '. | fromjson'`. That's a tiny portion of the magic that the AWS CLI can do for you. Voila:\n\n```\n{\n \"SSN\": \"123-45-6789\",\n \"Amount\": 500000,\n \"Term\": 30,\n \"Credit\": {\n \"Score\": 524,\n \"History\": 13\n }\n}\n```\n\nThat's a nice JSON doc! After invoking the Credit Bureau our state machine contains\n the above data as the current document to be used in subsequent steps. You can also\n see this data in the pretty nice \"Graph Inspector\" (\"graph\" appears to be the prior\n name for the state machine) after the run. I quite like the structure of the AWS command\n line syntax - it's yet another handy feature that'll keep you off the noble path of\n Infrastructure-as-Declarative-Data-Structure-Config.\n\n## Getting Loan Quotes: Design Decisions\n\nGetting the credit score is a great first step but what we're really here for is to\n get some loan quotes for our customers. We'll implement the banks as Lambda functions\n because the ease of deployment is simply unbeatable. The interaction with the banks\n is more complex than the Credit Bureau, though. We are looking to decouple the bank\n invocations from the loan broker so it's easy to add or remove banks. Also, we'll\n be using a [Scatter-Gather](/patterns/messaging/BroadcastAggregate.html) pattern, so we need to aggregate the responses from multiple banks.\n\nJust as in previous implementations, the major decision is whether to use a [Recipient List](/patterns/messaging/RecipientList.html), meaning the list of recipients is known to the Loan Broker or whether to use a [Publish-Subscribe Channel](/patterns/messaging/PublishSubscribeChannel.html). The latter pushes the message routing into the channel, which is generally preferred\n because it reduces coupling and better separates message routing from the endpoints.\n However, it also makes the [Aggregator](/patterns/messaging/Aggregator.html) more complex as it won't lnow how many responses to expect.\n\nGiven the capabilities of Step Functions as an orchestrator, I'll build two separate\n implementations:\n\n### Recipient List\n\nThis version uses a [Recipient List](/patterns/messaging/RecipientList.html), meaning the Loan Broker first retrieves a list of banks to request quotes from (I\n took the liberty to place semantics ahead of product choice and thus intentionally\n departed from the all-icons-must-look-the-same template standard):\n\nWe'll retrieve the list of banks to be called from a DynamoDB item (perhaps a bit\n overkill but it's easy to fetch DynamoDB data from Step Functions) and subsequently\n sends those requests via direct Lambda invocations wrapped in a [Map](https://docs.aws.amazon.com/step-functions/latest/dg/amazon-states-language-map-state.html) state. We'll simply aggregate the responses by concatenating them.\n\n### Publish Subscribe\n\nThis version uses a [Publish-Subscribe Channel](/patterns/messaging/PublishSubscribeChannel.html), implemented via Amazon SNS, the Simple Notification Service.\n\nIn this implementation we'll need a stand-alone [Aggregator](/patterns/messaging/Aggregator.html) that can handle unknown numbers of incoming loan quote messages. I might be able\n to do it with a loop inside Step Functions as long as we are able to build a condition\n that terminates the loop. We'll cross that bridge (or rather the river) when we get\n there.\n\nI'll implement and describe each option in [upcoming posts](/ramblings/loanbroker_stepfunctions_recipient_list.html).\n\n*Share:*\n\n*Follow:* [Follow @ghohpe](https://twitter.com/ghohpe) [SUBSCRIBE TO FEED](../ramblings.rss)\n\n*More On:* [INTEGRATION](/ramblings_integration.html) [CLOUD](/ramblings_cloud.html) [ALL RAMBLINGS](../ramblings.html)\n\nGregor is a cloud architect and author. He is a frequent speaker on asynchronous messaging,\n IT strategy, and cloud.", "znaku_textu": 23824, "slov": 3485, "odkazu": 73, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 15:33:54", "sha256": "94266c5e0e64771b44b0e84aa060b195d127bf8a04be4c6396f89893997abc18", "hloubka": 3, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://architectelevator.com/blog", "https://ant.apache.org/", "https://en.wikipedia.org/wiki/Microsoft_Message_Queuing", "https://aws.amazon.com/step-functions/", "https://www.urbandictionary.com/define.php?term=doodleware", "https://github.com/json-path/JsonPath", "https://jmespath.org/", "https://docs.aws.amazon.com/step-functions/latest/dg/concepts-amazon-states-language.html", "https://docs.aws.amazon.com/step-functions/latest/dg/concepts-input-output-filtering.html", "http://www.workflowpatterns.com/patterns/control/advanced_branching/wcp9.php", "https://www.cs.cornell.edu/andru/cs711/2002fa/reading/sagas.pdf", "https://theburningmonk.com/2017/07/applying-the-saga-pattern-with-aws-lambda-and-step-functions/", "https://jsonpath.com/", "https://camunda.com/", "https://fortune.com/2017/05/11/jeff-bezos-shareholder-letter/", "https://docs.aws.amazon.com/step-functions/latest/dg/input-output-contextobject.html", "https://aws.amazon.com/cloudshell/", "https://docs.aws.amazon.com/quicksight/latest/APIReference/qs-arn-format.html", "https://docs.aws.amazon.com/step-functions/latest/dg/amazon-states-language-map-state.html", "https://twitter.com/share", "https://twitter.com/ghohpe", "https://leanpub.com/37things"]} {"url": "http://www.enterpriseintegrationpatterns.com/ramblings/loanbroker_stepfunctions_pubsub.html", "titulek": "Serverless Loan Broker @AWS, Part 3: Publish-Subscribe with SNS - Enterprise Integration Patterns", "h1": "Serverless Loan Broker @AWS, Part 3: Publish-Subscribe with SNS", "popis": "Part 3 of the mini-series on implementing the EIP Loan Broker as a serverless solution with AWS Step Functions uses a Publish-Subscribe Channel and a stand-alone Aggregator to request and process loan quotes", "klicova_slova": "", "kanonicka": "", "jazyk": "en_US", "robots_meta": "", "og": {"og:type": "article", "og:locale": "en_US", "og:site_name": "Enterprise Integration Patterns", "og:title": "Serverless Loan Broker @AWS, Part 3: Publish-Subscribe with SNS", "og:description": "Part 3 of the mini-series on implementing the EIP Loan Broker as a serverless solution with AWS Step Functions uses a Publish-Subscribe Channel and a stand-alone Aggregator to request and process loan quotes", "og:url": "https://www.enterpriseintegrationpatterns.com/ramblings/loanbroker_stepfunctions_pubsub.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/step-function-pub-sub-summary.png"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Serverless Loan Broker @AWS, Part 3: Publish-Subscribe with SNS"}, {"uroven": 2, "text": "Product Mapping"}, {"uroven": 2, "text": "Architecture Decisions"}, {"uroven": 3, "text": "Composition"}, {"uroven": 3, "text": "Message and Control Flow"}, {"uroven": 3, "text": "Decisions"}, {"uroven": 2, "text": "Implementing the Solution"}, {"uroven": 2, "text": "1. Create the Mortgage Quote Request SNS Topic"}, {"uroven": 2, "text": "2. Create Bank Instances and Subscribe them to the SNS Topic"}, {"uroven": 2, "text": "3. Collect Mortgage Quotes"}, {"uroven": 2, "text": "Test: Sending a Mortgage Quote Request"}, {"uroven": 2, "text": "4. Publish Quote Requests Messages from the Loan Broker Workflow"}, {"uroven": 2, "text": "5. Aggregate Loan Quote Responses"}, {"uroven": 2, "text": "6. Continue the Workflow Upon Aggregation"}, {"uroven": 2, "text": "Bonus: Handle Timeouts"}, {"uroven": 2, "text": "Conclusion and Next Steps"}, {"uroven": 2, "text": "Documenting Distributed Solutions"}], "markdown": "Gregor's Ramblings\n\n---\n\n# Serverless Loan Broker @AWS, Part 3: Publish-Subscribe with SNS\n\nJuly 20, 2021\n\nFind my posts on IT strategy, enterprise architecture, and digital transformation\n at [ArchitectElevator.com](https://architectelevator.com/blog).\n\nThis is Part 3 of a mini-series on implementing the venerable [EIP Loan Broker example](/patterns/messaging/ComposedMessagingExample.html) With AWS Step Functions. [Part 1](/ramblings/loanbroker_stepfunctions.html) provides the tool and an overview of the basic design. It also implements the synchronous\n interface to the Credit Bureau. The [previous implementation in Part 2](/ramblings/loanbroker_stepfunctions_recipient_list.html) distributes quote requests to the banks via a [Recipient List](/patterns/messaging/RecipientList.html). In Part 3 we make this part more dynamic by using a [Publish-Subscribe Channel](/patterns/messaging/PublishSubscribeChannel.html) and a stand-alone [Aggregator](/patterns/messaging/Aggregator.html), making up the [Scatter-Gather](/patterns/messaging/BroadcastAggregate.html) pattern in combination. It's a slightly more complex implementation but it frees\n to Loan Broker from knowing how many banks there are or how they are implemented.\n\nI almost forgot to mention that this is the 99th post in this blog, stretched over\n 18 years! That makes about one post every other month, reminding us how meaningless\n averages really are.\n\nI often jest that Publish-Subscribe is one of the worst-named concepts because a)\n You subscribe before you publish (so the order is off) and b) You subscribe to a [Message Channel](/patterns/messaging/MessageChannel.html) but publish a [Message](/patterns/messaging/Message.html) (so it's mixing different concepts). I guess it just sound cute. I'll get off my\n tiny soap box and start implementing...\n\n## Product Mapping\n\nHaving stated many times that architecture is about much more than product selection\n (\"architects are the chef, not the person picking produce at the market\"), let me\n contradict myself by doing a quick mapping of the constructs to AWS services. That\n way you can get a read which vicinity of the [giant service tapestry](https://aws.amazon.com/products/) we'll be dabbling in. Unsurprising we are mostly under \"Application Integration\":\n\nWe'll use the following services to implement the Loan Broker:\n\n- **Step Functions** , a serverless orchestrator, controls the sequence of activities (the Credit Bureau\n call isn't shown here) and transfers data between components, thus acting as the central\n element of the Loan Broker.\n- **SNS** , the Simple Notification Service, AWS' implementation of a [Publish-Subscribe Channel](/patterns/messaging/PublishSubscribeChannel.html) , broadcasts loan quote requests to any subscribing banks.\n- **Lambda** is our preferred serverless runtime for banks and the [Aggregator](/patterns/messaging/Aggregator.html) .\n- **SQS** , the Simple Queuing Service (one of the oldest AWS services who entered beta in late\n 2004 when [services were deployed and configured via XML and SOAP](https://www.xml.com/pub/a/2005/01/05/sqs.html) ), will ferry loan quotes from the banks to the Aggregator.\n- **DynamoDB** will hold the Aggregator's state.\n\nYou might wonder whether [Amazon EventBridge](https://aws.amazon.com/eventbridge/) might be a good fit here because it provides a serverless event bus. We'll get to\n that part later.\n\nJust like before, I prefer diagrams that highlight a component's purpose (\"semantics\"\n if you prefer a bigger word) over the product choice, so the diagram shows the product\n logo as a decorator on the pattern icon. If you squint slightly, you can see that\n the SNS icon suggests multiple receivers whereas the SQS one has a single one. You\n might wonder why SQS sends messages in the form of a square whereas SNS seems to send\n funnels - that's because SNS includes [Message Filters](/patterns/messaging/Filter.html). The Step Functions logo is nicely expressive with the \"Express\" version even featuring\n cartoon-style slanted tasks!\n\nWith the product picks out of the way, let's get to [what architects do best: make decisions](/ramblings/86_isthisarchitecture.html).\n\n## Architecture Decisions\n\nWhat constitutes critical architecture decisions continues to be a hotly debated topic.\n Being a pragmatist, I have just two points of view on this:\n\n- Ensure that you [make your decisions consciously](https://architectelevator.com/architecture/important-decisions/) , whether they are critical or not.\n- Focus on the decisions that might raise questions in the mind of a person who's looking\n at the project from the outside (this person might well be your future self).\n\nBased on this conveniently fuzzy definition, I'd like to focus on two primary decisions\n that affect many distributed and especially event-driven systems.\n\n### Composition\n\nThe great benefit of loosely coupled systems is that they can be re-composed without\n requiring code changes or re-deployments. However, we not only learned that [good composers are few and far in between](/ramblings/19_composing.html), we can also decide whether we want our composition to be [explicit or implicit](/ramblings/31_techededa.html) (I was happily surprised that my post from 2005 also highlights design decisions):\n\n- *Implicit composition* takes place when publisher and subscriber each pick a channel based on a local configuration.\n Naturally, if the chose the same channel, they are thus connected. The advantage is\n loose coupling thanks to local configuration, however, getting the complete system\n image can be a challenge (this is a [typical attribute of loosely coupled systems](https://www.enterpriseintegrationpatterns.com/ramblings/19_composing.html) ).\n- *Explicit composition* has a central element, referred to as composer or assembler, explicitly connect the\n respective components, e.g. by passing them a channel name or reference. This approach\n requires an additional component, which is aware of all other ones and hence might\n make the system appear more coupled. However, having all relationships handled by\n a central component makes it easier to see the system *gestalt* and to make changes in a central location.\n- *Direct invocation* configures one component to directly call another one. This approach is generally\n considered to be more tightly coupled as one component know has direct knowledge of\n another. However, if this is a 1:1 communication, having one component send messages\n to another (configurable) component isn't really much worse than sending it to a channel.\n The main downside is that it becomes more difficult to insert intermediaries.\n\nComposition can also take place by one component passing a [Return Address](/patterns/messaging/ReturnAddress.html) to another component, freeing the receiving component from needing to configure the\n message channel for sent messages. However, the sending component needs to know the\n address to pass, either through implicit or explicit configuration or because it created\n the (usually temporary) channel. It's therefore similar to *Direct Invocation*, just in the reverse direction.\n\n### Message and Control Flow\n\nAs described in a blog post on [Correlation and Conversations](/ramblings/09_correlation.html) from 2004 (apparently a productive year on my blog), messaging or event-based architectures\n differ substantially from call-stack-based applications. Because we're more used to\n call-stack based applications, developers often fall back into this model even when\n they're building event-driven applications. This also happened to the Loan Broker\n implementation in the book, as evidenced by the [Visualization I subsequently generated](/ramblings/11_dependencies.html), which looks awfully close to a call stack, as depicted on the left:\n\nEvent-driven applications, just like any message-oriented application, focus on the\n message flow and avoid request-response patterns. For our implementation, the key\n difference between the two approaches rests with the Aggregator. We might consider\n the Aggregator as part of the Loan Broker state machine that processes response messages,\n inching closer to a [Request-Reply](/patterns/messaging/RequestReply.html) model. Another train of thought is to consider the Aggregator simply the next processing\n step after a Bank produced a quote, resembling a free flow of events.\n\n### Decisions\n\nThe two decisions aren't completely independent. A call-stack-oriented architecture\n requires less composition. Essentially just the process manager needs to know channels\n for other components.\n\nFor this implementation we decide as follows:\n\n- We start with *implicit composition* , configuring the channels to be used in each component. It turns out that infrastructure\n automation gives us elegant ways to compose explicitly, so we'll explore that further\n in a subsequent post. We do use [AWS Lambda Destinations](https://event-driven-architecture.workshop.aws/3-lambda/1-destinations/destinations.html) for some composition, which most closely resembles direct invocation.\n- We are aiming for a *Message Flow* model (aka Event-driven). The Loan Broker itself will be a long-running but essentially\n synchronous component (acting as a [Process Manager](/patterns/messaging/ProcessManager.html) ), invoking the credit bureau synchronously as before. However, we'll implement banks\n and Aggregator in an event-driven fashion.\n\n## Implementing the Solution\n\nHaving satisfied our inner architect, it's time to crack open the Cloud Shell and\n start implementing. We will need to perform the following steps:\n\n1. Create an SNS topic , `MortgageQuoteRequest` .\n2. Create bank instances and subscribe them to the SNS topic.\n3. Collect quotes from the banks to an SQS queue, `MortgageQuotes` , via Lambda and EventBridge.\n4. Wire up the Loan Broker to call the Credit Bureau and publish a message to the SNS topic.\n5. Aggregate the mortgage quotes via an Aggregator that reads messages from the queue.\n6. Signal the Aggregate completion back to the Step Functions workflow to complete the flow and consider time-outs .\n\nYou notice that we aren't building the system linearly, as many tutorials pretend\n it to be. Rather we are building around the banks, as that's the component we already\n have at hand and because it makes for meaningful tests along the way.\n\n## 1. Create the Mortgage Quote Request SNS Topic\n\nWe implement the Publish-Subscribe Channel with [Amazon SNS](https://aws.amazon.com/sns), the simple notification service. We create the channel from the command line and\n give our step function permission to publish to it, vie the role associated with it:\n\n```\n$ aws sns create-topic --name MortgageQuoteRequest\n{\n \"TopicArn\": \"arn:aws:sns:us-east-2:1234567890:MortgageQuoteRequest\"\n}\n\n$ aws sns add-permission --topic-arn=arn:aws:sns:us-east-2:1234567890:MortgageQuoteRequest \\\n --action-name=Publish --label=Mortgage \\\n --aws-account-id=arn:aws:iam::1234567890:role/service-role/StepFunctions-LoanBroker-role-abcdef\n```\n\n## 2. Create Bank Instances and Subscribe them to the SNS Topic\n\nThe bank implementation is almost the same as for our prior implementation with a\n recipient list, thanks to the ability to subscribe Lambda functions to an SNS topic\n via the API/CLI and being able to use Lambda Destinations to send response messages.\n The bank code looks as follows:\n\n```\nfunction calcRate(amount, term, score, history) {\n if (amount <= process.env.MAX_LOAN_AMOUNT && score >= process.env.MIN_CREDIT_SCORE) {\n return parseFloat(process.env.BASE_RATE) + Math.random() * ((1000 - score) / 100.0);\n }\n}\n\nexports.handler = async (event, context) => {\n console.log(event.Records[0].Sns);\n const message = event.Records[0].Sns.Message;\n const requestId = event.Records[0].Sns.MessageAttributes.RequestId.Value;\n const bankId = process.env.BANK_ID;\n const data = JSON.parse(message);\n \n console.log('Loan Request over %d at credit score %d', data.Amount, data.Credit.Score);\n const rate = calcRate(data.Amount, data.Term, data.Credit.Score, data.Credit.History);\n\n if (rate) {\n const quote = { \"rate\": rate, \"bankId\": bankId, \"id\": requestId};\n console.log('Offering Loan', quote);\n return quote;\n } else {\n console.log('Rejecting Loan');\n }\n};\n```\n\nThis is one of my favorite parts of serverless deployment: our code is all but 20\n lines with a minimal amount of noise (all code is available in the [EIP Git Repository](https://github.com/spac3lord/eip) under `LoanBroker/AwsStepFunctions/PubSub`). As before, we parametrize the bank with the type of loan requests it publishes.\n The bank loops through the request ID attribute, which acts as [Correlation Identifier](/patterns/messaging/CorrelationIdentifier.html). You might be surprised that the function simply returns the quote as if it was invoked\n synchronously. This is where a little but of Lambda magic will come into play. First\n let's create bank instances based on this template. We ZIP up the JS file and create\n three instances with respective parameters as before (`$role` is set to our Lambda role):\n\n```\n$ aws lambda create-function --function-name=BankSnsPawnshop \\\n --runtime=nodejs12.x --handler=BankSns.handler --role=$role \\\n --environment=\"Variables={BANK_ID=PawnShop,BASE_RATE=5,MAX_LOAN_AMOUNT=500000,MIN_CREDIT_SCORE=400}\" \\\n --zip-file=fileb://BankSns.zip\n$ aws lambda create-function --function-name=BankSnsUniversal \\\n --runtime=nodejs12.x --handler=BankSns.handler --role=$role \\\n --environment=\"Variables={BANK_ID=Universal,BASE_RATE=4,MAX_LOAN_AMOUNT=700000,MIN_CREDIT_SCORE=500}\" \\\n --zip-file=fileb://BankSns.zip\n$ aws lambda create-function --function-name=BankSnsPremium \\\n --runtime=nodejs12.x --handler=BankSns.handler --role=$role \\\n --environment=\"Variables={BANK_ID=Premium,BASE_RATE=3,MAX_LOAN_AMOUNT=900000,MIN_CREDIT_SCORE=600}\" \\\n --zip-file=fileb://BankSns.zip\n```\n\nNow we need to subscribe the banks to the `MortgageQuoteRequest` SNS topic. Following our \"no actions from the GUI\" mantra, we do this from the CloudShell\n command line (repeat for each bank):\n\n```\n$ aws sns subscribe --protocol=lambda \\\n --topic-arn=arn:aws:sns:us-east-2:1234567890:MortgageQuoteRequest \\\n --notification-endpoint=arn:aws:lambda:us-east-2:1234567890:function:BankSnsPawnshop \n```\n\nAs you'd expect nothing happens if our friend IAM doesn't play along, so we need to\n give the banks permission to receive messages from the SNS topic. In the console this\n will be shown as a \"Trigger\" (thank you, [Stack Overflow](https://stackoverflow.com/questions/39190442/how-do-i-add-trigger-to-an-aws-lambda-function-using-aws-cli/39190596)):\n\n```\naws lambda add-permission --function-name BankSnsPawnshop \\\n --statement-id SnsInvokeLambda \\\n --action \"lambda:InvokeFunction\" \\\n --principal sns.amazonaws.com \\\n --source-arn arn:aws:sns:us-east-2:1234567890:MortgageQuoteRequest\n```\n\nYou can now send a mortgage quote request message to the SNS topic and confirm the\n Banks being invoked with the CloudWatch logs (the SNS Console UI also has a nice Event\n Generator). This request has to include the data that the workflow will retrieve from\n the Credit Bureau:\n\n```\n$ aws sns publish --topic-arn arn:aws:sns:us-east-2:1234567890:MortgageQuoteRequest \\\n --message \"{ \\\"SSN\\\": \\\"123-45-6666\\\", \\\"Amount\\\": 500000, \\\"Term\\\": 30, \\\"Credit\\\": { \\\"Score\\\": 803, \\\"History\\\": 22 } }\" \\\n --message-attributes '{ \"RequestId\": { \"DataType\": \"String\", \"StringValue\": \"ABC12345\" } }'\n```\n\nWhat keeps tripping me up is that when sending the message the value has to be specified\n in an element called `StringValue`, however, when the message is delivered, the field name is `Value` as you can see in the function's CloudWatch logs:\n\n```\nINFO\t{\n Type: 'Notification',\n TopicArn: 'arn:aws:sns:us-east-2:1234567890:MortgageQuoteRequest',\n Subject: null,\n Message: '{ \"SSN\": \"123-45-6666\", \"Amount\": 500000, \"Term\": 30, \"Credit\": { \"Score\": 803, \"History\": 22 } }',\n MessageAttributes: { RequestId: { Type: 'String', Value: 'ABC12345' } }\n [...]\n}\n```\n\n## 3. Collect Mortgage Quotes\n\nNow that we can send mortgage quote requests to multiple banks, we need to build a\n mechanism for the banks to deliver their quotes to a single Aggregator. We'll do that\n via an [SQS queue](https://aws.amazon.com/sns), which we setup with very basic parameters (we don't need to hang onto old responses,\n so we set a retention period of 5 minutes):\n\n```\n$ aws sqs create-queue --queue-name MortgageQuotes --attributes='{\"MessageRetentionPeriod\": \"300\"}'\n{\n \"QueueUrl\": \"https://sqs.us-east-2.amazonaws.com/1234567890/MortgageQuotes\"\n}\n```\n\nNext, we allow all entities in the account to send and receive messages to this queue:\n\n```\n$ aws sqs add-permission --queue-url=https://sqs.us-east-2.amazonaws.com/1234567890/MortgageQuotes \\\n --aws-account-ids=1234567890 \\\n --actions SendMessage ReceiveMessage DeleteMessage ChangeMessageVisibility \\\n --label BanksSendQuotes\n```\n\nThe Bank function code could publish to this queue, but I feel it's cleaner to let\n Lambda handle that without coding this dependency into the function. Lambda supports\n [Destinations](https://docs.aws.amazon.com/lambda/latest/dg/invocation-async.html#invocation-async-destinations). Destinations allow you to chain asynchronous Lambda function invocations based on\n success or failure of the invocation, meaning you can send the results of one Lambda\n function to another function or (hear, hear!) an SQS queue. This is an elegant way\n to do a direct composition of our event chain, but it does come with a slight challenge:\n the SQS message will contain the whole event with a lot of extra detail that isn't\n relevant to the Aggregator. We hence use a EventBridge rule to filter all the extra stuff and then send the clean message to the SQS queue.\n As a side node, Destinations appear to [have some limitations](https://medium.com/@iamarkadyt/3-valuable-lessons-learned-about-aws-lambda-destinations-bc1004c94329) related to duplicate invocations and long wait times. Luckily neither affects us\n for this example.\n\nWith this insight, we will create an EventBridge rule and configure the Bank's Lambda\n function to send the function's results to this event bus. We'll handle the EventBridge\n config in the GUI (I know, I know - the challenge here is that getting the event pattern\n right is only really possible with an example event and a \"test\" button). EventBridge\n is managed via so-called \"Event Buses\" - you'd normally create one bus per application.\n We create a new \"LoanBroker\" event bus and ensure that all components are able to\n publish events to this bus by using one of the permission templates provided by the\n console UI:\n\n```\n{\n \"Version\": \"2012-10-17\",\n \"Statement\": [{\n \"Sid\": \"PutForAll\",\n \"Effect\": \"Allow\",\n \"Principal\": {\n \"AWS\": \"arn:aws:iam::1234567890:root\"\n },\n \"Action\": \"events:PutEvents\",\n \"Resource\": \"arn:aws:events:us-east-2:1234567890:event-bus/LoanBroker\"\n }]\n}\n```\n\nWe now define a rule that accepts events from Lambda, strips unnecessary content,\n and publishes to SQS. This can be relatively easily done via the EventBridge UI. We\n define a custom event pattern to make sure we only handle loan quotes:\n\n```\n{\n \"detail\": {\n \"requestContext\": {\n \"functionArn\": [{ \"prefix\": \"arn:aws:lambda:us-east-2:1234567890:function:BankSns\" }]\n },\n \"responsePayload\": {\n \"bankId\": [{ \"exists\": true }]\n }\n }\n}\n```\n\nPatterns match by example, so replicating the structure of the event that you are\n expecting is enough, augmented by a few [special expressions](https://docs.aws.amazon.com/eventbridge/latest/userguide/eb-event-patterns-content-based-filtering.html) like `exists`. Our rule only processes events that originate from a bank function and have a `bankId` in the response (as always, you need to use your account ID).\n\nEventBridge implements a [Content Filter](/patterns/messaging/ContentFilter.html) as part of the target settings. After selecting the SQS queue `MortgageQuotes` as the target, we configure the input to be a part of the event, in our case the\n JsonPath expression `$.detail.responsePayload`. It can also be handy to specify a second target that logs the whole event message\n to cloudwatch so that you can capture an event for testing. The setting looks like\n this in the Console:\n\nArmed with a functioning EventBridge event bus and rule (EventBridge has many more\n cool features like schema detection, btw), we now instruct Lambda to send an event\n to it whenever a Bank invocation succeeds.\n\n```\n$ aws lambda get-function-event-invoke-config --function-name=BankSns\n\n$ aws lambda put-function-event-invoke-config --function-name=BankSnsPawnshop \\\n --destination-config='{ \"OnSuccess\": { \"Destination\": \"arn:aws:events:us-east-2:1234567890:event-bus/LoanBroker\" } }'\n```\n\nWe're almost done - there's always IAM! Our Lambda role has to be given permission\n to push events to EventBridge:\n\n```\naws events put-permission --event-bus-name=default --principal=1234567890 --action=events:PutEvents --statement-id=PutForAll\n\naws iam put-role-policy --role-name CreditBureau-role-abcdefg --policy-name AllowPutEvents --policy-document '{ \"Version\": \"2012-10-17\", \"Statement\": [ { \"Effect\": \"Allow\", \"Action\": [ \"events:PutEvents\" ], \"Resource\": \"*\" } ] }'\n```\n\n## Test: Sending a Mortgage Quote Request\n\nWe are now ready to send Mortgage Quote Requests to the SNS topic from our Step Functions\n workflow. Our setup so far looks as follows:\n\n```\n$ aws sns publish --topic-arn arn:aws:sns:us-east-2:1234567890:MortgageQuoteRequest \\\n --message '{ \"SSN\": \"123-45-6666\", \"Amount\": 500000, \"Term\": 30, \"Credit\": { \"Score\": 803, \"History\": 22 } }' \\\n --message-attributes '{ \"RequestId\": { \"DataType\": \"String\", \"StringValue\": \"ABC123456789\" } }'\n```\n\nYou can easily poll the queue from the SQS console and will find that 3 banks responded\n with a loan quote:\n\nThe message format is nice and clean:\n\n```\n{\n \"rate\": 5.1605995685644075,\n \"bankId\": \"PawnShop\",\n \"id\": \"ABC123456789\"\n}\n```\n\n## 4. Publish Quote Requests Messages from the Loan Broker Workflow\n\nInstead of calling Lambda functions directly in a loop, our state machine only has\n to send a message to an SNS topic, making the flow very simple (aggregating results\n comes next):\n\nThe only challenging part is setting the message attribute. It appears that message\n attributes aren't supported in Workflow Studio yet, so we enter those in the state\n machine JSON directly. We use the state machine's execution ID as [Correlation Identifier](/patterns/messaging/CorrelationIdentifier.html):\n\n```\n\"SNS Publish\": {\n \"Type\": \"Task\",\n \"Resource\": \"arn:aws:states:::sns:publish\",\n \"Parameters\": {\n \"Message.$\": \"$\",\n \"TopicArn\": \"arn:aws:sns:us-east-2:1234567890:MortgageQuoteRequest\",\n \"MessageAttributes\": {\n \"RequestId\": {\n \"DataType\": \"String\",\n \"StringValue.$\": \"$$.Execution.Id\"\n }\n }\n },\n \"End\": true,\n \"ResultPath\": \"$.SNSResponse\"\n}\n```\n\nWe can now invoke a workflow execution and observe loan quote messages arriving on\n the SQS queue from the console, just as we did when we sent the SNS message directly\n from the command line:\n\n```\n$ aws stepfunctions start-execution --name=mysnsrun \\\n --state-machine-arn=arn:aws:states:us-east-2:1234567890:stateMachine:LoanBroker-PubSub \\\n --input=\"{\\\"SSN\\\": \\\"123-45-6789\\\", \\\"Amount\\\": 500000, \\\"Term\\\": 30 }\"\n```\n\nThe messages arriving on the queue contain the execution ID composed of the workflow's\n arn and the `name` we provided:\n\n```\n{\n \"rate\": 4.592265542250188,\n \"bankId\": \"Universal\",\n \"id\": \"arn:aws:states:us-east-2:1234567890:execution:LoanBroker-PubSub:mysnsrun\"\n}\n```\n\n## 5. Aggregate Loan Quote Responses\n\nThe more complex part of [Scatter-Gather](/patterns/messaging/BroadcastAggregate.html) is the message aggregation. There are two general approaches (yes, another design\n decision):\n\n- Provide a separate channel for each request, meaning that only messages related to\n one request are present on a channel. This simplifies the Aggregator design because\n no message correlation is needed. However, it requires a separate response channel\n and a separate Aggregator instance for each request to the Scatter-Gather.\n- Route all messages to a single channel and have the Aggregator correlate the messages\n based on a [Correlation Identifier](/patterns/messaging/CorrelationIdentifier.html) .\n\nOption 1 only works if message channels and Aggregator instances are very lightweight.\n With a serverless environment like Lambda that's the case but it turns out that correlating\n responses is quite simple in our case and we can easily store many aggregates in DynamoDB.\n So we'll go with option 2, although our Aggregator Lambda function is ephemeral, meaning\n its lifespan is only as long as a single message invocation. The way we make this\n work is by keeping state in DynamoDB.\n\nFor a change we implement the new Lambda Function `QuoteAggregator` in Python:\n\n```\nimport boto3\nimport json\nimport logging\nimport decimal\n\nlogger = logging.getLogger()\nlogger.setLevel(logging.INFO)\ndynamo = boto3.resource('dynamodb')\n\ndef lambda_handler(event, context):\n for record in event['Records']:\n quote = json.loads(record['body'])\n logger.info(quote)\n table = dynamo.Table('MortgageQuotes')\n record = table.get_item(Key={'Id': quote['id'] }, ConsistentRead=True)\n item = record.get('Item', { 'Id': quote['id'], 'Quotes': [] } )\n item['Quotes'].append( { 'bankId': quote['bankId'], 'rate':\"%.2f\" % quote['rate'] }) \n logger.info(item)\n table.put_item(Item = item)\n return 0\n```\n\nWe clock in again at just about 20 lines! Alas, some of them require additional comments:\n\n- The Aggregator uses the `id` field in an incoming quote message to check if any related quotes are present. If\n not, it initializes an empty quote list under this id. In either case it appends the\n received quote to the quote list and persists the result in the DynamoDB. This can\n be achieved without conditionals as `get_item` returns an empty `dict` if no item is found in the database. The Python method `get` allows a default if the key isn't found in the `dict` . So, in any case, out item ends up with an `Id` and a (perhaps empty) `Quotes` list.\n- The DynamoDB Python client does not accept `float` data types. It does accept `Decimal` but that does with two problems: a) converting a `float` into a `Decimal` marks the `Decimal` as \"inexact\" and b) Python doesn't like to convert `Decimal` s into JSON. So we store the rates as strings.\n- The quote list is a list of dicts, each of which contains a `bankId` and a `rate` . You just have to make sure to get all the [], {}, and '' right. I often open up\n Python in interactive mode to get the data structures right.\n\nBy now you have learned that not much happens in the cloud without permission, so\n we need to allow the `QuoteAggregator` to consume messages from the SQS queue and read/write (aka `GetItem`, `PutItem`) into the DynamoDB. We created a second Table, again with a On-Demand provisioning\n model.\n\n```\n$ aws iam put-role-policy --role-name CreditBureau-role-abcdefg --policy-name AllowSqs --policy-document '{ \"Version\": \"2012-10-17\", \"Statement\": [ { \"Effect\": \"Allow\", \"Action\": [ \"sqs:*\" ], \"Resource\": \"arn:aws:sqs:*:1234567890:MortgageQuotes\" } ] }' \n\n$ aws iam put-role-policy --role-name CreditBureau-role-abcdefg \\\n --policy-name AllowDynamo \\\n --policy-document '{ \"Version\": \"2012-10-17\", \"Statement\": [ { \"Effect\": \"Allow\", \"Action\": [ \"dynamodb:GetItem\", \"dynamodb:PutItem\"], \"Resource\": \"arn:aws:dynamodb:*:1234567890:table/MortgageQuotes\" } ] }'\n```\n\nFinally, we configure the `QuoteAggregator` function to receive messages (it's worth having a look at the [Documentation](https://docs.aws.amazon.com/lambda/latest/dg/with-sqs.html#services-dynamodb-api)):\n\n```\n$ aws lambda create-event-source-mapping \\\n --function-name QuoteAggregator --batch-size 5 \\\n --event-source-arn arn:aws:sqs:us-east-2:1234567890:MortgageQuotes\n```\n\nWith the proper permissions in place, you can now kick off the LoanBroker workflow\n as before:\n\n```\n$ aws stepfunctions start-execution --name=snsrun --state-machine-arn=arn:aws:states:us-east-2:1234567890:stateMachine:LoanBroker-PubSub --input=\"{\\\"SSN\\\": \\\"123-45-6789\\\", \\\"Amount\\\": 500000, \\\"Term\\\": 30 }\"\n{\n \"executionArn\": \"arn:aws:states:us-east-2:1234567890:execution:LoanBroker-PubSub:snsrun\",\n \"startDate\": \"2021-08-15T10:28:23.653000+00:00\"\n}\n```\n\nThe DynamoDB table should contain the quotes it received from the banks, keyed by\n the `id` that corresponds to the arn of the StepFunctions workflow execution:\n\n```\n$ aws dynamodb get-item --table-name=MortgageQuotes \\\n --key='{\"Id\": {\"S\": \"arn:aws:states:us-east-2:1234567890:execution:LoanBroker-PubSub:snsrun\"}}'\n{\n \"Item\": {\n \"Id\": {\n \"S\": \"arn:aws:states:us-east-2:1234567890:execution:LoanBroker-PubSub:snsrun\"\n },\n \"Quotes\": {\n \"L\": [ { \"M\": { \"rate\": { \"N\": \"6.61\" }, \"bankId\": { \"S\": \"PawnShop\" } } },\n { \"M\": { \"rate\": { \"N\": \"6.24\" }, \"bankId\": { \"S\": \"Universal\" } } },\n { \"M\": { \"rate\": { \"N\": \"4.34\" }, \"bankId\": { \"S\": \"Premium\" } } }\n ]\n }\n }\n}\n```\n\nThe creative structure aside (`L` denotes a list, `M` a map, and so on), we now have collected and persisted mortgage quotes in a convenient\n place.\n\n## 6. Continue the Workflow Upon Aggregation\n\nThere's one part missing: we need to pause the workflow until the Aggregator reaches\n a completeness condition or times out. We could have the LoanBroker workflow poll\n the DynamoDB table until a sufficient number of quotes arrives. However, that approach\n is not only inefficient, it also couples the workflow back to the Aggregator implementation.\n It'd be much nicer if the Aggregator can notify the workflow that the Aggegrate is\n complete. It turns out we can achieve that by using [Task Tokens](https://docs.aws.amazon.com/step-functions/latest/dg/connect-to-resource.html#connect-wait-token).\n\nWe achieve this by marking the SNS Publish task as `Wait for callback` and supplying the magic variable `$$.Task.Token` as the Id message attribute (this has to be done in the workflow code editor). We\n then add the following code to the QuoteAggregator Lambda function:\n\n```\nfrom botocore.exceptions import ClientError\nsfn = boto3.client('stepfunctions')\n\ndef complete(item):\n return len(item['Quotes']) >= 2\n \ndef lambda_handler(event, context):\n [...]\n if complete(item):\n logger.info('Aggregate complete')\n try:\n sfn.send_task_success(taskToken=item['Id'], output=json.dumps(item['Quotes'])) \n except ClientError as ce:\n logger.info('Could not complete workflow %s' % item['Id'])\n logger.info(ce)\n```\n\nSo, sending an asynchronous task completion is actually quite simple! You just have\n to remember to convert the Python dict back into JSON - `send_task_success` won't accept Python's string representation. We define the Aggregator's completeness\n condition as having at least 2 quotes available. Recall that the Aggregator is unaware\n of how many banks there are as well as that a bank isn't require to produce a quote.\n For the Aggregation Function, we choose simple concatenation as before, meaning the\n Loan Broker will see all quotes and the bank who provided it.\n\nNaturally, we need to give the aggregator permission to send task success. Unlike\n many other policies, this one does not allow us to specify the resource, presumably\n as the token is resource-agnostic (\"opaque\"):\n\n```\n$ aws iam put-role-policy --role-name CreditBureau-role-abcdefg \\\n --policy-document '{ \"Version\": \"2012-10-17\", \"Statement\": [ { \"Effect\": \"Allow\", \"Action\": [ \"states:SendTaskSuccess\" ], \"Resource\": \"*\" } ] }'\n --policy-name AllowSuccess \\\n```\n\nIf you inspect the Aggregator's logs, you'll find that quote messages received by\n the Aggregator after the completeness condition is reached lead to a `TaskTimeOut` error because the workflow has already been completed on a prior message. We simply\n ignore this error.\n\nThe workflow ends up with the following data set:\n\n```\n{\n \"SSN\": \"123-45-6789\",\n \"Amount\": 500000,\n \"Term\": 30,\n \"Credit\": {\n \"Score\": 863,\n \"History\": 4\n }, \n \"Quotes\": [\n { \"bankId\": \"Premium\", \"rate\": \"4.95\" },\n { \"bankId\": \"Universal\", \"rate\": \"5.98\" }\n ]\n}\n```\n\n## Bonus: Handle Timeouts\n\nWe set a [Task timeout](https://docs.aws.amazon.com/step-functions/latest/dg/sfn-stuck-execution.html) on the SNS Publish task so our workflow doesn't get stuck if the Aggregator doesn't\n receive the required number of quotes. If this happens, though, we might have received\n quotes, although not sufficiently many to satisfy the Aggregator. At this point we\n might return the quotes that we have as opposed to returning empty-handed. Our Aggregator\n isn't aware of the timeout condition, so it isn't able to handle this case. The workflow\n should fetch the existing results from the DynamoDB, although that'd couple the workflow\n to the database format, which isn't desired. So, we'd wrap the database access in\n another Lambda to encapsulate the data format.\n\nAlas, we are running into a more serious problem: the task token, referenced by `$$.Task.Token`isn't accessible from the error path, leaving us without a key into the `MortgageQuotes` table. I can imagine two solutions:\n\n- Pass the execution ID to the banks and the Aggregator along with the task token and\n modify the Aggregator to use the execution ID as the key and store the Task Token\n in a field to be used when calling `send_task_success` .\n- Create a lambda function that retrieves the Task Token via a call to [GetExecutionHistory](https://docs.aws.amazon.com/step-functions/latest/apireference/API_GetExecutionHistory.html) . This ID can then be passed to a function to retrieve the loan quotes. This solution\n does leak the decision to use the Task Token as primary key into the Step Functions\n workflow or at least into the associated Lambda function. Also, the Lambda function\n could end up being brittle if there are multiple tasks that reference Task Tokens.\n\nThe second option seems a bit too clever (aka kludgy), so I prefer option 1. We'll\n start by replacing the expression to define the `RequestId` with the following expression that concatenates execution ID and Task Token (`States.Format` is a handy function that was added [in August 2020](https://aws.amazon.com/blogs/aws/aws-step-functions-adds-updates-to-choice-state-global-access-to-context-object-dynamic-timeouts-result-selection-and-intrinsic-functions-to-amazon-states-languages/):\n\n```\n\"States.Format('{}::{}', $$.Execution.Id, $$.Task.Token)\"\n```\n\nWe don't need to modify the banks because they see the ID as an opaque value. We do\n need to modify the Aggregator, though, to split the Id into the Execution Id (to be\n used as database key) and the task Token (to be used when calling `send_task_success` (notice the shared knowledge, aka \"coupling\", of the id format consisting of the\n execution id and the task token separated by \"::\"):\n\n```\n try:\n (key, token) = quote['id'].split(\"::\")\n except ValueError: \n logger.error(\"Invalid quote id %s\" % quote['id'])\n return 0\n```\n\nPython can assign arrays to tuples, throwing a `ValueError` if the array doesn't contain sufficiently many elements. In our case this would happen\n if the `Id` field lacks the `::` separator, in which case `split` simply returns the whole string as a single element.\n\nNow we slightly adjust the rest of the function to use the variables `key` and `token`:\n\n```\n record = table.get_item(Key={'Id': key }, ConsistentRead=True)\n item = record.get('Item', { 'Id': key, 'Quotes': [], 'Token': token } )\n item['Quotes'].append( { 'bankId': quote['bankId'], 'rate': \"%.2f\" % quote['rate'] }) \n table.put_item(Item = item)\n \n if complete(item):\n logger.info('Aggregate complete: %s' % token)\n try:\n sfn.send_task_success(taskToken=token, output=json.dumps(item['Quotes'])) \n except ClientError as ce:\n logger.info('Could not complete workflow %s' % item['Id'])\n```\n\nThe last part we now need is a simple lambda function that returns any values stored\n in the database for a given key:\n\n```\nimport boto3\nimport json\n\ndynamo = boto3.resource('dynamodb')\n\ndef lambda_handler(event, context):\n key = event['Id']\n table = dynamo.Table('MortgageQuotes')\n record = table.get_item(Key={'Id': key }, ConsistentRead=True)\n if 'Item' in record:\n return {'Quotes' : record['Item']['Quotes'] }\n else:\n return {'Quotes' : [] }\n```\n\nConfiguring the workflow to call this function in case of a timeout is relatively\n simple with a timeout setting and a catcher. In the [Amazon States Language](https://docs.aws.amazon.com/step-functions/latest/dg/concepts-amazon-states-language.html) that looks as follows:\n\n```\n \"SNS Publish\": {\n [...]\n \"TimeoutSeconds\": 5,\n \"Catch\": [ {\n \"ErrorEquals\": [ \"States.Timeout\" ],\n \"Next\": \"GetAggregate\",\n \"ResultPath\": \"$.Error\",\n \"Comment\": \"Timeout\"\n } ]\n },\n```\n\nThere's one slight snag, though with the data formats. Naturally, we want the final\n result to have the same format whether we completed the SNS task and got the results\n from the `QuoteAggregator` or whether we timed out and got the results from `GetAggregate`. Both Lambda functions return a list of quotes, however, the result processing of\n the Lambda Invocation doesn't handle lists directly. Rather, it insists on wrapping\n the list in another elements. Merging those results back into the execution document\n requires another node (you cannot merge results under the root node), leaving us with\n an unavoidable double nesting:\n\n```\n \"output\": {\n [...]\n \"result\": {\n \"Quotes\": [ \n { \"rate\": \"4.45\",\"bankId\": \"Universal\" },\n { \"rate\": \"4.00\", \"bankId\": \"Premium\" }\n ]\n }\n```\n\nWe rectify this with a `Pass` that that can lift the `Quotes` up. The final workflow looks as follows (it belies a bit the complexity underneath):\n\nIf the Aggregator receives sufficiently many quotes, it completes the SNS:Publish\n task via the Task Token and the workflow ends. If the Aggregator doesn't complete\n the task, it times out and calls the Lambda Function `GetAggregate` to fetch whichever quotes were received up to that point.\n\n## Conclusion and Next Steps\n\nPhew! Let's quickly recap:\n\n- We updated the Loan Broker workflow to decouple it from the banks (the CreditBureau\n isn't shown above). Rather than calling banks directly, the workflow publishes a message\n to an SNS [Publish-Subscribe Channel](/patterns/messaging/PublishSubscribeChannel.html) `MortgageQuoteRequest` . Any bank can subscribe to receive mortgage quote requests.\n- The banks optionally reply with a quote, which is sent to an EventBridge via a Lambda\n Destination mechanism. Therefore, banks don't need to be aware of the subsequent processing.\n The EventBridge runs the message through a [Content Filter](/patterns/messaging/ContentFilter.html) to remove the extra data from the event and publishes the Quotes to the `MortgageQuotes` queue.\n- The Lambda Function `QuoteAggregator` aggregates quotes and keeps state in DynamoDB. When a specified number of quotes\n is received for one request, the aggregator notifies the workflow via task token.\n Otherwise, the workflow task times out and retrieves the quotes that were received\n so far from the DynamoDB via the Lambda function `GetAggregate` .\n\nThis being an example implementation and the blog post being already over 4000 words,\n we simplified some parts that would need further work if this were to be used in a\n real-life scenario:\n\n- We went relatively lightweight on IAM, letting all Lambda functions run under the\n same IAM role (it has a funny name because it was auto-generated with the first function).\n We'd probably want to separate the roles for banks and the aggregator if this was\n more than a book chapter.\n- We run everything in a single account and a single availability zone. We also didn't\n configure retry logic and error handling.\n- The solution suffers from some minor inconsistencies in naming, e.g. mixing singular\n and plural for message channel names.\n- We don't clean up the `MortgageQuotes` DynamoDB table. We'd probably want to purge old aggregates periodically.\n\n## Documenting Distributed Solutions\n\nAs commented at the end of [Part 2](/ramblings/loanbroker_stepfunctions_recipient_list.html), visualizing dependencies and communication paths in fine-grained distributed solutions\n is important, but not easy. The diagram above is an attempt at combining several solution\n layers without causing clutter:\n\n- The message processing semantics, i.e. if an element acts as Content Filter, Aggregator.\n We use the [EIP Icons](/patterns/messaging/toc.html) for that.\n- The AWS services used, by decorating components with the product icons.\n- The AWS constructs used in italics, e.g. Lambda *Destinations* .\n- The component names, shown in fixed-pitch font.\n- IAM roles as light-gray outlines.\n\nAlas, there are many additional dependencies buried beneath. For example, the workflow\n is configured to publish to a specific SNS topic. Likewise, the banks are subscribed\n to this topic (*implicit composition*). The Lambda Destination is configured with the name of an EventBridge event bus\n (*direct invocation*, although handled by the framework). Also, two Lambda functions share a database\n and assume a specific data schema. On top of this, the workflow is aware of the data\n format of the ID field used by the `QuoteAggregator` Lambda function.\n\nMaking these dependencies explicit will become easier (although not trivial) if we\n use automation (which is recommended in any case). Therefore, automation is about\n much more than just efficiency - it also serves an important documentation function.\n We'll dive into this in [Part 4: Automation](/ramblings/loanbroker_automation.html).\n\n- **Part 4** : [Automation](/ramblings/loanbroker_automation.html)\n- **Part 5** : [Integration Patterns with CDK](/ramblings/loanbroker_cdk.html)\n\n*Share:*\n\n*Follow:* [Follow @ghohpe](https://twitter.com/ghohpe) [SUBSCRIBE TO FEED](../ramblings.rss)\n\n*More On:* [INTEGRATION](/ramblings_integration.html) [CLOUD](/ramblings_cloud.html) [ALL RAMBLINGS](../ramblings.html)\n\nGregor is a cloud architect and author. He is a frequent speaker on asynchronous messaging,\n IT strategy, and cloud.", "znaku_textu": 41323, "slov": 5841, "odkazu": 89, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 15:35:30", "sha256": "114df16548032626da2780f7e1c0de981a2c89289c2f927b40c1795808c119d3", "hloubka": 4, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://architectelevator.com/blog", "https://aws.amazon.com/products/", "https://www.xml.com/pub/a/2005/01/05/sqs.html", "https://aws.amazon.com/eventbridge/", "https://architectelevator.com/architecture/important-decisions/", "https://event-driven-architecture.workshop.aws/3-lambda/1-destinations/destinations.html", "https://aws.amazon.com/sns", "https://github.com/spac3lord/eip", "https://stackoverflow.com/questions/39190442/how-do-i-add-trigger-to-an-aws-lambda-function-using-aws-cli/39190596", "https://docs.aws.amazon.com/lambda/latest/dg/invocation-async.html", "https://medium.com/@iamarkadyt/3-valuable-lessons-learned-about-aws-lambda-destinations-bc1004c94329", "https://docs.aws.amazon.com/eventbridge/latest/userguide/eb-event-patterns-content-based-filtering.html", "https://docs.aws.amazon.com/lambda/latest/dg/with-sqs.html", "https://docs.aws.amazon.com/step-functions/latest/dg/connect-to-resource.html", "https://docs.aws.amazon.com/step-functions/latest/dg/sfn-stuck-execution.html", "https://docs.aws.amazon.com/step-functions/latest/apireference/API_GetExecutionHistory.html", "https://aws.amazon.com/blogs/aws/aws-step-functions-adds-updates-to-choice-state-global-access-to-context-object-dynamic-timeouts-result-selection-and-intrinsic-functions-to-amazon-states-languages/", "https://docs.aws.amazon.com/step-functions/latest/dg/concepts-amazon-states-language.html", "https://twitter.com/share", "https://twitter.com/ghohpe", "https://leanpub.com/37things"]} {"url": "http://www.enterpriseintegrationpatterns.com/ramblings/loanbroker_stepfunctions_recipient_list.html", "titulek": "Loan Broker @AWS, Part 2: Recipient List - Enterprise Integration Patterns", "h1": "Loan Broker @AWS, Part 2: Recipient List", "popis": "In part 2 of this blog series I implement the Loan Broker Example using a Recipient List pattern, implemented in DynamoDB, Step Functions, and Lambda", "klicova_slova": "", "kanonicka": "", "jazyk": "en_US", "robots_meta": "", "og": {"og:type": "article", "og:locale": "en_US", "og:site_name": "Enterprise Integration Patterns", "og:title": "Loan Broker @AWS, Part 2: Recipient List", "og:description": "In part 2 of this blog series I implement the Loan Broker Example using a Recipient List pattern, implemented in DynamoDB, Step Functions, and Lambda", "og:url": "https://www.enterpriseintegrationpatterns.com/ramblings/loanbroker_stepfunctions_recipient_list.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/step-function-recipient-list.png"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Loan Broker @AWS, Part 2: Recipient List"}, {"uroven": 2, "text": "Loan Broker with Recipient List"}, {"uroven": 2, "text": "Fetching the Recipient List"}, {"uroven": 2, "text": "I need banks; lots of banks!"}, {"uroven": 2, "text": "Intermission: Setting Permissions"}, {"uroven": 2, "text": "Finishing the Loan Broker"}, {"uroven": 3, "text": "Control Flow"}, {"uroven": 3, "text": "Data Flow"}, {"uroven": 3, "text": "Configuring the Map Task"}, {"uroven": 2, "text": "Running the Loan Broker"}, {"uroven": 2, "text": "Catching a Breath: Some Reflections."}, {"uroven": 3, "text": "It's a low-code, high-complexity, polyglot world"}, {"uroven": 3, "text": "Abstractions are hard"}, {"uroven": 3, "text": "Data flow is harder than control flow"}, {"uroven": 3, "text": "You can't escape IAM"}, {"uroven": 3, "text": "Transition from GUI to Automation early"}, {"uroven": 3, "text": "Document your dependencies and assumptions"}, {"uroven": 2, "text": "Next up: Publish-subcribe"}], "markdown": "Gregor's Ramblings\n\n---\n\n# Loan Broker @AWS, Part 2: Recipient List\n\nJuly 20, 2021\n\nFind my posts on IT strategy, enterprise architecture, and digital transformation\n at [ArchitectElevator.com](https://architectelevator.com/blog).\n\n## Loan Broker with Recipient List\n\nPart 2 of this blog series shows the implementation of the [Loan Broker example using AWS Step Functions](/ramblings/loanbroker_stepfunctions.html) with a [Recipient List](/patterns/messaging/RecipientList.html). We built the interaction with the Credit Bureau in [Part 1](/ramblings/loanbroker_stepfunctions.html) already, so here we focus on the interaction with the banks. Using a Recipient List\n means that the Loan Broker retrieves a list of banks to request quotes from before\n making the requests one-by-one. Implemented in Step Functions it looks as follows:\n\nFor this implementation, the enricher fetches the list of banks retrieves the data\n from a DynamoDB item because it's very easy to do so via a Step Functions `GetItem` task. We'll then use a `Map` task to call the banks. Let's go ahead and build this. The code is available in the\n [public EIP repo](https://github.com/spac3lord/eip) under `LoanBroker/AwsStepFunctions/RecipientList`.\n\n## Fetching the Recipient List\n\nFor our test implementation, we simply create a [DynamoDB](https://aws.amazon.com/dynamodb/) table and add the item from the AWS Console UI. Choosing the on-demand billing model\n and turning off all options (hopefully) assures that we don't incur any running cost\n due to provisioned capacity. Reading a single item from DynamoDB, a cloud database\n that delivers single-digit millisecond performance at *any* scale, might remind you of [Marvin the depressed robot](https://en.wikipedia.org/wiki/Marvin_the_Paranoid_Android) who routinely bemoans having to perform trivial tasks despite having a brain the\n size of a planet. So far, DynamoDB hasn't complained and *any* scale does go both directions...\n\nAs a NOSQL key-value store, DynamoDB doesn't require a fixed schema but it does require\n a key, more precisely a unique [primary partition key](https://aws.amazon.com/blogs/database/choosing-the-right-dynamodb-partition-key/). You define this key's name and data type when you create the table the first time.\n Yes, this one is a one-way door :-) Not being overly creative we define a key `Type` for our single row so we could envision defining different sets of banks for different\n types of loans, such as home loans or car loans.\n\nOnce equipped with a key, we can create a single item and enter the ARN's of our banks'\n lambda functions into an attribute list under that item. The AWS Console provides\n a \"tree\" UI , which is useful for the very first element, after which it's easier\n to copy-paste the JSON syntax, which takes some getting used to. If you already know\n about `\"L\"` and `\"S\"`, you can also proceed directly to the console:\n\n```\n$ aws dynamodb list-tables\n{\n \"TableNames\": [\n \"LoanBrokerBanks\"\n ]\n}\n\n$ aws dynamodb put-item --table-name=LoanBrokerBanks \\\n --item='{ \"Type\": { \"S\": \"Home\" }, \"BankAddress\": {\"L\": [ { \"S\": \"BankRecipientPremium\" }, { \"S\": \"BankRecipientUniversal\" }, { \"S\": \"BankRecipientPawnshop\" } ] } }'\n\n$ aws dynamodb get-item --table-name=LoanBrokerBanks --key='{\"Type\": {\"S\": \"Home\"}}'\n{\n \"Item\": {\n \"Type\": {\n \"S\": \"Home\"\n },\n \"BankAddress\": {\n \"L\": [\n { \"S\": \"BankRecipientPremium\" },\n { \"S\": \"BankRecipientUniversal\" },\n { \"S\": \"BankRecipientPawnshop\" }\n ]\n }\n }\n}\n```\n\nNeeding 3 tries to correctly type the `key` parameter was my just punishment for leaving the comfort of the Console UI. The [CLI examples](https://docs.aws.amazon.com/cli/latest/reference/dynamodb/get-item.html) using a key file might give you a hint that your \"{\" key plays a major role in this\n endeavor.\n\nNow we need to make those Lambda ARNs real by deploying the banks.\n\n## I need banks; lots of banks!\n\nWhat would a blog post be without a Matrix reference? Certainly not one of mine! So,\n if we want lots of banks, we better parametrize them. As our banks are just mock-ups,\n we do this simply via environment variables that we can specify on the command line.\n My love for simple solutions might shine through here—Borg also passed instance data\n via the command line and it scaled to houndreds of thousands of machines.\n\nA simple bank that can be invoked from Step Functions can look like this in JavaScript:\n\n```\nfunction calcRate(amount, term, score, history) {\n if (amount <= process.env.MAX_LOAN_AMOUNT && score >= process.env.MIN_CREDIT_SCORE) {\n return parseFloat(process.env.BASE_RATE) + Math.random() * ((1000 - score) / 100.0);\n }\n}\n\nexports.handler = async (event) => {\n const amount = event.Amount;\n const term = event.Term;\n const score = event.Credit.Score;\n const history = event.Credit.History;\n\n const bankId = process.env.BANK_ID;\n\n console.log('Loan Request over %d at credit score %d', amount, score);\n const rate = calcRate(amount, term, score, history);\n if (rate) {\n const response = { \"rate\": rate, \"bankId\": bankId};\n console.log(response);\n return response;\n }\n};\n```\n\nEach bank will vary its behavior by the following parameters:\n\n- `MIN_CREDIT_SCORE` - the customer's minimum credit score required to receive a quote from this bank.\n- `MAX_LOAN_AMOUNT` - the maximum amount the bank is willing to lend to a customer.\n- `BASE_RATE` - the minimum rate the bank might give. The actual rate increases for a lower credit\n score and some randomness.\n- `BANK_ID` - as the loan broker processes multiple responses, knowing which bank supplied the\n quote will be handy.\n\nWe can easily create and test this function from the Console UI. However, because\n we want multiple instances, we better do so from the command line. Such deployments\n require a ZIP file of the lambda function, which you can obtain by exporting the functions\n via the \"Actions\" button in the console UI. You can then upload the file into your\n cloud shell (alternatively just copy the function into a file and use the `zip` command from Cloud Shell). Equipped with the function's ZIP file, you can now instantiate\n multiple bank instances by providing parameters on the command line (the repo contains\n a simple script `makeBanks` that will do this for you after you edit the role to be used):\n\n```\n$ aws lambda create-function --function-name=BankRecipientPawnshop \\\n --runtime=nodejs12.x --handler=RecipientBank.handler --role=arn:aws:iam::1234567890:role/service-role/CreditBureau-role-1gbub1sd \\\n --environment=\"Variables={BANK_ID=PawnShop,BASE_RATE=5,MAX_LOAN_AMOUNT=500000,MIN_CREDIT_SCORE=400}\" \\\n --zip-file=fileb://RecipientBank.zip\n\n$ aws lambda create-function --function-name=BankRecipientUniversal \\\n --runtime=nodejs12.x --handler=RecipientBank.handler --role=arn:aws:iam::1234567890:role/service-role/CreditBureau-role-1gbub1sd \\\n --environment=\"Variables={BANK_ID=Universal,BASE_RATE=4,MAX_LOAN_AMOUNT=700000,MIN_CREDIT_SCORE=500}\" \\\n --zip-file=fileb://RecipientBank.zip\n\n$ aws lambda create-function --function-name=BankRecipientPremium \\\n --runtime=nodejs12.x --handler=RecipientBank.handler --role=arn:aws:iam::1234567890:role/service-role/CreditBureau-role-1gbub1sd \\\n --environment=\"Variables={BANK_ID=Premium,BASE_RATE=3,MAX_LOAN_AMOUNT=900000,MIN_CREDIT_SCORE=600}\" \\\n --zip-file=fileb://RecipientBank.zip\n```\n\nWe cleverly use the same IAM role as the Credit Bureau Lambda function, which saves\n us from having to create a new IAM role. The magic number in the role ARN will be\n your account ID as with all other ARNs. You can get it from Cloud Shell with the following\n command:\n\n```\n$ aws sts get-caller-identity --query Account --output text\n```\n\nTo show off our CLI prowess, we'll use the `query` parameter to show the created functions and their parameters (it took me indeed only\n two tries to get this working):\n\n```\n$ aws lambda list-functions --query=\"Functions[].{Name:FunctionName, Parms:Environment}\"\n\n[\n {\n \"Name\": \"BankRecipientUniversal\",\n \"Parms\": {\n \"Variables\": {\n \"MAX_LOAN_AMOUNT\": \"700000\",\n \"MIN_CREDIT_SCORE\": \"500\",\n \"BANK_ID\": \"Universal\",\n \"BASE_RATE\": \"4\"\n }\n }\n },\n {\n \"Name\": \"BankRecipientPawnshop\",\n \"Parms\": {\n \"Variables\": {\n \"MAX_LOAN_AMOUNT\": \"500000\",\n \"MIN_CREDIT_SCORE\": \"400\",\n \"BANK_ID\": \"PawnShop\",\n \"BASE_RATE\": \"5\"\n }\n }\n },{\n \"Name\": \"BankRecipientPremium\",\n \"Parms\": {\n \"Variables\": {\n \"MAX_LOAN_AMOUNT\": \"900000\",\n \"MIN_CREDIT_SCORE\": \"600\",\n \"BANK_ID\": \"Premium\",\n \"BASE_RATE\": \"3\"\n }\n }\n },\n]\n```\n\nThese Banks are ready to dish out loan quotes (yes, the magic `cli-binary-format` argument is needed unless you want to convert your JSON payload into base64 yourself):\n\n```\n$ aws lambda invoke --function-name=BankRecipientPawnshop \\\n --cli-binary-format raw-in-base64-out \\\n --payload '{ \"Credit\": { \"Score\": 740, \"History\": 28 }, \"Amount\": 500000, \"Term\": 30, \"SSN\": \"123-45-6789\"}' \\\n loanquote.json\n\n$ cat loanquote.json\n{\"rate\":7.442039050089985,\"bankId\":\"PawnShop\"}\n```\n\n## Intermission: Setting Permissions\n\nWe've avoided digging into AWS IAM so far as the console UI generated the required\n roles for us (that's how we got to reuse the `CreditBureau-role` role). However, because we're planning to call Lambda functions dynamically, we'll\n need to explicitly set some additional permissions. To make things easy, we give the\n Step Function workflow (via its Role) permission to call all Lambda functions associated\n with the account. We do so by defining a policy doc. It's a bit long for the command\n line, so create a file `invoke-lambdas` with the following contents (the version has to be set to this specific date):\n\n```\n{\n \"Version\": \"2012-10-17\",\n \"Statement\": [\n {\n \"Effect\": \"Allow\",\n \"Action\": \"lambda:InvokeFunction\",\n \"Resource\": \"arn:aws:lambda:*:1234567890:function:*\"\n }\n ]\n}\n```\n\nLook up the role that your State Machine is associated with in the Console and use\n that on the command line to the policy to that role:\n\n```\n$ aws iam put-role-policy \\\n --role-name=StepFunctions-LoanBroker-role-1234567\\\n --policy-name=CallAllLambdas \\\n --policy-document file://invoke-lambdas\n```\n\nIf we have any doubt, we can check that the policy is in place:\n\n```\n$ aws iam list-role-policies --role-name=StepFunctions-LoanBroker-role-1234567\n\n{\n \"PolicyNames\": [\n \"CallAllLambdas\"\n ]\n}\n```\n\nIt looks much easier once you figured it out. It honestly took me a dozen attempts\n to get this one right (more on IAM further down).\n\n## Finishing the Loan Broker\n\n### Control Flow\n\nWith both our data source and our lambda functions ready, we can build the state machine\n flow. Using the Workflow Studio, setting up the control flow is quite straightforward:\n\n- A `DynamoDB:GetItem` task fetches the list of Lambda function ARN's.\n- A `Map state` loops over the list of bank addresses.\n- A `Lambda:Invoke` task calls the bank and concatenates the results\n\n### Data Flow\n\nThat part was simple enough. Managing the document state turned out to require a lot\n more patience and many more tries. Fetching data from the DynamoDB table isn't too\n difficult. We specify the same JSON fragment that we used for the command line as\n the `API Parameter` (the command line arguments become part of the JSON here just as if you'd be making\n an API call):\n\n```\n{\n \"TableName\": \"LoanBrokerBanks\",\n \"Key\": {\n \"Type\": {\n \"S\": \"Home\"\n }\n }\n}\n```\n\nDynamoDB delivers back quite a bit of data but we want to extract only the Lambda\n function addresses (ARN's) to make it easy to iterate over them. Our output from the\n command line above helps us design the right expression to do this. Note that each\n element in the result set is prefixed by a field name that denotes its type with \"L\"\n indicating a list and \"S\" a string. This makes it a bit tricker to get the expression\n right (I highly recommend an interactive JsonPath editor). The final expression iterates\n over all items in the list (`L[*]`) and retrieves the `\"S\"` element, which contains the function address. This is what we enter into the `ResultSelector` (the magic `.$` appendix indicates that this field is set based on a JsonPath expression).\n\n```\n{\n \"BankAddress.$\": \"$.Item.BankAddress.L[*].S\"\n}\n```\n\nThe result from this expression is a simple list of bank addresses, which we'll have\n to merge into the current document. The `ResultPath` settings tells where (have a look at the data flow diagram in [Part 1](/ramblings/loanbroker_stepfunctions.html). We choose `$.Banks`, giving us the following document state at this point:\n\n```\n\"SSN\": \"123-45-6789\",\n\"Amount\": 500000,\n\"Term\": 30,\n\"Credit\": {\n \"Score\": 890,\n \"History\": 28\n},\n\"Banks\": {\n \"BankAddress\": [\n \"BankRecipientUniversal\",\n \"BankRecipientPawnshop\",\n \"BankRecipientPremium\"\n ]\n}\n```\n\n### Configuring the Map Task\n\nThe Map task iterates over an array, which in our case will be `$.Banks.BankAddress`. Now we need to give the banks the data in the format they expect, which is a dictionary\n of name-value pairs. We will also need the name of the Lambda function to invoke,\n which we can retrieve via a magic incantation. This took a good bit of digging - what's\n confusing here is that the `Map.Item.Value` is listed as an input for the map state but it's actually the input for the task\n that `Map` iterates over . We end up with the following expression for the `Transform array items` setting:\n\n```\n{\n \"function.$\": \"$$.Map.Item.Value\",\n \"SSN.$\": \"$.SSN\",\n \"Amount.$\": \"$.Amount\",\n \"Term.$\": \"$.Term\",\n \"Credit.$\": \"$.Credit\"\n}\n```\n\nWe are mostly copying values to make them available to the Lambda invocation. In hindsight\n I might have collated the data supplied by the customer in a single element to save\n typing. `$$.Map.Item.Value` is the magic incantation for the current value in the array that the Map task iterates\n over, i.e. the bank Lambda ARN in our case.\n\nWe can now use this data to set the payload for the Lambda invocation. We could have\n made things easier by selecting \"use state input as payload\", which would pass the\n lambda ARN along with the other fields. Because the banks likely know their address\n that wouldn't be too big a deal but I nevertheless decided to just filter our the\n relevant fields, resulting in the following payload definition:\n\n```\n{\n \"SSN.$\": \"$.SSN\",\n \"Amount.$\": \"$.Amount\",\n \"Term.$\": \"$.Term\",\n \"Credit.$\": \"$.Credit\"\n}\n```\n\nBoth the Lambda invocation and the Map task contain output processing, which we need\n to configure carefully. Our banks return a `rate` and a `bankId` as we saw from the command line invocation above (or an empty string if it doesn't\n provide a quote for the given parameters). The `Lambda:Invoke` task also returns a bunch of HTTP metadata, which interests us less. We'll merge\n the actual bank result fields with the task input data via the following `ResultSelector` that'll store the results under the current document root node specified by `$` (trying to reference individual elements results in a non-catchable `States.Runtime` error if the bank returns an empty string):\n\n```\n{\n \"Quote.$\": \"$.Payload\"\n}\n```\n\nThe output of one Lambda invocation now looks like this (specifying `$` as the `ResultPath` replaces the existing document; that's OK because we still have the output from the\n Map task):\n\n```\n{\n \"Quote\": {\n \"rate\": 6.571025629484854,\n \"bankId\": \"Universal\"\n }\n}\n```\n\nLast, these individual results have to be aggregated. We'll simply let the Map task\n merge the results. That setting is back under the `Output` processing of the Map task, which we set to `$.Quotes`. Our document state after the completion of the Map task is:\n\n```\n{\n \"SSN\": \"123-45-6789\",\n \"Amount\": 500000,\n \"Term\": 30,\n \"Credit\": { \"Score\": 890, \"History\": 28 },\n \"Banks\": {\n \"BankAddress\": [\n \"BankRecipientUniversal\",\n \"BankRecipientPawnshop\",\n \"BankRecipientPremium\"\n ]\n },\n \"Quotes\": [\n { \"Quote\": { \"Rate\": 4.718271541264695, \"BankID\": \"Universal\" } },\n { \"Quote\": { \"Rate\": 5.146337522656502, \"BankID\": \"PawnShop\" } },\n { \"Quote\": { \"Rate\": 3.9008046685055904, \"BankID\": \"Premium\" } }\n ]\n}\n```\n\nIf you want to clean up the document state to remove the bank addresses, the easiest\n way appears to insert a \"Pass\" task with an expression to transform its input into\n a cleaner result. Just as before it's best to test such expressions in a JsonPath\n tool or the Step Functions \"Data Flow Simulator\" (I'll explain the last expression\n below):\n\n```\n{\n \"SSN.$\": \"$.SSN\",\n \"Amount.$\": \"$.Amount\",\n \"Term.$\": \"$.Term\",\n \"Credit.$\": \"$.Credit\",\n \"Quotes.$\": \"$.Quotes[?(@.Quote)].Quote\"\n}\n```\n\n## Running the Loan Broker\n\nIt's time to run the Loan Broker state machine! We do so from the Cloud Shell (invocation\n is always asynchronous so we need to fetch the results separately):\n\n```\n$ aws stepfunctions start-execution\\\n --name=mynicerun \\\n --state-machine-arn=arn:aws:states:us-east-2:1234567890:stateMachine:LoanBroker-RecipientList\\\n --input=\"{\\\"SSN\\\": \\\"123-45-6789\\\", \\\"Amount\\\": 500000, \\\"Term\\\": 30 }\"\n{\n \"executionArn\": \"arn:aws:states:us-east-2:1234567890:execution:LoanBroker-RecipientList:mynicerun\",\n \"startDate\": \"2021-07-23T17:07:49.134000+00:00\"\n}\n\n$ aws stepfunctions describe-execution \\\n --execution-arn=arn:aws:states:us-east-2:1234567890:execution:LoanBroker-RecipientList:mynicerun \\\n --query=\"output\" | jq -r '. | fromjson'\n\n{\n \"Credit\": { \"Score\": 885, \"History\": 10 },\n \"Amount\": 500000,\n \"Quotes\": [\n { \"Rate\": 5.0826106695797915, \"BankID\": \"Universal\" },\n { \"Rate\": 5.4599342311437, \"BankID\": \"PawnShop\" },\n { \"Rate\": 3.00415534899031, \"BankID\": \"Premium\" }\n ],\n \"Term\": 30,\n \"SSN\": \"123-45-6789\"\n }\n```\n\nTaadaa! If you want to test a scenario where not all banks return a quote, you can\n run the state machine again with a higher loan amount that the PawnShow won't process:\n\n```\n$ aws stepfunctions start-execution\\\n --name=mysecondrun \\\n --state-machine-arn=arn:aws:states:us-east-2:1234567890:stateMachine:LoanBroker-RecipientList\\\n --input=\"{\\\"SSN\\\": \\\"123-45-6789\\\", \\\"Amount\\\": 600000, \\\"Term\\\": 30 }\"\n{\n \"executionArn\": \"arn:aws:states:us-east-2:1234567890:execution:LoanBroker-RecipientList:mysecondrun\",\n \"startDate\": \"2021-07-23T17:07:49.134000+00:00\"\n}\n\n$ aws stepfunctions describe-execution \\\n --execution-arn=arn:aws:states:us-east-2:1234567890:execution:LoanBroker-RecipientList:mysecondrun \\\n --query=\"output\" | jq -r '. | fromjson'\n\n{\n \"Credit\": { \"Score\": 693, \"History\": 24 },\n \"Amount\": 600000,\n \"Quotes\": [\n { \"rate\": 5.271301238502866, \"bankId\": \"Universal\" },\n { \"rate\": 3.8970175730277457, \"bankId\": \"Premium\" }\n ],\n \"Term\": 30,\n \"SSN\": \"123-45-6789\"\n }\n```\n\nGetting this output took a bit of extra tinkering because a bank not issuing a quote\n results in `\"Payload\": null` for the task's output, which the `Map` task dutifully appends to the `Quotes` list as follows:\n\n```\n \"Quotes\": [\n { \"Quote\": { \"Rate\": 4.718271541264695, \"BankID\": \"Universal\" } },\n { \"Quote\" : null },\n { \"Quote\": { \"Rate\": 3.9008046685055904, \"BankID\": \"Premium\" } }\n ]\n```\n\nTo eliminate the empty response in the final output we use the following filter expression\n in the final task: `\"Quotes.$\": \"$.Quotes[?(@.Quote)].Quote\"`. The `?()` operator evaluates the expression in parentheses, in our case the non-null existence\n of a sub-node named `Quote`, and only returns array elements where the expression is true. This gives us the\n cleaned-up list of quotes above.\n\nOddly, the same approach didn't work in the bank invocation's ResultSelector, perhaps\n because the subscript operator with filter expression only works on JSON arrays and\n not on objects (a quick check on [jsonpath.herokuapp.com](http://jsonpath.herokuapp.com/) hinted that the Jayway evaluator accepts `[?()]` on objects whereas the Goessner implementation does not). The joys of \"low code\"...\n :-)\n\n## Catching a Breath: Some Reflections.\n\nPhew! Our state machine is working. We could surely add some bells and whistles like\n selecting the best quote from the list and returning it to the customer. You can invoke\n a Step Functions state machine from the API Gateway, although only asynchronously\n (via POST and GET results). Although I am naturally a fan of asynchronous interactions,\n I would have thought that for service orchestrations (which likely use express workflows)\n across synchronous APIs, a synchronous invocation would make a convenient choice.\n It'd allow you to make a orchestration look the same as any other lambda service,\n which would be neat. So, for the time being, our Loan Broker remains headless :-)\n\nLooking at the final solution, it's actually quite simple: we ended up with two Lambda\n functions of a dozen lines each and a state machine with 5 states. The amazing part\n is that we didn't need any deployment or runtime infrastructure whatsoever, not even\n an IDE or a terminal shell!\n\nStill, especially for me as a first-time user, building the solution took a fair amount\n of experimenting, fudging, and occasional face palming. I surely looks a lot easier\n in the demos. Here some of my initial thoughts:\n\n### It's a low-code, high-complexity, polyglot world\n\nThe world of declarative low-code tools almost invariably relies on other languages\n to fill in the blanks. I can't throw too many rocks because I did exactly the same\n in my [Messaging toolkit](https://www.enterpriseintegrationpatterns.com/ramblings/16_patternscomponents.html) (back then we didn't have the \"low code\" slogan). So, to be productive with modern\n low-code tools, you need to be familiar with JSON, YAML, [JsonPath](https://github.com/json-path/JsonPath), [JMESPath](https://jmespath.org/) queries, CLI syntax, [HCL](https://www.terraform.io/docs/configuration-0-11/syntax.html) and a few others. The amount of code you'll write will indeed be much less but the\n complexity didn't necessarily decrease: Step Function workflows and IAM roles are\n highly complex constructs that you need to understand regardless.\n\n### Abstractions are hard\n\nJust because something is molded into JSON syntax doesn't mean the cognitive load\n goes away. OK, people might know where to put the curly brace and the comma (and innumerable\n double quotes), but that's about it. My little demo has JSON for state machine definitions\n and executions, document payload, filter and transformation expressions, Lambda function\n invocations, HTTP metadata, IAM policies, and I am sure I forgot a few.\n\nProviding things as JSON alone doesn't achieve a meaningful abstraction. Actually,\n it often detaches the code from the execution environment by asking us to provide\n three magic settings that are wired together by a complex machine, which isn't visible\n from the settings at all. In this context I really like Nial Daly's conclusion (see\n [his blog](https://www.nialdaly.com/writing/the-best-kind-of-code)):\n\n> The best kind of code is the code you don’t have to write but that you actually understand.\n> --Nial Daly\n\nGood abstractions are those that are \"even\", meaning they allow you to reason about\n the system behavior despite hiding details. They don't have [stuff from the underground popping up](https://architectelevator.com/architecture/failure-doesnt-respect-abstraction/) all of a sudden.\n\n### Data flow is harder than control flow\n\nBuilding the Step Function control flow was quite simple, especially with the new\n Workflow Studio. However, managing the document state, hidden behind `input` and `output` settings, took 80% of the effort. Perhaps I am too old for dynamic, no-schema, Json\n everything, but the only way I could get it to work is by running the flow part-way,\n capturing the current document state, building the expression in a JsonPath tool,\n and pasting it into the configuration. Also, throwing a `States.Runtime` error for a missing field in a service response seems pretty harsh. The best option\n I found was to always return a parent element, even if nothing is inside, and to just\n reference that element.\n\nI am well aware of the limitations of drag-and-drop transformation tools (spiderweb!),\n but I think the current tooling could provide better support than a text field. I'll\n have a chat with the product team—I know where they work :-)\n\n### You can't escape IAM\n\nIf you meet a cloud developer who hasn't complained about IAM, Identity and Access\n Management, they likely haven't done any real work or they live in a world of stars,\n meaning they grant broad access to everything. IAM is a parallel universe to your\n system architecture—it defines dependencies between components by means of access\n control. AWS IAM defines accounts, users, roles, policies, principals, and a few more\n concepts, so you have to have at least a basic understanding to not run into frustrating\n \"permission denied\" error messages. The console helps by auto-defining policies. Alas,\n it can also leave you with scattered and poorly name roles.\n\nWhen trying to allow the Step Functions state machine to invoke Lambda functions,\n I first attempted to grant state machines the right to invoke the function via `aws lambda add-permission`. That seemed logical enough and worked for SNS subscriptions but not for Step Functions.\n In the end I solved it by adding the ability to invoke Lambda functions to the role\n used by the Step Function via `aws iam put-role-policy`. However, I got to this only after reverse-engineering via CloudTrails what function\n the Console GUI invokes. I don't have a clear idea why I need to use one over the\n other, or perhaps both are needed? I surely should invest more time but tbh, the diagram\n on the [How IAM Works](https://docs.aws.amazon.com/IAM/latest/UserGuide/intro-structure.html) page didn't exactly encourage me.\n\n### Transition from GUI to Automation early\n\nWhen you're tinkering to get things working, especially IAM setups, you are bound\n to end up in a state that you can't recreate. Perhaps one of your failed attempts\n didn't do what you intended but enabled a policy that was needed for a subsequent\n command to succeed. You'll never know until you rebuild an environment from scratch.\n So, as appealing as the Console UI is, make sure you capture your steps in an executable\n format. Doing it via CLI as I did is admittedly the poorest form but still eons better\n than clicking around in the UI (I simply had no brain cells left to also learn CloudFormation\n / Terraform / CDK).\n\nSo, my old rule is as relevant as ever:\n\n> Never perform any operational settings in a UI. UIs are meant for dashboards and visualizations,\n> not for \"clicking around until it works\".\n\n### Document your dependencies and assumptions\n\nCloud solutions are by definition distributed systems, which implies that how things\n are wired together is as important as what's inside the pieces. The catch is that\n the latter is much more easily seen than the former. So document your system structure\n and your assumptions independently from your solution code, either by hand or, better\n yet, programmatically with a tool like [Structurizr](https://structurizr.com/). It wouldn't be too hard to auto-generate a Structurizr DSL like the following, which\n is sufficient to render a basic call graph (try it out at the [Structurizr Demo Page](https://structurizr.com/dsl); this might be a great topic for a follow-on post):\n\n```\nworkspace {\n\n model {\n loanBroker = softwareSystem \"Loan Broker Demo\" {\n all = container \"Components\" {\n stateMachine = component \"Step Functions\"\n premiumBank = component BankRecipientPremium\"\n universalBank = component \"BankRecipientUniversal\"\n pawnShop = component \"BankRecipientPawnshop\"\n\n stateMachine -> premiumBank \"Get Quote\"\n stateMachine -> universalBank \"Get Quote\"\n stateMachine -> pawnShop \"Get Quote\"\n }\n }\n }\n\n views {\n component all {\n include *\n autolayout\n }\n\n theme default\n }\n}\n```\n\n## Next up: Publish-subcribe\n\nNow that we have a good handle on Step Functions, let's crank it up a notch and implement\n the [Scatter-Gather](/patterns/messaging/BroadcastAggregate.html) via a [Publish-Subscribe Channel](/patterns/messaging/PublishSubscribeChannel.html). I'll show how to [in the next post](/ramblings/loanbroker_stepfunctions_pubsub.html).\n\n*Share:*\n\n*Follow:* [Follow @ghohpe](https://twitter.com/ghohpe) [SUBSCRIBE TO FEED](../ramblings.rss)\n\n*More On:* [INTEGRATION](/ramblings_integration.html) [CLOUD](/ramblings_cloud.html) [ALL RAMBLINGS](../ramblings.html)\n\nGregor is a cloud architect and author. He is a frequent speaker on asynchronous messaging,\n IT strategy, and cloud.", "znaku_textu": 27776, "slov": 4115, "odkazu": 63, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 15:35:31", "sha256": "c5adbf75573a7b4d8c3762b723188378536726b14d2085e783da5dd06817d325", "hloubka": 4, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://architectelevator.com/blog", "https://github.com/spac3lord/eip", "https://aws.amazon.com/dynamodb/", "https://en.wikipedia.org/wiki/Marvin_the_Paranoid_Android", "https://aws.amazon.com/blogs/database/choosing-the-right-dynamodb-partition-key/", "https://docs.aws.amazon.com/cli/latest/reference/dynamodb/get-item.html", "http://jsonpath.herokuapp.com/", "https://github.com/json-path/JsonPath", "https://jmespath.org/", "https://www.terraform.io/docs/configuration-0-11/syntax.html", "https://www.nialdaly.com/writing/the-best-kind-of-code", "https://architectelevator.com/architecture/failure-doesnt-respect-abstraction/", "https://docs.aws.amazon.com/IAM/latest/UserGuide/intro-structure.html", "https://structurizr.com/", "https://structurizr.com/dsl", "https://twitter.com/share", "https://twitter.com/ghohpe", "https://leanpub.com/37things"]} {"url": "http://www.enterpriseintegrationpatterns.com/ramblings/queues_control_flow.html", "titulek": "Control Flow—The Other Half of Integration Patterns - Enterprise Integration Patterns", "h1": "Control Flow—The Other Half of Integration Patterns", "popis": "When describing messaging systems, it's natural to focus on data flow", "klicova_slova": "", "kanonicka": "", "jazyk": "en_US", "robots_meta": "", "og": {"og:type": "article", "og:locale": "en_US", "og:site_name": "Enterprise Integration Patterns", "og:title": "Control Flow—The Other Half of Integration Patterns", "og:description": "When describing messaging systems, it's natural to focus on data flow", "og:url": "https://www.enterpriseintegrationpatterns.com/ramblings/queues_control_flow.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/ControlFlow_queue_cardimage.png"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Control Flow—The Other Half of Integration Patterns"}, {"uroven": 2, "text": "Data Flow is only half the story"}, {"uroven": 2, "text": "Once Again: Drawing the Line"}, {"uroven": 2, "text": "Control Flow: Push and Pull"}, {"uroven": 2, "text": "Affordances"}, {"uroven": 2, "text": "Pushing and Pulling in the Cloud"}, {"uroven": 2, "text": "Queues Are Hidden in Plain Sight"}, {"uroven": 2, "text": "Drivers in the wild"}, {"uroven": 2, "text": "Simple Pictures Deepen Our Understanding"}], "markdown": "Gregor's Ramblings\n\n---\n\n# Control Flow—The Other Half of Integration Patterns\n\nJuly 30, 2024\n\nFind my posts on IT strategy, enterprise architecture, and digital transformation\n at [ArchitectElevator.com](https://architectelevator.com/blog).\n\nIt's hard to imagine an asynchronous system without queues aka [Message Channels](/patterns/messaging/MessageChannel.html). Queues are the core element that provides [location and temporal decoupling](/ramblings/coupling_facets.html) between sender and receiver. But there is quite a bit more behind the little barrel\n icons: control flow, traffic shaping, back pressure, and [dead letters](/patterns/messaging/DeadLetterChannel.html).\n\n## Data Flow is only half the story\n\nWhen Bobby and I wrote *Enterprise Integration Patterns*, we naturally spent most of the time on the *data flow* of messaging systems: how messages are generated, transformed, and routed. Some patterns,\n especially [Endpoint Patterns](/patterns/messaging/MessagingEndpointsIntro.html) such as [Polling Consumer](/patterns/messaging/PollingConsumer.html) or [Event-Driven Consumer](/patterns/messaging/EventDrivenConsumer.html) clearly have a ring of control flow to it, but we never actually mention the term\n in the entire book (funnily there is one occurrence in [Recipient List](/patterns/messaging/RecipientList.html), but it's actually a verb and object: \"In order for the Recipient List to control\n flow of information\"). The term gets a few mentions in the blog, although [we conclude](/ramblings/74_messaging.html) that \"Message-oriented API's steer towards a data flow architecture\". So, it's time\n to make control flow a first-class citizen.\n\nLike so many terms, *Control Flow* is also an overloaded term. In most imperative programming languages, control flow\n relates to branching and loop statements. That control flow also exists in distributed\n systems, where multiple entities execute local control flows. For example, a recipient\n may be in a loop waiting for data whereas a sender may send a message whenever a user\n clicks a button. Those control flows assume linearity, meaning one thing happens after\n another: an `if` statement determines which branch will be executed, but it's only one or the other\n (let's ignore [speculative execution](https://en.wikipedia.org/wiki/Speculative_execution) at the CPU level).\n\nWhen designing asynchronous systems, we are interested in how these local control\n flows relate to each other. For example, when the user pushes a button and the sender\n sends a message, where does that message stay until the receiver's loop gets around\n to asking for a message? So, we are looking at the coordination across these local\n entities that determines the flow of messages:\n\n> In distributed systems, control flow indicates which element actively drives the interaction,\n> for example by sending a message or calling a function.\n\n[Claude](https://claude.ai/) describes the differences between data flow and control flow as the \"the what vs.\n the how\": data describes what is being exchanged (and perhaps transformed along the\n way) whereas control describes how it gets there. A [paper by old friend Schahram Dustdar](https://dsg.tuwien.ac.at/team/sd/papers/Zeitschriftenartikel_2021_SD_Control.pdf) makes the case for emphasizing data flow, ending up with a visual notation where\n \"control flow decisions are encapsulated within the brick implementations\", similar\n to *Enterprise Integration Patterns* (I forgive Schahram for not citing our book as he already cites Cesare, Olaf, Marlon,\n and James Lewis).\n\n> Control flow defines operational characteristics of a distributed system like scalability,\n> robustness, or latency.\n\nAlthough making the control flow implicit (as the above paper suggests) provides clean\n modeling and evocative diagrams, the run-time characteristics of such systems like\n scalability, robustness, or latency very much depend on control flow. So, when we\n build serverless IoT systems, for example, it behooves architects to make control\n flow a first-class consideration.\n\n## Once Again: Drawing the Line\n\nI often introduce distributed system ideas by starting with \"2 boxes and a line\".\n What starts so simple, turns out to be quite a bit more interesting once we zoom into\n the details. That casually drawn line could mean multiple things. Most diagrams show\n the flow of data from sender to receiver (almost all EIP diagrams do this without\n explicitly stating it). But the line could also indicate control flow, for example\n an RPC call. The following diagram illustrates common combinations of data and control\n flow:\n\nThings get interesting with polling: the control flow is from right to left as the\n receiver actively calls the sender to fetch data.\n\n> Data and control flow may well point in opposite directions. When drawing an arrow,\n> you should specify which flow it indicates.\n\nThe picture above is actually somewhat simplified for Messaging, as it doesn't account\n for [Polling Consumers](/patterns/messaging/PollingConsumer.html) or [Event-Driven Consumers](/patterns/messaging/EventDrivenConsumer.html). Once you place a queue in between sender and received (as most messaging systems\n do), the control flow becomes yet more interesting:\n\nThe sender can push messages at its preferred rate into the queue, meaning the control\n flow runs from the sender to the queue. Likewise, most queues support (or require)\n [Polling Consumers](/patterns/messaging/PollingConsumer.html), meaning the receiver's control flow points from right to left. Thus, we can express\n the magical property of queues by means of control flow:\n\n> A queue inverts control flow.\n\n## Control Flow: Push and Pull\n\nThe absence of control flow from *Enterprise Integration Patterns* didn't escape some very smart people. Back in 2015 I wrote a blog post titled [Sync or Swim](/ramblings/80_syncorswim.html), which was inspired by the work from old Google colleague, Ivan Gewirtz. Ivan worked\n in media processing, meaning high volume data processing pipelines. As compute capacities\n back then weren't what they are today, throughput and efficiency were important considerations.\n That's why his designs had to consider control flow along with data flow. Being a\n fan of the integration pattern icons, he realized that they don't express this aspect\n of system design:\n\n> Enterprise Integration Patterns\n> \n> only shows one half of distributed system design: the data flow.\n\nFortunately, it's relatively easy to extend the pattern icons to also show control\n flow by adjusting their shape. If each interaction can be actively pushing or polling\n data, or passively waiting to be called, we end up with four variations.\n\n- An element can actively push data to a recipient, meaning data and control flow align.\n We call this element a *Sender* .\n- An element can passively receive data, e.g. from a *Sender* . We call this element a *Sink* .\n- An element can passively provide data, meaning other elements can fetch data from\n it. We call this a *Source.*\n- A *Fetcher* actively requests (fetches) data from a *Source* . Data and control flow face in opposite directions in this scenario.\n\nAlthough pushing and pulling are complementary to each other, they aren't the only\n control flow styles. Many cloud tools also support batch operations, adding cardinality\n in the mix (you could push or pull single elements or batches). Google Cloud additionally\n defines an [Export Subscription](https://cloud.google.com/pubsub/docs/subscriber) for Pub/Sub in addition to push and pull. We'll come to these special cases later.\n\nWe can now combine the little noses and notches into four common combinations for\n elements in a [Pipes and Filters](/patterns/messaging/PipesAndFilters.html) architecture:\n\n- A *Puller* consumes messages actively, as indicated by the little nose pointing left. It \"pulls\"\n messages whenever it is ready to do so. However, it doesn't publish messages that\n it processed until a subsequent message consumer requests a message. The control flow\n runs from right to left, as indicated by the noses: when a subsequent element requests\n an element, the Puller in turn fetches a new source message. This makes a *Puller* synchronous in the sense that message requests that it receives and sends are time-correlated.\n- A *Pusher* receives messages from an active sender and pushes messages that it processed to\n the next element. The *Pusher* is also synchronous in a sense that each message sent coincides with a message received.\n Control flow (the direction of the noses) matches data flow: from left to right.\n- As we saw, a *Queue* connects two active elements, one that sends messages to the queue and another one\n that fetches them from the queue. Our notation makes this role as a control-flow inverter\n rather obvious. It is also apparent that a *Queue* behaves asynchronously: the arrival and departure rate are independent. That's why\n we often equate asynchronous messaging with the use of queues.\n- A *Driver* is active on both ends, meaning it actively fetches messages and actively sends them\n to the recipient. Like a queue, it also inverts control flow (the noses are pointing\n in both directions), but unlike the queue it has full control over the cadence of\n message fetching and sending. A Driver is therefore helpful as a rate limiter, which\n we will discuss in more detail later.\n\nThe element's role also determines what parameters a user has to specify to define\n the element's behavior. *Pushers* and *Pullers* typically don't take parameters related to control flow as they follow the control\n flow of the related *Sender* or *Fetcher*. *Queues* are passive, so they also don't take control flow parameters (they do take parameters\n related to flow control, such as retry counts or Time-to-Live / TTL; more on that\n in a subsequent post). A *Driver* is active, so it's usually configured via a polling interval (the maximum time between\n two subsequent message fetches) or batch sizes if batching is supported, as is the\n case in most high-throughput systems. Batching allows one fetch operation to retrieve\n multiple messages to reduce the polling overhead. However, large batches may exceed\n maximum payload sizes and cause inefficient error handling (if processing one message\n of the batch fails, either the entire batch or a subset have to be returned for retry).\n As we will soon see, the presence of such parameters often gives a hint at how cloud\n services are constructed.\n\n## Affordances\n\nThe visual language of the little nooks and noses provides an [affordance](https://en.wikipedia.org/wiki/The_Design_of_Everyday_Things#Contents), an element that tells you how you can interact with an object. A toggle button on\n a light switch is an affordance, and much of Dan Norman's brilliant [The Design Of Everyday Things](http://www.amazon.com/exec/obidos/ASIN/0465050654/enterpriseint-20) discusses how poor affordances make us feel dumb, e.g. a door with a handle that\n screams \"pull\" combined with a small sign saying \"push\".\n\nThe *Push* and *Pull* affordances help us understand the control flow in asynchronous systems in an almost\n playful manner. If you want to connect a *Sender* to a *Fetcher*, you are faced with two noses pointing at each other. The only matching element to\n connect them is a *Queue*. Once connected, you can insert an arbitrary number of *Pushers* left of the *Queue* and *Pullers* to the right of it.\n\nLikewise, it's easy to see that you need a *Driver* to connect a *Source* with a *Sink*. And once again, you can insert *Pushers* and *Pullers* al gusto.\n\nUsing the icons, finding the matching component and having a suitable name for it\n becomes so simple that we might feel it's not even worth discussing. In fact, that's\n exactly the point: finally, distributed system design feels as easy as assembling\n Lego bricks. Unsurprisingly, most cloud services include these concepts, but often\n without making them explicit.\n\n## Pushing and Pulling in the Cloud\n\nServerless integration services offered by cloud providers have to be scalable and\n robust, so it comes as no surprise that they are particular about push vs. pull control\n flow and batching of requests. Let's have a look at popular messaging services across\n the three major cloud providers.\n\nGoogle Cloud leads the pack for supporting and clearly documenting [Push and Pull subscriptions](https://cloud.google.com/pubsub/docs/subscriber) for their Pub/Sub service. And for each kind of access, they document how [flow control](ramblings/queues_flow_control.html) is implemented:\n\nGCP's Export subscriptions deliver data directly to another service like BigQuery\n or block storage, where the user does not have to specify a push or pull model.\n\nAzure Event Grid also supports [push](https://learn.microsoft.com/en-us/azure/event-grid/namespace-delivery-retry) and [pull](https://learn.microsoft.com/en-us/azure/event-grid/pull-delivery-overview) delivery.\n\nAWS is less explicit about push or pull, implying the model based on type of service\n as opposed to giving you a choice. SQS (queue) uses a pull model as we would expect\n whereas SNS (Pub-Sub) uses a push model. EventBridge Buses also use a push model whereas\n EventBridge Pipes pulls messages and pushes them, acting as a *Driver*.\n\n## Queues Are Hidden in Plain Sight\n\nCloud services that support push subscriptions aren't a direct pass through. Instead,\n the services buffer events (usually after filtering) before passing them to downstream\n services via active *Drivers*. The drivers work in parallel, arranged in worker pools, to achieve sufficient throughput\n (diagram on the left):\n\nThe parallel processing explains why these services don't maintain delivery order.\n All major providers make a disclaimer similar to Azure:\n\n> Event Grid doesn't guarantee order for event delivery, so subscribers may receive\n> them out of order.\n\nSo, even services that look like a *Pusher* from the outside (because you feed messages in, and they in turn push messages out),\n have queues inside. Most documents don't state this explicitly, but once you read\n the documents (and have a good language to describe control flow), it becomes apparent.\n\nThese queues bring much needed stability, but also increase latency. Amazon EventBridge\n (which I happen to be most familiar with) reduced latency in 2023, but [P90 latencies still hover around 250ms](https://lucvandonkersgoed.com/2022/09/06/serverless-messaging-latency-compared/) according to one heavy user. The [docs even state \"about half a second\"](https://aws.amazon.com/eventbridge/faqs/#Limits_and_performance), which may render the service not a great fit for latency-sensitive operations. Also\n in 2023, [Azure published (experimental) stats for Event Grid](https://techcommunity.microsoft.com/t5/messaging-on-azure-blog/azure-event-grid-s-pull-delivery-performance/ba-p/4003820) (which focus more on high throughput than latency) that results in an *average* latency of 11ms in *Pull* mode. It would be interesting to see P90/P95 values, as the graphs show some pronounced\n spikes. Overall, the service design is in line with the fundamentals of asynchronous\n system design:\n\n> Many serverless event routers optimize for high throughput and operational stability,\n> not low latency.\n\nAsynchronous, message-oriented services perform well under heavy load (more on that\n in a subsequent post) at the expense of latency. For a cloud provider, it's easy to\n see that the former trumps the latter as a design goal.\n\nIf you're looking to reduce latency, pull delivery can be the better option. Although\n polling is generally inefficient, both Azure and AWS users reported that pull delivery\n can yield lower latency than push, largely because the recipient controls the polling\n rate and batch size. The low latency may come at the expense of higher overhead (and\n perhaps hitting quota limits) when you use smaller batch sizes for polling, so it's\n worthwhile considering whether your application can live with the higher latency.\n\n## Drivers in the wild\n\nSome serverless event services get away without queues because they act as a *Driver*, meaning they have control over the rate at which they fetch messages. [Amazon EventBridge Pipes](https://docs.aws.amazon.com/eventbridge/latest/userguide/pipes-concepts.html) fetches data from sources such as SQS queues or DynamoDB streams (as expected, the\n diagram on that page shows data flow, not control flow). If you look carefully at\n the [supported sources](https://docs.aws.amazon.com/eventbridge/latest/userguide/eb-pipes-event-source.html) (and you've read the AWS documentation carefully), you'll notice that all sources\n are *Sources* in our language, meaning they need an active *Fetcher* to retrieve data. This explains, why EventBridge Pipes cannot process events from\n SNS or S3 because they are active *Senders*. Two noses don't connect, however, you could connect them by inserting a Queue, as\n we saw above.\n\nEventBridge Pipes having its own driver gives it some advantages. For one, it doesn't\n require a queue. Queues tend to be expensive and require flow control, as we will\n see in a future post. When Pipes sends message to a rate-limited target, it can simply\n slow down the fetch rate of its driver without having to buffer messages. The last\n advantage is likely the most desirable, in-order delivery:\n\n> If a source enforces order to the events sent to pipes, that order is maintained\n> throughout the entire process to the target.\n\nWe quickly notice that the language could be more precise: The events aren't really\n *sent*, Pipes *fetches* them. Also, they don't need to be events but can be any form of message. Still, the\n result is laudable. As we saw, most event routers based on a queue and competing consumers\n do nor preserve order. Understanding the internal architecture of such services makes\n the design trade-offs apparent and easier to follow.\n\n## Simple Pictures Deepen Our Understanding\n\nAssembling the icons with little noses and notches may seem playful, but also trivial\n in a way. I remember quite some time ago when I shared my messaging toolkit with a\n customer who for a course in integration patterns. When they looked at the icons and\n the simple domain language, their feedback was that this is beneath their audience.\n They somehow wanted things to feel more complicated.\n\nThe role of the pattern icons (for data flow and control flow) is to take the noise\n out and let you focus on the critical design decisions for your asynchronous systems.\n Once you do that, aspects like rate limiting or out-of-order delivery become apparent\n and no longer require you to read reams of documentation. That's the power of simple\n models:\n\n> If your decision seems trivial, you are using the right model.\n\n*Share:*\n\n*Follow:* [Follow @ghohpe](https://twitter.com/ghohpe) [SUBSCRIBE TO FEED](../ramblings.rss)\n\n*More On:* [INTEGRATION](/ramblings_integration.html) [CLOUD](/ramblings_cloud.html) [MESSAGING](/ramblings_messaging.html) [ALL RAMBLINGS](../ramblings.html)\n\nGregor is a cloud architect and author. He is a frequent speaker on asynchronous messaging,\n IT strategy, and cloud.", "znaku_textu": 18994, "slov": 2840, "odkazu": 67, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 14:54:34", "sha256": "c4daac428a13ad2cf225f71266f7334f977ddf6a086c4f05cdc1ef44bcf8d6a6", "hloubka": 3, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://architectelevator.com/blog", "https://en.wikipedia.org/wiki/Speculative_execution", "https://claude.ai/", "https://dsg.tuwien.ac.at/team/sd/papers/Zeitschriftenartikel_2021_SD_Control.pdf", "https://cloud.google.com/pubsub/docs/subscriber", "https://en.wikipedia.org/wiki/The_Design_of_Everyday_Things", "http://www.amazon.com/exec/obidos/ASIN/0465050654/enterpriseint-20", "https://learn.microsoft.com/en-us/azure/event-grid/namespace-delivery-retry", "https://learn.microsoft.com/en-us/azure/event-grid/pull-delivery-overview", "https://lucvandonkersgoed.com/2022/09/06/serverless-messaging-latency-compared/", "https://aws.amazon.com/eventbridge/faqs/", "https://techcommunity.microsoft.com/t5/messaging-on-azure-blog/azure-event-grid-s-pull-delivery-performance/ba-p/4003820", "https://docs.aws.amazon.com/eventbridge/latest/userguide/pipes-concepts.html", "https://docs.aws.amazon.com/eventbridge/latest/userguide/eb-pipes-event-source.html", "https://twitter.com/share", "https://twitter.com/ghohpe", "https://leanpub.com/37things"]} {"url": "http://www.enterpriseintegrationpatterns.com/ramblings/queues_flow_control.html", "titulek": "Queues invert control flow but require flow control - Enterprise Integration Patterns", "h1": "Queues invert control flow but require flow control", "popis": "Queues are key elements of any asynchronous system because they can invert control flow", "klicova_slova": "", "kanonicka": "", "jazyk": "en_US", "robots_meta": "", "og": {"og:type": "article", "og:locale": "en_US", "og:site_name": "Enterprise Integration Patterns", "og:title": "Queues invert control flow but require flow control", "og:description": "Queues are key elements of any asynchronous system because they can invert control flow", "og:url": "https://www.enterpriseintegrationpatterns.com/ramblings/queues_flow_control.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/ControlFlow_flowcontrol.png"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Queues invert control flow but require flow control"}, {"uroven": 2, "text": "Traffic Shaping"}, {"uroven": 2, "text": "Something's gotta give"}, {"uroven": 2, "text": "Flow Control"}, {"uroven": 2, "text": "Rate Limiting: Proactive Traffic Shaping"}, {"uroven": 2, "text": "Queues require flow control"}, {"uroven": 2, "text": "Related posts"}], "markdown": "Gregor's Ramblings\n\n---\n\n# Queues invert control flow but require flow control\n\nJuly 27, 2024\n\nFind my posts on IT strategy, enterprise architecture, and digital transformation\n at [ArchitectElevator.com](https://architectelevator.com/blog).\n\nQueues are key elements of any asynchronous system because they can [invert control flow](/ramblings/queues_control_flow.html). Because they can re-shape traffic, they enable us to build high-throughput systems\n that behave gracefully under heavy load. But all that magic doesn't come for free:\n to function well, queues require flow control. Time for another look at the venerable\n message queue.\n\n## Traffic Shaping\n\nAfter developing [a notation and vocabulary to express control flow](/ramblings/queues_control_flow.html), we can describe queues from a new dimension: time. We mentioned arrival and departure\n rates in the previous post: rates represent the first derivative of a variable over\n time. Hence, a message arrival rate describes how many messages arrive in a specified\n interval, e.g., per second. That arrival rate, in turn, varies over time and helps\n describe the dynamic behavior of any system. For example, peaks in the arrival rate\n are the typical cause of system overload. Also, the rate at which the arrival rate\n increases (the second derivative) defines how quickly a system has to scale up to\n respond to sudden load spikes (to underline its relevance, [AWS Lambda just improved that metric by up to 12x](https://aws.amazon.com/about-aws/whats-new/2023/12/aws-lambda-functions-scale-up/)).\n\nPlotting arrival rates over time provides a great way to depict the power of queues.\n Queues can flatten that message rate curve, also known as [Traffic Shaping](https://en.wikipedia.org/wiki/Traffic_shaping) in networking circles:\n\nWe see an uneven arrival rate of messages on the left, which turns into a nice and\n steady processing rate at the right. Naturally, when the arrival drops below the processing\n rate, the queue shrinks and once it is empty, the processing rate tracks the arrival\n rate as long as the latter is lower than the former. If the arrival exceeds the processing\n rate, the queue springs back into action. Many real-life queues allow receivers to\n process messages in batches instead of one-by-one, but we'll park that aspect for\n later.\n\nThe great advantage of traffic shaping is that it's much easier to build and tune\n a system that handles the traffic pattern on the right than one that handles the traffic\n on the left. Specifically, systems that queue requests and process them using a [worker pool](/patterns/messaging/CompetingConsumers.html) behave more gracefully under heavy load: response times will increase, but the system\n is less likely to collapse under its own weight thanks to constant processing rates.\n In contrast, synchronous systems can get so busy accepting new requests that they\n no longer have resources available to process existing requests. The sad result is\n that as load increases beyond a certain threshold, system throughput actually decreases,\n as shown in the diagram. It's easy to see that this isn't a good thing.\n\nThat's why queues are widely revered as a \"buffer\" to protect a system from the noisy\n and spiky world of flash sales, marketing campaigns, or denial of service attacks.\n Jamming messages into a queue at a high arrival rate is unlikely to overload the system.\n Meanwhile, the workers are chugging along at the optimal processing rate.\n\n## Something's gotta give\n\nNow, as architects we know that there are no miracles in system architecture, and\n the same is true for queues. As any element, a queue has finite capacity. Usually\n that capacity is high in comparison to processing capacity (like worker nodes) because\n storing messages is cheaper than running threads. Nevertheless, it is finite. Interestingly,\n both [Amazon SQS](https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/quotas-queues.html) and [GCP Pub/Sub](https://cloud.google.com/pubsub/quotas) state that there is no limit on the number of messages. \"Unlimited\" is a word that\n providers rarely use, but if we read carefully, \"unlimited\" just means that no explicit\n limit is set, so it doesn't equate to \"infinite\". We get a hint of that nuance when\n reading up on [Lambda function limits](https://docs.aws.amazon.com/lambda/latest/dg/gettingstarted-limits.html):\n\n> Each instance of your execution environment can serve an unlimited number of requests.\n> In other words, the total invocation limit is based only on concurrency available\n> to your function.\n\nSimilarly, GCP's Pub/Sub doesn't limit the number of messages that are retained, but\n it does limit the duration:\n\n> By default, a Subscription unacknowledged messages in persistent storage for 7 days\n> from the time of publication. There is no limit on the number of retained messages.\n\nEven in the absence of a hard limit, letting a queue grow arbitrarily may not be a\n good idea. [Little's Result](https://en.wikipedia.org/wiki/Little%27s_law), one of the fundamental equations of queuing theory, reminds us that the average\n wait time equals the number of customers in the system divided by the arrival rate.\n So, wait times goes up with queue length (Little's result assumes a stable system,\n one where the arrival rate doesn't consistently exceed the processing rate).\n\nLong wait times will impact the user experience. Messages, such as product orders,\n may no longer be relevant if it takes a year until they are processed. So, your system\n may technically function, but it no longer addresses your users' expectations, a great\n case of \"all lights are green, the system is down\".\n\n## Flow Control\n\nFor a queued system to perform adequately under consistently high load, it requires\n some form of [Flow Control](https://en.wikipedia.org/wiki/Flow_control_(data)).\n\nWikipedia describes the role of flow control as:\n\n> Managing the rate of data transmission between two nodes to prevent a fast sender\n> from overwhelming a slow receiver.\n\nAs we saw above, a queue provides flow control by decoupling the control flow between\n sender and receiver. But to do so effectively, it ultimately requires additional flow\n control.\n\nThree main mechanisms provide flow control to avoid filling a queue beyond its manageable\n or useful size and to keep the system stable:\n\n- *Time-to-live (TTL)* : A limited time to live drops old messages from the queue to make room for new messages.\n This approach works well for messages whose value decreases over time, such as data\n streams (the CPU utilization from 2 weeks ago may no longer be relevant for an alert)\n or customer orders (customers may be surprised to have an order processed that they\n placed weeks ago).\n- A *Tail drop* (see [Wikipedia](https://en.wikipedia.org/wiki/Tail_drop) ) does the opposite by dropping new messages that arrive. This may be appropriate\n if old messages are too valuable to be dropped or if senders have a feedback mechanism\n that allows them to realize that messages are being dropped, allowing them to retry\n later.\n- *Backpressure* informs upstream systems that the queue isn't able to handle incoming messages so\n that those systems can reduce the arrival rate, for example by showing an error message\n to the user.\n\nAlthough neither option appears particularly appealing, implementing explicit flow\n control is much better than letting excess traffic take its course. For example, when\n the AWS Serverless DA team built their [Serverlesspresso app](https://workshop.serverlesscoffee.com/), they found that their backend consisting of two baristas is easily overloaded by\n demand spikes for free coffee. They could queue requests, but learned that folks would\n not wait longer than a minute or two for their order to be completed. This led to\n wasted coffee plus a poor user experience as subsequent users would wait for the baristas\n to prepare coffees that were never picked up. So, the team resorted to back pressure\n to not allow new orders when the queue reached a specified size.\n\nDropping newly arriving messages may seem like a poor business choice—what if one\n of those messages includes a large order? In reality, though, insufficient flow control\n will lead to exactly the same effect: if an ecommerce website becomes overloaded,\n it will try to process orders already in the queue. Meanwhile, new customers can't\n place an order because the see an error message. Depending on the usefulness of the\n error message and the UI flow, such an error message could equate to backpressure,\n e.g., if the shopping basket is maintained for later order placement. Throwing a 500\n error when users try to place the order is the very definition of tail dropping.\n\nI am firm believer in [learning about architecture from real life situations](/ramblings/18_starbucks.html), so you will find all forms of flow control in many lines, e.g., those outside a\n popular club (we once waited over an hour to get into the then-famous Ghost bar on\n top of the Palms Casino in Las vegas). Customers will likely institute their own Time-to-live\n policy by eventually giving up. The bouncers may straight out-turn away arrivals in\n a tail-drop fashion. Or they may set up a secondary queue or holding place of sorts\n as a form of backpressure.\n\nYou'd expect the folks at the large cloud providers to know a thing or two about handling\n heavy load. Unsurprisingly, we can learn how AWS uses these mechanisms from an [article authored by one of their senior principal engineers](https://aws.amazon.com/builders-library/using-load-shedding-to-avoid-overload/), even though they don't use the common names:\n\n- \" *We've found it's extremely important to place an upper bound on the amount of time\n that an incoming request sits on a queue, and we throw it out if it's too old* .\" ≅ **Time-to-Live**\n- \" *The Application Load Balancer rejects excess traffic* \" ≅ **Tail Drop**\n\nPopular message queue systems like [RabbitMQ have built-in flow control](https://www.rabbitmq.com/docs/flow-control) to protect their queues:\n\n> A back pressure mechanism is applied by RabbitMQ nodes to publishing connections in\n> order to avoid runaway memory usage growth. RabbitMQ will reduce the speed of connections\n> which are publishing too quickly for queues to keep up.\n\n## Rate Limiting: Proactive Traffic Shaping\n\nBackpressure, TTL, and Tail Drop are the equivalent of a pressure relieve valve in\n that they engage once things are about to boil over. When you are designing a system\n that receives messages, you may know its limits upfront and avoid having to back off.\n That's why many cloud systems have explicit options to limit the delivery rate for\n push delivery. In a way, you are exerting constant back pressure to limit the rate\n of message arrival.\n\nEventBridge Pipes has an explicit (fixed) rate limit for external APIs (HTTP calls),\n through the [Invocation Rate Setting](https://docs.aws.amazon.com/eventbridge/latest/userguide/eb-api-destinations.html#eb-api-destination-create) for API Destinations. It invokes Lambda functions directly through an asynchronous\n invocation without any explicit limit (we assume the built-in drivers have an algorithm\n similar to GCP). Other event sources like SNS use so-called [Event Source Mapping](https://docs.aws.amazon.com/lambda/latest/dg/invocation-eventsourcemapping.html), which uses its own poller (i.e. *Driver*), configured via maximum batch size (counted in messages) and maximum time (counted\n in seconds).\n\nGCP Pub/Sub doesn't have an explicit setting, but relies on a [Slow Start Algorithm](https://cloud.google.com/pubsub/docs/push#delivery_rate) that increases delivery speed as long as the downstream system handles the load (indicated\n by a 99% acknowledgment rate and less than one second push request latency). If the\n receiver starts to struggle, the sender eases off.\n\nI found a quota of 5000 messages / second for Azure Event Grid push delivery, but\n I wasn't able to find how it backs off in case that it overloads downstream services.\n An article published on the [Messaging on Azure Blog](https://techcommunity.microsoft.com/t5/messaging-on-azure-blog/azure-event-grid-s-pull-delivery-performance/ba-p/4003820) shows dynamic traffic ramp-up, but it's for pull delivery:\n\n## Queues require flow control\n\nUnderstanding flow control allows us to build robust systems that include queues.\n We can summarize our key learning as:\n\n> Queues invert control flow but require flow control.\n\nA vocabulary to describe the dynamic behavior of asynchronous messaging systems allows\n us to build reliable systems and makes a useful addition to the existing [messaging patterns](/patterns/messaging) that mainly describe the data flow of messages.\n\n## Related posts\n\nYou may enjoy the other posts in this series:\n\n- [The Many Facets of Coupling](/ramblings/coupling_facets.html)\n- [Event-driven = Loosely coupled? Not so fast!](/ramblings/eventdriven_coupling.html)\n- [Control Flow—The Other Half of Integration Patterns](/ramblings/queues_control_flow.html)\n- [Starbucks Does not Use Two-Phase Commit](/ramblings/18_starbucks.html)\n\n*Share:*\n\n*Follow:* [Follow @ghohpe](https://twitter.com/ghohpe) [SUBSCRIBE TO FEED](../ramblings.rss)\n\n*More On:* [INTEGRATION](/ramblings_integration.html) [CLOUD](/ramblings_cloud.html) [EVENTS](/ramblings_events.html) [ALL RAMBLINGS](../ramblings.html)\n\nGregor is a cloud architect and author. He is a frequent speaker on asynchronous messaging,\n IT strategy, and cloud.", "znaku_textu": 13401, "slov": 1995, "odkazu": 63, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 14:54:33", "sha256": "ba3b539ffec6b6bac5565f12aa17bea56db30de542e5b914ee094fb735cd0629", "hloubka": 3, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://architectelevator.com/blog", "https://aws.amazon.com/about-aws/whats-new/2023/12/aws-lambda-functions-scale-up/", "https://en.wikipedia.org/wiki/Traffic_shaping", "https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/quotas-queues.html", "https://cloud.google.com/pubsub/quotas", "https://docs.aws.amazon.com/lambda/latest/dg/gettingstarted-limits.html", "https://en.wikipedia.org/wiki/Little's_law", "https://en.wikipedia.org/wiki/Flow_control_(data)", "https://en.wikipedia.org/wiki/Tail_drop", "https://workshop.serverlesscoffee.com/", "https://aws.amazon.com/builders-library/using-load-shedding-to-avoid-overload/", "https://www.rabbitmq.com/docs/flow-control", "https://docs.aws.amazon.com/eventbridge/latest/userguide/eb-api-destinations.html", "https://docs.aws.amazon.com/lambda/latest/dg/invocation-eventsourcemapping.html", "https://cloud.google.com/pubsub/docs/push", "https://techcommunity.microsoft.com/t5/messaging-on-azure-blog/azure-event-grid-s-pull-delivery-performance/ba-p/4003820", "https://twitter.com/share", "https://twitter.com/ghohpe", "https://leanpub.com/37things"]} {"url": "http://www.enterpriseintegrationpatterns.com/ramblings_architecture.html", "titulek": "Gregor’s Ramblings on Architecture - Enterprise Integration Patterns", "h1": "", "popis": "", "klicova_slova": "", "kanonicka": "", "jazyk": "", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [], "markdown": "Gregor’s Ramblings on Architecture\n\n---\n\n| My latest thoughts on integration architecture: |\n| --- |\n| [Queues invert control flow but require flow control](/ramblings/queues_flow_control.html) |\n| [Control Flow—The Other Half of Integration Patterns](/ramblings/queues_control_flow.html) |\n| [Event-driven = Loosely coupled? Not so fast!](/ramblings/eventdriven_coupling.html) |\n\n| [A Decade of Enterprise Integration Patterns](/articles.html)\n\r\n (IEEE Software) |\n| --- |\n| [20 Years of Patterns' Impact](/articles.html) \n\r\n (IEEE Software) |\n| [Conversations Between Loosely Coupled Services](http://www.infoq.com/presentations/hohpe-soa-conversations) \n\r\n (Video on [InfoQ](http://www.infoq.com)) |\n| [Developing in a Service-oriented World](http://www.infoq.com/presentations/hohpe-soa-development) \n\r\n (Video on [InfoQ](http://www.infoq.com)) |\n| [SOA Patterns - New Insights or Recycled Knowledge?](/docs/SoaPatterns.pdf)\n\r\n (Whitepaper) |\n| [Let's Have a Conversation](/docs/IEEE_IC_Conversations.pdf)\n(IEEE Internet Computing) |\n| [Programming Without a Call Stack - Event-driven Architectures](/docs/EDA.pdf)\n(ObjektSpektrum, 2006) |\n| [Your Coffee Shop Does Not Use Two-Phase Commit](/docs/IEEE_Software_Design_2PC.pdf)\n\r\n (IEEE Software) |\n| [Developing in a Service-Oriented World](/docs/SOA_World.pdf)\n(ThoughtWorks Whitepaper) |\n| [An Asynchronous World](http://www.drdobbs.com/an-asynchronous-world/184415001)\n\r\n (Software Development) |\n\n| [Nearfield Communication (NFC) in Japan](/docs/NfcOopHohpe.pdf)\n(OOP 2012) |\n| --- |\n| [Embedded OSS](/docs/EmbeddedOop.pdf)\n(OOP 2012) |\n| [Programming the Cloud](https://sites.google.com/site/gcodejp/slides/ProgrammingCloud_QCon.pdf)\n(QCOn Tokyo 2010) |\n| [Distributed Programming the Google Way](/docs/DistributedProgrammingGoogle.pdf)\n(Devoxx 2009) |\n| [Developing in a Service-Oriented World](/docs/hohpe_developing_in_soa_world.pdf)\n(SOACon 2007) |\n| [Programming without a Call Stack: Event-driven Architectures](/docs/hohpe_event_driven_architectures.pdf)\n(SOACon 2007) |\n| [Software Visualization and Model Extraction](/docs/TSS_software_visualization.pdf)\n(TheServerSide) |\n| [Where did all my beatiful code go?](/docs/SpringOneKeynotePub.pdf)\n(SpringOne, 2006) |\n| [Conversations Between Loosely Coupled Systems](/docs/Conversations_loosely_coupled.pdf)\n(SD West, 2006) |\n| [Enterprise Integration Patterns](/docs/jaoo_hohpeg_enterpriseintegrationpatterns.pdf)\n(JAOO, 2003) |\n\nThis blog chronicles my journey with asynchronous and distributed system design over\n two decades.\n \n These are my Ramblings related to **Architecture** [See [all Ramblings](/ramblings.html)]. \n Subscribe to my ramblings via [RSS](ramblings.rss).\n\nFind my posts on IT strategy, enterprise architecture, and digital transformation\n at [ArchitectElevator.com](https://architectelevator.com/blog).\n\n---\n\n[How to Scale an Organization? The same way you scale a system!](ramblings/92_scaling.html) January 12, 2016\n\nThe digital world is all about scalability: millions of web sites, billions of hits\n per month, more data, more tweets, more images uploaded. To make this work, architects\n have learned a ton about scaling systems. With everything around us scaling to never-before-seen\n throughput, the limiting element in all this is bound to be us, the human users. And\n the organizations we work in. One may wonder, then, why scaling and optimizing throughput\n in organizations is considered a very different field usually completely ignored by\n the IT architects. I feel that many of the scalability and performance enhancement\n approaches experienced IT architects know can be just as well used to scale organizations.\n If a coffee shop can teach us about maximizing a system’s throughput, maybe our knowledge\n of IT systems design can help improve the performance of organizations! [Read more Âť](/ramblings/92_scaling.html)\n\n[The Architect’s Penthouse Bookshelf](ramblings/91_bookshelfpenthouse.html) Dec 28, 2015\n\nWhen you hitchhike through the galaxy, a towel will generally do. To ride the you\n need to be a bit better equipped. Riding the elevator up and down is exciting and\n provides tremendous value to the organization. But it is also demanding as you need\n to adjust to different audiences, backgrounds and dynamics, becoming a technology\n shapeshifter of sorts. To help with this transformation, I recommended a few books\n for each major section of the corporate high-rise. [Read more Âť](/ramblings/91_bookshelfpenthouse.html)\n\n[If software eats the world, you better use version control!](ramblings/90_softwareeatstheworld.html) Dec 6, 2015\n\nAs I recently observed, Corporate IT tends to be afraid of code: code is where all\n the pesky bugs come from, which have to be fixed by quirky, expensive, and unreliable\n developers or external consultants. This attitude plays to the favor of vendors who\n peddle products that \"only\" require configuration, as opposed to coding. Sadly, most\n configuration is really just programming in a poorly designed, rather constrained\n language without decent tooling or useful documentation. Being afraid of code and\n being unfamiliar with the modern development lifecycle is a dangerous proposition\n in a world where everything is becoming software-defined. [Read more Âť](/ramblings/90_softwareeatstheworld.html)\n\n[If you never kill anything, you will live among zombies. And they will eat your brain.](ramblings/89_zombies.html) Sept 27, 2015\n\nCorporate IT lives among zombies: old systems that are half alive and have everyone\n in fear of going anywhere near them. They are also tough to kill completely. Worse\n yet, they eat IT staff's brains. It's like Shaun of the Dead minus the funny parts. [Read more Âť](/ramblings/89_zombies.html)\n\n[Movie Star Architects](ramblings/88_moviestararchitects.html) Aug 1, 2015\n\nI recently wrote about architects and the role they play in large organizations. Still,\n the question often remains what an architect should be doing besides \"riding the elevator\".\n Let's try another analogy: movie characters. [Read more Âť](/ramblings/88_moviestararchitects.html)\n\n[Virtualization Matryoshka](ramblings/87_matryoshka.html) July 15, 2015\n\nIT loves virtualizing stuff, following the old rule that in computer science every\n problem can be solved by just one more level of indirection. Cloud computing is based\n on virtualization of compute resources - you don't need to know which machine your\n application is actually running on and you can get new ones with the click of a button.\n Before cloud was a buzzword, though, VMware and others have virtualized machines at\n the operating system levels. Recently (in terms of buzz, not technology), containers\n bring another level of light-weight virtualization of resources. And let's not forget\n the Java Virtual Machine, which also claims a level of virtualization. What are we\n supposed to do with all these levels of virtualization? [Read more Âť](/ramblings/87_matryoshka.html)\n\n[Is This Architecture? Look for Decisions!](ramblings/86_isthisarchitecture.html) June 15, 2015\n\nPart of my job is to review system architectures. So I frequently ask teams to show\n me \"their architecture\", but almost as frequently I don't consider what I receive\n an architecture document. The inevitable question \"what do you expect?\" is also not\n so easy for me to answer: despite many formal definitions it's not immediately clear\n what architecture is or whether a document really depicts an architecture. One important\n test I apply is whether the document or the description contains any non-trivial decisions\n and the rationale behind them. [Read more Âť](/ramblings/86_isthisarchitecture.html)\n\n[SATURN Conference 2015](ramblings/84_saturn.html) May 1, 2015\n\nI have not blogged about events in a while, but SATURN 2015 has been an amazing event\n that's well worth rambling about. [Read more Âť](/ramblings/84_saturn.html)\n\n[The Architect Elevator](ramblings/79_elevator.html) JAN 15, 2015\n\nArchitects frequently play a critical role as connecting and communicating element\n between multiple parties. Especially in large organizations such communication is\n an important factor: too many parties speak different languages to convey different,\n and often conflicting, objectives. Many layers of management only exacerbate the problem\n as communicating to corporate leadership resembles the \"telephone game\" where a circle\n of kids relays a message one-by-one just to realize at the end that the message has\n completely changed along the way. [Read more Âť](/ramblings/79_elevator.html)\n\n[The 3 Legs of an Architect](ramblings/78_threelegs.html) DEC 28, 2014\n\nDefining what a software or IT architect is or does is no less challenging than defining\n software architecture itself. The SEI maintains a list of software architecture definitions,\n yet I have not seen a corresponding list for software architects. One could try to\n skirt the issue by declaring that software architects are the people who make software\n architecture. However, I think that this approach would be missing some important\n aspects of being an architect. [Read more Âť](/ramblings/78_threelegs.html)\n\n[SOA's and Drunk Driving](ramblings/21_drunkdriving.html) January 17, 2005\n\nHappy New Year everybody! Over the holidays I tried to sort out some of my thoughts\n on Web services, SOA, architectural styles, coupling and all the other good stuff.\n I started to think about service-oriented architectures as an architectural style\n and how it compares to prior styles, such as distributed component architectures.\n Maybe it was the New Year's mood but I started to think that the evolution of architectural\n styles is a little bit like drunk driving... [Read more Âť](/ramblings/21_drunkdriving.html)\n\n[The Dark Side of Encapsulation?](ramblings/05_encapsulation.html) December 12, 2003\n\nEncapsulation and abstraction are the holy grail of today's software development.\n One of the great successes of hiding the implementation details under a common, abstracted\n interface are TCP/IP stacks. But as so often, overwhelming success can also have a\n flip side. [Read more Âť](/ramblings/05_encapsulation.html)\n\n---", "znaku_textu": 10035, "slov": 1277, "odkazu": 77, "kodovani": "iso-8859-2", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 15:35:10", "sha256": "8ffabfe8fab22aab7dbb095e6cc61f740d46145fe2f341f6ebc37042e5999564", "hloubka": 4, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://www.infoq.com/presentations/hohpe-soa-conversations", "http://www.infoq.com/", "http://www.infoq.com/presentations/hohpe-soa-development", "http://www.drdobbs.com/an-asynchronous-world/184415001", "https://sites.google.com/site/gcodejp/slides/ProgrammingCloud_QCon.pdf", "https://architectelevator.com/blog"]} {"url": "http://www.enterpriseintegrationpatterns.com/ramblings_cloud.html", "titulek": "Gregor’s Ramblings on Cloud - Enterprise Integration Patterns", "h1": "", "popis": "", "klicova_slova": "", "kanonicka": "", "jazyk": "", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [], "markdown": "Gregor’s Ramblings on Cloud\n\n---\n\n| My latest thoughts on integration architecture: |\n| --- |\n| [Queues invert control flow but require flow control](/ramblings/queues_flow_control.html) |\n| [Control Flow—The Other Half of Integration Patterns](/ramblings/queues_control_flow.html) |\n| [Event-driven = Loosely coupled? Not so fast!](/ramblings/eventdriven_coupling.html) |\n\n| [A Decade of Enterprise Integration Patterns](/articles.html)\n\r\n (IEEE Software) |\n| --- |\n| [20 Years of Patterns' Impact](/articles.html) \n\r\n (IEEE Software) |\n| [Conversations Between Loosely Coupled Services](http://www.infoq.com/presentations/hohpe-soa-conversations) \n\r\n (Video on [InfoQ](http://www.infoq.com)) |\n| [Developing in a Service-oriented World](http://www.infoq.com/presentations/hohpe-soa-development) \n\r\n (Video on [InfoQ](http://www.infoq.com)) |\n| [SOA Patterns - New Insights or Recycled Knowledge?](/docs/SoaPatterns.pdf)\n\r\n (Whitepaper) |\n| [Let's Have a Conversation](/docs/IEEE_IC_Conversations.pdf)\n(IEEE Internet Computing) |\n| [Programming Without a Call Stack - Event-driven Architectures](/docs/EDA.pdf)\n(ObjektSpektrum, 2006) |\n| [Your Coffee Shop Does Not Use Two-Phase Commit](/docs/IEEE_Software_Design_2PC.pdf)\n\r\n (IEEE Software) |\n| [Developing in a Service-Oriented World](/docs/SOA_World.pdf)\n(ThoughtWorks Whitepaper) |\n| [An Asynchronous World](http://www.drdobbs.com/an-asynchronous-world/184415001)\n\r\n (Software Development) |\n\n| [Nearfield Communication (NFC) in Japan](/docs/NfcOopHohpe.pdf)\n(OOP 2012) |\n| --- |\n| [Embedded OSS](/docs/EmbeddedOop.pdf)\n(OOP 2012) |\n| [Programming the Cloud](https://sites.google.com/site/gcodejp/slides/ProgrammingCloud_QCon.pdf)\n(QCOn Tokyo 2010) |\n| [Distributed Programming the Google Way](/docs/DistributedProgrammingGoogle.pdf)\n(Devoxx 2009) |\n| [Developing in a Service-Oriented World](/docs/hohpe_developing_in_soa_world.pdf)\n(SOACon 2007) |\n| [Programming without a Call Stack: Event-driven Architectures](/docs/hohpe_event_driven_architectures.pdf)\n(SOACon 2007) |\n| [Software Visualization and Model Extraction](/docs/TSS_software_visualization.pdf)\n(TheServerSide) |\n| [Where did all my beatiful code go?](/docs/SpringOneKeynotePub.pdf)\n(SpringOne, 2006) |\n| [Conversations Between Loosely Coupled Systems](/docs/Conversations_loosely_coupled.pdf)\n(SD West, 2006) |\n| [Enterprise Integration Patterns](/docs/jaoo_hohpeg_enterpriseintegrationpatterns.pdf)\n(JAOO, 2003) |\n\nThis blog chronicles my journey with asynchronous and distributed system design over\n two decades.\n \n These are my Ramblings related to **Cloud** [See [all Ramblings](/ramblings.html)]. \n Subscribe to my ramblings via [RSS](ramblings.rss).\n\nFind my posts on IT strategy, enterprise architecture, and digital transformation\n at [ArchitectElevator.com](https://architectelevator.com/blog).\n\n---\n\n[Queues invert control flow but require flow control](ramblings/queues_flow_control.html) July 27, 2024\n\nQueues are key elements of any asynchronous system because they can invert control\n flow. Their ability to re-shape traffic enables high-throughput systems that behave\n gracefully under heavy load. But all that magic doesn't come for free: to function\n well, queues require flow control [Read more Âť](/ramblings/queues_flow_control.html)\n\n[Control Flow—The Other Half of Integration Patterns](ramblings/queues_control_flow.html) July 30, 2024\n\nWhen describing messaging systems, it's natural to focus on data flow. However, control\n flow is what gives those systems their critical runtime properties like resilience\n or low latency. It's time to make control flow a first-class consideration. [Read more Âť](/ramblings/queues_control_flow.html)\n\n[Event-driven = Loosely coupled? Not so fast!](ramblings/eventdriven_coupling.html) June 20, 2024\n\nEvent-driven architectures (EDAs) are frequently pitched as loosely coupled, when\n compared to other forms of integration. Coupling is a multi-faceted and nuanced property,\n so as architects we should have a closer look. [Read more Âť](/ramblings/eventdriven_coupling.html)\n\n[The Many Facets of Coupling](ramblings/coupling_facets.html) June 10, 2024\n\nCoupling is integration's magic word. Despite entire books being written on the subject,\n it's still widely recited as a \"loose coupling is good\" mantra. Coupling deserves\n better, so let's clarify the dimensions and nuances of coupling. [Read more Âť](/ramblings/coupling_facets.html)\n\n[Serverless Loan Broker @ GCP](ramblings/loanbroker_gcp_workflows.html) May 20, 2022\n\nDo serverless solutions lock you in? Let's find out by porting / rebuilding the Serverless\n Loan Broker on top of Google's Cloud Platform (GCP). [Read more Âť](/ramblings/loanbroker_gcp_workflows.html)\n\n[Serverless Loan Broker @ AWS, Part 5: Integration Patterns with CDK](ramblings/loanbroker_cdk.html) Jan 25, 2022\n\nInfrastructure as Code (IaC) brings repeatability into the provisioning and deployment\n of cloud applications. However, the vocabulary used by most automation tools describes\n cloud platform resources as compared to the application's intent. As serverless applications\n take us further away from the infrastructure, we should also find better abstractions\n to express our automation. Perhaps, Enterprise Integration Patterns give us a head\n start? [Read more Âť](/ramblings/loanbroker_cdk.html)\n\n[Serverless Loan Broker @ AWS, Part 4: Automation](ramblings/loanbroker_automation.html) November 30, 2021\n\nInfrastructure as Code (IaC) has a whole new meaning for serverless applications.\n Rather than provision resources (the serverless frameworks do that for us), automation\n determines the system composition and configuration. As expected, quite a few options\n are available from simple command line to programming frameworks. Time to have a look. [Read more Âť](/ramblings/loanbroker_automation.html)\n\n[Serverless Loan Broker @AWS, Part 3: Publish-Subscribe with SNS](ramblings/loanbroker_stepfunctions_pubsub.html) July 20, 2021\n\nPart 3 of the mini-series on implementing the EIP Loan Broker as a serverless solution\n with AWS Step Functions uses a Publish-Subscribe Channel and a stand-alone Aggregator\n to request and process loan quotes. [Read more Âť](/ramblings/loanbroker_stepfunctions_pubsub.html)\n\n[Loan Broker @AWS, Part 2: Recipient List](ramblings/loanbroker_stepfunctions_recipient_list.html) July 20, 2021\n\nIn part 2 of this blog series I implement the Loan Broker Example using a Recipient\n List pattern, implemented in DynamoDB, Step Functions, and Lambda. [Read more Âť](/ramblings/loanbroker_stepfunctions_recipient_list.html)\n\n[Loan Broker Implementation with AWS Step Functions](ramblings/loanbroker_stepfunctions.html) July 20, 2021\n\nA lot has happened since we implemented the Loan Broker Example in EIP: we have the\n cloud, serverless computing, machine learning, service meshes and all sorts of other\n bells and whistles. Nevertheless, the integration patterns have passed the test of\n time as we shall see by implementing the original loan broker example with AWS Lambda\n and AWS Step Functions. [Read more Âť](/ramblings/loanbroker_stepfunctions.html)\n\n[Serverless Integration Patterns on Google Cloud Functions](ramblings/google_cloud_functions.html) April 20, 2017\n\nAfter examining which patterns are embedded in Google Cloud Pub/Sub in an earlier\n post, I implemented a few common patterns on top of Google Cloud Functions, Google's\n serverless implementation. It's amazing how easy it has become to get messaging patterns\n running in the cloud with only a minimum of wrapper code. [Read more Âť](/ramblings/google_cloud_functions.html)\n\n[Virtualization Matryoshka](ramblings/87_matryoshka.html) July 15, 2015\n\nIT loves virtualizing stuff, following the old rule that in computer science every\n problem can be solved by just one more level of indirection. Cloud computing is based\n on virtualization of compute resources - you don't need to know which machine your\n application is actually running on and you can get new ones with the click of a button.\n Before cloud was a buzzword, though, VMware and others have virtualized machines at\n the operating system levels. Recently (in terms of buzz, not technology), containers\n bring another level of light-weight virtualization of resources. And let's not forget\n the Java Virtual Machine, which also claims a level of virtualization. What are we\n supposed to do with all these levels of virtualization? [Read more Âť](/ramblings/87_matryoshka.html)\n\n[Google Cloud Pub/Sub](ramblings/82_googlepubsub.html) APR 8, 2015\n\nGoogle released the beta version of their publish-subscribe API just a few weeks ago.\n I show how to build a very simple demo app using the Java API and map the functionality\n to integration patterns to illustrate the design choices the team made. [Read more Âť](/ramblings/82_googlepubsub.html)\n\n[Clouds and Integration Patterns at JavaOne](ramblings/71_javaone.html) OCT 1, 2009\n\nI joined JavaOne this year as a panelist on Cloud Computing. Here my belated impressions\n on this year's JavaOne. [Read more Âť](/ramblings/71_javaone.html)\n\n---", "znaku_textu": 8952, "slov": 1052, "odkazu": 79, "kodovani": "iso-8859-2", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 15:35:11", "sha256": "35c4c3517d2e372c73a6999bc1197bbcc5728a3b9b089fc8290f6efb431816fc", "hloubka": 4, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://www.infoq.com/presentations/hohpe-soa-conversations", "http://www.infoq.com/", "http://www.infoq.com/presentations/hohpe-soa-development", "http://www.drdobbs.com/an-asynchronous-world/184415001", "https://sites.google.com/site/gcodejp/slides/ProgrammingCloud_QCon.pdf", "https://architectelevator.com/blog"]} {"url": "http://www.enterpriseintegrationpatterns.com/ramblings_conversations.html", "titulek": "Gregor’s Ramblings on Conversations - Enterprise Integration Patterns", "h1": "", "popis": "", "klicova_slova": "", "kanonicka": "", "jazyk": "", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [], "markdown": "Gregor’s Ramblings on Conversations\n\n---\n\n| My latest thoughts on integration architecture: |\n| --- |\n| [Queues invert control flow but require flow control](/ramblings/queues_flow_control.html) |\n| [Control Flow—The Other Half of Integration Patterns](/ramblings/queues_control_flow.html) |\n| [Event-driven = Loosely coupled? Not so fast!](/ramblings/eventdriven_coupling.html) |\n\n| [A Decade of Enterprise Integration Patterns](/articles.html)\n\r\n (IEEE Software) |\n| --- |\n| [20 Years of Patterns' Impact](/articles.html) \n\r\n (IEEE Software) |\n| [Conversations Between Loosely Coupled Services](http://www.infoq.com/presentations/hohpe-soa-conversations) \n\r\n (Video on [InfoQ](http://www.infoq.com)) |\n| [Developing in a Service-oriented World](http://www.infoq.com/presentations/hohpe-soa-development) \n\r\n (Video on [InfoQ](http://www.infoq.com)) |\n| [SOA Patterns - New Insights or Recycled Knowledge?](/docs/SoaPatterns.pdf)\n\r\n (Whitepaper) |\n| [Let's Have a Conversation](/docs/IEEE_IC_Conversations.pdf)\n(IEEE Internet Computing) |\n| [Programming Without a Call Stack - Event-driven Architectures](/docs/EDA.pdf)\n(ObjektSpektrum, 2006) |\n| [Your Coffee Shop Does Not Use Two-Phase Commit](/docs/IEEE_Software_Design_2PC.pdf)\n\r\n (IEEE Software) |\n| [Developing in a Service-Oriented World](/docs/SOA_World.pdf)\n(ThoughtWorks Whitepaper) |\n| [An Asynchronous World](http://www.drdobbs.com/an-asynchronous-world/184415001)\n\r\n (Software Development) |\n\n| [Nearfield Communication (NFC) in Japan](/docs/NfcOopHohpe.pdf)\n(OOP 2012) |\n| --- |\n| [Embedded OSS](/docs/EmbeddedOop.pdf)\n(OOP 2012) |\n| [Programming the Cloud](https://sites.google.com/site/gcodejp/slides/ProgrammingCloud_QCon.pdf)\n(QCOn Tokyo 2010) |\n| [Distributed Programming the Google Way](/docs/DistributedProgrammingGoogle.pdf)\n(Devoxx 2009) |\n| [Developing in a Service-Oriented World](/docs/hohpe_developing_in_soa_world.pdf)\n(SOACon 2007) |\n| [Programming without a Call Stack: Event-driven Architectures](/docs/hohpe_event_driven_architectures.pdf)\n(SOACon 2007) |\n| [Software Visualization and Model Extraction](/docs/TSS_software_visualization.pdf)\n(TheServerSide) |\n| [Where did all my beatiful code go?](/docs/SpringOneKeynotePub.pdf)\n(SpringOne, 2006) |\n| [Conversations Between Loosely Coupled Systems](/docs/Conversations_loosely_coupled.pdf)\n(SD West, 2006) |\n| [Enterprise Integration Patterns](/docs/jaoo_hohpeg_enterpriseintegrationpatterns.pdf)\n(JAOO, 2003) |\n\nThis blog chronicles my journey with asynchronous and distributed system design over\n two decades.\n \n These are my Ramblings related to **Conversations** [See [all Ramblings](/ramblings.html)]. \n Subscribe to my ramblings via [RSS](ramblings.rss).\n\nFind my posts on IT strategy, enterprise architecture, and digital transformation\n at [ArchitectElevator.com](https://architectelevator.com/blog).\n\n---\n\n[Free Gift with Subscription (Pattern)](ramblings/83_subscribing.html) APR 26, 2015\n\nDiscussing the Google cloud Pub/Sub system in the last rambling reminded me that the\n Publish-subscribe Channel pattern makes for a good example of the subtle but important\n difference between Messaging Patterns and Conversation Patterns. This comparison is\n timely as I picked up documenting Conversation Patterns again. [Read more »](/ramblings/83_subscribing.html)\n\n[RESTful Conversations](ramblings/81_restconversation.html) MAR 15, 2015\n\nAs indicated a good while ago I spent some time thinking about patterns that instead\n of following a message through multiple systems, looks at the message exchange over\n time between a (mostly) fixed set of systems. I call these message exchanges \"conversations\".\n Sadly my writing efforts on Conversation Patterns fell very much asleep around 2008,\n partly due to my fear that with the rise of REST, stateful conversations between systems\n would step into the background as most integration problems are now solved with a\n simple POST or GET. A presentation and conversation at Frank Leymann's IaaS PhD Seminar\n enlightened me that this is not at all true: systems following the REST architectural\n style very much engage in conversations. [Read more »](/ramblings/81_restconversation.html)\n\n[EIP Visions](ramblings/72_eipvolumes.html) JAN 22, 2010\n\nThe beginning of a New Year is the time to reflect on the past and make resolutions\n for the future. It's become my tradition to kick off the year with some reflection\n on EIP, so here we go. [Read more »](/ramblings/72_eipvolumes.html)\n\n[Double-Dipping: OOPSLA and Colorado Software Summit](ramblings/64_oopslacss.html) October 27, 2007\n\nI am just returning from a trip to Montreal and Keystone, CO for the OOPSLA and Colorado\n Software Summit conferences. I spoke on SOA Patterns, workshopped my conversation\n pattern paper, and gave six talks on event-driven architectures and building mashups\n using Yahoo! Pipes and Google Mashup Editor. Phew! [Read more »](/ramblings/64_oopslacss.html)\n\n[Dagstuhl Seminar](ramblings/44_dagstuhl.html) Aug 20, 2006\n\nI just returned from a trip to Germany to attend a workshop on The Role of Business\n Processes in Service Oriented Architecture. Besides a guaranteed top score in buzzword\n bingo the workshop provided a unique opportunity to connect thought leaders from academia\n and industry over the course of a week. The attendee roster sported the usual industry\n heavyweights, i.e., Microsoft, IBM, SAP, making me proud to add Google to the list.\n [Read more »](/ramblings/44_dagstuhl.html)\n\n[Will the Real Asynchrony Please Stand Up?](ramblings/28_asynchrony.html) May 15, 2005\n\nOn a recent project we developed a Web services framework that supports asynchronous\n callbacks and asynchronous invocation with polling. The difficulties we had describing\n what we were trying to do to my fellow ThoughtWorkers on other projects prompted me\n to discuss the different forms of asynchrony in a little more detail. [Read more »](/ramblings/28_asynchrony.html)\n\n[Starbucks Does Not Use Two-Phase Commit](ramblings/18_starbucks.html) November 19, 2004\n\nPeople often criticize asynchronous messaging solutions as too complicated and cumbersome.\n Or, they believe distributed solutions cannot be successful unless they include a\n distributed transaction model. There is little doubt that asynchronous solutions require\n us to think in new ways as we have to deal with concurrency, out-of-sequence issues,\n correlation and other. However, the real world is full of examples of asynchronous\n processes that deal successfully with exactly the same issues. We don't have to go\n further than the local coffee shop... [Read more »](/ramblings/18_starbucks.html)\n\n[Correlation and Conversations](ramblings/09_correlation.html) May 21, 2004\n\nWhen using asynchronous messaging, we can no longer rely on the linear, in-sequence\n execution of events. Therefore, the notion of correlating multiple messages is fundamental\n to designing robust messaging solutions. While correlation seems to be a simple concept\n at first glance, there are quite a few interesting nuances. [Read more »](/ramblings/09_correlation.html)\n\n---", "znaku_textu": 6966, "slov": 823, "odkazu": 67, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 15:35:12", "sha256": "8b26f10c4b0a0c2c1757804a81842e808d3dd2615b834179d525e243063dc9ff", "hloubka": 4, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://www.infoq.com/presentations/hohpe-soa-conversations", "http://www.infoq.com/", "http://www.infoq.com/presentations/hohpe-soa-development", "http://www.drdobbs.com/an-asynchronous-world/184415001", "https://sites.google.com/site/gcodejp/slides/ProgrammingCloud_QCon.pdf", "https://architectelevator.com/blog"]} {"url": "http://www.enterpriseintegrationpatterns.com/ramblings_design.html", "titulek": "Gregor’s Ramblings on Design - Enterprise Integration Patterns", "h1": "", "popis": "", "klicova_slova": "", "kanonicka": "", "jazyk": "", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [], "markdown": "Gregor’s Ramblings on Design\n\n---\n\n| My latest thoughts on integration architecture: |\n| --- |\n| [Queues invert control flow but require flow control](/ramblings/queues_flow_control.html) |\n| [Control Flow—The Other Half of Integration Patterns](/ramblings/queues_control_flow.html) |\n| [Event-driven = Loosely coupled? Not so fast!](/ramblings/eventdriven_coupling.html) |\n\n| [A Decade of Enterprise Integration Patterns](/articles.html)\n\r\n (IEEE Software) |\n| --- |\n| [20 Years of Patterns' Impact](/articles.html) \n\r\n (IEEE Software) |\n| [Conversations Between Loosely Coupled Services](http://www.infoq.com/presentations/hohpe-soa-conversations) \n\r\n (Video on [InfoQ](http://www.infoq.com)) |\n| [Developing in a Service-oriented World](http://www.infoq.com/presentations/hohpe-soa-development) \n\r\n (Video on [InfoQ](http://www.infoq.com)) |\n| [SOA Patterns - New Insights or Recycled Knowledge?](/docs/SoaPatterns.pdf)\n\r\n (Whitepaper) |\n| [Let's Have a Conversation](/docs/IEEE_IC_Conversations.pdf)\n(IEEE Internet Computing) |\n| [Programming Without a Call Stack - Event-driven Architectures](/docs/EDA.pdf)\n(ObjektSpektrum, 2006) |\n| [Your Coffee Shop Does Not Use Two-Phase Commit](/docs/IEEE_Software_Design_2PC.pdf)\n\r\n (IEEE Software) |\n| [Developing in a Service-Oriented World](/docs/SOA_World.pdf)\n(ThoughtWorks Whitepaper) |\n| [An Asynchronous World](http://www.drdobbs.com/an-asynchronous-world/184415001)\n\r\n (Software Development) |\n\n| [Nearfield Communication (NFC) in Japan](/docs/NfcOopHohpe.pdf)\n(OOP 2012) |\n| --- |\n| [Embedded OSS](/docs/EmbeddedOop.pdf)\n(OOP 2012) |\n| [Programming the Cloud](https://sites.google.com/site/gcodejp/slides/ProgrammingCloud_QCon.pdf)\n(QCOn Tokyo 2010) |\n| [Distributed Programming the Google Way](/docs/DistributedProgrammingGoogle.pdf)\n(Devoxx 2009) |\n| [Developing in a Service-Oriented World](/docs/hohpe_developing_in_soa_world.pdf)\n(SOACon 2007) |\n| [Programming without a Call Stack: Event-driven Architectures](/docs/hohpe_event_driven_architectures.pdf)\n(SOACon 2007) |\n| [Software Visualization and Model Extraction](/docs/TSS_software_visualization.pdf)\n(TheServerSide) |\n| [Where did all my beatiful code go?](/docs/SpringOneKeynotePub.pdf)\n(SpringOne, 2006) |\n| [Conversations Between Loosely Coupled Systems](/docs/Conversations_loosely_coupled.pdf)\n(SD West, 2006) |\n| [Enterprise Integration Patterns](/docs/jaoo_hohpeg_enterpriseintegrationpatterns.pdf)\n(JAOO, 2003) |\n\nThis blog chronicles my journey with asynchronous and distributed system design over\n two decades.\n \n These are my Ramblings related to **Design** [See [all Ramblings](/ramblings.html)]. \n Subscribe to my ramblings via [RSS](ramblings.rss).\n\nFind my posts on IT strategy, enterprise architecture, and digital transformation\n at [ArchitectElevator.com](https://architectelevator.com/blog).\n\n---\n\n[DDD - Diagram Driven Design](ramblings/75_ddd.html) MAR 22, 2010\n\nDrawing a picture turns out to be a useful system design technique. [Read more Âť](/ramblings/75_ddd.html)\n\n[Into the Clouds on New Acid](ramblings/68_acid.html) Mar 20, 2009\n\nI have been speaking more frequently about cloud computing in recent days. As SOA\n is becoming a daily reality, I needed to advance to new, still slightly nebulous topic.\n What could be a better fit than cloud computing? All jokes aside, cloud computing\n provides for some interesting discussions and one should safely assume that Google\n has a word or two to say about it. [Read more Âť](/ramblings/68_acid.html)\n\n[API's are for Humans, too](ramblings/55_api.html) June 19, 2007\n\nWhen graphical user interfaces became popular thrifty people had the idea that they\n could generate them automatically. Well, that bubble burst pretty quickly. When people\n say nothing is new with Web services, they are right in this case. Once again people\n want to generate the interface automatically. [Read more Âť](/ramblings/55_api.html)\n\n[Eric Newcomer is on to me](ramblings/53_eric.html) May 26, 2007\n\nYou can only get away with joking about transactions for so long before the gods of\n transactions bring you to justice. So is was only a matter of time before Eric Newcomer\n would catch me waxing about coffee and transactional integrity... [Read more Âť](/ramblings/53_eric.html)\n\n[EAI DSLs](ramblings/42_eaidsl.html) May 23, 2006\n\nI am so clever. In my very first professional project in the US over 10 years ago\n I used a DSL to solve an EAI problem. If those buzzwords had been around at the time\n I would have been pretty cool, too. I guess you can’t have everything. [Read more Âť](/ramblings/42_eaidsl.html)\n\n[The Metrics Maid](ramblings/41_metrics.html) April 28, 2006\n\nSome of the most hated people in San Francisco must be the meter maids, the DPT people\n who drive around in golf carts and hand out tickets to anyone who overslept street\n cleaning or did not have enough quarters for the meter. On some projects, the most\n hated people are the metric maids, the people who go around and try to sum up a developer’s\n hard work and intellectual genius in a number between 1 and 10. [Read more Âť](/ramblings/41_metrics.html)\n\n[March is Not a Number](ramblings/40_marchnan.html) April 16, 2006\n\nA lot of discussion these days relates to DSL's (Domain Specific Languages) that allow\n business models and rules to expressed in a more readable fashion in the source code.\n Ultimately one might be able to share the executable source of the system with the\n business users to validate that this is what they wanted. While Java is not necessarily\n the greatest language to \"host\" a DSL we can go a lot further than developers generally\n believe or care for. [Read more Âť](/ramblings/40_marchnan.html)\n\n[What is in a Name?](ramblings/39_namingchannels.html) Mar 5, 2006\n\nComputer science is known as the field where every problem can be solved by just one\n more level of indirection. Well, a message channel berween two components is such\n a level of indirection. As it turns out naming this additional element can have a\n more profound influence on the system design than might appear at first. [Read more Âť](/ramblings/39_namingchannels.html)\n\n[Of Boxes and Lines](ramblings/38_interaction.html) Feb 25, 2006\n\nAfter joining the big G I put particular emphasis on staying in touch with the .Net\n community. For one thing, a fair number of my intellectual drinking buddies tend to\n congregate around the large software company in the Pacific Northwest. Second, as\n a believer in cross-platform integration, technology-neutral design patterns and peace\n on earth I want to make sure I switch the koolaid flavor every so often. One opportunity\n to do that presented itself at OOP in Munich where Ralf Westphal invited me to speak\n on distributed system architectures as part of the .Net track. During the proverbial\n hallway discussions we started talking about boxes and lines, but in a profound way...\n [Read more Âť](/ramblings/38_interaction.html)\n\n[What Color Are My Shoes?](ramblings/34_cb.html) September 1, 2005\n\nTwo weeks ago I attended a very small, but special conference on enterprise software\n development. Here is what I came away with.. [Read more Âť](/ramblings/34_cb.html)\n\n[Interface User](ramblings/33_interface.html) August 5, 2005\n\nOne of the biggest perceived fears of authors is that someone publishes a book or\n an article on the same topic just ever so slightly ahead of you that you have done\n all the work but look like a copy cat if you still publish your work. In reality this\n actually does not happen very often (at least not for books) as each author has his\n or her unique style and view even on the same topic. This time, though, Ken Arnold\n stole a little bit of my show by publishing an excellent article in called \"Programmers\n are People, too\". [Read more Âť](/ramblings/33_interface.html)\n\n[Configure This!](ramblings/30_configure.html) July 5, 2005\n\nHaving been to a number of conferences and their attached expo floors recently it\n was not surprising that I was not able to escape the line \"this tool does not require\n programming, everything is done through configuration\". Hearing this tag line for\n the third or fourth time got me wondering, \"what really is the difference between\n coding and configuring?\" [Read more Âť](/ramblings/30_configure.html)\n\n[Will the Real Asynchrony Please Stand Up?](ramblings/28_asynchrony.html) May 15, 2005\n\nOn a recent project we developed a Web services framework that supports asynchronous\n callbacks and asynchronous invocation with polling. The difficulties we had describing\n what we were trying to do to my fellow ThoughtWorkers on other projects prompted me\n to discuss the different forms of asynchrony in a little more detail. [Read more Âť](/ramblings/28_asynchrony.html)\n\n[Are You Driving a DeLorean or a Toyota?](ramblings/27_latency.html) March 30, 2005\n\nWhen you build a distributed system you have to choose between latency and reliability.\n Sticking your head in the sand will not help (and you get sand in your ears...). [Read more Âť](/ramblings/27_latency.html)\n\n[Can You Say \"Synchronous Asymmetry or Asynchronous Symmetry\"?](ramblings/26_symmetry.html) March 25, 2005\n\nIn my perennial battle to free distributed system developers' minds from the perils\n of the call stack mentality I came across another reason why a call stack is not appropriate\n for distributed applications: the call stack is inherently asymmetric. However, when\n building distributed applications, that asymmetry really has no place. [Read more Âť](/ramblings/26_symmetry.html)\n\n[Extensibility Points](ramblings/22_extensibility.html) February 1, 2005\n\nToday's rambling takes a look at the application side of application integration.\n We recently looked at a packaged application under development and looked at criteria\n and options for how this application can live in an evolutionary and connected environment. [Read more Âť](/ramblings/22_extensibility.html)\n\n[SOA's and Drunk Driving](ramblings/21_drunkdriving.html) January 17, 2005\n\nHappy New Year everybody! Over the holidays I tried to sort out some of my thoughts\n on Web services, SOA, architectural styles, coupling and all the other good stuff.\n I started to think about service-oriented architectures as an architectural style\n and how it compares to prior styles, such as distributed component architectures.\n Maybe it was the New Year's mood but I started to think that the evolution of architectural\n styles is a little bit like drunk driving... [Read more Âť](/ramblings/21_drunkdriving.html)\n\n[Enemy of the State](ramblings/20_statelessness.html) December 19, 2004\n\nOne of my favorite pastimes is to argue with people whether a solution is stateless,\n whether it should be stateless and what it means to be stateless in the first place.\n Ideally, the debate would involve alcoholic beverages and the other person would pick\n up the check. After \"loosely coupled\", \"stateless\" must be a close runner-up as the\n ultimate nirvana in buzzword-compliant architectures. It is also equally hotly debated.\n Today, I 'd like to share my view on state and lessness. If you disagree you are welcome\n to argue with me, but you are buying! :-) [Read more Âť](/ramblings/20_statelessness.html)\n\n[Good Composers are Few and Far in Between](ramblings/19_composing.html) November 30, 2004\n\nLoosely coupled architectures are often portrayed as the holy grail of architecture.\n But all too often these architectures turn into what Martin Fowler coined the \"Architect's\n dream but the developer's nightmare\". This time I want to share some of the challenges\n we have found working with loosely coupled architectures and how we addressed them. [Read more Âť](/ramblings/19_composing.html)\n\n[Starbucks Does Not Use Two-Phase Commit](ramblings/18_starbucks.html) November 19, 2004\n\nPeople often criticize asynchronous messaging solutions as too complicated and cumbersome.\n Or, they believe distributed solutions cannot be successful unless they include a\n distributed transaction model. There is little doubt that asynchronous solutions require\n us to think in new ways as we have to deal with concurrency, out-of-sequence issues,\n correlation and other. However, the real world is full of examples of asynchronous\n processes that deal successfully with exactly the same issues. We don't have to go\n further than the local coffee shop... [Read more Âť](/ramblings/18_starbucks.html)\n\n[Look Ma -- No Middleware! Using Event-Driven Architectures inside a JVM.](ramblings/14_edainjvm.html) October 1, 2004\n\nOur most recent project was to replace a batch-oriented stored procedure with a more\n flexible, maintainable and scaleable Java-based architecture. We chose an event-driven\n architectural style that processes events as they occur. For the initial roll-out\n we did not even have to distribute the solution so it all runs in single JVM (if you\n ignore clustering for the moment). Read on to learn more about the implementation\n and our experiences with intra-JVM EDA. [Read more Âť](/ramblings/14_edainjvm.html)\n\n[Dependency Injection in Messaging Architectures](ramblings/13_ioc.html) September 3, 2004\n\nThe notion of Dependency Injection or Inversion of Control has generated quite a bit\n of interest lately. To a large extend, the move towards this architectural style is\n driven by developer's dissatisfaction with strong dependencies of individual components\n on their run-time container (for example, J2EE). These dependencies make it difficult\n or impossible to test components outside of their container, throwing a major monkey\n wrench into test-driven development of these types of applications. Dependency Injection\n avoids these dependencies and therefore improves testability. On a recent project\n we developed an event-driven architecture (intra-JVM, not distributed) and found that\n we could realize many of the same benefits. [Read more Âť](/ramblings/13_ioc.html)\n\n[Visualizing Dependencies](ramblings/11_dependencies.html) July 12, 2004\n\nMany of you have seen my rants on doodleware and top-down modeling. At the same time,\n anyone who has seen my book must believe me when I say that I am a very visual person.\n Is Gregor going schizophrenic (or becoming a hypocrite)? Not at all! I am a big fan\n of visual representations that are harvested from an actual running system and present\n the user with an accurate, big picture view of a working system. I felt it was time\n to put some money (time) where my mouth is and try to build such a solution and see\n what actually happens... [Read more Âť](/ramblings/11_dependencies.html)\n\n[No Escape From Integration](ramblings/07_noescape.html) January 5, 2004\n\nI had never thought about having guest appearances on my ramblings, but this e-mail\n response from my friend Hyon made me laugh hard enough that I think it would be a\n waste not to share it with the community. [Read more Âť](/ramblings/07_noescape.html)\n\n[Hysteresis of Design Decisions](ramblings/06_hysteresis.html) December 31, 2003\n\nDesign decisions can be influenced by many factors. In order to make matters more\n predictable, many architects look for clear-cut borderlines. How complex does my screen\n navigation have to be in order to justify a Front Controller as opposed to a Page\n Controller? How complex does my integration problem have to be to justify use of an\n EAI suite instead of hand wiring the solution? Invariably, the answer is \"it depends\".\n Let's have a closer look at why that is so. [Read more Âť](/ramblings/06_hysteresis.html)\n\n[Doodleware](ramblings/02_doodleware.html) November 1, 2003\n\nMany integration tools offer graphical development tools. Do they really make integration\n easier? [Read more Âť](/ramblings/02_doodleware.html)\n\n---", "znaku_textu": 15537, "slov": 2141, "odkazu": 104, "kodovani": "iso-8859-2", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 15:35:12", "sha256": "a1a4232f28615855d75225ef21a897d3ef32ace84218b9803a0eb345e499db89", "hloubka": 4, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://www.infoq.com/presentations/hohpe-soa-conversations", "http://www.infoq.com/", "http://www.infoq.com/presentations/hohpe-soa-development", "http://www.drdobbs.com/an-asynchronous-world/184415001", "https://sites.google.com/site/gcodejp/slides/ProgrammingCloud_QCon.pdf", "https://architectelevator.com/blog"]} {"url": "http://www.enterpriseintegrationpatterns.com/ramblings_events.html", "titulek": "Gregor’s Ramblings on Events - Enterprise Integration Patterns", "h1": "", "popis": "", "klicova_slova": "", "kanonicka": "", "jazyk": "", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [], "markdown": "Gregor’s Ramblings on Events\n\n---\n\n| My latest thoughts on integration architecture: |\n| --- |\n| [Queues invert control flow but require flow control](/ramblings/queues_flow_control.html) |\n| [Control Flow—The Other Half of Integration Patterns](/ramblings/queues_control_flow.html) |\n| [Event-driven = Loosely coupled? Not so fast!](/ramblings/eventdriven_coupling.html) |\n\n| [A Decade of Enterprise Integration Patterns](/articles.html)\n\r\n (IEEE Software) |\n| --- |\n| [20 Years of Patterns' Impact](/articles.html) \n\r\n (IEEE Software) |\n| [Conversations Between Loosely Coupled Services](http://www.infoq.com/presentations/hohpe-soa-conversations) \n\r\n (Video on [InfoQ](http://www.infoq.com)) |\n| [Developing in a Service-oriented World](http://www.infoq.com/presentations/hohpe-soa-development) \n\r\n (Video on [InfoQ](http://www.infoq.com)) |\n| [SOA Patterns - New Insights or Recycled Knowledge?](/docs/SoaPatterns.pdf)\n\r\n (Whitepaper) |\n| [Let's Have a Conversation](/docs/IEEE_IC_Conversations.pdf)\n(IEEE Internet Computing) |\n| [Programming Without a Call Stack - Event-driven Architectures](/docs/EDA.pdf)\n(ObjektSpektrum, 2006) |\n| [Your Coffee Shop Does Not Use Two-Phase Commit](/docs/IEEE_Software_Design_2PC.pdf)\n\r\n (IEEE Software) |\n| [Developing in a Service-Oriented World](/docs/SOA_World.pdf)\n(ThoughtWorks Whitepaper) |\n| [An Asynchronous World](http://www.drdobbs.com/an-asynchronous-world/184415001)\n\r\n (Software Development) |\n\n| [Nearfield Communication (NFC) in Japan](/docs/NfcOopHohpe.pdf)\n(OOP 2012) |\n| --- |\n| [Embedded OSS](/docs/EmbeddedOop.pdf)\n(OOP 2012) |\n| [Programming the Cloud](https://sites.google.com/site/gcodejp/slides/ProgrammingCloud_QCon.pdf)\n(QCOn Tokyo 2010) |\n| [Distributed Programming the Google Way](/docs/DistributedProgrammingGoogle.pdf)\n(Devoxx 2009) |\n| [Developing in a Service-Oriented World](/docs/hohpe_developing_in_soa_world.pdf)\n(SOACon 2007) |\n| [Programming without a Call Stack: Event-driven Architectures](/docs/hohpe_event_driven_architectures.pdf)\n(SOACon 2007) |\n| [Software Visualization and Model Extraction](/docs/TSS_software_visualization.pdf)\n(TheServerSide) |\n| [Where did all my beatiful code go?](/docs/SpringOneKeynotePub.pdf)\n(SpringOne, 2006) |\n| [Conversations Between Loosely Coupled Systems](/docs/Conversations_loosely_coupled.pdf)\n(SD West, 2006) |\n| [Enterprise Integration Patterns](/docs/jaoo_hohpeg_enterpriseintegrationpatterns.pdf)\n(JAOO, 2003) |\n\nThis blog chronicles my journey with asynchronous and distributed system design over\n two decades.\n \n These are my Ramblings related to **Events** [See [all Ramblings](/ramblings.html)]. \n Subscribe to my ramblings via [RSS](ramblings.rss).\n\nFind my posts on IT strategy, enterprise architecture, and digital transformation\n at [ArchitectElevator.com](https://architectelevator.com/blog).\n\n---\n\n[Queues invert control flow but require flow control](ramblings/queues_flow_control.html) July 27, 2024\n\nQueues are key elements of any asynchronous system because they can invert control\n flow. Their ability to re-shape traffic enables high-throughput systems that behave\n gracefully under heavy load. But all that magic doesn't come for free: to function\n well, queues require flow control [Read more Âť](/ramblings/queues_flow_control.html)\n\n[Event-driven = Loosely coupled? Not so fast!](ramblings/eventdriven_coupling.html) June 20, 2024\n\nEvent-driven architectures (EDAs) are frequently pitched as loosely coupled, when\n compared to other forms of integration. Coupling is a multi-faceted and nuanced property,\n so as architects we should have a closer look. [Read more Âť](/ramblings/eventdriven_coupling.html)\n\n[The Many Facets of Coupling](ramblings/coupling_facets.html) June 10, 2024\n\nCoupling is integration's magic word. Despite entire books being written on the subject,\n it's still widely recited as a \"loose coupling is good\" mantra. Coupling deserves\n better, so let's clarify the dimensions and nuances of coupling. [Read more Âť](/ramblings/coupling_facets.html)\n\n[25 Years of OOP](ramblings/93_oop2016.html) February 5, 2016\n\nOOP is one of the conferences that originated in the \"OO\" era of the early to mid-nineties.\n While most of these events have shed the double \"O\" -- OOPSLA has become SPLASH and\n JAOO has become GOTO, OOP stayed true to its name and remains one of the premier German\n developer conferences. This year OOP celebrated its 25th anniversary. Here are my\n impressions. [Read more Âť](/ramblings/93_oop2016.html)\n\n[SATURN Conference 2015](ramblings/84_saturn.html) May 1, 2015\n\nI have not blogged about events in a while, but SATURN 2015 has been an amazing event\n that's well worth rambling about. [Read more Âť](/ramblings/84_saturn.html)\n\n[Clouds and Integration Patterns at JavaOne](ramblings/71_javaone.html) OCT 1, 2009\n\nI joined JavaOne this year as a panelist on Cloud Computing. Here my belated impressions\n on this year's JavaOne. [Read more Âť](/ramblings/71_javaone.html)\n\n[Google I/O](ramblings/69_googleio.html) June 5, 2009\n\nI guess I am the last person to blog about Google I/O. By now, everyone should have\n read about Wave and the free Android phone (with 30 day SIM!). I am just now getting\n to write this up on my flight back to Japan, so I’ll give you my personal impressions\n and viewpoints, if you are still interested. [Read more Âť](/ramblings/69_googleio.html)\n\n[Google Gears Live From Japan](ramblings/65_gears.html) December 26, 2007\n\nSince Google's Developer Day, I have been promising to speak more regularly about\n Google products. This is a bit of a balancing act for me, as I want to avoid the slippery\n slope of becoming a corporate sock puppet. I also don't want to neglect my interest\n in connected systems, SOA, and asynchronous messaging. With the Internet turning into\n the largest connected system, the gap between Web-based technologies and connected\n systems design has become significantly smaller, allowing me to combine interests\n and Google developer products more naturally. Of course, the fact that Google is rolling\n out new developer products and APIs around the clock, does not hurt either. [Read more Âť](/ramblings/65_gears.html)\n\n[Double-Dipping: OOPSLA and Colorado Software Summit](ramblings/64_oopslacss.html) October 27, 2007\n\nI am just returning from a trip to Montreal and Keystone, CO for the OOPSLA and Colorado\n Software Summit conferences. I spoke on SOA Patterns, workshopped my conversation\n pattern paper, and gave six talks on event-driven architectures and building mashups\n using Yahoo! Pipes and Google Mashup Editor. Phew! [Read more Âť](/ramblings/64_oopslacss.html)\n\n[Bubble 2.0](ramblings/63_bubble20.html) October 15, 2007\n\nWhat’s wrong with this picture? I crash a stylish party at a pricey venue (SF Moma).\n I have no business being there, nor do I have the required invitation. I nonchalantly\n talk my way in, and hit the crowd with two fellow geeks. Within a few seconds an attractive\n blonde with a low cut dress approaches us and engages us in a conversation. We grab\n a few free drinks, indulge on the tirelessly circulating horse d’oeuvres, and talk\n to the blonde. [Read more Âť](/ramblings/63_bubble20.html)\n\n[Enterprise Mashup Summit](ramblings/62_mashupsummit.html) October 1, 2007\n\nI attended the Enterprise Mashup Summit last Friday. It was a small-ish event, with\n about 50 people attending. We saw about 10 presentations, mostly by vendors plus an\n open forum. None of the presentations were too sales-ey, which gave the event a nice\n workshop feel. Given the limited size, it would have been nice to have more time for\n interaction. Here is a quick rundown of my impressions. [Read more Âť](/ramblings/62_mashupsummit.html)\n\n[Facebook Developer Garage](ramblings/61_facebookgarage.html) September 25, 2007\n\nThe Internet is cruel. So you finally made the leap from EAI stone age to become a\n hip mashup developer. Now it turns out you are once again behind the curve, Unless\n you've written your won Facebook app and scored a million or so installs you are just\n a worm in the dust of the global data superhighway. Join the club. [Read more Âť](/ramblings/61_facebookgarage.html)\n\n[Mashup Camp](ramblings/58_mashupcamp.html) July 18, 2007\n\nI attended the first day of Mashup Camp today. The event took place at the Computer\n History Museum, which is actually walking distance from my office. Ironically, the\n only day in the year when something actually happens within walking distance in Silicon\n Valley it had to rain. Oh well. [Read more Âť](/ramblings/58_mashupcamp.html)\n\n[Users Like Events](ramblings/56_events.html) July 12, 2007\n\nTwo weeks ago I presented a keynote at the DEBS (Distributed Event-based Systems)\n conference. The emphasis of the conference was on academic work in the field but event-based\n systems are rapidly gaining traction in commercial applications as CEP (Complex Event\n Processing) is becoming a household name like SOA (equally difficult to pin down).\n All this talk about events reminded me that applications on the Web are becoming increasingly\n event driven. [Read more Âť](/ramblings/56_events.html)\n\n[Google Developer Day](ramblings/54_gdd.html) May 31, 2007\n\nLast week Google held a developer day in 10 cities around the world. Here are my take-aways. [Read more Âť](/ramblings/54_gdd.html)\n\n[JavaOne 2007](ramblings/51_javaone.html) May 11, 2007\n\nJavaOne is one of the few geek conferences that take place in San Francisco. The content\n can be hit or miss but the proximity and the good parties always make it worth stopping\n by. I also had to fulfil my duty to recruit the last smart software engineer in the\n Bay Area to Google. [Read more Âť](/ramblings/51_javaone.html)\n\n[Microsoft MVP Summit](ramblings/49_mvpsummit.html) March 25, 2007\n\nEven though I have been working for the (self-declared) non-evil empire for a while\n now, I still have a lot of ties to the Microsoft community, even beyond drinking Weissbier\n with Christian Weyer. I am particularly proud that I have been able to maintain my\n MVP status, Microsoft's Most Valuable Professional award. Here my (brief) report from\n the MVP Summit in Seattle & Redmond.\n [Read more Âť](/ramblings/49_mvpsummit.html)\n\n[JAOO 2006](ramblings/47_jaoo.html) Oct 6, 2006\n\nI am just riding the train back from Aarhus (the second largest city in Denmark in\n case your geography skills are as weak as mine were before my first trip here) to\n Copenhagen. Many speakers consistently rave about JAOO. The speaker roster, the logistics,\n the attendees - everything just seems to be very high quality and run very smoothly.\n This year I was nominated to be track host for the SOA track entitled \"SOA - What's\n Left to Say?\" [Read more Âť](/ramblings/47_jaoo.html)\n\n[fooCamp](ramblings/46_foo.html) Aug 28, 2006\n\nThis year I got to go to fooCamp! What is fooCamp? It is sort of like Burning Man\n for techno geeks. But just as Burning Man has gone pretty high tech fooCampers started\n to have more fun by burning things. It's difficult to put the experience into words... [Read more Âť](/ramblings/46_foo.html)\n\n[Dagstuhl Seminar](ramblings/44_dagstuhl.html) Aug 20, 2006\n\nI just returned from a trip to Germany to attend a workshop on The Role of Business\n Processes in Service Oriented Architecture. Besides a guaranteed top score in buzzword\n bingo the workshop provided a unique opportunity to connect thought leaders from academia\n and industry over the course of a week. The attendee roster sported the usual industry\n heavyweights, i.e., Microsoft, IBM, SAP, making me proud to add Google to the list.\n [Read more Âť](/ramblings/44_dagstuhl.html)\n\n[Revenge of the Nerds - OOPSLA 2005](ramblings/37_oopsla.html) October 23, 2005\n\nRemember the people from high school who had strange hobbies and could never get a\n date? Well, they all grew up and they are running a conference now, the Object-Oriented\n Programming, Systems, Languages, and Applications conference, OOPSLA in short. While\n the conference logistics can be quirky at times, the content is top notch. And it\n seems like most of them have managed to get a date after all. [Read more Âť](/ramblings/37_oopsla.html)\n\n[Googlesoft](ramblings/35_pdc.html) September 18 2005\n\n(Professional) life can be a little ironic sometimes. Now that I work for Google I\n was able to go to Microsoft's Professional Developer Conference aka PDC for the first\n time. It was actually very nice to be able to stay in touch with the \"other side\". [Read more Âť](/ramblings/35_pdc.html)\n\n[What Color Are My Shoes?](ramblings/34_cb.html) September 1, 2005\n\nTwo weeks ago I attended a very small, but special conference on enterprise software\n development. Here is what I came away with.. [Read more Âť](/ramblings/34_cb.html)\n\n[TechEd 2005 Europe: Event-Driven Architectures](ramblings/31_techededa.html) July 11, 2005\n\nI just returned from Microsoft TechEd Europe in Amsterdam. I was lucky enough to present\n on event-driven architectures in front of almost 600 people. Since multiple people\n asked me for the source files, I figured I'd post a quick summary of the talk, including\n the source files. [Read more Âť](/ramblings/31_techededa.html)\n\n[Microsoft TechEd 2005 Digest](ramblings/29_teched.html) June 7, 2005\n\nThis year I actually missed putting in a proposal for TechEd. However, that has not\n kept me from actually presenting :-) So I am here fighting the Orlando Summer humidity\n together with 11000 other geeks and am actually having a good time. [Read more Âť](/ramblings/29_teched.html)\n\n[Patterns and Practices Summit](ramblings/25_pnpSummit.html) March 15, 2005\n\nIt seems like I spend all my time at conferences. I am speaking at the Patterns and\n Practices Summit and SD West this week. This one is setup by Keith Pleas in close\n collaboration with the Patterns and Practices group at Microsoft. So yes, I am still\n promiscuous when it comes to platforms. But it makes me feel better that Ted Neward\n seems to beat me in that category, though. [Read more Âť](/ramblings/25_pnpSummit.html)\n\n[TSS Symposium Redux](ramblings/24_tss2005.html) March 14, 2005\n\nA number of people have already about the TSSS but that can't stop me from occupying\n my fair share of the cyberspace with my impressions. [Read more Âť](/ramblings/24_tss2005.html)\n\n[BTW Conference](ramblings/23_btw2005.html) March 6, 2005\n\nOK, so I am officially the slowest blogger on the 'Net... last week I attended two\n conferences, the BTW in Karlsruhe, Germany and TheServerSide Symposium in Las Vegas.\n Too bad they are over 6000 miles apart :-( [Read more Âť](/ramblings/23_btw2005.html)\n\n[ACM Middleware Conference: Pub-Sub and Related Topics](ramblings/17_acmconference.html) October 25, 2004\n\nI just attended the conference in Toronto (I thought a 1/2 day tutorial in integration\n patterns). This conference is more of an academic events when compared to some of\n the purely commercial conferences like JavaOne. It was interesting to see what academia\n are working on these days in the areas of middleware and SOA. [Read more Âť](/ramblings/17_acmconference.html)\n\n[JavaOne Redux](ramblings/10_javaone.html) July 2, 2004\n\nFor a change I spoke at a conference without traveling halfway around the world. At\n over 15,000 attendees, JavaOne is one of the largest developer conferences. Unfortunately,\n the signal-to-noise ratio is not always all that great, but it is still a good place\n to meet old and new friends. This year's conference was littered with talk and demos\n on SOA, ESB, Web Services, orchestration etc. Here my impressions... [Read more Âť](/ramblings/10_javaone.html)\n\n---", "znaku_textu": 15412, "slov": 2115, "odkazu": 112, "kodovani": "iso-8859-2", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 15:35:14", "sha256": "13dfc3e5a9ddcb8d3d106711c946dbdf5b3c57f35586fb70b612016a5811152d", "hloubka": 4, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://www.infoq.com/presentations/hohpe-soa-conversations", "http://www.infoq.com/", "http://www.infoq.com/presentations/hohpe-soa-development", "http://www.drdobbs.com/an-asynchronous-world/184415001", "https://sites.google.com/site/gcodejp/slides/ProgrammingCloud_QCon.pdf", "https://architectelevator.com/blog"]} {"url": "http://www.enterpriseintegrationpatterns.com/ramblings_gregor.html", "titulek": "Gregor’s Ramblings on Gregor - Enterprise Integration Patterns", "h1": "", "popis": "", "klicova_slova": "", "kanonicka": "", "jazyk": "", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [], "markdown": "Gregor’s Ramblings on Gregor\n\n---\n\n| My latest thoughts on integration architecture: |\n| --- |\n| [Queues invert control flow but require flow control](/ramblings/queues_flow_control.html) |\n| [Control Flow—The Other Half of Integration Patterns](/ramblings/queues_control_flow.html) |\n| [Event-driven = Loosely coupled? Not so fast!](/ramblings/eventdriven_coupling.html) |\n\n| [A Decade of Enterprise Integration Patterns](/articles.html)\n\r\n (IEEE Software) |\n| --- |\n| [20 Years of Patterns' Impact](/articles.html) \n\r\n (IEEE Software) |\n| [Conversations Between Loosely Coupled Services](http://www.infoq.com/presentations/hohpe-soa-conversations) \n\r\n (Video on [InfoQ](http://www.infoq.com)) |\n| [Developing in a Service-oriented World](http://www.infoq.com/presentations/hohpe-soa-development) \n\r\n (Video on [InfoQ](http://www.infoq.com)) |\n| [SOA Patterns - New Insights or Recycled Knowledge?](/docs/SoaPatterns.pdf)\n\r\n (Whitepaper) |\n| [Let's Have a Conversation](/docs/IEEE_IC_Conversations.pdf)\n(IEEE Internet Computing) |\n| [Programming Without a Call Stack - Event-driven Architectures](/docs/EDA.pdf)\n(ObjektSpektrum, 2006) |\n| [Your Coffee Shop Does Not Use Two-Phase Commit](/docs/IEEE_Software_Design_2PC.pdf)\n\r\n (IEEE Software) |\n| [Developing in a Service-Oriented World](/docs/SOA_World.pdf)\n(ThoughtWorks Whitepaper) |\n| [An Asynchronous World](http://www.drdobbs.com/an-asynchronous-world/184415001)\n\r\n (Software Development) |\n\n| [Nearfield Communication (NFC) in Japan](/docs/NfcOopHohpe.pdf)\n(OOP 2012) |\n| --- |\n| [Embedded OSS](/docs/EmbeddedOop.pdf)\n(OOP 2012) |\n| [Programming the Cloud](https://sites.google.com/site/gcodejp/slides/ProgrammingCloud_QCon.pdf)\n(QCOn Tokyo 2010) |\n| [Distributed Programming the Google Way](/docs/DistributedProgrammingGoogle.pdf)\n(Devoxx 2009) |\n| [Developing in a Service-Oriented World](/docs/hohpe_developing_in_soa_world.pdf)\n(SOACon 2007) |\n| [Programming without a Call Stack: Event-driven Architectures](/docs/hohpe_event_driven_architectures.pdf)\n(SOACon 2007) |\n| [Software Visualization and Model Extraction](/docs/TSS_software_visualization.pdf)\n(TheServerSide) |\n| [Where did all my beatiful code go?](/docs/SpringOneKeynotePub.pdf)\n(SpringOne, 2006) |\n| [Conversations Between Loosely Coupled Systems](/docs/Conversations_loosely_coupled.pdf)\n(SD West, 2006) |\n| [Enterprise Integration Patterns](/docs/jaoo_hohpeg_enterpriseintegrationpatterns.pdf)\n(JAOO, 2003) |\n\nThis blog chronicles my journey with asynchronous and distributed system design over\n two decades.\n \n These are my Ramblings related to **Gregor** [See [all Ramblings](/ramblings.html)]. \n Subscribe to my ramblings via [RSS](ramblings.rss).\n\nFind my posts on IT strategy, enterprise architecture, and digital transformation\n at [ArchitectElevator.com](https://architectelevator.com/blog).\n\n---\n\n[Reflecting on Enterprise Integration Patterns](ramblings/66_fouryears.html) January 1, 2008\n\nThe end of the year is always the time to reflect on the past happenings. My friends\n in Japan often send a New Year's card with 12 pictures, each showing the significant\n event during the month. I am not sure something significant related to Enterprise\n Integration Patterns happened each month, but I think it's still nice to reflect a\n little bit on the history and current state of the patterns. After all, the patterns\n have matured from a draft paper to being adopted as the lingua franca for a number\n of open source messaging projects.\n [Read more »](/ramblings/66_fouryears.html)\n\n[I May Be a Flake, But At Least I Am Published!](ramblings/50_publications.html) May 2, 2007\n\nI have been pretty quiet recently, but I finally have some results to show. The current\n issue of IEEE Internet Computing (May/June 2007) contains my guest column for \"Toward\n Integration\". Also, I authored one chapter in the upcoming book \"SOA Expertenwissen\"\n (in German).\n [Read more »](/ramblings/50_publications.html)\n\n[Ramblings Now In Audio](ramblings/36_podcast.html) October 12, 2005\n\nTwo years ago you were not cool if you did not have a blog. Today you are not cool\n if you have not done a podcast. Of course I cannot allow myself to fall behind, so\n here is my podcast on layered applications: [Read more »](/ramblings/36_podcast.html)\n\n[New Packaging, Same Good Content](ramblings/32_google.html) August 1, 2005\n\nAs many people have already heard, I changed employers. Before the rumor mill completes\n its work entirely, here a few comments from my end. [Read more »](/ramblings/32_google.html)\n\n---", "znaku_textu": 4426, "slov": 487, "odkazu": 62, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 15:35:15", "sha256": "32193ec544d5618a9f7127d510c0f715b01690579b5d90c24a777010a7a3ec5d", "hloubka": 4, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://www.infoq.com/presentations/hohpe-soa-conversations", "http://www.infoq.com/", "http://www.infoq.com/presentations/hohpe-soa-development", "http://www.drdobbs.com/an-asynchronous-world/184415001", "https://sites.google.com/site/gcodejp/slides/ProgrammingCloud_QCon.pdf", "https://architectelevator.com/blog"]} {"url": "http://www.enterpriseintegrationpatterns.com/ramblings_integration.html", "titulek": "Gregor’s Ramblings on Integration - Enterprise Integration Patterns", "h1": "", "popis": "", "klicova_slova": "", "kanonicka": "", "jazyk": "", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [], "markdown": "Gregor’s Ramblings on Integration\n\n---\n\n| My latest thoughts on integration architecture: |\n| --- |\n| [Queues invert control flow but require flow control](/ramblings/queues_flow_control.html) |\n| [Control Flow—The Other Half of Integration Patterns](/ramblings/queues_control_flow.html) |\n| [Event-driven = Loosely coupled? Not so fast!](/ramblings/eventdriven_coupling.html) |\n\n| [A Decade of Enterprise Integration Patterns](/articles.html)\n\r\n (IEEE Software) |\n| --- |\n| [20 Years of Patterns' Impact](/articles.html) \n\r\n (IEEE Software) |\n| [Conversations Between Loosely Coupled Services](http://www.infoq.com/presentations/hohpe-soa-conversations) \n\r\n (Video on [InfoQ](http://www.infoq.com)) |\n| [Developing in a Service-oriented World](http://www.infoq.com/presentations/hohpe-soa-development) \n\r\n (Video on [InfoQ](http://www.infoq.com)) |\n| [SOA Patterns - New Insights or Recycled Knowledge?](/docs/SoaPatterns.pdf)\n\r\n (Whitepaper) |\n| [Let's Have a Conversation](/docs/IEEE_IC_Conversations.pdf)\n(IEEE Internet Computing) |\n| [Programming Without a Call Stack - Event-driven Architectures](/docs/EDA.pdf)\n(ObjektSpektrum, 2006) |\n| [Your Coffee Shop Does Not Use Two-Phase Commit](/docs/IEEE_Software_Design_2PC.pdf)\n\r\n (IEEE Software) |\n| [Developing in a Service-Oriented World](/docs/SOA_World.pdf)\n(ThoughtWorks Whitepaper) |\n| [An Asynchronous World](http://www.drdobbs.com/an-asynchronous-world/184415001)\n\r\n (Software Development) |\n\n| [Nearfield Communication (NFC) in Japan](/docs/NfcOopHohpe.pdf)\n(OOP 2012) |\n| --- |\n| [Embedded OSS](/docs/EmbeddedOop.pdf)\n(OOP 2012) |\n| [Programming the Cloud](https://sites.google.com/site/gcodejp/slides/ProgrammingCloud_QCon.pdf)\n(QCOn Tokyo 2010) |\n| [Distributed Programming the Google Way](/docs/DistributedProgrammingGoogle.pdf)\n(Devoxx 2009) |\n| [Developing in a Service-Oriented World](/docs/hohpe_developing_in_soa_world.pdf)\n(SOACon 2007) |\n| [Programming without a Call Stack: Event-driven Architectures](/docs/hohpe_event_driven_architectures.pdf)\n(SOACon 2007) |\n| [Software Visualization and Model Extraction](/docs/TSS_software_visualization.pdf)\n(TheServerSide) |\n| [Where did all my beatiful code go?](/docs/SpringOneKeynotePub.pdf)\n(SpringOne, 2006) |\n| [Conversations Between Loosely Coupled Systems](/docs/Conversations_loosely_coupled.pdf)\n(SD West, 2006) |\n| [Enterprise Integration Patterns](/docs/jaoo_hohpeg_enterpriseintegrationpatterns.pdf)\n(JAOO, 2003) |\n\nThis blog chronicles my journey with asynchronous and distributed system design over\n two decades.\n \n These are my Ramblings related to **Integration** [See [all Ramblings](/ramblings.html)]. \n Subscribe to my ramblings via [RSS](ramblings.rss).\n\nFind my posts on IT strategy, enterprise architecture, and digital transformation\n at [ArchitectElevator.com](https://architectelevator.com/blog).\n\n---\n\n[Queues invert control flow but require flow control](ramblings/queues_flow_control.html) July 27, 2024\n\nQueues are key elements of any asynchronous system because they can invert control\n flow. Their ability to re-shape traffic enables high-throughput systems that behave\n gracefully under heavy load. But all that magic doesn't come for free: to function\n well, queues require flow control [Read more Âť](/ramblings/queues_flow_control.html)\n\n[Control Flow—The Other Half of Integration Patterns](ramblings/queues_control_flow.html) July 30, 2024\n\nWhen describing messaging systems, it's natural to focus on data flow. However, control\n flow is what gives those systems their critical runtime properties like resilience\n or low latency. It's time to make control flow a first-class consideration. [Read more Âť](/ramblings/queues_control_flow.html)\n\n[Event-driven = Loosely coupled? Not so fast!](ramblings/eventdriven_coupling.html) June 20, 2024\n\nEvent-driven architectures (EDAs) are frequently pitched as loosely coupled, when\n compared to other forms of integration. Coupling is a multi-faceted and nuanced property,\n so as architects we should have a closer look. [Read more Âť](/ramblings/eventdriven_coupling.html)\n\n[The Many Facets of Coupling](ramblings/coupling_facets.html) June 10, 2024\n\nCoupling is integration's magic word. Despite entire books being written on the subject,\n it's still widely recited as a \"loose coupling is good\" mantra. Coupling deserves\n better, so let's clarify the dimensions and nuances of coupling. [Read more Âť](/ramblings/coupling_facets.html)\n\n[Serverless Loan Broker @ GCP](ramblings/loanbroker_gcp_workflows.html) May 20, 2022\n\nDo serverless solutions lock you in? Let's find out by porting / rebuilding the Serverless\n Loan Broker on top of Google's Cloud Platform (GCP). [Read more Âť](/ramblings/loanbroker_gcp_workflows.html)\n\n[Serverless Loan Broker @ AWS, Part 5: Integration Patterns with CDK](ramblings/loanbroker_cdk.html) Jan 25, 2022\n\nInfrastructure as Code (IaC) brings repeatability into the provisioning and deployment\n of cloud applications. However, the vocabulary used by most automation tools describes\n cloud platform resources as compared to the application's intent. As serverless applications\n take us further away from the infrastructure, we should also find better abstractions\n to express our automation. Perhaps, Enterprise Integration Patterns give us a head\n start? [Read more Âť](/ramblings/loanbroker_cdk.html)\n\n[Serverless Loan Broker @ AWS, Part 4: Automation](ramblings/loanbroker_automation.html) November 30, 2021\n\nInfrastructure as Code (IaC) has a whole new meaning for serverless applications.\n Rather than provision resources (the serverless frameworks do that for us), automation\n determines the system composition and configuration. As expected, quite a few options\n are available from simple command line to programming frameworks. Time to have a look. [Read more Âť](/ramblings/loanbroker_automation.html)\n\n[Serverless Loan Broker @AWS, Part 3: Publish-Subscribe with SNS](ramblings/loanbroker_stepfunctions_pubsub.html) July 20, 2021\n\nPart 3 of the mini-series on implementing the EIP Loan Broker as a serverless solution\n with AWS Step Functions uses a Publish-Subscribe Channel and a stand-alone Aggregator\n to request and process loan quotes. [Read more Âť](/ramblings/loanbroker_stepfunctions_pubsub.html)\n\n[Loan Broker @AWS, Part 2: Recipient List](ramblings/loanbroker_stepfunctions_recipient_list.html) July 20, 2021\n\nIn part 2 of this blog series I implement the Loan Broker Example using a Recipient\n List pattern, implemented in DynamoDB, Step Functions, and Lambda. [Read more Âť](/ramblings/loanbroker_stepfunctions_recipient_list.html)\n\n[Loan Broker Implementation with AWS Step Functions](ramblings/loanbroker_stepfunctions.html) July 20, 2021\n\nA lot has happened since we implemented the Loan Broker Example in EIP: we have the\n cloud, serverless computing, machine learning, service meshes and all sorts of other\n bells and whistles. Nevertheless, the integration patterns have passed the test of\n time as we shall see by implementing the original loan broker example with AWS Lambda\n and AWS Step Functions. [Read more Âť](/ramblings/loanbroker_stepfunctions.html)\n\n[Same Old Architecture - Best of Ramblings](ramblings/85_sameoldarchitecture.html) May 15, 2015\n\nArchitects can often be found commenting or complaining that many things in IT are\n the same old stuff in new packaging, created by marketing departments who were in\n need of a new buzzword. For example, aren't microservices really just SOA done right\n while SOA itself stands for \"Same Old Architecture\"? And the whole reactive movement\n seems to have re-discovered callbacks. Maybe there is some truth in this as at the\n recent SATURN conferences I found myself saying more often than I had expected \"I\n blogged about this\". So let's see which of my past ramblings are still relevant these\n days. [Read more Âť](/ramblings/85_sameoldarchitecture.html)\n\n[Free Gift with Subscription (Pattern)](ramblings/83_subscribing.html) APR 26, 2015\n\nDiscussing the Google cloud Pub/Sub system in the last rambling reminded me that the\n Publish-subscribe Channel pattern makes for a good example of the subtle but important\n difference between Messaging Patterns and Conversation Patterns. This comparison is\n timely as I picked up documenting Conversation Patterns again. [Read more Âť](/ramblings/83_subscribing.html)\n\n[Google Cloud Pub/Sub](ramblings/82_googlepubsub.html) APR 8, 2015\n\nGoogle released the beta version of their publish-subscribe API just a few weeks ago.\n I show how to build a very simple demo app using the Java API and map the functionality\n to integration patterns to illustrate the design choices the team made. [Read more Âť](/ramblings/82_googlepubsub.html)\n\n[RESTful Conversations](ramblings/81_restconversation.html) MAR 15, 2015\n\nAs indicated a good while ago I spent some time thinking about patterns that instead\n of following a message through multiple systems, looks at the message exchange over\n time between a (mostly) fixed set of systems. I call these message exchanges \"conversations\".\n Sadly my writing efforts on Conversation Patterns fell very much asleep around 2008,\n partly due to my fear that with the rise of REST, stateful conversations between systems\n would step into the background as most integration problems are now solved with a\n simple POST or GET. A presentation and conversation at Frank Leymann's IaaS PhD Seminar\n enlightened me that this is not at all true: systems following the REST architectural\n style very much engage in conversations. [Read more Âť](/ramblings/81_restconversation.html)\n\n[Mashups Tools Market](ramblings/60_mashupmarket.html) August 18, 2007\n\nAs I reported from Mashup Camp, an increasing number of vendors play in the mashup\n space. I am obviously not the only one who noticed. Dion Hincliffe recently discussed\n 17 different mashup tools. Maybe I have an MBA hidden inside me (or 10 years of consulting\n left some marks), but I was temped to conduct my own market segmentation. Gartner\n would be proud of me. Just be aware that my analysis is not meant to be comprehensive\n and all statements carry a 0.5 probability of being right :-) [Read more Âť](/ramblings/60_mashupmarket.html)\n\n[Mashups == EAI 2.0?](ramblings/59_mashupeai.html) July 27, 2007\n\nMashups pull data from different sources, aggregate and transform the data to be used\n in different contexts. EAI solutions pull data from different sources, aggregate and\n transform the data to be used in different contexts. Huh? [Read more Âť](/ramblings/59_mashupeai.html)\n\n[I Want My Events](ramblings/57_pipes.html) July 15, 2007\n\nLast time I claimed that users like events. This time I want to show how I fulfilled\n my personal desire for events off the Web. I built two solutions to alert me to new\n book reviews on Amazon, one using a Python script, the other using Yahoo! Pipes. [Read more Âť](/ramblings/57_pipes.html)\n\n[Integration Patterns in the Wild](ramblings/43_wildpatterns.html) July 20, 2006\n\nHanging out with my intellectual drinking buddies reminded me that our integration\n patterns have been embraced by a fair number of commercial as well as open source\n projects. In my eyes this is really the best indicator of success for a pattern language.\n Latin, a dead language used mostly by doctors to sound more knowledgeable, is not\n a good model for a pattern language. You want a language that is alive and actually\n used by people. Talking to a few folks who did embrace our language motivated me to\n take a quick survey of the places where our patterns pop up. [Read more Âť](/ramblings/43_wildpatterns.html)\n\n[Integration Styles](ramblings/08_integrationstyles.html) May 5, 2004\n\nA number of integration books classify integration into styles such as database integration,\n functional integration and so on. However, on closer examination it turns out that\n there is a fair amount of confusion about what these styles really mean. Let me give\n my view. [Read more Âť](/ramblings/08_integrationstyles.html)\n\n[What Makes a Good Integration Developer?](ramblings/04_skills.html) November 25, 2003\n\nWhen we assess the quality of a software engineer we don't look as much how long he\n has worked with a specific language but rather whether he or she has a good grasp\n of the underlying models and techniques, such as OO design, systems architecture.\n Still most EAI job offers sound like a software catalog: \"x years TIBCO IntegrationManager\",\n \"y years Vitria Businessware\" etc. etc. Some thoughts on what we should be really\n looking for... [Read more Âť](/ramblings/04_skills.html)\n\n[Hub and Spoke [or] Zen and the Art of Message Broker Maintenance](ramblings/03_hubandspoke.html) November 12, 2003\n\nThe Hub-and-Spoke concept manifests itself in many ways in integration solution. Like\n any popular concept, it can sometimes cause as much confusion as it provides help. [Read more Âť](/ramblings/03_hubandspoke.html)\n\n[Doodleware](ramblings/02_doodleware.html) November 1, 2003\n\nMany integration tools offer graphical development tools. Do they really make integration\n easier? [Read more Âť](/ramblings/02_doodleware.html)\n\n[Integration Appliances](ramblings/01_appliances.html) October 1, 2003\n\nIntegration appliances aim to make integration cheaper faster and more reliable. Is\n this technology ready for prime time? [Read more Âť](/ramblings/01_appliances.html)\n\n---", "znaku_textu": 13200, "slov": 1672, "odkazu": 95, "kodovani": "iso-8859-2", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 15:35:16", "sha256": "433086565fcd5fc2de108f532dce55e58957323278d22cd6e6cd40ce6c8d75bc", "hloubka": 4, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://www.infoq.com/presentations/hohpe-soa-conversations", "http://www.infoq.com/", "http://www.infoq.com/presentations/hohpe-soa-development", "http://www.drdobbs.com/an-asynchronous-world/184415001", "https://sites.google.com/site/gcodejp/slides/ProgrammingCloud_QCon.pdf", "https://architectelevator.com/blog"]} {"url": "http://www.enterpriseintegrationpatterns.com/ramblings_messaging.html", "titulek": "Gregor’s Ramblings on Messaging - Enterprise Integration Patterns", "h1": "", "popis": "", "klicova_slova": "", "kanonicka": "", "jazyk": "", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [], "markdown": "Gregor’s Ramblings on Messaging\n\n---\n\n| My latest thoughts on integration architecture: |\n| --- |\n| [Queues invert control flow but require flow control](/ramblings/queues_flow_control.html) |\n| [Control Flow—The Other Half of Integration Patterns](/ramblings/queues_control_flow.html) |\n| [Event-driven = Loosely coupled? Not so fast!](/ramblings/eventdriven_coupling.html) |\n\n| [A Decade of Enterprise Integration Patterns](/articles.html)\n\r\n (IEEE Software) |\n| --- |\n| [20 Years of Patterns' Impact](/articles.html) \n\r\n (IEEE Software) |\n| [Conversations Between Loosely Coupled Services](http://www.infoq.com/presentations/hohpe-soa-conversations) \n\r\n (Video on [InfoQ](http://www.infoq.com)) |\n| [Developing in a Service-oriented World](http://www.infoq.com/presentations/hohpe-soa-development) \n\r\n (Video on [InfoQ](http://www.infoq.com)) |\n| [SOA Patterns - New Insights or Recycled Knowledge?](/docs/SoaPatterns.pdf)\n\r\n (Whitepaper) |\n| [Let's Have a Conversation](/docs/IEEE_IC_Conversations.pdf)\n(IEEE Internet Computing) |\n| [Programming Without a Call Stack - Event-driven Architectures](/docs/EDA.pdf)\n(ObjektSpektrum, 2006) |\n| [Your Coffee Shop Does Not Use Two-Phase Commit](/docs/IEEE_Software_Design_2PC.pdf)\n\r\n (IEEE Software) |\n| [Developing in a Service-Oriented World](/docs/SOA_World.pdf)\n(ThoughtWorks Whitepaper) |\n| [An Asynchronous World](http://www.drdobbs.com/an-asynchronous-world/184415001)\n\r\n (Software Development) |\n\n| [Nearfield Communication (NFC) in Japan](/docs/NfcOopHohpe.pdf)\n(OOP 2012) |\n| --- |\n| [Embedded OSS](/docs/EmbeddedOop.pdf)\n(OOP 2012) |\n| [Programming the Cloud](https://sites.google.com/site/gcodejp/slides/ProgrammingCloud_QCon.pdf)\n(QCOn Tokyo 2010) |\n| [Distributed Programming the Google Way](/docs/DistributedProgrammingGoogle.pdf)\n(Devoxx 2009) |\n| [Developing in a Service-Oriented World](/docs/hohpe_developing_in_soa_world.pdf)\n(SOACon 2007) |\n| [Programming without a Call Stack: Event-driven Architectures](/docs/hohpe_event_driven_architectures.pdf)\n(SOACon 2007) |\n| [Software Visualization and Model Extraction](/docs/TSS_software_visualization.pdf)\n(TheServerSide) |\n| [Where did all my beatiful code go?](/docs/SpringOneKeynotePub.pdf)\n(SpringOne, 2006) |\n| [Conversations Between Loosely Coupled Systems](/docs/Conversations_loosely_coupled.pdf)\n(SD West, 2006) |\n| [Enterprise Integration Patterns](/docs/jaoo_hohpeg_enterpriseintegrationpatterns.pdf)\n(JAOO, 2003) |\n\nThis blog chronicles my journey with asynchronous and distributed system design over\n two decades.\n \n These are my Ramblings related to **Messaging** [See [all Ramblings](/ramblings.html)]. \n Subscribe to my ramblings via [RSS](ramblings.rss).\n\nFind my posts on IT strategy, enterprise architecture, and digital transformation\n at [ArchitectElevator.com](https://architectelevator.com/blog).\n\n---\n\n[Control Flow—The Other Half of Integration Patterns](ramblings/queues_control_flow.html) July 30, 2024\n\nWhen describing messaging systems, it's natural to focus on data flow. However, control\n flow is what gives those systems their critical runtime properties like resilience\n or low latency. It's time to make control flow a first-class consideration. [Read more Âť](/ramblings/queues_control_flow.html)\n\n[Serverless Integration Patterns on Google Cloud Functions](ramblings/google_cloud_functions.html) April 20, 2017\n\nAfter examining which patterns are embedded in Google Cloud Pub/Sub in an earlier\n post, I implemented a few common patterns on top of Google Cloud Functions, Google's\n serverless implementation. It's amazing how easy it has become to get messaging patterns\n running in the cloud with only a minimum of wrapper code. [Read more Âť](/ramblings/google_cloud_functions.html)\n\n[Google Cloud Pub/Sub](ramblings/82_googlepubsub.html) APR 8, 2015\n\nGoogle released the beta version of their publish-subscribe API just a few weeks ago.\n I show how to build a very simple demo app using the Java API and map the functionality\n to integration patterns to illustrate the design choices the team made. [Read more Âť](/ramblings/82_googlepubsub.html)\n\n[Sync or Swim](ramblings/80_syncorswim.html) FEB 15, 2015\n\nWe were tempted multiple times to extend the EIP icon language, but always felt that\n simplicity should win over precision. However, seeing the visual vocabulary that my\n former Google colleague Ivan Gevirtz created, I am convinced that combining the two\n is useful. [Read more Âť](/ramblings/80_syncorswim.html)\n\n[What Does It Mean to Use Messaging?](ramblings/74_messaging.html) FEB 17, 2010\n\nI was recently asked to help a team decide whether they should use messaging. Of course,\n I have not forgotten what I learned during many years in consulting: the consultant\n always answers \"it depends.\" A good consultant can tell you what the answer depends\n on. And a truly great consultant can convince you that you are asking the wrong question\n in the first place. [Read more Âť](/ramblings/74_messaging.html)\n\n[Users Like Events](ramblings/56_events.html) July 12, 2007\n\nTwo weeks ago I presented a keynote at the DEBS (Distributed Event-based Systems)\n conference. The emphasis of the conference was on academic work in the field but event-based\n systems are rapidly gaining traction in commercial applications as CEP (Complex Event\n Processing) is becoming a household name like SOA (equally difficult to pin down).\n All this talk about events reminded me that applications on the Web are becoming increasingly\n event driven. [Read more Âť](/ramblings/56_events.html)\n\n[What is in a Name?](ramblings/39_namingchannels.html) Mar 5, 2006\n\nComputer science is known as the field where every problem can be solved by just one\n more level of indirection. Well, a message channel berween two components is such\n a level of indirection. As it turns out naming this additional element can have a\n more profound influence on the system design than might appear at first. [Read more Âť](/ramblings/39_namingchannels.html)\n\n[Will the Real Asynchrony Please Stand Up?](ramblings/28_asynchrony.html) May 15, 2005\n\nOn a recent project we developed a Web services framework that supports asynchronous\n callbacks and asynchronous invocation with polling. The difficulties we had describing\n what we were trying to do to my fellow ThoughtWorkers on other projects prompted me\n to discuss the different forms of asynchrony in a little more detail. [Read more Âť](/ramblings/28_asynchrony.html)\n\n[Are You Driving a DeLorean or a Toyota?](ramblings/27_latency.html) March 30, 2005\n\nWhen you build a distributed system you have to choose between latency and reliability.\n Sticking your head in the sand will not help (and you get sand in your ears...). [Read more Âť](/ramblings/27_latency.html)\n\n[Can You Say \"Synchronous Asymmetry or Asynchronous Symmetry\"?](ramblings/26_symmetry.html) March 25, 2005\n\nIn my perennial battle to free distributed system developers' minds from the perils\n of the call stack mentality I came across another reason why a call stack is not appropriate\n for distributed applications: the call stack is inherently asymmetric. However, when\n building distributed applications, that asymmetry really has no place. [Read more Âť](/ramblings/26_symmetry.html)\n\n[Look Ma -- No Middleware! Using Event-Driven Architectures inside a JVM.](ramblings/14_edainjvm.html) October 1, 2004\n\nOur most recent project was to replace a batch-oriented stored procedure with a more\n flexible, maintainable and scaleable Java-based architecture. We chose an event-driven\n architectural style that processes events as they occur. For the initial roll-out\n we did not even have to distribute the solution so it all runs in single JVM (if you\n ignore clustering for the moment). Read on to learn more about the implementation\n and our experiences with intra-JVM EDA. [Read more Âť](/ramblings/14_edainjvm.html)\n\n[Dependency Injection in Messaging Architectures](ramblings/13_ioc.html) September 3, 2004\n\nThe notion of Dependency Injection or Inversion of Control has generated quite a bit\n of interest lately. To a large extend, the move towards this architectural style is\n driven by developer's dissatisfaction with strong dependencies of individual components\n on their run-time container (for example, J2EE). These dependencies make it difficult\n or impossible to test components outside of their container, throwing a major monkey\n wrench into test-driven development of these types of applications. Dependency Injection\n avoids these dependencies and therefore improves testability. On a recent project\n we developed an event-driven architecture (intra-JVM, not distributed) and found that\n we could realize many of the same benefits. [Read more Âť](/ramblings/13_ioc.html)\n\n[Correlation and Conversations](ramblings/09_correlation.html) May 21, 2004\n\nWhen using asynchronous messaging, we can no longer rely on the linear, in-sequence\n execution of events. Therefore, the notion of correlating multiple messages is fundamental\n to designing robust messaging solutions. While correlation seems to be a simple concept\n at first glance, there are quite a few interesting nuances. [Read more Âť](/ramblings/09_correlation.html)\n\n---", "znaku_textu": 9066, "slov": 1121, "odkazu": 78, "kodovani": "iso-8859-2", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 15:35:17", "sha256": "b801ca43bf4d32aa4e89787108466a3924823c65daa53dadcbbe12c13d5e9ffe", "hloubka": 4, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://www.infoq.com/presentations/hohpe-soa-conversations", "http://www.infoq.com/", "http://www.infoq.com/presentations/hohpe-soa-development", "http://www.drdobbs.com/an-asynchronous-world/184415001", "https://sites.google.com/site/gcodejp/slides/ProgrammingCloud_QCon.pdf", "https://architectelevator.com/blog"]} {"url": "http://www.enterpriseintegrationpatterns.com/ramblings_modeling.html", "titulek": "Gregor’s Ramblings on Modeling - Enterprise Integration Patterns", "h1": "", "popis": "", "klicova_slova": "", "kanonicka": "", "jazyk": "", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [], "markdown": "Gregor’s Ramblings on Modeling\n\n---\n\n| My latest thoughts on integration architecture: |\n| --- |\n| [Queues invert control flow but require flow control](/ramblings/queues_flow_control.html) |\n| [Control Flow—The Other Half of Integration Patterns](/ramblings/queues_control_flow.html) |\n| [Event-driven = Loosely coupled? Not so fast!](/ramblings/eventdriven_coupling.html) |\n\n| [A Decade of Enterprise Integration Patterns](/articles.html)\n\r\n (IEEE Software) |\n| --- |\n| [20 Years of Patterns' Impact](/articles.html) \n\r\n (IEEE Software) |\n| [Conversations Between Loosely Coupled Services](http://www.infoq.com/presentations/hohpe-soa-conversations) \n\r\n (Video on [InfoQ](http://www.infoq.com)) |\n| [Developing in a Service-oriented World](http://www.infoq.com/presentations/hohpe-soa-development) \n\r\n (Video on [InfoQ](http://www.infoq.com)) |\n| [SOA Patterns - New Insights or Recycled Knowledge?](/docs/SoaPatterns.pdf)\n\r\n (Whitepaper) |\n| [Let's Have a Conversation](/docs/IEEE_IC_Conversations.pdf)\n(IEEE Internet Computing) |\n| [Programming Without a Call Stack - Event-driven Architectures](/docs/EDA.pdf)\n(ObjektSpektrum, 2006) |\n| [Your Coffee Shop Does Not Use Two-Phase Commit](/docs/IEEE_Software_Design_2PC.pdf)\n\r\n (IEEE Software) |\n| [Developing in a Service-Oriented World](/docs/SOA_World.pdf)\n(ThoughtWorks Whitepaper) |\n| [An Asynchronous World](http://www.drdobbs.com/an-asynchronous-world/184415001)\n\r\n (Software Development) |\n\n| [Nearfield Communication (NFC) in Japan](/docs/NfcOopHohpe.pdf)\n(OOP 2012) |\n| --- |\n| [Embedded OSS](/docs/EmbeddedOop.pdf)\n(OOP 2012) |\n| [Programming the Cloud](https://sites.google.com/site/gcodejp/slides/ProgrammingCloud_QCon.pdf)\n(QCOn Tokyo 2010) |\n| [Distributed Programming the Google Way](/docs/DistributedProgrammingGoogle.pdf)\n(Devoxx 2009) |\n| [Developing in a Service-Oriented World](/docs/hohpe_developing_in_soa_world.pdf)\n(SOACon 2007) |\n| [Programming without a Call Stack: Event-driven Architectures](/docs/hohpe_event_driven_architectures.pdf)\n(SOACon 2007) |\n| [Software Visualization and Model Extraction](/docs/TSS_software_visualization.pdf)\n(TheServerSide) |\n| [Where did all my beatiful code go?](/docs/SpringOneKeynotePub.pdf)\n(SpringOne, 2006) |\n| [Conversations Between Loosely Coupled Systems](/docs/Conversations_loosely_coupled.pdf)\n(SD West, 2006) |\n| [Enterprise Integration Patterns](/docs/jaoo_hohpeg_enterpriseintegrationpatterns.pdf)\n(JAOO, 2003) |\n\nThis blog chronicles my journey with asynchronous and distributed system design over\n two decades.\n \n These are my Ramblings related to **Modeling** [See [all Ramblings](/ramblings.html)]. \n Subscribe to my ramblings via [RSS](ramblings.rss).\n\nFind my posts on IT strategy, enterprise architecture, and digital transformation\n at [ArchitectElevator.com](https://architectelevator.com/blog).\n\n---\n\n[Sync or Swim](ramblings/80_syncorswim.html) FEB 15, 2015\n\nWe were tempted multiple times to extend the EIP icon language, but always felt that\n simplicity should win over precision. However, seeing the visual vocabulary that my\n former Google colleague Ivan Gevirtz created, I am convinced that combining the two\n is useful. [Read more »](/ramblings/80_syncorswim.html)\n\n[DDD - Diagram Driven Design](ramblings/75_ddd.html) MAR 22, 2010\n\nDrawing a picture turns out to be a useful system design technique. [Read more »](/ramblings/75_ddd.html)\n\n[Validating Dynamic Systems](ramblings/48_validation.html) Feb 1, 2007\n\nErik Doernenburg and I have been presenting our talk on Software Validation a few\n times now and have received very positive feedback. In the talk we mention that beyond\n visualization you can use similar techniques to perform checks and validations against\n a system. However, none of our demos actually included an example. So I went out to\n correct that and added validations to my messaging visualizer. [Read more »](/ramblings/48_validation.html)\n\n[JAOO 2006](ramblings/47_jaoo.html) Oct 6, 2006\n\nI am just riding the train back from Aarhus (the second largest city in Denmark in\n case your geography skills are as weak as mine were before my first trip here) to\n Copenhagen. Many speakers consistently rave about JAOO. The speaker roster, the logistics,\n the attendees - everything just seems to be very high quality and run very smoothly.\n This year I was nominated to be track host for the SOA track entitled \"SOA - What's\n Left to Say?\" [Read more »](/ramblings/47_jaoo.html)\n\n[EAI DSLs](ramblings/42_eaidsl.html) May 23, 2006\n\nI am so clever. In my very first professional project in the US over 10 years ago\n I used a DSL to solve an EAI problem. If those buzzwords had been around at the time\n I would have been pretty cool, too. I guess you can’t have everything. [Read more »](/ramblings/42_eaidsl.html)\n\n---", "znaku_textu": 4672, "slov": 522, "odkazu": 63, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 15:35:18", "sha256": "4b15b10553b23306acd012001ab785e3f237533ad6d768d392c1d771dc3b1227", "hloubka": 4, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://www.infoq.com/presentations/hohpe-soa-conversations", "http://www.infoq.com/", "http://www.infoq.com/presentations/hohpe-soa-development", "http://www.drdobbs.com/an-asynchronous-world/184415001", "https://sites.google.com/site/gcodejp/slides/ProgrammingCloud_QCon.pdf", "https://architectelevator.com/blog"]} {"url": "http://www.enterpriseintegrationpatterns.com/ramblings_patterns.html", "titulek": "Gregor’s Ramblings on Patterns - Enterprise Integration Patterns", "h1": "", "popis": "", "klicova_slova": "", "kanonicka": "", "jazyk": "", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [], "markdown": "Gregor’s Ramblings on Patterns\n\n---\n\n| My latest thoughts on integration architecture: |\n| --- |\n| [Queues invert control flow but require flow control](/ramblings/queues_flow_control.html) |\n| [Control Flow—The Other Half of Integration Patterns](/ramblings/queues_control_flow.html) |\n| [Event-driven = Loosely coupled? Not so fast!](/ramblings/eventdriven_coupling.html) |\n\n| [A Decade of Enterprise Integration Patterns](/articles.html)\n\r\n (IEEE Software) |\n| --- |\n| [20 Years of Patterns' Impact](/articles.html) \n\r\n (IEEE Software) |\n| [Conversations Between Loosely Coupled Services](http://www.infoq.com/presentations/hohpe-soa-conversations) \n\r\n (Video on [InfoQ](http://www.infoq.com)) |\n| [Developing in a Service-oriented World](http://www.infoq.com/presentations/hohpe-soa-development) \n\r\n (Video on [InfoQ](http://www.infoq.com)) |\n| [SOA Patterns - New Insights or Recycled Knowledge?](/docs/SoaPatterns.pdf)\n\r\n (Whitepaper) |\n| [Let's Have a Conversation](/docs/IEEE_IC_Conversations.pdf)\n(IEEE Internet Computing) |\n| [Programming Without a Call Stack - Event-driven Architectures](/docs/EDA.pdf)\n(ObjektSpektrum, 2006) |\n| [Your Coffee Shop Does Not Use Two-Phase Commit](/docs/IEEE_Software_Design_2PC.pdf)\n\r\n (IEEE Software) |\n| [Developing in a Service-Oriented World](/docs/SOA_World.pdf)\n(ThoughtWorks Whitepaper) |\n| [An Asynchronous World](http://www.drdobbs.com/an-asynchronous-world/184415001)\n\r\n (Software Development) |\n\n| [Nearfield Communication (NFC) in Japan](/docs/NfcOopHohpe.pdf)\n(OOP 2012) |\n| --- |\n| [Embedded OSS](/docs/EmbeddedOop.pdf)\n(OOP 2012) |\n| [Programming the Cloud](https://sites.google.com/site/gcodejp/slides/ProgrammingCloud_QCon.pdf)\n(QCOn Tokyo 2010) |\n| [Distributed Programming the Google Way](/docs/DistributedProgrammingGoogle.pdf)\n(Devoxx 2009) |\n| [Developing in a Service-Oriented World](/docs/hohpe_developing_in_soa_world.pdf)\n(SOACon 2007) |\n| [Programming without a Call Stack: Event-driven Architectures](/docs/hohpe_event_driven_architectures.pdf)\n(SOACon 2007) |\n| [Software Visualization and Model Extraction](/docs/TSS_software_visualization.pdf)\n(TheServerSide) |\n| [Where did all my beatiful code go?](/docs/SpringOneKeynotePub.pdf)\n(SpringOne, 2006) |\n| [Conversations Between Loosely Coupled Systems](/docs/Conversations_loosely_coupled.pdf)\n(SD West, 2006) |\n| [Enterprise Integration Patterns](/docs/jaoo_hohpeg_enterpriseintegrationpatterns.pdf)\n(JAOO, 2003) |\n\nThis blog chronicles my journey with asynchronous and distributed system design over\n two decades.\n \n These are my Ramblings related to **Patterns** [See [all Ramblings](/ramblings.html)]. \n Subscribe to my ramblings via [RSS](ramblings.rss).\n\nFind my posts on IT strategy, enterprise architecture, and digital transformation\n at [ArchitectElevator.com](https://architectelevator.com/blog).\n\n---\n\n[Modern Examples for Enterprise Integration Patterns](ramblings/eip1_examples_updated.html) February 5, 2017\n\nEnterprise Integration Patterns are timeless. That's why our book keeps selling well\n 20 years after its publication in 2003. However, the code examples haven't aged quite\n as well. I therefore updated several code examples to use modern tech like GoLang,\n Kafka, RabbitMQ, AWS, Azure Cloud Functions, and Google Cloud Pub/Sub. [Read more »](/ramblings/eip1_examples_updated.html)\n\n[Sync or Swim](ramblings/80_syncorswim.html) FEB 15, 2015\n\nWe were tempted multiple times to extend the EIP icon language, but always felt that\n simplicity should win over precision. However, seeing the visual vocabulary that my\n former Google colleague Ivan Gevirtz created, I am convinced that combining the two\n is useful. [Read more »](/ramblings/80_syncorswim.html)\n\n[Design Patterns: More than meets the eye](ramblings/67_patterns.html) Jan 13, 2009\n\nBlogging about design patterns seems about as original as blogging about the Java\n (TM) Programming Language, except for the missing (TM). However, as I just attended\n a workshop on software service engineering, I realized once again that people from\n different fields have very different notions about the concept and usage of patterns.\n Many workshop attendees raised questions about formalizing patterns, tooling, etc.\n I touched on this subject a tiny bit in a post from long time ago, but I figured that\n the topic really deserves more attention, especially since to me a pattern is so much\n more than the \"proven solution to a recurring problem within a specific context.\"\n [Read more »](/ramblings/67_patterns.html)\n\n[Web 2.0 Patterns](ramblings/45_web20.html) Aug 24, 2006\n\nI confess. I am a groupie. When Tim O'Reilly invited me to be part of a workshop\n on Web 2.0 patterns I was quite excited. First, because I was going to meet the exalted\n one in person. Second, because I would have a chance to learn a lot about Web 2.0\n as I am pretty much starting from zero. [Read more »](/ramblings/45_web20.html)\n\n[Integration Patterns in the Wild](ramblings/43_wildpatterns.html) July 20, 2006\n\nHanging out with my intellectual drinking buddies reminded me that our integration\n patterns have been embraced by a fair number of commercial as well as open source\n projects. In my eyes this is really the best indicator of success for a pattern language.\n Latin, a dead language used mostly by doctors to sound more knowledgeable, is not\n a good model for a pattern language. You want a language that is alive and actually\n used by people. Talking to a few folks who did embrace our language motivated me to\n take a quick survey of the places where our patterns pop up. [Read more »](/ramblings/43_wildpatterns.html)\n\n[Will the Real Asynchrony Please Stand Up?](ramblings/28_asynchrony.html) May 15, 2005\n\nOn a recent project we developed a Web services framework that supports asynchronous\n callbacks and asynchronous invocation with polling. The difficulties we had describing\n what we were trying to do to my fellow ThoughtWorkers on other projects prompted me\n to discuss the different forms of asynchrony in a little more detail. [Read more »](/ramblings/28_asynchrony.html)\n\n[Are \"Pattern\" and \"Component\" Antonyms?](ramblings/16_patternscomponents.html) October 15, 2004\n\nLast year's OOPSLA tutorial on Enterprise Integration Patterns was quite well received.\n The most frequent constructive criticism was that the whole tutorial was PowerPoint\n as opposed to running code. I took that feedback to heart and set out to develop a\n toolkit that demonstrates the routing and transformation patterns in our book. After\n a lot of deja-vu in Windows GDI programming I created a toolkit that contains each\n pattern as a small executable. The toolkit is a lot of fun and makes for great demos,\n but it also triggered a bigger question. Are patterns meant to be codified as components? [Read more »](/ramblings/16_patternscomponents.html)\n\n[Correlation and Conversations](ramblings/09_correlation.html) May 21, 2004\n\nWhen using asynchronous messaging, we can no longer rely on the linear, in-sequence\n execution of events. Therefore, the notion of correlating multiple messages is fundamental\n to designing robust messaging solutions. While correlation seems to be a simple concept\n at first glance, there are quite a few interesting nuances. [Read more »](/ramblings/09_correlation.html)\n\n---", "znaku_textu": 7173, "slov": 882, "odkazu": 69, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 15:35:19", "sha256": "2bc12d279e9ab73dd22e86136896162907dc5100c6fc61ff0ac8b3fa8932ad23", "hloubka": 4, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://www.infoq.com/presentations/hohpe-soa-conversations", "http://www.infoq.com/", "http://www.infoq.com/presentations/hohpe-soa-development", "http://www.drdobbs.com/an-asynchronous-world/184415001", "https://sites.google.com/site/gcodejp/slides/ProgrammingCloud_QCon.pdf", "https://architectelevator.com/blog"]} {"url": "http://www.enterpriseintegrationpatterns.com/ramblings_visualization.html", "titulek": "Gregor’s Ramblings on Visualization - Enterprise Integration Patterns", "h1": "", "popis": "", "klicova_slova": "", "kanonicka": "", "jazyk": "", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [], "markdown": "Gregor’s Ramblings on Visualization\n\n---\n\n| My latest thoughts on integration architecture: |\n| --- |\n| [Queues invert control flow but require flow control](/ramblings/queues_flow_control.html) |\n| [Control Flow—The Other Half of Integration Patterns](/ramblings/queues_control_flow.html) |\n| [Event-driven = Loosely coupled? Not so fast!](/ramblings/eventdriven_coupling.html) |\n\n| [A Decade of Enterprise Integration Patterns](/articles.html)\n\r\n (IEEE Software) |\n| --- |\n| [20 Years of Patterns' Impact](/articles.html) \n\r\n (IEEE Software) |\n| [Conversations Between Loosely Coupled Services](http://www.infoq.com/presentations/hohpe-soa-conversations) \n\r\n (Video on [InfoQ](http://www.infoq.com)) |\n| [Developing in a Service-oriented World](http://www.infoq.com/presentations/hohpe-soa-development) \n\r\n (Video on [InfoQ](http://www.infoq.com)) |\n| [SOA Patterns - New Insights or Recycled Knowledge?](/docs/SoaPatterns.pdf)\n\r\n (Whitepaper) |\n| [Let's Have a Conversation](/docs/IEEE_IC_Conversations.pdf)\n(IEEE Internet Computing) |\n| [Programming Without a Call Stack - Event-driven Architectures](/docs/EDA.pdf)\n(ObjektSpektrum, 2006) |\n| [Your Coffee Shop Does Not Use Two-Phase Commit](/docs/IEEE_Software_Design_2PC.pdf)\n\r\n (IEEE Software) |\n| [Developing in a Service-Oriented World](/docs/SOA_World.pdf)\n(ThoughtWorks Whitepaper) |\n| [An Asynchronous World](http://www.drdobbs.com/an-asynchronous-world/184415001)\n\r\n (Software Development) |\n\n| [Nearfield Communication (NFC) in Japan](/docs/NfcOopHohpe.pdf)\n(OOP 2012) |\n| --- |\n| [Embedded OSS](/docs/EmbeddedOop.pdf)\n(OOP 2012) |\n| [Programming the Cloud](https://sites.google.com/site/gcodejp/slides/ProgrammingCloud_QCon.pdf)\n(QCOn Tokyo 2010) |\n| [Distributed Programming the Google Way](/docs/DistributedProgrammingGoogle.pdf)\n(Devoxx 2009) |\n| [Developing in a Service-Oriented World](/docs/hohpe_developing_in_soa_world.pdf)\n(SOACon 2007) |\n| [Programming without a Call Stack: Event-driven Architectures](/docs/hohpe_event_driven_architectures.pdf)\n(SOACon 2007) |\n| [Software Visualization and Model Extraction](/docs/TSS_software_visualization.pdf)\n(TheServerSide) |\n| [Where did all my beatiful code go?](/docs/SpringOneKeynotePub.pdf)\n(SpringOne, 2006) |\n| [Conversations Between Loosely Coupled Systems](/docs/Conversations_loosely_coupled.pdf)\n(SD West, 2006) |\n| [Enterprise Integration Patterns](/docs/jaoo_hohpeg_enterpriseintegrationpatterns.pdf)\n(JAOO, 2003) |\n\nThis blog chronicles my journey with asynchronous and distributed system design over\n two decades.\n \n These are my Ramblings related to **Visualization** [See [all Ramblings](/ramblings.html)]. \n Subscribe to my ramblings via [RSS](ramblings.rss).\n\nFind my posts on IT strategy, enterprise architecture, and digital transformation\n at [ArchitectElevator.com](https://architectelevator.com/blog).\n\n---\n\n[Validating Dynamic Systems](ramblings/48_validation.html) Feb 1, 2007\n\nErik Doernenburg and I have been presenting our talk on Software Validation a few\n times now and have received very positive feedback. In the talk we mention that beyond\n visualization you can use similar techniques to perform checks and validations against\n a system. However, none of our demos actually included an example. So I went out to\n correct that and added validations to my messaging visualizer. [Read more »](/ramblings/48_validation.html)\n\n[What Color Are My Shoes?](ramblings/34_cb.html) September 1, 2005\n\nTwo weeks ago I attended a very small, but special conference on enterprise software\n development. Here is what I came away with.. [Read more »](/ramblings/34_cb.html)\n\n[Visualizing Dependencies](ramblings/11_dependencies.html) July 12, 2004\n\nMany of you have seen my rants on doodleware and top-down modeling. At the same time,\n anyone who has seen my book must believe me when I say that I am a very visual person.\n Is Gregor going schizophrenic (or becoming a hypocrite)? Not at all! I am a big fan\n of visual representations that are harvested from an actual running system and present\n the user with an accurate, big picture view of a working system. I felt it was time\n to put some money (time) where my mouth is and try to build such a solution and see\n what actually happens... [Read more »](/ramblings/11_dependencies.html)\n\n---", "znaku_textu": 4182, "slov": 452, "odkazu": 60, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 15:35:20", "sha256": "e1cdf2f1010337fd516a9ded205413a6aa34ba61fda8f677fbf326a32e744fd7", "hloubka": 4, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://www.infoq.com/presentations/hohpe-soa-conversations", "http://www.infoq.com/", "http://www.infoq.com/presentations/hohpe-soa-development", "http://www.drdobbs.com/an-asynchronous-world/184415001", "https://sites.google.com/site/gcodejp/slides/ProgrammingCloud_QCon.pdf", "https://architectelevator.com/blog"]} {"url": "http://www.enterpriseintegrationpatterns.com/ramblings_webServices.html", "titulek": "Gregor’s Ramblings on WebServices - Enterprise Integration Patterns", "h1": "", "popis": "", "klicova_slova": "", "kanonicka": "", "jazyk": "", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [], "markdown": "Gregor’s Ramblings on WebServices\n\n---\n\n| My latest thoughts on integration architecture: |\n| --- |\n| [Queues invert control flow but require flow control](/ramblings/queues_flow_control.html) |\n| [Control Flow—The Other Half of Integration Patterns](/ramblings/queues_control_flow.html) |\n| [Event-driven = Loosely coupled? Not so fast!](/ramblings/eventdriven_coupling.html) |\n\n| [A Decade of Enterprise Integration Patterns](/articles.html)\n\r\n (IEEE Software) |\n| --- |\n| [20 Years of Patterns' Impact](/articles.html) \n\r\n (IEEE Software) |\n| [Conversations Between Loosely Coupled Services](http://www.infoq.com/presentations/hohpe-soa-conversations) \n\r\n (Video on [InfoQ](http://www.infoq.com)) |\n| [Developing in a Service-oriented World](http://www.infoq.com/presentations/hohpe-soa-development) \n\r\n (Video on [InfoQ](http://www.infoq.com)) |\n| [SOA Patterns - New Insights or Recycled Knowledge?](/docs/SoaPatterns.pdf)\n\r\n (Whitepaper) |\n| [Let's Have a Conversation](/docs/IEEE_IC_Conversations.pdf)\n(IEEE Internet Computing) |\n| [Programming Without a Call Stack - Event-driven Architectures](/docs/EDA.pdf)\n(ObjektSpektrum, 2006) |\n| [Your Coffee Shop Does Not Use Two-Phase Commit](/docs/IEEE_Software_Design_2PC.pdf)\n\r\n (IEEE Software) |\n| [Developing in a Service-Oriented World](/docs/SOA_World.pdf)\n(ThoughtWorks Whitepaper) |\n| [An Asynchronous World](http://www.drdobbs.com/an-asynchronous-world/184415001)\n\r\n (Software Development) |\n\n| [Nearfield Communication (NFC) in Japan](/docs/NfcOopHohpe.pdf)\n(OOP 2012) |\n| --- |\n| [Embedded OSS](/docs/EmbeddedOop.pdf)\n(OOP 2012) |\n| [Programming the Cloud](https://sites.google.com/site/gcodejp/slides/ProgrammingCloud_QCon.pdf)\n(QCOn Tokyo 2010) |\n| [Distributed Programming the Google Way](/docs/DistributedProgrammingGoogle.pdf)\n(Devoxx 2009) |\n| [Developing in a Service-Oriented World](/docs/hohpe_developing_in_soa_world.pdf)\n(SOACon 2007) |\n| [Programming without a Call Stack: Event-driven Architectures](/docs/hohpe_event_driven_architectures.pdf)\n(SOACon 2007) |\n| [Software Visualization and Model Extraction](/docs/TSS_software_visualization.pdf)\n(TheServerSide) |\n| [Where did all my beatiful code go?](/docs/SpringOneKeynotePub.pdf)\n(SpringOne, 2006) |\n| [Conversations Between Loosely Coupled Systems](/docs/Conversations_loosely_coupled.pdf)\n(SD West, 2006) |\n| [Enterprise Integration Patterns](/docs/jaoo_hohpeg_enterpriseintegrationpatterns.pdf)\n(JAOO, 2003) |\n\nThis blog chronicles my journey with asynchronous and distributed system design over\n two decades.\n \n These are my Ramblings related to **WebServices** [See [all Ramblings](/ramblings.html)]. \n Subscribe to my ramblings via [RSS](ramblings.rss).\n\nFind my posts on IT strategy, enterprise architecture, and digital transformation\n at [ArchitectElevator.com](https://architectelevator.com/blog).\n\n---\n\n[RESTful Conversations](ramblings/81_restconversation.html) MAR 15, 2015\n\nAs indicated a good while ago I spent some time thinking about patterns that instead\n of following a message through multiple systems, looks at the message exchange over\n time between a (mostly) fixed set of systems. I call these message exchanges \"conversations\".\n Sadly my writing efforts on Conversation Patterns fell very much asleep around 2008,\n partly due to my fear that with the rise of REST, stateful conversations between systems\n would step into the background as most integration problems are now solved with a\n simple POST or GET. A presentation and conversation at Frank Leymann's IaaS PhD Seminar\n enlightened me that this is not at all true: systems following the REST architectural\n style very much engage in conversations. [Read more »](/ramblings/81_restconversation.html)\n\n[My Loss, Your Gain - SOA Patterns Article](ramblings/52_soapatterns.html) May 21, 2007\n\nBeginning of this year I submitted an article to a renowned software publication who\n is running a special issue on software patterns. Sadly, my article did not make it\n into the magazine but I decided to publish an expanded version on my site. Hey, I\n got to make it worth your time following my ramblings! Am I bitter that my article\n was rejected? Not at all, but if I ever get a hold of these #^%#$& -bleep- of a -bleep-\n I'll... [Read more »](/ramblings/52_soapatterns.html)\n\n[Dagstuhl Seminar](ramblings/44_dagstuhl.html) Aug 20, 2006\n\nI just returned from a trip to Germany to attend a workshop on The Role of Business\n Processes in Service Oriented Architecture. Besides a guaranteed top score in buzzword\n bingo the workshop provided a unique opportunity to connect thought leaders from academia\n and industry over the course of a week. The attendee roster sported the usual industry\n heavyweights, i.e., Microsoft, IBM, SAP, making me proud to add Google to the list.\n [Read more »](/ramblings/44_dagstuhl.html)\n\n[Will the Real Asynchrony Please Stand Up?](ramblings/28_asynchrony.html) May 15, 2005\n\nOn a recent project we developed a Web services framework that supports asynchronous\n callbacks and asynchronous invocation with polling. The difficulties we had describing\n what we were trying to do to my fellow ThoughtWorkers on other projects prompted me\n to discuss the different forms of asynchrony in a little more detail. [Read more »](/ramblings/28_asynchrony.html)\n\n[Web Services Jeopardy](ramblings/12_jeopardy.html) August 18, 2004\n\nIt is nearly impossible to keep track of all the Web Services (WS-*) specifications\n or proposed \"standards\". The matter is only worsened by the many competing proposals.\n Should you be using WS-Eventing or WS-Notification? How about WS-Reliability vs. WS-ReliableMessaging?\n Even if you choose the \"right\" specification, it still is likely to evolve over time.\n So are these standards useful at all for Web Services development today? I contend\n that they are, albeit in a somewhat unconventional way.... [Read more »](/ramblings/12_jeopardy.html)\n\n---", "znaku_textu": 5802, "slov": 688, "odkazu": 63, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 15:35:21", "sha256": "2a8b417d981339d886536cd0b2067f2cac5141292fa5605649942b06a9e1a9d4", "hloubka": 4, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://www.infoq.com/presentations/hohpe-soa-conversations", "http://www.infoq.com/", "http://www.infoq.com/presentations/hohpe-soa-development", "http://www.drdobbs.com/an-asynchronous-world/184415001", "https://sites.google.com/site/gcodejp/slides/ProgrammingCloud_QCon.pdf", "https://architectelevator.com/blog"]} {"url": "http://www.enterpriseintegrationpatterns.com/ramblings_writing.html", "titulek": "Gregor’s Ramblings on Writing - Enterprise Integration Patterns", "h1": "", "popis": "", "klicova_slova": "", "kanonicka": "", "jazyk": "", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [], "markdown": "Gregor’s Ramblings on Writing\n\n---\n\n| My latest thoughts on integration architecture: |\n| --- |\n| [Queues invert control flow but require flow control](/ramblings/queues_flow_control.html) |\n| [Control Flow—The Other Half of Integration Patterns](/ramblings/queues_control_flow.html) |\n| [Event-driven = Loosely coupled? Not so fast!](/ramblings/eventdriven_coupling.html) |\n\n| [A Decade of Enterprise Integration Patterns](/articles.html)\n\r\n (IEEE Software) |\n| --- |\n| [20 Years of Patterns' Impact](/articles.html) \n\r\n (IEEE Software) |\n| [Conversations Between Loosely Coupled Services](http://www.infoq.com/presentations/hohpe-soa-conversations) \n\r\n (Video on [InfoQ](http://www.infoq.com)) |\n| [Developing in a Service-oriented World](http://www.infoq.com/presentations/hohpe-soa-development) \n\r\n (Video on [InfoQ](http://www.infoq.com)) |\n| [SOA Patterns - New Insights or Recycled Knowledge?](/docs/SoaPatterns.pdf)\n\r\n (Whitepaper) |\n| [Let's Have a Conversation](/docs/IEEE_IC_Conversations.pdf)\n(IEEE Internet Computing) |\n| [Programming Without a Call Stack - Event-driven Architectures](/docs/EDA.pdf)\n(ObjektSpektrum, 2006) |\n| [Your Coffee Shop Does Not Use Two-Phase Commit](/docs/IEEE_Software_Design_2PC.pdf)\n\r\n (IEEE Software) |\n| [Developing in a Service-Oriented World](/docs/SOA_World.pdf)\n(ThoughtWorks Whitepaper) |\n| [An Asynchronous World](http://www.drdobbs.com/an-asynchronous-world/184415001)\n\r\n (Software Development) |\n\n| [Nearfield Communication (NFC) in Japan](/docs/NfcOopHohpe.pdf)\n(OOP 2012) |\n| --- |\n| [Embedded OSS](/docs/EmbeddedOop.pdf)\n(OOP 2012) |\n| [Programming the Cloud](https://sites.google.com/site/gcodejp/slides/ProgrammingCloud_QCon.pdf)\n(QCOn Tokyo 2010) |\n| [Distributed Programming the Google Way](/docs/DistributedProgrammingGoogle.pdf)\n(Devoxx 2009) |\n| [Developing in a Service-Oriented World](/docs/hohpe_developing_in_soa_world.pdf)\n(SOACon 2007) |\n| [Programming without a Call Stack: Event-driven Architectures](/docs/hohpe_event_driven_architectures.pdf)\n(SOACon 2007) |\n| [Software Visualization and Model Extraction](/docs/TSS_software_visualization.pdf)\n(TheServerSide) |\n| [Where did all my beatiful code go?](/docs/SpringOneKeynotePub.pdf)\n(SpringOne, 2006) |\n| [Conversations Between Loosely Coupled Systems](/docs/Conversations_loosely_coupled.pdf)\n(SD West, 2006) |\n| [Enterprise Integration Patterns](/docs/jaoo_hohpeg_enterpriseintegrationpatterns.pdf)\n(JAOO, 2003) |\n\nThis blog chronicles my journey with asynchronous and distributed system design over\n two decades.\n \n These are my Ramblings related to **Writing** [See [all Ramblings](/ramblings.html)]. \n Subscribe to my ramblings via [RSS](ramblings.rss).\n\nFind my posts on IT strategy, enterprise architecture, and digital transformation\n at [ArchitectElevator.com](https://architectelevator.com/blog).\n\n---\n\n[37 Things or \"Where have all my ramblings gone?\"](ramblings/94_37things.html) July 5, 2016\n\nAbout two years ago, I revived the ramblings from a four-year hibernation. Upon resurrection,\n the ramblings started to take a broader scope, including not only messaging, conversations,\n and patterns, but also communication and IT architecture topics. The new topics were\n a natural reflection of my new role as Chief Architect in a massive IT transformation\n and after a little while I decided that they deserve their own channel, so I wrote\n a book about it. [Read more Âť](/ramblings/94_37things.html)\n\n[Same Old Architecture - Best of Ramblings](ramblings/85_sameoldarchitecture.html) May 15, 2015\n\nArchitects can often be found commenting or complaining that many things in IT are\n the same old stuff in new packaging, created by marketing departments who were in\n need of a new buzzword. For example, aren't microservices really just SOA done right\n while SOA itself stands for \"Same Old Architecture\"? And the whole reactive movement\n seems to have re-discovered callbacks. Maybe there is some truth in this as at the\n recent SATURN conferences I found myself saying more often than I had expected \"I\n blogged about this\". So let's see which of my past ramblings are still relevant these\n days. [Read more Âť](/ramblings/85_sameoldarchitecture.html)\n\n[Writing for Busy People](ramblings/77_writing.html) SEP 21, 2014\n\nOne advantage of working for a relatively large organization is that I get to do a\n little more writing again. Not because I have spare time, but because in times of\n rapid change, communication across a large audience is critically important. It turns\n out, short papers are a good way to achieve that and my brief, but accurate technical\n position / decision papers have become a trademark of my architecture group (don't\n worry, we architects produce more than just paper).\n Correspondingly, one of my daily struggles is to convince others to write as well\n and to coach them to become better writers. In a sense, this forces me to transport\n what I know about writing from purely procedural knowledge, i.e. I know how to do\n it, to declarative knowledge, i.e. being able to understand why it is done and to\n describe to others how to do it.\n While this rambling's title is a pun on the popular books \"Japanese for busy People\",\n it intentionally implies an ambiguity that we are both writing for a busy audience,\n but are busy authors as well. [Read more Âť](/ramblings/77_writing.html)\n\n[Explaining Stuff](ramblings/76_explaining.html) AUG 30, 2014\n\nAt a recent presentation, Martin Fowler introduced himself as a guy \"who is good at\n explaining things\". While this certainly has a touch of British Understatement™, it\n also highlights a critically important but rare skill in IT. As technology invades\n all parts of personal and professional lives, causing companies to absolutely depend\n on software and systems, decision makers often can no longer keep track of technical\n details. Because architects live at the intersection of technology and business, it\n is their responsibility to explain complex topics and highlight the ramifications\n of technical decisions. [Read more Âť](/ramblings/76_explaining.html)\n\n[DDD - Diagram Driven Design](ramblings/75_ddd.html) MAR 22, 2010\n\nDrawing a picture turns out to be a useful system design technique. [Read more Âť](/ramblings/75_ddd.html)\n\n[A Chapter a Day...](ramblings/73_writing.html) FEB 1, 2010\n\nMy New Year's resolution was to write more, so here my thoughts on how to actually\n make that happen. In a sense it's a plan for myself to be more productive, but hopefully\n the ideas also work for other folks. Ironically, my work on EIP II has been stalled\n for a good while, so you're getting advice on how to be a prolific writer from someone\n who has not written much in 2 years. Read on at your own risk. [Read more Âť](/ramblings/73_writing.html)\n\n[EIP Visions](ramblings/72_eipvolumes.html) JAN 22, 2010\n\nThe beginning of a New Year is the time to reflect on the past and make resolutions\n for the future. It's become my tradition to kick off the year with some reflection\n on EIP, so here we go. [Read more Âť](/ramblings/72_eipvolumes.html)\n\n[Reflecting on Enterprise Integration Patterns](ramblings/66_fouryears.html) January 1, 2008\n\nThe end of the year is always the time to reflect on the past happenings. My friends\n in Japan often send a New Year's card with 12 pictures, each showing the significant\n event during the month. I am not sure something significant related to Enterprise\n Integration Patterns happened each month, but I think it's still nice to reflect a\n little bit on the history and current state of the patterns. After all, the patterns\n have matured from a draft paper to being adopted as the lingua franca for a number\n of open source messaging projects.\n [Read more Âť](/ramblings/66_fouryears.html)\n\n[I Want My Events](ramblings/57_pipes.html) July 15, 2007\n\nLast time I claimed that users like events. This time I want to show how I fulfilled\n my personal desire for events off the Web. I built two solutions to alert me to new\n book reviews on Amazon, one using a Python script, the other using Yahoo! Pipes. [Read more Âť](/ramblings/57_pipes.html)\n\n[My Loss, Your Gain - SOA Patterns Article](ramblings/52_soapatterns.html) May 21, 2007\n\nBeginning of this year I submitted an article to a renowned software publication who\n is running a special issue on software patterns. Sadly, my article did not make it\n into the magazine but I decided to publish an expanded version on my site. Hey, I\n got to make it worth your time following my ramblings! Am I bitter that my article\n was rejected? Not at all, but if I ever get a hold of these #^%#$& -bleep- of a -bleep-\n I'll... [Read more Âť](/ramblings/52_soapatterns.html)\n\n[I May Be a Flake, But At Least I Am Published!](ramblings/50_publications.html) May 2, 2007\n\nI have been pretty quiet recently, but I finally have some results to show. The current\n issue of IEEE Internet Computing (May/June 2007) contains my guest column for \"Toward\n Integration\". Also, I authored one chapter in the upcoming book \"SOA Expertenwissen\"\n (in German).\n [Read more Âť](/ramblings/50_publications.html)\n\n[Integration Patterns in the Wild](ramblings/43_wildpatterns.html) July 20, 2006\n\nHanging out with my intellectual drinking buddies reminded me that our integration\n patterns have been embraced by a fair number of commercial as well as open source\n projects. In my eyes this is really the best indicator of success for a pattern language.\n Latin, a dead language used mostly by doctors to sound more knowledgeable, is not\n a good model for a pattern language. You want a language that is alive and actually\n used by people. Talking to a few folks who did embrace our language motivated me to\n take a quick survey of the places where our patterns pop up. [Read more Âť](/ramblings/43_wildpatterns.html)\n\n---", "znaku_textu": 9676, "slov": 1318, "odkazu": 77, "kodovani": "iso-8859-2", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 15:35:22", "sha256": "8ca3bd704fb53bbb7c0e14cc2c71897b4dee46400c8bbb8465c2c26cf2c360ff", "hloubka": 4, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://www.infoq.com/presentations/hohpe-soa-conversations", "http://www.infoq.com/", "http://www.infoq.com/presentations/hohpe-soa-development", "http://www.drdobbs.com/an-asynchronous-world/184415001", "https://sites.google.com/site/gcodejp/slides/ProgrammingCloud_QCon.pdf", "https://architectelevator.com/blog"]} {"url": "http://www.enterpriseintegrationpatterns.com/talks", "titulek": "Talks - Enterprise Integration Patterns", "h1": "", "popis": "", "klicova_slova": "", "kanonicka": "", "jazyk": "", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Multi-day Workshops"}, {"uroven": 3, "text": "Enterprise Integration Patterns (2 days), Contact me for dates"}, {"uroven": 3, "text": "Architecting Enterprise Transformation (2 days)"}, {"uroven": 2, "text": "Upcoming Talks & Tutorials"}, {"uroven": 2, "text": "Past Talks & Events"}, {"uroven": 3, "text": "Software Architecture Gathering, Online, Nov 14, 2022"}, {"uroven": 3, "text": "Software Architecture Alliance, Munich, Oct 11, 2022"}, {"uroven": 3, "text": "YOW! Perth Developer Conference 2022, On-line, Sept 19, 2022"}, {"uroven": 3, "text": "Software Architect Summit, Berlin, Sept 12, 2022"}, {"uroven": 3, "text": "GOTO EDA Day 2022, London, Sept 1, 2022"}, {"uroven": 3, "text": "PlatformCon Keynote, On-line, June 9-10, 2022"}, {"uroven": 3, "text": "Software Architecture Summit, On-line, March 14-16, 2022"}, {"uroven": 3, "text": "Software Architecture Conference, New York City, Feb 23-26, 2020"}, {"uroven": 3, "text": "Software Architecture Conference, Berlin, Nov 4-7, 2019"}, {"uroven": 3, "text": "Yow! Singapore, Singapore, Sep 13, 2019"}, {"uroven": 3, "text": "Yow! Perth, Perth, Sep 6, 2019"}, {"uroven": 3, "text": "AWS Meetup Singapore, Singapore, July 16, 2019"}, {"uroven": 3, "text": "SummerSOC, Hersonissos, Greece, June 17-23, 2019"}, {"uroven": 3, "text": "TNG Big Tech Day 12, Munich, June 7, 2019"}, {"uroven": 3, "text": "Singapore GovTech Stack-X, Singapore, May 28, 2019"}, {"uroven": 3, "text": "Software Architecture Conference, New York, Feb 3-6, 2019"}, {"uroven": 3, "text": "Yow!, Perth, Australia, Sep 3-6, 2018"}, {"uroven": 3, "text": "Yow!, Hong Kong, Sep 13-15, 2018"}, {"uroven": 3, "text": "Agile India, Bangalore, Mar 6-8, 2018"}, {"uroven": 3, "text": "YOW!, Melbourne, Brisbane, Sydney, Nov 30 - Dec 8, 2017"}, {"uroven": 3, "text": "DevOpsCon, Munich, Nov 20-23, 2017"}, {"uroven": 3, "text": "Goto Berlin, Berlin, Nov 15-17, 2017"}, {"uroven": 3, "text": "YOW! Hong Kong, Hong Kong, Sep 7-8, 2017"}, {"uroven": 3, "text": "YOW! Singapore, Singapore, Sep 11-12, 2017"}, {"uroven": 3, "text": "IT-Architekten: Angelpunkt der Digitalen Transformation im Unternehmen, Bern, CH, Aug 25, 2017"}, {"uroven": 3, "text": "IT-Architekten: Angelpunkt der Digitalen Transformation im Unternehmen, Cologne, June 20-21, 2017"}, {"uroven": 3, "text": "Software Architecture Summit, Munich, March 15, 2017"}, {"uroven": 3, "text": "OOP, Munich, Jan 30- Feb 3, 2017"}, {"uroven": 3, "text": "YOW!, Sydney, Melbourne, Brisbane, Dec 1-9, 2016"}, {"uroven": 3, "text": "IT-Architekten: Angelpunkt der Digitalen Transformation im Unternehmen, Hamburg, Oct 19-20, 2016"}, {"uroven": 3, "text": "Software Architecture Summit, Berlin, Sept 26, 2016"}, {"uroven": 3, "text": "GOTO Chicago, Chicago. IL, May 23-26, 2016"}, {"uroven": 3, "text": "IT-Architekten: Angelpunkt der Digitalen Transformation im Unternehmen, Munich, April 25-26, 2016"}, {"uroven": 3, "text": "Software Architect Summit, Munich, March 16-18, 2016"}, {"uroven": 3, "text": "OOP, Munich, February 1-5, 2016"}, {"uroven": 3, "text": "W-JAX, Munich, November 2-6, 2015"}, {"uroven": 3, "text": "Software Architect Summit, Berlin, September 16-18, 2015"}, {"uroven": 3, "text": "SATURN 2015, Baltimore, MD, Apr 27-30, 2015"}, {"uroven": 3, "text": "OOP 2015, Munich, Germany, Jan 26-30, 2015"}, {"uroven": 3, "text": "GOTO Berlin, Berlin, Germany, Nov 6-7, 2014"}, {"uroven": 3, "text": "W-Jax 2014, Munich, Germany, Nov 4-6, 2014"}, {"uroven": 3, "text": "ECSA (European Conference on Software Architecture) 2014, Vienna, Austria, Aug 25-29, 2014"}, {"uroven": 3, "text": "TM Forum Live! 2014, Nice, France, June 2-5, 2014"}, {"uroven": 3, "text": "MobileTech Conference 2013, Munich, Germany, Mar 12-13, 2013"}, {"uroven": 3, "text": "W-JAX 2012, Munich, Germany, Nov 5-9, 2012"}, {"uroven": 3, "text": "OOP 2012, Munich, Germany, Jan 23-27, 2012"}, {"uroven": 3, "text": "WSO2Con, Colombo, Sri Lanka, Sep 13-15, 2011"}, {"uroven": 3, "text": "CamelOne, Arlington, VA, May 24, 2011"}, {"uroven": 3, "text": "Goto Conference, Aarhus, Denmark, Oct 4-8, 2010"}, {"uroven": 3, "text": "QCon, Tokyo, Japan, Apr 19-20, 2010"}, {"uroven": 3, "text": "Developer Summit, Tokyo, Japan, Feb 18-19, 2010"}, {"uroven": 3, "text": "OOP, Munich, Germany, Jan 25-29, 2010"}, {"uroven": 3, "text": "Devoxx, Antwerp, Belgium, Nov 16-19, 2009"}, {"uroven": 3, "text": "Karlsruhe Trend Kongress, Karlsruhe, Germany, Nov 20, 2009"}, {"uroven": 3, "text": "JAOO, Aarhus,Denmark, Oct 4-9, 2009"}, {"uroven": 3, "text": "JavaOne 2009, San Francisco, June 2-5, 2009"}, {"uroven": 3, "text": "QCon Tokyo, Tokyo, Japan, April 9 - 10, 2009"}, {"uroven": 3, "text": "Developer Summit Tokyo, Tokyo, Japan, Feb 12-13, 2009"}, {"uroven": 3, "text": "QCon San Francisco, San Francisco, CA, November 19 - 21, 2008"}, {"uroven": 3, "text": "JAOO Denmark, Aarhus, Denmark, September 28 - October 3, 2008"}, {"uroven": 3, "text": "IDG JavaWorld Day, Shinagawa, Japan, August 20, 2008"}, {"uroven": 3, "text": "Tokyo 2.0, SuperDeluxe, Tokyo, August 11, 2008"}, {"uroven": 3, "text": "JAOO Australia, Sydney & Brisbane, Australia, May 28 - June 1, 2008"}, {"uroven": 3, "text": "QCon, London, UK, March 10-14, 2008"}, {"uroven": 3, "text": "W-Jax, Munich, Germany, November 5-9, 2007"}, {"uroven": 3, "text": "Fifth International Workshop on SOA and Web Services Best Practices (at OOPSLA), Montreal, Canada, October 21, 2007"}, {"uroven": 3, "text": "Colorado Software Summit, Keystone, Colorado, October 21-26, 2007"}, {"uroven": 3, "text": "ICSOC: International Conference on Service-oriented Computing, Vienna, Austria, September 17-20, 2007"}, {"uroven": 3, "text": "TheServerSide Java Symposium Europe, Barcelona, June 27-29, 2007"}, {"uroven": 3, "text": "DEBS: Distributed Event-based Systems, Toronto, Canada, June 20-22, 2007"}, {"uroven": 3, "text": "SD West, Santa Clara, CA, March 19-23, 2007"}, {"uroven": 3, "text": "OOP, Munich, Germany, Jan 22-26, 2007"}, {"uroven": 3, "text": "JAOO, Aarhus, Denmark, October 1-6"}, {"uroven": 3, "text": "SOA Days Technology Conference, Bonn, Germany, Sept 20 -21"}, {"uroven": 3, "text": "JavaZone, Oslo, Norway, September 12-15"}, {"uroven": 3, "text": "TheServerSide Java Symposium Europe, Barcelona, Spain, June 21-23"}, {"uroven": 3, "text": "SpringOne, Antwerp, Belgium, June 15-16"}, {"uroven": 3, "text": "Burton Group Catalyst, San Francisco, June 14-16"}, {"uroven": 3, "text": "Forrester's IT Forum 2006: GigaWorld, Las Vegas, April 6"}, {"uroven": 3, "text": "TheServerSide Symposium, Las Vegas, March 23 - 25"}, {"uroven": 3, "text": "Software Development, Santa Clara, March 13 - 17"}, {"uroven": 3, "text": "OOP 2006, Munich, January 16 - 20"}, {"uroven": 3, "text": "OOPSLA 2005, San Diego, October 16- 20"}, {"uroven": 3, "text": "Microsoft PDC , Los Angeles, September 11-16"}, {"uroven": 3, "text": "Microsoft TechEd Europe, Amsterdam, July 5-8"}, {"uroven": 3, "text": "SD Forum, eBay Conference Center, San Jose, June 28"}, {"uroven": 3, "text": "Microsoft TechEd, Orlando, June 5-10"}, {"uroven": 3, "text": "EAI Forum, Karlsruhe, Germany, April 18-21"}, {"uroven": 3, "text": "TIBCO Software Conference: From Real-Time to Predictive Enterprise, Dubai, UAE, April 10"}, {"uroven": 3, "text": "Software Development Conference & Expo, Santa Clara, March 14-18"}, {"uroven": 3, "text": "Patterns and Practices Summit, Mountain View, March 14-16"}, {"uroven": 3, "text": "Canadian Strategic Architect Forum, Seattle, March 9-10"}, {"uroven": 3, "text": "TheServerSide Java Symposium, Las Vegas, March 3-5"}, {"uroven": 3, "text": "GI Fachtagung fuer Datenbanksysteme in Business, Technologie und Web,, Karlsruhe, Germany, March 2-4"}, {"uroven": 3, "text": "VSLive! Software Architect Summit, , San Francisco, February 6-10"}, {"uroven": 3, "text": "JavaPolis 2004, Antwerp, Belgium, Dec 13-17"}, {"uroven": 3, "text": "EAI Expertentag, Technische Universitaet Berlin, Nov 25-26"}, {"uroven": 3, "text": "Sun JavaOne, San Francisco, June 28-July 1, 2004"}, {"uroven": 3, "text": "OOPSLA 2004, Vancouver, Canada, Oct 24-28"}, {"uroven": 3, "text": "ACM Middleware 2004, Toronto, Canada, Oct 18-22"}, {"uroven": 3, "text": "Microsoft TechEd, San Diego, May 24-28, 2004"}, {"uroven": 3, "text": "EAI Industry Consortium Global Summit, Banff, Canada, May 24-28, 2004"}, {"uroven": 3, "text": "TheServerSide Java Symposium, Las Vegas, May 6-8, 2004"}, {"uroven": 3, "text": "Information Processing Society of Japan - Patterns Working Group, Tokyo, Japan, April 20"}, {"uroven": 3, "text": "JavaPolis, Antwerp, Belgium, December 3-4"}, {"uroven": 3, "text": "Nexus Computer Books, Calgary, Canada, Nov 27"}, {"uroven": 3, "text": "OOPSLA 2003, Anaheim, Oct 26-30"}, {"uroven": 3, "text": "JAOO 2003, Aarhus, Denmark, Sept 22-26"}, {"uroven": 3, "text": "SD Best Practices Conference, Boston, Sept 15-18, 2003"}, {"uroven": 3, "text": "TechEd 2003, Dallas, June 1-6"}, {"uroven": 3, "text": "SD West 2003 Conference, Santa Clara, March 24-28, 2003"}, {"uroven": 3, "text": "2002 LOMA Systems Forum"}], "markdown": "Talks\n\n---\n\nThe more than 100 keynotes, talks, and seminars that I have given at conferences, universities, user groups, or to corporate audiences draw from my experience in the following areas:\n\n- [IT transformation](/ramblings/94_37things.html)\n- [Enterprise architecture](/ramblings_architecture.html)\n- [Enterprise integration](/ramblings_integration.html)\n- [Asynchronous messaging architectures](/patterns/messaging)\n\nThe lively and interactive style assures that talks are consistently highly rated for making complex topics accessible without sacrificing technical accuracy. All talks and workshops can be delivered in English or German, also on site. If you are interested in having me speak at your event or company, feel free to [contact me](/gregor.html).\n\nI like to travel and have spoken in: Aarhus, Amsterdam, Antwerp, Baltimore, Banff, Bangkok, Barcelona, Beijing, Berlin, Bonn, Boston, Calgary, Chicago, Colombo, Dallas, Dubai, Frankfurt, Hamburg, Karlsruhe, Las Vegas, London, Los Angeles, Melbourne, Montreal, Munich, Nice, Orlando, Oslo, San Diego, San Francisco, Seattle, Shanghai, Sydney, Tokyo, Toronto, Vancouver, Vienna. Stay up-to-date via my [feed](/talks.rss). If you'd like to have a workshop conducted on your premises, please [Contact me](/gregor.html).\n\n## Multi-day Workshops\n\n| | Enterprise Integration Patterns (2 days), Contact me for dates Designing loosely coupled systems with asynchronous messaging and conversations\r\n \n Interesting applications rarely live in isolation, but are integrated into an ecosystem of internal applications, external interfaces and cloud services. Asynchronous messaging offers distinct advantages for system integration, such as loose coupling, but designing such systems is not trivial. This seminar aids architects and developers in the design of distributed and integrated systems with a design vocabulary of almost 100 design patterns, including patterns for asynchronous messaging (channels, messages, routing, transformation, endpoints, systems management) and patterns for stateful conversations (discovery, initiation, intermediaries, resource management, reaching agreement). |\n| --- | --- |\n| | [Architecting Enterprise Transformation (2 days)](https://architectelevator.com/workshops/) \r\n As the digital economy changes the rules of the game for enterprises, the role of architects also fundamentally changes. They must connect the penthouse, where the business strategy is defined, with the engine room, where the enabling technologies are implemented. Making this connection by walking from floor to floor won’t work. Instead, modern architects bypass existing structures by taking the Architect Elevator. In this [highly interactive workshop](https://architectelevator.com/workshops/) architects learn how to transcend organizational levels to better link business strategy, IT strategy, and implementation. |\n\n## Upcoming Talks & Tutorials\n\n## Past Talks & Events\n\n| | [Software Architecture Gathering, Online, Nov 14, 2022](https://conferences.isaqb.org/software-architecture-gathering/) [The Architect Elevator: Connecting IT and Boardroom](https://conferences.isaqb.org/software-architecture-gathering/speaker/#the-architect-elevator-connecting-it-and-boardroom) |\n| --- | --- |\n| | [Software Architecture Alliance, Munich, Oct 11, 2022](https://www.software-architecture-alliance.de/software-architecture-alliance-2022) [Der Architekten Aufzug: Vom Maschinenraum in das Penthouse und zurück](https://www.software-architecture-alliance.de/software-architecture-alliance-2022/programm/programm/#:~:text=Architekten%20Aufzug) |\n| | [YOW! Perth Developer Conference 2022, On-line, Sept 19, 2022](https://skillsmatter.com/conferences/13836-yow-perth-2022-online) [Infrastructure as actual Code](https://skillsmatter.com/legacy_profile/gregor-hohpe) \n Cloud automation is much more than just eliminating manual steps - it should be an integral part of your software delivery lifecycle and actively influence your architecture choices. |\n| | [Software Architect Summit, Berlin, Sept 12, 2022](https://software-architecture-summit.de/berlin/) [The Architect Elevator](https://software-architecture-summit.de/softwarearchitektur/keynote/) \n We upgrade our technology all the time - shouldn’t we also update our role as architects? |\n| | [GOTO EDA Day 2022, London, Sept 1, 2022](https://gotoldn.com/) [Keynote: I made everything loosely coupled. What holds my app together?](https://gotoldn.com/2022-eda-aws-day/sessions/2116/i-made-everything-loosely-coupled-does-my-app-fall-apart) |\n| | [PlatformCon Keynote, On-line, June 9-10, 2022](https://platformcon.com/) [Keynote: The Magic of Platforms](https://platformcon.com/talk/you-dont-have-to-be-a-giant-to-carry-teams-on-your-shoulders) |\n| | [Software Architecture Summit, On-line, March 14-16, 2022](https://software-architecture-summit.de/muenchen/) [Keynote: Die Magie der Plattformen](https://software-architecture-summit.de/domain-driven-design/die-magie-der-plattformen/) |\n| | [Software Architecture Conference, New York City, Feb 23-26, 2020](https://conferences.oreilly.com/software-architecture/sa-ny) [2-day Training: The Architect Elevator](https://conferences.oreilly.com/software-architecture/sa-ny/public/schedule/detail/80209) |\n| | [Software Architecture Conference, Berlin, Nov 4-7, 2019](https://conferences.oreilly.com/software-architecture/sa-eu) [2-day Training: The Architect Elevator](https://conferences.oreilly.com/software-architecture/sa-eu/public/schedule/detail/79316) \n [Living in the first derivative](https://conferences.oreilly.com/software-architecture/sa-eu/public/schedule/detail/79166) \n [Enterprise Architecture = Architecting the Enterprise?](https://conferences.oreilly.com/software-architecture/sa-eu/public/schedule/detail/79165) |\n| | [Yow! Singapore, Singapore, Sep 13, 2019](https://yowconference.com/singapore/) Architects live in the first derivative |\n| | [Yow! Perth, Perth, Sep 6, 2019](https://yowconference.com/perth/) Architects live in the first derivative |\n| | [AWS Meetup Singapore, Singapore, July 16, 2019](https://www.meetup.com/AWS-SG/events/262215316/) Being a Cloud Architect |\n| | [SummerSOC, Hersonissos, Greece, June 17-23, 2019](https://www.summersoc.eu/) [The Architect Elevator](https://www.summersoc.eu/program/) |\n| | [TNG Big Tech Day 12, Munich, June 7, 2019](https://www.tngtech.com/big-techday.html) [The Architect Elevator: Connecting Penthouse and Engine Room](https://www.tngtech.com/big-techday/abstracts.html#c22112) |\n| | [Singapore GovTech Stack-X, Singapore, May 28, 2019](https://www.govtechstack.sg/past-events) Keynote: Being a Cloud Architect |\n| | [Software Architecture Conference, New York, Feb 3-6, 2019](https://conferences.oreilly.com/software-architecture/sa-ny) [2-day Training: The Architect Elevator](https://conferences.oreilly.com/software-architecture/sa-ny/public/schedule/detail/72070) \n [Keynote: Architecting IT Transformation](https://conferences.oreilly.com/software-architecture/sa-ny/public/schedule/detail/74391) \n [Enterprise Architecture = Architecting the Enterprise?](https://conferences.oreilly.com/software-architecture/sa-ny/public/schedule/detail/71599) |\n| | [Yow!, Perth, Australia, Sep 3-6, 2018](http://west.yowconference.com.au/profile/?id=gregor-hohpe) [Keynote: Enterprise Architecture = Architecting the Enterprise?](https://west.yowconference.com.au/proposal?id=6062) |\n| | [Yow!, Hong Kong, Sep 13-15, 2018](http://www.yowconference.hk/profile/?id=gregor-hohpe) |\n| | [Agile India, Bangalore, Mar 6-8, 2018](https://2018.agileindia.org/speaker/gregor-hohpe/) [Full Day Workshop: Architecting Enterprise Transformation](https://confengine.com/agile-india-2018/register/selection#workshop-187-info) \n [Adopting Devops - You are aiming at the wrong target!](https://2018.agileindia.org/speaker/gregor-hohpe/) \n [Enterprise Architecture = Architecting the Enterprise?](https://2018.agileindia.org/speaker/gregor-hohpe/) |\n| | [YOW!, Melbourne, Brisbane, Sydney, Nov 30 - Dec 8, 2017](http://melbourne.yowconference.com.au/speakers/gregor-hohpe-2/) [Full Day Workshop: Architecting Enterprise Transformation](http://sydney.yowconference.com.au/proposal/?id=5182) \n [CTO Summit: Life of a Chief Architect](http://sydneyctosummit.yowconference.com.au/profile/?id=gregor-hohpe) \n [Enterprise Architecture = Architecting the Enterprise?](http://melbourne.yowconference.com.au/profile/?id=gregor-hohpe) \n A three-city circuit through Australia. |\n| | [DevOpsCon, Munich, Nov 20-23, 2017](https://devopsconference.de/) [Adopting DevOps? You are aiming at the wrong target!](https://devopsconference.de/business-company-culture/adopting-devops-you-are-aiming-at-the-wrong-target/) |\n| | [Goto Berlin, Berlin, Nov 15-17, 2017](https://gotober.com/2017/speakers/318) [Enterprise Architecture = Architecting the Enterprise?](https://gotober.com/2017/sessions/282) \n [Adopting Devops - You are aiming at the wrong target!](https://gotober.com/2017/sessions/283) \n [Full Day Workshop: Architecting Enterprise Transformation](https://gotober.com/2017/workshops/69) \n The highly interactive full-day workshop shows architects how to ride the \"architect elevator\" to the upper floors where they can align IT with business strategy. This is the first time this workshop is held in Germany in English - don't miss it! |\n| | [YOW! Hong Kong, Hong Kong, Sep 7-8, 2017](http://hongkong.yowconference.com.au/) [Enterprise Integration Patterns 2: The Making of a Pattern Language](http://hongkong.yowconference.com.au/speakers/gregor-hophe/) |\n| | [YOW! Singapore, Singapore, Sep 11-12, 2017](http://www.yowconference.sg/) [Enterprise Integration Patterns 2: The Making of a Pattern Language](http://singapore.yowconference.com.au/speakers/gregor-hophe/) \n [Full Day Workshop: Architecting Enterprise Transformation (Sept 13)](http://singapore.yowconference.com.au/workshops/architecting-enterprise-transformation-37-things-one-architect-knows/) \n This highly interactive full-day workshop teaches architects how to ride the \"architect elevator\" to the upper floors to align IT with business strategy and to instill lasting change into their organization. First time in Singapore! |\n| | [IT-Architekten: Angelpunkt der Digitalen Transformation im Unternehmen, Bern, CH, Aug 25, 2017](https://www.innoq.com/en/trainings/digitale-transformation-it-architektur/) Zum ersten mal live in der Schweiz mit einem Praxis-Training zum Schnittpunkt zwischen IT Architektur und Transformation. Super Angebot fuer CHF 200! |\n| | [IT-Architekten: Angelpunkt der Digitalen Transformation im Unternehmen, Cologne, June 20-21, 2017](https://www.innoq.com/de/trainings/digitale-transformation-it-architektur/) 2-day Workshop in German\r\n \n IT-Architekten spielen eine Schlüsselrolle bei der digitalen Transformation traditioneller Unternehmen, weil sie wissen, wie man Cloud Computing, Big Data, Mobile Apps, IoT, Microservices & Co gewinnbringend im Unternehmen einsetzt. Dazu bedarf es der Fähigkeit, sich auf allen Ebenen der Organisation zu bewegen, um die Firmenstrategie zu verstehen, zu beeinflussen, und durch Softwareentwicklung und IT-Infrastruktur voranzutreiben. |\n| | [Software Architecture Summit, Munich, March 15, 2017](http://software-architecture-summit.de/programm/) [Keynote: Denken wie ein(e) Architekt(in)](https://software-architecture-summit.de/session/keynote-denken-wie-eine-architektin/) |\n| | [OOP, Munich, Jan 30- Feb 3, 2017](http://www.oop-konferenz.de/) [Architekturentscheidungen: Den Wald vor lauter Bäumen sehen](http://www.oop-konferenz.de/oop2017/konferenz/konferenzprogramm/sessiondetails/action/detail/session/mi-21/title/architekturentscheidungen-wie-man-vor-lauter-wald-noch-die-baeume-sehen-kann.html) \n [Architektur einer IT-Transformation](http://www.oop-konferenz.de/oop2017/konferenz/konferenzprogramm/sessiondetails/action/detail/session/do-81/title/architektur-einer-it-transformation-37-dinge-die-ein-chefarchitekt-gelernt-hat.html) |\n| | [YOW!, Sydney, Melbourne, Brisbane, Dec 1-9, 2016](http://yowconference.com.au/) [If you are synchronous you are not resilient](https://a.confui.com/-fenNhxkI) \n [Full Day Workshop: Architecting IT Transformation](https://a.confui.com/-i9NHGW5K) \n My full-day workshop is loosely based on my new book \"37 Things One Architect Knows\" to teach architects how to ride the elevator higher up towards the company leadership to provide more value with IT and to instill lasting change into the organization. |\n| | [IT-Architekten: Angelpunkt der Digitalen Transformation im Unternehmen, Hamburg, Oct 19-20, 2016](https://www.innoq.com/de/trainings/digitale-transformation-it-architektur/) 2-day Seminar in German\r\n \n IT-Architekten spielen eine Schlüsselrolle bei der digitalen Transformation traditioneller Unternehmen, weil sie wissen, wie man Cloud Computing, Big Data, Mobile Apps, IoT, Microservices & Co gewinnbringend im Unternehmen einsetzt. Dazu bedarf es der Fähigkeit, sich auf allen Ebenen der Organisation zu bewegen, um die Firmenstrategie zu verstehen, zu beeinflussen, und durch Softwareentwicklung und IT-Infrastruktur voranzutreiben. |\n| | [Software Architecture Summit, Berlin, Sept 26, 2016](http://software-architecture-summit.de/programm/) [Architektur einer IT Transformation: 37 Dinge, die ein Chefarchitekt wissen muss](http://software-architecture-summit.de/session/architektur-einer-it-transformation-37-dinge-die-ein-chefarchitekt-wissen-muss/) \n [Keynote: Denken wie ein(e) Architekt(in)](http://software-architecture-summit.de/session/keynote/) |\n| | [GOTO Chicago, Chicago. IL, May 23-26, 2016](http://gotocon.com/chicago-2016) [If you are synchronous, you are not resilient](http://gotocon.com/chicago-2016/presentation/If%20you%20are%20synchronous%20you%20are%20not%20resilient) \n [Workshop: Architecting Enterprise Transformation](http://gotocon.com/chicago-2016/presentation/Architecting%20Enterprise%20Transformation) \n I will hold a full-day workshop based on by book-in-progress \"37 Things One Architect Knows\". |\n| | [IT-Architekten: Angelpunkt der Digitalen Transformation im Unternehmen, Munich, April 25-26, 2016](https://www.innoq.com/de/trainings/digitale-transformation-it-architektur/) 2-day Seminar in German |\n| | [Software Architect Summit, Munich, March 16-18, 2016](http://software-architecture-summit.de/) [Keynote: Enterprise Architekten - Raus aus dem Elfenbeinturm, rein in die digitale Welt](http://software-architecture-summit.de/session/keynote-enterprise-architekten-raus-aus-dem-elfenbeinturm-rein-in-die-digitale-welt/) \n [Tutorial: Enterprise Integration Patterns - Messaging und Konversationen](http://software-architecture-summit.de/session/enterprise-integration-patterns-messaging-und-conversations/) [[Download](/docs/EnterpriseIntegrationPatternsHalfDay.pdf)] |\n| | [OOP, Munich, February 1-5, 2016](http://www.oop-konferenz.de/) [Software-Architekturen im Zeitalter der Dinge](http://www.oop-konferenz.de/oop2016/konferenz/konferenzprogramm/sessiondetails/action/detail/session/nmi-2/title/software-architekturen-im-zeitalter-der-dinge.html) (with Frank Buschmann) \n [Tutorial: Enterprise Architekten - Raus aus dem Elfenbeinturm, rein in die digitale Welt](http://www.oop-konferenz.de/oop2016/konferenz/konferenzprogramm/sessiondetails/action/detail/session/mo-5/title/enterprise-architekten-raus-aus-dem-elfenbeinturm-rein-in-die-digitale-welt.html) |\n| | [W-JAX, Munich, November 2-6, 2015](http://jax.de/wjax2015) [Enterprise Architekten - Raus aus dem Elfenbeinturm, rein in die digitale Welt](http://jax.de/wjax2015/sessions/enterprise-architekten-raus-aus-dem-elfenbeinturm-rein-die-digitale-welt) |\n| | [Software Architect Summit, Berlin, September 16-18, 2015](http://software-architecture-summit.de/2015/en/node/844/) Keynote: Enterprise Architekten - Raus aus dem Elfenbeinturm, rein in die digitale Welt\r\n \n Tutorial: Enterprise Integration Patterns - Messaging und Konversationen |\n| | [SATURN 2015, Baltimore, MD, Apr 27-30, 2015](http://www.sei.cmu.edu/saturn/2015/) It's Good to be Architect |\n| | [OOP 2015, Munich, Germany, Jan 26-30, 2015](http://www.oop-konferenz.de/) [Architekten – Halluzinationen aus dem Elfenbeinturm oder IT Heilsbringer?](http://www.oop-konferenz.de/nc/oop2015/konferenz/konferenzprogramm/conference-detail/architekten-halluzinationen-aus-dem-elfenbeinturm-oder-it-heilsbringer.html) (with Frank Buschmann) |\n| | [GOTO Berlin, Berlin, Germany, Nov 6-7, 2014](http://gotocon.com/berlin-2014) [Enterprise Architect - Ivory Tower Resident or Corporate Savior?](http://gotocon.com/berlin-2014/speaker/Gregor+Hohpe) |\n| | [W-Jax 2014, Munich, Germany, Nov 4-6, 2014](http://jax.de/wjax2014) [The Enterprise Architect - Ivory Tower Resident or Corporate Savior?](http://jax.de/wjax2014/sessions/enterprise-architect-ivory-tower-resident-or-corporate-savior) |\n| | [ECSA (European Conference on Software Architecture) 2014, Vienna, Austria, Aug 25-29, 2014](http://ecsa2014.cs.univie.ac.at/) [The Age of Architecture](http://ecsa2014.cs.univie.ac.at/program/keynote-speakers/) |\n| | [TM Forum Live! 2014, Nice, France, June 2-5, 2014](http://www.tmforumlive.org/) [Transforming Global IT Infrastructure](http://www.tmforumlive.org/speakers/?speaker=26367) |\n| | [MobileTech Conference 2013, Munich, Germany, Mar 12-13, 2013](http://mobiletechcon.de/2013/) Near Field communication (NFC) in Japan |\n| | [W-JAX 2012, Munich, Germany, Nov 5-9, 2012](http://jax.de/konferenzen/wjax12) Enterprise Integration Patterns: Past, Present and Future |\n| | [OOP 2012, Munich, Germany, Jan 23-27, 2012](http://www.sigs-datacom.de/oop2012/oop2012.html) NFC - Near Field Communication in Japan [[Download](/docs/NfcOopHohpe.pdf)] \n Embedded Software Development: Spottbillige Hardware + OSS = Zum Spielen zu Schade! [[Download](/docs/EmbeddedOop.pdf)] |\n| | [WSO2Con, Colombo, Sri Lanka, Sep 13-15, 2011](http://wso2.com/events/wso2con-2011-colombo/) Keynote: Enterprise Integration Patterns: Past, Present and Future |\n| | [CamelOne, Arlington, VA, May 24, 2011](http://fusesource.com/camelone2011/) [Keynote: Enterprise Integration Patterns: Past, Present and Future](http://fusesource.com/camelone2011/speakers/#gregor) |\n| | [Goto Conference, Aarhus, Denmark, Oct 4-8, 2010](http://gotocon.com/aarhus-2010) [Data Storage and Analysis in the Cloud](http://gotocon.com/aarhus-2010/speaker/Gregor+Hohpe) [[Download](http://gotocon.com/dl/jaoo-aarhus-2010/slides/GregorHohpe_DataStorageAndAnalysisInTheCloud.pdf)] \n [NFC - Not For Children?](http://gotocon.com/aarhus-2010/speaker/Gregor+Hohpe) [[Download](http://gotocon.com/dl/jaoo-aarhus-2010/slides/GregorHohpe_NFCNotForChildren.pdf)] \n My NFC talk was the 2nd highest ranked at the conference. |\n| | [QCon, Tokyo, Japan, Apr 19-20, 2010](http://qcontokyo.com/tokyo-2010) [Programming the Cloud](http://qcontokyo.com/tokyo-2010/speaker_GregorHohpe.html) |\n| | [Developer Summit, Tokyo, Japan, Feb 18-19, 2010](http://codezine.jp/devsumi/2010) [Distributed Programming the Google Way](http://www.seshop.com/event/dev/2010/timetable/Default.asp?mode=detail&eid=145&tr=01_Cloud+Development#831) |\n| | [OOP, Munich, Germany, Jan 25-29, 2010](http://www.oop2010.com) [Distributed Programming the Google Way](http://www.sigs-datacom.de/konferenz/sessiondetails.html?tx_mwconferences_pi1[showUid]=95) \n [Hooking Stuff Together - Coupling, Messaging, and Conversations](http://www.sigs-datacom.de/konferenz/sessiondetails.html?tx_mwconferences_pi1[showUid]=126) |\n| | [Devoxx, Antwerp, Belgium, Nov 16-19, 2009](http://www.devoxx.com) [Distributed Programming the Google Way](http://www.devoxx.com/display/DV09/Gregor+Hohpe) [[Download](/docs/DistributedProgrammingGoogle.pdf)] \n I collected a set of design considerations for building widely distributed systems and show how they are used in some of Google's core systems, such as Bigtable, GFS, or MapReduce. |\n| | [Karlsruhe Trend Kongress, Karlsruhe, Germany, Nov 20, 2009](http://www.trendkongress.com/) Programming the Cloud for Mere Mortals [[Download](/docs/HohpeProgrammingCloudKeynote.pdf)] \n I was invited to give a 30 minute keynote at this event, which was organized by the CyberForum. I chose to give a high-level overview of some of the challenges inherent in programming distributed systems. |\n| | [JAOO, Aarhus,Denmark, Oct 4-9, 2009](http://jaoo.dk/aarhus-2009/tracks/show_track.jsp?trackOID=266) [Distributed Programming the Google Way](http://jaoo.dk/aarhus-2009/presentation/Distributed+Computing+the+Google+Way) \n I am again running the cloud computing track at JAOO. My talk tries to extract common design patterns or themes from a variety of Google core systems, such as GFS, Bigtable, MapReduce, Sawzall. |\n| | JavaOne 2009, San Francisco, June 2-5, 2009 [Cloud Computing: Show Me the Money](http://www28.cplan.com/cc230/sessions_catalog.jsp?ilc=230-1&ilg=english&isort=&isort_type=&is=yes&icriteria3=hohpe) |\n| | [QCon Tokyo, Tokyo, Japan, April 9 - 10, 2009](http://qcontokyo.com/) [Programming the Cloud](http://qcontokyo.com/tokyo-2009/speaker_52.html) [[Download](https://sites.google.com/site/gcodejp/slides/ProgrammingCloud_QCon.pdf)] \n I was finally able to speak about Google App Engine for Java. |\n| | [Developer Summit Tokyo, Tokyo, Japan, Feb 12-13, 2009](http://codezine.jp/devsumi/2009) [Programming the Cloud](http://www.seshop.com/event/dev/2009/timetable/Default.asp?mode=detail&eid=124&sid=749) |\n| | [QCon San Francisco, San Francisco, CA, November 19 - 21, 2008](http://qcon.infoq.com/sanfrancisco-2008/tracks/show_track.jsp?trackOID=159) Track: The Cloud as the New Middleware Platform\r\n \n I am track hosting the Cloud Computing track. We'll have speakers from Google, Yahoo, Salesforce, and John \"ProgrammableWeb\" Musser. |\n| | [JAOO Denmark, Aarhus, Denmark, September 28 - October 3, 2008](http://www.jaoo.dk/conference/) GData: Google, the Cloud, and You |\n| | [IDG JavaWorld Day, Shinagawa, Japan, August 20, 2008](http://www.idg.co.jp/expo/jwday/2008/session/#K-1) Programming the Cloud -- the Internet as a Platform |\n| | [Tokyo 2.0, SuperDeluxe, Tokyo, August 11, 2008](http://www.tokyo2point0.net/events/event/show?id=765451:Event:6342) Programm the Cloud |\n| | [JAOO Australia, Sydney & Brisbane, Australia, May 28 - June 1, 2008](http://jaoo.com.au/sydney/conference/) GData: Google, the Cloud, and You\r\n \n \"Hooking Stuff Together\" – Coupling, Messaging, and Conversations\r\n \n Software Visualization and Model Generation (with Erik Doernenburg) |\n| | [QCon, London, UK, March 10-14, 2008](http://qcon.infoq.com/london/tracks/show_track.jsp?trackOID=95) Track: The Cloud as the New Middleware Platform\r\n \n I'll be organizing the coud computing track for QCon. Hope to see you there! |\n| | [W-Jax, Munich, Germany, November 5-9, 2007](http://jax.de/konferenzen/wjax07) [Developing in an SOA World](http://jax.de/konferenzen/wjax07/sessions.php?tid=596#session-11) \n [Programming Without a Call Stack - Event-driven Architectures in Action](http://jax.de/konferenzen/wjax07/sessions.php?tid=596#session-5) [[Download](/docs/hohpe_event_driven_architectures.pdf)] |\n| | [Fifth International Workshop on SOA and Web Services Best Practices (at OOPSLA), Montreal, Canada, October 21, 2007](http://boss.bekk.no/oopsla2007/) Keynote -- SOA Patterns: New Insights or Recycled Knowledge? [[Download](/docs/HohpeSOAPatterns.pdf)] |\n| | [Colorado Software Summit, Keystone, Colorado, October 21-26, 2007](http://www.softwaresummit.com/) Mashing Up with Google Mashup Editor and Yahoo! Pipes\r\n \n Programming without a Call Stack – Event-driven Architectures\r\n \n My first live talk about Google products. Just to maintain the balance in the universe I work with both Yahoo! Pipes and Google Mashup Editor. |\n| | [ICSOC: International Conference on Service-oriented Computing, Vienna, Austria, September 17-20, 2007](http://icsoc2007.servtech.info/) Panel on SOA Governance\r\n \n Panel on Service API's and Mashups\r\n \n Panel on SOA Run-time |\n| | [TheServerSide Java Symposium Europe, Barcelona, June 27-29, 2007](http://javasymposium.techtarget.com/europe/) [Software Visualization and Model Generation](http://javasymposium.techtarget.com/europe/sessions.html#GHohpeSoftware) (with Erik Doernenburg) \n [Programming without a Call Stack - Event-driven Architectures](http://javasymposium.techtarget.com/europe/sessions.html#GHohpeProgramming) |\n| | [DEBS: Distributed Event-based Systems, Toronto, Canada, June 20-22, 2007](http://www.debs.msrg.utoronto.ca/) [Architect's Dream or Developer's Nightmare](http://www.debs.msrg.utoronto.ca/program.shtml#hohpe) |\n| | [SD West, Santa Clara, CA, March 19-23, 2007](http://www.sdexpo.com/) [Developing in a Service-Oriented World](http://www.cmpevents.com/SDw7/a.asp?option=G&V=3&id=196544) \n [Software Visualization and Model Generation](http://www.cmpevents.com/SDw7/a.asp?option=G&V=3&id=196544) \n [Conversations between Loosely Coupled Services](http://www.cmpevents.com/SDw7/a.asp?option=G&V=3&id=196544) |\n| | [OOP, Munich, Germany, Jan 22-26, 2007](http://www.oopconference.com) [Conversations between Loosely Coupled Services](http://www.sigs-datacom.de/sd/kongresse/oop_2007/program.php?cat=session&ID=89) \n [Software Visualization and Model Generation](http://www.sigs-datacom.de/sd/kongresse/oop_2007/program.php?cat=session&ID=113) (with Erik Doernenburg) |\n| | [JAOO, Aarhus, Denmark, October 1-6](http://www.jaoo.dk/) [Conversations between loosely coupled services](http://www.infoq.com/presentations/hohpe-soa-conversations) \n I will be leading the SOA track at JAOO this year. Is there anything left to say about SOA? I think so! I am looking to compile a series of insightful talks that are based on real experiences. |\n| | [SOA Days Technology Conference, Bonn, Germany, Sept 20 -21](http://domains.euroforum.com/soa/) Patterns in Service-oriented Architectures |\n| | [JavaZone, Oslo, Norway, September 12-15](http://www.javazone.no/) Software Visualization and Model Generation (with Erik Doernenburg) \n [Developing in a Service-oriented World](http://www.infoq.com/presentations/hohpe-soa-development) \n I have heard great things about JavaZone from many other speakers. This time I get to be part of it. |\n| | [TheServerSide Java Symposium Europe, Barcelona, Spain, June 21-23](http://javasymposium-europe.techtarget.com/) Software Visualization and Model Generation (with Erik Doernenburg) \n Developing in a Service-oriented World |\n| | [SpringOne, Antwerp, Belgium, June 15-16](http://www.springone.com/) [Patterns in Service-oriented Architectures](http://www.springone.com/display/SpringOne06/Patterns+in+Service-oriented+Architectures) \n Keynote: Where did all my beautiful code go? [[Download](/docs/SpringOneKeynotePub.pdf)] \n This one should be fun -- I get to hang out with my intellectual drinking buddies in Antwerp. |\n| | [Burton Group Catalyst, San Francisco, June 14-16](http://catalyst.burtongroup.com/) [Agile SOA - The SDLC, SOA, and YOU](http://catalyst.burtongroup.com/attendees/abstract.php?sessionID=319) \n Agile development methods enjoy increasing popularity when it comes to building business applications. They promise flexibility, immediate customer feedback, and a high-quality solution. However, some of the basic mechanisms of service-oriented architectures can be perceived as a counterforce to agile development. For example, published interface contracts can bog down rapid iteration. Also, development tools that support an agile development style are not always available for Web-services based interactions. Can you have the best of both worlds? |\n| | [Forrester's IT Forum 2006: GigaWorld, Las Vegas, April 6](http://www.forrester.com/Events/Overview/1,5158,1173,00.html) [Panel: The Death of Programming](https://www.forresterevents.com/ITF2006/scheduler//profile.do?SESSION_ID=1111&ts=1143615885398) |\n| | [TheServerSide Symposium, Las Vegas, March 23 - 25](http://javasymposium.techtarget.com/) Keynote: Where did all my beautiful code go? [[Download](/docs/TSS_Keynote_Hohpe.pdf)] \n [Software Visualization and Model Generation](http://javasymposium.techtarget.com/html/det_descriptions.htm#GHohpeSoftware) [[Download](/docs/TSS_software_visualization.pdf)] (with Erik Doernenburg) \n [Patterns in Service-Oriented Architectures](http://javasymposium.techtarget.com/html/det_descriptions.htm#GHohpePatterns) |\n| | [Software Development, Santa Clara, March 13 - 17](http://www.cmpevents.com/SDw6/a.asp?option=C) [Developing in a Service-Oriented World](http://www.cmpevents.com/SDw6/a.asp?option=C&V=11&SessID=1764) \n [Conversations Between Loosely Coupled Services](http://www.cmpevents.com/SDw6/a.asp?option=C&V=11&SessID=1680) [[Download](/docs/Conversations_loosely_coupled.pdf)] |\n| | [OOP 2006, Munich, January 16 - 20](http://www.sigs-datacom.de/sd/kongresse/oop_2006/) [Developing in a Service-Oriented World](http://www.sigs-datacom.de/sd/kongresse/oop_2006/program.php?cat=session&ID=46) \n [Distributed Systems Architectures based on Asynchronous Messaging](http://www.sigs-datacom.de/sd/kongresse/oop_2006/program.php?cat=session&ID=21) \n [Enterprise Integration Patterns](http://www.sigs-datacom.de/sd/kongresse/oop_2006/program.php?cat=session&ID=66) \n \r\nI heard good things about this German conference from a number of people. This time I'll have an opportunity to speak. It'll be great to be in Munich during the winter but they make me work pretty hard for it: three talks in a row... I hope there will be some time left to party with Christian! |\n| | [OOPSLA 2005, San Diego, October 16- 20](http://www.oopsla.org/2005) Tutorial - Programming without a Call Stack - Event-driven Architectures in Action\r\n \n This 3 hour tutorial will allow me to expand on my popular talk on composable, event-driven systems. |\n| | [Microsoft PDC , Los Angeles, September 11-16](http://msdn.microsoft.com/events/pdc/) Panel: The Art and Practice of Connected Systems \r\n \n A panel with Steve Swartz should be fun, especially on connected systems. |\n| | [Microsoft TechEd Europe, Amsterdam, July 5-8](http://www.mseventseurope.com/teched/05/pre/content/default.aspx) Messaging Patterns with Indigo\r\n \n This talk is still in the planning phase. TechEd Europe will have quite a few Indigo talks\r\n because not everybody is going to be able to make it to PDC. I myself\r\n need to find a way to weazle a ticket to PDC out of someone ;-) |\n| | [SD Forum, eBay Conference Center, San Jose, June 28](http://www.sdforum.org/SDForum/Templates/CalendarEvent.aspx?CID=1675&mo=6&yr=2005) Developing in a Service-Oriented World \r\n \n The SD Forum organizes local events in the Bay Area. This talk concludes an all day Web Services\r\n Conference organized by SD Forum. Admission is free to SD Members or $15 for others. This might be the\r\n cheapest way yet to see me speak :-) |\n| | [Microsoft TechEd, Orlando, June 5-10](http://www.microsoft.com/events/teched2005) Introduction to Messaging (with Ted Neward) \n I will be co-presenting with Ted Neward, which promises to be quite entertaining :-) |\n| | [EAI Forum, Karlsruhe, Germany, April 18-21](http://www.eai-forum.de/) Enterprise Integration Patterns\r\n \n EAI Forum is the largest integration related event in the German speaking area. Luckily, I started\r\n to translate some of my material into German... |\n| | TIBCO Software Conference: From Real-Time to Predictive Enterprise, Dubai, UAE, April 10 SOA = Same Old Architecture?\r\n \n Enterprise Integration Patterns |\n| | [Software Development Conference & Expo, Santa Clara, March 14-18](http://www.sdexpo.com) Programming Without a Call Stack: Event-Driven Architectures in Java\r\n \n After missing the SD conference this year, I will explain how to leverage event-driven architectures\r\n inside a single virtual machine. |\n| | [Patterns and Practices Summit, Mountain View, March 14-16](http://www.pnpsummit.com/west2005.aspx) Developing in a Service-Oriented World \r\n \n Keith Pleas organizes these summits in close collaboration with Microsoft. These events are\r\n smaller in scale but give attendees ample access to the speakers. Ward\r\n is coming as well, so this one should be good. |\n| | [Canadian Strategic Architect Forum, Seattle, March 9-10](http://www.dynamicevents.com/CSAF05/) Integration Patterns\r\n \n Well, Martin gets to go to the Gold Coast and I have to make do with rainy Seattle. Oh well,\r\n gotta write a few more books :-) |\n| | [TheServerSide Java Symposium, Las Vegas, March 3-5](http://www.theserverside.com/symposium/) Event-Driven Architectures in Action\r\n \n SOA = Same Old Architecture?\r\n \n I am sure next year's TheServerSide Symposium will be as much fun and as content-rich as last\r\n year's. I look forward to more panels moderated by Ted Neward |\n| | [GI Fachtagung fuer Datenbanksysteme in Business, Technologie und Web,, Karlsruhe, Germany, March 2-4](http://www.btw2005.de/) Developing in a Service-Oriented World\r\n \n Despite the apparent database focus in the title of\r\n this event, there is a definite emphasis on SOA and Web services. Frank\r\n Leymann and Satish Thatte (the two brainfathers of BPEL) will speak there\r\n as well so I am honored to have my name appear among all the BPEL celebrities.\r\n My talk will focus on what SOA means for developers,\r\n what kind of tools and skill sets we need etc. I think this is a topic\r\n that is too often ignored as we all love to dwell in the architectural\r\n benefits of SOA. |\n| | [VSLive! Software Architect Summit, , San Francisco, February 6-10](http://www.vslive.com/sf) Developing in a Service-Oriented World\r\n \n I jumped into this one at the last minute. Interesting line-up with lots of talks on SOA etc. |\n| | [JavaPolis 2004, Antwerp, Belgium, Dec 13-17](http://wiki.javapolis.com) [Enterprise Integration Patterns: Asynchronous Messaging Architectures in Practice](http://www.javapolis.com/confluence/display/JP04/Gregor%2BHohpe) \n My ACM tutorials use C# examples, so for JavaPolis I am going to port these to JAX-RPC or JMS.\r\n The way I constructed the example components switching from one transport to the other should be\r\n very easy. Maybe BEA's new QuickSilver will be available by then. It would be cool to do the examples in that.\r\n Anyone from BEA feel free to e-mail me :-) |\n| | [EAI Expertentag, Technische Universitaet Berlin, Nov 25-26](http://www.sysedv.tu-berlin.de/eai/eaitag2004.html) Keynote: Buchstabensuppe: Was steckt eigentlich hinter ESB, SOA, SOAP, WSDL & Co?\r\n \n Workshop: Enterprise Integration Patterns: Asynchrone Messaging Architekturen in der Praxis\r\n \n EAI Patterns for the first time in German! Jawohl... |\n| | [Sun JavaOne, San Francisco, June 28-July 1, 2004](http://servlet.java.sun.com/javaone/) Enterprise Integration Patterns: Asynchronous Messaging Architectures in Practice\r\n \n At least one show close to home :-) |\n| | [OOPSLA 2004, Vancouver, Canada, Oct 24-28](http://www.oopsla.org/2004) [Enterprise Integration Patterns: Asynchronous Messaging Architectures in Practice](http://www.oopsla.org/2004/ShowEvent.do?id=133) \n The most popular tutorial so far at OOPSLA 2004! Join us! This year we split the tutorial in two halves. Bobby\r\n does a half-day intro into the terminology and request-reply examples.\r\n My tutorial focuses on coupling, service-orientation, message flow architectures\r\n and conversations. I will use real running examples to show how to construct\r\n message flow architectures. |\n| | [ACM Middleware 2004, Toronto, Canada, Oct 18-22](http://www.eecg.toronto.edu/middleware2004/) [1/2 Day Tutorial: Enterprise Integration Patterns: Asynchronous Messaging Architectures in Practice](http://www.eecg.toronto.edu/middleware2004/tp04.htm) \n No reruns! This tutorial will feature more real, running\r\n examples. I am currently assembling a set of reusable components that\r\n implement the core patterns (Splitter, Router, Translator). During the\r\n tutorial I will use these components to show running versions of the examples\r\n discussed in the slides. I am also planning to post these components on\r\n this site once they are done. |\n| | [Microsoft TechEd, San Diego, May 24-28, 2004](http://www.microsoft.com/seminar/teched2004) Patterns in the Enterprise\r\n \n A walk through application and integration patterns\r\n targeted at enterprise developers. By the time TechEd is held our new\r\n Microsoft PAG book on integration patterns should be available. |\n| | [EAI Industry Consortium Global Summit, Banff, Canada, May 24-28, 2004](http://www.eaiindustry.org) Half-day tutorial on Enterprise Integration Patterns\r\n \n Finally a conference focused on EAI. I am very excited to present at an event dedicated to integration issues. |\n| | [TheServerSide Java Symposium, Las Vegas, May 6-8, 2004](http://www.theserverside.com/symposium/) Enterprise Integration Patterns\r\n \n Event-Driven Architectures |\n| | [Information Processing Society of Japan - Patterns Working Group, Tokyo, Japan, April 20](http://patterns-wg.fuka.info.waseda.ac.jp/ps2004.html) \n Hironori Washizaki and his team invited me to give a talk at the Tokyo Patterns\r\n Working Group. I had a great time and learned how to write my name in\r\n Katakana. |\n| | [JavaPolis, Antwerp, Belgium, December 3-4](http://www.bejug.org) \n One of the biggest Java events in Europe, organized by the Belgian Java User's group - BeJUG. |\n| | [Nexus Computer Books, Calgary, Canada, Nov 27](http://www.nexuscomputerbooks.com) \n Nexus is a neat computer bookstore and somewhat of a local institution. Sadly, I think they have gone out of business since. |\n| | [OOPSLA 2003, Anaheim, Oct 26-30](http://oopsla.acm.org/oopsla2003/) Tutorial on Enterprise Integration Patterns (with Bobby Woolf) \n A half-day tutorial showing how to use integration\r\n patterns to design integration solutions. Plus: Book Launch!! |\n| | [JAOO 2003, Aarhus, Denmark, Sept 22-26](http://www.jaoo.dk) Enterprise Integration Patterns [[Download](/docs/jaoo_hohpeg_enterpriseintegrationpatterns.pdf)] \n Test-Driven Enterprise Integration \r\n \n This big conference in a small country continues to attract top-notch software development talent.\r\n JAOO really one of the best-run shows I know of. The speaker roster is first class and the general\r\n level is very high. |\n| | [SD Best Practices Conference, Boston, Sept 15-18, 2003](http://www.sdexpo.com) Enterprise Integration Patterns - Asynchronous Messaging Architectures in Practice [[Download](/docs/hohpeg_enterpriseintegrationpatterns_sdbp.pdf)] \n A quick (25 slide) introduction into EAI patterns. |\n| | [TechEd 2003, Dallas, June 1-6](http://www.microsoft.com/usa/teched) |\n| | [SD West 2003 Conference, Santa Clara, March 24-28, 2003](http://www.sdexpo.com/2003/west) Enterprise Integration Patterns [[Download](/docs/hohpeg_enterpriseintegrationpatterns.pdf)] \n A\r\n 90 minute journey through the world of EAI patterns. |\n| | [2002 LOMA Systems Forum](http://www.loma.org/sf.htm) [Shedding New Light on Enterprise Integration](ftp://www.loma.org/2002SFFowler.ppt) (with Martin Fowler) |\n\n---", "znaku_textu": 38328, "slov": 4103, "odkazu": 216, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 15:35:09", "sha256": "87fcdce2d59c9b6e36a856e4e3fab1e22ebe94fdf92b0af24550575a02f90a9d", "hloubka": 4, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://architectelevator.com/workshops/", "https://conferences.isaqb.org/software-architecture-gathering/", "https://conferences.isaqb.org/software-architecture-gathering/speaker/", "https://www.software-architecture-alliance.de/software-architecture-alliance-2022", "https://www.software-architecture-alliance.de/software-architecture-alliance-2022/programm/programm/", "https://skillsmatter.com/conferences/13836-yow-perth-2022-online", "https://skillsmatter.com/legacy_profile/gregor-hohpe", "https://software-architecture-summit.de/berlin/", "https://software-architecture-summit.de/softwarearchitektur/keynote/", "https://gotoldn.com/", "https://gotoldn.com/2022-eda-aws-day/sessions/2116/i-made-everything-loosely-coupled-does-my-app-fall-apart", "https://platformcon.com/", "https://platformcon.com/talk/you-dont-have-to-be-a-giant-to-carry-teams-on-your-shoulders", "https://software-architecture-summit.de/muenchen/", "https://software-architecture-summit.de/domain-driven-design/die-magie-der-plattformen/", "https://conferences.oreilly.com/software-architecture/sa-ny", "https://conferences.oreilly.com/software-architecture/sa-ny/public/schedule/detail/80209", "https://conferences.oreilly.com/software-architecture/sa-eu", "https://conferences.oreilly.com/software-architecture/sa-eu/public/schedule/detail/79316", "https://conferences.oreilly.com/software-architecture/sa-eu/public/schedule/detail/79166", "https://conferences.oreilly.com/software-architecture/sa-eu/public/schedule/detail/79165", "https://yowconference.com/singapore/", "https://yowconference.com/perth/", "https://www.meetup.com/AWS-SG/events/262215316/", "https://www.summersoc.eu/", "https://www.summersoc.eu/program/", "https://www.tngtech.com/big-techday.html", "https://www.tngtech.com/big-techday/abstracts.html", "https://www.govtechstack.sg/past-events", "https://conferences.oreilly.com/software-architecture/sa-ny/public/schedule/detail/72070", "https://conferences.oreilly.com/software-architecture/sa-ny/public/schedule/detail/74391", "https://conferences.oreilly.com/software-architecture/sa-ny/public/schedule/detail/71599", "http://west.yowconference.com.au/profile/?id=gregor-hohpe", "https://west.yowconference.com.au/proposal?id=6062", "http://www.yowconference.hk/profile/?id=gregor-hohpe", "https://2018.agileindia.org/speaker/gregor-hohpe/", "https://confengine.com/agile-india-2018/register/selection", "http://melbourne.yowconference.com.au/speakers/gregor-hohpe-2/", "http://sydney.yowconference.com.au/proposal/?id=5182", "http://sydneyctosummit.yowconference.com.au/profile/?id=gregor-hohpe", "http://melbourne.yowconference.com.au/profile/?id=gregor-hohpe", "https://devopsconference.de/", "https://devopsconference.de/business-company-culture/adopting-devops-you-are-aiming-at-the-wrong-target/", "https://gotober.com/2017/speakers/318", "https://gotober.com/2017/sessions/282", "https://gotober.com/2017/sessions/283", "https://gotober.com/2017/workshops/69", "http://hongkong.yowconference.com.au/", "http://hongkong.yowconference.com.au/speakers/gregor-hophe/", "http://www.yowconference.sg/", "http://singapore.yowconference.com.au/speakers/gregor-hophe/", "http://singapore.yowconference.com.au/workshops/architecting-enterprise-transformation-37-things-one-architect-knows/", "https://www.innoq.com/en/trainings/digitale-transformation-it-architektur/", "https://www.innoq.com/de/trainings/digitale-transformation-it-architektur/", "http://software-architecture-summit.de/programm/", "https://software-architecture-summit.de/session/keynote-denken-wie-eine-architektin/", "http://www.oop-konferenz.de/", "http://www.oop-konferenz.de/oop2017/konferenz/konferenzprogramm/sessiondetails/action/detail/session/mi-21/title/architekturentscheidungen-wie-man-vor-lauter-wald-noch-die-baeume-sehen-kann.html", "http://www.oop-konferenz.de/oop2017/konferenz/konferenzprogramm/sessiondetails/action/detail/session/do-81/title/architektur-einer-it-transformation-37-dinge-die-ein-chefarchitekt-gelernt-hat.html", "http://yowconference.com.au/", "https://a.confui.com/-fenNhxkI", "https://a.confui.com/-i9NHGW5K", "http://software-architecture-summit.de/session/architektur-einer-it-transformation-37-dinge-die-ein-chefarchitekt-wissen-muss/", "http://software-architecture-summit.de/session/keynote/", "http://gotocon.com/chicago-2016", "http://gotocon.com/chicago-2016/presentation/If%20you%20are%20synchronous%20you%20are%20not%20resilient", "http://gotocon.com/chicago-2016/presentation/Architecting%20Enterprise%20Transformation", "http://software-architecture-summit.de/", "http://software-architecture-summit.de/session/keynote-enterprise-architekten-raus-aus-dem-elfenbeinturm-rein-in-die-digitale-welt/", "http://software-architecture-summit.de/session/enterprise-integration-patterns-messaging-und-conversations/", "http://www.oop-konferenz.de/oop2016/konferenz/konferenzprogramm/sessiondetails/action/detail/session/nmi-2/title/software-architekturen-im-zeitalter-der-dinge.html", "http://www.oop-konferenz.de/oop2016/konferenz/konferenzprogramm/sessiondetails/action/detail/session/mo-5/title/enterprise-architekten-raus-aus-dem-elfenbeinturm-rein-in-die-digitale-welt.html", "http://jax.de/wjax2015", "http://jax.de/wjax2015/sessions/enterprise-architekten-raus-aus-dem-elfenbeinturm-rein-die-digitale-welt", "http://software-architecture-summit.de/2015/en/node/844/", "http://www.sei.cmu.edu/saturn/2015/", "http://www.oop-konferenz.de/nc/oop2015/konferenz/konferenzprogramm/conference-detail/architekten-halluzinationen-aus-dem-elfenbeinturm-oder-it-heilsbringer.html", "http://gotocon.com/berlin-2014", "http://gotocon.com/berlin-2014/speaker/Gregor+Hohpe", "http://jax.de/wjax2014", "http://jax.de/wjax2014/sessions/enterprise-architect-ivory-tower-resident-or-corporate-savior", "http://ecsa2014.cs.univie.ac.at/", "http://ecsa2014.cs.univie.ac.at/program/keynote-speakers/", "http://www.tmforumlive.org/", "http://www.tmforumlive.org/speakers/?speaker=26367", "http://mobiletechcon.de/2013/", "http://jax.de/konferenzen/wjax12", "http://www.sigs-datacom.de/oop2012/oop2012.html", "http://wso2.com/events/wso2con-2011-colombo/", "http://fusesource.com/camelone2011/", "http://fusesource.com/camelone2011/speakers/", "http://gotocon.com/aarhus-2010", "http://gotocon.com/aarhus-2010/speaker/Gregor+Hohpe", "http://gotocon.com/dl/jaoo-aarhus-2010/slides/GregorHohpe_DataStorageAndAnalysisInTheCloud.pdf", "http://gotocon.com/dl/jaoo-aarhus-2010/slides/GregorHohpe_NFCNotForChildren.pdf", "http://qcontokyo.com/tokyo-2010", "http://qcontokyo.com/tokyo-2010/speaker_GregorHohpe.html", "http://codezine.jp/devsumi/2010", "http://www.seshop.com/event/dev/2010/timetable/Default.asp?eid=145&mode=detail&tr=01_Cloud+Development", "http://www.oop2010.com/"]} {"url": "http://www.enterpriseintegrationpatterns.com/talks.html", "titulek": "Talks - Enterprise Integration Patterns", "h1": "", "popis": "", "klicova_slova": "", "kanonicka": "", "jazyk": "", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Multi-day Workshops"}, {"uroven": 3, "text": "Enterprise Integration Patterns (2 days), Contact me for dates"}, {"uroven": 3, "text": "Architecting Enterprise Transformation (2 days)"}, {"uroven": 2, "text": "Upcoming Talks & Tutorials"}, {"uroven": 2, "text": "Past Talks & Events"}, {"uroven": 3, "text": "Software Architecture Gathering, Online, Nov 14, 2022"}, {"uroven": 3, "text": "Software Architecture Alliance, Munich, Oct 11, 2022"}, {"uroven": 3, "text": "YOW! Perth Developer Conference 2022, On-line, Sept 19, 2022"}, {"uroven": 3, "text": "Software Architect Summit, Berlin, Sept 12, 2022"}, {"uroven": 3, "text": "GOTO EDA Day 2022, London, Sept 1, 2022"}, {"uroven": 3, "text": "PlatformCon Keynote, On-line, June 9-10, 2022"}, {"uroven": 3, "text": "Software Architecture Summit, On-line, March 14-16, 2022"}, {"uroven": 3, "text": "Software Architecture Conference, New York City, Feb 23-26, 2020"}, {"uroven": 3, "text": "Software Architecture Conference, Berlin, Nov 4-7, 2019"}, {"uroven": 3, "text": "Yow! Singapore, Singapore, Sep 13, 2019"}, {"uroven": 3, "text": "Yow! Perth, Perth, Sep 6, 2019"}, {"uroven": 3, "text": "AWS Meetup Singapore, Singapore, July 16, 2019"}, {"uroven": 3, "text": "SummerSOC, Hersonissos, Greece, June 17-23, 2019"}, {"uroven": 3, "text": "TNG Big Tech Day 12, Munich, June 7, 2019"}, {"uroven": 3, "text": "Singapore GovTech Stack-X, Singapore, May 28, 2019"}, {"uroven": 3, "text": "Software Architecture Conference, New York, Feb 3-6, 2019"}, {"uroven": 3, "text": "Yow!, Perth, Australia, Sep 3-6, 2018"}, {"uroven": 3, "text": "Yow!, Hong Kong, Sep 13-15, 2018"}, {"uroven": 3, "text": "Agile India, Bangalore, Mar 6-8, 2018"}, {"uroven": 3, "text": "YOW!, Melbourne, Brisbane, Sydney, Nov 30 - Dec 8, 2017"}, {"uroven": 3, "text": "DevOpsCon, Munich, Nov 20-23, 2017"}, {"uroven": 3, "text": "Goto Berlin, Berlin, Nov 15-17, 2017"}, {"uroven": 3, "text": "YOW! Hong Kong, Hong Kong, Sep 7-8, 2017"}, {"uroven": 3, "text": "YOW! Singapore, Singapore, Sep 11-12, 2017"}, {"uroven": 3, "text": "IT-Architekten: Angelpunkt der Digitalen Transformation im Unternehmen, Bern, CH, Aug 25, 2017"}, {"uroven": 3, "text": "IT-Architekten: Angelpunkt der Digitalen Transformation im Unternehmen, Cologne, June 20-21, 2017"}, {"uroven": 3, "text": "Software Architecture Summit, Munich, March 15, 2017"}, {"uroven": 3, "text": "OOP, Munich, Jan 30- Feb 3, 2017"}, {"uroven": 3, "text": "YOW!, Sydney, Melbourne, Brisbane, Dec 1-9, 2016"}, {"uroven": 3, "text": "IT-Architekten: Angelpunkt der Digitalen Transformation im Unternehmen, Hamburg, Oct 19-20, 2016"}, {"uroven": 3, "text": "Software Architecture Summit, Berlin, Sept 26, 2016"}, {"uroven": 3, "text": "GOTO Chicago, Chicago. IL, May 23-26, 2016"}, {"uroven": 3, "text": "IT-Architekten: Angelpunkt der Digitalen Transformation im Unternehmen, Munich, April 25-26, 2016"}, {"uroven": 3, "text": "Software Architect Summit, Munich, March 16-18, 2016"}, {"uroven": 3, "text": "OOP, Munich, February 1-5, 2016"}, {"uroven": 3, "text": "W-JAX, Munich, November 2-6, 2015"}, {"uroven": 3, "text": "Software Architect Summit, Berlin, September 16-18, 2015"}, {"uroven": 3, "text": "SATURN 2015, Baltimore, MD, Apr 27-30, 2015"}, {"uroven": 3, "text": "OOP 2015, Munich, Germany, Jan 26-30, 2015"}, {"uroven": 3, "text": "GOTO Berlin, Berlin, Germany, Nov 6-7, 2014"}, {"uroven": 3, "text": "W-Jax 2014, Munich, Germany, Nov 4-6, 2014"}, {"uroven": 3, "text": "ECSA (European Conference on Software Architecture) 2014, Vienna, Austria, Aug 25-29, 2014"}, {"uroven": 3, "text": "TM Forum Live! 2014, Nice, France, June 2-5, 2014"}, {"uroven": 3, "text": "MobileTech Conference 2013, Munich, Germany, Mar 12-13, 2013"}, {"uroven": 3, "text": "W-JAX 2012, Munich, Germany, Nov 5-9, 2012"}, {"uroven": 3, "text": "OOP 2012, Munich, Germany, Jan 23-27, 2012"}, {"uroven": 3, "text": "WSO2Con, Colombo, Sri Lanka, Sep 13-15, 2011"}, {"uroven": 3, "text": "CamelOne, Arlington, VA, May 24, 2011"}, {"uroven": 3, "text": "Goto Conference, Aarhus, Denmark, Oct 4-8, 2010"}, {"uroven": 3, "text": "QCon, Tokyo, Japan, Apr 19-20, 2010"}, {"uroven": 3, "text": "Developer Summit, Tokyo, Japan, Feb 18-19, 2010"}, {"uroven": 3, "text": "OOP, Munich, Germany, Jan 25-29, 2010"}, {"uroven": 3, "text": "Devoxx, Antwerp, Belgium, Nov 16-19, 2009"}, {"uroven": 3, "text": "Karlsruhe Trend Kongress, Karlsruhe, Germany, Nov 20, 2009"}, {"uroven": 3, "text": "JAOO, Aarhus,Denmark, Oct 4-9, 2009"}, {"uroven": 3, "text": "JavaOne 2009, San Francisco, June 2-5, 2009"}, {"uroven": 3, "text": "QCon Tokyo, Tokyo, Japan, April 9 - 10, 2009"}, {"uroven": 3, "text": "Developer Summit Tokyo, Tokyo, Japan, Feb 12-13, 2009"}, {"uroven": 3, "text": "QCon San Francisco, San Francisco, CA, November 19 - 21, 2008"}, {"uroven": 3, "text": "JAOO Denmark, Aarhus, Denmark, September 28 - October 3, 2008"}, {"uroven": 3, "text": "IDG JavaWorld Day, Shinagawa, Japan, August 20, 2008"}, {"uroven": 3, "text": "Tokyo 2.0, SuperDeluxe, Tokyo, August 11, 2008"}, {"uroven": 3, "text": "JAOO Australia, Sydney & Brisbane, Australia, May 28 - June 1, 2008"}, {"uroven": 3, "text": "QCon, London, UK, March 10-14, 2008"}, {"uroven": 3, "text": "W-Jax, Munich, Germany, November 5-9, 2007"}, {"uroven": 3, "text": "Fifth International Workshop on SOA and Web Services Best Practices (at OOPSLA), Montreal, Canada, October 21, 2007"}, {"uroven": 3, "text": "Colorado Software Summit, Keystone, Colorado, October 21-26, 2007"}, {"uroven": 3, "text": "ICSOC: International Conference on Service-oriented Computing, Vienna, Austria, September 17-20, 2007"}, {"uroven": 3, "text": "TheServerSide Java Symposium Europe, Barcelona, June 27-29, 2007"}, {"uroven": 3, "text": "DEBS: Distributed Event-based Systems, Toronto, Canada, June 20-22, 2007"}, {"uroven": 3, "text": "SD West, Santa Clara, CA, March 19-23, 2007"}, {"uroven": 3, "text": "OOP, Munich, Germany, Jan 22-26, 2007"}, {"uroven": 3, "text": "JAOO, Aarhus, Denmark, October 1-6"}, {"uroven": 3, "text": "SOA Days Technology Conference, Bonn, Germany, Sept 20 -21"}, {"uroven": 3, "text": "JavaZone, Oslo, Norway, September 12-15"}, {"uroven": 3, "text": "TheServerSide Java Symposium Europe, Barcelona, Spain, June 21-23"}, {"uroven": 3, "text": "SpringOne, Antwerp, Belgium, June 15-16"}, {"uroven": 3, "text": "Burton Group Catalyst, San Francisco, June 14-16"}, {"uroven": 3, "text": "Forrester's IT Forum 2006: GigaWorld, Las Vegas, April 6"}, {"uroven": 3, "text": "TheServerSide Symposium, Las Vegas, March 23 - 25"}, {"uroven": 3, "text": "Software Development, Santa Clara, March 13 - 17"}, {"uroven": 3, "text": "OOP 2006, Munich, January 16 - 20"}, {"uroven": 3, "text": "OOPSLA 2005, San Diego, October 16- 20"}, {"uroven": 3, "text": "Microsoft PDC , Los Angeles, September 11-16"}, {"uroven": 3, "text": "Microsoft TechEd Europe, Amsterdam, July 5-8"}, {"uroven": 3, "text": "SD Forum, eBay Conference Center, San Jose, June 28"}, {"uroven": 3, "text": "Microsoft TechEd, Orlando, June 5-10"}, {"uroven": 3, "text": "EAI Forum, Karlsruhe, Germany, April 18-21"}, {"uroven": 3, "text": "TIBCO Software Conference: From Real-Time to Predictive Enterprise, Dubai, UAE, April 10"}, {"uroven": 3, "text": "Software Development Conference & Expo, Santa Clara, March 14-18"}, {"uroven": 3, "text": "Patterns and Practices Summit, Mountain View, March 14-16"}, {"uroven": 3, "text": "Canadian Strategic Architect Forum, Seattle, March 9-10"}, {"uroven": 3, "text": "TheServerSide Java Symposium, Las Vegas, March 3-5"}, {"uroven": 3, "text": "GI Fachtagung fuer Datenbanksysteme in Business, Technologie und Web,, Karlsruhe, Germany, March 2-4"}, {"uroven": 3, "text": "VSLive! Software Architect Summit, , San Francisco, February 6-10"}, {"uroven": 3, "text": "JavaPolis 2004, Antwerp, Belgium, Dec 13-17"}, {"uroven": 3, "text": "EAI Expertentag, Technische Universitaet Berlin, Nov 25-26"}, {"uroven": 3, "text": "Sun JavaOne, San Francisco, June 28-July 1, 2004"}, {"uroven": 3, "text": "OOPSLA 2004, Vancouver, Canada, Oct 24-28"}, {"uroven": 3, "text": "ACM Middleware 2004, Toronto, Canada, Oct 18-22"}, {"uroven": 3, "text": "Microsoft TechEd, San Diego, May 24-28, 2004"}, {"uroven": 3, "text": "EAI Industry Consortium Global Summit, Banff, Canada, May 24-28, 2004"}, {"uroven": 3, "text": "TheServerSide Java Symposium, Las Vegas, May 6-8, 2004"}, {"uroven": 3, "text": "Information Processing Society of Japan - Patterns Working Group, Tokyo, Japan, April 20"}, {"uroven": 3, "text": "JavaPolis, Antwerp, Belgium, December 3-4"}, {"uroven": 3, "text": "Nexus Computer Books, Calgary, Canada, Nov 27"}, {"uroven": 3, "text": "OOPSLA 2003, Anaheim, Oct 26-30"}, {"uroven": 3, "text": "JAOO 2003, Aarhus, Denmark, Sept 22-26"}, {"uroven": 3, "text": "SD Best Practices Conference, Boston, Sept 15-18, 2003"}, {"uroven": 3, "text": "TechEd 2003, Dallas, June 1-6"}, {"uroven": 3, "text": "SD West 2003 Conference, Santa Clara, March 24-28, 2003"}, {"uroven": 3, "text": "2002 LOMA Systems Forum"}], "markdown": "Talks\n\n---\n\nThe more than 100 keynotes, talks, and seminars that I have given at conferences, universities, user groups, or to corporate audiences draw from my experience in the following areas:\n\n- [IT transformation](/ramblings/94_37things.html)\n- [Enterprise architecture](/ramblings_architecture.html)\n- [Enterprise integration](/ramblings_integration.html)\n- [Asynchronous messaging architectures](/patterns/messaging)\n\nThe lively and interactive style assures that talks are consistently highly rated for making complex topics accessible without sacrificing technical accuracy. All talks and workshops can be delivered in English or German, also on site. If you are interested in having me speak at your event or company, feel free to [contact me](/gregor.html).\n\nI like to travel and have spoken in: Aarhus, Amsterdam, Antwerp, Baltimore, Banff, Bangkok, Barcelona, Beijing, Berlin, Bonn, Boston, Calgary, Chicago, Colombo, Dallas, Dubai, Frankfurt, Hamburg, Karlsruhe, Las Vegas, London, Los Angeles, Melbourne, Montreal, Munich, Nice, Orlando, Oslo, San Diego, San Francisco, Seattle, Shanghai, Sydney, Tokyo, Toronto, Vancouver, Vienna. Stay up-to-date via my [feed](/talks.rss). If you'd like to have a workshop conducted on your premises, please [Contact me](/gregor.html).\n\n## Multi-day Workshops\n\n| | Enterprise Integration Patterns (2 days), Contact me for dates Designing loosely coupled systems with asynchronous messaging and conversations\r\n \n Interesting applications rarely live in isolation, but are integrated into an ecosystem of internal applications, external interfaces and cloud services. Asynchronous messaging offers distinct advantages for system integration, such as loose coupling, but designing such systems is not trivial. This seminar aids architects and developers in the design of distributed and integrated systems with a design vocabulary of almost 100 design patterns, including patterns for asynchronous messaging (channels, messages, routing, transformation, endpoints, systems management) and patterns for stateful conversations (discovery, initiation, intermediaries, resource management, reaching agreement). |\n| --- | --- |\n| | [Architecting Enterprise Transformation (2 days)](https://architectelevator.com/workshops/) \r\n As the digital economy changes the rules of the game for enterprises, the role of architects also fundamentally changes. They must connect the penthouse, where the business strategy is defined, with the engine room, where the enabling technologies are implemented. Making this connection by walking from floor to floor won’t work. Instead, modern architects bypass existing structures by taking the Architect Elevator. In this [highly interactive workshop](https://architectelevator.com/workshops/) architects learn how to transcend organizational levels to better link business strategy, IT strategy, and implementation. |\n\n## Upcoming Talks & Tutorials\n\n## Past Talks & Events\n\n| | [Software Architecture Gathering, Online, Nov 14, 2022](https://conferences.isaqb.org/software-architecture-gathering/) [The Architect Elevator: Connecting IT and Boardroom](https://conferences.isaqb.org/software-architecture-gathering/speaker/#the-architect-elevator-connecting-it-and-boardroom) |\n| --- | --- |\n| | [Software Architecture Alliance, Munich, Oct 11, 2022](https://www.software-architecture-alliance.de/software-architecture-alliance-2022) [Der Architekten Aufzug: Vom Maschinenraum in das Penthouse und zurück](https://www.software-architecture-alliance.de/software-architecture-alliance-2022/programm/programm/#:~:text=Architekten%20Aufzug) |\n| | [YOW! Perth Developer Conference 2022, On-line, Sept 19, 2022](https://skillsmatter.com/conferences/13836-yow-perth-2022-online) [Infrastructure as actual Code](https://skillsmatter.com/legacy_profile/gregor-hohpe) \n Cloud automation is much more than just eliminating manual steps - it should be an integral part of your software delivery lifecycle and actively influence your architecture choices. |\n| | [Software Architect Summit, Berlin, Sept 12, 2022](https://software-architecture-summit.de/berlin/) [The Architect Elevator](https://software-architecture-summit.de/softwarearchitektur/keynote/) \n We upgrade our technology all the time - shouldn’t we also update our role as architects? |\n| | [GOTO EDA Day 2022, London, Sept 1, 2022](https://gotoldn.com/) [Keynote: I made everything loosely coupled. What holds my app together?](https://gotoldn.com/2022-eda-aws-day/sessions/2116/i-made-everything-loosely-coupled-does-my-app-fall-apart) |\n| | [PlatformCon Keynote, On-line, June 9-10, 2022](https://platformcon.com/) [Keynote: The Magic of Platforms](https://platformcon.com/talk/you-dont-have-to-be-a-giant-to-carry-teams-on-your-shoulders) |\n| | [Software Architecture Summit, On-line, March 14-16, 2022](https://software-architecture-summit.de/muenchen/) [Keynote: Die Magie der Plattformen](https://software-architecture-summit.de/domain-driven-design/die-magie-der-plattformen/) |\n| | [Software Architecture Conference, New York City, Feb 23-26, 2020](https://conferences.oreilly.com/software-architecture/sa-ny) [2-day Training: The Architect Elevator](https://conferences.oreilly.com/software-architecture/sa-ny/public/schedule/detail/80209) |\n| | [Software Architecture Conference, Berlin, Nov 4-7, 2019](https://conferences.oreilly.com/software-architecture/sa-eu) [2-day Training: The Architect Elevator](https://conferences.oreilly.com/software-architecture/sa-eu/public/schedule/detail/79316) \n [Living in the first derivative](https://conferences.oreilly.com/software-architecture/sa-eu/public/schedule/detail/79166) \n [Enterprise Architecture = Architecting the Enterprise?](https://conferences.oreilly.com/software-architecture/sa-eu/public/schedule/detail/79165) |\n| | [Yow! Singapore, Singapore, Sep 13, 2019](https://yowconference.com/singapore/) Architects live in the first derivative |\n| | [Yow! Perth, Perth, Sep 6, 2019](https://yowconference.com/perth/) Architects live in the first derivative |\n| | [AWS Meetup Singapore, Singapore, July 16, 2019](https://www.meetup.com/AWS-SG/events/262215316/) Being a Cloud Architect |\n| | [SummerSOC, Hersonissos, Greece, June 17-23, 2019](https://www.summersoc.eu/) [The Architect Elevator](https://www.summersoc.eu/program/) |\n| | [TNG Big Tech Day 12, Munich, June 7, 2019](https://www.tngtech.com/big-techday.html) [The Architect Elevator: Connecting Penthouse and Engine Room](https://www.tngtech.com/big-techday/abstracts.html#c22112) |\n| | [Singapore GovTech Stack-X, Singapore, May 28, 2019](https://www.govtechstack.sg/past-events) Keynote: Being a Cloud Architect |\n| | [Software Architecture Conference, New York, Feb 3-6, 2019](https://conferences.oreilly.com/software-architecture/sa-ny) [2-day Training: The Architect Elevator](https://conferences.oreilly.com/software-architecture/sa-ny/public/schedule/detail/72070) \n [Keynote: Architecting IT Transformation](https://conferences.oreilly.com/software-architecture/sa-ny/public/schedule/detail/74391) \n [Enterprise Architecture = Architecting the Enterprise?](https://conferences.oreilly.com/software-architecture/sa-ny/public/schedule/detail/71599) |\n| | [Yow!, Perth, Australia, Sep 3-6, 2018](http://west.yowconference.com.au/profile/?id=gregor-hohpe) [Keynote: Enterprise Architecture = Architecting the Enterprise?](https://west.yowconference.com.au/proposal?id=6062) |\n| | [Yow!, Hong Kong, Sep 13-15, 2018](http://www.yowconference.hk/profile/?id=gregor-hohpe) |\n| | [Agile India, Bangalore, Mar 6-8, 2018](https://2018.agileindia.org/speaker/gregor-hohpe/) [Full Day Workshop: Architecting Enterprise Transformation](https://confengine.com/agile-india-2018/register/selection#workshop-187-info) \n [Adopting Devops - You are aiming at the wrong target!](https://2018.agileindia.org/speaker/gregor-hohpe/) \n [Enterprise Architecture = Architecting the Enterprise?](https://2018.agileindia.org/speaker/gregor-hohpe/) |\n| | [YOW!, Melbourne, Brisbane, Sydney, Nov 30 - Dec 8, 2017](http://melbourne.yowconference.com.au/speakers/gregor-hohpe-2/) [Full Day Workshop: Architecting Enterprise Transformation](http://sydney.yowconference.com.au/proposal/?id=5182) \n [CTO Summit: Life of a Chief Architect](http://sydneyctosummit.yowconference.com.au/profile/?id=gregor-hohpe) \n [Enterprise Architecture = Architecting the Enterprise?](http://melbourne.yowconference.com.au/profile/?id=gregor-hohpe) \n A three-city circuit through Australia. |\n| | [DevOpsCon, Munich, Nov 20-23, 2017](https://devopsconference.de/) [Adopting DevOps? You are aiming at the wrong target!](https://devopsconference.de/business-company-culture/adopting-devops-you-are-aiming-at-the-wrong-target/) |\n| | [Goto Berlin, Berlin, Nov 15-17, 2017](https://gotober.com/2017/speakers/318) [Enterprise Architecture = Architecting the Enterprise?](https://gotober.com/2017/sessions/282) \n [Adopting Devops - You are aiming at the wrong target!](https://gotober.com/2017/sessions/283) \n [Full Day Workshop: Architecting Enterprise Transformation](https://gotober.com/2017/workshops/69) \n The highly interactive full-day workshop shows architects how to ride the \"architect elevator\" to the upper floors where they can align IT with business strategy. This is the first time this workshop is held in Germany in English - don't miss it! |\n| | [YOW! Hong Kong, Hong Kong, Sep 7-8, 2017](http://hongkong.yowconference.com.au/) [Enterprise Integration Patterns 2: The Making of a Pattern Language](http://hongkong.yowconference.com.au/speakers/gregor-hophe/) |\n| | [YOW! Singapore, Singapore, Sep 11-12, 2017](http://www.yowconference.sg/) [Enterprise Integration Patterns 2: The Making of a Pattern Language](http://singapore.yowconference.com.au/speakers/gregor-hophe/) \n [Full Day Workshop: Architecting Enterprise Transformation (Sept 13)](http://singapore.yowconference.com.au/workshops/architecting-enterprise-transformation-37-things-one-architect-knows/) \n This highly interactive full-day workshop teaches architects how to ride the \"architect elevator\" to the upper floors to align IT with business strategy and to instill lasting change into their organization. First time in Singapore! |\n| | [IT-Architekten: Angelpunkt der Digitalen Transformation im Unternehmen, Bern, CH, Aug 25, 2017](https://www.innoq.com/en/trainings/digitale-transformation-it-architektur/) Zum ersten mal live in der Schweiz mit einem Praxis-Training zum Schnittpunkt zwischen IT Architektur und Transformation. Super Angebot fuer CHF 200! |\n| | [IT-Architekten: Angelpunkt der Digitalen Transformation im Unternehmen, Cologne, June 20-21, 2017](https://www.innoq.com/de/trainings/digitale-transformation-it-architektur/) 2-day Workshop in German\r\n \n IT-Architekten spielen eine Schlüsselrolle bei der digitalen Transformation traditioneller Unternehmen, weil sie wissen, wie man Cloud Computing, Big Data, Mobile Apps, IoT, Microservices & Co gewinnbringend im Unternehmen einsetzt. Dazu bedarf es der Fähigkeit, sich auf allen Ebenen der Organisation zu bewegen, um die Firmenstrategie zu verstehen, zu beeinflussen, und durch Softwareentwicklung und IT-Infrastruktur voranzutreiben. |\n| | [Software Architecture Summit, Munich, March 15, 2017](http://software-architecture-summit.de/programm/) [Keynote: Denken wie ein(e) Architekt(in)](https://software-architecture-summit.de/session/keynote-denken-wie-eine-architektin/) |\n| | [OOP, Munich, Jan 30- Feb 3, 2017](http://www.oop-konferenz.de/) [Architekturentscheidungen: Den Wald vor lauter Bäumen sehen](http://www.oop-konferenz.de/oop2017/konferenz/konferenzprogramm/sessiondetails/action/detail/session/mi-21/title/architekturentscheidungen-wie-man-vor-lauter-wald-noch-die-baeume-sehen-kann.html) \n [Architektur einer IT-Transformation](http://www.oop-konferenz.de/oop2017/konferenz/konferenzprogramm/sessiondetails/action/detail/session/do-81/title/architektur-einer-it-transformation-37-dinge-die-ein-chefarchitekt-gelernt-hat.html) |\n| | [YOW!, Sydney, Melbourne, Brisbane, Dec 1-9, 2016](http://yowconference.com.au/) [If you are synchronous you are not resilient](https://a.confui.com/-fenNhxkI) \n [Full Day Workshop: Architecting IT Transformation](https://a.confui.com/-i9NHGW5K) \n My full-day workshop is loosely based on my new book \"37 Things One Architect Knows\" to teach architects how to ride the elevator higher up towards the company leadership to provide more value with IT and to instill lasting change into the organization. |\n| | [IT-Architekten: Angelpunkt der Digitalen Transformation im Unternehmen, Hamburg, Oct 19-20, 2016](https://www.innoq.com/de/trainings/digitale-transformation-it-architektur/) 2-day Seminar in German\r\n \n IT-Architekten spielen eine Schlüsselrolle bei der digitalen Transformation traditioneller Unternehmen, weil sie wissen, wie man Cloud Computing, Big Data, Mobile Apps, IoT, Microservices & Co gewinnbringend im Unternehmen einsetzt. Dazu bedarf es der Fähigkeit, sich auf allen Ebenen der Organisation zu bewegen, um die Firmenstrategie zu verstehen, zu beeinflussen, und durch Softwareentwicklung und IT-Infrastruktur voranzutreiben. |\n| | [Software Architecture Summit, Berlin, Sept 26, 2016](http://software-architecture-summit.de/programm/) [Architektur einer IT Transformation: 37 Dinge, die ein Chefarchitekt wissen muss](http://software-architecture-summit.de/session/architektur-einer-it-transformation-37-dinge-die-ein-chefarchitekt-wissen-muss/) \n [Keynote: Denken wie ein(e) Architekt(in)](http://software-architecture-summit.de/session/keynote/) |\n| | [GOTO Chicago, Chicago. IL, May 23-26, 2016](http://gotocon.com/chicago-2016) [If you are synchronous, you are not resilient](http://gotocon.com/chicago-2016/presentation/If%20you%20are%20synchronous%20you%20are%20not%20resilient) \n [Workshop: Architecting Enterprise Transformation](http://gotocon.com/chicago-2016/presentation/Architecting%20Enterprise%20Transformation) \n I will hold a full-day workshop based on by book-in-progress \"37 Things One Architect Knows\". |\n| | [IT-Architekten: Angelpunkt der Digitalen Transformation im Unternehmen, Munich, April 25-26, 2016](https://www.innoq.com/de/trainings/digitale-transformation-it-architektur/) 2-day Seminar in German |\n| | [Software Architect Summit, Munich, March 16-18, 2016](http://software-architecture-summit.de/) [Keynote: Enterprise Architekten - Raus aus dem Elfenbeinturm, rein in die digitale Welt](http://software-architecture-summit.de/session/keynote-enterprise-architekten-raus-aus-dem-elfenbeinturm-rein-in-die-digitale-welt/) \n [Tutorial: Enterprise Integration Patterns - Messaging und Konversationen](http://software-architecture-summit.de/session/enterprise-integration-patterns-messaging-und-conversations/) [[Download](/docs/EnterpriseIntegrationPatternsHalfDay.pdf)] |\n| | [OOP, Munich, February 1-5, 2016](http://www.oop-konferenz.de/) [Software-Architekturen im Zeitalter der Dinge](http://www.oop-konferenz.de/oop2016/konferenz/konferenzprogramm/sessiondetails/action/detail/session/nmi-2/title/software-architekturen-im-zeitalter-der-dinge.html) (with Frank Buschmann) \n [Tutorial: Enterprise Architekten - Raus aus dem Elfenbeinturm, rein in die digitale Welt](http://www.oop-konferenz.de/oop2016/konferenz/konferenzprogramm/sessiondetails/action/detail/session/mo-5/title/enterprise-architekten-raus-aus-dem-elfenbeinturm-rein-in-die-digitale-welt.html) |\n| | [W-JAX, Munich, November 2-6, 2015](http://jax.de/wjax2015) [Enterprise Architekten - Raus aus dem Elfenbeinturm, rein in die digitale Welt](http://jax.de/wjax2015/sessions/enterprise-architekten-raus-aus-dem-elfenbeinturm-rein-die-digitale-welt) |\n| | [Software Architect Summit, Berlin, September 16-18, 2015](http://software-architecture-summit.de/2015/en/node/844/) Keynote: Enterprise Architekten - Raus aus dem Elfenbeinturm, rein in die digitale Welt\r\n \n Tutorial: Enterprise Integration Patterns - Messaging und Konversationen |\n| | [SATURN 2015, Baltimore, MD, Apr 27-30, 2015](http://www.sei.cmu.edu/saturn/2015/) It's Good to be Architect |\n| | [OOP 2015, Munich, Germany, Jan 26-30, 2015](http://www.oop-konferenz.de/) [Architekten – Halluzinationen aus dem Elfenbeinturm oder IT Heilsbringer?](http://www.oop-konferenz.de/nc/oop2015/konferenz/konferenzprogramm/conference-detail/architekten-halluzinationen-aus-dem-elfenbeinturm-oder-it-heilsbringer.html) (with Frank Buschmann) |\n| | [GOTO Berlin, Berlin, Germany, Nov 6-7, 2014](http://gotocon.com/berlin-2014) [Enterprise Architect - Ivory Tower Resident or Corporate Savior?](http://gotocon.com/berlin-2014/speaker/Gregor+Hohpe) |\n| | [W-Jax 2014, Munich, Germany, Nov 4-6, 2014](http://jax.de/wjax2014) [The Enterprise Architect - Ivory Tower Resident or Corporate Savior?](http://jax.de/wjax2014/sessions/enterprise-architect-ivory-tower-resident-or-corporate-savior) |\n| | [ECSA (European Conference on Software Architecture) 2014, Vienna, Austria, Aug 25-29, 2014](http://ecsa2014.cs.univie.ac.at/) [The Age of Architecture](http://ecsa2014.cs.univie.ac.at/program/keynote-speakers/) |\n| | [TM Forum Live! 2014, Nice, France, June 2-5, 2014](http://www.tmforumlive.org/) [Transforming Global IT Infrastructure](http://www.tmforumlive.org/speakers/?speaker=26367) |\n| | [MobileTech Conference 2013, Munich, Germany, Mar 12-13, 2013](http://mobiletechcon.de/2013/) Near Field communication (NFC) in Japan |\n| | [W-JAX 2012, Munich, Germany, Nov 5-9, 2012](http://jax.de/konferenzen/wjax12) Enterprise Integration Patterns: Past, Present and Future |\n| | [OOP 2012, Munich, Germany, Jan 23-27, 2012](http://www.sigs-datacom.de/oop2012/oop2012.html) NFC - Near Field Communication in Japan [[Download](/docs/NfcOopHohpe.pdf)] \n Embedded Software Development: Spottbillige Hardware + OSS = Zum Spielen zu Schade! [[Download](/docs/EmbeddedOop.pdf)] |\n| | [WSO2Con, Colombo, Sri Lanka, Sep 13-15, 2011](http://wso2.com/events/wso2con-2011-colombo/) Keynote: Enterprise Integration Patterns: Past, Present and Future |\n| | [CamelOne, Arlington, VA, May 24, 2011](http://fusesource.com/camelone2011/) [Keynote: Enterprise Integration Patterns: Past, Present and Future](http://fusesource.com/camelone2011/speakers/#gregor) |\n| | [Goto Conference, Aarhus, Denmark, Oct 4-8, 2010](http://gotocon.com/aarhus-2010) [Data Storage and Analysis in the Cloud](http://gotocon.com/aarhus-2010/speaker/Gregor+Hohpe) [[Download](http://gotocon.com/dl/jaoo-aarhus-2010/slides/GregorHohpe_DataStorageAndAnalysisInTheCloud.pdf)] \n [NFC - Not For Children?](http://gotocon.com/aarhus-2010/speaker/Gregor+Hohpe) [[Download](http://gotocon.com/dl/jaoo-aarhus-2010/slides/GregorHohpe_NFCNotForChildren.pdf)] \n My NFC talk was the 2nd highest ranked at the conference. |\n| | [QCon, Tokyo, Japan, Apr 19-20, 2010](http://qcontokyo.com/tokyo-2010) [Programming the Cloud](http://qcontokyo.com/tokyo-2010/speaker_GregorHohpe.html) |\n| | [Developer Summit, Tokyo, Japan, Feb 18-19, 2010](http://codezine.jp/devsumi/2010) [Distributed Programming the Google Way](http://www.seshop.com/event/dev/2010/timetable/Default.asp?mode=detail&eid=145&tr=01_Cloud+Development#831) |\n| | [OOP, Munich, Germany, Jan 25-29, 2010](http://www.oop2010.com) [Distributed Programming the Google Way](http://www.sigs-datacom.de/konferenz/sessiondetails.html?tx_mwconferences_pi1[showUid]=95) \n [Hooking Stuff Together - Coupling, Messaging, and Conversations](http://www.sigs-datacom.de/konferenz/sessiondetails.html?tx_mwconferences_pi1[showUid]=126) |\n| | [Devoxx, Antwerp, Belgium, Nov 16-19, 2009](http://www.devoxx.com) [Distributed Programming the Google Way](http://www.devoxx.com/display/DV09/Gregor+Hohpe) [[Download](/docs/DistributedProgrammingGoogle.pdf)] \n I collected a set of design considerations for building widely distributed systems and show how they are used in some of Google's core systems, such as Bigtable, GFS, or MapReduce. |\n| | [Karlsruhe Trend Kongress, Karlsruhe, Germany, Nov 20, 2009](http://www.trendkongress.com/) Programming the Cloud for Mere Mortals [[Download](/docs/HohpeProgrammingCloudKeynote.pdf)] \n I was invited to give a 30 minute keynote at this event, which was organized by the CyberForum. I chose to give a high-level overview of some of the challenges inherent in programming distributed systems. |\n| | [JAOO, Aarhus,Denmark, Oct 4-9, 2009](http://jaoo.dk/aarhus-2009/tracks/show_track.jsp?trackOID=266) [Distributed Programming the Google Way](http://jaoo.dk/aarhus-2009/presentation/Distributed+Computing+the+Google+Way) \n I am again running the cloud computing track at JAOO. My talk tries to extract common design patterns or themes from a variety of Google core systems, such as GFS, Bigtable, MapReduce, Sawzall. |\n| | JavaOne 2009, San Francisco, June 2-5, 2009 [Cloud Computing: Show Me the Money](http://www28.cplan.com/cc230/sessions_catalog.jsp?ilc=230-1&ilg=english&isort=&isort_type=&is=yes&icriteria3=hohpe) |\n| | [QCon Tokyo, Tokyo, Japan, April 9 - 10, 2009](http://qcontokyo.com/) [Programming the Cloud](http://qcontokyo.com/tokyo-2009/speaker_52.html) [[Download](https://sites.google.com/site/gcodejp/slides/ProgrammingCloud_QCon.pdf)] \n I was finally able to speak about Google App Engine for Java. |\n| | [Developer Summit Tokyo, Tokyo, Japan, Feb 12-13, 2009](http://codezine.jp/devsumi/2009) [Programming the Cloud](http://www.seshop.com/event/dev/2009/timetable/Default.asp?mode=detail&eid=124&sid=749) |\n| | [QCon San Francisco, San Francisco, CA, November 19 - 21, 2008](http://qcon.infoq.com/sanfrancisco-2008/tracks/show_track.jsp?trackOID=159) Track: The Cloud as the New Middleware Platform\r\n \n I am track hosting the Cloud Computing track. We'll have speakers from Google, Yahoo, Salesforce, and John \"ProgrammableWeb\" Musser. |\n| | [JAOO Denmark, Aarhus, Denmark, September 28 - October 3, 2008](http://www.jaoo.dk/conference/) GData: Google, the Cloud, and You |\n| | [IDG JavaWorld Day, Shinagawa, Japan, August 20, 2008](http://www.idg.co.jp/expo/jwday/2008/session/#K-1) Programming the Cloud -- the Internet as a Platform |\n| | [Tokyo 2.0, SuperDeluxe, Tokyo, August 11, 2008](http://www.tokyo2point0.net/events/event/show?id=765451:Event:6342) Programm the Cloud |\n| | [JAOO Australia, Sydney & Brisbane, Australia, May 28 - June 1, 2008](http://jaoo.com.au/sydney/conference/) GData: Google, the Cloud, and You\r\n \n \"Hooking Stuff Together\" – Coupling, Messaging, and Conversations\r\n \n Software Visualization and Model Generation (with Erik Doernenburg) |\n| | [QCon, London, UK, March 10-14, 2008](http://qcon.infoq.com/london/tracks/show_track.jsp?trackOID=95) Track: The Cloud as the New Middleware Platform\r\n \n I'll be organizing the coud computing track for QCon. Hope to see you there! |\n| | [W-Jax, Munich, Germany, November 5-9, 2007](http://jax.de/konferenzen/wjax07) [Developing in an SOA World](http://jax.de/konferenzen/wjax07/sessions.php?tid=596#session-11) \n [Programming Without a Call Stack - Event-driven Architectures in Action](http://jax.de/konferenzen/wjax07/sessions.php?tid=596#session-5) [[Download](/docs/hohpe_event_driven_architectures.pdf)] |\n| | [Fifth International Workshop on SOA and Web Services Best Practices (at OOPSLA), Montreal, Canada, October 21, 2007](http://boss.bekk.no/oopsla2007/) Keynote -- SOA Patterns: New Insights or Recycled Knowledge? [[Download](/docs/HohpeSOAPatterns.pdf)] |\n| | [Colorado Software Summit, Keystone, Colorado, October 21-26, 2007](http://www.softwaresummit.com/) Mashing Up with Google Mashup Editor and Yahoo! Pipes\r\n \n Programming without a Call Stack – Event-driven Architectures\r\n \n My first live talk about Google products. Just to maintain the balance in the universe I work with both Yahoo! Pipes and Google Mashup Editor. |\n| | [ICSOC: International Conference on Service-oriented Computing, Vienna, Austria, September 17-20, 2007](http://icsoc2007.servtech.info/) Panel on SOA Governance\r\n \n Panel on Service API's and Mashups\r\n \n Panel on SOA Run-time |\n| | [TheServerSide Java Symposium Europe, Barcelona, June 27-29, 2007](http://javasymposium.techtarget.com/europe/) [Software Visualization and Model Generation](http://javasymposium.techtarget.com/europe/sessions.html#GHohpeSoftware) (with Erik Doernenburg) \n [Programming without a Call Stack - Event-driven Architectures](http://javasymposium.techtarget.com/europe/sessions.html#GHohpeProgramming) |\n| | [DEBS: Distributed Event-based Systems, Toronto, Canada, June 20-22, 2007](http://www.debs.msrg.utoronto.ca/) [Architect's Dream or Developer's Nightmare](http://www.debs.msrg.utoronto.ca/program.shtml#hohpe) |\n| | [SD West, Santa Clara, CA, March 19-23, 2007](http://www.sdexpo.com/) [Developing in a Service-Oriented World](http://www.cmpevents.com/SDw7/a.asp?option=G&V=3&id=196544) \n [Software Visualization and Model Generation](http://www.cmpevents.com/SDw7/a.asp?option=G&V=3&id=196544) \n [Conversations between Loosely Coupled Services](http://www.cmpevents.com/SDw7/a.asp?option=G&V=3&id=196544) |\n| | [OOP, Munich, Germany, Jan 22-26, 2007](http://www.oopconference.com) [Conversations between Loosely Coupled Services](http://www.sigs-datacom.de/sd/kongresse/oop_2007/program.php?cat=session&ID=89) \n [Software Visualization and Model Generation](http://www.sigs-datacom.de/sd/kongresse/oop_2007/program.php?cat=session&ID=113) (with Erik Doernenburg) |\n| | [JAOO, Aarhus, Denmark, October 1-6](http://www.jaoo.dk/) [Conversations between loosely coupled services](http://www.infoq.com/presentations/hohpe-soa-conversations) \n I will be leading the SOA track at JAOO this year. Is there anything left to say about SOA? I think so! I am looking to compile a series of insightful talks that are based on real experiences. |\n| | [SOA Days Technology Conference, Bonn, Germany, Sept 20 -21](http://domains.euroforum.com/soa/) Patterns in Service-oriented Architectures |\n| | [JavaZone, Oslo, Norway, September 12-15](http://www.javazone.no/) Software Visualization and Model Generation (with Erik Doernenburg) \n [Developing in a Service-oriented World](http://www.infoq.com/presentations/hohpe-soa-development) \n I have heard great things about JavaZone from many other speakers. This time I get to be part of it. |\n| | [TheServerSide Java Symposium Europe, Barcelona, Spain, June 21-23](http://javasymposium-europe.techtarget.com/) Software Visualization and Model Generation (with Erik Doernenburg) \n Developing in a Service-oriented World |\n| | [SpringOne, Antwerp, Belgium, June 15-16](http://www.springone.com/) [Patterns in Service-oriented Architectures](http://www.springone.com/display/SpringOne06/Patterns+in+Service-oriented+Architectures) \n Keynote: Where did all my beautiful code go? [[Download](/docs/SpringOneKeynotePub.pdf)] \n This one should be fun -- I get to hang out with my intellectual drinking buddies in Antwerp. |\n| | [Burton Group Catalyst, San Francisco, June 14-16](http://catalyst.burtongroup.com/) [Agile SOA - The SDLC, SOA, and YOU](http://catalyst.burtongroup.com/attendees/abstract.php?sessionID=319) \n Agile development methods enjoy increasing popularity when it comes to building business applications. They promise flexibility, immediate customer feedback, and a high-quality solution. However, some of the basic mechanisms of service-oriented architectures can be perceived as a counterforce to agile development. For example, published interface contracts can bog down rapid iteration. Also, development tools that support an agile development style are not always available for Web-services based interactions. Can you have the best of both worlds? |\n| | [Forrester's IT Forum 2006: GigaWorld, Las Vegas, April 6](http://www.forrester.com/Events/Overview/1,5158,1173,00.html) [Panel: The Death of Programming](https://www.forresterevents.com/ITF2006/scheduler//profile.do?SESSION_ID=1111&ts=1143615885398) |\n| | [TheServerSide Symposium, Las Vegas, March 23 - 25](http://javasymposium.techtarget.com/) Keynote: Where did all my beautiful code go? [[Download](/docs/TSS_Keynote_Hohpe.pdf)] \n [Software Visualization and Model Generation](http://javasymposium.techtarget.com/html/det_descriptions.htm#GHohpeSoftware) [[Download](/docs/TSS_software_visualization.pdf)] (with Erik Doernenburg) \n [Patterns in Service-Oriented Architectures](http://javasymposium.techtarget.com/html/det_descriptions.htm#GHohpePatterns) |\n| | [Software Development, Santa Clara, March 13 - 17](http://www.cmpevents.com/SDw6/a.asp?option=C) [Developing in a Service-Oriented World](http://www.cmpevents.com/SDw6/a.asp?option=C&V=11&SessID=1764) \n [Conversations Between Loosely Coupled Services](http://www.cmpevents.com/SDw6/a.asp?option=C&V=11&SessID=1680) [[Download](/docs/Conversations_loosely_coupled.pdf)] |\n| | [OOP 2006, Munich, January 16 - 20](http://www.sigs-datacom.de/sd/kongresse/oop_2006/) [Developing in a Service-Oriented World](http://www.sigs-datacom.de/sd/kongresse/oop_2006/program.php?cat=session&ID=46) \n [Distributed Systems Architectures based on Asynchronous Messaging](http://www.sigs-datacom.de/sd/kongresse/oop_2006/program.php?cat=session&ID=21) \n [Enterprise Integration Patterns](http://www.sigs-datacom.de/sd/kongresse/oop_2006/program.php?cat=session&ID=66) \n \r\nI heard good things about this German conference from a number of people. This time I'll have an opportunity to speak. It'll be great to be in Munich during the winter but they make me work pretty hard for it: three talks in a row... I hope there will be some time left to party with Christian! |\n| | [OOPSLA 2005, San Diego, October 16- 20](http://www.oopsla.org/2005) Tutorial - Programming without a Call Stack - Event-driven Architectures in Action\r\n \n This 3 hour tutorial will allow me to expand on my popular talk on composable, event-driven systems. |\n| | [Microsoft PDC , Los Angeles, September 11-16](http://msdn.microsoft.com/events/pdc/) Panel: The Art and Practice of Connected Systems \r\n \n A panel with Steve Swartz should be fun, especially on connected systems. |\n| | [Microsoft TechEd Europe, Amsterdam, July 5-8](http://www.mseventseurope.com/teched/05/pre/content/default.aspx) Messaging Patterns with Indigo\r\n \n This talk is still in the planning phase. TechEd Europe will have quite a few Indigo talks\r\n because not everybody is going to be able to make it to PDC. I myself\r\n need to find a way to weazle a ticket to PDC out of someone ;-) |\n| | [SD Forum, eBay Conference Center, San Jose, June 28](http://www.sdforum.org/SDForum/Templates/CalendarEvent.aspx?CID=1675&mo=6&yr=2005) Developing in a Service-Oriented World \r\n \n The SD Forum organizes local events in the Bay Area. This talk concludes an all day Web Services\r\n Conference organized by SD Forum. Admission is free to SD Members or $15 for others. This might be the\r\n cheapest way yet to see me speak :-) |\n| | [Microsoft TechEd, Orlando, June 5-10](http://www.microsoft.com/events/teched2005) Introduction to Messaging (with Ted Neward) \n I will be co-presenting with Ted Neward, which promises to be quite entertaining :-) |\n| | [EAI Forum, Karlsruhe, Germany, April 18-21](http://www.eai-forum.de/) Enterprise Integration Patterns\r\n \n EAI Forum is the largest integration related event in the German speaking area. Luckily, I started\r\n to translate some of my material into German... |\n| | TIBCO Software Conference: From Real-Time to Predictive Enterprise, Dubai, UAE, April 10 SOA = Same Old Architecture?\r\n \n Enterprise Integration Patterns |\n| | [Software Development Conference & Expo, Santa Clara, March 14-18](http://www.sdexpo.com) Programming Without a Call Stack: Event-Driven Architectures in Java\r\n \n After missing the SD conference this year, I will explain how to leverage event-driven architectures\r\n inside a single virtual machine. |\n| | [Patterns and Practices Summit, Mountain View, March 14-16](http://www.pnpsummit.com/west2005.aspx) Developing in a Service-Oriented World \r\n \n Keith Pleas organizes these summits in close collaboration with Microsoft. These events are\r\n smaller in scale but give attendees ample access to the speakers. Ward\r\n is coming as well, so this one should be good. |\n| | [Canadian Strategic Architect Forum, Seattle, March 9-10](http://www.dynamicevents.com/CSAF05/) Integration Patterns\r\n \n Well, Martin gets to go to the Gold Coast and I have to make do with rainy Seattle. Oh well,\r\n gotta write a few more books :-) |\n| | [TheServerSide Java Symposium, Las Vegas, March 3-5](http://www.theserverside.com/symposium/) Event-Driven Architectures in Action\r\n \n SOA = Same Old Architecture?\r\n \n I am sure next year's TheServerSide Symposium will be as much fun and as content-rich as last\r\n year's. I look forward to more panels moderated by Ted Neward |\n| | [GI Fachtagung fuer Datenbanksysteme in Business, Technologie und Web,, Karlsruhe, Germany, March 2-4](http://www.btw2005.de/) Developing in a Service-Oriented World\r\n \n Despite the apparent database focus in the title of\r\n this event, there is a definite emphasis on SOA and Web services. Frank\r\n Leymann and Satish Thatte (the two brainfathers of BPEL) will speak there\r\n as well so I am honored to have my name appear among all the BPEL celebrities.\r\n My talk will focus on what SOA means for developers,\r\n what kind of tools and skill sets we need etc. I think this is a topic\r\n that is too often ignored as we all love to dwell in the architectural\r\n benefits of SOA. |\n| | [VSLive! Software Architect Summit, , San Francisco, February 6-10](http://www.vslive.com/sf) Developing in a Service-Oriented World\r\n \n I jumped into this one at the last minute. Interesting line-up with lots of talks on SOA etc. |\n| | [JavaPolis 2004, Antwerp, Belgium, Dec 13-17](http://wiki.javapolis.com) [Enterprise Integration Patterns: Asynchronous Messaging Architectures in Practice](http://www.javapolis.com/confluence/display/JP04/Gregor%2BHohpe) \n My ACM tutorials use C# examples, so for JavaPolis I am going to port these to JAX-RPC or JMS.\r\n The way I constructed the example components switching from one transport to the other should be\r\n very easy. Maybe BEA's new QuickSilver will be available by then. It would be cool to do the examples in that.\r\n Anyone from BEA feel free to e-mail me :-) |\n| | [EAI Expertentag, Technische Universitaet Berlin, Nov 25-26](http://www.sysedv.tu-berlin.de/eai/eaitag2004.html) Keynote: Buchstabensuppe: Was steckt eigentlich hinter ESB, SOA, SOAP, WSDL & Co?\r\n \n Workshop: Enterprise Integration Patterns: Asynchrone Messaging Architekturen in der Praxis\r\n \n EAI Patterns for the first time in German! Jawohl... |\n| | [Sun JavaOne, San Francisco, June 28-July 1, 2004](http://servlet.java.sun.com/javaone/) Enterprise Integration Patterns: Asynchronous Messaging Architectures in Practice\r\n \n At least one show close to home :-) |\n| | [OOPSLA 2004, Vancouver, Canada, Oct 24-28](http://www.oopsla.org/2004) [Enterprise Integration Patterns: Asynchronous Messaging Architectures in Practice](http://www.oopsla.org/2004/ShowEvent.do?id=133) \n The most popular tutorial so far at OOPSLA 2004! Join us! This year we split the tutorial in two halves. Bobby\r\n does a half-day intro into the terminology and request-reply examples.\r\n My tutorial focuses on coupling, service-orientation, message flow architectures\r\n and conversations. I will use real running examples to show how to construct\r\n message flow architectures. |\n| | [ACM Middleware 2004, Toronto, Canada, Oct 18-22](http://www.eecg.toronto.edu/middleware2004/) [1/2 Day Tutorial: Enterprise Integration Patterns: Asynchronous Messaging Architectures in Practice](http://www.eecg.toronto.edu/middleware2004/tp04.htm) \n No reruns! This tutorial will feature more real, running\r\n examples. I am currently assembling a set of reusable components that\r\n implement the core patterns (Splitter, Router, Translator). During the\r\n tutorial I will use these components to show running versions of the examples\r\n discussed in the slides. I am also planning to post these components on\r\n this site once they are done. |\n| | [Microsoft TechEd, San Diego, May 24-28, 2004](http://www.microsoft.com/seminar/teched2004) Patterns in the Enterprise\r\n \n A walk through application and integration patterns\r\n targeted at enterprise developers. By the time TechEd is held our new\r\n Microsoft PAG book on integration patterns should be available. |\n| | [EAI Industry Consortium Global Summit, Banff, Canada, May 24-28, 2004](http://www.eaiindustry.org) Half-day tutorial on Enterprise Integration Patterns\r\n \n Finally a conference focused on EAI. I am very excited to present at an event dedicated to integration issues. |\n| | [TheServerSide Java Symposium, Las Vegas, May 6-8, 2004](http://www.theserverside.com/symposium/) Enterprise Integration Patterns\r\n \n Event-Driven Architectures |\n| | [Information Processing Society of Japan - Patterns Working Group, Tokyo, Japan, April 20](http://patterns-wg.fuka.info.waseda.ac.jp/ps2004.html) \n Hironori Washizaki and his team invited me to give a talk at the Tokyo Patterns\r\n Working Group. I had a great time and learned how to write my name in\r\n Katakana. |\n| | [JavaPolis, Antwerp, Belgium, December 3-4](http://www.bejug.org) \n One of the biggest Java events in Europe, organized by the Belgian Java User's group - BeJUG. |\n| | [Nexus Computer Books, Calgary, Canada, Nov 27](http://www.nexuscomputerbooks.com) \n Nexus is a neat computer bookstore and somewhat of a local institution. Sadly, I think they have gone out of business since. |\n| | [OOPSLA 2003, Anaheim, Oct 26-30](http://oopsla.acm.org/oopsla2003/) Tutorial on Enterprise Integration Patterns (with Bobby Woolf) \n A half-day tutorial showing how to use integration\r\n patterns to design integration solutions. Plus: Book Launch!! |\n| | [JAOO 2003, Aarhus, Denmark, Sept 22-26](http://www.jaoo.dk) Enterprise Integration Patterns [[Download](/docs/jaoo_hohpeg_enterpriseintegrationpatterns.pdf)] \n Test-Driven Enterprise Integration \r\n \n This big conference in a small country continues to attract top-notch software development talent.\r\n JAOO really one of the best-run shows I know of. The speaker roster is first class and the general\r\n level is very high. |\n| | [SD Best Practices Conference, Boston, Sept 15-18, 2003](http://www.sdexpo.com) Enterprise Integration Patterns - Asynchronous Messaging Architectures in Practice [[Download](/docs/hohpeg_enterpriseintegrationpatterns_sdbp.pdf)] \n A quick (25 slide) introduction into EAI patterns. |\n| | [TechEd 2003, Dallas, June 1-6](http://www.microsoft.com/usa/teched) |\n| | [SD West 2003 Conference, Santa Clara, March 24-28, 2003](http://www.sdexpo.com/2003/west) Enterprise Integration Patterns [[Download](/docs/hohpeg_enterpriseintegrationpatterns.pdf)] \n A\r\n 90 minute journey through the world of EAI patterns. |\n| | [2002 LOMA Systems Forum](http://www.loma.org/sf.htm) [Shedding New Light on Enterprise Integration](ftp://www.loma.org/2002SFFowler.ppt) (with Martin Fowler) |\n\n---", "znaku_textu": 38328, "slov": 4103, "odkazu": 216, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/talks", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 14:54:29", "sha256": "87fcdce2d59c9b6e36a856e4e3fab1e22ebe94fdf92b0af24550575a02f90a9d", "hloubka": 3, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://architectelevator.com/workshops/", "https://conferences.isaqb.org/software-architecture-gathering/", "https://conferences.isaqb.org/software-architecture-gathering/speaker/", "https://www.software-architecture-alliance.de/software-architecture-alliance-2022", "https://www.software-architecture-alliance.de/software-architecture-alliance-2022/programm/programm/", "https://skillsmatter.com/conferences/13836-yow-perth-2022-online", "https://skillsmatter.com/legacy_profile/gregor-hohpe", "https://software-architecture-summit.de/berlin/", "https://software-architecture-summit.de/softwarearchitektur/keynote/", "https://gotoldn.com/", "https://gotoldn.com/2022-eda-aws-day/sessions/2116/i-made-everything-loosely-coupled-does-my-app-fall-apart", "https://platformcon.com/", "https://platformcon.com/talk/you-dont-have-to-be-a-giant-to-carry-teams-on-your-shoulders", "https://software-architecture-summit.de/muenchen/", "https://software-architecture-summit.de/domain-driven-design/die-magie-der-plattformen/", "https://conferences.oreilly.com/software-architecture/sa-ny", "https://conferences.oreilly.com/software-architecture/sa-ny/public/schedule/detail/80209", "https://conferences.oreilly.com/software-architecture/sa-eu", "https://conferences.oreilly.com/software-architecture/sa-eu/public/schedule/detail/79316", "https://conferences.oreilly.com/software-architecture/sa-eu/public/schedule/detail/79166", "https://conferences.oreilly.com/software-architecture/sa-eu/public/schedule/detail/79165", "https://yowconference.com/singapore/", "https://yowconference.com/perth/", "https://www.meetup.com/AWS-SG/events/262215316/", "https://www.summersoc.eu/", "https://www.summersoc.eu/program/", "https://www.tngtech.com/big-techday.html", "https://www.tngtech.com/big-techday/abstracts.html", "https://www.govtechstack.sg/past-events", "https://conferences.oreilly.com/software-architecture/sa-ny/public/schedule/detail/72070", "https://conferences.oreilly.com/software-architecture/sa-ny/public/schedule/detail/74391", "https://conferences.oreilly.com/software-architecture/sa-ny/public/schedule/detail/71599", "http://west.yowconference.com.au/profile/?id=gregor-hohpe", "https://west.yowconference.com.au/proposal?id=6062", "http://www.yowconference.hk/profile/?id=gregor-hohpe", "https://2018.agileindia.org/speaker/gregor-hohpe/", "https://confengine.com/agile-india-2018/register/selection", "http://melbourne.yowconference.com.au/speakers/gregor-hohpe-2/", "http://sydney.yowconference.com.au/proposal/?id=5182", "http://sydneyctosummit.yowconference.com.au/profile/?id=gregor-hohpe", "http://melbourne.yowconference.com.au/profile/?id=gregor-hohpe", "https://devopsconference.de/", "https://devopsconference.de/business-company-culture/adopting-devops-you-are-aiming-at-the-wrong-target/", "https://gotober.com/2017/speakers/318", "https://gotober.com/2017/sessions/282", "https://gotober.com/2017/sessions/283", "https://gotober.com/2017/workshops/69", "http://hongkong.yowconference.com.au/", "http://hongkong.yowconference.com.au/speakers/gregor-hophe/", "http://www.yowconference.sg/", "http://singapore.yowconference.com.au/speakers/gregor-hophe/", "http://singapore.yowconference.com.au/workshops/architecting-enterprise-transformation-37-things-one-architect-knows/", "https://www.innoq.com/en/trainings/digitale-transformation-it-architektur/", "https://www.innoq.com/de/trainings/digitale-transformation-it-architektur/", "http://software-architecture-summit.de/programm/", "https://software-architecture-summit.de/session/keynote-denken-wie-eine-architektin/", "http://www.oop-konferenz.de/", "http://www.oop-konferenz.de/oop2017/konferenz/konferenzprogramm/sessiondetails/action/detail/session/mi-21/title/architekturentscheidungen-wie-man-vor-lauter-wald-noch-die-baeume-sehen-kann.html", "http://www.oop-konferenz.de/oop2017/konferenz/konferenzprogramm/sessiondetails/action/detail/session/do-81/title/architektur-einer-it-transformation-37-dinge-die-ein-chefarchitekt-gelernt-hat.html", "http://yowconference.com.au/", "https://a.confui.com/-fenNhxkI", "https://a.confui.com/-i9NHGW5K", "http://software-architecture-summit.de/session/architektur-einer-it-transformation-37-dinge-die-ein-chefarchitekt-wissen-muss/", "http://software-architecture-summit.de/session/keynote/", "http://gotocon.com/chicago-2016", "http://gotocon.com/chicago-2016/presentation/If%20you%20are%20synchronous%20you%20are%20not%20resilient", "http://gotocon.com/chicago-2016/presentation/Architecting%20Enterprise%20Transformation", "http://software-architecture-summit.de/", "http://software-architecture-summit.de/session/keynote-enterprise-architekten-raus-aus-dem-elfenbeinturm-rein-in-die-digitale-welt/", "http://software-architecture-summit.de/session/enterprise-integration-patterns-messaging-und-conversations/", "http://www.oop-konferenz.de/oop2016/konferenz/konferenzprogramm/sessiondetails/action/detail/session/nmi-2/title/software-architekturen-im-zeitalter-der-dinge.html", "http://www.oop-konferenz.de/oop2016/konferenz/konferenzprogramm/sessiondetails/action/detail/session/mo-5/title/enterprise-architekten-raus-aus-dem-elfenbeinturm-rein-in-die-digitale-welt.html", "http://jax.de/wjax2015", "http://jax.de/wjax2015/sessions/enterprise-architekten-raus-aus-dem-elfenbeinturm-rein-die-digitale-welt", "http://software-architecture-summit.de/2015/en/node/844/", "http://www.sei.cmu.edu/saturn/2015/", "http://www.oop-konferenz.de/nc/oop2015/konferenz/konferenzprogramm/conference-detail/architekten-halluzinationen-aus-dem-elfenbeinturm-oder-it-heilsbringer.html", "http://gotocon.com/berlin-2014", "http://gotocon.com/berlin-2014/speaker/Gregor+Hohpe", "http://jax.de/wjax2014", "http://jax.de/wjax2014/sessions/enterprise-architect-ivory-tower-resident-or-corporate-savior", "http://ecsa2014.cs.univie.ac.at/", "http://ecsa2014.cs.univie.ac.at/program/keynote-speakers/", "http://www.tmforumlive.org/", "http://www.tmforumlive.org/speakers/?speaker=26367", "http://mobiletechcon.de/2013/", "http://jax.de/konferenzen/wjax12", "http://www.sigs-datacom.de/oop2012/oop2012.html", "http://wso2.com/events/wso2con-2011-colombo/", "http://fusesource.com/camelone2011/", "http://fusesource.com/camelone2011/speakers/", "http://gotocon.com/aarhus-2010", "http://gotocon.com/aarhus-2010/speaker/Gregor+Hohpe", "http://gotocon.com/dl/jaoo-aarhus-2010/slides/GregorHohpe_DataStorageAndAnalysisInTheCloud.pdf", "http://gotocon.com/dl/jaoo-aarhus-2010/slides/GregorHohpe_NFCNotForChildren.pdf", "http://qcontokyo.com/tokyo-2010", "http://qcontokyo.com/tokyo-2010/speaker_GregorHohpe.html", "http://codezine.jp/devsumi/2010", "http://www.seshop.com/event/dev/2010/timetable/Default.asp?eid=145&mode=detail&tr=01_Cloud+Development", "http://www.oop2010.com/"]} {"url": "http://www.enterpriseintegrationpatterns.com/toc.html", "titulek": "Table of Contents - Enterprise Integration Patterns", "h1": "", "popis": "Table of Contents - Enterprise Integration Patterns", "klicova_slova": "Table of Contents,integration, messaging, events, patterns, event-driven, coupling, eai, middleware, application integration, enterprise integration", "kanonicka": "", "jazyk": "", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns", "og:title": "Table of Contents - Enterprise Integration Patterns", "og:url": "https://www.enterpriseintegrationpatterns.com", "og:image": "https://www.enterpriseintegrationpatterns.com/img/eip1_patterns_wide.png"}, "jsonld": [], "drobecky": [], "osnova": [], "markdown": "Messaging Patterns\n\n| | Table of Contents[Messaging Patterns](index.html) | [Contents](toc.html)[⇐ Prev](index.html)[Next ⇒](Preface.html) |\n| --- | --- | --- |\n\n| | [Messaging Patterns Overview](index.html) | |\n| --- | --- | --- |\n| | [Table of Contents](toc.html) | Detailed table of contents. |\n| | [Preface](Preface.html) | |\n| | [Introduction](Introduction.html) | |\n| | [Solving Integration Problems using Patterns](Chapter1.html) | |\n| Integration Styles | | |\n| | [Introduction to Integration Styles](IntegrationStylesIntro.html) | |\n| | [File Transfer](FileTransferIntegration.html) | How can I integrate multiple applications so that they work together and can exchange information? |\n| | [Shared Database](SharedDataBaseIntegration.html) | How can I integrate multiple applications so that they work together and can exchange information? |\n| | [Remote Procedure Invocation](EncapsulatedSynchronousIntegration.html) | How can I integrate multiple applications so that they work together and can exchange information? |\n| | [Messaging](Messaging.html) | How can I integrate multiple applications so that they work together and can exchange information? |\n| Messaging Systems | | |\n| | [Introduction to Messaging Systems](MessagingComponentsIntro.html) | |\n| | [Message Channel](MessageChannel.html) | How does one application communicate with another using messaging? |\n| | [Message](Message.html) | How can two applications connected by a message channel exchange a piece of information? |\n| | [Pipes and Filters](PipesAndFilters.html) | How can we perform complex processing on a message while maintaining independence and flexibility? |\n| | [Message Router](MessageRouter.html) | How can you decouple individual processing steps so that messages can be passed to different filters depending on a set of conditions? |\n| | [Message Translator](MessageTranslator.html) | How can systems using different data formats communicate with each other using messaging? |\n| | [Message Endpoint](MessageEndpoint.html) | How does an application connect to a messaging channel to send and receive messages? |\n| Messaging Channels | | |\n| | [Introduction to Messaging Channels](MessagingChannelsIntro.html) | |\n| | [Point-to-Point Channel](PointToPointChannel.html) | How can the caller be sure that exactly one receiver will receive the document or perform the call? |\n| | [Publish-Subscribe Channel](PublishSubscribeChannel.html) | How can the sender broadcast an event to all interested receivers? |\n| | [Datatype Channel](DatatypeChannel.html) | How can the application send a data item such that the receiver will know how to process it? |\n| | [Invalid Message Channel](InvalidMessageChannel.html) | How can a messaging receiver gracefully handle receiving a message that makes no sense? |\n| | [Dead Letter Channel](DeadLetterChannel.html) | What will the messaging system do with a message it cannot deliver? |\n| | [Guaranteed Delivery](GuaranteedMessaging.html) | How can the sender make sure that a message will be delivered, even if the messaging system fails? |\n| | [Channel Adapter](ChannelAdapter.html) | How can you connect an application to the messaging system so that it can send and receive messages? |\n| | [Messaging Bridge](MessagingBridge.html) | How can multiple messaging systems be connected so that messages available on one are also available on the others? |\n| | [Message Bus](MessageBus.html) | 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? |\n| Message Construction | | |\n| | [Introduction to Message Construction](MessageConstructionIntro.html) | |\n| | [Command Message](CommandMessage.html) | How can messaging be used to invoke a procedure in another application? |\n| | [Document Message](DocumentMessage.html) | How can messaging be used to transfer data between applications? |\n| | [Event Message](EventMessage.html) | How can messaging be used to transmit events from one application to another? |\n| | [Request-Reply](RequestReply.html) | When an application sends a message, how can it get a response from the receiver? |\n| | [Return Address](ReturnAddress.html) | How does a replier know where to send the reply? |\n| | [Correlation Identifier](CorrelationIdentifier.html) | How does a requestor that has received a reply know which request this is the reply for? |\n| | [Message Sequence](MessageSequence.html) | How can messaging transmit an arbitrarily large amount of data? |\n| | [Message Expiration](MessageExpiration.html) | How can a sender indicate when a message should be considered stale and thus shouldn’t be processed? |\n| | [Format Indicator](FormatIndicator.html) | How can a message’s data format be designed to allow for possible future changes? |\n| Interlude: Simple Messaging | | |\n| | [Introduction to Simple Messaging Examples](SimpleMessagingIntro.html) | |\n| | [JMS Request/Reply Example](RequestReplyJmsExample.html) | |\n| | [.NET Request/Reply Example](RequestReplyNetExample.html) | |\n| | [JMS Publish/Subscribe Example](ObserverJmsExample.html) | |\n| Message Routing | | |\n| | [Introduction to Message Routing](MessageRoutingIntro.html) | |\n| | [Content-Based Router](ContentBasedRouter.html) | How do we handle a situation where the implementation of a single logical function (e.g., inventory check) is spread across multiple physical systems? |\n| | [Message Filter](Filter.html) | How can a component avoid receiving uninteresting messages? |\n| | [Dynamic Router](DynamicRouter.html) | How can you avoid the dependency of the router on all possible destinations while maintaining its efficiency? |\n| | [Recipient List](RecipientList.html) | How do we route a message to a list of dynamically specified recipients? |\n| | [Splitter](Sequencer.html) | How can we process a message if it contains multiple elements, each of which may have to be processed in a different way? |\n| | [Aggregator](Aggregator.html) | How do we combine the results of individual, but related messages so that they can be processed as a whole? |\n| | [Resequencer](Resequencer.html) | How can we get a stream of related but out-of-sequence messages back into the correct order? |\n| | [Composed Message Processor](DistributionAggregate.html) | How can you maintain the overall message flow when processing a message consisting of multiple elements, each of which may require different processing? |\n| | [Scatter-Gather](BroadcastAggregate.html) | 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? |\n| | [Routing Slip](RoutingTable.html) | 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? |\n| | [Process Manager](ProcessManager.html) | 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? |\n| | [Message Broker](MessageBroker.html) | How can you decouple the destination of a message from the sender and maintain central control over the flow of messages? |\n| Message Transformation | | |\n| | [Introduction to Message Transformation](MessageTransformationIntro.html) | |\n| | [Envelope Wrapper](EnvelopeWrapper.html) | How can existing systems participate in a messaging exchange that places specific requirements on the message format, such as message header fields or encryption? |\n| | [Content Enricher](DataEnricher.html) | How do we communicate with another system if the message originator does not have all the required data items available? |\n| | [Content Filter](ContentFilter.html) | How do you simplify dealing with a large message, when you are interested only in a few data items? |\n| | [Claim Check](StoreInLibrary.html) | How can we reduce the data volume of message sent across the system without sacrificing information content? |\n| | [Normalizer](Normalizer.html) | How do you process messages that are semantically equivalent, but arrive in a different format? |\n| | [Canonical Data Model](CanonicalDataModel.html) | How can you minimize dependencies when integrating applications that use different data formats? |\n| Interlude: Composed Messaging | | |\n| | [Introduction to Composed Messaging Examples](ComposedMessagingExample.html) | |\n| | [Synchronous Implementation using Web Services](ComposedMessagingWS.html) | |\n| | [Asynchronous Implementation with MSMQ](ComposedMessagingMSMQ.html) | |\n| | [Asynchronous Implementation with TIBCO ActiveEnterprise](ComposedMessagingTIBCO.html) | |\n| Messaging Endpoints | | |\n| | [Introduction to Messaging Endpoints](MessagingEndpointsIntro.html) | |\n| | [Messaging Gateway](MessagingGateway.html) | How do you encapsulate access to the messaging system from the rest of the application? |\n| | [Messaging Mapper](MessagingMapper.html) | How do you move data between domain objects and the messaging infrastructure while keeping the two independent of each other? |\n| | [Transactional Client](TransactionalClient.html) | How can a client control its transactions with the messaging system? |\n| | [Polling Consumer](PollingConsumer.html) | How can an application consume a message when the application is ready? |\n| | [Event-Driven Consumer](EventDrivenConsumer.html) | How can an application automatically consume messages as they become available? |\n| | [Competing Consumers](CompetingConsumers.html) | How can a messaging client process multiple messages concurrently? |\n| | [Message Dispatcher](MessageDispatcher.html) | How can multiple consumers on a single channel coordinate their message processing? |\n| | [Selective Consumer](MessageSelector.html) | How can a message consumer select which messages it wishes to receive? |\n| | [Durable Subscriber](DurableSubscription.html) | How can a subscriber avoid missing messages while it’s not listening for them? |\n| | [Idempotent Receiver](IdempotentReceiver.html) | How can a message receiver deal with duplicate messages? |\n| | [Service Activator](MessagingAdapter.html) | How can an application design a service to be invoked both via various messaging technologies and via non-messaging techniques? |\n| System Management | | |\n| | [Introduction to System Management](SystemManagementIntro.html) | |\n| | [Control Bus](ControlBus.html) | How can we effectively administer a messaging system that is distributed across multiple platforms and a wide geographic area? |\n| | [Detour](Detour.html) | How can you route a message through intermediate steps to perform validation, testing or debugging functions? |\n| | [Wire Tap](WireTap.html) | How do you inspect messages that travel on a point-to-point channel? |\n| | [Message History](MessageHistory.html) | How can we effectively analyze and debug the flow of messages in a loosely coupled system? |\n| | [Message Store](MessageStore.html) | How can we report against message information without disturbing the loosely coupled and transient nature of a messaging system? |\n| | [Smart Proxy](SmartProxy.html) | How can you track messages on a service that publishes reply messages to the Return Address specified by the requestor? |\n| | [Test Message](TestMessage.html) | What happens, though, if a component is actively processing messages, but garbles outgoing messages due to an internal fault? |\n| | [Channel Purger](ChannelPurger.html) | How can you keep 'left-over' messages on a channel from disturbing tests or running systems? |\n| Interlude: Systems Management Example | | |\n| | [Loan Broker System Management](SystemManagementExample.html) | |\n| Integration Patterns in Practice | | |\n| | [Case Study: Bond Trading System](BondTradingCaseStudy.html) | |\n| Concluding Remarks | | |\n| | [Emerging Standards and Futures in Enterprise Integration](Future.html) | |\n| Appendices | | |\n| | [Bibliography](bib.html) | Annotated list of references and recommended reading. |\n| | [Revision History](history.html) | Chronological list of changes. |", "znaku_textu": 11393, "slov": 1346, "odkazu": 101, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/patterns/messaging/toc.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 15:33:58", "sha256": "929a06e03217289455d1f68f02f0f1db497ee39e27d46c18aab3388b8665c0ad", "hloubka": 4, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": []} {"url": "https://www.enterpriseintegrationpatterns.com/", "titulek": "Home - Enterprise Integration Patterns", "h1": "", "popis": "Enterprise Integration Patterns", "klicova_slova": "eai, soa, esb, service, patterns, enterprise, integration, messaging, middleware, eai patterns, soa patterns, enterprise integration, service bus, rest", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "website", "og:site_name": "Enterprise Integration Patterns", "og:title": "Home - Enterprise Integration Patterns", "og:description": "A comprehensive pattern language for the robust design of asynchronous messaging solutions. The patterns stay product neutral and emphasize design trade-offs over specific technology choices.", "og:url": "https://www.enterpriseintegrationpatterns.com/", "og:image": "https://www.enterpriseintegrationpatterns.com/img/eip1_patterns.png"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Patterns and Best Practices for Asynchronous Messaging"}, {"uroven": 2, "text": "Messaging Patterns in Today's World: Microservices and Serverless"}, {"uroven": 2, "text": "New Book: Platform Strategy"}, {"uroven": 2, "text": "Book: The Software Architect Elevator"}, {"uroven": 2, "text": "Work-in-progress: Conversation Patterns"}, {"uroven": 2, "text": "What Makes Integration Difficult?"}, {"uroven": 2, "text": "Asynchronous Messaging Architectures"}, {"uroven": 2, "text": "How can Patterns Help?"}, {"uroven": 2, "text": "What am I Reading Right Now?"}], "markdown": "## Patterns and Best Practices for Asynchronous Messaging\n\nBuy on\n\nToday's applications rarely live in isolation. Users expect instant access across all functions, which may reside in disparate applications or third-party services. However, building distributed and integrated applications requires developers to tackle asynchrony, partial failures, incompatible data models, API drift, and much more.\n\nThis [pattern language consisting of 65 integration patterns](/patterns/messaging) helps developers design and build distributed applications or integrate existing ones. The patterns provide a technology-independent vocabulary and visual notation harvested from proven solutions to recurring problems. They also share common \"gotchas\" and design considerations. Besides receiving [numerous accolades](/praise.html), the patterns spurred the development of a whole generation of open source Enterprise Service Bus (ESB) implementations, such as Apache Camel, Mule, WSO2, Oracle Service Bus, Open ESB, SonicESB, or Fuse ServiceMix.\n\nBuy the book [Enterprise Integration Patterns](http://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20) or read a [sample chapter](docs/EnterpriseIntegrationPatterns_HohpeWoolf_ch03.pdf) first. Find the most recent content in [my blog](/ramblings) or [articles](/articles.html).\n\n## Messaging Patterns in Today's World: Microservices and Serverless\n\nWhen Bobby Woolf and I started to document the patterns 20 years ago, the key technologies for distributed applications were JMS, SOAP, MSMQ, and .NET WCF. Large-scale application integration was done with integration tools and platforms, such as IBM WebSphere MQ, TIBCO, WebMethods (now Software AG), or Microsoft BizTalk. Although technology has evolved, many of these products still form the backbone of modern enterprises.\n\nCloud platforms and deployment automation have laid the foundation for a new generation of distributed systems: microservices and serverless architectures. Those applications rely on a smooth interconnect between components, giving rise to Service Meshes, Serverless Orchestrators, and Event Buses. Amazingly, we find the same integration patterns in those systems! That's why this site contains [many modern examples for integration patterns](/ramblings/eip1_examples_updated.html):\n\n- [Serverless Loan Broker Implementation with AWS Step Functions](/ramblings/loanbroker_stepfunctions.html)\n- [Serverless Loan Broker Implementation with GCP Workflows](/ramblings/loanbroker_gcp_workflows.html)\n- [Modern Examples and Implementations](/ramblings/eip1_examples_updated.html)\n- [Serverless Integration Patterns on Google Cloud](/ramblings/google_cloud_functions.html)\n\n## New Book: [Platform Strategy](https://PlatformStrategyBook.info)\n\nAlmost every IT strategy these days includes some element of platform strategy. And that's no surprise: platforms appear to be able to rewrite the laws of IT physics. They boost innovation despite (or perhaps due to) standardizing; they speed up developers while assuring compliance; and they reduce cognitive load without restricting choice.\n\nAs one might guess, building such an in-house platform, or even deploying one, is far from easy. Many organizations end up with something that’s outdated by the time it’s launched, restricts rather than enables users, and faces a certain demise when its use is mandated in a last-ditch effort to make the economics work.\n\nHarvested from a decade of building successful in-house platforms and enabling enterprises to utilize cloud platforms, this book provides a fresh look at what makes IT platforms work, why they are different from other IT services, and how you can use them to boost developer productivity. Get a paper copy on [Amazon](https://amzn.to/3WpMVm0) or the ebook from [Leanpub](https://leanpub.com/platformstrategy/c/eip) (Kindle, PDF).\n\n## Book: [The Software Architect Elevator](https://amzn.to/3egsIr5)\n\nModern architects must do more than draw UML diagrams and recite architectural styles. Rather than focus on technical decisions alone, architects and senior technologists need to combine organizational and technical knowledge to help transform their company’s structure and processes. That's why successful architects are those who connect the IT engine room, where the technical reality is defined, to the organization's penthouse, where the business strategy is set.\n\nThis books equips architects and IT leaders with the technical, communication, and organizational skills to be successfully in modern enterprises. Available now on [Amazon](https://amzn.to/3egsIr5')) and anywhere where books are sold.\n\n## Work-in-progress: [Conversation Patterns](/patterns/conversation)\n\nAsynchronous messaging is the foundation for most integration solution because its architectural style acknowledges the challenges of distributed communication, such as latency or partial failure. However, many interactions between systems extend beyond sending a single, stateless message: a request may expect a response; a handshake or authentication are needed first; a reservation is confirmed or expires. Such *conversations*, stateful exchanges between participants, present new design challenges and patterns. I therefore started documenting [Conversation Patterns](/patterns/conversation), which are the starting point for *Enterprise Integration Patterns 2*.\n\n## What Makes Integration Difficult?\n\nArchitecting integration solutions is a complex task. There are many conflicting drivers and even more possible 'right' solutions. Whether the architecture was in fact a good choice usually is not known until many months or even years later, when inevitable changes and additions put the original architecture to test. Unfortunately, there is no \"cookbook\" for enterprise integration solutions. Most integration vendors provide methodologies and best practices, but these instructions tend to be very much geared towards the vendor-provided tool set and often lack treatment of the bigger picture, including underlying guidelines, principles and best practices.\n\n## Asynchronous Messaging Architectures\n\nAsynchronous messaging architectures have proven to be the best strategy for enterprise integration because they allow for a loosely coupled solution that overcomes the limitations of remote communication, such as latency and unreliability. That's why most EAI suites and ESB's are based on asynchronous messaging. Unfortunately, asynchronous messaging is not without pitfalls. Many of the assumptions that hold true when developing single, synchronous applications are no longer valid. Vendor-independent design guidance helps developers avoid these pitfalls so they can build robust integration architectures based on asynchronous messaging.\n\n## How can Patterns Help?\n\nPatterns are a proven way to capture experts' knowledge where no simple “one size fits all” answers exist, for example in application architecture, object-oriented design, or message-oriented integration . Each pattern tackles a specific problem by discussing design considerations and presenting an elegant solution that balances often conflicting forces. The solution is not the first approach that comes to mind, but one that has evolved through actual use over time, capturing the experience that senior developers and architects have gained by repeatedly building solutions and learning from their mistakes.\n\n## What am I Reading Right Now?\n\n[Modern Software Engineering: Doing What Works to Build Better Software Faster](https://amzn.to/3s9VFgL) , Dave Farley, 2021\n\nThe \"father of continuous delivery\" distills the concepts behind modern software delivery, such as modularity, feedback, coupling. A must-read for every modern software engineer.\n\n[Practical Process Automation: Orchestration and Integration in Microservices and Cloud Native Architectures](https://amzn.to/3HlQkcx) , Ruecker, 2021\n\nProcess automation is no longer the domain of large-scale business processes but an integral part of modern application architecture. This books shows you where the two meet.\n\n[System Architecture: Strategy and Product Development for Complex Systems](https://amzn.to/3saiaCj) , Crawley, Cameron, Selva, Addison-Wesley 2015\n\nA tour de force on designing complex systems with a special emphasis on decomposition and logical relationships, augmented by a list of System Architecture Principles. Most examples drawing on non-IT domains helps convey the concepts without getting lost in technology debates and makes it worth the price.", "znaku_textu": 8463, "slov": 1118, "odkazu": 142, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 06:01:18", "sha256": "074c32eb64d9ef79bec751994ec70f45664cf3c53229d4fbd469715bcfff3fe3", "hloubka": 0, "zdroj_objevu": "seed", "ze_seznamu": true, "mime": "text/html", "odkazy_externi": ["http://www.infoq.com/presentations/hohpe-soa-conversations", "http://www.infoq.com/", "http://www.infoq.com/presentations/hohpe-soa-development", "http://www.drdobbs.com/an-asynchronous-world/184415001", "https://sites.google.com/site/gcodejp/slides/ProgrammingCloud_QCon.pdf", "http://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "https://platformstrategybook.info/", "https://amzn.to/3WpMVm0", "https://leanpub.com/platformstrategy/c/eip", "https://amzn.to/3egsIr5", "https://amzn.to/3egsIr5')", "https://amzn.to/3s9VFgL", "https://amzn.to/3HlQkcx", "https://amzn.to/3saiaCj"]} {"url": "https://www.enterpriseintegrationpatterns.com/Aggregator.html", "titulek": "Aggregator - Enterprise Integration Patterns", "h1": "", "popis": "How do we combine the results of individual, but related messages so that they can be processed as a whole?", "klicova_slova": "Aggregator,integration, messaging, events, patterns, event-driven, coupling, eai, middleware, application integration, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns", "og:title": "Aggregator - Enterprise Integration Patterns", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/Aggregator.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/Aggregator.gif"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Example: Serverless Loan Broker on AWSNEW"}, {"uroven": 2, "text": "Example: Serverless Loan Broker on GCPNEW"}, {"uroven": 2, "text": "Integration Pattern Language"}], "markdown": "| | Aggregator[Messaging Patterns](index.html) » [Message Routing](MessageRoutingIntro.html) | [Contents](toc.html)[⇐ Prev](Sequencer.html)[Next ⇒](Resequencer.html) |\n| --- | --- | --- |\n\nA [*Splitter*](Sequencer.html) is useful to break out a single message into a sequence of sub-messages that can be processed individually. Likewise, a [*Recipient List*](RecipientList.html) or a [*Publish-Subscribe Channel*](PublishSubscribeChannel.html) is useful to forward a request message to multiple recipients in parallel in order to get multiple responses to choose from. In most of these scenarios, the further processing depends on successful processing of the sub-messages. For example, we want to select the best bid from a number of vendor responses or we want to bill the client for an order after all items have been pulled from the warehouse.\n\nHow do we combine the results of individual, but related messages so that they can be processed as a whole?\n\nUse a stateful filter, an *Aggregator*, to collect and store individual messages until a complete set of related messages has been received. Then, the *Aggregator* publishes a single message distilled from the individual messages.\n\nThe *Aggregator* is a special *Filter* that receives a stream of messages and identifies messages that are correlated. Once a complete set of messages has been received (more on how to decide when a set is 'complete' below), the *Aggregator* collects information from each correlated message and publishes a single, aggregated message to the output channel for further processing.\n\nWhen designing an *Aggregator*, we need to specify the following items:\n\n- **Correlation** - which incoming messages belong together?\n- **Completeness Condition** - when are we ready to publish the result message?\n- **Aggregation Algorithm** - how do we combine the received messages into a single result message?\n\nThere are a number of strategies for aggregator completeness conditions. The available strategies primarily depend on whether we know how many messages to expect or not. The *Aggregator* could know the number of sub-messages to expect because it received a copy of the original composite message or because each individual message contains the total count (as described in the [*Splitter*](Sequencer.html) example). Depending on how much the *Aggregator* knows about the message stream, the most common strategies are as follows:\n\n- **\"Wait for All\"** Wait until all responses are received. This scenario is most likely in the order example we discussed earlier. An incomplete order may not be meaningful. So if not all items are received within a certain time-out period an error condition should be raised by the *Aggregator* . This approach may give us the best basis for decision-making, but may also be the slowest and most brittle (plus we need to know how many messages to expect). A single missing or delayed message will prevent further processing of the whole aggregate. Resolving such error conditions can be a complicated matter in loosely-coupled asynchronous systems because the asynchronous flow of messages makes it hard to reliably detect error conditions (how long should we wait before a message is \"missing\"?). One way to deal with missing messages is to re-request the message. However, this approach requires the *Aggregator* to know the source of the message, which may introduce additional dependencies between the *Aggregator* and other components.\n- **\"Time Out\"** Wait for a specified length of time for responses and then make a decision by evaluating those responses received within that time limit. If no responses are received, the system may report an exception or retry. This heuristic is useful if incoming responses are scored and only the message (or a small number of messages) with the highest score is used. This approach is common in \"bidding\" scenarios.\n- **\"First Best\"** Wait only until the first (fastest) response is received and ignore all other responses. This approach is the fastest, but ignores a lot of information. It may be practical in a bidding or quoting scenario where response time is critical.\n- **\"Time Out with Override\"** Wait for a specified amount of time or until a message with a preset minimum score has been received. In this scenario, we are willing to abort early if we find a very favorable response; otherwise, we keep on going until time is up. If no clear winner was found at that point, rank ordering among all the messages received so far occurs.\n- **\"External Event\"** Sometimes the aggregation is concluded by the arrival of an external business event. For example, in the financial industry, the end of the trading day may signal the end of an aggregation of incoming price quotes. Using a fixed timer for such an event reduces flexibility because it does not other variability. Also, a designated business even in form of an [*Event Message*](EventMessage.html) allows for central control of the system. The *Aggregator* can listen for the [*Event Message*](EventMessage.html) on a special control channel or receive a specially formatted message that indicates the end of the aggregation.\n\n...\nRead the entire pattern in the book [Enterprise Integration Patterns](/books1.html)\n\n## Example: Serverless Loan Broker on AWS[NEW](/ramblings/eip1_examples_updated.html)\n\nThe [modern implementation of the Loan Broker using AWS serverless constructs](/ramblings/loanbroker_stepfunctions_pubsub.html#aggregator) includes an implementation of a *Aggregator* with Lambda and DynamoDB. The *Aggregator* uses a simple completeness condition of waiting for a minimum number of answers. The surrounding workflow, implemented using AWS Step Functions, adds a time-out component.\n\n## Example: Serverless Loan Broker on GCP[NEW](/ramblings/eip1_examples_updated.html)\n\nThe [modern implementation of the Loan Broker using GCP](/ramblings/loanbroker_gcp_workflows.html) includes an implementation of a *Aggregator* with a Cloud Function and Datastore. The implementation stores all elements of a specific Aggregate under the same key and can therefore fail when inserting the record (Datastore doesn't seem to like heavy contention on one record). It therefore configures retry logic on the incoming messages. The *Aggregator* signals back to the [*Process Manager*](ProcessManager.html) on completion.\n\n**Related patterns:**\n\n[*Scatter-Gather*](BroadcastAggregate.html), [*Introduction to Composed Messaging Examples*](ComposedMessagingExample.html), [*Content-Based Router*](ContentBasedRouter.html), [*Control Bus*](ControlBus.html), [*Correlation Identifier*](CorrelationIdentifier.html), [*Composed Message Processor*](DistributionAggregate.html), [*Event-Driven Consumer*](EventDrivenConsumer.html), [*Event Message*](EventMessage.html), [*Guaranteed Delivery*](GuaranteedMessaging.html), [*Message Expiration*](MessageExpiration.html), [*Point-to-Point Channel*](PointToPointChannel.html), [*Process Manager*](ProcessManager.html), [*Publish-Subscribe Channel*](PublishSubscribeChannel.html), [*Recipient List*](RecipientList.html), [*Resequencer*](Resequencer.html), [*Splitter*](Sequencer.html), [*Transactional Client*](TransactionalClient.html)\n\n---\n\n## Integration Pattern Language\n\n[Message Construct.](MessageConstructionIntro.html)\n\n[Message](Message.html)\n\n[Command Message](CommandMessage.html)\n\n[Document Message](DocumentMessage.html)\n\n[Event Message](EventMessage.html)\n\n[Request-Reply](RequestReply.html)\n\n[Return Address](ReturnAddress.html)\n\n[Correlation Identifier](CorrelationIdentifier.html)\n\n[Message Sequence](MessageSequence.html)\n\n[Message Expiration](MessageExpiration.html)\n\n[Format Indicator](FormatIndicator.html)\n\n[Message Routing](MessageRoutingIntro.html)\n\n[Pipes-and-Filters](PipesAndFilters.html)\n\n[Message Router](MessageRouter.html)\n\n[Content-based Router](ContentBasedRouter.html)\n\n[Message Filter](Filter.html)\n\n[Dynamic Router](DynamicRouter.html)\n\n[Recipient List](RecipientList.html)\n\n[Splitter](Sequencer.html)\n\n[Aggregator](Aggregator.html)\n\n[Resequencer](Resequencer.html)\n\n[Composed Msg. Processor](DistributionAggregate.html)\n\n[Scatter-Gather](BroadcastAggregate.html)\n\n[Routing Slip](RoutingTable.html)\n\n[Process Manager](ProcessManager.html)\n\n[Message Broker](MessageBroker.html)\n\n[Message\nTransformation](MessageTransformationIntro.html)\n\n[Message Translator](MessageTranslator.html)\n\n[Envelope Wrapper](EnvelopeWrapper.html)\n\n[Content Enricher](DataEnricher.html)\n\n[Content Filter](ContentFilter.html)\n\n[Claim Check](StoreInLibrary.html)\n\n[Normalizer](Normalizer.html)\n\n[Canonical Data Model](CanonicalDataModel.html)\n\n[Messaging Endpoints](MessagingEndpointsIntro.html)\n\n[Message Endpoint](MessageEndpoint.html)\n\n[Messaging Gateway](MessagingGateway.html)\n\n[Messaging Mapper](MessagingMapper.html)\n\n[Transactional Client](TransactionalClient.html)\n\n[Polling Consumer](PollingConsumer.html)\n\n[Event-driven Consumer](EventDrivenConsumer.html)\n\n[Competing Consumers](CompetingConsumers.html)\n\n[Message Dispatcher](MessageDispatcher.html)\n\n[Selective Consumer](MessageSelector.html)\n\n[Durable Subscriber](DurableSubscription.html)\n\n[Idempotent Receiver](IdempotentReceiver.html)\n\n[Service Activator](MessagingAdapter.html)\n\n[Messaging Channels](MessagingChannelsIntro.html)\n\n[Message Channel](MessageChannel.html)\n\n[Point-to-Point Channel](PointToPointChannel.html)\n\n[Publish-Subscr. Channel](PublishSubscribeChannel.html)\n\n[Datatype Channel](DatatypeChannel.html)\n\n[Invalid Message Channel](InvalidMessageChannel.html)\n\n[Dead Letter Channel](DeadLetterChannel.html)\n\n[Guaranteed Delivery](GuaranteedMessaging.html)\n\n[Channel Adapter](ChannelAdapter.html)\n\n[Messaging Bridge](MessagingBridge.html)\n\n[Message Bus](MessageBus.html)\n\n[Systems Mgmt.](SystemManagementIntro.html)\n\n[Control Bus](ControlBus.html)\n\n[Detour](Detour.html)\n\n[Wire Tap](WireTap.html)\n\n[Message History](MessageHistory.html)\n\n[Message Store](MessageStore.html)\n\n[Smart Proxy](SmartProxy.html)\n\n[Test Message](TestMessage.html)\n\n[Channel Purger](ChannelPurger.html)", "znaku_textu": 9842, "slov": 1169, "odkazu": 111, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/Aggregator.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 06:03:44", "sha256": "15d8640d5ad149a0e54a23c4cfe4a84c0abdcec421de2f9eb301daf21d708f58", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://creativecommons.org/licenses/by/4.0/", "https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "https://www.architectelevator.com/book", "https://www.cloudstrategybook.com/", "https://www.platformstrategybook.info/"]} {"url": "https://www.enterpriseintegrationpatterns.com/BondTradingCaseStudy.html", "titulek": "Case Study: Bond Trading System - Enterprise Integration Patterns", "h1": "", "popis": "It is easy to distance yourself from a large collection of patterns or a pattern language. Patterns are the abstraction of an idea in a reusable form. Often, the very generic nature of patterns that makes them so useful also makes them hard to grasp. Sometimes the best thing to help understand patterns is a real world example. Not a contrived scenario of what could happen; but what actually happens and what will happen.", "klicova_slova": "Case Study: Bond Trading System,integration, messaging, events, patterns, event-driven, coupling, eai, middleware, application integration, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns", "og:title": "Case Study: Bond Trading System - Enterprise Integration Patterns", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/BondTradingCaseStudy.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/eip1_patterns_wide.png"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Building a System"}, {"uroven": 2, "text": "Architecture with Patterns"}, {"uroven": 2, "text": "Structuring Channels"}, {"uroven": 2, "text": "Selecting a Message Channel?"}, {"uroven": 2, "text": "Problem Solving With Patterns"}, {"uroven": 2, "text": "Flashing Market Data Updates"}, {"uroven": 2, "text": "Major Production Crash"}, {"uroven": 2, "text": "Summary"}, {"uroven": 2, "text": "Integration Pattern Language"}], "markdown": "| | Case Study: Bond Trading System[Messaging Patterns](index.html) » Integration Patterns in Practice | [Contents](toc.html)[⇐ Prev](SystemManagementExample.html)[Next ⇒](Future.html) |\n| --- | --- | --- |\n\n*(By Jonathan Simon)*\n\nIt is easy to distance yourself from a large collection of patterns or a pattern language. Patterns are the abstraction of an idea in a reusable form. Often, the very generic nature of patterns that makes them so useful also makes them hard to grasp. Sometimes the best thing to help understand patterns is a real world example. Not a contrived scenario of what *could* happen; but what *actually* happens and what *will* happen.\n\nThis chapter applies patterns to solve problems using a discovery process. The system we will discuss is a bond trading system that I worked with for two years from initial design through production. We will explore scenarios and problems that were encountered and how to solve them with patterns. This involves the decision process of choosing a pattern, as well as how to combine and adjust patterns to suit the needs of the system. And this is all done taking into account the forces encountered in real systems including business requirements, client decisions, architectural and technical requirements, as well as legacy system integration. The intent of this approach is to provide a clearer understanding of the patterns themselves through practical application.\n\n## Building a System\n\nA major Wall Street investment bank sets out to build a bond pricing system in an effort to streamline the workflow of their bond trading desk. Currently, bond traders have to send prices for a large number of bonds to several different trading venues, each with its own user interface. The goal for the system is to minimize the minutiae of pricing all of their bonds combined with advanced analytic functionality specific to the bond market in a single encapsulated user interface. This means integration and communication with several components over various communication protocols. The high level flow of the system looks like this:\n\n*High Level Flow*\n\nFirst, market data comes into the system. Market data is data regarding the price and other properties of the bond representing what people are willing to buy and sell the bond for on the free market. The market data is immediately sent to the analytics engine that alters the data. Analytics refers to mathematical functions for financial applications that alter the prices and other attributes of bonds. These are generic functions that use input variables to tailor the results of the function to a particular bond. The client application that will run on each trader desktop will configure the analytics engine on a per trader basis, controlling the specifics of the analytics for each bond the trader is pricing. Once the analytics are applied to the market data, the modified data is sent out to various trading venues where traders from other firms can buy or sell the bonds.\n\n## Architecture with Patterns\n\nWith this overview of the workflow of the system, we can approach some of the architectural problems we encounter during the design process. Let’s take a look at what we know to date. Traders need a very responsive application on both Windows NT and Solaris workstations. Therefore, we decided to implement the client application as a Java thick client because of its platform independence and its ability to quickly respond to user input and market data. On the server side, we are inheriting legacy C++ components that our system will utilize. The market data components communicate with the TIBCO Information Bus (TIB) messaging infrastructure.\n\nWe are inheriting the following components:\n\n- **Market Data Price Feed Server** : Publishes incoming market data to the TIB.\n- **Analytics Engine** : Performs analytics on incoming market data and broadcasts the modified market data to the TIB.\n- **Contribution Server** : Performs all communication with trading venues. The trading venues are third party components not controlled by the bank.\n\n*Legacy Market Data Subsystem* \n *Legacy Contribution Subsystem*\n\nWe need to decide how the separate subsystems (Java thick client, market data, and contribution) are going to communicate. We could have the thick client communicate directly with the legacy servers, but that would require too much business logic on the client. Instead, we’ll build a pair of Java gateways to communicate with the legacy servers—The Pricing Gateway for market data a Contribution Gateway for sending prices to trading venues. This will achieve nice encapsulation of the business logic related to these areas. The current components in the system are shown below. The connections marked as “???” indicate that we are still unsure how some of the components will communicate.\n\n*The system and its components*\n\nThe first communication question is how to integrate the Java thick client and the two Java server components in order to exchange data. Let’s look at the four integration styles suggested in this book: [*File Transfer*](FileTransferIntegration.html), [*Shared Database*](SharedDataBaseIntegration.html), [*Remote Procedure Invocation*](EncapsulatedSynchronousIntegration.html), and [*Messaging*](Messaging.html). We can rule out [*Shared Database*](SharedDataBaseIntegration.html) immediately because we wanted to create a layer of abstraction between the client and the database and don’t want to have database access code in the client. [*File Transfer*](FileTransferIntegration.html) can similarly be ruled out since minimal latency is required to ensure current prices are sent out to the trading venues. This leaves us with a choice between [*Remote Procedure Invocation*](EncapsulatedSynchronousIntegration.html) or [*Messaging*](Messaging.html).\n\nThe Java platform provides built-in support for both [*Remote Procedure Invocation*](EncapsulatedSynchronousIntegration.html) and [*Messaging*](Messaging.html). RPC-style integration can be achieved using Remote Method Invocation (RMI), CORBA, or Enterprise Java Beans (EJB). The Java Messaging Service (JMS) is the common API for messaging-style integration. So both integration styles are easy to implement in Java.\n\nSo which will work better for this project, [*Remote Procedure Invocation*](EncapsulatedSynchronousIntegration.html) or [*Messaging*](Messaging.html)? There’s only one instance of the Pricing Gateway and one instance of the Contribution Gateway in the system, but usually many Thick Clients simultaneously connect to these services (one for each bond trader that happens to be logged in at a particular time). Furthermore, the bank would like this to be a generic pricing system that can be utilized in other applications. So besides an unknown number of Think Clients, there may be an unknown number of other applications using the pricing data coming out of the Gateways.\n\nA Thick Client (or other application using the pricing data) can fairly easily use RPC to make calls to the Gateways to get pricing data and invoke processing. However, pricing data will constantly be published, and certain clients are only interested in certain data, so getting the relevant data to the proper clients in a timely manner could be difficult. The clients could poll the Gateways, but that will create a lot of overhead. It would be better for the Gateways to make the data available to the clients as soon as it is available. This, however, will require each Gateway to keep track of which clients are currently active, and which want what particular data; then, when a new piece of data becomes available (which will happen numerous times per second), the Gateway will have to make an RPC to each interested client to pass the data to the client. Ideally, all clients should be notified simultaneously, so each RPC needs to be made in its own concurrent thread. This can work, but is getting very complicated very fast.\n\n[*Messaging*](Messaging.html) greatly simplifies this problem. With [*Messaging*](Messaging.html), we can define separate channels for the different types of pricing data. Then, when a Gateway gets a new piece of data, it will add a message containing that data to the [*Publish-Subscribe Channel*](PublishSubscribeChannel.html) for that data type. Meanwhile, all clients interested in a certain type of data will listen on the channel for that type. In this way, the Gateways can easily send out new data to whomever is interested, without needing to know how many listener applications there are or what they are.\n\nThe clients still need to be able to invoke behavior in the Gateways as well. Since there are ever only two Gateways, and the client can probably block while the method is invoked synchronously, these client-to-Gateway invocations can fairly easily be implemented using RPC. However, since we are already using messaging for Gateway-to-client communication, messages are probably just as good a way to implement client-to-Gateway communication as well.\n\nTherefore, all communication between the Gateways and the clients will be accomplished through messaging. Because all of the components are written in Java, JMS presents an easy choice for as the messaging system. This is effectively creating a [*Message Bus*](MessageBus.html) or an architecture that will make it possible for future systems to integrate with the current system with little or no changes to the messaging infrastructure. This way, the business functionality of the application can be easily used by other application the bank develops.\n\n*Java Components Communicating with JMS*\n\nJMS is simply a specification and we need to decide on a JMS-compliant messaging system. We decided to use IBM MQSeries JMS because the bank is an “IBM shop,” using WebSphere application servers and many other IBM products. As a result, we will use MQSeries since we already have a support infrastructure in place and a site license of the product.\n\nThe next question is how to connect the MQSeries messaging system with the standalone C++ Contribution server and the TIBCO based Market Data and Analytics Engine servers. We need a way for the MQSeries consumers to have access to the TIB messages. But how? Perhaps we could use the [*Message Translator*](MessageTranslator.html) pattern to translate TIB messages into MQSeries messages. Although the C++ client for MQSeries serves as a [*Message Translator*](MessageTranslator.html), using it would sacrifice JMS server independence. And although TIBCO does have a Java API, the customer architect and manager have rejected it. As a result, the [*Message Translator*](MessageTranslator.html) approach has to be abandoned.\n\nThe bridge from the TIB server to the MQSeries server requires communication between C++ and Java. We could use CORBA, but then what about the messaging? A closer look at the [*Message Translator*](MessageTranslator.html) pattern shows it is related to the [*Channel Adapter*](ChannelAdapter.html) in its use of communication protocols. The heart of a [*Channel Adapter*](ChannelAdapter.html) is to connect non-messaging systems to messaging systems. A pair of channel adapters that connects two messaging systems is a [*Messaging Bridge*](MessagingBridge.html).\n\nThe purpose of a [*Messaging Bridge*](MessagingBridge.html) is to transfer messages from one messaging system to another. This is exactly what we are doing with the added complexity of the intra-language Java to C++ communication. We can implement the cross language [*Messaging Bridge*](MessagingBridge.html) using a combination of [*Channel Adapter*](ChannelAdapter.html)s and CORBA. We will build two lightweight [*Channel Adapter*](ChannelAdapter.html) servers, one in C++ managing communication with the TIB, and one in Java managing communication with JMS. These two [*Channel Adapter*](ChannelAdapter.html), which are [*Message Endpoint*](MessageEndpoint.html)s themselves, will communicate with each other via CORBA. Like our choice for MQSeries, we will use CORBA rather than JNI since it is a company standard. The messaging bridge implements the effectively simulated message translation between seemingly incompatible messaging systems and different languages.\n\n*Message Translator using Channel Adapters*\n\nThe next diagram shows the current system design including the Gateways and other components. This is a good example of pattern application. We combined two [*Channel Adapter*](ChannelAdapter.html)s with a non-messaging protocol to implement the [*Message Translator*](MessageTranslator.html) pattern, effectively using one pattern to implement another pattern. Additionally, we changed the [*Channel Adapter*](ChannelAdapter.html)s' context to link two messaging systems with a non-messaging cross language translation protocol rather than connecting a messaging system to a non-messaging system.\n\n*The current system with the Channel Adapters*\n\n## Structuring Channels\n\nA key to working with patterns is not only knowing when to use which pattern, but also how to most effectively use it. Each pattern implementation has to take into account specifics of the technology platform as well as other design criteria. This section applies the same discovery process to find the most efficient use of the [*Publish-Subscribe Channel*](PublishSubscribeChannel.html) in the context of the market data server communicating with the analytics engine.\n\nReal time market data originates with market data feed, a C++ server that broadcasts market data on the TIB. The market data feed uses a separate [*Publish-Subscribe Channel*](PublishSubscribeChannel.html) for each bond it is publishing prices for. This may seem a little extreme since each new bond needs its own new channel. But this is not so severe since you do not actually need to create channels in TIBCO. Rather, channels are referenced by a hierarchical set of topic names called subjects. The TIBCO server then filters a single message flow by subject, sending each unique subject to a single virtual channel. The result of which is a very lightweight message channel.\n\nWe could create a system that publishes on a few channels and subscribers could listen only for prices they are interested in. This would require subscribers to use a [*Message Filter*](Filter.html) or [*Selective Consumer*](MessageSelector.html) to filter the entire data flow for interesting bond prices, deciding whether each message should be processed as it is received. Given that the market data is published on bond-dedicated channels, subscribers can register for updates on a series of bonds. This effectively allows subscribers to \"filter\" by selectively subscribing to channels and only receiving updates of interest rather than deciding after the message is received. It is important to note that using multiple channels to avoid filtering is a nonstandard use of messaging channels. In context of the TIBCO technology however, we are really deciding whether to implement or own filters or utilize the channel filtering built into TIBCO -- rather than whether to use so many channels.\n\nThe next component we need to design is the analytics engine, another C++/TIB server that will modify the market data and rebroadcast it to the TIB. Although it is out of the scope of our Java/JMS development, we are working closely with the C++ team to design it since we are the analytics engine's primary 'customer'. The problem at hand is to find the channel structure that most efficiently rebroadcast the newly modified market data.\n\nSince we already have one dedicated [*Message Channel*](MessageChannel.html) per bond inherited from the market data price feed, it would be logical to modify the market data and rebroadcast the modified market data on the bond dedicated [*Message Channel*](MessageChannel.html). But this will not work since the analytics modifying the bonds prices are trader specific. If we rebroadcast the modified data on the bond [*Message Channel*](MessageChannel.html), we will destroy the data integrity by replacing generic market data with trader specific data. On the other hand, we could have a different message type for trader specific market data that we publish on the same channel allowing subscribers to decide which message they are interested in to avoid destroying the data integrity. But then clients will have to implement their own filters to separate out messages for other traders. Additionally, there will a substantial increase in messages received by subscribers, placing an unnecessary burden on them.\n\nThere are two options:\n\n1. One Channel per Trader: Each trader has a designated channel for the modified market data. This way, the original market data remains intact and each trader application can listen to its specific traders Message Channel for the modified price updates.\n2. One Channel per trader per Bond: Create one Message Channel per-trader per-bond solely for the modified market data of that bond. For example, the market data for bond ABC would be published on channel \"Bond ABC\" while the modified market data for trader A would be published on Message Channel \"Trader A, Bond ABC\", modified market data for trader B on \"Trader B, Bond ABC,\" and so on.\n\n*One channel per trader* \n *One channel per bond per trader*\n\nThere are advantages and disadvantages to each approach. The per-bond approach, for example, uses a lot more [*Message Channel*](MessageChannel.html). In the worst-case scenario, the number of [*Message Channel*](MessageChannel.html) will be the number of bonds total multiplied by the number of traders. We can put upper bounds on the number of channels that will be created since we know that there are only around 20 traders and they never price more than a couple hundred bonds. This puts the upper limit below the 10,000 range, which is not so outlandish compared to the nearly 100,000 [*Message Channel*](MessageChannel.html) the market data price feed is using. Also, since we are using the TIB and [*Message Channel*](MessageChannel.html) are quite inexpensive, the number of [*Message Channel*](MessageChannel.html)s is not a severe issue. On the other hand, the sheer number of [*Message Channel*](MessageChannel.html)s could be a problem from a management perspective. Every time a bond is added a channel for each trader must be maintained. This could be severe in a very dynamic system. Our system, however, is essentially static. It also has an infrastructure for automatically managing [*Message Channel*](MessageChannel.html)s. This combined with the inherited architecture of a legacy component using a similar approach minimizes the downside. This is not to say we should make an unnecessarily excessive number of [*Message Channel*](MessageChannel.html)s. Rather, we can implement an architectural approach that uses a large number of [*Message Channel*](MessageChannel.html)s when there is a reason.\n\nAnd there is a reason in this case that comes down to the location of logic. If we implement the per trader approach, the Analytics Engine needs logic to group input and output channels. This is because the input channels from the Analytics Engine are per bond and the output [*Message Channel*](MessageChannel.html)s would be per trader, requiring the Analytics Engine to route all analytics input from multiple bonds for a particular trader to a trader specific output [*Message Channel*](MessageChannel.html). This effectively turns the analytics engine into a [*Content-Based Router*](ContentBasedRouter.html) to implement custom routing logic for our application.\n\nFollowing the [*Message Bus*](MessageBus.html) structure, the Analytics Engine is a generic server that could be used by several other systems in the. So we don’t want to cloud it with system specific functionality. On the other hand, the per-bond approach works since the idea of a trader owning the analytics output of bond prices is a company accepted practice. The per-bond approach keeps the [*Message Channel*](MessageChannel.html) separation of the market data feed intact, while adding several more [*Message Channel*](MessageChannel.html)s. Before we reach the client, we want a [*Content-Based Router*](ContentBasedRouter.html) to combine these several channels into a manageable number of channels. We don’t want the client application running on the trader’s desktop to be listening to thousands or tens of thousands of [*Message Channel*](MessageChannel.html)s. Now the question becomes where to put the [*Content-Based Router*](ContentBasedRouter.html). We could simply have the C++/TIB [*Channel Adapter*](ChannelAdapter.html) forward all of the messages to the Pricing Gateway on a single [*Message Channel*](MessageChannel.html). This is bad for two reasons; we would be splitting up the business logic between C++ and Java, and we would lose the benefit of the separate [*Message Channel*](MessageChannel.html)s on the TIB side allowing us to avoid filtering later in the data flow. Looking at our Java components, we could either place it in the Pricing Gateway or create an intermediary component between the Pricing Gateway and the client.\n\nIn theory, if we persisted the bond-based separation of [*Message Channel*](MessageChannel.html)s all the way to the client, the Pricing Gateway would rebroadcast pricing information with the same channel structure as the Pricing Gateway and Analytics Engine. This means a duplication of all of the bond dedicated TIB channels in JMS. Even if we create an intermediary component between the Pricing Gateway and the client, the Pricing Gateway will still have to duplicate all of the channels in JMS. On the other hand, implementing logic directly in the Pricing Gateway allows us to avoid duplicating the large number of channels in JMS—allowing us to create a much smaller number of channels in the order of one per trader. The Pricing Gateway registers itself through the C++/TIB [*Channel Adapter*](ChannelAdapter.html) as a consumer for each bond of every trader in the system. Then the Pricing Gateway will forward each specific client only the messages related to that particular trader. This way, we only use a small number of [*Message Channel*](MessageChannel.html)s on the JMS end, while maximizing the benefit of the separation on the TIB end.\n\n*The complete Market Data Flow to the client*\n\nThe [*Message Channel*](MessageChannel.html) layout discussion is a good example of how integrating patterns is important. The goal here was to figure out how to effectively use the [*Message Channel*](MessageChannel.html)s. Saying you use a pattern isn’t enough. You need to figure out how to best implement it and incorporate into your system to solve the problems at hand. Additionally, this example shows business forces in action. If we could implement business logic in any of our components, we could have gone with the per trader approach and implemented an overall more simple approach with many less channels.\n\n## Selecting a Message Channel?\n\nNow that we know the mechanics of the communication between the Java/JMS components and the C++/ TIBCO components, and we have seen some [*Message Channel*](MessageChannel.html) structuring, we need to decide which type of JMS [*Message Channel*](MessageChannel.html)s the Java components should use to communicate. Before we can choose between the different Message Channels available in JMS, let’s look at the high level message flow of the system. We have two gateways (Pricing and Contribution) communicating with the client. Market data flows to the client from the Pricing Gateway which sends it out to the Contribution Gateway. The client application sends message to the Pricing Gateway to alter the analytics being applied to each bond. The Contribution Gateway also sends messages to the Client application relaying the status of the price updates to the different trading venues.\n\n*The system message flow*\n\nThe JMS specification describes two [*Message Channel*](MessageChannel.html) types, [*Point-to-Point Channel*](PointToPointChannel.html) (JMS Queue) and [*Publish-Subscribe Channel*](PublishSubscribeChannel.html) (JMS Topic). Recall that the case for using publish-subscribe is to enable all interested consumers to receive a message while the case for using point-to-point is to ensure that only one eligible consumer receives a particular message.\n\nMany systems would simply broadcast messages to all client applications, leaving each individual client application to decide for itself whether or not to process a particular message. This will not work for our application since there are a large number of market data messages being sent to each client application. If we broadcast market data updates to uninterested trader, we will be unnecessarily wasting client processor cycles deciding whether or not to process a market data update.\n\n[*Point-to-Point Channel*](PointToPointChannel.html)s initially sound like a good choice since the clients are sending messages to unique servers and visa versa. But it was a business requirement that traders may be logged in to multiple machines at the same time. If we have a trader logged in at two workstations simultaneously and a point-to-point price update is sent, only one of the two client applications will get the message. This is because only one consumer on a [*Point-to-Point Channel*](PointToPointChannel.html) can receive a particular message. Notice that only the first of each group of a trader's client applications receives the message.\n\n*Point-to-Point Messaging for Price Updates*\n\nWe could solve this using the [*Recipient List*](RecipientList.html) pattern, which publishes messages to a list of intended recipients, guaranteeing that only clients in the recipient list will receive messages. Using this pattern, the system could create recipient lists with all client application instances related to each trader. Sending a message related to a particular trader would in turn send the message to each application in the recipient list. This guarantees all client application instances related to a particular trader would receive the message. The downside of this approach is that it requires quite a bit of implementation logic to manage the recipients and dispatch messages.\n\n*Recipient List for Price Updates*\n\nEven though point-to-point could be made to work, let’s see if there is a better way. Using [*Publish-Subscribe Channel*](PublishSubscribeChannel.html)s, the system could broadcast messages on trader specific channels rather than client application specific channels. This way, all client applications processing messages for a single trader would receive and process the message.\n\n*Publish-Subscribe Messaging for Price Updates*\n\nThe downside of using [*Publish-Subscribe Channel*](PublishSubscribeChannel.html)s is that unique message processing is not guaranteed with the server components. It would be possible for multiple instances of a server component to be instantiated and each instance process the same message, possibly sending out invalid prices.\n\nRecalling the system message flow, only a single communication direction is satisfactory with each [*Message Channel*](MessageChannel.html). Server-to-client communication with publish-subscribe is satisfactory while client-to-server communication is not and client-server communication with point-to-point is satisfactory while server-client is not. Since there is no need to use the same [*Message Channel*](MessageChannel.html) in both directions, we can use each [*Message Channel*](MessageChannel.html) only one direction. Client-to-server communication will be implemented with point-to-point while server-to-client communication will be implemented with publish-subscribe. Using this combination of [*Message Channel*](MessageChannel.html)s, the system benefits from direct communication with the server components using point-to-point messaging and the multicast nature of publish-subscribe without either of the drawbacks.\n\n*Message flow with Channel Types*\n\n## Problem Solving With Patterns\n\nPatterns are tools and collections of patterns are toolboxes. They help solve problems. Some think that patterns are only useful during design. Following the toolbox analogy, this is like saying that tools are only useful when you build a house, not when you fix it. The fact is that patterns are a useful tool throughout a project when applied well. In the following sections we will use the same pattern exploration process we used in the previous section to solve problems in our now working system.\n\n## Flashing Market Data Updates\n\nTraders want table cells to flash when new market data is received for a bond, clearly indicating changes. The Java client receives messages with new data which triggers a client data cache update and eventually flashing in the table. The problem is that updates come quite frequently. The GUI thread stack is becoming overloaded and eventually freezing the client since it can’t respond to user interaction. We will assume that the flashing is optimized and concentrate on the data flow of messages through the updating process. An examination of performance data shows the client application is receiving several updates a second; some updates occurred less than a millisecond apart. Two patterns that seem like they could help slow down the message flow are Aggregator and Message Filter.\n\nA first thought is to implement a [*Message Filter*](Filter.html) to control the speed of the message flow by throwing out updates received a small amount of time after the reference message. As an example, lets say that we are going to ignore messages within 5 milliseconds of each other. The [*Message Filter*](Filter.html) could cache the time of the last acceptable message and throw out anything received within the next 5 milliseconds. While other applications may not be able to withstand data loss to such an extent, this is perfectly acceptable in our system due to the frequency of price updates.\n\n*Time based Message Filter*\n\nThe problem with this approach is that not all data fields are updated at the same time. Each bond has approximately 50 data fields displayed to the user including price. We realize that not every field is updated in every message. If the system ignores consecutive messages, it may very well be throwing out important data.\n\nThe other pattern of interest is the [*Aggregator*](Aggregator.html). The [*Aggregator*](Aggregator.html) is used to manage the reconciliation of multiple, related messages into a single message, potentially reducing the message flow. The [*Aggregator*](Aggregator.html) could keep a copy of the bond data from the first aggregated message, then update only new or changed fields successive messages. Eventually the aggregated bond data will be passed in a message to the client. For now, lets assume that the Aggregator will send a message every 5 milliseconds like the [*Message Filter*](Filter.html). Later, we'll explore another alternative.\n\n*Aggregator with partial successive updates*\n\nThe [*Aggregator*](Aggregator.html), like any other pattern, is not a silver bullet; it has its pluses and minuses that need to be explored. One potential minus is that implementing an [*Aggregator*](Aggregator.html) would reduce the message traffic by a great amount in our case only if many messages are coming in within a relatively short time regarding the same bond. On the other hand, we would accomplish nothing if the Java client only receives updates for one field across all of the traders bonds. For example, if we receive 1000 messages in a specified timeframe with 4 bonds of interest, we would reduce the message flow from 1000 to 4 messages over that timeframe. Alternatively, if we receive 1000 messages in the same timeframe with 750 bonds of interest, we will have reduced the message flow from 1000 to 750 messages; relatively little gain for the amount of effort. A quick analysis of the message updates proves that the Java client receives many messages updating fields of the same bond, and therefore related messages. So, [*Aggregator*](Aggregator.html) is in fact a good decision.\n\nWhat's left is to determine how the [*Aggregator*](Aggregator.html) will know when to send a message it has been aggregating. The pattern describes a few algorithms for the [*Aggregator*](Aggregator.html) to know when to send the message. These include algorithms to cause the aggregator to send out its contents after a certain amount of time has elapsed, after all required fields in a data set have been completed, and others. The problem with all of these approaches is that the aggregator is controlling the message flow, not the client. And the client is the major bottleneck in this case, not the message flow.\n\nThis is because the [*Aggregator*](Aggregator.html) is assuming the consumers of its purged messages (the client application in this case) are [*Event-Driven Consumer*](EventDrivenConsumer.html)s, or consumers that rely on events from an external source. We need to turn the client into a [*Polling Consumer*](PollingConsumer.html), or a consumer that continuously checks for messages, so the client application can control the message flow. We can do this by creating a background thread that continuously cycles through the set of bonds and updates and flashes any changes that have occurred since the last iteration. This way, the client controls when messages are received and as a result, guarantees that it will never become overloaded with messages during high update periods. We can easily implement this by sending a [*Command Message*](CommandMessage.html) to the [*Aggregator*](Aggregator.html) initiating an update. The [*Aggregator*](Aggregator.html) will respond with a [*Document Message*](DocumentMessage.html) containing the set of updated fields that the client will process.\n\nThe choice of [*Aggregator*](Aggregator.html) over [*Message Filter*](Filter.html) is clearly a decision based solely on the business requirements of our system. Each could help us solve our performance problems, but using the [*Message Filter*](Filter.html) would solve the problem at cost of the system data integrity.\n\n## Major Production Crash\n\nWith the performance of the flashing fixed, we are now in production. One day the entire system goes down. MQSeries crashes, bringing several components down with it. We struggle with the problem for a while and finally trace it back to the MQSeries dead letter queue (an implementation of the [*Dead Letter Channel*](DeadLetterChannel.html)). The queue grows so large that it brings down the entire server. After exploring the messages in the dead letter queue we find they are all expired market data messages. This is caused by “slow consumers,” or consumers that do not process messages fast enough. While messages are waiting to be processed, they time out (see the [*Message Expiration*](MessageExpiration.html) pattern) and are sent to the [*Dead Letter Channel*](DeadLetterChannel.html). The excessive number of expired market data messages in the dead letter queue is a clear indication that the message flow is too great – messages expire before the target application can consume them. We need to fix the message flow and we turn to patterns for help slowing down the message flow.\n\n*The bottleneck*\n\nA reasonable first step is to explore solving this problem with the [*Aggregator*](Aggregator.html) as we recently used this pattern to solve the similar flashing market data control rate problem. The system design relies on the client application to immediately forward market data update messages to the trading venues. This means the system cannot wait to collect messages and aggregate them. So the [*Aggregator*](Aggregator.html) must be abandoned.\n\nThere are two other patterns that deal with the problem of consuming messages concurrently: [*Competing Consumers*](CompetingConsumers.html) and [*Message Dispatcher*](MessageDispatcher.html). Starting with [*Competing Consumers*](CompetingConsumers.html), the benefit of this pattern is the parallel processing of incoming messages. This is accomplished using several consumers on the same channel. Only one consumer processes each incoming message leaving the others to process successive messages. [*Competing Consumers*](CompetingConsumers.html), however, will not work for us since we are using [*Publish-Subscribe Channel*](PublishSubscribeChannel.html)s in server-to-client communication. [*Competing Consumers*](CompetingConsumers.html) on a [*Publish-Subscribe Channel*](PublishSubscribeChannel.html) channel means that all consumers process the same incoming message. This results in more work without any gain and completely misses the goal of the pattern. This approach also has to be abandoned.\n\nOn the other hand, the [*Message Dispatcher*](MessageDispatcher.html) describes an approach whereby you add several consumers to a ‘pool’. Each consumer can run its own execution thread. One main Message Consumer listens to the Channel and delegates the message on to an unoccupied Message Consumer in the pool and immediately returns to listening on the [*Message Channel*](MessageChannel.html). This achieves the parallel processing benefit of [*Competing Consumers*](CompetingConsumers.html), but works on [*Publish-Subscribe Channel*](PublishSubscribeChannel.html)s.\n\n*The Message Dispatcher in context*\n\nImplementing this in our system is simple. We create a single JMSListener called the Dispatcher, which contains a collection of other JMSListeners called Performers. When the onMessage method of the Dispatcher is called, it in turn picks a Performer out of the collection to actually process the message. The result of which is a Message Listener (the Dispatcher) that always returns immediately. This guarantees a steady flow of message processing regardless of the message flow rate. Additionally, this works equally well on a [*Publish-Subscribe Channel*](PublishSubscribeChannel.html)s as it does on a [*Point-to-Point Channel*](PointToPointChannel.html)s. With this infrastructure, messages can be received by the client application at almost any rate. If the client application is still slow to process the message after receiving them, the client application can deal with the delayed processing and potentially outdated market data rather than the messages expiring in the JMS [*Message Channel*](MessageChannel.html).\n\nThe crash discussed in this section and the fix using the [*Message Dispatcher*](MessageDispatcher.html) is an excellent example of the limits of applying patterns. We encountered a performance problem based on a design flaw not allowing the client to process messages in parallel. This greatly improved the problem, but did not completely fix it. This is because the real problem was the client becoming a bottleneck. This couldn’t be fixed with a thousand patterns. We later addressed this problem by refactoring the message flow architecture to route messages directly from the Pricing Gateway to the Contribution Gateway. So patterns can help design and maintain a system, but don’t necessarily make up for poor upfront design.\n\n## Summary\n\nThroughout this chapter, we have applied patterns to several different aspects of a bond trading system including solving initial upfront design problems and fixing a nearly job threatening production crash with patterns. We also saw these patterns as they already exist in third party product, legacy components, and our JMS and TIBCO messaging systems. Most importantly, these are real problems with the same types of architectural, technical and business problems we experience as we design and maintain our own systems. Hopefully reading about applying patterns to this system helps give you a better understanding of the patterns as well as how to apply them to your own systems.\n\n## Integration Pattern Language\n\n[Message Construct.](MessageConstructionIntro.html)\n\n[Message](Message.html)\n\n[Command Message](CommandMessage.html)\n\n[Document Message](DocumentMessage.html)\n\n[Event Message](EventMessage.html)\n\n[Request-Reply](RequestReply.html)\n\n[Return Address](ReturnAddress.html)\n\n[Correlation Identifier](CorrelationIdentifier.html)\n\n[Message Sequence](MessageSequence.html)\n\n[Message Expiration](MessageExpiration.html)\n\n[Format Indicator](FormatIndicator.html)\n\n[Message Routing](MessageRoutingIntro.html)\n\n[Pipes-and-Filters](PipesAndFilters.html)\n\n[Message Router](MessageRouter.html)\n\n[Content-based Router](ContentBasedRouter.html)\n\n[Message Filter](Filter.html)\n\n[Dynamic Router](DynamicRouter.html)\n\n[Recipient List](RecipientList.html)\n\n[Splitter](Sequencer.html)\n\n[Aggregator](Aggregator.html)\n\n[Resequencer](Resequencer.html)\n\n[Composed Msg. Processor](DistributionAggregate.html)\n\n[Scatter-Gather](BroadcastAggregate.html)\n\n[Routing Slip](RoutingTable.html)\n\n[Process Manager](ProcessManager.html)\n\n[Message Broker](MessageBroker.html)\n\n[Message\nTransformation](MessageTransformationIntro.html)\n\n[Message Translator](MessageTranslator.html)\n\n[Envelope Wrapper](EnvelopeWrapper.html)\n\n[Content Enricher](DataEnricher.html)\n\n[Content Filter](ContentFilter.html)\n\n[Claim Check](StoreInLibrary.html)\n\n[Normalizer](Normalizer.html)\n\n[Canonical Data Model](CanonicalDataModel.html)\n\n[Messaging Endpoints](MessagingEndpointsIntro.html)\n\n[Message Endpoint](MessageEndpoint.html)\n\n[Messaging Gateway](MessagingGateway.html)\n\n[Messaging Mapper](MessagingMapper.html)\n\n[Transactional Client](TransactionalClient.html)\n\n[Polling Consumer](PollingConsumer.html)\n\n[Event-driven Consumer](EventDrivenConsumer.html)\n\n[Competing Consumers](CompetingConsumers.html)\n\n[Message Dispatcher](MessageDispatcher.html)\n\n[Selective Consumer](MessageSelector.html)\n\n[Durable Subscriber](DurableSubscription.html)\n\n[Idempotent Receiver](IdempotentReceiver.html)\n\n[Service Activator](MessagingAdapter.html)\n\n[Messaging Channels](MessagingChannelsIntro.html)\n\n[Message Channel](MessageChannel.html)\n\n[Point-to-Point Channel](PointToPointChannel.html)\n\n[Publish-Subscr. Channel](PublishSubscribeChannel.html)\n\n[Datatype Channel](DatatypeChannel.html)\n\n[Invalid Message Channel](InvalidMessageChannel.html)\n\n[Dead Letter Channel](DeadLetterChannel.html)\n\n[Guaranteed Delivery](GuaranteedMessaging.html)\n\n[Channel Adapter](ChannelAdapter.html)\n\n[Messaging Bridge](MessagingBridge.html)\n\n[Message Bus](MessageBus.html)\n\n[Systems Mgmt.](SystemManagementIntro.html)\n\n[Control Bus](ControlBus.html)\n\n[Detour](Detour.html)\n\n[Wire Tap](WireTap.html)\n\n[Message History](MessageHistory.html)\n\n[Message Store](MessageStore.html)\n\n[Smart Proxy](SmartProxy.html)\n\n[Test Message](TestMessage.html)\n\n[Channel Purger](ChannelPurger.html)", "znaku_textu": 42469, "slov": 6340, "odkazu": 107, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/patterns/messaging/BondTradingCaseStudy.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 14:51:07", "sha256": "4408d4d7e856507b20eca4a1805096d6deb897f2a766c911edd4caf1c931dce8", "hloubka": 3, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "https://www.architectelevator.com/book", "https://www.cloudstrategybook.com/", "https://www.platformstrategybook.info/"]} {"url": "https://www.enterpriseintegrationpatterns.com/BroadcastAggregate.html", "titulek": "Scatter-Gather - Enterprise Integration Patterns", "h1": "", "popis": "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?", "klicova_slova": "Scatter-Gather,integration, messaging, events, patterns, event-driven, coupling, eai, middleware, application integration, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns", "og:title": "Scatter-Gather - Enterprise Integration Patterns", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/BroadcastAggregate.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/BroadcastAggregate.gif"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Example: Serverless Loan Broker on AWSNEW"}, {"uroven": 2, "text": "Example: Mulesoft ESBNEW"}, {"uroven": 2, "text": "Example: Azure Durable Functions (Fan out/fan in)NEW"}, {"uroven": 2, "text": "Integration Pattern Language"}], "markdown": "| | Scatter-Gather[Messaging Patterns](index.html) » [Message Routing](MessageRoutingIntro.html) | [Contents](toc.html)[⇐ Prev](DistributionAggregate.html)[Next ⇒](RoutingTable.html) |\n| --- | --- | --- |\n\nIn the order processing example introduced in the previous patterns , each order item that is not currently in stock could be supplied by one of multiple external suppliers. However, the suppliers may or may not have the respective item in stock themselves, they may charge a different price and may be able to supply the part by a different date. To fill the order in the best way possible, we should request quotes from all suppliers and decide which one provides us with the best term for the requested item.\n\nHow do you maintain the overall message flow when a message needs to be sent to multiple recipients, each of which may send a reply?\n\nUse a *Scatter-Gather* that broadcasts a message to multiple recipients and re-aggregates the responses back into a single message\n\nThe *Scatter-Gather* routes a request message to the a number of recipients. It then uses an [*Aggregator*](Aggregator.html) to collect the responses and distill them into a single response message.\n\nThere are two variants of the *Scatter-Gather* that use different mechanisms to send the request messages to the intended recipients:\n\n- **Distribution** via a [*Recipient List*](RecipientList.html) allows the *Scatter-Gather* to control the list of recipients but requires the *Scatter-Gather* to be aware of each recipient's message channel.\n- **Auction** -style *Scatter-Gather* s use a [*Publish-Subscribe Channel*](PublishSubscribeChannel.html) to broadcast the request to any interested participant. This option allows the *Scatter-Gather* to use a single channel but at the same time relinquishes control.\n\n...\nRead the entire pattern in the book [Enterprise Integration Patterns](/books1.html)\n\n## Example: Serverless Loan Broker on AWS[NEW](/ramblings/eip1_examples_updated.html)\n\nThe [serverless Loan Broker example](/ramblings/loanbroker_stepfunctions.html) includes a *Scatter-Gather* that routes requests for a loan quote to interested banks and selects the best offer from the incoming responses. The example implements both a a [*Recipient List*](RecipientList.html) using AWS Step Functions' Map state (see [Part 2](/ramblings/loanbroker_stepfunctions_recipient_list.html)) and a [*Publish-Subscribe Channel*](PublishSubscribeChannel.html) using the Amazon Simple Queuing Service (SQS) (see [Part 3](https://www.enterpriseintegrationpatterns.com/ramblings/loanbroker_stepfunctions_pubsub.html)).\n\n## Example: Mulesoft ESB[NEW](/ramblings/eip1_examples_updated.html)\n\nMulesoft's enterprise service bus includes a *Scatter-Gather* construct, described as [Scatter-Gather Router](https://docs.mulesoft.com/mule-runtime/4.3/scatter-gather-concept) and can be configured using the scatter-gather element.\n\nAlthough each route is independently executed, the Scatter-Gather Router configures a pre-defined number of paths, so it doesn't broadcast to an unknown number of recipients. Knowing all recipients makes the completeness condition of \"Wait for all\" (see [*Aggregator*](Aggregator.html)) a natural choice. Route errors propagate to the Scatter-Gather, which in turn flags an error, passing on any results that were successfully passed by the individual routes. The aggregation strategy is concatenation, turning single variable values into a list of all route results.\n\n## Example: Azure Durable Functions (Fan out/fan in)[NEW](/ramblings/eip1_examples_updated.html)\n\nDurable functions, which are used to orchestrate serverless Azure Functions, make it easy to implement *Scatter-Gather*, following the [Fan out/fan in](https://docs.microsoft.com/en-us/azure/azure-functions/durable/durable-functions-overview?tabs=csharp#fan-in-out) construct. which is supported by the WhenAll method, which waits for all functions to execute:\n\n**Fan out/fan in with Azure Durable Functions**\n\n```\ndef orchestrator_function(context: df.DurableOrchestrationContext):\n work_batch = yield context.call_activity(\"GetVendors\", None)\n parallel_tasks = [ context.call_activity(\"Vendor\", b) for b in work_batch ]\n outputs = yield context.task_all(parallel_tasks)\n total = sum(outputs)\n \n```\n\nThe number of recipients can be calculated at run-time, and the completeness condition can support a variety of strategies, including \"Wait for all\" (Task.WhenAll), \"First Best\" (Task.WhenAny), or \"Fixed Timeout\" (Task.WaitAll).\n\n**Related patterns:**\n\n[*Aggregator*](Aggregator.html), [*Introduction to Composed Messaging Examples*](ComposedMessagingExample.html), [*Asynchronous Implementation with MSMQ*](ComposedMessagingMSMQ.html), [*Asynchronous Implementation with TIBCO ActiveEnterprise*](ComposedMessagingTIBCO.html), [*Composed Message Processor*](DistributionAggregate.html), [*Publish-Subscribe Channel*](PublishSubscribeChannel.html), [*Recipient List*](RecipientList.html), [*Return Address*](ReturnAddress.html), [*Splitter*](Sequencer.html)\n\n---\n\n## Integration Pattern Language\n\n[Message Construct.](MessageConstructionIntro.html)\n\n[Message](Message.html)\n\n[Command Message](CommandMessage.html)\n\n[Document Message](DocumentMessage.html)\n\n[Event Message](EventMessage.html)\n\n[Request-Reply](RequestReply.html)\n\n[Return Address](ReturnAddress.html)\n\n[Correlation Identifier](CorrelationIdentifier.html)\n\n[Message Sequence](MessageSequence.html)\n\n[Message Expiration](MessageExpiration.html)\n\n[Format Indicator](FormatIndicator.html)\n\n[Message Routing](MessageRoutingIntro.html)\n\n[Pipes-and-Filters](PipesAndFilters.html)\n\n[Message Router](MessageRouter.html)\n\n[Content-based Router](ContentBasedRouter.html)\n\n[Message Filter](Filter.html)\n\n[Dynamic Router](DynamicRouter.html)\n\n[Recipient List](RecipientList.html)\n\n[Splitter](Sequencer.html)\n\n[Aggregator](Aggregator.html)\n\n[Resequencer](Resequencer.html)\n\n[Composed Msg. Processor](DistributionAggregate.html)\n\n[Scatter-Gather](BroadcastAggregate.html)\n\n[Routing Slip](RoutingTable.html)\n\n[Process Manager](ProcessManager.html)\n\n[Message Broker](MessageBroker.html)\n\n[Message\nTransformation](MessageTransformationIntro.html)\n\n[Message Translator](MessageTranslator.html)\n\n[Envelope Wrapper](EnvelopeWrapper.html)\n\n[Content Enricher](DataEnricher.html)\n\n[Content Filter](ContentFilter.html)\n\n[Claim Check](StoreInLibrary.html)\n\n[Normalizer](Normalizer.html)\n\n[Canonical Data Model](CanonicalDataModel.html)\n\n[Messaging Endpoints](MessagingEndpointsIntro.html)\n\n[Message Endpoint](MessageEndpoint.html)\n\n[Messaging Gateway](MessagingGateway.html)\n\n[Messaging Mapper](MessagingMapper.html)\n\n[Transactional Client](TransactionalClient.html)\n\n[Polling Consumer](PollingConsumer.html)\n\n[Event-driven Consumer](EventDrivenConsumer.html)\n\n[Competing Consumers](CompetingConsumers.html)\n\n[Message Dispatcher](MessageDispatcher.html)\n\n[Selective Consumer](MessageSelector.html)\n\n[Durable Subscriber](DurableSubscription.html)\n\n[Idempotent Receiver](IdempotentReceiver.html)\n\n[Service Activator](MessagingAdapter.html)\n\n[Messaging Channels](MessagingChannelsIntro.html)\n\n[Message Channel](MessageChannel.html)\n\n[Point-to-Point Channel](PointToPointChannel.html)\n\n[Publish-Subscr. Channel](PublishSubscribeChannel.html)\n\n[Datatype Channel](DatatypeChannel.html)\n\n[Invalid Message Channel](InvalidMessageChannel.html)\n\n[Dead Letter Channel](DeadLetterChannel.html)\n\n[Guaranteed Delivery](GuaranteedMessaging.html)\n\n[Channel Adapter](ChannelAdapter.html)\n\n[Messaging Bridge](MessagingBridge.html)\n\n[Message Bus](MessageBus.html)\n\n[Systems Mgmt.](SystemManagementIntro.html)\n\n[Control Bus](ControlBus.html)\n\n[Detour](Detour.html)\n\n[Wire Tap](WireTap.html)\n\n[Message History](MessageHistory.html)\n\n[Message Store](MessageStore.html)\n\n[Smart Proxy](SmartProxy.html)\n\n[Test Message](TestMessage.html)\n\n[Channel Purger](ChannelPurger.html)", "znaku_textu": 7697, "slov": 766, "odkazu": 114, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/BroadcastAggregate.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 06:03:47", "sha256": "ed4e25c160ba5c6c908b79de8011ba8f69c26c40ccd92f7612903029b7db78e6", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://docs.mulesoft.com/mule-runtime/4.3/scatter-gather-concept", "https://docs.microsoft.com/en-us/azure/azure-functions/durable/durable-functions-overview?tabs=csharp", "http://creativecommons.org/licenses/by/4.0/", "https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "https://www.architectelevator.com/book", "https://www.cloudstrategybook.com/", "https://www.platformstrategybook.info/"]} {"url": "https://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?", "klicova_slova": "Canonical Data Model,integration, messaging, events, patterns, event-driven, coupling, eai, middleware, application integration, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns", "og:title": "Canonical Data Model - Enterprise Integration Patterns", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/CanonicalDataModel.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/CanonicalDataModel.gif"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Integration Pattern Language"}], "markdown": "| | Canonical Data Model[Messaging Patterns](index.html) » [Message Transformation](MessageTransformationIntro.html) | [Contents](toc.html)[⇐ Prev](Normalizer.html)[Next ⇒](ComposedMessagingExample.html) |\n| --- | --- | --- |\n\nI am designing several applications to work together through [*Messaging*](Messaging.html). Each application has its own internal data format.\n\nHow can you minimize dependencies when integrating applications that use different data formats?\n\nTherefore, design a *Canonical Data Model* that is independent from any specific application. Require each application to produce and consume messages in this common format.\n\nThe *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.\n\nThe 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*.\n\n...\nRead the entire pattern in the book [Enterprise Integration Patterns](/books1.html)\n\n**Related patterns:**\n\n[*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)\n\n---\n\n## Integration Pattern Language\n\n[Message Construct.](MessageConstructionIntro.html)\n\n[Message](Message.html)\n\n[Command Message](CommandMessage.html)\n\n[Document Message](DocumentMessage.html)\n\n[Event Message](EventMessage.html)\n\n[Request-Reply](RequestReply.html)\n\n[Return Address](ReturnAddress.html)\n\n[Correlation Identifier](CorrelationIdentifier.html)\n\n[Message Sequence](MessageSequence.html)\n\n[Message Expiration](MessageExpiration.html)\n\n[Format Indicator](FormatIndicator.html)\n\n[Message Routing](MessageRoutingIntro.html)\n\n[Pipes-and-Filters](PipesAndFilters.html)\n\n[Message Router](MessageRouter.html)\n\n[Content-based Router](ContentBasedRouter.html)\n\n[Message Filter](Filter.html)\n\n[Dynamic Router](DynamicRouter.html)\n\n[Recipient List](RecipientList.html)\n\n[Splitter](Sequencer.html)\n\n[Aggregator](Aggregator.html)\n\n[Resequencer](Resequencer.html)\n\n[Composed Msg. Processor](DistributionAggregate.html)\n\n[Scatter-Gather](BroadcastAggregate.html)\n\n[Routing Slip](RoutingTable.html)\n\n[Process Manager](ProcessManager.html)\n\n[Message Broker](MessageBroker.html)\n\n[Message\nTransformation](MessageTransformationIntro.html)\n\n[Message Translator](MessageTranslator.html)\n\n[Envelope Wrapper](EnvelopeWrapper.html)\n\n[Content Enricher](DataEnricher.html)\n\n[Content Filter](ContentFilter.html)\n\n[Claim Check](StoreInLibrary.html)\n\n[Normalizer](Normalizer.html)\n\n[Canonical Data Model](CanonicalDataModel.html)\n\n[Messaging Endpoints](MessagingEndpointsIntro.html)\n\n[Message Endpoint](MessageEndpoint.html)\n\n[Messaging Gateway](MessagingGateway.html)\n\n[Messaging Mapper](MessagingMapper.html)\n\n[Transactional Client](TransactionalClient.html)\n\n[Polling Consumer](PollingConsumer.html)\n\n[Event-driven Consumer](EventDrivenConsumer.html)\n\n[Competing Consumers](CompetingConsumers.html)\n\n[Message Dispatcher](MessageDispatcher.html)\n\n[Selective Consumer](MessageSelector.html)\n\n[Durable Subscriber](DurableSubscription.html)\n\n[Idempotent Receiver](IdempotentReceiver.html)\n\n[Service Activator](MessagingAdapter.html)\n\n[Messaging Channels](MessagingChannelsIntro.html)\n\n[Message Channel](MessageChannel.html)\n\n[Point-to-Point Channel](PointToPointChannel.html)\n\n[Publish-Subscr. Channel](PublishSubscribeChannel.html)\n\n[Datatype Channel](DatatypeChannel.html)\n\n[Invalid Message Channel](InvalidMessageChannel.html)\n\n[Dead Letter Channel](DeadLetterChannel.html)\n\n[Guaranteed Delivery](GuaranteedMessaging.html)\n\n[Channel Adapter](ChannelAdapter.html)\n\n[Messaging Bridge](MessagingBridge.html)\n\n[Message Bus](MessageBus.html)\n\n[Systems Mgmt.](SystemManagementIntro.html)\n\n[Control Bus](ControlBus.html)\n\n[Detour](Detour.html)\n\n[Wire Tap](WireTap.html)\n\n[Message History](MessageHistory.html)\n\n[Message Store](MessageStore.html)\n\n[Smart Proxy](SmartProxy.html)\n\n[Test Message](TestMessage.html)\n\n[Channel Purger](ChannelPurger.html)", "znaku_textu": 5089, "slov": 428, "odkazu": 108, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/CanonicalDataModel.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 06:03:58", "sha256": "02992f61d7529d80300b901e152622f0e876669b52f49d035dba00745a2405f8", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://creativecommons.org/licenses/by/4.0/", "https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "https://www.architectelevator.com/book", "https://www.cloudstrategybook.com/", "https://www.platformstrategybook.info/"]} {"url": "https://www.enterpriseintegrationpatterns.com/ChannelAdapter.html", "titulek": "Channel Adapter - Enterprise Integration Patterns", "h1": "", "popis": "How can you connect an application to the messaging system so that it can send and receive messages?", "klicova_slova": "Channel Adapter,integration, messaging, events, patterns, event-driven, coupling, eai, middleware, application integration, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns", "og:title": "Channel Adapter - Enterprise Integration Patterns", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/ChannelAdapter.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/ChannelAdapterSolution.gif"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Integration Pattern Language"}], "markdown": "Messaging Patterns\n\n[Messaging Patterns](index.html)\n\n- [Integration Styles](IntegrationStylesIntro.html)\n- [Messaging Systems](MessagingComponentsIntro.html)\n- [Messaging Channels](MessagingChannelsIntro.html)\n- [Message Construction](MessageConstructionIntro.html)\n- [Interlude: Simple Messaging](SimpleMessagingIntro.html)\n- [Message Routing](MessageRoutingIntro.html)\n- [Message Transformation](MessageTransformationIntro.html)\n- [Interlude: Composed Messaging](ComposedMessagingExample.html)\n- [Messaging Endpoints](MessagingEndpointsIntro.html)\n- [System Management](SystemManagementIntro.html)\n- Interlude: Systems Management Example\n- Integration Patterns in Practice\n- Concluding Remarks\n- Appendices\n\n| | Channel Adapter[Messaging Patterns](index.html) » [Messaging Channels](MessagingChannelsIntro.html) | [Contents](toc.html)[⇐ Prev](GuaranteedMessaging.html)[Next ⇒](MessagingBridge.html) |\n| --- | --- | --- |\n\nMany enterprises use [*Messaging*](Messaging.html) to integrate multiple, disparate applications.\n\nHow can you connect an application to the messaging system so that it can send and receive messages?\n\nUse a *Channel Adapter* that can access the application's API or data and publish messages on a channel based on this data, and that likewise can receive messages and invoke functionality inside the application.\n\nThe adapter acts as a messaging client to the messaging system and invokes applications functions via an application-supplied interface. This way, any application can connect to the messaging system and be integrated with other applications as long as it has a proper *Channel Adapter*.\n\nThe *Channel Adapter* can connect to different layers of the application's architecture, depending on that architecture and the data the messaging system needs to access.\n\n*A Channel Adapter Connecting to Different Layers of an Application*\n\n...\nRead the entire pattern in the book [Enterprise Integration Patterns](/books1.html)\n\n**Related patterns:**\n\n[*Canonical Data Model*](CanonicalDataModel.html), [*Message Channel*](MessageChannel.html), [*Introduction to Message Transformation*](MessageTransformationIntro.html), [*Message Translator*](MessageTranslator.html), [*Messaging*](Messaging.html), [*Messaging Bridge*](MessagingBridge.html), [*Transactional Client*](TransactionalClient.html)\n\n---\n\n## Integration Pattern Language\n\n[Message Construct.](MessageConstructionIntro.html)\n\n[Message](Message.html)\n\n[Command Message](CommandMessage.html)\n\n[Document Message](DocumentMessage.html)\n\n[Event Message](EventMessage.html)\n\n[Request-Reply](RequestReply.html)\n\n[Return Address](ReturnAddress.html)\n\n[Correlation Identifier](CorrelationIdentifier.html)\n\n[Message Sequence](MessageSequence.html)\n\n[Message Expiration](MessageExpiration.html)\n\n[Format Indicator](FormatIndicator.html)\n\n[Message Routing](MessageRoutingIntro.html)\n\n[Pipes-and-Filters](PipesAndFilters.html)\n\n[Message Router](MessageRouter.html)\n\n[Content-based Router](ContentBasedRouter.html)\n\n[Message Filter](Filter.html)\n\n[Dynamic Router](DynamicRouter.html)\n\n[Recipient List](RecipientList.html)\n\n[Splitter](Sequencer.html)\n\n[Aggregator](Aggregator.html)\n\n[Resequencer](Resequencer.html)\n\n[Composed Msg. Processor](DistributionAggregate.html)\n\n[Scatter-Gather](BroadcastAggregate.html)\n\n[Routing Slip](RoutingTable.html)\n\n[Process Manager](ProcessManager.html)\n\n[Message Broker](MessageBroker.html)\n\n[Message\nTransformation](MessageTransformationIntro.html)\n\n[Message Translator](MessageTranslator.html)\n\n[Envelope Wrapper](EnvelopeWrapper.html)\n\n[Content Enricher](DataEnricher.html)\n\n[Content Filter](ContentFilter.html)\n\n[Claim Check](StoreInLibrary.html)\n\n[Normalizer](Normalizer.html)\n\n[Canonical Data Model](CanonicalDataModel.html)\n\n[Messaging Endpoints](MessagingEndpointsIntro.html)\n\n[Message Endpoint](MessageEndpoint.html)\n\n[Messaging Gateway](MessagingGateway.html)\n\n[Messaging Mapper](MessagingMapper.html)\n\n[Transactional Client](TransactionalClient.html)\n\n[Polling Consumer](PollingConsumer.html)\n\n[Event-driven Consumer](EventDrivenConsumer.html)\n\n[Competing Consumers](CompetingConsumers.html)\n\n[Message Dispatcher](MessageDispatcher.html)\n\n[Selective Consumer](MessageSelector.html)\n\n[Durable Subscriber](DurableSubscription.html)\n\n[Idempotent Receiver](IdempotentReceiver.html)\n\n[Service Activator](MessagingAdapter.html)\n\n[Messaging Channels](MessagingChannelsIntro.html)\n\n[Message Channel](MessageChannel.html)\n\n[Point-to-Point Channel](PointToPointChannel.html)\n\n[Publish-Subscr. Channel](PublishSubscribeChannel.html)\n\n[Datatype Channel](DatatypeChannel.html)\n\n[Invalid Message Channel](InvalidMessageChannel.html)\n\n[Dead Letter Channel](DeadLetterChannel.html)\n\n[Guaranteed Delivery](GuaranteedMessaging.html)\n\n[Channel Adapter](ChannelAdapter.html)\n\n[Messaging Bridge](MessagingBridge.html)\n\n[Message Bus](MessageBus.html)\n\n[Systems Mgmt.](SystemManagementIntro.html)\n\n[Control Bus](ControlBus.html)\n\n[Detour](Detour.html)\n\n[Wire Tap](WireTap.html)\n\n[Message History](MessageHistory.html)\n\n[Message Store](MessageStore.html)\n\n[Smart Proxy](SmartProxy.html)\n\n[Test Message](TestMessage.html)\n\n[Channel Purger](ChannelPurger.html)\n\n- » [Read the latest in My Blog](/ramblings)\n- » [Get more insights from My Articles](/articles.html)\n- » [See me live in my Upcoming Talks](/talks)\n\nYou can reuse the following elements under the [Creative Commons Attribution](http://creativecommons.org/licenses/by/4.0/) license: pattern icon, pattern name, problem and solution statements (in bold), and the sketch. Other portions are protected by copyright.\n\n[Enterprise Integration Patterns](https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20)\nThe de-facto language for designing asynchronous, distributed systems. Over 100,000 copies sold.\n\n[The Software Architect Elevator](https://www.architectelevator.com/book)\n\n Rethink the role of architects as a connecting element across organizational layers. Acquire the technical, communication, and organizational skills to succeed in this new role.\n\n[Cloud Strategy](https://www.cloudstrategybook.com)\n\n Make your cloud migration a success by translating high-level goals into conscious decisions with well-understood trade-offs.\n\n[Platform Strategy](https://www.platformstrategybook.info)\n\n Platforms can boost innovation through harmonization, but they aren't easy to build. Learn from over a decade of designing and rolling out IT platforms.", "znaku_textu": 6275, "slov": 520, "odkazu": 108, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/ChannelAdapter.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 06:52:53", "sha256": "f40687cadb1e37a5dea09e841cc54f2e1fe927366258bd2d0a9cee33e7990ace", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://creativecommons.org/licenses/by/4.0/", "https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "https://www.architectelevator.com/book", "https://www.cloudstrategybook.com/", "https://www.platformstrategybook.info/"]} {"url": "https://www.enterpriseintegrationpatterns.com/ChannelPurger.html", "titulek": "Channel Purger - Enterprise Integration Patterns", "h1": "", "popis": "How can you keep 'left-over' messages on a channel from disturbing tests or running systems?", "klicova_slova": "Channel Purger,integration, messaging, events, patterns, event-driven, coupling, eai, middleware, application integration, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns", "og:title": "Channel Purger - Enterprise Integration Patterns", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/ChannelPurger.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/ChannelPurger.gif"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Example: Channel Purger in Amazon SQSNEW"}, {"uroven": 2, "text": "Integration Pattern Language"}], "markdown": "| | Channel Purger[Messaging Patterns](index.html) » [System Management](SystemManagementIntro.html) | [Contents](toc.html)[⇐ Prev](TestMessage.html)[Next ⇒](SystemManagementExample.html) |\n| --- | --- | --- |\n\nWhen Bobby and I worked on the simple [*JMS Request/Reply Example*](RequestReplyJmsExample.html), we ran into a simple, but interesting problem. The example consists of a Requestor which sends a message to a Replier and waits for the response. The example uses two [*Point-to-Point Channel*](PointToPointChannel.html)s, RequestQueue and ReplyQueue (see picture).\n\nWe had plastered println statements all over the code so we can see what is going on. We started the Replier first, then the Requestor. Then a very odd thing happened. The Requestor console window claimed to have gotten a response before the Replier ever acknowledged receiving a request. A delay in the console output? Lacking any great ideas, we decided to shut the Replier down and re-ran the Requestor. Odd enough, we still received a response to our request! Magic? No, just a side effect of persistent messaging. A superfluous message was present on the ReplyQueue. When we started the Requestor it placed a new message on the RequestQueue and then immediately retrieved the extraneous reply message that was sitting on the ReplyQueue. We never noticed that this was not the reply to the request the Requestor just made! Once the Replier received the request message, it placed a new reply message on the ReplyQueue so that the 'magic' repeated during the next test. It can be amazing (or amazingly frustrating) how persistent, asynchronous messaging can play tricks on you in even the most simple scenarios!\n\nHow can you keep 'left-over' messages on a channel from disturbing tests or running systems?\n\nUse a *Channel Purger* to remove unwanted messages from a channel.\n\nA simple *Channel Purger* simply remove all the messages from a channel. This may be sufficient for test scenarios where we want to reset the system into a consistent state. If we are debugging a production system we may need to remove individual message or a set of messages based on specific criteria, such as the message ID or the values of specific message fields.\n\n...\nRead the entire pattern in the book [Enterprise Integration Patterns](/books1.html)\n\n## Example: Channel Purger in Amazon SQS[NEW](/ramblings/eip1_examples_updated.html)\n\nMany hosted messaging systems have a built-in function to purge channels. For example, with Amazon's [Simple Queuing Service (SQS)](https://aws.amazon.com/sqs), you can purge a queue simply from the web user interface:\n\n*Purging a queue in Amazon SQS*\n\n**Related patterns:**\n\n[*Correlation Identifier*](CorrelationIdentifier.html), [*Invalid Message Channel*](InvalidMessageChannel.html), [*Message Channel*](MessageChannel.html), [*Message Store*](MessageStore.html), [*Point-to-Point Channel*](PointToPointChannel.html), [*JMS Request/Reply Example*](RequestReplyJmsExample.html)\n\n---\n\n## Integration Pattern Language\n\n[Message Construct.](MessageConstructionIntro.html)\n\n[Message](Message.html)\n\n[Command Message](CommandMessage.html)\n\n[Document Message](DocumentMessage.html)\n\n[Event Message](EventMessage.html)\n\n[Request-Reply](RequestReply.html)\n\n[Return Address](ReturnAddress.html)\n\n[Correlation Identifier](CorrelationIdentifier.html)\n\n[Message Sequence](MessageSequence.html)\n\n[Message Expiration](MessageExpiration.html)\n\n[Format Indicator](FormatIndicator.html)\n\n[Message Routing](MessageRoutingIntro.html)\n\n[Pipes-and-Filters](PipesAndFilters.html)\n\n[Message Router](MessageRouter.html)\n\n[Content-based Router](ContentBasedRouter.html)\n\n[Message Filter](Filter.html)\n\n[Dynamic Router](DynamicRouter.html)\n\n[Recipient List](RecipientList.html)\n\n[Splitter](Sequencer.html)\n\n[Aggregator](Aggregator.html)\n\n[Resequencer](Resequencer.html)\n\n[Composed Msg. Processor](DistributionAggregate.html)\n\n[Scatter-Gather](BroadcastAggregate.html)\n\n[Routing Slip](RoutingTable.html)\n\n[Process Manager](ProcessManager.html)\n\n[Message Broker](MessageBroker.html)\n\n[Message\nTransformation](MessageTransformationIntro.html)\n\n[Message Translator](MessageTranslator.html)\n\n[Envelope Wrapper](EnvelopeWrapper.html)\n\n[Content Enricher](DataEnricher.html)\n\n[Content Filter](ContentFilter.html)\n\n[Claim Check](StoreInLibrary.html)\n\n[Normalizer](Normalizer.html)\n\n[Canonical Data Model](CanonicalDataModel.html)\n\n[Messaging Endpoints](MessagingEndpointsIntro.html)\n\n[Message Endpoint](MessageEndpoint.html)\n\n[Messaging Gateway](MessagingGateway.html)\n\n[Messaging Mapper](MessagingMapper.html)\n\n[Transactional Client](TransactionalClient.html)\n\n[Polling Consumer](PollingConsumer.html)\n\n[Event-driven Consumer](EventDrivenConsumer.html)\n\n[Competing Consumers](CompetingConsumers.html)\n\n[Message Dispatcher](MessageDispatcher.html)\n\n[Selective Consumer](MessageSelector.html)\n\n[Durable Subscriber](DurableSubscription.html)\n\n[Idempotent Receiver](IdempotentReceiver.html)\n\n[Service Activator](MessagingAdapter.html)\n\n[Messaging Channels](MessagingChannelsIntro.html)\n\n[Message Channel](MessageChannel.html)\n\n[Point-to-Point Channel](PointToPointChannel.html)\n\n[Publish-Subscr. Channel](PublishSubscribeChannel.html)\n\n[Datatype Channel](DatatypeChannel.html)\n\n[Invalid Message Channel](InvalidMessageChannel.html)\n\n[Dead Letter Channel](DeadLetterChannel.html)\n\n[Guaranteed Delivery](GuaranteedMessaging.html)\n\n[Channel Adapter](ChannelAdapter.html)\n\n[Messaging Bridge](MessagingBridge.html)\n\n[Message Bus](MessageBus.html)\n\n[Systems Mgmt.](SystemManagementIntro.html)\n\n[Control Bus](ControlBus.html)\n\n[Detour](Detour.html)\n\n[Wire Tap](WireTap.html)\n\n[Message History](MessageHistory.html)\n\n[Message Store](MessageStore.html)\n\n[Smart Proxy](SmartProxy.html)\n\n[Test Message](TestMessage.html)\n\n[Channel Purger](ChannelPurger.html)", "znaku_textu": 5694, "slov": 568, "odkazu": 110, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/ChannelPurger.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 06:53:04", "sha256": "d8f42e8a137828b3f8d9f1665478c3a8b32361cf1d058807f3154041cd256cdc", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://aws.amazon.com/sqs", "http://creativecommons.org/licenses/by/4.0/", "https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "https://www.architectelevator.com/book", "https://www.cloudstrategybook.com/", "https://www.platformstrategybook.info/"]} {"url": "https://www.enterpriseintegrationpatterns.com/Chapter1.html", "titulek": "Solving Integration Problems using Patterns - Enterprise Integration Patterns", "h1": "", "popis": "This chapter illustrates how the patterns in this book can be used to solve a variety of integration problems. In order to do so, we examine common integration scenarios and present a comprehensive integration example. As we design the solution to this example, we will express the solution using the patterns contained in this book. At the end of this chapter you will be familiar with about two dozen integration patterns.", "klicova_slova": "Solving Integration Problems using Patterns,integration, messaging, events, patterns, event-driven, coupling, eai, middleware, application integration, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns", "og:title": "Solving Integration Problems using Patterns - Enterprise Integration Patterns", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/Chapter1.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/eip1_patterns_wide.png"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "The Need for Integration"}, {"uroven": 2, "text": "Integration Challenges"}, {"uroven": 2, "text": "How Integration Patterns Can Help"}, {"uroven": 2, "text": "The Wide World of Integration"}, {"uroven": 2, "text": "Loose Coupling"}, {"uroven": 2, "text": "1 Minute EAI"}, {"uroven": 2, "text": "A Loosely Coupled Integration Solution"}, {"uroven": 2, "text": "Widget-Gadget Corp -- An Example"}, {"uroven": 2, "text": "Summary"}, {"uroven": 2, "text": "Integration Pattern Language"}], "markdown": "| | Solving Integration Problems using Patterns[Messaging Patterns](index.html) | [Contents](toc.html)[⇐ Prev](Introduction.html)[Next ⇒](IntegrationStylesIntro.html) |\n| --- | --- | --- |\n\nThis chapter illustrates how the patterns in this book can be used to solve a variety of integration problems. In order to do so, we examine common integration scenarios and present a comprehensive integration example. As we design the solution to this example, we will express the solution using the patterns contained in this book. At the end of this chapter you will be familiar with about two dozen integration patterns.\n\n## The Need for Integration\n\nEnterprises are typically comprised of hundreds if not thousands of applications that are custom-built, acquired from a third-party, part of a legacy system, or a combination thereof, operating in multiple tiers of different operating system platforms. It is not uncommon to find an enterprise that has 30 different Websites, three instances of SAP and countless departmental solutions.\n\nWe may be tempted to ask: How do businesses allow themselves to get into such a mess? Shouldn’t any CIO of such an enterprise spaghetti architecture be fired? Well, like in most cases things happen for a reason.\n\nFirst of all, writing business applications is hard. Creating a single, big application to run a complete business is next to impossible. The ERP vendors have had some success at creating larger-than-ever business applications. The reality, though, is that even the heavyweights like SAP, Oracle, Peoplesoft and the like only perform a fraction of the business functions required in a typical enterprise. We can see this easily by the fact that ERP systems are one of the most popular integration points in today’s enterprises.\n\nSecond, spreading business functions across multiple applications provides the business with the flexibility to select the “best” accounting package, the “best” customer relationship management or the order processing system that best suits the business’ needs. One-stop-shopping for enterprise applications is usually not what IT organizations are interested in, nor is possible given the number individual business requirements.\n\nVendors have learned to cater to this preference and offer focused applications around a specific core function. However, the ever-present urge to add new functionality to existing software packages has caused some functionality spillover amongst packaged business applications. For example, many billing systems started to incorporate customer care and accounting functionality. Likewise, the customer care software maker takes a stab at implementing simple billing functions such as disputes or adjustments. Defining a clear functional separation between systems is hard: is a customer disputing a bill considered a customer care or a billing function?\n\nUsers such as customers, business partners and internal users do generally not think about system boundaries when they interact with a business. They execute business functions, regardless of the how many internal systems the business function cuts across. For example, a customer may call to change his or her address and see whether the last payment was received. In many enterprises, this simple request can span across the customer care and billing systems. Likewise, a customer placing a new order may require the coordination of many systems. The business needs to validate the customer ID, verify the customer’s good standing, check inventory, fulfill the order, get a shipping quote, compute sales tax, send a bill, etc. This process can easily span across five or six different systems. From the customer’s perspective, it is a single business transaction.\n\nIn order to support common business processes and data sharing across applications, these applications need to be integrated. Application integration needs to provide efficient, reliable and secure data exchange between multiple enterprise applications.\n\n## Integration Challenges\n\nUnfortunately, enterprise integration is no easy task. By definition, enterprise integration has to deal with multiple applications running on multiple platforms in different locations, making the term ‘simple integration’ pretty much an oxymoron. Software vendors offer EAI suites that provide cross-platform, cross-language integration as well as the ability to interface with many popular packaged business applications. However, this technical infrastructure presents only a small portion of the integration complexities. The true challenges of integration span far across business and technical issues.\n\n- Enterprise integration requires a significant shift in corporate politics. Business applications generally focus on a specific functional area, such as Customer Relationship Management (CRM), Billing, Finance, etc. This seems to be an extension of Conway's famous law that postulates that \"Organizations which design systems are constrained to produce designs which are copies of the communication structures of these organizations.\" As a result, many IT groups are organized in alignment with these functional areas. Successful enterprise integration does not only need to establish communication between multiple computer systems but also between business units and IT departments -- in an integrated enterprise application groups no longer control a specific application because each application is now part of an overall flow of integrated applications and services.\n- Because of their wide scope, integration efforts typically have far-reaching implications on the business. Once the processing of the most critical business functions is incorporated into an integration solution, the proper functioning of that solution becomes vital to the business. A failing or misbehaving integration solution can cost a business millions of Dollars in lost orders, misrouted payments and disgruntled customers.\n- One important constraint of developing integration solutions is the limited amount of control the integration developers typically have over the participating applications. In most cases, the applications are “legacy” systems or packaged applications that cannot be changed just to be connected to an integration solution. This often leaves the integration developers in a situation where they have to make up for deficiencies or idiosyncrasies inside the applications or differences between the applications. Often it would be easier to implement part of the solution inside the application “endpoints”, but for political or technical reasons that option may not be available.\n- Despite the wide-spread need for integration solutions, only few standards have established themselves in this domain. The advent of XML, XSL and Web services certainly mark the most significant advance of standards-based features in an integration solution. However, the hype around Web services has also given grounds to new fragmentation of the marketplace, resulting in a flurry of new “extensions” and “interpretations” of the standards. This should remind us that the lack of interoperability between “standards-compliant” products was one of the major stumbling blocks for CORBA, which offered a sophisticated technical solution for system integration.\n- Also, existing XML Web Services standards address only a fraction of the integration challenges. For example, the frequent claim that XML is the ‘Lingua franca” of system integration is somewhat misleading. Standardizing all data exchange to XML can be likened to writing all documents using a common alphabet, such as the Roman alphabet. Even though the alphabet is common, it is still being used to represent many languages and dialects, which cannot be readily understood by all readers. The same is true in enterprise integration. The existence of a common presentation (e.g. XML) does not imply common semantics. The notion of “account” can have many different semantics, connotations, constraints and assumptions in each participating system. Resolving semantic differences between systems proves to be a particularly difficult and time-consuming task because it involves significant business and technical decisions.\n- While developing an EAI solution is challenging in itself, operating and maintaining such a solution can be even more daunting. The mix of technologies and the distributed nature of EAI solutions make deployment, monitoring, and trouble-shooting complex tasks that require a combination of skill sets. In many cases, these skill sets do not exist within IT operations or are spread across many different individuals.\n\nAnyone who has been through an EAI deployment can attest to the fact that EAI solutions are a critical component of today’s enterprise strategies, but make IT life harder, not easier. It’s a long way between the high-level vision of the integrated enterprise (defined by terms such as “Straight-Through-Processing”, “T+1”, “Agile Enterprise”) and the nuts-and-bolts implementations (what parameters did System.Messaging.XmlMessageFormatter take again?).\n\n## How Integration Patterns Can Help\n\nThere are no simple answers for enterprise integration. In our opinion, anyone who claims that integration is easy must be either incredibly smart (or at least a good bit smarter than the rest of us), incredibly ignorant (OK, let’s say optimistic), or they have a financial interest in making you believe that integration is easy.\n\nEven though integration is a broad and difficult topic, we can always observer some people who are much better at it than others. What do these people know that others don’t? Since there is no such thing as “Teach Yourself Integration in 21 Days” (this book sure ain't!) it is unlikely that these people know all the answers to integration. However, these people have usually solved enough integration problems that they can compare new problems to prior problems they have solved. They know the “patterns” of problems and associated solutions. They learned these patterns over time by trial-and-error or from other experienced integration architects.\n\nThe “patterns” are not copy-paste code samples or shrink-wrap components, but rather nuggets of advice that describe solutions to frequently recurring problems. Used properly, the integration patterns can help fill the wide gap between the high-level vision of integration and the actual system implementation.\n\n## The Wide World of Integration\n\nWe intentionally left the definition of “integration” very broad. To us it means connecting computer systems, companies or people. While this broad definition gives us the convenience of sticking whatever we find interesting into this book, it is helpful to have a closer look at some of the most common integration scenarios. Helping clients design and implement integration solutions, we repeatedly came across the following six types of integration projects:\n\n- Information Portals\n- Data Replication\n- Shared Business Functions\n- Service-Oriented Architectures\n- Distributed Business Processes\n- Business-to-Business Integration\n\nThis list is by no means a complete taxonomy of all things integration but it does help to illustrate the kind of solutions that integration architects build. Many integration projects consist of a combination of multiple types of integration. For example, reference data replication is often required in order to tie applications into a single distributed business process.\n\n**Information Portal**\n\nMany business users have to access more than one system to answer a specific question or to perform a single business function. For example, to verify the status of an order, a customer service representative may have to access the order management system on the mainframe plus log on to the system that manages orders placed over the Web. Information portals aggregate information from multiple sources into a single display to avoid having the user access multiple systems for information. Simple information portals divide the screen into multiple zones, each of which displays information from a different system. More sophisticated systems provide limited interaction between zones, for example when a user selects an item from a list in zone A, zone B refreshes with detailed information about the selected item. Other portals provide even more sophisticated user interaction and blur the line between a portal and an integrated application.\n\n**Data Replication**\n\nMany business systems require access to the same data. For example, a customer’s address may be used in the customer care system (when the customer calls to change it), the accounting system (to compute sales tax), the shipping system (to label the shipment) and the billing system (to send an invoice). Many of these systems are going to have their own data stores to store customer related information. When a customer calls to change his or her address all these systems need to change their copy of the customer’s address. This can be accomplished by implementing an integration strategy based on data replication.\n\nThere are many different ways to implement data replication. For example, some database vendors build replication functions into the database, we can export data into files and re-import them into the other system, or we can use message-oriented middleware to transport data records inside messages.\n\n**Shared Business Function**\n\nIn the same way that many business applications store redundant data, they also tend to implement redundant functionality. Multiple systems may need to check whether a social-security number is valid, whether the address matches the specified postal code or whether a particular item is in stock. It makes business sense to expose these functions as a shared business function that is implemented once and available as a service to other systems.\n\nA shared business function can address some of the same needs as data replication. For example, we could implement a business function called ‘Get Customer Address’ that could allow other systems to request the customer’s address when it is needed rather than always storing a redundant copy. The decision between these two approaches is driven by a number of criteria, such as the amount of control we have over the systems (calling a shared function is usually more intrusive than loading data into the database) or the rate of change (an address may be needed frequently but change very infrequently).\n\n**Service-Oriented Architecture**\n\nShared business functions are often referred to as services. A service is a well-defined function that is universally available and responds to requests from “service consumers”. Once an enterprise assembles a collection of useful services, managing the services becomes an important function. First of all, applications need some form of service directory, a centralized list of all available services. Second, each service needs to describe its interface in such a way that an application can “negotiate” a communications contract with the service. These two functions, service discovery and negotiation, are the key elements that make up a service-oriented architecture.\n\nService-oriented architectures (SOAs) blur the line between integration and distributed applications. A new application can be developed using existing, remote services that may be provided by other applications. Therefore, calling a service may be considered integration between the two applications. On the other hand a service-oriented architecture usually provides tools that make calling an external service almost as simple as calling a local method (performance considerations aside). Because all services are available in a consistent manner, SOAs are sometimes referred to as “service bus architectures”.\n\n**Distributed Business Process**\n\nOne of the key drivers of integration is the fact that a single business transaction is often spread across many different systems. A previous example showed us that a simple business function such as “place order” can easily touch six or seven systems. In most cases, all relevant functions are incorporated inside existing applications. What is missing is the coordination between the applications. Therefore, we can add a business process management component that manages the execution of a business function across multiple existing systems.\n\nThe boundaries between a service-oriented architecture and a distributed business can blur. For example, you could expose all relevant business functions as service and then encode the business process inside an application that accesses all services via an SOA.\n\n**Business-to-Business Integration**\n\nSo far we have mainly considered the interaction between applications and business functions inside an enterprise. In many cases, business functions may be available from outside suppliers or business partners. For example, the shipping company may provide a service for customers to compute shipping cost or track shipments. Or a business may use an outside provider to compute sales tax rates. Likewise, integration frequently occurs between business partners. A customer may contact a retailer to inquire on the price and the availability of an item. In response, the retailer may ask the supplier for the status of an expected shipment that contains the out-of-stock item.\n\nMany of the above considerations apply equally to business-to-business integration. However, communicating across the Internet or some other network usually raises new issues related to transport protocols and security. Also, since many business partners may collaborate in an electronic “conversation” standardized data formats are critically important.\n\n## Loose Coupling\n\nOne of the biggest buzz words in enterprise architecture and integration is the notion of loose coupling. It is in fact such a popular term that Doug Kaye wrote a whole book titled after this ubiquitous concept [[Kaye](http://www.amazon.com/exec/obidos/ASIN/1881378241/enterpriseint-20)]. The benefits of loose coupling have been know for quite some time now, but they have taken center stage more recently due to the surging popularity of Web services architectures.\n\nThe core principle behind loose coupling is to reduce the assumptions two parties (components, applications, services, programs, users) make about each other when they exchange information. The more assumptions two parties make about each other and the common protocol, the more efficient the communication can be, but the less tolerant the solution is of interruptions or changes because the parties are tightly coupled to each other.\n\nA great example of tight coupling is a local method invocation. Invoking a local method inside an application is based on a lot of assumptions between the called and the calling routine. Both methods have to run in the same process (e.g. a virtual machine) and be written in the same language (or at least use a common intermediate language or byte code). The calling method has to pass the exact number of expected parameters, each using the correct type. The call is immediate, i.e. the called method starts processing immediately after the calling method makes the call. Meanwhile, the calling method will only resume processing when the called method completes (meaning the invocation is synchronous). Processing will automatically resume in the calling method with the next statement after the method call. The communication between the methods is immediate and instantaneous, so neither the caller nor the called method have to worry about security in the form of eavesdropping 3rd parties. All these assumptions make it very easy to write well structured applications that break functionality into individual methods to be called by other methods. A large number of small method allow for flexibility and reuse.\n\nMany integration approaches have aimed to make remote communications simple by packaging a remote data exchange into the same semantics as a local method call. This strategy resulted in the notion of a Remote Procedure Call (RPC) or Remote Method Invocation (RMI), supported by many popular frameworks and platforms: CORBA (see[[Zahavi](http://www.amazon.com/exec/obidos/ASIN/0471327204/enterpriseint-20)]), Microsoft DCOM, .NET Remoting, or Java RMI, and most recently, RPC-style Web services. The intended upside of this approach is twofold. First, synchronous method-call semantics are very familiar to application developers, so why not build on what we already know. Second, using the same syntax and semantics for both local method calls and remote invocations would allow us to defer the decision about what components should run locally and which ones run remotely until deployment time, leaving the application developer with one less thing to worry about.\n\nThe challenge that all these approaches face lies in the fact that remote communication invalidates many of the assumptions that a local method call is based on. As a result, abstracting the remote communication into the simple semantics of a method call can be confusing and misleading. Waldo et al. reminded us back in 1994 that \"objects that interact in a distributed system need to be dealt with in ways that are intrinsically different from objects that interact in a single address space\" [[Waldo](http://citeseer.nj.nec.com/waldo94note.html)]. For example, if we call a remote service to perform a function for us, do we really want to restrict ourselves to only those services that were built using the same programming language as we do? A call across the network also tends to be multiple orders of magnitude slower than a local call. Should the calling method really wait until the called method completes? What if the network is interrupted and the called method is temporarily unreachable? How long should we wait? How can we be sure we communicate with the intended party and not a 3rd party “spoofer”? How can we protect against eavesdropping? What if the method signature (the list of expected parameters) of the called method changes? If the remote method is maintained by a third party or a business partner we no longer have control over such changes. Should we have our method invocation fail or should we attempt to find the best possible mapping between the parameters and still make the call? It becomes quickly apparent that remote integration brings up a lot of issues that a local method call never had to deal with.\n\nIn summary, trying to portray remote communication as a variant of a local method invocation is asking for trouble. Such architectures typically result in brittle, hard to maintain and poorly scalable solutions. Many Web services pioneers recently (re-)discovered this fact the hard way.\n\n## 1 Minute EAI\n\nTo show the effects of tightly coupled dependencies and how to resolve them, let’s look at different options of connecting two systems. Let’s assume we are building an on-line banking system that allows customers to deposit money into their account from another bank. To perform this function, the front-end Web application has to be integrated with the back-end financial system that manages fund transfers.\n\nThe easiest way to connect the two systems is through the TCP/IP protocol. Every self-respecting operating system or programming library created in the last 15 years is certain to include a TCP/IP stack. TCP/IP is the ubiquitous communications protocol that transports data between the millions of computers connected to the Internet and local networks. Why not use the most ubiquitous of all network protocols to communicate between two applications?\n\nLet’s assume that the remote function that deposits money into a person’s account takes only the person’s name and the Dollar amount as arguments. The following few lines of code then suffice to call such a function over TCP/IP (we chose C#, but this code would look virtually identical in C or Java).\n\n```\nString hostName = \"www.eaipatterns.com\";\nint port = 80;\n\nIPHostEntry hostInfo = Dns.GetHostByName(hostName);\nIPAddress address = hostInfo.AddressList[0];\n\nIPEndPoint endpoint = new IPEndPoint(address, port);\n\nSocket socket = new Socket(address.AddressFamily, SocketType.Stream, ProtocolType.Tcp);\nsocket.Connect(endpoint);\n\nbyte[] amount = BitConverter.GetBytes(1000);\nbyte[] name = Encoding.ASCII.GetBytes(\"Joe\");\n\nint bytesSent = socket.Send(amount);\nbytesSent += socket.Send(name);\n\nsocket.Close();\n```\n\nThis code opens a socket connection to the address www.eaipatterns.com and sends two data items (the amount and the customer’s name) across the network. No expensive middleware is required, no EAI tools, RPC toolkits, just 10 lines of code. When we run this code it tells us: “7 bytes sent”. Voila! How can integration be so difficult?\n\nThere are a couple of major problems with this integration attempt. One of the strengths of the TCP/IP protocol is its wide support so that we can connect to pretty much any computer connected to the network regardless of the operating system or programming language it uses. However, the platform independence works only for very simple messages: byte streams. In order to convert our data into a byte stream we used the BitConverter class. This class converts any data type into a byte array, using the internal memory representation of the data type. The catch is that the internal representation of an integer number varies with computer systems. For example, .NET uses a 32 bit integer while other systems may use a 64 bit representation. Our example transfers 4 bytes across the network to represent a 32 bit integer number. A system using 64 bits would be inclined to read 8 bytes off the network and would end up interpreting the whole message (including the customer name) as a single number.\n\nAlso, some computer systems store their numbers in big-endian format while others store them in little-endian format. A big-endian format stores numbers starting with the highest byte first while little-endian systems store the lowest byte first. PCs operate on a little-endian scheme so that the code passes the following 4 bytes across the network:\n\n```\n232 3 0 0\n```\n\n232 + 3 * 2^8 equals 1000. A system that uses big-endian numbers would consider this message to mean 232* 2^24 + 3 * 2^16 = 3,892,510,720. Joe will be a very rich man! So this approach works only under the assumption that all connected computers represent numbers in the same internal format.\n\nThe second problem with this simple approach is that we specify the location of the remote machine (in our case www.eaipatterns.com). The Dynamic Naming Service (DNS) gives us one level of indirection between the domain name and the IP address, but what if we want to move the function to a different computer on a different domain? What if the machine fails and we have to setup another machine? What if we want to send the information to more than one machine? For each scenario we would have to change the code. If we use a lot of remote functions this could become very tedious. So we should find a way to make our communication independent from a specific machine on the network.\n\nOur simple TCP/IP example also establishes temporal dependencies between the two machines. TCP/IP is a *connection-oriented* protocol. Before any data can be transferred, a connection has to be established first. Establishing a TCP connection involves IP packets traveling back and forth between sender and receiver. This requires that both machines and the network are all available at the same time. If any of the three pieces is malfunctioning or not available due to high load, the data cannot be sent.\n\nLastly, the simple communication also relies on a very strict data format. We are sending 4 bytes of amount data and then a sequence of characters that define the customer’s account. If we want to insert a third parameter, e.g. the name of the currency, we would have to modify both sender and receiver to use the new data format.\n\n*Tightly Coupled Interaction*\n\nIn summary, our minimalist integration solution is fast and cheap, but it results in a very brittle solution because the two participating parties make the following assumptions about each other:\n\n- Platform Technology – internal representations of numbers and objects\n- Location – hard-coded machine addresses\n- Time – all components have to be available at the same time\n- Data Format – the list of parameters and their types must match\n\nAs we stated in the beginning, coupling is a measure of how many assumptions parties make about each other when they communicate. Our simple solution requires the parties to make a lot of assumptions. Therefore, this solution is tightly coupled.\n\nIn order to make the solution more loosely coupled we can try to remove these dependencies one by one. We should use a standard data format that is self-describing and platform independent, such as XML. Instead of sending information directly to a specific machine we should send it to an addressable “channel”. A channel is a logical address that both sender and receiver can agree on the same channel without being aware of each other’s identity. Using channels resolves the location-dependency, but still requires all components to be available at the same time if the channel is implemented using a connection-oriented protocol.. In order to remove this temporal dependency we can enhance the channel to queue up sent requests until the network and the receiving system are ready. To support queuing of requests inside the channel, we need wrap data into self-contained messages so that the channel knows how much data to buffer and deliver at any one time. Lastly, the two systems still depend on a common data format. We can remove this dependency by allowing for data format transformations inside the channel. If the format of one system changes we only have to change the transformer and not the other participating systems. This is particularly useful if many applications send data to the same channel.\n\n*Loosely Coupled Interaction*\n\nMechanisms such as a common data format, queuing channels, and transformers help turn a tightly coupled solution into a loosely coupled solution. The sender no longer has to depend on the receiver's internal data format not its location. It does not even have to pay attention to whether the other computer is ready to accept requests or not. Removing these dependencies between the systems makes the overall solution more tolerant to change, the key benefit of loose coupling. The main drawback of the loosely coupled approach is the additional complexity. This is no longer a 10-lines-of-code solution! Therefore, we use a message-oriented middleware infrastructure that provides these services for us. This infrastructure makes exchanging data in a loosely coupled way almost as easy as the example we started with. The next section describes the components that make up such a middleware solution.\n\nIs loose coupling the panacea? Like everything else in enterprise architecture, there is no single best answer. Loose coupling provides important benefits such as flexibility and scalability, but it introduces a more complex programming model and can make designing, building and debugging solutions more difficult.\n\n## A Loosely Coupled Integration Solution\n\nIn order to connect two systems via an integration solution, a number of things have to happen. These things make up what we call middleware – the things that sit between applications.\n\nInvariably, some data has to be transported from one application to the next. This data could be an address record that needs to be replicated, a call to a remote service or a snippet of HTML headed for a portal display. Regardless of the payload, this piece of data needs to be understood by both ends and needs to be transported, usually across a network. Two elements provide this basic function. We need a communications *channel* that can move information from one application to the other. This channel could be a series of TCP/IP connections, a shared file, a shared database or a floppy disk being carried from one computer to the next (the infamous ‘sneakernet’). Inside this channel we place a message – a snippet of data that has an agreed-upon meaning to both applications that are to be integrated. This piece of data can be very small, such as the phone number of a single customer that has changed, or very large, such as the complete list of all customers and their associated addresses. We call this piece of data a *message*.\n\n*Basic Elements of an Integration Solution*\n\nNow that we can send messages across channels we can establish a very basic form of integration. However, we promised that simple integration is an oxymoron, so let’s see what is missing. We mentioned before that integration solutions often have limited control over the applications they are integrating, such as the internal data formats used by the applications. For example, one data format may store the customer name in two fields, called FIRST_NAME and LAST_NAME, while the other system may use a single field called Customer_Name. Likewise, one system may support multiple customer addresses while the other system only supports a single address. Because the internal data format of an application can often not be changed the middleware needs to provide some mechanism to convert one application’s data format in the other’s. We call this step *translation*.\n\nSo far we can send data from one system to another and accommodate differences in data formats. What happens if we integrate more than two systems? Where does the data have to be moved? We could expect each application to specify the target system(s) for the data it is sending over the channel. For example, if the customer address changes in the customer care system we could make that system responsible for sending the data to all other systems that store copies of the customer address. As the number of systems increases this becomes very tedious and requires the sending system to have knowledge about all other systems. Every time a new system is added, the customer care system would have to be adjusted to the new environment. Things would be a lot easier of the middleware could take care of sending messages to the correct places. This is the role of a *routing* component such as a message broker.\n\nIntegration solutions can quickly become complex because they deal with multiple applications, data formats, channels, routing and transformation. All these elements may be spread across multiple operating platforms and geographic locations. In order to have any idea what is going on inside the system we need a *systems management* function. This subsystem monitors the flow of data, makes sure that all applications and components are available and reports error conditions to a central location.\n\nOur integration solution is now almost complete. We can move data from one system from another, accommodate differences in the data format, route the data to the required systems and monitor the performance of the solution. So far we assumed that an application sends data as a message to the channel. However, most packaged and legacy applications and many custom applications are not prepared to participate in an integration solution. We need a message *endpoint* to connect the system explicitly to the integration solution. The endpoint can be a special piece of code or a [*Channel Adapter*](ChannelAdapter.html) provided by an integration software vendor.\n\n## Widget-Gadget Corp -- An Example\n\nThe best way to understand message-based integration solutions is by walking through a concrete example. Let’s consider Widgets & Gadgets ‘R Us (WGRUS), an on-line retailer that buys widgets and gadgets from manufacturers and resells them to customers.\n\n*WGRUS Ecosystem*\n\nFor this example, we assume that the solution needs to support the following requirements. Naturally, we simplified the requirements a bit for sake of brevity, but nevertheless these types of requirements occur frequently in real businesses.\n\n- **Take Orders** : Customers can place orders via Web, phone or fax\n- **Process Orders** : Processing an order involves multiple steps, including verifying inventory, shipping the goods and invoicing the customer\n- **Check Status** : Customers can check the order status\n- **Change Address** : Customers can use a Web front-end to change their billing and shipping address\n- **New Catalog** : The suppliers update their catalog periodically. WGRUS needs to update its pricing and availability based in the new catalogs.\n- **Announcements** : Customers can subscribe to selective announcements from WGRUS.\n- **Testing and Monitoring** : The operations staff needs to be able to monitor all individual components and the message flow between them.\n\nWe will tackle each of these requirements separately and describe the solution alternatives and trade-offs using the pattern language introduced in this book.\n\n**Internal Systems**\n\nLike in most integration scenarios, WGRUS is not a so-called “green field” implementation, but rather the integration of an existing IT infrastructure comprised of a variety of packaged and custom applications. The fact that we have to work with existing applications often makes integration work challenging. In our example WGRUS runs the following systems (see picture).\n\n*WGRUS IT Infrastructure*\n\nWGRUS has four different channels to interact with customers. Customers can visit the company Web site, call the customer service representative at the call center or submit orders via fax. Customers can also receive notifications via e-mail.\n\nWGRUS’ internal systems are comprised of the accounting system, which also includes billing functions, the shipping system that computes shipping charges and interacts with the shipping companies. For historic reasons, WGRUS has two inventory and catalog systems. WGRUS used to sell only widgets but acquired another retailer that sells gadgets. WGRUS decided it will be less expensive to operate parallel systems than trying to rewrite both systems into a single system.\n\n**Taking Orders**\n\nThe first function we want to implement is taking orders. Taking orders is a good thing because they bring revenue. However, placing orders is currently a tedious manual process so that the cost incurred with each order is high. In fact, on orders below $20 WGRUS hardly makes any money because any potential profit is eaten up by labor cost processing the order.\n\nThe first step to streamlining order processing is to unify taking orders. A customer can place orders over one of three channels: Web site, call center or fax. Unfortunately, each system is based on a different technology and stores incoming orders in a different data format. The call center system is a packaged application while the Web site is a custom J2EE application. The inbound fax system requires manual data entry into a small Microsoft Access application. We want to treat all orders equally, regardless of their source. For example, a customer should be able to place an order via the call center and check the order status on the Web site.\n\nBecause placing an order is an asynchronous process that connects many systems, we decide to implement a message-oriented middleware solution to streamline the order entry process. Because the packaged call center application was not developed with integration in mind, we connect it to the messaging system using a [*Channel Adapter*](ChannelAdapter.html). A [*Channel Adapter*](ChannelAdapter.html) is a component that can attach to an application and publish messages to a [*Message Channel*](MessageChannel.html) whenever an event occurs inside the application. With some [*Channel Adapter*](ChannelAdapter.html)s, the application may not even be aware of the presence of the adapter. For example, a database adapter may add triggers to specific tables so that every time the application inserts a row of data a message is sent to the [*Message Channel*](MessageChannel.html). [*Channel Adapter*](ChannelAdapter.html)s can also work in the opposite direction, consuming messages off a [*Message Channel*](MessageChannel.html) and triggering an action inside the application in response.\n\nWe use the same approach for the inbound fax application, connecting the [*Channel Adapter*](ChannelAdapter.html) to the application database. Because the Web application is custom-built we implement the Endpoint code inside the application. We use a Messaging Gateway to isolate the application code from the messaging-specific code.\n\n*Taking Orders From Three Difrerent Channels*\n\nBecause each system uses a different data format for the incoming orders we use three [*Message Translator*](MessageTranslator.html)s to convert the different data formats into a common New Order message that follows a [*Canonical Data Model*](CanonicalDataModel.html). A [*Canonical Data Model*](CanonicalDataModel.html) defines message formats that are independent from any specific application so that all applications can communicate with each other in this common format. If the internal format of an application changes, only the [*Message Translator*](MessageTranslator.html) between the affected application and the coming [*Message Channel*](MessageChannel.html) has to change while all other applications and [*Message Translator*](MessageTranslator.html)s remain unaffected. Using a [*Canonical Data Model*](CanonicalDataModel.html) means that we deal with two types of messages: canonical (public) messages and application-specific (private) messages. Application-specific messages should not be consumed by any other component except the related application and the associated [*Message Translator*](MessageTranslator.html). To reinforce this policy we name application-specific [*Message Channel*](MessageChannel.html)s starting with the name of the application, e.g. WEB_NEW_ORDER. Channels carrying canonical messages are named after the intent of the message without any prefix, e.g. NEW_ORDER.\n\nWe connect each [*Channel Adapter*](ChannelAdapter.html) to the [*Message Translator*](MessageTranslator.html) via a [*Point-to-Point Channel*](PointToPointChannel.html) because we want to be sure that each order message is consumed only once. We could get away without using a [*Message Translator*](MessageTranslator.html) for the Web Interface if we programmed the transformation logic into the Gateway. However, hand-coding transformation functions can be tedious and error prone and we prefer to use a consistent approach. The additional [*Message Translator*](MessageTranslator.html) also allows us to shield the New Order flow from minor changes in the Web Interface data format. All [*Message Translator*](MessageTranslator.html)s publish to the same NEW_ORDER [*Point-to-Point Channel*](PointToPointChannel.html) so that orders can be processed off this channel without regard to the order’s origin.\n\nThe NEW_ORDER [*Message Channel*](MessageChannel.html) is a so-called [*Datatype Channel*](DatatypeChannel.html) because it carries messages of only one type, i.e. new orders. This makes it easy for message consumers to know what type of message to expect. The New Order message itself is designed as a [*Document Message*](DocumentMessage.html). The intent of the message is not to instruct the receiver to take a specific action, but rather to pass a document to any interested recipient who is free to decide how to process document.\n\n**Processing Orders**\n\nNow that we have a consistent order message that is independent from the message source we need to process orders. In order to fulfill an order we need to complete the following steps:\n\n- Verify the customer’s credit standing. If the customer has outstanding bills, we want to reject the new order.\n- Verify inventory. We can’t fulfill orders for items that are not in stock.\n- If the customer is in good standing and we have inventory we want to shop the goods and bill the customer.\n\nWe can express this sequence of events using a UML activity diagram. Activity diagrams have relatively simple semantics and are a good tool to depict processes that include parallel activities. Subsequent activities are connected by simple arrows. Parallel activities are connected by a thick black bar representing fork and join actions. A fork action causes all connected activities to start simultaneously while the join action only continues after all incoming activities have been completed.\n\nThe activity diagram executes the “Check Inventory” task and the “Verify Customer Standing” task in parallel. The join bar waits until both activities are completed before it allows the next activity to start. The next activity verifies the results of both steps – do we have inventory and is the customer in good standing? If both conditions are fulfilled, the process goes on to fulfill the order. Otherwise, we transition to an exception handling activity. For example, we may call the customer to remind them to pay the last invoice or send an e-mail letting him or her know that the order will be delayed. Because this book focuses on the design aspects of message-oriented integration rather than workflow modeling, we leave the details of the exception handling process aside for now. For a very good discussion of workflow architecture and workflow modeling we refer you to [[Leyman](http://www.amazon.com/exec/obidos/ASIN/0130217530/enterpriseint-20)] and [[Sharp](http://www.amazon.com/exec/obidos/ASIN/1580530214/enterpriseint-20)].\n\n*Activity Diagram for Order Processing*\n\nIt turns out that the activities map relatively nicely to the systems in WGRUS’ IT department. The Accounting system verifies the customer’s credit standing, the inventory systems check the inventory and the shipping system initiates the physical shipping of goods. The accounting system also acts as the billing system and sends invoices. The order processing function is a typical implementation of a distributed business process.\n\nTo convert the logical activity diagram into an integration design, we use a [*Publish-Subscribe Channel*](PublishSubscribeChannel.html) to implement the fork action and an [*Aggregator*](Aggregator.html) to implement the join action. A [*Publish-Subscribe Channel*](PublishSubscribeChannel.html) sends a message to all active consumers while an [*Aggregator*](Aggregator.html) receives multiple incoming messages and combines them into a single outgoing message (see picture):\n\n*Order Processing Implementation using Asynchronous Messaging*\n\nThe [*Aggregator*](Aggregator.html) combines the results from both messages and passes the resulting message to a [*Content-Based Router*](ContentBasedRouter.html). A Content-Based-Router is a component that consumes a message and publishes it unmodified to a choice of other channels based on rules coded inside the router. The Content-Based-Router is equivalent to the branch in a UML activity diagram. In this case, if both the inventory check and the credit check have been affirmative, the [*Content-Based Router*](ContentBasedRouter.html) forwards the message to the VALIDATED_ORDER channel. If the customer is not in good standing or we have no inventory on hand, it forwards the message to the INVALID_ORDER process. The exception process (not shown in the picture) listens to messages on this channel and notifies the customer of the rejected order.\n\nAs we learned in the requirements section, WGRUS has two inventory systems, one for widgets and one for gadgets. As a result, we have to route the request for inventory to the correct system. Because we want to hide the peculiarities of the inventory systems from the other systems, we insert a [*Content-Based Router*](ContentBasedRouter.html) that routes the message to the correct system based on the type of item ordered (see picture). For example, all incoming messages with an item number starting with ‘W’ are routed to the widget inventory system and all orders with an item number starting with ‘G’ are routed to the gadget inventory system.\n\n*Routing the Inventory Request*\n\nNote that the intent of messages on the [*Point-to-Point Channel*](PointToPointChannel.html)s between the [*Content-Based Router*](ContentBasedRouter.html) and the inventory systems is different from the previous channel. These channels contain [*Command Message*](CommandMessage.html)s, messages that instruct the system to execute the specified command, in this case verifying the inventory of an item.\n\nBecause the widget inventory system and the gadget inventory system use different internal data formats we again insert [*Message Translator*](MessageTranslator.html)s to convert from the canonical New Order message format into a system-specific format. Using [*Message Translator*](MessageTranslator.html)s with each originating system (Web Interface, call center, inbound fax) and each target system (widget inventory and gadget inventory) allows us to decouple changes between the systems. For example, if we added another way of placing orders (e.g. ordering by e-mail), none of the other systems would be affected. The price we pay for this flexibility is the fact that we translate each message twice, once at the source and once at the destination.\n\nWhat happens if the order item starts neither with ‘W’ nor with ‘G”? The [*Content-Based Router*](ContentBasedRouter.html) routes the message to the INVALID_ORDER channel so that the invalid order can be processed accordingly, e.g. by notifying the customer. This channel is a typical example of an Invalid [*Message Channel*](MessageChannel.html). This is example highlights the fact that the meaning of a message changes depending what channel it is on. Both the NEW_ORDER channel and the INVALID_ORDER channel transport the same type of message, but in one case a new order is being processed while in the other case the order is deemed invalid.\n\nSo far, we have assumed that each order can only contain a single item. This would be pretty inconvenient for our customers because they would have to place a new order for each item. Also, we would end up shipping multiple orders to the same customer and incur unnecessary shipping costs. However, if we allow multiple items inside an order, which inventory system should verify the inventory for this order? We could use a [*Publish-Subscribe Channel*](PublishSubscribeChannel.html) to send the order to each inventory system to pick out the items that it can process. But what would then happen to invalid items? How would we notice that neither inventory system processed the item? We want to maintain the central control the [*Content-Based Router*](ContentBasedRouter.html) gives us, but we need to be able to route each order item individually.\n\nTherefore, we insert a [*Splitter*](Sequencer.html), a component that breaks a single message into multiple individual messages. In our case, the [*Splitter*](Sequencer.html) splits a single Order message into multiple Order Item message. Each Order Item message can then be routed to the correct inventory system using a [*Content-Based Router*](ContentBasedRouter.html) (see below).\n\n*Processing Order Items Individually*\n\nNaturally, when the inventory for all items has been verified, we need to recombine the messages into a single message. We already learned that the component that can combine multiple messages into a single message is the [*Aggregator*](Aggregator.html). Using both a [*Splitter*](Sequencer.html) and an [*Aggregator*](Aggregator.html), we can logically separate the message flow for order items from that for orders.\n\nWhen designing an [*Aggregator*](Aggregator.html), we have to make three key decisions:\n\n- Which messages belong together (“correlation”)?\n- How do we determine that all messages are received (the “completeness condition”)?\n- How do we combine the individual messages into one result message (the “aggregation algorithm”)?\n\nWe can’t correlate order items by the customer ID because a customer may place multiple orders in short succession. Therefore, we need a unique order ID for each order. We accomplish this by inserting a [*Content Enricher*](DataEnricher.html)into the Taking Orders solution (see picture). A [*Content Enricher*](DataEnricher.html)is a component that adds missing data items to an incoming message.\n\n*Taking Orders With Enricher*\n\nNow that we have an order ID to correlate order item messages, we need to define the completeness condition and the aggregation algorithm. Because we route all messages including invalid items to the [*Aggregator*](Aggregator.html), the [*Aggregator*](Aggregator.html) can simply use the number of items in the order (one of the fields in the order message) to count until all order items arrive. The aggregation algorithm is similarly simple. The [*Aggregator*](Aggregator.html) concatenates all item messages back into a single order message and publishes it to the VALIDATED_ORDER channel.\n\nThe combination of a [*Splitter*](Sequencer.html), a Router and an [*Aggregator*](Aggregator.html) is fairly common. We refer to it as a [*Composed Message Processor*](DistributionAggregate.html). To simplify the picture, we insert the symbol for a [*Composed Message Processor*](DistributionAggregate.html) into the original message flow diagram:\n\n*Revised Order Process Implementation*\n\n**Checking Status**\n\nDespite connecting the systems via messaging channels, fulfilling an order can take some amount of time. For example, we may be out of a certain item and the inventory system may be holding the inventory check message until new items arrive. This is one of the advantages of asynchronous messaging: the communication is designed to happen at the pace of the components. While the inventory system is “holding” the message, the accounting system can still verify the customer’s credit standing. Once both steps are completed, the [*Aggregator*](Aggregator.html) publishes the Validated Order message to initiate shipment and invoicing.\n\nA long-running business process also means that both customers and managers are likely to want to know the status of a specific order. For example, if certain items are out of inventory, the customer may decide to process just those items that are in stock. Or if the customer has not received the goods it is useful if we can tell him or her that the goods are on their way (including the shipping company’s tracking number) or that there is an internal delay in the warehouse.\n\nTracking the status of an order with the current design is not so easy. Related messages flow through multiple systems. In order to ascertain the status of the order in the sequence of steps we would have to know the “last” message related to this order. One of the advantages of a [*Publish-Subscribe Channel*](PublishSubscribeChannel.html) is that we can add additional subscribers without disturbing the flow of messages. We can use this property to listen in to new and validated orders and store them into a [*Message Store*](MessageStore.html). We could then query the [*Message Store*](MessageStore.html) database for the status (see picture):\n\n*Adding a Message Store To Track Order Status*\n\nIn situations where we use a Point-Point-Channel, we cannot simply add a subscriber to the channel because in a [*Point-to-Point Channel*](PointToPointChannel.html), each message can only be consumer by a single subscriber. However, we can insert a Wire Tap, a simple component that consumes a message off one channel and publishes it to two channels. We can then use the second channel to send messages to the [*Message Store*](MessageStore.html) (see picture).\n\n*Tracking Messages with a Wire Tap*\n\nStoring message data in a central database has another significant advantage. In the original design each message had to carry all relevant data in order to continue processing the message down the line. For example, the ‘Verify Customer Standing’ may have to pass through all sorts of customer data even though it may only require the customer ID. This additional data is necessary so that the resulting message still contains all data from the original order message. Storing the New Order message in a [*Message Store*](MessageStore.html) has the advantage that all subsequent components can refer to the [*Message Store*](MessageStore.html) for important message data without all intermediate steps having to carry the data along (we will later to this function as [*Claim Check*](StoreInLibrary.html) - messages can “check” data for later retrieval).\n\nNow the [*Message Store*](MessageStore.html) is responsible for maintaining data related to the new message as well as the progress of the message within the process. This data gives us enough information to use the [*Message Store*](MessageStore.html) to determine the next required steps in the process rather than connecting components with fixed [*Message Channel*](MessageChannel.html)s. For example, if the database contains reply messages from both the inventory systems and the billing system, we can conclude that the order has been validated and send a message to the Shipping and billing system. Instead of making this decision in a separate [*Aggregator*](Aggregator.html) component, we can do it right in the [*Message Store*](MessageStore.html). Effectively, we are turning the [*Message Store*](MessageStore.html) into a [*Process Manager*](ProcessManager.html).\n\nA [*Process Manager*](ProcessManager.html) is a central component that manages the flow of messages through the system. The [*Process Manager*](ProcessManager.html) provides two main functions:\n\n- Storing data between messages\n- Keeping track of progress and determining the next step\n\n*Processing Orders With a Process Manager*\n\nThis architecture turns the individual systems (e.g. the inventory systems) into Shared Services that can be accessed by any process. This increases reuse and allows for rapid changes and maintenance. The services themselves can still be composed out of multiple steps, wired together via a message flow (for example, using a [*Composed Message Processor*](DistributionAggregate.html) to check inventory status for each order item), or orchestrated via a [*Process Manager*](ProcessManager.html).\n\nThe [*Process Manager*](ProcessManager.html) itself uses a persistent store (typically files or a relational database) to store data associated with each process instance. In order to allow the Web Interface to query the status of an order we could send a message to the [*Process Manager*](ProcessManager.html) or the order DB. However, checking status is a synchronous process – the customer expects the response right away. Because the Web Interface is a custom application, we decide to access the Order Database directly to query the order status. This form of [*Shared Database*](SharedDataBaseIntegration.html) is the simplest and most efficient approach and we are always ensured that the Web Interface displays the most current status. The potential downside of this approach is the fact that the Web Interface is tightly coupled to the database, a trade-off that we are willing to take.\n\nThe new architecture exposes all services to a common services bus so that they can be invoked from any other component. If we add facilities to lookup (“discover”) a service from a service registry, we can turn the WGRUS IT infrastructure into a Service-Oriented Architecture. In order to participate in a Service-Oriented Architecture, each service has to provide additional functions. For example, each service has to expose an interface contract that describes the functions provided by the service. Each request-reply service also needs to support the concept of a [*Return Address*](ReturnAddress.html). A [*Return Address*](ReturnAddress.html) allows the caller (the “service consumer”) to specify the channel where the service should send the reply message. This is important to allow the service to be reused in different contexts, each of which may require its own channel for reply messages.\n\nOne difficulty in enabling these service functions is that many legacy systems were not build with features such as [*Return Address*](ReturnAddress.html) in mind. Therefore, we “wrap” access to the legacy system with a [*Smart Proxy*](SmartProxy.html). This [*Smart Proxy*](SmartProxy.html) enhances the basic system service with additional capability so that it can participate in a Service-Oriented Architecture. To do this, the [*Smart Proxy*](SmartProxy.html) intercepts both request and reply messages to and from the basic service (see picture).\n\n*Inserting a Smart Proxy to Turn a Legacy System Into a Shared Service*\n\nThe [*Smart Proxy*](SmartProxy.html) can store information from the request message (e.g. the [*Return Address*](ReturnAddress.html) specified by the requestor) and use this information to process the reply message, (e.g. route it to the correct reply channel). A [*Smart Proxy*](SmartProxy.html) is also very useful to track quality of service (e.g. response times) of an external service.\n\n**Change Address**\n\nWGRUS needs to deal with a number of addresses. For example, the invoice has to be sent to the customer’s billing address while the goods are shipped to the shipping address. We want to allow the customer to maintain all these addresses through the Web Interface to eliminate unnecessary manual steps.\n\nWe can choose between two basic approaches to get the correct billing and shipping addresses to the billing and shipping systems:\n\n- Include address data with the New Order message\n- Replicate address data to other systems\n\nThe first option has the advantage that we can use an existing integration channel to transport the additional information. A potential downside is the additional data flowing across the middleware infrastructure. We pass the address data along with every order even though the address may change much less frequently.\n\nBecause the billing and shipping systems are packaged applications they were not designed with integration in mind. As such, they are unlikely to be able to accept addresses with a new order but rather use the address that is stored in their local database. In order to enable the systems to update the address with the New Order message we need to execute two functions in the billing system (and the shipping system): first, we need to update the address, and then we need to send the bill (or ship the goods). Because the order of the two messages matters we insert a simple [*Process Manager*](ProcessManager.html) component that receives a New Order message (which includes the current shipping and billing address0 and publishes two separate messages to the billing (or shipping) system (see diagram).\n\n*Including Address Data in the New Order Message*\n\nWe update the address directly into the system database using a database [*Channel Adapter*](ChannelAdapter.html). Sending the goods or producing an invoice has to invoke the applications’ business logic. Therefore, we connect to the applications’ business tiers and invoke the correct API function when a message is received.\n\nWe need to keep in mind that the [*Channel Adapter*](ChannelAdapter.html)s require messages to be formatted in the proprietary formats used by the applications (using so-called private messages). Because the New Order message arrives in the canonical message format we need to perform a translation between the two formats. We could build the transformation into the [*Process Manager*](ProcessManager.html) but we actually prefer external [*Message Translator*](MessageTranslator.html)s so that the logic inside the [*Process Manager*](ProcessManager.html) is not affected by the possibly complicated data format required by the applications.\n\nThe second option uses data replication to propagate address changes to all affected systems independently of the New Order process. Whenever the address information changes in the Web interface we propagate the changes to all interested systems using a [*Publish-Subscribe Channel*](PublishSubscribeChannel.html). The systems store the updated address internally and use it when an order message arrives. This approach reduces message traffic (assuming customers change addresses less frequently than they place orders). It can also reduce coupling between systems. Any system that uses an address can subscribe to the ADDRESS_CHANGE channel without affecting any other systems. The potential downside is that we have to build another interface function for the billing and shipping systems to enable them to consume address change messages.\n\nBecause we are dealing with multiple types of addresses (shipping and billing addresses) we need to make sure that only the right type of address is stored in each system. We need to avoid sending an address change message to the shipping system if the address is a billing address. We accomplish this by using Message Filters that only pass messages matching certain criteria (see diagram).\n\nWe also use [*Message Translator*](MessageTranslator.html)s to translate the generic Address Change message into the specific message format used by the applications. In this case we do not use a [*Message Translator*](MessageTranslator.html) for the Web Interface because we define the [*Canonical Data Model*](CanonicalDataModel.html) as equal to the format of the Web Interface application. This could limit out flexibility if we want to introduce other ways of changing addresses in the future, but for now it is sufficient.\n\n*Propagating Address Changes via a Separate Publish-Subscribe Channel*\n\nBoth the shipping and the billing system store addresses in a relational database so that we use a database [*Channel Adapter*](ChannelAdapter.html) to update the data in each system.\n\nHow do we decide between the two options? In our situation the message traffic is not much of a concern because we only process a few hundred orders a day, so either solution would work well. The main decision driver is going to be the internal structure of the applications. We may not be able to insert the addresses directly into the database, but rather through the applications’ business layer. In this case the applications may perform additional validation steps and record the address change activity. The system may even be programmed to e-mail a confirmation message to the customer every time the address changes. This would get very annoying if the update the address with every order. Such a condition would favor propagating address changes using dedicated messages that are sent only when the customer actually changes the address.\n\nIn general we prefer well-defined, self-contained business actions such as “Change Address” and “Place Order” because they give us more flexibility in orchestrating the businesses processes. It all comes down to a question of granularity and the associated trade-offs. Fine-grained interfaces can lead to sluggish systems due to an excessive number of remote calls being made or messages being sent. For example, imagine an interface that exposes a separate method to change each address field. This approach would be efficient if the communication happens inside a single application – you only update those fields that changed. In an integration scenario sending six or seven messages to update an address would be a significant overhead plus we would have to deal with synchronizing the individual messages. Fine-grained interfaces also lead to tight coupling. If we change the address format, we have to define new message formats and change all other applications to send an additional message.\n\nCoarse grained interfaces solve these issues. We send fewer messages and are therefore more efficient and less tightly coupled. However, interfaces that are too coarse can limit our flexibility. If Send Invoice and Change Address are combined into one external function, will we never need to change an address without sending a bill? So as always the best answer is the happy medium and depends on the specific trade-offs at work in the real-life scenario.\n\n**New Catalog**\n\nIn order for customers to place orders they need to see the currently offered items and their prices on-line. WGRUS’ catalog is driven by the offerings from the respective suppliers. However, one of the services that WGRUS provides to its customers is allowing them to view widgets and gadgets on the same site and to order both types of items in a single order. This function is an example of an Information Portal scenario – we combine information from multiple sources into a single view.\n\nIt turns out that both suppliers update their product catalog once every 3 months. Therefore, it makes relatively little sense to create a real-time messaging infrastructure to propagate catalog changes from the suppliers to WGRUS. Instead, we use File Transfer integration to move catalog data from suppliers to WGRUS. The other advantage of using files is that they are easily and efficiently transported across public networks using FTP or similar protocols. In comparison, most asynchronous messaging infrastructures do not work well over the public Internet.\n\nWe still can use Translators and Adapters to transform the data to our internal catalog format. However, these Translators process a whole catalog at once instead of one item at a time. This approach is much more efficient if we are dealing with large amounts of data in the same format.\n\n*Updating Catalog Data via File Transfer*\n\n**Announcements**\n\nIn order to improve business, we want to announce specials to our customers every once in a while. In order to not annoy the customers, we allow the customer to only receive messages that are of interest to them. We also want to target specific messages to a specific subset of customers. For example, we may announce special deals only to preferred customers. When we need to send information to multiple recipients, a [*Publish-Subscribe Channel*](PublishSubscribeChannel.html) immediately comes to mind. However, a [*Publish-Subscribe Channel*](PublishSubscribeChannel.html) has some disadvantages. First, it allows any subscriber to listen to the published messages without the publisher’s knowledge. For example, we would not want smaller customers to receive special offers intended for high-volume customers. The second downside of [*Publish-Subscribe Channel*](PublishSubscribeChannel.html)s is that they work efficiently only on local networks. If we send data across wide-area networks the [*Publish-Subscribe Channel*](PublishSubscribeChannel.html) we have to send a separate copy of the message to each recipient. If a recipient is not interested in the message we would have incurred unnecessary network traffic.\n\nTherefore, we should look for a solution that allows subscribers to issue their subscription preferences and then send individual messages only to interested (and authorized) customers. In order to perform this function we use a *Dynamic Recipient List*. A *Dynamic Recipient List* is the combination of two Message Routing patterns. A [*Recipient List*](RecipientList.html) is a router that propagates a single message to a set of recipients. The main difference between the [*Recipient List*](RecipientList.html) and a [*Publish-Subscribe Channel*](PublishSubscribeChannel.html) is that the [*Recipient List*](RecipientList.html) addresses each recipient specifically and therefore has tight control over who receives messages. A [*Dynamic Router*](DynamicRouter.html) is a router whose routing algorithm can change based on control messages. These control messages can take the form of subscription preferences issued by the subscribers. Combining these two patterns results in a *Dynamic Recipient List*.\n\n*Sending Announcements With a Dynamic Recipient List*\n\nIf customers receive announcements via e-mail, the implementation of these patterns can use the mailing lists features typically supplied by e-mail systems. Each recipient channel is then identified by an e-mail address. Likewise, if customers prefer to receive announcements via a Web services interface, each recipient channel is implemented by a SOAP request and the channel address is the URI of the Web service. This example illustrates that the patterns we use to describe the solution design are independent of a specific transport technology.\n\n**Testing and Monitoring**\n\nMonitoring the correct execution of messages is a critical operations and support function. The [*Message Store*](MessageStore.html) can provide us with some important business metrics such as the average time to fulfill an order. However, we may need for more detailed information for the successful operation of an integration solution. Let’s assume we enhance our solution to access an external credit agency to better assess our customer’s credit standing. Even if we show no outstanding payments we may want to decline a customer’s order if the customer’s credit ranking is particularly poor. This is especially useful for new customers. Because the service is provided by an outside provider we are being charged for its use. To verify the provider’s invoice we want to track our actual usage and reconcile the two reports. We cannot simply go by the number of orders because the business logic may not request an external credit check for long-standing customers. Also, we have a Quality of Service (QoS) with the external provider. If the response time exceeds a specified time, we do not have to pay for the request.\n\nTo make sure we are being billed correctly we want to track the number of requests we made and the time it takes for the associated response to arrive. We have to be able to deal with two specific situations. The external service can process more than one request at a time, so we need to be able to match up request and reply messages. Second, since we treat the external service as a shared service inside our enterprise we want to allow the service consumer to specify a [*Return Address*](ReturnAddress.html), the channel where the service should send the reply message. It could be difficult to match request and reply messages if we don’t know which channel the reply message is on.\n\nOnce again the [*Smart Proxy*](SmartProxy.html) is the answer. We insert the [*Smart Proxy*](SmartProxy.html) between any service consumer and the external service. We replace the [*Return Address*](ReturnAddress.html) specified by the service consumer with a fixed reply channel. We store the original [*Return Address*](ReturnAddress.html) inside the [*Smart Proxy*](SmartProxy.html) so that it can forward the reply message to the channel specified by the consumer. The [*Smart Proxy*](SmartProxy.html) also measures the time elapsed between request and reply message from the external service. The [*Smart Proxy*](SmartProxy.html) publishes this data to the [*Control Bus*](ControlBus.html). The [*Control Bus*](ControlBus.html) is connected to a management console that collects metrics from many different components.\n\n*Inserting a Smart Proxy to Track Response Times*\n\nWe also want to make sure that the external credit service is working correctly. The [*Smart Proxy*](SmartProxy.html) can report cases where no reply message is received within a specified time-out period to the management console. Much harder to detect are cases where the external service returns a reply message but the results in the message are incorrect. For example is the external service malfunctions and returns a credit score of zero for every customer we would end up denying every order. There are two mechanisms that can help us protect against such a scenario. First, we can periodically inject a [*Test Message*](TestMessage.html) into the request stream. This [*Test Message*](TestMessage.html) requests the score for a specific person so that the result is known. We can then use a *Test Data Verifier* to not only check the fact that a reply was received but also the accuracy of the message content. Because the [*Smart Proxy*](SmartProxy.html) supports Reply Addresses the *Test Data Generator* can specify a special reply channel to separate test replies from regular replies (see picture).\n\n*Inserting Test Messages to Verify Accurate Results*\n\nAnother effective strategy to detect malfunctioning services that return messages in a valid format but with bad data is to take a statistical sample. For example, we may expect to decline an average of less than one in 10 orders due to the customer’s poor standing. If we decline more than 5 orders in a row this may be an indication that an external service or some business logic is malfunctioning. The management console could e-mail the five orders to an administrator who can then take a quick look at the data to verify whether the rejections were justified.\n\n## Summary\n\nWe have walked through a fairly extensive integration scenario using different integration strategies such as [*File Transfer*](FileTransferIntegration.html), [*Shared Database*](SharedDataBaseIntegration.html) and asynchronous [*Messaging*](Messaging.html). We routed, split and aggregated messages. We also added functions to monitor the correct operation of the solution. While the requirements for this example were admittedly simplified the issues and design trade-offs we had to consider are very real. The solution diagrams and descriptions highlight how we can describe a solution in a vendor-and technology-neutral language that is much more accurate than a high-level sequence diagram.\n\nThe integration scenario in this chapter focused primarly on how to connect existing applications. For a detailed description on how to publish and consume messages from inside a custom application see the examples in Chapter 6 and Chapter 9 (see [*Introduction to Simple Messaging Examples*](SimpleMessagingIntro.html) and [*Introduction to Composed Messaging Examples*](ComposedMessagingExample.html))\n\nThe remainder of the book contains detailed descriptions and code examples for each of the patterns that we used in our solution design. The patterns are categorized by their primary intent between base patterns, channel patterns, message patterns, routing patterns, transformation patterns, endpoint patterns and system management patterns. This arrangement makes it easy to read all patterns in sequence or look up individual patterns as a reference.\n\n## Integration Pattern Language\n\n[Message Construct.](MessageConstructionIntro.html)\n\n[Message](Message.html)\n\n[Command Message](CommandMessage.html)\n\n[Document Message](DocumentMessage.html)\n\n[Event Message](EventMessage.html)\n\n[Request-Reply](RequestReply.html)\n\n[Return Address](ReturnAddress.html)\n\n[Correlation Identifier](CorrelationIdentifier.html)\n\n[Message Sequence](MessageSequence.html)\n\n[Message Expiration](MessageExpiration.html)\n\n[Format Indicator](FormatIndicator.html)\n\n[Message Routing](MessageRoutingIntro.html)\n\n[Pipes-and-Filters](PipesAndFilters.html)\n\n[Message Router](MessageRouter.html)\n\n[Content-based Router](ContentBasedRouter.html)\n\n[Message Filter](Filter.html)\n\n[Dynamic Router](DynamicRouter.html)\n\n[Recipient List](RecipientList.html)\n\n[Splitter](Sequencer.html)\n\n[Aggregator](Aggregator.html)\n\n[Resequencer](Resequencer.html)\n\n[Composed Msg. Processor](DistributionAggregate.html)\n\n[Scatter-Gather](BroadcastAggregate.html)\n\n[Routing Slip](RoutingTable.html)\n\n[Process Manager](ProcessManager.html)\n\n[Message Broker](MessageBroker.html)\n\n[Message\nTransformation](MessageTransformationIntro.html)\n\n[Message Translator](MessageTranslator.html)\n\n[Envelope Wrapper](EnvelopeWrapper.html)\n\n[Content Enricher](DataEnricher.html)\n\n[Content Filter](ContentFilter.html)\n\n[Claim Check](StoreInLibrary.html)\n\n[Normalizer](Normalizer.html)\n\n[Canonical Data Model](CanonicalDataModel.html)\n\n[Messaging Endpoints](MessagingEndpointsIntro.html)\n\n[Message Endpoint](MessageEndpoint.html)\n\n[Messaging Gateway](MessagingGateway.html)\n\n[Messaging Mapper](MessagingMapper.html)\n\n[Transactional Client](TransactionalClient.html)\n\n[Polling Consumer](PollingConsumer.html)\n\n[Event-driven Consumer](EventDrivenConsumer.html)\n\n[Competing Consumers](CompetingConsumers.html)\n\n[Message Dispatcher](MessageDispatcher.html)\n\n[Selective Consumer](MessageSelector.html)\n\n[Durable Subscriber](DurableSubscription.html)\n\n[Idempotent Receiver](IdempotentReceiver.html)\n\n[Service Activator](MessagingAdapter.html)\n\n[Messaging Channels](MessagingChannelsIntro.html)\n\n[Message Channel](MessageChannel.html)\n\n[Point-to-Point Channel](PointToPointChannel.html)\n\n[Publish-Subscr. Channel](PublishSubscribeChannel.html)\n\n[Datatype Channel](DatatypeChannel.html)\n\n[Invalid Message Channel](InvalidMessageChannel.html)\n\n[Dead Letter Channel](DeadLetterChannel.html)\n\n[Guaranteed Delivery](GuaranteedMessaging.html)\n\n[Channel Adapter](ChannelAdapter.html)\n\n[Messaging Bridge](MessagingBridge.html)\n\n[Message Bus](MessageBus.html)\n\n[Systems Mgmt.](SystemManagementIntro.html)\n\n[Control Bus](ControlBus.html)\n\n[Detour](Detour.html)\n\n[Wire Tap](WireTap.html)\n\n[Message History](MessageHistory.html)\n\n[Message Store](MessageStore.html)\n\n[Smart Proxy](SmartProxy.html)\n\n[Test Message](TestMessage.html)\n\n[Channel Purger](ChannelPurger.html)", "znaku_textu": 80799, "slov": 12307, "odkazu": 112, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/patterns/messaging/Chapter1.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 14:50:54", "sha256": "0d44128b54c6346240be872f77d6c4e3c76e11f6d7ac1b245aeee37a4ff9006f", "hloubka": 3, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://www.amazon.com/exec/obidos/ASIN/1881378241/enterpriseint-20", "http://www.amazon.com/exec/obidos/ASIN/0471327204/enterpriseint-20", "http://citeseer.nj.nec.com/waldo94note.html", "http://www.amazon.com/exec/obidos/ASIN/0130217530/enterpriseint-20", "http://www.amazon.com/exec/obidos/ASIN/1580530214/enterpriseint-20", "https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "https://www.architectelevator.com/book", "https://www.cloudstrategybook.com/", "https://www.platformstrategybook.info/"]} {"url": "https://www.enterpriseintegrationpatterns.com/CommandMessage.html", "titulek": "Command Message - Enterprise Integration Patterns", "h1": "", "popis": "How can messaging be used to invoke a procedure in another application?", "klicova_slova": "Command Message,integration, messaging, events, patterns, event-driven, coupling, eai, middleware, application integration, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns", "og:title": "Command Message - Enterprise Integration Patterns", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/CommandMessage.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/CommandMessageSolution.gif"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Integration Pattern Language"}], "markdown": "Messaging Patterns\n\n[Messaging Patterns](index.html)\n\n- [Integration Styles](IntegrationStylesIntro.html)\n- [Messaging Systems](MessagingComponentsIntro.html)\n- [Messaging Channels](MessagingChannelsIntro.html)\n- [Message Construction](MessageConstructionIntro.html)\n- [Interlude: Simple Messaging](SimpleMessagingIntro.html)\n- [Message Routing](MessageRoutingIntro.html)\n- [Message Transformation](MessageTransformationIntro.html)\n- [Interlude: Composed Messaging](ComposedMessagingExample.html)\n- [Messaging Endpoints](MessagingEndpointsIntro.html)\n- [System Management](SystemManagementIntro.html)\n- Interlude: Systems Management Example\n- Integration Patterns in Practice\n- Concluding Remarks\n- Appendices\n\n| | Command Message[Messaging Patterns](index.html) » [Message Construction](MessageConstructionIntro.html) | [Contents](toc.html)[⇐ Prev](MessageConstructionIntro.html)[Next ⇒](DocumentMessage.html) |\n| --- | --- | --- |\n\nAn application needs to invoke functionality provided by other applications. It would typically use [*Remote Procedure Invocation*](EncapsulatedSynchronousIntegration.html), but would like to take advantage of the benefits of using [*Messaging*](Messaging.html).\n\nHow can messaging be used to invoke a procedure in another application?\n\nUse a *Command Message* to reliably invoke a procedure in another application.\n\nThere is no specific message type for commands; a *Command Message* is simply a regular message that happens to contain a command. In JMS, the command message could be any type of message; examples include an ObjectMessage containing a Serializable command object, a TextMessage containing the command in XML form, etc. In .NET, a command message is a Message with a command stored in it. A Simple Object Access Protocol (SOAP) request is a command message.\n\n...\nRead the entire pattern in the book [Enterprise Integration Patterns](/books1.html)\n\n**Related patterns:**\n\n[*Remote Procedure Invocation*](EncapsulatedSynchronousIntegration.html), [*Message*](Message.html), [*Message Channel*](MessageChannel.html), [*Messaging*](Messaging.html), [*Point-to-Point Channel*](PointToPointChannel.html)\n\n---\n\n## Integration Pattern Language\n\n[Message Construct.](MessageConstructionIntro.html)\n\n[Message](Message.html)\n\n[Command Message](CommandMessage.html)\n\n[Document Message](DocumentMessage.html)\n\n[Event Message](EventMessage.html)\n\n[Request-Reply](RequestReply.html)\n\n[Return Address](ReturnAddress.html)\n\n[Correlation Identifier](CorrelationIdentifier.html)\n\n[Message Sequence](MessageSequence.html)\n\n[Message Expiration](MessageExpiration.html)\n\n[Format Indicator](FormatIndicator.html)\n\n[Message Routing](MessageRoutingIntro.html)\n\n[Pipes-and-Filters](PipesAndFilters.html)\n\n[Message Router](MessageRouter.html)\n\n[Content-based Router](ContentBasedRouter.html)\n\n[Message Filter](Filter.html)\n\n[Dynamic Router](DynamicRouter.html)\n\n[Recipient List](RecipientList.html)\n\n[Splitter](Sequencer.html)\n\n[Aggregator](Aggregator.html)\n\n[Resequencer](Resequencer.html)\n\n[Composed Msg. Processor](DistributionAggregate.html)\n\n[Scatter-Gather](BroadcastAggregate.html)\n\n[Routing Slip](RoutingTable.html)\n\n[Process Manager](ProcessManager.html)\n\n[Message Broker](MessageBroker.html)\n\n[Message\nTransformation](MessageTransformationIntro.html)\n\n[Message Translator](MessageTranslator.html)\n\n[Envelope Wrapper](EnvelopeWrapper.html)\n\n[Content Enricher](DataEnricher.html)\n\n[Content Filter](ContentFilter.html)\n\n[Claim Check](StoreInLibrary.html)\n\n[Normalizer](Normalizer.html)\n\n[Canonical Data Model](CanonicalDataModel.html)\n\n[Messaging Endpoints](MessagingEndpointsIntro.html)\n\n[Message Endpoint](MessageEndpoint.html)\n\n[Messaging Gateway](MessagingGateway.html)\n\n[Messaging Mapper](MessagingMapper.html)\n\n[Transactional Client](TransactionalClient.html)\n\n[Polling Consumer](PollingConsumer.html)\n\n[Event-driven Consumer](EventDrivenConsumer.html)\n\n[Competing Consumers](CompetingConsumers.html)\n\n[Message Dispatcher](MessageDispatcher.html)\n\n[Selective Consumer](MessageSelector.html)\n\n[Durable Subscriber](DurableSubscription.html)\n\n[Idempotent Receiver](IdempotentReceiver.html)\n\n[Service Activator](MessagingAdapter.html)\n\n[Messaging Channels](MessagingChannelsIntro.html)\n\n[Message Channel](MessageChannel.html)\n\n[Point-to-Point Channel](PointToPointChannel.html)\n\n[Publish-Subscr. Channel](PublishSubscribeChannel.html)\n\n[Datatype Channel](DatatypeChannel.html)\n\n[Invalid Message Channel](InvalidMessageChannel.html)\n\n[Dead Letter Channel](DeadLetterChannel.html)\n\n[Guaranteed Delivery](GuaranteedMessaging.html)\n\n[Channel Adapter](ChannelAdapter.html)\n\n[Messaging Bridge](MessagingBridge.html)\n\n[Message Bus](MessageBus.html)\n\n[Systems Mgmt.](SystemManagementIntro.html)\n\n[Control Bus](ControlBus.html)\n\n[Detour](Detour.html)\n\n[Wire Tap](WireTap.html)\n\n[Message History](MessageHistory.html)\n\n[Message Store](MessageStore.html)\n\n[Smart Proxy](SmartProxy.html)\n\n[Test Message](TestMessage.html)\n\n[Channel Purger](ChannelPurger.html)\n\n- » [Read the latest in My Blog](/ramblings)\n- » [Get more insights from My Articles](/articles.html)\n- » [See me live in my Upcoming Talks](/talks)\n\nYou can reuse the following elements under the [Creative Commons Attribution](http://creativecommons.org/licenses/by/4.0/) license: pattern icon, pattern name, problem and solution statements (in bold), and the sketch. Other portions are protected by copyright.\n\n[Enterprise Integration Patterns](https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20)\nThe de-facto language for designing asynchronous, distributed systems. Over 100,000 copies sold.\n\n[The Software Architect Elevator](https://www.architectelevator.com/book)\n\n Rethink the role of architects as a connecting element across organizational layers. Acquire the technical, communication, and organizational skills to succeed in this new role.\n\n[Cloud Strategy](https://www.cloudstrategybook.com)\n\n Make your cloud migration a success by translating high-level goals into conscious decisions with well-understood trade-offs.\n\n[Platform Strategy](https://www.platformstrategybook.info)\n\n Platforms can boost innovation through harmonization, but they aren't easy to build. Learn from over a decade of designing and rolling out IT platforms.", "znaku_textu": 6102, "slov": 500, "odkazu": 108, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/CommandMessage.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 06:03:28", "sha256": "53bdbb89e16b007c7336df050ed4744bf812f662c16c591bd2a827adb236c23f", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://creativecommons.org/licenses/by/4.0/", "https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "https://www.architectelevator.com/book", "https://www.cloudstrategybook.com/", "https://www.platformstrategybook.info/"]} {"url": "https://www.enterpriseintegrationpatterns.com/CompetingConsumers.html", "titulek": "Competing Consumers - Enterprise Integration Patterns", "h1": "", "popis": "How can a messaging client process multiple messages concurrently?", "klicova_slova": "Competing Consumers,integration, messaging, events, patterns, event-driven, coupling, eai, middleware, application integration, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns", "og:title": "Competing Consumers - Enterprise Integration Patterns", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/CompetingConsumers.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/CompetingConsumers.gif"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Example: Apache KafkaNEW"}, {"uroven": 2, "text": "Integration Pattern Language"}], "markdown": "| | Competing Consumers[Messaging Patterns](index.html) » [Messaging Endpoints](MessagingEndpointsIntro.html) | [Contents](toc.html)[⇐ Prev](EventDrivenConsumer.html)[Next ⇒](MessageDispatcher.html) |\n| --- | --- | --- |\n\nAn application is using [*Messaging*](Messaging.html). However, it cannot process messages as fast as they’re being added to the channel.\n\nHow can a messaging client process multiple messages concurrently?\n\nCreate multiple *Competing Consumers* on a single channel so that the consumers can process multiple messages concurrently.\n\n*Competing Consumers* are multiple consumers that are all created to receive messages from a single [*Point-to-Point Channel*](PointToPointChannel.html). When the channel delivers a message, any of the consumers could potentially receive it. The messaging system's implementation determines which consumer actually receives the message, but in effect the consumers compete with each other to be the receiver. Once a consumer receives a message, it can delegate to the rest of its application to help process the message. (This solution only works with [*Point-to-Point Channel*](PointToPointChannel.html)s; multiple consumers on a [*Publish-Subscribe Channel*](PublishSubscribeChannel.html) just create more copies of each message.)\n\n*Competing Consumers Sequence*\n\n...\nRead the entire pattern in the book [Enterprise Integration Patterns](/books1.html)\n\n## Example: Apache Kafka[NEW](/ramblings/eip1_examples_updated.html)\n\n[Apache Kafka](http://kafka.apache.org) is a distributed streaming platform that allows clients to consume messages in both [*Publish-Subscribe Channel*](PublishSubscribeChannel.html) and *Competing Consumers* semantics. Kafka is optimized for high throughout and horizontal scalability and therefore tries to avoid the overhead that can be inherent in coordinating across multiple *Competing Consumers*. So while the client interface allows multiple consumers to consume messages off a topic in a competing fashion, guaranteeing that each message is only consumed by one of the consumers, the implementation actually relies on multiple *partitions* implemented as [*Point-to-Point Channel*](PointToPointChannel.html)s:\n\nIn the example above, a Kafka topic consists of three partitions divided across two consumers. A [*Message Router*](MessageRouter.html) distributes the messages across the three [*Point-to-Point Channel*](PointToPointChannel.html)s. This router is generally a [*Content-Based Router*](ContentBasedRouter.html) that works off the message key. This allows the sender to control the distribution of messages, e.g. to assure related messages go onto the same partition. This can be necessary to preserve order because in-order delivery is not guaranteed across partitions.\n\nThis design implies that the decision which consumer receives the message is made *a priori*, meaning consumers don't actually compete but rather read from independent channels. This limits the ability to load balance between consumers, e.g. if one channel runs empty, the corresponding consumer won't be able to aid other consumers whose channels still have messages. Also, as the number of partitions is set independently, not all consumers will service the same number of partitions, as illustrated in the example above.\n\nHowever, as Kafka partitions are relatively inexpensive, there are usually lots of them, meaning that each consumer is in reality likely to read of many partitions and therefore channels. This highlights another trade-off: there can't be more competing consumers in a *consumer group* than there are partitions on that topic.\n\n**Related patterns:**\n\n[*Content-Based Router*](ContentBasedRouter.html), [*Event-Driven Consumer*](EventDrivenConsumer.html), [*Message*](Message.html), [*Message Channel*](MessageChannel.html), [*Message Dispatcher*](MessageDispatcher.html), [*Message Router*](MessageRouter.html), [*Messaging*](Messaging.html), [*Point-to-Point Channel*](PointToPointChannel.html), [*Polling Consumer*](PollingConsumer.html), [*Publish-Subscribe Channel*](PublishSubscribeChannel.html), [*Transactional Client*](TransactionalClient.html)\n\n---\n\n## Integration Pattern Language\n\n[Message Construct.](MessageConstructionIntro.html)\n\n[Message](Message.html)\n\n[Command Message](CommandMessage.html)\n\n[Document Message](DocumentMessage.html)\n\n[Event Message](EventMessage.html)\n\n[Request-Reply](RequestReply.html)\n\n[Return Address](ReturnAddress.html)\n\n[Correlation Identifier](CorrelationIdentifier.html)\n\n[Message Sequence](MessageSequence.html)\n\n[Message Expiration](MessageExpiration.html)\n\n[Format Indicator](FormatIndicator.html)\n\n[Message Routing](MessageRoutingIntro.html)\n\n[Pipes-and-Filters](PipesAndFilters.html)\n\n[Message Router](MessageRouter.html)\n\n[Content-based Router](ContentBasedRouter.html)\n\n[Message Filter](Filter.html)\n\n[Dynamic Router](DynamicRouter.html)\n\n[Recipient List](RecipientList.html)\n\n[Splitter](Sequencer.html)\n\n[Aggregator](Aggregator.html)\n\n[Resequencer](Resequencer.html)\n\n[Composed Msg. Processor](DistributionAggregate.html)\n\n[Scatter-Gather](BroadcastAggregate.html)\n\n[Routing Slip](RoutingTable.html)\n\n[Process Manager](ProcessManager.html)\n\n[Message Broker](MessageBroker.html)\n\n[Message\nTransformation](MessageTransformationIntro.html)\n\n[Message Translator](MessageTranslator.html)\n\n[Envelope Wrapper](EnvelopeWrapper.html)\n\n[Content Enricher](DataEnricher.html)\n\n[Content Filter](ContentFilter.html)\n\n[Claim Check](StoreInLibrary.html)\n\n[Normalizer](Normalizer.html)\n\n[Canonical Data Model](CanonicalDataModel.html)\n\n[Messaging Endpoints](MessagingEndpointsIntro.html)\n\n[Message Endpoint](MessageEndpoint.html)\n\n[Messaging Gateway](MessagingGateway.html)\n\n[Messaging Mapper](MessagingMapper.html)\n\n[Transactional Client](TransactionalClient.html)\n\n[Polling Consumer](PollingConsumer.html)\n\n[Event-driven Consumer](EventDrivenConsumer.html)\n\n[Competing Consumers](CompetingConsumers.html)\n\n[Message Dispatcher](MessageDispatcher.html)\n\n[Selective Consumer](MessageSelector.html)\n\n[Durable Subscriber](DurableSubscription.html)\n\n[Idempotent Receiver](IdempotentReceiver.html)\n\n[Service Activator](MessagingAdapter.html)\n\n[Messaging Channels](MessagingChannelsIntro.html)\n\n[Message Channel](MessageChannel.html)\n\n[Point-to-Point Channel](PointToPointChannel.html)\n\n[Publish-Subscr. Channel](PublishSubscribeChannel.html)\n\n[Datatype Channel](DatatypeChannel.html)\n\n[Invalid Message Channel](InvalidMessageChannel.html)\n\n[Dead Letter Channel](DeadLetterChannel.html)\n\n[Guaranteed Delivery](GuaranteedMessaging.html)\n\n[Channel Adapter](ChannelAdapter.html)\n\n[Messaging Bridge](MessagingBridge.html)\n\n[Message Bus](MessageBus.html)\n\n[Systems Mgmt.](SystemManagementIntro.html)\n\n[Control Bus](ControlBus.html)\n\n[Detour](Detour.html)\n\n[Wire Tap](WireTap.html)\n\n[Message History](MessageHistory.html)\n\n[Message Store](MessageStore.html)\n\n[Smart Proxy](SmartProxy.html)\n\n[Test Message](TestMessage.html)\n\n[Channel Purger](ChannelPurger.html)", "znaku_textu": 6852, "slov": 682, "odkazu": 110, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/CompetingConsumers.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 06:04:06", "sha256": "4e7aeddaaaf41076903f75e647af7990dcdb940fb5c13c1da0793261f33f003d", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://kafka.apache.org/", "http://creativecommons.org/licenses/by/4.0/", "https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "https://www.architectelevator.com/book", "https://www.cloudstrategybook.com/", "https://www.platformstrategybook.info/"]} {"url": "https://www.enterpriseintegrationpatterns.com/ComposedMessagingExample.html", "titulek": "Introduction to Composed Messaging Examples - Enterprise Integration Patterns", "h1": "", "popis": "This chapter demonstrates how to compose routing and transformation patterns into a larger solution. We chose to model the process of a consumer obtaining quotes for a loan from multiple banks. We simplified the process a little bit so we can focus on a discussion of integration patterns as opposed to holding a lecture in consumer financial services. Based on the patterns that we defined we discuss and create three alternative implementations for this process, using different programming languages, technologies and messaging models.", "klicova_slova": "Introduction to Composed Messaging Examples,integration, messaging, events, patterns, event-driven, coupling, eai, middleware, application integration, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns", "og:title": "Introduction to Composed Messaging Examples - Enterprise Integration Patterns", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/ComposedMessagingExample.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/eip1_patterns_wide.png"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Overview"}, {"uroven": 2, "text": "Obtaining a Loan Quote"}, {"uroven": 2, "text": "Designing the Message Flow"}, {"uroven": 2, "text": "Sequencing: Synchronous vs. Asynchronous"}, {"uroven": 2, "text": "Addressing: Distribution vs. Auction"}, {"uroven": 2, "text": "Aggregating Strategies: Multiple Channels vs. Single Channel"}, {"uroven": 2, "text": "Managing Concurrency"}, {"uroven": 2, "text": "Three Implementations"}, {"uroven": 2, "text": "Integration Pattern Language"}], "markdown": "| | Introduction to Composed Messaging Examples[Messaging Patterns](index.html) » [Interlude: Composed Messaging](ComposedMessagingExample.html) | [Contents](toc.html)[⇐ Prev](CanonicalDataModel.html)[Next ⇒](ComposedMessagingWS.html) |\n| --- | --- | --- |\n\n## Overview\n\nThis chapter demonstrates how to compose routing and transformation patterns into a larger solution. We chose to model the process of a consumer obtaining quotes for a loan from multiple banks. We simplified the process a little bit so we can focus on a discussion of integration patterns as opposed to holding a lecture in consumer financial services. Based on the patterns that we defined we discuss and create three alternative implementations for this process, using different programming languages, technologies and messaging models.\n\n## Obtaining a Loan Quote\n\nWhen shopping for a loan, a customer usually calls several banks to find the deal with the best possible interest rate. Each bank asks the customer for his or her social security number, the amount of the loan and the desired term , i.e. the number of months until the loan has to be paid off. Each bank then investigates the customer's credit background, usually by contacting a credit agency. Based on the requested terms and the customer's credit history, the bank responds with an interest rate quote to the consumer (or declines thankfully). Once the customer has received quotes from all banks, he or she can then select the best offer, i.e. the lowest interest rate.\n\n*A Consumer Talking to Banks to Get a Loan Quote*\n\nBecause contacting multiple banks with a loan quote request is a tedious task, loan brokers offer this service to consumers. A loan broker is typically not affiliated with any one bank but has access to many lending institutions. The broker gathers the customer data once and contacts the credit agency to obtain the customer's credit history. Based on the credit score and history, the broker presents the request to a number of banks that are best suited to meet the customer’s criteria. The broker gathers the resulting quotes from the banks and selects the best offer (i.e. the lowest interest rate) to pass back to the consumer.\n\n*A Loan Broker Acting as Intermediary*\n\n## Designing the Message Flow\n\nWe want to design a loan broker system using integration patterns in the previous chapters. To do this, let's first list the individual tasks that the loan broker needs to perform.\n\n1. Receive the consumer's loan quote request\n2. Obtain credit score and history from credit agency\n3. Determine the most appropriate banks to contact\n4. Send a request to each selected bank\n5. Collect responses from each selected bank\n6. Determine the best response\n7. Pass the result back to the consumer\n\nLet's have a look to see which patterns could help us implement the loan broker. The first step describes how the broker receives the incoming request. We cover this topic in much more detail in the following chapter on endpoint patterns. So for now, let's skip over this step and assume the message is somehow received by the broker. Now, the broker has to retrieve some additional information, i.e. the customer's credit score. A [*Content Enricher*](DataEnricher.html) sounds like the ideal choice for this task. Once the broker has the complete information, the broker has to determine the appropriate banks to route the request message to. We can accomplish this with another [*Content Enricher*](DataEnricher.html) that computes the list of recipients for the request. Sending a request message to multiple recipients and re-combining the responses back into a single message is the specialty of the [*Scatter-Gather*](BroadcastAggregate.html). The [*Scatter-Gather*](BroadcastAggregate.html) can use a [*Publish-Subscribe Channel*](PublishSubscribeChannel.html) or a [*Recipient List*](RecipientList.html) to send the request to the banks. Once the banks reply with their rate quotes, the [*Scatter-Gather*](BroadcastAggregate.html) aggregates the individual rate quotes into a single quote for the consumer using an [*Aggregator*](Aggregator.html).\n\nIf we model the message flow using these patterns, we arrive at the following design:\n\n*Simple Loan Broker Design*\n\nWe have not yet accounted for the likely event that each bank may use a slightly different message format for the loan request and response. Because we want to separate the routing and aggregation logic from the banks' proprietary formats, we need to insert [*Message Translator*](MessageTranslator.html)s into the communication lines between the broker and the banks. We can use a [*Normalizer*](Normalizer.html) to translate the individual responses into a common format:\n\n*Complete Loan Broker Design*\n\n## Sequencing: Synchronous vs. Asynchronous\n\nSo far, we have described the flow of the messages and the routing and transformation patterns we can use to describe the design of the loan broker component. We have not yet discussed the timing of the broker operation. We have two primary choices:\n\n- **Synchronous (Sequential)** : The broker asks one bank for the quote and waits for a response.\n- **Asynchronous (Parallel)** : The broker sends all quote requests at once and waits for the answers to come back.\n\nWe can use UML sequence diagrams to illustrate the two options. The synchronous option implies a sequential processing of all loan requests (see picture). This solution has the advantage of being simpler to manage because we do not have to deal with any concurrency issues or threads. However, it is an inefficient solution because we do not take advantage of the fact that each bank possesses independent processing power and could be executing requests simultaneously. As a result, the consumer might have to wait a long time for an answer.\n\n*Synchronous, Sequential Processing of Loan Requests*\n\nThe asynchronous solution issues all requests right away so that each bank can start processing. As the banks finish the computation, they return the results to the loan broker. This solution allows for a much quicker response. For example, if all banks take a similar amount of time to produce a loan quote, this solution is almost *n* times faster where *n* is the number of banks we are dealing with. The loan broker now needs to be able to accept the loan quote messages in any order because there is no guarantee that responses arrive in the same order that requests were made. The following sequence diagram illustrates this option. The half arrowhead on the loan quote requests indicate asynchronous invocations.\n\n*Asynchronous, Parallel Processing of Loan Requests*\n\nAnother significant advantage of using asynchronous invocation over a message queue is the ability to create more than one instance of a service. For example, if it turns out that the credit bureau is a bottleneck, we could decide to run two instances of the credit bureau component. Because the loan broker sends the request message to a queue instead of directly to the credit bureau component it does not matter which component instance processes the message as long as the response is put back onto the response channel.\n\n## Addressing: Distribution vs. Auction\n\nUsing a [*Scatter-Gather*](BroadcastAggregate.html) to obtain the best quote allows us to choose from two addressing mechanisms, a [*Recipient List*](RecipientList.html) or a [*Publish-Subscribe Channel*](PublishSubscribeChannel.html). The decision primarily depends on how much control do we want to exert over the banks who are allowed to participate in a specific loan request? Again, we have a number of choices:\n\n- **Fixed** : The list of banks is hard-coded. Each loan request goes to the same set of banks.\n- **Distribution** : The broker maintains criteria on which banks are a good match for a specific request. For example, it would not send a quote request for a customer with a poor credit history to a bank that specializes in premier customers.\n- **Auction:** The broker broadcasts the request using a [*Publish-Subscribe Channel*](PublishSubscribeChannel.html) . Any bank that is interested is allowed to subscribe to the channel and 'bid' on the request. Banks can subscribe or unsubscribe at will. Each bank can still apply its own criteria on whether to submit a bid.\n\nWhich option is best for our scenario? As always, there is no simple \"and the answer is...\", but the choice is driven by both business and technical preferences and constraints. The first option is simple and gives the broker control over the list of banks. However, if new banks come and go frequently, the solution can result in an administrative burden. Also, the bank may not be happy to be receiving a bunch of irrelevant requests because each request incurs a certain internal cost for the bank. Also, to maintain the simplicity of this approach, the aggregation strategy is more likely to require banks to submit a response. Banks may want to reserve the right to withhold from the bid.\n\nA distribution approach (using a [*Recipient List*](RecipientList.html)) gives the broker more control over which bank to involve in each loan request. This allows the broker to be more efficient by reducing the number of requests. It also allows the broker to prefer certain banks based on the business relationship. On the downside, it requires additional business logic to be implemented and maintained inside the loan broker component. Both the distribution and the fixed approach require a separate [*Message Channel*](MessageChannel.html) for each participant in order to control the message flow.\n\nUsing a [*Publish-Subscribe Channel*](PublishSubscribeChannel.html) broadcasts a loan request to all subscribing banks and lets each bank determine which requests to service. Each bank can use a [*Message Filter*](Filter.html) or implement a [*Selective Consumer*](MessageSelector.html) to filter out undesirable loan requests. This approach renders the loan broker pretty much maintenance free in case of adding or removing banks but it requires more work on the side of the banks. This solution requires only a single [*Message Channel*](MessageChannel.html), but it has to be implemented as a [*Publish-Subscribe Channel*](PublishSubscribeChannel.html). Many efficient publish-subscribe schemes use IP Multicast that typically does not route across wide-area networks or the Internet. Other implementations emulate a [*Publish-Subscribe Channel*](PublishSubscribeChannel.html) by using an array of [*Point-to-Point Channel*](PointToPointChannel.html)s and a [*Recipient List*](RecipientList.html). This approach preserves the simple semantics of a [*Publish-Subscribe Channel*](PublishSubscribeChannel.html), but is less efficient in its use of channels and network bandwidth. For additional trade-offs between routing and pub-sub plus filtering, see the description of the [*Message Filter*](Filter.html).\n\n## Aggregating Strategies: Multiple Channels vs. Single Channel\n\nWhen receiving loan quotes from the bank we have similar design choices. We can have all banks submit their responses to a single response channel or we can have a separate response channel for each bank. Using a single channel reduces the maintenance burden of setting up a separate channel for each participating bank, but requires each bank reply message to include a field identifying the bank who issued the quote. If we use a single response channel, the [*Aggregator*](Aggregator.html) may not know how many response messages to expect unless the [*Recipient List*](RecipientList.html) passes this information to the [*Aggregator*](Aggregator.html) (we call this an Initialized Aggregator). If we use an auction-style [*Publish-Subscribe Channel*](PublishSubscribeChannel.html) the number of possible responses is unknown to the loan broker so that the [*Aggregator*](Aggregator.html) has to employ a completeness condition that does not depend on the total number of participants. For example, the [*Aggregator*](Aggregator.html) could simply wait until it has a minimum of three responses. But even that would be risky if temporarily only two banks participate. In that case, the [*Aggregator*](Aggregator.html) could time out and report that it received an insufficient number of responses.\n\n## Managing Concurrency\n\nA service such as a loan broker should be able to deal with multiple clients wanting to use the service concurrently. For example, if we expose the loan broker function as a Web service or connect it to a public Web site we do not really have any control over the number of clients and we may receive hundreds or thousands of concurrent requests. We can enable the loan broker to process multiple concurrent requests using two different strategies:\n\n- Execute multiple instances.\n- A single even-driven instance\n\nThe first option maintains multiple parallel instances of the loan broker component. We can either start a new instance for each incoming request or maintain a 'pool' of active loan broker processes and assign incoming requests to the next available process (using a [*Message Dispatcher*](MessageDispatcher.html)). If no process is available we would queue up the requests until a process becomes available. A process pool has the advantage that we can allocate system resources in a predictable way. For example, we can decide to execute a maximum of 20 loan broker instances. In contrast, if we started a new process for each request we could quickly choke the machine if a spike of concurrent requests arrives. Also, maintaining a pool of running processes allows us to 'reuse' an existing process for multiple requests, saving time for process instantiation and initialization.\n\nBecause much of the 'processing' required by the loan broker is to wait for replies from external parties (the credit bureau and the banks) running many parallel processes may not be a good use of system resources. Instead, we can run a single process instance that reacts to incoming message events as they arrive. Processing an individual message (e.g. a bank quote) is a relatively simple task so that a single process may be able to service many concurrent requests. This approach uses system resources more efficiently and simplifies management of the solution due to the fact that we only have to monitor a single process instance. The potential downside is the limited scalability because we are tied to one process. Many high-volume applications use a combination of the two techniques, executing multiple parallel processes each of which can handle multiple requests concurrently.\n\nExecuting multiple concurrent requests requires us to associate each message in the system to the correct process instance. For example, it may be most convenient for a bank to send all reply messages to a fixed channel. This means that the reply channel can contain messages related to different customers' concurrent quote requests. Therefore, we need to equip each message with a [*Correlation Identifier*](CorrelationIdentifier.html) to identify which customer request the bank is responding to.\n\n## Three Implementations\n\nIn order to implement the loan broker example, we have three main design decisions to make: we have to select a sequencing scheme for the requests , we have to select and addressing scheme for the banks and we have to define an aggregation strategy. In addition we have to select a programming language and a messaging infrastructure. In aggregate, these individual options result in a large number of potential implementation choices. We chose to implement three representative solutions to highlight the main trade-offs between the different implementation options. As with all examples in this book, the choice of specific technologies is somewhat arbitrary and does not indicate the superiority of a specific vendor's technology. The following table highlights the characteristics of each solution:\n\n| **Implementation** | **Sequencing** | **Addressing** | **Aggregation** | **Channel Type** | **Product / Technology** |\n| --- | --- | --- | --- | --- | --- |\n| A | Synchronous | Distribution | Channel | Web Service / SOAP | Java / Apache Axis |\n| B | Asynchronous | Distribution | Correlation ID | Message Queue | C# / Microsoft MSMQ |\n| C | Asynchronous | Auction | Correlation ID | Pub-Sub | TIBCO ActiveEnterprise |\n\nThe first implementation uses synchronous Web Services, implemented in Java and Apache Axis. The communication with each bank occurs over a separate HTTP channel which serves both as a request and reply channel. Therefore, the aggregation strategy is based on individual reply channels and does not require correlation. The second implementation uses an asynchronous approach with message queues. We implement it using Microsoft's MSMQ, but an implementation using JMS Queues or IBM WebSphere MQ could look very similar. The last implementation uses an Auction approach and leverages TIBCO's pub-sub infrastructure and the TIB/Integration Manager [*Process Manager*](ProcessManager.html) tool. In option B and C, all reply messages arrive on a single channel and the implementations use [*Correlation Identifier*](CorrelationIdentifier.html)s to associate reply messages to customer loan quote inquiries.\n\n## Integration Pattern Language\n\n[Message Construct.](MessageConstructionIntro.html)\n\n[Message](Message.html)\n\n[Command Message](CommandMessage.html)\n\n[Document Message](DocumentMessage.html)\n\n[Event Message](EventMessage.html)\n\n[Request-Reply](RequestReply.html)\n\n[Return Address](ReturnAddress.html)\n\n[Correlation Identifier](CorrelationIdentifier.html)\n\n[Message Sequence](MessageSequence.html)\n\n[Message Expiration](MessageExpiration.html)\n\n[Format Indicator](FormatIndicator.html)\n\n[Message Routing](MessageRoutingIntro.html)\n\n[Pipes-and-Filters](PipesAndFilters.html)\n\n[Message Router](MessageRouter.html)\n\n[Content-based Router](ContentBasedRouter.html)\n\n[Message Filter](Filter.html)\n\n[Dynamic Router](DynamicRouter.html)\n\n[Recipient List](RecipientList.html)\n\n[Splitter](Sequencer.html)\n\n[Aggregator](Aggregator.html)\n\n[Resequencer](Resequencer.html)\n\n[Composed Msg. Processor](DistributionAggregate.html)\n\n[Scatter-Gather](BroadcastAggregate.html)\n\n[Routing Slip](RoutingTable.html)\n\n[Process Manager](ProcessManager.html)\n\n[Message Broker](MessageBroker.html)\n\n[Message\nTransformation](MessageTransformationIntro.html)\n\n[Message Translator](MessageTranslator.html)\n\n[Envelope Wrapper](EnvelopeWrapper.html)\n\n[Content Enricher](DataEnricher.html)\n\n[Content Filter](ContentFilter.html)\n\n[Claim Check](StoreInLibrary.html)\n\n[Normalizer](Normalizer.html)\n\n[Canonical Data Model](CanonicalDataModel.html)\n\n[Messaging Endpoints](MessagingEndpointsIntro.html)\n\n[Message Endpoint](MessageEndpoint.html)\n\n[Messaging Gateway](MessagingGateway.html)\n\n[Messaging Mapper](MessagingMapper.html)\n\n[Transactional Client](TransactionalClient.html)\n\n[Polling Consumer](PollingConsumer.html)\n\n[Event-driven Consumer](EventDrivenConsumer.html)\n\n[Competing Consumers](CompetingConsumers.html)\n\n[Message Dispatcher](MessageDispatcher.html)\n\n[Selective Consumer](MessageSelector.html)\n\n[Durable Subscriber](DurableSubscription.html)\n\n[Idempotent Receiver](IdempotentReceiver.html)\n\n[Service Activator](MessagingAdapter.html)\n\n[Messaging Channels](MessagingChannelsIntro.html)\n\n[Message Channel](MessageChannel.html)\n\n[Point-to-Point Channel](PointToPointChannel.html)\n\n[Publish-Subscr. Channel](PublishSubscribeChannel.html)\n\n[Datatype Channel](DatatypeChannel.html)\n\n[Invalid Message Channel](InvalidMessageChannel.html)\n\n[Dead Letter Channel](DeadLetterChannel.html)\n\n[Guaranteed Delivery](GuaranteedMessaging.html)\n\n[Channel Adapter](ChannelAdapter.html)\n\n[Messaging Bridge](MessagingBridge.html)\n\n[Message Bus](MessageBus.html)\n\n[Systems Mgmt.](SystemManagementIntro.html)\n\n[Control Bus](ControlBus.html)\n\n[Detour](Detour.html)\n\n[Wire Tap](WireTap.html)\n\n[Message History](MessageHistory.html)\n\n[Message Store](MessageStore.html)\n\n[Smart Proxy](SmartProxy.html)\n\n[Test Message](TestMessage.html)\n\n[Channel Purger](ChannelPurger.html)", "znaku_textu": 19760, "slov": 2811, "odkazu": 87, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/patterns/messaging/ComposedMessagingExample.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 14:51:03", "sha256": "eecd3b006d25a888a7819e0a2a5e963d5331fb8c6ea9e3deae46c7fc8fcce4c4", "hloubka": 3, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "https://www.architectelevator.com/book", "https://www.cloudstrategybook.com/", "https://www.platformstrategybook.info/"]} {"url": "https://www.enterpriseintegrationpatterns.com/ComposedMessagingMSMQ.html", "titulek": "Asynchronous Implementation with MSMQ - Enterprise Integration Patterns", "h1": "", "popis": "This section describes how to implement the Loan Broker example (see Introduction to Composed Messaging Examples) using Microsoft .NET, C# and MSMQ. The Microsoft .NET framework includes the System.Messaging namespace that gives .NET programs access to the Microsoft Message Queuing Service that is included in the recent versions of the Windows operating system (Windows 2000, Windows XP, Windows Server 2003 etc). The example walks through many of the design decisions and shows the actual code that is required to make this solution work. I tried as much as possible to focus on the design aspects of the solution so that this example is of value even if you are not a hard-core C# developer. In fact, much of the application besides the actual interface into System.Messaging would look very similar if this implementation was done in Java and JMS.", "klicova_slova": "Asynchronous Implementation with MSMQ,integration, messaging, events, patterns, event-driven, coupling, eai, middleware, application integration, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns", "og:title": "Asynchronous Implementation with MSMQ - Enterprise Integration Patterns", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/ComposedMessagingMSMQ.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/eip1_patterns_wide.png"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Loan Broker Ecosystem"}, {"uroven": 2, "text": "Laying the Groundwork: A Messaging Gateway"}, {"uroven": 2, "text": "Base Classes for Common Functionality"}, {"uroven": 2, "text": "Designing the Bank"}, {"uroven": 2, "text": "Designing the Credit Bureau"}, {"uroven": 2, "text": "Designing the Loan Broker"}, {"uroven": 2, "text": "Refactoring the Loan Broker"}, {"uroven": 2, "text": "Putting it All Together"}, {"uroven": 2, "text": "Improving Performance"}, {"uroven": 2, "text": "A Few Words on Testing"}, {"uroven": 2, "text": "Limitations of This Example"}, {"uroven": 2, "text": "Summary"}, {"uroven": 2, "text": "Integration Pattern Language"}], "markdown": "| | Asynchronous Implementation with MSMQ[Messaging Patterns](index.html) » [Interlude: Composed Messaging](ComposedMessagingExample.html) | [Contents](toc.html)[⇐ Prev](ComposedMessagingWS.html)[Next ⇒](ComposedMessagingTIBCO.html) |\n| --- | --- | --- |\n\nThis section describes how to implement the Loan Broker example (see [*Introduction to Composed Messaging Examples*](ComposedMessagingExample.html)) using Microsoft .NET, C# and MSMQ. The Microsoft .NET framework includes the System.Messaging namespace that gives .NET programs access to the Microsoft Message Queuing Service that is included in the recent versions of the Windows operating system (Windows 2000, Windows XP, Windows Server 2003 etc). The example walks through many of the design decisions and shows the actual code that is required to make this solution work. I tried as much as possible to focus on the design aspects of the solution so that this example is of value even if you are not a hard-core C# developer. In fact, much of the application besides the actual interface into System.Messaging would look very similar if this implementation was done in Java and JMS.\n\nSome of the functions demonstrated in this solution could likely be implemented with less effort by using an integration and orchestration tool such as Microsoft BizTalk Server. I intentionally avoided using such tools for two reasons. First, these tools are not free and would require you to acquire a license just to run this simple example. Second, I wanted to demonstrate the explicit implementation of all necessary functions.\n\nI setup the solution as multiple executables so that the different components could be run distributed across multiple computers. For purpose of the example I use local, private message to keep the setup requirements simple and avoid having to install ActiveDirectory. As a result, the solution 'as is' needs to run on a single machine.\n\nThis implementation of the loan broker example uses asynchronous messaging over message queues. As described in the example overview, this allows us to process multiple quote requests concurrently, but also requires us to correlate messages as they flow though the system and ultimately produce a response message to the loan quote request. Many of our design decisions are driven by the need for asynchronous processing.\n\n## Loan Broker Ecosystem\n\nIt is a good idea to start understanding the loan broker design from the outside in. Let's start by examining all external interfaces that the loan broker has to support (see picture). Because message queues are unidirectional we need a pair of queues to establish a request-response communication with another component (see [*.NET Request/Reply Example*](RequestReplyNetExample.html) for a simple case). As a result, the loan broker receives requests for loan quotes on the loanRequestQueue and replies to the test client on the loanReplyQueue. The interaction with the credit bureau happens over a similar pair of queues. I did not want to create a pair of queues for each bank, so I decided to have all banks reply to the same bankReplyQueue. The [*Recipient List*](RecipientList.html) sends the request message to each individual bank queue while the [*Aggregator*](Aggregator.html) selects the best quote from the reply messages arriving on the loanReplyQueue. Together, the [*Recipient List*](RecipientList.html) and the [*Aggregator*](Aggregator.html) act as a distribution-style [*Scatter-Gather*](BroadcastAggregate.html). For simplicity's sake all banks in this example use the same message format so that a [*Normalizer*](Normalizer.html) is not required. But because the common bank message format is different from the format expected by the consumer, we still need to use one [*Message Translator*](MessageTranslator.html) to convert bank reply messages into loan broker reply messages. I decided to design the loan broker as a [*Process Manager*](ProcessManager.html). Rather than implementing the functions inside the loan broker as individual components separated by message queues, the loan broker is a single component that executes all functions internally. As a result, this approach eliminates the overhead that would be incurred by sending messages across queues between these functions, but requires the loan broker to maintain multiple, concurrent process instances.\n\n*Loan Broker with Message Queue Interfaces*\n\n## Laying the Groundwork: A Messaging Gateway\n\nI do not want this section to become an introduction into the System.Messaging namespace and MSMQ. Therefore, it makes sense to try to separate some of the MSMQ specific functions into separate classes so that the application code will not be littered with MSMQ-specific commands. Mike Rettig reminded me that the *Gateway* [[EAA](http://www.amazon.com/exec/obidos/ASIN/0321127420/enterpriseint-20)] is an excellent pattern to use for this. Mike created the JMS example for Martin's *P of EAA* book and has been instrumental in bringing the [*Messaging Gateway*](MessagingGateway.html) into this implementation. As Martin points out, the use of a *Gateway* has two key advantages. First, it abstracts the technical details of the communication from the application. Second, if we choose to separate the gateway interface from the gateway implementation we can replace the actual external service with a *Service Stub* [[EAA](http://www.amazon.com/exec/obidos/ASIN/0321127420/enterpriseint-20)] for testing.\n\n*Use of a Gateway helps keep MSMQ details out of the application and improves testability*\n\nIn our case we define two interfaces into the[*Messaging Gateway*](MessagingGateway.html): IMessageSender and IMessageReceiver. We kept these interfaces almost trivially simplistic. All the IMessageSender can do is send a message and all the IMessageReceiver can do is (surprise!) receive a message. Additionally, the receiver has a Begin method to tell it that it is OK to start receiving messages. Keeping the interfaces this simple makes it easy to define classes that implement the interface.\n\n**IMessageSender.cs**\n\n```\nnamespace MessageGateway\n{\n using System.Messaging;\n\t\n public interface IMessageSender\n {\n void Send(Message mess);\n }\n}\n \n```\n\n**IMessageReceiver.cs**\n\n```\nnamespace MessageGateway\n{\n using System.Messaging;\n\n public interface IMessageReceiver\n {\n OnMsgEvent OnMessage \n { \n get;\n set;\n }\n\t\t\n void Begin();\n\n MessageQueue GetQueue();\n }\n}\n \n```\n\nThe actual implementations reside in the MessageSenderGateway and MessageReceiverGateway classes. These classes take care of configuring the message queue properties such as MessageReadPropertyFilter or Formatter settings. MessageReceiverGateway uses a *Template Method* for the ReceiveCompleted event of the MSMQ message queue to take care of small, but important details such as calling the mq.BeginReceive method after processing the message. I am not going to dive into the details of these features right now but refer you to the on-line documentation on MSDN ([[MSMQ01](http://www.microsoft.com/msmq)]).\n\nBecause we defined very narrow interfaces, it is also possible to provide an implementation that does not even use a message queue. MockQueue implements both interfaces without even referencing a message queue! When an application sends a message, MockQueue immediately triggers the OnMessageevent with that same message. This makes testing the application in a single address space much simpler without having to worry about the asynchronous aspects (more on testing below).\n\nThe line \"OnMsgEvent OnMessage\" in IMessageReceiver may require a little bit of explanation for readers who are new to C#. The .NET Framework provides language features for the *Observer* pattern, called *delegates* and *events*. OnMsgEvent is a *delegate* defined in the MessageReceiverGateway:\n\n```\npublic delegate void OnMsgEvent(Message msg);\n```\n\nA delegate allows objects to register with a certain type of event. When the event is invoked, .NET calls all registered methods. A delegate can be invoked in a number of different ways but the simplest form is the direct invocation by using the name of the delegate:\n\n```\nOnMsgEvent receiver;\nMessage message;\n...\nreceiver(message);\n```\n\nIf this leaves you more interested in *delegates* have a look at a good .NET or C# book. If you want to know the dirty details on how the CLR implements them, have a look at [[Box](http://www.amazon.com/exec/obidos/ASIN/0201734117/enterpriseint-20)].\n\n## Base Classes for Common Functionality\n\nWhen we look at the high-level design, we quickly realize that some of the components in the loan broker scenario have common functions. For example, both a bank and a credit bureau act as a service by receiving a request, processing the request and publishing the result to another channel. Sounds easy enough. But since we live in the world of asynchronous messaging, we have to do a little extra work to implement a simple request-reply scheme. First, we want the caller of the service to specify a [*Return Address*](ReturnAddress.html) for the reply. This allows different callers to use the same service but use different reply queues. The service should also support a [*Correlation Identifier*](CorrelationIdentifier.html) so that the caller can reconcile incoming reply messages with request messages. Furthermore, if the service receives a message in an unrecognized format it would be good manners to route the message to an [*Invalid Message Channel*](InvalidMessageChannel.html) instead of simply discarding it.\n\nTo eliminate code duplication (the deadly sin of object-oriented programming), I created the base class MQService. This class incorporates the support for [*Return Address*](ReturnAddress.html) and [*Correlation Identifier*](CorrelationIdentifier.html). Really, the server-side support for a [*Correlation Identifier*](CorrelationIdentifier.html) consists of nothing more than copying the message ID of the incoming message to the correlation id of the reply message. In our example, I also copy the AppSpecific property because we will see later that sometimes we need to correlate by something else besides message ID. The MQService also makes sure to send the response to the specified [*Return Address*](ReturnAddress.html). Because the requestor supplies the [*Return Address*](ReturnAddress.html), the only initialization parameter for the MQService is the name of the request queue, i.e. the queue where new request messages come in. If the requestor forgets to supply a [*Return Address*](ReturnAddress.html), the RequestReplyService sends the reply to the [*Invalid Message Channel*](InvalidMessageChannel.html). One may also consider sending the request message to the [*Invalid Message Channel*](InvalidMessageChannel.html) because that's the one that is faulty. For now, we will keep our lives simple and not get into the details of error handling.\n\n**MQService.cs**\n\n```\npublic abstract class MQService\n{\n static protected readonly String InvalidMessageQueueName = \".\\\\private$\\\\invalidMessageQueue\";\n IMessageSender invalidQueue = new MessageSenderGateway(InvalidMessageQueueName);\n\n protected IMessageReceiver requestQueue;\n protected Type requestBodyType;\n\t\n public MQService(IMessageReceiver receiver)\n {\n requestQueue = receiver;\n Register(requestQueue);\n }\n\t\n public MQService(String requestQueueName)\n {\n MessageReceiverGateway q = new MessageReceiverGateway(requestQueueName, GetFormatter());\n Register(q);\n this.requestQueue = q;\n Console.WriteLine(\"Processing messages from \" + requestQueueName);\n }\n\t\t\t\n protected virtual IMessageFormatter GetFormatter()\n {\n return new XmlMessageFormatter(new Type[] { GetRequestBodyType() });\n }\n\n protected abstract Type GetRequestBodyType();\n\n protected Object GetTypedMessageBody(Message msg)\n {\n try \n {\n if (msg.Body.GetType(). Equals(GetRequestBodyType())) \n {\n return msg.Body;\n }\n else\n { \n Console.WriteLine(\"Illegal message format.\");\n return null;\n }\n }\n catch (Exception e) \n {\n Console.WriteLine(\"Illegal message format\" + e.Message); \n return null;\n }\n }\n\n public void Register(IMessageReceiver rec)\n {\n OnMsgEvent ev = new OnMsgEvent(OnMessage);\n rec.OnMessage += ev;\n }\n\t\n public void Run()\n {\n requestQueue.Begin();\n }\n\n \n public void SendReply(Object outObj, Message inMsg)\n {\n Message outMsg = new Message(outObj);\n outMsg.CorrelationId = inMsg.Id;\n outMsg.AppSpecific = inMsg.AppSpecific;\n\n if (inMsg.ResponseQueue != null) \n {\n IMessageSender replyQueue = new MessageSenderGateway(inMsg.ResponseQueue);\n replyQueue.Send(outMsg);\n }\n else\n {\n invalidQueue.Send(outMsg);\n }\n }\n\n protected abstract void OnMessage(Message inMsg);\n\n}\n```\n\nThe class is abstract because it does not provide an implementation for the GetTypedMessageBody and OnMessage methods. We want our classes to deal as much as possible with strongly typed business objects as opposed to Message data types. Therefore, we want would like the MQService to verify the type of the message body and cast it to the correct type. The problem is that this abstract base class does not know which type to cast it to because it can be used by many different service implementations each of which is likely to use a different message type. To perform as much work in the base class we created the GetTypedMessageBody and the abstract method GetRequestBodyType. Each subclass has to implement the method GetRequestBodyType to specify the type of the messages that it expects to receive. MQServer use the type to initialize the XML formatter and to perform type checking. After these checks the subclass can safely cast the incoming message body to the desired type without being afraid of exceptions. The exception handling inside GetTypedMessageBodyis admittedly primitive at this point -- all it does is print a message to the console. If this weren't a simple demo app, we would definitely use some more sophisticated approach to logging or better yet a comprehensive [*Control Bus*](ControlBus.html).\n\nThe OnMessage method is left to be implemented by the subclasses of MQService. We provide two implementations, a synchronous one and an asynchronous one. The synchronous implementation (RequestReplyService) calls the virtual method ProcessMessage which is expected to return a reply message right away. The synchronous implementation of OnMessage calls SendReply right away. The asynchronous implementation (AsyncRequestReplyService) in contrast, defines the virtual ProcessMessage method without any return parameter. The inheriting subclasses are responsible for calling SendReply.\n\n```\npublic class RequestReplyService : MQService\n{\n public RequestReplyService(IMessageReceiver receiver) : base(receiver) {}\t\t\n public RequestReplyService(String requestQueueName) : base (requestQueueName) {}\n\n protected override Type GetRequestBodyType()\n {\n return typeof(System.String);\n }\n\n protected virtual Object ProcessMessage(Object o)\n {\n String body = (String)o;\n Console.WriteLine(\"Received Message: \" + body);\n return body;\n }\n\n protected override void OnMessage(Message inMsg)\n {\n inMsg.Formatter = GetFormatter();\n Object inBody = GetTypedMessageBody(inMsg);\n if (inBody != null) \n {\n Object outBody = ProcessMessage(inBody);\n\n if (outBody != null) \n {\n SendReply(outBody, inMsg);\n }\n }\n }\t\n}\n\npublic class AsyncRequestReplyService : MQService\n{\n public AsyncRequestReplyService(IMessageReceiver receiver) : base(receiver) {}\t\t\n public AsyncRequestReplyService(String requestQueueName) : base (requestQueueName) {}\n\n protected override Type GetRequestBodyType()\n {\n return typeof(System.String);\n }\n\n protected virtual void ProcessMessage(Object o, Message msg)\n {\n String body = (String)o;\n Console.WriteLine(\"Received Message: \" + body);\n }\n \n protected override void OnMessage(Message inMsg)\n {\n inMsg.Formatter = GetFormatter();\n Object inBody = GetTypedMessageBody(inMsg);\n if (inBody != null) \n {\n ProcessMessage(inBody, inMsg);\n }\n\n }\t\n}\n \n```\n\nBoth classes provide a default implementation of the GetRequestBodyType and ProcessMessage methods. GetRequestBodyType specifies that the message expects a simple string and ProcessMessage prints that string to the console. Technically speaking we could have omitted the default implementations of these methods from RequestReplyService and AsyncRequestReplyService so that they remain abstract themselves. This would allow the compiler to detect any subclass of one of these classes that forgot to implement one of the abstract methods. On the other hand, it is nice to have a default implementation of a service available for testing and debugging purposes. So I decided to go ahead and let these classes be concrete so that they can be instantiated as is.\n\nIn summary, the class diagram for the base classes looks as follows (we will discuss the bank, credit bureau and loan broker classes shortly):\n\n*Base Classes for Message Services*\n\n## Designing the Bank\n\nNow that we have created a set of base classes and utility functions it is time to start implementing the application logic. An easy way to start creating the solution is to build the application components by reverse order of dependency. This means, we first create components that do not depend on anything else. This allows us to run and test these components independently. The bank is certainly one of those components. The loan broker depends on the banks, but the banks themselves are self-contained. Conveniently enough, a bank is a prime example of a request-reply-service. So implementing a bank should be as simple as inheriting from RequestReplyService and filling in some business logic.\n\nBefore we start working on the internals of the bank, though, we should define the external interface. We need to define the message types for loan quote requests and replies. For our simple implementation, we defined a common message format for all banks. That lets us use a common class for all five bank instances. C# supports structs, so we use those as message types:\n\n**Message Types for Bank**\n\n```\npublic struct BankQuoteRequest \n{\n public int SSN;\n public int CreditScore;\n public int HistoryLength;\n public int LoanAmount;\n public int LoanTerm;\n}\n\npublic struct BankQuoteReply\n{\n public double InterestRate;\n public String QuoteID;\n public int ErrorCode;\n}\n```\n\nBecause we want to use a single class for all bank instances we need to parameterize the banks for different behavior. Our banks are very simple institutions, so the only parameters are BankName, RatePremium, and MaxLoanTerm. The RatePremium determines the number of interest rate points that the bank charges above the *prime rate*, basically the bank's profit margin. The MaxLoanTerm specifies the longest loan term (in months) that the bank is willing to extend. If a loan request is for a longer duration than specified, the bank will thankfully decline. After plugging in the appropriate convenience constructors and accessors, we can build the ProcessMessage method of the bank:\n\n**Bank.cs**\n\n```\nprotected override Type GetRequestBodyType()\n{\n return typeof(BankQuoteRequest);\n}\n\nprotected BankQuoteReply ComputeBankReply(BankQuoteRequest requestStruct)\n{\n BankQuoteReply replyStruct = new BankQuoteReply();\n\n if (requestStruct.LoanTerm <= MaxLoanTerm) \n {\n replyStruct.InterestRate = PrimeRate + RatePremium \n + (double)(requestStruct.LoanTerm / 12)/10 \n + (double)random.Next(10) / 10;\n replyStruct.ErrorCode = 0;\n }\n else\n {\n replyStruct.InterestRate = 0.0;\n replyStruct.ErrorCode = 1;\n }\n replyStruct.QuoteID = String.Format(\"{0}-{1:00000}\", BankName, quoteCounter);\n quoteCounter++;\n return replyStruct;\n}\n\nprotected override Object ProcessMessage(Object o)\n{\n BankQuoteRequest requestStruct;\n BankQuoteReply replyStruct;\n\n requestStruct = (BankQuoteRequest)o;\n replyStruct = ComputeBankReply(requestStruct);\n\n Console.WriteLine(\"Received request for SSN {0} for {1:c} / {2} months\", \n requestStruct.SSN, requestStruct.LoanAmount, requestStruct.LoanTerm);\n Thread.Sleep(random.Next(10) * 100);\n Console.WriteLine(\" Quote: {0} {1} {2}\", \n replyStruct.ErrorCode, replyStruct.InterestRate, replyStruct.QuoteID); \n\n return replyStruct;\n}\n```\n\nWe can see that the concrete service has to implement only the GetRequestBodyType and ProcessMessage methods. The service can safely cast the object passed in by ProcessMessage because the base class has already verified the correct type. As we can see the remaining implementation has rather little to do with messaging -- all the details are taken care if in the base classes. The MQService and RequestReplyService classes act as a [*Service Activator*](MessagingAdapter.html), keeping the application from having to dig into messaging system details.\n\nThe method ComputeBankReply contains the complete business logic for a bank. If life were only so simple! Well, this is not an introduction into macro-economics but an example of messaging so I took some liberties here to simplify things. The logic is the same as in the previous implementation. The computed interest rate is the sum of the prime rate, the configured rate premium, the loan term and a sprinkle of randomness. If the requested loan term is longer than the bank is comfortable with, it returns an error code. Each quote that the bank issues receives a unique quote ID so the customer may refer back to it later. In the current implementation I use a simple incrementing counter to create these IDs.\n\nThe ProcessMessage method incorporates a small delay (between 1/10th and 1 second) to make the bank transaction a bit more realistic. The ProcessMessage also logs some activities to the console so we can see what is going on when we run it inside a simple console application.\n\nTo start a bank, we simply instantiate it with the appropriate parameters and call the Run method that it inherits from RequestReplyService. Since the processing happens through events, the Run method returns right away. Therefore, we need to be careful not to terminate the program right after it starts. For my simple tests, I simple inserted a Console.ReadLine() statement after the call to Run.\n\n## Designing the Credit Bureau\n\nThe credit bureau implementation is very analogous to the bank. The only difference is in the message types and the business logic. The credit bureau can handle the following message types:\n\n**Message Types for Credit Bureau**\n\n```\npublic class CreditBureauRequest \n{\n public int SSN;\n}\n\npublic class CreditBureauReply\n{\n public int SSN;\n public int CreditScore; \n public int HistoryLength;\n}\n```\n\nThe ProcessMessage method is nearly identical to the bank code, except it deals with different data structures and invokes different application logic. The credit bureau also has a built-in delay.\n\n**CreditBureau.cs**\n\n```\nprivate int getCreditScore(int ssn) \n{\n return (int)(random.Next(600) + 300);\n}\n\nprivate int getCreditHistoryLength(int ssn)\n{\n return (int)(random.Next(19) + 1);\n}\n```\n\n## Designing the Loan Broker\n\nNow that we have a functioning credit bureau and a bank class that lets us instantiate multiple incarnations of a bank, we are ready to work in the internal design of the loan broker. The routing and transformation patterns from this book help us segment the functions that the loan broker needs to provide. We can group the internal functions of the loan broker into three main portions (see picture): the request-reply interface that accepts requests from clients, the credit bureau interface, and the bank interface.\n\n*Internal structure of the Loan Broker*\n\nIn similar fashion to building the whole solution in reverse order of dependency, let's start building the pieces that only depend on what's already there. Because we just built a bank and a credit bureau service it makes sense to create the interface from the loan broker to these external components. The credit bureau interface definitely seems simpler, so let's start there.\n\n**Credit Bureau Gateway**\n\nThe loan broker needs to make requests to the credit bureau to obtain the customer's credit rating, which is required by the bank. This implies sending a message to the external loan broker component and receiving reply messages. Wrapping the details of sending a generic message inside a MessageGateway allowed us to hide many MSMQ details from the rest of the application. Following the same reasoning we should encapsulate sending and receiving messages to the credit bureau inside a *credit bureau gateway*. This credit bureau gateway performs the important function of *semantic enrichment*, allowing the loan broker to call methods such as GetCreditScore as opposed to SendMessage. This makes the loan broker code more readable and provides a strong encapsulation of the communication between the loan broker and the credit bureau. The following diagram illustrates the levels of abstraction achieved by \"chaining\" the two gateways.\n\n*The Loan Broker Provides an Additional Level of Abstraction From the Messaging Infrastructure*\n\nIn order to request a credit score, the gateway needs to create an instance of a CreditBureauRequest struct as specified by credit bureau. Likewise, the interface will receive the results inside a CreditBureauReply struct. In the beginning we stated that the solution is built from separate executables to that the credit bureau can run on a different computer than the loan broker. This means, though, that the loan broker may not have access to types defined in the credit bureau's assembly. And really we would not want the loan broker to make any references to the credit bureau internals because that would eliminate the benefits of loose coupling over message queues. The loan broker is supposed to be completely unaware of who services the credit score requests. The loan broker needs, however, access to the structs that define the message formats. Luckily, the Microsoft .NET Framework SKD contains a tool that lets us do just that, the XML Schema Definition Tool (xsd.exe). This tool can create XML schemas from an assembly and also create C# source code from XML schemas. The following picture describes the process:\n\n*Creating Class Stubs from Another Assembly*\n\nxsd.exe extracts public type definitions and creates an XML schema file based on the type definition and optional attributes that control serialization. In our case, xsd.exe created the following schema:\n\n```\n\n\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n```\n\nUsually a service would publish this schema definition to potential callers. This allows the caller the option to produce the required message format in a number of different ways. First, the caller could construct the xsd-compliant explicitly. Alternatively, the caller could use the .NET built-in serialization. Since the .NET CLR is programming language independent, the client would still have a choice of programming languages.\n\nWe decide to use .NET's built-in serialization. Therefore, we run xsd.exe again to create source files to be used by the service consumer, and get a file that looks like this:\n\n```\n// \n// This source code was auto-generated by xsd, Version=1.1.4322.573.\n// \nnamespace CreditBureau {\n using System.Xml.Serialization;\n \n \n /// \n [System.Xml.Serialization.XmlRootAttribute(Namespace=\"\", IsNullable=false)]\n public class CreditBureauRequest {\n \n /// \n public int SSN;\n }\n ...\n \n```\n\nIt is worth noting that the .NET XML serialization and deserialization allows loose coupling. So technically speaking, the request message that we send to the credit bureau does not have to be of the exact same type that is used inside the credit bureau implementation as long as the XML representation contains the required elements. For example, this would allow a requestor to send a message whose XML representation contains additional elements without disturbing the communication. For our example, we assume that the loan broker is willing to conform to the credit bureau's specified format and use the same types on both ends of the communication.\n\nWe are now ready to send messages in the correct format to the credit bureau. We need to keep in mind, though, that this communication is asynchronous with a separate, asynchronous request message and reply message. We could design the credit bureau gateway so that after sending a request the gateway code waits for the response to come back. This approach has one significant drawback: the application will just sit and wait while the credit bureau is processing a message. This type of pseudo-synchronous processing can quickly result in a performance bottleneck. If we make each step of the process pseudo-synchronous it means that the loan broker can only process one request process at a time. For example, it would not be able to request the credit score for a new request while it is still waiting for bank replies for the previous quote request. To visualize the difference let's consider that the loan broker has to perform two main steps: get the credit score and get the best quote from the banks. If we assume the loan broker runs only a single, sequential execution, the execution will look like the top half of the following picture:\n\n*Pipeline Processing Can Provide Significantly Higher Throughput*\n\nBecause the bulk of the actual work is executed by external components the loan broker component basically sits around and waits for results -- not an efficient use of computing resources. If we design the whole loan broker process as an [*Event-Driven Consumer*](EventDrivenConsumer.html), we can start processing multiple requests in parallel and process the results as they come in. We call this mode 'pipeline' processing. The scalability of the system now only depends on the processing capacity of the external components and not on the loan broker. If we run only a single instance of the credit bureau process, the difference may not be as pronounced because the bureau request queue will queue up the requests anyway. However, if we decide to run multiple credit bureau instances in parallel we will see immediate performance gains (more on performance below).\n\nThere are two primary ways to make the loan broker process event-driven. For once, we can create a sequential process but create a new thread for each incoming message. Alternatively, we can let the messaging system notify the loan broker whenever an event is pending. This way we let the messaging system control the threads of execution. Each approach has pros and cons. Coding a sequential process can make the code easier to understand, however if our component is primarily a broker component that brokers messages between external entities it would result in a potentially large number of threads that are waiting for incoming messages. These threads could consume a large number of system resources and accomplish little. Therefore, we may be better off to let the messaging system drive the execution. Whenever a message is ready to be consumed, the system will invoke the broker execution. This lets us maintain a single thread of execution and not worry about thread management. However, we need to deal with the fact that the execution path is not a single sequential method, but multiple code segments that are executed as messages arrive.\n\nYou might have guessed that the way to make things event-driven in .NET is the use of *delegates*. As expected, the credit bureau gateway defines a new delegate.\n\n```\npublic delegate void OnCreditReplyEvent(CreditBureauReply creditReply, Object ACT);\n```\n\nThis delegate allows other code segments to tell the credit bureau gateway which method to call when the result come in. The credit bureau gateway passes a properly typed CreditBureauReply struct back to the caller. It also passes something we call ACT -- an *Asynchronous Completion Token* [[POSA](http://www.amazon.com/exec/obidos/ASIN/0471958697/enterpriseint-20)]. This token allows the caller to pass in data to the gateway and receive the data back when the corresponding reply message comes in. Basically, the credit bureau gateway performs correlation for the request and reply messages so that the caller does not have to.\n\nWhat's left is a method to request a credit score and the method that handles an incoming message, correlating the proper ACT and invoking the properly typed delegate.\n\n**CreditBureauGateway.cs**\n\n```\ninternal struct CreditRequestProcess\n{\n public int CorrelationID;\n public Object ACT;\n public OnCreditReplyEvent callback;\n}\n\ninternal class CreditBureauGateway \n{\n protected IMessageSender creditRequestQueue;\n protected IMessageReceiver creditReplyQueue;\n\n protected IDictionary activeProcesses = (IDictionary)(new Hashtable());\n\n protected Random random = new Random();\n\n public void Listen()\n {\n creditReplyQueue.Begin();\n }\n\n public void GetCreditScore(CreditBureauRequest quoteRequest, OnCreditReplyEvent OnCreditResponse, Object ACT)\n {\n Message requestMessage = new Message(quoteRequest);\n requestMessage.ResponseQueue = creditReplyQueue.GetQueue();\n requestMessage.AppSpecific = random.Next();\n\n CreditRequestProcess processInstance = new CreditRequestProcess();\n processInstance.ACT = ACT;\n processInstance.callback = OnCreditResponse;\n processInstance.CorrelationID = requestMessage.AppSpecific;\n\n creditRequestQueue.Send(requestMessage);\n\n activeProcesses.Add(processInstance.CorrelationID, processInstance);\n }\n\n private void OnCreditResponse(Message msg)\n {\n msg.Formatter = GetFormatter();\n\n CreditBureauReply replyStruct;\n try \n {\n if (msg.Body is CreditBureauReply) \n {\n replyStruct = (CreditBureauReply)msg.Body;\n int CorrelationID = msg.AppSpecific;\n\n if (activeProcesses.Contains(CorrelationID))\n {\n CreditRequestProcess processInstance = (CreditRequestProcess)(activeProcesses[CorrelationID]);\n processInstance.callback(replyStruct, processInstance.ACT);\n activeProcesses.Remove(CorrelationID);\n }\n else { Console.WriteLine(\"Incoming credit response does not match any request\"); }\n }\n else\n { Console.WriteLine(\"Illegal reply.\"); }\n }\n catch (Exception e) \n {\n Console.WriteLine(\"Exception: {0}\", e.ToString()); \n }\n }\n}\n```\n\nWhen a caller requests a credit score via the GetCreditScoremethod, the credit bureau gateway allocates a new instance of the CreditRequestProcess structure. The collection activeProcesses contains one instance of CreditRequestProcess for each outstanding request, keyed by the [*Correlation Identifier*](CorrelationIdentifier.html) of the message. The structure also holds the delegate for the OnCreditReplyEvent event. Storing the delegate for each message allows each caller to specify a different callback location for each request. As we will see later this allows the caller to use delegates to manage conversation state.\n\nit is important to note that we do not use the message's built-in Id field to correlate. Instead, we assign a random integer number to the AppSpecific field and correlate incoming messages by the value of that field (remember that we designed the RequestReplyService to copy both the Id field and the AppSpecific field to the reply message). Why would we want to correlate by something else but the message ID? The advantage of the message ID is that it is unique for each message in the system. But that also limits our flexibility. Requiring a reply message to correlate to the message ID of the request message does not allow us to insert intermediate steps (for example, a router) into the message flow. Because any intermediate step would consume the request message and publish a new message to the service, the reply message's CorrelationId would match the message the service received but not the message that the Loan Broker originally sent (see picture).\n\n*Intermediaries Hinder Correlation with System-Generated Message IDs*\n\nThere are two solutions to this problem. First, any intermediate would be required to intercept both request and reply messages and make sure to equip reply messages with the correct CorrelationId value (for an example of this approach see the [*Smart Proxy*](SmartProxy.html). Alternatively, we can use a separate field for correlation purposes so that all related messages that flow through the intermediary and the service carry the same ID. In this example we chose the second approach to make it easier for an intermediary component to intercept request messages between the Loan Broker and the Credit Bureau (we will take advantage of this in [*Loan Broker System Management*](SystemManagementExample.html). How should we pick a value for the AppSpecific property? We could use sequential values, but then we have to be careful that two concurrent instances do not use use the same starting value. We could also use a central ID generation module (e.g. a Database) that guarantees system-wide uniqueness. This seemed a little too much trouble for this simple example, so we chose a random number. .NET generates random numbers as signed 32-bit integers so that the odds of a duplicate are 1 in 2 billion -- a risk we are willing to take.\n\nThe credit bureau gateway now provides the clean abstraction from the Windows message queuing infrastructure that we were aiming for. The only public interface into the credit bureau gateway (besides constructors) are a delegate and two methods:\n\n```\ndelegate void OnCreditReplyEvent(CreditBureauReply creditReply, Object ACT);\nvoid Listen() {...}\nvoid GetCreditScore(CreditBureauRequest quoteRequest, OnCreditReplyEvent OnCreditResponse, Object ACT) {...}\n```\n\nNeither construct makes any reference to a message or a message queue. This provides a number of benefits. First, we can easily implement a stubbed out version of the credit bureau gateway that does not rely on message queues at all (similar to the MockQueue). Second, we can replace the implementation of the credit bureau gateway if we decide to use a transport different from MSMQ. For example, if we were going to use a Web services interface using SOAP and http instead of MSMQ the methods exposed by the gateway would most likely not have to change at all.\n\n**Bank Gateway**\n\nThe design of the bank gateway follows the same design principles as the design of the credit bureau gateway. We use the same process as before to declare stubs for the request and reply message types specified by the bank. The external portion of the bank gateway is very similar to the credit bureau gateway:\n\n```\ndelegate void OnBestQuoteEvent(BankQuoteReply bestQuote, Object ACT);\nclass BankGateway {\n void Listen() {...}\n void GetBestQuote(BankQuoteRequest quoteRequest, OnBestQuoteEvent onBestQuoteEvent, Object ACT) {...}\n ...\n}\n```\n\nThe internal workings are slightly more complex because the [*Scatter-Gather*](BroadcastAggregate.html) style of interaction routes a single BankQuoteRequest to multiple banks. Likewise, a single BankQuoteReply is usually the result of multiple bank quote reply messages. The former part is handled by a [*Recipient List*](RecipientList.html) while the latter part is handled by an [*Aggregator*](Aggregator.html). Let's start with the [*Recipient List*](RecipientList.html).\n\nThe [*Recipient List*](RecipientList.html) has to implement three main functions:\n\n- Computation of appropriate recipients\n- Sending the message to the recipients\n- Initializing the [*Aggregator*](Aggregator.html) to process incoming replies.\n\nAs described in the design overview ([*Introduction to Composed Messaging Examples*](ComposedMessagingExample.html)), this implementation uses the *distribution* style of [*Scatter-Gather*](BroadcastAggregate.html), actively determining which banks to route the request to. This approach makes business sense if the banks charge the broker for each quote or the bank and the broker have an agreement that requires the broker to prequalify leads he or she generates . The loan broker makes the routing decision based on the customer's credit score, the amount of the loan and the length of the credit history. We encapsulate each connection to a bank inside a class that inherits from the abstract BankConnection. This class contains a reference to the properly addressed message queue and a method CanHandleLoanRequest that determines whether the quote request should be forwarded to this bank. The BankConnectionManager simply iterates through the list of all bank connections and compiles a list of those that match the criteria of the loan quote. If the list of banks was longer we could consider implementing a configurable rules engine. We prefer the current approach because it is simple and explicit.\n\n```\ninternal class BankConnectionManager\n{\n static protected BankConnection[] banks = {new Bank1(), new Bank2(), new Bank3(), new Bank4(), new Bank5() };\n\n public IMessageSender[] GetEligibleBankQueues(int CreditScore, int HistoryLength, int LoanAmount)\n {\n ArrayList lenders = new ArrayList();\n\n for (int index = 0; index < banks.Length; index++) \n {\n if (banks[index].CanHandleLoanRequest(CreditScore, HistoryLength, LoanAmount))\n lenders.Add(banks[index].Queue);\n }\n IMessageSender[] lenderArray = (IMessageSender [])Array.CreateInstance(typeof(IMessageSender), lenders.Count);\n lenders.CopyTo(lenderArray);\n return lenderArray;\n }\n}\n\ninternal abstract class BankConnection\n{\n protected MessageSenderGateway queue;\n protected String bankName = \"\";\n public MessageSenderGateway Queue\n {\n get { return queue; }\n }\n public String BankName \n {\n get { return bankName; }\n }\n\n public BankConnection (MessageSenderGateway queue) \n {\n this.queue = queue; \n }\n\n public abstract bool CanHandleLoanRequest(int CreditScore, int HistoryLength, int LoanAmount);\n}\n\ninternal class Bank1 : BankConnection\n{ \n protected String bankname = \"Exclusive Country Club Bankers\";\n \n public Bank1 (IMessageGatewayFactory gatewayFactory) : base (gatewayFactory.GetSenderInstance(\".\\\\private$\\\\bank1Queue\")) {}\n public override bool CanHandleLoanRequest(int CreditScore, int HistoryLength, int LoanAmount)\n {\n return LoanAmount >= 75000 && CreditScore >= 600 && HistoryLength >= 8;\n }\n}\n\n...\n```\n\nOnce the list of relevant banks is compiled, sending the message is a simple matter of iterating over the list. In a production application, this iteration should occur inside a single transaction to avoid error conditions where a message may be sent to some banks but not to others. Once again, we chose to let simplicity prevail for this example.\n\n```\ninternal class MessageRouter\n{\n public static void SendToRecipientList (Message msg, IMessageSender[] recipientList)\n { \n IEnumerator e = recipientList.GetEnumerator();\n while (e.MoveNext()) \n {\n ((IMessageSender)e.Current).Send(msg);\n }\n }\n}\n```\n\nNow that request message are on their way to the banks we need to initialize the [*Aggregator*](Aggregator.html) to expect incoming bank quotes. Due to the event driven nature of the loan broker the aggregator needs to be prepared to work on more than one aggregate concurrently -- maintaining one active aggregate for each quote request that is pending. This means that incoming messages need to be uniquely correlated to a specific aggregate. Unfortunately, we cannot use the message ID as correlation identifier because the [*Recipient List*](RecipientList.html) needs to send individual messages to each of the banks. As a result, if three banks participate in a quote request, the [*Recipient List*](RecipientList.html) needs to send 3 unique messages, one to each bank. Each of these messages will have a unique message ID. If the banks correlate by message ID the three responses will have different correlation IDs even though they belong to the same aggregate. We could have the aggregate store the message ID for each message and thus correlate the incoming message's correlation ID back to the aggregate. However, this would seem more complicated than we need it to be. Instead, we just generate our own correlation IDs -- one for each aggregate as opposed to one for each message. We store this (numeric) ID in the AppSpecific property of the outgoing request messages. The banks inherit from RequestReplyService which already transfers the incoming message's AppSpecific property to the reply messages. When a quote message comes in from a bank, the BankGateway can easily correlate the incoming message by the AppSpecific property of the message (see picture).\n\n*The BankGateway uses the AppSpecific Message Property to Correlate Response Messages to Aggregates*\n\nThe bank gateway initializes an aggregate with the aggregate ID (generated by a simple counter) and the number of expected messages. In addition, the caller needs to supply a delegate and can optionally specify an object reference to an ACT in the same way the credit bureau gateway functioned. The aggregation strategy is simple. The aggregate is considered complete when all selected banks responded with a reply message. The [*Recipient List*](RecipientList.html) initializes the aggregate with the number of expected messages. Remember that banks have the option of declining to provide a quote. So we can know when an aggregate is complete we require the banks to provide a reply message with the error code set if they do not want to provide a quote. We could easily modify the aggregation strategy, for example to cut off the bidding after 1 second and take the best response up to that point.\n\n```\ninternal class BankQuoteAggregate\n{\n protected int ID;\n protected int expectedMessages;\n protected Object ACT;\n protected OnBestQuoteEvent callback;\n\n protected double bestRate = 0.0;\n\n protected ArrayList receivedMessages = new ArrayList();\n protected BankQuoteReply bestReply = null;\n\n public BankQuoteAggregate(int ID, int expectedMessages, OnBestQuoteEvent callback, Object ACT)\n {\n this.ID = ID;\n this.expectedMessages = expectedMessages;\n this.callback = callback;\n this.ACT = ACT;\n }\n\n public void AddMessage(BankQuoteReply reply) \n {\n if (reply.ErrorCode == 0) \n {\n if (bestReply == null)\n {\n bestReply = reply;\n }\n else \n {\n if (reply.InterestRate < bestReply.InterestRate)\n {\n bestReply = reply;\n }\n }\n }\n receivedMessages.Add(reply);\n }\n\n public bool IsComplete()\n {\n return receivedMessages.Count == expectedMessages;\n }\n\n public BankQuoteReply getBestResult()\n {\n return bestReply;\n }\n\n public void NotifyBestResult()\n {\n if (callback != null)\n {\n callback(bestReply, ACT);\n }\n }\n}\n```\n\nArmed with the bank connection manager, the recipient list, and the aggregate the implementation of the BankGateway's functions becomes relatively simple:\n\n```\ninternal class BankGateway\n{\n protected IMessageReceiver bankReplyQueue;\n protected BankConnectionManager connectionManager;\n\n protected IDictionary aggregateBuffer = (IDictionary)(new Hashtable());\n protected int aggregationCorrelationID;\n\n public void Listen()\n {\n bankReplyQueue.Begin();\n }\n\n public void GetBestQuote(BankQuoteRequest quoteRequest, OnBestQuoteEvent onBestQuoteEvent, Object ACT)\n {\n\n Message requestMessage = new Message(quoteRequest);\n requestMessage.AppSpecific = aggregationCorrelationID;\n requestMessage.ResponseQueue = bankReplyQueue.GetQueue();\n IMessageSender[] eligibleBanks = \n connectionManager.GetEligibleBankQueues(quoteRequest.CreditScore, quoteRequest.HistoryLength, \n quoteRequest.LoanAmount);\n \n aggregateBuffer.Add(aggregationCorrelationID, \n new BankQuoteAggregate(aggregationCorrelationID, eligibleBanks.Length, onBestQuoteEvent, ACT));\n aggregationCorrelationID++;\n\n MessageRouter.SendToRecipientList(requestMessage, eligibleBanks);\n }\n\n private void OnBankMessage(Message msg)\n {\n msg.Formatter = GetFormatter();\n\n BankQuoteReply replyStruct;\n try \n {\n if (msg.Body is BankQuoteReply) \n {\n replyStruct = (BankQuoteReply)msg.Body;\n int aggregationCorrelationID = msg.AppSpecific;\n Console.WriteLine(\"Quote {0:0.00}% {1} {2}\", \n replyStruct.InterestRate, replyStruct.QuoteID, replyStruct.ErrorCode);\n if (aggregateBuffer.Contains(aggregationCorrelationID))\n {\n BankQuoteAggregate aggregate = \n (BankQuoteAggregate)(aggregateBuffer[aggregationCorrelationID]);\n aggregate.AddMessage(replyStruct);\n if (aggregate.IsComplete()) \n {\n aggregate.NotifyBestResult();\n aggregateBuffer.Remove(aggregationCorrelationID);\n }\n }\n else \n { Console.WriteLine(\"Incoming bank response does not match any aggregate\"); }\n }\n else\n { Console.WriteLine(\"Illegal request.\"); }\n }\n catch (Exception e) \n {\n Console.WriteLine(\"Exception: {0}\", e.ToString()); \n }\n }\n}\n```\n\nWhen the bank gateway receives a quote reply from a bank the OnBankMessage method executes. The method converts the incoming message to the correct type and goes on to locate the related aggregate via the AppSpecific property. It adds the new bid to the aggregate. Once the aggregate is complete (as defined in the BankQuoteAggregate class, the BankGateway invokes the delegate supplied by the caller.\n\n**Accepting Requests**\n\nNow that we have a well encapsulated credit bureau gateway and bank gateway we are ready to have the loan broker accept requests. In the earlier sections we discussed the design of the MQService and AsyncRequestReplyService base class. The LoanBroker class inherits from AsyncRequestReplyService because it cannot send the results back to the reply queue right away, but only after several asynchronous operations (obtaining the credit store and communicating with the banks) complete.\n\nThe first step in implementing the LoanBroker is to define the message types the loan broker handles:\n\n```\npublic struct LoanQuoteRequest \n{\n public int SSN;\n public double LoanAmount;\n public int LoanTerm;\n}\n\npublic struct LoanQuoteReply\n{\n public int SSN;\n public double LoanAmount; \n public double InterestRate;\n public string QuoteID;\n}\n```\n\nNext, we need to create a class that inherits from AsyncRequestReplyService and override the ProcessMessage method.\n\n**The \"Process\"**\n\nThe loan broker is different from the previous classes because the process that is triggered by an incoming message is not contained in any single method. Instead, the completion of the process depends on a sequence of external events. The loan broker can receive three types of events:\n\n- A new loan request message arrives\n- A credit score reply message arrives (via the CreditBureauGateway)\n- A bank quote message arrives (via the BankGateway)\n\nSince the logic for the loan broker is spread across multiple event handlers we need to keep the state of the broker across these functions. That's where the asynchronous completion tokens come in! Remember that the credit bureau gateway and the bank gateway allow the caller (the loan broker) to pass a reference to an object instance when sending a request. The gateway passes the object reference back when the reply message is received. To take advantage of this functionality, we declare an ACT in the loan broker as follows:\n\n```\ninternal class ACT \n{\n public LoanQuoteRequest loanRequest;\n public Message message;\n\n public ACT(LoanQuoteRequest loanRequest, Message message)\n {\n this.loanRequest = loanRequest;\n this.message = message;\n }\n}\n```\n\nThe ACT contains a copy of the original request message (which contains the message ID and the reply address required to create the reply message) and the request data structure (needed to copy the SSN and the loan amount into the reply message). Technically speaking, the ACT stores duplicate information because we could extract the content of the request structure from the request message. However, the convenience of accessing a strongly typed structure is worth the few extra bytes.\n\nThe remainder of the loan broker is implemented as follows:\n\n```\ninternal class LoanBroker : AsyncRequestReplyService\n{\n protected ICreditBureauGateway creditBureauInterface;\n protected BankGateway bankInterface;\n\n public LoanBroker(String requestQueueName,\n String creditRequestQueueName, String creditReplyQueueName, \n String bankReplyQueueName, BankConnectionManager connectionManager): base(requestQueueName)\n {\n\n creditBureauInterface = (ICreditBureauGateway)\n (new CreditBureauGatewayImp(creditRequestQueueName, creditReplyQueueName));\n creditBureauInterface.Listen();\n\n bankInterface = new BankGateway(bankReplyQueueName, connectionManager);\n bankInterface.Listen();\n }\n\n protected override Type GetRequestBodyType()\n {\n return typeof(LoanQuoteRequest);\n }\n\n protected override void ProcessMessage(Object o, Message msg)\n {\n LoanQuoteRequest quoteRequest;\n quoteRequest = (LoanQuoteRequest)o;\n \n CreditBureauRequest creditRequest = LoanBrokerTranslator.GetCreditBureaurequest(quoteRequest);\n\n ACT act = new ACT(quoteRequest, msg);\n\n creditBureauInterface.GetCreditScore(creditRequest, new OnCreditReplyEvent(OnCreditReply), act);\n }\n\t\n private void OnCreditReply(CreditBureauReply creditReply, Object act)\n {\n ACT myAct = (ACT)act;\n\n Console.WriteLine(\"Received Credit Score -- SSN {0} Score {1} Length {2}\", \n creditReply.SSN, creditReply.CreditScore, creditReply.HistoryLength);\n BankQuoteRequest bankRequest = \n LoanBrokerTranslator.GetBankQuoteRequest(myAct.loanRequest ,creditReply);\n bankInterface.GetBestQuote(bankRequest, new OnBestQuoteEvent(OnBestQuote), act);\n }\n \n private void OnBestQuote(BankQuoteReply bestQuote, Object act)\n {\n ACT myAct = (ACT)act;\n\n LoanQuoteReply quoteReply = LoanBrokerTranslator.GetLoanQuoteReply(myAct.loanRequest, bestQuote);\n Console.WriteLine(\"Best quote {0} {1}\", quoteReply.InterestRate, quoteReply.QuoteID);\n SendReply(quoteReply, myAct.message);\n }\n}\n```\n\nLoanBroker inherits from AsyncRequestReplyService which provides support for receiving requests and sending correlated replies. LoanBroker overrides the method ProcessMessage to deal with incoming request messages. ProcessMessage creates a new instance of the ACT and calls the credit bureau gateway to request a credit score. Interestingly, the method ends there. Processing continues when the credit bureau gateway invokes the delegate specified by LoanBroker: OnCreditReply. This method uses the ACT and the reply to create a bank quote request and calls the bank gateway to send the request messages. This time it specifies the method OnBestQuote as the callback delegate. Once the bank gateway received all bank quote replies it invokes this method via the delegate and passes back the instance of the ACT. OnBestQuote uses the bank quote and the ACT to create a reply to the customer and sends it off using the base class implementation of SendReply.\n\nOne class you probably noticed in the source code is the LoanBrokerTranslator. This class provides a handful of static methods that help convert between the different message formats.\n\nThe LoanBroker class demonstrates the trade-off we made in our design. The code is free of references to messaging or thread-related concepts (except for the inheritance from AsyncRequestReplyService), which makes the code very easy to read. However, the execution of the main function is spread across three methods that make no direct reference to each other besides the delegates. This can make the flow of execution hard to understand without considering the total solution including all external components.\n\n## Refactoring the Loan Broker\n\nWhen we look at the way the loan broker functions we realize that we are separating data and functionality. We have one instance of the LoanBrokerclass that emulates multiple instances by means of the ACT collection. While ACT's are very useful they seem to go against the spirit of object-oriented programming by separating data and functionality -- the two parts that make up an object. However, we can refactor the LoanBroker class to avoid the repeated lookup of the ACT if we use the delegates in a better way. Delegates are essentially type-safe function pointers. As such they point to a specific object instance. So rather than supplying the credit bureau and bank gateway with a reference to a method in the sole LoanBroker instance we can use the delegates to point to a specific instance of a 'process object' that maintains the current state like an ACT but also contains the logic of the loan broker process'. To do this we turn the ACT into new class called LoanBrokerProcess and move the message handler functions into this class:\n\n```\ninternal class LoanBrokerProcess \n{\n protected LoanBrokerPM broker;\n protected String processID;\n protected LoanQuoteRequest loanRequest;\n protected Message message;\n\n protected CreditBureauGateway creditBureauGateway;\n protected BankGateway bankInterface;\n\n public LoanBrokerProcess(LoanBrokerPM broker, String processID, \n CreditBureauGateway creditBureauGateway,\n BankGateway bankGateway,\n LoanQuoteRequest loanRequest, Message msg) \n {\n this.broker = broker;\n this.creditBureauGateway = creditBureauGateway;\n this.bankInterface = bankGateway;\n this.processID = processID;\n this.loanRequest = loanRequest;\n this.message = msg;\n\n CreditBureauRequest creditRequest = LoanBrokerTranslator.GetCreditBureaurequest(loanRequest);\n creditBureauGateway.GetCreditScore(creditRequest, new OnCreditReplyEvent(OnCreditReply), null);\n }\n\n private void OnCreditReply(CreditBureauReply creditReply, Object act)\n {\n Console.WriteLine(\"Received Credit Score -- SSN {0} Score {1} Length {2}\", creditReply.SSN, creditReply.CreditScore, creditReply.HistoryLength);\n BankQuoteRequest bankRequest = LoanBrokerTranslator.GetBankQuoteRequest(loanRequest, creditReply);\n bankInterface.GetBestQuote(bankRequest, new OnBestQuoteEvent(OnBestQuote), null);\n }\n \n private void OnBestQuote(BankQuoteReply bestQuote, Object act)\n {\n LoanQuoteReply quoteReply = LoanBrokerTranslator.GetLoanQuoteReply(loanRequest, bestQuote);\n Console.WriteLine(\"Best quote {0} {1}\", quoteReply.InterestRate, quoteReply.QuoteID);\n broker.SendReply(quoteReply, message);\n broker.OnProcessComplete(processID);\n }\n}\n```\n\nThe methods no longer reference the ACT parameter provided by the credit bureau gateway and the bank gateway because all necessary information is stored in the instance of the LoanBrokerProcess. Once the process completes, it sends the reply message using the SendReply method that the LoanBrokerPM inherits from the AsyncRequestReplyService. Next, it notifies the LoanBrokerPM of the completion of the process.\n\n```\ninternal class LoanBrokerPM : AsyncRequestReplyService\n{\n protected CreditBureauGateway creditBureauGateway;\n protected BankGateway bankInterface;\n protected IDictionary activeProcesses = (IDictionary)(new Hashtable());\n \n public LoanBrokerPM(String requestQueueName,\n String creditRequestQueueName, String creditReplyQueueName, \n String bankReplyQueueName, BankConnectionManager connectionManager): base(requestQueueName)\n {\n creditBureauGateway = new CreditBureauGateway(creditRequestQueueName, creditReplyQueueName);\n creditBureauGateway.Listen();\n\n bankInterface = new BankGateway(bankReplyQueueName, connectionManager);\n bankInterface.Listen();\n }\n\n protected override Type GetRequestBodyType()\n {\n return typeof(LoanQuoteRequest);\n }\n\n protected override void ProcessMessage(Object o, Message message)\n {\n LoanQuoteRequest quoteRequest;\n quoteRequest = (LoanQuoteRequest)o;\n\n String processID = message.Id;\n LoanBrokerProcess newProcess = \n new LoanBrokerProcess(this, processID, creditBureauGateway,\n bankInterface, quoteRequest, message);\n activeProcesses.Add(processID, newProcess);\n }\n\n public void OnProcessComplete(String processID)\n {\n activeProcesses.Remove(processID);\n }\n}\n```\n\nThis LoanBrokerPM is basically a generic implementation of a [*Process Manager*](ProcessManager.html). It creates a new process instance when a new message arrives. When a process completes, the process manager removes the process instance from the list of active processes. The process manager uses the message ID as the unique process ID assigned to each process instance. We can now change the behavior of the loan broker just by editing the LoanBrokerProcess class, which has no references to messaging besides passing the message object around. It looks like paying attention to proper encapsulation and refactoring paid off.\n\nThe following class diagram summarizes the internal structure of the loan broker:\n\n*Loan Broker Class Diagram*\n\n## Putting it All Together\n\nThe only remaining piece is the test client. The test client design is similar to that of the credit bureau gateway. The test client can make a specified number of repeated requests and correlate incoming responses to outstanding requests. Once we start all processes (banks, credit bureau and the loan broker), we can execute the example. We use a number of simple Main classes to start the respective components as console applications. We see a flurry of activity on the screen indicating the flow of messages through the system (see picture).\n\n*Running the MSMQ Example*\n\n## Improving Performance\n\nNow that we have the complete solution running we can gather some performance metrics to compare the throughput of the asynchronous solution to the synchronous solution. Using the test data generator we send 50 randomly generated requests to the loan broker. The test data generator reports that is took a total of 27 seconds to receive the 50 reply messages.\n\n*Sending 50 Quote Requests*\n\nIt would be tempting to think that each request took 27 / 50 = 0.5 seconds. Wrong! The *throughput* of the loan broker is 50 requests in 27 seconds, but some of the requests took 26 seconds to complete! Why is the system so slow? Let's look at a snapshot of the message queue during the test run:\n\n*39 Messages Are Queued up in the Credit Request Queue*\n\n39 messages are queued up in the credit bureau request queue! So apparently the credit bureau is our bottleneck because all quote requests have to go through the credit bureau first. Now we can reap some of the rewards of loose coupling and start two additional instances of the credit bureau. Now we have three parallel instances of the credit bureau service running. This should fix our bottleneck, right? Let's see:\n\n*Sending 50 Quote Requests, Using 3 credit Bureau Instances*\n\nThe total time to process all 50 messages is reduced to 21 seconds with the longest request waiting for a response for less than 15 seconds. On average, the client had to wait for a reply to the loan request for 8 seconds, half of the original version. It looks like we eliminated the bottleneck. The message throughput did not increase as dramatically as we might have hoped but we need to remember that for this simple example we are running all processes on a single CPU so that all processes compete for the same resources. Let's look at the new queue statistics to verify that the credit bureau bottleneck is in fact corrected :\n\n*Now Bank 5 Appears to be a Bottleneck*\n\nWell, it looks like we eliminated one bottleneck just to find a new one -- Bank 5. Why Bank 5? Bank 5 is the Pawn Shop that offers loans to everybody. So Bank 5 is part of almost every quote request. We could now go on to start multiple instances of Bank 5 but it's not realistic to expect the pawnshop to run multiple instances just to improve our throughput. Our other option is to change the routing logic for the bank requests. Since the Pawn Shop charges a substantial premium over the other banks the Pawn Shop quote tends to be the lowest quote only in those cases where no other bank provided a quote. Taking this observation into account we can improve the efficiency of the system by not routing requests to the Pawn Shop if the quote can also be serviced by another bank without affecting the overall behavior of the system.\n\nWe change the BankConnectionManager to include Bank 5 only for those quote requests that cannot be serviced by any other bank. The modified BankConnectionManager looks like this:\n\n```\ninternal class BankConnectionManager\n{\n IMessageGatewayFactory gatewayFactory;\n\n protected BankConnection[] banks;\n protected BankConnection catchAll;\n\n public BankConnectionManager(IMessageGatewayFactory gatewayFactory)\n {\n this.gatewayFactory = gatewayFactory;\n banks = new BankConnection[4];\n banks[0] = new Bank1(gatewayFactory);\n banks[1] = new Bank2(gatewayFactory);\n banks[2] = new Bank3(gatewayFactory);\n banks[3] = new Bank4(gatewayFactory);\n catchAll = new Bank5(gatewayFactory); \n }\n\n public IMessageSender[] GetEligibleBankQueues(int CreditScore, int HistoryLength, int LoanAmount)\n {\n ArrayList lenders = new ArrayList();\n\n for (int index = 0; index < banks.Length; index++) \n {\n if (banks[index].CanHandleLoanRequest(CreditScore, HistoryLength, LoanAmount))\n lenders.Add(banks[index].Queue);\n }\n if (lenders.Count == 0)\n lenders.Add(catchAll.Queue);\n IMessageSender[] lenderArray = (IMessageSender [])Array.CreateInstance(typeof(IMessageSender), lenders.Count);\n lenders.CopyTo(lenderArray);\n return lenderArray;\n }\n}\n```\n\nRunning with the modified code produces the following results:\n\n*Sending 50 Quote Requests, Using 3 credit Bureau Instances and a modified BankConnectionManager*\n\nThe test results now show that all 50 requests were serviced in 12 seconds, half of the original time. More importantly, the average time to service a loan quote request is now under 4 seconds, a 4-fold improvement over the initial version. This example demonstrates the advantage of predictive routing by using a [*Recipient List*](RecipientList.html). Because the loan broker has control over the routing we can decide how much 'intelligence' we can build into the routing logic without requiring any changes to the external parties. The trade-off is that the loan broker becomes more and more dependent on knowledge about the internal parties. For example, while the original BankConnectionManager treated all banks as equal, the modified version relies on the fact that Bank5 is a catch-all provider that should only be contacted if there are not other options. If Bank5 starts to offer better rates, the clients may no longer get the best possible deal.\n\nThe screen clip also demonstrates that response messages do not necessarily arrive in the order in which the requests were made. We can see that the test client received the response to request number 48 right after the response to request number 43. Because we are not missing any responses, this means that the test client received responses 44 through 47 before response 43. How did these requests 'pass' number 43? It looks like the request number 43 was routed to the General Retail Bank (Bank 3). After the Pawn Shop, this bank has the next least restrictive selection criteria and is more likely to be backed up with requests than the other banks. If requests number 44 through 47 did not match the General Retail Bank's criteria, the bank gateway would have received all responses for these requests while the quote request for request number 43 was still sitting in the bank3Queue. Because our loan broker is truly event driven it will reply to a loan request as soon as it receives all bank quotes. As a result, if the bank quotes for request number 44 arrive before the bank quotes for number 43 the loan broker will send the reply message for request number 44 first. This scenario also highlights the importance of the [*Correlation Identifier*](CorrelationIdentifier.html) in the messages so that the test client can match responses to requests even if they arrive out of order.\n\nTuning asynchronous, message-based systems can be a very complex task. Our example showed some of the most basic techniques of identifying and resolving bottlenecks. But even our simple example made it clear that correcting one problem (the credit bureau bottleneck) can cause another problem (the Bank 5 bottleneck) to surface. We can also clearly see the advantages of asynchronous messaging and event-driven consumers. We were able to process 50 quote requests in 12 seconds -- a synchronous solution would have taken 8 or 10 times as long!\n\n## A Few Words on Testing\n\nThe loan broker example demonstrates how a simple application can become reasonably complex once it becomes distributed, asynchronous and event-driven. We now have a dozen classes and use delegates throughout to deal with the event-driven nature of asynchronous message processing. The increased complexity also means increased risk of defects. The asynchronous nature means risk of defects that are hard to reproduce or trouble-shoot because they depend on specific temporal conditions. Because of these additional risks, messaging solutions require a very thorough approach to testing. While we could probably write a whole book on testing messaging solutions I do want to include some simple, actionable advice on testing in this example. Let me summarize the testing advice in the following there rules:\n\n- Isolate the application from the messaging implementation by using interfaces and implementation classes\n- Test the business logic with unit test cases before plugging it into the messaging environment\n- Provide a 'Mock' implementation of the messaging layer that allows you to test synchronously\n\n**Isolate the Application From the Messaging Implementation**\n\nTesting a single application is much easier than testing multiple, distributed applications connected by messaging channels. A single application allows us to trace through the complete execution path, we do not need a complex start-up procedure to fire up all components, and there is no need to purge channels between tests (see [*Channel Purger*](ChannelPurger.html). Sometimes it is useful to \"stub out\" some external functions while testing others. For example, while we are testing the bank gateway we might as well stub out the credit bureau gateway instead of actually sending messages to an external credit bureau process.\n\nHow can we achieve some of the benefits of testing inside a single application with a minimal impact on the application code? We can separate the implementation of a messaging gateway from the interface definition. That allows us to provide multiple implementations of the interface.\n\n*Separating Credit Bureau Interface from Implementation*\n\nBecause we encapsulated all messaging-specific logic inside the credit bureau gateway we can define a very simple interface:\n\n```\npublic interface ICreditBureauGateway\n{\n void GetCreditScore(CreditBureauRequest quoteRequest, OnCreditReplyEvent OnCreditResponse, Object ACT);\n void Listen();\n}\n```\n\nFor example, we can create a mock credit bureau gateway implementation that does not actually connect to any message queue but rather invokes the specified delegate right inside the GetCreditScore method. This mock implementation contains the same logic as the actual credit bureau so the remainder of the loan broker is completely unaware of this switcheroo.\n\n```\npublic class MockCreditBureauGatewayImp : ICreditBureauGateway\n{ \n\n private Random random = new Random();\n\n public MockCreditBureauGatewayImp() \n { }\n\n public void GetCreditScore(CreditBureauRequest quoteRequest, OnCreditReplyEvent OnCreditResponse, Object ACT)\n {\n CreditBureauReply reply = new CreditBureauReply();\n reply.CreditScore = (int)(random.Next(600) + 300);\n reply.HistoryLength = (int)(random.Next(19) + 1);\n reply.SSN = quoteRequest.SSN;\n OnCreditResponse(reply, ACT);\n }\n\n public void Listen()\n { }\n}\n```\n\n**Test the Business Logic with Unit Test Cases**\n\nThe implementation of the CreditBureau class demonstrated a clean separation of messaging-related functions (encapsulated in the base class) and the business logic (reduced to a randomizer in our simple example). In a real-life scenario the business logic would (hopefully) be somewhat more complex. In that case it pays off to move the getCreditScore and getCreditHistoryLength methods into a separate class together that does not have any dependency on the messaging layer (even though it is less visible, inheritance still carries dependencies from the subclass to the base class and related classes). We can the use a unit test tool such as nUnit (www.nunit.org) to write test cases without having to worry about messaging.\n\n**Provide a 'mock' Implementation of the Messaging Layer**\n\nThe mock implementation of the ICreditBureauGateway is simple and effective. But it also replaces all credit bureau gateway-related code so that the class CreditBureauGatewayImp has to be tested separately. If we want to eliminate the dependency (and the associated performance hit) on message queues but still execute the code inside the CreditBureauGatewayImp class we can use a mock implementation of the IMessageReceiver and IMessageSender interfaces. A simple mock implementation could look like this:\n\n```\npublic class MockQueue: IMessageSender, IMessageReceiver\n{\n\tprivate OnMsgEvent onMsg = new OnMsgEvent(DoNothing);\n\t\n\tpublic void Send(Message msg){\n\t\tonMsg(msg);\n\t}\n\t\n\tprivate static void DoNothing(Message msg){\n\t\t\n\t}\n\t\n\tpublic OnMsgEvent OnMessage \n\t{ \n\t\tget { return onMsg; } \n\t\tset { onMsg = value; }\n\t}\n\t\n\tpublic void Begin()\n\t{\n\t\t\n\t}\n\n public MessageQueue GetQueue()\n {\n return null;\n }\n\t\n}\n```\n\nWe can see that the Send triggers the onMsg delegate immediately without using any message queue. To use this mock queue for the credit bureau gateway we would have to make sure to reply with a message of the correct type. We would not be able to simply pass the request message back to the reply message. This implementation is not shown here but can be simple if, for example, we use a canned reply message.\n\n## Limitations of This Example\n\nThis section reminded us that even a simple messaging system (the loan broker really has to execute only two steps -- get the credit score and get the best bank quote) can get fairly complex due to the asynchronous nature and loose coupling between components. However, I still took a number of shortcuts to make the example fit inside the book. Specifically, the example does not address the following topics:\n\n- Error Handling\n- Transactions\n- Thread Safety\n\nThe example has no managed mechanism to handle errors. At this point, components simple spit out messages into the various console windows -- not a suitable solution for a production system. For a real implementation error messages should be routed to a central console so they can notify an operator in a unified way. The systems management patterns in the following chapter (e.g., the [*Control Bus*](ControlBus.html) address these requirements.\n\nThis example does not use transactional queues. For example, if the MessageRouter crashes after sending 2 out of 4 quote request messages to the banks, some banks will process a quite request while others will not. Likewise, if the loan broker crashes after it receives all bank quote replies but before it sends a reply to the client the client will never receive a reply. In a real-life system, actions like this need to be encapsulated inside transactions so that incoming messages are not consumed until the corresponding outbound message had been sent.\n\nThe loan broker implementation executes only in a single thread and does not worry about thread safety. For example, the BeginReceive method on an inbound message queue (hidden away in MessageReceiverGateway) is not called until the processing of the previous message has been completed. This is just fine for an example application (and a lot faster than the synchronous implementation) but for a high-throughput environment we would want to use a [*Message Dispatcher*](MessageDispatcher.html) that manages multiple performer threads.\n\n## Summary\n\nThis chapter walked us through the implementation of the loan broker application using asynchronous message queues and MSMQ. I intentionally did not shy away from showing implementation details in order to bring the real issues inherent in building asynchronous messaging applications to light. I tried to focus on the design trade-offs more so than the vendor-specific messaging API so that the example is also valuable for non-C# developers.\n\nThis example reminds us of the complexities of implementing even a simple messaging application. Many things that can be taken for granted in a monolithic application (e.g. invoking a method) can require a significant amount of coding effort when using asynchronous messaging. Luckily, the design patterns provide us with a language to describe some of the design trade-offs without having to descend too deeply into the vendor jargon.\n\n## Integration Pattern Language\n\n[Message Construct.](MessageConstructionIntro.html)\n\n[Message](Message.html)\n\n[Command Message](CommandMessage.html)\n\n[Document Message](DocumentMessage.html)\n\n[Event Message](EventMessage.html)\n\n[Request-Reply](RequestReply.html)\n\n[Return Address](ReturnAddress.html)\n\n[Correlation Identifier](CorrelationIdentifier.html)\n\n[Message Sequence](MessageSequence.html)\n\n[Message Expiration](MessageExpiration.html)\n\n[Format Indicator](FormatIndicator.html)\n\n[Message Routing](MessageRoutingIntro.html)\n\n[Pipes-and-Filters](PipesAndFilters.html)\n\n[Message Router](MessageRouter.html)\n\n[Content-based Router](ContentBasedRouter.html)\n\n[Message Filter](Filter.html)\n\n[Dynamic Router](DynamicRouter.html)\n\n[Recipient List](RecipientList.html)\n\n[Splitter](Sequencer.html)\n\n[Aggregator](Aggregator.html)\n\n[Resequencer](Resequencer.html)\n\n[Composed Msg. Processor](DistributionAggregate.html)\n\n[Scatter-Gather](BroadcastAggregate.html)\n\n[Routing Slip](RoutingTable.html)\n\n[Process Manager](ProcessManager.html)\n\n[Message Broker](MessageBroker.html)\n\n[Message\nTransformation](MessageTransformationIntro.html)\n\n[Message Translator](MessageTranslator.html)\n\n[Envelope Wrapper](EnvelopeWrapper.html)\n\n[Content Enricher](DataEnricher.html)\n\n[Content Filter](ContentFilter.html)\n\n[Claim Check](StoreInLibrary.html)\n\n[Normalizer](Normalizer.html)\n\n[Canonical Data Model](CanonicalDataModel.html)\n\n[Messaging Endpoints](MessagingEndpointsIntro.html)\n\n[Message Endpoint](MessageEndpoint.html)\n\n[Messaging Gateway](MessagingGateway.html)\n\n[Messaging Mapper](MessagingMapper.html)\n\n[Transactional Client](TransactionalClient.html)\n\n[Polling Consumer](PollingConsumer.html)\n\n[Event-driven Consumer](EventDrivenConsumer.html)\n\n[Competing Consumers](CompetingConsumers.html)\n\n[Message Dispatcher](MessageDispatcher.html)\n\n[Selective Consumer](MessageSelector.html)\n\n[Durable Subscriber](DurableSubscription.html)\n\n[Idempotent Receiver](IdempotentReceiver.html)\n\n[Service Activator](MessagingAdapter.html)\n\n[Messaging Channels](MessagingChannelsIntro.html)\n\n[Message Channel](MessageChannel.html)\n\n[Point-to-Point Channel](PointToPointChannel.html)\n\n[Publish-Subscr. Channel](PublishSubscribeChannel.html)\n\n[Datatype Channel](DatatypeChannel.html)\n\n[Invalid Message Channel](InvalidMessageChannel.html)\n\n[Dead Letter Channel](DeadLetterChannel.html)\n\n[Guaranteed Delivery](GuaranteedMessaging.html)\n\n[Channel Adapter](ChannelAdapter.html)\n\n[Messaging Bridge](MessagingBridge.html)\n\n[Message Bus](MessageBus.html)\n\n[Systems Mgmt.](SystemManagementIntro.html)\n\n[Control Bus](ControlBus.html)\n\n[Detour](Detour.html)\n\n[Wire Tap](WireTap.html)\n\n[Message History](MessageHistory.html)\n\n[Message Store](MessageStore.html)\n\n[Smart Proxy](SmartProxy.html)\n\n[Test Message](TestMessage.html)\n\n[Channel Purger](ChannelPurger.html)", "znaku_textu": 79006, "slov": 10891, "odkazu": 94, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/patterns/messaging/ComposedMessagingMSMQ.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 14:51:04", "sha256": "2ce2911b2f9a410825d8ac135a7c98cf603b5090e35aef6adccd740a8e2ee8a8", "hloubka": 3, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://www.amazon.com/exec/obidos/ASIN/0321127420/enterpriseint-20", "http://www.microsoft.com/msmq", "http://www.amazon.com/exec/obidos/ASIN/0201734117/enterpriseint-20", "http://www.amazon.com/exec/obidos/ASIN/0471958697/enterpriseint-20", "https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "https://www.architectelevator.com/book", "https://www.cloudstrategybook.com/", "https://www.platformstrategybook.info/"]} {"url": "https://www.enterpriseintegrationpatterns.com/ComposedMessagingTIBCO.html", "titulek": "Asynchronous Implementation with TIBCO ActiveEnterprise - Enterprise Integration Patterns", "h1": "", "popis": "The previous two implementations of the Loan Broker used integration frameworks that provided basic Message Channel functionality. For example, both Axis and MSMQ provided APIs to send messages to or receive messages from a Message Channel while the application had to take care of pretty much everything else. We chose this type of implementation intentionally to demonstrate how an integration solution can be built from the ground up, using commonly available Java or C# libraries.", "klicova_slova": "Asynchronous Implementation with TIBCO ActiveEnterprise,integration, messaging, events, patterns, event-driven, coupling, eai, middleware, application integration, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns", "og:title": "Asynchronous Implementation with TIBCO ActiveEnterprise - Enterprise Integration Patterns", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/ComposedMessagingTIBCO.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/eip1_patterns_wide.png"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Solution Architecture"}, {"uroven": 2, "text": "The Implementation Toolset"}, {"uroven": 2, "text": "The Interfaces"}, {"uroven": 2, "text": "Implementing the Synchronous Services"}, {"uroven": 2, "text": "The Loan Broker Process"}, {"uroven": 2, "text": "Managing Concurrent Auctions"}, {"uroven": 2, "text": "Execution"}, {"uroven": 2, "text": "Conclusion"}, {"uroven": 2, "text": "Integration Pattern Language"}], "markdown": "| | Asynchronous Implementation with TIBCO ActiveEnterprise[Messaging Patterns](index.html) » [Interlude: Composed Messaging](ComposedMessagingExample.html) | [Contents](toc.html)[⇐ Prev](ComposedMessagingMSMQ.html)[Next ⇒](MessagingEndpointsIntro.html) |\n| --- | --- | --- |\n\n*(By Michael J. Rettig)*\n\nThe previous two implementations of the Loan Broker used integration frameworks that provided basic [*Message Channel*](MessageChannel.html) functionality. For example, both Axis and MSMQ provided APIs to send messages to or receive messages from a [*Message Channel*](MessageChannel.html) while the application had to take care of pretty much everything else. We chose this type of implementation intentionally to demonstrate how an integration solution can be built from the ground up, using commonly available Java or C# libraries.\n\nMany commercial EAI product suites offer substantially more functionality to streamline the development of integration solutions. These product suites typically include visual development environments that allow for \"drag-drop\" configuration of [*Message Translator*](MessageTranslator.html)s and [*Process Manager*](ProcessManager.html)s. Many also provide sophisticated system management and metadata management functions. We chose the TIBCO ActiveEnterprise integration suite for this example implementation. As with the previous implementations, we focus primarily on design decisions and trade-offs and only introduce as much product-specific language as is necessary to understand the solution. Therefore, this section should be useful even if you have not worked with TIBCO ActiveEnterprise before. If you are interested in detailed product or vendor information please visit [www.tibco.com](http://www.tibco.com).\n\nThis example implementation also differs in the solution design by using an Auction-style [*Scatter-Gather*](BroadcastAggregate.html) approach. This approach uses a [*Publish-Subscribe Channel*](PublishSubscribeChannel.html) instead of a [*Recipient List*](RecipientList.html) so that the Loan Broker can send the quote request to any number of banks. This type of Scatter-Gather pattern performs a dynamic Request/Reply with an unknown number of listeners. Additionally, the implementation of the Loan Broker component uses the business process management functionality provided by TIBCO’s [*Process Manager*](ProcessManager.html) tool.\n\n## Solution Architecture\n\nOur application is a simple bank quote request system. Customers submit quote requests to a loan broker interface. The loan broker fulfills the request by first obtaining a credit score, then requesting quotes from a number of banks. Once the loan broker obtains quotes from the banks it selects the best quote and returns it to the customer (see picture).\n\nClients of the system expect a synchronous Request-Reply interface to the loan broker – the client sends a quote request and waits for a reply message from the loan broker. The loan broker in turn uses a Request-Reply interface to communicate with the credit bureau to obtain credit scores. Once the initial client request is received, the loan broker has the option to perform asynchronous operations behind the distributed, synchronous facade. This allows the loan broker to utilize an auction-style Scatter-Gather with a [*Publish-Subscribe Channel*](PublishSubscribeChannel.html) to acquire the bank quotes from multiple banks.\n\n*TIBCO Loan Broker Solution Architecture*\n\nThe auction sequence begins by publishing the request for quotes message to the bank.loan.request [*Publish-Subscribe Channel*](PublishSubscribeChannel.html)so that any interested party can listen for the message and provide their own rates. The number of banks submitting replies is unknown and can vary for each quote request. The auction works by opening the auction to the banks, then waiting a predefined amount of time for response messages on the channel bank.loan.reply. Each time a bid is received the timeout is reset, giving other banks time to submit another bid if possible. In this case, the bids of other banks are public, so another bank could actually listen for other bids and place a counter bid if desired.\n\nThe loan broker broadcasts the request for a quote to an unknown number of recipients. This is quite different from a Recipient List which involves sending the request to a predefined list of banks. This is reflected in the [*Aggregator*](Aggregator.html)’s Completeness Condition. Instead of waiting for a response from each bank like the previous implementations, the [*Aggregator*](Aggregator.html) relies solely on a time-out condition to terminate the auction. The [*Aggregator*](Aggregator.html) simply ignores any responses received after the auction times out. If no bank replies within the specified interval, the [*Aggregator*](Aggregator.html) will send response message to the client indicating that no quotes were obtained.\n\n*Activity Diagram Describing the Process Manager Behavior*\n\nIn this implementation, the [*Content Enricher*](DataEnricher.html) and [*Aggregator*](Aggregator.html) functions are implemented within the [*Process Manager*](ProcessManager.html) component. As a result, the solution architecture diagram does not describe the details of the interaction between the components because they are embedded in a single component. Instead, we need to have a look at the activity diagram that represents the Process Template definition used by the [*Process Manager*](ProcessManager.html). An initial activity diagram cleanly defines the role of the loan broker as well as providing the basis for the Process Template. From the diagram, we can see that the loan broker has several responsibilities. This translates well into a process diagram which shows graphically, the exact order of events, and decision paths.\n\n## The Implementation Toolset\n\nIn order to explain the design of our solution, we need to introduce some basic concepts about the TIBCO product suite. Implementing TIBCO solutions often requires evaluating different tools for a particular problem. At times, a problem can be solved with several different tools. The trick is picking the best one. We limit the discussion to only those TIBCO features that are required to construct the example implementation:\n\n- TIB/RendezVous Transport\n- TIB/IntegrationManager Process Manager tool\n- TIBCO Repository for Metadata Management\n\n**TIB/RendezVous Transport**\n\nAt the heart of TIBCO's messaging suite is the TIB/Rendezvous transport layer. Rendezvous provides the messaging mechanism for sending and receiving TIBCO messages on the \"information bus\". TIBCO supports a wide range of transports including (but not limited to) JMS, HTTP, FTP, and email. Rendezvous will provide the underlying transport for the messages in our example. The transport supports both synchronous and asynchronous messages, as well as [*Point-to-Point Channel*](PointToPointChannel.html)s and [*Publish-Subscribe Channel*](PublishSubscribeChannel.html)s. Each channel can be configured for different service levels:\n\n- Reliable Messaging (RV) - provides high performance, but at the realistic risk of losing messages.\n- Certified messages (RVCM) - at least once delivery\n- Transactional messaging (RVTX) - guaranteed once and only once delivery\n\nSimilar to the MSMQ examples in this book, TIBCO provides an open API for creating messaging solutions using Java or C++, and includes a range of tools for simplifying the development process.\n\n**TIB/IntegrationManager Process Manager tool**\n\nIntegrationManager is a TIBCO development tool consisting of a rich user interface for designing workflow solutions, and a Process Manager engine for executing them. The GUI provides an extensive array of configuration, workflow, and implementation options that are stored in the TIBCO Repository. TIBCO uses the repository as the central configuration artifact for the system. It holds all metadata, workflow and custom code.\n\nThe workflow component of the solution is an aspect that sets it apart from code level solution. For the loan broker example, IntegrationManager provides asynchronous and synchronous messaging, as well as basic workflow including *ServerSessionState* [[EAA](http://www.amazon.com/exec/obidos/ASIN/0321127420/enterpriseint-20)] For our purposes, we can break IntegrationManager into 3 parts: the channel, job creator, and the process diagram.\n\n*TIB/IntegrationManager Components*\n\nEvery process in Integration Manager creates a \"job\" (or Process Instance) which provides a central session object for maintaining state. This object includes a slotted environment with get and put operations for storing objects, as well as utility methods for interacting with the session. \nA simple GUI allows TIBCO developers to create Process Definitions (called Process Diagrams in TIBCO) that specify the sequence of tasks the job executes. Process Definitions resemble UML style activity diagrams, consisting of tasks, connected by transition lines (see diagram). However, the diagrams only provide the skeleton; behind each activity (i.e., box on the diagram) is a good amount of configuration and code. For our example, we require some code for processing the loans. Integration manager uses ECMAScript (commonly referred to as \"JavaScript\") as the underlying scripting language.\n\n*TIB/IntegrationManager Process Diagram Example*\n\nA typical process diagram includes a series of integration tasks. These include control tasks, such as forks, sync bars, or decision points, signal tasks to send and receive messages, and execution tasks such as data translation, routing, and system integration. The basic diagram pictured here includes two tasks: an ECMAScript task that executes some custom logic, and a signal out task that publishes a message to a channel. Task transitions can contain logic for selecting a particular route based upon message contents or other criteria.\n\n**TIBCO Repository for Metadata Management**\n\nIntegration and messaging nearly always requires some form of self-describing data (see [*Introduction to Message Transformation*](MessageTransformationIntro.html)). TIBCO defines metadata classes as Active Enterprise (AE) objects stored in the TIBCO repository. Every AE object sent across a message channel includes a [*Format Indicator*](FormatIndicator.html) to indicate the class definition that this message adheres to.\n\nManaging message metadata is an important part of the development process. TIBCO developers can define the metadata directly within the development environment, can extract it from external systems such as relational databases (using a Metadata Adapter as described in [*Channel Adapter*](ChannelAdapter.html)), or import XML Schemas. The metadata provides an explicit contract for objects and messages in the system. Once the classes are defined in the TIBCO repository, the objects are available for instantiation and manipulation within ECMA script:\n\n```\n//Instantiation of a TIBCO AE class\nvar bank = new aeclass.BankQuoteRequest();\nbank.CorrelationID = job.generateGUID();\nbank.SSN = job.request.SSN;\n```\n\nHowever, remember that this is a dynamic, scripted environment with limited compile-time type checking. Changing a metadata definition can easily break another part of your system. Without proper testing and development practices, message based systems can easily become \"add only\" systems, meaning metadata is only added to the system, and never changed for fear of breaking something.\n\n## The Interfaces\n\nThe Solution Architecture diagram shows us that the solution requires the following services.\n\n**Loan Broker**\n\n- Receives the initial request\n- Obtains a credit score\n- Holds loan auction with banks\n- Returns best loan offer to client\n\n**Credit Service**\n\n- Provides a credit score based upon SSN\n\n**Bank(s)**\n\n- Submit a quote based upon the credit rating and loan amount\n\nEach service is accessible through an external interface. For each such interface we have to make the following design decisions:\n\n- Conversation Style: Synchronous vs. Asynchronous\n- Quality of Service Level\n\nThe conversation styles for the interfaces have been predetermined by the solution architecture. The loan broker and credit service will both need synchronous interfaces, while the communication with the banks will be purely asynchronous.\n\nService levels for messaging solutions can become quite complicated especially given failover scenarios. Fortunately, the loan example service level resolves to a simple solution. In event of failure (timeout, dropped messages, down systems), the original request can be resubmitted (the loan broker as an [*Idempotent Receiver*](IdempotentReceiver.html)). Remember that we are only obtaining a quote at this point. It is not yet a legally binding agreement. Of course, this type of assumption needs to be documented in the system and understood by all parties involved. For example, the banks need to know that a quote may be resubmitted a second time. If the banks track customer loan requests for fraud detection purposes we may have to change the solution to avoid sending duplicate requests, for example by using [*Guaranteed Delivery*](GuaranteedMessaging.html).\n\n## Implementing the Synchronous Services\n\nThe loan broker system has 2 synchronous interfaces – between the customer and the loan broker and between the loan broker and the credit bureau. TIBCO implements RPC style messaging with operations using [*Request-Reply*](RequestReply.html) and [*Command Message*](CommandMessage.html). Essentially, this is a synchronous wrapper to the underlying TIBCO messaging engine. During the invocation of TIBCO operations, you can listen to the request and reply messages passing across the bus. The request message is published on the specified channel (for example customer.loan.request). The message includes a Return Address that specifies the address of a so-called INBOX channel for the reply. TIBCO hides the asynchronous details behind an RPC-style programming model. In Integration Manager, the domain operations such as obtain credit score, etc. are defined as part of the AE classes and can be invoked from the process modeling tool.\n\nFor example, to expose the loan broker as a synchronous interface we must perform several implementation steps. The implementation of the credit bureau service follows closely to these same steps.\n\n**Define the AE Class Definitions**\n\nAE classes define the data format for messages sent across TIB/RendezVous channels. Defining a class in Integration Manager is quite different from creating a class in your favorite IDE. AE classes are defined through a series of dialog boxes (see picture) from the TIB/IntegrationManager IDE. The dialog boxes allow you to select a name for your class, and then designate fields for the class. The fields can be typed as integers, floats, doubles, or composed of other AE classes.\n\n*Defining an AE Class with Attributes and Operations*\n\n**Define the AE Operation Definitions**\n\nSimilar to adding interface methods, operations can be added to an AE class. The parameters and the return types can be specified in the definition. True to an interface, no implementation is specified. The implementation is bound later when we use the job creator to bind a channel to a process instance.\n\n**Create a Process Diagram**\n\nA process diagram provides the implementation for the operation. The operations implemented in this example require a return parameter. Unlike method implemented in code, a process diagram doesn't have a \"return\" value. Instead, we specify the slot in the job where the return value will be placed. We designate this in the job creator, and we must remember to properly assign the value to the job slot in our process diagram. The actual implementation of the process diagram will be discussed in detail in a later section.\n\n**Create a Client/Server Channel to Receive the Requests**\n\nThe channel allows us to define our transport, message definition, service, and subject. For our synchronous operations we need a client/server channel. We can specify the AE classes that we created in step 1. From our initial interface definitions, we chose Rendezvous with reliable messaging. Configuring these options is just a matter of clicking and selecting the proper options.\n\n*Defining Channel Properties*\n\n**Configure a Job Creator to Instantiate the Process Diagram**\n\nThe job creator retrieves values from the channel and passes them to the process diagram by creating a job and initializing its environment slots. Once the job is created, the process diagram is instantiated. Execution will follow the path defined by the activity diagram. Once the process finishes, the job creator returns the reply back to the channel. We can see in the job creator dialog the name of our operation.\n\n*Configuring the Job Creator*\n\n## The Loan Broker Process\n\nWith our synchronous services in place, we can implement the loan broker to tie everything together. The included diagram represents the loan broker process. This process defines the behavior of the Loan Broker component. In our prior steps, we defined the AE operation, channel, and job creator to instantiate the process diagram when a client submits a message to the CreditRequest channel.\n\n**Design Considerations**\n\nFrom a design perspective, we need to be very careful as to what is included in the process diagram. Large, complex diagram quickly become unmanageable. It is critical to create an effective separation of concerns within the diagrams, avoiding an ugly mixture of business logic and process logic inside a single process definition. Defining what is process logic and what is business logic is hard. A good rule of thumb is to think of process logic as external system interaction. What system do I connect to next? What do I do if the system is not available? Business logic will typically involve more domain specific language. How do I activate an order? How do I calculate a credit score? How do I create a quote for a bank loan? Given the complex nature of business code, a full featured development language is often the best choice for implementation. Most process management tools, including Integration Manager, will allow you to integrate directly with Java or another language.\n\nFor those familiar with the MVC (Model, View, Controller) concept (see, for example, [[POSA](http://www.amazon.com/exec/obidos/ASIN/0471958697/enterpriseint-20)], the implementation can be viewed in a similar context. By simply renaming view to workflow, our implementation falls into a concise definition.\n\n1. Workflow - A visualized model of the workflow\n2. Controller - The process engine that receives events from the message bus, executing the proper component of the process workflow.\n3. Model - The Underlying business code (ECMAScript, JavaScript, Java, J2EE, etc)\n\n**The Process Model Implementation**\n\n*The Loan Broker Process Definition*\n\nOur diagram contains a mix of script execution boxes and custom tasks that perform integration actions. One of the big advantages of modeling processes using a visual process modeling tool is the fact that the running \"code\" looks very similar to the UML activity diagram that we used to design the solution.\n\nSince each task icon can contain actual code or important configuration parameters, we'll walk through each task and describe it in more detail.\n\nThe first box represents an ECMAScript to instantiate an AE object and assign values to the fields.\n\n```\nvar credit = new aeclass.CreditBureauRequest();\ncredit.SSN = job.request.SSN;\njob.creditRequest = credit;\n```\n\nThe credit request created is needed as a parameter in the next activity which invokes the synchronous operations call to the credit bureau. The credit bureau is implemented as a separate process diagram consisting of a single ECMA task that receives the message and returns a credit score. The synchronous operation implies that the Loan Broker process will wait until a reply message from the credit bureau arrives.\n\nOnce the loan broker receives a reply from the credit bureau, we can see in the diagram that another AE object needs to be created to publish a quote request to any participating banks. To implement this function, we'll use the Mapper task that allows us to graphically map data items from multiple sources. The Mapper is a visual implementation of the [*Message Translator*](MessageTranslator.html) pattern. The Mapper task demonstrates one of the advantages of managing metadata. Because IntegrationManager has access to the metadata defining the structure of each object, the mapper displays the structure of the source and target objects and allows us to visually map the fields with a few mouse clicks. A new object is instantiated with the values from the input object. We use the job object’s generateGUID method to generate a unique [*Correlation Identifier*](CorrelationIdentifier.html) and assign it to the Correlation ID field of the bankRequest object. As we will see later, the Correlation ID field is important to allow us to process more than one loan request at the same time.\n\n*The Visual Mapper Task Creates the Bank Request Message*\n\nInstead of using the visual Mapper we could have used an ECMAScript task to accomplish the same function. The equivalent code would look like the following. You can see how we create a new object of type BankQuoteRequest and assign each field from the source objects:\n\n```\nvar bank = new aeclass.BankQuoteRequest();\n//Create ID to uniquely identify this transaction.\n// We will need this later to filter replies\nbank.CorrelationID = job.generateGUID();\nbank.SSN = job.request.SSN;\nbank.CreditScore = job.creditReply.CreditScore;\nbank.HistoryLength = job.creditReply.HistoryLength;\nbank.LoanAmount = job.request.LoanAmount;\nbank.LoanTerm = job.request.LoanTerm;\n\njob.bankRequest = bank;\n```\n\nWhether to use the visual Mapper Task or an ECMAScript Task to implement a [*Message Translator*](MessageTranslator.html) function depends on the type and complexity of a mapping. The Mapper Task can give us a nice visual view of the connections between source and target object, but can become hard to read when the objects have many fields. On the other hand, the Mapper includes special functions that allow us to map repeating fields (i.e. Arrays) with a single line instead of having to code a loop.\n\nNext, a very simple ECMAScript task instantiates a bid array that will hold the incoming bank responses. This script contains only a single line:\n\n```\njob.bids = new Array();\n```\n\nThe next task is a Signal Out task that publishes the bankRequest object to the bank.loan.request channel. This is an asynchronous action, so the process immediately transitions to the next step without waiting for a reply.\n\nThe following tasks waits for incoming quote reply messages on the bank.loan.reply channel. If a message is received within the specified timeout interval, the script task adds the received message to the bids array:\n\n```\njob.bids[job.bids.length] = job.loanReply;\n```\n\nOnce the auction period ends, the Signal In task times out and transitions the process to the final task. This ECMAScript task implements the Aggregation Algorithm of the [*Aggregator*](Aggregator.html), selecting the best quote from all the bids. The code creates a new instance of the LoanQuoteReply, transfers the SSN and LoanAmount fields from the request object to this reply object, and loops through the bids array to find the best quote.\n\n```\nvar loanReply = new aeclass.LoanQuoteReply();\nloanReply.SSN = job.request.SSN;\nloanReply.LoanAmount = job.request.LoanAmount;\n\nvar bids = job.bids;\nfor(var i = 0; i < bids.length; i++){\n var item = bids[i];\n if(i == 0 || (item.InterestRate < loanReply.InterestRate)){\n loanReply.InterestRate = item.InterestRate;\n loanReply.QuoteID = item.QuoteID;\n }\n}\n\njob.loanReply = loanReply;\n```\n\nThe last line of the ECMA script places the loan reply object to be returned to customer into a job slot . We configured the loan broker job creator to return the loanReply attribute of the job to the customer as the reply message (see picture). When the process finishes, the job creator pulls the message found in the loanReply attribute of the job, and returns the value to the client.\n\n*Configuring the Job Creator’s Rule Set to Return the Best Quote*\n\n## Managing Concurrent Auctions\n\nThe implementation of the auction provided a few development hurdles. Concurrency adds a degree of complexity to the problem. For the auction to work, we need to publish an asynchronous message then wait a specified amount of time for replies. However, if multiple auctions occur at once, we must ensure that each loan broker only receives the replies they are concerned about, and not all the replies.\n\nThis functionality was implemented using a [*Correlation Identifier*](CorrelationIdentifier.html) and a [*Selective Consumer*](MessageSelector.html) to discard unrelated messages. Ideally, we would want this filtering to occur at the channel level and not at the process instance. However, that would require the dynamic creation of channel subjects at runtime, one for each pending auction. Presently, there are implementation constraints within Integration Manager that prevent us from using this approach. When a process diagram is instantiated at runtime, it needs to register all subjects it is listening to. This allows the process engine to listen for any messages on those subjects and queue them as needed. Queuing prevents timing bugs due to process diagrams that publish on one subject then transition to another state to listen for a reply. In an asynchronous world, if the transition takes too long, the reply could be received before the process diagram gets a chance to subscribe. Therefore, the process diagram conveniently queues inbound messages, but at the cost of disallowing dynamic subjects. Given the requirements of the present example, filtering at the process level works perfectly well. The [*Correlation Identifier*](CorrelationIdentifier.html) is a unique identifier assigned to each process that is then passed to each bank process and is included in each reply. A single line of ECMAScript provides the filtering in the SignalIn task:\n\n```\n(event.msg.CorrelationID == job.bankRequest.CorrelationID)\n```\n\n## Execution\n\nWith the example in place, we can now run the solution. Running the solution involves starting the Integration Manager engine. To test the solution, a simple test client is included in the repository that submits loan requests every 5 seconds. Simple stubs are used for the implementations of the credit service and the banks. One of the advantages of [*Publish-Subscribe Channel*](PublishSubscribeChannel.html)s is that we can easily listen to all messages on the message bus to inspect the message flow. We used a simple tool to log all messages to the console. For clarity, we truncated the message content to show only relevant fields and eliminated the format identification and tracking information included in each message. We can see from the logs, the times, subjects, and inboxes of messages. The inboxes are the return addresses for the synchronous services.\n\n```\ntibrvlisten: Listening to subject >\n\n2003-07-12 16:42:30 (2003-07-12 21:42:30.032000000Z):\nsubject=customer.loan.request,\nreply=_INBOX.C0A80164.1743F10809898B4B60.3,\nSSN=1234567890 LoanAmount=100000.000000 LoanTerm=360\n\n2003-07-12 16:42:30 (2003-07-12 21:42:30.052000000Z):\nsubject=credit.loan.request,\nreply=_INBOX.C0A80164.1743F10809898B4B60.4,\nSSN=1234567890\n\n2003-07-12 16:42:30 (2003-07-12 21:42:30.092000000Z):\nsubject=bank.loan.request,\nSSN=1234567890 CreditScore=345 HistoryLength=456 LoanAmount=100000.000000\nCorrelationID=\"pUQI3GEWK5Q3d-QiuLzzwGM-zzw\" LoanTerm=360\n\n2003-07-12 16:42:30 (2003-07-12 21:42:30.112000000Z):\nsubject=bank.loan.reply,\nInterestRate=5.017751 QuoteID=\"5E0x1K_dK5Q3i-QiuMzzwGM-zzw\" ErrorCode=0 CorrelationID=\"pUQI3GEWK5Q3d-QiuLzzwGM-zzw\"\n\n2003-07-12 16:42:30 (2003-07-12 21:42:30.112000000Z):\nsubject=bank.loan.reply,\nInterestRate=5.897514 QuoteID=\"S9iIAXqgK5Q3n-QiuNzzwGM-zzw\" ErrorCode=0 CorrelationID=\"pUQI3GEWK5Q3d-QiuLzzwGM-zzw\"\n```\n\nWe see the request message from the test client on the channel customer.loan.request. The message includes the social security number of the customer as well as the desired loan amount and term (100,000 Dollars for 360 months). The message specifies the test client's private reply channel _INBOX.C0A80164.8CC3F0E4FAA97E1EA8.123 as the [*Return Address*](ReturnAddress.html) so that the loan broker knows where to send the reply message.\n\nThe next message represents the request from the loan broker to the credit service, carrying the private inbox of the loan broker as the [*Return Address*](ReturnAddress.html). The credit service only requires the social security number. The reply message is not captured by our logging tool because _INBOX channels are private channels.\n\nAfter the loan broker receives the credit score, it publishes a message to the bank.loan.request channel. The two bank stubs in our example immediately reply with one interest rate each. Each bank also assigns a unique QuoteID to the reply so that the customer can refer back to it later. The auction period times out in a few seconds. Because we cannot see the reply message from the loan broker process to the test client we can look in the debug log for the process manager engine to verify that our test client received the lower interest rate. Within this message we can see the CorrelationID and the [*Format Indicator*](FormatIndicator.html) for the class.\n\n```\nreply= class/LoanQuoteReply {\n SSN=1234567890\n InterestRate=5.017751017038945\n LoanAmount=100000.0\n QuoteID=5E0x1K_dK5Q3i-QiuMzzwGM-zzw\n}\n```\n\n## Conclusion\n\nThe solution provides some interesting points for comparison. Visual Workflows can be easy to view and understand, but just as in code, this relative simplicity can turn into a maze of confusion as implementations become more complex. The dynamic nature of the Scatter-Gather allows for a clean decoupling of the pub/sub interface. The loan broker can publish bank loan requests without any knowledge of the subscribing banks. Similarly, the [*Aggregator*](Aggregator.html) for the replies doesn't need to know the number of expected replies. The potential downside of this flexibility is that it can hide errors resulting from incorrect subject naming, developer error, or dropped messages.\n\nThe visual, GUI driven implementation with TIBCO provides a corollary approach to the code level implementations. While the sheer power and flexibility of code cannot be argued against, a more graphical environment can greatly simplify very complex tasks. Configuration is a very large part of integration, and graphical environments work well for this. At times, it may seem that developers have to choose between writing code and using a vendor development tool. However, they can often coexist effectively. For instance, you could choose to use Integration Manager to model integration workflows, and use J2EE session beans to implement domain logic.\n\nFor the sake of brevity, our example was relatively simple, leading to an easy to understand scenario. Real world implementations are rarely this simple. Rapid development tools can facilitate faster initial development, but can limit your development options. Process management tools can help hide the complexities of messaging, allowing developers to focus on integration tasks without worrying about what happens behind the scenes. However, ignorance of messaging infrastructure has led to the death of more than one project.\n\n## Integration Pattern Language\n\n[Message Construct.](MessageConstructionIntro.html)\n\n[Message](Message.html)\n\n[Command Message](CommandMessage.html)\n\n[Document Message](DocumentMessage.html)\n\n[Event Message](EventMessage.html)\n\n[Request-Reply](RequestReply.html)\n\n[Return Address](ReturnAddress.html)\n\n[Correlation Identifier](CorrelationIdentifier.html)\n\n[Message Sequence](MessageSequence.html)\n\n[Message Expiration](MessageExpiration.html)\n\n[Format Indicator](FormatIndicator.html)\n\n[Message Routing](MessageRoutingIntro.html)\n\n[Pipes-and-Filters](PipesAndFilters.html)\n\n[Message Router](MessageRouter.html)\n\n[Content-based Router](ContentBasedRouter.html)\n\n[Message Filter](Filter.html)\n\n[Dynamic Router](DynamicRouter.html)\n\n[Recipient List](RecipientList.html)\n\n[Splitter](Sequencer.html)\n\n[Aggregator](Aggregator.html)\n\n[Resequencer](Resequencer.html)\n\n[Composed Msg. Processor](DistributionAggregate.html)\n\n[Scatter-Gather](BroadcastAggregate.html)\n\n[Routing Slip](RoutingTable.html)\n\n[Process Manager](ProcessManager.html)\n\n[Message Broker](MessageBroker.html)\n\n[Message\nTransformation](MessageTransformationIntro.html)\n\n[Message Translator](MessageTranslator.html)\n\n[Envelope Wrapper](EnvelopeWrapper.html)\n\n[Content Enricher](DataEnricher.html)\n\n[Content Filter](ContentFilter.html)\n\n[Claim Check](StoreInLibrary.html)\n\n[Normalizer](Normalizer.html)\n\n[Canonical Data Model](CanonicalDataModel.html)\n\n[Messaging Endpoints](MessagingEndpointsIntro.html)\n\n[Message Endpoint](MessageEndpoint.html)\n\n[Messaging Gateway](MessagingGateway.html)\n\n[Messaging Mapper](MessagingMapper.html)\n\n[Transactional Client](TransactionalClient.html)\n\n[Polling Consumer](PollingConsumer.html)\n\n[Event-driven Consumer](EventDrivenConsumer.html)\n\n[Competing Consumers](CompetingConsumers.html)\n\n[Message Dispatcher](MessageDispatcher.html)\n\n[Selective Consumer](MessageSelector.html)\n\n[Durable Subscriber](DurableSubscription.html)\n\n[Idempotent Receiver](IdempotentReceiver.html)\n\n[Service Activator](MessagingAdapter.html)\n\n[Messaging Channels](MessagingChannelsIntro.html)\n\n[Message Channel](MessageChannel.html)\n\n[Point-to-Point Channel](PointToPointChannel.html)\n\n[Publish-Subscr. Channel](PublishSubscribeChannel.html)\n\n[Datatype Channel](DatatypeChannel.html)\n\n[Invalid Message Channel](InvalidMessageChannel.html)\n\n[Dead Letter Channel](DeadLetterChannel.html)\n\n[Guaranteed Delivery](GuaranteedMessaging.html)\n\n[Channel Adapter](ChannelAdapter.html)\n\n[Messaging Bridge](MessagingBridge.html)\n\n[Message Bus](MessageBus.html)\n\n[Systems Mgmt.](SystemManagementIntro.html)\n\n[Control Bus](ControlBus.html)\n\n[Detour](Detour.html)\n\n[Wire Tap](WireTap.html)\n\n[Message History](MessageHistory.html)\n\n[Message Store](MessageStore.html)\n\n[Smart Proxy](SmartProxy.html)\n\n[Test Message](TestMessage.html)\n\n[Channel Purger](ChannelPurger.html)", "znaku_textu": 34194, "slov": 4792, "odkazu": 90, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/patterns/messaging/ComposedMessagingTIBCO.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 14:51:06", "sha256": "46bfd765509915cf7c0fe8ff862dec647fff33e37794e3bfd3291b94763df702", "hloubka": 3, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://www.tibco.com/", "http://www.amazon.com/exec/obidos/ASIN/0321127420/enterpriseint-20", "http://www.amazon.com/exec/obidos/ASIN/0471958697/enterpriseint-20", "https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "https://www.architectelevator.com/book", "https://www.cloudstrategybook.com/", "https://www.platformstrategybook.info/"]} {"url": "https://www.enterpriseintegrationpatterns.com/ComposedMessagingWS.html", "titulek": "Synchronous Implementation using Web Services - Enterprise Integration Patterns", "h1": "", "popis": "This section describes the implementation of the loan broker example using Java and XML Web Services. We use the open-source Apache AXIS toolkit to take care of the Web Services mechanics for us. We do not want this to be an exercise in Java development and chose this tool to abstract the complexity of designing and implementing a synchronous Web Service. The discussion in this section focuses on the design decisions that we make in designing a synchronous messaging solution.", "klicova_slova": "Synchronous Implementation using Web Services,integration, messaging, events, patterns, event-driven, coupling, eai, middleware, application integration, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns", "og:title": "Synchronous Implementation using Web Services - Enterprise Integration Patterns", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/ComposedMessagingWS.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/eip1_patterns_wide.png"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Solution Architecture"}, {"uroven": 2, "text": "Web Services Design Considerations"}, {"uroven": 2, "text": "Apache Axis"}, {"uroven": 2, "text": "Service Discovery"}, {"uroven": 2, "text": "The Loan Broker Application"}, {"uroven": 2, "text": "Components of the Loan Broker Application"}, {"uroven": 2, "text": "Client Application"}, {"uroven": 2, "text": "Running the Solution"}, {"uroven": 2, "text": "Performance Limitations"}, {"uroven": 2, "text": "Limitations of This Example"}, {"uroven": 2, "text": "Summary"}, {"uroven": 2, "text": "Integration Pattern Language"}], "markdown": "| | Synchronous Implementation using Web Services[Messaging Patterns](index.html) » [Interlude: Composed Messaging](ComposedMessagingExample.html) | [Contents](toc.html)[⇐ Prev](ComposedMessagingExample.html)[Next ⇒](ComposedMessagingMSMQ.html) |\n| --- | --- | --- |\n\n*(By Conrad F. D'Cruz)*\n\nThis section describes the implementation of the loan broker example using Java and XML Web Services. We use the open-source Apache AXIS toolkit to take care of the Web Services mechanics for us. We do not want this to be an exercise in Java development and chose this tool to abstract the complexity of designing and implementing a synchronous Web Service. The discussion in this section focuses on the design decisions that we make in designing a synchronous messaging solution.\n\n## Solution Architecture\n\n*Web Services Solution Architecture*\n\nThe figure above shows the overall architecture of the synchronous predictive web service example. There are seven significant interfaces between the loan broker and the rest of the solution. As indicated, SOAP over HTTP is used to communicate between each pair of participants.\n\nThe first interface is the entry point in to the loan broker that the client application uses to pass in the message containing the loan application information. The client receives the results of the query back from the loan broker via the same interface. Although the Axis server is not shown in this diagram it receives the Message from the client and implements the [*Service Activator*](MessagingAdapter.html).\n\nThe second interface is between the loan broker and the credit agency. The credit agency is an external bureau and provides a Web service interface for the loan broker to acquire additional customer data that is required by the banks. The loan broker enriches the incoming request with the data from the credit agency, implementing a [*Content Enricher*](DataEnricher.html).\n\nThe next five interfaces are between the loan broker and each of the five banks. These interfaces are used to obtain the rate quote for a loan from that particular bank. Each bank interface provides the same functionality (obtain a quote) but may specify a different format for the associated SOAP messages. Therefore, the loan broker has to translate the quote request message to the format required by each particular bank before querying the bank.\n\nThe loan broker contacts each bank directly using predictive routing i.e., the set of banks that participate in the quote gathering is known right before they are called for a quote. In this stage the loan broker application sends the request to the selected banks using the [*Recipient List*](RecipientList.html) pattern. Because each bank can use a different format for the request, the loan broker needs to use an array of [*Message Translator*](MessageTranslator.html)s to convert the request into the format required by each bank.\n\nLikewise, each reply message has to be converted to a common format using a [*Normalizer*](Normalizer.html), so that all replies can be aggregated into the single best quote. The request and response messages are passed synchronously, i.e., the client and loan broker is blocked until each Bank responds or times out. The loan broker aggregates all responses into the single best quote and sends the best quote reply back to the client.\n\nSynchronous messaging is useful in some problem domains where a simple solution is necessitated. By using synchronous messaging we do not have to worry about handling asynchronous events, thread safety or the infrastructure needed to support them. The client invokes the loan broker web service and then waits for the response from the server. Based on the general description of the overall example the first component of the server application is the loan broker whose endpoint is exposed as the web service. There are several components in this solution and each component makes a synchronous call to the next component and waits for the response.\n\n## Web Services Design Considerations\n\nXML Web services rely on the Simple Object Access Protocol (SOAP). The SOAP specification was submitted to the W3C and defines an XML based protocol for the purpose of exchanging messages between decentralized and distributed systems. For more details on SOAP please refer to the documents at the World Wide Web Consortium web site ([www.w3.org/TR/SOAP](http://www.w3.org/TR/SOAP)).\n\nUnfortunately, the \"S\" in \"SOAP\" is no longer valid. Actually, we have jokingly postulated that SOAP be renamed to Complex Remote Access Protocol -- you figure out the acronym... Seriously, designing a robust Web services interface requires us to dive into a a number of terminologies and associated design trade-offs. While this book is not an introduction into Web Services, we feel it is important to briefly discuss the following design considerations:\n\n- Transport protocol\n- Asynchronous messaging versus Synchronous messaging\n- Encoding style (SOAP Encoding vs. doc/literal)\n- Binding style (RPC vs. Document-style)\n- Reliability and Security\n\n**Transport Protocol**\n\nThe SOAP specification was created to allow applications to make synchronous RPC-style calls to a service across the network in a technology-neutral way. The SOAP specification actually defines a separate request and response message for each invocation to a Web Service (as defined in the WSDL document describing the service). Even though SOAP was developed with messaging in mind, the vast majority of the Web Service applications use HTTP as the transport protocol. HTTP is a natural choice because it is the most commonly used protocol on the Web and can sneak through firewalls. However, the HTTP protocol is the \"Hyper Text Transfer Protocol\" -- it was designed to allow users with Web browsers to retrieve documents over the Internet, not for applications to communicate with each other. The HTTP protocol is inherently unreliable and designed for synchronous document retrieval -- the client application uses the same connection for sending the request to the server and receiving the response. Therefore, Web Services that use the HTTP protocol will invariably use synchronous request/response messaging because asynchronous messaging over an unreliable channel is about as useful as dropping a bottle into the ocean.\n\n**Asynchronous vs. Synchronous**\n\nIn a synchronous implementation of a Web Service, the client connection remains open from the time the request is submitted to the server. The client will wait until the server sends back the response message. The advantage of using the synchronous RPC communication is that the client application knows the status of the Web Service operation in a very short time (either it receives a response or it times out). A serious limitation of using synchronous messaging is that the server may have to deal with a large number of concurrent connections because each concurrent client maintains an open to connection while waiting for the results. This causes the server application to become increasingly complex. If one of the invocations to a synchronous service provider fails, the server application has to provide the mechanism to trap the failure and recover and re-route the processing or flag an error before continuing with the other synchronous invocations.\n\nAt the present time, most Web Services toolkits only support synchronous messaging by default. However, using existing standards and tools such as asynchronous message queuing frameworks, some vendors have emulated asynchronous messaging for Web Services. Several organizations, companies and the Web Services working groups have recognized the need to have asynchronous messaging support and have been moving towards defining standards (e.g. WS-ReliableMessaging). For the latest on Web Services standards, please refer to the World Wide Web Consortium web site at [http://www.w3.org/](http://www.w3.org/) and see the chapter [*Emerging Standards and Futures in Enterprise Integration*](Future.html) at the end of this book.\n\n**Encoding Style**\n\nThe notion of SOAP encoding has led to a fair amount of debate and confusion. The SOAP Specification specifies a mode called \"encoding Style\" specified by the encodingStyle attribute. This mode can take on two values, \"encoded\" (by setting the attribute value to \"http://schemas.xmlsoap.org/soap/encoding/\") and \"literal\" (by specifying a different (or no) attribute value). This mode determines how application objects and parameters are represented in the XML \"on the wire\". \"Encoded\" (also referred to as SOAP Encoding) refers to Section-5 of the SOAP specification ([www.w3.org/TR/SOAP](http://www.w3.org/TR/SOAP)), which defines a primitive mechanism for mapping programming language types to XML. \"Literal\" (also called \"doc/literal\") means don't do that. Instead, the type information is provided by an external mechanism, more likely than not a WSDL (Web Services Description Language) document that uses XML schema to define exactly what types are used in the SOAP message.\n\nThe reason this came about is because the SOAP specification was written prior to the adoption of the XML schema specification (XSD). Thus, the original\nSOAP specification had to provide a way of encoding type information along with the parameters being sent for method calls because there was no\naccepted way of specifying it. Where this really comes into play is with complex data types such as Arrays. Section 5.4.2 of the SOAP specification defines a particular\nmechanism for representing programming language arrays in XML that uses a special SOAPEnc:Array schema type.\n\nHowever, since the adoption of XML Schema (see [http://www.w3.org/TR/xmlschema-0/](http://www.w3.org/TR/xmlschema-0/)), most languages have rendered the need for SOAP encoding obsolete by specifying their own mappings (or serialization rules) from XML schema to the programming language types. For instance, the JAX-RPC specification uniquely specifies how Java types are mapped to XML schema elements and vice-versa. This obviates the need for extra encoding information in the XML. So, as a result, SOAP Encoding is no longer favored, and has been superceded by literal encoding with the mapping being specified externally by an XML schema document, usually in\nthe form of a WSDL document.\n\n**Binding Style**\n\nThe WSDL Specification specifies two different \"binding styles\" in its SOAP binding. The values of the binding style attribute are \"RPC\" and \"Document\". What this means is that if a WSDL document specifies an operation has a binding style attribute set to \"RPC\" then the receiver must interpret that message using the rules found in Section 7 of the SOAP specification. This means, for instance, that the XML element inside the SOAP body (called a \"wrapper element\") must have a name identical to the name of the corresponding programming-language operation that is to be invoked, that each message part within that element must correspond exactly (in name and order) to a parameter of that programming-language operation, and that there must be only a single element returned (which must be named XXXResponse, where XXX\nis the name of the corresponding operation in the language) that contains inside it exactly one element, that is the return value of the operation.\n\nThe \"Document\" binding style is much looser. A message in the document binding style must simply be made up of well-formed XML. It is up to the SOAP engine that receives it how it will be interpreted. Now, having said that, it is fairly common (for instance among Microsoft tools) to use \"Document\" binding style and \"Literal\" encoding to represent RPC semantics. Even though a \"Document\" style is used, the message being sent represents a [*Command Message*](CommandMessage.html), with the operation to be invoked and the parameters to be passed encoded in the \"Document\".\n\n**Reliability and Security**\n\nIn the chapter [*Emerging Standards and Futures in Enterprise Integration*](Future.html), Sean Neville describes evolving standards that aim to address the issues of reliability and security for Web Services.\n\nOur solution uses the most basic and probably still most prevalent combination of these design choices. The loan broker implementation uses SOAP over HTTP with synchronous communication, encoding messages with the default SOAP encoding style and RPC binding. This makes the Web service behave very much like a [*Remote Procedure Invocation*](EncapsulatedSynchronousIntegration.html). We went this route so that we do not get stuck debating Web services internals (well, not any more than we already did) but can focus on contrasting the synchronous Web services implementation with the other implementations.\n\n## Apache Axis\n\nThis section provides a brief description of the Axis architecture to help elucidate the significant points in our design. For additional details on Axis please refer to the Apache Axis web site at [xml.apache.org/axis](http://xml.apache.org/axis).\n\nThe chapter Root Patterns defines a [*Message Endpoint*](MessageEndpoint.html) as the mechanism an application uses to connect to a messaging channel in order to send and receive messages. In our loan broker application, the Axis framework itself represents the message channel and its main function is to handle the processing of messages on behalf of the user application.\n\nThe Axis server implements the [*Service Activator*](MessagingAdapter.html) pattern. In the chapter on Messaging Endpoints, we described how a [*Service Activator*](MessagingAdapter.html) connects a [*Message Channel*](MessageChannel.html) to a synchronous service in an application so that when a message is received, the service is invoked.\n\nThe Message Adapter is implemented within the Axis server so that the developer does not need to implement this functionality. Therefore the application code contains only business logic for the application and the Axis server takes care of all message-handling services.\n\nThe client-programming model of Axis provides the components for the client application to invoke an endpoint URL and then receive the response message from the server. The loan broker client in this application is a synchronous client that uses this client-programming model of Axis. Within the server there is a listener for each transport protocol supported by the server. When the client sends a message to the endpoint, a transport listener within the Axis framework creates a message context object and passes it through a request chain in a framework. The Message Context contains the actual Message received from the client along with associated properties added by the transport client.\n\nThe Axis framework is made up of a series of Handlers, which are invoked in a particular order depending on the deployment configuration and whether the client or server is invoking the framework. Handlers are part of the Message Flow subsystem and are grouped together and called Chains. Request messages are processed by a sequence of request Handlers in a Chain. Any response messages are sent back on the corresponding response Chain through a sequence of response Handlers.\n\nThe figure above shows a high level representation of the internals of the Axis framework. A detailed discussion on the architecture of Axis can be found at http://xml.apache.org/axis.\n\nAxis consists of several subsystems that work together to provide the functionality of a Message Channel. This framework is available for use by both the client and server application.\n\nThe relevant Axis subsystems for our example are as follows:\n\n- Message Model subsystem defines the XML syntax of the SOAP messages.\n- Message Flow subsystem defines Handlers and Chains to pass the messages\n- Service subsystem defines the service handler (SOAP, XML-RPC)\n- Transport subsystem provides alternatives for the transport of messages (for e.g., HTTP, JMS, SMTP)\n- Provider subsystem defines the providers for different types of classes (for e.g., java:RPC, EJB, MDB)\n\nAs mentioned earlier, the developer only needs to focus on creating an application that implements the business logic, which can then be deployed in the Axis server. There are three techniques for deploying a java class as a Web service and being made available as an endpoint service and we have named them as follows.\n\n- Automatic Deployment\n- Using a Web Services Deployment Descriptor\n- Generate proxies from an existing WSDL document\n\nThe first and simplest way is to write the class containing the business logic as a Java Web Service file (this is a Java source file with a *.jws extension). The methods of this class contain the business logic. The JWS file does not need to be compiled and can be instantly deployed by copying the source file into the webapps directory on the server. Each public method is now accessible as a Web service. The name of this JWS file forms part of the endpoint that the Axis server exposes as a Web service as shown below:\n\n```\nhttp://hostname:portnumber/axis/LoanBroker.jws\n```\n\nAxis 1.1 automatically generates the WSDL (Web Services Description Language - see [http://www.w3.org/TR/wsdl](http://www.w3.org/TR/wsdl).) document from services deployed within the server. WSDL is an XML format that describes the public interface of a Web service (i.e. the methods available through the interface) as well as the location of the service (i.e. the URL). The automatic generation of WSDL allows other applications to inspect the remote interface provided by the Web service class. It can also be used to automatically generate client stub classes that encapsulate the Web services call inside a regular Java class. The disadvantage of this method is the developer cannot control the deployment parameters.\n\nThe second technique deploys a compiled class using a WSDD (Web Services Deployment Descriptor), which allows the developer to control the deployment parameters, e.g. the class scope. By default, a class gets deployed in the request scope i.e., a new instance of the class is instantiated for each request that is received. Once the processing is finished the instance is destroyed. If the class has to persist for the entire session to service multiple requests from the same client over a period of time, we need to define the class in the session scope. For some applications, we need all clients to access a singleton class, i.e., the class has to be instantiated and made available for the entire duration the application is active, in which case the web service is defined in the application scope.\n\nThe last technique is more complicated than the previous two techniques but allows the generation of proxies and skeletons from an existing WSDL document (using the wsdl2java tool). The proxies and skeletons encapsulate all SOAP-related code so that the developer does not have to write any SOAP (or Axis)-related code, but can instead insert the business logic right into in the method bodies of the generated skeleton.\n\nWe choose to implement all our Web services using the Automatic Deployment technique using JWS files, in order to keep the design and deployment requirements as simple as possible. On the client side it is a lot easier to hand code the call to the Web Service. We could have used wsdl2java to generate the stubs, which would then be called by the client code, however we tried to minimize the amount of code generation because it can make it difficult to walk through an example solution.\n\n## Service Discovery\n\nBefore we proceed with a discussion of the loan broker application, we need to describe a few general steps that we follow when implementing the solution to help in creating an application that is easy to deploy. In order to invoke a Web service that is deployed on a server, any client application needs to know the endpoint URL. In the Web services model, an application would look up the location of a web service they need to access from a common service registry.\n\nUDDI (Universal Description, Discovery and Integration) is a standard for such a repository. A discussion of UDDI is beyond the scope of this section and you can get additional information at [www.uddi.org](http://www.uddi.org/). In our example we hard code the endpoint URLs in the application itself. However, to make it easy to deploy the example code, we create properties files for both the server and client applications. The properties file has name value pairs for the hostname and port number parameters, which match the parameters of your Axis server installation. This gives you some flexibility in deploying the loan broker application in your environment. We provide a utility method readProps() in some of the Java classes. This method is for reading files that contain the deployment parameters of the Axis server. The readProps() method is not used by any of the functional aspects of the loan broker application.\n\nIn any distributed computing framework whether it is Java RMI, CORBA or SOAP Web services, we need to define parameters of the method calls on remote objects as primitive data types or objects that can be serialized to and from the network. These parameters are the properties of the message objects that are sent from the client to the server. To keep the loan broker solution simple we use a java String object to return the response from the loan broker to the client. If the calling parameters are primitive data types (e.g. int, double, etc.) they have to be wrapped in the predefined object wrappers called the type wrappers (for e.g., Integer, Double, etc.).\n\n## The Loan Broker Application\n\nThe figure below shows the class diagram for the loan broker component. The core business logic for the loan broker is encapsulated inside the LoanBrokerWS class. This class inherits from a class provided by the Axis framework that implements a [*Service Activator*](MessagingAdapter.html) to invoke a method in the LoanBrokerWS class when a SOAP request arrives. The LoanBrokerWS references a set of gateway classes that implement details of interfacing with external entities, such as the credit agency and the banks. This logic is encapsulated inside the classes CreditAgencyGateway, LenderGateway, BankQuoteGateway.\n\n*Loan Broker Class Diagram*\n\nThe only service interface from the loan broker to the outside world is the message endpoint for the client to access the loan broker service. There is no need to define a [*Messaging Gateway*](MessagingGateway.html) since the Axis framework acts as the gateway on behalf of the application.\n\nThe following sequence diagram illustrates the interaction between the components for the synchronous predictive Web service example. The loan broker first calls the credit agency gateway component, which enriches the minimum data provided with a credit score and the length of credit history for the customer. The loan broker uses the enriched data to call the lender gateway. This component implements the [*Recipient List*](RecipientList.html) that uses all the data provided to choose the set of lenders that can service the loan request.\n\nThe loan broker then calls the bank quote gateway. This component performs the predictive routing operation by calling each bank in turn. The bank components model the interface to a real-world banking operation. For example the Bank1 class is the interface to the Bank1WS.jws Web Service that models the banking operation. When a loan request comes in, there is some amount of clerical work performed before generating the rate quote based on all the parameters. In this example, the rate quote is generated by a banking Web service.\n\nThe bank quote gateway aggregates the responses from the banks and chooses the best quote from all the quotes received. The response is sent back to the loan broker, which formats the data from the best quote and returns the report to the client.\n\n*Loan Broker Sequence Diagram*\n\nWe have only shown two of the five banks in the sequence diagram in the interest of keeping the picture manageable. Based on the [*Recipient List*](RecipientList.html) generated for a particular request, the loan broker could contact exactly one bank or all five banks to service the client request.\n\nThe diagram highlights the sequential processing of the quote requests to each bank. The sequential processing has some advantages because we can run the application in a single thread calling each bank in turn. The application does not need to spawn threads to request a quote from each bank and so we don’t have to worry about concurrency issues. However, the total time to get the response quote is high since the loan broker has to wait for a response from each bank before submitting a request to the next bank in the lenders list. The net result is the customer will have to wait a long time to get the result quote back after submitting the request.\n\n## Components of the Loan Broker Application\n\nWe will now start designing the functional aspects of the loan broker application. As stated earlier the Axis framework can support both the client and server application. This allows a remote client to access the published endpoint across the network. A server application may also need to act like a client and access some other Web service endpoint, regardless of whether that endpoint is on the same server or a remote server. We are going to demonstrate this by modeling the key components of our solution as Web services albeit running on the same instance of our server.\n\nThe loan broker solution has to implement the following functions. The following sections discuss the implementation of each function.\n\n- Accept Client Requests\n- Retrieve Credit Agency Data\n- Implement the Credit Agency Service\n- Obtain Quotes\n- Implement the Banking Operations\n\n**Accepting Client Requests**\n\nThe loan broker is implemented in a JWS file named LoanBrokerWS.jws. It exposes a single public method as a Web service: GetLoanQuote. The loan broker needs three pieces of data from the client to start processing a loan request: the social security number (SSN) that acts as the customer identification number, the amount of the loan and the duration of the loan in months:\n\n```\n public String getLoanQuote(int ssn, double loanamount, int loanduration) {\n\n String results = \"\";\n\n results = results + \"Client with ssn= \" + ssn + \" requests a loan of amount= \" + loanamount + \" for \" + loanduration + \" months\" + \"\\n\\n\";\n results = results + this.getLoanQuotesWithScores(ssn,loanamount,loanduration);\n\n return results;\n }\n```\n\nThe only step in this method is the call to the method getLoanQuotesWithScores. This method returns a string, which is sent back to the client along a response chain in the Axis framework. At the end of the chain, the transport listener that received the request will accept the response message from within the Axis framework and send it back to the client on the network.\n\nAs described earlier, since we use the Automatic Deployment of the JWS file for the loan broker component, Axis generates the WSDL file for the LoanBrokerWS service. The WSDL file for the LoanBrokerWS.jws file is shown below.\n\n```\n\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n```\n\nIn the interest of space we condensed the WSDL document to highlight the most significant elements. The tags define the service name (LoanBrokerWSService) and the endpoint location. The tags define the method (operation) name along with the parameters required for the client to access the LoanBrokerWS Web Service. The two messages defined in the tags define the request and the response messages for the getLoanQuote operation: getLoanQuoteRequest and getLoanQuoteResponse with the appropriate parameters they pass in to or receive from the Web Service. The element confirms that we are using the RPC binding style that we discussed at the beginning of this chapter while the reveals that we are using SOAP encoding (as opposed to doc/literal).\n\nIf you want to see the WSDL file from your server, you can type in the following URL in your browser window where hostname and portnumber are replaced with the appropriate values of your server installation,\n\n```\nhttp://hostname:portnumber/axis/LoanBrokerWS.jws?wsdl\n```\n\n**Retrieving Credit Agency Data**\n\nAnother requirement for the loan broker is to gather additional data on the customer to complete the loan request application. The next stage of the LoanBrokerWS, implements the [*Content Enricher*](DataEnricher.html) as shown below:\n\n```\n private String getLoanQuotesWithScores(int de_ssn, double de_loanamount, int de_duration) {\n String qws_results=\"Additional data for customer: credit score and length of credit history\\n\";\n int ssn = de_ssn;\n double loanamount = de_loanamount;\n int loanduration = de_duration;\n int credit_score = 0;\n int credit_history_length = 0;\n\n CreditProfile creditprofile = CreditAgencyGateway.getCustomerCreditProfile(ssn);\n\n credit_score = creditprofile.getCreditScore();\n credit_history_length = creditprofile.getCreditHistoryLength(); \n \n qws_results = qws_results + \"Credit Score= \" + credit_score + \" Credit History Length= \" + credit_history_length;\n qws_results = qws_results + \"\\n\\n\";\n qws_results = qws_results + \"The details of the best quote from all banks that responded are shown below: \\n\\n\";\n\n qws_results = qws_results + getResultsFromLoanClearingHouse(ssn,loanamount,loanduration,credit_history_length,credit_score);\n\n qws_results = qws_results + \"\\n\\n\";\n return qws_results;\n }\n```\n\nWe now design the credit agency operations, which is the next logical area of the loan broker application. In order to keep the SOAP code out of the loan broker application, and minimize the dependencies between the loan broker and the credit agency we will use the Gateway pattern. In Martin’s P of EAA book, using an example created by Mike Rettig, Martin highlighted two key advantages of using the Gateway pattern. First, it abstracts the technical details of the communication from the application. Second, if we choose to separate the gateway interface from the gateway implementation we can replace the actual external service with a Service Stub [EAA] for testing.\n\nOur CreditAgencyGateway abstracts the technical details of the communication between the CreditAgencyGateway and the credit agency Web Service (CreditAgencyWS). We could replace the Web service with a test stub if needed. The gateway takes in the customer identification number (ssn) and acquires additional data from the credit agency. The two pieces of data returned by the credit agency are the credit score and the length of credit history for the customer both of which are needed to complete the loan application. This gateway will contain all the client side code to access the CreditAgencyWS implemented in the CreditAgencyWS.jws file.\n\n```\n public static CreditProfile getCustomerCreditProfile(int ssn){\n\n int credit_score = 0;\n int credit_history_length = 0;\n\n CreditProfile creditprofile = null;\n\n try{\n CreditAgencyGateway.readProps();\n\n creditprofile = new CreditProfile();\n\n String creditagency_ep = \"http://\" + hostname + \":\" + portnum + \"/axis/CreditAgencyWS.jws\";\n\n Integer i1 = new Integer(ssn);\n\n Service service = new Service();\n Call call = (Call) service.createCall();\n call.setTargetEndpointAddress( new java.net.URL(creditagency_ep) );\n\n call.setOperationName(\"getCreditHistoryLength\");\n call.addParameter( \"op1\", XMLType.XSD_INT, ParameterMode.IN );\n call.setReturnType( XMLType.XSD_INT );\n\n Integer ret1 = (Integer) call.invoke( new Object [] {i1});\n credit_history_length = ret1.intValue();\n\n call.setOperationName(\"getCreditScore\");\n\n Integer ret2 = (Integer) call.invoke( new Object [] {i1});\n credit_score = ret2.intValue();\n\n creditprofile.setCreditScore(credit_score);\n creditprofile.setCreditHistoryLength(credit_history_length);\n\n\t Thread.sleep(credit_score);\n }catch(Exception ex){\n System.out.println(\"Error accessing the CreditAgency Webservice\");\n }\n\n return creditprofile;\n }\n}\n```\n\nThe purpose of using this Gateway is to show how a server application uses the Axis client framework to access a Web service, either on the same server or a remote server.\n\n**Implementing the Credit Agency Service**\n\nThe credit agency Web service is coded in CreditAgencyWS.jws and shown below. . The two significant pieces of data needed to complete the loan application are the customer credit score and the length of the customer’s credit history. The credit agency has this data for each customer with a credit history and can be accessed using the customer identification number.\n\n```\n public int getCreditScore(int de_ssn) throws Exception\n {\n int credit_score;\n\n credit_score = (int)(Math.random()*600+300);\n\n return credit_score;\n }\n\n public int getCreditHistoryLength(int de_ssn) throws Exception\n {\n int credit_history_length;\n\n credit_history_length = (int)(Math.random()*19+1);\n\n return credit_history_length;\n }\n```\n\nThe code below shows the WSDL file for the CreditAgencyWS.jws file. This file was automatically generated by the Axis server.\n\n```\n\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n ...\n \n \n \n \n \n \n\n```\n\nThe defines the CreditAgencyWSService and exposes the endpoint that will be accessed by the client in this case the loan broker. The defines the two public methods defined in the CreditAgencyWS.jws file, getCreditScore and getCreditHistoryLength. For each of these methods, there will be a request-response message pair defined as can be seen in the tags. These are listed here, getCreditScoreRequest, getCreditScoreResponse, getCreditHistoryLengthRequest, getCreditHistoryLengthResponse.\n\nOnce again, in the interest of space we have collapsed most of the elements of the WSDL file to fit the format of the section. If you are interested in seeing the entire file, it can be accessed on your server using the following URL where hostname and portnumber are the values for your server installation,\n\n```\nhttp://hostname:portnumber/axis/CreditAgencyWS.jws?wsdl\n```\n\nThe credit agency webservice in our example stubs out the implementation and returns dummy data that can be used by other parts of the application.\n\n**Obtaining Quotes**\n\nHaving enriched the customer data, the loan broker now calls the loan clearing house function, which is part of the loan broker itself. As seen in the call below, the loan-clearing house receives all the data for the loan application.\n\n```\ngetResultsFromLoanClearingHouse(ssn,loanamount,loanduration,credit_history_length,credit_score);\n```\n\nThe loan clearing house functions could be further demarcated into its own logical unit if the application gets more complex or the loan broker requirements change to use an external loan-clearing house. In our example the loan clearing house functionality can be broken down into three steps, namely:\n\n- Get a list of lenders who can service the customer loan\n- Get the best quote out of all quotes from each bank in the lender list\n- Format the data from the best quote and return it to the loan broker\n\nThe code shows these steps:\n\n```\nprivate String getResultsFromLoanClearingHouse(int ssn, double loanamount, int loanduration, int credit_history_length, int credit_score) {\n String lch_results=\"Results from Loan Clearing House \";\n \n ArrayList lenderlist = LenderGateway.getLenderList(loanamount, credit_history_length, credit_score);\n\n BankQuote bestquote = BankQuoteGateway.getBestQuote(lenderlist,ssn,loanamount,loanduration,credit_history_length,credit_score);\n\n lch_results = \"Out of a total of \" + lenderlist.size() + \" quote(s), the best quote is from\" + this.getLoanQuotesReport(bestquote);\n\n return lch_results; \n}\n```\n\nThe first requirement for the loan-clearing house is to get a list of suitable lenders that can service the customer loan application. In order to abstract the functions of the lender selection process from the loan broker we will create a LenderGateway class. We could make the solution more interesting by making this a Web Service. However, Web Services should be designed carefully and the parameters and return types should be taken into consideration since these have to be types that can be serialized to and from the network.\n\nFor this example, we could have chosen to return a collection of the service endpoint for the banks from a LenderGateway. The drawback of doing this is the identification of the bank webservice will have to be hard coded in the lender gateway. This becomes a maintenance nightmare in real life, especially since banks get bought, sold or merged more often than IT architects change jobs. We will discuss a robust solution for the bank and its webservice in the discussion of the BankQuoteGateway topic later in this section.\n\nThe method getLenderList shown below will return the set of lenders (i.e. banks) that can service the loan request.\n\n```\n public static ArrayList getLenderList(double loanamount, int credit_history_length, int credit_score){\n\n ArrayList lenders = new ArrayList();\n LenderGateway.readProps();\n\n if ((loanamount >= (double)75000) && (credit_score >= 600) && (credit_history_length >= 8))\n {\n lenders.add(new Bank1(hostname, portnum));\n lenders.add(new Bank2(hostname, portnum));\n }\n\n if (((loanamount >= (double)10000) && (loanamount <= (double)74999)) && (credit_score >= 400) && (credit_history_length >= 3))\n {\n lenders.add(new Bank3(hostname, portnum));\n lenders.add(new Bank4(hostname, portnum));\n }\n\n lenders.add(new Bank5(hostname, portnum));\n\n return lenders;\n }\n```\n\nThis method implements the RecipientList pattern. In our example the rule base consists of very simple if statements that choose a bank or banks based on a set of predefined conditions. We have also set a default selection for every customer request so that every customer request will have at least one quote.\n\nThe loan broker will now pass the list of lenders to the bank quote gateway to start gathering quotes and make a selection. Once again we create a class named BankQuoteGateway to abstract the internal functioning of the bank quote gateway. The loan broker will only need to request the best quote from the BankQuoteGateway as seen in the method call below:\n\n```\nBankQuote bestquote = BankQuoteGateway.getBestQuote(lenderlist,ssn,loanamount,loanduration,credit_history_length,credit_score);\n```\n\nThe BankQuoteGateway responds to the loan broker request by getting the quotes from all the banks and then selecting the best quote (i.e., the quote with the lowest rate). The getBestQuote method is shown below:\n\n```\n public static BankQuote getBestQuote(ArrayList lenders, int ssn, double loanamount, int loanduration, int credit_history_length, int credit_score){\n\n BankQuote lowestquote = null;\n BankQuote currentquote = null;\n\n ArrayList bankquotes = BankQuoteGateway.getBankQuotes(lenders,ssn,loanamount,loanduration,credit_history_length,credit_score);\n\n Iterator allquotes = bankquotes.iterator();\n\n while (allquotes.hasNext()){\n if (lowestquote == null){\n lowestquote = (BankQuote)allquotes.next();\n }\n else{\n currentquote = (BankQuote)allquotes.next();\n if (currentquote.getInterestRate() < lowestquote.getInterestRate()){\n lowestquote = currentquote;\n }\n }\n }\n\n return lowestquote;\n }\n```\n\nThe most significant line in the code above is the call to getBankQuotes. This method not only performs the controlled Auction but also implements the Aggregator pattern. The listing below shows the getBankQuotes method:\n\n```\n public static ArrayList getBankQuotes(ArrayList lenders, int ssn, double loanamount, int loanduration, int credit_history_length, int credit_score) {\n\n ArrayList bankquotes = new ArrayList();\n\n BankQuote bankquote = null;\n Bank bank = null;\n\n Iterator banklist = lenders.iterator();\n\n while (banklist.hasNext()){\n bank = (Bank)banklist.next();\n bankquote = bank.getBankQuote(ssn,loanamount,loanduration,credit_history_length,credit_score);\n bankquotes.add(bankquote);\n\n }\n\n return bankquotes;\n }\n```\n\nThe while loop performs the function of the controlled Auction. Each bank is extracted from the lender list and the method to generate a bank quote is invoked as highlighted below. Pay special attention to the order of the parameter list in the call to the method and we will explain the significance when we start designing the banks and the associated webservices.\n\n```\nbank.getBankQuote(ssn, loanamount,loanduration, credit_history_length, credit_score);\n```\n\nThe response is aggregated using the bankquotes ArrayList. The getBestQuote method iterates over this collection of bank quotes and selects the lowest quote, which is sent back to the loan broker.\n\nAs mentioned earlier, we will design the bank and bank webservice to emulate a real-world bank operation and keep the functions of the bank separate and not couple them tightly with the functions of the loan broker. This will let our bank classes have the advantages of using the Gateway pattern described earlier in the CreditAgencyGateway class.\n\nWe define an abstract Bank class as follows:\n\n```\npublic abstract class Bank{\n\n String bankname;\n String endpoint = \"\";\n double prime_rate;\n\n public Bank(String hostname, String portnum){\n this.bankname = \"\";\n this.prime_rate = 3.5;\n }\n\n public void setEndPoint(String endpt){this.endpoint = endpt;}\n\n public String getBankName(){return this.bankname;}\n public String getEndPoint(){return this.endpoint;}\n public double getPrimeRate(){return this.prime_rate;}\n public abstract BankQuote getBankQuote(int ssn, double loanamount, int loanduration, int credit_history_length, int credit_score);\n\n public void arbitraryWait(){\n try{\n Thread.sleep((int)(Math.random()*10)*100);\n\n }catch(java.lang.InterruptedException intex){\n intex.printStackTrace();\n }\n }\n}\n```\n\nIn our example, the process for getting a quote from a bank is modeled roughly along the same lines a real world bank operates. First there is a small amount of clerical work done followed by an access to the computerized rate quote system and then some additional amount of clerical work before the quote is returned to the BankQuoteGateway.\n\nThe Bank abstract class and the child bank classes (Bank1 to Bank5) model the operation of a regular bank. In our example, the bank receives the loan request and the clerical staff conducts the due diligence research while verifying that the customer information is accurate. We have chosen to model the clerical work as an arbitrary wait method implemented in the Bank abstract class as shown above and invoked in the getBankQuote method. To make things interesting, we will model the bank’s rate quote system for getting rate quotes, using webservices. For a given bank (Bankn) the rate quote system is modeled using a BanknWS and coded in a file named BanknWS.jws. There will be five bank classes (Bank1 to Bank5) and five rate quote systems (Bank1WS to Bank5WS). To make things even more interesting each of the rate quote systems will use a different format for the parameter list in the method call. This means the Bank class has to use a Translator to translate the format of the message before calling the webservice. We will show this after discussing the Bank classes.\n\nYou will note that the getBankQuote method in the abstract Bank class is an abstract method and has the parameters ordered in a particular format. We will now look at one of the bank implementations and for no particular reason choose Bank1. The class structure of all the banks will be identical and each will differ only in the values of its fields (the bank name and endpoint address) which are set when the bank object is constructed.\n\n```\npublic class Bank1 extends Bank {\n\n public Bank1(String hostname, String portnum){\n super(hostname,portnum);\n bankname = \"Exclusive Country Club Bankers\\n\";\n String ep1 = \"http://\" + hostname + \":\" + portnum + \"/axis/Bank1WS.jws\";\n this.setEndPoint(ep1);\n }\n\n public void setEndPoint(String endpt){this.endpoint = endpt;}\n\n public String getBankName(){return this.bankname;}\n public String getEndPoint(){return this.endpoint;}\n\n public BankQuote getBankQuote(int ssn, double loanamount, int loanduration, int credit_history_length, int credit_score) {\n\n BankQuote bankquote = new BankQuote();\n\n Integer i1 = new Integer(ssn);\n Double i2 = new Double(prime_rate);\n Double i3 = new Double(loanamount);\n Integer i4 = new Integer(loanduration);\n Integer i5 = new Integer(credit_history_length);\n Integer i6 = new Integer(credit_score);\n\n try{\n Service service = new Service();\n Call call = (Call) service.createCall();\n call.setTargetEndpointAddress( new java.net.URL(endpoint) );\n\n call.setOperationName(\"getQuote\");\n\n call.addParameter( \"op1\", XMLType.XSD_INT, ParameterMode.IN );\n call.addParameter( \"op2\", XMLType.XSD_DOUBLE, ParameterMode.IN );\n call.addParameter( \"op3\", XMLType.XSD_DOUBLE, ParameterMode.IN );\n call.addParameter( \"op4\", XMLType.XSD_INT, ParameterMode.IN );\n call.addParameter( \"op5\", XMLType.XSD_INT, ParameterMode.IN );\n call.addParameter( \"op6\", XMLType.XSD_INT, ParameterMode.IN );\n\n call.setReturnType( XMLType.XSD_DOUBLE);\n\n Double interestrate = (Double) call.invoke( new Object [] {i1,i2,i3,i4,i5,i6});\n\n bankquote.setBankName(bankname);\n bankquote.setInterestRate(interestrate.doubleValue());\n }catch(Exception ex){\n System.err.println(\"Error accessing the axis webservice from \" + bankname);\n\n BankQuote badbq = new BankQuote();\n badbq.setBankName(\"ERROR in WS\");\n return badbq;\n }\n\n arbitraryWait();\n\n return bankquote;\n }\n\n}\n```\n\nAs seen in the code above, the getBankQuote method is implemented and has the parameters in a particular order.\n\n```\npublic BankQuote getBankQuote(int ssn, double loanamount, int loanduration, int credit_history_length, int credit_score)\n```\n\n**Implementing the Banking Operations**\n\nAs described earlier, the format for the parameters of the rate quote system for each bank is different. This means the getBankQuote method of the Bank class implements the Translator pattern and has to translate the order of the parameters before calling the respective webservice. The details of the method signature for each bank webservice getQuote method is shown below:\n\nBank1WS:\n\n```\ngetQuote(int ssn, double prime_rate, double loanamount, int loanduration, int credit_history_length, int credit_score)\n```\n\nBank2WS:\n\n```\ngetQuote(double prime_rate, double loanamount, int loanduration, int credit_history_length, int credit_score, int ssn)\n```\n\nBank3WS:\n\n```\ngetQuote(double loanamount, int loanduration, int credit_history_length, int credit_score, int ssn, double prime_rate)\n```\n\nBank4WS:\n\n```\ngetQuote(int loanduration, int credit_history_length, int credit_score, int ssn, double prime_rate, double loanamount)\n```\n\nBank5WS:\n\n```\ngetQuote(int credit_history_length, int credit_score, int ssn, double prime_rate, double loanamount, int loanduration)\n```\n\nThe actual implementation of the getQuote method is a placeholder and returns a rate quote using a simple algorithm as shown below for Bank1WS.jws.\n\n```\npublic class Bank1WS {\n\n public double getQuote(int ssn, double prime_rate, double loanamount, int loanduration, int credit_history_length, int credit_score)\n {\n double ratepremium = 1.5;\n\n double int_rate = prime_rate + ratepremium + (double)(loanduration/12)/10 + (double)(Math.random()*10)/10;\n\n return int_rate;\n }\n \n}\n```\n\nIn a real world application, the formula is a lot more detailed and complicated. The return type of the getQuote method is a double precision number representing the rate the bank offers the customer given the parameters in the loan application.\n\nOnce again the Axis server automatically generates a WSDL file for each Bank JWS file (exposed at http://hostname:portnum/axis/Bank1WS.jws?wsdl) . The WSDL files for the other Banks will have a similar format but will differ in the definition of the parameters. The WSDL file for the Bank1WS.jws Web Service is shown below.\n\n```\n\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n ...\n \n \n \n \n \n \n\n```\n\nAs we can see, the WSDL contains one operation getQuote defined in the tag, which Axis maps to the getQuote method in the Bank1WS.jws class. The tag defines the Web Service Bank1WS Web Service. There is a request-response message pair, each defined in a tag and they are getQuoteRequest and getQuoteResponse.\n\nThis rate quote is set in a bank quote bean, which is added to the collection sent back to the BankQuoteGateway. The bean does not require any formatting and essentially the beans returned by all the banks look the same. This eliminates the need for a Normalizer to convert the reply messages to a common format.\n\nThe BankQuoteGateway selects the lowest quote from the collection of bank quotes it gets back and sends one bank quote bean back to the loan broker. The loan broker will access the data in the bean and format a report to send back to the client application. The method that formats the report is shown below:\n\n```\nprivate static String getLoanQuotesReport(BankQuote bestquote){\n String bankname = bestquote.getBankName();\n double bestrate = ((double)((long)(bestquote.getInterestRate()*1000))/(double)1000);\n\n String results = \"\\nBank Name: \" + bankname + \"Interest Rate: \" + bestrate;\n\n return results;\n}\n```\n\n## Client Application\n\nThe client application is the customer's interface to the loan broker application. The main requirement of the client is to gather information from the customer in a functional graphical user interface environment with adequate error checking. Beneath the covers and far away from the eyes of the customer, the client application will prepare the three pieces of data for delivery to the endpoint of the server application. For simplicity we designed the client application to be a java class with a main method that takes in the client information as command line arguments. In reality the user interface could be implemented as a windows based fat client or a browser based thin client. The client could also be part of another business system that has the client-programming model deployed. The most significant part of the client application with respect to invoking the webservice is shown below:\n\n```\n Service service = new Service();\n Call call = (Call) service.createCall();\n\n call.setTargetEndpointAddress( new java.net.URL(endpoint) );\n call.setOperationName( \"getLoanQuote\" );\n call.addParameter( \"op1\", XMLType.XSD_INT, ParameterMode.IN );\n call.addParameter( \"op2\", XMLType.XSD_DOUBLE, ParameterMode.IN );\n call.addParameter( \"op3\", XMLType.XSD_INT, ParameterMode.IN );\n\n call.setReturnType( XMLType.XSD_STRING );\n\n String ret = (String) call.invoke( new Object [] {ssn, loanamount, loanduration});\n```\n\nThe salient points in the code, are the lines, which define the method name (getLoanQuotes) and those that set the parameters and return types. The method getLoanQuotes takes in a customer id, loan amount and loan duration. The return value will be a string.\n\nSince we are not using UDDI, the webservices lookup service, we hard code the endpoint URL for our webservice. Since we chose to deploy the loan broker application as a JWS file, the endpoint will have the standard format as defined by the Axis API for java web services (JWS). The end point for our deployment is shown below, where hostname and portnumber are the values of your server installation,\n\n```\nhttp://hostname:portnumber/axis/LoanBroker.jws\n```\n\nThe client application which was blocked all along waiting for the response will accept the formatted report and display it in the GUI area setup for it. Alternatively it can be saved or sent to a printer.\n\n## Running the Solution\n\nPlease refer to the sections on installation of Axis and the loan broker application which appears towards the end of the chapter. The server now needs to be restarted or started if it were not running. Follow the documentation in the Tomcat help files for the proper steps to start or restart the server. You can then verify that Tomcat and Apache Axis are up and running by following the steps that were described in the section Installing XML-Axis at the beginning of this chapter.\n\nOpen a shell or command window on the client machine and run the application as shown for either Unix/Linux or Microsoft Windows:\n\n```\njava -classpath %CLASSPATH% LoanQueryClient [customerid[ [loanamount] [loanduration in months]\n```\n\nor\n\n```\njava -classpath $CLASSPATH LoanQueryClient [customerid] [loanamount] [loanduration in months]\n```\n\nfor e.g.:\n\n```\njava -classpath %CLASSPATH% LoanQueryClient 199 100000.00 29\n```\n\nThis invokes the webservice and returns the following results:\n\n```\nCalling the LoanBroker webservice at 1053292919270 ticks\nLoanBroker service replied at 1053292925860 ticks\n\nTotal time to run the query = 6590 milliseconds\n\nThe following reply was received from the Loan Clearing House\n\nClient with ssn= 199 requests a loan of amount= 100000.0 for 29 months\n\nAdditional data for customer: credit score and length of credit history\nCredit Score= 756 Credit History Length= 12\n\nThe details of the best quote from all banks that responded are shown below:\n\nOut of a total of 3 quote(s), the best quote is from\nBank Name: Exclusive Country Club Bankers\nInterest Rate: 6.197\n```\n\nYou can test out the loan broker by entering different loan amounts when running the client. We will now analyze the output results with a single client running. Later on we will launch multiple clients and study the output.\n\n**Analyzing the Output**\n\nThe client application keeps track of the time when it invokes the webservice endpoint on the server. The client also notes the time when the server responds with the result. Both start and end times of the call to the webservice are reported in the client application together with the difference between the two.\n\n```\nCalling the LoanBroker webservice at 1053292919270 ticks\nLoanBroker service replied at 1053292925860 ticks\n\nTotal time to run the query = 6590 milliseconds\n```\n\nThe Loan Clearing House webservice, reports all relevant details of the customer request sent across the network by the client application.\n\n```\nClient with ssn= 199 requests a loan of amount= 100000.0 for 29 months\n```\n\nThe Loan Clearing House also reports additional credit data that was gathered to support the customer request.\n\n```\nAdditional data for customer: credit score and length of credit history\nCredit Score= 756 Credit History Length= 12\n```\n\nThe LoanBroker analyzes the data and selects a set of banks that fit the customer loan request criteria. The LoanBroker submits the customer data in the format required for individual banks and waits for each bank to respond. Since this is a synchronous application, this request is a blocking wait until a bank responds or the request times out or fails.\n\nThe LoanBroker collects all the responses, analyzes the return quotes and chooses the best quote. This quote is formatted and sent bank to the customer along with any relevant data.\n\nThe details of the best quote from all banks that responded are shown below:\n\n```\nOut of a total of 3 quote(s), the best quote is from\nBank Name: Exclusive Country Club Bankers\nInterest Rate: 6.197\n```\n\nFrom the above code segment we see that the LoanBroker reports that three banks responded and it had select the best quote and presented that to the user.\n\n## Performance Limitations\n\nAs we discussed in the topic on the sequence diagram earlier on, the total time to get the response quote is significantly high since the loan broker has to wait for a response from each bank before submitting to the next bank in the lenders list. The net result is the customer will have to wait a long time to get the result quote back after submitting the request. We ran several baseline tests with a single client against the server and obtained an average of the total time to run the query (8070 milliseconds). We then launched four instances of the client in separate windows on the same client machine and obtained the following average times:\n\n```\nClient 1: 12520 milliseconds\nClient 2: 12580 milliseconds\nClient 3: 15710 milliseconds\nClient 4: 13760 milliseconds\n```\n\nWhile these tests could not be consider scientific by any stretch of imagination, the empirical evidence points to the fact that performance suffers tremendously when multiple clients try to simultaneously access our loan broker system.\n\n## Limitations of This Example\n\nTo make the discussion of the design of the loan broker example easier, we chose to implement all the webservices as JWS files. This gave us the advantage of deploying the service by simply copying it over to the server. The disadvantage, however, is that the webservice class gets instantiated when it is invoked and dies as soon as the service is complete. This means that some amount of the time lag we noticed is a result of the server creating instances of the class before invoking the service.\n\nWe could have chosen the more complicated route and designed a java class file that would get deployed using a WSDD file. This would give us the flexibility of defining how long the instantiated class would persist, i.e. for the entire client session or the duration of the application. The issue of how the webservice will be deployed is very significant when designing a real world application. If we had chosen to include the deployment issue, the description of the example would have become very lengthy and the design details would have become unnecessarily complicated for the purposes of this chapter.\n\n## Summary\n\nIn this section we stepped through the implementation of the loan broker application using synchronous access to SOAP/HTTP web services. We used predictive routing to submit our loan request to a set of banks. We highlighted the strengths and drawbacks of using this approach. We made some design tradeoffs to manage the discussion and avoid getting bogged down in describing deployment details. The overall intention was to provide a discussion on the merits and demerits of this approach. We also got to see many of the patterns described in this book used which will help in adapting the synchronous predictive approach to other business domains.\n\n## Integration Pattern Language\n\n[Message Construct.](MessageConstructionIntro.html)\n\n[Message](Message.html)\n\n[Command Message](CommandMessage.html)\n\n[Document Message](DocumentMessage.html)\n\n[Event Message](EventMessage.html)\n\n[Request-Reply](RequestReply.html)\n\n[Return Address](ReturnAddress.html)\n\n[Correlation Identifier](CorrelationIdentifier.html)\n\n[Message Sequence](MessageSequence.html)\n\n[Message Expiration](MessageExpiration.html)\n\n[Format Indicator](FormatIndicator.html)\n\n[Message Routing](MessageRoutingIntro.html)\n\n[Pipes-and-Filters](PipesAndFilters.html)\n\n[Message Router](MessageRouter.html)\n\n[Content-based Router](ContentBasedRouter.html)\n\n[Message Filter](Filter.html)\n\n[Dynamic Router](DynamicRouter.html)\n\n[Recipient List](RecipientList.html)\n\n[Splitter](Sequencer.html)\n\n[Aggregator](Aggregator.html)\n\n[Resequencer](Resequencer.html)\n\n[Composed Msg. Processor](DistributionAggregate.html)\n\n[Scatter-Gather](BroadcastAggregate.html)\n\n[Routing Slip](RoutingTable.html)\n\n[Process Manager](ProcessManager.html)\n\n[Message Broker](MessageBroker.html)\n\n[Message\nTransformation](MessageTransformationIntro.html)\n\n[Message Translator](MessageTranslator.html)\n\n[Envelope Wrapper](EnvelopeWrapper.html)\n\n[Content Enricher](DataEnricher.html)\n\n[Content Filter](ContentFilter.html)\n\n[Claim Check](StoreInLibrary.html)\n\n[Normalizer](Normalizer.html)\n\n[Canonical Data Model](CanonicalDataModel.html)\n\n[Messaging Endpoints](MessagingEndpointsIntro.html)\n\n[Message Endpoint](MessageEndpoint.html)\n\n[Messaging Gateway](MessagingGateway.html)\n\n[Messaging Mapper](MessagingMapper.html)\n\n[Transactional Client](TransactionalClient.html)\n\n[Polling Consumer](PollingConsumer.html)\n\n[Event-driven Consumer](EventDrivenConsumer.html)\n\n[Competing Consumers](CompetingConsumers.html)\n\n[Message Dispatcher](MessageDispatcher.html)\n\n[Selective Consumer](MessageSelector.html)\n\n[Durable Subscriber](DurableSubscription.html)\n\n[Idempotent Receiver](IdempotentReceiver.html)\n\n[Service Activator](MessagingAdapter.html)\n\n[Messaging Channels](MessagingChannelsIntro.html)\n\n[Message Channel](MessageChannel.html)\n\n[Point-to-Point Channel](PointToPointChannel.html)\n\n[Publish-Subscr. Channel](PublishSubscribeChannel.html)\n\n[Datatype Channel](DatatypeChannel.html)\n\n[Invalid Message Channel](InvalidMessageChannel.html)\n\n[Dead Letter Channel](DeadLetterChannel.html)\n\n[Guaranteed Delivery](GuaranteedMessaging.html)\n\n[Channel Adapter](ChannelAdapter.html)\n\n[Messaging Bridge](MessagingBridge.html)\n\n[Message Bus](MessageBus.html)\n\n[Systems Mgmt.](SystemManagementIntro.html)\n\n[Control Bus](ControlBus.html)\n\n[Detour](Detour.html)\n\n[Wire Tap](WireTap.html)\n\n[Message History](MessageHistory.html)\n\n[Message Store](MessageStore.html)\n\n[Smart Proxy](SmartProxy.html)\n\n[Test Message](TestMessage.html)\n\n[Channel Purger](ChannelPurger.html)", "znaku_textu": 64625, "slov": 8909, "odkazu": 95, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/patterns/messaging/ComposedMessagingWS.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 14:51:04", "sha256": "7fae1dd4d1a6743fd6aa8e37d09960393881f1ea6a1e9d5be27cf09d43779e6b", "hloubka": 3, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://www.w3.org/TR/SOAP", "http://www.w3.org/", "http://www.w3.org/TR/xmlschema-0/", "http://xml.apache.org/axis", "http://www.w3.org/TR/wsdl", "http://www.uddi.org/", "https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "https://www.architectelevator.com/book", "https://www.cloudstrategybook.com/", "https://www.platformstrategybook.info/"]} {"url": "https://www.enterpriseintegrationpatterns.com/ContentBasedRouter.html", "titulek": "Content-Based Router - Enterprise Integration Patterns", "h1": "", "popis": "How do we handle a situation where the implementation of a single logical function (e.g., inventory check) is spread across multiple physical systems?", "klicova_slova": "Content-Based Router,integration, messaging, events, patterns, event-driven, coupling, eai, middleware, application integration, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns", "og:title": "Content-Based Router - Enterprise Integration Patterns", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/ContentBasedRouter.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/ContentBasedRouter.gif"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Example: Apache CamelNEW"}, {"uroven": 2, "text": "Integration Pattern Language"}], "markdown": "| | Content-Based Router[Messaging Patterns](index.html) » [Message Routing](MessageRoutingIntro.html) | [Contents](toc.html)[⇐ Prev](MessageRoutingIntro.html)[Next ⇒](Filter.html) |\n| --- | --- | --- |\n\nAssume that we are building an order processing system. When an incoming order is received, we first validate the order and then verify that the ordered item is available in the warehouse. This function is performed by the inventory system. This sequence of processing steps is a perfect candidate for the [*Pipes and Filters*](PipesAndFilters.html) style. We create two filters, one for the validation step and one for the inventory system, and route the incoming messages through both filters. However, in many enterprise integration scenarios more than one inventory system exists with each system being able to handle only specific items.\n\nHow do we handle a situation where the implementation of a single logical function (e.g., inventory check) is spread across multiple physical systems?\n\nUse a *Content-Based Router* to route each message to the correct recipient based on message content.\n\nThe *Content-Based Router* examines the message content and routes the message onto a different channel based on data contained in the message. The routing can be based on a number of criteria such as existence of fields, specific field values etc. When implementing a *Content-Based Router*, special caution should be taken to make the routing function easy to maintain as the router can become a point of frequent maintenance. In more sophisticated integration scenarios, the *Content-Based Router* can take on the form of a configurable rules engine that computes the destination channel based on a set of configurable rules.\n\n...\nRead the entire pattern in the book [Enterprise Integration Patterns](/books1.html)\n\n## Example: Apache Camel[NEW](/ramblings/eip1_examples_updated.html)\n\nMany open source ESBs like [Apache Camel](http://camel.apache.org/) have direct support for many Enterprise Integration Patterns, wither in a Java-based DSL or as configuration. For example, setting up a *Content-Based Router* in Camel is quite easy and idiomatic by using a RouteBuilder:\n\n```\nRouteBuilder builder = new RouteBuilder() {\n public void configure() {\n errorHandler(deadLetterChannel(\"mock:error\"));\n\n from(\"direct:in\")\n .choice()\n .when(header(\"type\").isEqualTo(\"widget\"))\n .to(\"direct:widget\")\n .when(header(\"type\").isEqualTo(\"gadget\"))\n .to(\"direct:gadget\")\n .otherwise()\n .to(\"direct:other\");\n }\n};\n```\n\n**Related patterns:**\n\n[*Dynamic Router*](DynamicRouter.html), [*Message Filter*](Filter.html), [*Invalid Message Channel*](InvalidMessageChannel.html), [*Message Router*](MessageRouter.html), [*Pipes and Filters*](PipesAndFilters.html), [*Publish-Subscribe Channel*](PublishSubscribeChannel.html), [*Routing Slip*](RoutingTable.html), [*Transactional Client*](TransactionalClient.html)\n\n---\n\n## Integration Pattern Language\n\n[Message Construct.](MessageConstructionIntro.html)\n\n[Message](Message.html)\n\n[Command Message](CommandMessage.html)\n\n[Document Message](DocumentMessage.html)\n\n[Event Message](EventMessage.html)\n\n[Request-Reply](RequestReply.html)\n\n[Return Address](ReturnAddress.html)\n\n[Correlation Identifier](CorrelationIdentifier.html)\n\n[Message Sequence](MessageSequence.html)\n\n[Message Expiration](MessageExpiration.html)\n\n[Format Indicator](FormatIndicator.html)\n\n[Message Routing](MessageRoutingIntro.html)\n\n[Pipes-and-Filters](PipesAndFilters.html)\n\n[Message Router](MessageRouter.html)\n\n[Content-based Router](ContentBasedRouter.html)\n\n[Message Filter](Filter.html)\n\n[Dynamic Router](DynamicRouter.html)\n\n[Recipient List](RecipientList.html)\n\n[Splitter](Sequencer.html)\n\n[Aggregator](Aggregator.html)\n\n[Resequencer](Resequencer.html)\n\n[Composed Msg. Processor](DistributionAggregate.html)\n\n[Scatter-Gather](BroadcastAggregate.html)\n\n[Routing Slip](RoutingTable.html)\n\n[Process Manager](ProcessManager.html)\n\n[Message Broker](MessageBroker.html)\n\n[Message\nTransformation](MessageTransformationIntro.html)\n\n[Message Translator](MessageTranslator.html)\n\n[Envelope Wrapper](EnvelopeWrapper.html)\n\n[Content Enricher](DataEnricher.html)\n\n[Content Filter](ContentFilter.html)\n\n[Claim Check](StoreInLibrary.html)\n\n[Normalizer](Normalizer.html)\n\n[Canonical Data Model](CanonicalDataModel.html)\n\n[Messaging Endpoints](MessagingEndpointsIntro.html)\n\n[Message Endpoint](MessageEndpoint.html)\n\n[Messaging Gateway](MessagingGateway.html)\n\n[Messaging Mapper](MessagingMapper.html)\n\n[Transactional Client](TransactionalClient.html)\n\n[Polling Consumer](PollingConsumer.html)\n\n[Event-driven Consumer](EventDrivenConsumer.html)\n\n[Competing Consumers](CompetingConsumers.html)\n\n[Message Dispatcher](MessageDispatcher.html)\n\n[Selective Consumer](MessageSelector.html)\n\n[Durable Subscriber](DurableSubscription.html)\n\n[Idempotent Receiver](IdempotentReceiver.html)\n\n[Service Activator](MessagingAdapter.html)\n\n[Messaging Channels](MessagingChannelsIntro.html)\n\n[Message Channel](MessageChannel.html)\n\n[Point-to-Point Channel](PointToPointChannel.html)\n\n[Publish-Subscr. Channel](PublishSubscribeChannel.html)\n\n[Datatype Channel](DatatypeChannel.html)\n\n[Invalid Message Channel](InvalidMessageChannel.html)\n\n[Dead Letter Channel](DeadLetterChannel.html)\n\n[Guaranteed Delivery](GuaranteedMessaging.html)\n\n[Channel Adapter](ChannelAdapter.html)\n\n[Messaging Bridge](MessagingBridge.html)\n\n[Message Bus](MessageBus.html)\n\n[Systems Mgmt.](SystemManagementIntro.html)\n\n[Control Bus](ControlBus.html)\n\n[Detour](Detour.html)\n\n[Wire Tap](WireTap.html)\n\n[Message History](MessageHistory.html)\n\n[Message Store](MessageStore.html)\n\n[Smart Proxy](SmartProxy.html)\n\n[Test Message](TestMessage.html)\n\n[Channel Purger](ChannelPurger.html)", "znaku_textu": 5605, "slov": 511, "odkazu": 110, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/ContentBasedRouter.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 06:03:40", "sha256": "2e1bcb059062a373d4a86319925c989b73ec891cebffe089608b4e48bc69256c", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://camel.apache.org/", "http://creativecommons.org/licenses/by/4.0/", "https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "https://www.architectelevator.com/book", "https://www.cloudstrategybook.com/", "https://www.platformstrategybook.info/"]} {"url": "https://www.enterpriseintegrationpatterns.com/ContentFilter.html", "titulek": "Content Filter - Enterprise Integration Patterns", "h1": "", "popis": "How do you simplify dealing with a large message, when you are interested only in a few data items?", "klicova_slova": "Content Filter,integration, messaging, events, patterns, event-driven, coupling, eai, middleware, application integration, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns", "og:title": "Content Filter - Enterprise Integration Patterns", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/ContentFilter.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/ContentFilter.gif"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Integration Pattern Language"}], "markdown": "Messaging Patterns\n\n[Messaging Patterns](index.html)\n\n- [Integration Styles](IntegrationStylesIntro.html)\n- [Messaging Systems](MessagingComponentsIntro.html)\n- [Messaging Channels](MessagingChannelsIntro.html)\n- [Message Construction](MessageConstructionIntro.html)\n- [Interlude: Simple Messaging](SimpleMessagingIntro.html)\n- [Message Routing](MessageRoutingIntro.html)\n- [Message Transformation](MessageTransformationIntro.html)\n- [Interlude: Composed Messaging](ComposedMessagingExample.html)\n- [Messaging Endpoints](MessagingEndpointsIntro.html)\n- [System Management](SystemManagementIntro.html)\n- Interlude: Systems Management Example\n- Integration Patterns in Practice\n- Concluding Remarks\n- Appendices\n\n| | Content Filter[Messaging Patterns](index.html) » [Message Transformation](MessageTransformationIntro.html) | [Contents](toc.html)[⇐ Prev](DataEnricher.html)[Next ⇒](StoreInLibrary.html) |\n| --- | --- | --- |\n\nThe [*Content Enricher*](DataEnricher.html) helps us in situations where a message receiver requires more - or different - data elements than the message creator provides. There are surprisingly many situations where the opposite effect is desired: removing data elements from a message.\n\nHow do you simplify dealing with a large message, when you are interested only in a few data items?\n\nUse a *Content Filter* to remove unimportant data items from a message leaving only important items.\n\nThe *Content Filter* does not necessarily just remove data elements. A *Content Filter* is also useful to simplify the structure of the message. Often times, messages are represented as tree structures. Many messages originating from external systems or packaged applications contain many levels of nested, repeating groups because they are modeled after generic, normalized database structures. Frequently, known constraints and assumptions make this level of nesting superfluous and a *Content Filter* can be used to 'flatten' the hierarchy into a simple list of elements than can be more easily understood and processed by other systems.\n\n...\nRead the entire pattern in the book [Enterprise Integration Patterns](/books1.html)\n\n**Related patterns:**\n\n[*Channel Adapter*](ChannelAdapter.html), [*Content Enricher*](DataEnricher.html), [*Splitter*](Sequencer.html)\n\n---\n\n## Integration Pattern Language\n\n[Message Construct.](MessageConstructionIntro.html)\n\n[Message](Message.html)\n\n[Command Message](CommandMessage.html)\n\n[Document Message](DocumentMessage.html)\n\n[Event Message](EventMessage.html)\n\n[Request-Reply](RequestReply.html)\n\n[Return Address](ReturnAddress.html)\n\n[Correlation Identifier](CorrelationIdentifier.html)\n\n[Message Sequence](MessageSequence.html)\n\n[Message Expiration](MessageExpiration.html)\n\n[Format Indicator](FormatIndicator.html)\n\n[Message Routing](MessageRoutingIntro.html)\n\n[Pipes-and-Filters](PipesAndFilters.html)\n\n[Message Router](MessageRouter.html)\n\n[Content-based Router](ContentBasedRouter.html)\n\n[Message Filter](Filter.html)\n\n[Dynamic Router](DynamicRouter.html)\n\n[Recipient List](RecipientList.html)\n\n[Splitter](Sequencer.html)\n\n[Aggregator](Aggregator.html)\n\n[Resequencer](Resequencer.html)\n\n[Composed Msg. Processor](DistributionAggregate.html)\n\n[Scatter-Gather](BroadcastAggregate.html)\n\n[Routing Slip](RoutingTable.html)\n\n[Process Manager](ProcessManager.html)\n\n[Message Broker](MessageBroker.html)\n\n[Message\nTransformation](MessageTransformationIntro.html)\n\n[Message Translator](MessageTranslator.html)\n\n[Envelope Wrapper](EnvelopeWrapper.html)\n\n[Content Enricher](DataEnricher.html)\n\n[Content Filter](ContentFilter.html)\n\n[Claim Check](StoreInLibrary.html)\n\n[Normalizer](Normalizer.html)\n\n[Canonical Data Model](CanonicalDataModel.html)\n\n[Messaging Endpoints](MessagingEndpointsIntro.html)\n\n[Message Endpoint](MessageEndpoint.html)\n\n[Messaging Gateway](MessagingGateway.html)\n\n[Messaging Mapper](MessagingMapper.html)\n\n[Transactional Client](TransactionalClient.html)\n\n[Polling Consumer](PollingConsumer.html)\n\n[Event-driven Consumer](EventDrivenConsumer.html)\n\n[Competing Consumers](CompetingConsumers.html)\n\n[Message Dispatcher](MessageDispatcher.html)\n\n[Selective Consumer](MessageSelector.html)\n\n[Durable Subscriber](DurableSubscription.html)\n\n[Idempotent Receiver](IdempotentReceiver.html)\n\n[Service Activator](MessagingAdapter.html)\n\n[Messaging Channels](MessagingChannelsIntro.html)\n\n[Message Channel](MessageChannel.html)\n\n[Point-to-Point Channel](PointToPointChannel.html)\n\n[Publish-Subscr. Channel](PublishSubscribeChannel.html)\n\n[Datatype Channel](DatatypeChannel.html)\n\n[Invalid Message Channel](InvalidMessageChannel.html)\n\n[Dead Letter Channel](DeadLetterChannel.html)\n\n[Guaranteed Delivery](GuaranteedMessaging.html)\n\n[Channel Adapter](ChannelAdapter.html)\n\n[Messaging Bridge](MessagingBridge.html)\n\n[Message Bus](MessageBus.html)\n\n[Systems Mgmt.](SystemManagementIntro.html)\n\n[Control Bus](ControlBus.html)\n\n[Detour](Detour.html)\n\n[Wire Tap](WireTap.html)\n\n[Message History](MessageHistory.html)\n\n[Message Store](MessageStore.html)\n\n[Smart Proxy](SmartProxy.html)\n\n[Test Message](TestMessage.html)\n\n[Channel Purger](ChannelPurger.html)\n\n- » [Read the latest in My Blog](/ramblings)\n- » [Get more insights from My Articles](/articles.html)\n- » [See me live in my Upcoming Talks](/talks)\n\nYou can reuse the following elements under the [Creative Commons Attribution](http://creativecommons.org/licenses/by/4.0/) license: pattern icon, pattern name, problem and solution statements (in bold), and the sketch. Other portions are protected by copyright.\n\n[Enterprise Integration Patterns](https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20)\nThe de-facto language for designing asynchronous, distributed systems. Over 100,000 copies sold.\n\n[The Software Architect Elevator](https://www.architectelevator.com/book)\n\n Rethink the role of architects as a connecting element across organizational layers. Acquire the technical, communication, and organizational skills to succeed in this new role.\n\n[Cloud Strategy](https://www.cloudstrategybook.com)\n\n Make your cloud migration a success by translating high-level goals into conscious decisions with well-understood trade-offs.\n\n[Platform Strategy](https://www.platformstrategybook.info)\n\n Platforms can boost innovation through harmonization, but they aren't easy to build. Learn from over a decade of designing and rolling out IT platforms.", "znaku_textu": 6227, "slov": 528, "odkazu": 108, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/ContentFilter.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 06:03:55", "sha256": "f69bfd2a462917b1a97497a9362c30a30d9744d85cd8258b01fa9ee0a9118afb", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://creativecommons.org/licenses/by/4.0/", "https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "https://www.architectelevator.com/book", "https://www.cloudstrategybook.com/", "https://www.platformstrategybook.info/"]} {"url": "https://www.enterpriseintegrationpatterns.com/ControlBus.html", "titulek": "Control Bus - Enterprise Integration Patterns", "h1": "", "popis": "How can we effectively administer a messaging system that is distributed across multiple platforms and a wide geographic area?", "klicova_slova": "Control Bus,integration, messaging, events, patterns, event-driven, coupling, eai, middleware, application integration, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns", "og:title": "Control Bus - Enterprise Integration Patterns", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/ControlBus.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/ControlBus.gif"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Integration Pattern Language"}], "markdown": "Messaging Patterns\n\n[Messaging Patterns](index.html)\n\n- [Integration Styles](IntegrationStylesIntro.html)\n- [Messaging Systems](MessagingComponentsIntro.html)\n- [Messaging Channels](MessagingChannelsIntro.html)\n- [Message Construction](MessageConstructionIntro.html)\n- [Interlude: Simple Messaging](SimpleMessagingIntro.html)\n- [Message Routing](MessageRoutingIntro.html)\n- [Message Transformation](MessageTransformationIntro.html)\n- [Interlude: Composed Messaging](ComposedMessagingExample.html)\n- [Messaging Endpoints](MessagingEndpointsIntro.html)\n- [System Management](SystemManagementIntro.html)\n- Interlude: Systems Management Example\n- Integration Patterns in Practice\n- Concluding Remarks\n- Appendices\n\n| | Control Bus[Messaging Patterns](index.html) » [System Management](SystemManagementIntro.html) | [Contents](toc.html)[⇐ Prev](SystemManagementIntro.html)[Next ⇒](Detour.html) |\n| --- | --- | --- |\n\nNaturally, enterprise integration systems are distributed. In fact, one of the defining qualities of an enterprise messaging system is to enable communication between disparate systems. Messaging systems allow information to be routed and transformed so that data can be exchanged between these systems. In most cases, these applications are spread across multiple networks, buildings, cities or continents.\n\nHow can we effectively administer a messaging system that is distributed across multiple platforms and a wide geographic area?\n\nUse a *Control Bus* to manage an enterprise integration system. The *Control Bus* uses the same messaging mechanism used by the application data, but uses separate channels to transmit data that is relevant to the management of components involved in the message flow.\n\nEach component in the system is now connected to two messaging subsystems:\n\n- The Application Message Flow\n- The *Control Bus*\n\n...\nRead the entire pattern in the book [Enterprise Integration Patterns](/books1.html)\n\n**Related patterns:**\n\n[*Asynchronous Implementation with MSMQ*](ComposedMessagingMSMQ.html), [*Content-Based Router*](ContentBasedRouter.html), [*Loan Broker System Management*](SystemManagementExample.html), [*Test Message*](TestMessage.html)\n\n---\n\n## Integration Pattern Language\n\n[Message Construct.](MessageConstructionIntro.html)\n\n[Message](Message.html)\n\n[Command Message](CommandMessage.html)\n\n[Document Message](DocumentMessage.html)\n\n[Event Message](EventMessage.html)\n\n[Request-Reply](RequestReply.html)\n\n[Return Address](ReturnAddress.html)\n\n[Correlation Identifier](CorrelationIdentifier.html)\n\n[Message Sequence](MessageSequence.html)\n\n[Message Expiration](MessageExpiration.html)\n\n[Format Indicator](FormatIndicator.html)\n\n[Message Routing](MessageRoutingIntro.html)\n\n[Pipes-and-Filters](PipesAndFilters.html)\n\n[Message Router](MessageRouter.html)\n\n[Content-based Router](ContentBasedRouter.html)\n\n[Message Filter](Filter.html)\n\n[Dynamic Router](DynamicRouter.html)\n\n[Recipient List](RecipientList.html)\n\n[Splitter](Sequencer.html)\n\n[Aggregator](Aggregator.html)\n\n[Resequencer](Resequencer.html)\n\n[Composed Msg. Processor](DistributionAggregate.html)\n\n[Scatter-Gather](BroadcastAggregate.html)\n\n[Routing Slip](RoutingTable.html)\n\n[Process Manager](ProcessManager.html)\n\n[Message Broker](MessageBroker.html)\n\n[Message\nTransformation](MessageTransformationIntro.html)\n\n[Message Translator](MessageTranslator.html)\n\n[Envelope Wrapper](EnvelopeWrapper.html)\n\n[Content Enricher](DataEnricher.html)\n\n[Content Filter](ContentFilter.html)\n\n[Claim Check](StoreInLibrary.html)\n\n[Normalizer](Normalizer.html)\n\n[Canonical Data Model](CanonicalDataModel.html)\n\n[Messaging Endpoints](MessagingEndpointsIntro.html)\n\n[Message Endpoint](MessageEndpoint.html)\n\n[Messaging Gateway](MessagingGateway.html)\n\n[Messaging Mapper](MessagingMapper.html)\n\n[Transactional Client](TransactionalClient.html)\n\n[Polling Consumer](PollingConsumer.html)\n\n[Event-driven Consumer](EventDrivenConsumer.html)\n\n[Competing Consumers](CompetingConsumers.html)\n\n[Message Dispatcher](MessageDispatcher.html)\n\n[Selective Consumer](MessageSelector.html)\n\n[Durable Subscriber](DurableSubscription.html)\n\n[Idempotent Receiver](IdempotentReceiver.html)\n\n[Service Activator](MessagingAdapter.html)\n\n[Messaging Channels](MessagingChannelsIntro.html)\n\n[Message Channel](MessageChannel.html)\n\n[Point-to-Point Channel](PointToPointChannel.html)\n\n[Publish-Subscr. Channel](PublishSubscribeChannel.html)\n\n[Datatype Channel](DatatypeChannel.html)\n\n[Invalid Message Channel](InvalidMessageChannel.html)\n\n[Dead Letter Channel](DeadLetterChannel.html)\n\n[Guaranteed Delivery](GuaranteedMessaging.html)\n\n[Channel Adapter](ChannelAdapter.html)\n\n[Messaging Bridge](MessagingBridge.html)\n\n[Message Bus](MessageBus.html)\n\n[Systems Mgmt.](SystemManagementIntro.html)\n\n[Control Bus](ControlBus.html)\n\n[Detour](Detour.html)\n\n[Wire Tap](WireTap.html)\n\n[Message History](MessageHistory.html)\n\n[Message Store](MessageStore.html)\n\n[Smart Proxy](SmartProxy.html)\n\n[Test Message](TestMessage.html)\n\n[Channel Purger](ChannelPurger.html)\n\n- » [Read the latest in My Blog](/ramblings)\n- » [Get more insights from My Articles](/articles.html)\n- » [See me live in my Upcoming Talks](/talks)\n\nYou can reuse the following elements under the [Creative Commons Attribution](http://creativecommons.org/licenses/by/4.0/) license: pattern icon, pattern name, problem and solution statements (in bold), and the sketch. Other portions are protected by copyright.\n\n[Enterprise Integration Patterns](https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20)\nThe de-facto language for designing asynchronous, distributed systems. Over 100,000 copies sold.\n\n[The Software Architect Elevator](https://www.architectelevator.com/book)\n\n Rethink the role of architects as a connecting element across organizational layers. Acquire the technical, communication, and organizational skills to succeed in this new role.\n\n[Cloud Strategy](https://www.cloudstrategybook.com)\n\n Make your cloud migration a success by translating high-level goals into conscious decisions with well-understood trade-offs.\n\n[Platform Strategy](https://www.platformstrategybook.info)\n\n Platforms can boost innovation through harmonization, but they aren't easy to build. Learn from over a decade of designing and rolling out IT platforms.", "znaku_textu": 6130, "slov": 505, "odkazu": 108, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/ControlBus.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 06:52:57", "sha256": "02e972bbe0613828b484908e5a6d0c01de80d324a76267dc0bd80763a925f6bb", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://creativecommons.org/licenses/by/4.0/", "https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "https://www.architectelevator.com/book", "https://www.cloudstrategybook.com/", "https://www.platformstrategybook.info/"]} {"url": "https://www.enterpriseintegrationpatterns.com/CorrelationIdentifier.html", "titulek": "Correlation Identifier - Enterprise Integration Patterns", "h1": "", "popis": "How does a requestor that has received a reply know which request this is the reply for?", "klicova_slova": "Correlation Identifier,integration, messaging, events, patterns, event-driven, coupling, eai, middleware, application integration, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns", "og:title": "Correlation Identifier - Enterprise Integration Patterns", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/CorrelationIdentifier.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/CorrelationIdentifierSolution.gif"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Integration Pattern Language"}], "markdown": "Messaging Patterns\n\n[Messaging Patterns](index.html)\n\n- [Integration Styles](IntegrationStylesIntro.html)\n- [Messaging Systems](MessagingComponentsIntro.html)\n- [Messaging Channels](MessagingChannelsIntro.html)\n- [Message Construction](MessageConstructionIntro.html)\n- [Interlude: Simple Messaging](SimpleMessagingIntro.html)\n- [Message Routing](MessageRoutingIntro.html)\n- [Message Transformation](MessageTransformationIntro.html)\n- [Interlude: Composed Messaging](ComposedMessagingExample.html)\n- [Messaging Endpoints](MessagingEndpointsIntro.html)\n- [System Management](SystemManagementIntro.html)\n- Interlude: Systems Management Example\n- Integration Patterns in Practice\n- Concluding Remarks\n- Appendices\n\n| | Correlation Identifier[Messaging Patterns](index.html) » [Message Construction](MessageConstructionIntro.html) | [Contents](toc.html)[⇐ Prev](ReturnAddress.html)[Next ⇒](MessageSequence.html) |\n| --- | --- | --- |\n\nMy application is using [*Messaging*](Messaging.html) to perform a [*Request-Reply*](RequestReply.html) and has received a reply message.\n\nHow does a requestor that has received a reply know which request this is the reply for?\n\nEach reply message should contain a *Correlation Identifier*, a unique identifier that indicates which request message this reply is for.\n\nThere are six parts to *Correlation Identifier*:\n\n1. **Requestor** — An application that performs a business task by sending a request and waiting for a reply.\n2. **Replier** — Another application that receives the request, fulfills it, then sends the reply. It gets the request ID from the request and stores it as the correlation ID in the reply.\n3. **Request** — A [*Message*](Message.html) sent from the requestor to the replier containing a request ID.\n4. **Reply** — A [*Message*](Message.html) sent from the replier to the requestor containing a correlation ID.\n5. **Request ID** — A token in the request that uniquely identifies the request.\n6. **Correlation ID** — A token in the reply that has the same value as the request ID in the request.\n\n...\nRead the entire pattern in the book [Enterprise Integration Patterns](/books1.html)\n\n**Related patterns:**\n\n[*Remote Procedure Invocation*](EncapsulatedSynchronousIntegration.html), [*Message*](Message.html), [*Selective Consumer*](MessageSelector.html), [*Message Sequence*](MessageSequence.html), [*Messaging*](Messaging.html), [*Request-Reply*](RequestReply.html), [*Return Address*](ReturnAddress.html)\n\n**Further reading:**\n\n- [Correlation and Conversations](/ramblings/09_correlation.html)\n\n---\n\n## Integration Pattern Language\n\n[Message Construct.](MessageConstructionIntro.html)\n\n[Message](Message.html)\n\n[Command Message](CommandMessage.html)\n\n[Document Message](DocumentMessage.html)\n\n[Event Message](EventMessage.html)\n\n[Request-Reply](RequestReply.html)\n\n[Return Address](ReturnAddress.html)\n\n[Correlation Identifier](CorrelationIdentifier.html)\n\n[Message Sequence](MessageSequence.html)\n\n[Message Expiration](MessageExpiration.html)\n\n[Format Indicator](FormatIndicator.html)\n\n[Message Routing](MessageRoutingIntro.html)\n\n[Pipes-and-Filters](PipesAndFilters.html)\n\n[Message Router](MessageRouter.html)\n\n[Content-based Router](ContentBasedRouter.html)\n\n[Message Filter](Filter.html)\n\n[Dynamic Router](DynamicRouter.html)\n\n[Recipient List](RecipientList.html)\n\n[Splitter](Sequencer.html)\n\n[Aggregator](Aggregator.html)\n\n[Resequencer](Resequencer.html)\n\n[Composed Msg. Processor](DistributionAggregate.html)\n\n[Scatter-Gather](BroadcastAggregate.html)\n\n[Routing Slip](RoutingTable.html)\n\n[Process Manager](ProcessManager.html)\n\n[Message Broker](MessageBroker.html)\n\n[Message\nTransformation](MessageTransformationIntro.html)\n\n[Message Translator](MessageTranslator.html)\n\n[Envelope Wrapper](EnvelopeWrapper.html)\n\n[Content Enricher](DataEnricher.html)\n\n[Content Filter](ContentFilter.html)\n\n[Claim Check](StoreInLibrary.html)\n\n[Normalizer](Normalizer.html)\n\n[Canonical Data Model](CanonicalDataModel.html)\n\n[Messaging Endpoints](MessagingEndpointsIntro.html)\n\n[Message Endpoint](MessageEndpoint.html)\n\n[Messaging Gateway](MessagingGateway.html)\n\n[Messaging Mapper](MessagingMapper.html)\n\n[Transactional Client](TransactionalClient.html)\n\n[Polling Consumer](PollingConsumer.html)\n\n[Event-driven Consumer](EventDrivenConsumer.html)\n\n[Competing Consumers](CompetingConsumers.html)\n\n[Message Dispatcher](MessageDispatcher.html)\n\n[Selective Consumer](MessageSelector.html)\n\n[Durable Subscriber](DurableSubscription.html)\n\n[Idempotent Receiver](IdempotentReceiver.html)\n\n[Service Activator](MessagingAdapter.html)\n\n[Messaging Channels](MessagingChannelsIntro.html)\n\n[Message Channel](MessageChannel.html)\n\n[Point-to-Point Channel](PointToPointChannel.html)\n\n[Publish-Subscr. Channel](PublishSubscribeChannel.html)\n\n[Datatype Channel](DatatypeChannel.html)\n\n[Invalid Message Channel](InvalidMessageChannel.html)\n\n[Dead Letter Channel](DeadLetterChannel.html)\n\n[Guaranteed Delivery](GuaranteedMessaging.html)\n\n[Channel Adapter](ChannelAdapter.html)\n\n[Messaging Bridge](MessagingBridge.html)\n\n[Message Bus](MessageBus.html)\n\n[Systems Mgmt.](SystemManagementIntro.html)\n\n[Control Bus](ControlBus.html)\n\n[Detour](Detour.html)\n\n[Wire Tap](WireTap.html)\n\n[Message History](MessageHistory.html)\n\n[Message Store](MessageStore.html)\n\n[Smart Proxy](SmartProxy.html)\n\n[Test Message](TestMessage.html)\n\n[Channel Purger](ChannelPurger.html)\n\n- » [Read the latest in My Blog](/ramblings)\n- » [Get more insights from My Articles](/articles.html)\n- » [See me live in my Upcoming Talks](/talks)\n\nYou can reuse the following elements under the [Creative Commons Attribution](http://creativecommons.org/licenses/by/4.0/) license: pattern icon, pattern name, problem and solution statements (in bold), and the sketch. Other portions are protected by copyright.\n\n[Enterprise Integration Patterns](https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20)\nThe de-facto language for designing asynchronous, distributed systems. Over 100,000 copies sold.\n\n[The Software Architect Elevator](https://www.architectelevator.com/book)\n\n Rethink the role of architects as a connecting element across organizational layers. Acquire the technical, communication, and organizational skills to succeed in this new role.\n\n[Cloud Strategy](https://www.cloudstrategybook.com)\n\n Make your cloud migration a success by translating high-level goals into conscious decisions with well-understood trade-offs.\n\n[Platform Strategy](https://www.platformstrategybook.info)\n\n Platforms can boost innovation through harmonization, but they aren't easy to build. Learn from over a decade of designing and rolling out IT platforms.", "znaku_textu": 6477, "slov": 567, "odkazu": 109, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/CorrelationIdentifier.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 06:03:32", "sha256": "d388f9c3f4b82638a3d57033e9e8e779ab919370c13af8a5fd79c76219e327e1", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://creativecommons.org/licenses/by/4.0/", "https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "https://www.architectelevator.com/book", "https://www.cloudstrategybook.com/", "https://www.platformstrategybook.info/"]} {"url": "https://www.enterpriseintegrationpatterns.com/DataEnricher.html", "titulek": "Content Enricher - Enterprise Integration Patterns", "h1": "", "popis": "How do we communicate with another system if the message originator does not have all the required data items available?", "klicova_slova": "Content Enricher,integration, messaging, events, patterns, event-driven, coupling, eai, middleware, application integration, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns", "og:title": "Content Enricher - Enterprise Integration Patterns", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/DataEnricher.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/DataEnricher.gif"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Example: Content Enricher with Amazon EventBridge PipesNEW"}, {"uroven": 2, "text": "Integration Pattern Language"}], "markdown": "| | Content Enricher[Messaging Patterns](index.html) » [Message Transformation](MessageTransformationIntro.html) | [Contents](toc.html)[⇐ Prev](EnvelopeWrapper.html)[Next ⇒](ContentFilter.html) |\n| --- | --- | --- |\n\nWhen sending messages from one system to another it is common for the target system to require more information than the source system can provide. For example, incoming Address messages may just contain the ZIP code because the designers felt that storing a redundant state code would be superfluous. Likely, another system is going to want to specify both a state code and a ZIP code field. Yet another system may not actually use state codes, but spell the state name out because it uses free-form addresses in order to support international addresses. Likewise, one system may provide us with a customer ID, but the receiving system actually requires the customer name and address. An order message sent by the order management system may just contain an order number, but we need to find the customer ID associated with that order, so we can pass it to the customer management system. The scenarios are plentiful.\n\nHow do we communicate with another system if the message originator does not have all the required data items available?\n\nUse a specialized transformer, a *Content Enricher*, to access an external data source in order to augment a message with missing information.\n\nThe *Content Enricher* uses information inside the incoming message (e.g. key fields) to retrieve data from an external source. After the *Content Enricher* retrieves the required data from the resource, it appends the data to the message. The original information from the incoming message may be carried over into the resulting message or may no longer be needed, depending on the specific needs of the receiving application.\n\nThe additional information injected by the *Content Enricher* has to be available somewhere in the system. The most common sources for the new data are:\n\n- **Computation** The *Content Enricher* may be able to compute the missing information. In this case, the algorithm incorporates the additional information. For example, if the receiving system requires a state code but the incoming message only contains a ZIP code. Or, a receiving system may require a data format that specifies the total size of the message. The *Content Enricher* can add the length of all message fields and thus compute the message size. This form of *Content Enricher* is very similar to the basic [*Message Translator*](MessageTranslator.html) because it needs no external data source.\n- **Environment** The *Content Enricher* may be able to retrieve the additional data from the operating environment. The most common example is a time stamp. For example, the receiving system may require each message to carry a time stamp. if the sending system does not include this field, the *Content Enricher* can get the current time from the operating system and add it to the message.\n- **Another System** This option is the most common one. The *Content Enricher* has to retrieve the missing data from another system. This data resource can take on a number of forms, including a database, a file, an LDAP directory, a system, or a user who manually enters missing data.\n\n...\nRead the entire pattern in the book [Enterprise Integration Patterns](/books1.html)\n\n## Example: Content Enricher with Amazon EventBridge Pipes[NEW](/ramblings/eip1_examples_updated.html)\n\nFor cloud-based messaging systems, [Amazon EventBridge Pipes](https://docs.aws.amazon.com/eventbridge/latest/userguide/eb-pipes.html#pipes-enrichment) can implement a *Content Enricher* through the \"Enrichment\" step:\n\n*Enriching messages with Amazon EventBridge Pipes*\n\nThe step itself is a slight misnomer as it can implement any [*Message Translator*](MessageTranslator.html) or even a [*Message Filter*](Filter.html) for batched sources. The pipe simply passes on the message(s) that are returned by the *Enrichment* step. To build an actual *Content Enricher*, you can use a Lambda function that fetches additional data from a DynamoDB table based on a key from the original message. You can find the source code for this example implementation in the [EIP Code Repository](https://github.com/spac3lord/eip/tree/master/ContentEnricher).\n\nYou start out by creating two [*Message Channel*](MessageChannel.html)s in form of Amazon SQS Queues (the example uses the AWS CLI command line to keep things simple; for real projects an automation script is highly recommended):\n\n```\n$ aws sqs create-queue --queue-name EntityIDs --attributes='{\"MessageRetentionPeriod\": \"300\"}'\n$ aws sqs create-queue --queue-name EntityUpdates --attributes='{\"MessageRetentionPeriod\": \"300\"}'\n$ aws sqs list-queues\n```\n\nThe last command prints out the URLs of the created queues, which you will need later.\n\nThe *Content Enricher*, implemented in EventBridge Pipes, Lambda, and DynamoDB, will fetch messages containing just id fields from *EntityID* queue and publish enriched events to the *EntityUpdates* queue. To build the *Content Enricher*, you first create a table to hold the *Entity* data and load it up with sample data, which is most easily done with a JSON file (available in the [EIP Code Repository](https://github.com/spac3lord/eip/tree/master/ContentEnricher)):\n\n```\n$ aws dynamodb create-table --table-name Entities \\\n --attribute-definitions AttributeName=id,AttributeType=S \\\n --key-schema AttributeName=id,KeyType=HASH \\\n --billing-mode PAY_PER_REQUEST\n\n$ aws dynamodb batch-write-item --request-items file://entities.json\n```\n\nTo check that the table is loaded (and to get accustomed to DynamoDB's syntax), you can fetch an entity:\n\n```\n $ aws dynamodb get-item --table-name Entities --key '{\"id\": {\"S\": \"123\"}}'\n {\n \"Item\": {\n \"id\": { \"S\": \"123\" },\n \"Amount\": { \"N\": \"12.34\" },\n \"Type\": { \"S\": \"Order\" },\n \"Customer\": { \"S\": \"Pete's Pizza\" }\n }\n}\n```\n\nBefore you create the Pipe, you need to create a security role with the required permissions (the trust policy file is supplied in the EIP repository) so that your pipe can read and write messages from SQS and invoke a Lambda function. It's also handy to get your account ID and store it in a variable (if the command line doesn't support evaluations, you can execute the command by hand and set the variable explicitly or just replace $id with the number on each command line):\n\n```\n$ id=`aws sts get-caller-identity --query 'Account' --output text`\n$ echo $id\n1234567890\n\n$ aws iam create-role --role-name EventBridge_Pipes_Enricher --assume-role-policy-document file://trust_policy_pipes.json\n\n$ aws iam create-policy --policy-name pipes_sqs_lambda_sqs --policy-document file://pipes_role_policy.json \\\n --query Policy.Arn --output text\n\n$ aws iam attach-role-policy --role-name EventBridge_Pipes_Enricher --policy-arn arn:aws:iam::$id:policy/pipes_sqs_lambda_sqs\n```\n\nAdditionally, you need to grant write permission to the *EntityUpdates* queue with a so-called resource policy that's attached to a resource instead of a role:\n\n```\n$ aws sqs add-permission --queue-url= https://sqs.ap-southeast-1.amazonaws.com/$id/EntityUpdates \\\n --aws-account-ids=$id \\\n --actions SendMessage ReceiveMessage DeleteMessage ChangeMessageVisibility \\\n --label SendEntities\n```\n\nYou can now create a Pipe and give it the required permissions through the role you just created (notice the use of $id for the account ID):\n\n```\n$ aws pipes create-pipe --name ContentEnricher \\\n --source arn:aws:sqs:ap-southeast-1:$id:EntityIDs \\\n --target arn:aws:sqs:ap-southeast-1:$id:EntityUpdates \\\n --enrichment arn:aws:lambda:ap-southeast-1:$id:function:EnrichFromDynamoDB \\\n --role-arn arn:aws:iam::$id:role/EventBridge_Pipes_Enricher\n```\n\nYou also need to deploy the Lambda function that looks up the entities from the database and returns the enriched messages. EventBridge pipes can work in batches, meaning it can fetch more than one event from the event source at one time. Correspondingly, your Lambda function has to be prepared receive a list of IDs. In my implementation, it uses the batch_get_item method to look up all IDs at once (invalid IDs simply don't return an item):\n\n```\nimport json\nimport boto3\n\ndynamo = boto3.resource('dynamodb')\ntable_name = 'Entities'\n\ndef lambda_handler(event, context):\n keys = []\n for evt in event:\n body = json.loads(evt['body'])\n keys += [ {'id': body['id']} ]\n data = dynamo.batch_get_item(RequestItems={table_name: {'Keys': keys} })\n return data['Responses'][table_name]\n```\n\nAs you might have guessed, the Lambda function also needs a role that allows it to read from DynamoDB and write logs:\n\n```\n$ aws iam create-role --role-name Lambda_Enricher --assume-role-policy-document file://trust_policy_lambda.json\n\n$ aws iam attach-role-policy --role-name Lambda_Enricher --policy-arn arn:aws:iam::aws:policy/AmazonDynamoDBReadOnlyAccess\n\n$ aws iam attach-role-policy --role-name Lambda_Enricher --policy-arn arn:aws:iam::aws:policy/service-role/AWSLambdaBasicExecutionRole\n```\n\nTo deploy the function directly, you need to first zip it up (using any Zip utility) to code.zip and deploy it with the following command line (again, notice the $id being referenced):\n\n```\n$ aws lambda create-function --function-name EnrichFromDynamoDB \\\n --role arn:aws:iam::$id:role/Lambda_Enricher \\\n --runtime python3.9 --zip-file fileb://code.zip --handler DynamoDBEnricher.lambda_handler\n```\n\nShow time! You can now send a message to the inbound queue for the *Content Enricher* and poll the result queue for enriched messages (the query and output parameters just filter down the output to the message body; feel free to omit them for the full experience):\n\n```\n$ aws sqs send-message --queue-url https://sqs.ap-southeast-1.amazonaws.com/$id/EntityIDs --message-body '{\"id\": \"123\"}'\n$ aws sqs send-message --queue-url https://sqs.ap-southeast-1.amazonaws.com/$id/EntityIDs --message-body '{\"id\": \"456\"}'\n\n$ aws sqs receive-message --max-number-of-messages 5 \\\n --queue-url https://sqs.ap-southeast-1.amazonaws.com/$id/EntityUpdates \\\n --query 'Messages[*].Body' --output text\n{\"id\":\"123\",\"Amount\":\"12.34\",\"Type\":\"Order\",\"Customer\":\"Pete's Pizza\"}\n{\"id\":\"456\",\"Amount\":\"22.22\",\"Type\":\"Order\",\"Customer\":\"Mary's Muffins\"}\n```\n\n**Related patterns:**\n\n[*Content Filter*](ContentFilter.html), [*Event Message*](EventMessage.html), [*Message Filter*](Filter.html), [*Message Channel*](MessageChannel.html), [*Message Translator*](MessageTranslator.html), [*Claim Check*](StoreInLibrary.html)\n\n---\n\n## Integration Pattern Language\n\n[Message Construct.](MessageConstructionIntro.html)\n\n[Message](Message.html)\n\n[Command Message](CommandMessage.html)\n\n[Document Message](DocumentMessage.html)\n\n[Event Message](EventMessage.html)\n\n[Request-Reply](RequestReply.html)\n\n[Return Address](ReturnAddress.html)\n\n[Correlation Identifier](CorrelationIdentifier.html)\n\n[Message Sequence](MessageSequence.html)\n\n[Message Expiration](MessageExpiration.html)\n\n[Format Indicator](FormatIndicator.html)\n\n[Message Routing](MessageRoutingIntro.html)\n\n[Pipes-and-Filters](PipesAndFilters.html)\n\n[Message Router](MessageRouter.html)\n\n[Content-based Router](ContentBasedRouter.html)\n\n[Message Filter](Filter.html)\n\n[Dynamic Router](DynamicRouter.html)\n\n[Recipient List](RecipientList.html)\n\n[Splitter](Sequencer.html)\n\n[Aggregator](Aggregator.html)\n\n[Resequencer](Resequencer.html)\n\n[Composed Msg. Processor](DistributionAggregate.html)\n\n[Scatter-Gather](BroadcastAggregate.html)\n\n[Routing Slip](RoutingTable.html)\n\n[Process Manager](ProcessManager.html)\n\n[Message Broker](MessageBroker.html)\n\n[Message\nTransformation](MessageTransformationIntro.html)\n\n[Message Translator](MessageTranslator.html)\n\n[Envelope Wrapper](EnvelopeWrapper.html)\n\n[Content Enricher](DataEnricher.html)\n\n[Content Filter](ContentFilter.html)\n\n[Claim Check](StoreInLibrary.html)\n\n[Normalizer](Normalizer.html)\n\n[Canonical Data Model](CanonicalDataModel.html)\n\n[Messaging Endpoints](MessagingEndpointsIntro.html)\n\n[Message Endpoint](MessageEndpoint.html)\n\n[Messaging Gateway](MessagingGateway.html)\n\n[Messaging Mapper](MessagingMapper.html)\n\n[Transactional Client](TransactionalClient.html)\n\n[Polling Consumer](PollingConsumer.html)\n\n[Event-driven Consumer](EventDrivenConsumer.html)\n\n[Competing Consumers](CompetingConsumers.html)\n\n[Message Dispatcher](MessageDispatcher.html)\n\n[Selective Consumer](MessageSelector.html)\n\n[Durable Subscriber](DurableSubscription.html)\n\n[Idempotent Receiver](IdempotentReceiver.html)\n\n[Service Activator](MessagingAdapter.html)\n\n[Messaging Channels](MessagingChannelsIntro.html)\n\n[Message Channel](MessageChannel.html)\n\n[Point-to-Point Channel](PointToPointChannel.html)\n\n[Publish-Subscr. Channel](PublishSubscribeChannel.html)\n\n[Datatype Channel](DatatypeChannel.html)\n\n[Invalid Message Channel](InvalidMessageChannel.html)\n\n[Dead Letter Channel](DeadLetterChannel.html)\n\n[Guaranteed Delivery](GuaranteedMessaging.html)\n\n[Channel Adapter](ChannelAdapter.html)\n\n[Messaging Bridge](MessagingBridge.html)\n\n[Message Bus](MessageBus.html)\n\n[Systems Mgmt.](SystemManagementIntro.html)\n\n[Control Bus](ControlBus.html)\n\n[Detour](Detour.html)\n\n[Wire Tap](WireTap.html)\n\n[Message History](MessageHistory.html)\n\n[Message Store](MessageStore.html)\n\n[Smart Proxy](SmartProxy.html)\n\n[Test Message](TestMessage.html)\n\n[Channel Purger](ChannelPurger.html)", "znaku_textu": 13013, "slov": 1606, "odkazu": 111, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/DataEnricher.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 06:03:54", "sha256": "5abab4ed38c6771bde64ba64de89986647662400f460b1873ade68e41f7dcb1d", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://docs.aws.amazon.com/eventbridge/latest/userguide/eb-pipes.html", "https://github.com/spac3lord/eip/tree/master/ContentEnricher", "http://creativecommons.org/licenses/by/4.0/", "https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "https://www.architectelevator.com/book", "https://www.cloudstrategybook.com/", "https://www.platformstrategybook.info/"]} {"url": "https://www.enterpriseintegrationpatterns.com/DatatypeChannel.html", "titulek": "Datatype Channel - Enterprise Integration Patterns", "h1": "", "popis": "How can the application send a data item such that the receiver will know how to process it?", "klicova_slova": "Datatype Channel,integration, messaging, events, patterns, event-driven, coupling, eai, middleware, application integration, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns", "og:title": "Datatype Channel - Enterprise Integration Patterns", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/DatatypeChannel.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/DatatypeSolution.gif"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Integration Pattern Language"}], "markdown": "Messaging Patterns\n\n[Messaging Patterns](index.html)\n\n- [Integration Styles](IntegrationStylesIntro.html)\n- [Messaging Systems](MessagingComponentsIntro.html)\n- [Messaging Channels](MessagingChannelsIntro.html)\n- [Message Construction](MessageConstructionIntro.html)\n- [Interlude: Simple Messaging](SimpleMessagingIntro.html)\n- [Message Routing](MessageRoutingIntro.html)\n- [Message Transformation](MessageTransformationIntro.html)\n- [Interlude: Composed Messaging](ComposedMessagingExample.html)\n- [Messaging Endpoints](MessagingEndpointsIntro.html)\n- [System Management](SystemManagementIntro.html)\n- Interlude: Systems Management Example\n- Integration Patterns in Practice\n- Concluding Remarks\n- Appendices\n\n| | Datatype Channel[Messaging Patterns](index.html) » [Messaging Channels](MessagingChannelsIntro.html) | [Contents](toc.html)[⇐ Prev](PublishSubscribeChannel.html)[Next ⇒](InvalidMessageChannel.html) |\n| --- | --- | --- |\n\nAn application is using [*Messaging*](Messaging.html) to transfer different types of data, such as different types of documents.\n\nHow can the application send a data item such that the receiver will know how to process it?\n\nUse a separate *Datatype Channel* for each data type, so that all data on a particular channel is of the same type.\n\nBy using a separate *Datatype Channel* for each type of data, all of the messages on a given channel will contain the same type of data. The sender, knowing what type the data is, will need to select the appropriate channel to send it on. The receiver, knowing what channel the data was received on, will know what its type is.\n\n...\nRead the entire pattern in the book [Enterprise Integration Patterns](/books1.html)\n\n**Related patterns:**\n\n[*Canonical Data Model*](CanonicalDataModel.html), [*Command Message*](CommandMessage.html), [*Format Indicator*](FormatIndicator.html), [*Message Channel*](MessageChannel.html), [*Message Dispatcher*](MessageDispatcher.html), [*Selective Consumer*](MessageSelector.html), [*Messaging*](Messaging.html)\n\n---\n\n## Integration Pattern Language\n\n[Message Construct.](MessageConstructionIntro.html)\n\n[Message](Message.html)\n\n[Command Message](CommandMessage.html)\n\n[Document Message](DocumentMessage.html)\n\n[Event Message](EventMessage.html)\n\n[Request-Reply](RequestReply.html)\n\n[Return Address](ReturnAddress.html)\n\n[Correlation Identifier](CorrelationIdentifier.html)\n\n[Message Sequence](MessageSequence.html)\n\n[Message Expiration](MessageExpiration.html)\n\n[Format Indicator](FormatIndicator.html)\n\n[Message Routing](MessageRoutingIntro.html)\n\n[Pipes-and-Filters](PipesAndFilters.html)\n\n[Message Router](MessageRouter.html)\n\n[Content-based Router](ContentBasedRouter.html)\n\n[Message Filter](Filter.html)\n\n[Dynamic Router](DynamicRouter.html)\n\n[Recipient List](RecipientList.html)\n\n[Splitter](Sequencer.html)\n\n[Aggregator](Aggregator.html)\n\n[Resequencer](Resequencer.html)\n\n[Composed Msg. Processor](DistributionAggregate.html)\n\n[Scatter-Gather](BroadcastAggregate.html)\n\n[Routing Slip](RoutingTable.html)\n\n[Process Manager](ProcessManager.html)\n\n[Message Broker](MessageBroker.html)\n\n[Message\nTransformation](MessageTransformationIntro.html)\n\n[Message Translator](MessageTranslator.html)\n\n[Envelope Wrapper](EnvelopeWrapper.html)\n\n[Content Enricher](DataEnricher.html)\n\n[Content Filter](ContentFilter.html)\n\n[Claim Check](StoreInLibrary.html)\n\n[Normalizer](Normalizer.html)\n\n[Canonical Data Model](CanonicalDataModel.html)\n\n[Messaging Endpoints](MessagingEndpointsIntro.html)\n\n[Message Endpoint](MessageEndpoint.html)\n\n[Messaging Gateway](MessagingGateway.html)\n\n[Messaging Mapper](MessagingMapper.html)\n\n[Transactional Client](TransactionalClient.html)\n\n[Polling Consumer](PollingConsumer.html)\n\n[Event-driven Consumer](EventDrivenConsumer.html)\n\n[Competing Consumers](CompetingConsumers.html)\n\n[Message Dispatcher](MessageDispatcher.html)\n\n[Selective Consumer](MessageSelector.html)\n\n[Durable Subscriber](DurableSubscription.html)\n\n[Idempotent Receiver](IdempotentReceiver.html)\n\n[Service Activator](MessagingAdapter.html)\n\n[Messaging Channels](MessagingChannelsIntro.html)\n\n[Message Channel](MessageChannel.html)\n\n[Point-to-Point Channel](PointToPointChannel.html)\n\n[Publish-Subscr. Channel](PublishSubscribeChannel.html)\n\n[Datatype Channel](DatatypeChannel.html)\n\n[Invalid Message Channel](InvalidMessageChannel.html)\n\n[Dead Letter Channel](DeadLetterChannel.html)\n\n[Guaranteed Delivery](GuaranteedMessaging.html)\n\n[Channel Adapter](ChannelAdapter.html)\n\n[Messaging Bridge](MessagingBridge.html)\n\n[Message Bus](MessageBus.html)\n\n[Systems Mgmt.](SystemManagementIntro.html)\n\n[Control Bus](ControlBus.html)\n\n[Detour](Detour.html)\n\n[Wire Tap](WireTap.html)\n\n[Message History](MessageHistory.html)\n\n[Message Store](MessageStore.html)\n\n[Smart Proxy](SmartProxy.html)\n\n[Test Message](TestMessage.html)\n\n[Channel Purger](ChannelPurger.html)\n\n- » [Read the latest in My Blog](/ramblings)\n- » [Get more insights from My Articles](/articles.html)\n- » [See me live in my Upcoming Talks](/talks)\n\nYou can reuse the following elements under the [Creative Commons Attribution](http://creativecommons.org/licenses/by/4.0/) license: pattern icon, pattern name, problem and solution statements (in bold), and the sketch. Other portions are protected by copyright.\n\n[Enterprise Integration Patterns](https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20)\nThe de-facto language for designing asynchronous, distributed systems. Over 100,000 copies sold.\n\n[The Software Architect Elevator](https://www.architectelevator.com/book)\n\n Rethink the role of architects as a connecting element across organizational layers. Acquire the technical, communication, and organizational skills to succeed in this new role.\n\n[Cloud Strategy](https://www.cloudstrategybook.com)\n\n Make your cloud migration a success by translating high-level goals into conscious decisions with well-understood trade-offs.\n\n[Platform Strategy](https://www.platformstrategybook.info)\n\n Platforms can boost innovation through harmonization, but they aren't easy to build. Learn from over a decade of designing and rolling out IT platforms.", "znaku_textu": 5974, "slov": 494, "odkazu": 108, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/DatatypeChannel.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 06:04:16", "sha256": "c3f2c8b483585a0a5266e02aa491ddfacbb5154f2f7c89e91ba5678a73b5c3f8", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://creativecommons.org/licenses/by/4.0/", "https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "https://www.architectelevator.com/book", "https://www.cloudstrategybook.com/", "https://www.platformstrategybook.info/"]} {"url": "https://www.enterpriseintegrationpatterns.com/DeadLetterChannel.html", "titulek": "Dead Letter Channel - Enterprise Integration Patterns", "h1": "", "popis": "What will the messaging system do with a message it cannot deliver?", "klicova_slova": "Dead Letter Channel,integration, messaging, events, patterns, event-driven, coupling, eai, middleware, application integration, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns", "og:title": "Dead Letter Channel - Enterprise Integration Patterns", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/DeadLetterChannel.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/DeadLetterChannelSolution.gif"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Example: Dead Letter Queue in Amazon SQSNEW"}, {"uroven": 2, "text": "Example: Kafka ConnectNEW"}, {"uroven": 2, "text": "Integration Pattern Language"}], "markdown": "| | Dead Letter Channel[Messaging Patterns](index.html) » [Messaging Channels](MessagingChannelsIntro.html) | [Contents](toc.html)[⇐ Prev](InvalidMessageChannel.html)[Next ⇒](GuaranteedMessaging.html) |\n| --- | --- | --- |\n\nAn enterprise is using [*Messaging*](Messaging.html) to integrate applications.\n\nWhat will the messaging system do with a message it cannot deliver?\n\nWhen a messaging system determines that it cannot or should not deliver a message, it may elect to move the message to a *Dead Letter Channel*.\n\nThe specific way a *Dead Letter Channel* works depends on the specific messaging system’s implementation, if it provides one at all. The channel may be called a “dead message queue” [[Monson-Haefel, p.125](http://www.amazon.com/exec/obidos/ASIN/0596000685/enterpriseint-20)] or *dead letter queue* (DLQ). [[MQSeries](http://www.ibm.com/software/mqseries)], [[Dickman, pp.28-29](http://www.amazon.com/exec/obidos/ASIN/0201325810/enterpriseint-20)] Typically, each machine the messaging system is installed on has its own local *Dead Letter Channel* so that whatever machine a message dies on, it can be moved from one local queue to another without any networking uncertainties. This also records what machine the message died on. When the messaging system moves the message, it may also record the original channel the message was supposed to be delivered on.\n\n...\nRead the entire pattern in the book [Enterprise Integration Patterns](/books1.html)\n\n## Example: Dead Letter Queue in Amazon SQS[NEW](/ramblings/eip1_examples_updated.html)\n\nMany hosted messaging systems, including Amazon's [Simple Queuing Service (SQS)](https://aws.amazon.com/sqs) include a *Dead Letter Channel*. Amazon's Dead Letter Queue behavior is closely related to the way SQS delivers messages. After a consumer fetches a message from a queue, the messages remains on the queue, but hidden from other consumers to avoid fetching and processing the same message multiple times. After processing a message, the consumer is responsible for explicitly deleting the message. If the consumer doesn't delete the message, for example because because it crashed while processing the message, the message becomes visible again after the message's *Visibility Timeout* expires. Each time this happens, the message's receive count is increased. When this count reaches a configured limit, the message is considered undeliverable and placed in a designated Dead Letter Queue. Other AWS services like [Amazon EventBridge](https://aws.amazon.com/eventbridge/) also feature a *Dead Letter Channel*.\n\n## Example: Kafka Connect[NEW](/ramblings/eip1_examples_updated.html)\n\nKafka Connect, Confluent's tool for data streaming to and from Kafka includes a *Dead Letter Channel* for sink connectors. As per the [documentation](https://docs.confluent.io/platform/current/connect/concepts.html#dead-letter-queue), the *Dead Letter Channel* is active when the connector is configured to tolerate errors (otherwise, it'd abort and not send messages to any queue). The name of the *Dead Letter Channel* can easily be configured:\n\n```\nerrors.tolerance = all\nerrors.deadletterqueue.topic.name = \n```\n\n**Related patterns:**\n\n[*Invalid Message Channel*](InvalidMessageChannel.html), [*Message Expiration*](MessageExpiration.html), [*Selective Consumer*](MessageSelector.html), [*Messaging*](Messaging.html)\n\n---\n\n## Integration Pattern Language\n\n[Message Construct.](MessageConstructionIntro.html)\n\n[Message](Message.html)\n\n[Command Message](CommandMessage.html)\n\n[Document Message](DocumentMessage.html)\n\n[Event Message](EventMessage.html)\n\n[Request-Reply](RequestReply.html)\n\n[Return Address](ReturnAddress.html)\n\n[Correlation Identifier](CorrelationIdentifier.html)\n\n[Message Sequence](MessageSequence.html)\n\n[Message Expiration](MessageExpiration.html)\n\n[Format Indicator](FormatIndicator.html)\n\n[Message Routing](MessageRoutingIntro.html)\n\n[Pipes-and-Filters](PipesAndFilters.html)\n\n[Message Router](MessageRouter.html)\n\n[Content-based Router](ContentBasedRouter.html)\n\n[Message Filter](Filter.html)\n\n[Dynamic Router](DynamicRouter.html)\n\n[Recipient List](RecipientList.html)\n\n[Splitter](Sequencer.html)\n\n[Aggregator](Aggregator.html)\n\n[Resequencer](Resequencer.html)\n\n[Composed Msg. Processor](DistributionAggregate.html)\n\n[Scatter-Gather](BroadcastAggregate.html)\n\n[Routing Slip](RoutingTable.html)\n\n[Process Manager](ProcessManager.html)\n\n[Message Broker](MessageBroker.html)\n\n[Message\nTransformation](MessageTransformationIntro.html)\n\n[Message Translator](MessageTranslator.html)\n\n[Envelope Wrapper](EnvelopeWrapper.html)\n\n[Content Enricher](DataEnricher.html)\n\n[Content Filter](ContentFilter.html)\n\n[Claim Check](StoreInLibrary.html)\n\n[Normalizer](Normalizer.html)\n\n[Canonical Data Model](CanonicalDataModel.html)\n\n[Messaging Endpoints](MessagingEndpointsIntro.html)\n\n[Message Endpoint](MessageEndpoint.html)\n\n[Messaging Gateway](MessagingGateway.html)\n\n[Messaging Mapper](MessagingMapper.html)\n\n[Transactional Client](TransactionalClient.html)\n\n[Polling Consumer](PollingConsumer.html)\n\n[Event-driven Consumer](EventDrivenConsumer.html)\n\n[Competing Consumers](CompetingConsumers.html)\n\n[Message Dispatcher](MessageDispatcher.html)\n\n[Selective Consumer](MessageSelector.html)\n\n[Durable Subscriber](DurableSubscription.html)\n\n[Idempotent Receiver](IdempotentReceiver.html)\n\n[Service Activator](MessagingAdapter.html)\n\n[Messaging Channels](MessagingChannelsIntro.html)\n\n[Message Channel](MessageChannel.html)\n\n[Point-to-Point Channel](PointToPointChannel.html)\n\n[Publish-Subscr. Channel](PublishSubscribeChannel.html)\n\n[Datatype Channel](DatatypeChannel.html)\n\n[Invalid Message Channel](InvalidMessageChannel.html)\n\n[Dead Letter Channel](DeadLetterChannel.html)\n\n[Guaranteed Delivery](GuaranteedMessaging.html)\n\n[Channel Adapter](ChannelAdapter.html)\n\n[Messaging Bridge](MessagingBridge.html)\n\n[Message Bus](MessageBus.html)\n\n[Systems Mgmt.](SystemManagementIntro.html)\n\n[Control Bus](ControlBus.html)\n\n[Detour](Detour.html)\n\n[Wire Tap](WireTap.html)\n\n[Message History](MessageHistory.html)\n\n[Message Store](MessageStore.html)\n\n[Smart Proxy](SmartProxy.html)\n\n[Test Message](TestMessage.html)\n\n[Channel Purger](ChannelPurger.html)", "znaku_textu": 6088, "slov": 566, "odkazu": 115, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/DeadLetterChannel.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 06:04:18", "sha256": "714f6babd327e622695d9be989c93c704d23b034cb2e0fcc1065a0eaa203a278", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://www.amazon.com/exec/obidos/ASIN/0596000685/enterpriseint-20", "http://www.ibm.com/software/mqseries", "http://www.amazon.com/exec/obidos/ASIN/0201325810/enterpriseint-20", "https://aws.amazon.com/sqs", "https://aws.amazon.com/eventbridge/", "https://docs.confluent.io/platform/current/connect/concepts.html", "http://creativecommons.org/licenses/by/4.0/", "https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "https://www.architectelevator.com/book", "https://www.cloudstrategybook.com/", "https://www.platformstrategybook.info/"]} {"url": "https://www.enterpriseintegrationpatterns.com/Detour.html", "titulek": "Detour - Enterprise Integration Patterns", "h1": "", "popis": "How can you route a message through intermediate steps to perform validation, testing or debugging functions?", "klicova_slova": "Detour,integration, messaging, events, patterns, event-driven, coupling, eai, middleware, application integration, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns", "og:title": "Detour - Enterprise Integration Patterns", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/Detour.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/Detour.gif"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Integration Pattern Language"}], "markdown": "Messaging Patterns\n\n[Messaging Patterns](index.html)\n\n- [Integration Styles](IntegrationStylesIntro.html)\n- [Messaging Systems](MessagingComponentsIntro.html)\n- [Messaging Channels](MessagingChannelsIntro.html)\n- [Message Construction](MessageConstructionIntro.html)\n- [Interlude: Simple Messaging](SimpleMessagingIntro.html)\n- [Message Routing](MessageRoutingIntro.html)\n- [Message Transformation](MessageTransformationIntro.html)\n- [Interlude: Composed Messaging](ComposedMessagingExample.html)\n- [Messaging Endpoints](MessagingEndpointsIntro.html)\n- [System Management](SystemManagementIntro.html)\n- Interlude: Systems Management Example\n- Integration Patterns in Practice\n- Concluding Remarks\n- Appendices\n\n| | Detour[Messaging Patterns](index.html) » [System Management](SystemManagementIntro.html) | [Contents](toc.html)[⇐ Prev](ControlBus.html)[Next ⇒](WireTap.html) |\n| --- | --- | --- |\n\nA [*Wire Tap*](WireTap.html) is useful to inspect messages that travel across a channel. Sometimes, though, we need to modify or reroute the messages instead of simply inspecting them.\n\nHow can you route a message through intermediate steps to perform validation, testing or debugging functions?\n\nConstruct a *Detour* with a context-based router controlled via the *Control Bus*. In one state the router routes incoming messages through additional steps while in the other it routes messages directly to the destination channel.\n\nThe *Detour* uses a simple context-based router with two output channels. One output channel passes the unmodified message to the original destination. When instructed by the [*Control Bus*](ControlBus.html), the *Detour* routes messages to a different channel. This channel sends the message to additional components that can inspect and/or modify the message. Ultimately, these components route the message to the same destination.\n\n...\nRead the entire pattern in the book [Enterprise Integration Patterns](/books1.html)\n\n**Related patterns:**\n\n[*Control Bus*](ControlBus.html), [*Publish-Subscribe Channel*](PublishSubscribeChannel.html), [*Wire Tap*](WireTap.html)\n\n---\n\n## Integration Pattern Language\n\n[Message Construct.](MessageConstructionIntro.html)\n\n[Message](Message.html)\n\n[Command Message](CommandMessage.html)\n\n[Document Message](DocumentMessage.html)\n\n[Event Message](EventMessage.html)\n\n[Request-Reply](RequestReply.html)\n\n[Return Address](ReturnAddress.html)\n\n[Correlation Identifier](CorrelationIdentifier.html)\n\n[Message Sequence](MessageSequence.html)\n\n[Message Expiration](MessageExpiration.html)\n\n[Format Indicator](FormatIndicator.html)\n\n[Message Routing](MessageRoutingIntro.html)\n\n[Pipes-and-Filters](PipesAndFilters.html)\n\n[Message Router](MessageRouter.html)\n\n[Content-based Router](ContentBasedRouter.html)\n\n[Message Filter](Filter.html)\n\n[Dynamic Router](DynamicRouter.html)\n\n[Recipient List](RecipientList.html)\n\n[Splitter](Sequencer.html)\n\n[Aggregator](Aggregator.html)\n\n[Resequencer](Resequencer.html)\n\n[Composed Msg. Processor](DistributionAggregate.html)\n\n[Scatter-Gather](BroadcastAggregate.html)\n\n[Routing Slip](RoutingTable.html)\n\n[Process Manager](ProcessManager.html)\n\n[Message Broker](MessageBroker.html)\n\n[Message\nTransformation](MessageTransformationIntro.html)\n\n[Message Translator](MessageTranslator.html)\n\n[Envelope Wrapper](EnvelopeWrapper.html)\n\n[Content Enricher](DataEnricher.html)\n\n[Content Filter](ContentFilter.html)\n\n[Claim Check](StoreInLibrary.html)\n\n[Normalizer](Normalizer.html)\n\n[Canonical Data Model](CanonicalDataModel.html)\n\n[Messaging Endpoints](MessagingEndpointsIntro.html)\n\n[Message Endpoint](MessageEndpoint.html)\n\n[Messaging Gateway](MessagingGateway.html)\n\n[Messaging Mapper](MessagingMapper.html)\n\n[Transactional Client](TransactionalClient.html)\n\n[Polling Consumer](PollingConsumer.html)\n\n[Event-driven Consumer](EventDrivenConsumer.html)\n\n[Competing Consumers](CompetingConsumers.html)\n\n[Message Dispatcher](MessageDispatcher.html)\n\n[Selective Consumer](MessageSelector.html)\n\n[Durable Subscriber](DurableSubscription.html)\n\n[Idempotent Receiver](IdempotentReceiver.html)\n\n[Service Activator](MessagingAdapter.html)\n\n[Messaging Channels](MessagingChannelsIntro.html)\n\n[Message Channel](MessageChannel.html)\n\n[Point-to-Point Channel](PointToPointChannel.html)\n\n[Publish-Subscr. Channel](PublishSubscribeChannel.html)\n\n[Datatype Channel](DatatypeChannel.html)\n\n[Invalid Message Channel](InvalidMessageChannel.html)\n\n[Dead Letter Channel](DeadLetterChannel.html)\n\n[Guaranteed Delivery](GuaranteedMessaging.html)\n\n[Channel Adapter](ChannelAdapter.html)\n\n[Messaging Bridge](MessagingBridge.html)\n\n[Message Bus](MessageBus.html)\n\n[Systems Mgmt.](SystemManagementIntro.html)\n\n[Control Bus](ControlBus.html)\n\n[Detour](Detour.html)\n\n[Wire Tap](WireTap.html)\n\n[Message History](MessageHistory.html)\n\n[Message Store](MessageStore.html)\n\n[Smart Proxy](SmartProxy.html)\n\n[Test Message](TestMessage.html)\n\n[Channel Purger](ChannelPurger.html)\n\n- » [Read the latest in My Blog](/ramblings)\n- » [Get more insights from My Articles](/articles.html)\n- » [See me live in my Upcoming Talks](/talks)\n\nYou can reuse the following elements under the [Creative Commons Attribution](http://creativecommons.org/licenses/by/4.0/) license: pattern icon, pattern name, problem and solution statements (in bold), and the sketch. Other portions are protected by copyright.\n\n[Enterprise Integration Patterns](https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20)\nThe de-facto language for designing asynchronous, distributed systems. Over 100,000 copies sold.\n\n[The Software Architect Elevator](https://www.architectelevator.com/book)\n\n Rethink the role of architects as a connecting element across organizational layers. Acquire the technical, communication, and organizational skills to succeed in this new role.\n\n[Cloud Strategy](https://www.cloudstrategybook.com)\n\n Make your cloud migration a success by translating high-level goals into conscious decisions with well-understood trade-offs.\n\n[Platform Strategy](https://www.platformstrategybook.info)\n\n Platforms can boost innovation through harmonization, but they aren't easy to build. Learn from over a decade of designing and rolling out IT platforms.", "znaku_textu": 6046, "slov": 505, "odkazu": 108, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/Detour.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 06:52:58", "sha256": "d8c4b3ed6198c327bd5d47bb941cd81c56df9375d8964612e34c11a24db8f790", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://creativecommons.org/licenses/by/4.0/", "https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "https://www.architectelevator.com/book", "https://www.cloudstrategybook.com/", "https://www.platformstrategybook.info/"]} {"url": "https://www.enterpriseintegrationpatterns.com/DistributionAggregate.html", "titulek": "Composed Message Processor - Enterprise Integration Patterns", "h1": "", "popis": "How can you maintain the overall message flow when processing a message consisting of multiple elements, each of which may require different processing?", "klicova_slova": "Composed Message Processor,integration, messaging, events, patterns, event-driven, coupling, eai, middleware, application integration, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns", "og:title": "Composed Message Processor - Enterprise Integration Patterns", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/DistributionAggregate.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/DistributionAggregate.gif"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Integration Pattern Language"}], "markdown": "Messaging Patterns\n\n[Messaging Patterns](index.html)\n\n- [Integration Styles](IntegrationStylesIntro.html)\n- [Messaging Systems](MessagingComponentsIntro.html)\n- [Messaging Channels](MessagingChannelsIntro.html)\n- [Message Construction](MessageConstructionIntro.html)\n- [Interlude: Simple Messaging](SimpleMessagingIntro.html)\n- [Message Routing](MessageRoutingIntro.html)\n- [Message Transformation](MessageTransformationIntro.html)\n- [Interlude: Composed Messaging](ComposedMessagingExample.html)\n- [Messaging Endpoints](MessagingEndpointsIntro.html)\n- [System Management](SystemManagementIntro.html)\n- Interlude: Systems Management Example\n- Integration Patterns in Practice\n- Concluding Remarks\n- Appendices\n\n| | Composed Message Processor[Messaging Patterns](index.html) » [Message Routing](MessageRoutingIntro.html) | [Contents](toc.html)[⇐ Prev](Resequencer.html)[Next ⇒](BroadcastAggregate.html) |\n| --- | --- | --- |\n\nThe order-processing example presented in the [*Content-Based Router*](ContentBasedRouter.html) and [*Splitter*](Sequencer.html) patterns processes an incoming order consisting of individual line items. Each line item requires an inventory check with the respective inventory system. After all items have been verified we want to pass the validated order message to the next processing step.\n\nHow can you maintain the overall message flow when processing a message consisting of multiple elements, each of which may require different processing?\n\nUse *Composed Message Processor* to process a composite message. The *Composed Message Processor* splits the message up, routes the sub-messages to the appropriate destinations and re-aggregates the responses back into a single message.\n\nThe *Composed Message Processor* uses an [*Aggregator*](Aggregator.html) to reconcile the requests that were dispatched to the multiple inventory systems. Each processing unit sends a response message to the aggregator stating the inventory on hand for the specified item. The Aggregator collects the individual responses and processes them based on a predefined algorithm as described under [*Aggregator*](Aggregator.html).\n\n...\nRead the entire pattern in the book [Enterprise Integration Patterns](/books1.html)\n\n**Related patterns:**\n\n[*Aggregator*](Aggregator.html), [*Content-Based Router*](ContentBasedRouter.html), [*Pipes and Filters*](PipesAndFilters.html), [*Splitter*](Sequencer.html)\n\n---\n\n## Integration Pattern Language\n\n[Message Construct.](MessageConstructionIntro.html)\n\n[Message](Message.html)\n\n[Command Message](CommandMessage.html)\n\n[Document Message](DocumentMessage.html)\n\n[Event Message](EventMessage.html)\n\n[Request-Reply](RequestReply.html)\n\n[Return Address](ReturnAddress.html)\n\n[Correlation Identifier](CorrelationIdentifier.html)\n\n[Message Sequence](MessageSequence.html)\n\n[Message Expiration](MessageExpiration.html)\n\n[Format Indicator](FormatIndicator.html)\n\n[Message Routing](MessageRoutingIntro.html)\n\n[Pipes-and-Filters](PipesAndFilters.html)\n\n[Message Router](MessageRouter.html)\n\n[Content-based Router](ContentBasedRouter.html)\n\n[Message Filter](Filter.html)\n\n[Dynamic Router](DynamicRouter.html)\n\n[Recipient List](RecipientList.html)\n\n[Splitter](Sequencer.html)\n\n[Aggregator](Aggregator.html)\n\n[Resequencer](Resequencer.html)\n\n[Composed Msg. Processor](DistributionAggregate.html)\n\n[Scatter-Gather](BroadcastAggregate.html)\n\n[Routing Slip](RoutingTable.html)\n\n[Process Manager](ProcessManager.html)\n\n[Message Broker](MessageBroker.html)\n\n[Message\nTransformation](MessageTransformationIntro.html)\n\n[Message Translator](MessageTranslator.html)\n\n[Envelope Wrapper](EnvelopeWrapper.html)\n\n[Content Enricher](DataEnricher.html)\n\n[Content Filter](ContentFilter.html)\n\n[Claim Check](StoreInLibrary.html)\n\n[Normalizer](Normalizer.html)\n\n[Canonical Data Model](CanonicalDataModel.html)\n\n[Messaging Endpoints](MessagingEndpointsIntro.html)\n\n[Message Endpoint](MessageEndpoint.html)\n\n[Messaging Gateway](MessagingGateway.html)\n\n[Messaging Mapper](MessagingMapper.html)\n\n[Transactional Client](TransactionalClient.html)\n\n[Polling Consumer](PollingConsumer.html)\n\n[Event-driven Consumer](EventDrivenConsumer.html)\n\n[Competing Consumers](CompetingConsumers.html)\n\n[Message Dispatcher](MessageDispatcher.html)\n\n[Selective Consumer](MessageSelector.html)\n\n[Durable Subscriber](DurableSubscription.html)\n\n[Idempotent Receiver](IdempotentReceiver.html)\n\n[Service Activator](MessagingAdapter.html)\n\n[Messaging Channels](MessagingChannelsIntro.html)\n\n[Message Channel](MessageChannel.html)\n\n[Point-to-Point Channel](PointToPointChannel.html)\n\n[Publish-Subscr. Channel](PublishSubscribeChannel.html)\n\n[Datatype Channel](DatatypeChannel.html)\n\n[Invalid Message Channel](InvalidMessageChannel.html)\n\n[Dead Letter Channel](DeadLetterChannel.html)\n\n[Guaranteed Delivery](GuaranteedMessaging.html)\n\n[Channel Adapter](ChannelAdapter.html)\n\n[Messaging Bridge](MessagingBridge.html)\n\n[Message Bus](MessageBus.html)\n\n[Systems Mgmt.](SystemManagementIntro.html)\n\n[Control Bus](ControlBus.html)\n\n[Detour](Detour.html)\n\n[Wire Tap](WireTap.html)\n\n[Message History](MessageHistory.html)\n\n[Message Store](MessageStore.html)\n\n[Smart Proxy](SmartProxy.html)\n\n[Test Message](TestMessage.html)\n\n[Channel Purger](ChannelPurger.html)\n\n- » [Read the latest in My Blog](/ramblings)\n- » [Get more insights from My Articles](/articles.html)\n- » [See me live in my Upcoming Talks](/talks)\n\nYou can reuse the following elements under the [Creative Commons Attribution](http://creativecommons.org/licenses/by/4.0/) license: pattern icon, pattern name, problem and solution statements (in bold), and the sketch. Other portions are protected by copyright.\n\n[Enterprise Integration Patterns](https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20)\nThe de-facto language for designing asynchronous, distributed systems. Over 100,000 copies sold.\n\n[The Software Architect Elevator](https://www.architectelevator.com/book)\n\n Rethink the role of architects as a connecting element across organizational layers. Acquire the technical, communication, and organizational skills to succeed in this new role.\n\n[Cloud Strategy](https://www.cloudstrategybook.com)\n\n Make your cloud migration a success by translating high-level goals into conscious decisions with well-understood trade-offs.\n\n[Platform Strategy](https://www.platformstrategybook.info)\n\n Platforms can boost innovation through harmonization, but they aren't easy to build. Learn from over a decade of designing and rolling out IT platforms.", "znaku_textu": 6357, "slov": 538, "odkazu": 108, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/DistributionAggregate.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 06:03:47", "sha256": "57a15e18261a4dfe75b10bf4b606473d80af4496ae2e23662e883e851edd5b12", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://creativecommons.org/licenses/by/4.0/", "https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "https://www.architectelevator.com/book", "https://www.cloudstrategybook.com/", "https://www.platformstrategybook.info/"]} {"url": "https://www.enterpriseintegrationpatterns.com/DocumentMessage.html", "titulek": "Document Message - Enterprise Integration Patterns", "h1": "", "popis": "How can messaging be used to transfer data between applications?", "klicova_slova": "Document Message,integration, messaging, events, patterns, event-driven, coupling, eai, middleware, application integration, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns", "og:title": "Document Message - Enterprise Integration Patterns", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/DocumentMessage.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/DocumentMessageSolution.gif"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Integration Pattern Language"}], "markdown": "Messaging Patterns\n\n[Messaging Patterns](index.html)\n\n- [Integration Styles](IntegrationStylesIntro.html)\n- [Messaging Systems](MessagingComponentsIntro.html)\n- [Messaging Channels](MessagingChannelsIntro.html)\n- [Message Construction](MessageConstructionIntro.html)\n- [Interlude: Simple Messaging](SimpleMessagingIntro.html)\n- [Message Routing](MessageRoutingIntro.html)\n- [Message Transformation](MessageTransformationIntro.html)\n- [Interlude: Composed Messaging](ComposedMessagingExample.html)\n- [Messaging Endpoints](MessagingEndpointsIntro.html)\n- [System Management](SystemManagementIntro.html)\n- Interlude: Systems Management Example\n- Integration Patterns in Practice\n- Concluding Remarks\n- Appendices\n\n| | Document Message[Messaging Patterns](index.html) » [Message Construction](MessageConstructionIntro.html) | [Contents](toc.html)[⇐ Prev](CommandMessage.html)[Next ⇒](EventMessage.html) |\n| --- | --- | --- |\n\nAn application would like to transfer data to another application. It could do so using [*File Transfer*](FileTransferIntegration.html) or [*Shared Database*](SharedDataBaseIntegration.html), but those approaches have shortcomings. The transfer might work better using [*Messaging*](Messaging.html).\n\nHow can messaging be used to transfer data between applications?\n\nUse a *Document Message* to reliably transfer a data structure between applications.\n\nWhereas a [*Command Message*](CommandMessage.html) tells the receiver to invoke certain behavior, a *Document Message* just passes data and lets the receiver decide what, if anything, to do with the data. The data is a single unit of data, a single object or data structure which may decompose into smaller units.\n\n*Document Message*s can seem very much like [*Event Message*](EventMessage.html)s; the main difference is a matter of timing and content. The important part of a *Document Message* is its content, the document. Successfully transferring the document is important; the timing of when it is sent and received is less important. [*Guaranteed Delivery*](GuaranteedMessaging.html) may be a consideration; [*Message Expiration*](MessageExpiration.html) probably is not.\n\n...\nRead the entire pattern in the book [Enterprise Integration Patterns](/books1.html)\n\n**Related patterns:**\n\n[*Command Message*](CommandMessage.html), [*Remote Procedure Invocation*](EncapsulatedSynchronousIntegration.html), [*Event Message*](EventMessage.html), [*File Transfer*](FileTransferIntegration.html), [*Guaranteed Delivery*](GuaranteedMessaging.html), [*Message*](Message.html), [*Message Expiration*](MessageExpiration.html), [*Messaging*](Messaging.html), [*Point-to-Point Channel*](PointToPointChannel.html), [*Publish-Subscribe Channel*](PublishSubscribeChannel.html), [*Request-Reply*](RequestReply.html), [*Shared Database*](SharedDataBaseIntegration.html)\n\n---\n\n## Integration Pattern Language\n\n[Message Construct.](MessageConstructionIntro.html)\n\n[Message](Message.html)\n\n[Command Message](CommandMessage.html)\n\n[Document Message](DocumentMessage.html)\n\n[Event Message](EventMessage.html)\n\n[Request-Reply](RequestReply.html)\n\n[Return Address](ReturnAddress.html)\n\n[Correlation Identifier](CorrelationIdentifier.html)\n\n[Message Sequence](MessageSequence.html)\n\n[Message Expiration](MessageExpiration.html)\n\n[Format Indicator](FormatIndicator.html)\n\n[Message Routing](MessageRoutingIntro.html)\n\n[Pipes-and-Filters](PipesAndFilters.html)\n\n[Message Router](MessageRouter.html)\n\n[Content-based Router](ContentBasedRouter.html)\n\n[Message Filter](Filter.html)\n\n[Dynamic Router](DynamicRouter.html)\n\n[Recipient List](RecipientList.html)\n\n[Splitter](Sequencer.html)\n\n[Aggregator](Aggregator.html)\n\n[Resequencer](Resequencer.html)\n\n[Composed Msg. Processor](DistributionAggregate.html)\n\n[Scatter-Gather](BroadcastAggregate.html)\n\n[Routing Slip](RoutingTable.html)\n\n[Process Manager](ProcessManager.html)\n\n[Message Broker](MessageBroker.html)\n\n[Message\nTransformation](MessageTransformationIntro.html)\n\n[Message Translator](MessageTranslator.html)\n\n[Envelope Wrapper](EnvelopeWrapper.html)\n\n[Content Enricher](DataEnricher.html)\n\n[Content Filter](ContentFilter.html)\n\n[Claim Check](StoreInLibrary.html)\n\n[Normalizer](Normalizer.html)\n\n[Canonical Data Model](CanonicalDataModel.html)\n\n[Messaging Endpoints](MessagingEndpointsIntro.html)\n\n[Message Endpoint](MessageEndpoint.html)\n\n[Messaging Gateway](MessagingGateway.html)\n\n[Messaging Mapper](MessagingMapper.html)\n\n[Transactional Client](TransactionalClient.html)\n\n[Polling Consumer](PollingConsumer.html)\n\n[Event-driven Consumer](EventDrivenConsumer.html)\n\n[Competing Consumers](CompetingConsumers.html)\n\n[Message Dispatcher](MessageDispatcher.html)\n\n[Selective Consumer](MessageSelector.html)\n\n[Durable Subscriber](DurableSubscription.html)\n\n[Idempotent Receiver](IdempotentReceiver.html)\n\n[Service Activator](MessagingAdapter.html)\n\n[Messaging Channels](MessagingChannelsIntro.html)\n\n[Message Channel](MessageChannel.html)\n\n[Point-to-Point Channel](PointToPointChannel.html)\n\n[Publish-Subscr. Channel](PublishSubscribeChannel.html)\n\n[Datatype Channel](DatatypeChannel.html)\n\n[Invalid Message Channel](InvalidMessageChannel.html)\n\n[Dead Letter Channel](DeadLetterChannel.html)\n\n[Guaranteed Delivery](GuaranteedMessaging.html)\n\n[Channel Adapter](ChannelAdapter.html)\n\n[Messaging Bridge](MessagingBridge.html)\n\n[Message Bus](MessageBus.html)\n\n[Systems Mgmt.](SystemManagementIntro.html)\n\n[Control Bus](ControlBus.html)\n\n[Detour](Detour.html)\n\n[Wire Tap](WireTap.html)\n\n[Message History](MessageHistory.html)\n\n[Message Store](MessageStore.html)\n\n[Smart Proxy](SmartProxy.html)\n\n[Test Message](TestMessage.html)\n\n[Channel Purger](ChannelPurger.html)\n\n- » [Read the latest in My Blog](/ramblings)\n- » [Get more insights from My Articles](/articles.html)\n- » [See me live in my Upcoming Talks](/talks)\n\nYou can reuse the following elements under the [Creative Commons Attribution](http://creativecommons.org/licenses/by/4.0/) license: pattern icon, pattern name, problem and solution statements (in bold), and the sketch. Other portions are protected by copyright.\n\n[Enterprise Integration Patterns](https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20)\nThe de-facto language for designing asynchronous, distributed systems. Over 100,000 copies sold.\n\n[The Software Architect Elevator](https://www.architectelevator.com/book)\n\n Rethink the role of architects as a connecting element across organizational layers. Acquire the technical, communication, and organizational skills to succeed in this new role.\n\n[Cloud Strategy](https://www.cloudstrategybook.com)\n\n Make your cloud migration a success by translating high-level goals into conscious decisions with well-understood trade-offs.\n\n[Platform Strategy](https://www.platformstrategybook.info)\n\n Platforms can boost innovation through harmonization, but they aren't easy to build. Learn from over a decade of designing and rolling out IT platforms.", "znaku_textu": 6782, "slov": 575, "odkazu": 108, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/DocumentMessage.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 06:03:29", "sha256": "57602aee9cb4c73ce40968668db54354449db23152f4ab6cba77f4d5313c8ac7", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://creativecommons.org/licenses/by/4.0/", "https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "https://www.architectelevator.com/book", "https://www.cloudstrategybook.com/", "https://www.platformstrategybook.info/"]} {"url": "https://www.enterpriseintegrationpatterns.com/DurableSubscription.html", "titulek": "Durable Subscriber - Enterprise Integration Patterns", "h1": "", "popis": "How can a subscriber avoid missing messages while it’s not listening for them?", "klicova_slova": "Durable Subscriber,integration, messaging, events, patterns, event-driven, coupling, eai, middleware, application integration, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns", "og:title": "Durable Subscriber - Enterprise Integration Patterns", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/DurableSubscription.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/DurableSubscriptionSolution.gif"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Integration Pattern Language"}], "markdown": "Messaging Patterns\n\n[Messaging Patterns](index.html)\n\n- [Integration Styles](IntegrationStylesIntro.html)\n- [Messaging Systems](MessagingComponentsIntro.html)\n- [Messaging Channels](MessagingChannelsIntro.html)\n- [Message Construction](MessageConstructionIntro.html)\n- [Interlude: Simple Messaging](SimpleMessagingIntro.html)\n- [Message Routing](MessageRoutingIntro.html)\n- [Message Transformation](MessageTransformationIntro.html)\n- [Interlude: Composed Messaging](ComposedMessagingExample.html)\n- [Messaging Endpoints](MessagingEndpointsIntro.html)\n- [System Management](SystemManagementIntro.html)\n- Interlude: Systems Management Example\n- Integration Patterns in Practice\n- Concluding Remarks\n- Appendices\n\n| | Durable Subscriber[Messaging Patterns](index.html) » [Messaging Endpoints](MessagingEndpointsIntro.html) | [Contents](toc.html)[⇐ Prev](MessageSelector.html)[Next ⇒](IdempotentReceiver.html) |\n| --- | --- | --- |\n\nAn application is receiving messages on a [*Publish-Subscribe Channel*](PublishSubscribeChannel.html).\n\nHow can a subscriber avoid missing messages while it’s not listening for them?\n\nUse a *Durable Subscriber* to make the messaging system save messages published while the subscriber is disconnected.\n\nA durable subscription saves messages for an inactive subscriber and delivers these saved messages when the subscriber reconnects. In this way, a subscriber will not lose any messages even though it disconnected. A durable subscription has no effect on the behavior of the subscriber or the messaging system while the subscriber is *active* (e.g., connected). A connected subscriber acts the same whether its subscription is durable or non-durable. The difference is in how the messaging system behaves when the subscriber is disconnected.\n\n...\nRead the entire pattern in the book [Enterprise Integration Patterns](/books1.html)\n\n**Related patterns:**\n\n[*Guaranteed Delivery*](GuaranteedMessaging.html), [*Message Expiration*](MessageExpiration.html), [*Point-to-Point Channel*](PointToPointChannel.html), [*Publish-Subscribe Channel*](PublishSubscribeChannel.html)\n\n---\n\n## Integration Pattern Language\n\n[Message Construct.](MessageConstructionIntro.html)\n\n[Message](Message.html)\n\n[Command Message](CommandMessage.html)\n\n[Document Message](DocumentMessage.html)\n\n[Event Message](EventMessage.html)\n\n[Request-Reply](RequestReply.html)\n\n[Return Address](ReturnAddress.html)\n\n[Correlation Identifier](CorrelationIdentifier.html)\n\n[Message Sequence](MessageSequence.html)\n\n[Message Expiration](MessageExpiration.html)\n\n[Format Indicator](FormatIndicator.html)\n\n[Message Routing](MessageRoutingIntro.html)\n\n[Pipes-and-Filters](PipesAndFilters.html)\n\n[Message Router](MessageRouter.html)\n\n[Content-based Router](ContentBasedRouter.html)\n\n[Message Filter](Filter.html)\n\n[Dynamic Router](DynamicRouter.html)\n\n[Recipient List](RecipientList.html)\n\n[Splitter](Sequencer.html)\n\n[Aggregator](Aggregator.html)\n\n[Resequencer](Resequencer.html)\n\n[Composed Msg. Processor](DistributionAggregate.html)\n\n[Scatter-Gather](BroadcastAggregate.html)\n\n[Routing Slip](RoutingTable.html)\n\n[Process Manager](ProcessManager.html)\n\n[Message Broker](MessageBroker.html)\n\n[Message\nTransformation](MessageTransformationIntro.html)\n\n[Message Translator](MessageTranslator.html)\n\n[Envelope Wrapper](EnvelopeWrapper.html)\n\n[Content Enricher](DataEnricher.html)\n\n[Content Filter](ContentFilter.html)\n\n[Claim Check](StoreInLibrary.html)\n\n[Normalizer](Normalizer.html)\n\n[Canonical Data Model](CanonicalDataModel.html)\n\n[Messaging Endpoints](MessagingEndpointsIntro.html)\n\n[Message Endpoint](MessageEndpoint.html)\n\n[Messaging Gateway](MessagingGateway.html)\n\n[Messaging Mapper](MessagingMapper.html)\n\n[Transactional Client](TransactionalClient.html)\n\n[Polling Consumer](PollingConsumer.html)\n\n[Event-driven Consumer](EventDrivenConsumer.html)\n\n[Competing Consumers](CompetingConsumers.html)\n\n[Message Dispatcher](MessageDispatcher.html)\n\n[Selective Consumer](MessageSelector.html)\n\n[Durable Subscriber](DurableSubscription.html)\n\n[Idempotent Receiver](IdempotentReceiver.html)\n\n[Service Activator](MessagingAdapter.html)\n\n[Messaging Channels](MessagingChannelsIntro.html)\n\n[Message Channel](MessageChannel.html)\n\n[Point-to-Point Channel](PointToPointChannel.html)\n\n[Publish-Subscr. Channel](PublishSubscribeChannel.html)\n\n[Datatype Channel](DatatypeChannel.html)\n\n[Invalid Message Channel](InvalidMessageChannel.html)\n\n[Dead Letter Channel](DeadLetterChannel.html)\n\n[Guaranteed Delivery](GuaranteedMessaging.html)\n\n[Channel Adapter](ChannelAdapter.html)\n\n[Messaging Bridge](MessagingBridge.html)\n\n[Message Bus](MessageBus.html)\n\n[Systems Mgmt.](SystemManagementIntro.html)\n\n[Control Bus](ControlBus.html)\n\n[Detour](Detour.html)\n\n[Wire Tap](WireTap.html)\n\n[Message History](MessageHistory.html)\n\n[Message Store](MessageStore.html)\n\n[Smart Proxy](SmartProxy.html)\n\n[Test Message](TestMessage.html)\n\n[Channel Purger](ChannelPurger.html)\n\n- » [Read the latest in My Blog](/ramblings)\n- » [Get more insights from My Articles](/articles.html)\n- » [See me live in my Upcoming Talks](/talks)\n\nYou can reuse the following elements under the [Creative Commons Attribution](http://creativecommons.org/licenses/by/4.0/) license: pattern icon, pattern name, problem and solution statements (in bold), and the sketch. Other portions are protected by copyright.\n\n[Enterprise Integration Patterns](https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20)\nThe de-facto language for designing asynchronous, distributed systems. Over 100,000 copies sold.\n\n[The Software Architect Elevator](https://www.architectelevator.com/book)\n\n Rethink the role of architects as a connecting element across organizational layers. Acquire the technical, communication, and organizational skills to succeed in this new role.\n\n[Cloud Strategy](https://www.cloudstrategybook.com)\n\n Make your cloud migration a success by translating high-level goals into conscious decisions with well-understood trade-offs.\n\n[Platform Strategy](https://www.platformstrategybook.info)\n\n Platforms can boost innovation through harmonization, but they aren't easy to build. Learn from over a decade of designing and rolling out IT platforms.", "znaku_textu": 6051, "slov": 490, "odkazu": 108, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/DurableSubscription.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 06:04:09", "sha256": "d8697f78f17e355548692ad6ed8459e2fe3932ab1119d7b613c029774e0f2139", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://creativecommons.org/licenses/by/4.0/", "https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "https://www.architectelevator.com/book", "https://www.cloudstrategybook.com/", "https://www.platformstrategybook.info/"]} {"url": "https://www.enterpriseintegrationpatterns.com/DynamicRouter.html", "titulek": "Dynamic Router - Enterprise Integration Patterns", "h1": "", "popis": "How can you avoid the dependency of the router on all possible destinations while maintaining its efficiency?", "klicova_slova": "Dynamic Router,integration, messaging, events, patterns, event-driven, coupling, eai, middleware, application integration, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns", "og:title": "Dynamic Router - Enterprise Integration Patterns", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/DynamicRouter.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/DynamicRouter.gif"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Integration Pattern Language"}], "markdown": "Messaging Patterns\n\n[Messaging Patterns](index.html)\n\n- [Integration Styles](IntegrationStylesIntro.html)\n- [Messaging Systems](MessagingComponentsIntro.html)\n- [Messaging Channels](MessagingChannelsIntro.html)\n- [Message Construction](MessageConstructionIntro.html)\n- [Interlude: Simple Messaging](SimpleMessagingIntro.html)\n- [Message Routing](MessageRoutingIntro.html)\n- [Message Transformation](MessageTransformationIntro.html)\n- [Interlude: Composed Messaging](ComposedMessagingExample.html)\n- [Messaging Endpoints](MessagingEndpointsIntro.html)\n- [System Management](SystemManagementIntro.html)\n- Interlude: Systems Management Example\n- Integration Patterns in Practice\n- Concluding Remarks\n- Appendices\n\n| | Dynamic Router[Messaging Patterns](index.html) » [Message Routing](MessageRoutingIntro.html) | [Contents](toc.html)[⇐ Prev](Filter.html)[Next ⇒](RecipientList.html) |\n| --- | --- | --- |\n\nYou are using a [*Message Router*](MessageRouter.html) to route messages between multiple destinations.\n\nHow can you avoid the dependency of the router on all possible destinations while maintaining its efficiency?\n\nUse a *Dynamic Router*, a Router that can self-configure based on special configuration messages from participating destinations.\n\nBesides the usual input and output channels the *Dynamic Router* uses an additional *control channel*. 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.\n\n...\nRead the entire pattern in the book [Enterprise Integration Patterns](/books1.html)\n\n**Related patterns:**\n\n[*Content-Based Router*](ContentBasedRouter.html), [*Message Filter*](Filter.html), [*Message Router*](MessageRouter.html), [*Publish-Subscribe Channel*](PublishSubscribeChannel.html), [*Recipient List*](RecipientList.html), [*Routing Slip*](RoutingTable.html)\n\n---\n\n## Integration Pattern Language\n\n[Message Construct.](MessageConstructionIntro.html)\n\n[Message](Message.html)\n\n[Command Message](CommandMessage.html)\n\n[Document Message](DocumentMessage.html)\n\n[Event Message](EventMessage.html)\n\n[Request-Reply](RequestReply.html)\n\n[Return Address](ReturnAddress.html)\n\n[Correlation Identifier](CorrelationIdentifier.html)\n\n[Message Sequence](MessageSequence.html)\n\n[Message Expiration](MessageExpiration.html)\n\n[Format Indicator](FormatIndicator.html)\n\n[Message Routing](MessageRoutingIntro.html)\n\n[Pipes-and-Filters](PipesAndFilters.html)\n\n[Message Router](MessageRouter.html)\n\n[Content-based Router](ContentBasedRouter.html)\n\n[Message Filter](Filter.html)\n\n[Dynamic Router](DynamicRouter.html)\n\n[Recipient List](RecipientList.html)\n\n[Splitter](Sequencer.html)\n\n[Aggregator](Aggregator.html)\n\n[Resequencer](Resequencer.html)\n\n[Composed Msg. Processor](DistributionAggregate.html)\n\n[Scatter-Gather](BroadcastAggregate.html)\n\n[Routing Slip](RoutingTable.html)\n\n[Process Manager](ProcessManager.html)\n\n[Message Broker](MessageBroker.html)\n\n[Message\nTransformation](MessageTransformationIntro.html)\n\n[Message Translator](MessageTranslator.html)\n\n[Envelope Wrapper](EnvelopeWrapper.html)\n\n[Content Enricher](DataEnricher.html)\n\n[Content Filter](ContentFilter.html)\n\n[Claim Check](StoreInLibrary.html)\n\n[Normalizer](Normalizer.html)\n\n[Canonical Data Model](CanonicalDataModel.html)\n\n[Messaging Endpoints](MessagingEndpointsIntro.html)\n\n[Message Endpoint](MessageEndpoint.html)\n\n[Messaging Gateway](MessagingGateway.html)\n\n[Messaging Mapper](MessagingMapper.html)\n\n[Transactional Client](TransactionalClient.html)\n\n[Polling Consumer](PollingConsumer.html)\n\n[Event-driven Consumer](EventDrivenConsumer.html)\n\n[Competing Consumers](CompetingConsumers.html)\n\n[Message Dispatcher](MessageDispatcher.html)\n\n[Selective Consumer](MessageSelector.html)\n\n[Durable Subscriber](DurableSubscription.html)\n\n[Idempotent Receiver](IdempotentReceiver.html)\n\n[Service Activator](MessagingAdapter.html)\n\n[Messaging Channels](MessagingChannelsIntro.html)\n\n[Message Channel](MessageChannel.html)\n\n[Point-to-Point Channel](PointToPointChannel.html)\n\n[Publish-Subscr. Channel](PublishSubscribeChannel.html)\n\n[Datatype Channel](DatatypeChannel.html)\n\n[Invalid Message Channel](InvalidMessageChannel.html)\n\n[Dead Letter Channel](DeadLetterChannel.html)\n\n[Guaranteed Delivery](GuaranteedMessaging.html)\n\n[Channel Adapter](ChannelAdapter.html)\n\n[Messaging Bridge](MessagingBridge.html)\n\n[Message Bus](MessageBus.html)\n\n[Systems Mgmt.](SystemManagementIntro.html)\n\n[Control Bus](ControlBus.html)\n\n[Detour](Detour.html)\n\n[Wire Tap](WireTap.html)\n\n[Message History](MessageHistory.html)\n\n[Message Store](MessageStore.html)\n\n[Smart Proxy](SmartProxy.html)\n\n[Test Message](TestMessage.html)\n\n[Channel Purger](ChannelPurger.html)\n\n- » [Read the latest in My Blog](/ramblings)\n- » [Get more insights from My Articles](/articles.html)\n- » [See me live in my Upcoming Talks](/talks)\n\nYou can reuse the following elements under the [Creative Commons Attribution](http://creativecommons.org/licenses/by/4.0/) license: pattern icon, pattern name, problem and solution statements (in bold), and the sketch. Other portions are protected by copyright.\n\n[Enterprise Integration Patterns](https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20)\nThe de-facto language for designing asynchronous, distributed systems. Over 100,000 copies sold.\n\n[The Software Architect Elevator](https://www.architectelevator.com/book)\n\n Rethink the role of architects as a connecting element across organizational layers. Acquire the technical, communication, and organizational skills to succeed in this new role.\n\n[Cloud Strategy](https://www.cloudstrategybook.com)\n\n Make your cloud migration a success by translating high-level goals into conscious decisions with well-understood trade-offs.\n\n[Platform Strategy](https://www.platformstrategybook.info)\n\n Platforms can boost innovation through harmonization, but they aren't easy to build. Learn from over a decade of designing and rolling out IT platforms.", "znaku_textu": 6231, "slov": 523, "odkazu": 108, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/DynamicRouter.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 06:03:41", "sha256": "d3b57d8e01cd6bf5adb7a12af887562bc6635a806d26cf8a71a215714d474922", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://creativecommons.org/licenses/by/4.0/", "https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "https://www.architectelevator.com/book", "https://www.cloudstrategybook.com/", "https://www.platformstrategybook.info/"]} {"url": "https://www.enterpriseintegrationpatterns.com/EncapsulatedSynchronousIntegration.html", "titulek": "Remote Procedure Invocation - Enterprise Integration Patterns", "h1": "", "popis": "How can I integrate multiple applications so that they work together and can exchange information?", "klicova_slova": "Remote Procedure Invocation,integration, messaging, events, patterns, event-driven, coupling, eai, middleware, application integration, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns", "og:title": "Remote Procedure Invocation - Enterprise Integration Patterns", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/EncapsulatedSynchronousIntegration.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/EncapsulatedSynchronousIntegration.gif"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Integration Pattern Language"}], "markdown": "| | Remote Procedure Invocation[Messaging Patterns](index.html) » [Integration Styles](IntegrationStylesIntro.html) | [Contents](toc.html)[⇐ Prev](SharedDataBaseIntegration.html)[Next ⇒](Messaging.html) |\n| --- | --- | --- |\n\nAn enterprise has multiple applications that are being built independently, with different languages and platforms. The enterprise needs to share data and processes in a responsive way.\n\nHow can I integrate multiple applications so that they work together and can exchange information?\n\nDevelop each application as a large-scale object or component with encapsulated data. Provide an interface to allow other applications to interact with the running application.\n\n*Remote Procedure Invocation* applies the principle of encapsulation to integrating\napplications. If an application needs some information that is owned\nby another application, it asks that application directly. If one\napplication needs to modify the data of another, then it does so by making a call\nto the other application. Each application can maintain the\nintegrity of the data it owns. Furthermore, each application can alter\nits internal data without having every other application be\naffected.\n\nAlthough the encapsulation helps reduce the coupling of the\napplications, by eliminating a large shared data structure, the\napplications are still fairly tightly coupled together. The remote\ncalls each system supports tends to tie the different systems into a\ngrowing knot. In particular, sequencing--doing certain things in a\nparticular order--can make it difficult to change systems\nindependently. Often these become problems because issues that aren't\nsignificant within a single application become so when integrating\napplications. People often design the integration the way they would\ndesign a single application, unaware that the rules change.\n\n...\nRead the entire pattern in the book [Enterprise Integration Patterns](/books1.html)\n\n**Related patterns:**\n\n[*File Transfer*](FileTransferIntegration.html), [*Messaging*](Messaging.html), [*Shared Database*](SharedDataBaseIntegration.html)\n\n---\n\n## Integration Pattern Language\n\n[Message Construct.](MessageConstructionIntro.html)\n\n[Message](Message.html)\n\n[Command Message](CommandMessage.html)\n\n[Document Message](DocumentMessage.html)\n\n[Event Message](EventMessage.html)\n\n[Request-Reply](RequestReply.html)\n\n[Return Address](ReturnAddress.html)\n\n[Correlation Identifier](CorrelationIdentifier.html)\n\n[Message Sequence](MessageSequence.html)\n\n[Message Expiration](MessageExpiration.html)\n\n[Format Indicator](FormatIndicator.html)\n\n[Message Routing](MessageRoutingIntro.html)\n\n[Pipes-and-Filters](PipesAndFilters.html)\n\n[Message Router](MessageRouter.html)\n\n[Content-based Router](ContentBasedRouter.html)\n\n[Message Filter](Filter.html)\n\n[Dynamic Router](DynamicRouter.html)\n\n[Recipient List](RecipientList.html)\n\n[Splitter](Sequencer.html)\n\n[Aggregator](Aggregator.html)\n\n[Resequencer](Resequencer.html)\n\n[Composed Msg. Processor](DistributionAggregate.html)\n\n[Scatter-Gather](BroadcastAggregate.html)\n\n[Routing Slip](RoutingTable.html)\n\n[Process Manager](ProcessManager.html)\n\n[Message Broker](MessageBroker.html)\n\n[Message\nTransformation](MessageTransformationIntro.html)\n\n[Message Translator](MessageTranslator.html)\n\n[Envelope Wrapper](EnvelopeWrapper.html)\n\n[Content Enricher](DataEnricher.html)\n\n[Content Filter](ContentFilter.html)\n\n[Claim Check](StoreInLibrary.html)\n\n[Normalizer](Normalizer.html)\n\n[Canonical Data Model](CanonicalDataModel.html)\n\n[Messaging Endpoints](MessagingEndpointsIntro.html)\n\n[Message Endpoint](MessageEndpoint.html)\n\n[Messaging Gateway](MessagingGateway.html)\n\n[Messaging Mapper](MessagingMapper.html)\n\n[Transactional Client](TransactionalClient.html)\n\n[Polling Consumer](PollingConsumer.html)\n\n[Event-driven Consumer](EventDrivenConsumer.html)\n\n[Competing Consumers](CompetingConsumers.html)\n\n[Message Dispatcher](MessageDispatcher.html)\n\n[Selective Consumer](MessageSelector.html)\n\n[Durable Subscriber](DurableSubscription.html)\n\n[Idempotent Receiver](IdempotentReceiver.html)\n\n[Service Activator](MessagingAdapter.html)\n\n[Messaging Channels](MessagingChannelsIntro.html)\n\n[Message Channel](MessageChannel.html)\n\n[Point-to-Point Channel](PointToPointChannel.html)\n\n[Publish-Subscr. Channel](PublishSubscribeChannel.html)\n\n[Datatype Channel](DatatypeChannel.html)\n\n[Invalid Message Channel](InvalidMessageChannel.html)\n\n[Dead Letter Channel](DeadLetterChannel.html)\n\n[Guaranteed Delivery](GuaranteedMessaging.html)\n\n[Channel Adapter](ChannelAdapter.html)\n\n[Messaging Bridge](MessagingBridge.html)\n\n[Message Bus](MessageBus.html)\n\n[Systems Mgmt.](SystemManagementIntro.html)\n\n[Control Bus](ControlBus.html)\n\n[Detour](Detour.html)\n\n[Wire Tap](WireTap.html)\n\n[Message History](MessageHistory.html)\n\n[Message Store](MessageStore.html)\n\n[Smart Proxy](SmartProxy.html)\n\n[Test Message](TestMessage.html)\n\n[Channel Purger](ChannelPurger.html)", "znaku_textu": 4810, "slov": 414, "odkazu": 108, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/patterns/messaging/EncapsulatedSynchronousIntegration.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 14:50:57", "sha256": "f88407ac27ec387f1ea39207ad6a549484d3a8189782f82abbb5e3d62b563716", "hloubka": 3, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://creativecommons.org/licenses/by/4.0/", "https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "https://www.architectelevator.com/book", "https://www.cloudstrategybook.com/", "https://www.platformstrategybook.info/"]} {"url": "https://www.enterpriseintegrationpatterns.com/EnvelopeWrapper.html", "titulek": "Envelope Wrapper - Enterprise Integration Patterns", "h1": "", "popis": "How can existing systems participate in a messaging exchange that places specific requirements on the message format, such as message header fields or encryption?", "klicova_slova": "Envelope Wrapper,integration, messaging, events, patterns, event-driven, coupling, eai, middleware, application integration, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns", "og:title": "Envelope Wrapper - Enterprise Integration Patterns", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/EnvelopeWrapper.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/Wrapper.gif"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Integration Pattern Language"}], "markdown": "Messaging Patterns\n\n[Messaging Patterns](index.html)\n\n- [Integration Styles](IntegrationStylesIntro.html)\n- [Messaging Systems](MessagingComponentsIntro.html)\n- [Messaging Channels](MessagingChannelsIntro.html)\n- [Message Construction](MessageConstructionIntro.html)\n- [Interlude: Simple Messaging](SimpleMessagingIntro.html)\n- [Message Routing](MessageRoutingIntro.html)\n- [Message Transformation](MessageTransformationIntro.html)\n- [Interlude: Composed Messaging](ComposedMessagingExample.html)\n- [Messaging Endpoints](MessagingEndpointsIntro.html)\n- [System Management](SystemManagementIntro.html)\n- Interlude: Systems Management Example\n- Integration Patterns in Practice\n- Concluding Remarks\n- Appendices\n\n| | Envelope Wrapper[Messaging Patterns](index.html) » [Message Transformation](MessageTransformationIntro.html) | [Contents](toc.html)[⇐ Prev](MessageTransformationIntro.html)[Next ⇒](DataEnricher.html) |\n| --- | --- | --- |\n\nMost messaging systems divide the message data into a header and a body. The header contains fields that are used by the messaging infrastructure to manage the flow of messages. However, most endpoint systems that participate in the integration solution generally are not aware of these extra data elements. In some cases, systems may even consider these fields as erroneous because they do not match the message format used by the application. On the other hand, the messaging components that route the messages between the applications may require the header fields and would consider a message invalid if it does not contain the proper header fields.\n\nHow can existing systems participate in a messaging exchange that places specific requirements on the message format, such as message header fields or encryption?\n\nUse a *Envelope Wrapper* to wrap application data inside an envelope that is compliant with the messaging infrastructure. Unwrap the message when it arrives at the destination.\n\nThe process of wrapping and unwrapping a message consists of five steps:\n\n...\nRead the entire pattern in the book [Enterprise Integration Patterns](/books1.html)\n\n**Related patterns:**\n\n[*Content-Based Router*](ContentBasedRouter.html), [*Content Enricher*](DataEnricher.html), [*Messaging Bridge*](MessagingBridge.html), [*Pipes and Filters*](PipesAndFilters.html)\n\n---\n\n## Integration Pattern Language\n\n[Message Construct.](MessageConstructionIntro.html)\n\n[Message](Message.html)\n\n[Command Message](CommandMessage.html)\n\n[Document Message](DocumentMessage.html)\n\n[Event Message](EventMessage.html)\n\n[Request-Reply](RequestReply.html)\n\n[Return Address](ReturnAddress.html)\n\n[Correlation Identifier](CorrelationIdentifier.html)\n\n[Message Sequence](MessageSequence.html)\n\n[Message Expiration](MessageExpiration.html)\n\n[Format Indicator](FormatIndicator.html)\n\n[Message Routing](MessageRoutingIntro.html)\n\n[Pipes-and-Filters](PipesAndFilters.html)\n\n[Message Router](MessageRouter.html)\n\n[Content-based Router](ContentBasedRouter.html)\n\n[Message Filter](Filter.html)\n\n[Dynamic Router](DynamicRouter.html)\n\n[Recipient List](RecipientList.html)\n\n[Splitter](Sequencer.html)\n\n[Aggregator](Aggregator.html)\n\n[Resequencer](Resequencer.html)\n\n[Composed Msg. Processor](DistributionAggregate.html)\n\n[Scatter-Gather](BroadcastAggregate.html)\n\n[Routing Slip](RoutingTable.html)\n\n[Process Manager](ProcessManager.html)\n\n[Message Broker](MessageBroker.html)\n\n[Message\nTransformation](MessageTransformationIntro.html)\n\n[Message Translator](MessageTranslator.html)\n\n[Envelope Wrapper](EnvelopeWrapper.html)\n\n[Content Enricher](DataEnricher.html)\n\n[Content Filter](ContentFilter.html)\n\n[Claim Check](StoreInLibrary.html)\n\n[Normalizer](Normalizer.html)\n\n[Canonical Data Model](CanonicalDataModel.html)\n\n[Messaging Endpoints](MessagingEndpointsIntro.html)\n\n[Message Endpoint](MessageEndpoint.html)\n\n[Messaging Gateway](MessagingGateway.html)\n\n[Messaging Mapper](MessagingMapper.html)\n\n[Transactional Client](TransactionalClient.html)\n\n[Polling Consumer](PollingConsumer.html)\n\n[Event-driven Consumer](EventDrivenConsumer.html)\n\n[Competing Consumers](CompetingConsumers.html)\n\n[Message Dispatcher](MessageDispatcher.html)\n\n[Selective Consumer](MessageSelector.html)\n\n[Durable Subscriber](DurableSubscription.html)\n\n[Idempotent Receiver](IdempotentReceiver.html)\n\n[Service Activator](MessagingAdapter.html)\n\n[Messaging Channels](MessagingChannelsIntro.html)\n\n[Message Channel](MessageChannel.html)\n\n[Point-to-Point Channel](PointToPointChannel.html)\n\n[Publish-Subscr. Channel](PublishSubscribeChannel.html)\n\n[Datatype Channel](DatatypeChannel.html)\n\n[Invalid Message Channel](InvalidMessageChannel.html)\n\n[Dead Letter Channel](DeadLetterChannel.html)\n\n[Guaranteed Delivery](GuaranteedMessaging.html)\n\n[Channel Adapter](ChannelAdapter.html)\n\n[Messaging Bridge](MessagingBridge.html)\n\n[Message Bus](MessageBus.html)\n\n[Systems Mgmt.](SystemManagementIntro.html)\n\n[Control Bus](ControlBus.html)\n\n[Detour](Detour.html)\n\n[Wire Tap](WireTap.html)\n\n[Message History](MessageHistory.html)\n\n[Message Store](MessageStore.html)\n\n[Smart Proxy](SmartProxy.html)\n\n[Test Message](TestMessage.html)\n\n[Channel Purger](ChannelPurger.html)\n\n- » [Read the latest in My Blog](/ramblings)\n- » [Get more insights from My Articles](/articles.html)\n- » [See me live in my Upcoming Talks](/talks)\n\nYou can reuse the following elements under the [Creative Commons Attribution](http://creativecommons.org/licenses/by/4.0/) license: pattern icon, pattern name, problem and solution statements (in bold), and the sketch. Other portions are protected by copyright.\n\n[Enterprise Integration Patterns](https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20)\nThe de-facto language for designing asynchronous, distributed systems. Over 100,000 copies sold.\n\n[The Software Architect Elevator](https://www.architectelevator.com/book)\n\n Rethink the role of architects as a connecting element across organizational layers. Acquire the technical, communication, and organizational skills to succeed in this new role.\n\n[Cloud Strategy](https://www.cloudstrategybook.com)\n\n Make your cloud migration a success by translating high-level goals into conscious decisions with well-understood trade-offs.\n\n[Platform Strategy](https://www.platformstrategybook.info)\n\n Platforms can boost innovation through harmonization, but they aren't easy to build. Learn from over a decade of designing and rolling out IT platforms.", "znaku_textu": 6256, "slov": 533, "odkazu": 108, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/EnvelopeWrapper.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 06:03:53", "sha256": "57e50ee6fbc76b0c9f124fba57e677541bc7c2366d0ec45fd76ff198ff1e483d", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://creativecommons.org/licenses/by/4.0/", "https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "https://www.architectelevator.com/book", "https://www.cloudstrategybook.com/", "https://www.platformstrategybook.info/"]} {"url": "https://www.enterpriseintegrationpatterns.com/EventDrivenConsumer.html", "titulek": "Event-Driven Consumer - Enterprise Integration Patterns", "h1": "", "popis": "How can an application automatically consume messages as they become available?", "klicova_slova": "Event-Driven Consumer,integration, messaging, events, patterns, event-driven, coupling, eai, middleware, application integration, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns", "og:title": "Event-Driven Consumer - Enterprise Integration Patterns", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/EventDrivenConsumer.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/EventDrivenConsumerSolution.gif"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Example: RabbitMQ ConsumerNEW"}, {"uroven": 2, "text": "Integration Pattern Language"}], "markdown": "| | Event-Driven Consumer[Messaging Patterns](index.html) » [Messaging Endpoints](MessagingEndpointsIntro.html) | [Contents](toc.html)[⇐ Prev](PollingConsumer.html)[Next ⇒](CompetingConsumers.html) |\n| --- | --- | --- |\n\nAn application needs to consume [*Message*](Message.html)s as soon as they’re delivered.\n\nHow can an application automatically consume messages as they become available?\n\nThe application should use an *Event-Driven Consumer*, one that is automatically handed messages as they’re delivered on the channel.\n\nThis is also known as an asynchronous receiver, because the receiver does not have a running thread until a callback thread delivers a message. We call it an *Event-Driven Consumer* because the receiver acts like the message delivery is an event that triggers the receiver into action.\n\nAn *Event-Driven Consumer* is an object that is invoked by the messaging system when a message arrives on the consumer’s channel. The consumer passes the message to the application through a callback in the application’s API. (How the messaging system gets the message is implementation-specific and may or may not be event-driven. All the consumer knows is that it can sit dormant with no active threads until it gets invoked by the messaging system passing it a message.)\n\n...\nRead the entire pattern in the book [Enterprise Integration Patterns](/books1.html)\n\n## Example: RabbitMQ Consumer[NEW](/ramblings/eip1_examples_updated.html)\n\n[RabbitMQ](http://www.rabbitmq.com) consumers are by default event-driven. When consuming messages off a Channel, you have to provide an implementation of the Consumer interface. The following code example sets up a very simple consumer that simply prints incoming messages as strings:\n\n```\nConsumer consumer = new DefaultConsumer(channel) {\n @Override\n public void handleDelivery(\n String consumerTag, \n Envelope envelope, \n AMQP.BasicProperties properties, \n byte[] body) throws IOException {\n String message = new String(body, \"UTF-8\");\n System.out.println(\"Received '\" + message + \"'\");\n }\n};\n\nboolean autoAck = true;\nchannel.basicConsume(queueName, autoAck, consumer);\t\n```\n\nThis implementation is not a [*Transactional Client*](TransactionalClient.html) because the client acknowledges messages automatically on receipt but before processing.\n\nThe complete source code for this example can be found on [Github](https://github.com/spac3lord/eip/tree/master/Rabbit/src).\n\n**Related patterns:**\n\n[*Competing Consumers*](CompetingConsumers.html), [*Durable Subscriber*](DurableSubscription.html), [*Message*](Message.html), [*Message Channel*](MessageChannel.html), [*Message Dispatcher*](MessageDispatcher.html), [*Selective Consumer*](MessageSelector.html), [*Polling Consumer*](PollingConsumer.html), [*Transactional Client*](TransactionalClient.html)\n\n---\n\n## Integration Pattern Language\n\n[Message Construct.](MessageConstructionIntro.html)\n\n[Message](Message.html)\n\n[Command Message](CommandMessage.html)\n\n[Document Message](DocumentMessage.html)\n\n[Event Message](EventMessage.html)\n\n[Request-Reply](RequestReply.html)\n\n[Return Address](ReturnAddress.html)\n\n[Correlation Identifier](CorrelationIdentifier.html)\n\n[Message Sequence](MessageSequence.html)\n\n[Message Expiration](MessageExpiration.html)\n\n[Format Indicator](FormatIndicator.html)\n\n[Message Routing](MessageRoutingIntro.html)\n\n[Pipes-and-Filters](PipesAndFilters.html)\n\n[Message Router](MessageRouter.html)\n\n[Content-based Router](ContentBasedRouter.html)\n\n[Message Filter](Filter.html)\n\n[Dynamic Router](DynamicRouter.html)\n\n[Recipient List](RecipientList.html)\n\n[Splitter](Sequencer.html)\n\n[Aggregator](Aggregator.html)\n\n[Resequencer](Resequencer.html)\n\n[Composed Msg. Processor](DistributionAggregate.html)\n\n[Scatter-Gather](BroadcastAggregate.html)\n\n[Routing Slip](RoutingTable.html)\n\n[Process Manager](ProcessManager.html)\n\n[Message Broker](MessageBroker.html)\n\n[Message\nTransformation](MessageTransformationIntro.html)\n\n[Message Translator](MessageTranslator.html)\n\n[Envelope Wrapper](EnvelopeWrapper.html)\n\n[Content Enricher](DataEnricher.html)\n\n[Content Filter](ContentFilter.html)\n\n[Claim Check](StoreInLibrary.html)\n\n[Normalizer](Normalizer.html)\n\n[Canonical Data Model](CanonicalDataModel.html)\n\n[Messaging Endpoints](MessagingEndpointsIntro.html)\n\n[Message Endpoint](MessageEndpoint.html)\n\n[Messaging Gateway](MessagingGateway.html)\n\n[Messaging Mapper](MessagingMapper.html)\n\n[Transactional Client](TransactionalClient.html)\n\n[Polling Consumer](PollingConsumer.html)\n\n[Event-driven Consumer](EventDrivenConsumer.html)\n\n[Competing Consumers](CompetingConsumers.html)\n\n[Message Dispatcher](MessageDispatcher.html)\n\n[Selective Consumer](MessageSelector.html)\n\n[Durable Subscriber](DurableSubscription.html)\n\n[Idempotent Receiver](IdempotentReceiver.html)\n\n[Service Activator](MessagingAdapter.html)\n\n[Messaging Channels](MessagingChannelsIntro.html)\n\n[Message Channel](MessageChannel.html)\n\n[Point-to-Point Channel](PointToPointChannel.html)\n\n[Publish-Subscr. Channel](PublishSubscribeChannel.html)\n\n[Datatype Channel](DatatypeChannel.html)\n\n[Invalid Message Channel](InvalidMessageChannel.html)\n\n[Dead Letter Channel](DeadLetterChannel.html)\n\n[Guaranteed Delivery](GuaranteedMessaging.html)\n\n[Channel Adapter](ChannelAdapter.html)\n\n[Messaging Bridge](MessagingBridge.html)\n\n[Message Bus](MessageBus.html)\n\n[Systems Mgmt.](SystemManagementIntro.html)\n\n[Control Bus](ControlBus.html)\n\n[Detour](Detour.html)\n\n[Wire Tap](WireTap.html)\n\n[Message History](MessageHistory.html)\n\n[Message Store](MessageStore.html)\n\n[Smart Proxy](SmartProxy.html)\n\n[Test Message](TestMessage.html)\n\n[Channel Purger](ChannelPurger.html)", "znaku_textu": 5516, "slov": 487, "odkazu": 111, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/EventDrivenConsumer.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 06:04:05", "sha256": "bdd22eb6db0ea6606a9ff53c93d17750b2977ec7f0a25120467a49c532c446d0", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://www.rabbitmq.com/", "https://github.com/spac3lord/eip/tree/master/Rabbit/src", "http://creativecommons.org/licenses/by/4.0/", "https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "https://www.architectelevator.com/book", "https://www.cloudstrategybook.com/", "https://www.platformstrategybook.info/"]} {"url": "https://www.enterpriseintegrationpatterns.com/EventMessage.html", "titulek": "Event Message - Enterprise Integration Patterns", "h1": "", "popis": "How can messaging be used to transmit events from one application to another?", "klicova_slova": "Event Message,integration, messaging, events, patterns, event-driven, coupling, eai, middleware, application integration, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns", "og:title": "Event Message - Enterprise Integration Patterns", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/EventMessage.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/EventMessageSolution.gif"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Integration Pattern Language"}], "markdown": "Messaging Patterns\n\n[Messaging Patterns](index.html)\n\n- [Integration Styles](IntegrationStylesIntro.html)\n- [Messaging Systems](MessagingComponentsIntro.html)\n- [Messaging Channels](MessagingChannelsIntro.html)\n- [Message Construction](MessageConstructionIntro.html)\n- [Interlude: Simple Messaging](SimpleMessagingIntro.html)\n- [Message Routing](MessageRoutingIntro.html)\n- [Message Transformation](MessageTransformationIntro.html)\n- [Interlude: Composed Messaging](ComposedMessagingExample.html)\n- [Messaging Endpoints](MessagingEndpointsIntro.html)\n- [System Management](SystemManagementIntro.html)\n- Interlude: Systems Management Example\n- Integration Patterns in Practice\n- Concluding Remarks\n- Appendices\n\n| | Event Message[Messaging Patterns](index.html) » [Message Construction](MessageConstructionIntro.html) | [Contents](toc.html)[⇐ Prev](DocumentMessage.html)[Next ⇒](RequestReply.html) |\n| --- | --- | --- |\n\nSeveral applications would like to use event-notification to coordinate their actions, and would like to use [*Messaging*](Messaging.html) to communicate those events.\n\nHow can messaging be used to transmit events from one application to another?\n\nUse an *Event Message* for reliable, asynchronous event notification between applications.\n\nWhen a subject has an event to announce, it will create an event object, wrap it in a message, and send it on a channel. The observer will receive the event message, get the event, and process it. Messaging does not change the event notification, just makes sure that the notification gets to the observer.\n\nThe difference between an *Event Message* and a [*Document Message*](DocumentMessage.html) is a matter of timing and content. An event’s contents is typically less important. Many events are empty; their mere occurrance tells the observer to react. An event’s timing is very important; the subject should issue an event as soon as a change occurs, and the observer should process it quickly while it’s still relevant. [*Guaranteed Delivery*](GuaranteedMessaging.html) is usually not very helpful with events because they’re frequent and need to be delivered quickly. [*Message Expiration*](MessageExpiration.html) can be very helpful to make sure that an event is processed quickly or not at all.\n\n...\nRead the entire pattern in the book [Enterprise Integration Patterns](/books1.html)\n\n**Related patterns:**\n\n[*Command Message*](CommandMessage.html), [*Document Message*](DocumentMessage.html), [*Durable Subscriber*](DurableSubscription.html), [*Remote Procedure Invocation*](EncapsulatedSynchronousIntegration.html), [*Guaranteed Delivery*](GuaranteedMessaging.html), [*Message*](Message.html), [*Message Expiration*](MessageExpiration.html), [*Messaging*](Messaging.html), [*JMS Publish/Subscribe Example*](ObserverJmsExample.html), [*Point-to-Point Channel*](PointToPointChannel.html), [*Publish-Subscribe Channel*](PublishSubscribeChannel.html)\n\n---\n\n## Integration Pattern Language\n\n[Message Construct.](MessageConstructionIntro.html)\n\n[Message](Message.html)\n\n[Command Message](CommandMessage.html)\n\n[Document Message](DocumentMessage.html)\n\n[Event Message](EventMessage.html)\n\n[Request-Reply](RequestReply.html)\n\n[Return Address](ReturnAddress.html)\n\n[Correlation Identifier](CorrelationIdentifier.html)\n\n[Message Sequence](MessageSequence.html)\n\n[Message Expiration](MessageExpiration.html)\n\n[Format Indicator](FormatIndicator.html)\n\n[Message Routing](MessageRoutingIntro.html)\n\n[Pipes-and-Filters](PipesAndFilters.html)\n\n[Message Router](MessageRouter.html)\n\n[Content-based Router](ContentBasedRouter.html)\n\n[Message Filter](Filter.html)\n\n[Dynamic Router](DynamicRouter.html)\n\n[Recipient List](RecipientList.html)\n\n[Splitter](Sequencer.html)\n\n[Aggregator](Aggregator.html)\n\n[Resequencer](Resequencer.html)\n\n[Composed Msg. Processor](DistributionAggregate.html)\n\n[Scatter-Gather](BroadcastAggregate.html)\n\n[Routing Slip](RoutingTable.html)\n\n[Process Manager](ProcessManager.html)\n\n[Message Broker](MessageBroker.html)\n\n[Message\nTransformation](MessageTransformationIntro.html)\n\n[Message Translator](MessageTranslator.html)\n\n[Envelope Wrapper](EnvelopeWrapper.html)\n\n[Content Enricher](DataEnricher.html)\n\n[Content Filter](ContentFilter.html)\n\n[Claim Check](StoreInLibrary.html)\n\n[Normalizer](Normalizer.html)\n\n[Canonical Data Model](CanonicalDataModel.html)\n\n[Messaging Endpoints](MessagingEndpointsIntro.html)\n\n[Message Endpoint](MessageEndpoint.html)\n\n[Messaging Gateway](MessagingGateway.html)\n\n[Messaging Mapper](MessagingMapper.html)\n\n[Transactional Client](TransactionalClient.html)\n\n[Polling Consumer](PollingConsumer.html)\n\n[Event-driven Consumer](EventDrivenConsumer.html)\n\n[Competing Consumers](CompetingConsumers.html)\n\n[Message Dispatcher](MessageDispatcher.html)\n\n[Selective Consumer](MessageSelector.html)\n\n[Durable Subscriber](DurableSubscription.html)\n\n[Idempotent Receiver](IdempotentReceiver.html)\n\n[Service Activator](MessagingAdapter.html)\n\n[Messaging Channels](MessagingChannelsIntro.html)\n\n[Message Channel](MessageChannel.html)\n\n[Point-to-Point Channel](PointToPointChannel.html)\n\n[Publish-Subscr. Channel](PublishSubscribeChannel.html)\n\n[Datatype Channel](DatatypeChannel.html)\n\n[Invalid Message Channel](InvalidMessageChannel.html)\n\n[Dead Letter Channel](DeadLetterChannel.html)\n\n[Guaranteed Delivery](GuaranteedMessaging.html)\n\n[Channel Adapter](ChannelAdapter.html)\n\n[Messaging Bridge](MessagingBridge.html)\n\n[Message Bus](MessageBus.html)\n\n[Systems Mgmt.](SystemManagementIntro.html)\n\n[Control Bus](ControlBus.html)\n\n[Detour](Detour.html)\n\n[Wire Tap](WireTap.html)\n\n[Message History](MessageHistory.html)\n\n[Message Store](MessageStore.html)\n\n[Smart Proxy](SmartProxy.html)\n\n[Test Message](TestMessage.html)\n\n[Channel Purger](ChannelPurger.html)\n\n- » [Read the latest in My Blog](/ramblings)\n- » [Get more insights from My Articles](/articles.html)\n- » [See me live in my Upcoming Talks](/talks)\n\nYou can reuse the following elements under the [Creative Commons Attribution](http://creativecommons.org/licenses/by/4.0/) license: pattern icon, pattern name, problem and solution statements (in bold), and the sketch. Other portions are protected by copyright.\n\n[Enterprise Integration Patterns](https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20)\nThe de-facto language for designing asynchronous, distributed systems. Over 100,000 copies sold.\n\n[The Software Architect Elevator](https://www.architectelevator.com/book)\n\n Rethink the role of architects as a connecting element across organizational layers. Acquire the technical, communication, and organizational skills to succeed in this new role.\n\n[Cloud Strategy](https://www.cloudstrategybook.com)\n\n Make your cloud migration a success by translating high-level goals into conscious decisions with well-understood trade-offs.\n\n[Platform Strategy](https://www.platformstrategybook.info)\n\n Platforms can boost innovation through harmonization, but they aren't easy to build. Learn from over a decade of designing and rolling out IT platforms.", "znaku_textu": 6871, "slov": 604, "odkazu": 108, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/EventMessage.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 06:03:29", "sha256": "62f373d66f1ade20d93b672a0cdacd6fc2deed62b0508c2bfe3fc25952d0de42", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://creativecommons.org/licenses/by/4.0/", "https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "https://www.architectelevator.com/book", "https://www.cloudstrategybook.com/", "https://www.platformstrategybook.info/"]} {"url": "https://www.enterpriseintegrationpatterns.com/FileTransferIntegration.html", "titulek": "File Transfer - Enterprise Integration Patterns", "h1": "", "popis": "How can I integrate multiple applications so that they work together and can exchange information?", "klicova_slova": "File Transfer,integration, messaging, events, patterns, event-driven, coupling, eai, middleware, application integration, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns", "og:title": "File Transfer - Enterprise Integration Patterns", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/FileTransferIntegration.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/FileTransferIntegration.gif"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Integration Pattern Language"}], "markdown": "Messaging Patterns\n\n[Messaging Patterns](index.html)\n\n- [Integration Styles](IntegrationStylesIntro.html)\n- [Messaging Systems](MessagingComponentsIntro.html)\n- [Messaging Channels](MessagingChannelsIntro.html)\n- [Message Construction](MessageConstructionIntro.html)\n- [Interlude: Simple Messaging](SimpleMessagingIntro.html)\n- [Message Routing](MessageRoutingIntro.html)\n- [Message Transformation](MessageTransformationIntro.html)\n- [Interlude: Composed Messaging](ComposedMessagingExample.html)\n- [Messaging Endpoints](MessagingEndpointsIntro.html)\n- [System Management](SystemManagementIntro.html)\n- Interlude: Systems Management Example\n- Integration Patterns in Practice\n- Concluding Remarks\n- Appendices\n\n| | File Transfer[Messaging Patterns](index.html) » [Integration Styles](IntegrationStylesIntro.html) | [Contents](toc.html)[⇐ Prev](IntegrationStylesIntro.html)[Next ⇒](SharedDataBaseIntegration.html) |\n| --- | --- | --- |\n\nAn enterprise has multiple applications that are being built independently, with different languages and platforms.\n\nHow can I integrate multiple applications so that they work together and can exchange information?\n\nHave each application produce files containing information that other applications need to consume. Integrators take the responsibility of transforming files into different formats. Produce the files at regular intervals according to the nature of the business.\n\nAn important decision with files is what format to use. Very\n rarely will the output of one application be exactly what's needed\n for another, so you'll have to do a fair bit of processing of files\n along the way. Not just do all the applications that use a file have\n to read it, you also have to be able to use processing tools on\n it. As a result, standard file formats have grown up over\n time. Mainframe systems commonly use data feeds based on the file\n system formats of COBOL. Unix systems use text based files. The\n modern fashion is to use XML. An industry of readers, writers, and transformation\n tools has built up around each of these formats.\n\n...\nRead the entire pattern in the book [Enterprise Integration Patterns](/books1.html)\n\n**Related patterns:**\n\n[*Remote Procedure Invocation*](EncapsulatedSynchronousIntegration.html), [*Messaging*](Messaging.html), [*Shared Database*](SharedDataBaseIntegration.html)\n\n---\n\n## Integration Pattern Language\n\n[Message Construct.](MessageConstructionIntro.html)\n\n[Message](Message.html)\n\n[Command Message](CommandMessage.html)\n\n[Document Message](DocumentMessage.html)\n\n[Event Message](EventMessage.html)\n\n[Request-Reply](RequestReply.html)\n\n[Return Address](ReturnAddress.html)\n\n[Correlation Identifier](CorrelationIdentifier.html)\n\n[Message Sequence](MessageSequence.html)\n\n[Message Expiration](MessageExpiration.html)\n\n[Format Indicator](FormatIndicator.html)\n\n[Message Routing](MessageRoutingIntro.html)\n\n[Pipes-and-Filters](PipesAndFilters.html)\n\n[Message Router](MessageRouter.html)\n\n[Content-based Router](ContentBasedRouter.html)\n\n[Message Filter](Filter.html)\n\n[Dynamic Router](DynamicRouter.html)\n\n[Recipient List](RecipientList.html)\n\n[Splitter](Sequencer.html)\n\n[Aggregator](Aggregator.html)\n\n[Resequencer](Resequencer.html)\n\n[Composed Msg. Processor](DistributionAggregate.html)\n\n[Scatter-Gather](BroadcastAggregate.html)\n\n[Routing Slip](RoutingTable.html)\n\n[Process Manager](ProcessManager.html)\n\n[Message Broker](MessageBroker.html)\n\n[Message\nTransformation](MessageTransformationIntro.html)\n\n[Message Translator](MessageTranslator.html)\n\n[Envelope Wrapper](EnvelopeWrapper.html)\n\n[Content Enricher](DataEnricher.html)\n\n[Content Filter](ContentFilter.html)\n\n[Claim Check](StoreInLibrary.html)\n\n[Normalizer](Normalizer.html)\n\n[Canonical Data Model](CanonicalDataModel.html)\n\n[Messaging Endpoints](MessagingEndpointsIntro.html)\n\n[Message Endpoint](MessageEndpoint.html)\n\n[Messaging Gateway](MessagingGateway.html)\n\n[Messaging Mapper](MessagingMapper.html)\n\n[Transactional Client](TransactionalClient.html)\n\n[Polling Consumer](PollingConsumer.html)\n\n[Event-driven Consumer](EventDrivenConsumer.html)\n\n[Competing Consumers](CompetingConsumers.html)\n\n[Message Dispatcher](MessageDispatcher.html)\n\n[Selective Consumer](MessageSelector.html)\n\n[Durable Subscriber](DurableSubscription.html)\n\n[Idempotent Receiver](IdempotentReceiver.html)\n\n[Service Activator](MessagingAdapter.html)\n\n[Messaging Channels](MessagingChannelsIntro.html)\n\n[Message Channel](MessageChannel.html)\n\n[Point-to-Point Channel](PointToPointChannel.html)\n\n[Publish-Subscr. Channel](PublishSubscribeChannel.html)\n\n[Datatype Channel](DatatypeChannel.html)\n\n[Invalid Message Channel](InvalidMessageChannel.html)\n\n[Dead Letter Channel](DeadLetterChannel.html)\n\n[Guaranteed Delivery](GuaranteedMessaging.html)\n\n[Channel Adapter](ChannelAdapter.html)\n\n[Messaging Bridge](MessagingBridge.html)\n\n[Message Bus](MessageBus.html)\n\n[Systems Mgmt.](SystemManagementIntro.html)\n\n[Control Bus](ControlBus.html)\n\n[Detour](Detour.html)\n\n[Wire Tap](WireTap.html)\n\n[Message History](MessageHistory.html)\n\n[Message Store](MessageStore.html)\n\n[Smart Proxy](SmartProxy.html)\n\n[Test Message](TestMessage.html)\n\n[Channel Purger](ChannelPurger.html)\n\n- » [Read the latest in My Blog](/ramblings)\n- » [Get more insights from My Articles](/articles.html)\n- » [See me live in my Upcoming Talks](/talks)\n\nYou can reuse the following elements under the [Creative Commons Attribution](http://creativecommons.org/licenses/by/4.0/) license: pattern icon, pattern name, problem and solution statements (in bold), and the sketch. Other portions are protected by copyright.\n\n[Enterprise Integration Patterns](https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20)\nThe de-facto language for designing asynchronous, distributed systems. Over 100,000 copies sold.\n\n[The Software Architect Elevator](https://www.architectelevator.com/book)\n\n Rethink the role of architects as a connecting element across organizational layers. Acquire the technical, communication, and organizational skills to succeed in this new role.\n\n[Cloud Strategy](https://www.cloudstrategybook.com)\n\n Make your cloud migration a success by translating high-level goals into conscious decisions with well-understood trade-offs.\n\n[Platform Strategy](https://www.platformstrategybook.info)\n\n Platforms can boost innovation through harmonization, but they aren't easy to build. Learn from over a decade of designing and rolling out IT platforms.", "znaku_textu": 6300, "slov": 543, "odkazu": 108, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/patterns/messaging/FileTransferIntegration.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 14:50:54", "sha256": "be57c18fdfa2d127668f67f9495ddf18a3b06ce7888e84fc5910aa2ee97e981e", "hloubka": 3, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://creativecommons.org/licenses/by/4.0/", "https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "https://www.architectelevator.com/book", "https://www.cloudstrategybook.com/", "https://www.platformstrategybook.info/"]} {"url": "https://www.enterpriseintegrationpatterns.com/Filter.html", "titulek": "Message Filter - Enterprise Integration Patterns", "h1": "", "popis": "How can a component avoid receiving uninteresting messages?", "klicova_slova": "Message Filter,integration, messaging, events, patterns, event-driven, coupling, eai, middleware, application integration, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns", "og:title": "Message Filter - Enterprise Integration Patterns", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/Filter.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/MessageFilter.gif"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Example: RabbitMQ BindingsNEW"}, {"uroven": 2, "text": "Integration Pattern Language"}], "markdown": "| | Message Filter[Messaging Patterns](index.html) » [Message Routing](MessageRoutingIntro.html) | [Contents](toc.html)[⇐ Prev](ContentBasedRouter.html)[Next ⇒](DynamicRouter.html) |\n| --- | --- | --- |\n\nContinuing with the order processing example, let's assume that company management publishes price changes and promotions to large customers. Whenever a price for an item changes, we send a message notifying the customer. We do the same if we are running a special promotion, e.g. all widgets are 10% off in the month of November. Some customers may be interested in receiving price updates or promotions only related to specific items. If I purchase primarily gadgets, I may not be interested in knowing whether widgets are on sale or not.\n\nHow can a component avoid receiving uninteresting messages?\n\nUse a special kind of Message Router, a *Message Filter*, to eliminate undesired messages from a channel based on a set of criteria.\n\nThe *Message Filter* has only a single output channel. If the message content matches the criteria specified by the *Message Filter*, the message is routed to the output channel. If the message content does not match the criteria, the message is discarded.\n\n...\nRead the entire pattern in the book [Enterprise Integration Patterns](/books1.html)\n\n## Example: RabbitMQ Bindings[NEW](/ramblings/eip1_examples_updated.html)\n\nRabbitMQ allows a straightforward implementation of [*Publish-Subscribe Channel*](PublishSubscribeChannel.html) with *Message Filter*s via a *direct exchange*. Exchanges are a concept which is distinct from a queue. Generally, message producers publish messages to an exchange, which controls how the message is propagated to other queues. For example, a \"fanout\" exchange simply propagates a message to all subscribed queues while a \"direct\" exchange allows subscribing queues to express a filter condition for the messages they want to receive.\n\nA direct exchange places incoming messages into a subscribing queue based on a message's *routing key* and the queue's *binding key*. Multiple binding keys are allowed per queue and multiple queues can use the same binding key, which results in each of them receiving a copy of the queue.\n\n*Mapping RabbitMQ Concepts to Enterprise Integration Patterns*\n\nThe Widgets and Gadgets example from above can be implemented quite easily with a single direct exchange and two queues bound to this exchange, each with its respective filter. A helper method helps create a new queue, bind it to the exchange with the filter, and setup a [*Event-Driven Consumer*](EventDrivenConsumer.html) that simply prints out messages.\n\n```\nstatic void filteredReceive(final Channel channel, String filter, String exchangeName) throws IOException {\n\n System.out.println(filter + \" waiting for messages. To exit press CTRL+C\");\n\n Consumer consumer = new DefaultConsumer(channel) {\n @Override\n public void handleDelivery(String consumerTag, Envelope envelope, AMQP.BasicProperties properties, byte[] body)\n throws IOException {\n String message = new String(body, \"UTF-8\");\n System.out.println(filter + \" Received '\" + message + \"'\");\n }\n };\n\n String queueName = channel.queueDeclare().getQueue();\n channel.queueBind(queueName, EXCHANGE_NAME, filter);\n\n boolean autoAck = true;\n channel.basicConsume(queueName, autoAck, consumer);\n}\n```\n\nThe consumer is a simple [*Event-Driven Consumer*](EventDrivenConsumer.html) that is called every time a message is received. The following lines generate a new private queue and bind it to the exchange with the specified filter string. Lastly, the consumer implementation is attached to the queue.\n\nWe can now create the direct exchange and start multiple of these consumers, giving each a respective *binding key*:\n\n```\nchannel.exchangeDeclare(EXCHANGE_NAME, \"direct\");\n\nfilteredReceive(channel, \"Widget\", EXCHANGE_NAME);\nfilteredReceive(channel, \"Gadget\", EXCHANGE_NAME);\n```\n\nLastly, we publish some messages against the exchange with different message keys:\n\n```\nchannel.exchangeDeclare(EXCHANGE_NAME, \"direct\");\n\nsendMessage(channel, EXCHANGE_NAME, \"Widget\", \"Hello EIP Widget!\");\nsendMessage(channel, EXCHANGE_NAME, \"Gadget\", \"Hello EIP Gadget!\");\n```\n\nsendMessage is a simple helper method:\n\n```\nstatic void sendMessage(Channel channel, String exchange, String key, String message) throws IOException {\n channel.basicPublish(exchange, key, null, message.getBytes());\n System.out.println(\" [x] Sent '\" + message + \"'\");\n}\n```\n\nYou can run this code and observe that RabbitMQ filters the messages according to their key:\n\n```\nWidget waiting for messages. To exit press CTRL+C\nGadget waiting for messages. To exit press CTRL+C\nWidget Received 'Hello EIP Widget!'\nGadget Received 'Hello EIP Gadget!'\n```\n\nThe complete source code for this example can be found on [Github](https://github.com/spac3lord/eip/tree/master/Rabbit/src).\n\n**Related patterns:**\n\n[*Content-Based Router*](ContentBasedRouter.html), [*Event-Driven Consumer*](EventDrivenConsumer.html), [*Message Router*](MessageRouter.html), [*Selective Consumer*](MessageSelector.html), [*Publish-Subscribe Channel*](PublishSubscribeChannel.html), [*Recipient List*](RecipientList.html)\n\n---\n\n## Integration Pattern Language\n\n[Message Construct.](MessageConstructionIntro.html)\n\n[Message](Message.html)\n\n[Command Message](CommandMessage.html)\n\n[Document Message](DocumentMessage.html)\n\n[Event Message](EventMessage.html)\n\n[Request-Reply](RequestReply.html)\n\n[Return Address](ReturnAddress.html)\n\n[Correlation Identifier](CorrelationIdentifier.html)\n\n[Message Sequence](MessageSequence.html)\n\n[Message Expiration](MessageExpiration.html)\n\n[Format Indicator](FormatIndicator.html)\n\n[Message Routing](MessageRoutingIntro.html)\n\n[Pipes-and-Filters](PipesAndFilters.html)\n\n[Message Router](MessageRouter.html)\n\n[Content-based Router](ContentBasedRouter.html)\n\n[Message Filter](Filter.html)\n\n[Dynamic Router](DynamicRouter.html)\n\n[Recipient List](RecipientList.html)\n\n[Splitter](Sequencer.html)\n\n[Aggregator](Aggregator.html)\n\n[Resequencer](Resequencer.html)\n\n[Composed Msg. Processor](DistributionAggregate.html)\n\n[Scatter-Gather](BroadcastAggregate.html)\n\n[Routing Slip](RoutingTable.html)\n\n[Process Manager](ProcessManager.html)\n\n[Message Broker](MessageBroker.html)\n\n[Message\nTransformation](MessageTransformationIntro.html)\n\n[Message Translator](MessageTranslator.html)\n\n[Envelope Wrapper](EnvelopeWrapper.html)\n\n[Content Enricher](DataEnricher.html)\n\n[Content Filter](ContentFilter.html)\n\n[Claim Check](StoreInLibrary.html)\n\n[Normalizer](Normalizer.html)\n\n[Canonical Data Model](CanonicalDataModel.html)\n\n[Messaging Endpoints](MessagingEndpointsIntro.html)\n\n[Message Endpoint](MessageEndpoint.html)\n\n[Messaging Gateway](MessagingGateway.html)\n\n[Messaging Mapper](MessagingMapper.html)\n\n[Transactional Client](TransactionalClient.html)\n\n[Polling Consumer](PollingConsumer.html)\n\n[Event-driven Consumer](EventDrivenConsumer.html)\n\n[Competing Consumers](CompetingConsumers.html)\n\n[Message Dispatcher](MessageDispatcher.html)\n\n[Selective Consumer](MessageSelector.html)\n\n[Durable Subscriber](DurableSubscription.html)\n\n[Idempotent Receiver](IdempotentReceiver.html)\n\n[Service Activator](MessagingAdapter.html)\n\n[Messaging Channels](MessagingChannelsIntro.html)\n\n[Message Channel](MessageChannel.html)\n\n[Point-to-Point Channel](PointToPointChannel.html)\n\n[Publish-Subscr. Channel](PublishSubscribeChannel.html)\n\n[Datatype Channel](DatatypeChannel.html)\n\n[Invalid Message Channel](InvalidMessageChannel.html)\n\n[Dead Letter Channel](DeadLetterChannel.html)\n\n[Guaranteed Delivery](GuaranteedMessaging.html)\n\n[Channel Adapter](ChannelAdapter.html)\n\n[Messaging Bridge](MessagingBridge.html)\n\n[Message Bus](MessageBus.html)\n\n[Systems Mgmt.](SystemManagementIntro.html)\n\n[Control Bus](ControlBus.html)\n\n[Detour](Detour.html)\n\n[Wire Tap](WireTap.html)\n\n[Message History](MessageHistory.html)\n\n[Message Store](MessageStore.html)\n\n[Smart Proxy](SmartProxy.html)\n\n[Test Message](TestMessage.html)\n\n[Channel Purger](ChannelPurger.html)", "znaku_textu": 7839, "slov": 815, "odkazu": 110, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/Filter.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 06:03:41", "sha256": "899fcd8bbb8d91b9a0985314998a4707c1b4e0b34aa79a2821149c861d53db2c", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/spac3lord/eip/tree/master/Rabbit/src", "http://creativecommons.org/licenses/by/4.0/", "https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "https://www.architectelevator.com/book", "https://www.cloudstrategybook.com/", "https://www.platformstrategybook.info/"]} {"url": "https://www.enterpriseintegrationpatterns.com/FormatIndicator.html", "titulek": "Format Indicator - Enterprise Integration Patterns", "h1": "", "popis": "How can a message’s data format be designed to allow for possible future changes?", "klicova_slova": "Format Indicator,integration, messaging, events, patterns, event-driven, coupling, eai, middleware, application integration, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns", "og:title": "Format Indicator - Enterprise Integration Patterns", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/FormatIndicator.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/eip1_patterns_wide.png"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Integration Pattern Language"}], "markdown": "Messaging Patterns\n\n[Messaging Patterns](index.html)\n\n- [Integration Styles](IntegrationStylesIntro.html)\n- [Messaging Systems](MessagingComponentsIntro.html)\n- [Messaging Channels](MessagingChannelsIntro.html)\n- [Message Construction](MessageConstructionIntro.html)\n- [Interlude: Simple Messaging](SimpleMessagingIntro.html)\n- [Message Routing](MessageRoutingIntro.html)\n- [Message Transformation](MessageTransformationIntro.html)\n- [Interlude: Composed Messaging](ComposedMessagingExample.html)\n- [Messaging Endpoints](MessagingEndpointsIntro.html)\n- [System Management](SystemManagementIntro.html)\n- Interlude: Systems Management Example\n- Integration Patterns in Practice\n- Concluding Remarks\n- Appendices\n\n| | Format Indicator[Messaging Patterns](index.html) » [Message Construction](MessageConstructionIntro.html) | [Contents](toc.html)[⇐ Prev](MessageExpiration.html)[Next ⇒](SimpleMessagingIntro.html) |\n| --- | --- | --- |\n\nSeveral applications are communicating via [*Message*](Message.html)s that follow an agreed upon data format, perhaps an enterprise-wide [*Canonical Data Model*](CanonicalDataModel.html). However, that format may need to change over time.\n\nHow can a message’s data format be designed to allow for possible future changes?\n\nDesign a data format that includes a *Format Indicator*, so that the message specifies what format it is using.\n\nThe 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.\n\nThere are three main alternatives for implementing a format indicator:\n\n1. **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.\n2. **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.\n3. **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.\n\n...\nRead the entire pattern in the book [Enterprise Integration Patterns](/books1.html)\n\n**Related patterns:**\n\n[*Canonical Data Model*](CanonicalDataModel.html), [*Message*](Message.html)\n\n---\n\n## Integration Pattern Language\n\n[Message Construct.](MessageConstructionIntro.html)\n\n[Message](Message.html)\n\n[Command Message](CommandMessage.html)\n\n[Document Message](DocumentMessage.html)\n\n[Event Message](EventMessage.html)\n\n[Request-Reply](RequestReply.html)\n\n[Return Address](ReturnAddress.html)\n\n[Correlation Identifier](CorrelationIdentifier.html)\n\n[Message Sequence](MessageSequence.html)\n\n[Message Expiration](MessageExpiration.html)\n\n[Format Indicator](FormatIndicator.html)\n\n[Message Routing](MessageRoutingIntro.html)\n\n[Pipes-and-Filters](PipesAndFilters.html)\n\n[Message Router](MessageRouter.html)\n\n[Content-based Router](ContentBasedRouter.html)\n\n[Message Filter](Filter.html)\n\n[Dynamic Router](DynamicRouter.html)\n\n[Recipient List](RecipientList.html)\n\n[Splitter](Sequencer.html)\n\n[Aggregator](Aggregator.html)\n\n[Resequencer](Resequencer.html)\n\n[Composed Msg. Processor](DistributionAggregate.html)\n\n[Scatter-Gather](BroadcastAggregate.html)\n\n[Routing Slip](RoutingTable.html)\n\n[Process Manager](ProcessManager.html)\n\n[Message Broker](MessageBroker.html)\n\n[Message\nTransformation](MessageTransformationIntro.html)\n\n[Message Translator](MessageTranslator.html)\n\n[Envelope Wrapper](EnvelopeWrapper.html)\n\n[Content Enricher](DataEnricher.html)\n\n[Content Filter](ContentFilter.html)\n\n[Claim Check](StoreInLibrary.html)\n\n[Normalizer](Normalizer.html)\n\n[Canonical Data Model](CanonicalDataModel.html)\n\n[Messaging Endpoints](MessagingEndpointsIntro.html)\n\n[Message Endpoint](MessageEndpoint.html)\n\n[Messaging Gateway](MessagingGateway.html)\n\n[Messaging Mapper](MessagingMapper.html)\n\n[Transactional Client](TransactionalClient.html)\n\n[Polling Consumer](PollingConsumer.html)\n\n[Event-driven Consumer](EventDrivenConsumer.html)\n\n[Competing Consumers](CompetingConsumers.html)\n\n[Message Dispatcher](MessageDispatcher.html)\n\n[Selective Consumer](MessageSelector.html)\n\n[Durable Subscriber](DurableSubscription.html)\n\n[Idempotent Receiver](IdempotentReceiver.html)\n\n[Service Activator](MessagingAdapter.html)\n\n[Messaging Channels](MessagingChannelsIntro.html)\n\n[Message Channel](MessageChannel.html)\n\n[Point-to-Point Channel](PointToPointChannel.html)\n\n[Publish-Subscr. Channel](PublishSubscribeChannel.html)\n\n[Datatype Channel](DatatypeChannel.html)\n\n[Invalid Message Channel](InvalidMessageChannel.html)\n\n[Dead Letter Channel](DeadLetterChannel.html)\n\n[Guaranteed Delivery](GuaranteedMessaging.html)\n\n[Channel Adapter](ChannelAdapter.html)\n\n[Messaging Bridge](MessagingBridge.html)\n\n[Message Bus](MessageBus.html)\n\n[Systems Mgmt.](SystemManagementIntro.html)\n\n[Control Bus](ControlBus.html)\n\n[Detour](Detour.html)\n\n[Wire Tap](WireTap.html)\n\n[Message History](MessageHistory.html)\n\n[Message Store](MessageStore.html)\n\n[Smart Proxy](SmartProxy.html)\n\n[Test Message](TestMessage.html)\n\n[Channel Purger](ChannelPurger.html)\n\n- » [Read the latest in My Blog](/ramblings)\n- » [Get more insights from My Articles](/articles.html)\n- » [See me live in my Upcoming Talks](/talks)\n\nYou can reuse the following elements under the [Creative Commons Attribution](http://creativecommons.org/licenses/by/4.0/) license: pattern icon, pattern name, problem and solution statements (in bold), and the sketch. Other portions are protected by copyright.\n\n[Enterprise Integration Patterns](https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20)\nThe de-facto language for designing asynchronous, distributed systems. Over 100,000 copies sold.\n\n[The Software Architect Elevator](https://www.architectelevator.com/book)\n\n Rethink the role of architects as a connecting element across organizational layers. Acquire the technical, communication, and organizational skills to succeed in this new role.\n\n[Cloud Strategy](https://www.cloudstrategybook.com)\n\n Make your cloud migration a success by translating high-level goals into conscious decisions with well-understood trade-offs.\n\n[Platform Strategy](https://www.platformstrategybook.info)\n\n Platforms can boost innovation through harmonization, but they aren't easy to build. Learn from over a decade of designing and rolling out IT platforms.", "znaku_textu": 6515, "slov": 594, "odkazu": 108, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/FormatIndicator.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 06:03:35", "sha256": "54fd70b7f96611bc8e639462761098b2ae2f6624ab4bd279699cca1308436683", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://creativecommons.org/licenses/by/4.0/", "https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "https://www.architectelevator.com/book", "https://www.cloudstrategybook.com/", "https://www.platformstrategybook.info/"]} {"url": "https://www.enterpriseintegrationpatterns.com/Future.html", "titulek": "Emerging Standards and Futures in Enterprise Integration - Enterprise Integration Patterns", "h1": "", "popis": "As data flows across system and domain boundaries through \n messaging conduits, and as developers and architects become more proficient \n in the patterns that govern messaging systems, new standards and products \n will emerge to extend the tactical reach of those patterns. Over time, patterns \n tend to strengthen but otherwise change little if at all; but their implementation \n strategies often evolve rapidly to allow developers to apply them to much \n broader scales of sophistication. The fundamental Message \n Pattern, for example, finds its reach and applicability extended as implementation \n artifacts grow from EDI to proprietary MOM to open XML and SOAP-based web \n services to global BPEL and beyond. ", "klicova_slova": "Emerging Standards and Futures in Enterprise Integration,integration, messaging, events, patterns, event-driven, coupling, eai, middleware, application integration, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns", "og:title": "Emerging Standards and Futures in Enterprise Integration - Enterprise Integration Patterns", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/Future.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/eip1_patterns_wide.png"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "The Relationship between Standards and Design Patterns"}, {"uroven": 2, "text": "Survey of Standards Processes and Organizations"}, {"uroven": 2, "text": "Business Process Components and Intra-Web Service Messaging"}, {"uroven": 2, "text": "ebXML and the Electronic Business Messaging Service (ebMS)"}, {"uroven": 2, "text": "Business Process Execution Language for Web Services (BPEL4WS)"}, {"uroven": 2, "text": "Web Service Choreography Interface (WSCI)"}, {"uroven": 2, "text": "Java business process component standards"}, {"uroven": 2, "text": "WS-*"}, {"uroven": 2, "text": "Summary"}, {"uroven": 2, "text": "Integration Pattern Language"}], "markdown": "| | Emerging Standards and Futures in Enterprise Integration[Messaging Patterns](index.html) » Concluding Remarks | [Contents](toc.html)[⇐ Prev](BondTradingCaseStudy.html)[Next ⇒](bib.html) |\n| --- | --- | --- |\n\n*(By Sean Neville)*\n\nAs data flows across system and domain boundaries through \n messaging conduits, and as developers and architects become more proficient \n in the patterns that govern messaging systems, new standards and products \n will emerge to extend the tactical reach of those patterns. Over time, patterns \n tend to strengthen but otherwise change little if at all; but their implementation \n strategies often evolve rapidly to allow developers to apply them to much \n broader scales of sophistication. The fundamental [*Message*](Message.html) \n Pattern, for example, finds its reach and applicability extended as implementation \n artifacts grow from EDI to proprietary MOM to open XML and SOAP-based web \n services to global BPEL and beyond.\n\nThis chapter takes a look at the future of message-based enterprise \n integration in terms of the emerging standards that application developers \n will encounter in the mid 00's. Many of these standards are not currently\n in common use, but are coalescing with broad industry support, and are likely \n to serve as the foundation of integration pattern implementations particularly \n in service-oriented architectures. Most of them extend nascent web services \n technologies to support the types of patterns presented in this book. We'll \n take a look at why these standards are important in relation to design patterns, \n which organizations are creating them and how they're going about it, and \n offer a brief summary of the technical solutions for business process integration \n that a few of the most promising web services and Java standards aim to provide.\n\n## The Relationship between Standards and Design Patterns\n\nTwo mental artifacts provide the highest levels of abstraction \n in software architecture today: Programming orientations, which include object-oriented \n programming, service-oriented programming, generative programming and the \n like; and pattern languages, such as that documented in this book. If a particular \n orientation or design pattern proves useful, and if its context proves to \n recur frequently, the tactics and strategies used to implement the pattern \n often become very similar. Pattern solutions on multiple platforms, products \n and applications end up owning very few differences -- but those few differences \n are often frustrating growth inhibitors, typically semantic in nature, and\n produce interoperability that hinders sophistication of scale. To extend the \n reach of applications and the patterns on which they're based, such differences \n tend to be eliminated from products and platforms through formally agreed-upon \n standards.\n\nWhen a pattern's tactic or implementation strategy is standardized, \n the pattern does not wane in usefulness, replaced by that standard; instead, \n quite the opposite occurs. Like rings within a tree trunk, a strong pattern \n grows upon itself to ever-broader levels of applicability, creating and then \n applying itself in broader instances of context. This growth in scale occurs \n because separate instances of a pattern's implementation become interoperable \n with one another. Taking a typical message-oriented J2EE application as an \n example: A pattern such as [*Pipes and Filters*](PipesAndFilters.html) exists at many levels -- within the application as designed \n by the developer, but also within the server product used to host the application, \n within the containers and services within that server, within the filters \n and components that compose the messaging subsystems, and so forth in recursive \n fashion.\n\nEmerging messaging and web service standards will serve to \n strengthen the patterns in this book by extending the reach of the developers \n who employ them. Standards such as Business Process Execution Language (BPEL) \n and Web Services Reliability (WS-Reliability) propagate the scope of these patterns \n beyond bits, beyond languages, beyond products, and outward into increasingly \n useful compositions in the human- and system-centric circles of use cases \n and requirements. Application developers can stop using patterns such as [*Correlation Identifier*](CorrelationIdentifier.html)\n to match raw message replies to their senders, and can \n start using that same pattern to correlate process components that consist \n of multiple asynchronous message senders and receivers. Without the benefit\n of messaging standards, a Java developer may implement [*Message Router*](MessageRouter.html)\n at the code level to inspect the contents of individual XML \n messages in order to programmatically forward the message to a particular \n service or filter. Emerging workflow and choreography standards will allow \n that same developer to apply his knowledge of the [*Message Router*](MessageRouter.html)\n pattern at a higher level of abstraction to route workflow among process compositions, \n where the tactical artifacts are business process components rather than raw \n sections of XML documents. In other words, application developers can stop \n spending precious time linking protocols and set about the business of linking \n business processes and services across domain boundaries.\n\nThe usefulness of design patterns and programming orientation \n for developing sophisticated systems is proportional to the application developer's \n ability to depend upon common, interoperable implementation strategies and \n tactics. Today, strategies for working with a messaging pattern in J2EE may \n mean use of JMS, JCA, or JAX-RPC; tomorrow, the strategies used by application \n developers may involve use of model-driven technology, schema-based scripts, \n aspects or intentions -- and any such shifts in implementation tactics only \n increase the significance of the patterns, if both the pattern's contextual \n definition and relevant standards are appropriately embraced. Standards provide \n the best way we currently know to enforce these commonalities to extend the \n software architect's mastery of design patterns.\n\n## Survey of Standards Processes and Organizations\n\nContrary to popular cynicism, standards are not intended to \n be developed in a vendor vacuum isolated from practical application development. \n They are intended to unify and improve the implementation approaches discovered \n and developed by application developers. By exercising the design patterns \n in this book, you may be contributing to the development of a standard even \n if you don't directly contribute to a specification working group. The organizations \n and consortiums that oversee specification working groups don't always do \n a great job of recognizing and assimilating implementation approaches, but\n that's the intention.\n\nStandards are officially born when an inventor or group of \n inventors makes a formal proposal to a standards body. Usually this requires \n membership in the standards body. Each standards body enforces its own process \n for shaping proposals into a standard, and all members are legally bound to \n those rules. The processes generally involve the forming of a working group \n or committee to further develop the specification under the oversight and \n eventual approval of the organization's management. Intellectual property \n rights and licensing policies are often hot topics in these organizations, \n and can vary between standard bodies and even between working groups within \n the standards bodies.\n\nHere's a look at the major standards organizations involved \n in creating the emerging messaging and web service standards:\n\n**W3C** ([http://www.w3c.org](http://www.w3c.org)): \n The World Wide Web Consortium develops many of the basic web technologies \n that are in turn used as building blocks by other standards organizations. \n It is managed by an international team of researchers and engineers, and \n consists of a large group of member vendors, content providers, governments, \n research laboratories, and other entities. The W3C makes use of an open, \n collaborative review process in Working Groups and subsequently in public \n that results in lengthy but generally high-quality iterations. Technologies \n created through the W3C are usually unencumbered by member claims to intellectual \n property rights. W3C technologies include SOAP and WSDL, as well as all \n of the core XML specifications. The W3C Choreography Working Group will \n likely resolve conflicting business process specifications and provide \n the definitive basis for integration using web services.\n\n**OASIS** ([http://www.oasis-open.org](http://www.oasis-open.org/home/index.php)): \n One of several organizations that builds on W3C technologies is the Organization \n for the Advancement of Structured Information Standards, or OASIS. Chartered \n to foster guidelines for SGML development, this non-profit consortium \n of vendors now focuses on driving the adoption of global e-business standards. \n OASIS technical committees are producing many emerging web service standards, \n such as ebXML and WS-Reliability. OASIS also hosts the xml.org portal.\n\n**WS-I** ([http://www.ws-i.org](http://www.ws-i.org/)): \n The Web Services Interoperability Organization (WS-I) aims to ensure that \n web service technologies and standards are suitable for enabling business \n collaborations in a generic, interoperable manner. The organization promotes \n web service protocols and practices that can apply across multiple systems, \n platforms, and languages. A key tactic in achieving these goals is the \n WS-I Basic Profile, which specifies the collection of web service standards \n along with their version numbers -- in the first profile these are XML Schema\n 1.0, SOAP 1.1, WSDL 1.1, and UDDI 1.0 -- as well as conventions governing \n how they should be used together. Thus the WS-I intends to play a unifying \n role in ensuring that various vendors involved in web services development \n can work together in a way that benefits application developers. It was \n founded and is managed by the leading web service vendor companies, including \n Microsoft, IBM, BEA Systems, Oracle, and others.\n\n**JCP**([http://www.jcp.org](http://www.jcp.org)): \n The Java Community Process (JCP) produces Java language bindings and\n J2EE APIs for technologies such as the web services and messaging standards \n developed by other organizations. Led by Sun Microsystems, the JCP has \n not historically been an open process; although it makes use of Expert \n Groups and a proposal process similar to that of other standards organizations, \n intellectual property rights are typically retained by Sun and licensed \n to the Java and J2EE platform vendors for a fee. Most of the JSR Expert \n Groups are also led by Sun engineers. While lacking the openness of other \n organizations, the JCP has, on the other hand, benefited from the focus\n that Sun has provided somewhat unhindered by external agendas.\n\n**Ad Hoc Vendor Consortiums:** In the race \n to establish control over portions of the emerging web services technologies, \n particularly for the purposes of enterprise integration, traditional competitors \n such as IBM and Microsoft have in some cases united to publish would-be \n standards without submitting those works to any standards body. Many of \n the WS-* specifications fall into this bucket. Often standards developed through\n vendor consortiums end up as submissions to standards organizations; the promising Business\n Process Execution Language (BPEL), for example, spent its early life as a creation of\n Microsoft and IBM before being submitted to OASIS. Interest in retaining \n intellectual property rights seems to be the catalyst for working in ad \n hoc fashion. These specifications achieve interoperability without the \n licensing openness, which is often satisfactory for application developers \n integrating platforms as popular as those produced by Microsoft and IBM, \n though whether these works are truly \"open standards\" is understandably \n the subject of much debate.\n\n## Business Process Components and Intra-Web Service Messaging\n\nNot content merely to influence object-oriented programming, \n structural decomposition, and domain modeling, Aristotle also mischievously \n posed one of the most influential rhetorical questions ever to trouble software \n architecture: Is the world predominantly a series of processes or is it a \n series of objects?\n\nMessaging standards reply with an answer worthy of a Zen disciple: \n \"yes.\" The world is a series of objects whose most important characteristics \n are usually the processes through which they engage with and relate to other \n objects. It is often an object's behaviors related to other objects rather \n than its own internal composition that turns out to be most significant. In\n the realm of web services and enterprise integration, this object/process \n hybrid view is referred to as the business process component. The business \n process component unites a series of services into a logical unit that interacts \n with other such units via messaging to achieve highly-scalable, resilient \n flows of logic and data. The coalescence of process, object, and interaction\n patterns into a business process component is the future of messaging as seen \n by many web services vendors and standards bodies.\n\nThe process component is a macro view of a set of services \n that is particularly relevant to enterprise integration. Taking a non-technical \n example: A man can drive a car, and both the man and the car are separate \n highly-complex systems; the process view of the man and car, however, sees \n them as a single component defined by their interactions with one another, \n and does not focus on the composition of either the man or the car separate \n from the interaction between them. Further, the process component view goes \n on to describe the interactions of that single component with others on the \n road, again without interest in the internal composition of other automobiles \n or drivers. This is not the same as simply presenting an external interface, \n as it also includes the rules that govern behaviors between usages of the \n interfaces.\n\nThe business process component as emerging in standards is \n a single component that internally consists of a set of web services and a \n definition for how messages flow into and out of them. Web services and other\n message destinations are building blocks used to compose larger compositions\n whose interactions follow messaging patterns -- both the composition of the\n process component, and the linking of multiple process components into an\n application follow messaging patterns. Business process standards address\n the correlation of messages between web services in order to create flows of\n execution, and include behaviors related to errors, transactions, and data\n exchange.\n\nA more technical business example is illustrated below, in which the processing\n of a purchase order is handled by a component that consists of a number of service\n operations.\n\n*Figure 1: The Business Process Component exposing a single destination endpoint on behalf of multiple internally choreographed web services.*\n\nThe example includes the following characteristics and activities:\n\n- Each operation in the Process Purchase Order component is an operation available\n on the portType of a web service, and the various web services which expose the\n operations may reside on remote hosts in partner production facilities.\n- When a purchase order is received, four operations are invoked concurrently; but\n some of the operations have dependencies that must be synchronously resolved\n (the dashed arrows in the illustration indicate dependencies).\n- Two specific dependencies show that the shipping agreement and insurance costs\n are needed in order to calculate the final cost, and that a binding insurance agreement\n must be received before the manufacturer will commit resources to a production schedule.\n- Once all service operations have asynchronously completed, the purchase order has\n been processed. Rather than requiring the messaging client to interact with all of\n these services individually and manage the dependencies between them -- that is,\n rather than requiring the client to create a [*Process Manager*](ProcessManager.html) implementation -- the process component exposes a single network endpoint on behalf\n of all the services, and manages all of the messaging and dependencies between\n services internally, simplifying the client's tasks.\n- The Purchase Order process component is in turn linked to another business process\n component, the Process Invoice Component.\n\nFour standards initiatives warrant a good look in the business process component and integration space: the ebXML initiative, \n two competing proposals called Business Process Execution Language and Web \n Services Choreography Interface, and a collection of individual specifications \n joined through the \"WS-\" prefix that address pieces of the same \n functionality in slightly narrower, more specific fashion.\n\n## ebXML and the Electronic Business Messaging Service (ebMS)\n\nEven before the explosive popularity of SOAP and WSDL, many \n bright thinkers working on business collaboration and B2B integration projects \n saw a need to develop an open, secure, and interoperable infrastructure for \n exchanging business information using XML messaging. The several specifications \n and initiatives developed under the Electronic Business using eXtensible Markup\n Language (ebXML) banner address that need, and as technologies such as SOAP \n have become popular, ebXML has grown to include and build upon them. The ebXML \n initiatives are jointly managed through OASIS and the United Nations UN/CEFACT \n organization. UN/CEFACT is the global group that brought the Electronic Data \n Interchange (EDI) standard into the world, and ebXML in many ways represents \n the next logical stage in the evolution of EDI.\n\nSeveral specifications comprise ebXML, covering topics such \n as how enterprises advertise their business process and search for those of \n potential partners, how partners agree upon and initiate communication, the \n use of registries to facilitate the discovery and initialization of business\n conversations, and the behavior of the messaging infrastructure required to \n facilitate the conversations. This last element in particular has garnered \n a great deal of attention, and while it leverages the other ebXML specifications, \n it can also be considered separately, which is useful for the purposes of \n focusing on messaging patterns.\n\nThe Electronic Business Messaging Service (ebMS) is not quite \n as \"emerging\" as some of the other standards mentioned here, as \n it has already achieved significant success as a means of integrating business \n processes, augmenting EDI systems, and extending SOAP to provide reliability \n and security for web services. Developed by OASIS over a three-year period \n beginning in 1999, ebMS is also proving influential in the development of other\n business process standards.\n\nThe goal of ebMS is to ease the exchange of business messages \n within an XML framework, but that framework includes the use of message payloads \n that are not necessarily XML -- the payload can take any form, including traditional \n EDI formats as well as binary formats. Thus ebMS can encapsulate existing \n messaging systems and serve as a flexible bridging technology, containing \n a set of [*Message Translator*](MessageTranslator.html)\n implementations, which is particularly useful in scaling integration to extranets \n and to B2B communication between business partners. An important source of \n use cases for ebMS is the linkage of proprietary MOM systems across separate \n enterprises, and considerable testing between vendors and developers has occurred \n to verify this interoperability. Critical to ebMS is that it supports legacy\n EDI systems, allowing enterprises to leverage longstanding investments in \n EDI while compensating for EDI's shortcomings by incorporating features of \n the web and XML.\n\nWhile on the one hand ebMS is a compatible iteration of EDI, \n on the other hand it is also a sophisticated improvement of standard SOAP-based \n services. The XML transmissions used in an ebMS system consist of SOAP envelopes\n that include ebMS-specific SOAP Headers to record unique message identifiers, \n timestamps, digital signatures, and a manifest which provides metadata about \n the message's payload. Thus ebMS uses the SOAP Header mechanism to implement \n the [*Introduction to Message Routing*](MessageRoutingIntro.html)\n patterns and many of the [*Introduction to Messaging Endpoints*](MessagingEndpointsIntro.html)\npatterns, such as [*Idempotent Receiver*](IdempotentReceiver.html) and others related to guaranteed sequential delivery.\n\nebMS transports its payloads by using the SOAP with Attachments \n standard to attach the payload to the SOAP envelope in much the same way that \n attachments are added to email messages. These payloads, again, have no formatting \n restrictions placed upon them: a message's payload may be XML data, binary \n data, link-based references to external data, etc. Further, each payload may \n have its own digital signature, and additional authentication and authorization \n may be provided by ebMS implementers.\n\n*Figure 2: An ebMS message is composed as SOAP messages with attachments.*\n\nAsynchronous message delivery is the default, but synchronous \n delivery is also possible through ebMS. The error-handling mechanism is also \n quite sophisticated, and depending on the implementation can provide SOAP \n Fault information along with payload-specific error messages.\n\nTo provide reliability, the critical element of an ebMS implementation \n -- called ebXML Message Service Handlers -- persist messages at the sending \n end of a conversation. Developers can provide semantic declarations such as \n \"once-and-only-once\" and \"store-and-forward\" for individual \n messages or for groups of messages. ebMS specifies services to manage sequential \n delivery and management as well; this last service is implemented through \n a Message Status Service that represents a\n [*Control Bus*](ControlBus.html). It provides the ability to request the status of a message previously \n sent into the ebMS system, which underneath the covers operates through an \n implementation of [*Message History*](MessageHistory.html) and related patterns.\n\nMore information on ebXML can be found here: [http://www.ebxml.org/](http://www.ebxml.org/)\n\nThe ebMS specification can be found here: [http://www.ebxml.org/specs/ebMS2.pdf](http://www.ebxml.org/specs/ebMS2.pdf)\n\n## Business Process Execution Language for Web Services (BPEL4WS)\n\nA popular emerging standard for defining business process \n components and their interactions is Business Process Execution Language for \n Web Services (BPEL4WS). The name is often pronounced \"bee-pel\" or \n even worse -- \"bee-pel for wuss.\" This standard represents the merging \n of two competing proposals from IBM and from Microsoft. IBM's Web Services \n Flow Language (WSFL) specified a means of creating and linking service endpoints \n to choreograph web service workflows, while Microsoft's XLANG provided a syntax \n and development model for creating workflow components as realized in the \n Microsoft BizTalk server product. BPEL4WS provides a bit of both: It includes \n a syntax for composing processes from existing services, and for describing \n process interfaces for the purpose of linking them together in larger workflows. \n It was created by an ad hoc collaboration between BEA Systems, IBM, and Microsoft, and has been submitted to OASIS.\n\nThe design of BPEL calls for linkages of web services, named \n \"partners,\" to put XML messages into and out of message stores, \n called \"containers,\" according to rules called \"activities.\" \n A logical set of service linkages, message containers, and activities comprise \n a single business process component. The BPEL specification essentially defines \n a [*Process Manager*](ProcessManager.html) that creates [*Routing Slip*](RoutingTable.html), \n [*Durable Subscriber*](DurableSubscription.html), [*Datatype Channel*](DatatypeChannel.html), and more based on a declarative XML syntax. Developers declare behaviors in XML (perhaps with the aid of visual tools) in order to craft business process components such as the one in Figure 1 above, and do not need to programmatically create the messaging between services.\n\nWeb Service Description Language (WSDL) documents are very \n important to BPEL, as the BPEL component will consist of and manage multiple \n web services based on the services' WSDL documents. The business process instantiates \n and routes messages to the service endpoints declared within these services' \n WSDL documents using messages that are formatted according to the WSDL message \n declarations. The BPEL syntax links the portType and operations of a set of \n web services by importing their WSDL files and declaring what sequences to \n use to receive the service messages, where to send them, when and how to reply, \n when to invoke other web services, and so forth.\n\nIn order to establish the linkages between services, the application \n developer imports the WSDL of the web services comprising the component and \n defines the partner relationships between them using the BPEL serviceLinkType \n element. This element refers to the portTypes of the web services involved \n in a flow and the partner roles that they play in relation to the process; \n the developer is then able to refer to these linkages and partner roles when \n declaring how messages should flow into and out of them.\n\nAfter declaring the relationships between services, the developer \n uses BPEL to create \"containers\" to hold the messages that the services \n use as input and output. Containers are very much like a [*Datatype Channel*](DatatypeChannel.html)\nfor the message types defined in WSDL. Depending on the \n underlying container implementation, a container could also be considered \n from the perspective of the [*Shared Database*](SharedDataBaseIntegration.html) integration style, but with added encapsulation and built-in \n collaboration semantics; a container is a shared data repository used by separate \n services. In addition to connecting containers to services through the BPEL \n elements, a container's contents can be accessed directly via XPath extensions.\n\nA BPEL component itself exposes its own input and output points \n as a single interface, and it does so in the same form that its internal web \n services use: through WSDL. It should be evident, however, that the WSDL of \n a business process component is slightly different from a web service WSDL \n document in that the business process WSDL's portTypes define entry points \n into and out of that single process, and not separate pieces of logic implemented \n as methods in a service interface.\n\nThe behavior of a BPEL component is declared as a set of actions. \n In any one specific action, a business processes can send messages to a service \n (in this case the web service is called an invoked partner), receive messages \n from a service (in this case the service is called a client partner), reply \n to a message sent by a client partner, determine whether it should send or \n receive messages based on some logical rule, wait for a scheduled period of \n time, report an error, copy a message from one place to another, or do nothing \n at all.\n\nThe BPEL XML grammar reflects each these basic actions. A \n developer uses the element to send messages to an invoked partner, and uses \n and to receive and reply to a client partner. Elements such \n as and fork logic into parallel and event-based channels of execution. The element facilitates error reporting, while the , and elements pause or halt execution. Elements to structure activities include\n , and , and conditionals in BPEL are declared using XPath \n statements.\n\nOnce a developer has created the XML source file that defines \n the services that will compose a business process, declares the message containers \n that the services will use, and declares the sequence of operations involved \n in the message exchange, he is ready to deploy the business process component. \n This is where the runtime aspects of BPEL implementations come into play.\n\nIn addition to acting as declarations of service relationships \n and message flow, BPEL descriptions are also executables file that can be \n fed into a BPEL4WS engine. When this happens, the engine interprets the file \n and sets up a series of messaging constructs for the application developer \n that connects the web services that are part of the business process. As a \n [*Process Manager*](ProcessManager.html) implementation, the BPEL4WS runtime is the governing entity that manages and \n correlates the flow of messages between services. The BPEL4WS engine accepts \n all of the necessary documents and dynamically generates and manages the messaging \n infrastructure.\n\nThe BPEL specification can be found here: [http://www-106.ibm.com/developerworks/webservices/library/ws-bpel/](http://www-106.ibm.com/developerworks/webservices/library/ws-bpel/)\n\n## Web Service Choreography Interface (WSCI)\n\nThe Web Service Choreography Interface (often pronounced \"whiskey\") \n addresses the same problem domain tackled by BPEL. The two were competing specifications\n initially backed by competing vendor alliances (with the exception of BEA, which appears\n to be hedging bets by contributing to both specifications). WSCI was backed\n by Sun, Intalio, SAP, and BEA, and has been submitted to the W3C. However, several original\n supporters of WSCI are now lending support to BPEL.\n\nWSCI is influenced by Business Process Modeling Language (BPML), \n which while not directly relevant to integration patterns does bear mentioning \n for the sake of WSCI's historical context. BPML represents business processes \n in an XML-based meta language used in process modeling. BPML's workflow aspects \n are largely part of WSCI, but BPML also includes a companion graphical notation \n and query language.\n\nLike BPEL, WSCI recognizes the fact that enterprise integration \n involves lengthy conversations among composite services rather than the single \n operational invocations assumed by basic web services protocols. WSCI provides \n a way to link service messages from multiple operations into these composite \n processes, ensuring along the way that messages are sent or received in the \n proper sequences, sent and received according to declarative business rules, \n sent in transactional fashion when needed, and portrayable and manageable \n as a single global process. Leveraging web service advantages over \n traditional proprietary MOM solutions, WSCI also accommodates the dynamic discovery\n of services, heterogeneous protocols, and decentralized coordination of workflow.\n\nLike BPEL, WSCI relies heavily upon WSDL's advertisement of \n service endpoints, portTypes, operations, and message types. WSCI actions \n directly map to operations exposed in the WSDL of the services within a choreography. Moreover, the WSCI syntax is embedded directly within a WSDL \n file; the declarations sit either in a WSDL document which imports the WSDL \n documents of the choreographed services, or within the WSDL file of a single \n service whose operations are being choreographed. WSCI elements are contained \n within the WSDL element.\n\nThe fundamental construct of WSCI is the action, in which \n web service messaging occurs. Actions are grouped within process elements \n so that they are declared to occur sequentially, in parallel, in loop, or \n conditionally. A set of processes is grouped with an interface declaration; \n this element is the interface to the process component, and it is \n directly embedded within the WSDL definitions of a web service. Many of the \n activity elements are similar to those of BPEL, and like their BPEL counterparts \n they include support for XPath expressions.\n\nThe WSCI specification can be found here: [http://wwws.sun.com/software/xml/developers/wsci/wsci-spec-10.pdf](http://wwws.sun.com/software/xml/developers/wsci/wsci-spec-10.pdf)\n\n## Java business process component standards\n\nThe Java Community Process (JCP) creates Java language APIs \n and bindings influenced by non-Java standards. In particular, standards developed \n by the Object Management Group (OMG) and the W3C have been shadowed by the \n JCP. Recently, the JCP has turned this approach toward web service standards \n developed by groups such as the WS-I, and two new much-ballyhooed JSR's are \n now underway to address Java bindings for business process components: Process \n Definition for Java (JSR-207) submitted by BEA Systems, and Java Business \n Integration (JSR-208) submitted by Sun Microsystems. While at first glance \n these two proposals may seem to overlap, they are actually fairly complimentary. \n JSR-207 specifies a way for developers to craft messaging \n or process components quickly and easily using metadata attached to Java code; JSR-208 specifies \n how those components will interact with each other, with containers, and with \n the rest of the J2EE and web services world. So JSR-207 is more or less a \n micro view and JSR-208 is a macro view of how the messaging between process \n components is to be standardized in Java.\n\n**Process Definition for Java (JSR-207)**\n\nProcess Definition for Java (JSR-207), submitted by BEA Systems, \n aims to define metadata, interfaces, and a runtime model for creating business \n processes in the Java/J2EE environment. This very important JSR intends to \n specify the standard means of crafting business process components using the \n Java language and Javadoc-like metadata annotations. Proposed as an addition \n to J2EE, the mechanism could also be used to build Java implementations of \n business process initiatives such as BPEL4WS, WSCI, and those produced by \n the W3C Choreography Working Group.\n\nThis technology builds upon Java Language Metadata technology \n (JSR-175) in order to supply a simple syntax for describing business \n processes. Metadata can be applied directly to Java source code in order to \n dynamically generate and bind process behaviors, including support for asynchronous \n messaging, parallel execution, message correlation, message routing, error \n handling, and other common flow activities. The metadata semantics, therefore, \n need to be rich enough to support the parameters needed for a component's \n container to dynamically set up the messaging infrastructure and handle \nissues described in [*Introduction to Message Construction*](MessageConstructionIntro.html) upon the component's deployment.\n\nIt is worth noting that this JSR is not needed to enable developers \n to build business process components in J2EE. It is possible to build such processes \n today -- but it is laborious work that requires developers to apply messaging \n patterns at a very low level, and results in workflows that are costly to \n maintain. This specification intends to simplify the creation of process components \n so that developers can apply their skills at a higher level, creating more\n powerful applications more rapidly that are less expensive to evolve and administer \n over time.\n\nMore details on Process definition for Java can be found here: \n [http://www.jcp.org/en/jsr/detail?id=207](http://www.jcp.org/en/jsr/detail?id=207)\n\n**Java Business Integration (JSR-208)**\n\nSun proposed Java Business Integration (JBI) in JSR-208 with \n the intention of defining service provider interfaces (SPIs) for creating \n a business integration environment for specifications such as WSCI, BPEL4WS \n and the work produced by the W3C Choreography Working Group. JBI proposes \n no new Java APIs or annotations, but does include a new deployment and packaging \n mechanism. Instead of adding APIs for developers, JBI focuses on integration \n infrastructure, and its SPIs will be visible primarily to product vendors \n who create messaging and process component models for performing integration \n work in a Java setting. The JBI expert group aims to follow the lead of the \n W3C Choreography Working Group and ensure that the work of that group will \n fit seamlessly into the J2EE platform.\n\nJBI has a fairly lofty goal: Map various systems and protocol \n standards -- that is, multiple syntaxes used to describe relationships between \n processes, including syntaxes that are proprietary and vendor-specific as \n well as those that become standard -- to one another and to J2EE. It provides \n a Java binding for message choreography regardless of the underlying message \n and process specifics. It also includes a new packaging mechanism that extends \n J2EE packaging (such as WAR, JAR, RAR and EAR) to support the deployment of \n a JBI component into a J2EE environment.\n\nJBI sees three principal roles required for supporting process \n components: Bindings, machines, and the environment. Bindings are about communication \n formats, and include message formats and network transports along with their \n mappings as well as forming an umbrella around workflow formats such as BPEL; \n machines are the service and process containers that host and manage business \n processes; the environment is the over-arching process management system that \n links heterogeneous machines and bindings to one another. JBI focuses on the\n environment as the core of the integration system, and specifies how machines \n and bindings interact with it. The JBI packaging and deployment mechanism \n is intended to provide a means of hooking processes up to the environment \n in a standard way, but the actual creation of those components is outside \n the scope of the specification.\n\nJBI views the Process Definition for Java (JSR-207) described above as \n a way of composing process components, and the runtime that will host those \n components fits into the category of a JBI machine. That machine should implement \n the [*Message Translator*](MessageTranslator.html), [*Service Activator*](MessagingAdapter.html), [*Envelope Wrapper*](EnvelopeWrapper.html)\nand other patterns necessary to expose their formats and \n protocol behaviors through JBI to ensure that it can integrate correctly with \n the integration environment.\n\nMore details on JBI can be found here: [http://www.jcp.org/en/jsr/detail?id=208](http://www.jcp.org/en/jsr/detail?id=208)\n\n## WS-*\n\nLess ambitious than the process integration specifications \n described above, a number of web services specifications are emerging to extend \n SOAP- and WSDL-based web services to include reliability, security, statefulness, \n and quality of service. Typically identifiable by the \"WS-\" prefix, \n these specifications build on the W3C technologies and each addresses a fairly \n specific problem.\n\nUnfortunately the web services standards landscape has become \n muddled with competing versions backed by competing vendor alliances, and \n perhaps as a result of this competition many of these standards are rarely \n seen implemented in the wild today. A standards shake-out seems to be looming.\n Nevertheless, these specifications are worth noting, as their idioms and tactics \n might prove useful to application developers who are applying web services \n technologies like SOAP and WSDL to messaging-based enterprise integration. \n These standards are also certain to find a home in the products of the vendors \n who propose them, including those of IBM, BEA, Microsoft, and Oracle.\n\nA few of the more notable specifications in this category \n include those dealing with transactability, reliability, routing, conversational state, and security.\n These are described below.\n\n**WS-Coordination and WS-Transaction**\n\nBeing stateless and unreliable, the most popular web service \n protocols and transports do not provide the quality of service required by \n transactional processes. This shortcoming blossoms into a critically important \n problem. In practice, it means that if a developer wishes to use a web service-based \n integration mechanism, that developer must grow his own transaction scheme within those integration mechanisms. A collection of service invocations that occur \n through asynchronous messaging must be capable of being batched atomically, \n so that the messages function as unit that can fail or rollback all at once, \n or as a unit whose failure can trigger some form of compensation. This is \n common in proprietary MOM systems. The Web Services Coordination and Web Services \n Transaction specifications tackle this problem for web services.\n\nWS-Coordination, drafted by BEA, Microsoft and IBM, specifies \n a way to create and propagate contextual information by all of the services \n participating in a flow, even asynchronously and over jagged time intervals. \n The specification describes an extensible framework for creating protocols \n that coordinate the actions of applications and services. These coordination \n protocols function by creating and registering XML-based contexts that are \n propagated with SOAP messages and used by coordinators located at all endpoints in an \n interaction.\n\nSuch contexts can be used to support a number of application \n behaviors, such as those that need to reach consistent agreement on the outcome \n of distributed transactions. Accordingly, the WS-Transaction specification \n uses WS-Coordination to implement distributed transactability across service \n invocations.\n\nWS-Transaction defines a way to monitor and message the success \n or failure of each action in a flow. Practically, this means that when a SOAP \n message arrives at an endpoint, the SOAP Header containing the coordination \n context must be filtered and pulled from the message (implementations may \n employ the [*Content Filter*](ContentFilter.html) and [*Splitter*](Sequencer.html)\n patterns for this task) and then sent to the transaction coordinator for interpretation.\n\nThe SOAP envelope excerpt below provides a simple example of a coordination context used for making SOAP operations transactable through WS-Transaction. This context information in the SOAP header is used by coordinators to register applications to receive transaction events such as enlistments, the prepare stage of a two-phase commit process, rollbacks, and commits.\n\n```\n\n\n \n\n \n\n http://foo.com/baz/bar\n 2004-12-31T18:00:00-08:00\n\n \n http://schemas.xmlsoap.org/ws/2002/08/wstx\n \n\n \n \n http://foo.com/coordinationservice/registration\n \n \n\n \n RepeatableRead\n \n\n \n\n \n\n \n\n \n```\n\nThe WS-Transaction specification defines two coordination \n types for developers to use in their applications: Atomic Transaction (AT) \n and Business Activity (BA).\n\nAtomic Transactions map fairly well to traditional distributed \n transaction technology, such as XA. They are useful for relatively short-lived \n operations in which locking of resources -- such as threads and portions of \n data sources -- are acceptable, and in which absolute rollbacks make sense. \n WS-Transaction provides a means of linking proprietary XA implementations, \n including support for two-phase commit, to web services.\n\nA Business Activity is typically a long-lived process that \n may consist of a number of atomic transactions. A global rollback is usually \n not desirable in the event of a single failure condition in a business activity; \n instead, a failure of one atomic transaction within a business activity should \n often trigger another set of service invocations and message exchanges. These \n exchanges might include compensation techniques to recover from the error \n in a way that preserves part of the history of the business activity. An example \n is a business activity that includes the booking of an airline flight, rental \n of a car, reservation of a hotel room, and reservation of theater tickets \n that a user makes over a two- or three-day period. Each activity in this flow \n may be an atomic transaction, and if one of the events should fail, the over-arching \n business activity of making the travel arrangements should adjust via compensation \n rather than through coordinated rollback of all atomic transactions.\n\nThe WS-Coordination and WS-Transaction specifications are \n promising attempts to provide reliable, rich behaviors in the event of failures \n during service messaging. As they begin to wind their way into products, they \n should take the burden off of developers to craft their own transactability \n and contextual services around message-based service applications.\n\nInformation on WS-Transaction can be found here: [http://dev2dev.bea.com/technologies/webservices/ws-transaction.jsp](http://dev2dev.bea.com/technologies/webservices/ws-transaction.jsp)\n\n**WS-Reliability and WS-ReliableMessaging**\n\nIt is common for message-based interactions between web services \n to require reliable, guaranteeable messaging even in the event of network, \n application, or component failures, and to include persistence mechanisms \n and resend semantics. The most popular web service technologies do not provide \n such reliability, however; SOAP without enhancements, for example, isn't comprehensively \n useful in many enterprise messaging scenarios because its most popular bindings \n don't reliably guarantee message delivery.\n\nTo remedy this, application developers are typically forced \n to implement reliability themselves using the extensibility of web service \n mechanisms such as SOAP Headers. To eliminate the need for application developers \n to take on this task, new standards are emerging to tackle web service reliability. \n Two such specifications are WS-Reliability and WS-ReliableMessaging. As is \n common in the nascent web services standards space, these two standards are competing, \n backed by different groups of vendors aimed at the same problem domain.\n\nWeb Services Reliability (WS-Reliability) provides SOAP-based \n web services with the ability to exchange messages asynchronously with guaranteed \n delivery, without duplicates, and with message ordering. It is a SOAP standard \n for managing message aggregation and sequencing, and provides a standard tactic \n for implementing the[*Guaranteed Delivery*](GuaranteedMessaging.html)\nand [*Resequencer*](Resequencer.html)\n patterns, among others. WS-Reliability leverages the SOAP Header mechanism \n to add the header elements MessageHeader, ReliableMessage, MessageOrder, and \n RMResponse to SOAP messages. These elements denote message identifiers such \n as group ids and sequence numbers, timestamps, time to live values, message \n type values, sender and receiver information, and acknowledgment callback \n information. WS-Reliability is produced by a number of vendors, including \n Sun, Oracle, and Sonic, and it has been submitted to OASIS. It is heavily influenced by the functionality of the \n ebXML Message Service (ebMS) described above.\n\nTo conform to WS-Reliability, the receiver of a SOAP message \n must respond with either a fault or an acknowledgement using the RMResponse \n element in a SOAP header. If such an acknowledgement is not received, then \n the sender will resend the same message using the same message identifier. \n The sender is required to persist the message until its time to live value \n has expired, or until acknowledgment or failure has occurred; the receiver \n is also required to persist the message until it can be reliably transmitted \n to the application layer.\n\nTo ensure that once-and-only-once message behaviors are enforced, \n WS-Reliability provides a sequence number mechanism which can be enabled based \n on application requirements. Separate messages that are grouped together may \n share the same group identifier, but will advertise their own sequence numbers \n within the SOAP header, allowing receivers to resequence the messages before \n delivering them to the application.\n\nThe WS-Reliability specification can be found here: [http://www.oasis-open.org/committees/documents.php?wg_abbrev=wsrm](http://www.oasis-open.org/committees/documents.php?wg_abbrev=wsrm)\n\nThe Web Services Reliable Messaging (WS-ReliableMessaging) \n specification describes a similar protocol that allows messages to be delivered \n reliably between distributed applications in the presence of failures. The \n protocol is described in an independent manner, allowing it to be implemented \n using a variety of network transport technologies and bindings. The specification does include one specific binding for SOAP. WS-ReliableMessaging \n is backed by BEA, IBM, and Microsoft and has not yet been released to a standards \n body.\n\nWS-ReliableMessaging operates on the same principles as WS-Reliability. \n It makes similar use of acknowledgements, callbacks, identifiers, implies \n similar usage of persistent message caches, and offers detailed fault messages. \n It ensures that messages are delivered according to any of four basic delivery \n assurances: At most once, at least once, exactly once, and in order. An example of a message sequence delivered through WS-ReliableMessaging is illustrated below.\n\n*Figure 3: WS-ReliableMessaging provides guaranteed sequential delivery through a series of acknowledgment callbacks that rely on unique ID's inserted into the SOAP header element.*\n\nA key difference between the two competing reliability specifications \n is that WS-ReliableMessaging includes usage of other critical web services \n specifications, such as WS-Security and WS-Addressing. In practice, this means \n that WS-ReliableMessaging uses specific idioms from other standards for supplying\n this information, whereas WS-Reliability supports the features but does not \n yet insist on the idiomatic forms specified in the other new standards.\n\nMore information on WS-ReliableMessaging can be found here: \n [http://dev2dev.bea.com/technologies/webservices/ws-reliablemessaging.jsp](http://dev2dev.bea.com/technologies/webservices/ws-reliablemessaging.jsp)\n\n**WS-Conversation**\n\nWeb Services Conversation (WS-Conversation) specifies a protocol \n for managing stateful asynchronous message exchange between a sender and receiver, \n usually across two SOAP endpoints. In contrast to relying on an encapsulating \n business process component for managing stateful message exchange among multiple \n partners, this proposal provides a simple means of accomplishing the same \n thing between a single client and single service (where the client may also \n be a service).\n\nThe protocol leverages the SOAP Header mechanism to send identifiers, \n or token ids, along with SOAP messages. When a stateful conversation is begun, \n the element is used to supply a conversation identifier and callback \n URI. Subsequent messages that are part of the same conversation use the \n and the for further requests and replies, and these elements \n will include the same identifier established when the conversation was started.\n\nThe SOAP Header mechanism can be used to implement these patterns \n without use of these standard mechanisms, though there is benefit in establishing\n a common mechanism for clients and services across platforms. It is a formalization \n of the [*Aggregator*](Aggregator.html) and [*Composed Message Processor*](DistributionAggregate.html)\npatterns using [*Correlation Identifier*](CorrelationIdentifier.html)\nfor the purposes of mapping multiple messages to a single \n session.\n\nThe approach of externalizing state management through a process \n component or choreography seems more promising for larger-scale integration \n projects where it is useful for simplicity's sake to consider the services \n and components as black boxes, but WS-Conversation is an example of what can \n be done when greater control over the services and clients is possible.\n\n**WS-Security**\n\nWhile standards such as WS-ReliableMessaging, WS-Coordination, and WS-Addressing\n provide various mechanisms that identify the sender of a message, none of those\n specifications guarantee that the sender actually owns the identity it claims. The\n elements of the WS-I Basic Profile -- XML Schema, SOAP, WSDL and UDDI -- make no\n mention of how identity is verified and guaranteed, or how message integrity\n is to be maintained. Early adopters of web services either kept their services\n open and available to all, or developed proprietary security protocols in order\n to fill this gap. The proprietary and private approaches created an undesirable\n coupling between message senders and receivers, something particuarly galling in\n otherwise asynchronous and loosely coupled federations of message nodes.\n\nWS-Security, also referred to as the Web Services Security Language, is the proposed\n standard means of addressing these issues. Of all the WS-* specifications, it enjoys\n perhaps the broadest level of consensus among the major web service platform vendors.\n Created by a consortium consisting of Microsoft, IBM, and Verisign, it is now part of\n OASIS; it has received votes of confidence from the likes of Sun, BEA, Intel, SAP,\n IONA, RSA Security, and others.\n\nWS-Security does not propose new security technologies, but rather it bridges SOAP and\n existing security technologies. It provides a generic, extensible means of associating\n security tokens with SOAP messages and propagating those tokens to SOAP endpoints. It\n also specifies the standard approach to encoding binary security tokens, such as digital\n certificates and Kerberos tickets, in SOAP messages. It does not describe specific fixed\n protocols, but rather establishes a general set of mechanisms for implementing any number\n of security protocols and incorporating any number of trust domains, signature formats,\n and encryption technologies. In as much as it can include use of digital certificates,\n digests, and implementations of technologies such as PKI, Kerberos, SSL and the like,\n WS-Security represents a way to apply familiar Internet security standbys to SOAP endpoints.\n\nIn addition to verification of sender identity, WS-Security may also protect message integrity --\n that is, protect it from intermediary prying eyes during network transmission -- by leveraging the\n W3C XML Signature and XML Encryption standards. In cases in which intermediary actors and third\n party services are not involved, however, the use of HTTPS is a common alternative means of protecting\n SOAP messages in transit.\n\nThe security model specifies that a SOAP message sender makes a series of claims such as\n the sender's identity, group, privilege, and the like. These claims are collected in the form\n of a signed security token. The receiver of the message is charged with endorsing the claims.\n The tokens and signatures are carried in a SOAP Header block, specifically under the\n header element in the WS-Security namespace. If an error occurs when the\n receiver endorses claims, that error will be one of two types: \"unsupported\" errors, which\n indicate that the endpoint does not support a particular token or encryption algorithm; and\n \"failure\" errors, which indicate most other errors, including all those related to invalid\n tokens and signatures. The specification does not mandate that failure errors always be reported,\n as they may be the result of an attack. When errors are reported, they take the form of SOAP Faults\n with fault codes defined in the specification.\n\nThe WS-Security specification can be found on the web sites of each of its co-authoring vendors,\n including the following location at IBM: [http://www-106.ibm.com/developerworks/library/ws-secure/](http://www-106.ibm.com/developerworks/library/ws-secure/)\n\n**WS-Addressing, WS-Policy other WS- Specifications**\n\nThere are a number of other proposed \"WS-\" specifications \n with varying degrees of support and acceptance. Some are quite narrow in scope, \n such as WS-Addressing which defines XML elements to identify web service endpoints \n in messages. This specification aims to support messaging through intermediaries \n such as endpoint managers, proxies, firewalls, and gateways in a transport-neutral \n manner. Essentially, WS-Addressing is a standard way to denote who a message \n is from (\"From:\") and who it is to (\"To:\"). It provides \n a means to plug SOAP-based web services into [*Recipient List*](RecipientList.html)\n solutions. As it provides a means of specifying where to direct a reply, it appears\n destined to be the standard web services approach to resolving the issues raised in\n [*Return Address*](ReturnAddress.html).\n\nA means of supplying metadata about services, the Web Services \n Policy Framework (WS-Policy) offers a syntax for describing the policies of \n a web service. Such policies include service requirements, preferences, capabilities, \n and quality of service metadata. The accompanying Web Services Policy Assertions \n Language (WS-PolicyAssertions) specifies a means of asserting that a message \n or service endpoint supports a particular policy. It involves investigating\n the WS-Policy declarations in search of a specific required policy. Finally, \n the Web Services Policy Attachment (WS-PolicyAttachment) describes how these \n policy standards fit into existing web service technologies. It specifies \n how to associate policy expressions with WSDL type definitions and UDDI entities, \n and it defines how to associate implementation-specific policies with all \n or part of a WSDL portType.\n\nNew WS-* specifications are surfacing quickly as vendors race \n to formalize the implementation practices that application developers are \n following, staking a claim to valuable web service intellectual property in \n the process. Wise application developers will keep an eye on interesting standards \n and cull idioms from them when useful, but will also bear in mind that the \n pattern and not the implementation idiom is most important to crafting a message-based \n application. The emerging WS- standards are not yet required for implementing \n interoperable enterprise messaging systems, and where they become hindrances \n or distractions, they should boldly be ignored until mature.\n\n## Summary\n\nAt their best, standards extend the reach of design patterns \n by ensuring that different implementations of the same pattern are interoperable. \n Many efforts are underway to extend messaging patterns through web service \n standards; many of these standards focus on the composition and behavior of \n workflow components called business process components. Standards such as \n BPEL, WSCI, and the WS-* specifications tackle many of the problems described \n in this book, and implement several of the patterns in this pattern language.\n\nStill, the emerging standards stories are occasionally conflicting \n and can be confusing. They're certainly not all ready for prime time. When\n applying a pattern, an application developer should avoid getting bogged down \n by standards and stay focused instead on the particular use cases at hand. \n Take a look at how certain standards are approaching a problem, and adopt \n those tactical, idiomatic implementations of a pattern if it makes sense, \n or if it's helpful during implementation -- regardless of whether the approach \n is standardized across vendor products. Developers can also provide feedback \n to standards organizations to challenge, criticize, and otherwise ensure that \n standards become practically useful and not academic or vendor exercises. \n As standards mature, architects are wise to consider how their use might extend \n enterprise integration solutions to broader, less risky, less costly, and \n more powerful levels of sophistication.\n\n## Integration Pattern Language\n\n[Message Construct.](MessageConstructionIntro.html)\n\n[Message](Message.html)\n\n[Command Message](CommandMessage.html)\n\n[Document Message](DocumentMessage.html)\n\n[Event Message](EventMessage.html)\n\n[Request-Reply](RequestReply.html)\n\n[Return Address](ReturnAddress.html)\n\n[Correlation Identifier](CorrelationIdentifier.html)\n\n[Message Sequence](MessageSequence.html)\n\n[Message Expiration](MessageExpiration.html)\n\n[Format Indicator](FormatIndicator.html)\n\n[Message Routing](MessageRoutingIntro.html)\n\n[Pipes-and-Filters](PipesAndFilters.html)\n\n[Message Router](MessageRouter.html)\n\n[Content-based Router](ContentBasedRouter.html)\n\n[Message Filter](Filter.html)\n\n[Dynamic Router](DynamicRouter.html)\n\n[Recipient List](RecipientList.html)\n\n[Splitter](Sequencer.html)\n\n[Aggregator](Aggregator.html)\n\n[Resequencer](Resequencer.html)\n\n[Composed Msg. Processor](DistributionAggregate.html)\n\n[Scatter-Gather](BroadcastAggregate.html)\n\n[Routing Slip](RoutingTable.html)\n\n[Process Manager](ProcessManager.html)\n\n[Message Broker](MessageBroker.html)\n\n[Message\nTransformation](MessageTransformationIntro.html)\n\n[Message Translator](MessageTranslator.html)\n\n[Envelope Wrapper](EnvelopeWrapper.html)\n\n[Content Enricher](DataEnricher.html)\n\n[Content Filter](ContentFilter.html)\n\n[Claim Check](StoreInLibrary.html)\n\n[Normalizer](Normalizer.html)\n\n[Canonical Data Model](CanonicalDataModel.html)\n\n[Messaging Endpoints](MessagingEndpointsIntro.html)\n\n[Message Endpoint](MessageEndpoint.html)\n\n[Messaging Gateway](MessagingGateway.html)\n\n[Messaging Mapper](MessagingMapper.html)\n\n[Transactional Client](TransactionalClient.html)\n\n[Polling Consumer](PollingConsumer.html)\n\n[Event-driven Consumer](EventDrivenConsumer.html)\n\n[Competing Consumers](CompetingConsumers.html)\n\n[Message Dispatcher](MessageDispatcher.html)\n\n[Selective Consumer](MessageSelector.html)\n\n[Durable Subscriber](DurableSubscription.html)\n\n[Idempotent Receiver](IdempotentReceiver.html)\n\n[Service Activator](MessagingAdapter.html)\n\n[Messaging Channels](MessagingChannelsIntro.html)\n\n[Message Channel](MessageChannel.html)\n\n[Point-to-Point Channel](PointToPointChannel.html)\n\n[Publish-Subscr. Channel](PublishSubscribeChannel.html)\n\n[Datatype Channel](DatatypeChannel.html)\n\n[Invalid Message Channel](InvalidMessageChannel.html)\n\n[Dead Letter Channel](DeadLetterChannel.html)\n\n[Guaranteed Delivery](GuaranteedMessaging.html)\n\n[Channel Adapter](ChannelAdapter.html)\n\n[Messaging Bridge](MessagingBridge.html)\n\n[Message Bus](MessageBus.html)\n\n[Systems Mgmt.](SystemManagementIntro.html)\n\n[Control Bus](ControlBus.html)\n\n[Detour](Detour.html)\n\n[Wire Tap](WireTap.html)\n\n[Message History](MessageHistory.html)\n\n[Message Store](MessageStore.html)\n\n[Smart Proxy](SmartProxy.html)\n\n[Test Message](TestMessage.html)\n\n[Channel Purger](ChannelPurger.html)", "znaku_textu": 62972, "slov": 8754, "odkazu": 121, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/patterns/messaging/Future.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 14:51:09", "sha256": "d17b36f6690f17a59d9b99f45c502726d2aa1fa206d1dbba93ea63ff02aee757", "hloubka": 3, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://www.w3c.org/", "http://www.oasis-open.org/home/index.php", "http://www.ws-i.org/", "http://www.jcp.org/", "http://www.ebxml.org/", "http://www.ebxml.org/specs/ebMS2.pdf", "http://www-106.ibm.com/developerworks/webservices/library/ws-bpel/", "http://wwws.sun.com/software/xml/developers/wsci/wsci-spec-10.pdf", "http://www.jcp.org/en/jsr/detail?id=207", "http://www.jcp.org/en/jsr/detail?id=208", "http://dev2dev.bea.com/technologies/webservices/ws-transaction.jsp", "http://www.oasis-open.org/committees/documents.php?wg_abbrev=wsrm", "http://dev2dev.bea.com/technologies/webservices/ws-reliablemessaging.jsp", "http://www-106.ibm.com/developerworks/library/ws-secure/", "https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "https://www.architectelevator.com/book", "https://www.cloudstrategybook.com/", "https://www.platformstrategybook.info/"]} {"url": "https://www.enterpriseintegrationpatterns.com/GuaranteedMessaging.html", "titulek": "Guaranteed Delivery - Enterprise Integration Patterns", "h1": "", "popis": "How can the sender make sure that a message will be delivered, even if the messaging system fails?", "klicova_slova": "Guaranteed Delivery,integration, messaging, events, patterns, event-driven, coupling, eai, middleware, application integration, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns", "og:title": "Guaranteed Delivery - Enterprise Integration Patterns", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/GuaranteedMessaging.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/GuaranteedMessagingSolution.gif"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Integration Pattern Language"}], "markdown": "Messaging Patterns\n\n[Messaging Patterns](index.html)\n\n- [Integration Styles](IntegrationStylesIntro.html)\n- [Messaging Systems](MessagingComponentsIntro.html)\n- [Messaging Channels](MessagingChannelsIntro.html)\n- [Message Construction](MessageConstructionIntro.html)\n- [Interlude: Simple Messaging](SimpleMessagingIntro.html)\n- [Message Routing](MessageRoutingIntro.html)\n- [Message Transformation](MessageTransformationIntro.html)\n- [Interlude: Composed Messaging](ComposedMessagingExample.html)\n- [Messaging Endpoints](MessagingEndpointsIntro.html)\n- [System Management](SystemManagementIntro.html)\n- Interlude: Systems Management Example\n- Integration Patterns in Practice\n- Concluding Remarks\n- Appendices\n\n| | Guaranteed Delivery[Messaging Patterns](index.html) » [Messaging Channels](MessagingChannelsIntro.html) | [Contents](toc.html)[⇐ Prev](DeadLetterChannel.html)[Next ⇒](ChannelAdapter.html) |\n| --- | --- | --- |\n\nAn enterprise is using [*Messaging*](Messaging.html) to integrate applications.\n\nHow can the sender make sure that a message will be delivered, even if the messaging system fails?\n\nUse *Guaranteed Delivery* to make messages persistent so that they are not lost even if the messaging system crashes.\n\nWith *Guaranteed Delivery*, the messaging system uses a built-in data store to persist messages. Each computer the messaging system is installed on has its own data store so that the messages can be stored locally. When the sender sends a message, the send operation does not complete successfully until the message is safely stored in the sender’s data store. Subsequently, the message is not deleted from one data store until it is successfully forwarded to and stored in the next data store. In this way, once the sender successfully sends the message, it is always stored on disk on at least one computer until is successfully delivered to and acknowledged by the receiver.\n\n...\nRead the entire pattern in the book [Enterprise Integration Patterns](/books1.html)\n\n**Related patterns:**\n\n[*Durable Subscriber*](DurableSubscription.html), [*Event Message*](EventMessage.html), [*Message Expiration*](MessageExpiration.html), [*Messaging*](Messaging.html), [*Point-to-Point Channel*](PointToPointChannel.html), [*Publish-Subscribe Channel*](PublishSubscribeChannel.html), [*Transactional Client*](TransactionalClient.html)\n\n---\n\n## Integration Pattern Language\n\n[Message Construct.](MessageConstructionIntro.html)\n\n[Message](Message.html)\n\n[Command Message](CommandMessage.html)\n\n[Document Message](DocumentMessage.html)\n\n[Event Message](EventMessage.html)\n\n[Request-Reply](RequestReply.html)\n\n[Return Address](ReturnAddress.html)\n\n[Correlation Identifier](CorrelationIdentifier.html)\n\n[Message Sequence](MessageSequence.html)\n\n[Message Expiration](MessageExpiration.html)\n\n[Format Indicator](FormatIndicator.html)\n\n[Message Routing](MessageRoutingIntro.html)\n\n[Pipes-and-Filters](PipesAndFilters.html)\n\n[Message Router](MessageRouter.html)\n\n[Content-based Router](ContentBasedRouter.html)\n\n[Message Filter](Filter.html)\n\n[Dynamic Router](DynamicRouter.html)\n\n[Recipient List](RecipientList.html)\n\n[Splitter](Sequencer.html)\n\n[Aggregator](Aggregator.html)\n\n[Resequencer](Resequencer.html)\n\n[Composed Msg. Processor](DistributionAggregate.html)\n\n[Scatter-Gather](BroadcastAggregate.html)\n\n[Routing Slip](RoutingTable.html)\n\n[Process Manager](ProcessManager.html)\n\n[Message Broker](MessageBroker.html)\n\n[Message\nTransformation](MessageTransformationIntro.html)\n\n[Message Translator](MessageTranslator.html)\n\n[Envelope Wrapper](EnvelopeWrapper.html)\n\n[Content Enricher](DataEnricher.html)\n\n[Content Filter](ContentFilter.html)\n\n[Claim Check](StoreInLibrary.html)\n\n[Normalizer](Normalizer.html)\n\n[Canonical Data Model](CanonicalDataModel.html)\n\n[Messaging Endpoints](MessagingEndpointsIntro.html)\n\n[Message Endpoint](MessageEndpoint.html)\n\n[Messaging Gateway](MessagingGateway.html)\n\n[Messaging Mapper](MessagingMapper.html)\n\n[Transactional Client](TransactionalClient.html)\n\n[Polling Consumer](PollingConsumer.html)\n\n[Event-driven Consumer](EventDrivenConsumer.html)\n\n[Competing Consumers](CompetingConsumers.html)\n\n[Message Dispatcher](MessageDispatcher.html)\n\n[Selective Consumer](MessageSelector.html)\n\n[Durable Subscriber](DurableSubscription.html)\n\n[Idempotent Receiver](IdempotentReceiver.html)\n\n[Service Activator](MessagingAdapter.html)\n\n[Messaging Channels](MessagingChannelsIntro.html)\n\n[Message Channel](MessageChannel.html)\n\n[Point-to-Point Channel](PointToPointChannel.html)\n\n[Publish-Subscr. Channel](PublishSubscribeChannel.html)\n\n[Datatype Channel](DatatypeChannel.html)\n\n[Invalid Message Channel](InvalidMessageChannel.html)\n\n[Dead Letter Channel](DeadLetterChannel.html)\n\n[Guaranteed Delivery](GuaranteedMessaging.html)\n\n[Channel Adapter](ChannelAdapter.html)\n\n[Messaging Bridge](MessagingBridge.html)\n\n[Message Bus](MessageBus.html)\n\n[Systems Mgmt.](SystemManagementIntro.html)\n\n[Control Bus](ControlBus.html)\n\n[Detour](Detour.html)\n\n[Wire Tap](WireTap.html)\n\n[Message History](MessageHistory.html)\n\n[Message Store](MessageStore.html)\n\n[Smart Proxy](SmartProxy.html)\n\n[Test Message](TestMessage.html)\n\n[Channel Purger](ChannelPurger.html)\n\n- » [Read the latest in My Blog](/ramblings)\n- » [Get more insights from My Articles](/articles.html)\n- » [See me live in my Upcoming Talks](/talks)\n\nYou can reuse the following elements under the [Creative Commons Attribution](http://creativecommons.org/licenses/by/4.0/) license: pattern icon, pattern name, problem and solution statements (in bold), and the sketch. Other portions are protected by copyright.\n\n[Enterprise Integration Patterns](https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20)\nThe de-facto language for designing asynchronous, distributed systems. Over 100,000 copies sold.\n\n[The Software Architect Elevator](https://www.architectelevator.com/book)\n\n Rethink the role of architects as a connecting element across organizational layers. Acquire the technical, communication, and organizational skills to succeed in this new role.\n\n[Cloud Strategy](https://www.cloudstrategybook.com)\n\n Make your cloud migration a success by translating high-level goals into conscious decisions with well-understood trade-offs.\n\n[Platform Strategy](https://www.platformstrategybook.info)\n\n Platforms can boost innovation through harmonization, but they aren't easy to build. Learn from over a decade of designing and rolling out IT platforms.", "znaku_textu": 6304, "slov": 538, "odkazu": 108, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/GuaranteedMessaging.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 06:52:52", "sha256": "4efebed2bd57249fea064f02cf12f1ca8ecd5294370adf6e1ca73b451ad3a9b0", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://creativecommons.org/licenses/by/4.0/", "https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "https://www.architectelevator.com/book", "https://www.cloudstrategybook.com/", "https://www.platformstrategybook.info/"]} {"url": "https://www.enterpriseintegrationpatterns.com/IdempotentReceiver.html", "titulek": "Idempotent Receiver - Enterprise Integration Patterns", "h1": "", "popis": "How can a message receiver deal with duplicate messages?", "klicova_slova": "Idempotent Receiver,integration, messaging, events, patterns, event-driven, coupling, eai, middleware, application integration, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns", "og:title": "Idempotent Receiver - Enterprise Integration Patterns", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/IdempotentReceiver.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/eip1_patterns_wide.png"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Integration Pattern Language"}], "markdown": "Messaging Patterns\n\n[Messaging Patterns](index.html)\n\n- [Integration Styles](IntegrationStylesIntro.html)\n- [Messaging Systems](MessagingComponentsIntro.html)\n- [Messaging Channels](MessagingChannelsIntro.html)\n- [Message Construction](MessageConstructionIntro.html)\n- [Interlude: Simple Messaging](SimpleMessagingIntro.html)\n- [Message Routing](MessageRoutingIntro.html)\n- [Message Transformation](MessageTransformationIntro.html)\n- [Interlude: Composed Messaging](ComposedMessagingExample.html)\n- [Messaging Endpoints](MessagingEndpointsIntro.html)\n- [System Management](SystemManagementIntro.html)\n- Interlude: Systems Management Example\n- Integration Patterns in Practice\n- Concluding Remarks\n- Appendices\n\n| | Idempotent Receiver[Messaging Patterns](index.html) » [Messaging Endpoints](MessagingEndpointsIntro.html) | [Contents](toc.html)[⇐ Prev](DurableSubscription.html)[Next ⇒](MessagingAdapter.html) |\n| --- | --- | --- |\n\nEven when a sender application only sends a message once, the receiver application may receive the message more than once.\n\nHow can a message receiver deal with duplicate messages?\n\nDesign a receiver to be an *Idempotent Receiver*--one that can safely receive the same message multiple times.\n\nThe term *idempotent* is used in mathematics to describe a function that produces the same result if it is applied to itself, i.e. f(x) = f(f(x)). In [*Messaging*](Messaging.html) this concepts translates into a message that has the same effect whether it is received once or multiple times. This means that a message can safely be resent without causing any problems even if the receiver receives duplicates of the same message.\n\nIdempotency can be achieved through two primary means:\n\n1. Explicit \"de-duping\", i.e. the removal of duplicate messages.\n2. Defining the message semantics to support idempotency.\n\n...\nRead the entire pattern in the book [Enterprise Integration Patterns](/books1.html)\n\n**Related patterns:**\n\n[*Command Message*](CommandMessage.html), [*Guaranteed Delivery*](GuaranteedMessaging.html), [*Messaging*](Messaging.html), [*Resequencer*](Resequencer.html)\n\n---\n\n## Integration Pattern Language\n\n[Message Construct.](MessageConstructionIntro.html)\n\n[Message](Message.html)\n\n[Command Message](CommandMessage.html)\n\n[Document Message](DocumentMessage.html)\n\n[Event Message](EventMessage.html)\n\n[Request-Reply](RequestReply.html)\n\n[Return Address](ReturnAddress.html)\n\n[Correlation Identifier](CorrelationIdentifier.html)\n\n[Message Sequence](MessageSequence.html)\n\n[Message Expiration](MessageExpiration.html)\n\n[Format Indicator](FormatIndicator.html)\n\n[Message Routing](MessageRoutingIntro.html)\n\n[Pipes-and-Filters](PipesAndFilters.html)\n\n[Message Router](MessageRouter.html)\n\n[Content-based Router](ContentBasedRouter.html)\n\n[Message Filter](Filter.html)\n\n[Dynamic Router](DynamicRouter.html)\n\n[Recipient List](RecipientList.html)\n\n[Splitter](Sequencer.html)\n\n[Aggregator](Aggregator.html)\n\n[Resequencer](Resequencer.html)\n\n[Composed Msg. Processor](DistributionAggregate.html)\n\n[Scatter-Gather](BroadcastAggregate.html)\n\n[Routing Slip](RoutingTable.html)\n\n[Process Manager](ProcessManager.html)\n\n[Message Broker](MessageBroker.html)\n\n[Message\nTransformation](MessageTransformationIntro.html)\n\n[Message Translator](MessageTranslator.html)\n\n[Envelope Wrapper](EnvelopeWrapper.html)\n\n[Content Enricher](DataEnricher.html)\n\n[Content Filter](ContentFilter.html)\n\n[Claim Check](StoreInLibrary.html)\n\n[Normalizer](Normalizer.html)\n\n[Canonical Data Model](CanonicalDataModel.html)\n\n[Messaging Endpoints](MessagingEndpointsIntro.html)\n\n[Message Endpoint](MessageEndpoint.html)\n\n[Messaging Gateway](MessagingGateway.html)\n\n[Messaging Mapper](MessagingMapper.html)\n\n[Transactional Client](TransactionalClient.html)\n\n[Polling Consumer](PollingConsumer.html)\n\n[Event-driven Consumer](EventDrivenConsumer.html)\n\n[Competing Consumers](CompetingConsumers.html)\n\n[Message Dispatcher](MessageDispatcher.html)\n\n[Selective Consumer](MessageSelector.html)\n\n[Durable Subscriber](DurableSubscription.html)\n\n[Idempotent Receiver](IdempotentReceiver.html)\n\n[Service Activator](MessagingAdapter.html)\n\n[Messaging Channels](MessagingChannelsIntro.html)\n\n[Message Channel](MessageChannel.html)\n\n[Point-to-Point Channel](PointToPointChannel.html)\n\n[Publish-Subscr. Channel](PublishSubscribeChannel.html)\n\n[Datatype Channel](DatatypeChannel.html)\n\n[Invalid Message Channel](InvalidMessageChannel.html)\n\n[Dead Letter Channel](DeadLetterChannel.html)\n\n[Guaranteed Delivery](GuaranteedMessaging.html)\n\n[Channel Adapter](ChannelAdapter.html)\n\n[Messaging Bridge](MessagingBridge.html)\n\n[Message Bus](MessageBus.html)\n\n[Systems Mgmt.](SystemManagementIntro.html)\n\n[Control Bus](ControlBus.html)\n\n[Detour](Detour.html)\n\n[Wire Tap](WireTap.html)\n\n[Message History](MessageHistory.html)\n\n[Message Store](MessageStore.html)\n\n[Smart Proxy](SmartProxy.html)\n\n[Test Message](TestMessage.html)\n\n[Channel Purger](ChannelPurger.html)\n\n- » [Read the latest in My Blog](/ramblings)\n- » [Get more insights from My Articles](/articles.html)\n- » [See me live in my Upcoming Talks](/talks)\n\nYou can reuse the following elements under the [Creative Commons Attribution](http://creativecommons.org/licenses/by/4.0/) license: pattern icon, pattern name, problem and solution statements (in bold), and the sketch. Other portions are protected by copyright.\n\n[Enterprise Integration Patterns](https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20)\nThe de-facto language for designing asynchronous, distributed systems. Over 100,000 copies sold.\n\n[The Software Architect Elevator](https://www.architectelevator.com/book)\n\n Rethink the role of architects as a connecting element across organizational layers. Acquire the technical, communication, and organizational skills to succeed in this new role.\n\n[Cloud Strategy](https://www.cloudstrategybook.com)\n\n Make your cloud migration a success by translating high-level goals into conscious decisions with well-understood trade-offs.\n\n[Platform Strategy](https://www.platformstrategybook.info)\n\n Platforms can boost innovation through harmonization, but they aren't easy to build. Learn from over a decade of designing and rolling out IT platforms.", "znaku_textu": 6057, "slov": 505, "odkazu": 108, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/IdempotentReceiver.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 06:04:10", "sha256": "e9c278723f6c5bdcab0fdd9c410e8a17bc4eda0b2f63aefb8fe4afb22d76a86d", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://creativecommons.org/licenses/by/4.0/", "https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "https://www.architectelevator.com/book", "https://www.cloudstrategybook.com/", "https://www.platformstrategybook.info/"]} {"url": "https://www.enterpriseintegrationpatterns.com/IntegrationStylesIntro.html", "titulek": "Introduction to Integration Styles - Enterprise Integration Patterns", "h1": "", "popis": "Enterprise integration is the task of making separate applications work together to produce a unified set of functionality. Some applications may be custom developed in-house while others are bought from third-party vendors. The applications probably run on multiple computers, which may represent multiple platforms, and may be geographically dispersed. Some of the applications may be run outside of the enterprise by business partners or customers. Some applications may need to be integrated even though they were not designed for integration and cannot be changed. These issues and others like them are what make application integration difficult. This chapter will explore the options available for application integration.", "klicova_slova": "Introduction to Integration Styles,integration, messaging, events, patterns, event-driven, coupling, eai, middleware, application integration, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns", "og:title": "Introduction to Integration Styles - Enterprise Integration Patterns", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/IntegrationStylesIntro.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/eip1_patterns_wide.png"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Application Integration Criteria"}, {"uroven": 2, "text": "Application Integration Options"}, {"uroven": 2, "text": "Integration Pattern Language"}], "markdown": "| | Introduction to Integration Styles[Messaging Patterns](index.html) » [Integration Styles](IntegrationStylesIntro.html) | [Contents](toc.html)[⇐ Prev](Chapter1.html)[Next ⇒](FileTransferIntegration.html) |\n| --- | --- | --- |\n\nEnterprise integration is the task of making separate applications work together to produce a unified set of functionality. Some applications may be custom developed in-house while others are bought from third-party vendors. The applications probably run on multiple computers, which may represent multiple platforms, and may be geographically dispersed. Some of the applications may be run outside of the enterprise by business partners or customers. Some applications may need to be integrated even though they were not designed for integration and cannot be changed. These issues and others like them are what make application integration difficult. This chapter will explore the options available for application integration.\n\n## Application Integration Criteria\n\nWhat makes for good application integration? If integration needs were always the same, there would only be one integration style. Yet like any complex technological effort, application integration involves a range of considerations and consequences that should be taken into account for any integration opportunity.\n\nThe first criterion is **application integration** itself. If you can develop a single, stand-alone application that doesn’t need to collaborate with any other applications, you can avoid the whole integration issue entirely. Realistically, though, even a simple enterprise has multiple applications, applications that need to work together to provide a unified experience for the enterprise’s employees, partners, and customers.\n\nThe other main decision criteria are:\n\n**Application coupling** — Even integrated applications should minimize their dependencies on each other so that each can evolve without causing problems for the others. Tightly coupled applications make numerous assumptions about how the other applications work; when the applications change and break those assumptions, the integration breaks. The interface for integrating applications should be specific enough to implement useful functionality, but general enough to allow that implementation to change as needed.\n\n**Integration simplicity** — When integrating an application into an enterprise, developers should strive to minimize changing the application and minimize the amount of integration code needed. Yet changes and new code will usually be necessary to provide good integration functionality, and the approaches with the least impact on the application may not provide the best integration into the enterprise.\n\n**Integration technology** — Different integration techniques require varying amounts of specialized software and hardware. These special tools can be expensive, can lead to vendor lock-in, and increase the burden on developers to understand how to use the tools to integrate applications.\n\n**Data format** — Integrated applications must agree on the format of the data they exchange, or must have an intermediate traslator to unify applications that insist on different data formats. A related issue is **data format evolution and extensibility**—how the format can change over time and how that will affect the applications.\n\n**Data timeliness** — Integration should minimize the length of time between when one application decides to share some data and other applications have that data. Data should be exchanged frequently in small chunks, rather than waiting to exchange a large set of unrelated items. Applications should be informed as soon as shared data is ready for consumption. Latency in data sharing has to be factored into the integration design; the longer sharing can take, the more opportunity for shared data to become stale, and the more complex integration becomes.\n\n**Data or functionality** — Integrated applications may not want to simply share data, they may wish to share functionality such that each application can invoke the functionality in the others. Invoking functionality remotely can be difficult to achieve, and even though it may seem the same as invoking local functionality, it works quite differently, with significant consequences for how well the integration works.\n\n**Asynchronicity** — Computer processing is typically synchronous, such that a procedure waits while its subprocedure executes. It’s a given that the subprocedure is available when the procedure wants to invoke it. However, a procedure may not want to wait for the subprocedure to execute; it may want to invoke the subprocedure asynchronously, starting the subprocedure but then letting it execute in the background. This is especially true of integrated applications, where the remote application may not be running or the network may be unavailable—the source application may wish to simply make shared data available or log a request for a subprocedure call, but then go on to other work confident that the remote application will act sometime later.\n\nAs you can see, there are several different criteria that must be considered when choosing and designing an integration approach. The question then becomes: Which integration approaches best address which of these criteria?\n\n## Application Integration Options\n\nThere’s more than one approach for integrating applications. Each approach addresses some of the integration criteria better than others. The various approaches can be summed up in four main integration styles:\n\n**[*File Transfer*](FileTransferIntegration.html)** — Have each application produce files of shared data for others to consume, and consume files that others have produced.\n\n**[*Shared Database*](SharedDataBaseIntegration.html)** — Have the applications store the data they wish to share in a common database.\n\n**[*Remote Procedure Invocation*](EncapsulatedSynchronousIntegration.html)** — Have each application expose some of its procedures so that they can be invoked remotely, and have applications invoke those to run behavior and exchange data.\n\n**[*Messaging*](Messaging.html)** — Have each application connect to a common messaging system, and exchange data and invoke behavior using messages.\n\nEach of the patterns has the same problem statement—the need to integrate applications—and very similar contexts. What differentiates them is different forces searching for a more elegant solution. Each pattern builds on the last, looking for a more sophisticated approach to address the shortcomings of its predecessors. Thus the pattern order reflects an increasing order of sophistication.\n\nThe trick is not to choose the one style to use always, but to choose the best style for a particular integration opportunity. Each style has its advantages and disadvantages. Two applications may integrate using multiple styles such that each point of integration takes advantage of the style that suits it best. Likewise, an application may use different styles to integrate with different applications, so as to choose the style that works best for the other application. Some integration approaches can best be viewed as a hybrid of multiple styles. An integration product or EAI middleware may employ a combination of styles, all of which are effectively hidden in the product’s implementation.\n\nThe remainder of this book will expand on the [*Messaging*](Messaging.html) pattern. We focus on messaging in part because we believe it is often the best style for solving many integration opportunities. It is also the least well understood of the integration styles and a technology ripe with patterns that quickly explain how to make good use of it. Finally, messaging is the basis for many EAI products, so explaining how to use messaging well also goes a long way in teaching you how to use those products.\n\nFamiliarize yourself with these patterns to better understand the issues involved with application integration, and to better understand how messaging fits into the mix.\n\n## Integration Pattern Language\n\n[Message Construct.](MessageConstructionIntro.html)\n\n[Message](Message.html)\n\n[Command Message](CommandMessage.html)\n\n[Document Message](DocumentMessage.html)\n\n[Event Message](EventMessage.html)\n\n[Request-Reply](RequestReply.html)\n\n[Return Address](ReturnAddress.html)\n\n[Correlation Identifier](CorrelationIdentifier.html)\n\n[Message Sequence](MessageSequence.html)\n\n[Message Expiration](MessageExpiration.html)\n\n[Format Indicator](FormatIndicator.html)\n\n[Message Routing](MessageRoutingIntro.html)\n\n[Pipes-and-Filters](PipesAndFilters.html)\n\n[Message Router](MessageRouter.html)\n\n[Content-based Router](ContentBasedRouter.html)\n\n[Message Filter](Filter.html)\n\n[Dynamic Router](DynamicRouter.html)\n\n[Recipient List](RecipientList.html)\n\n[Splitter](Sequencer.html)\n\n[Aggregator](Aggregator.html)\n\n[Resequencer](Resequencer.html)\n\n[Composed Msg. Processor](DistributionAggregate.html)\n\n[Scatter-Gather](BroadcastAggregate.html)\n\n[Routing Slip](RoutingTable.html)\n\n[Process Manager](ProcessManager.html)\n\n[Message Broker](MessageBroker.html)\n\n[Message\nTransformation](MessageTransformationIntro.html)\n\n[Message Translator](MessageTranslator.html)\n\n[Envelope Wrapper](EnvelopeWrapper.html)\n\n[Content Enricher](DataEnricher.html)\n\n[Content Filter](ContentFilter.html)\n\n[Claim Check](StoreInLibrary.html)\n\n[Normalizer](Normalizer.html)\n\n[Canonical Data Model](CanonicalDataModel.html)\n\n[Messaging Endpoints](MessagingEndpointsIntro.html)\n\n[Message Endpoint](MessageEndpoint.html)\n\n[Messaging Gateway](MessagingGateway.html)\n\n[Messaging Mapper](MessagingMapper.html)\n\n[Transactional Client](TransactionalClient.html)\n\n[Polling Consumer](PollingConsumer.html)\n\n[Event-driven Consumer](EventDrivenConsumer.html)\n\n[Competing Consumers](CompetingConsumers.html)\n\n[Message Dispatcher](MessageDispatcher.html)\n\n[Selective Consumer](MessageSelector.html)\n\n[Durable Subscriber](DurableSubscription.html)\n\n[Idempotent Receiver](IdempotentReceiver.html)\n\n[Service Activator](MessagingAdapter.html)\n\n[Messaging Channels](MessagingChannelsIntro.html)\n\n[Message Channel](MessageChannel.html)\n\n[Point-to-Point Channel](PointToPointChannel.html)\n\n[Publish-Subscr. Channel](PublishSubscribeChannel.html)\n\n[Datatype Channel](DatatypeChannel.html)\n\n[Invalid Message Channel](InvalidMessageChannel.html)\n\n[Dead Letter Channel](DeadLetterChannel.html)\n\n[Guaranteed Delivery](GuaranteedMessaging.html)\n\n[Channel Adapter](ChannelAdapter.html)\n\n[Messaging Bridge](MessagingBridge.html)\n\n[Message Bus](MessageBus.html)\n\n[Systems Mgmt.](SystemManagementIntro.html)\n\n[Control Bus](ControlBus.html)\n\n[Detour](Detour.html)\n\n[Wire Tap](WireTap.html)\n\n[Message History](MessageHistory.html)\n\n[Message Store](MessageStore.html)\n\n[Smart Proxy](SmartProxy.html)\n\n[Test Message](TestMessage.html)\n\n[Channel Purger](ChannelPurger.html)", "znaku_textu": 10696, "slov": 1314, "odkazu": 107, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/IntegrationStylesIntro.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 06:53:05", "sha256": "b6e6d00558498ea07804faf248ba5526cd916c79dc0503c106f8e1d77f431f9a", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "https://www.architectelevator.com/book", "https://www.cloudstrategybook.com/", "https://www.platformstrategybook.info/"]} {"url": "https://www.enterpriseintegrationpatterns.com/Introduction.html", "titulek": "Introduction - Enterprise Integration Patterns", "h1": "", "popis": "Interesting applications rarely live in isolation. Whether your sales application must interface with your inventory application, your procurement application must connect to an auction site, or your PDA’s PIM must synchronize with the corporate calendar server, it seems like any application can be made better by integrating it with other applications.", "klicova_slova": "Introduction,integration, messaging, events, patterns, event-driven, coupling, eai, middleware, application integration, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns", "og:title": "Introduction - Enterprise Integration Patterns", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/Introduction.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/eip1_patterns_wide.png"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "What is Messaging?"}, {"uroven": 2, "text": "What is a Messaging System?"}, {"uroven": 2, "text": "Why Use Messaging?"}, {"uroven": 2, "text": "Challenges of Asynchronous Messaging"}, {"uroven": 2, "text": "Thinking Asynchronously"}, {"uroven": 2, "text": "Distributed Applications vs. Integration"}, {"uroven": 2, "text": "Commercial Messaging Systems"}, {"uroven": 2, "text": "Pattern Form"}, {"uroven": 2, "text": "Diagram Notation"}, {"uroven": 2, "text": "Examples and Interludes"}, {"uroven": 2, "text": "Organization of this Book"}, {"uroven": 2, "text": "Getting Started"}, {"uroven": 2, "text": "Supporting Web Site"}, {"uroven": 2, "text": "Summary"}, {"uroven": 2, "text": "Integration Pattern Language"}], "markdown": "| | Introduction[Messaging Patterns](index.html) | [Contents](toc.html)[⇐ Prev](Preface.html)[Next ⇒](Chapter1.html) |\n| --- | --- | --- |\n\nInteresting applications rarely live in isolation. Whether your sales application must interface with your inventory application, your procurement application must connect to an auction site, or your PDA’s PIM must synchronize with the corporate calendar server, it seems like any application can be made better by integrating it with other applications.\n\nAll integration solutions have to deal with a few fundamental challenges:\n\n- *Networks are unreliable.* Integration solutions have to transport data from one computer to another across networks. Compared to a process running on a single computer, distributed computing has to be prepared to deal with a much larger set of possible problems. Often times, two systems to be integrated are separated by continents and data between them has to travel through phone-lines, LAN segments, routers, switches, public networks, and satellite links. Each of these steps can cause delays or interruptions.\n- *Networks are slow.* Sending data across a network is multiple orders of magnitude slower than making a local method call. Designing a widely distributed solution the same way you would approach a single application could have disastrous performance implications.\n- *Any two applications are different.* Integration solutions need to transmit information between systems that use different programming languages, operating platforms, and data formats. An integration solution needs to be able to interface with all these different technologies.\n- *Change is inevitable.* Applications change over time. An integration solution has to keep pace with changes in the applications it connects. Integration solutions can easily get caught in an avalanche effect of changes – if one system changes, all other systems may be affected. An integration solution needs to minimize the dependencies from one system to another by using *loose coupling* between applications.\n\nOver time, developers have overcome these challenges with four main approaches:\n\n1. *[*File Transfer*](FileTransferIntegration.html)* — One application writes a file that another later reads. The applications need to agree on the filename and location, the format of the file, the timing of when it will be written and read, and who will delete the file.\n2. *[*Shared Database*](SharedDataBaseIntegration.html)* — Multiple applications share the same database schema, located in a single physical database. Because there is no duplicate data storage, no data has to be transferred from one application to the other.\n3. *[*Remote Procedure Invocation*](EncapsulatedSynchronousIntegration.html)* — One application exposes some of its functionality so that it can be accessed remotely by other applications as a remote procedure. The communication occurs real-time and synchronously.\n4. *[*Messaging*](Messaging.html)* — One applications publishes a message to a common message channel. Other applications can read the message from the channel at a later time. The applications must agree on a channel as well as the format of the message. The communication is asynchronous.\n\nWhile all four approaches solve essentially the same problem, each style has its distinct advantages and disadvantages. In fact, applications may integrate using multiple styles such that each point of integration takes advantage of the style that suits it best.\n\n## What is Messaging?\n\nThis book is about how to use messaging to integrate applications. A simple way to understand what messaging does is to consider the telephone system. A telephone call is a synchronous form of communication. I can only communicate with the other party if the other party is available at the time I place the call. Voice mail on the other hand, allows asynchronous communication. With voice mail, when the receiver does not answer, the caller can leave him a message; later the receiver (at his convenience) can listen to the messages queued in his mailbox. Voice mail enables the caller to leave a message now so that the receiver can listen to it later, which is lot easier than trying to get the caller and the receiver on the phone at the same time. Voice mail bundles (at least part of) a phone call into a message and queues it for later consumption; this is essentially how messaging works.\n\n*Messaging* is a technology that enables high-speed, asynchronous, program-to-program communication with reliable delivery. Programs communicate by sending packets of data called *message*s to each other. *Channel*s, also known as queues, are logical pathways that connect the programs and convey messages. A channel behaves like a collection or array of messages, but one that is magically shared across multiple computers and can be used concurrently by multiple applications. A *sender* or *producer* is a program that sends a message by writing the message to a channel. A *receiver* or *consumer* is a program that receives a message by reading (and deleting) it from a channel.\n\nThe message itself is simply some sort of data structure—such as a string, a byte array, a record, or an object. It can be interpreted simply as data, as the description of a command to be invoked on the receiver, or as the description of an event that occurred in the sender. A message actually contains two parts, a header and a body. The *header* contains meta-information about the message—who sent it, where it’s going, etc.; this information is used by the messaging system and is mostly (but not always) ignored by the applications using the messages. The *body* contains the data being transmitted and is ignored by the messaging system. In conversation, when an application developer who is using messaging talks about a message, he’s usually referring to the data in the body of the message.\n\nAsynchronous messaging architectures are powerful, but require us to rethink our development approach. As compared to the other three integration approaches, relatively few developers have had exposure to messaging and message systems. As a result, application developers in general are not as familiar with the idioms and peculiarities of this communications platform.\n\n## What is a Messaging System?\n\nMessaging capabilities are typically provided by a separate software system called a *messaging system* or *message-oriented middleware* (MOM). A messaging system manages messaging the way a database system manages data persistence. Just as an administrator must populate the database with the schema for an application’s data, an administrator must configure the messaging system with the channels that define the paths of communication between the applications. The messaging system then coordinates and manages the sending and receiving of messages. The primary purpose of a database is to make sure each data record is safely persisted, and likewise the main task of a messaging system is to move messages from the sender’s computer to the receiver’s computer in a reliable fashion.\n\nThe reason a messaging system is needed to move messages from one computer to another is that computers and the networks that connect them are inherently unreliable. Just because one application is ready to send a communication does not mean that the other application is ready to receive it. Even if both applications are ready, the network may not be working, or may fail to transmit the data properly. A messaging system overcomes these limitations by repeatedly trying to transmit the message until it succeeds. Under ideal circumstances, the message is transmitted successfully on the first try, but circumstances are often not ideal.\n\nIn essence, a message is transmitted in five steps:\n\n1. *Create* — The sender creates the message and populates it with data.\n2. *Send* — The sender adds the message to a channel.\n3. *Deliver* — The messaging system moves the message from the sender’s computer to the receiver’s computer, making it available to the receiver.\n4. *Receive* — The receiver reads the message from the channel.\n5. *Process* — The receiver extracts the data from the message.\n\nThis diagram illustrates these five transmission steps, which computer performs each, and which steps involve the messaging system:\n\n*Message Transmission Step-by-step*\n\nThis diagram also illustrates two important messaging concepts:\n\n1. *Send and forget* — In step 2, the sending application sends the message to the message channel. Once that send is complete, the sender can go on to other work while the messaging system transmits the message in the background. The sender can be confident that the receiver will eventually receive the message and does not have to wait until that happens.\n2. *Store and forward* — In step 2, when the sending application sends the message to the message channel, the messaging system stores the message on the sender’s computer, either in memory or on disk. In step 3, the messaging system delivers the message by forwarding it from the sender’s computer to the receiver’s computer, and then stores the message once again on the receiver’s computer. This store-and-forward process may be repeated many times, as the message is moved from one computer to another, until it reaches the receiver’s computer.\n\nThe create, send, receive, and process steps may seem like unnecessary overhead. Why not simply deliver the data to the receiver? By wrapping the data as a message and storing it in the messaging system, the applications delegate to the messaging system the responsibility of delivering the data. Because the data is wrapped as an atomic message, delivery can be retried until it succeeds and the receiver can be assured of reliably receiving exactly one copy of the data.\n\n## Why Use Messaging?\n\nNow that we know what messaging is, we should ask: Why use messaging? As with any sophisticated solution, there is no one simple answer. The quick answer is that messaging is more immediate than [*File Transfer*](FileTransferIntegration.html), better encapsulated than [*Shared Database*](SharedDataBaseIntegration.html), and more reliable than [*Remote Procedure Invocation*](EncapsulatedSynchronousIntegration.html). However, that’s just the beginning of the advantages that can be gained using messaging.\n\nSpecific benefits of messaging include:\n\n- *Remote Communication.* Messaging enables separate applications to communicate and transfer data. Two objects that reside in the same process can simply share the same data in memory. Sending data to another computer is a lot more complicated and requires data to be copied from one computer to another. This means that objects have to \"serializable\", i.e. they can be converted into a simple byte stream that can be sent across the network. If remote communication is not needed, messaging is not needed; a simpler solution such as concurrent collections or shared memory is sufficient.\n- *Platform/Language Integration.* When connecting multiple computer systems via remote communication, these systems likely use different languages, technologies and platforms, perhaps because they were developed over time by independent teams. Integrating such divergent applications can require a demilitarized zone of middleware to negotiate between the applications, often using the lowest common denominator—such as flat data files with obscure formats. In these circumstances, a messaging system can be a universal translator between the applications that works with each one’s language and platform on its own terms, yet allows them to all communicate through a common messaging paradigm. This universal connectivity is the heart of the [*Message Bus*](MessageBus.html) pattern.\n- *Asynchronous Communication.* Messaging enables a *send and forget* approach to communication. The sender does not have to wait for the receiver to receive and process the message; it does not even have to wait for the messaging system to deliver the message. The sender only needs to wait for the message to be sent, e.g. for the message to successfully be stored in the channel by the messaging system. Once the message is stored, the sender is then free to perform other work while the message is transmitted in the background. The receiver may want to send an acknowledgement or result back to the sender, which requires another message, whose delivery will need to be detected by a callback mechanism on the sender.\n- *Variable Timing.* With synchronous communication, the caller must wait for the receiver to finish processing the call before the caller can receive the result and continue. In this way, the caller can only make calls as fast as the receiver can perform them. On the other hand, asynchronous communication allows the sender to batch requests to the receiver at its own pace, and for the receiver to consume the requests at its own different pace. This allows both applications to run at maximum throughput and not waste time waiting on each other (at least until the receiver runs out of messages to process).\n- *Throttling.* A problem with remote procedure calls is that too many of them on a single receiver at the same time can overload the receiver. This can cause performance degradation and even cause the receiver to crash. Asynchronous communication enables the receiver to control the rate at which it consumes requests, so as not to become overloaded by too many simultaneous requests. The adverse effect on callers caused by this throttling is minimized because the communication is asynchronous, so the callers are not blocked waiting on the receiver.\n- *Reliable Communication.* Messaging provides reliable delivery that a remote procedure call (RPC) cannot. The reason messaging is more reliable than RPC is that messaging uses a *store and forward* approach to transmitting messages. The data is packaged as messages, which are atomic, independent units. When the sender sends a message, the messaging system stores the message. It then delivers the message by forwarding it to the receiver’s computer, where it is stored again. Storing the message on the sender’s computer and the receiver’s computer is assumed to be reliable. (To make it even more reliable, the messages can be stored to disk instead of memory; see [*Guaranteed Delivery*](GuaranteedMessaging.html) .) What is unreliable is forwarding (moving) the message from the sender’s computer to the receiver’s computer, because the receiver or the network may not be running properly. The messaging system overcomes this by resending the message until it succeeds. This automatic retry enables the messaging system to overcome problems with the network such that the sender and receiver don’t have to worry about these details.\n- *Disconnected Operation.* Some applications are specifically designed to run disconnected from the network, yet to synchronize with servers when a network connection is available. Such applications are deployed on platforms like laptop computers, PDA’s, and automobile dashboards. Messaging is ideal for enabling these applications to synchronize—data to be synchronized can be queued as it is created, waiting until the application reconnects to the network.\n- *Mediation.* The messaging system acts as a mediator—as in the Mediator pattern [ [GoF](http://www.amazon.com/exec/obidos/ASIN/0201633612/enterpriseint-20) ]—between all of the programs that can send and receive messages. An application can use it as a directory of other applications or services available to integrate with. If an application becomes disconnected from the others, it need only reconnect to the messaging system, not to all of the other messaging applications. The messaging system can be used to provide a high number of distributed connections to a shared resource, such as a database. The messaging system can employ redundant resources to provide high-availability, balance load, reroute around failed network connections, and tune performance and quality of service.\n- *Thread Management.* Asynchronous communication means that one application does not have to block while waiting for another application to perform a task, unless it wants to. Rather than blocking to wait for a reply, the caller can use a callback that will alert the caller when the reply arrives. (See the [*Request-Reply*](RequestReply.html) pattern.) A large number of blocked threads, or threads blocked for a long time, can be problematic. Too many blocked threads may leave the application with too few available threads to perform real work. If an application with some dynamic number of blocked threads crashes, when the application restarts and recovers its former state, re-establishing those threads will be difficult. With callbacks, the only threads that block are a small, known number of listeners waiting for replies. This leaves most threads available for other work and defines a known number of listener threads that can easily be re-established after a crash.\n\nSo there are a number of different reasons an application or enterprise may benefit from messaging. Some of these are technical details that application developers relate most readily to, whereas others are strategic decisions that resonate best with enterprise architects. Which of these reasons is most important depends on the current requirements of your particular applications. They’re all good reasons to use messaging, so take advantage of whichever reasons provide the most benefit to you.\n\n## Challenges of Asynchronous Messaging\n\nAsynchronous messaging is not the panacea of integration. It resolves many of the challenges of integrating disparate systems in an elegant way but it also introduces new challenges. Some of these challenges are inherent in the asynchronous model while other challenges vary with the specific implementation of a messaging system.\n\n- *Complex programming model.* Asynchronous messaging requires developers to work with an event-driven programming model. Application logic can no longer be coded in a single method that invokes other methods, but the logic is now split up into a number of event handlers that respond to incoming messages. Such a system is more complex and harder to develop and debug. For example, the equivalent of a simple method call can require a request message and a request channel, a reply message and a reply channel, a correlation identifier and an invalid message queue (as described in [*Request-Reply*](RequestReply.html) ).\n- *Sequence issues.* Message channels guarantee message delivery, but they do not guarantee when the message will be delivered. This can cause messages that are sent in sequence to get out of sequence. In situations where messages depend on each other special care has to be taken to re-establish the message sequence.\n- *Synchronous scenarios.* Not all applications can operate in a send and forget mode. If a user is looking for airline tickets, he or she is going to want to see the ticket price right away, not after some undetermined time. Therefore, many messaging systems need to bridge the gap between synchronous and asynchronous solutions. (See the [*Request-Reply*](RequestReply.html) pattern.)\n- *Performance.* Messaging systems do add some overhead to communication. It takes effort to make data into a message and send it, and to receive a message and process it. If you have to transport a huge chunk of data, dividing it into a gazillion small pieces may not be a smart idea. For example, if an integration solution needs to synchronize information between two existing systems, the first step is usually to replicate all relevant information from one system to the other. For such a bulk data replication step, ETL (extract, transform, and load) tools are much more efficient than messaging. Messaging is best suited to keeping the systems in sync after the initial data replication.\n- *Limited platform support.* Many proprietary messaging systems are not available on all platforms. Often times it is easier to FTP a file to another platform than accessing it via a messaging system.\n- *Vendor lock-in.* Many messaging system implementations rely on proprietary protocols. Even common messaging specifications such as JMS do not control the physical implementation of the solution. As a result, different messaging systems usually do not connect to one another. This can leave you with a whole new integration challenge: integrating multiple integration solutions! (See the [*Messaging Bridge*](MessagingBridge.html) pattern.)\n\nSo asynchronous messaging does not solve all problems, and can even create some new ones. Keep these consequences in mind when deciding which problems to solve using messaging.\n\n## Thinking Asynchronously\n\nMessaging is an asynchronous technology, which enables delivery to be retried until it succeeds. In contrast, most applications use synchronous function calls; for example: a procedure calling a sub-procedure, one method calling another method, or one procedure invoking another remotely through a remote procedure call (RPC) (such as CORBA and DCOM). Synchronous calls imply that the calling process is halted while the sub-process is executing a function. Even in an RPC scenario, where the called sub-procedure executes in a different process, the caller blocks until the sub-procedure returns control (and the results) to the caller. When using asynchronous messaging, the caller uses a *send and forget* approach that allows it to continue to execute after it sends the message. As a result, the calling procedure continues to run while the sub-procedure is being invoked.\n\n*Synchronous and Asynchronous Call Semantics*\n\nAsynchronous communication has a number of implications. First, we no longer have a single thread of execution. Multiple threads enable sub-procedures to run concurrently, which can greatly improve performance and help ensure that some sub-processes are making progress even while other sub-processes may be waiting for external results. However, concurrent threads can also make debugging much more difficult. Second, results (if any) arrive via a callback. This enables the caller to perform other tasks and be notified when the result is available, which can improve performance. However, the caller has to be able to process the result even while it is in the middle of other tasks, and it has to be able to use the result to remember the context in which the call was made. Third, asynchronous sub-processes can execute in any order. Again, this enables one sub-procedure to make progress even while another cannot. But it also means that the subprocesses must be able to run independently in any order, and the caller must be able to determine which result came from which sub-process and combine the results together. So asynchronous communication has several advantages but requires rethinking how a procedure uses its sub-procedures.\n\n## Distributed Applications vs. Integration\n\nThis book is about enterprise integration—how to integrate independent applications so that they can work together. An enterprise application often incorporates an n-tier architecture (a more sophisticated version of a client/server architecture) enabling it to be distributed across several computers. Even though this results in processes on different machines communicating with each other, this is application distribution, not application integration.\n\nWhy is an n-tier architecture considered application distribution and not application integration? First, the communicating parts are tightly coupled—they dependent directly on each other, so that one tier cannot function without the others. Second, communication between tiers tends to be synchronous. Third, an application (n-tier or atomic) tends to have human users that will only accept rapid system response.\n\nIn contrast, integrated applications are independent applications that can each run by itself, but coordinate with each other in a loosely coupled way. This enables each application to focus on one comprehensive set of functionality and yet delegate to other applications for related functionality. Integrated applications communicating asynchronously don’t have to wait for a response; they can proceed without a response or perform other tasks concurrently until the response is available. Integrated applications tend to have a broad time constraint, such that they can work on other tasks until a result becomes available, and therefore are more patient than most human users waiting real-time for a result.\n\n## Commercial Messaging Systems\n\nThe apparent benefits of integrating systems using an asynchronous messaging solution have opened up a significant market for software vendors creating messaging middleware and associated tools. We can roughly group the messaging vendors’ products into the following four categories:\n\n1. *Operating Systems.* Messaging has become such a common need that vendors have started to integrate the necessary software infrastructure into the operating system or database platform. For example, the Microsoft Windows 2000 and Windows XP operating systems include the Microsoft Message Queuing (MSMQ) service software. This service is accessible through a number of API’s, including COM components and the System.Messaging namespace, part of the Microsoft .NET platform. Similarly, Oracle offers Oracle AQ as part of its database platform.\n2. *Application Servers.* Sun Microsystems first incorporated the Java Messaging Service (JMS) into version 1.2 of the J2EE specification. Since then, virtually all J2EE application servers (such as IBM WebSphere, BEA WebLogic, etc.) provide an implementation for this specification. Also, Sun delivers a JMS reference implementation with the J2EE JDK.\n3. *EAI Suites.* Products from these vendors offer proprietary—but functionally rich—suites that encompass messaging, business process automation, workflow, portals, and other functions. Key players in this marketplace are IBM WebSphere MQ, Microsoft BizTalk, TIBCO, WebMethods, SeeBeyond, Vitria, CrossWorlds, and others. Many of these products include JMS as one of the many client API’s they support, while other vendors—such as SonicSoftware and Fiorano—focus primarily on implementing JMS-compliant messaging infrastructures.\n4. *Web Services Toolkits.* Web services have garnered a lot of interest in the enterprise integration communities. Standards bodies and consortia are actively working on standardizing reliable message delivery over web services (i.e., WS-Reliability, WS-ReliableMessaging, and ebMS). A growing number of vendors offer tools that implement routing, transformation, and management of web services-based solutions.\n\nThe patterns in this book are vendor-independent and apply to most messaging solutions. Unfortunately, each vendor tends to define their own terminology when describing messaging solutions. In this book we have striven to choose pattern names that are technology- and product-neutral, yet descriptive and easy to use conversationally.\n\nMany messaging vendors have incorporated some of this book’s patterns as features of their products, which simplifies applying the patterns and accelerates solution development. Readers who are familiar with a particular vendor’s terminology will most likely recognize many of the concepts in this book. To help these readers map the pattern language to the vendor-specific terminology, the following tables map the most common pattern names to their corresponding product feature names in some of the most widely-used messaging products.\n\n| **Enterprise Integration Patterns** | **Java Message Service (JMS)** | **Microsoft MSMQ** | **WebSphere MQ** |\n| --- | --- | --- | --- |\n| Message Channel | Destination | MessageQueue | Queue |\n| Point-to-Point Channel | Queue | MessageQueue | Queue |\n| Publish-Subscribe Channel | Topic | --- | --- |\n| Message | Message | Message | Message |\n| Message Endpoint | MessageProducer, MessageConsumer | | |\n\n| **Enterprise Integration Patterns** | **TIBCO** | **WebMethods** | **SeeBeyond** | **Vitria** |\n| --- | --- | --- | --- | --- |\n| Message Channel | Topic | | Intelligent Queue | Channel |\n| Point-to-Point Channel | Distributed Queue | | Intelligent Queue | Channel |\n| Publish-Subscribe Channel | Subject | --- | Intelligent Queue | Pub/Sub Channel |\n| Message | Message | Document | Event | Event |\n| Message Endpoint | Publisher, Subscriber | Publisher, Subscriber | Publisher, Subscriber | Publisher, Subscriber |\n\n## Pattern Form\n\nThis book is structured as a set of patterns organized into a pattern language. Books such as *Design Patterns*, *Pattern Oriented Software Architecture*, *Core J2EE Patterns*, and *Patterns of Enterprise Application Architecture* have popularized the concept of using patterns to document computer-programming techniques. Christopher Alexander pioneered the concept of patterns and pattern languages in his books *A Pattern Language* and *A Timeless Way of Building*. Each pattern represents a decision that the reader must make and the considerations that go into that decision. A pattern language is a web of related patterns where each pattern leads to others, guiding the reader through the decision making process. This approach is a powerful technique for documenting an expert’s knowledge so that it can be readily understood and applied by non-experts.\n\nA pattern language teaches the reader how to solve a limitless variety of problems within a bounded problem space. Because the overall problem that is being solved is different every time, the path through the patterns and how they’re applied is also unique. In this way, this book was written for anyone using any messaging tools for any application, but can be applied specifically for you and the specific application of messaging that you are facing.\n\nJust using the pattern form does not guarantee that a book contains a wealth of knowledge. It is not just enough to simply say, “When you face this problem, apply this solution.” For a reader to truly learn from a pattern, it has to document why the problem is difficult to solve, consider possible solutions that in fact don’t work well, and explain why the solution offered is the best available. Likewise, the patterns need to connect to each other so as to walk the reader from one problem to the next. In this way, the pattern form can be used to teach the reader not just what solutions to apply, but how to solve problems the author could not have predicted. These are goals we strive to accomplish in this book.\n\nPatterns should be prescriptive, meaning that they should tell you what to do. They don’t just describe a problem, and they don’t just describe how to solve it, they tell you what to do to solve it. Each pattern represents a decision the reader must make: “Should I use *Messaging*?” “Would a *Reply Message* help me here?” The point of the patterns and the pattern language is to help the reader make decisions that lead to a good solution for his specific problem, even if the authors didn’t have that specific problem in mind, and even if the reader doesn’t have the knowledge and experience to develop that solution on his own.\n\nThere is no one universal pattern form; different books use various structures. We used a style that is fairly close to the Alexandrian form, which was first popularized for computer programming in *Smalltalk Best Practice Patterns* by Kent Beck. We like the Alexandrian form because it results in patterns that are more prose-like. As a result, even though each pattern follows an identical, well-defined structure, the format avoids headings for each individual sub-section, which disrupt the flow of the discussion. To improve navigability, the format uses style elements such as bolding, indentation, and pictures to help the reader identify important sections even at a quick glance.\n\nThis pattern language uses the following pattern structure:\n\n- *Name* – This is an identifier for the pattern that indicates what the pattern does. We chose names that can easily be used in a sentence that describes applying the pattern so that it is easy to reference the pattern’s concept in a conversation between designers.\n- *Icon* – Many patterns are associated with an icon in addition to the pattern name. Because many architects are used to communicating visually by using diagrams, we wanted to provide a visual language in addition to the verbal language. This visual language underlines the composability of the patterns as multiple pattern icons can be combined to describe the solution of a larger, more complex pattern.\n- *Context* – This explains what you might be working on that would make you likely to run into the problem that this pattern solves. The context sets the stage for the problem and often refers to other patterns you may have already applied.\n- *Problem* – This explains the difficulty you are facing, expressed as a question you’re asking yourself, which this pattern solves. You should be able to read the problem statement and quickly determine if this pattern is relevant to your work. We’ve formatted the problem to be one sentence, bold and indented.\n- *Forces* – The forces explore the constraints that make the problem difficult to solve. If it were easy, you wouldn’t need a pattern. They often consider alternative solutions that seem promising but don’t pan out, which helps show the value of the real solution.\n- *Solution* – This is a template that explains what you should do to solve the problem. It is not specific to your particular circumstances, but describes what to do in the variety of circumstances represented by the problem. If you understand a pattern’s problem and solution, you understand the pattern and don’t necessarily need to read the other sections. We’ve formatted the solution to be one sentence, bold and indented.\n- *Sketch* – One of the most appealing properties of the Alexandrian form is that each pattern contains a sketch that illustrates the solution. In many cases, just by looking at the pattern name and the sketch you can understand the essence of the pattern. We tried to maintain this style by inserting a solution picture, or sketch, after the solution statement of each pattern.\n- *Results* – This part expands upon the solution to explain the details of how to apply the solution and how it resolves the forces. It also addresses new challenges that may arise as a result of applying this pattern.\n- *Next* – This section lists other patterns to be considered after applying the current one. Patterns don’t live in isolation; the application of one pattern usually leads you to new problems that are solved by other patterns. This is what makes the collection a pattern language and not just a pattern catalog.\n- *Sidebars* – These sections discuss more detailed technical issues or variations of the pattern. We set these sections visually apart from the remainder of the text so you can easily skip them if they are not be relevant to your particular application of the pattern.\n- *Examples* – A pattern usually includes one or more examples of the pattern being applied or having been applied. An example may be as simple as naming a known use or as detailed as a large segment of sample code. Given the large number of available messaging technologies, we do not expect readers to be familiar with each technology used to implement an example. Therefore, we designed the patterns so that you can safely skip the example without loosing any critical content of the pattern.\n\nThe beauty in describing solutions as patterns is that it not only teaches the reader how to solve the specific problems discussed, but also how to create designs that solve problems the authors were not even aware of. As a result, these patterns for messaging describe not only messaging systems that exist today, but may also apply to new ones created well after this book is published.\n\n## Diagram Notation\n\nIntegration solutions consist of many different pieces—applications, databases, endpoints, channels, messages, routers, etc. If we want to describe an integration solution, we need to define a notation that accommodates all these different components. To our knowledge, there is no widely used, comprehensive notation that is geared towards the description of all aspects of an integration solution. The Unified Modeling Language (UML) does a fine job of describing object-oriented systems with class and interaction diagrams, but it does not contain semantics to describe messaging solutions. The UML Profile for EAI [[UMLEAI](http://cgi.omg.org/cgi-bin/doc?ptc/02-02-02)] enriches the semantics of collaboration diagrams to describe message flows between components. This notation is very useful as a precise visual description of a system that can serve as the basis for code generation as part of a model-driven architecture (MDA). We decided not to adopt this notation for two reasons. First, the UML Profile does not capture all the patterns described in our pattern language. Second, we were not looking to create a precise visual specification, but images that have a certain ‘sketch’ quality to them. We wanted pictures that are able to convey the essence of a pattern to the reader at a quick glance—very much like Alexander’s *sketch*. That’s why we decided to create our own ‘notation’. Luckily, unlike the more formal notation, ours does not require you to read a large manual. A simple picture should suffice:\n\n*Visual Notation for Messaging Solutions*\n\nThis simple picture shows a message being sent to a component over a channel. We use the word *component* very loosely here—it can indicate an application that is being integrated, an intermediary that transforms or routes the message between applications, or a specific part of an application. Sometimes, we also depict a channel as a three-dimensional pipe if we want to highlight the channel itself. Often times we are more interested in the components and draw the channels as simple lines with arrow heads. The two notations are equivalent. We depict the message as a small tree with a round root and nested, square elements. The tree elements can be shaded or colored to highlight their usage in a particular pattern. Many messaging systems allow messages to contain tree-like data structures, for example XML documents. Also, depicting messages in this way allows us to provide a quick visual description of transformation patterns—it will be easy to show a pattern that adds, re-arranges or removes fields from the message.\n\nWhen we describe application designs—for example, messaging endpoints or examples written in C# or Java—we do use standard UML class and sequence diagrams to depict the class hierarchy and the interaction between objects. The UML notation is widely accepted as the standard way of describing these types of solutions (if you need a refresher on UML, have a look at [[UML](http://www.amazon.com/exec/obidos/ASIN/0321193687/enterpriseint-20)]).\n\n## Examples and Interludes\n\nWe have tried to underline the broad applicability of the patterns by including implementation examples using a variety of integration technologies. The potential downside of this approach is that you may not be familiar with each technology that is being used in an example. That’s why we made sure that reading the examples is strictly optional — all relevant points are discussed in the pattern description. Therefore, you can safely skip the examples without risk of losing out on important detail. Also, where possible, we provided more than one implementation example using different technologies.\n\nWhen presenting example code we focused on readability over runnability. A code segment can help remove any potential ambiguity left by the solution description and many application developers and architects prefer looking at 30 lines of code as opposed to reading many paragraphs of text. To support this intent we often only show the most relevant methods or classes of a potentially larger solution. We also omitted most forms of error checking to highlight the core function implemented by the code. Most code snippets do not contain in-line comments as the code is explained in the paragraphs before and after the code segment.\n\nProviding a meaningful example for a single integration pattern is challenging. Enterprise integration solutions typically consist of a number of heterogeneous components, spread across multiple systems. Likewise, most integration patterns do not operate in isolation but rely on other patterns to form a meaningful solution. To highlight the collaboration between multiple patterns we included more comprehensive examples as interludes at the end of the major sections of the book. These solutions illustrate many of the trade-offs involved in designing a more comprehensive messaging solution.\n\nAll code samples should be treated as illustrative tools only and not as a starting point for development of an integration solution. For example, almost all examples lack any form of error checking or concern for robustness, security, or scalability.\n\nWe tried as much as possible to base the examples on software platforms that are available free of charge or as a trial version. In some cases, we used commercial platforms (such as TIBCO ActiveEnterprise or Microsoft BizTalk) to illustrate the difference between developing a solution from scratch and using a commercial tool. We presented those example in such a way that they are educational even if you do not have access to the required run-time platform. For many examples, we use relatively bare-bones messaging frameworks such as JMS or MSMQ. This allows us to be more explicit in the example and focus on the problem at hand instead of distracting from it with all the features a more complex middleware toolset may provide.\n\nThe Java examples in this book are based on the JMS 1.1 specification, which is part of the J2EE 1.4 specification. By the time this book is published, most messaging and application server vendors will support JMS 1.1. You can download Sun’s reference implementation of the JMS specification from Sun’s Web site: [http://java.sun.com/j2ee](http://java.sun.com/j2ee).\n\nThe Microsoft .NET examples are based on Version 1.1 of the .NET Framework and are written in C#. You can download the .NET Framework SDK from Microsoft’s Web site: [http://msdn.microsoft.com/net](http://msdn.microsoft.com/net).\n\n## Organization of this Book\n\nThe pattern language in this book, as with any pattern language, is a web of patterns referring to each other. At the same time, some patterns are more fundamental than others, forming a hierarchy of big-concept patterns that lead to finer-detailed patterns. The big-concept patterns form the load-baring members of the pattern language. They are the main ones, what we term *root patterns*, that provide the foundation of the language and support the other patterns.\n\nThis book groups patterns into chapters by level-of-abstraction and by topic area. The following diagram shows the root patterns and their relationship to the chapters of the book.\n\n*Relationship of Root Patterns and Chapters*\n\nThe most fundamental pattern is [*Messaging*](Messaging.html); that’s what this whole book is about. It leads to the six root patterns—which are in the *Messaging Systems* chapter—namely [*Message Channel*](MessageChannel.html), [*Message*](Message.html), [*Pipes and Filters*](PipesAndFilters.html), [*Message Router*](MessageRouter.html), [*Message Translator*](MessageTranslator.html), and [*Message Endpoint*](MessageEndpoint.html). In turn, each of these root patterns leads to its own chapter in the book (except [*Pipes and Filters*](PipesAndFilters.html), which is not specific to messaging but is the basis of the routing and transformation patterns).\n\nThe pattern language is divided into eight chapters, which follow the hierarchy described above:\n\n- *Chapter 1: Integration Styles* – This chapter reviews the different approaches available for integrating applications, including [*Messaging*](Messaging.html) .\n- *Chapter 2: Messaging Systems* – This chapter reviews the six root messaging patterns, giving an overview of the entire pattern language.\n- *Chapter 3: Messaging Channels* – Applications communicate via channels. Channels define the logical pathways a message can follow. This chapter shows how to determine what channels your applications need.\n- *Chapter 4: Message Construction* – Once you have message channels, you need messages to send on them. This chapter explains the different ways messages can be used and how to take advantage of their special properties.\n- *Chapter 5: Message Routing* – As a messaging topography becomes more complex, senders know less and less about who should receive their messages. Rather, they send the messages to intermediate applications that send them to others until the messages finally find their way to their final destination. This chapter teaches you the responsibilities of these routing applications.\n- *Chapter 6: Message Transformation* – Independently developed applications often don’t agree on messages’ formats, on the form and meaning of supposedly unique identifiers, and even the character encoding to be used. Therefore, intermediate components are needed to convert messages from the form one application produced to that which other applications will consume. This chapter shows how to design these transformer applications.\n- *Chapter 7: Messaging Endpoints* – Many applications were not designed to participate in a messaging solution. As a result, they must be explicitly connected to the messaging system. This section describes a messaging layer in the applications that is responsible for sending and receiving the messages, making your application an endpoint for messages.\n- *Chapter 8: System Management* – Once we have a messaging system in place to integrate our applications, how do we make sure that it’s running correctly and doing what we want? This chapter explores how to test and monitor a running messaging system.\n\nThese eight chapters go together to teach you what you need to know about connecting applications using messaging.\n\n## Getting Started\n\nWith any book that has a lot to teach, it’s hard to know where to start, both for the authors and the readers. Reading all of the pages straight through assures covering the entire subject area, but isn’t the quickest way to get to the issues that are of the most help. Starting with a pattern in the middle of the language can be like starting to watch a movie that’s half over; you see what’s happening but don’t understand what it means.\n\nLuckily, the pattern language is formed around root patterns (as described earlier). These root patterns collectively provide an overview of the pattern language, and individually provide starting points for delving deep into the details of messaging. To get an overall survey of the language without reviewing all of the patterns, start with reviewing the root patterns. To jump into the middle of the language, jump in at a root pattern, a place where the language has finished discussing one major topic and is now starting another.\n\n*Chapter 1: Integration Styles* provides an overview of the four main application integration techniques and settles on [*Messaging*](Messaging.html) as being the best overall for many integration opportunities. Read this chapter if you are unfamiliar with issues involved in application integration and the pros and cons of the various approaches that are available. If you just want to know what’s so great about messaging, go straight to that pattern. If you’re already convinced that messaging is the way to go and want to get started with how to use messaging, you can skip the first chapter completely.\n\n*Chapter 2: Messaging Systems* contains all of this pattern language’s root patterns (except [*Messaging*](Messaging.html), which is in the first chapter). For an overview of the pattern language, read (or at least skim) all of the patterns in this chapter. To dive deep on a particular topic, read its root pattern, then go to the patterns mentioned in its *next* section at the end of the pattern; those next patterns will all be in a chapter named after the root pattern.\n\nThe root patterns in this language are:\n\n- *[*Messaging*](Messaging.html)* – This is the #1 root pattern for the entire book: What is messaging, what problem does it solve, and how does it solve it?\n- *[*Message Channel*](MessageChannel.html)* – What is the structure in a messaging system that conveys messages from the sender to the receiver? How do you know which ones your applications need?\n- *[*Message*](Message.html)* – How does information get communicated from a sender to a receiver?\n- *[*Pipes and Filters*](PipesAndFilters.html)* – How can intermediate steps be performed after a message is sent but before it is received?\n- *[*Message Router*](MessageRouter.html)* – If the sender does not know ultimately where the message should go, how can the messaging system get it there?\n- *[*Message Translator*](MessageTranslator.html)* – If the sender and receiver do not agree on the message format, how can they communicate?\n- *[*Message Endpoint*](MessageEndpoint.html)* – How do the applications that send and receive messages connect to the messaging system?\n\nAfter the first two chapters, different types of messaging developers may be most interested in different chapters, based on the specifics of how each group uses messaging to perform integration:\n\n- *System Administrators* may be most interested in *Chapter 3: Messaging Channels* , the guidelines for what channels to create, and *Chapter 8: System Management* , guidance on how to maintain a running messaging system.\n- *Application Developers* should look at *Chapter 7: Messaging Endpoints* to learn how integrate an application with a messaging system, and *Chapter 4: Message Construction* to learn what messages to send when.\n- *System Integrators* will gain the most from *Chapter 5: Message Routing* —how to direct messages to the proper receivers—and *Chapter 6: Message Transformation* —how to convert messages from the sender’s format to the receiver’s.\n\nKeep in mind that when reading a pattern, if you’re in a hurry, start by just reading the problem and solution (the two sentences in bold). This will give you enough information to determine if the pattern is of interest to you right now, and if you already know the pattern. If you do not know the pattern and it sounds interesting, go ahead and read the other parts.\n\nAlso remember that this is a pattern language, so the patterns are not necessarily meant to be read in the order they’re presented in the book. The book’s order teaches you about messaging by considering all of the relevant topics in turn and discussing related issues together. To use the patterns to solve a particular problem, start with an appropriate root pattern. Its context explains what patterns need to be applied before this one, even if they’re not the ones immediately preceding this one in the book. Likewise, the next section (the last paragraph of the pattern) describes what patterns to consider applying after this one, even if they’re not the ones immediately following this one in the book. Use the web of interconnected patterns, not the linear list of book pages, to guide you through the material.\n\n## Supporting Web Site\n\nPlease look for companion information to this book plus related information on enterprise integration at our Web site: [www.enterpriseintegrationpatterns.com](http://www.enterpriseintegrationpatterns.com). You can also e-mail your comments, suggestions and feedback to us at authors@enterpriseintegrationpatterns.com.\n\n## Summary\n\nYou should now have a good understanding of the following concepts which are fundamental to the material in this book:\n\n- What messaging is\n- What a messaging system is\n- Why to use messaging\n- How asynchronous programming is different\n- How application integration is different from application distribution\n- What types of commercial products contain messaging systems\n\nYou should also have a feel for how this book is going to teach you how to use messaging:\n\n- The role patterns have in structuring the material\n- The meaning of the custom notation used in the diagrams\n- The purpose and scope of the examples\n- The organization of the material\n- How to get started learning the material\n\nNow that you understand the basic concepts and how the material will be presented, you are now ready to start learning how to integrate applications using messaging.\n\n## Integration Pattern Language\n\n[Message Construct.](MessageConstructionIntro.html)\n\n[Message](Message.html)\n\n[Command Message](CommandMessage.html)\n\n[Document Message](DocumentMessage.html)\n\n[Event Message](EventMessage.html)\n\n[Request-Reply](RequestReply.html)\n\n[Return Address](ReturnAddress.html)\n\n[Correlation Identifier](CorrelationIdentifier.html)\n\n[Message Sequence](MessageSequence.html)\n\n[Message Expiration](MessageExpiration.html)\n\n[Format Indicator](FormatIndicator.html)\n\n[Message Routing](MessageRoutingIntro.html)\n\n[Pipes-and-Filters](PipesAndFilters.html)\n\n[Message Router](MessageRouter.html)\n\n[Content-based Router](ContentBasedRouter.html)\n\n[Message Filter](Filter.html)\n\n[Dynamic Router](DynamicRouter.html)\n\n[Recipient List](RecipientList.html)\n\n[Splitter](Sequencer.html)\n\n[Aggregator](Aggregator.html)\n\n[Resequencer](Resequencer.html)\n\n[Composed Msg. Processor](DistributionAggregate.html)\n\n[Scatter-Gather](BroadcastAggregate.html)\n\n[Routing Slip](RoutingTable.html)\n\n[Process Manager](ProcessManager.html)\n\n[Message Broker](MessageBroker.html)\n\n[Message\nTransformation](MessageTransformationIntro.html)\n\n[Message Translator](MessageTranslator.html)\n\n[Envelope Wrapper](EnvelopeWrapper.html)\n\n[Content Enricher](DataEnricher.html)\n\n[Content Filter](ContentFilter.html)\n\n[Claim Check](StoreInLibrary.html)\n\n[Normalizer](Normalizer.html)\n\n[Canonical Data Model](CanonicalDataModel.html)\n\n[Messaging Endpoints](MessagingEndpointsIntro.html)\n\n[Message Endpoint](MessageEndpoint.html)\n\n[Messaging Gateway](MessagingGateway.html)\n\n[Messaging Mapper](MessagingMapper.html)\n\n[Transactional Client](TransactionalClient.html)\n\n[Polling Consumer](PollingConsumer.html)\n\n[Event-driven Consumer](EventDrivenConsumer.html)\n\n[Competing Consumers](CompetingConsumers.html)\n\n[Message Dispatcher](MessageDispatcher.html)\n\n[Selective Consumer](MessageSelector.html)\n\n[Durable Subscriber](DurableSubscription.html)\n\n[Idempotent Receiver](IdempotentReceiver.html)\n\n[Service Activator](MessagingAdapter.html)\n\n[Messaging Channels](MessagingChannelsIntro.html)\n\n[Message Channel](MessageChannel.html)\n\n[Point-to-Point Channel](PointToPointChannel.html)\n\n[Publish-Subscr. Channel](PublishSubscribeChannel.html)\n\n[Datatype Channel](DatatypeChannel.html)\n\n[Invalid Message Channel](InvalidMessageChannel.html)\n\n[Dead Letter Channel](DeadLetterChannel.html)\n\n[Guaranteed Delivery](GuaranteedMessaging.html)\n\n[Channel Adapter](ChannelAdapter.html)\n\n[Messaging Bridge](MessagingBridge.html)\n\n[Message Bus](MessageBus.html)\n\n[Systems Mgmt.](SystemManagementIntro.html)\n\n[Control Bus](ControlBus.html)\n\n[Detour](Detour.html)\n\n[Wire Tap](WireTap.html)\n\n[Message History](MessageHistory.html)\n\n[Message Store](MessageStore.html)\n\n[Smart Proxy](SmartProxy.html)\n\n[Test Message](TestMessage.html)\n\n[Channel Purger](ChannelPurger.html)", "znaku_textu": 54830, "slov": 8300, "odkazu": 113, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/patterns/messaging/Introduction.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 14:50:52", "sha256": "e3f34868e3c6a8e5a30ac01f1969a225db50a51beb9bb08f8f339bbbe3582f84", "hloubka": 3, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://www.amazon.com/exec/obidos/ASIN/0201633612/enterpriseint-20", "http://cgi.omg.org/cgi-bin/doc?ptc%2F02-02-02=", "http://www.amazon.com/exec/obidos/ASIN/0321193687/enterpriseint-20", "http://java.sun.com/j2ee", "http://msdn.microsoft.com/net", "https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "https://www.architectelevator.com/book", "https://www.cloudstrategybook.com/", "https://www.platformstrategybook.info/"]} {"url": "https://www.enterpriseintegrationpatterns.com/InvalidMessageChannel.html", "titulek": "Invalid Message Channel - Enterprise Integration Patterns", "h1": "", "popis": "How can a messaging receiver gracefully handle receiving a message that makes no sense?", "klicova_slova": "Invalid Message Channel,integration, messaging, events, patterns, event-driven, coupling, eai, middleware, application integration, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns", "og:title": "Invalid Message Channel - Enterprise Integration Patterns", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/InvalidMessageChannel.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/InvalidMessageSolution.gif"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Integration Pattern Language"}], "markdown": "Messaging Patterns\n\n[Messaging Patterns](index.html)\n\n- [Integration Styles](IntegrationStylesIntro.html)\n- [Messaging Systems](MessagingComponentsIntro.html)\n- [Messaging Channels](MessagingChannelsIntro.html)\n- [Message Construction](MessageConstructionIntro.html)\n- [Interlude: Simple Messaging](SimpleMessagingIntro.html)\n- [Message Routing](MessageRoutingIntro.html)\n- [Message Transformation](MessageTransformationIntro.html)\n- [Interlude: Composed Messaging](ComposedMessagingExample.html)\n- [Messaging Endpoints](MessagingEndpointsIntro.html)\n- [System Management](SystemManagementIntro.html)\n- Interlude: Systems Management Example\n- Integration Patterns in Practice\n- Concluding Remarks\n- Appendices\n\n| | Invalid Message Channel[Messaging Patterns](index.html) » [Messaging Channels](MessagingChannelsIntro.html) | [Contents](toc.html)[⇐ Prev](DatatypeChannel.html)[Next ⇒](DeadLetterChannel.html) |\n| --- | --- | --- |\n\nAn application is using [*Messaging*](Messaging.html) to receive [*Message*](Message.html)s.\n\nHow can a messaging receiver gracefully handle receiving a message that makes no sense?\n\nThe receiver should move the improper message to an *Invalid Message Channel*, a special channel for messages that could not be processed by their receivers.\n\nWhen designing a messaging system for applications to use, the administrator will need to define one or more *Invalid Message Channel*s for the applications to use.\n\nThe *Invalid Message Channel* will not be used for normal, successful communication, so its being cluttered with improper messages will not cause a problem. An error handler that wants to diagnose improper messages can use a receiver on the invalid channel to detect messages as they become available.\n\n...\nRead the entire pattern in the book [Enterprise Integration Patterns](/books1.html)\n\n**Related patterns:**\n\n[*Command Message*](CommandMessage.html), [*Correlation Identifier*](CorrelationIdentifier.html), [*Datatype Channel*](DatatypeChannel.html), [*Dead Letter Channel*](DeadLetterChannel.html), [*Message*](Message.html), [*Message Channel*](MessageChannel.html), [*Message Sequence*](MessageSequence.html), [*Messaging*](Messaging.html), [*Service Activator*](MessagingAdapter.html), [*Messaging Gateway*](MessagingGateway.html), [*JMS Request/Reply Example*](RequestReplyJmsExample.html), [*.NET Request/Reply Example*](RequestReplyNetExample.html), [*Return Address*](ReturnAddress.html)\n\n---\n\n## Integration Pattern Language\n\n[Message Construct.](MessageConstructionIntro.html)\n\n[Message](Message.html)\n\n[Command Message](CommandMessage.html)\n\n[Document Message](DocumentMessage.html)\n\n[Event Message](EventMessage.html)\n\n[Request-Reply](RequestReply.html)\n\n[Return Address](ReturnAddress.html)\n\n[Correlation Identifier](CorrelationIdentifier.html)\n\n[Message Sequence](MessageSequence.html)\n\n[Message Expiration](MessageExpiration.html)\n\n[Format Indicator](FormatIndicator.html)\n\n[Message Routing](MessageRoutingIntro.html)\n\n[Pipes-and-Filters](PipesAndFilters.html)\n\n[Message Router](MessageRouter.html)\n\n[Content-based Router](ContentBasedRouter.html)\n\n[Message Filter](Filter.html)\n\n[Dynamic Router](DynamicRouter.html)\n\n[Recipient List](RecipientList.html)\n\n[Splitter](Sequencer.html)\n\n[Aggregator](Aggregator.html)\n\n[Resequencer](Resequencer.html)\n\n[Composed Msg. Processor](DistributionAggregate.html)\n\n[Scatter-Gather](BroadcastAggregate.html)\n\n[Routing Slip](RoutingTable.html)\n\n[Process Manager](ProcessManager.html)\n\n[Message Broker](MessageBroker.html)\n\n[Message\nTransformation](MessageTransformationIntro.html)\n\n[Message Translator](MessageTranslator.html)\n\n[Envelope Wrapper](EnvelopeWrapper.html)\n\n[Content Enricher](DataEnricher.html)\n\n[Content Filter](ContentFilter.html)\n\n[Claim Check](StoreInLibrary.html)\n\n[Normalizer](Normalizer.html)\n\n[Canonical Data Model](CanonicalDataModel.html)\n\n[Messaging Endpoints](MessagingEndpointsIntro.html)\n\n[Message Endpoint](MessageEndpoint.html)\n\n[Messaging Gateway](MessagingGateway.html)\n\n[Messaging Mapper](MessagingMapper.html)\n\n[Transactional Client](TransactionalClient.html)\n\n[Polling Consumer](PollingConsumer.html)\n\n[Event-driven Consumer](EventDrivenConsumer.html)\n\n[Competing Consumers](CompetingConsumers.html)\n\n[Message Dispatcher](MessageDispatcher.html)\n\n[Selective Consumer](MessageSelector.html)\n\n[Durable Subscriber](DurableSubscription.html)\n\n[Idempotent Receiver](IdempotentReceiver.html)\n\n[Service Activator](MessagingAdapter.html)\n\n[Messaging Channels](MessagingChannelsIntro.html)\n\n[Message Channel](MessageChannel.html)\n\n[Point-to-Point Channel](PointToPointChannel.html)\n\n[Publish-Subscr. Channel](PublishSubscribeChannel.html)\n\n[Datatype Channel](DatatypeChannel.html)\n\n[Invalid Message Channel](InvalidMessageChannel.html)\n\n[Dead Letter Channel](DeadLetterChannel.html)\n\n[Guaranteed Delivery](GuaranteedMessaging.html)\n\n[Channel Adapter](ChannelAdapter.html)\n\n[Messaging Bridge](MessagingBridge.html)\n\n[Message Bus](MessageBus.html)\n\n[Systems Mgmt.](SystemManagementIntro.html)\n\n[Control Bus](ControlBus.html)\n\n[Detour](Detour.html)\n\n[Wire Tap](WireTap.html)\n\n[Message History](MessageHistory.html)\n\n[Message Store](MessageStore.html)\n\n[Smart Proxy](SmartProxy.html)\n\n[Test Message](TestMessage.html)\n\n[Channel Purger](ChannelPurger.html)\n\n- » [Read the latest in My Blog](/ramblings)\n- » [Get more insights from My Articles](/articles.html)\n- » [See me live in my Upcoming Talks](/talks)\n\nYou can reuse the following elements under the [Creative Commons Attribution](http://creativecommons.org/licenses/by/4.0/) license: pattern icon, pattern name, problem and solution statements (in bold), and the sketch. Other portions are protected by copyright.\n\n[Enterprise Integration Patterns](https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20)\nThe de-facto language for designing asynchronous, distributed systems. Over 100,000 copies sold.\n\n[The Software Architect Elevator](https://www.architectelevator.com/book)\n\n Rethink the role of architects as a connecting element across organizational layers. Acquire the technical, communication, and organizational skills to succeed in this new role.\n\n[Cloud Strategy](https://www.cloudstrategybook.com)\n\n Make your cloud migration a success by translating high-level goals into conscious decisions with well-understood trade-offs.\n\n[Platform Strategy](https://www.platformstrategybook.info)\n\n Platforms can boost innovation through harmonization, but they aren't easy to build. Learn from over a decade of designing and rolling out IT platforms.", "znaku_textu": 6393, "slov": 527, "odkazu": 108, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/InvalidMessageChannel.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 06:04:17", "sha256": "3865c2583cffca54da97244d8fab6bd3779da1686077418810ae21283c1e24e3", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://creativecommons.org/licenses/by/4.0/", "https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "https://www.architectelevator.com/book", "https://www.cloudstrategybook.com/", "https://www.platformstrategybook.info/"]} {"url": "https://www.enterpriseintegrationpatterns.com/Message.html", "titulek": "Message - Enterprise Integration Patterns", "h1": "", "popis": "How can two applications connected by a message channel exchange a piece of information?", "klicova_slova": "Message,integration, messaging, events, patterns, event-driven, coupling, eai, middleware, application integration, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns", "og:title": "Message - Enterprise Integration Patterns", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/Message.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/MessageSolution.gif"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Integration Pattern Language"}], "markdown": "Messaging Patterns\n\n[Messaging Patterns](index.html)\n\n- [Integration Styles](IntegrationStylesIntro.html)\n- [Messaging Systems](MessagingComponentsIntro.html)\n- [Messaging Channels](MessagingChannelsIntro.html)\n- [Message Construction](MessageConstructionIntro.html)\n- [Interlude: Simple Messaging](SimpleMessagingIntro.html)\n- [Message Routing](MessageRoutingIntro.html)\n- [Message Transformation](MessageTransformationIntro.html)\n- [Interlude: Composed Messaging](ComposedMessagingExample.html)\n- [Messaging Endpoints](MessagingEndpointsIntro.html)\n- [System Management](SystemManagementIntro.html)\n- Interlude: Systems Management Example\n- Integration Patterns in Practice\n- Concluding Remarks\n- Appendices\n\n| | Message[Messaging Patterns](index.html) » [Messaging Systems](MessagingComponentsIntro.html) | [Contents](toc.html)[⇐ Prev](MessageChannel.html)[Next ⇒](PipesAndFilters.html) |\n| --- | --- | --- |\n\nAn enterprise has two separate applications that are communicating via [*Messaging*](Messaging.html), using a [*Message Channel*](MessageChannel.html) that connects them.\n\nHow can two applications connected by a message channel exchange a piece of information?\n\nPackage the information into a *Message*, a data record that the messaging system can transmit through a message channel.\n\nThus any data that is to be transmitted via a messaging system must be converted into one or more messages that can be sent through messaging channels.\n\nA message consists of two basic parts:\n\n1. **Header** – Information used by the messaging system that describes the data being transmitted, its origin, its destination, and so on.\n2. **Body** – The data being transmitted; generally ignored by the messaging system and simply transmitted as-is.\n\n...\nRead the entire pattern in the book [Enterprise Integration Patterns](/books1.html)\n\n**Related patterns:**\n\n[*Canonical Data Model*](CanonicalDataModel.html), [*Command Message*](CommandMessage.html), [*Document Message*](DocumentMessage.html), [*Event Message*](EventMessage.html), [*Message Channel*](MessageChannel.html), [*Message Expiration*](MessageExpiration.html), [*Message Sequence*](MessageSequence.html), [*Messaging*](Messaging.html), [*Request-Reply*](RequestReply.html)\n\n---\n\n## Integration Pattern Language\n\n[Message Construct.](MessageConstructionIntro.html)\n\n[Message](Message.html)\n\n[Command Message](CommandMessage.html)\n\n[Document Message](DocumentMessage.html)\n\n[Event Message](EventMessage.html)\n\n[Request-Reply](RequestReply.html)\n\n[Return Address](ReturnAddress.html)\n\n[Correlation Identifier](CorrelationIdentifier.html)\n\n[Message Sequence](MessageSequence.html)\n\n[Message Expiration](MessageExpiration.html)\n\n[Format Indicator](FormatIndicator.html)\n\n[Message Routing](MessageRoutingIntro.html)\n\n[Pipes-and-Filters](PipesAndFilters.html)\n\n[Message Router](MessageRouter.html)\n\n[Content-based Router](ContentBasedRouter.html)\n\n[Message Filter](Filter.html)\n\n[Dynamic Router](DynamicRouter.html)\n\n[Recipient List](RecipientList.html)\n\n[Splitter](Sequencer.html)\n\n[Aggregator](Aggregator.html)\n\n[Resequencer](Resequencer.html)\n\n[Composed Msg. Processor](DistributionAggregate.html)\n\n[Scatter-Gather](BroadcastAggregate.html)\n\n[Routing Slip](RoutingTable.html)\n\n[Process Manager](ProcessManager.html)\n\n[Message Broker](MessageBroker.html)\n\n[Message\nTransformation](MessageTransformationIntro.html)\n\n[Message Translator](MessageTranslator.html)\n\n[Envelope Wrapper](EnvelopeWrapper.html)\n\n[Content Enricher](DataEnricher.html)\n\n[Content Filter](ContentFilter.html)\n\n[Claim Check](StoreInLibrary.html)\n\n[Normalizer](Normalizer.html)\n\n[Canonical Data Model](CanonicalDataModel.html)\n\n[Messaging Endpoints](MessagingEndpointsIntro.html)\n\n[Message Endpoint](MessageEndpoint.html)\n\n[Messaging Gateway](MessagingGateway.html)\n\n[Messaging Mapper](MessagingMapper.html)\n\n[Transactional Client](TransactionalClient.html)\n\n[Polling Consumer](PollingConsumer.html)\n\n[Event-driven Consumer](EventDrivenConsumer.html)\n\n[Competing Consumers](CompetingConsumers.html)\n\n[Message Dispatcher](MessageDispatcher.html)\n\n[Selective Consumer](MessageSelector.html)\n\n[Durable Subscriber](DurableSubscription.html)\n\n[Idempotent Receiver](IdempotentReceiver.html)\n\n[Service Activator](MessagingAdapter.html)\n\n[Messaging Channels](MessagingChannelsIntro.html)\n\n[Message Channel](MessageChannel.html)\n\n[Point-to-Point Channel](PointToPointChannel.html)\n\n[Publish-Subscr. Channel](PublishSubscribeChannel.html)\n\n[Datatype Channel](DatatypeChannel.html)\n\n[Invalid Message Channel](InvalidMessageChannel.html)\n\n[Dead Letter Channel](DeadLetterChannel.html)\n\n[Guaranteed Delivery](GuaranteedMessaging.html)\n\n[Channel Adapter](ChannelAdapter.html)\n\n[Messaging Bridge](MessagingBridge.html)\n\n[Message Bus](MessageBus.html)\n\n[Systems Mgmt.](SystemManagementIntro.html)\n\n[Control Bus](ControlBus.html)\n\n[Detour](Detour.html)\n\n[Wire Tap](WireTap.html)\n\n[Message History](MessageHistory.html)\n\n[Message Store](MessageStore.html)\n\n[Smart Proxy](SmartProxy.html)\n\n[Test Message](TestMessage.html)\n\n[Channel Purger](ChannelPurger.html)\n\n- » [Read the latest in My Blog](/ramblings)\n- » [Get more insights from My Articles](/articles.html)\n- » [See me live in my Upcoming Talks](/talks)\n\nYou can reuse the following elements under the [Creative Commons Attribution](http://creativecommons.org/licenses/by/4.0/) license: pattern icon, pattern name, problem and solution statements (in bold), and the sketch. Other portions are protected by copyright.\n\n[Enterprise Integration Patterns](https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20)\nThe de-facto language for designing asynchronous, distributed systems. Over 100,000 copies sold.\n\n[The Software Architect Elevator](https://www.architectelevator.com/book)\n\n Rethink the role of architects as a connecting element across organizational layers. Acquire the technical, communication, and organizational skills to succeed in this new role.\n\n[Cloud Strategy](https://www.cloudstrategybook.com)\n\n Make your cloud migration a success by translating high-level goals into conscious decisions with well-understood trade-offs.\n\n[Platform Strategy](https://www.platformstrategybook.info)\n\n Platforms can boost innovation through harmonization, but they aren't easy to build. Learn from over a decade of designing and rolling out IT platforms.", "znaku_textu": 6181, "slov": 511, "odkazu": 108, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/Message.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 06:03:27", "sha256": "76e03593d1fab869622593e4b0c27139b18ade8ccfd509ccc32be72e0a45185c", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://creativecommons.org/licenses/by/4.0/", "https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "https://www.architectelevator.com/book", "https://www.cloudstrategybook.com/", "https://www.platformstrategybook.info/"]} {"url": "https://www.enterpriseintegrationpatterns.com/MessageBroker.html", "titulek": "Message Broker - Enterprise Integration Patterns", "h1": "", "popis": "How can you decouple the destination of a message from the sender and maintain central control over the flow of messages?", "klicova_slova": "Message Broker,integration, messaging, events, patterns, event-driven, coupling, eai, middleware, application integration, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns", "og:title": "Message Broker - Enterprise Integration Patterns", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/MessageBroker.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/MessageBroker.png"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Integration Pattern Language"}], "markdown": "| | Message Broker[Messaging Patterns](index.html) » [Message Routing](MessageRoutingIntro.html) | [Contents](toc.html)[⇐ Prev](ProcessManager.html)[Next ⇒](MessageTransformationIntro.html) |\n| --- | --- | --- |\n\nMany patterns in this chapter present ways to route messages to the proper destination without the originating application being aware of the ultimate destination of the message. Most of the patterns focused on specific types of routing logic. However, in aggregate, these patterns solve a bigger problem.\n\nHow can you decouple the destination of a message from the sender and maintain central control over the flow of messages?\n\nUse a central *Message Broker* that can receive messages from multiple destinations, determine the correct destination and route the message to the correct channel. Implement the internals of the *Message Broker* using the design patterns presented in this chapter.\n\nUsing a central *Message Broker* is sometimes referred to as *hub-and-spoke* architectural style, which appears to be a descriptive name when looking at the diagram above.\n\nThe *Message Broker* pattern has a slightly different scope than most of the other patterns presented in this chapter. It is an architecture pattern as opposed to individual design patterns we presented in this chapter. As such, it is comparable to the [*Pipes and Filters*](PipesAndFilters.html) architectural style, which gives us a fundamental way of chaining components together to form more complex message flows. Rather than just chaining individual components, the *Message Broker* concerns itself with larger solutions and helps us deal with the inevitable complexity of managing such a system.\n\nThe *Message Broker* is not a monolithic component. Internally, it uses many of the message routing patterns presented in this chapter. So once you decide to use the *Message Broker* as an architectural pattern, you can choose the correct [*Message Router*](MessageRouter.html) design patterns to implement the *Message Broker*.\n\nThe advantage of central maintenance of a *Message Broker* can also turn into a disadvantage. Routing all messages through a single *Message Broker* can turn the *Message Broker* into a serious bottleneck. A number of techniques can help us alleviate this problem. For example, the *Message Broker* pattern only tells us to *develop* a single entity that performs routing. It does not prescribe how many instances of this entity we deploy in the system at deployment time. If the *Message Broker* design is stateless (i.e. if it is composed only of stateless components), we can easily deploy multiple instances of the broker to improve throughput. The properties of a [*Point-to-Point Channel*](PointToPointChannel.html) ensure that only one instance of the *Message Broker* consumes any incoming message. Also, as in most real-life situations, the ultimate solution ends up being a combination of a patterns. Likewise, in many complex integration solutions it may make sense to design multiple *Message Broker* components, each specializing on a specific portion of the solution. This avoids creating the über-*Message Broker* that is so complex as to become unmaintainable. The apparent flip-side is that we no longer have a single point of maintenance and could create a new form of \"*Message Broker* spaghetti\". One excellent architectural style to use a combination of *Message Broker*s is a *Message Broker* *hierarchy* (see picture). This configuration resembles a network configuration composed out of individual subnets. If a message has to travel only between two applications inside a \"subnet\" the local *Message Broker* can manage the routing of the message. If the message is destined for another subnet, the local *Message Broker* can pass the message to the central *Message Broker* who then determines the ultimate destination. The central *Message Broker* performs the same functions as a local *Message Broker*, but instead of decoupling individual applications it decouples whole subsystems consisting of multiple applications.\n\n...\nRead the entire pattern in the book [Enterprise Integration Patterns](/books1.html)\n\n**Related patterns:**\n\n[*Canonical Data Model*](CanonicalDataModel.html), [*Event-Driven Consumer*](EventDrivenConsumer.html), [*Message Channel*](MessageChannel.html), [*Message Endpoint*](MessageEndpoint.html), [*Message Router*](MessageRouter.html), [*Pipes and Filters*](PipesAndFilters.html), [*Point-to-Point Channel*](PointToPointChannel.html), [*Publish-Subscribe Channel*](PublishSubscribeChannel.html), [*Recipient List*](RecipientList.html)\n\n**Further reading:**\n\n- [Hub and Spoke [or] The Art of Message Broker Maintenance](/ramblings/03_hubandspoke.html)\n\n---\n\n## Integration Pattern Language\n\n[Message Construct.](MessageConstructionIntro.html)\n\n[Message](Message.html)\n\n[Command Message](CommandMessage.html)\n\n[Document Message](DocumentMessage.html)\n\n[Event Message](EventMessage.html)\n\n[Request-Reply](RequestReply.html)\n\n[Return Address](ReturnAddress.html)\n\n[Correlation Identifier](CorrelationIdentifier.html)\n\n[Message Sequence](MessageSequence.html)\n\n[Message Expiration](MessageExpiration.html)\n\n[Format Indicator](FormatIndicator.html)\n\n[Message Routing](MessageRoutingIntro.html)\n\n[Pipes-and-Filters](PipesAndFilters.html)\n\n[Message Router](MessageRouter.html)\n\n[Content-based Router](ContentBasedRouter.html)\n\n[Message Filter](Filter.html)\n\n[Dynamic Router](DynamicRouter.html)\n\n[Recipient List](RecipientList.html)\n\n[Splitter](Sequencer.html)\n\n[Aggregator](Aggregator.html)\n\n[Resequencer](Resequencer.html)\n\n[Composed Msg. Processor](DistributionAggregate.html)\n\n[Scatter-Gather](BroadcastAggregate.html)\n\n[Routing Slip](RoutingTable.html)\n\n[Process Manager](ProcessManager.html)\n\n[Message Broker](MessageBroker.html)\n\n[Message\nTransformation](MessageTransformationIntro.html)\n\n[Message Translator](MessageTranslator.html)\n\n[Envelope Wrapper](EnvelopeWrapper.html)\n\n[Content Enricher](DataEnricher.html)\n\n[Content Filter](ContentFilter.html)\n\n[Claim Check](StoreInLibrary.html)\n\n[Normalizer](Normalizer.html)\n\n[Canonical Data Model](CanonicalDataModel.html)\n\n[Messaging Endpoints](MessagingEndpointsIntro.html)\n\n[Message Endpoint](MessageEndpoint.html)\n\n[Messaging Gateway](MessagingGateway.html)\n\n[Messaging Mapper](MessagingMapper.html)\n\n[Transactional Client](TransactionalClient.html)\n\n[Polling Consumer](PollingConsumer.html)\n\n[Event-driven Consumer](EventDrivenConsumer.html)\n\n[Competing Consumers](CompetingConsumers.html)\n\n[Message Dispatcher](MessageDispatcher.html)\n\n[Selective Consumer](MessageSelector.html)\n\n[Durable Subscriber](DurableSubscription.html)\n\n[Idempotent Receiver](IdempotentReceiver.html)\n\n[Service Activator](MessagingAdapter.html)\n\n[Messaging Channels](MessagingChannelsIntro.html)\n\n[Message Channel](MessageChannel.html)\n\n[Point-to-Point Channel](PointToPointChannel.html)\n\n[Publish-Subscr. Channel](PublishSubscribeChannel.html)\n\n[Datatype Channel](DatatypeChannel.html)\n\n[Invalid Message Channel](InvalidMessageChannel.html)\n\n[Dead Letter Channel](DeadLetterChannel.html)\n\n[Guaranteed Delivery](GuaranteedMessaging.html)\n\n[Channel Adapter](ChannelAdapter.html)\n\n[Messaging Bridge](MessagingBridge.html)\n\n[Message Bus](MessageBus.html)\n\n[Systems Mgmt.](SystemManagementIntro.html)\n\n[Control Bus](ControlBus.html)\n\n[Detour](Detour.html)\n\n[Wire Tap](WireTap.html)\n\n[Message History](MessageHistory.html)\n\n[Message Store](MessageStore.html)\n\n[Smart Proxy](SmartProxy.html)\n\n[Test Message](TestMessage.html)\n\n[Channel Purger](ChannelPurger.html)", "znaku_textu": 7389, "slov": 816, "odkazu": 109, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/MessageBroker.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 06:03:50", "sha256": "ddc6d825aa8a17ef30a18ff8178085022c9424432a6082947f9f7983826f79ca", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://creativecommons.org/licenses/by/4.0/", "https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "https://www.architectelevator.com/book", "https://www.cloudstrategybook.com/", "https://www.platformstrategybook.info/"]} {"url": "https://www.enterpriseintegrationpatterns.com/MessageBus.html", "titulek": "Message Bus - Enterprise Integration Patterns", "h1": "", "popis": "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?", "klicova_slova": "Message Bus,integration, messaging, events, patterns, event-driven, coupling, eai, middleware, application integration, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns", "og:title": "Message Bus - Enterprise Integration Patterns", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/MessageBus.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/MessageBusSolution.gif"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Integration Pattern Language"}], "markdown": "| | Message Bus[Messaging Patterns](index.html) » [Messaging Channels](MessagingChannelsIntro.html) | [Contents](toc.html)[⇐ Prev](MessagingBridge.html)[Next ⇒](MessageConstructionIntro.html) |\n| --- | --- | --- |\n\nAn enterprise contains several existing systems that must be able to share data and operate in a unified manner in response to a set of common business requests.\n\nWhat 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?\n\nStructure the connecting middleware between these applications as a *Message Bus* that enables them to work together using messaging.\n\nA *Message Bus* is a combination of a common data model, a common command set, and a messaging infrastructure to allow different systems to communicate through a shared set of interfaces. This is analogous to a communications bus in a computer system, which serves as the focal point for communication between the CPU, main memory, and peripherals. Just as in the hardware analogy, there are a number of pieces that come together to form the message bus:\n\n- **Common communication infrastructure** — Just as the physical pins and wires of a PCI bus provide a common, well-known physical infrastructure for a PC, a common infrastructure must serve the same purpose in a message bus. Typically, a messaging system is chosen to serve as the physical communications infrastructure, providing a cross-platform, cross-language universal adapter between the applications. The infrastructure may include [*Message Router*](MessageRouter.html) capabilities to facilitate the correct routing of messages from system to system. Another common option is to use [*Publish-Subscribe Channel*](PublishSubscribeChannel.html) s to facilitate sending messages to all receivers.\n- **Adapters** — The different systems must find a way to interface with the message bus. Most commonly, this is done with commercial or custom [*Channel Adapter*](ChannelAdapter.html) s and [*Service Activator*](MessagingAdapter.html) s that can handle things like invoking CICS transactions with the proper parameters, or representing the general data structures flowing on the bus in the specific and particular way they should be represented inside each system. This also requires a [*Canonical Data Model*](CanonicalDataModel.html) that all systems can agree on.\n- **Common Command Structure** — Just like PC architectures have a common set of commands to represent the different operations possible on the physical bus (read bytes from an address, write bytes to an address), there needs to be common commands that are understood by all the participants in the *Message Bus* . [*Command Message*](CommandMessage.html) illustrates how this feature works. Another common implementation for this is the [*Datatype Channel*](DatatypeChannel.html) , where a [*Message Router*](MessageRouter.html) makes an explicit decision as to how to route particular messages (like Purchase Orders) to particular endpoints. It is at the end that the analogy breaks down, since the level of the messages carried on the bus are much more fine-grained than the “read/write” kinds of messages carried on a physical bus.\n\n...\nRead the entire pattern in the book [Enterprise Integration Patterns](/books1.html)\n\n**Related patterns:**\n\n[*Canonical Data Model*](CanonicalDataModel.html), [*Channel Adapter*](ChannelAdapter.html), [*Command Message*](CommandMessage.html), [*Datatype Channel*](DatatypeChannel.html), [*Message Router*](MessageRouter.html), [*Service Activator*](MessagingAdapter.html), [*Publish-Subscribe Channel*](PublishSubscribeChannel.html)\n\n---\n\n## Integration Pattern Language\n\n[Message Construct.](MessageConstructionIntro.html)\n\n[Message](Message.html)\n\n[Command Message](CommandMessage.html)\n\n[Document Message](DocumentMessage.html)\n\n[Event Message](EventMessage.html)\n\n[Request-Reply](RequestReply.html)\n\n[Return Address](ReturnAddress.html)\n\n[Correlation Identifier](CorrelationIdentifier.html)\n\n[Message Sequence](MessageSequence.html)\n\n[Message Expiration](MessageExpiration.html)\n\n[Format Indicator](FormatIndicator.html)\n\n[Message Routing](MessageRoutingIntro.html)\n\n[Pipes-and-Filters](PipesAndFilters.html)\n\n[Message Router](MessageRouter.html)\n\n[Content-based Router](ContentBasedRouter.html)\n\n[Message Filter](Filter.html)\n\n[Dynamic Router](DynamicRouter.html)\n\n[Recipient List](RecipientList.html)\n\n[Splitter](Sequencer.html)\n\n[Aggregator](Aggregator.html)\n\n[Resequencer](Resequencer.html)\n\n[Composed Msg. Processor](DistributionAggregate.html)\n\n[Scatter-Gather](BroadcastAggregate.html)\n\n[Routing Slip](RoutingTable.html)\n\n[Process Manager](ProcessManager.html)\n\n[Message Broker](MessageBroker.html)\n\n[Message\nTransformation](MessageTransformationIntro.html)\n\n[Message Translator](MessageTranslator.html)\n\n[Envelope Wrapper](EnvelopeWrapper.html)\n\n[Content Enricher](DataEnricher.html)\n\n[Content Filter](ContentFilter.html)\n\n[Claim Check](StoreInLibrary.html)\n\n[Normalizer](Normalizer.html)\n\n[Canonical Data Model](CanonicalDataModel.html)\n\n[Messaging Endpoints](MessagingEndpointsIntro.html)\n\n[Message Endpoint](MessageEndpoint.html)\n\n[Messaging Gateway](MessagingGateway.html)\n\n[Messaging Mapper](MessagingMapper.html)\n\n[Transactional Client](TransactionalClient.html)\n\n[Polling Consumer](PollingConsumer.html)\n\n[Event-driven Consumer](EventDrivenConsumer.html)\n\n[Competing Consumers](CompetingConsumers.html)\n\n[Message Dispatcher](MessageDispatcher.html)\n\n[Selective Consumer](MessageSelector.html)\n\n[Durable Subscriber](DurableSubscription.html)\n\n[Idempotent Receiver](IdempotentReceiver.html)\n\n[Service Activator](MessagingAdapter.html)\n\n[Messaging Channels](MessagingChannelsIntro.html)\n\n[Message Channel](MessageChannel.html)\n\n[Point-to-Point Channel](PointToPointChannel.html)\n\n[Publish-Subscr. Channel](PublishSubscribeChannel.html)\n\n[Datatype Channel](DatatypeChannel.html)\n\n[Invalid Message Channel](InvalidMessageChannel.html)\n\n[Dead Letter Channel](DeadLetterChannel.html)\n\n[Guaranteed Delivery](GuaranteedMessaging.html)\n\n[Channel Adapter](ChannelAdapter.html)\n\n[Messaging Bridge](MessagingBridge.html)\n\n[Message Bus](MessageBus.html)\n\n[Systems Mgmt.](SystemManagementIntro.html)\n\n[Control Bus](ControlBus.html)\n\n[Detour](Detour.html)\n\n[Wire Tap](WireTap.html)\n\n[Message History](MessageHistory.html)\n\n[Message Store](MessageStore.html)\n\n[Smart Proxy](SmartProxy.html)\n\n[Test Message](TestMessage.html)\n\n[Channel Purger](ChannelPurger.html)", "znaku_textu": 6406, "slov": 663, "odkazu": 108, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/MessageBus.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 06:52:55", "sha256": "95b205a5f55cf1116fc65a3973f8a6fb623bd7032f6e3434ec0782f634484dc9", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://creativecommons.org/licenses/by/4.0/", "https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "https://www.architectelevator.com/book", "https://www.cloudstrategybook.com/", "https://www.platformstrategybook.info/"]} {"url": "https://www.enterpriseintegrationpatterns.com/MessageChannel.html", "titulek": "Message Channel - Enterprise Integration Patterns", "h1": "", "popis": "How does one application communicate with another using messaging?", "klicova_slova": "Message Channel,integration, messaging, events, patterns, event-driven, coupling, eai, middleware, application integration, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns", "og:title": "Message Channel - Enterprise Integration Patterns", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/MessageChannel.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/MessageChannelSolution.gif"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Integration Pattern Language"}], "markdown": "| | Message Channel[Messaging Patterns](index.html) » [Messaging Systems](MessagingComponentsIntro.html) | [Contents](toc.html)[⇐ Prev](MessagingComponentsIntro.html)[Next ⇒](Message.html) |\n| --- | --- | --- |\n\nAn enterprise has two separate applications that need to communicate, preferably by using [*Messaging*](Messaging.html).\n\nHow does one application communicate with another using messaging?\n\nConnect the applications using a *Message Channel*, where one application writes information to the channel and the other one reads that information from the channel.\n\nWhen an application has information to communicate, it doesn't just fling the information into the messaging system, it adds the information to a particular *Message Channel*. An application receiving information doesn't just pick it up at random from the messaging system; it retrieves the information from a particular *Message Channel*.\n\nThe application adding info doesn't necessarily know what particular application will end up retrieving the info, but it can be assured that whatever application retrieves the info, that application will be interested in the info. This is because the messaging system has different *Message Channel*s for different types of information the applications want to communicate. When an application sends information, it doesn't randomly add the info to any channel available; it adds the info to a channel whose specific purpose is to communicate that sort of information. Likewise, an application that wants to receive particular information doesn't pull info off some random channel; it selects what channel to get information from based on what type of information it wants.\n\n...\nRead the entire pattern in the book [Enterprise Integration Patterns](/books1.html)\n\n**Related patterns:**\n\n[*Channel Adapter*](ChannelAdapter.html), [*Datatype Channel*](DatatypeChannel.html), [*Invalid Message Channel*](InvalidMessageChannel.html), [*Message Bus*](MessageBus.html), [*Message Endpoint*](MessageEndpoint.html), [*Selective Consumer*](MessageSelector.html), [*Messaging*](Messaging.html), [*Introduction to Messaging Channels*](MessagingChannelsIntro.html), [*Point-to-Point Channel*](PointToPointChannel.html), [*Publish-Subscribe Channel*](PublishSubscribeChannel.html)\n\n---\n\n## Integration Pattern Language\n\n[Message Construct.](MessageConstructionIntro.html)\n\n[Message](Message.html)\n\n[Command Message](CommandMessage.html)\n\n[Document Message](DocumentMessage.html)\n\n[Event Message](EventMessage.html)\n\n[Request-Reply](RequestReply.html)\n\n[Return Address](ReturnAddress.html)\n\n[Correlation Identifier](CorrelationIdentifier.html)\n\n[Message Sequence](MessageSequence.html)\n\n[Message Expiration](MessageExpiration.html)\n\n[Format Indicator](FormatIndicator.html)\n\n[Message Routing](MessageRoutingIntro.html)\n\n[Pipes-and-Filters](PipesAndFilters.html)\n\n[Message Router](MessageRouter.html)\n\n[Content-based Router](ContentBasedRouter.html)\n\n[Message Filter](Filter.html)\n\n[Dynamic Router](DynamicRouter.html)\n\n[Recipient List](RecipientList.html)\n\n[Splitter](Sequencer.html)\n\n[Aggregator](Aggregator.html)\n\n[Resequencer](Resequencer.html)\n\n[Composed Msg. Processor](DistributionAggregate.html)\n\n[Scatter-Gather](BroadcastAggregate.html)\n\n[Routing Slip](RoutingTable.html)\n\n[Process Manager](ProcessManager.html)\n\n[Message Broker](MessageBroker.html)\n\n[Message\nTransformation](MessageTransformationIntro.html)\n\n[Message Translator](MessageTranslator.html)\n\n[Envelope Wrapper](EnvelopeWrapper.html)\n\n[Content Enricher](DataEnricher.html)\n\n[Content Filter](ContentFilter.html)\n\n[Claim Check](StoreInLibrary.html)\n\n[Normalizer](Normalizer.html)\n\n[Canonical Data Model](CanonicalDataModel.html)\n\n[Messaging Endpoints](MessagingEndpointsIntro.html)\n\n[Message Endpoint](MessageEndpoint.html)\n\n[Messaging Gateway](MessagingGateway.html)\n\n[Messaging Mapper](MessagingMapper.html)\n\n[Transactional Client](TransactionalClient.html)\n\n[Polling Consumer](PollingConsumer.html)\n\n[Event-driven Consumer](EventDrivenConsumer.html)\n\n[Competing Consumers](CompetingConsumers.html)\n\n[Message Dispatcher](MessageDispatcher.html)\n\n[Selective Consumer](MessageSelector.html)\n\n[Durable Subscriber](DurableSubscription.html)\n\n[Idempotent Receiver](IdempotentReceiver.html)\n\n[Service Activator](MessagingAdapter.html)\n\n[Messaging Channels](MessagingChannelsIntro.html)\n\n[Message Channel](MessageChannel.html)\n\n[Point-to-Point Channel](PointToPointChannel.html)\n\n[Publish-Subscr. Channel](PublishSubscribeChannel.html)\n\n[Datatype Channel](DatatypeChannel.html)\n\n[Invalid Message Channel](InvalidMessageChannel.html)\n\n[Dead Letter Channel](DeadLetterChannel.html)\n\n[Guaranteed Delivery](GuaranteedMessaging.html)\n\n[Channel Adapter](ChannelAdapter.html)\n\n[Messaging Bridge](MessagingBridge.html)\n\n[Message Bus](MessageBus.html)\n\n[Systems Mgmt.](SystemManagementIntro.html)\n\n[Control Bus](ControlBus.html)\n\n[Detour](Detour.html)\n\n[Wire Tap](WireTap.html)\n\n[Message History](MessageHistory.html)\n\n[Message Store](MessageStore.html)\n\n[Smart Proxy](SmartProxy.html)\n\n[Test Message](TestMessage.html)\n\n[Channel Purger](ChannelPurger.html)", "znaku_textu": 4998, "slov": 431, "odkazu": 108, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/MessageChannel.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 06:04:13", "sha256": "f41fc68d6347d0dc4654778f14f973682dce4ade3dcc4fd4cb99e54bdbbb428f", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://creativecommons.org/licenses/by/4.0/", "https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "https://www.architectelevator.com/book", "https://www.cloudstrategybook.com/", "https://www.platformstrategybook.info/"]} {"url": "https://www.enterpriseintegrationpatterns.com/MessageConstructionIntro.html", "titulek": "Introduction to Message Construction - Enterprise Integration Patterns", "h1": "", "popis": "In Introduction to Messaging Systems, we discussed Message. When two applications wish to exchange a piece of data, they do so by wrapping it in a message. Whereas a Message Channel cannot transmit raw data per se, it can transmit the data wrapped in a message.", "klicova_slova": "Introduction to Message Construction,integration, messaging, events, patterns, event-driven, coupling, eai, middleware, application integration, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns", "og:title": "Introduction to Message Construction - Enterprise Integration Patterns", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/MessageConstructionIntro.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/eip1_patterns_wide.png"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Integration Pattern Language"}], "markdown": "| | Introduction to Message Construction[Messaging Patterns](index.html) » [Message Construction](MessageConstructionIntro.html) | [Contents](toc.html)[⇐ Prev](MessageBus.html)[Next ⇒](CommandMessage.html) |\n| --- | --- | --- |\n\nIn [*Introduction to Messaging Systems*](MessagingComponentsIntro.html), we discussed [*Message*](Message.html). When two applications wish to exchange a piece of data, they do so by wrapping it in a message. Whereas a [*Message Channel*](MessageChannel.html) cannot transmit raw data per se, it can transmit the data wrapped in a message.\n\nDeciding to create a [*Message*](Message.html) and send it raises several other issues:\n\n**Message intent** — Messages are ultimately just bundles of data, but the sender can have different intentions for what it expects the receiver to do with the message. It can send a [*Command Message*](CommandMessage.html), specifying a function or method on the receiver that the sender wishes to invoke. The sender is telling the receiver what code to run. It can send a [*Document Message*](DocumentMessage.html), enabling the sender to transmit one of its data structures to the receiver. The sender is passing the data to the receiver, but not specifying what the receiver should necessarily do with it. Or it can send an [*Event Message*](EventMessage.html), notifying the receiver of a change in the sender. The sender is not telling the receiver how to react, just providing notification.\n\n**Returning a response** — When an application sends a message, it often expects a response confirming that the message has been processed and providing the result. This is a [*Request-Reply*](RequestReply.html) scenario. The request is usually a [*Command Message*](CommandMessage.html), and the reply is a [*Document Message*](DocumentMessage.html) containing a result value or an exception. The requestor should specify a [*Return Address*](ReturnAddress.html) in the request to tell the replier what channel to use to transmit the reply. The requestor may have multiple requests in process, so the reply should contain a [*Correlation Identifier*](CorrelationIdentifier.html) that specifies which request this reply corresponds to. [[JMS11, pp.27-28](http://java.sun.com/products/jms/docs.html)]\n\nThere are two common [*Request-Reply*](RequestReply.html) scenarios worth noting that both involve a [*Command Message*](CommandMessage.html) request and a corresponding [*Document Message*](DocumentMessage.html) reply. In the first scenario, *Messaging RPC*, the requestor not only wants to invoke a function on the replier, but also wants the return value from the function. This is how applications perform an RPC (Remote Procedure Call) using [*Messaging*](Messaging.html). In the other scenario, *Messaging Query*, the requestor is performing a query that the replier will execute and return the results in the reply. This is how applications use messaging to perform a query remotely.\n\n**Huge amounts of data** — Sometimes applications want to transfer a really large data structure, one that may not fit comfortably in a single message. In this case, break the data into more managable chunks and send them as a [*Message Sequence*](MessageSequence.html). The chunks have to be sent as a sequence, and not just a bunch of messages, so that the receiver can reconstruct the original data structure.\n\n**Slow messages** — A concern with messaging is that the sender often does not know how long it will take for the receiver to receive the message. Yet the message contents may be time-sensitive, such that if the message isn’t received by a deadline, it should just be ignored and discarded. In this situation, the sender can use [*Message Expiration*](MessageExpiration.html) to specify an expiration date. If the messaging system cannot deliver a message by its expiration, it should discard the message. If a receiver gets a message after its expiration, it should discard the message.\n\nSo it’s not enough to decide to use a [*Message*](Message.html); anytime data needs to be transferred, it will be done through a message. This chapter will explain the other decisions that go into making messages work.\n\n## Integration Pattern Language\n\n[Message Construct.](MessageConstructionIntro.html)\n\n[Message](Message.html)\n\n[Command Message](CommandMessage.html)\n\n[Document Message](DocumentMessage.html)\n\n[Event Message](EventMessage.html)\n\n[Request-Reply](RequestReply.html)\n\n[Return Address](ReturnAddress.html)\n\n[Correlation Identifier](CorrelationIdentifier.html)\n\n[Message Sequence](MessageSequence.html)\n\n[Message Expiration](MessageExpiration.html)\n\n[Format Indicator](FormatIndicator.html)\n\n[Message Routing](MessageRoutingIntro.html)\n\n[Pipes-and-Filters](PipesAndFilters.html)\n\n[Message Router](MessageRouter.html)\n\n[Content-based Router](ContentBasedRouter.html)\n\n[Message Filter](Filter.html)\n\n[Dynamic Router](DynamicRouter.html)\n\n[Recipient List](RecipientList.html)\n\n[Splitter](Sequencer.html)\n\n[Aggregator](Aggregator.html)\n\n[Resequencer](Resequencer.html)\n\n[Composed Msg. Processor](DistributionAggregate.html)\n\n[Scatter-Gather](BroadcastAggregate.html)\n\n[Routing Slip](RoutingTable.html)\n\n[Process Manager](ProcessManager.html)\n\n[Message Broker](MessageBroker.html)\n\n[Message\nTransformation](MessageTransformationIntro.html)\n\n[Message Translator](MessageTranslator.html)\n\n[Envelope Wrapper](EnvelopeWrapper.html)\n\n[Content Enricher](DataEnricher.html)\n\n[Content Filter](ContentFilter.html)\n\n[Claim Check](StoreInLibrary.html)\n\n[Normalizer](Normalizer.html)\n\n[Canonical Data Model](CanonicalDataModel.html)\n\n[Messaging Endpoints](MessagingEndpointsIntro.html)\n\n[Message Endpoint](MessageEndpoint.html)\n\n[Messaging Gateway](MessagingGateway.html)\n\n[Messaging Mapper](MessagingMapper.html)\n\n[Transactional Client](TransactionalClient.html)\n\n[Polling Consumer](PollingConsumer.html)\n\n[Event-driven Consumer](EventDrivenConsumer.html)\n\n[Competing Consumers](CompetingConsumers.html)\n\n[Message Dispatcher](MessageDispatcher.html)\n\n[Selective Consumer](MessageSelector.html)\n\n[Durable Subscriber](DurableSubscription.html)\n\n[Idempotent Receiver](IdempotentReceiver.html)\n\n[Service Activator](MessagingAdapter.html)\n\n[Messaging Channels](MessagingChannelsIntro.html)\n\n[Message Channel](MessageChannel.html)\n\n[Point-to-Point Channel](PointToPointChannel.html)\n\n[Publish-Subscr. Channel](PublishSubscribeChannel.html)\n\n[Datatype Channel](DatatypeChannel.html)\n\n[Invalid Message Channel](InvalidMessageChannel.html)\n\n[Dead Letter Channel](DeadLetterChannel.html)\n\n[Guaranteed Delivery](GuaranteedMessaging.html)\n\n[Channel Adapter](ChannelAdapter.html)\n\n[Messaging Bridge](MessagingBridge.html)\n\n[Message Bus](MessageBus.html)\n\n[Systems Mgmt.](SystemManagementIntro.html)\n\n[Control Bus](ControlBus.html)\n\n[Detour](Detour.html)\n\n[Wire Tap](WireTap.html)\n\n[Message History](MessageHistory.html)\n\n[Message Store](MessageStore.html)\n\n[Smart Proxy](SmartProxy.html)\n\n[Test Message](TestMessage.html)\n\n[Channel Purger](ChannelPurger.html)", "znaku_textu": 6882, "slov": 774, "odkazu": 108, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/MessageConstructionIntro.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 06:03:26", "sha256": "6e406f30907047d22a98c1bf5075272eeeea25db2dd9cd1428b0854c2d71249c", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://java.sun.com/products/jms/docs.html", "https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "https://www.architectelevator.com/book", "https://www.cloudstrategybook.com/", "https://www.platformstrategybook.info/"]} {"url": "https://www.enterpriseintegrationpatterns.com/MessageDispatcher.html", "titulek": "Message Dispatcher - Enterprise Integration Patterns", "h1": "", "popis": "How can multiple consumers on a single channel coordinate their message processing?", "klicova_slova": "Message Dispatcher,integration, messaging, events, patterns, event-driven, coupling, eai, middleware, application integration, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns", "og:title": "Message Dispatcher - Enterprise Integration Patterns", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/MessageDispatcher.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/MessageDispatcher.gif"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Integration Pattern Language"}], "markdown": "Messaging Patterns\n\n[Messaging Patterns](index.html)\n\n- [Integration Styles](IntegrationStylesIntro.html)\n- [Messaging Systems](MessagingComponentsIntro.html)\n- [Messaging Channels](MessagingChannelsIntro.html)\n- [Message Construction](MessageConstructionIntro.html)\n- [Interlude: Simple Messaging](SimpleMessagingIntro.html)\n- [Message Routing](MessageRoutingIntro.html)\n- [Message Transformation](MessageTransformationIntro.html)\n- [Interlude: Composed Messaging](ComposedMessagingExample.html)\n- [Messaging Endpoints](MessagingEndpointsIntro.html)\n- [System Management](SystemManagementIntro.html)\n- Interlude: Systems Management Example\n- Integration Patterns in Practice\n- Concluding Remarks\n- Appendices\n\n| | Message Dispatcher[Messaging Patterns](index.html) » [Messaging Endpoints](MessagingEndpointsIntro.html) | [Contents](toc.html)[⇐ Prev](CompetingConsumers.html)[Next ⇒](MessageSelector.html) |\n| --- | --- | --- |\n\nAn application is using [*Messaging*](Messaging.html). The application needs multiple consumers on a single [*Message Channel*](MessageChannel.html) to work in a coordinated fashion.\n\nHow can multiple consumers on a single channel coordinate their message processing?\n\nCreate a *Message Dispatcher* on a channel that will consume messages from a channel and distribute them to performers.\n\nA *Message Dispatcher* consists of two parts:\n\n1. **Dispatcher** – The object that consumes messages from a channel and distributes each message to a performer.\n2. **Performer** – The object that is given the message by the dispatcher and processes it.\n\nWhen a *Message Dispatcher* receives a message, it obtains a performer and dispatches the message to the performer to process it. A performer can delegate to the rest of its application to help process its message. The performer could be newly created by the dispatcher, or could be selected from a pool of available performers. Each performer can run in its own thread to process messages concurrently. All performers may be appropriate for all messages, or the dispatcher may match a message to a specialized performer based on properties of the message.\n\n*Message Dispatcher Sequence*\n\n...\nRead the entire pattern in the book [Enterprise Integration Patterns](/books1.html)\n\n**Related patterns:**\n\n[*Competing Consumers*](CompetingConsumers.html), [*Datatype Channel*](DatatypeChannel.html), [*Remote Procedure Invocation*](EncapsulatedSynchronousIntegration.html), [*Event-Driven Consumer*](EventDrivenConsumer.html), [*Message Channel*](MessageChannel.html), [*Selective Consumer*](MessageSelector.html), [*Messaging*](Messaging.html), [*Point-to-Point Channel*](PointToPointChannel.html), [*Polling Consumer*](PollingConsumer.html), [*Publish-Subscribe Channel*](PublishSubscribeChannel.html), [*Claim Check*](StoreInLibrary.html), [*Transactional Client*](TransactionalClient.html)\n\n---\n\n## Integration Pattern Language\n\n[Message Construct.](MessageConstructionIntro.html)\n\n[Message](Message.html)\n\n[Command Message](CommandMessage.html)\n\n[Document Message](DocumentMessage.html)\n\n[Event Message](EventMessage.html)\n\n[Request-Reply](RequestReply.html)\n\n[Return Address](ReturnAddress.html)\n\n[Correlation Identifier](CorrelationIdentifier.html)\n\n[Message Sequence](MessageSequence.html)\n\n[Message Expiration](MessageExpiration.html)\n\n[Format Indicator](FormatIndicator.html)\n\n[Message Routing](MessageRoutingIntro.html)\n\n[Pipes-and-Filters](PipesAndFilters.html)\n\n[Message Router](MessageRouter.html)\n\n[Content-based Router](ContentBasedRouter.html)\n\n[Message Filter](Filter.html)\n\n[Dynamic Router](DynamicRouter.html)\n\n[Recipient List](RecipientList.html)\n\n[Splitter](Sequencer.html)\n\n[Aggregator](Aggregator.html)\n\n[Resequencer](Resequencer.html)\n\n[Composed Msg. Processor](DistributionAggregate.html)\n\n[Scatter-Gather](BroadcastAggregate.html)\n\n[Routing Slip](RoutingTable.html)\n\n[Process Manager](ProcessManager.html)\n\n[Message Broker](MessageBroker.html)\n\n[Message\nTransformation](MessageTransformationIntro.html)\n\n[Message Translator](MessageTranslator.html)\n\n[Envelope Wrapper](EnvelopeWrapper.html)\n\n[Content Enricher](DataEnricher.html)\n\n[Content Filter](ContentFilter.html)\n\n[Claim Check](StoreInLibrary.html)\n\n[Normalizer](Normalizer.html)\n\n[Canonical Data Model](CanonicalDataModel.html)\n\n[Messaging Endpoints](MessagingEndpointsIntro.html)\n\n[Message Endpoint](MessageEndpoint.html)\n\n[Messaging Gateway](MessagingGateway.html)\n\n[Messaging Mapper](MessagingMapper.html)\n\n[Transactional Client](TransactionalClient.html)\n\n[Polling Consumer](PollingConsumer.html)\n\n[Event-driven Consumer](EventDrivenConsumer.html)\n\n[Competing Consumers](CompetingConsumers.html)\n\n[Message Dispatcher](MessageDispatcher.html)\n\n[Selective Consumer](MessageSelector.html)\n\n[Durable Subscriber](DurableSubscription.html)\n\n[Idempotent Receiver](IdempotentReceiver.html)\n\n[Service Activator](MessagingAdapter.html)\n\n[Messaging Channels](MessagingChannelsIntro.html)\n\n[Message Channel](MessageChannel.html)\n\n[Point-to-Point Channel](PointToPointChannel.html)\n\n[Publish-Subscr. Channel](PublishSubscribeChannel.html)\n\n[Datatype Channel](DatatypeChannel.html)\n\n[Invalid Message Channel](InvalidMessageChannel.html)\n\n[Dead Letter Channel](DeadLetterChannel.html)\n\n[Guaranteed Delivery](GuaranteedMessaging.html)\n\n[Channel Adapter](ChannelAdapter.html)\n\n[Messaging Bridge](MessagingBridge.html)\n\n[Message Bus](MessageBus.html)\n\n[Systems Mgmt.](SystemManagementIntro.html)\n\n[Control Bus](ControlBus.html)\n\n[Detour](Detour.html)\n\n[Wire Tap](WireTap.html)\n\n[Message History](MessageHistory.html)\n\n[Message Store](MessageStore.html)\n\n[Smart Proxy](SmartProxy.html)\n\n[Test Message](TestMessage.html)\n\n[Channel Purger](ChannelPurger.html)\n\n- » [Read the latest in My Blog](/ramblings)\n- » [Get more insights from My Articles](/articles.html)\n- » [See me live in my Upcoming Talks](/talks)\n\nYou can reuse the following elements under the [Creative Commons Attribution](http://creativecommons.org/licenses/by/4.0/) license: pattern icon, pattern name, problem and solution statements (in bold), and the sketch. Other portions are protected by copyright.\n\n[Enterprise Integration Patterns](https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20)\nThe de-facto language for designing asynchronous, distributed systems. Over 100,000 copies sold.\n\n[The Software Architect Elevator](https://www.architectelevator.com/book)\n\n Rethink the role of architects as a connecting element across organizational layers. Acquire the technical, communication, and organizational skills to succeed in this new role.\n\n[Cloud Strategy](https://www.cloudstrategybook.com)\n\n Make your cloud migration a success by translating high-level goals into conscious decisions with well-understood trade-offs.\n\n[Platform Strategy](https://www.platformstrategybook.info)\n\n Platforms can boost innovation through harmonization, but they aren't easy to build. Learn from over a decade of designing and rolling out IT platforms.", "znaku_textu": 6802, "slov": 590, "odkazu": 108, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/MessageDispatcher.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 06:04:07", "sha256": "8c60016066a0c10b5757e12e9fd45f5c1db6a226bdfd112338d5e6e96be0a136", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://creativecommons.org/licenses/by/4.0/", "https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "https://www.architectelevator.com/book", "https://www.cloudstrategybook.com/", "https://www.platformstrategybook.info/"]} {"url": "https://www.enterpriseintegrationpatterns.com/MessageEndpoint.html", "titulek": "Message Endpoint - Enterprise Integration Patterns", "h1": "", "popis": "How does an application connect to a messaging channel to send and receive messages?", "klicova_slova": "Message Endpoint,integration, messaging, events, patterns, event-driven, coupling, eai, middleware, application integration, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns", "og:title": "Message Endpoint - Enterprise Integration Patterns", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/MessageEndpoint.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/MessageEndpointSolution.gif"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Integration Pattern Language"}], "markdown": "Messaging Patterns\n\n[Messaging Patterns](index.html)\n\n- [Integration Styles](IntegrationStylesIntro.html)\n- [Messaging Systems](MessagingComponentsIntro.html)\n- [Messaging Channels](MessagingChannelsIntro.html)\n- [Message Construction](MessageConstructionIntro.html)\n- [Interlude: Simple Messaging](SimpleMessagingIntro.html)\n- [Message Routing](MessageRoutingIntro.html)\n- [Message Transformation](MessageTransformationIntro.html)\n- [Interlude: Composed Messaging](ComposedMessagingExample.html)\n- [Messaging Endpoints](MessagingEndpointsIntro.html)\n- [System Management](SystemManagementIntro.html)\n- Interlude: Systems Management Example\n- Integration Patterns in Practice\n- Concluding Remarks\n- Appendices\n\n| | Message Endpoint[Messaging Patterns](index.html) » [Messaging Systems](MessagingComponentsIntro.html) | [Contents](toc.html)[⇐ Prev](MessageTranslator.html)[Next ⇒](MessagingChannelsIntro.html) |\n| --- | --- | --- |\n\nApplications are communicating by sending [*Message*](Message.html)s to each other via [*Message Channel*](MessageChannel.html)s.\n\nHow does an application connect to a messaging channel to send and receive messages?\n\nConnect an application to a messaging channel using a *Message Endpoint*, a client of the messaging system that the application can then use to send or receive messages.\n\n*Message Endpoint* code is custom to both the application and the messaging system’s client API. The rest of the application knows little about message formats, messaging channels, or any of the other details of communicating with other applications via messaging. It just knows that it has a request or piece of data to send to another application, or is expecting those from another application. It is the messaging endpoint code that takes that command or data, makes it into a message, and sends it on a particular messaging channel. It is the endpoint that receives a message, extracts the contents, and gives them to the application in a meaningful way.\n\n...\nRead the entire pattern in the book [Enterprise Integration Patterns](/books1.html)\n\n**Related patterns:**\n\n[*Channel Adapter*](ChannelAdapter.html), [*Competing Consumers*](CompetingConsumers.html), [*Durable Subscriber*](DurableSubscription.html), [*Event-Driven Consumer*](EventDrivenConsumer.html), [*Idempotent Receiver*](IdempotentReceiver.html), [*Message*](Message.html), [*Message Channel*](MessageChannel.html), [*Message Dispatcher*](MessageDispatcher.html), [*Selective Consumer*](MessageSelector.html), [*Service Activator*](MessagingAdapter.html), [*Messaging Gateway*](MessagingGateway.html), [*Messaging Mapper*](MessagingMapper.html), [*Polling Consumer*](PollingConsumer.html), [*Transactional Client*](TransactionalClient.html)\n\n---\n\n## Integration Pattern Language\n\n[Message Construct.](MessageConstructionIntro.html)\n\n[Message](Message.html)\n\n[Command Message](CommandMessage.html)\n\n[Document Message](DocumentMessage.html)\n\n[Event Message](EventMessage.html)\n\n[Request-Reply](RequestReply.html)\n\n[Return Address](ReturnAddress.html)\n\n[Correlation Identifier](CorrelationIdentifier.html)\n\n[Message Sequence](MessageSequence.html)\n\n[Message Expiration](MessageExpiration.html)\n\n[Format Indicator](FormatIndicator.html)\n\n[Message Routing](MessageRoutingIntro.html)\n\n[Pipes-and-Filters](PipesAndFilters.html)\n\n[Message Router](MessageRouter.html)\n\n[Content-based Router](ContentBasedRouter.html)\n\n[Message Filter](Filter.html)\n\n[Dynamic Router](DynamicRouter.html)\n\n[Recipient List](RecipientList.html)\n\n[Splitter](Sequencer.html)\n\n[Aggregator](Aggregator.html)\n\n[Resequencer](Resequencer.html)\n\n[Composed Msg. Processor](DistributionAggregate.html)\n\n[Scatter-Gather](BroadcastAggregate.html)\n\n[Routing Slip](RoutingTable.html)\n\n[Process Manager](ProcessManager.html)\n\n[Message Broker](MessageBroker.html)\n\n[Message\nTransformation](MessageTransformationIntro.html)\n\n[Message Translator](MessageTranslator.html)\n\n[Envelope Wrapper](EnvelopeWrapper.html)\n\n[Content Enricher](DataEnricher.html)\n\n[Content Filter](ContentFilter.html)\n\n[Claim Check](StoreInLibrary.html)\n\n[Normalizer](Normalizer.html)\n\n[Canonical Data Model](CanonicalDataModel.html)\n\n[Messaging Endpoints](MessagingEndpointsIntro.html)\n\n[Message Endpoint](MessageEndpoint.html)\n\n[Messaging Gateway](MessagingGateway.html)\n\n[Messaging Mapper](MessagingMapper.html)\n\n[Transactional Client](TransactionalClient.html)\n\n[Polling Consumer](PollingConsumer.html)\n\n[Event-driven Consumer](EventDrivenConsumer.html)\n\n[Competing Consumers](CompetingConsumers.html)\n\n[Message Dispatcher](MessageDispatcher.html)\n\n[Selective Consumer](MessageSelector.html)\n\n[Durable Subscriber](DurableSubscription.html)\n\n[Idempotent Receiver](IdempotentReceiver.html)\n\n[Service Activator](MessagingAdapter.html)\n\n[Messaging Channels](MessagingChannelsIntro.html)\n\n[Message Channel](MessageChannel.html)\n\n[Point-to-Point Channel](PointToPointChannel.html)\n\n[Publish-Subscr. Channel](PublishSubscribeChannel.html)\n\n[Datatype Channel](DatatypeChannel.html)\n\n[Invalid Message Channel](InvalidMessageChannel.html)\n\n[Dead Letter Channel](DeadLetterChannel.html)\n\n[Guaranteed Delivery](GuaranteedMessaging.html)\n\n[Channel Adapter](ChannelAdapter.html)\n\n[Messaging Bridge](MessagingBridge.html)\n\n[Message Bus](MessageBus.html)\n\n[Systems Mgmt.](SystemManagementIntro.html)\n\n[Control Bus](ControlBus.html)\n\n[Detour](Detour.html)\n\n[Wire Tap](WireTap.html)\n\n[Message History](MessageHistory.html)\n\n[Message Store](MessageStore.html)\n\n[Smart Proxy](SmartProxy.html)\n\n[Test Message](TestMessage.html)\n\n[Channel Purger](ChannelPurger.html)\n\n- » [Read the latest in My Blog](/ramblings)\n- » [Get more insights from My Articles](/articles.html)\n- » [See me live in my Upcoming Talks](/talks)\n\nYou can reuse the following elements under the [Creative Commons Attribution](http://creativecommons.org/licenses/by/4.0/) license: pattern icon, pattern name, problem and solution statements (in bold), and the sketch. Other portions are protected by copyright.\n\n[Enterprise Integration Patterns](https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20)\nThe de-facto language for designing asynchronous, distributed systems. Over 100,000 copies sold.\n\n[The Software Architect Elevator](https://www.architectelevator.com/book)\n\n Rethink the role of architects as a connecting element across organizational layers. Acquire the technical, communication, and organizational skills to succeed in this new role.\n\n[Cloud Strategy](https://www.cloudstrategybook.com)\n\n Make your cloud migration a success by translating high-level goals into conscious decisions with well-understood trade-offs.\n\n[Platform Strategy](https://www.platformstrategybook.info)\n\n Platforms can boost innovation through harmonization, but they aren't easy to build. Learn from over a decade of designing and rolling out IT platforms.", "znaku_textu": 6687, "slov": 571, "odkazu": 108, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/MessageEndpoint.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 06:04:00", "sha256": "2c9380b85e3fdaaac9b47e713e209aab5795c47d05fb319ca0bc80eb59efbf3c", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://creativecommons.org/licenses/by/4.0/", "https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "https://www.architectelevator.com/book", "https://www.cloudstrategybook.com/", "https://www.platformstrategybook.info/"]} {"url": "https://www.enterpriseintegrationpatterns.com/MessageExpiration.html", "titulek": "Message Expiration - Enterprise Integration Patterns", "h1": "", "popis": "How can a sender indicate when a message should be considered stale and thus shouldn’t be processed?", "klicova_slova": "Message Expiration,integration, messaging, events, patterns, event-driven, coupling, eai, middleware, application integration, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns", "og:title": "Message Expiration - Enterprise Integration Patterns", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/MessageExpiration.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/MessageExpirationSolution.gif"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Example: Azure Service BusNEW"}, {"uroven": 2, "text": "Example: Amazon EventBridgeNEW"}, {"uroven": 2, "text": "Example: Google Cloud PubSubNEW"}, {"uroven": 2, "text": "Integration Pattern Language"}], "markdown": "| | Message Expiration[Messaging Patterns](index.html) » [Message Construction](MessageConstructionIntro.html) | [Contents](toc.html)[⇐ Prev](MessageSequence.html)[Next ⇒](FormatIndicator.html) |\n| --- | --- | --- |\n\nMy application is using [*Messaging*](Messaging.html). If a [*Message*](Message.html)’s data or request is not received by a certain time, it is useless and should be ignored.\n\nHow can a sender indicate when a message should be considered stale and thus shouldn’t be processed?\n\nSet the *Message Expiration* to specify a time limit how long the message is viable.\n\nOnce the time for which a message is viable passes, and the message still has not been consumed, then the message will expire. The messaging system’s consumers will ignore an expired message; they treat the message as if it where never sent in the first place. Most messaging system implementations reroute expired messages to the [*Dead Letter Channel*](DeadLetterChannel.html), while others simply discard expired messages; this may be configurable.\n\nA *Message Expiration* is like the expiration date on a carton of milk—after that date, you’re not supposed to drink the milk. If the expiration date passes while the milk is on the grocery store shelf, the grocer is supposed to pull the milk off the shelf and not sell it. If you end up with a carton on milk that expires, you’re supposed to pour it out. Likewise, when a message expires, the messaging system should no longer deliver it. If a receiver nevertheless receives a message but cannot process it before the expiration, the receiver should throw away the message.\n\n...\nRead the entire pattern in the book [Enterprise Integration Patterns](/books1.html)\n\n## Example: Azure Service Bus[NEW](/ramblings/eip1_examples_updated.html)\n\n[Azure Service Bus](https://azure.microsoft.com/en-au/products/service-bus/) implements *Message Expiration* [both at the entity and the message level](https://learn.microsoft.com/en-us/azure/service-bus-messaging/message-expiration). Messages expire at the earliest of the *Message Expiration* set in the message or the entity, e.g. the queue or topic. Expired messages are sent to a [*Dead Letter Channel*](DeadLetterChannel.html) if one is specified. Messages that are locked for delivery (see [*Transactional Client*](TransactionalClient.html)) won't expire as long as they are locked.\n\n## Example: Amazon EventBridge[NEW](/ramblings/eip1_examples_updated.html)\n\n[Amazon EventBridge](https://aws.amazon.com/eventbridge/) uses a built-in *Message Expiration* that can [trigger on elapsed time or the number of failed delivery attempts](https://docs.aws.amazon.com/eventbridge/latest/userguide/eb-rule-dlq.html), whichever comes first. The default values are 24 hours and 185 retries, but can be customized in the console or via the command-line by using the RetryPolicy setting of the EventBridge target:\n\n```\n\"RetryPolicy\": {\n \"MaximumRetryAttempts\": integer,\n \"MaximumEventAgeInSeconds\": integer\n }\n```\n\nAsynchronous targets like SQS, SNS, or CloudWatch logs rarely trigger the *Message Expiration* because they can consume messages at the same rate as they arrive on the event bus. However, *Message Expiration* is an important setting when using rate-limited targets like [API Destinations](https://docs.aws.amazon.com/eventbridge/latest/userguide/eb-api-destinations.html) (HTTP calls).\n\n## Example: Google Cloud PubSub[NEW](/ramblings/eip1_examples_updated.html)\n\n[*Publish-Subscribe Channel*](PublishSubscribeChannel.html)s generally have longer *Message Expiration* as a new subscriber might be interested in messages that have already been consumed by existing subscribers. [Google Cloud PubSub](https://cloud.google.com/pubsub/) includes a message_retention_duration setting for both topics and subscriptions (see [*Publish-Subscribe Channel*](PublishSubscribeChannel.html) for an explanation of topics and subscriptions) that allows subscriptions to [replay messages that predate the subscription](https://cloud.google.com/pubsub/docs/replay-overview), allowing subscriptions to act as [*Durable Subscriber*](DurableSubscription.html)s. The maximum setting is a generous 31 days, but you pay for storage.\n\n**Related patterns:**\n\n[*Dead Letter Channel*](DeadLetterChannel.html), [*Durable Subscriber*](DurableSubscription.html), [*Guaranteed Delivery*](GuaranteedMessaging.html), [*Invalid Message Channel*](InvalidMessageChannel.html), [*Message*](Message.html), [*Messaging*](Messaging.html), [*Publish-Subscribe Channel*](PublishSubscribeChannel.html), [*Request-Reply*](RequestReply.html), [*Transactional Client*](TransactionalClient.html)\n\n---\n\n## Integration Pattern Language\n\n[Message Construct.](MessageConstructionIntro.html)\n\n[Message](Message.html)\n\n[Command Message](CommandMessage.html)\n\n[Document Message](DocumentMessage.html)\n\n[Event Message](EventMessage.html)\n\n[Request-Reply](RequestReply.html)\n\n[Return Address](ReturnAddress.html)\n\n[Correlation Identifier](CorrelationIdentifier.html)\n\n[Message Sequence](MessageSequence.html)\n\n[Message Expiration](MessageExpiration.html)\n\n[Format Indicator](FormatIndicator.html)\n\n[Message Routing](MessageRoutingIntro.html)\n\n[Pipes-and-Filters](PipesAndFilters.html)\n\n[Message Router](MessageRouter.html)\n\n[Content-based Router](ContentBasedRouter.html)\n\n[Message Filter](Filter.html)\n\n[Dynamic Router](DynamicRouter.html)\n\n[Recipient List](RecipientList.html)\n\n[Splitter](Sequencer.html)\n\n[Aggregator](Aggregator.html)\n\n[Resequencer](Resequencer.html)\n\n[Composed Msg. Processor](DistributionAggregate.html)\n\n[Scatter-Gather](BroadcastAggregate.html)\n\n[Routing Slip](RoutingTable.html)\n\n[Process Manager](ProcessManager.html)\n\n[Message Broker](MessageBroker.html)\n\n[Message\nTransformation](MessageTransformationIntro.html)\n\n[Message Translator](MessageTranslator.html)\n\n[Envelope Wrapper](EnvelopeWrapper.html)\n\n[Content Enricher](DataEnricher.html)\n\n[Content Filter](ContentFilter.html)\n\n[Claim Check](StoreInLibrary.html)\n\n[Normalizer](Normalizer.html)\n\n[Canonical Data Model](CanonicalDataModel.html)\n\n[Messaging Endpoints](MessagingEndpointsIntro.html)\n\n[Message Endpoint](MessageEndpoint.html)\n\n[Messaging Gateway](MessagingGateway.html)\n\n[Messaging Mapper](MessagingMapper.html)\n\n[Transactional Client](TransactionalClient.html)\n\n[Polling Consumer](PollingConsumer.html)\n\n[Event-driven Consumer](EventDrivenConsumer.html)\n\n[Competing Consumers](CompetingConsumers.html)\n\n[Message Dispatcher](MessageDispatcher.html)\n\n[Selective Consumer](MessageSelector.html)\n\n[Durable Subscriber](DurableSubscription.html)\n\n[Idempotent Receiver](IdempotentReceiver.html)\n\n[Service Activator](MessagingAdapter.html)\n\n[Messaging Channels](MessagingChannelsIntro.html)\n\n[Message Channel](MessageChannel.html)\n\n[Point-to-Point Channel](PointToPointChannel.html)\n\n[Publish-Subscr. Channel](PublishSubscribeChannel.html)\n\n[Datatype Channel](DatatypeChannel.html)\n\n[Invalid Message Channel](InvalidMessageChannel.html)\n\n[Dead Letter Channel](DeadLetterChannel.html)\n\n[Guaranteed Delivery](GuaranteedMessaging.html)\n\n[Channel Adapter](ChannelAdapter.html)\n\n[Messaging Bridge](MessagingBridge.html)\n\n[Message Bus](MessageBus.html)\n\n[Systems Mgmt.](SystemManagementIntro.html)\n\n[Control Bus](ControlBus.html)\n\n[Detour](Detour.html)\n\n[Wire Tap](WireTap.html)\n\n[Message History](MessageHistory.html)\n\n[Message Store](MessageStore.html)\n\n[Smart Proxy](SmartProxy.html)\n\n[Test Message](TestMessage.html)\n\n[Channel Purger](ChannelPurger.html)", "znaku_textu": 7322, "slov": 715, "odkazu": 116, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/MessageExpiration.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 06:03:35", "sha256": "9522e7c0d36b461b363796225d7fc9cef2609467e252c9ac17edc1d2354a98ee", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://azure.microsoft.com/en-au/products/service-bus/", "https://learn.microsoft.com/en-us/azure/service-bus-messaging/message-expiration", "https://aws.amazon.com/eventbridge/", "https://docs.aws.amazon.com/eventbridge/latest/userguide/eb-rule-dlq.html", "https://docs.aws.amazon.com/eventbridge/latest/userguide/eb-api-destinations.html", "https://cloud.google.com/pubsub/", "https://cloud.google.com/pubsub/docs/replay-overview", "http://creativecommons.org/licenses/by/4.0/", "https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "https://www.architectelevator.com/book", "https://www.cloudstrategybook.com/", "https://www.platformstrategybook.info/"]} {"url": "https://www.enterpriseintegrationpatterns.com/MessageHistory.html", "titulek": "Message History - Enterprise Integration Patterns", "h1": "", "popis": "How can we effectively analyze and debug the flow of messages in a loosely coupled system?", "klicova_slova": "Message History,integration, messaging, events, patterns, event-driven, coupling, eai, middleware, application integration, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns", "og:title": "Message History - Enterprise Integration Patterns", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/MessageHistory.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/MessageHistory.gif"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Integration Pattern Language"}], "markdown": "| | Message History[Messaging Patterns](index.html) » [System Management](SystemManagementIntro.html) | [Contents](toc.html)[⇐ Prev](WireTap.html)[Next ⇒](MessageStore.html) |\n| --- | --- | --- |\n\nOne of key benefits of a message-based systems is the loose coupling between participants; the message sender and recipient make no (or few) assumptions about each other's identity. If a message recipient retrieves a message from a message channel, it generally does not know nor care which application put the message on the channel. The message is by definition self-contained and is not associated with a specific sender. This is one of the architectural strengths of message-based systems.\n\nHowever, the same property can make debugging and analyzing dependencies very difficult. If we are not sure where a message goes, how can we assess the impact of a change in the message format? Likewise, if we don't know which application published a message it is difficult to correct a problem with the message.\n\nHow can we effectively analyze and debug the flow of messages in a loosely coupled system?\n\nTherefore, attach a *Message History* to the message. The *Message History* is a list of all applications that the message passed through since its origination.\n\nThe *Message History* maintains a list of all components that the message passed through. Every component that processes the message (including the originator) adds one entry to the list. The *Message History* should be part of the message header because it contains system-specific control information. Keeping this information in the header separates it from the message body that contains application specific data.\n\nNot every message that a component publishes is the result of a single message. For example,an [*Aggregator*](Aggregator.html) publishes a single message that carries information collected from multiple messages, each of which could have its own history. If we want to represent this scenario in the *Message History*, we have two choices. If we want to track the complete history we can enhance the *Message History* to be stored as a hierarchical tree structure. Because of the recursive nature of a tree structure we can store multiple message histories under a single 'node'. Alternatively, we can keep a simple list and only keep the history of one incoming message. This can work well if one incoming message is more important to the result than other, auxiliary messages.\n\n...\nRead the entire pattern in the book [Enterprise Integration Patterns](/books1.html)\n\n**Related patterns:**\n\n[*Aggregator*](Aggregator.html), [*Control Bus*](ControlBus.html), [*Message Router*](MessageRouter.html), [*Message Store*](MessageStore.html), [*Process Manager*](ProcessManager.html), [*Publish-Subscribe Channel*](PublishSubscribeChannel.html), [*Recipient List*](RecipientList.html)\n\n---\n\n## Integration Pattern Language\n\n[Message Construct.](MessageConstructionIntro.html)\n\n[Message](Message.html)\n\n[Command Message](CommandMessage.html)\n\n[Document Message](DocumentMessage.html)\n\n[Event Message](EventMessage.html)\n\n[Request-Reply](RequestReply.html)\n\n[Return Address](ReturnAddress.html)\n\n[Correlation Identifier](CorrelationIdentifier.html)\n\n[Message Sequence](MessageSequence.html)\n\n[Message Expiration](MessageExpiration.html)\n\n[Format Indicator](FormatIndicator.html)\n\n[Message Routing](MessageRoutingIntro.html)\n\n[Pipes-and-Filters](PipesAndFilters.html)\n\n[Message Router](MessageRouter.html)\n\n[Content-based Router](ContentBasedRouter.html)\n\n[Message Filter](Filter.html)\n\n[Dynamic Router](DynamicRouter.html)\n\n[Recipient List](RecipientList.html)\n\n[Splitter](Sequencer.html)\n\n[Aggregator](Aggregator.html)\n\n[Resequencer](Resequencer.html)\n\n[Composed Msg. Processor](DistributionAggregate.html)\n\n[Scatter-Gather](BroadcastAggregate.html)\n\n[Routing Slip](RoutingTable.html)\n\n[Process Manager](ProcessManager.html)\n\n[Message Broker](MessageBroker.html)\n\n[Message\nTransformation](MessageTransformationIntro.html)\n\n[Message Translator](MessageTranslator.html)\n\n[Envelope Wrapper](EnvelopeWrapper.html)\n\n[Content Enricher](DataEnricher.html)\n\n[Content Filter](ContentFilter.html)\n\n[Claim Check](StoreInLibrary.html)\n\n[Normalizer](Normalizer.html)\n\n[Canonical Data Model](CanonicalDataModel.html)\n\n[Messaging Endpoints](MessagingEndpointsIntro.html)\n\n[Message Endpoint](MessageEndpoint.html)\n\n[Messaging Gateway](MessagingGateway.html)\n\n[Messaging Mapper](MessagingMapper.html)\n\n[Transactional Client](TransactionalClient.html)\n\n[Polling Consumer](PollingConsumer.html)\n\n[Event-driven Consumer](EventDrivenConsumer.html)\n\n[Competing Consumers](CompetingConsumers.html)\n\n[Message Dispatcher](MessageDispatcher.html)\n\n[Selective Consumer](MessageSelector.html)\n\n[Durable Subscriber](DurableSubscription.html)\n\n[Idempotent Receiver](IdempotentReceiver.html)\n\n[Service Activator](MessagingAdapter.html)\n\n[Messaging Channels](MessagingChannelsIntro.html)\n\n[Message Channel](MessageChannel.html)\n\n[Point-to-Point Channel](PointToPointChannel.html)\n\n[Publish-Subscr. Channel](PublishSubscribeChannel.html)\n\n[Datatype Channel](DatatypeChannel.html)\n\n[Invalid Message Channel](InvalidMessageChannel.html)\n\n[Dead Letter Channel](DeadLetterChannel.html)\n\n[Guaranteed Delivery](GuaranteedMessaging.html)\n\n[Channel Adapter](ChannelAdapter.html)\n\n[Messaging Bridge](MessagingBridge.html)\n\n[Message Bus](MessageBus.html)\n\n[Systems Mgmt.](SystemManagementIntro.html)\n\n[Control Bus](ControlBus.html)\n\n[Detour](Detour.html)\n\n[Wire Tap](WireTap.html)\n\n[Message History](MessageHistory.html)\n\n[Message Store](MessageStore.html)\n\n[Smart Proxy](SmartProxy.html)\n\n[Test Message](TestMessage.html)\n\n[Channel Purger](ChannelPurger.html)", "znaku_textu": 5571, "slov": 559, "odkazu": 108, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/MessageHistory.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 06:53:00", "sha256": "d5aefe0d1353167cdd7be8f1ddc822d5ad13c4c39bb36f6aeb6d1fa11f5c865d", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://creativecommons.org/licenses/by/4.0/", "https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "https://www.architectelevator.com/book", "https://www.cloudstrategybook.com/", "https://www.platformstrategybook.info/"]} {"url": "https://www.enterpriseintegrationpatterns.com/MessageRouter.html", "titulek": "Message Router - Enterprise Integration Patterns", "h1": "", "popis": "How can you decouple individual processing steps so that messages can be passed to different filters depending on a set of conditions?", "klicova_slova": "Message Router,integration, messaging, events, patterns, event-driven, coupling, eai, middleware, application integration, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns", "og:title": "Message Router - Enterprise Integration Patterns", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/MessageRouter.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/MessageRouter.gif"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Integration Pattern Language"}], "markdown": "Messaging Patterns\n\n[Messaging Patterns](index.html)\n\n- [Integration Styles](IntegrationStylesIntro.html)\n- [Messaging Systems](MessagingComponentsIntro.html)\n- [Messaging Channels](MessagingChannelsIntro.html)\n- [Message Construction](MessageConstructionIntro.html)\n- [Interlude: Simple Messaging](SimpleMessagingIntro.html)\n- [Message Routing](MessageRoutingIntro.html)\n- [Message Transformation](MessageTransformationIntro.html)\n- [Interlude: Composed Messaging](ComposedMessagingExample.html)\n- [Messaging Endpoints](MessagingEndpointsIntro.html)\n- [System Management](SystemManagementIntro.html)\n- Interlude: Systems Management Example\n- Integration Patterns in Practice\n- Concluding Remarks\n- Appendices\n\n| | Message Router[Messaging Patterns](index.html) » [Messaging Systems](MessagingComponentsIntro.html) | [Contents](toc.html)[⇐ Prev](PipesAndFilters.html)[Next ⇒](MessageTranslator.html) |\n| --- | --- | --- |\n\nMultiple processing steps in a [*Pipes and Filters*](PipesAndFilters.html) chain are connected by [*Message Channel*](MessageChannel.html)s.\n\nHow can you decouple individual processing steps so that messages can be passed to different filters depending on a set of conditions?\n\nInsert a special filter, a *Message Router*, which consumes a [*Message*](Message.html) from one [*Message Channel*](MessageChannel.html) and republishes it to a different [*Message Channel*](MessageChannel.html) channel depending on a set of conditions.\n\nThe *Message Router* differs from the most basic notion of [*Pipes and Filters*](PipesAndFilters.html) in that it connects to multiple output channels. Thanks to the [*Pipes and Filters*](PipesAndFilters.html) architecture the components surrounding the *Message Router* are completely unaware of the existence of a *Message Router*. A key property of the *Message Router* is that it does not modify the message contents. It only concerns itself with the destination of the message.\n\nThe key benefit of using a *Message Router* is that the decision criteria for the destination of a message are maintained in a single location. If new message types are defined, new processing components are added, or the routing rules change, we need to change only the *Message Router* logic and all other components remain unaffected. Also, since all messages pass through a single *Message Router*, incoming messages are guaranteed to be processed one-by-one in the correct order.\n\n...\nRead the entire pattern in the book [Enterprise Integration Patterns](/books1.html)\n\n**Related patterns:**\n\n[*Channel Adapter*](ChannelAdapter.html), [*Content-Based Router*](ContentBasedRouter.html), [*Control Bus*](ControlBus.html), [*Datatype Channel*](DatatypeChannel.html), [*Dynamic Router*](DynamicRouter.html), [*Message Filter*](Filter.html), [*Message*](Message.html), [*Message Channel*](MessageChannel.html), [*Message History*](MessageHistory.html), [*Introduction to Message Routing*](MessageRoutingIntro.html), [*Message Translator*](MessageTranslator.html), [*Pipes and Filters*](PipesAndFilters.html), [*Publish-Subscribe Channel*](PublishSubscribeChannel.html), [*Transactional Client*](TransactionalClient.html)\n\n---\n\n## Integration Pattern Language\n\n[Message Construct.](MessageConstructionIntro.html)\n\n[Message](Message.html)\n\n[Command Message](CommandMessage.html)\n\n[Document Message](DocumentMessage.html)\n\n[Event Message](EventMessage.html)\n\n[Request-Reply](RequestReply.html)\n\n[Return Address](ReturnAddress.html)\n\n[Correlation Identifier](CorrelationIdentifier.html)\n\n[Message Sequence](MessageSequence.html)\n\n[Message Expiration](MessageExpiration.html)\n\n[Format Indicator](FormatIndicator.html)\n\n[Message Routing](MessageRoutingIntro.html)\n\n[Pipes-and-Filters](PipesAndFilters.html)\n\n[Message Router](MessageRouter.html)\n\n[Content-based Router](ContentBasedRouter.html)\n\n[Message Filter](Filter.html)\n\n[Dynamic Router](DynamicRouter.html)\n\n[Recipient List](RecipientList.html)\n\n[Splitter](Sequencer.html)\n\n[Aggregator](Aggregator.html)\n\n[Resequencer](Resequencer.html)\n\n[Composed Msg. Processor](DistributionAggregate.html)\n\n[Scatter-Gather](BroadcastAggregate.html)\n\n[Routing Slip](RoutingTable.html)\n\n[Process Manager](ProcessManager.html)\n\n[Message Broker](MessageBroker.html)\n\n[Message\nTransformation](MessageTransformationIntro.html)\n\n[Message Translator](MessageTranslator.html)\n\n[Envelope Wrapper](EnvelopeWrapper.html)\n\n[Content Enricher](DataEnricher.html)\n\n[Content Filter](ContentFilter.html)\n\n[Claim Check](StoreInLibrary.html)\n\n[Normalizer](Normalizer.html)\n\n[Canonical Data Model](CanonicalDataModel.html)\n\n[Messaging Endpoints](MessagingEndpointsIntro.html)\n\n[Message Endpoint](MessageEndpoint.html)\n\n[Messaging Gateway](MessagingGateway.html)\n\n[Messaging Mapper](MessagingMapper.html)\n\n[Transactional Client](TransactionalClient.html)\n\n[Polling Consumer](PollingConsumer.html)\n\n[Event-driven Consumer](EventDrivenConsumer.html)\n\n[Competing Consumers](CompetingConsumers.html)\n\n[Message Dispatcher](MessageDispatcher.html)\n\n[Selective Consumer](MessageSelector.html)\n\n[Durable Subscriber](DurableSubscription.html)\n\n[Idempotent Receiver](IdempotentReceiver.html)\n\n[Service Activator](MessagingAdapter.html)\n\n[Messaging Channels](MessagingChannelsIntro.html)\n\n[Message Channel](MessageChannel.html)\n\n[Point-to-Point Channel](PointToPointChannel.html)\n\n[Publish-Subscr. Channel](PublishSubscribeChannel.html)\n\n[Datatype Channel](DatatypeChannel.html)\n\n[Invalid Message Channel](InvalidMessageChannel.html)\n\n[Dead Letter Channel](DeadLetterChannel.html)\n\n[Guaranteed Delivery](GuaranteedMessaging.html)\n\n[Channel Adapter](ChannelAdapter.html)\n\n[Messaging Bridge](MessagingBridge.html)\n\n[Message Bus](MessageBus.html)\n\n[Systems Mgmt.](SystemManagementIntro.html)\n\n[Control Bus](ControlBus.html)\n\n[Detour](Detour.html)\n\n[Wire Tap](WireTap.html)\n\n[Message History](MessageHistory.html)\n\n[Message Store](MessageStore.html)\n\n[Smart Proxy](SmartProxy.html)\n\n[Test Message](TestMessage.html)\n\n[Channel Purger](ChannelPurger.html)\n\n- » [Read the latest in My Blog](/ramblings)\n- » [Get more insights from My Articles](/articles.html)\n- » [See me live in my Upcoming Talks](/talks)\n\nYou can reuse the following elements under the [Creative Commons Attribution](http://creativecommons.org/licenses/by/4.0/) license: pattern icon, pattern name, problem and solution statements (in bold), and the sketch. Other portions are protected by copyright.\n\n[Enterprise Integration Patterns](https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20)\nThe de-facto language for designing asynchronous, distributed systems. Over 100,000 copies sold.\n\n[The Software Architect Elevator](https://www.architectelevator.com/book)\n\n Rethink the role of architects as a connecting element across organizational layers. Acquire the technical, communication, and organizational skills to succeed in this new role.\n\n[Cloud Strategy](https://www.cloudstrategybook.com)\n\n Make your cloud migration a success by translating high-level goals into conscious decisions with well-understood trade-offs.\n\n[Platform Strategy](https://www.platformstrategybook.info)\n\n Platforms can boost innovation through harmonization, but they aren't easy to build. Learn from over a decade of designing and rolling out IT platforms.", "znaku_textu": 7105, "slov": 639, "odkazu": 108, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/MessageRouter.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 06:03:38", "sha256": "a4f1bda42d7ab7edf2340d2b661d36fc39b9bb0b52fb0bb3dae2b844ae10e3c6", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://creativecommons.org/licenses/by/4.0/", "https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "https://www.architectelevator.com/book", "https://www.cloudstrategybook.com/", "https://www.platformstrategybook.info/"]} {"url": "https://www.enterpriseintegrationpatterns.com/MessageRoutingIntro.html", "titulek": "Introduction to Message Routing - Enterprise Integration Patterns", "h1": "", "popis": "In Chapter 2, we discussed how a Message Router can be used to decouple a message source from the ultimate destination of the message. This chapter elaborates on specific types of Message Routers to explain how to provide routing and brokering ability to an integration solution. Most patterns are refinements of the Message Router pattern while others combine multiple Message Routers to solve more complex problems. Therefore, we can categorize the Message Routing patterns into the following groups:", "klicova_slova": "Introduction to Message Routing,integration, messaging, events, patterns, event-driven, coupling, eai, middleware, application integration, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns", "og:title": "Introduction to Message Routing - Enterprise Integration Patterns", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/MessageRoutingIntro.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/eip1_patterns_wide.png"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Simple Routers"}, {"uroven": 2, "text": "Composed Routers"}, {"uroven": 2, "text": "Architectural Patterns"}, {"uroven": 2, "text": "The Right Router for the Right Purpose"}, {"uroven": 2, "text": "Integration Pattern Language"}], "markdown": "| | Introduction to Message Routing[Messaging Patterns](index.html) » [Message Routing](MessageRoutingIntro.html) | [Contents](toc.html)[⇐ Prev](ObserverJmsExample.html)[Next ⇒](ContentBasedRouter.html) |\n| --- | --- | --- |\n\nIn Chapter 2, we discussed how a [*Message Router*](MessageRouter.html) can be used to decouple a message source from the ultimate destination of the message. This chapter elaborates on specific types of [*Message Router*](MessageRouter.html)s to explain how to provide routing and brokering ability to an integration solution. Most patterns are refinements of the [*Message Router*](MessageRouter.html) pattern while others combine multiple [*Message Router*](MessageRouter.html)s to solve more complex problems. Therefore, we can categorize the Message Routing patterns into the following groups:\n\n- **Simple Routers** are variants of the [*Message Router*](MessageRouter.html) and route messages from one inbound channel to one or more outbound channels.\n- **Composed Routers** combine multiple simple routers to create more complex message flows.\n- **Architectural Patterns** describe architectural styles based on [*Message Router*](MessageRouter.html) s.\n\n## Simple Routers\n\nThe [*Content-Based Router*](ContentBasedRouter.html) inspects the content of a message and routes it to another channel based on the content of the message. Using such a router enables the message producer to send messages to a single channel and leave it to the [*Content-Based Router*](ContentBasedRouter.html) to inspect messages and route them to the proper destination. This alleviates the sending application from this task and avoids coupling the message producer to specific destination channels.\n\nA [*Message Filter*](Filter.html) is a special form of a [*Content-Based Router*](ContentBasedRouter.html). It examines the message content and passes the message to another channel if the message content matches certain criteria. Otherwise, it discards the message. [*Message Filter*](Filter.html)s can be used with [*Publish-Subscribe Channel*](PublishSubscribeChannel.html) to route a message to all possible recipients and allow the recipients to filter out irrelevant messages. A [*Message Filter*](Filter.html) performs a function that is very similar to that of a [*Selective Consumer*](MessageSelector.html) with the key difference being that a [*Message Filter*](Filter.html) is part of the messaging system, routing qualifying messages to another channel, whereas a [*Selective Consumer*](MessageSelector.html) is built into a [*Message Endpoint*](MessageEndpoint.html).\n\nA [*Content-Based Router*](ContentBasedRouter.html) and a [*Message Filter*](Filter.html) can actually solve a similar problem. A [*Content-Based Router*](ContentBasedRouter.html) routes a message to the correct destination based on the criteria encoded in the [*Content-Based Router*](ContentBasedRouter.html). Equivalent behavior can be achieved by using a [*Publish-Subscribe Channel*](PublishSubscribeChannel.html) and an array of [*Message Filter*](Filter.html)s, one for each potential recipient. Each [*Message Filter*](Filter.html) eliminates the messages that to not match the criteria for the specific destination. The [*Content-Based Router*](ContentBasedRouter.html) routes predictively to a single channel and therefore has total control, but is also dependent on the list of all possible destination channels. The [*Message Filter*](Filter.html) array filters reactively, spreading the routing logic across many [*Message Filter*](Filter.html)s but avoiding a single component that is dependent on all possible destinations. The trade-off between these solutions is described in more detail in the [*Message Filter*](Filter.html) pattern.\n\nA basic [*Message Router*](MessageRouter.html) uses fixed rules to determine the destination of an incoming message. Where we need more flexibility, a [*Dynamic Router*](DynamicRouter.html) can be very useful. This router allows the routing logic to be modified by sending control messages to a designated control port. The dynamic nature of the [*Dynamic Router*](DynamicRouter.html) can be combined with most forms of the [*Message Router*](MessageRouter.html).\n\nChapter 3 introduced the concept of a [*Point-to-Point Channel*](PointToPointChannel.html) and a [*Publish-Subscribe Channel*](PublishSubscribeChannel.html). Sometimes, you need to send a message to more than one recipient, but want to maintain control over the recipients. The [*Recipient List*](RecipientList.html) allows you do just that. In essence, a [*Recipient List*](RecipientList.html) is a [*Content-Based Router*](ContentBasedRouter.html) that can route a single message to more than one destination channel.\n\nSome messages contain lists of individual items. How do you process these items individually? Use a [*Splitter*](Sequencer.html) to split the large message into individual messages. Each message can then be routed further and processed individually.\n\nHowever, you may need to recombine the messages that the [*Splitter*](Sequencer.html) created back into a single message. This is one of the functions an [*Aggregator*](Aggregator.html) performs. An [*Aggregator*](Aggregator.html) can receive a stream of messages, identify related messages and combine them into a single message. Unlike the other routing patterns, the [*Aggregator*](Aggregator.html) is a stateful [*Message Router*](MessageRouter.html) because it has to store messages internally until specific conditions are fulfilled. This mean that an [*Aggregator*](Aggregator.html) can consume a number of messages before it publishes a message.\n\nBecause we use messaging to connect applications or components running on multiple computers, multiple messages can be processed in parallel. For example, more than one process may consume messages off a single channel. One of these processes may execute faster than another, causing messages to be processed out of order. However, some components depend on the correct sequence of individual messages, for example ledger-based systems. The [*Resequencer*](Resequencer.html) puts out-of-sequence messages back into sequence. The [*Resequencer*](Resequencer.html) is also a stateful [*Message Router*](MessageRouter.html) because it may need to store a number of messages internally until the message arrives that completes the sequence. Unlike the [*Aggregator*](Aggregator.html), though, the [*Resequencer*](Resequencer.html) ultimately publishes the same number of messages it consumed.\n\nThe following table summarizes the properties of the [*Message Router*](MessageRouter.html) variants (we did not include the [*Dynamic Router*](DynamicRouter.html) as a separate alternative because any router can be implemented as a dynamic variant):\n\n| **Pattern** | **Number of Msgs Consumed** | **Number of Msgs Published** | **Stateful?** | **Comment** |\n| --- | --- | --- | --- | --- |\n| [*Content-Based Router*](ContentBasedRouter.html) | 1 | 1 | No (mostly) | |\n| [*Message Filter*](Filter.html) | 1 | 0 or 1 | No (mostly) | |\n| [*Recipient List*](RecipientList.html) | 1 | multiple (incl. 0) | No | |\n| [*Splitter*](Sequencer.html) | 1 | multiple | No | |\n| [*Aggregator*](Aggregator.html) | multiple | 1 | Yes | |\n| [*Resequencer*](Resequencer.html) | multiple | multiple | Yes | Publishes same number it consumes. |\n\n## Composed Routers\n\nA key advantage of the [*Pipes and Filters*](PipesAndFilters.html) architecture is the fact that we can compose multiple filters into a larger solution. [*Composed Message Processor*](DistributionAggregate.html) or an [*Scatter-Gather*](BroadcastAggregate.html) combine multiple [*Message Router*](MessageRouter.html) variants to create more comprehensive solutions. Both patterns allow us to retrieve information from multiple sources and recombine it into a single message. While the [*Composed Message Processor*](DistributionAggregate.html) maintains control over the possible sources the [*Scatter-Gather*](BroadcastAggregate.html) uses a [*Publish-Subscribe Channel*](PublishSubscribeChannel.html) so that any interested component can participate in the process.\n\nBoth the [*Composed Message Processor*](DistributionAggregate.html) and the [*Scatter-Gather*](BroadcastAggregate.html) route a single message to a number of participants concurrently and reassemble the replies into a single message. We can say that these patterns manage the *parallel routing* of a message. Two more patterns manage the *sequential routing* of a message, i.e. routing a message through a sequence of individual steps. If we want to control the path of a message from a central point we can use a [*Routing Slip*](RoutingTable.html) to specify the path the message should take. This pattern works just like the routing slip attached to office documents to pass them sequentially by a number of recipients. Alternatively, we can use a [*Process Manager*](ProcessManager.html) which gives us more flexibility but requires the message to return to a central component after each function.\n\n## Architectural Patterns\n\n[*Message Router*](MessageRouter.html)s enable us to architect an integration solution using a central [*Message Broker*](MessageBroker.html). As opposed to the different message routing design patterns, this pattern describes a *hub-and-spoke* architectural style.\n\n## The Right Router for the Right Purpose\n\nThis chapter contains 10 patterns. How can we make it easy to find the right pattern for the right purpose? The following decision chart helps you find the right pattern for the right purpose by matter of simple yes/no decisions. For example, if you are looking for a simple routing pattern that consumes one message at a time but publishes multiple messages in sequential order, you should use a [*Splitter*](Sequencer.html). The diagram also helps illustrate how closely the individual patterns are related. For example, a [*Routing Slip*](RoutingTable.html) and a [*Process Manager*](ProcessManager.html) solve similar problems while a [*Message Filter*](Filter.html) does something rather different.\n\n## Integration Pattern Language\n\n[Message Construct.](MessageConstructionIntro.html)\n\n[Message](Message.html)\n\n[Command Message](CommandMessage.html)\n\n[Document Message](DocumentMessage.html)\n\n[Event Message](EventMessage.html)\n\n[Request-Reply](RequestReply.html)\n\n[Return Address](ReturnAddress.html)\n\n[Correlation Identifier](CorrelationIdentifier.html)\n\n[Message Sequence](MessageSequence.html)\n\n[Message Expiration](MessageExpiration.html)\n\n[Format Indicator](FormatIndicator.html)\n\n[Message Routing](MessageRoutingIntro.html)\n\n[Pipes-and-Filters](PipesAndFilters.html)\n\n[Message Router](MessageRouter.html)\n\n[Content-based Router](ContentBasedRouter.html)\n\n[Message Filter](Filter.html)\n\n[Dynamic Router](DynamicRouter.html)\n\n[Recipient List](RecipientList.html)\n\n[Splitter](Sequencer.html)\n\n[Aggregator](Aggregator.html)\n\n[Resequencer](Resequencer.html)\n\n[Composed Msg. Processor](DistributionAggregate.html)\n\n[Scatter-Gather](BroadcastAggregate.html)\n\n[Routing Slip](RoutingTable.html)\n\n[Process Manager](ProcessManager.html)\n\n[Message Broker](MessageBroker.html)\n\n[Message\nTransformation](MessageTransformationIntro.html)\n\n[Message Translator](MessageTranslator.html)\n\n[Envelope Wrapper](EnvelopeWrapper.html)\n\n[Content Enricher](DataEnricher.html)\n\n[Content Filter](ContentFilter.html)\n\n[Claim Check](StoreInLibrary.html)\n\n[Normalizer](Normalizer.html)\n\n[Canonical Data Model](CanonicalDataModel.html)\n\n[Messaging Endpoints](MessagingEndpointsIntro.html)\n\n[Message Endpoint](MessageEndpoint.html)\n\n[Messaging Gateway](MessagingGateway.html)\n\n[Messaging Mapper](MessagingMapper.html)\n\n[Transactional Client](TransactionalClient.html)\n\n[Polling Consumer](PollingConsumer.html)\n\n[Event-driven Consumer](EventDrivenConsumer.html)\n\n[Competing Consumers](CompetingConsumers.html)\n\n[Message Dispatcher](MessageDispatcher.html)\n\n[Selective Consumer](MessageSelector.html)\n\n[Durable Subscriber](DurableSubscription.html)\n\n[Idempotent Receiver](IdempotentReceiver.html)\n\n[Service Activator](MessagingAdapter.html)\n\n[Messaging Channels](MessagingChannelsIntro.html)\n\n[Message Channel](MessageChannel.html)\n\n[Point-to-Point Channel](PointToPointChannel.html)\n\n[Publish-Subscr. Channel](PublishSubscribeChannel.html)\n\n[Datatype Channel](DatatypeChannel.html)\n\n[Invalid Message Channel](InvalidMessageChannel.html)\n\n[Dead Letter Channel](DeadLetterChannel.html)\n\n[Guaranteed Delivery](GuaranteedMessaging.html)\n\n[Channel Adapter](ChannelAdapter.html)\n\n[Messaging Bridge](MessagingBridge.html)\n\n[Message Bus](MessageBus.html)\n\n[Systems Mgmt.](SystemManagementIntro.html)\n\n[Control Bus](ControlBus.html)\n\n[Detour](Detour.html)\n\n[Wire Tap](WireTap.html)\n\n[Message History](MessageHistory.html)\n\n[Message Store](MessageStore.html)\n\n[Smart Proxy](SmartProxy.html)\n\n[Test Message](TestMessage.html)\n\n[Channel Purger](ChannelPurger.html)", "znaku_textu": 12657, "slov": 1559, "odkazu": 107, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/MessageRoutingIntro.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 06:03:37", "sha256": "17ec81524f67e57023db779842ba8018132255c63006c9b3ea7301a90cf5dd6d", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "https://www.architectelevator.com/book", "https://www.cloudstrategybook.com/", "https://www.platformstrategybook.info/"]} {"url": "https://www.enterpriseintegrationpatterns.com/MessageSelector.html", "titulek": "Selective Consumer - Enterprise Integration Patterns", "h1": "", "popis": "How can a message consumer select which messages it wishes to receive?", "klicova_slova": "Selective Consumer,integration, messaging, events, patterns, event-driven, coupling, eai, middleware, application integration, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns", "og:title": "Selective Consumer - Enterprise Integration Patterns", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/MessageSelector.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/MessageSelectorSolution.gif"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Integration Pattern Language"}], "markdown": "| | Selective Consumer[Messaging Patterns](index.html) » [Messaging Endpoints](MessagingEndpointsIntro.html) | [Contents](toc.html)[⇐ Prev](MessageDispatcher.html)[Next ⇒](DurableSubscription.html) |\n| --- | --- | --- |\n\nAn application is using [*Messaging*](Messaging.html). It consumes [*Message*](Message.html)s from a [*Message Channel*](MessageChannel.html), but it does not necessarily want to consume all of the messages on that channel, just some of them.\n\nHow can a message consumer select which messages it wishes to receive?\n\nMake the consumer a *Selective Consumer*, one that filteres the messages delivered by its channel so that it only receives the ones that match its criteria.\n\nThere are three parts to this filtering process:\n\n1. **Specifying Producer** — Specifies the message’s selection value before sending it.\n2. **Selection Value** — One or more values specified in the message that allow a consumer to decide whether to select the message.\n3. **Selective Consumer** — Only receives messages that meet its selection criteria.\n\nWhen multiple *Selective Consumer*s are used with a [*Point-to-Point Channel*](PointToPointChannel.html), they effectively become [*Competing Consumers*](CompetingConsumers.html) that are also selective. If two consumer’s criteria overlap, and a message’s selection value meets both of their criteria, either consumer can consume the message. Consumers should be designed to ensure that at least one of them is eligable to consume every valid selection value. Otherwise, a message with an unmatched selection value will never be consumed and will clutter the channel forever (or at least until [*Message Expiration*](MessageExpiration.html) occurrs).\n\nWhen multiple *Selective Consumer*s are used with a [*Publish-Subscribe Channel*](PublishSubscribeChannel.html), each message will be delivered to each subscriber, but a subscriber will simply ignore its copy of a message that does not fit its criteria. Once a consumer decides to ignore a message, the messaging system can discard the message since it has been successfully delivered and will never be consumed. A messaging system can optimize this process by not even delivering a message it knows the consumer will ignore, thereby decreasing the number of copies of a message that must be produced and transmitted. This behavior of discarding ignored messages is independent of whatever [*Guaranteed Delivery*](GuaranteedMessaging.html), [*Durable Subscriber*](DurableSubscription.html), and/or [*Message Expiration*](MessageExpiration.html) settings are used.\n\n*Selective Consumer*s make a single channel act like multiple [*Datatype Channel*](DatatypeChannel.html)s. If different message types have distinct selection values, each consumer that is specialized for a particular type will only receive messages of that type. This approach facilitates sending many message types using a small number of channels, which can be beneficial in an enterprise that requires more channels than their messaging system can support.\n\n*Competing, Selective Consumers*\n\n...\nRead the entire pattern in the book [Enterprise Integration Patterns](/books1.html)\n\n**Related patterns:**\n\n[*Competing Consumers*](CompetingConsumers.html), [*Content-Based Router*](ContentBasedRouter.html), [*Correlation Identifier*](CorrelationIdentifier.html), [*Datatype Channel*](DatatypeChannel.html), [*Durable Subscriber*](DurableSubscription.html), [*Event-Driven Consumer*](EventDrivenConsumer.html), [*Message Filter*](Filter.html), [*Guaranteed Delivery*](GuaranteedMessaging.html), [*Invalid Message Channel*](InvalidMessageChannel.html), [*Message*](Message.html), [*Message Channel*](MessageChannel.html), [*Message Dispatcher*](MessageDispatcher.html), [*Message Expiration*](MessageExpiration.html), [*Messaging*](Messaging.html), [*Point-to-Point Channel*](PointToPointChannel.html), [*Polling Consumer*](PollingConsumer.html), [*Publish-Subscribe Channel*](PublishSubscribeChannel.html), [*Request-Reply*](RequestReply.html), [*Transactional Client*](TransactionalClient.html)\n\n---\n\n## Integration Pattern Language\n\n[Message Construct.](MessageConstructionIntro.html)\n\n[Message](Message.html)\n\n[Command Message](CommandMessage.html)\n\n[Document Message](DocumentMessage.html)\n\n[Event Message](EventMessage.html)\n\n[Request-Reply](RequestReply.html)\n\n[Return Address](ReturnAddress.html)\n\n[Correlation Identifier](CorrelationIdentifier.html)\n\n[Message Sequence](MessageSequence.html)\n\n[Message Expiration](MessageExpiration.html)\n\n[Format Indicator](FormatIndicator.html)\n\n[Message Routing](MessageRoutingIntro.html)\n\n[Pipes-and-Filters](PipesAndFilters.html)\n\n[Message Router](MessageRouter.html)\n\n[Content-based Router](ContentBasedRouter.html)\n\n[Message Filter](Filter.html)\n\n[Dynamic Router](DynamicRouter.html)\n\n[Recipient List](RecipientList.html)\n\n[Splitter](Sequencer.html)\n\n[Aggregator](Aggregator.html)\n\n[Resequencer](Resequencer.html)\n\n[Composed Msg. Processor](DistributionAggregate.html)\n\n[Scatter-Gather](BroadcastAggregate.html)\n\n[Routing Slip](RoutingTable.html)\n\n[Process Manager](ProcessManager.html)\n\n[Message Broker](MessageBroker.html)\n\n[Message\nTransformation](MessageTransformationIntro.html)\n\n[Message Translator](MessageTranslator.html)\n\n[Envelope Wrapper](EnvelopeWrapper.html)\n\n[Content Enricher](DataEnricher.html)\n\n[Content Filter](ContentFilter.html)\n\n[Claim Check](StoreInLibrary.html)\n\n[Normalizer](Normalizer.html)\n\n[Canonical Data Model](CanonicalDataModel.html)\n\n[Messaging Endpoints](MessagingEndpointsIntro.html)\n\n[Message Endpoint](MessageEndpoint.html)\n\n[Messaging Gateway](MessagingGateway.html)\n\n[Messaging Mapper](MessagingMapper.html)\n\n[Transactional Client](TransactionalClient.html)\n\n[Polling Consumer](PollingConsumer.html)\n\n[Event-driven Consumer](EventDrivenConsumer.html)\n\n[Competing Consumers](CompetingConsumers.html)\n\n[Message Dispatcher](MessageDispatcher.html)\n\n[Selective Consumer](MessageSelector.html)\n\n[Durable Subscriber](DurableSubscription.html)\n\n[Idempotent Receiver](IdempotentReceiver.html)\n\n[Service Activator](MessagingAdapter.html)\n\n[Messaging Channels](MessagingChannelsIntro.html)\n\n[Message Channel](MessageChannel.html)\n\n[Point-to-Point Channel](PointToPointChannel.html)\n\n[Publish-Subscr. Channel](PublishSubscribeChannel.html)\n\n[Datatype Channel](DatatypeChannel.html)\n\n[Invalid Message Channel](InvalidMessageChannel.html)\n\n[Dead Letter Channel](DeadLetterChannel.html)\n\n[Guaranteed Delivery](GuaranteedMessaging.html)\n\n[Channel Adapter](ChannelAdapter.html)\n\n[Messaging Bridge](MessagingBridge.html)\n\n[Message Bus](MessageBus.html)\n\n[Systems Mgmt.](SystemManagementIntro.html)\n\n[Control Bus](ControlBus.html)\n\n[Detour](Detour.html)\n\n[Wire Tap](WireTap.html)\n\n[Message History](MessageHistory.html)\n\n[Message Store](MessageStore.html)\n\n[Smart Proxy](SmartProxy.html)\n\n[Test Message](TestMessage.html)\n\n[Channel Purger](ChannelPurger.html)", "znaku_textu": 6768, "slov": 664, "odkazu": 108, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/MessageSelector.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 06:04:08", "sha256": "200eeab56af2adb679a5a81c4edc0e97a1e0a1f24a65902cc2a8d6f2c90d17d1", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://creativecommons.org/licenses/by/4.0/", "https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "https://www.architectelevator.com/book", "https://www.cloudstrategybook.com/", "https://www.platformstrategybook.info/"]} {"url": "https://www.enterpriseintegrationpatterns.com/MessageSequence.html", "titulek": "Message Sequence - Enterprise Integration Patterns", "h1": "", "popis": "How can messaging transmit an arbitrarily large amount of data?", "klicova_slova": "Message Sequence,integration, messaging, events, patterns, event-driven, coupling, eai, middleware, application integration, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns", "og:title": "Message Sequence - Enterprise Integration Patterns", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/MessageSequence.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/MessageSequenceSize.gif"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Integration Pattern Language"}], "markdown": "Messaging Patterns\n\n[Messaging Patterns](index.html)\n\n- [Integration Styles](IntegrationStylesIntro.html)\n- [Messaging Systems](MessagingComponentsIntro.html)\n- [Messaging Channels](MessagingChannelsIntro.html)\n- [Message Construction](MessageConstructionIntro.html)\n- [Interlude: Simple Messaging](SimpleMessagingIntro.html)\n- [Message Routing](MessageRoutingIntro.html)\n- [Message Transformation](MessageTransformationIntro.html)\n- [Interlude: Composed Messaging](ComposedMessagingExample.html)\n- [Messaging Endpoints](MessagingEndpointsIntro.html)\n- [System Management](SystemManagementIntro.html)\n- Interlude: Systems Management Example\n- Integration Patterns in Practice\n- Concluding Remarks\n- Appendices\n\n| | Message Sequence[Messaging Patterns](index.html) » [Message Construction](MessageConstructionIntro.html) | [Contents](toc.html)[⇐ Prev](CorrelationIdentifier.html)[Next ⇒](MessageExpiration.html) |\n| --- | --- | --- |\n\nMy application needs to send a huge amount of data to another process, more than may fit in a single message. Or my application has made a request whose reply contains too much data for a single message.\n\nHow can messaging transmit an arbitrarily large amount of data?\n\nWhenever a large set of data may need to be broken into message-size chunks, send the data as a *Message Sequence* and mark each message with sequence identification fields.\n\nThe three *Message Sequence* identification fields are:\n\n1. **Sequence identifier** – Distinguishes this cluster of messages from others.\n2. **Position identifier** – Uniquely identifies and sequentially orders each message in a sequence.\n3. **Size** or **End indicator** – Specifies the number of messages in the cluster, or marks the last message in the cluster (whose position identifier then specifies the size of the cluster).\n\n...\nRead the entire pattern in the book [Enterprise Integration Patterns](/books1.html)\n\n**Related patterns:**\n\n[*Competing Consumers*](CompetingConsumers.html), [*Correlation Identifier*](CorrelationIdentifier.html), [*Invalid Message Channel*](InvalidMessageChannel.html), [*Message Channel*](MessageChannel.html), [*Message Dispatcher*](MessageDispatcher.html), [*Request-Reply*](RequestReply.html), [*Claim Check*](StoreInLibrary.html), [*Transactional Client*](TransactionalClient.html)\n\n---\n\n## Integration Pattern Language\n\n[Message Construct.](MessageConstructionIntro.html)\n\n[Message](Message.html)\n\n[Command Message](CommandMessage.html)\n\n[Document Message](DocumentMessage.html)\n\n[Event Message](EventMessage.html)\n\n[Request-Reply](RequestReply.html)\n\n[Return Address](ReturnAddress.html)\n\n[Correlation Identifier](CorrelationIdentifier.html)\n\n[Message Sequence](MessageSequence.html)\n\n[Message Expiration](MessageExpiration.html)\n\n[Format Indicator](FormatIndicator.html)\n\n[Message Routing](MessageRoutingIntro.html)\n\n[Pipes-and-Filters](PipesAndFilters.html)\n\n[Message Router](MessageRouter.html)\n\n[Content-based Router](ContentBasedRouter.html)\n\n[Message Filter](Filter.html)\n\n[Dynamic Router](DynamicRouter.html)\n\n[Recipient List](RecipientList.html)\n\n[Splitter](Sequencer.html)\n\n[Aggregator](Aggregator.html)\n\n[Resequencer](Resequencer.html)\n\n[Composed Msg. Processor](DistributionAggregate.html)\n\n[Scatter-Gather](BroadcastAggregate.html)\n\n[Routing Slip](RoutingTable.html)\n\n[Process Manager](ProcessManager.html)\n\n[Message Broker](MessageBroker.html)\n\n[Message\nTransformation](MessageTransformationIntro.html)\n\n[Message Translator](MessageTranslator.html)\n\n[Envelope Wrapper](EnvelopeWrapper.html)\n\n[Content Enricher](DataEnricher.html)\n\n[Content Filter](ContentFilter.html)\n\n[Claim Check](StoreInLibrary.html)\n\n[Normalizer](Normalizer.html)\n\n[Canonical Data Model](CanonicalDataModel.html)\n\n[Messaging Endpoints](MessagingEndpointsIntro.html)\n\n[Message Endpoint](MessageEndpoint.html)\n\n[Messaging Gateway](MessagingGateway.html)\n\n[Messaging Mapper](MessagingMapper.html)\n\n[Transactional Client](TransactionalClient.html)\n\n[Polling Consumer](PollingConsumer.html)\n\n[Event-driven Consumer](EventDrivenConsumer.html)\n\n[Competing Consumers](CompetingConsumers.html)\n\n[Message Dispatcher](MessageDispatcher.html)\n\n[Selective Consumer](MessageSelector.html)\n\n[Durable Subscriber](DurableSubscription.html)\n\n[Idempotent Receiver](IdempotentReceiver.html)\n\n[Service Activator](MessagingAdapter.html)\n\n[Messaging Channels](MessagingChannelsIntro.html)\n\n[Message Channel](MessageChannel.html)\n\n[Point-to-Point Channel](PointToPointChannel.html)\n\n[Publish-Subscr. Channel](PublishSubscribeChannel.html)\n\n[Datatype Channel](DatatypeChannel.html)\n\n[Invalid Message Channel](InvalidMessageChannel.html)\n\n[Dead Letter Channel](DeadLetterChannel.html)\n\n[Guaranteed Delivery](GuaranteedMessaging.html)\n\n[Channel Adapter](ChannelAdapter.html)\n\n[Messaging Bridge](MessagingBridge.html)\n\n[Message Bus](MessageBus.html)\n\n[Systems Mgmt.](SystemManagementIntro.html)\n\n[Control Bus](ControlBus.html)\n\n[Detour](Detour.html)\n\n[Wire Tap](WireTap.html)\n\n[Message History](MessageHistory.html)\n\n[Message Store](MessageStore.html)\n\n[Smart Proxy](SmartProxy.html)\n\n[Test Message](TestMessage.html)\n\n[Channel Purger](ChannelPurger.html)\n\n- » [Read the latest in My Blog](/ramblings)\n- » [Get more insights from My Articles](/articles.html)\n- » [See me live in my Upcoming Talks](/talks)\n\nYou can reuse the following elements under the [Creative Commons Attribution](http://creativecommons.org/licenses/by/4.0/) license: pattern icon, pattern name, problem and solution statements (in bold), and the sketch. Other portions are protected by copyright.\n\n[Enterprise Integration Patterns](https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20)\nThe de-facto language for designing asynchronous, distributed systems. Over 100,000 copies sold.\n\n[The Software Architect Elevator](https://www.architectelevator.com/book)\n\n Rethink the role of architects as a connecting element across organizational layers. Acquire the technical, communication, and organizational skills to succeed in this new role.\n\n[Cloud Strategy](https://www.cloudstrategybook.com)\n\n Make your cloud migration a success by translating high-level goals into conscious decisions with well-understood trade-offs.\n\n[Platform Strategy](https://www.platformstrategybook.info)\n\n Platforms can boost innovation through harmonization, but they aren't easy to build. Learn from over a decade of designing and rolling out IT platforms.", "znaku_textu": 6240, "slov": 521, "odkazu": 108, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/MessageSequence.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 06:03:34", "sha256": "0b96b30456ccbc3f7528528047151d34c4625e6c90e9f00e18eeb2997203db24", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://creativecommons.org/licenses/by/4.0/", "https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "https://www.architectelevator.com/book", "https://www.cloudstrategybook.com/", "https://www.platformstrategybook.info/"]} {"url": "https://www.enterpriseintegrationpatterns.com/MessageStore.html", "titulek": "Message Store - Enterprise Integration Patterns", "h1": "", "popis": "How can we report against message information without disturbing the loosely coupled and transient nature of a messaging system?", "klicova_slova": "Message Store,integration, messaging, events, patterns, event-driven, coupling, eai, middleware, application integration, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns", "og:title": "Message Store - Enterprise Integration Patterns", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/MessageStore.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/MessageStore.gif"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Integration Pattern Language"}], "markdown": "Messaging Patterns\n\n[Messaging Patterns](index.html)\n\n- [Integration Styles](IntegrationStylesIntro.html)\n- [Messaging Systems](MessagingComponentsIntro.html)\n- [Messaging Channels](MessagingChannelsIntro.html)\n- [Message Construction](MessageConstructionIntro.html)\n- [Interlude: Simple Messaging](SimpleMessagingIntro.html)\n- [Message Routing](MessageRoutingIntro.html)\n- [Message Transformation](MessageTransformationIntro.html)\n- [Interlude: Composed Messaging](ComposedMessagingExample.html)\n- [Messaging Endpoints](MessagingEndpointsIntro.html)\n- [System Management](SystemManagementIntro.html)\n- Interlude: Systems Management Example\n- Integration Patterns in Practice\n- Concluding Remarks\n- Appendices\n\n| | Message Store[Messaging Patterns](index.html) » [System Management](SystemManagementIntro.html) | [Contents](toc.html)[⇐ Prev](MessageHistory.html)[Next ⇒](SmartProxy.html) |\n| --- | --- | --- |\n\nAs the [*Message History*](MessageHistory.html) describes, the architectural principle of loose coupling allows for flexibility in the solution, but can make it difficult to gain insight into the dynamic behavior of the integration solution.\n\nHow can we report against message information without disturbing the loosely coupled and transient nature of a messaging system?\n\nUse a *Message Store* to capture information about each message in a central location.\n\nWhen using a *Message Store*, we can take advantage of the asynchronous nature of a messaging infrastructure. When we send a message to a channel, we send a duplicate of the message to a special channel to be collected by the *Message Store*. This can be performed by the component itself or we can insert a [*Wire Tap*](WireTap.html) into the channel. We can consider the secondary channel that carries a copy of the message as part of the [*Control Bus*](ControlBus.html). Sending a second message in a 'fire-and-forget' mode will not slow down the flow of the main application messages. It does, however, increase network traffic. That's why we may not store the complete message, but just a few key fields that are required for later analysis, such as a message ID, or the channel on which the message was sent and a timestamp.\n\n...\nRead the entire pattern in the book [Enterprise Integration Patterns](/books1.html)\n\n**Related patterns:**\n\n[*Control Bus*](ControlBus.html), [*Message History*](MessageHistory.html), [*Wire Tap*](WireTap.html)\n\n---\n\n## Integration Pattern Language\n\n[Message Construct.](MessageConstructionIntro.html)\n\n[Message](Message.html)\n\n[Command Message](CommandMessage.html)\n\n[Document Message](DocumentMessage.html)\n\n[Event Message](EventMessage.html)\n\n[Request-Reply](RequestReply.html)\n\n[Return Address](ReturnAddress.html)\n\n[Correlation Identifier](CorrelationIdentifier.html)\n\n[Message Sequence](MessageSequence.html)\n\n[Message Expiration](MessageExpiration.html)\n\n[Format Indicator](FormatIndicator.html)\n\n[Message Routing](MessageRoutingIntro.html)\n\n[Pipes-and-Filters](PipesAndFilters.html)\n\n[Message Router](MessageRouter.html)\n\n[Content-based Router](ContentBasedRouter.html)\n\n[Message Filter](Filter.html)\n\n[Dynamic Router](DynamicRouter.html)\n\n[Recipient List](RecipientList.html)\n\n[Splitter](Sequencer.html)\n\n[Aggregator](Aggregator.html)\n\n[Resequencer](Resequencer.html)\n\n[Composed Msg. Processor](DistributionAggregate.html)\n\n[Scatter-Gather](BroadcastAggregate.html)\n\n[Routing Slip](RoutingTable.html)\n\n[Process Manager](ProcessManager.html)\n\n[Message Broker](MessageBroker.html)\n\n[Message\nTransformation](MessageTransformationIntro.html)\n\n[Message Translator](MessageTranslator.html)\n\n[Envelope Wrapper](EnvelopeWrapper.html)\n\n[Content Enricher](DataEnricher.html)\n\n[Content Filter](ContentFilter.html)\n\n[Claim Check](StoreInLibrary.html)\n\n[Normalizer](Normalizer.html)\n\n[Canonical Data Model](CanonicalDataModel.html)\n\n[Messaging Endpoints](MessagingEndpointsIntro.html)\n\n[Message Endpoint](MessageEndpoint.html)\n\n[Messaging Gateway](MessagingGateway.html)\n\n[Messaging Mapper](MessagingMapper.html)\n\n[Transactional Client](TransactionalClient.html)\n\n[Polling Consumer](PollingConsumer.html)\n\n[Event-driven Consumer](EventDrivenConsumer.html)\n\n[Competing Consumers](CompetingConsumers.html)\n\n[Message Dispatcher](MessageDispatcher.html)\n\n[Selective Consumer](MessageSelector.html)\n\n[Durable Subscriber](DurableSubscription.html)\n\n[Idempotent Receiver](IdempotentReceiver.html)\n\n[Service Activator](MessagingAdapter.html)\n\n[Messaging Channels](MessagingChannelsIntro.html)\n\n[Message Channel](MessageChannel.html)\n\n[Point-to-Point Channel](PointToPointChannel.html)\n\n[Publish-Subscr. Channel](PublishSubscribeChannel.html)\n\n[Datatype Channel](DatatypeChannel.html)\n\n[Invalid Message Channel](InvalidMessageChannel.html)\n\n[Dead Letter Channel](DeadLetterChannel.html)\n\n[Guaranteed Delivery](GuaranteedMessaging.html)\n\n[Channel Adapter](ChannelAdapter.html)\n\n[Messaging Bridge](MessagingBridge.html)\n\n[Message Bus](MessageBus.html)\n\n[Systems Mgmt.](SystemManagementIntro.html)\n\n[Control Bus](ControlBus.html)\n\n[Detour](Detour.html)\n\n[Wire Tap](WireTap.html)\n\n[Message History](MessageHistory.html)\n\n[Message Store](MessageStore.html)\n\n[Smart Proxy](SmartProxy.html)\n\n[Test Message](TestMessage.html)\n\n[Channel Purger](ChannelPurger.html)\n\n- » [Read the latest in My Blog](/ramblings)\n- » [Get more insights from My Articles](/articles.html)\n- » [See me live in my Upcoming Talks](/talks)\n\nYou can reuse the following elements under the [Creative Commons Attribution](http://creativecommons.org/licenses/by/4.0/) license: pattern icon, pattern name, problem and solution statements (in bold), and the sketch. Other portions are protected by copyright.\n\n[Enterprise Integration Patterns](https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20)\nThe de-facto language for designing asynchronous, distributed systems. Over 100,000 copies sold.\n\n[The Software Architect Elevator](https://www.architectelevator.com/book)\n\n Rethink the role of architects as a connecting element across organizational layers. Acquire the technical, communication, and organizational skills to succeed in this new role.\n\n[Cloud Strategy](https://www.cloudstrategybook.com)\n\n Make your cloud migration a success by translating high-level goals into conscious decisions with well-understood trade-offs.\n\n[Platform Strategy](https://www.platformstrategybook.info)\n\n Platforms can boost innovation through harmonization, but they aren't easy to build. Learn from over a decade of designing and rolling out IT platforms.", "znaku_textu": 6373, "slov": 577, "odkazu": 108, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/MessageStore.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 06:53:01", "sha256": "c9c9d42c8cb0d107905b903d5b25b4c71e7b77c6c6308ed73ece722086f6e15e", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://creativecommons.org/licenses/by/4.0/", "https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "https://www.architectelevator.com/book", "https://www.cloudstrategybook.com/", "https://www.platformstrategybook.info/"]} {"url": "https://www.enterpriseintegrationpatterns.com/MessageTransformationIntro.html", "titulek": "Introduction to Message Transformation - Enterprise Integration Patterns", "h1": "", "popis": "As described in the Message Translator, applications that need to be integrated by a messaging system rarely agree on a common data format. For example, an accounting system is going to have a different notion of a Customer object than a customer relationship management system. On top of that, one system may persist data in a relational model, while another application uses flat files or XML documents. Integrating existing applications often times means that we do not have the liberty of modifying the applications to work more easily with other systems. Rather, the integration solution has to accommodate and resolve the differences between the varying systems. The Message Translator pattern offers a general solution to such differences in data formats. This chapter explores specific variants of the Message Translator.", "klicova_slova": "Introduction to Message Transformation,integration, messaging, events, patterns, event-driven, coupling, eai, middleware, application integration, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns", "og:title": "Introduction to Message Transformation - Enterprise Integration Patterns", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/MessageTransformationIntro.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/eip1_patterns_wide.png"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Integration Pattern Language"}], "markdown": "| | Introduction to Message Transformation[Messaging Patterns](index.html) » [Message Transformation](MessageTransformationIntro.html) | [Contents](toc.html)[⇐ Prev](MessageBroker.html)[Next ⇒](EnvelopeWrapper.html) |\n| --- | --- | --- |\n\nAs described in the [*Message Translator*](MessageTranslator.html), applications that need to be integrated by a messaging system rarely agree on a common data format. For example, an accounting system is going to have a different notion of a Customer object than a customer relationship management system. On top of that, one system may persist data in a relational model, while another application uses flat files or XML documents. Integrating existing applications often times means that we do not have the liberty of modifying the applications to work more easily with other systems. Rather, the integration solution has to accommodate and resolve the differences between the varying systems. The [*Message Translator*](MessageTranslator.html) pattern offers a general solution to such differences in data formats. This chapter explores specific variants of the [*Message Translator*](MessageTranslator.html).\n\nMost messaging systems place specific requirements on the format and contents of a message header. We wrap message payload data into an [*Envelope Wrapper*](EnvelopeWrapper.html) that is compliant with the requirements of the messaging infrastructure. Multiple [*Envelope Wrapper*](EnvelopeWrapper.html)s can be combined if a message is passed through across different messaging infrastructures.\n\nA [*Content Enricher*](DataEnricher.html) is needed if the target system requires data fields that the originating system cannot supply. It has the ability to look up missing information or compute it from the available data. The [*Content Filter*](ContentFilter.html) does the opposite -- it removes unwanted data from a message. The [*Claim Check*](StoreInLibrary.html) also removes data from a message but stores it for later retrieval. The [*Normalizer*](Normalizer.html) translates messages arriving in many different formats into a common format.\n\nMessage transformation is a deep topic in integration. [*Message Channel*](MessageChannel.html)s and [*Message Router*](MessageRouter.html)s can remove basic dependencies between applications by eliminating the need for one application to be aware of the other's location. One application can send a message to a [*Message Channel*](MessageChannel.html) and worry about what application will consume it. However, message formats impose another set of dependency. If one application has to format messages in another application's data format, the decoupling in form of the [*Message Channel*](MessageChannel.html) is somewhat of an illusion. Any change to the receiving application or the switch from one receiving application to another still requires a change to the sending application. [*Message Translator*](MessageTranslator.html)s help remove this dependency. Due to the importance of message formats and the transformation between them, we can view any integration solution as two parallel systems. One deals with actual message data, the other one with metadata, the data that describes message data. Many of the patterns used in creation of the message flow can also be used to manage metadata. For example, a [*Channel Adapter*](ChannelAdapter.html) can not only move messages in an out of a system, but it can also extract metadata from external applications and load it into a central metadata repository. Using this repository the integration developers can define transformations between the application metadata and the [*Canonical Data Model*](CanonicalDataModel.html).\n\n*Metadata Integration*\n\nFor example, the picture above depicts the integration between two applications that need to exchange customer information. Each system has a slightly different definition of customer data. Application A stores first and last name in two separate fields whereas Application B stores it in one field. Likewise, Application A stores the customer's ZIP code and not the state while Application B stores only the state code. Messages flowing from Application A to Application B have to undergo a transformation so that Application B can receive data in the required format. Creating the transformation is much simplified if the [*Channel Adapter*](ChannelAdapter.html)s can also extract metadata, e.g. data describing the message format. This metadata can then be loaded into a repository, greatly simplifying the configuration and validation of the [*Message Translator*](MessageTranslator.html). The metadata can be stored in a variety of formats. A common format used for XML messages are XSD's -- XML Schema Definitions. Other EAI tools implement proprietary metadata formats, but allow administrators to import and export of metadata into different formats.\n\nMany of the principles incorporated in these patterns are applicable outside of messaging integration. For example, [*File Transfer*](FileTransferIntegration.html) has to perform transformation functions between systems. Likewise, [*Remote Procedure Invocation*](EncapsulatedSynchronousIntegration.html) has to make requests in the data format specified by the service that is to be called even if the application's internal format is different.\n\nThis chapter describes variations of data transformation tasks. It does not go into the details of structural transformations between entities (e.g., how to you transform between two data models if one model supports many-to-many relationships between customer and address but the other model includes address fields on the customer record). One of the oldest and still most relevant books on the topic of data representation and relationships is [[Kent](http://www.amazon.com/exec/obidos/ASIN/1585009709/enterpriseint-20)].\n\n## Integration Pattern Language\n\n[Message Construct.](MessageConstructionIntro.html)\n\n[Message](Message.html)\n\n[Command Message](CommandMessage.html)\n\n[Document Message](DocumentMessage.html)\n\n[Event Message](EventMessage.html)\n\n[Request-Reply](RequestReply.html)\n\n[Return Address](ReturnAddress.html)\n\n[Correlation Identifier](CorrelationIdentifier.html)\n\n[Message Sequence](MessageSequence.html)\n\n[Message Expiration](MessageExpiration.html)\n\n[Format Indicator](FormatIndicator.html)\n\n[Message Routing](MessageRoutingIntro.html)\n\n[Pipes-and-Filters](PipesAndFilters.html)\n\n[Message Router](MessageRouter.html)\n\n[Content-based Router](ContentBasedRouter.html)\n\n[Message Filter](Filter.html)\n\n[Dynamic Router](DynamicRouter.html)\n\n[Recipient List](RecipientList.html)\n\n[Splitter](Sequencer.html)\n\n[Aggregator](Aggregator.html)\n\n[Resequencer](Resequencer.html)\n\n[Composed Msg. Processor](DistributionAggregate.html)\n\n[Scatter-Gather](BroadcastAggregate.html)\n\n[Routing Slip](RoutingTable.html)\n\n[Process Manager](ProcessManager.html)\n\n[Message Broker](MessageBroker.html)\n\n[Message\nTransformation](MessageTransformationIntro.html)\n\n[Message Translator](MessageTranslator.html)\n\n[Envelope Wrapper](EnvelopeWrapper.html)\n\n[Content Enricher](DataEnricher.html)\n\n[Content Filter](ContentFilter.html)\n\n[Claim Check](StoreInLibrary.html)\n\n[Normalizer](Normalizer.html)\n\n[Canonical Data Model](CanonicalDataModel.html)\n\n[Messaging Endpoints](MessagingEndpointsIntro.html)\n\n[Message Endpoint](MessageEndpoint.html)\n\n[Messaging Gateway](MessagingGateway.html)\n\n[Messaging Mapper](MessagingMapper.html)\n\n[Transactional Client](TransactionalClient.html)\n\n[Polling Consumer](PollingConsumer.html)\n\n[Event-driven Consumer](EventDrivenConsumer.html)\n\n[Competing Consumers](CompetingConsumers.html)\n\n[Message Dispatcher](MessageDispatcher.html)\n\n[Selective Consumer](MessageSelector.html)\n\n[Durable Subscriber](DurableSubscription.html)\n\n[Idempotent Receiver](IdempotentReceiver.html)\n\n[Service Activator](MessagingAdapter.html)\n\n[Messaging Channels](MessagingChannelsIntro.html)\n\n[Message Channel](MessageChannel.html)\n\n[Point-to-Point Channel](PointToPointChannel.html)\n\n[Publish-Subscr. Channel](PublishSubscribeChannel.html)\n\n[Datatype Channel](DatatypeChannel.html)\n\n[Invalid Message Channel](InvalidMessageChannel.html)\n\n[Dead Letter Channel](DeadLetterChannel.html)\n\n[Guaranteed Delivery](GuaranteedMessaging.html)\n\n[Channel Adapter](ChannelAdapter.html)\n\n[Messaging Bridge](MessagingBridge.html)\n\n[Message Bus](MessageBus.html)\n\n[Systems Mgmt.](SystemManagementIntro.html)\n\n[Control Bus](ControlBus.html)\n\n[Detour](Detour.html)\n\n[Wire Tap](WireTap.html)\n\n[Message History](MessageHistory.html)\n\n[Message Store](MessageStore.html)\n\n[Smart Proxy](SmartProxy.html)\n\n[Test Message](TestMessage.html)\n\n[Channel Purger](ChannelPurger.html)", "znaku_textu": 8566, "slov": 965, "odkazu": 108, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/MessageTransformationIntro.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 06:03:51", "sha256": "f1b3821d4514d6393531201e0f15c3d0a2c860aa9c42cff0a9fe980b796eca8c", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://www.amazon.com/exec/obidos/ASIN/1585009709/enterpriseint-20", "https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "https://www.architectelevator.com/book", "https://www.cloudstrategybook.com/", "https://www.platformstrategybook.info/"]} {"url": "https://www.enterpriseintegrationpatterns.com/MessageTranslator.html", "titulek": "Message Translator - Enterprise Integration Patterns", "h1": "", "popis": "How can systems using different data formats communicate with each other using messaging?", "klicova_slova": "Message Translator,integration, messaging, events, patterns, event-driven, coupling, eai, middleware, application integration, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns", "og:title": "Message Translator - Enterprise Integration Patterns", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/MessageTranslator.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/MessageTranslator.gif"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Integration Pattern Language"}], "markdown": "| | Message Translator[Messaging Patterns](index.html) » [Messaging Systems](MessagingComponentsIntro.html) | [Contents](toc.html)[⇐ Prev](MessageRouter.html)[Next ⇒](MessageEndpoint.html) |\n| --- | --- | --- |\n\nThe previous patterns describe how to construct messages and how to route them to the correct destination. In many cases, enterprise integration solutions route messages between existing applications such as legacy systems, packaged applications, homegrown custom applications, or applications operated by external partners. Each of these applications is usually built around a proprietary data model. Each application may have a slightly different notion of the *Customer* entity , the attributes that define a *Customer* and which other entities a *Customer* is related to. For example, the accounting system may be more interested in the customer's tax payer ID numbers while the customer-relationship management (CRM) system stores phone numbers and addresses. The application’s underlying data model usually drives the design of the physical database schema, an interface file format or a programming interface (API) -- those entities that an integration solution has to interface with. As a result, the applications expect to receive messages that mimic the application's internal data format.\n\nIn addition to the proprietary data models and data formats incorporated in the various applications, integration solutions often times interact with standardized data formats that seek to be independent from specific applications. There are a number of consortia and standards bodies that define these protocols, such as RosettaNet, ebXML, OAGIS and many other, industry specific consortia. In many cases, the integration solution needs to be able to communicate with external parties using the ‘official’ data formats while the internal systems are based on proprietary formats.\n\nHow can systems using different data formats communicate with each other using messaging?\n\nUse a special filter, a *Message Translator*, between other filters or applications to translate one data format into another.\n\nThe *Message Translator* is the messaging equivalent of the *Adapter* pattern described in [[GoF](http://www.amazon.com/exec/obidos/ASIN/0201633612/enterpriseint-20)]. An adapter converts the interface of a component into a another interface so it can be used in a different context.\n\n...\nRead the entire pattern in the book [Enterprise Integration Patterns](/books1.html)\n\n**Related patterns:**\n\n[*Canonical Data Model*](CanonicalDataModel.html), [*Channel Adapter*](ChannelAdapter.html), [*Content Filter*](ContentFilter.html), [*Content Enricher*](DataEnricher.html), [*Message Channel*](MessageChannel.html), [*Message Endpoint*](MessageEndpoint.html), [*Message Router*](MessageRouter.html), [*Message Translator*](MessageTranslator.html), [*Messaging Bridge*](MessagingBridge.html), [*Normalizer*](Normalizer.html), [*Pipes and Filters*](PipesAndFilters.html), [*Shared Database*](SharedDataBaseIntegration.html), [*Claim Check*](StoreInLibrary.html)\n\n---\n\n## Integration Pattern Language\n\n[Message Construct.](MessageConstructionIntro.html)\n\n[Message](Message.html)\n\n[Command Message](CommandMessage.html)\n\n[Document Message](DocumentMessage.html)\n\n[Event Message](EventMessage.html)\n\n[Request-Reply](RequestReply.html)\n\n[Return Address](ReturnAddress.html)\n\n[Correlation Identifier](CorrelationIdentifier.html)\n\n[Message Sequence](MessageSequence.html)\n\n[Message Expiration](MessageExpiration.html)\n\n[Format Indicator](FormatIndicator.html)\n\n[Message Routing](MessageRoutingIntro.html)\n\n[Pipes-and-Filters](PipesAndFilters.html)\n\n[Message Router](MessageRouter.html)\n\n[Content-based Router](ContentBasedRouter.html)\n\n[Message Filter](Filter.html)\n\n[Dynamic Router](DynamicRouter.html)\n\n[Recipient List](RecipientList.html)\n\n[Splitter](Sequencer.html)\n\n[Aggregator](Aggregator.html)\n\n[Resequencer](Resequencer.html)\n\n[Composed Msg. Processor](DistributionAggregate.html)\n\n[Scatter-Gather](BroadcastAggregate.html)\n\n[Routing Slip](RoutingTable.html)\n\n[Process Manager](ProcessManager.html)\n\n[Message Broker](MessageBroker.html)\n\n[Message\nTransformation](MessageTransformationIntro.html)\n\n[Message Translator](MessageTranslator.html)\n\n[Envelope Wrapper](EnvelopeWrapper.html)\n\n[Content Enricher](DataEnricher.html)\n\n[Content Filter](ContentFilter.html)\n\n[Claim Check](StoreInLibrary.html)\n\n[Normalizer](Normalizer.html)\n\n[Canonical Data Model](CanonicalDataModel.html)\n\n[Messaging Endpoints](MessagingEndpointsIntro.html)\n\n[Message Endpoint](MessageEndpoint.html)\n\n[Messaging Gateway](MessagingGateway.html)\n\n[Messaging Mapper](MessagingMapper.html)\n\n[Transactional Client](TransactionalClient.html)\n\n[Polling Consumer](PollingConsumer.html)\n\n[Event-driven Consumer](EventDrivenConsumer.html)\n\n[Competing Consumers](CompetingConsumers.html)\n\n[Message Dispatcher](MessageDispatcher.html)\n\n[Selective Consumer](MessageSelector.html)\n\n[Durable Subscriber](DurableSubscription.html)\n\n[Idempotent Receiver](IdempotentReceiver.html)\n\n[Service Activator](MessagingAdapter.html)\n\n[Messaging Channels](MessagingChannelsIntro.html)\n\n[Message Channel](MessageChannel.html)\n\n[Point-to-Point Channel](PointToPointChannel.html)\n\n[Publish-Subscr. Channel](PublishSubscribeChannel.html)\n\n[Datatype Channel](DatatypeChannel.html)\n\n[Invalid Message Channel](InvalidMessageChannel.html)\n\n[Dead Letter Channel](DeadLetterChannel.html)\n\n[Guaranteed Delivery](GuaranteedMessaging.html)\n\n[Channel Adapter](ChannelAdapter.html)\n\n[Messaging Bridge](MessagingBridge.html)\n\n[Message Bus](MessageBus.html)\n\n[Systems Mgmt.](SystemManagementIntro.html)\n\n[Control Bus](ControlBus.html)\n\n[Detour](Detour.html)\n\n[Wire Tap](WireTap.html)\n\n[Message History](MessageHistory.html)\n\n[Message Store](MessageStore.html)\n\n[Smart Proxy](SmartProxy.html)\n\n[Test Message](TestMessage.html)\n\n[Channel Purger](ChannelPurger.html)", "znaku_textu": 5780, "slov": 530, "odkazu": 109, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/MessageTranslator.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 06:03:52", "sha256": "b009179437399ba4b8107ba944487e08c3788cc8b5afeba6ac3a81c5d7d0da0b", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://www.amazon.com/exec/obidos/ASIN/0201633612/enterpriseint-20", "http://creativecommons.org/licenses/by/4.0/", "https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "https://www.architectelevator.com/book", "https://www.cloudstrategybook.com/", "https://www.platformstrategybook.info/"]} {"url": "https://www.enterpriseintegrationpatterns.com/Messaging.html", "titulek": "Messaging - Enterprise Integration Patterns", "h1": "", "popis": "How can I integrate multiple applications so that they work together and can exchange information?", "klicova_slova": "Messaging,integration, messaging, events, patterns, event-driven, coupling, eai, middleware, application integration, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns", "og:title": "Messaging - Enterprise Integration Patterns", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/Messaging.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/Messaging.gif"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Integration Pattern Language"}], "markdown": "| | Messaging[Messaging Patterns](index.html) » [Integration Styles](IntegrationStylesIntro.html) | [Contents](toc.html)[⇐ Prev](EncapsulatedSynchronousIntegration.html)[Next ⇒](MessagingComponentsIntro.html) |\n| --- | --- | --- |\n\nAn enterprise has multiple applications that are being built independently, with different languages and platforms. The enterprise needs to share data and processes in a responsive way.\n\nHow can I integrate multiple applications so that they work together and can exchange information?\n\nUse *Messaging* to transfer packets of data frequently, immediately, reliably, and asynchronously, using customizable formats.\n\nAsynchronous messaging is fundamentally a pragmatic reaction to the\nproblems of distributed systems. Sending a message does not require\nboth systems to be up and ready at the same time. Furthermore, thinking\nabout the communication in an asynchronous manner forces developers to\nrecognize that working with a remote application is slower, which encourages\ndesign of components with high cohesion (lots of work locally) and low adhesion\n(selective work remotely).\n\nMessaging systems also allow much of the decoupling you get when\nusing [*File Transfer*](FileTransferIntegration.html). Messages can be\ntransformed in transit without either the sender or receiver knowing\nabout the transformation. Indeed the decoupling allows integrators to\nbroadcast messages to multiple receivers, support choosing one of many\npotential receivers, and other topologies that allow integration to be\nseparated from the development of the applications. Since human issues\ntend to separate application development from application integration,\nthis approach works with human nature rather than against it.\n\n...\nRead the entire pattern in the book [Enterprise Integration Patterns](/books1.html)\n\n**Related patterns:**\n\n[*Remote Procedure Invocation*](EncapsulatedSynchronousIntegration.html), [*File Transfer*](FileTransferIntegration.html), [*Message*](Message.html), [*Message Channel*](MessageChannel.html), [*Message Endpoint*](MessageEndpoint.html), [*Message Router*](MessageRouter.html), [*Message Translator*](MessageTranslator.html), [*Shared Database*](SharedDataBaseIntegration.html)\n\n**Further reading:**\n\n- [What Does It Mean to Use Messaging?](/ramblings/74_messaging.html)\n- [Integration Styles](/ramblings/08_integrationstyles.html)\n\n---\n\n## Integration Pattern Language\n\n[Message Construct.](MessageConstructionIntro.html)\n\n[Message](Message.html)\n\n[Command Message](CommandMessage.html)\n\n[Document Message](DocumentMessage.html)\n\n[Event Message](EventMessage.html)\n\n[Request-Reply](RequestReply.html)\n\n[Return Address](ReturnAddress.html)\n\n[Correlation Identifier](CorrelationIdentifier.html)\n\n[Message Sequence](MessageSequence.html)\n\n[Message Expiration](MessageExpiration.html)\n\n[Format Indicator](FormatIndicator.html)\n\n[Message Routing](MessageRoutingIntro.html)\n\n[Pipes-and-Filters](PipesAndFilters.html)\n\n[Message Router](MessageRouter.html)\n\n[Content-based Router](ContentBasedRouter.html)\n\n[Message Filter](Filter.html)\n\n[Dynamic Router](DynamicRouter.html)\n\n[Recipient List](RecipientList.html)\n\n[Splitter](Sequencer.html)\n\n[Aggregator](Aggregator.html)\n\n[Resequencer](Resequencer.html)\n\n[Composed Msg. Processor](DistributionAggregate.html)\n\n[Scatter-Gather](BroadcastAggregate.html)\n\n[Routing Slip](RoutingTable.html)\n\n[Process Manager](ProcessManager.html)\n\n[Message Broker](MessageBroker.html)\n\n[Message\nTransformation](MessageTransformationIntro.html)\n\n[Message Translator](MessageTranslator.html)\n\n[Envelope Wrapper](EnvelopeWrapper.html)\n\n[Content Enricher](DataEnricher.html)\n\n[Content Filter](ContentFilter.html)\n\n[Claim Check](StoreInLibrary.html)\n\n[Normalizer](Normalizer.html)\n\n[Canonical Data Model](CanonicalDataModel.html)\n\n[Messaging Endpoints](MessagingEndpointsIntro.html)\n\n[Message Endpoint](MessageEndpoint.html)\n\n[Messaging Gateway](MessagingGateway.html)\n\n[Messaging Mapper](MessagingMapper.html)\n\n[Transactional Client](TransactionalClient.html)\n\n[Polling Consumer](PollingConsumer.html)\n\n[Event-driven Consumer](EventDrivenConsumer.html)\n\n[Competing Consumers](CompetingConsumers.html)\n\n[Message Dispatcher](MessageDispatcher.html)\n\n[Selective Consumer](MessageSelector.html)\n\n[Durable Subscriber](DurableSubscription.html)\n\n[Idempotent Receiver](IdempotentReceiver.html)\n\n[Service Activator](MessagingAdapter.html)\n\n[Messaging Channels](MessagingChannelsIntro.html)\n\n[Message Channel](MessageChannel.html)\n\n[Point-to-Point Channel](PointToPointChannel.html)\n\n[Publish-Subscr. Channel](PublishSubscribeChannel.html)\n\n[Datatype Channel](DatatypeChannel.html)\n\n[Invalid Message Channel](InvalidMessageChannel.html)\n\n[Dead Letter Channel](DeadLetterChannel.html)\n\n[Guaranteed Delivery](GuaranteedMessaging.html)\n\n[Channel Adapter](ChannelAdapter.html)\n\n[Messaging Bridge](MessagingBridge.html)\n\n[Message Bus](MessageBus.html)\n\n[Systems Mgmt.](SystemManagementIntro.html)\n\n[Control Bus](ControlBus.html)\n\n[Detour](Detour.html)\n\n[Wire Tap](WireTap.html)\n\n[Message History](MessageHistory.html)\n\n[Message Store](MessageStore.html)\n\n[Smart Proxy](SmartProxy.html)\n\n[Test Message](TestMessage.html)\n\n[Channel Purger](ChannelPurger.html)", "znaku_textu": 5090, "slov": 417, "odkazu": 110, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/Messaging.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 06:53:06", "sha256": "d868aeb114e06193cb59708e0ef8c492f273fe9cb0ddfadbfba533f101b6c3dd", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://creativecommons.org/licenses/by/4.0/", "https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "https://www.architectelevator.com/book", "https://www.cloudstrategybook.com/", "https://www.platformstrategybook.info/"]} {"url": "https://www.enterpriseintegrationpatterns.com/MessagingAdapter.html", "titulek": "Service Activator - Enterprise Integration Patterns", "h1": "", "popis": "How can an application design a service to be invoked both via various messaging technologies and via non-messaging techniques?", "klicova_slova": "Service Activator,integration, messaging, events, patterns, event-driven, coupling, eai, middleware, application integration, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns", "og:title": "Service Activator - Enterprise Integration Patterns", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/MessagingAdapter.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/MessagingAdapterSolution.gif"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Integration Pattern Language"}], "markdown": "Messaging Patterns\n\n[Messaging Patterns](index.html)\n\n- [Integration Styles](IntegrationStylesIntro.html)\n- [Messaging Systems](MessagingComponentsIntro.html)\n- [Messaging Channels](MessagingChannelsIntro.html)\n- [Message Construction](MessageConstructionIntro.html)\n- [Interlude: Simple Messaging](SimpleMessagingIntro.html)\n- [Message Routing](MessageRoutingIntro.html)\n- [Message Transformation](MessageTransformationIntro.html)\n- [Interlude: Composed Messaging](ComposedMessagingExample.html)\n- [Messaging Endpoints](MessagingEndpointsIntro.html)\n- [System Management](SystemManagementIntro.html)\n- Interlude: Systems Management Example\n- Integration Patterns in Practice\n- Concluding Remarks\n- Appendices\n\n| | Service Activator[Messaging Patterns](index.html) » [Messaging Endpoints](MessagingEndpointsIntro.html) | [Contents](toc.html)[⇐ Prev](IdempotentReceiver.html)[Next ⇒](SystemManagementIntro.html) |\n| --- | --- | --- |\n\nAn application has a service that it would like to make available to other applications.\n\nHow can an application design a service to be invoked both via various messaging technologies and via non-messaging techniques?\n\nDesign a *Service Activator* that connects the messages on the channel to the service being accessed.\n\nA *Service Activator* can be one-way (request only) or two-way ([*Request-Reply*](RequestReply.html)). The service can be as simple as a method call—synchronous and non-remote—perhaps part of a Service Layer [[EAA](http://www.amazon.com/exec/obidos/ASIN/0321127420/enterpriseint-20)]. The activator can be hard-coded to always invoke the same service, or can use reflection to invoke the service indicated by the message. The activator handles all of the messaging details and invokes the service like any other client, such that the service doesn’t even know it’s being invoked through messaging.\n\n...\nRead the entire pattern in the book [Enterprise Integration Patterns](/books1.html)\n\n**Related patterns:**\n\n[*Command Message*](CommandMessage.html), [*Competing Consumers*](CompetingConsumers.html), [*Event-Driven Consumer*](EventDrivenConsumer.html), [*Invalid Message Channel*](InvalidMessageChannel.html), [*Message Dispatcher*](MessageDispatcher.html), [*Message Endpoint*](MessageEndpoint.html), [*Messaging Gateway*](MessagingGateway.html), [*Polling Consumer*](PollingConsumer.html), [*Request-Reply*](RequestReply.html), [*Transactional Client*](TransactionalClient.html)\n\n---\n\n## Integration Pattern Language\n\n[Message Construct.](MessageConstructionIntro.html)\n\n[Message](Message.html)\n\n[Command Message](CommandMessage.html)\n\n[Document Message](DocumentMessage.html)\n\n[Event Message](EventMessage.html)\n\n[Request-Reply](RequestReply.html)\n\n[Return Address](ReturnAddress.html)\n\n[Correlation Identifier](CorrelationIdentifier.html)\n\n[Message Sequence](MessageSequence.html)\n\n[Message Expiration](MessageExpiration.html)\n\n[Format Indicator](FormatIndicator.html)\n\n[Message Routing](MessageRoutingIntro.html)\n\n[Pipes-and-Filters](PipesAndFilters.html)\n\n[Message Router](MessageRouter.html)\n\n[Content-based Router](ContentBasedRouter.html)\n\n[Message Filter](Filter.html)\n\n[Dynamic Router](DynamicRouter.html)\n\n[Recipient List](RecipientList.html)\n\n[Splitter](Sequencer.html)\n\n[Aggregator](Aggregator.html)\n\n[Resequencer](Resequencer.html)\n\n[Composed Msg. Processor](DistributionAggregate.html)\n\n[Scatter-Gather](BroadcastAggregate.html)\n\n[Routing Slip](RoutingTable.html)\n\n[Process Manager](ProcessManager.html)\n\n[Message Broker](MessageBroker.html)\n\n[Message\nTransformation](MessageTransformationIntro.html)\n\n[Message Translator](MessageTranslator.html)\n\n[Envelope Wrapper](EnvelopeWrapper.html)\n\n[Content Enricher](DataEnricher.html)\n\n[Content Filter](ContentFilter.html)\n\n[Claim Check](StoreInLibrary.html)\n\n[Normalizer](Normalizer.html)\n\n[Canonical Data Model](CanonicalDataModel.html)\n\n[Messaging Endpoints](MessagingEndpointsIntro.html)\n\n[Message Endpoint](MessageEndpoint.html)\n\n[Messaging Gateway](MessagingGateway.html)\n\n[Messaging Mapper](MessagingMapper.html)\n\n[Transactional Client](TransactionalClient.html)\n\n[Polling Consumer](PollingConsumer.html)\n\n[Event-driven Consumer](EventDrivenConsumer.html)\n\n[Competing Consumers](CompetingConsumers.html)\n\n[Message Dispatcher](MessageDispatcher.html)\n\n[Selective Consumer](MessageSelector.html)\n\n[Durable Subscriber](DurableSubscription.html)\n\n[Idempotent Receiver](IdempotentReceiver.html)\n\n[Service Activator](MessagingAdapter.html)\n\n[Messaging Channels](MessagingChannelsIntro.html)\n\n[Message Channel](MessageChannel.html)\n\n[Point-to-Point Channel](PointToPointChannel.html)\n\n[Publish-Subscr. Channel](PublishSubscribeChannel.html)\n\n[Datatype Channel](DatatypeChannel.html)\n\n[Invalid Message Channel](InvalidMessageChannel.html)\n\n[Dead Letter Channel](DeadLetterChannel.html)\n\n[Guaranteed Delivery](GuaranteedMessaging.html)\n\n[Channel Adapter](ChannelAdapter.html)\n\n[Messaging Bridge](MessagingBridge.html)\n\n[Message Bus](MessageBus.html)\n\n[Systems Mgmt.](SystemManagementIntro.html)\n\n[Control Bus](ControlBus.html)\n\n[Detour](Detour.html)\n\n[Wire Tap](WireTap.html)\n\n[Message History](MessageHistory.html)\n\n[Message Store](MessageStore.html)\n\n[Smart Proxy](SmartProxy.html)\n\n[Test Message](TestMessage.html)\n\n[Channel Purger](ChannelPurger.html)\n\n- » [Read the latest in My Blog](/ramblings)\n- » [Get more insights from My Articles](/articles.html)\n- » [See me live in my Upcoming Talks](/talks)\n\nYou can reuse the following elements under the [Creative Commons Attribution](http://creativecommons.org/licenses/by/4.0/) license: pattern icon, pattern name, problem and solution statements (in bold), and the sketch. Other portions are protected by copyright.\n\n[Enterprise Integration Patterns](https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20)\nThe de-facto language for designing asynchronous, distributed systems. Over 100,000 copies sold.\n\n[The Software Architect Elevator](https://www.architectelevator.com/book)\n\n Rethink the role of architects as a connecting element across organizational layers. Acquire the technical, communication, and organizational skills to succeed in this new role.\n\n[Cloud Strategy](https://www.cloudstrategybook.com)\n\n Make your cloud migration a success by translating high-level goals into conscious decisions with well-understood trade-offs.\n\n[Platform Strategy](https://www.platformstrategybook.info)\n\n Platforms can boost innovation through harmonization, but they aren't easy to build. Learn from over a decade of designing and rolling out IT platforms.", "znaku_textu": 6393, "slov": 527, "odkazu": 109, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/MessagingAdapter.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 06:04:11", "sha256": "1743682be5bf9efa2141801b7c1e8bc6a02b32c12583e31fd79dd1e106fc29aa", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://www.amazon.com/exec/obidos/ASIN/0321127420/enterpriseint-20", "http://creativecommons.org/licenses/by/4.0/", "https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "https://www.architectelevator.com/book", "https://www.cloudstrategybook.com/", "https://www.platformstrategybook.info/"]} {"url": "https://www.enterpriseintegrationpatterns.com/MessagingBridge.html", "titulek": "Messaging Bridge - Enterprise Integration Patterns", "h1": "", "popis": "How can multiple messaging systems be connected so that messages available on one are also available on the others?", "klicova_slova": "Messaging Bridge,integration, messaging, events, patterns, event-driven, coupling, eai, middleware, application integration, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns", "og:title": "Messaging Bridge - Enterprise Integration Patterns", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/MessagingBridge.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/MessagingBridge.gif"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Integration Pattern Language"}], "markdown": "Messaging Patterns\n\n[Messaging Patterns](index.html)\n\n- [Integration Styles](IntegrationStylesIntro.html)\n- [Messaging Systems](MessagingComponentsIntro.html)\n- [Messaging Channels](MessagingChannelsIntro.html)\n- [Message Construction](MessageConstructionIntro.html)\n- [Interlude: Simple Messaging](SimpleMessagingIntro.html)\n- [Message Routing](MessageRoutingIntro.html)\n- [Message Transformation](MessageTransformationIntro.html)\n- [Interlude: Composed Messaging](ComposedMessagingExample.html)\n- [Messaging Endpoints](MessagingEndpointsIntro.html)\n- [System Management](SystemManagementIntro.html)\n- Interlude: Systems Management Example\n- Integration Patterns in Practice\n- Concluding Remarks\n- Appendices\n\n| | Messaging Bridge[Messaging Patterns](index.html) » [Messaging Channels](MessagingChannelsIntro.html) | [Contents](toc.html)[⇐ Prev](ChannelAdapter.html)[Next ⇒](MessageBus.html) |\n| --- | --- | --- |\n\nAn enterprise is using [*Messaging*](Messaging.html) to enable applications to communicate. However, the enterprise uses more than one messaging system, which confuses the issue of which messaging system an application should connect to.\n\nHow can multiple messaging systems be connected so that messages available on one are also available on the others?\n\nUse a *Messaging Bridge*, a connection between messaging systems, to replicate messages between systems.\n\nTypically, there is no practical way to connect two complete messaging systems, so instead we connect individual, corresponding channels between the messaging systems. The *Messaging Bridge* is a set of [*Channel Adapter*](ChannelAdapter.html)s, where the non-messaging client is a actually another messaging system, and where each pair of adapters connects a pair of corresponding channels. The bridge acts as map from one set of channels to the other, and also transforms the message format of one system to the other. The connected channels may be used to transmit messages between traditional clients of the messaging system, or strictly for messages intended for other messaging systems.\n\n...\nRead the entire pattern in the book [Enterprise Integration Patterns](/books1.html)\n\n**Related patterns:**\n\n[*Channel Adapter*](ChannelAdapter.html), [*Emerging Standards and Futures in Enterprise Integration*](Future.html), [*Message Channel*](MessageChannel.html), [*Message Endpoint*](MessageEndpoint.html), [*Messaging*](Messaging.html)\n\n---\n\n## Integration Pattern Language\n\n[Message Construct.](MessageConstructionIntro.html)\n\n[Message](Message.html)\n\n[Command Message](CommandMessage.html)\n\n[Document Message](DocumentMessage.html)\n\n[Event Message](EventMessage.html)\n\n[Request-Reply](RequestReply.html)\n\n[Return Address](ReturnAddress.html)\n\n[Correlation Identifier](CorrelationIdentifier.html)\n\n[Message Sequence](MessageSequence.html)\n\n[Message Expiration](MessageExpiration.html)\n\n[Format Indicator](FormatIndicator.html)\n\n[Message Routing](MessageRoutingIntro.html)\n\n[Pipes-and-Filters](PipesAndFilters.html)\n\n[Message Router](MessageRouter.html)\n\n[Content-based Router](ContentBasedRouter.html)\n\n[Message Filter](Filter.html)\n\n[Dynamic Router](DynamicRouter.html)\n\n[Recipient List](RecipientList.html)\n\n[Splitter](Sequencer.html)\n\n[Aggregator](Aggregator.html)\n\n[Resequencer](Resequencer.html)\n\n[Composed Msg. Processor](DistributionAggregate.html)\n\n[Scatter-Gather](BroadcastAggregate.html)\n\n[Routing Slip](RoutingTable.html)\n\n[Process Manager](ProcessManager.html)\n\n[Message Broker](MessageBroker.html)\n\n[Message\nTransformation](MessageTransformationIntro.html)\n\n[Message Translator](MessageTranslator.html)\n\n[Envelope Wrapper](EnvelopeWrapper.html)\n\n[Content Enricher](DataEnricher.html)\n\n[Content Filter](ContentFilter.html)\n\n[Claim Check](StoreInLibrary.html)\n\n[Normalizer](Normalizer.html)\n\n[Canonical Data Model](CanonicalDataModel.html)\n\n[Messaging Endpoints](MessagingEndpointsIntro.html)\n\n[Message Endpoint](MessageEndpoint.html)\n\n[Messaging Gateway](MessagingGateway.html)\n\n[Messaging Mapper](MessagingMapper.html)\n\n[Transactional Client](TransactionalClient.html)\n\n[Polling Consumer](PollingConsumer.html)\n\n[Event-driven Consumer](EventDrivenConsumer.html)\n\n[Competing Consumers](CompetingConsumers.html)\n\n[Message Dispatcher](MessageDispatcher.html)\n\n[Selective Consumer](MessageSelector.html)\n\n[Durable Subscriber](DurableSubscription.html)\n\n[Idempotent Receiver](IdempotentReceiver.html)\n\n[Service Activator](MessagingAdapter.html)\n\n[Messaging Channels](MessagingChannelsIntro.html)\n\n[Message Channel](MessageChannel.html)\n\n[Point-to-Point Channel](PointToPointChannel.html)\n\n[Publish-Subscr. Channel](PublishSubscribeChannel.html)\n\n[Datatype Channel](DatatypeChannel.html)\n\n[Invalid Message Channel](InvalidMessageChannel.html)\n\n[Dead Letter Channel](DeadLetterChannel.html)\n\n[Guaranteed Delivery](GuaranteedMessaging.html)\n\n[Channel Adapter](ChannelAdapter.html)\n\n[Messaging Bridge](MessagingBridge.html)\n\n[Message Bus](MessageBus.html)\n\n[Systems Mgmt.](SystemManagementIntro.html)\n\n[Control Bus](ControlBus.html)\n\n[Detour](Detour.html)\n\n[Wire Tap](WireTap.html)\n\n[Message History](MessageHistory.html)\n\n[Message Store](MessageStore.html)\n\n[Smart Proxy](SmartProxy.html)\n\n[Test Message](TestMessage.html)\n\n[Channel Purger](ChannelPurger.html)\n\n- » [Read the latest in My Blog](/ramblings)\n- » [Get more insights from My Articles](/articles.html)\n- » [See me live in my Upcoming Talks](/talks)\n\nYou can reuse the following elements under the [Creative Commons Attribution](http://creativecommons.org/licenses/by/4.0/) license: pattern icon, pattern name, problem and solution statements (in bold), and the sketch. Other portions are protected by copyright.\n\n[Enterprise Integration Patterns](https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20)\nThe de-facto language for designing asynchronous, distributed systems. Over 100,000 copies sold.\n\n[The Software Architect Elevator](https://www.architectelevator.com/book)\n\n Rethink the role of architects as a connecting element across organizational layers. Acquire the technical, communication, and organizational skills to succeed in this new role.\n\n[Cloud Strategy](https://www.cloudstrategybook.com)\n\n Make your cloud migration a success by translating high-level goals into conscious decisions with well-understood trade-offs.\n\n[Platform Strategy](https://www.platformstrategybook.info)\n\n Platforms can boost innovation through harmonization, but they aren't easy to build. Learn from over a decade of designing and rolling out IT platforms.", "znaku_textu": 6371, "slov": 545, "odkazu": 108, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/MessagingBridge.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 06:52:55", "sha256": "e4f028e0c11196cdf7e66884a37e9d60fa340caa027f0c05c7b22f43822a301b", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://creativecommons.org/licenses/by/4.0/", "https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "https://www.architectelevator.com/book", "https://www.cloudstrategybook.com/", "https://www.platformstrategybook.info/"]} {"url": "https://www.enterpriseintegrationpatterns.com/MessagingChannelsIntro.html", "titulek": "Introduction to Messaging Channels - Enterprise Integration Patterns", "h1": "", "popis": "In Introduction to Messaging Systems, we discussed Message Channel. When two applications wish to exchange data, they do so by sending the data through a channel that connects the two. The application sending the data may not know which application will receive the data, but by selecting a particular channel to send the data on, the sender knows that the receiver will be one that is looking for that sort of data by looking for it on that channel. In this way, the applications that produce shared data have a way to communicate with those that wish to consume it.", "klicova_slova": "Introduction to Messaging Channels,integration, messaging, events, patterns, event-driven, coupling, eai, middleware, application integration, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns", "og:title": "Introduction to Messaging Channels - Enterprise Integration Patterns", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/MessagingChannelsIntro.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/eip1_patterns_wide.png"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Message Channel Themes"}, {"uroven": 2, "text": "Message Channel Decisions"}, {"uroven": 2, "text": "Integration Pattern Language"}], "markdown": "| | Introduction to Messaging Channels[Messaging Patterns](index.html) » [Messaging Channels](MessagingChannelsIntro.html) | [Contents](toc.html)[⇐ Prev](MessageEndpoint.html)[Next ⇒](PointToPointChannel.html) |\n| --- | --- | --- |\n\nIn [*Introduction to Messaging Systems*](MessagingComponentsIntro.html), we discussed [*Message Channel*](MessageChannel.html). When two applications wish to exchange data, they do so by sending the data through a channel that connects the two. The application sending the data may not know which application will receive the data, but by selecting a particular channel to send the data on, the sender knows that the receiver will be one that is looking for that sort of data by looking for it on that channel. In this way, the applications that produce shared data have a way to communicate with those that wish to consume it.\n\n## Message Channel Themes\n\nDeciding to use a [*Message Channel*](MessageChannel.html) is the simple part; if an application has data to transmit or data it wishes to receive, it will have to use a channel. The challenge is knowing what channels your applications will need and what to use them for.\n\n**Fixed set of channels** — One theme in this chapter is that the set of [*Message Channel*](MessageChannel.html)s available to an application tends to be static. When designing an application, a developer has to know where to put what types of data to share that data with other applications, and likewise where to look for what types of data coming from other applications. These paths of communication cannot be dynamically created and discovered at runtime; they need to be agreed upon at design time so that the application knows where its data is coming from and where the data is going to. \n (While it is true that most channels must be staticly defined, there are exceptions to this theme, cases where dynamic channels are practical and useful. One exception is the reply channel in [*Request-Reply*](RequestReply.html). The requestor can create or obtain a new channel the replier knows nothing about, specify it as the [*Return Address*](ReturnAddress.html) of a request message, and then the replier can make use of it. Another exception is messaging system implementations that support hierarchical channels. A receiver can subscribe to a parent in the hierarchy, then a sender can publish to a new child channel the receiver knows nothing about, and the subscriber will still receive the message. These relatively unusual cases notwithstanding, channels are usually defined at deployment-time and applications are designed around a known set of channels.)\n\n**Determining the set of channels** — A related issue is: Who decides what [*Message Channel*](MessageChannel.html)s are available, the messaging system or the applications? That is to say: Does the messaging system define certain channels and require the applications to make due with those? Or do the applications determine what channels they need and require the messaging system to provide them? There is no simple answer; designing the needed set of channels is iterative. First the applications determine the channels the messaging system will need to provide. Subsequent applications will try to design their communication around the channels that are available, but when this is not practical, they will require that additional channels be added. When a set of applications already use a certain set of channels, and new applications wish to join in, they too will use the existing set of channels. When existing applications add new functionality, they may require new channels.\n\n**Unidirectional channels** — Another common source of confusion is whether a [*Message Channel*](MessageChannel.html) is unidirectional or bidirectional. Technically, it’s neither; a channel is more like a bucket that some applications add data to and other applications take data from (albeit a bucket that is distributed across multiple computers in some coordinated fashion). But because the data is in messages that travel from one application to another, that gives the channel direction, making it unidirectional. If a channel were bidirectional, that would mean that an application would both send messages to and receive messages from the same channel, which—while technically possible—makes little sense because the application would tend to keep consuming its own messages, the messages it’s supposed to be sending to other applications. So for all practical purposes, channels are unidirectional. As a consequence, for two applications to have a two-way conversation, they will need two channels, one in each direction (see [*Request-Reply*](RequestReply.html) in the next chapter).\n\n## Message Channel Decisions\n\nNow that we understand what [*Message Channel*](MessageChannel.html)s are, let’s consider the decisions involved in using them:\n\n**One-to-one or one-to-many** — When your application shares a piece of data, do you want to share it with just one other application or with any other application that is interested? To send the data to a single application, use a [*Point-to-Point Channel*](PointToPointChannel.html). This does not guarantee that every piece of data sent on that channel will necessarily go to the same receiver, because the channel might have multiple receivers; but it does ensure that any one piece of data will only be received by one of the applications. If you want all of the receiver applications to be able to receive the data, use a [*Publish-Subscribe Channel*](PublishSubscribeChannel.html). When you send a piece of data this way, the channel effectively copies the data for each of the receivers.\n\n**What type of data** — Any data in any computer memory has to conform to some sort of *type*: a known format or expected structure with an agreed upon meaning. Otherwise, all data would just be a bunch of bytes and there would be no way to make any sense of it. Messaging systems work much the same way; the message contents must conform to some type so that the receiver understands the data’s structure. [*Datatype Channel*](DatatypeChannel.html) is the principle that all of the data on a channel has to be of the same type. This is the main reason why messaging systems need lots of channels; if the data could be of any type, the messaging system would only need one channel (in each direction) between any two applications.\n\n**Invalid and dead messages** — The message system can ensure that a message is delivered properly, but it cannot guarantee that the receiver will know what to do with it. The receiver has expectations about the data’s type and meaning; when it receives a message that doesn’t meet these expectations, there’s not much it can do. What it can do, though, is put the strange message on a specially designated [*Invalid Message Channel*](InvalidMessageChannel.html), in hopes that some utility monitoring the channel will pick up the message and figure out what to do with it. Many messaging systems have a similar built-in feature, a [*Dead Letter Channel*](DeadLetterChannel.html) for messages which are successfully sent but ultimately cannot be successfully delivered. Again, hopefully some utility monitoring the channel will know what to do with the messages that could not be delivered.\n\n**Crash proof** — If the messaging system crashes or is shut down for maintence, what happens to its messages? When it is back up and running, will its messages still be in its channels? By default, no; channels store their messages in memory. However, [*Guaranteed Delivery*](GuaranteedMessaging.html) makes channels persistent so that their messages are stored on disk. This hurts performance but makes messaging more reliable, even when the messaging system isn’t.\n\n**Non-messaging clients** — What if an application cannot connect to a messaging system but still wants to participate in messaging? Normally it would be out of luck; but if the messaging system can connect to the application somehow—through its user interface, its business services API, its database, or through a network connection such as TCP/IP or HTTP—then a [*Channel Adapter*](ChannelAdapter.html) on the messaging system can be used to connect a channel (or set of channels) to the application without having to modify the application and perhaps without having to have a messaging client running on the same machine as the application. Sometimes the \"non-messaging client\" really is a messaging client, just for a different messaging system. In that case, an application that is a client on both messaging systems can build a [*Messaging Bridge*](MessagingBridge.html) between the two, effectively connecting them into one composite messaging system.\n\n**Communications backbone** — As more and more of an enterprise’s applications connect to the messaging system and make their functionality available through messaging, the messaging system becomes a centeralized point of one-stop-shopping for functionality in the enterprise. A new application simply needs to know which channels to use to request functionality and which others to listen on for the results. The messaging system itself essentially becomes a [*Message Bus*](MessageBus.html), a backbone providing access to all of the enterprise’s various and ever-changing applications and functionality. You can achieve this integration nirvana more quickly and easily by specifically designing for it from the beginning.\n\nSo as you can see, getting applications set up for [*Messaging*](Messaging.html) involves more than just connecting them to the messaging system so that they can send messages. The messages must have [*Message Channel*](MessageChannel.html)s to transmit on. Slapping in some channels doesn’t get the job done either. They have to be designed with a purpose, based on the data type being shared, the sort of application making the data available, and the sort of application receiving the data. This chapter will explain the decisions that go into designing these channels.\n\nTo help illustrate the patterns, each one has an example from a ficticious, simplified \"stock trading\" domain. While none of these examples should be used as the basis for implementing a real trading system, they do serve as quick and specific examples of how the patterns can be used.\n\n## Integration Pattern Language\n\n[Message Construct.](MessageConstructionIntro.html)\n\n[Message](Message.html)\n\n[Command Message](CommandMessage.html)\n\n[Document Message](DocumentMessage.html)\n\n[Event Message](EventMessage.html)\n\n[Request-Reply](RequestReply.html)\n\n[Return Address](ReturnAddress.html)\n\n[Correlation Identifier](CorrelationIdentifier.html)\n\n[Message Sequence](MessageSequence.html)\n\n[Message Expiration](MessageExpiration.html)\n\n[Format Indicator](FormatIndicator.html)\n\n[Message Routing](MessageRoutingIntro.html)\n\n[Pipes-and-Filters](PipesAndFilters.html)\n\n[Message Router](MessageRouter.html)\n\n[Content-based Router](ContentBasedRouter.html)\n\n[Message Filter](Filter.html)\n\n[Dynamic Router](DynamicRouter.html)\n\n[Recipient List](RecipientList.html)\n\n[Splitter](Sequencer.html)\n\n[Aggregator](Aggregator.html)\n\n[Resequencer](Resequencer.html)\n\n[Composed Msg. Processor](DistributionAggregate.html)\n\n[Scatter-Gather](BroadcastAggregate.html)\n\n[Routing Slip](RoutingTable.html)\n\n[Process Manager](ProcessManager.html)\n\n[Message Broker](MessageBroker.html)\n\n[Message\nTransformation](MessageTransformationIntro.html)\n\n[Message Translator](MessageTranslator.html)\n\n[Envelope Wrapper](EnvelopeWrapper.html)\n\n[Content Enricher](DataEnricher.html)\n\n[Content Filter](ContentFilter.html)\n\n[Claim Check](StoreInLibrary.html)\n\n[Normalizer](Normalizer.html)\n\n[Canonical Data Model](CanonicalDataModel.html)\n\n[Messaging Endpoints](MessagingEndpointsIntro.html)\n\n[Message Endpoint](MessageEndpoint.html)\n\n[Messaging Gateway](MessagingGateway.html)\n\n[Messaging Mapper](MessagingMapper.html)\n\n[Transactional Client](TransactionalClient.html)\n\n[Polling Consumer](PollingConsumer.html)\n\n[Event-driven Consumer](EventDrivenConsumer.html)\n\n[Competing Consumers](CompetingConsumers.html)\n\n[Message Dispatcher](MessageDispatcher.html)\n\n[Selective Consumer](MessageSelector.html)\n\n[Durable Subscriber](DurableSubscription.html)\n\n[Idempotent Receiver](IdempotentReceiver.html)\n\n[Service Activator](MessagingAdapter.html)\n\n[Messaging Channels](MessagingChannelsIntro.html)\n\n[Message Channel](MessageChannel.html)\n\n[Point-to-Point Channel](PointToPointChannel.html)\n\n[Publish-Subscr. Channel](PublishSubscribeChannel.html)\n\n[Datatype Channel](DatatypeChannel.html)\n\n[Invalid Message Channel](InvalidMessageChannel.html)\n\n[Dead Letter Channel](DeadLetterChannel.html)\n\n[Guaranteed Delivery](GuaranteedMessaging.html)\n\n[Channel Adapter](ChannelAdapter.html)\n\n[Messaging Bridge](MessagingBridge.html)\n\n[Message Bus](MessageBus.html)\n\n[Systems Mgmt.](SystemManagementIntro.html)\n\n[Control Bus](ControlBus.html)\n\n[Detour](Detour.html)\n\n[Wire Tap](WireTap.html)\n\n[Message History](MessageHistory.html)\n\n[Message Store](MessageStore.html)\n\n[Smart Proxy](SmartProxy.html)\n\n[Test Message](TestMessage.html)\n\n[Channel Purger](ChannelPurger.html)", "znaku_textu": 12997, "slov": 1773, "odkazu": 107, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/MessagingChannelsIntro.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 06:04:12", "sha256": "12542489ee77139f16c4fcf6b8445e9efb36571e09db8e1c431333d49a0f3ee8", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "https://www.architectelevator.com/book", "https://www.cloudstrategybook.com/", "https://www.platformstrategybook.info/"]} {"url": "https://www.enterpriseintegrationpatterns.com/MessagingComponentsIntro.html", "titulek": "Introduction to Messaging Systems - Enterprise Integration Patterns", "h1": "", "popis": "Messaging makes applications loosely coupled by communicating asynchronously, which also makes the communication more reliable because the two applications do not have to be running at the same time. Messaging makes the messaging system responsible for transferring data from one application to another, so the applications can focus on what data they need to share but not worry so much about how to share it.", "klicova_slova": "Introduction to Messaging Systems,integration, messaging, events, patterns, event-driven, coupling, eai, middleware, application integration, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns", "og:title": "Introduction to Messaging Systems - Enterprise Integration Patterns", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/MessagingComponentsIntro.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/eip1_patterns_wide.png"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Basic Messaging Concepts"}, {"uroven": 2, "text": "Book Organization"}, {"uroven": 2, "text": "Integration Pattern Language"}], "markdown": "| | Introduction to Messaging Systems[Messaging Patterns](index.html) » [Messaging Systems](MessagingComponentsIntro.html) | [Contents](toc.html)[⇐ Prev](Messaging.html)[Next ⇒](MessageChannel.html) |\n| --- | --- | --- |\n\nMessaging makes applications loosely coupled by communicating asynchronously, which also makes the communication more reliable because the two applications do not have to be running at the same time. Messaging makes the messaging system responsible for transferring data from one application to another, so the applications can focus on what data they need to share but not worry so much about how to share it.\n\n## Basic Messaging Concepts\n\nLike most technologies, [*Messaging*](Messaging.html) involves certain basic concepts. Once you understand these concepts, you can make sense of the technology even before you understand all of the details about how to use it. These basic messaging concepts are:\n\n**Channels** — Messaging applications transmit data through a [*Message Channel*](MessageChannel.html), a virtual pipe that connects a sender to a receiver. A newly installed messaging system doesn’t contain any channels; you must determine how your applications need to communicate and then create the channels to facilitate it.\n\n**Messages** — A [*Message*](Message.html) is an atomic packet of data that can be transmitted on a channel. Thus to transmit data, an application must break the data into one or more packets, wrap each packet as a message, and then send the message on a channel. Likewise, a receiver application receives a message and must extract the data from the message to process it. The message system will try repeatedly to deliver the message (e.g., transmit it from the sender to the receiver) until it succeeds.\n\n**Multi-step delivery** — In the simplest case, the message system delivers a message directly from the sender’s computer to the receiver’s computer. However, actions often need to be performed on the message after it is sent by its original sender but before it is received by its final receiver. For example, the message may have to be validated or transformed because the receiver expects a different message format than the sender. A [*Pipes and Filters*](PipesAndFilters.html) architecture describes how multiple processing steps can be chained together using channels.\n\n**Routing** — In a large enterprise with numerous applications and channels to connect them, a message may have to go through several channels to reach its final destination. The route a message must follow may be so complex that the original sender does not know what channel will get the message to the final receiver. Instead, the original sender sends the message to a [*Message Router*](MessageRouter.html), an application component and filter in the pipes-and-filters architecture, which will determine how to navigate the channel topology and direct the message to the final receiver, or at least to the next router.\n\n**Transformation** — Various applications may not agree on the format for the same conceptual data; the sender formats the message one way, yet the receiver expects it to be formatted another way. To reconcile this, the message must go through an intermediate filter, a [*Message Translator*](MessageTranslator.html), that converts the message from one format to another.\n\n**Endpoints** — An application does not have some built-in capability to interface with a messaging system. Rather, it must contain a layer of code that knows both how the application works and how the messaging system works, bridging the two so that they work together. This bridge code is a set of coordinated [*Message Endpoint*](MessageEndpoint.html)s that enable the application to send and receive messages.\n\n## Book Organization\n\nThe patterns in this chapter provide you with the basic vocabulary and understanding of how to achieve enterprise integration using [*Messaging*](Messaging.html). All subsequent chapters build upon the base patterns in this chapter.\n\n*Relationship of Root Patterns and Chapters*\n\nThis chapter provides a broad overview of [*Messaging*](Messaging.html) by introducing the main messaging topics. For more details about one of these topics, skip ahead to the chapter that contains more patterns which cover that topic in greater depth.\n\n## Integration Pattern Language\n\n[Message Construct.](MessageConstructionIntro.html)\n\n[Message](Message.html)\n\n[Command Message](CommandMessage.html)\n\n[Document Message](DocumentMessage.html)\n\n[Event Message](EventMessage.html)\n\n[Request-Reply](RequestReply.html)\n\n[Return Address](ReturnAddress.html)\n\n[Correlation Identifier](CorrelationIdentifier.html)\n\n[Message Sequence](MessageSequence.html)\n\n[Message Expiration](MessageExpiration.html)\n\n[Format Indicator](FormatIndicator.html)\n\n[Message Routing](MessageRoutingIntro.html)\n\n[Pipes-and-Filters](PipesAndFilters.html)\n\n[Message Router](MessageRouter.html)\n\n[Content-based Router](ContentBasedRouter.html)\n\n[Message Filter](Filter.html)\n\n[Dynamic Router](DynamicRouter.html)\n\n[Recipient List](RecipientList.html)\n\n[Splitter](Sequencer.html)\n\n[Aggregator](Aggregator.html)\n\n[Resequencer](Resequencer.html)\n\n[Composed Msg. Processor](DistributionAggregate.html)\n\n[Scatter-Gather](BroadcastAggregate.html)\n\n[Routing Slip](RoutingTable.html)\n\n[Process Manager](ProcessManager.html)\n\n[Message Broker](MessageBroker.html)\n\n[Message\nTransformation](MessageTransformationIntro.html)\n\n[Message Translator](MessageTranslator.html)\n\n[Envelope Wrapper](EnvelopeWrapper.html)\n\n[Content Enricher](DataEnricher.html)\n\n[Content Filter](ContentFilter.html)\n\n[Claim Check](StoreInLibrary.html)\n\n[Normalizer](Normalizer.html)\n\n[Canonical Data Model](CanonicalDataModel.html)\n\n[Messaging Endpoints](MessagingEndpointsIntro.html)\n\n[Message Endpoint](MessageEndpoint.html)\n\n[Messaging Gateway](MessagingGateway.html)\n\n[Messaging Mapper](MessagingMapper.html)\n\n[Transactional Client](TransactionalClient.html)\n\n[Polling Consumer](PollingConsumer.html)\n\n[Event-driven Consumer](EventDrivenConsumer.html)\n\n[Competing Consumers](CompetingConsumers.html)\n\n[Message Dispatcher](MessageDispatcher.html)\n\n[Selective Consumer](MessageSelector.html)\n\n[Durable Subscriber](DurableSubscription.html)\n\n[Idempotent Receiver](IdempotentReceiver.html)\n\n[Service Activator](MessagingAdapter.html)\n\n[Messaging Channels](MessagingChannelsIntro.html)\n\n[Message Channel](MessageChannel.html)\n\n[Point-to-Point Channel](PointToPointChannel.html)\n\n[Publish-Subscr. Channel](PublishSubscribeChannel.html)\n\n[Datatype Channel](DatatypeChannel.html)\n\n[Invalid Message Channel](InvalidMessageChannel.html)\n\n[Dead Letter Channel](DeadLetterChannel.html)\n\n[Guaranteed Delivery](GuaranteedMessaging.html)\n\n[Channel Adapter](ChannelAdapter.html)\n\n[Messaging Bridge](MessagingBridge.html)\n\n[Message Bus](MessageBus.html)\n\n[Systems Mgmt.](SystemManagementIntro.html)\n\n[Control Bus](ControlBus.html)\n\n[Detour](Detour.html)\n\n[Wire Tap](WireTap.html)\n\n[Message History](MessageHistory.html)\n\n[Message Store](MessageStore.html)\n\n[Smart Proxy](SmartProxy.html)\n\n[Test Message](TestMessage.html)\n\n[Channel Purger](ChannelPurger.html)", "znaku_textu": 7006, "slov": 795, "odkazu": 107, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/patterns/messaging/MessagingComponentsIntro.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 14:50:57", "sha256": "f25add9d112c26eaae12ab98d21128540222461d2c52e32c7e5a45800ca5fa74", "hloubka": 3, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "https://www.architectelevator.com/book", "https://www.cloudstrategybook.com/", "https://www.platformstrategybook.info/"]} {"url": "https://www.enterpriseintegrationpatterns.com/MessagingEndpointsIntro.html", "titulek": "Introduction to Messaging Endpoints - Enterprise Integration Patterns", "h1": "", "popis": "In Introduction to Messaging Systems, we discussed Message Endpoint. This is how an application connects to a messaging system so that it can send and receive messages. As an application programmer, when you program to a messaging API such as JMS or the System.Messaging namespace, you’re developing endpoint code. If you are using a commercial middleware package, most of this coding is already done for you using the libraries and tools provided by the vendor.", "klicova_slova": "Introduction to Messaging Endpoints,integration, messaging, events, patterns, event-driven, coupling, eai, middleware, application integration, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns", "og:title": "Introduction to Messaging Endpoints - Enterprise Integration Patterns", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/MessagingEndpointsIntro.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/eip1_patterns_wide.png"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Send and Receive Patterns"}, {"uroven": 2, "text": "Message Consumer Patterns"}, {"uroven": 2, "text": "Message Endpoint Themes"}, {"uroven": 2, "text": "Integration Pattern Language"}], "markdown": "| | Introduction to Messaging Endpoints[Messaging Patterns](index.html) » [Messaging Endpoints](MessagingEndpointsIntro.html) | [Contents](toc.html)[⇐ Prev](ComposedMessagingTIBCO.html)[Next ⇒](MessagingGateway.html) |\n| --- | --- | --- |\n\nIn [*Introduction to Messaging Systems*](MessagingComponentsIntro.html), we discussed [*Message Endpoint*](MessageEndpoint.html). This is how an application connects to a messaging system so that it can send and receive messages. As an application programmer, when you program to a messaging API such as JMS or the System.Messaging namespace, you’re developing endpoint code. If you are using a commercial middleware package, most of this coding is already done for you using the libraries and tools provided by the vendor.\n\n## Send and Receive Patterns\n\nSome endpoint patterns apply to both senders and receivers. They concern how the application relates to the messaging system in general.\n\n**Encapsulate the messaging code** — In general, an application should not be aware that it is using [*Messaging*](Messaging.html) to integrate with other applications. Most of the application’s code should be written without messaging in mind. At the points where the application integrate with others, there should be a thin layer of code that performs the application’s part of the integration. When the integration is implemented with messaging, that thin layer of code that attches the application to the messaging system is a [*Messaging Gateway*](MessagingGateway.html).\n\n**Data translation** — It’s great when the internal data representation the sender and receiver applications use are the same, and when the message format uses that same representation as well. However, this is often not the case. Either the sender and receiver disagree on data format, or the messages use a different format (usually to support other senders and receivers). In this situation, use a [*Messaging Mapper*](MessagingMapper.html) to convert data between the application’s format and the message’s format.\n\n**Externally-controlled transactions** — Messaging systems use transactions internally; externally, by default, each send or receive method call runs in its own transaction. However, message producers and consumers have the option of using a [*Transactional Client*](TransactionalClient.html) to control these transactions externally, which is useful when you need to batch together multiple messages or to coordinate messaging with other transactional services.\n\n## Message Consumer Patterns\n\nOther endpoint patterns only apply to message receivers. Sending messages is easy. There are issues involved in deciding when a message should be sent, what it should contain, and how to communicate its intent to the receiver—that’s why we have the Message Construction patterns (see [*Introduction to Message Construction*](MessageConstructionIntro.html))—but once the message is built, sending it is easy. Receiving messages, on the other hand—that’s tricky. So many of these patterns are about receiving messages.\n\nAn overriding theme in message consumption is *throttling*, which means the application controlling the rate at which it consumes messages. As discussed in the [*Introduction*](Introduction.html), a potential problem any server faces is that a high volume of client requests could overload the server. With [*Remote Procedure Invocation*](EncapsulatedSynchronousIntegration.html), the server is pretty much at the mercy of the rate that clients make calls. Likewise, with [*Messaging*](Messaging.html), the server cannot control the rate at which clients send requests—but the server can control the rate at which it processes those requests. The application does not have to receive and process the messages as rapidly as they’re delivered by the messaging system; it can process them at a sustainable pace and let the extras queue up to be processed in some sort of first come, first serve basis. On the other hand, if the messages are piling up too much and the server has the resources to process more messages faster, the server can increase its message consumption throughput using concurrent message consumers. So use these patterns to let your application control the rate at which it consumes messages.\n\nMany of these patterns come in pairs that represent alternatives. You can design an endpoint one way or the other. A single application may design some endpoints one way and some endpoints the other way, but a single endpoint can only implement one alternative. Alternatives from each pair can be combined, leading to a great number of choices for how to implement a particular endpoint.\n\n**Synchronous or asynchronous consumer** — One alternative is whether to use a [*Polling Consumer*](PollingConsumer.html) or an [*Event-Driven Consumer*](EventDrivenConsumer.html). [[JMS11, pp.68-69](http://java.sun.com/products/jms/docs.html)], [[Hapner, p.13](http://www.amazon.com/exec/obidos/ASIN/0201784726/enterpriseint-20)], [[Dickman, p.29](http://www.amazon.com/exec/obidos/ASIN/0201325810/enterpriseint-20)] Polling provides the best throttling because if the server is busy, it won’t run the code to receive more messages, so the messages will queue up. Consumers that are event-driven tend to process messages as fast as they arrive, which could overload the server; but each consumer can only process one message at a time, so limiting the number of consumers effectively throttles the consumption rate.\n\n**Message assignment vs. message grab** — Another alternative concerns how a handful of consumers process a handful of messages. If each consumer gets a message, they can process the messages concurrently. The simplest approach is [*Competing Consumers*](CompetingConsumers.html), where one [*Point-to-Point Channel*](PointToPointChannel.html) has multiple consumers. Each one could potentially grab any message; the messaging system’s implementation decides which consumer gets a message. If you want to control this message-to-consumer matching process, use a [*Message Dispatcher*](MessageDispatcher.html). This is a single consumer that receives a message but delegates it to a performer for processing. An application can throttle message load by limiting the number of consumers/performers. Also, the dispatcher in a [*Message Dispatcher*](MessageDispatcher.html) can implement explicit throttling behavior.\n\n**Accept all messages or filter** — By default, any message delivered on a [*Message Channel*](MessageChannel.html) becomes available to any [*Message Endpoint*](MessageEndpoint.html) listening on that channel for messages to consume. However, some consumers may not want to consume just any message on that channel, but only wish to consume messages of a certain type or description. Such a discriminating consumer can use a [*Selective Consumer*](MessageSelector.html) to describe what sort of message it’s willing to receive. Then the messaging system will only make messages matching that description available to that receiver.\n\n**Subscribe while disconnected** — An issue that comes up with [*Publish-Subscribe Channel*](PublishSubscribeChannel.html)s: What if a subscriber was interested in the data being published on a particular channel and will be again, but is currently disconnected from the network or shut down for maintenance? Will a disconnected application miss messages published while it is disconnected, even though it has subscribed? By default, yes, a subscription is only valid while the subscriber is connected. To keep the application from missing messages published inbetween connections, make it a [*Durable Subscriber*](DurableSubscription.html).\n\n**Idempotency** — Sometimes the same message gets delivered more than once, either because the messaging system is not certain the message has been successfully delivered yet, or because the [*Message Channel*](MessageChannel.html)’s quality-of-service has been lowered to improve performance. Message receivers, on the other hand, tend to assume that each message will be delivered exactly once, and tend to cause problems when they repeat processing because of repeat messages. A receiver designed as an [*Idempotent Receiver*](IdempotentReceiver.html) handles duplicate messages and prevents them from causing problems in the receiver application.\n\n**Synchronous or asynchronous service** — Another tough choice is whether an application should expose its services to be invoked synchronously (via [*Remote Procedure Invocation*](EncapsulatedSynchronousIntegration.html)) or asynchronously (via [*Messaging*](Messaging.html)). Different clients may prefer different approaches; different circumstances may require different approaches. Since it’s often hard to choose just one approach or the other, let’s have both. A [*Service Activator*](MessagingAdapter.html) connects a [*Message Channel*](MessageChannel.html) to a synchronous service in an application so that when a message is received, the service is invoked. Synchronous clients can simply invoke the service directly; asynchronous clients can invoke the service by sending a message.\n\n## Message Endpoint Themes\n\nAnother significant theme in this chapter is difficulty using [*Transactional Client*](TransactionalClient.html) with other patterns. [*Event-Driven Consumer*](EventDrivenConsumer.html) usually cannot externally control transactions properly, [*Message Dispatcher*](MessageDispatcher.html) must be carefully designed to do so, and [*Competing Consumers*](CompetingConsumers.html) that externally manage transactions can run into significant problems. The safest bet for using [*Transactional Client*](TransactionalClient.html) is with a single [*Polling Consumer*](PollingConsumer.html), but that may not be a very satisfactory solution.\n\nSpecial mention should be made of JMS-style message-driven beans, one type of Enterprise JavaBeans (EJB). [[EJB20, pp.311-326](http://java.sun.com/products/ejb/docs.html)], [[Hapner, pp.69-74](http://www.amazon.com/exec/obidos/ASIN/0201784726/enterpriseint-20)] An MDB is a message consumer that is an [*Event-Driven Consumer*](EventDrivenConsumer.html), a [*Transactional Client*](TransactionalClient.html) that supports J2EE distributed (e.g., XAResource) transactions, and can be dynamically pooled as [*Competing Consumers*](CompetingConsumers.html), even for a [*Publish-Subscribe Channel*](PublishSubscribeChannel.html). This is a difficult and tedious combination to implement in one’s own application code, but this functionality is provided as a ready-built feature of compatible EJB containers (such as BEA’s WebLogic and IBM’s WebSphere). (How is the MDB framework implemented? Essentially, the container implements a [*Message Dispatcher*](MessageDispatcher.html) with a dynamicly-sized pool of reusable performers, where each performer consumes the message itself using its own session and transaction.)\n\nFinally, keep in mind that a single [*Message Endpoint*](MessageEndpoint.html) may well combine several different patterns from this chapter. A group of [*Competing Consumers*](CompetingConsumers.html) may be implemented as [*Polling Consumer*](PollingConsumer.html)s that are also [*Selective Consumer*](MessageSelector.html)s and act as a [*Service Activator*](MessagingAdapter.html) on a service in the application. A [*Message Dispatcher*](MessageDispatcher.html) may be an [*Event-Driven Consumer*](EventDrivenConsumer.html) and a [*Durable Subscriber*](DurableSubscription.html) that uses a [*Messaging Mapper*](MessagingMapper.html). Whatever other patterns an endpoint implements, it should also be a [*Messaging Gateway*](MessagingGateway.html). So don’t think of what one pattern to use, think of the combinations. That’s the beauty of solving the problems with patterns.\n\nSo there are a lot of options for making an application into a [*Message Endpoint*](MessageEndpoint.html). This chapter will explain what those options are and how to make the best use of them.\n\n## Integration Pattern Language\n\n[Message Construct.](MessageConstructionIntro.html)\n\n[Message](Message.html)\n\n[Command Message](CommandMessage.html)\n\n[Document Message](DocumentMessage.html)\n\n[Event Message](EventMessage.html)\n\n[Request-Reply](RequestReply.html)\n\n[Return Address](ReturnAddress.html)\n\n[Correlation Identifier](CorrelationIdentifier.html)\n\n[Message Sequence](MessageSequence.html)\n\n[Message Expiration](MessageExpiration.html)\n\n[Format Indicator](FormatIndicator.html)\n\n[Message Routing](MessageRoutingIntro.html)\n\n[Pipes-and-Filters](PipesAndFilters.html)\n\n[Message Router](MessageRouter.html)\n\n[Content-based Router](ContentBasedRouter.html)\n\n[Message Filter](Filter.html)\n\n[Dynamic Router](DynamicRouter.html)\n\n[Recipient List](RecipientList.html)\n\n[Splitter](Sequencer.html)\n\n[Aggregator](Aggregator.html)\n\n[Resequencer](Resequencer.html)\n\n[Composed Msg. Processor](DistributionAggregate.html)\n\n[Scatter-Gather](BroadcastAggregate.html)\n\n[Routing Slip](RoutingTable.html)\n\n[Process Manager](ProcessManager.html)\n\n[Message Broker](MessageBroker.html)\n\n[Message\nTransformation](MessageTransformationIntro.html)\n\n[Message Translator](MessageTranslator.html)\n\n[Envelope Wrapper](EnvelopeWrapper.html)\n\n[Content Enricher](DataEnricher.html)\n\n[Content Filter](ContentFilter.html)\n\n[Claim Check](StoreInLibrary.html)\n\n[Normalizer](Normalizer.html)\n\n[Canonical Data Model](CanonicalDataModel.html)\n\n[Messaging Endpoints](MessagingEndpointsIntro.html)\n\n[Message Endpoint](MessageEndpoint.html)\n\n[Messaging Gateway](MessagingGateway.html)\n\n[Messaging Mapper](MessagingMapper.html)\n\n[Transactional Client](TransactionalClient.html)\n\n[Polling Consumer](PollingConsumer.html)\n\n[Event-driven Consumer](EventDrivenConsumer.html)\n\n[Competing Consumers](CompetingConsumers.html)\n\n[Message Dispatcher](MessageDispatcher.html)\n\n[Selective Consumer](MessageSelector.html)\n\n[Durable Subscriber](DurableSubscription.html)\n\n[Idempotent Receiver](IdempotentReceiver.html)\n\n[Service Activator](MessagingAdapter.html)\n\n[Messaging Channels](MessagingChannelsIntro.html)\n\n[Message Channel](MessageChannel.html)\n\n[Point-to-Point Channel](PointToPointChannel.html)\n\n[Publish-Subscr. Channel](PublishSubscribeChannel.html)\n\n[Datatype Channel](DatatypeChannel.html)\n\n[Invalid Message Channel](InvalidMessageChannel.html)\n\n[Dead Letter Channel](DeadLetterChannel.html)\n\n[Guaranteed Delivery](GuaranteedMessaging.html)\n\n[Channel Adapter](ChannelAdapter.html)\n\n[Messaging Bridge](MessagingBridge.html)\n\n[Message Bus](MessageBus.html)\n\n[Systems Mgmt.](SystemManagementIntro.html)\n\n[Control Bus](ControlBus.html)\n\n[Detour](Detour.html)\n\n[Wire Tap](WireTap.html)\n\n[Message History](MessageHistory.html)\n\n[Message Store](MessageStore.html)\n\n[Smart Proxy](SmartProxy.html)\n\n[Test Message](TestMessage.html)\n\n[Channel Purger](ChannelPurger.html)", "znaku_textu": 14643, "slov": 1808, "odkazu": 111, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/MessagingEndpointsIntro.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 06:03:59", "sha256": "9b9ca9fe0ce05e757b6eb7ac08708b86ab2895184cf3dced0050f0275f0a84fd", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://java.sun.com/products/jms/docs.html", "http://www.amazon.com/exec/obidos/ASIN/0201784726/enterpriseint-20", "http://www.amazon.com/exec/obidos/ASIN/0201325810/enterpriseint-20", "http://java.sun.com/products/ejb/docs.html", "https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "https://www.architectelevator.com/book", "https://www.cloudstrategybook.com/", "https://www.platformstrategybook.info/"]} {"url": "https://www.enterpriseintegrationpatterns.com/MessagingGateway.html", "titulek": "Messaging Gateway - Enterprise Integration Patterns", "h1": "", "popis": "How do you encapsulate access to the messaging system from the rest of the application?", "klicova_slova": "Messaging Gateway,integration, messaging, events, patterns, event-driven, coupling, eai, middleware, application integration, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns", "og:title": "Messaging Gateway - Enterprise Integration Patterns", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/MessagingGateway.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/MessagingGatewaySolution.gif"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Integration Pattern Language"}], "markdown": "Messaging Patterns\n\n[Messaging Patterns](index.html)\n\n- [Integration Styles](IntegrationStylesIntro.html)\n- [Messaging Systems](MessagingComponentsIntro.html)\n- [Messaging Channels](MessagingChannelsIntro.html)\n- [Message Construction](MessageConstructionIntro.html)\n- [Interlude: Simple Messaging](SimpleMessagingIntro.html)\n- [Message Routing](MessageRoutingIntro.html)\n- [Message Transformation](MessageTransformationIntro.html)\n- [Interlude: Composed Messaging](ComposedMessagingExample.html)\n- [Messaging Endpoints](MessagingEndpointsIntro.html)\n- [System Management](SystemManagementIntro.html)\n- Interlude: Systems Management Example\n- Integration Patterns in Practice\n- Concluding Remarks\n- Appendices\n\n| | Messaging Gateway[Messaging Patterns](index.html) » [Messaging Endpoints](MessagingEndpointsIntro.html) | [Contents](toc.html)[⇐ Prev](MessagingEndpointsIntro.html)[Next ⇒](MessagingMapper.html) |\n| --- | --- | --- |\n\nAn application accesses another system via [*Messaging*](Messaging.html).\n\nHow do you encapsulate access to the messaging system from the rest of the application?\n\nUse a *Messaging Gateway*, a class than wraps messaging-specific method calls and exposes domain-specific methods to the application.\n\nThe *Messaging Gateway* encapsulates messaging-specific code (e.g., the code required to send or receive a message) and separates it from the rest of the application code. This way, only the *Messaging Gateway* code knows about the messaging system; the rest of the application code does not. The *Messaging Gateway* exposes a business function to the rest of the application so that instead of requiring the application to set properties like Message.MessageReadPropertyFilter.AppSpecific, a *Messaging Gateway* exposes methods such as GetCreditScore that accept strongly typed parameters just like any other method. A *Messaging Gateway* is a messaging-specific version of the more general *Gateway* pattern [[EAA](http://www.amazon.com/exec/obidos/ASIN/0321127420/enterpriseint-20)].\n\n...\nRead the entire pattern in the book [Enterprise Integration Patterns](/books1.html)\n\n**Related patterns:**\n\n[*Scatter-Gather*](BroadcastAggregate.html), [*Asynchronous Implementation with MSMQ*](ComposedMessagingMSMQ.html), [*Correlation Identifier*](CorrelationIdentifier.html), [*Messaging*](Messaging.html), [*Request-Reply*](RequestReply.html)\n\n---\n\n## Integration Pattern Language\n\n[Message Construct.](MessageConstructionIntro.html)\n\n[Message](Message.html)\n\n[Command Message](CommandMessage.html)\n\n[Document Message](DocumentMessage.html)\n\n[Event Message](EventMessage.html)\n\n[Request-Reply](RequestReply.html)\n\n[Return Address](ReturnAddress.html)\n\n[Correlation Identifier](CorrelationIdentifier.html)\n\n[Message Sequence](MessageSequence.html)\n\n[Message Expiration](MessageExpiration.html)\n\n[Format Indicator](FormatIndicator.html)\n\n[Message Routing](MessageRoutingIntro.html)\n\n[Pipes-and-Filters](PipesAndFilters.html)\n\n[Message Router](MessageRouter.html)\n\n[Content-based Router](ContentBasedRouter.html)\n\n[Message Filter](Filter.html)\n\n[Dynamic Router](DynamicRouter.html)\n\n[Recipient List](RecipientList.html)\n\n[Splitter](Sequencer.html)\n\n[Aggregator](Aggregator.html)\n\n[Resequencer](Resequencer.html)\n\n[Composed Msg. Processor](DistributionAggregate.html)\n\n[Scatter-Gather](BroadcastAggregate.html)\n\n[Routing Slip](RoutingTable.html)\n\n[Process Manager](ProcessManager.html)\n\n[Message Broker](MessageBroker.html)\n\n[Message\nTransformation](MessageTransformationIntro.html)\n\n[Message Translator](MessageTranslator.html)\n\n[Envelope Wrapper](EnvelopeWrapper.html)\n\n[Content Enricher](DataEnricher.html)\n\n[Content Filter](ContentFilter.html)\n\n[Claim Check](StoreInLibrary.html)\n\n[Normalizer](Normalizer.html)\n\n[Canonical Data Model](CanonicalDataModel.html)\n\n[Messaging Endpoints](MessagingEndpointsIntro.html)\n\n[Message Endpoint](MessageEndpoint.html)\n\n[Messaging Gateway](MessagingGateway.html)\n\n[Messaging Mapper](MessagingMapper.html)\n\n[Transactional Client](TransactionalClient.html)\n\n[Polling Consumer](PollingConsumer.html)\n\n[Event-driven Consumer](EventDrivenConsumer.html)\n\n[Competing Consumers](CompetingConsumers.html)\n\n[Message Dispatcher](MessageDispatcher.html)\n\n[Selective Consumer](MessageSelector.html)\n\n[Durable Subscriber](DurableSubscription.html)\n\n[Idempotent Receiver](IdempotentReceiver.html)\n\n[Service Activator](MessagingAdapter.html)\n\n[Messaging Channels](MessagingChannelsIntro.html)\n\n[Message Channel](MessageChannel.html)\n\n[Point-to-Point Channel](PointToPointChannel.html)\n\n[Publish-Subscr. Channel](PublishSubscribeChannel.html)\n\n[Datatype Channel](DatatypeChannel.html)\n\n[Invalid Message Channel](InvalidMessageChannel.html)\n\n[Dead Letter Channel](DeadLetterChannel.html)\n\n[Guaranteed Delivery](GuaranteedMessaging.html)\n\n[Channel Adapter](ChannelAdapter.html)\n\n[Messaging Bridge](MessagingBridge.html)\n\n[Message Bus](MessageBus.html)\n\n[Systems Mgmt.](SystemManagementIntro.html)\n\n[Control Bus](ControlBus.html)\n\n[Detour](Detour.html)\n\n[Wire Tap](WireTap.html)\n\n[Message History](MessageHistory.html)\n\n[Message Store](MessageStore.html)\n\n[Smart Proxy](SmartProxy.html)\n\n[Test Message](TestMessage.html)\n\n[Channel Purger](ChannelPurger.html)\n\n- » [Read the latest in My Blog](/ramblings)\n- » [Get more insights from My Articles](/articles.html)\n- » [See me live in my Upcoming Talks](/talks)\n\nYou can reuse the following elements under the [Creative Commons Attribution](http://creativecommons.org/licenses/by/4.0/) license: pattern icon, pattern name, problem and solution statements (in bold), and the sketch. Other portions are protected by copyright.\n\n[Enterprise Integration Patterns](https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20)\nThe de-facto language for designing asynchronous, distributed systems. Over 100,000 copies sold.\n\n[The Software Architect Elevator](https://www.architectelevator.com/book)\n\n Rethink the role of architects as a connecting element across organizational layers. Acquire the technical, communication, and organizational skills to succeed in this new role.\n\n[Cloud Strategy](https://www.cloudstrategybook.com)\n\n Make your cloud migration a success by translating high-level goals into conscious decisions with well-understood trade-offs.\n\n[Platform Strategy](https://www.platformstrategybook.info)\n\n Platforms can boost innovation through harmonization, but they aren't easy to build. Learn from over a decade of designing and rolling out IT platforms.", "znaku_textu": 6316, "slov": 518, "odkazu": 109, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/MessagingGateway.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 06:04:01", "sha256": "80529c5186ba05ef9282ebe046bd45ab777f928b10c669ac07283c8f970f2066", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://www.amazon.com/exec/obidos/ASIN/0321127420/enterpriseint-20", "http://creativecommons.org/licenses/by/4.0/", "https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "https://www.architectelevator.com/book", "https://www.cloudstrategybook.com/", "https://www.platformstrategybook.info/"]} {"url": "https://www.enterpriseintegrationpatterns.com/MessagingMapper.html", "titulek": "Messaging Mapper - Enterprise Integration Patterns", "h1": "", "popis": "How do you move data between domain objects and the messaging infrastructure while keeping the two independent of each other?", "klicova_slova": "Messaging Mapper,integration, messaging, events, patterns, event-driven, coupling, eai, middleware, application integration, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns", "og:title": "Messaging Mapper - Enterprise Integration Patterns", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/MessagingMapper.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/MessagingMapperClassDiagram.gif"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Integration Pattern Language"}], "markdown": "| | Messaging Mapper[Messaging Patterns](index.html) » [Messaging Endpoints](MessagingEndpointsIntro.html) | [Contents](toc.html)[⇐ Prev](MessagingGateway.html)[Next ⇒](TransactionalClient.html) |\n| --- | --- | --- |\n\nWhen integrating applications using messaging, the data inside a message is often derived from domain objects inside the integrated applications. If we use a [*Document Message*](DocumentMessage.html), the message itself may directly represent one or domain objects. If we use a [*Command Message*](CommandMessage.html), some of the data fields associated with the command are likely to be extracted from domain objects as well. There are some distinct differences between messages and objects. For example, most objects rely on associations in the form of object references and inheritance relationships. Many messaging infrastructures do not support these concepts because they have to be able to communicate with a range of applications, some of which may not be object-oriented at all.\n\nHow do you move data between domain objects and the messaging infrastructure while keeping the two independent of each other?\n\nCreate a separate *Messaging Mapper* that contains the mapping logic between the messaging infrastructure and the domain objects. Neither the objects nor the infrastructure have knowledge of the *Messaging Mapper*'s existence.\n\nThe *Messaging Mapper* accesses one or more domain objects and converts them into a message as required by the messaging channel. It also performs the opposite function, creating or updating domain objects based on incoming messages. Since the *Messaging Mapper* is implemented as a separate class that references the domain object(s) and the messaging layer, neither layer is aware of the other. The layers don't even know about the *Messaging Mapper*.\n\nThe *Messaging Mapper* is a specialization of the *Mapper* pattern defined in [[EAA](http://www.amazon.com/exec/obidos/ASIN/0321127420/enterpriseint-20)]. It shares some analogies with the *Data Mapper* defined in the same book. Anyone who has worked on O-R (Object-Relational) Mapping strategies will understand the complexities of mapping data between layers that use different paradigms. The issues inherent in the *Messaging Mapper* are similarly complex and a detailed discussion of all possible aspects is beyond the scope of this book. Many of the Data Source Architectural Patterns in [[EAA](http://www.amazon.com/exec/obidos/ASIN/0321127420/enterpriseint-20)] make a good read for anyone concerned with creating a *Messaging Mapper* layer.\n\n...\nRead the entire pattern in the book [Enterprise Integration Patterns](/books1.html)\n\n**Related patterns:**\n\n[*Aggregator*](Aggregator.html), [*Canonical Data Model*](CanonicalDataModel.html), [*Command Message*](CommandMessage.html), [*Document Message*](DocumentMessage.html), [*Message Router*](MessageRouter.html), [*Message Translator*](MessageTranslator.html)\n\n---\n\n## Integration Pattern Language\n\n[Message Construct.](MessageConstructionIntro.html)\n\n[Message](Message.html)\n\n[Command Message](CommandMessage.html)\n\n[Document Message](DocumentMessage.html)\n\n[Event Message](EventMessage.html)\n\n[Request-Reply](RequestReply.html)\n\n[Return Address](ReturnAddress.html)\n\n[Correlation Identifier](CorrelationIdentifier.html)\n\n[Message Sequence](MessageSequence.html)\n\n[Message Expiration](MessageExpiration.html)\n\n[Format Indicator](FormatIndicator.html)\n\n[Message Routing](MessageRoutingIntro.html)\n\n[Pipes-and-Filters](PipesAndFilters.html)\n\n[Message Router](MessageRouter.html)\n\n[Content-based Router](ContentBasedRouter.html)\n\n[Message Filter](Filter.html)\n\n[Dynamic Router](DynamicRouter.html)\n\n[Recipient List](RecipientList.html)\n\n[Splitter](Sequencer.html)\n\n[Aggregator](Aggregator.html)\n\n[Resequencer](Resequencer.html)\n\n[Composed Msg. Processor](DistributionAggregate.html)\n\n[Scatter-Gather](BroadcastAggregate.html)\n\n[Routing Slip](RoutingTable.html)\n\n[Process Manager](ProcessManager.html)\n\n[Message Broker](MessageBroker.html)\n\n[Message\nTransformation](MessageTransformationIntro.html)\n\n[Message Translator](MessageTranslator.html)\n\n[Envelope Wrapper](EnvelopeWrapper.html)\n\n[Content Enricher](DataEnricher.html)\n\n[Content Filter](ContentFilter.html)\n\n[Claim Check](StoreInLibrary.html)\n\n[Normalizer](Normalizer.html)\n\n[Canonical Data Model](CanonicalDataModel.html)\n\n[Messaging Endpoints](MessagingEndpointsIntro.html)\n\n[Message Endpoint](MessageEndpoint.html)\n\n[Messaging Gateway](MessagingGateway.html)\n\n[Messaging Mapper](MessagingMapper.html)\n\n[Transactional Client](TransactionalClient.html)\n\n[Polling Consumer](PollingConsumer.html)\n\n[Event-driven Consumer](EventDrivenConsumer.html)\n\n[Competing Consumers](CompetingConsumers.html)\n\n[Message Dispatcher](MessageDispatcher.html)\n\n[Selective Consumer](MessageSelector.html)\n\n[Durable Subscriber](DurableSubscription.html)\n\n[Idempotent Receiver](IdempotentReceiver.html)\n\n[Service Activator](MessagingAdapter.html)\n\n[Messaging Channels](MessagingChannelsIntro.html)\n\n[Message Channel](MessageChannel.html)\n\n[Point-to-Point Channel](PointToPointChannel.html)\n\n[Publish-Subscr. Channel](PublishSubscribeChannel.html)\n\n[Datatype Channel](DatatypeChannel.html)\n\n[Invalid Message Channel](InvalidMessageChannel.html)\n\n[Dead Letter Channel](DeadLetterChannel.html)\n\n[Guaranteed Delivery](GuaranteedMessaging.html)\n\n[Channel Adapter](ChannelAdapter.html)\n\n[Messaging Bridge](MessagingBridge.html)\n\n[Message Bus](MessageBus.html)\n\n[Systems Mgmt.](SystemManagementIntro.html)\n\n[Control Bus](ControlBus.html)\n\n[Detour](Detour.html)\n\n[Wire Tap](WireTap.html)\n\n[Message History](MessageHistory.html)\n\n[Message Store](MessageStore.html)\n\n[Smart Proxy](SmartProxy.html)\n\n[Test Message](TestMessage.html)\n\n[Channel Purger](ChannelPurger.html)", "znaku_textu": 5643, "slov": 531, "odkazu": 109, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/MessagingMapper.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 06:04:02", "sha256": "fdd610e2031601d9960698815ed18685d6d54450db5d4a858038258fe3e71a21", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://www.amazon.com/exec/obidos/ASIN/0321127420/enterpriseint-20", "http://creativecommons.org/licenses/by/4.0/", "https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "https://www.architectelevator.com/book", "https://www.cloudstrategybook.com/", "https://www.platformstrategybook.info/"]} {"url": "https://www.enterpriseintegrationpatterns.com/Normalizer.html", "titulek": "Normalizer - Enterprise Integration Patterns", "h1": "", "popis": "How do you process messages that are semantically equivalent, but arrive in a different format?", "klicova_slova": "Normalizer,integration, messaging, events, patterns, event-driven, coupling, eai, middleware, application integration, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns", "og:title": "Normalizer - Enterprise Integration Patterns", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/Normalizer.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/NormalizerDetail.gif"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Integration Pattern Language"}], "markdown": "| | Normalizer[Messaging Patterns](index.html) » [Message Transformation](MessageTransformationIntro.html) | [Contents](toc.html)[⇐ Prev](StoreInLibrary.html)[Next ⇒](CanonicalDataModel.html) |\n| --- | --- | --- |\n\nIn a business-to-business (B2B) integration scenario it is quite common for an enterprise to receive messages from different business partners. These message may have the same meaning, but follow different formats, depending on the partners' internal systems and preferences. For example, we built a solution for a pay-per-view provider that has to accept and process viewership information from over 1700 (!) affiliates, most of which did not conform to a standard format.\n\nHow do you process messages that are semantically equivalent, but arrive in a different format?\n\nUse a *Normalizer* to route each message type through a custom [*Message Translator*](MessageTranslator.html) so that the resulting messages match a common format.\n\nThe *Normalizer* uses a [*Message Router*](MessageRouter.html) to route the incoming message to the correct [*Message Translator*](MessageTranslator.html). This requires the [*Message Router*](MessageRouter.html) to detect the type of the incoming message. Many messaging systems equip each message with a type specifier field in the Message Header to make this type of task simple. However, in many B2B scenarios messages do not arrive as messages compliant with the enterprise's internal messaging system, but in diverse formats such as comma separated files or XML document without associated schema. While it is certainly best practice to equip any incoming data format with a type specifier we know all to well that the world is far from perfect. As a result, we need to think of more general ways to identify the format of the incoming message. One common way for schema-less XML documents is to use the name of the root element to assume the correct type. If multiple data formats use the same root element, you can use XPATH expressions to determine the existence of specific sub-nodes. Comma-separated files can require a little more creativity. Sometimes you can determine the type based on the number of fields and the type of the data (e.g. numeric vs. string). If the data arrives as files, the easiest way may be to use the file name or the file folder structure as a surrogate [*Datatype Channel*](DatatypeChannel.html). Each business partner can name the file with a unique naming convention. The [*Message Router*](MessageRouter.html) can then use the file name to route the message to the appropriate [*Message Translator*](MessageTranslator.html).\n\n...\nRead the entire pattern in the book [Enterprise Integration Patterns](/books1.html)\n\n**Related patterns:**\n\n[*Datatype Channel*](DatatypeChannel.html), [*Message Router*](MessageRouter.html), [*Message Translator*](MessageTranslator.html)\n\n---\n\n## Integration Pattern Language\n\n[Message Construct.](MessageConstructionIntro.html)\n\n[Message](Message.html)\n\n[Command Message](CommandMessage.html)\n\n[Document Message](DocumentMessage.html)\n\n[Event Message](EventMessage.html)\n\n[Request-Reply](RequestReply.html)\n\n[Return Address](ReturnAddress.html)\n\n[Correlation Identifier](CorrelationIdentifier.html)\n\n[Message Sequence](MessageSequence.html)\n\n[Message Expiration](MessageExpiration.html)\n\n[Format Indicator](FormatIndicator.html)\n\n[Message Routing](MessageRoutingIntro.html)\n\n[Pipes-and-Filters](PipesAndFilters.html)\n\n[Message Router](MessageRouter.html)\n\n[Content-based Router](ContentBasedRouter.html)\n\n[Message Filter](Filter.html)\n\n[Dynamic Router](DynamicRouter.html)\n\n[Recipient List](RecipientList.html)\n\n[Splitter](Sequencer.html)\n\n[Aggregator](Aggregator.html)\n\n[Resequencer](Resequencer.html)\n\n[Composed Msg. Processor](DistributionAggregate.html)\n\n[Scatter-Gather](BroadcastAggregate.html)\n\n[Routing Slip](RoutingTable.html)\n\n[Process Manager](ProcessManager.html)\n\n[Message Broker](MessageBroker.html)\n\n[Message\nTransformation](MessageTransformationIntro.html)\n\n[Message Translator](MessageTranslator.html)\n\n[Envelope Wrapper](EnvelopeWrapper.html)\n\n[Content Enricher](DataEnricher.html)\n\n[Content Filter](ContentFilter.html)\n\n[Claim Check](StoreInLibrary.html)\n\n[Normalizer](Normalizer.html)\n\n[Canonical Data Model](CanonicalDataModel.html)\n\n[Messaging Endpoints](MessagingEndpointsIntro.html)\n\n[Message Endpoint](MessageEndpoint.html)\n\n[Messaging Gateway](MessagingGateway.html)\n\n[Messaging Mapper](MessagingMapper.html)\n\n[Transactional Client](TransactionalClient.html)\n\n[Polling Consumer](PollingConsumer.html)\n\n[Event-driven Consumer](EventDrivenConsumer.html)\n\n[Competing Consumers](CompetingConsumers.html)\n\n[Message Dispatcher](MessageDispatcher.html)\n\n[Selective Consumer](MessageSelector.html)\n\n[Durable Subscriber](DurableSubscription.html)\n\n[Idempotent Receiver](IdempotentReceiver.html)\n\n[Service Activator](MessagingAdapter.html)\n\n[Messaging Channels](MessagingChannelsIntro.html)\n\n[Message Channel](MessageChannel.html)\n\n[Point-to-Point Channel](PointToPointChannel.html)\n\n[Publish-Subscr. Channel](PublishSubscribeChannel.html)\n\n[Datatype Channel](DatatypeChannel.html)\n\n[Invalid Message Channel](InvalidMessageChannel.html)\n\n[Dead Letter Channel](DeadLetterChannel.html)\n\n[Guaranteed Delivery](GuaranteedMessaging.html)\n\n[Channel Adapter](ChannelAdapter.html)\n\n[Messaging Bridge](MessagingBridge.html)\n\n[Message Bus](MessageBus.html)\n\n[Systems Mgmt.](SystemManagementIntro.html)\n\n[Control Bus](ControlBus.html)\n\n[Detour](Detour.html)\n\n[Wire Tap](WireTap.html)\n\n[Message History](MessageHistory.html)\n\n[Message Store](MessageStore.html)\n\n[Smart Proxy](SmartProxy.html)\n\n[Test Message](TestMessage.html)\n\n[Channel Purger](ChannelPurger.html)", "znaku_textu": 5583, "slov": 563, "odkazu": 108, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/Normalizer.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 06:03:57", "sha256": "b7c0a62e8ab41ab534fda9fa15d4b4e0f4c4118a31b58e9d87a0ad89a2eb7b20", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://creativecommons.org/licenses/by/4.0/", "https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "https://www.architectelevator.com/book", "https://www.cloudstrategybook.com/", "https://www.platformstrategybook.info/"]} {"url": "https://www.enterpriseintegrationpatterns.com/ObserverJmsExample.html", "titulek": "JMS Publish/Subscribe Example - Enterprise Integration Patterns", "h1": "", "popis": "This is a simple example that shows the power of publish/subscribe messaging, and explores the alternative designs available. It shows how multiple subscriber applications can all be informed of a single event by publishing the event just once, and considers alternative stratagies for how to communicate details of that event to the subscribers.", "klicova_slova": "JMS Publish/Subscribe Example,integration, messaging, events, patterns, event-driven, coupling, eai, middleware, application integration, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns", "og:title": "JMS Publish/Subscribe Example - Enterprise Integration Patterns", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/ObserverJmsExample.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/eip1_patterns_wide.png"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "The Observer Pattern"}, {"uroven": 2, "text": "Distributed Observer"}, {"uroven": 2, "text": "Publish-Subscribe"}, {"uroven": 2, "text": "Comparisons"}, {"uroven": 2, "text": "Push and Pull Models"}, {"uroven": 2, "text": "Channel Design"}, {"uroven": 2, "text": "Conclusions"}, {"uroven": 2, "text": "Integration Pattern Language"}], "markdown": "| | JMS Publish/Subscribe Example[Messaging Patterns](index.html) » [Interlude: Simple Messaging](SimpleMessagingIntro.html) | [Contents](toc.html)[⇐ Prev](RequestReplyNetExample.html)[Next ⇒](MessageRoutingIntro.html) |\n| --- | --- | --- |\n\nThis is a simple example that shows the power of publish/subscribe messaging, and explores the alternative designs available. It shows how multiple subscriber applications can all be informed of a single event by publishing the event just once, and considers alternative stratagies for how to communicate details of that event to the subscribers.\n\n*Publish/Subscribe using a JMS Topic*\n\nTo understand how helpful a simple [*Publish-Subscribe Channel*](PublishSubscribeChannel.html) really is, we first need to consider what it is like to implement the Observer pattern in a distributed fashion, amongst multiple applications. Before we get to that, let's review the basics of Observer.\n\n## The Observer Pattern\n\nThe Observer pattern [[GoF](http://www.amazon.com/exec/obidos/ASIN/0201633612/enterpriseint-20)] documents a design through which an object can notify its dependents of a change, while keeping that object decoupled from its dependents so that the object works just fine no matter how many dependents it has, even none at all. Its participants are a Subject—the object announcing changes in its state—and Observers—objects interested in receiving notification of changes in the Subject. When a subject's state changes, it sends itself Notify(), whose implementation knows the list of observers and sends Update() to each of them. Some observers may not be interested in this state change, but those who are can find out what the new state is by sending GetState() to the subject. The subject must also implement Attach(Observer) and Detach(Observer) methods that the observers use to register interest.\n\nObserver provides two ways to get the new state from the subject to the observer: the push model and the pull model. With the *push model*, the Update call to each observer contains the new state as a parameter. Thus interested observers can avoid having to call GetState(), but effort is wasted passing data to uninterested observers. The opposite approach is the *pull model*, where the subject sends basic notification and each observer requests the new state from the subject. Thus each observer can request the exact details it wants, even none at all, but the subject often has to serve multiple requests for the same data. The push model requires a single, one-way communication—the Subject pushes the data to an Observer as part of the update. The pull model requires three one-way communications—the Subject notifies an Observer, the Observer requests the current state from the Subject, and the Subject sends the current state to the Observer. As we'll see, the number of one-way communications affects both the design-time complexity and the runtime performance of the notification.\n\nThe easiest way to implement a Subject's Notify() method is with a single thread, but that can have undesirable performance implications. A single thread will update each observer one-at-a-time, in sequence; so those at the end of a long list of observers may need to wait a long time for updates. And a subject spending a long time updating all of its observers isn't accomplishing anything else. Even worse, an observer may well use its update thread to recact to the update, querying the subject for state and processing the new data; such observer work in the update thread makes the update process take even longer.\n\nThus the more sophisticated way to implement a Subject's Notify() method is to run each Update() call in its own thread. Then all observers can be updated concurrently, and whatever work each may do in its update thread does not delay the other observers or the subject. The downside is that implementing multithreading and handling thread-management issues is more complex.\n\n## Distributed Observer\n\nThe Observer pattern tends to assume that the Subject and its Observers all run in the same application. The pattern's design supports distribution, where the Observers run in a seperate memory space from the Subject and perhaps from each other, but the distribution takes work. The Update() and GetState() methods, as well as the Attach and Detach methods, must be made remotely accessible (see [*Remote Procedure Invocation*](EncapsulatedSynchronousIntegration.html)). Because the Subject must be able to call each Observer and vise versa, each object must be running in some type of ORB environment that allows the objects it contains to be invoked remotely. And because the update details and state data will be passed between memory spaces, the applications must be able to serialize (e.g., marshall) the objects they are passing.\n\nThus implementing Observer in a distributed environment can get rather complex. Not only is a multi-threaded Observer somewhat difficult to implement, but then making methods remotely accessible—and invoking them remotely—adds more difficulty. The can be a lot of work just to notify some dependents of state changes.\n\nAnother problem is that a [*Remote Procedure Invocation*](EncapsulatedSynchronousIntegration.html) only works when the source of the call, the target, and the network connecting them are all working properly. If a Subject announces a change and a remote Observer is not ready to process the notification or is disconnected from the network, the Observer looses the notification. While the Observer may work fine without the notification in some cases, in other cases the lost notification may cause the Observer to become out of sync with the Subject—the whole problem the Observer pattern is designed to prevent.\n\nDistribution also favors the push model over the pull model. As discussed earlier, push requires a single one-way communication whereas pull requires three. When the distribution is implemented via RPC's (remote procedure calls), push requires one call (Update()) whereas pull requires at least two calls (Update() and GetState()). RPC's have more overhead than non-distributed method invocations, so the extra calls required by the push approach can quickly hurt performance.\n\n## Publish-Subscribe\n\nA [*Publish-Subscribe Channel*](PublishSubscribeChannel.html) implements the Observer pattern, making the pattern much easier to use amongst distributed applications. The pattern is implemented in three steps:\n\n1. The messaging system administrator creates a [*Publish-Subscribe Channel*](PublishSubscribeChannel.html) . (This will be represented in Java applications as a JMS Topic .)\n2. The application acting as the Subject creates a TopicPublisher (a type of MessageProducer ) to send messages on the channel.\n3. Each of the applications acting as an Observer (e.g., a dependent) creates a TopicSubscriber (a type of MessageConsumer ) to receive messages on the channel. (This is analogous to calling the Attach(Observer) method in the Observer pattern.)\n\nThis establishes a connection between the subject and the observers through the channel. Now, whenever the subject has a change to announce, it does so by sending a message. The channel will ensure that each of the observers receives a copy of this message.\n\nHere is a simple example of the code needed to announce the change:\n\n```\nimport javax.jms.Connection;\nimport javax.jms.ConnectionFactory;\nimport javax.jms.Destination;\nimport javax.jms.JMSException;\nimport javax.jms.MessageProducer;\nimport javax.jms.Session;\nimport javax.jms.TextMessage;\nimport javax.naming.NamingException;\n\npublic class SubjectGateway {\n\n\tpublic static final String UPDATE_TOPIC_NAME = \"jms/Update\";\n\tprivate Connection connection;\n\tprivate Session session;\n\tprivate MessageProducer updateProducer;\n\n\tprotected SubjectGateway() {\n\t\tsuper();\n\t}\n\n\tpublic static SubjectGateway newGateway() throws JMSException, NamingException {\n\t\tSubjectGateway gateway = new SubjectGateway();\n\t\tgateway.initialize();\n\t\treturn gateway;\n\t}\n\n\tprotected void initialize() throws JMSException, NamingException {\n\t\tConnectionFactory connectionFactory = JndiUtil.getQueueConnectionFactory();\n\t\tconnection = connectionFactory.createConnection();\n\t\tsession = connection.createSession(false, Session.AUTO_ACKNOWLEDGE);\n\t\tDestination updateTopic = JndiUtil.getDestination(UPDATE_TOPIC_NAME);\n\t\tupdateProducer = session.createProducer(updateTopic);\n\n\t\tconnection.start();\n\t}\n\n\tpublic void notify(String state) throws JMSException {\n\t\tTextMessage message = session.createTextMessage(state);\n\t\tupdateProducer.send(message);\n\t}\n\n\tpublic void release() throws JMSException {\n\t\tif (connection != null) {\n\t\t\tconnection.stop();\n\t\t\tconnection.close();\n\t\t}\n\t}\n}\n```\n\nSubjectGateway is a [*Messaging Gateway*](MessagingGateway.html) between the Subject (not shown) and the messaging system. The subject creates the gateway and then uses it to broadcast notifications. Essentially, the subject's Notify() method is implemented to call SubjectGateway.notify(String). The gateway then announces the change by sending a message on the update channel.\n\nAnd here is an example of the code needed to receive the change notification:\n\n```\nimport javax.jms.Connection;\nimport javax.jms.ConnectionFactory;\nimport javax.jms.Destination;\nimport javax.jms.JMSException;\nimport javax.jms.Message;\nimport javax.jms.MessageConsumer;\nimport javax.jms.MessageListener;\nimport javax.jms.Session;\nimport javax.jms.TextMessage;\nimport javax.naming.NamingException;\n\npublic class ObserverGateway implements MessageListener {\n\n\tpublic static final String UPDATE_TOPIC_NAME = \"jms/Update\";\n\tprivate Observer observer;\n\tprivate Connection connection;\n\tprivate MessageConsumer updateConsumer;\n\n\tprotected ObserverGateway() {\n\t\tsuper();\n\t}\n\n\tpublic static ObserverGateway newGateway(Observer observer)\n\t\tthrows JMSException, NamingException {\n\t\tObserverGateway gateway = new ObserverGateway();\n\t\tgateway.initialize(observer);\n\t\treturn gateway;\n\t}\n\n\tprotected void initialize(Observer observer) throws JMSException, NamingException {\n\t\tthis.observer = observer;\n\n\t\tConnectionFactory connectionFactory = JndiUtil.getQueueConnectionFactory();\n\t\tconnection = connectionFactory.createConnection();\n\t\tSession session = connection.createSession(false, Session.AUTO_ACKNOWLEDGE);\n\t\tDestination updateTopic = JndiUtil.getDestination(UPDATE_TOPIC_NAME);\n\t\tupdateConsumer = session.createConsumer(updateTopic);\n\t\tupdateConsumer.setMessageListener(this);\n\t}\n\n\tpublic void onMessage(Message message) {\n\t\ttry {\n\t\t\tTextMessage textMsg = (TextMessage) message; // assume cast always works\n\t\t\tString newState = textMsg.getText();\n\t\t\tupdate(newState);\n\t\t} catch (JMSException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}\n\n\tpublic void attach() throws JMSException {\n\t\tconnection.start();\n\t}\n\n\tpublic void detach() throws JMSException {\n\t\tif (connection != null) {\n\t\t\tconnection.stop();\n\t\t\tconnection.close();\n\t\t}\n\t}\n\n\tprivate void update(String newState) throws JMSException {\n\t\tobserver.update(newState);\n\t}\n}\n```\n\nObserverGateway is another [*Messaging Gateway*](MessagingGateway.html), this time between the Observer (not shown) and the messaging system. The observer creates the gateway, then uses attach() to start the Connection (which is analogous to calling the Attach(Observer) method in the Observer pattern). The gateway is an [*Event-Driven Consumer*](EventDrivenConsumer.html), so it implements the MessageListener interface, which requires the onMessage method. In this way, when an update is received, the gateway processes the message to get the new state, and calls is own update(String) method which calls the corresponding message in the observer.\n\nThese two classes implement the push model version of Observer. With the notification message sent by SubjectGateway.notify(String), the existance of the message tells the Observer that a change has occurred, but it is the contents of the message that tell the Observer what the Subject's new state is. The new state is being pushed from the Subject to the Observer. As we'll see later, there's another way to implement all this using the pull model.\n\n## Comparisons\n\nFor distributed notification between applications, the Publish-Subscribe (e.g., messaging) approach has several advantages over the traditional, synchronous (e.g., RPC) approach of implementing Observer:\n\n- **Simplifies Notification** — The Subject's implementation of Notify() becomes incredibly simple; the code just has to send a message on a channel. Likewise, Observer.Update() just has to receive a message.\n- **Simplifies Attach/Detach** — Rather than attach to and detach from the Subject, an Observer needs to subscribe to and unsubscribe from the channel. The Subject does not need to implement Attach(Observer) or Detach(Observer) (although the Observer may implement these methods to encapsulate the subscribe and unsubscribe behavior).\n- **Simplifies Concurrent Threading** — The Subject only needs one thread to update all Observers concurrently—the channel delivers the notification message to the Observers concurrently—and each Observer handles the update in its own thread. This simplifies the Subject's implementation, and because each Observer uses its own thread, what one does in its update thread does not affect the others.\n- **Simplifies Remote Access** — Niether the Subject nor the Observers have to implement any remote methods, nor do they need to run in an ORB. They just need to access the messaging system and it handles the distribution.\n- **Increases Reliability** — Because the channel uses messaging, notifications will be queued until the Observer can process them, which also enables the Observer to throttle the notifications. If an Observer wants to receive notifications that are sent while that Observer is disconnected, it should make itself a [*Durable Subscriber*](DurableSubscription.html) .\n\nOne issue that the Publish-Subscribe approach does not change is **serialization**. Whether Observer is implemented through RPC or messaging, state data is being distributed from the Subject's memory space to each Observer's memory space, so the data has to be serialized (e.g., marshalled). This behavior has to be implemented for either approach.\n\nIf the Publish-Subscribe approach has a downside, it's that the approach requires **messaging**, which means that the Subject and Observer applications must have access to a shared messaging system and must be implemented as clients of that messaging system. Still, making applications into messaging clients is no more difficult, and probably easier, than using the RPC approach.\n\n## Push and Pull Models\n\nAnother potential downside of the Publish-Subscribe approach is that the pull model is more complex than the push model. As discussed earlier, the pull model requires more discussion back and forth than the push model. When the discussion is amongst distributed applications, the extra communication can significantly hurt performance.\n\nThe communication is more complex with messaging than with RPC. In both cases, Update() is a one-way communication, either an RPC that returns void or a single [*Event Message*](EventMessage.html) from the Subject to the Observer. The tricker part is when an Observer needs to query the Subject's state; GetState() is a two-way communication, either a single RPC that requests the state and returns it, or a [*Request-Reply*](RequestReply.html)—a pair of messages where a [*Command Message*](CommandMessage.html) requests the state and a separate [*Document Message*](DocumentMessage.html) returns it.\n\nWhat makes [*Request-Reply*](RequestReply.html) more difficult is not just that it requires a pair of messages, but that it requires a pair of channels to transmit those messages. One channel, the get-state-request channel, goes from an Observer to the Subject; an Observer sends the state request on that channel. The other channel, the get-state-reply channel, goes from the Subject back to the Observer; the Subject sends the state reply on that channel. All of the Observers can share the same request channel, but they will probably each need their own reply channel. Each Observer needs to receive not just any response, but the particular response for its specific request, and the easiest way to ensure this is for each Observer to have its own reply channel. (An alternative is to use a single reply channel and use [*Correlation Identifier*](CorrelationIdentifier.html)s to figure out which reply goes to which observer, but a separate channel per observer is a lot easier to implement.)\n\n*Publish/Subscribe using the Pull Model*\n\nA reply channel for each Observer can lead to an explosion of channels. Such a large number of channels may be managable, but the messaging system administrator does not know how many static channels to create when the number of Observers needing to use these channels changes dynamicly at runtime. Even if there are enough channels for all of the Observers, how does each Observer know which channel to use?\n\nJMS has a feature, TemporaryQueue, specifically for this purpose. [[Hapner, p.60](http://www.amazon.com/exec/obidos/ASIN/0201784726/enterpriseint-20)] (Also see the discussion in [*Request-Reply*](RequestReply.html).) An Observer can create a temporary queue, just for its own use, specify that as the [*Return Address*](ReturnAddress.html) in its request, and wait for the reply on that queue. Creating new queues frequently can be inefficient, depending on your messaging system's implementation, and temporary queues cannot be persistent (for use with [*Guaranteed Delivery*](GuaranteedMessaging.html)). However, if you don't want to use the push model, you can implement the pull model using temporary queues.\n\nThese two classes show how to implement the gateways using the pull model.\n\n```\nimport javax.jms.Connection;\nimport javax.jms.ConnectionFactory;\nimport javax.jms.Destination;\nimport javax.jms.JMSException;\nimport javax.jms.Message;\nimport javax.jms.MessageConsumer;\nimport javax.jms.MessageListener;\nimport javax.jms.MessageProducer;\nimport javax.jms.Session;\nimport javax.jms.TextMessage;\nimport javax.naming.NamingException;\n\npublic class PullSubjectGateway {\n\n\tpublic static final String UPDATE_TOPIC_NAME = \"jms/Update\";\n\tprivate PullSubject subject;\n\tprivate Connection connection;\n\tprivate Session session;\n\tprivate MessageProducer updateProducer;\n\n\tprotected PullSubjectGateway() {\n\t\tsuper();\n\t}\n\n\tpublic static PullSubjectGateway newGateway(PullSubject subject)\n\t\tthrows JMSException, NamingException {\n\t\tPullSubjectGateway gateway = new PullSubjectGateway();\n\t\tgateway.initialize(subject);\n\t\treturn gateway;\n\t}\n\n\tprotected void initialize(PullSubject subject) throws JMSException, NamingException {\n\t\tthis.subject = subject;\n\n\t\tConnectionFactory connectionFactory = JndiUtil.getQueueConnectionFactory();\n\t\tconnection = connectionFactory.createConnection();\n\t\tsession = connection.createSession(false, Session.AUTO_ACKNOWLEDGE);\n\t\tDestination updateTopic = JndiUtil.getDestination(UPDATE_TOPIC_NAME);\n\t\tupdateProducer = session.createProducer(updateTopic);\n\n\t\tnew Thread(new GetStateReplier()).start();\n\n\t\tconnection.start();\n\t}\n\n\tpublic void notifyNoState() throws JMSException {\n\t\tTextMessage message = session.createTextMessage();\n\t\tupdateProducer.send(message);\n\t}\n\n\tpublic void release() throws JMSException {\n\t\tif (connection != null) {\n\t\t\tconnection.stop();\n\t\t\tconnection.close();\n\t\t}\n\t}\n\n\tprivate class GetStateReplier implements Runnable, MessageListener {\n\n\t\tpublic static final String GET_STATE_QUEUE_NAME = \"jms/GetState\";\n\t\tprivate Session session;\n\t\tprivate MessageConsumer requestConsumer;\n\n\t\tpublic void run() {\n\t\t\ttry {\n\t\t\t\tsession = connection.createSession(false, Session.AUTO_ACKNOWLEDGE);\n\t\t\t\tDestination getStateQueue = JndiUtil.getDestination(GET_STATE_QUEUE_NAME);\n\t\t\t\trequestConsumer = session.createConsumer(getStateQueue);\n\t\t\t\trequestConsumer.setMessageListener(this);\n\t\t\t} catch (Exception e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\n\t\tpublic void onMessage(Message message) {\n\t\t\ttry {\n\t\t\t\tDestination replyQueue = message.getJMSReplyTo();\n\t\t\t\tMessageProducer replyProducer = session.createProducer(replyQueue);\n\n\t\t\t\tMessage replyMessage = session.createTextMessage(subject.getState());\n\t\t\t\treplyProducer.send(replyMessage);\n\t\t\t} catch (JMSException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t}\n}\n```\n\nPullSubjectGateway is very similar to SubjectGateway. The pull version now has a reference to its subject so that the gateway can query the subject for its state when requested by an observer. notify(String) has now become notifyNoState(), because the pull model simply sends out notification without including any state (and because Java already uses the method name notify()).\n\nThe big addition for the pull model is GetStateReplier, an inner class that implements Runnable so that it can run in its own thread. It is also a MessageListener, which makes it an [*Event-Driven Consumer*](EventDrivenConsumer.html). Its onMessage method reads requests from the GetState queue and sends replies containing the subject's state to the queue specified by the request. In this way, when an observer makes a GetState() request, the gateway sends a reply (see [*Request-Reply*](RequestReply.html)).\n\n```\nimport javax.jms.Destination;\nimport javax.jms.JMSException;\nimport javax.jms.Message;\nimport javax.jms.MessageConsumer;\nimport javax.jms.MessageListener;\nimport javax.jms.Queue;\nimport javax.jms.QueueConnection;\nimport javax.jms.QueueConnectionFactory;\nimport javax.jms.QueueRequestor;\nimport javax.jms.QueueSession;\nimport javax.jms.Session;\nimport javax.jms.TextMessage;\nimport javax.naming.NamingException;\n\npublic class PullObserverGateway implements MessageListener {\n\n\tpublic static final String UPDATE_TOPIC_NAME = \"jms/Update\";\n\tpublic static final String GET_STATE_QUEUE_NAME = \"jms/GetState\";\n\tprivate PullObserver observer;\n\tprivate QueueConnection connection;\n\tprivate QueueSession session;\n\tprivate MessageConsumer updateConsumer;\n\tprivate QueueRequestor getStateRequestor;\n\n\tprotected PullObserverGateway() {\n\t\tsuper();\n\t}\n\n\tpublic static PullObserverGateway newGateway(PullObserver observer)\n\t\tthrows JMSException, NamingException {\n\t\tPullObserverGateway gateway = new PullObserverGateway();\n\t\tgateway.initialize(observer);\n\t\treturn gateway;\n\t}\n\n\tprotected void initialize(PullObserver observer) throws JMSException, NamingException {\n\t\tthis.observer = observer;\n\n\t\tQueueConnectionFactory connectionFactory = JndiUtil.getQueueConnectionFactory();\n\t\tconnection = connectionFactory.createQueueConnection();\n\t\tsession = connection.createQueueSession(false, Session.AUTO_ACKNOWLEDGE);\n\t\tDestination updateTopic = JndiUtil.getDestination(UPDATE_TOPIC_NAME);\n\t\tupdateConsumer = session.createConsumer(updateTopic);\n\t\tupdateConsumer.setMessageListener(this);\n\n\t\tQueue getStateQueue = (Queue) JndiUtil.getDestination(GET_STATE_QUEUE_NAME);\n\t\tgetStateRequestor = new QueueRequestor(session, getStateQueue);\n\t\t\n\t}\n\n\tpublic void onMessage(Message message) {\n\t\ttry {\n\t\t\t// message's contents are empty\n\t\t\tupdateNoState();\n\t\t} catch (JMSException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}\n\n\tpublic void attach() throws JMSException {\n\t\tconnection.start();\n\t}\n\n\tpublic void detach() throws JMSException {\n\t\tif (connection != null) {\n\t\t\tconnection.stop();\n\t\t\tconnection.close();\n\t\t}\n\t}\n\n\tprivate void updateNoState() throws JMSException {\n\t\tTextMessage getStateRequestMessage = session.createTextMessage();\n\t\tMessage getStateReplyMessage = getStateRequestor.request(getStateRequestMessage);\n\t\tTextMessage textMsg = (TextMessage) getStateReplyMessage; // assume cast always works\n\t\tString newState = textMsg.getText();\n\t\tobserver.update(newState);\n\t}\n}\n```\n\nAgain, PullObserverGateway is similar to ObserverGateway, but with some more code to implement the pull model. In initialize, it not only sets up updateConsumer to listen for updates, but also sets up getStateRequestor to send GetState() requests. (getStateRequestor is a QueueRequestor; see [*Request-Reply*](RequestReply.html).) In the pull version, the gateway's onMessage code ignores the message's contents because the message is empty. The message's existance tells the observer that the subject has changed, but does not tell the observer what the subject's new state is. So all there is to do is call updateNoState() (named similarly to notifyNoState()).\n\nThe difference for the Observer between the push and pull models becomes apparent in the implementation of updateNoState() vs. update(String). Whereas the push version gets the new state as a parameter and just has to update the observer, the pull version must go get the new state before it can update the observer. To get the new state, it uses the getStateRequestor to send a request and get the reply. The reply contains the subject's new state, which the gateway uses to update the observer. (Note that in this simple implementation, the gateway is single-threaded, so while it is sending the get-state request and waiting for the reply, it is not processing any more updates. Thus if the request or reply messages take a really long time to transmit, the gateway will be stuck waiting and any more updates that occur will simply queue up.)\n\nSo as you can see, the pull model is more complex than the push model. It requires more channels (including a temporary one for every observer), it requires more messages (three messages per update per interested observer instead of one message for all observers), the subject and observer classes require more code to manage the additional messaging, and the objects at runtime require more threads to execute the additional messaging. If all of this is acceptable in your application, then the pull model is a viable approach. However, if in doubt, you should probably start with the push model because it is simpler.\n\n## Channel Design\n\nSo far, we've considered one Subject with one piece of state notifying its Observers. Using the push model, this requires one [*Publish-Subscribe Channel*](PublishSubscribeChannel.html) for communicating changes in the Subject's state to the Observers.\n\nReal enterprise applications are much more complex. An application can contain lots of Subjects that need to announce changes. Each Subject often contains several different pieces of state, called *aspects*, that can change independently. A single Observer might be interested in several different aspects in several different Subjects, where the Subjects are not only multiple instances of the same class, but may well be instances of different classes.\n\nSo update semantics in sophsticated applications can quickly become complex. The Observer pattern address this as implementation issues like \"Observing more than one subject\" and \"Specifying modifications of interest explicitly.\" Also, the SASE (Self-Addresses Stamped Envelope) pattern describes a combination of the Observer and Command patterns whereby an observer specifies the command a subject should send it when a certain change occurs. [[Alpert, pp.312-314](http://www.amazon.com/exec/obidos/ASIN/0201184621/enterpriseint-20)]\n\nWithout getting too deep into the issues of making sure observers only receive the updates they need, let's consider the implications for messaging, namely: How many channels will we need?\n\nLet's first consider a simple case. An enterprise may have several different applications responsible for storing a customer's contact information, such as a mailing address. When a customer's address is updated in one of these applications, the application should notify other applications that may need this new information as well. Meanwhile, there may be several applications that need to know when an address changes, so they would like to register to receive notification.\n\nThis is a simple problem to solve. All that is needed is a single [*Publish-Subscribe Channel*](PublishSubscribeChannel.html) for announcing address changes. Each application that can change an address then also has the responsibility to announce that change by publishing a message on the channel. Each application that wishes to receive notification subscribes to the channel. A particular change message might look like this:\n\n```\n\n\t\n\t\t123 Wall Street\n\t\tNew York\n\t\tNY\n\t\t10005\n\t\n\t\n\t\t321 Sunset Blvd\n\t\tLos Angeles\n\t\tCA\n\t\t90012\n\t\n\n```\n\nNow let's consider another problem. The enterprise may also have applications that need to announce when they are out of a product, and others that need to receive these notifications so that they can reorder the product. This is just a different example of the last problem, and is solved the same way by using a [*Publish-Subscribe Channel*](PublishSubscribeChannel.html) to make out-of-product announcements. One of these messages might look like this:\n\n```\n\n\t12345\n\t67890\n\t100\n\n```\n\nBut this leads us to wonder: Can we use the same channel for customer address changes and for out-of-product announcements? Probably not. First, [*Datatype Channel*](DatatypeChannel.html) tells us that all of the messages on a channel must be of the same type, which in this case means that they must all conform to the same XML schema. is obviously a very different element type from , so they should not be sent on the same channel. Perhaps the data formats could be reworked so that both message types fit the same schema and receivers could tell which messages were for addresses and which were for products. But then the problem is that the applications interested in address changes are probablty not the same ones interested in product updates, so if the messages use the same channel, an application will frequently receive notifications it's not interested in. Thus is makes sense to have two separate address change and product update channels.\n\nNow consider a third case where a customer's credit rating could change. The message might look like this:\n\n```\n\n\tAAA\n\tBBB\n\n```\n\nLike the case with product notifications, it might be tempting to solve the problem with a new credit-rating-changed channel (in addition to the address-changed and out-of-product channels). This would keep the credit rating changes separate from the address changes, and would allow dependents to only register for the type of changes they're interested in.\n\nThe problem with this approach is that it can lead to a channel explosion. Consider all the pieces of data that may be known about a customer: name; contacts (address, phone number, e-mail) for mailing, shipping, and billing; credit rating; service level; standard discount; etc. Each time any one of these aspects changes, other applications may need to know about it. Creating a channel for each can lead to lots of channels.\n\nLarge numbers of channels may tax the messaging system. Numerous channels with little traffic on each can waste resources and make load difficult to distribute. Or, numerous channels with lots of little messages can add to messaging overhead. Dependents can become confused as to which of a large number of channels to subscribe to. Multiple channels require multiple senders and receivers, perhaps leading to lots of threads checking lots of channels that are usually empty. So creating yet more channels may not be such a good idea.\n\nWhat may work better is to send both the address-changed and credit-rating-changed messages on the same channel, since they both concern changes to the customer and an application interested in one kind of change may be interested in the others as well. Yet a separate out-of-product channel is still a good idea since applications interested in customers may not be interested in products and vise versa.\n\nThe address-changed and credit-rating-changed messages have different formats, yet [*Datatype Channel*](DatatypeChannel.html) tells us that to be on the same channel, the messages must have the same format. With XML, this means that all of the messages must have the same root element type, but perhaps can have different optional nested elements. So unified customer-changed messages might look like this:\n\n```\n\n\t\n\t\t\n\t\t\t123 Wall Street\n\t\t\tNew York\n\t\t\tNY\n\t\t\t10005\n\t\t\n\t\t\n\t\t\t321 Sunset Blvd\n\t\t\tLos Angeles\n\t\t\tCA\n\t\t\t90012\n\t\t\n\t\n\n```\n\n```\n\n\t\n\t\tAAA\n\t\tBBB\n\t\n\n```\n\nThere may still be the problem that shipping applications interested in address changes are not interested in credit rating changes, and billing applications are interested in the opposite. These applications can use [*Selective Consumer*](MessageSelector.html)s to get only the messages of interest. If selective consumers prove to be complicated and a messaging system can easily support more channels, then perhaps separate channels would be better after all.\n\nAs with may issues in enterprise architecture and design, there are no simple answers and lots of tradeoffs. With [*Publish-Subscribe Channel*](PublishSubscribeChannel.html) (as with any message channel), the goal is to help ensure that the observers only receive the notifications they need, without an explosion of separate channels and without taxing the typical observer with lots of threads running lots of consumers monitoring lots of channels.\n\n## Conclusions\n\nThis chapter shows that [*Publish-Subscribe Channel*](PublishSubscribeChannel.html)s are an implementation of the Observer pattern that make the pattern much easier to use in distributed environments. When a channel is used, Subject.Notify() and Observer.Update() become much simpler because all they have to do is send and receive messages. The messaging system takes care of distribution and concurrency while making the remote notification more reliable. The push model is simpler and often more efficient than the pull model, especially for distributed notification, especially with messaging; yet the pull model can also be implemented using messaging. In complex applications where lots of data can change, it may be tempting to create a channel for every different thing that can change, but it's often more practical to use the same channel to trasmit similar notifications going to the same observers. Even if your applications don't need messaging for anything else, if they need to notify each other of changes, it may well be worth using [*Messaging*](Messaging.html) just so you can take advantage of [*Publish-Subscribe Channel*](PublishSubscribeChannel.html)s.\n\n## Integration Pattern Language\n\n[Message Construct.](MessageConstructionIntro.html)\n\n[Message](Message.html)\n\n[Command Message](CommandMessage.html)\n\n[Document Message](DocumentMessage.html)\n\n[Event Message](EventMessage.html)\n\n[Request-Reply](RequestReply.html)\n\n[Return Address](ReturnAddress.html)\n\n[Correlation Identifier](CorrelationIdentifier.html)\n\n[Message Sequence](MessageSequence.html)\n\n[Message Expiration](MessageExpiration.html)\n\n[Format Indicator](FormatIndicator.html)\n\n[Message Routing](MessageRoutingIntro.html)\n\n[Pipes-and-Filters](PipesAndFilters.html)\n\n[Message Router](MessageRouter.html)\n\n[Content-based Router](ContentBasedRouter.html)\n\n[Message Filter](Filter.html)\n\n[Dynamic Router](DynamicRouter.html)\n\n[Recipient List](RecipientList.html)\n\n[Splitter](Sequencer.html)\n\n[Aggregator](Aggregator.html)\n\n[Resequencer](Resequencer.html)\n\n[Composed Msg. Processor](DistributionAggregate.html)\n\n[Scatter-Gather](BroadcastAggregate.html)\n\n[Routing Slip](RoutingTable.html)\n\n[Process Manager](ProcessManager.html)\n\n[Message Broker](MessageBroker.html)\n\n[Message\nTransformation](MessageTransformationIntro.html)\n\n[Message Translator](MessageTranslator.html)\n\n[Envelope Wrapper](EnvelopeWrapper.html)\n\n[Content Enricher](DataEnricher.html)\n\n[Content Filter](ContentFilter.html)\n\n[Claim Check](StoreInLibrary.html)\n\n[Normalizer](Normalizer.html)\n\n[Canonical Data Model](CanonicalDataModel.html)\n\n[Messaging Endpoints](MessagingEndpointsIntro.html)\n\n[Message Endpoint](MessageEndpoint.html)\n\n[Messaging Gateway](MessagingGateway.html)\n\n[Messaging Mapper](MessagingMapper.html)\n\n[Transactional Client](TransactionalClient.html)\n\n[Polling Consumer](PollingConsumer.html)\n\n[Event-driven Consumer](EventDrivenConsumer.html)\n\n[Competing Consumers](CompetingConsumers.html)\n\n[Message Dispatcher](MessageDispatcher.html)\n\n[Selective Consumer](MessageSelector.html)\n\n[Durable Subscriber](DurableSubscription.html)\n\n[Idempotent Receiver](IdempotentReceiver.html)\n\n[Service Activator](MessagingAdapter.html)\n\n[Messaging Channels](MessagingChannelsIntro.html)\n\n[Message Channel](MessageChannel.html)\n\n[Point-to-Point Channel](PointToPointChannel.html)\n\n[Publish-Subscr. Channel](PublishSubscribeChannel.html)\n\n[Datatype Channel](DatatypeChannel.html)\n\n[Invalid Message Channel](InvalidMessageChannel.html)\n\n[Dead Letter Channel](DeadLetterChannel.html)\n\n[Guaranteed Delivery](GuaranteedMessaging.html)\n\n[Channel Adapter](ChannelAdapter.html)\n\n[Messaging Bridge](MessagingBridge.html)\n\n[Message Bus](MessageBus.html)\n\n[Systems Mgmt.](SystemManagementIntro.html)\n\n[Control Bus](ControlBus.html)\n\n[Detour](Detour.html)\n\n[Wire Tap](WireTap.html)\n\n[Message History](MessageHistory.html)\n\n[Message Store](MessageStore.html)\n\n[Smart Proxy](SmartProxy.html)\n\n[Test Message](TestMessage.html)\n\n[Channel Purger](ChannelPurger.html)", "znaku_textu": 37477, "slov": 4883, "odkazu": 110, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/patterns/messaging/ObserverJmsExample.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 14:51:01", "sha256": "7e29b1696ebe42055cf41bf8fa9e7dc59d6a999c407a7b3efd9804ca5bdc578e", "hloubka": 3, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://www.amazon.com/exec/obidos/ASIN/0201633612/enterpriseint-20", "http://www.amazon.com/exec/obidos/ASIN/0201784726/enterpriseint-20", "http://www.amazon.com/exec/obidos/ASIN/0201184621/enterpriseint-20", "https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "https://www.architectelevator.com/book", "https://www.cloudstrategybook.com/", "https://www.platformstrategybook.info/"]} {"url": "https://www.enterpriseintegrationpatterns.com/PipesAndFilters.html", "titulek": "Pipes and Filters - Enterprise Integration Patterns", "h1": "", "popis": "How can we perform complex processing on a message while maintaining independence and flexibility?", "klicova_slova": "Pipes and Filters,integration, messaging, events, patterns, event-driven, coupling, eai, middleware, application integration, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns", "og:title": "Pipes and Filters - Enterprise Integration Patterns", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/PipesAndFilters.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/PipesAndFilters.gif"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Integration Pattern Language"}], "markdown": "| | Pipes and Filters[Messaging Patterns](index.html) » [Messaging Systems](MessagingComponentsIntro.html) | [Contents](toc.html)[⇐ Prev](Message.html)[Next ⇒](MessageRouter.html) |\n| --- | --- | --- |\n\nIn many enterprise integration scenarios, a single event triggers a sequence of processing steps, each performing a specific function. For example, let's assume a new order arrives in our enterprise in the form of a message. One requirement may be that the message is encrypted to prevent eavesdroppers from spying on a customer's order. A second requirement is that the messages contain authentication information in the form of a digital certificate to ensure that orders are placed only by trusted customers. In addition, duplicate messages could be sent from external parties (remember all the warnings on the popular shopping sites to click the 'Order Now' button only once?). To avoid duplicate shipments and unhappy customers, we need to eliminate duplicate messages before subsequent order processing steps are initiated. To meet these requirements, we need to transform a stream of possibly duplicated, encrypted messages containing extra authentication data into a stream of unique, simple plain-text order messages without the extraneous data fields.\n\nHow can we perform complex processing on a message while maintaining independence and flexibility?\n\nUse the *Pipes and Filters* architectural style to divide a larger processing task into a sequence of smaller, independent processing steps (Filters) that are connected by channels (Pipes).\n\nEach filter exposes a very simple interface: it receives messages on the inbound pipe, processes the message, and publishes the results to the outbound pipe. The pipe connects one filter to the next, sending output messages from one filter to the next. Because all component use the same external interface they can be *composed* into different solutions by connecting the components to different pipes. We can add new filters, omit existing ones or rearrange them into a new sequence -- all without having to change the filters themselves. The connection between filter and pipe is sometimes called *port*. In the basic form, each filter component has one input port and one output port.\n\n...\nRead the entire pattern in the book [Enterprise Integration Patterns](/books1.html)\n\n**Related patterns:**\n\n[*Competing Consumers*](CompetingConsumers.html), [*Content Filter*](ContentFilter.html), [*Event-Driven Consumer*](EventDrivenConsumer.html), [*Message Filter*](Filter.html), [*Message Channel*](MessageChannel.html), [*Message Router*](MessageRouter.html), [*Messaging*](Messaging.html), [*Messaging Gateway*](MessagingGateway.html), [*Point-to-Point Channel*](PointToPointChannel.html), [*Resequencer*](Resequencer.html), [*Test Message*](TestMessage.html), [*Transactional Client*](TransactionalClient.html)\n\n---\n\n## Integration Pattern Language\n\n[Message Construct.](MessageConstructionIntro.html)\n\n[Message](Message.html)\n\n[Command Message](CommandMessage.html)\n\n[Document Message](DocumentMessage.html)\n\n[Event Message](EventMessage.html)\n\n[Request-Reply](RequestReply.html)\n\n[Return Address](ReturnAddress.html)\n\n[Correlation Identifier](CorrelationIdentifier.html)\n\n[Message Sequence](MessageSequence.html)\n\n[Message Expiration](MessageExpiration.html)\n\n[Format Indicator](FormatIndicator.html)\n\n[Message Routing](MessageRoutingIntro.html)\n\n[Pipes-and-Filters](PipesAndFilters.html)\n\n[Message Router](MessageRouter.html)\n\n[Content-based Router](ContentBasedRouter.html)\n\n[Message Filter](Filter.html)\n\n[Dynamic Router](DynamicRouter.html)\n\n[Recipient List](RecipientList.html)\n\n[Splitter](Sequencer.html)\n\n[Aggregator](Aggregator.html)\n\n[Resequencer](Resequencer.html)\n\n[Composed Msg. Processor](DistributionAggregate.html)\n\n[Scatter-Gather](BroadcastAggregate.html)\n\n[Routing Slip](RoutingTable.html)\n\n[Process Manager](ProcessManager.html)\n\n[Message Broker](MessageBroker.html)\n\n[Message\nTransformation](MessageTransformationIntro.html)\n\n[Message Translator](MessageTranslator.html)\n\n[Envelope Wrapper](EnvelopeWrapper.html)\n\n[Content Enricher](DataEnricher.html)\n\n[Content Filter](ContentFilter.html)\n\n[Claim Check](StoreInLibrary.html)\n\n[Normalizer](Normalizer.html)\n\n[Canonical Data Model](CanonicalDataModel.html)\n\n[Messaging Endpoints](MessagingEndpointsIntro.html)\n\n[Message Endpoint](MessageEndpoint.html)\n\n[Messaging Gateway](MessagingGateway.html)\n\n[Messaging Mapper](MessagingMapper.html)\n\n[Transactional Client](TransactionalClient.html)\n\n[Polling Consumer](PollingConsumer.html)\n\n[Event-driven Consumer](EventDrivenConsumer.html)\n\n[Competing Consumers](CompetingConsumers.html)\n\n[Message Dispatcher](MessageDispatcher.html)\n\n[Selective Consumer](MessageSelector.html)\n\n[Durable Subscriber](DurableSubscription.html)\n\n[Idempotent Receiver](IdempotentReceiver.html)\n\n[Service Activator](MessagingAdapter.html)\n\n[Messaging Channels](MessagingChannelsIntro.html)\n\n[Message Channel](MessageChannel.html)\n\n[Point-to-Point Channel](PointToPointChannel.html)\n\n[Publish-Subscr. Channel](PublishSubscribeChannel.html)\n\n[Datatype Channel](DatatypeChannel.html)\n\n[Invalid Message Channel](InvalidMessageChannel.html)\n\n[Dead Letter Channel](DeadLetterChannel.html)\n\n[Guaranteed Delivery](GuaranteedMessaging.html)\n\n[Channel Adapter](ChannelAdapter.html)\n\n[Messaging Bridge](MessagingBridge.html)\n\n[Message Bus](MessageBus.html)\n\n[Systems Mgmt.](SystemManagementIntro.html)\n\n[Control Bus](ControlBus.html)\n\n[Detour](Detour.html)\n\n[Wire Tap](WireTap.html)\n\n[Message History](MessageHistory.html)\n\n[Message Store](MessageStore.html)\n\n[Smart Proxy](SmartProxy.html)\n\n[Test Message](TestMessage.html)\n\n[Channel Purger](ChannelPurger.html)", "znaku_textu": 5586, "slov": 530, "odkazu": 108, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/PipesAndFilters.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 06:03:38", "sha256": "850988a7f88fc170ad5d90f5791040fff4bc4b42643ce851466db4b4f6fb1d90", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://creativecommons.org/licenses/by/4.0/", "https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "https://www.architectelevator.com/book", "https://www.cloudstrategybook.com/", "https://www.platformstrategybook.info/"]} {"url": "https://www.enterpriseintegrationpatterns.com/PointToPointChannel.html", "titulek": "Point-to-Point Channel - Enterprise Integration Patterns", "h1": "", "popis": "How can the caller be sure that exactly one receiver will receive the document or perform the call?", "klicova_slova": "Point-to-Point Channel,integration, messaging, events, patterns, event-driven, coupling, eai, middleware, application integration, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns", "og:title": "Point-to-Point Channel - Enterprise Integration Patterns", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/PointToPointChannel.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/PointToPointSolution.gif"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Integration Pattern Language"}], "markdown": "Messaging Patterns\n\n[Messaging Patterns](index.html)\n\n- [Integration Styles](IntegrationStylesIntro.html)\n- [Messaging Systems](MessagingComponentsIntro.html)\n- [Messaging Channels](MessagingChannelsIntro.html)\n- [Message Construction](MessageConstructionIntro.html)\n- [Interlude: Simple Messaging](SimpleMessagingIntro.html)\n- [Message Routing](MessageRoutingIntro.html)\n- [Message Transformation](MessageTransformationIntro.html)\n- [Interlude: Composed Messaging](ComposedMessagingExample.html)\n- [Messaging Endpoints](MessagingEndpointsIntro.html)\n- [System Management](SystemManagementIntro.html)\n- Interlude: Systems Management Example\n- Integration Patterns in Practice\n- Concluding Remarks\n- Appendices\n\n| | Point-to-Point Channel[Messaging Patterns](index.html) » [Messaging Channels](MessagingChannelsIntro.html) | [Contents](toc.html)[⇐ Prev](MessagingChannelsIntro.html)[Next ⇒](PublishSubscribeChannel.html) |\n| --- | --- | --- |\n\nAn application is using [*Messaging*](Messaging.html) to make remote procedure calls (RPC’s) or transfer documents.\n\nHow can the caller be sure that exactly one receiver will receive the document or perform the call?\n\nSend the message on a *Point-to-Point Channel*, which ensures that only one receiver will receive a particular message.\n\nA *Point-to-Point Channel* ensures that only one receiver consumes any given message. If the channel has multiple receivers, only one of them can successfully consume a particular message. If multiple receivers try to consume a single message, the channel ensures that only one of them succeeds, so the receivers do not have to coordinate with each other. The channel can still have multiple receivers to consume multiple messages concurrently, but only a single receiver consumes any one message.\n\n...\nRead the entire pattern in the book [Enterprise Integration Patterns](/books1.html)\n\n**Related patterns:**\n\n[*Command Message*](CommandMessage.html), [*Competing Consumers*](CompetingConsumers.html), [*Document Message*](DocumentMessage.html), [*Message*](Message.html), [*Message Channel*](MessageChannel.html), [*Messaging*](Messaging.html), [*Publish-Subscribe Channel*](PublishSubscribeChannel.html), [*Request-Reply*](RequestReply.html)\n\n---\n\n## Integration Pattern Language\n\n[Message Construct.](MessageConstructionIntro.html)\n\n[Message](Message.html)\n\n[Command Message](CommandMessage.html)\n\n[Document Message](DocumentMessage.html)\n\n[Event Message](EventMessage.html)\n\n[Request-Reply](RequestReply.html)\n\n[Return Address](ReturnAddress.html)\n\n[Correlation Identifier](CorrelationIdentifier.html)\n\n[Message Sequence](MessageSequence.html)\n\n[Message Expiration](MessageExpiration.html)\n\n[Format Indicator](FormatIndicator.html)\n\n[Message Routing](MessageRoutingIntro.html)\n\n[Pipes-and-Filters](PipesAndFilters.html)\n\n[Message Router](MessageRouter.html)\n\n[Content-based Router](ContentBasedRouter.html)\n\n[Message Filter](Filter.html)\n\n[Dynamic Router](DynamicRouter.html)\n\n[Recipient List](RecipientList.html)\n\n[Splitter](Sequencer.html)\n\n[Aggregator](Aggregator.html)\n\n[Resequencer](Resequencer.html)\n\n[Composed Msg. Processor](DistributionAggregate.html)\n\n[Scatter-Gather](BroadcastAggregate.html)\n\n[Routing Slip](RoutingTable.html)\n\n[Process Manager](ProcessManager.html)\n\n[Message Broker](MessageBroker.html)\n\n[Message\nTransformation](MessageTransformationIntro.html)\n\n[Message Translator](MessageTranslator.html)\n\n[Envelope Wrapper](EnvelopeWrapper.html)\n\n[Content Enricher](DataEnricher.html)\n\n[Content Filter](ContentFilter.html)\n\n[Claim Check](StoreInLibrary.html)\n\n[Normalizer](Normalizer.html)\n\n[Canonical Data Model](CanonicalDataModel.html)\n\n[Messaging Endpoints](MessagingEndpointsIntro.html)\n\n[Message Endpoint](MessageEndpoint.html)\n\n[Messaging Gateway](MessagingGateway.html)\n\n[Messaging Mapper](MessagingMapper.html)\n\n[Transactional Client](TransactionalClient.html)\n\n[Polling Consumer](PollingConsumer.html)\n\n[Event-driven Consumer](EventDrivenConsumer.html)\n\n[Competing Consumers](CompetingConsumers.html)\n\n[Message Dispatcher](MessageDispatcher.html)\n\n[Selective Consumer](MessageSelector.html)\n\n[Durable Subscriber](DurableSubscription.html)\n\n[Idempotent Receiver](IdempotentReceiver.html)\n\n[Service Activator](MessagingAdapter.html)\n\n[Messaging Channels](MessagingChannelsIntro.html)\n\n[Message Channel](MessageChannel.html)\n\n[Point-to-Point Channel](PointToPointChannel.html)\n\n[Publish-Subscr. Channel](PublishSubscribeChannel.html)\n\n[Datatype Channel](DatatypeChannel.html)\n\n[Invalid Message Channel](InvalidMessageChannel.html)\n\n[Dead Letter Channel](DeadLetterChannel.html)\n\n[Guaranteed Delivery](GuaranteedMessaging.html)\n\n[Channel Adapter](ChannelAdapter.html)\n\n[Messaging Bridge](MessagingBridge.html)\n\n[Message Bus](MessageBus.html)\n\n[Systems Mgmt.](SystemManagementIntro.html)\n\n[Control Bus](ControlBus.html)\n\n[Detour](Detour.html)\n\n[Wire Tap](WireTap.html)\n\n[Message History](MessageHistory.html)\n\n[Message Store](MessageStore.html)\n\n[Smart Proxy](SmartProxy.html)\n\n[Test Message](TestMessage.html)\n\n[Channel Purger](ChannelPurger.html)\n\n- » [Read the latest in My Blog](/ramblings)\n- » [Get more insights from My Articles](/articles.html)\n- » [See me live in my Upcoming Talks](/talks)\n\nYou can reuse the following elements under the [Creative Commons Attribution](http://creativecommons.org/licenses/by/4.0/) license: pattern icon, pattern name, problem and solution statements (in bold), and the sketch. Other portions are protected by copyright.\n\n[Enterprise Integration Patterns](https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20)\nThe de-facto language for designing asynchronous, distributed systems. Over 100,000 copies sold.\n\n[The Software Architect Elevator](https://www.architectelevator.com/book)\n\n Rethink the role of architects as a connecting element across organizational layers. Acquire the technical, communication, and organizational skills to succeed in this new role.\n\n[Cloud Strategy](https://www.cloudstrategybook.com)\n\n Make your cloud migration a success by translating high-level goals into conscious decisions with well-understood trade-offs.\n\n[Platform Strategy](https://www.platformstrategybook.info)\n\n Platforms can boost innovation through harmonization, but they aren't easy to build. Learn from over a decade of designing and rolling out IT platforms.", "znaku_textu": 6181, "slov": 514, "odkazu": 108, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/PointToPointChannel.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 06:04:14", "sha256": "d49b1e29621d358d9132f88cf051f320778547c1136a5e97c5a9467dd9631291", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://creativecommons.org/licenses/by/4.0/", "https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "https://www.architectelevator.com/book", "https://www.cloudstrategybook.com/", "https://www.platformstrategybook.info/"]} {"url": "https://www.enterpriseintegrationpatterns.com/PollingConsumer.html", "titulek": "Polling Consumer - Enterprise Integration Patterns", "h1": "", "popis": "How can an application consume a message when the application is ready?", "klicova_slova": "Polling Consumer,integration, messaging, events, patterns, event-driven, coupling, eai, middleware, application integration, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns", "og:title": "Polling Consumer - Enterprise Integration Patterns", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/PollingConsumer.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/PollingConsumerSolution.gif"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Integration Pattern Language"}], "markdown": "Messaging Patterns\n\n[Messaging Patterns](index.html)\n\n- [Integration Styles](IntegrationStylesIntro.html)\n- [Messaging Systems](MessagingComponentsIntro.html)\n- [Messaging Channels](MessagingChannelsIntro.html)\n- [Message Construction](MessageConstructionIntro.html)\n- [Interlude: Simple Messaging](SimpleMessagingIntro.html)\n- [Message Routing](MessageRoutingIntro.html)\n- [Message Transformation](MessageTransformationIntro.html)\n- [Interlude: Composed Messaging](ComposedMessagingExample.html)\n- [Messaging Endpoints](MessagingEndpointsIntro.html)\n- [System Management](SystemManagementIntro.html)\n- Interlude: Systems Management Example\n- Integration Patterns in Practice\n- Concluding Remarks\n- Appendices\n\n| | Polling Consumer[Messaging Patterns](index.html) » [Messaging Endpoints](MessagingEndpointsIntro.html) | [Contents](toc.html)[⇐ Prev](TransactionalClient.html)[Next ⇒](EventDrivenConsumer.html) |\n| --- | --- | --- |\n\nAn application needs to consume [*Message*](Message.html)s, but it wants to control when it consumes each message.\n\nHow can an application consume a message when the application is ready?\n\nThe application should use a *Polling Consumer*, one that explicitly makes a call when it wants to receive a message.\n\nThis is also known as a synchronous receiver, because the receiver thread blocks until a message is received. We call it a *Polling Consumer* because the receiver polls for a message, processes it, then polls for another. As a convenience, messaging API’s usually provide a receive method that blocks until a message is delivered, in addition to methods like receiveNoWait() and Receive(0) that return immediately if no message is available. This difference is only apparent when the receiver is polling faster than messages are arriving.\n\nA *Polling Consumer* is an object that an application uses to receive messages by explicitly requesting them. When the application is ready for another message, it polls the consumer, which in turn gets a message from the messaging system and returns it. (How the consumer gets the message from the messaging system is implementation-specific and may or may not involve polling. All the application knows is that it doesn’t get the message until it explicitly asks for one.)\n\n...\nRead the entire pattern in the book [Enterprise Integration Patterns](/books1.html)\n\n**Related patterns:**\n\n[*Competing Consumers*](CompetingConsumers.html), [*Durable Subscriber*](DurableSubscription.html), [*Event-Driven Consumer*](EventDrivenConsumer.html), [*Message*](Message.html), [*Message Dispatcher*](MessageDispatcher.html), [*Selective Consumer*](MessageSelector.html), [*Transactional Client*](TransactionalClient.html)\n\n---\n\n## Integration Pattern Language\n\n[Message Construct.](MessageConstructionIntro.html)\n\n[Message](Message.html)\n\n[Command Message](CommandMessage.html)\n\n[Document Message](DocumentMessage.html)\n\n[Event Message](EventMessage.html)\n\n[Request-Reply](RequestReply.html)\n\n[Return Address](ReturnAddress.html)\n\n[Correlation Identifier](CorrelationIdentifier.html)\n\n[Message Sequence](MessageSequence.html)\n\n[Message Expiration](MessageExpiration.html)\n\n[Format Indicator](FormatIndicator.html)\n\n[Message Routing](MessageRoutingIntro.html)\n\n[Pipes-and-Filters](PipesAndFilters.html)\n\n[Message Router](MessageRouter.html)\n\n[Content-based Router](ContentBasedRouter.html)\n\n[Message Filter](Filter.html)\n\n[Dynamic Router](DynamicRouter.html)\n\n[Recipient List](RecipientList.html)\n\n[Splitter](Sequencer.html)\n\n[Aggregator](Aggregator.html)\n\n[Resequencer](Resequencer.html)\n\n[Composed Msg. Processor](DistributionAggregate.html)\n\n[Scatter-Gather](BroadcastAggregate.html)\n\n[Routing Slip](RoutingTable.html)\n\n[Process Manager](ProcessManager.html)\n\n[Message Broker](MessageBroker.html)\n\n[Message\nTransformation](MessageTransformationIntro.html)\n\n[Message Translator](MessageTranslator.html)\n\n[Envelope Wrapper](EnvelopeWrapper.html)\n\n[Content Enricher](DataEnricher.html)\n\n[Content Filter](ContentFilter.html)\n\n[Claim Check](StoreInLibrary.html)\n\n[Normalizer](Normalizer.html)\n\n[Canonical Data Model](CanonicalDataModel.html)\n\n[Messaging Endpoints](MessagingEndpointsIntro.html)\n\n[Message Endpoint](MessageEndpoint.html)\n\n[Messaging Gateway](MessagingGateway.html)\n\n[Messaging Mapper](MessagingMapper.html)\n\n[Transactional Client](TransactionalClient.html)\n\n[Polling Consumer](PollingConsumer.html)\n\n[Event-driven Consumer](EventDrivenConsumer.html)\n\n[Competing Consumers](CompetingConsumers.html)\n\n[Message Dispatcher](MessageDispatcher.html)\n\n[Selective Consumer](MessageSelector.html)\n\n[Durable Subscriber](DurableSubscription.html)\n\n[Idempotent Receiver](IdempotentReceiver.html)\n\n[Service Activator](MessagingAdapter.html)\n\n[Messaging Channels](MessagingChannelsIntro.html)\n\n[Message Channel](MessageChannel.html)\n\n[Point-to-Point Channel](PointToPointChannel.html)\n\n[Publish-Subscr. Channel](PublishSubscribeChannel.html)\n\n[Datatype Channel](DatatypeChannel.html)\n\n[Invalid Message Channel](InvalidMessageChannel.html)\n\n[Dead Letter Channel](DeadLetterChannel.html)\n\n[Guaranteed Delivery](GuaranteedMessaging.html)\n\n[Channel Adapter](ChannelAdapter.html)\n\n[Messaging Bridge](MessagingBridge.html)\n\n[Message Bus](MessageBus.html)\n\n[Systems Mgmt.](SystemManagementIntro.html)\n\n[Control Bus](ControlBus.html)\n\n[Detour](Detour.html)\n\n[Wire Tap](WireTap.html)\n\n[Message History](MessageHistory.html)\n\n[Message Store](MessageStore.html)\n\n[Smart Proxy](SmartProxy.html)\n\n[Test Message](TestMessage.html)\n\n[Channel Purger](ChannelPurger.html)\n\n- » [Read the latest in My Blog](/ramblings)\n- » [Get more insights from My Articles](/articles.html)\n- » [See me live in my Upcoming Talks](/talks)\n\nYou can reuse the following elements under the [Creative Commons Attribution](http://creativecommons.org/licenses/by/4.0/) license: pattern icon, pattern name, problem and solution statements (in bold), and the sketch. Other portions are protected by copyright.\n\n[Enterprise Integration Patterns](https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20)\nThe de-facto language for designing asynchronous, distributed systems. Over 100,000 copies sold.\n\n[The Software Architect Elevator](https://www.architectelevator.com/book)\n\n Rethink the role of architects as a connecting element across organizational layers. Acquire the technical, communication, and organizational skills to succeed in this new role.\n\n[Cloud Strategy](https://www.cloudstrategybook.com)\n\n Make your cloud migration a success by translating high-level goals into conscious decisions with well-understood trade-offs.\n\n[Platform Strategy](https://www.platformstrategybook.info)\n\n Platforms can boost innovation through harmonization, but they aren't easy to build. Learn from over a decade of designing and rolling out IT platforms.", "znaku_textu": 6644, "slov": 589, "odkazu": 108, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/PollingConsumer.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 06:04:04", "sha256": "b984d2d43aec030f6c035d9abe848cd7cd7f7970c3b35a74fdbfbfd38d59f391", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://creativecommons.org/licenses/by/4.0/", "https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "https://www.architectelevator.com/book", "https://www.cloudstrategybook.com/", "https://www.platformstrategybook.info/"]} {"url": "https://www.enterpriseintegrationpatterns.com/Preface.html", "titulek": "Preface - Enterprise Integration Patterns", "h1": "", "popis": "This is a book about enterprise integration using messaging. It does not document any particular technology or product. Rather, it is designed for developers and integrators using a variety of messaging products and technologies, such as:", "klicova_slova": "Preface,integration, messaging, events, patterns, event-driven, coupling, eai, middleware, application integration, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns", "og:title": "Preface - Enterprise Integration Patterns", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/Preface.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/eip1_patterns_wide.png"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Who Should Read This Book"}, {"uroven": 2, "text": "What You Will Learn"}, {"uroven": 2, "text": "What This Book Does Not Cover"}, {"uroven": 2, "text": "How This Book Is Organized"}, {"uroven": 2, "text": "Acknowledgements"}, {"uroven": 2, "text": "About the Cover Picture"}, {"uroven": 2, "text": "Integration Pattern Language"}], "markdown": "| | Preface[Messaging Patterns](index.html) | [Contents](toc.html)[⇐ Prev](toc.html)[Next ⇒](Introduction.html) |\n| --- | --- | --- |\n\nThis is a book about enterprise integration using messaging. It does not document any particular technology or product. Rather, it is designed for developers and integrators using a variety of messaging products and technologies, such as:\n\n- Message-oriented middleware (MOM) and integration suites offered by vendors such as the IBM (WebSphere MQ Family), Microsoft (BizTalk), TIBCO, WebMethods, SeeBeyond, Vitria, and others\n- Java Message Service (JMS) implementations incorporated into commercial and open-source J2EE application servers as well as standalone products\n- Microsoft’s Message Queuing (MSMQ), accessible through several API’s, including the System.Messaging libraries in Microsoft .NET\n- Emerging Web services standards that support asynchronous Web services (for example, WS-ReliableMessaging) and the associated API’s such as Sun’s Java API for XML Messaging (JAXM) or Microsoft’s Web Services Extensions (WSE).\n\nEnterprise integration goes beyond creating a single application with a distributed n-tier architecture, which enables a single application to be distributed across several computers. Whereas one tier in a distributed application cannot run by itself, integrated applications are independent programs that can each run by itself, yet that function by coordinating with each other in a loosely coupled way. Messaging enables data or commands to be sent across the network using a “send and forget” approach where the caller sends the information and then goes on to other work while the information is transmitted by the messaging system. Optionally, the caller can later be notified of the result through a callback. Asynchronous calls and callbacks can make a design more complex than a synchronous approach, but an asynchronous call can be retried until it succeeds, which makes the communication much more reliable. Asynchronous messaging also enables several other advantages such as throttling of requests and load balancing.\n\n## Who Should Read This Book\n\nThis book is designed to help application developers and system integrators connect applications using message-oriented middleware products:\n\n- **Application architects and developers** who design and build complex enterprise applications that need to integrate with other applications. We assume that you’re developing your applications using a modern enterprise application platform such as the Java 2 Platform, Enterprise Edition (J2EE) or the Microsoft .NET framework. This book will help you connect the application to a messaging layer and exchange information with other applications. This book focuses on the integration of applications, not on building applications; for that, we refer you to *Patterns of Enterprise Application Architecture* by Martin Fowler.\n- **Integration architects and developers** who design and build integration solutions connecting packaged or custom applications. Most readers in this group will have experience with one of the many commercial integration tools like IBM WebSphere MQ, TIBCO, WebMethods, SeeBeyond, Vitria, etc. Many of these tools incorporate the patterns presented in this book. This book helps readers understand the underlying concepts and make confident design decisions using a vendor-independent vocabulary.\n- **Enterprise Architects** have to maintain the \"big picture\" view of the software and hardware assets in an enterprise. This book presents a consistent language to describe large-scale integration solutions that may span across many technologies or point solutions. This language is also a key enabler for efficient communication between the enterprise architect and the integration and application architects and developers.\n\n## What You Will Learn\n\nThis book does not attempt to make a business case for enterprise application integration; the focus is on how to make it work. Readers of this book will learn how to integrate enterprise applications by understanding:\n\n- The advantages and limitations of messaging as compared to other integration techniques\n- How to determine the message channels your applications will need, how to control whether multiple consumers can receive the same message, and how to handle invalid messages\n- When to send a message, what it should contain, and how to use special message properties\n- How to route a message to its ultimate destination even when the sender does not know where that is\n- How to convert messages when the sender and receiver do not agree on a common format\n- How to design the code that connects an application to the messaging system\n- How to manage and monitor a messaging system once it’s in use as part of the enterprise\n\nEven readers who are familiar with these practices will benefit from having them documented and being able to use them to facilitate communication with their colleagues.\n\n## What This Book Does Not Cover\n\nWe believe that any book sporting the word \"enterprise\" in the title is likely to fall into one of three categories. Either it attempts to cover the whole breadth of the subject matter and will be forced to stop short of detailed guidance on how to implement actual solutions. Or, the book will provide specific hands-on guidance on the development of actual solutions but is forced to constrain the scope of the subject area it addresses. Lastly, books that attempt to do both are likely to never get finished or are published so late as to be irrelevant. We opted for the second choice and hopefully created a book that helps people create better integration solutions even though we had to limit the scope of the book. Topics that we would have loved to discuss but had to exclude in order not to fall into the category three trap include security, complex data mapping, workflow, rule engines, scalability and robustness, and distributed transaction processing (XA, Tuxedo and the like). We chose asynchronous messaging as the emphasis for this book because it is full of interesting design issues and trade-offs and provides a clean abstraction from the many implementation provided by various integration vendors.\n\nThis book is also not a tutorial on a specific messaging or middleware technology. You will find examples based on a number of different technologies in this book, such as JMS, MSMQ, TIBCO, Microsoft BizTalk, XSL etc. We included these examples for illustrative purposes to show readers how the pattern could be translated into an actual implementation. If you are interested in learning more about any of these specific technologies, please refer to one of the books referenced in the bibliography or one of the many on-line resources.\n\n## How This Book Is Organized\n\nThe core of the book contains 65 patterns that form a pattern language. Books such as *Design Patterns*, *Pattern Oriented Software Architecture*, *Core J2EE Patterns*, and *Patterns of Enterprise Application Architecture* have popularized the notion of using patterns to document computer-programming techniques. The concept of patterns and pattern languages was originally applied to city and building architecture by Christopher Alexander in his seminal works *A Pattern Language* and *A Timeless Way of Building*. To help the reader design an integration solution, each pattern represents a decision that the reader must make, explains the considerations that affect the decision, and presents a well regarded solution to guide the decision. A pattern language is a web of related patterns where each pattern leads to others, guiding the reader through the decision making process. This approach is a powerful technique for documenting an expert’s knowledge so that it can be readily understood and applied by non-experts.\n\nA pattern language teaches the reader how to solve a limitless variety of problems within a bounded problem space. Because the overall problem that is being solved is different every time, the path through the patterns and how they’re applied is also unique. In this way, this book was written for anyone using any messaging or integration tools for any purpose, but can be applied specifically for you and the specific application of messaging that you are facing.\n\nPatterns describe commonly accepted solutions to recurring problems, so if you’re an experienced developer of message-oriented integration solutions, many of these patterns will seem familiar to you. Yet even if you already recognize most of these patterns, there is still value in reviewing this book. This book should validate your hard-earned understanding of how to use messaging. It gives you a consolidated reference to help you pass your knowledge effectively to less-experienced colleagues. It also documents details of the solutions and relationships between them that you may not have been aware of. Finally, the pattern names give you a common vocabulary to efficiently discuss integration design alternatives with your peers.\n\n## Acknowledgements\n\nLike most books, *Enterprise Integration Patterns* has been a long time in the making. The idea of writing about message-based integration patterns dates back to the summer of 2001 when Martin was working on *Patterns of Enterprise Application Architecture*. At that time, it struck Kyle that while *P of EAA* talked a lot about how to create applications, it touches only briefly on how to integrate them. This idea was the starting point for a series of meetings between Martin and Kyle that also included Rachel Reinitz and John Crupi. Bobby joined these discussions in the fall of 2001, followed by Gregor in early 2002. The following summer the group submitted two papers for review at the Pattern Languages of Programs (PLoP) conference, one authored jointly by Bobby and Kyle and the other by Gregor. After the conference, Kyle and Martin refocused on their own book projects while Gregor and Bobby merged their papers to form the basis for the book. At the same time, the [www.enterpriseintegrationpatterns.com](http://www.enterpriseintegrationpatterns.com) site went live to allow integration architects and developers around the world to participate in the rapid evolution of the content. As they worked on the book, Gregor and Bobby invited contributors to help round out the book’s content. About two years after Kyle's original idea, the final manuscript arrived at the publisher.\n\nThis book would not have been possible without the help from a long list of contributors. *Names here...*\n\n## About the Cover Picture\n\nThe common theme for books in the *Martin Fowler Signature Series* is a picture of a bridge. In some sense we lucked out, because what theme would make a better match for a book on integration? For Thousands of years, bridges have helped connect people from different shores, mountains or sides of the road.\n\nWe selected a picture of the Taiko-bashi Bridge at the Sumiyoshi-taisha Shrine in Osaka, Japan for its simple elegance and beauty. As a Shinto shrine dedicated to the guardian deity for sailors, it was originally erected next to the water. Interestingly, land reclamation has pushed the water away so that the shrine today stands almost three miles inland. Some 3 million people visit this shrine at the beginning of a new year.\n\n## Integration Pattern Language\n\n[Message Construct.](MessageConstructionIntro.html)\n\n[Message](Message.html)\n\n[Command Message](CommandMessage.html)\n\n[Document Message](DocumentMessage.html)\n\n[Event Message](EventMessage.html)\n\n[Request-Reply](RequestReply.html)\n\n[Return Address](ReturnAddress.html)\n\n[Correlation Identifier](CorrelationIdentifier.html)\n\n[Message Sequence](MessageSequence.html)\n\n[Message Expiration](MessageExpiration.html)\n\n[Format Indicator](FormatIndicator.html)\n\n[Message Routing](MessageRoutingIntro.html)\n\n[Pipes-and-Filters](PipesAndFilters.html)\n\n[Message Router](MessageRouter.html)\n\n[Content-based Router](ContentBasedRouter.html)\n\n[Message Filter](Filter.html)\n\n[Dynamic Router](DynamicRouter.html)\n\n[Recipient List](RecipientList.html)\n\n[Splitter](Sequencer.html)\n\n[Aggregator](Aggregator.html)\n\n[Resequencer](Resequencer.html)\n\n[Composed Msg. Processor](DistributionAggregate.html)\n\n[Scatter-Gather](BroadcastAggregate.html)\n\n[Routing Slip](RoutingTable.html)\n\n[Process Manager](ProcessManager.html)\n\n[Message Broker](MessageBroker.html)\n\n[Message\nTransformation](MessageTransformationIntro.html)\n\n[Message Translator](MessageTranslator.html)\n\n[Envelope Wrapper](EnvelopeWrapper.html)\n\n[Content Enricher](DataEnricher.html)\n\n[Content Filter](ContentFilter.html)\n\n[Claim Check](StoreInLibrary.html)\n\n[Normalizer](Normalizer.html)\n\n[Canonical Data Model](CanonicalDataModel.html)\n\n[Messaging Endpoints](MessagingEndpointsIntro.html)\n\n[Message Endpoint](MessageEndpoint.html)\n\n[Messaging Gateway](MessagingGateway.html)\n\n[Messaging Mapper](MessagingMapper.html)\n\n[Transactional Client](TransactionalClient.html)\n\n[Polling Consumer](PollingConsumer.html)\n\n[Event-driven Consumer](EventDrivenConsumer.html)\n\n[Competing Consumers](CompetingConsumers.html)\n\n[Message Dispatcher](MessageDispatcher.html)\n\n[Selective Consumer](MessageSelector.html)\n\n[Durable Subscriber](DurableSubscription.html)\n\n[Idempotent Receiver](IdempotentReceiver.html)\n\n[Service Activator](MessagingAdapter.html)\n\n[Messaging Channels](MessagingChannelsIntro.html)\n\n[Message Channel](MessageChannel.html)\n\n[Point-to-Point Channel](PointToPointChannel.html)\n\n[Publish-Subscr. Channel](PublishSubscribeChannel.html)\n\n[Datatype Channel](DatatypeChannel.html)\n\n[Invalid Message Channel](InvalidMessageChannel.html)\n\n[Dead Letter Channel](DeadLetterChannel.html)\n\n[Guaranteed Delivery](GuaranteedMessaging.html)\n\n[Channel Adapter](ChannelAdapter.html)\n\n[Messaging Bridge](MessagingBridge.html)\n\n[Message Bus](MessageBus.html)\n\n[Systems Mgmt.](SystemManagementIntro.html)\n\n[Control Bus](ControlBus.html)\n\n[Detour](Detour.html)\n\n[Wire Tap](WireTap.html)\n\n[Message History](MessageHistory.html)\n\n[Message Store](MessageStore.html)\n\n[Smart Proxy](SmartProxy.html)\n\n[Test Message](TestMessage.html)\n\n[Channel Purger](ChannelPurger.html)", "znaku_textu": 13957, "slov": 1887, "odkazu": 108, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/Preface.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 14:13:03", "sha256": "857cfd138de6e7cf9f307a38ee9d904624b3bc279bbdc42df6ec7237b8125d77", "hloubka": 3, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "https://www.architectelevator.com/book", "https://www.cloudstrategybook.com/", "https://www.platformstrategybook.info/"]} {"url": "https://www.enterpriseintegrationpatterns.com/ProcessManager.html", "titulek": "Process Manager - Enterprise Integration Patterns", "h1": "", "popis": "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?", "klicova_slova": "Process Manager,integration, messaging, events, patterns, event-driven, coupling, eai, middleware, application integration, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns", "og:title": "Process Manager - Enterprise Integration Patterns", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/ProcessManager.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/ProcessManager.gif"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Example: Serverless Loan Broker with AWS Step FunctionsNEW"}, {"uroven": 2, "text": "Example: Serverless Loan Broker with GCP WorkflowsNEW"}, {"uroven": 2, "text": "Integration Pattern Language"}], "markdown": "| | Process Manager[Messaging Patterns](index.html) » [Message Routing](MessageRoutingIntro.html) | [Contents](toc.html)[⇐ Prev](RoutingTable.html)[Next ⇒](MessageBroker.html) |\n| --- | --- | --- |\n\nThe [*Routing Slip*](RoutingTable.html) demonstrates how a message can be routed through a dynamic series of processing steps. The solution of the [*Routing Slip*](RoutingTable.html) is based on two key assumptions: the sequence of processing steps has to be determined up-front and the sequence is linear. In many cases, these assumptions may not be fulfilled. For example, routing decisions might have to be made based on intermediate results. Or, the processing steps may not be sequential, but multiple steps might be executed in parallel.\n\nHow 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?\n\nUse a central processing unit, a *Process Manager*, to maintain the state of the sequence and determine the next processing step based on intermediate results.\n\nFirst of all, let me clarify that the design and configuration of a *Process Manager* is a pretty extensive topic. We could probably fill a whole book (Volume 2, maybe?) with patterns related to the design of workflow or business process management. Therefore, this pattern is intended primarily to \"round off\" the topic of routing patterns and to provide a pointer into the direction of workflow and process modeling. By no means is it a comprehensive treatment of business process design.\n\nUsing a *Process Manager* results in a so-called hub-and-spoke pattern of message flow (see diagram). An incoming message initializes the *Process Manager*. We call this message the *trigger message*. Based on the rules inside the *Process Manager*, it sends a message (1) to the first processing step, implemented by Processing Unit A. After unit A completes its task it sends a reply message back to the *Process Manager*. Next, the *Process Manager* determines the next step to be executed and sends message (2) to the next processing unit. As a result, all message traffic runs through this central 'hub', hence the term hub-and-spoke. The downside of this central control element is the danger of turning the *Process Manager* into a performance bottleneck.\n\nThe versatility of a *Process Manager* is at the same time its biggest strength and weakness. A *Process Manager* can execute any sequence of steps, sequential or in parallel. Therefore, almost any integration problem can be solved with a *Process Manager*. Likewise, most of the patterns introduced in this chapter could be implemented using a *Process Manager*. In fact, many EAI vendors make you believe that every integration problem is a process problem. We think that using a *Process Manager* for every situation may be overkill. It can distract from the core design issue and also cause significant performance overhead.\n\n...\nRead the entire pattern in the book [Enterprise Integration Patterns](/books1.html)\n\n## Example: Serverless Loan Broker with AWS Step Functions[NEW](/ramblings/eip1_examples_updated.html)\n\nThe [implementation of the Loan Broker example with AWS serverless services](/ramblings/loanbroker_stepfunctions.html) employs [AWS Step Functions](https://aws.amazon.com/step-functions) as *Process Manager*. Step Functions orchestrates a series of tasks and maintains state across tasks in a JSON document, which covers the characteristics of a *Process Manager* quote well.\n\n## Example: Serverless Loan Broker with GCP Workflows[NEW](/ramblings/eip1_examples_updated.html)\n\nThe [implementation of the Loan Broker example with GCP](/ramblings/loanbroker_gcp_workflows.html) employs [GCP Workflows](https://cloud.google.com/blog/products/application-development/get-to-know-google-cloud-workflows) as *Process Manager*.\n\n**Related patterns:**\n\n[*Aggregator*](Aggregator.html), [*Asynchronous Implementation with MSMQ*](ComposedMessagingMSMQ.html), [*Asynchronous Implementation with TIBCO ActiveEnterprise*](ComposedMessagingTIBCO.html), [*Content-Based Router*](ContentBasedRouter.html), [*Correlation Identifier*](CorrelationIdentifier.html), [*Emerging Standards and Futures in Enterprise Integration*](Future.html), [*Message Channel*](MessageChannel.html), [*Message History*](MessageHistory.html), [*Message Store*](MessageStore.html), [*Message Translator*](MessageTranslator.html), [*Pipes and Filters*](PipesAndFilters.html), [*Publish-Subscribe Channel*](PublishSubscribeChannel.html), [*Routing Slip*](RoutingTable.html), [*Claim Check*](StoreInLibrary.html)\n\n---\n\n## Integration Pattern Language\n\n[Message Construct.](MessageConstructionIntro.html)\n\n[Message](Message.html)\n\n[Command Message](CommandMessage.html)\n\n[Document Message](DocumentMessage.html)\n\n[Event Message](EventMessage.html)\n\n[Request-Reply](RequestReply.html)\n\n[Return Address](ReturnAddress.html)\n\n[Correlation Identifier](CorrelationIdentifier.html)\n\n[Message Sequence](MessageSequence.html)\n\n[Message Expiration](MessageExpiration.html)\n\n[Format Indicator](FormatIndicator.html)\n\n[Message Routing](MessageRoutingIntro.html)\n\n[Pipes-and-Filters](PipesAndFilters.html)\n\n[Message Router](MessageRouter.html)\n\n[Content-based Router](ContentBasedRouter.html)\n\n[Message Filter](Filter.html)\n\n[Dynamic Router](DynamicRouter.html)\n\n[Recipient List](RecipientList.html)\n\n[Splitter](Sequencer.html)\n\n[Aggregator](Aggregator.html)\n\n[Resequencer](Resequencer.html)\n\n[Composed Msg. Processor](DistributionAggregate.html)\n\n[Scatter-Gather](BroadcastAggregate.html)\n\n[Routing Slip](RoutingTable.html)\n\n[Process Manager](ProcessManager.html)\n\n[Message Broker](MessageBroker.html)\n\n[Message\nTransformation](MessageTransformationIntro.html)\n\n[Message Translator](MessageTranslator.html)\n\n[Envelope Wrapper](EnvelopeWrapper.html)\n\n[Content Enricher](DataEnricher.html)\n\n[Content Filter](ContentFilter.html)\n\n[Claim Check](StoreInLibrary.html)\n\n[Normalizer](Normalizer.html)\n\n[Canonical Data Model](CanonicalDataModel.html)\n\n[Messaging Endpoints](MessagingEndpointsIntro.html)\n\n[Message Endpoint](MessageEndpoint.html)\n\n[Messaging Gateway](MessagingGateway.html)\n\n[Messaging Mapper](MessagingMapper.html)\n\n[Transactional Client](TransactionalClient.html)\n\n[Polling Consumer](PollingConsumer.html)\n\n[Event-driven Consumer](EventDrivenConsumer.html)\n\n[Competing Consumers](CompetingConsumers.html)\n\n[Message Dispatcher](MessageDispatcher.html)\n\n[Selective Consumer](MessageSelector.html)\n\n[Durable Subscriber](DurableSubscription.html)\n\n[Idempotent Receiver](IdempotentReceiver.html)\n\n[Service Activator](MessagingAdapter.html)\n\n[Messaging Channels](MessagingChannelsIntro.html)\n\n[Message Channel](MessageChannel.html)\n\n[Point-to-Point Channel](PointToPointChannel.html)\n\n[Publish-Subscr. Channel](PublishSubscribeChannel.html)\n\n[Datatype Channel](DatatypeChannel.html)\n\n[Invalid Message Channel](InvalidMessageChannel.html)\n\n[Dead Letter Channel](DeadLetterChannel.html)\n\n[Guaranteed Delivery](GuaranteedMessaging.html)\n\n[Channel Adapter](ChannelAdapter.html)\n\n[Messaging Bridge](MessagingBridge.html)\n\n[Message Bus](MessageBus.html)\n\n[Systems Mgmt.](SystemManagementIntro.html)\n\n[Control Bus](ControlBus.html)\n\n[Detour](Detour.html)\n\n[Wire Tap](WireTap.html)\n\n[Message History](MessageHistory.html)\n\n[Message Store](MessageStore.html)\n\n[Smart Proxy](SmartProxy.html)\n\n[Test Message](TestMessage.html)\n\n[Channel Purger](ChannelPurger.html)", "znaku_textu": 7287, "slov": 767, "odkazu": 113, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/ProcessManager.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 06:03:49", "sha256": "ac6e6180c5ee20833a84ff28fc856851828832cdbefd1fc3db2807007d4cbbd1", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://aws.amazon.com/step-functions", "https://cloud.google.com/blog/products/application-development/get-to-know-google-cloud-workflows", "http://creativecommons.org/licenses/by/4.0/", "https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "https://www.architectelevator.com/book", "https://www.cloudstrategybook.com/", "https://www.platformstrategybook.info/"]} {"url": "https://www.enterpriseintegrationpatterns.com/PublishSubscribeChannel.html", "titulek": "Publish-Subscribe Channel - Enterprise Integration Patterns", "h1": "", "popis": "How can the sender broadcast an event to all interested receivers?", "klicova_slova": "Publish-Subscribe Channel,integration, messaging, events, patterns, event-driven, coupling, eai, middleware, application integration, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns", "og:title": "Publish-Subscribe Channel - Enterprise Integration Patterns", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/PublishSubscribeChannel.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/PublishSubscribeSolution.gif"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Example: Google Cloud Pub/SubNEW"}, {"uroven": 2, "text": "Integration Pattern Language"}], "markdown": "| | Publish-Subscribe Channel[Messaging Patterns](index.html) » [Messaging Channels](MessagingChannelsIntro.html) | [Contents](toc.html)[⇐ Prev](PointToPointChannel.html)[Next ⇒](DatatypeChannel.html) |\n| --- | --- | --- |\n\nAn application is using [*Messaging*](Messaging.html) to announce events.\n\nHow can the sender broadcast an event to all interested receivers?\n\nSend the event on a *Publish-Subscribe Channel*, which delivers a copy of a particular event to each receiver.\n\nA *Publish-Subscribe Channel* works like this: It has one input channel that splits into multiple output channels, one for each subscriber. When an event is published into the channel, the *Publish-Subscribe Channel* delivers a copy of the message to each of the output channels. Each output channel has only one subscriber, which is only allowed to consume a message once. In this way, each subscriber only gets the message once and consumed copies disappear from their channels.\n\nA *Publish-Subscribe Channel* can be a useful debugging tool. Even though a message is destined to only a single receiver, using a *Publish-Subscribe Channel* allows you to eavesdrop on a message channel without disturbing the existing message flow. Monitoring all traffic on a channel can be tremendously helpful when debugging messaging applications. It can also save you from inserting a ton of print statements into each application that participates in the messaging solution. Creating a program that listens for messages on all active channels and logs them to a file can realize many of the same benefits that a [*Message Store*](MessageStore.html) brings.\n\n...\nRead the entire pattern in the book [Enterprise Integration Patterns](/books1.html)\n\n## Example: Google Cloud Pub/Sub[NEW](/ramblings/eip1_examples_updated.html)\n\n[Google Cloud Pub/Sub](https://cloud.google.com/pubsub/overview) offers both [*Competing Consumers*](CompetingConsumers.html) and *Publish-Subscribe Channel* semantics, managed through *topics* (Publish-Subcribe) and *subscriptions* (Competing Consumers) as illustrated in this diagram:\n\n*Google Cloud Pub-Sub Concept Overview*\n\nIn this example, both *Subscriber Y* and *Subscriber Z* each receive a copy of *Message 3* as they are subscribing to the same *Topic C*, but through separate subscriptions. Google Cloud Pub/Sub does not support wildcard subscriptions.\n\nGoogle provides client API libraries that make coding against the cloud service relatively simple. The client code has to authenticate first and create topics before messages can be published. Subscriptions are created on the fly.\n\nA stand-alone application can authenticate using private keys:\n\n```\nPubsub pubsub;\n \nvoid createClient(String private_key_file, String email) throws IOException, GeneralSecurityException {\n HttpTransport transport = GoogleNetHttpTransport.newTrustedTransport();\n GoogleCredential credential = new GoogleCredential.Builder()\n .setTransport(transport)\n .setJsonFactory(JSON_FACTORY)\n .setServiceAccountScopes(PubsubScopes.all())\n .setServiceAccountId(email)\n .setServiceAccountPrivateKeyFromP12File(new File(private_key_file))\n .build();\n pubsub = new Pubsub.Builder(transport, JSON_FACTORY, credential)\n .setApplicationName(\"eaipubsub\")\n .build();\n}\n```\n\nusing the PubSub instance, you can create a new topic if it doesn't already exist:\n\n```\nTopic createTopic(String topicName) throws IOException {\n String topic = getTopic(topicName); // adds project name and resource type\n Pubsub.Projects.Topics topics = pubsub.projects().topics();\n ListTopicsResponse list = topics.list(project).execute();\n if (list.getTopics() == null || !list.getTopics().contains(new Topic().setName(topic))) {\n return topics.create(topic, new Topic()).execute();\n } else {\n return new Topic().setName(topic);\n }\n}\n```\n\nNow the code is ready to publish a message to the topic, returning the published message IDs:\n\n```\nList publishMessage(String topicName, String data) throws IOException {\n List messages = Lists.newArrayList();\n messages.add(new PubsubMessage().encodeData(data.getBytes(\"UTF-8\")));\n PublishRequest publishRequest = new PublishRequest().setMessages(messages);\n PublishResponse publishResponse = pubsub.projects().topics()\n .publish(getTopic(topicName), publishRequest)\n .execute();\n return publishResponse.getMessageIds();\n}\n```\n\nSubscriptions are identified by a name and a topic so multiple subscribers can compete for messages off the same subscription or create individual subscriptions for the same topic. If a subscription already exists, the underlying REST API throws an exception, which we can simply ignore.\n\n```\nSubscription subscribeTopic(String subscriptionName, String topicName) throws IOException {\n String sub = getSubscription(subscriptionName); // adds project name and resource type\n Subscription subscription = new Subscription()\n .setName(sub)\n .setAckDeadlineSeconds(15)\n .setTopic(getTopic(topicName));\n try {\n return pubsub.projects().subscriptions().create(sub, subscription).execute();\n } catch (GoogleJsonResponseException e) {\n if (e.getStatusCode() == HttpURLConnection.HTTP_CONFLICT) {\n return subscription;\n } else {\n throw e;\n }\n }\n}\n```\n\nNow everything is in place to pull messages off the subscription. The code is a bit verbose because it has to navigate collections that allow receiving multiple messages at once. It also has to convert the payload back into a *String* for this simple demo implementation:\n\n```\nList pullMessage(Subscription subscription, int maxMessages, boolean doAck) throws IOException {\n PullRequest pullRequest = new PullRequest()\n .setReturnImmediately(true)\n .setMaxMessages(maxMessages);\n PullResponse response = pubsub.projects().subscriptions().pull(subscription.getName(), pullRequest).execute();\n List messages = response.getReceivedMessages();\n List ackIds = Lists.newArrayList();\n List data = Lists.newArrayList();\n if (messages != null) {\n for (ReceivedMessage receivedMessage : messages) {\n PubsubMessage message = receivedMessage.getMessage();\n if (message != null) {\n byte[] bytes = message.decodeData();\n if (bytes != null) {\n data.add(new String(bytes, \"UTF-8\"));\n }\n }\n ackIds.add(receivedMessage.getAckId());\n }\n if (doAck) {\n AcknowledgeRequest ackRequest = new AcknowledgeRequest().setAckIds(ackIds);\n pubsub.projects().subscriptions().acknowledge(subscription.getName(), ackRequest).execute();\n }\n }\n return data;\n}\n```\n\nFind the source for this code snippet on [Github](https://github.com/spac3lord/eip/tree/master/GoogleCloudPubSub).\n\n**Related patterns:**\n\n[*Competing Consumers*](CompetingConsumers.html), [*Durable Subscriber*](DurableSubscription.html), [*Event Message*](EventMessage.html), [*Message*](Message.html), [*Message Channel*](MessageChannel.html), [*Message Store*](MessageStore.html), [*Messaging*](Messaging.html), [*JMS Publish/Subscribe Example*](ObserverJmsExample.html), [*Point-to-Point Channel*](PointToPointChannel.html), [*Request-Reply*](RequestReply.html)\n\n**Further reading:**\n\n- [Free Gift with Subscription (Pattern)](/ramblings/83_subscribing.html)\n- [Pub-Sub and Related Topics](/ramblings/17_acmconference.html)\n\n---\n\n## Integration Pattern Language\n\n[Message Construct.](MessageConstructionIntro.html)\n\n[Message](Message.html)\n\n[Command Message](CommandMessage.html)\n\n[Document Message](DocumentMessage.html)\n\n[Event Message](EventMessage.html)\n\n[Request-Reply](RequestReply.html)\n\n[Return Address](ReturnAddress.html)\n\n[Correlation Identifier](CorrelationIdentifier.html)\n\n[Message Sequence](MessageSequence.html)\n\n[Message Expiration](MessageExpiration.html)\n\n[Format Indicator](FormatIndicator.html)\n\n[Message Routing](MessageRoutingIntro.html)\n\n[Pipes-and-Filters](PipesAndFilters.html)\n\n[Message Router](MessageRouter.html)\n\n[Content-based Router](ContentBasedRouter.html)\n\n[Message Filter](Filter.html)\n\n[Dynamic Router](DynamicRouter.html)\n\n[Recipient List](RecipientList.html)\n\n[Splitter](Sequencer.html)\n\n[Aggregator](Aggregator.html)\n\n[Resequencer](Resequencer.html)\n\n[Composed Msg. Processor](DistributionAggregate.html)\n\n[Scatter-Gather](BroadcastAggregate.html)\n\n[Routing Slip](RoutingTable.html)\n\n[Process Manager](ProcessManager.html)\n\n[Message Broker](MessageBroker.html)\n\n[Message\nTransformation](MessageTransformationIntro.html)\n\n[Message Translator](MessageTranslator.html)\n\n[Envelope Wrapper](EnvelopeWrapper.html)\n\n[Content Enricher](DataEnricher.html)\n\n[Content Filter](ContentFilter.html)\n\n[Claim Check](StoreInLibrary.html)\n\n[Normalizer](Normalizer.html)\n\n[Canonical Data Model](CanonicalDataModel.html)\n\n[Messaging Endpoints](MessagingEndpointsIntro.html)\n\n[Message Endpoint](MessageEndpoint.html)\n\n[Messaging Gateway](MessagingGateway.html)\n\n[Messaging Mapper](MessagingMapper.html)\n\n[Transactional Client](TransactionalClient.html)\n\n[Polling Consumer](PollingConsumer.html)\n\n[Event-driven Consumer](EventDrivenConsumer.html)\n\n[Competing Consumers](CompetingConsumers.html)\n\n[Message Dispatcher](MessageDispatcher.html)\n\n[Selective Consumer](MessageSelector.html)\n\n[Durable Subscriber](DurableSubscription.html)\n\n[Idempotent Receiver](IdempotentReceiver.html)\n\n[Service Activator](MessagingAdapter.html)\n\n[Messaging Channels](MessagingChannelsIntro.html)\n\n[Message Channel](MessageChannel.html)\n\n[Point-to-Point Channel](PointToPointChannel.html)\n\n[Publish-Subscr. Channel](PublishSubscribeChannel.html)\n\n[Datatype Channel](DatatypeChannel.html)\n\n[Invalid Message Channel](InvalidMessageChannel.html)\n\n[Dead Letter Channel](DeadLetterChannel.html)\n\n[Guaranteed Delivery](GuaranteedMessaging.html)\n\n[Channel Adapter](ChannelAdapter.html)\n\n[Messaging Bridge](MessagingBridge.html)\n\n[Message Bus](MessageBus.html)\n\n[Systems Mgmt.](SystemManagementIntro.html)\n\n[Control Bus](ControlBus.html)\n\n[Detour](Detour.html)\n\n[Wire Tap](WireTap.html)\n\n[Message History](MessageHistory.html)\n\n[Message Store](MessageStore.html)\n\n[Smart Proxy](SmartProxy.html)\n\n[Test Message](TestMessage.html)\n\n[Channel Purger](ChannelPurger.html)", "znaku_textu": 9823, "slov": 943, "odkazu": 113, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/PublishSubscribeChannel.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 06:04:15", "sha256": "ecc6aeec40253b2dba2f326af9fce678bb110a0d26902339f2184db7129196b4", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://cloud.google.com/pubsub/overview", "https://github.com/spac3lord/eip/tree/master/GoogleCloudPubSub", "http://creativecommons.org/licenses/by/4.0/", "https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "https://www.architectelevator.com/book", "https://www.cloudstrategybook.com/", "https://www.platformstrategybook.info/"]} {"url": "https://www.enterpriseintegrationpatterns.com/RecipientList.html", "titulek": "Recipient List - Enterprise Integration Patterns", "h1": "", "popis": "How do we route a message to a list of dynamically specified recipients?", "klicova_slova": "Recipient List,integration, messaging, events, patterns, event-driven, coupling, eai, middleware, application integration, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns", "og:title": "Recipient List - Enterprise Integration Patterns", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/RecipientList.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/RecipientList.gif"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Integration Pattern Language"}], "markdown": "| | Recipient List[Messaging Patterns](index.html) » [Message Routing](MessageRoutingIntro.html) | [Contents](toc.html)[⇐ Prev](DynamicRouter.html)[Next ⇒](Sequencer.html) |\n| --- | --- | --- |\n\nA [*Content-Based Router*](ContentBasedRouter.html) allows us to route a message to the correct system based on message content. This process is transparent to the original sender in the sense that the originator simply sends the message to a channel, where the router picks it up and takes care of everything.\n\nIn some cases, though, we may want to specify one or more recipients for the message. A common analogy are the recipient lists implemented in most e-mail systems. For each e-mail message, the sender can specify a list of recipients. The mail system then ensures transport of the message content to each recipient. An example from the domain of enterprise integration would be a situation where a function can be performed by one or more providers. For example, we may have a contract with multiple credit agencies to assess the credit worthiness of our customers. When a small order comes in we may simply route the credit request message to one credit agency. If a customer places a large order, we may want to route the credit request message to multiple agencies and compare the results before making a decision. In this case, the list of recipients depends on the dollar value of the order.\n\nIn another situation, we may want to route an order message to a select list of suppliers to obtain a quote for the requested item. Rather than sending the request to all vendors, we may want to control which vendors receive the request, possibly based on user preferences\n\nHow do we route a message to a list of dynamically specified recipients?\n\nDefine a channel for each recipient. Then use a *Recipient List* to inspect an incoming message, determine the list of desired recipients, and forward the message to all channels associated with the recipients in the list.\n\nThe logic embedded in a *Recipient List* can be pictured as two separate parts even though the implementation is often coupled together. The first part computes a list of recipients. The second part simply traverses the list and sends a copy of the received message to each recipient. Just like a [*Content-Based Router*](ContentBasedRouter.html), the *Recipient List* usually does not modify the message contents.\n\n...\nRead the entire pattern in the book [Enterprise Integration Patterns](/books1.html)\n\n**Related patterns:**\n\n[*Aggregator*](Aggregator.html), [*Scatter-Gather*](BroadcastAggregate.html), [*Introduction to Composed Messaging Examples*](ComposedMessagingExample.html), [*Content-Based Router*](ContentBasedRouter.html), [*Dynamic Router*](DynamicRouter.html), [*Message Filter*](Filter.html), [*Idempotent Receiver*](IdempotentReceiver.html), [*Message Router*](MessageRouter.html), [*Selective Consumer*](MessageSelector.html), [*Point-to-Point Channel*](PointToPointChannel.html), [*Publish-Subscribe Channel*](PublishSubscribeChannel.html)\n\n---\n\n## Integration Pattern Language\n\n[Message Construct.](MessageConstructionIntro.html)\n\n[Message](Message.html)\n\n[Command Message](CommandMessage.html)\n\n[Document Message](DocumentMessage.html)\n\n[Event Message](EventMessage.html)\n\n[Request-Reply](RequestReply.html)\n\n[Return Address](ReturnAddress.html)\n\n[Correlation Identifier](CorrelationIdentifier.html)\n\n[Message Sequence](MessageSequence.html)\n\n[Message Expiration](MessageExpiration.html)\n\n[Format Indicator](FormatIndicator.html)\n\n[Message Routing](MessageRoutingIntro.html)\n\n[Pipes-and-Filters](PipesAndFilters.html)\n\n[Message Router](MessageRouter.html)\n\n[Content-based Router](ContentBasedRouter.html)\n\n[Message Filter](Filter.html)\n\n[Dynamic Router](DynamicRouter.html)\n\n[Recipient List](RecipientList.html)\n\n[Splitter](Sequencer.html)\n\n[Aggregator](Aggregator.html)\n\n[Resequencer](Resequencer.html)\n\n[Composed Msg. Processor](DistributionAggregate.html)\n\n[Scatter-Gather](BroadcastAggregate.html)\n\n[Routing Slip](RoutingTable.html)\n\n[Process Manager](ProcessManager.html)\n\n[Message Broker](MessageBroker.html)\n\n[Message\nTransformation](MessageTransformationIntro.html)\n\n[Message Translator](MessageTranslator.html)\n\n[Envelope Wrapper](EnvelopeWrapper.html)\n\n[Content Enricher](DataEnricher.html)\n\n[Content Filter](ContentFilter.html)\n\n[Claim Check](StoreInLibrary.html)\n\n[Normalizer](Normalizer.html)\n\n[Canonical Data Model](CanonicalDataModel.html)\n\n[Messaging Endpoints](MessagingEndpointsIntro.html)\n\n[Message Endpoint](MessageEndpoint.html)\n\n[Messaging Gateway](MessagingGateway.html)\n\n[Messaging Mapper](MessagingMapper.html)\n\n[Transactional Client](TransactionalClient.html)\n\n[Polling Consumer](PollingConsumer.html)\n\n[Event-driven Consumer](EventDrivenConsumer.html)\n\n[Competing Consumers](CompetingConsumers.html)\n\n[Message Dispatcher](MessageDispatcher.html)\n\n[Selective Consumer](MessageSelector.html)\n\n[Durable Subscriber](DurableSubscription.html)\n\n[Idempotent Receiver](IdempotentReceiver.html)\n\n[Service Activator](MessagingAdapter.html)\n\n[Messaging Channels](MessagingChannelsIntro.html)\n\n[Message Channel](MessageChannel.html)\n\n[Point-to-Point Channel](PointToPointChannel.html)\n\n[Publish-Subscr. Channel](PublishSubscribeChannel.html)\n\n[Datatype Channel](DatatypeChannel.html)\n\n[Invalid Message Channel](InvalidMessageChannel.html)\n\n[Dead Letter Channel](DeadLetterChannel.html)\n\n[Guaranteed Delivery](GuaranteedMessaging.html)\n\n[Channel Adapter](ChannelAdapter.html)\n\n[Messaging Bridge](MessagingBridge.html)\n\n[Message Bus](MessageBus.html)\n\n[Systems Mgmt.](SystemManagementIntro.html)\n\n[Control Bus](ControlBus.html)\n\n[Detour](Detour.html)\n\n[Wire Tap](WireTap.html)\n\n[Message History](MessageHistory.html)\n\n[Message Store](MessageStore.html)\n\n[Smart Proxy](SmartProxy.html)\n\n[Test Message](TestMessage.html)\n\n[Channel Purger](ChannelPurger.html)", "znaku_textu": 5751, "slov": 585, "odkazu": 108, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/RecipientList.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 06:03:42", "sha256": "42c235550196a7d27adb2b0a36e15e83c330ab5d225478bb229c34eb6e869ece", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://creativecommons.org/licenses/by/4.0/", "https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "https://www.architectelevator.com/book", "https://www.cloudstrategybook.com/", "https://www.platformstrategybook.info/"]} {"url": "https://www.enterpriseintegrationpatterns.com/RequestReply.html", "titulek": "Request-Reply - Enterprise Integration Patterns", "h1": "", "popis": "When an application sends a message, how can it get a response from the receiver?", "klicova_slova": "Request-Reply,integration, messaging, events, patterns, event-driven, coupling, eai, middleware, application integration, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns", "og:title": "Request-Reply - Enterprise Integration Patterns", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/RequestReply.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/RequestReply.gif"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Integration Pattern Language"}], "markdown": "| | Request-Reply[Messaging Patterns](index.html) » [Message Construction](MessageConstructionIntro.html) | [Contents](toc.html)[⇐ Prev](EventMessage.html)[Next ⇒](ReturnAddress.html) |\n| --- | --- | --- |\n\nWhen two applications communicate via [*Messaging*](Messaging.html), the communication is one-way. The applications may want a two-way conversation.\n\nWhen an application sends a message, how can it get a response from the receiver?\n\nSend a pair of *Request-Reply* messages, each on its own channel.\n\n*Request-Reply* has two participants:\n\n1. **Requestor** – Sends a request message and waits for a reply message.\n2. **Replier** – Receives the request message and responds with a reply message.\n\nThe request channel can be a [*Point-to-Point Channel*](PointToPointChannel.html) or a [*Publish-Subscribe Channel*](PublishSubscribeChannel.html). The difference is whether the request should be broadcast to all interested parties or should only be processed by a single consumer. The reply channel, on the other hand, is almost always point-to-point, because it usually makes no sense to broadcast replies–they should only be returned to the requestor.\n\nWhen a caller performs a [*Remote Procedure Invocation*](EncapsulatedSynchronousIntegration.html), the caller's thread must block while it waits for the response. With *Request-Reply*, the requestor has two approaches for receiving the reply:\n\n1. **Synchronous Block** – A single thread in the caller sends the request message, blocks (as a [*Polling Consumer*](PollingConsumer.html) ) to wait for the reply message, then processes the reply. This is simple to implement, but if the requestor crashes, it will have difficulty re-establishing the blocked thread. The request thread awaiting the response implies that there is only one outstanding request, or that the reply channel for this request is private for this thread.\n2. **Asynchronous Callback** – One thread in the caller sends the request message and sets up a callback for the reply. A separate thread listens for reply messages. When a reply message arrives, the reply thread invokes the appropriate callback, which re-establishes the caller's context and processes the reply. This approach enables multiple outstanding requests to share a single reply channel, and a single reply thread to process replies for multiple request threads. If the requestor crashes, it can recover by simply restarting the reply thread. An added complexity, however, is the callback mechanism that must re-establish the caller's context.\n\n...\nRead the entire pattern in the book [Enterprise Integration Patterns](/books1.html)\n\n**Related patterns:**\n\n[*Command Message*](CommandMessage.html), [*Correlation Identifier*](CorrelationIdentifier.html), [*Document Message*](DocumentMessage.html), [*Remote Procedure Invocation*](EncapsulatedSynchronousIntegration.html), [*Event Message*](EventMessage.html), [*Guaranteed Delivery*](GuaranteedMessaging.html), [*Message*](Message.html), [*Message Channel*](MessageChannel.html), [*Message Sequence*](MessageSequence.html), [*Messaging*](Messaging.html), [*Point-to-Point Channel*](PointToPointChannel.html), [*Polling Consumer*](PollingConsumer.html), [*Publish-Subscribe Channel*](PublishSubscribeChannel.html), [*Return Address*](ReturnAddress.html)\n\n**Further reading:**\n\n- [Will the real asynchrony please stand up?](/ramblings/28_asynchrony.html)\n- [Can You Say \"Synchronous Asymmetry or Asynchronous Symmetry\"?](/ramblings/26_symmetry.html)\n- [Correlation and Conversations](/ramblings/09_correlation.html)\n\n---\n\n## Integration Pattern Language\n\n[Message Construct.](MessageConstructionIntro.html)\n\n[Message](Message.html)\n\n[Command Message](CommandMessage.html)\n\n[Document Message](DocumentMessage.html)\n\n[Event Message](EventMessage.html)\n\n[Request-Reply](RequestReply.html)\n\n[Return Address](ReturnAddress.html)\n\n[Correlation Identifier](CorrelationIdentifier.html)\n\n[Message Sequence](MessageSequence.html)\n\n[Message Expiration](MessageExpiration.html)\n\n[Format Indicator](FormatIndicator.html)\n\n[Message Routing](MessageRoutingIntro.html)\n\n[Pipes-and-Filters](PipesAndFilters.html)\n\n[Message Router](MessageRouter.html)\n\n[Content-based Router](ContentBasedRouter.html)\n\n[Message Filter](Filter.html)\n\n[Dynamic Router](DynamicRouter.html)\n\n[Recipient List](RecipientList.html)\n\n[Splitter](Sequencer.html)\n\n[Aggregator](Aggregator.html)\n\n[Resequencer](Resequencer.html)\n\n[Composed Msg. Processor](DistributionAggregate.html)\n\n[Scatter-Gather](BroadcastAggregate.html)\n\n[Routing Slip](RoutingTable.html)\n\n[Process Manager](ProcessManager.html)\n\n[Message Broker](MessageBroker.html)\n\n[Message\nTransformation](MessageTransformationIntro.html)\n\n[Message Translator](MessageTranslator.html)\n\n[Envelope Wrapper](EnvelopeWrapper.html)\n\n[Content Enricher](DataEnricher.html)\n\n[Content Filter](ContentFilter.html)\n\n[Claim Check](StoreInLibrary.html)\n\n[Normalizer](Normalizer.html)\n\n[Canonical Data Model](CanonicalDataModel.html)\n\n[Messaging Endpoints](MessagingEndpointsIntro.html)\n\n[Message Endpoint](MessageEndpoint.html)\n\n[Messaging Gateway](MessagingGateway.html)\n\n[Messaging Mapper](MessagingMapper.html)\n\n[Transactional Client](TransactionalClient.html)\n\n[Polling Consumer](PollingConsumer.html)\n\n[Event-driven Consumer](EventDrivenConsumer.html)\n\n[Competing Consumers](CompetingConsumers.html)\n\n[Message Dispatcher](MessageDispatcher.html)\n\n[Selective Consumer](MessageSelector.html)\n\n[Durable Subscriber](DurableSubscription.html)\n\n[Idempotent Receiver](IdempotentReceiver.html)\n\n[Service Activator](MessagingAdapter.html)\n\n[Messaging Channels](MessagingChannelsIntro.html)\n\n[Message Channel](MessageChannel.html)\n\n[Point-to-Point Channel](PointToPointChannel.html)\n\n[Publish-Subscr. Channel](PublishSubscribeChannel.html)\n\n[Datatype Channel](DatatypeChannel.html)\n\n[Invalid Message Channel](InvalidMessageChannel.html)\n\n[Dead Letter Channel](DeadLetterChannel.html)\n\n[Guaranteed Delivery](GuaranteedMessaging.html)\n\n[Channel Adapter](ChannelAdapter.html)\n\n[Messaging Bridge](MessagingBridge.html)\n\n[Message Bus](MessageBus.html)\n\n[Systems Mgmt.](SystemManagementIntro.html)\n\n[Control Bus](ControlBus.html)\n\n[Detour](Detour.html)\n\n[Wire Tap](WireTap.html)\n\n[Message History](MessageHistory.html)\n\n[Message Store](MessageStore.html)\n\n[Smart Proxy](SmartProxy.html)\n\n[Test Message](TestMessage.html)\n\n[Channel Purger](ChannelPurger.html)", "znaku_textu": 6253, "slov": 604, "odkazu": 111, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/RequestReply.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 06:03:31", "sha256": "6d79d9ec15c68a7547682feb84c4adaea407795c64a69c98b6fed273eb2cea5f", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://creativecommons.org/licenses/by/4.0/", "https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "https://www.architectelevator.com/book", "https://www.cloudstrategybook.com/", "https://www.platformstrategybook.info/"]} {"url": "https://www.enterpriseintegrationpatterns.com/RequestReplyJmsExample.html", "titulek": "JMS Request/Reply Example - Enterprise Integration Patterns", "h1": "", "popis": "This is a simple example of how to use messaging, implemented in JMS [JMS]. It shows how to implement Request-Reply, where a requestor application sends a request, a replier application receives the request and returns a reply, and the requestor receives the reply. It also shows how an invalid message will be rerouted to a special channel.", "klicova_slova": "JMS Request/Reply Example,integration, messaging, events, patterns, event-driven, coupling, eai, middleware, application integration, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns", "og:title": "JMS Request/Reply Example - Enterprise Integration Patterns", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/RequestReplyJmsExample.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/eip1_patterns_wide.png"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Request/Reply Example"}, {"uroven": 2, "text": "Request/Reply Code"}, {"uroven": 2, "text": "Invalid Message Example"}, {"uroven": 2, "text": "Conclusions"}, {"uroven": 2, "text": "Integration Pattern Language"}], "markdown": "| | JMS Request/Reply Example[Messaging Patterns](index.html) » [Interlude: Simple Messaging](SimpleMessagingIntro.html) | [Contents](toc.html)[⇐ Prev](SimpleMessagingIntro.html)[Next ⇒](RequestReplyNetExample.html) |\n| --- | --- | --- |\n\nThis is a simple example of how to use messaging, implemented in JMS [[JMS](http://java.sun.com/products/jms/)]. It shows how to implement [*Request-Reply*](RequestReply.html), where a requestor application sends a request, a replier application receives the request and returns a reply, and the requestor receives the reply. It also shows how an invalid message will be rerouted to a special channel.\n\n*Components of the Request/Reply Example*\n\nThis example was developed using JMS 1.1 and run using the J2EE 1.4 reference implementation.\n\n## Request/Reply Example\n\nThis example consists of two main classes:\n\n1. **Requestor** — A [*Message Endpoint*](MessageEndpoint.html) that sends a request message and waits to receive a reply message as a response.\n2. **Replier** — A [*Message Endpoint*](MessageEndpoint.html) that waits to receive the request message; when it does, it responds by sending the reply message.\n\nThe Requestor and the Replier will each run in a separate Java virtual machine (JVM), which is what makes the communication distributed.\n\nThis example assumes that the messaging system has these three queues defined:\n\n1. **jms/RequestQueue** — The Queue the Requestor uses to send the request message to the Replier.\n2. **jms/ReplyQueue** — The Queue the Replier uses to send the reply message to the Requestor.\n3. **jms/InvalidMessages** — The Queue that the Requestor and Replier move a message to when they receive a message that they cannot interpret.\n\nHere's how the example works. When the Requestor is started in a command-line window, it starts and prints output like this:\n\n```\nSent request\n Time: 1048261736520 ms\n Message ID: ID:_XYZ123_1048261766139_6.2.1.1\n Correl. ID: null\n Reply to: com.sun.jms.Queue: jms/ReplyQueue\n Contents: Hello world.\n```\n\nWhat this shows is that the Requestor has sent a request message. Notice that this works even though the Replier isn't even running and therefore cannot receive the request.\n\nWhen the Replier is started in another command-line window, it starts and prints output like this:\n\n```\nReceived request\n Time: 1048261766790 ms\n Message ID: ID:_XYZ123_1048261766139_6.2.1.1\n Correl. ID: null\n Reply to: com.sun.jms.Queue: jms/ReplyQueue\n Contents: Hello world.\nSent reply\n Time: 1048261766850 ms\n Message ID: ID:_XYZ123_1048261758148_5.2.1.1\n Correl. ID: ID:_XYZ123_1048261766139_6.2.1.1\n Reply to: null\n Contents: Hello world.\n```\n\nThis shows that the Replier received the request message and sent a reply message.\n\nThere are several items in this output that are interesting to notice. First, notice the request send and received timestamps; the request was received after it was sent (30270 ms later). Second, notice that the message ID is the same in both cases, because it's the same message. Third, notice that the contents, \"Hello world,\" are the same, which is very good because this is the data being transmitted and it has got to be the same on both sides. (The request in this example is pretty lame. It is basically a [*Document Message*](DocumentMessage.html); a real request would usually be a [*Command Message*](CommandMessage.html).) Forth, the queue named \"jms/ReplyQueue\" has been specified in the request message as the destination for the reply message (an example of the [*Return Address*](ReturnAddress.html) pattern).\n\nNext, let's compare the output from receiving the request to that for sending the reply. First, notice the reply was not sent until after the request was received (60 ms after). Second, the message ID for the reply is different from that for the request; this is because the request and reply messages are different, separate messages. Third, the contents of the request have been extracted and added to the reply. Forth, the reply-to destination is unspecified because no reply is expected (the reply does not use the [*Return Address*](ReturnAddress.html) pattern). Fifth, the reply's correlation ID is the same as the request's message ID (the reply does use the [*Correlation Identifier*](CorrelationIdentifier.html) pattern).\n\nFinally, back in the first window, the requester received the reply:\n\n```\nReceived reply\n Time: 1048261797060 ms\n Message ID: ID:_XYZ123_1048261758148_5.2.1.1\n Correl. ID: ID:_XYZ123_1048261766139_6.2.1.1\n Reply to: null\n Contents: Hello world.\n```\n\nThis output contains several items of interest. The reply was received after it was sent (30210 ms). The message ID of the reply was the same when it was received as it was when it was sent, which proves that it is indeed the same message. The message contents received are the same as those sent. And the correlation ID tells the requestor which request this reply is for (the [*Correlation Identifier*](CorrelationIdentifier.html) pattern).\n\nNotice too that the requestor is designed to simply send a request, receive a reply, and exit. So having received the reply, the requestor is no longer running. The replier, on the other hand, doesn't know when it might receive a request, so it never stops running. To stop it, we go to its command shell window and press the return key, which causes the replier program to exit.\n\nSo this is the request/reply example. A request was prepared and sent by the requestor. The replier received the request and sent a reply. Then the requestor received the reply to its original request.\n\n## Request/Reply Code\n\nFirst, let's take a look at how the Requestor is implemented:\n\n```\nimport javax.jms.Connection;\nimport javax.jms.Destination;\nimport javax.jms.JMSException;\nimport javax.jms.Message;\nimport javax.jms.MessageConsumer;\nimport javax.jms.MessageProducer;\nimport javax.jms.Session;\nimport javax.jms.TextMessage;\nimport javax.naming.NamingException;\n\npublic class Requestor {\n\n\tprivate Session session;\n\tprivate Destination replyQueue;\n\tprivate MessageProducer requestProducer;\n\tprivate MessageConsumer replyConsumer;\n\tprivate MessageProducer invalidProducer;\n\n\tprotected Requestor() {\n\t\tsuper();\n\t}\n\n\tpublic static Requestor newRequestor(Connection connection, String requestQueueName,\n\t\tString replyQueueName, String invalidQueueName)\n\t\tthrows JMSException, NamingException {\n\t\t\t\n\t\tRequestor requestor = new Requestor();\n\t\trequestor.initialize(connection, requestQueueName, replyQueueName, invalidQueueName);\n\t\treturn requestor;\n\t}\n\n\tprotected void initialize(Connection connection, String requestQueueName,\n\t\tString replyQueueName, String invalidQueueName)\n\t\tthrows NamingException, JMSException {\n\t\t\t\n\t\tsession = connection.createSession(false, Session.AUTO_ACKNOWLEDGE);\n\t\t\n\t\tDestination requestQueue = JndiUtil.getDestination(requestQueueName);\n\t\treplyQueue = JndiUtil.getDestination(replyQueueName);\n\t\tDestination invalidQueue = JndiUtil.getDestination(invalidQueueName);\n\t\t\n\t\trequestProducer = session.createProducer(requestQueue);\n\t\treplyConsumer = session.createConsumer(replyQueue);\n\t\tinvalidProducer = session.createProducer(invalidQueue);\n\t}\n\n\tpublic void send() throws JMSException {\n\t\tTextMessage requestMessage = session.createTextMessage();\n\t\trequestMessage.setText(\"Hello world.\");\n\t\trequestMessage.setJMSReplyTo(replyQueue);\n\t\trequestProducer.send(requestMessage);\n\t\tSystem.out.println(\"Sent request\");\n\t\tSystem.out.println(\"\\tTime: \" + System.currentTimeMillis() + \" ms\");\n\t\tSystem.out.println(\"\\tMessage ID: \" + requestMessage.getJMSMessageID());\n\t\tSystem.out.println(\"\\tCorrel. ID: \" + requestMessage.getJMSCorrelationID());\n\t\tSystem.out.println(\"\\tReply to: \" + requestMessage.getJMSReplyTo());\n\t\tSystem.out.println(\"\\tContents: \" + requestMessage.getText());\n\t}\n\n\tpublic void receiveSync() throws JMSException {\n\t\tMessage msg = replyConsumer.receive();\n\t\tif (msg instanceof TextMessage) {\n\t\t\tTextMessage replyMessage = (TextMessage) msg;\n\t\t\tSystem.out.println(\"Received reply \");\n\t\t\tSystem.out.println(\"\\tTime: \" + System.currentTimeMillis() + \" ms\");\n\t\t\tSystem.out.println(\"\\tMessage ID: \" + replyMessage.getJMSMessageID());\n\t\t\tSystem.out.println(\"\\tCorrel. ID: \" + replyMessage.getJMSCorrelationID());\n\t\t\tSystem.out.println(\"\\tReply to: \" + replyMessage.getJMSReplyTo());\n\t\t\tSystem.out.println(\"\\tContents: \" + replyMessage.getText());\n\t\t} else {\n\t\t\tSystem.out.println(\"Invalid message detected\");\n\t\t\tSystem.out.println(\"\\tType: \" + msg.getClass().getName());\n\t\t\tSystem.out.println(\"\\tTime: \" + System.currentTimeMillis() + \" ms\");\n\t\t\tSystem.out.println(\"\\tMessage ID: \" + msg.getJMSMessageID());\n\t\t\tSystem.out.println(\"\\tCorrel. ID: \" + msg.getJMSCorrelationID());\n\t\t\tSystem.out.println(\"\\tReply to: \" + msg.getJMSReplyTo());\n\n\t\t\tmsg.setJMSCorrelationID(msg.getJMSMessageID());\n\t\t\tinvalidProducer.send(msg);\n\n\t\t\tSystem.out.println(\"Sent to invalid message queue\");\n\t\t\tSystem.out.println(\"\\tType: \" + msg.getClass().getName());\n\t\t\tSystem.out.println(\"\\tTime: \" + System.currentTimeMillis() + \" ms\");\n\t\t\tSystem.out.println(\"\\tMessage ID: \" + msg.getJMSMessageID());\n\t\t\tSystem.out.println(\"\\tCorrel. ID: \" + msg.getJMSCorrelationID());\n\t\t\tSystem.out.println(\"\\tReply to: \" + msg.getJMSReplyTo());\n\t\t}\n\t}\n}\n```\n\nAn application that wants to send requests and recieve replies could use a requestor to do so. The application provides its requestor a Connection to the messaging system. It also specifies the JNDI names of three queues: the request queue, the reply queue, and the invalid message queue. This is the information the requestor needs to initialize itself.\n\nIn initialize, the requestor uses the Connection and queue names to connect to the messaging system.\n\n- It uses the Connection to create a Session . An application only needs one connection to a messaging system, but each component in the application that wishes to be able to send and receive messages independently needs its own session. Two threads cannot share a single session; they should each use a different session so that the sessions will work properly.\n- It uses the queue names to look up the queues, which are Destination s. The names are JNDI identifiers; JndiUtil performs the JNDI lookups.\n- It creates a MessageProducer for sending messages on the request queue, a MessageConsumer for receiving messages from the reply queue, and another producer for moving messages to the invalid message queue.\n\nOne thing that the requestor needs to be able to do is send request messages. For that, it implements the send() method.\n\n- It creates a TextMessage and sets its contents to \"Hello world.\"\n- It sets the message's reply-to property to be the reply queue. This is a [*Return Address*](ReturnAddress.html) that will tell the replier how to send back the reply.\n- It uses the requestProducer to send the message. The producer is connected to the request queue, so that's the queue the message is sent on.\n- It then prints out the details of the message it just sent. This is done after the message is sent because the message ID is set by the messaging system and is not set until the message is actually sent.\n\nThe other thing the requestor needs to be able to do is receive reply messages. It implements the receiveSync() method for this purpose.\n\n- It uses its replyConsumer to receive the reply. The consumer is connected to the reply queue, so it will receive messages from there. It uses the receive() method to get the message, which synchronously blocks until a message is delivered to the queue and is read from the queue, so the requestor is a [*Polling Consumer*](PollingConsumer.html) . Because this receive is synchronous, the requestor's method is called receiveSync() .\n- The message should be a TextMessage . If so, the requestor gets the message's contents and prints out the message's details.\n- If the message is not a TextMessage , then the message cannot be processed. Rather than just discarding the message, the requestor resends it to the invalid message queue. Resending the message will change its message ID, so before resending it, the requestor stores its original message ID in its correlation ID (see [*Correlation Identifier*](CorrelationIdentifier.html) ).\n\nIn this way, a requestor does everything necessary to send a request, receive a reply, and route the reply to a special queue if the message does not make any sense.\n\nNext, let's take a look at how the Replier is implemented:\n\n```\nimport javax.jms.Connection;\nimport javax.jms.Destination;\nimport javax.jms.JMSException;\nimport javax.jms.Message;\nimport javax.jms.MessageConsumer;\nimport javax.jms.MessageListener;\nimport javax.jms.MessageProducer;\nimport javax.jms.Session;\nimport javax.jms.TextMessage;\nimport javax.naming.NamingException;\n\npublic class Replier implements MessageListener {\n\n\tprivate Session session;\n\tprivate MessageProducer invalidProducer;\n\n\tprotected Replier() {\n\t\tsuper();\n\t}\n\n\tpublic static Replier newReplier(Connection connection, String requestQueueName, String invalidQueueName)\n\t\tthrows JMSException, NamingException {\n\n\t\tReplier replier = new Replier();\n\t\treplier.initialize(connection, requestQueueName, invalidQueueName);\n\t\treturn replier;\n\t}\n\n\tprotected void initialize(Connection connection, String requestQueueName, String invalidQueueName)\n\t\tthrows NamingException, JMSException {\n\n\t\tsession = connection.createSession(false, Session.AUTO_ACKNOWLEDGE);\n\t\tDestination requestQueue = JndiUtil.getDestination(requestQueueName);\n\t\tDestination invalidQueue = JndiUtil.getDestination(invalidQueueName);\n\n\t\tMessageConsumer requestConsumer = session.createConsumer(requestQueue);\n\t\tMessageListener listener = this;\n\t\trequestConsumer.setMessageListener(listener);\n\n\t\tinvalidProducer = session.createProducer(invalidQueue);\n\t}\n\n\tpublic void onMessage(Message message) {\n\t\ttry {\n\t\t\tif ((message instanceof TextMessage) && (message.getJMSReplyTo() != null)) {\n\t\t\t\tTextMessage requestMessage = (TextMessage) message;\n\n\t\t\t\tSystem.out.println(\"Received request\");\n\t\t\t\tSystem.out.println(\"\\tTime: \" + System.currentTimeMillis() + \" ms\");\n\t\t\t\tSystem.out.println(\"\\tMessage ID: \" + requestMessage.getJMSMessageID());\n\t\t\t\tSystem.out.println(\"\\tCorrel. ID: \" + requestMessage.getJMSCorrelationID());\n\t\t\t\tSystem.out.println(\"\\tReply to: \" + requestMessage.getJMSReplyTo());\n\t\t\t\tSystem.out.println(\"\\tContents: \" + requestMessage.getText());\n\n\t\t\t\tString contents = requestMessage.getText();\n\t\t\t\tDestination replyDestination = message.getJMSReplyTo();\n\t\t\t\tMessageProducer replyProducer = session.createProducer(replyDestination);\n\n\t\t\t\tTextMessage replyMessage = session.createTextMessage();\n\t\t\t\treplyMessage.setText(contents);\n\t\t\t\treplyMessage.setJMSCorrelationID(requestMessage.getJMSMessageID());\n\t\t\t\treplyProducer.send(replyMessage);\n\n\t\t\t\tSystem.out.println(\"Sent reply\");\n\t\t\t\tSystem.out.println(\"\\tTime: \" + System.currentTimeMillis() + \" ms\");\n\t\t\t\tSystem.out.println(\"\\tMessage ID: \" + replyMessage.getJMSMessageID());\n\t\t\t\tSystem.out.println(\"\\tCorrel. ID: \" + replyMessage.getJMSCorrelationID());\n\t\t\t\tSystem.out.println(\"\\tReply to: \" + replyMessage.getJMSReplyTo());\n\t\t\t\tSystem.out.println(\"\\tContents: \" + replyMessage.getText());\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"Invalid message detected\");\n\t\t\t\tSystem.out.println(\"\\tType: \" + message.getClass().getName());\n\t\t\t\tSystem.out.println(\"\\tTime: \" + System.currentTimeMillis() + \" ms\");\n\t\t\t\tSystem.out.println(\"\\tMessage ID: \" + message.getJMSMessageID());\n\t\t\t\tSystem.out.println(\"\\tCorrel. ID: \" + message.getJMSCorrelationID());\n\t\t\t\tSystem.out.println(\"\\tReply to: \" + message.getJMSReplyTo());\n\n\t\t\t\tmessage.setJMSCorrelationID(message.getJMSMessageID());\n\t\t\t\tinvalidProducer.send(message);\n\n\t\t\t\tSystem.out.println(\"Sent to invalid message queue\");\n\t\t\t\tSystem.out.println(\"\\tType: \" + message.getClass().getName());\n\t\t\t\tSystem.out.println(\"\\tTime: \" + System.currentTimeMillis() + \" ms\");\n\t\t\t\tSystem.out.println(\"\\tMessage ID: \" + message.getJMSMessageID());\n\t\t\t\tSystem.out.println(\"\\tCorrel. ID: \" + message.getJMSCorrelationID());\n\t\t\t\tSystem.out.println(\"\\tReply to: \" + message.getJMSReplyTo());\n\t\t\t}\n\t\t} catch (JMSException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}\n}\n```\n\nReplier is what an application might use to receive a request and send a reply. The application provides its requestor a Connection to the messaging system, as well as the JNDI names of the request and invalid message queues. (It does not need to specify the name of the reply queue because, as we'll see, that will be provided by the message's [*Return Address*](ReturnAddress.html).) This is the information the requestor needs to initialize itself.\n\nThe replier's initialize code is pretty similar to the requestor's, but there are a couple of differences:\n\n- One difference is that the replier does not look up the reply queue and create a producer for it. This is because the replier does not assume it will always send replies on that queue; rather, as we'll see it will let the request message tell it what queue to send the reply message on.\n- Another difference is that replier is an [*Event-Driven Consumer*](EventDrivenConsumer.html) , so it implements MessageListener . When a message is delivered to the request queue, the messaging system will automatically call the replier's onMessage method.\n\nOnce the replier has initialized itself to be a listener on the request queue, there's not much for it to do but wait for messages. Unlike the requestor, which has to explicitedly poll the reply queue for messages, the replier is event-driven and so does nothing until the messaging system calls its onMessage method with a new message. The message will be from the request queue because initialize created the consumer on the request queue. Once onMessage receives a new message, it processes the message like this:\n\n- Like with the requestor processing a reply message, the request message is supposed to be a TextMessage . It is also supposed to specify the queue to send the reply on. If the message does not meet these requirements, the replier will move the message to the invalid message queue (same as the requestor).\n- If the message meets the requirements: Here is where the replier implements its part of the [*Return Address*](ReturnAddress.html) pattern. Remember that the requestor set the request message's reply-to property to specify the reply queue. The replier now gets that property's value and uses it to create a MessageProducer on the proper queue. The important part here is that the replier is not hard-coded to use a particular reply queue; it uses whatever reply queue each particular request message specifies.\n- The replier then creates the reply message. In doing so, it implements the [*Correlation Identifier*](CorrelationIdentifier.html) pattern by setting the relpy message's correlation-id property to the same value as the request message's message-id property.\n- The replier then sends out the reply message and displays its details.\n\nThus a replier does everything necessary to receive a message (presumably a request) and send a reply.\n\n## Invalid Message Example\n\nWhile we're at it, let's look at an example of the [*Invalid Message Channel*](InvalidMessageChannel.html) pattern. Remember, one of the queues we need is one named \"jms/InvalidMessages.\" This exists so that if a JMS client (a [*Message Endpoint*](MessageEndpoint.html)) receives a message it cannot process, it can move the strange message to a special channel.\n\nTo demonstrate invalid message handling, we have designed an InvalidMessenger class. This object is specifically designed to send a message on the request channel whose format is incorrect. Like any channel, the request channel is a [*Datatype Channel*](DatatypeChannel.html), in that the request receivers expect the requests to be of a certain format. The invalid messenger simply sends a message of a different format; when the replier receives the message, it does not recognize the message's format, and so moves the message to the invalid message queue.\n\nWe'll run the Replier in one window and the Invalid Messenger in another window. When the invalid messenger sends its message, it displays output like this:\n\n```\nSent invalid message\n Type: com.sun.jms.ObjectMessageImpl\n Time: 1048288516959 ms\n Message ID: ID:_XYZ123_1048288516639_7.2.1.1\n Correl. ID: null\n Reply to: com.sun.jms.Queue: jms/ReplyQueue\n```\n\nThis shows that the message is an instance of ObjectMessage (whereas the replier is expecting a TextMessage). The Replier recieves the invalid message and resends it to the invalid message queue:\n\n```\nInvalid message detected\n Type: com.sun.jms.ObjectMessageImpl\n Time: 1048288517049 ms\n Message ID: ID:_XYZ123_1048288516639_7.2.1.1\n Correl. ID: null\n Reply to: com.sun.jms.Queue: jms/ReplyQueue\nSent to invalid message queue\n Type: com.sun.jms.ObjectMessageImpl\n Time: 1048288517140 ms\n Message ID: ID:_XYZ123_1048287020267_6.2.1.2\n Correl. ID: ID:_XYZ123_1048288516639_7.2.1.1\n Reply to: com.sun.jms.Queue: jms/ReplyQueue\n```\n\nOne insight worth noting is that when the message is moved to the invalid message queue, it is actually being resent, so it gets a new message ID. Because of this, we apply the [*Correlation Identifier*](CorrelationIdentifier.html) pattern; once the replier determines the message to be invalid, it copies the message's main ID to its correlation ID so as to preserve a record of the message's original ID.\n\nThe code that handles this invalid-message processing is in the Replier class shown earlier, in the onMessage method. Requestor.receiveSync() contains similar invalid-message processing code.\n\n## Conclusions\n\nWe've seen how to implement two classes, Requestor and Replier ([*Message Endpoint*](MessageEndpoint.html)s), that exchange a request and reply [*Message*](Message.html)s using [*Request-Reply*](RequestReply.html). The request message uses a [*Return Address*](ReturnAddress.html) to specify what queue to send the reply on. The reply messages uses a [*Correlation Identifier*](CorrelationIdentifier.html) to specify which request this is a reply for. The Requestor implements a [*Polling Consumer*](PollingConsumer.html) to receive replies, whereas the Replier implements an [*Event-Driven Consumer*](EventDrivenConsumer.html) to receive requests. The request and reply queues are [*Datatype Channel*](DatatypeChannel.html)s; when a consumer receives a message that is not of the right type, it reroutes the message to the [*Invalid Message Channel*](InvalidMessageChannel.html).\n\n## Integration Pattern Language\n\n[Message Construct.](MessageConstructionIntro.html)\n\n[Message](Message.html)\n\n[Command Message](CommandMessage.html)\n\n[Document Message](DocumentMessage.html)\n\n[Event Message](EventMessage.html)\n\n[Request-Reply](RequestReply.html)\n\n[Return Address](ReturnAddress.html)\n\n[Correlation Identifier](CorrelationIdentifier.html)\n\n[Message Sequence](MessageSequence.html)\n\n[Message Expiration](MessageExpiration.html)\n\n[Format Indicator](FormatIndicator.html)\n\n[Message Routing](MessageRoutingIntro.html)\n\n[Pipes-and-Filters](PipesAndFilters.html)\n\n[Message Router](MessageRouter.html)\n\n[Content-based Router](ContentBasedRouter.html)\n\n[Message Filter](Filter.html)\n\n[Dynamic Router](DynamicRouter.html)\n\n[Recipient List](RecipientList.html)\n\n[Splitter](Sequencer.html)\n\n[Aggregator](Aggregator.html)\n\n[Resequencer](Resequencer.html)\n\n[Composed Msg. Processor](DistributionAggregate.html)\n\n[Scatter-Gather](BroadcastAggregate.html)\n\n[Routing Slip](RoutingTable.html)\n\n[Process Manager](ProcessManager.html)\n\n[Message Broker](MessageBroker.html)\n\n[Message\nTransformation](MessageTransformationIntro.html)\n\n[Message Translator](MessageTranslator.html)\n\n[Envelope Wrapper](EnvelopeWrapper.html)\n\n[Content Enricher](DataEnricher.html)\n\n[Content Filter](ContentFilter.html)\n\n[Claim Check](StoreInLibrary.html)\n\n[Normalizer](Normalizer.html)\n\n[Canonical Data Model](CanonicalDataModel.html)\n\n[Messaging Endpoints](MessagingEndpointsIntro.html)\n\n[Message Endpoint](MessageEndpoint.html)\n\n[Messaging Gateway](MessagingGateway.html)\n\n[Messaging Mapper](MessagingMapper.html)\n\n[Transactional Client](TransactionalClient.html)\n\n[Polling Consumer](PollingConsumer.html)\n\n[Event-driven Consumer](EventDrivenConsumer.html)\n\n[Competing Consumers](CompetingConsumers.html)\n\n[Message Dispatcher](MessageDispatcher.html)\n\n[Selective Consumer](MessageSelector.html)\n\n[Durable Subscriber](DurableSubscription.html)\n\n[Idempotent Receiver](IdempotentReceiver.html)\n\n[Service Activator](MessagingAdapter.html)\n\n[Messaging Channels](MessagingChannelsIntro.html)\n\n[Message Channel](MessageChannel.html)\n\n[Point-to-Point Channel](PointToPointChannel.html)\n\n[Publish-Subscr. Channel](PublishSubscribeChannel.html)\n\n[Datatype Channel](DatatypeChannel.html)\n\n[Invalid Message Channel](InvalidMessageChannel.html)\n\n[Dead Letter Channel](DeadLetterChannel.html)\n\n[Guaranteed Delivery](GuaranteedMessaging.html)\n\n[Channel Adapter](ChannelAdapter.html)\n\n[Messaging Bridge](MessagingBridge.html)\n\n[Message Bus](MessageBus.html)\n\n[Systems Mgmt.](SystemManagementIntro.html)\n\n[Control Bus](ControlBus.html)\n\n[Detour](Detour.html)\n\n[Wire Tap](WireTap.html)\n\n[Message History](MessageHistory.html)\n\n[Message Store](MessageStore.html)\n\n[Smart Proxy](SmartProxy.html)\n\n[Test Message](TestMessage.html)\n\n[Channel Purger](ChannelPurger.html)", "znaku_textu": 24821, "slov": 3009, "odkazu": 108, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/patterns/messaging/RequestReplyJmsExample.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 14:50:59", "sha256": "713e6f66ba661d91f9ddc35740753a1380522e51c5bbd5e44e498c27d105e639", "hloubka": 3, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://java.sun.com/products/jms/", "https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "https://www.architectelevator.com/book", "https://www.cloudstrategybook.com/", "https://www.platformstrategybook.info/"]} {"url": "https://www.enterpriseintegrationpatterns.com/RequestReplyNetExample.html", "titulek": ".NET Request/Reply Example - Enterprise Integration Patterns", "h1": "", "popis": "This is a simple example of how to use messaging, implemented in .NET [SysMsg] and C#. It shows how to implement Request-Reply, where a requestor application sends a request, a replier application receives the request and returns a reply, and the requestor receives the reply. It also shows how an invalid message will be rerouted to a special channel.", "klicova_slova": ".NET Request/Reply Example,integration, messaging, events, patterns, event-driven, coupling, eai, middleware, application integration, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns", "og:title": ".NET Request/Reply Example - Enterprise Integration Patterns", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/RequestReplyNetExample.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/eip1_patterns_wide.png"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Request/Reply Example"}, {"uroven": 2, "text": "Request/Reply Code"}, {"uroven": 2, "text": "Invalid Message Example"}, {"uroven": 2, "text": "Conclusions"}, {"uroven": 2, "text": "Integration Pattern Language"}], "markdown": "| | .NET Request/Reply Example[Messaging Patterns](index.html) » [Interlude: Simple Messaging](SimpleMessagingIntro.html) | [Contents](toc.html)[⇐ Prev](RequestReplyJmsExample.html)[Next ⇒](ObserverJmsExample.html) |\n| --- | --- | --- |\n\nThis is a simple example of how to use messaging, implemented in .NET [[SysMsg](http://msdn.microsoft.com/library/)] and C#. It shows how to implement [*Request-Reply*](RequestReply.html), where a requestor application sends a request, a replier application receives the request and returns a reply, and the requestor receives the reply. It also shows how an invalid message will be rerouted to a special channel.\n\n*Components of the Request/Reply Example*\n\nThis example was developed using the Microsoft .NET Framework SDK and run on a Windows XP computer with MSMQ [[MSMQ01](http://www.microsoft.com/msmq)] installed.\n\n## Request/Reply Example\n\nThis example consists of two main classes:\n\n1. **Requestor** — A [*Message Endpoint*](MessageEndpoint.html) that sends a request message and waits to receive a reply message as a response.\n2. **Replier** — A [*Message Endpoint*](MessageEndpoint.html) that waits to receive the request message; when it does, it responds by sending the reply message.\n\nThe Requestor and the Replier will each run as a separate .NET program, which is what makes the communication distributed.\n\nThis example assumes that the messaging system has these three queues defined:\n\n1. **.\\private$\\RequestQueue** — The MessageQueue the Requestor uses to send the request message to the Replier.\n2. **.\\private$\\ReplyQueue** — The MessageQueue the Replier uses to send the reply message to the Requestor.\n3. **.\\private$\\InvalidQueue** — The MessageQueue that the Requestor and Replier move a message to when they receive a message that they cannot interpret.\n\nHere's how the example works. When the Requestor is started in a command-line window, it starts and prints output like this:\n\n```\nSent request\n Time: 09:11:09.165342\n Message ID: 8b0fc389-f21f-423b-9eaa-c3a881a34808\\149\n Correl. ID:\n Reply to: .\\private$\\ReplyQueue\n Contents: Hello world.\n```\n\nWhat this shows is that the Requestor has sent a request message. Notice that this works even though the Replier isn't even running and therefore cannot receive the request.\n\nWhen the Replier is started in another command-line window, it starts and prints output like this:\n\n```\nReceived request\n Time: 09:11:09.375644\n Message ID: 8b0fc389-f21f-423b-9eaa-c3a881a34808\\149\n Correl. ID: \n Reply to: FORMATNAME:DIRECT=OS:XYZ123\\private$\\ReplyQueue\n Contents: Hello world.\nSent reply\n Time: 09:11:09.956480\n Message ID: 8b0fc389-f21f-423b-9eaa-c3a881a34808\\150\n Correl. ID: 8b0fc389-f21f-423b-9eaa-c3a881a34808\\149\n Reply to: \n Contents: Hello world.\n```\n\nThis shows that the Replier received the request message and sent a reply message.\n\nThere are several items in this output that are interesting to notice. First, notice the request send and received timestamps; the request was received after it was sent (210302 ms later). Second, notice that the message ID is the same in both cases, because it's the same message. Third, notice that the contents, \"Hello world,\" are the same, which is very good because this is the data being transmitted and it has got to be the same on both sides. (The request in this example is pretty lame. It is basically a [*Document Message*](DocumentMessage.html); a real request would usually be a [*Command Message*](CommandMessage.html).) Forth, the queue named \"jms/ReplyQueue\" has been specified in the request message as the destination for the reply message (an example of the [*Return Address*](ReturnAddress.html) pattern).\n\nNext, let's compare the output from receiving the request to that for sending the reply. First, notice the reply was not sent until after the request was received (580836 ms after). Second, the message ID for the reply is different from that for the request; this is because the request and reply messages are different, separate messages. Third, the contents of the request have been extracted and added to the reply. Forth, the reply-to destination is unspecified because no reply is expected (the reply does not use the [*Return Address*](ReturnAddress.html) pattern). Fifth, the reply's correlation ID is the same as the request's message ID (the reply does use the [*Correlation Identifier*](CorrelationIdentifier.html) pattern).\n\nFinally, back in the first window, the requester received the reply:\n\n```\nReceived reply\n Time: 09:11:10.156467\n Message ID: 8b0fc389-f21f-423b-9eaa-c3a881a34808\\150\n Correl. ID: 8b0fc389-f21f-423b-9eaa-c3a881a34808\\149\n Reply to: \n Contents: Hello world.\n```\n\nThis output contains several items of interest. The reply was received after it was sent (199987 ms). The message ID of the reply was the same when it was received as it was when it was sent, which proves that it is indeed the same message. The message contents received are the same as those sent. And the correlation ID tells the requestor which request this reply is for (the [*Correlation Identifier*](CorrelationIdentifier.html) pattern).\n\nNotice too that the requestor is designed to simply send a request, receive a reply, and exit. So having received the reply, the requestor is no longer running. The replier, on the other hand, doesn't know when it might receive a request, so it never stops running. To stop it, we go to its command shell window and press the return key, which causes the replier program to exit.\n\nSo this is the request/reply example. A request was prepared and sent by the requestor. The replier received the request and sent a reply. Then the requestor received the reply to its original request.\n\n## Request/Reply Code\n\nFirst, let's take a look at how the Requestor is implemented:\n\n```\nusing System;\nusing System.Messaging;\n\npublic class Requestor\n{\n\tprivate MessageQueue requestQueue;\n\tprivate MessageQueue replyQueue;\n\t\n\tpublic Requestor(String requestQueueName, String replyQueueName)\n\t{\n\t\trequestQueue = new MessageQueue(requestQueueName);\n\t\treplyQueue = new MessageQueue(replyQueueName);\n\n\t\treplyQueue.MessageReadPropertyFilter.SetAll();\n\t\t((XmlMessageFormatter)replyQueue.Formatter).TargetTypeNames = new string[]{\"System.String,mscorlib\"};\n\t}\n\t\n\tpublic void Send()\n\t{\n\t\tMessage requestMessage = new Message();\n\t\trequestMessage.Body = \"Hello world.\";\n\t\trequestMessage.ResponseQueue = replyQueue;\n\t\trequestQueue.Send(requestMessage);\n\t\t\n\t\tConsole.WriteLine(\"Sent request\");\n\t\tConsole.WriteLine(\"\\tTime: {0}\", DateTime.Now.ToString(\"HH:mm:ss.ffffff\"));\n\t\tConsole.WriteLine(\"\\tMessage ID: {0}\", requestMessage.Id);\n\t\tConsole.WriteLine(\"\\tCorrel. ID: {0}\", requestMessage.CorrelationId);\n\t\tConsole.WriteLine(\"\\tReply to: {0}\", requestMessage.ResponseQueue.Path);\n\t\tConsole.WriteLine(\"\\tContents: {0}\", requestMessage.Body.ToString());\n\t}\n \n\tpublic void ReceiveSync()\n\t{\n\t\tMessage replyMessage = replyQueue.Receive();\n\n\t\tConsole.WriteLine(\"Received reply\");\n\t\tConsole.WriteLine(\"\\tTime: {0}\", DateTime.Now.ToString(\"HH:mm:ss.ffffff\"));\n\t\tConsole.WriteLine(\"\\tMessage ID: {0}\", replyMessage.Id);\n\t\tConsole.WriteLine(\"\\tCorrel. ID: {0}\", replyMessage.CorrelationId);\n\t\tConsole.WriteLine(\"\\tReply to: {0}\", \"\");\n\t\tConsole.WriteLine(\"\\tContents: {0}\", replyMessage.Body.ToString());\n\t}\n}\n```\n\nAn application that wants to send requests and recieve replies could use a requestor to do so. The application specifies the pathnames of two queues: the request queue and the reply queue. This is the information the requestor needs to initialize itself.\n\nIn the Requestor constructor, the requestor uses the queue names to connect to the messaging system.\n\n- It uses the queue names to look up the queues, which are MessageQueue s. The names are pathnames to MSMQ resources.\n- It sets the reply queue's property filter so that when a message is read from the queue, all of the message's properties will be read as well. It also sets the queue's formatter to be an XmlMessageFormatter so that the message contents will be interpreted as strings.\n\nOne thing that the requestor needs to be able to do is send request messages. For that, it implements the Send() method.\n\n- It creates a Message and sets its contents to \"Hello world.\"\n- It sets the message's ResponseQueue property to be the reply queue. This is a [*Return Address*](ReturnAddress.html) that will tell the replier how to send back the reply.\n- It then sends the message to the queue.\n- It then prints out the details of the message it just sent. This is done after the message is sent because the message ID is set by the messaging system and is not set until the message is actually sent.\n\nThe other thing the requestor needs to be able to do is receive reply messages. It implements the ReceiveSync() method for this purpose.\n\n- It runs the queue's Receive() method to get the message, which synchronously blocks until a message is delivered to the queue and is read from the queue, so the requestor is a [*Polling Consumer*](PollingConsumer.html) . Because this receive is synchronous, the requestor's method is called ReceiveSync() .\n- The requestor gets the message's contents and prints out the message's details.\n\nIn this way, a requestor does everything necessary to send a request and receive a reply.\n\nNext, let's take a look at how the Replier is implemented:\n\n```\nusing System;\nusing System.Messaging;\n\nclass Replier {\n\t\n\tprivate MessageQueue invalidQueue;\n\t\n\tpublic Replier(String requestQueueName, String invalidQueueName)\n\t{\n\t\tMessageQueue requestQueue = new MessageQueue(requestQueueName);\n\t\tinvalidQueue = new MessageQueue(invalidQueueName);\n\t\t\n\t\trequestQueue.MessageReadPropertyFilter.SetAll();\n\t\t((XmlMessageFormatter)requestQueue.Formatter).TargetTypeNames = new string[]{\"System.String,mscorlib\"};\n\n\t\trequestQueue.ReceiveCompleted += new ReceiveCompletedEventHandler(OnReceiveCompleted);\n\t\trequestQueue.BeginReceive();\n\t}\n\t\n\tpublic void OnReceiveCompleted(Object source, ReceiveCompletedEventArgs asyncResult)\n\t{\n\t\tMessageQueue requestQueue = (MessageQueue)source;\n\t\tMessage requestMessage = requestQueue.EndReceive(asyncResult.AsyncResult);\n\n\t\ttry\n\t\t{\n\t\t\tConsole.WriteLine(\"Received request\");\n\t\t\tConsole.WriteLine(\"\\tTime: {0}\", DateTime.Now.ToString(\"HH:mm:ss.ffffff\"));\n\t\t\tConsole.WriteLine(\"\\tMessage ID: {0}\", requestMessage.Id);\n\t\t\tConsole.WriteLine(\"\\tCorrel. ID: {0}\", \"\");\n\t\t\tConsole.WriteLine(\"\\tReply to: {0}\", requestMessage.ResponseQueue.Path);\n\t\t\tConsole.WriteLine(\"\\tContents: {0}\", requestMessage.Body.ToString());\n\t\n\t\t\tstring contents = requestMessage.Body.ToString();\n\t\t\tMessageQueue replyQueue = requestMessage.ResponseQueue;\n\t\t\tMessage replyMessage = new Message();\n\t\t\treplyMessage.Body = contents;\n\t\t\treplyMessage.CorrelationId = requestMessage.Id;\n\t\t\treplyQueue.Send(replyMessage);\n\t\n\t\t\tConsole.WriteLine(\"Sent reply\");\n\t\t\tConsole.WriteLine(\"\\tTime: {0}\", DateTime.Now.ToString(\"HH:mm:ss.ffffff\"));\n\t\t\tConsole.WriteLine(\"\\tMessage ID: {0}\", replyMessage.Id);\n\t\t\tConsole.WriteLine(\"\\tCorrel. ID: {0}\", replyMessage.CorrelationId);\n\t\t\tConsole.WriteLine(\"\\tReply to: {0}\", \"\");\n\t\t\tConsole.WriteLine(\"\\tContents: {0}\", replyMessage.Body.ToString());\n\t\t}\n\t\tcatch ( Exception ) {\n\t\t\tConsole.WriteLine(\"Invalid message detected\");\n\t\t\tConsole.WriteLine(\"\\tType: {0}\", requestMessage.BodyType);\n\t\t\tConsole.WriteLine(\"\\tTime: {0}\", DateTime.Now.ToString(\"HH:mm:ss.ffffff\"));\n\t\t\tConsole.WriteLine(\"\\tMessage ID: {0}\", requestMessage.Id);\n\t\t\tConsole.WriteLine(\"\\tCorrel. ID: {0}\", \"\");\n\t\t\tConsole.WriteLine(\"\\tReply to: {0}\", \"\");\n\t\t\t\n\t\t\trequestMessage.CorrelationId = requestMessage.Id;\n\t\t\t\n\t\t\tinvalidQueue.Send(requestMessage);\n\t\t\t\n\t\t\tConsole.WriteLine(\"Sent to invalid message queue\");\n\t\t\tConsole.WriteLine(\"\\tType: {0}\", requestMessage.BodyType);\n\t\t\tConsole.WriteLine(\"\\tTime: {0}\", DateTime.Now.ToString(\"HH:mm:ss.ffffff\"));\n\t\t\tConsole.WriteLine(\"\\tMessage ID: {0}\", requestMessage.Id);\n\t\t\tConsole.WriteLine(\"\\tCorrel. ID: {0}\", requestMessage.CorrelationId);\n\t\t\tConsole.WriteLine(\"\\tReply to: {0}\", requestMessage.ResponseQueue.Path);\n\t\t}\n\t\t\n\t\trequestQueue.BeginReceive();\n\t}\n}\n```\n\nReplier is what an application might use to receive a request and send a reply. The application specifies the pathnames of the request and invalid message queues. (It does not need to specify the name of the reply queue because, as we'll see, that will be provided by the message's [*Return Address*](ReturnAddress.html).) This is the information the requestor needs to initialize itself.\n\nThe Replier constructor is pretty similar to the requestor's, but there are a couple of differences:\n\n- One difference is that the replier does not look up the reply queue. This is because the replier does not assume it will always send replies on that queue; rather, as we'll see it will let the request message tell it what queue to send the reply message on.\n- Another difference is that replier is an [*Event-Driven Consumer*](EventDrivenConsumer.html) , so it sets up a ReceiveCompletedEventHandler . When a message is delivered to the request queue, the messaging system will automatically call the specified method, OnReceiveCompleted .\n\nOnce the replier has initialized itself to be a listener on the request queue, there's not much for it to do but wait for messages. Unlike the requestor, which has to explicitedly poll the reply queue for messages, the replier is event-driven and so does nothing until the messaging system calls its OnReceiveCompleted method with a new message. The message will be from the request queue because the constructor created the event handler on the request queue. Once OnReceiveCompleted is called, this is what it does to get the new message and processes it:\n\n- The source is a MessageQueue , the request queue.\n- The message itself is obtained by running the queue's EndReceive method. The replier then prints out the details about the message.\n- Then the replier implements its part of the [*Return Address*](ReturnAddress.html) pattern. Remember that the requestor set the request message's response-queue property to specify the reply queue. The replier now gets that property's value and uses it reference the proper MessageQueue . The important part here is that the replier is not hard-coded to use a particular reply queue; it uses whatever reply queue each particular request message specifies.\n- The replier then creates the reply message. In doing so, it implements the [*Correlation Identifier*](CorrelationIdentifier.html) pattern by setting the relpy message's correlation-id property to the same value as the request message's message-id property.\n- The replier then sends out the reply message and displays its details.\n- If the message can be received but not successfully processed, and an Exception is thrown, the replier resends the message to the invalid message queue. In the process, it sets the new message's correlation id to the original message's message id.\n- Once the replier has finished processing the message, it runs BeginReceive to start listening for the next message.\n\nThus a replier does everything necessary to receive a message (presumably a request) and send a reply. If it cannot reply to a message, it routes the message to the invalid message queue.\n\n## Invalid Message Example\n\nWhile we're at it, let's look at an example of the [*Invalid Message Channel*](InvalidMessageChannel.html) pattern. Remember, one of the queues we need is one named \"private$\\InvalidMessages.\" This exists so that if an MSMQ client (a [*Message Endpoint*](MessageEndpoint.html)) receives a message it cannot process, it can move the strange message to a special channel.\n\nTo demonstrate invalid message handling, we have designed an InvalidMessenger class. This object is specifically designed to send a message on the request channel whose format is incorrect. Like any channel, the request channel is a [*Datatype Channel*](DatatypeChannel.html), in that the request receivers expect the requests to be of a certain format. The invalid messenger simply sends a message of a different format; when the replier receives the message, it does not recognize the message's format, and so moves the message to the invalid message queue.\n\nWe'll run the Replier in one window and the Invalid Messenger in another window. When the invalid messenger sends its message, it displays output like this:\n\n```\nSent request\n Type: 768\n Time: 09:39:44.223729\n Message ID: 8b0fc389-f21f-423b-9eaa-c3a881a34808\\168\n Correl. ID: 00000000-0000-0000-0000-000000000000\\0\n Reply to: .\\private$\\ReplyQueue\n```\n\nType 768 means that the format of the message contents is binary (whereas the replier is expecting the contents to be text/XML). The Replier recieves the invalid message and resends it to the invalid message queue:\n\n```\nInvalid message detected\n Type: 768\n Time: 09:39:44.233744\n Message ID: 8b0fc389-f21f-423b-9eaa-c3a881a34808\\168\n Correl. ID: \n Reply to: \nSent to invalid message queue\n Type: 768\n Time: 09:39:44.233744\n Message ID: 8b0fc389-f21f-423b-9eaa-c3a881a34808\\169\n Correl. ID: 8b0fc389-f21f-423b-9eaa-c3a881a34808\\168\n Reply to: FORMATNAME:DIRECT=OS:XYZ123\\private$\\ReplyQueue\n```\n\nOne insight worth noting is that when the message is moved to the invalid message queue, it is actually being resent, so it gets a new message ID. Because of this, we apply the [*Correlation Identifier*](CorrelationIdentifier.html) pattern; once the replier determines the message to be invalid, it copies the message's main ID to its correlation ID so as to preserve a record of the message's original ID.\n\nThe code that handles this invalid-message processing is in the Replier class shown earlier, in the OnReceiveCompleted method.\n\n## Conclusions\n\nWe've seen how to implement two classes, Requestor and Replier ([*Message Endpoint*](MessageEndpoint.html)s), that exchange a request and reply [*Message*](Message.html)s using [*Request-Reply*](RequestReply.html). The request message uses a [*Return Address*](ReturnAddress.html) to specify what queue to send the reply on. The reply messages uses a [*Correlation Identifier*](CorrelationIdentifier.html) to specify which request this is a reply for. The Requestor implements a [*Polling Consumer*](PollingConsumer.html) to receive replies, whereas the Replier implements an [*Event-Driven Consumer*](EventDrivenConsumer.html) to receive requests. The request and reply queues are [*Datatype Channel*](DatatypeChannel.html)s; when a consumer receives a message that is not of the right type, it reroutes the message to the [*Invalid Message Channel*](InvalidMessageChannel.html).\n\n## Integration Pattern Language\n\n[Message Construct.](MessageConstructionIntro.html)\n\n[Message](Message.html)\n\n[Command Message](CommandMessage.html)\n\n[Document Message](DocumentMessage.html)\n\n[Event Message](EventMessage.html)\n\n[Request-Reply](RequestReply.html)\n\n[Return Address](ReturnAddress.html)\n\n[Correlation Identifier](CorrelationIdentifier.html)\n\n[Message Sequence](MessageSequence.html)\n\n[Message Expiration](MessageExpiration.html)\n\n[Format Indicator](FormatIndicator.html)\n\n[Message Routing](MessageRoutingIntro.html)\n\n[Pipes-and-Filters](PipesAndFilters.html)\n\n[Message Router](MessageRouter.html)\n\n[Content-based Router](ContentBasedRouter.html)\n\n[Message Filter](Filter.html)\n\n[Dynamic Router](DynamicRouter.html)\n\n[Recipient List](RecipientList.html)\n\n[Splitter](Sequencer.html)\n\n[Aggregator](Aggregator.html)\n\n[Resequencer](Resequencer.html)\n\n[Composed Msg. Processor](DistributionAggregate.html)\n\n[Scatter-Gather](BroadcastAggregate.html)\n\n[Routing Slip](RoutingTable.html)\n\n[Process Manager](ProcessManager.html)\n\n[Message Broker](MessageBroker.html)\n\n[Message\nTransformation](MessageTransformationIntro.html)\n\n[Message Translator](MessageTranslator.html)\n\n[Envelope Wrapper](EnvelopeWrapper.html)\n\n[Content Enricher](DataEnricher.html)\n\n[Content Filter](ContentFilter.html)\n\n[Claim Check](StoreInLibrary.html)\n\n[Normalizer](Normalizer.html)\n\n[Canonical Data Model](CanonicalDataModel.html)\n\n[Messaging Endpoints](MessagingEndpointsIntro.html)\n\n[Message Endpoint](MessageEndpoint.html)\n\n[Messaging Gateway](MessagingGateway.html)\n\n[Messaging Mapper](MessagingMapper.html)\n\n[Transactional Client](TransactionalClient.html)\n\n[Polling Consumer](PollingConsumer.html)\n\n[Event-driven Consumer](EventDrivenConsumer.html)\n\n[Competing Consumers](CompetingConsumers.html)\n\n[Message Dispatcher](MessageDispatcher.html)\n\n[Selective Consumer](MessageSelector.html)\n\n[Durable Subscriber](DurableSubscription.html)\n\n[Idempotent Receiver](IdempotentReceiver.html)\n\n[Service Activator](MessagingAdapter.html)\n\n[Messaging Channels](MessagingChannelsIntro.html)\n\n[Message Channel](MessageChannel.html)\n\n[Point-to-Point Channel](PointToPointChannel.html)\n\n[Publish-Subscr. Channel](PublishSubscribeChannel.html)\n\n[Datatype Channel](DatatypeChannel.html)\n\n[Invalid Message Channel](InvalidMessageChannel.html)\n\n[Dead Letter Channel](DeadLetterChannel.html)\n\n[Guaranteed Delivery](GuaranteedMessaging.html)\n\n[Channel Adapter](ChannelAdapter.html)\n\n[Messaging Bridge](MessagingBridge.html)\n\n[Message Bus](MessageBus.html)\n\n[Systems Mgmt.](SystemManagementIntro.html)\n\n[Control Bus](ControlBus.html)\n\n[Detour](Detour.html)\n\n[Wire Tap](WireTap.html)\n\n[Message History](MessageHistory.html)\n\n[Message Store](MessageStore.html)\n\n[Smart Proxy](SmartProxy.html)\n\n[Test Message](TestMessage.html)\n\n[Channel Purger](ChannelPurger.html)", "znaku_textu": 21093, "slov": 2630, "odkazu": 109, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/patterns/messaging/RequestReplyNetExample.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 14:51:01", "sha256": "026c8e4f5bfd09fd0ebe386d47aa00b2d53ab0b5fd5526846e5e86f5e71ed497", "hloubka": 3, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://msdn.microsoft.com/library/", "http://www.microsoft.com/msmq", "https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "https://www.architectelevator.com/book", "https://www.cloudstrategybook.com/", "https://www.platformstrategybook.info/"]} {"url": "https://www.enterpriseintegrationpatterns.com/Resequencer.html", "titulek": "Resequencer - Enterprise Integration Patterns", "h1": "", "popis": "How can we get a stream of related but out-of-sequence messages back into the correct order?", "klicova_slova": "Resequencer,integration, messaging, events, patterns, event-driven, coupling, eai, middleware, application integration, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns", "og:title": "Resequencer - Enterprise Integration Patterns", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/Resequencer.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/Resequencer.gif"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Integration Pattern Language"}], "markdown": "Messaging Patterns\n\n[Messaging Patterns](index.html)\n\n- [Integration Styles](IntegrationStylesIntro.html)\n- [Messaging Systems](MessagingComponentsIntro.html)\n- [Messaging Channels](MessagingChannelsIntro.html)\n- [Message Construction](MessageConstructionIntro.html)\n- [Interlude: Simple Messaging](SimpleMessagingIntro.html)\n- [Message Routing](MessageRoutingIntro.html)\n- [Message Transformation](MessageTransformationIntro.html)\n- [Interlude: Composed Messaging](ComposedMessagingExample.html)\n- [Messaging Endpoints](MessagingEndpointsIntro.html)\n- [System Management](SystemManagementIntro.html)\n- Interlude: Systems Management Example\n- Integration Patterns in Practice\n- Concluding Remarks\n- Appendices\n\n| | Resequencer[Messaging Patterns](index.html) » [Message Routing](MessageRoutingIntro.html) | [Contents](toc.html)[⇐ Prev](Aggregator.html)[Next ⇒](DistributionAggregate.html) |\n| --- | --- | --- |\n\nA [*Message Router*](MessageRouter.html) can route messages from one channel to different channels based on message content or other criteria. Because individual messages may follow different routes, some messages are likely to pass through the processing steps sooner than others, resulting in the messages getting out of order. However, some subsequent processing steps do require in-sequence processing of messages, for example to maintain referential integrity.\n\nHow can we get a stream of related but out-of-sequence messages back into the correct order?\n\nUse a stateful filter, a *Resequencer*, to collect and re-order messages so that they can be published to the output channel in a specified order.\n\nThe *Resequencer* can receive a stream of messages that may not arrive in order. The *Resequencer* contains in internal buffer to store out-of-sequence messages until a complete sequence is obtained. The in-sequence messages are then published to the output channel. It is important that the output channel is order-preserving so messages are guaranteed to arrive in order at the next component. Like most other routers, a *Resequencer* usually does not modify the message contents.\n\n...\nRead the entire pattern in the book [Enterprise Integration Patterns](/books1.html)\n\n**Related patterns:**\n\n[*Aggregator*](Aggregator.html), [*Competing Consumers*](CompetingConsumers.html), [*Message Router*](MessageRouter.html), [*Message Sequence*](MessageSequence.html), [*Pipes and Filters*](PipesAndFilters.html), [*Splitter*](Sequencer.html), [*Test Message*](TestMessage.html)\n\n---\n\n## Integration Pattern Language\n\n[Message Construct.](MessageConstructionIntro.html)\n\n[Message](Message.html)\n\n[Command Message](CommandMessage.html)\n\n[Document Message](DocumentMessage.html)\n\n[Event Message](EventMessage.html)\n\n[Request-Reply](RequestReply.html)\n\n[Return Address](ReturnAddress.html)\n\n[Correlation Identifier](CorrelationIdentifier.html)\n\n[Message Sequence](MessageSequence.html)\n\n[Message Expiration](MessageExpiration.html)\n\n[Format Indicator](FormatIndicator.html)\n\n[Message Routing](MessageRoutingIntro.html)\n\n[Pipes-and-Filters](PipesAndFilters.html)\n\n[Message Router](MessageRouter.html)\n\n[Content-based Router](ContentBasedRouter.html)\n\n[Message Filter](Filter.html)\n\n[Dynamic Router](DynamicRouter.html)\n\n[Recipient List](RecipientList.html)\n\n[Splitter](Sequencer.html)\n\n[Aggregator](Aggregator.html)\n\n[Resequencer](Resequencer.html)\n\n[Composed Msg. Processor](DistributionAggregate.html)\n\n[Scatter-Gather](BroadcastAggregate.html)\n\n[Routing Slip](RoutingTable.html)\n\n[Process Manager](ProcessManager.html)\n\n[Message Broker](MessageBroker.html)\n\n[Message\nTransformation](MessageTransformationIntro.html)\n\n[Message Translator](MessageTranslator.html)\n\n[Envelope Wrapper](EnvelopeWrapper.html)\n\n[Content Enricher](DataEnricher.html)\n\n[Content Filter](ContentFilter.html)\n\n[Claim Check](StoreInLibrary.html)\n\n[Normalizer](Normalizer.html)\n\n[Canonical Data Model](CanonicalDataModel.html)\n\n[Messaging Endpoints](MessagingEndpointsIntro.html)\n\n[Message Endpoint](MessageEndpoint.html)\n\n[Messaging Gateway](MessagingGateway.html)\n\n[Messaging Mapper](MessagingMapper.html)\n\n[Transactional Client](TransactionalClient.html)\n\n[Polling Consumer](PollingConsumer.html)\n\n[Event-driven Consumer](EventDrivenConsumer.html)\n\n[Competing Consumers](CompetingConsumers.html)\n\n[Message Dispatcher](MessageDispatcher.html)\n\n[Selective Consumer](MessageSelector.html)\n\n[Durable Subscriber](DurableSubscription.html)\n\n[Idempotent Receiver](IdempotentReceiver.html)\n\n[Service Activator](MessagingAdapter.html)\n\n[Messaging Channels](MessagingChannelsIntro.html)\n\n[Message Channel](MessageChannel.html)\n\n[Point-to-Point Channel](PointToPointChannel.html)\n\n[Publish-Subscr. Channel](PublishSubscribeChannel.html)\n\n[Datatype Channel](DatatypeChannel.html)\n\n[Invalid Message Channel](InvalidMessageChannel.html)\n\n[Dead Letter Channel](DeadLetterChannel.html)\n\n[Guaranteed Delivery](GuaranteedMessaging.html)\n\n[Channel Adapter](ChannelAdapter.html)\n\n[Messaging Bridge](MessagingBridge.html)\n\n[Message Bus](MessageBus.html)\n\n[Systems Mgmt.](SystemManagementIntro.html)\n\n[Control Bus](ControlBus.html)\n\n[Detour](Detour.html)\n\n[Wire Tap](WireTap.html)\n\n[Message History](MessageHistory.html)\n\n[Message Store](MessageStore.html)\n\n[Smart Proxy](SmartProxy.html)\n\n[Test Message](TestMessage.html)\n\n[Channel Purger](ChannelPurger.html)\n\n- » [Read the latest in My Blog](/ramblings)\n- » [Get more insights from My Articles](/articles.html)\n- » [See me live in my Upcoming Talks](/talks)\n\nYou can reuse the following elements under the [Creative Commons Attribution](http://creativecommons.org/licenses/by/4.0/) license: pattern icon, pattern name, problem and solution statements (in bold), and the sketch. Other portions are protected by copyright.\n\n[Enterprise Integration Patterns](https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20)\nThe de-facto language for designing asynchronous, distributed systems. Over 100,000 copies sold.\n\n[The Software Architect Elevator](https://www.architectelevator.com/book)\n\n Rethink the role of architects as a connecting element across organizational layers. Acquire the technical, communication, and organizational skills to succeed in this new role.\n\n[Cloud Strategy](https://www.cloudstrategybook.com)\n\n Make your cloud migration a success by translating high-level goals into conscious decisions with well-understood trade-offs.\n\n[Platform Strategy](https://www.platformstrategybook.info)\n\n Platforms can boost innovation through harmonization, but they aren't easy to build. Learn from over a decade of designing and rolling out IT platforms.", "znaku_textu": 6444, "slov": 562, "odkazu": 108, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/Resequencer.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 06:03:45", "sha256": "cafe3058fa70fe3bda25f83941e1ac604875e172d2388f6a334c7ff84327f42f", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://creativecommons.org/licenses/by/4.0/", "https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "https://www.architectelevator.com/book", "https://www.cloudstrategybook.com/", "https://www.platformstrategybook.info/"]} {"url": "https://www.enterpriseintegrationpatterns.com/ReturnAddress.html", "titulek": "Return Address - Enterprise Integration Patterns", "h1": "", "popis": "How does a replier know where to send the reply?", "klicova_slova": "Return Address,integration, messaging, events, patterns, event-driven, coupling, eai, middleware, application integration, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns", "og:title": "Return Address - Enterprise Integration Patterns", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/ReturnAddress.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/ReturnAddressSolution.gif"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Example: Golang ChannelsNEW"}, {"uroven": 2, "text": "Integration Pattern Language"}], "markdown": "| | Return Address[Messaging Patterns](index.html) » [Message Construction](MessageConstructionIntro.html) | [Contents](toc.html)[⇐ Prev](RequestReply.html)[Next ⇒](CorrelationIdentifier.html) |\n| --- | --- | --- |\n\nMy application is using [*Messaging*](Messaging.html) to perform a [*Request-Reply*](RequestReply.html).\n\nHow does a replier know where to send the reply?\n\nThe request message should contain a *Return Address* that indicates where to send the reply message.\n\nThis way, the replier does not need to know where to send the reply, it can just ask the request. If different messages to the same replier require replies to different places, the replier knows where to send the reply for each request. This encapsulates the knowledge of what channels to use for requests and replies within the requestor so those decisions do not have to be hard coded within the replier. A *Return Address* is put in the header of a message because it’s not part of the data being transmitted.\n\n...\nRead the entire pattern in the book [Enterprise Integration Patterns](/books1.html)\n\n## Example: Golang Channels[NEW](/ramblings/eip1_examples_updated.html)\n\nIn Go, channels are first-class language constructs, making it easy to specify a channel as return address by including a field of type chan in the structure to be passed as the request:\n\n```\ntype Request struct {\n data []int\n resultChan chan int\n}\n```\n\nA function handling requests can now publish responses to the channel provided in the Request structure:\n\n```\nfunc handle(queue chan *Request) {\n for req := range queue {\n req.resultChan <- sum(req.data)\n }\n}\n```\n\nRequestors can now specify the desired return channel with the request as in the following example:\n\n```\nreqChannel := make(chan *Request, 10)\ngo handle(reqChannel)\n// Make two requests with separate return channels\nrequest1 := &Request{[]int{3, 4, 5}, make(chan int)}\nrequest2 := &Request{[]int{1, 2, 3}, make(chan int)}\nreqChannel <- request1\nreqChannel <- request2\n \n// Receive results on respective channels\nfmt.Printf(\"answer: %d %d\\n\", <-request1.resultChan, <-request2.resultChan)\n```\n\nFind the source for this code snippet on [Github](https://github.com/spac3lord/eip/tree/master/ReturnAddress)\n\n**Related patterns:**\n\n[*Correlation Identifier*](CorrelationIdentifier.html), [*Emerging Standards and Futures in Enterprise Integration*](Future.html), [*Message Channel*](MessageChannel.html), [*Messaging*](Messaging.html), [*Request-Reply*](RequestReply.html)\n\n---\n\n## Integration Pattern Language\n\n[Message Construct.](MessageConstructionIntro.html)\n\n[Message](Message.html)\n\n[Command Message](CommandMessage.html)\n\n[Document Message](DocumentMessage.html)\n\n[Event Message](EventMessage.html)\n\n[Request-Reply](RequestReply.html)\n\n[Return Address](ReturnAddress.html)\n\n[Correlation Identifier](CorrelationIdentifier.html)\n\n[Message Sequence](MessageSequence.html)\n\n[Message Expiration](MessageExpiration.html)\n\n[Format Indicator](FormatIndicator.html)\n\n[Message Routing](MessageRoutingIntro.html)\n\n[Pipes-and-Filters](PipesAndFilters.html)\n\n[Message Router](MessageRouter.html)\n\n[Content-based Router](ContentBasedRouter.html)\n\n[Message Filter](Filter.html)\n\n[Dynamic Router](DynamicRouter.html)\n\n[Recipient List](RecipientList.html)\n\n[Splitter](Sequencer.html)\n\n[Aggregator](Aggregator.html)\n\n[Resequencer](Resequencer.html)\n\n[Composed Msg. Processor](DistributionAggregate.html)\n\n[Scatter-Gather](BroadcastAggregate.html)\n\n[Routing Slip](RoutingTable.html)\n\n[Process Manager](ProcessManager.html)\n\n[Message Broker](MessageBroker.html)\n\n[Message\nTransformation](MessageTransformationIntro.html)\n\n[Message Translator](MessageTranslator.html)\n\n[Envelope Wrapper](EnvelopeWrapper.html)\n\n[Content Enricher](DataEnricher.html)\n\n[Content Filter](ContentFilter.html)\n\n[Claim Check](StoreInLibrary.html)\n\n[Normalizer](Normalizer.html)\n\n[Canonical Data Model](CanonicalDataModel.html)\n\n[Messaging Endpoints](MessagingEndpointsIntro.html)\n\n[Message Endpoint](MessageEndpoint.html)\n\n[Messaging Gateway](MessagingGateway.html)\n\n[Messaging Mapper](MessagingMapper.html)\n\n[Transactional Client](TransactionalClient.html)\n\n[Polling Consumer](PollingConsumer.html)\n\n[Event-driven Consumer](EventDrivenConsumer.html)\n\n[Competing Consumers](CompetingConsumers.html)\n\n[Message Dispatcher](MessageDispatcher.html)\n\n[Selective Consumer](MessageSelector.html)\n\n[Durable Subscriber](DurableSubscription.html)\n\n[Idempotent Receiver](IdempotentReceiver.html)\n\n[Service Activator](MessagingAdapter.html)\n\n[Messaging Channels](MessagingChannelsIntro.html)\n\n[Message Channel](MessageChannel.html)\n\n[Point-to-Point Channel](PointToPointChannel.html)\n\n[Publish-Subscr. Channel](PublishSubscribeChannel.html)\n\n[Datatype Channel](DatatypeChannel.html)\n\n[Invalid Message Channel](InvalidMessageChannel.html)\n\n[Dead Letter Channel](DeadLetterChannel.html)\n\n[Guaranteed Delivery](GuaranteedMessaging.html)\n\n[Channel Adapter](ChannelAdapter.html)\n\n[Messaging Bridge](MessagingBridge.html)\n\n[Message Bus](MessageBus.html)\n\n[Systems Mgmt.](SystemManagementIntro.html)\n\n[Control Bus](ControlBus.html)\n\n[Detour](Detour.html)\n\n[Wire Tap](WireTap.html)\n\n[Message History](MessageHistory.html)\n\n[Message Store](MessageStore.html)\n\n[Smart Proxy](SmartProxy.html)\n\n[Test Message](TestMessage.html)\n\n[Channel Purger](ChannelPurger.html)", "znaku_textu": 5180, "slov": 471, "odkazu": 110, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/ReturnAddress.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 06:03:32", "sha256": "207c823f2b8eec56be3e43e1882cd155542a5c3dccd6a3843fa1d35aeaab948a", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/spac3lord/eip/tree/master/ReturnAddress", "http://creativecommons.org/licenses/by/4.0/", "https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "https://www.architectelevator.com/book", "https://www.cloudstrategybook.com/", "https://www.platformstrategybook.info/"]} {"url": "https://www.enterpriseintegrationpatterns.com/RoutingTable.html", "titulek": "Routing Slip - Enterprise Integration Patterns", "h1": "", "popis": "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?", "klicova_slova": "Routing Slip,integration, messaging, events, patterns, event-driven, coupling, eai, middleware, application integration, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns", "og:title": "Routing Slip - Enterprise Integration Patterns", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/RoutingTable.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/RoutingTableSimple.gif"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Integration Pattern Language"}], "markdown": "| | Routing Slip[Messaging Patterns](index.html) » [Message Routing](MessageRoutingIntro.html) | [Contents](toc.html)[⇐ Prev](BroadcastAggregate.html)[Next ⇒](ProcessManager.html) |\n| --- | --- | --- |\n\nMost of the routing patterns presented in this section route incoming messages to one or more destinations based on a set of rules. Sometimes, though, we need to route a message not just to a single component, but through a whole series of components. Let's assume, for example, that we use a [*Pipes and Filters*](PipesAndFilters.html) architecture to process incoming messages that have to undergo a sequence of processing steps and business rule validations. Since the nature of the validations varies widely and may depend on external systems (e.g., credit card validations), we implement each type of step as a separate filter. Each filter inspects the incoming message, and applies the business rule(s) to the message. If the message does not fulfill the conditions specified by the rules it is routed to an exception channel. The channels between the filters determine the sequence of validations that the message needs to undergo.\n\nNow let's assume, though, that the set of validations to perform against each message depends on the message type (for example, purchase order request do not need credit card validation or customers who send orders over a VPN may not require decryption and authentication). To accommodate this requirement we need to find a configuration that can route the message through a different sequence of filters depending on the type of the message.\n\nHow 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?\n\nAttach 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.\n\nWe insert a special component into the beginning of the process that computes the list of required steps for each message. It then attaches the list as a *Routing Slip* to the message and starts the process by routing the message to the first processing step. After successful processing, each processing step looks at the *Routing Slip* and passes the message to the next processing step specified in the routing table.\n\n...\nRead the entire pattern in the book [Enterprise Integration Patterns](/books1.html)\n\n**Related patterns:**\n\n[*Content-Based Router*](ContentBasedRouter.html), [*Message Filter*](Filter.html), [*Message Router*](MessageRouter.html), [*Pipes and Filters*](PipesAndFilters.html), [*Process Manager*](ProcessManager.html), [*Publish-Subscribe Channel*](PublishSubscribeChannel.html), [*Return Address*](ReturnAddress.html)\n\n---\n\n## Integration Pattern Language\n\n[Message Construct.](MessageConstructionIntro.html)\n\n[Message](Message.html)\n\n[Command Message](CommandMessage.html)\n\n[Document Message](DocumentMessage.html)\n\n[Event Message](EventMessage.html)\n\n[Request-Reply](RequestReply.html)\n\n[Return Address](ReturnAddress.html)\n\n[Correlation Identifier](CorrelationIdentifier.html)\n\n[Message Sequence](MessageSequence.html)\n\n[Message Expiration](MessageExpiration.html)\n\n[Format Indicator](FormatIndicator.html)\n\n[Message Routing](MessageRoutingIntro.html)\n\n[Pipes-and-Filters](PipesAndFilters.html)\n\n[Message Router](MessageRouter.html)\n\n[Content-based Router](ContentBasedRouter.html)\n\n[Message Filter](Filter.html)\n\n[Dynamic Router](DynamicRouter.html)\n\n[Recipient List](RecipientList.html)\n\n[Splitter](Sequencer.html)\n\n[Aggregator](Aggregator.html)\n\n[Resequencer](Resequencer.html)\n\n[Composed Msg. Processor](DistributionAggregate.html)\n\n[Scatter-Gather](BroadcastAggregate.html)\n\n[Routing Slip](RoutingTable.html)\n\n[Process Manager](ProcessManager.html)\n\n[Message Broker](MessageBroker.html)\n\n[Message\nTransformation](MessageTransformationIntro.html)\n\n[Message Translator](MessageTranslator.html)\n\n[Envelope Wrapper](EnvelopeWrapper.html)\n\n[Content Enricher](DataEnricher.html)\n\n[Content Filter](ContentFilter.html)\n\n[Claim Check](StoreInLibrary.html)\n\n[Normalizer](Normalizer.html)\n\n[Canonical Data Model](CanonicalDataModel.html)\n\n[Messaging Endpoints](MessagingEndpointsIntro.html)\n\n[Message Endpoint](MessageEndpoint.html)\n\n[Messaging Gateway](MessagingGateway.html)\n\n[Messaging Mapper](MessagingMapper.html)\n\n[Transactional Client](TransactionalClient.html)\n\n[Polling Consumer](PollingConsumer.html)\n\n[Event-driven Consumer](EventDrivenConsumer.html)\n\n[Competing Consumers](CompetingConsumers.html)\n\n[Message Dispatcher](MessageDispatcher.html)\n\n[Selective Consumer](MessageSelector.html)\n\n[Durable Subscriber](DurableSubscription.html)\n\n[Idempotent Receiver](IdempotentReceiver.html)\n\n[Service Activator](MessagingAdapter.html)\n\n[Messaging Channels](MessagingChannelsIntro.html)\n\n[Message Channel](MessageChannel.html)\n\n[Point-to-Point Channel](PointToPointChannel.html)\n\n[Publish-Subscr. Channel](PublishSubscribeChannel.html)\n\n[Datatype Channel](DatatypeChannel.html)\n\n[Invalid Message Channel](InvalidMessageChannel.html)\n\n[Dead Letter Channel](DeadLetterChannel.html)\n\n[Guaranteed Delivery](GuaranteedMessaging.html)\n\n[Channel Adapter](ChannelAdapter.html)\n\n[Messaging Bridge](MessagingBridge.html)\n\n[Message Bus](MessageBus.html)\n\n[Systems Mgmt.](SystemManagementIntro.html)\n\n[Control Bus](ControlBus.html)\n\n[Detour](Detour.html)\n\n[Wire Tap](WireTap.html)\n\n[Message History](MessageHistory.html)\n\n[Message Store](MessageStore.html)\n\n[Smart Proxy](SmartProxy.html)\n\n[Test Message](TestMessage.html)\n\n[Channel Purger](ChannelPurger.html)", "znaku_textu": 5536, "slov": 556, "odkazu": 108, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/RoutingTable.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 06:03:48", "sha256": "5e46ed0bbff9cbd9b7d56986a778230fcbffd4de408735b71e34b93b428844cd", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://creativecommons.org/licenses/by/4.0/", "https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "https://www.architectelevator.com/book", "https://www.cloudstrategybook.com/", "https://www.platformstrategybook.info/"]} {"url": "https://www.enterpriseintegrationpatterns.com/Sequencer.html", "titulek": "Splitter - Enterprise Integration Patterns", "h1": "", "popis": "How can we process a message if it contains multiple elements, each of which may have to be processed in a different way?", "klicova_slova": "Splitter,integration, messaging, events, patterns, event-driven, coupling, eai, middleware, application integration, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns", "og:title": "Splitter - Enterprise Integration Patterns", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/Sequencer.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/Sequencer.gif"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Integration Pattern Language"}], "markdown": "Messaging Patterns\n\n[Messaging Patterns](index.html)\n\n- [Integration Styles](IntegrationStylesIntro.html)\n- [Messaging Systems](MessagingComponentsIntro.html)\n- [Messaging Channels](MessagingChannelsIntro.html)\n- [Message Construction](MessageConstructionIntro.html)\n- [Interlude: Simple Messaging](SimpleMessagingIntro.html)\n- [Message Routing](MessageRoutingIntro.html)\n- [Message Transformation](MessageTransformationIntro.html)\n- [Interlude: Composed Messaging](ComposedMessagingExample.html)\n- [Messaging Endpoints](MessagingEndpointsIntro.html)\n- [System Management](SystemManagementIntro.html)\n- Interlude: Systems Management Example\n- Integration Patterns in Practice\n- Concluding Remarks\n- Appendices\n\n| | Splitter[Messaging Patterns](index.html) » [Message Routing](MessageRoutingIntro.html) | [Contents](toc.html)[⇐ Prev](RecipientList.html)[Next ⇒](Aggregator.html) |\n| --- | --- | --- |\n\nMany messages passing through an integration solution consist of multiple elements. For example, an order placed by a customer consists of more than just a single line item. As outlined in the description of the [*Content-Based Router*](ContentBasedRouter.html), each line item may need to be handled by a different inventory system. Thus, we need to find an approach to process a complete order, but treat each order item contained in the order individually.\n\nHow can we process a message if it contains multiple elements, each of which may have to be processed in a different way?\n\nUse a *Splitter* to break out the composite message into a series of individual messages, each containing data related to one item.\n\nuse a *Splitter* that consumes one message containing a list of repeating elements, each of which can be processed individually. The *Splitter* publishes a one message for each single element (or a subset of elements) from the original message.\n\n...\nRead the entire pattern in the book [Enterprise Integration Patterns](/books1.html)\n\n**Related patterns:**\n\n[*Aggregator*](Aggregator.html), [*Content-Based Router*](ContentBasedRouter.html), [*Content Filter*](ContentFilter.html), [*Correlation Identifier*](CorrelationIdentifier.html), [*Envelope Wrapper*](EnvelopeWrapper.html), [*Event-Driven Consumer*](EventDrivenConsumer.html), [*Pipes and Filters*](PipesAndFilters.html), [*Publish-Subscribe Channel*](PublishSubscribeChannel.html)\n\n---\n\n## Integration Pattern Language\n\n[Message Construct.](MessageConstructionIntro.html)\n\n[Message](Message.html)\n\n[Command Message](CommandMessage.html)\n\n[Document Message](DocumentMessage.html)\n\n[Event Message](EventMessage.html)\n\n[Request-Reply](RequestReply.html)\n\n[Return Address](ReturnAddress.html)\n\n[Correlation Identifier](CorrelationIdentifier.html)\n\n[Message Sequence](MessageSequence.html)\n\n[Message Expiration](MessageExpiration.html)\n\n[Format Indicator](FormatIndicator.html)\n\n[Message Routing](MessageRoutingIntro.html)\n\n[Pipes-and-Filters](PipesAndFilters.html)\n\n[Message Router](MessageRouter.html)\n\n[Content-based Router](ContentBasedRouter.html)\n\n[Message Filter](Filter.html)\n\n[Dynamic Router](DynamicRouter.html)\n\n[Recipient List](RecipientList.html)\n\n[Splitter](Sequencer.html)\n\n[Aggregator](Aggregator.html)\n\n[Resequencer](Resequencer.html)\n\n[Composed Msg. Processor](DistributionAggregate.html)\n\n[Scatter-Gather](BroadcastAggregate.html)\n\n[Routing Slip](RoutingTable.html)\n\n[Process Manager](ProcessManager.html)\n\n[Message Broker](MessageBroker.html)\n\n[Message\nTransformation](MessageTransformationIntro.html)\n\n[Message Translator](MessageTranslator.html)\n\n[Envelope Wrapper](EnvelopeWrapper.html)\n\n[Content Enricher](DataEnricher.html)\n\n[Content Filter](ContentFilter.html)\n\n[Claim Check](StoreInLibrary.html)\n\n[Normalizer](Normalizer.html)\n\n[Canonical Data Model](CanonicalDataModel.html)\n\n[Messaging Endpoints](MessagingEndpointsIntro.html)\n\n[Message Endpoint](MessageEndpoint.html)\n\n[Messaging Gateway](MessagingGateway.html)\n\n[Messaging Mapper](MessagingMapper.html)\n\n[Transactional Client](TransactionalClient.html)\n\n[Polling Consumer](PollingConsumer.html)\n\n[Event-driven Consumer](EventDrivenConsumer.html)\n\n[Competing Consumers](CompetingConsumers.html)\n\n[Message Dispatcher](MessageDispatcher.html)\n\n[Selective Consumer](MessageSelector.html)\n\n[Durable Subscriber](DurableSubscription.html)\n\n[Idempotent Receiver](IdempotentReceiver.html)\n\n[Service Activator](MessagingAdapter.html)\n\n[Messaging Channels](MessagingChannelsIntro.html)\n\n[Message Channel](MessageChannel.html)\n\n[Point-to-Point Channel](PointToPointChannel.html)\n\n[Publish-Subscr. Channel](PublishSubscribeChannel.html)\n\n[Datatype Channel](DatatypeChannel.html)\n\n[Invalid Message Channel](InvalidMessageChannel.html)\n\n[Dead Letter Channel](DeadLetterChannel.html)\n\n[Guaranteed Delivery](GuaranteedMessaging.html)\n\n[Channel Adapter](ChannelAdapter.html)\n\n[Messaging Bridge](MessagingBridge.html)\n\n[Message Bus](MessageBus.html)\n\n[Systems Mgmt.](SystemManagementIntro.html)\n\n[Control Bus](ControlBus.html)\n\n[Detour](Detour.html)\n\n[Wire Tap](WireTap.html)\n\n[Message History](MessageHistory.html)\n\n[Message Store](MessageStore.html)\n\n[Smart Proxy](SmartProxy.html)\n\n[Test Message](TestMessage.html)\n\n[Channel Purger](ChannelPurger.html)\n\n- » [Read the latest in My Blog](/ramblings)\n- » [Get more insights from My Articles](/articles.html)\n- » [See me live in my Upcoming Talks](/talks)\n\nYou can reuse the following elements under the [Creative Commons Attribution](http://creativecommons.org/licenses/by/4.0/) license: pattern icon, pattern name, problem and solution statements (in bold), and the sketch. Other portions are protected by copyright.\n\n[Enterprise Integration Patterns](https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20)\nThe de-facto language for designing asynchronous, distributed systems. Over 100,000 copies sold.\n\n[The Software Architect Elevator](https://www.architectelevator.com/book)\n\n Rethink the role of architects as a connecting element across organizational layers. Acquire the technical, communication, and organizational skills to succeed in this new role.\n\n[Cloud Strategy](https://www.cloudstrategybook.com)\n\n Make your cloud migration a success by translating high-level goals into conscious decisions with well-understood trade-offs.\n\n[Platform Strategy](https://www.platformstrategybook.info)\n\n Platforms can boost innovation through harmonization, but they aren't easy to build. Learn from over a decade of designing and rolling out IT platforms.", "znaku_textu": 6309, "slov": 539, "odkazu": 108, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/Sequencer.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 06:03:44", "sha256": "98c9d9340b6d8266d1f65a5d26adc075380da9261bb1d3b3d06ea5f9079cd9ef", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://creativecommons.org/licenses/by/4.0/", "https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "https://www.architectelevator.com/book", "https://www.cloudstrategybook.com/", "https://www.platformstrategybook.info/"]} {"url": "https://www.enterpriseintegrationpatterns.com/SharedDataBaseIntegration.html", "titulek": "Shared Database - Enterprise Integration Patterns", "h1": "", "popis": "How can I integrate multiple applications so that they work together and can exchange information?", "klicova_slova": "Shared Database,integration, messaging, events, patterns, event-driven, coupling, eai, middleware, application integration, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns", "og:title": "Shared Database - Enterprise Integration Patterns", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/SharedDataBaseIntegration.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/SharedDatabaseIntegration.gif"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Integration Pattern Language"}], "markdown": "| | Shared Database[Messaging Patterns](index.html) » [Integration Styles](IntegrationStylesIntro.html) | [Contents](toc.html)[⇐ Prev](FileTransferIntegration.html)[Next ⇒](EncapsulatedSynchronousIntegration.html) |\n| --- | --- | --- |\n\nAn enterprise has multiple applications that are being built independently, with different languages and platforms. The enterprise needs information to be shared rapidly and consistently.\n\nHow can I integrate multiple applications so that they work together and can exchange information?\n\nIntegrate applications by having them store their data in a single *Shared Database*.\n\nIf a family of integrated applications all rely on the same\ndatabase, then you can be pretty sure that they are always consistent\nall of the time. If you do get simultaneous updates to a single piece\nof data from different sources, then you have transaction management\nsystems that handle that about as gracefully as it ever can be\nmanaged. Since the time between updates is so small, any errors are\nmuch easier to find and fix.\n\nOne of the biggest difficulties with *Shared Database* is coming up with a\nsuitable design for the shared database. Coming up with a unified\nschema that can meet the needs of multiple applications is a very difficult\nexercise, often resulting in a schema that application programmers\nfind difficult to work with.\n\nIf the technical difficulties of designing a unified schema\naren't enough, there are also severe political difficulties. If a\ncritical application is likely to suffer delays in order to work with\na unified schema, then often there is irresistable pressure to\nseparate. Human conflicts between departments often exacerbate this\nproblem.\n\n...\nRead the entire pattern in the book [Enterprise Integration Patterns](/books1.html)\n\n**Related patterns:**\n\n[*Remote Procedure Invocation*](EncapsulatedSynchronousIntegration.html), [*File Transfer*](FileTransferIntegration.html), [*Messaging*](Messaging.html)\n\n---\n\n## Integration Pattern Language\n\n[Message Construct.](MessageConstructionIntro.html)\n\n[Message](Message.html)\n\n[Command Message](CommandMessage.html)\n\n[Document Message](DocumentMessage.html)\n\n[Event Message](EventMessage.html)\n\n[Request-Reply](RequestReply.html)\n\n[Return Address](ReturnAddress.html)\n\n[Correlation Identifier](CorrelationIdentifier.html)\n\n[Message Sequence](MessageSequence.html)\n\n[Message Expiration](MessageExpiration.html)\n\n[Format Indicator](FormatIndicator.html)\n\n[Message Routing](MessageRoutingIntro.html)\n\n[Pipes-and-Filters](PipesAndFilters.html)\n\n[Message Router](MessageRouter.html)\n\n[Content-based Router](ContentBasedRouter.html)\n\n[Message Filter](Filter.html)\n\n[Dynamic Router](DynamicRouter.html)\n\n[Recipient List](RecipientList.html)\n\n[Splitter](Sequencer.html)\n\n[Aggregator](Aggregator.html)\n\n[Resequencer](Resequencer.html)\n\n[Composed Msg. Processor](DistributionAggregate.html)\n\n[Scatter-Gather](BroadcastAggregate.html)\n\n[Routing Slip](RoutingTable.html)\n\n[Process Manager](ProcessManager.html)\n\n[Message Broker](MessageBroker.html)\n\n[Message\nTransformation](MessageTransformationIntro.html)\n\n[Message Translator](MessageTranslator.html)\n\n[Envelope Wrapper](EnvelopeWrapper.html)\n\n[Content Enricher](DataEnricher.html)\n\n[Content Filter](ContentFilter.html)\n\n[Claim Check](StoreInLibrary.html)\n\n[Normalizer](Normalizer.html)\n\n[Canonical Data Model](CanonicalDataModel.html)\n\n[Messaging Endpoints](MessagingEndpointsIntro.html)\n\n[Message Endpoint](MessageEndpoint.html)\n\n[Messaging Gateway](MessagingGateway.html)\n\n[Messaging Mapper](MessagingMapper.html)\n\n[Transactional Client](TransactionalClient.html)\n\n[Polling Consumer](PollingConsumer.html)\n\n[Event-driven Consumer](EventDrivenConsumer.html)\n\n[Competing Consumers](CompetingConsumers.html)\n\n[Message Dispatcher](MessageDispatcher.html)\n\n[Selective Consumer](MessageSelector.html)\n\n[Durable Subscriber](DurableSubscription.html)\n\n[Idempotent Receiver](IdempotentReceiver.html)\n\n[Service Activator](MessagingAdapter.html)\n\n[Messaging Channels](MessagingChannelsIntro.html)\n\n[Message Channel](MessageChannel.html)\n\n[Point-to-Point Channel](PointToPointChannel.html)\n\n[Publish-Subscr. Channel](PublishSubscribeChannel.html)\n\n[Datatype Channel](DatatypeChannel.html)\n\n[Invalid Message Channel](InvalidMessageChannel.html)\n\n[Dead Letter Channel](DeadLetterChannel.html)\n\n[Guaranteed Delivery](GuaranteedMessaging.html)\n\n[Channel Adapter](ChannelAdapter.html)\n\n[Messaging Bridge](MessagingBridge.html)\n\n[Message Bus](MessageBus.html)\n\n[Systems Mgmt.](SystemManagementIntro.html)\n\n[Control Bus](ControlBus.html)\n\n[Detour](Detour.html)\n\n[Wire Tap](WireTap.html)\n\n[Message History](MessageHistory.html)\n\n[Message Store](MessageStore.html)\n\n[Smart Proxy](SmartProxy.html)\n\n[Test Message](TestMessage.html)\n\n[Channel Purger](ChannelPurger.html)", "znaku_textu": 4678, "slov": 407, "odkazu": 108, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/patterns/messaging/SharedDataBaseIntegration.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 14:50:56", "sha256": "8b224e20dd68b00555c7184d9b4d12ea46f5f941d50bc43628f4ba2bbd16d240", "hloubka": 3, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://creativecommons.org/licenses/by/4.0/", "https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "https://www.architectelevator.com/book", "https://www.cloudstrategybook.com/", "https://www.platformstrategybook.info/"]} {"url": "https://www.enterpriseintegrationpatterns.com/SimpleMessagingIntro.html", "titulek": "Introduction to Simple Messaging Examples - Enterprise Integration Patterns", "h1": "", "popis": "So far, we’ve introduced a lot of patterns. We’ve seen the basic Messaging Components, such as Message Channel, Message, and Message Endpoint. We’ve also seen detailed patterns for Messaging Channels and for Message Construction.", "klicova_slova": "Introduction to Simple Messaging Examples,integration, messaging, events, patterns, event-driven, coupling, eai, middleware, application integration, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns", "og:title": "Introduction to Simple Messaging Examples - Enterprise Integration Patterns", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/SimpleMessagingIntro.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/eip1_patterns_wide.png"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Request/Reply Example"}, {"uroven": 2, "text": "Publish/Subscribe Example"}, {"uroven": 2, "text": "Integration Pattern Language"}], "markdown": "| | Introduction to Simple Messaging Examples[Messaging Patterns](index.html) » [Interlude: Simple Messaging](SimpleMessagingIntro.html) | [Contents](toc.html)[⇐ Prev](FormatIndicator.html)[Next ⇒](RequestReplyJmsExample.html) |\n| --- | --- | --- |\n\nSo far, we’ve introduced a lot of patterns. We’ve seen the basic Messaging Components, such as [*Message Channel*](MessageChannel.html), [*Message*](Message.html), and [*Message Endpoint*](MessageEndpoint.html). We’ve also seen detailed patterns for Messaging Channels and for Message Construction.\n\nSo how do all of these patterns fit together? How does a developer integrate applications using these patterns? What does the code look like, and how does it work?\n\nThis is the chapter where we really get to see the code. We have two examples:\n\n- **Request/Reply** — Demonstrates (in Java and .NET/C#) how to use messaging to send a request message and respond with a reply message.\n- **Publish/Subscribe** — Explores how to use a JMS Topic to implement the Observer pattern.\n\nThese two simple examples should get you started on how add messaging to your own applications.\n\n## Request/Reply Example\n\nThis is a simple but powerful example, transmitting a request and transmitting back a reply. It consists of two main classes:\n\n- **Requestor** — The object that sends the request message and expects to receive the reply message.\n- **Replier** — The object that receives the request message and sends a reply message in response.\n\nThese two simple classes sending simple messages illustrate a number of the patterns:\n\n- **[*Message Channel*](MessageChannel.html)** and **[*Point-to-Point Channel*](PointToPointChannel.html)** — One channel for transmitting the requests, another for transmitting the replies.\n- **[*Document Message*](DocumentMessage.html)** — The default type of message, used as both the request and the reply.\n- **[*Request-Reply*](RequestReply.html)** — A pair of messages sent over a pair of channels, allowing the two applications to have a two-way conversation.\n- **[*Return Address*](ReturnAddress.html)** — The channel to send the response on.\n- **[*Correlation Identifier*](CorrelationIdentifier.html)** — The ID of the request that caused this response.\n- **[*Datatype Channel*](DatatypeChannel.html)** — All of the messages on each channel should be of the same type.\n- **[*Invalid Message Channel*](InvalidMessageChannel.html)** — What happens to messages that aren’t of the right type.\n\nThe example code also demostrates a couple of patterns from the Messaging Endpoints chapter later in the book:\n\n- **[*Polling Consumer*](PollingConsumer.html)** — How the requestor consumes reply messages.\n- **[*Event-Driven Consumer*](EventDrivenConsumer.html)** — How the replier consumes request messages.\n\nWhile this book is technology-, product-, and language-neutral, code cannot be. So we’ve choosen two messaging programming platforms to implement this example:\n\n- The JMS API in Java J2EE\n- The MSMQ API in Microsoft .NET using C#\n\nThe same request/reply example is implemented in both platforms. So choose your favorite platform as an example of how messaging works. If you’d like to see how messaging works on the other platform, even if you don’t know how to write code for that platform, you should be able to figure out how that code works by comparing it to the code in the language you already know.\n\n## Publish/Subscribe Example\n\nThis example explores how to implement the Observer pattern using a [*Publish-Subscribe Channel*](PublishSubscribeChannel.html). It considers distribution and threading issues and discusses how messaging greatly simplifies these issues. The example shows how to implement both the push and pull models of notification and compares the consequences of each. It also explores how to design an adaquate set of channels needed for a complex enterprise with numerous subjects notifing numerous observers.\n\nThe discussion and sample code will illustrate several patterns:\n\n- **[*Publish-Subscribe Channel*](PublishSubscribeChannel.html)** — The channel that provides publish/subscribe notification.\n- **[*Event Message*](EventMessage.html)** — The message type used to send notifications.\n- **[*Request-Reply*](RequestReply.html)** — The technique used as part of the pull model for an observer to request state from the subject.\n- **[*Command Message*](CommandMessage.html)** — The message type used by an observer to request state from the subject.\n- **[*Document Message*](DocumentMessage.html)** — The message type used by a subject to send its state to an observer.\n- **[*Return Address*](ReturnAddress.html)** — Tells the subject how to send the state to the observer.\n- **[*Datatype Channel*](DatatypeChannel.html)** — The main guideline for whether two unrelated subjects can use the same channel to update the same group of observers.\n\nThe example code also demostrates a couple of patterns from the Messaging Endpoints chapter later in the book:\n\n- **[*Messaging Gateway*](MessagingGateway.html)** — How the subject and observer encapsulate the messaging code so that they are not messaging-specific.\n- **[*Event-Driven Consumer*](EventDrivenConsumer.html)** — How the observers consume notification messages.\n- **[*Durable Subscriber*](DurableSubscription.html)** — An observer that does not want to miss notifications, even if the observer is temporarily disconnected when the notification is sent.\n\nThis example is implemented in Java using JMS because JMS supports [*Publish-Subscribe Channel*](PublishSubscribeChannel.html) as an explicit feature of the API through its Topic interface. .NET does not provide a similar level of support for using the publish/subscribe semantics in MSMQ; when it does, the techniques in the JMS example should be readily applicable to .NET programs as well.\n\n## Integration Pattern Language\n\n[Message Construct.](MessageConstructionIntro.html)\n\n[Message](Message.html)\n\n[Command Message](CommandMessage.html)\n\n[Document Message](DocumentMessage.html)\n\n[Event Message](EventMessage.html)\n\n[Request-Reply](RequestReply.html)\n\n[Return Address](ReturnAddress.html)\n\n[Correlation Identifier](CorrelationIdentifier.html)\n\n[Message Sequence](MessageSequence.html)\n\n[Message Expiration](MessageExpiration.html)\n\n[Format Indicator](FormatIndicator.html)\n\n[Message Routing](MessageRoutingIntro.html)\n\n[Pipes-and-Filters](PipesAndFilters.html)\n\n[Message Router](MessageRouter.html)\n\n[Content-based Router](ContentBasedRouter.html)\n\n[Message Filter](Filter.html)\n\n[Dynamic Router](DynamicRouter.html)\n\n[Recipient List](RecipientList.html)\n\n[Splitter](Sequencer.html)\n\n[Aggregator](Aggregator.html)\n\n[Resequencer](Resequencer.html)\n\n[Composed Msg. Processor](DistributionAggregate.html)\n\n[Scatter-Gather](BroadcastAggregate.html)\n\n[Routing Slip](RoutingTable.html)\n\n[Process Manager](ProcessManager.html)\n\n[Message Broker](MessageBroker.html)\n\n[Message\nTransformation](MessageTransformationIntro.html)\n\n[Message Translator](MessageTranslator.html)\n\n[Envelope Wrapper](EnvelopeWrapper.html)\n\n[Content Enricher](DataEnricher.html)\n\n[Content Filter](ContentFilter.html)\n\n[Claim Check](StoreInLibrary.html)\n\n[Normalizer](Normalizer.html)\n\n[Canonical Data Model](CanonicalDataModel.html)\n\n[Messaging Endpoints](MessagingEndpointsIntro.html)\n\n[Message Endpoint](MessageEndpoint.html)\n\n[Messaging Gateway](MessagingGateway.html)\n\n[Messaging Mapper](MessagingMapper.html)\n\n[Transactional Client](TransactionalClient.html)\n\n[Polling Consumer](PollingConsumer.html)\n\n[Event-driven Consumer](EventDrivenConsumer.html)\n\n[Competing Consumers](CompetingConsumers.html)\n\n[Message Dispatcher](MessageDispatcher.html)\n\n[Selective Consumer](MessageSelector.html)\n\n[Durable Subscriber](DurableSubscription.html)\n\n[Idempotent Receiver](IdempotentReceiver.html)\n\n[Service Activator](MessagingAdapter.html)\n\n[Messaging Channels](MessagingChannelsIntro.html)\n\n[Message Channel](MessageChannel.html)\n\n[Point-to-Point Channel](PointToPointChannel.html)\n\n[Publish-Subscr. Channel](PublishSubscribeChannel.html)\n\n[Datatype Channel](DatatypeChannel.html)\n\n[Invalid Message Channel](InvalidMessageChannel.html)\n\n[Dead Letter Channel](DeadLetterChannel.html)\n\n[Guaranteed Delivery](GuaranteedMessaging.html)\n\n[Channel Adapter](ChannelAdapter.html)\n\n[Messaging Bridge](MessagingBridge.html)\n\n[Message Bus](MessageBus.html)\n\n[Systems Mgmt.](SystemManagementIntro.html)\n\n[Control Bus](ControlBus.html)\n\n[Detour](Detour.html)\n\n[Wire Tap](WireTap.html)\n\n[Message History](MessageHistory.html)\n\n[Message Store](MessageStore.html)\n\n[Smart Proxy](SmartProxy.html)\n\n[Test Message](TestMessage.html)\n\n[Channel Purger](ChannelPurger.html)", "znaku_textu": 8396, "slov": 980, "odkazu": 107, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/patterns/messaging/SimpleMessagingIntro.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 14:50:58", "sha256": "ee206e8247163263a8a8e9c5a6c8b53c8f94d712fb1ab15b62e1463ff6c1a7ea", "hloubka": 3, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "https://www.architectelevator.com/book", "https://www.cloudstrategybook.com/", "https://www.platformstrategybook.info/"]} {"url": "https://www.enterpriseintegrationpatterns.com/SmartProxy.html", "titulek": "Smart Proxy - Enterprise Integration Patterns", "h1": "", "popis": "How can you track messages on a service that publishes reply messages to the Return Address specified by the requestor?", "klicova_slova": "Smart Proxy,integration, messaging, events, patterns, event-driven, coupling, eai, middleware, application integration, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns", "og:title": "Smart Proxy - Enterprise Integration Patterns", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/SmartProxy.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/SmartProxy.gif"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Integration Pattern Language"}], "markdown": "Messaging Patterns\n\n[Messaging Patterns](index.html)\n\n- [Integration Styles](IntegrationStylesIntro.html)\n- [Messaging Systems](MessagingComponentsIntro.html)\n- [Messaging Channels](MessagingChannelsIntro.html)\n- [Message Construction](MessageConstructionIntro.html)\n- [Interlude: Simple Messaging](SimpleMessagingIntro.html)\n- [Message Routing](MessageRoutingIntro.html)\n- [Message Transformation](MessageTransformationIntro.html)\n- [Interlude: Composed Messaging](ComposedMessagingExample.html)\n- [Messaging Endpoints](MessagingEndpointsIntro.html)\n- [System Management](SystemManagementIntro.html)\n- Interlude: Systems Management Example\n- Integration Patterns in Practice\n- Concluding Remarks\n- Appendices\n\n| | Smart Proxy[Messaging Patterns](index.html) » [System Management](SystemManagementIntro.html) | [Contents](toc.html)[⇐ Prev](MessageStore.html)[Next ⇒](TestMessage.html) |\n| --- | --- | --- |\n\nA pair of [*Wire Tap*](WireTap.html)s can be used to track messages that flow through a component. However, this approach assumes that the component publishes messages to a fixed output channel. However, many service-style components publish reply messages to the channel specified by the [*Return Address*](ReturnAddress.html) included in the request message.\n\nHow can you track messages on a service that publishes reply messages to the Return Address specified by the requestor?\n\nUse a *Smart Proxy* to store the Return Address supplied by the original requestor and replace it with the address of the *Smart Proxy*. When the service sends the reply message route it to the original Return Address.\n\nThe *Smart Proxy* intercepts messages sent on the request channel to the [*Request-Reply*](RequestReply.html) service. For each incoming message, the *Smart Proxy* stores the [*Return Address*](ReturnAddress.html) specified by the original sender. It then replaces the [*Return Address*](ReturnAddress.html) in the message with the channel the reply channel that the *Smart Proxy* is listening on. When a reply message comes in on that channel, the *Smart Proxy* retrieves the stored [*Return Address*](ReturnAddress.html) and uses a [*Message Router*](MessageRouter.html) to forward the unmodified reply address to that channel.\n\n...\nRead the entire pattern in the book [Enterprise Integration Patterns](/books1.html)\n\n**Related patterns:**\n\n[*Correlation Identifier*](CorrelationIdentifier.html), [*Message Router*](MessageRouter.html), [*Request-Reply*](RequestReply.html), [*Return Address*](ReturnAddress.html), [*Wire Tap*](WireTap.html)\n\n---\n\n## Integration Pattern Language\n\n[Message Construct.](MessageConstructionIntro.html)\n\n[Message](Message.html)\n\n[Command Message](CommandMessage.html)\n\n[Document Message](DocumentMessage.html)\n\n[Event Message](EventMessage.html)\n\n[Request-Reply](RequestReply.html)\n\n[Return Address](ReturnAddress.html)\n\n[Correlation Identifier](CorrelationIdentifier.html)\n\n[Message Sequence](MessageSequence.html)\n\n[Message Expiration](MessageExpiration.html)\n\n[Format Indicator](FormatIndicator.html)\n\n[Message Routing](MessageRoutingIntro.html)\n\n[Pipes-and-Filters](PipesAndFilters.html)\n\n[Message Router](MessageRouter.html)\n\n[Content-based Router](ContentBasedRouter.html)\n\n[Message Filter](Filter.html)\n\n[Dynamic Router](DynamicRouter.html)\n\n[Recipient List](RecipientList.html)\n\n[Splitter](Sequencer.html)\n\n[Aggregator](Aggregator.html)\n\n[Resequencer](Resequencer.html)\n\n[Composed Msg. Processor](DistributionAggregate.html)\n\n[Scatter-Gather](BroadcastAggregate.html)\n\n[Routing Slip](RoutingTable.html)\n\n[Process Manager](ProcessManager.html)\n\n[Message Broker](MessageBroker.html)\n\n[Message\nTransformation](MessageTransformationIntro.html)\n\n[Message Translator](MessageTranslator.html)\n\n[Envelope Wrapper](EnvelopeWrapper.html)\n\n[Content Enricher](DataEnricher.html)\n\n[Content Filter](ContentFilter.html)\n\n[Claim Check](StoreInLibrary.html)\n\n[Normalizer](Normalizer.html)\n\n[Canonical Data Model](CanonicalDataModel.html)\n\n[Messaging Endpoints](MessagingEndpointsIntro.html)\n\n[Message Endpoint](MessageEndpoint.html)\n\n[Messaging Gateway](MessagingGateway.html)\n\n[Messaging Mapper](MessagingMapper.html)\n\n[Transactional Client](TransactionalClient.html)\n\n[Polling Consumer](PollingConsumer.html)\n\n[Event-driven Consumer](EventDrivenConsumer.html)\n\n[Competing Consumers](CompetingConsumers.html)\n\n[Message Dispatcher](MessageDispatcher.html)\n\n[Selective Consumer](MessageSelector.html)\n\n[Durable Subscriber](DurableSubscription.html)\n\n[Idempotent Receiver](IdempotentReceiver.html)\n\n[Service Activator](MessagingAdapter.html)\n\n[Messaging Channels](MessagingChannelsIntro.html)\n\n[Message Channel](MessageChannel.html)\n\n[Point-to-Point Channel](PointToPointChannel.html)\n\n[Publish-Subscr. Channel](PublishSubscribeChannel.html)\n\n[Datatype Channel](DatatypeChannel.html)\n\n[Invalid Message Channel](InvalidMessageChannel.html)\n\n[Dead Letter Channel](DeadLetterChannel.html)\n\n[Guaranteed Delivery](GuaranteedMessaging.html)\n\n[Channel Adapter](ChannelAdapter.html)\n\n[Messaging Bridge](MessagingBridge.html)\n\n[Message Bus](MessageBus.html)\n\n[Systems Mgmt.](SystemManagementIntro.html)\n\n[Control Bus](ControlBus.html)\n\n[Detour](Detour.html)\n\n[Wire Tap](WireTap.html)\n\n[Message History](MessageHistory.html)\n\n[Message Store](MessageStore.html)\n\n[Smart Proxy](SmartProxy.html)\n\n[Test Message](TestMessage.html)\n\n[Channel Purger](ChannelPurger.html)\n\n- » [Read the latest in My Blog](/ramblings)\n- » [Get more insights from My Articles](/articles.html)\n- » [See me live in my Upcoming Talks](/talks)\n\nYou can reuse the following elements under the [Creative Commons Attribution](http://creativecommons.org/licenses/by/4.0/) license: pattern icon, pattern name, problem and solution statements (in bold), and the sketch. Other portions are protected by copyright.\n\n[Enterprise Integration Patterns](https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20)\nThe de-facto language for designing asynchronous, distributed systems. Over 100,000 copies sold.\n\n[The Software Architect Elevator](https://www.architectelevator.com/book)\n\n Rethink the role of architects as a connecting element across organizational layers. Acquire the technical, communication, and organizational skills to succeed in this new role.\n\n[Cloud Strategy](https://www.cloudstrategybook.com)\n\n Make your cloud migration a success by translating high-level goals into conscious decisions with well-understood trade-offs.\n\n[Platform Strategy](https://www.platformstrategybook.info)\n\n Platforms can boost innovation through harmonization, but they aren't easy to build. Learn from over a decade of designing and rolling out IT platforms.", "znaku_textu": 6501, "slov": 574, "odkazu": 108, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/SmartProxy.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 06:53:02", "sha256": "e2d10e7a0172ac86724152a738d8c952e5984f306aac27aef52096be7048b1e3", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://creativecommons.org/licenses/by/4.0/", "https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "https://www.architectelevator.com/book", "https://www.cloudstrategybook.com/", "https://www.platformstrategybook.info/"]} {"url": "https://www.enterpriseintegrationpatterns.com/StoreInLibrary.html", "titulek": "Claim Check - Enterprise Integration Patterns", "h1": "", "popis": "How can we reduce the data volume of message sent across the system without sacrificing information content?", "klicova_slova": "Claim Check,integration, messaging, events, patterns, event-driven, coupling, eai, middleware, application integration, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns", "og:title": "Claim Check - Enterprise Integration Patterns", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/StoreInLibrary.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/StoreInLibrary.gif"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Integration Pattern Language"}], "markdown": "| | Claim Check[Messaging Patterns](index.html) » [Message Transformation](MessageTransformationIntro.html) | [Contents](toc.html)[⇐ Prev](ContentFilter.html)[Next ⇒](Normalizer.html) |\n| --- | --- | --- |\n\nThe [*Content Enricher*](DataEnricher.html) tells us how we can deal with situations where our message is missing required data items. The [*Content Filter*](ContentFilter.html) lets us remove uninteresting data items from a message. Sometimes, we want to remove fields only temporarily. For example, a message may contain a set of data items that may be needed later in the message flow, but that are not necessary for all intermediate processing steps. We may not want to carry all this information through each processing step because it may cause performance degradation and makes debugging harder because we carry so much extra data.\n\nHow can we reduce the data volume of message sent across the system without sacrificing information content?\n\nStore message data in a persistent store and pass a *Claim Check* to subsequent components. These components can use the *Claim Check* to retrieve the stored information.\n\nThe *Claim Check* pattern consists of the following steps:\n\n1. A message with data arrives.\n2. The \"Check Luggage\" component generates a unique key for the information. This key will be used later as the *Claim Check*\n3. The Check Luggage component extracts the data from the message and stores it in a persistent store, e.g. a file or a database. It associates the stored data with the key .\n4. It removes the persisted data from the message and adds the *Claim Check* .\n5. Another component can use a [*Content Enricher*](DataEnricher.html) to retrieve the data based on the *Claim Check* .\n\nThis process is analogous to a luggage check at the airport. If you do not want to carry all your luggage with you, you simply check it with the airline counter. In return you receive a sticker on your ticket that has a reference number that uniquely identifies each piece of luggage you checked. Once you reach your final destination, you can retrieve your luggage.\n\n...\nRead the entire pattern in the book [Enterprise Integration Patterns](/books1.html)\n\n**Related patterns:**\n\n[*Content Filter*](ContentFilter.html), [*Content Enricher*](DataEnricher.html), [*Process Manager*](ProcessManager.html)\n\n---\n\n## Integration Pattern Language\n\n[Message Construct.](MessageConstructionIntro.html)\n\n[Message](Message.html)\n\n[Command Message](CommandMessage.html)\n\n[Document Message](DocumentMessage.html)\n\n[Event Message](EventMessage.html)\n\n[Request-Reply](RequestReply.html)\n\n[Return Address](ReturnAddress.html)\n\n[Correlation Identifier](CorrelationIdentifier.html)\n\n[Message Sequence](MessageSequence.html)\n\n[Message Expiration](MessageExpiration.html)\n\n[Format Indicator](FormatIndicator.html)\n\n[Message Routing](MessageRoutingIntro.html)\n\n[Pipes-and-Filters](PipesAndFilters.html)\n\n[Message Router](MessageRouter.html)\n\n[Content-based Router](ContentBasedRouter.html)\n\n[Message Filter](Filter.html)\n\n[Dynamic Router](DynamicRouter.html)\n\n[Recipient List](RecipientList.html)\n\n[Splitter](Sequencer.html)\n\n[Aggregator](Aggregator.html)\n\n[Resequencer](Resequencer.html)\n\n[Composed Msg. Processor](DistributionAggregate.html)\n\n[Scatter-Gather](BroadcastAggregate.html)\n\n[Routing Slip](RoutingTable.html)\n\n[Process Manager](ProcessManager.html)\n\n[Message Broker](MessageBroker.html)\n\n[Message\nTransformation](MessageTransformationIntro.html)\n\n[Message Translator](MessageTranslator.html)\n\n[Envelope Wrapper](EnvelopeWrapper.html)\n\n[Content Enricher](DataEnricher.html)\n\n[Content Filter](ContentFilter.html)\n\n[Claim Check](StoreInLibrary.html)\n\n[Normalizer](Normalizer.html)\n\n[Canonical Data Model](CanonicalDataModel.html)\n\n[Messaging Endpoints](MessagingEndpointsIntro.html)\n\n[Message Endpoint](MessageEndpoint.html)\n\n[Messaging Gateway](MessagingGateway.html)\n\n[Messaging Mapper](MessagingMapper.html)\n\n[Transactional Client](TransactionalClient.html)\n\n[Polling Consumer](PollingConsumer.html)\n\n[Event-driven Consumer](EventDrivenConsumer.html)\n\n[Competing Consumers](CompetingConsumers.html)\n\n[Message Dispatcher](MessageDispatcher.html)\n\n[Selective Consumer](MessageSelector.html)\n\n[Durable Subscriber](DurableSubscription.html)\n\n[Idempotent Receiver](IdempotentReceiver.html)\n\n[Service Activator](MessagingAdapter.html)\n\n[Messaging Channels](MessagingChannelsIntro.html)\n\n[Message Channel](MessageChannel.html)\n\n[Point-to-Point Channel](PointToPointChannel.html)\n\n[Publish-Subscr. Channel](PublishSubscribeChannel.html)\n\n[Datatype Channel](DatatypeChannel.html)\n\n[Invalid Message Channel](InvalidMessageChannel.html)\n\n[Dead Letter Channel](DeadLetterChannel.html)\n\n[Guaranteed Delivery](GuaranteedMessaging.html)\n\n[Channel Adapter](ChannelAdapter.html)\n\n[Messaging Bridge](MessagingBridge.html)\n\n[Message Bus](MessageBus.html)\n\n[Systems Mgmt.](SystemManagementIntro.html)\n\n[Control Bus](ControlBus.html)\n\n[Detour](Detour.html)\n\n[Wire Tap](WireTap.html)\n\n[Message History](MessageHistory.html)\n\n[Message Store](MessageStore.html)\n\n[Smart Proxy](SmartProxy.html)\n\n[Test Message](TestMessage.html)\n\n[Channel Purger](ChannelPurger.html)", "znaku_textu": 5036, "slov": 492, "odkazu": 108, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/StoreInLibrary.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 06:03:56", "sha256": "96395638cbc1165642bdff681ec21a2862359e68f88f59cb7a2b5b2ad4753fb5", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://creativecommons.org/licenses/by/4.0/", "https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "https://www.architectelevator.com/book", "https://www.cloudstrategybook.com/", "https://www.platformstrategybook.info/"]} {"url": "https://www.enterpriseintegrationpatterns.com/SystemManagementExample.html", "titulek": "Loan Broker System Management - Enterprise Integration Patterns", "h1": "", "popis": "This section uses a more elaborate example to demonstrate how the system management patterns introduced in this section can be used to monitor and control a messaging solution. The example builds upon the C# and MSMQ implementation of the Loan Broker example from Chapter ?? (see Asynchronous Implementation with MSMQ). We augment rather than modify the original example solution so it is not critical that you reviewed all the code of the original example. As with the original example implementation, the intent of this section is not to explain the use of MSMQ-specific API's but rather to illustrate the implementation of the patterns in this book using a queue-oriented messaging system. The structure of the solution would look very similar when implemented in Java using JMS queues or IBM WebSphere MQ. Because we focus mostly on the design decisions and trade-offs, this section should be valuable to you even if you are not a C# or MSMQ developer.", "klicova_slova": "Loan Broker System Management,integration, messaging, events, patterns, event-driven, coupling, eai, middleware, application integration, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns", "og:title": "Loan Broker System Management - Enterprise Integration Patterns", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/SystemManagementExample.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/eip1_patterns_wide.png"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Instrumenting the Loan Broker"}, {"uroven": 2, "text": "Management Console"}, {"uroven": 2, "text": "Loan Broker Quality of Service"}, {"uroven": 2, "text": "Verify the Credit Bureau Operation"}, {"uroven": 2, "text": "Credit Bureau Failover"}, {"uroven": 2, "text": "Enhancing the Management Console"}, {"uroven": 2, "text": "Limitations of This Example"}, {"uroven": 2, "text": "Integration Pattern Language"}], "markdown": "| | Loan Broker System Management[Messaging Patterns](index.html) » Interlude: Systems Management Example | [Contents](toc.html)[⇐ Prev](ChannelPurger.html)[Next ⇒](BondTradingCaseStudy.html) |\n| --- | --- | --- |\n\nThis section uses a more elaborate example to demonstrate how the system management patterns introduced in this section can be used to monitor and control a messaging solution. The example builds upon the C# and MSMQ implementation of the Loan Broker example from Chapter ?? (see [*Asynchronous Implementation with MSMQ*](ComposedMessagingMSMQ.html)). We augment rather than modify the original example solution so it is not critical that you reviewed all the code of the original example. As with the original example implementation, the intent of this section is not to explain the use of MSMQ-specific API's but rather to illustrate the implementation of the patterns in this book using a queue-oriented messaging system. The structure of the solution would look very similar when implemented in Java using JMS queues or IBM WebSphere MQ. Because we focus mostly on the design decisions and trade-offs, this section should be valuable to you even if you are not a C# or MSMQ developer.\n\n## Instrumenting the Loan Broker\n\nThe loan broker implementation consists of the following four key components (see picture):\n\n- The *Test Client* makes requests for loan quotes.\n- The *Loan Broker* acts as the central process manager and coordinates the communication between the credit bureau and the banks.\n- The *Credit Bureau* provides a service to the Loan Broker, computing customer's credit scores.\n- Each *Bank* receives a quote request from the Loan Broker and submits an interest rate quote according to the loan parameters.\n\nIn most integration scenarios we do not have access to the application internals but are limited to monitoring and managing components from the outside. To make this example as realistic as possible, we decide to treat each of the components as a black box. Keeping this constraint in mind, we want the management solution to meet the following requirements:\n\n- **Management Console** : We want a single front-end that displays the health of all components and allows us to take compensating actions if something goes wrong.\n- **Loan Broker Quality of Service** : In the original solution we developed a test client that monitors the loan broker's response times between quote request and response. In a real production scenario clients will not perform this function for us (they may, however, complain that the system is too slow). Therefore, we want the management solution to capture this information and relay it to the management console.\n- **Verify the Credit Bureau Operation** : The Credit Bureau is an external service provided by a third party. We want to ensure the correct operation of this service by periodically sending test messages.\n- **Credit Bureau Failover** : If the Credit Bureau malfunctions we want to temporarily redirect the credit request messages to another service provider.\n\n## Management Console\n\nWe want to be able to collect metrics from multiple components in a single point so we can assess the health of the overall solution from a central spot. The management console also has to be able to control message flow and component parameters so that we can address outages by rerouting messages or changing component behavior.\n\nThe management console communicates with the individual components via messaging. It uses a separate [*Control Bus*](ControlBus.html) that only contains messages related to system management and not application data.\n\nBecause this is a book on enterprise integration and not on user interface design, we keep the management console very, very simple. Many vendors offer real-time data displays or you can even achieve visual miracles with Visual Basic and Microsoft Office components such as Excel. Also, many operating system or programming platforms offer their own instrumentation frameworks, e.g. Java/JMX (Java Management Extensions) or Microsoft's WMI (Windows Management Instrumentation). We decide to hand-roll our solution to make it less dependent on a specific vendor's API and to demonstrate the inner workings of a monitoring solution.\n\n## Loan Broker Quality of Service\n\nThe first requirement for the management solution is to measure the quality of service that the loan broker provides to its clients. For this type of monitoring we are not interested in the business content of the individual messages, i.e. the interest rate offered to the client, but only in the time elapsed between the request message and the reply message. The tricky part in tracking the time between these two messages is the fact that the client can specify the channel for the reply message via a [*Return Address*](ReturnAddress.html). So we cannot listen on a fixed channel for the reply. Luckily, the [*Smart Proxy*](SmartProxy.html) pattern solves this dilemma for us. A [*Smart Proxy*](SmartProxy.html) intercepts request messages, stores the [*Return Address*](ReturnAddress.html) supplied by the client and replaces it with a fixed channel address. As a result, the service (the Loan Broker in our case) sends all reply messages to one channel. The [*Smart Proxy*](SmartProxy.html) listens to this channel and correlates incoming reply messages to stored request messages. It then forwards the reply message to the original [*Return Address*](ReturnAddress.html) specified by the client (see picture).\n\n*Instrumenting the Loan Broker with a Smart Proxy*\n\nIn order to take advantage of the [*Smart Proxy*](SmartProxy.html) functionality, we \"insert\" the [*Smart Proxy*](SmartProxy.html) between the client and the Loan Broker (see picture). This insertion is transparent to the client because the [*Smart Proxy*](SmartProxy.html) listens on the same channel that the Loan Broker originally listened on (loanrequestQueue). We now start the Loan Broker with new parameters so that it listens on the brokerRequestQueue channel instead of the loanrequestQueue. The [*Smart Proxy*](SmartProxy.html) instructs the Loan Broker to send all reply messages to the brokerReplyQueue channel from where it forwards the messages back to the correct [*Return Address*](ReturnAddress.html) originally specified by the client.\n\nWe want to use the [*Smart Proxy*](SmartProxy.html) to measure both the response time for loan requests and the number of requests being processed by the loan broker at any one time. The [*Smart Proxy*](SmartProxy.html) can measure the time elapsed between request and reply messages by capturing the time that the request message was received. When it receives the associated reply message, the [*Smart Proxy*](SmartProxy.html) subtracts the request time from current time to compute the time elapsed between request and reply. The [*Smart Proxy*](SmartProxy.html) can estimate how many active requests the Loan Broker is managing at one time by counting how many outstanding request messages there are (i.e. request messages that have not yet received reply messages). The [*Smart Proxy*](SmartProxy.html) cannot distinguish between messages queued up on the brokerRequestQueue from messages that the Loan Broker started processing, so this metric equals the sum of both. We can update the number of outstanding request messages whenever we receive a request message or a reply message.\n\nThe [*Smart Proxy*](SmartProxy.html) passes the metrics information to the management console for monitoring and analysis. We could send the statistics for every single message but that would clutter our network if we deal with high message volumes. Inserting a [*Smart Proxy*](SmartProxy.html) into the message flow already doubles the number of message sent (two request and reply messages instead of one each) so we want to avoid sending another control message for each request message. Instead we use a timer so that the [*Smart Proxy*](SmartProxy.html) sends a metrics message to the [*Control Bus*](ControlBus.html) in predefined intervals, e.g. every 5 seconds. The metrics message can either contain summary metrics (e.g. the maximum, minimum and average response time) or the detailed info for all messages that passed through during the interval. In order to keep the metrics messages small and the management console simple we decide to just pass the summary metrics to the console.\n\nFor the implementation of the Loan Broker smart proxy, we reuse the SmartProxy base classes introduced in the [*Smart Proxy*](SmartProxy.html) pattern. We subclass the SmartProxyBase, SmartProxyRequestConsumer, and SmartProxyReplyConsumer classes (see class diagram). Please see the [*Smart Proxy*](SmartProxy.html) pattern for the source code for these classes.\n\n*Loan Broker Smart Proxy Class Diagram*\n\nJust like the original SmartProxy, the new LoanBrokerProxy contains two separate message consumers, one for incoming request message from the client (LoanBrokerProxyRequestConsumer) and one for incoming reply messages from the Loan Broker (LoanBrokerProxyReplyConsumer). Both consumer classes inherit from their respective base classes and add a new implementation of the AnalyzeMessage method.\n\nLet's have a look at the implementation of the LoanBrokerProxy class. The class maintains two ArrayLists with metrics, performanceStats and queueStats ArrayLists. performanceStats collects data points of response-reply time intervals in seconds while queueStats collects data points of the number of outstanding request messages (those either queued up in the brokerRequestQueue or in process by the Loan Broker). When the pre-programmed timer triggers, the method OnTimerEvent moves the data from both collections and stores them temporary snapshot. We have to perform any further analysis of the data with this snapshot copy because the message consumers continue to add new data points as messages are received.\n\n**LoanBrokerProxy Class**\n\n```\npublic class LoanBrokerProxy : SmartProxyBase\n{\n protected MessageQueue controlBus;\n\n protected ArrayList performanceStats;\n protected ArrayList queueStats;\n\n protected int interval;\n protected Timer timer;\n \n public LoanBrokerProxy(MessageQueue inputQueue, MessageQueue serviceRequestQueue, MessageQueue serviceReplyQueue, MessageQueue controlBus, int interval) : \n base (inputQueue, serviceRequestQueue, serviceReplyQueue)\n {\n messageData = Hashtable.Synchronized(new Hashtable());\n queueStats = ArrayList.Synchronized(new ArrayList());\n performanceStats = ArrayList.Synchronized(new ArrayList());\n\n this.controlBus = controlBus;\n this.interval = interval;\n\n requestConsumer = new LoanBrokerProxyRequestConsumer(inputQueue, serviceRequestQueue, serviceReplyQueue, messageData, queueStats);\n replyConsumer = new LoanBrokerProxyReplyConsumer(serviceReplyQueue, messageData, queueStats, performanceStats);\n }\n\n public override void Process()\n {\n base.Process();\n\n TimerCallback timerDelegate = new TimerCallback(OnTimerEvent);\n timer = new Timer(timerDelegate, null, interval*1000, interval*1000);\n }\n\n protected void OnTimerEvent(Object state)\n {\n ArrayList currentQueueStats;\n ArrayList currentPerformanceStats;\n\n lock (queueStats)\n {\n currentQueueStats = (ArrayList)(queueStats.Clone());\n queueStats.Clear();\n }\n\n lock (performanceStats)\n {\n currentPerformanceStats = (ArrayList)(performanceStats.Clone());\n performanceStats.Clear();\n }\n\n SummaryStats summary = new SummaryStats(currentQueueStats, currentPerformanceStats);\n if (controlBus != null)\n controlBus.Send(summary);\n }\n}\n```\n\nThe LoanBrokerProxy uses the SummaryStats structure to condense the individual data points into maximum, minimum and average values and then sends the summary data to the [*Control Bus*](ControlBus.html). We could make the evaluation more efficient by updating the summary statistics with each incoming message so that we have to store only the summary data and not each datapoint. On the other hand, deferring the computation allows us to change the amount of detail we want to publish to the [*Control Bus*](ControlBus.html).\n\nThe LoanBrokerProxyRequestConsumer class is rather simple. The base class SmartProxyRequestConsumer takes care of storing relevant message data in the messageData Hashtable so that we can derive the current number of outstanding request messages from the size of the Hashtable. The LoanBrokerProxyRequestConsumer maintains a reference to the queueStats collection inside the LoanBrokerProxy so that it can add the new data point to this collection.\n\n**LoanBrokerProxyRequestConsumer Class**\n\n```\npublic class LoanBrokerProxyRequestConsumer : SmartProxyRequestConsumer\n{\n ArrayList queueStats;\n\n public LoanBrokerProxyRequestConsumer(MessageQueue requestQueue, MessageQueue serviceRequestQueue, MessageQueue serviceReplyQueue, Hashtable messageData, ArrayList queueStats) : \n base(requestQueue, serviceRequestQueue, serviceReplyQueue, messageData)\n {\n this.queueStats = queueStats;\n }\n\n protected override void ProcessMessage(Message requestMsg)\n {\n base.ProcessMessage(requestMsg);\n queueStats.Add(messageData.Count);\n }\n}\n```\n\nThe LoanBrokerProxyReplyConsumer collects two metrics when a reply message arrives. First, it computes the time it took between sending the request message and receiving the reply message and adds that metric to the performanceStats collection. Second, it captures the remaining number of outstanding requests and adds that number to the queueStats collection.\n\n**LoanBrokerProxyReplyConsumer Class**\n\n```\npublic class LoanBrokerProxyReplyConsumer : SmartProxyReplyConsumer\n{\n ArrayList queueStats;\n ArrayList performanceStats;\n\n public LoanBrokerProxyReplyConsumer(MessageQueue replyQueue, Hashtable messageData, ArrayList queueStats, ArrayList performanceStats) :\n base(replyQueue, messageData)\n {\n this.queueStats = queueStats;\n this.performanceStats = performanceStats;\n }\n\n protected override void AnalyzeMessage(MessageData data, Message replyMessage)\n {\n TimeSpan duration = DateTime.Now - data.SentTime;\n performanceStats.Add(duration.TotalSeconds);\n\n queueStats.Add(messageData.Count);\n }\n}\n```\n\nThe SummaryStats structure computes maxima, minima and averages based on the captured data. It can derive the number of request messages processed by subtracting the number of performance data points (collected only for reply messages) from the number of queue data points (collected for request and reply messages). The implementation of this structure is quite trivial so that we decided not to fill a whole page with the code.\n\nOnce we insert the new Loan Broker proxy into the message stream we can start collecting performance metrics. To collect some example data, we configured two test clients to make 50 loan quote requests each. The proxy collected the following results (we used a simple XSL transform to render an HTML table off the metric data published in XML format to the controlBusQueue):\n\n| Date | #Requests | #Replies | min Processing Time | avg Processing Time | max Processing Time | min Queue Size | avg Queue Size | max Queue Size |\n| --- | --- | --- | --- | --- | --- | --- | --- | --- |\n| 14:11:02.9644 | 0 | 0 | 0.00 | 0.00 | 0.00 | 0 | 0 | 0 |\n| 14:11:07.9718 | 89 | 7 | 0.78 | 2.54 | 3.93 | 1 | 42 | 82 |\n| 14:11:12.9792 | 11 | 9 | 4.31 | 6.43 | 8.69 | 83 | 87 | 91 |\n| 14:11:17.9866 | 0 | 8 | 9.39 | 10.83 | 12.82 | 77 | 80 | 84 |\n| 14:11:22.9940 | 0 | 8 | 13.80 | 15.75 | 17.48 | 69 | 72 | 76 |\n| 14:11:28.0014 | 0 | 7 | 18.37 | 20.19 | 22.18 | 62 | 65 | 68 |\n| 14:11:33.0088 | 0 | 6 | 22.90 | 24.83 | 26.94 | 56 | 58 | 61 |\n| 14:11:38.0162 | 0 | 10 | 27.74 | 29.53 | 31.62 | 46 | 50 | 55 |\n| 14:11:43.0236 | 0 | 9 | 31.87 | 34.47 | 36.30 | 37 | 41 | 45 |\n| 14:11:48.0310 | 0 | 7 | 36.87 | 39.06 | 40.98 | 30 | 33 | 36 |\n| 14:11:53.0384 | 0 | 9 | 41.75 | 43.82 | 45.14 | 21 | 25 | 29 |\n| 14:11:58.0458 | 0 | 8 | 45.92 | 47.67 | 49.67 | 13 | 16 | 20 |\n| 14:12:03.0532 | 0 | 8 | 50.86 | 52.58 | 54.59 | 5 | 8 | 12 |\n| 14:12:08.0606 | 0 | 4 | 55.41 | 55.96 | 56.69 | 1 | 2 | 4 |\n| 14:12:13.0680 | 0 | 0 | 0.00 | 0.00 | 0.00 | 0 | 0 | 0 |\n\nLoaded into an Excel chart, the queue size data looks like this:\n\n*Loan Broker Smart Proxy Statistics*\n\nWe can see that he two test clients pretty much flooded the Loan Broker, peaking at about 90 pending requests. The Loan Broker then processes the requests at a stable rate of about 2 requests per second. Due to the large number of queued up requests, the the response times are pretty poor, peaking at almost 1 minute. The good news is that the Loan Broker handles a large number of sudden requests gracefully, while the bad news is that the response times are very long. In order to improve response times we could decide to execute multiple Loan Broker instances or multiple Credit Bureau instances (the Credit Bureau service turned out to be a bottleneck before).\n\n## Verify the Credit Bureau Operation\n\nThe second requirement for the management solution is to monitor the correct operation of the external Credit Bureau service. The Loan Broker accesses this service to obtain credit scores for customers requesting a loan quote. The banks require this information to provide an accurate quote.\n\nIn order to verify the correct operation of the external Credit Bureau service we send periodic [*Test Message*](TestMessage.html)s to the service. Because the Credit Bureau service supports a [*Return Address*](ReturnAddress.html) it is easy to inject a [*Test Message*](TestMessage.html) without disturbing the existing message flow. We simply provide a dedicated reply channel for test messages and avoid the need for a separate test message separator.\n\n*Monitoring the Credit Bureau Service*\n\nIn order to verify the correct operation of the Credit Bureau service we need a *Test Data Generator* and a *Test Data Verifier*. The test data generator creates test data to be sent to the service under test. A Credit Bureau test message is very simple; the only field that is required is a social security number (SSN). For our tests we use a special, fixed SSN that identifies a fictitious person. This allows us to verify the result data with preestablished results. This way we can not only check whether we receive a reply message but also verify the content of the message. In our simple example, the Credit Bureau is programmed to return random results regardless of the incoming SSN. As a result, our test data verifier does not check for specific result values but instead verifies whether the results are within the allowed range (e.g. 300 - 900 for a credit score). If the results fall outside the allowed range (for example because a computational error score set the score to zero), the test data verifier notifies the management console with a message.\n\nThe test data verifier also checks the response time of the external service. If we do not receive a reply message within a preset time interval we alert the management console. To minimize network bandwidth, the test data verifier notifies the console only if the response is delayed or malformed, not when the service is operating correctly. The only exception to this rule occurs when the monitor receives a correct reply message from the service subsequent to detecting an error. In that case, the monitor sends a \"service OK\" message to the management console to indicate that the credit bureau is working correctly again. Lastly, during start-up the monitor sends a message to the console to announce its existence. This message allows the console to \"discover\" all active monitors so it can display the status for each.\n\nThe monitor implementation uses two separate timers. The Send Timer determines the time interval between the last received message or the last timeout event and sending the next [*Test Message*](TestMessage.html). The Timeout Timer is started whenever the monitor sends a request message. If a reply message arrives within the specified timeout interval, the Timeout Timer is reset and restarted with the next request message. If the monitor does not receive a reply message within the specified interval, the Timeout timer triggers and sends the monitor sends an error message to the control bus. It then starts a new Send Timer to initiate a new request message after the send interval (see diagram). A real-life scenario is likely to use a relatively short timeout (a few seconds) and a larger send interval (e.g., one minute).\n\n*Monitoring the Credit Bureau Service*\n\nThe implementation of the monitor is relatively simple and only requires a single class. The Monitor class inherits from the MessageConsumer introduced in the [*Smart Proxy*](SmartProxy.html) pattern. This class configures and inbound channel and starts an [*Event-Driven Consumer*](EventDrivenConsumer.html) to receive messages. For each incoming message it invokes the virtual ProcessMessage method. An inheriting class can simply override this method to add its own processing.\n\nThe Process method instructs a MessageConsumer to start consuming messages. The Monitor class augments the base implementation of this method by starting the Send Timer. When this timer triggers, it invokes the OnSendTimerEvent method. The Process message also sends a message to the [*Control Bus*](ControlBus.html)to announce its existence.\n\n**Monitor Class - Sending Messages**\n\n```\npublic override void Process()\n{\n base.Process();\n sendTimer = new Timer(new TimerCallback(OnSendTimerEvent), null, interval*1000, Timeout.Infinite);\n\n MonitorStatus status = new MonitorStatus(MonitorStatus.STATUS_ANNOUNCE, \"Monitor On-Line\", null, MonitorID);\n Console.WriteLine(status.Description);\n controlQueue.Send(status);\n lastStatus = status.Status;\n}\n\nprotected void OnSendTimerEvent(Object state)\n{\n CreditBureauRequest request = new CreditBureauRequest();\n request.SSN = SSN;\n\n Message requestMessage = new Message(request);\n requestMessage.Priority = MessagePriority.AboveNormal;\n requestMessage.ResponseQueue = inputQueue;\n\n Console.WriteLine(DateTime.Now.ToString() + \" Sending request message\");\n requestQueue.Send(requestMessage);\n\n correlationID = requestMessage.Id;\n\n timeoutTimer = new Timer(new TimerCallback(OnTimeoutEvent), null, timeout*1000, Timeout.Infinite);\n}\n```\n\nThe OnSendTimerEvent method creates a new request message. The only parameter in the request message is the customer's social security number (SSN). The method specifies a fixed SSN. The method also saves the message ID to verify the [*Correlation Identifier*](CorrelationIdentifier.html) of any incoming reply messages. Lastly, it starts the timeoutTimer so that the monitor is being notified after a set time interval if no reply message is received.\n\nThe method sets the test message's Priority property to AboveNormal to make sure that queued up application messages do not let the service appear as if it was not available. Using a higher priority for [*Test Message*](TestMessage.html)s causes the message queue to deliver these messages ahead of queued up application messages. Setting a higher message priority is safe in this case because test data generator injects a very small volume of [*Test Message*](TestMessage.html)s. If we injected a large volume of high priority messages into the request channel we could interrupt the flow of application messages. This would definitely violate the intention of a management solution to be as minimally intrusive as possible.\n\nThe ProcessMessage is the heart of the Monitor class. It implements the test message verifier, evaluating incoming reply messages. After stopping the timeout timer the method checks the incoming message for the correct [*Correlation Identifier*](CorrelationIdentifier.html), correct data type of the message body and reasonable values inside the message body. If any of these tests fail, the method sets up a MonitorStatus structure and sends it to the [*Control Bus*](ControlBus.html) channel. The monitor also tracks the previous status is in the lastStatus variable. If the status changes from \"error\" to \"OK\", the ProcessMessage method also sends a notification to the [*Control Bus*](ControlBus.html).\n\n**Monitor Class - Receiving Messages**\n\n```\nprotected override void ProcessMessage(Message msg)\n{\n Console.WriteLine(DateTime.Now.ToString() + \" Received reply message\");\n\n if (timeoutTimer != null)\n timeoutTimer.Dispose();\n\n msg.Formatter = new XmlMessageFormatter(new Type[] {typeof(CreditBureauReply)});\n CreditBureauReply replyStruct;\n MonitorStatus status = new MonitorStatus();\n\n status.Status = MonitorStatus.STATUS_OK;\n status.Description = \"No Error\";\n status.ID = MonitorID;\n\n try \n {\n if (msg.Body is CreditBureauReply) \n {\n replyStruct = (CreditBureauReply)msg.Body;\n if (msg.CorrelationId != correlationID) \n {\n status.Status = MonitorStatus.STATUS_FAILED_CORRELATION;\n status.Description = \"Incoming message correlation ID does not match outgoing message ID\";\n }\n else \n {\n if (replyStruct.CreditScore < 300 || replyStruct.CreditScore > 900 ||\n replyStruct.HistoryLength < 1 || replyStruct.HistoryLength > 24)\n {\n status.Status = MonitorStatus.STATUS_INVALID_DATA;\n status.Description = \"Credit score values out of range\";\n }\n }\n\n }\n else\n { \n status.Status = MonitorStatus.STATUS_INVALID_FORMAT;\n status.Description = \"Invalid message format\";\n }\n }\n catch (Exception e) \n {\n Console.WriteLine(\"Exception: {0}\", e.ToString()); \n status.Status = MonitorStatus.STATUS_INVALID_FORMAT;\n status.Description = \"Could not deserialize message body\";\n }\n\n StreamReader reader = new StreamReader (msg.BodyStream);\n status.MessageBody = reader.ReadToEnd();\n\n Console.WriteLine(status.Description);\n\n if (status.Status != MonitorStatus.STATUS_OK || \n (status.Status == MonitorStatus.STATUS_OK && lastStatus != MonitorStatus.STATUS_OK)) \n {\n controlQueue.Send(status);\n }\n\n lastStatus = status.Status;\n sendTimer.Dispose();\n sendTimer = new Timer(new TimerCallback(OnSendTimerEvent), null, interval*1000, Timeout.Infinite);\n}\n```\n\nIf no message arrives in the specified interval, the timeoutTimer will invoke the OnTimeoutEvent method. This method sends a MonitorStatus message to the [*Control Bus*](ControlBus.html) and starts a new Send timer so that a new request message is sent after the interval.\n\n**Monitor Class - Timeout**\n\n```\nprotected void OnTimeoutEvent(Object state)\n{\n MonitorStatus status = new MonitorStatus(MonitorStatus.STATUS_TIMEOUT, \"Timeout\", null, MonitorID);\n Console.WriteLine(status.Description);\n controlQueue.Send(status);\n lastStatus = status.Status;\n\n timeoutTimer.Dispose();\n sendTimer = new Timer(new TimerCallback(OnSendTimerEvent), null, interval*1000, Timeout.Infinite);\n}\n```\n\n## Credit Bureau Failover\n\nNow that we can monitor the status of the external Credit Bureau service we want to use this data to implement a failover scheme so that the Loan Broker can continue operating even when the Credit Bureau service fails. It is worthwhile noting that [*Point-to-Point Channel*](PointToPointChannel.html)s already provide a basic form of failover. When we use multiple [*Competing Consumers*](CompetingConsumers.html) on a single [*Point-to-Point Channel*](PointToPointChannel.html), the failure of one consumer will not interrupt processing as long as the other consumer(s) still operate. When multiple consumers are active, they split the load, effectively implementing a simple load balancing mechanism. Why would we need to implement an explicit fail-over mechanism? When using external services, we may be limited to simple channels that do not support [*Competing Consumers*](CompetingConsumers.html), e.g. SOAP over HTTP. Also, we may not want multiple services to load balance. For example, we may have a volume agreement with the primary service provider that gives us substantial discounts if we meet certain usage quotas. Splitting the traffic across two providers will likely cost us more. Alternatively, we may be using a low-cost provider as out primary service provider and only want to switch over to a premium provider when the low-cost provider fails. \n (For an excellent discussion of architectural decisions driven by licensing issues see [[Hohmann](http://www.amazon.com/exec/obidos/ASIN/0201775948/enterpriseint-20)])\n.\n\nIn order to implement explicit failover, we insert a [*Message Router*](MessageRouter.html) into the credit bureau request channel (see picture). This router routes the request either to the primary credit bureau service (green arrows) or the secondary credit bureau service (red arrows). Because the secondary service may use a different message format than the first service, we wrap the secondary service with a pair of [*Message Translator*](MessageTranslator.html)s. The [*Message Router*](MessageRouter.html) is a *Context-Based Router*, controlled by the management console over the [*Control Bus*](ControlBus.html). The management console gets monitoring data from the Credit Bureau Monitor we designed in the previous section. If the monitor indicates a failure, the management console instructs the [*Message Router*](MessageRouter.html) to reroute the traffic to the secondary service provider (see picture).\n\n*Explicit Failover with a Context-Based Router*\n\nEven while the request message traffic is re-routed to the secondary service provider, the monitor keeps on sending test messages to the primary provider. When the monitor confirms the correct operation of the service, the console instructs the [*Message Router*](MessageRouter.html) to return to routing request messages to the primary provider. The solution diagram does not show a monitor for the secondary service provider even though it would be very easy use a second instance of the credit bureau monitor to monitor the backup Credit Bureau service.\n\nLet's look at the implementation of the Context-Based Router. ContextBasedRouter inherits from our trusty MessageConsumer base class to process incoming messages. The ProcessMessage method checks the value of the variable control and routes incoming messages to either the primary or secondary output channel.\n\n**ContextBasedRouter Class**\n\n```\ndelegate void ControlEvent(int control);\n\nclass ContextBasedRouter : MessageConsumer\n{\n...\n protected override void ProcessMessage(Message msg)\n {\n if (control == 0) \n {\n primaryOutputQueue.Send(msg);\n }\n else \n {\n secondaryOutputQueue.Send(msg);\n }\n }\n\n protected void OnControlEvent(int control)\n {\n this.control = control;\n Console.WriteLine(\"Control = \" + control);\n }\n}\n```\n\nThe variable control can be set by invoking the OnControlEvent method. This is the purpose of the ControlReceiver class. This class also inherits from MessageConsumer as it listens for messages from the control channel. The ContextBasedRouter class supplies the ControlReceiver with a delegate of type ControlEvent to invoke when it receives a control event with a numeric value. If you have not come across delegates, they are a really neat, type-safe way to implement callbacks without having to implement another interface or relegating to function pointers ([[Box](http://www.amazon.com/exec/obidos/ASIN/0201734117/enterpriseint-20)] goes into all the gory details).\n\n**ControlReceiver Class**\n\n```\nclass ControlReceiver : MessageConsumer\n{\n protected ControlEvent controlEvent;\n\n public ControlReceiver(MessageQueue inputQueue, ControlEvent controlEvent) : base (inputQueue) \n {\n this.controlEvent = controlEvent;\n }\n\n protected override void ProcessMessage(Message msg)\n {\n String text = (string)msg.Body;\n Double resNum;\n\n if (Double.TryParse( text, NumberStyles.Integer, NumberFormatInfo.InvariantInfo, out resNum)) \n {\n int control = int.Parse(text);\n controlEvent(control);\n }\n }\n}\n```\n\n## Enhancing the Management Console\n\nThe first version of the management console was so simple that we did not even bother showing the code. All it could do was receive a message and write the message content to a file for later analysis (such as rendering performance graphs from Excel). Now we want to inject some more intelligence into the management console. First, when the primary Credit Bureau Monitor indicates a failure, the management console needs to instruct the Context-Based Router to reroute messages to the secondary service provider. We opted to implement this functionality inside the management console so that we can decouple the monitor and the Context-Based Router (effectively, the management console acts as a *Mediator* as defined in [[GoF](http://www.amazon.com/exec/obidos/ASIN/0201633612/enterpriseint-20)]). Also, implementing the failover logic in a central location gives us a single point of maintenance for the system management rules. Commercial management consoles typically include configurable rules engines to determine appropriate corrective actions based on events on the [*Control Bus*](ControlBus.html).\n\nSecond, we want to build a simple user interface for the management console that displays the current state of the system. Obtaining a \"big picture\" view of a messaging system can be quite difficult, especially if message paths change dynamically. It does not take a lot of components to make it difficult to reconcile where messages flow. Our user interface is simple but nevertheless quite useful. We use the iconic language defined in this book to represent the interaction between components. For now, the user interface only displays the Credit Bureau failover portion of the system, consisting of two services and one Context-Based Router (see picture).\n\n*The Management Console Indicates That Both Credit Bureau Services Are Active*\n\nWhen the Monitor detects a failure and instructs the router to re-route the traffic, we want to update the user interface to reflect the new status (see picture). The router shows the new route for the request messages and the primary Credit Bureau component changes colors to indicate the failure.\n\n*The Management Console Indicates That The Primary Credit Bureau Failed and Traffic is Being Re-Routed*\n\nLet's have a brief look at the code behind this console. We will focus on the system management part of the code and not dive into the details of the code that renders the pretty user interface pictures. First, the management console needs to be able to retrieve status messages from the monitor component. To make the console as robust as possible, we access the message content in a loosely coupled fashion, reading individual fields from the XML payload. This approach helps keep the management console operational even if the individual components decide to add some fields to the message.\n\nNot surprisingly, the console class also inherits from our good friend MessageConsumer, so we only show the ProcessMessage method here. The component simply reads the message's BodyStream into a string variable and passes it to the different components for analysis.\n\n**ManagementConsole - ProcessMessage**\n\n```\npublic delegate void ControlMessageReceived(String body);\n\npublic class ManagementConsole : MessageConsumer\n{\n protected Logger logger;\n public MonitorStatusHandler monitorStatusHandler;\n \n public ControlMessageReceived updateEvent;\n\n public ManagementConsole(MessageQueue inputQueue, string pathName) : base(inputQueue) \n {\n logger = new Logger(pathName);\n monitorStatusHandler = new MonitorStatusHandler();\n\n updateEvent += new ControlMessageReceived(logger.Log);\n updateEvent += new ControlMessageReceived(monitorStatusHandler.OnControlMessage);\n }\n\n protected override void ProcessMessage(Message m)\n {\n Stream stm = m.BodyStream;\n StreamReader reader = new StreamReader (stm);\n String body = reader.ReadToEnd();\n\n updateEvent(body);\n }\n ...\n}\n```\n\nThe ManagementConsole class uses a delegate to notify the logger and the MonitorStatusHandler. Using a delegate allows us to easily add other classes that also listen on incoming control messages without having to change the code inside the ProcessMessage method.\n\nOne of the components analyzing incoming control message data is the MonitorStatusHandler class. First, this class checks whether the incoming message is a MonitorStatus message. If so it loads the message body into an XML document to extract the relevant fields contained inside the and the elements. It then invokes the delegate updateEvent which is of type MonitorStatusUpdate. Any interested class inside the management console application can add a callback method to this delegate and be notified any time a MonitorStatus message arrives. All the component has to do is provide an implementation of a method with a signature equal to MonitorStatusUpdate.\n\n**MonitorStatusHandler**\n\n```\npublic delegate void MonitorStatusUpdate(String ID, int Status);\n\npublic class MonitorStatusHandler\n{\n public MonitorStatusUpdate updateEvent;\n\n public void OnControlMessage(String body)\n {\n XmlDocument doc = new XmlDocument();\n doc.LoadXml(body);\n\n XmlElement root = doc.DocumentElement;\n if (root.Name == \"MonitorStatus\") \n {\n XmlNode statusNode = root.SelectSingleNode(\"Status\");\n XmlNode idNode = root.SelectSingleNode(\"ID\");\n\n if (idNode!= null && statusNode != null) \n {\n String msgID = idNode.InnerText;\n String msgStatus = statusNode.InnerText;\n Double resNum;\n int status = 99;\n\n if (Double.TryParse( msgStatus, NumberStyles.Integer, NumberFormatInfo.InvariantInfo, out resNum)) \n {\n status = (int)resNum;\n }\n updateEvent(msgID, status);\n }\n }\n } \n}\n```\n\nIn our example, the first two components listening to the MonitorStatusUpdate event triggered by the MonitorStatusHandler are two user interface controls representing the primary and secondary Credit Bureau service in the user interface form. Each user interface control filters the events for the identifier that is unique to the respective component that is being monitored. When the status of the monitored component changes, the user interface control changes the color of the component. The following routine that is executed during the initialization of the display form ties the two Credit Bureau display controls to the monitorStatusHandler of the management console:\n\n**Console Form Initialization**\n\n```\nconsole = new ManagementConsole(controlBusQueue, logFileName);\n\nprimaryCreditBureauControl = new ComponentStatusControl(\"Primary Credit Bureau\", \"PrimaryCreditService\");\nprimaryCreditBureauControl.Bounds = new Rectangle(300, 30, COMPONENT_WIDTH, COMPONENT_HEIGHT);\n\nsecondaryCreditBureauControl = new ComponentStatusControl(\"Secondary Credit Bureau\", \"SecondaryCreditService\");\nsecondaryCreditBureauControl.Bounds = new Rectangle(300, 130, COMPONENT_WIDTH, COMPONENT_HEIGHT);\n\nconsole.monitorStatusHandler.updateEvent += new MonitorStatusUpdate(primaryCreditBureauControl.OnMonitorStatusUpdate);\nconsole.monitorStatusHandler.updateEvent += new MonitorStatusUpdate(secondaryCreditBureauControl.OnMonitorStatusUpdate);\n```\n\nAnother component listening to the MonitorStatusUpdate events is the FailOverHandler. This component is a non-visual component that analyzes status messages to determine whether a failover switch should be set. If the status of the monitor has changed (we use a logical XOR denoted by the '^' operator) the FailOverHandler sends a command message to the designated command channel. In our case, this command channel is connected to the Context-Based Router who will start re-routing credit score request messages.\n\n**FailOverHandler Class**\n\n```\npublic delegate void FailOverStatusUpdate(String ID, string Command);\n\npublic class FailOverHandler\n{\n ...\n public void OnMonitorStatusUpdate(String ID, int status)\n {\n if (componentID == ID) \n {\n if (IsOK(status) ^ IsOK(currentStatus)) \n {\n String command = IsOK(status) ? \"0\" : \"1\";\n commandQueue.Send(command);\n currentStatus = status;\n updateEvent(ID, command);\n }\n }\n }\n\n protected bool IsOK(int status)\n {\n return (status == 0 || status >= 99);\n }\n}\n```\n\nThe FailOverHandler also invokes the updateEvent, which is a delegate of type FailOverStatusUpdate. Similar to the MonitorStatusHandler we can register any component that implements a method of this type to receive update notifications whenever the FailOverHandler changes status. In our example, we register the visual FailOverControl to receive these events so that it can redraw whenever the failover status changes. The console user interface initialization routine establishes the connection between these components:\n\n**Console Form Initialization**\n\n```\nfailOverControl = new FailOverControl(\"Credit Bureau Failover\", \"PrimaryCreditService\");\nfailOverControl.Bounds = new Rectangle(100, 80, ROUTER_WIDTH, COMPONENT_HEIGHT);\n\nFailOverHandler failOverHandler = new FailOverHandler(commandQueue, \"PrimaryCreditService\");\nconsole.monitorStatusHandler.updateEvent += new MonitorStatusUpdate(failOverHandler.OnMonitorStatusUpdate);\n\nfailOverHandler.updateEvent += new FailOverStatusUpdate(failOverControl.OnMonitorStatusUpdate);\n```\n\nConnecting the individual components inside the management console through delegates and events results in a loosely coupled architecture. This architecture allows us to reuse the individual components and re-compose them into different constellations similar to the [*Pipes and Filters*](PipesAndFilters.html) architectural style introduced at the beginning of the book. Essentially, passing messages arriving on the [*Control Bus*](ControlBus.html) by using delegates resembles creating an application-internal [*Publish-Subscribe Channel*](PublishSubscribeChannel.html). Because the control bus events arrive on a [*Point-to-Point Channel*](PointToPointChannel.html), we have to use a single consumer who then publishes the event to any interested \"subscriber\" inside the application.\n\nThe following collaboration diagram illustrates the propagation of events between the individual components.\n\n*Propagation of Events Inside the Management Console*\n\nUsing a user-interface console to visualize the message flow between individual components is a powerful system management tool. Some vendors include development suites that allow designers to visually arrange components and connect their input and outputs ports to create distributed message-flow application. For example, Fiorano's Tifosi product ([www.fiorano.com](http://www.fiorano.com)) includes the *Distributed Applications Composer* that allows the design of a distributed solution from a single graphical user interface even though each component may execute on a different machine or platform. This tool uses a [*Control Bus*](ControlBus.html) to connect all distributed components to a central management and monitoring console.\n\nOur simple example requires the management console hard-code the visual connection between the individual components, e.g. to draw a line between the failover router and the Credit Bureau components. Many integration tools such as Tifosi allow the user to design the solution from the beginning using a graphical user interface. This approach makes it easy to use the graphical design to display the status of the solution.\n\nIn some cases we may analyze the message flow in an existing messaging solution to create a graphical representation of the system. There are two fundamental approaches to perform this type of analysis. A *Static Analysis* analyses the channels that each component publishes and subscribes to. If one component publishes to the same channel another component subscribes to, the tool can draw a connecting line between the two components. Storing this information in a central repository (as supported by many EAI tool suites, for example TIBCO ActiveEnterprise) is a huge benefit for this type of analysis. In the absence of such a repository, we can inspect individual messages and reverse-engineer connections between components based on the origin of messages arriving at a particular component. This task is greatly simplified if the participating components support the creation of a [*Message History*](MessageHistory.html). Without the help of a [*Message History*](MessageHistory.html), we can still reconstruct the flow of messages if each message contains a field specifying the sender of the message (many systems include such a field for authentication purposes).\n\n## Limitations of This Example\n\nUnfortunately, in order to fit this example into the scope of a single chapter, we had to make some simplifying assumptions. For example, our failover mechanism does not deal with the messages that are already queued up when the primary Credit Bureau service fails -- these messages remain queued up until the service is reinstated. The Loan Broker is able to continue functioning because it correlates incoming response message to reply messages, but the loan quote requests associated with the 'stuck' message will not be processed until the primary Credit Bureau comes back on-line. In order to improve response times in a fail-over scenario we should implement a re-send function that allows the Loan Broker to re-issue request messages for those messages that are queued up indefinitely in front of a failed service. Alternatively, the fail-over router could store all request messages that have arrived since the correct function of the service was last confirmed. If a service failure is detected, the router could re-send all these messages because some of them might not have been processed correctly. This approach can lead to duplicate request messages (and associated reply messages), but since both the Credit Bureau service and the Loan Broker messages are [*Idempotent Receiver*](IdempotentReceiver.html)s this does not cause any problems -- duplicate reply messages are simply ignored.\n\nThis example demonstrated only a small subset of the system management functions that can be implemented with the patterns in this section. For example, we could monitor message traffic across all components, set performance thresholds, have each component send \"heartbeat\" messages and more, In fact, adding robust system management to a distributed messaging solution can require as much (or more) design and implementation effort as the original solution.\n\n## Integration Pattern Language\n\n[Message Construct.](MessageConstructionIntro.html)\n\n[Message](Message.html)\n\n[Command Message](CommandMessage.html)\n\n[Document Message](DocumentMessage.html)\n\n[Event Message](EventMessage.html)\n\n[Request-Reply](RequestReply.html)\n\n[Return Address](ReturnAddress.html)\n\n[Correlation Identifier](CorrelationIdentifier.html)\n\n[Message Sequence](MessageSequence.html)\n\n[Message Expiration](MessageExpiration.html)\n\n[Format Indicator](FormatIndicator.html)\n\n[Message Routing](MessageRoutingIntro.html)\n\n[Pipes-and-Filters](PipesAndFilters.html)\n\n[Message Router](MessageRouter.html)\n\n[Content-based Router](ContentBasedRouter.html)\n\n[Message Filter](Filter.html)\n\n[Dynamic Router](DynamicRouter.html)\n\n[Recipient List](RecipientList.html)\n\n[Splitter](Sequencer.html)\n\n[Aggregator](Aggregator.html)\n\n[Resequencer](Resequencer.html)\n\n[Composed Msg. Processor](DistributionAggregate.html)\n\n[Scatter-Gather](BroadcastAggregate.html)\n\n[Routing Slip](RoutingTable.html)\n\n[Process Manager](ProcessManager.html)\n\n[Message Broker](MessageBroker.html)\n\n[Message\nTransformation](MessageTransformationIntro.html)\n\n[Message Translator](MessageTranslator.html)\n\n[Envelope Wrapper](EnvelopeWrapper.html)\n\n[Content Enricher](DataEnricher.html)\n\n[Content Filter](ContentFilter.html)\n\n[Claim Check](StoreInLibrary.html)\n\n[Normalizer](Normalizer.html)\n\n[Canonical Data Model](CanonicalDataModel.html)\n\n[Messaging Endpoints](MessagingEndpointsIntro.html)\n\n[Message Endpoint](MessageEndpoint.html)\n\n[Messaging Gateway](MessagingGateway.html)\n\n[Messaging Mapper](MessagingMapper.html)\n\n[Transactional Client](TransactionalClient.html)\n\n[Polling Consumer](PollingConsumer.html)\n\n[Event-driven Consumer](EventDrivenConsumer.html)\n\n[Competing Consumers](CompetingConsumers.html)\n\n[Message Dispatcher](MessageDispatcher.html)\n\n[Selective Consumer](MessageSelector.html)\n\n[Durable Subscriber](DurableSubscription.html)\n\n[Idempotent Receiver](IdempotentReceiver.html)\n\n[Service Activator](MessagingAdapter.html)\n\n[Messaging Channels](MessagingChannelsIntro.html)\n\n[Message Channel](MessageChannel.html)\n\n[Point-to-Point Channel](PointToPointChannel.html)\n\n[Publish-Subscr. Channel](PublishSubscribeChannel.html)\n\n[Datatype Channel](DatatypeChannel.html)\n\n[Invalid Message Channel](InvalidMessageChannel.html)\n\n[Dead Letter Channel](DeadLetterChannel.html)\n\n[Guaranteed Delivery](GuaranteedMessaging.html)\n\n[Channel Adapter](ChannelAdapter.html)\n\n[Messaging Bridge](MessagingBridge.html)\n\n[Message Bus](MessageBus.html)\n\n[Systems Mgmt.](SystemManagementIntro.html)\n\n[Control Bus](ControlBus.html)\n\n[Detour](Detour.html)\n\n[Wire Tap](WireTap.html)\n\n[Message History](MessageHistory.html)\n\n[Message Store](MessageStore.html)\n\n[Smart Proxy](SmartProxy.html)\n\n[Test Message](TestMessage.html)\n\n[Channel Purger](ChannelPurger.html)", "znaku_textu": 48035, "slov": 6484, "odkazu": 111, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/patterns/messaging/SystemManagementExample.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 14:51:07", "sha256": "1890dc902647c280fe37efd685f9ddc152e0adce8861f58e52dee8fe17f50d56", "hloubka": 3, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://www.amazon.com/exec/obidos/ASIN/0201775948/enterpriseint-20", "http://www.amazon.com/exec/obidos/ASIN/0201734117/enterpriseint-20", "http://www.amazon.com/exec/obidos/ASIN/0201633612/enterpriseint-20", "http://www.fiorano.com/", "https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "https://www.architectelevator.com/book", "https://www.cloudstrategybook.com/", "https://www.platformstrategybook.info/"]} {"url": "https://www.enterpriseintegrationpatterns.com/SystemManagementIntro.html", "titulek": "Introduction to System Management - Enterprise Integration Patterns", "h1": "", "popis": "While developing a messaging solution is no easy task, operating such a solution in production is equally challenging: A message-based integration solution may produce, route and transform thousands or even millions of messages in a day. We have to deal with exceptions, performance bottlenecks and changes in the participating systems. To make things ever more challenging, components are distributed across many platforms and machines that can reside at multiple locations.", "klicova_slova": "Introduction to System Management,integration, messaging, events, patterns, event-driven, coupling, eai, middleware, application integration, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns", "og:title": "Introduction to System Management - Enterprise Integration Patterns", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/SystemManagementIntro.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/eip1_patterns_wide.png"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Monitoring and Controlling"}, {"uroven": 2, "text": "Observing and Analyzing Message Traffic"}, {"uroven": 2, "text": "Testing and Debugging"}, {"uroven": 2, "text": "Integration Pattern Language"}], "markdown": "| | Introduction to System Management[Messaging Patterns](index.html) » [System Management](SystemManagementIntro.html) | [Contents](toc.html)[⇐ Prev](MessagingAdapter.html)[Next ⇒](ControlBus.html) |\n| --- | --- | --- |\n\nWhile developing a messaging solution is no easy task, operating such a solution in production is equally challenging: A message-based integration solution may produce, route and transform thousands or even millions of messages in a day. We have to deal with exceptions, performance bottlenecks and changes in the participating systems. To make things ever more challenging, components are distributed across many platforms and machines that can reside at multiple locations.\n\nBesides the inherent complexities and scale of integrating distributed packaged and custom applications, the architectural benefits of loose coupling actually make testing and debugging a system harder. Martin Fowler refers to this as the \"Architect's dream, Developer's nightmare\" symptom: architectural principles of loose coupling and indirection reduce the assumptions systems make about each other and therefore provide flexibility. However, testing a system where a message producer is not aware of who the consumers of this message are, can be challenging. Add to that the asynchronous and temporal aspects of messaging and things get even more complicated. For example, the messaging solution may not even be designed for the message producer to receive a reply message from the recipient(s). Likewise, the messaging infrastructure typically guarantees the delivery of the message but not the delivery time. This makes it hard to develop test cases that rely on the results of the message delivery.\n\nWhen monitoring a message solution, we can track message at two different levels of abstraction. A typical **System Management** solution monitors how many messages are being sent or how long it took a message to be processed. These monitoring solutions do not inspect the message data except maybe for some fields in the message header such as the message identifier or the [*Message History*](MessageHistory.html). In contrast, **Business Activity Monitoring** (BAM) solutions focus on the payload data contained in the message, for example the Dollar value of all orders placed in the last hour. Many of the patterns presented in this section are general enough that they can be used for either purpose. However, because business activity monitoring is a whole new field in itself and shares many complexities with data warehousing (something we have not touched on at all), we decided to discuss the patterns in the context of system management.\n\nSystem Management patterns are designed to address these requirements and provide the tools to keep a complex message-based system running. We divided this chapter into three sections:\n\n## Monitoring and Controlling\n\nA [*Control Bus*](ControlBus.html) provides a single point of control to manage and monitor a distributed solution. It connects multiple components to a central management console that can display the status of each component and monitor message traffic through the components. The console can also be used to send control commands to components, e.g. to change the message flow.\n\nWe may want to route messages through additional steps, such as validation or logging. Because these steps can introduce performance overheads, we may want to be able to switch them on and off via the control bus. A [*Detour*](Detour.html) gives us this ability.\n\n## Observing and Analyzing Message Traffic\n\nSometimes we need to want to inspect the contents of a message without affecting the primary message flow. A [*Wire Tap*](WireTap.html) allows us to tap into message traffic.\n\nWhen we debug a message-based system, is is a great aid to know where a specific message has been. The [*Message History*](MessageHistory.html) provides this capability without introducing dependencies between components.\n\nWhile the [*Message History*](MessageHistory.html) is tied to an individual message, a central [*Message Store*](MessageStore.html) can provide a complete account of every message that traveled through the system. Combined with the [*Message History*](MessageHistory.html) the [*Message Store*](MessageStore.html) can analyze all possible paths messages can take through the system.\n\nThe [*Wire Tap*](WireTap.html), [*Message History*](MessageHistory.html), and [*Message Store*](MessageStore.html) help us analyze the asynchronous flow of a message. In order to track messages sent to request-reply services, we need to insert a [*Smart Proxy*](SmartProxy.html) into the message stream.\n\n## Testing and Debugging\n\nTesting a messaging system before deploying it into production is a good idea. But testing should not stop there. You should be actively verifying that the running messaging system is functioning properly. You can do this by periodically injecting a [*Test Message*](TestMessage.html) into the system and verifying the results.\n\nWhen a component fails or misbehaves, it is easy to end up with unwanted messages on a channel. During testing it is very useful to remove all remaining messages from a channel so that the components under test do not receive 'leftover' messages. A [*Channel Purger*](ChannelPurger.html) does that for us.\n\n## Integration Pattern Language\n\n[Message Construct.](MessageConstructionIntro.html)\n\n[Message](Message.html)\n\n[Command Message](CommandMessage.html)\n\n[Document Message](DocumentMessage.html)\n\n[Event Message](EventMessage.html)\n\n[Request-Reply](RequestReply.html)\n\n[Return Address](ReturnAddress.html)\n\n[Correlation Identifier](CorrelationIdentifier.html)\n\n[Message Sequence](MessageSequence.html)\n\n[Message Expiration](MessageExpiration.html)\n\n[Format Indicator](FormatIndicator.html)\n\n[Message Routing](MessageRoutingIntro.html)\n\n[Pipes-and-Filters](PipesAndFilters.html)\n\n[Message Router](MessageRouter.html)\n\n[Content-based Router](ContentBasedRouter.html)\n\n[Message Filter](Filter.html)\n\n[Dynamic Router](DynamicRouter.html)\n\n[Recipient List](RecipientList.html)\n\n[Splitter](Sequencer.html)\n\n[Aggregator](Aggregator.html)\n\n[Resequencer](Resequencer.html)\n\n[Composed Msg. Processor](DistributionAggregate.html)\n\n[Scatter-Gather](BroadcastAggregate.html)\n\n[Routing Slip](RoutingTable.html)\n\n[Process Manager](ProcessManager.html)\n\n[Message Broker](MessageBroker.html)\n\n[Message\nTransformation](MessageTransformationIntro.html)\n\n[Message Translator](MessageTranslator.html)\n\n[Envelope Wrapper](EnvelopeWrapper.html)\n\n[Content Enricher](DataEnricher.html)\n\n[Content Filter](ContentFilter.html)\n\n[Claim Check](StoreInLibrary.html)\n\n[Normalizer](Normalizer.html)\n\n[Canonical Data Model](CanonicalDataModel.html)\n\n[Messaging Endpoints](MessagingEndpointsIntro.html)\n\n[Message Endpoint](MessageEndpoint.html)\n\n[Messaging Gateway](MessagingGateway.html)\n\n[Messaging Mapper](MessagingMapper.html)\n\n[Transactional Client](TransactionalClient.html)\n\n[Polling Consumer](PollingConsumer.html)\n\n[Event-driven Consumer](EventDrivenConsumer.html)\n\n[Competing Consumers](CompetingConsumers.html)\n\n[Message Dispatcher](MessageDispatcher.html)\n\n[Selective Consumer](MessageSelector.html)\n\n[Durable Subscriber](DurableSubscription.html)\n\n[Idempotent Receiver](IdempotentReceiver.html)\n\n[Service Activator](MessagingAdapter.html)\n\n[Messaging Channels](MessagingChannelsIntro.html)\n\n[Message Channel](MessageChannel.html)\n\n[Point-to-Point Channel](PointToPointChannel.html)\n\n[Publish-Subscr. Channel](PublishSubscribeChannel.html)\n\n[Datatype Channel](DatatypeChannel.html)\n\n[Invalid Message Channel](InvalidMessageChannel.html)\n\n[Dead Letter Channel](DeadLetterChannel.html)\n\n[Guaranteed Delivery](GuaranteedMessaging.html)\n\n[Channel Adapter](ChannelAdapter.html)\n\n[Messaging Bridge](MessagingBridge.html)\n\n[Message Bus](MessageBus.html)\n\n[Systems Mgmt.](SystemManagementIntro.html)\n\n[Control Bus](ControlBus.html)\n\n[Detour](Detour.html)\n\n[Wire Tap](WireTap.html)\n\n[Message History](MessageHistory.html)\n\n[Message Store](MessageStore.html)\n\n[Smart Proxy](SmartProxy.html)\n\n[Test Message](TestMessage.html)\n\n[Channel Purger](ChannelPurger.html)", "znaku_textu": 8015, "slov": 937, "odkazu": 107, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/SystemManagementIntro.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 06:52:56", "sha256": "bc252357abc1e7b4c3aafb7fa9fae9c97bc7b4821f1b766b0da30c1d8dcf5c91", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "https://www.architectelevator.com/book", "https://www.cloudstrategybook.com/", "https://www.platformstrategybook.info/"]} {"url": "https://www.enterpriseintegrationpatterns.com/TestMessage.html", "titulek": "Test Message - Enterprise Integration Patterns", "h1": "", "popis": "What happens, though, if a component is actively processing messages, but garbles outgoing messages due to an internal fault?", "klicova_slova": "Test Message,integration, messaging, events, patterns, event-driven, coupling, eai, middleware, application integration, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns", "og:title": "Test Message - Enterprise Integration Patterns", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/TestMessage.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/TestMessage.gif"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Integration Pattern Language"}], "markdown": "| | Test Message[Messaging Patterns](index.html) » [System Management](SystemManagementIntro.html) | [Contents](toc.html)[⇐ Prev](SmartProxy.html)[Next ⇒](ChannelPurger.html) |\n| --- | --- | --- |\n\nThe [*Control Bus*](ControlBus.html) describes a number of approaches to monitor the health of the message processing system. Each component in the system can publish periodic \"heartbeat\" messages to the control bus in order to keep the monitoring mechanism informed that the component is still active. The heartbeat messages can contain vital stats of the component as well, such as the number of messages processed, the average time required to process a message or the percentage of CPU utilization on the machine.\n\nWhat happens, though, if a component is actively processing messages, but garbles outgoing messages due to an internal fault?\n\nTherefore, use *Test Message* to assure the health of message processing components (see Figure).\n\nThe *Test Message* pattern relies on the following components:\n\n- The **Test Data Generator** creates messages to be sent to the component for testing. Test data may be constant, driven by a test data file or generated randomly.\n- The **Test Message Injector** inserts test data into the regular stream of data messages sent to the component. The main role of the injector is to tag messages in order to differentiate 'real' application messages from test messages. This can be accomplished by inserting a special header field. If we have no control over the message structure, we can try to use special values to indicate test messages (e.g. OrderID = 999999). This changes the semantics of application data by using the same field to represent application data (the actual order number) and control information (this is a test message). Therefore, this approach should be used only as a last resort.\n- The **Test Message Separator** extracts the results of test messages from the output stream. This can usually be accomplished by using a [*Content-Based Router*](ContentBasedRouter.html) .\n- The **Test Data Verifier** compares actual results with expected results and flags an exception if a discrepancy is discovered. Depending on the nature of the test data, the verifier may need access to the original test data.\n\n...\nRead the entire pattern in the book [Enterprise Integration Patterns](/books1.html)\n\n**Related patterns:**\n\n[*Content-Based Router*](ContentBasedRouter.html), [*Control Bus*](ControlBus.html), [*Return Address*](ReturnAddress.html), [*Loan Broker System Management*](SystemManagementExample.html)\n\n---\n\n## Integration Pattern Language\n\n[Message Construct.](MessageConstructionIntro.html)\n\n[Message](Message.html)\n\n[Command Message](CommandMessage.html)\n\n[Document Message](DocumentMessage.html)\n\n[Event Message](EventMessage.html)\n\n[Request-Reply](RequestReply.html)\n\n[Return Address](ReturnAddress.html)\n\n[Correlation Identifier](CorrelationIdentifier.html)\n\n[Message Sequence](MessageSequence.html)\n\n[Message Expiration](MessageExpiration.html)\n\n[Format Indicator](FormatIndicator.html)\n\n[Message Routing](MessageRoutingIntro.html)\n\n[Pipes-and-Filters](PipesAndFilters.html)\n\n[Message Router](MessageRouter.html)\n\n[Content-based Router](ContentBasedRouter.html)\n\n[Message Filter](Filter.html)\n\n[Dynamic Router](DynamicRouter.html)\n\n[Recipient List](RecipientList.html)\n\n[Splitter](Sequencer.html)\n\n[Aggregator](Aggregator.html)\n\n[Resequencer](Resequencer.html)\n\n[Composed Msg. Processor](DistributionAggregate.html)\n\n[Scatter-Gather](BroadcastAggregate.html)\n\n[Routing Slip](RoutingTable.html)\n\n[Process Manager](ProcessManager.html)\n\n[Message Broker](MessageBroker.html)\n\n[Message\nTransformation](MessageTransformationIntro.html)\n\n[Message Translator](MessageTranslator.html)\n\n[Envelope Wrapper](EnvelopeWrapper.html)\n\n[Content Enricher](DataEnricher.html)\n\n[Content Filter](ContentFilter.html)\n\n[Claim Check](StoreInLibrary.html)\n\n[Normalizer](Normalizer.html)\n\n[Canonical Data Model](CanonicalDataModel.html)\n\n[Messaging Endpoints](MessagingEndpointsIntro.html)\n\n[Message Endpoint](MessageEndpoint.html)\n\n[Messaging Gateway](MessagingGateway.html)\n\n[Messaging Mapper](MessagingMapper.html)\n\n[Transactional Client](TransactionalClient.html)\n\n[Polling Consumer](PollingConsumer.html)\n\n[Event-driven Consumer](EventDrivenConsumer.html)\n\n[Competing Consumers](CompetingConsumers.html)\n\n[Message Dispatcher](MessageDispatcher.html)\n\n[Selective Consumer](MessageSelector.html)\n\n[Durable Subscriber](DurableSubscription.html)\n\n[Idempotent Receiver](IdempotentReceiver.html)\n\n[Service Activator](MessagingAdapter.html)\n\n[Messaging Channels](MessagingChannelsIntro.html)\n\n[Message Channel](MessageChannel.html)\n\n[Point-to-Point Channel](PointToPointChannel.html)\n\n[Publish-Subscr. Channel](PublishSubscribeChannel.html)\n\n[Datatype Channel](DatatypeChannel.html)\n\n[Invalid Message Channel](InvalidMessageChannel.html)\n\n[Dead Letter Channel](DeadLetterChannel.html)\n\n[Guaranteed Delivery](GuaranteedMessaging.html)\n\n[Channel Adapter](ChannelAdapter.html)\n\n[Messaging Bridge](MessagingBridge.html)\n\n[Message Bus](MessageBus.html)\n\n[Systems Mgmt.](SystemManagementIntro.html)\n\n[Control Bus](ControlBus.html)\n\n[Detour](Detour.html)\n\n[Wire Tap](WireTap.html)\n\n[Message History](MessageHistory.html)\n\n[Message Store](MessageStore.html)\n\n[Smart Proxy](SmartProxy.html)\n\n[Test Message](TestMessage.html)\n\n[Channel Purger](ChannelPurger.html)", "znaku_textu": 5265, "slov": 511, "odkazu": 108, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/TestMessage.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 06:53:03", "sha256": "62abc89458cea9392893132bafeba284c7609931f5259275a0bb2ac69a851e96", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://creativecommons.org/licenses/by/4.0/", "https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "https://www.architectelevator.com/book", "https://www.cloudstrategybook.com/", "https://www.platformstrategybook.info/"]} {"url": "https://www.enterpriseintegrationpatterns.com/TransactionalClient.html", "titulek": "Transactional Client - Enterprise Integration Patterns", "h1": "", "popis": "How can a client control its transactions with the messaging system?", "klicova_slova": "Transactional Client,integration, messaging, events, patterns, event-driven, coupling, eai, middleware, application integration, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns", "og:title": "Transactional Client - Enterprise Integration Patterns", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/TransactionalClient.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/TransactionalClientSolution.gif"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Example: (Not quite) Transactional Client in Amazon SQSNEW"}, {"uroven": 2, "text": "Integration Pattern Language"}], "markdown": "| | Transactional Client[Messaging Patterns](index.html) » [Messaging Endpoints](MessagingEndpointsIntro.html) | [Contents](toc.html)[⇐ Prev](MessagingMapper.html)[Next ⇒](PollingConsumer.html) |\n| --- | --- | --- |\n\nA messaging system, by necessity, uses transactional behavior internally. It may be useful for an external client to be able to control the scope of the transactions that impact its behavior.\n\nHow can a client control its transactions with the messaging system?\n\nUse a *Transactional Client*—make the client’s session with the messaging system transactional so that the client can specify transaction boundaries.\n\nBoth a sender and a receiver can be transactional. With a sender, the message isn’t “really” added to the channel until the sender commits the transaction. With a receiver, the message isn’t “really” removed from the channel until the receiver commits the transaction. A sender that uses explicit transactions can be used with a receiver that uses implicit transactions, and vise versa. A single channel might have a combination of implicitly and explicitly transactional senders; it could also have a combination of receivers.\n\n...\nRead the entire pattern in the book [Enterprise Integration Patterns](/books1.html)\n\n## Example: (Not quite) Transactional Client in Amazon SQS[NEW](/ramblings/eip1_examples_updated.html)\n\n*Transactional Client* semantics can cause serious performance degradation in widely distributed systems. Many cloud-based messaging systems therefore don't implement *Transactional Client*s. However, these systems still aim to provide protection against client s crashing after they consume but before they process a message. The [Amazon Simple Queuing Service (SQS)](https://aws.amazon.com/sqs) provides this protection via so-called *Visibility Timeout*. In this configuration, message consumers don't actually remove messages from the queue - the message simply becomes invisible to other consumers. After successfully processing the message, a message consumer must explicitly delete the message from the queue. If a message is not deleted, it becomes visible again to other consumers after the set timeout interval expires.\n\nThe book *Cloud Computing Patterns* documents this behavior as a distinct pattern called [Time-out Based Delivery](http://www.cloudcomputingpatterns.org/timeout_based_delivery/).\n\n**Related patterns:**\n\n[*Channel Adapter*](ChannelAdapter.html), [*Competing Consumers*](CompetingConsumers.html), [*Document Message*](DocumentMessage.html), [*Event-Driven Consumer*](EventDrivenConsumer.html), [*Event Message*](EventMessage.html), [*Guaranteed Delivery*](GuaranteedMessaging.html), [*Message*](Message.html), [*Message Channel*](MessageChannel.html), [*Message Dispatcher*](MessageDispatcher.html), [*Message Endpoint*](MessageEndpoint.html), [*Message Router*](MessageRouter.html), [*Message Sequence*](MessageSequence.html), [*Message Translator*](MessageTranslator.html), [*Messaging Bridge*](MessagingBridge.html), [*Pipes and Filters*](PipesAndFilters.html), [*Point-to-Point Channel*](PointToPointChannel.html), [*Polling Consumer*](PollingConsumer.html), [*Publish-Subscribe Channel*](PublishSubscribeChannel.html), [*Request-Reply*](RequestReply.html), [*Resequencer*](Resequencer.html)\n\n---\n\n## Integration Pattern Language\n\n[Message Construct.](MessageConstructionIntro.html)\n\n[Message](Message.html)\n\n[Command Message](CommandMessage.html)\n\n[Document Message](DocumentMessage.html)\n\n[Event Message](EventMessage.html)\n\n[Request-Reply](RequestReply.html)\n\n[Return Address](ReturnAddress.html)\n\n[Correlation Identifier](CorrelationIdentifier.html)\n\n[Message Sequence](MessageSequence.html)\n\n[Message Expiration](MessageExpiration.html)\n\n[Format Indicator](FormatIndicator.html)\n\n[Message Routing](MessageRoutingIntro.html)\n\n[Pipes-and-Filters](PipesAndFilters.html)\n\n[Message Router](MessageRouter.html)\n\n[Content-based Router](ContentBasedRouter.html)\n\n[Message Filter](Filter.html)\n\n[Dynamic Router](DynamicRouter.html)\n\n[Recipient List](RecipientList.html)\n\n[Splitter](Sequencer.html)\n\n[Aggregator](Aggregator.html)\n\n[Resequencer](Resequencer.html)\n\n[Composed Msg. Processor](DistributionAggregate.html)\n\n[Scatter-Gather](BroadcastAggregate.html)\n\n[Routing Slip](RoutingTable.html)\n\n[Process Manager](ProcessManager.html)\n\n[Message Broker](MessageBroker.html)\n\n[Message\nTransformation](MessageTransformationIntro.html)\n\n[Message Translator](MessageTranslator.html)\n\n[Envelope Wrapper](EnvelopeWrapper.html)\n\n[Content Enricher](DataEnricher.html)\n\n[Content Filter](ContentFilter.html)\n\n[Claim Check](StoreInLibrary.html)\n\n[Normalizer](Normalizer.html)\n\n[Canonical Data Model](CanonicalDataModel.html)\n\n[Messaging Endpoints](MessagingEndpointsIntro.html)\n\n[Message Endpoint](MessageEndpoint.html)\n\n[Messaging Gateway](MessagingGateway.html)\n\n[Messaging Mapper](MessagingMapper.html)\n\n[Transactional Client](TransactionalClient.html)\n\n[Polling Consumer](PollingConsumer.html)\n\n[Event-driven Consumer](EventDrivenConsumer.html)\n\n[Competing Consumers](CompetingConsumers.html)\n\n[Message Dispatcher](MessageDispatcher.html)\n\n[Selective Consumer](MessageSelector.html)\n\n[Durable Subscriber](DurableSubscription.html)\n\n[Idempotent Receiver](IdempotentReceiver.html)\n\n[Service Activator](MessagingAdapter.html)\n\n[Messaging Channels](MessagingChannelsIntro.html)\n\n[Message Channel](MessageChannel.html)\n\n[Point-to-Point Channel](PointToPointChannel.html)\n\n[Publish-Subscr. Channel](PublishSubscribeChannel.html)\n\n[Datatype Channel](DatatypeChannel.html)\n\n[Invalid Message Channel](InvalidMessageChannel.html)\n\n[Dead Letter Channel](DeadLetterChannel.html)\n\n[Guaranteed Delivery](GuaranteedMessaging.html)\n\n[Channel Adapter](ChannelAdapter.html)\n\n[Messaging Bridge](MessagingBridge.html)\n\n[Message Bus](MessageBus.html)\n\n[Systems Mgmt.](SystemManagementIntro.html)\n\n[Control Bus](ControlBus.html)\n\n[Detour](Detour.html)\n\n[Wire Tap](WireTap.html)\n\n[Message History](MessageHistory.html)\n\n[Message Store](MessageStore.html)\n\n[Smart Proxy](SmartProxy.html)\n\n[Test Message](TestMessage.html)\n\n[Channel Purger](ChannelPurger.html)", "znaku_textu": 5989, "slov": 531, "odkazu": 111, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/TransactionalClient.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 06:04:03", "sha256": "4c68a9d914e3aef5c2d003ee0b823a0954189713cf3e1b949d533234a65a93c9", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://aws.amazon.com/sqs", "http://www.cloudcomputingpatterns.org/timeout_based_delivery/", "http://creativecommons.org/licenses/by/4.0/", "https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "https://www.architectelevator.com/book", "https://www.cloudstrategybook.com/", "https://www.platformstrategybook.info/"]} {"url": "https://www.enterpriseintegrationpatterns.com/WireTap.html", "titulek": "Wire Tap - Enterprise Integration Patterns", "h1": "", "popis": "How do you inspect messages that travel on a point-to-point channel?", "klicova_slova": "Wire Tap,integration, messaging, events, patterns, event-driven, coupling, eai, middleware, application integration, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns", "og:title": "Wire Tap - Enterprise Integration Patterns", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/WireTap.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/WireTap.gif"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Integration Pattern Language"}], "markdown": "Messaging Patterns\n\n[Messaging Patterns](index.html)\n\n- [Integration Styles](IntegrationStylesIntro.html)\n- [Messaging Systems](MessagingComponentsIntro.html)\n- [Messaging Channels](MessagingChannelsIntro.html)\n- [Message Construction](MessageConstructionIntro.html)\n- [Interlude: Simple Messaging](SimpleMessagingIntro.html)\n- [Message Routing](MessageRoutingIntro.html)\n- [Message Transformation](MessageTransformationIntro.html)\n- [Interlude: Composed Messaging](ComposedMessagingExample.html)\n- [Messaging Endpoints](MessagingEndpointsIntro.html)\n- [System Management](SystemManagementIntro.html)\n- Interlude: Systems Management Example\n- Integration Patterns in Practice\n- Concluding Remarks\n- Appendices\n\n| | Wire Tap[Messaging Patterns](index.html) » [System Management](SystemManagementIntro.html) | [Contents](toc.html)[⇐ Prev](Detour.html)[Next ⇒](MessageHistory.html) |\n| --- | --- | --- |\n\n[*Point-to-Point Channel*](PointToPointChannel.html)s are often used for [*Document Message*](DocumentMessage.html)s because they ensure that exactly one consumer will consume each message. However, for testing, monitoring or troubleshooting, it may be useful to be able to inspect all messages that travel across the channel.\n\nHow do you inspect messages that travel on a point-to-point channel?\n\nInsert a simple Recipient List into the channel that publishes each incoming message to the main channel and a secondary channel.\n\nThe *Wire Tap* is a fixed [*Recipient List*](RecipientList.html) with two output channels. It consumes messages off the input channel and publishes the unmodified message to both output channels. To insert the *Wire Tap* into a channel, you need to create an additional channel and change the destination receiver to consume of the second channel. Because the analysis logic is located inside a second component, we can insert a generic *Wire Tap* into any channel without any danger of modifying the primary channel behavior. This improves reuse and reduces the risk of instrumenting an existing solution.\n\n...\nRead the entire pattern in the book [Enterprise Integration Patterns](/books1.html)\n\n**Related patterns:**\n\n[*Competing Consumers*](CompetingConsumers.html), [*Control Bus*](ControlBus.html), [*Detour*](Detour.html), [*Document Message*](DocumentMessage.html), [*Message Broker*](MessageBroker.html), [*Message Store*](MessageStore.html), [*Point-to-Point Channel*](PointToPointChannel.html), [*Publish-Subscribe Channel*](PublishSubscribeChannel.html), [*Recipient List*](RecipientList.html), [*Loan Broker System Management*](SystemManagementExample.html)\n\n---\n\n## Integration Pattern Language\n\n[Message Construct.](MessageConstructionIntro.html)\n\n[Message](Message.html)\n\n[Command Message](CommandMessage.html)\n\n[Document Message](DocumentMessage.html)\n\n[Event Message](EventMessage.html)\n\n[Request-Reply](RequestReply.html)\n\n[Return Address](ReturnAddress.html)\n\n[Correlation Identifier](CorrelationIdentifier.html)\n\n[Message Sequence](MessageSequence.html)\n\n[Message Expiration](MessageExpiration.html)\n\n[Format Indicator](FormatIndicator.html)\n\n[Message Routing](MessageRoutingIntro.html)\n\n[Pipes-and-Filters](PipesAndFilters.html)\n\n[Message Router](MessageRouter.html)\n\n[Content-based Router](ContentBasedRouter.html)\n\n[Message Filter](Filter.html)\n\n[Dynamic Router](DynamicRouter.html)\n\n[Recipient List](RecipientList.html)\n\n[Splitter](Sequencer.html)\n\n[Aggregator](Aggregator.html)\n\n[Resequencer](Resequencer.html)\n\n[Composed Msg. Processor](DistributionAggregate.html)\n\n[Scatter-Gather](BroadcastAggregate.html)\n\n[Routing Slip](RoutingTable.html)\n\n[Process Manager](ProcessManager.html)\n\n[Message Broker](MessageBroker.html)\n\n[Message\nTransformation](MessageTransformationIntro.html)\n\n[Message Translator](MessageTranslator.html)\n\n[Envelope Wrapper](EnvelopeWrapper.html)\n\n[Content Enricher](DataEnricher.html)\n\n[Content Filter](ContentFilter.html)\n\n[Claim Check](StoreInLibrary.html)\n\n[Normalizer](Normalizer.html)\n\n[Canonical Data Model](CanonicalDataModel.html)\n\n[Messaging Endpoints](MessagingEndpointsIntro.html)\n\n[Message Endpoint](MessageEndpoint.html)\n\n[Messaging Gateway](MessagingGateway.html)\n\n[Messaging Mapper](MessagingMapper.html)\n\n[Transactional Client](TransactionalClient.html)\n\n[Polling Consumer](PollingConsumer.html)\n\n[Event-driven Consumer](EventDrivenConsumer.html)\n\n[Competing Consumers](CompetingConsumers.html)\n\n[Message Dispatcher](MessageDispatcher.html)\n\n[Selective Consumer](MessageSelector.html)\n\n[Durable Subscriber](DurableSubscription.html)\n\n[Idempotent Receiver](IdempotentReceiver.html)\n\n[Service Activator](MessagingAdapter.html)\n\n[Messaging Channels](MessagingChannelsIntro.html)\n\n[Message Channel](MessageChannel.html)\n\n[Point-to-Point Channel](PointToPointChannel.html)\n\n[Publish-Subscr. Channel](PublishSubscribeChannel.html)\n\n[Datatype Channel](DatatypeChannel.html)\n\n[Invalid Message Channel](InvalidMessageChannel.html)\n\n[Dead Letter Channel](DeadLetterChannel.html)\n\n[Guaranteed Delivery](GuaranteedMessaging.html)\n\n[Channel Adapter](ChannelAdapter.html)\n\n[Messaging Bridge](MessagingBridge.html)\n\n[Message Bus](MessageBus.html)\n\n[Systems Mgmt.](SystemManagementIntro.html)\n\n[Control Bus](ControlBus.html)\n\n[Detour](Detour.html)\n\n[Wire Tap](WireTap.html)\n\n[Message History](MessageHistory.html)\n\n[Message Store](MessageStore.html)\n\n[Smart Proxy](SmartProxy.html)\n\n[Test Message](TestMessage.html)\n\n[Channel Purger](ChannelPurger.html)\n\n- » [Read the latest in My Blog](/ramblings)\n- » [Get more insights from My Articles](/articles.html)\n- » [See me live in my Upcoming Talks](/talks)\n\nYou can reuse the following elements under the [Creative Commons Attribution](http://creativecommons.org/licenses/by/4.0/) license: pattern icon, pattern name, problem and solution statements (in bold), and the sketch. Other portions are protected by copyright.\n\n[Enterprise Integration Patterns](https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20)\nThe de-facto language for designing asynchronous, distributed systems. Over 100,000 copies sold.\n\n[The Software Architect Elevator](https://www.architectelevator.com/book)\n\n Rethink the role of architects as a connecting element across organizational layers. Acquire the technical, communication, and organizational skills to succeed in this new role.\n\n[Cloud Strategy](https://www.cloudstrategybook.com)\n\n Make your cloud migration a success by translating high-level goals into conscious decisions with well-understood trade-offs.\n\n[Platform Strategy](https://www.platformstrategybook.info)\n\n Platforms can boost innovation through harmonization, but they aren't easy to build. Learn from over a decade of designing and rolling out IT platforms.", "znaku_textu": 6552, "slov": 568, "odkazu": 108, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/WireTap.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 06:52:59", "sha256": "b275e1b1f27150cd5c5078d83113648b86702c8f2140380c8142cf9c5b6502cb", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://creativecommons.org/licenses/by/4.0/", "https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "https://www.architectelevator.com/book", "https://www.cloudstrategybook.com/", "https://www.platformstrategybook.info/"]} {"url": "https://www.enterpriseintegrationpatterns.com/articles.html", "titulek": "Articles - Enterprise Integration Patterns", "h1": "", "popis": "I've been a steady contributor to IEEE Software over the years. Find all published articles on this page.", "klicova_slova": "", "kanonicka": "", "jazyk": "en_US", "robots_meta": "", "og": {"og:type": "article", "og:locale": "en_US", "og:site_name": "Enterprise Integration Patterns", "og:title": "Articles - Enterprise Integration Patterns", "og:description": "I've been a steady contributor to IEEE Software over the years. Find all published articles on this page.", "og:url": "https://www.enterpriseintegrationpatterns.com/articles.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/articles.jpg"}, "jsonld": [], "drobecky": [], "osnova": [], "markdown": "Articles\n\n---\n\nI like to write and speak about EAI, SOA, Web Services, Agile Development, \r\n and Patterns. This page lists my white papers and articles. Please \r\n check out the [Links](/links.html) section for interesting works by \r\n other authors. If you find any of these articles useful, feel free to [contact \r\n me](/gregor.html) directly.\n\n| | A Decade of Enterprise Integration Patterns [[Download PDF from IEEE Explore]](https://ieeexplore.ieee.org/stamp/stamp.jsp?tp=&arnumber=7368007) \n IEEE Software Magazine January/February 2016 A little over a decade after EIP was published, Bobby and I sat down with Cesare Pautasso and Olaf Zimmermann to discuss how integration platforms evolved, why the patterns remained relevant, and what we would do differently today. |\n| --- | --- |\n| | |\n| | 20 Years of Patterns' Impact [[Download PDF from IEEE Explore]](http://ieeexplore.ieee.org/xpl/articleDetails.jsp?arnumber=6648592) \n IEEE Software Magazine November/December 2013 This article under the *Impacts* column of *IEEE Software Magazine* celebrates 20 years of software patterns. IEEE Software advisory board members teamed up with members of the Hillside Group, a nonprofit organization that promotes the use of patterns and pattern languages, to reflect on the state of the practice and impact of patterns. With Rebecca Wirfs-Brock, Joe Yoder, Olaf Zimmermann |\n| | |\n| | SOA Patterns - New Insights or Recycled Knowledge? [[PDF]](/docs/SoaPatterns.pdf) \n May 2007 Design Patterns have enjoyed enormous popularity in the software community and have \r\n become somewhat of a fad. This can make it challenging to distinguish patterns that \r\n convey new knowledge from recipes or tutorials that have been cast into patterns form. \r\n This article examines the role patterns play in the adoption of new technologies and \r\n architectural styles. In particular it describes why the shift to service-oriented \r\n architectures requires us to discover, document, and share new patterns. |\n| | |\n| | Let's Have a Conversation [[PDF]](/docs/IEEE_IC_Conversations.pdf) \n IEEE Internet Computing May/June 2007 Communicating inside a single program is\r\n trivial: one method calls another, the result \r\n comes back, and the calling method continues. \r\n If anything goes wrong, an exception is \r\n thrown. If the program aborts altogether, both\r\n caller and callee share the same fate, making the \r\n interaction an all-or-nothing affair. \n\r\n In the land of loosely coupled distributed systems, \r\n things are a little more complicated. Messages are sent, correlated, lost, retried, timed out. Soon we are looking at a full fledged conversation between multiple systems. |\n| | |\n| | Workshop Report: Conversation Patterns [[PDF]](http://drops.dagstuhl.de/opus/frontdoor.php?source_opus=828) \n June 2006, Dagstuhl Seminar Proceedings 06291 In a service-oriented architecture systems communicate by exchanging messages. Message passing provides for robust and loosely coupled interaction but it also provides less structure than traditional RPC models, which are based on a fairly rigid request-response interaction style. Instead, messages exchanged over time between a set of parties can form a multitude of conversations. An expressive contract between communicating parties should define a coordination protocol that describes which conversations are legal. Such a protocol can be expressed in different ways, for example through choreography or public endpoint process definitions. The purpose of conversations patterns is to document common forms of conversations in the design pattern format, highlighting design trade-offs and popular implementations. As part of the Dagstuhl Seminar 06291 on The Role of Business Processes in Service Oriented Architectures in July 2006 we held a Workshop on Conversation Patterns. In this paper, we report on the results of this workshop. |\n| | |\n| | Programmieren ohne Stack: Ereignis-getriebene \r\n Architekturen [[PDF]](http://www.sigs-datacom.de/fachzeitschriften/objektspektrum/archiv/artikelansicht.html?tx_mwjournals_pi1%5Bpointer%5D=0&tx_mwjournals_pi1%5Bmode%5D=1&tx_mwjournals_pi1%5BshowUid%5D=1791) \n ObjektSpektrum March/April 2006 My first published article in German. Here the (unedited) English adaptation \r\n - [Programming Without a Call Stack](/docs/EDA.pdf). Most computer systems are built on a command-and-control scheme: one \r\n method calls another method and instructs it to perform some action or \r\n to retrieve some required information. But often the real world works \r\n differently. A company receives a new order; a web server receives a request \r\n for a Web page, the right front wheel of my car locks up. In neither case \r\n did the system (order processing, web server, anti-lock brake control) \r\n schedule or request the action. Instead the event occurred based on external \r\n action or activity, caused either by the physical world or another, connected \r\n computer system. Could we change the architecture of our system to relinquish \r\n control and instead respond to events as they arrive? What would such \r\n a system look like? |\n| | |\n| | Cutter Executive Update: Open Source Middleware: Ready for Prime Time?\n July 2005, Cutter Consortium (with Ian Cartwright) Open source software (OSS) has captured enormous mindshare not only among developers but also among consumers and enterprise users. When you browse the Web, you might well use a Mozilla FireFox browser, be routed to the correct host via a BIND DNS server, and view a Web page served up by the Apache HTTP server running on a LINUX operating system. All four pieces of software are part of the growing repertoire of successful open source applications. The [full text version](http://www.cutter.com/content/architecture/fulltext/updates/2005/eau0512.html) can be ordered on the Cutter site. |\n| | |\n| | The Best Software Writing I: Selected and Introduced \r\n by Joel Spolsky\n June 2005, APress Joel selected my blog entry [Starbucks \r\n does not use Two-Phase Commit](/ramblings/18_starbucks.html) for his collection of software essays. |\n| | |\n| | Your Coffee Shop Does Not Use Two-Phase Commit [[HTML]](http://csdl.computer.org/comp/mags/so/2005/02/s2064abs.htm) [[PDF]](/docs/IEEE_Software_Design_2PC.pdf) \n IEEE Software Magazine March/April 2005 Asynchronous processing models can be highly efficient but are not without \r\n challenges. If the real world writes the best stories, then maybe we can \r\n learn something from Starbucks about designing successful asynchronous \r\n messaging solutions.\n (on-line article only available to IEEE digital \r\n library subscribers) (This material is presented to ensure timely dissemination \r\n of scholarly and technical work. Copyright and all rights therein are \r\n retained by authors or by other copyright holders. All persons copying \r\n this information are expected to adhere to the terms and constraints invoked \r\n by each author's copyright. In most cases, these works may not be reposted \r\n without the explicit permission of the copyright holder.) |\n| | |\n| | Developing in a Service-Oriented World [[PDF]](/docs/SOA_World.pdf)\n January 2005, GI Lecture Notes in Informatics \r\n P-65 The biggest shift triggered by SOA is not in the technologies used but \r\n in the way we think about our software. This paper explores what SOA means \r\n for developers - new architectural styles, new programming models and \r\n new tools.\n \n (This paper originally appeared in the proceedings \r\n of the [BTW 2005 Conference](http://www.btw2005.de)in Karlsruhe.) |\n| | |\n| | Enterprise Integration Patterns with BizTalk \r\n Server 2004 [[PDF]](/docs/integrationpatterns_biztalk.pdf)\n July 2004\n This paper demonstrates how a pattern-based design approach can help \r\n decompose an integration problem into a set of reusable patterns. Next, \r\n we map these patterns to the Microsoft BizTalk Server 2004 platform. |\n| | |\n| | An Asynchronous World [[HTML]](http://www.drdobbs.com/an-asynchronous-world/184415001)\n July 2003, Software Development Magazine\n Online, you can get all the documentation you want \r\n on the Java Messaging Service API. But when it comes to drafting messaging \r\n architectures for distributed logic and data, it's often more interesting \r\n to look at what sits between the applications.\n (free one-time registration required to \r\n access on-line article) |\n| | |\n| | XML Abuse [[HTML]](http://www.drdobbs.com/xml-abuse/184414926)\n Dec 2002, Software Development Magazine\n XML is the wonderdrug of the 21st century. Or so make \r\n you the vendors and marchitects believe. However, like any good tool it \r\n can be abused in at least five different ways. This article discusses \r\n some of the most hair-raising XML abuse I have encountered.\n (Free one-time registration required to \r\n access on-line article) |\n| | |\n| | Agile EAI [[PDF]](/docs/Agile%20EAI.pdf) [[HTML]](/docs/agileEAI.html)\n Nov 2002, with Martin Fowler\n This article describes some of the benefits and challenges \r\n of implementing agile practices for EAI development. It is based on a \r\n talk that Martin and I gave at the LOMA Systems Forum last year. |\n| | |\n| | Test-Driven Development in Enterprise Integration \r\n Projects [[PDF]](/docs/TestDrivenEAI.pdf)Nov 2002 This whitepaper describes how test-driven development \r\n can benefit EAI projects. It examines the challenges of automated testing \r\n in an asynchronous messaging environment and presents tools and techniques \r\n to help improve quality and productivity on EAI projects. |\n| | |\n| | Enterprise Integration Patterns [[PDF]](/docs/Enterprise%20Integration%20Patterns%20-%20PLoP%20Final%20Draft%203.pdf)July 2002\n My original paper on integration patterns. I workshopped \r\n this paper at the PLoP conference in 2002. You can see that the patterns \r\n have come a long way since last Summer. |\n| | |\n| | Stairway to Heaven - Service Oriented Architectures [[PDF]](/docs/stairwaytoheaven.pdf)\n May 2002, Software Development Magazine This article tries to dampen some of the hype around \r\n Web services and Service-Oriented Architectures (SOA). Web Services supporters \r\n herald the advent of the Service-Oriented Architecture which will solve \r\n our EAI-style integration pains. SOAs are an intriguing concept, but it \r\n will take a multi-phase evolution until SOAs will establish themselves \r\n as the integration architecture of choice.\n (Free one-time registration required to \r\n access on-line article) |\n| | |\n\n---\n\n---", "znaku_textu": 10248, "slov": 1380, "odkazu": 34, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/articles.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 06:01:22", "sha256": "afb7b1389188571a14c83929e5e1fbd774830b9ee44d54fe6fb6a6f6a5c38a67", "hloubka": 1, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://ieeexplore.ieee.org/stamp/stamp.jsp?arnumber=7368007&tp=", "http://ieeexplore.ieee.org/xpl/articleDetails.jsp?arnumber=6648592", "http://drops.dagstuhl.de/opus/frontdoor.php?source_opus=828", "http://www.sigs-datacom.de/sd/publications/pub_article_show.htm?AID=1791&TABLE=sd_article", "http://www.sigs-datacom.de/fachzeitschriften/objektspektrum/archiv/artikelansicht.html?tx_mwjournals_pi1%5Bmode%5D=1&tx_mwjournals_pi1%5Bpointer%5D=0&tx_mwjournals_pi1%5BshowUid%5D=1791", "http://www.apress.com/book/bookDisplay.html?bID=453+", "http://www.cutter.com/content/architecture/fulltext/updates/2005/eau0512.html", "http://www.apress.com/book/bookDisplay.html?bID=453", "http://csdl.computer.org/comp/mags/so/2005/02/s2064abs.htm", "http://www.btw2005.de/", "http://www.drdobbs.com/an-asynchronous-world/184415001", "http://www.drdobbs.com/xml-abuse/184414926"]} {"url": "https://www.enterpriseintegrationpatterns.com/bib.html", "titulek": "Bibliography - Enterprise Integration Patterns", "h1": "", "popis": "Bibliography - Enterprise Integration Patterns", "klicova_slova": "Bibliography,integration, messaging, events, patterns, event-driven, coupling, eai, middleware, application integration, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns", "og:title": "Bibliography - Enterprise Integration Patterns", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/bib.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/eip1_patterns_wide.png"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Integration Pattern Language"}], "markdown": "| | Bibliography[Messaging Patterns](index.html) » Appendices | [Contents](toc.html)[⇐ Prev](Future.html)[Next ⇒](history.html) |\n| --- | --- | --- |\n\n**Alexander**\nC. Alexander, S. Ishikawa, M Silverstein,\n *A Pattern Language - Towns Buildings Construction,*Oxford University Press, 1977, \n ISBN: [0195019199](http://www.amazon.com/exec/obidos/ASIN/0195019199/enterpriseint-20)\nProbably the most quoted book in any work related to patterns. I actually used a number of Alexander's patterns to design a beach house for an interior architecture class. It is interesting to note that Alexander's desire to dissect architecture and design into a set of composable constructs may stem from his study of mathematics. His thesis published as \"Notes on the synthesis of form\" references a set of programs that he developed in IBM 7090 assembly code. So the tremendous success of Alexander's patterns in the software community is not quite coincidental.\n\n**Alpert**\nS. Alpert, K. Brown, B. Woolf,\n *The Design Patterns Smalltalk Companion,*Addison-Wesley, 1998, \n ISBN: [0201184621](http://www.amazon.com/exec/obidos/ASIN/0201184621/enterpriseint-20)\n\n**Box**\nDon Box,\n *Essential .NET, Volume 1: the Common Language Runtime,*Addison-Wesley, 2002, \n ISBN: [0201734117](http://www.amazon.com/exec/obidos/ASIN/0201734117/enterpriseint-20)\nMore than you ever wanted to know about the inner workings of the CLR...\n\n**BPEL4WS**\n*Business Process Execution Language for Web Services, Version 1.0,*[http://www.ibm.com/developerworks/webservices/library/ws-bpel](http://www.ibm.com/developerworks/webservices/library/ws-bpel)\n\n**CSP**\nC. A. R. Hoare,\n *Communicating Sequential Processes,*Communications of the ACM , 1978, [http://doi.acm.org/10.1145/359576.359585](http://doi.acm.org/10.1145/359576.359585)\nACM on-line library access is required to see the full-text version of this article.\n\n**CoreJ2EE**\nAlur, Crupi, Malks,\n *Core J2EE Patterns: Best Practices and Design Strategies (2nd Edition),*Prentice Hall PTR, 2003, \n ISBN: [0131422464](http://www.amazon.com/exec/obidos/ASIN/0131422464/enterpriseint-20)\n\n**Dickman**\nAlan Dickman,\n *Designing Applications with MSMQ,*Addison-Wesley, 1998, \n ISBN: [0201325810](http://www.amazon.com/exec/obidos/ASIN/0201325810/enterpriseint-20)\n\n**Douglass**\nBruce Powel Douglass,\n *Real-Time Design Patterns,*Addison-Wesley, 2003, \n ISBN: [0201699567](http://www.amazon.com/exec/obidos/ASIN/0201699567/enterpriseint-20)\nThis book proves the transportability of patterns across domains. Some of Douglass' reliability patterns prove very useful in the context of enterprise messaging.\n\n**EAA**\nMartin Fowler,\n *Patterns of Enterprise Application Architecture,*Addison-Wesley, 2003, \n ISBN: [0321127420](http://www.amazon.com/exec/obidos/ASIN/0321127420/enterpriseint-20)\nThe most comprehensive book yet on application architecture patterns. Even though it covers 51 patterns, it is an easy and interesting read while never sacrificing technical accuracy. OK, just buy the dang book :-)\n\n**EJB20**\n*Enterprise JavaBeans Specification, Version 2.0,*[http://java.sun.com/products/ejb/docs.html](http://java.sun.com/products/ejb/docs.html)\n\n**Garlan**\nMary Shaw, Garlan David,\n *Software Architecture: Perspectives on an Emerging Discipline,*Prentice Hall, 1996, \n ISBN: [0131829572](http://www.amazon.com/exec/obidos/ASIN/0131829572/enterpriseint-20)\n\n**GoF**\nErich Gamma, Richard Helm, Ralph Johnson, John Vlissides,\n *Design Patterns: Elements of Reusable Object-Oriented Software,*Addison-Wesley, 1995, \n ISBN: [0201633612](http://www.amazon.com/exec/obidos/ASIN/0201633612/enterpriseint-20)\nSurely the second most quoted book in any work on patterns.\n\n**Graham02**\nSteve Graham, Simon Simeonov, Toufic Boubez, Glen Daniels, Doug Davis, Yuichi Nakamura, Ryo Nyeama,\n *Building Web Services with Java: Making Sense of XML, SOAP and UDDI,*SAMS Publishing, 2002, \n ISBN: [0672321815](http://www.amazon.com/exec/obidos/ASIN/0672321815/enterpriseint-20)\n\n**Hohmann**\nLuke Hohmann,\n *Beyond Software Architecture: Creating and Sustaining Winning Solutions,*Addison-Wesley, 2003, \n ISBN: [0201775948](http://www.amazon.com/exec/obidos/ASIN/0201775948/enterpriseint-20)\n\n**Hapner**\nMark Hapner, Rich Burridge, Rahul Sharma, Joseph Fialli, Kim Haase,\n *Java Messaging Service API Tutorial and Reference,*Addison-Wesley, 2002, \n ISBN: [0201784726](http://www.amazon.com/exec/obidos/ASIN/0201784726/enterpriseint-20)\n\n**JMS**\n*Java Message Service (JMS),*Sun Microsystems, [http://java.sun.com/products/jms/](http://java.sun.com/products/jms/)\n\n**JMS11**\n*Java Message Service (the Sun Java Message Service (JMS) 1.1 Specification),*Sun Microsystems, [http://java.sun.com/products/jms/docs.html](http://java.sun.com/products/jms/docs.html)\n\n**JTA**\n*Transactions and Java Technology,*[http://java.sun.com/j2ee/transactions.html](http://java.sun.com/j2ee/transactions.html)\n\n**Kahn**\nG. Kahn,\n *The Semantics of a Simple Language for Parallel Programming, Information Processing 74: Proc. IFIP Congress 74,*North-Holland Publishing Co., 1974,\n\n**Kaye**\nDoug Kaye,\n *Loosely Coupled: The Missing Pieces of Web Services,*RDS Press, 2003, \n ISBN: [1881378241](http://www.amazon.com/exec/obidos/ASIN/1881378241/enterpriseint-20)\nA refreshing look at Web services. Instead of wading through APIs we get to read about the core principles at work in Service-Oriented Architectures in a technology-neutral jargon-free way. This book is likely too high-level for developers itching to make that SOAP call but it is ideal for technical managers and architects who have to explain these concepts to non-techies.\n\n**Kent**\nWilliam Kent,\n *Data and Reality,*1stBooks, 2000, \n ISBN: [1585009709](http://www.amazon.com/exec/obidos/ASIN/1585009709/enterpriseint-20)\nA classic book (the original edition is from 1978) that tells us why modeling reality inside a computer system is so hard. You can hardcover at Amazon for $45, but 1stBooks offers an electronic version for $8.95 or a $30 paperback version at http://www.1stbooks.com.\n\n**Lewis**\nRhys Lewis,\n *Advanced Messaging Applications with MSMQ and MQSeries,*Que, 2000, \n ISBN: [078972023X](http://www.amazon.com/exec/obidos/ASIN/078972023X/enterpriseint-20)\n\n**Leyman**\nFrank Leyman, et al.,\n *Production Workflow: Concepts and Techniques,*Prentice-Hall PTR, 1999, \n ISBN: [0130217530](http://www.amazon.com/exec/obidos/ASIN/0130217530/enterpriseint-20)\n\n**MDMSG**\n*Multiple-Destination Messaging,*[http://msdn.microsoft.com/library/](http://msdn.microsoft.com/library/)\n\n**Monson-Haefel**\nRichard Monson-Haefel and David A. Chappell,\n *Java Message Service,*O’Reilly, 2001, \n ISBN: [0596000685](http://www.amazon.com/exec/obidos/ASIN/0596000685/enterpriseint-20)\n\n**MicroWorkflow**\nDragos Manolescu,\n *Micro-Workflow: A Workflow Architecture Supporting Compositional Object-Oriented Software Development,*[http://micro-workflow.com/PhDThesis/phdthesis.pdf](http://micro-workflow.com/PhDThesis/phdthesis.pdf)\n\n**Monroe**\nRobert T. Monroe, Drew Kompanek, Ralph Melton, David Garlan,\n *Stylized Architecture, Design Patterns, and Objects,*1996, [http://www-2.cs.cmu.edu/afs/cs/project/compose/ftp/pdf/ObjPatternsArch-ieee97.pdf](http://www-2.cs.cmu.edu/afs/cs/project/compose/ftp/pdf/ObjPatternsArch-ieee97.pdf)\n\n**MQSeries**\n*MQSeries from IBM,*[http://www.ibm.com/software/mqseries](http://www.ibm.com/software/mqseries)\n\n**MSMQ01**\n*Microsoft Message Queuing (MSMQ),*[http://www.microsoft.com/msmq](http://www.microsoft.com/msmq)\n\n**POSA**\nBuschmann et al,\n *Pattern-Oriented Software Architecture,*Wiley, 1996, \n ISBN: [0471958697](http://www.amazon.com/exec/obidos/ASIN/0471958697/enterpriseint-20)\nA great book on architecture and design patterns.\n\n**POSA2**\nSchmidt et al,\n *Pattern-Oriented Software Architecture Vol.2,*Wiley, 2000, \n ISBN: [0471606952](http://www.amazon.com/exec/obidos/ASIN/0471606952/enterpriseint-20)\nMore patterns focused on distributed systems and concurrency issues.\n\n**PatternForms**\n*Pattern Forms, Wiki-Wiki-Web,*[http://c2.com/cgi-bin/wiki?PatternForms](http://c2.com/cgi-bin/wiki?PatternForms)\nA list of commonly used pattern forms and their differences.\n\n**PLOPD1**\nJames Coplien, Douglas Schmidt (Editor),\n *Pattern Languages of Program Design,*Addision-Wesley, 1995, \n ISBN: [0201607344](http://www.amazon.com/exec/obidos/ASIN/0201607344/enterpriseint-20)\nThe proceedings from the first PLoP conference. These proceedings contain a lot of papers that formed the basis for later books, such as POSA. This volume contain's Frank Buschmann's and Regine Meunier's \"A System of Patterns\", Regine Meunier's \"The Pipes and Filters Architecture\", and Diane Mularz' \"Pattern-Based Integration Architectures\".\n\n**Sharp**\nAlec Sharp, Patrick McDermott ,\n *Workflow Modeling: Tools for Process Improvement and Application Development,*Artech House, 2001, \n ISBN: [1580530214](http://www.amazon.com/exec/obidos/ASIN/1580530214/enterpriseint-20)\nThis book focuses on the modeling aspect of workflow -- an interesting read for analysts and business architects alike.\n\n**SOAP 1.1**\n*W3C Simple Object Access Protocol (SOAP) 1.1 Specification,*[http://www.w3.org/TR/SOAP/](http://www.w3.org/TR/SOAP/)\n\n**SOAP 1.2 Part 2**\n*SOAP Version 1.2 Part 2: Adjuncts,*[http://www.w3.org/TR/soap12-part2/](http://www.w3.org/TR/soap12-part2/)\n\n**Stevens**\nW. Richard Stevens,\n *TCP/IP Illustrated, Volume 1: The Protocols,*Addison-Wesley, 1994, \n ISBN: [0201633469](http://www.amazon.com/exec/obidos/ASIN/0201633469/enterpriseint-20)\n\n**SysMsg**\n*System.Messaging Namespace in the .NET Framework SDK,*Microsoft, [http://msdn.microsoft.com/library/](http://msdn.microsoft.com/library/)\n\n**Tennison**\nJeni Tennison,\n *XSLT and XPath On The Edge,*John Wiley & Sons, 2001, \n ISBN: [0764547763](http://www.amazon.com/exec/obidos/ASIN/0764547763/enterpriseint-20)\n\n**UML**\n*UML Distilled: A Brief Guide to the Standard Object Modeling Language, Third Edition,*Addison-Wesley, 2003, \n ISBN: [0321193687](http://www.amazon.com/exec/obidos/ASIN/0321193687/enterpriseint-20)\n\n**UMLEAI**\n*UML Profile for Enterprise Application Integration,*Object Management Group , 2002, [http://cgi.omg.org/cgi-bin/doc?ptc/02-02-02](http://cgi.omg.org/cgi-bin/doc?ptc/02-02-02)\n\n**Wright**\nGary R. Wright, W. Richard Stevens,\n *TCP/IP Illustrated, Volume 2: The Implementation,*Addison-Wesley, 1995, \n ISBN: [020163354X](http://www.amazon.com/exec/obidos/ASIN/020163354X/enterpriseint-20)\n\n**WSAUS**\n*Web Services Architecture Usage Scenarios,*W3C, [http://www.w3.org/TR/ws-arch-scenarios/](http://www.w3.org/TR/ws-arch-scenarios/)\n\n**WSDL 1.1**\n*Web Services Description Language (WSDL) 1.1,*[http://www.w3.org/TR/wsdl](http://www.w3.org/TR/wsdl)\n\n**WSFL**\n*Web Services Flow Language,*IBM, [http://www-3.ibm.com/software/solutions/webservices/pdf/WSFL.pdf](http://www-3.ibm.com/software/solutions/webservices/pdf/WSFL.pdf)\n\n**WSMQ**\n*WebSphere MQ Using Java,*IBM, [http://publibfp.boulder.ibm.com/epubs/pdf/csqzaw11.pdf](http://publibfp.boulder.ibm.com/epubs/pdf/csqzaw11.pdf)\n\n**XML 1.0**\n*Extensible Markup Language (XML) 1.0 (Second Edition),*[http://www.w3.org/TR/REC-xml](http://www.w3.org/TR/REC-xml)\n\n**XSLT 1.0**\n*XSL Transformations (XSLT) Version 1.0 -- W3C Recommendation,*[http://www.w3.org/TR/xslt](http://www.w3.org/TR/xslt)\n\n**Waldo**\nWaldo, J., Wyant, G., Wollrath, A., and Kendall, S.,\n *A Note on Distributed Computing, Technical Report SMLI TR-94-29,*Sun Microsystems Laboratories, November 1994, [http://citeseer.nj.nec.com/waldo94note.html](http://citeseer.nj.nec.com/waldo94note.html)\n\n**Zahavi**\nRon Zahavi,\n *Enterprise Application Integration with CORBA ,*John Wiley & Sons, 1999, \n ISBN: [0471327204](http://www.amazon.com/exec/obidos/ASIN/0471327204/enterpriseint-20)\n\n## Integration Pattern Language\n\n[Message Construct.](MessageConstructionIntro.html)\n\n[Message](Message.html)\n\n[Command Message](CommandMessage.html)\n\n[Document Message](DocumentMessage.html)\n\n[Event Message](EventMessage.html)\n\n[Request-Reply](RequestReply.html)\n\n[Return Address](ReturnAddress.html)\n\n[Correlation Identifier](CorrelationIdentifier.html)\n\n[Message Sequence](MessageSequence.html)\n\n[Message Expiration](MessageExpiration.html)\n\n[Format Indicator](FormatIndicator.html)\n\n[Message Routing](MessageRoutingIntro.html)\n\n[Pipes-and-Filters](PipesAndFilters.html)\n\n[Message Router](MessageRouter.html)\n\n[Content-based Router](ContentBasedRouter.html)\n\n[Message Filter](Filter.html)\n\n[Dynamic Router](DynamicRouter.html)\n\n[Recipient List](RecipientList.html)\n\n[Splitter](Sequencer.html)\n\n[Aggregator](Aggregator.html)\n\n[Resequencer](Resequencer.html)\n\n[Composed Msg. Processor](DistributionAggregate.html)\n\n[Scatter-Gather](BroadcastAggregate.html)\n\n[Routing Slip](RoutingTable.html)\n\n[Process Manager](ProcessManager.html)\n\n[Message Broker](MessageBroker.html)\n\n[Message\nTransformation](MessageTransformationIntro.html)\n\n[Message Translator](MessageTranslator.html)\n\n[Envelope Wrapper](EnvelopeWrapper.html)\n\n[Content Enricher](DataEnricher.html)\n\n[Content Filter](ContentFilter.html)\n\n[Claim Check](StoreInLibrary.html)\n\n[Normalizer](Normalizer.html)\n\n[Canonical Data Model](CanonicalDataModel.html)\n\n[Messaging Endpoints](MessagingEndpointsIntro.html)\n\n[Message Endpoint](MessageEndpoint.html)\n\n[Messaging Gateway](MessagingGateway.html)\n\n[Messaging Mapper](MessagingMapper.html)\n\n[Transactional Client](TransactionalClient.html)\n\n[Polling Consumer](PollingConsumer.html)\n\n[Event-driven Consumer](EventDrivenConsumer.html)\n\n[Competing Consumers](CompetingConsumers.html)\n\n[Message Dispatcher](MessageDispatcher.html)\n\n[Selective Consumer](MessageSelector.html)\n\n[Durable Subscriber](DurableSubscription.html)\n\n[Idempotent Receiver](IdempotentReceiver.html)\n\n[Service Activator](MessagingAdapter.html)\n\n[Messaging Channels](MessagingChannelsIntro.html)\n\n[Message Channel](MessageChannel.html)\n\n[Point-to-Point Channel](PointToPointChannel.html)\n\n[Publish-Subscr. Channel](PublishSubscribeChannel.html)\n\n[Datatype Channel](DatatypeChannel.html)\n\n[Invalid Message Channel](InvalidMessageChannel.html)\n\n[Dead Letter Channel](DeadLetterChannel.html)\n\n[Guaranteed Delivery](GuaranteedMessaging.html)\n\n[Channel Adapter](ChannelAdapter.html)\n\n[Messaging Bridge](MessagingBridge.html)\n\n[Message Bus](MessageBus.html)\n\n[Systems Mgmt.](SystemManagementIntro.html)\n\n[Control Bus](ControlBus.html)\n\n[Detour](Detour.html)\n\n[Wire Tap](WireTap.html)\n\n[Message History](MessageHistory.html)\n\n[Message Store](MessageStore.html)\n\n[Smart Proxy](SmartProxy.html)\n\n[Test Message](TestMessage.html)\n\n[Channel Purger](ChannelPurger.html)", "znaku_textu": 14280, "slov": 1298, "odkazu": 156, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/patterns/messaging/bib.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 14:51:10", "sha256": "297e25e189654747651c2461356ed47a597c271dac0219e2ebffbd970d22a886", "hloubka": 3, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://www.amazon.com/exec/obidos/ASIN/0195019199/enterpriseint-20", "http://www.amazon.com/exec/obidos/ASIN/0201184621/enterpriseint-20", "http://www.amazon.com/exec/obidos/ASIN/0201734117/enterpriseint-20", "http://www.ibm.com/developerworks/webservices/library/ws-bpel", "http://doi.acm.org/10.1145/359576.359585", "http://www.amazon.com/exec/obidos/ASIN/0131422464/enterpriseint-20", "http://www.amazon.com/exec/obidos/ASIN/0201325810/enterpriseint-20", "http://www.amazon.com/exec/obidos/ASIN/0201699567/enterpriseint-20", "http://www.amazon.com/exec/obidos/ASIN/0321127420/enterpriseint-20", "http://java.sun.com/products/ejb/docs.html", "http://www.amazon.com/exec/obidos/ASIN/0131829572/enterpriseint-20", "http://www.amazon.com/exec/obidos/ASIN/0201633612/enterpriseint-20", "http://www.amazon.com/exec/obidos/ASIN/0672321815/enterpriseint-20", "http://www.amazon.com/exec/obidos/ASIN/0201775948/enterpriseint-20", "http://www.amazon.com/exec/obidos/ASIN/0201784726/enterpriseint-20", "http://java.sun.com/products/jms/", "http://java.sun.com/products/jms/docs.html", "http://java.sun.com/j2ee/transactions.html", "http://www.amazon.com/exec/obidos/ASIN/1881378241/enterpriseint-20", "http://www.amazon.com/exec/obidos/ASIN/1585009709/enterpriseint-20", "http://www.amazon.com/exec/obidos/ASIN/078972023X/enterpriseint-20", "http://www.amazon.com/exec/obidos/ASIN/0130217530/enterpriseint-20", "http://msdn.microsoft.com/library/", "http://www.amazon.com/exec/obidos/ASIN/0596000685/enterpriseint-20", "http://micro-workflow.com/PhDThesis/phdthesis.pdf", "http://www-2.cs.cmu.edu/afs/cs/project/compose/ftp/pdf/ObjPatternsArch-ieee97.pdf", "http://www.ibm.com/software/mqseries", "http://www.microsoft.com/msmq", "http://www.amazon.com/exec/obidos/ASIN/0471958697/enterpriseint-20", "http://www.amazon.com/exec/obidos/ASIN/0471606952/enterpriseint-20", "http://c2.com/cgi-bin/wiki?PatternForms=", "http://www.amazon.com/exec/obidos/ASIN/0201607344/enterpriseint-20", "http://www.amazon.com/exec/obidos/ASIN/1580530214/enterpriseint-20", "http://www.w3.org/TR/SOAP/", "http://www.w3.org/TR/soap12-part2/", "http://www.amazon.com/exec/obidos/ASIN/0201633469/enterpriseint-20", "http://www.amazon.com/exec/obidos/ASIN/0764547763/enterpriseint-20", "http://www.amazon.com/exec/obidos/ASIN/0321193687/enterpriseint-20", "http://cgi.omg.org/cgi-bin/doc?ptc%2F02-02-02=", "http://www.amazon.com/exec/obidos/ASIN/020163354X/enterpriseint-20", "http://www.w3.org/TR/ws-arch-scenarios/", "http://www.w3.org/TR/wsdl", "http://www-3.ibm.com/software/solutions/webservices/pdf/WSFL.pdf", "http://publibfp.boulder.ibm.com/epubs/pdf/csqzaw11.pdf", "http://www.w3.org/TR/REC-xml", "http://www.w3.org/TR/xslt", "http://citeseer.nj.nec.com/waldo94note.html", "http://www.amazon.com/exec/obidos/ASIN/0471327204/enterpriseint-20", "https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "https://www.architectelevator.com/book", "https://www.cloudstrategybook.com/", "https://www.platformstrategybook.info/", "https://www.amazon.com/exec/obidos/redirect-home/enterpriseint-20"]} {"url": "https://www.enterpriseintegrationpatterns.com/books1.html", "titulek": "Books - Enterprise Integration Patterns", "h1": "", "popis": "", "klicova_slova": "", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [], "markdown": "Books\n\n---\n\nSome of the books in this annotated bibliography on enterprise integration are dated now, but most of them are still relevant because they're not limited to a specific technology. I own almost all of the books listed here and have read all of the good ones :-) Also see [books I authored or co-authored](gregor.html).\n\n| **EAI** | **[Web Services & SOA](books2.html)** | **[Messaging](books3.html)** | **[Patterns](books4.html)** | **[Software Architecture](books5.html)** |\n| --- | --- | --- | --- | --- |\n\n| Many EAI books present different technologies at a high level (I call them \"glorified glossary\") but don't provide sufficient guidance on how to build an actual solution. Those that do usually focus on a specific API such as CORBA or JMS. |\n| --- |\n\n| | | |\n| --- | --- | --- |\n| | **[Enterprise Integration Patterns](http://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20)** \n\r\n Hohpe, Woolf\r\n \n\r\n Addison-Wesley, 2003 | |\n| This book includes all 65 patterns from this site plus more examples and lots of edits. The book was born out of the absence of books that focus on the design of messaging systems without being limited to a specific technology. | | |\n| | | |\n| | **[Integration Patterns](http://amazon.com/o/asin/073561850X/ref=nosim/enterpriseint-20)** \n\r\n Trowbridge, Roxburgh, Hohpe, Manolescu, Nadhan\r\n \n\r\n Microsoft, 2004 | |\n| The Microsoft Patterns and Practices group published a book that I contributed to for a few months. The content has been on-line on MSDN for a while but it is nice to have it in printed form. The book complements our book quite well as it focuses on higher-level integration constructs and uses larger industry examples. It should be a worthwhile read even for people outside of the Microsoft community because the architecture and design patterns are universally applicable. Naturally, the implementation examples use ASP.NET and BizTalk Server 2004. | | |\n| | | |\n| | **[Data and Reality](http://amazon.com/o/asin/1585009709/ref=nosim/enterpriseint-20)** \n\r\n William Kent\r\n \n\r\n 1stBooks, 1978, 2000 | |\n| Hold on, a 20-year-old book on EAI? Yes. Not about EAI technologies, but about one of the toughest issues in integration: how to model and integrate data. Kent explains why highways are not painted red and rivers do not have county lines run down the middle, even though it likes like that on a map! The classic book tells us why modeling reality inside a computer system is so hard. You can get the hardcover at Amazon for $45, but 1stBooks offers an electronic version for $8.95 or a $30 paperback version at http://www.1stbooks.com. | | |\n| | | |\n| | **[IT Architectures and Middleware: Strategies for Building Large, Integrated Systems (2nd ed)](http://amazon.com/o/asin/0321246942/ref=nosim/enterpriseint-20)** \n\r\n Chris Britton\r\n \n\r\n Addison-Wesley, 2004 | |\n| Reading Britton's book makes me believe that he has actually spent some time solving real integration problems. After the mandatory 'History of Integration', he quickly dives into the tougher problems of integration: how to deal with exceptions in a message queuing environment, issues with distributed two-phase commits, what to do about performance. I am also glad to see a whole chapter about security and systems management as well as a section on managing change. While this book resists diving into too much technical detail (no code here), it is definitely recommended reading for aspiring integration architects. | | |\n| | | |\n| | **[The Power of Events: An Introduction to Complex Event Processing in Distributed Enterprise Systems](http://amazon.com/o/asin/0201727897/ref=nosim/enterpriseint-20)** \n\r\n David Luckham\r\n \n\r\n Addison-Wesley, 2002 | |\n| A great book on what it means to be event-driven. Good treatment of event aggregation, event hierarchies and causality. David is a language guy so expect a technology neutral, but formal treatment without being too academic. Required reading for everyone who throws the \"EDA\" (Event-Driven Architecture) term around! | | |\n| | | |\n| | **[Communicating and Mobile Systems](http://amazon.com/o/asin/0521658691/ref=nosim/enterpriseint-20)** \n\r\n Robin Milner\r\n \n\r\n Cambridge Univ Press, 1999 | |\n| There is a lot of ranting these days in the BPEL community about pi-calculus so I figured I stick the original reference on here. If you are not into reading academic texts but want to spot pi-calculus con artists, read JJ's excellent overview:\r\n \n [www.ebpml.org/pi-calculus.htm](http://www.ebpml.org/pi-calculus.htm) | | |\n| | | |\n| | **[Enterprise Integration: An Architecture for Enterprise Application and Systems Integration](http://amazon.com/o/asin/0471400106/ref=nosim/enterpriseint-20)** \n\r\n Fred Cummins\r\n \n\r\n John Wiley & Sons, 2002 | |\n| I am delighted to see an OMG book that does not simply belabor the greatness of CORBA and MDA. In fact, most mentions of 'CORBA' seem to be relegated to the mandatory 'About the OMG' intro. The word 'model' may still appear a tad bit often, but the book does give a comprehensive treatment of the enterprise architecture considerations inherent in integration work. It also goes into a little more technical detail than Linthicum -- we even get to see some UML diagrams! The book makes a good checklist of items to consider, but stops short of explaining how to actually construct working solutions. | | |\n| | | |\n| | **[Enterprise Application Integration: A Wiley Tech Brief](http://amazon.com/o/asin/0471376418/ref=nosim/enterpriseint-20)** \n\r\n William A. Ruh\r\n \n\r\n John Wiley & Sons, 2000 | |\n| A bit dated, but still a relevant overview of basic integration technologies: RPC, Data Access, MOM, Distributed Objects, TP Monitors. It's a pretty think book (224 pages), so I would recommend picking one up from the Amazon marketplace for under 20 bucks. | | |\n| | | |\n| | **[Enterprise Application Integration](http://amazon.com/o/asin/0201844567/ref=nosim/enterpriseint-20)** \n\r\n David Linthicum\r\n \n\r\n Addison-Wesley, 2003 | |\n| David Linthicum's third book on EAI. Thoroughly reworked, it now includes Web Services, Service Oriented-Architectures and related topics. A worthwhile read for IS managers needing to come up to speed on EAI terminology and technologies at a high level. | | |\n| | | |\n| | **[Integration Models: Templates for Business Transformation](http://amazon.com/o/asin/067232055X/ref=nosim/enterpriseint-20)** \n\r\n Laura Brown\r\n \n\r\n Sams, 2000 | |\n| This book does not describe specific integration technologies, but presents a collection of eight modeling templates that help describe an integration solution. \r\n It is apparent that the author has spent some time on actual integration projects -- something not to be taken for granted! \r\n The templates are not as structured as patterns, but they are visually intuitive, which is important to get the big picture. \r\n Still, I would have enjoyed a bit more thorough treatment on the information presentation aspect of the templates. \r\n For example, I am still wondering why the Wave template is a wave and not a layer. | | |\n| | | |\n| | **[Middleware Enterprise Application Integration](http://amazon.com/o/asin/185233570X/ref=nosim/enterpriseint-20)** \n\r\n Daniel Serain\r\n \n\r\n Springer Verlag, 2002 | |\n| Serain describes and compares specific integration and distributed component methodologies, such as CORBA, OLE/COM, Java RMI. I felt like some of the sections were page fillers, e.g. 'Introduction to the Internet' and 'Introduction to Object Technology'. Maybe Springer thought that for 65 bucks you should get more than 200 pages. | | |\n| | | |\n| | **[TCP/IP Illustrated, Volume 1: The Protocols](http://amazon.com/o/asin/0201633469/ref=nosim/enterpriseint-20)** \n\r\n W. Richard Stevens\r\n \n\r\n Addison-Wesley, 1994 | |\n| Not a book on EAI, but a book on low-level networking. A lot of the message-oriented EAI solutions are based on TCP/IP connectivity. They also have to deal with similar problems like out-of-sequence packets (or messages). This is the ultimate reference to figure out what is really going on under the covers. Especially relevant if you are working with multi-cast / UDP style transport layers. | | |\n| | | |\n| | **[TCP/IP Illustrated, Volume 2: The Implementation](http://amazon.com/o/asin/020163354X/ref=nosim/enterpriseint-20)** \n\r\n Gary R. Wright, W. Richard Stevens\r\n \n\r\n Addison-Wesley, 1995 | |\n| The continuation of Vol 1. | | |\n| | | |", "znaku_textu": 7995, "slov": 1109, "odkazu": 41, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/books1.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 06:01:25", "sha256": "211ad49877e87af6af4091d3d33ec7b1653de365fe8da8e4612a79e2779fab6d", "hloubka": 1, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "http://www.amazon.com/exec/obidos/ASIN/0321200683/enterpriseint-20", "http://amazon.com/o/asin/073561850X/ref=nosim/enterpriseint-20", "http://www.amazon.com/exec/obidos/ASIN/073561850X/enterpriseint-20", "http://amazon.com/o/asin/1585009709/ref=nosim/enterpriseint-20", "http://www.amazon.com/exec/obidos/ASIN/1585009709/enterpriseint-20", "http://amazon.com/o/asin/0321246942/ref=nosim/enterpriseint-20", "http://www.amazon.com/exec/obidos/ASIN/0321246942/enterpriseint-20", "http://amazon.com/o/asin/0201727897/ref=nosim/enterpriseint-20", "http://www.amazon.com/exec/obidos/ASIN/0201727897/enterpriseint-20", "http://amazon.com/o/asin/0521658691/ref=nosim/enterpriseint-20", "http://www.amazon.com/exec/obidos/ASIN/0521658691/enterpriseint-20", "http://www.ebpml.org/pi-calculus.htm", "http://amazon.com/o/asin/0471400106/ref=nosim/enterpriseint-20", "http://www.amazon.com/exec/obidos/ASIN/0471400106/enterpriseint-20", "http://amazon.com/o/asin/0471376418/ref=nosim/enterpriseint-20", "http://www.amazon.com/exec/obidos/ASIN/0471376418/enterpriseint-20", "http://amazon.com/o/asin/0201844567/ref=nosim/enterpriseint-20", "http://www.amazon.com/exec/obidos/ASIN/0201844567/enterpriseint-20", "http://amazon.com/o/asin/067232055X/ref=nosim/enterpriseint-20", "http://www.amazon.com/exec/obidos/ASIN/067232055X/enterpriseint-20", "http://amazon.com/o/asin/185233570X/ref=nosim/enterpriseint-20", "http://www.amazon.com/exec/obidos/ASIN/185233570X/enterpriseint-20", "http://amazon.com/o/asin/0201633469/ref=nosim/enterpriseint-20", "http://www.amazon.com/exec/obidos/ASIN/0201633469/enterpriseint-20", "http://amazon.com/o/asin/020163354X/ref=nosim/enterpriseint-20", "http://www.amazon.com/exec/obidos/ASIN/020163354X/enterpriseint-20"]} {"url": "https://www.enterpriseintegrationpatterns.com/books2.html", "titulek": "Books - Enterprise Integration Patterns", "h1": "", "popis": "", "klicova_slova": "", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [], "markdown": "Books\n\n---\n\nSome of the books in this annotated bibliography on enterprise integration are dated now, but most of them are still relevant because they're not limited to a specific technology. I own almost all of the books listed here and have read all of the good ones :-) Also see [books I authored or co-authored](gregor.html).\n\n| **[EAI](books1.html)** | **Web Services & SOA** | **[Messaging](books3.html)** | **[Patterns](books4.html)** | **[Software Architecture](books5.html)** |\n| --- | --- | --- | --- | --- |\n\n| Web Services are a broad field, which is reflected in the list of books. Still, there are some timeless gems in here. |\n| --- |\n\n| | | |\n| --- | --- | --- |\n| | **[Enterprise SOA : Service-Oriented Architecture Best Practices](http://amazon.com/o/asin/0131465759/ref=nosim/enterpriseint-20)** \n\r\n Dirk Krafzig, Karl Banke, Dirk Slama\r\n \n\r\n Prentice Hall PTR, 2004 | |\n| When the authors claim that the book is based on their collective experiences since 1998, I believe them. The book avoids specific technologies and instead focuses on architectural trade-offs and solutions, such as coupling, concurrency control and the issues with distributed 2-phase commit (it is not a \"manager\" book). The \"Recommendations for SOA Architects\" are excellent. They discuss general advice and then show how it translates into a real life scenario. If you are interested in the \"A\" of SOA , get this one.\r\n \n [www.enterprise-soa.com](http://www.enterprise-soa.com) | | |\n| | | |\n| | **[Web Services](http://amazon.com/o/asin/3540440089/ref=nosim/enterpriseint-20)** \n\r\n Alonso, Casati, Kuno, Machiraju\r\n \n\r\n Springer, 2003 | |\n| I found this one at Gary Cornell's (APress CEO) house. Unfortunately Springer books are often harder to find in stores since they focus mostly on the academic market. I really enjoy the accuracy and depth of the discussion in this book -- there is no hand waving here! Still it is an easy read with good illustrations. Recommended for SOA architects. | | |\n| | | |\n| | **[Web Services Platform Architecture](http://amazon.com/o/asin/0131488740/ref=nosim/enterpriseint-20)** \n\r\n Weerawarana, Curbera, Leymann, Storey, Ferguson\r\n \n\r\n Prentice Hall PTR, 2005 | |\n| This one just came out -- just got my copy. If you are interested in a comprehensive, easy to digest walkthrough of the most popular WS-* standards, this is the right book to get. The book makes a good case for the existing specs, explains why they exist and how they relate to each other. | | |\n| | | |\n| | **[Perspectives on Web Services : Applying SOAP, WSDL and UDDI to Real-World Projects](http://amazon.com/o/asin/3540009140/ref=nosim/enterpriseint-20)** \n\r\n Zimmermann, Tomlinson, Peuser\r\n \n\r\n Springer, 2003 | |\n| Just got this one. I like the idea of applying different perspectives: business, training, architecture, development, operations. It highlights the impact of SOA on different parts of the organization. It appears, though, that each perspectives targets a different audience so the book has become pretty broad in scope. Time to sit down and read... :-) | | |\n| | | |\n| | **[Service-Oriented Architecture : A Field Guide to Integrating XML and Web Services](http://amazon.com/o/asin/0131428985/ref=nosim/enterpriseint-20)** \n\r\n Thomas Erl\r\n \n\r\n Prentice Hall PTR, 2004 | |\n| This book is setup as a collection of \"Strategies\" and \"Best Practices\" around XML, Web Services and SOA. I wish some of these strategies went into a little more detail, but then it is a broad topic area and the book is already over 500 pages. I would have scratched the technology overview chapters (XML, WS, WS-*) in favor of more in-depth discussion of the strategies. | | |\n| | | |\n| | **[Essential Business Process Modeling](http://amazon.com/o/asin/0596008430/ref=nosim/enterpriseint-20)** \n\r\n Michael Havey\r\n \n\r\n O'Reilly, 2005 | |\n| New book on a familiar topic. However, this one adds a fresh perspective by looking at BPM in the context of SOA and Web services. I like it because it strikes a nice balance between theory and practice. We get to see a brief overview of the theoretical foundation, common design patterns and standards work. A nice and accurate read. | | |\n| | | |\n| | **[Business Process Execution Language](http://amazon.com/o/asin/1904811183/ref=nosim/enterpriseint-20)** \n\r\n Matjaz B. Juric\r\n \n\r\n Packt Publishing, 2004 | |\n| One of the first (the first?) tool-independent books on BPEL. The book is a fairly easy read and uses many examples -- definitely beats reading the spec! Still, I would have wished the book would show more common usage scenarios using the more advanced features like correlation, convoys (the BizTalk term for multiple receives), compensation and fault handling. These concepts look simple in terms of language syntax but can give serious headaches when used in combination. Nevertheless, at this time this book is likely the best printed introduction into BPEL. More info and a free sample chapter can be found at \r\n \n [www.bpelbook.com](http://www.bpelbook.com) | | |\n| | | |\n| | **[Loosely Coupled: The Missing Pieces of Web Services](http://amazon.com/o/asin/1881378241/ref=nosim/enterpriseint-20)** \n\r\n Doug Kaye\r\n \n\r\n RDS Press, 2003 | |\n| A refreshing look at Web services. Instead of wading through APIs we get to read about the core principles at work in Service-Oriented Architectures in a technology-neutral jargon-free way. It does not have quite the technical depth of \"Enterprise SOA\" but makes for a good overview. | | |\n| | | |\n| | **[Production Workflow: Concepts and Techniques](http://amazon.com/o/asin/0130217530/ref=nosim/enterpriseint-20)** \n\r\n Frank Leymann, Dieter Roller \r\n \n\r\n Prentice Hall PTR, 1999 | |\n| With the current focus on orchestration (read BPEL), workflow books are coming back into vogue. It turns out that Frank could actually be considered one of the \"grandfathers\" of BPEL as he was the driving force behind IBM's WSFL which in turn merged with Microsoft's XLANG into BPEL. I have not read the whole book yet but Chapter 7 on distributed transactions alone is worth getting it. This area tends to be dominated by hand waving so reading this precise treatment was truly refreshing. | | |\n| | | |\n| | **[Principles of Transaction Processing](http://amazon.com/o/asin/1558604154/ref=nosim/enterpriseint-20)** \n\r\n Philip Bernstein, Eric Newcomer\r\n \n\r\n Morgan Kaufmann, 1997 | |\n| Think transactions are for databases? Think again! Transactions in distributed and asynchronous systems are a very important topic. Most importantly you can't just decree \"two-phase commit\" for everything, but have to reach deeper into the toolbox to get a system that provides loose coupling, high throughput and consistency. This book has good chapters on Transaction Processing Communications, Queued Transaction Processing, and, yes, Two-phase commit. Also, it shows us that we can still learn quite a bit from LU 6.2. | | |\n| | | |\n| | **[Enterprise Services Architecture](http://amazon.com/o/asin/0596005512/ref=nosim/enterpriseint-20)** \n\r\n Dan Woods\r\n \n\r\n O'Reilly, 2003 | |\n| This is essentially a marketing title from SAP, so I was skeptical a first, especially after noticing the one-star rating on Amazon. I have to say though that this book appears to give a good high-level overview on how to get an organization to think in more service-oriented terms. Now obviously this is a high-level (think Gartner or Big 5) book targeted at technology strategists who will not want to read a SOAP spec. My first impression (not done reading yet) is that the book does a good job targeting that audience. A book you might want to hand your boss. | | |\n| | | |\n| | **[.NET Web Services: Architecture and Implementation with .NET](http://amazon.com/o/asin/0321113594/ref=nosim/enterpriseint-20)** \n\r\n Keith Ballinger\r\n \n\r\n Addison-Wesley, 2003 | |\n| Amongst the technology-specific Web services books, I quite like this one because it does not simply walk through all the API features, but also gives useful architectural advice. | | |\n| | | |\n| | **[Web Service Patterns: Java Edition](http://amazon.com/o/asin/1590590848/ref=nosim/enterpriseint-20)** \n\r\n Paul Monday\r\n \n\r\n Apress, 2003 | |\n| More of a tutorial on Apache Axis than a patterns book, it nevertheless presents relevant architectural guidance for Web services development. The book includes some nice examples on how to implement pub-sub with Web services. If you are looking for a tutorial on how to build a real Web-services application considering relevant architectural trade-offs, this book will be a good guide. | | |\n| | | |\n| | **[Architecting Web Services](http://amazon.com/o/asin/1893115585/ref=nosim/enterpriseint-20)** \n\r\n William L. Oellermann\r\n \n\r\n Apress, 2001 | |\n| I always cringe when I see a book with \"architecting\" in the title that spends 40 pages on \"Web Services Architecture\" followed by 130 pages on XML basics. The core of the book is a chapter on Web Services Models and a comprehensive example in Visual Basic. | | |\n| | | |", "znaku_textu": 8566, "slov": 1219, "odkazu": 44, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/books2.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 06:55:19", "sha256": "b2fb03cbb08b3e9be22a59255892710c70546331412d6e131f209b6bfe1e77bf", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://amazon.com/o/asin/0131465759/ref=nosim/enterpriseint-20", "http://www.amazon.com/exec/obidos/ASIN/0131465759/enterpriseint-20", "http://www.enterprise-soa.com/", "http://amazon.com/o/asin/3540440089/ref=nosim/enterpriseint-20", "http://www.amazon.com/exec/obidos/ASIN/3540440089/enterpriseint-20", "http://amazon.com/o/asin/0131488740/ref=nosim/enterpriseint-20", "http://www.amazon.com/exec/obidos/ASIN/0131488740/enterpriseint-20", "http://amazon.com/o/asin/3540009140/ref=nosim/enterpriseint-20", "http://www.amazon.com/exec/obidos/ASIN/3540009140/enterpriseint-20", "http://amazon.com/o/asin/0131428985/ref=nosim/enterpriseint-20", "http://www.amazon.com/exec/obidos/ASIN/0131428985/enterpriseint-20", "http://amazon.com/o/asin/0596008430/ref=nosim/enterpriseint-20", "http://www.amazon.com/exec/obidos/ASIN/0596008430/enterpriseint-20", "http://amazon.com/o/asin/1904811183/ref=nosim/enterpriseint-20", "http://www.amazon.com/exec/obidos/ASIN/1904811183/enterpriseint-20", "http://www.bpelbook.com/", "http://amazon.com/o/asin/1881378241/ref=nosim/enterpriseint-20", "http://www.amazon.com/exec/obidos/ASIN/1881378241/enterpriseint-20", "http://amazon.com/o/asin/0130217530/ref=nosim/enterpriseint-20", "http://www.amazon.com/exec/obidos/ASIN/0130217530/enterpriseint-20", "http://amazon.com/o/asin/1558604154/ref=nosim/enterpriseint-20", "http://www.amazon.com/exec/obidos/ASIN/1558604154/enterpriseint-20", "http://amazon.com/o/asin/0596005512/ref=nosim/enterpriseint-20", "http://www.amazon.com/exec/obidos/ASIN/0596005512/enterpriseint-20", "http://amazon.com/o/asin/0321113594/ref=nosim/enterpriseint-20", "http://www.amazon.com/exec/obidos/ASIN/0321113594/enterpriseint-20", "http://amazon.com/o/asin/1590590848/ref=nosim/enterpriseint-20", "http://www.amazon.com/exec/obidos/ASIN/1590590848/enterpriseint-20", "http://amazon.com/o/asin/1893115585/ref=nosim/enterpriseint-20", "http://www.amazon.com/exec/obidos/ASIN/1893115585/enterpriseint-20"]} {"url": "https://www.enterpriseintegrationpatterns.com/books3.html", "titulek": "Books - Enterprise Integration Patterns", "h1": "", "popis": "", "klicova_slova": "", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [], "markdown": "Books\n\n---\n\nSome of the books in this annotated bibliography on enterprise integration are dated now, but most of them are still relevant because they're not limited to a specific technology. I own almost all of the books listed here and have read all of the good ones :-) Also see [books I authored or co-authored](gregor.html).\n\n| **[EAI](books1.html)** | **[Web Services & SOA](books2.html)** | **Messaging** | **[Patterns](books4.html)** | **[Software Architecture](books5.html)** |\n| --- | --- | --- | --- | --- |\n\n| Books on designing messaging solutions are relatively rare and usually focus on a specific technology like JMS or MSMQ. |\n| --- |\n\n| | | |\n| --- | --- | --- |\n| | **[Concurrent Programming in Java: Design Principles and Patterns (2nd Edition)](http://amazon.com/o/asin/0201310090/ref=nosim/enterpriseint-20)** \n\r\n Doug Lea\r\n \n\r\n Addison-Wesley, 1999 | |\n| Messaging systems are concurrent systems and have to deal with many of the same challenges described in Doug's excellent book. Chapter 4 contains about 100 pages describing communication patterns between threads, including one-way messaging, flow networks (aka pipes-and-filters) and futures. Plenty of code examples in Java bring these concepts to life. | | |\n| | | |\n| | **[Remoting Patterns : Foundations of Enterprise, Internet and Realtime Distributed Object Middleware](http://amazon.com/o/asin/0470856629/ref=nosim/enterpriseint-20)** \n\r\n Voelter, Kircher, Zdun\r\n \n\r\n Wiley, 2004 | |\n| Nice pattern language describing the building blocks of remote object communication. The authors describe the relationships and interactions between the patterns very nicely. They use the Alexandrian pattern format, which means that the individual pattern descriptions are sometimes a little bit on the brief side. The PDF version of the authors' IEEE Internet Computing article is available on-line for preview at: \r\n \n [http://www.voelter.de/publications/books-rem.html](http://www.voelter.de/publications/books-rem.html) | | |\n| | | |\n| | **[Enterprise Messaging Using JMS and IBM WebSphere](http://amazon.com/o/asin/0131468634/ref=nosim/enterpriseint-20)** \n\r\n Kareem Yusuf\r\n \n\r\n Prentice Hall PTR, 2004 | |\n| A recent book on JMS that is part of the IBM Press series. Covers basic messaging concepts and the JMS API. Recommended if you are new to JMS and are using IBM WebSphere. | | |\n| | | |\n| | **[Java Messaging Service API Tutorial and Reference](http://amazon.com/o/asin/0201784726/ref=nosim/enterpriseint-20)** \n\r\n Mark Hapner, Rich Burridge, Rahul Sharma, Joseph Fialli, Kim Haase\r\n \n\r\n Addison-Wesley, 2002 | |\n| As the title suggests, a journey through the JMS API. The book touches on some design considerations but largely presents sample applications that show how to use various aspects of the JMS API. If you are getting started with JMS and prefer to learn from a book rather than just downloading the sample code, this might be a good start. | | |\n| | | |\n| | **[Java Message Service](http://amazon.com/o/asin/0596000685/ref=nosim/enterpriseint-20)** \n\r\n Richard Monson-Haefel, David Chappell\r\n \n\r\n O'Reilly, 2000 | |\n| A concise introduction into the JMS API. Includes a nice introduction into messaging. It introduces the concepts incorporated in the JMS API, e.g.point-to-point messaging and pub-sub-messaging. As expected, the focus is on the JMS API itself as opposed to more complex messaging design issues. | | |\n| | | |\n| | **[Designing Applications with MSMQ](http://amazon.com/o/asin/0201325810/ref=nosim/enterpriseint-20)** \n\r\n Alan Dickman\r\n \n\r\n Addison-Wesley, 1998 | |\n| The age of the book means that all examples are in Visual Basic with COM or C++. While it does not dive deep into the depths of asynchronous messaging, I enjoyed the chapter on \"Solutions to Messaging Problems\" that deals with correlation, event-driven consumers and object serialization and deserialization. | | |\n| | | |\n| | **[Advanced Messaging Applications with MSMQ and MQSeries](http://amazon.com/o/asin/078972023X/ref=nosim/enterpriseint-20)** \n\r\n Rhys Lewis\r\n \n\r\n Que, 2000 | |\n| One of the very few cross-technology books on messaging. The book introduces five conversational \"patterns\" for asynchronous messaging solutions: Pseudosynchronous Inquiry, Fire and Forget Update, Asynchronous Inquiry, Pseudosynchronous Update, and Asynchronous Update with Acknowledgement. It then goes on to implement each \"pattern\" in MSMQ and MQSeries within the context of a real-life scenario. Examples are in C. | | |\n| | | |", "znaku_textu": 4243, "slov": 556, "odkazu": 29, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/books3.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 06:55:20", "sha256": "00fda13b9d354974e6d11ce070dacbe0bcc2bf16f3e9af7edf34c903b77588e2", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://amazon.com/o/asin/0201310090/ref=nosim/enterpriseint-20", "http://www.amazon.com/exec/obidos/ASIN/0201310090/enterpriseint-20", "http://amazon.com/o/asin/0470856629/ref=nosim/enterpriseint-20", "http://www.amazon.com/exec/obidos/ASIN/0470856629/enterpriseint-20", "http://www.voelter.de/publications/books-rem.html", "http://amazon.com/o/asin/0131468634/ref=nosim/enterpriseint-20", "http://www.amazon.com/exec/obidos/ASIN/0131468634/enterpriseint-20", "http://amazon.com/o/asin/0201784726/ref=nosim/enterpriseint-20", "http://www.amazon.com/exec/obidos/ASIN/0201784726/enterpriseint-20", "http://amazon.com/o/asin/0596000685/ref=nosim/enterpriseint-20", "http://www.amazon.com/exec/obidos/ASIN/0596000685/enterpriseint-20", "http://amazon.com/o/asin/0201325810/ref=nosim/enterpriseint-20", "http://www.amazon.com/exec/obidos/ASIN/0201325810/enterpriseint-20", "http://amazon.com/o/asin/078972023X/ref=nosim/enterpriseint-20", "http://www.amazon.com/exec/obidos/ASIN/078972023X/enterpriseint-20"]} {"url": "https://www.enterpriseintegrationpatterns.com/books4.html", "titulek": "Books - Enterprise Integration Patterns", "h1": "", "popis": "", "klicova_slova": "", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [], "markdown": "Books\n\n---\n\nSome of the books in this annotated bibliography on enterprise integration are dated now, but most of them are still relevant because they're not limited to a specific technology. I own almost all of the books listed here and have read all of the good ones :-) Also see [books I authored or co-authored](gregor.html).\n\n| **[EAI](books1.html)** | **[Web Services & SOA](books2.html)** | **[Messaging](books3.html)** | **Patterns** | **[Software Architecture](books5.html)** |\n| --- | --- | --- | --- | --- |\n\n| High-quality patterns books seemed to have run out steam in the early 2000s: the big masterworks were done but there wasn't a lot more coming. Luckily, John Crupi and his gang re-energized the software patterns book writing community, quickly followed by Martin's latest masterpiece. |\n| --- |\n\n| | | |\n| --- | --- | --- |\n| | **[A Pattern Language - Towns Buildings Construction](http://amazon.com/o/asin/0195019199/ref=nosim/enterpriseint-20)** \n\r\n C. Alexander, S. Ishikawa, M Silverstein\r\n \n\r\n Oxford University Press, 1977 | |\n| Probably the most quoted book in any work related to patterns. I actually used a number of Alexander's patterns to design a beach house for an interior architecture class. It is interesting to note that Alexander's desire to dissect architecture and design into a set of composable constructs may stem from his study of mathematics. His thesis published as \"Notes on the synthesis of form\" references a set of programs that he developed in IBM 7090 assembly code. So the tremendous success of Alexander's patterns in the software community is not quite coincidental. | | |\n| | | |\n| | **[Design Patterns: Elements of Reusable Object-Oriented Software](http://amazon.com/o/asin/0201633612/ref=nosim/enterpriseint-20)** \n\r\n Erich Gamma, Richard Helm, Ralph Johnson, John Vlissides\r\n \n\r\n Addison-Wesley, 1995 | |\n| Surely the second most quoted book in any work on patterns. | | |\n| | | |\n| | **[Pattern Hatching: Design Patterns Applied](http://amazon.com/o/asin/0201432935/ref=nosim/enterpriseint-20)** \n\r\n John Vlissides\r\n \n\r\n Addison-Wesley, 1998 | |\n| Four years after the 'GoF', John presents us with a 'behind-the-scenes' look at the discovery of the patterns, new ideas and enhancements, as well as a good section on software design with patterns and pattern writing. If you can look beyond the C++ examples (ugh), it makes a very pleasant and insightful read. After you have read and digested 'Design Patterns', you'll enjoy this one. | | |\n| | | |\n| | **[Pattern-Oriented Software Architecture](http://amazon.com/o/asin/0471958697/ref=nosim/enterpriseint-20)** \n\r\n Buschmann et al\r\n \n\r\n Wiley, 1996 | |\n| A great book on architecture and design patterns. Not the easiest read, but full of excellent content. | | |\n| | | |\n| | **[Pattern-Oriented Software Architecture Vol.2](http://amazon.com/o/asin/0471606952/ref=nosim/enterpriseint-20)** \n\r\n Schmidt et al\r\n \n\r\n Wiley, 2000 | |\n| More patterns focused on distributed systems and concurrency issues. Very relevant to integration patterns. The examples dwell a bit much on Doug's ACE architecture, but nevertheless a must-have for architects and developers building distributed systems. | | |\n| | | |\n| | **[Pattern-Oriented Software Architecture, Vol 3: Patterns for Resource Management](http://amazon.com/o/asin/0470845252/ref=nosim/enterpriseint-20)** \n\r\n Michael Kircher, Prashant Jain\r\n \n\r\n Wiley, 2004 | |\n| The third book in the POSA series. I think the book has broader applicability than the title suggests. For exmaple, cocepts such as \"Lookup\" and \"Leasing\" are very commonly used in distributed and service-oriented systems. Table of Contents and sample chapter at:\r\n \n [www.posa3.org](http://www.posa3.org) | | |\n| | | |\n| | **[Core J2EE Patterns](http://amazon.com/o/asin/0131422464/ref=nosim/enterpriseint-20)** \n\r\n Alur, Crupi, Marks\r\n \n\r\n Prentice-Hall, 2003 | |\n| The 'core' reference on J2EE patterns. Anyone who is building serious J2EE apps probably has this book. This book also underlines how patterns provide much needed architectural guidance. The developer community was longing for a book like this after Sun kept on pumping out Java specs with little help on how to build something useful on top of them. Some of the patterns are useful complements to our EAI patterns, e.g. the Service Activator. The 2nd Edition came out for JavaOne has new integration tier patterns, for example a Web Service Broker. Martin will be happy to see that they renamed the Value Object to Transfer Object. | | |\n| | | |\n| | **[Patterns of Enterprise Application Architecture](http://amazon.com/o/asin/0321127420/ref=nosim/enterpriseint-20)** \n\r\n Martin Fowler\r\n \n\r\n Addison-Wesley, 2003 | |\n| The most comprehensive book yet on application architecture patterns. Even though it covers 51 patterns, it is an easy and interesting read while never sacrificing technical accuracy. Any enterprise developer should probably own a copy of this book (judging from the sales figures it looks like they do). | | |\n| | | |\n| | **[Enterprise Solution Patterns using Microsoft .NET](http://amazon.com/o/asin/0735618399/ref=nosim/enterpriseint-20)** \n\r\n David Trowbridge, Gregor Hohpe, James Newkirk, David Lavigne (contributing authors)\r\n \n\r\n MS Press, 2003 | |\n| Microsoft's Prescriptive Architecture Guidance (PAG) group is in charge of educating developers on how to build industrial-strength, enterprise-scale solutions. PAG contracted us to help them write the equivalent of \"Core .NET Patterns\" for them. One of the unique aspects of this book is the organization of the patterns int a pattern grid, organized by level of abstraction and viewpoint. | | |\n| | | |\n| | **[Server Component Patterns](http://amazon.com/o/asin/0470843195/ref=nosim/enterpriseint-20)** \n\r\n Markus Völter, Axelander Schmid, Eberhard Wolff\r\n \n\r\n Wiley, 2002 | |\n| The authors chose to document the patterns in Alexandrian format, including the sketches and capitalization of pattern names. The Alexandrian form is more prose-like which definitely benefits the readability as compared to POSA1 and POSA2. The first part of the book describes architecture and design patterns, starting with the core patterns such as Component and Container. The second part describes how these patterns are implemented in the EJB spec. The table of contents for both parts is virtually identical, with the second part listing EJB implementation details about the pattern defined in the first part. I think the book is a worthwhile read even if you are not interested in the EJB specifics. | | |\n| | | |\n| | **[Real-Time Design Patterns](http://amazon.com/o/asin/0201699567/ref=nosim/enterpriseint-20)** \n\r\n Bruce Powel Douglass\r\n \n\r\n Addison-Wesley, 2003 | |\n| This book proves the transportability of patterns across domains. Some of Douglass' reliability patterns prove very useful in the context of enterprise messaging. | | |\n| | | |\n| | **[Web Service Patterns: Java Edition](http://amazon.com/o/asin/1590590848/ref=nosim/enterpriseint-20)** \n\r\n Paul Monday\r\n \n\r\n Apress, 2003 | |\n| I cross-listed this book from the Web Services section. More of a tutorial on Apache Axis than a patterns book, it nevertheless presents relevant architectural guidance for Web services development. The book includes some nice examples on how to implement pub-sub with Web services. If you are looking for a tutorial on how to build a real Web-services application considering relevant architectural trade-offs, this book will be a good guide. | | |\n| | | |", "znaku_textu": 7150, "slov": 967, "odkazu": 39, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/books4.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 06:55:21", "sha256": "9ec31514c3e30e658787ce513e6dbe4a162e2e7814566565869fd9088d333b79", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://amazon.com/o/asin/0195019199/ref=nosim/enterpriseint-20", "http://www.amazon.com/exec/obidos/ASIN/0195019199/enterpriseint-20", "http://amazon.com/o/asin/0201633612/ref=nosim/enterpriseint-20", "http://www.amazon.com/exec/obidos/ASIN/0201633612/enterpriseint-20", "http://amazon.com/o/asin/0201432935/ref=nosim/enterpriseint-20", "http://www.amazon.com/exec/obidos/ASIN/0201432935/enterpriseint-20", "http://amazon.com/o/asin/0471958697/ref=nosim/enterpriseint-20", "http://www.amazon.com/exec/obidos/ASIN/0471958697/enterpriseint-20", "http://amazon.com/o/asin/0471606952/ref=nosim/enterpriseint-20", "http://www.amazon.com/exec/obidos/ASIN/0471606952/enterpriseint-20", "http://amazon.com/o/asin/0470845252/ref=nosim/enterpriseint-20", "http://www.amazon.com/exec/obidos/ASIN/0470845252/enterpriseint-20", "http://www.posa3.org/", "http://amazon.com/o/asin/0131422464/ref=nosim/enterpriseint-20", "http://www.amazon.com/exec/obidos/ASIN/0131422464/enterpriseint-20", "http://amazon.com/o/asin/0321127420/ref=nosim/enterpriseint-20", "http://www.amazon.com/exec/obidos/ASIN/0321127420/enterpriseint-20", "http://amazon.com/o/asin/0735618399/ref=nosim/enterpriseint-20", "http://www.amazon.com/exec/obidos/ASIN/0735618399/enterpriseint-20", "http://amazon.com/o/asin/0470843195/ref=nosim/enterpriseint-20", "http://www.amazon.com/exec/obidos/ASIN/0470843195/enterpriseint-20", "http://amazon.com/o/asin/0201699567/ref=nosim/enterpriseint-20", "http://www.amazon.com/exec/obidos/ASIN/0201699567/enterpriseint-20", "http://amazon.com/o/asin/1590590848/ref=nosim/enterpriseint-20", "http://www.amazon.com/exec/obidos/ASIN/1590590848/enterpriseint-20"]} {"url": "https://www.enterpriseintegrationpatterns.com/books5.html", "titulek": "Books - Enterprise Integration Patterns", "h1": "", "popis": "", "klicova_slova": "", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [], "markdown": "Books\n\n---\n\nSome of the books in this annotated bibliography on enterprise integration are dated now, but most of them are still relevant because they're not limited to a specific technology. I own almost all of the books listed here and have read all of the good ones :-) Also see [books I authored or co-authored](gregor.html).\n\n| **[EAI](books1.html)** | **[Web Services & SOA](books2.html)** | **[Messaging](books3.html)** | **[Patterns](books4.html)** | **Software Architecture** |\n| --- | --- | --- | --- | --- |\n\n| Such an important area and so few book recommendations. I am simply behind in my reading... |\n| --- |\n\n| | | |\n| --- | --- | --- |\n| | **[Software Architecture: Perspectives on an Emerging Discipline](http://amazon.com/o/asin/0131829572/ref=nosim/enterpriseint-20)** \n\r\n Mary Shaw, Garlan David\r\n \n\r\n Prentice Hall, 1996 | |\n| The definitive text on software architecture and architectural styles. | | |\n| | | |\n| | **[Software Architecture in Practice, 2nd Edition](http://amazon.com/o/asin/0321154959/ref=nosim/enterpriseint-20)** \n\r\n Len Bass, Paul Clements, Rick Kazman\r\n \n\r\n Addison-Wesley, 2003 | |\n| Part of a whole series on architecture from the SEI. Generally, these books are very throrough, but for my taste too many examples and case studies are pulled from military projects or embedded systems. These types of systems typically lend themselves to a very rigorous top-down architecture and design approach, unlike today's business applications that are all about changing requirements. | | |\n| | | |", "znaku_textu": 1389, "slov": 183, "odkazu": 18, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/books5.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 06:55:22", "sha256": "b194f339d7629e35675f386867341b6bca9c25f1da5798663cd835e5a4c293db", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://amazon.com/o/asin/0131829572/ref=nosim/enterpriseint-20", "http://www.amazon.com/exec/obidos/ASIN/0131829572/enterpriseint-20", "http://amazon.com/o/asin/0321154959/ref=nosim/enterpriseint-20", "http://www.amazon.com/exec/obidos/ASIN/0321154959/enterpriseint-20"]} {"url": "https://www.enterpriseintegrationpatterns.com/docs/Agile%20EAI.pdf", "titulek": "", "h1": "", "popis": "", "klicova_slova": "", "kanonicka": "", "jazyk": "", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [], "markdown": "", "znaku_textu": 0, "slov": 0, "odkazu": 0, "kodovani": "", "kodovani_deklarovane": null, "format": "pdf", "bajtu": 39478, "duplikat_z": "http://www.enterpriseintegrationpatterns.com/docs/Agile%20EAI.pdf", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 06:55:03", "sha256": "a77b472472b76c121e587a32e3c35180e5c043e0b442b6f57986082c1d363db7", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "application/pdf", "odkazy_externi": []} {"url": "https://www.enterpriseintegrationpatterns.com/docs/ConversationsEuroPlopFinal.pdf", "titulek": "", "h1": "", "popis": "", "klicova_slova": "", "kanonicka": "", "jazyk": "", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [], "markdown": "", "znaku_textu": 0, "slov": 0, "odkazu": 0, "kodovani": "", "kodovani_deklarovane": null, "format": "pdf", "bajtu": 205639, "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 14:51:12", "sha256": "18963172eed7d118b8f7fccf235df00be2cc52c5d3926ff604890336407a8ed2", "hloubka": 3, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "application/pdf", "odkazy_externi": []} {"url": "https://www.enterpriseintegrationpatterns.com/docs/Conversations_loosely_coupled.pdf", "titulek": "", "h1": "", "popis": "", "klicova_slova": "", "kanonicka": "", "jazyk": "", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [], "markdown": "", "znaku_textu": 0, "slov": 0, "odkazu": 0, "kodovani": "", "kodovani_deklarovane": null, "format": "pdf", "bajtu": 498193, "duplikat_z": "http://www.enterpriseintegrationpatterns.com/docs/Conversations_loosely_coupled.pdf", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 06:01:43", "sha256": "0346e0b112292ccf016c74ba40226723945761298aefb31b3068d49592486078", "hloubka": 1, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "application/pdf", "odkazy_externi": []} {"url": "https://www.enterpriseintegrationpatterns.com/docs/DistributedProgrammingGoogle.pdf", "titulek": "", "h1": "", "popis": "", "klicova_slova": "", "kanonicka": "", "jazyk": "", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [], "markdown": "", "znaku_textu": 0, "slov": 0, "odkazu": 0, "kodovani": "", "kodovani_deklarovane": null, "format": "pdf", "bajtu": 1148050, "duplikat_z": "http://www.enterpriseintegrationpatterns.com/docs/DistributedProgrammingGoogle.pdf", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 06:01:37", "sha256": "3669faf211dade95b2593213d5874ebf65e1f437566e774abc707185822199e0", "hloubka": 1, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "application/pdf", "odkazy_externi": []} {"url": "https://www.enterpriseintegrationpatterns.com/docs/EDA.pdf", "titulek": "", "h1": "", "popis": "", "klicova_slova": "", "kanonicka": "", "jazyk": "", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [], "markdown": "", "znaku_textu": 0, "slov": 0, "odkazu": 0, "kodovani": "", "kodovani_deklarovane": null, "format": "pdf", "bajtu": 169002, "duplikat_z": "http://www.enterpriseintegrationpatterns.com/docs/EDA.pdf", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 06:01:32", "sha256": "dc03f4e717ff29e0748e2bdf03e058a18cc83d9c180afa66d7a645e1959a7f3e", "hloubka": 1, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "application/pdf", "odkazy_externi": []} {"url": "https://www.enterpriseintegrationpatterns.com/docs/EmbeddedOop.pdf", "titulek": "", "h1": "", "popis": "", "klicova_slova": "", "kanonicka": "", "jazyk": "", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [], "markdown": "", "znaku_textu": 0, "slov": 0, "odkazu": 0, "kodovani": "", "kodovani_deklarovane": null, "format": "pdf", "bajtu": 1022987, "duplikat_z": "http://www.enterpriseintegrationpatterns.com/docs/EmbeddedOop.pdf", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 06:01:37", "sha256": "2676f5364b7a2a4e34b95ff89b39783e704671943b20db1dc4b986800bc89a86", "hloubka": 1, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "application/pdf", "odkazy_externi": []} {"url": "https://www.enterpriseintegrationpatterns.com/docs/Enterprise%20Integration%20Patterns%20-%20PLoP%20Final%20Draft%203.pdf", "titulek": "", "h1": "", "popis": "", "klicova_slova": "", "kanonicka": "", "jazyk": "", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [], "markdown": "", "znaku_textu": 0, "slov": 0, "odkazu": 0, "kodovani": "", "kodovani_deklarovane": null, "format": "pdf", "bajtu": 510430, "duplikat_z": "http://www.enterpriseintegrationpatterns.com/docs/Enterprise%20Integration%20Patterns%20-%20PLoP%20Final%20Draft%203.pdf", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 06:55:06", "sha256": "8c3bcb833998ea82e03b654e12eff0a36ea8323b06b006615cf9e70a5af1482b", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "application/pdf", "odkazy_externi": []} {"url": "https://www.enterpriseintegrationpatterns.com/docs/EnterpriseIntegrationPatternsHalfDay.pdf", "titulek": "", "h1": "", "popis": "", "klicova_slova": "", "kanonicka": "", "jazyk": "", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [], "markdown": "", "znaku_textu": 0, "slov": 0, "odkazu": 0, "kodovani": "", "kodovani_deklarovane": null, "format": "pdf", "bajtu": 4394251, "duplikat_z": "http://www.enterpriseintegrationpatterns.com/docs/EnterpriseIntegrationPatternsHalfDay.pdf", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 06:55:10", "sha256": "45efd71ed305e00a621772ef49c1864b2196f3d808b1938d2af82ad071d4fbbb", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "application/pdf", "odkazy_externi": []} {"url": "https://www.enterpriseintegrationpatterns.com/docs/EnterpriseIntegrationPatterns_HohpeWoolf_ch03.pdf", "titulek": "", "h1": "", "popis": "", "klicova_slova": "", "kanonicka": "", "jazyk": "", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [], "markdown": "", "znaku_textu": 0, "slov": 0, "odkazu": 0, "kodovani": "", "kodovani_deklarovane": null, "format": "pdf", "bajtu": 628705, "duplikat_z": "http://www.enterpriseintegrationpatterns.com/docs/EnterpriseIntegrationPatterns_HohpeWoolf_ch03.pdf", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 06:03:18", "sha256": "c1e7125dcebfdd9a2b23a922dfbbc9694e5f8048e81e14dc95e2882043ac4f66", "hloubka": 1, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "application/pdf", "odkazy_externi": []} {"url": "https://www.enterpriseintegrationpatterns.com/docs/HohpeProgrammingCloudKeynote.pdf", "titulek": "", "h1": "", "popis": "", "klicova_slova": "", "kanonicka": "", "jazyk": "", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [], "markdown": "", "znaku_textu": 0, "slov": 0, "odkazu": 0, "kodovani": "", "kodovani_deklarovane": null, "format": "pdf", "bajtu": 524481, "duplikat_z": "http://www.enterpriseintegrationpatterns.com/docs/HohpeProgrammingCloudKeynote.pdf", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 06:55:10", "sha256": "637a33a8c57841c663ee9cda8f9d52e7f9d97407e2d5fb49ec150124bfc40b35", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "application/pdf", "odkazy_externi": []} {"url": "https://www.enterpriseintegrationpatterns.com/docs/HohpeSOAPatterns.pdf", "titulek": "", "h1": "", "popis": "", "klicova_slova": "", "kanonicka": "", "jazyk": "", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [], "markdown": "", "znaku_textu": 0, "slov": 0, "odkazu": 0, "kodovani": "", "kodovani_deklarovane": null, "format": "pdf", "bajtu": 212601, "duplikat_z": "http://www.enterpriseintegrationpatterns.com/docs/HohpeSOAPatterns.pdf", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 06:55:11", "sha256": "b9cdecdff13170d759fd672b9f9be91eec16b704a69ca4ba482673510bc136b5", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "application/pdf", "odkazy_externi": []} {"url": "https://www.enterpriseintegrationpatterns.com/docs/IEEE_IC_Conversations.pdf", "titulek": "", "h1": "", "popis": "", "klicova_slova": "", "kanonicka": "", "jazyk": "", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [], "markdown": "", "znaku_textu": 0, "slov": 0, "odkazu": 0, "kodovani": "", "kodovani_deklarovane": null, "format": "pdf", "bajtu": 167474, "duplikat_z": "http://www.enterpriseintegrationpatterns.com/docs/IEEE_IC_Conversations.pdf", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 06:01:31", "sha256": "c50cad8f27c6f1f1e06a5ca7b3d1e27cc35192e958f80ec6933c93cb981b31de", "hloubka": 1, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "application/pdf", "odkazy_externi": []} {"url": "https://www.enterpriseintegrationpatterns.com/docs/IEEE_Software_Design_2PC.pdf", "titulek": "", "h1": "", "popis": "", "klicova_slova": "", "kanonicka": "", "jazyk": "", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [], "markdown": "", "znaku_textu": 0, "slov": 0, "odkazu": 0, "kodovani": "", "kodovani_deklarovane": null, "format": "pdf", "bajtu": 119501, "duplikat_z": "http://www.enterpriseintegrationpatterns.com/docs/IEEE_Software_Design_2PC.pdf", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 06:01:34", "sha256": "f29fc347d66a71a2ace4c10c8e47168d063419d7530f8075dc37bf2e5ecdc25c", "hloubka": 1, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "application/pdf", "odkazy_externi": []} {"url": "https://www.enterpriseintegrationpatterns.com/docs/NfcOopHohpe.pdf", "titulek": "", "h1": "", "popis": "", "klicova_slova": "", "kanonicka": "", "jazyk": "", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [], "markdown": "", "znaku_textu": 0, "slov": 0, "odkazu": 0, "kodovani": "", "kodovani_deklarovane": null, "format": "pdf", "bajtu": 2745471, "duplikat_z": "http://www.enterpriseintegrationpatterns.com/docs/NfcOopHohpe.pdf", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 06:01:36", "sha256": "be066ab614954f42e456b1ae1fa234cd36bb78619c54ddf2d2086a54918945eb", "hloubka": 1, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "application/pdf", "odkazy_externi": []} {"url": "https://www.enterpriseintegrationpatterns.com/docs/SOA_World.pdf", "titulek": "", "h1": "", "popis": "", "klicova_slova": "", "kanonicka": "", "jazyk": "", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [], "markdown": "", "znaku_textu": 0, "slov": 0, "odkazu": 0, "kodovani": "", "kodovani_deklarovane": null, "format": "pdf", "bajtu": 73039, "duplikat_z": "http://www.enterpriseintegrationpatterns.com/docs/SOA_World.pdf", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 06:01:34", "sha256": "8b8c89e3ec5c203bb6dc2d6ff448f134d0609b01d521694cb7ae9a31d4f5b665", "hloubka": 1, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "application/pdf", "odkazy_externi": []} {"url": "https://www.enterpriseintegrationpatterns.com/docs/SoaPatterns.pdf", "titulek": "", "h1": "", "popis": "", "klicova_slova": "", "kanonicka": "", "jazyk": "", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [], "markdown": "", "znaku_textu": 0, "slov": 0, "odkazu": 0, "kodovani": "", "kodovani_deklarovane": null, "format": "pdf", "bajtu": 122140, "duplikat_z": "http://www.enterpriseintegrationpatterns.com/docs/SoaPatterns.pdf", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 06:01:31", "sha256": "1e05ee52b379d31c03a6468dc9d973c2692b04108e7555a1f8490bd87efb35dc", "hloubka": 1, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "application/pdf", "odkazy_externi": []} {"url": "https://www.enterpriseintegrationpatterns.com/docs/SpringOneKeynotePub.pdf", "titulek": "", "h1": "", "popis": "", "klicova_slova": "", "kanonicka": "", "jazyk": "", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [], "markdown": "", "znaku_textu": 0, "slov": 0, "odkazu": 0, "kodovani": "", "kodovani_deklarovane": null, "format": "pdf", "bajtu": 450728, "duplikat_z": "http://www.enterpriseintegrationpatterns.com/docs/SpringOneKeynotePub.pdf", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 06:01:41", "sha256": "ac00599888ea6bf6365372f1bcc146feda945378e51cd9ae7c6ef9ec854ed978", "hloubka": 1, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "application/pdf", "odkazy_externi": []} {"url": "https://www.enterpriseintegrationpatterns.com/docs/TSS_Keynote_Hohpe.pdf", "titulek": "", "h1": "", "popis": "", "klicova_slova": "", "kanonicka": "", "jazyk": "", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [], "markdown": "", "znaku_textu": 0, "slov": 0, "odkazu": 0, "kodovani": "", "kodovani_deklarovane": null, "format": "pdf", "bajtu": 691963, "duplikat_z": "http://www.enterpriseintegrationpatterns.com/docs/TSS_Keynote_Hohpe.pdf", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 06:55:13", "sha256": "cf931e1669f86e566d2dd1340413d87028d8323403dcbc3cf5a47065eb8d57cd", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "application/pdf", "odkazy_externi": []} {"url": "https://www.enterpriseintegrationpatterns.com/docs/TSS_software_visualization.pdf", "titulek": "", "h1": "", "popis": "", "klicova_slova": "", "kanonicka": "", "jazyk": "", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [], "markdown": "", "znaku_textu": 0, "slov": 0, "odkazu": 0, "kodovani": "", "kodovani_deklarovane": null, "format": "pdf", "bajtu": 535476, "duplikat_z": "http://www.enterpriseintegrationpatterns.com/docs/TSS_software_visualization.pdf", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 06:01:40", "sha256": "05b307a9f8dcab8fc4c022e74eed242f0439c3db063840dcd27f699c7ffc2782", "hloubka": 1, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "application/pdf", "odkazy_externi": []} {"url": "https://www.enterpriseintegrationpatterns.com/docs/TestDrivenEAI.pdf", "titulek": "", "h1": "", "popis": "", "klicova_slova": "", "kanonicka": "", "jazyk": "", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [], "markdown": "", "znaku_textu": 0, "slov": 0, "odkazu": 0, "kodovani": "", "kodovani_deklarovane": null, "format": "pdf", "bajtu": 169579, "duplikat_z": "http://www.enterpriseintegrationpatterns.com/docs/TestDrivenEAI.pdf", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 06:55:05", "sha256": "fff132089c3edf70571407b83f9d41b1f62e4bc3bfa33a61b980e406349c50d6", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "application/pdf", "odkazy_externi": []} {"url": "https://www.enterpriseintegrationpatterns.com/docs/agileEAI.html", "titulek": "Agile EAI - Enterprise Integration Patterns", "h1": "Abstract", "popis": "", "klicova_slova": "", "kanonicka": "", "jazyk": "", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Abstract"}, {"uroven": 1, "text": "EAI Challenges"}, {"uroven": 1, "text": "Agile Methods"}, {"uroven": 1, "text": "Agile EAI"}, {"uroven": 2, "text": "Iterative Development"}, {"uroven": 2, "text": "Simple Design / Evolve"}, {"uroven": 2, "text": "Automated Testing / Integration"}, {"uroven": 2, "text": "Close Customer Collaboration"}, {"uroven": 1, "text": "Conclusions"}, {"uroven": 1, "text": "Authors"}], "markdown": "Agile EAI\n\n---\n\nBy Martin Fowler and Gregor Hohpe, ThoughtWorks, Inc.\n\n# Abstract\n\nEnterprise Application Integration (EAI) is a top priority in \r\n many enterprises. Requirements for improved customer service or self-service, \r\n rapidly changing business environments and support for mergers and acquisitions \r\n are major drivers for increased integration between \"stovepipe\" systems. \r\n However, despite increasingly sophisticated EAI suites, enterprise integration \r\n remains difficult. Technical, business and political challenges require EAI \r\n implementations to be carefully planned, but adaptable to inevitable change.\n\nThe apparent dichotomy between careful planning and the ability \r\n to absorb changes has been the subject of much discussion in the world of application \r\n development. In the past years, a new set of development methods referred to \r\n as \"Agile Methods\" has garnered a lot of attention. Agile Methods \r\n are founded on the realization that long-term predictive planning is not appropriate \r\n for software development efforts supporting today's business environments. These \r\n new methods combine disciplined development methods with the ability to absorb \r\n change throughout the development process.\n\nThis article examines how the notion of agile software development \r\n can benefit integration projects. It examines four best practices proposed by \r\n Agile Methods and their applicability in the EAI world.\n\n# EAI Challenges\n\nEnterprise integration efforts are as vital to today's enterprises \r\n as they are difficult. Enterprise integration by definition has to deal with \r\n multiple applications running on multiple platforms in different locations. \r\n Current EAI suites offer good solutions to multi-platform, multi-language integration \r\n and provide pre-built adapters to most common packaged business applications. \r\n However, it turns out that the technical infrastructure presents only a small \r\n portion of the EAI complexities. The true challenges of EAI implementations \r\n span far across business and technical issues.\n\nEnterprise integration requires a significant shift in corporate \r\n politics. Business applications generally focus on a specific functional area, \r\n such as Customer Relationship Management (CRM), Billing, Finance, etc. In most \r\n instances, the business and IT groups are organized along the same functional \r\n areas. Successful enterprise integration requires communication and sharing \r\n of responsibilities across units. Application groups no longer control a specific \r\n application because the application is now part of an overall flow of integrated \r\n applications and services.\n\nNaturally, application integration efforts touch many business \r\n and technical aspects within the enterprise. EAI projects require business process \r\n modeling at a wider scope than most single application deployments. At the same \r\n time, EAI projects also require a significant number of low-level technical \r\n developments efforts that generally require more diverse skill sets than application \r\n developments efforts. Being able to bridge the gap between facilitating high-level \r\n business process decisions and resolving low-level technical issues may be the \r\n single most important factor to EAI success.\n\nA number of new technologies have promised to make enterprise \r\n integration easier. One of those technologies is XML. The wide adoption of XML \r\n provides a generally accepted data representation layer that allows us to transfer \r\n data from one application to another in a platform and language independent \r\n manner. However, the frequent claim that XML is the 'Lingua franca\" of \r\n system integration is somewhat misleading. Standardizing all data exchange to \r\n XML can be likened to using a common alphabet, such as the Roman alphabet. A \r\n common alphabet can still represent many languages and dialects, which cannot \r\n be readily understood by readers. The same is true in enterprise integration. \r\n The existence of a common presentation (e.g. XML) does not imply common semantics. \r\n The notion of \"account\" can have many different semantics, connotations, \r\n constraints and assumptions in each participating system. Resolving semantic \r\n differences between systems proves to be a particularly difficult and time-consuming \r\n task because it requires significant business and technical decisions to be \r\n made. Also, there are not many tools available to aid with the semantic mapping.\n\nWhile developing an EAI solution is a difficult task in itself, \r\n operating and maintaining such a solution may be even more daunting. The mix \r\n of technologies and the distributed nature of EAI solutions make deployment, \r\n monitoring, and trouble-shooting a complex task that requires a combination \r\n of skill sets. In many cases, these skill sets do not exist within IT operations \r\n or are spread across many different individuals. Anyone who has been through \r\n an EAI deployment can attest to the fact that EAI solutions are a critical component \r\n of today's enterprise strategies, but make IT life harder, not easier.\n\n# Agile Methods\n\nTraditionally, software engineering efforts have responded \r\n to complexity and uncertainty with an exhaustive up-front planning phase. These \r\n predictive methods were based on the presumption that rigorous up-front planning \r\n is ultimately able to eliminate execution uncertainty. As a result, many projects \r\n dove into \"analysis paralysis\" and created huge requirements and design \r\n specifications, just to find that during the project execution changing requirements \r\n and new findings threatened to impact the carefully crafted project plan. In \r\n many occasions, the result was a cancelled project, a delayed delivery or delivery \r\n of a system that did not meet the business needs. Many project managers learned \r\n the hard way that \"Users do not know what they want until you give them \r\n what they asked for.\"\n\nRecently, a new family of development methods, referred to as \r\n \"Agile Methods\", took a new approach to project management. Recognizing \r\n the inability to eliminate change and uncertainty in a business environment, \r\n Agile Methods adjust the development process such that it is able to absorb \r\n change and uncertainty. The underlying values of agile development methods are \r\n represented in the following \"[Agile \r\n Manifesto](http://www.agilealliance.org)\" :\n\nAgile Methods value:\n\n- Individuals and Interactions over Process and Tools\n- Working Software over Comprehensive Documents\n- Customer Collaboration over Contract Negotiation\n- Responding to Change over Following a Plan\n\nThis means, while Agile Methods value the items on the right, \r\n they value the items on the left more. For example, while design documentation \r\n is important, when faced with an either-or decision, Agile Methods value working \r\n software over a stack of papers. Agile Methods are certainly not suited for \r\n every type of project. Pacemakers and missile control systems do tend to have \r\n the benefit of stable requirements and are best served by a rigorous up-front \r\n planning and design effort. On the other hand, most business applications are \r\n driven by market forces and demands and are therefore subject to constant change. \r\n For these projects, Agile Methods provides a more flexible process, which can \r\n absorb change at a higher rate than traditional methods.\n\n# Agile EAI\n\nAgile Methods have demonstrated impressive success stories in \r\n the world of enterprise application development . Enterprise integration projects \r\n are characterized by a similar or even greater level of complexity and uncertainty \r\n than enterprise applications. Additionally, integration projects increasingly \r\n contain significant application or business logic. So how can some of the benefits \r\n of Agile Methods be brought to bear on integration projects?\n\r\n Agile Methods consist of a collection of best practices that have been proven \r\n to support the need to absorb change while delivering a high-quality solution. \r\n Many of the practices can be applied in the world of application integration \r\n with small modifications:\n\n## Iterative Development\n\nMany projects end in the proverbial death march. Most of the time, \r\n this crunch near the end of the project occurs because during the final testing \r\n and deployment, all the bad surprises come to daylight: the piece of code that \r\n was 90% complete a few weeks ago is still not done. The users realize that a \r\n feature works differently than they had expected and the module that was slipped \r\n in at the last minute caused defects in other parts of the program. As much \r\n as we hate this final part of the project, it does help uncover many problems \r\n and provides us with an accurate read on the health of the project. If we could \r\n go through this final phase more frequently, chances are that it would be much \r\n less painful and would give us a more accurate read on the actual project progress. \r\n Developing and deploying a solution in multiple iterations allows us to do exactly \r\n that.\n\nDeveloping in multiple, shorter iterations realizes a number of \r\n additional benefits. Releasing a limited set of functionality early allows users \r\n to see a part of the total solution and to provide feedback throughout the development \r\n cycle. This significantly reduces the risk of missing critical features or delivering \r\n features that are no longer required. It may also allow business users to start \r\n realizing business benefit sooner. In addition, iterative development lets developers \r\n and architects familiarize themselves with the specifics of the systems that \r\n are to be integrated within the context of a small piece of functionality. We \r\n can think of it as the \"Hello World\" of EAI.\n\r\n The benefits of releasing functionality in multiple iterations applies to enterprise \r\n integration just as well as it does to application development. The key is to \r\n identify meaningful subsets of functionality that can be reviewed by the users. \r\n Similar to application development, there are a number of design decisions that \r\n have to be made at the beginning and cannot be significantly changed throughout \r\n the iterations. This includes fundamental architectural decisions such as naming \r\n standards and the underlying network architecture. These fundamentals are usually \r\n defined in a so-called discovery phase that precedes the first iteration.\n\n## Simple Design / Evolve\n\nThe concept of simplicity goes hand-in-hand with iterative development. \r\n In order to deliver value in a shorter amount of time, the solution has to be \r\n simple in nature. Rather than developing a huge framework over six months, we \r\n solve a specific problem in a few weeks and demonstrate that we understand what \r\n the business needs.\n\nSimple does not mean unsophisticated or sloppy. Simple means that \r\n we attack the problem straight on and do not create an enormous humungous (?another \r\n word instead of humungous?) infrastructure to support a minuscule portion of \r\n functionality. Building infrastructures is fun. It lets the developers work \r\n in an idealized world of elegant concepts and generic solutions to theoretical \r\n problems. We have seen many very, very beautiful infrastructures - works of \r\n art! Well, that was usually at the end of the \"infrastructure phase\" \r\n before the ugly reality of vague and changing business requirements marred the \r\n beautiful picture. What a shame. By growing the infrastructure as the functionality \r\n grows, we can ensure that the infrastructure supports what is really needed \r\n by the business. In the end, an infrastructure that was properly evolved leads \r\n to a better result than a beautiful ivory-tower infrastructure that was subsequently \r\n bastardized to meet real requirements.\n\nHow can an infrastructure be evolved without deteriorating into \r\n a complete mess? Two key factors: discipline and frequent testing. Evolving \r\n the infrastructure and functionality does not imply hacking away. To the contrary, \r\n a more disciplined approach is needed - especially in the world of EAI that \r\n is ripe with loosely coupled, cross-language, cross-platform interactions. Before \r\n we start developing, crucial standards have to be established: subject / queue \r\n / channel naming, component naming, documentation standards. As the system evolves, \r\n these standards and guidelines will allow developers to get a quick and accurate \r\n read of the system at any point in time and allows them to make changes that \r\n are in line with the overall solution philosophy.\n\n## Automated Testing / Integration\n\nThe second key factor to allow evolution is frequent testing. \r\n In order to keep the whole development team from testing eight hours a day, \r\n these tests better be automated. Running a complete test suite should be as \r\n simple as clicking a button and reviewing the report later on. In the world \r\n of custom application development, the suite of public domain 'xUnit' frameworks \r\n have become the tools of choice for automated unit testing. These frameworks \r\n execute all test cases and compare actual results with desired results. Any \r\n deviations are reported. If all test cases succeedss, we see the infamous 'green \r\n bar' (the progress bar turns red if a test case fails) .\n\nIt turns out that effective unit testing is more difficult in \r\n an EAI setting development than in application development setting for a number \r\n of reasons:\n\n- The minimal unit of test in the EAI world tends to be larger \r\n and more data driven than in application development. Testing a single method \r\n of a Java class generally requires a moderate amount of preparation. On the \r\n contrary, testing a single integration function may require complex data setup \r\n inside multiple packaged applications.\n- Most application testing is synchronous. A specific function \r\n is called and the results are compared to the expected result. EAI functions \r\n are often times asynchronous. An EAI test case may produce results in an asynchronous \r\n manner. Results may arrive later or not at all.\n- EAI environments are inherently heterogeneous. In an application \r\n development environment, a Java-based tool such as jUnit can cover the vast \r\n majority of unit test cases. The EAI solution may span across multiple languages \r\n and platforms, including mainframe legacy systems. This makes the capture \r\n and comparison of test results much more difficult.\n- Testing tools are not yet readily available. Many EAI vendors \r\n focused more heavily on integration functionality than testing support. In \r\n many cases, testing tools have to be created and are vendor specific. Some \r\n integrators (such as ThoughtWorks) have created proprietary testing tools. \r\n When you select an integrator to assist with EAI implementations, ask them \r\n about their approach to testing and specific tools they can bring to bear.\n\n## Close Customer Collaboration\n\nContinuous customer collaboration is another critical enabler \r\n to iterative development and short feedback cycles. This successful practice \r\n is arguably easier to perform in front-end application development than in enterprise \r\n integration, because infrastructure software is inherently difficult to demonstrate. \r\n Many of us may have seen an EAI demo where some person clicks a button on one \r\n machine and the screen changes on the machine next to it. While interesting \r\n to watch, this demonstration may not move us to spend a six or seven digit amount \r\n on an enterprise EAI initiative.\n\nOn the other hand, the need to demonstrate business features to \r\n a customer frequently reminds the integration teams of the ultimate deliverable \r\n -- business value. As such, it is a critical metric for the EAI development \r\n teams to come out of the dark hiding places of infrastructure retrofits and \r\n measure their success by the value that was provided to the business.\n\n# Conclusions\n\nEnterprise integration is a critical part of today's enterprise \r\n strategies. Integration projects are equally or even more difficult than most \r\n application development efforts. This difficulty stems from complexities in \r\n both the business and technical domains. Given the spotty track record of large \r\n application development efforts, embarking on a complex integration project \r\n may scare many business sponsors and IT departments. Agile development methods \r\n have offered the development communities some relief and demonstrated critical \r\n project successes. With some modification, many of the principles and techniques \r\n used in agile software development can be applied to the world of enterprise \r\n integration and help make the next integration project a successful one.\n\n# Authors\n\nMartin Fowler is the Chief Scientist at ThoughtWorks, Inc, an \r\n Internet systems delivery and consulting company. Contact him at fowler@acm.org.\n\nGregor Hohpe leads the Enterprise Integration Services practice \r\n at ThoughtWorks, Inc., a provider of application development and enterprise \r\n integration services. For the past four years, he has been helping clients around \r\n the world design and implement enterprise integration solutions. He can be contacted \r\n at ghohpe@thoughtworks.com.\n\n---\n\n---", "znaku_textu": 17194, "slov": 2520, "odkazu": 10, "kodovani": "iso-8859-1", "kodovani_deklarovane": "iso-8859-1", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/docs/agileEAI.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 06:55:04", "sha256": "be3d218173d1e4985d8c472739519f5e271c90e4985dff17be5c38c0396ccd65", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://www.agilealliance.org/"]} {"url": "https://www.enterpriseintegrationpatterns.com/docs/hohpe_developing_in_soa_world.pdf", "titulek": "", "h1": "", "popis": "", "klicova_slova": "", "kanonicka": "", "jazyk": "", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [], "markdown": "", "znaku_textu": 0, "slov": 0, "odkazu": 0, "kodovani": "", "kodovani_deklarovane": null, "format": "pdf", "bajtu": 1319463, "duplikat_z": "http://www.enterpriseintegrationpatterns.com/docs/hohpe_developing_in_soa_world.pdf", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 06:01:38", "sha256": "3b7ac38207364dffa97244c8cd65dc18a4cf357ac5bc1ca20a6f27d4b525f0b7", "hloubka": 1, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "application/pdf", "odkazy_externi": []} {"url": "https://www.enterpriseintegrationpatterns.com/docs/hohpe_event_driven_architectures.pdf", "titulek": "", "h1": "", "popis": "", "klicova_slova": "", "kanonicka": "", "jazyk": "", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [], "markdown": "", "znaku_textu": 0, "slov": 0, "odkazu": 0, "kodovani": "", "kodovani_deklarovane": null, "format": "pdf", "bajtu": 527400, "duplikat_z": "http://www.enterpriseintegrationpatterns.com/docs/hohpe_event_driven_architectures.pdf", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 06:01:40", "sha256": "d4c2ea6021bf68a6681b7209bdf29a3c22b57b0e02adedea0eb4dc92719fc010", "hloubka": 1, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "application/pdf", "odkazy_externi": []} {"url": "https://www.enterpriseintegrationpatterns.com/docs/hohpeg_enterpriseintegrationpatterns.pdf", "titulek": "", "h1": "", "popis": "", "klicova_slova": "", "kanonicka": "", "jazyk": "", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [], "markdown": "", "znaku_textu": 0, "slov": 0, "odkazu": 0, "kodovani": "", "kodovani_deklarovane": null, "format": "pdf", "bajtu": 956676, "duplikat_z": "http://www.enterpriseintegrationpatterns.com/docs/hohpeg_enterpriseintegrationpatterns.pdf", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 06:55:15", "sha256": "d21bdf5d0d1db8e14582dddc6003f7f788a2a6e8680e1894e94440ccb62b37ff", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "application/pdf", "odkazy_externi": []} {"url": "https://www.enterpriseintegrationpatterns.com/docs/hohpeg_enterpriseintegrationpatterns_sdbp.pdf", "titulek": "", "h1": "", "popis": "", "klicova_slova": "", "kanonicka": "", "jazyk": "", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [], "markdown": "", "znaku_textu": 0, "slov": 0, "odkazu": 0, "kodovani": "", "kodovani_deklarovane": null, "format": "pdf", "bajtu": 290938, "duplikat_z": "http://www.enterpriseintegrationpatterns.com/docs/hohpeg_enterpriseintegrationpatterns_sdbp.pdf", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 06:55:13", "sha256": "fc381c99b8affd40d3def7afa2210a537c41b775507232a285677a9ffd1fcbb2", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "application/pdf", "odkazy_externi": []} {"url": "https://www.enterpriseintegrationpatterns.com/docs/integrationpatterns_biztalk.pdf", "titulek": "", "h1": "", "popis": "", "klicova_slova": "", "kanonicka": "", "jazyk": "", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [], "markdown": "", "znaku_textu": 0, "slov": 0, "odkazu": 0, "kodovani": "", "kodovani_deklarovane": null, "format": "pdf", "bajtu": 368655, "duplikat_z": "http://www.enterpriseintegrationpatterns.com/docs/integrationpatterns_biztalk.pdf", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 06:55:02", "sha256": "1aada1c872f6be186dc489c98c2be54b4bfca11e662fb709d88b6d77fcb76eb7", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "application/pdf", "odkazy_externi": []} {"url": "https://www.enterpriseintegrationpatterns.com/docs/jaoo_hohpeg_enterpriseintegrationpatterns.pdf", "titulek": "", "h1": "", "popis": "", "klicova_slova": "", "kanonicka": "", "jazyk": "", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [], "markdown": "", "znaku_textu": 0, "slov": 0, "odkazu": 0, "kodovani": "", "kodovani_deklarovane": null, "format": "pdf", "bajtu": 431115, "duplikat_z": "http://www.enterpriseintegrationpatterns.com/docs/jaoo_hohpeg_enterpriseintegrationpatterns.pdf", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 06:01:43", "sha256": "58da9148c49d901a6ded35419aedec084ace3cb442918bef9669b7fa29fec776", "hloubka": 1, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "application/pdf", "odkazy_externi": []} {"url": "https://www.enterpriseintegrationpatterns.com/docs/stairwaytoheaven.pdf", "titulek": "", "h1": "", "popis": "", "klicova_slova": "", "kanonicka": "", "jazyk": "", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [], "markdown": "", "znaku_textu": 0, "slov": 0, "odkazu": 0, "kodovani": "", "kodovani_deklarovane": null, "format": "pdf", "bajtu": 60324, "duplikat_z": "http://www.enterpriseintegrationpatterns.com/docs/stairwaytoheaven.pdf", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 06:55:07", "sha256": "8a8c0e506ce997f04edc63e7577e93bf18225074ee44f83b54536555dd6eae0f", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "application/pdf", "odkazy_externi": []} {"url": "https://www.enterpriseintegrationpatterns.com/download/ComposedMessagingMSMQReadme.html", "titulek": "", "h1": "Enterprise Integration Patterns", "popis": "", "klicova_slova": "", "kanonicka": "", "jazyk": "", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Enterprise Integration Patterns"}, {"uroven": 2, "text": "The Loan Broker MSMQ Example (Chapter 9)"}, {"uroven": 3, "text": "Prequisites"}, {"uroven": 3, "text": "Installation"}, {"uroven": 3, "text": "Run"}], "markdown": "# Enterprise Integration Patterns\n\n## The Loan Broker MSMQ Example (Chapter 9)\n\n### Prequisites\n\nThis example is the executable version of the example in Chapter 9 of *Enterprise \r\n Integraiton Patterns* (Addison-Wesley, ISBN 0321200683). The example is implemented \r\n in C# and requires the following components:\n\n- The **Microsoft \r\n .NET Framework 1.1** ( [http://msdn.microsoft.com/net](http://msdn.microsoft.com/net) )\n- The **Message \r\n Queing** component of the Windows operating system. This component \r\n is part of Windows 2000, Windows XP and Windows 2003, but is not installed \r\n by default. To install this component, enter the Control Panel, select Add \r\n or Remove Programs. On the icon bar on the left select Add/Remove Windows \r\n Components. Select the checkbox next to Message \r\n Queueing . Since this examples uses only local queues, you do not have \r\n to install the Active \r\n Directory Integration subcomponent.\n- Once the Message \r\n Queing component is installed, make sure the Message \r\n Queuing service is started. Open the Control Panel, select Administrative \r\n Tools, then Services. Make sure the service Message \r\n Queuing has a status of Started . If not, highlight the service and select Start from the Action menu.\n- **Visual Studio \r\n .NET 2003** . While you can compile the C# files from the command \r\n line, the included solution and project files require Visual Studio .NET 2003. \r\n The sample has been tested with the Professional Edition.\n\n### Installation\n\nUnzip the ZIP file into an empty directory. You should see sub-folders for \r\n the individual programs, e.g. Bank and CreditBureau.\n\nDouble-click the file ComposedMessaging.sln. \r\n This will start Visual Studio. Select \"Build Solution\".\n\n### Run\n\nRun TestLoanBroker.bat. This \r\n batch script opens multiple command windows, one for each credit bureau (3) \r\n and one for each bank (5). It also opens one window for the Loan Broker process \r\n and one window for the test client. The test client sends 50 random requests \r\n to the loan broker. After it receives all 50 responses, it displays summary \r\n statistics.\n\nYou can close the console windows by hitting the Enter key.\n\n[www.eaipatterns.com](http://www.eaipatterns.com)", "znaku_textu": 2172, "slov": 318, "odkazu": 2, "kodovani": "utf-8", "kodovani_deklarovane": null, "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/download/ComposedMessagingMSMQReadme.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 06:55:18", "sha256": "79e1dca7480fc3c76b3e7120603656ee5e8975622ed592b843d906407215e120", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://msdn.microsoft.com/net", "http://www.eaipatterns.com/"]} {"url": "https://www.enterpriseintegrationpatterns.com/download/EIPTutorialReferenceChart.pdf", "titulek": "", "h1": "", "popis": "", "klicova_slova": "", "kanonicka": "", "jazyk": "", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [], "markdown": "", "znaku_textu": 0, "slov": 0, "odkazu": 0, "kodovani": "", "kodovani_deklarovane": null, "format": "pdf", "bajtu": 69394, "duplikat_z": "http://www.enterpriseintegrationpatterns.com/download/EIPTutorialReferenceChart.pdf", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 06:55:16", "sha256": "ebff07cf00d48064c988569a743ed05cabf19eaa49fb851344f4d24fa458c242", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "application/pdf", "odkazy_externi": []} {"url": "https://www.enterpriseintegrationpatterns.com/download/TutorialOverviewAndExercises.pdf", "titulek": "", "h1": "", "popis": "", "klicova_slova": "", "kanonicka": "", "jazyk": "", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [], "markdown": "", "znaku_textu": 0, "slov": 0, "odkazu": 0, "kodovani": "", "kodovani_deklarovane": null, "format": "pdf", "bajtu": 1261733, "duplikat_z": "http://www.enterpriseintegrationpatterns.com/download/TutorialOverviewAndExercises.pdf", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 06:55:17", "sha256": "f8b6b2e091c277448c940e93a10eecf1f06f47fc12cd2dcf574c3d51f872fb65", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "application/pdf", "odkazy_externi": []} {"url": "https://www.enterpriseintegrationpatterns.com/download_notes.html", "titulek": "Simple Messaging Toolkit - Release Notes", "h1": "", "popis": "", "klicova_slova": "", "kanonicka": "", "jazyk": "", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [], "markdown": "---\n\n| Simple Messaging \r\n Toolkit Release Notes |\n| --- |\n| |\n| March 22, 2007 Fixed bug: Barista (and other components) would not work properly if messages were already queued up on the input channel. New feature: you can change the item strings in the drop-downs of the Customer component. These strings are also embedded into the XML document generated by the Customer. This allows you to use the toolkit in different contexts or domains. The customer.bat command line syntax is as follows:\n customer outputChannel \"item1,item2,item3\"\n\r\n The list of items has to be comma separated. Whitespace around the commas becomes part of the item text. The second parameter has to be enclosed in double quotes to avoid having it split up by the command line processor.\r\n The feature only works in the ExercisesViz folder. |\n| Feb 2, 2007 Ported to .Net 2.0 Added validator. Visualizer now generates file validation.html that describes potential error situations in the message graph. For more information see [Validating Dynamic Systems](ramblings/48_validation.html). |\n\n---\n\n---", "znaku_textu": 1043, "slov": 158, "odkazu": 1, "kodovani": "iso-8859-1", "kodovani_deklarovane": "iso-8859-1", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/download_notes.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 06:55:15", "sha256": "4919800e1b25d074e9a2515d294b114b0cfbf9205955f0e96eeab2ecdbd9f7ed", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": []} {"url": "https://www.enterpriseintegrationpatterns.com/downloads.html", "titulek": "Tools & Downloads - Enterprise Integration Patterns", "h1": "", "popis": "", "klicova_slova": "eai, patterns, enterprise, integration, messaging, middleware, eai patterns, enterprise integration, soa, rest", "kanonicka": "", "jazyk": "", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Visio and Omnigraffle Stencil"}, {"uroven": 2, "text": "Articles and Presentations"}, {"uroven": 2, "text": "Sample Chapter"}, {"uroven": 2, "text": "On-line Resources"}, {"uroven": 2, "text": "Simple Messaging Toolkit"}, {"uroven": 2, "text": "Loan Broker MSMQ Example from Chapter 9"}], "markdown": "## Visio and Omnigraffle Stencil\n\nMatthew Oskowis ([contact](mailto:eip@zenworx.com)) \r\n created a Visio stencil that contains 51 integration pattern icons as Visio \r\n shapes. Each shape includes the solution text for the corresponding pattern. \r\n This stencil is invaluable when drawing out solutions based on the notation \r\n defined in the book. The stencil is available in Visio \r\n 2002 and a Visio 5 versions. If soneone if willing to port these to a newer version of visio, \r\n [let me know](/gregor.html).\n\n[EIP Stencil for Visio 2002](/download/EIP_Visio_stencil.zip) (147 KB ZIP)\n [EIP Stencil for Visio 5](/download/EIP_Visio5_stencil.zip) (134 KB ZIP)\n\nGunnar Peterson created a stencil for Omnigraffle. According to the site it has over 18000 downloads!\n\n[EIP Stencil for Omnigraffle](http://www.graffletopia.com/stencils/137) (200 KB)\n\n## Articles and Presentations\n\nYou can download most of my articles from the [Articles](/articles.html) page and many of my presentations from the [Talks](/talks.html) page. You may also want to check out [my blog](/ramblings.html).\n\n## Sample Chapter\n\nPearson has generously made the Introduction, Chapter 2 (\"Integration Styles\") and Chapter 3 (\"Messaging Systems\") of our book available for download. If you like what you see, please consider buying the book.\n\n[Chapter 2: \"Integration Styles\"](http://ptgmedia.pearsoncmg.com/images/9780321200686/samplepages/0321200683.pdf) PDF Download from Pearson Education (1073 KB) \n [Chapter 3: \"Messaging Systems\"](/docs/EnterpriseIntegrationPatterns_HohpeWoolf_ch03.pdf) PDF (614 KB)\n\n## On-line Resources\n\n| [**Workflow Patterns**](http://www.workflowpatterns.com), Wil van der Aalst, Arthur ter Hofstede, Marlon Dumas An extensive collection of workflow patterns from multiple perspectives: control-flow, data, resource, and exception handling. Wil also wrote a [good book on Workflow Management](http://www.amazon.com/exec/obidos/ASIN/0262720469/enterpriseint-20) and one on [Process Mining](http://www.amazon.com/exec/obidos/ASIN/3642193447/enterpriseint-20). [**Service Interaction Patterns**](http://kodu.ut.ee/~dumas/ServiceInteractionPatterns/patterns.html), Alistair Barros, Marlon Dumas, Arthur ter Hofstede A collection of basic interaction patterns. [**Patterns of System Integration with Enterprise Messaging**](http://www.hillside.net/plop/plop2002/final/woolfbrown2.pdf), Bobby Woolf, Kyle Brown Bobby and Kyle's original paper workshopped at PLoP 2002 and subsequently merged with my paper to become the nucleus of [Enterprise Integration Patterns](/eaipatterns.html). [**Stylized Architecture, Design Patterns, and Objects**](http://www-2.cs.cmu.edu/afs/cs/project/compose/ftp/pdf/ObjPatternsArch-ieee97.pdf), Monroe, Kompanek, Melton, Garlan | [**A Note on Distributed Computing**](http://citeseerx.ist.psu.edu/viewdoc/summary?doi=10.1.1.41.7628) Samuel C. Kendall, Jim Waldo, Ann Wollrath and Geoff Wyant, 1994 10 years ago Waldo et al. already reminded us why attempting to make distribution transparent to developers is a bad idea. I wish more Web services architects read this paper. [**UML Profile for Enterprise Application Integration**](http://www.omg.org/spec/EAI/), Object Management Group , 2002 A more formal approach to describing integration solutions, implemented as a UML profile. While it uses some of the same vocabulary as our patterns the focus is on a formal specification language whereas our patterns provide guidance about proper usage and trade-offs. [**Communicating Sequential Processes**](http://doi.acm.org/10.1145/359576.359585), C. A. R. Hoare, Communications of the ACM , 1978 Still one of the best concurrency models, which for example inspired the Go Language. *ACM on-line library access is required to see the full-text version of this article.* |\n| --- | --- |\n\n## Simple Messaging Toolkit\n\nFor my [ACM \r\n Middleware](http://www.eecg.utoronto.ca/middleware2004) and [OOPSLA](http://www.oopsla.org) tutorials I used a messaging toolkit that implements many of the basic patterns in our book. The toolkit allows users to compose solutions from \r\n the basic patterns and observe them in action. I developed the toolkit \r\n in C#, mostly because I am more familiar with the .NET user interface \r\n libraries. The kit is likely not 100% robust yet, but I am looking for \r\n feedback on the usefulness of the concept. The individual components can \r\n be run directly from the DOS command line or from a batch script. These \r\n scripts have a very nice, Domain-specific language feel to them.\n\nThese example implementations are not the patterns, \r\n but only a consistent example pattern implementations. Patterns \r\n comprise intent, forces, context etc. and are generally technology independent. \r\n For this toolkit I chose a specific implementation technology and created \r\n a collection of *examples* of the patterns. Read [[more \r\n on the relationship between the toolkit and the patterns](/ramblings/16_patternscomponents.html)]\n\n**Quickstart**: [download_notes](/download_notes.html)\n\n1) Extract the ZIP file, preserving the folder structure.\n\r\n 2) Make sure your Windows Message Queuing service is active (see reference Sheet for details). \n\r\n 3) Run \"Exercise1a.bat\" from the \"Exercises\" folder.\n\r\n 4) Select values from the drop-down lists in the Customer window and click ' Send Order'.\n\r\n 5) Follow the Tutorial Presentation for more complex examples and exercises.\n\n**Requirements**:\n\nMicrosoft Windows XP or 2003\n\r\n Microsoft .NET Framework 2.0 \n\r\n Microsoft Message Queuing (part of Windows)\n\n[Download ZIP File](/download/MessagingKitInstallWithSolution.zip) (1 MB) • \r\n [Reference Sheet and Installation](/download/EIPTutorialReferenceChart.pdf) (51 KB) • \r\n [Tutorial Presentation](/download/TutorialOverviewAndExercises.pdf) (1.2 MB) • \r\n [Release Notes](/download_notes.html)\n\n## Loan Broker MSMQ Example from Chapter 9\n\nMultiple readers have asked for the complete source for the Loan Broker \r\n example from Chapter 9. While the examples in the book are primarily intended \r\n to illustrate design trade-offs, a running example can be a useful learning tool. \r\n The ZIP file contains the complete Visual Studio solution. \r\n It should also load in newer versions of .Net and Visual Studio.\r\n It is also possible to compile the individual projects from the command line and avoid the need for Visual Studio.\n\n**Requirements** :\n\nMicrosoft Windows XP or 2003\n\r\n Microsoft .NET Framework 1.1\n\r\n Microsoft Visual Studio .NET 2003\n\n[Download ZIP File](/download/ComposedMessagingMSMQ.zip) (48 KB) • \r\n [ReadMe File](/download/ComposedMessagingMSMQReadme.html)", "znaku_textu": 6529, "slov": 834, "odkazu": 57, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/downloads.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 06:01:24", "sha256": "744bd3f21ad2932020bf920c97747b6307973f3fa0f955ca962ab24dfdb4072f", "hloubka": 1, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://www.infoq.com/presentations/hohpe-soa-conversations", "http://www.infoq.com/", "http://www.infoq.com/presentations/hohpe-soa-development", "http://www.drdobbs.com/an-asynchronous-world/184415001", "https://sites.google.com/site/gcodejp/slides/ProgrammingCloud_QCon.pdf", "http://www.graffletopia.com/stencils/137", "http://ptgmedia.pearsoncmg.com/images/9780321200686/samplepages/0321200683.pdf", "http://www.workflowpatterns.com/", "http://www.amazon.com/exec/obidos/ASIN/0262720469/enterpriseint-20", "http://www.amazon.com/exec/obidos/ASIN/3642193447/enterpriseint-20", "http://kodu.ut.ee/~dumas/ServiceInteractionPatterns/patterns.html", "http://www.hillside.net/plop/plop2002/final/woolfbrown2.pdf", "http://www-2.cs.cmu.edu/afs/cs/project/compose/ftp/pdf/ObjPatternsArch-ieee97.pdf", "http://citeseerx.ist.psu.edu/viewdoc/summary?doi=10.1.1.41.7628", "http://www.omg.org/spec/EAI/", "http://doi.acm.org/10.1145/359576.359585", "http://www.eecg.utoronto.ca/middleware2004", "http://www.oopsla.org/"]} {"url": "https://www.enterpriseintegrationpatterns.com/eaipatterns.html", "titulek": "Messaging Patterns Overview - Enterprise Integration Patterns", "h1": "", "popis": "This pattern catalog includes 65 integration patterns that we collected from integration projects and updated over two decades. They provide technology-independent design guidance for developers and architects to develop and document robust integration solutions. The 65 messaging patterns are organized as follows (click on the image or view the Table of Contents):", "klicova_slova": "Messaging Patterns Overview,integration, messaging, events, patterns, event-driven, coupling, eai, middleware, application integration, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns", "og:title": "Messaging Patterns Overview - Enterprise Integration Patterns", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/index.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/eip1_patterns_wide.png"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Integration Pattern Language"}, {"uroven": 2, "text": "Why Enterprise Integration Patterns?"}, {"uroven": 2, "text": "What products implement or use Enterprise Integration Patterns?"}, {"uroven": 2, "text": "How can you use the Patterns?"}, {"uroven": 2, "text": "What about REST / SOA / Serverless / EDA Patterns?"}, {"uroven": 2, "text": "Be Part of the Community"}, {"uroven": 2, "text": "Contributors"}], "markdown": "| | Messaging Patterns Overview[Messaging Patterns](index.html) | [Contents](toc.html)[Next ⇒](toc.html) |\n| --- | --- | --- |\n\nThis pattern catalog includes 65 integration patterns that we collected from integration projects and updated over two decades. They provide technology-independent design guidance for developers and architects to develop and document robust integration solutions. The [65 messaging patterns](toc.html) are organized as follows (click on the image or view the [Table of Contents](toc.html)):\n\n## Integration Pattern Language\n\n[Message Construct.](MessageConstructionIntro.html)\n\n[Message](Message.html)\n\n[Command Message](CommandMessage.html)\n\n[Document Message](DocumentMessage.html)\n\n[Event Message](EventMessage.html)\n\n[Request-Reply](RequestReply.html)\n\n[Return Address](ReturnAddress.html)\n\n[Correlation Identifier](CorrelationIdentifier.html)\n\n[Message Sequence](MessageSequence.html)\n\n[Message Expiration](MessageExpiration.html)\n\n[Format Indicator](FormatIndicator.html)\n\n[Message Routing](MessageRoutingIntro.html)\n\n[Pipes-and-Filters](PipesAndFilters.html)\n\n[Message Router](MessageRouter.html)\n\n[Content-based Router](ContentBasedRouter.html)\n\n[Message Filter](Filter.html)\n\n[Dynamic Router](DynamicRouter.html)\n\n[Recipient List](RecipientList.html)\n\n[Splitter](Sequencer.html)\n\n[Aggregator](Aggregator.html)\n\n[Resequencer](Resequencer.html)\n\n[Composed Msg. Processor](DistributionAggregate.html)\n\n[Scatter-Gather](BroadcastAggregate.html)\n\n[Routing Slip](RoutingTable.html)\n\n[Process Manager](ProcessManager.html)\n\n[Message Broker](MessageBroker.html)\n\n[Message\nTransformation](MessageTransformationIntro.html)\n\n[Message Translator](MessageTranslator.html)\n\n[Envelope Wrapper](EnvelopeWrapper.html)\n\n[Content Enricher](DataEnricher.html)\n\n[Content Filter](ContentFilter.html)\n\n[Claim Check](StoreInLibrary.html)\n\n[Normalizer](Normalizer.html)\n\n[Canonical Data Model](CanonicalDataModel.html)\n\n[Messaging Endpoints](MessagingEndpointsIntro.html)\n\n[Message Endpoint](MessageEndpoint.html)\n\n[Messaging Gateway](MessagingGateway.html)\n\n[Messaging Mapper](MessagingMapper.html)\n\n[Transactional Client](TransactionalClient.html)\n\n[Polling Consumer](PollingConsumer.html)\n\n[Event-driven Consumer](EventDrivenConsumer.html)\n\n[Competing Consumers](CompetingConsumers.html)\n\n[Message Dispatcher](MessageDispatcher.html)\n\n[Selective Consumer](MessageSelector.html)\n\n[Durable Subscriber](DurableSubscription.html)\n\n[Idempotent Receiver](IdempotentReceiver.html)\n\n[Service Activator](MessagingAdapter.html)\n\n[Messaging Channels](MessagingChannelsIntro.html)\n\n[Message Channel](MessageChannel.html)\n\n[Point-to-Point Channel](PointToPointChannel.html)\n\n[Publish-Subscr. Channel](PublishSubscribeChannel.html)\n\n[Datatype Channel](DatatypeChannel.html)\n\n[Invalid Message Channel](InvalidMessageChannel.html)\n\n[Dead Letter Channel](DeadLetterChannel.html)\n\n[Guaranteed Delivery](GuaranteedMessaging.html)\n\n[Channel Adapter](ChannelAdapter.html)\n\n[Messaging Bridge](MessagingBridge.html)\n\n[Message Bus](MessageBus.html)\n\n[Systems Mgmt.](SystemManagementIntro.html)\n\n[Control Bus](ControlBus.html)\n\n[Detour](Detour.html)\n\n[Wire Tap](WireTap.html)\n\n[Message History](MessageHistory.html)\n\n[Message Store](MessageStore.html)\n\n[Smart Proxy](SmartProxy.html)\n\n[Test Message](TestMessage.html)\n\n[Channel Purger](ChannelPurger.html)\n\n- [**Integration Styles**](IntegrationStylesIntro.html) document different ways applications can be integrated, providing a historical account of integration technologies. All subsequent patterns follow the [*Messaging*](Messaging.html) style.\n- [**Channel Patterns**](MessagingChannelsIntro.html) describe how messages are transported across a [*Message Channel*](MessageChannel.html) . Most messaging systems implement these patterns.\n- [**Message Construction Patterns**](MessageConstructionIntro.html) describe the intent, form and content of the messages that travel across the messaging system. The [*Message*](Message.html) pattern is the base pattern for this section.\n- [**Routing Patterns**](MessageRoutingIntro.html) discuss how messages are directed from a sender to the correct receiver(s). The patterns presented in this section are specializations of the [*Message Router*](MessageRouter.html) pattern.\n- [**Transformation Patterns**](MessageTransformationIntro.html) change the content of a message, for example to accommodate different data formats used by the sending and the receiving system. Data may have to be added, taken away or existing data may have to be rearranged. The base pattern for this section is the [*Message Translator*](MessageTranslator.html) .\n- [**Endpoint Patterns**](MessagingEndpointsIntro.html) describe how applications produce or consume messages.\n- [**System Management Patterns**](SystemManagementIntro.html) describe what's needed to keep a complex message-based system running smoothly.\n\n## Why Enterprise Integration Patterns?\n\nIntegration is a long-running topic in all aspects of software and IT, and it's too multi-faceted to be tackled with a simple 'cookbook' approach. Patterns, in contrast, document knowledge and experience that usually lives only in architects' heads. As accepted solutions to recurring problems, patterns are abstract enough to apply across integration technologies, but specific enough to provide hands-on guidance. They also provide a vocabulary to accurately describe solutions.\n\nPatterns are not 'invented'; they are harvested from repeated use in practice. If you have built integration solutions, you likely have used some of these patterns, maybe in slight variations and perhaps calling them by a different name. This site condenses that experience into a coherent collection of proven patterns that form an integration pattern language. Patterns live in a specific context. This first set of patterns focus on [*Messaging*](Messaging.html). We also started to [harvest Conversation patterns](/patterns/conversation).\n\n## What products implement or use Enterprise Integration Patterns?\n\nThe patterns are independent of a specific implementation and help you design better solutions with any of the following platforms:\n\n- **Open source ESB's** like [Mule ESB](http://www.mulesoft.org/) , [JBoss Fuse](http://www.jboss.org/products/fuse/overview/) , [Open ESB](http://www.open-esb.net/) , [WSo2](http://wso2.com/) , [Spring Integration](http://projects.spring.io/spring-integration/) , or [Talend ESB](http://www.talend.com/)\n- **Message Brokers** like [ActiveMQ](http://activemq.apache.org) , [Apache Kafka](https://kafka.apache.org/) , or [RabbitMQ](https://www.rabbitmq.com)\n- **EAI and SOA platforms** , such as [IBM WebSphere MQ](http://www.ibm.com/software/mqseries) , [TIBCO](http://www.tibco.com) , [Vitria](http://www.vitria.com) , [Oracle Service Bus](http://www.oracle.com/technetwork/middleware/service-bus) , [WebMethods](http://www.softwareag.com/corporate/products/webmethods_integration/integration/overview/default.asp) (now Software AG), [Microsoft BizTalk](http://www.microsoft.com/biztalk) , or [Fiorano](http://www.fiorano.com) .\n- **Cloud-based integration** , including [Amazon Simple Queue Service (SQS)](http://aws.amazon.com/sqs/) , [Amazon EventBridge](https://aws.amazon.com/eventbridge/) , [Google Cloud Pub/Sub](https://cloud.google.com/pubsub/) , or [Azure Service Bus](https://azure.microsoft.com/en-us/products/service-bus) .\n- **JMS-based messaging systems**\n- **Microsoft technologies** like [MSMQ](https://msdn.microsoft.com/en-us/library/ms711472) or [Windows Communication Foundation (WCF)](https://msdn.microsoft.com/library/vstudio/ms735119)\n\n## How can you use the Patterns?\n\nTo encourage widespread use of the integration pattern language, many parts are available under open source licensing. You are free to use the pattern name, icon, problem and solution statements, and the sketches (the diagram below the solution statement) under the [Creative Commons Attribution](http://creativecommons.org/licenses/by/4.0/) license.\n\n> The [CC-BY](https://creativecommons.org/licenses/by/4.0/) license allows you share, use and modify these elements as long as you give proper attribution, such as a link to this site or a citation of the book. See the [license for more detail](https://creativecommons.org/licenses/by/4.0/)\n> \n> .\n\nYou can do a lot more with the patterns:\n\n- **Build** . Many open-source frameworks, such as [Mule](http://mule.codehaus.org/display/MULE/Architecture+Guide) , [Apache Camel](http://activemq.apache.org/camel/) , or [Spring Integration](http://projects.spring.io/spring-integration/) incorporate our patterns. You can not only think in integration patterns, but also to code in them!\n- **Document** . You can create design documents using our icon language by downloading the [Visio stencil](downloads.html) or using the [OmniGraffle stencil](http://www.graffletopia.com/stencils/137) created by one of our readers.\n- **Read** . The book [*Enterprise Integration Patterns*](http://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20) (Addison-Wesley, ISBN 0321200683) contains the full description of each pattern with plenty of examples -- over 700 pages worth of material. You can also read the full text [on-line on Safari](http://safari.informit.com/0321200683) (with membership).\n- **Teach** . A number of professors use our material in lectures. If you are interested in getting access to material for academic purposes, please [contact us](gregor.html) .\n\n## What about REST / SOA / Serverless / EDA Patterns?\n\nThe integration problems we solve today remain [frustratingly similar](/ramblings/81_restconversation.html) to 20 years ago. The design knowledhe encapsulated in the patterns does not age like specific technologies. A list of [modern examples](/ramblings/eip1_examples_updated.html) shows how the patterns apply to integration technologies like Kafka, Google Cloud Pub/Sub, Amazon SQS or [REST](/ramblings/81_restconversation.html). I've also re-implemented the Loan Broker example application in [AWS Lambda, EventBridge, and Step Functions](/ramblings/loanbroker_stepfunctions.html) and [GCP PubSub and Workflows](/ramblings/loanbroker_gcp_workflows.html).\n\n## Be Part of the Community\n\nFeel free to connect on [LinkedIn](https://www.linkedin.com/in/ghohpe). We welcome your feedback!\n\n## Contributors\n\nThe patterns on this site are the result of discussions involving numerous individuals. Kyle Brown (co-author of \"Enterprise Java Programming for IBM WebSphere\" and \"The Design Patterns Smalltalk Companion\"), John Crupi (co-author of \"Core J2EE Patterns\"), Martin Fowler (author of too many books to mention here), Rachel Reinitz, Mark Weitzel were part of the original discussions. Conrad D'Cruz, Sean Neville, Mike Rettig, Jonathan Simon ended up authoring examples, case studies, and a chapter on the future of integration.", "znaku_textu": 10651, "slov": 1085, "odkazu": 124, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/eaipatterns.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 06:01:20", "sha256": "dc85b74166b38c3432f7ef43820ecbd22e4e2ef0d7177fb1748db04b01f2bb90", "hloubka": 1, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://www.mulesoft.org/", "http://www.jboss.org/products/fuse/overview/", "http://www.open-esb.net/", "http://wso2.com/", "http://projects.spring.io/spring-integration/", "http://www.talend.com/", "http://activemq.apache.org/", "https://kafka.apache.org/", "https://www.rabbitmq.com/", "http://www.ibm.com/software/mqseries", "http://www.tibco.com/", "http://www.vitria.com/", "http://www.oracle.com/technetwork/middleware/service-bus", "http://www.softwareag.com/corporate/products/webmethods_integration/integration/overview/default.asp", "http://www.microsoft.com/biztalk", "http://www.fiorano.com/", "http://aws.amazon.com/sqs/", "https://aws.amazon.com/eventbridge/", "https://cloud.google.com/pubsub/", "https://azure.microsoft.com/en-us/products/service-bus", "https://msdn.microsoft.com/en-us/library/ms711472", "https://msdn.microsoft.com/library/vstudio/ms735119", "http://creativecommons.org/licenses/by/4.0/", "https://creativecommons.org/licenses/by/4.0/", "http://mule.codehaus.org/display/MULE/Architecture+Guide", "http://activemq.apache.org/camel/", "http://www.graffletopia.com/stencils/137", "http://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "http://safari.informit.com/0321200683", "https://www.linkedin.com/in/ghohpe", "https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "https://www.architectelevator.com/book", "https://www.cloudstrategybook.com/", "https://www.platformstrategybook.info/"]} {"url": "https://www.enterpriseintegrationpatterns.com/gregor.html", "titulek": "Gregor Hohpe - Enterprise Integration Patterns", "h1": "", "popis": "", "klicova_slova": "", "kanonicka": "", "jazyk": "", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Interests [MORE]"}, {"uroven": 2, "text": "Short Bio"}, {"uroven": 2, "text": "My Books"}, {"uroven": 2, "text": "Chapters and Contributions"}, {"uroven": 2, "text": "Disclosures & Privacy"}, {"uroven": 2, "text": "This Site"}, {"uroven": 2, "text": "Projects [MORE]"}], "markdown": "Gregor Hohpe\n\n---\n\nThis site is maintained by Gregor Hohpe (\"[hoh-puh](docs/gregorhohpe.wav)\").\n\n[@ghohpe](https://www.twitter.com/ghohpe)\n\n[Gregor Hohpe](https://www.linkedin.com/in/ghohpe)\n\nThe opinions expressed on this site are my personal ones, not those of my current or past employers.\n\nI enjoy seeing the field of IT from different angles (consulting, software engineering, corporate IT) and collecting my thoughts in my [ramblings](/ramblings.html). I like to tinker with [hardware](https://code.google.com/p/nfc-smart-tag/), mostly based on [AVR micro controllers](http://en.wikipedia.org/wiki/Atmel_AVR) and [Raspberry Pi](http://www.raspberrypi.org/). I am also fairly active on [Linkedin](https://www.linkedin.com/today/author/ghohpe).\n\n## Interests [[MORE]](http://www.hohpe.com/Gregor/Work/interests.html)\n\nI aim to make building distributed and integrated solutions less difficult and error-prone by collecting and documenting [Integration Patterns](eaipatterns.html) from many client projects. It all started with a paper at the [PLoP\n 2002 conference](http://www.hillside.net/plop/plop2002/proceedings.html), which evolved into a successful [book](books1.html), published in 2003. By now (2023) more than 90,000 copies have been sold.\n\nI also help large organizations transform their IT infrastructure and processes to reduce cost and complexity while increasing software delivery velocity. You can find the related book and information at [architectelevator.com](http://architectelevator.com).\n\n## Short Bio\n\nGregor advises CTOs and technology leaders in the transformation of both their organization and technology platform. Riding the Architect Elevator from the engine room to the penthouse, he assures that corporate strategy connects with the technical implementation and vice versa.\n\nGregor held positions as a Singapore Smart Nation Fellow and technical director in Google Cloud's Office of the CTO, where he helped customers maximize the value from a cloud-based IT model, and as Chief Architect at Allianz SE, where he oversaw the architecture of a global data center consolidation and deployed the first private cloud software delivery platform.\n\nGregor is known as co-author of the seminal book \"Enterprise Integration Patterns\", which is widely cited as the reference vocabulary for asynchronous messaging solutions. His book \"37 Things One Architect Knows About IT Transformation\" tells stories from the trenches of IT transformation while his articles have been featured in \"Best Software Writing\" by Joel Spolsky and \"97 Things Every Software Architect Should Know\". He is an active member of the IEEE Software advisory board.\n\n## My Books\n\nI enjoy writing because putting my thoughts into words forces me to clarify my thinking and allows me to share it with a wide audience.\n\n[Enterprise Integration Patterns](http://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20)\n\nwith Bobby Woolf\nISBN 0321200683\n\n2003, Addison-Wesley\n\n[The Software Architect Elevator](https://www.architectelevator.com/book)\n\n Learn how architects can play a critical role in IT transformation by applying their technical, communication, and organizational skills.\n\n2020, O'Reilly\n\n[Cloud Strategy](https://www.cloudstrategybook.com)\n\n Fill the large gap between high-level goals and product details by understanding decision trade-offs.\n\n2020, KDP\n\n[37 Things One Architect Knows](https://leanpub.com/37things)\n\n2016, Leanpub\n\n## Chapters and Contributions\n\n[Enterprise Solution Patterns using Microsoft .NET](http://amazon.com/o/asin/0735618399/ref=nosim/enterpriseint-20)\n\nDavid Trowbridge, Gregor Hohpe, James Newkirk, David Lavigne\n\n ISBN 0735618399\n\n2003, Microsoft Press\n\n[Integration Patterns](http://amazon.com/o/asin/073561850X/ref=nosim/enterpriseint-20)\n\nDavid Trowbridge, Ulrich Roxburgh, Gregor Hohpe, Dragos Manolescu, E.G. Nadhan \n\n ISBN 073561850X\n\n2004, Microsoft Press\n\n[The Best Software Writing](http://amazon.com/o/asin/1590595009/ref=nosim/enterpriseint-20)\n\nJoel Spolsky\n\n ISBN 1590595009\n\n2005, APress\n\n[97 Things Every Software Architect Should Know](http://amazon.com/o/asin/059652269X/ref=nosim/enterpriseint-20)\n\n Edited by Richard Monson-Haefel\n\n ISBN 059652269X\n\n2009, O'Reilly\n\n[97 Things Every Programmer Should Know](http://amazon.com/o/asin/0596809484/ref=nosim/enterpriseint-20)\n\n Edited by Kevlin Henney\n\n ISBN 0596809484\n \n\n 2009, O'Reilly\n\n[SOA Expertenwissen](http://www.amazon.de/SOA-Expertenwissen-Gernot-Starke/dp/3898644375) (in German)\n\nGernot Starke, Stefan Tilkov (Eds)\n\n ISBN 3898644375\n\n2007, dPunkt Verlag\n\n[Potenziale Entdecken](http://www.amazon.de/Potenziale-entdecken-Inspirationen-Pers%C3%B6nlichkeits--Unternehmensentwicklung/dp/3662488396) (in German)\n\nRalf Schneider, Robert Becker (Eds)\n\n ISBN 3662488396\n\n2015, Springer\n\n## Disclosures & Privacy\n\nThe founders and main committers of almost all open source ESB players are personal friends, so I don't have a favorite one. I generally do not recommend or endorse specific products.\n\nI hold stocks in mutual funds plus many of the popular IT companies, but not nearly enough to believe that my statements have any influence on their stock price or my net worth.\n\nThis site is static and does not collect or store user data. The site uses Google Analytics but is configured to anonymize IP addresses and to not share data with Google.\n\nWhen you purchase books from the site, I earn a referral fee through Amazon's affiliate program. I occasionally receive free review copies from publishers without any obligation to post a positive review.\n\n## This Site\n\nThis site was launched with the book [EIP](/eaipatterns.html) in 2003 and still largely follows the original design. The pages are rendered from XML source via XSLT driven from Ant 1.7 and deployed to Amazon S3 for hosting and distribution via CloudFront. Some pages are HTML 4.0 compliant and mobile friendly, but many are still the way the Web was around 2002. Bless backwards compatibility!\n\n## Projects [[MORE]](http://www.hohpe.com/Gregor/Work/portfolio.html)\n\nThe domain of Enterprise Integration Patterns is much broader than asynchronous messaging. That's why I am trying to collect more Enterprise Integration Patterns, mostly focused on [stateful interactions between systems](/patterns/conversation). But it's slow going...\n\nA long time ago, I created a number of tools to automate tedious EAI development, such as StubGen (a code generator for TIBCO AE) and [TibDoc](http://www.hohpe.com/Gregor/Work/portfolio.html#TibDoc)\n (a documentation generation tool). I have also created a [messaging\n toolkit](downloads.html) that demonstrates the patterns in my book. I am in the process of [open-sourcing](https://code.google.com/p/eipkit/source/browse/#svn%2FFilterComponents) it.\n\n» [More very old Projects](http://www.hohpe.com/Gregor/Work/portfolio.html)\n\n---", "znaku_textu": 6760, "slov": 842, "odkazu": 39, "kodovani": "iso-8859-1", "kodovani_deklarovane": "iso-8859-1", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/gregor.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 06:01:26", "sha256": "74133887b16a13b90cfd20562c7128fe4abe1f597ccb51c4c29d8f0e8ebe2429", "hloubka": 1, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://www.twitter.com/ghohpe", "https://www.linkedin.com/in/ghohpe", "https://code.google.com/p/nfc-smart-tag/", "http://en.wikipedia.org/wiki/Atmel_AVR", "http://www.raspberrypi.org/", "https://www.linkedin.com/today/author/ghohpe", "http://www.computer.org/software", "http://www.hohpe.com/Gregor/Work/interests.html", "http://www.hillside.net/plop/plop2002/proceedings.html", "http://architectelevator.com/", "http://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "https://www.architectelevator.com/book", "https://www.cloudstrategybook.com/", "https://leanpub.com/37things", "http://amazon.com/o/asin/0735618399/ref=nosim/enterpriseint-20", "http://amazon.com/o/asin/073561850X/ref=nosim/enterpriseint-20", "http://amazon.com/o/asin/1590595009/ref=nosim/enterpriseint-20", "http://amazon.com/o/asin/059652269X/ref=nosim/enterpriseint-20", "http://amazon.com/o/asin/0596809484/ref=nosim/enterpriseint-20", "http://www.amazon.de/SOA-Expertenwissen-Gernot-Starke/dp/3898644375", "http://www.amazon.de/Potenziale-entdecken-Inspirationen-Pers%C3%B6nlichkeits--Unternehmensentwicklung/dp/3662488396", "http://www.hohpe.com/Gregor/Work/portfolio.html", "https://code.google.com/p/eipkit/source/browse/"]} {"url": "https://www.enterpriseintegrationpatterns.com/history.html", "titulek": "Revision History - Enterprise Integration Patterns", "h1": "", "popis": "The book is out in the stores now, so I have to take the full pattern content off the site. I will keep the catalog of all patterns, but each pattern will be shortened, essentially to context, problem, solution and the picture. This way we can continue to use the site as a reference for the pattern language without getting into trouble with the publisher.Lots of edits and additions. I added a new introductory chapter with a longer design example (Solving Integration Problems using Patterns). We also have a TIBCO implementation for the Loan Broker example (Asynchronous Implementation with TIBCO ActiveEnterprise) and show how to instrument the MSMQ version of the example (Loan Broker System Management). Plus tons of edits, more examples, more pictures.Lots of activity. Bobby added Request-Reply to the Message Construction section and I added Wire Tap, Detour and Smart Proxy to the System Management section. Also major updates to the Channel Adapter.Major edits over the routing patterns: Message Router. Renamed Routing Table to Routing Slip -- the old named clashed with common usage in the networking world. Also, I added the Dynamic Router.I rewrote the Message History so that the primary motivation is debugging and analyzing the system. Avoiding circular references is a side benefit of the solution.I added the Channel Purger pattern.I added Martin's 'Integration Style' patterns. Still missing pictures, but coming soon... This brings the total to 61 patterns.I keep on finding new patterns. I just added the Messaging Mapper. Accordingly, I renamed the BidHelper class in the Aggregator code sample into BidMapper.I created a new section at the bottom of each pattern page listing all related patterns . The section contains links to all patterns that are mentioned anywhere in the pattern description. If a pattern name displays here without a link it indicates that the pattern has not been developed yet. I wanted to save everybody the 'under construction' pages...I Modified my stylesheet to make the text more readable on Netscape's browser. Sorry for the inconvenience.I added the Message Translator and moved most of the material from the intro into structural transformations into this pattern.The site goes life. I convert my original Word document into XML files and create XSL transformations to render the HTML page.", "klicova_slova": "Revision History,integration, messaging, events, patterns, event-driven, coupling, eai, middleware, application integration, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns", "og:title": "Revision History - Enterprise Integration Patterns", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/history.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/eip1_patterns_wide.png"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "October 2003"}, {"uroven": 2, "text": "July 2003"}, {"uroven": 2, "text": "June 2003"}, {"uroven": 2, "text": "May 2003"}, {"uroven": 2, "text": "Apr 2003"}, {"uroven": 2, "text": "Mar 2003"}, {"uroven": 2, "text": "Feb 2003"}, {"uroven": 2, "text": "Jan 2003"}, {"uroven": 2, "text": "Dec 2002"}, {"uroven": 2, "text": "Oct 2002"}, {"uroven": 2, "text": "Sept 2002"}, {"uroven": 2, "text": "Aug 2002"}, {"uroven": 2, "text": "Integration Pattern Language"}], "markdown": "| | Revision History[Messaging Patterns](index.html) » Appendices | [Contents](toc.html)[⇐ Prev](bib.html) |\n| --- | --- | --- |\n\n## October 2003\n\nThe book is out in the stores now, so I have to take the full pattern content off the site. I will keep the catalog of all patterns, but each pattern will be shortened, essentially to context, problem, solution and the picture. This way we can continue to use the site as a reference for the pattern language without getting into trouble with the publisher.\n\n## July 2003\n\nLots of edits and additions. I added a new introductory chapter with a longer design example ([*Solving Integration Problems using Patterns*](Chapter1.html)). We also have a TIBCO implementation for the Loan Broker example ([*Asynchronous Implementation with TIBCO ActiveEnterprise*](ComposedMessagingTIBCO.html)) and show how to instrument the MSMQ version of the example ([*Loan Broker System Management*](SystemManagementExample.html)). Plus tons of edits, more examples, more pictures.\n\n## June 2003\n\nLots of activity. Bobby added [*Request-Reply*](RequestReply.html) to the Message Construction section and I added [*Wire Tap*](WireTap.html), [*Detour*](Detour.html) and [*Smart Proxy*](SmartProxy.html) to the System Management section. Also major updates to the [*Channel Adapter*](ChannelAdapter.html).\n\nI added the [*Message Broker*](MessageBroker.html) pattern as an architectural pattern for message routing.\n\n## May 2003\n\nMajor edits over the routing patterns: [*Message Router*](MessageRouter.html). Renamed *Routing Table* to [*Routing Slip*](RoutingTable.html) -- the old named clashed with common usage in the networking world. Also, I added the [*Dynamic Router*](DynamicRouter.html).\n\nBobby made a pass over the endpoint patterns and rewrote the introduction into this chapter ([*Introduction to Messaging Endpoints*](MessagingEndpointsIntro.html)).\n\nI am in the process of incorporating feedback into the Message Routing chapter. I added a better comparison between the patterns to the [*Introduction to Message Routing*](MessageRoutingIntro.html). I also renamed the \"Distribution with Aggregate Response\" into [*Composed Message Processor*](DistributionAggregate.html) -- the name was way too long.\n\nI added a MSMQ implementation in C# for the composed messaging example ([*Asynchronous Implementation with MSMQ*](ComposedMessagingMSMQ.html)) It's fairly comprehensive and demonstrates the implementation of a number of patterns in a real application.\n\nBobby added the [*Messaging Bridge*](MessagingBridge.html) and reworked some of the channel patterns.\n\nI added a MSMQ example in C# to the [*Resequencer*](Resequencer.html). Most of the routing and transformation patterns now have real code examples.\n\nI also added the [*Introduction to Composed Messaging Examples*](ComposedMessagingExample.html) to be followed by three comprehensive code examples: Java / Apache AXIS, MSMQ and TIBCO pub-sub.\n\n## Apr 2003\n\nI rewrote the [*Message History*](MessageHistory.html) so that the primary motivation is debugging and analyzing the system. Avoiding circular references is a side benefit of the solution.\n\nI felt that the section on message Transformation could use a few more patterns. I added the [*Normalizer*](Normalizer.html). I also added some more detail to the [*Channel Purger*](ChannelPurger.html). I also made an editing pass over the [*Introduction to System Management*](SystemManagementIntro.html) patterns, including renaming the *EnvelopeWrapper* to [*Envelope Wrapper*](EnvelopeWrapper.html).\n\nI finally finished the [*Process Manager*](ProcessManager.html). Sean Neville contributed a nice section on [*Emerging Standards and Futures in Enterprise Integration*](Future.html).\n\nWe added intro sections to the individual chapters to introduce the patterns and to explain how they relate to each other.\n\nBobby merged the *Messaging Integration* and [*Messaging*](Messaging.html) patterns. We also added additional Web Services references to underline the relevance of these patterns to Web Services solutions.\n\n## Mar 2003\n\nI added the [*Channel Purger*](ChannelPurger.html) pattern.\n\nI added pictures to the Integration Styles patterns. Bobby added a JMS and a .Net example for basic messaging: [*JMS Request/Reply Example*](RequestReplyJmsExample.html) and [*.NET Request/Reply Example*](RequestReplyNetExample.html). Also, we now have pictures in all patterns.\n\nWe rearranged the patterns in the site to make it easier to read them from front to back. Now all the 'root patterns', mostly the first pattern of each chapter are collected in a new section labeled 'Messaging Systems'.\n\nI made a pass through the Transformation Patterns, adding an XSL example to the [*Message Translator*](MessageTranslator.html). I also added a reference to WS-Routing to the [*Routing Slip*](RoutingTable.html) pattern.\n\nI added the [*Idempotent Receiver*](IdempotentReceiver.html). Bobby made a number of edits to the Channel Patterns. I am currently making edits to the transformation patterns. I removed the dandling section on Structural Transformation patterns. I have a number of good ideas in this area, but it simply out of scope for now.\n\n## Feb 2003\n\nI added Martin's 'Integration Style' patterns. Still missing pictures, but coming soon... This brings the total to 61 patterns.\n\nWe integrated Bobby's Channel Patterns, Message Patterns and Endpoint Patterns. We have over 55 patterns now! We will slow down our search for new patterns and focus on adding more pictures, more detail and examples to the patterns we have.\n\n## Jan 2003\n\nI keep on finding new patterns. I just added the [*Messaging Mapper*](MessagingMapper.html). Accordingly, I renamed the BidHelper class in the [*Aggregator*](Aggregator.html) code sample into BidMapper.\n\n## Dec 2002\n\nI created a new section at the bottom of each pattern page listing all related patterns . The section contains links to all patterns that are mentioned anywhere in the pattern description. If a pattern name displays here without a link it indicates that the pattern has not been developed yet. I wanted to save everybody the 'under construction' pages...\n\nI made a complete editing pass over all of the routing patterns. [*Recipient List*](RecipientList.html) received a new icon and was moved up closer to [*Message Filter*](Filter.html) and [*Content-Based Router*](ContentBasedRouter.html). I added a placeholder for the [*Process Manager*](ProcessManager.html) pattern.\n\nI added the [*Resequencer*](Resequencer.html) pattern.\n\nI updated the [*Aggregator*](Aggregator.html) code sample to implement the MessageListener interface. I also added class and sequence diagrams.\n\nMy site was cross-linked from [TheServerSide](http://www.theserverside.com). 770 unique visitors in a day! The site has received over 12000 unique visitors so far.\n\nI think I finally got a handle on the font sizes on the site. They now display consistently on both IE 5.x and NS 4.x and are resizable. I hope this will resolve any readability problems. I guess I really am an enterprise architect and not a Web designer...\n\n## Oct 2002\n\nI Modified my stylesheet to make the text more readable on Netscape's browser. Sorry for the inconvenience.\n\nAdded a JMS example to [*Aggregator*](Aggregator.html).\n\nReversed [*Content Filter*](ContentFilter.html) and [*Claim Check*](StoreInLibrary.html) to improve flow. Rename *Store in Library* to [*Claim Check*](StoreInLibrary.html). Changed icon and expanded description of [*Claim Check*](StoreInLibrary.html).\n\nAdded the [*Message Filter*](Filter.html). Renamed Sequencer to [*Splitter*](Sequencer.html) since the sequence is not relevant. The Sequencer is simply a special case of the [*Splitter*](Sequencer.html). Also, changed the icons for [*Splitter*](Sequencer.html) and [*Aggregator*](Aggregator.html). Renamed *Broadcast with Aggregate Response* to (much shorter) [*Scatter-Gather*](BroadcastAggregate.html).\n\nI added a reference to CSP (Communicating Sequential Processes) to [*Pipes and Filters*](PipesAndFilters.html). Reworded the problem statement.\n\nI added [*Message Router*](MessageRouter.html) as the root to all routing patterns.\n\nI finally incorporated most of the feedback from PLoP 2002. Thanks again to all my reviewers.\n\n## Sept 2002\n\nI added the [*Message Translator*](MessageTranslator.html) and moved most of the material from the intro into structural transformations into this pattern.\n\nI regrouped the patterns and added placeholders for Kyle's and Bobby's patterns.\n\nI presented the paper at the [PLoP 2002 Conference](http://jerry.cs.uiuc.edu/~plop/plop2002/). I got a number of excellent comments that I will incorporate over the next weeks.\n\nStarted working on structural transformation patterns.\n\nI am getting about 100 visits a day. I add a fancier table of contents and a 'Quick Reference'\n\n## Aug 2002\n\nThe site goes life. I convert my original Word document into XML files and create XSL transformations to render the HTML page.\n\n## Integration Pattern Language\n\n[Message Construct.](MessageConstructionIntro.html)\n\n[Message](Message.html)\n\n[Command Message](CommandMessage.html)\n\n[Document Message](DocumentMessage.html)\n\n[Event Message](EventMessage.html)\n\n[Request-Reply](RequestReply.html)\n\n[Return Address](ReturnAddress.html)\n\n[Correlation Identifier](CorrelationIdentifier.html)\n\n[Message Sequence](MessageSequence.html)\n\n[Message Expiration](MessageExpiration.html)\n\n[Format Indicator](FormatIndicator.html)\n\n[Message Routing](MessageRoutingIntro.html)\n\n[Pipes-and-Filters](PipesAndFilters.html)\n\n[Message Router](MessageRouter.html)\n\n[Content-based Router](ContentBasedRouter.html)\n\n[Message Filter](Filter.html)\n\n[Dynamic Router](DynamicRouter.html)\n\n[Recipient List](RecipientList.html)\n\n[Splitter](Sequencer.html)\n\n[Aggregator](Aggregator.html)\n\n[Resequencer](Resequencer.html)\n\n[Composed Msg. Processor](DistributionAggregate.html)\n\n[Scatter-Gather](BroadcastAggregate.html)\n\n[Routing Slip](RoutingTable.html)\n\n[Process Manager](ProcessManager.html)\n\n[Message Broker](MessageBroker.html)\n\n[Message\nTransformation](MessageTransformationIntro.html)\n\n[Message Translator](MessageTranslator.html)\n\n[Envelope Wrapper](EnvelopeWrapper.html)\n\n[Content Enricher](DataEnricher.html)\n\n[Content Filter](ContentFilter.html)\n\n[Claim Check](StoreInLibrary.html)\n\n[Normalizer](Normalizer.html)\n\n[Canonical Data Model](CanonicalDataModel.html)\n\n[Messaging Endpoints](MessagingEndpointsIntro.html)\n\n[Message Endpoint](MessageEndpoint.html)\n\n[Messaging Gateway](MessagingGateway.html)\n\n[Messaging Mapper](MessagingMapper.html)\n\n[Transactional Client](TransactionalClient.html)\n\n[Polling Consumer](PollingConsumer.html)\n\n[Event-driven Consumer](EventDrivenConsumer.html)\n\n[Competing Consumers](CompetingConsumers.html)\n\n[Message Dispatcher](MessageDispatcher.html)\n\n[Selective Consumer](MessageSelector.html)\n\n[Durable Subscriber](DurableSubscription.html)\n\n[Idempotent Receiver](IdempotentReceiver.html)\n\n[Service Activator](MessagingAdapter.html)\n\n[Messaging Channels](MessagingChannelsIntro.html)\n\n[Message Channel](MessageChannel.html)\n\n[Point-to-Point Channel](PointToPointChannel.html)\n\n[Publish-Subscr. Channel](PublishSubscribeChannel.html)\n\n[Datatype Channel](DatatypeChannel.html)\n\n[Invalid Message Channel](InvalidMessageChannel.html)\n\n[Dead Letter Channel](DeadLetterChannel.html)\n\n[Guaranteed Delivery](GuaranteedMessaging.html)\n\n[Channel Adapter](ChannelAdapter.html)\n\n[Messaging Bridge](MessagingBridge.html)\n\n[Message Bus](MessageBus.html)\n\n[Systems Mgmt.](SystemManagementIntro.html)\n\n[Control Bus](ControlBus.html)\n\n[Detour](Detour.html)\n\n[Wire Tap](WireTap.html)\n\n[Message History](MessageHistory.html)\n\n[Message Store](MessageStore.html)\n\n[Smart Proxy](SmartProxy.html)\n\n[Test Message](TestMessage.html)\n\n[Channel Purger](ChannelPurger.html)", "znaku_textu": 11620, "slov": 1454, "odkazu": 109, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/patterns/messaging/history.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 14:51:10", "sha256": "ebd0d6f1b2dfa71fa472031848da7d315ff9ee94bc2be626264675b8017a43eb", "hloubka": 3, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://www.theserverside.com/", "http://jerry.cs.uiuc.edu/~plop/plop2002/", "https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "https://www.architectelevator.com/book", "https://www.cloudstrategybook.com/", "https://www.platformstrategybook.info/"]} {"url": "https://www.enterpriseintegrationpatterns.com/index.html", "titulek": "Home - Enterprise Integration Patterns", "h1": "", "popis": "Enterprise Integration Patterns", "klicova_slova": "eai, soa, esb, service, patterns, enterprise, integration, messaging, middleware, eai patterns, soa patterns, enterprise integration, service bus, rest", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "website", "og:site_name": "Enterprise Integration Patterns", "og:title": "Home - Enterprise Integration Patterns", "og:description": "A comprehensive pattern language for the robust design of asynchronous messaging solutions. The patterns stay product neutral and emphasize design trade-offs over specific technology choices.", "og:url": "https://www.enterpriseintegrationpatterns.com/", "og:image": "https://www.enterpriseintegrationpatterns.com/img/eip1_patterns.png"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Patterns and Best Practices for Asynchronous Messaging"}, {"uroven": 2, "text": "Messaging Patterns in Today's World: Microservices and Serverless"}, {"uroven": 2, "text": "New Book: Platform Strategy"}, {"uroven": 2, "text": "Book: The Software Architect Elevator"}, {"uroven": 2, "text": "Work-in-progress: Conversation Patterns"}, {"uroven": 2, "text": "What Makes Integration Difficult?"}, {"uroven": 2, "text": "Asynchronous Messaging Architectures"}, {"uroven": 2, "text": "How can Patterns Help?"}, {"uroven": 2, "text": "What am I Reading Right Now?"}], "markdown": "## Patterns and Best Practices for Asynchronous Messaging\n\nBuy on\n\nToday's applications rarely live in isolation. Users expect instant access across all functions, which may reside in disparate applications or third-party services. However, building distributed and integrated applications requires developers to tackle asynchrony, partial failures, incompatible data models, API drift, and much more.\n\nThis [pattern language consisting of 65 integration patterns](/patterns/messaging) helps developers design and build distributed applications or integrate existing ones. The patterns provide a technology-independent vocabulary and visual notation harvested from proven solutions to recurring problems. They also share common \"gotchas\" and design considerations. Besides receiving [numerous accolades](/praise.html), the patterns spurred the development of a whole generation of open source Enterprise Service Bus (ESB) implementations, such as Apache Camel, Mule, WSO2, Oracle Service Bus, Open ESB, SonicESB, or Fuse ServiceMix.\n\nBuy the book [Enterprise Integration Patterns](http://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20) or read a [sample chapter](docs/EnterpriseIntegrationPatterns_HohpeWoolf_ch03.pdf) first. Find the most recent content in [my blog](/ramblings) or [articles](/articles.html).\n\n## Messaging Patterns in Today's World: Microservices and Serverless\n\nWhen Bobby Woolf and I started to document the patterns 20 years ago, the key technologies for distributed applications were JMS, SOAP, MSMQ, and .NET WCF. Large-scale application integration was done with integration tools and platforms, such as IBM WebSphere MQ, TIBCO, WebMethods (now Software AG), or Microsoft BizTalk. Although technology has evolved, many of these products still form the backbone of modern enterprises.\n\nCloud platforms and deployment automation have laid the foundation for a new generation of distributed systems: microservices and serverless architectures. Those applications rely on a smooth interconnect between components, giving rise to Service Meshes, Serverless Orchestrators, and Event Buses. Amazingly, we find the same integration patterns in those systems! That's why this site contains [many modern examples for integration patterns](/ramblings/eip1_examples_updated.html):\n\n- [Serverless Loan Broker Implementation with AWS Step Functions](/ramblings/loanbroker_stepfunctions.html)\n- [Serverless Loan Broker Implementation with GCP Workflows](/ramblings/loanbroker_gcp_workflows.html)\n- [Modern Examples and Implementations](/ramblings/eip1_examples_updated.html)\n- [Serverless Integration Patterns on Google Cloud](/ramblings/google_cloud_functions.html)\n\n## New Book: [Platform Strategy](https://PlatformStrategyBook.info)\n\nAlmost every IT strategy these days includes some element of platform strategy. And that's no surprise: platforms appear to be able to rewrite the laws of IT physics. They boost innovation despite (or perhaps due to) standardizing; they speed up developers while assuring compliance; and they reduce cognitive load without restricting choice.\n\nAs one might guess, building such an in-house platform, or even deploying one, is far from easy. Many organizations end up with something that’s outdated by the time it’s launched, restricts rather than enables users, and faces a certain demise when its use is mandated in a last-ditch effort to make the economics work.\n\nHarvested from a decade of building successful in-house platforms and enabling enterprises to utilize cloud platforms, this book provides a fresh look at what makes IT platforms work, why they are different from other IT services, and how you can use them to boost developer productivity. Get a paper copy on [Amazon](https://amzn.to/3WpMVm0) or the ebook from [Leanpub](https://leanpub.com/platformstrategy/c/eip) (Kindle, PDF).\n\n## Book: [The Software Architect Elevator](https://amzn.to/3egsIr5)\n\nModern architects must do more than draw UML diagrams and recite architectural styles. Rather than focus on technical decisions alone, architects and senior technologists need to combine organizational and technical knowledge to help transform their company’s structure and processes. That's why successful architects are those who connect the IT engine room, where the technical reality is defined, to the organization's penthouse, where the business strategy is set.\n\nThis books equips architects and IT leaders with the technical, communication, and organizational skills to be successfully in modern enterprises. Available now on [Amazon](https://amzn.to/3egsIr5')) and anywhere where books are sold.\n\n## Work-in-progress: [Conversation Patterns](/patterns/conversation)\n\nAsynchronous messaging is the foundation for most integration solution because its architectural style acknowledges the challenges of distributed communication, such as latency or partial failure. However, many interactions between systems extend beyond sending a single, stateless message: a request may expect a response; a handshake or authentication are needed first; a reservation is confirmed or expires. Such *conversations*, stateful exchanges between participants, present new design challenges and patterns. I therefore started documenting [Conversation Patterns](/patterns/conversation), which are the starting point for *Enterprise Integration Patterns 2*.\n\n## What Makes Integration Difficult?\n\nArchitecting integration solutions is a complex task. There are many conflicting drivers and even more possible 'right' solutions. Whether the architecture was in fact a good choice usually is not known until many months or even years later, when inevitable changes and additions put the original architecture to test. Unfortunately, there is no \"cookbook\" for enterprise integration solutions. Most integration vendors provide methodologies and best practices, but these instructions tend to be very much geared towards the vendor-provided tool set and often lack treatment of the bigger picture, including underlying guidelines, principles and best practices.\n\n## Asynchronous Messaging Architectures\n\nAsynchronous messaging architectures have proven to be the best strategy for enterprise integration because they allow for a loosely coupled solution that overcomes the limitations of remote communication, such as latency and unreliability. That's why most EAI suites and ESB's are based on asynchronous messaging. Unfortunately, asynchronous messaging is not without pitfalls. Many of the assumptions that hold true when developing single, synchronous applications are no longer valid. Vendor-independent design guidance helps developers avoid these pitfalls so they can build robust integration architectures based on asynchronous messaging.\n\n## How can Patterns Help?\n\nPatterns are a proven way to capture experts' knowledge where no simple “one size fits all” answers exist, for example in application architecture, object-oriented design, or message-oriented integration . Each pattern tackles a specific problem by discussing design considerations and presenting an elegant solution that balances often conflicting forces. The solution is not the first approach that comes to mind, but one that has evolved through actual use over time, capturing the experience that senior developers and architects have gained by repeatedly building solutions and learning from their mistakes.\n\n## What am I Reading Right Now?\n\n[Modern Software Engineering: Doing What Works to Build Better Software Faster](https://amzn.to/3s9VFgL) , Dave Farley, 2021\n\nThe \"father of continuous delivery\" distills the concepts behind modern software delivery, such as modularity, feedback, coupling. A must-read for every modern software engineer.\n\n[Practical Process Automation: Orchestration and Integration in Microservices and Cloud Native Architectures](https://amzn.to/3HlQkcx) , Ruecker, 2021\n\nProcess automation is no longer the domain of large-scale business processes but an integral part of modern application architecture. This books shows you where the two meet.\n\n[System Architecture: Strategy and Product Development for Complex Systems](https://amzn.to/3saiaCj) , Crawley, Cameron, Selva, Addison-Wesley 2015\n\nA tour de force on designing complex systems with a special emphasis on decomposition and logical relationships, augmented by a list of System Architecture Principles. Most examples drawing on non-IT domains helps convey the concepts without getting lost in technology debates and makes it worth the price.", "znaku_textu": 8463, "slov": 1118, "odkazu": 142, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 06:01:19", "sha256": "074c32eb64d9ef79bec751994ec70f45664cf3c53229d4fbd469715bcfff3fe3", "hloubka": 1, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://www.infoq.com/presentations/hohpe-soa-conversations", "http://www.infoq.com/", "http://www.infoq.com/presentations/hohpe-soa-development", "http://www.drdobbs.com/an-asynchronous-world/184415001", "https://sites.google.com/site/gcodejp/slides/ProgrammingCloud_QCon.pdf", "http://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "https://platformstrategybook.info/", "https://amzn.to/3WpMVm0", "https://leanpub.com/platformstrategy/c/eip", "https://amzn.to/3egsIr5", "https://amzn.to/3egsIr5')", "https://amzn.to/3s9VFgL", "https://amzn.to/3HlQkcx", "https://amzn.to/3saiaCj"]} {"url": "https://www.enterpriseintegrationpatterns.com/links.html", "titulek": "Tools & Downloads - Enterprise Integration Patterns", "h1": "", "popis": "", "klicova_slova": "eai, patterns, enterprise, integration, messaging, middleware, eai patterns, enterprise integration, soa, rest", "kanonicka": "", "jazyk": "", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Visio and Omnigraffle Stencil"}, {"uroven": 2, "text": "Articles and Presentations"}, {"uroven": 2, "text": "Sample Chapter"}, {"uroven": 2, "text": "On-line Resources"}, {"uroven": 2, "text": "Simple Messaging Toolkit"}, {"uroven": 2, "text": "Loan Broker MSMQ Example from Chapter 9"}], "markdown": "## Visio and Omnigraffle Stencil\n\nMatthew Oskowis ([contact](mailto:eip@zenworx.com)) \r\n created a Visio stencil that contains 51 integration pattern icons as Visio \r\n shapes. Each shape includes the solution text for the corresponding pattern. \r\n This stencil is invaluable when drawing out solutions based on the notation \r\n defined in the book. The stencil is available in Visio \r\n 2002 and a Visio 5 versions. If soneone if willing to port these to a newer version of visio, \r\n [let me know](/gregor.html).\n\n[EIP Stencil for Visio 2002](/download/EIP_Visio_stencil.zip) (147 KB ZIP)\n [EIP Stencil for Visio 5](/download/EIP_Visio5_stencil.zip) (134 KB ZIP)\n\nGunnar Peterson created a stencil for Omnigraffle. According to the site it has over 18000 downloads!\n\n[EIP Stencil for Omnigraffle](http://www.graffletopia.com/stencils/137) (200 KB)\n\n## Articles and Presentations\n\nYou can download most of my articles from the [Articles](/articles.html) page and many of my presentations from the [Talks](/talks.html) page. You may also want to check out [my blog](/ramblings.html).\n\n## Sample Chapter\n\nPearson has generously made the Introduction, Chapter 2 (\"Integration Styles\") and Chapter 3 (\"Messaging Systems\") of our book available for download. If you like what you see, please consider buying the book.\n\n[Chapter 2: \"Integration Styles\"](http://ptgmedia.pearsoncmg.com/images/9780321200686/samplepages/0321200683.pdf) PDF Download from Pearson Education (1073 KB) \n [Chapter 3: \"Messaging Systems\"](/docs/EnterpriseIntegrationPatterns_HohpeWoolf_ch03.pdf) PDF (614 KB)\n\n## On-line Resources\n\n| [**Workflow Patterns**](http://www.workflowpatterns.com), Wil van der Aalst, Arthur ter Hofstede, Marlon Dumas An extensive collection of workflow patterns from multiple perspectives: control-flow, data, resource, and exception handling. Wil also wrote a [good book on Workflow Management](http://www.amazon.com/exec/obidos/ASIN/0262720469/enterpriseint-20) and one on [Process Mining](http://www.amazon.com/exec/obidos/ASIN/3642193447/enterpriseint-20). [**Service Interaction Patterns**](http://kodu.ut.ee/~dumas/ServiceInteractionPatterns/patterns.html), Alistair Barros, Marlon Dumas, Arthur ter Hofstede A collection of basic interaction patterns. [**Patterns of System Integration with Enterprise Messaging**](http://www.hillside.net/plop/plop2002/final/woolfbrown2.pdf), Bobby Woolf, Kyle Brown Bobby and Kyle's original paper workshopped at PLoP 2002 and subsequently merged with my paper to become the nucleus of [Enterprise Integration Patterns](/eaipatterns.html). [**Stylized Architecture, Design Patterns, and Objects**](http://www-2.cs.cmu.edu/afs/cs/project/compose/ftp/pdf/ObjPatternsArch-ieee97.pdf), Monroe, Kompanek, Melton, Garlan | [**A Note on Distributed Computing**](http://citeseerx.ist.psu.edu/viewdoc/summary?doi=10.1.1.41.7628) Samuel C. Kendall, Jim Waldo, Ann Wollrath and Geoff Wyant, 1994 10 years ago Waldo et al. already reminded us why attempting to make distribution transparent to developers is a bad idea. I wish more Web services architects read this paper. [**UML Profile for Enterprise Application Integration**](http://www.omg.org/spec/EAI/), Object Management Group , 2002 A more formal approach to describing integration solutions, implemented as a UML profile. While it uses some of the same vocabulary as our patterns the focus is on a formal specification language whereas our patterns provide guidance about proper usage and trade-offs. [**Communicating Sequential Processes**](http://doi.acm.org/10.1145/359576.359585), C. A. R. Hoare, Communications of the ACM , 1978 Still one of the best concurrency models, which for example inspired the Go Language. *ACM on-line library access is required to see the full-text version of this article.* |\n| --- | --- |\n\n## Simple Messaging Toolkit\n\nFor my [ACM \r\n Middleware](http://www.eecg.utoronto.ca/middleware2004) and [OOPSLA](http://www.oopsla.org) tutorials I used a messaging toolkit that implements many of the basic patterns in our book. The toolkit allows users to compose solutions from \r\n the basic patterns and observe them in action. I developed the toolkit \r\n in C#, mostly because I am more familiar with the .NET user interface \r\n libraries. The kit is likely not 100% robust yet, but I am looking for \r\n feedback on the usefulness of the concept. The individual components can \r\n be run directly from the DOS command line or from a batch script. These \r\n scripts have a very nice, Domain-specific language feel to them.\n\nThese example implementations are not the patterns, \r\n but only a consistent example pattern implementations. Patterns \r\n comprise intent, forces, context etc. and are generally technology independent. \r\n For this toolkit I chose a specific implementation technology and created \r\n a collection of *examples* of the patterns. Read [[more \r\n on the relationship between the toolkit and the patterns](/ramblings/16_patternscomponents.html)]\n\n**Quickstart**: [download_notes](/download_notes.html)\n\n1) Extract the ZIP file, preserving the folder structure.\n\r\n 2) Make sure your Windows Message Queuing service is active (see reference Sheet for details). \n\r\n 3) Run \"Exercise1a.bat\" from the \"Exercises\" folder.\n\r\n 4) Select values from the drop-down lists in the Customer window and click ' Send Order'.\n\r\n 5) Follow the Tutorial Presentation for more complex examples and exercises.\n\n**Requirements**:\n\nMicrosoft Windows XP or 2003\n\r\n Microsoft .NET Framework 2.0 \n\r\n Microsoft Message Queuing (part of Windows)\n\n[Download ZIP File](/download/MessagingKitInstallWithSolution.zip) (1 MB) • \r\n [Reference Sheet and Installation](/download/EIPTutorialReferenceChart.pdf) (51 KB) • \r\n [Tutorial Presentation](/download/TutorialOverviewAndExercises.pdf) (1.2 MB) • \r\n [Release Notes](/download_notes.html)\n\n## Loan Broker MSMQ Example from Chapter 9\n\nMultiple readers have asked for the complete source for the Loan Broker \r\n example from Chapter 9. While the examples in the book are primarily intended \r\n to illustrate design trade-offs, a running example can be a useful learning tool. \r\n The ZIP file contains the complete Visual Studio solution. \r\n It should also load in newer versions of .Net and Visual Studio.\r\n It is also possible to compile the individual projects from the command line and avoid the need for Visual Studio.\n\n**Requirements** :\n\nMicrosoft Windows XP or 2003\n\r\n Microsoft .NET Framework 1.1\n\r\n Microsoft Visual Studio .NET 2003\n\n[Download ZIP File](/download/ComposedMessagingMSMQ.zip) (48 KB) • \r\n [ReadMe File](/download/ComposedMessagingMSMQReadme.html)", "znaku_textu": 6529, "slov": 834, "odkazu": 57, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/downloads.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 06:55:01", "sha256": "744bd3f21ad2932020bf920c97747b6307973f3fa0f955ca962ab24dfdb4072f", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://www.infoq.com/presentations/hohpe-soa-conversations", "http://www.infoq.com/", "http://www.infoq.com/presentations/hohpe-soa-development", "http://www.drdobbs.com/an-asynchronous-world/184415001", "https://sites.google.com/site/gcodejp/slides/ProgrammingCloud_QCon.pdf", "http://www.graffletopia.com/stencils/137", "http://ptgmedia.pearsoncmg.com/images/9780321200686/samplepages/0321200683.pdf", "http://www.workflowpatterns.com/", "http://www.amazon.com/exec/obidos/ASIN/0262720469/enterpriseint-20", "http://www.amazon.com/exec/obidos/ASIN/3642193447/enterpriseint-20", "http://kodu.ut.ee/~dumas/ServiceInteractionPatterns/patterns.html", "http://www.hillside.net/plop/plop2002/final/woolfbrown2.pdf", "http://www-2.cs.cmu.edu/afs/cs/project/compose/ftp/pdf/ObjPatternsArch-ieee97.pdf", "http://citeseerx.ist.psu.edu/viewdoc/summary?doi=10.1.1.41.7628", "http://www.omg.org/spec/EAI/", "http://doi.acm.org/10.1145/359576.359585", "http://www.eecg.utoronto.ca/middleware2004", "http://www.oopsla.org/"]} {"url": "https://www.enterpriseintegrationpatterns.com/patterns/conversation", "titulek": "Overview - Enterprise Integration Patterns 2", "h1": "", "popis": "Enterprise Integration Patterns", "klicova_slova": "eai, patterns, enterprise, integration, messaging, middleware, eai patterns, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns 2", "og:title": "Overview - Enterprise Integration Patterns 2", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/index.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/eip1_patterns_wide.png"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Conversations between Loosely Coupled Systems"}, {"uroven": 2, "text": "EIP 2: Conversation Patterns"}, {"uroven": 2, "text": "A Comparison: Subscriptions"}, {"uroven": 2, "text": "The Pattern Language"}, {"uroven": 2, "text": "Real Life Conversations"}], "markdown": "| | Overview[Conversation Patterns](index.html) » Introduction | [Contents](toc.html)[Next ⇒](Preface.html) |\n| --- | --- | --- |\n\n## Conversations between Loosely Coupled Systems\n\n*Work in progress. Last update: Jan 2017*\n\nAsynchronous [*Messaging*](/patterns/messaging/Messaging.html) is a great way for distributed systems to communicate while maintaining loose coupling. Sending a single message isn't always enough for a meaningful exchange, though: a request expects a response; a certificate exchange may be needed for initial authentication; an order message is supposed to lead to a payment message, and if something goes wrong, additional messages may be needed to handle or correct errors. In these situations, participants engage in *Conversations*, an exchange of related messages. Examples of conversations occur at many levels: traditional web services are orchestrated into larger services, REST services provide referrals or use HATEOAS to trigger subsequent interactions, low-level networking protocols discover services. Conversations also occur in real world: coworkers schedule a suitable meeting time by exchanging their availability, vendors issue offers to be followed by orders, shipments, and payments.\n\nDesigning robust conversations is no simple task, though: lost messages, participants' state getting out of sync, timeouts, and lots of other annoying stuff can happen in distributed systems that communicate over unreliable networks. Developers may have a 1000-page TCP/IP tome on the shelf, but are quietly happy that someone else already figured this out for them. Conversations quickly sneak up on developers, though, even when things start out pretty simple: a basic [*Asynchronous Request-Response*](RequestResponse.html) interaction may foresee re-sending the request if no response is received within a specific time window. Doing so may result in a duplicate response being received if the original response was simply delayed, forcing the requestor to detect and ignore duplicate responses. The requestor likely also shouldn't send indefinite retry messages as this may overburden the system. Quickly the simple sending of a message turned up a number of considerations that govern how multiple messages can be exchanged: we need to decide the rules of the conversation.\n\n## EIP 2: Conversation Patterns\n\n[Conversation Patterns](toc.html) assist developers in designing robust interchanges between loosely coupled components just like [Messaging Patterns](/patterns/messaging) did for stateless message exchanges. Just as before, each design pattern represents a \"mind-sized\" chunk of information that not only describes a concrete solution but also elaborates the trade-offs and forces that motivate it. Building on the idea of the pattern icons, informal sketches capture the essence of the conversation while real-life examples provide a precise protocol specification.\n\n*Comparing conversation and messaging patterns*\n\nConversation Patterns highlight that [Enterprise Integration Patterns](/) consist of more than just messaging patterns: Conversation Patterns are set to become Volume 2 of the \"Enterprise Integration Patterns\" book series. Each pattern language's base vocabulary allows tackling different kinds of design problems. Whereas messaging patterns follow the flow of a message through a series of components, conversation patterns take the complementary viewpoint by following the stateful exchange of messages between components over time. The introduction of conversation state in EIP Vol. 2 allows the discussion new topics like error handling or resource management, something that the messaging patterns in EIP Vol. 1 weren't able to do.\n\n## A Comparison: Subscriptions\n\nA simple example highlights the complementary viewpoint that messaging and conversation patterns take.\n\n*Comparing conversation and messaging patterns*\n\nA [*Publish-Subscribe Channel*](/patterns/messaging/PublishSubscribeChannel.html), shown on the left, is a basic messaging pattern that describes how messages are routed to a set of subscribers. The pattern considers a single message to be distributed across multiple subscribers, discussing how each subscriber receiving its own copy of the message makes adding new subscribers side-effect free. A related, but distinct conversation pattern, takes the opposite viewpoint: it looks at how a single subscriber receives notification messages over time, tacitly assuming that multiple subscribers can do so at the same time. Discussing the flow of messages over time raises important questions, such as how long the flow of messages should continue, which in turn leads to patterns like [*Lease*](Lease.html) expiration.\n\n## The Pattern Language\n\nA pattern language structures a collection of patterns and guides the developer towards a meaningful solution (see [[POSA5](http://www.amazon.com/exec/obidos/ASIN/0471486485/enterpriseint-20)]). The Conversation Patterns language distinguishes *foundational* patterns that deal with technical aspects, such as finding a conversation partner, from *application-level* patterns that serve higher-level goals, such as managing resources or negotiating agreements. Both groups of patterns rely on a common vocabulary to [describe and compose conversations](DescribingIntro.html).\n\nThe *foundational* patterns roughly follow the life cycle of setting up a conversation:\n\n- [*Discovery*](DiscoveryIntro.html) : Before services can interact, they have to identify one or more conversation partners.\n- [*Starting a Conversation*](EstablishingIntro.html) : Once the conversation partners are known, a conversation has to be established, including authentication, handshaking, and negotiating conversation parameters.\n- [*Basic Conversations*](BasicIntro.html) take place between two participants and a small number of message types. They establish a core vocabulary for the description of more complex conversations.\n- [*Intermediaries*](MultiIntro.html) are simple conversations that have messages flow through a third party.\n\nBased on these foundational conversation patterns, we can tackle common distributed system problems at the *application level*, organized by type of consideration:\n\n- [*Resource Management*](ResourceIntro.html) : Acquiring resources from a service represents a form of coupling: if the requestor disappears unexpectedly, the resource provider continues to hold unneeded resources. Resource management patterns deal with resource allocation and deallocation in loosely coupled systems.\n- [*Ensuring Consistency*](EnsuringConsistencyIntro.html) : Things don't always go according to plan in distributed systems where messages can be duplicated and lost, or conversation partners may disappear altogether. These patterns deal with error conditions and help participants reach a consistent state.\n- *Reaching Agreement* : Most business situations depend on multiple independent parties reaching an agreement through offers, counter-offers, negotiations and deals.\n\nAll patterns are listed in the [Table of Contents](toc.html).\n\n## Real Life Conversations\n\nConversations between components often resemble conversations in real life. That's the case because real life is inherently unreliable and asynchronous. Humans have therefore learned to interact by exchanging asynchronous messages, such as leaving a voice mail, mailing a letter, or sending an email. A series of such messages forms a conversation, which serves an overarching purpose, such as negotiating a deal or determining a place for dinner. Real-life conversations can span hours, days, or even months, and have to deal with many of the same issues as distributed systems do, including duplicate messages (\"I really need that TPS report\"), messages crossing in transit (\"Ignore this notice if you've already sent your payment\"), and coordinating multiple independent resources (\"You got the money? You got the goods?\"). Therefore, one can learn a good bit about distributed system design from real life.", "znaku_textu": 7937, "slov": 1103, "odkazu": 61, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/patterns/conversation", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 06:03:24", "sha256": "ec849c66cb5965f82d6c897f87412323518a2b690cf834672a62567105025e68", "hloubka": 1, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://www.amazon.com/exec/obidos/ASIN/0471486485/enterpriseint-20"]} {"url": "https://www.enterpriseintegrationpatterns.com/patterns/conversation/AcquireToken.html", "titulek": "Acquire Token First - Enterprise Integration Patterns 2", "h1": "", "popis": "Enterprise Integration Patterns", "klicova_slova": "eai, patterns, enterprise, integration, messaging, middleware, eai patterns, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns 2", "og:title": "Acquire Token First - Enterprise Integration Patterns 2", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/AcquireToken.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/eip1_patterns_wide.png"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Example: Amazon Web Services"}], "markdown": "| | Acquire Token First[Conversation Patterns](index.html) » [Starting a Conversation](EstablishingIntro.html) | [Contents](toc.html)[⇐ Prev](ThreeWayHandShake.html)[Next ⇒](RotateTokens.html) |\n| --- | --- | --- |\n\nDeveloper Key, Brokered Authentication [21]\n\nA participant has identified a provider and is about to initiate a conversation.\n\nHow can a provider ascertain the identity of a requestor?\n\nMany providers like to track usage of their service or limit access.Providers may throttle the number of requests they allow from an individual participant within a given time frame. Therefore, they need to reliably distinguish conversation partners.A provider wants to minimize the effort involved in authenticating participants.When sending messages over some bidirectional channels (e.g. TCP), the originator can relatively easily fake its address, because the provider will never use that address to connect to the consumer. Therefore, a client's claimed address may not be a reliable form of identification.\n\nrequire participants to first acquire an identification token from a token provider and include it in subsequent messages to the provider.\n\nThe *Acquire Token First* conversation involves the following participants:\n\n- The *Initiator* sends a *Token Request* to the *Token Provider* to obtain a *Token* . Subsequently, it includes the token in *Request* messages to the *Provider* .\n- The *Token Provider* generates unique tokens upon request from *Initiator* s and returns them to the *Initiator* . It can also validate tokens received by the *Provider* .\n- The *Provider* accepts *Request* messages that include a token. The *Provider* may validate the token directly or by asking the *Token Provider* .\n\nRequesting a token from the *Token Provider* may happen over a separate channel from the *Request*. For example, public Web services available over HTTP may require an e-mail request to generate a developer token and associate it with a user. *Token Request* messages may need to include additional information, for example the participant's e-mail address for the *Token Provider* to issue the token. The *Token Provider* may require additional steps such as [*Verify Identity*](VerifyIdentity.html).\n\nFixed tokens per client can be easy to forge or steal. They are therefore not suitable for authorizing sensitive operations. The length of the token determines how difficult it is to generate a fake token, i.e. one not produced by the *Token Provider* but accepted by the *Provider*.\n\nTokens do not always have to be secure or difficult to forge. For example, services use it simply to track and limit usage without tying authorization to the token. If tokens are easy to obtain, some initiators may game the system by using [*Rotate Tokens*](RotateTokens.html)\" to increase the number of requests they can make.\n\nTokens used for quota enforcement can become a challenge when building a composite service. A successful public service that is accessed by many users may quickly exhaust its usage quota if it access a back-end service with a fixed token. [*Rotate Tokens*](RotateTokens.html) can stretch the limit to a certain degree but is not a scalable approach. Alternatively, the public service can require its clients to pass in a valid token, which it propagates to the back-end service, for example using [*User Grants Access*](UserGrantsAccess.html). This is not only inconvenient for the clients, as an additional step is required before the service can be used, but can also break encapsulation as the client should have no knowledge of the back-end services the composite service uses. Lastly, some providers stop issuing tokens, so that it is impossible for the client to supply its own token (for example, Google stopped issuing tokens for its SOAP Search Service).\n\nSome tokens can be verified without the *Provider* having to contact the *Token Provider* for each token submitted, for example, if the *Token Provider* and the *Provider* share a public/private key combination. In this case, the *Token Provider* can sign tokens with a private key and the *Provider* can validate the signature with the *Token Provider*'s public key.\n\nKnown Partners [20] describes a robust version of this approach that can be used for services that require mutual trust. More detailed implementation guidance can be found in [21], which describes Brokered Authentication using X.509, Kerberos, and a Security Token Service.\n\n## Example: Amazon Web Services\n\nBefore you can make a request to Amazon's e-Commerce Web services you need to create an account and obtain a developer token, which has to be passed with all service requests.\n\n**Related patterns:**[*Rotate Tokens*](RotateTokens.html), [*User Grants Access*](UserGrantsAccess.html), [*Verify Identity*](VerifyIdentity.html)\n\n---", "znaku_textu": 4702, "slov": 731, "odkazu": 57, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 14:53:44", "sha256": "6b4f400abd63ca7ee3008b79920b38bcbf0f22d2a43354d342923f7f9e494821", "hloubka": 3, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://creativecommons.org/licenses/by/4.0/"]} {"url": "https://www.enterpriseintegrationpatterns.com/patterns/conversation/Aggregator.html", "titulek": "Scatter-Gather - Enterprise Integration Patterns 2", "h1": "", "popis": "Enterprise Integration Patterns", "klicova_slova": "eai, patterns, enterprise, integration, messaging, middleware, eai patterns, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns 2", "og:title": "Scatter-Gather - Enterprise Integration Patterns 2", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/Aggregator.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/ScatterGatherConversation.png"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Example: Check24"}], "markdown": "| | Scatter-Gather[Conversation Patterns](index.html) » [Intermediaries](MultiIntro.html) | [Contents](toc.html)[⇐ Prev](LoadBalancer.html)[Next ⇒](ManagementIntro.html) |\n| --- | --- | --- |\n\nA participant requires a responses from a number of participants.\n\nHow can a participant solicit responses from a number of participants without connecting to all of them?\n\nA participant may want responses from multiple partners, for example top select the best offer.A participant may not be aware of all partners who can respond to its request.Sending requests to each partner can introduce complexity and overhead.\n\nA *Scatter-Gather* propagates a request to multiple providers and aggregates the responses.\n\nThe *Scatter-Gather* conversation involves the following participants:\n\n- The *Requestor* initiates the conversation by sending a *Request* message to the *Provider*\n- The *Scatter-Gather* waits for incoming requests, which it relays to a (known or unknown) number of *Providers* . It also processes *Response* messages from *Provider* s.\n- The *Provider* s wait for incoming *Request* messages and respond with *Response* messages.\n\n*Scatter-Gather* is the conversational view of the asynchronous [*Scatter-Gather*](/patterns/messaging/BroadcastAggregate.html). Instead of using an asynchronous flow of messages, it engages with both the *Requestor* and the *Providers* in a [*Asynchronous Request-Response*](RequestResponse.html) conversation. A stateful *Scatter-Gather* can simplify the role of the [*Aggregator*](/patterns/messaging/Aggregator.html) in [*Scatter-Gather*](/patterns/messaging/BroadcastAggregate.html).\n\nMost *Scatter-Gather* do not make requests to the *Provider*s sequentially, but concurrently.\n\nInternet commerce commonly uses *Scatter-Gather* in form of so-called \"aggregators\" when purchasing products or services. Unfortunately the name collides with the [*Aggregator*](/patterns/messaging/Aggregator.html) pattern, which is only a portion of the solution. These \"aggregators\" are a powerful economic force because they typically have a high search page rank, which gives them more search traffic than the actual providers. For example, Internet searches for \"insurance\" will likely have an insurance aggregator as the top listing. Such business provide a benefit to the consumer (the *Requestor* in our vocabulary) as it selects the best deals or orders all offers by price. *Provider*s are commoditized in this process, meaning the *Requestor* does not distinguish the selection by the brand of the *Provider* or the product details, but only selects by price. This puts *Provider*s under economic pressure and often increases the power of the *Scatter-Gather*, which often translates into higher commissions being paid from the *Provider* to the *Scatter-Gather*.\n\nThe *Requestor* has to trust the *Scatter-Gather* to ask the \"right\" *Providers* and to select the \"best\" result neutrally and in the best interest of the *Requestor*.\n\n## Example: Check24\n\nCheck24 is a popular German Internet portal that aggregates offers for many products and services, including insurance, banking, utilities, mobile phones, and travel.\n\n**Related patterns:**[*Aggregator*](/patterns/messaging/Aggregator.html), [*Scatter-Gather*](/patterns/messaging/BroadcastAggregate.html), [*Asynchronous Request-Response*](RequestResponse.html)\n\n---", "znaku_textu": 3253, "slov": 450, "odkazu": 59, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 14:54:12", "sha256": "6c4b385e6e1b3bd385ebac9390b987095694376c21f74e24d2d2c96632da851f", "hloubka": 3, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://creativecommons.org/licenses/by/4.0/"]} {"url": "https://www.enterpriseintegrationpatterns.com/patterns/conversation/BasicIntro.html", "titulek": "Introduction to Basic Conversations - Enterprise Integration Patterns 2", "h1": "", "popis": "Enterprise Integration Patterns", "klicova_slova": "eai, patterns, enterprise, integration, messaging, middleware, eai patterns, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns 2", "og:title": "Introduction to Basic Conversations - Enterprise Integration Patterns 2", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/BasicIntro.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/eip1_patterns_wide.png"}, "jsonld": [], "drobecky": [], "osnova": [], "markdown": "| | Introduction to Basic Conversations[Conversation Patterns](index.html) » [Basic Conversations](BasicIntro.html) | [Contents](toc.html)[⇐ Prev](UserGrantsAccess.html)[Next ⇒](FireAndForget.html) |\n| --- | --- | --- |\n\nOnce two or more parties have detected their respective conversation partners and negotiated a connection, they can begin the \"real\" conversation. Frequently, the initial steps of setting up a conversation are handled by the infrastructure or a lower-level protocol, so that this part of the conversation is sometimes called the *application-level conversation* in contrast to the *infrastructure-level conversation*, which deals with the aspects of the conversation that are needed, but do not support the conversation partners in exchanging application-level information.\n\nBasic conversations consist of two conversation partners, the service consumer and the service provider. They engage in a variety of conversation patterns, which differ in the following design aspects:\n\n- *Unidirectional vs. bidirectional* . Some conversations need to transmit information only in one direction, while others need to transmit information back and forth between the conversation partners.\n- *Asynchronous Messages* . Even in bidirectional information exchanges, a conversation partner may not expect to receive unsolicited asynchronous messages, but receives messages only as responses to requests it makes, i.e. synchronously.\n- *Single or Multi-Message* . In the extreme case, a conversation consists only of a single message, while most conversation consist two or any number of messages.\n- *Explicit vs. Implicit Termination* . Some conversations have a natural ending point. For example Request-Response always ends after the response message. Other conversations, such as Subscribe-Notify, keep on exchanging messages until the conversation is explicitly terminated.\n- *Error Conditions* . Simple conversations differ in the way they deal with error conditions. For example, they may retry actions or simply ignore errors.\n\n| **Pattern** | **Direction** | **Asynchronous** | **Multi-Message** | **Termination** | **Error Handling** |\n| --- | --- | --- | --- | --- | --- |\n| **[*Fire-and-Forget*](FireAndForget.html)** | unidirectional | provider | single | implicit | none |\n| **[*Asynchronous Request-Response*](RequestResponse.html)** | bidirectional | provider | two | implicit | none |\n| **[*Request-Response with Retry*](RequestResponseRetry.html)** | bidirectional | provider | multiple | implicit | retry |\n| **[*Polling*](Polling.html)** | bidirectional | provider | multiple | implicit | none |\n| **[*Subscribe-Notify*](SubscribeNotify.html)** | bidirectional | consumer & provider | multiple | explicit | none |\n| **[*Quick Acknowledgment*](QuickAck.html)** | bidirectional | provider | three | implicit | none |\n\nThe conversation patterns in this chapter can stand on their own, but are also frequently combined into larger conversations. As such they form an important vocabulary to more easily describe complex conversations.", "znaku_textu": 2840, "slov": 371, "odkazu": 56, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 14:53:57", "sha256": "52bc79142f7a2a0c633eccd132bb810763cab0e8da3df989e2758e2b4a74acf9", "hloubka": 3, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": []} {"url": "https://www.enterpriseintegrationpatterns.com/patterns/conversation/Choreography.html", "titulek": "Choreography - Enterprise Integration Patterns 2", "h1": "", "popis": "Enterprise Integration Patterns", "klicova_slova": "eai, patterns, enterprise, integration, messaging, middleware, eai patterns, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns 2", "og:title": "Choreography - Enterprise Integration Patterns 2", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/Choreography.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/conversation_observer.gif"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Example: BPMN 2.0"}, {"uroven": 2, "text": "Example: WS-CDL"}], "markdown": "| | Choreography[Conversation Patterns](index.html) » [Describing Conversations](DescribingIntro.html) | [Contents](toc.html)[⇐ Prev](DescribingIntro.html)[Next ⇒](Orchestration.html) |\n| --- | --- | --- |\n\nMultiple participants are engaging in a conversation.\n\nHow can a conversation policy be described?\n\nWhile some conversations foresee a clear \"master\"\", e.g. the service provider in a simple two-party conversation, other conversations, such as leader election, are by definition symmetric across multiple participants.\n\nA conversation is really about what happens between the participants. Hence a neutral view of all messages exchanged between all participants is natural.\n\nDefine the flow of messages between participants from the point of view of a third-party observer.\n\nA choreography is not an executable element, but a specification that can be used to generate participant interfaces or to validate existing message flows, assuming all messages pass through a central observer. In widely distributed or high-throughput systems this may not be possible or practical.\n\nA choreography can be described as an abstract process or as a set of constraints.\n\n## Example: BPMN 2.0\n\n## Example: WS-CDL\n\nThe Choreography Description Language (WS-CDL) specification describes the language as \"aimed at being able to precisely describe collaborations between any type of participant regardless of the supporting platform or programming model\" [http://www.w3.org/TR/ws-cdl-10/] WS-CDL defines which participant can send what type of message to which other participant in what order. The message ordering constraints are expressed through the elements *sequence*, *parallel*, and *choice*, similar to a process description. For example, a sequence element can prescribe that a request message has to be sent by the consumer before a response message can be sent by the service provider. Likewise, the parallel element expresses that two or more messages can be sent in any order.\n\nBecause WS-CDL describes a conversation from a neutral observer’s viewpoint the choreography is only a specification, not an executable language. Tools can, however, project this specification to generate endpoint processes (e.g. Java code or a BPEL process template) that fulfill the constraints set forth by the choreography.\n\nWS-CDL is implemented by very few tools and has gained minimal market acceptance. One of the issues may have been that it was defined without a reference implementation or significant vendor support. The Savara open source project (http://savara.jboss.org/) was based on WS-CDL originally, but has since turned into a generic architecture testing and validation tool.\n\n*Ultimately, it may be that the WS-CDL standardization effort came too early in the evolution of SOAs. Indeed, WS-CDL has attempted at the same time to be groundbreaking and to create a consensus. In this respect, it is insightful to compare the development of WS-CDL with that of BPEL. BPEL stemmed from two sources, WSFL and XLang, which derived themselves from languages supported by existing tools (namely MQSeries Workflow and BizTalk). Furthermore, together with the first draft of BPEL, a prototype implementation was released. In contrast, WS-CDL has been developed without any prior implementation and does not derive (directly) from any language supported by an implementation.* (http://www.bptrends.com/publicationfiles/03-05%20WP%20WS-CDL%20Barros%20et%20al.pdf)\n\n---", "znaku_textu": 3406, "slov": 496, "odkazu": 57, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 14:52:23", "sha256": "9a5401f41e112b719ae2213ff1c9e12b609bdc99cc0e06a92cfc1cee52d3b60c", "hloubka": 3, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://creativecommons.org/licenses/by/4.0/"]} {"url": "https://www.enterpriseintegrationpatterns.com/patterns/conversation/CompensatingAction.html", "titulek": "Compensating Action - Enterprise Integration Patterns 2", "h1": "", "popis": "Enterprise Integration Patterns", "klicova_slova": "eai, patterns, enterprise, integration, messaging, middleware, eai patterns, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns 2", "og:title": "Compensating Action - Enterprise Integration Patterns 2", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/CompensatingAction.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/CompensatingAction.png"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Example: Travel Booking"}, {"uroven": 2, "text": "Example: Coffee Shop"}], "markdown": "| | Compensating Action[Conversation Patterns](index.html) » [Ensuring Consistency](EnsuringConsistencyIntro.html) | [Contents](toc.html)[⇐ Prev](IgnoreError.html)[Next ⇒](TryConfirmCancel.html) |\n| --- | --- | --- |\n\nA participant is interacting with multiple, independent services, which change their state based on the interaction. Some of the interactions may fail.\n\nHow can a requestor ensure a consistent outcome across multiple, independent providers?\n\nThe communication channels used by loosely coupled, distributed systems usually do not provide transactional semantics at the transport level. Instead, participants can send and receive message, often reliably. Sending messages to multiple services does not provide transactional guarantees: one interaction may succeed while the next interaction may fail, leaving the overall system in an inconsistent state.A participant can interact with multiple services sequentially or in parallel. Sequential execution has the advantage that after an error all subsequent interactions can be stopped. However, sequential execution often unnecessarily increases latency when services are independent and can execute in parallel.Some operations are inherently reversible, e.g. adding money to an account can be \"undone\" by taking money off the account, at least if the account owner has not withdrawn the money in between.\n\nThe requestor performs operations optimistically. Should an operation fail, it instructs the provider(s) to undo already completed operations.\n\nThe *Compensating Action* conversation involves the following participants:\n\n- The *Requestor* executes multiple interactions on one or more service providers. These interactions are part of an overall conversation but consist of multiple, independent messages.\n- The *Providers* receive interactions from the *Requestor* and execute the associated actions. They can also receive *undo* messages to reverse prior actions.\n\nConversations using *Compensating Action* are *optimistic* because they optimize the \"happy path\", i.e. the flow without errors. This approach is useful if errors are rare or can be easily undone.\n\nNot all actions can be easily compensated, e.g. a letter that is in the mailbox will be delivered. However, because real life does not provide ACID-style transactions either, business have had to come up with creative ways to compensate for a variety of actions. For example, a mailed letter to a customer can be compensated by a phone call asking the customer to ignore the letter. Similarly, many actions can be \"undone\" in creative ways: a customer can be asked to return a package sent in error, an overcharge can be offset with a store credit. A *Compensating Action* does not always leave the system in exactly the same state as before. For example, reversing a banking transaction leaves a trail of two money transfers, one in error and one to compensate for it. However, they leave the critical resource, the account balance, in the same state as before. In a business context, \"compensation\" is therefore often defined by the business and not a mathematical equation.\n\nMany applications of *Compensating Action* span across multiple service providers (see diagram). In this case, *Compensating Action*s have to be sent to the provider corresponding to the original action.\n\n*Compensating Action*s can fail. For example, reversing a credit to an account can fail if the account owner withdrew the funds in between. A bank will try to deal with this via collections or moving the account into minus. In the end, though banks do have to write off money due to failed *Compensating Action*s: using a *Compensating Action* does not guarantee 100% consistency.\n\nIf no *Compensating Action* is available for a service, the service consumer should apply PERFORM HARDEST TO REVERT ACTION LAST to minimize the chances that this action has to be reverted.\n\n*Compensating Action* is not only applied in case of failure, but also if the *Consumer* receives an undesirable result from one of the service providers. For example, the price for a subsequent action may be too high, causing the consumer to abort the interaction and to undo all actions performed so far.\n\nIf an action allocates resources on part of the service provider, *Compensating Action* may lead a provider to allocate resources that are no longer available for other interactions, just to see them compensated later on. Therefore, having a provider use pessimistic resource allocation in an \"optimistic\" conversation puts the provider at a disadvantage. In real-life, providers typically compensate for this disadvantage by \"over-committing\" resources, i.e. allowing more resources to be committed than actually exist. The provider bets on receiving enough compensating actions to end up as close to 100% utilization as possible. Providers may also charge for the execution of a *Compensating Action*, e.g. airlines typically charge a fee for cancellations.\n\nIf multiple operations are performed in sequence on the same resource, the *Compensating Action* have to be performed in reverse order. This approach is referred to as \"Saga\", a term originating from the database world [[Sagas](http://www.cs.cornell.edu/andru/cs711/2002fa/reading/sagas.pdf)] that is commonly applied to distributed systems. http://vasters.com/clemensv/2012/09/01/Sagas.aspx\n\nNot always are activities performed sequentially. To make matters worse, failure may not be detected immediately after the relevant action. For example, an action may prepare a document and complete successfully, but the document may contain a mistake, such as an incorrect price in an offer letter. Leymann et al therefore extend the concept of Sagas into more general *Compensation Spheres* [[Leymann](http://www.amazon.com/exec/obidos/ASIN/0130217530/enterpriseint-20)]. Such spheres can contain any combination of activities, not just sequential ones, and can be compensated even after all activities in the sphere are completed.\n\n## Example: Travel Booking\n\nA traveler who needs to book a trip typically interacts with an independent flight, hotel, and rental car portal. If the traveler already booked a hotel, but is unable to make a matching flight reservation, the customer will as the hotel to \"compensate\" the booking by canceling it. Hotels and airlines account for the probability of canceled reservations by over-provisioning, i.e. allowing the number of room or seat reservations to exceed the number of available rooms or seats. If fewer than the expected cancellations come in, hotels offer replacements and airlines offer compensation for passengers willing to give up their seat. Hotels and airlines also routinely provide incentives such as lower prices for non-cancellable reservations as it relieves them from the cost of over or under-provisioning.\n\n## Example: Coffee Shop\n\nA modern coffee shop typically asks the customer to pay before the beverage is actually prepared. If the preparation of the beverage fails, they fill perform a *Compensating Action* by refunding the customer the paid amount.\n\n---", "znaku_textu": 6990, "slov": 1038, "odkazu": 59, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 14:54:21", "sha256": "17d30a5b4f410f8fef057a32d1869a83e26dbcb4b3b1c65ffe40a0fd4e4c9499", "hloubka": 3, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://www.cs.cornell.edu/andru/cs711/2002fa/reading/sagas.pdf", "http://www.amazon.com/exec/obidos/ASIN/0130217530/enterpriseint-20", "http://creativecommons.org/licenses/by/4.0/"]} {"url": "https://www.enterpriseintegrationpatterns.com/patterns/conversation/ConsultDirectory.html", "titulek": "Consult Directory - Enterprise Integration Patterns 2", "h1": "", "popis": "Enterprise Integration Patterns", "klicova_slova": "eai, patterns, enterprise, integration, messaging, middleware, eai patterns, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns 2", "og:title": "Consult Directory - Enterprise Integration Patterns 2", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/ConsultDirectory.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/ConsultDirectory.png"}, "jsonld": [], "drobecky": [], "osnova": [], "markdown": "| | Consult Directory[Conversation Patterns](index.html) » [Discovery](DiscoveryIntro.html) | [Contents](toc.html)[⇐ Prev](ParticipantsAdvertise.html)[Next ⇒](Referral.html) |\n| --- | --- | --- |\n\nA participant wants to initiate a conversation.\n\nHow can a conversation initiator find a partner across a large network without flooding the network with requests?\n\nThe late binding between participants lowers the location coupling between them. However, it also puts the discovery on the critical path to establishing a conversation.Many networks do not route broadcast packets beyond the local network. This makes it difficult or impossible for an initiator using [*Dynamic Discovery*](DynamicDiscovery.html) to discover participants that are not nearby.Broadcast or multicast queries do not scale to large networks as the network may become flooded with discovery requests.Centralized administration may be involved in setting up a new service, e.g. to assure service quality. Therefore, new participants should not be allowed to introduce themselves to the network.\n\nThe initiator consults a directory, which refers it to one or more appropriate participants. Available participants register with the directory upfront.\n\nThe *Consult Directory* conversation involves the following participants:\n\n- The *Initiator* initiates the conversation by sending a *Lookup* message to the *Directory* .\n- The *Directory* receives *Register* messages from available *Providers* . When it receives a *Lookup* messages from the *Initiator* it responds with a reference to one or more *Provider* .\n- The *Provider* registers itself with the *Directory* .\n\nIn order to select an appropriate conversation partner, the directory has to provide a language for the initiator to express what type of partner it desires. Common strategies include:\n\n- *Unique Identifiers* : Each type of service or conversation partner may be assigned a globally unique identifier. An initiator specifies this identifier to locate a partner of the desired type. This approach typically requires manual registration of participant types in some sort of global catalog.\n- *Interface Definition* : An initiator may look for a service that conforms to a specific type interface. The interace may be specified by the type, which is similar to using a unique identifier.\n- *Attributes* : Participants may represent their capabilities through sets of attributes selected from a global set.\n- *Keyword match>* : Directories may not impose a structure at all, but allow the initiator to express its needs in plain text. The directory uses search heuristics to supply the initiator with services candidates.\n\nA service directory is only useful if it keeps up-to-date with which available conversation partners. Most directories use *Services Register in Directory* or *Directory Finds Services* strategies [[PLoPD5](http://www.amazon.com/exec/obidos/ASIN/0321321944/enterpriseint-20)] to maintain a relevant list of participants. Alternatively, new participants can be entered by hand. The more frequently services appear or disappear, the more difficult it is for the directory to stay in sync with the real state of the network, favoring a [*Dynamic Discovery*](DynamicDiscovery.html) approach.\n\nIn order to use *Consult Directory*, an initiator must know how to contact the directory. This can be achieved through [*Dynamic Discovery*](DynamicDiscovery.html) or [*Advertise Availability*](ParticipantsAdvertise.html) as the number of directories tends to be small and fairly stable.\n\nBecause queries to the directory may be expensive, conversation initiators frequently cache results of previous inquiries. This approach reduces traffic on the directory but increases the likelihood that the initiator operates with out-of-date information. This approach is most viable in networks where service discovery is frequent, but services join or depart infrequently. A connection error on initial connect to the conversation partner helps identify outdated cached information.\n\n**Related patterns:**[*Dynamic Discovery*](DynamicDiscovery.html), [*Advertise Availability*](ParticipantsAdvertise.html)\n\n---", "znaku_textu": 4064, "slov": 572, "odkazu": 58, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/patterns/conversation/ConsultDirectory.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 06:55:29", "sha256": "c2a39d153383da84f9c48be7d285378a6e13abcab15aaab14b19ac7b02e2372f", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://www.amazon.com/exec/obidos/ASIN/0321321944/enterpriseint-20", "http://creativecommons.org/licenses/by/4.0/"]} {"url": "https://www.enterpriseintegrationpatterns.com/patterns/conversation/CoordinatedAgreement.html", "titulek": "Coordinated Agreement - Enterprise Integration Patterns 2", "h1": "", "popis": "Enterprise Integration Patterns", "klicova_slova": "eai, patterns, enterprise, integration, messaging, middleware, eai patterns, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns 2", "og:title": "Coordinated Agreement - Enterprise Integration Patterns 2", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/CoordinatedAgreement.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/CoordinatedAgreement.png"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Error States"}, {"uroven": 2, "text": "Example: Scheduling a Meeting"}, {"uroven": 2, "text": "Example: Finding a Place to Eat"}, {"uroven": 2, "text": "Example: XA Transaction"}], "markdown": "| | Coordinated Agreement[Conversation Patterns](index.html) » [Ensuring Consistency](EnsuringConsistencyIntro.html) | [Contents](toc.html)[⇐ Prev](TryConfirmCancel.html)[Next ⇒](bib.html) |\n| --- | --- | --- |\n\nMultiple participants each manage stateful resources via operations.\n\nHow can agreement across multiple participants be achieved so that all participants see the same outcome?\n\nThe communication channels used by loosely coupled, distributed systems usually do not provide transactional semantics at the transport level. Instead, participants can send and receive message, often reliably. Many distributed interactions require coordination, such that all participants should perform a specific action, or none of them. The classical example is making a travel reservation. You don't want a hotel reservation if you cannot get a flight ticket or vice versa.Participants may be able to respond to requests but may not want to take on the task of coordination.Participants may be independent service providers that do not directly interact with each other.\n\nA separate coordinator collects responses from each participant, determines an agreeable outcome, if possible, and shares it with all participants.\n\nThe *Coordinated Agreement* conversation involves the following participants:\n\n- The *Coordinator* initiates the conversation by asking each participant to perform an action or to provide available resources. It waits for responses, determines whether an agreement is possible, and shares the outcome with all participants.\n- The *Participants* respond to the action with the outcome or their availability and subsequently react to the joint outcome, either by confirming a [*Tentative Operation*](TryConfirmCancel.html) or performing a [*Compensating Action*](CompensatingAction.html) .\n\nConversations using *Coordinated Agreement* are somewhat *pessimistic* because they optimize the \"unhappy path\" by explicitly verifying the correctness of the outcome with each participant. Valuing *certainty* assures an agreeable outcome (as long as one is possible) but creates *complexity* in the conversation with 3 message exchanges per participant. This approach is useful if errors are common or it is difficult to find agreement.\n\n*Coordinated Agreement* generally assumes that the *Coordinator* knows all participants and therefore knows how many responses to expect. If the number and identity of participants is unknown, a [*Scatter-Gather*](/patterns/messaging/BroadcastAggregate.html) can be used, which involves a [*Publish-Subscribe Channel*](/patterns/messaging/PublishSubscribeChannel.html) to reach all participants. As the number of expected responses is unknown, the *Coordinator* must use [*Aggregator*](/patterns/messaging/Aggregator.html) strategies to derive a result from a variable number of responses.\n\nThe *Coordinator* may initiate the conversation directly ro do so on behalf of an *Initiator*.\n\nThe *Coordinator* can pursue a number of different strategies depending on the business problem:\n\n- XA transactions require positive feedback from all participants. If one or more participants cannot confirm the action, all participants are instructed to cancel their [*Tentative Operation*](TryConfirmCancel.html) s.\n- The *Coordinator* may conduct multiple iterations to achieve agreement. For example, a meeting coordinator may first ask each participant for open meeting slots. If none can be found, the *Coordinator* may chose the most agreeable option(s) and ask unavailable participants to please enable them.\n\n## Error States\n\n**Missing Participant Responses**\n\nIf the *Coordinator* knows the number and identity of all participants it can determine whether all responses were received. If a response is missing, it can employ [*Request-Response with Retry*](RequestResponseRetry.html) to elicit a response. If the response is not received the *Coordinator* should apply a business policy to determine the desired outcome. For example, in a business setting it may be acceptable to ignore a participant's availability for a meeting if the person never replied to the request for available times.\n\n## Example: Scheduling a Meeting\n\nIn case of a meeting the \"resource\" being allocated by the participants is time. A coordinator requests availability from each participant. Participants may already block the time at this point or mark it as \"tentative\"\" as a [*Tentative Operation*](TryConfirmCancel.html). Once the coordinator has that information, he or she picks a suitable time based on one of the strategies mentioned above, for example, a majority decision. She then informs the participants, who book the time, e.g. by confirming the [*Tentative Operation*](TryConfirmCancel.html).\n\nIf no agreement can be reached the meeting may be canceled and participants can release any allocated time, either by explicit cancellation ([*Compensating Action*](CompensatingAction.html)) or by letting the [*Tentative Operation*](TryConfirmCancel.html) cancel out.\n\nMany meeting systems use a tri-state system for time slot allocation: free, tentative, and busy to support [*Tentative Operation*](TryConfirmCancel.html)s without pessimistic resource allocation.\n\n## Example: Finding a Place to Eat\n\n## Example: XA Transaction\n\n**Related patterns:**[*Aggregator*](/patterns/messaging/Aggregator.html), [*Scatter-Gather*](/patterns/messaging/BroadcastAggregate.html), [*Compensating Action*](CompensatingAction.html), [*Publish-Subscribe Channel*](/patterns/messaging/PublishSubscribeChannel.html), [*Request-Response with Retry*](RequestResponseRetry.html), [*Tentative Operation*](TryConfirmCancel.html)\n\n---", "znaku_textu": 5538, "slov": 747, "odkazu": 60, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 14:54:23", "sha256": "1e087082098008ece36a0854d45982b481401f4a04390f3d62794d02504b7623", "hloubka": 3, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://creativecommons.org/licenses/by/4.0/"]} {"url": "https://www.enterpriseintegrationpatterns.com/patterns/conversation/DescribingIntro.html", "titulek": "Introduction to Describing Conversations - Enterprise Integration Patterns 2", "h1": "", "popis": "Enterprise Integration Patterns", "klicova_slova": "eai, patterns, enterprise, integration, messaging, middleware, eai patterns, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns 2", "og:title": "Introduction to Describing Conversations - Enterprise Integration Patterns 2", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/DescribingIntro.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/eip1_patterns_wide.png"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "A Simple Conversation"}, {"uroven": 2, "text": "Robustness Principle (Postel's Law)"}, {"uroven": 2, "text": "Mapping the Conversation Policy to the Participants"}, {"uroven": 2, "text": "Describing Conversations"}, {"uroven": 2, "text": "Error States"}, {"uroven": 2, "text": "Composing Conversations"}, {"uroven": 2, "text": "Conversations at multiple levels"}], "markdown": "| | Introduction to Describing Conversations[Conversation Patterns](index.html) » [Describing Conversations](DescribingIntro.html) | [Contents](toc.html)[⇐ Prev](Introduction.html)[Next ⇒](Choreography.html) |\n| --- | --- | --- |\n\nTo participate in a structured conversation, participants need to understand what is required of them, and what they can expect from their conversation partners. For example, a service consumer needs to know that it can initiate a conversation any time by sending a message. It also needs to know whether it can safely resend a request message, and whether it can expect exactly one response message or whether it has to be prepared to deal with duplicate response messages. The service provider in turn must be able to receive a request message at any time and be prepared to process it.\n\nA *conversation policy* gives a precise description of all legal message exchanges that make up a specific type of conversation. The policy establishes a contract between conversation participants, which they are expected to abide by.\n\nA conversation policy defines the following elements:\n\n- **Participant Roles** - A conversation takes place between multiple participants, each of which plays one or more roles. For example, a *buyer* may have a conversation with a *supplier* of goods while another conversation may involve a *meeting requestor* , a *meeting coordinator* , and a *meeting participant* . One physical entity (a business, a human being, or a computer system) might play more than one role in a conversation or take part in multiple conversations at the same time. For example, the meeting requestor might also be a meeting participant. Likewise, the conversation may allow multiple participants playing the same role, e.g. multiple people acting as meeting participant.\n- **Message Types** - Participants communicate by exchanging messages. They not only have to understand the message content, but also the message's role in the conversation, i.e., the *semantics* of the message. For example, a *Schedule a Meeting* conversation may use the message types *Request Availability* , *Available Times* , *Meeting Invite* , *Confirmation* , and *Meeting Reminder* . Participants must be able to understand which type of message they receive so they can continue the conversation appropriately.\n- **Protocol** - The protocol specifies the valid ordering of message types between the participants, i.e., which messages can be sent by whom, and in which order. For example, the meeting coordinator cannot send out a confirmation of the meeting time until everybody has provided their availability (or the deadline passed), whereas the meeting participants should expect to be asked about their availability at any time and respond appropriately. The protocol can include repeating messages or messages sent in any order, e.g. when a participant subscribes to be updated continuously.\n\nIf an instance of a conversation fulfills the rules established by a conversation policy, we call that conversation *legal* with regards to that policy. Most conversation policies allow many legal instances. For example, the conversation to setup a meeting doesn't require a particular order among the meeting reminder messages to the participants, making any interaction that sends messages to all meeting participants in any order legal.\n\n## A Simple Conversation\n\nLet's consider a simple purchasing scenario, which consists of the participants *Buyer* and *Supplier*. They exchange the message types *Order* to place an order, *Shipment Notice* to indicate the ordered goods have been shipped, *Invoice*, and *Payment*. The protocol for the conversation *Purchase Transaction* specifies that the *Supplier* sends an *Invoice* only after receiving an *Order* message from the *Buyer*. Every *Invoice* message must be followed by a *Payment* from the *Buyer*, who in turn must be assured that the *Order* ultimately leads to a *Shipment Notice*.\n\nHowever, the conversation policy may not specify an order between the *Shipment Notice* and *Invoice* messages, allowing the supplier to send these messages in either order, e.g. the *Supplier* could invoice before the *Shipment Notice*. When the *Buyer* has to follow the *Invoice* with a *Payment* will usually be specified in the terms and conditions. If the *Payment* is not received, the *Supplier* can send a *Reminder* and possibly a *Request for payment*. The conversation policy can also define whether the *Buyer* is allowed to send a *Payment* before the *Invoice* is sent, e.g. to make a prepayment or down-payment. One can quickly see that a relatively simple conversation has to deal with a variety of conditions.\n\nFor now we assume that a *Payment* follows an *Invoice*, but that *Invoice* and *Shipment Notice* are independent. We also omit error conditions, such as a missing payment. The following diagram formulates these constraints as a simple process on the right-hand side. The process diagram, which intentionally does not use any standard notation, contains activity elements indicating sending a message to or receiving a message from the conversation partner. The process begins by receiving an *Order* message, followed by two parallel execution streams, one of which sends the *Shipment Notice* and one consisting of sending an *Invoice* and receiving a *Payment*. The process only shows the activities relevant to the conversation and omits steps like actually shipping the goods, processing payments, etc.\n\nThe left side of the diagram depicts all legal conversation instances of this policy.\n\n*Three Legal Instances of a simple Conversation Policy*\n\nThe process defines the protocol, i.e. the valid sequences in which messages can be sent and received. The supplier's implementation may be more strict than the protocol allows, e.g. the actual implementation may be hard-wired to always send the *Invoice* message before the *Shipment Notice*. Nevertheless, the buyer has to be prepared to receive the messages in either order, because the published conversation policy, which is the contract between the participants, allows this. The supplier thus reserves the right to change its implementation in the future thanks to the separation of interface and implementation and the low coupling specified in the contract. The relationship between the declared conversation policy and the actual supplier-side implementation mimics the relationship between a service interface and the service implementation: Service consumers have to abide by the rules of the service interface, not a specific implementation.\n\n## Robustness Principle (Postel's Law)\n\nOne of the most widely used and robust protocols is TCP - The Transmission Control Protocol that is part of the TCP/IP stack, which forms the basis for pretty much all Internet traffic. When editing the TCP Specification [[Transmission Control Protocol](https://tools.ietf.org/html/rfc761#page-13)], Jon Postels specified the *Robustness Principle*:\n\nTCP implementations should follow a general principle of robustness: be conservative in what you do, be liberal in what you accept from others.\n\nIn our example, the robustness principle could mean that the *Supplier* can accept *Payment* messages before the *Invoice* message was sent, even though the conversation policy does not allow this.\n\n## Mapping the Conversation Policy to the Participants\n\nEach conversation participant projects the conversation policy onto its own viewpoint of the conversation. For example, the buyer’s view if the above conversation prescribes that it has to initiate the conversation by sending an *Order* message, and has to be ready to receive two messages in either order next. When it receives the *Invoice* message, it has to reply with a *Payment* message.\n\n*picture*\n\n## Describing Conversations\n\nConversation protocols can fundamentally be described *statically* or *dynamically*. Static descriptions are defined and known to the participants *a priori*, i.e. before they engage in the conversation. This allows participants to understand the rules of engagement beforehand and also enables code generation to automatically implement participant-side workflow that is guaranteed to be in line with the conversation policy. Once, the policy is defined, though, it cannot easily be changed.\n\nDynamic protocol definitions only exist once the conversation has started. This implies that at least one participant knows up-front how to initiate the conversation. Subsequently, a conversation participant can describe allowed next steps as part of the message being sent to other participants. Naturally, this approach provides the loosest coupling, but it does not support code generation or static validations.\n\nConversation protocols can be described using the following methods:\n\n- **Enumeration** . If the conversation policy is fairly strict, the number of legal conversations may be small. In these cases, the policy can simply enumerate all legal conversations, similar to the example above. While conceptually simple, this approach quickly reaches its limitations. For example, if the consumer in a request-response conversation is allowed to resend messages, enumerating all possibilities becomes tedious at best, and impossible for the general case. This limitation of the enumeration approach is particularly severe because fewer constraints are a desirable feature of a loosely coupled conversation policy. Therefore, we do not list this option as a general pattern that is observed in practice\n- [*Choreography*](Choreography.html) . Considering the conversation from a third-party perspective, one can describe the protocol as an abstract process, which defines which messages can be sent by which participant. The process template considers all conversation participants as equal parties, essentially viewing the conversation from the perspective of a neutral observer.\n- [*Orchestration*](Orchestration.html) . In many conversations one participant plays a central role, meaning all other participants only communicate with this participant, but not with each other. This s for example the case in two-party conversations where a service consumer interacts with a service provider. Because all message run through this participant, its view of the conversation defines the whole conversation. Thus a process template used by this participant can now serve as the conversation protocol definition for all participants, albeit from the perspective of the orchestrator.\n- [*Hypermedia State*](HyperMedia.html) . Instead of defining the conversation protocol up-front, a service provider can inform a service consumer of the legal next messages using a dynamic protocol. If messages are using the HTTP protocol, a natural way to embed this information in form of URI's.\n\n## Error States\n\nWhen looking at conversations, we often look at the \"happy path\", i.e. the sequence or sequences of steps that accomplish the primary objective of the conversation. As with all activities, naturally many things can go wrong: expected responses are not received, have the wrong format, or come in the wrong order. Also, the engine executing the process behind the conversation might crash and have to pick up at a later place.\n\n## Composing Conversations\n\nMany conversations have to deal with multiple aspects at once: they may have to discover a service provider, authenticate to it, then initiate a conversation, while renewing a [*Lease*](Lease.html) to keep using resources. It is helpful to consider the elements of such conversations separately. The conversational elements can be composed in multiple ways:\n\n- Sequencing: One element of the conversation may follow another, e.g. a [*Asynchronous Request-Response*](RequestResponse.html) may follow a [*Dynamic Discovery*](DynamicDiscovery.html) .\n- Expansion: A single message in one conversation may in fact be a sequence of messages that are part of another, more detailed conversation. For example, a single \"message\" in a [*Relay*](Relay.html) conversation could be a [*Request-Response with Retry*](RequestResponseRetry.html) .\n- Overlay: Some conversations occur concurrently, for example a patternRef name=\"SubscribeNotify\"/> conversation may need a patternRef name=\"Lease\"/> renewal.\n\n## Conversations at multiple levels\n\nDifferent layers of the communication can use different conversation protocols. For example, a TCP stack implements a reliable protocol over asynchronous IP packets by using [*Request-Response with Retry*](RequestResponseRetry.html) while an application might hold a [*Asynchronous Request-Response*](RequestResponse.html) conversation on top of TCP, e.g. by using two separate HTTP connections. Lastly, the client application might not actually be able to process response messages asynchronously, but rather uses [*Polling*](Polling.html) to obtain the response from the interface layer (see figure).\n\n*Different Protocols between Different Layers*\n\nThis (quite realistic) scenario employs three different conversations that all work together to move data between A and B. It is therefore essential that whenever we talk about conversation protocols that we state the context, i.e. the communications layer, that we refer to. By default, we assume that the conversation occurs over a common messaging system that is implemented using common protocols such as HTTP or that is abstracted behind common APIs such as JMS, MSMQ or the like. These APIs or base protocols define what the application layer understands as \"message\" and therefore defines the context of the conversations. In this example, we would consider the conversation an [*Asynchronous Request-Response*](RequestResponse.html) unless otherwise stated.", "znaku_textu": 13509, "slov": 2041, "odkazu": 57, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 14:52:10", "sha256": "9f948fbfec926925f476f7f87b146c84671223592e2e352f6f1cb63d5c4318ac", "hloubka": 3, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://tools.ietf.org/html/rfc761"]} {"url": "https://www.enterpriseintegrationpatterns.com/patterns/conversation/DiscoveryIntro.html", "titulek": "Introduction to Discovery - Enterprise Integration Patterns 2", "h1": "", "popis": "Enterprise Integration Patterns", "klicova_slova": "eai, patterns, enterprise, integration, messaging, middleware, eai patterns, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns 2", "og:title": "Introduction to Discovery - Enterprise Integration Patterns 2", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/DiscoveryIntro.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/eip1_patterns_wide.png"}, "jsonld": [], "drobecky": [], "osnova": [], "markdown": "| | Introduction to Discovery[Conversation Patterns](index.html) » [Discovery](DiscoveryIntro.html) | [Contents](toc.html)[⇐ Prev](VocabularyIntro.html)[Next ⇒](DynamicDiscovery.html) |\n| --- | --- | --- |\n\nConversations occur by multiple conversation partners exchanging messages. Identification of the conversation participants is a necessary precondition to any conversation and occurs at two levels:\n\n- Each participant plays one or more **roles** designated by the conversation. For example, one participant may act as *Requestor* of a service while the other participant acts as *Provider* of a service. The conversation defines which participant can send what messages in which order to which other participant(s).\n- The participant roles have to be mapped to participant **instances** : in order to start a conversation, a conversation initiator must send a message to a specific instance of another participant, usually identified by an address. This address can point to a single instance or to a set of instances which for example may be load balanced.\n\nTo get a conversation started, the conversation initiator must identify the instance of the conversation partner that it will send a message to. Typically, the participant addresses should not be hard-coded, but the initiator should identify the best participant to talk to. We call this process *Discovery*. Designing *Discovery* revolves around the following considerations:\n\n- *Addressability* : Conversation participants direct messages to other participants via an *address* . this can be a resource locator (URI), a [*Message Channel*](/patterns/messaging/MessageChannel.html) name, or a similar unique identifier. These identifiers have to be embeddable in messages so that one participant can pass an address to another participant, e.g. through [*Referral*](Referral.html) .\n- *Centralized vs. Distributed* : Some discovery processes rely on a central participant, such as a registry, to find conversation partners while others are fully decentralized and do not require such a \"special\" participant. Each approach has advantages and disadvantages. A central registry has knowledge about all services and can make smart decisions about how to fulfill a discovery request, for example based on load, proximity, or similar policies. However, a central registry can become a bottleneck or point of failure. Also, the registry can get out of sync with the reality when a registered service is no longer available. Lastly, a service has to \"discover\"\" the registry in the first place, often via a well-known (i.e. hard-coded) address. Decentralized systems do not require such a central participant but can carry more overhead and can make it difficult to find the \"best\" conversation partner.\n- *Static v.s Dynamic Role Assignment* : Many conversations inherently define the roles. For example, in a simple [*Asynchronous Request-Response*](RequestResponse.html) conversation, the *Requestor* always discovers the *Provider* and initiates the conversation by sending a message to it. Some conversations, however, may require participants to negotiate roles: for example, multiple participants may dynamically elect a leader out of a pool of candidates using [*Leader Election*](LeaderElection.html) .\n- *Precision* : Discovery requires the initiator to express what type of conversation partner it is looking for. The initiator may specify its need using a role, a unique identifier, a set of criteria, or based on a refined ontology.\n- *Who decides* : Some approaches require the initiator to determine with conversation partner is \"best\" after soliciting responses from all possible partners while dealing with missing or delayed responses. Other approaches may put more burden on the to-be-discovered services, requiring them to announce their presence, their functional and non-functional attributes, etc., but simplifying the task of the initiator.\n- *Dynamicity* : Some environments are more static than others. For example, enterprise services may be reliable and do not come and go at will, even though individual instances may fail. However, on a short-range wireless network services may appear and disappear all the time. Relatively static environments can make *Discovery* more efficient, e.g. through caching.\n- *Trust* : Allowing conversation partners to discover one another requires some amount of trust. How can a participant trust their conversation partner? Or can they trust the discovery process to deliver legitimate conversation partners? Reversely, Who should be allowed to \"see\" a service and connect to it?\n\nBased on these considerations we discuss the following *Discovery* patterns:\n\n- [*Dynamic Discovery*](DynamicDiscovery.html) allows participants ready to initiate a conversation to locate potential conversation partners without a central registry.\n- [*Advertise Availability*](ParticipantsAdvertise.html) has participants ready to be engaged in a conversation announce their existence.\n- [*Consult Directory*](ConsultDirectory.html) locates conversation partners registered with a special participant acting as registry.\n- [*Referral*](Referral.html) describes one service introducing new participants to an existing conversation partner.\n- [*Leader Election*](LeaderElection.html) describes multiple, known participants agree on their roles.\n\nIn typical systems, a combination of these *Discovery* patterns is common, driven by different numbers of participants to be discovered and different rates of *Discovery*. For example, directories may [*Advertise Availability*](ParticipantsAdvertise.html) to announce their presence so that they can subsequently support [*Consult Directory*](ConsultDirectory.html). This works well because the number of directories is small compared to the number of *Discovery* requests. Alternatively, participants may use [*Dynamic Discovery*](DynamicDiscovery.html) to discover directories and then engage in [*Consult Directory*](ConsultDirectory.html). Once a participant has discovered an initial conversation partner through [*Consult Directory*](ConsultDirectory.html) he may be receive a [*Referral*](Referral.html) to related services.\n\nUsing see [*Intermediaries*](MultiIntro.html) pushes the need for Discovery to the intermediary so that conversation initiators do not have to deal with it. The identity of the intermediary may be hard-coded so that no discovery is needed to start a conversation with the intermediary.\n\nReference: *Pattern Language for Service Discovery* in [[PLoPD5](http://www.amazon.com/exec/obidos/ASIN/0321321944/enterpriseint-20)].\n\nReference: [[POSA3](http://www.amazon.com/exec/obidos/ASIN/0470845252/enterpriseint-20)]", "znaku_textu": 6597, "slov": 922, "odkazu": 59, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 14:53:01", "sha256": "f0d277d520abf31112a309c5cec1aef7700b74dd51c9c23840f8b1bfc9beaf52", "hloubka": 3, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://www.amazon.com/exec/obidos/ASIN/0321321944/enterpriseint-20", "http://www.amazon.com/exec/obidos/ASIN/0470845252/enterpriseint-20"]} {"url": "https://www.enterpriseintegrationpatterns.com/patterns/conversation/DynamicDiscovery.html", "titulek": "Dynamic Discovery - Enterprise Integration Patterns 2", "h1": "", "popis": "Enterprise Integration Patterns", "klicova_slova": "eai, patterns, enterprise, integration, messaging, middleware, eai patterns, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns 2", "og:title": "Dynamic Discovery - Enterprise Integration Patterns 2", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/DynamicDiscovery.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/DynamicDiscovery.png"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Example: DHCP"}], "markdown": "| | Dynamic Discovery[Conversation Patterns](index.html) » [Discovery](DiscoveryIntro.html) | [Contents](toc.html)[⇐ Prev](DiscoveryIntro.html)[Next ⇒](ParticipantsAdvertise.html) |\n| --- | --- | --- |\n\nA participant wants to initiate a conversation.\n\nHow can a conversation initiator find a partner when it has no knowledge whatsoever about available partners?\n\nPoint-to-point communication (see [*Point-to-Point Channel*](/patterns/messaging/PointToPointChannel.html)) requires the initiator to know the conversation partner it wants to communicate with. Communication over [*Publish-Subscribe Channel*](/patterns/messaging/PublishSubscribeChannel.html) allow a sender to broadcast messages to multiple subscribers without the sender having to know the subscribers' identity.Late binding between a conversation initiator and a conversation partner lowers the location coupling between them. However, it also puts the discovery on the critical path to establishing a conversation.Even in the presence of a central lookup service, a new participant has to first establish a connection to the lookup service. This can provide a bootstrap problem.Deploying new services should be easy and involve as little manual administration as possible.*Maintaining a list of available conversation partners is bound to get out of date as new partners appear and existing ones retire.*\n\nThe consumer broadcasts a query to the network, indicating what kind of service or services it is looking for. All potential providers listen to the query, with the ones who are able and willing to fulfill the request responding. The initiator selects one partner from the responses it receives.\n\nThe *Dynamic Discovery* conversation involves the following participants:\n\n- The *Initiator* starts the *Dynamic Discovery* by broadcasting a *Lookup* message. Based on the received *Response* s it selects a conversation partner and begins the conversation.\n- Potential *Provider* s listen for lookup message and respond if they are itself with the *Directory* .\n\nThe process of *Dynamic Discovery* consists of the following steps:\n\n1. *Request* : The *Initiator* sends a service request via a [*Publish-Subscribe Channel*](/patterns/messaging/PublishSubscribeChannel.html) . The *Initiator* has no knowledge of any specific service recipient.\n2. *Consider* : Potential conversation partners receive the request and can decide whether to respond or not.\n3. *Respond* : If a conversation partner is willing to engage in a conversation it replies with an *Offer* to the *Initiator* , typically via the [*Return Address*](/patterns/messaging/ReturnAddress.html) supplied by the *Requestor* .\n4. *Choose* : The *Initiator* collects the *Offer* messages from the potential *Provider* s and decides which one to interact with.\n5. *Interact* : The *Initiator* begins a conversation with the chosen partner. The initiator may also announce its decision to the other service candidates to allow them to relinquish potentially allocated resources.\n\nThe [*Publish-Subscribe Channel*](/patterns/messaging/PublishSubscribeChannel.html) often takes the form of an IP multicast on a local network segment, which has the advantage that only nearby services see the request. This approach avoids flooding the whole network and increases the chances that an initiator finds a nearby conversation partner.\n\nBoth the *Initiator* and the *Provider*s can apply rules as to whether they want to become conversation partners. These rules can be based on criteria specified by the *Initiator* (e.g. the type of service that is needed) or the state of the *Provider* (e.g., number of clients that are currently being served).\n\nWhen collecting *Offer* messages from *Provider*s, the initiator acts as an [*Aggregator*](/patterns/messaging/Aggregator.html). The *Initiator* has to decide how long to wait for *Offer* messages and how pick a *Provider*. Because the initiator does not know how many potential *Provider*s may respond, the completeness condition typically employs a \"first best\" or \"timeout\" strategy.\n\n*Dynamic Discovery* particularly well in environments where conversation partners appear and disappear frequently because maintaining a central list of partners is difficult to keep in sync with the reality. *Dynamic Discovery* can also be used to discover a registry, in which case [*Consult Directory*](ConsultDirectory.html) follows *Dynamic Discovery*.\n\nOnce the *Initiator* has identified a conversation partner, it may use other patterns to establish a conversation. For example, it might need to establish trust with the provider before it wants to begin to exchange information. Because *Dynamic Discovery* establishes a direct connection between initiator without any intermediary, the communicating parties may have to spend more effort establishing a conversation.\n\nBroadcasting across the network can be inefficient if initiators frequently look for conversation partners. Therefore, *Dynamic Discovery* works best with long running conversations or stateful conversations that do not require an initiator to rediscover a provider every time.\n\n*Initiator*s often cash the result of previous *Dynamic Discovery* conversations, thus reducing network traffic. This implies, though, that information may be out-of-date. Therefore, the *Initiator* has to be prepared that the contacted service is not available.\n\nThe initial interaction of *Dynamic Discovery* resembles [*Scatter-Gather*](/patterns/messaging/BroadcastAggregate.html). However, [*Scatter-Gather*](/patterns/messaging/BroadcastAggregate.html) is based on a stateless [*Pipes and Filters*](/patterns/messaging/PipesAndFilters.html) model, whereas *Dynamic Discovery* is a stateful conversation. For example, in [*Scatter-Gather*](/patterns/messaging/BroadcastAggregate.html) the initiator and the Aggregator may be completely disconnected entities, whereas in *Dynamic Discovery* responses have to come back to the initiator to be meaningful.\n\n## Example: DHCP\n\nMost IP-based networks assign IP addresses dynamically: when a machine joins a network, it is identifiable at the Data Link Layer of the OSI stack by its unique MAC (Media Access Control) address, but does not yet have an IP address needed to address it at the Transport Layer. To manage the assignment of IP addresses while avoiding address collisions, a Dynamic Host Configuration Protocol (DHCP) server issues and tracks IP addresses \"leased\" to machines on the network. In order to obtain an IP address, though, a new machine has to first discover a DHCP server.\n\nDHCP uses UDP broadcast packets to locate a DHCP server. One or more servers respond with an offer for a lease to an IP address. The client accepts one offer and broadcasts its decision so that other DHCP servers can take back their offers. *Dynamic Discovery* is a good choice for the discovery of DHCP servers because IP assignment happens relatively infrequently thanks to leases that often run several days. To manage IP addresses efficiently, DHCP servers [*Lease*](Lease.html) addresses for a limited amount of time.\n\n**Related patterns:**[*Aggregator*](/patterns/messaging/Aggregator.html), [*Scatter-Gather*](/patterns/messaging/BroadcastAggregate.html), [*Consult Directory*](ConsultDirectory.html), [*Lease*](Lease.html), [*Pipes and Filters*](/patterns/messaging/PipesAndFilters.html), [*Point-to-Point Channel*](/patterns/messaging/PointToPointChannel.html), [*Publish-Subscribe Channel*](/patterns/messaging/PublishSubscribeChannel.html), [*Return Address*](/patterns/messaging/ReturnAddress.html)\n\n---", "znaku_textu": 7437, "slov": 1048, "odkazu": 63, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 14:53:09", "sha256": "544f908dec144d128e8f9a592eb6b3ded74833266f45ef0a11d063ae1572532c", "hloubka": 3, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://creativecommons.org/licenses/by/4.0/"]} {"url": "https://www.enterpriseintegrationpatterns.com/patterns/conversation/EnsuringConsistencyIntro.html", "titulek": "Ensuring Consistency - Enterprise Integration Patterns 2", "h1": "", "popis": "Enterprise Integration Patterns", "klicova_slova": "eai, patterns, enterprise, integration, messaging, middleware, eai patterns, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns 2", "og:title": "Ensuring Consistency - Enterprise Integration Patterns 2", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/EnsuringConsistencyIntro.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/eip1_patterns_wide.png"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Consistency Strategies"}, {"uroven": 2, "text": "Mitigation Strategies"}], "markdown": "| | Ensuring Consistency[Conversation Patterns](index.html) » [Ensuring Consistency](EnsuringConsistencyIntro.html) | [Contents](toc.html)[⇐ Prev](RenewalReminder.html)[Next ⇒](IgnoreError.html) |\n| --- | --- | --- |\n\nIn distributed environments, operations commonly span across multiple, independent components. Consistent execution of the interactions is desired, i.e. all operations should succeed, or, if something goes wrong, no operation should be completed and every component should revert into its original state. In a non-distributed or tightly controlled environment, transaction mechanisms usually ensure this type of consistency, guaranteeing the classic ACID properties: operations are atomic, consistent, isolated, and durable. Databases and TP Monitors are classic examples of components that guarantee ACID properties. In distributed, loosely coupled systems, however, such ACID transactions are typically not available or not practical.\n\nIn the absence of traditional \"ACID\" transactions, Pat Helland proposed in 2007 to rephrase the acronym to: Associative, Commutative, Idempotent, and Distributed ([[Helland](http://blogs.msdn.com/b/pathelland/archive/2008/01/11/pdf-version-of-the-slides-for-the-irresistible-forces-meet-the-movable-objects.aspx)]). While the original ACID properties are about correctness and precision, the new ones are about flexibility and robustness. Being associative means that a chain of operations can be performed in any grouping, the classical example being (A + B) + C = A + (B + C) for the associative operator ‘+’. Likewise, commutative operations can swap the operands without affecting the result: A + B = B + A. Finally, a function is idempotent if its repeated application does not change the result, i.e. f(x) = f(f(x)). In combination the \"new ACID\" means that operations can be performed out of order or duplicated without affecting the results.\n\nWhen the communication infrastructure does not provide traditional \"ACID\" guarantees, components have to engage in conversations to achieve consistency. For example, they may expect acknowledgments to their messages, resend requests, or perform tentative operations to be confirmed later. When engaging in a conversation to ensure consistency, participants have to balance the following considerations:\n\n- *Reducing uncertainty* : When a system communicates with another system over a potentially unreliable channel, it is inherently uncertain about the other system’s state. For example, if a service consumer does not receive a response to a request, it cannot be certain whether the service provider processed the request or not.\n- *Detecting errors* : Due to the inherent uncertainty across services, detecting an error condition itself may prove difficult, even more so if external systems are involved. For example, how does one detect that a letter sent with regular mail did not arrive?\n- *Mitigating risk* : In the absence of traditional ACID transactions, participants have to accept that consistency cannot be achieved in all cases. Therefore, the conversation should try to minimize the probability and potential downside of inconsistent outcomes.\n- *Optimistic vs. Pessimistic* : Participants can choose to execute optimistically, optimizing for the case where everything goes well, usually gaining simplicity and high throughput. But they also have to accept the downside of having to deal with difficult to recover or complex failure scenarios. Alternatively, services can be pessimistic, trying to minimize the frequency and severity of failure scenarios, typically at the expense of slower throughput or higher complexity. Some systems are so optimistic that they don't even handle errors at all.\n- *Idempotency* : One of the simplest strategies to cope with failed operations is to retry the operation. In the face of uncertainty across distributed systems this can mean, though, that a service is asked to repeat an already successfully executed operation. Idempotent services recognize such a situation and avoid duplicate execution.\n- *Certainty vs. Complexity* : More complex conversations, including multiple acknowledgments, can help ensure a consistent outcome, but also increase the complexity of the interaction, which may reduce throughput and make it more difficult to implement.\n- *Layered Protocols* : Lower protocol layers may be able to deal with failure scenarios so that the application-level protocol does not have to worry about it. For example, reliable messaging infrastructures typically implement sophisticated store-and-forward mechanisms that can deal with lost connections, unavailable service providers, and other mishaps. However, not all communication errors can be completely hidden from the application layer. For example, if a message can still not be delivered after many attempts, the application may have to inform the user or pursue and alternate path of execution.\n\nThis section divides into two categories of patterns:\n\n## Consistency Strategies\n\n- [*Ignore Error*](IgnoreError.html) : This unlikely strategy can often be the most effective: do nothing in case of errors\n- **Isolate Error** : ignore the error in the context of the current conversation, but handle all errors afterwards.\n- **Retry** : if you don't succeed at first, try again\n- [*Compensating Action*](CompensatingAction.html) : use a second action that undoes a prior action to regain a consistent state\n- **Start over** : if you cannot undo an action, revert to the beginning and rebuild the desired state.\n- [*Tentative Operation*](TryConfirmCancel.html) : an interaction is split into two parts, a pending operation, followed by a confirmation or a time-out, which leads to cancellation. (try-confirm-cancel)\n- [*Coordinated Agreement*](CoordinatedAgreement.html) : a dedicated coordinator interacts with participants to find a jointly agreeable solution.\n\n## Mitigation Strategies\n\n- **Perform Most Likely to Fail Action First** : failing early reduces the number of actions to be undone in case of failure.\n- **Perform Hardest to Revert Action Last** : later actions are less likely to have to be undone due to subsequent failures.", "znaku_textu": 6079, "slov": 880, "odkazu": 57, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 14:54:19", "sha256": "840d9e9b7ea612bca2a0b247e514321ade186c53b7c5e8aeafc1adf9220c3547", "hloubka": 3, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://blogs.msdn.com/b/pathelland/archive/2008/01/11/pdf-version-of-the-slides-for-the-irresistible-forces-meet-the-movable-objects.aspx"]} {"url": "https://www.enterpriseintegrationpatterns.com/patterns/conversation/EstablishingIntro.html", "titulek": "Starting a Conversation - Enterprise Integration Patterns 2", "h1": "", "popis": "Enterprise Integration Patterns", "klicova_slova": "eai, patterns, enterprise, integration, messaging, middleware, eai patterns, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns 2", "og:title": "Starting a Conversation - Enterprise Integration Patterns 2", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/EstablishingIntro.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/eip1_patterns_wide.png"}, "jsonld": [], "drobecky": [], "osnova": [], "markdown": "| | Starting a Conversation[Conversation Patterns](index.html) » [Starting a Conversation](EstablishingIntro.html) | [Contents](toc.html)[⇐ Prev](LeaderElection.html)[Next ⇒](ThreeWayHandShake.html) |\n| --- | --- | --- |\n\nOnce a participant has identified one or more conversation partners, it can begin the conversation. But before the parties can start exchanging data via messages, they might have some housekeeping to do, for example:\n\n- **Confirm Availability** : The fact that a participant can be discovered, e.g. via [*Consult Directory*](ConsultDirectory.html) , does not guarantee that it is ready to accept messages. A participant may therefore \"ping\" the provider first to check availability and readiness to accept messages.\n- **Confirming Roles** : In some peer-based conversations, participants need to agree on the role they are going to play. For example, participants may elect a leader from amongst themselves.\n- **Negotiate transport** : Conversation participants may have different capabilities regarding transport protocols and data encoding. Two participant may want to negotiate upfront about the most efficient format that both participants support. For example, if both participants can produce and consume Protocol Buffer messages they can save a lot of bandwidth vs. JSON encoded messages.\n- **Authentication** : A service provider may require that potential conversation partners authenticate themselves, which can range from the simple inclusion of a client ID in the initial message to more sophisticated conversations including a certificate authority.\n- **Sequencing** : Some protocols that need to transmit reliably over unreliable channels need to synchronize first to make sure no messages are lost later.", "znaku_textu": 1689, "slov": 233, "odkazu": 56, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 14:53:34", "sha256": "f2c5a3c7138476fe01c2dd9469fe29a3399bbc2b0aa82b4502c479a4fa305d1b", "hloubka": 3, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": []} {"url": "https://www.enterpriseintegrationpatterns.com/patterns/conversation/FireAndForget.html", "titulek": "Fire-and-Forget - Enterprise Integration Patterns 2", "h1": "", "popis": "Enterprise Integration Patterns", "klicova_slova": "eai, patterns, enterprise, integration, messaging, middleware, eai patterns, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns 2", "og:title": "Fire-and-Forget - Enterprise Integration Patterns 2", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/FireAndForget.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/eip1_patterns_wide.png"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Example: Messaging Systems"}, {"uroven": 2, "text": "Example: UDP Packets"}], "markdown": "| | Fire-and-Forget[Conversation Patterns](index.html) » [Basic Conversations](BasicIntro.html) | [Contents](toc.html)[⇐ Prev](BasicIntro.html)[Next ⇒](RequestResponse.html) |\n| --- | --- | --- |\n\nA participant has identified a conversation partner and wants to pass information.\n\nHow can one participant notify another efficiently?\n\nSimple notifications may not require a response from the recipient.Some transport protocols, such as socket connections over TCP, are inherently bidirectional. Still, the interaction is more efficient of the initiator does not have to wait for the result data to be received.Reliable messaging systems guarantee that a message is being delivered.Some messaging channels deliver the message to multiple recipients. In such a case the sender would have to be prepared to receive multiple responses, often without knowing how many there will be.\n\nThe originator sends a *Fire-and-Forget* message and does not expect any response from the recipient.\n\nThe *Fire-and-Forget* conversation involves the following participants:\n\n- The *Originator* initiates the conversation by sending a message.\n- The *Recipient* receives messages.\n\n*Fire-and-Forget* is the simplest of all conversations. If it was any simpler, we'd have no interaction at all. Therefore, *Fire-and-Forget* provides the loosest of all possible couplings: the *Originator* does not need to know anything about the *Recipient*, including how many there are or what they do with the message.\n\nThe *Fire-and-Forget* conversation is stateless because there is no conversation state to be taken care of. In a Pipes-and-Filters architectural style [2], all components communicate using Fire-and-Forget. This kind of stateless interaction results in highly scalable [*Messaging*](/patterns/messaging/Messaging.html) systems.\n\nThe simplicity and loose coupling of *Fire-and-Forget* comes at a price: error handling is not possible because there is no feedback regarding message delivery. Therefore, *Fire-and-Forget* has to use [*Guaranteed Delivery*](/patterns/messaging/GuaranteedMessaging.html) or be content with \"best effort\" delivery, where messages may be lost. Besides lost messages errors can also occur at the application level, fore example, if the recipient is unable to process a message correctly due to invalid or corrupt data. As the *Recipient* has no way of sending feedback to the initiator (it may not even know who the *Originator* is), it can't do much besides route the bad message to an [*Invalid Message Channel*](/patterns/messaging/InvalidMessageChannel.html).\n\n*Fire-and-Forget* is most effective with asynchronous communication channels, which do not require the *Originator* to wait until the message is delivered to the *Recipient*. Instead, the *Originator* can pursue other tasks as soon as the messaging system has accepted the message.\n\n## Example: Messaging Systems\n\nMost messaging systems, such as JMS-compliant systems or IBM Websphere MQ provide *Fire-and-Forget* communication by default. These systems implement [*Guaranteed Delivery*](/patterns/messaging/GuaranteedMessaging.html), so that no messages are lost even if the receiver or the messaging is temporarily unavailable. Messaging Patterns (see [*Messaging Patterns Overview*](/patterns/messaging/index.html)) are based on *Fire-and-Forget*.\n\n## Example: UDP Packets\n\nOn local networks, applications can send *Fire-and-Forget* messages through UDP (User Datagram Protocol). UDP is connection-less, and does not require a sync up between sender and receiver. Therefore, it is extremely efficient. However, UDP is not reliable, and carries \"at most once\" semantics for message delivery. Packet order is also not guaranteed.\n\n**Related patterns:**[*Guaranteed Delivery*](/patterns/messaging/GuaranteedMessaging.html), [*Invalid Message Channel*](/patterns/messaging/InvalidMessageChannel.html), [*Messaging*](/patterns/messaging/Messaging.html), [*Messaging Patterns Overview*](/patterns/messaging/index.html)\n\n---", "znaku_textu": 3906, "slov": 547, "odkazu": 61, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 14:53:59", "sha256": "bf4aa2f9b75109dff2208dec8969019befaaa29e8c13380a0c5b99a7b67c3027", "hloubka": 3, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://creativecommons.org/licenses/by/4.0/"]} {"url": "https://www.enterpriseintegrationpatterns.com/patterns/conversation/HeartBeat.html", "titulek": "Heartbeat - Enterprise Integration Patterns 2", "h1": "", "popis": "Enterprise Integration Patterns", "klicova_slova": "eai, patterns, enterprise, integration, messaging, middleware, eai patterns, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns 2", "og:title": "Heartbeat - Enterprise Integration Patterns 2", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/HeartBeat.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/HeartBeat.png"}, "jsonld": [], "drobecky": [], "osnova": [], "markdown": "| | Heartbeat[Conversation Patterns](index.html) » [Managing Distributed Systems](ManagementIntro.html) | [Contents](toc.html)[⇐ Prev](ManagementIntro.html)[Next ⇒](ResourceIntro.html) |\n| --- | --- | --- |\n\nMultiple participants collaborate in a distributed system.\n\nHow one know that another participant is working properly and is ready to receive messages?\n\nA central participant Could ping each system periodically in with a [*Asynchronous Request-Response*](RequestResponse.html) conversation. If a valid response is returned, the component is \"alive\". This request would not be a \"regular\" request, but an *out-of-band* request that retrieves the component's status.The disadvantage of this solution is that monitoring depends on a single component making requests, which in itself can become a point of failure. The system also sends up sending a lot of unnecessary request messages.Polling the components also assumes a central monitoring entity is aware of all components' identities. In a loosely coupled system, where components come and go, this may not be a valid assumption. Components would have to register so they can be pinged.\n\nThe component supplies a *Heartbeat*, a series of periodic messages that indicate the component is operating well.\n\nThe *Heartbeat* conversation involves the following participants:\n\n- The *Component* sends periodic *Heartbeat* messages.\n- The Observer detects when the heartbeat is missing and triggers an alert or corrective action.\n\n**Related patterns:**[*Asynchronous Request-Response*](RequestResponse.html)\n\n---", "znaku_textu": 1514, "slov": 206, "odkazu": 57, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 14:54:14", "sha256": "4b8ec8e68ad50770aadbcfb0b7114079203554bc86e30c8434c637f2cd3888ed", "hloubka": 3, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://creativecommons.org/licenses/by/4.0/"]} {"url": "https://www.enterpriseintegrationpatterns.com/patterns/conversation/HyperMedia.html", "titulek": "Hypermedia State - Enterprise Integration Patterns 2", "h1": "", "popis": "Enterprise Integration Patterns", "klicova_slova": "eai, patterns, enterprise, integration, messaging, middleware, eai patterns, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns 2", "og:title": "Hypermedia State - Enterprise Integration Patterns 2", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/HyperMedia.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/eip1_patterns_wide.png"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Example: HATEOAS"}], "markdown": "| | Hypermedia State[Conversation Patterns](index.html) » [Describing Conversations](DescribingIntro.html) | [Contents](toc.html)[⇐ Prev](Orchestration.html)[Next ⇒](VocabularyIntro.html) |\n| --- | --- | --- |\n\nA participant is ready to engage in conversations.\n\nHow can a participant describe what it expects from a consumer without defining all rules of the conversation up-front?\n\nDescribing conversations up-front increases coupling and reduces flexibility.\n\nDescribing conversations up-front allow generation of client stubs.\n\nEmbed elements in the responses that define the allowed next actions.\n\n## Example: HATEOAS\n\nEasily one of the most unlucky acronyms in recent software history, *Hyperlinking as the Engine of Application State* as an aspect of the REST architectural style is the prototypical implementation of *Hypermedia State*.\n\n---", "znaku_textu": 807, "slov": 102, "odkazu": 57, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 14:52:47", "sha256": "202537d098682510ea11ec8a88ce65f270a3f639d4ab4eeb8ea27cd9dc8dd60b", "hloubka": 3, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://creativecommons.org/licenses/by/4.0/"]} {"url": "https://www.enterpriseintegrationpatterns.com/patterns/conversation/IgnoreError.html", "titulek": "Ignore Error - Enterprise Integration Patterns 2", "h1": "", "popis": "Enterprise Integration Patterns", "klicova_slova": "eai, patterns, enterprise, integration, messaging, middleware, eai patterns, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns 2", "og:title": "Ignore Error - Enterprise Integration Patterns 2", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/IgnoreError.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/IgnoreError.png"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Example: Coffee Shop"}, {"uroven": 2, "text": "Example: Data Processing"}, {"uroven": 2, "text": "Example: Counter Example: German Supermarket"}], "markdown": "| | Ignore Error[Conversation Patterns](index.html) » [Ensuring Consistency](EnsuringConsistencyIntro.html) | [Contents](toc.html)[⇐ Prev](EnsuringConsistencyIntro.html)[Next ⇒](CompensatingAction.html) |\n| --- | --- | --- |\n\nA requestor is requesting a service from a provider. The requested operation may fail.\n\nHow can a requestor cope with a failing request to a provider?\n\nThe communication channels used by loosely coupled, distributed systems usually do not provide transactional semantics at the transport level. Instead, participants can send and receive message, often reliably. Due to many different error scenarios in distributed systems, including communication errors and business-level errors, error handling can be complicated and difficult to implement correctly.Detecting errors with certainty may be difficult. For example “time out” is only an approximation for detecting errors and may cause false (error) positives, i.e. the consumer assumes an error that wasn't one from the viewpoint of the provider.While some operations are inherently reversible, e.g. debiting a bank account after a credit, other operations, such as shipping a package or scrapping a car cannot easily be undone. As a result, the requestor might not be able to do much to rectify the situation.Even with error handling, 100% reliability in distributed interactions can rarely be achieved, so accepting failure is reality.Not dealing with failure can increase throughput as no message exchanges are needed for error detection (e.g. confirmations) or error handling. Ironically, not dealing with failure can also make the interaction more robust because it remains simpler. Complex error handling can introduce errors into the conversation, such as infinite loops or unreachable states.\n\nThe requestor ignores the failure and continues as if nothing happened.\n\nThe *Ignore Error* conversation involves the following participants:\n\n- The *Requestor* executes an operation on a service providers and receives a response regarding the status.\n- The *Provider* receives operation requests from the *Requestor* and execute the associated actions. It reports back on the status of the operation.\n\n*Ignore Error* is also known as *Write-off*.\n\nConversations using *Ignore Error* are very *optimistic* because they consider only the \"happy path\", i.e. the flow without errors. This approach is useful if errors are rare or of small value. *Ignore Error* is not useful for large financial transactions.\n\nWhile *Ignore Error* may not appear to be an acceptable solution to many engineers who are trained in precision and Boolean algebra, this approach can be the most economical in a real business context. Building a system to reconcile errors situations automatically may be more expensive than the losses incurred from ignoring errors. Resolving errors manually is costly.\n\nIgnoring a small errors can be lucrative if they are part of a larger transaction. Holding up a large transaction because of an individual, small error may cost more than ignoring the small error.\n\nCalculating the cost of not handling errors must consider the total cost, for example a loss in customer satisfaction due to poor or inconsistent service.\n\nEven though *Ignore Error* does not affect the conversation between *Requestor* and *Provider*, it does not mean that the consumer has nothing to do. The service consumer may still have to detect the error condition and choose a different path of execution internally, e.g. to not make subsequent requests. Also, the requestor may have to de-allocate resources related to the operation once it detects the failure.\n\n## Example: Coffee Shop\n\nA modern coffee shop may have already started preparing a coffee for a customer when it turns out that the customer has insufficient funds. Simply discarding the coffee and processing other customers’ orders is generally more efficient than trying to obtain the funds because the loss of one beverage is small and the opportunity cost is high [[Coffee Shop](http://ieeexplore.ieee.org/xpl/login.jsp?tp=&arnumber=1407829)].\n\n## Example: Data Processing\n\nData processing often involves scanning large data sets, e.g. from log files. Invariably individual records may be incorrectly formatted or have other errors. On statistical operations it is often better to simply ignore such errors than aborting the whole calculation, which might have already consumed significant resources.\n\n## Example: Counter Example: German Supermarket\n\nI recently lined up in a German super market when an invalid item rang up three customers ahead of me. The checkout lady placed the item in front of her and stopped working. She did not even ring up the customer's remaining items. She called for a price check while all remaining customers waited. 2 minutes later someone appeared to pick up the beverage and another minute later he re-appears with a price of around 1 Euro. The checkout lady proceeded to rung up the rest of the items just to find out the customer is not able to pay. So she ended up delaying the complete process for 3 minutes while the error handling produced zero business value - not items was sold. She should have simply ignored the error, i.e. giving the item out for free or should have handled the erroneous item in a separate transaction.\n\n---", "znaku_textu": 5224, "slov": 797, "odkazu": 58, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 14:54:20", "sha256": "f0af39e569229f17409bf382252a309db51feb77d7960472f06c93859d2540df", "hloubka": 3, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://ieeexplore.ieee.org/xpl/login.jsp?arnumber=1407829&tp=", "http://creativecommons.org/licenses/by/4.0/"]} {"url": "https://www.enterpriseintegrationpatterns.com/patterns/conversation/IncrementalStateBuild.html", "titulek": "Incremental State Build-up - Enterprise Integration Patterns 2", "h1": "", "popis": "Enterprise Integration Patterns", "klicova_slova": "eai, patterns, enterprise, integration, messaging, middleware, eai patterns, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns 2", "og:title": "Incremental State Build-up - Enterprise Integration Patterns 2", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/IncrementalStateBuild.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/IncrementalStateBuild.png"}, "jsonld": [], "drobecky": [], "osnova": [], "markdown": "| | Incremental State Build-up[Conversation Patterns](index.html) » [Resource Management](ResourceIntro.html) | [Contents](toc.html)[⇐ Prev](ResourceIntro.html)[Next ⇒](Lease.html) |\n| --- | --- | --- |\n\nStuttering\n\nA participant transmits information to a conversation partner.\n\nHow can a participant invoke an operation when the it does not have all required information available at the same time?\n\nThe initiator could store data locally until all elements are present, which requires it to hold local state. The client may be be desired to be stateless or unreliable, which makes holding local state difficult.The data set may be very large and exceed the message size allowed by the system or a practical limit. In this case, the initiator may consider using a [*Claim Check*](/patterns/messaging/StoreInLibrary.html) if the system provides such a service.\n\nThe requestor transmits information incrementally until it is ready to execute the operation.\n\nThe *Incremental State Build-up* conversation involves the following participants:\n\n- The *Requestor* transmits data via multiple *Data* messages and finally invokes the *Operation* . Invoking the operation may coincide with the last data message (implicit invocation) or via a separate message (explicit invocation).\n- The *Provider* accepts a sequence of *Data* messages and collects the state contained in them. When it receives the final *Data* message or an *Operation* message it invokes an operation based on the collected data.\n\n*Incremental State Build-up* requires the provider to allocate resources for the convenience of the consumer. It should therefore employ resource management, such as a [*Lease*](Lease.html). After the invocation of the operation the *Provider* may immediately release the collected data or keep it for subsequent operations. If it keeps the data, the need for a [*Lease*](Lease.html) increases.\n\nThe incremental transmission can occur in two \"flavors\":\n\n- Building a large data set, i.e. transmitting sections of the same type of data. In this case the number of *Data* messages is typically not limited.\n- Building a complex structure, i.e. transmitting different data types. In this case, each message tends to transmit a different element of the structure. thus the number of *Data* messages is limited, but it does not have to be fixed as some elements may be optional.\n\n*Incremental State Build-up* introduces a strong form of coupling and chatty network traffic. Because it is stateful, it also requires \"stickiness\", i.e. the initiator always has to talk to the same provider instance unless the state is explicitly shared across providers. This limits scalability. *Incremental State Build-up*should therefore be used with caution. In some cases the finer granularity of the incremental requests can aid reuse if each request relates to a different business entity.\n\n**Related patterns:**[*Lease*](Lease.html), [*Claim Check*](/patterns/messaging/StoreInLibrary.html)\n\n---", "znaku_textu": 2902, "slov": 432, "odkazu": 58, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 14:54:16", "sha256": "7ff425928f5ef79021fe05455f64317fc50be0de87a8e653c8860c1ba82a12f7", "hloubka": 3, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://creativecommons.org/licenses/by/4.0/"]} {"url": "https://www.enterpriseintegrationpatterns.com/patterns/conversation/Introduction.html", "titulek": "Introduction - Enterprise Integration Patterns 2", "h1": "", "popis": "Enterprise Integration Patterns", "klicova_slova": "eai, patterns, enterprise, integration, messaging, middleware, eai patterns, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns 2", "og:title": "Introduction - Enterprise Integration Patterns 2", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/Introduction.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/eip1_patterns_wide.png"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Let's Have a Conversation"}, {"uroven": 3, "text": "Do it Again"}, {"uroven": 3, "text": "Conversations"}, {"uroven": 3, "text": "Conversation State"}, {"uroven": 2, "text": "Looking between the boxes"}, {"uroven": 3, "text": "Of boxes and lines"}, {"uroven": 3, "text": "Coupling"}, {"uroven": 3, "text": "To Couple or Not to Couple"}, {"uroven": 3, "text": "False Decoupling"}, {"uroven": 2, "text": "Coupling and Conversations"}], "markdown": "| | Introduction[Conversation Patterns](index.html) » Introduction | [Contents](toc.html)[⇐ Prev](toc.html)[Next ⇒](DescribingIntro.html) |\n| --- | --- | --- |\n\n*Work in progress - last update Jan 2017*\n\n## Let's Have a Conversation\n\nCommunicating inside a single program is simple: one method calls another, the result returns, and the calling method continues. Should anything go wrong during the call, an exception is thrown. If the program aborts altogether, both caller and callee share the same fate, making the interaction an all-or-nothing affair. This kind of binary outcome is a welcome behavior in the predictive world of computer software.\n\nCommunicating across systems is a bit more involved. The network introduces latency and unreliability while distributed systems have to cope with state being out of sync and the ability to make independent updates. As a result, procedure call semantics have proven to not be a good choice for distributed systems. Instead, these systems benefit from loose coupling and message-based communication, which simplifies the interaction model and, if used with message queues, provides temporal decoupling while increasing robustness.\n\nA message-based model splits the request–response interaction into two separate messages, one for the request and another one for the response. The consumer of a service initiates the request message and waits for the response while the service provider waits for request messages to which it replies with response messages. This setup means that the caller doesn’t have to sit around waiting for the response message. However, it requires the caller to associate incoming response messages with request messages it sent beforehand. This is usually accomplished with a [*Correlation Identifier*](/patterns/messaging/CorrelationIdentifier.html) that is shared across messages.\n\n### Do it Again\n\nWhen implementing such an asynchronous request-response solution, a nagging question tends to arise: what should the caller do if the response message never comes? To be precise, this question consists of two separate considerations: first, what does never mean? Because computers don’t inherently understand the notion of infinite, “never” is generally represented as a time period that the user or application considers long enough, a so-called *time-out*. Second, what if \"never\" arrives and the sender still hasn’t received a message? This could happen for various reasons — a glitch in the communication could cause the request or reply message to be lost, or the server could consume the request message and then crash unexpectedly without sending a reply. In any case, the sender has essentially two choices: give up or resend the original request message.\n\nIt can be amusing how popular the try-it-again approach is in the generally very predictive field of computer science. If something doesn’t work, even the most rational computer scientist is inclined to just try it again. Even more shockingly, things often do work the second time around!\n\nSo let’s assume the requestor decides to resend the request message. Several new considerations come into play: if the time-out resulted from a lost response message, the service provider now receives the same request message a second time. Yet, in many cases, the provider shouldn’t perform the requested action a second time, meaning it must be an [*Idempotent Receiver*](/patterns/messaging/IdempotentReceiver.html). To act in an idempotent manner, the receiver must be able to distinguish a resent, and therefore duplicate, message from a distinct request that happens to contain the same data. A unique correlation identifier, a magic number included in the message, can help: a resent request would have the same correlation identifier and could be identified it as a duplicate by the receiver. The provider would then skip the repeated service request and simply return the previous response message. Resending messages thus requires both service consumer and provider to keep some state: the consumer needs to keep the request message to be able to resend it, and an idempotent provider must keep a list of received message IDs together with the original responses.\n\nThe service consumer has to deal with duplicate messages as well. For example, the provider might have sent a response through a message queue just as the consumer gave up waiting. In that case, the consumer resends the request message and receives the original response a fraction of a second later. However, a second response message, based on the resent request, will arrive a little later. Given that the consumer has already processed the first response, this message should probably be ignored, requiring the service consumer to be idempotent as well.\n\nSo much for duplicate messages, but what happens if the consumer still receives no response after resending the request message? It might be tempted to resend the message once more, but what if the response never arrived because this particular request crashes the server? Repeatedly resending such a “poison message” will just continue to crash the service provider. Therefore, the consumer should limit the number of retries and eventually give up.\n\n### Conversations\n\nSuddenly, the interaction between service consumer and service provider looks much more involved. Both parties have to track the interaction state, have time-out mechanisms, count the number of retries, and eliminate duplicate messages. Instead of simply invoking a method, the two systems are engaged in a *conversation*, an exchange of related messages over time.\n\nBecause multiple conversations tend to occur at the same time (in real life as well as in distributed systems), messages are associated with the correct conversation through a correlation identifier (such as an order number) or context (the sender’s name or subject line in an email, for example). When receiving a message, a participant can use these identifiers to recover the appropriate conversation’s state and execute the next step in the conversation, which often includes sending a follow-on message.\n\nRobust conversations have to deal with a number of challenges: lost messages, duplicate messages, participants failing and losing state, error conditions, concurrent actions, etc. Systems also need to find each other in the first place before starting a conversation. How do participants know when the conversation is over? What if one conversation partner disappears in the middle of the conversation? Accounting for all these scenarios when designing a conversation is no simple task. This book therefore presents a pattern language that helps architects and developers with the design of conversations.\n\nConversation between services have many analogies in real life. Humans frequently converse through asynchronous message exchange, such as when leaving a voice mail, mailing a letter, or sending an email. You might call a store to ask for the availability of a certain product. The store clerk might be busy and promises to call you back. If you haven't heard from him by late afternoon, you decide to give him another call. In another context, an assistant who is asked to arrange a meeting time contacts each meeting participant to check for available times. After the participants respond with their respective availability, the assistant will determine time slots that suit everybody. If there is no such time, he or she may try to negotiate with some participants. Ultimately, the coordinator will inform all participants of the agreed meeting time. Shortly before the meeting the coordinator might send a reminder notice to all participants (see figure).\n\n*Scheduling a meeting as a simple conversation example*\n\nA conversation is defined via the following considerations:\n\n- **Participant Roles** - you need to define who is involved in the conversation, for example the meeting requestor, the coordinator, and meeting participants.\n- **Message Types** - participants need to understand different kinds of messages and how they impact the conversation. For example, meeting participants must respond to a *Schedule Request* message with an *Availability* message.\n- **Protocol** - once participants and message types are defined, one can define which message exchanges between which participants are \"legal\". For example, is the coordinator allowed to send repeated *Schedule Request* message? Are confirmations required or optional?\n\nThe figure above uses a UML sequence diagram to depict the \"meeting planning\" conversation. This notation doesn't express all rules of the conversation protocol, though. It can only describe one *possible* flow of messages. For example, it cannot express whether the conversation is limited to two participants, whether participants are required to respond to requests in a specific order, or what happens in case a participant doesn't respond. The [*next chapter*](DescribingIntro.html) discusses how to describe conversations more precisely.\n\n### Conversation State\n\nConversations are stateful: a conversation sets the rules of allowed actions based on which messages have already been exchanged, i.e. the current *state* of the conversation. The simple [*Asynchronous Request-Response*](RequestResponse.html) conversation from above has only a single state, \"awaiting response\", and the end state, \"reply received\". If no response message is received, the conversation remains in the \"awaiting response\" state indefinitely.\n\n*A very simple conversation with a single state.*\n\nIf the rules of the conversation allow for retry ([*Request-Response with Retry*](RequestResponseRetry.html)), the state diagram becomes more complex as it has to assume a counter (a form of state) that tracks how many times a retry has been sent. After the maximum number of retries, the conversations ends in the \"fail\" end state. Instead of assuming a counter, you could also draw each retry as a distinct state as long as the allowed number of retries is small.\n\n*A very simple conversation with a single state.*\n\nSo far we considered the conversation state to be in one overall \"global\" state. However, each participant also has a view on teh conversation state (see figure):\n\n*A conversation, seen from the perspective of an observer*\n\n- The **participants** initiate and respond to incoming messages. If there are more than two participants, each participant may only see part of the conversation. For example, when planning a meeting, each participant doesn't see the messages exchanged between the requestor and the organizer or between the organizer and the other meeting participants.\n- An **observer** can see all messages in the conversation. However, he only listens on messages exchanged between the participants but does not send any messages. The modeling the conversation state from observer's point-of-view is called *choreography* , for example implemented by the Web Services Choreography Description Language [ [WS-CDL](http://www.w3.org/TR/ws-cdl-10/) ]. Most choreography implementations didn't find significant commercial success, partly due to the fact that they are not executable.\n\nThe participant state can differ from the global conversation state. For example, in [*Request-Response with Retry*](RequestResponseRetry.html) the provider doesn't have to track any conversation state - it simply responds to incoming messages (it may, however, be able to detect duplicate messages in order to be idempotent). Typically, participants implement the conversation by with a stateful process that sends and receives messages according to its role in the conversation (see figure). In the simple [*Asynchronous Request-Response*](RequestResponse.html) conversation, the requestor will sends a request and then waits for a response. The provider does the opposite: it waits for incoming requests and sends corresponding replies.\n\n*Conversation state and participant state*\n\nEach participant typically implements a more complex internal process to fulfill the purpose of the conversation. For example the provider in a [*Asynchronous Request-Response*](RequestResponse.html) conversation might have to retrieve data from many sources and process it in order to form a response. The details of that process are not relevant for the conversation, though: we separate the interface process, which determines the conversation protocol, from the implementation process. The internal process of a participant is often expressed in form of *orchestrations*. These orchestrations are the domain of Web services standards such as the Business Process Execution Language [[BPEL](http://www-106.ibm.com/developerworks/webservices/library/ws-bpel/)] or notations such as the Business process Modeling Notation (BPMN).\n\nWhen designing conversations, it's possible to shift some of the responsibility between the participants. For example, a \"smart\" provider may be able to detect duplicate messages and therefore simplifies the design of the consumer.\n\n## Looking between the boxes\n\n### Of boxes and lines\n\nBoth messaging patterns ([[EIP](http://www.amazon.com/exec/obidos/ASIN/0321200683/enterpriseint-20)]) and Conversation Patterns look \"between\" communicating systems or applications. They examine how systems interact and how tightly they are coupled. When considering the behavior of a connected system, the way components interact has often a bigger impact on the overall system behavior than the parts themselves. It's a bit like cooking: good ingredients are a promising starting point, but they can easily be ruined but also turned into a fabulous meal. Too many times architects look at the boxes rather than between them, possibly because they are easier to grasp. Messaging and Conversation Patterns aim to give architects and developers an expressive but intuitive vocabulary to help them reason about what's between the boxes.\n\n### Coupling\n\nOne of the key properties that arise between teh boxes is the notion of *Coupling*. Coupling is a major consideration in distributed systems design, best defined as a measure of the dependencies between systems: the more assumptions two systems make about each other, the more tightly coupled they are. The fewer assumptions they make, the more loosely coupled they become.\n\n| |\n| --- |\n\nLoose coupling enables independent variability among the participants, allowing for example one component to change its implementation technology or its version without affecting other systems. In an enterprise-wide or inter-enterprise (i.e., B2B) integration scenario, independent variability has considerable value because one party usually doesn't have control over all applications, meaning that some components can change without central coordination or approval. For example, if a business partner decides to upgrade to the latest version of SAP there is little one can do to stop them. In the reverse scenario, your business might need to update components without being able to force the other side to make the corresponding change.\n\nLoose coupling brings benefits, but as with most architectural decisions, there is no free lunch - it's all a matter of trade-offs. David Orchard aptly concluded that the only way to make two systems truly loosely coupled is by not connecting them at all. Unsurprisingly, this solution is not particularly useful. How much coupling and therefore how much dependency to introduce or not to introduce becomes an interesting question.\n\n| |\n| --- |\n\nCoupling isn't a binary property. Instead, it's a continuous range over multiple facets. For example, if one application uses a technology-specific protocol such as Java RMI or .NET Remoting, it depends on the fact that the other end uses the same technology. If one endpoint changes the implementation technology, the solution breaks. This integration is therefore more tightly coupled than a solution that uses XML over HTTP or a technology-independent middleware. Two components that communicate via XML messages in a synchronous fashion are temporally coupled: if a provider is slow or only intermittently available, the requestor also becomes slow or only intermittently available. Loose coupling, in this case temporal decoupling, can make systems more robust by limiting failure propagation.\n\nThe following list summarizes the main facets of coupling between communicating systems:\n\n- **Technology Dependency** occurs when communicating systems are bound to common technology. Many remote communication mechanisms, for example JMS, Java RMI, JINI, or .NET Remoting, impose this dependency to allow a convenient programming model that can not only exchange data but also live objects containing both code and data. If one endpoint was going to be migrated from Java to .NET, this type of integration would break, underlinign the coupling introduced by the technology dependency. Technology dependencies can also be introduced by lower layers in the technology stack, such as the operating system or the processor architecture. For example, Intel-processor based PCs use a \"little endian\" encoding where the least significant portion of a multi-byte value (e.g., a 32 bit word) is stored in the first memory address. In contrast, many workstation processors, used a \"big endian\" system, which stores the bytes in the reverse order. If systems with a different endian notation exchange numeric values in byte order, the receiving system will vastly misinterpret the numeric data. Requiring the same processor architecture constitutes a strong form of technology dependency.\n- **Location Dependency** - For one system to communicate with another it has to specify the destination of the communication. One can imagine various degrees of coupling in the specification of a location. A local method call is one of the most tightly coupled location dependencies: the target has to reside in the same virtual machine as the sender. In distributed systems, a destination can be provided as an IP address or a static URL. Looking up the destination URL in a directory reduces coupling because the address can change. Sending data to a logical *Message Channel* or in a shared blackboard further reduces location coupling. Location independence is a key enabler of *composability* : if one component does not make location assumptions about the components it is interacting with, it can be combined with different components without coding changes.\n- **Data Format Dependency** depends on how data elements exchanged between systems are represented (see also [ [EIP, p.87](http://www.amazon.com/exec/obidos/ASIN/0321200683/enterpriseint-20) ]). Even if systems avoid encoding data in a processor dependent format (\"little endian\" vs. \"big endian\"), the size data items may differ: an integer number may consist of 32 bits on one system and 64 bits on another. Character strings might consist of 8 bit ASCII characters, EBCDIC values, or UNICODE characters. Therefore, both systems have to agree on a common data representation scheme. Some encodings, like fixed format EDI records, rely on a particular order of parameters, which breaks when adding or removing data items. \"Tagged\" formats such as name-value pairs, XML, or JSON documents loosen up such constraints and reduce coupling.\n- **Temporal Dependency** is subtle and often overlooked. If systems communicate synchronously, i.e. the sender waits for the response, the requestor is temporally dependent on the provider: a slow provider causes the requestor to also be slow. If the providing system is unavailable, the requesting system is also rendered unavailable. In distributed systems where network latency, which may be outside of the applications' control, adds to the response time. Asynchronous messaging solutions cannot magically make an unavailable system available but they can temporally decouple systems.\n- **Programming Model Dependency** exists when systems share constructs like classes, object instances, references, inheritance, polymorphism etc. Simple interaction models, such as document passing across asynchronous channels abstract from the underlying programming model and therefore provide a lower degree of coupling between the systems.\n\nThe following table summarizes the facets of coupling along with prototypical loosely and tightly coupled examples.\n\n| **Dependency** | **Loosely Coupled Example** | **Tightly Coupled Example** |\n| --- | --- | --- |\n| Technology | ReST, XML over HTTP | Java RMI, .NET |\n| Location | Registry Lookup | IP Address |\n| Data Format | XML, Comma-Separated Values | Binary, native encoding |\n| Temporal | Asynchronous | Synchronous |\n| Programming Model | Document-Oriented | Object-Oriented |\n\n### To Couple or Not to Couple\n\nHow much coupling is right? As with most architectures, there is no simple answer -- architecture is always a matter of trade-offs. Tightly coupled systems can get a bad rap because loosely coupled systems promise a whole range of architectural benefits. However, equating loosely coupled with \"good\" and tightly coupled with \"bad\" can lead to a what Martin Fowler calls \"the Architect's Dream, the Developer's Nightmare\": a system that is very flexible, but very difficult to work with.\n\nLooking at some of the pros and cons of loose and tight coupling helps find the right balance. Supporting variability that is unlikely to occur can make the system more complicated and typically less efficient without realizing tangible benefits. Providing variability for future changes is admittedly a guessing game: you are building variability into the system because you don't know what changes the system has to undergo in the future. Hence, loose coupling is a bit like buying insurance; it's best when you don't need it, even though then you might feel like you wasted the money (or effort). But it's important to remember that you can't judge decisions by their outcome: you invested the extra effort to limit exposure to a known risk. The fact that the worst case scenario did not in fact occur afterwards does not influence the validity of that decision.\n\n| |\n| --- |\n\nThe best approach to identifying a suitable amount of variability is to clearly lay out variability events that *could* occur and rank them by probability (how likely it is that the event will occur), severity (the penalty incurred if the system doesn't support the change) and the effort required to build this kind of variability into the system. Such a table could look like this:\n\n| **Variability** | **Likelihood** | **Severity** | **Effort** |\n| --- | --- | --- | --- |\n| Change in programming language | High | High | Low (can use XML/JSON) |\n| An internal function is outsourced | Medium | Depends | Medium (can use XML, but need additional security) |\n| Packaged application upgrades to next release | Almost certain | High for major packages | Medium (assuming backwards compatibility) |\n| Change packaged application vendor | Medium | High for major packages | High - very difficult to absorb structural or semantic changes |\n| ... | ... | ... | ... |\n\nSome variabilities are easy to anticipate: if you have to connect systems that use different programming platforms and languages, your middleware has to be able to support communication across platforms. How likely is it that you need to replace the implementation of the CRM system with another vendor's product? Less likely, but the impact could be major if the data structures and models of the application change.\n\nThe following list includes some common coupling trade-offs:\n\n**Design-time Validation**\n\nIn tightly coupled systems, the compiler can usually warn you of the most obvious mismatches between two communicating systems or methods, such as missing arguments, wrong data types, misspelled variable or method names etc. The compiler can do so because the rules for compatibility between caller and callee are well-defined and strictly enforced. This strictness is what makes the coupling tight -- it doesn't allow for variability. Loosening this coupling also reduces the ability to automatically validate the system at design time. For example, is the fact that an element is missing from a document an anticipated variability or a coding error?\n\n**Documentation**\n\nHow do you express how much variability you are intending to support? Do you want to enforce the order of elements in a document or not? Should the system be resilient against the addition of elements? How about changing element data types? Common data schema definitions can express simple constraints such as the order of elements but cannot express more subtle differences such as a document that is too coarse grained or too fine grained.\n\n**Testing**\n\nA loosely coupled system can be more difficult to test because its support of independent variability increases the number of test cases. If a system doesn't depend on a specific order of the data elements, do you need to verify all possible permutations of parameters? Automated test cases bring some relief and also serve an important document function. Test cases such as testChangedElementOrder or testAdditionalElements will let anyone know what the intended resilience against change is, and it verifies it every time a change is made to the system.\n\n**Understandability**\n\nLoosely coupled systems are more difficult to understand. For example, in a tightly coupled, non-distributed system a developer can easily inspect the source code, see that one method calls another, and then navigate to that method. Most modern development environments include this option in the context menu or even provide a shortcut key. In a loosely coupled system, however, one method might post an event to a channel whose name is read from a configuration file. What other component, or components, receives this event? What activity or activities are performed as a result? Simple questions like this often require the developer to look at a number of source and configuration files or even to observe a running system. Without supporting tools this task can be extremely time consuming.\n\n**Current System State**\n\nLoosely coupled systems are designed to enable variability and evolution. The actual state of the system might therefore not be immediately apparent and manually maintained documentation is likely to be out-of-date. Therefore, in large, loosely coupled systems, automated visualization and documentation tools are essential. Creating such tools adds to the development cost and effort, though.\n\n| |\n| --- |\n\n**Performance**\n\nTightly coupled systems are generally more efficient than loosely coupled systems because the constraints imposed by the tight coupling allow optimization at build-time. For example, if system can rely that they will only communicate with systems equipped with the same run-time platform and processor architecture, they can stream bytes straight from memory onto the channel without any translation. To communicate with a wide range of parties the sending system needs to serialize, marshal and encode the data into a common format such as XML or JSON. The receiving system has to decode and parse the incoming data. Additionally, the systems might have to transmit metadata, such as the names or positions of data elements. This process consumes memory, CPU cycles and network bandwidth -- many XML documents are 10 to 20 times the size of comparable binary documents. Newer data encodings such as Protocol Buffers or AVRO place emphasis on data size and parsing overhead while retaining platform independence.\n\n**Undesired Variability**\n\nSometimes you want things to break when they change. For example, if the sending system changes the time zone on a date field from PST (Pacific Standard Time) to GMT (Greenwich Mean Time), you would like to receive a warning rather than misinterpret incoming data. This requires a strict validation of data rules between sender and receiver as is typical in tightly coupled systems. In loosely coupled systems, these kind of problems often surface only at run-time when it may be too late.\n\n### False Decoupling\n\nThere's a risk to create systems that have \"false decoupling\", where you are led to believe that systems are loosely coupled but the property has never been verified. This condition can be actually worse than tight coupling because the system sets expectations that it then does not fulfill. It's like thinking you have insurance just to find out that your specific incident was not covered. Let's not build systems that require developers to read the \"fine print\"!\n\nA common example of false decoupling is document parsing, which processes incoming XML documents, extracting relevant data values into objects. Problems occur if the interface contract specifies that the order of elements is irrelevant (thus allowing variability in the order of elements), but the parsing code steps through the list of elements, making implicit assumptions about the order of elements. As long as all systems use the same order of elements, the system will work fine. As soon as another system tries to take advantage of the advertised variability, the communication will break.\n\n## Coupling and Conversations\n\nLoosely coupled systems minimize the assumptions they make about one another while still providing a meaningful interchange. This potential conflict provides the key *forces* for many of the Conversation Patterns in this book. More elaborate conversation protocols tend to introduce tighter coupling. For example, a conversation based on an object-oriented semantics introduces coupling due to the complexity, for example caused by the explicit allocation and release of object instances. However, a more sophisticated conversation can also reduce coupling. For example, if System A is trying to retrieve information from System B, the simplest conversation, a [*Asynchronous Request-Response*](RequestResponse.html), makes certain assumptions, for example guaranteed message delivery and a guaranteed response from System B. One can loosen up requirements on System B if you are willing to put more intelligence into System A. For example, System A can be enhanced to automatically retry an operation if it doesn't receive a response within a certain amount of time. System A can be further enhanced to ignore duplicate responses or to include a retry counter that instructs it to \"give up\" after a specified number of retries. System B will know rather little about these enhancements and has to make very few assumptions about System A. The overall interaction becomes more sophisticated without affecting System B \n (There is truly no impact on System B only if the interaction with System is idempotent, for example because it is a read operation.)\n.", "znaku_textu": 30301, "slov": 4636, "odkazu": 61, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 14:51:13", "sha256": "a1e334ac48e0e8ac8eabec5b53ce9e62fc70c0383ac8f65011a41a5663fa6752", "hloubka": 3, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://www.w3.org/TR/ws-cdl-10/", "http://www-106.ibm.com/developerworks/webservices/library/ws-bpel/", "http://www.amazon.com/exec/obidos/ASIN/0321200683/enterpriseint-20"]} {"url": "https://www.enterpriseintegrationpatterns.com/patterns/conversation/LeaderElection.html", "titulek": "Leader Election - Enterprise Integration Patterns 2", "h1": "", "popis": "Enterprise Integration Patterns", "klicova_slova": "eai, patterns, enterprise, integration, messaging, middleware, eai patterns, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns 2", "og:title": "Leader Election - Enterprise Integration Patterns 2", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/LeaderElection.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/eip1_patterns_wide.png"}, "jsonld": [], "drobecky": [], "osnova": [], "markdown": "| | Leader Election[Conversation Patterns](index.html) » [Discovery](DiscoveryIntro.html) | [Contents](toc.html)[⇐ Prev](Referral.html)[Next ⇒](EstablishingIntro.html) |\n| --- | --- | --- |\n\nDistributed Consensus\n\nSome conversations among multiple participants require one participant to play a special role, e.g. to act as a coordinator.\n\nHow can a set of participants agree on a single participant assuming a special role?\n\nParticipant implementations can fail, making a fixed leader assignment unreliable.\n\nUse a distributed consensus algorithm based on Paxos to elect a leader.\n\nLeader election is a common distributed algorithm problem [22] with a number of proven algorithms.\n\n[22] Distributed Algorithms, Lynch, 1996, Morgan Kaufmann\n\nhttp://static.googleusercontent.com/media/research.google.com/en//archive/chubby-osdi06.pdf\n\n---", "znaku_textu": 800, "slov": 90, "odkazu": 57, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 14:53:30", "sha256": "ee4e47d46d25c51262956e91a829eba7bd146d9b0f80d0112719b0a5a788adb1", "hloubka": 3, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://creativecommons.org/licenses/by/4.0/"]} {"url": "https://www.enterpriseintegrationpatterns.com/patterns/conversation/Lease.html", "titulek": "Lease - Enterprise Integration Patterns 2", "h1": "", "popis": "Enterprise Integration Patterns", "klicova_slova": "eai, patterns, enterprise, integration, messaging, middleware, eai patterns, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns 2", "og:title": "Lease - Enterprise Integration Patterns 2", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/Lease.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/Lease.png"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Example: DHCP"}], "markdown": "| | Lease[Conversation Patterns](index.html) » [Resource Management](ResourceIntro.html) | [Contents](toc.html)[⇐ Prev](IncrementalStateBuild.html)[Next ⇒](RenewalReminder.html) |\n| --- | --- | --- |\n\nA provider engages in long-running conversations with multiple partners. Each of these conversations requires the provider to allocate resources.\n\nHow can a service provider avoid holding resources for clients who are no longer interested?\n\nLoose coupling includes resource management. Holding resources at another participant's convenience introduces a form of coupling.Resources can take many forms such as sessions and the related memory allocations, database records, authentication tokens and the like. Service consumers may voluntarily or involuntarily terminate a conversation without notifying the service provider. For example, a connection may drop. This can lead to orphaned resources that can hinder system performance or require costly machine resources. Ultimately, the provider may run out of resources.A provider may not be able to contact consumers to check whether they are still active and reachable. This could for exampel be the case because the consumers are not able to receive inbound connections as it is common with Web clients.A service provider may want to gauge how long it is willing to hold resources for a consumer, depending on its current resource usage. If the provider is nearly running out of resources it may not be willing to hold new resources for a long amount of time.Unused resources could be detected periodically in a sort of \"garbage collection\", but in a distributed systems the collection process may not be clear as to which resources are unused because the state of remote participants may be unknown.The resource to be allocated may be part of a limited pool that has to be shared across all requestors.\n\nHave the service provider issue a *Lease* to the resources. If not renewed, the lease will expire, allowing the provider to free allocated resources.\n\nThe *Lease* conversation involves the following participants:\n\n- The *Requestor* issues a *Request* for a resource. In return it receives a *Lease* , which typically indicates a time interval for which the lease is valid. The *Lease* also contains a reference to the resource being held. In order to retain the resource it must *Renew* the lease within the specified interval. The *Request* message may contain attributes that help the *Provider* decide on the lease terms.\n- The *Provider* accepts *Request* messages for resources and grants them if resources are available, sharing the lease terms in a *Lease* message to the *Requestor* . The *Provider* associates a timer with each granted resource and expires the resource if no *Renew* message is received within the set time interval. The *Provider* also accepts *Renew* messages, which it acknowledges with a *Lease* message.\n\nUsing a *Lease* the lease holder is always certain about the state of the resource. For example, if a *Renew* request fails (e.g. because the lease grantor is unreachable), the lease holder knows that the grantor will relinquish the lease. This conversation puts the burden for lease renewal on the lease holder.\n\nA *Renew* message usually results in a new lease being issued and a new *Lease* message being sent. The conversation contract could also specify that the existing lease is renewed on the same terms as before, but an explicit *Lease* message simplifies the design of the *Requestor* and reduces coupling in the protocol as each interchange transmits the complete state. It also allows the *Provider* to re-adjust the lease duration, e.g. it can shorten the lease because it is short on resources.\n\nThe *Requestor* of the service is also referred to as the \"holder\" of the lease while the service is called the \"grantor\". The lease holder can actively cancel the lease before it is up to help the grantor release resources.\n\nThe lease holder can apply for a new lease before the existing one runs out.\n\nThe lease grantor can deny a *Renew* request. The *Requestor* may therefore be prepared to lose access to the resource. Whether such a denial is allowed should be specified in the conversation protocol as it places additional requirements on the *Requestor*.\n\n*Requestor*s may become over-eager in renewing leases, causing unnecessary network traffic and a potential strain on the *Provider*.\n\n*Lease* relies on a shared clock between requestor and provider. In reality distributed systems are likely to use clocks that are slightly our of sync. If Lease durations are long, e.g. hours or days this likely does not matter. To be safe, the provider could add some extra \"slack\" after lease expiration before it actually de-allocates the resource.\n\nSee also: [[POSA3](http://www.amazon.com/exec/obidos/ASIN/0470845252/enterpriseint-20)].\n\n## Example: DHCP\n\nThe Dynamic Host Configuration protocol (DHCP) assigns IP addresses from a pool to requesting machines as a *Lease*. Machines have to renew their assigned IP address before the *Lease* expires. Otherwise, the server may reclaim it and assign it to a different machine. In many cases, clients receive the same address after renewal, but this is not guaranteed.\n\n---", "znaku_textu": 5115, "slov": 806, "odkazu": 58, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 14:54:17", "sha256": "7fe7f70752b85b76c6468441dc836fe64e0aebbfabf4cd7d0790034cb9b6794a", "hloubka": 3, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://www.amazon.com/exec/obidos/ASIN/0470845252/enterpriseint-20", "http://creativecommons.org/licenses/by/4.0/"]} {"url": "https://www.enterpriseintegrationpatterns.com/patterns/conversation/LoadBalancer.html", "titulek": "Load Balancer - Enterprise Integration Patterns 2", "h1": "", "popis": "Enterprise Integration Patterns", "klicova_slova": "eai, patterns, enterprise, integration, messaging, middleware, eai patterns, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns 2", "og:title": "Load Balancer - Enterprise Integration Patterns 2", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/LoadBalancer.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/LoadBalancer.png"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Example: Load Balancer"}], "markdown": "| | Load Balancer[Conversation Patterns](index.html) » [Intermediaries](MultiIntro.html) | [Contents](toc.html)[⇐ Prev](Relay.html)[Next ⇒](Aggregator.html) |\n| --- | --- | --- |\n\nMultiple identical providers can service a message.\n\nHow can incoming messages be shared among the providers?\n\nCan use message queue with competing consumers - most efficient as consumers work at optimal loadMessage queue does not always work.May need to send related messages to the same participant (stickiness).Providers should not know about each other.\n\nThe initiator makes outbound requests to a *Load Balancer*, which distributes messages across the providers.\n\nThe *Load Balancer* conversation involves the following participants:\n\n- The *Initiator* initiates the conversation by sending a message to the *Load Balancer* .\n- The *Load Balancer* listens for messages and forwards them to the *Provider* s. The *Provider* may be unaware of the *Load Balancer* .\n- The *Provider* s may share information with the *Load Balancer* to optimize with the distribution of messages.\n\n*Load Balancer* can receive Heartbeat from *Provider*s\n\n## Example: Load Balancer\n\n---", "znaku_textu": 1082, "slov": 149, "odkazu": 57, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 14:54:11", "sha256": "2790f88abfd7e09e4efa41a70709d455316978d8da8eb0911a36c82dbc42b71e", "hloubka": 3, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://creativecommons.org/licenses/by/4.0/"]} {"url": "https://www.enterpriseintegrationpatterns.com/patterns/conversation/ManagementIntro.html", "titulek": "System Management - Enterprise Integration Patterns 2", "h1": "", "popis": "Enterprise Integration Patterns", "klicova_slova": "eai, patterns, enterprise, integration, messaging, middleware, eai patterns, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns 2", "og:title": "System Management - Enterprise Integration Patterns 2", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/ManagementIntro.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/eip1_patterns_wide.png"}, "jsonld": [], "drobecky": [], "osnova": [], "markdown": "| | System Management[Conversation Patterns](index.html) » [Managing Distributed Systems](ManagementIntro.html) | [Contents](toc.html)[⇐ Prev](Aggregator.html)[Next ⇒](HeartBeat.html) |\n| --- | --- | --- |\n\nPatterns that help keep the system running and monitor its status", "znaku_textu": 246, "slov": 21, "odkazu": 56, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 14:54:13", "sha256": "51eb7bb1b6ca023bc3c1d0d58edd3abf005db40c20835a85f707c4035c34be47", "hloubka": 3, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": []} {"url": "https://www.enterpriseintegrationpatterns.com/patterns/conversation/MultiIntro.html", "titulek": "Intermediaries - Enterprise Integration Patterns 2", "h1": "", "popis": "Enterprise Integration Patterns", "klicova_slova": "eai, patterns, enterprise, integration, messaging, middleware, eai patterns, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns 2", "og:title": "Intermediaries - Enterprise Integration Patterns 2", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/MultiIntro.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/eip1_patterns_wide.png"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Use Cases"}], "markdown": "| | Intermediaries[Conversation Patterns](index.html) » [Intermediaries](MultiIntro.html) | [Contents](toc.html)[⇐ Prev](QuickAck.html)[Next ⇒](Proxy.html) |\n| --- | --- | --- |\n\nWhile many conversations involve direct communication between two parties, some conversations inherently involve multiple parties. Several patterns related to [*Discovery*](DiscoveryIntro.html) or [*Starting a Conversation*](EstablishingIntro.html), such as [*Consult Directory*](ConsultDirectory.html) or [*Acquire Token First*](AcquireToken.html), involve a third party that helps two participants communicate. In most cacses, though, this third party steps aside once the remaining participants are ready to communicate with each other. In contrast, this chapter presents conversation patterns, in which in *Intermediary* sits inside the message stream being exchanged between participants. Lastly, some multi-party conversations consist of many participants communicating directly with each other without the involvement of an intermediary or a coordinator.\n\nCorrespondingly, one can differentiate such multi-party conversations into the following categories:\n\n- **Peer-to-peer** conversations consists of multiple identical or similar participants that communicate directly with each other, e.g. [*Leader Election*](LeaderElection.html) .\n- **Intermediaries** acts as a connecting element between multiple participants. The message exchange between the participants runs through the intermediary. This chapter describes multiple such patterns.\n- **Coordinators** drive the conversation by taking a central role that interacts with other participants, e.g. a [*Coordinated Agreement*](CoordinatedAgreement.html) .\n- **Connectors** facilitate a direct conversation between other participants. They do not sit inside the mesage exchange between participants but play a special role in supporting the conversation, e.g. by helping participants discover each other ( [*Consult Directory*](ConsultDirectory.html) ).\n\n*Types of Multi-Party Conversations*\n\nSome multi-party conversations assume a fixed number of participants while others allow any number of participants. Some multi-party conversations even allow participants to join or leave the conversation \"in flight\", i.e. in the middle of the conversation.\n\n## Use Cases\n\n*Intermediaries* are common in real life as well as in system design because they support a number of wide-spread use cases:\n\n- **Communication Restrictions** : some participants may not be allowed to hold open communications and thus are required to use *Intermediaries* .\n- **Control** : Use of intermediaries may be required for audit and control purposes. In many such cases, direct communication is restricted to enforce the usage of the intermediary.\n- **Convenience** : intermediaries allow participants to communicate with a single partner instead of multiple partners, some of which may even come and go or be unavailable. Intermediaries also reduce the need for [*Discovery*](DiscoveryIntro.html) as the initiator only needs to know the identity of the *Intermediary* .\n- **Value-add** : Real-life intermediaries may provide additional services beyond convenience, such as obtaining discounts from providers, covering legal risks, or selling items in smaller quantities, such as a retailer.\n\nThis chapter introduces the following intermediary patterns:\n\n| **Pattern** | **Description** |\n| --- | --- |\n| **[*Proxy*](Proxy.html)** | Forwards messages them to other participants. |\n| **[*Relay*](Relay.html)** | Allows two participants who can only make outbound requests to engage in a two-way conversation. |\n| **[*Scatter-Gather*](Aggregator.html)** | Propagates a request to multiple providers and aggregates the responses. |", "znaku_textu": 3610, "slov": 487, "odkazu": 56, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 14:54:07", "sha256": "9734bbe7b4ad7600f5f422f6583c9a3ef09d778ac142c8b0284f56d0c08cbaed", "hloubka": 3, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": []} {"url": "https://www.enterpriseintegrationpatterns.com/patterns/conversation/Orchestration.html", "titulek": "Orchestration - Enterprise Integration Patterns 2", "h1": "", "popis": "Enterprise Integration Patterns", "klicova_slova": "eai, patterns, enterprise, integration, messaging, middleware, eai patterns, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns 2", "og:title": "Orchestration - Enterprise Integration Patterns 2", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/Orchestration.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/eip1_patterns_wide.png"}, "jsonld": [], "drobecky": [], "osnova": [], "markdown": "| | Orchestration[Conversation Patterns](index.html) » [Describing Conversations](DescribingIntro.html) | [Contents](toc.html)[⇐ Prev](Choreography.html)[Next ⇒](HyperMedia.html) |\n| --- | --- | --- |\n\nA participant is ready to engage in conversations.\n\nHow can a participant describe what conversations it is willing to engage in?\n\nDefine the valid conversations from the point of view of the service provider, e.g. through a process template that includes sending and receiving messages.\n\n---", "znaku_textu": 461, "slov": 53, "odkazu": 57, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 14:52:35", "sha256": "95719fc93a17f464e0512b4b28aed7742c7f93fdd917b136c14d263832c2d140", "hloubka": 3, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://creativecommons.org/licenses/by/4.0/"]} {"url": "https://www.enterpriseintegrationpatterns.com/patterns/conversation/ParticipantsAdvertise.html", "titulek": "Advertise Availability - Enterprise Integration Patterns 2", "h1": "", "popis": "Enterprise Integration Patterns", "klicova_slova": "eai, patterns, enterprise, integration, messaging, middleware, eai patterns, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns 2", "og:title": "Advertise Availability - Enterprise Integration Patterns 2", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/ParticipantsAdvertise.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/ParticipantsAdvertise.png"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Example: WiFi Hotspots"}, {"uroven": 2, "text": "Example: Simple Service Discovery Protocol (SSDP)"}], "markdown": "| | Advertise Availability[Conversation Patterns](index.html) » [Discovery](DiscoveryIntro.html) | [Contents](toc.html)[⇐ Prev](DynamicDiscovery.html)[Next ⇒](ConsultDirectory.html) |\n| --- | --- | --- |\n\nA participant is able to receive messages in a conversation initiated by another participant.\n\nHow can a participant let others know that it is available?\n\nCentral services for discovery are bound to get out of sync with reality, e.g. because obsolete services do not de-register.Centralized administration may result in a single point of failure and in delays in registering live services.[*Dynamic Discovery*](DynamicDiscovery.html) can flood the network with requests if new conversations start frequently or when initiators join networks frequently.The number of available providers is often small compared to the number of initiated conversations.\n\nParticipants periodically broadcasts their existence to potential initiators.\n\nThe *Advertise Availability* conversation involves the following participants:\n\n- The *Providers* periodically broadcast *Available* messages to any available *Initiator* s.\n- The *Initiator* listens to *Available* messages. When the *Initiator* is ready to engage in a conversation it uses the stored *Available* messages to determine the appropriate conversation partner and initiates the conversation directly.\n\n*Advertise Availability* works best when initiators are long-lived so that they can track broadcast availability messages before they need to start a conversation. This allows keeping the broadcast frequency low, thus reducing bandwidth consumption.\n\n*Advertise Availability* also works well where initiators enter new environments where they have no information at all and should not start flooding the network with requests. *Advertise Availability* allows them to listen in without affecting the network until they decide to initiate a conversation.\n\n## Example: WiFi Hotspots\n\nWireless network access points (aka \"Hot Spots\") broadcast their availability regularly for new devices that came into range to discover them.\n\n## Example: Simple Service Discovery Protocol (SSDP)\n\nThe UPnP (Universal Plug and Play) stack includes a registry-free mechanism for service discovery called [Simple Service Discovery Protocol](https://en.wikipedia.org/wiki/Simple_Service_Discovery_Protocol) (SSDP). SSDP uses the HTTP [*Asynchronous Request-Response*](RequestResponse.html) protocol over a UDP datagram transport, which can broadcast packages on a local sub-network. Participants announce their presence (or their intention to disappear) via the HTTP verb \"\"NOTIFY\"\"to a multicast group of other participants.\n\n**Related patterns:**[*Dynamic Discovery*](DynamicDiscovery.html), [*Asynchronous Request-Response*](RequestResponse.html)\n\n---", "znaku_textu": 2714, "slov": 349, "odkazu": 58, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 14:53:17", "sha256": "c89a058d2c79bca751cf8d2572adf80c8d5e8488cf514e16eb0142b04d937609", "hloubka": 3, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://en.wikipedia.org/wiki/Simple_Service_Discovery_Protocol", "http://creativecommons.org/licenses/by/4.0/"]} {"url": "https://www.enterpriseintegrationpatterns.com/patterns/conversation/Polling.html", "titulek": "Polling - Enterprise Integration Patterns 2", "h1": "", "popis": "Enterprise Integration Patterns", "klicova_slova": "eai, patterns, enterprise, integration, messaging, middleware, eai patterns, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns 2", "og:title": "Polling - Enterprise Integration Patterns 2", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/Polling.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/Polling.png"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Example: WS-Polling"}, {"uroven": 2, "text": "Example: Project Manager"}], "markdown": "| | Polling[Conversation Patterns](index.html) » [Basic Conversations](BasicIntro.html) | [Contents](toc.html)[⇐ Prev](RequestResponseRetry.html)[Next ⇒](SubscribeNotify.html) |\n| --- | --- | --- |\n\nPoll Object [RemotingPatterns]\n\nA service likes to request information from a conversation partner.\n\nHow can a service request information from a provider if an immediate response is not available and it cannot accept unsolicited incoming messages?\n\nMany connection-oriented transport layers, such as TCP/IP, allow data transmission in both directions, independent of which party initiated the connection. However, network infrastructure such as firewalls restrict the ability to establish connections. For example, a PC can establish a connection to a Web site, but the website cannot establish a new connection to a regular PC that sits behind a firewall.A service may simply not be programmed to receive incoming connections as it is often easier to program actively making a connection as opposed to handling incoming connections. Even if the initiator is able to receive incoming messages or connections, its application program may not be interested in doing so. This can be the case if the initiating application can continue processing up to the point where it requires the data from another service. The natural programming model is to make a request, continue processing up to the point where a response is needed and then request the response from the external service. This way the flow of control stays within the application.\n\nHave the requestor poll, i.e., inquire whether results are ready, multiple times if necessary.\n\nThe *Polling* conversation involves the following participants:\n\n- The *Requestor* initiates the conversation with a *Request* and keeps sending *Inquiry* messages until the result becomes available. The *Requestor* expects a response to every *Inquiry* message, either a *Nack* (Negative Acknowledgment), meaning the result is not yet available, or the *Result* message.\n- The *Provider* accepts the *Request* message and begins processing. While processing it can accept *Inquiry* messages, to which it either replies with a *Nack* or the processing results. The *Provider* has to keep the results until the *Requestor* picks them up.\n\n*Polling* requires a [*Correlation Identifier*](/patterns/messaging/CorrelationIdentifier.html) to be agreed between *Requestor* and *Provider*. The identifier can either be selected by the *Requestor* and transmitted with the *Request* or the participants can use [*Quick Acknowledgment*](QuickAck.html) to transmit the identifier in the *Acknowledgment* message. The *Requestor* then includes the identifier in every *Inquiry* message.\n\nThe response to the last inquiry can immediately include the response message or indicate that the results are available (*Ack*), requiring the initiator of the conversation to make a separate request to retrieve the results.\n\n*Polling* is significantly more \"chatty\" than [*Asynchronous Request-Response*](RequestResponse.html)\". It should only be used when either of the communicating parties cannot support a [*Asynchronous Request-Response*](RequestResponse.html)\" conversation. Excessive *Polling* can cause significant load on part of the *Provider* up to the point where it competes with resources with the actual operation.\n\n*Polling* causes a delay in the overall conversation because the results are available before the *Requestor* can realize. The optimal *Polling* rate depends on the expected latency, the \"cost\" of a poll, and the time sensitivity of the request. More frequent *Polling* reduces the delay between the time the results are available and when they are picked up. Unnecessarily frequent polling introduces network and processing overhead. Adaptive polling intervals are conceivable, but run the risk of complicating the conversation. If the *Requestor* has a good approximation of the minimum processing time, it can delay the beginning of *Polling* and possibly use a higher *Polling* frequency without increasing the total overhead:\n\n*Optimizing Polling with a Variable Interval*\n\nIn reality, the *Polling* interval will depend on when the results can be meaningfully processed by the *Requestor*. For example, the *Requestor* may engage in other interactions whose results are needed for further processing. It makes sense to only poll for results once those steps are completed.\n\n*Polling* requires the *Provider* to maintain state at the convenience of the *Requestor*, which should be considered a form of coupling. It can also limit the scalability of the service provider, for example if responses consume large amounts of memory and initiators are slow to pick up their results. Therefore, the service provider may use additional conversation patterns to terminate the conversation, such as a [*Lease*](Lease.html)\", so it can relinquish the allocated result storage if the *Requestor* does not consume the results within a specified length of time. Correspondingly, the *Requestor* has to be prepared that an *Inquiry* results in a *Not Available* message, after which the *Requestor* should stop the conversation.\n\nReliable [*Messaging*](/patterns/messaging/Messaging.html) can often eliminate the need for *Polling*. The *Requestor* can consume results whenever it pleases, alleviating the *Provider* from having to keep results until the *Requestor* picks them up. Storing results in a message queue is generally more efficient than storing them inside the *Provider* as [*Messaging*](/patterns/messaging/Messaging.html) systems are designed to maintain state and use mechanisms such as [*Message Expiration*](/patterns/messaging/MessageExpiration.html) to manage stale data.\n\nThe *Requestor* can also use a Poll Object [10] to implement polling internally, turning it into a Polling Consumer [2]. This allows the consumer application to control when the message is read while still using the preferred [*Asynchronous Request-Response*](RequestResponse.html) conversation with the *Provider*.\n\nIn real life, participants often mix [*Asynchronous Request-Response*](RequestResponse.html) and *Polling*: if a response does not arrive within a \"reasonable\" amount of time, the *Requestor* begins *Polling*. This can occasionally annoy the *Provider*.\n\n## Example: WS-Polling\n\nhttp://www.w3.org/Submission/ws-polling/\n\n## Example: Project Manager\n\nSome project managers who are wondering why a coding task takes so long keep asking for daily status updates.\n\n**Related patterns:**[*Correlation Identifier*](/patterns/messaging/CorrelationIdentifier.html), [*Lease*](Lease.html), [*Message Expiration*](/patterns/messaging/MessageExpiration.html), [*Messaging*](/patterns/messaging/Messaging.html), [*Quick Acknowledgment*](QuickAck.html), [*Asynchronous Request-Response*](RequestResponse.html)\n\n---", "znaku_textu": 6694, "slov": 960, "odkazu": 60, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 14:54:03", "sha256": "5b88de5532e25f6709a17d18739cf1ca54d6013a049318ef09f805d66f344b69", "hloubka": 3, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://creativecommons.org/licenses/by/4.0/"]} {"url": "https://www.enterpriseintegrationpatterns.com/patterns/conversation/Preface.html", "titulek": "Preface - Enterprise Integration Patterns 2", "h1": "", "popis": "Enterprise Integration Patterns", "klicova_slova": "eai, patterns, enterprise, integration, messaging, middleware, eai patterns, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns 2", "og:title": "Preface - Enterprise Integration Patterns 2", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/Preface.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/eip1_patterns_wide.png"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Relationship to \"Enterprise Integration Patterns 1 - Messaging Patterns\""}, {"uroven": 2, "text": "Who Should Read This Book"}, {"uroven": 2, "text": "What You Will Learn"}, {"uroven": 2, "text": "Solving Integration Problems With Patterns"}, {"uroven": 2, "text": "Where are the Icons?"}, {"uroven": 2, "text": "What This Book Does Not Cover"}, {"uroven": 2, "text": "How This Book Is Organized"}], "markdown": "| | Preface[Conversation Patterns](index.html) » Introduction | [Contents](toc.html)[⇐ Prev](index.html)[Next ⇒](toc.html) |\n| --- | --- | --- |\n\n*Work in progress. Last update: Jan 2017*\n\nThis is a book about enterprise integration with a focus on conversations between loosely couped systems. Sadly, it cannot solve all your integration problems, but nor will any other book. Enterprise integration is too broad and deep an area to expect any book to give you step-by-step guidance or easy-to-follow recipes. However, this book helps you to more easily find a suitable integration solution without starting from scratch or reinventing the wheel. It does so by giving you a conceptual framework and intuitive vocabulary that documents recurring integration challenges and corresponding solutions, highlighting design trade-offs and implementation strategies.\n\nThis framework and vocabulary takes the form of a collection of *design patterns*, which, in unison, form a pattern language. Patterns are a popular and time-proven method to capture and convey design expertise in a technology-neutral way, allowing them to be applied to a wide range of implementation scenarios and products:\n\n- ReST-based services\n- Service-oriented Architectures\n- Business-to-business (B2B) integrations exchanges\n- Interactions based on BPML or BPEL workflows\n\n## Relationship to \"Enterprise Integration Patterns 1 - Messaging Patterns\"\n\nThis book is a continuation of the book [*Enterprise Integration Patterns*](/patterns/messaging/index.html) (EIP 1). Astute readers of Volume 1 remarked that the title *Enterprise Integration Patterns* ([[EIP](http://www.amazon.com/exec/obidos/ASIN/0321200683/enterpriseint-20)]) promised a broader scope than the book delivered as it primarily covered asynchronous messaging patterns. Asynchronous messaging is a very elegant and scalable approach, but it is only a part of enterprise integration. At 700 pages, though, it was plenty enough for the first book.\n\nVol. 2 picks up where Vol. 1 left off and makes clear that \"Enterprise Integration Patterns\" requires more than one book. Whereas Vol. 1 concentrates on the flow of messages through a series of nodes, Vol. 2 focuses on stateful conversations between parties over time. It also describes the processes within the endpoints that participate in the conversation. Essentially, Vol. 2 moves \"up the integration stack\": Vol. 1 lays the foundation for reliable asynchronous messaging while Vol. 2 considers solutions on top of a messaging architecture.\n\nWhile Vol. 2 clearly builds on Vol. 1, it is a still a self-contained book. The appendix contains a brief description of all patterns referenced from Vol. 1.\n\n## Who Should Read This Book\n\nJust like *Enterprise Integration Patterns 1*, Vol. 2 aims to address a wide range of audiences. It does so by combining solid design guidance with an intuitive visual language and concrete examples. The following readers will benefit from Vol. 2:\n\n- *Integration Architects* who design interchanges between systems. This book helps them design solutions that ensure consistency, robustness, and efficiency. They can also use the book's vocabulary to efficiently communicate designs to developers.\n- *Service Developers* who build service interfaces that allow other components to access their functionality. This includes both Web services and RESTful services. These developers may use a wide variety of service frameworks like CXF, Windows Communication Foundation, or Node.js.\n- *Enterprise Architects* who maintain the \"big picture\" view of software components and their interactions across the enterprise. This book gives them a consistent vocabulary and a graphical notation to describe and catalog solutions in a meaningful and technology-neutral way.\n- *Process Designers* whose processes invariably interact with other processes or services. The patterns in this book help them design the endpoint processes that support messaging conversations.\n- *Business Analysts* who design interaction flows. This book provides them with a technology-agnostic and approachable vocabulary, which nevertheless includes a precise translation to implementation.\n\n## What You Will Learn\n\nThis book focuses on interactions between systems within the context of enterprise integration or any other distributed system. You will learn how to design robust inter-system conversations by understanding the following:\n\n- The elements of a conversation, including participant roles, message semantics, and the conversation protocol.\n- Ways to precisely but intuitively describe conversations between systems.\n- How to break down a complex conversation into smaller pieces and, vice versa, how to compose a complex interaction from basic ones.\n- The trade-offs and pitfalls in conversation and protocol design.\n- Conversations at different levels of abstractions, including foundational conversations and application-level conversations.\n\n## Solving Integration Problems With Patterns\n\nOriginating from city and building design, design patterns are a special structured format for documenting design knowledge. Ward Cunningham once famously described design patterns as *mind-sized chunks of knowledge*, or *Chicken McNuggets for your mind*. They are not precise specifications or copy-paste-able code recipes. Rather they are for human consumption (like the nuggets) and teach you about a specific design problem, the trade-offs in solving it, and a balanced solution.\n\nPatterns are especially effective in areas where no simple \"paint-by-numbers\" approaches are available. Instead of trying to give step-by-step guidance, patterns capture expert knowledge by discussing a problem, weighing the different forces, presenting an optimal solution and elaborating on implementation considerations. Each pattern sums up the essence of the solution in a pattern *sketch*, following the original patterns in Christopher Alexander's book \"A Pattern Language\" [REF]. The choice of the term \"sketch\" is deliberate: a pattern does not deliver a blueprint, but a general solution to a problem. The fact that this solution can be implemented in a variety of tools or contexts makes up the strength of the pattern format.\n\nIn the early days of design patterns, people argued and philosophized a good bit about the format in which patterns should be documented. As elaborated in *Enterprise Integration Patterns*, I believe that the pattern content is what counts and the form should be such that it doesn't distract from the content. The pattrns in Vol. 2 therefore follow the same format as Vol. 1:\n\n- *Name*\n- *Sketch*\n- *Context*\n- *Problem*\n- *Forces*\n- *Solution*\n- *Results*\n- *Next*\n- *Sidebars*\n- *Examples*\n\nThe individual sections are not labeled because this would disrupt the flow and appear repetitive. Instead, common style elements and markers gently guide you through the pattern and allows you to identify important information with ease.\n\n## Where are the Icons?\n\nThe visual icon language, endearingly referred to as \"Gregorgrams\", was one of EIP 1's most successful features. Many integration patterns book have subsequently adopted the idea of an icon language. EIP 2 maintains the style of visually intuitive \"sketches\" for each pattern. However, conversations are not elements, but rather the lines between them. The pattern sketches therefore cannot be represented as single \"icons\" but have to convey a flow of messages.\n\nTo maintain the spirit of the pattern *sketch*, the diagrams depicting conversations are not precise specifications but use lose semantics in order to highlight the essence of the message interchange. Concrete and precise implementations, for example using BPMN, are described shown in the pattern examples and the interludes that show a collection of patterns being used in a concrete implementation.\n\n## What This Book Does Not Cover\n\nEven in two volumes *Enterprise Integration Patterns* cannot cover everything there is to say about integration in the enterprise. For example, conversations are commonly supported by processes implemented inside the endpoints. Also, many enterprises are adopting event-driven communication models. Both areas certainly use recurring solutions that would benefit from being documented as patterns. A Vol. 3 or Vol. 4 might do so some day.\n\nThis book is also not an introduction or tutorial into specific integration technologies or tools, such as Swagger, WS-Choreography, etc, or process languages such as BPMN or BPEL. Examples and interludes do use BPMN to show a concrete and precise implementation of the patterns. For the details of the language, though, you should refer to one of the many great books.\n\n## How This Book Is Organized\n\nOnce it's written, we will know.", "znaku_textu": 8624, "slov": 1287, "odkazu": 58, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 14:51:58", "sha256": "333c870bc5269e9ad36d8ce1f9c61de8f60f0204ad1fbf69bc83d5959b224349", "hloubka": 3, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://www.amazon.com/exec/obidos/ASIN/0321200683/enterpriseint-20"]} {"url": "https://www.enterpriseintegrationpatterns.com/patterns/conversation/Proxy.html", "titulek": "Proxy - Enterprise Integration Patterns 2", "h1": "", "popis": "Enterprise Integration Patterns", "klicova_slova": "eai, patterns, enterprise, integration, messaging, middleware, eai patterns, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns 2", "og:title": "Proxy - Enterprise Integration Patterns 2", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/Proxy.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/Proxy.png"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Example: Cross-domain Proxy for AJAX Applications"}, {"uroven": 2, "text": "Example: Internet Proxy"}], "markdown": "| | Proxy[Conversation Patterns](index.html) » [Intermediaries](MultiIntro.html) | [Contents](toc.html)[⇐ Prev](MultiIntro.html)[Next ⇒](Relay.html) |\n| --- | --- | --- |\n\nA participant engages with a conversation partner.\n\nHow can a participant communicate with a partner that is not visible or not reachable?\n\nIn widely distributed networks not all services may be reachable directly, for example because services use different addressing schemes or are intentionally separated into multiple segments.Access to a set of participants may be restricted so that a direct connection is not allowed.A central component may want to screen communication between participants or limit which participants can engage in a conversation.A participant may want to stay anonymous by not connecting so another participant directly.\n\nSend messages through a *Proxy*, who forwards them to other participants.\n\nThe *Proxy* conversation involves the following participants:\n\n- The *Initiator* initiates the conversation by sending a message to the *Proxy* .\n- The *Proxy* listens for messages and forwards them to the *Partner* .\n- The *Partner* waits for incoming messages and replies accordingly.\n\nWhile only the transmittal of a single message is shown in the solution sketch, a *Proxy* can support any two-party conversation. For example, to implement [*Asynchronous Request-Response*](RequestResponse.html)\", the *Proxy* has to forward the response message back to the *Initiator*. Most conversations supported by a *Proxy* are point-to-point conversations, meaning the *Initiator* exchanges messages with a specific, well-known *Partner*.\n\nMost *Proxy* are uni-directional, meaning they allow the *Initiator* to establish a conversation (which can include response messages), but it does not allow the partner to do so. This protects participants that are behind the *Proxy* from inbound conversation requests.\n\nWhile a *Proxy* does not buffer messages, a *Proxy* that engages in a conversation may have to track the conversation state in order to forward messages appropriately. For example, if the *Initiator* uses a HTTP connection to connect to the *Proxy*, which in turn connects to the *Partner* via HTTP, the *Proxy* has to maintain the relationship between those two connections so that incoming responses are forwarded to the right *Initiator*.\n\nTypically, *Proxy*s are involved in many concurrent conversations.\n\n*Initiator*s may intentionally use a *Proxy* to hide their true identity or to appear as being from a different locale. This is the principle behind many proxy servers, which for example allow Internet access to location-restricted media content because the *Proxy* resides in a different location.\n\nA *Proxy* \"sees\" all messages exchanged between the participants. The participants must therefore trust the *Proxy* or use additional encryption on the messages.\n\nA *Proxy* may require the *Initiator* to identify itself or to authenticate to the *Proxy*. This is the case in environments where communication between the groups of participants is designed to be restricted. This setup is often used to separate corporate networks from the Internet.\n\nA *Proxy* generally increases latency because two hops are necessary. A *Proxy* also needs to handle many concurrent conversations between different participants and can become a bottleneck. Depending on the underlying protocol, a *Proxy* may need to be stateful in that it needs to understand the state the conversation is in. In the simplest case it may need to be aware of whether an *Initiator* has already authenticated or not.\n\nThe Proxy needs to deal with time-out and error conditions on the *Partner* side and relay such errors to the *Initiator*. This is simplified if the protocol already includes the transport of error conditions as is the case with HTTP.\n\n## Example: Cross-domain Proxy for AJAX Applications\n\nFor security reasons, JavaScript running in a Web browser can only connect to services in the same domain where the script originated (\"same origin policy\"). Many browser mash-ups and other JavaScript applications need to access external data sources, though, for example, a housing map needs to access a housing listing service. To gain access to this external service, the JavaScript connects to a *Proxy* within the same domain as the JavaScript source. The *Proxy* relays requests to the external service. (see Ajax Design Patterns)\n\n## Example: Internet Proxy\n\nMany corporate environments restrict access to the Internet by limiting the sites that are available to be connected to or by actively monitoring traffic. This is typically enforced by not allowing direct outbound connections from the corporate network, but forcing clients to first connect to an *Internet proxy* , which relays the request to the destination. In most cases, users must authenticate to the *Proxy* so that site visits can be attributed to the logged-in user.\n\n**Related patterns:**[*Asynchronous Request-Response*](RequestResponse.html)\n\n---", "znaku_textu": 4876, "slov": 753, "odkazu": 57, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 14:54:09", "sha256": "122f0e93f967ce6e8798ecf0d2e2143942d58c09f08a1814cb0aa742f2b3d3c3", "hloubka": 3, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://creativecommons.org/licenses/by/4.0/"]} {"url": "https://www.enterpriseintegrationpatterns.com/patterns/conversation/QuickAck.html", "titulek": "Quick Acknowledgment - Enterprise Integration Patterns 2", "h1": "", "popis": "Enterprise Integration Patterns", "klicova_slova": "eai, patterns, enterprise, integration, messaging, middleware, eai patterns, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns 2", "og:title": "Quick Acknowledgment - Enterprise Integration Patterns 2", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/QuickAck.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/QuickAcknowledgment.png"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Example: Ordering from Amazon"}, {"uroven": 2, "text": "Example: RosettaNet Request Quote"}], "markdown": "| | Quick Acknowledgment[Conversation Patterns](index.html) » [Basic Conversations](BasicIntro.html) | [Contents](toc.html)[⇐ Prev](SubscribeNotify.html)[Next ⇒](MultiIntro.html) |\n| --- | --- | --- |\n\nSync with Server [RemotingPatterns]\n\nA participant invokes an operation on a service, which can take a long time to process.\n\nHow can a client be sure the service accepted a request, even if processing the request takes a long time?\n\nSome operations provided by a service may take a long time, leaving the client in a state of uncertainty whether the message has been successfully accepted and processing has started, or whether the message was invalid or has not even been received.Conversations often benefit from a \"fail fast\" rule by detecting failures as soon as possible. Following this rule, a service should return an error message as soon as possible so that the consumer is aware of the failure.In the positive case the requestor of a service might also want to know that things are going well and the request is being processed. It's much easier to wait for something when you know it is on the way.\n\nThe service provider sends *Quick Acknowledgment* message shortly after receiving the request, followed by the operation results later.\n\nThe *Quick Acknowledgment* conversation involves the following participants:\n\n- The *Requestor* initiates the conversation by sending a *Request* message to the *Provider*\n- The *Provider* waits for incoming *Request* messages and after quick validation of the message sends an *Acknowledgment* message. After processing the request the *Provider* provides the results to the *Requestor* . Transmitting the results can use a simple *Result* message in case of a [*Asynchronous Request-Response*](RequestResponse.html) conversation, but other conversation styles such [*Polling*](Polling.html) are also possible.\n\nThe acknowledgment message often contains additional information, such as a [*Correlation Identifier*](/patterns/messaging/CorrelationIdentifier.html), which can be used to refer to the same conversation in subsequent messages, e.g. if the *Requestor* wants to use [*Polling*](Polling.html) to check whether the results are available.\n\nSome communication standards use quick acknowledgment messages for each message exchanges, i.e. every message that is sent between participants causes an *Acknowledgment* to be sent in return (see RosettaNet example below).\n\n## Example: Ordering from Amazon\n\nMost on-line stores such as Amazon use *Quick Acknowledgment* by sending an almost immediate order confirmation both as part of the HTTP request, as well as per e-mail (\"Thank you for your order\"). The acknowledgment also contains an order number that serves as [*Correlation Identifier*](/patterns/messaging/CorrelationIdentifier.html) . Time-consuming activities such as stock availability checks or credit card verification are performed after the acknowledgment. Additional e-mail messages notify the initiator of progress or potential error conditions, using implied [*Subscribe-Notify*](SubscribeNotify.html) semantics.\n\n## Example: RosettaNet Request Quote\n\nThe RosettaNet Implementation Framework (RNIF) requires an explicit *Quick Acknowledgment* for all messages. For example, when using [*Asynchronous Request-Response*](RequestResponse.html) 4 messages are exchanges as shown below. RosettaNet requires this even if the transport is a bidirectional, connection oriented channel such as TCP/IP, to be independent from whether the lower-layer transport includes guaranteed delivery. In RosettaNet the acknowledgment message also confirms that the recipient has successfully parsed the message and validated the message schema.\n\n*Source: RosettaNet Implementation Framework: Core Specification Version: Validated 02.00.00 13 July 2001*\n\nIf asynchronous channels are being used, it is possible that the *Requestor* receives the *Quick Acknowledgment* message *after* actual response message. RosettaNet specifies this not to be an error:\n\n*[...] it is possible that for a given request, the Receipt Acknowledgment can arrive after the response message. This MUST NOT be deemed as an out-of-order message. If the response is received before the Receipt Acknowledgment and the request action requires non-repudiation of receipt, then any of the following suggested approaches MAY be followed.*\n\n*A response that arrives before the Receipt Acknowledgment MAY either be queued for processing until the Receipt Acknowledgment is received or processed immediately. If the response is processed immediately, then the process SHALL NOT be completed until the Receipt Acknowledgment is received, since the Receipt Acknowledgment contains the digest information for non-repudiation of receipt. These approaches are suggestive only and the implementer is free to choose a similar approach as long as the result is the same (i.e., the response SHALL NOT be rejected unless a timeout occurs waiting for the Receipt Acknowledgment).*\n\n**Related patterns:**[*Correlation Identifier*](/patterns/messaging/CorrelationIdentifier.html), [*Polling*](Polling.html), [*Asynchronous Request-Response*](RequestResponse.html), [*Subscribe-Notify*](SubscribeNotify.html)\n\n---", "znaku_textu": 5125, "slov": 724, "odkazu": 58, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 14:54:06", "sha256": "28044e0b841dc891c41256f2f0235d9bef9651026740cb479a8144cb2a5f2cc9", "hloubka": 3, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://creativecommons.org/licenses/by/4.0/"]} {"url": "https://www.enterpriseintegrationpatterns.com/patterns/conversation/Referral.html", "titulek": "Referral - Enterprise Integration Patterns 2", "h1": "", "popis": "Enterprise Integration Patterns", "klicova_slova": "eai, patterns, enterprise, integration, messaging, middleware, eai patterns, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns 2", "og:title": "Referral - Enterprise Integration Patterns 2", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/Referral.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/Referral.png"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Example: HTTP 302 and Location Header"}, {"uroven": 2, "text": "Example: Supplier Refers Customer to Shipper"}], "markdown": "| | Referral[Conversation Patterns](index.html) » [Discovery](DiscoveryIntro.html) | [Contents](toc.html)[⇐ Prev](ConsultDirectory.html)[Next ⇒](LeaderElection.html) |\n| --- | --- | --- |\n\nA participant wants to initiate a conversation.\n\nThe choice of conversation partner may depend on the context of a conversation or may change over time. How can an initiator discover the right conversation partner?\n\nThe choice of a conversation partner can depend on the context of a conversation. For example, a participant may be required to interact with the same partner that another participant is already interacting with.Directories are generally context free, i.e. they do not keep track of existing conversations and when assigning an initiator to a partner. They may take workload or proximity information into account, e.g. to avoid overloading a single instance or unnecessary latency. This information tends to be based on lower-level network and server properties and is transparent to the initiator. This type of selection is therefore not based on a specific conversation that is already taking place. In contrast, some conversations require specific information to be passed to an additional partner or the identity of the partner depends on the course of the conversation.Some participants may not want to be \"discovered\". However, \"friends of friends\" are allowed to interact with them.Conversation partners can move. However, some initiators may still access the partner at a previous address.Conversation partners may rely on third parties to perform some functions necessary to service the conversation. At some point in the conversation, a direct interaction between a requesting service and the third party may be desirable or necessary.\n\nOne participant provides a *Referral* to another, such that the two can start to interact.\n\nThe *Referral* conversation involves the following participants:\n\n- The *Initiator* initiates the conversation by sending a message to the *Referrer* .\n- The *Referrer* receives request messages from the *Initiator* and responds with a reference to the *Referral* .\n- The *Referral* accepts messages from the *Initiator* . The *Referral* does not have to be aware of the *Referrer* or the fact that a *Referral* is taking place.\n\nThe purpose of using a *Referral* can be to cross trust boundaries. If the *Referral* trusts the *Referrer* and the *Referrer* trusts the *Initiator* then the *Referrer* is permitted to pass a *Referral* to the *Initiator* to conduct a conversation with the *Referral*. This is sometimes referred to as the \"Mafia approach\" where connections are only made by introduction, i,e, *Referral*.\n\n[*Consult Directory*](ConsultDirectory.html) is a specialized case of *Referral*, where the sole purpose of the *Referrer* is to provide references. In the *Referral* conversation the *Referrer* can take part in the general conversation and only pass the *Referral* during certain points in the conversation. [*Consult Directory*](ConsultDirectory.html) also relies on the *Referral* to be aware of the *Referrer* to register itself. However, in a *Referral* this may not be the case.\n\nLike most [*Discovery*](DiscoveryIntro.html) conversations, *Referral* requires addressability, such as URI's, which can be embedded in a message from the *Referrer* to the *Initiator*. If trust and security are an concern, the *Referrer* may also pass additional information, such as a token, along to assure that the conversation between the *Initiator* and the *Referral* is legitimate. In such a setup the *Referrer* protects access to the *Referral* as in\n\n## Example: HTTP 302 and Location Header\n\nThe HTTP protocol includes a \"302\" status code which indicated \"FOUND\" and can include a location header element in the response to redirect the user agent to another resource. In HTTP/1.0, the 302 code was referred to as \"temporary redirect\".\n\nA user agent may make the following request:\n\n```\nGET /ramblings HTTP/1.1\nHost: www.eaipatterns.com\n```\n\nThe *Referrer* responds with the following HTTP header.\n\n```\nHTTP/1.1 302 Found\nLocation: /ramblings.html\n```\n\nSubsequently the *Initiator* issues the following request:\n\n```\nGET /ramblings.html HTTP/1.1\nHost: www.eaipatterns.com\n```\n\n## Example: Supplier Refers Customer to Shipper\n\nWhen a customer orders from an on-line supplier, such as Amazon, the supplier often refers the customer to the shipper's service, for example FedEx's or UPS's tracking service. This referral usually includes a token, so that the customer can retrieve the information from the shipper that is associated with his or her order.\n\n**Related patterns:**[*Consult Directory*](ConsultDirectory.html), [*Discovery*](DiscoveryIntro.html)\n\n---", "znaku_textu": 4575, "slov": 688, "odkazu": 57, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 14:53:25", "sha256": "0463b4791534437de140519f55da91e203ed24a5df116219ef735e253cc7d377", "hloubka": 3, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://creativecommons.org/licenses/by/4.0/"]} {"url": "https://www.enterpriseintegrationpatterns.com/patterns/conversation/Relay.html", "titulek": "Relay - Enterprise Integration Patterns 2", "h1": "", "popis": "Enterprise Integration Patterns", "klicova_slova": "eai, patterns, enterprise, integration, messaging, middleware, eai patterns, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns 2", "og:title": "Relay - Enterprise Integration Patterns 2", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/Relay.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/Relay.png"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Example: Chat Server (XMPP)"}, {"uroven": 2, "text": "Example: Amazon SQS (Simple Queue Service)"}], "markdown": "| | Relay[Conversation Patterns](index.html) » [Intermediaries](MultiIntro.html) | [Contents](toc.html)[⇐ Prev](Proxy.html)[Next ⇒](LoadBalancer.html) |\n| --- | --- | --- |\n\nParticipants want to engage in a two-way conversation.\n\nHow can participants engage in a two-way communication when each participant is limited to outbound requests?\n\nMany underlying communication protocols such as TCP are connection-oriented, meaning one participant has to initiate a connection to the other participant. Once established, the connections allows data exchange in both directions.Many networks restrict communication to outbound requests, meaning data can only be received as a response to a request but not unsolicited.\n\nThe participants make outbound requests to a *Relay* which makes messages from one participant available to the other.\n\nThe *Relay* conversation involves the following participants:\n\n- The *Initiator* initiates the conversation by sending a message to the *Relay* . The *Initiator* may not be aware of the identity of the *Partner.*\n- The *Relay* listens for messages and stores them until the *Partner* requests a message.\n- The *Partner* requests messages from the *Relay* and processes them, sending responses back to the *Relay* .\n\nA *Relay* is useful to enable inbound and outbound communication when both participants reside behind a firewall or a [*Proxy*](Proxy.html).\n\nWhile only the transmission of a simple message from the *Initiator* to the *Partner* is shown in the solution sketch, a *Relay* can support any type of conversation; each message transmission that is part of the conversation is split into two parts: a message sent to the *Relay* and [*Polling*](Polling.html) by the recipient. For example, a [*Asynchronous Request-Response*](RequestResponse.html) conversation can be implemented over a *Relay* by using one *Relay* for each direction:\n\nA *Relay* can introduce significant overhead into a conversation because for each message [*Polling*](Polling.html) is used, which results in many messages (with empty results) being exchanged for a single message of the \"higher level\" conversation. This happens when basic HTTP connections are used by two participants which need to exchange data but each reside behind a firewall. Due to this inefficiency, most modern web-based systems either use [Bidirectional-streams Over Synchronous HTTP (BOSH)](https://en.wikipedia.org/wiki/BOSH) or WebSockets to avoid excessive [*Polling*](Polling.html). Instead of short-lived polling requests BOSH has the *Partner* make a long-running request that stays open until data is returned.\n\nBecause the *Initiator* and the *Partner* don't communicate directly with each other, an additional addressing scheme on top of the addressing scheme of the message transport is needed. For example, if the *Initiator* uses HTTP as the underlying protocol, it will connect to the URL of the *Relay* and transmit the message data. For the *Partner* to receive the right message it needs to have a way to specify which messages it is interested in. The same addressing scheme (URL's) can be used as extra data in the messages. Other setups use addressing schemes from related distributed system architectures such as [tuple spaces](https://en.wikipedia.org/wiki/Tuple_space), which stores tuples into a \"blackboard\", which can be retrieved by other participants, as it is implemented for example in Jini JavaSpaces. The purpose of such systems generally goes much beyond that of a *Relay*, though, to build a collaborative distributed computing environment. In contrast, a *Relay* is merely trying to overcome restrictions in the communication channels.\n\nUnlike a [*Proxy*](Proxy.html)A *Relay* needs to store content between the time the *Initiator* makes it available and the time when the *Partner* picks it up. This makes the *Relay* a stateful component. Such a storage intermediary can be likened to a [Blackboard](https://en.wikipedia.org/wiki/Blackboard_system) architecture. As messages have to be buffered by the *Relay* and are generally to be delivered in order, a one-way *Relay* can be built using a [*Messaging*](/patterns/messaging/Messaging.html) system and a [*Polling Consumer*](/patterns/messaging/PollingConsumer.html) is used: the *Initiator* places messages into the [*Message Channel*](/patterns/messaging/MessageChannel.html) to be picked up by the *Partner*.\n\nAs a stateful component, a *Relay* must manage its resources, e.g. by using [*Resource Management*](ResourceIntro.html) patterns, such as a [*Lease*](Lease.html). If [*Messaging*](/patterns/messaging/Messaging.html) is used to implement the *Relay*, [*Message Expiration*](/patterns/messaging/MessageExpiration.html) is commonly used.\n\nSame as with a [*Proxy*](Proxy.html), a *Relay* \"sees\" all messages exchanged between the participants. The participants must therefore trust the *Relay* or use additional encryption on the messages. Furthermore, participants may not know the identities of their conversation partners. This may be a design feature, but can also introduce security risks.\n\n## Example: Chat Server (XMPP)\n\n## Example: Amazon SQS (Simple Queue Service)\n\nAmazon Web Services can serve as a one-way *Relay* by using their their [Simple Queue Service](https://aws.amazon.com/sqs). The addressing scheme used is a queue name which is specified on top of the \"endpoint\", which identifies the data center the queue is hosted in. When creating a queue you also specify the [*Message Expiration*](/patterns/messaging/MessageExpiration.html) policy. You can add messages to the queue via HTTP GET or POST and retrieve messages via HTTP GET as in the following example:\n\nhttp://sqs.us-east-1.amazonaws.com/123456789012/testQueue/?Action=ReceiveMessage&WaitTimeSeconds=10&MaxNumberOfMessages=5&AUTHPARAMS\n\nYou can use multiple queues to implement other conversations, e.g. a pair of queues to implement asynchronous [*Asynchronous Request-Response*](RequestResponse.html). To avoid excessive [*Polling*](Polling.html), Amazon promotes using [Long Polling](http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-long-polling.html), which delays sending a response instead of sending an empty response quickly\n\n**Related patterns:**[*Lease*](Lease.html), [*Message Channel*](/patterns/messaging/MessageChannel.html), [*Message Expiration*](/patterns/messaging/MessageExpiration.html), [*Messaging*](/patterns/messaging/Messaging.html), [*Polling*](Polling.html), [*Polling Consumer*](/patterns/messaging/PollingConsumer.html), [*Proxy*](Proxy.html), [*Asynchronous Request-Response*](RequestResponse.html), [*Resource Management*](ResourceIntro.html)\n\n---", "znaku_textu": 6542, "slov": 903, "odkazu": 66, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 14:54:10", "sha256": "5a622724ee8d169f77033cef0b6a82f2a0702dd866e9badd09a5e503b3356439", "hloubka": 3, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://en.wikipedia.org/wiki/BOSH", "https://en.wikipedia.org/wiki/Tuple_space", "https://en.wikipedia.org/wiki/Blackboard_system", "https://aws.amazon.com/sqs", "http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-long-polling.html", "http://creativecommons.org/licenses/by/4.0/"]} {"url": "https://www.enterpriseintegrationpatterns.com/patterns/conversation/RenewalReminder.html", "titulek": "Renewal Reminder - Enterprise Integration Patterns 2", "h1": "", "popis": "Enterprise Integration Patterns", "klicova_slova": "eai, patterns, enterprise, integration, messaging, middleware, eai patterns, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns 2", "og:title": "Renewal Reminder - Enterprise Integration Patterns 2", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/RenewalReminder.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/RenewalReminder.png"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Example: Magazine Subscription"}], "markdown": "| | Renewal Reminder[Conversation Patterns](index.html) » [Resource Management](ResourceIntro.html) | [Contents](toc.html)[⇐ Prev](Lease.html)[Next ⇒](EnsuringConsistencyIntro.html) |\n| --- | --- | --- |\n\nA provider engages in long-running conversations with multiple partners. Each of these conversations requires the provider to allocate resources.\n\nHow can a service provider avoid holding resources for clients who are no longer interested?\n\nA [*Lease*](Lease.html) allows the provider to set the length of the resource allocation at the time of the request but it has no means to shorten or rescind allocations for example when it experiences a shortage of resources. In such a case it can only reject new requestors.A [*Lease*](Lease.html) requires the lease holder to actively monitor the duration of the lease to renew in time. This might be cumbersome for some clients.In ditributed systems clocks may get out of sync, causing a lease holder to believe the lease is still valid, while the lease grantor already expired the lease.\n\nHave the provider periodically check whether the requestor still requires the resource. If the requestor answers \"no\" or is unreachable, the provider relinquishes the resource.\n\nThe *Renewal Reminder* conversation involves the following participants:\n\n- The *Requestor* initiates the conversation by *Request* ing a resource. In return he receives a message containing a *Reference* to the allocated resource. Periodically, the *Requestor* receives a *Ping* from the provider. In order to retain the resource it must *Confirm* the ping.\n- The *Provider* accepts *Request* messages for resources and grants them if resources are available, returning the *Reference* to the resource. Periodically, or when resources are tight, the *Provider* sends a *Ping* to one or more *Requestor* s. It expects to receive a *Confirm* message in order to retain the resource.\n\n*Renewal Reminder* consists of multiple [*Asynchronous Request-Response*](RequestResponse.html) conversations, one initiated by the *Requestor* and recurring instances initiated by the *Provider*. For both occasions, the participants may use [*Request-Response with Retry*](RequestResponseRetry.html). Especially for the *Ping* message, through, retry counts will be low as its purpose is to detect unresponsive *Requestor*s.\n\n*Renewal Reminder* gives the provider more control but also burdens it with more house keeping. In the flip side the consumer can be simpler as it does not have to track the expiration of the lease or initiate renewals. It does, however have to be able to respond to incoming request messages to process the *Ping* message.\n\nIf resources are plentiful, this conversation can result in very low traffic as the provider will have little need to ping requestors. As the provider gets into a space crunch it can react by pinging, hoping that some clients are no longer present or no longer need their resource.\n\nIf a client is unreachable, the *Provider* can decide to retry the request or relinquish the resource on the spot. This can leave provider and consumer in an inconsistent state: the consumer, not aware that the provider tried to contact it, might be under the impression that the resource is still available whereas the provider has already cancelled it.\n\nGenerally, *Renewal Reminder* exhibits more coupling between participants than : the provider has to track all requestors and their addresses as message exchange occurs in both directions.\n\n## Example: Magazine Subscription\n\nIn this case the provider is eager to have the requestor renew the resource because it is paid. It uses the *Renewal Reminder* conversation but with a [*Request-Response with Retry*](RequestResponseRetry.html) conversation for the *Ping* with often an (annoyingly) high retry count.\n\n**Related patterns:**[*Lease*](Lease.html), [*Asynchronous Request-Response*](RequestResponse.html), [*Request-Response with Retry*](RequestResponseRetry.html)\n\n---", "znaku_textu": 3869, "slov": 585, "odkazu": 57, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 14:54:18", "sha256": "907d7cda49af3377b1395238d1f26e74609c5c5689efb257ff921036b5287503", "hloubka": 3, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://creativecommons.org/licenses/by/4.0/"]} {"url": "https://www.enterpriseintegrationpatterns.com/patterns/conversation/RequestResponse.html", "titulek": "Asynchronous Request-Response - Enterprise Integration Patterns 2", "h1": "", "popis": "Enterprise Integration Patterns", "klicova_slova": "eai, patterns, enterprise, integration, messaging, middleware, eai patterns, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns 2", "og:title": "Asynchronous Request-Response - Enterprise Integration Patterns 2", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/RequestResponse.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/RequestResponse.png"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Conversation States"}, {"uroven": 2, "text": "Error Handling"}, {"uroven": 2, "text": "Comparing with Fire-an-Forget"}, {"uroven": 2, "text": "Comparing with Remote Procedure Call"}], "markdown": "| | Asynchronous Request-Response[Conversation Patterns](index.html) » [Basic Conversations](BasicIntro.html) | [Contents](toc.html)[⇐ Prev](FireAndForget.html)[Next ⇒](RequestResponseRetry.html) |\n| --- | --- | --- |\n\nResult Callback [RemotingPatterns]\n\nA service has identified a conversation partner.\n\nHow can a consumer request information from a provider?\n\nMessage channels often transport messages only in a single direction. For a bi-directional exchange of information, two channels may be necessary.Some connection-oriented channels, such as TCP/IP allow sending and receiving data over one connection. Still, the exchange involves two separate messages and message formats.\n\nUse two messages, a request message and a response message.\n\nThe *Asynchronous Request-Response* conversation involves the following participants:\n\n- The *Requestor* initiates the conversation by sending a *Request* message amd waits for a *Response* message.\n- The *Provider* waits for incoming *Request* messages and replies with *Response* messages.\n\nAs with most conversations, when using *Asynchronous Request-Response* over asynchronous message channels, the requestor is responsible for matching the *Response* message to the appropriate *Request*. Because the asynchronous nature of the conversation, the *Requestor* can engage in more than one *Asynchronous Request-Response* conversation at one time, which results in response messages potentially arriving in a different order than the requests were sent. This can happen because some requests may be processed more quickly (or by a different service instance) than others. The *Requestor* should therefore equip messages with a unique [*Correlation Identifier*](/patterns/messaging/CorrelationIdentifier.html)to tie the messages to the conversation.\n\n## Conversation States\n\nThe *Asynchronous Request-Response* conversation has a single state, \"Waiting for response\". The service provider does not have to keep a conversation state because all it does is process a *Request* and subsequently send a *Response* message. This makes the *Asynchronous Request-Response* conversation stateless from the *Provider*'s perspective and also implies that subsequent conversations can be serviced by different *Provider*instances.\n\nThe *Requestor* can avoid tracking the conversation state if the response message contains all data necessary for the initiator to process it, \"flattening\" the conversation into a [*Pipes and Filters*](/patterns/messaging/PipesAndFilters.html)-style message flow.\n\nSome *Provider*s allow the *Requestor* to pass through additional data of their choice, which the *Provider* copies from the *Request* message to the *Response* message. This can help the *Requestor* avoid keeping local state, but it also increases network traffic and can cause security concerns as the *Requestor* could be manipulated by injecting data into *Response* messages.\n\n## Error Handling\n\nThe *Requestor* must be prepared to handle the following error conditions:\n\n1. A *Response* message may never arrive, or not arrive within an expected time interval. This can happen because channels are not reliable, very slow, or because the service provider failed. Because the *Requestor* cannot tell why the message is not received it leaves the *Requestor* in a state of uncertainty about the *Provider* 's state. To address the error condition, the consumer can either resend the message, resulting in [*Request-Response with Retry*](RequestResponseRetry.html) , or [*Ignore Error*](IgnoreError.html) .\n2. The *Response* message can indicate an application-level error condition. This may happen for example if the request contains invalid data and the service provider indicates that it did not process the request.\n3. The *Response* message may be ill formed or otherwise invalid, preventing the initiator from processing it successfully.\n4. Because *Request* and *Response* messages travel over separate channels, the *Requestor* may receive a *Response* message for a different request than expected. In some cases it may even receive a (possibly well-formed) *Response* to a request that it did not even make. This can happen for example, if the channel is implemented as a persistent message queue and a faulty client crashed before it consumed the *Response* message, causing it to remain on the channel. When the client restarts and sends a new request, it may be reading the previous response from the channel. If the *Response* message is not self-contained, the *Requestor* does not have much choice but to discard this message.\n\n## Comparing with Fire-an-Forget\n\nThe similarity between the implementation of Request-Response and the use of two Fire-and-Forget interactions highlights the fact that the patterns convey more than simply the technical solution -- they convey the intent behind the solution. If the fact that the response message returns to the original initiator is purely coincidental, one would express the interaction as two Fire-and-Forget interactions, highlighting the fact that the sameness of initiator and recipient of the second message is coincidental and is not core to the intent of the solution.\n\n## Comparing with Remote Procedure Call\n\nThis basic conversation is often compared to (or confused with) [*Remote Procedure Invocation*](/patterns/messaging/EncapsulatedSynchronousIntegration.html), also known as Remote Procedure Call (RPC). However, the two patterns' intent is quite different: RPC's purpose is to invoke a method on another component and to return the results to the invoker. *Asynchronous Request-Response* does not tie specific semantics to the exchange of messages. The message exchange may be used to invoke a method, query information, or the reply may simply acknowledge the receipt of a message. RPC is also often tied to a synchronous client-side programming model, which makes the conversation look like a method call on the client side. This provides convenience for developers, who are used to working with synchronous method calls, but can result in brittleness and poor performance as the simple programming model masks the inherent challenges of the networked interaction, such as latency, partial failure etc.\n\n**Related patterns:**[*Correlation Identifier*](/patterns/messaging/CorrelationIdentifier.html), [*Remote Procedure Invocation*](/patterns/messaging/EncapsulatedSynchronousIntegration.html), [*Ignore Error*](IgnoreError.html), [*Pipes and Filters*](/patterns/messaging/PipesAndFilters.html), [*Request-Response with Retry*](RequestResponseRetry.html)\n\n---", "znaku_textu": 6428, "slov": 922, "odkazu": 60, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 14:54:01", "sha256": "214a822cb9e8843d8710b940721d78b42006a99b88552a2aea906ab03a92fe2e", "hloubka": 3, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://creativecommons.org/licenses/by/4.0/"]} {"url": "https://www.enterpriseintegrationpatterns.com/patterns/conversation/RequestResponseRetry.html", "titulek": "Request-Response with Retry - Enterprise Integration Patterns 2", "h1": "", "popis": "Enterprise Integration Patterns", "klicova_slova": "eai, patterns, enterprise, integration, messaging, middleware, eai patterns, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns 2", "og:title": "Request-Response with Retry - Enterprise Integration Patterns 2", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/RequestResponseRetry.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/RequestResponseRetry.png"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Idempotency"}, {"uroven": 2, "text": "Dynamic System Behavior"}, {"uroven": 2, "text": "Application-level Error Conditions"}, {"uroven": 2, "text": "Example: RosettaNet Implementation Framework"}], "markdown": "| | Request-Response with Retry[Conversation Patterns](index.html) » [Basic Conversations](BasicIntro.html) | [Contents](toc.html)[⇐ Prev](RequestResponse.html)[Next ⇒](Polling.html) |\n| --- | --- | --- |\n\nTwo services engage in a [*Asynchronous Request-Response*](RequestResponse.html) conversation.\n\nHow can a consumer deal with a missing response message in a Request-Response conversation?\n\nBecause [*Asynchronous Request-Response*](RequestResponse.html) uses separate messages for the request and the response, the initiator may expect a response message, but never receive it.Remote communication can fail for a number of reasons, many of which may be intermittent. For example, a network router may be unavailable, or service may not be operating. Such circumstances can cause a valid operation to fail some time and succeed another time.If both initiator and provider are [*Transactional Client*](/patterns/messaging/TransactionalClient.html)s in combination with [*Guaranteed Delivery*](/patterns/messaging/GuaranteedMessaging.html), no messages are lost – the message is either in the request channel, being processed by the service, or in the reply channel. However, using this type of interchange requires three transactions: one to enqueue the request, one to process it, and one to consume the response [19].Even if no message is lost, the initiator may become \"impatient\". For example, the request may be processed by a very slow service provider. The initiator may get a faster response by sending a new request.\n\nHave the consumer retry the request if it does not receive a response within a certain time interval. Make both the initiator and the service idempotent so they can deal with duplicate messages.\n\nThe *Request-Response with Retry* conversation involves the following participants:\n\n- The *Requestor* initiates the conversation by sending a *Request* message. If no *Response* message is received within a certain time interval, the *Requestor* re-sends the request.\n- The *Provider* waits for incoming *Request* messages and replies with *Response* messages.\n\nThe \"happy path\" of the *Request-Response with Retry* conversation is identical to [*Asynchronous Request-Response*](RequestResponse.html). However, the *Requestor* uses a time-out condition to decide how long to wait for a *Response* message. If the *Response* message does not arrive within that time window, the *Requestor* resends the *Request* message. The challenge in most conversations, that also exemplifies in this very simple patter, is that the participants cannot know the real state of other participants - they have to derive that state based on the observed messages, which in typically run the risk of getting lost.\n\n## Idempotency\n\nFor example, the time-out in *Request-Response with Retry* may have been triggered as a result of a lost (or delayed) *Response* message. The *Requestor* cannot distinguish this scenario from one where the *Request* got lost and the only recourse it has is to resend the *Request* message, causing the *Provider* to receive the same *Request* message, which was already processed before, a second time. If the operation is inherently idempotent (such as a read operation), the provider can simply re-execute the operation and send the new *Response* message to avoid holding any state. If the service provides rapidly changing data it may even be desired that the *Provider* sends \"fresh\" data on a new request. However, as this conversation does not distinguish \"Retry\" from a new conversation instance, it ends up following the [*Asynchronous Request-Response*](RequestResponse.html) conversation without any error handling.\n\nIf the *Provider* wants to avoid performing the requested action a second time, it has to be built as an [*Idempotent Receiver*](/patterns/messaging/IdempotentReceiver.html), i.e. it must be able to distinguish a resent message from two distinct requests, which can also happen to contain the same data. To aid the service in detecting duplicates, the initiator can equip the resent message with the same [*Correlation Identifier*](/patterns/messaging/CorrelationIdentifier.html). If the provider has already processed the a message with the same [*Correlation Identifier*](/patterns/messaging/CorrelationIdentifier.html) before, it can skip the requested operation and simply return the previously constructed *Response* message. Being able to re-send response messages requires the *Provider* to cache *Response* messages at the convenience of the *Requestor*, making this conversation no longer stateless from the provider's perspective: the provider needs to keep a list of received conversation IDs, and possibly a list of already sent responses.Holding state at the convenience of a conversation is a form of coupling that should be managed, e.g. by using [*Resource Management*](ResourceIntro.html) patterns.\n\nThe initiator has to deal with duplicate messages as well. The service provider might have sent a *Response* through an asynchronous message queue just as the consumer decided to give up waiting. In this case the consumer resends the *Request* message, just to receive the original *Response* message a fraction of a second later. This makes the consumer happy, but a little while later it will receive another *Response* message from the *Provider* who processed the resent request. The *Requestor* should ignore this message as the previous *Response* message had already been processed. This the *Requestor* has to be idempotent as well. This consideration highlights the symmetry of the [*Asynchronous Request-Response*](RequestResponse.html) conversation in contrast to the inherently asymmetric method invocation, which serves as role model for [*Remote Procedure Invocation*](/patterns/messaging/EncapsulatedSynchronousIntegration.html).\n\n## Dynamic System Behavior\n\nA simple extension of [*Asynchronous Request-Response*](RequestResponse.html) with a *Retry* message significantly increases the dynamic behavior of the overall system. For example, if a *Provider* serves many *Requestor*s, a heavy load may increase response times, which in turn causes the *Requestor*s to start detecting time-out conditions and to send additional *Request* messages with the intent to retry the operation. The additional messages only increase the load on the *Provider*, exacerbating the situation. What was intended as a means to increase the reliability of the system has now become a reason the overall stability of the system decreased. [*Guaranteed Delivery*](/patterns/messaging/GuaranteedMessaging.html) can help reduce such situations by relegating retries to the lower-level messaging system, giving the application-layer protocol the assurance that the message won't be lost.\n\nIn systems without [*Guaranteed Delivery*](/patterns/messaging/GuaranteedMessaging.html), two strategies are common:\n\n- A *maximum retry count* avoids overloading the system with infinite retries. Instead the *Requestor* reports an error to the application layer after a specified number of resent request messages.\n- *Exponential backoff* increases the timeout interval after each time-out condition by a factor, e.g. 2, which doubles the timeout after each \"missed\" *Response* message.\n- *Circuit breakers* track the state of a *Provider* : if previous *Request* messages have led to timeouts, the *Requestor* assumes the *Provider* is either hopelessly overloaded or in an error state and will return an error immediately to the application instead of making a new request, which likely results in another timeout.\n\n## Application-level Error Conditions\n\nIf the *Requestor* application fails, it may or may not detect the state of the state of a conversation that was in progress? If all parties are [*Transactional Client*](/patterns/messaging/TransactionalClient.html)s, and the message channel can provide information as to which message IDs have been pushed to the channel, the *Requestor* can recover the conversation state without resending messages ([19]). If the system is not transactional, the client would likely resend the message.\n\nError recovery from conversations is a complex topic. *Request-Response with Retry* is the application of the Retry error recovery pattern in a [*Asynchronous Request-Response*](RequestResponse.html) conversation. For more detail on error handling strategies see [*Ensuring Consistency*](EnsuringConsistencyIntro.html)\n\n## Example: RosettaNet Implementation Framework\n\nThe [RosettaNet Implementation Framework 02.00.00](http://xml.coverpages.org/RNIF-Spec020000.pdf) states in Sections **2.6.5 Receipt Acknowledgment** and **2.6.6 Handling Retries and Late Acknowledgments**:\n\n*As established earlier, the trading partner sending an action message retries the message until either a Signal (Receipt Acknowledgment or Exception) is received or a timeout condition occurs. Hence, the receiver MUST be prepared to receive the same action message more than once. In such a case, if the action requires a Receipt Acknowledgment, the Receipt Acknowledgment (or Exception if there is a failure) MUST be resent.*\n\nThe RosettaNet PIPs (Partner Interface Process) specifies the Time To Acknowledge, Time To Perform, and Retry Count parameters to guide when and how often an action can be retried.\n\n**Related patterns:**[*Correlation Identifier*](/patterns/messaging/CorrelationIdentifier.html), [*Remote Procedure Invocation*](/patterns/messaging/EncapsulatedSynchronousIntegration.html), [*Ensuring Consistency*](EnsuringConsistencyIntro.html), [*Guaranteed Delivery*](/patterns/messaging/GuaranteedMessaging.html), [*Idempotent Receiver*](/patterns/messaging/IdempotentReceiver.html), [*Asynchronous Request-Response*](RequestResponse.html), [*Resource Management*](ResourceIntro.html), [*Transactional Client*](/patterns/messaging/TransactionalClient.html)\n\n---", "znaku_textu": 9686, "slov": 1367, "odkazu": 63, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 14:51:20", "sha256": "af8cac5199010d17cc18cef969e341878181680fe841083667d58d536d21d6b0", "hloubka": 3, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://xml.coverpages.org/RNIF-Spec020000.pdf", "http://creativecommons.org/licenses/by/4.0/"]} {"url": "https://www.enterpriseintegrationpatterns.com/patterns/conversation/ResourceIntro.html", "titulek": "Introduction to Resource Management - Enterprise Integration Patterns 2", "h1": "", "popis": "Enterprise Integration Patterns", "klicova_slova": "eai, patterns, enterprise, integration, messaging, middleware, eai patterns, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns 2", "og:title": "Introduction to Resource Management - Enterprise Integration Patterns 2", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/ResourceIntro.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/eip1_patterns_wide.png"}, "jsonld": [], "drobecky": [], "osnova": [], "markdown": "| | Introduction to Resource Management[Conversation Patterns](index.html) » [Resource Management](ResourceIntro.html) | [Contents](toc.html)[⇐ Prev](HeartBeat.html)[Next ⇒](IncrementalStateBuild.html) |\n| --- | --- | --- |\n\nSome conversations do not have a natural termination point. For example, [*Subscribe-Notify*](SubscribeNotify.html) continues indefinitely, unless the subscriber or the provider explicitly terminate it. Many other conversations require providers to allocate resources, such as storage, connections, or money for another conversation participant, such as a service consumer. In a loosely coupled setting, the provider should not hold these resources indefinitely, but should make sure the consumer is still present and does still require the resources. Otherwise, the service may hold resources for no longer existing clients and run out of resources before too long.\n\nThe following considerations play an important role in conversations that deal with resource management.\n\n- *Explicit vs. implicit termination.* A conversation can be explicitly terminated by sending a specific message or implicitly, e.g. through a period of inactivity.\n- *Who can terminate?* Some conversations can be terminated by any party while others can only be cancelled by a specific party.\n- *Division of responsibility.* The responsibility to keep a conversation alive can rest with the initiator or the service provider, or both.\n- *Notification vs. silent termination* . One party may decide to terminate the conversation without notifying the other party. The other party may find out implicitly or by encountering an error when it attempts to continue the conversation.", "znaku_textu": 1637, "slov": 223, "odkazu": 56, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 14:54:15", "sha256": "3fee254f52ee9ff3f7b9b4d35a2b359109f45af48d6ca7d6d1053478d46c8e7a", "hloubka": 3, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": []} {"url": "https://www.enterpriseintegrationpatterns.com/patterns/conversation/RotateTokens.html", "titulek": "Rotate Tokens - Enterprise Integration Patterns 2", "h1": "", "popis": "Enterprise Integration Patterns", "klicova_slova": "eai, patterns, enterprise, integration, messaging, middleware, eai patterns, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns 2", "og:title": "Rotate Tokens - Enterprise Integration Patterns 2", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/RotateTokens.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/eip1_patterns_wide.png"}, "jsonld": [], "drobecky": [], "osnova": [], "markdown": "You can reuse the following elements under the [Creative Commons Attribution](http://creativecommons.org/licenses/by/4.0/) license: pattern icon, pattern name, problem and solution statements (in bold), and the sketch. Other portions are protected by copyright.", "znaku_textu": 261, "slov": 31, "odkazu": 57, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 14:53:49", "sha256": "1608ec1eaf98c8654eb2fc67f64ba9b7ac345134b0d2457492bd188e5a2673e6", "hloubka": 3, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://creativecommons.org/licenses/by/4.0/"]} {"url": "https://www.enterpriseintegrationpatterns.com/patterns/conversation/SubscribeNotify.html", "titulek": "Subscribe-Notify - Enterprise Integration Patterns 2", "h1": "", "popis": "Enterprise Integration Patterns", "klicova_slova": "eai, patterns, enterprise, integration, messaging, middleware, eai patterns, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns 2", "og:title": "Subscribe-Notify - Enterprise Integration Patterns 2", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/SubscribeNotify.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/SubscribeNotify.png"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Example: Streaming Results from a Long-running Query"}, {"uroven": 2, "text": "Example: Stock Ticker Subscription"}, {"uroven": 2, "text": "Example: WS-Eventing"}, {"uroven": 2, "text": "Example: WS-Notification"}, {"uroven": 2, "text": "Example: JMS"}], "markdown": "| | Subscribe-Notify[Conversation Patterns](index.html) » [Basic Conversations](BasicIntro.html) | [Contents](toc.html)[⇐ Prev](Polling.html)[Next ⇒](QuickAck.html) |\n| --- | --- | --- |\n\nMulti-responses, Streamed responses\n\nA participant wants to retrieve information from another participant.\n\nHow can one participant receive information from another participant if that information cannot easily be packaged into a single message?\n\nA participant could try to aggregate as many individual messages into a larger message as possible, but most messaging systems have size limits for messages.Large messages can overburden the receiver who has to parse the message -- an operation typically performed in memory. Especially parsing large XML messages, which are still in widespread use, tax the receiving system's memory and CPU resources.The individual data to be transmitted may be time sensitive. Storing and aggregating it into a single message would reduce the data's value for the recipient.The response data may not be a finite set of data but a continuous stream of data, which would make it impossible to know when to bundle up messages.\n\nThe interested participant, or Subscriber, initiates a *Subscribe-Notify* conversation by sending a message to the Provider that expresses its interest in data the Provider can supply. The Provider subsequently keeps sending notification messages to the Subscriber until a stop condition is reached.\n\nThe *Subscribe-Notify* conversation involves the following participants:\n\n- The *Subscriber* initiates the conversation by sending a *Subscribe* message that expresses interest in receiving notification messages. The interest may be defined by the provider's address or the *Subscribe* message can contain information as to what messages the *Subscriber* would like to receive, e.g. through a list of *Topics* .\n- The *Provider* waits for incoming *Subscribe* messages and delivers a stream of *Notify* messages to the *Subscriber* at the pace in which data becomes available or events occur.\n\n*Subscribe-Notify* requires the originator, i.e. the *Subscriber* to receive inbound messages, which can be a challenge in situations where it sits behind a firewall that allows only outbound connections. In such cases, the conversation has to fall back to the initiator using [*Polling*](Polling.html).\n\n*Subscribe-Notify* makes more efficient use of network resources than [*Polling*](Polling.html). Even if the *Subscriber* knows the appropriate interval to poll, *Subscribe-Notify* transmits only half as many messages as a repeated Request-Response, ignoring administrative messages, such as [*Lease*](Lease.html) or [*Renewal Reminder*](RenewalReminder.html).\n\n*Subscribe-Notify* is particularly efficient if the *Subscriber* cannot judge the interval at which interesting events occur, or if this frequency varies widely. As long as no noteworthy events occur, no messages have to be sent.\n\n*Subscribe-Notify* forces the *Subscriber* to wait for an update rather than to actively request a status. For slow-changing data streams, new subscribers may want to request the current state immediately instead of waiting for the next regular update. For this purpose, the *Subscribe* message may be acknowledged with an immediate *Notify* message to the new subscriber.\n\nMost systems establish an ontology to express interest in specific topics and subtopics, as described in [*Publish-Subscribe Channel*](/patterns/messaging/PublishSubscribeChannel.html)\n\nThe *Provider* may acknowledge the subscription immediately using a [*Quick Acknowledgment*](QuickAck.html). Some *Provider*s may also provide a list of active subscriptions to the *Subscriber*.\n\nThe *Subscribe-Notify* conversation does not have a natural stopping point -- notification messages could continue indefinitely. Therefore, a stopping condition is needed. Typical stopping conditions are:\n\n- The *Subscriber* sends a stop request in form of an *Unsubscribe* message.\n- The conversation uses a [*Lease*](Lease.html) , causing the conversation to stop after a deadline is reached without the subscriber renewing interest.\n- If the channel is connection-oriented (such as an HTTP connection), the provider stops sending messages when the subscriber does not accept a connection.\n- The provider notifies the subscriber of the end of the transmission.\n- The provider may simply stop sending messages, leaving the subscriber to realize this via a time-out condition.\n\nReference: http://kodu.ut.ee/~dumas/ServiceInteractionPatterns/Multitransmission.html#pattern:multi-responses\n\n## Example: Streaming Results from a Long-running Query\n\nWhen an application invokes a query that takes a long time to process, some of the results may be available before the query completes. In this case, the provider can start sending partial results before the whole operation completes. The client can start processing the result data sooner, possible providing a better user experience. This approach does not work well if a global operation such as sorting is required, unless of course the data that is fetched is already in the desired order, for example because the database has a clustered index on the data. NoSQL column data stored tend to cluster by the primary key as they use it to distribute data across nodes and because their data sets tend to be too large for global sorts. Therefore, using *Subscribe-Notify* to retrieve data incrementally works particularly well.\n\n## Example: Stock Ticker Subscription\n\nA service may want to receive frequent updates to the price of a traded security. Instead of repeatedly polling, the service should subscribe and receive the price updates as Fire-and-Forget messages.\n\n## Example: WS-Eventing\n\nDifferent approaches: WS-Eventing uses single URL, not meant for pub-sub topics. WS-Notification more complex, includes topic hierarchy.\n\n## Example: WS-Notification\n\n## Example: JMS\n\n**Related patterns:**[*Lease*](Lease.html), [*Polling*](Polling.html), [*Publish-Subscribe Channel*](/patterns/messaging/PublishSubscribeChannel.html), [*Quick Acknowledgment*](QuickAck.html), [*Renewal Reminder*](RenewalReminder.html)\n\n---", "znaku_textu": 6029, "slov": 874, "odkazu": 58, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 14:54:04", "sha256": "3caed99e724fdb2ca4b9cb3cd36fd69a7a52ad006763d6ea7d8c8aeda7344c46", "hloubka": 3, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://creativecommons.org/licenses/by/4.0/"]} {"url": "https://www.enterpriseintegrationpatterns.com/patterns/conversation/ThreeWayHandShake.html", "titulek": "Three-Way Hand Shake - Enterprise Integration Patterns 2", "h1": "", "popis": "Enterprise Integration Patterns", "klicova_slova": "eai, patterns, enterprise, integration, messaging, middleware, eai patterns, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns 2", "og:title": "Three-Way Hand Shake - Enterprise Integration Patterns 2", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/ThreeWayHandShake.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/eip1_patterns_wide.png"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Example"}], "markdown": "| | Three-Way Hand Shake[Conversation Patterns](index.html) » [Starting a Conversation](EstablishingIntro.html) | [Contents](toc.html)[⇐ Prev](EstablishingIntro.html)[Next ⇒](AcquireToken.html) |\n| --- | --- | --- |\n\nA participant has identified a conversation partner and is about to initiate a conversation.\n\nHow can two services sync up so they can start a conversation from the same point?\n\nReliable protocols over unreliable channels often require sequence numbers to detect lost messages. Both parties need to start with the same sequence number so they can detect if the first message is already lost.Conversation partners may want to agree on parameters of the conversation, based on both parties' capabilities. For example, if both parties support compression or binary encoding, they can agree to switch to this more efficient message format.\n\nA *Three-Way Hand Shake* has the requestor initiating a conversation, followed by an acknowledgment (Ack) by the conversation partner, to which the initiator replies with an acknowledgment (Ack-Ack).\n\nThe *Three-Way Hand Shake* conversation involves the following participants:\n\n- The *Initiator*\n- The conversation *Partner*\n\n## Example\n\nhttps://tools.ietf.org/html/rfc761#page-29\n\n---", "znaku_textu": 1192, "slov": 161, "odkazu": 57, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 14:53:39", "sha256": "10d0d646ff3b7c3088d848d34a19fd50e045fc6e395f02e08f3206f6c214adee", "hloubka": 3, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://creativecommons.org/licenses/by/4.0/"]} {"url": "https://www.enterpriseintegrationpatterns.com/patterns/conversation/TryConfirmCancel.html", "titulek": "Tentative Operation - Enterprise Integration Patterns 2", "h1": "", "popis": "Enterprise Integration Patterns", "klicova_slova": "eai, patterns, enterprise, integration, messaging, middleware, eai patterns, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns 2", "og:title": "Tentative Operation - Enterprise Integration Patterns 2", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/TryConfirmCancel.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/TryConfirmCancel.png"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Example: Travel Booking"}], "markdown": "| | Tentative Operation[Conversation Patterns](index.html) » [Ensuring Consistency](EnsuringConsistencyIntro.html) | [Contents](toc.html)[⇐ Prev](CompensatingAction.html)[Next ⇒](CoordinatedAgreement.html) |\n| --- | --- | --- |\n\nA participant is interacting with multiple, independent services, which change their state based on the interaction. Some of the interactions may fail.\n\nHow can a requestor ensure a consistent outcome across multiple, independent providers?\n\nThe communication channels used by loosely coupled, distributed systems usually do not provide transactional semantics at the transport level. Instead, participants can send and receive message, often reliably. While some operations are inherently reversible, e.g. debiting a bank account after a credit, other operations, such as shipping a package or scrapping a car cannot easily be undone. As a result, the requestor might not be able to do much to rectify the situation.Distributed conversations typically involve uncertainty: a participant cannot be certain that a conversation partner continues in the conversation or even exist after the last interaction. Participants should therefore allocate resources cautiously.\n\nThe consumer performs a *Tentative Operation*, and confirms it later, possibly after it interacted with other services.\n\nThe *Tentative Operation* conversation involves the following participants:\n\n- The *Requestor* executes a tentative operation on a service providers. It later confirms or cancels the operation.\n- The *Provider* receives operation requests from the *Requestor* . It waits for a *Confirm* message from the *Requestor* before completing the operation. It cancels the operation upon receiving a *Cancel* message or after it's own rule for cancellation triggers, usually a time-out.\n\n*Tentative Operation* comes in two variants:\n\n- *explicit cancellation* cancels the *Tentative Operation* upon the *Provider* receiving an explicit *Cancel* message\n- *implicit cancellation* cancels the *Tentative Operation* after the *Provider* reaches a defined condition, usually a time-out.\n\n*Tentative Operation* is also known as \"Try-Confirm-Cancel\" based on the operations involved [[Atomikos](http://www.atomikos.com/Publications/TryCancelConfirm)]. Pat helland described a similar concept [[Helland](http://www-db.cs.wisc.edu/cidr/cidr2007/papers/cidr07p15.pdf)].\n\n*Tentative Operation* with implicit cancellation is similar to [*Lease*](Lease.html), except that it is a one-time confirmation, not a periodic renewal.\n\nExpressed as a state transition diagram, *Tentative Operation* consists of 3 states: initial, reserved, and confirmed [[REST](http://www.amazon.com/exec/obidos/ASIN/1441983023/enterpriseint-20)].\n\nOne major aspect of this conversation is whether the *Confirm* operation can fail. If success is guaranteed, the provider's implementation of *Tentative Operation* resembles that of [*Compensating Action*](CompensatingAction.html) as the *Tentative Operation* has to allocate all required resources. The only difference is then in the conversational aspect: *Tentative Operation* require explicit confirmation and implicit cancellation while [*Compensating Action*](CompensatingAction.html) has implicit confirmation but explicit cancellation.\n\nNot all service providers support *Tentative Operation*s. *Tentative Operation*s complicate the conversation. If *Tentative Operation* is not available, a service consumer should attempt to PERFORM MOST LIKELY TO FAIL ACTION FIRST and/or PERFORM HARDEST TO REVERT ACTION LAST to minimize the risk of ending up in an inconsistent, not not reconcilable state.\n\n*Tentative Operation* can cause yield management issues for the resource provider because many customers may cancel tentative resource allocations they previously made. If there is not penalty for cancellation, requestors are incentivized to perform the *Tentative Operation* first in a services of operations, following the PERFORM HARDEST TO REVERT ACTION LAST pattern. This can lead to a large volume of *Tentative Operation* and subsequent cancellations. Many real-life providers have hence setup cancellation charges or incentivize requestors to perform firm operations with reduced pricing.\n\n## Example: Travel Booking\n\nA traveler needs to book a hotel and a flight for a trip. Both resources are provided independently by different providers. If a hotel is not available for the flight dates, the customer needs to change the flight reservation, which may incur penalties. Therefore, the customer may ask the airline to “hold” a reservation without submitting payment, so he can confirm the availability of a hotel. Once the hotel is guaranteed, the customer will complete the purchase of the airline ticket and submit payment. If the customer does not confirm the reservation within the agreed-upon time window, the airline with cancel the \"hold\".\n\nHolding reservations incurs a cost to the airline, partially compensated by yield management, i.e. confirming more seats than are actually available. Airlines therefore encourage customers to use [*Compensating Action*](CompensatingAction.html) by offering lower prices on early firm bookings. Canceling such bookings usually carries a heavy penalty.\n\n**Related patterns:**[*Compensating Action*](CompensatingAction.html), [*Lease*](Lease.html)\n\n---", "znaku_textu": 5225, "slov": 702, "odkazu": 60, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 14:54:22", "sha256": "d90d38e2379817b297303c73f98b4db5401f91f6d33742586a31ff80fcf1e59d", "hloubka": 3, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://www.atomikos.com/Publications/TryCancelConfirm", "http://www-db.cs.wisc.edu/cidr/cidr2007/papers/cidr07p15.pdf", "http://www.amazon.com/exec/obidos/ASIN/1441983023/enterpriseint-20", "http://creativecommons.org/licenses/by/4.0/"]} {"url": "https://www.enterpriseintegrationpatterns.com/patterns/conversation/UserGrantsAccess.html", "titulek": "User Grants Access - Enterprise Integration Patterns 2", "h1": "", "popis": "Enterprise Integration Patterns", "klicova_slova": "eai, patterns, enterprise, integration, messaging, middleware, eai patterns, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns 2", "og:title": "User Grants Access - Enterprise Integration Patterns 2", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/UserGrantsAccess.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/eip1_patterns_wide.png"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Example: OAuth"}], "markdown": "| | User Grants Access[Conversation Patterns](index.html) » [Starting a Conversation](EstablishingIntro.html) | [Contents](toc.html)[⇐ Prev](VerifyIdentity.html)[Next ⇒](BasicIntro.html) |\n| --- | --- | --- |\n\nA participant has identified a provider and is about to initiate a conversation on behalf of a user.\n\nHow can a participant engage in a conversation on behalf of a user?\n\nMany services are personalized and thus require a user identity to provide the service. A generic application or service needs to pass the user's identity to this service provider.Users should only authenticate directly to a service and not share their credentials, such as user ID and password, with another participant.Services should not store user credentials as it may present a security risk.Prompting a user with every request or session to the service is inconvenient and not possible for background processes that execute without the user's immediate attention.\n\nHave the consumer request an access token from the service provider based on the consumer's identifier and the user authenticating the request to the provider. The consumer subsequently passes this token with the request to the provider.\n\nThe *User Grants Access* conversation involves the following participants:\n\n- The *Consumer*\n- The *User* (or Resource Owner)\n- The *Provider*\n\n## Example: OAuth\n\nIETF [RFC5849](https://tools.ietf.org/html/rfc5849#section-5) specifies the following steps:\n\n1. The client obtains a set of temporary credentials from the server (in the form of an identifier and shared-secret). The temporary credentials are used to identify the access request throughout the authorization process.\n2. The resource owner authorizes the server to grant the client's access request (identified by the temporary credentials).\n3. The client uses the temporary credentials to request a set of token credentials from the server, which will enable it to access the resource owner's protected resources\n\n---", "znaku_textu": 1922, "slov": 275, "odkazu": 58, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 14:53:54", "sha256": "e88eefdba1a591953a9308e982abbdfc5db106645278150d62c82d5145ab4ca9", "hloubka": 3, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://tools.ietf.org/html/rfc5849", "http://creativecommons.org/licenses/by/4.0/"]} {"url": "https://www.enterpriseintegrationpatterns.com/patterns/conversation/VerifyIdentity.html", "titulek": "Verify Identity - Enterprise Integration Patterns 2", "h1": "", "popis": "Enterprise Integration Patterns", "klicova_slova": "eai, patterns, enterprise, integration, messaging, middleware, eai patterns, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns 2", "og:title": "Verify Identity - Enterprise Integration Patterns 2", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/VerifyIdentity.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/eip1_patterns_wide.png"}, "jsonld": [], "drobecky": [], "osnova": [], "markdown": "| | Verify Identity[Conversation Patterns](index.html) » [Starting a Conversation](EstablishingIntro.html) | [Contents](toc.html)[⇐ Prev](RotateTokens.html)[Next ⇒](UserGrantsAccess.html) |\n| --- | --- | --- |\n\nA provider requires authentication of the initiator's identity.\n\nHow can a provider verify the claimed identity of a consumer in the absence of a certificate authority?\n\nThe provider sends a message with unique data to the address supplied by the consumer. The consumer has to pass the unique data back to service provider to complete the authentication.\n\n---", "znaku_textu": 537, "slov": 67, "odkazu": 57, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 14:53:52", "sha256": "590538f5851f90264bc5b2943b9defa8ab73d4b825a0db6aa9458db4fbb57d6b", "hloubka": 3, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://creativecommons.org/licenses/by/4.0/"]} {"url": "https://www.enterpriseintegrationpatterns.com/patterns/conversation/VocabularyIntro.html", "titulek": "Conversation Vocabulary - Enterprise Integration Patterns 2", "h1": "", "popis": "Enterprise Integration Patterns", "klicova_slova": "eai, patterns, enterprise, integration, messaging, middleware, eai patterns, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns 2", "og:title": "Conversation Vocabulary - Enterprise Integration Patterns 2", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/VocabularyIntro.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/eip1_patterns_wide.png"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Conversation Design Decisions"}], "markdown": "| | Conversation Vocabulary[Conversation Patterns](index.html) » [Describing Conversations](DescribingIntro.html) | [Contents](toc.html)[⇐ Prev](HyperMedia.html)[Next ⇒](DiscoveryIntro.html) |\n| --- | --- | --- |\n\nIn addition to describing conversations using the approaches described in this chapter it is helpful to have additional vocabulary to make verbal descriptions more expressive and precise. However, this vocabulary does not correspond to patterns because such simple vocabulary does not exhibit the forces and tensions that bring patterns to life. We therefore document this vocabulary as a simple description.\n\n**Conversation Identifier**\n\nBecause conversation participants typically engage in multiple conversations at the same time, messages belonging to one conversation instance must be correlated. This usually happens via a generalized version of a [*Correlation Identifier*](/patterns/messaging/CorrelationIdentifier.html), which was originally only presented in the context of a [*Request-Reply*](/patterns/messaging/RequestReply.html) conversation.\n\nhttp://www.eaipatterns.com/ramblings/09_correlation.html\n\n**Initiating Message**\n\nConversation are started by one participant sending a message without depending on any participants. We call this message *Initiating Message*. This is often the message that defines the *Conversation Identifier*.\n\n**Follow-On Message**\n\nRetry\n\nSub Conversation\n\nAcknowledgment Message\n\nRange Acknowledgment Message\n\n## Conversation Design Decisions\n\nHow to Track Messages", "znaku_textu": 1478, "slov": 173, "odkazu": 58, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 14:52:54", "sha256": "d308780b0e18861d9e60a1e904c8cc8c61f1292108b3f81b2b5c9bf583c10b1c", "hloubka": 3, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": []} {"url": "https://www.enterpriseintegrationpatterns.com/patterns/conversation/bib.html", "titulek": "Bibliography - Enterprise Integration Patterns 2", "h1": "", "popis": "Enterprise Integration Patterns", "klicova_slova": "eai, patterns, enterprise, integration, messaging, middleware, eai patterns, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns 2", "og:title": "Bibliography - Enterprise Integration Patterns 2", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/bib.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/eip1_patterns_wide.png"}, "jsonld": [], "drobecky": [], "osnova": [], "markdown": "| | Bibliography[Conversation Patterns](index.html) » Appendices | [Contents](toc.html)[⇐ Prev](CoordinatedAgreement.html) |\n| --- | --- | --- |\n\n**EIP**\nGregor Hohpe, Bobby Woolf,\n *Enterprise Integration Patterns: Designing, Building, and Deploying Messaging Solutions,*Addison-Wesley, 2004, \n ISBN: [0321200683](http://www.amazon.com/exec/obidos/ASIN/0321200683/enterpriseint-20)\n\n**EAA**\nMartin Fowler,\n *Patterns of Enterprise Application Architecture,*Addison-Wesley, 2003, \n ISBN: [0321127420](http://www.amazon.com/exec/obidos/ASIN/0321127420/enterpriseint-20)\nThe most comprehensive book yet on application architecture patterns. Even though it covers 51 patterns, it is an easy and interesting read while never sacrificing technical accuracy.\n\n**Voelter**\nVoelter, Kircher, Zdun,\n Wiley, 2005, \n ISBN: [0470856629](http://www.amazon.com/exec/obidos/ASIN/0470856629/enterpriseint-20)\n\n**Abowd**\nGregory Abowd, Robert Allen, David Garlan,\n \n \"Using Style to Give Meaning to Software Architecture\",\n 1993,\n\n**Helland**\nPat Helland,\n *The Irresistible Forces Meet the Movable Objects,*2007, [http://blogs.msdn.com/b/pathelland/archive/2008/01/11/pdf-version-of-the-slides-for-the-irresistible-forces-meet-the-movable-objects.aspx](http://blogs.msdn.com/b/pathelland/archive/2008/01/11/pdf-version-of-the-slides-for-the-irresistible-forces-meet-the-movable-objects.aspx)\n\n**Atomikos**\nGuy Pardon,\n *Try-Cancel/Confirm,*2008, [http://www.atomikos.com/Publications/TryCancelConfirm](http://www.atomikos.com/Publications/TryCancelConfirm)\n\n**Fielding**\nRoy Thomas Fielding,\n *Architectural Styles and the Design of Network-based Software Architectures,*2000, [http://www.ics.uci.edu/~fielding/pubs/dissertation/top.htm](http://www.ics.uci.edu/~fielding/pubs/dissertation/top.htm)\n\n**Garlan**\nMary Shaw, Garlan David,\n *Software Architecture: Perspectives on an Emerging Discipline,*Prentice Hall, 1996, \n ISBN: [0131829572](http://www.amazon.com/exec/obidos/ASIN/0131829572/enterpriseint-20)\n\n**Helland**\nPat Helland,\n *Life beyond Distributed Transactions: an Apostate’s Opinion,*2007, [http://www-db.cs.wisc.edu/cidr/cidr2007/papers/cidr07p15.pdf](http://www-db.cs.wisc.edu/cidr/cidr2007/papers/cidr07p15.pdf)\n\n**Hohmann**\nLuke Hohmann,\n *Beyond Architecture,*Addison-Wesley, 2003, \n ISBN: [0201775948](http://www.amazon.com/exec/obidos/ASIN/0201775948/enterpriseint-20)\n\n**He**\nHao He,\n *What is Service-Oriented Architecture?,*[http://webservices.xml.com/pub/a/ws/2003/09/30/soa.html](http://webservices.xml.com/pub/a/ws/2003/09/30/soa.html)\n\n**Leymann**\nFrank Leymann, et al.,\n *Production Workflow: Concepts and Techniques,*Prentice-Hall PTR, 1999, \n ISBN: [0130217530](http://www.amazon.com/exec/obidos/ASIN/0130217530/enterpriseint-20)\n\n**Monroe**\nRobert T. Monroe, Drew Kompanek, Ralph Melton, David Garlan,\n *Stylized Architecture, Design Patterns, and Objects,*1996, [http://www-2.cs.cmu.edu/afs/cs/project/compose/ftp/pdf/ObjPatternsArch-ieee97.pdf](http://www-2.cs.cmu.edu/afs/cs/project/compose/ftp/pdf/ObjPatternsArch-ieee97.pdf)\n\n**PLoPD5**\nManolescu, Voelter, Noble (eds),\n Addison-Welsey, 2006, \n ISBN: [0321321944](http://www.amazon.com/exec/obidos/ASIN/0321321944/enterpriseint-20)\n\n**POSA**\nBuschmann et al,\n *Pattern-Oriented Software Architecture,*Wiley, 1996, \n ISBN: [0471958697](http://www.amazon.com/exec/obidos/ASIN/0471958697/enterpriseint-20)\n\n**POSA3**\nKircher, Jain,\n *Pattern-Oriented Software Architecture 3: Patterns for Resource Management,*Wiley, 2004, \n ISBN: [0470845252](http://www.amazon.com/exec/obidos/ASIN/0470845252/enterpriseint-20)\n\n**POSA5**\nBuschmann, Henney, Schmidt,\n *Pattern-Oriented Software Architecture 5: On Patterns and Pattern Languages,*Wiley, 2007, \n ISBN: [0471486485](http://www.amazon.com/exec/obidos/ASIN/0471486485/enterpriseint-20)\n\n**REST**\nWilde, Pautasso,\n *REST: From Research to Practice,*Springer, 2011, \n ISBN: [1441983023](http://www.amazon.com/exec/obidos/ASIN/1441983023/enterpriseint-20)\n\n**Sagas**\nHector Garcia-Molina, Kenneth Salem,\n *Sagas,*Department of Computer Science, Princeton University, 1987, [http://www.cs.cornell.edu/andru/cs711/2002fa/reading/sagas.pdf](http://www.cs.cornell.edu/andru/cs711/2002fa/reading/sagas.pdf)\n\n**Coffee Shop**\nGregor Hohpe,\n *Your Coffee Shop doesn't use two-phase commit,*IEEE Software, 2005, [http://ieeexplore.ieee.org/xpl/login.jsp?tp=&arnumber=1407829](http://ieeexplore.ieee.org/xpl/login.jsp?tp=&arnumber=1407829)\n\n**Transmission Control Protocol**\nJon Postels (ed.),\n *Transmission Control Protocol (RFC761),*1980, [https://tools.ietf.org/html/rfc761#page-13](https://tools.ietf.org/html/rfc761#page-13)\n\n**Luckham**\nDavid Luckham,\n *The Power of Events: An Introduction to Complex Event Processing in Distributed Enterprise Systems,*Addison-Wesley, 2002, \n ISBN: [0201727897](http://www.amazon.com/exec/obidos/ASIN/0201727897/enterpriseint-20)\nA great book on what it means to be event-driven. Good treatment of event aggregation, event hierarchies and causality. David is a language guy so expect a technology neutral, but formal treatment without being too academic. Required reading for everyone who throws the \"EDA\" (Event-Driven Architecture) term around!\n\n**WS Choreography Model**\n[http://www.w3.org/TR/ws-chor-model/](http://www.w3.org/TR/ws-chor-model/)\n\n**WS-CDL**\n[http://www.w3.org/TR/ws-cdl-10/](http://www.w3.org/TR/ws-cdl-10/)\n\n**WSCI**\n[http://www.w3.org/TR/wsci/](http://www.w3.org/TR/wsci/)\n\n**BPEL**\n*Business Process Execution Language for Web Services, Version 1.1,*[http://www-106.ibm.com/developerworks/webservices/library/ws-bpel/](http://www-106.ibm.com/developerworks/webservices/library/ws-bpel/)", "znaku_textu": 5531, "slov": 467, "odkazu": 40, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 14:54:24", "sha256": "b30a326072b4842f042e5234ef9f885523569c3523e9d53beb175dc4437a734d", "hloubka": 3, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://www.amazon.com/exec/obidos/ASIN/0321200683/enterpriseint-20", "http://www.amazon.com/exec/obidos/ASIN/0321127420/enterpriseint-20", "http://www.amazon.com/exec/obidos/ASIN/0470856629/enterpriseint-20", "http://blogs.msdn.com/b/pathelland/archive/2008/01/11/pdf-version-of-the-slides-for-the-irresistible-forces-meet-the-movable-objects.aspx", "http://www.atomikos.com/Publications/TryCancelConfirm", "http://www.ics.uci.edu/~fielding/pubs/dissertation/top.htm", "http://www.amazon.com/exec/obidos/ASIN/0131829572/enterpriseint-20", "http://www-db.cs.wisc.edu/cidr/cidr2007/papers/cidr07p15.pdf", "http://www.amazon.com/exec/obidos/ASIN/0201775948/enterpriseint-20", "http://webservices.xml.com/pub/a/ws/2003/09/30/soa.html", "http://www.amazon.com/exec/obidos/ASIN/0130217530/enterpriseint-20", "http://www-2.cs.cmu.edu/afs/cs/project/compose/ftp/pdf/ObjPatternsArch-ieee97.pdf", "http://www.amazon.com/exec/obidos/ASIN/0321321944/enterpriseint-20", "http://www.amazon.com/exec/obidos/ASIN/0471958697/enterpriseint-20", "http://www.amazon.com/exec/obidos/ASIN/0470845252/enterpriseint-20", "http://www.amazon.com/exec/obidos/ASIN/0471486485/enterpriseint-20", "http://www.amazon.com/exec/obidos/ASIN/1441983023/enterpriseint-20", "http://www.cs.cornell.edu/andru/cs711/2002fa/reading/sagas.pdf", "http://ieeexplore.ieee.org/xpl/login.jsp?arnumber=1407829&tp=", "https://tools.ietf.org/html/rfc761", "http://www.amazon.com/exec/obidos/ASIN/0201727897/enterpriseint-20", "http://www.w3.org/TR/ws-chor-model/", "http://www.w3.org/TR/ws-cdl-10/", "http://www.w3.org/TR/wsci/", "http://www-106.ibm.com/developerworks/webservices/library/ws-bpel/", "https://www.amazon.com/exec/obidos/redirect-home/enterpriseint-20"]} {"url": "https://www.enterpriseintegrationpatterns.com/patterns/conversation/index.html", "titulek": "Overview - Enterprise Integration Patterns 2", "h1": "", "popis": "Enterprise Integration Patterns", "klicova_slova": "eai, patterns, enterprise, integration, messaging, middleware, eai patterns, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns 2", "og:title": "Overview - Enterprise Integration Patterns 2", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/index.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/eip1_patterns_wide.png"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Conversations between Loosely Coupled Systems"}, {"uroven": 2, "text": "EIP 2: Conversation Patterns"}, {"uroven": 2, "text": "A Comparison: Subscriptions"}, {"uroven": 2, "text": "The Pattern Language"}, {"uroven": 2, "text": "Real Life Conversations"}], "markdown": "| | Overview[Conversation Patterns](index.html) » Introduction | [Contents](toc.html)[Next ⇒](Preface.html) |\n| --- | --- | --- |\n\n## Conversations between Loosely Coupled Systems\n\n*Work in progress. Last update: Jan 2017*\n\nAsynchronous [*Messaging*](/patterns/messaging/Messaging.html) is a great way for distributed systems to communicate while maintaining loose coupling. Sending a single message isn't always enough for a meaningful exchange, though: a request expects a response; a certificate exchange may be needed for initial authentication; an order message is supposed to lead to a payment message, and if something goes wrong, additional messages may be needed to handle or correct errors. In these situations, participants engage in *Conversations*, an exchange of related messages. Examples of conversations occur at many levels: traditional web services are orchestrated into larger services, REST services provide referrals or use HATEOAS to trigger subsequent interactions, low-level networking protocols discover services. Conversations also occur in real world: coworkers schedule a suitable meeting time by exchanging their availability, vendors issue offers to be followed by orders, shipments, and payments.\n\nDesigning robust conversations is no simple task, though: lost messages, participants' state getting out of sync, timeouts, and lots of other annoying stuff can happen in distributed systems that communicate over unreliable networks. Developers may have a 1000-page TCP/IP tome on the shelf, but are quietly happy that someone else already figured this out for them. Conversations quickly sneak up on developers, though, even when things start out pretty simple: a basic [*Asynchronous Request-Response*](RequestResponse.html) interaction may foresee re-sending the request if no response is received within a specific time window. Doing so may result in a duplicate response being received if the original response was simply delayed, forcing the requestor to detect and ignore duplicate responses. The requestor likely also shouldn't send indefinite retry messages as this may overburden the system. Quickly the simple sending of a message turned up a number of considerations that govern how multiple messages can be exchanged: we need to decide the rules of the conversation.\n\n## EIP 2: Conversation Patterns\n\n[Conversation Patterns](toc.html) assist developers in designing robust interchanges between loosely coupled components just like [Messaging Patterns](/patterns/messaging) did for stateless message exchanges. Just as before, each design pattern represents a \"mind-sized\" chunk of information that not only describes a concrete solution but also elaborates the trade-offs and forces that motivate it. Building on the idea of the pattern icons, informal sketches capture the essence of the conversation while real-life examples provide a precise protocol specification.\n\n*Comparing conversation and messaging patterns*\n\nConversation Patterns highlight that [Enterprise Integration Patterns](/) consist of more than just messaging patterns: Conversation Patterns are set to become Volume 2 of the \"Enterprise Integration Patterns\" book series. Each pattern language's base vocabulary allows tackling different kinds of design problems. Whereas messaging patterns follow the flow of a message through a series of components, conversation patterns take the complementary viewpoint by following the stateful exchange of messages between components over time. The introduction of conversation state in EIP Vol. 2 allows the discussion new topics like error handling or resource management, something that the messaging patterns in EIP Vol. 1 weren't able to do.\n\n## A Comparison: Subscriptions\n\nA simple example highlights the complementary viewpoint that messaging and conversation patterns take.\n\n*Comparing conversation and messaging patterns*\n\nA [*Publish-Subscribe Channel*](/patterns/messaging/PublishSubscribeChannel.html), shown on the left, is a basic messaging pattern that describes how messages are routed to a set of subscribers. The pattern considers a single message to be distributed across multiple subscribers, discussing how each subscriber receiving its own copy of the message makes adding new subscribers side-effect free. A related, but distinct conversation pattern, takes the opposite viewpoint: it looks at how a single subscriber receives notification messages over time, tacitly assuming that multiple subscribers can do so at the same time. Discussing the flow of messages over time raises important questions, such as how long the flow of messages should continue, which in turn leads to patterns like [*Lease*](Lease.html) expiration.\n\n## The Pattern Language\n\nA pattern language structures a collection of patterns and guides the developer towards a meaningful solution (see [[POSA5](http://www.amazon.com/exec/obidos/ASIN/0471486485/enterpriseint-20)]). The Conversation Patterns language distinguishes *foundational* patterns that deal with technical aspects, such as finding a conversation partner, from *application-level* patterns that serve higher-level goals, such as managing resources or negotiating agreements. Both groups of patterns rely on a common vocabulary to [describe and compose conversations](DescribingIntro.html).\n\nThe *foundational* patterns roughly follow the life cycle of setting up a conversation:\n\n- [*Discovery*](DiscoveryIntro.html) : Before services can interact, they have to identify one or more conversation partners.\n- [*Starting a Conversation*](EstablishingIntro.html) : Once the conversation partners are known, a conversation has to be established, including authentication, handshaking, and negotiating conversation parameters.\n- [*Basic Conversations*](BasicIntro.html) take place between two participants and a small number of message types. They establish a core vocabulary for the description of more complex conversations.\n- [*Intermediaries*](MultiIntro.html) are simple conversations that have messages flow through a third party.\n\nBased on these foundational conversation patterns, we can tackle common distributed system problems at the *application level*, organized by type of consideration:\n\n- [*Resource Management*](ResourceIntro.html) : Acquiring resources from a service represents a form of coupling: if the requestor disappears unexpectedly, the resource provider continues to hold unneeded resources. Resource management patterns deal with resource allocation and deallocation in loosely coupled systems.\n- [*Ensuring Consistency*](EnsuringConsistencyIntro.html) : Things don't always go according to plan in distributed systems where messages can be duplicated and lost, or conversation partners may disappear altogether. These patterns deal with error conditions and help participants reach a consistent state.\n- *Reaching Agreement* : Most business situations depend on multiple independent parties reaching an agreement through offers, counter-offers, negotiations and deals.\n\nAll patterns are listed in the [Table of Contents](toc.html).\n\n## Real Life Conversations\n\nConversations between components often resemble conversations in real life. That's the case because real life is inherently unreliable and asynchronous. Humans have therefore learned to interact by exchanging asynchronous messages, such as leaving a voice mail, mailing a letter, or sending an email. A series of such messages forms a conversation, which serves an overarching purpose, such as negotiating a deal or determining a place for dinner. Real-life conversations can span hours, days, or even months, and have to deal with many of the same issues as distributed systems do, including duplicate messages (\"I really need that TPS report\"), messages crossing in transit (\"Ignore this notice if you've already sent your payment\"), and coordinating multiple independent resources (\"You got the money? You got the goods?\"). Therefore, one can learn a good bit about distributed system design from real life.", "znaku_textu": 7937, "slov": 1103, "odkazu": 61, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/patterns/conversation", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 14:51:46", "sha256": "ec849c66cb5965f82d6c897f87412323518a2b690cf834672a62567105025e68", "hloubka": 3, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://www.amazon.com/exec/obidos/ASIN/0471486485/enterpriseint-20"]} {"url": "https://www.enterpriseintegrationpatterns.com/patterns/conversation/toc.html", "titulek": "Table of Contents - Enterprise Integration Patterns 2", "h1": "", "popis": "Enterprise Integration Patterns", "klicova_slova": "eai, patterns, enterprise, integration, messaging, middleware, eai patterns, enterprise integration", "kanonicka": "", "jazyk": "", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns 2", "og:title": "Table of Contents - Enterprise Integration Patterns 2", "og:url": "https://www.enterpriseintegrationpatterns.com", "og:image": "https://www.enterpriseintegrationpatterns.com/img/eip1_patterns_wide.png"}, "jsonld": [], "drobecky": [], "osnova": [], "markdown": "Conversation Patterns\n\n| | Table of Contents[Conversation Patterns](index.html) » Introduction | [Contents](toc.html)[⇐ Prev](Preface.html)[Next ⇒](Introduction.html) |\n| --- | --- | --- |\n\n| Introduction | | |\n| --- | --- | --- |\n| | [Overview](index.html) | |\n| | [Preface](Preface.html) | |\n| | [Table of Contents](toc.html) | Detailed table of contents. |\n| | [Introduction](Introduction.html) | |\n| Describing Conversations | | |\n| | [Introduction to Describing Conversations](DescribingIntro.html) ●● | |\n| | [Choreography](Choreography.html) ●○ | How can a conversation policy be described? |\n| | [Orchestration](Orchestration.html) ○○ | How can a participant describe what conversations it is willing to engage in? |\n| | [Hypermedia State](HyperMedia.html) ○○ | How can a participant describe what it expects from a consumer without defining all rules of the conversation up-front? |\n| | [Conversation Vocabulary](VocabularyIntro.html) ○○ | |\n| Discovery | | |\n| | [Introduction to Discovery](DiscoveryIntro.html) ●● | |\n| | [Dynamic Discovery](DynamicDiscovery.html) ●● | How can a conversation initiator find a partner when it has no knowledge whatsoever about available partners? |\n| | [Advertise Availability](ParticipantsAdvertise.html) ●○ | How can a participant let others know that it is available? |\n| | [Consult Directory](ConsultDirectory.html) ●○ | How can a conversation initiator find a partner across a large network without flooding the network with requests? |\n| | [Referral](Referral.html) ●● | The choice of conversation partner may depend on the context of a conversation or may change over time. How can an initiator discover the right conversation partner? |\n| | [Leader Election](LeaderElection.html) ○○ | How can a set of participants agree on a single participant assuming a special role? |\n| Starting a Conversation | | |\n| | [Starting a Conversation](EstablishingIntro.html) ●○ | |\n| | [Three-Way Hand Shake](ThreeWayHandShake.html) ○○ | How can two services sync up so they can start a conversation from the same point? |\n| | [Acquire Token First](AcquireToken.html) ●○ | How can a provider ascertain the identity of a requestor? |\n| | [Rotate Tokens](RotateTokens.html) ○○ | |\n| | [Verify Identity](VerifyIdentity.html) ○○ | How can a provider verify the claimed identity of a consumer in the absence of a certificate authority? |\n| | [User Grants Access](UserGrantsAccess.html) ●○ | How can a participant engage in a conversation on behalf of a user? |\n| Basic Conversations | | |\n| | [Introduction to Basic Conversations](BasicIntro.html) ●○ | |\n| | [Fire-and-Forget](FireAndForget.html) ●● | How can one participant notify another efficiently? |\n| | [Asynchronous Request-Response](RequestResponse.html) ●● | How can a consumer request information from a provider? |\n| | [Request-Response with Retry](RequestResponseRetry.html) ●● | How can a consumer deal with a missing response message in a Request-Response conversation? |\n| | [Polling](Polling.html) ●● | How can a service request information from a provider if an immediate response is not available and it cannot accept unsolicited incoming messages? |\n| | [Subscribe-Notify](SubscribeNotify.html) ●● | How can one participant receive information from another participant if that information cannot easily be packaged into a single message? |\n| | [Quick Acknowledgment](QuickAck.html) ●● | How can a client be sure the service accepted a request, even if processing the request takes a long time? |\n| Intermediaries | | |\n| | [Intermediaries](MultiIntro.html) ●● | |\n| | [Proxy](Proxy.html) ●● | How can a participant communicate with a partner that is not visible or not reachable? |\n| | [Relay](Relay.html) ●● | How can participants engage in a two-way communication when each participant is limited to outbound requests? |\n| | [Load Balancer](LoadBalancer.html) ●○ | How can incoming messages be shared among the providers? |\n| | [Scatter-Gather](Aggregator.html) ●○ | How can a participant solicit responses from a number of participants without connecting to all of them? |\n| Managing Distributed Systems | | |\n| | [System Management](ManagementIntro.html) ○○ | |\n| | [Heartbeat](HeartBeat.html) ●○ | How one know that another participant is working properly and is ready to receive messages? |\n| Resource Management | | |\n| | [Introduction to Resource Management](ResourceIntro.html) ●○ | |\n| | [Incremental State Build-up](IncrementalStateBuild.html) ●○ | How can a participant invoke an operation when the it does not have all required information available at the same time? |\n| | [Lease](Lease.html) ●● | How can a service provider avoid holding resources for clients who are no longer interested? |\n| | [Renewal Reminder](RenewalReminder.html) ●● | How can a service provider avoid holding resources for clients who are no longer interested? |\n| Ensuring Consistency | | |\n| | [Ensuring Consistency](EnsuringConsistencyIntro.html) ●● | |\n| | [Ignore Error](IgnoreError.html) ●● | How can a requestor cope with a failing request to a provider? |\n| | [Compensating Action](CompensatingAction.html) ●● | How can a requestor ensure a consistent outcome across multiple, independent providers? |\n| | [Tentative Operation](TryConfirmCancel.html) ●● | How can a requestor ensure a consistent outcome across multiple, independent providers? |\n| | [Coordinated Agreement](CoordinatedAgreement.html) ●● | How can agreement across multiple participants be achieved so that all participants see the same outcome? |\n| Appendices | | |\n| | [Bibliography](bib.html) | Annotated list of references and recommended reading. |", "znaku_textu": 5241, "slov": 631, "odkazu": 54, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 14:51:14", "sha256": "654f80fb31258a30343ea1642ecfe85f1ba13347504b966397012702e4f9b168", "hloubka": 3, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": []} {"url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging", "titulek": "Messaging Patterns Overview - Enterprise Integration Patterns", "h1": "", "popis": "This pattern catalog includes 65 integration patterns that we collected from integration projects and updated over two decades. They provide technology-independent design guidance for developers and architects to develop and document robust integration solutions. The 65 messaging patterns are organized as follows (click on the image or view the Table of Contents):", "klicova_slova": "Messaging Patterns Overview,integration, messaging, events, patterns, event-driven, coupling, eai, middleware, application integration, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns", "og:title": "Messaging Patterns Overview - Enterprise Integration Patterns", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/index.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/eip1_patterns_wide.png"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Integration Pattern Language"}, {"uroven": 2, "text": "Why Enterprise Integration Patterns?"}, {"uroven": 2, "text": "What products implement or use Enterprise Integration Patterns?"}, {"uroven": 2, "text": "How can you use the Patterns?"}, {"uroven": 2, "text": "What about REST / SOA / Serverless / EDA Patterns?"}, {"uroven": 2, "text": "Be Part of the Community"}, {"uroven": 2, "text": "Contributors"}], "markdown": "| | Messaging Patterns Overview[Messaging Patterns](index.html) | [Contents](toc.html)[Next ⇒](toc.html) |\n| --- | --- | --- |\n\nThis pattern catalog includes 65 integration patterns that we collected from integration projects and updated over two decades. They provide technology-independent design guidance for developers and architects to develop and document robust integration solutions. The [65 messaging patterns](toc.html) are organized as follows (click on the image or view the [Table of Contents](toc.html)):\n\n## Integration Pattern Language\n\n[Message Construct.](MessageConstructionIntro.html)\n\n[Message](Message.html)\n\n[Command Message](CommandMessage.html)\n\n[Document Message](DocumentMessage.html)\n\n[Event Message](EventMessage.html)\n\n[Request-Reply](RequestReply.html)\n\n[Return Address](ReturnAddress.html)\n\n[Correlation Identifier](CorrelationIdentifier.html)\n\n[Message Sequence](MessageSequence.html)\n\n[Message Expiration](MessageExpiration.html)\n\n[Format Indicator](FormatIndicator.html)\n\n[Message Routing](MessageRoutingIntro.html)\n\n[Pipes-and-Filters](PipesAndFilters.html)\n\n[Message Router](MessageRouter.html)\n\n[Content-based Router](ContentBasedRouter.html)\n\n[Message Filter](Filter.html)\n\n[Dynamic Router](DynamicRouter.html)\n\n[Recipient List](RecipientList.html)\n\n[Splitter](Sequencer.html)\n\n[Aggregator](Aggregator.html)\n\n[Resequencer](Resequencer.html)\n\n[Composed Msg. Processor](DistributionAggregate.html)\n\n[Scatter-Gather](BroadcastAggregate.html)\n\n[Routing Slip](RoutingTable.html)\n\n[Process Manager](ProcessManager.html)\n\n[Message Broker](MessageBroker.html)\n\n[Message\nTransformation](MessageTransformationIntro.html)\n\n[Message Translator](MessageTranslator.html)\n\n[Envelope Wrapper](EnvelopeWrapper.html)\n\n[Content Enricher](DataEnricher.html)\n\n[Content Filter](ContentFilter.html)\n\n[Claim Check](StoreInLibrary.html)\n\n[Normalizer](Normalizer.html)\n\n[Canonical Data Model](CanonicalDataModel.html)\n\n[Messaging Endpoints](MessagingEndpointsIntro.html)\n\n[Message Endpoint](MessageEndpoint.html)\n\n[Messaging Gateway](MessagingGateway.html)\n\n[Messaging Mapper](MessagingMapper.html)\n\n[Transactional Client](TransactionalClient.html)\n\n[Polling Consumer](PollingConsumer.html)\n\n[Event-driven Consumer](EventDrivenConsumer.html)\n\n[Competing Consumers](CompetingConsumers.html)\n\n[Message Dispatcher](MessageDispatcher.html)\n\n[Selective Consumer](MessageSelector.html)\n\n[Durable Subscriber](DurableSubscription.html)\n\n[Idempotent Receiver](IdempotentReceiver.html)\n\n[Service Activator](MessagingAdapter.html)\n\n[Messaging Channels](MessagingChannelsIntro.html)\n\n[Message Channel](MessageChannel.html)\n\n[Point-to-Point Channel](PointToPointChannel.html)\n\n[Publish-Subscr. Channel](PublishSubscribeChannel.html)\n\n[Datatype Channel](DatatypeChannel.html)\n\n[Invalid Message Channel](InvalidMessageChannel.html)\n\n[Dead Letter Channel](DeadLetterChannel.html)\n\n[Guaranteed Delivery](GuaranteedMessaging.html)\n\n[Channel Adapter](ChannelAdapter.html)\n\n[Messaging Bridge](MessagingBridge.html)\n\n[Message Bus](MessageBus.html)\n\n[Systems Mgmt.](SystemManagementIntro.html)\n\n[Control Bus](ControlBus.html)\n\n[Detour](Detour.html)\n\n[Wire Tap](WireTap.html)\n\n[Message History](MessageHistory.html)\n\n[Message Store](MessageStore.html)\n\n[Smart Proxy](SmartProxy.html)\n\n[Test Message](TestMessage.html)\n\n[Channel Purger](ChannelPurger.html)\n\n- [**Integration Styles**](IntegrationStylesIntro.html) document different ways applications can be integrated, providing a historical account of integration technologies. All subsequent patterns follow the [*Messaging*](Messaging.html) style.\n- [**Channel Patterns**](MessagingChannelsIntro.html) describe how messages are transported across a [*Message Channel*](MessageChannel.html) . Most messaging systems implement these patterns.\n- [**Message Construction Patterns**](MessageConstructionIntro.html) describe the intent, form and content of the messages that travel across the messaging system. The [*Message*](Message.html) pattern is the base pattern for this section.\n- [**Routing Patterns**](MessageRoutingIntro.html) discuss how messages are directed from a sender to the correct receiver(s). The patterns presented in this section are specializations of the [*Message Router*](MessageRouter.html) pattern.\n- [**Transformation Patterns**](MessageTransformationIntro.html) change the content of a message, for example to accommodate different data formats used by the sending and the receiving system. Data may have to be added, taken away or existing data may have to be rearranged. The base pattern for this section is the [*Message Translator*](MessageTranslator.html) .\n- [**Endpoint Patterns**](MessagingEndpointsIntro.html) describe how applications produce or consume messages.\n- [**System Management Patterns**](SystemManagementIntro.html) describe what's needed to keep a complex message-based system running smoothly.\n\n## Why Enterprise Integration Patterns?\n\nIntegration is a long-running topic in all aspects of software and IT, and it's too multi-faceted to be tackled with a simple 'cookbook' approach. Patterns, in contrast, document knowledge and experience that usually lives only in architects' heads. As accepted solutions to recurring problems, patterns are abstract enough to apply across integration technologies, but specific enough to provide hands-on guidance. They also provide a vocabulary to accurately describe solutions.\n\nPatterns are not 'invented'; they are harvested from repeated use in practice. If you have built integration solutions, you likely have used some of these patterns, maybe in slight variations and perhaps calling them by a different name. This site condenses that experience into a coherent collection of proven patterns that form an integration pattern language. Patterns live in a specific context. This first set of patterns focus on [*Messaging*](Messaging.html). We also started to [harvest Conversation patterns](/patterns/conversation).\n\n## What products implement or use Enterprise Integration Patterns?\n\nThe patterns are independent of a specific implementation and help you design better solutions with any of the following platforms:\n\n- **Open source ESB's** like [Mule ESB](http://www.mulesoft.org/) , [JBoss Fuse](http://www.jboss.org/products/fuse/overview/) , [Open ESB](http://www.open-esb.net/) , [WSo2](http://wso2.com/) , [Spring Integration](http://projects.spring.io/spring-integration/) , or [Talend ESB](http://www.talend.com/)\n- **Message Brokers** like [ActiveMQ](http://activemq.apache.org) , [Apache Kafka](https://kafka.apache.org/) , or [RabbitMQ](https://www.rabbitmq.com)\n- **EAI and SOA platforms** , such as [IBM WebSphere MQ](http://www.ibm.com/software/mqseries) , [TIBCO](http://www.tibco.com) , [Vitria](http://www.vitria.com) , [Oracle Service Bus](http://www.oracle.com/technetwork/middleware/service-bus) , [WebMethods](http://www.softwareag.com/corporate/products/webmethods_integration/integration/overview/default.asp) (now Software AG), [Microsoft BizTalk](http://www.microsoft.com/biztalk) , or [Fiorano](http://www.fiorano.com) .\n- **Cloud-based integration** , including [Amazon Simple Queue Service (SQS)](http://aws.amazon.com/sqs/) , [Amazon EventBridge](https://aws.amazon.com/eventbridge/) , [Google Cloud Pub/Sub](https://cloud.google.com/pubsub/) , or [Azure Service Bus](https://azure.microsoft.com/en-us/products/service-bus) .\n- **JMS-based messaging systems**\n- **Microsoft technologies** like [MSMQ](https://msdn.microsoft.com/en-us/library/ms711472) or [Windows Communication Foundation (WCF)](https://msdn.microsoft.com/library/vstudio/ms735119)\n\n## How can you use the Patterns?\n\nTo encourage widespread use of the integration pattern language, many parts are available under open source licensing. You are free to use the pattern name, icon, problem and solution statements, and the sketches (the diagram below the solution statement) under the [Creative Commons Attribution](http://creativecommons.org/licenses/by/4.0/) license.\n\n> The [CC-BY](https://creativecommons.org/licenses/by/4.0/) license allows you share, use and modify these elements as long as you give proper attribution, such as a link to this site or a citation of the book. See the [license for more detail](https://creativecommons.org/licenses/by/4.0/)\n> \n> .\n\nYou can do a lot more with the patterns:\n\n- **Build** . Many open-source frameworks, such as [Mule](http://mule.codehaus.org/display/MULE/Architecture+Guide) , [Apache Camel](http://activemq.apache.org/camel/) , or [Spring Integration](http://projects.spring.io/spring-integration/) incorporate our patterns. You can not only think in integration patterns, but also to code in them!\n- **Document** . You can create design documents using our icon language by downloading the [Visio stencil](downloads.html) or using the [OmniGraffle stencil](http://www.graffletopia.com/stencils/137) created by one of our readers.\n- **Read** . The book [*Enterprise Integration Patterns*](http://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20) (Addison-Wesley, ISBN 0321200683) contains the full description of each pattern with plenty of examples -- over 700 pages worth of material. You can also read the full text [on-line on Safari](http://safari.informit.com/0321200683) (with membership).\n- **Teach** . A number of professors use our material in lectures. If you are interested in getting access to material for academic purposes, please [contact us](gregor.html) .\n\n## What about REST / SOA / Serverless / EDA Patterns?\n\nThe integration problems we solve today remain [frustratingly similar](/ramblings/81_restconversation.html) to 20 years ago. The design knowledhe encapsulated in the patterns does not age like specific technologies. A list of [modern examples](/ramblings/eip1_examples_updated.html) shows how the patterns apply to integration technologies like Kafka, Google Cloud Pub/Sub, Amazon SQS or [REST](/ramblings/81_restconversation.html). I've also re-implemented the Loan Broker example application in [AWS Lambda, EventBridge, and Step Functions](/ramblings/loanbroker_stepfunctions.html) and [GCP PubSub and Workflows](/ramblings/loanbroker_gcp_workflows.html).\n\n## Be Part of the Community\n\nFeel free to connect on [LinkedIn](https://www.linkedin.com/in/ghohpe). We welcome your feedback!\n\n## Contributors\n\nThe patterns on this site are the result of discussions involving numerous individuals. Kyle Brown (co-author of \"Enterprise Java Programming for IBM WebSphere\" and \"The Design Patterns Smalltalk Companion\"), John Crupi (co-author of \"Core J2EE Patterns\"), Martin Fowler (author of too many books to mention here), Rachel Reinitz, Mark Weitzel were part of the original discussions. Conrad D'Cruz, Sean Neville, Mike Rettig, Jonathan Simon ended up authoring examples, case studies, and a chapter on the future of integration.", "znaku_textu": 10651, "slov": 1085, "odkazu": 124, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/eaipatterns.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 06:03:16", "sha256": "dc85b74166b38c3432f7ef43820ecbd22e4e2ef0d7177fb1748db04b01f2bb90", "hloubka": 1, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://www.mulesoft.org/", "http://www.jboss.org/products/fuse/overview/", "http://www.open-esb.net/", "http://wso2.com/", "http://projects.spring.io/spring-integration/", "http://www.talend.com/", "http://activemq.apache.org/", "https://kafka.apache.org/", "https://www.rabbitmq.com/", "http://www.ibm.com/software/mqseries", "http://www.tibco.com/", "http://www.vitria.com/", "http://www.oracle.com/technetwork/middleware/service-bus", "http://www.softwareag.com/corporate/products/webmethods_integration/integration/overview/default.asp", "http://www.microsoft.com/biztalk", "http://www.fiorano.com/", "http://aws.amazon.com/sqs/", "https://aws.amazon.com/eventbridge/", "https://cloud.google.com/pubsub/", "https://azure.microsoft.com/en-us/products/service-bus", "https://msdn.microsoft.com/en-us/library/ms711472", "https://msdn.microsoft.com/library/vstudio/ms735119", "http://creativecommons.org/licenses/by/4.0/", "https://creativecommons.org/licenses/by/4.0/", "http://mule.codehaus.org/display/MULE/Architecture+Guide", "http://activemq.apache.org/camel/", "http://www.graffletopia.com/stencils/137", "http://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "http://safari.informit.com/0321200683", "https://www.linkedin.com/in/ghohpe", "https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "https://www.architectelevator.com/book", "https://www.cloudstrategybook.com/", "https://www.platformstrategybook.info/"]} {"url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/", "titulek": "Messaging Patterns Overview - Enterprise Integration Patterns", "h1": "", "popis": "This pattern catalog includes 65 integration patterns that we collected from integration projects and updated over two decades. They provide technology-independent design guidance for developers and architects to develop and document robust integration solutions. The 65 messaging patterns are organized as follows (click on the image or view the Table of Contents):", "klicova_slova": "Messaging Patterns Overview,integration, messaging, events, patterns, event-driven, coupling, eai, middleware, application integration, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns", "og:title": "Messaging Patterns Overview - Enterprise Integration Patterns", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/index.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/eip1_patterns_wide.png"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Integration Pattern Language"}, {"uroven": 2, "text": "Why Enterprise Integration Patterns?"}, {"uroven": 2, "text": "What products implement or use Enterprise Integration Patterns?"}, {"uroven": 2, "text": "How can you use the Patterns?"}, {"uroven": 2, "text": "What about REST / SOA / Serverless / EDA Patterns?"}, {"uroven": 2, "text": "Be Part of the Community"}, {"uroven": 2, "text": "Contributors"}], "markdown": "| | Messaging Patterns Overview[Messaging Patterns](index.html) | [Contents](toc.html)[Next ⇒](toc.html) |\n| --- | --- | --- |\n\nThis pattern catalog includes 65 integration patterns that we collected from integration projects and updated over two decades. They provide technology-independent design guidance for developers and architects to develop and document robust integration solutions. The [65 messaging patterns](toc.html) are organized as follows (click on the image or view the [Table of Contents](toc.html)):\n\n## Integration Pattern Language\n\n[Message Construct.](MessageConstructionIntro.html)\n\n[Message](Message.html)\n\n[Command Message](CommandMessage.html)\n\n[Document Message](DocumentMessage.html)\n\n[Event Message](EventMessage.html)\n\n[Request-Reply](RequestReply.html)\n\n[Return Address](ReturnAddress.html)\n\n[Correlation Identifier](CorrelationIdentifier.html)\n\n[Message Sequence](MessageSequence.html)\n\n[Message Expiration](MessageExpiration.html)\n\n[Format Indicator](FormatIndicator.html)\n\n[Message Routing](MessageRoutingIntro.html)\n\n[Pipes-and-Filters](PipesAndFilters.html)\n\n[Message Router](MessageRouter.html)\n\n[Content-based Router](ContentBasedRouter.html)\n\n[Message Filter](Filter.html)\n\n[Dynamic Router](DynamicRouter.html)\n\n[Recipient List](RecipientList.html)\n\n[Splitter](Sequencer.html)\n\n[Aggregator](Aggregator.html)\n\n[Resequencer](Resequencer.html)\n\n[Composed Msg. Processor](DistributionAggregate.html)\n\n[Scatter-Gather](BroadcastAggregate.html)\n\n[Routing Slip](RoutingTable.html)\n\n[Process Manager](ProcessManager.html)\n\n[Message Broker](MessageBroker.html)\n\n[Message\nTransformation](MessageTransformationIntro.html)\n\n[Message Translator](MessageTranslator.html)\n\n[Envelope Wrapper](EnvelopeWrapper.html)\n\n[Content Enricher](DataEnricher.html)\n\n[Content Filter](ContentFilter.html)\n\n[Claim Check](StoreInLibrary.html)\n\n[Normalizer](Normalizer.html)\n\n[Canonical Data Model](CanonicalDataModel.html)\n\n[Messaging Endpoints](MessagingEndpointsIntro.html)\n\n[Message Endpoint](MessageEndpoint.html)\n\n[Messaging Gateway](MessagingGateway.html)\n\n[Messaging Mapper](MessagingMapper.html)\n\n[Transactional Client](TransactionalClient.html)\n\n[Polling Consumer](PollingConsumer.html)\n\n[Event-driven Consumer](EventDrivenConsumer.html)\n\n[Competing Consumers](CompetingConsumers.html)\n\n[Message Dispatcher](MessageDispatcher.html)\n\n[Selective Consumer](MessageSelector.html)\n\n[Durable Subscriber](DurableSubscription.html)\n\n[Idempotent Receiver](IdempotentReceiver.html)\n\n[Service Activator](MessagingAdapter.html)\n\n[Messaging Channels](MessagingChannelsIntro.html)\n\n[Message Channel](MessageChannel.html)\n\n[Point-to-Point Channel](PointToPointChannel.html)\n\n[Publish-Subscr. Channel](PublishSubscribeChannel.html)\n\n[Datatype Channel](DatatypeChannel.html)\n\n[Invalid Message Channel](InvalidMessageChannel.html)\n\n[Dead Letter Channel](DeadLetterChannel.html)\n\n[Guaranteed Delivery](GuaranteedMessaging.html)\n\n[Channel Adapter](ChannelAdapter.html)\n\n[Messaging Bridge](MessagingBridge.html)\n\n[Message Bus](MessageBus.html)\n\n[Systems Mgmt.](SystemManagementIntro.html)\n\n[Control Bus](ControlBus.html)\n\n[Detour](Detour.html)\n\n[Wire Tap](WireTap.html)\n\n[Message History](MessageHistory.html)\n\n[Message Store](MessageStore.html)\n\n[Smart Proxy](SmartProxy.html)\n\n[Test Message](TestMessage.html)\n\n[Channel Purger](ChannelPurger.html)\n\n- [**Integration Styles**](IntegrationStylesIntro.html) document different ways applications can be integrated, providing a historical account of integration technologies. All subsequent patterns follow the [*Messaging*](Messaging.html) style.\n- [**Channel Patterns**](MessagingChannelsIntro.html) describe how messages are transported across a [*Message Channel*](MessageChannel.html) . Most messaging systems implement these patterns.\n- [**Message Construction Patterns**](MessageConstructionIntro.html) describe the intent, form and content of the messages that travel across the messaging system. The [*Message*](Message.html) pattern is the base pattern for this section.\n- [**Routing Patterns**](MessageRoutingIntro.html) discuss how messages are directed from a sender to the correct receiver(s). The patterns presented in this section are specializations of the [*Message Router*](MessageRouter.html) pattern.\n- [**Transformation Patterns**](MessageTransformationIntro.html) change the content of a message, for example to accommodate different data formats used by the sending and the receiving system. Data may have to be added, taken away or existing data may have to be rearranged. The base pattern for this section is the [*Message Translator*](MessageTranslator.html) .\n- [**Endpoint Patterns**](MessagingEndpointsIntro.html) describe how applications produce or consume messages.\n- [**System Management Patterns**](SystemManagementIntro.html) describe what's needed to keep a complex message-based system running smoothly.\n\n## Why Enterprise Integration Patterns?\n\nIntegration is a long-running topic in all aspects of software and IT, and it's too multi-faceted to be tackled with a simple 'cookbook' approach. Patterns, in contrast, document knowledge and experience that usually lives only in architects' heads. As accepted solutions to recurring problems, patterns are abstract enough to apply across integration technologies, but specific enough to provide hands-on guidance. They also provide a vocabulary to accurately describe solutions.\n\nPatterns are not 'invented'; they are harvested from repeated use in practice. If you have built integration solutions, you likely have used some of these patterns, maybe in slight variations and perhaps calling them by a different name. This site condenses that experience into a coherent collection of proven patterns that form an integration pattern language. Patterns live in a specific context. This first set of patterns focus on [*Messaging*](Messaging.html). We also started to [harvest Conversation patterns](/patterns/conversation).\n\n## What products implement or use Enterprise Integration Patterns?\n\nThe patterns are independent of a specific implementation and help you design better solutions with any of the following platforms:\n\n- **Open source ESB's** like [Mule ESB](http://www.mulesoft.org/) , [JBoss Fuse](http://www.jboss.org/products/fuse/overview/) , [Open ESB](http://www.open-esb.net/) , [WSo2](http://wso2.com/) , [Spring Integration](http://projects.spring.io/spring-integration/) , or [Talend ESB](http://www.talend.com/)\n- **Message Brokers** like [ActiveMQ](http://activemq.apache.org) , [Apache Kafka](https://kafka.apache.org/) , or [RabbitMQ](https://www.rabbitmq.com)\n- **EAI and SOA platforms** , such as [IBM WebSphere MQ](http://www.ibm.com/software/mqseries) , [TIBCO](http://www.tibco.com) , [Vitria](http://www.vitria.com) , [Oracle Service Bus](http://www.oracle.com/technetwork/middleware/service-bus) , [WebMethods](http://www.softwareag.com/corporate/products/webmethods_integration/integration/overview/default.asp) (now Software AG), [Microsoft BizTalk](http://www.microsoft.com/biztalk) , or [Fiorano](http://www.fiorano.com) .\n- **Cloud-based integration** , including [Amazon Simple Queue Service (SQS)](http://aws.amazon.com/sqs/) , [Amazon EventBridge](https://aws.amazon.com/eventbridge/) , [Google Cloud Pub/Sub](https://cloud.google.com/pubsub/) , or [Azure Service Bus](https://azure.microsoft.com/en-us/products/service-bus) .\n- **JMS-based messaging systems**\n- **Microsoft technologies** like [MSMQ](https://msdn.microsoft.com/en-us/library/ms711472) or [Windows Communication Foundation (WCF)](https://msdn.microsoft.com/library/vstudio/ms735119)\n\n## How can you use the Patterns?\n\nTo encourage widespread use of the integration pattern language, many parts are available under open source licensing. You are free to use the pattern name, icon, problem and solution statements, and the sketches (the diagram below the solution statement) under the [Creative Commons Attribution](http://creativecommons.org/licenses/by/4.0/) license.\n\n> The [CC-BY](https://creativecommons.org/licenses/by/4.0/) license allows you share, use and modify these elements as long as you give proper attribution, such as a link to this site or a citation of the book. See the [license for more detail](https://creativecommons.org/licenses/by/4.0/)\n> \n> .\n\nYou can do a lot more with the patterns:\n\n- **Build** . Many open-source frameworks, such as [Mule](http://mule.codehaus.org/display/MULE/Architecture+Guide) , [Apache Camel](http://activemq.apache.org/camel/) , or [Spring Integration](http://projects.spring.io/spring-integration/) incorporate our patterns. You can not only think in integration patterns, but also to code in them!\n- **Document** . You can create design documents using our icon language by downloading the [Visio stencil](downloads.html) or using the [OmniGraffle stencil](http://www.graffletopia.com/stencils/137) created by one of our readers.\n- **Read** . The book [*Enterprise Integration Patterns*](http://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20) (Addison-Wesley, ISBN 0321200683) contains the full description of each pattern with plenty of examples -- over 700 pages worth of material. You can also read the full text [on-line on Safari](http://safari.informit.com/0321200683) (with membership).\n- **Teach** . A number of professors use our material in lectures. If you are interested in getting access to material for academic purposes, please [contact us](gregor.html) .\n\n## What about REST / SOA / Serverless / EDA Patterns?\n\nThe integration problems we solve today remain [frustratingly similar](/ramblings/81_restconversation.html) to 20 years ago. The design knowledhe encapsulated in the patterns does not age like specific technologies. A list of [modern examples](/ramblings/eip1_examples_updated.html) shows how the patterns apply to integration technologies like Kafka, Google Cloud Pub/Sub, Amazon SQS or [REST](/ramblings/81_restconversation.html). I've also re-implemented the Loan Broker example application in [AWS Lambda, EventBridge, and Step Functions](/ramblings/loanbroker_stepfunctions.html) and [GCP PubSub and Workflows](/ramblings/loanbroker_gcp_workflows.html).\n\n## Be Part of the Community\n\nFeel free to connect on [LinkedIn](https://www.linkedin.com/in/ghohpe). We welcome your feedback!\n\n## Contributors\n\nThe patterns on this site are the result of discussions involving numerous individuals. Kyle Brown (co-author of \"Enterprise Java Programming for IBM WebSphere\" and \"The Design Patterns Smalltalk Companion\"), John Crupi (co-author of \"Core J2EE Patterns\"), Martin Fowler (author of too many books to mention here), Rachel Reinitz, Mark Weitzel were part of the original discussions. Conrad D'Cruz, Sean Neville, Mike Rettig, Jonathan Simon ended up authoring examples, case studies, and a chapter on the future of integration.", "znaku_textu": 10651, "slov": 1085, "odkazu": 124, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/eaipatterns.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 14:51:14", "sha256": "dc85b74166b38c3432f7ef43820ecbd22e4e2ef0d7177fb1748db04b01f2bb90", "hloubka": 3, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://www.mulesoft.org/", "http://www.jboss.org/products/fuse/overview/", "http://www.open-esb.net/", "http://wso2.com/", "http://projects.spring.io/spring-integration/", "http://www.talend.com/", "http://activemq.apache.org/", "https://kafka.apache.org/", "https://www.rabbitmq.com/", "http://www.ibm.com/software/mqseries", "http://www.tibco.com/", "http://www.vitria.com/", "http://www.oracle.com/technetwork/middleware/service-bus", "http://www.softwareag.com/corporate/products/webmethods_integration/integration/overview/default.asp", "http://www.microsoft.com/biztalk", "http://www.fiorano.com/", "http://aws.amazon.com/sqs/", "https://aws.amazon.com/eventbridge/", "https://cloud.google.com/pubsub/", "https://azure.microsoft.com/en-us/products/service-bus", "https://msdn.microsoft.com/en-us/library/ms711472", "https://msdn.microsoft.com/library/vstudio/ms735119", "http://creativecommons.org/licenses/by/4.0/", "https://creativecommons.org/licenses/by/4.0/", "http://mule.codehaus.org/display/MULE/Architecture+Guide", "http://activemq.apache.org/camel/", "http://www.graffletopia.com/stencils/137", "http://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "http://safari.informit.com/0321200683", "https://www.linkedin.com/in/ghohpe", "https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "https://www.architectelevator.com/book", "https://www.cloudstrategybook.com/", "https://www.platformstrategybook.info/"]} {"url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/Aggregator.html", "titulek": "Aggregator - Enterprise Integration Patterns", "h1": "", "popis": "How do we combine the results of individual, but related messages so that they can be processed as a whole?", "klicova_slova": "Aggregator,integration, messaging, events, patterns, event-driven, coupling, eai, middleware, application integration, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns", "og:title": "Aggregator - Enterprise Integration Patterns", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/Aggregator.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/Aggregator.gif"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Example: Serverless Loan Broker on AWSNEW"}, {"uroven": 2, "text": "Example: Serverless Loan Broker on GCPNEW"}, {"uroven": 2, "text": "Integration Pattern Language"}], "markdown": "| | Aggregator[Messaging Patterns](index.html) » [Message Routing](MessageRoutingIntro.html) | [Contents](toc.html)[⇐ Prev](Sequencer.html)[Next ⇒](Resequencer.html) |\n| --- | --- | --- |\n\nA [*Splitter*](Sequencer.html) is useful to break out a single message into a sequence of sub-messages that can be processed individually. Likewise, a [*Recipient List*](RecipientList.html) or a [*Publish-Subscribe Channel*](PublishSubscribeChannel.html) is useful to forward a request message to multiple recipients in parallel in order to get multiple responses to choose from. In most of these scenarios, the further processing depends on successful processing of the sub-messages. For example, we want to select the best bid from a number of vendor responses or we want to bill the client for an order after all items have been pulled from the warehouse.\n\nHow do we combine the results of individual, but related messages so that they can be processed as a whole?\n\nUse a stateful filter, an *Aggregator*, to collect and store individual messages until a complete set of related messages has been received. Then, the *Aggregator* publishes a single message distilled from the individual messages.\n\nThe *Aggregator* is a special *Filter* that receives a stream of messages and identifies messages that are correlated. Once a complete set of messages has been received (more on how to decide when a set is 'complete' below), the *Aggregator* collects information from each correlated message and publishes a single, aggregated message to the output channel for further processing.\n\nWhen designing an *Aggregator*, we need to specify the following items:\n\n- **Correlation** - which incoming messages belong together?\n- **Completeness Condition** - when are we ready to publish the result message?\n- **Aggregation Algorithm** - how do we combine the received messages into a single result message?\n\nThere are a number of strategies for aggregator completeness conditions. The available strategies primarily depend on whether we know how many messages to expect or not. The *Aggregator* could know the number of sub-messages to expect because it received a copy of the original composite message or because each individual message contains the total count (as described in the [*Splitter*](Sequencer.html) example). Depending on how much the *Aggregator* knows about the message stream, the most common strategies are as follows:\n\n- **\"Wait for All\"** Wait until all responses are received. This scenario is most likely in the order example we discussed earlier. An incomplete order may not be meaningful. So if not all items are received within a certain time-out period an error condition should be raised by the *Aggregator* . This approach may give us the best basis for decision-making, but may also be the slowest and most brittle (plus we need to know how many messages to expect). A single missing or delayed message will prevent further processing of the whole aggregate. Resolving such error conditions can be a complicated matter in loosely-coupled asynchronous systems because the asynchronous flow of messages makes it hard to reliably detect error conditions (how long should we wait before a message is \"missing\"?). One way to deal with missing messages is to re-request the message. However, this approach requires the *Aggregator* to know the source of the message, which may introduce additional dependencies between the *Aggregator* and other components.\n- **\"Time Out\"** Wait for a specified length of time for responses and then make a decision by evaluating those responses received within that time limit. If no responses are received, the system may report an exception or retry. This heuristic is useful if incoming responses are scored and only the message (or a small number of messages) with the highest score is used. This approach is common in \"bidding\" scenarios.\n- **\"First Best\"** Wait only until the first (fastest) response is received and ignore all other responses. This approach is the fastest, but ignores a lot of information. It may be practical in a bidding or quoting scenario where response time is critical.\n- **\"Time Out with Override\"** Wait for a specified amount of time or until a message with a preset minimum score has been received. In this scenario, we are willing to abort early if we find a very favorable response; otherwise, we keep on going until time is up. If no clear winner was found at that point, rank ordering among all the messages received so far occurs.\n- **\"External Event\"** Sometimes the aggregation is concluded by the arrival of an external business event. For example, in the financial industry, the end of the trading day may signal the end of an aggregation of incoming price quotes. Using a fixed timer for such an event reduces flexibility because it does not other variability. Also, a designated business even in form of an [*Event Message*](EventMessage.html) allows for central control of the system. The *Aggregator* can listen for the [*Event Message*](EventMessage.html) on a special control channel or receive a specially formatted message that indicates the end of the aggregation.\n\n...\nRead the entire pattern in the book [Enterprise Integration Patterns](/books1.html)\n\n## Example: Serverless Loan Broker on AWS[NEW](/ramblings/eip1_examples_updated.html)\n\nThe [modern implementation of the Loan Broker using AWS serverless constructs](/ramblings/loanbroker_stepfunctions_pubsub.html#aggregator) includes an implementation of a *Aggregator* with Lambda and DynamoDB. The *Aggregator* uses a simple completeness condition of waiting for a minimum number of answers. The surrounding workflow, implemented using AWS Step Functions, adds a time-out component.\n\n## Example: Serverless Loan Broker on GCP[NEW](/ramblings/eip1_examples_updated.html)\n\nThe [modern implementation of the Loan Broker using GCP](/ramblings/loanbroker_gcp_workflows.html) includes an implementation of a *Aggregator* with a Cloud Function and Datastore. The implementation stores all elements of a specific Aggregate under the same key and can therefore fail when inserting the record (Datastore doesn't seem to like heavy contention on one record). It therefore configures retry logic on the incoming messages. The *Aggregator* signals back to the [*Process Manager*](ProcessManager.html) on completion.\n\n**Related patterns:**\n\n[*Scatter-Gather*](BroadcastAggregate.html), [*Introduction to Composed Messaging Examples*](ComposedMessagingExample.html), [*Content-Based Router*](ContentBasedRouter.html), [*Control Bus*](ControlBus.html), [*Correlation Identifier*](CorrelationIdentifier.html), [*Composed Message Processor*](DistributionAggregate.html), [*Event-Driven Consumer*](EventDrivenConsumer.html), [*Event Message*](EventMessage.html), [*Guaranteed Delivery*](GuaranteedMessaging.html), [*Message Expiration*](MessageExpiration.html), [*Point-to-Point Channel*](PointToPointChannel.html), [*Process Manager*](ProcessManager.html), [*Publish-Subscribe Channel*](PublishSubscribeChannel.html), [*Recipient List*](RecipientList.html), [*Resequencer*](Resequencer.html), [*Splitter*](Sequencer.html), [*Transactional Client*](TransactionalClient.html)\n\n---\n\n## Integration Pattern Language\n\n[Message Construct.](MessageConstructionIntro.html)\n\n[Message](Message.html)\n\n[Command Message](CommandMessage.html)\n\n[Document Message](DocumentMessage.html)\n\n[Event Message](EventMessage.html)\n\n[Request-Reply](RequestReply.html)\n\n[Return Address](ReturnAddress.html)\n\n[Correlation Identifier](CorrelationIdentifier.html)\n\n[Message Sequence](MessageSequence.html)\n\n[Message Expiration](MessageExpiration.html)\n\n[Format Indicator](FormatIndicator.html)\n\n[Message Routing](MessageRoutingIntro.html)\n\n[Pipes-and-Filters](PipesAndFilters.html)\n\n[Message Router](MessageRouter.html)\n\n[Content-based Router](ContentBasedRouter.html)\n\n[Message Filter](Filter.html)\n\n[Dynamic Router](DynamicRouter.html)\n\n[Recipient List](RecipientList.html)\n\n[Splitter](Sequencer.html)\n\n[Aggregator](Aggregator.html)\n\n[Resequencer](Resequencer.html)\n\n[Composed Msg. Processor](DistributionAggregate.html)\n\n[Scatter-Gather](BroadcastAggregate.html)\n\n[Routing Slip](RoutingTable.html)\n\n[Process Manager](ProcessManager.html)\n\n[Message Broker](MessageBroker.html)\n\n[Message\nTransformation](MessageTransformationIntro.html)\n\n[Message Translator](MessageTranslator.html)\n\n[Envelope Wrapper](EnvelopeWrapper.html)\n\n[Content Enricher](DataEnricher.html)\n\n[Content Filter](ContentFilter.html)\n\n[Claim Check](StoreInLibrary.html)\n\n[Normalizer](Normalizer.html)\n\n[Canonical Data Model](CanonicalDataModel.html)\n\n[Messaging Endpoints](MessagingEndpointsIntro.html)\n\n[Message Endpoint](MessageEndpoint.html)\n\n[Messaging Gateway](MessagingGateway.html)\n\n[Messaging Mapper](MessagingMapper.html)\n\n[Transactional Client](TransactionalClient.html)\n\n[Polling Consumer](PollingConsumer.html)\n\n[Event-driven Consumer](EventDrivenConsumer.html)\n\n[Competing Consumers](CompetingConsumers.html)\n\n[Message Dispatcher](MessageDispatcher.html)\n\n[Selective Consumer](MessageSelector.html)\n\n[Durable Subscriber](DurableSubscription.html)\n\n[Idempotent Receiver](IdempotentReceiver.html)\n\n[Service Activator](MessagingAdapter.html)\n\n[Messaging Channels](MessagingChannelsIntro.html)\n\n[Message Channel](MessageChannel.html)\n\n[Point-to-Point Channel](PointToPointChannel.html)\n\n[Publish-Subscr. Channel](PublishSubscribeChannel.html)\n\n[Datatype Channel](DatatypeChannel.html)\n\n[Invalid Message Channel](InvalidMessageChannel.html)\n\n[Dead Letter Channel](DeadLetterChannel.html)\n\n[Guaranteed Delivery](GuaranteedMessaging.html)\n\n[Channel Adapter](ChannelAdapter.html)\n\n[Messaging Bridge](MessagingBridge.html)\n\n[Message Bus](MessageBus.html)\n\n[Systems Mgmt.](SystemManagementIntro.html)\n\n[Control Bus](ControlBus.html)\n\n[Detour](Detour.html)\n\n[Wire Tap](WireTap.html)\n\n[Message History](MessageHistory.html)\n\n[Message Store](MessageStore.html)\n\n[Smart Proxy](SmartProxy.html)\n\n[Test Message](TestMessage.html)\n\n[Channel Purger](ChannelPurger.html)", "znaku_textu": 9842, "slov": 1169, "odkazu": 111, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/Aggregator.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 06:02:31", "sha256": "15d8640d5ad149a0e54a23c4cfe4a84c0abdcec421de2f9eb301daf21d708f58", "hloubka": 1, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://creativecommons.org/licenses/by/4.0/", "https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "https://www.architectelevator.com/book", "https://www.cloudstrategybook.com/", "https://www.platformstrategybook.info/"]} {"url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/BondTradingCaseStudy.html", "titulek": "Case Study: Bond Trading System - Enterprise Integration Patterns", "h1": "", "popis": "It is easy to distance yourself from a large collection of patterns or a pattern language. Patterns are the abstraction of an idea in a reusable form. Often, the very generic nature of patterns that makes them so useful also makes them hard to grasp. Sometimes the best thing to help understand patterns is a real world example. Not a contrived scenario of what could happen; but what actually happens and what will happen.", "klicova_slova": "Case Study: Bond Trading System,integration, messaging, events, patterns, event-driven, coupling, eai, middleware, application integration, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns", "og:title": "Case Study: Bond Trading System - Enterprise Integration Patterns", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/BondTradingCaseStudy.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/eip1_patterns_wide.png"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Building a System"}, {"uroven": 2, "text": "Architecture with Patterns"}, {"uroven": 2, "text": "Structuring Channels"}, {"uroven": 2, "text": "Selecting a Message Channel?"}, {"uroven": 2, "text": "Problem Solving With Patterns"}, {"uroven": 2, "text": "Flashing Market Data Updates"}, {"uroven": 2, "text": "Major Production Crash"}, {"uroven": 2, "text": "Summary"}, {"uroven": 2, "text": "Integration Pattern Language"}], "markdown": "| | Case Study: Bond Trading System[Messaging Patterns](index.html) » Integration Patterns in Practice | [Contents](toc.html)[⇐ Prev](SystemManagementExample.html)[Next ⇒](Future.html) |\n| --- | --- | --- |\n\n*(By Jonathan Simon)*\n\nIt is easy to distance yourself from a large collection of patterns or a pattern language. Patterns are the abstraction of an idea in a reusable form. Often, the very generic nature of patterns that makes them so useful also makes them hard to grasp. Sometimes the best thing to help understand patterns is a real world example. Not a contrived scenario of what *could* happen; but what *actually* happens and what *will* happen.\n\nThis chapter applies patterns to solve problems using a discovery process. The system we will discuss is a bond trading system that I worked with for two years from initial design through production. We will explore scenarios and problems that were encountered and how to solve them with patterns. This involves the decision process of choosing a pattern, as well as how to combine and adjust patterns to suit the needs of the system. And this is all done taking into account the forces encountered in real systems including business requirements, client decisions, architectural and technical requirements, as well as legacy system integration. The intent of this approach is to provide a clearer understanding of the patterns themselves through practical application.\n\n## Building a System\n\nA major Wall Street investment bank sets out to build a bond pricing system in an effort to streamline the workflow of their bond trading desk. Currently, bond traders have to send prices for a large number of bonds to several different trading venues, each with its own user interface. The goal for the system is to minimize the minutiae of pricing all of their bonds combined with advanced analytic functionality specific to the bond market in a single encapsulated user interface. This means integration and communication with several components over various communication protocols. The high level flow of the system looks like this:\n\n*High Level Flow*\n\nFirst, market data comes into the system. Market data is data regarding the price and other properties of the bond representing what people are willing to buy and sell the bond for on the free market. The market data is immediately sent to the analytics engine that alters the data. Analytics refers to mathematical functions for financial applications that alter the prices and other attributes of bonds. These are generic functions that use input variables to tailor the results of the function to a particular bond. The client application that will run on each trader desktop will configure the analytics engine on a per trader basis, controlling the specifics of the analytics for each bond the trader is pricing. Once the analytics are applied to the market data, the modified data is sent out to various trading venues where traders from other firms can buy or sell the bonds.\n\n## Architecture with Patterns\n\nWith this overview of the workflow of the system, we can approach some of the architectural problems we encounter during the design process. Let’s take a look at what we know to date. Traders need a very responsive application on both Windows NT and Solaris workstations. Therefore, we decided to implement the client application as a Java thick client because of its platform independence and its ability to quickly respond to user input and market data. On the server side, we are inheriting legacy C++ components that our system will utilize. The market data components communicate with the TIBCO Information Bus (TIB) messaging infrastructure.\n\nWe are inheriting the following components:\n\n- **Market Data Price Feed Server** : Publishes incoming market data to the TIB.\n- **Analytics Engine** : Performs analytics on incoming market data and broadcasts the modified market data to the TIB.\n- **Contribution Server** : Performs all communication with trading venues. The trading venues are third party components not controlled by the bank.\n\n*Legacy Market Data Subsystem* \n *Legacy Contribution Subsystem*\n\nWe need to decide how the separate subsystems (Java thick client, market data, and contribution) are going to communicate. We could have the thick client communicate directly with the legacy servers, but that would require too much business logic on the client. Instead, we’ll build a pair of Java gateways to communicate with the legacy servers—The Pricing Gateway for market data a Contribution Gateway for sending prices to trading venues. This will achieve nice encapsulation of the business logic related to these areas. The current components in the system are shown below. The connections marked as “???” indicate that we are still unsure how some of the components will communicate.\n\n*The system and its components*\n\nThe first communication question is how to integrate the Java thick client and the two Java server components in order to exchange data. Let’s look at the four integration styles suggested in this book: [*File Transfer*](FileTransferIntegration.html), [*Shared Database*](SharedDataBaseIntegration.html), [*Remote Procedure Invocation*](EncapsulatedSynchronousIntegration.html), and [*Messaging*](Messaging.html). We can rule out [*Shared Database*](SharedDataBaseIntegration.html) immediately because we wanted to create a layer of abstraction between the client and the database and don’t want to have database access code in the client. [*File Transfer*](FileTransferIntegration.html) can similarly be ruled out since minimal latency is required to ensure current prices are sent out to the trading venues. This leaves us with a choice between [*Remote Procedure Invocation*](EncapsulatedSynchronousIntegration.html) or [*Messaging*](Messaging.html).\n\nThe Java platform provides built-in support for both [*Remote Procedure Invocation*](EncapsulatedSynchronousIntegration.html) and [*Messaging*](Messaging.html). RPC-style integration can be achieved using Remote Method Invocation (RMI), CORBA, or Enterprise Java Beans (EJB). The Java Messaging Service (JMS) is the common API for messaging-style integration. So both integration styles are easy to implement in Java.\n\nSo which will work better for this project, [*Remote Procedure Invocation*](EncapsulatedSynchronousIntegration.html) or [*Messaging*](Messaging.html)? There’s only one instance of the Pricing Gateway and one instance of the Contribution Gateway in the system, but usually many Thick Clients simultaneously connect to these services (one for each bond trader that happens to be logged in at a particular time). Furthermore, the bank would like this to be a generic pricing system that can be utilized in other applications. So besides an unknown number of Think Clients, there may be an unknown number of other applications using the pricing data coming out of the Gateways.\n\nA Thick Client (or other application using the pricing data) can fairly easily use RPC to make calls to the Gateways to get pricing data and invoke processing. However, pricing data will constantly be published, and certain clients are only interested in certain data, so getting the relevant data to the proper clients in a timely manner could be difficult. The clients could poll the Gateways, but that will create a lot of overhead. It would be better for the Gateways to make the data available to the clients as soon as it is available. This, however, will require each Gateway to keep track of which clients are currently active, and which want what particular data; then, when a new piece of data becomes available (which will happen numerous times per second), the Gateway will have to make an RPC to each interested client to pass the data to the client. Ideally, all clients should be notified simultaneously, so each RPC needs to be made in its own concurrent thread. This can work, but is getting very complicated very fast.\n\n[*Messaging*](Messaging.html) greatly simplifies this problem. With [*Messaging*](Messaging.html), we can define separate channels for the different types of pricing data. Then, when a Gateway gets a new piece of data, it will add a message containing that data to the [*Publish-Subscribe Channel*](PublishSubscribeChannel.html) for that data type. Meanwhile, all clients interested in a certain type of data will listen on the channel for that type. In this way, the Gateways can easily send out new data to whomever is interested, without needing to know how many listener applications there are or what they are.\n\nThe clients still need to be able to invoke behavior in the Gateways as well. Since there are ever only two Gateways, and the client can probably block while the method is invoked synchronously, these client-to-Gateway invocations can fairly easily be implemented using RPC. However, since we are already using messaging for Gateway-to-client communication, messages are probably just as good a way to implement client-to-Gateway communication as well.\n\nTherefore, all communication between the Gateways and the clients will be accomplished through messaging. Because all of the components are written in Java, JMS presents an easy choice for as the messaging system. This is effectively creating a [*Message Bus*](MessageBus.html) or an architecture that will make it possible for future systems to integrate with the current system with little or no changes to the messaging infrastructure. This way, the business functionality of the application can be easily used by other application the bank develops.\n\n*Java Components Communicating with JMS*\n\nJMS is simply a specification and we need to decide on a JMS-compliant messaging system. We decided to use IBM MQSeries JMS because the bank is an “IBM shop,” using WebSphere application servers and many other IBM products. As a result, we will use MQSeries since we already have a support infrastructure in place and a site license of the product.\n\nThe next question is how to connect the MQSeries messaging system with the standalone C++ Contribution server and the TIBCO based Market Data and Analytics Engine servers. We need a way for the MQSeries consumers to have access to the TIB messages. But how? Perhaps we could use the [*Message Translator*](MessageTranslator.html) pattern to translate TIB messages into MQSeries messages. Although the C++ client for MQSeries serves as a [*Message Translator*](MessageTranslator.html), using it would sacrifice JMS server independence. And although TIBCO does have a Java API, the customer architect and manager have rejected it. As a result, the [*Message Translator*](MessageTranslator.html) approach has to be abandoned.\n\nThe bridge from the TIB server to the MQSeries server requires communication between C++ and Java. We could use CORBA, but then what about the messaging? A closer look at the [*Message Translator*](MessageTranslator.html) pattern shows it is related to the [*Channel Adapter*](ChannelAdapter.html) in its use of communication protocols. The heart of a [*Channel Adapter*](ChannelAdapter.html) is to connect non-messaging systems to messaging systems. A pair of channel adapters that connects two messaging systems is a [*Messaging Bridge*](MessagingBridge.html).\n\nThe purpose of a [*Messaging Bridge*](MessagingBridge.html) is to transfer messages from one messaging system to another. This is exactly what we are doing with the added complexity of the intra-language Java to C++ communication. We can implement the cross language [*Messaging Bridge*](MessagingBridge.html) using a combination of [*Channel Adapter*](ChannelAdapter.html)s and CORBA. We will build two lightweight [*Channel Adapter*](ChannelAdapter.html) servers, one in C++ managing communication with the TIB, and one in Java managing communication with JMS. These two [*Channel Adapter*](ChannelAdapter.html), which are [*Message Endpoint*](MessageEndpoint.html)s themselves, will communicate with each other via CORBA. Like our choice for MQSeries, we will use CORBA rather than JNI since it is a company standard. The messaging bridge implements the effectively simulated message translation between seemingly incompatible messaging systems and different languages.\n\n*Message Translator using Channel Adapters*\n\nThe next diagram shows the current system design including the Gateways and other components. This is a good example of pattern application. We combined two [*Channel Adapter*](ChannelAdapter.html)s with a non-messaging protocol to implement the [*Message Translator*](MessageTranslator.html) pattern, effectively using one pattern to implement another pattern. Additionally, we changed the [*Channel Adapter*](ChannelAdapter.html)s' context to link two messaging systems with a non-messaging cross language translation protocol rather than connecting a messaging system to a non-messaging system.\n\n*The current system with the Channel Adapters*\n\n## Structuring Channels\n\nA key to working with patterns is not only knowing when to use which pattern, but also how to most effectively use it. Each pattern implementation has to take into account specifics of the technology platform as well as other design criteria. This section applies the same discovery process to find the most efficient use of the [*Publish-Subscribe Channel*](PublishSubscribeChannel.html) in the context of the market data server communicating with the analytics engine.\n\nReal time market data originates with market data feed, a C++ server that broadcasts market data on the TIB. The market data feed uses a separate [*Publish-Subscribe Channel*](PublishSubscribeChannel.html) for each bond it is publishing prices for. This may seem a little extreme since each new bond needs its own new channel. But this is not so severe since you do not actually need to create channels in TIBCO. Rather, channels are referenced by a hierarchical set of topic names called subjects. The TIBCO server then filters a single message flow by subject, sending each unique subject to a single virtual channel. The result of which is a very lightweight message channel.\n\nWe could create a system that publishes on a few channels and subscribers could listen only for prices they are interested in. This would require subscribers to use a [*Message Filter*](Filter.html) or [*Selective Consumer*](MessageSelector.html) to filter the entire data flow for interesting bond prices, deciding whether each message should be processed as it is received. Given that the market data is published on bond-dedicated channels, subscribers can register for updates on a series of bonds. This effectively allows subscribers to \"filter\" by selectively subscribing to channels and only receiving updates of interest rather than deciding after the message is received. It is important to note that using multiple channels to avoid filtering is a nonstandard use of messaging channels. In context of the TIBCO technology however, we are really deciding whether to implement or own filters or utilize the channel filtering built into TIBCO -- rather than whether to use so many channels.\n\nThe next component we need to design is the analytics engine, another C++/TIB server that will modify the market data and rebroadcast it to the TIB. Although it is out of the scope of our Java/JMS development, we are working closely with the C++ team to design it since we are the analytics engine's primary 'customer'. The problem at hand is to find the channel structure that most efficiently rebroadcast the newly modified market data.\n\nSince we already have one dedicated [*Message Channel*](MessageChannel.html) per bond inherited from the market data price feed, it would be logical to modify the market data and rebroadcast the modified market data on the bond dedicated [*Message Channel*](MessageChannel.html). But this will not work since the analytics modifying the bonds prices are trader specific. If we rebroadcast the modified data on the bond [*Message Channel*](MessageChannel.html), we will destroy the data integrity by replacing generic market data with trader specific data. On the other hand, we could have a different message type for trader specific market data that we publish on the same channel allowing subscribers to decide which message they are interested in to avoid destroying the data integrity. But then clients will have to implement their own filters to separate out messages for other traders. Additionally, there will a substantial increase in messages received by subscribers, placing an unnecessary burden on them.\n\nThere are two options:\n\n1. One Channel per Trader: Each trader has a designated channel for the modified market data. This way, the original market data remains intact and each trader application can listen to its specific traders Message Channel for the modified price updates.\n2. One Channel per trader per Bond: Create one Message Channel per-trader per-bond solely for the modified market data of that bond. For example, the market data for bond ABC would be published on channel \"Bond ABC\" while the modified market data for trader A would be published on Message Channel \"Trader A, Bond ABC\", modified market data for trader B on \"Trader B, Bond ABC,\" and so on.\n\n*One channel per trader* \n *One channel per bond per trader*\n\nThere are advantages and disadvantages to each approach. The per-bond approach, for example, uses a lot more [*Message Channel*](MessageChannel.html). In the worst-case scenario, the number of [*Message Channel*](MessageChannel.html) will be the number of bonds total multiplied by the number of traders. We can put upper bounds on the number of channels that will be created since we know that there are only around 20 traders and they never price more than a couple hundred bonds. This puts the upper limit below the 10,000 range, which is not so outlandish compared to the nearly 100,000 [*Message Channel*](MessageChannel.html) the market data price feed is using. Also, since we are using the TIB and [*Message Channel*](MessageChannel.html) are quite inexpensive, the number of [*Message Channel*](MessageChannel.html)s is not a severe issue. On the other hand, the sheer number of [*Message Channel*](MessageChannel.html)s could be a problem from a management perspective. Every time a bond is added a channel for each trader must be maintained. This could be severe in a very dynamic system. Our system, however, is essentially static. It also has an infrastructure for automatically managing [*Message Channel*](MessageChannel.html)s. This combined with the inherited architecture of a legacy component using a similar approach minimizes the downside. This is not to say we should make an unnecessarily excessive number of [*Message Channel*](MessageChannel.html)s. Rather, we can implement an architectural approach that uses a large number of [*Message Channel*](MessageChannel.html)s when there is a reason.\n\nAnd there is a reason in this case that comes down to the location of logic. If we implement the per trader approach, the Analytics Engine needs logic to group input and output channels. This is because the input channels from the Analytics Engine are per bond and the output [*Message Channel*](MessageChannel.html)s would be per trader, requiring the Analytics Engine to route all analytics input from multiple bonds for a particular trader to a trader specific output [*Message Channel*](MessageChannel.html). This effectively turns the analytics engine into a [*Content-Based Router*](ContentBasedRouter.html) to implement custom routing logic for our application.\n\nFollowing the [*Message Bus*](MessageBus.html) structure, the Analytics Engine is a generic server that could be used by several other systems in the. So we don’t want to cloud it with system specific functionality. On the other hand, the per-bond approach works since the idea of a trader owning the analytics output of bond prices is a company accepted practice. The per-bond approach keeps the [*Message Channel*](MessageChannel.html) separation of the market data feed intact, while adding several more [*Message Channel*](MessageChannel.html)s. Before we reach the client, we want a [*Content-Based Router*](ContentBasedRouter.html) to combine these several channels into a manageable number of channels. We don’t want the client application running on the trader’s desktop to be listening to thousands or tens of thousands of [*Message Channel*](MessageChannel.html)s. Now the question becomes where to put the [*Content-Based Router*](ContentBasedRouter.html). We could simply have the C++/TIB [*Channel Adapter*](ChannelAdapter.html) forward all of the messages to the Pricing Gateway on a single [*Message Channel*](MessageChannel.html). This is bad for two reasons; we would be splitting up the business logic between C++ and Java, and we would lose the benefit of the separate [*Message Channel*](MessageChannel.html)s on the TIB side allowing us to avoid filtering later in the data flow. Looking at our Java components, we could either place it in the Pricing Gateway or create an intermediary component between the Pricing Gateway and the client.\n\nIn theory, if we persisted the bond-based separation of [*Message Channel*](MessageChannel.html)s all the way to the client, the Pricing Gateway would rebroadcast pricing information with the same channel structure as the Pricing Gateway and Analytics Engine. This means a duplication of all of the bond dedicated TIB channels in JMS. Even if we create an intermediary component between the Pricing Gateway and the client, the Pricing Gateway will still have to duplicate all of the channels in JMS. On the other hand, implementing logic directly in the Pricing Gateway allows us to avoid duplicating the large number of channels in JMS—allowing us to create a much smaller number of channels in the order of one per trader. The Pricing Gateway registers itself through the C++/TIB [*Channel Adapter*](ChannelAdapter.html) as a consumer for each bond of every trader in the system. Then the Pricing Gateway will forward each specific client only the messages related to that particular trader. This way, we only use a small number of [*Message Channel*](MessageChannel.html)s on the JMS end, while maximizing the benefit of the separation on the TIB end.\n\n*The complete Market Data Flow to the client*\n\nThe [*Message Channel*](MessageChannel.html) layout discussion is a good example of how integrating patterns is important. The goal here was to figure out how to effectively use the [*Message Channel*](MessageChannel.html)s. Saying you use a pattern isn’t enough. You need to figure out how to best implement it and incorporate into your system to solve the problems at hand. Additionally, this example shows business forces in action. If we could implement business logic in any of our components, we could have gone with the per trader approach and implemented an overall more simple approach with many less channels.\n\n## Selecting a Message Channel?\n\nNow that we know the mechanics of the communication between the Java/JMS components and the C++/ TIBCO components, and we have seen some [*Message Channel*](MessageChannel.html) structuring, we need to decide which type of JMS [*Message Channel*](MessageChannel.html)s the Java components should use to communicate. Before we can choose between the different Message Channels available in JMS, let’s look at the high level message flow of the system. We have two gateways (Pricing and Contribution) communicating with the client. Market data flows to the client from the Pricing Gateway which sends it out to the Contribution Gateway. The client application sends message to the Pricing Gateway to alter the analytics being applied to each bond. The Contribution Gateway also sends messages to the Client application relaying the status of the price updates to the different trading venues.\n\n*The system message flow*\n\nThe JMS specification describes two [*Message Channel*](MessageChannel.html) types, [*Point-to-Point Channel*](PointToPointChannel.html) (JMS Queue) and [*Publish-Subscribe Channel*](PublishSubscribeChannel.html) (JMS Topic). Recall that the case for using publish-subscribe is to enable all interested consumers to receive a message while the case for using point-to-point is to ensure that only one eligible consumer receives a particular message.\n\nMany systems would simply broadcast messages to all client applications, leaving each individual client application to decide for itself whether or not to process a particular message. This will not work for our application since there are a large number of market data messages being sent to each client application. If we broadcast market data updates to uninterested trader, we will be unnecessarily wasting client processor cycles deciding whether or not to process a market data update.\n\n[*Point-to-Point Channel*](PointToPointChannel.html)s initially sound like a good choice since the clients are sending messages to unique servers and visa versa. But it was a business requirement that traders may be logged in to multiple machines at the same time. If we have a trader logged in at two workstations simultaneously and a point-to-point price update is sent, only one of the two client applications will get the message. This is because only one consumer on a [*Point-to-Point Channel*](PointToPointChannel.html) can receive a particular message. Notice that only the first of each group of a trader's client applications receives the message.\n\n*Point-to-Point Messaging for Price Updates*\n\nWe could solve this using the [*Recipient List*](RecipientList.html) pattern, which publishes messages to a list of intended recipients, guaranteeing that only clients in the recipient list will receive messages. Using this pattern, the system could create recipient lists with all client application instances related to each trader. Sending a message related to a particular trader would in turn send the message to each application in the recipient list. This guarantees all client application instances related to a particular trader would receive the message. The downside of this approach is that it requires quite a bit of implementation logic to manage the recipients and dispatch messages.\n\n*Recipient List for Price Updates*\n\nEven though point-to-point could be made to work, let’s see if there is a better way. Using [*Publish-Subscribe Channel*](PublishSubscribeChannel.html)s, the system could broadcast messages on trader specific channels rather than client application specific channels. This way, all client applications processing messages for a single trader would receive and process the message.\n\n*Publish-Subscribe Messaging for Price Updates*\n\nThe downside of using [*Publish-Subscribe Channel*](PublishSubscribeChannel.html)s is that unique message processing is not guaranteed with the server components. It would be possible for multiple instances of a server component to be instantiated and each instance process the same message, possibly sending out invalid prices.\n\nRecalling the system message flow, only a single communication direction is satisfactory with each [*Message Channel*](MessageChannel.html). Server-to-client communication with publish-subscribe is satisfactory while client-to-server communication is not and client-server communication with point-to-point is satisfactory while server-client is not. Since there is no need to use the same [*Message Channel*](MessageChannel.html) in both directions, we can use each [*Message Channel*](MessageChannel.html) only one direction. Client-to-server communication will be implemented with point-to-point while server-to-client communication will be implemented with publish-subscribe. Using this combination of [*Message Channel*](MessageChannel.html)s, the system benefits from direct communication with the server components using point-to-point messaging and the multicast nature of publish-subscribe without either of the drawbacks.\n\n*Message flow with Channel Types*\n\n## Problem Solving With Patterns\n\nPatterns are tools and collections of patterns are toolboxes. They help solve problems. Some think that patterns are only useful during design. Following the toolbox analogy, this is like saying that tools are only useful when you build a house, not when you fix it. The fact is that patterns are a useful tool throughout a project when applied well. In the following sections we will use the same pattern exploration process we used in the previous section to solve problems in our now working system.\n\n## Flashing Market Data Updates\n\nTraders want table cells to flash when new market data is received for a bond, clearly indicating changes. The Java client receives messages with new data which triggers a client data cache update and eventually flashing in the table. The problem is that updates come quite frequently. The GUI thread stack is becoming overloaded and eventually freezing the client since it can’t respond to user interaction. We will assume that the flashing is optimized and concentrate on the data flow of messages through the updating process. An examination of performance data shows the client application is receiving several updates a second; some updates occurred less than a millisecond apart. Two patterns that seem like they could help slow down the message flow are Aggregator and Message Filter.\n\nA first thought is to implement a [*Message Filter*](Filter.html) to control the speed of the message flow by throwing out updates received a small amount of time after the reference message. As an example, lets say that we are going to ignore messages within 5 milliseconds of each other. The [*Message Filter*](Filter.html) could cache the time of the last acceptable message and throw out anything received within the next 5 milliseconds. While other applications may not be able to withstand data loss to such an extent, this is perfectly acceptable in our system due to the frequency of price updates.\n\n*Time based Message Filter*\n\nThe problem with this approach is that not all data fields are updated at the same time. Each bond has approximately 50 data fields displayed to the user including price. We realize that not every field is updated in every message. If the system ignores consecutive messages, it may very well be throwing out important data.\n\nThe other pattern of interest is the [*Aggregator*](Aggregator.html). The [*Aggregator*](Aggregator.html) is used to manage the reconciliation of multiple, related messages into a single message, potentially reducing the message flow. The [*Aggregator*](Aggregator.html) could keep a copy of the bond data from the first aggregated message, then update only new or changed fields successive messages. Eventually the aggregated bond data will be passed in a message to the client. For now, lets assume that the Aggregator will send a message every 5 milliseconds like the [*Message Filter*](Filter.html). Later, we'll explore another alternative.\n\n*Aggregator with partial successive updates*\n\nThe [*Aggregator*](Aggregator.html), like any other pattern, is not a silver bullet; it has its pluses and minuses that need to be explored. One potential minus is that implementing an [*Aggregator*](Aggregator.html) would reduce the message traffic by a great amount in our case only if many messages are coming in within a relatively short time regarding the same bond. On the other hand, we would accomplish nothing if the Java client only receives updates for one field across all of the traders bonds. For example, if we receive 1000 messages in a specified timeframe with 4 bonds of interest, we would reduce the message flow from 1000 to 4 messages over that timeframe. Alternatively, if we receive 1000 messages in the same timeframe with 750 bonds of interest, we will have reduced the message flow from 1000 to 750 messages; relatively little gain for the amount of effort. A quick analysis of the message updates proves that the Java client receives many messages updating fields of the same bond, and therefore related messages. So, [*Aggregator*](Aggregator.html) is in fact a good decision.\n\nWhat's left is to determine how the [*Aggregator*](Aggregator.html) will know when to send a message it has been aggregating. The pattern describes a few algorithms for the [*Aggregator*](Aggregator.html) to know when to send the message. These include algorithms to cause the aggregator to send out its contents after a certain amount of time has elapsed, after all required fields in a data set have been completed, and others. The problem with all of these approaches is that the aggregator is controlling the message flow, not the client. And the client is the major bottleneck in this case, not the message flow.\n\nThis is because the [*Aggregator*](Aggregator.html) is assuming the consumers of its purged messages (the client application in this case) are [*Event-Driven Consumer*](EventDrivenConsumer.html)s, or consumers that rely on events from an external source. We need to turn the client into a [*Polling Consumer*](PollingConsumer.html), or a consumer that continuously checks for messages, so the client application can control the message flow. We can do this by creating a background thread that continuously cycles through the set of bonds and updates and flashes any changes that have occurred since the last iteration. This way, the client controls when messages are received and as a result, guarantees that it will never become overloaded with messages during high update periods. We can easily implement this by sending a [*Command Message*](CommandMessage.html) to the [*Aggregator*](Aggregator.html) initiating an update. The [*Aggregator*](Aggregator.html) will respond with a [*Document Message*](DocumentMessage.html) containing the set of updated fields that the client will process.\n\nThe choice of [*Aggregator*](Aggregator.html) over [*Message Filter*](Filter.html) is clearly a decision based solely on the business requirements of our system. Each could help us solve our performance problems, but using the [*Message Filter*](Filter.html) would solve the problem at cost of the system data integrity.\n\n## Major Production Crash\n\nWith the performance of the flashing fixed, we are now in production. One day the entire system goes down. MQSeries crashes, bringing several components down with it. We struggle with the problem for a while and finally trace it back to the MQSeries dead letter queue (an implementation of the [*Dead Letter Channel*](DeadLetterChannel.html)). The queue grows so large that it brings down the entire server. After exploring the messages in the dead letter queue we find they are all expired market data messages. This is caused by “slow consumers,” or consumers that do not process messages fast enough. While messages are waiting to be processed, they time out (see the [*Message Expiration*](MessageExpiration.html) pattern) and are sent to the [*Dead Letter Channel*](DeadLetterChannel.html). The excessive number of expired market data messages in the dead letter queue is a clear indication that the message flow is too great – messages expire before the target application can consume them. We need to fix the message flow and we turn to patterns for help slowing down the message flow.\n\n*The bottleneck*\n\nA reasonable first step is to explore solving this problem with the [*Aggregator*](Aggregator.html) as we recently used this pattern to solve the similar flashing market data control rate problem. The system design relies on the client application to immediately forward market data update messages to the trading venues. This means the system cannot wait to collect messages and aggregate them. So the [*Aggregator*](Aggregator.html) must be abandoned.\n\nThere are two other patterns that deal with the problem of consuming messages concurrently: [*Competing Consumers*](CompetingConsumers.html) and [*Message Dispatcher*](MessageDispatcher.html). Starting with [*Competing Consumers*](CompetingConsumers.html), the benefit of this pattern is the parallel processing of incoming messages. This is accomplished using several consumers on the same channel. Only one consumer processes each incoming message leaving the others to process successive messages. [*Competing Consumers*](CompetingConsumers.html), however, will not work for us since we are using [*Publish-Subscribe Channel*](PublishSubscribeChannel.html)s in server-to-client communication. [*Competing Consumers*](CompetingConsumers.html) on a [*Publish-Subscribe Channel*](PublishSubscribeChannel.html) channel means that all consumers process the same incoming message. This results in more work without any gain and completely misses the goal of the pattern. This approach also has to be abandoned.\n\nOn the other hand, the [*Message Dispatcher*](MessageDispatcher.html) describes an approach whereby you add several consumers to a ‘pool’. Each consumer can run its own execution thread. One main Message Consumer listens to the Channel and delegates the message on to an unoccupied Message Consumer in the pool and immediately returns to listening on the [*Message Channel*](MessageChannel.html). This achieves the parallel processing benefit of [*Competing Consumers*](CompetingConsumers.html), but works on [*Publish-Subscribe Channel*](PublishSubscribeChannel.html)s.\n\n*The Message Dispatcher in context*\n\nImplementing this in our system is simple. We create a single JMSListener called the Dispatcher, which contains a collection of other JMSListeners called Performers. When the onMessage method of the Dispatcher is called, it in turn picks a Performer out of the collection to actually process the message. The result of which is a Message Listener (the Dispatcher) that always returns immediately. This guarantees a steady flow of message processing regardless of the message flow rate. Additionally, this works equally well on a [*Publish-Subscribe Channel*](PublishSubscribeChannel.html)s as it does on a [*Point-to-Point Channel*](PointToPointChannel.html)s. With this infrastructure, messages can be received by the client application at almost any rate. If the client application is still slow to process the message after receiving them, the client application can deal with the delayed processing and potentially outdated market data rather than the messages expiring in the JMS [*Message Channel*](MessageChannel.html).\n\nThe crash discussed in this section and the fix using the [*Message Dispatcher*](MessageDispatcher.html) is an excellent example of the limits of applying patterns. We encountered a performance problem based on a design flaw not allowing the client to process messages in parallel. This greatly improved the problem, but did not completely fix it. This is because the real problem was the client becoming a bottleneck. This couldn’t be fixed with a thousand patterns. We later addressed this problem by refactoring the message flow architecture to route messages directly from the Pricing Gateway to the Contribution Gateway. So patterns can help design and maintain a system, but don’t necessarily make up for poor upfront design.\n\n## Summary\n\nThroughout this chapter, we have applied patterns to several different aspects of a bond trading system including solving initial upfront design problems and fixing a nearly job threatening production crash with patterns. We also saw these patterns as they already exist in third party product, legacy components, and our JMS and TIBCO messaging systems. Most importantly, these are real problems with the same types of architectural, technical and business problems we experience as we design and maintain our own systems. Hopefully reading about applying patterns to this system helps give you a better understanding of the patterns as well as how to apply them to your own systems.\n\n## Integration Pattern Language\n\n[Message Construct.](MessageConstructionIntro.html)\n\n[Message](Message.html)\n\n[Command Message](CommandMessage.html)\n\n[Document Message](DocumentMessage.html)\n\n[Event Message](EventMessage.html)\n\n[Request-Reply](RequestReply.html)\n\n[Return Address](ReturnAddress.html)\n\n[Correlation Identifier](CorrelationIdentifier.html)\n\n[Message Sequence](MessageSequence.html)\n\n[Message Expiration](MessageExpiration.html)\n\n[Format Indicator](FormatIndicator.html)\n\n[Message Routing](MessageRoutingIntro.html)\n\n[Pipes-and-Filters](PipesAndFilters.html)\n\n[Message Router](MessageRouter.html)\n\n[Content-based Router](ContentBasedRouter.html)\n\n[Message Filter](Filter.html)\n\n[Dynamic Router](DynamicRouter.html)\n\n[Recipient List](RecipientList.html)\n\n[Splitter](Sequencer.html)\n\n[Aggregator](Aggregator.html)\n\n[Resequencer](Resequencer.html)\n\n[Composed Msg. Processor](DistributionAggregate.html)\n\n[Scatter-Gather](BroadcastAggregate.html)\n\n[Routing Slip](RoutingTable.html)\n\n[Process Manager](ProcessManager.html)\n\n[Message Broker](MessageBroker.html)\n\n[Message\nTransformation](MessageTransformationIntro.html)\n\n[Message Translator](MessageTranslator.html)\n\n[Envelope Wrapper](EnvelopeWrapper.html)\n\n[Content Enricher](DataEnricher.html)\n\n[Content Filter](ContentFilter.html)\n\n[Claim Check](StoreInLibrary.html)\n\n[Normalizer](Normalizer.html)\n\n[Canonical Data Model](CanonicalDataModel.html)\n\n[Messaging Endpoints](MessagingEndpointsIntro.html)\n\n[Message Endpoint](MessageEndpoint.html)\n\n[Messaging Gateway](MessagingGateway.html)\n\n[Messaging Mapper](MessagingMapper.html)\n\n[Transactional Client](TransactionalClient.html)\n\n[Polling Consumer](PollingConsumer.html)\n\n[Event-driven Consumer](EventDrivenConsumer.html)\n\n[Competing Consumers](CompetingConsumers.html)\n\n[Message Dispatcher](MessageDispatcher.html)\n\n[Selective Consumer](MessageSelector.html)\n\n[Durable Subscriber](DurableSubscription.html)\n\n[Idempotent Receiver](IdempotentReceiver.html)\n\n[Service Activator](MessagingAdapter.html)\n\n[Messaging Channels](MessagingChannelsIntro.html)\n\n[Message Channel](MessageChannel.html)\n\n[Point-to-Point Channel](PointToPointChannel.html)\n\n[Publish-Subscr. Channel](PublishSubscribeChannel.html)\n\n[Datatype Channel](DatatypeChannel.html)\n\n[Invalid Message Channel](InvalidMessageChannel.html)\n\n[Dead Letter Channel](DeadLetterChannel.html)\n\n[Guaranteed Delivery](GuaranteedMessaging.html)\n\n[Channel Adapter](ChannelAdapter.html)\n\n[Messaging Bridge](MessagingBridge.html)\n\n[Message Bus](MessageBus.html)\n\n[Systems Mgmt.](SystemManagementIntro.html)\n\n[Control Bus](ControlBus.html)\n\n[Detour](Detour.html)\n\n[Wire Tap](WireTap.html)\n\n[Message History](MessageHistory.html)\n\n[Message Store](MessageStore.html)\n\n[Smart Proxy](SmartProxy.html)\n\n[Test Message](TestMessage.html)\n\n[Channel Purger](ChannelPurger.html)", "znaku_textu": 42469, "slov": 6340, "odkazu": 107, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/patterns/messaging/BondTradingCaseStudy.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 06:03:12", "sha256": "4408d4d7e856507b20eca4a1805096d6deb897f2a766c911edd4caf1c931dce8", "hloubka": 1, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "https://www.architectelevator.com/book", "https://www.cloudstrategybook.com/", "https://www.platformstrategybook.info/"]} {"url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/BroadcastAggregate.html", "titulek": "Scatter-Gather - Enterprise Integration Patterns", "h1": "", "popis": "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?", "klicova_slova": "Scatter-Gather,integration, messaging, events, patterns, event-driven, coupling, eai, middleware, application integration, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns", "og:title": "Scatter-Gather - Enterprise Integration Patterns", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/BroadcastAggregate.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/BroadcastAggregate.gif"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Example: Serverless Loan Broker on AWSNEW"}, {"uroven": 2, "text": "Example: Mulesoft ESBNEW"}, {"uroven": 2, "text": "Example: Azure Durable Functions (Fan out/fan in)NEW"}, {"uroven": 2, "text": "Integration Pattern Language"}], "markdown": "| | Scatter-Gather[Messaging Patterns](index.html) » [Message Routing](MessageRoutingIntro.html) | [Contents](toc.html)[⇐ Prev](DistributionAggregate.html)[Next ⇒](RoutingTable.html) |\n| --- | --- | --- |\n\nIn the order processing example introduced in the previous patterns , each order item that is not currently in stock could be supplied by one of multiple external suppliers. However, the suppliers may or may not have the respective item in stock themselves, they may charge a different price and may be able to supply the part by a different date. To fill the order in the best way possible, we should request quotes from all suppliers and decide which one provides us with the best term for the requested item.\n\nHow do you maintain the overall message flow when a message needs to be sent to multiple recipients, each of which may send a reply?\n\nUse a *Scatter-Gather* that broadcasts a message to multiple recipients and re-aggregates the responses back into a single message\n\nThe *Scatter-Gather* routes a request message to the a number of recipients. It then uses an [*Aggregator*](Aggregator.html) to collect the responses and distill them into a single response message.\n\nThere are two variants of the *Scatter-Gather* that use different mechanisms to send the request messages to the intended recipients:\n\n- **Distribution** via a [*Recipient List*](RecipientList.html) allows the *Scatter-Gather* to control the list of recipients but requires the *Scatter-Gather* to be aware of each recipient's message channel.\n- **Auction** -style *Scatter-Gather* s use a [*Publish-Subscribe Channel*](PublishSubscribeChannel.html) to broadcast the request to any interested participant. This option allows the *Scatter-Gather* to use a single channel but at the same time relinquishes control.\n\n...\nRead the entire pattern in the book [Enterprise Integration Patterns](/books1.html)\n\n## Example: Serverless Loan Broker on AWS[NEW](/ramblings/eip1_examples_updated.html)\n\nThe [serverless Loan Broker example](/ramblings/loanbroker_stepfunctions.html) includes a *Scatter-Gather* that routes requests for a loan quote to interested banks and selects the best offer from the incoming responses. The example implements both a a [*Recipient List*](RecipientList.html) using AWS Step Functions' Map state (see [Part 2](/ramblings/loanbroker_stepfunctions_recipient_list.html)) and a [*Publish-Subscribe Channel*](PublishSubscribeChannel.html) using the Amazon Simple Queuing Service (SQS) (see [Part 3](https://www.enterpriseintegrationpatterns.com/ramblings/loanbroker_stepfunctions_pubsub.html)).\n\n## Example: Mulesoft ESB[NEW](/ramblings/eip1_examples_updated.html)\n\nMulesoft's enterprise service bus includes a *Scatter-Gather* construct, described as [Scatter-Gather Router](https://docs.mulesoft.com/mule-runtime/4.3/scatter-gather-concept) and can be configured using the scatter-gather element.\n\nAlthough each route is independently executed, the Scatter-Gather Router configures a pre-defined number of paths, so it doesn't broadcast to an unknown number of recipients. Knowing all recipients makes the completeness condition of \"Wait for all\" (see [*Aggregator*](Aggregator.html)) a natural choice. Route errors propagate to the Scatter-Gather, which in turn flags an error, passing on any results that were successfully passed by the individual routes. The aggregation strategy is concatenation, turning single variable values into a list of all route results.\n\n## Example: Azure Durable Functions (Fan out/fan in)[NEW](/ramblings/eip1_examples_updated.html)\n\nDurable functions, which are used to orchestrate serverless Azure Functions, make it easy to implement *Scatter-Gather*, following the [Fan out/fan in](https://docs.microsoft.com/en-us/azure/azure-functions/durable/durable-functions-overview?tabs=csharp#fan-in-out) construct. which is supported by the WhenAll method, which waits for all functions to execute:\n\n**Fan out/fan in with Azure Durable Functions**\n\n```\ndef orchestrator_function(context: df.DurableOrchestrationContext):\n work_batch = yield context.call_activity(\"GetVendors\", None)\n parallel_tasks = [ context.call_activity(\"Vendor\", b) for b in work_batch ]\n outputs = yield context.task_all(parallel_tasks)\n total = sum(outputs)\n \n```\n\nThe number of recipients can be calculated at run-time, and the completeness condition can support a variety of strategies, including \"Wait for all\" (Task.WhenAll), \"First Best\" (Task.WhenAny), or \"Fixed Timeout\" (Task.WaitAll).\n\n**Related patterns:**\n\n[*Aggregator*](Aggregator.html), [*Introduction to Composed Messaging Examples*](ComposedMessagingExample.html), [*Asynchronous Implementation with MSMQ*](ComposedMessagingMSMQ.html), [*Asynchronous Implementation with TIBCO ActiveEnterprise*](ComposedMessagingTIBCO.html), [*Composed Message Processor*](DistributionAggregate.html), [*Publish-Subscribe Channel*](PublishSubscribeChannel.html), [*Recipient List*](RecipientList.html), [*Return Address*](ReturnAddress.html), [*Splitter*](Sequencer.html)\n\n---\n\n## Integration Pattern Language\n\n[Message Construct.](MessageConstructionIntro.html)\n\n[Message](Message.html)\n\n[Command Message](CommandMessage.html)\n\n[Document Message](DocumentMessage.html)\n\n[Event Message](EventMessage.html)\n\n[Request-Reply](RequestReply.html)\n\n[Return Address](ReturnAddress.html)\n\n[Correlation Identifier](CorrelationIdentifier.html)\n\n[Message Sequence](MessageSequence.html)\n\n[Message Expiration](MessageExpiration.html)\n\n[Format Indicator](FormatIndicator.html)\n\n[Message Routing](MessageRoutingIntro.html)\n\n[Pipes-and-Filters](PipesAndFilters.html)\n\n[Message Router](MessageRouter.html)\n\n[Content-based Router](ContentBasedRouter.html)\n\n[Message Filter](Filter.html)\n\n[Dynamic Router](DynamicRouter.html)\n\n[Recipient List](RecipientList.html)\n\n[Splitter](Sequencer.html)\n\n[Aggregator](Aggregator.html)\n\n[Resequencer](Resequencer.html)\n\n[Composed Msg. Processor](DistributionAggregate.html)\n\n[Scatter-Gather](BroadcastAggregate.html)\n\n[Routing Slip](RoutingTable.html)\n\n[Process Manager](ProcessManager.html)\n\n[Message Broker](MessageBroker.html)\n\n[Message\nTransformation](MessageTransformationIntro.html)\n\n[Message Translator](MessageTranslator.html)\n\n[Envelope Wrapper](EnvelopeWrapper.html)\n\n[Content Enricher](DataEnricher.html)\n\n[Content Filter](ContentFilter.html)\n\n[Claim Check](StoreInLibrary.html)\n\n[Normalizer](Normalizer.html)\n\n[Canonical Data Model](CanonicalDataModel.html)\n\n[Messaging Endpoints](MessagingEndpointsIntro.html)\n\n[Message Endpoint](MessageEndpoint.html)\n\n[Messaging Gateway](MessagingGateway.html)\n\n[Messaging Mapper](MessagingMapper.html)\n\n[Transactional Client](TransactionalClient.html)\n\n[Polling Consumer](PollingConsumer.html)\n\n[Event-driven Consumer](EventDrivenConsumer.html)\n\n[Competing Consumers](CompetingConsumers.html)\n\n[Message Dispatcher](MessageDispatcher.html)\n\n[Selective Consumer](MessageSelector.html)\n\n[Durable Subscriber](DurableSubscription.html)\n\n[Idempotent Receiver](IdempotentReceiver.html)\n\n[Service Activator](MessagingAdapter.html)\n\n[Messaging Channels](MessagingChannelsIntro.html)\n\n[Message Channel](MessageChannel.html)\n\n[Point-to-Point Channel](PointToPointChannel.html)\n\n[Publish-Subscr. Channel](PublishSubscribeChannel.html)\n\n[Datatype Channel](DatatypeChannel.html)\n\n[Invalid Message Channel](InvalidMessageChannel.html)\n\n[Dead Letter Channel](DeadLetterChannel.html)\n\n[Guaranteed Delivery](GuaranteedMessaging.html)\n\n[Channel Adapter](ChannelAdapter.html)\n\n[Messaging Bridge](MessagingBridge.html)\n\n[Message Bus](MessageBus.html)\n\n[Systems Mgmt.](SystemManagementIntro.html)\n\n[Control Bus](ControlBus.html)\n\n[Detour](Detour.html)\n\n[Wire Tap](WireTap.html)\n\n[Message History](MessageHistory.html)\n\n[Message Store](MessageStore.html)\n\n[Smart Proxy](SmartProxy.html)\n\n[Test Message](TestMessage.html)\n\n[Channel Purger](ChannelPurger.html)", "znaku_textu": 7697, "slov": 766, "odkazu": 114, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/BroadcastAggregate.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 06:02:34", "sha256": "ed4e25c160ba5c6c908b79de8011ba8f69c26c40ccd92f7612903029b7db78e6", "hloubka": 1, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://docs.mulesoft.com/mule-runtime/4.3/scatter-gather-concept", "https://docs.microsoft.com/en-us/azure/azure-functions/durable/durable-functions-overview?tabs=csharp", "http://creativecommons.org/licenses/by/4.0/", "https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "https://www.architectelevator.com/book", "https://www.cloudstrategybook.com/", "https://www.platformstrategybook.info/"]} {"url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/CanonicalDataModel.html", "titulek": "Canonical Data Model - Enterprise Integration Patterns", "h1": "", "popis": "How can you minimize dependencies when integrating applications that use different data formats?", "klicova_slova": "Canonical Data Model,integration, messaging, events, patterns, event-driven, coupling, eai, middleware, application integration, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns", "og:title": "Canonical Data Model - Enterprise Integration Patterns", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/CanonicalDataModel.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/CanonicalDataModel.gif"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Integration Pattern Language"}], "markdown": "| | Canonical Data Model[Messaging Patterns](index.html) » [Message Transformation](MessageTransformationIntro.html) | [Contents](toc.html)[⇐ Prev](Normalizer.html)[Next ⇒](ComposedMessagingExample.html) |\n| --- | --- | --- |\n\nI am designing several applications to work together through [*Messaging*](Messaging.html). Each application has its own internal data format.\n\nHow can you minimize dependencies when integrating applications that use different data formats?\n\nTherefore, design a *Canonical Data Model* that is independent from any specific application. Require each application to produce and consume messages in this common format.\n\nThe *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.\n\nThe 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*.\n\n...\nRead the entire pattern in the book [Enterprise Integration Patterns](/books1.html)\n\n**Related patterns:**\n\n[*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)\n\n---\n\n## Integration Pattern Language\n\n[Message Construct.](MessageConstructionIntro.html)\n\n[Message](Message.html)\n\n[Command Message](CommandMessage.html)\n\n[Document Message](DocumentMessage.html)\n\n[Event Message](EventMessage.html)\n\n[Request-Reply](RequestReply.html)\n\n[Return Address](ReturnAddress.html)\n\n[Correlation Identifier](CorrelationIdentifier.html)\n\n[Message Sequence](MessageSequence.html)\n\n[Message Expiration](MessageExpiration.html)\n\n[Format Indicator](FormatIndicator.html)\n\n[Message Routing](MessageRoutingIntro.html)\n\n[Pipes-and-Filters](PipesAndFilters.html)\n\n[Message Router](MessageRouter.html)\n\n[Content-based Router](ContentBasedRouter.html)\n\n[Message Filter](Filter.html)\n\n[Dynamic Router](DynamicRouter.html)\n\n[Recipient List](RecipientList.html)\n\n[Splitter](Sequencer.html)\n\n[Aggregator](Aggregator.html)\n\n[Resequencer](Resequencer.html)\n\n[Composed Msg. Processor](DistributionAggregate.html)\n\n[Scatter-Gather](BroadcastAggregate.html)\n\n[Routing Slip](RoutingTable.html)\n\n[Process Manager](ProcessManager.html)\n\n[Message Broker](MessageBroker.html)\n\n[Message\nTransformation](MessageTransformationIntro.html)\n\n[Message Translator](MessageTranslator.html)\n\n[Envelope Wrapper](EnvelopeWrapper.html)\n\n[Content Enricher](DataEnricher.html)\n\n[Content Filter](ContentFilter.html)\n\n[Claim Check](StoreInLibrary.html)\n\n[Normalizer](Normalizer.html)\n\n[Canonical Data Model](CanonicalDataModel.html)\n\n[Messaging Endpoints](MessagingEndpointsIntro.html)\n\n[Message Endpoint](MessageEndpoint.html)\n\n[Messaging Gateway](MessagingGateway.html)\n\n[Messaging Mapper](MessagingMapper.html)\n\n[Transactional Client](TransactionalClient.html)\n\n[Polling Consumer](PollingConsumer.html)\n\n[Event-driven Consumer](EventDrivenConsumer.html)\n\n[Competing Consumers](CompetingConsumers.html)\n\n[Message Dispatcher](MessageDispatcher.html)\n\n[Selective Consumer](MessageSelector.html)\n\n[Durable Subscriber](DurableSubscription.html)\n\n[Idempotent Receiver](IdempotentReceiver.html)\n\n[Service Activator](MessagingAdapter.html)\n\n[Messaging Channels](MessagingChannelsIntro.html)\n\n[Message Channel](MessageChannel.html)\n\n[Point-to-Point Channel](PointToPointChannel.html)\n\n[Publish-Subscr. Channel](PublishSubscribeChannel.html)\n\n[Datatype Channel](DatatypeChannel.html)\n\n[Invalid Message Channel](InvalidMessageChannel.html)\n\n[Dead Letter Channel](DeadLetterChannel.html)\n\n[Guaranteed Delivery](GuaranteedMessaging.html)\n\n[Channel Adapter](ChannelAdapter.html)\n\n[Messaging Bridge](MessagingBridge.html)\n\n[Message Bus](MessageBus.html)\n\n[Systems Mgmt.](SystemManagementIntro.html)\n\n[Control Bus](ControlBus.html)\n\n[Detour](Detour.html)\n\n[Wire Tap](WireTap.html)\n\n[Message History](MessageHistory.html)\n\n[Message Store](MessageStore.html)\n\n[Smart Proxy](SmartProxy.html)\n\n[Test Message](TestMessage.html)\n\n[Channel Purger](ChannelPurger.html)", "znaku_textu": 5089, "slov": 428, "odkazu": 108, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/CanonicalDataModel.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 06:02:45", "sha256": "02992f61d7529d80300b901e152622f0e876669b52f49d035dba00745a2405f8", "hloubka": 1, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://creativecommons.org/licenses/by/4.0/", "https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "https://www.architectelevator.com/book", "https://www.cloudstrategybook.com/", "https://www.platformstrategybook.info/"]} {"url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/ChannelAdapter.html", "titulek": "Channel Adapter - Enterprise Integration Patterns", "h1": "", "popis": "How can you connect an application to the messaging system so that it can send and receive messages?", "klicova_slova": "Channel Adapter,integration, messaging, events, patterns, event-driven, coupling, eai, middleware, application integration, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns", "og:title": "Channel Adapter - Enterprise Integration Patterns", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/ChannelAdapter.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/ChannelAdapterSolution.gif"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Integration Pattern Language"}], "markdown": "Messaging Patterns\n\n[Messaging Patterns](index.html)\n\n- [Integration Styles](IntegrationStylesIntro.html)\n- [Messaging Systems](MessagingComponentsIntro.html)\n- [Messaging Channels](MessagingChannelsIntro.html)\n- [Message Construction](MessageConstructionIntro.html)\n- [Interlude: Simple Messaging](SimpleMessagingIntro.html)\n- [Message Routing](MessageRoutingIntro.html)\n- [Message Transformation](MessageTransformationIntro.html)\n- [Interlude: Composed Messaging](ComposedMessagingExample.html)\n- [Messaging Endpoints](MessagingEndpointsIntro.html)\n- [System Management](SystemManagementIntro.html)\n- Interlude: Systems Management Example\n- Integration Patterns in Practice\n- Concluding Remarks\n- Appendices\n\n| | Channel Adapter[Messaging Patterns](index.html) » [Messaging Channels](MessagingChannelsIntro.html) | [Contents](toc.html)[⇐ Prev](GuaranteedMessaging.html)[Next ⇒](MessagingBridge.html) |\n| --- | --- | --- |\n\nMany enterprises use [*Messaging*](Messaging.html) to integrate multiple, disparate applications.\n\nHow can you connect an application to the messaging system so that it can send and receive messages?\n\nUse a *Channel Adapter* that can access the application's API or data and publish messages on a channel based on this data, and that likewise can receive messages and invoke functionality inside the application.\n\nThe adapter acts as a messaging client to the messaging system and invokes applications functions via an application-supplied interface. This way, any application can connect to the messaging system and be integrated with other applications as long as it has a proper *Channel Adapter*.\n\nThe *Channel Adapter* can connect to different layers of the application's architecture, depending on that architecture and the data the messaging system needs to access.\n\n*A Channel Adapter Connecting to Different Layers of an Application*\n\n...\nRead the entire pattern in the book [Enterprise Integration Patterns](/books1.html)\n\n**Related patterns:**\n\n[*Canonical Data Model*](CanonicalDataModel.html), [*Message Channel*](MessageChannel.html), [*Introduction to Message Transformation*](MessageTransformationIntro.html), [*Message Translator*](MessageTranslator.html), [*Messaging*](Messaging.html), [*Messaging Bridge*](MessagingBridge.html), [*Transactional Client*](TransactionalClient.html)\n\n---\n\n## Integration Pattern Language\n\n[Message Construct.](MessageConstructionIntro.html)\n\n[Message](Message.html)\n\n[Command Message](CommandMessage.html)\n\n[Document Message](DocumentMessage.html)\n\n[Event Message](EventMessage.html)\n\n[Request-Reply](RequestReply.html)\n\n[Return Address](ReturnAddress.html)\n\n[Correlation Identifier](CorrelationIdentifier.html)\n\n[Message Sequence](MessageSequence.html)\n\n[Message Expiration](MessageExpiration.html)\n\n[Format Indicator](FormatIndicator.html)\n\n[Message Routing](MessageRoutingIntro.html)\n\n[Pipes-and-Filters](PipesAndFilters.html)\n\n[Message Router](MessageRouter.html)\n\n[Content-based Router](ContentBasedRouter.html)\n\n[Message Filter](Filter.html)\n\n[Dynamic Router](DynamicRouter.html)\n\n[Recipient List](RecipientList.html)\n\n[Splitter](Sequencer.html)\n\n[Aggregator](Aggregator.html)\n\n[Resequencer](Resequencer.html)\n\n[Composed Msg. Processor](DistributionAggregate.html)\n\n[Scatter-Gather](BroadcastAggregate.html)\n\n[Routing Slip](RoutingTable.html)\n\n[Process Manager](ProcessManager.html)\n\n[Message Broker](MessageBroker.html)\n\n[Message\nTransformation](MessageTransformationIntro.html)\n\n[Message Translator](MessageTranslator.html)\n\n[Envelope Wrapper](EnvelopeWrapper.html)\n\n[Content Enricher](DataEnricher.html)\n\n[Content Filter](ContentFilter.html)\n\n[Claim Check](StoreInLibrary.html)\n\n[Normalizer](Normalizer.html)\n\n[Canonical Data Model](CanonicalDataModel.html)\n\n[Messaging Endpoints](MessagingEndpointsIntro.html)\n\n[Message Endpoint](MessageEndpoint.html)\n\n[Messaging Gateway](MessagingGateway.html)\n\n[Messaging Mapper](MessagingMapper.html)\n\n[Transactional Client](TransactionalClient.html)\n\n[Polling Consumer](PollingConsumer.html)\n\n[Event-driven Consumer](EventDrivenConsumer.html)\n\n[Competing Consumers](CompetingConsumers.html)\n\n[Message Dispatcher](MessageDispatcher.html)\n\n[Selective Consumer](MessageSelector.html)\n\n[Durable Subscriber](DurableSubscription.html)\n\n[Idempotent Receiver](IdempotentReceiver.html)\n\n[Service Activator](MessagingAdapter.html)\n\n[Messaging Channels](MessagingChannelsIntro.html)\n\n[Message Channel](MessageChannel.html)\n\n[Point-to-Point Channel](PointToPointChannel.html)\n\n[Publish-Subscr. Channel](PublishSubscribeChannel.html)\n\n[Datatype Channel](DatatypeChannel.html)\n\n[Invalid Message Channel](InvalidMessageChannel.html)\n\n[Dead Letter Channel](DeadLetterChannel.html)\n\n[Guaranteed Delivery](GuaranteedMessaging.html)\n\n[Channel Adapter](ChannelAdapter.html)\n\n[Messaging Bridge](MessagingBridge.html)\n\n[Message Bus](MessageBus.html)\n\n[Systems Mgmt.](SystemManagementIntro.html)\n\n[Control Bus](ControlBus.html)\n\n[Detour](Detour.html)\n\n[Wire Tap](WireTap.html)\n\n[Message History](MessageHistory.html)\n\n[Message Store](MessageStore.html)\n\n[Smart Proxy](SmartProxy.html)\n\n[Test Message](TestMessage.html)\n\n[Channel Purger](ChannelPurger.html)\n\n- » [Read the latest in My Blog](/ramblings)\n- » [Get more insights from My Articles](/articles.html)\n- » [See me live in my Upcoming Talks](/talks)\n\nYou can reuse the following elements under the [Creative Commons Attribution](http://creativecommons.org/licenses/by/4.0/) license: pattern icon, pattern name, problem and solution statements (in bold), and the sketch. Other portions are protected by copyright.\n\n[Enterprise Integration Patterns](https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20)\nThe de-facto language for designing asynchronous, distributed systems. Over 100,000 copies sold.\n\n[The Software Architect Elevator](https://www.architectelevator.com/book)\n\n Rethink the role of architects as a connecting element across organizational layers. Acquire the technical, communication, and organizational skills to succeed in this new role.\n\n[Cloud Strategy](https://www.cloudstrategybook.com)\n\n Make your cloud migration a success by translating high-level goals into conscious decisions with well-understood trade-offs.\n\n[Platform Strategy](https://www.platformstrategybook.info)\n\n Platforms can boost innovation through harmonization, but they aren't easy to build. Learn from over a decade of designing and rolling out IT platforms.", "znaku_textu": 6275, "slov": 520, "odkazu": 108, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/ChannelAdapter.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 06:02:08", "sha256": "f40687cadb1e37a5dea09e841cc54f2e1fe927366258bd2d0a9cee33e7990ace", "hloubka": 1, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://creativecommons.org/licenses/by/4.0/", "https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "https://www.architectelevator.com/book", "https://www.cloudstrategybook.com/", "https://www.platformstrategybook.info/"]} {"url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/ChannelPurger.html", "titulek": "Channel Purger - Enterprise Integration Patterns", "h1": "", "popis": "How can you keep 'left-over' messages on a channel from disturbing tests or running systems?", "klicova_slova": "Channel Purger,integration, messaging, events, patterns, event-driven, coupling, eai, middleware, application integration, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns", "og:title": "Channel Purger - Enterprise Integration Patterns", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/ChannelPurger.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/ChannelPurger.gif"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Example: Channel Purger in Amazon SQSNEW"}, {"uroven": 2, "text": "Integration Pattern Language"}], "markdown": "| | Channel Purger[Messaging Patterns](index.html) » [System Management](SystemManagementIntro.html) | [Contents](toc.html)[⇐ Prev](TestMessage.html)[Next ⇒](SystemManagementExample.html) |\n| --- | --- | --- |\n\nWhen Bobby and I worked on the simple [*JMS Request/Reply Example*](RequestReplyJmsExample.html), we ran into a simple, but interesting problem. The example consists of a Requestor which sends a message to a Replier and waits for the response. The example uses two [*Point-to-Point Channel*](PointToPointChannel.html)s, RequestQueue and ReplyQueue (see picture).\n\nWe had plastered println statements all over the code so we can see what is going on. We started the Replier first, then the Requestor. Then a very odd thing happened. The Requestor console window claimed to have gotten a response before the Replier ever acknowledged receiving a request. A delay in the console output? Lacking any great ideas, we decided to shut the Replier down and re-ran the Requestor. Odd enough, we still received a response to our request! Magic? No, just a side effect of persistent messaging. A superfluous message was present on the ReplyQueue. When we started the Requestor it placed a new message on the RequestQueue and then immediately retrieved the extraneous reply message that was sitting on the ReplyQueue. We never noticed that this was not the reply to the request the Requestor just made! Once the Replier received the request message, it placed a new reply message on the ReplyQueue so that the 'magic' repeated during the next test. It can be amazing (or amazingly frustrating) how persistent, asynchronous messaging can play tricks on you in even the most simple scenarios!\n\nHow can you keep 'left-over' messages on a channel from disturbing tests or running systems?\n\nUse a *Channel Purger* to remove unwanted messages from a channel.\n\nA simple *Channel Purger* simply remove all the messages from a channel. This may be sufficient for test scenarios where we want to reset the system into a consistent state. If we are debugging a production system we may need to remove individual message or a set of messages based on specific criteria, such as the message ID or the values of specific message fields.\n\n...\nRead the entire pattern in the book [Enterprise Integration Patterns](/books1.html)\n\n## Example: Channel Purger in Amazon SQS[NEW](/ramblings/eip1_examples_updated.html)\n\nMany hosted messaging systems have a built-in function to purge channels. For example, with Amazon's [Simple Queuing Service (SQS)](https://aws.amazon.com/sqs), you can purge a queue simply from the web user interface:\n\n*Purging a queue in Amazon SQS*\n\n**Related patterns:**\n\n[*Correlation Identifier*](CorrelationIdentifier.html), [*Invalid Message Channel*](InvalidMessageChannel.html), [*Message Channel*](MessageChannel.html), [*Message Store*](MessageStore.html), [*Point-to-Point Channel*](PointToPointChannel.html), [*JMS Request/Reply Example*](RequestReplyJmsExample.html)\n\n---\n\n## Integration Pattern Language\n\n[Message Construct.](MessageConstructionIntro.html)\n\n[Message](Message.html)\n\n[Command Message](CommandMessage.html)\n\n[Document Message](DocumentMessage.html)\n\n[Event Message](EventMessage.html)\n\n[Request-Reply](RequestReply.html)\n\n[Return Address](ReturnAddress.html)\n\n[Correlation Identifier](CorrelationIdentifier.html)\n\n[Message Sequence](MessageSequence.html)\n\n[Message Expiration](MessageExpiration.html)\n\n[Format Indicator](FormatIndicator.html)\n\n[Message Routing](MessageRoutingIntro.html)\n\n[Pipes-and-Filters](PipesAndFilters.html)\n\n[Message Router](MessageRouter.html)\n\n[Content-based Router](ContentBasedRouter.html)\n\n[Message Filter](Filter.html)\n\n[Dynamic Router](DynamicRouter.html)\n\n[Recipient List](RecipientList.html)\n\n[Splitter](Sequencer.html)\n\n[Aggregator](Aggregator.html)\n\n[Resequencer](Resequencer.html)\n\n[Composed Msg. Processor](DistributionAggregate.html)\n\n[Scatter-Gather](BroadcastAggregate.html)\n\n[Routing Slip](RoutingTable.html)\n\n[Process Manager](ProcessManager.html)\n\n[Message Broker](MessageBroker.html)\n\n[Message\nTransformation](MessageTransformationIntro.html)\n\n[Message Translator](MessageTranslator.html)\n\n[Envelope Wrapper](EnvelopeWrapper.html)\n\n[Content Enricher](DataEnricher.html)\n\n[Content Filter](ContentFilter.html)\n\n[Claim Check](StoreInLibrary.html)\n\n[Normalizer](Normalizer.html)\n\n[Canonical Data Model](CanonicalDataModel.html)\n\n[Messaging Endpoints](MessagingEndpointsIntro.html)\n\n[Message Endpoint](MessageEndpoint.html)\n\n[Messaging Gateway](MessagingGateway.html)\n\n[Messaging Mapper](MessagingMapper.html)\n\n[Transactional Client](TransactionalClient.html)\n\n[Polling Consumer](PollingConsumer.html)\n\n[Event-driven Consumer](EventDrivenConsumer.html)\n\n[Competing Consumers](CompetingConsumers.html)\n\n[Message Dispatcher](MessageDispatcher.html)\n\n[Selective Consumer](MessageSelector.html)\n\n[Durable Subscriber](DurableSubscription.html)\n\n[Idempotent Receiver](IdempotentReceiver.html)\n\n[Service Activator](MessagingAdapter.html)\n\n[Messaging Channels](MessagingChannelsIntro.html)\n\n[Message Channel](MessageChannel.html)\n\n[Point-to-Point Channel](PointToPointChannel.html)\n\n[Publish-Subscr. Channel](PublishSubscribeChannel.html)\n\n[Datatype Channel](DatatypeChannel.html)\n\n[Invalid Message Channel](InvalidMessageChannel.html)\n\n[Dead Letter Channel](DeadLetterChannel.html)\n\n[Guaranteed Delivery](GuaranteedMessaging.html)\n\n[Channel Adapter](ChannelAdapter.html)\n\n[Messaging Bridge](MessagingBridge.html)\n\n[Message Bus](MessageBus.html)\n\n[Systems Mgmt.](SystemManagementIntro.html)\n\n[Control Bus](ControlBus.html)\n\n[Detour](Detour.html)\n\n[Wire Tap](WireTap.html)\n\n[Message History](MessageHistory.html)\n\n[Message Store](MessageStore.html)\n\n[Smart Proxy](SmartProxy.html)\n\n[Test Message](TestMessage.html)\n\n[Channel Purger](ChannelPurger.html)", "znaku_textu": 5694, "slov": 568, "odkazu": 110, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/ChannelPurger.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 06:03:10", "sha256": "d8f42e8a137828b3f8d9f1665478c3a8b32361cf1d058807f3154041cd256cdc", "hloubka": 1, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://aws.amazon.com/sqs", "http://creativecommons.org/licenses/by/4.0/", "https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "https://www.architectelevator.com/book", "https://www.cloudstrategybook.com/", "https://www.platformstrategybook.info/"]} {"url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/Chapter1.html", "titulek": "Solving Integration Problems using Patterns - Enterprise Integration Patterns", "h1": "", "popis": "This chapter illustrates how the patterns in this book can be used to solve a variety of integration problems. In order to do so, we examine common integration scenarios and present a comprehensive integration example. As we design the solution to this example, we will express the solution using the patterns contained in this book. At the end of this chapter you will be familiar with about two dozen integration patterns.", "klicova_slova": "Solving Integration Problems using Patterns,integration, messaging, events, patterns, event-driven, coupling, eai, middleware, application integration, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns", "og:title": "Solving Integration Problems using Patterns - Enterprise Integration Patterns", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/Chapter1.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/eip1_patterns_wide.png"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "The Need for Integration"}, {"uroven": 2, "text": "Integration Challenges"}, {"uroven": 2, "text": "How Integration Patterns Can Help"}, {"uroven": 2, "text": "The Wide World of Integration"}, {"uroven": 2, "text": "Loose Coupling"}, {"uroven": 2, "text": "1 Minute EAI"}, {"uroven": 2, "text": "A Loosely Coupled Integration Solution"}, {"uroven": 2, "text": "Widget-Gadget Corp -- An Example"}, {"uroven": 2, "text": "Summary"}, {"uroven": 2, "text": "Integration Pattern Language"}], "markdown": "| | Solving Integration Problems using Patterns[Messaging Patterns](index.html) | [Contents](toc.html)[⇐ Prev](Introduction.html)[Next ⇒](IntegrationStylesIntro.html) |\n| --- | --- | --- |\n\nThis chapter illustrates how the patterns in this book can be used to solve a variety of integration problems. In order to do so, we examine common integration scenarios and present a comprehensive integration example. As we design the solution to this example, we will express the solution using the patterns contained in this book. At the end of this chapter you will be familiar with about two dozen integration patterns.\n\n## The Need for Integration\n\nEnterprises are typically comprised of hundreds if not thousands of applications that are custom-built, acquired from a third-party, part of a legacy system, or a combination thereof, operating in multiple tiers of different operating system platforms. It is not uncommon to find an enterprise that has 30 different Websites, three instances of SAP and countless departmental solutions.\n\nWe may be tempted to ask: How do businesses allow themselves to get into such a mess? Shouldn’t any CIO of such an enterprise spaghetti architecture be fired? Well, like in most cases things happen for a reason.\n\nFirst of all, writing business applications is hard. Creating a single, big application to run a complete business is next to impossible. The ERP vendors have had some success at creating larger-than-ever business applications. The reality, though, is that even the heavyweights like SAP, Oracle, Peoplesoft and the like only perform a fraction of the business functions required in a typical enterprise. We can see this easily by the fact that ERP systems are one of the most popular integration points in today’s enterprises.\n\nSecond, spreading business functions across multiple applications provides the business with the flexibility to select the “best” accounting package, the “best” customer relationship management or the order processing system that best suits the business’ needs. One-stop-shopping for enterprise applications is usually not what IT organizations are interested in, nor is possible given the number individual business requirements.\n\nVendors have learned to cater to this preference and offer focused applications around a specific core function. However, the ever-present urge to add new functionality to existing software packages has caused some functionality spillover amongst packaged business applications. For example, many billing systems started to incorporate customer care and accounting functionality. Likewise, the customer care software maker takes a stab at implementing simple billing functions such as disputes or adjustments. Defining a clear functional separation between systems is hard: is a customer disputing a bill considered a customer care or a billing function?\n\nUsers such as customers, business partners and internal users do generally not think about system boundaries when they interact with a business. They execute business functions, regardless of the how many internal systems the business function cuts across. For example, a customer may call to change his or her address and see whether the last payment was received. In many enterprises, this simple request can span across the customer care and billing systems. Likewise, a customer placing a new order may require the coordination of many systems. The business needs to validate the customer ID, verify the customer’s good standing, check inventory, fulfill the order, get a shipping quote, compute sales tax, send a bill, etc. This process can easily span across five or six different systems. From the customer’s perspective, it is a single business transaction.\n\nIn order to support common business processes and data sharing across applications, these applications need to be integrated. Application integration needs to provide efficient, reliable and secure data exchange between multiple enterprise applications.\n\n## Integration Challenges\n\nUnfortunately, enterprise integration is no easy task. By definition, enterprise integration has to deal with multiple applications running on multiple platforms in different locations, making the term ‘simple integration’ pretty much an oxymoron. Software vendors offer EAI suites that provide cross-platform, cross-language integration as well as the ability to interface with many popular packaged business applications. However, this technical infrastructure presents only a small portion of the integration complexities. The true challenges of integration span far across business and technical issues.\n\n- Enterprise integration requires a significant shift in corporate politics. Business applications generally focus on a specific functional area, such as Customer Relationship Management (CRM), Billing, Finance, etc. This seems to be an extension of Conway's famous law that postulates that \"Organizations which design systems are constrained to produce designs which are copies of the communication structures of these organizations.\" As a result, many IT groups are organized in alignment with these functional areas. Successful enterprise integration does not only need to establish communication between multiple computer systems but also between business units and IT departments -- in an integrated enterprise application groups no longer control a specific application because each application is now part of an overall flow of integrated applications and services.\n- Because of their wide scope, integration efforts typically have far-reaching implications on the business. Once the processing of the most critical business functions is incorporated into an integration solution, the proper functioning of that solution becomes vital to the business. A failing or misbehaving integration solution can cost a business millions of Dollars in lost orders, misrouted payments and disgruntled customers.\n- One important constraint of developing integration solutions is the limited amount of control the integration developers typically have over the participating applications. In most cases, the applications are “legacy” systems or packaged applications that cannot be changed just to be connected to an integration solution. This often leaves the integration developers in a situation where they have to make up for deficiencies or idiosyncrasies inside the applications or differences between the applications. Often it would be easier to implement part of the solution inside the application “endpoints”, but for political or technical reasons that option may not be available.\n- Despite the wide-spread need for integration solutions, only few standards have established themselves in this domain. The advent of XML, XSL and Web services certainly mark the most significant advance of standards-based features in an integration solution. However, the hype around Web services has also given grounds to new fragmentation of the marketplace, resulting in a flurry of new “extensions” and “interpretations” of the standards. This should remind us that the lack of interoperability between “standards-compliant” products was one of the major stumbling blocks for CORBA, which offered a sophisticated technical solution for system integration.\n- Also, existing XML Web Services standards address only a fraction of the integration challenges. For example, the frequent claim that XML is the ‘Lingua franca” of system integration is somewhat misleading. Standardizing all data exchange to XML can be likened to writing all documents using a common alphabet, such as the Roman alphabet. Even though the alphabet is common, it is still being used to represent many languages and dialects, which cannot be readily understood by all readers. The same is true in enterprise integration. The existence of a common presentation (e.g. XML) does not imply common semantics. The notion of “account” can have many different semantics, connotations, constraints and assumptions in each participating system. Resolving semantic differences between systems proves to be a particularly difficult and time-consuming task because it involves significant business and technical decisions.\n- While developing an EAI solution is challenging in itself, operating and maintaining such a solution can be even more daunting. The mix of technologies and the distributed nature of EAI solutions make deployment, monitoring, and trouble-shooting complex tasks that require a combination of skill sets. In many cases, these skill sets do not exist within IT operations or are spread across many different individuals.\n\nAnyone who has been through an EAI deployment can attest to the fact that EAI solutions are a critical component of today’s enterprise strategies, but make IT life harder, not easier. It’s a long way between the high-level vision of the integrated enterprise (defined by terms such as “Straight-Through-Processing”, “T+1”, “Agile Enterprise”) and the nuts-and-bolts implementations (what parameters did System.Messaging.XmlMessageFormatter take again?).\n\n## How Integration Patterns Can Help\n\nThere are no simple answers for enterprise integration. In our opinion, anyone who claims that integration is easy must be either incredibly smart (or at least a good bit smarter than the rest of us), incredibly ignorant (OK, let’s say optimistic), or they have a financial interest in making you believe that integration is easy.\n\nEven though integration is a broad and difficult topic, we can always observer some people who are much better at it than others. What do these people know that others don’t? Since there is no such thing as “Teach Yourself Integration in 21 Days” (this book sure ain't!) it is unlikely that these people know all the answers to integration. However, these people have usually solved enough integration problems that they can compare new problems to prior problems they have solved. They know the “patterns” of problems and associated solutions. They learned these patterns over time by trial-and-error or from other experienced integration architects.\n\nThe “patterns” are not copy-paste code samples or shrink-wrap components, but rather nuggets of advice that describe solutions to frequently recurring problems. Used properly, the integration patterns can help fill the wide gap between the high-level vision of integration and the actual system implementation.\n\n## The Wide World of Integration\n\nWe intentionally left the definition of “integration” very broad. To us it means connecting computer systems, companies or people. While this broad definition gives us the convenience of sticking whatever we find interesting into this book, it is helpful to have a closer look at some of the most common integration scenarios. Helping clients design and implement integration solutions, we repeatedly came across the following six types of integration projects:\n\n- Information Portals\n- Data Replication\n- Shared Business Functions\n- Service-Oriented Architectures\n- Distributed Business Processes\n- Business-to-Business Integration\n\nThis list is by no means a complete taxonomy of all things integration but it does help to illustrate the kind of solutions that integration architects build. Many integration projects consist of a combination of multiple types of integration. For example, reference data replication is often required in order to tie applications into a single distributed business process.\n\n**Information Portal**\n\nMany business users have to access more than one system to answer a specific question or to perform a single business function. For example, to verify the status of an order, a customer service representative may have to access the order management system on the mainframe plus log on to the system that manages orders placed over the Web. Information portals aggregate information from multiple sources into a single display to avoid having the user access multiple systems for information. Simple information portals divide the screen into multiple zones, each of which displays information from a different system. More sophisticated systems provide limited interaction between zones, for example when a user selects an item from a list in zone A, zone B refreshes with detailed information about the selected item. Other portals provide even more sophisticated user interaction and blur the line between a portal and an integrated application.\n\n**Data Replication**\n\nMany business systems require access to the same data. For example, a customer’s address may be used in the customer care system (when the customer calls to change it), the accounting system (to compute sales tax), the shipping system (to label the shipment) and the billing system (to send an invoice). Many of these systems are going to have their own data stores to store customer related information. When a customer calls to change his or her address all these systems need to change their copy of the customer’s address. This can be accomplished by implementing an integration strategy based on data replication.\n\nThere are many different ways to implement data replication. For example, some database vendors build replication functions into the database, we can export data into files and re-import them into the other system, or we can use message-oriented middleware to transport data records inside messages.\n\n**Shared Business Function**\n\nIn the same way that many business applications store redundant data, they also tend to implement redundant functionality. Multiple systems may need to check whether a social-security number is valid, whether the address matches the specified postal code or whether a particular item is in stock. It makes business sense to expose these functions as a shared business function that is implemented once and available as a service to other systems.\n\nA shared business function can address some of the same needs as data replication. For example, we could implement a business function called ‘Get Customer Address’ that could allow other systems to request the customer’s address when it is needed rather than always storing a redundant copy. The decision between these two approaches is driven by a number of criteria, such as the amount of control we have over the systems (calling a shared function is usually more intrusive than loading data into the database) or the rate of change (an address may be needed frequently but change very infrequently).\n\n**Service-Oriented Architecture**\n\nShared business functions are often referred to as services. A service is a well-defined function that is universally available and responds to requests from “service consumers”. Once an enterprise assembles a collection of useful services, managing the services becomes an important function. First of all, applications need some form of service directory, a centralized list of all available services. Second, each service needs to describe its interface in such a way that an application can “negotiate” a communications contract with the service. These two functions, service discovery and negotiation, are the key elements that make up a service-oriented architecture.\n\nService-oriented architectures (SOAs) blur the line between integration and distributed applications. A new application can be developed using existing, remote services that may be provided by other applications. Therefore, calling a service may be considered integration between the two applications. On the other hand a service-oriented architecture usually provides tools that make calling an external service almost as simple as calling a local method (performance considerations aside). Because all services are available in a consistent manner, SOAs are sometimes referred to as “service bus architectures”.\n\n**Distributed Business Process**\n\nOne of the key drivers of integration is the fact that a single business transaction is often spread across many different systems. A previous example showed us that a simple business function such as “place order” can easily touch six or seven systems. In most cases, all relevant functions are incorporated inside existing applications. What is missing is the coordination between the applications. Therefore, we can add a business process management component that manages the execution of a business function across multiple existing systems.\n\nThe boundaries between a service-oriented architecture and a distributed business can blur. For example, you could expose all relevant business functions as service and then encode the business process inside an application that accesses all services via an SOA.\n\n**Business-to-Business Integration**\n\nSo far we have mainly considered the interaction between applications and business functions inside an enterprise. In many cases, business functions may be available from outside suppliers or business partners. For example, the shipping company may provide a service for customers to compute shipping cost or track shipments. Or a business may use an outside provider to compute sales tax rates. Likewise, integration frequently occurs between business partners. A customer may contact a retailer to inquire on the price and the availability of an item. In response, the retailer may ask the supplier for the status of an expected shipment that contains the out-of-stock item.\n\nMany of the above considerations apply equally to business-to-business integration. However, communicating across the Internet or some other network usually raises new issues related to transport protocols and security. Also, since many business partners may collaborate in an electronic “conversation” standardized data formats are critically important.\n\n## Loose Coupling\n\nOne of the biggest buzz words in enterprise architecture and integration is the notion of loose coupling. It is in fact such a popular term that Doug Kaye wrote a whole book titled after this ubiquitous concept [[Kaye](http://www.amazon.com/exec/obidos/ASIN/1881378241/enterpriseint-20)]. The benefits of loose coupling have been know for quite some time now, but they have taken center stage more recently due to the surging popularity of Web services architectures.\n\nThe core principle behind loose coupling is to reduce the assumptions two parties (components, applications, services, programs, users) make about each other when they exchange information. The more assumptions two parties make about each other and the common protocol, the more efficient the communication can be, but the less tolerant the solution is of interruptions or changes because the parties are tightly coupled to each other.\n\nA great example of tight coupling is a local method invocation. Invoking a local method inside an application is based on a lot of assumptions between the called and the calling routine. Both methods have to run in the same process (e.g. a virtual machine) and be written in the same language (or at least use a common intermediate language or byte code). The calling method has to pass the exact number of expected parameters, each using the correct type. The call is immediate, i.e. the called method starts processing immediately after the calling method makes the call. Meanwhile, the calling method will only resume processing when the called method completes (meaning the invocation is synchronous). Processing will automatically resume in the calling method with the next statement after the method call. The communication between the methods is immediate and instantaneous, so neither the caller nor the called method have to worry about security in the form of eavesdropping 3rd parties. All these assumptions make it very easy to write well structured applications that break functionality into individual methods to be called by other methods. A large number of small method allow for flexibility and reuse.\n\nMany integration approaches have aimed to make remote communications simple by packaging a remote data exchange into the same semantics as a local method call. This strategy resulted in the notion of a Remote Procedure Call (RPC) or Remote Method Invocation (RMI), supported by many popular frameworks and platforms: CORBA (see[[Zahavi](http://www.amazon.com/exec/obidos/ASIN/0471327204/enterpriseint-20)]), Microsoft DCOM, .NET Remoting, or Java RMI, and most recently, RPC-style Web services. The intended upside of this approach is twofold. First, synchronous method-call semantics are very familiar to application developers, so why not build on what we already know. Second, using the same syntax and semantics for both local method calls and remote invocations would allow us to defer the decision about what components should run locally and which ones run remotely until deployment time, leaving the application developer with one less thing to worry about.\n\nThe challenge that all these approaches face lies in the fact that remote communication invalidates many of the assumptions that a local method call is based on. As a result, abstracting the remote communication into the simple semantics of a method call can be confusing and misleading. Waldo et al. reminded us back in 1994 that \"objects that interact in a distributed system need to be dealt with in ways that are intrinsically different from objects that interact in a single address space\" [[Waldo](http://citeseer.nj.nec.com/waldo94note.html)]. For example, if we call a remote service to perform a function for us, do we really want to restrict ourselves to only those services that were built using the same programming language as we do? A call across the network also tends to be multiple orders of magnitude slower than a local call. Should the calling method really wait until the called method completes? What if the network is interrupted and the called method is temporarily unreachable? How long should we wait? How can we be sure we communicate with the intended party and not a 3rd party “spoofer”? How can we protect against eavesdropping? What if the method signature (the list of expected parameters) of the called method changes? If the remote method is maintained by a third party or a business partner we no longer have control over such changes. Should we have our method invocation fail or should we attempt to find the best possible mapping between the parameters and still make the call? It becomes quickly apparent that remote integration brings up a lot of issues that a local method call never had to deal with.\n\nIn summary, trying to portray remote communication as a variant of a local method invocation is asking for trouble. Such architectures typically result in brittle, hard to maintain and poorly scalable solutions. Many Web services pioneers recently (re-)discovered this fact the hard way.\n\n## 1 Minute EAI\n\nTo show the effects of tightly coupled dependencies and how to resolve them, let’s look at different options of connecting two systems. Let’s assume we are building an on-line banking system that allows customers to deposit money into their account from another bank. To perform this function, the front-end Web application has to be integrated with the back-end financial system that manages fund transfers.\n\nThe easiest way to connect the two systems is through the TCP/IP protocol. Every self-respecting operating system or programming library created in the last 15 years is certain to include a TCP/IP stack. TCP/IP is the ubiquitous communications protocol that transports data between the millions of computers connected to the Internet and local networks. Why not use the most ubiquitous of all network protocols to communicate between two applications?\n\nLet’s assume that the remote function that deposits money into a person’s account takes only the person’s name and the Dollar amount as arguments. The following few lines of code then suffice to call such a function over TCP/IP (we chose C#, but this code would look virtually identical in C or Java).\n\n```\nString hostName = \"www.eaipatterns.com\";\nint port = 80;\n\nIPHostEntry hostInfo = Dns.GetHostByName(hostName);\nIPAddress address = hostInfo.AddressList[0];\n\nIPEndPoint endpoint = new IPEndPoint(address, port);\n\nSocket socket = new Socket(address.AddressFamily, SocketType.Stream, ProtocolType.Tcp);\nsocket.Connect(endpoint);\n\nbyte[] amount = BitConverter.GetBytes(1000);\nbyte[] name = Encoding.ASCII.GetBytes(\"Joe\");\n\nint bytesSent = socket.Send(amount);\nbytesSent += socket.Send(name);\n\nsocket.Close();\n```\n\nThis code opens a socket connection to the address www.eaipatterns.com and sends two data items (the amount and the customer’s name) across the network. No expensive middleware is required, no EAI tools, RPC toolkits, just 10 lines of code. When we run this code it tells us: “7 bytes sent”. Voila! How can integration be so difficult?\n\nThere are a couple of major problems with this integration attempt. One of the strengths of the TCP/IP protocol is its wide support so that we can connect to pretty much any computer connected to the network regardless of the operating system or programming language it uses. However, the platform independence works only for very simple messages: byte streams. In order to convert our data into a byte stream we used the BitConverter class. This class converts any data type into a byte array, using the internal memory representation of the data type. The catch is that the internal representation of an integer number varies with computer systems. For example, .NET uses a 32 bit integer while other systems may use a 64 bit representation. Our example transfers 4 bytes across the network to represent a 32 bit integer number. A system using 64 bits would be inclined to read 8 bytes off the network and would end up interpreting the whole message (including the customer name) as a single number.\n\nAlso, some computer systems store their numbers in big-endian format while others store them in little-endian format. A big-endian format stores numbers starting with the highest byte first while little-endian systems store the lowest byte first. PCs operate on a little-endian scheme so that the code passes the following 4 bytes across the network:\n\n```\n232 3 0 0\n```\n\n232 + 3 * 2^8 equals 1000. A system that uses big-endian numbers would consider this message to mean 232* 2^24 + 3 * 2^16 = 3,892,510,720. Joe will be a very rich man! So this approach works only under the assumption that all connected computers represent numbers in the same internal format.\n\nThe second problem with this simple approach is that we specify the location of the remote machine (in our case www.eaipatterns.com). The Dynamic Naming Service (DNS) gives us one level of indirection between the domain name and the IP address, but what if we want to move the function to a different computer on a different domain? What if the machine fails and we have to setup another machine? What if we want to send the information to more than one machine? For each scenario we would have to change the code. If we use a lot of remote functions this could become very tedious. So we should find a way to make our communication independent from a specific machine on the network.\n\nOur simple TCP/IP example also establishes temporal dependencies between the two machines. TCP/IP is a *connection-oriented* protocol. Before any data can be transferred, a connection has to be established first. Establishing a TCP connection involves IP packets traveling back and forth between sender and receiver. This requires that both machines and the network are all available at the same time. If any of the three pieces is malfunctioning or not available due to high load, the data cannot be sent.\n\nLastly, the simple communication also relies on a very strict data format. We are sending 4 bytes of amount data and then a sequence of characters that define the customer’s account. If we want to insert a third parameter, e.g. the name of the currency, we would have to modify both sender and receiver to use the new data format.\n\n*Tightly Coupled Interaction*\n\nIn summary, our minimalist integration solution is fast and cheap, but it results in a very brittle solution because the two participating parties make the following assumptions about each other:\n\n- Platform Technology – internal representations of numbers and objects\n- Location – hard-coded machine addresses\n- Time – all components have to be available at the same time\n- Data Format – the list of parameters and their types must match\n\nAs we stated in the beginning, coupling is a measure of how many assumptions parties make about each other when they communicate. Our simple solution requires the parties to make a lot of assumptions. Therefore, this solution is tightly coupled.\n\nIn order to make the solution more loosely coupled we can try to remove these dependencies one by one. We should use a standard data format that is self-describing and platform independent, such as XML. Instead of sending information directly to a specific machine we should send it to an addressable “channel”. A channel is a logical address that both sender and receiver can agree on the same channel without being aware of each other’s identity. Using channels resolves the location-dependency, but still requires all components to be available at the same time if the channel is implemented using a connection-oriented protocol.. In order to remove this temporal dependency we can enhance the channel to queue up sent requests until the network and the receiving system are ready. To support queuing of requests inside the channel, we need wrap data into self-contained messages so that the channel knows how much data to buffer and deliver at any one time. Lastly, the two systems still depend on a common data format. We can remove this dependency by allowing for data format transformations inside the channel. If the format of one system changes we only have to change the transformer and not the other participating systems. This is particularly useful if many applications send data to the same channel.\n\n*Loosely Coupled Interaction*\n\nMechanisms such as a common data format, queuing channels, and transformers help turn a tightly coupled solution into a loosely coupled solution. The sender no longer has to depend on the receiver's internal data format not its location. It does not even have to pay attention to whether the other computer is ready to accept requests or not. Removing these dependencies between the systems makes the overall solution more tolerant to change, the key benefit of loose coupling. The main drawback of the loosely coupled approach is the additional complexity. This is no longer a 10-lines-of-code solution! Therefore, we use a message-oriented middleware infrastructure that provides these services for us. This infrastructure makes exchanging data in a loosely coupled way almost as easy as the example we started with. The next section describes the components that make up such a middleware solution.\n\nIs loose coupling the panacea? Like everything else in enterprise architecture, there is no single best answer. Loose coupling provides important benefits such as flexibility and scalability, but it introduces a more complex programming model and can make designing, building and debugging solutions more difficult.\n\n## A Loosely Coupled Integration Solution\n\nIn order to connect two systems via an integration solution, a number of things have to happen. These things make up what we call middleware – the things that sit between applications.\n\nInvariably, some data has to be transported from one application to the next. This data could be an address record that needs to be replicated, a call to a remote service or a snippet of HTML headed for a portal display. Regardless of the payload, this piece of data needs to be understood by both ends and needs to be transported, usually across a network. Two elements provide this basic function. We need a communications *channel* that can move information from one application to the other. This channel could be a series of TCP/IP connections, a shared file, a shared database or a floppy disk being carried from one computer to the next (the infamous ‘sneakernet’). Inside this channel we place a message – a snippet of data that has an agreed-upon meaning to both applications that are to be integrated. This piece of data can be very small, such as the phone number of a single customer that has changed, or very large, such as the complete list of all customers and their associated addresses. We call this piece of data a *message*.\n\n*Basic Elements of an Integration Solution*\n\nNow that we can send messages across channels we can establish a very basic form of integration. However, we promised that simple integration is an oxymoron, so let’s see what is missing. We mentioned before that integration solutions often have limited control over the applications they are integrating, such as the internal data formats used by the applications. For example, one data format may store the customer name in two fields, called FIRST_NAME and LAST_NAME, while the other system may use a single field called Customer_Name. Likewise, one system may support multiple customer addresses while the other system only supports a single address. Because the internal data format of an application can often not be changed the middleware needs to provide some mechanism to convert one application’s data format in the other’s. We call this step *translation*.\n\nSo far we can send data from one system to another and accommodate differences in data formats. What happens if we integrate more than two systems? Where does the data have to be moved? We could expect each application to specify the target system(s) for the data it is sending over the channel. For example, if the customer address changes in the customer care system we could make that system responsible for sending the data to all other systems that store copies of the customer address. As the number of systems increases this becomes very tedious and requires the sending system to have knowledge about all other systems. Every time a new system is added, the customer care system would have to be adjusted to the new environment. Things would be a lot easier of the middleware could take care of sending messages to the correct places. This is the role of a *routing* component such as a message broker.\n\nIntegration solutions can quickly become complex because they deal with multiple applications, data formats, channels, routing and transformation. All these elements may be spread across multiple operating platforms and geographic locations. In order to have any idea what is going on inside the system we need a *systems management* function. This subsystem monitors the flow of data, makes sure that all applications and components are available and reports error conditions to a central location.\n\nOur integration solution is now almost complete. We can move data from one system from another, accommodate differences in the data format, route the data to the required systems and monitor the performance of the solution. So far we assumed that an application sends data as a message to the channel. However, most packaged and legacy applications and many custom applications are not prepared to participate in an integration solution. We need a message *endpoint* to connect the system explicitly to the integration solution. The endpoint can be a special piece of code or a [*Channel Adapter*](ChannelAdapter.html) provided by an integration software vendor.\n\n## Widget-Gadget Corp -- An Example\n\nThe best way to understand message-based integration solutions is by walking through a concrete example. Let’s consider Widgets & Gadgets ‘R Us (WGRUS), an on-line retailer that buys widgets and gadgets from manufacturers and resells them to customers.\n\n*WGRUS Ecosystem*\n\nFor this example, we assume that the solution needs to support the following requirements. Naturally, we simplified the requirements a bit for sake of brevity, but nevertheless these types of requirements occur frequently in real businesses.\n\n- **Take Orders** : Customers can place orders via Web, phone or fax\n- **Process Orders** : Processing an order involves multiple steps, including verifying inventory, shipping the goods and invoicing the customer\n- **Check Status** : Customers can check the order status\n- **Change Address** : Customers can use a Web front-end to change their billing and shipping address\n- **New Catalog** : The suppliers update their catalog periodically. WGRUS needs to update its pricing and availability based in the new catalogs.\n- **Announcements** : Customers can subscribe to selective announcements from WGRUS.\n- **Testing and Monitoring** : The operations staff needs to be able to monitor all individual components and the message flow between them.\n\nWe will tackle each of these requirements separately and describe the solution alternatives and trade-offs using the pattern language introduced in this book.\n\n**Internal Systems**\n\nLike in most integration scenarios, WGRUS is not a so-called “green field” implementation, but rather the integration of an existing IT infrastructure comprised of a variety of packaged and custom applications. The fact that we have to work with existing applications often makes integration work challenging. In our example WGRUS runs the following systems (see picture).\n\n*WGRUS IT Infrastructure*\n\nWGRUS has four different channels to interact with customers. Customers can visit the company Web site, call the customer service representative at the call center or submit orders via fax. Customers can also receive notifications via e-mail.\n\nWGRUS’ internal systems are comprised of the accounting system, which also includes billing functions, the shipping system that computes shipping charges and interacts with the shipping companies. For historic reasons, WGRUS has two inventory and catalog systems. WGRUS used to sell only widgets but acquired another retailer that sells gadgets. WGRUS decided it will be less expensive to operate parallel systems than trying to rewrite both systems into a single system.\n\n**Taking Orders**\n\nThe first function we want to implement is taking orders. Taking orders is a good thing because they bring revenue. However, placing orders is currently a tedious manual process so that the cost incurred with each order is high. In fact, on orders below $20 WGRUS hardly makes any money because any potential profit is eaten up by labor cost processing the order.\n\nThe first step to streamlining order processing is to unify taking orders. A customer can place orders over one of three channels: Web site, call center or fax. Unfortunately, each system is based on a different technology and stores incoming orders in a different data format. The call center system is a packaged application while the Web site is a custom J2EE application. The inbound fax system requires manual data entry into a small Microsoft Access application. We want to treat all orders equally, regardless of their source. For example, a customer should be able to place an order via the call center and check the order status on the Web site.\n\nBecause placing an order is an asynchronous process that connects many systems, we decide to implement a message-oriented middleware solution to streamline the order entry process. Because the packaged call center application was not developed with integration in mind, we connect it to the messaging system using a [*Channel Adapter*](ChannelAdapter.html). A [*Channel Adapter*](ChannelAdapter.html) is a component that can attach to an application and publish messages to a [*Message Channel*](MessageChannel.html) whenever an event occurs inside the application. With some [*Channel Adapter*](ChannelAdapter.html)s, the application may not even be aware of the presence of the adapter. For example, a database adapter may add triggers to specific tables so that every time the application inserts a row of data a message is sent to the [*Message Channel*](MessageChannel.html). [*Channel Adapter*](ChannelAdapter.html)s can also work in the opposite direction, consuming messages off a [*Message Channel*](MessageChannel.html) and triggering an action inside the application in response.\n\nWe use the same approach for the inbound fax application, connecting the [*Channel Adapter*](ChannelAdapter.html) to the application database. Because the Web application is custom-built we implement the Endpoint code inside the application. We use a Messaging Gateway to isolate the application code from the messaging-specific code.\n\n*Taking Orders From Three Difrerent Channels*\n\nBecause each system uses a different data format for the incoming orders we use three [*Message Translator*](MessageTranslator.html)s to convert the different data formats into a common New Order message that follows a [*Canonical Data Model*](CanonicalDataModel.html). A [*Canonical Data Model*](CanonicalDataModel.html) defines message formats that are independent from any specific application so that all applications can communicate with each other in this common format. If the internal format of an application changes, only the [*Message Translator*](MessageTranslator.html) between the affected application and the coming [*Message Channel*](MessageChannel.html) has to change while all other applications and [*Message Translator*](MessageTranslator.html)s remain unaffected. Using a [*Canonical Data Model*](CanonicalDataModel.html) means that we deal with two types of messages: canonical (public) messages and application-specific (private) messages. Application-specific messages should not be consumed by any other component except the related application and the associated [*Message Translator*](MessageTranslator.html). To reinforce this policy we name application-specific [*Message Channel*](MessageChannel.html)s starting with the name of the application, e.g. WEB_NEW_ORDER. Channels carrying canonical messages are named after the intent of the message without any prefix, e.g. NEW_ORDER.\n\nWe connect each [*Channel Adapter*](ChannelAdapter.html) to the [*Message Translator*](MessageTranslator.html) via a [*Point-to-Point Channel*](PointToPointChannel.html) because we want to be sure that each order message is consumed only once. We could get away without using a [*Message Translator*](MessageTranslator.html) for the Web Interface if we programmed the transformation logic into the Gateway. However, hand-coding transformation functions can be tedious and error prone and we prefer to use a consistent approach. The additional [*Message Translator*](MessageTranslator.html) also allows us to shield the New Order flow from minor changes in the Web Interface data format. All [*Message Translator*](MessageTranslator.html)s publish to the same NEW_ORDER [*Point-to-Point Channel*](PointToPointChannel.html) so that orders can be processed off this channel without regard to the order’s origin.\n\nThe NEW_ORDER [*Message Channel*](MessageChannel.html) is a so-called [*Datatype Channel*](DatatypeChannel.html) because it carries messages of only one type, i.e. new orders. This makes it easy for message consumers to know what type of message to expect. The New Order message itself is designed as a [*Document Message*](DocumentMessage.html). The intent of the message is not to instruct the receiver to take a specific action, but rather to pass a document to any interested recipient who is free to decide how to process document.\n\n**Processing Orders**\n\nNow that we have a consistent order message that is independent from the message source we need to process orders. In order to fulfill an order we need to complete the following steps:\n\n- Verify the customer’s credit standing. If the customer has outstanding bills, we want to reject the new order.\n- Verify inventory. We can’t fulfill orders for items that are not in stock.\n- If the customer is in good standing and we have inventory we want to shop the goods and bill the customer.\n\nWe can express this sequence of events using a UML activity diagram. Activity diagrams have relatively simple semantics and are a good tool to depict processes that include parallel activities. Subsequent activities are connected by simple arrows. Parallel activities are connected by a thick black bar representing fork and join actions. A fork action causes all connected activities to start simultaneously while the join action only continues after all incoming activities have been completed.\n\nThe activity diagram executes the “Check Inventory” task and the “Verify Customer Standing” task in parallel. The join bar waits until both activities are completed before it allows the next activity to start. The next activity verifies the results of both steps – do we have inventory and is the customer in good standing? If both conditions are fulfilled, the process goes on to fulfill the order. Otherwise, we transition to an exception handling activity. For example, we may call the customer to remind them to pay the last invoice or send an e-mail letting him or her know that the order will be delayed. Because this book focuses on the design aspects of message-oriented integration rather than workflow modeling, we leave the details of the exception handling process aside for now. For a very good discussion of workflow architecture and workflow modeling we refer you to [[Leyman](http://www.amazon.com/exec/obidos/ASIN/0130217530/enterpriseint-20)] and [[Sharp](http://www.amazon.com/exec/obidos/ASIN/1580530214/enterpriseint-20)].\n\n*Activity Diagram for Order Processing*\n\nIt turns out that the activities map relatively nicely to the systems in WGRUS’ IT department. The Accounting system verifies the customer’s credit standing, the inventory systems check the inventory and the shipping system initiates the physical shipping of goods. The accounting system also acts as the billing system and sends invoices. The order processing function is a typical implementation of a distributed business process.\n\nTo convert the logical activity diagram into an integration design, we use a [*Publish-Subscribe Channel*](PublishSubscribeChannel.html) to implement the fork action and an [*Aggregator*](Aggregator.html) to implement the join action. A [*Publish-Subscribe Channel*](PublishSubscribeChannel.html) sends a message to all active consumers while an [*Aggregator*](Aggregator.html) receives multiple incoming messages and combines them into a single outgoing message (see picture):\n\n*Order Processing Implementation using Asynchronous Messaging*\n\nThe [*Aggregator*](Aggregator.html) combines the results from both messages and passes the resulting message to a [*Content-Based Router*](ContentBasedRouter.html). A Content-Based-Router is a component that consumes a message and publishes it unmodified to a choice of other channels based on rules coded inside the router. The Content-Based-Router is equivalent to the branch in a UML activity diagram. In this case, if both the inventory check and the credit check have been affirmative, the [*Content-Based Router*](ContentBasedRouter.html) forwards the message to the VALIDATED_ORDER channel. If the customer is not in good standing or we have no inventory on hand, it forwards the message to the INVALID_ORDER process. The exception process (not shown in the picture) listens to messages on this channel and notifies the customer of the rejected order.\n\nAs we learned in the requirements section, WGRUS has two inventory systems, one for widgets and one for gadgets. As a result, we have to route the request for inventory to the correct system. Because we want to hide the peculiarities of the inventory systems from the other systems, we insert a [*Content-Based Router*](ContentBasedRouter.html) that routes the message to the correct system based on the type of item ordered (see picture). For example, all incoming messages with an item number starting with ‘W’ are routed to the widget inventory system and all orders with an item number starting with ‘G’ are routed to the gadget inventory system.\n\n*Routing the Inventory Request*\n\nNote that the intent of messages on the [*Point-to-Point Channel*](PointToPointChannel.html)s between the [*Content-Based Router*](ContentBasedRouter.html) and the inventory systems is different from the previous channel. These channels contain [*Command Message*](CommandMessage.html)s, messages that instruct the system to execute the specified command, in this case verifying the inventory of an item.\n\nBecause the widget inventory system and the gadget inventory system use different internal data formats we again insert [*Message Translator*](MessageTranslator.html)s to convert from the canonical New Order message format into a system-specific format. Using [*Message Translator*](MessageTranslator.html)s with each originating system (Web Interface, call center, inbound fax) and each target system (widget inventory and gadget inventory) allows us to decouple changes between the systems. For example, if we added another way of placing orders (e.g. ordering by e-mail), none of the other systems would be affected. The price we pay for this flexibility is the fact that we translate each message twice, once at the source and once at the destination.\n\nWhat happens if the order item starts neither with ‘W’ nor with ‘G”? The [*Content-Based Router*](ContentBasedRouter.html) routes the message to the INVALID_ORDER channel so that the invalid order can be processed accordingly, e.g. by notifying the customer. This channel is a typical example of an Invalid [*Message Channel*](MessageChannel.html). This is example highlights the fact that the meaning of a message changes depending what channel it is on. Both the NEW_ORDER channel and the INVALID_ORDER channel transport the same type of message, but in one case a new order is being processed while in the other case the order is deemed invalid.\n\nSo far, we have assumed that each order can only contain a single item. This would be pretty inconvenient for our customers because they would have to place a new order for each item. Also, we would end up shipping multiple orders to the same customer and incur unnecessary shipping costs. However, if we allow multiple items inside an order, which inventory system should verify the inventory for this order? We could use a [*Publish-Subscribe Channel*](PublishSubscribeChannel.html) to send the order to each inventory system to pick out the items that it can process. But what would then happen to invalid items? How would we notice that neither inventory system processed the item? We want to maintain the central control the [*Content-Based Router*](ContentBasedRouter.html) gives us, but we need to be able to route each order item individually.\n\nTherefore, we insert a [*Splitter*](Sequencer.html), a component that breaks a single message into multiple individual messages. In our case, the [*Splitter*](Sequencer.html) splits a single Order message into multiple Order Item message. Each Order Item message can then be routed to the correct inventory system using a [*Content-Based Router*](ContentBasedRouter.html) (see below).\n\n*Processing Order Items Individually*\n\nNaturally, when the inventory for all items has been verified, we need to recombine the messages into a single message. We already learned that the component that can combine multiple messages into a single message is the [*Aggregator*](Aggregator.html). Using both a [*Splitter*](Sequencer.html) and an [*Aggregator*](Aggregator.html), we can logically separate the message flow for order items from that for orders.\n\nWhen designing an [*Aggregator*](Aggregator.html), we have to make three key decisions:\n\n- Which messages belong together (“correlation”)?\n- How do we determine that all messages are received (the “completeness condition”)?\n- How do we combine the individual messages into one result message (the “aggregation algorithm”)?\n\nWe can’t correlate order items by the customer ID because a customer may place multiple orders in short succession. Therefore, we need a unique order ID for each order. We accomplish this by inserting a [*Content Enricher*](DataEnricher.html)into the Taking Orders solution (see picture). A [*Content Enricher*](DataEnricher.html)is a component that adds missing data items to an incoming message.\n\n*Taking Orders With Enricher*\n\nNow that we have an order ID to correlate order item messages, we need to define the completeness condition and the aggregation algorithm. Because we route all messages including invalid items to the [*Aggregator*](Aggregator.html), the [*Aggregator*](Aggregator.html) can simply use the number of items in the order (one of the fields in the order message) to count until all order items arrive. The aggregation algorithm is similarly simple. The [*Aggregator*](Aggregator.html) concatenates all item messages back into a single order message and publishes it to the VALIDATED_ORDER channel.\n\nThe combination of a [*Splitter*](Sequencer.html), a Router and an [*Aggregator*](Aggregator.html) is fairly common. We refer to it as a [*Composed Message Processor*](DistributionAggregate.html). To simplify the picture, we insert the symbol for a [*Composed Message Processor*](DistributionAggregate.html) into the original message flow diagram:\n\n*Revised Order Process Implementation*\n\n**Checking Status**\n\nDespite connecting the systems via messaging channels, fulfilling an order can take some amount of time. For example, we may be out of a certain item and the inventory system may be holding the inventory check message until new items arrive. This is one of the advantages of asynchronous messaging: the communication is designed to happen at the pace of the components. While the inventory system is “holding” the message, the accounting system can still verify the customer’s credit standing. Once both steps are completed, the [*Aggregator*](Aggregator.html) publishes the Validated Order message to initiate shipment and invoicing.\n\nA long-running business process also means that both customers and managers are likely to want to know the status of a specific order. For example, if certain items are out of inventory, the customer may decide to process just those items that are in stock. Or if the customer has not received the goods it is useful if we can tell him or her that the goods are on their way (including the shipping company’s tracking number) or that there is an internal delay in the warehouse.\n\nTracking the status of an order with the current design is not so easy. Related messages flow through multiple systems. In order to ascertain the status of the order in the sequence of steps we would have to know the “last” message related to this order. One of the advantages of a [*Publish-Subscribe Channel*](PublishSubscribeChannel.html) is that we can add additional subscribers without disturbing the flow of messages. We can use this property to listen in to new and validated orders and store them into a [*Message Store*](MessageStore.html). We could then query the [*Message Store*](MessageStore.html) database for the status (see picture):\n\n*Adding a Message Store To Track Order Status*\n\nIn situations where we use a Point-Point-Channel, we cannot simply add a subscriber to the channel because in a [*Point-to-Point Channel*](PointToPointChannel.html), each message can only be consumer by a single subscriber. However, we can insert a Wire Tap, a simple component that consumes a message off one channel and publishes it to two channels. We can then use the second channel to send messages to the [*Message Store*](MessageStore.html) (see picture).\n\n*Tracking Messages with a Wire Tap*\n\nStoring message data in a central database has another significant advantage. In the original design each message had to carry all relevant data in order to continue processing the message down the line. For example, the ‘Verify Customer Standing’ may have to pass through all sorts of customer data even though it may only require the customer ID. This additional data is necessary so that the resulting message still contains all data from the original order message. Storing the New Order message in a [*Message Store*](MessageStore.html) has the advantage that all subsequent components can refer to the [*Message Store*](MessageStore.html) for important message data without all intermediate steps having to carry the data along (we will later to this function as [*Claim Check*](StoreInLibrary.html) - messages can “check” data for later retrieval).\n\nNow the [*Message Store*](MessageStore.html) is responsible for maintaining data related to the new message as well as the progress of the message within the process. This data gives us enough information to use the [*Message Store*](MessageStore.html) to determine the next required steps in the process rather than connecting components with fixed [*Message Channel*](MessageChannel.html)s. For example, if the database contains reply messages from both the inventory systems and the billing system, we can conclude that the order has been validated and send a message to the Shipping and billing system. Instead of making this decision in a separate [*Aggregator*](Aggregator.html) component, we can do it right in the [*Message Store*](MessageStore.html). Effectively, we are turning the [*Message Store*](MessageStore.html) into a [*Process Manager*](ProcessManager.html).\n\nA [*Process Manager*](ProcessManager.html) is a central component that manages the flow of messages through the system. The [*Process Manager*](ProcessManager.html) provides two main functions:\n\n- Storing data between messages\n- Keeping track of progress and determining the next step\n\n*Processing Orders With a Process Manager*\n\nThis architecture turns the individual systems (e.g. the inventory systems) into Shared Services that can be accessed by any process. This increases reuse and allows for rapid changes and maintenance. The services themselves can still be composed out of multiple steps, wired together via a message flow (for example, using a [*Composed Message Processor*](DistributionAggregate.html) to check inventory status for each order item), or orchestrated via a [*Process Manager*](ProcessManager.html).\n\nThe [*Process Manager*](ProcessManager.html) itself uses a persistent store (typically files or a relational database) to store data associated with each process instance. In order to allow the Web Interface to query the status of an order we could send a message to the [*Process Manager*](ProcessManager.html) or the order DB. However, checking status is a synchronous process – the customer expects the response right away. Because the Web Interface is a custom application, we decide to access the Order Database directly to query the order status. This form of [*Shared Database*](SharedDataBaseIntegration.html) is the simplest and most efficient approach and we are always ensured that the Web Interface displays the most current status. The potential downside of this approach is the fact that the Web Interface is tightly coupled to the database, a trade-off that we are willing to take.\n\nThe new architecture exposes all services to a common services bus so that they can be invoked from any other component. If we add facilities to lookup (“discover”) a service from a service registry, we can turn the WGRUS IT infrastructure into a Service-Oriented Architecture. In order to participate in a Service-Oriented Architecture, each service has to provide additional functions. For example, each service has to expose an interface contract that describes the functions provided by the service. Each request-reply service also needs to support the concept of a [*Return Address*](ReturnAddress.html). A [*Return Address*](ReturnAddress.html) allows the caller (the “service consumer”) to specify the channel where the service should send the reply message. This is important to allow the service to be reused in different contexts, each of which may require its own channel for reply messages.\n\nOne difficulty in enabling these service functions is that many legacy systems were not build with features such as [*Return Address*](ReturnAddress.html) in mind. Therefore, we “wrap” access to the legacy system with a [*Smart Proxy*](SmartProxy.html). This [*Smart Proxy*](SmartProxy.html) enhances the basic system service with additional capability so that it can participate in a Service-Oriented Architecture. To do this, the [*Smart Proxy*](SmartProxy.html) intercepts both request and reply messages to and from the basic service (see picture).\n\n*Inserting a Smart Proxy to Turn a Legacy System Into a Shared Service*\n\nThe [*Smart Proxy*](SmartProxy.html) can store information from the request message (e.g. the [*Return Address*](ReturnAddress.html) specified by the requestor) and use this information to process the reply message, (e.g. route it to the correct reply channel). A [*Smart Proxy*](SmartProxy.html) is also very useful to track quality of service (e.g. response times) of an external service.\n\n**Change Address**\n\nWGRUS needs to deal with a number of addresses. For example, the invoice has to be sent to the customer’s billing address while the goods are shipped to the shipping address. We want to allow the customer to maintain all these addresses through the Web Interface to eliminate unnecessary manual steps.\n\nWe can choose between two basic approaches to get the correct billing and shipping addresses to the billing and shipping systems:\n\n- Include address data with the New Order message\n- Replicate address data to other systems\n\nThe first option has the advantage that we can use an existing integration channel to transport the additional information. A potential downside is the additional data flowing across the middleware infrastructure. We pass the address data along with every order even though the address may change much less frequently.\n\nBecause the billing and shipping systems are packaged applications they were not designed with integration in mind. As such, they are unlikely to be able to accept addresses with a new order but rather use the address that is stored in their local database. In order to enable the systems to update the address with the New Order message we need to execute two functions in the billing system (and the shipping system): first, we need to update the address, and then we need to send the bill (or ship the goods). Because the order of the two messages matters we insert a simple [*Process Manager*](ProcessManager.html) component that receives a New Order message (which includes the current shipping and billing address0 and publishes two separate messages to the billing (or shipping) system (see diagram).\n\n*Including Address Data in the New Order Message*\n\nWe update the address directly into the system database using a database [*Channel Adapter*](ChannelAdapter.html). Sending the goods or producing an invoice has to invoke the applications’ business logic. Therefore, we connect to the applications’ business tiers and invoke the correct API function when a message is received.\n\nWe need to keep in mind that the [*Channel Adapter*](ChannelAdapter.html)s require messages to be formatted in the proprietary formats used by the applications (using so-called private messages). Because the New Order message arrives in the canonical message format we need to perform a translation between the two formats. We could build the transformation into the [*Process Manager*](ProcessManager.html) but we actually prefer external [*Message Translator*](MessageTranslator.html)s so that the logic inside the [*Process Manager*](ProcessManager.html) is not affected by the possibly complicated data format required by the applications.\n\nThe second option uses data replication to propagate address changes to all affected systems independently of the New Order process. Whenever the address information changes in the Web interface we propagate the changes to all interested systems using a [*Publish-Subscribe Channel*](PublishSubscribeChannel.html). The systems store the updated address internally and use it when an order message arrives. This approach reduces message traffic (assuming customers change addresses less frequently than they place orders). It can also reduce coupling between systems. Any system that uses an address can subscribe to the ADDRESS_CHANGE channel without affecting any other systems. The potential downside is that we have to build another interface function for the billing and shipping systems to enable them to consume address change messages.\n\nBecause we are dealing with multiple types of addresses (shipping and billing addresses) we need to make sure that only the right type of address is stored in each system. We need to avoid sending an address change message to the shipping system if the address is a billing address. We accomplish this by using Message Filters that only pass messages matching certain criteria (see diagram).\n\nWe also use [*Message Translator*](MessageTranslator.html)s to translate the generic Address Change message into the specific message format used by the applications. In this case we do not use a [*Message Translator*](MessageTranslator.html) for the Web Interface because we define the [*Canonical Data Model*](CanonicalDataModel.html) as equal to the format of the Web Interface application. This could limit out flexibility if we want to introduce other ways of changing addresses in the future, but for now it is sufficient.\n\n*Propagating Address Changes via a Separate Publish-Subscribe Channel*\n\nBoth the shipping and the billing system store addresses in a relational database so that we use a database [*Channel Adapter*](ChannelAdapter.html) to update the data in each system.\n\nHow do we decide between the two options? In our situation the message traffic is not much of a concern because we only process a few hundred orders a day, so either solution would work well. The main decision driver is going to be the internal structure of the applications. We may not be able to insert the addresses directly into the database, but rather through the applications’ business layer. In this case the applications may perform additional validation steps and record the address change activity. The system may even be programmed to e-mail a confirmation message to the customer every time the address changes. This would get very annoying if the update the address with every order. Such a condition would favor propagating address changes using dedicated messages that are sent only when the customer actually changes the address.\n\nIn general we prefer well-defined, self-contained business actions such as “Change Address” and “Place Order” because they give us more flexibility in orchestrating the businesses processes. It all comes down to a question of granularity and the associated trade-offs. Fine-grained interfaces can lead to sluggish systems due to an excessive number of remote calls being made or messages being sent. For example, imagine an interface that exposes a separate method to change each address field. This approach would be efficient if the communication happens inside a single application – you only update those fields that changed. In an integration scenario sending six or seven messages to update an address would be a significant overhead plus we would have to deal with synchronizing the individual messages. Fine-grained interfaces also lead to tight coupling. If we change the address format, we have to define new message formats and change all other applications to send an additional message.\n\nCoarse grained interfaces solve these issues. We send fewer messages and are therefore more efficient and less tightly coupled. However, interfaces that are too coarse can limit our flexibility. If Send Invoice and Change Address are combined into one external function, will we never need to change an address without sending a bill? So as always the best answer is the happy medium and depends on the specific trade-offs at work in the real-life scenario.\n\n**New Catalog**\n\nIn order for customers to place orders they need to see the currently offered items and their prices on-line. WGRUS’ catalog is driven by the offerings from the respective suppliers. However, one of the services that WGRUS provides to its customers is allowing them to view widgets and gadgets on the same site and to order both types of items in a single order. This function is an example of an Information Portal scenario – we combine information from multiple sources into a single view.\n\nIt turns out that both suppliers update their product catalog once every 3 months. Therefore, it makes relatively little sense to create a real-time messaging infrastructure to propagate catalog changes from the suppliers to WGRUS. Instead, we use File Transfer integration to move catalog data from suppliers to WGRUS. The other advantage of using files is that they are easily and efficiently transported across public networks using FTP or similar protocols. In comparison, most asynchronous messaging infrastructures do not work well over the public Internet.\n\nWe still can use Translators and Adapters to transform the data to our internal catalog format. However, these Translators process a whole catalog at once instead of one item at a time. This approach is much more efficient if we are dealing with large amounts of data in the same format.\n\n*Updating Catalog Data via File Transfer*\n\n**Announcements**\n\nIn order to improve business, we want to announce specials to our customers every once in a while. In order to not annoy the customers, we allow the customer to only receive messages that are of interest to them. We also want to target specific messages to a specific subset of customers. For example, we may announce special deals only to preferred customers. When we need to send information to multiple recipients, a [*Publish-Subscribe Channel*](PublishSubscribeChannel.html) immediately comes to mind. However, a [*Publish-Subscribe Channel*](PublishSubscribeChannel.html) has some disadvantages. First, it allows any subscriber to listen to the published messages without the publisher’s knowledge. For example, we would not want smaller customers to receive special offers intended for high-volume customers. The second downside of [*Publish-Subscribe Channel*](PublishSubscribeChannel.html)s is that they work efficiently only on local networks. If we send data across wide-area networks the [*Publish-Subscribe Channel*](PublishSubscribeChannel.html) we have to send a separate copy of the message to each recipient. If a recipient is not interested in the message we would have incurred unnecessary network traffic.\n\nTherefore, we should look for a solution that allows subscribers to issue their subscription preferences and then send individual messages only to interested (and authorized) customers. In order to perform this function we use a *Dynamic Recipient List*. A *Dynamic Recipient List* is the combination of two Message Routing patterns. A [*Recipient List*](RecipientList.html) is a router that propagates a single message to a set of recipients. The main difference between the [*Recipient List*](RecipientList.html) and a [*Publish-Subscribe Channel*](PublishSubscribeChannel.html) is that the [*Recipient List*](RecipientList.html) addresses each recipient specifically and therefore has tight control over who receives messages. A [*Dynamic Router*](DynamicRouter.html) is a router whose routing algorithm can change based on control messages. These control messages can take the form of subscription preferences issued by the subscribers. Combining these two patterns results in a *Dynamic Recipient List*.\n\n*Sending Announcements With a Dynamic Recipient List*\n\nIf customers receive announcements via e-mail, the implementation of these patterns can use the mailing lists features typically supplied by e-mail systems. Each recipient channel is then identified by an e-mail address. Likewise, if customers prefer to receive announcements via a Web services interface, each recipient channel is implemented by a SOAP request and the channel address is the URI of the Web service. This example illustrates that the patterns we use to describe the solution design are independent of a specific transport technology.\n\n**Testing and Monitoring**\n\nMonitoring the correct execution of messages is a critical operations and support function. The [*Message Store*](MessageStore.html) can provide us with some important business metrics such as the average time to fulfill an order. However, we may need for more detailed information for the successful operation of an integration solution. Let’s assume we enhance our solution to access an external credit agency to better assess our customer’s credit standing. Even if we show no outstanding payments we may want to decline a customer’s order if the customer’s credit ranking is particularly poor. This is especially useful for new customers. Because the service is provided by an outside provider we are being charged for its use. To verify the provider’s invoice we want to track our actual usage and reconcile the two reports. We cannot simply go by the number of orders because the business logic may not request an external credit check for long-standing customers. Also, we have a Quality of Service (QoS) with the external provider. If the response time exceeds a specified time, we do not have to pay for the request.\n\nTo make sure we are being billed correctly we want to track the number of requests we made and the time it takes for the associated response to arrive. We have to be able to deal with two specific situations. The external service can process more than one request at a time, so we need to be able to match up request and reply messages. Second, since we treat the external service as a shared service inside our enterprise we want to allow the service consumer to specify a [*Return Address*](ReturnAddress.html), the channel where the service should send the reply message. It could be difficult to match request and reply messages if we don’t know which channel the reply message is on.\n\nOnce again the [*Smart Proxy*](SmartProxy.html) is the answer. We insert the [*Smart Proxy*](SmartProxy.html) between any service consumer and the external service. We replace the [*Return Address*](ReturnAddress.html) specified by the service consumer with a fixed reply channel. We store the original [*Return Address*](ReturnAddress.html) inside the [*Smart Proxy*](SmartProxy.html) so that it can forward the reply message to the channel specified by the consumer. The [*Smart Proxy*](SmartProxy.html) also measures the time elapsed between request and reply message from the external service. The [*Smart Proxy*](SmartProxy.html) publishes this data to the [*Control Bus*](ControlBus.html). The [*Control Bus*](ControlBus.html) is connected to a management console that collects metrics from many different components.\n\n*Inserting a Smart Proxy to Track Response Times*\n\nWe also want to make sure that the external credit service is working correctly. The [*Smart Proxy*](SmartProxy.html) can report cases where no reply message is received within a specified time-out period to the management console. Much harder to detect are cases where the external service returns a reply message but the results in the message are incorrect. For example is the external service malfunctions and returns a credit score of zero for every customer we would end up denying every order. There are two mechanisms that can help us protect against such a scenario. First, we can periodically inject a [*Test Message*](TestMessage.html) into the request stream. This [*Test Message*](TestMessage.html) requests the score for a specific person so that the result is known. We can then use a *Test Data Verifier* to not only check the fact that a reply was received but also the accuracy of the message content. Because the [*Smart Proxy*](SmartProxy.html) supports Reply Addresses the *Test Data Generator* can specify a special reply channel to separate test replies from regular replies (see picture).\n\n*Inserting Test Messages to Verify Accurate Results*\n\nAnother effective strategy to detect malfunctioning services that return messages in a valid format but with bad data is to take a statistical sample. For example, we may expect to decline an average of less than one in 10 orders due to the customer’s poor standing. If we decline more than 5 orders in a row this may be an indication that an external service or some business logic is malfunctioning. The management console could e-mail the five orders to an administrator who can then take a quick look at the data to verify whether the rejections were justified.\n\n## Summary\n\nWe have walked through a fairly extensive integration scenario using different integration strategies such as [*File Transfer*](FileTransferIntegration.html), [*Shared Database*](SharedDataBaseIntegration.html) and asynchronous [*Messaging*](Messaging.html). We routed, split and aggregated messages. We also added functions to monitor the correct operation of the solution. While the requirements for this example were admittedly simplified the issues and design trade-offs we had to consider are very real. The solution diagrams and descriptions highlight how we can describe a solution in a vendor-and technology-neutral language that is much more accurate than a high-level sequence diagram.\n\nThe integration scenario in this chapter focused primarly on how to connect existing applications. For a detailed description on how to publish and consume messages from inside a custom application see the examples in Chapter 6 and Chapter 9 (see [*Introduction to Simple Messaging Examples*](SimpleMessagingIntro.html) and [*Introduction to Composed Messaging Examples*](ComposedMessagingExample.html))\n\nThe remainder of the book contains detailed descriptions and code examples for each of the patterns that we used in our solution design. The patterns are categorized by their primary intent between base patterns, channel patterns, message patterns, routing patterns, transformation patterns, endpoint patterns and system management patterns. This arrangement makes it easy to read all patterns in sequence or look up individual patterns as a reference.\n\n## Integration Pattern Language\n\n[Message Construct.](MessageConstructionIntro.html)\n\n[Message](Message.html)\n\n[Command Message](CommandMessage.html)\n\n[Document Message](DocumentMessage.html)\n\n[Event Message](EventMessage.html)\n\n[Request-Reply](RequestReply.html)\n\n[Return Address](ReturnAddress.html)\n\n[Correlation Identifier](CorrelationIdentifier.html)\n\n[Message Sequence](MessageSequence.html)\n\n[Message Expiration](MessageExpiration.html)\n\n[Format Indicator](FormatIndicator.html)\n\n[Message Routing](MessageRoutingIntro.html)\n\n[Pipes-and-Filters](PipesAndFilters.html)\n\n[Message Router](MessageRouter.html)\n\n[Content-based Router](ContentBasedRouter.html)\n\n[Message Filter](Filter.html)\n\n[Dynamic Router](DynamicRouter.html)\n\n[Recipient List](RecipientList.html)\n\n[Splitter](Sequencer.html)\n\n[Aggregator](Aggregator.html)\n\n[Resequencer](Resequencer.html)\n\n[Composed Msg. Processor](DistributionAggregate.html)\n\n[Scatter-Gather](BroadcastAggregate.html)\n\n[Routing Slip](RoutingTable.html)\n\n[Process Manager](ProcessManager.html)\n\n[Message Broker](MessageBroker.html)\n\n[Message\nTransformation](MessageTransformationIntro.html)\n\n[Message Translator](MessageTranslator.html)\n\n[Envelope Wrapper](EnvelopeWrapper.html)\n\n[Content Enricher](DataEnricher.html)\n\n[Content Filter](ContentFilter.html)\n\n[Claim Check](StoreInLibrary.html)\n\n[Normalizer](Normalizer.html)\n\n[Canonical Data Model](CanonicalDataModel.html)\n\n[Messaging Endpoints](MessagingEndpointsIntro.html)\n\n[Message Endpoint](MessageEndpoint.html)\n\n[Messaging Gateway](MessagingGateway.html)\n\n[Messaging Mapper](MessagingMapper.html)\n\n[Transactional Client](TransactionalClient.html)\n\n[Polling Consumer](PollingConsumer.html)\n\n[Event-driven Consumer](EventDrivenConsumer.html)\n\n[Competing Consumers](CompetingConsumers.html)\n\n[Message Dispatcher](MessageDispatcher.html)\n\n[Selective Consumer](MessageSelector.html)\n\n[Durable Subscriber](DurableSubscription.html)\n\n[Idempotent Receiver](IdempotentReceiver.html)\n\n[Service Activator](MessagingAdapter.html)\n\n[Messaging Channels](MessagingChannelsIntro.html)\n\n[Message Channel](MessageChannel.html)\n\n[Point-to-Point Channel](PointToPointChannel.html)\n\n[Publish-Subscr. Channel](PublishSubscribeChannel.html)\n\n[Datatype Channel](DatatypeChannel.html)\n\n[Invalid Message Channel](InvalidMessageChannel.html)\n\n[Dead Letter Channel](DeadLetterChannel.html)\n\n[Guaranteed Delivery](GuaranteedMessaging.html)\n\n[Channel Adapter](ChannelAdapter.html)\n\n[Messaging Bridge](MessagingBridge.html)\n\n[Message Bus](MessageBus.html)\n\n[Systems Mgmt.](SystemManagementIntro.html)\n\n[Control Bus](ControlBus.html)\n\n[Detour](Detour.html)\n\n[Wire Tap](WireTap.html)\n\n[Message History](MessageHistory.html)\n\n[Message Store](MessageStore.html)\n\n[Smart Proxy](SmartProxy.html)\n\n[Test Message](TestMessage.html)\n\n[Channel Purger](ChannelPurger.html)", "znaku_textu": 80799, "slov": 12307, "odkazu": 112, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/patterns/messaging/Chapter1.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 06:01:48", "sha256": "0d44128b54c6346240be872f77d6c4e3c76e11f6d7ac1b245aeee37a4ff9006f", "hloubka": 1, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://www.amazon.com/exec/obidos/ASIN/1881378241/enterpriseint-20", "http://www.amazon.com/exec/obidos/ASIN/0471327204/enterpriseint-20", "http://citeseer.nj.nec.com/waldo94note.html", "http://www.amazon.com/exec/obidos/ASIN/0130217530/enterpriseint-20", "http://www.amazon.com/exec/obidos/ASIN/1580530214/enterpriseint-20", "https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "https://www.architectelevator.com/book", "https://www.cloudstrategybook.com/", "https://www.platformstrategybook.info/"]} {"url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/CommandMessage.html", "titulek": "Command Message - Enterprise Integration Patterns", "h1": "", "popis": "How can messaging be used to invoke a procedure in another application?", "klicova_slova": "Command Message,integration, messaging, events, patterns, event-driven, coupling, eai, middleware, application integration, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns", "og:title": "Command Message - Enterprise Integration Patterns", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/CommandMessage.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/CommandMessageSolution.gif"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Integration Pattern Language"}], "markdown": "Messaging Patterns\n\n[Messaging Patterns](index.html)\n\n- [Integration Styles](IntegrationStylesIntro.html)\n- [Messaging Systems](MessagingComponentsIntro.html)\n- [Messaging Channels](MessagingChannelsIntro.html)\n- [Message Construction](MessageConstructionIntro.html)\n- [Interlude: Simple Messaging](SimpleMessagingIntro.html)\n- [Message Routing](MessageRoutingIntro.html)\n- [Message Transformation](MessageTransformationIntro.html)\n- [Interlude: Composed Messaging](ComposedMessagingExample.html)\n- [Messaging Endpoints](MessagingEndpointsIntro.html)\n- [System Management](SystemManagementIntro.html)\n- Interlude: Systems Management Example\n- Integration Patterns in Practice\n- Concluding Remarks\n- Appendices\n\n| | Command Message[Messaging Patterns](index.html) » [Message Construction](MessageConstructionIntro.html) | [Contents](toc.html)[⇐ Prev](MessageConstructionIntro.html)[Next ⇒](DocumentMessage.html) |\n| --- | --- | --- |\n\nAn application needs to invoke functionality provided by other applications. It would typically use [*Remote Procedure Invocation*](EncapsulatedSynchronousIntegration.html), but would like to take advantage of the benefits of using [*Messaging*](Messaging.html).\n\nHow can messaging be used to invoke a procedure in another application?\n\nUse a *Command Message* to reliably invoke a procedure in another application.\n\nThere is no specific message type for commands; a *Command Message* is simply a regular message that happens to contain a command. In JMS, the command message could be any type of message; examples include an ObjectMessage containing a Serializable command object, a TextMessage containing the command in XML form, etc. In .NET, a command message is a Message with a command stored in it. A Simple Object Access Protocol (SOAP) request is a command message.\n\n...\nRead the entire pattern in the book [Enterprise Integration Patterns](/books1.html)\n\n**Related patterns:**\n\n[*Remote Procedure Invocation*](EncapsulatedSynchronousIntegration.html), [*Message*](Message.html), [*Message Channel*](MessageChannel.html), [*Messaging*](Messaging.html), [*Point-to-Point Channel*](PointToPointChannel.html)\n\n---\n\n## Integration Pattern Language\n\n[Message Construct.](MessageConstructionIntro.html)\n\n[Message](Message.html)\n\n[Command Message](CommandMessage.html)\n\n[Document Message](DocumentMessage.html)\n\n[Event Message](EventMessage.html)\n\n[Request-Reply](RequestReply.html)\n\n[Return Address](ReturnAddress.html)\n\n[Correlation Identifier](CorrelationIdentifier.html)\n\n[Message Sequence](MessageSequence.html)\n\n[Message Expiration](MessageExpiration.html)\n\n[Format Indicator](FormatIndicator.html)\n\n[Message Routing](MessageRoutingIntro.html)\n\n[Pipes-and-Filters](PipesAndFilters.html)\n\n[Message Router](MessageRouter.html)\n\n[Content-based Router](ContentBasedRouter.html)\n\n[Message Filter](Filter.html)\n\n[Dynamic Router](DynamicRouter.html)\n\n[Recipient List](RecipientList.html)\n\n[Splitter](Sequencer.html)\n\n[Aggregator](Aggregator.html)\n\n[Resequencer](Resequencer.html)\n\n[Composed Msg. Processor](DistributionAggregate.html)\n\n[Scatter-Gather](BroadcastAggregate.html)\n\n[Routing Slip](RoutingTable.html)\n\n[Process Manager](ProcessManager.html)\n\n[Message Broker](MessageBroker.html)\n\n[Message\nTransformation](MessageTransformationIntro.html)\n\n[Message Translator](MessageTranslator.html)\n\n[Envelope Wrapper](EnvelopeWrapper.html)\n\n[Content Enricher](DataEnricher.html)\n\n[Content Filter](ContentFilter.html)\n\n[Claim Check](StoreInLibrary.html)\n\n[Normalizer](Normalizer.html)\n\n[Canonical Data Model](CanonicalDataModel.html)\n\n[Messaging Endpoints](MessagingEndpointsIntro.html)\n\n[Message Endpoint](MessageEndpoint.html)\n\n[Messaging Gateway](MessagingGateway.html)\n\n[Messaging Mapper](MessagingMapper.html)\n\n[Transactional Client](TransactionalClient.html)\n\n[Polling Consumer](PollingConsumer.html)\n\n[Event-driven Consumer](EventDrivenConsumer.html)\n\n[Competing Consumers](CompetingConsumers.html)\n\n[Message Dispatcher](MessageDispatcher.html)\n\n[Selective Consumer](MessageSelector.html)\n\n[Durable Subscriber](DurableSubscription.html)\n\n[Idempotent Receiver](IdempotentReceiver.html)\n\n[Service Activator](MessagingAdapter.html)\n\n[Messaging Channels](MessagingChannelsIntro.html)\n\n[Message Channel](MessageChannel.html)\n\n[Point-to-Point Channel](PointToPointChannel.html)\n\n[Publish-Subscr. Channel](PublishSubscribeChannel.html)\n\n[Datatype Channel](DatatypeChannel.html)\n\n[Invalid Message Channel](InvalidMessageChannel.html)\n\n[Dead Letter Channel](DeadLetterChannel.html)\n\n[Guaranteed Delivery](GuaranteedMessaging.html)\n\n[Channel Adapter](ChannelAdapter.html)\n\n[Messaging Bridge](MessagingBridge.html)\n\n[Message Bus](MessageBus.html)\n\n[Systems Mgmt.](SystemManagementIntro.html)\n\n[Control Bus](ControlBus.html)\n\n[Detour](Detour.html)\n\n[Wire Tap](WireTap.html)\n\n[Message History](MessageHistory.html)\n\n[Message Store](MessageStore.html)\n\n[Smart Proxy](SmartProxy.html)\n\n[Test Message](TestMessage.html)\n\n[Channel Purger](ChannelPurger.html)\n\n- » [Read the latest in My Blog](/ramblings)\n- » [Get more insights from My Articles](/articles.html)\n- » [See me live in my Upcoming Talks](/talks)\n\nYou can reuse the following elements under the [Creative Commons Attribution](http://creativecommons.org/licenses/by/4.0/) license: pattern icon, pattern name, problem and solution statements (in bold), and the sketch. Other portions are protected by copyright.\n\n[Enterprise Integration Patterns](https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20)\nThe de-facto language for designing asynchronous, distributed systems. Over 100,000 copies sold.\n\n[The Software Architect Elevator](https://www.architectelevator.com/book)\n\n Rethink the role of architects as a connecting element across organizational layers. Acquire the technical, communication, and organizational skills to succeed in this new role.\n\n[Cloud Strategy](https://www.cloudstrategybook.com)\n\n Make your cloud migration a success by translating high-level goals into conscious decisions with well-understood trade-offs.\n\n[Platform Strategy](https://www.platformstrategybook.info)\n\n Platforms can boost innovation through harmonization, but they aren't easy to build. Learn from over a decade of designing and rolling out IT platforms.", "znaku_textu": 6102, "slov": 500, "odkazu": 108, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/CommandMessage.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 06:02:12", "sha256": "53bdbb89e16b007c7336df050ed4744bf812f662c16c591bd2a827adb236c23f", "hloubka": 1, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://creativecommons.org/licenses/by/4.0/", "https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "https://www.architectelevator.com/book", "https://www.cloudstrategybook.com/", "https://www.platformstrategybook.info/"]} {"url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/CompetingConsumers.html", "titulek": "Competing Consumers - Enterprise Integration Patterns", "h1": "", "popis": "How can a messaging client process multiple messages concurrently?", "klicova_slova": "Competing Consumers,integration, messaging, events, patterns, event-driven, coupling, eai, middleware, application integration, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns", "og:title": "Competing Consumers - Enterprise Integration Patterns", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/CompetingConsumers.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/CompetingConsumers.gif"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Example: Apache KafkaNEW"}, {"uroven": 2, "text": "Integration Pattern Language"}], "markdown": "| | Competing Consumers[Messaging Patterns](index.html) » [Messaging Endpoints](MessagingEndpointsIntro.html) | [Contents](toc.html)[⇐ Prev](EventDrivenConsumer.html)[Next ⇒](MessageDispatcher.html) |\n| --- | --- | --- |\n\nAn application is using [*Messaging*](Messaging.html). However, it cannot process messages as fast as they’re being added to the channel.\n\nHow can a messaging client process multiple messages concurrently?\n\nCreate multiple *Competing Consumers* on a single channel so that the consumers can process multiple messages concurrently.\n\n*Competing Consumers* are multiple consumers that are all created to receive messages from a single [*Point-to-Point Channel*](PointToPointChannel.html). When the channel delivers a message, any of the consumers could potentially receive it. The messaging system's implementation determines which consumer actually receives the message, but in effect the consumers compete with each other to be the receiver. Once a consumer receives a message, it can delegate to the rest of its application to help process the message. (This solution only works with [*Point-to-Point Channel*](PointToPointChannel.html)s; multiple consumers on a [*Publish-Subscribe Channel*](PublishSubscribeChannel.html) just create more copies of each message.)\n\n*Competing Consumers Sequence*\n\n...\nRead the entire pattern in the book [Enterprise Integration Patterns](/books1.html)\n\n## Example: Apache Kafka[NEW](/ramblings/eip1_examples_updated.html)\n\n[Apache Kafka](http://kafka.apache.org) is a distributed streaming platform that allows clients to consume messages in both [*Publish-Subscribe Channel*](PublishSubscribeChannel.html) and *Competing Consumers* semantics. Kafka is optimized for high throughout and horizontal scalability and therefore tries to avoid the overhead that can be inherent in coordinating across multiple *Competing Consumers*. So while the client interface allows multiple consumers to consume messages off a topic in a competing fashion, guaranteeing that each message is only consumed by one of the consumers, the implementation actually relies on multiple *partitions* implemented as [*Point-to-Point Channel*](PointToPointChannel.html)s:\n\nIn the example above, a Kafka topic consists of three partitions divided across two consumers. A [*Message Router*](MessageRouter.html) distributes the messages across the three [*Point-to-Point Channel*](PointToPointChannel.html)s. This router is generally a [*Content-Based Router*](ContentBasedRouter.html) that works off the message key. This allows the sender to control the distribution of messages, e.g. to assure related messages go onto the same partition. This can be necessary to preserve order because in-order delivery is not guaranteed across partitions.\n\nThis design implies that the decision which consumer receives the message is made *a priori*, meaning consumers don't actually compete but rather read from independent channels. This limits the ability to load balance between consumers, e.g. if one channel runs empty, the corresponding consumer won't be able to aid other consumers whose channels still have messages. Also, as the number of partitions is set independently, not all consumers will service the same number of partitions, as illustrated in the example above.\n\nHowever, as Kafka partitions are relatively inexpensive, there are usually lots of them, meaning that each consumer is in reality likely to read of many partitions and therefore channels. This highlights another trade-off: there can't be more competing consumers in a *consumer group* than there are partitions on that topic.\n\n**Related patterns:**\n\n[*Content-Based Router*](ContentBasedRouter.html), [*Event-Driven Consumer*](EventDrivenConsumer.html), [*Message*](Message.html), [*Message Channel*](MessageChannel.html), [*Message Dispatcher*](MessageDispatcher.html), [*Message Router*](MessageRouter.html), [*Messaging*](Messaging.html), [*Point-to-Point Channel*](PointToPointChannel.html), [*Polling Consumer*](PollingConsumer.html), [*Publish-Subscribe Channel*](PublishSubscribeChannel.html), [*Transactional Client*](TransactionalClient.html)\n\n---\n\n## Integration Pattern Language\n\n[Message Construct.](MessageConstructionIntro.html)\n\n[Message](Message.html)\n\n[Command Message](CommandMessage.html)\n\n[Document Message](DocumentMessage.html)\n\n[Event Message](EventMessage.html)\n\n[Request-Reply](RequestReply.html)\n\n[Return Address](ReturnAddress.html)\n\n[Correlation Identifier](CorrelationIdentifier.html)\n\n[Message Sequence](MessageSequence.html)\n\n[Message Expiration](MessageExpiration.html)\n\n[Format Indicator](FormatIndicator.html)\n\n[Message Routing](MessageRoutingIntro.html)\n\n[Pipes-and-Filters](PipesAndFilters.html)\n\n[Message Router](MessageRouter.html)\n\n[Content-based Router](ContentBasedRouter.html)\n\n[Message Filter](Filter.html)\n\n[Dynamic Router](DynamicRouter.html)\n\n[Recipient List](RecipientList.html)\n\n[Splitter](Sequencer.html)\n\n[Aggregator](Aggregator.html)\n\n[Resequencer](Resequencer.html)\n\n[Composed Msg. Processor](DistributionAggregate.html)\n\n[Scatter-Gather](BroadcastAggregate.html)\n\n[Routing Slip](RoutingTable.html)\n\n[Process Manager](ProcessManager.html)\n\n[Message Broker](MessageBroker.html)\n\n[Message\nTransformation](MessageTransformationIntro.html)\n\n[Message Translator](MessageTranslator.html)\n\n[Envelope Wrapper](EnvelopeWrapper.html)\n\n[Content Enricher](DataEnricher.html)\n\n[Content Filter](ContentFilter.html)\n\n[Claim Check](StoreInLibrary.html)\n\n[Normalizer](Normalizer.html)\n\n[Canonical Data Model](CanonicalDataModel.html)\n\n[Messaging Endpoints](MessagingEndpointsIntro.html)\n\n[Message Endpoint](MessageEndpoint.html)\n\n[Messaging Gateway](MessagingGateway.html)\n\n[Messaging Mapper](MessagingMapper.html)\n\n[Transactional Client](TransactionalClient.html)\n\n[Polling Consumer](PollingConsumer.html)\n\n[Event-driven Consumer](EventDrivenConsumer.html)\n\n[Competing Consumers](CompetingConsumers.html)\n\n[Message Dispatcher](MessageDispatcher.html)\n\n[Selective Consumer](MessageSelector.html)\n\n[Durable Subscriber](DurableSubscription.html)\n\n[Idempotent Receiver](IdempotentReceiver.html)\n\n[Service Activator](MessagingAdapter.html)\n\n[Messaging Channels](MessagingChannelsIntro.html)\n\n[Message Channel](MessageChannel.html)\n\n[Point-to-Point Channel](PointToPointChannel.html)\n\n[Publish-Subscr. Channel](PublishSubscribeChannel.html)\n\n[Datatype Channel](DatatypeChannel.html)\n\n[Invalid Message Channel](InvalidMessageChannel.html)\n\n[Dead Letter Channel](DeadLetterChannel.html)\n\n[Guaranteed Delivery](GuaranteedMessaging.html)\n\n[Channel Adapter](ChannelAdapter.html)\n\n[Messaging Bridge](MessagingBridge.html)\n\n[Message Bus](MessageBus.html)\n\n[Systems Mgmt.](SystemManagementIntro.html)\n\n[Control Bus](ControlBus.html)\n\n[Detour](Detour.html)\n\n[Wire Tap](WireTap.html)\n\n[Message History](MessageHistory.html)\n\n[Message Store](MessageStore.html)\n\n[Smart Proxy](SmartProxy.html)\n\n[Test Message](TestMessage.html)\n\n[Channel Purger](ChannelPurger.html)", "znaku_textu": 6852, "slov": 682, "odkazu": 110, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/CompetingConsumers.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 06:02:56", "sha256": "4e7aeddaaaf41076903f75e647af7990dcdb940fb5c13c1da0793261f33f003d", "hloubka": 1, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://kafka.apache.org/", "http://creativecommons.org/licenses/by/4.0/", "https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "https://www.architectelevator.com/book", "https://www.cloudstrategybook.com/", "https://www.platformstrategybook.info/"]} {"url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/ComposedMessagingExample.html", "titulek": "Introduction to Composed Messaging Examples - Enterprise Integration Patterns", "h1": "", "popis": "This chapter demonstrates how to compose routing and transformation patterns into a larger solution. We chose to model the process of a consumer obtaining quotes for a loan from multiple banks. We simplified the process a little bit so we can focus on a discussion of integration patterns as opposed to holding a lecture in consumer financial services. Based on the patterns that we defined we discuss and create three alternative implementations for this process, using different programming languages, technologies and messaging models.", "klicova_slova": "Introduction to Composed Messaging Examples,integration, messaging, events, patterns, event-driven, coupling, eai, middleware, application integration, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns", "og:title": "Introduction to Composed Messaging Examples - Enterprise Integration Patterns", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/ComposedMessagingExample.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/eip1_patterns_wide.png"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Overview"}, {"uroven": 2, "text": "Obtaining a Loan Quote"}, {"uroven": 2, "text": "Designing the Message Flow"}, {"uroven": 2, "text": "Sequencing: Synchronous vs. Asynchronous"}, {"uroven": 2, "text": "Addressing: Distribution vs. Auction"}, {"uroven": 2, "text": "Aggregating Strategies: Multiple Channels vs. Single Channel"}, {"uroven": 2, "text": "Managing Concurrency"}, {"uroven": 2, "text": "Three Implementations"}, {"uroven": 2, "text": "Integration Pattern Language"}], "markdown": "| | Introduction to Composed Messaging Examples[Messaging Patterns](index.html) » [Interlude: Composed Messaging](ComposedMessagingExample.html) | [Contents](toc.html)[⇐ Prev](CanonicalDataModel.html)[Next ⇒](ComposedMessagingWS.html) |\n| --- | --- | --- |\n\n## Overview\n\nThis chapter demonstrates how to compose routing and transformation patterns into a larger solution. We chose to model the process of a consumer obtaining quotes for a loan from multiple banks. We simplified the process a little bit so we can focus on a discussion of integration patterns as opposed to holding a lecture in consumer financial services. Based on the patterns that we defined we discuss and create three alternative implementations for this process, using different programming languages, technologies and messaging models.\n\n## Obtaining a Loan Quote\n\nWhen shopping for a loan, a customer usually calls several banks to find the deal with the best possible interest rate. Each bank asks the customer for his or her social security number, the amount of the loan and the desired term , i.e. the number of months until the loan has to be paid off. Each bank then investigates the customer's credit background, usually by contacting a credit agency. Based on the requested terms and the customer's credit history, the bank responds with an interest rate quote to the consumer (or declines thankfully). Once the customer has received quotes from all banks, he or she can then select the best offer, i.e. the lowest interest rate.\n\n*A Consumer Talking to Banks to Get a Loan Quote*\n\nBecause contacting multiple banks with a loan quote request is a tedious task, loan brokers offer this service to consumers. A loan broker is typically not affiliated with any one bank but has access to many lending institutions. The broker gathers the customer data once and contacts the credit agency to obtain the customer's credit history. Based on the credit score and history, the broker presents the request to a number of banks that are best suited to meet the customer’s criteria. The broker gathers the resulting quotes from the banks and selects the best offer (i.e. the lowest interest rate) to pass back to the consumer.\n\n*A Loan Broker Acting as Intermediary*\n\n## Designing the Message Flow\n\nWe want to design a loan broker system using integration patterns in the previous chapters. To do this, let's first list the individual tasks that the loan broker needs to perform.\n\n1. Receive the consumer's loan quote request\n2. Obtain credit score and history from credit agency\n3. Determine the most appropriate banks to contact\n4. Send a request to each selected bank\n5. Collect responses from each selected bank\n6. Determine the best response\n7. Pass the result back to the consumer\n\nLet's have a look to see which patterns could help us implement the loan broker. The first step describes how the broker receives the incoming request. We cover this topic in much more detail in the following chapter on endpoint patterns. So for now, let's skip over this step and assume the message is somehow received by the broker. Now, the broker has to retrieve some additional information, i.e. the customer's credit score. A [*Content Enricher*](DataEnricher.html) sounds like the ideal choice for this task. Once the broker has the complete information, the broker has to determine the appropriate banks to route the request message to. We can accomplish this with another [*Content Enricher*](DataEnricher.html) that computes the list of recipients for the request. Sending a request message to multiple recipients and re-combining the responses back into a single message is the specialty of the [*Scatter-Gather*](BroadcastAggregate.html). The [*Scatter-Gather*](BroadcastAggregate.html) can use a [*Publish-Subscribe Channel*](PublishSubscribeChannel.html) or a [*Recipient List*](RecipientList.html) to send the request to the banks. Once the banks reply with their rate quotes, the [*Scatter-Gather*](BroadcastAggregate.html) aggregates the individual rate quotes into a single quote for the consumer using an [*Aggregator*](Aggregator.html).\n\nIf we model the message flow using these patterns, we arrive at the following design:\n\n*Simple Loan Broker Design*\n\nWe have not yet accounted for the likely event that each bank may use a slightly different message format for the loan request and response. Because we want to separate the routing and aggregation logic from the banks' proprietary formats, we need to insert [*Message Translator*](MessageTranslator.html)s into the communication lines between the broker and the banks. We can use a [*Normalizer*](Normalizer.html) to translate the individual responses into a common format:\n\n*Complete Loan Broker Design*\n\n## Sequencing: Synchronous vs. Asynchronous\n\nSo far, we have described the flow of the messages and the routing and transformation patterns we can use to describe the design of the loan broker component. We have not yet discussed the timing of the broker operation. We have two primary choices:\n\n- **Synchronous (Sequential)** : The broker asks one bank for the quote and waits for a response.\n- **Asynchronous (Parallel)** : The broker sends all quote requests at once and waits for the answers to come back.\n\nWe can use UML sequence diagrams to illustrate the two options. The synchronous option implies a sequential processing of all loan requests (see picture). This solution has the advantage of being simpler to manage because we do not have to deal with any concurrency issues or threads. However, it is an inefficient solution because we do not take advantage of the fact that each bank possesses independent processing power and could be executing requests simultaneously. As a result, the consumer might have to wait a long time for an answer.\n\n*Synchronous, Sequential Processing of Loan Requests*\n\nThe asynchronous solution issues all requests right away so that each bank can start processing. As the banks finish the computation, they return the results to the loan broker. This solution allows for a much quicker response. For example, if all banks take a similar amount of time to produce a loan quote, this solution is almost *n* times faster where *n* is the number of banks we are dealing with. The loan broker now needs to be able to accept the loan quote messages in any order because there is no guarantee that responses arrive in the same order that requests were made. The following sequence diagram illustrates this option. The half arrowhead on the loan quote requests indicate asynchronous invocations.\n\n*Asynchronous, Parallel Processing of Loan Requests*\n\nAnother significant advantage of using asynchronous invocation over a message queue is the ability to create more than one instance of a service. For example, if it turns out that the credit bureau is a bottleneck, we could decide to run two instances of the credit bureau component. Because the loan broker sends the request message to a queue instead of directly to the credit bureau component it does not matter which component instance processes the message as long as the response is put back onto the response channel.\n\n## Addressing: Distribution vs. Auction\n\nUsing a [*Scatter-Gather*](BroadcastAggregate.html) to obtain the best quote allows us to choose from two addressing mechanisms, a [*Recipient List*](RecipientList.html) or a [*Publish-Subscribe Channel*](PublishSubscribeChannel.html). The decision primarily depends on how much control do we want to exert over the banks who are allowed to participate in a specific loan request? Again, we have a number of choices:\n\n- **Fixed** : The list of banks is hard-coded. Each loan request goes to the same set of banks.\n- **Distribution** : The broker maintains criteria on which banks are a good match for a specific request. For example, it would not send a quote request for a customer with a poor credit history to a bank that specializes in premier customers.\n- **Auction:** The broker broadcasts the request using a [*Publish-Subscribe Channel*](PublishSubscribeChannel.html) . Any bank that is interested is allowed to subscribe to the channel and 'bid' on the request. Banks can subscribe or unsubscribe at will. Each bank can still apply its own criteria on whether to submit a bid.\n\nWhich option is best for our scenario? As always, there is no simple \"and the answer is...\", but the choice is driven by both business and technical preferences and constraints. The first option is simple and gives the broker control over the list of banks. However, if new banks come and go frequently, the solution can result in an administrative burden. Also, the bank may not be happy to be receiving a bunch of irrelevant requests because each request incurs a certain internal cost for the bank. Also, to maintain the simplicity of this approach, the aggregation strategy is more likely to require banks to submit a response. Banks may want to reserve the right to withhold from the bid.\n\nA distribution approach (using a [*Recipient List*](RecipientList.html)) gives the broker more control over which bank to involve in each loan request. This allows the broker to be more efficient by reducing the number of requests. It also allows the broker to prefer certain banks based on the business relationship. On the downside, it requires additional business logic to be implemented and maintained inside the loan broker component. Both the distribution and the fixed approach require a separate [*Message Channel*](MessageChannel.html) for each participant in order to control the message flow.\n\nUsing a [*Publish-Subscribe Channel*](PublishSubscribeChannel.html) broadcasts a loan request to all subscribing banks and lets each bank determine which requests to service. Each bank can use a [*Message Filter*](Filter.html) or implement a [*Selective Consumer*](MessageSelector.html) to filter out undesirable loan requests. This approach renders the loan broker pretty much maintenance free in case of adding or removing banks but it requires more work on the side of the banks. This solution requires only a single [*Message Channel*](MessageChannel.html), but it has to be implemented as a [*Publish-Subscribe Channel*](PublishSubscribeChannel.html). Many efficient publish-subscribe schemes use IP Multicast that typically does not route across wide-area networks or the Internet. Other implementations emulate a [*Publish-Subscribe Channel*](PublishSubscribeChannel.html) by using an array of [*Point-to-Point Channel*](PointToPointChannel.html)s and a [*Recipient List*](RecipientList.html). This approach preserves the simple semantics of a [*Publish-Subscribe Channel*](PublishSubscribeChannel.html), but is less efficient in its use of channels and network bandwidth. For additional trade-offs between routing and pub-sub plus filtering, see the description of the [*Message Filter*](Filter.html).\n\n## Aggregating Strategies: Multiple Channels vs. Single Channel\n\nWhen receiving loan quotes from the bank we have similar design choices. We can have all banks submit their responses to a single response channel or we can have a separate response channel for each bank. Using a single channel reduces the maintenance burden of setting up a separate channel for each participating bank, but requires each bank reply message to include a field identifying the bank who issued the quote. If we use a single response channel, the [*Aggregator*](Aggregator.html) may not know how many response messages to expect unless the [*Recipient List*](RecipientList.html) passes this information to the [*Aggregator*](Aggregator.html) (we call this an Initialized Aggregator). If we use an auction-style [*Publish-Subscribe Channel*](PublishSubscribeChannel.html) the number of possible responses is unknown to the loan broker so that the [*Aggregator*](Aggregator.html) has to employ a completeness condition that does not depend on the total number of participants. For example, the [*Aggregator*](Aggregator.html) could simply wait until it has a minimum of three responses. But even that would be risky if temporarily only two banks participate. In that case, the [*Aggregator*](Aggregator.html) could time out and report that it received an insufficient number of responses.\n\n## Managing Concurrency\n\nA service such as a loan broker should be able to deal with multiple clients wanting to use the service concurrently. For example, if we expose the loan broker function as a Web service or connect it to a public Web site we do not really have any control over the number of clients and we may receive hundreds or thousands of concurrent requests. We can enable the loan broker to process multiple concurrent requests using two different strategies:\n\n- Execute multiple instances.\n- A single even-driven instance\n\nThe first option maintains multiple parallel instances of the loan broker component. We can either start a new instance for each incoming request or maintain a 'pool' of active loan broker processes and assign incoming requests to the next available process (using a [*Message Dispatcher*](MessageDispatcher.html)). If no process is available we would queue up the requests until a process becomes available. A process pool has the advantage that we can allocate system resources in a predictable way. For example, we can decide to execute a maximum of 20 loan broker instances. In contrast, if we started a new process for each request we could quickly choke the machine if a spike of concurrent requests arrives. Also, maintaining a pool of running processes allows us to 'reuse' an existing process for multiple requests, saving time for process instantiation and initialization.\n\nBecause much of the 'processing' required by the loan broker is to wait for replies from external parties (the credit bureau and the banks) running many parallel processes may not be a good use of system resources. Instead, we can run a single process instance that reacts to incoming message events as they arrive. Processing an individual message (e.g. a bank quote) is a relatively simple task so that a single process may be able to service many concurrent requests. This approach uses system resources more efficiently and simplifies management of the solution due to the fact that we only have to monitor a single process instance. The potential downside is the limited scalability because we are tied to one process. Many high-volume applications use a combination of the two techniques, executing multiple parallel processes each of which can handle multiple requests concurrently.\n\nExecuting multiple concurrent requests requires us to associate each message in the system to the correct process instance. For example, it may be most convenient for a bank to send all reply messages to a fixed channel. This means that the reply channel can contain messages related to different customers' concurrent quote requests. Therefore, we need to equip each message with a [*Correlation Identifier*](CorrelationIdentifier.html) to identify which customer request the bank is responding to.\n\n## Three Implementations\n\nIn order to implement the loan broker example, we have three main design decisions to make: we have to select a sequencing scheme for the requests , we have to select and addressing scheme for the banks and we have to define an aggregation strategy. In addition we have to select a programming language and a messaging infrastructure. In aggregate, these individual options result in a large number of potential implementation choices. We chose to implement three representative solutions to highlight the main trade-offs between the different implementation options. As with all examples in this book, the choice of specific technologies is somewhat arbitrary and does not indicate the superiority of a specific vendor's technology. The following table highlights the characteristics of each solution:\n\n| **Implementation** | **Sequencing** | **Addressing** | **Aggregation** | **Channel Type** | **Product / Technology** |\n| --- | --- | --- | --- | --- | --- |\n| A | Synchronous | Distribution | Channel | Web Service / SOAP | Java / Apache Axis |\n| B | Asynchronous | Distribution | Correlation ID | Message Queue | C# / Microsoft MSMQ |\n| C | Asynchronous | Auction | Correlation ID | Pub-Sub | TIBCO ActiveEnterprise |\n\nThe first implementation uses synchronous Web Services, implemented in Java and Apache Axis. The communication with each bank occurs over a separate HTTP channel which serves both as a request and reply channel. Therefore, the aggregation strategy is based on individual reply channels and does not require correlation. The second implementation uses an asynchronous approach with message queues. We implement it using Microsoft's MSMQ, but an implementation using JMS Queues or IBM WebSphere MQ could look very similar. The last implementation uses an Auction approach and leverages TIBCO's pub-sub infrastructure and the TIB/Integration Manager [*Process Manager*](ProcessManager.html) tool. In option B and C, all reply messages arrive on a single channel and the implementations use [*Correlation Identifier*](CorrelationIdentifier.html)s to associate reply messages to customer loan quote inquiries.\n\n## Integration Pattern Language\n\n[Message Construct.](MessageConstructionIntro.html)\n\n[Message](Message.html)\n\n[Command Message](CommandMessage.html)\n\n[Document Message](DocumentMessage.html)\n\n[Event Message](EventMessage.html)\n\n[Request-Reply](RequestReply.html)\n\n[Return Address](ReturnAddress.html)\n\n[Correlation Identifier](CorrelationIdentifier.html)\n\n[Message Sequence](MessageSequence.html)\n\n[Message Expiration](MessageExpiration.html)\n\n[Format Indicator](FormatIndicator.html)\n\n[Message Routing](MessageRoutingIntro.html)\n\n[Pipes-and-Filters](PipesAndFilters.html)\n\n[Message Router](MessageRouter.html)\n\n[Content-based Router](ContentBasedRouter.html)\n\n[Message Filter](Filter.html)\n\n[Dynamic Router](DynamicRouter.html)\n\n[Recipient List](RecipientList.html)\n\n[Splitter](Sequencer.html)\n\n[Aggregator](Aggregator.html)\n\n[Resequencer](Resequencer.html)\n\n[Composed Msg. Processor](DistributionAggregate.html)\n\n[Scatter-Gather](BroadcastAggregate.html)\n\n[Routing Slip](RoutingTable.html)\n\n[Process Manager](ProcessManager.html)\n\n[Message Broker](MessageBroker.html)\n\n[Message\nTransformation](MessageTransformationIntro.html)\n\n[Message Translator](MessageTranslator.html)\n\n[Envelope Wrapper](EnvelopeWrapper.html)\n\n[Content Enricher](DataEnricher.html)\n\n[Content Filter](ContentFilter.html)\n\n[Claim Check](StoreInLibrary.html)\n\n[Normalizer](Normalizer.html)\n\n[Canonical Data Model](CanonicalDataModel.html)\n\n[Messaging Endpoints](MessagingEndpointsIntro.html)\n\n[Message Endpoint](MessageEndpoint.html)\n\n[Messaging Gateway](MessagingGateway.html)\n\n[Messaging Mapper](MessagingMapper.html)\n\n[Transactional Client](TransactionalClient.html)\n\n[Polling Consumer](PollingConsumer.html)\n\n[Event-driven Consumer](EventDrivenConsumer.html)\n\n[Competing Consumers](CompetingConsumers.html)\n\n[Message Dispatcher](MessageDispatcher.html)\n\n[Selective Consumer](MessageSelector.html)\n\n[Durable Subscriber](DurableSubscription.html)\n\n[Idempotent Receiver](IdempotentReceiver.html)\n\n[Service Activator](MessagingAdapter.html)\n\n[Messaging Channels](MessagingChannelsIntro.html)\n\n[Message Channel](MessageChannel.html)\n\n[Point-to-Point Channel](PointToPointChannel.html)\n\n[Publish-Subscr. Channel](PublishSubscribeChannel.html)\n\n[Datatype Channel](DatatypeChannel.html)\n\n[Invalid Message Channel](InvalidMessageChannel.html)\n\n[Dead Letter Channel](DeadLetterChannel.html)\n\n[Guaranteed Delivery](GuaranteedMessaging.html)\n\n[Channel Adapter](ChannelAdapter.html)\n\n[Messaging Bridge](MessagingBridge.html)\n\n[Message Bus](MessageBus.html)\n\n[Systems Mgmt.](SystemManagementIntro.html)\n\n[Control Bus](ControlBus.html)\n\n[Detour](Detour.html)\n\n[Wire Tap](WireTap.html)\n\n[Message History](MessageHistory.html)\n\n[Message Store](MessageStore.html)\n\n[Smart Proxy](SmartProxy.html)\n\n[Test Message](TestMessage.html)\n\n[Channel Purger](ChannelPurger.html)", "znaku_textu": 19760, "slov": 2811, "odkazu": 87, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/patterns/messaging/ComposedMessagingExample.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 06:02:46", "sha256": "eecd3b006d25a888a7819e0a2a5e963d5331fb8c6ea9e3deae46c7fc8fcce4c4", "hloubka": 1, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "https://www.architectelevator.com/book", "https://www.cloudstrategybook.com/", "https://www.platformstrategybook.info/"]} {"url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/ComposedMessagingMSMQ.html", "titulek": "Asynchronous Implementation with MSMQ - Enterprise Integration Patterns", "h1": "", "popis": "This section describes how to implement the Loan Broker example (see Introduction to Composed Messaging Examples) using Microsoft .NET, C# and MSMQ. The Microsoft .NET framework includes the System.Messaging namespace that gives .NET programs access to the Microsoft Message Queuing Service that is included in the recent versions of the Windows operating system (Windows 2000, Windows XP, Windows Server 2003 etc). The example walks through many of the design decisions and shows the actual code that is required to make this solution work. I tried as much as possible to focus on the design aspects of the solution so that this example is of value even if you are not a hard-core C# developer. In fact, much of the application besides the actual interface into System.Messaging would look very similar if this implementation was done in Java and JMS.", "klicova_slova": "Asynchronous Implementation with MSMQ,integration, messaging, events, patterns, event-driven, coupling, eai, middleware, application integration, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns", "og:title": "Asynchronous Implementation with MSMQ - Enterprise Integration Patterns", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/ComposedMessagingMSMQ.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/eip1_patterns_wide.png"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Loan Broker Ecosystem"}, {"uroven": 2, "text": "Laying the Groundwork: A Messaging Gateway"}, {"uroven": 2, "text": "Base Classes for Common Functionality"}, {"uroven": 2, "text": "Designing the Bank"}, {"uroven": 2, "text": "Designing the Credit Bureau"}, {"uroven": 2, "text": "Designing the Loan Broker"}, {"uroven": 2, "text": "Refactoring the Loan Broker"}, {"uroven": 2, "text": "Putting it All Together"}, {"uroven": 2, "text": "Improving Performance"}, {"uroven": 2, "text": "A Few Words on Testing"}, {"uroven": 2, "text": "Limitations of This Example"}, {"uroven": 2, "text": "Summary"}, {"uroven": 2, "text": "Integration Pattern Language"}], "markdown": "| | Asynchronous Implementation with MSMQ[Messaging Patterns](index.html) » [Interlude: Composed Messaging](ComposedMessagingExample.html) | [Contents](toc.html)[⇐ Prev](ComposedMessagingWS.html)[Next ⇒](ComposedMessagingTIBCO.html) |\n| --- | --- | --- |\n\nThis section describes how to implement the Loan Broker example (see [*Introduction to Composed Messaging Examples*](ComposedMessagingExample.html)) using Microsoft .NET, C# and MSMQ. The Microsoft .NET framework includes the System.Messaging namespace that gives .NET programs access to the Microsoft Message Queuing Service that is included in the recent versions of the Windows operating system (Windows 2000, Windows XP, Windows Server 2003 etc). The example walks through many of the design decisions and shows the actual code that is required to make this solution work. I tried as much as possible to focus on the design aspects of the solution so that this example is of value even if you are not a hard-core C# developer. In fact, much of the application besides the actual interface into System.Messaging would look very similar if this implementation was done in Java and JMS.\n\nSome of the functions demonstrated in this solution could likely be implemented with less effort by using an integration and orchestration tool such as Microsoft BizTalk Server. I intentionally avoided using such tools for two reasons. First, these tools are not free and would require you to acquire a license just to run this simple example. Second, I wanted to demonstrate the explicit implementation of all necessary functions.\n\nI setup the solution as multiple executables so that the different components could be run distributed across multiple computers. For purpose of the example I use local, private message to keep the setup requirements simple and avoid having to install ActiveDirectory. As a result, the solution 'as is' needs to run on a single machine.\n\nThis implementation of the loan broker example uses asynchronous messaging over message queues. As described in the example overview, this allows us to process multiple quote requests concurrently, but also requires us to correlate messages as they flow though the system and ultimately produce a response message to the loan quote request. Many of our design decisions are driven by the need for asynchronous processing.\n\n## Loan Broker Ecosystem\n\nIt is a good idea to start understanding the loan broker design from the outside in. Let's start by examining all external interfaces that the loan broker has to support (see picture). Because message queues are unidirectional we need a pair of queues to establish a request-response communication with another component (see [*.NET Request/Reply Example*](RequestReplyNetExample.html) for a simple case). As a result, the loan broker receives requests for loan quotes on the loanRequestQueue and replies to the test client on the loanReplyQueue. The interaction with the credit bureau happens over a similar pair of queues. I did not want to create a pair of queues for each bank, so I decided to have all banks reply to the same bankReplyQueue. The [*Recipient List*](RecipientList.html) sends the request message to each individual bank queue while the [*Aggregator*](Aggregator.html) selects the best quote from the reply messages arriving on the loanReplyQueue. Together, the [*Recipient List*](RecipientList.html) and the [*Aggregator*](Aggregator.html) act as a distribution-style [*Scatter-Gather*](BroadcastAggregate.html). For simplicity's sake all banks in this example use the same message format so that a [*Normalizer*](Normalizer.html) is not required. But because the common bank message format is different from the format expected by the consumer, we still need to use one [*Message Translator*](MessageTranslator.html) to convert bank reply messages into loan broker reply messages. I decided to design the loan broker as a [*Process Manager*](ProcessManager.html). Rather than implementing the functions inside the loan broker as individual components separated by message queues, the loan broker is a single component that executes all functions internally. As a result, this approach eliminates the overhead that would be incurred by sending messages across queues between these functions, but requires the loan broker to maintain multiple, concurrent process instances.\n\n*Loan Broker with Message Queue Interfaces*\n\n## Laying the Groundwork: A Messaging Gateway\n\nI do not want this section to become an introduction into the System.Messaging namespace and MSMQ. Therefore, it makes sense to try to separate some of the MSMQ specific functions into separate classes so that the application code will not be littered with MSMQ-specific commands. Mike Rettig reminded me that the *Gateway* [[EAA](http://www.amazon.com/exec/obidos/ASIN/0321127420/enterpriseint-20)] is an excellent pattern to use for this. Mike created the JMS example for Martin's *P of EAA* book and has been instrumental in bringing the [*Messaging Gateway*](MessagingGateway.html) into this implementation. As Martin points out, the use of a *Gateway* has two key advantages. First, it abstracts the technical details of the communication from the application. Second, if we choose to separate the gateway interface from the gateway implementation we can replace the actual external service with a *Service Stub* [[EAA](http://www.amazon.com/exec/obidos/ASIN/0321127420/enterpriseint-20)] for testing.\n\n*Use of a Gateway helps keep MSMQ details out of the application and improves testability*\n\nIn our case we define two interfaces into the[*Messaging Gateway*](MessagingGateway.html): IMessageSender and IMessageReceiver. We kept these interfaces almost trivially simplistic. All the IMessageSender can do is send a message and all the IMessageReceiver can do is (surprise!) receive a message. Additionally, the receiver has a Begin method to tell it that it is OK to start receiving messages. Keeping the interfaces this simple makes it easy to define classes that implement the interface.\n\n**IMessageSender.cs**\n\n```\nnamespace MessageGateway\n{\n using System.Messaging;\n\t\n public interface IMessageSender\n {\n void Send(Message mess);\n }\n}\n \n```\n\n**IMessageReceiver.cs**\n\n```\nnamespace MessageGateway\n{\n using System.Messaging;\n\n public interface IMessageReceiver\n {\n OnMsgEvent OnMessage \n { \n get;\n set;\n }\n\t\t\n void Begin();\n\n MessageQueue GetQueue();\n }\n}\n \n```\n\nThe actual implementations reside in the MessageSenderGateway and MessageReceiverGateway classes. These classes take care of configuring the message queue properties such as MessageReadPropertyFilter or Formatter settings. MessageReceiverGateway uses a *Template Method* for the ReceiveCompleted event of the MSMQ message queue to take care of small, but important details such as calling the mq.BeginReceive method after processing the message. I am not going to dive into the details of these features right now but refer you to the on-line documentation on MSDN ([[MSMQ01](http://www.microsoft.com/msmq)]).\n\nBecause we defined very narrow interfaces, it is also possible to provide an implementation that does not even use a message queue. MockQueue implements both interfaces without even referencing a message queue! When an application sends a message, MockQueue immediately triggers the OnMessageevent with that same message. This makes testing the application in a single address space much simpler without having to worry about the asynchronous aspects (more on testing below).\n\nThe line \"OnMsgEvent OnMessage\" in IMessageReceiver may require a little bit of explanation for readers who are new to C#. The .NET Framework provides language features for the *Observer* pattern, called *delegates* and *events*. OnMsgEvent is a *delegate* defined in the MessageReceiverGateway:\n\n```\npublic delegate void OnMsgEvent(Message msg);\n```\n\nA delegate allows objects to register with a certain type of event. When the event is invoked, .NET calls all registered methods. A delegate can be invoked in a number of different ways but the simplest form is the direct invocation by using the name of the delegate:\n\n```\nOnMsgEvent receiver;\nMessage message;\n...\nreceiver(message);\n```\n\nIf this leaves you more interested in *delegates* have a look at a good .NET or C# book. If you want to know the dirty details on how the CLR implements them, have a look at [[Box](http://www.amazon.com/exec/obidos/ASIN/0201734117/enterpriseint-20)].\n\n## Base Classes for Common Functionality\n\nWhen we look at the high-level design, we quickly realize that some of the components in the loan broker scenario have common functions. For example, both a bank and a credit bureau act as a service by receiving a request, processing the request and publishing the result to another channel. Sounds easy enough. But since we live in the world of asynchronous messaging, we have to do a little extra work to implement a simple request-reply scheme. First, we want the caller of the service to specify a [*Return Address*](ReturnAddress.html) for the reply. This allows different callers to use the same service but use different reply queues. The service should also support a [*Correlation Identifier*](CorrelationIdentifier.html) so that the caller can reconcile incoming reply messages with request messages. Furthermore, if the service receives a message in an unrecognized format it would be good manners to route the message to an [*Invalid Message Channel*](InvalidMessageChannel.html) instead of simply discarding it.\n\nTo eliminate code duplication (the deadly sin of object-oriented programming), I created the base class MQService. This class incorporates the support for [*Return Address*](ReturnAddress.html) and [*Correlation Identifier*](CorrelationIdentifier.html). Really, the server-side support for a [*Correlation Identifier*](CorrelationIdentifier.html) consists of nothing more than copying the message ID of the incoming message to the correlation id of the reply message. In our example, I also copy the AppSpecific property because we will see later that sometimes we need to correlate by something else besides message ID. The MQService also makes sure to send the response to the specified [*Return Address*](ReturnAddress.html). Because the requestor supplies the [*Return Address*](ReturnAddress.html), the only initialization parameter for the MQService is the name of the request queue, i.e. the queue where new request messages come in. If the requestor forgets to supply a [*Return Address*](ReturnAddress.html), the RequestReplyService sends the reply to the [*Invalid Message Channel*](InvalidMessageChannel.html). One may also consider sending the request message to the [*Invalid Message Channel*](InvalidMessageChannel.html) because that's the one that is faulty. For now, we will keep our lives simple and not get into the details of error handling.\n\n**MQService.cs**\n\n```\npublic abstract class MQService\n{\n static protected readonly String InvalidMessageQueueName = \".\\\\private$\\\\invalidMessageQueue\";\n IMessageSender invalidQueue = new MessageSenderGateway(InvalidMessageQueueName);\n\n protected IMessageReceiver requestQueue;\n protected Type requestBodyType;\n\t\n public MQService(IMessageReceiver receiver)\n {\n requestQueue = receiver;\n Register(requestQueue);\n }\n\t\n public MQService(String requestQueueName)\n {\n MessageReceiverGateway q = new MessageReceiverGateway(requestQueueName, GetFormatter());\n Register(q);\n this.requestQueue = q;\n Console.WriteLine(\"Processing messages from \" + requestQueueName);\n }\n\t\t\t\n protected virtual IMessageFormatter GetFormatter()\n {\n return new XmlMessageFormatter(new Type[] { GetRequestBodyType() });\n }\n\n protected abstract Type GetRequestBodyType();\n\n protected Object GetTypedMessageBody(Message msg)\n {\n try \n {\n if (msg.Body.GetType(). Equals(GetRequestBodyType())) \n {\n return msg.Body;\n }\n else\n { \n Console.WriteLine(\"Illegal message format.\");\n return null;\n }\n }\n catch (Exception e) \n {\n Console.WriteLine(\"Illegal message format\" + e.Message); \n return null;\n }\n }\n\n public void Register(IMessageReceiver rec)\n {\n OnMsgEvent ev = new OnMsgEvent(OnMessage);\n rec.OnMessage += ev;\n }\n\t\n public void Run()\n {\n requestQueue.Begin();\n }\n\n \n public void SendReply(Object outObj, Message inMsg)\n {\n Message outMsg = new Message(outObj);\n outMsg.CorrelationId = inMsg.Id;\n outMsg.AppSpecific = inMsg.AppSpecific;\n\n if (inMsg.ResponseQueue != null) \n {\n IMessageSender replyQueue = new MessageSenderGateway(inMsg.ResponseQueue);\n replyQueue.Send(outMsg);\n }\n else\n {\n invalidQueue.Send(outMsg);\n }\n }\n\n protected abstract void OnMessage(Message inMsg);\n\n}\n```\n\nThe class is abstract because it does not provide an implementation for the GetTypedMessageBody and OnMessage methods. We want our classes to deal as much as possible with strongly typed business objects as opposed to Message data types. Therefore, we want would like the MQService to verify the type of the message body and cast it to the correct type. The problem is that this abstract base class does not know which type to cast it to because it can be used by many different service implementations each of which is likely to use a different message type. To perform as much work in the base class we created the GetTypedMessageBody and the abstract method GetRequestBodyType. Each subclass has to implement the method GetRequestBodyType to specify the type of the messages that it expects to receive. MQServer use the type to initialize the XML formatter and to perform type checking. After these checks the subclass can safely cast the incoming message body to the desired type without being afraid of exceptions. The exception handling inside GetTypedMessageBodyis admittedly primitive at this point -- all it does is print a message to the console. If this weren't a simple demo app, we would definitely use some more sophisticated approach to logging or better yet a comprehensive [*Control Bus*](ControlBus.html).\n\nThe OnMessage method is left to be implemented by the subclasses of MQService. We provide two implementations, a synchronous one and an asynchronous one. The synchronous implementation (RequestReplyService) calls the virtual method ProcessMessage which is expected to return a reply message right away. The synchronous implementation of OnMessage calls SendReply right away. The asynchronous implementation (AsyncRequestReplyService) in contrast, defines the virtual ProcessMessage method without any return parameter. The inheriting subclasses are responsible for calling SendReply.\n\n```\npublic class RequestReplyService : MQService\n{\n public RequestReplyService(IMessageReceiver receiver) : base(receiver) {}\t\t\n public RequestReplyService(String requestQueueName) : base (requestQueueName) {}\n\n protected override Type GetRequestBodyType()\n {\n return typeof(System.String);\n }\n\n protected virtual Object ProcessMessage(Object o)\n {\n String body = (String)o;\n Console.WriteLine(\"Received Message: \" + body);\n return body;\n }\n\n protected override void OnMessage(Message inMsg)\n {\n inMsg.Formatter = GetFormatter();\n Object inBody = GetTypedMessageBody(inMsg);\n if (inBody != null) \n {\n Object outBody = ProcessMessage(inBody);\n\n if (outBody != null) \n {\n SendReply(outBody, inMsg);\n }\n }\n }\t\n}\n\npublic class AsyncRequestReplyService : MQService\n{\n public AsyncRequestReplyService(IMessageReceiver receiver) : base(receiver) {}\t\t\n public AsyncRequestReplyService(String requestQueueName) : base (requestQueueName) {}\n\n protected override Type GetRequestBodyType()\n {\n return typeof(System.String);\n }\n\n protected virtual void ProcessMessage(Object o, Message msg)\n {\n String body = (String)o;\n Console.WriteLine(\"Received Message: \" + body);\n }\n \n protected override void OnMessage(Message inMsg)\n {\n inMsg.Formatter = GetFormatter();\n Object inBody = GetTypedMessageBody(inMsg);\n if (inBody != null) \n {\n ProcessMessage(inBody, inMsg);\n }\n\n }\t\n}\n \n```\n\nBoth classes provide a default implementation of the GetRequestBodyType and ProcessMessage methods. GetRequestBodyType specifies that the message expects a simple string and ProcessMessage prints that string to the console. Technically speaking we could have omitted the default implementations of these methods from RequestReplyService and AsyncRequestReplyService so that they remain abstract themselves. This would allow the compiler to detect any subclass of one of these classes that forgot to implement one of the abstract methods. On the other hand, it is nice to have a default implementation of a service available for testing and debugging purposes. So I decided to go ahead and let these classes be concrete so that they can be instantiated as is.\n\nIn summary, the class diagram for the base classes looks as follows (we will discuss the bank, credit bureau and loan broker classes shortly):\n\n*Base Classes for Message Services*\n\n## Designing the Bank\n\nNow that we have created a set of base classes and utility functions it is time to start implementing the application logic. An easy way to start creating the solution is to build the application components by reverse order of dependency. This means, we first create components that do not depend on anything else. This allows us to run and test these components independently. The bank is certainly one of those components. The loan broker depends on the banks, but the banks themselves are self-contained. Conveniently enough, a bank is a prime example of a request-reply-service. So implementing a bank should be as simple as inheriting from RequestReplyService and filling in some business logic.\n\nBefore we start working on the internals of the bank, though, we should define the external interface. We need to define the message types for loan quote requests and replies. For our simple implementation, we defined a common message format for all banks. That lets us use a common class for all five bank instances. C# supports structs, so we use those as message types:\n\n**Message Types for Bank**\n\n```\npublic struct BankQuoteRequest \n{\n public int SSN;\n public int CreditScore;\n public int HistoryLength;\n public int LoanAmount;\n public int LoanTerm;\n}\n\npublic struct BankQuoteReply\n{\n public double InterestRate;\n public String QuoteID;\n public int ErrorCode;\n}\n```\n\nBecause we want to use a single class for all bank instances we need to parameterize the banks for different behavior. Our banks are very simple institutions, so the only parameters are BankName, RatePremium, and MaxLoanTerm. The RatePremium determines the number of interest rate points that the bank charges above the *prime rate*, basically the bank's profit margin. The MaxLoanTerm specifies the longest loan term (in months) that the bank is willing to extend. If a loan request is for a longer duration than specified, the bank will thankfully decline. After plugging in the appropriate convenience constructors and accessors, we can build the ProcessMessage method of the bank:\n\n**Bank.cs**\n\n```\nprotected override Type GetRequestBodyType()\n{\n return typeof(BankQuoteRequest);\n}\n\nprotected BankQuoteReply ComputeBankReply(BankQuoteRequest requestStruct)\n{\n BankQuoteReply replyStruct = new BankQuoteReply();\n\n if (requestStruct.LoanTerm <= MaxLoanTerm) \n {\n replyStruct.InterestRate = PrimeRate + RatePremium \n + (double)(requestStruct.LoanTerm / 12)/10 \n + (double)random.Next(10) / 10;\n replyStruct.ErrorCode = 0;\n }\n else\n {\n replyStruct.InterestRate = 0.0;\n replyStruct.ErrorCode = 1;\n }\n replyStruct.QuoteID = String.Format(\"{0}-{1:00000}\", BankName, quoteCounter);\n quoteCounter++;\n return replyStruct;\n}\n\nprotected override Object ProcessMessage(Object o)\n{\n BankQuoteRequest requestStruct;\n BankQuoteReply replyStruct;\n\n requestStruct = (BankQuoteRequest)o;\n replyStruct = ComputeBankReply(requestStruct);\n\n Console.WriteLine(\"Received request for SSN {0} for {1:c} / {2} months\", \n requestStruct.SSN, requestStruct.LoanAmount, requestStruct.LoanTerm);\n Thread.Sleep(random.Next(10) * 100);\n Console.WriteLine(\" Quote: {0} {1} {2}\", \n replyStruct.ErrorCode, replyStruct.InterestRate, replyStruct.QuoteID); \n\n return replyStruct;\n}\n```\n\nWe can see that the concrete service has to implement only the GetRequestBodyType and ProcessMessage methods. The service can safely cast the object passed in by ProcessMessage because the base class has already verified the correct type. As we can see the remaining implementation has rather little to do with messaging -- all the details are taken care if in the base classes. The MQService and RequestReplyService classes act as a [*Service Activator*](MessagingAdapter.html), keeping the application from having to dig into messaging system details.\n\nThe method ComputeBankReply contains the complete business logic for a bank. If life were only so simple! Well, this is not an introduction into macro-economics but an example of messaging so I took some liberties here to simplify things. The logic is the same as in the previous implementation. The computed interest rate is the sum of the prime rate, the configured rate premium, the loan term and a sprinkle of randomness. If the requested loan term is longer than the bank is comfortable with, it returns an error code. Each quote that the bank issues receives a unique quote ID so the customer may refer back to it later. In the current implementation I use a simple incrementing counter to create these IDs.\n\nThe ProcessMessage method incorporates a small delay (between 1/10th and 1 second) to make the bank transaction a bit more realistic. The ProcessMessage also logs some activities to the console so we can see what is going on when we run it inside a simple console application.\n\nTo start a bank, we simply instantiate it with the appropriate parameters and call the Run method that it inherits from RequestReplyService. Since the processing happens through events, the Run method returns right away. Therefore, we need to be careful not to terminate the program right after it starts. For my simple tests, I simple inserted a Console.ReadLine() statement after the call to Run.\n\n## Designing the Credit Bureau\n\nThe credit bureau implementation is very analogous to the bank. The only difference is in the message types and the business logic. The credit bureau can handle the following message types:\n\n**Message Types for Credit Bureau**\n\n```\npublic class CreditBureauRequest \n{\n public int SSN;\n}\n\npublic class CreditBureauReply\n{\n public int SSN;\n public int CreditScore; \n public int HistoryLength;\n}\n```\n\nThe ProcessMessage method is nearly identical to the bank code, except it deals with different data structures and invokes different application logic. The credit bureau also has a built-in delay.\n\n**CreditBureau.cs**\n\n```\nprivate int getCreditScore(int ssn) \n{\n return (int)(random.Next(600) + 300);\n}\n\nprivate int getCreditHistoryLength(int ssn)\n{\n return (int)(random.Next(19) + 1);\n}\n```\n\n## Designing the Loan Broker\n\nNow that we have a functioning credit bureau and a bank class that lets us instantiate multiple incarnations of a bank, we are ready to work in the internal design of the loan broker. The routing and transformation patterns from this book help us segment the functions that the loan broker needs to provide. We can group the internal functions of the loan broker into three main portions (see picture): the request-reply interface that accepts requests from clients, the credit bureau interface, and the bank interface.\n\n*Internal structure of the Loan Broker*\n\nIn similar fashion to building the whole solution in reverse order of dependency, let's start building the pieces that only depend on what's already there. Because we just built a bank and a credit bureau service it makes sense to create the interface from the loan broker to these external components. The credit bureau interface definitely seems simpler, so let's start there.\n\n**Credit Bureau Gateway**\n\nThe loan broker needs to make requests to the credit bureau to obtain the customer's credit rating, which is required by the bank. This implies sending a message to the external loan broker component and receiving reply messages. Wrapping the details of sending a generic message inside a MessageGateway allowed us to hide many MSMQ details from the rest of the application. Following the same reasoning we should encapsulate sending and receiving messages to the credit bureau inside a *credit bureau gateway*. This credit bureau gateway performs the important function of *semantic enrichment*, allowing the loan broker to call methods such as GetCreditScore as opposed to SendMessage. This makes the loan broker code more readable and provides a strong encapsulation of the communication between the loan broker and the credit bureau. The following diagram illustrates the levels of abstraction achieved by \"chaining\" the two gateways.\n\n*The Loan Broker Provides an Additional Level of Abstraction From the Messaging Infrastructure*\n\nIn order to request a credit score, the gateway needs to create an instance of a CreditBureauRequest struct as specified by credit bureau. Likewise, the interface will receive the results inside a CreditBureauReply struct. In the beginning we stated that the solution is built from separate executables to that the credit bureau can run on a different computer than the loan broker. This means, though, that the loan broker may not have access to types defined in the credit bureau's assembly. And really we would not want the loan broker to make any references to the credit bureau internals because that would eliminate the benefits of loose coupling over message queues. The loan broker is supposed to be completely unaware of who services the credit score requests. The loan broker needs, however, access to the structs that define the message formats. Luckily, the Microsoft .NET Framework SKD contains a tool that lets us do just that, the XML Schema Definition Tool (xsd.exe). This tool can create XML schemas from an assembly and also create C# source code from XML schemas. The following picture describes the process:\n\n*Creating Class Stubs from Another Assembly*\n\nxsd.exe extracts public type definitions and creates an XML schema file based on the type definition and optional attributes that control serialization. In our case, xsd.exe created the following schema:\n\n```\n\n\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n```\n\nUsually a service would publish this schema definition to potential callers. This allows the caller the option to produce the required message format in a number of different ways. First, the caller could construct the xsd-compliant explicitly. Alternatively, the caller could use the .NET built-in serialization. Since the .NET CLR is programming language independent, the client would still have a choice of programming languages.\n\nWe decide to use .NET's built-in serialization. Therefore, we run xsd.exe again to create source files to be used by the service consumer, and get a file that looks like this:\n\n```\n// \n// This source code was auto-generated by xsd, Version=1.1.4322.573.\n// \nnamespace CreditBureau {\n using System.Xml.Serialization;\n \n \n /// \n [System.Xml.Serialization.XmlRootAttribute(Namespace=\"\", IsNullable=false)]\n public class CreditBureauRequest {\n \n /// \n public int SSN;\n }\n ...\n \n```\n\nIt is worth noting that the .NET XML serialization and deserialization allows loose coupling. So technically speaking, the request message that we send to the credit bureau does not have to be of the exact same type that is used inside the credit bureau implementation as long as the XML representation contains the required elements. For example, this would allow a requestor to send a message whose XML representation contains additional elements without disturbing the communication. For our example, we assume that the loan broker is willing to conform to the credit bureau's specified format and use the same types on both ends of the communication.\n\nWe are now ready to send messages in the correct format to the credit bureau. We need to keep in mind, though, that this communication is asynchronous with a separate, asynchronous request message and reply message. We could design the credit bureau gateway so that after sending a request the gateway code waits for the response to come back. This approach has one significant drawback: the application will just sit and wait while the credit bureau is processing a message. This type of pseudo-synchronous processing can quickly result in a performance bottleneck. If we make each step of the process pseudo-synchronous it means that the loan broker can only process one request process at a time. For example, it would not be able to request the credit score for a new request while it is still waiting for bank replies for the previous quote request. To visualize the difference let's consider that the loan broker has to perform two main steps: get the credit score and get the best quote from the banks. If we assume the loan broker runs only a single, sequential execution, the execution will look like the top half of the following picture:\n\n*Pipeline Processing Can Provide Significantly Higher Throughput*\n\nBecause the bulk of the actual work is executed by external components the loan broker component basically sits around and waits for results -- not an efficient use of computing resources. If we design the whole loan broker process as an [*Event-Driven Consumer*](EventDrivenConsumer.html), we can start processing multiple requests in parallel and process the results as they come in. We call this mode 'pipeline' processing. The scalability of the system now only depends on the processing capacity of the external components and not on the loan broker. If we run only a single instance of the credit bureau process, the difference may not be as pronounced because the bureau request queue will queue up the requests anyway. However, if we decide to run multiple credit bureau instances in parallel we will see immediate performance gains (more on performance below).\n\nThere are two primary ways to make the loan broker process event-driven. For once, we can create a sequential process but create a new thread for each incoming message. Alternatively, we can let the messaging system notify the loan broker whenever an event is pending. This way we let the messaging system control the threads of execution. Each approach has pros and cons. Coding a sequential process can make the code easier to understand, however if our component is primarily a broker component that brokers messages between external entities it would result in a potentially large number of threads that are waiting for incoming messages. These threads could consume a large number of system resources and accomplish little. Therefore, we may be better off to let the messaging system drive the execution. Whenever a message is ready to be consumed, the system will invoke the broker execution. This lets us maintain a single thread of execution and not worry about thread management. However, we need to deal with the fact that the execution path is not a single sequential method, but multiple code segments that are executed as messages arrive.\n\nYou might have guessed that the way to make things event-driven in .NET is the use of *delegates*. As expected, the credit bureau gateway defines a new delegate.\n\n```\npublic delegate void OnCreditReplyEvent(CreditBureauReply creditReply, Object ACT);\n```\n\nThis delegate allows other code segments to tell the credit bureau gateway which method to call when the result come in. The credit bureau gateway passes a properly typed CreditBureauReply struct back to the caller. It also passes something we call ACT -- an *Asynchronous Completion Token* [[POSA](http://www.amazon.com/exec/obidos/ASIN/0471958697/enterpriseint-20)]. This token allows the caller to pass in data to the gateway and receive the data back when the corresponding reply message comes in. Basically, the credit bureau gateway performs correlation for the request and reply messages so that the caller does not have to.\n\nWhat's left is a method to request a credit score and the method that handles an incoming message, correlating the proper ACT and invoking the properly typed delegate.\n\n**CreditBureauGateway.cs**\n\n```\ninternal struct CreditRequestProcess\n{\n public int CorrelationID;\n public Object ACT;\n public OnCreditReplyEvent callback;\n}\n\ninternal class CreditBureauGateway \n{\n protected IMessageSender creditRequestQueue;\n protected IMessageReceiver creditReplyQueue;\n\n protected IDictionary activeProcesses = (IDictionary)(new Hashtable());\n\n protected Random random = new Random();\n\n public void Listen()\n {\n creditReplyQueue.Begin();\n }\n\n public void GetCreditScore(CreditBureauRequest quoteRequest, OnCreditReplyEvent OnCreditResponse, Object ACT)\n {\n Message requestMessage = new Message(quoteRequest);\n requestMessage.ResponseQueue = creditReplyQueue.GetQueue();\n requestMessage.AppSpecific = random.Next();\n\n CreditRequestProcess processInstance = new CreditRequestProcess();\n processInstance.ACT = ACT;\n processInstance.callback = OnCreditResponse;\n processInstance.CorrelationID = requestMessage.AppSpecific;\n\n creditRequestQueue.Send(requestMessage);\n\n activeProcesses.Add(processInstance.CorrelationID, processInstance);\n }\n\n private void OnCreditResponse(Message msg)\n {\n msg.Formatter = GetFormatter();\n\n CreditBureauReply replyStruct;\n try \n {\n if (msg.Body is CreditBureauReply) \n {\n replyStruct = (CreditBureauReply)msg.Body;\n int CorrelationID = msg.AppSpecific;\n\n if (activeProcesses.Contains(CorrelationID))\n {\n CreditRequestProcess processInstance = (CreditRequestProcess)(activeProcesses[CorrelationID]);\n processInstance.callback(replyStruct, processInstance.ACT);\n activeProcesses.Remove(CorrelationID);\n }\n else { Console.WriteLine(\"Incoming credit response does not match any request\"); }\n }\n else\n { Console.WriteLine(\"Illegal reply.\"); }\n }\n catch (Exception e) \n {\n Console.WriteLine(\"Exception: {0}\", e.ToString()); \n }\n }\n}\n```\n\nWhen a caller requests a credit score via the GetCreditScoremethod, the credit bureau gateway allocates a new instance of the CreditRequestProcess structure. The collection activeProcesses contains one instance of CreditRequestProcess for each outstanding request, keyed by the [*Correlation Identifier*](CorrelationIdentifier.html) of the message. The structure also holds the delegate for the OnCreditReplyEvent event. Storing the delegate for each message allows each caller to specify a different callback location for each request. As we will see later this allows the caller to use delegates to manage conversation state.\n\nit is important to note that we do not use the message's built-in Id field to correlate. Instead, we assign a random integer number to the AppSpecific field and correlate incoming messages by the value of that field (remember that we designed the RequestReplyService to copy both the Id field and the AppSpecific field to the reply message). Why would we want to correlate by something else but the message ID? The advantage of the message ID is that it is unique for each message in the system. But that also limits our flexibility. Requiring a reply message to correlate to the message ID of the request message does not allow us to insert intermediate steps (for example, a router) into the message flow. Because any intermediate step would consume the request message and publish a new message to the service, the reply message's CorrelationId would match the message the service received but not the message that the Loan Broker originally sent (see picture).\n\n*Intermediaries Hinder Correlation with System-Generated Message IDs*\n\nThere are two solutions to this problem. First, any intermediate would be required to intercept both request and reply messages and make sure to equip reply messages with the correct CorrelationId value (for an example of this approach see the [*Smart Proxy*](SmartProxy.html). Alternatively, we can use a separate field for correlation purposes so that all related messages that flow through the intermediary and the service carry the same ID. In this example we chose the second approach to make it easier for an intermediary component to intercept request messages between the Loan Broker and the Credit Bureau (we will take advantage of this in [*Loan Broker System Management*](SystemManagementExample.html). How should we pick a value for the AppSpecific property? We could use sequential values, but then we have to be careful that two concurrent instances do not use use the same starting value. We could also use a central ID generation module (e.g. a Database) that guarantees system-wide uniqueness. This seemed a little too much trouble for this simple example, so we chose a random number. .NET generates random numbers as signed 32-bit integers so that the odds of a duplicate are 1 in 2 billion -- a risk we are willing to take.\n\nThe credit bureau gateway now provides the clean abstraction from the Windows message queuing infrastructure that we were aiming for. The only public interface into the credit bureau gateway (besides constructors) are a delegate and two methods:\n\n```\ndelegate void OnCreditReplyEvent(CreditBureauReply creditReply, Object ACT);\nvoid Listen() {...}\nvoid GetCreditScore(CreditBureauRequest quoteRequest, OnCreditReplyEvent OnCreditResponse, Object ACT) {...}\n```\n\nNeither construct makes any reference to a message or a message queue. This provides a number of benefits. First, we can easily implement a stubbed out version of the credit bureau gateway that does not rely on message queues at all (similar to the MockQueue). Second, we can replace the implementation of the credit bureau gateway if we decide to use a transport different from MSMQ. For example, if we were going to use a Web services interface using SOAP and http instead of MSMQ the methods exposed by the gateway would most likely not have to change at all.\n\n**Bank Gateway**\n\nThe design of the bank gateway follows the same design principles as the design of the credit bureau gateway. We use the same process as before to declare stubs for the request and reply message types specified by the bank. The external portion of the bank gateway is very similar to the credit bureau gateway:\n\n```\ndelegate void OnBestQuoteEvent(BankQuoteReply bestQuote, Object ACT);\nclass BankGateway {\n void Listen() {...}\n void GetBestQuote(BankQuoteRequest quoteRequest, OnBestQuoteEvent onBestQuoteEvent, Object ACT) {...}\n ...\n}\n```\n\nThe internal workings are slightly more complex because the [*Scatter-Gather*](BroadcastAggregate.html) style of interaction routes a single BankQuoteRequest to multiple banks. Likewise, a single BankQuoteReply is usually the result of multiple bank quote reply messages. The former part is handled by a [*Recipient List*](RecipientList.html) while the latter part is handled by an [*Aggregator*](Aggregator.html). Let's start with the [*Recipient List*](RecipientList.html).\n\nThe [*Recipient List*](RecipientList.html) has to implement three main functions:\n\n- Computation of appropriate recipients\n- Sending the message to the recipients\n- Initializing the [*Aggregator*](Aggregator.html) to process incoming replies.\n\nAs described in the design overview ([*Introduction to Composed Messaging Examples*](ComposedMessagingExample.html)), this implementation uses the *distribution* style of [*Scatter-Gather*](BroadcastAggregate.html), actively determining which banks to route the request to. This approach makes business sense if the banks charge the broker for each quote or the bank and the broker have an agreement that requires the broker to prequalify leads he or she generates . The loan broker makes the routing decision based on the customer's credit score, the amount of the loan and the length of the credit history. We encapsulate each connection to a bank inside a class that inherits from the abstract BankConnection. This class contains a reference to the properly addressed message queue and a method CanHandleLoanRequest that determines whether the quote request should be forwarded to this bank. The BankConnectionManager simply iterates through the list of all bank connections and compiles a list of those that match the criteria of the loan quote. If the list of banks was longer we could consider implementing a configurable rules engine. We prefer the current approach because it is simple and explicit.\n\n```\ninternal class BankConnectionManager\n{\n static protected BankConnection[] banks = {new Bank1(), new Bank2(), new Bank3(), new Bank4(), new Bank5() };\n\n public IMessageSender[] GetEligibleBankQueues(int CreditScore, int HistoryLength, int LoanAmount)\n {\n ArrayList lenders = new ArrayList();\n\n for (int index = 0; index < banks.Length; index++) \n {\n if (banks[index].CanHandleLoanRequest(CreditScore, HistoryLength, LoanAmount))\n lenders.Add(banks[index].Queue);\n }\n IMessageSender[] lenderArray = (IMessageSender [])Array.CreateInstance(typeof(IMessageSender), lenders.Count);\n lenders.CopyTo(lenderArray);\n return lenderArray;\n }\n}\n\ninternal abstract class BankConnection\n{\n protected MessageSenderGateway queue;\n protected String bankName = \"\";\n public MessageSenderGateway Queue\n {\n get { return queue; }\n }\n public String BankName \n {\n get { return bankName; }\n }\n\n public BankConnection (MessageSenderGateway queue) \n {\n this.queue = queue; \n }\n\n public abstract bool CanHandleLoanRequest(int CreditScore, int HistoryLength, int LoanAmount);\n}\n\ninternal class Bank1 : BankConnection\n{ \n protected String bankname = \"Exclusive Country Club Bankers\";\n \n public Bank1 (IMessageGatewayFactory gatewayFactory) : base (gatewayFactory.GetSenderInstance(\".\\\\private$\\\\bank1Queue\")) {}\n public override bool CanHandleLoanRequest(int CreditScore, int HistoryLength, int LoanAmount)\n {\n return LoanAmount >= 75000 && CreditScore >= 600 && HistoryLength >= 8;\n }\n}\n\n...\n```\n\nOnce the list of relevant banks is compiled, sending the message is a simple matter of iterating over the list. In a production application, this iteration should occur inside a single transaction to avoid error conditions where a message may be sent to some banks but not to others. Once again, we chose to let simplicity prevail for this example.\n\n```\ninternal class MessageRouter\n{\n public static void SendToRecipientList (Message msg, IMessageSender[] recipientList)\n { \n IEnumerator e = recipientList.GetEnumerator();\n while (e.MoveNext()) \n {\n ((IMessageSender)e.Current).Send(msg);\n }\n }\n}\n```\n\nNow that request message are on their way to the banks we need to initialize the [*Aggregator*](Aggregator.html) to expect incoming bank quotes. Due to the event driven nature of the loan broker the aggregator needs to be prepared to work on more than one aggregate concurrently -- maintaining one active aggregate for each quote request that is pending. This means that incoming messages need to be uniquely correlated to a specific aggregate. Unfortunately, we cannot use the message ID as correlation identifier because the [*Recipient List*](RecipientList.html) needs to send individual messages to each of the banks. As a result, if three banks participate in a quote request, the [*Recipient List*](RecipientList.html) needs to send 3 unique messages, one to each bank. Each of these messages will have a unique message ID. If the banks correlate by message ID the three responses will have different correlation IDs even though they belong to the same aggregate. We could have the aggregate store the message ID for each message and thus correlate the incoming message's correlation ID back to the aggregate. However, this would seem more complicated than we need it to be. Instead, we just generate our own correlation IDs -- one for each aggregate as opposed to one for each message. We store this (numeric) ID in the AppSpecific property of the outgoing request messages. The banks inherit from RequestReplyService which already transfers the incoming message's AppSpecific property to the reply messages. When a quote message comes in from a bank, the BankGateway can easily correlate the incoming message by the AppSpecific property of the message (see picture).\n\n*The BankGateway uses the AppSpecific Message Property to Correlate Response Messages to Aggregates*\n\nThe bank gateway initializes an aggregate with the aggregate ID (generated by a simple counter) and the number of expected messages. In addition, the caller needs to supply a delegate and can optionally specify an object reference to an ACT in the same way the credit bureau gateway functioned. The aggregation strategy is simple. The aggregate is considered complete when all selected banks responded with a reply message. The [*Recipient List*](RecipientList.html) initializes the aggregate with the number of expected messages. Remember that banks have the option of declining to provide a quote. So we can know when an aggregate is complete we require the banks to provide a reply message with the error code set if they do not want to provide a quote. We could easily modify the aggregation strategy, for example to cut off the bidding after 1 second and take the best response up to that point.\n\n```\ninternal class BankQuoteAggregate\n{\n protected int ID;\n protected int expectedMessages;\n protected Object ACT;\n protected OnBestQuoteEvent callback;\n\n protected double bestRate = 0.0;\n\n protected ArrayList receivedMessages = new ArrayList();\n protected BankQuoteReply bestReply = null;\n\n public BankQuoteAggregate(int ID, int expectedMessages, OnBestQuoteEvent callback, Object ACT)\n {\n this.ID = ID;\n this.expectedMessages = expectedMessages;\n this.callback = callback;\n this.ACT = ACT;\n }\n\n public void AddMessage(BankQuoteReply reply) \n {\n if (reply.ErrorCode == 0) \n {\n if (bestReply == null)\n {\n bestReply = reply;\n }\n else \n {\n if (reply.InterestRate < bestReply.InterestRate)\n {\n bestReply = reply;\n }\n }\n }\n receivedMessages.Add(reply);\n }\n\n public bool IsComplete()\n {\n return receivedMessages.Count == expectedMessages;\n }\n\n public BankQuoteReply getBestResult()\n {\n return bestReply;\n }\n\n public void NotifyBestResult()\n {\n if (callback != null)\n {\n callback(bestReply, ACT);\n }\n }\n}\n```\n\nArmed with the bank connection manager, the recipient list, and the aggregate the implementation of the BankGateway's functions becomes relatively simple:\n\n```\ninternal class BankGateway\n{\n protected IMessageReceiver bankReplyQueue;\n protected BankConnectionManager connectionManager;\n\n protected IDictionary aggregateBuffer = (IDictionary)(new Hashtable());\n protected int aggregationCorrelationID;\n\n public void Listen()\n {\n bankReplyQueue.Begin();\n }\n\n public void GetBestQuote(BankQuoteRequest quoteRequest, OnBestQuoteEvent onBestQuoteEvent, Object ACT)\n {\n\n Message requestMessage = new Message(quoteRequest);\n requestMessage.AppSpecific = aggregationCorrelationID;\n requestMessage.ResponseQueue = bankReplyQueue.GetQueue();\n IMessageSender[] eligibleBanks = \n connectionManager.GetEligibleBankQueues(quoteRequest.CreditScore, quoteRequest.HistoryLength, \n quoteRequest.LoanAmount);\n \n aggregateBuffer.Add(aggregationCorrelationID, \n new BankQuoteAggregate(aggregationCorrelationID, eligibleBanks.Length, onBestQuoteEvent, ACT));\n aggregationCorrelationID++;\n\n MessageRouter.SendToRecipientList(requestMessage, eligibleBanks);\n }\n\n private void OnBankMessage(Message msg)\n {\n msg.Formatter = GetFormatter();\n\n BankQuoteReply replyStruct;\n try \n {\n if (msg.Body is BankQuoteReply) \n {\n replyStruct = (BankQuoteReply)msg.Body;\n int aggregationCorrelationID = msg.AppSpecific;\n Console.WriteLine(\"Quote {0:0.00}% {1} {2}\", \n replyStruct.InterestRate, replyStruct.QuoteID, replyStruct.ErrorCode);\n if (aggregateBuffer.Contains(aggregationCorrelationID))\n {\n BankQuoteAggregate aggregate = \n (BankQuoteAggregate)(aggregateBuffer[aggregationCorrelationID]);\n aggregate.AddMessage(replyStruct);\n if (aggregate.IsComplete()) \n {\n aggregate.NotifyBestResult();\n aggregateBuffer.Remove(aggregationCorrelationID);\n }\n }\n else \n { Console.WriteLine(\"Incoming bank response does not match any aggregate\"); }\n }\n else\n { Console.WriteLine(\"Illegal request.\"); }\n }\n catch (Exception e) \n {\n Console.WriteLine(\"Exception: {0}\", e.ToString()); \n }\n }\n}\n```\n\nWhen the bank gateway receives a quote reply from a bank the OnBankMessage method executes. The method converts the incoming message to the correct type and goes on to locate the related aggregate via the AppSpecific property. It adds the new bid to the aggregate. Once the aggregate is complete (as defined in the BankQuoteAggregate class, the BankGateway invokes the delegate supplied by the caller.\n\n**Accepting Requests**\n\nNow that we have a well encapsulated credit bureau gateway and bank gateway we are ready to have the loan broker accept requests. In the earlier sections we discussed the design of the MQService and AsyncRequestReplyService base class. The LoanBroker class inherits from AsyncRequestReplyService because it cannot send the results back to the reply queue right away, but only after several asynchronous operations (obtaining the credit store and communicating with the banks) complete.\n\nThe first step in implementing the LoanBroker is to define the message types the loan broker handles:\n\n```\npublic struct LoanQuoteRequest \n{\n public int SSN;\n public double LoanAmount;\n public int LoanTerm;\n}\n\npublic struct LoanQuoteReply\n{\n public int SSN;\n public double LoanAmount; \n public double InterestRate;\n public string QuoteID;\n}\n```\n\nNext, we need to create a class that inherits from AsyncRequestReplyService and override the ProcessMessage method.\n\n**The \"Process\"**\n\nThe loan broker is different from the previous classes because the process that is triggered by an incoming message is not contained in any single method. Instead, the completion of the process depends on a sequence of external events. The loan broker can receive three types of events:\n\n- A new loan request message arrives\n- A credit score reply message arrives (via the CreditBureauGateway)\n- A bank quote message arrives (via the BankGateway)\n\nSince the logic for the loan broker is spread across multiple event handlers we need to keep the state of the broker across these functions. That's where the asynchronous completion tokens come in! Remember that the credit bureau gateway and the bank gateway allow the caller (the loan broker) to pass a reference to an object instance when sending a request. The gateway passes the object reference back when the reply message is received. To take advantage of this functionality, we declare an ACT in the loan broker as follows:\n\n```\ninternal class ACT \n{\n public LoanQuoteRequest loanRequest;\n public Message message;\n\n public ACT(LoanQuoteRequest loanRequest, Message message)\n {\n this.loanRequest = loanRequest;\n this.message = message;\n }\n}\n```\n\nThe ACT contains a copy of the original request message (which contains the message ID and the reply address required to create the reply message) and the request data structure (needed to copy the SSN and the loan amount into the reply message). Technically speaking, the ACT stores duplicate information because we could extract the content of the request structure from the request message. However, the convenience of accessing a strongly typed structure is worth the few extra bytes.\n\nThe remainder of the loan broker is implemented as follows:\n\n```\ninternal class LoanBroker : AsyncRequestReplyService\n{\n protected ICreditBureauGateway creditBureauInterface;\n protected BankGateway bankInterface;\n\n public LoanBroker(String requestQueueName,\n String creditRequestQueueName, String creditReplyQueueName, \n String bankReplyQueueName, BankConnectionManager connectionManager): base(requestQueueName)\n {\n\n creditBureauInterface = (ICreditBureauGateway)\n (new CreditBureauGatewayImp(creditRequestQueueName, creditReplyQueueName));\n creditBureauInterface.Listen();\n\n bankInterface = new BankGateway(bankReplyQueueName, connectionManager);\n bankInterface.Listen();\n }\n\n protected override Type GetRequestBodyType()\n {\n return typeof(LoanQuoteRequest);\n }\n\n protected override void ProcessMessage(Object o, Message msg)\n {\n LoanQuoteRequest quoteRequest;\n quoteRequest = (LoanQuoteRequest)o;\n \n CreditBureauRequest creditRequest = LoanBrokerTranslator.GetCreditBureaurequest(quoteRequest);\n\n ACT act = new ACT(quoteRequest, msg);\n\n creditBureauInterface.GetCreditScore(creditRequest, new OnCreditReplyEvent(OnCreditReply), act);\n }\n\t\n private void OnCreditReply(CreditBureauReply creditReply, Object act)\n {\n ACT myAct = (ACT)act;\n\n Console.WriteLine(\"Received Credit Score -- SSN {0} Score {1} Length {2}\", \n creditReply.SSN, creditReply.CreditScore, creditReply.HistoryLength);\n BankQuoteRequest bankRequest = \n LoanBrokerTranslator.GetBankQuoteRequest(myAct.loanRequest ,creditReply);\n bankInterface.GetBestQuote(bankRequest, new OnBestQuoteEvent(OnBestQuote), act);\n }\n \n private void OnBestQuote(BankQuoteReply bestQuote, Object act)\n {\n ACT myAct = (ACT)act;\n\n LoanQuoteReply quoteReply = LoanBrokerTranslator.GetLoanQuoteReply(myAct.loanRequest, bestQuote);\n Console.WriteLine(\"Best quote {0} {1}\", quoteReply.InterestRate, quoteReply.QuoteID);\n SendReply(quoteReply, myAct.message);\n }\n}\n```\n\nLoanBroker inherits from AsyncRequestReplyService which provides support for receiving requests and sending correlated replies. LoanBroker overrides the method ProcessMessage to deal with incoming request messages. ProcessMessage creates a new instance of the ACT and calls the credit bureau gateway to request a credit score. Interestingly, the method ends there. Processing continues when the credit bureau gateway invokes the delegate specified by LoanBroker: OnCreditReply. This method uses the ACT and the reply to create a bank quote request and calls the bank gateway to send the request messages. This time it specifies the method OnBestQuote as the callback delegate. Once the bank gateway received all bank quote replies it invokes this method via the delegate and passes back the instance of the ACT. OnBestQuote uses the bank quote and the ACT to create a reply to the customer and sends it off using the base class implementation of SendReply.\n\nOne class you probably noticed in the source code is the LoanBrokerTranslator. This class provides a handful of static methods that help convert between the different message formats.\n\nThe LoanBroker class demonstrates the trade-off we made in our design. The code is free of references to messaging or thread-related concepts (except for the inheritance from AsyncRequestReplyService), which makes the code very easy to read. However, the execution of the main function is spread across three methods that make no direct reference to each other besides the delegates. This can make the flow of execution hard to understand without considering the total solution including all external components.\n\n## Refactoring the Loan Broker\n\nWhen we look at the way the loan broker functions we realize that we are separating data and functionality. We have one instance of the LoanBrokerclass that emulates multiple instances by means of the ACT collection. While ACT's are very useful they seem to go against the spirit of object-oriented programming by separating data and functionality -- the two parts that make up an object. However, we can refactor the LoanBroker class to avoid the repeated lookup of the ACT if we use the delegates in a better way. Delegates are essentially type-safe function pointers. As such they point to a specific object instance. So rather than supplying the credit bureau and bank gateway with a reference to a method in the sole LoanBroker instance we can use the delegates to point to a specific instance of a 'process object' that maintains the current state like an ACT but also contains the logic of the loan broker process'. To do this we turn the ACT into new class called LoanBrokerProcess and move the message handler functions into this class:\n\n```\ninternal class LoanBrokerProcess \n{\n protected LoanBrokerPM broker;\n protected String processID;\n protected LoanQuoteRequest loanRequest;\n protected Message message;\n\n protected CreditBureauGateway creditBureauGateway;\n protected BankGateway bankInterface;\n\n public LoanBrokerProcess(LoanBrokerPM broker, String processID, \n CreditBureauGateway creditBureauGateway,\n BankGateway bankGateway,\n LoanQuoteRequest loanRequest, Message msg) \n {\n this.broker = broker;\n this.creditBureauGateway = creditBureauGateway;\n this.bankInterface = bankGateway;\n this.processID = processID;\n this.loanRequest = loanRequest;\n this.message = msg;\n\n CreditBureauRequest creditRequest = LoanBrokerTranslator.GetCreditBureaurequest(loanRequest);\n creditBureauGateway.GetCreditScore(creditRequest, new OnCreditReplyEvent(OnCreditReply), null);\n }\n\n private void OnCreditReply(CreditBureauReply creditReply, Object act)\n {\n Console.WriteLine(\"Received Credit Score -- SSN {0} Score {1} Length {2}\", creditReply.SSN, creditReply.CreditScore, creditReply.HistoryLength);\n BankQuoteRequest bankRequest = LoanBrokerTranslator.GetBankQuoteRequest(loanRequest, creditReply);\n bankInterface.GetBestQuote(bankRequest, new OnBestQuoteEvent(OnBestQuote), null);\n }\n \n private void OnBestQuote(BankQuoteReply bestQuote, Object act)\n {\n LoanQuoteReply quoteReply = LoanBrokerTranslator.GetLoanQuoteReply(loanRequest, bestQuote);\n Console.WriteLine(\"Best quote {0} {1}\", quoteReply.InterestRate, quoteReply.QuoteID);\n broker.SendReply(quoteReply, message);\n broker.OnProcessComplete(processID);\n }\n}\n```\n\nThe methods no longer reference the ACT parameter provided by the credit bureau gateway and the bank gateway because all necessary information is stored in the instance of the LoanBrokerProcess. Once the process completes, it sends the reply message using the SendReply method that the LoanBrokerPM inherits from the AsyncRequestReplyService. Next, it notifies the LoanBrokerPM of the completion of the process.\n\n```\ninternal class LoanBrokerPM : AsyncRequestReplyService\n{\n protected CreditBureauGateway creditBureauGateway;\n protected BankGateway bankInterface;\n protected IDictionary activeProcesses = (IDictionary)(new Hashtable());\n \n public LoanBrokerPM(String requestQueueName,\n String creditRequestQueueName, String creditReplyQueueName, \n String bankReplyQueueName, BankConnectionManager connectionManager): base(requestQueueName)\n {\n creditBureauGateway = new CreditBureauGateway(creditRequestQueueName, creditReplyQueueName);\n creditBureauGateway.Listen();\n\n bankInterface = new BankGateway(bankReplyQueueName, connectionManager);\n bankInterface.Listen();\n }\n\n protected override Type GetRequestBodyType()\n {\n return typeof(LoanQuoteRequest);\n }\n\n protected override void ProcessMessage(Object o, Message message)\n {\n LoanQuoteRequest quoteRequest;\n quoteRequest = (LoanQuoteRequest)o;\n\n String processID = message.Id;\n LoanBrokerProcess newProcess = \n new LoanBrokerProcess(this, processID, creditBureauGateway,\n bankInterface, quoteRequest, message);\n activeProcesses.Add(processID, newProcess);\n }\n\n public void OnProcessComplete(String processID)\n {\n activeProcesses.Remove(processID);\n }\n}\n```\n\nThis LoanBrokerPM is basically a generic implementation of a [*Process Manager*](ProcessManager.html). It creates a new process instance when a new message arrives. When a process completes, the process manager removes the process instance from the list of active processes. The process manager uses the message ID as the unique process ID assigned to each process instance. We can now change the behavior of the loan broker just by editing the LoanBrokerProcess class, which has no references to messaging besides passing the message object around. It looks like paying attention to proper encapsulation and refactoring paid off.\n\nThe following class diagram summarizes the internal structure of the loan broker:\n\n*Loan Broker Class Diagram*\n\n## Putting it All Together\n\nThe only remaining piece is the test client. The test client design is similar to that of the credit bureau gateway. The test client can make a specified number of repeated requests and correlate incoming responses to outstanding requests. Once we start all processes (banks, credit bureau and the loan broker), we can execute the example. We use a number of simple Main classes to start the respective components as console applications. We see a flurry of activity on the screen indicating the flow of messages through the system (see picture).\n\n*Running the MSMQ Example*\n\n## Improving Performance\n\nNow that we have the complete solution running we can gather some performance metrics to compare the throughput of the asynchronous solution to the synchronous solution. Using the test data generator we send 50 randomly generated requests to the loan broker. The test data generator reports that is took a total of 27 seconds to receive the 50 reply messages.\n\n*Sending 50 Quote Requests*\n\nIt would be tempting to think that each request took 27 / 50 = 0.5 seconds. Wrong! The *throughput* of the loan broker is 50 requests in 27 seconds, but some of the requests took 26 seconds to complete! Why is the system so slow? Let's look at a snapshot of the message queue during the test run:\n\n*39 Messages Are Queued up in the Credit Request Queue*\n\n39 messages are queued up in the credit bureau request queue! So apparently the credit bureau is our bottleneck because all quote requests have to go through the credit bureau first. Now we can reap some of the rewards of loose coupling and start two additional instances of the credit bureau. Now we have three parallel instances of the credit bureau service running. This should fix our bottleneck, right? Let's see:\n\n*Sending 50 Quote Requests, Using 3 credit Bureau Instances*\n\nThe total time to process all 50 messages is reduced to 21 seconds with the longest request waiting for a response for less than 15 seconds. On average, the client had to wait for a reply to the loan request for 8 seconds, half of the original version. It looks like we eliminated the bottleneck. The message throughput did not increase as dramatically as we might have hoped but we need to remember that for this simple example we are running all processes on a single CPU so that all processes compete for the same resources. Let's look at the new queue statistics to verify that the credit bureau bottleneck is in fact corrected :\n\n*Now Bank 5 Appears to be a Bottleneck*\n\nWell, it looks like we eliminated one bottleneck just to find a new one -- Bank 5. Why Bank 5? Bank 5 is the Pawn Shop that offers loans to everybody. So Bank 5 is part of almost every quote request. We could now go on to start multiple instances of Bank 5 but it's not realistic to expect the pawnshop to run multiple instances just to improve our throughput. Our other option is to change the routing logic for the bank requests. Since the Pawn Shop charges a substantial premium over the other banks the Pawn Shop quote tends to be the lowest quote only in those cases where no other bank provided a quote. Taking this observation into account we can improve the efficiency of the system by not routing requests to the Pawn Shop if the quote can also be serviced by another bank without affecting the overall behavior of the system.\n\nWe change the BankConnectionManager to include Bank 5 only for those quote requests that cannot be serviced by any other bank. The modified BankConnectionManager looks like this:\n\n```\ninternal class BankConnectionManager\n{\n IMessageGatewayFactory gatewayFactory;\n\n protected BankConnection[] banks;\n protected BankConnection catchAll;\n\n public BankConnectionManager(IMessageGatewayFactory gatewayFactory)\n {\n this.gatewayFactory = gatewayFactory;\n banks = new BankConnection[4];\n banks[0] = new Bank1(gatewayFactory);\n banks[1] = new Bank2(gatewayFactory);\n banks[2] = new Bank3(gatewayFactory);\n banks[3] = new Bank4(gatewayFactory);\n catchAll = new Bank5(gatewayFactory); \n }\n\n public IMessageSender[] GetEligibleBankQueues(int CreditScore, int HistoryLength, int LoanAmount)\n {\n ArrayList lenders = new ArrayList();\n\n for (int index = 0; index < banks.Length; index++) \n {\n if (banks[index].CanHandleLoanRequest(CreditScore, HistoryLength, LoanAmount))\n lenders.Add(banks[index].Queue);\n }\n if (lenders.Count == 0)\n lenders.Add(catchAll.Queue);\n IMessageSender[] lenderArray = (IMessageSender [])Array.CreateInstance(typeof(IMessageSender), lenders.Count);\n lenders.CopyTo(lenderArray);\n return lenderArray;\n }\n}\n```\n\nRunning with the modified code produces the following results:\n\n*Sending 50 Quote Requests, Using 3 credit Bureau Instances and a modified BankConnectionManager*\n\nThe test results now show that all 50 requests were serviced in 12 seconds, half of the original time. More importantly, the average time to service a loan quote request is now under 4 seconds, a 4-fold improvement over the initial version. This example demonstrates the advantage of predictive routing by using a [*Recipient List*](RecipientList.html). Because the loan broker has control over the routing we can decide how much 'intelligence' we can build into the routing logic without requiring any changes to the external parties. The trade-off is that the loan broker becomes more and more dependent on knowledge about the internal parties. For example, while the original BankConnectionManager treated all banks as equal, the modified version relies on the fact that Bank5 is a catch-all provider that should only be contacted if there are not other options. If Bank5 starts to offer better rates, the clients may no longer get the best possible deal.\n\nThe screen clip also demonstrates that response messages do not necessarily arrive in the order in which the requests were made. We can see that the test client received the response to request number 48 right after the response to request number 43. Because we are not missing any responses, this means that the test client received responses 44 through 47 before response 43. How did these requests 'pass' number 43? It looks like the request number 43 was routed to the General Retail Bank (Bank 3). After the Pawn Shop, this bank has the next least restrictive selection criteria and is more likely to be backed up with requests than the other banks. If requests number 44 through 47 did not match the General Retail Bank's criteria, the bank gateway would have received all responses for these requests while the quote request for request number 43 was still sitting in the bank3Queue. Because our loan broker is truly event driven it will reply to a loan request as soon as it receives all bank quotes. As a result, if the bank quotes for request number 44 arrive before the bank quotes for number 43 the loan broker will send the reply message for request number 44 first. This scenario also highlights the importance of the [*Correlation Identifier*](CorrelationIdentifier.html) in the messages so that the test client can match responses to requests even if they arrive out of order.\n\nTuning asynchronous, message-based systems can be a very complex task. Our example showed some of the most basic techniques of identifying and resolving bottlenecks. But even our simple example made it clear that correcting one problem (the credit bureau bottleneck) can cause another problem (the Bank 5 bottleneck) to surface. We can also clearly see the advantages of asynchronous messaging and event-driven consumers. We were able to process 50 quote requests in 12 seconds -- a synchronous solution would have taken 8 or 10 times as long!\n\n## A Few Words on Testing\n\nThe loan broker example demonstrates how a simple application can become reasonably complex once it becomes distributed, asynchronous and event-driven. We now have a dozen classes and use delegates throughout to deal with the event-driven nature of asynchronous message processing. The increased complexity also means increased risk of defects. The asynchronous nature means risk of defects that are hard to reproduce or trouble-shoot because they depend on specific temporal conditions. Because of these additional risks, messaging solutions require a very thorough approach to testing. While we could probably write a whole book on testing messaging solutions I do want to include some simple, actionable advice on testing in this example. Let me summarize the testing advice in the following there rules:\n\n- Isolate the application from the messaging implementation by using interfaces and implementation classes\n- Test the business logic with unit test cases before plugging it into the messaging environment\n- Provide a 'Mock' implementation of the messaging layer that allows you to test synchronously\n\n**Isolate the Application From the Messaging Implementation**\n\nTesting a single application is much easier than testing multiple, distributed applications connected by messaging channels. A single application allows us to trace through the complete execution path, we do not need a complex start-up procedure to fire up all components, and there is no need to purge channels between tests (see [*Channel Purger*](ChannelPurger.html). Sometimes it is useful to \"stub out\" some external functions while testing others. For example, while we are testing the bank gateway we might as well stub out the credit bureau gateway instead of actually sending messages to an external credit bureau process.\n\nHow can we achieve some of the benefits of testing inside a single application with a minimal impact on the application code? We can separate the implementation of a messaging gateway from the interface definition. That allows us to provide multiple implementations of the interface.\n\n*Separating Credit Bureau Interface from Implementation*\n\nBecause we encapsulated all messaging-specific logic inside the credit bureau gateway we can define a very simple interface:\n\n```\npublic interface ICreditBureauGateway\n{\n void GetCreditScore(CreditBureauRequest quoteRequest, OnCreditReplyEvent OnCreditResponse, Object ACT);\n void Listen();\n}\n```\n\nFor example, we can create a mock credit bureau gateway implementation that does not actually connect to any message queue but rather invokes the specified delegate right inside the GetCreditScore method. This mock implementation contains the same logic as the actual credit bureau so the remainder of the loan broker is completely unaware of this switcheroo.\n\n```\npublic class MockCreditBureauGatewayImp : ICreditBureauGateway\n{ \n\n private Random random = new Random();\n\n public MockCreditBureauGatewayImp() \n { }\n\n public void GetCreditScore(CreditBureauRequest quoteRequest, OnCreditReplyEvent OnCreditResponse, Object ACT)\n {\n CreditBureauReply reply = new CreditBureauReply();\n reply.CreditScore = (int)(random.Next(600) + 300);\n reply.HistoryLength = (int)(random.Next(19) + 1);\n reply.SSN = quoteRequest.SSN;\n OnCreditResponse(reply, ACT);\n }\n\n public void Listen()\n { }\n}\n```\n\n**Test the Business Logic with Unit Test Cases**\n\nThe implementation of the CreditBureau class demonstrated a clean separation of messaging-related functions (encapsulated in the base class) and the business logic (reduced to a randomizer in our simple example). In a real-life scenario the business logic would (hopefully) be somewhat more complex. In that case it pays off to move the getCreditScore and getCreditHistoryLength methods into a separate class together that does not have any dependency on the messaging layer (even though it is less visible, inheritance still carries dependencies from the subclass to the base class and related classes). We can the use a unit test tool such as nUnit (www.nunit.org) to write test cases without having to worry about messaging.\n\n**Provide a 'mock' Implementation of the Messaging Layer**\n\nThe mock implementation of the ICreditBureauGateway is simple and effective. But it also replaces all credit bureau gateway-related code so that the class CreditBureauGatewayImp has to be tested separately. If we want to eliminate the dependency (and the associated performance hit) on message queues but still execute the code inside the CreditBureauGatewayImp class we can use a mock implementation of the IMessageReceiver and IMessageSender interfaces. A simple mock implementation could look like this:\n\n```\npublic class MockQueue: IMessageSender, IMessageReceiver\n{\n\tprivate OnMsgEvent onMsg = new OnMsgEvent(DoNothing);\n\t\n\tpublic void Send(Message msg){\n\t\tonMsg(msg);\n\t}\n\t\n\tprivate static void DoNothing(Message msg){\n\t\t\n\t}\n\t\n\tpublic OnMsgEvent OnMessage \n\t{ \n\t\tget { return onMsg; } \n\t\tset { onMsg = value; }\n\t}\n\t\n\tpublic void Begin()\n\t{\n\t\t\n\t}\n\n public MessageQueue GetQueue()\n {\n return null;\n }\n\t\n}\n```\n\nWe can see that the Send triggers the onMsg delegate immediately without using any message queue. To use this mock queue for the credit bureau gateway we would have to make sure to reply with a message of the correct type. We would not be able to simply pass the request message back to the reply message. This implementation is not shown here but can be simple if, for example, we use a canned reply message.\n\n## Limitations of This Example\n\nThis section reminded us that even a simple messaging system (the loan broker really has to execute only two steps -- get the credit score and get the best bank quote) can get fairly complex due to the asynchronous nature and loose coupling between components. However, I still took a number of shortcuts to make the example fit inside the book. Specifically, the example does not address the following topics:\n\n- Error Handling\n- Transactions\n- Thread Safety\n\nThe example has no managed mechanism to handle errors. At this point, components simple spit out messages into the various console windows -- not a suitable solution for a production system. For a real implementation error messages should be routed to a central console so they can notify an operator in a unified way. The systems management patterns in the following chapter (e.g., the [*Control Bus*](ControlBus.html) address these requirements.\n\nThis example does not use transactional queues. For example, if the MessageRouter crashes after sending 2 out of 4 quote request messages to the banks, some banks will process a quite request while others will not. Likewise, if the loan broker crashes after it receives all bank quote replies but before it sends a reply to the client the client will never receive a reply. In a real-life system, actions like this need to be encapsulated inside transactions so that incoming messages are not consumed until the corresponding outbound message had been sent.\n\nThe loan broker implementation executes only in a single thread and does not worry about thread safety. For example, the BeginReceive method on an inbound message queue (hidden away in MessageReceiverGateway) is not called until the processing of the previous message has been completed. This is just fine for an example application (and a lot faster than the synchronous implementation) but for a high-throughput environment we would want to use a [*Message Dispatcher*](MessageDispatcher.html) that manages multiple performer threads.\n\n## Summary\n\nThis chapter walked us through the implementation of the loan broker application using asynchronous message queues and MSMQ. I intentionally did not shy away from showing implementation details in order to bring the real issues inherent in building asynchronous messaging applications to light. I tried to focus on the design trade-offs more so than the vendor-specific messaging API so that the example is also valuable for non-C# developers.\n\nThis example reminds us of the complexities of implementing even a simple messaging application. Many things that can be taken for granted in a monolithic application (e.g. invoking a method) can require a significant amount of coding effort when using asynchronous messaging. Luckily, the design patterns provide us with a language to describe some of the design trade-offs without having to descend too deeply into the vendor jargon.\n\n## Integration Pattern Language\n\n[Message Construct.](MessageConstructionIntro.html)\n\n[Message](Message.html)\n\n[Command Message](CommandMessage.html)\n\n[Document Message](DocumentMessage.html)\n\n[Event Message](EventMessage.html)\n\n[Request-Reply](RequestReply.html)\n\n[Return Address](ReturnAddress.html)\n\n[Correlation Identifier](CorrelationIdentifier.html)\n\n[Message Sequence](MessageSequence.html)\n\n[Message Expiration](MessageExpiration.html)\n\n[Format Indicator](FormatIndicator.html)\n\n[Message Routing](MessageRoutingIntro.html)\n\n[Pipes-and-Filters](PipesAndFilters.html)\n\n[Message Router](MessageRouter.html)\n\n[Content-based Router](ContentBasedRouter.html)\n\n[Message Filter](Filter.html)\n\n[Dynamic Router](DynamicRouter.html)\n\n[Recipient List](RecipientList.html)\n\n[Splitter](Sequencer.html)\n\n[Aggregator](Aggregator.html)\n\n[Resequencer](Resequencer.html)\n\n[Composed Msg. Processor](DistributionAggregate.html)\n\n[Scatter-Gather](BroadcastAggregate.html)\n\n[Routing Slip](RoutingTable.html)\n\n[Process Manager](ProcessManager.html)\n\n[Message Broker](MessageBroker.html)\n\n[Message\nTransformation](MessageTransformationIntro.html)\n\n[Message Translator](MessageTranslator.html)\n\n[Envelope Wrapper](EnvelopeWrapper.html)\n\n[Content Enricher](DataEnricher.html)\n\n[Content Filter](ContentFilter.html)\n\n[Claim Check](StoreInLibrary.html)\n\n[Normalizer](Normalizer.html)\n\n[Canonical Data Model](CanonicalDataModel.html)\n\n[Messaging Endpoints](MessagingEndpointsIntro.html)\n\n[Message Endpoint](MessageEndpoint.html)\n\n[Messaging Gateway](MessagingGateway.html)\n\n[Messaging Mapper](MessagingMapper.html)\n\n[Transactional Client](TransactionalClient.html)\n\n[Polling Consumer](PollingConsumer.html)\n\n[Event-driven Consumer](EventDrivenConsumer.html)\n\n[Competing Consumers](CompetingConsumers.html)\n\n[Message Dispatcher](MessageDispatcher.html)\n\n[Selective Consumer](MessageSelector.html)\n\n[Durable Subscriber](DurableSubscription.html)\n\n[Idempotent Receiver](IdempotentReceiver.html)\n\n[Service Activator](MessagingAdapter.html)\n\n[Messaging Channels](MessagingChannelsIntro.html)\n\n[Message Channel](MessageChannel.html)\n\n[Point-to-Point Channel](PointToPointChannel.html)\n\n[Publish-Subscr. Channel](PublishSubscribeChannel.html)\n\n[Datatype Channel](DatatypeChannel.html)\n\n[Invalid Message Channel](InvalidMessageChannel.html)\n\n[Dead Letter Channel](DeadLetterChannel.html)\n\n[Guaranteed Delivery](GuaranteedMessaging.html)\n\n[Channel Adapter](ChannelAdapter.html)\n\n[Messaging Bridge](MessagingBridge.html)\n\n[Message Bus](MessageBus.html)\n\n[Systems Mgmt.](SystemManagementIntro.html)\n\n[Control Bus](ControlBus.html)\n\n[Detour](Detour.html)\n\n[Wire Tap](WireTap.html)\n\n[Message History](MessageHistory.html)\n\n[Message Store](MessageStore.html)\n\n[Smart Proxy](SmartProxy.html)\n\n[Test Message](TestMessage.html)\n\n[Channel Purger](ChannelPurger.html)", "znaku_textu": 79006, "slov": 10891, "odkazu": 94, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/patterns/messaging/ComposedMessagingMSMQ.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 06:02:48", "sha256": "2ce2911b2f9a410825d8ac135a7c98cf603b5090e35aef6adccd740a8e2ee8a8", "hloubka": 1, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://www.amazon.com/exec/obidos/ASIN/0321127420/enterpriseint-20", "http://www.microsoft.com/msmq", "http://www.amazon.com/exec/obidos/ASIN/0201734117/enterpriseint-20", "http://www.amazon.com/exec/obidos/ASIN/0471958697/enterpriseint-20", "https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "https://www.architectelevator.com/book", "https://www.cloudstrategybook.com/", "https://www.platformstrategybook.info/"]} {"url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/ComposedMessagingTIBCO.html", "titulek": "Asynchronous Implementation with TIBCO ActiveEnterprise - Enterprise Integration Patterns", "h1": "", "popis": "The previous two implementations of the Loan Broker used integration frameworks that provided basic Message Channel functionality. For example, both Axis and MSMQ provided APIs to send messages to or receive messages from a Message Channel while the application had to take care of pretty much everything else. We chose this type of implementation intentionally to demonstrate how an integration solution can be built from the ground up, using commonly available Java or C# libraries.", "klicova_slova": "Asynchronous Implementation with TIBCO ActiveEnterprise,integration, messaging, events, patterns, event-driven, coupling, eai, middleware, application integration, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns", "og:title": "Asynchronous Implementation with TIBCO ActiveEnterprise - Enterprise Integration Patterns", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/ComposedMessagingTIBCO.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/eip1_patterns_wide.png"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Solution Architecture"}, {"uroven": 2, "text": "The Implementation Toolset"}, {"uroven": 2, "text": "The Interfaces"}, {"uroven": 2, "text": "Implementing the Synchronous Services"}, {"uroven": 2, "text": "The Loan Broker Process"}, {"uroven": 2, "text": "Managing Concurrent Auctions"}, {"uroven": 2, "text": "Execution"}, {"uroven": 2, "text": "Conclusion"}, {"uroven": 2, "text": "Integration Pattern Language"}], "markdown": "| | Asynchronous Implementation with TIBCO ActiveEnterprise[Messaging Patterns](index.html) » [Interlude: Composed Messaging](ComposedMessagingExample.html) | [Contents](toc.html)[⇐ Prev](ComposedMessagingMSMQ.html)[Next ⇒](MessagingEndpointsIntro.html) |\n| --- | --- | --- |\n\n*(By Michael J. Rettig)*\n\nThe previous two implementations of the Loan Broker used integration frameworks that provided basic [*Message Channel*](MessageChannel.html) functionality. For example, both Axis and MSMQ provided APIs to send messages to or receive messages from a [*Message Channel*](MessageChannel.html) while the application had to take care of pretty much everything else. We chose this type of implementation intentionally to demonstrate how an integration solution can be built from the ground up, using commonly available Java or C# libraries.\n\nMany commercial EAI product suites offer substantially more functionality to streamline the development of integration solutions. These product suites typically include visual development environments that allow for \"drag-drop\" configuration of [*Message Translator*](MessageTranslator.html)s and [*Process Manager*](ProcessManager.html)s. Many also provide sophisticated system management and metadata management functions. We chose the TIBCO ActiveEnterprise integration suite for this example implementation. As with the previous implementations, we focus primarily on design decisions and trade-offs and only introduce as much product-specific language as is necessary to understand the solution. Therefore, this section should be useful even if you have not worked with TIBCO ActiveEnterprise before. If you are interested in detailed product or vendor information please visit [www.tibco.com](http://www.tibco.com).\n\nThis example implementation also differs in the solution design by using an Auction-style [*Scatter-Gather*](BroadcastAggregate.html) approach. This approach uses a [*Publish-Subscribe Channel*](PublishSubscribeChannel.html) instead of a [*Recipient List*](RecipientList.html) so that the Loan Broker can send the quote request to any number of banks. This type of Scatter-Gather pattern performs a dynamic Request/Reply with an unknown number of listeners. Additionally, the implementation of the Loan Broker component uses the business process management functionality provided by TIBCO’s [*Process Manager*](ProcessManager.html) tool.\n\n## Solution Architecture\n\nOur application is a simple bank quote request system. Customers submit quote requests to a loan broker interface. The loan broker fulfills the request by first obtaining a credit score, then requesting quotes from a number of banks. Once the loan broker obtains quotes from the banks it selects the best quote and returns it to the customer (see picture).\n\nClients of the system expect a synchronous Request-Reply interface to the loan broker – the client sends a quote request and waits for a reply message from the loan broker. The loan broker in turn uses a Request-Reply interface to communicate with the credit bureau to obtain credit scores. Once the initial client request is received, the loan broker has the option to perform asynchronous operations behind the distributed, synchronous facade. This allows the loan broker to utilize an auction-style Scatter-Gather with a [*Publish-Subscribe Channel*](PublishSubscribeChannel.html) to acquire the bank quotes from multiple banks.\n\n*TIBCO Loan Broker Solution Architecture*\n\nThe auction sequence begins by publishing the request for quotes message to the bank.loan.request [*Publish-Subscribe Channel*](PublishSubscribeChannel.html)so that any interested party can listen for the message and provide their own rates. The number of banks submitting replies is unknown and can vary for each quote request. The auction works by opening the auction to the banks, then waiting a predefined amount of time for response messages on the channel bank.loan.reply. Each time a bid is received the timeout is reset, giving other banks time to submit another bid if possible. In this case, the bids of other banks are public, so another bank could actually listen for other bids and place a counter bid if desired.\n\nThe loan broker broadcasts the request for a quote to an unknown number of recipients. This is quite different from a Recipient List which involves sending the request to a predefined list of banks. This is reflected in the [*Aggregator*](Aggregator.html)’s Completeness Condition. Instead of waiting for a response from each bank like the previous implementations, the [*Aggregator*](Aggregator.html) relies solely on a time-out condition to terminate the auction. The [*Aggregator*](Aggregator.html) simply ignores any responses received after the auction times out. If no bank replies within the specified interval, the [*Aggregator*](Aggregator.html) will send response message to the client indicating that no quotes were obtained.\n\n*Activity Diagram Describing the Process Manager Behavior*\n\nIn this implementation, the [*Content Enricher*](DataEnricher.html) and [*Aggregator*](Aggregator.html) functions are implemented within the [*Process Manager*](ProcessManager.html) component. As a result, the solution architecture diagram does not describe the details of the interaction between the components because they are embedded in a single component. Instead, we need to have a look at the activity diagram that represents the Process Template definition used by the [*Process Manager*](ProcessManager.html). An initial activity diagram cleanly defines the role of the loan broker as well as providing the basis for the Process Template. From the diagram, we can see that the loan broker has several responsibilities. This translates well into a process diagram which shows graphically, the exact order of events, and decision paths.\n\n## The Implementation Toolset\n\nIn order to explain the design of our solution, we need to introduce some basic concepts about the TIBCO product suite. Implementing TIBCO solutions often requires evaluating different tools for a particular problem. At times, a problem can be solved with several different tools. The trick is picking the best one. We limit the discussion to only those TIBCO features that are required to construct the example implementation:\n\n- TIB/RendezVous Transport\n- TIB/IntegrationManager Process Manager tool\n- TIBCO Repository for Metadata Management\n\n**TIB/RendezVous Transport**\n\nAt the heart of TIBCO's messaging suite is the TIB/Rendezvous transport layer. Rendezvous provides the messaging mechanism for sending and receiving TIBCO messages on the \"information bus\". TIBCO supports a wide range of transports including (but not limited to) JMS, HTTP, FTP, and email. Rendezvous will provide the underlying transport for the messages in our example. The transport supports both synchronous and asynchronous messages, as well as [*Point-to-Point Channel*](PointToPointChannel.html)s and [*Publish-Subscribe Channel*](PublishSubscribeChannel.html)s. Each channel can be configured for different service levels:\n\n- Reliable Messaging (RV) - provides high performance, but at the realistic risk of losing messages.\n- Certified messages (RVCM) - at least once delivery\n- Transactional messaging (RVTX) - guaranteed once and only once delivery\n\nSimilar to the MSMQ examples in this book, TIBCO provides an open API for creating messaging solutions using Java or C++, and includes a range of tools for simplifying the development process.\n\n**TIB/IntegrationManager Process Manager tool**\n\nIntegrationManager is a TIBCO development tool consisting of a rich user interface for designing workflow solutions, and a Process Manager engine for executing them. The GUI provides an extensive array of configuration, workflow, and implementation options that are stored in the TIBCO Repository. TIBCO uses the repository as the central configuration artifact for the system. It holds all metadata, workflow and custom code.\n\nThe workflow component of the solution is an aspect that sets it apart from code level solution. For the loan broker example, IntegrationManager provides asynchronous and synchronous messaging, as well as basic workflow including *ServerSessionState* [[EAA](http://www.amazon.com/exec/obidos/ASIN/0321127420/enterpriseint-20)] For our purposes, we can break IntegrationManager into 3 parts: the channel, job creator, and the process diagram.\n\n*TIB/IntegrationManager Components*\n\nEvery process in Integration Manager creates a \"job\" (or Process Instance) which provides a central session object for maintaining state. This object includes a slotted environment with get and put operations for storing objects, as well as utility methods for interacting with the session. \nA simple GUI allows TIBCO developers to create Process Definitions (called Process Diagrams in TIBCO) that specify the sequence of tasks the job executes. Process Definitions resemble UML style activity diagrams, consisting of tasks, connected by transition lines (see diagram). However, the diagrams only provide the skeleton; behind each activity (i.e., box on the diagram) is a good amount of configuration and code. For our example, we require some code for processing the loans. Integration manager uses ECMAScript (commonly referred to as \"JavaScript\") as the underlying scripting language.\n\n*TIB/IntegrationManager Process Diagram Example*\n\nA typical process diagram includes a series of integration tasks. These include control tasks, such as forks, sync bars, or decision points, signal tasks to send and receive messages, and execution tasks such as data translation, routing, and system integration. The basic diagram pictured here includes two tasks: an ECMAScript task that executes some custom logic, and a signal out task that publishes a message to a channel. Task transitions can contain logic for selecting a particular route based upon message contents or other criteria.\n\n**TIBCO Repository for Metadata Management**\n\nIntegration and messaging nearly always requires some form of self-describing data (see [*Introduction to Message Transformation*](MessageTransformationIntro.html)). TIBCO defines metadata classes as Active Enterprise (AE) objects stored in the TIBCO repository. Every AE object sent across a message channel includes a [*Format Indicator*](FormatIndicator.html) to indicate the class definition that this message adheres to.\n\nManaging message metadata is an important part of the development process. TIBCO developers can define the metadata directly within the development environment, can extract it from external systems such as relational databases (using a Metadata Adapter as described in [*Channel Adapter*](ChannelAdapter.html)), or import XML Schemas. The metadata provides an explicit contract for objects and messages in the system. Once the classes are defined in the TIBCO repository, the objects are available for instantiation and manipulation within ECMA script:\n\n```\n//Instantiation of a TIBCO AE class\nvar bank = new aeclass.BankQuoteRequest();\nbank.CorrelationID = job.generateGUID();\nbank.SSN = job.request.SSN;\n```\n\nHowever, remember that this is a dynamic, scripted environment with limited compile-time type checking. Changing a metadata definition can easily break another part of your system. Without proper testing and development practices, message based systems can easily become \"add only\" systems, meaning metadata is only added to the system, and never changed for fear of breaking something.\n\n## The Interfaces\n\nThe Solution Architecture diagram shows us that the solution requires the following services.\n\n**Loan Broker**\n\n- Receives the initial request\n- Obtains a credit score\n- Holds loan auction with banks\n- Returns best loan offer to client\n\n**Credit Service**\n\n- Provides a credit score based upon SSN\n\n**Bank(s)**\n\n- Submit a quote based upon the credit rating and loan amount\n\nEach service is accessible through an external interface. For each such interface we have to make the following design decisions:\n\n- Conversation Style: Synchronous vs. Asynchronous\n- Quality of Service Level\n\nThe conversation styles for the interfaces have been predetermined by the solution architecture. The loan broker and credit service will both need synchronous interfaces, while the communication with the banks will be purely asynchronous.\n\nService levels for messaging solutions can become quite complicated especially given failover scenarios. Fortunately, the loan example service level resolves to a simple solution. In event of failure (timeout, dropped messages, down systems), the original request can be resubmitted (the loan broker as an [*Idempotent Receiver*](IdempotentReceiver.html)). Remember that we are only obtaining a quote at this point. It is not yet a legally binding agreement. Of course, this type of assumption needs to be documented in the system and understood by all parties involved. For example, the banks need to know that a quote may be resubmitted a second time. If the banks track customer loan requests for fraud detection purposes we may have to change the solution to avoid sending duplicate requests, for example by using [*Guaranteed Delivery*](GuaranteedMessaging.html).\n\n## Implementing the Synchronous Services\n\nThe loan broker system has 2 synchronous interfaces – between the customer and the loan broker and between the loan broker and the credit bureau. TIBCO implements RPC style messaging with operations using [*Request-Reply*](RequestReply.html) and [*Command Message*](CommandMessage.html). Essentially, this is a synchronous wrapper to the underlying TIBCO messaging engine. During the invocation of TIBCO operations, you can listen to the request and reply messages passing across the bus. The request message is published on the specified channel (for example customer.loan.request). The message includes a Return Address that specifies the address of a so-called INBOX channel for the reply. TIBCO hides the asynchronous details behind an RPC-style programming model. In Integration Manager, the domain operations such as obtain credit score, etc. are defined as part of the AE classes and can be invoked from the process modeling tool.\n\nFor example, to expose the loan broker as a synchronous interface we must perform several implementation steps. The implementation of the credit bureau service follows closely to these same steps.\n\n**Define the AE Class Definitions**\n\nAE classes define the data format for messages sent across TIB/RendezVous channels. Defining a class in Integration Manager is quite different from creating a class in your favorite IDE. AE classes are defined through a series of dialog boxes (see picture) from the TIB/IntegrationManager IDE. The dialog boxes allow you to select a name for your class, and then designate fields for the class. The fields can be typed as integers, floats, doubles, or composed of other AE classes.\n\n*Defining an AE Class with Attributes and Operations*\n\n**Define the AE Operation Definitions**\n\nSimilar to adding interface methods, operations can be added to an AE class. The parameters and the return types can be specified in the definition. True to an interface, no implementation is specified. The implementation is bound later when we use the job creator to bind a channel to a process instance.\n\n**Create a Process Diagram**\n\nA process diagram provides the implementation for the operation. The operations implemented in this example require a return parameter. Unlike method implemented in code, a process diagram doesn't have a \"return\" value. Instead, we specify the slot in the job where the return value will be placed. We designate this in the job creator, and we must remember to properly assign the value to the job slot in our process diagram. The actual implementation of the process diagram will be discussed in detail in a later section.\n\n**Create a Client/Server Channel to Receive the Requests**\n\nThe channel allows us to define our transport, message definition, service, and subject. For our synchronous operations we need a client/server channel. We can specify the AE classes that we created in step 1. From our initial interface definitions, we chose Rendezvous with reliable messaging. Configuring these options is just a matter of clicking and selecting the proper options.\n\n*Defining Channel Properties*\n\n**Configure a Job Creator to Instantiate the Process Diagram**\n\nThe job creator retrieves values from the channel and passes them to the process diagram by creating a job and initializing its environment slots. Once the job is created, the process diagram is instantiated. Execution will follow the path defined by the activity diagram. Once the process finishes, the job creator returns the reply back to the channel. We can see in the job creator dialog the name of our operation.\n\n*Configuring the Job Creator*\n\n## The Loan Broker Process\n\nWith our synchronous services in place, we can implement the loan broker to tie everything together. The included diagram represents the loan broker process. This process defines the behavior of the Loan Broker component. In our prior steps, we defined the AE operation, channel, and job creator to instantiate the process diagram when a client submits a message to the CreditRequest channel.\n\n**Design Considerations**\n\nFrom a design perspective, we need to be very careful as to what is included in the process diagram. Large, complex diagram quickly become unmanageable. It is critical to create an effective separation of concerns within the diagrams, avoiding an ugly mixture of business logic and process logic inside a single process definition. Defining what is process logic and what is business logic is hard. A good rule of thumb is to think of process logic as external system interaction. What system do I connect to next? What do I do if the system is not available? Business logic will typically involve more domain specific language. How do I activate an order? How do I calculate a credit score? How do I create a quote for a bank loan? Given the complex nature of business code, a full featured development language is often the best choice for implementation. Most process management tools, including Integration Manager, will allow you to integrate directly with Java or another language.\n\nFor those familiar with the MVC (Model, View, Controller) concept (see, for example, [[POSA](http://www.amazon.com/exec/obidos/ASIN/0471958697/enterpriseint-20)], the implementation can be viewed in a similar context. By simply renaming view to workflow, our implementation falls into a concise definition.\n\n1. Workflow - A visualized model of the workflow\n2. Controller - The process engine that receives events from the message bus, executing the proper component of the process workflow.\n3. Model - The Underlying business code (ECMAScript, JavaScript, Java, J2EE, etc)\n\n**The Process Model Implementation**\n\n*The Loan Broker Process Definition*\n\nOur diagram contains a mix of script execution boxes and custom tasks that perform integration actions. One of the big advantages of modeling processes using a visual process modeling tool is the fact that the running \"code\" looks very similar to the UML activity diagram that we used to design the solution.\n\nSince each task icon can contain actual code or important configuration parameters, we'll walk through each task and describe it in more detail.\n\nThe first box represents an ECMAScript to instantiate an AE object and assign values to the fields.\n\n```\nvar credit = new aeclass.CreditBureauRequest();\ncredit.SSN = job.request.SSN;\njob.creditRequest = credit;\n```\n\nThe credit request created is needed as a parameter in the next activity which invokes the synchronous operations call to the credit bureau. The credit bureau is implemented as a separate process diagram consisting of a single ECMA task that receives the message and returns a credit score. The synchronous operation implies that the Loan Broker process will wait until a reply message from the credit bureau arrives.\n\nOnce the loan broker receives a reply from the credit bureau, we can see in the diagram that another AE object needs to be created to publish a quote request to any participating banks. To implement this function, we'll use the Mapper task that allows us to graphically map data items from multiple sources. The Mapper is a visual implementation of the [*Message Translator*](MessageTranslator.html) pattern. The Mapper task demonstrates one of the advantages of managing metadata. Because IntegrationManager has access to the metadata defining the structure of each object, the mapper displays the structure of the source and target objects and allows us to visually map the fields with a few mouse clicks. A new object is instantiated with the values from the input object. We use the job object’s generateGUID method to generate a unique [*Correlation Identifier*](CorrelationIdentifier.html) and assign it to the Correlation ID field of the bankRequest object. As we will see later, the Correlation ID field is important to allow us to process more than one loan request at the same time.\n\n*The Visual Mapper Task Creates the Bank Request Message*\n\nInstead of using the visual Mapper we could have used an ECMAScript task to accomplish the same function. The equivalent code would look like the following. You can see how we create a new object of type BankQuoteRequest and assign each field from the source objects:\n\n```\nvar bank = new aeclass.BankQuoteRequest();\n//Create ID to uniquely identify this transaction.\n// We will need this later to filter replies\nbank.CorrelationID = job.generateGUID();\nbank.SSN = job.request.SSN;\nbank.CreditScore = job.creditReply.CreditScore;\nbank.HistoryLength = job.creditReply.HistoryLength;\nbank.LoanAmount = job.request.LoanAmount;\nbank.LoanTerm = job.request.LoanTerm;\n\njob.bankRequest = bank;\n```\n\nWhether to use the visual Mapper Task or an ECMAScript Task to implement a [*Message Translator*](MessageTranslator.html) function depends on the type and complexity of a mapping. The Mapper Task can give us a nice visual view of the connections between source and target object, but can become hard to read when the objects have many fields. On the other hand, the Mapper includes special functions that allow us to map repeating fields (i.e. Arrays) with a single line instead of having to code a loop.\n\nNext, a very simple ECMAScript task instantiates a bid array that will hold the incoming bank responses. This script contains only a single line:\n\n```\njob.bids = new Array();\n```\n\nThe next task is a Signal Out task that publishes the bankRequest object to the bank.loan.request channel. This is an asynchronous action, so the process immediately transitions to the next step without waiting for a reply.\n\nThe following tasks waits for incoming quote reply messages on the bank.loan.reply channel. If a message is received within the specified timeout interval, the script task adds the received message to the bids array:\n\n```\njob.bids[job.bids.length] = job.loanReply;\n```\n\nOnce the auction period ends, the Signal In task times out and transitions the process to the final task. This ECMAScript task implements the Aggregation Algorithm of the [*Aggregator*](Aggregator.html), selecting the best quote from all the bids. The code creates a new instance of the LoanQuoteReply, transfers the SSN and LoanAmount fields from the request object to this reply object, and loops through the bids array to find the best quote.\n\n```\nvar loanReply = new aeclass.LoanQuoteReply();\nloanReply.SSN = job.request.SSN;\nloanReply.LoanAmount = job.request.LoanAmount;\n\nvar bids = job.bids;\nfor(var i = 0; i < bids.length; i++){\n var item = bids[i];\n if(i == 0 || (item.InterestRate < loanReply.InterestRate)){\n loanReply.InterestRate = item.InterestRate;\n loanReply.QuoteID = item.QuoteID;\n }\n}\n\njob.loanReply = loanReply;\n```\n\nThe last line of the ECMA script places the loan reply object to be returned to customer into a job slot . We configured the loan broker job creator to return the loanReply attribute of the job to the customer as the reply message (see picture). When the process finishes, the job creator pulls the message found in the loanReply attribute of the job, and returns the value to the client.\n\n*Configuring the Job Creator’s Rule Set to Return the Best Quote*\n\n## Managing Concurrent Auctions\n\nThe implementation of the auction provided a few development hurdles. Concurrency adds a degree of complexity to the problem. For the auction to work, we need to publish an asynchronous message then wait a specified amount of time for replies. However, if multiple auctions occur at once, we must ensure that each loan broker only receives the replies they are concerned about, and not all the replies.\n\nThis functionality was implemented using a [*Correlation Identifier*](CorrelationIdentifier.html) and a [*Selective Consumer*](MessageSelector.html) to discard unrelated messages. Ideally, we would want this filtering to occur at the channel level and not at the process instance. However, that would require the dynamic creation of channel subjects at runtime, one for each pending auction. Presently, there are implementation constraints within Integration Manager that prevent us from using this approach. When a process diagram is instantiated at runtime, it needs to register all subjects it is listening to. This allows the process engine to listen for any messages on those subjects and queue them as needed. Queuing prevents timing bugs due to process diagrams that publish on one subject then transition to another state to listen for a reply. In an asynchronous world, if the transition takes too long, the reply could be received before the process diagram gets a chance to subscribe. Therefore, the process diagram conveniently queues inbound messages, but at the cost of disallowing dynamic subjects. Given the requirements of the present example, filtering at the process level works perfectly well. The [*Correlation Identifier*](CorrelationIdentifier.html) is a unique identifier assigned to each process that is then passed to each bank process and is included in each reply. A single line of ECMAScript provides the filtering in the SignalIn task:\n\n```\n(event.msg.CorrelationID == job.bankRequest.CorrelationID)\n```\n\n## Execution\n\nWith the example in place, we can now run the solution. Running the solution involves starting the Integration Manager engine. To test the solution, a simple test client is included in the repository that submits loan requests every 5 seconds. Simple stubs are used for the implementations of the credit service and the banks. One of the advantages of [*Publish-Subscribe Channel*](PublishSubscribeChannel.html)s is that we can easily listen to all messages on the message bus to inspect the message flow. We used a simple tool to log all messages to the console. For clarity, we truncated the message content to show only relevant fields and eliminated the format identification and tracking information included in each message. We can see from the logs, the times, subjects, and inboxes of messages. The inboxes are the return addresses for the synchronous services.\n\n```\ntibrvlisten: Listening to subject >\n\n2003-07-12 16:42:30 (2003-07-12 21:42:30.032000000Z):\nsubject=customer.loan.request,\nreply=_INBOX.C0A80164.1743F10809898B4B60.3,\nSSN=1234567890 LoanAmount=100000.000000 LoanTerm=360\n\n2003-07-12 16:42:30 (2003-07-12 21:42:30.052000000Z):\nsubject=credit.loan.request,\nreply=_INBOX.C0A80164.1743F10809898B4B60.4,\nSSN=1234567890\n\n2003-07-12 16:42:30 (2003-07-12 21:42:30.092000000Z):\nsubject=bank.loan.request,\nSSN=1234567890 CreditScore=345 HistoryLength=456 LoanAmount=100000.000000\nCorrelationID=\"pUQI3GEWK5Q3d-QiuLzzwGM-zzw\" LoanTerm=360\n\n2003-07-12 16:42:30 (2003-07-12 21:42:30.112000000Z):\nsubject=bank.loan.reply,\nInterestRate=5.017751 QuoteID=\"5E0x1K_dK5Q3i-QiuMzzwGM-zzw\" ErrorCode=0 CorrelationID=\"pUQI3GEWK5Q3d-QiuLzzwGM-zzw\"\n\n2003-07-12 16:42:30 (2003-07-12 21:42:30.112000000Z):\nsubject=bank.loan.reply,\nInterestRate=5.897514 QuoteID=\"S9iIAXqgK5Q3n-QiuNzzwGM-zzw\" ErrorCode=0 CorrelationID=\"pUQI3GEWK5Q3d-QiuLzzwGM-zzw\"\n```\n\nWe see the request message from the test client on the channel customer.loan.request. The message includes the social security number of the customer as well as the desired loan amount and term (100,000 Dollars for 360 months). The message specifies the test client's private reply channel _INBOX.C0A80164.8CC3F0E4FAA97E1EA8.123 as the [*Return Address*](ReturnAddress.html) so that the loan broker knows where to send the reply message.\n\nThe next message represents the request from the loan broker to the credit service, carrying the private inbox of the loan broker as the [*Return Address*](ReturnAddress.html). The credit service only requires the social security number. The reply message is not captured by our logging tool because _INBOX channels are private channels.\n\nAfter the loan broker receives the credit score, it publishes a message to the bank.loan.request channel. The two bank stubs in our example immediately reply with one interest rate each. Each bank also assigns a unique QuoteID to the reply so that the customer can refer back to it later. The auction period times out in a few seconds. Because we cannot see the reply message from the loan broker process to the test client we can look in the debug log for the process manager engine to verify that our test client received the lower interest rate. Within this message we can see the CorrelationID and the [*Format Indicator*](FormatIndicator.html) for the class.\n\n```\nreply= class/LoanQuoteReply {\n SSN=1234567890\n InterestRate=5.017751017038945\n LoanAmount=100000.0\n QuoteID=5E0x1K_dK5Q3i-QiuMzzwGM-zzw\n}\n```\n\n## Conclusion\n\nThe solution provides some interesting points for comparison. Visual Workflows can be easy to view and understand, but just as in code, this relative simplicity can turn into a maze of confusion as implementations become more complex. The dynamic nature of the Scatter-Gather allows for a clean decoupling of the pub/sub interface. The loan broker can publish bank loan requests without any knowledge of the subscribing banks. Similarly, the [*Aggregator*](Aggregator.html) for the replies doesn't need to know the number of expected replies. The potential downside of this flexibility is that it can hide errors resulting from incorrect subject naming, developer error, or dropped messages.\n\nThe visual, GUI driven implementation with TIBCO provides a corollary approach to the code level implementations. While the sheer power and flexibility of code cannot be argued against, a more graphical environment can greatly simplify very complex tasks. Configuration is a very large part of integration, and graphical environments work well for this. At times, it may seem that developers have to choose between writing code and using a vendor development tool. However, they can often coexist effectively. For instance, you could choose to use Integration Manager to model integration workflows, and use J2EE session beans to implement domain logic.\n\nFor the sake of brevity, our example was relatively simple, leading to an easy to understand scenario. Real world implementations are rarely this simple. Rapid development tools can facilitate faster initial development, but can limit your development options. Process management tools can help hide the complexities of messaging, allowing developers to focus on integration tasks without worrying about what happens behind the scenes. However, ignorance of messaging infrastructure has led to the death of more than one project.\n\n## Integration Pattern Language\n\n[Message Construct.](MessageConstructionIntro.html)\n\n[Message](Message.html)\n\n[Command Message](CommandMessage.html)\n\n[Document Message](DocumentMessage.html)\n\n[Event Message](EventMessage.html)\n\n[Request-Reply](RequestReply.html)\n\n[Return Address](ReturnAddress.html)\n\n[Correlation Identifier](CorrelationIdentifier.html)\n\n[Message Sequence](MessageSequence.html)\n\n[Message Expiration](MessageExpiration.html)\n\n[Format Indicator](FormatIndicator.html)\n\n[Message Routing](MessageRoutingIntro.html)\n\n[Pipes-and-Filters](PipesAndFilters.html)\n\n[Message Router](MessageRouter.html)\n\n[Content-based Router](ContentBasedRouter.html)\n\n[Message Filter](Filter.html)\n\n[Dynamic Router](DynamicRouter.html)\n\n[Recipient List](RecipientList.html)\n\n[Splitter](Sequencer.html)\n\n[Aggregator](Aggregator.html)\n\n[Resequencer](Resequencer.html)\n\n[Composed Msg. Processor](DistributionAggregate.html)\n\n[Scatter-Gather](BroadcastAggregate.html)\n\n[Routing Slip](RoutingTable.html)\n\n[Process Manager](ProcessManager.html)\n\n[Message Broker](MessageBroker.html)\n\n[Message\nTransformation](MessageTransformationIntro.html)\n\n[Message Translator](MessageTranslator.html)\n\n[Envelope Wrapper](EnvelopeWrapper.html)\n\n[Content Enricher](DataEnricher.html)\n\n[Content Filter](ContentFilter.html)\n\n[Claim Check](StoreInLibrary.html)\n\n[Normalizer](Normalizer.html)\n\n[Canonical Data Model](CanonicalDataModel.html)\n\n[Messaging Endpoints](MessagingEndpointsIntro.html)\n\n[Message Endpoint](MessageEndpoint.html)\n\n[Messaging Gateway](MessagingGateway.html)\n\n[Messaging Mapper](MessagingMapper.html)\n\n[Transactional Client](TransactionalClient.html)\n\n[Polling Consumer](PollingConsumer.html)\n\n[Event-driven Consumer](EventDrivenConsumer.html)\n\n[Competing Consumers](CompetingConsumers.html)\n\n[Message Dispatcher](MessageDispatcher.html)\n\n[Selective Consumer](MessageSelector.html)\n\n[Durable Subscriber](DurableSubscription.html)\n\n[Idempotent Receiver](IdempotentReceiver.html)\n\n[Service Activator](MessagingAdapter.html)\n\n[Messaging Channels](MessagingChannelsIntro.html)\n\n[Message Channel](MessageChannel.html)\n\n[Point-to-Point Channel](PointToPointChannel.html)\n\n[Publish-Subscr. Channel](PublishSubscribeChannel.html)\n\n[Datatype Channel](DatatypeChannel.html)\n\n[Invalid Message Channel](InvalidMessageChannel.html)\n\n[Dead Letter Channel](DeadLetterChannel.html)\n\n[Guaranteed Delivery](GuaranteedMessaging.html)\n\n[Channel Adapter](ChannelAdapter.html)\n\n[Messaging Bridge](MessagingBridge.html)\n\n[Message Bus](MessageBus.html)\n\n[Systems Mgmt.](SystemManagementIntro.html)\n\n[Control Bus](ControlBus.html)\n\n[Detour](Detour.html)\n\n[Wire Tap](WireTap.html)\n\n[Message History](MessageHistory.html)\n\n[Message Store](MessageStore.html)\n\n[Smart Proxy](SmartProxy.html)\n\n[Test Message](TestMessage.html)\n\n[Channel Purger](ChannelPurger.html)", "znaku_textu": 34194, "slov": 4792, "odkazu": 90, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/patterns/messaging/ComposedMessagingTIBCO.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 06:02:49", "sha256": "46bfd765509915cf7c0fe8ff862dec647fff33e37794e3bfd3291b94763df702", "hloubka": 1, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://www.tibco.com/", "http://www.amazon.com/exec/obidos/ASIN/0321127420/enterpriseint-20", "http://www.amazon.com/exec/obidos/ASIN/0471958697/enterpriseint-20", "https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "https://www.architectelevator.com/book", "https://www.cloudstrategybook.com/", "https://www.platformstrategybook.info/"]} {"url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/ComposedMessagingWS.html", "titulek": "Synchronous Implementation using Web Services - Enterprise Integration Patterns", "h1": "", "popis": "This section describes the implementation of the loan broker example using Java and XML Web Services. We use the open-source Apache AXIS toolkit to take care of the Web Services mechanics for us. We do not want this to be an exercise in Java development and chose this tool to abstract the complexity of designing and implementing a synchronous Web Service. The discussion in this section focuses on the design decisions that we make in designing a synchronous messaging solution.", "klicova_slova": "Synchronous Implementation using Web Services,integration, messaging, events, patterns, event-driven, coupling, eai, middleware, application integration, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns", "og:title": "Synchronous Implementation using Web Services - Enterprise Integration Patterns", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/ComposedMessagingWS.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/eip1_patterns_wide.png"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Solution Architecture"}, {"uroven": 2, "text": "Web Services Design Considerations"}, {"uroven": 2, "text": "Apache Axis"}, {"uroven": 2, "text": "Service Discovery"}, {"uroven": 2, "text": "The Loan Broker Application"}, {"uroven": 2, "text": "Components of the Loan Broker Application"}, {"uroven": 2, "text": "Client Application"}, {"uroven": 2, "text": "Running the Solution"}, {"uroven": 2, "text": "Performance Limitations"}, {"uroven": 2, "text": "Limitations of This Example"}, {"uroven": 2, "text": "Summary"}, {"uroven": 2, "text": "Integration Pattern Language"}], "markdown": "| | Synchronous Implementation using Web Services[Messaging Patterns](index.html) » [Interlude: Composed Messaging](ComposedMessagingExample.html) | [Contents](toc.html)[⇐ Prev](ComposedMessagingExample.html)[Next ⇒](ComposedMessagingMSMQ.html) |\n| --- | --- | --- |\n\n*(By Conrad F. D'Cruz)*\n\nThis section describes the implementation of the loan broker example using Java and XML Web Services. We use the open-source Apache AXIS toolkit to take care of the Web Services mechanics for us. We do not want this to be an exercise in Java development and chose this tool to abstract the complexity of designing and implementing a synchronous Web Service. The discussion in this section focuses on the design decisions that we make in designing a synchronous messaging solution.\n\n## Solution Architecture\n\n*Web Services Solution Architecture*\n\nThe figure above shows the overall architecture of the synchronous predictive web service example. There are seven significant interfaces between the loan broker and the rest of the solution. As indicated, SOAP over HTTP is used to communicate between each pair of participants.\n\nThe first interface is the entry point in to the loan broker that the client application uses to pass in the message containing the loan application information. The client receives the results of the query back from the loan broker via the same interface. Although the Axis server is not shown in this diagram it receives the Message from the client and implements the [*Service Activator*](MessagingAdapter.html).\n\nThe second interface is between the loan broker and the credit agency. The credit agency is an external bureau and provides a Web service interface for the loan broker to acquire additional customer data that is required by the banks. The loan broker enriches the incoming request with the data from the credit agency, implementing a [*Content Enricher*](DataEnricher.html).\n\nThe next five interfaces are between the loan broker and each of the five banks. These interfaces are used to obtain the rate quote for a loan from that particular bank. Each bank interface provides the same functionality (obtain a quote) but may specify a different format for the associated SOAP messages. Therefore, the loan broker has to translate the quote request message to the format required by each particular bank before querying the bank.\n\nThe loan broker contacts each bank directly using predictive routing i.e., the set of banks that participate in the quote gathering is known right before they are called for a quote. In this stage the loan broker application sends the request to the selected banks using the [*Recipient List*](RecipientList.html) pattern. Because each bank can use a different format for the request, the loan broker needs to use an array of [*Message Translator*](MessageTranslator.html)s to convert the request into the format required by each bank.\n\nLikewise, each reply message has to be converted to a common format using a [*Normalizer*](Normalizer.html), so that all replies can be aggregated into the single best quote. The request and response messages are passed synchronously, i.e., the client and loan broker is blocked until each Bank responds or times out. The loan broker aggregates all responses into the single best quote and sends the best quote reply back to the client.\n\nSynchronous messaging is useful in some problem domains where a simple solution is necessitated. By using synchronous messaging we do not have to worry about handling asynchronous events, thread safety or the infrastructure needed to support them. The client invokes the loan broker web service and then waits for the response from the server. Based on the general description of the overall example the first component of the server application is the loan broker whose endpoint is exposed as the web service. There are several components in this solution and each component makes a synchronous call to the next component and waits for the response.\n\n## Web Services Design Considerations\n\nXML Web services rely on the Simple Object Access Protocol (SOAP). The SOAP specification was submitted to the W3C and defines an XML based protocol for the purpose of exchanging messages between decentralized and distributed systems. For more details on SOAP please refer to the documents at the World Wide Web Consortium web site ([www.w3.org/TR/SOAP](http://www.w3.org/TR/SOAP)).\n\nUnfortunately, the \"S\" in \"SOAP\" is no longer valid. Actually, we have jokingly postulated that SOAP be renamed to Complex Remote Access Protocol -- you figure out the acronym... Seriously, designing a robust Web services interface requires us to dive into a a number of terminologies and associated design trade-offs. While this book is not an introduction into Web Services, we feel it is important to briefly discuss the following design considerations:\n\n- Transport protocol\n- Asynchronous messaging versus Synchronous messaging\n- Encoding style (SOAP Encoding vs. doc/literal)\n- Binding style (RPC vs. Document-style)\n- Reliability and Security\n\n**Transport Protocol**\n\nThe SOAP specification was created to allow applications to make synchronous RPC-style calls to a service across the network in a technology-neutral way. The SOAP specification actually defines a separate request and response message for each invocation to a Web Service (as defined in the WSDL document describing the service). Even though SOAP was developed with messaging in mind, the vast majority of the Web Service applications use HTTP as the transport protocol. HTTP is a natural choice because it is the most commonly used protocol on the Web and can sneak through firewalls. However, the HTTP protocol is the \"Hyper Text Transfer Protocol\" -- it was designed to allow users with Web browsers to retrieve documents over the Internet, not for applications to communicate with each other. The HTTP protocol is inherently unreliable and designed for synchronous document retrieval -- the client application uses the same connection for sending the request to the server and receiving the response. Therefore, Web Services that use the HTTP protocol will invariably use synchronous request/response messaging because asynchronous messaging over an unreliable channel is about as useful as dropping a bottle into the ocean.\n\n**Asynchronous vs. Synchronous**\n\nIn a synchronous implementation of a Web Service, the client connection remains open from the time the request is submitted to the server. The client will wait until the server sends back the response message. The advantage of using the synchronous RPC communication is that the client application knows the status of the Web Service operation in a very short time (either it receives a response or it times out). A serious limitation of using synchronous messaging is that the server may have to deal with a large number of concurrent connections because each concurrent client maintains an open to connection while waiting for the results. This causes the server application to become increasingly complex. If one of the invocations to a synchronous service provider fails, the server application has to provide the mechanism to trap the failure and recover and re-route the processing or flag an error before continuing with the other synchronous invocations.\n\nAt the present time, most Web Services toolkits only support synchronous messaging by default. However, using existing standards and tools such as asynchronous message queuing frameworks, some vendors have emulated asynchronous messaging for Web Services. Several organizations, companies and the Web Services working groups have recognized the need to have asynchronous messaging support and have been moving towards defining standards (e.g. WS-ReliableMessaging). For the latest on Web Services standards, please refer to the World Wide Web Consortium web site at [http://www.w3.org/](http://www.w3.org/) and see the chapter [*Emerging Standards and Futures in Enterprise Integration*](Future.html) at the end of this book.\n\n**Encoding Style**\n\nThe notion of SOAP encoding has led to a fair amount of debate and confusion. The SOAP Specification specifies a mode called \"encoding Style\" specified by the encodingStyle attribute. This mode can take on two values, \"encoded\" (by setting the attribute value to \"http://schemas.xmlsoap.org/soap/encoding/\") and \"literal\" (by specifying a different (or no) attribute value). This mode determines how application objects and parameters are represented in the XML \"on the wire\". \"Encoded\" (also referred to as SOAP Encoding) refers to Section-5 of the SOAP specification ([www.w3.org/TR/SOAP](http://www.w3.org/TR/SOAP)), which defines a primitive mechanism for mapping programming language types to XML. \"Literal\" (also called \"doc/literal\") means don't do that. Instead, the type information is provided by an external mechanism, more likely than not a WSDL (Web Services Description Language) document that uses XML schema to define exactly what types are used in the SOAP message.\n\nThe reason this came about is because the SOAP specification was written prior to the adoption of the XML schema specification (XSD). Thus, the original\nSOAP specification had to provide a way of encoding type information along with the parameters being sent for method calls because there was no\naccepted way of specifying it. Where this really comes into play is with complex data types such as Arrays. Section 5.4.2 of the SOAP specification defines a particular\nmechanism for representing programming language arrays in XML that uses a special SOAPEnc:Array schema type.\n\nHowever, since the adoption of XML Schema (see [http://www.w3.org/TR/xmlschema-0/](http://www.w3.org/TR/xmlschema-0/)), most languages have rendered the need for SOAP encoding obsolete by specifying their own mappings (or serialization rules) from XML schema to the programming language types. For instance, the JAX-RPC specification uniquely specifies how Java types are mapped to XML schema elements and vice-versa. This obviates the need for extra encoding information in the XML. So, as a result, SOAP Encoding is no longer favored, and has been superceded by literal encoding with the mapping being specified externally by an XML schema document, usually in\nthe form of a WSDL document.\n\n**Binding Style**\n\nThe WSDL Specification specifies two different \"binding styles\" in its SOAP binding. The values of the binding style attribute are \"RPC\" and \"Document\". What this means is that if a WSDL document specifies an operation has a binding style attribute set to \"RPC\" then the receiver must interpret that message using the rules found in Section 7 of the SOAP specification. This means, for instance, that the XML element inside the SOAP body (called a \"wrapper element\") must have a name identical to the name of the corresponding programming-language operation that is to be invoked, that each message part within that element must correspond exactly (in name and order) to a parameter of that programming-language operation, and that there must be only a single element returned (which must be named XXXResponse, where XXX\nis the name of the corresponding operation in the language) that contains inside it exactly one element, that is the return value of the operation.\n\nThe \"Document\" binding style is much looser. A message in the document binding style must simply be made up of well-formed XML. It is up to the SOAP engine that receives it how it will be interpreted. Now, having said that, it is fairly common (for instance among Microsoft tools) to use \"Document\" binding style and \"Literal\" encoding to represent RPC semantics. Even though a \"Document\" style is used, the message being sent represents a [*Command Message*](CommandMessage.html), with the operation to be invoked and the parameters to be passed encoded in the \"Document\".\n\n**Reliability and Security**\n\nIn the chapter [*Emerging Standards and Futures in Enterprise Integration*](Future.html), Sean Neville describes evolving standards that aim to address the issues of reliability and security for Web Services.\n\nOur solution uses the most basic and probably still most prevalent combination of these design choices. The loan broker implementation uses SOAP over HTTP with synchronous communication, encoding messages with the default SOAP encoding style and RPC binding. This makes the Web service behave very much like a [*Remote Procedure Invocation*](EncapsulatedSynchronousIntegration.html). We went this route so that we do not get stuck debating Web services internals (well, not any more than we already did) but can focus on contrasting the synchronous Web services implementation with the other implementations.\n\n## Apache Axis\n\nThis section provides a brief description of the Axis architecture to help elucidate the significant points in our design. For additional details on Axis please refer to the Apache Axis web site at [xml.apache.org/axis](http://xml.apache.org/axis).\n\nThe chapter Root Patterns defines a [*Message Endpoint*](MessageEndpoint.html) as the mechanism an application uses to connect to a messaging channel in order to send and receive messages. In our loan broker application, the Axis framework itself represents the message channel and its main function is to handle the processing of messages on behalf of the user application.\n\nThe Axis server implements the [*Service Activator*](MessagingAdapter.html) pattern. In the chapter on Messaging Endpoints, we described how a [*Service Activator*](MessagingAdapter.html) connects a [*Message Channel*](MessageChannel.html) to a synchronous service in an application so that when a message is received, the service is invoked.\n\nThe Message Adapter is implemented within the Axis server so that the developer does not need to implement this functionality. Therefore the application code contains only business logic for the application and the Axis server takes care of all message-handling services.\n\nThe client-programming model of Axis provides the components for the client application to invoke an endpoint URL and then receive the response message from the server. The loan broker client in this application is a synchronous client that uses this client-programming model of Axis. Within the server there is a listener for each transport protocol supported by the server. When the client sends a message to the endpoint, a transport listener within the Axis framework creates a message context object and passes it through a request chain in a framework. The Message Context contains the actual Message received from the client along with associated properties added by the transport client.\n\nThe Axis framework is made up of a series of Handlers, which are invoked in a particular order depending on the deployment configuration and whether the client or server is invoking the framework. Handlers are part of the Message Flow subsystem and are grouped together and called Chains. Request messages are processed by a sequence of request Handlers in a Chain. Any response messages are sent back on the corresponding response Chain through a sequence of response Handlers.\n\nThe figure above shows a high level representation of the internals of the Axis framework. A detailed discussion on the architecture of Axis can be found at http://xml.apache.org/axis.\n\nAxis consists of several subsystems that work together to provide the functionality of a Message Channel. This framework is available for use by both the client and server application.\n\nThe relevant Axis subsystems for our example are as follows:\n\n- Message Model subsystem defines the XML syntax of the SOAP messages.\n- Message Flow subsystem defines Handlers and Chains to pass the messages\n- Service subsystem defines the service handler (SOAP, XML-RPC)\n- Transport subsystem provides alternatives for the transport of messages (for e.g., HTTP, JMS, SMTP)\n- Provider subsystem defines the providers for different types of classes (for e.g., java:RPC, EJB, MDB)\n\nAs mentioned earlier, the developer only needs to focus on creating an application that implements the business logic, which can then be deployed in the Axis server. There are three techniques for deploying a java class as a Web service and being made available as an endpoint service and we have named them as follows.\n\n- Automatic Deployment\n- Using a Web Services Deployment Descriptor\n- Generate proxies from an existing WSDL document\n\nThe first and simplest way is to write the class containing the business logic as a Java Web Service file (this is a Java source file with a *.jws extension). The methods of this class contain the business logic. The JWS file does not need to be compiled and can be instantly deployed by copying the source file into the webapps directory on the server. Each public method is now accessible as a Web service. The name of this JWS file forms part of the endpoint that the Axis server exposes as a Web service as shown below:\n\n```\nhttp://hostname:portnumber/axis/LoanBroker.jws\n```\n\nAxis 1.1 automatically generates the WSDL (Web Services Description Language - see [http://www.w3.org/TR/wsdl](http://www.w3.org/TR/wsdl).) document from services deployed within the server. WSDL is an XML format that describes the public interface of a Web service (i.e. the methods available through the interface) as well as the location of the service (i.e. the URL). The automatic generation of WSDL allows other applications to inspect the remote interface provided by the Web service class. It can also be used to automatically generate client stub classes that encapsulate the Web services call inside a regular Java class. The disadvantage of this method is the developer cannot control the deployment parameters.\n\nThe second technique deploys a compiled class using a WSDD (Web Services Deployment Descriptor), which allows the developer to control the deployment parameters, e.g. the class scope. By default, a class gets deployed in the request scope i.e., a new instance of the class is instantiated for each request that is received. Once the processing is finished the instance is destroyed. If the class has to persist for the entire session to service multiple requests from the same client over a period of time, we need to define the class in the session scope. For some applications, we need all clients to access a singleton class, i.e., the class has to be instantiated and made available for the entire duration the application is active, in which case the web service is defined in the application scope.\n\nThe last technique is more complicated than the previous two techniques but allows the generation of proxies and skeletons from an existing WSDL document (using the wsdl2java tool). The proxies and skeletons encapsulate all SOAP-related code so that the developer does not have to write any SOAP (or Axis)-related code, but can instead insert the business logic right into in the method bodies of the generated skeleton.\n\nWe choose to implement all our Web services using the Automatic Deployment technique using JWS files, in order to keep the design and deployment requirements as simple as possible. On the client side it is a lot easier to hand code the call to the Web Service. We could have used wsdl2java to generate the stubs, which would then be called by the client code, however we tried to minimize the amount of code generation because it can make it difficult to walk through an example solution.\n\n## Service Discovery\n\nBefore we proceed with a discussion of the loan broker application, we need to describe a few general steps that we follow when implementing the solution to help in creating an application that is easy to deploy. In order to invoke a Web service that is deployed on a server, any client application needs to know the endpoint URL. In the Web services model, an application would look up the location of a web service they need to access from a common service registry.\n\nUDDI (Universal Description, Discovery and Integration) is a standard for such a repository. A discussion of UDDI is beyond the scope of this section and you can get additional information at [www.uddi.org](http://www.uddi.org/). In our example we hard code the endpoint URLs in the application itself. However, to make it easy to deploy the example code, we create properties files for both the server and client applications. The properties file has name value pairs for the hostname and port number parameters, which match the parameters of your Axis server installation. This gives you some flexibility in deploying the loan broker application in your environment. We provide a utility method readProps() in some of the Java classes. This method is for reading files that contain the deployment parameters of the Axis server. The readProps() method is not used by any of the functional aspects of the loan broker application.\n\nIn any distributed computing framework whether it is Java RMI, CORBA or SOAP Web services, we need to define parameters of the method calls on remote objects as primitive data types or objects that can be serialized to and from the network. These parameters are the properties of the message objects that are sent from the client to the server. To keep the loan broker solution simple we use a java String object to return the response from the loan broker to the client. If the calling parameters are primitive data types (e.g. int, double, etc.) they have to be wrapped in the predefined object wrappers called the type wrappers (for e.g., Integer, Double, etc.).\n\n## The Loan Broker Application\n\nThe figure below shows the class diagram for the loan broker component. The core business logic for the loan broker is encapsulated inside the LoanBrokerWS class. This class inherits from a class provided by the Axis framework that implements a [*Service Activator*](MessagingAdapter.html) to invoke a method in the LoanBrokerWS class when a SOAP request arrives. The LoanBrokerWS references a set of gateway classes that implement details of interfacing with external entities, such as the credit agency and the banks. This logic is encapsulated inside the classes CreditAgencyGateway, LenderGateway, BankQuoteGateway.\n\n*Loan Broker Class Diagram*\n\nThe only service interface from the loan broker to the outside world is the message endpoint for the client to access the loan broker service. There is no need to define a [*Messaging Gateway*](MessagingGateway.html) since the Axis framework acts as the gateway on behalf of the application.\n\nThe following sequence diagram illustrates the interaction between the components for the synchronous predictive Web service example. The loan broker first calls the credit agency gateway component, which enriches the minimum data provided with a credit score and the length of credit history for the customer. The loan broker uses the enriched data to call the lender gateway. This component implements the [*Recipient List*](RecipientList.html) that uses all the data provided to choose the set of lenders that can service the loan request.\n\nThe loan broker then calls the bank quote gateway. This component performs the predictive routing operation by calling each bank in turn. The bank components model the interface to a real-world banking operation. For example the Bank1 class is the interface to the Bank1WS.jws Web Service that models the banking operation. When a loan request comes in, there is some amount of clerical work performed before generating the rate quote based on all the parameters. In this example, the rate quote is generated by a banking Web service.\n\nThe bank quote gateway aggregates the responses from the banks and chooses the best quote from all the quotes received. The response is sent back to the loan broker, which formats the data from the best quote and returns the report to the client.\n\n*Loan Broker Sequence Diagram*\n\nWe have only shown two of the five banks in the sequence diagram in the interest of keeping the picture manageable. Based on the [*Recipient List*](RecipientList.html) generated for a particular request, the loan broker could contact exactly one bank or all five banks to service the client request.\n\nThe diagram highlights the sequential processing of the quote requests to each bank. The sequential processing has some advantages because we can run the application in a single thread calling each bank in turn. The application does not need to spawn threads to request a quote from each bank and so we don’t have to worry about concurrency issues. However, the total time to get the response quote is high since the loan broker has to wait for a response from each bank before submitting a request to the next bank in the lenders list. The net result is the customer will have to wait a long time to get the result quote back after submitting the request.\n\n## Components of the Loan Broker Application\n\nWe will now start designing the functional aspects of the loan broker application. As stated earlier the Axis framework can support both the client and server application. This allows a remote client to access the published endpoint across the network. A server application may also need to act like a client and access some other Web service endpoint, regardless of whether that endpoint is on the same server or a remote server. We are going to demonstrate this by modeling the key components of our solution as Web services albeit running on the same instance of our server.\n\nThe loan broker solution has to implement the following functions. The following sections discuss the implementation of each function.\n\n- Accept Client Requests\n- Retrieve Credit Agency Data\n- Implement the Credit Agency Service\n- Obtain Quotes\n- Implement the Banking Operations\n\n**Accepting Client Requests**\n\nThe loan broker is implemented in a JWS file named LoanBrokerWS.jws. It exposes a single public method as a Web service: GetLoanQuote. The loan broker needs three pieces of data from the client to start processing a loan request: the social security number (SSN) that acts as the customer identification number, the amount of the loan and the duration of the loan in months:\n\n```\n public String getLoanQuote(int ssn, double loanamount, int loanduration) {\n\n String results = \"\";\n\n results = results + \"Client with ssn= \" + ssn + \" requests a loan of amount= \" + loanamount + \" for \" + loanduration + \" months\" + \"\\n\\n\";\n results = results + this.getLoanQuotesWithScores(ssn,loanamount,loanduration);\n\n return results;\n }\n```\n\nThe only step in this method is the call to the method getLoanQuotesWithScores. This method returns a string, which is sent back to the client along a response chain in the Axis framework. At the end of the chain, the transport listener that received the request will accept the response message from within the Axis framework and send it back to the client on the network.\n\nAs described earlier, since we use the Automatic Deployment of the JWS file for the loan broker component, Axis generates the WSDL file for the LoanBrokerWS service. The WSDL file for the LoanBrokerWS.jws file is shown below.\n\n```\n\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n```\n\nIn the interest of space we condensed the WSDL document to highlight the most significant elements. The tags define the service name (LoanBrokerWSService) and the endpoint location. The tags define the method (operation) name along with the parameters required for the client to access the LoanBrokerWS Web Service. The two messages defined in the tags define the request and the response messages for the getLoanQuote operation: getLoanQuoteRequest and getLoanQuoteResponse with the appropriate parameters they pass in to or receive from the Web Service. The element confirms that we are using the RPC binding style that we discussed at the beginning of this chapter while the reveals that we are using SOAP encoding (as opposed to doc/literal).\n\nIf you want to see the WSDL file from your server, you can type in the following URL in your browser window where hostname and portnumber are replaced with the appropriate values of your server installation,\n\n```\nhttp://hostname:portnumber/axis/LoanBrokerWS.jws?wsdl\n```\n\n**Retrieving Credit Agency Data**\n\nAnother requirement for the loan broker is to gather additional data on the customer to complete the loan request application. The next stage of the LoanBrokerWS, implements the [*Content Enricher*](DataEnricher.html) as shown below:\n\n```\n private String getLoanQuotesWithScores(int de_ssn, double de_loanamount, int de_duration) {\n String qws_results=\"Additional data for customer: credit score and length of credit history\\n\";\n int ssn = de_ssn;\n double loanamount = de_loanamount;\n int loanduration = de_duration;\n int credit_score = 0;\n int credit_history_length = 0;\n\n CreditProfile creditprofile = CreditAgencyGateway.getCustomerCreditProfile(ssn);\n\n credit_score = creditprofile.getCreditScore();\n credit_history_length = creditprofile.getCreditHistoryLength(); \n \n qws_results = qws_results + \"Credit Score= \" + credit_score + \" Credit History Length= \" + credit_history_length;\n qws_results = qws_results + \"\\n\\n\";\n qws_results = qws_results + \"The details of the best quote from all banks that responded are shown below: \\n\\n\";\n\n qws_results = qws_results + getResultsFromLoanClearingHouse(ssn,loanamount,loanduration,credit_history_length,credit_score);\n\n qws_results = qws_results + \"\\n\\n\";\n return qws_results;\n }\n```\n\nWe now design the credit agency operations, which is the next logical area of the loan broker application. In order to keep the SOAP code out of the loan broker application, and minimize the dependencies between the loan broker and the credit agency we will use the Gateway pattern. In Martin’s P of EAA book, using an example created by Mike Rettig, Martin highlighted two key advantages of using the Gateway pattern. First, it abstracts the technical details of the communication from the application. Second, if we choose to separate the gateway interface from the gateway implementation we can replace the actual external service with a Service Stub [EAA] for testing.\n\nOur CreditAgencyGateway abstracts the technical details of the communication between the CreditAgencyGateway and the credit agency Web Service (CreditAgencyWS). We could replace the Web service with a test stub if needed. The gateway takes in the customer identification number (ssn) and acquires additional data from the credit agency. The two pieces of data returned by the credit agency are the credit score and the length of credit history for the customer both of which are needed to complete the loan application. This gateway will contain all the client side code to access the CreditAgencyWS implemented in the CreditAgencyWS.jws file.\n\n```\n public static CreditProfile getCustomerCreditProfile(int ssn){\n\n int credit_score = 0;\n int credit_history_length = 0;\n\n CreditProfile creditprofile = null;\n\n try{\n CreditAgencyGateway.readProps();\n\n creditprofile = new CreditProfile();\n\n String creditagency_ep = \"http://\" + hostname + \":\" + portnum + \"/axis/CreditAgencyWS.jws\";\n\n Integer i1 = new Integer(ssn);\n\n Service service = new Service();\n Call call = (Call) service.createCall();\n call.setTargetEndpointAddress( new java.net.URL(creditagency_ep) );\n\n call.setOperationName(\"getCreditHistoryLength\");\n call.addParameter( \"op1\", XMLType.XSD_INT, ParameterMode.IN );\n call.setReturnType( XMLType.XSD_INT );\n\n Integer ret1 = (Integer) call.invoke( new Object [] {i1});\n credit_history_length = ret1.intValue();\n\n call.setOperationName(\"getCreditScore\");\n\n Integer ret2 = (Integer) call.invoke( new Object [] {i1});\n credit_score = ret2.intValue();\n\n creditprofile.setCreditScore(credit_score);\n creditprofile.setCreditHistoryLength(credit_history_length);\n\n\t Thread.sleep(credit_score);\n }catch(Exception ex){\n System.out.println(\"Error accessing the CreditAgency Webservice\");\n }\n\n return creditprofile;\n }\n}\n```\n\nThe purpose of using this Gateway is to show how a server application uses the Axis client framework to access a Web service, either on the same server or a remote server.\n\n**Implementing the Credit Agency Service**\n\nThe credit agency Web service is coded in CreditAgencyWS.jws and shown below. . The two significant pieces of data needed to complete the loan application are the customer credit score and the length of the customer’s credit history. The credit agency has this data for each customer with a credit history and can be accessed using the customer identification number.\n\n```\n public int getCreditScore(int de_ssn) throws Exception\n {\n int credit_score;\n\n credit_score = (int)(Math.random()*600+300);\n\n return credit_score;\n }\n\n public int getCreditHistoryLength(int de_ssn) throws Exception\n {\n int credit_history_length;\n\n credit_history_length = (int)(Math.random()*19+1);\n\n return credit_history_length;\n }\n```\n\nThe code below shows the WSDL file for the CreditAgencyWS.jws file. This file was automatically generated by the Axis server.\n\n```\n\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n ...\n \n \n \n \n \n \n\n```\n\nThe defines the CreditAgencyWSService and exposes the endpoint that will be accessed by the client in this case the loan broker. The defines the two public methods defined in the CreditAgencyWS.jws file, getCreditScore and getCreditHistoryLength. For each of these methods, there will be a request-response message pair defined as can be seen in the tags. These are listed here, getCreditScoreRequest, getCreditScoreResponse, getCreditHistoryLengthRequest, getCreditHistoryLengthResponse.\n\nOnce again, in the interest of space we have collapsed most of the elements of the WSDL file to fit the format of the section. If you are interested in seeing the entire file, it can be accessed on your server using the following URL where hostname and portnumber are the values for your server installation,\n\n```\nhttp://hostname:portnumber/axis/CreditAgencyWS.jws?wsdl\n```\n\nThe credit agency webservice in our example stubs out the implementation and returns dummy data that can be used by other parts of the application.\n\n**Obtaining Quotes**\n\nHaving enriched the customer data, the loan broker now calls the loan clearing house function, which is part of the loan broker itself. As seen in the call below, the loan-clearing house receives all the data for the loan application.\n\n```\ngetResultsFromLoanClearingHouse(ssn,loanamount,loanduration,credit_history_length,credit_score);\n```\n\nThe loan clearing house functions could be further demarcated into its own logical unit if the application gets more complex or the loan broker requirements change to use an external loan-clearing house. In our example the loan clearing house functionality can be broken down into three steps, namely:\n\n- Get a list of lenders who can service the customer loan\n- Get the best quote out of all quotes from each bank in the lender list\n- Format the data from the best quote and return it to the loan broker\n\nThe code shows these steps:\n\n```\nprivate String getResultsFromLoanClearingHouse(int ssn, double loanamount, int loanduration, int credit_history_length, int credit_score) {\n String lch_results=\"Results from Loan Clearing House \";\n \n ArrayList lenderlist = LenderGateway.getLenderList(loanamount, credit_history_length, credit_score);\n\n BankQuote bestquote = BankQuoteGateway.getBestQuote(lenderlist,ssn,loanamount,loanduration,credit_history_length,credit_score);\n\n lch_results = \"Out of a total of \" + lenderlist.size() + \" quote(s), the best quote is from\" + this.getLoanQuotesReport(bestquote);\n\n return lch_results; \n}\n```\n\nThe first requirement for the loan-clearing house is to get a list of suitable lenders that can service the customer loan application. In order to abstract the functions of the lender selection process from the loan broker we will create a LenderGateway class. We could make the solution more interesting by making this a Web Service. However, Web Services should be designed carefully and the parameters and return types should be taken into consideration since these have to be types that can be serialized to and from the network.\n\nFor this example, we could have chosen to return a collection of the service endpoint for the banks from a LenderGateway. The drawback of doing this is the identification of the bank webservice will have to be hard coded in the lender gateway. This becomes a maintenance nightmare in real life, especially since banks get bought, sold or merged more often than IT architects change jobs. We will discuss a robust solution for the bank and its webservice in the discussion of the BankQuoteGateway topic later in this section.\n\nThe method getLenderList shown below will return the set of lenders (i.e. banks) that can service the loan request.\n\n```\n public static ArrayList getLenderList(double loanamount, int credit_history_length, int credit_score){\n\n ArrayList lenders = new ArrayList();\n LenderGateway.readProps();\n\n if ((loanamount >= (double)75000) && (credit_score >= 600) && (credit_history_length >= 8))\n {\n lenders.add(new Bank1(hostname, portnum));\n lenders.add(new Bank2(hostname, portnum));\n }\n\n if (((loanamount >= (double)10000) && (loanamount <= (double)74999)) && (credit_score >= 400) && (credit_history_length >= 3))\n {\n lenders.add(new Bank3(hostname, portnum));\n lenders.add(new Bank4(hostname, portnum));\n }\n\n lenders.add(new Bank5(hostname, portnum));\n\n return lenders;\n }\n```\n\nThis method implements the RecipientList pattern. In our example the rule base consists of very simple if statements that choose a bank or banks based on a set of predefined conditions. We have also set a default selection for every customer request so that every customer request will have at least one quote.\n\nThe loan broker will now pass the list of lenders to the bank quote gateway to start gathering quotes and make a selection. Once again we create a class named BankQuoteGateway to abstract the internal functioning of the bank quote gateway. The loan broker will only need to request the best quote from the BankQuoteGateway as seen in the method call below:\n\n```\nBankQuote bestquote = BankQuoteGateway.getBestQuote(lenderlist,ssn,loanamount,loanduration,credit_history_length,credit_score);\n```\n\nThe BankQuoteGateway responds to the loan broker request by getting the quotes from all the banks and then selecting the best quote (i.e., the quote with the lowest rate). The getBestQuote method is shown below:\n\n```\n public static BankQuote getBestQuote(ArrayList lenders, int ssn, double loanamount, int loanduration, int credit_history_length, int credit_score){\n\n BankQuote lowestquote = null;\n BankQuote currentquote = null;\n\n ArrayList bankquotes = BankQuoteGateway.getBankQuotes(lenders,ssn,loanamount,loanduration,credit_history_length,credit_score);\n\n Iterator allquotes = bankquotes.iterator();\n\n while (allquotes.hasNext()){\n if (lowestquote == null){\n lowestquote = (BankQuote)allquotes.next();\n }\n else{\n currentquote = (BankQuote)allquotes.next();\n if (currentquote.getInterestRate() < lowestquote.getInterestRate()){\n lowestquote = currentquote;\n }\n }\n }\n\n return lowestquote;\n }\n```\n\nThe most significant line in the code above is the call to getBankQuotes. This method not only performs the controlled Auction but also implements the Aggregator pattern. The listing below shows the getBankQuotes method:\n\n```\n public static ArrayList getBankQuotes(ArrayList lenders, int ssn, double loanamount, int loanduration, int credit_history_length, int credit_score) {\n\n ArrayList bankquotes = new ArrayList();\n\n BankQuote bankquote = null;\n Bank bank = null;\n\n Iterator banklist = lenders.iterator();\n\n while (banklist.hasNext()){\n bank = (Bank)banklist.next();\n bankquote = bank.getBankQuote(ssn,loanamount,loanduration,credit_history_length,credit_score);\n bankquotes.add(bankquote);\n\n }\n\n return bankquotes;\n }\n```\n\nThe while loop performs the function of the controlled Auction. Each bank is extracted from the lender list and the method to generate a bank quote is invoked as highlighted below. Pay special attention to the order of the parameter list in the call to the method and we will explain the significance when we start designing the banks and the associated webservices.\n\n```\nbank.getBankQuote(ssn, loanamount,loanduration, credit_history_length, credit_score);\n```\n\nThe response is aggregated using the bankquotes ArrayList. The getBestQuote method iterates over this collection of bank quotes and selects the lowest quote, which is sent back to the loan broker.\n\nAs mentioned earlier, we will design the bank and bank webservice to emulate a real-world bank operation and keep the functions of the bank separate and not couple them tightly with the functions of the loan broker. This will let our bank classes have the advantages of using the Gateway pattern described earlier in the CreditAgencyGateway class.\n\nWe define an abstract Bank class as follows:\n\n```\npublic abstract class Bank{\n\n String bankname;\n String endpoint = \"\";\n double prime_rate;\n\n public Bank(String hostname, String portnum){\n this.bankname = \"\";\n this.prime_rate = 3.5;\n }\n\n public void setEndPoint(String endpt){this.endpoint = endpt;}\n\n public String getBankName(){return this.bankname;}\n public String getEndPoint(){return this.endpoint;}\n public double getPrimeRate(){return this.prime_rate;}\n public abstract BankQuote getBankQuote(int ssn, double loanamount, int loanduration, int credit_history_length, int credit_score);\n\n public void arbitraryWait(){\n try{\n Thread.sleep((int)(Math.random()*10)*100);\n\n }catch(java.lang.InterruptedException intex){\n intex.printStackTrace();\n }\n }\n}\n```\n\nIn our example, the process for getting a quote from a bank is modeled roughly along the same lines a real world bank operates. First there is a small amount of clerical work done followed by an access to the computerized rate quote system and then some additional amount of clerical work before the quote is returned to the BankQuoteGateway.\n\nThe Bank abstract class and the child bank classes (Bank1 to Bank5) model the operation of a regular bank. In our example, the bank receives the loan request and the clerical staff conducts the due diligence research while verifying that the customer information is accurate. We have chosen to model the clerical work as an arbitrary wait method implemented in the Bank abstract class as shown above and invoked in the getBankQuote method. To make things interesting, we will model the bank’s rate quote system for getting rate quotes, using webservices. For a given bank (Bankn) the rate quote system is modeled using a BanknWS and coded in a file named BanknWS.jws. There will be five bank classes (Bank1 to Bank5) and five rate quote systems (Bank1WS to Bank5WS). To make things even more interesting each of the rate quote systems will use a different format for the parameter list in the method call. This means the Bank class has to use a Translator to translate the format of the message before calling the webservice. We will show this after discussing the Bank classes.\n\nYou will note that the getBankQuote method in the abstract Bank class is an abstract method and has the parameters ordered in a particular format. We will now look at one of the bank implementations and for no particular reason choose Bank1. The class structure of all the banks will be identical and each will differ only in the values of its fields (the bank name and endpoint address) which are set when the bank object is constructed.\n\n```\npublic class Bank1 extends Bank {\n\n public Bank1(String hostname, String portnum){\n super(hostname,portnum);\n bankname = \"Exclusive Country Club Bankers\\n\";\n String ep1 = \"http://\" + hostname + \":\" + portnum + \"/axis/Bank1WS.jws\";\n this.setEndPoint(ep1);\n }\n\n public void setEndPoint(String endpt){this.endpoint = endpt;}\n\n public String getBankName(){return this.bankname;}\n public String getEndPoint(){return this.endpoint;}\n\n public BankQuote getBankQuote(int ssn, double loanamount, int loanduration, int credit_history_length, int credit_score) {\n\n BankQuote bankquote = new BankQuote();\n\n Integer i1 = new Integer(ssn);\n Double i2 = new Double(prime_rate);\n Double i3 = new Double(loanamount);\n Integer i4 = new Integer(loanduration);\n Integer i5 = new Integer(credit_history_length);\n Integer i6 = new Integer(credit_score);\n\n try{\n Service service = new Service();\n Call call = (Call) service.createCall();\n call.setTargetEndpointAddress( new java.net.URL(endpoint) );\n\n call.setOperationName(\"getQuote\");\n\n call.addParameter( \"op1\", XMLType.XSD_INT, ParameterMode.IN );\n call.addParameter( \"op2\", XMLType.XSD_DOUBLE, ParameterMode.IN );\n call.addParameter( \"op3\", XMLType.XSD_DOUBLE, ParameterMode.IN );\n call.addParameter( \"op4\", XMLType.XSD_INT, ParameterMode.IN );\n call.addParameter( \"op5\", XMLType.XSD_INT, ParameterMode.IN );\n call.addParameter( \"op6\", XMLType.XSD_INT, ParameterMode.IN );\n\n call.setReturnType( XMLType.XSD_DOUBLE);\n\n Double interestrate = (Double) call.invoke( new Object [] {i1,i2,i3,i4,i5,i6});\n\n bankquote.setBankName(bankname);\n bankquote.setInterestRate(interestrate.doubleValue());\n }catch(Exception ex){\n System.err.println(\"Error accessing the axis webservice from \" + bankname);\n\n BankQuote badbq = new BankQuote();\n badbq.setBankName(\"ERROR in WS\");\n return badbq;\n }\n\n arbitraryWait();\n\n return bankquote;\n }\n\n}\n```\n\nAs seen in the code above, the getBankQuote method is implemented and has the parameters in a particular order.\n\n```\npublic BankQuote getBankQuote(int ssn, double loanamount, int loanduration, int credit_history_length, int credit_score)\n```\n\n**Implementing the Banking Operations**\n\nAs described earlier, the format for the parameters of the rate quote system for each bank is different. This means the getBankQuote method of the Bank class implements the Translator pattern and has to translate the order of the parameters before calling the respective webservice. The details of the method signature for each bank webservice getQuote method is shown below:\n\nBank1WS:\n\n```\ngetQuote(int ssn, double prime_rate, double loanamount, int loanduration, int credit_history_length, int credit_score)\n```\n\nBank2WS:\n\n```\ngetQuote(double prime_rate, double loanamount, int loanduration, int credit_history_length, int credit_score, int ssn)\n```\n\nBank3WS:\n\n```\ngetQuote(double loanamount, int loanduration, int credit_history_length, int credit_score, int ssn, double prime_rate)\n```\n\nBank4WS:\n\n```\ngetQuote(int loanduration, int credit_history_length, int credit_score, int ssn, double prime_rate, double loanamount)\n```\n\nBank5WS:\n\n```\ngetQuote(int credit_history_length, int credit_score, int ssn, double prime_rate, double loanamount, int loanduration)\n```\n\nThe actual implementation of the getQuote method is a placeholder and returns a rate quote using a simple algorithm as shown below for Bank1WS.jws.\n\n```\npublic class Bank1WS {\n\n public double getQuote(int ssn, double prime_rate, double loanamount, int loanduration, int credit_history_length, int credit_score)\n {\n double ratepremium = 1.5;\n\n double int_rate = prime_rate + ratepremium + (double)(loanduration/12)/10 + (double)(Math.random()*10)/10;\n\n return int_rate;\n }\n \n}\n```\n\nIn a real world application, the formula is a lot more detailed and complicated. The return type of the getQuote method is a double precision number representing the rate the bank offers the customer given the parameters in the loan application.\n\nOnce again the Axis server automatically generates a WSDL file for each Bank JWS file (exposed at http://hostname:portnum/axis/Bank1WS.jws?wsdl) . The WSDL files for the other Banks will have a similar format but will differ in the definition of the parameters. The WSDL file for the Bank1WS.jws Web Service is shown below.\n\n```\n\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n ...\n \n \n \n \n \n \n\n```\n\nAs we can see, the WSDL contains one operation getQuote defined in the tag, which Axis maps to the getQuote method in the Bank1WS.jws class. The tag defines the Web Service Bank1WS Web Service. There is a request-response message pair, each defined in a tag and they are getQuoteRequest and getQuoteResponse.\n\nThis rate quote is set in a bank quote bean, which is added to the collection sent back to the BankQuoteGateway. The bean does not require any formatting and essentially the beans returned by all the banks look the same. This eliminates the need for a Normalizer to convert the reply messages to a common format.\n\nThe BankQuoteGateway selects the lowest quote from the collection of bank quotes it gets back and sends one bank quote bean back to the loan broker. The loan broker will access the data in the bean and format a report to send back to the client application. The method that formats the report is shown below:\n\n```\nprivate static String getLoanQuotesReport(BankQuote bestquote){\n String bankname = bestquote.getBankName();\n double bestrate = ((double)((long)(bestquote.getInterestRate()*1000))/(double)1000);\n\n String results = \"\\nBank Name: \" + bankname + \"Interest Rate: \" + bestrate;\n\n return results;\n}\n```\n\n## Client Application\n\nThe client application is the customer's interface to the loan broker application. The main requirement of the client is to gather information from the customer in a functional graphical user interface environment with adequate error checking. Beneath the covers and far away from the eyes of the customer, the client application will prepare the three pieces of data for delivery to the endpoint of the server application. For simplicity we designed the client application to be a java class with a main method that takes in the client information as command line arguments. In reality the user interface could be implemented as a windows based fat client or a browser based thin client. The client could also be part of another business system that has the client-programming model deployed. The most significant part of the client application with respect to invoking the webservice is shown below:\n\n```\n Service service = new Service();\n Call call = (Call) service.createCall();\n\n call.setTargetEndpointAddress( new java.net.URL(endpoint) );\n call.setOperationName( \"getLoanQuote\" );\n call.addParameter( \"op1\", XMLType.XSD_INT, ParameterMode.IN );\n call.addParameter( \"op2\", XMLType.XSD_DOUBLE, ParameterMode.IN );\n call.addParameter( \"op3\", XMLType.XSD_INT, ParameterMode.IN );\n\n call.setReturnType( XMLType.XSD_STRING );\n\n String ret = (String) call.invoke( new Object [] {ssn, loanamount, loanduration});\n```\n\nThe salient points in the code, are the lines, which define the method name (getLoanQuotes) and those that set the parameters and return types. The method getLoanQuotes takes in a customer id, loan amount and loan duration. The return value will be a string.\n\nSince we are not using UDDI, the webservices lookup service, we hard code the endpoint URL for our webservice. Since we chose to deploy the loan broker application as a JWS file, the endpoint will have the standard format as defined by the Axis API for java web services (JWS). The end point for our deployment is shown below, where hostname and portnumber are the values of your server installation,\n\n```\nhttp://hostname:portnumber/axis/LoanBroker.jws\n```\n\nThe client application which was blocked all along waiting for the response will accept the formatted report and display it in the GUI area setup for it. Alternatively it can be saved or sent to a printer.\n\n## Running the Solution\n\nPlease refer to the sections on installation of Axis and the loan broker application which appears towards the end of the chapter. The server now needs to be restarted or started if it were not running. Follow the documentation in the Tomcat help files for the proper steps to start or restart the server. You can then verify that Tomcat and Apache Axis are up and running by following the steps that were described in the section Installing XML-Axis at the beginning of this chapter.\n\nOpen a shell or command window on the client machine and run the application as shown for either Unix/Linux or Microsoft Windows:\n\n```\njava -classpath %CLASSPATH% LoanQueryClient [customerid[ [loanamount] [loanduration in months]\n```\n\nor\n\n```\njava -classpath $CLASSPATH LoanQueryClient [customerid] [loanamount] [loanduration in months]\n```\n\nfor e.g.:\n\n```\njava -classpath %CLASSPATH% LoanQueryClient 199 100000.00 29\n```\n\nThis invokes the webservice and returns the following results:\n\n```\nCalling the LoanBroker webservice at 1053292919270 ticks\nLoanBroker service replied at 1053292925860 ticks\n\nTotal time to run the query = 6590 milliseconds\n\nThe following reply was received from the Loan Clearing House\n\nClient with ssn= 199 requests a loan of amount= 100000.0 for 29 months\n\nAdditional data for customer: credit score and length of credit history\nCredit Score= 756 Credit History Length= 12\n\nThe details of the best quote from all banks that responded are shown below:\n\nOut of a total of 3 quote(s), the best quote is from\nBank Name: Exclusive Country Club Bankers\nInterest Rate: 6.197\n```\n\nYou can test out the loan broker by entering different loan amounts when running the client. We will now analyze the output results with a single client running. Later on we will launch multiple clients and study the output.\n\n**Analyzing the Output**\n\nThe client application keeps track of the time when it invokes the webservice endpoint on the server. The client also notes the time when the server responds with the result. Both start and end times of the call to the webservice are reported in the client application together with the difference between the two.\n\n```\nCalling the LoanBroker webservice at 1053292919270 ticks\nLoanBroker service replied at 1053292925860 ticks\n\nTotal time to run the query = 6590 milliseconds\n```\n\nThe Loan Clearing House webservice, reports all relevant details of the customer request sent across the network by the client application.\n\n```\nClient with ssn= 199 requests a loan of amount= 100000.0 for 29 months\n```\n\nThe Loan Clearing House also reports additional credit data that was gathered to support the customer request.\n\n```\nAdditional data for customer: credit score and length of credit history\nCredit Score= 756 Credit History Length= 12\n```\n\nThe LoanBroker analyzes the data and selects a set of banks that fit the customer loan request criteria. The LoanBroker submits the customer data in the format required for individual banks and waits for each bank to respond. Since this is a synchronous application, this request is a blocking wait until a bank responds or the request times out or fails.\n\nThe LoanBroker collects all the responses, analyzes the return quotes and chooses the best quote. This quote is formatted and sent bank to the customer along with any relevant data.\n\nThe details of the best quote from all banks that responded are shown below:\n\n```\nOut of a total of 3 quote(s), the best quote is from\nBank Name: Exclusive Country Club Bankers\nInterest Rate: 6.197\n```\n\nFrom the above code segment we see that the LoanBroker reports that three banks responded and it had select the best quote and presented that to the user.\n\n## Performance Limitations\n\nAs we discussed in the topic on the sequence diagram earlier on, the total time to get the response quote is significantly high since the loan broker has to wait for a response from each bank before submitting to the next bank in the lenders list. The net result is the customer will have to wait a long time to get the result quote back after submitting the request. We ran several baseline tests with a single client against the server and obtained an average of the total time to run the query (8070 milliseconds). We then launched four instances of the client in separate windows on the same client machine and obtained the following average times:\n\n```\nClient 1: 12520 milliseconds\nClient 2: 12580 milliseconds\nClient 3: 15710 milliseconds\nClient 4: 13760 milliseconds\n```\n\nWhile these tests could not be consider scientific by any stretch of imagination, the empirical evidence points to the fact that performance suffers tremendously when multiple clients try to simultaneously access our loan broker system.\n\n## Limitations of This Example\n\nTo make the discussion of the design of the loan broker example easier, we chose to implement all the webservices as JWS files. This gave us the advantage of deploying the service by simply copying it over to the server. The disadvantage, however, is that the webservice class gets instantiated when it is invoked and dies as soon as the service is complete. This means that some amount of the time lag we noticed is a result of the server creating instances of the class before invoking the service.\n\nWe could have chosen the more complicated route and designed a java class file that would get deployed using a WSDD file. This would give us the flexibility of defining how long the instantiated class would persist, i.e. for the entire client session or the duration of the application. The issue of how the webservice will be deployed is very significant when designing a real world application. If we had chosen to include the deployment issue, the description of the example would have become very lengthy and the design details would have become unnecessarily complicated for the purposes of this chapter.\n\n## Summary\n\nIn this section we stepped through the implementation of the loan broker application using synchronous access to SOAP/HTTP web services. We used predictive routing to submit our loan request to a set of banks. We highlighted the strengths and drawbacks of using this approach. We made some design tradeoffs to manage the discussion and avoid getting bogged down in describing deployment details. The overall intention was to provide a discussion on the merits and demerits of this approach. We also got to see many of the patterns described in this book used which will help in adapting the synchronous predictive approach to other business domains.\n\n## Integration Pattern Language\n\n[Message Construct.](MessageConstructionIntro.html)\n\n[Message](Message.html)\n\n[Command Message](CommandMessage.html)\n\n[Document Message](DocumentMessage.html)\n\n[Event Message](EventMessage.html)\n\n[Request-Reply](RequestReply.html)\n\n[Return Address](ReturnAddress.html)\n\n[Correlation Identifier](CorrelationIdentifier.html)\n\n[Message Sequence](MessageSequence.html)\n\n[Message Expiration](MessageExpiration.html)\n\n[Format Indicator](FormatIndicator.html)\n\n[Message Routing](MessageRoutingIntro.html)\n\n[Pipes-and-Filters](PipesAndFilters.html)\n\n[Message Router](MessageRouter.html)\n\n[Content-based Router](ContentBasedRouter.html)\n\n[Message Filter](Filter.html)\n\n[Dynamic Router](DynamicRouter.html)\n\n[Recipient List](RecipientList.html)\n\n[Splitter](Sequencer.html)\n\n[Aggregator](Aggregator.html)\n\n[Resequencer](Resequencer.html)\n\n[Composed Msg. Processor](DistributionAggregate.html)\n\n[Scatter-Gather](BroadcastAggregate.html)\n\n[Routing Slip](RoutingTable.html)\n\n[Process Manager](ProcessManager.html)\n\n[Message Broker](MessageBroker.html)\n\n[Message\nTransformation](MessageTransformationIntro.html)\n\n[Message Translator](MessageTranslator.html)\n\n[Envelope Wrapper](EnvelopeWrapper.html)\n\n[Content Enricher](DataEnricher.html)\n\n[Content Filter](ContentFilter.html)\n\n[Claim Check](StoreInLibrary.html)\n\n[Normalizer](Normalizer.html)\n\n[Canonical Data Model](CanonicalDataModel.html)\n\n[Messaging Endpoints](MessagingEndpointsIntro.html)\n\n[Message Endpoint](MessageEndpoint.html)\n\n[Messaging Gateway](MessagingGateway.html)\n\n[Messaging Mapper](MessagingMapper.html)\n\n[Transactional Client](TransactionalClient.html)\n\n[Polling Consumer](PollingConsumer.html)\n\n[Event-driven Consumer](EventDrivenConsumer.html)\n\n[Competing Consumers](CompetingConsumers.html)\n\n[Message Dispatcher](MessageDispatcher.html)\n\n[Selective Consumer](MessageSelector.html)\n\n[Durable Subscriber](DurableSubscription.html)\n\n[Idempotent Receiver](IdempotentReceiver.html)\n\n[Service Activator](MessagingAdapter.html)\n\n[Messaging Channels](MessagingChannelsIntro.html)\n\n[Message Channel](MessageChannel.html)\n\n[Point-to-Point Channel](PointToPointChannel.html)\n\n[Publish-Subscr. Channel](PublishSubscribeChannel.html)\n\n[Datatype Channel](DatatypeChannel.html)\n\n[Invalid Message Channel](InvalidMessageChannel.html)\n\n[Dead Letter Channel](DeadLetterChannel.html)\n\n[Guaranteed Delivery](GuaranteedMessaging.html)\n\n[Channel Adapter](ChannelAdapter.html)\n\n[Messaging Bridge](MessagingBridge.html)\n\n[Message Bus](MessageBus.html)\n\n[Systems Mgmt.](SystemManagementIntro.html)\n\n[Control Bus](ControlBus.html)\n\n[Detour](Detour.html)\n\n[Wire Tap](WireTap.html)\n\n[Message History](MessageHistory.html)\n\n[Message Store](MessageStore.html)\n\n[Smart Proxy](SmartProxy.html)\n\n[Test Message](TestMessage.html)\n\n[Channel Purger](ChannelPurger.html)", "znaku_textu": 64625, "slov": 8909, "odkazu": 95, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/patterns/messaging/ComposedMessagingWS.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 06:02:46", "sha256": "7fae1dd4d1a6743fd6aa8e37d09960393881f1ea6a1e9d5be27cf09d43779e6b", "hloubka": 1, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://www.w3.org/TR/SOAP", "http://www.w3.org/", "http://www.w3.org/TR/xmlschema-0/", "http://xml.apache.org/axis", "http://www.w3.org/TR/wsdl", "http://www.uddi.org/", "https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "https://www.architectelevator.com/book", "https://www.cloudstrategybook.com/", "https://www.platformstrategybook.info/"]} {"url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/ContentBasedRouter.html", "titulek": "Content-Based Router - Enterprise Integration Patterns", "h1": "", "popis": "How do we handle a situation where the implementation of a single logical function (e.g., inventory check) is spread across multiple physical systems?", "klicova_slova": "Content-Based Router,integration, messaging, events, patterns, event-driven, coupling, eai, middleware, application integration, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns", "og:title": "Content-Based Router - Enterprise Integration Patterns", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/ContentBasedRouter.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/ContentBasedRouter.gif"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Example: Apache CamelNEW"}, {"uroven": 2, "text": "Integration Pattern Language"}], "markdown": "| | Content-Based Router[Messaging Patterns](index.html) » [Message Routing](MessageRoutingIntro.html) | [Contents](toc.html)[⇐ Prev](MessageRoutingIntro.html)[Next ⇒](Filter.html) |\n| --- | --- | --- |\n\nAssume that we are building an order processing system. When an incoming order is received, we first validate the order and then verify that the ordered item is available in the warehouse. This function is performed by the inventory system. This sequence of processing steps is a perfect candidate for the [*Pipes and Filters*](PipesAndFilters.html) style. We create two filters, one for the validation step and one for the inventory system, and route the incoming messages through both filters. However, in many enterprise integration scenarios more than one inventory system exists with each system being able to handle only specific items.\n\nHow do we handle a situation where the implementation of a single logical function (e.g., inventory check) is spread across multiple physical systems?\n\nUse a *Content-Based Router* to route each message to the correct recipient based on message content.\n\nThe *Content-Based Router* examines the message content and routes the message onto a different channel based on data contained in the message. The routing can be based on a number of criteria such as existence of fields, specific field values etc. When implementing a *Content-Based Router*, special caution should be taken to make the routing function easy to maintain as the router can become a point of frequent maintenance. In more sophisticated integration scenarios, the *Content-Based Router* can take on the form of a configurable rules engine that computes the destination channel based on a set of configurable rules.\n\n...\nRead the entire pattern in the book [Enterprise Integration Patterns](/books1.html)\n\n## Example: Apache Camel[NEW](/ramblings/eip1_examples_updated.html)\n\nMany open source ESBs like [Apache Camel](http://camel.apache.org/) have direct support for many Enterprise Integration Patterns, wither in a Java-based DSL or as configuration. For example, setting up a *Content-Based Router* in Camel is quite easy and idiomatic by using a RouteBuilder:\n\n```\nRouteBuilder builder = new RouteBuilder() {\n public void configure() {\n errorHandler(deadLetterChannel(\"mock:error\"));\n\n from(\"direct:in\")\n .choice()\n .when(header(\"type\").isEqualTo(\"widget\"))\n .to(\"direct:widget\")\n .when(header(\"type\").isEqualTo(\"gadget\"))\n .to(\"direct:gadget\")\n .otherwise()\n .to(\"direct:other\");\n }\n};\n```\n\n**Related patterns:**\n\n[*Dynamic Router*](DynamicRouter.html), [*Message Filter*](Filter.html), [*Invalid Message Channel*](InvalidMessageChannel.html), [*Message Router*](MessageRouter.html), [*Pipes and Filters*](PipesAndFilters.html), [*Publish-Subscribe Channel*](PublishSubscribeChannel.html), [*Routing Slip*](RoutingTable.html), [*Transactional Client*](TransactionalClient.html)\n\n---\n\n## Integration Pattern Language\n\n[Message Construct.](MessageConstructionIntro.html)\n\n[Message](Message.html)\n\n[Command Message](CommandMessage.html)\n\n[Document Message](DocumentMessage.html)\n\n[Event Message](EventMessage.html)\n\n[Request-Reply](RequestReply.html)\n\n[Return Address](ReturnAddress.html)\n\n[Correlation Identifier](CorrelationIdentifier.html)\n\n[Message Sequence](MessageSequence.html)\n\n[Message Expiration](MessageExpiration.html)\n\n[Format Indicator](FormatIndicator.html)\n\n[Message Routing](MessageRoutingIntro.html)\n\n[Pipes-and-Filters](PipesAndFilters.html)\n\n[Message Router](MessageRouter.html)\n\n[Content-based Router](ContentBasedRouter.html)\n\n[Message Filter](Filter.html)\n\n[Dynamic Router](DynamicRouter.html)\n\n[Recipient List](RecipientList.html)\n\n[Splitter](Sequencer.html)\n\n[Aggregator](Aggregator.html)\n\n[Resequencer](Resequencer.html)\n\n[Composed Msg. Processor](DistributionAggregate.html)\n\n[Scatter-Gather](BroadcastAggregate.html)\n\n[Routing Slip](RoutingTable.html)\n\n[Process Manager](ProcessManager.html)\n\n[Message Broker](MessageBroker.html)\n\n[Message\nTransformation](MessageTransformationIntro.html)\n\n[Message Translator](MessageTranslator.html)\n\n[Envelope Wrapper](EnvelopeWrapper.html)\n\n[Content Enricher](DataEnricher.html)\n\n[Content Filter](ContentFilter.html)\n\n[Claim Check](StoreInLibrary.html)\n\n[Normalizer](Normalizer.html)\n\n[Canonical Data Model](CanonicalDataModel.html)\n\n[Messaging Endpoints](MessagingEndpointsIntro.html)\n\n[Message Endpoint](MessageEndpoint.html)\n\n[Messaging Gateway](MessagingGateway.html)\n\n[Messaging Mapper](MessagingMapper.html)\n\n[Transactional Client](TransactionalClient.html)\n\n[Polling Consumer](PollingConsumer.html)\n\n[Event-driven Consumer](EventDrivenConsumer.html)\n\n[Competing Consumers](CompetingConsumers.html)\n\n[Message Dispatcher](MessageDispatcher.html)\n\n[Selective Consumer](MessageSelector.html)\n\n[Durable Subscriber](DurableSubscription.html)\n\n[Idempotent Receiver](IdempotentReceiver.html)\n\n[Service Activator](MessagingAdapter.html)\n\n[Messaging Channels](MessagingChannelsIntro.html)\n\n[Message Channel](MessageChannel.html)\n\n[Point-to-Point Channel](PointToPointChannel.html)\n\n[Publish-Subscr. Channel](PublishSubscribeChannel.html)\n\n[Datatype Channel](DatatypeChannel.html)\n\n[Invalid Message Channel](InvalidMessageChannel.html)\n\n[Dead Letter Channel](DeadLetterChannel.html)\n\n[Guaranteed Delivery](GuaranteedMessaging.html)\n\n[Channel Adapter](ChannelAdapter.html)\n\n[Messaging Bridge](MessagingBridge.html)\n\n[Message Bus](MessageBus.html)\n\n[Systems Mgmt.](SystemManagementIntro.html)\n\n[Control Bus](ControlBus.html)\n\n[Detour](Detour.html)\n\n[Wire Tap](WireTap.html)\n\n[Message History](MessageHistory.html)\n\n[Message Store](MessageStore.html)\n\n[Smart Proxy](SmartProxy.html)\n\n[Test Message](TestMessage.html)\n\n[Channel Purger](ChannelPurger.html)", "znaku_textu": 5605, "slov": 511, "odkazu": 110, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/ContentBasedRouter.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 06:02:26", "sha256": "2e1bcb059062a373d4a86319925c989b73ec891cebffe089608b4e48bc69256c", "hloubka": 1, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://camel.apache.org/", "http://creativecommons.org/licenses/by/4.0/", "https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "https://www.architectelevator.com/book", "https://www.cloudstrategybook.com/", "https://www.platformstrategybook.info/"]} {"url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/ContentFilter.html", "titulek": "Content Filter - Enterprise Integration Patterns", "h1": "", "popis": "How do you simplify dealing with a large message, when you are interested only in a few data items?", "klicova_slova": "Content Filter,integration, messaging, events, patterns, event-driven, coupling, eai, middleware, application integration, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns", "og:title": "Content Filter - Enterprise Integration Patterns", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/ContentFilter.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/ContentFilter.gif"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Integration Pattern Language"}], "markdown": "Messaging Patterns\n\n[Messaging Patterns](index.html)\n\n- [Integration Styles](IntegrationStylesIntro.html)\n- [Messaging Systems](MessagingComponentsIntro.html)\n- [Messaging Channels](MessagingChannelsIntro.html)\n- [Message Construction](MessageConstructionIntro.html)\n- [Interlude: Simple Messaging](SimpleMessagingIntro.html)\n- [Message Routing](MessageRoutingIntro.html)\n- [Message Transformation](MessageTransformationIntro.html)\n- [Interlude: Composed Messaging](ComposedMessagingExample.html)\n- [Messaging Endpoints](MessagingEndpointsIntro.html)\n- [System Management](SystemManagementIntro.html)\n- Interlude: Systems Management Example\n- Integration Patterns in Practice\n- Concluding Remarks\n- Appendices\n\n| | Content Filter[Messaging Patterns](index.html) » [Message Transformation](MessageTransformationIntro.html) | [Contents](toc.html)[⇐ Prev](DataEnricher.html)[Next ⇒](StoreInLibrary.html) |\n| --- | --- | --- |\n\nThe [*Content Enricher*](DataEnricher.html) helps us in situations where a message receiver requires more - or different - data elements than the message creator provides. There are surprisingly many situations where the opposite effect is desired: removing data elements from a message.\n\nHow do you simplify dealing with a large message, when you are interested only in a few data items?\n\nUse a *Content Filter* to remove unimportant data items from a message leaving only important items.\n\nThe *Content Filter* does not necessarily just remove data elements. A *Content Filter* is also useful to simplify the structure of the message. Often times, messages are represented as tree structures. Many messages originating from external systems or packaged applications contain many levels of nested, repeating groups because they are modeled after generic, normalized database structures. Frequently, known constraints and assumptions make this level of nesting superfluous and a *Content Filter* can be used to 'flatten' the hierarchy into a simple list of elements than can be more easily understood and processed by other systems.\n\n...\nRead the entire pattern in the book [Enterprise Integration Patterns](/books1.html)\n\n**Related patterns:**\n\n[*Channel Adapter*](ChannelAdapter.html), [*Content Enricher*](DataEnricher.html), [*Splitter*](Sequencer.html)\n\n---\n\n## Integration Pattern Language\n\n[Message Construct.](MessageConstructionIntro.html)\n\n[Message](Message.html)\n\n[Command Message](CommandMessage.html)\n\n[Document Message](DocumentMessage.html)\n\n[Event Message](EventMessage.html)\n\n[Request-Reply](RequestReply.html)\n\n[Return Address](ReturnAddress.html)\n\n[Correlation Identifier](CorrelationIdentifier.html)\n\n[Message Sequence](MessageSequence.html)\n\n[Message Expiration](MessageExpiration.html)\n\n[Format Indicator](FormatIndicator.html)\n\n[Message Routing](MessageRoutingIntro.html)\n\n[Pipes-and-Filters](PipesAndFilters.html)\n\n[Message Router](MessageRouter.html)\n\n[Content-based Router](ContentBasedRouter.html)\n\n[Message Filter](Filter.html)\n\n[Dynamic Router](DynamicRouter.html)\n\n[Recipient List](RecipientList.html)\n\n[Splitter](Sequencer.html)\n\n[Aggregator](Aggregator.html)\n\n[Resequencer](Resequencer.html)\n\n[Composed Msg. Processor](DistributionAggregate.html)\n\n[Scatter-Gather](BroadcastAggregate.html)\n\n[Routing Slip](RoutingTable.html)\n\n[Process Manager](ProcessManager.html)\n\n[Message Broker](MessageBroker.html)\n\n[Message\nTransformation](MessageTransformationIntro.html)\n\n[Message Translator](MessageTranslator.html)\n\n[Envelope Wrapper](EnvelopeWrapper.html)\n\n[Content Enricher](DataEnricher.html)\n\n[Content Filter](ContentFilter.html)\n\n[Claim Check](StoreInLibrary.html)\n\n[Normalizer](Normalizer.html)\n\n[Canonical Data Model](CanonicalDataModel.html)\n\n[Messaging Endpoints](MessagingEndpointsIntro.html)\n\n[Message Endpoint](MessageEndpoint.html)\n\n[Messaging Gateway](MessagingGateway.html)\n\n[Messaging Mapper](MessagingMapper.html)\n\n[Transactional Client](TransactionalClient.html)\n\n[Polling Consumer](PollingConsumer.html)\n\n[Event-driven Consumer](EventDrivenConsumer.html)\n\n[Competing Consumers](CompetingConsumers.html)\n\n[Message Dispatcher](MessageDispatcher.html)\n\n[Selective Consumer](MessageSelector.html)\n\n[Durable Subscriber](DurableSubscription.html)\n\n[Idempotent Receiver](IdempotentReceiver.html)\n\n[Service Activator](MessagingAdapter.html)\n\n[Messaging Channels](MessagingChannelsIntro.html)\n\n[Message Channel](MessageChannel.html)\n\n[Point-to-Point Channel](PointToPointChannel.html)\n\n[Publish-Subscr. Channel](PublishSubscribeChannel.html)\n\n[Datatype Channel](DatatypeChannel.html)\n\n[Invalid Message Channel](InvalidMessageChannel.html)\n\n[Dead Letter Channel](DeadLetterChannel.html)\n\n[Guaranteed Delivery](GuaranteedMessaging.html)\n\n[Channel Adapter](ChannelAdapter.html)\n\n[Messaging Bridge](MessagingBridge.html)\n\n[Message Bus](MessageBus.html)\n\n[Systems Mgmt.](SystemManagementIntro.html)\n\n[Control Bus](ControlBus.html)\n\n[Detour](Detour.html)\n\n[Wire Tap](WireTap.html)\n\n[Message History](MessageHistory.html)\n\n[Message Store](MessageStore.html)\n\n[Smart Proxy](SmartProxy.html)\n\n[Test Message](TestMessage.html)\n\n[Channel Purger](ChannelPurger.html)\n\n- » [Read the latest in My Blog](/ramblings)\n- » [Get more insights from My Articles](/articles.html)\n- » [See me live in my Upcoming Talks](/talks)\n\nYou can reuse the following elements under the [Creative Commons Attribution](http://creativecommons.org/licenses/by/4.0/) license: pattern icon, pattern name, problem and solution statements (in bold), and the sketch. Other portions are protected by copyright.\n\n[Enterprise Integration Patterns](https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20)\nThe de-facto language for designing asynchronous, distributed systems. Over 100,000 copies sold.\n\n[The Software Architect Elevator](https://www.architectelevator.com/book)\n\n Rethink the role of architects as a connecting element across organizational layers. Acquire the technical, communication, and organizational skills to succeed in this new role.\n\n[Cloud Strategy](https://www.cloudstrategybook.com)\n\n Make your cloud migration a success by translating high-level goals into conscious decisions with well-understood trade-offs.\n\n[Platform Strategy](https://www.platformstrategybook.info)\n\n Platforms can boost innovation through harmonization, but they aren't easy to build. Learn from over a decade of designing and rolling out IT platforms.", "znaku_textu": 6227, "slov": 528, "odkazu": 108, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/ContentFilter.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 06:02:42", "sha256": "f69bfd2a462917b1a97497a9362c30a30d9744d85cd8258b01fa9ee0a9118afb", "hloubka": 1, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://creativecommons.org/licenses/by/4.0/", "https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "https://www.architectelevator.com/book", "https://www.cloudstrategybook.com/", "https://www.platformstrategybook.info/"]} {"url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/ControlBus.html", "titulek": "Control Bus - Enterprise Integration Patterns", "h1": "", "popis": "How can we effectively administer a messaging system that is distributed across multiple platforms and a wide geographic area?", "klicova_slova": "Control Bus,integration, messaging, events, patterns, event-driven, coupling, eai, middleware, application integration, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns", "og:title": "Control Bus - Enterprise Integration Patterns", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/ControlBus.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/ControlBus.gif"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Integration Pattern Language"}], "markdown": "Messaging Patterns\n\n[Messaging Patterns](index.html)\n\n- [Integration Styles](IntegrationStylesIntro.html)\n- [Messaging Systems](MessagingComponentsIntro.html)\n- [Messaging Channels](MessagingChannelsIntro.html)\n- [Message Construction](MessageConstructionIntro.html)\n- [Interlude: Simple Messaging](SimpleMessagingIntro.html)\n- [Message Routing](MessageRoutingIntro.html)\n- [Message Transformation](MessageTransformationIntro.html)\n- [Interlude: Composed Messaging](ComposedMessagingExample.html)\n- [Messaging Endpoints](MessagingEndpointsIntro.html)\n- [System Management](SystemManagementIntro.html)\n- Interlude: Systems Management Example\n- Integration Patterns in Practice\n- Concluding Remarks\n- Appendices\n\n| | Control Bus[Messaging Patterns](index.html) » [System Management](SystemManagementIntro.html) | [Contents](toc.html)[⇐ Prev](SystemManagementIntro.html)[Next ⇒](Detour.html) |\n| --- | --- | --- |\n\nNaturally, enterprise integration systems are distributed. In fact, one of the defining qualities of an enterprise messaging system is to enable communication between disparate systems. Messaging systems allow information to be routed and transformed so that data can be exchanged between these systems. In most cases, these applications are spread across multiple networks, buildings, cities or continents.\n\nHow can we effectively administer a messaging system that is distributed across multiple platforms and a wide geographic area?\n\nUse a *Control Bus* to manage an enterprise integration system. The *Control Bus* uses the same messaging mechanism used by the application data, but uses separate channels to transmit data that is relevant to the management of components involved in the message flow.\n\nEach component in the system is now connected to two messaging subsystems:\n\n- The Application Message Flow\n- The *Control Bus*\n\n...\nRead the entire pattern in the book [Enterprise Integration Patterns](/books1.html)\n\n**Related patterns:**\n\n[*Asynchronous Implementation with MSMQ*](ComposedMessagingMSMQ.html), [*Content-Based Router*](ContentBasedRouter.html), [*Loan Broker System Management*](SystemManagementExample.html), [*Test Message*](TestMessage.html)\n\n---\n\n## Integration Pattern Language\n\n[Message Construct.](MessageConstructionIntro.html)\n\n[Message](Message.html)\n\n[Command Message](CommandMessage.html)\n\n[Document Message](DocumentMessage.html)\n\n[Event Message](EventMessage.html)\n\n[Request-Reply](RequestReply.html)\n\n[Return Address](ReturnAddress.html)\n\n[Correlation Identifier](CorrelationIdentifier.html)\n\n[Message Sequence](MessageSequence.html)\n\n[Message Expiration](MessageExpiration.html)\n\n[Format Indicator](FormatIndicator.html)\n\n[Message Routing](MessageRoutingIntro.html)\n\n[Pipes-and-Filters](PipesAndFilters.html)\n\n[Message Router](MessageRouter.html)\n\n[Content-based Router](ContentBasedRouter.html)\n\n[Message Filter](Filter.html)\n\n[Dynamic Router](DynamicRouter.html)\n\n[Recipient List](RecipientList.html)\n\n[Splitter](Sequencer.html)\n\n[Aggregator](Aggregator.html)\n\n[Resequencer](Resequencer.html)\n\n[Composed Msg. Processor](DistributionAggregate.html)\n\n[Scatter-Gather](BroadcastAggregate.html)\n\n[Routing Slip](RoutingTable.html)\n\n[Process Manager](ProcessManager.html)\n\n[Message Broker](MessageBroker.html)\n\n[Message\nTransformation](MessageTransformationIntro.html)\n\n[Message Translator](MessageTranslator.html)\n\n[Envelope Wrapper](EnvelopeWrapper.html)\n\n[Content Enricher](DataEnricher.html)\n\n[Content Filter](ContentFilter.html)\n\n[Claim Check](StoreInLibrary.html)\n\n[Normalizer](Normalizer.html)\n\n[Canonical Data Model](CanonicalDataModel.html)\n\n[Messaging Endpoints](MessagingEndpointsIntro.html)\n\n[Message Endpoint](MessageEndpoint.html)\n\n[Messaging Gateway](MessagingGateway.html)\n\n[Messaging Mapper](MessagingMapper.html)\n\n[Transactional Client](TransactionalClient.html)\n\n[Polling Consumer](PollingConsumer.html)\n\n[Event-driven Consumer](EventDrivenConsumer.html)\n\n[Competing Consumers](CompetingConsumers.html)\n\n[Message Dispatcher](MessageDispatcher.html)\n\n[Selective Consumer](MessageSelector.html)\n\n[Durable Subscriber](DurableSubscription.html)\n\n[Idempotent Receiver](IdempotentReceiver.html)\n\n[Service Activator](MessagingAdapter.html)\n\n[Messaging Channels](MessagingChannelsIntro.html)\n\n[Message Channel](MessageChannel.html)\n\n[Point-to-Point Channel](PointToPointChannel.html)\n\n[Publish-Subscr. Channel](PublishSubscribeChannel.html)\n\n[Datatype Channel](DatatypeChannel.html)\n\n[Invalid Message Channel](InvalidMessageChannel.html)\n\n[Dead Letter Channel](DeadLetterChannel.html)\n\n[Guaranteed Delivery](GuaranteedMessaging.html)\n\n[Channel Adapter](ChannelAdapter.html)\n\n[Messaging Bridge](MessagingBridge.html)\n\n[Message Bus](MessageBus.html)\n\n[Systems Mgmt.](SystemManagementIntro.html)\n\n[Control Bus](ControlBus.html)\n\n[Detour](Detour.html)\n\n[Wire Tap](WireTap.html)\n\n[Message History](MessageHistory.html)\n\n[Message Store](MessageStore.html)\n\n[Smart Proxy](SmartProxy.html)\n\n[Test Message](TestMessage.html)\n\n[Channel Purger](ChannelPurger.html)\n\n- » [Read the latest in My Blog](/ramblings)\n- » [Get more insights from My Articles](/articles.html)\n- » [See me live in my Upcoming Talks](/talks)\n\nYou can reuse the following elements under the [Creative Commons Attribution](http://creativecommons.org/licenses/by/4.0/) license: pattern icon, pattern name, problem and solution statements (in bold), and the sketch. Other portions are protected by copyright.\n\n[Enterprise Integration Patterns](https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20)\nThe de-facto language for designing asynchronous, distributed systems. Over 100,000 copies sold.\n\n[The Software Architect Elevator](https://www.architectelevator.com/book)\n\n Rethink the role of architects as a connecting element across organizational layers. Acquire the technical, communication, and organizational skills to succeed in this new role.\n\n[Cloud Strategy](https://www.cloudstrategybook.com)\n\n Make your cloud migration a success by translating high-level goals into conscious decisions with well-understood trade-offs.\n\n[Platform Strategy](https://www.platformstrategybook.info)\n\n Platforms can boost innovation through harmonization, but they aren't easy to build. Learn from over a decade of designing and rolling out IT platforms.", "znaku_textu": 6130, "slov": 505, "odkazu": 108, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/ControlBus.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 06:03:03", "sha256": "02e972bbe0613828b484908e5a6d0c01de80d324a76267dc0bd80763a925f6bb", "hloubka": 1, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://creativecommons.org/licenses/by/4.0/", "https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "https://www.architectelevator.com/book", "https://www.cloudstrategybook.com/", "https://www.platformstrategybook.info/"]} {"url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/CorrelationIdentifier.html", "titulek": "Correlation Identifier - Enterprise Integration Patterns", "h1": "", "popis": "How does a requestor that has received a reply know which request this is the reply for?", "klicova_slova": "Correlation Identifier,integration, messaging, events, patterns, event-driven, coupling, eai, middleware, application integration, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns", "og:title": "Correlation Identifier - Enterprise Integration Patterns", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/CorrelationIdentifier.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/CorrelationIdentifierSolution.gif"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Integration Pattern Language"}], "markdown": "Messaging Patterns\n\n[Messaging Patterns](index.html)\n\n- [Integration Styles](IntegrationStylesIntro.html)\n- [Messaging Systems](MessagingComponentsIntro.html)\n- [Messaging Channels](MessagingChannelsIntro.html)\n- [Message Construction](MessageConstructionIntro.html)\n- [Interlude: Simple Messaging](SimpleMessagingIntro.html)\n- [Message Routing](MessageRoutingIntro.html)\n- [Message Transformation](MessageTransformationIntro.html)\n- [Interlude: Composed Messaging](ComposedMessagingExample.html)\n- [Messaging Endpoints](MessagingEndpointsIntro.html)\n- [System Management](SystemManagementIntro.html)\n- Interlude: Systems Management Example\n- Integration Patterns in Practice\n- Concluding Remarks\n- Appendices\n\n| | Correlation Identifier[Messaging Patterns](index.html) » [Message Construction](MessageConstructionIntro.html) | [Contents](toc.html)[⇐ Prev](ReturnAddress.html)[Next ⇒](MessageSequence.html) |\n| --- | --- | --- |\n\nMy application is using [*Messaging*](Messaging.html) to perform a [*Request-Reply*](RequestReply.html) and has received a reply message.\n\nHow does a requestor that has received a reply know which request this is the reply for?\n\nEach reply message should contain a *Correlation Identifier*, a unique identifier that indicates which request message this reply is for.\n\nThere are six parts to *Correlation Identifier*:\n\n1. **Requestor** — An application that performs a business task by sending a request and waiting for a reply.\n2. **Replier** — Another application that receives the request, fulfills it, then sends the reply. It gets the request ID from the request and stores it as the correlation ID in the reply.\n3. **Request** — A [*Message*](Message.html) sent from the requestor to the replier containing a request ID.\n4. **Reply** — A [*Message*](Message.html) sent from the replier to the requestor containing a correlation ID.\n5. **Request ID** — A token in the request that uniquely identifies the request.\n6. **Correlation ID** — A token in the reply that has the same value as the request ID in the request.\n\n...\nRead the entire pattern in the book [Enterprise Integration Patterns](/books1.html)\n\n**Related patterns:**\n\n[*Remote Procedure Invocation*](EncapsulatedSynchronousIntegration.html), [*Message*](Message.html), [*Selective Consumer*](MessageSelector.html), [*Message Sequence*](MessageSequence.html), [*Messaging*](Messaging.html), [*Request-Reply*](RequestReply.html), [*Return Address*](ReturnAddress.html)\n\n**Further reading:**\n\n- [Correlation and Conversations](/ramblings/09_correlation.html)\n\n---\n\n## Integration Pattern Language\n\n[Message Construct.](MessageConstructionIntro.html)\n\n[Message](Message.html)\n\n[Command Message](CommandMessage.html)\n\n[Document Message](DocumentMessage.html)\n\n[Event Message](EventMessage.html)\n\n[Request-Reply](RequestReply.html)\n\n[Return Address](ReturnAddress.html)\n\n[Correlation Identifier](CorrelationIdentifier.html)\n\n[Message Sequence](MessageSequence.html)\n\n[Message Expiration](MessageExpiration.html)\n\n[Format Indicator](FormatIndicator.html)\n\n[Message Routing](MessageRoutingIntro.html)\n\n[Pipes-and-Filters](PipesAndFilters.html)\n\n[Message Router](MessageRouter.html)\n\n[Content-based Router](ContentBasedRouter.html)\n\n[Message Filter](Filter.html)\n\n[Dynamic Router](DynamicRouter.html)\n\n[Recipient List](RecipientList.html)\n\n[Splitter](Sequencer.html)\n\n[Aggregator](Aggregator.html)\n\n[Resequencer](Resequencer.html)\n\n[Composed Msg. Processor](DistributionAggregate.html)\n\n[Scatter-Gather](BroadcastAggregate.html)\n\n[Routing Slip](RoutingTable.html)\n\n[Process Manager](ProcessManager.html)\n\n[Message Broker](MessageBroker.html)\n\n[Message\nTransformation](MessageTransformationIntro.html)\n\n[Message Translator](MessageTranslator.html)\n\n[Envelope Wrapper](EnvelopeWrapper.html)\n\n[Content Enricher](DataEnricher.html)\n\n[Content Filter](ContentFilter.html)\n\n[Claim Check](StoreInLibrary.html)\n\n[Normalizer](Normalizer.html)\n\n[Canonical Data Model](CanonicalDataModel.html)\n\n[Messaging Endpoints](MessagingEndpointsIntro.html)\n\n[Message Endpoint](MessageEndpoint.html)\n\n[Messaging Gateway](MessagingGateway.html)\n\n[Messaging Mapper](MessagingMapper.html)\n\n[Transactional Client](TransactionalClient.html)\n\n[Polling Consumer](PollingConsumer.html)\n\n[Event-driven Consumer](EventDrivenConsumer.html)\n\n[Competing Consumers](CompetingConsumers.html)\n\n[Message Dispatcher](MessageDispatcher.html)\n\n[Selective Consumer](MessageSelector.html)\n\n[Durable Subscriber](DurableSubscription.html)\n\n[Idempotent Receiver](IdempotentReceiver.html)\n\n[Service Activator](MessagingAdapter.html)\n\n[Messaging Channels](MessagingChannelsIntro.html)\n\n[Message Channel](MessageChannel.html)\n\n[Point-to-Point Channel](PointToPointChannel.html)\n\n[Publish-Subscr. Channel](PublishSubscribeChannel.html)\n\n[Datatype Channel](DatatypeChannel.html)\n\n[Invalid Message Channel](InvalidMessageChannel.html)\n\n[Dead Letter Channel](DeadLetterChannel.html)\n\n[Guaranteed Delivery](GuaranteedMessaging.html)\n\n[Channel Adapter](ChannelAdapter.html)\n\n[Messaging Bridge](MessagingBridge.html)\n\n[Message Bus](MessageBus.html)\n\n[Systems Mgmt.](SystemManagementIntro.html)\n\n[Control Bus](ControlBus.html)\n\n[Detour](Detour.html)\n\n[Wire Tap](WireTap.html)\n\n[Message History](MessageHistory.html)\n\n[Message Store](MessageStore.html)\n\n[Smart Proxy](SmartProxy.html)\n\n[Test Message](TestMessage.html)\n\n[Channel Purger](ChannelPurger.html)\n\n- » [Read the latest in My Blog](/ramblings)\n- » [Get more insights from My Articles](/articles.html)\n- » [See me live in my Upcoming Talks](/talks)\n\nYou can reuse the following elements under the [Creative Commons Attribution](http://creativecommons.org/licenses/by/4.0/) license: pattern icon, pattern name, problem and solution statements (in bold), and the sketch. Other portions are protected by copyright.\n\n[Enterprise Integration Patterns](https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20)\nThe de-facto language for designing asynchronous, distributed systems. Over 100,000 copies sold.\n\n[The Software Architect Elevator](https://www.architectelevator.com/book)\n\n Rethink the role of architects as a connecting element across organizational layers. Acquire the technical, communication, and organizational skills to succeed in this new role.\n\n[Cloud Strategy](https://www.cloudstrategybook.com)\n\n Make your cloud migration a success by translating high-level goals into conscious decisions with well-understood trade-offs.\n\n[Platform Strategy](https://www.platformstrategybook.info)\n\n Platforms can boost innovation through harmonization, but they aren't easy to build. Learn from over a decade of designing and rolling out IT platforms.", "znaku_textu": 6477, "slov": 567, "odkazu": 109, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/CorrelationIdentifier.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 06:02:17", "sha256": "d388f9c3f4b82638a3d57033e9e8e779ab919370c13af8a5fd79c76219e327e1", "hloubka": 1, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://creativecommons.org/licenses/by/4.0/", "https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "https://www.architectelevator.com/book", "https://www.cloudstrategybook.com/", "https://www.platformstrategybook.info/"]} {"url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/DataEnricher.html", "titulek": "Content Enricher - Enterprise Integration Patterns", "h1": "", "popis": "How do we communicate with another system if the message originator does not have all the required data items available?", "klicova_slova": "Content Enricher,integration, messaging, events, patterns, event-driven, coupling, eai, middleware, application integration, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns", "og:title": "Content Enricher - Enterprise Integration Patterns", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/DataEnricher.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/DataEnricher.gif"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Example: Content Enricher with Amazon EventBridge PipesNEW"}, {"uroven": 2, "text": "Integration Pattern Language"}], "markdown": "| | Content Enricher[Messaging Patterns](index.html) » [Message Transformation](MessageTransformationIntro.html) | [Contents](toc.html)[⇐ Prev](EnvelopeWrapper.html)[Next ⇒](ContentFilter.html) |\n| --- | --- | --- |\n\nWhen sending messages from one system to another it is common for the target system to require more information than the source system can provide. For example, incoming Address messages may just contain the ZIP code because the designers felt that storing a redundant state code would be superfluous. Likely, another system is going to want to specify both a state code and a ZIP code field. Yet another system may not actually use state codes, but spell the state name out because it uses free-form addresses in order to support international addresses. Likewise, one system may provide us with a customer ID, but the receiving system actually requires the customer name and address. An order message sent by the order management system may just contain an order number, but we need to find the customer ID associated with that order, so we can pass it to the customer management system. The scenarios are plentiful.\n\nHow do we communicate with another system if the message originator does not have all the required data items available?\n\nUse a specialized transformer, a *Content Enricher*, to access an external data source in order to augment a message with missing information.\n\nThe *Content Enricher* uses information inside the incoming message (e.g. key fields) to retrieve data from an external source. After the *Content Enricher* retrieves the required data from the resource, it appends the data to the message. The original information from the incoming message may be carried over into the resulting message or may no longer be needed, depending on the specific needs of the receiving application.\n\nThe additional information injected by the *Content Enricher* has to be available somewhere in the system. The most common sources for the new data are:\n\n- **Computation** The *Content Enricher* may be able to compute the missing information. In this case, the algorithm incorporates the additional information. For example, if the receiving system requires a state code but the incoming message only contains a ZIP code. Or, a receiving system may require a data format that specifies the total size of the message. The *Content Enricher* can add the length of all message fields and thus compute the message size. This form of *Content Enricher* is very similar to the basic [*Message Translator*](MessageTranslator.html) because it needs no external data source.\n- **Environment** The *Content Enricher* may be able to retrieve the additional data from the operating environment. The most common example is a time stamp. For example, the receiving system may require each message to carry a time stamp. if the sending system does not include this field, the *Content Enricher* can get the current time from the operating system and add it to the message.\n- **Another System** This option is the most common one. The *Content Enricher* has to retrieve the missing data from another system. This data resource can take on a number of forms, including a database, a file, an LDAP directory, a system, or a user who manually enters missing data.\n\n...\nRead the entire pattern in the book [Enterprise Integration Patterns](/books1.html)\n\n## Example: Content Enricher with Amazon EventBridge Pipes[NEW](/ramblings/eip1_examples_updated.html)\n\nFor cloud-based messaging systems, [Amazon EventBridge Pipes](https://docs.aws.amazon.com/eventbridge/latest/userguide/eb-pipes.html#pipes-enrichment) can implement a *Content Enricher* through the \"Enrichment\" step:\n\n*Enriching messages with Amazon EventBridge Pipes*\n\nThe step itself is a slight misnomer as it can implement any [*Message Translator*](MessageTranslator.html) or even a [*Message Filter*](Filter.html) for batched sources. The pipe simply passes on the message(s) that are returned by the *Enrichment* step. To build an actual *Content Enricher*, you can use a Lambda function that fetches additional data from a DynamoDB table based on a key from the original message. You can find the source code for this example implementation in the [EIP Code Repository](https://github.com/spac3lord/eip/tree/master/ContentEnricher).\n\nYou start out by creating two [*Message Channel*](MessageChannel.html)s in form of Amazon SQS Queues (the example uses the AWS CLI command line to keep things simple; for real projects an automation script is highly recommended):\n\n```\n$ aws sqs create-queue --queue-name EntityIDs --attributes='{\"MessageRetentionPeriod\": \"300\"}'\n$ aws sqs create-queue --queue-name EntityUpdates --attributes='{\"MessageRetentionPeriod\": \"300\"}'\n$ aws sqs list-queues\n```\n\nThe last command prints out the URLs of the created queues, which you will need later.\n\nThe *Content Enricher*, implemented in EventBridge Pipes, Lambda, and DynamoDB, will fetch messages containing just id fields from *EntityID* queue and publish enriched events to the *EntityUpdates* queue. To build the *Content Enricher*, you first create a table to hold the *Entity* data and load it up with sample data, which is most easily done with a JSON file (available in the [EIP Code Repository](https://github.com/spac3lord/eip/tree/master/ContentEnricher)):\n\n```\n$ aws dynamodb create-table --table-name Entities \\\n --attribute-definitions AttributeName=id,AttributeType=S \\\n --key-schema AttributeName=id,KeyType=HASH \\\n --billing-mode PAY_PER_REQUEST\n\n$ aws dynamodb batch-write-item --request-items file://entities.json\n```\n\nTo check that the table is loaded (and to get accustomed to DynamoDB's syntax), you can fetch an entity:\n\n```\n $ aws dynamodb get-item --table-name Entities --key '{\"id\": {\"S\": \"123\"}}'\n {\n \"Item\": {\n \"id\": { \"S\": \"123\" },\n \"Amount\": { \"N\": \"12.34\" },\n \"Type\": { \"S\": \"Order\" },\n \"Customer\": { \"S\": \"Pete's Pizza\" }\n }\n}\n```\n\nBefore you create the Pipe, you need to create a security role with the required permissions (the trust policy file is supplied in the EIP repository) so that your pipe can read and write messages from SQS and invoke a Lambda function. It's also handy to get your account ID and store it in a variable (if the command line doesn't support evaluations, you can execute the command by hand and set the variable explicitly or just replace $id with the number on each command line):\n\n```\n$ id=`aws sts get-caller-identity --query 'Account' --output text`\n$ echo $id\n1234567890\n\n$ aws iam create-role --role-name EventBridge_Pipes_Enricher --assume-role-policy-document file://trust_policy_pipes.json\n\n$ aws iam create-policy --policy-name pipes_sqs_lambda_sqs --policy-document file://pipes_role_policy.json \\\n --query Policy.Arn --output text\n\n$ aws iam attach-role-policy --role-name EventBridge_Pipes_Enricher --policy-arn arn:aws:iam::$id:policy/pipes_sqs_lambda_sqs\n```\n\nAdditionally, you need to grant write permission to the *EntityUpdates* queue with a so-called resource policy that's attached to a resource instead of a role:\n\n```\n$ aws sqs add-permission --queue-url= https://sqs.ap-southeast-1.amazonaws.com/$id/EntityUpdates \\\n --aws-account-ids=$id \\\n --actions SendMessage ReceiveMessage DeleteMessage ChangeMessageVisibility \\\n --label SendEntities\n```\n\nYou can now create a Pipe and give it the required permissions through the role you just created (notice the use of $id for the account ID):\n\n```\n$ aws pipes create-pipe --name ContentEnricher \\\n --source arn:aws:sqs:ap-southeast-1:$id:EntityIDs \\\n --target arn:aws:sqs:ap-southeast-1:$id:EntityUpdates \\\n --enrichment arn:aws:lambda:ap-southeast-1:$id:function:EnrichFromDynamoDB \\\n --role-arn arn:aws:iam::$id:role/EventBridge_Pipes_Enricher\n```\n\nYou also need to deploy the Lambda function that looks up the entities from the database and returns the enriched messages. EventBridge pipes can work in batches, meaning it can fetch more than one event from the event source at one time. Correspondingly, your Lambda function has to be prepared receive a list of IDs. In my implementation, it uses the batch_get_item method to look up all IDs at once (invalid IDs simply don't return an item):\n\n```\nimport json\nimport boto3\n\ndynamo = boto3.resource('dynamodb')\ntable_name = 'Entities'\n\ndef lambda_handler(event, context):\n keys = []\n for evt in event:\n body = json.loads(evt['body'])\n keys += [ {'id': body['id']} ]\n data = dynamo.batch_get_item(RequestItems={table_name: {'Keys': keys} })\n return data['Responses'][table_name]\n```\n\nAs you might have guessed, the Lambda function also needs a role that allows it to read from DynamoDB and write logs:\n\n```\n$ aws iam create-role --role-name Lambda_Enricher --assume-role-policy-document file://trust_policy_lambda.json\n\n$ aws iam attach-role-policy --role-name Lambda_Enricher --policy-arn arn:aws:iam::aws:policy/AmazonDynamoDBReadOnlyAccess\n\n$ aws iam attach-role-policy --role-name Lambda_Enricher --policy-arn arn:aws:iam::aws:policy/service-role/AWSLambdaBasicExecutionRole\n```\n\nTo deploy the function directly, you need to first zip it up (using any Zip utility) to code.zip and deploy it with the following command line (again, notice the $id being referenced):\n\n```\n$ aws lambda create-function --function-name EnrichFromDynamoDB \\\n --role arn:aws:iam::$id:role/Lambda_Enricher \\\n --runtime python3.9 --zip-file fileb://code.zip --handler DynamoDBEnricher.lambda_handler\n```\n\nShow time! You can now send a message to the inbound queue for the *Content Enricher* and poll the result queue for enriched messages (the query and output parameters just filter down the output to the message body; feel free to omit them for the full experience):\n\n```\n$ aws sqs send-message --queue-url https://sqs.ap-southeast-1.amazonaws.com/$id/EntityIDs --message-body '{\"id\": \"123\"}'\n$ aws sqs send-message --queue-url https://sqs.ap-southeast-1.amazonaws.com/$id/EntityIDs --message-body '{\"id\": \"456\"}'\n\n$ aws sqs receive-message --max-number-of-messages 5 \\\n --queue-url https://sqs.ap-southeast-1.amazonaws.com/$id/EntityUpdates \\\n --query 'Messages[*].Body' --output text\n{\"id\":\"123\",\"Amount\":\"12.34\",\"Type\":\"Order\",\"Customer\":\"Pete's Pizza\"}\n{\"id\":\"456\",\"Amount\":\"22.22\",\"Type\":\"Order\",\"Customer\":\"Mary's Muffins\"}\n```\n\n**Related patterns:**\n\n[*Content Filter*](ContentFilter.html), [*Event Message*](EventMessage.html), [*Message Filter*](Filter.html), [*Message Channel*](MessageChannel.html), [*Message Translator*](MessageTranslator.html), [*Claim Check*](StoreInLibrary.html)\n\n---\n\n## Integration Pattern Language\n\n[Message Construct.](MessageConstructionIntro.html)\n\n[Message](Message.html)\n\n[Command Message](CommandMessage.html)\n\n[Document Message](DocumentMessage.html)\n\n[Event Message](EventMessage.html)\n\n[Request-Reply](RequestReply.html)\n\n[Return Address](ReturnAddress.html)\n\n[Correlation Identifier](CorrelationIdentifier.html)\n\n[Message Sequence](MessageSequence.html)\n\n[Message Expiration](MessageExpiration.html)\n\n[Format Indicator](FormatIndicator.html)\n\n[Message Routing](MessageRoutingIntro.html)\n\n[Pipes-and-Filters](PipesAndFilters.html)\n\n[Message Router](MessageRouter.html)\n\n[Content-based Router](ContentBasedRouter.html)\n\n[Message Filter](Filter.html)\n\n[Dynamic Router](DynamicRouter.html)\n\n[Recipient List](RecipientList.html)\n\n[Splitter](Sequencer.html)\n\n[Aggregator](Aggregator.html)\n\n[Resequencer](Resequencer.html)\n\n[Composed Msg. Processor](DistributionAggregate.html)\n\n[Scatter-Gather](BroadcastAggregate.html)\n\n[Routing Slip](RoutingTable.html)\n\n[Process Manager](ProcessManager.html)\n\n[Message Broker](MessageBroker.html)\n\n[Message\nTransformation](MessageTransformationIntro.html)\n\n[Message Translator](MessageTranslator.html)\n\n[Envelope Wrapper](EnvelopeWrapper.html)\n\n[Content Enricher](DataEnricher.html)\n\n[Content Filter](ContentFilter.html)\n\n[Claim Check](StoreInLibrary.html)\n\n[Normalizer](Normalizer.html)\n\n[Canonical Data Model](CanonicalDataModel.html)\n\n[Messaging Endpoints](MessagingEndpointsIntro.html)\n\n[Message Endpoint](MessageEndpoint.html)\n\n[Messaging Gateway](MessagingGateway.html)\n\n[Messaging Mapper](MessagingMapper.html)\n\n[Transactional Client](TransactionalClient.html)\n\n[Polling Consumer](PollingConsumer.html)\n\n[Event-driven Consumer](EventDrivenConsumer.html)\n\n[Competing Consumers](CompetingConsumers.html)\n\n[Message Dispatcher](MessageDispatcher.html)\n\n[Selective Consumer](MessageSelector.html)\n\n[Durable Subscriber](DurableSubscription.html)\n\n[Idempotent Receiver](IdempotentReceiver.html)\n\n[Service Activator](MessagingAdapter.html)\n\n[Messaging Channels](MessagingChannelsIntro.html)\n\n[Message Channel](MessageChannel.html)\n\n[Point-to-Point Channel](PointToPointChannel.html)\n\n[Publish-Subscr. Channel](PublishSubscribeChannel.html)\n\n[Datatype Channel](DatatypeChannel.html)\n\n[Invalid Message Channel](InvalidMessageChannel.html)\n\n[Dead Letter Channel](DeadLetterChannel.html)\n\n[Guaranteed Delivery](GuaranteedMessaging.html)\n\n[Channel Adapter](ChannelAdapter.html)\n\n[Messaging Bridge](MessagingBridge.html)\n\n[Message Bus](MessageBus.html)\n\n[Systems Mgmt.](SystemManagementIntro.html)\n\n[Control Bus](ControlBus.html)\n\n[Detour](Detour.html)\n\n[Wire Tap](WireTap.html)\n\n[Message History](MessageHistory.html)\n\n[Message Store](MessageStore.html)\n\n[Smart Proxy](SmartProxy.html)\n\n[Test Message](TestMessage.html)\n\n[Channel Purger](ChannelPurger.html)", "znaku_textu": 13013, "slov": 1606, "odkazu": 111, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/DataEnricher.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 06:02:41", "sha256": "5abab4ed38c6771bde64ba64de89986647662400f460b1873ade68e41f7dcb1d", "hloubka": 1, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://docs.aws.amazon.com/eventbridge/latest/userguide/eb-pipes.html", "https://github.com/spac3lord/eip/tree/master/ContentEnricher", "http://creativecommons.org/licenses/by/4.0/", "https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "https://www.architectelevator.com/book", "https://www.cloudstrategybook.com/", "https://www.platformstrategybook.info/"]} {"url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/DatatypeChannel.html", "titulek": "Datatype Channel - Enterprise Integration Patterns", "h1": "", "popis": "How can the application send a data item such that the receiver will know how to process it?", "klicova_slova": "Datatype Channel,integration, messaging, events, patterns, event-driven, coupling, eai, middleware, application integration, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns", "og:title": "Datatype Channel - Enterprise Integration Patterns", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/DatatypeChannel.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/DatatypeSolution.gif"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Integration Pattern Language"}], "markdown": "Messaging Patterns\n\n[Messaging Patterns](index.html)\n\n- [Integration Styles](IntegrationStylesIntro.html)\n- [Messaging Systems](MessagingComponentsIntro.html)\n- [Messaging Channels](MessagingChannelsIntro.html)\n- [Message Construction](MessageConstructionIntro.html)\n- [Interlude: Simple Messaging](SimpleMessagingIntro.html)\n- [Message Routing](MessageRoutingIntro.html)\n- [Message Transformation](MessageTransformationIntro.html)\n- [Interlude: Composed Messaging](ComposedMessagingExample.html)\n- [Messaging Endpoints](MessagingEndpointsIntro.html)\n- [System Management](SystemManagementIntro.html)\n- Interlude: Systems Management Example\n- Integration Patterns in Practice\n- Concluding Remarks\n- Appendices\n\n| | Datatype Channel[Messaging Patterns](index.html) » [Messaging Channels](MessagingChannelsIntro.html) | [Contents](toc.html)[⇐ Prev](PublishSubscribeChannel.html)[Next ⇒](InvalidMessageChannel.html) |\n| --- | --- | --- |\n\nAn application is using [*Messaging*](Messaging.html) to transfer different types of data, such as different types of documents.\n\nHow can the application send a data item such that the receiver will know how to process it?\n\nUse a separate *Datatype Channel* for each data type, so that all data on a particular channel is of the same type.\n\nBy using a separate *Datatype Channel* for each type of data, all of the messages on a given channel will contain the same type of data. The sender, knowing what type the data is, will need to select the appropriate channel to send it on. The receiver, knowing what channel the data was received on, will know what its type is.\n\n...\nRead the entire pattern in the book [Enterprise Integration Patterns](/books1.html)\n\n**Related patterns:**\n\n[*Canonical Data Model*](CanonicalDataModel.html), [*Command Message*](CommandMessage.html), [*Format Indicator*](FormatIndicator.html), [*Message Channel*](MessageChannel.html), [*Message Dispatcher*](MessageDispatcher.html), [*Selective Consumer*](MessageSelector.html), [*Messaging*](Messaging.html)\n\n---\n\n## Integration Pattern Language\n\n[Message Construct.](MessageConstructionIntro.html)\n\n[Message](Message.html)\n\n[Command Message](CommandMessage.html)\n\n[Document Message](DocumentMessage.html)\n\n[Event Message](EventMessage.html)\n\n[Request-Reply](RequestReply.html)\n\n[Return Address](ReturnAddress.html)\n\n[Correlation Identifier](CorrelationIdentifier.html)\n\n[Message Sequence](MessageSequence.html)\n\n[Message Expiration](MessageExpiration.html)\n\n[Format Indicator](FormatIndicator.html)\n\n[Message Routing](MessageRoutingIntro.html)\n\n[Pipes-and-Filters](PipesAndFilters.html)\n\n[Message Router](MessageRouter.html)\n\n[Content-based Router](ContentBasedRouter.html)\n\n[Message Filter](Filter.html)\n\n[Dynamic Router](DynamicRouter.html)\n\n[Recipient List](RecipientList.html)\n\n[Splitter](Sequencer.html)\n\n[Aggregator](Aggregator.html)\n\n[Resequencer](Resequencer.html)\n\n[Composed Msg. Processor](DistributionAggregate.html)\n\n[Scatter-Gather](BroadcastAggregate.html)\n\n[Routing Slip](RoutingTable.html)\n\n[Process Manager](ProcessManager.html)\n\n[Message Broker](MessageBroker.html)\n\n[Message\nTransformation](MessageTransformationIntro.html)\n\n[Message Translator](MessageTranslator.html)\n\n[Envelope Wrapper](EnvelopeWrapper.html)\n\n[Content Enricher](DataEnricher.html)\n\n[Content Filter](ContentFilter.html)\n\n[Claim Check](StoreInLibrary.html)\n\n[Normalizer](Normalizer.html)\n\n[Canonical Data Model](CanonicalDataModel.html)\n\n[Messaging Endpoints](MessagingEndpointsIntro.html)\n\n[Message Endpoint](MessageEndpoint.html)\n\n[Messaging Gateway](MessagingGateway.html)\n\n[Messaging Mapper](MessagingMapper.html)\n\n[Transactional Client](TransactionalClient.html)\n\n[Polling Consumer](PollingConsumer.html)\n\n[Event-driven Consumer](EventDrivenConsumer.html)\n\n[Competing Consumers](CompetingConsumers.html)\n\n[Message Dispatcher](MessageDispatcher.html)\n\n[Selective Consumer](MessageSelector.html)\n\n[Durable Subscriber](DurableSubscription.html)\n\n[Idempotent Receiver](IdempotentReceiver.html)\n\n[Service Activator](MessagingAdapter.html)\n\n[Messaging Channels](MessagingChannelsIntro.html)\n\n[Message Channel](MessageChannel.html)\n\n[Point-to-Point Channel](PointToPointChannel.html)\n\n[Publish-Subscr. Channel](PublishSubscribeChannel.html)\n\n[Datatype Channel](DatatypeChannel.html)\n\n[Invalid Message Channel](InvalidMessageChannel.html)\n\n[Dead Letter Channel](DeadLetterChannel.html)\n\n[Guaranteed Delivery](GuaranteedMessaging.html)\n\n[Channel Adapter](ChannelAdapter.html)\n\n[Messaging Bridge](MessagingBridge.html)\n\n[Message Bus](MessageBus.html)\n\n[Systems Mgmt.](SystemManagementIntro.html)\n\n[Control Bus](ControlBus.html)\n\n[Detour](Detour.html)\n\n[Wire Tap](WireTap.html)\n\n[Message History](MessageHistory.html)\n\n[Message Store](MessageStore.html)\n\n[Smart Proxy](SmartProxy.html)\n\n[Test Message](TestMessage.html)\n\n[Channel Purger](ChannelPurger.html)\n\n- » [Read the latest in My Blog](/ramblings)\n- » [Get more insights from My Articles](/articles.html)\n- » [See me live in my Upcoming Talks](/talks)\n\nYou can reuse the following elements under the [Creative Commons Attribution](http://creativecommons.org/licenses/by/4.0/) license: pattern icon, pattern name, problem and solution statements (in bold), and the sketch. Other portions are protected by copyright.\n\n[Enterprise Integration Patterns](https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20)\nThe de-facto language for designing asynchronous, distributed systems. Over 100,000 copies sold.\n\n[The Software Architect Elevator](https://www.architectelevator.com/book)\n\n Rethink the role of architects as a connecting element across organizational layers. Acquire the technical, communication, and organizational skills to succeed in this new role.\n\n[Cloud Strategy](https://www.cloudstrategybook.com)\n\n Make your cloud migration a success by translating high-level goals into conscious decisions with well-understood trade-offs.\n\n[Platform Strategy](https://www.platformstrategybook.info)\n\n Platforms can boost innovation through harmonization, but they aren't easy to build. Learn from over a decade of designing and rolling out IT platforms.", "znaku_textu": 5974, "slov": 494, "odkazu": 108, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/DatatypeChannel.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 06:02:04", "sha256": "c3f2c8b483585a0a5266e02aa491ddfacbb5154f2f7c89e91ba5678a73b5c3f8", "hloubka": 1, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://creativecommons.org/licenses/by/4.0/", "https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "https://www.architectelevator.com/book", "https://www.cloudstrategybook.com/", "https://www.platformstrategybook.info/"]} {"url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/DeadLetterChannel.html", "titulek": "Dead Letter Channel - Enterprise Integration Patterns", "h1": "", "popis": "What will the messaging system do with a message it cannot deliver?", "klicova_slova": "Dead Letter Channel,integration, messaging, events, patterns, event-driven, coupling, eai, middleware, application integration, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns", "og:title": "Dead Letter Channel - Enterprise Integration Patterns", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/DeadLetterChannel.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/DeadLetterChannelSolution.gif"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Example: Dead Letter Queue in Amazon SQSNEW"}, {"uroven": 2, "text": "Example: Kafka ConnectNEW"}, {"uroven": 2, "text": "Integration Pattern Language"}], "markdown": "| | Dead Letter Channel[Messaging Patterns](index.html) » [Messaging Channels](MessagingChannelsIntro.html) | [Contents](toc.html)[⇐ Prev](InvalidMessageChannel.html)[Next ⇒](GuaranteedMessaging.html) |\n| --- | --- | --- |\n\nAn enterprise is using [*Messaging*](Messaging.html) to integrate applications.\n\nWhat will the messaging system do with a message it cannot deliver?\n\nWhen a messaging system determines that it cannot or should not deliver a message, it may elect to move the message to a *Dead Letter Channel*.\n\nThe specific way a *Dead Letter Channel* works depends on the specific messaging system’s implementation, if it provides one at all. The channel may be called a “dead message queue” [[Monson-Haefel, p.125](http://www.amazon.com/exec/obidos/ASIN/0596000685/enterpriseint-20)] or *dead letter queue* (DLQ). [[MQSeries](http://www.ibm.com/software/mqseries)], [[Dickman, pp.28-29](http://www.amazon.com/exec/obidos/ASIN/0201325810/enterpriseint-20)] Typically, each machine the messaging system is installed on has its own local *Dead Letter Channel* so that whatever machine a message dies on, it can be moved from one local queue to another without any networking uncertainties. This also records what machine the message died on. When the messaging system moves the message, it may also record the original channel the message was supposed to be delivered on.\n\n...\nRead the entire pattern in the book [Enterprise Integration Patterns](/books1.html)\n\n## Example: Dead Letter Queue in Amazon SQS[NEW](/ramblings/eip1_examples_updated.html)\n\nMany hosted messaging systems, including Amazon's [Simple Queuing Service (SQS)](https://aws.amazon.com/sqs) include a *Dead Letter Channel*. Amazon's Dead Letter Queue behavior is closely related to the way SQS delivers messages. After a consumer fetches a message from a queue, the messages remains on the queue, but hidden from other consumers to avoid fetching and processing the same message multiple times. After processing a message, the consumer is responsible for explicitly deleting the message. If the consumer doesn't delete the message, for example because because it crashed while processing the message, the message becomes visible again after the message's *Visibility Timeout* expires. Each time this happens, the message's receive count is increased. When this count reaches a configured limit, the message is considered undeliverable and placed in a designated Dead Letter Queue. Other AWS services like [Amazon EventBridge](https://aws.amazon.com/eventbridge/) also feature a *Dead Letter Channel*.\n\n## Example: Kafka Connect[NEW](/ramblings/eip1_examples_updated.html)\n\nKafka Connect, Confluent's tool for data streaming to and from Kafka includes a *Dead Letter Channel* for sink connectors. As per the [documentation](https://docs.confluent.io/platform/current/connect/concepts.html#dead-letter-queue), the *Dead Letter Channel* is active when the connector is configured to tolerate errors (otherwise, it'd abort and not send messages to any queue). The name of the *Dead Letter Channel* can easily be configured:\n\n```\nerrors.tolerance = all\nerrors.deadletterqueue.topic.name = \n```\n\n**Related patterns:**\n\n[*Invalid Message Channel*](InvalidMessageChannel.html), [*Message Expiration*](MessageExpiration.html), [*Selective Consumer*](MessageSelector.html), [*Messaging*](Messaging.html)\n\n---\n\n## Integration Pattern Language\n\n[Message Construct.](MessageConstructionIntro.html)\n\n[Message](Message.html)\n\n[Command Message](CommandMessage.html)\n\n[Document Message](DocumentMessage.html)\n\n[Event Message](EventMessage.html)\n\n[Request-Reply](RequestReply.html)\n\n[Return Address](ReturnAddress.html)\n\n[Correlation Identifier](CorrelationIdentifier.html)\n\n[Message Sequence](MessageSequence.html)\n\n[Message Expiration](MessageExpiration.html)\n\n[Format Indicator](FormatIndicator.html)\n\n[Message Routing](MessageRoutingIntro.html)\n\n[Pipes-and-Filters](PipesAndFilters.html)\n\n[Message Router](MessageRouter.html)\n\n[Content-based Router](ContentBasedRouter.html)\n\n[Message Filter](Filter.html)\n\n[Dynamic Router](DynamicRouter.html)\n\n[Recipient List](RecipientList.html)\n\n[Splitter](Sequencer.html)\n\n[Aggregator](Aggregator.html)\n\n[Resequencer](Resequencer.html)\n\n[Composed Msg. Processor](DistributionAggregate.html)\n\n[Scatter-Gather](BroadcastAggregate.html)\n\n[Routing Slip](RoutingTable.html)\n\n[Process Manager](ProcessManager.html)\n\n[Message Broker](MessageBroker.html)\n\n[Message\nTransformation](MessageTransformationIntro.html)\n\n[Message Translator](MessageTranslator.html)\n\n[Envelope Wrapper](EnvelopeWrapper.html)\n\n[Content Enricher](DataEnricher.html)\n\n[Content Filter](ContentFilter.html)\n\n[Claim Check](StoreInLibrary.html)\n\n[Normalizer](Normalizer.html)\n\n[Canonical Data Model](CanonicalDataModel.html)\n\n[Messaging Endpoints](MessagingEndpointsIntro.html)\n\n[Message Endpoint](MessageEndpoint.html)\n\n[Messaging Gateway](MessagingGateway.html)\n\n[Messaging Mapper](MessagingMapper.html)\n\n[Transactional Client](TransactionalClient.html)\n\n[Polling Consumer](PollingConsumer.html)\n\n[Event-driven Consumer](EventDrivenConsumer.html)\n\n[Competing Consumers](CompetingConsumers.html)\n\n[Message Dispatcher](MessageDispatcher.html)\n\n[Selective Consumer](MessageSelector.html)\n\n[Durable Subscriber](DurableSubscription.html)\n\n[Idempotent Receiver](IdempotentReceiver.html)\n\n[Service Activator](MessagingAdapter.html)\n\n[Messaging Channels](MessagingChannelsIntro.html)\n\n[Message Channel](MessageChannel.html)\n\n[Point-to-Point Channel](PointToPointChannel.html)\n\n[Publish-Subscr. Channel](PublishSubscribeChannel.html)\n\n[Datatype Channel](DatatypeChannel.html)\n\n[Invalid Message Channel](InvalidMessageChannel.html)\n\n[Dead Letter Channel](DeadLetterChannel.html)\n\n[Guaranteed Delivery](GuaranteedMessaging.html)\n\n[Channel Adapter](ChannelAdapter.html)\n\n[Messaging Bridge](MessagingBridge.html)\n\n[Message Bus](MessageBus.html)\n\n[Systems Mgmt.](SystemManagementIntro.html)\n\n[Control Bus](ControlBus.html)\n\n[Detour](Detour.html)\n\n[Wire Tap](WireTap.html)\n\n[Message History](MessageHistory.html)\n\n[Message Store](MessageStore.html)\n\n[Smart Proxy](SmartProxy.html)\n\n[Test Message](TestMessage.html)\n\n[Channel Purger](ChannelPurger.html)", "znaku_textu": 6088, "slov": 566, "odkazu": 115, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/DeadLetterChannel.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 06:02:06", "sha256": "714f6babd327e622695d9be989c93c704d23b034cb2e0fcc1065a0eaa203a278", "hloubka": 1, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://www.amazon.com/exec/obidos/ASIN/0596000685/enterpriseint-20", "http://www.ibm.com/software/mqseries", "http://www.amazon.com/exec/obidos/ASIN/0201325810/enterpriseint-20", "https://aws.amazon.com/sqs", "https://aws.amazon.com/eventbridge/", "https://docs.confluent.io/platform/current/connect/concepts.html", "http://creativecommons.org/licenses/by/4.0/", "https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "https://www.architectelevator.com/book", "https://www.cloudstrategybook.com/", "https://www.platformstrategybook.info/"]} {"url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/Detour.html", "titulek": "Detour - Enterprise Integration Patterns", "h1": "", "popis": "How can you route a message through intermediate steps to perform validation, testing or debugging functions?", "klicova_slova": "Detour,integration, messaging, events, patterns, event-driven, coupling, eai, middleware, application integration, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns", "og:title": "Detour - Enterprise Integration Patterns", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/Detour.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/Detour.gif"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Integration Pattern Language"}], "markdown": "Messaging Patterns\n\n[Messaging Patterns](index.html)\n\n- [Integration Styles](IntegrationStylesIntro.html)\n- [Messaging Systems](MessagingComponentsIntro.html)\n- [Messaging Channels](MessagingChannelsIntro.html)\n- [Message Construction](MessageConstructionIntro.html)\n- [Interlude: Simple Messaging](SimpleMessagingIntro.html)\n- [Message Routing](MessageRoutingIntro.html)\n- [Message Transformation](MessageTransformationIntro.html)\n- [Interlude: Composed Messaging](ComposedMessagingExample.html)\n- [Messaging Endpoints](MessagingEndpointsIntro.html)\n- [System Management](SystemManagementIntro.html)\n- Interlude: Systems Management Example\n- Integration Patterns in Practice\n- Concluding Remarks\n- Appendices\n\n| | Detour[Messaging Patterns](index.html) » [System Management](SystemManagementIntro.html) | [Contents](toc.html)[⇐ Prev](ControlBus.html)[Next ⇒](WireTap.html) |\n| --- | --- | --- |\n\nA [*Wire Tap*](WireTap.html) is useful to inspect messages that travel across a channel. Sometimes, though, we need to modify or reroute the messages instead of simply inspecting them.\n\nHow can you route a message through intermediate steps to perform validation, testing or debugging functions?\n\nConstruct a *Detour* with a context-based router controlled via the *Control Bus*. In one state the router routes incoming messages through additional steps while in the other it routes messages directly to the destination channel.\n\nThe *Detour* uses a simple context-based router with two output channels. One output channel passes the unmodified message to the original destination. When instructed by the [*Control Bus*](ControlBus.html), the *Detour* routes messages to a different channel. This channel sends the message to additional components that can inspect and/or modify the message. Ultimately, these components route the message to the same destination.\n\n...\nRead the entire pattern in the book [Enterprise Integration Patterns](/books1.html)\n\n**Related patterns:**\n\n[*Control Bus*](ControlBus.html), [*Publish-Subscribe Channel*](PublishSubscribeChannel.html), [*Wire Tap*](WireTap.html)\n\n---\n\n## Integration Pattern Language\n\n[Message Construct.](MessageConstructionIntro.html)\n\n[Message](Message.html)\n\n[Command Message](CommandMessage.html)\n\n[Document Message](DocumentMessage.html)\n\n[Event Message](EventMessage.html)\n\n[Request-Reply](RequestReply.html)\n\n[Return Address](ReturnAddress.html)\n\n[Correlation Identifier](CorrelationIdentifier.html)\n\n[Message Sequence](MessageSequence.html)\n\n[Message Expiration](MessageExpiration.html)\n\n[Format Indicator](FormatIndicator.html)\n\n[Message Routing](MessageRoutingIntro.html)\n\n[Pipes-and-Filters](PipesAndFilters.html)\n\n[Message Router](MessageRouter.html)\n\n[Content-based Router](ContentBasedRouter.html)\n\n[Message Filter](Filter.html)\n\n[Dynamic Router](DynamicRouter.html)\n\n[Recipient List](RecipientList.html)\n\n[Splitter](Sequencer.html)\n\n[Aggregator](Aggregator.html)\n\n[Resequencer](Resequencer.html)\n\n[Composed Msg. Processor](DistributionAggregate.html)\n\n[Scatter-Gather](BroadcastAggregate.html)\n\n[Routing Slip](RoutingTable.html)\n\n[Process Manager](ProcessManager.html)\n\n[Message Broker](MessageBroker.html)\n\n[Message\nTransformation](MessageTransformationIntro.html)\n\n[Message Translator](MessageTranslator.html)\n\n[Envelope Wrapper](EnvelopeWrapper.html)\n\n[Content Enricher](DataEnricher.html)\n\n[Content Filter](ContentFilter.html)\n\n[Claim Check](StoreInLibrary.html)\n\n[Normalizer](Normalizer.html)\n\n[Canonical Data Model](CanonicalDataModel.html)\n\n[Messaging Endpoints](MessagingEndpointsIntro.html)\n\n[Message Endpoint](MessageEndpoint.html)\n\n[Messaging Gateway](MessagingGateway.html)\n\n[Messaging Mapper](MessagingMapper.html)\n\n[Transactional Client](TransactionalClient.html)\n\n[Polling Consumer](PollingConsumer.html)\n\n[Event-driven Consumer](EventDrivenConsumer.html)\n\n[Competing Consumers](CompetingConsumers.html)\n\n[Message Dispatcher](MessageDispatcher.html)\n\n[Selective Consumer](MessageSelector.html)\n\n[Durable Subscriber](DurableSubscription.html)\n\n[Idempotent Receiver](IdempotentReceiver.html)\n\n[Service Activator](MessagingAdapter.html)\n\n[Messaging Channels](MessagingChannelsIntro.html)\n\n[Message Channel](MessageChannel.html)\n\n[Point-to-Point Channel](PointToPointChannel.html)\n\n[Publish-Subscr. Channel](PublishSubscribeChannel.html)\n\n[Datatype Channel](DatatypeChannel.html)\n\n[Invalid Message Channel](InvalidMessageChannel.html)\n\n[Dead Letter Channel](DeadLetterChannel.html)\n\n[Guaranteed Delivery](GuaranteedMessaging.html)\n\n[Channel Adapter](ChannelAdapter.html)\n\n[Messaging Bridge](MessagingBridge.html)\n\n[Message Bus](MessageBus.html)\n\n[Systems Mgmt.](SystemManagementIntro.html)\n\n[Control Bus](ControlBus.html)\n\n[Detour](Detour.html)\n\n[Wire Tap](WireTap.html)\n\n[Message History](MessageHistory.html)\n\n[Message Store](MessageStore.html)\n\n[Smart Proxy](SmartProxy.html)\n\n[Test Message](TestMessage.html)\n\n[Channel Purger](ChannelPurger.html)\n\n- » [Read the latest in My Blog](/ramblings)\n- » [Get more insights from My Articles](/articles.html)\n- » [See me live in my Upcoming Talks](/talks)\n\nYou can reuse the following elements under the [Creative Commons Attribution](http://creativecommons.org/licenses/by/4.0/) license: pattern icon, pattern name, problem and solution statements (in bold), and the sketch. Other portions are protected by copyright.\n\n[Enterprise Integration Patterns](https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20)\nThe de-facto language for designing asynchronous, distributed systems. Over 100,000 copies sold.\n\n[The Software Architect Elevator](https://www.architectelevator.com/book)\n\n Rethink the role of architects as a connecting element across organizational layers. Acquire the technical, communication, and organizational skills to succeed in this new role.\n\n[Cloud Strategy](https://www.cloudstrategybook.com)\n\n Make your cloud migration a success by translating high-level goals into conscious decisions with well-understood trade-offs.\n\n[Platform Strategy](https://www.platformstrategybook.info)\n\n Platforms can boost innovation through harmonization, but they aren't easy to build. Learn from over a decade of designing and rolling out IT platforms.", "znaku_textu": 6046, "slov": 505, "odkazu": 108, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/Detour.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 06:03:04", "sha256": "d8c4b3ed6198c327bd5d47bb941cd81c56df9375d8964612e34c11a24db8f790", "hloubka": 1, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://creativecommons.org/licenses/by/4.0/", "https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "https://www.architectelevator.com/book", "https://www.cloudstrategybook.com/", "https://www.platformstrategybook.info/"]} {"url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/DistributionAggregate.html", "titulek": "Composed Message Processor - Enterprise Integration Patterns", "h1": "", "popis": "How can you maintain the overall message flow when processing a message consisting of multiple elements, each of which may require different processing?", "klicova_slova": "Composed Message Processor,integration, messaging, events, patterns, event-driven, coupling, eai, middleware, application integration, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns", "og:title": "Composed Message Processor - Enterprise Integration Patterns", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/DistributionAggregate.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/DistributionAggregate.gif"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Integration Pattern Language"}], "markdown": "Messaging Patterns\n\n[Messaging Patterns](index.html)\n\n- [Integration Styles](IntegrationStylesIntro.html)\n- [Messaging Systems](MessagingComponentsIntro.html)\n- [Messaging Channels](MessagingChannelsIntro.html)\n- [Message Construction](MessageConstructionIntro.html)\n- [Interlude: Simple Messaging](SimpleMessagingIntro.html)\n- [Message Routing](MessageRoutingIntro.html)\n- [Message Transformation](MessageTransformationIntro.html)\n- [Interlude: Composed Messaging](ComposedMessagingExample.html)\n- [Messaging Endpoints](MessagingEndpointsIntro.html)\n- [System Management](SystemManagementIntro.html)\n- Interlude: Systems Management Example\n- Integration Patterns in Practice\n- Concluding Remarks\n- Appendices\n\n| | Composed Message Processor[Messaging Patterns](index.html) » [Message Routing](MessageRoutingIntro.html) | [Contents](toc.html)[⇐ Prev](Resequencer.html)[Next ⇒](BroadcastAggregate.html) |\n| --- | --- | --- |\n\nThe order-processing example presented in the [*Content-Based Router*](ContentBasedRouter.html) and [*Splitter*](Sequencer.html) patterns processes an incoming order consisting of individual line items. Each line item requires an inventory check with the respective inventory system. After all items have been verified we want to pass the validated order message to the next processing step.\n\nHow can you maintain the overall message flow when processing a message consisting of multiple elements, each of which may require different processing?\n\nUse *Composed Message Processor* to process a composite message. The *Composed Message Processor* splits the message up, routes the sub-messages to the appropriate destinations and re-aggregates the responses back into a single message.\n\nThe *Composed Message Processor* uses an [*Aggregator*](Aggregator.html) to reconcile the requests that were dispatched to the multiple inventory systems. Each processing unit sends a response message to the aggregator stating the inventory on hand for the specified item. The Aggregator collects the individual responses and processes them based on a predefined algorithm as described under [*Aggregator*](Aggregator.html).\n\n...\nRead the entire pattern in the book [Enterprise Integration Patterns](/books1.html)\n\n**Related patterns:**\n\n[*Aggregator*](Aggregator.html), [*Content-Based Router*](ContentBasedRouter.html), [*Pipes and Filters*](PipesAndFilters.html), [*Splitter*](Sequencer.html)\n\n---\n\n## Integration Pattern Language\n\n[Message Construct.](MessageConstructionIntro.html)\n\n[Message](Message.html)\n\n[Command Message](CommandMessage.html)\n\n[Document Message](DocumentMessage.html)\n\n[Event Message](EventMessage.html)\n\n[Request-Reply](RequestReply.html)\n\n[Return Address](ReturnAddress.html)\n\n[Correlation Identifier](CorrelationIdentifier.html)\n\n[Message Sequence](MessageSequence.html)\n\n[Message Expiration](MessageExpiration.html)\n\n[Format Indicator](FormatIndicator.html)\n\n[Message Routing](MessageRoutingIntro.html)\n\n[Pipes-and-Filters](PipesAndFilters.html)\n\n[Message Router](MessageRouter.html)\n\n[Content-based Router](ContentBasedRouter.html)\n\n[Message Filter](Filter.html)\n\n[Dynamic Router](DynamicRouter.html)\n\n[Recipient List](RecipientList.html)\n\n[Splitter](Sequencer.html)\n\n[Aggregator](Aggregator.html)\n\n[Resequencer](Resequencer.html)\n\n[Composed Msg. Processor](DistributionAggregate.html)\n\n[Scatter-Gather](BroadcastAggregate.html)\n\n[Routing Slip](RoutingTable.html)\n\n[Process Manager](ProcessManager.html)\n\n[Message Broker](MessageBroker.html)\n\n[Message\nTransformation](MessageTransformationIntro.html)\n\n[Message Translator](MessageTranslator.html)\n\n[Envelope Wrapper](EnvelopeWrapper.html)\n\n[Content Enricher](DataEnricher.html)\n\n[Content Filter](ContentFilter.html)\n\n[Claim Check](StoreInLibrary.html)\n\n[Normalizer](Normalizer.html)\n\n[Canonical Data Model](CanonicalDataModel.html)\n\n[Messaging Endpoints](MessagingEndpointsIntro.html)\n\n[Message Endpoint](MessageEndpoint.html)\n\n[Messaging Gateway](MessagingGateway.html)\n\n[Messaging Mapper](MessagingMapper.html)\n\n[Transactional Client](TransactionalClient.html)\n\n[Polling Consumer](PollingConsumer.html)\n\n[Event-driven Consumer](EventDrivenConsumer.html)\n\n[Competing Consumers](CompetingConsumers.html)\n\n[Message Dispatcher](MessageDispatcher.html)\n\n[Selective Consumer](MessageSelector.html)\n\n[Durable Subscriber](DurableSubscription.html)\n\n[Idempotent Receiver](IdempotentReceiver.html)\n\n[Service Activator](MessagingAdapter.html)\n\n[Messaging Channels](MessagingChannelsIntro.html)\n\n[Message Channel](MessageChannel.html)\n\n[Point-to-Point Channel](PointToPointChannel.html)\n\n[Publish-Subscr. Channel](PublishSubscribeChannel.html)\n\n[Datatype Channel](DatatypeChannel.html)\n\n[Invalid Message Channel](InvalidMessageChannel.html)\n\n[Dead Letter Channel](DeadLetterChannel.html)\n\n[Guaranteed Delivery](GuaranteedMessaging.html)\n\n[Channel Adapter](ChannelAdapter.html)\n\n[Messaging Bridge](MessagingBridge.html)\n\n[Message Bus](MessageBus.html)\n\n[Systems Mgmt.](SystemManagementIntro.html)\n\n[Control Bus](ControlBus.html)\n\n[Detour](Detour.html)\n\n[Wire Tap](WireTap.html)\n\n[Message History](MessageHistory.html)\n\n[Message Store](MessageStore.html)\n\n[Smart Proxy](SmartProxy.html)\n\n[Test Message](TestMessage.html)\n\n[Channel Purger](ChannelPurger.html)\n\n- » [Read the latest in My Blog](/ramblings)\n- » [Get more insights from My Articles](/articles.html)\n- » [See me live in my Upcoming Talks](/talks)\n\nYou can reuse the following elements under the [Creative Commons Attribution](http://creativecommons.org/licenses/by/4.0/) license: pattern icon, pattern name, problem and solution statements (in bold), and the sketch. Other portions are protected by copyright.\n\n[Enterprise Integration Patterns](https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20)\nThe de-facto language for designing asynchronous, distributed systems. Over 100,000 copies sold.\n\n[The Software Architect Elevator](https://www.architectelevator.com/book)\n\n Rethink the role of architects as a connecting element across organizational layers. Acquire the technical, communication, and organizational skills to succeed in this new role.\n\n[Cloud Strategy](https://www.cloudstrategybook.com)\n\n Make your cloud migration a success by translating high-level goals into conscious decisions with well-understood trade-offs.\n\n[Platform Strategy](https://www.platformstrategybook.info)\n\n Platforms can boost innovation through harmonization, but they aren't easy to build. Learn from over a decade of designing and rolling out IT platforms.", "znaku_textu": 6357, "slov": 538, "odkazu": 108, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/DistributionAggregate.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 06:02:34", "sha256": "57a15e18261a4dfe75b10bf4b606473d80af4496ae2e23662e883e851edd5b12", "hloubka": 1, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://creativecommons.org/licenses/by/4.0/", "https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "https://www.architectelevator.com/book", "https://www.cloudstrategybook.com/", "https://www.platformstrategybook.info/"]} {"url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/DocumentMessage.html", "titulek": "Document Message - Enterprise Integration Patterns", "h1": "", "popis": "How can messaging be used to transfer data between applications?", "klicova_slova": "Document Message,integration, messaging, events, patterns, event-driven, coupling, eai, middleware, application integration, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns", "og:title": "Document Message - Enterprise Integration Patterns", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/DocumentMessage.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/DocumentMessageSolution.gif"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Integration Pattern Language"}], "markdown": "Messaging Patterns\n\n[Messaging Patterns](index.html)\n\n- [Integration Styles](IntegrationStylesIntro.html)\n- [Messaging Systems](MessagingComponentsIntro.html)\n- [Messaging Channels](MessagingChannelsIntro.html)\n- [Message Construction](MessageConstructionIntro.html)\n- [Interlude: Simple Messaging](SimpleMessagingIntro.html)\n- [Message Routing](MessageRoutingIntro.html)\n- [Message Transformation](MessageTransformationIntro.html)\n- [Interlude: Composed Messaging](ComposedMessagingExample.html)\n- [Messaging Endpoints](MessagingEndpointsIntro.html)\n- [System Management](SystemManagementIntro.html)\n- Interlude: Systems Management Example\n- Integration Patterns in Practice\n- Concluding Remarks\n- Appendices\n\n| | Document Message[Messaging Patterns](index.html) » [Message Construction](MessageConstructionIntro.html) | [Contents](toc.html)[⇐ Prev](CommandMessage.html)[Next ⇒](EventMessage.html) |\n| --- | --- | --- |\n\nAn application would like to transfer data to another application. It could do so using [*File Transfer*](FileTransferIntegration.html) or [*Shared Database*](SharedDataBaseIntegration.html), but those approaches have shortcomings. The transfer might work better using [*Messaging*](Messaging.html).\n\nHow can messaging be used to transfer data between applications?\n\nUse a *Document Message* to reliably transfer a data structure between applications.\n\nWhereas a [*Command Message*](CommandMessage.html) tells the receiver to invoke certain behavior, a *Document Message* just passes data and lets the receiver decide what, if anything, to do with the data. The data is a single unit of data, a single object or data structure which may decompose into smaller units.\n\n*Document Message*s can seem very much like [*Event Message*](EventMessage.html)s; the main difference is a matter of timing and content. The important part of a *Document Message* is its content, the document. Successfully transferring the document is important; the timing of when it is sent and received is less important. [*Guaranteed Delivery*](GuaranteedMessaging.html) may be a consideration; [*Message Expiration*](MessageExpiration.html) probably is not.\n\n...\nRead the entire pattern in the book [Enterprise Integration Patterns](/books1.html)\n\n**Related patterns:**\n\n[*Command Message*](CommandMessage.html), [*Remote Procedure Invocation*](EncapsulatedSynchronousIntegration.html), [*Event Message*](EventMessage.html), [*File Transfer*](FileTransferIntegration.html), [*Guaranteed Delivery*](GuaranteedMessaging.html), [*Message*](Message.html), [*Message Expiration*](MessageExpiration.html), [*Messaging*](Messaging.html), [*Point-to-Point Channel*](PointToPointChannel.html), [*Publish-Subscribe Channel*](PublishSubscribeChannel.html), [*Request-Reply*](RequestReply.html), [*Shared Database*](SharedDataBaseIntegration.html)\n\n---\n\n## Integration Pattern Language\n\n[Message Construct.](MessageConstructionIntro.html)\n\n[Message](Message.html)\n\n[Command Message](CommandMessage.html)\n\n[Document Message](DocumentMessage.html)\n\n[Event Message](EventMessage.html)\n\n[Request-Reply](RequestReply.html)\n\n[Return Address](ReturnAddress.html)\n\n[Correlation Identifier](CorrelationIdentifier.html)\n\n[Message Sequence](MessageSequence.html)\n\n[Message Expiration](MessageExpiration.html)\n\n[Format Indicator](FormatIndicator.html)\n\n[Message Routing](MessageRoutingIntro.html)\n\n[Pipes-and-Filters](PipesAndFilters.html)\n\n[Message Router](MessageRouter.html)\n\n[Content-based Router](ContentBasedRouter.html)\n\n[Message Filter](Filter.html)\n\n[Dynamic Router](DynamicRouter.html)\n\n[Recipient List](RecipientList.html)\n\n[Splitter](Sequencer.html)\n\n[Aggregator](Aggregator.html)\n\n[Resequencer](Resequencer.html)\n\n[Composed Msg. Processor](DistributionAggregate.html)\n\n[Scatter-Gather](BroadcastAggregate.html)\n\n[Routing Slip](RoutingTable.html)\n\n[Process Manager](ProcessManager.html)\n\n[Message Broker](MessageBroker.html)\n\n[Message\nTransformation](MessageTransformationIntro.html)\n\n[Message Translator](MessageTranslator.html)\n\n[Envelope Wrapper](EnvelopeWrapper.html)\n\n[Content Enricher](DataEnricher.html)\n\n[Content Filter](ContentFilter.html)\n\n[Claim Check](StoreInLibrary.html)\n\n[Normalizer](Normalizer.html)\n\n[Canonical Data Model](CanonicalDataModel.html)\n\n[Messaging Endpoints](MessagingEndpointsIntro.html)\n\n[Message Endpoint](MessageEndpoint.html)\n\n[Messaging Gateway](MessagingGateway.html)\n\n[Messaging Mapper](MessagingMapper.html)\n\n[Transactional Client](TransactionalClient.html)\n\n[Polling Consumer](PollingConsumer.html)\n\n[Event-driven Consumer](EventDrivenConsumer.html)\n\n[Competing Consumers](CompetingConsumers.html)\n\n[Message Dispatcher](MessageDispatcher.html)\n\n[Selective Consumer](MessageSelector.html)\n\n[Durable Subscriber](DurableSubscription.html)\n\n[Idempotent Receiver](IdempotentReceiver.html)\n\n[Service Activator](MessagingAdapter.html)\n\n[Messaging Channels](MessagingChannelsIntro.html)\n\n[Message Channel](MessageChannel.html)\n\n[Point-to-Point Channel](PointToPointChannel.html)\n\n[Publish-Subscr. Channel](PublishSubscribeChannel.html)\n\n[Datatype Channel](DatatypeChannel.html)\n\n[Invalid Message Channel](InvalidMessageChannel.html)\n\n[Dead Letter Channel](DeadLetterChannel.html)\n\n[Guaranteed Delivery](GuaranteedMessaging.html)\n\n[Channel Adapter](ChannelAdapter.html)\n\n[Messaging Bridge](MessagingBridge.html)\n\n[Message Bus](MessageBus.html)\n\n[Systems Mgmt.](SystemManagementIntro.html)\n\n[Control Bus](ControlBus.html)\n\n[Detour](Detour.html)\n\n[Wire Tap](WireTap.html)\n\n[Message History](MessageHistory.html)\n\n[Message Store](MessageStore.html)\n\n[Smart Proxy](SmartProxy.html)\n\n[Test Message](TestMessage.html)\n\n[Channel Purger](ChannelPurger.html)\n\n- » [Read the latest in My Blog](/ramblings)\n- » [Get more insights from My Articles](/articles.html)\n- » [See me live in my Upcoming Talks](/talks)\n\nYou can reuse the following elements under the [Creative Commons Attribution](http://creativecommons.org/licenses/by/4.0/) license: pattern icon, pattern name, problem and solution statements (in bold), and the sketch. Other portions are protected by copyright.\n\n[Enterprise Integration Patterns](https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20)\nThe de-facto language for designing asynchronous, distributed systems. Over 100,000 copies sold.\n\n[The Software Architect Elevator](https://www.architectelevator.com/book)\n\n Rethink the role of architects as a connecting element across organizational layers. Acquire the technical, communication, and organizational skills to succeed in this new role.\n\n[Cloud Strategy](https://www.cloudstrategybook.com)\n\n Make your cloud migration a success by translating high-level goals into conscious decisions with well-understood trade-offs.\n\n[Platform Strategy](https://www.platformstrategybook.info)\n\n Platforms can boost innovation through harmonization, but they aren't easy to build. Learn from over a decade of designing and rolling out IT platforms.", "znaku_textu": 6782, "slov": 575, "odkazu": 108, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/DocumentMessage.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 06:02:13", "sha256": "57602aee9cb4c73ce40968668db54354449db23152f4ab6cba77f4d5313c8ac7", "hloubka": 1, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://creativecommons.org/licenses/by/4.0/", "https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "https://www.architectelevator.com/book", "https://www.cloudstrategybook.com/", "https://www.platformstrategybook.info/"]} {"url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/DurableSubscription.html", "titulek": "Durable Subscriber - Enterprise Integration Patterns", "h1": "", "popis": "How can a subscriber avoid missing messages while it’s not listening for them?", "klicova_slova": "Durable Subscriber,integration, messaging, events, patterns, event-driven, coupling, eai, middleware, application integration, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns", "og:title": "Durable Subscriber - Enterprise Integration Patterns", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/DurableSubscription.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/DurableSubscriptionSolution.gif"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Integration Pattern Language"}], "markdown": "Messaging Patterns\n\n[Messaging Patterns](index.html)\n\n- [Integration Styles](IntegrationStylesIntro.html)\n- [Messaging Systems](MessagingComponentsIntro.html)\n- [Messaging Channels](MessagingChannelsIntro.html)\n- [Message Construction](MessageConstructionIntro.html)\n- [Interlude: Simple Messaging](SimpleMessagingIntro.html)\n- [Message Routing](MessageRoutingIntro.html)\n- [Message Transformation](MessageTransformationIntro.html)\n- [Interlude: Composed Messaging](ComposedMessagingExample.html)\n- [Messaging Endpoints](MessagingEndpointsIntro.html)\n- [System Management](SystemManagementIntro.html)\n- Interlude: Systems Management Example\n- Integration Patterns in Practice\n- Concluding Remarks\n- Appendices\n\n| | Durable Subscriber[Messaging Patterns](index.html) » [Messaging Endpoints](MessagingEndpointsIntro.html) | [Contents](toc.html)[⇐ Prev](MessageSelector.html)[Next ⇒](IdempotentReceiver.html) |\n| --- | --- | --- |\n\nAn application is receiving messages on a [*Publish-Subscribe Channel*](PublishSubscribeChannel.html).\n\nHow can a subscriber avoid missing messages while it’s not listening for them?\n\nUse a *Durable Subscriber* to make the messaging system save messages published while the subscriber is disconnected.\n\nA durable subscription saves messages for an inactive subscriber and delivers these saved messages when the subscriber reconnects. In this way, a subscriber will not lose any messages even though it disconnected. A durable subscription has no effect on the behavior of the subscriber or the messaging system while the subscriber is *active* (e.g., connected). A connected subscriber acts the same whether its subscription is durable or non-durable. The difference is in how the messaging system behaves when the subscriber is disconnected.\n\n...\nRead the entire pattern in the book [Enterprise Integration Patterns](/books1.html)\n\n**Related patterns:**\n\n[*Guaranteed Delivery*](GuaranteedMessaging.html), [*Message Expiration*](MessageExpiration.html), [*Point-to-Point Channel*](PointToPointChannel.html), [*Publish-Subscribe Channel*](PublishSubscribeChannel.html)\n\n---\n\n## Integration Pattern Language\n\n[Message Construct.](MessageConstructionIntro.html)\n\n[Message](Message.html)\n\n[Command Message](CommandMessage.html)\n\n[Document Message](DocumentMessage.html)\n\n[Event Message](EventMessage.html)\n\n[Request-Reply](RequestReply.html)\n\n[Return Address](ReturnAddress.html)\n\n[Correlation Identifier](CorrelationIdentifier.html)\n\n[Message Sequence](MessageSequence.html)\n\n[Message Expiration](MessageExpiration.html)\n\n[Format Indicator](FormatIndicator.html)\n\n[Message Routing](MessageRoutingIntro.html)\n\n[Pipes-and-Filters](PipesAndFilters.html)\n\n[Message Router](MessageRouter.html)\n\n[Content-based Router](ContentBasedRouter.html)\n\n[Message Filter](Filter.html)\n\n[Dynamic Router](DynamicRouter.html)\n\n[Recipient List](RecipientList.html)\n\n[Splitter](Sequencer.html)\n\n[Aggregator](Aggregator.html)\n\n[Resequencer](Resequencer.html)\n\n[Composed Msg. Processor](DistributionAggregate.html)\n\n[Scatter-Gather](BroadcastAggregate.html)\n\n[Routing Slip](RoutingTable.html)\n\n[Process Manager](ProcessManager.html)\n\n[Message Broker](MessageBroker.html)\n\n[Message\nTransformation](MessageTransformationIntro.html)\n\n[Message Translator](MessageTranslator.html)\n\n[Envelope Wrapper](EnvelopeWrapper.html)\n\n[Content Enricher](DataEnricher.html)\n\n[Content Filter](ContentFilter.html)\n\n[Claim Check](StoreInLibrary.html)\n\n[Normalizer](Normalizer.html)\n\n[Canonical Data Model](CanonicalDataModel.html)\n\n[Messaging Endpoints](MessagingEndpointsIntro.html)\n\n[Message Endpoint](MessageEndpoint.html)\n\n[Messaging Gateway](MessagingGateway.html)\n\n[Messaging Mapper](MessagingMapper.html)\n\n[Transactional Client](TransactionalClient.html)\n\n[Polling Consumer](PollingConsumer.html)\n\n[Event-driven Consumer](EventDrivenConsumer.html)\n\n[Competing Consumers](CompetingConsumers.html)\n\n[Message Dispatcher](MessageDispatcher.html)\n\n[Selective Consumer](MessageSelector.html)\n\n[Durable Subscriber](DurableSubscription.html)\n\n[Idempotent Receiver](IdempotentReceiver.html)\n\n[Service Activator](MessagingAdapter.html)\n\n[Messaging Channels](MessagingChannelsIntro.html)\n\n[Message Channel](MessageChannel.html)\n\n[Point-to-Point Channel](PointToPointChannel.html)\n\n[Publish-Subscr. Channel](PublishSubscribeChannel.html)\n\n[Datatype Channel](DatatypeChannel.html)\n\n[Invalid Message Channel](InvalidMessageChannel.html)\n\n[Dead Letter Channel](DeadLetterChannel.html)\n\n[Guaranteed Delivery](GuaranteedMessaging.html)\n\n[Channel Adapter](ChannelAdapter.html)\n\n[Messaging Bridge](MessagingBridge.html)\n\n[Message Bus](MessageBus.html)\n\n[Systems Mgmt.](SystemManagementIntro.html)\n\n[Control Bus](ControlBus.html)\n\n[Detour](Detour.html)\n\n[Wire Tap](WireTap.html)\n\n[Message History](MessageHistory.html)\n\n[Message Store](MessageStore.html)\n\n[Smart Proxy](SmartProxy.html)\n\n[Test Message](TestMessage.html)\n\n[Channel Purger](ChannelPurger.html)\n\n- » [Read the latest in My Blog](/ramblings)\n- » [Get more insights from My Articles](/articles.html)\n- » [See me live in my Upcoming Talks](/talks)\n\nYou can reuse the following elements under the [Creative Commons Attribution](http://creativecommons.org/licenses/by/4.0/) license: pattern icon, pattern name, problem and solution statements (in bold), and the sketch. Other portions are protected by copyright.\n\n[Enterprise Integration Patterns](https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20)\nThe de-facto language for designing asynchronous, distributed systems. Over 100,000 copies sold.\n\n[The Software Architect Elevator](https://www.architectelevator.com/book)\n\n Rethink the role of architects as a connecting element across organizational layers. Acquire the technical, communication, and organizational skills to succeed in this new role.\n\n[Cloud Strategy](https://www.cloudstrategybook.com)\n\n Make your cloud migration a success by translating high-level goals into conscious decisions with well-understood trade-offs.\n\n[Platform Strategy](https://www.platformstrategybook.info)\n\n Platforms can boost innovation through harmonization, but they aren't easy to build. Learn from over a decade of designing and rolling out IT platforms.", "znaku_textu": 6051, "slov": 490, "odkazu": 108, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/DurableSubscription.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 06:02:59", "sha256": "d8697f78f17e355548692ad6ed8459e2fe3932ab1119d7b613c029774e0f2139", "hloubka": 1, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://creativecommons.org/licenses/by/4.0/", "https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "https://www.architectelevator.com/book", "https://www.cloudstrategybook.com/", "https://www.platformstrategybook.info/"]} {"url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/DynamicRouter.html", "titulek": "Dynamic Router - Enterprise Integration Patterns", "h1": "", "popis": "How can you avoid the dependency of the router on all possible destinations while maintaining its efficiency?", "klicova_slova": "Dynamic Router,integration, messaging, events, patterns, event-driven, coupling, eai, middleware, application integration, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns", "og:title": "Dynamic Router - Enterprise Integration Patterns", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/DynamicRouter.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/DynamicRouter.gif"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Integration Pattern Language"}], "markdown": "Messaging Patterns\n\n[Messaging Patterns](index.html)\n\n- [Integration Styles](IntegrationStylesIntro.html)\n- [Messaging Systems](MessagingComponentsIntro.html)\n- [Messaging Channels](MessagingChannelsIntro.html)\n- [Message Construction](MessageConstructionIntro.html)\n- [Interlude: Simple Messaging](SimpleMessagingIntro.html)\n- [Message Routing](MessageRoutingIntro.html)\n- [Message Transformation](MessageTransformationIntro.html)\n- [Interlude: Composed Messaging](ComposedMessagingExample.html)\n- [Messaging Endpoints](MessagingEndpointsIntro.html)\n- [System Management](SystemManagementIntro.html)\n- Interlude: Systems Management Example\n- Integration Patterns in Practice\n- Concluding Remarks\n- Appendices\n\n| | Dynamic Router[Messaging Patterns](index.html) » [Message Routing](MessageRoutingIntro.html) | [Contents](toc.html)[⇐ Prev](Filter.html)[Next ⇒](RecipientList.html) |\n| --- | --- | --- |\n\nYou are using a [*Message Router*](MessageRouter.html) to route messages between multiple destinations.\n\nHow can you avoid the dependency of the router on all possible destinations while maintaining its efficiency?\n\nUse a *Dynamic Router*, a Router that can self-configure based on special configuration messages from participating destinations.\n\nBesides the usual input and output channels the *Dynamic Router* uses an additional *control channel*. 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.\n\n...\nRead the entire pattern in the book [Enterprise Integration Patterns](/books1.html)\n\n**Related patterns:**\n\n[*Content-Based Router*](ContentBasedRouter.html), [*Message Filter*](Filter.html), [*Message Router*](MessageRouter.html), [*Publish-Subscribe Channel*](PublishSubscribeChannel.html), [*Recipient List*](RecipientList.html), [*Routing Slip*](RoutingTable.html)\n\n---\n\n## Integration Pattern Language\n\n[Message Construct.](MessageConstructionIntro.html)\n\n[Message](Message.html)\n\n[Command Message](CommandMessage.html)\n\n[Document Message](DocumentMessage.html)\n\n[Event Message](EventMessage.html)\n\n[Request-Reply](RequestReply.html)\n\n[Return Address](ReturnAddress.html)\n\n[Correlation Identifier](CorrelationIdentifier.html)\n\n[Message Sequence](MessageSequence.html)\n\n[Message Expiration](MessageExpiration.html)\n\n[Format Indicator](FormatIndicator.html)\n\n[Message Routing](MessageRoutingIntro.html)\n\n[Pipes-and-Filters](PipesAndFilters.html)\n\n[Message Router](MessageRouter.html)\n\n[Content-based Router](ContentBasedRouter.html)\n\n[Message Filter](Filter.html)\n\n[Dynamic Router](DynamicRouter.html)\n\n[Recipient List](RecipientList.html)\n\n[Splitter](Sequencer.html)\n\n[Aggregator](Aggregator.html)\n\n[Resequencer](Resequencer.html)\n\n[Composed Msg. Processor](DistributionAggregate.html)\n\n[Scatter-Gather](BroadcastAggregate.html)\n\n[Routing Slip](RoutingTable.html)\n\n[Process Manager](ProcessManager.html)\n\n[Message Broker](MessageBroker.html)\n\n[Message\nTransformation](MessageTransformationIntro.html)\n\n[Message Translator](MessageTranslator.html)\n\n[Envelope Wrapper](EnvelopeWrapper.html)\n\n[Content Enricher](DataEnricher.html)\n\n[Content Filter](ContentFilter.html)\n\n[Claim Check](StoreInLibrary.html)\n\n[Normalizer](Normalizer.html)\n\n[Canonical Data Model](CanonicalDataModel.html)\n\n[Messaging Endpoints](MessagingEndpointsIntro.html)\n\n[Message Endpoint](MessageEndpoint.html)\n\n[Messaging Gateway](MessagingGateway.html)\n\n[Messaging Mapper](MessagingMapper.html)\n\n[Transactional Client](TransactionalClient.html)\n\n[Polling Consumer](PollingConsumer.html)\n\n[Event-driven Consumer](EventDrivenConsumer.html)\n\n[Competing Consumers](CompetingConsumers.html)\n\n[Message Dispatcher](MessageDispatcher.html)\n\n[Selective Consumer](MessageSelector.html)\n\n[Durable Subscriber](DurableSubscription.html)\n\n[Idempotent Receiver](IdempotentReceiver.html)\n\n[Service Activator](MessagingAdapter.html)\n\n[Messaging Channels](MessagingChannelsIntro.html)\n\n[Message Channel](MessageChannel.html)\n\n[Point-to-Point Channel](PointToPointChannel.html)\n\n[Publish-Subscr. Channel](PublishSubscribeChannel.html)\n\n[Datatype Channel](DatatypeChannel.html)\n\n[Invalid Message Channel](InvalidMessageChannel.html)\n\n[Dead Letter Channel](DeadLetterChannel.html)\n\n[Guaranteed Delivery](GuaranteedMessaging.html)\n\n[Channel Adapter](ChannelAdapter.html)\n\n[Messaging Bridge](MessagingBridge.html)\n\n[Message Bus](MessageBus.html)\n\n[Systems Mgmt.](SystemManagementIntro.html)\n\n[Control Bus](ControlBus.html)\n\n[Detour](Detour.html)\n\n[Wire Tap](WireTap.html)\n\n[Message History](MessageHistory.html)\n\n[Message Store](MessageStore.html)\n\n[Smart Proxy](SmartProxy.html)\n\n[Test Message](TestMessage.html)\n\n[Channel Purger](ChannelPurger.html)\n\n- » [Read the latest in My Blog](/ramblings)\n- » [Get more insights from My Articles](/articles.html)\n- » [See me live in my Upcoming Talks](/talks)\n\nYou can reuse the following elements under the [Creative Commons Attribution](http://creativecommons.org/licenses/by/4.0/) license: pattern icon, pattern name, problem and solution statements (in bold), and the sketch. Other portions are protected by copyright.\n\n[Enterprise Integration Patterns](https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20)\nThe de-facto language for designing asynchronous, distributed systems. Over 100,000 copies sold.\n\n[The Software Architect Elevator](https://www.architectelevator.com/book)\n\n Rethink the role of architects as a connecting element across organizational layers. Acquire the technical, communication, and organizational skills to succeed in this new role.\n\n[Cloud Strategy](https://www.cloudstrategybook.com)\n\n Make your cloud migration a success by translating high-level goals into conscious decisions with well-understood trade-offs.\n\n[Platform Strategy](https://www.platformstrategybook.info)\n\n Platforms can boost innovation through harmonization, but they aren't easy to build. Learn from over a decade of designing and rolling out IT platforms.", "znaku_textu": 6231, "slov": 523, "odkazu": 108, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/DynamicRouter.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 06:02:28", "sha256": "d3b57d8e01cd6bf5adb7a12af887562bc6635a806d26cf8a71a215714d474922", "hloubka": 1, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://creativecommons.org/licenses/by/4.0/", "https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "https://www.architectelevator.com/book", "https://www.cloudstrategybook.com/", "https://www.platformstrategybook.info/"]} {"url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/EncapsulatedSynchronousIntegration.html", "titulek": "Remote Procedure Invocation - Enterprise Integration Patterns", "h1": "", "popis": "How can I integrate multiple applications so that they work together and can exchange information?", "klicova_slova": "Remote Procedure Invocation,integration, messaging, events, patterns, event-driven, coupling, eai, middleware, application integration, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns", "og:title": "Remote Procedure Invocation - Enterprise Integration Patterns", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/EncapsulatedSynchronousIntegration.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/EncapsulatedSynchronousIntegration.gif"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Integration Pattern Language"}], "markdown": "| | Remote Procedure Invocation[Messaging Patterns](index.html) » [Integration Styles](IntegrationStylesIntro.html) | [Contents](toc.html)[⇐ Prev](SharedDataBaseIntegration.html)[Next ⇒](Messaging.html) |\n| --- | --- | --- |\n\nAn enterprise has multiple applications that are being built independently, with different languages and platforms. The enterprise needs to share data and processes in a responsive way.\n\nHow can I integrate multiple applications so that they work together and can exchange information?\n\nDevelop each application as a large-scale object or component with encapsulated data. Provide an interface to allow other applications to interact with the running application.\n\n*Remote Procedure Invocation* applies the principle of encapsulation to integrating\napplications. If an application needs some information that is owned\nby another application, it asks that application directly. If one\napplication needs to modify the data of another, then it does so by making a call\nto the other application. Each application can maintain the\nintegrity of the data it owns. Furthermore, each application can alter\nits internal data without having every other application be\naffected.\n\nAlthough the encapsulation helps reduce the coupling of the\napplications, by eliminating a large shared data structure, the\napplications are still fairly tightly coupled together. The remote\ncalls each system supports tends to tie the different systems into a\ngrowing knot. In particular, sequencing--doing certain things in a\nparticular order--can make it difficult to change systems\nindependently. Often these become problems because issues that aren't\nsignificant within a single application become so when integrating\napplications. People often design the integration the way they would\ndesign a single application, unaware that the rules change.\n\n...\nRead the entire pattern in the book [Enterprise Integration Patterns](/books1.html)\n\n**Related patterns:**\n\n[*File Transfer*](FileTransferIntegration.html), [*Messaging*](Messaging.html), [*Shared Database*](SharedDataBaseIntegration.html)\n\n---\n\n## Integration Pattern Language\n\n[Message Construct.](MessageConstructionIntro.html)\n\n[Message](Message.html)\n\n[Command Message](CommandMessage.html)\n\n[Document Message](DocumentMessage.html)\n\n[Event Message](EventMessage.html)\n\n[Request-Reply](RequestReply.html)\n\n[Return Address](ReturnAddress.html)\n\n[Correlation Identifier](CorrelationIdentifier.html)\n\n[Message Sequence](MessageSequence.html)\n\n[Message Expiration](MessageExpiration.html)\n\n[Format Indicator](FormatIndicator.html)\n\n[Message Routing](MessageRoutingIntro.html)\n\n[Pipes-and-Filters](PipesAndFilters.html)\n\n[Message Router](MessageRouter.html)\n\n[Content-based Router](ContentBasedRouter.html)\n\n[Message Filter](Filter.html)\n\n[Dynamic Router](DynamicRouter.html)\n\n[Recipient List](RecipientList.html)\n\n[Splitter](Sequencer.html)\n\n[Aggregator](Aggregator.html)\n\n[Resequencer](Resequencer.html)\n\n[Composed Msg. Processor](DistributionAggregate.html)\n\n[Scatter-Gather](BroadcastAggregate.html)\n\n[Routing Slip](RoutingTable.html)\n\n[Process Manager](ProcessManager.html)\n\n[Message Broker](MessageBroker.html)\n\n[Message\nTransformation](MessageTransformationIntro.html)\n\n[Message Translator](MessageTranslator.html)\n\n[Envelope Wrapper](EnvelopeWrapper.html)\n\n[Content Enricher](DataEnricher.html)\n\n[Content Filter](ContentFilter.html)\n\n[Claim Check](StoreInLibrary.html)\n\n[Normalizer](Normalizer.html)\n\n[Canonical Data Model](CanonicalDataModel.html)\n\n[Messaging Endpoints](MessagingEndpointsIntro.html)\n\n[Message Endpoint](MessageEndpoint.html)\n\n[Messaging Gateway](MessagingGateway.html)\n\n[Messaging Mapper](MessagingMapper.html)\n\n[Transactional Client](TransactionalClient.html)\n\n[Polling Consumer](PollingConsumer.html)\n\n[Event-driven Consumer](EventDrivenConsumer.html)\n\n[Competing Consumers](CompetingConsumers.html)\n\n[Message Dispatcher](MessageDispatcher.html)\n\n[Selective Consumer](MessageSelector.html)\n\n[Durable Subscriber](DurableSubscription.html)\n\n[Idempotent Receiver](IdempotentReceiver.html)\n\n[Service Activator](MessagingAdapter.html)\n\n[Messaging Channels](MessagingChannelsIntro.html)\n\n[Message Channel](MessageChannel.html)\n\n[Point-to-Point Channel](PointToPointChannel.html)\n\n[Publish-Subscr. Channel](PublishSubscribeChannel.html)\n\n[Datatype Channel](DatatypeChannel.html)\n\n[Invalid Message Channel](InvalidMessageChannel.html)\n\n[Dead Letter Channel](DeadLetterChannel.html)\n\n[Guaranteed Delivery](GuaranteedMessaging.html)\n\n[Channel Adapter](ChannelAdapter.html)\n\n[Messaging Bridge](MessagingBridge.html)\n\n[Message Bus](MessageBus.html)\n\n[Systems Mgmt.](SystemManagementIntro.html)\n\n[Control Bus](ControlBus.html)\n\n[Detour](Detour.html)\n\n[Wire Tap](WireTap.html)\n\n[Message History](MessageHistory.html)\n\n[Message Store](MessageStore.html)\n\n[Smart Proxy](SmartProxy.html)\n\n[Test Message](TestMessage.html)\n\n[Channel Purger](ChannelPurger.html)", "znaku_textu": 4810, "slov": 414, "odkazu": 108, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/patterns/messaging/EncapsulatedSynchronousIntegration.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 06:01:52", "sha256": "f88407ac27ec387f1ea39207ad6a549484d3a8189782f82abbb5e3d62b563716", "hloubka": 1, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://creativecommons.org/licenses/by/4.0/", "https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "https://www.architectelevator.com/book", "https://www.cloudstrategybook.com/", "https://www.platformstrategybook.info/"]} {"url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/EnvelopeWrapper.html", "titulek": "Envelope Wrapper - Enterprise Integration Patterns", "h1": "", "popis": "How can existing systems participate in a messaging exchange that places specific requirements on the message format, such as message header fields or encryption?", "klicova_slova": "Envelope Wrapper,integration, messaging, events, patterns, event-driven, coupling, eai, middleware, application integration, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns", "og:title": "Envelope Wrapper - Enterprise Integration Patterns", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/EnvelopeWrapper.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/Wrapper.gif"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Integration Pattern Language"}], "markdown": "Messaging Patterns\n\n[Messaging Patterns](index.html)\n\n- [Integration Styles](IntegrationStylesIntro.html)\n- [Messaging Systems](MessagingComponentsIntro.html)\n- [Messaging Channels](MessagingChannelsIntro.html)\n- [Message Construction](MessageConstructionIntro.html)\n- [Interlude: Simple Messaging](SimpleMessagingIntro.html)\n- [Message Routing](MessageRoutingIntro.html)\n- [Message Transformation](MessageTransformationIntro.html)\n- [Interlude: Composed Messaging](ComposedMessagingExample.html)\n- [Messaging Endpoints](MessagingEndpointsIntro.html)\n- [System Management](SystemManagementIntro.html)\n- Interlude: Systems Management Example\n- Integration Patterns in Practice\n- Concluding Remarks\n- Appendices\n\n| | Envelope Wrapper[Messaging Patterns](index.html) » [Message Transformation](MessageTransformationIntro.html) | [Contents](toc.html)[⇐ Prev](MessageTransformationIntro.html)[Next ⇒](DataEnricher.html) |\n| --- | --- | --- |\n\nMost messaging systems divide the message data into a header and a body. The header contains fields that are used by the messaging infrastructure to manage the flow of messages. However, most endpoint systems that participate in the integration solution generally are not aware of these extra data elements. In some cases, systems may even consider these fields as erroneous because they do not match the message format used by the application. On the other hand, the messaging components that route the messages between the applications may require the header fields and would consider a message invalid if it does not contain the proper header fields.\n\nHow can existing systems participate in a messaging exchange that places specific requirements on the message format, such as message header fields or encryption?\n\nUse a *Envelope Wrapper* to wrap application data inside an envelope that is compliant with the messaging infrastructure. Unwrap the message when it arrives at the destination.\n\nThe process of wrapping and unwrapping a message consists of five steps:\n\n...\nRead the entire pattern in the book [Enterprise Integration Patterns](/books1.html)\n\n**Related patterns:**\n\n[*Content-Based Router*](ContentBasedRouter.html), [*Content Enricher*](DataEnricher.html), [*Messaging Bridge*](MessagingBridge.html), [*Pipes and Filters*](PipesAndFilters.html)\n\n---\n\n## Integration Pattern Language\n\n[Message Construct.](MessageConstructionIntro.html)\n\n[Message](Message.html)\n\n[Command Message](CommandMessage.html)\n\n[Document Message](DocumentMessage.html)\n\n[Event Message](EventMessage.html)\n\n[Request-Reply](RequestReply.html)\n\n[Return Address](ReturnAddress.html)\n\n[Correlation Identifier](CorrelationIdentifier.html)\n\n[Message Sequence](MessageSequence.html)\n\n[Message Expiration](MessageExpiration.html)\n\n[Format Indicator](FormatIndicator.html)\n\n[Message Routing](MessageRoutingIntro.html)\n\n[Pipes-and-Filters](PipesAndFilters.html)\n\n[Message Router](MessageRouter.html)\n\n[Content-based Router](ContentBasedRouter.html)\n\n[Message Filter](Filter.html)\n\n[Dynamic Router](DynamicRouter.html)\n\n[Recipient List](RecipientList.html)\n\n[Splitter](Sequencer.html)\n\n[Aggregator](Aggregator.html)\n\n[Resequencer](Resequencer.html)\n\n[Composed Msg. Processor](DistributionAggregate.html)\n\n[Scatter-Gather](BroadcastAggregate.html)\n\n[Routing Slip](RoutingTable.html)\n\n[Process Manager](ProcessManager.html)\n\n[Message Broker](MessageBroker.html)\n\n[Message\nTransformation](MessageTransformationIntro.html)\n\n[Message Translator](MessageTranslator.html)\n\n[Envelope Wrapper](EnvelopeWrapper.html)\n\n[Content Enricher](DataEnricher.html)\n\n[Content Filter](ContentFilter.html)\n\n[Claim Check](StoreInLibrary.html)\n\n[Normalizer](Normalizer.html)\n\n[Canonical Data Model](CanonicalDataModel.html)\n\n[Messaging Endpoints](MessagingEndpointsIntro.html)\n\n[Message Endpoint](MessageEndpoint.html)\n\n[Messaging Gateway](MessagingGateway.html)\n\n[Messaging Mapper](MessagingMapper.html)\n\n[Transactional Client](TransactionalClient.html)\n\n[Polling Consumer](PollingConsumer.html)\n\n[Event-driven Consumer](EventDrivenConsumer.html)\n\n[Competing Consumers](CompetingConsumers.html)\n\n[Message Dispatcher](MessageDispatcher.html)\n\n[Selective Consumer](MessageSelector.html)\n\n[Durable Subscriber](DurableSubscription.html)\n\n[Idempotent Receiver](IdempotentReceiver.html)\n\n[Service Activator](MessagingAdapter.html)\n\n[Messaging Channels](MessagingChannelsIntro.html)\n\n[Message Channel](MessageChannel.html)\n\n[Point-to-Point Channel](PointToPointChannel.html)\n\n[Publish-Subscr. Channel](PublishSubscribeChannel.html)\n\n[Datatype Channel](DatatypeChannel.html)\n\n[Invalid Message Channel](InvalidMessageChannel.html)\n\n[Dead Letter Channel](DeadLetterChannel.html)\n\n[Guaranteed Delivery](GuaranteedMessaging.html)\n\n[Channel Adapter](ChannelAdapter.html)\n\n[Messaging Bridge](MessagingBridge.html)\n\n[Message Bus](MessageBus.html)\n\n[Systems Mgmt.](SystemManagementIntro.html)\n\n[Control Bus](ControlBus.html)\n\n[Detour](Detour.html)\n\n[Wire Tap](WireTap.html)\n\n[Message History](MessageHistory.html)\n\n[Message Store](MessageStore.html)\n\n[Smart Proxy](SmartProxy.html)\n\n[Test Message](TestMessage.html)\n\n[Channel Purger](ChannelPurger.html)\n\n- » [Read the latest in My Blog](/ramblings)\n- » [Get more insights from My Articles](/articles.html)\n- » [See me live in my Upcoming Talks](/talks)\n\nYou can reuse the following elements under the [Creative Commons Attribution](http://creativecommons.org/licenses/by/4.0/) license: pattern icon, pattern name, problem and solution statements (in bold), and the sketch. Other portions are protected by copyright.\n\n[Enterprise Integration Patterns](https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20)\nThe de-facto language for designing asynchronous, distributed systems. Over 100,000 copies sold.\n\n[The Software Architect Elevator](https://www.architectelevator.com/book)\n\n Rethink the role of architects as a connecting element across organizational layers. Acquire the technical, communication, and organizational skills to succeed in this new role.\n\n[Cloud Strategy](https://www.cloudstrategybook.com)\n\n Make your cloud migration a success by translating high-level goals into conscious decisions with well-understood trade-offs.\n\n[Platform Strategy](https://www.platformstrategybook.info)\n\n Platforms can boost innovation through harmonization, but they aren't easy to build. Learn from over a decade of designing and rolling out IT platforms.", "znaku_textu": 6256, "slov": 533, "odkazu": 108, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/EnvelopeWrapper.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 06:02:40", "sha256": "57e50ee6fbc76b0c9f124fba57e677541bc7c2366d0ec45fd76ff198ff1e483d", "hloubka": 1, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://creativecommons.org/licenses/by/4.0/", "https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "https://www.architectelevator.com/book", "https://www.cloudstrategybook.com/", "https://www.platformstrategybook.info/"]} {"url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/EventDrivenConsumer.html", "titulek": "Event-Driven Consumer - Enterprise Integration Patterns", "h1": "", "popis": "How can an application automatically consume messages as they become available?", "klicova_slova": "Event-Driven Consumer,integration, messaging, events, patterns, event-driven, coupling, eai, middleware, application integration, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns", "og:title": "Event-Driven Consumer - Enterprise Integration Patterns", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/EventDrivenConsumer.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/EventDrivenConsumerSolution.gif"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Example: RabbitMQ ConsumerNEW"}, {"uroven": 2, "text": "Integration Pattern Language"}], "markdown": "| | Event-Driven Consumer[Messaging Patterns](index.html) » [Messaging Endpoints](MessagingEndpointsIntro.html) | [Contents](toc.html)[⇐ Prev](PollingConsumer.html)[Next ⇒](CompetingConsumers.html) |\n| --- | --- | --- |\n\nAn application needs to consume [*Message*](Message.html)s as soon as they’re delivered.\n\nHow can an application automatically consume messages as they become available?\n\nThe application should use an *Event-Driven Consumer*, one that is automatically handed messages as they’re delivered on the channel.\n\nThis is also known as an asynchronous receiver, because the receiver does not have a running thread until a callback thread delivers a message. We call it an *Event-Driven Consumer* because the receiver acts like the message delivery is an event that triggers the receiver into action.\n\nAn *Event-Driven Consumer* is an object that is invoked by the messaging system when a message arrives on the consumer’s channel. The consumer passes the message to the application through a callback in the application’s API. (How the messaging system gets the message is implementation-specific and may or may not be event-driven. All the consumer knows is that it can sit dormant with no active threads until it gets invoked by the messaging system passing it a message.)\n\n...\nRead the entire pattern in the book [Enterprise Integration Patterns](/books1.html)\n\n## Example: RabbitMQ Consumer[NEW](/ramblings/eip1_examples_updated.html)\n\n[RabbitMQ](http://www.rabbitmq.com) consumers are by default event-driven. When consuming messages off a Channel, you have to provide an implementation of the Consumer interface. The following code example sets up a very simple consumer that simply prints incoming messages as strings:\n\n```\nConsumer consumer = new DefaultConsumer(channel) {\n @Override\n public void handleDelivery(\n String consumerTag, \n Envelope envelope, \n AMQP.BasicProperties properties, \n byte[] body) throws IOException {\n String message = new String(body, \"UTF-8\");\n System.out.println(\"Received '\" + message + \"'\");\n }\n};\n\nboolean autoAck = true;\nchannel.basicConsume(queueName, autoAck, consumer);\t\n```\n\nThis implementation is not a [*Transactional Client*](TransactionalClient.html) because the client acknowledges messages automatically on receipt but before processing.\n\nThe complete source code for this example can be found on [Github](https://github.com/spac3lord/eip/tree/master/Rabbit/src).\n\n**Related patterns:**\n\n[*Competing Consumers*](CompetingConsumers.html), [*Durable Subscriber*](DurableSubscription.html), [*Message*](Message.html), [*Message Channel*](MessageChannel.html), [*Message Dispatcher*](MessageDispatcher.html), [*Selective Consumer*](MessageSelector.html), [*Polling Consumer*](PollingConsumer.html), [*Transactional Client*](TransactionalClient.html)\n\n---\n\n## Integration Pattern Language\n\n[Message Construct.](MessageConstructionIntro.html)\n\n[Message](Message.html)\n\n[Command Message](CommandMessage.html)\n\n[Document Message](DocumentMessage.html)\n\n[Event Message](EventMessage.html)\n\n[Request-Reply](RequestReply.html)\n\n[Return Address](ReturnAddress.html)\n\n[Correlation Identifier](CorrelationIdentifier.html)\n\n[Message Sequence](MessageSequence.html)\n\n[Message Expiration](MessageExpiration.html)\n\n[Format Indicator](FormatIndicator.html)\n\n[Message Routing](MessageRoutingIntro.html)\n\n[Pipes-and-Filters](PipesAndFilters.html)\n\n[Message Router](MessageRouter.html)\n\n[Content-based Router](ContentBasedRouter.html)\n\n[Message Filter](Filter.html)\n\n[Dynamic Router](DynamicRouter.html)\n\n[Recipient List](RecipientList.html)\n\n[Splitter](Sequencer.html)\n\n[Aggregator](Aggregator.html)\n\n[Resequencer](Resequencer.html)\n\n[Composed Msg. Processor](DistributionAggregate.html)\n\n[Scatter-Gather](BroadcastAggregate.html)\n\n[Routing Slip](RoutingTable.html)\n\n[Process Manager](ProcessManager.html)\n\n[Message Broker](MessageBroker.html)\n\n[Message\nTransformation](MessageTransformationIntro.html)\n\n[Message Translator](MessageTranslator.html)\n\n[Envelope Wrapper](EnvelopeWrapper.html)\n\n[Content Enricher](DataEnricher.html)\n\n[Content Filter](ContentFilter.html)\n\n[Claim Check](StoreInLibrary.html)\n\n[Normalizer](Normalizer.html)\n\n[Canonical Data Model](CanonicalDataModel.html)\n\n[Messaging Endpoints](MessagingEndpointsIntro.html)\n\n[Message Endpoint](MessageEndpoint.html)\n\n[Messaging Gateway](MessagingGateway.html)\n\n[Messaging Mapper](MessagingMapper.html)\n\n[Transactional Client](TransactionalClient.html)\n\n[Polling Consumer](PollingConsumer.html)\n\n[Event-driven Consumer](EventDrivenConsumer.html)\n\n[Competing Consumers](CompetingConsumers.html)\n\n[Message Dispatcher](MessageDispatcher.html)\n\n[Selective Consumer](MessageSelector.html)\n\n[Durable Subscriber](DurableSubscription.html)\n\n[Idempotent Receiver](IdempotentReceiver.html)\n\n[Service Activator](MessagingAdapter.html)\n\n[Messaging Channels](MessagingChannelsIntro.html)\n\n[Message Channel](MessageChannel.html)\n\n[Point-to-Point Channel](PointToPointChannel.html)\n\n[Publish-Subscr. Channel](PublishSubscribeChannel.html)\n\n[Datatype Channel](DatatypeChannel.html)\n\n[Invalid Message Channel](InvalidMessageChannel.html)\n\n[Dead Letter Channel](DeadLetterChannel.html)\n\n[Guaranteed Delivery](GuaranteedMessaging.html)\n\n[Channel Adapter](ChannelAdapter.html)\n\n[Messaging Bridge](MessagingBridge.html)\n\n[Message Bus](MessageBus.html)\n\n[Systems Mgmt.](SystemManagementIntro.html)\n\n[Control Bus](ControlBus.html)\n\n[Detour](Detour.html)\n\n[Wire Tap](WireTap.html)\n\n[Message History](MessageHistory.html)\n\n[Message Store](MessageStore.html)\n\n[Smart Proxy](SmartProxy.html)\n\n[Test Message](TestMessage.html)\n\n[Channel Purger](ChannelPurger.html)", "znaku_textu": 5516, "slov": 487, "odkazu": 111, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/EventDrivenConsumer.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 06:02:55", "sha256": "bdd22eb6db0ea6606a9ff53c93d17750b2977ec7f0a25120467a49c532c446d0", "hloubka": 1, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://www.rabbitmq.com/", "https://github.com/spac3lord/eip/tree/master/Rabbit/src", "http://creativecommons.org/licenses/by/4.0/", "https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "https://www.architectelevator.com/book", "https://www.cloudstrategybook.com/", "https://www.platformstrategybook.info/"]} {"url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/EventMessage.html", "titulek": "Event Message - Enterprise Integration Patterns", "h1": "", "popis": "How can messaging be used to transmit events from one application to another?", "klicova_slova": "Event Message,integration, messaging, events, patterns, event-driven, coupling, eai, middleware, application integration, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns", "og:title": "Event Message - Enterprise Integration Patterns", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/EventMessage.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/EventMessageSolution.gif"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Integration Pattern Language"}], "markdown": "Messaging Patterns\n\n[Messaging Patterns](index.html)\n\n- [Integration Styles](IntegrationStylesIntro.html)\n- [Messaging Systems](MessagingComponentsIntro.html)\n- [Messaging Channels](MessagingChannelsIntro.html)\n- [Message Construction](MessageConstructionIntro.html)\n- [Interlude: Simple Messaging](SimpleMessagingIntro.html)\n- [Message Routing](MessageRoutingIntro.html)\n- [Message Transformation](MessageTransformationIntro.html)\n- [Interlude: Composed Messaging](ComposedMessagingExample.html)\n- [Messaging Endpoints](MessagingEndpointsIntro.html)\n- [System Management](SystemManagementIntro.html)\n- Interlude: Systems Management Example\n- Integration Patterns in Practice\n- Concluding Remarks\n- Appendices\n\n| | Event Message[Messaging Patterns](index.html) » [Message Construction](MessageConstructionIntro.html) | [Contents](toc.html)[⇐ Prev](DocumentMessage.html)[Next ⇒](RequestReply.html) |\n| --- | --- | --- |\n\nSeveral applications would like to use event-notification to coordinate their actions, and would like to use [*Messaging*](Messaging.html) to communicate those events.\n\nHow can messaging be used to transmit events from one application to another?\n\nUse an *Event Message* for reliable, asynchronous event notification between applications.\n\nWhen a subject has an event to announce, it will create an event object, wrap it in a message, and send it on a channel. The observer will receive the event message, get the event, and process it. Messaging does not change the event notification, just makes sure that the notification gets to the observer.\n\nThe difference between an *Event Message* and a [*Document Message*](DocumentMessage.html) is a matter of timing and content. An event’s contents is typically less important. Many events are empty; their mere occurrance tells the observer to react. An event’s timing is very important; the subject should issue an event as soon as a change occurs, and the observer should process it quickly while it’s still relevant. [*Guaranteed Delivery*](GuaranteedMessaging.html) is usually not very helpful with events because they’re frequent and need to be delivered quickly. [*Message Expiration*](MessageExpiration.html) can be very helpful to make sure that an event is processed quickly or not at all.\n\n...\nRead the entire pattern in the book [Enterprise Integration Patterns](/books1.html)\n\n**Related patterns:**\n\n[*Command Message*](CommandMessage.html), [*Document Message*](DocumentMessage.html), [*Durable Subscriber*](DurableSubscription.html), [*Remote Procedure Invocation*](EncapsulatedSynchronousIntegration.html), [*Guaranteed Delivery*](GuaranteedMessaging.html), [*Message*](Message.html), [*Message Expiration*](MessageExpiration.html), [*Messaging*](Messaging.html), [*JMS Publish/Subscribe Example*](ObserverJmsExample.html), [*Point-to-Point Channel*](PointToPointChannel.html), [*Publish-Subscribe Channel*](PublishSubscribeChannel.html)\n\n---\n\n## Integration Pattern Language\n\n[Message Construct.](MessageConstructionIntro.html)\n\n[Message](Message.html)\n\n[Command Message](CommandMessage.html)\n\n[Document Message](DocumentMessage.html)\n\n[Event Message](EventMessage.html)\n\n[Request-Reply](RequestReply.html)\n\n[Return Address](ReturnAddress.html)\n\n[Correlation Identifier](CorrelationIdentifier.html)\n\n[Message Sequence](MessageSequence.html)\n\n[Message Expiration](MessageExpiration.html)\n\n[Format Indicator](FormatIndicator.html)\n\n[Message Routing](MessageRoutingIntro.html)\n\n[Pipes-and-Filters](PipesAndFilters.html)\n\n[Message Router](MessageRouter.html)\n\n[Content-based Router](ContentBasedRouter.html)\n\n[Message Filter](Filter.html)\n\n[Dynamic Router](DynamicRouter.html)\n\n[Recipient List](RecipientList.html)\n\n[Splitter](Sequencer.html)\n\n[Aggregator](Aggregator.html)\n\n[Resequencer](Resequencer.html)\n\n[Composed Msg. Processor](DistributionAggregate.html)\n\n[Scatter-Gather](BroadcastAggregate.html)\n\n[Routing Slip](RoutingTable.html)\n\n[Process Manager](ProcessManager.html)\n\n[Message Broker](MessageBroker.html)\n\n[Message\nTransformation](MessageTransformationIntro.html)\n\n[Message Translator](MessageTranslator.html)\n\n[Envelope Wrapper](EnvelopeWrapper.html)\n\n[Content Enricher](DataEnricher.html)\n\n[Content Filter](ContentFilter.html)\n\n[Claim Check](StoreInLibrary.html)\n\n[Normalizer](Normalizer.html)\n\n[Canonical Data Model](CanonicalDataModel.html)\n\n[Messaging Endpoints](MessagingEndpointsIntro.html)\n\n[Message Endpoint](MessageEndpoint.html)\n\n[Messaging Gateway](MessagingGateway.html)\n\n[Messaging Mapper](MessagingMapper.html)\n\n[Transactional Client](TransactionalClient.html)\n\n[Polling Consumer](PollingConsumer.html)\n\n[Event-driven Consumer](EventDrivenConsumer.html)\n\n[Competing Consumers](CompetingConsumers.html)\n\n[Message Dispatcher](MessageDispatcher.html)\n\n[Selective Consumer](MessageSelector.html)\n\n[Durable Subscriber](DurableSubscription.html)\n\n[Idempotent Receiver](IdempotentReceiver.html)\n\n[Service Activator](MessagingAdapter.html)\n\n[Messaging Channels](MessagingChannelsIntro.html)\n\n[Message Channel](MessageChannel.html)\n\n[Point-to-Point Channel](PointToPointChannel.html)\n\n[Publish-Subscr. Channel](PublishSubscribeChannel.html)\n\n[Datatype Channel](DatatypeChannel.html)\n\n[Invalid Message Channel](InvalidMessageChannel.html)\n\n[Dead Letter Channel](DeadLetterChannel.html)\n\n[Guaranteed Delivery](GuaranteedMessaging.html)\n\n[Channel Adapter](ChannelAdapter.html)\n\n[Messaging Bridge](MessagingBridge.html)\n\n[Message Bus](MessageBus.html)\n\n[Systems Mgmt.](SystemManagementIntro.html)\n\n[Control Bus](ControlBus.html)\n\n[Detour](Detour.html)\n\n[Wire Tap](WireTap.html)\n\n[Message History](MessageHistory.html)\n\n[Message Store](MessageStore.html)\n\n[Smart Proxy](SmartProxy.html)\n\n[Test Message](TestMessage.html)\n\n[Channel Purger](ChannelPurger.html)\n\n- » [Read the latest in My Blog](/ramblings)\n- » [Get more insights from My Articles](/articles.html)\n- » [See me live in my Upcoming Talks](/talks)\n\nYou can reuse the following elements under the [Creative Commons Attribution](http://creativecommons.org/licenses/by/4.0/) license: pattern icon, pattern name, problem and solution statements (in bold), and the sketch. Other portions are protected by copyright.\n\n[Enterprise Integration Patterns](https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20)\nThe de-facto language for designing asynchronous, distributed systems. Over 100,000 copies sold.\n\n[The Software Architect Elevator](https://www.architectelevator.com/book)\n\n Rethink the role of architects as a connecting element across organizational layers. Acquire the technical, communication, and organizational skills to succeed in this new role.\n\n[Cloud Strategy](https://www.cloudstrategybook.com)\n\n Make your cloud migration a success by translating high-level goals into conscious decisions with well-understood trade-offs.\n\n[Platform Strategy](https://www.platformstrategybook.info)\n\n Platforms can boost innovation through harmonization, but they aren't easy to build. Learn from over a decade of designing and rolling out IT platforms.", "znaku_textu": 6871, "slov": 604, "odkazu": 108, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/EventMessage.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 06:02:13", "sha256": "62f373d66f1ade20d93b672a0cdacd6fc2deed62b0508c2bfe3fc25952d0de42", "hloubka": 1, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://creativecommons.org/licenses/by/4.0/", "https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "https://www.architectelevator.com/book", "https://www.cloudstrategybook.com/", "https://www.platformstrategybook.info/"]} {"url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/FileTransferIntegration.html", "titulek": "File Transfer - Enterprise Integration Patterns", "h1": "", "popis": "How can I integrate multiple applications so that they work together and can exchange information?", "klicova_slova": "File Transfer,integration, messaging, events, patterns, event-driven, coupling, eai, middleware, application integration, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns", "og:title": "File Transfer - Enterprise Integration Patterns", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/FileTransferIntegration.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/FileTransferIntegration.gif"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Integration Pattern Language"}], "markdown": "Messaging Patterns\n\n[Messaging Patterns](index.html)\n\n- [Integration Styles](IntegrationStylesIntro.html)\n- [Messaging Systems](MessagingComponentsIntro.html)\n- [Messaging Channels](MessagingChannelsIntro.html)\n- [Message Construction](MessageConstructionIntro.html)\n- [Interlude: Simple Messaging](SimpleMessagingIntro.html)\n- [Message Routing](MessageRoutingIntro.html)\n- [Message Transformation](MessageTransformationIntro.html)\n- [Interlude: Composed Messaging](ComposedMessagingExample.html)\n- [Messaging Endpoints](MessagingEndpointsIntro.html)\n- [System Management](SystemManagementIntro.html)\n- Interlude: Systems Management Example\n- Integration Patterns in Practice\n- Concluding Remarks\n- Appendices\n\n| | File Transfer[Messaging Patterns](index.html) » [Integration Styles](IntegrationStylesIntro.html) | [Contents](toc.html)[⇐ Prev](IntegrationStylesIntro.html)[Next ⇒](SharedDataBaseIntegration.html) |\n| --- | --- | --- |\n\nAn enterprise has multiple applications that are being built independently, with different languages and platforms.\n\nHow can I integrate multiple applications so that they work together and can exchange information?\n\nHave each application produce files containing information that other applications need to consume. Integrators take the responsibility of transforming files into different formats. Produce the files at regular intervals according to the nature of the business.\n\nAn important decision with files is what format to use. Very\n rarely will the output of one application be exactly what's needed\n for another, so you'll have to do a fair bit of processing of files\n along the way. Not just do all the applications that use a file have\n to read it, you also have to be able to use processing tools on\n it. As a result, standard file formats have grown up over\n time. Mainframe systems commonly use data feeds based on the file\n system formats of COBOL. Unix systems use text based files. The\n modern fashion is to use XML. An industry of readers, writers, and transformation\n tools has built up around each of these formats.\n\n...\nRead the entire pattern in the book [Enterprise Integration Patterns](/books1.html)\n\n**Related patterns:**\n\n[*Remote Procedure Invocation*](EncapsulatedSynchronousIntegration.html), [*Messaging*](Messaging.html), [*Shared Database*](SharedDataBaseIntegration.html)\n\n---\n\n## Integration Pattern Language\n\n[Message Construct.](MessageConstructionIntro.html)\n\n[Message](Message.html)\n\n[Command Message](CommandMessage.html)\n\n[Document Message](DocumentMessage.html)\n\n[Event Message](EventMessage.html)\n\n[Request-Reply](RequestReply.html)\n\n[Return Address](ReturnAddress.html)\n\n[Correlation Identifier](CorrelationIdentifier.html)\n\n[Message Sequence](MessageSequence.html)\n\n[Message Expiration](MessageExpiration.html)\n\n[Format Indicator](FormatIndicator.html)\n\n[Message Routing](MessageRoutingIntro.html)\n\n[Pipes-and-Filters](PipesAndFilters.html)\n\n[Message Router](MessageRouter.html)\n\n[Content-based Router](ContentBasedRouter.html)\n\n[Message Filter](Filter.html)\n\n[Dynamic Router](DynamicRouter.html)\n\n[Recipient List](RecipientList.html)\n\n[Splitter](Sequencer.html)\n\n[Aggregator](Aggregator.html)\n\n[Resequencer](Resequencer.html)\n\n[Composed Msg. Processor](DistributionAggregate.html)\n\n[Scatter-Gather](BroadcastAggregate.html)\n\n[Routing Slip](RoutingTable.html)\n\n[Process Manager](ProcessManager.html)\n\n[Message Broker](MessageBroker.html)\n\n[Message\nTransformation](MessageTransformationIntro.html)\n\n[Message Translator](MessageTranslator.html)\n\n[Envelope Wrapper](EnvelopeWrapper.html)\n\n[Content Enricher](DataEnricher.html)\n\n[Content Filter](ContentFilter.html)\n\n[Claim Check](StoreInLibrary.html)\n\n[Normalizer](Normalizer.html)\n\n[Canonical Data Model](CanonicalDataModel.html)\n\n[Messaging Endpoints](MessagingEndpointsIntro.html)\n\n[Message Endpoint](MessageEndpoint.html)\n\n[Messaging Gateway](MessagingGateway.html)\n\n[Messaging Mapper](MessagingMapper.html)\n\n[Transactional Client](TransactionalClient.html)\n\n[Polling Consumer](PollingConsumer.html)\n\n[Event-driven Consumer](EventDrivenConsumer.html)\n\n[Competing Consumers](CompetingConsumers.html)\n\n[Message Dispatcher](MessageDispatcher.html)\n\n[Selective Consumer](MessageSelector.html)\n\n[Durable Subscriber](DurableSubscription.html)\n\n[Idempotent Receiver](IdempotentReceiver.html)\n\n[Service Activator](MessagingAdapter.html)\n\n[Messaging Channels](MessagingChannelsIntro.html)\n\n[Message Channel](MessageChannel.html)\n\n[Point-to-Point Channel](PointToPointChannel.html)\n\n[Publish-Subscr. Channel](PublishSubscribeChannel.html)\n\n[Datatype Channel](DatatypeChannel.html)\n\n[Invalid Message Channel](InvalidMessageChannel.html)\n\n[Dead Letter Channel](DeadLetterChannel.html)\n\n[Guaranteed Delivery](GuaranteedMessaging.html)\n\n[Channel Adapter](ChannelAdapter.html)\n\n[Messaging Bridge](MessagingBridge.html)\n\n[Message Bus](MessageBus.html)\n\n[Systems Mgmt.](SystemManagementIntro.html)\n\n[Control Bus](ControlBus.html)\n\n[Detour](Detour.html)\n\n[Wire Tap](WireTap.html)\n\n[Message History](MessageHistory.html)\n\n[Message Store](MessageStore.html)\n\n[Smart Proxy](SmartProxy.html)\n\n[Test Message](TestMessage.html)\n\n[Channel Purger](ChannelPurger.html)\n\n- » [Read the latest in My Blog](/ramblings)\n- » [Get more insights from My Articles](/articles.html)\n- » [See me live in my Upcoming Talks](/talks)\n\nYou can reuse the following elements under the [Creative Commons Attribution](http://creativecommons.org/licenses/by/4.0/) license: pattern icon, pattern name, problem and solution statements (in bold), and the sketch. Other portions are protected by copyright.\n\n[Enterprise Integration Patterns](https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20)\nThe de-facto language for designing asynchronous, distributed systems. Over 100,000 copies sold.\n\n[The Software Architect Elevator](https://www.architectelevator.com/book)\n\n Rethink the role of architects as a connecting element across organizational layers. Acquire the technical, communication, and organizational skills to succeed in this new role.\n\n[Cloud Strategy](https://www.cloudstrategybook.com)\n\n Make your cloud migration a success by translating high-level goals into conscious decisions with well-understood trade-offs.\n\n[Platform Strategy](https://www.platformstrategybook.info)\n\n Platforms can boost innovation through harmonization, but they aren't easy to build. Learn from over a decade of designing and rolling out IT platforms.", "znaku_textu": 6300, "slov": 543, "odkazu": 108, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/patterns/messaging/FileTransferIntegration.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 06:01:50", "sha256": "be57c18fdfa2d127668f67f9495ddf18a3b06ce7888e84fc5910aa2ee97e981e", "hloubka": 1, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://creativecommons.org/licenses/by/4.0/", "https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "https://www.architectelevator.com/book", "https://www.cloudstrategybook.com/", "https://www.platformstrategybook.info/"]} {"url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/Filter.html", "titulek": "Message Filter - Enterprise Integration Patterns", "h1": "", "popis": "How can a component avoid receiving uninteresting messages?", "klicova_slova": "Message Filter,integration, messaging, events, patterns, event-driven, coupling, eai, middleware, application integration, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns", "og:title": "Message Filter - Enterprise Integration Patterns", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/Filter.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/MessageFilter.gif"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Example: RabbitMQ BindingsNEW"}, {"uroven": 2, "text": "Integration Pattern Language"}], "markdown": "| | Message Filter[Messaging Patterns](index.html) » [Message Routing](MessageRoutingIntro.html) | [Contents](toc.html)[⇐ Prev](ContentBasedRouter.html)[Next ⇒](DynamicRouter.html) |\n| --- | --- | --- |\n\nContinuing with the order processing example, let's assume that company management publishes price changes and promotions to large customers. Whenever a price for an item changes, we send a message notifying the customer. We do the same if we are running a special promotion, e.g. all widgets are 10% off in the month of November. Some customers may be interested in receiving price updates or promotions only related to specific items. If I purchase primarily gadgets, I may not be interested in knowing whether widgets are on sale or not.\n\nHow can a component avoid receiving uninteresting messages?\n\nUse a special kind of Message Router, a *Message Filter*, to eliminate undesired messages from a channel based on a set of criteria.\n\nThe *Message Filter* has only a single output channel. If the message content matches the criteria specified by the *Message Filter*, the message is routed to the output channel. If the message content does not match the criteria, the message is discarded.\n\n...\nRead the entire pattern in the book [Enterprise Integration Patterns](/books1.html)\n\n## Example: RabbitMQ Bindings[NEW](/ramblings/eip1_examples_updated.html)\n\nRabbitMQ allows a straightforward implementation of [*Publish-Subscribe Channel*](PublishSubscribeChannel.html) with *Message Filter*s via a *direct exchange*. Exchanges are a concept which is distinct from a queue. Generally, message producers publish messages to an exchange, which controls how the message is propagated to other queues. For example, a \"fanout\" exchange simply propagates a message to all subscribed queues while a \"direct\" exchange allows subscribing queues to express a filter condition for the messages they want to receive.\n\nA direct exchange places incoming messages into a subscribing queue based on a message's *routing key* and the queue's *binding key*. Multiple binding keys are allowed per queue and multiple queues can use the same binding key, which results in each of them receiving a copy of the queue.\n\n*Mapping RabbitMQ Concepts to Enterprise Integration Patterns*\n\nThe Widgets and Gadgets example from above can be implemented quite easily with a single direct exchange and two queues bound to this exchange, each with its respective filter. A helper method helps create a new queue, bind it to the exchange with the filter, and setup a [*Event-Driven Consumer*](EventDrivenConsumer.html) that simply prints out messages.\n\n```\nstatic void filteredReceive(final Channel channel, String filter, String exchangeName) throws IOException {\n\n System.out.println(filter + \" waiting for messages. To exit press CTRL+C\");\n\n Consumer consumer = new DefaultConsumer(channel) {\n @Override\n public void handleDelivery(String consumerTag, Envelope envelope, AMQP.BasicProperties properties, byte[] body)\n throws IOException {\n String message = new String(body, \"UTF-8\");\n System.out.println(filter + \" Received '\" + message + \"'\");\n }\n };\n\n String queueName = channel.queueDeclare().getQueue();\n channel.queueBind(queueName, EXCHANGE_NAME, filter);\n\n boolean autoAck = true;\n channel.basicConsume(queueName, autoAck, consumer);\n}\n```\n\nThe consumer is a simple [*Event-Driven Consumer*](EventDrivenConsumer.html) that is called every time a message is received. The following lines generate a new private queue and bind it to the exchange with the specified filter string. Lastly, the consumer implementation is attached to the queue.\n\nWe can now create the direct exchange and start multiple of these consumers, giving each a respective *binding key*:\n\n```\nchannel.exchangeDeclare(EXCHANGE_NAME, \"direct\");\n\nfilteredReceive(channel, \"Widget\", EXCHANGE_NAME);\nfilteredReceive(channel, \"Gadget\", EXCHANGE_NAME);\n```\n\nLastly, we publish some messages against the exchange with different message keys:\n\n```\nchannel.exchangeDeclare(EXCHANGE_NAME, \"direct\");\n\nsendMessage(channel, EXCHANGE_NAME, \"Widget\", \"Hello EIP Widget!\");\nsendMessage(channel, EXCHANGE_NAME, \"Gadget\", \"Hello EIP Gadget!\");\n```\n\nsendMessage is a simple helper method:\n\n```\nstatic void sendMessage(Channel channel, String exchange, String key, String message) throws IOException {\n channel.basicPublish(exchange, key, null, message.getBytes());\n System.out.println(\" [x] Sent '\" + message + \"'\");\n}\n```\n\nYou can run this code and observe that RabbitMQ filters the messages according to their key:\n\n```\nWidget waiting for messages. To exit press CTRL+C\nGadget waiting for messages. To exit press CTRL+C\nWidget Received 'Hello EIP Widget!'\nGadget Received 'Hello EIP Gadget!'\n```\n\nThe complete source code for this example can be found on [Github](https://github.com/spac3lord/eip/tree/master/Rabbit/src).\n\n**Related patterns:**\n\n[*Content-Based Router*](ContentBasedRouter.html), [*Event-Driven Consumer*](EventDrivenConsumer.html), [*Message Router*](MessageRouter.html), [*Selective Consumer*](MessageSelector.html), [*Publish-Subscribe Channel*](PublishSubscribeChannel.html), [*Recipient List*](RecipientList.html)\n\n---\n\n## Integration Pattern Language\n\n[Message Construct.](MessageConstructionIntro.html)\n\n[Message](Message.html)\n\n[Command Message](CommandMessage.html)\n\n[Document Message](DocumentMessage.html)\n\n[Event Message](EventMessage.html)\n\n[Request-Reply](RequestReply.html)\n\n[Return Address](ReturnAddress.html)\n\n[Correlation Identifier](CorrelationIdentifier.html)\n\n[Message Sequence](MessageSequence.html)\n\n[Message Expiration](MessageExpiration.html)\n\n[Format Indicator](FormatIndicator.html)\n\n[Message Routing](MessageRoutingIntro.html)\n\n[Pipes-and-Filters](PipesAndFilters.html)\n\n[Message Router](MessageRouter.html)\n\n[Content-based Router](ContentBasedRouter.html)\n\n[Message Filter](Filter.html)\n\n[Dynamic Router](DynamicRouter.html)\n\n[Recipient List](RecipientList.html)\n\n[Splitter](Sequencer.html)\n\n[Aggregator](Aggregator.html)\n\n[Resequencer](Resequencer.html)\n\n[Composed Msg. Processor](DistributionAggregate.html)\n\n[Scatter-Gather](BroadcastAggregate.html)\n\n[Routing Slip](RoutingTable.html)\n\n[Process Manager](ProcessManager.html)\n\n[Message Broker](MessageBroker.html)\n\n[Message\nTransformation](MessageTransformationIntro.html)\n\n[Message Translator](MessageTranslator.html)\n\n[Envelope Wrapper](EnvelopeWrapper.html)\n\n[Content Enricher](DataEnricher.html)\n\n[Content Filter](ContentFilter.html)\n\n[Claim Check](StoreInLibrary.html)\n\n[Normalizer](Normalizer.html)\n\n[Canonical Data Model](CanonicalDataModel.html)\n\n[Messaging Endpoints](MessagingEndpointsIntro.html)\n\n[Message Endpoint](MessageEndpoint.html)\n\n[Messaging Gateway](MessagingGateway.html)\n\n[Messaging Mapper](MessagingMapper.html)\n\n[Transactional Client](TransactionalClient.html)\n\n[Polling Consumer](PollingConsumer.html)\n\n[Event-driven Consumer](EventDrivenConsumer.html)\n\n[Competing Consumers](CompetingConsumers.html)\n\n[Message Dispatcher](MessageDispatcher.html)\n\n[Selective Consumer](MessageSelector.html)\n\n[Durable Subscriber](DurableSubscription.html)\n\n[Idempotent Receiver](IdempotentReceiver.html)\n\n[Service Activator](MessagingAdapter.html)\n\n[Messaging Channels](MessagingChannelsIntro.html)\n\n[Message Channel](MessageChannel.html)\n\n[Point-to-Point Channel](PointToPointChannel.html)\n\n[Publish-Subscr. Channel](PublishSubscribeChannel.html)\n\n[Datatype Channel](DatatypeChannel.html)\n\n[Invalid Message Channel](InvalidMessageChannel.html)\n\n[Dead Letter Channel](DeadLetterChannel.html)\n\n[Guaranteed Delivery](GuaranteedMessaging.html)\n\n[Channel Adapter](ChannelAdapter.html)\n\n[Messaging Bridge](MessagingBridge.html)\n\n[Message Bus](MessageBus.html)\n\n[Systems Mgmt.](SystemManagementIntro.html)\n\n[Control Bus](ControlBus.html)\n\n[Detour](Detour.html)\n\n[Wire Tap](WireTap.html)\n\n[Message History](MessageHistory.html)\n\n[Message Store](MessageStore.html)\n\n[Smart Proxy](SmartProxy.html)\n\n[Test Message](TestMessage.html)\n\n[Channel Purger](ChannelPurger.html)", "znaku_textu": 7839, "slov": 815, "odkazu": 110, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/Filter.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 06:02:27", "sha256": "899fcd8bbb8d91b9a0985314998a4707c1b4e0b34aa79a2821149c861d53db2c", "hloubka": 1, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/spac3lord/eip/tree/master/Rabbit/src", "http://creativecommons.org/licenses/by/4.0/", "https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "https://www.architectelevator.com/book", "https://www.cloudstrategybook.com/", "https://www.platformstrategybook.info/"]} {"url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/FormatIndicator.html", "titulek": "Format Indicator - Enterprise Integration Patterns", "h1": "", "popis": "How can a message’s data format be designed to allow for possible future changes?", "klicova_slova": "Format Indicator,integration, messaging, events, patterns, event-driven, coupling, eai, middleware, application integration, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns", "og:title": "Format Indicator - Enterprise Integration Patterns", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/FormatIndicator.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/eip1_patterns_wide.png"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Integration Pattern Language"}], "markdown": "Messaging Patterns\n\n[Messaging Patterns](index.html)\n\n- [Integration Styles](IntegrationStylesIntro.html)\n- [Messaging Systems](MessagingComponentsIntro.html)\n- [Messaging Channels](MessagingChannelsIntro.html)\n- [Message Construction](MessageConstructionIntro.html)\n- [Interlude: Simple Messaging](SimpleMessagingIntro.html)\n- [Message Routing](MessageRoutingIntro.html)\n- [Message Transformation](MessageTransformationIntro.html)\n- [Interlude: Composed Messaging](ComposedMessagingExample.html)\n- [Messaging Endpoints](MessagingEndpointsIntro.html)\n- [System Management](SystemManagementIntro.html)\n- Interlude: Systems Management Example\n- Integration Patterns in Practice\n- Concluding Remarks\n- Appendices\n\n| | Format Indicator[Messaging Patterns](index.html) » [Message Construction](MessageConstructionIntro.html) | [Contents](toc.html)[⇐ Prev](MessageExpiration.html)[Next ⇒](SimpleMessagingIntro.html) |\n| --- | --- | --- |\n\nSeveral applications are communicating via [*Message*](Message.html)s that follow an agreed upon data format, perhaps an enterprise-wide [*Canonical Data Model*](CanonicalDataModel.html). However, that format may need to change over time.\n\nHow can a message’s data format be designed to allow for possible future changes?\n\nDesign a data format that includes a *Format Indicator*, so that the message specifies what format it is using.\n\nThe 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.\n\nThere are three main alternatives for implementing a format indicator:\n\n1. **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.\n2. **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.\n3. **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.\n\n...\nRead the entire pattern in the book [Enterprise Integration Patterns](/books1.html)\n\n**Related patterns:**\n\n[*Canonical Data Model*](CanonicalDataModel.html), [*Message*](Message.html)\n\n---\n\n## Integration Pattern Language\n\n[Message Construct.](MessageConstructionIntro.html)\n\n[Message](Message.html)\n\n[Command Message](CommandMessage.html)\n\n[Document Message](DocumentMessage.html)\n\n[Event Message](EventMessage.html)\n\n[Request-Reply](RequestReply.html)\n\n[Return Address](ReturnAddress.html)\n\n[Correlation Identifier](CorrelationIdentifier.html)\n\n[Message Sequence](MessageSequence.html)\n\n[Message Expiration](MessageExpiration.html)\n\n[Format Indicator](FormatIndicator.html)\n\n[Message Routing](MessageRoutingIntro.html)\n\n[Pipes-and-Filters](PipesAndFilters.html)\n\n[Message Router](MessageRouter.html)\n\n[Content-based Router](ContentBasedRouter.html)\n\n[Message Filter](Filter.html)\n\n[Dynamic Router](DynamicRouter.html)\n\n[Recipient List](RecipientList.html)\n\n[Splitter](Sequencer.html)\n\n[Aggregator](Aggregator.html)\n\n[Resequencer](Resequencer.html)\n\n[Composed Msg. Processor](DistributionAggregate.html)\n\n[Scatter-Gather](BroadcastAggregate.html)\n\n[Routing Slip](RoutingTable.html)\n\n[Process Manager](ProcessManager.html)\n\n[Message Broker](MessageBroker.html)\n\n[Message\nTransformation](MessageTransformationIntro.html)\n\n[Message Translator](MessageTranslator.html)\n\n[Envelope Wrapper](EnvelopeWrapper.html)\n\n[Content Enricher](DataEnricher.html)\n\n[Content Filter](ContentFilter.html)\n\n[Claim Check](StoreInLibrary.html)\n\n[Normalizer](Normalizer.html)\n\n[Canonical Data Model](CanonicalDataModel.html)\n\n[Messaging Endpoints](MessagingEndpointsIntro.html)\n\n[Message Endpoint](MessageEndpoint.html)\n\n[Messaging Gateway](MessagingGateway.html)\n\n[Messaging Mapper](MessagingMapper.html)\n\n[Transactional Client](TransactionalClient.html)\n\n[Polling Consumer](PollingConsumer.html)\n\n[Event-driven Consumer](EventDrivenConsumer.html)\n\n[Competing Consumers](CompetingConsumers.html)\n\n[Message Dispatcher](MessageDispatcher.html)\n\n[Selective Consumer](MessageSelector.html)\n\n[Durable Subscriber](DurableSubscription.html)\n\n[Idempotent Receiver](IdempotentReceiver.html)\n\n[Service Activator](MessagingAdapter.html)\n\n[Messaging Channels](MessagingChannelsIntro.html)\n\n[Message Channel](MessageChannel.html)\n\n[Point-to-Point Channel](PointToPointChannel.html)\n\n[Publish-Subscr. Channel](PublishSubscribeChannel.html)\n\n[Datatype Channel](DatatypeChannel.html)\n\n[Invalid Message Channel](InvalidMessageChannel.html)\n\n[Dead Letter Channel](DeadLetterChannel.html)\n\n[Guaranteed Delivery](GuaranteedMessaging.html)\n\n[Channel Adapter](ChannelAdapter.html)\n\n[Messaging Bridge](MessagingBridge.html)\n\n[Message Bus](MessageBus.html)\n\n[Systems Mgmt.](SystemManagementIntro.html)\n\n[Control Bus](ControlBus.html)\n\n[Detour](Detour.html)\n\n[Wire Tap](WireTap.html)\n\n[Message History](MessageHistory.html)\n\n[Message Store](MessageStore.html)\n\n[Smart Proxy](SmartProxy.html)\n\n[Test Message](TestMessage.html)\n\n[Channel Purger](ChannelPurger.html)\n\n- » [Read the latest in My Blog](/ramblings)\n- » [Get more insights from My Articles](/articles.html)\n- » [See me live in my Upcoming Talks](/talks)\n\nYou can reuse the following elements under the [Creative Commons Attribution](http://creativecommons.org/licenses/by/4.0/) license: pattern icon, pattern name, problem and solution statements (in bold), and the sketch. Other portions are protected by copyright.\n\n[Enterprise Integration Patterns](https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20)\nThe de-facto language for designing asynchronous, distributed systems. Over 100,000 copies sold.\n\n[The Software Architect Elevator](https://www.architectelevator.com/book)\n\n Rethink the role of architects as a connecting element across organizational layers. Acquire the technical, communication, and organizational skills to succeed in this new role.\n\n[Cloud Strategy](https://www.cloudstrategybook.com)\n\n Make your cloud migration a success by translating high-level goals into conscious decisions with well-understood trade-offs.\n\n[Platform Strategy](https://www.platformstrategybook.info)\n\n Platforms can boost innovation through harmonization, but they aren't easy to build. Learn from over a decade of designing and rolling out IT platforms.", "znaku_textu": 6515, "slov": 594, "odkazu": 108, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/FormatIndicator.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 06:02:20", "sha256": "54fd70b7f96611bc8e639462761098b2ae2f6624ab4bd279699cca1308436683", "hloubka": 1, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://creativecommons.org/licenses/by/4.0/", "https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "https://www.architectelevator.com/book", "https://www.cloudstrategybook.com/", "https://www.platformstrategybook.info/"]} {"url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/Future.html", "titulek": "Emerging Standards and Futures in Enterprise Integration - Enterprise Integration Patterns", "h1": "", "popis": "As data flows across system and domain boundaries through \n messaging conduits, and as developers and architects become more proficient \n in the patterns that govern messaging systems, new standards and products \n will emerge to extend the tactical reach of those patterns. Over time, patterns \n tend to strengthen but otherwise change little if at all; but their implementation \n strategies often evolve rapidly to allow developers to apply them to much \n broader scales of sophistication. The fundamental Message \n Pattern, for example, finds its reach and applicability extended as implementation \n artifacts grow from EDI to proprietary MOM to open XML and SOAP-based web \n services to global BPEL and beyond. ", "klicova_slova": "Emerging Standards and Futures in Enterprise Integration,integration, messaging, events, patterns, event-driven, coupling, eai, middleware, application integration, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns", "og:title": "Emerging Standards and Futures in Enterprise Integration - Enterprise Integration Patterns", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/Future.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/eip1_patterns_wide.png"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "The Relationship between Standards and Design Patterns"}, {"uroven": 2, "text": "Survey of Standards Processes and Organizations"}, {"uroven": 2, "text": "Business Process Components and Intra-Web Service Messaging"}, {"uroven": 2, "text": "ebXML and the Electronic Business Messaging Service (ebMS)"}, {"uroven": 2, "text": "Business Process Execution Language for Web Services (BPEL4WS)"}, {"uroven": 2, "text": "Web Service Choreography Interface (WSCI)"}, {"uroven": 2, "text": "Java business process component standards"}, {"uroven": 2, "text": "WS-*"}, {"uroven": 2, "text": "Summary"}, {"uroven": 2, "text": "Integration Pattern Language"}], "markdown": "| | Emerging Standards and Futures in Enterprise Integration[Messaging Patterns](index.html) » Concluding Remarks | [Contents](toc.html)[⇐ Prev](BondTradingCaseStudy.html)[Next ⇒](bib.html) |\n| --- | --- | --- |\n\n*(By Sean Neville)*\n\nAs data flows across system and domain boundaries through \n messaging conduits, and as developers and architects become more proficient \n in the patterns that govern messaging systems, new standards and products \n will emerge to extend the tactical reach of those patterns. Over time, patterns \n tend to strengthen but otherwise change little if at all; but their implementation \n strategies often evolve rapidly to allow developers to apply them to much \n broader scales of sophistication. The fundamental [*Message*](Message.html) \n Pattern, for example, finds its reach and applicability extended as implementation \n artifacts grow from EDI to proprietary MOM to open XML and SOAP-based web \n services to global BPEL and beyond.\n\nThis chapter takes a look at the future of message-based enterprise \n integration in terms of the emerging standards that application developers \n will encounter in the mid 00's. Many of these standards are not currently\n in common use, but are coalescing with broad industry support, and are likely \n to serve as the foundation of integration pattern implementations particularly \n in service-oriented architectures. Most of them extend nascent web services \n technologies to support the types of patterns presented in this book. We'll \n take a look at why these standards are important in relation to design patterns, \n which organizations are creating them and how they're going about it, and \n offer a brief summary of the technical solutions for business process integration \n that a few of the most promising web services and Java standards aim to provide.\n\n## The Relationship between Standards and Design Patterns\n\nTwo mental artifacts provide the highest levels of abstraction \n in software architecture today: Programming orientations, which include object-oriented \n programming, service-oriented programming, generative programming and the \n like; and pattern languages, such as that documented in this book. If a particular \n orientation or design pattern proves useful, and if its context proves to \n recur frequently, the tactics and strategies used to implement the pattern \n often become very similar. Pattern solutions on multiple platforms, products \n and applications end up owning very few differences -- but those few differences \n are often frustrating growth inhibitors, typically semantic in nature, and\n produce interoperability that hinders sophistication of scale. To extend the \n reach of applications and the patterns on which they're based, such differences \n tend to be eliminated from products and platforms through formally agreed-upon \n standards.\n\nWhen a pattern's tactic or implementation strategy is standardized, \n the pattern does not wane in usefulness, replaced by that standard; instead, \n quite the opposite occurs. Like rings within a tree trunk, a strong pattern \n grows upon itself to ever-broader levels of applicability, creating and then \n applying itself in broader instances of context. This growth in scale occurs \n because separate instances of a pattern's implementation become interoperable \n with one another. Taking a typical message-oriented J2EE application as an \n example: A pattern such as [*Pipes and Filters*](PipesAndFilters.html) exists at many levels -- within the application as designed \n by the developer, but also within the server product used to host the application, \n within the containers and services within that server, within the filters \n and components that compose the messaging subsystems, and so forth in recursive \n fashion.\n\nEmerging messaging and web service standards will serve to \n strengthen the patterns in this book by extending the reach of the developers \n who employ them. Standards such as Business Process Execution Language (BPEL) \n and Web Services Reliability (WS-Reliability) propagate the scope of these patterns \n beyond bits, beyond languages, beyond products, and outward into increasingly \n useful compositions in the human- and system-centric circles of use cases \n and requirements. Application developers can stop using patterns such as [*Correlation Identifier*](CorrelationIdentifier.html)\n to match raw message replies to their senders, and can \n start using that same pattern to correlate process components that consist \n of multiple asynchronous message senders and receivers. Without the benefit\n of messaging standards, a Java developer may implement [*Message Router*](MessageRouter.html)\n at the code level to inspect the contents of individual XML \n messages in order to programmatically forward the message to a particular \n service or filter. Emerging workflow and choreography standards will allow \n that same developer to apply his knowledge of the [*Message Router*](MessageRouter.html)\n pattern at a higher level of abstraction to route workflow among process compositions, \n where the tactical artifacts are business process components rather than raw \n sections of XML documents. In other words, application developers can stop \n spending precious time linking protocols and set about the business of linking \n business processes and services across domain boundaries.\n\nThe usefulness of design patterns and programming orientation \n for developing sophisticated systems is proportional to the application developer's \n ability to depend upon common, interoperable implementation strategies and \n tactics. Today, strategies for working with a messaging pattern in J2EE may \n mean use of JMS, JCA, or JAX-RPC; tomorrow, the strategies used by application \n developers may involve use of model-driven technology, schema-based scripts, \n aspects or intentions -- and any such shifts in implementation tactics only \n increase the significance of the patterns, if both the pattern's contextual \n definition and relevant standards are appropriately embraced. Standards provide \n the best way we currently know to enforce these commonalities to extend the \n software architect's mastery of design patterns.\n\n## Survey of Standards Processes and Organizations\n\nContrary to popular cynicism, standards are not intended to \n be developed in a vendor vacuum isolated from practical application development. \n They are intended to unify and improve the implementation approaches discovered \n and developed by application developers. By exercising the design patterns \n in this book, you may be contributing to the development of a standard even \n if you don't directly contribute to a specification working group. The organizations \n and consortiums that oversee specification working groups don't always do \n a great job of recognizing and assimilating implementation approaches, but\n that's the intention.\n\nStandards are officially born when an inventor or group of \n inventors makes a formal proposal to a standards body. Usually this requires \n membership in the standards body. Each standards body enforces its own process \n for shaping proposals into a standard, and all members are legally bound to \n those rules. The processes generally involve the forming of a working group \n or committee to further develop the specification under the oversight and \n eventual approval of the organization's management. Intellectual property \n rights and licensing policies are often hot topics in these organizations, \n and can vary between standard bodies and even between working groups within \n the standards bodies.\n\nHere's a look at the major standards organizations involved \n in creating the emerging messaging and web service standards:\n\n**W3C** ([http://www.w3c.org](http://www.w3c.org)): \n The World Wide Web Consortium develops many of the basic web technologies \n that are in turn used as building blocks by other standards organizations. \n It is managed by an international team of researchers and engineers, and \n consists of a large group of member vendors, content providers, governments, \n research laboratories, and other entities. The W3C makes use of an open, \n collaborative review process in Working Groups and subsequently in public \n that results in lengthy but generally high-quality iterations. Technologies \n created through the W3C are usually unencumbered by member claims to intellectual \n property rights. W3C technologies include SOAP and WSDL, as well as all \n of the core XML specifications. The W3C Choreography Working Group will \n likely resolve conflicting business process specifications and provide \n the definitive basis for integration using web services.\n\n**OASIS** ([http://www.oasis-open.org](http://www.oasis-open.org/home/index.php)): \n One of several organizations that builds on W3C technologies is the Organization \n for the Advancement of Structured Information Standards, or OASIS. Chartered \n to foster guidelines for SGML development, this non-profit consortium \n of vendors now focuses on driving the adoption of global e-business standards. \n OASIS technical committees are producing many emerging web service standards, \n such as ebXML and WS-Reliability. OASIS also hosts the xml.org portal.\n\n**WS-I** ([http://www.ws-i.org](http://www.ws-i.org/)): \n The Web Services Interoperability Organization (WS-I) aims to ensure that \n web service technologies and standards are suitable for enabling business \n collaborations in a generic, interoperable manner. The organization promotes \n web service protocols and practices that can apply across multiple systems, \n platforms, and languages. A key tactic in achieving these goals is the \n WS-I Basic Profile, which specifies the collection of web service standards \n along with their version numbers -- in the first profile these are XML Schema\n 1.0, SOAP 1.1, WSDL 1.1, and UDDI 1.0 -- as well as conventions governing \n how they should be used together. Thus the WS-I intends to play a unifying \n role in ensuring that various vendors involved in web services development \n can work together in a way that benefits application developers. It was \n founded and is managed by the leading web service vendor companies, including \n Microsoft, IBM, BEA Systems, Oracle, and others.\n\n**JCP**([http://www.jcp.org](http://www.jcp.org)): \n The Java Community Process (JCP) produces Java language bindings and\n J2EE APIs for technologies such as the web services and messaging standards \n developed by other organizations. Led by Sun Microsystems, the JCP has \n not historically been an open process; although it makes use of Expert \n Groups and a proposal process similar to that of other standards organizations, \n intellectual property rights are typically retained by Sun and licensed \n to the Java and J2EE platform vendors for a fee. Most of the JSR Expert \n Groups are also led by Sun engineers. While lacking the openness of other \n organizations, the JCP has, on the other hand, benefited from the focus\n that Sun has provided somewhat unhindered by external agendas.\n\n**Ad Hoc Vendor Consortiums:** In the race \n to establish control over portions of the emerging web services technologies, \n particularly for the purposes of enterprise integration, traditional competitors \n such as IBM and Microsoft have in some cases united to publish would-be \n standards without submitting those works to any standards body. Many of \n the WS-* specifications fall into this bucket. Often standards developed through\n vendor consortiums end up as submissions to standards organizations; the promising Business\n Process Execution Language (BPEL), for example, spent its early life as a creation of\n Microsoft and IBM before being submitted to OASIS. Interest in retaining \n intellectual property rights seems to be the catalyst for working in ad \n hoc fashion. These specifications achieve interoperability without the \n licensing openness, which is often satisfactory for application developers \n integrating platforms as popular as those produced by Microsoft and IBM, \n though whether these works are truly \"open standards\" is understandably \n the subject of much debate.\n\n## Business Process Components and Intra-Web Service Messaging\n\nNot content merely to influence object-oriented programming, \n structural decomposition, and domain modeling, Aristotle also mischievously \n posed one of the most influential rhetorical questions ever to trouble software \n architecture: Is the world predominantly a series of processes or is it a \n series of objects?\n\nMessaging standards reply with an answer worthy of a Zen disciple: \n \"yes.\" The world is a series of objects whose most important characteristics \n are usually the processes through which they engage with and relate to other \n objects. It is often an object's behaviors related to other objects rather \n than its own internal composition that turns out to be most significant. In\n the realm of web services and enterprise integration, this object/process \n hybrid view is referred to as the business process component. The business \n process component unites a series of services into a logical unit that interacts \n with other such units via messaging to achieve highly-scalable, resilient \n flows of logic and data. The coalescence of process, object, and interaction\n patterns into a business process component is the future of messaging as seen \n by many web services vendors and standards bodies.\n\nThe process component is a macro view of a set of services \n that is particularly relevant to enterprise integration. Taking a non-technical \n example: A man can drive a car, and both the man and the car are separate \n highly-complex systems; the process view of the man and car, however, sees \n them as a single component defined by their interactions with one another, \n and does not focus on the composition of either the man or the car separate \n from the interaction between them. Further, the process component view goes \n on to describe the interactions of that single component with others on the \n road, again without interest in the internal composition of other automobiles \n or drivers. This is not the same as simply presenting an external interface, \n as it also includes the rules that govern behaviors between usages of the \n interfaces.\n\nThe business process component as emerging in standards is \n a single component that internally consists of a set of web services and a \n definition for how messages flow into and out of them. Web services and other\n message destinations are building blocks used to compose larger compositions\n whose interactions follow messaging patterns -- both the composition of the\n process component, and the linking of multiple process components into an\n application follow messaging patterns. Business process standards address\n the correlation of messages between web services in order to create flows of\n execution, and include behaviors related to errors, transactions, and data\n exchange.\n\nA more technical business example is illustrated below, in which the processing\n of a purchase order is handled by a component that consists of a number of service\n operations.\n\n*Figure 1: The Business Process Component exposing a single destination endpoint on behalf of multiple internally choreographed web services.*\n\nThe example includes the following characteristics and activities:\n\n- Each operation in the Process Purchase Order component is an operation available\n on the portType of a web service, and the various web services which expose the\n operations may reside on remote hosts in partner production facilities.\n- When a purchase order is received, four operations are invoked concurrently; but\n some of the operations have dependencies that must be synchronously resolved\n (the dashed arrows in the illustration indicate dependencies).\n- Two specific dependencies show that the shipping agreement and insurance costs\n are needed in order to calculate the final cost, and that a binding insurance agreement\n must be received before the manufacturer will commit resources to a production schedule.\n- Once all service operations have asynchronously completed, the purchase order has\n been processed. Rather than requiring the messaging client to interact with all of\n these services individually and manage the dependencies between them -- that is,\n rather than requiring the client to create a [*Process Manager*](ProcessManager.html) implementation -- the process component exposes a single network endpoint on behalf\n of all the services, and manages all of the messaging and dependencies between\n services internally, simplifying the client's tasks.\n- The Purchase Order process component is in turn linked to another business process\n component, the Process Invoice Component.\n\nFour standards initiatives warrant a good look in the business process component and integration space: the ebXML initiative, \n two competing proposals called Business Process Execution Language and Web \n Services Choreography Interface, and a collection of individual specifications \n joined through the \"WS-\" prefix that address pieces of the same \n functionality in slightly narrower, more specific fashion.\n\n## ebXML and the Electronic Business Messaging Service (ebMS)\n\nEven before the explosive popularity of SOAP and WSDL, many \n bright thinkers working on business collaboration and B2B integration projects \n saw a need to develop an open, secure, and interoperable infrastructure for \n exchanging business information using XML messaging. The several specifications \n and initiatives developed under the Electronic Business using eXtensible Markup\n Language (ebXML) banner address that need, and as technologies such as SOAP \n have become popular, ebXML has grown to include and build upon them. The ebXML \n initiatives are jointly managed through OASIS and the United Nations UN/CEFACT \n organization. UN/CEFACT is the global group that brought the Electronic Data \n Interchange (EDI) standard into the world, and ebXML in many ways represents \n the next logical stage in the evolution of EDI.\n\nSeveral specifications comprise ebXML, covering topics such \n as how enterprises advertise their business process and search for those of \n potential partners, how partners agree upon and initiate communication, the \n use of registries to facilitate the discovery and initialization of business\n conversations, and the behavior of the messaging infrastructure required to \n facilitate the conversations. This last element in particular has garnered \n a great deal of attention, and while it leverages the other ebXML specifications, \n it can also be considered separately, which is useful for the purposes of \n focusing on messaging patterns.\n\nThe Electronic Business Messaging Service (ebMS) is not quite \n as \"emerging\" as some of the other standards mentioned here, as \n it has already achieved significant success as a means of integrating business \n processes, augmenting EDI systems, and extending SOAP to provide reliability \n and security for web services. Developed by OASIS over a three-year period \n beginning in 1999, ebMS is also proving influential in the development of other\n business process standards.\n\nThe goal of ebMS is to ease the exchange of business messages \n within an XML framework, but that framework includes the use of message payloads \n that are not necessarily XML -- the payload can take any form, including traditional \n EDI formats as well as binary formats. Thus ebMS can encapsulate existing \n messaging systems and serve as a flexible bridging technology, containing \n a set of [*Message Translator*](MessageTranslator.html)\n implementations, which is particularly useful in scaling integration to extranets \n and to B2B communication between business partners. An important source of \n use cases for ebMS is the linkage of proprietary MOM systems across separate \n enterprises, and considerable testing between vendors and developers has occurred \n to verify this interoperability. Critical to ebMS is that it supports legacy\n EDI systems, allowing enterprises to leverage longstanding investments in \n EDI while compensating for EDI's shortcomings by incorporating features of \n the web and XML.\n\nWhile on the one hand ebMS is a compatible iteration of EDI, \n on the other hand it is also a sophisticated improvement of standard SOAP-based \n services. The XML transmissions used in an ebMS system consist of SOAP envelopes\n that include ebMS-specific SOAP Headers to record unique message identifiers, \n timestamps, digital signatures, and a manifest which provides metadata about \n the message's payload. Thus ebMS uses the SOAP Header mechanism to implement \n the [*Introduction to Message Routing*](MessageRoutingIntro.html)\n patterns and many of the [*Introduction to Messaging Endpoints*](MessagingEndpointsIntro.html)\npatterns, such as [*Idempotent Receiver*](IdempotentReceiver.html) and others related to guaranteed sequential delivery.\n\nebMS transports its payloads by using the SOAP with Attachments \n standard to attach the payload to the SOAP envelope in much the same way that \n attachments are added to email messages. These payloads, again, have no formatting \n restrictions placed upon them: a message's payload may be XML data, binary \n data, link-based references to external data, etc. Further, each payload may \n have its own digital signature, and additional authentication and authorization \n may be provided by ebMS implementers.\n\n*Figure 2: An ebMS message is composed as SOAP messages with attachments.*\n\nAsynchronous message delivery is the default, but synchronous \n delivery is also possible through ebMS. The error-handling mechanism is also \n quite sophisticated, and depending on the implementation can provide SOAP \n Fault information along with payload-specific error messages.\n\nTo provide reliability, the critical element of an ebMS implementation \n -- called ebXML Message Service Handlers -- persist messages at the sending \n end of a conversation. Developers can provide semantic declarations such as \n \"once-and-only-once\" and \"store-and-forward\" for individual \n messages or for groups of messages. ebMS specifies services to manage sequential \n delivery and management as well; this last service is implemented through \n a Message Status Service that represents a\n [*Control Bus*](ControlBus.html). It provides the ability to request the status of a message previously \n sent into the ebMS system, which underneath the covers operates through an \n implementation of [*Message History*](MessageHistory.html) and related patterns.\n\nMore information on ebXML can be found here: [http://www.ebxml.org/](http://www.ebxml.org/)\n\nThe ebMS specification can be found here: [http://www.ebxml.org/specs/ebMS2.pdf](http://www.ebxml.org/specs/ebMS2.pdf)\n\n## Business Process Execution Language for Web Services (BPEL4WS)\n\nA popular emerging standard for defining business process \n components and their interactions is Business Process Execution Language for \n Web Services (BPEL4WS). The name is often pronounced \"bee-pel\" or \n even worse -- \"bee-pel for wuss.\" This standard represents the merging \n of two competing proposals from IBM and from Microsoft. IBM's Web Services \n Flow Language (WSFL) specified a means of creating and linking service endpoints \n to choreograph web service workflows, while Microsoft's XLANG provided a syntax \n and development model for creating workflow components as realized in the \n Microsoft BizTalk server product. BPEL4WS provides a bit of both: It includes \n a syntax for composing processes from existing services, and for describing \n process interfaces for the purpose of linking them together in larger workflows. \n It was created by an ad hoc collaboration between BEA Systems, IBM, and Microsoft, and has been submitted to OASIS.\n\nThe design of BPEL calls for linkages of web services, named \n \"partners,\" to put XML messages into and out of message stores, \n called \"containers,\" according to rules called \"activities.\" \n A logical set of service linkages, message containers, and activities comprise \n a single business process component. The BPEL specification essentially defines \n a [*Process Manager*](ProcessManager.html) that creates [*Routing Slip*](RoutingTable.html), \n [*Durable Subscriber*](DurableSubscription.html), [*Datatype Channel*](DatatypeChannel.html), and more based on a declarative XML syntax. Developers declare behaviors in XML (perhaps with the aid of visual tools) in order to craft business process components such as the one in Figure 1 above, and do not need to programmatically create the messaging between services.\n\nWeb Service Description Language (WSDL) documents are very \n important to BPEL, as the BPEL component will consist of and manage multiple \n web services based on the services' WSDL documents. The business process instantiates \n and routes messages to the service endpoints declared within these services' \n WSDL documents using messages that are formatted according to the WSDL message \n declarations. The BPEL syntax links the portType and operations of a set of \n web services by importing their WSDL files and declaring what sequences to \n use to receive the service messages, where to send them, when and how to reply, \n when to invoke other web services, and so forth.\n\nIn order to establish the linkages between services, the application \n developer imports the WSDL of the web services comprising the component and \n defines the partner relationships between them using the BPEL serviceLinkType \n element. This element refers to the portTypes of the web services involved \n in a flow and the partner roles that they play in relation to the process; \n the developer is then able to refer to these linkages and partner roles when \n declaring how messages should flow into and out of them.\n\nAfter declaring the relationships between services, the developer \n uses BPEL to create \"containers\" to hold the messages that the services \n use as input and output. Containers are very much like a [*Datatype Channel*](DatatypeChannel.html)\nfor the message types defined in WSDL. Depending on the \n underlying container implementation, a container could also be considered \n from the perspective of the [*Shared Database*](SharedDataBaseIntegration.html) integration style, but with added encapsulation and built-in \n collaboration semantics; a container is a shared data repository used by separate \n services. In addition to connecting containers to services through the BPEL \n elements, a container's contents can be accessed directly via XPath extensions.\n\nA BPEL component itself exposes its own input and output points \n as a single interface, and it does so in the same form that its internal web \n services use: through WSDL. It should be evident, however, that the WSDL of \n a business process component is slightly different from a web service WSDL \n document in that the business process WSDL's portTypes define entry points \n into and out of that single process, and not separate pieces of logic implemented \n as methods in a service interface.\n\nThe behavior of a BPEL component is declared as a set of actions. \n In any one specific action, a business processes can send messages to a service \n (in this case the web service is called an invoked partner), receive messages \n from a service (in this case the service is called a client partner), reply \n to a message sent by a client partner, determine whether it should send or \n receive messages based on some logical rule, wait for a scheduled period of \n time, report an error, copy a message from one place to another, or do nothing \n at all.\n\nThe BPEL XML grammar reflects each these basic actions. A \n developer uses the element to send messages to an invoked partner, and uses \n and to receive and reply to a client partner. Elements such \n as and fork logic into parallel and event-based channels of execution. The element facilitates error reporting, while the , and elements pause or halt execution. Elements to structure activities include\n , and , and conditionals in BPEL are declared using XPath \n statements.\n\nOnce a developer has created the XML source file that defines \n the services that will compose a business process, declares the message containers \n that the services will use, and declares the sequence of operations involved \n in the message exchange, he is ready to deploy the business process component. \n This is where the runtime aspects of BPEL implementations come into play.\n\nIn addition to acting as declarations of service relationships \n and message flow, BPEL descriptions are also executables file that can be \n fed into a BPEL4WS engine. When this happens, the engine interprets the file \n and sets up a series of messaging constructs for the application developer \n that connects the web services that are part of the business process. As a \n [*Process Manager*](ProcessManager.html) implementation, the BPEL4WS runtime is the governing entity that manages and \n correlates the flow of messages between services. The BPEL4WS engine accepts \n all of the necessary documents and dynamically generates and manages the messaging \n infrastructure.\n\nThe BPEL specification can be found here: [http://www-106.ibm.com/developerworks/webservices/library/ws-bpel/](http://www-106.ibm.com/developerworks/webservices/library/ws-bpel/)\n\n## Web Service Choreography Interface (WSCI)\n\nThe Web Service Choreography Interface (often pronounced \"whiskey\") \n addresses the same problem domain tackled by BPEL. The two were competing specifications\n initially backed by competing vendor alliances (with the exception of BEA, which appears\n to be hedging bets by contributing to both specifications). WSCI was backed\n by Sun, Intalio, SAP, and BEA, and has been submitted to the W3C. However, several original\n supporters of WSCI are now lending support to BPEL.\n\nWSCI is influenced by Business Process Modeling Language (BPML), \n which while not directly relevant to integration patterns does bear mentioning \n for the sake of WSCI's historical context. BPML represents business processes \n in an XML-based meta language used in process modeling. BPML's workflow aspects \n are largely part of WSCI, but BPML also includes a companion graphical notation \n and query language.\n\nLike BPEL, WSCI recognizes the fact that enterprise integration \n involves lengthy conversations among composite services rather than the single \n operational invocations assumed by basic web services protocols. WSCI provides \n a way to link service messages from multiple operations into these composite \n processes, ensuring along the way that messages are sent or received in the \n proper sequences, sent and received according to declarative business rules, \n sent in transactional fashion when needed, and portrayable and manageable \n as a single global process. Leveraging web service advantages over \n traditional proprietary MOM solutions, WSCI also accommodates the dynamic discovery\n of services, heterogeneous protocols, and decentralized coordination of workflow.\n\nLike BPEL, WSCI relies heavily upon WSDL's advertisement of \n service endpoints, portTypes, operations, and message types. WSCI actions \n directly map to operations exposed in the WSDL of the services within a choreography. Moreover, the WSCI syntax is embedded directly within a WSDL \n file; the declarations sit either in a WSDL document which imports the WSDL \n documents of the choreographed services, or within the WSDL file of a single \n service whose operations are being choreographed. WSCI elements are contained \n within the WSDL element.\n\nThe fundamental construct of WSCI is the action, in which \n web service messaging occurs. Actions are grouped within process elements \n so that they are declared to occur sequentially, in parallel, in loop, or \n conditionally. A set of processes is grouped with an interface declaration; \n this element is the interface to the process component, and it is \n directly embedded within the WSDL definitions of a web service. Many of the \n activity elements are similar to those of BPEL, and like their BPEL counterparts \n they include support for XPath expressions.\n\nThe WSCI specification can be found here: [http://wwws.sun.com/software/xml/developers/wsci/wsci-spec-10.pdf](http://wwws.sun.com/software/xml/developers/wsci/wsci-spec-10.pdf)\n\n## Java business process component standards\n\nThe Java Community Process (JCP) creates Java language APIs \n and bindings influenced by non-Java standards. In particular, standards developed \n by the Object Management Group (OMG) and the W3C have been shadowed by the \n JCP. Recently, the JCP has turned this approach toward web service standards \n developed by groups such as the WS-I, and two new much-ballyhooed JSR's are \n now underway to address Java bindings for business process components: Process \n Definition for Java (JSR-207) submitted by BEA Systems, and Java Business \n Integration (JSR-208) submitted by Sun Microsystems. While at first glance \n these two proposals may seem to overlap, they are actually fairly complimentary. \n JSR-207 specifies a way for developers to craft messaging \n or process components quickly and easily using metadata attached to Java code; JSR-208 specifies \n how those components will interact with each other, with containers, and with \n the rest of the J2EE and web services world. So JSR-207 is more or less a \n micro view and JSR-208 is a macro view of how the messaging between process \n components is to be standardized in Java.\n\n**Process Definition for Java (JSR-207)**\n\nProcess Definition for Java (JSR-207), submitted by BEA Systems, \n aims to define metadata, interfaces, and a runtime model for creating business \n processes in the Java/J2EE environment. This very important JSR intends to \n specify the standard means of crafting business process components using the \n Java language and Javadoc-like metadata annotations. Proposed as an addition \n to J2EE, the mechanism could also be used to build Java implementations of \n business process initiatives such as BPEL4WS, WSCI, and those produced by \n the W3C Choreography Working Group.\n\nThis technology builds upon Java Language Metadata technology \n (JSR-175) in order to supply a simple syntax for describing business \n processes. Metadata can be applied directly to Java source code in order to \n dynamically generate and bind process behaviors, including support for asynchronous \n messaging, parallel execution, message correlation, message routing, error \n handling, and other common flow activities. The metadata semantics, therefore, \n need to be rich enough to support the parameters needed for a component's \n container to dynamically set up the messaging infrastructure and handle \nissues described in [*Introduction to Message Construction*](MessageConstructionIntro.html) upon the component's deployment.\n\nIt is worth noting that this JSR is not needed to enable developers \n to build business process components in J2EE. It is possible to build such processes \n today -- but it is laborious work that requires developers to apply messaging \n patterns at a very low level, and results in workflows that are costly to \n maintain. This specification intends to simplify the creation of process components \n so that developers can apply their skills at a higher level, creating more\n powerful applications more rapidly that are less expensive to evolve and administer \n over time.\n\nMore details on Process definition for Java can be found here: \n [http://www.jcp.org/en/jsr/detail?id=207](http://www.jcp.org/en/jsr/detail?id=207)\n\n**Java Business Integration (JSR-208)**\n\nSun proposed Java Business Integration (JBI) in JSR-208 with \n the intention of defining service provider interfaces (SPIs) for creating \n a business integration environment for specifications such as WSCI, BPEL4WS \n and the work produced by the W3C Choreography Working Group. JBI proposes \n no new Java APIs or annotations, but does include a new deployment and packaging \n mechanism. Instead of adding APIs for developers, JBI focuses on integration \n infrastructure, and its SPIs will be visible primarily to product vendors \n who create messaging and process component models for performing integration \n work in a Java setting. The JBI expert group aims to follow the lead of the \n W3C Choreography Working Group and ensure that the work of that group will \n fit seamlessly into the J2EE platform.\n\nJBI has a fairly lofty goal: Map various systems and protocol \n standards -- that is, multiple syntaxes used to describe relationships between \n processes, including syntaxes that are proprietary and vendor-specific as \n well as those that become standard -- to one another and to J2EE. It provides \n a Java binding for message choreography regardless of the underlying message \n and process specifics. It also includes a new packaging mechanism that extends \n J2EE packaging (such as WAR, JAR, RAR and EAR) to support the deployment of \n a JBI component into a J2EE environment.\n\nJBI sees three principal roles required for supporting process \n components: Bindings, machines, and the environment. Bindings are about communication \n formats, and include message formats and network transports along with their \n mappings as well as forming an umbrella around workflow formats such as BPEL; \n machines are the service and process containers that host and manage business \n processes; the environment is the over-arching process management system that \n links heterogeneous machines and bindings to one another. JBI focuses on the\n environment as the core of the integration system, and specifies how machines \n and bindings interact with it. The JBI packaging and deployment mechanism \n is intended to provide a means of hooking processes up to the environment \n in a standard way, but the actual creation of those components is outside \n the scope of the specification.\n\nJBI views the Process Definition for Java (JSR-207) described above as \n a way of composing process components, and the runtime that will host those \n components fits into the category of a JBI machine. That machine should implement \n the [*Message Translator*](MessageTranslator.html), [*Service Activator*](MessagingAdapter.html), [*Envelope Wrapper*](EnvelopeWrapper.html)\nand other patterns necessary to expose their formats and \n protocol behaviors through JBI to ensure that it can integrate correctly with \n the integration environment.\n\nMore details on JBI can be found here: [http://www.jcp.org/en/jsr/detail?id=208](http://www.jcp.org/en/jsr/detail?id=208)\n\n## WS-*\n\nLess ambitious than the process integration specifications \n described above, a number of web services specifications are emerging to extend \n SOAP- and WSDL-based web services to include reliability, security, statefulness, \n and quality of service. Typically identifiable by the \"WS-\" prefix, \n these specifications build on the W3C technologies and each addresses a fairly \n specific problem.\n\nUnfortunately the web services standards landscape has become \n muddled with competing versions backed by competing vendor alliances, and \n perhaps as a result of this competition many of these standards are rarely \n seen implemented in the wild today. A standards shake-out seems to be looming.\n Nevertheless, these specifications are worth noting, as their idioms and tactics \n might prove useful to application developers who are applying web services \n technologies like SOAP and WSDL to messaging-based enterprise integration. \n These standards are also certain to find a home in the products of the vendors \n who propose them, including those of IBM, BEA, Microsoft, and Oracle.\n\nA few of the more notable specifications in this category \n include those dealing with transactability, reliability, routing, conversational state, and security.\n These are described below.\n\n**WS-Coordination and WS-Transaction**\n\nBeing stateless and unreliable, the most popular web service \n protocols and transports do not provide the quality of service required by \n transactional processes. This shortcoming blossoms into a critically important \n problem. In practice, it means that if a developer wishes to use a web service-based \n integration mechanism, that developer must grow his own transaction scheme within those integration mechanisms. A collection of service invocations that occur \n through asynchronous messaging must be capable of being batched atomically, \n so that the messages function as unit that can fail or rollback all at once, \n or as a unit whose failure can trigger some form of compensation. This is \n common in proprietary MOM systems. The Web Services Coordination and Web Services \n Transaction specifications tackle this problem for web services.\n\nWS-Coordination, drafted by BEA, Microsoft and IBM, specifies \n a way to create and propagate contextual information by all of the services \n participating in a flow, even asynchronously and over jagged time intervals. \n The specification describes an extensible framework for creating protocols \n that coordinate the actions of applications and services. These coordination \n protocols function by creating and registering XML-based contexts that are \n propagated with SOAP messages and used by coordinators located at all endpoints in an \n interaction.\n\nSuch contexts can be used to support a number of application \n behaviors, such as those that need to reach consistent agreement on the outcome \n of distributed transactions. Accordingly, the WS-Transaction specification \n uses WS-Coordination to implement distributed transactability across service \n invocations.\n\nWS-Transaction defines a way to monitor and message the success \n or failure of each action in a flow. Practically, this means that when a SOAP \n message arrives at an endpoint, the SOAP Header containing the coordination \n context must be filtered and pulled from the message (implementations may \n employ the [*Content Filter*](ContentFilter.html) and [*Splitter*](Sequencer.html)\n patterns for this task) and then sent to the transaction coordinator for interpretation.\n\nThe SOAP envelope excerpt below provides a simple example of a coordination context used for making SOAP operations transactable through WS-Transaction. This context information in the SOAP header is used by coordinators to register applications to receive transaction events such as enlistments, the prepare stage of a two-phase commit process, rollbacks, and commits.\n\n```\n\n\n \n\n \n\n http://foo.com/baz/bar\n 2004-12-31T18:00:00-08:00\n\n \n http://schemas.xmlsoap.org/ws/2002/08/wstx\n \n\n \n \n http://foo.com/coordinationservice/registration\n \n \n\n \n RepeatableRead\n \n\n \n\n \n\n \n\n \n```\n\nThe WS-Transaction specification defines two coordination \n types for developers to use in their applications: Atomic Transaction (AT) \n and Business Activity (BA).\n\nAtomic Transactions map fairly well to traditional distributed \n transaction technology, such as XA. They are useful for relatively short-lived \n operations in which locking of resources -- such as threads and portions of \n data sources -- are acceptable, and in which absolute rollbacks make sense. \n WS-Transaction provides a means of linking proprietary XA implementations, \n including support for two-phase commit, to web services.\n\nA Business Activity is typically a long-lived process that \n may consist of a number of atomic transactions. A global rollback is usually \n not desirable in the event of a single failure condition in a business activity; \n instead, a failure of one atomic transaction within a business activity should \n often trigger another set of service invocations and message exchanges. These \n exchanges might include compensation techniques to recover from the error \n in a way that preserves part of the history of the business activity. An example \n is a business activity that includes the booking of an airline flight, rental \n of a car, reservation of a hotel room, and reservation of theater tickets \n that a user makes over a two- or three-day period. Each activity in this flow \n may be an atomic transaction, and if one of the events should fail, the over-arching \n business activity of making the travel arrangements should adjust via compensation \n rather than through coordinated rollback of all atomic transactions.\n\nThe WS-Coordination and WS-Transaction specifications are \n promising attempts to provide reliable, rich behaviors in the event of failures \n during service messaging. As they begin to wind their way into products, they \n should take the burden off of developers to craft their own transactability \n and contextual services around message-based service applications.\n\nInformation on WS-Transaction can be found here: [http://dev2dev.bea.com/technologies/webservices/ws-transaction.jsp](http://dev2dev.bea.com/technologies/webservices/ws-transaction.jsp)\n\n**WS-Reliability and WS-ReliableMessaging**\n\nIt is common for message-based interactions between web services \n to require reliable, guaranteeable messaging even in the event of network, \n application, or component failures, and to include persistence mechanisms \n and resend semantics. The most popular web service technologies do not provide \n such reliability, however; SOAP without enhancements, for example, isn't comprehensively \n useful in many enterprise messaging scenarios because its most popular bindings \n don't reliably guarantee message delivery.\n\nTo remedy this, application developers are typically forced \n to implement reliability themselves using the extensibility of web service \n mechanisms such as SOAP Headers. To eliminate the need for application developers \n to take on this task, new standards are emerging to tackle web service reliability. \n Two such specifications are WS-Reliability and WS-ReliableMessaging. As is \n common in the nascent web services standards space, these two standards are competing, \n backed by different groups of vendors aimed at the same problem domain.\n\nWeb Services Reliability (WS-Reliability) provides SOAP-based \n web services with the ability to exchange messages asynchronously with guaranteed \n delivery, without duplicates, and with message ordering. It is a SOAP standard \n for managing message aggregation and sequencing, and provides a standard tactic \n for implementing the[*Guaranteed Delivery*](GuaranteedMessaging.html)\nand [*Resequencer*](Resequencer.html)\n patterns, among others. WS-Reliability leverages the SOAP Header mechanism \n to add the header elements MessageHeader, ReliableMessage, MessageOrder, and \n RMResponse to SOAP messages. These elements denote message identifiers such \n as group ids and sequence numbers, timestamps, time to live values, message \n type values, sender and receiver information, and acknowledgment callback \n information. WS-Reliability is produced by a number of vendors, including \n Sun, Oracle, and Sonic, and it has been submitted to OASIS. It is heavily influenced by the functionality of the \n ebXML Message Service (ebMS) described above.\n\nTo conform to WS-Reliability, the receiver of a SOAP message \n must respond with either a fault or an acknowledgement using the RMResponse \n element in a SOAP header. If such an acknowledgement is not received, then \n the sender will resend the same message using the same message identifier. \n The sender is required to persist the message until its time to live value \n has expired, or until acknowledgment or failure has occurred; the receiver \n is also required to persist the message until it can be reliably transmitted \n to the application layer.\n\nTo ensure that once-and-only-once message behaviors are enforced, \n WS-Reliability provides a sequence number mechanism which can be enabled based \n on application requirements. Separate messages that are grouped together may \n share the same group identifier, but will advertise their own sequence numbers \n within the SOAP header, allowing receivers to resequence the messages before \n delivering them to the application.\n\nThe WS-Reliability specification can be found here: [http://www.oasis-open.org/committees/documents.php?wg_abbrev=wsrm](http://www.oasis-open.org/committees/documents.php?wg_abbrev=wsrm)\n\nThe Web Services Reliable Messaging (WS-ReliableMessaging) \n specification describes a similar protocol that allows messages to be delivered \n reliably between distributed applications in the presence of failures. The \n protocol is described in an independent manner, allowing it to be implemented \n using a variety of network transport technologies and bindings. The specification does include one specific binding for SOAP. WS-ReliableMessaging \n is backed by BEA, IBM, and Microsoft and has not yet been released to a standards \n body.\n\nWS-ReliableMessaging operates on the same principles as WS-Reliability. \n It makes similar use of acknowledgements, callbacks, identifiers, implies \n similar usage of persistent message caches, and offers detailed fault messages. \n It ensures that messages are delivered according to any of four basic delivery \n assurances: At most once, at least once, exactly once, and in order. An example of a message sequence delivered through WS-ReliableMessaging is illustrated below.\n\n*Figure 3: WS-ReliableMessaging provides guaranteed sequential delivery through a series of acknowledgment callbacks that rely on unique ID's inserted into the SOAP header element.*\n\nA key difference between the two competing reliability specifications \n is that WS-ReliableMessaging includes usage of other critical web services \n specifications, such as WS-Security and WS-Addressing. In practice, this means \n that WS-ReliableMessaging uses specific idioms from other standards for supplying\n this information, whereas WS-Reliability supports the features but does not \n yet insist on the idiomatic forms specified in the other new standards.\n\nMore information on WS-ReliableMessaging can be found here: \n [http://dev2dev.bea.com/technologies/webservices/ws-reliablemessaging.jsp](http://dev2dev.bea.com/technologies/webservices/ws-reliablemessaging.jsp)\n\n**WS-Conversation**\n\nWeb Services Conversation (WS-Conversation) specifies a protocol \n for managing stateful asynchronous message exchange between a sender and receiver, \n usually across two SOAP endpoints. In contrast to relying on an encapsulating \n business process component for managing stateful message exchange among multiple \n partners, this proposal provides a simple means of accomplishing the same \n thing between a single client and single service (where the client may also \n be a service).\n\nThe protocol leverages the SOAP Header mechanism to send identifiers, \n or token ids, along with SOAP messages. When a stateful conversation is begun, \n the element is used to supply a conversation identifier and callback \n URI. Subsequent messages that are part of the same conversation use the \n and the for further requests and replies, and these elements \n will include the same identifier established when the conversation was started.\n\nThe SOAP Header mechanism can be used to implement these patterns \n without use of these standard mechanisms, though there is benefit in establishing\n a common mechanism for clients and services across platforms. It is a formalization \n of the [*Aggregator*](Aggregator.html) and [*Composed Message Processor*](DistributionAggregate.html)\npatterns using [*Correlation Identifier*](CorrelationIdentifier.html)\nfor the purposes of mapping multiple messages to a single \n session.\n\nThe approach of externalizing state management through a process \n component or choreography seems more promising for larger-scale integration \n projects where it is useful for simplicity's sake to consider the services \n and components as black boxes, but WS-Conversation is an example of what can \n be done when greater control over the services and clients is possible.\n\n**WS-Security**\n\nWhile standards such as WS-ReliableMessaging, WS-Coordination, and WS-Addressing\n provide various mechanisms that identify the sender of a message, none of those\n specifications guarantee that the sender actually owns the identity it claims. The\n elements of the WS-I Basic Profile -- XML Schema, SOAP, WSDL and UDDI -- make no\n mention of how identity is verified and guaranteed, or how message integrity\n is to be maintained. Early adopters of web services either kept their services\n open and available to all, or developed proprietary security protocols in order\n to fill this gap. The proprietary and private approaches created an undesirable\n coupling between message senders and receivers, something particuarly galling in\n otherwise asynchronous and loosely coupled federations of message nodes.\n\nWS-Security, also referred to as the Web Services Security Language, is the proposed\n standard means of addressing these issues. Of all the WS-* specifications, it enjoys\n perhaps the broadest level of consensus among the major web service platform vendors.\n Created by a consortium consisting of Microsoft, IBM, and Verisign, it is now part of\n OASIS; it has received votes of confidence from the likes of Sun, BEA, Intel, SAP,\n IONA, RSA Security, and others.\n\nWS-Security does not propose new security technologies, but rather it bridges SOAP and\n existing security technologies. It provides a generic, extensible means of associating\n security tokens with SOAP messages and propagating those tokens to SOAP endpoints. It\n also specifies the standard approach to encoding binary security tokens, such as digital\n certificates and Kerberos tickets, in SOAP messages. It does not describe specific fixed\n protocols, but rather establishes a general set of mechanisms for implementing any number\n of security protocols and incorporating any number of trust domains, signature formats,\n and encryption technologies. In as much as it can include use of digital certificates,\n digests, and implementations of technologies such as PKI, Kerberos, SSL and the like,\n WS-Security represents a way to apply familiar Internet security standbys to SOAP endpoints.\n\nIn addition to verification of sender identity, WS-Security may also protect message integrity --\n that is, protect it from intermediary prying eyes during network transmission -- by leveraging the\n W3C XML Signature and XML Encryption standards. In cases in which intermediary actors and third\n party services are not involved, however, the use of HTTPS is a common alternative means of protecting\n SOAP messages in transit.\n\nThe security model specifies that a SOAP message sender makes a series of claims such as\n the sender's identity, group, privilege, and the like. These claims are collected in the form\n of a signed security token. The receiver of the message is charged with endorsing the claims.\n The tokens and signatures are carried in a SOAP Header block, specifically under the\n header element in the WS-Security namespace. If an error occurs when the\n receiver endorses claims, that error will be one of two types: \"unsupported\" errors, which\n indicate that the endpoint does not support a particular token or encryption algorithm; and\n \"failure\" errors, which indicate most other errors, including all those related to invalid\n tokens and signatures. The specification does not mandate that failure errors always be reported,\n as they may be the result of an attack. When errors are reported, they take the form of SOAP Faults\n with fault codes defined in the specification.\n\nThe WS-Security specification can be found on the web sites of each of its co-authoring vendors,\n including the following location at IBM: [http://www-106.ibm.com/developerworks/library/ws-secure/](http://www-106.ibm.com/developerworks/library/ws-secure/)\n\n**WS-Addressing, WS-Policy other WS- Specifications**\n\nThere are a number of other proposed \"WS-\" specifications \n with varying degrees of support and acceptance. Some are quite narrow in scope, \n such as WS-Addressing which defines XML elements to identify web service endpoints \n in messages. This specification aims to support messaging through intermediaries \n such as endpoint managers, proxies, firewalls, and gateways in a transport-neutral \n manner. Essentially, WS-Addressing is a standard way to denote who a message \n is from (\"From:\") and who it is to (\"To:\"). It provides \n a means to plug SOAP-based web services into [*Recipient List*](RecipientList.html)\n solutions. As it provides a means of specifying where to direct a reply, it appears\n destined to be the standard web services approach to resolving the issues raised in\n [*Return Address*](ReturnAddress.html).\n\nA means of supplying metadata about services, the Web Services \n Policy Framework (WS-Policy) offers a syntax for describing the policies of \n a web service. Such policies include service requirements, preferences, capabilities, \n and quality of service metadata. The accompanying Web Services Policy Assertions \n Language (WS-PolicyAssertions) specifies a means of asserting that a message \n or service endpoint supports a particular policy. It involves investigating\n the WS-Policy declarations in search of a specific required policy. Finally, \n the Web Services Policy Attachment (WS-PolicyAttachment) describes how these \n policy standards fit into existing web service technologies. It specifies \n how to associate policy expressions with WSDL type definitions and UDDI entities, \n and it defines how to associate implementation-specific policies with all \n or part of a WSDL portType.\n\nNew WS-* specifications are surfacing quickly as vendors race \n to formalize the implementation practices that application developers are \n following, staking a claim to valuable web service intellectual property in \n the process. Wise application developers will keep an eye on interesting standards \n and cull idioms from them when useful, but will also bear in mind that the \n pattern and not the implementation idiom is most important to crafting a message-based \n application. The emerging WS- standards are not yet required for implementing \n interoperable enterprise messaging systems, and where they become hindrances \n or distractions, they should boldly be ignored until mature.\n\n## Summary\n\nAt their best, standards extend the reach of design patterns \n by ensuring that different implementations of the same pattern are interoperable. \n Many efforts are underway to extend messaging patterns through web service \n standards; many of these standards focus on the composition and behavior of \n workflow components called business process components. Standards such as \n BPEL, WSCI, and the WS-* specifications tackle many of the problems described \n in this book, and implement several of the patterns in this pattern language.\n\nStill, the emerging standards stories are occasionally conflicting \n and can be confusing. They're certainly not all ready for prime time. When\n applying a pattern, an application developer should avoid getting bogged down \n by standards and stay focused instead on the particular use cases at hand. \n Take a look at how certain standards are approaching a problem, and adopt \n those tactical, idiomatic implementations of a pattern if it makes sense, \n or if it's helpful during implementation -- regardless of whether the approach \n is standardized across vendor products. Developers can also provide feedback \n to standards organizations to challenge, criticize, and otherwise ensure that \n standards become practically useful and not academic or vendor exercises. \n As standards mature, architects are wise to consider how their use might extend \n enterprise integration solutions to broader, less risky, less costly, and \n more powerful levels of sophistication.\n\n## Integration Pattern Language\n\n[Message Construct.](MessageConstructionIntro.html)\n\n[Message](Message.html)\n\n[Command Message](CommandMessage.html)\n\n[Document Message](DocumentMessage.html)\n\n[Event Message](EventMessage.html)\n\n[Request-Reply](RequestReply.html)\n\n[Return Address](ReturnAddress.html)\n\n[Correlation Identifier](CorrelationIdentifier.html)\n\n[Message Sequence](MessageSequence.html)\n\n[Message Expiration](MessageExpiration.html)\n\n[Format Indicator](FormatIndicator.html)\n\n[Message Routing](MessageRoutingIntro.html)\n\n[Pipes-and-Filters](PipesAndFilters.html)\n\n[Message Router](MessageRouter.html)\n\n[Content-based Router](ContentBasedRouter.html)\n\n[Message Filter](Filter.html)\n\n[Dynamic Router](DynamicRouter.html)\n\n[Recipient List](RecipientList.html)\n\n[Splitter](Sequencer.html)\n\n[Aggregator](Aggregator.html)\n\n[Resequencer](Resequencer.html)\n\n[Composed Msg. Processor](DistributionAggregate.html)\n\n[Scatter-Gather](BroadcastAggregate.html)\n\n[Routing Slip](RoutingTable.html)\n\n[Process Manager](ProcessManager.html)\n\n[Message Broker](MessageBroker.html)\n\n[Message\nTransformation](MessageTransformationIntro.html)\n\n[Message Translator](MessageTranslator.html)\n\n[Envelope Wrapper](EnvelopeWrapper.html)\n\n[Content Enricher](DataEnricher.html)\n\n[Content Filter](ContentFilter.html)\n\n[Claim Check](StoreInLibrary.html)\n\n[Normalizer](Normalizer.html)\n\n[Canonical Data Model](CanonicalDataModel.html)\n\n[Messaging Endpoints](MessagingEndpointsIntro.html)\n\n[Message Endpoint](MessageEndpoint.html)\n\n[Messaging Gateway](MessagingGateway.html)\n\n[Messaging Mapper](MessagingMapper.html)\n\n[Transactional Client](TransactionalClient.html)\n\n[Polling Consumer](PollingConsumer.html)\n\n[Event-driven Consumer](EventDrivenConsumer.html)\n\n[Competing Consumers](CompetingConsumers.html)\n\n[Message Dispatcher](MessageDispatcher.html)\n\n[Selective Consumer](MessageSelector.html)\n\n[Durable Subscriber](DurableSubscription.html)\n\n[Idempotent Receiver](IdempotentReceiver.html)\n\n[Service Activator](MessagingAdapter.html)\n\n[Messaging Channels](MessagingChannelsIntro.html)\n\n[Message Channel](MessageChannel.html)\n\n[Point-to-Point Channel](PointToPointChannel.html)\n\n[Publish-Subscr. Channel](PublishSubscribeChannel.html)\n\n[Datatype Channel](DatatypeChannel.html)\n\n[Invalid Message Channel](InvalidMessageChannel.html)\n\n[Dead Letter Channel](DeadLetterChannel.html)\n\n[Guaranteed Delivery](GuaranteedMessaging.html)\n\n[Channel Adapter](ChannelAdapter.html)\n\n[Messaging Bridge](MessagingBridge.html)\n\n[Message Bus](MessageBus.html)\n\n[Systems Mgmt.](SystemManagementIntro.html)\n\n[Control Bus](ControlBus.html)\n\n[Detour](Detour.html)\n\n[Wire Tap](WireTap.html)\n\n[Message History](MessageHistory.html)\n\n[Message Store](MessageStore.html)\n\n[Smart Proxy](SmartProxy.html)\n\n[Test Message](TestMessage.html)\n\n[Channel Purger](ChannelPurger.html)", "znaku_textu": 62972, "slov": 8754, "odkazu": 121, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/patterns/messaging/Future.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 06:03:13", "sha256": "d17b36f6690f17a59d9b99f45c502726d2aa1fa206d1dbba93ea63ff02aee757", "hloubka": 1, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://www.w3c.org/", "http://www.oasis-open.org/home/index.php", "http://www.ws-i.org/", "http://www.jcp.org/", "http://www.ebxml.org/", "http://www.ebxml.org/specs/ebMS2.pdf", "http://www-106.ibm.com/developerworks/webservices/library/ws-bpel/", "http://wwws.sun.com/software/xml/developers/wsci/wsci-spec-10.pdf", "http://www.jcp.org/en/jsr/detail?id=207", "http://www.jcp.org/en/jsr/detail?id=208", "http://dev2dev.bea.com/technologies/webservices/ws-transaction.jsp", "http://www.oasis-open.org/committees/documents.php?wg_abbrev=wsrm", "http://dev2dev.bea.com/technologies/webservices/ws-reliablemessaging.jsp", "http://www-106.ibm.com/developerworks/library/ws-secure/", "https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "https://www.architectelevator.com/book", "https://www.cloudstrategybook.com/", "https://www.platformstrategybook.info/"]} {"url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/GuaranteedMessaging.html", "titulek": "Guaranteed Delivery - Enterprise Integration Patterns", "h1": "", "popis": "How can the sender make sure that a message will be delivered, even if the messaging system fails?", "klicova_slova": "Guaranteed Delivery,integration, messaging, events, patterns, event-driven, coupling, eai, middleware, application integration, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns", "og:title": "Guaranteed Delivery - Enterprise Integration Patterns", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/GuaranteedMessaging.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/GuaranteedMessagingSolution.gif"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Integration Pattern Language"}], "markdown": "Messaging Patterns\n\n[Messaging Patterns](index.html)\n\n- [Integration Styles](IntegrationStylesIntro.html)\n- [Messaging Systems](MessagingComponentsIntro.html)\n- [Messaging Channels](MessagingChannelsIntro.html)\n- [Message Construction](MessageConstructionIntro.html)\n- [Interlude: Simple Messaging](SimpleMessagingIntro.html)\n- [Message Routing](MessageRoutingIntro.html)\n- [Message Transformation](MessageTransformationIntro.html)\n- [Interlude: Composed Messaging](ComposedMessagingExample.html)\n- [Messaging Endpoints](MessagingEndpointsIntro.html)\n- [System Management](SystemManagementIntro.html)\n- Interlude: Systems Management Example\n- Integration Patterns in Practice\n- Concluding Remarks\n- Appendices\n\n| | Guaranteed Delivery[Messaging Patterns](index.html) » [Messaging Channels](MessagingChannelsIntro.html) | [Contents](toc.html)[⇐ Prev](DeadLetterChannel.html)[Next ⇒](ChannelAdapter.html) |\n| --- | --- | --- |\n\nAn enterprise is using [*Messaging*](Messaging.html) to integrate applications.\n\nHow can the sender make sure that a message will be delivered, even if the messaging system fails?\n\nUse *Guaranteed Delivery* to make messages persistent so that they are not lost even if the messaging system crashes.\n\nWith *Guaranteed Delivery*, the messaging system uses a built-in data store to persist messages. Each computer the messaging system is installed on has its own data store so that the messages can be stored locally. When the sender sends a message, the send operation does not complete successfully until the message is safely stored in the sender’s data store. Subsequently, the message is not deleted from one data store until it is successfully forwarded to and stored in the next data store. In this way, once the sender successfully sends the message, it is always stored on disk on at least one computer until is successfully delivered to and acknowledged by the receiver.\n\n...\nRead the entire pattern in the book [Enterprise Integration Patterns](/books1.html)\n\n**Related patterns:**\n\n[*Durable Subscriber*](DurableSubscription.html), [*Event Message*](EventMessage.html), [*Message Expiration*](MessageExpiration.html), [*Messaging*](Messaging.html), [*Point-to-Point Channel*](PointToPointChannel.html), [*Publish-Subscribe Channel*](PublishSubscribeChannel.html), [*Transactional Client*](TransactionalClient.html)\n\n---\n\n## Integration Pattern Language\n\n[Message Construct.](MessageConstructionIntro.html)\n\n[Message](Message.html)\n\n[Command Message](CommandMessage.html)\n\n[Document Message](DocumentMessage.html)\n\n[Event Message](EventMessage.html)\n\n[Request-Reply](RequestReply.html)\n\n[Return Address](ReturnAddress.html)\n\n[Correlation Identifier](CorrelationIdentifier.html)\n\n[Message Sequence](MessageSequence.html)\n\n[Message Expiration](MessageExpiration.html)\n\n[Format Indicator](FormatIndicator.html)\n\n[Message Routing](MessageRoutingIntro.html)\n\n[Pipes-and-Filters](PipesAndFilters.html)\n\n[Message Router](MessageRouter.html)\n\n[Content-based Router](ContentBasedRouter.html)\n\n[Message Filter](Filter.html)\n\n[Dynamic Router](DynamicRouter.html)\n\n[Recipient List](RecipientList.html)\n\n[Splitter](Sequencer.html)\n\n[Aggregator](Aggregator.html)\n\n[Resequencer](Resequencer.html)\n\n[Composed Msg. Processor](DistributionAggregate.html)\n\n[Scatter-Gather](BroadcastAggregate.html)\n\n[Routing Slip](RoutingTable.html)\n\n[Process Manager](ProcessManager.html)\n\n[Message Broker](MessageBroker.html)\n\n[Message\nTransformation](MessageTransformationIntro.html)\n\n[Message Translator](MessageTranslator.html)\n\n[Envelope Wrapper](EnvelopeWrapper.html)\n\n[Content Enricher](DataEnricher.html)\n\n[Content Filter](ContentFilter.html)\n\n[Claim Check](StoreInLibrary.html)\n\n[Normalizer](Normalizer.html)\n\n[Canonical Data Model](CanonicalDataModel.html)\n\n[Messaging Endpoints](MessagingEndpointsIntro.html)\n\n[Message Endpoint](MessageEndpoint.html)\n\n[Messaging Gateway](MessagingGateway.html)\n\n[Messaging Mapper](MessagingMapper.html)\n\n[Transactional Client](TransactionalClient.html)\n\n[Polling Consumer](PollingConsumer.html)\n\n[Event-driven Consumer](EventDrivenConsumer.html)\n\n[Competing Consumers](CompetingConsumers.html)\n\n[Message Dispatcher](MessageDispatcher.html)\n\n[Selective Consumer](MessageSelector.html)\n\n[Durable Subscriber](DurableSubscription.html)\n\n[Idempotent Receiver](IdempotentReceiver.html)\n\n[Service Activator](MessagingAdapter.html)\n\n[Messaging Channels](MessagingChannelsIntro.html)\n\n[Message Channel](MessageChannel.html)\n\n[Point-to-Point Channel](PointToPointChannel.html)\n\n[Publish-Subscr. Channel](PublishSubscribeChannel.html)\n\n[Datatype Channel](DatatypeChannel.html)\n\n[Invalid Message Channel](InvalidMessageChannel.html)\n\n[Dead Letter Channel](DeadLetterChannel.html)\n\n[Guaranteed Delivery](GuaranteedMessaging.html)\n\n[Channel Adapter](ChannelAdapter.html)\n\n[Messaging Bridge](MessagingBridge.html)\n\n[Message Bus](MessageBus.html)\n\n[Systems Mgmt.](SystemManagementIntro.html)\n\n[Control Bus](ControlBus.html)\n\n[Detour](Detour.html)\n\n[Wire Tap](WireTap.html)\n\n[Message History](MessageHistory.html)\n\n[Message Store](MessageStore.html)\n\n[Smart Proxy](SmartProxy.html)\n\n[Test Message](TestMessage.html)\n\n[Channel Purger](ChannelPurger.html)\n\n- » [Read the latest in My Blog](/ramblings)\n- » [Get more insights from My Articles](/articles.html)\n- » [See me live in my Upcoming Talks](/talks)\n\nYou can reuse the following elements under the [Creative Commons Attribution](http://creativecommons.org/licenses/by/4.0/) license: pattern icon, pattern name, problem and solution statements (in bold), and the sketch. Other portions are protected by copyright.\n\n[Enterprise Integration Patterns](https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20)\nThe de-facto language for designing asynchronous, distributed systems. Over 100,000 copies sold.\n\n[The Software Architect Elevator](https://www.architectelevator.com/book)\n\n Rethink the role of architects as a connecting element across organizational layers. Acquire the technical, communication, and organizational skills to succeed in this new role.\n\n[Cloud Strategy](https://www.cloudstrategybook.com)\n\n Make your cloud migration a success by translating high-level goals into conscious decisions with well-understood trade-offs.\n\n[Platform Strategy](https://www.platformstrategybook.info)\n\n Platforms can boost innovation through harmonization, but they aren't easy to build. Learn from over a decade of designing and rolling out IT platforms.", "znaku_textu": 6304, "slov": 538, "odkazu": 108, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/GuaranteedMessaging.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 06:02:07", "sha256": "4efebed2bd57249fea064f02cf12f1ca8ecd5294370adf6e1ca73b451ad3a9b0", "hloubka": 1, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://creativecommons.org/licenses/by/4.0/", "https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "https://www.architectelevator.com/book", "https://www.cloudstrategybook.com/", "https://www.platformstrategybook.info/"]} {"url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/IdempotentReceiver.html", "titulek": "Idempotent Receiver - Enterprise Integration Patterns", "h1": "", "popis": "How can a message receiver deal with duplicate messages?", "klicova_slova": "Idempotent Receiver,integration, messaging, events, patterns, event-driven, coupling, eai, middleware, application integration, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns", "og:title": "Idempotent Receiver - Enterprise Integration Patterns", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/IdempotentReceiver.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/eip1_patterns_wide.png"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Integration Pattern Language"}], "markdown": "Messaging Patterns\n\n[Messaging Patterns](index.html)\n\n- [Integration Styles](IntegrationStylesIntro.html)\n- [Messaging Systems](MessagingComponentsIntro.html)\n- [Messaging Channels](MessagingChannelsIntro.html)\n- [Message Construction](MessageConstructionIntro.html)\n- [Interlude: Simple Messaging](SimpleMessagingIntro.html)\n- [Message Routing](MessageRoutingIntro.html)\n- [Message Transformation](MessageTransformationIntro.html)\n- [Interlude: Composed Messaging](ComposedMessagingExample.html)\n- [Messaging Endpoints](MessagingEndpointsIntro.html)\n- [System Management](SystemManagementIntro.html)\n- Interlude: Systems Management Example\n- Integration Patterns in Practice\n- Concluding Remarks\n- Appendices\n\n| | Idempotent Receiver[Messaging Patterns](index.html) » [Messaging Endpoints](MessagingEndpointsIntro.html) | [Contents](toc.html)[⇐ Prev](DurableSubscription.html)[Next ⇒](MessagingAdapter.html) |\n| --- | --- | --- |\n\nEven when a sender application only sends a message once, the receiver application may receive the message more than once.\n\nHow can a message receiver deal with duplicate messages?\n\nDesign a receiver to be an *Idempotent Receiver*--one that can safely receive the same message multiple times.\n\nThe term *idempotent* is used in mathematics to describe a function that produces the same result if it is applied to itself, i.e. f(x) = f(f(x)). In [*Messaging*](Messaging.html) this concepts translates into a message that has the same effect whether it is received once or multiple times. This means that a message can safely be resent without causing any problems even if the receiver receives duplicates of the same message.\n\nIdempotency can be achieved through two primary means:\n\n1. Explicit \"de-duping\", i.e. the removal of duplicate messages.\n2. Defining the message semantics to support idempotency.\n\n...\nRead the entire pattern in the book [Enterprise Integration Patterns](/books1.html)\n\n**Related patterns:**\n\n[*Command Message*](CommandMessage.html), [*Guaranteed Delivery*](GuaranteedMessaging.html), [*Messaging*](Messaging.html), [*Resequencer*](Resequencer.html)\n\n---\n\n## Integration Pattern Language\n\n[Message Construct.](MessageConstructionIntro.html)\n\n[Message](Message.html)\n\n[Command Message](CommandMessage.html)\n\n[Document Message](DocumentMessage.html)\n\n[Event Message](EventMessage.html)\n\n[Request-Reply](RequestReply.html)\n\n[Return Address](ReturnAddress.html)\n\n[Correlation Identifier](CorrelationIdentifier.html)\n\n[Message Sequence](MessageSequence.html)\n\n[Message Expiration](MessageExpiration.html)\n\n[Format Indicator](FormatIndicator.html)\n\n[Message Routing](MessageRoutingIntro.html)\n\n[Pipes-and-Filters](PipesAndFilters.html)\n\n[Message Router](MessageRouter.html)\n\n[Content-based Router](ContentBasedRouter.html)\n\n[Message Filter](Filter.html)\n\n[Dynamic Router](DynamicRouter.html)\n\n[Recipient List](RecipientList.html)\n\n[Splitter](Sequencer.html)\n\n[Aggregator](Aggregator.html)\n\n[Resequencer](Resequencer.html)\n\n[Composed Msg. Processor](DistributionAggregate.html)\n\n[Scatter-Gather](BroadcastAggregate.html)\n\n[Routing Slip](RoutingTable.html)\n\n[Process Manager](ProcessManager.html)\n\n[Message Broker](MessageBroker.html)\n\n[Message\nTransformation](MessageTransformationIntro.html)\n\n[Message Translator](MessageTranslator.html)\n\n[Envelope Wrapper](EnvelopeWrapper.html)\n\n[Content Enricher](DataEnricher.html)\n\n[Content Filter](ContentFilter.html)\n\n[Claim Check](StoreInLibrary.html)\n\n[Normalizer](Normalizer.html)\n\n[Canonical Data Model](CanonicalDataModel.html)\n\n[Messaging Endpoints](MessagingEndpointsIntro.html)\n\n[Message Endpoint](MessageEndpoint.html)\n\n[Messaging Gateway](MessagingGateway.html)\n\n[Messaging Mapper](MessagingMapper.html)\n\n[Transactional Client](TransactionalClient.html)\n\n[Polling Consumer](PollingConsumer.html)\n\n[Event-driven Consumer](EventDrivenConsumer.html)\n\n[Competing Consumers](CompetingConsumers.html)\n\n[Message Dispatcher](MessageDispatcher.html)\n\n[Selective Consumer](MessageSelector.html)\n\n[Durable Subscriber](DurableSubscription.html)\n\n[Idempotent Receiver](IdempotentReceiver.html)\n\n[Service Activator](MessagingAdapter.html)\n\n[Messaging Channels](MessagingChannelsIntro.html)\n\n[Message Channel](MessageChannel.html)\n\n[Point-to-Point Channel](PointToPointChannel.html)\n\n[Publish-Subscr. Channel](PublishSubscribeChannel.html)\n\n[Datatype Channel](DatatypeChannel.html)\n\n[Invalid Message Channel](InvalidMessageChannel.html)\n\n[Dead Letter Channel](DeadLetterChannel.html)\n\n[Guaranteed Delivery](GuaranteedMessaging.html)\n\n[Channel Adapter](ChannelAdapter.html)\n\n[Messaging Bridge](MessagingBridge.html)\n\n[Message Bus](MessageBus.html)\n\n[Systems Mgmt.](SystemManagementIntro.html)\n\n[Control Bus](ControlBus.html)\n\n[Detour](Detour.html)\n\n[Wire Tap](WireTap.html)\n\n[Message History](MessageHistory.html)\n\n[Message Store](MessageStore.html)\n\n[Smart Proxy](SmartProxy.html)\n\n[Test Message](TestMessage.html)\n\n[Channel Purger](ChannelPurger.html)\n\n- » [Read the latest in My Blog](/ramblings)\n- » [Get more insights from My Articles](/articles.html)\n- » [See me live in my Upcoming Talks](/talks)\n\nYou can reuse the following elements under the [Creative Commons Attribution](http://creativecommons.org/licenses/by/4.0/) license: pattern icon, pattern name, problem and solution statements (in bold), and the sketch. Other portions are protected by copyright.\n\n[Enterprise Integration Patterns](https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20)\nThe de-facto language for designing asynchronous, distributed systems. Over 100,000 copies sold.\n\n[The Software Architect Elevator](https://www.architectelevator.com/book)\n\n Rethink the role of architects as a connecting element across organizational layers. Acquire the technical, communication, and organizational skills to succeed in this new role.\n\n[Cloud Strategy](https://www.cloudstrategybook.com)\n\n Make your cloud migration a success by translating high-level goals into conscious decisions with well-understood trade-offs.\n\n[Platform Strategy](https://www.platformstrategybook.info)\n\n Platforms can boost innovation through harmonization, but they aren't easy to build. Learn from over a decade of designing and rolling out IT platforms.", "znaku_textu": 6057, "slov": 505, "odkazu": 108, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/IdempotentReceiver.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 06:03:00", "sha256": "e9c278723f6c5bdcab0fdd9c410e8a17bc4eda0b2f63aefb8fe4afb22d76a86d", "hloubka": 1, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://creativecommons.org/licenses/by/4.0/", "https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "https://www.architectelevator.com/book", "https://www.cloudstrategybook.com/", "https://www.platformstrategybook.info/"]} {"url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/IntegrationStylesIntro.html", "titulek": "Introduction to Integration Styles - Enterprise Integration Patterns", "h1": "", "popis": "Enterprise integration is the task of making separate applications work together to produce a unified set of functionality. Some applications may be custom developed in-house while others are bought from third-party vendors. The applications probably run on multiple computers, which may represent multiple platforms, and may be geographically dispersed. Some of the applications may be run outside of the enterprise by business partners or customers. Some applications may need to be integrated even though they were not designed for integration and cannot be changed. These issues and others like them are what make application integration difficult. This chapter will explore the options available for application integration.", "klicova_slova": "Introduction to Integration Styles,integration, messaging, events, patterns, event-driven, coupling, eai, middleware, application integration, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns", "og:title": "Introduction to Integration Styles - Enterprise Integration Patterns", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/IntegrationStylesIntro.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/eip1_patterns_wide.png"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Application Integration Criteria"}, {"uroven": 2, "text": "Application Integration Options"}, {"uroven": 2, "text": "Integration Pattern Language"}], "markdown": "| | Introduction to Integration Styles[Messaging Patterns](index.html) » [Integration Styles](IntegrationStylesIntro.html) | [Contents](toc.html)[⇐ Prev](Chapter1.html)[Next ⇒](FileTransferIntegration.html) |\n| --- | --- | --- |\n\nEnterprise integration is the task of making separate applications work together to produce a unified set of functionality. Some applications may be custom developed in-house while others are bought from third-party vendors. The applications probably run on multiple computers, which may represent multiple platforms, and may be geographically dispersed. Some of the applications may be run outside of the enterprise by business partners or customers. Some applications may need to be integrated even though they were not designed for integration and cannot be changed. These issues and others like them are what make application integration difficult. This chapter will explore the options available for application integration.\n\n## Application Integration Criteria\n\nWhat makes for good application integration? If integration needs were always the same, there would only be one integration style. Yet like any complex technological effort, application integration involves a range of considerations and consequences that should be taken into account for any integration opportunity.\n\nThe first criterion is **application integration** itself. If you can develop a single, stand-alone application that doesn’t need to collaborate with any other applications, you can avoid the whole integration issue entirely. Realistically, though, even a simple enterprise has multiple applications, applications that need to work together to provide a unified experience for the enterprise’s employees, partners, and customers.\n\nThe other main decision criteria are:\n\n**Application coupling** — Even integrated applications should minimize their dependencies on each other so that each can evolve without causing problems for the others. Tightly coupled applications make numerous assumptions about how the other applications work; when the applications change and break those assumptions, the integration breaks. The interface for integrating applications should be specific enough to implement useful functionality, but general enough to allow that implementation to change as needed.\n\n**Integration simplicity** — When integrating an application into an enterprise, developers should strive to minimize changing the application and minimize the amount of integration code needed. Yet changes and new code will usually be necessary to provide good integration functionality, and the approaches with the least impact on the application may not provide the best integration into the enterprise.\n\n**Integration technology** — Different integration techniques require varying amounts of specialized software and hardware. These special tools can be expensive, can lead to vendor lock-in, and increase the burden on developers to understand how to use the tools to integrate applications.\n\n**Data format** — Integrated applications must agree on the format of the data they exchange, or must have an intermediate traslator to unify applications that insist on different data formats. A related issue is **data format evolution and extensibility**—how the format can change over time and how that will affect the applications.\n\n**Data timeliness** — Integration should minimize the length of time between when one application decides to share some data and other applications have that data. Data should be exchanged frequently in small chunks, rather than waiting to exchange a large set of unrelated items. Applications should be informed as soon as shared data is ready for consumption. Latency in data sharing has to be factored into the integration design; the longer sharing can take, the more opportunity for shared data to become stale, and the more complex integration becomes.\n\n**Data or functionality** — Integrated applications may not want to simply share data, they may wish to share functionality such that each application can invoke the functionality in the others. Invoking functionality remotely can be difficult to achieve, and even though it may seem the same as invoking local functionality, it works quite differently, with significant consequences for how well the integration works.\n\n**Asynchronicity** — Computer processing is typically synchronous, such that a procedure waits while its subprocedure executes. It’s a given that the subprocedure is available when the procedure wants to invoke it. However, a procedure may not want to wait for the subprocedure to execute; it may want to invoke the subprocedure asynchronously, starting the subprocedure but then letting it execute in the background. This is especially true of integrated applications, where the remote application may not be running or the network may be unavailable—the source application may wish to simply make shared data available or log a request for a subprocedure call, but then go on to other work confident that the remote application will act sometime later.\n\nAs you can see, there are several different criteria that must be considered when choosing and designing an integration approach. The question then becomes: Which integration approaches best address which of these criteria?\n\n## Application Integration Options\n\nThere’s more than one approach for integrating applications. Each approach addresses some of the integration criteria better than others. The various approaches can be summed up in four main integration styles:\n\n**[*File Transfer*](FileTransferIntegration.html)** — Have each application produce files of shared data for others to consume, and consume files that others have produced.\n\n**[*Shared Database*](SharedDataBaseIntegration.html)** — Have the applications store the data they wish to share in a common database.\n\n**[*Remote Procedure Invocation*](EncapsulatedSynchronousIntegration.html)** — Have each application expose some of its procedures so that they can be invoked remotely, and have applications invoke those to run behavior and exchange data.\n\n**[*Messaging*](Messaging.html)** — Have each application connect to a common messaging system, and exchange data and invoke behavior using messages.\n\nEach of the patterns has the same problem statement—the need to integrate applications—and very similar contexts. What differentiates them is different forces searching for a more elegant solution. Each pattern builds on the last, looking for a more sophisticated approach to address the shortcomings of its predecessors. Thus the pattern order reflects an increasing order of sophistication.\n\nThe trick is not to choose the one style to use always, but to choose the best style for a particular integration opportunity. Each style has its advantages and disadvantages. Two applications may integrate using multiple styles such that each point of integration takes advantage of the style that suits it best. Likewise, an application may use different styles to integrate with different applications, so as to choose the style that works best for the other application. Some integration approaches can best be viewed as a hybrid of multiple styles. An integration product or EAI middleware may employ a combination of styles, all of which are effectively hidden in the product’s implementation.\n\nThe remainder of this book will expand on the [*Messaging*](Messaging.html) pattern. We focus on messaging in part because we believe it is often the best style for solving many integration opportunities. It is also the least well understood of the integration styles and a technology ripe with patterns that quickly explain how to make good use of it. Finally, messaging is the basis for many EAI products, so explaining how to use messaging well also goes a long way in teaching you how to use those products.\n\nFamiliarize yourself with these patterns to better understand the issues involved with application integration, and to better understand how messaging fits into the mix.\n\n## Integration Pattern Language\n\n[Message Construct.](MessageConstructionIntro.html)\n\n[Message](Message.html)\n\n[Command Message](CommandMessage.html)\n\n[Document Message](DocumentMessage.html)\n\n[Event Message](EventMessage.html)\n\n[Request-Reply](RequestReply.html)\n\n[Return Address](ReturnAddress.html)\n\n[Correlation Identifier](CorrelationIdentifier.html)\n\n[Message Sequence](MessageSequence.html)\n\n[Message Expiration](MessageExpiration.html)\n\n[Format Indicator](FormatIndicator.html)\n\n[Message Routing](MessageRoutingIntro.html)\n\n[Pipes-and-Filters](PipesAndFilters.html)\n\n[Message Router](MessageRouter.html)\n\n[Content-based Router](ContentBasedRouter.html)\n\n[Message Filter](Filter.html)\n\n[Dynamic Router](DynamicRouter.html)\n\n[Recipient List](RecipientList.html)\n\n[Splitter](Sequencer.html)\n\n[Aggregator](Aggregator.html)\n\n[Resequencer](Resequencer.html)\n\n[Composed Msg. Processor](DistributionAggregate.html)\n\n[Scatter-Gather](BroadcastAggregate.html)\n\n[Routing Slip](RoutingTable.html)\n\n[Process Manager](ProcessManager.html)\n\n[Message Broker](MessageBroker.html)\n\n[Message\nTransformation](MessageTransformationIntro.html)\n\n[Message Translator](MessageTranslator.html)\n\n[Envelope Wrapper](EnvelopeWrapper.html)\n\n[Content Enricher](DataEnricher.html)\n\n[Content Filter](ContentFilter.html)\n\n[Claim Check](StoreInLibrary.html)\n\n[Normalizer](Normalizer.html)\n\n[Canonical Data Model](CanonicalDataModel.html)\n\n[Messaging Endpoints](MessagingEndpointsIntro.html)\n\n[Message Endpoint](MessageEndpoint.html)\n\n[Messaging Gateway](MessagingGateway.html)\n\n[Messaging Mapper](MessagingMapper.html)\n\n[Transactional Client](TransactionalClient.html)\n\n[Polling Consumer](PollingConsumer.html)\n\n[Event-driven Consumer](EventDrivenConsumer.html)\n\n[Competing Consumers](CompetingConsumers.html)\n\n[Message Dispatcher](MessageDispatcher.html)\n\n[Selective Consumer](MessageSelector.html)\n\n[Durable Subscriber](DurableSubscription.html)\n\n[Idempotent Receiver](IdempotentReceiver.html)\n\n[Service Activator](MessagingAdapter.html)\n\n[Messaging Channels](MessagingChannelsIntro.html)\n\n[Message Channel](MessageChannel.html)\n\n[Point-to-Point Channel](PointToPointChannel.html)\n\n[Publish-Subscr. Channel](PublishSubscribeChannel.html)\n\n[Datatype Channel](DatatypeChannel.html)\n\n[Invalid Message Channel](InvalidMessageChannel.html)\n\n[Dead Letter Channel](DeadLetterChannel.html)\n\n[Guaranteed Delivery](GuaranteedMessaging.html)\n\n[Channel Adapter](ChannelAdapter.html)\n\n[Messaging Bridge](MessagingBridge.html)\n\n[Message Bus](MessageBus.html)\n\n[Systems Mgmt.](SystemManagementIntro.html)\n\n[Control Bus](ControlBus.html)\n\n[Detour](Detour.html)\n\n[Wire Tap](WireTap.html)\n\n[Message History](MessageHistory.html)\n\n[Message Store](MessageStore.html)\n\n[Smart Proxy](SmartProxy.html)\n\n[Test Message](TestMessage.html)\n\n[Channel Purger](ChannelPurger.html)", "znaku_textu": 10696, "slov": 1314, "odkazu": 107, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/IntegrationStylesIntro.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 06:01:49", "sha256": "b6e6d00558498ea07804faf248ba5526cd916c79dc0503c106f8e1d77f431f9a", "hloubka": 1, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "https://www.architectelevator.com/book", "https://www.cloudstrategybook.com/", "https://www.platformstrategybook.info/"]} {"url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/Introduction.html", "titulek": "Introduction - Enterprise Integration Patterns", "h1": "", "popis": "Interesting applications rarely live in isolation. Whether your sales application must interface with your inventory application, your procurement application must connect to an auction site, or your PDA’s PIM must synchronize with the corporate calendar server, it seems like any application can be made better by integrating it with other applications.", "klicova_slova": "Introduction,integration, messaging, events, patterns, event-driven, coupling, eai, middleware, application integration, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns", "og:title": "Introduction - Enterprise Integration Patterns", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/Introduction.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/eip1_patterns_wide.png"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "What is Messaging?"}, {"uroven": 2, "text": "What is a Messaging System?"}, {"uroven": 2, "text": "Why Use Messaging?"}, {"uroven": 2, "text": "Challenges of Asynchronous Messaging"}, {"uroven": 2, "text": "Thinking Asynchronously"}, {"uroven": 2, "text": "Distributed Applications vs. Integration"}, {"uroven": 2, "text": "Commercial Messaging Systems"}, {"uroven": 2, "text": "Pattern Form"}, {"uroven": 2, "text": "Diagram Notation"}, {"uroven": 2, "text": "Examples and Interludes"}, {"uroven": 2, "text": "Organization of this Book"}, {"uroven": 2, "text": "Getting Started"}, {"uroven": 2, "text": "Supporting Web Site"}, {"uroven": 2, "text": "Summary"}, {"uroven": 2, "text": "Integration Pattern Language"}], "markdown": "| | Introduction[Messaging Patterns](index.html) | [Contents](toc.html)[⇐ Prev](Preface.html)[Next ⇒](Chapter1.html) |\n| --- | --- | --- |\n\nInteresting applications rarely live in isolation. Whether your sales application must interface with your inventory application, your procurement application must connect to an auction site, or your PDA’s PIM must synchronize with the corporate calendar server, it seems like any application can be made better by integrating it with other applications.\n\nAll integration solutions have to deal with a few fundamental challenges:\n\n- *Networks are unreliable.* Integration solutions have to transport data from one computer to another across networks. Compared to a process running on a single computer, distributed computing has to be prepared to deal with a much larger set of possible problems. Often times, two systems to be integrated are separated by continents and data between them has to travel through phone-lines, LAN segments, routers, switches, public networks, and satellite links. Each of these steps can cause delays or interruptions.\n- *Networks are slow.* Sending data across a network is multiple orders of magnitude slower than making a local method call. Designing a widely distributed solution the same way you would approach a single application could have disastrous performance implications.\n- *Any two applications are different.* Integration solutions need to transmit information between systems that use different programming languages, operating platforms, and data formats. An integration solution needs to be able to interface with all these different technologies.\n- *Change is inevitable.* Applications change over time. An integration solution has to keep pace with changes in the applications it connects. Integration solutions can easily get caught in an avalanche effect of changes – if one system changes, all other systems may be affected. An integration solution needs to minimize the dependencies from one system to another by using *loose coupling* between applications.\n\nOver time, developers have overcome these challenges with four main approaches:\n\n1. *[*File Transfer*](FileTransferIntegration.html)* — One application writes a file that another later reads. The applications need to agree on the filename and location, the format of the file, the timing of when it will be written and read, and who will delete the file.\n2. *[*Shared Database*](SharedDataBaseIntegration.html)* — Multiple applications share the same database schema, located in a single physical database. Because there is no duplicate data storage, no data has to be transferred from one application to the other.\n3. *[*Remote Procedure Invocation*](EncapsulatedSynchronousIntegration.html)* — One application exposes some of its functionality so that it can be accessed remotely by other applications as a remote procedure. The communication occurs real-time and synchronously.\n4. *[*Messaging*](Messaging.html)* — One applications publishes a message to a common message channel. Other applications can read the message from the channel at a later time. The applications must agree on a channel as well as the format of the message. The communication is asynchronous.\n\nWhile all four approaches solve essentially the same problem, each style has its distinct advantages and disadvantages. In fact, applications may integrate using multiple styles such that each point of integration takes advantage of the style that suits it best.\n\n## What is Messaging?\n\nThis book is about how to use messaging to integrate applications. A simple way to understand what messaging does is to consider the telephone system. A telephone call is a synchronous form of communication. I can only communicate with the other party if the other party is available at the time I place the call. Voice mail on the other hand, allows asynchronous communication. With voice mail, when the receiver does not answer, the caller can leave him a message; later the receiver (at his convenience) can listen to the messages queued in his mailbox. Voice mail enables the caller to leave a message now so that the receiver can listen to it later, which is lot easier than trying to get the caller and the receiver on the phone at the same time. Voice mail bundles (at least part of) a phone call into a message and queues it for later consumption; this is essentially how messaging works.\n\n*Messaging* is a technology that enables high-speed, asynchronous, program-to-program communication with reliable delivery. Programs communicate by sending packets of data called *message*s to each other. *Channel*s, also known as queues, are logical pathways that connect the programs and convey messages. A channel behaves like a collection or array of messages, but one that is magically shared across multiple computers and can be used concurrently by multiple applications. A *sender* or *producer* is a program that sends a message by writing the message to a channel. A *receiver* or *consumer* is a program that receives a message by reading (and deleting) it from a channel.\n\nThe message itself is simply some sort of data structure—such as a string, a byte array, a record, or an object. It can be interpreted simply as data, as the description of a command to be invoked on the receiver, or as the description of an event that occurred in the sender. A message actually contains two parts, a header and a body. The *header* contains meta-information about the message—who sent it, where it’s going, etc.; this information is used by the messaging system and is mostly (but not always) ignored by the applications using the messages. The *body* contains the data being transmitted and is ignored by the messaging system. In conversation, when an application developer who is using messaging talks about a message, he’s usually referring to the data in the body of the message.\n\nAsynchronous messaging architectures are powerful, but require us to rethink our development approach. As compared to the other three integration approaches, relatively few developers have had exposure to messaging and message systems. As a result, application developers in general are not as familiar with the idioms and peculiarities of this communications platform.\n\n## What is a Messaging System?\n\nMessaging capabilities are typically provided by a separate software system called a *messaging system* or *message-oriented middleware* (MOM). A messaging system manages messaging the way a database system manages data persistence. Just as an administrator must populate the database with the schema for an application’s data, an administrator must configure the messaging system with the channels that define the paths of communication between the applications. The messaging system then coordinates and manages the sending and receiving of messages. The primary purpose of a database is to make sure each data record is safely persisted, and likewise the main task of a messaging system is to move messages from the sender’s computer to the receiver’s computer in a reliable fashion.\n\nThe reason a messaging system is needed to move messages from one computer to another is that computers and the networks that connect them are inherently unreliable. Just because one application is ready to send a communication does not mean that the other application is ready to receive it. Even if both applications are ready, the network may not be working, or may fail to transmit the data properly. A messaging system overcomes these limitations by repeatedly trying to transmit the message until it succeeds. Under ideal circumstances, the message is transmitted successfully on the first try, but circumstances are often not ideal.\n\nIn essence, a message is transmitted in five steps:\n\n1. *Create* — The sender creates the message and populates it with data.\n2. *Send* — The sender adds the message to a channel.\n3. *Deliver* — The messaging system moves the message from the sender’s computer to the receiver’s computer, making it available to the receiver.\n4. *Receive* — The receiver reads the message from the channel.\n5. *Process* — The receiver extracts the data from the message.\n\nThis diagram illustrates these five transmission steps, which computer performs each, and which steps involve the messaging system:\n\n*Message Transmission Step-by-step*\n\nThis diagram also illustrates two important messaging concepts:\n\n1. *Send and forget* — In step 2, the sending application sends the message to the message channel. Once that send is complete, the sender can go on to other work while the messaging system transmits the message in the background. The sender can be confident that the receiver will eventually receive the message and does not have to wait until that happens.\n2. *Store and forward* — In step 2, when the sending application sends the message to the message channel, the messaging system stores the message on the sender’s computer, either in memory or on disk. In step 3, the messaging system delivers the message by forwarding it from the sender’s computer to the receiver’s computer, and then stores the message once again on the receiver’s computer. This store-and-forward process may be repeated many times, as the message is moved from one computer to another, until it reaches the receiver’s computer.\n\nThe create, send, receive, and process steps may seem like unnecessary overhead. Why not simply deliver the data to the receiver? By wrapping the data as a message and storing it in the messaging system, the applications delegate to the messaging system the responsibility of delivering the data. Because the data is wrapped as an atomic message, delivery can be retried until it succeeds and the receiver can be assured of reliably receiving exactly one copy of the data.\n\n## Why Use Messaging?\n\nNow that we know what messaging is, we should ask: Why use messaging? As with any sophisticated solution, there is no one simple answer. The quick answer is that messaging is more immediate than [*File Transfer*](FileTransferIntegration.html), better encapsulated than [*Shared Database*](SharedDataBaseIntegration.html), and more reliable than [*Remote Procedure Invocation*](EncapsulatedSynchronousIntegration.html). However, that’s just the beginning of the advantages that can be gained using messaging.\n\nSpecific benefits of messaging include:\n\n- *Remote Communication.* Messaging enables separate applications to communicate and transfer data. Two objects that reside in the same process can simply share the same data in memory. Sending data to another computer is a lot more complicated and requires data to be copied from one computer to another. This means that objects have to \"serializable\", i.e. they can be converted into a simple byte stream that can be sent across the network. If remote communication is not needed, messaging is not needed; a simpler solution such as concurrent collections or shared memory is sufficient.\n- *Platform/Language Integration.* When connecting multiple computer systems via remote communication, these systems likely use different languages, technologies and platforms, perhaps because they were developed over time by independent teams. Integrating such divergent applications can require a demilitarized zone of middleware to negotiate between the applications, often using the lowest common denominator—such as flat data files with obscure formats. In these circumstances, a messaging system can be a universal translator between the applications that works with each one’s language and platform on its own terms, yet allows them to all communicate through a common messaging paradigm. This universal connectivity is the heart of the [*Message Bus*](MessageBus.html) pattern.\n- *Asynchronous Communication.* Messaging enables a *send and forget* approach to communication. The sender does not have to wait for the receiver to receive and process the message; it does not even have to wait for the messaging system to deliver the message. The sender only needs to wait for the message to be sent, e.g. for the message to successfully be stored in the channel by the messaging system. Once the message is stored, the sender is then free to perform other work while the message is transmitted in the background. The receiver may want to send an acknowledgement or result back to the sender, which requires another message, whose delivery will need to be detected by a callback mechanism on the sender.\n- *Variable Timing.* With synchronous communication, the caller must wait for the receiver to finish processing the call before the caller can receive the result and continue. In this way, the caller can only make calls as fast as the receiver can perform them. On the other hand, asynchronous communication allows the sender to batch requests to the receiver at its own pace, and for the receiver to consume the requests at its own different pace. This allows both applications to run at maximum throughput and not waste time waiting on each other (at least until the receiver runs out of messages to process).\n- *Throttling.* A problem with remote procedure calls is that too many of them on a single receiver at the same time can overload the receiver. This can cause performance degradation and even cause the receiver to crash. Asynchronous communication enables the receiver to control the rate at which it consumes requests, so as not to become overloaded by too many simultaneous requests. The adverse effect on callers caused by this throttling is minimized because the communication is asynchronous, so the callers are not blocked waiting on the receiver.\n- *Reliable Communication.* Messaging provides reliable delivery that a remote procedure call (RPC) cannot. The reason messaging is more reliable than RPC is that messaging uses a *store and forward* approach to transmitting messages. The data is packaged as messages, which are atomic, independent units. When the sender sends a message, the messaging system stores the message. It then delivers the message by forwarding it to the receiver’s computer, where it is stored again. Storing the message on the sender’s computer and the receiver’s computer is assumed to be reliable. (To make it even more reliable, the messages can be stored to disk instead of memory; see [*Guaranteed Delivery*](GuaranteedMessaging.html) .) What is unreliable is forwarding (moving) the message from the sender’s computer to the receiver’s computer, because the receiver or the network may not be running properly. The messaging system overcomes this by resending the message until it succeeds. This automatic retry enables the messaging system to overcome problems with the network such that the sender and receiver don’t have to worry about these details.\n- *Disconnected Operation.* Some applications are specifically designed to run disconnected from the network, yet to synchronize with servers when a network connection is available. Such applications are deployed on platforms like laptop computers, PDA’s, and automobile dashboards. Messaging is ideal for enabling these applications to synchronize—data to be synchronized can be queued as it is created, waiting until the application reconnects to the network.\n- *Mediation.* The messaging system acts as a mediator—as in the Mediator pattern [ [GoF](http://www.amazon.com/exec/obidos/ASIN/0201633612/enterpriseint-20) ]—between all of the programs that can send and receive messages. An application can use it as a directory of other applications or services available to integrate with. If an application becomes disconnected from the others, it need only reconnect to the messaging system, not to all of the other messaging applications. The messaging system can be used to provide a high number of distributed connections to a shared resource, such as a database. The messaging system can employ redundant resources to provide high-availability, balance load, reroute around failed network connections, and tune performance and quality of service.\n- *Thread Management.* Asynchronous communication means that one application does not have to block while waiting for another application to perform a task, unless it wants to. Rather than blocking to wait for a reply, the caller can use a callback that will alert the caller when the reply arrives. (See the [*Request-Reply*](RequestReply.html) pattern.) A large number of blocked threads, or threads blocked for a long time, can be problematic. Too many blocked threads may leave the application with too few available threads to perform real work. If an application with some dynamic number of blocked threads crashes, when the application restarts and recovers its former state, re-establishing those threads will be difficult. With callbacks, the only threads that block are a small, known number of listeners waiting for replies. This leaves most threads available for other work and defines a known number of listener threads that can easily be re-established after a crash.\n\nSo there are a number of different reasons an application or enterprise may benefit from messaging. Some of these are technical details that application developers relate most readily to, whereas others are strategic decisions that resonate best with enterprise architects. Which of these reasons is most important depends on the current requirements of your particular applications. They’re all good reasons to use messaging, so take advantage of whichever reasons provide the most benefit to you.\n\n## Challenges of Asynchronous Messaging\n\nAsynchronous messaging is not the panacea of integration. It resolves many of the challenges of integrating disparate systems in an elegant way but it also introduces new challenges. Some of these challenges are inherent in the asynchronous model while other challenges vary with the specific implementation of a messaging system.\n\n- *Complex programming model.* Asynchronous messaging requires developers to work with an event-driven programming model. Application logic can no longer be coded in a single method that invokes other methods, but the logic is now split up into a number of event handlers that respond to incoming messages. Such a system is more complex and harder to develop and debug. For example, the equivalent of a simple method call can require a request message and a request channel, a reply message and a reply channel, a correlation identifier and an invalid message queue (as described in [*Request-Reply*](RequestReply.html) ).\n- *Sequence issues.* Message channels guarantee message delivery, but they do not guarantee when the message will be delivered. This can cause messages that are sent in sequence to get out of sequence. In situations where messages depend on each other special care has to be taken to re-establish the message sequence.\n- *Synchronous scenarios.* Not all applications can operate in a send and forget mode. If a user is looking for airline tickets, he or she is going to want to see the ticket price right away, not after some undetermined time. Therefore, many messaging systems need to bridge the gap between synchronous and asynchronous solutions. (See the [*Request-Reply*](RequestReply.html) pattern.)\n- *Performance.* Messaging systems do add some overhead to communication. It takes effort to make data into a message and send it, and to receive a message and process it. If you have to transport a huge chunk of data, dividing it into a gazillion small pieces may not be a smart idea. For example, if an integration solution needs to synchronize information between two existing systems, the first step is usually to replicate all relevant information from one system to the other. For such a bulk data replication step, ETL (extract, transform, and load) tools are much more efficient than messaging. Messaging is best suited to keeping the systems in sync after the initial data replication.\n- *Limited platform support.* Many proprietary messaging systems are not available on all platforms. Often times it is easier to FTP a file to another platform than accessing it via a messaging system.\n- *Vendor lock-in.* Many messaging system implementations rely on proprietary protocols. Even common messaging specifications such as JMS do not control the physical implementation of the solution. As a result, different messaging systems usually do not connect to one another. This can leave you with a whole new integration challenge: integrating multiple integration solutions! (See the [*Messaging Bridge*](MessagingBridge.html) pattern.)\n\nSo asynchronous messaging does not solve all problems, and can even create some new ones. Keep these consequences in mind when deciding which problems to solve using messaging.\n\n## Thinking Asynchronously\n\nMessaging is an asynchronous technology, which enables delivery to be retried until it succeeds. In contrast, most applications use synchronous function calls; for example: a procedure calling a sub-procedure, one method calling another method, or one procedure invoking another remotely through a remote procedure call (RPC) (such as CORBA and DCOM). Synchronous calls imply that the calling process is halted while the sub-process is executing a function. Even in an RPC scenario, where the called sub-procedure executes in a different process, the caller blocks until the sub-procedure returns control (and the results) to the caller. When using asynchronous messaging, the caller uses a *send and forget* approach that allows it to continue to execute after it sends the message. As a result, the calling procedure continues to run while the sub-procedure is being invoked.\n\n*Synchronous and Asynchronous Call Semantics*\n\nAsynchronous communication has a number of implications. First, we no longer have a single thread of execution. Multiple threads enable sub-procedures to run concurrently, which can greatly improve performance and help ensure that some sub-processes are making progress even while other sub-processes may be waiting for external results. However, concurrent threads can also make debugging much more difficult. Second, results (if any) arrive via a callback. This enables the caller to perform other tasks and be notified when the result is available, which can improve performance. However, the caller has to be able to process the result even while it is in the middle of other tasks, and it has to be able to use the result to remember the context in which the call was made. Third, asynchronous sub-processes can execute in any order. Again, this enables one sub-procedure to make progress even while another cannot. But it also means that the subprocesses must be able to run independently in any order, and the caller must be able to determine which result came from which sub-process and combine the results together. So asynchronous communication has several advantages but requires rethinking how a procedure uses its sub-procedures.\n\n## Distributed Applications vs. Integration\n\nThis book is about enterprise integration—how to integrate independent applications so that they can work together. An enterprise application often incorporates an n-tier architecture (a more sophisticated version of a client/server architecture) enabling it to be distributed across several computers. Even though this results in processes on different machines communicating with each other, this is application distribution, not application integration.\n\nWhy is an n-tier architecture considered application distribution and not application integration? First, the communicating parts are tightly coupled—they dependent directly on each other, so that one tier cannot function without the others. Second, communication between tiers tends to be synchronous. Third, an application (n-tier or atomic) tends to have human users that will only accept rapid system response.\n\nIn contrast, integrated applications are independent applications that can each run by itself, but coordinate with each other in a loosely coupled way. This enables each application to focus on one comprehensive set of functionality and yet delegate to other applications for related functionality. Integrated applications communicating asynchronously don’t have to wait for a response; they can proceed without a response or perform other tasks concurrently until the response is available. Integrated applications tend to have a broad time constraint, such that they can work on other tasks until a result becomes available, and therefore are more patient than most human users waiting real-time for a result.\n\n## Commercial Messaging Systems\n\nThe apparent benefits of integrating systems using an asynchronous messaging solution have opened up a significant market for software vendors creating messaging middleware and associated tools. We can roughly group the messaging vendors’ products into the following four categories:\n\n1. *Operating Systems.* Messaging has become such a common need that vendors have started to integrate the necessary software infrastructure into the operating system or database platform. For example, the Microsoft Windows 2000 and Windows XP operating systems include the Microsoft Message Queuing (MSMQ) service software. This service is accessible through a number of API’s, including COM components and the System.Messaging namespace, part of the Microsoft .NET platform. Similarly, Oracle offers Oracle AQ as part of its database platform.\n2. *Application Servers.* Sun Microsystems first incorporated the Java Messaging Service (JMS) into version 1.2 of the J2EE specification. Since then, virtually all J2EE application servers (such as IBM WebSphere, BEA WebLogic, etc.) provide an implementation for this specification. Also, Sun delivers a JMS reference implementation with the J2EE JDK.\n3. *EAI Suites.* Products from these vendors offer proprietary—but functionally rich—suites that encompass messaging, business process automation, workflow, portals, and other functions. Key players in this marketplace are IBM WebSphere MQ, Microsoft BizTalk, TIBCO, WebMethods, SeeBeyond, Vitria, CrossWorlds, and others. Many of these products include JMS as one of the many client API’s they support, while other vendors—such as SonicSoftware and Fiorano—focus primarily on implementing JMS-compliant messaging infrastructures.\n4. *Web Services Toolkits.* Web services have garnered a lot of interest in the enterprise integration communities. Standards bodies and consortia are actively working on standardizing reliable message delivery over web services (i.e., WS-Reliability, WS-ReliableMessaging, and ebMS). A growing number of vendors offer tools that implement routing, transformation, and management of web services-based solutions.\n\nThe patterns in this book are vendor-independent and apply to most messaging solutions. Unfortunately, each vendor tends to define their own terminology when describing messaging solutions. In this book we have striven to choose pattern names that are technology- and product-neutral, yet descriptive and easy to use conversationally.\n\nMany messaging vendors have incorporated some of this book’s patterns as features of their products, which simplifies applying the patterns and accelerates solution development. Readers who are familiar with a particular vendor’s terminology will most likely recognize many of the concepts in this book. To help these readers map the pattern language to the vendor-specific terminology, the following tables map the most common pattern names to their corresponding product feature names in some of the most widely-used messaging products.\n\n| **Enterprise Integration Patterns** | **Java Message Service (JMS)** | **Microsoft MSMQ** | **WebSphere MQ** |\n| --- | --- | --- | --- |\n| Message Channel | Destination | MessageQueue | Queue |\n| Point-to-Point Channel | Queue | MessageQueue | Queue |\n| Publish-Subscribe Channel | Topic | --- | --- |\n| Message | Message | Message | Message |\n| Message Endpoint | MessageProducer, MessageConsumer | | |\n\n| **Enterprise Integration Patterns** | **TIBCO** | **WebMethods** | **SeeBeyond** | **Vitria** |\n| --- | --- | --- | --- | --- |\n| Message Channel | Topic | | Intelligent Queue | Channel |\n| Point-to-Point Channel | Distributed Queue | | Intelligent Queue | Channel |\n| Publish-Subscribe Channel | Subject | --- | Intelligent Queue | Pub/Sub Channel |\n| Message | Message | Document | Event | Event |\n| Message Endpoint | Publisher, Subscriber | Publisher, Subscriber | Publisher, Subscriber | Publisher, Subscriber |\n\n## Pattern Form\n\nThis book is structured as a set of patterns organized into a pattern language. Books such as *Design Patterns*, *Pattern Oriented Software Architecture*, *Core J2EE Patterns*, and *Patterns of Enterprise Application Architecture* have popularized the concept of using patterns to document computer-programming techniques. Christopher Alexander pioneered the concept of patterns and pattern languages in his books *A Pattern Language* and *A Timeless Way of Building*. Each pattern represents a decision that the reader must make and the considerations that go into that decision. A pattern language is a web of related patterns where each pattern leads to others, guiding the reader through the decision making process. This approach is a powerful technique for documenting an expert’s knowledge so that it can be readily understood and applied by non-experts.\n\nA pattern language teaches the reader how to solve a limitless variety of problems within a bounded problem space. Because the overall problem that is being solved is different every time, the path through the patterns and how they’re applied is also unique. In this way, this book was written for anyone using any messaging tools for any application, but can be applied specifically for you and the specific application of messaging that you are facing.\n\nJust using the pattern form does not guarantee that a book contains a wealth of knowledge. It is not just enough to simply say, “When you face this problem, apply this solution.” For a reader to truly learn from a pattern, it has to document why the problem is difficult to solve, consider possible solutions that in fact don’t work well, and explain why the solution offered is the best available. Likewise, the patterns need to connect to each other so as to walk the reader from one problem to the next. In this way, the pattern form can be used to teach the reader not just what solutions to apply, but how to solve problems the author could not have predicted. These are goals we strive to accomplish in this book.\n\nPatterns should be prescriptive, meaning that they should tell you what to do. They don’t just describe a problem, and they don’t just describe how to solve it, they tell you what to do to solve it. Each pattern represents a decision the reader must make: “Should I use *Messaging*?” “Would a *Reply Message* help me here?” The point of the patterns and the pattern language is to help the reader make decisions that lead to a good solution for his specific problem, even if the authors didn’t have that specific problem in mind, and even if the reader doesn’t have the knowledge and experience to develop that solution on his own.\n\nThere is no one universal pattern form; different books use various structures. We used a style that is fairly close to the Alexandrian form, which was first popularized for computer programming in *Smalltalk Best Practice Patterns* by Kent Beck. We like the Alexandrian form because it results in patterns that are more prose-like. As a result, even though each pattern follows an identical, well-defined structure, the format avoids headings for each individual sub-section, which disrupt the flow of the discussion. To improve navigability, the format uses style elements such as bolding, indentation, and pictures to help the reader identify important sections even at a quick glance.\n\nThis pattern language uses the following pattern structure:\n\n- *Name* – This is an identifier for the pattern that indicates what the pattern does. We chose names that can easily be used in a sentence that describes applying the pattern so that it is easy to reference the pattern’s concept in a conversation between designers.\n- *Icon* – Many patterns are associated with an icon in addition to the pattern name. Because many architects are used to communicating visually by using diagrams, we wanted to provide a visual language in addition to the verbal language. This visual language underlines the composability of the patterns as multiple pattern icons can be combined to describe the solution of a larger, more complex pattern.\n- *Context* – This explains what you might be working on that would make you likely to run into the problem that this pattern solves. The context sets the stage for the problem and often refers to other patterns you may have already applied.\n- *Problem* – This explains the difficulty you are facing, expressed as a question you’re asking yourself, which this pattern solves. You should be able to read the problem statement and quickly determine if this pattern is relevant to your work. We’ve formatted the problem to be one sentence, bold and indented.\n- *Forces* – The forces explore the constraints that make the problem difficult to solve. If it were easy, you wouldn’t need a pattern. They often consider alternative solutions that seem promising but don’t pan out, which helps show the value of the real solution.\n- *Solution* – This is a template that explains what you should do to solve the problem. It is not specific to your particular circumstances, but describes what to do in the variety of circumstances represented by the problem. If you understand a pattern’s problem and solution, you understand the pattern and don’t necessarily need to read the other sections. We’ve formatted the solution to be one sentence, bold and indented.\n- *Sketch* – One of the most appealing properties of the Alexandrian form is that each pattern contains a sketch that illustrates the solution. In many cases, just by looking at the pattern name and the sketch you can understand the essence of the pattern. We tried to maintain this style by inserting a solution picture, or sketch, after the solution statement of each pattern.\n- *Results* – This part expands upon the solution to explain the details of how to apply the solution and how it resolves the forces. It also addresses new challenges that may arise as a result of applying this pattern.\n- *Next* – This section lists other patterns to be considered after applying the current one. Patterns don’t live in isolation; the application of one pattern usually leads you to new problems that are solved by other patterns. This is what makes the collection a pattern language and not just a pattern catalog.\n- *Sidebars* – These sections discuss more detailed technical issues or variations of the pattern. We set these sections visually apart from the remainder of the text so you can easily skip them if they are not be relevant to your particular application of the pattern.\n- *Examples* – A pattern usually includes one or more examples of the pattern being applied or having been applied. An example may be as simple as naming a known use or as detailed as a large segment of sample code. Given the large number of available messaging technologies, we do not expect readers to be familiar with each technology used to implement an example. Therefore, we designed the patterns so that you can safely skip the example without loosing any critical content of the pattern.\n\nThe beauty in describing solutions as patterns is that it not only teaches the reader how to solve the specific problems discussed, but also how to create designs that solve problems the authors were not even aware of. As a result, these patterns for messaging describe not only messaging systems that exist today, but may also apply to new ones created well after this book is published.\n\n## Diagram Notation\n\nIntegration solutions consist of many different pieces—applications, databases, endpoints, channels, messages, routers, etc. If we want to describe an integration solution, we need to define a notation that accommodates all these different components. To our knowledge, there is no widely used, comprehensive notation that is geared towards the description of all aspects of an integration solution. The Unified Modeling Language (UML) does a fine job of describing object-oriented systems with class and interaction diagrams, but it does not contain semantics to describe messaging solutions. The UML Profile for EAI [[UMLEAI](http://cgi.omg.org/cgi-bin/doc?ptc/02-02-02)] enriches the semantics of collaboration diagrams to describe message flows between components. This notation is very useful as a precise visual description of a system that can serve as the basis for code generation as part of a model-driven architecture (MDA). We decided not to adopt this notation for two reasons. First, the UML Profile does not capture all the patterns described in our pattern language. Second, we were not looking to create a precise visual specification, but images that have a certain ‘sketch’ quality to them. We wanted pictures that are able to convey the essence of a pattern to the reader at a quick glance—very much like Alexander’s *sketch*. That’s why we decided to create our own ‘notation’. Luckily, unlike the more formal notation, ours does not require you to read a large manual. A simple picture should suffice:\n\n*Visual Notation for Messaging Solutions*\n\nThis simple picture shows a message being sent to a component over a channel. We use the word *component* very loosely here—it can indicate an application that is being integrated, an intermediary that transforms or routes the message between applications, or a specific part of an application. Sometimes, we also depict a channel as a three-dimensional pipe if we want to highlight the channel itself. Often times we are more interested in the components and draw the channels as simple lines with arrow heads. The two notations are equivalent. We depict the message as a small tree with a round root and nested, square elements. The tree elements can be shaded or colored to highlight their usage in a particular pattern. Many messaging systems allow messages to contain tree-like data structures, for example XML documents. Also, depicting messages in this way allows us to provide a quick visual description of transformation patterns—it will be easy to show a pattern that adds, re-arranges or removes fields from the message.\n\nWhen we describe application designs—for example, messaging endpoints or examples written in C# or Java—we do use standard UML class and sequence diagrams to depict the class hierarchy and the interaction between objects. The UML notation is widely accepted as the standard way of describing these types of solutions (if you need a refresher on UML, have a look at [[UML](http://www.amazon.com/exec/obidos/ASIN/0321193687/enterpriseint-20)]).\n\n## Examples and Interludes\n\nWe have tried to underline the broad applicability of the patterns by including implementation examples using a variety of integration technologies. The potential downside of this approach is that you may not be familiar with each technology that is being used in an example. That’s why we made sure that reading the examples is strictly optional — all relevant points are discussed in the pattern description. Therefore, you can safely skip the examples without risk of losing out on important detail. Also, where possible, we provided more than one implementation example using different technologies.\n\nWhen presenting example code we focused on readability over runnability. A code segment can help remove any potential ambiguity left by the solution description and many application developers and architects prefer looking at 30 lines of code as opposed to reading many paragraphs of text. To support this intent we often only show the most relevant methods or classes of a potentially larger solution. We also omitted most forms of error checking to highlight the core function implemented by the code. Most code snippets do not contain in-line comments as the code is explained in the paragraphs before and after the code segment.\n\nProviding a meaningful example for a single integration pattern is challenging. Enterprise integration solutions typically consist of a number of heterogeneous components, spread across multiple systems. Likewise, most integration patterns do not operate in isolation but rely on other patterns to form a meaningful solution. To highlight the collaboration between multiple patterns we included more comprehensive examples as interludes at the end of the major sections of the book. These solutions illustrate many of the trade-offs involved in designing a more comprehensive messaging solution.\n\nAll code samples should be treated as illustrative tools only and not as a starting point for development of an integration solution. For example, almost all examples lack any form of error checking or concern for robustness, security, or scalability.\n\nWe tried as much as possible to base the examples on software platforms that are available free of charge or as a trial version. In some cases, we used commercial platforms (such as TIBCO ActiveEnterprise or Microsoft BizTalk) to illustrate the difference between developing a solution from scratch and using a commercial tool. We presented those example in such a way that they are educational even if you do not have access to the required run-time platform. For many examples, we use relatively bare-bones messaging frameworks such as JMS or MSMQ. This allows us to be more explicit in the example and focus on the problem at hand instead of distracting from it with all the features a more complex middleware toolset may provide.\n\nThe Java examples in this book are based on the JMS 1.1 specification, which is part of the J2EE 1.4 specification. By the time this book is published, most messaging and application server vendors will support JMS 1.1. You can download Sun’s reference implementation of the JMS specification from Sun’s Web site: [http://java.sun.com/j2ee](http://java.sun.com/j2ee).\n\nThe Microsoft .NET examples are based on Version 1.1 of the .NET Framework and are written in C#. You can download the .NET Framework SDK from Microsoft’s Web site: [http://msdn.microsoft.com/net](http://msdn.microsoft.com/net).\n\n## Organization of this Book\n\nThe pattern language in this book, as with any pattern language, is a web of patterns referring to each other. At the same time, some patterns are more fundamental than others, forming a hierarchy of big-concept patterns that lead to finer-detailed patterns. The big-concept patterns form the load-baring members of the pattern language. They are the main ones, what we term *root patterns*, that provide the foundation of the language and support the other patterns.\n\nThis book groups patterns into chapters by level-of-abstraction and by topic area. The following diagram shows the root patterns and their relationship to the chapters of the book.\n\n*Relationship of Root Patterns and Chapters*\n\nThe most fundamental pattern is [*Messaging*](Messaging.html); that’s what this whole book is about. It leads to the six root patterns—which are in the *Messaging Systems* chapter—namely [*Message Channel*](MessageChannel.html), [*Message*](Message.html), [*Pipes and Filters*](PipesAndFilters.html), [*Message Router*](MessageRouter.html), [*Message Translator*](MessageTranslator.html), and [*Message Endpoint*](MessageEndpoint.html). In turn, each of these root patterns leads to its own chapter in the book (except [*Pipes and Filters*](PipesAndFilters.html), which is not specific to messaging but is the basis of the routing and transformation patterns).\n\nThe pattern language is divided into eight chapters, which follow the hierarchy described above:\n\n- *Chapter 1: Integration Styles* – This chapter reviews the different approaches available for integrating applications, including [*Messaging*](Messaging.html) .\n- *Chapter 2: Messaging Systems* – This chapter reviews the six root messaging patterns, giving an overview of the entire pattern language.\n- *Chapter 3: Messaging Channels* – Applications communicate via channels. Channels define the logical pathways a message can follow. This chapter shows how to determine what channels your applications need.\n- *Chapter 4: Message Construction* – Once you have message channels, you need messages to send on them. This chapter explains the different ways messages can be used and how to take advantage of their special properties.\n- *Chapter 5: Message Routing* – As a messaging topography becomes more complex, senders know less and less about who should receive their messages. Rather, they send the messages to intermediate applications that send them to others until the messages finally find their way to their final destination. This chapter teaches you the responsibilities of these routing applications.\n- *Chapter 6: Message Transformation* – Independently developed applications often don’t agree on messages’ formats, on the form and meaning of supposedly unique identifiers, and even the character encoding to be used. Therefore, intermediate components are needed to convert messages from the form one application produced to that which other applications will consume. This chapter shows how to design these transformer applications.\n- *Chapter 7: Messaging Endpoints* – Many applications were not designed to participate in a messaging solution. As a result, they must be explicitly connected to the messaging system. This section describes a messaging layer in the applications that is responsible for sending and receiving the messages, making your application an endpoint for messages.\n- *Chapter 8: System Management* – Once we have a messaging system in place to integrate our applications, how do we make sure that it’s running correctly and doing what we want? This chapter explores how to test and monitor a running messaging system.\n\nThese eight chapters go together to teach you what you need to know about connecting applications using messaging.\n\n## Getting Started\n\nWith any book that has a lot to teach, it’s hard to know where to start, both for the authors and the readers. Reading all of the pages straight through assures covering the entire subject area, but isn’t the quickest way to get to the issues that are of the most help. Starting with a pattern in the middle of the language can be like starting to watch a movie that’s half over; you see what’s happening but don’t understand what it means.\n\nLuckily, the pattern language is formed around root patterns (as described earlier). These root patterns collectively provide an overview of the pattern language, and individually provide starting points for delving deep into the details of messaging. To get an overall survey of the language without reviewing all of the patterns, start with reviewing the root patterns. To jump into the middle of the language, jump in at a root pattern, a place where the language has finished discussing one major topic and is now starting another.\n\n*Chapter 1: Integration Styles* provides an overview of the four main application integration techniques and settles on [*Messaging*](Messaging.html) as being the best overall for many integration opportunities. Read this chapter if you are unfamiliar with issues involved in application integration and the pros and cons of the various approaches that are available. If you just want to know what’s so great about messaging, go straight to that pattern. If you’re already convinced that messaging is the way to go and want to get started with how to use messaging, you can skip the first chapter completely.\n\n*Chapter 2: Messaging Systems* contains all of this pattern language’s root patterns (except [*Messaging*](Messaging.html), which is in the first chapter). For an overview of the pattern language, read (or at least skim) all of the patterns in this chapter. To dive deep on a particular topic, read its root pattern, then go to the patterns mentioned in its *next* section at the end of the pattern; those next patterns will all be in a chapter named after the root pattern.\n\nThe root patterns in this language are:\n\n- *[*Messaging*](Messaging.html)* – This is the #1 root pattern for the entire book: What is messaging, what problem does it solve, and how does it solve it?\n- *[*Message Channel*](MessageChannel.html)* – What is the structure in a messaging system that conveys messages from the sender to the receiver? How do you know which ones your applications need?\n- *[*Message*](Message.html)* – How does information get communicated from a sender to a receiver?\n- *[*Pipes and Filters*](PipesAndFilters.html)* – How can intermediate steps be performed after a message is sent but before it is received?\n- *[*Message Router*](MessageRouter.html)* – If the sender does not know ultimately where the message should go, how can the messaging system get it there?\n- *[*Message Translator*](MessageTranslator.html)* – If the sender and receiver do not agree on the message format, how can they communicate?\n- *[*Message Endpoint*](MessageEndpoint.html)* – How do the applications that send and receive messages connect to the messaging system?\n\nAfter the first two chapters, different types of messaging developers may be most interested in different chapters, based on the specifics of how each group uses messaging to perform integration:\n\n- *System Administrators* may be most interested in *Chapter 3: Messaging Channels* , the guidelines for what channels to create, and *Chapter 8: System Management* , guidance on how to maintain a running messaging system.\n- *Application Developers* should look at *Chapter 7: Messaging Endpoints* to learn how integrate an application with a messaging system, and *Chapter 4: Message Construction* to learn what messages to send when.\n- *System Integrators* will gain the most from *Chapter 5: Message Routing* —how to direct messages to the proper receivers—and *Chapter 6: Message Transformation* —how to convert messages from the sender’s format to the receiver’s.\n\nKeep in mind that when reading a pattern, if you’re in a hurry, start by just reading the problem and solution (the two sentences in bold). This will give you enough information to determine if the pattern is of interest to you right now, and if you already know the pattern. If you do not know the pattern and it sounds interesting, go ahead and read the other parts.\n\nAlso remember that this is a pattern language, so the patterns are not necessarily meant to be read in the order they’re presented in the book. The book’s order teaches you about messaging by considering all of the relevant topics in turn and discussing related issues together. To use the patterns to solve a particular problem, start with an appropriate root pattern. Its context explains what patterns need to be applied before this one, even if they’re not the ones immediately preceding this one in the book. Likewise, the next section (the last paragraph of the pattern) describes what patterns to consider applying after this one, even if they’re not the ones immediately following this one in the book. Use the web of interconnected patterns, not the linear list of book pages, to guide you through the material.\n\n## Supporting Web Site\n\nPlease look for companion information to this book plus related information on enterprise integration at our Web site: [www.enterpriseintegrationpatterns.com](http://www.enterpriseintegrationpatterns.com). You can also e-mail your comments, suggestions and feedback to us at authors@enterpriseintegrationpatterns.com.\n\n## Summary\n\nYou should now have a good understanding of the following concepts which are fundamental to the material in this book:\n\n- What messaging is\n- What a messaging system is\n- Why to use messaging\n- How asynchronous programming is different\n- How application integration is different from application distribution\n- What types of commercial products contain messaging systems\n\nYou should also have a feel for how this book is going to teach you how to use messaging:\n\n- The role patterns have in structuring the material\n- The meaning of the custom notation used in the diagrams\n- The purpose and scope of the examples\n- The organization of the material\n- How to get started learning the material\n\nNow that you understand the basic concepts and how the material will be presented, you are now ready to start learning how to integrate applications using messaging.\n\n## Integration Pattern Language\n\n[Message Construct.](MessageConstructionIntro.html)\n\n[Message](Message.html)\n\n[Command Message](CommandMessage.html)\n\n[Document Message](DocumentMessage.html)\n\n[Event Message](EventMessage.html)\n\n[Request-Reply](RequestReply.html)\n\n[Return Address](ReturnAddress.html)\n\n[Correlation Identifier](CorrelationIdentifier.html)\n\n[Message Sequence](MessageSequence.html)\n\n[Message Expiration](MessageExpiration.html)\n\n[Format Indicator](FormatIndicator.html)\n\n[Message Routing](MessageRoutingIntro.html)\n\n[Pipes-and-Filters](PipesAndFilters.html)\n\n[Message Router](MessageRouter.html)\n\n[Content-based Router](ContentBasedRouter.html)\n\n[Message Filter](Filter.html)\n\n[Dynamic Router](DynamicRouter.html)\n\n[Recipient List](RecipientList.html)\n\n[Splitter](Sequencer.html)\n\n[Aggregator](Aggregator.html)\n\n[Resequencer](Resequencer.html)\n\n[Composed Msg. Processor](DistributionAggregate.html)\n\n[Scatter-Gather](BroadcastAggregate.html)\n\n[Routing Slip](RoutingTable.html)\n\n[Process Manager](ProcessManager.html)\n\n[Message Broker](MessageBroker.html)\n\n[Message\nTransformation](MessageTransformationIntro.html)\n\n[Message Translator](MessageTranslator.html)\n\n[Envelope Wrapper](EnvelopeWrapper.html)\n\n[Content Enricher](DataEnricher.html)\n\n[Content Filter](ContentFilter.html)\n\n[Claim Check](StoreInLibrary.html)\n\n[Normalizer](Normalizer.html)\n\n[Canonical Data Model](CanonicalDataModel.html)\n\n[Messaging Endpoints](MessagingEndpointsIntro.html)\n\n[Message Endpoint](MessageEndpoint.html)\n\n[Messaging Gateway](MessagingGateway.html)\n\n[Messaging Mapper](MessagingMapper.html)\n\n[Transactional Client](TransactionalClient.html)\n\n[Polling Consumer](PollingConsumer.html)\n\n[Event-driven Consumer](EventDrivenConsumer.html)\n\n[Competing Consumers](CompetingConsumers.html)\n\n[Message Dispatcher](MessageDispatcher.html)\n\n[Selective Consumer](MessageSelector.html)\n\n[Durable Subscriber](DurableSubscription.html)\n\n[Idempotent Receiver](IdempotentReceiver.html)\n\n[Service Activator](MessagingAdapter.html)\n\n[Messaging Channels](MessagingChannelsIntro.html)\n\n[Message Channel](MessageChannel.html)\n\n[Point-to-Point Channel](PointToPointChannel.html)\n\n[Publish-Subscr. Channel](PublishSubscribeChannel.html)\n\n[Datatype Channel](DatatypeChannel.html)\n\n[Invalid Message Channel](InvalidMessageChannel.html)\n\n[Dead Letter Channel](DeadLetterChannel.html)\n\n[Guaranteed Delivery](GuaranteedMessaging.html)\n\n[Channel Adapter](ChannelAdapter.html)\n\n[Messaging Bridge](MessagingBridge.html)\n\n[Message Bus](MessageBus.html)\n\n[Systems Mgmt.](SystemManagementIntro.html)\n\n[Control Bus](ControlBus.html)\n\n[Detour](Detour.html)\n\n[Wire Tap](WireTap.html)\n\n[Message History](MessageHistory.html)\n\n[Message Store](MessageStore.html)\n\n[Smart Proxy](SmartProxy.html)\n\n[Test Message](TestMessage.html)\n\n[Channel Purger](ChannelPurger.html)", "znaku_textu": 54830, "slov": 8300, "odkazu": 113, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/patterns/messaging/Introduction.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 06:01:47", "sha256": "e3f34868e3c6a8e5a30ac01f1969a225db50a51beb9bb08f8f339bbbe3582f84", "hloubka": 1, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://www.amazon.com/exec/obidos/ASIN/0201633612/enterpriseint-20", "http://cgi.omg.org/cgi-bin/doc?ptc%2F02-02-02=", "http://www.amazon.com/exec/obidos/ASIN/0321193687/enterpriseint-20", "http://java.sun.com/j2ee", "http://msdn.microsoft.com/net", "https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "https://www.architectelevator.com/book", "https://www.cloudstrategybook.com/", "https://www.platformstrategybook.info/"]} {"url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/InvalidMessageChannel.html", "titulek": "Invalid Message Channel - Enterprise Integration Patterns", "h1": "", "popis": "How can a messaging receiver gracefully handle receiving a message that makes no sense?", "klicova_slova": "Invalid Message Channel,integration, messaging, events, patterns, event-driven, coupling, eai, middleware, application integration, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns", "og:title": "Invalid Message Channel - Enterprise Integration Patterns", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/InvalidMessageChannel.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/InvalidMessageSolution.gif"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Integration Pattern Language"}], "markdown": "Messaging Patterns\n\n[Messaging Patterns](index.html)\n\n- [Integration Styles](IntegrationStylesIntro.html)\n- [Messaging Systems](MessagingComponentsIntro.html)\n- [Messaging Channels](MessagingChannelsIntro.html)\n- [Message Construction](MessageConstructionIntro.html)\n- [Interlude: Simple Messaging](SimpleMessagingIntro.html)\n- [Message Routing](MessageRoutingIntro.html)\n- [Message Transformation](MessageTransformationIntro.html)\n- [Interlude: Composed Messaging](ComposedMessagingExample.html)\n- [Messaging Endpoints](MessagingEndpointsIntro.html)\n- [System Management](SystemManagementIntro.html)\n- Interlude: Systems Management Example\n- Integration Patterns in Practice\n- Concluding Remarks\n- Appendices\n\n| | Invalid Message Channel[Messaging Patterns](index.html) » [Messaging Channels](MessagingChannelsIntro.html) | [Contents](toc.html)[⇐ Prev](DatatypeChannel.html)[Next ⇒](DeadLetterChannel.html) |\n| --- | --- | --- |\n\nAn application is using [*Messaging*](Messaging.html) to receive [*Message*](Message.html)s.\n\nHow can a messaging receiver gracefully handle receiving a message that makes no sense?\n\nThe receiver should move the improper message to an *Invalid Message Channel*, a special channel for messages that could not be processed by their receivers.\n\nWhen designing a messaging system for applications to use, the administrator will need to define one or more *Invalid Message Channel*s for the applications to use.\n\nThe *Invalid Message Channel* will not be used for normal, successful communication, so its being cluttered with improper messages will not cause a problem. An error handler that wants to diagnose improper messages can use a receiver on the invalid channel to detect messages as they become available.\n\n...\nRead the entire pattern in the book [Enterprise Integration Patterns](/books1.html)\n\n**Related patterns:**\n\n[*Command Message*](CommandMessage.html), [*Correlation Identifier*](CorrelationIdentifier.html), [*Datatype Channel*](DatatypeChannel.html), [*Dead Letter Channel*](DeadLetterChannel.html), [*Message*](Message.html), [*Message Channel*](MessageChannel.html), [*Message Sequence*](MessageSequence.html), [*Messaging*](Messaging.html), [*Service Activator*](MessagingAdapter.html), [*Messaging Gateway*](MessagingGateway.html), [*JMS Request/Reply Example*](RequestReplyJmsExample.html), [*.NET Request/Reply Example*](RequestReplyNetExample.html), [*Return Address*](ReturnAddress.html)\n\n---\n\n## Integration Pattern Language\n\n[Message Construct.](MessageConstructionIntro.html)\n\n[Message](Message.html)\n\n[Command Message](CommandMessage.html)\n\n[Document Message](DocumentMessage.html)\n\n[Event Message](EventMessage.html)\n\n[Request-Reply](RequestReply.html)\n\n[Return Address](ReturnAddress.html)\n\n[Correlation Identifier](CorrelationIdentifier.html)\n\n[Message Sequence](MessageSequence.html)\n\n[Message Expiration](MessageExpiration.html)\n\n[Format Indicator](FormatIndicator.html)\n\n[Message Routing](MessageRoutingIntro.html)\n\n[Pipes-and-Filters](PipesAndFilters.html)\n\n[Message Router](MessageRouter.html)\n\n[Content-based Router](ContentBasedRouter.html)\n\n[Message Filter](Filter.html)\n\n[Dynamic Router](DynamicRouter.html)\n\n[Recipient List](RecipientList.html)\n\n[Splitter](Sequencer.html)\n\n[Aggregator](Aggregator.html)\n\n[Resequencer](Resequencer.html)\n\n[Composed Msg. Processor](DistributionAggregate.html)\n\n[Scatter-Gather](BroadcastAggregate.html)\n\n[Routing Slip](RoutingTable.html)\n\n[Process Manager](ProcessManager.html)\n\n[Message Broker](MessageBroker.html)\n\n[Message\nTransformation](MessageTransformationIntro.html)\n\n[Message Translator](MessageTranslator.html)\n\n[Envelope Wrapper](EnvelopeWrapper.html)\n\n[Content Enricher](DataEnricher.html)\n\n[Content Filter](ContentFilter.html)\n\n[Claim Check](StoreInLibrary.html)\n\n[Normalizer](Normalizer.html)\n\n[Canonical Data Model](CanonicalDataModel.html)\n\n[Messaging Endpoints](MessagingEndpointsIntro.html)\n\n[Message Endpoint](MessageEndpoint.html)\n\n[Messaging Gateway](MessagingGateway.html)\n\n[Messaging Mapper](MessagingMapper.html)\n\n[Transactional Client](TransactionalClient.html)\n\n[Polling Consumer](PollingConsumer.html)\n\n[Event-driven Consumer](EventDrivenConsumer.html)\n\n[Competing Consumers](CompetingConsumers.html)\n\n[Message Dispatcher](MessageDispatcher.html)\n\n[Selective Consumer](MessageSelector.html)\n\n[Durable Subscriber](DurableSubscription.html)\n\n[Idempotent Receiver](IdempotentReceiver.html)\n\n[Service Activator](MessagingAdapter.html)\n\n[Messaging Channels](MessagingChannelsIntro.html)\n\n[Message Channel](MessageChannel.html)\n\n[Point-to-Point Channel](PointToPointChannel.html)\n\n[Publish-Subscr. Channel](PublishSubscribeChannel.html)\n\n[Datatype Channel](DatatypeChannel.html)\n\n[Invalid Message Channel](InvalidMessageChannel.html)\n\n[Dead Letter Channel](DeadLetterChannel.html)\n\n[Guaranteed Delivery](GuaranteedMessaging.html)\n\n[Channel Adapter](ChannelAdapter.html)\n\n[Messaging Bridge](MessagingBridge.html)\n\n[Message Bus](MessageBus.html)\n\n[Systems Mgmt.](SystemManagementIntro.html)\n\n[Control Bus](ControlBus.html)\n\n[Detour](Detour.html)\n\n[Wire Tap](WireTap.html)\n\n[Message History](MessageHistory.html)\n\n[Message Store](MessageStore.html)\n\n[Smart Proxy](SmartProxy.html)\n\n[Test Message](TestMessage.html)\n\n[Channel Purger](ChannelPurger.html)\n\n- » [Read the latest in My Blog](/ramblings)\n- » [Get more insights from My Articles](/articles.html)\n- » [See me live in my Upcoming Talks](/talks)\n\nYou can reuse the following elements under the [Creative Commons Attribution](http://creativecommons.org/licenses/by/4.0/) license: pattern icon, pattern name, problem and solution statements (in bold), and the sketch. Other portions are protected by copyright.\n\n[Enterprise Integration Patterns](https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20)\nThe de-facto language for designing asynchronous, distributed systems. Over 100,000 copies sold.\n\n[The Software Architect Elevator](https://www.architectelevator.com/book)\n\n Rethink the role of architects as a connecting element across organizational layers. Acquire the technical, communication, and organizational skills to succeed in this new role.\n\n[Cloud Strategy](https://www.cloudstrategybook.com)\n\n Make your cloud migration a success by translating high-level goals into conscious decisions with well-understood trade-offs.\n\n[Platform Strategy](https://www.platformstrategybook.info)\n\n Platforms can boost innovation through harmonization, but they aren't easy to build. Learn from over a decade of designing and rolling out IT platforms.", "znaku_textu": 6393, "slov": 527, "odkazu": 108, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/InvalidMessageChannel.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 06:02:05", "sha256": "3865c2583cffca54da97244d8fab6bd3779da1686077418810ae21283c1e24e3", "hloubka": 1, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://creativecommons.org/licenses/by/4.0/", "https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "https://www.architectelevator.com/book", "https://www.cloudstrategybook.com/", "https://www.platformstrategybook.info/"]} {"url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/Message.html", "titulek": "Message - Enterprise Integration Patterns", "h1": "", "popis": "How can two applications connected by a message channel exchange a piece of information?", "klicova_slova": "Message,integration, messaging, events, patterns, event-driven, coupling, eai, middleware, application integration, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns", "og:title": "Message - Enterprise Integration Patterns", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/Message.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/MessageSolution.gif"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Integration Pattern Language"}], "markdown": "Messaging Patterns\n\n[Messaging Patterns](index.html)\n\n- [Integration Styles](IntegrationStylesIntro.html)\n- [Messaging Systems](MessagingComponentsIntro.html)\n- [Messaging Channels](MessagingChannelsIntro.html)\n- [Message Construction](MessageConstructionIntro.html)\n- [Interlude: Simple Messaging](SimpleMessagingIntro.html)\n- [Message Routing](MessageRoutingIntro.html)\n- [Message Transformation](MessageTransformationIntro.html)\n- [Interlude: Composed Messaging](ComposedMessagingExample.html)\n- [Messaging Endpoints](MessagingEndpointsIntro.html)\n- [System Management](SystemManagementIntro.html)\n- Interlude: Systems Management Example\n- Integration Patterns in Practice\n- Concluding Remarks\n- Appendices\n\n| | Message[Messaging Patterns](index.html) » [Messaging Systems](MessagingComponentsIntro.html) | [Contents](toc.html)[⇐ Prev](MessageChannel.html)[Next ⇒](PipesAndFilters.html) |\n| --- | --- | --- |\n\nAn enterprise has two separate applications that are communicating via [*Messaging*](Messaging.html), using a [*Message Channel*](MessageChannel.html) that connects them.\n\nHow can two applications connected by a message channel exchange a piece of information?\n\nPackage the information into a *Message*, a data record that the messaging system can transmit through a message channel.\n\nThus any data that is to be transmitted via a messaging system must be converted into one or more messages that can be sent through messaging channels.\n\nA message consists of two basic parts:\n\n1. **Header** – Information used by the messaging system that describes the data being transmitted, its origin, its destination, and so on.\n2. **Body** – The data being transmitted; generally ignored by the messaging system and simply transmitted as-is.\n\n...\nRead the entire pattern in the book [Enterprise Integration Patterns](/books1.html)\n\n**Related patterns:**\n\n[*Canonical Data Model*](CanonicalDataModel.html), [*Command Message*](CommandMessage.html), [*Document Message*](DocumentMessage.html), [*Event Message*](EventMessage.html), [*Message Channel*](MessageChannel.html), [*Message Expiration*](MessageExpiration.html), [*Message Sequence*](MessageSequence.html), [*Messaging*](Messaging.html), [*Request-Reply*](RequestReply.html)\n\n---\n\n## Integration Pattern Language\n\n[Message Construct.](MessageConstructionIntro.html)\n\n[Message](Message.html)\n\n[Command Message](CommandMessage.html)\n\n[Document Message](DocumentMessage.html)\n\n[Event Message](EventMessage.html)\n\n[Request-Reply](RequestReply.html)\n\n[Return Address](ReturnAddress.html)\n\n[Correlation Identifier](CorrelationIdentifier.html)\n\n[Message Sequence](MessageSequence.html)\n\n[Message Expiration](MessageExpiration.html)\n\n[Format Indicator](FormatIndicator.html)\n\n[Message Routing](MessageRoutingIntro.html)\n\n[Pipes-and-Filters](PipesAndFilters.html)\n\n[Message Router](MessageRouter.html)\n\n[Content-based Router](ContentBasedRouter.html)\n\n[Message Filter](Filter.html)\n\n[Dynamic Router](DynamicRouter.html)\n\n[Recipient List](RecipientList.html)\n\n[Splitter](Sequencer.html)\n\n[Aggregator](Aggregator.html)\n\n[Resequencer](Resequencer.html)\n\n[Composed Msg. Processor](DistributionAggregate.html)\n\n[Scatter-Gather](BroadcastAggregate.html)\n\n[Routing Slip](RoutingTable.html)\n\n[Process Manager](ProcessManager.html)\n\n[Message Broker](MessageBroker.html)\n\n[Message\nTransformation](MessageTransformationIntro.html)\n\n[Message Translator](MessageTranslator.html)\n\n[Envelope Wrapper](EnvelopeWrapper.html)\n\n[Content Enricher](DataEnricher.html)\n\n[Content Filter](ContentFilter.html)\n\n[Claim Check](StoreInLibrary.html)\n\n[Normalizer](Normalizer.html)\n\n[Canonical Data Model](CanonicalDataModel.html)\n\n[Messaging Endpoints](MessagingEndpointsIntro.html)\n\n[Message Endpoint](MessageEndpoint.html)\n\n[Messaging Gateway](MessagingGateway.html)\n\n[Messaging Mapper](MessagingMapper.html)\n\n[Transactional Client](TransactionalClient.html)\n\n[Polling Consumer](PollingConsumer.html)\n\n[Event-driven Consumer](EventDrivenConsumer.html)\n\n[Competing Consumers](CompetingConsumers.html)\n\n[Message Dispatcher](MessageDispatcher.html)\n\n[Selective Consumer](MessageSelector.html)\n\n[Durable Subscriber](DurableSubscription.html)\n\n[Idempotent Receiver](IdempotentReceiver.html)\n\n[Service Activator](MessagingAdapter.html)\n\n[Messaging Channels](MessagingChannelsIntro.html)\n\n[Message Channel](MessageChannel.html)\n\n[Point-to-Point Channel](PointToPointChannel.html)\n\n[Publish-Subscr. Channel](PublishSubscribeChannel.html)\n\n[Datatype Channel](DatatypeChannel.html)\n\n[Invalid Message Channel](InvalidMessageChannel.html)\n\n[Dead Letter Channel](DeadLetterChannel.html)\n\n[Guaranteed Delivery](GuaranteedMessaging.html)\n\n[Channel Adapter](ChannelAdapter.html)\n\n[Messaging Bridge](MessagingBridge.html)\n\n[Message Bus](MessageBus.html)\n\n[Systems Mgmt.](SystemManagementIntro.html)\n\n[Control Bus](ControlBus.html)\n\n[Detour](Detour.html)\n\n[Wire Tap](WireTap.html)\n\n[Message History](MessageHistory.html)\n\n[Message Store](MessageStore.html)\n\n[Smart Proxy](SmartProxy.html)\n\n[Test Message](TestMessage.html)\n\n[Channel Purger](ChannelPurger.html)\n\n- » [Read the latest in My Blog](/ramblings)\n- » [Get more insights from My Articles](/articles.html)\n- » [See me live in my Upcoming Talks](/talks)\n\nYou can reuse the following elements under the [Creative Commons Attribution](http://creativecommons.org/licenses/by/4.0/) license: pattern icon, pattern name, problem and solution statements (in bold), and the sketch. Other portions are protected by copyright.\n\n[Enterprise Integration Patterns](https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20)\nThe de-facto language for designing asynchronous, distributed systems. Over 100,000 copies sold.\n\n[The Software Architect Elevator](https://www.architectelevator.com/book)\n\n Rethink the role of architects as a connecting element across organizational layers. Acquire the technical, communication, and organizational skills to succeed in this new role.\n\n[Cloud Strategy](https://www.cloudstrategybook.com)\n\n Make your cloud migration a success by translating high-level goals into conscious decisions with well-understood trade-offs.\n\n[Platform Strategy](https://www.platformstrategybook.info)\n\n Platforms can boost innovation through harmonization, but they aren't easy to build. Learn from over a decade of designing and rolling out IT platforms.", "znaku_textu": 6181, "slov": 511, "odkazu": 108, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/Message.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 06:01:56", "sha256": "76e03593d1fab869622593e4b0c27139b18ade8ccfd509ccc32be72e0a45185c", "hloubka": 1, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://creativecommons.org/licenses/by/4.0/", "https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "https://www.architectelevator.com/book", "https://www.cloudstrategybook.com/", "https://www.platformstrategybook.info/"]} {"url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/MessageBroker.html", "titulek": "Message Broker - Enterprise Integration Patterns", "h1": "", "popis": "How can you decouple the destination of a message from the sender and maintain central control over the flow of messages?", "klicova_slova": "Message Broker,integration, messaging, events, patterns, event-driven, coupling, eai, middleware, application integration, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns", "og:title": "Message Broker - Enterprise Integration Patterns", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/MessageBroker.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/MessageBroker.png"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Integration Pattern Language"}], "markdown": "| | Message Broker[Messaging Patterns](index.html) » [Message Routing](MessageRoutingIntro.html) | [Contents](toc.html)[⇐ Prev](ProcessManager.html)[Next ⇒](MessageTransformationIntro.html) |\n| --- | --- | --- |\n\nMany patterns in this chapter present ways to route messages to the proper destination without the originating application being aware of the ultimate destination of the message. Most of the patterns focused on specific types of routing logic. However, in aggregate, these patterns solve a bigger problem.\n\nHow can you decouple the destination of a message from the sender and maintain central control over the flow of messages?\n\nUse a central *Message Broker* that can receive messages from multiple destinations, determine the correct destination and route the message to the correct channel. Implement the internals of the *Message Broker* using the design patterns presented in this chapter.\n\nUsing a central *Message Broker* is sometimes referred to as *hub-and-spoke* architectural style, which appears to be a descriptive name when looking at the diagram above.\n\nThe *Message Broker* pattern has a slightly different scope than most of the other patterns presented in this chapter. It is an architecture pattern as opposed to individual design patterns we presented in this chapter. As such, it is comparable to the [*Pipes and Filters*](PipesAndFilters.html) architectural style, which gives us a fundamental way of chaining components together to form more complex message flows. Rather than just chaining individual components, the *Message Broker* concerns itself with larger solutions and helps us deal with the inevitable complexity of managing such a system.\n\nThe *Message Broker* is not a monolithic component. Internally, it uses many of the message routing patterns presented in this chapter. So once you decide to use the *Message Broker* as an architectural pattern, you can choose the correct [*Message Router*](MessageRouter.html) design patterns to implement the *Message Broker*.\n\nThe advantage of central maintenance of a *Message Broker* can also turn into a disadvantage. Routing all messages through a single *Message Broker* can turn the *Message Broker* into a serious bottleneck. A number of techniques can help us alleviate this problem. For example, the *Message Broker* pattern only tells us to *develop* a single entity that performs routing. It does not prescribe how many instances of this entity we deploy in the system at deployment time. If the *Message Broker* design is stateless (i.e. if it is composed only of stateless components), we can easily deploy multiple instances of the broker to improve throughput. The properties of a [*Point-to-Point Channel*](PointToPointChannel.html) ensure that only one instance of the *Message Broker* consumes any incoming message. Also, as in most real-life situations, the ultimate solution ends up being a combination of a patterns. Likewise, in many complex integration solutions it may make sense to design multiple *Message Broker* components, each specializing on a specific portion of the solution. This avoids creating the über-*Message Broker* that is so complex as to become unmaintainable. The apparent flip-side is that we no longer have a single point of maintenance and could create a new form of \"*Message Broker* spaghetti\". One excellent architectural style to use a combination of *Message Broker*s is a *Message Broker* *hierarchy* (see picture). This configuration resembles a network configuration composed out of individual subnets. If a message has to travel only between two applications inside a \"subnet\" the local *Message Broker* can manage the routing of the message. If the message is destined for another subnet, the local *Message Broker* can pass the message to the central *Message Broker* who then determines the ultimate destination. The central *Message Broker* performs the same functions as a local *Message Broker*, but instead of decoupling individual applications it decouples whole subsystems consisting of multiple applications.\n\n...\nRead the entire pattern in the book [Enterprise Integration Patterns](/books1.html)\n\n**Related patterns:**\n\n[*Canonical Data Model*](CanonicalDataModel.html), [*Event-Driven Consumer*](EventDrivenConsumer.html), [*Message Channel*](MessageChannel.html), [*Message Endpoint*](MessageEndpoint.html), [*Message Router*](MessageRouter.html), [*Pipes and Filters*](PipesAndFilters.html), [*Point-to-Point Channel*](PointToPointChannel.html), [*Publish-Subscribe Channel*](PublishSubscribeChannel.html), [*Recipient List*](RecipientList.html)\n\n**Further reading:**\n\n- [Hub and Spoke [or] The Art of Message Broker Maintenance](/ramblings/03_hubandspoke.html)\n\n---\n\n## Integration Pattern Language\n\n[Message Construct.](MessageConstructionIntro.html)\n\n[Message](Message.html)\n\n[Command Message](CommandMessage.html)\n\n[Document Message](DocumentMessage.html)\n\n[Event Message](EventMessage.html)\n\n[Request-Reply](RequestReply.html)\n\n[Return Address](ReturnAddress.html)\n\n[Correlation Identifier](CorrelationIdentifier.html)\n\n[Message Sequence](MessageSequence.html)\n\n[Message Expiration](MessageExpiration.html)\n\n[Format Indicator](FormatIndicator.html)\n\n[Message Routing](MessageRoutingIntro.html)\n\n[Pipes-and-Filters](PipesAndFilters.html)\n\n[Message Router](MessageRouter.html)\n\n[Content-based Router](ContentBasedRouter.html)\n\n[Message Filter](Filter.html)\n\n[Dynamic Router](DynamicRouter.html)\n\n[Recipient List](RecipientList.html)\n\n[Splitter](Sequencer.html)\n\n[Aggregator](Aggregator.html)\n\n[Resequencer](Resequencer.html)\n\n[Composed Msg. Processor](DistributionAggregate.html)\n\n[Scatter-Gather](BroadcastAggregate.html)\n\n[Routing Slip](RoutingTable.html)\n\n[Process Manager](ProcessManager.html)\n\n[Message Broker](MessageBroker.html)\n\n[Message\nTransformation](MessageTransformationIntro.html)\n\n[Message Translator](MessageTranslator.html)\n\n[Envelope Wrapper](EnvelopeWrapper.html)\n\n[Content Enricher](DataEnricher.html)\n\n[Content Filter](ContentFilter.html)\n\n[Claim Check](StoreInLibrary.html)\n\n[Normalizer](Normalizer.html)\n\n[Canonical Data Model](CanonicalDataModel.html)\n\n[Messaging Endpoints](MessagingEndpointsIntro.html)\n\n[Message Endpoint](MessageEndpoint.html)\n\n[Messaging Gateway](MessagingGateway.html)\n\n[Messaging Mapper](MessagingMapper.html)\n\n[Transactional Client](TransactionalClient.html)\n\n[Polling Consumer](PollingConsumer.html)\n\n[Event-driven Consumer](EventDrivenConsumer.html)\n\n[Competing Consumers](CompetingConsumers.html)\n\n[Message Dispatcher](MessageDispatcher.html)\n\n[Selective Consumer](MessageSelector.html)\n\n[Durable Subscriber](DurableSubscription.html)\n\n[Idempotent Receiver](IdempotentReceiver.html)\n\n[Service Activator](MessagingAdapter.html)\n\n[Messaging Channels](MessagingChannelsIntro.html)\n\n[Message Channel](MessageChannel.html)\n\n[Point-to-Point Channel](PointToPointChannel.html)\n\n[Publish-Subscr. Channel](PublishSubscribeChannel.html)\n\n[Datatype Channel](DatatypeChannel.html)\n\n[Invalid Message Channel](InvalidMessageChannel.html)\n\n[Dead Letter Channel](DeadLetterChannel.html)\n\n[Guaranteed Delivery](GuaranteedMessaging.html)\n\n[Channel Adapter](ChannelAdapter.html)\n\n[Messaging Bridge](MessagingBridge.html)\n\n[Message Bus](MessageBus.html)\n\n[Systems Mgmt.](SystemManagementIntro.html)\n\n[Control Bus](ControlBus.html)\n\n[Detour](Detour.html)\n\n[Wire Tap](WireTap.html)\n\n[Message History](MessageHistory.html)\n\n[Message Store](MessageStore.html)\n\n[Smart Proxy](SmartProxy.html)\n\n[Test Message](TestMessage.html)\n\n[Channel Purger](ChannelPurger.html)", "znaku_textu": 7389, "slov": 816, "odkazu": 109, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/MessageBroker.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 06:02:37", "sha256": "ddc6d825aa8a17ef30a18ff8178085022c9424432a6082947f9f7983826f79ca", "hloubka": 1, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://creativecommons.org/licenses/by/4.0/", "https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "https://www.architectelevator.com/book", "https://www.cloudstrategybook.com/", "https://www.platformstrategybook.info/"]} {"url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/MessageBus.html", "titulek": "Message Bus - Enterprise Integration Patterns", "h1": "", "popis": "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?", "klicova_slova": "Message Bus,integration, messaging, events, patterns, event-driven, coupling, eai, middleware, application integration, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns", "og:title": "Message Bus - Enterprise Integration Patterns", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/MessageBus.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/MessageBusSolution.gif"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Integration Pattern Language"}], "markdown": "| | Message Bus[Messaging Patterns](index.html) » [Messaging Channels](MessagingChannelsIntro.html) | [Contents](toc.html)[⇐ Prev](MessagingBridge.html)[Next ⇒](MessageConstructionIntro.html) |\n| --- | --- | --- |\n\nAn enterprise contains several existing systems that must be able to share data and operate in a unified manner in response to a set of common business requests.\n\nWhat 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?\n\nStructure the connecting middleware between these applications as a *Message Bus* that enables them to work together using messaging.\n\nA *Message Bus* is a combination of a common data model, a common command set, and a messaging infrastructure to allow different systems to communicate through a shared set of interfaces. This is analogous to a communications bus in a computer system, which serves as the focal point for communication between the CPU, main memory, and peripherals. Just as in the hardware analogy, there are a number of pieces that come together to form the message bus:\n\n- **Common communication infrastructure** — Just as the physical pins and wires of a PCI bus provide a common, well-known physical infrastructure for a PC, a common infrastructure must serve the same purpose in a message bus. Typically, a messaging system is chosen to serve as the physical communications infrastructure, providing a cross-platform, cross-language universal adapter between the applications. The infrastructure may include [*Message Router*](MessageRouter.html) capabilities to facilitate the correct routing of messages from system to system. Another common option is to use [*Publish-Subscribe Channel*](PublishSubscribeChannel.html) s to facilitate sending messages to all receivers.\n- **Adapters** — The different systems must find a way to interface with the message bus. Most commonly, this is done with commercial or custom [*Channel Adapter*](ChannelAdapter.html) s and [*Service Activator*](MessagingAdapter.html) s that can handle things like invoking CICS transactions with the proper parameters, or representing the general data structures flowing on the bus in the specific and particular way they should be represented inside each system. This also requires a [*Canonical Data Model*](CanonicalDataModel.html) that all systems can agree on.\n- **Common Command Structure** — Just like PC architectures have a common set of commands to represent the different operations possible on the physical bus (read bytes from an address, write bytes to an address), there needs to be common commands that are understood by all the participants in the *Message Bus* . [*Command Message*](CommandMessage.html) illustrates how this feature works. Another common implementation for this is the [*Datatype Channel*](DatatypeChannel.html) , where a [*Message Router*](MessageRouter.html) makes an explicit decision as to how to route particular messages (like Purchase Orders) to particular endpoints. It is at the end that the analogy breaks down, since the level of the messages carried on the bus are much more fine-grained than the “read/write” kinds of messages carried on a physical bus.\n\n...\nRead the entire pattern in the book [Enterprise Integration Patterns](/books1.html)\n\n**Related patterns:**\n\n[*Canonical Data Model*](CanonicalDataModel.html), [*Channel Adapter*](ChannelAdapter.html), [*Command Message*](CommandMessage.html), [*Datatype Channel*](DatatypeChannel.html), [*Message Router*](MessageRouter.html), [*Service Activator*](MessagingAdapter.html), [*Publish-Subscribe Channel*](PublishSubscribeChannel.html)\n\n---\n\n## Integration Pattern Language\n\n[Message Construct.](MessageConstructionIntro.html)\n\n[Message](Message.html)\n\n[Command Message](CommandMessage.html)\n\n[Document Message](DocumentMessage.html)\n\n[Event Message](EventMessage.html)\n\n[Request-Reply](RequestReply.html)\n\n[Return Address](ReturnAddress.html)\n\n[Correlation Identifier](CorrelationIdentifier.html)\n\n[Message Sequence](MessageSequence.html)\n\n[Message Expiration](MessageExpiration.html)\n\n[Format Indicator](FormatIndicator.html)\n\n[Message Routing](MessageRoutingIntro.html)\n\n[Pipes-and-Filters](PipesAndFilters.html)\n\n[Message Router](MessageRouter.html)\n\n[Content-based Router](ContentBasedRouter.html)\n\n[Message Filter](Filter.html)\n\n[Dynamic Router](DynamicRouter.html)\n\n[Recipient List](RecipientList.html)\n\n[Splitter](Sequencer.html)\n\n[Aggregator](Aggregator.html)\n\n[Resequencer](Resequencer.html)\n\n[Composed Msg. Processor](DistributionAggregate.html)\n\n[Scatter-Gather](BroadcastAggregate.html)\n\n[Routing Slip](RoutingTable.html)\n\n[Process Manager](ProcessManager.html)\n\n[Message Broker](MessageBroker.html)\n\n[Message\nTransformation](MessageTransformationIntro.html)\n\n[Message Translator](MessageTranslator.html)\n\n[Envelope Wrapper](EnvelopeWrapper.html)\n\n[Content Enricher](DataEnricher.html)\n\n[Content Filter](ContentFilter.html)\n\n[Claim Check](StoreInLibrary.html)\n\n[Normalizer](Normalizer.html)\n\n[Canonical Data Model](CanonicalDataModel.html)\n\n[Messaging Endpoints](MessagingEndpointsIntro.html)\n\n[Message Endpoint](MessageEndpoint.html)\n\n[Messaging Gateway](MessagingGateway.html)\n\n[Messaging Mapper](MessagingMapper.html)\n\n[Transactional Client](TransactionalClient.html)\n\n[Polling Consumer](PollingConsumer.html)\n\n[Event-driven Consumer](EventDrivenConsumer.html)\n\n[Competing Consumers](CompetingConsumers.html)\n\n[Message Dispatcher](MessageDispatcher.html)\n\n[Selective Consumer](MessageSelector.html)\n\n[Durable Subscriber](DurableSubscription.html)\n\n[Idempotent Receiver](IdempotentReceiver.html)\n\n[Service Activator](MessagingAdapter.html)\n\n[Messaging Channels](MessagingChannelsIntro.html)\n\n[Message Channel](MessageChannel.html)\n\n[Point-to-Point Channel](PointToPointChannel.html)\n\n[Publish-Subscr. Channel](PublishSubscribeChannel.html)\n\n[Datatype Channel](DatatypeChannel.html)\n\n[Invalid Message Channel](InvalidMessageChannel.html)\n\n[Dead Letter Channel](DeadLetterChannel.html)\n\n[Guaranteed Delivery](GuaranteedMessaging.html)\n\n[Channel Adapter](ChannelAdapter.html)\n\n[Messaging Bridge](MessagingBridge.html)\n\n[Message Bus](MessageBus.html)\n\n[Systems Mgmt.](SystemManagementIntro.html)\n\n[Control Bus](ControlBus.html)\n\n[Detour](Detour.html)\n\n[Wire Tap](WireTap.html)\n\n[Message History](MessageHistory.html)\n\n[Message Store](MessageStore.html)\n\n[Smart Proxy](SmartProxy.html)\n\n[Test Message](TestMessage.html)\n\n[Channel Purger](ChannelPurger.html)", "znaku_textu": 6406, "slov": 663, "odkazu": 108, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/MessageBus.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 06:02:10", "sha256": "95b205a5f55cf1116fc65a3973f8a6fb623bd7032f6e3434ec0782f634484dc9", "hloubka": 1, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://creativecommons.org/licenses/by/4.0/", "https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "https://www.architectelevator.com/book", "https://www.cloudstrategybook.com/", "https://www.platformstrategybook.info/"]} {"url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/MessageChannel.html", "titulek": "Message Channel - Enterprise Integration Patterns", "h1": "", "popis": "How does one application communicate with another using messaging?", "klicova_slova": "Message Channel,integration, messaging, events, patterns, event-driven, coupling, eai, middleware, application integration, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns", "og:title": "Message Channel - Enterprise Integration Patterns", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/MessageChannel.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/MessageChannelSolution.gif"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Integration Pattern Language"}], "markdown": "| | Message Channel[Messaging Patterns](index.html) » [Messaging Systems](MessagingComponentsIntro.html) | [Contents](toc.html)[⇐ Prev](MessagingComponentsIntro.html)[Next ⇒](Message.html) |\n| --- | --- | --- |\n\nAn enterprise has two separate applications that need to communicate, preferably by using [*Messaging*](Messaging.html).\n\nHow does one application communicate with another using messaging?\n\nConnect the applications using a *Message Channel*, where one application writes information to the channel and the other one reads that information from the channel.\n\nWhen an application has information to communicate, it doesn't just fling the information into the messaging system, it adds the information to a particular *Message Channel*. An application receiving information doesn't just pick it up at random from the messaging system; it retrieves the information from a particular *Message Channel*.\n\nThe application adding info doesn't necessarily know what particular application will end up retrieving the info, but it can be assured that whatever application retrieves the info, that application will be interested in the info. This is because the messaging system has different *Message Channel*s for different types of information the applications want to communicate. When an application sends information, it doesn't randomly add the info to any channel available; it adds the info to a channel whose specific purpose is to communicate that sort of information. Likewise, an application that wants to receive particular information doesn't pull info off some random channel; it selects what channel to get information from based on what type of information it wants.\n\n...\nRead the entire pattern in the book [Enterprise Integration Patterns](/books1.html)\n\n**Related patterns:**\n\n[*Channel Adapter*](ChannelAdapter.html), [*Datatype Channel*](DatatypeChannel.html), [*Invalid Message Channel*](InvalidMessageChannel.html), [*Message Bus*](MessageBus.html), [*Message Endpoint*](MessageEndpoint.html), [*Selective Consumer*](MessageSelector.html), [*Messaging*](Messaging.html), [*Introduction to Messaging Channels*](MessagingChannelsIntro.html), [*Point-to-Point Channel*](PointToPointChannel.html), [*Publish-Subscribe Channel*](PublishSubscribeChannel.html)\n\n---\n\n## Integration Pattern Language\n\n[Message Construct.](MessageConstructionIntro.html)\n\n[Message](Message.html)\n\n[Command Message](CommandMessage.html)\n\n[Document Message](DocumentMessage.html)\n\n[Event Message](EventMessage.html)\n\n[Request-Reply](RequestReply.html)\n\n[Return Address](ReturnAddress.html)\n\n[Correlation Identifier](CorrelationIdentifier.html)\n\n[Message Sequence](MessageSequence.html)\n\n[Message Expiration](MessageExpiration.html)\n\n[Format Indicator](FormatIndicator.html)\n\n[Message Routing](MessageRoutingIntro.html)\n\n[Pipes-and-Filters](PipesAndFilters.html)\n\n[Message Router](MessageRouter.html)\n\n[Content-based Router](ContentBasedRouter.html)\n\n[Message Filter](Filter.html)\n\n[Dynamic Router](DynamicRouter.html)\n\n[Recipient List](RecipientList.html)\n\n[Splitter](Sequencer.html)\n\n[Aggregator](Aggregator.html)\n\n[Resequencer](Resequencer.html)\n\n[Composed Msg. Processor](DistributionAggregate.html)\n\n[Scatter-Gather](BroadcastAggregate.html)\n\n[Routing Slip](RoutingTable.html)\n\n[Process Manager](ProcessManager.html)\n\n[Message Broker](MessageBroker.html)\n\n[Message\nTransformation](MessageTransformationIntro.html)\n\n[Message Translator](MessageTranslator.html)\n\n[Envelope Wrapper](EnvelopeWrapper.html)\n\n[Content Enricher](DataEnricher.html)\n\n[Content Filter](ContentFilter.html)\n\n[Claim Check](StoreInLibrary.html)\n\n[Normalizer](Normalizer.html)\n\n[Canonical Data Model](CanonicalDataModel.html)\n\n[Messaging Endpoints](MessagingEndpointsIntro.html)\n\n[Message Endpoint](MessageEndpoint.html)\n\n[Messaging Gateway](MessagingGateway.html)\n\n[Messaging Mapper](MessagingMapper.html)\n\n[Transactional Client](TransactionalClient.html)\n\n[Polling Consumer](PollingConsumer.html)\n\n[Event-driven Consumer](EventDrivenConsumer.html)\n\n[Competing Consumers](CompetingConsumers.html)\n\n[Message Dispatcher](MessageDispatcher.html)\n\n[Selective Consumer](MessageSelector.html)\n\n[Durable Subscriber](DurableSubscription.html)\n\n[Idempotent Receiver](IdempotentReceiver.html)\n\n[Service Activator](MessagingAdapter.html)\n\n[Messaging Channels](MessagingChannelsIntro.html)\n\n[Message Channel](MessageChannel.html)\n\n[Point-to-Point Channel](PointToPointChannel.html)\n\n[Publish-Subscr. Channel](PublishSubscribeChannel.html)\n\n[Datatype Channel](DatatypeChannel.html)\n\n[Invalid Message Channel](InvalidMessageChannel.html)\n\n[Dead Letter Channel](DeadLetterChannel.html)\n\n[Guaranteed Delivery](GuaranteedMessaging.html)\n\n[Channel Adapter](ChannelAdapter.html)\n\n[Messaging Bridge](MessagingBridge.html)\n\n[Message Bus](MessageBus.html)\n\n[Systems Mgmt.](SystemManagementIntro.html)\n\n[Control Bus](ControlBus.html)\n\n[Detour](Detour.html)\n\n[Wire Tap](WireTap.html)\n\n[Message History](MessageHistory.html)\n\n[Message Store](MessageStore.html)\n\n[Smart Proxy](SmartProxy.html)\n\n[Test Message](TestMessage.html)\n\n[Channel Purger](ChannelPurger.html)", "znaku_textu": 4998, "slov": 431, "odkazu": 108, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/MessageChannel.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 06:01:55", "sha256": "f41fc68d6347d0dc4654778f14f973682dce4ade3dcc4fd4cb99e54bdbbb428f", "hloubka": 1, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://creativecommons.org/licenses/by/4.0/", "https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "https://www.architectelevator.com/book", "https://www.cloudstrategybook.com/", "https://www.platformstrategybook.info/"]} {"url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/MessageConstructionIntro.html", "titulek": "Introduction to Message Construction - Enterprise Integration Patterns", "h1": "", "popis": "In Introduction to Messaging Systems, we discussed Message. When two applications wish to exchange a piece of data, they do so by wrapping it in a message. Whereas a Message Channel cannot transmit raw data per se, it can transmit the data wrapped in a message.", "klicova_slova": "Introduction to Message Construction,integration, messaging, events, patterns, event-driven, coupling, eai, middleware, application integration, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns", "og:title": "Introduction to Message Construction - Enterprise Integration Patterns", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/MessageConstructionIntro.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/eip1_patterns_wide.png"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Integration Pattern Language"}], "markdown": "| | Introduction to Message Construction[Messaging Patterns](index.html) » [Message Construction](MessageConstructionIntro.html) | [Contents](toc.html)[⇐ Prev](MessageBus.html)[Next ⇒](CommandMessage.html) |\n| --- | --- | --- |\n\nIn [*Introduction to Messaging Systems*](MessagingComponentsIntro.html), we discussed [*Message*](Message.html). When two applications wish to exchange a piece of data, they do so by wrapping it in a message. Whereas a [*Message Channel*](MessageChannel.html) cannot transmit raw data per se, it can transmit the data wrapped in a message.\n\nDeciding to create a [*Message*](Message.html) and send it raises several other issues:\n\n**Message intent** — Messages are ultimately just bundles of data, but the sender can have different intentions for what it expects the receiver to do with the message. It can send a [*Command Message*](CommandMessage.html), specifying a function or method on the receiver that the sender wishes to invoke. The sender is telling the receiver what code to run. It can send a [*Document Message*](DocumentMessage.html), enabling the sender to transmit one of its data structures to the receiver. The sender is passing the data to the receiver, but not specifying what the receiver should necessarily do with it. Or it can send an [*Event Message*](EventMessage.html), notifying the receiver of a change in the sender. The sender is not telling the receiver how to react, just providing notification.\n\n**Returning a response** — When an application sends a message, it often expects a response confirming that the message has been processed and providing the result. This is a [*Request-Reply*](RequestReply.html) scenario. The request is usually a [*Command Message*](CommandMessage.html), and the reply is a [*Document Message*](DocumentMessage.html) containing a result value or an exception. The requestor should specify a [*Return Address*](ReturnAddress.html) in the request to tell the replier what channel to use to transmit the reply. The requestor may have multiple requests in process, so the reply should contain a [*Correlation Identifier*](CorrelationIdentifier.html) that specifies which request this reply corresponds to. [[JMS11, pp.27-28](http://java.sun.com/products/jms/docs.html)]\n\nThere are two common [*Request-Reply*](RequestReply.html) scenarios worth noting that both involve a [*Command Message*](CommandMessage.html) request and a corresponding [*Document Message*](DocumentMessage.html) reply. In the first scenario, *Messaging RPC*, the requestor not only wants to invoke a function on the replier, but also wants the return value from the function. This is how applications perform an RPC (Remote Procedure Call) using [*Messaging*](Messaging.html). In the other scenario, *Messaging Query*, the requestor is performing a query that the replier will execute and return the results in the reply. This is how applications use messaging to perform a query remotely.\n\n**Huge amounts of data** — Sometimes applications want to transfer a really large data structure, one that may not fit comfortably in a single message. In this case, break the data into more managable chunks and send them as a [*Message Sequence*](MessageSequence.html). The chunks have to be sent as a sequence, and not just a bunch of messages, so that the receiver can reconstruct the original data structure.\n\n**Slow messages** — A concern with messaging is that the sender often does not know how long it will take for the receiver to receive the message. Yet the message contents may be time-sensitive, such that if the message isn’t received by a deadline, it should just be ignored and discarded. In this situation, the sender can use [*Message Expiration*](MessageExpiration.html) to specify an expiration date. If the messaging system cannot deliver a message by its expiration, it should discard the message. If a receiver gets a message after its expiration, it should discard the message.\n\nSo it’s not enough to decide to use a [*Message*](Message.html); anytime data needs to be transferred, it will be done through a message. This chapter will explain the other decisions that go into making messages work.\n\n## Integration Pattern Language\n\n[Message Construct.](MessageConstructionIntro.html)\n\n[Message](Message.html)\n\n[Command Message](CommandMessage.html)\n\n[Document Message](DocumentMessage.html)\n\n[Event Message](EventMessage.html)\n\n[Request-Reply](RequestReply.html)\n\n[Return Address](ReturnAddress.html)\n\n[Correlation Identifier](CorrelationIdentifier.html)\n\n[Message Sequence](MessageSequence.html)\n\n[Message Expiration](MessageExpiration.html)\n\n[Format Indicator](FormatIndicator.html)\n\n[Message Routing](MessageRoutingIntro.html)\n\n[Pipes-and-Filters](PipesAndFilters.html)\n\n[Message Router](MessageRouter.html)\n\n[Content-based Router](ContentBasedRouter.html)\n\n[Message Filter](Filter.html)\n\n[Dynamic Router](DynamicRouter.html)\n\n[Recipient List](RecipientList.html)\n\n[Splitter](Sequencer.html)\n\n[Aggregator](Aggregator.html)\n\n[Resequencer](Resequencer.html)\n\n[Composed Msg. Processor](DistributionAggregate.html)\n\n[Scatter-Gather](BroadcastAggregate.html)\n\n[Routing Slip](RoutingTable.html)\n\n[Process Manager](ProcessManager.html)\n\n[Message Broker](MessageBroker.html)\n\n[Message\nTransformation](MessageTransformationIntro.html)\n\n[Message Translator](MessageTranslator.html)\n\n[Envelope Wrapper](EnvelopeWrapper.html)\n\n[Content Enricher](DataEnricher.html)\n\n[Content Filter](ContentFilter.html)\n\n[Claim Check](StoreInLibrary.html)\n\n[Normalizer](Normalizer.html)\n\n[Canonical Data Model](CanonicalDataModel.html)\n\n[Messaging Endpoints](MessagingEndpointsIntro.html)\n\n[Message Endpoint](MessageEndpoint.html)\n\n[Messaging Gateway](MessagingGateway.html)\n\n[Messaging Mapper](MessagingMapper.html)\n\n[Transactional Client](TransactionalClient.html)\n\n[Polling Consumer](PollingConsumer.html)\n\n[Event-driven Consumer](EventDrivenConsumer.html)\n\n[Competing Consumers](CompetingConsumers.html)\n\n[Message Dispatcher](MessageDispatcher.html)\n\n[Selective Consumer](MessageSelector.html)\n\n[Durable Subscriber](DurableSubscription.html)\n\n[Idempotent Receiver](IdempotentReceiver.html)\n\n[Service Activator](MessagingAdapter.html)\n\n[Messaging Channels](MessagingChannelsIntro.html)\n\n[Message Channel](MessageChannel.html)\n\n[Point-to-Point Channel](PointToPointChannel.html)\n\n[Publish-Subscr. Channel](PublishSubscribeChannel.html)\n\n[Datatype Channel](DatatypeChannel.html)\n\n[Invalid Message Channel](InvalidMessageChannel.html)\n\n[Dead Letter Channel](DeadLetterChannel.html)\n\n[Guaranteed Delivery](GuaranteedMessaging.html)\n\n[Channel Adapter](ChannelAdapter.html)\n\n[Messaging Bridge](MessagingBridge.html)\n\n[Message Bus](MessageBus.html)\n\n[Systems Mgmt.](SystemManagementIntro.html)\n\n[Control Bus](ControlBus.html)\n\n[Detour](Detour.html)\n\n[Wire Tap](WireTap.html)\n\n[Message History](MessageHistory.html)\n\n[Message Store](MessageStore.html)\n\n[Smart Proxy](SmartProxy.html)\n\n[Test Message](TestMessage.html)\n\n[Channel Purger](ChannelPurger.html)", "znaku_textu": 6882, "slov": 774, "odkazu": 108, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/MessageConstructionIntro.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 06:02:11", "sha256": "6e406f30907047d22a98c1bf5075272eeeea25db2dd9cd1428b0854c2d71249c", "hloubka": 1, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://java.sun.com/products/jms/docs.html", "https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "https://www.architectelevator.com/book", "https://www.cloudstrategybook.com/", "https://www.platformstrategybook.info/"]} {"url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/MessageDispatcher.html", "titulek": "Message Dispatcher - Enterprise Integration Patterns", "h1": "", "popis": "How can multiple consumers on a single channel coordinate their message processing?", "klicova_slova": "Message Dispatcher,integration, messaging, events, patterns, event-driven, coupling, eai, middleware, application integration, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns", "og:title": "Message Dispatcher - Enterprise Integration Patterns", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/MessageDispatcher.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/MessageDispatcher.gif"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Integration Pattern Language"}], "markdown": "Messaging Patterns\n\n[Messaging Patterns](index.html)\n\n- [Integration Styles](IntegrationStylesIntro.html)\n- [Messaging Systems](MessagingComponentsIntro.html)\n- [Messaging Channels](MessagingChannelsIntro.html)\n- [Message Construction](MessageConstructionIntro.html)\n- [Interlude: Simple Messaging](SimpleMessagingIntro.html)\n- [Message Routing](MessageRoutingIntro.html)\n- [Message Transformation](MessageTransformationIntro.html)\n- [Interlude: Composed Messaging](ComposedMessagingExample.html)\n- [Messaging Endpoints](MessagingEndpointsIntro.html)\n- [System Management](SystemManagementIntro.html)\n- Interlude: Systems Management Example\n- Integration Patterns in Practice\n- Concluding Remarks\n- Appendices\n\n| | Message Dispatcher[Messaging Patterns](index.html) » [Messaging Endpoints](MessagingEndpointsIntro.html) | [Contents](toc.html)[⇐ Prev](CompetingConsumers.html)[Next ⇒](MessageSelector.html) |\n| --- | --- | --- |\n\nAn application is using [*Messaging*](Messaging.html). The application needs multiple consumers on a single [*Message Channel*](MessageChannel.html) to work in a coordinated fashion.\n\nHow can multiple consumers on a single channel coordinate their message processing?\n\nCreate a *Message Dispatcher* on a channel that will consume messages from a channel and distribute them to performers.\n\nA *Message Dispatcher* consists of two parts:\n\n1. **Dispatcher** – The object that consumes messages from a channel and distributes each message to a performer.\n2. **Performer** – The object that is given the message by the dispatcher and processes it.\n\nWhen a *Message Dispatcher* receives a message, it obtains a performer and dispatches the message to the performer to process it. A performer can delegate to the rest of its application to help process its message. The performer could be newly created by the dispatcher, or could be selected from a pool of available performers. Each performer can run in its own thread to process messages concurrently. All performers may be appropriate for all messages, or the dispatcher may match a message to a specialized performer based on properties of the message.\n\n*Message Dispatcher Sequence*\n\n...\nRead the entire pattern in the book [Enterprise Integration Patterns](/books1.html)\n\n**Related patterns:**\n\n[*Competing Consumers*](CompetingConsumers.html), [*Datatype Channel*](DatatypeChannel.html), [*Remote Procedure Invocation*](EncapsulatedSynchronousIntegration.html), [*Event-Driven Consumer*](EventDrivenConsumer.html), [*Message Channel*](MessageChannel.html), [*Selective Consumer*](MessageSelector.html), [*Messaging*](Messaging.html), [*Point-to-Point Channel*](PointToPointChannel.html), [*Polling Consumer*](PollingConsumer.html), [*Publish-Subscribe Channel*](PublishSubscribeChannel.html), [*Claim Check*](StoreInLibrary.html), [*Transactional Client*](TransactionalClient.html)\n\n---\n\n## Integration Pattern Language\n\n[Message Construct.](MessageConstructionIntro.html)\n\n[Message](Message.html)\n\n[Command Message](CommandMessage.html)\n\n[Document Message](DocumentMessage.html)\n\n[Event Message](EventMessage.html)\n\n[Request-Reply](RequestReply.html)\n\n[Return Address](ReturnAddress.html)\n\n[Correlation Identifier](CorrelationIdentifier.html)\n\n[Message Sequence](MessageSequence.html)\n\n[Message Expiration](MessageExpiration.html)\n\n[Format Indicator](FormatIndicator.html)\n\n[Message Routing](MessageRoutingIntro.html)\n\n[Pipes-and-Filters](PipesAndFilters.html)\n\n[Message Router](MessageRouter.html)\n\n[Content-based Router](ContentBasedRouter.html)\n\n[Message Filter](Filter.html)\n\n[Dynamic Router](DynamicRouter.html)\n\n[Recipient List](RecipientList.html)\n\n[Splitter](Sequencer.html)\n\n[Aggregator](Aggregator.html)\n\n[Resequencer](Resequencer.html)\n\n[Composed Msg. Processor](DistributionAggregate.html)\n\n[Scatter-Gather](BroadcastAggregate.html)\n\n[Routing Slip](RoutingTable.html)\n\n[Process Manager](ProcessManager.html)\n\n[Message Broker](MessageBroker.html)\n\n[Message\nTransformation](MessageTransformationIntro.html)\n\n[Message Translator](MessageTranslator.html)\n\n[Envelope Wrapper](EnvelopeWrapper.html)\n\n[Content Enricher](DataEnricher.html)\n\n[Content Filter](ContentFilter.html)\n\n[Claim Check](StoreInLibrary.html)\n\n[Normalizer](Normalizer.html)\n\n[Canonical Data Model](CanonicalDataModel.html)\n\n[Messaging Endpoints](MessagingEndpointsIntro.html)\n\n[Message Endpoint](MessageEndpoint.html)\n\n[Messaging Gateway](MessagingGateway.html)\n\n[Messaging Mapper](MessagingMapper.html)\n\n[Transactional Client](TransactionalClient.html)\n\n[Polling Consumer](PollingConsumer.html)\n\n[Event-driven Consumer](EventDrivenConsumer.html)\n\n[Competing Consumers](CompetingConsumers.html)\n\n[Message Dispatcher](MessageDispatcher.html)\n\n[Selective Consumer](MessageSelector.html)\n\n[Durable Subscriber](DurableSubscription.html)\n\n[Idempotent Receiver](IdempotentReceiver.html)\n\n[Service Activator](MessagingAdapter.html)\n\n[Messaging Channels](MessagingChannelsIntro.html)\n\n[Message Channel](MessageChannel.html)\n\n[Point-to-Point Channel](PointToPointChannel.html)\n\n[Publish-Subscr. Channel](PublishSubscribeChannel.html)\n\n[Datatype Channel](DatatypeChannel.html)\n\n[Invalid Message Channel](InvalidMessageChannel.html)\n\n[Dead Letter Channel](DeadLetterChannel.html)\n\n[Guaranteed Delivery](GuaranteedMessaging.html)\n\n[Channel Adapter](ChannelAdapter.html)\n\n[Messaging Bridge](MessagingBridge.html)\n\n[Message Bus](MessageBus.html)\n\n[Systems Mgmt.](SystemManagementIntro.html)\n\n[Control Bus](ControlBus.html)\n\n[Detour](Detour.html)\n\n[Wire Tap](WireTap.html)\n\n[Message History](MessageHistory.html)\n\n[Message Store](MessageStore.html)\n\n[Smart Proxy](SmartProxy.html)\n\n[Test Message](TestMessage.html)\n\n[Channel Purger](ChannelPurger.html)\n\n- » [Read the latest in My Blog](/ramblings)\n- » [Get more insights from My Articles](/articles.html)\n- » [See me live in my Upcoming Talks](/talks)\n\nYou can reuse the following elements under the [Creative Commons Attribution](http://creativecommons.org/licenses/by/4.0/) license: pattern icon, pattern name, problem and solution statements (in bold), and the sketch. Other portions are protected by copyright.\n\n[Enterprise Integration Patterns](https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20)\nThe de-facto language for designing asynchronous, distributed systems. Over 100,000 copies sold.\n\n[The Software Architect Elevator](https://www.architectelevator.com/book)\n\n Rethink the role of architects as a connecting element across organizational layers. Acquire the technical, communication, and organizational skills to succeed in this new role.\n\n[Cloud Strategy](https://www.cloudstrategybook.com)\n\n Make your cloud migration a success by translating high-level goals into conscious decisions with well-understood trade-offs.\n\n[Platform Strategy](https://www.platformstrategybook.info)\n\n Platforms can boost innovation through harmonization, but they aren't easy to build. Learn from over a decade of designing and rolling out IT platforms.", "znaku_textu": 6802, "slov": 590, "odkazu": 108, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/MessageDispatcher.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 06:02:57", "sha256": "8c60016066a0c10b5757e12e9fd45f5c1db6a226bdfd112338d5e6e96be0a136", "hloubka": 1, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://creativecommons.org/licenses/by/4.0/", "https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "https://www.architectelevator.com/book", "https://www.cloudstrategybook.com/", "https://www.platformstrategybook.info/"]} {"url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/MessageEndpoint.html", "titulek": "Message Endpoint - Enterprise Integration Patterns", "h1": "", "popis": "How does an application connect to a messaging channel to send and receive messages?", "klicova_slova": "Message Endpoint,integration, messaging, events, patterns, event-driven, coupling, eai, middleware, application integration, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns", "og:title": "Message Endpoint - Enterprise Integration Patterns", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/MessageEndpoint.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/MessageEndpointSolution.gif"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Integration Pattern Language"}], "markdown": "Messaging Patterns\n\n[Messaging Patterns](index.html)\n\n- [Integration Styles](IntegrationStylesIntro.html)\n- [Messaging Systems](MessagingComponentsIntro.html)\n- [Messaging Channels](MessagingChannelsIntro.html)\n- [Message Construction](MessageConstructionIntro.html)\n- [Interlude: Simple Messaging](SimpleMessagingIntro.html)\n- [Message Routing](MessageRoutingIntro.html)\n- [Message Transformation](MessageTransformationIntro.html)\n- [Interlude: Composed Messaging](ComposedMessagingExample.html)\n- [Messaging Endpoints](MessagingEndpointsIntro.html)\n- [System Management](SystemManagementIntro.html)\n- Interlude: Systems Management Example\n- Integration Patterns in Practice\n- Concluding Remarks\n- Appendices\n\n| | Message Endpoint[Messaging Patterns](index.html) » [Messaging Systems](MessagingComponentsIntro.html) | [Contents](toc.html)[⇐ Prev](MessageTranslator.html)[Next ⇒](MessagingChannelsIntro.html) |\n| --- | --- | --- |\n\nApplications are communicating by sending [*Message*](Message.html)s to each other via [*Message Channel*](MessageChannel.html)s.\n\nHow does an application connect to a messaging channel to send and receive messages?\n\nConnect an application to a messaging channel using a *Message Endpoint*, a client of the messaging system that the application can then use to send or receive messages.\n\n*Message Endpoint* code is custom to both the application and the messaging system’s client API. The rest of the application knows little about message formats, messaging channels, or any of the other details of communicating with other applications via messaging. It just knows that it has a request or piece of data to send to another application, or is expecting those from another application. It is the messaging endpoint code that takes that command or data, makes it into a message, and sends it on a particular messaging channel. It is the endpoint that receives a message, extracts the contents, and gives them to the application in a meaningful way.\n\n...\nRead the entire pattern in the book [Enterprise Integration Patterns](/books1.html)\n\n**Related patterns:**\n\n[*Channel Adapter*](ChannelAdapter.html), [*Competing Consumers*](CompetingConsumers.html), [*Durable Subscriber*](DurableSubscription.html), [*Event-Driven Consumer*](EventDrivenConsumer.html), [*Idempotent Receiver*](IdempotentReceiver.html), [*Message*](Message.html), [*Message Channel*](MessageChannel.html), [*Message Dispatcher*](MessageDispatcher.html), [*Selective Consumer*](MessageSelector.html), [*Service Activator*](MessagingAdapter.html), [*Messaging Gateway*](MessagingGateway.html), [*Messaging Mapper*](MessagingMapper.html), [*Polling Consumer*](PollingConsumer.html), [*Transactional Client*](TransactionalClient.html)\n\n---\n\n## Integration Pattern Language\n\n[Message Construct.](MessageConstructionIntro.html)\n\n[Message](Message.html)\n\n[Command Message](CommandMessage.html)\n\n[Document Message](DocumentMessage.html)\n\n[Event Message](EventMessage.html)\n\n[Request-Reply](RequestReply.html)\n\n[Return Address](ReturnAddress.html)\n\n[Correlation Identifier](CorrelationIdentifier.html)\n\n[Message Sequence](MessageSequence.html)\n\n[Message Expiration](MessageExpiration.html)\n\n[Format Indicator](FormatIndicator.html)\n\n[Message Routing](MessageRoutingIntro.html)\n\n[Pipes-and-Filters](PipesAndFilters.html)\n\n[Message Router](MessageRouter.html)\n\n[Content-based Router](ContentBasedRouter.html)\n\n[Message Filter](Filter.html)\n\n[Dynamic Router](DynamicRouter.html)\n\n[Recipient List](RecipientList.html)\n\n[Splitter](Sequencer.html)\n\n[Aggregator](Aggregator.html)\n\n[Resequencer](Resequencer.html)\n\n[Composed Msg. Processor](DistributionAggregate.html)\n\n[Scatter-Gather](BroadcastAggregate.html)\n\n[Routing Slip](RoutingTable.html)\n\n[Process Manager](ProcessManager.html)\n\n[Message Broker](MessageBroker.html)\n\n[Message\nTransformation](MessageTransformationIntro.html)\n\n[Message Translator](MessageTranslator.html)\n\n[Envelope Wrapper](EnvelopeWrapper.html)\n\n[Content Enricher](DataEnricher.html)\n\n[Content Filter](ContentFilter.html)\n\n[Claim Check](StoreInLibrary.html)\n\n[Normalizer](Normalizer.html)\n\n[Canonical Data Model](CanonicalDataModel.html)\n\n[Messaging Endpoints](MessagingEndpointsIntro.html)\n\n[Message Endpoint](MessageEndpoint.html)\n\n[Messaging Gateway](MessagingGateway.html)\n\n[Messaging Mapper](MessagingMapper.html)\n\n[Transactional Client](TransactionalClient.html)\n\n[Polling Consumer](PollingConsumer.html)\n\n[Event-driven Consumer](EventDrivenConsumer.html)\n\n[Competing Consumers](CompetingConsumers.html)\n\n[Message Dispatcher](MessageDispatcher.html)\n\n[Selective Consumer](MessageSelector.html)\n\n[Durable Subscriber](DurableSubscription.html)\n\n[Idempotent Receiver](IdempotentReceiver.html)\n\n[Service Activator](MessagingAdapter.html)\n\n[Messaging Channels](MessagingChannelsIntro.html)\n\n[Message Channel](MessageChannel.html)\n\n[Point-to-Point Channel](PointToPointChannel.html)\n\n[Publish-Subscr. Channel](PublishSubscribeChannel.html)\n\n[Datatype Channel](DatatypeChannel.html)\n\n[Invalid Message Channel](InvalidMessageChannel.html)\n\n[Dead Letter Channel](DeadLetterChannel.html)\n\n[Guaranteed Delivery](GuaranteedMessaging.html)\n\n[Channel Adapter](ChannelAdapter.html)\n\n[Messaging Bridge](MessagingBridge.html)\n\n[Message Bus](MessageBus.html)\n\n[Systems Mgmt.](SystemManagementIntro.html)\n\n[Control Bus](ControlBus.html)\n\n[Detour](Detour.html)\n\n[Wire Tap](WireTap.html)\n\n[Message History](MessageHistory.html)\n\n[Message Store](MessageStore.html)\n\n[Smart Proxy](SmartProxy.html)\n\n[Test Message](TestMessage.html)\n\n[Channel Purger](ChannelPurger.html)\n\n- » [Read the latest in My Blog](/ramblings)\n- » [Get more insights from My Articles](/articles.html)\n- » [See me live in my Upcoming Talks](/talks)\n\nYou can reuse the following elements under the [Creative Commons Attribution](http://creativecommons.org/licenses/by/4.0/) license: pattern icon, pattern name, problem and solution statements (in bold), and the sketch. Other portions are protected by copyright.\n\n[Enterprise Integration Patterns](https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20)\nThe de-facto language for designing asynchronous, distributed systems. Over 100,000 copies sold.\n\n[The Software Architect Elevator](https://www.architectelevator.com/book)\n\n Rethink the role of architects as a connecting element across organizational layers. Acquire the technical, communication, and organizational skills to succeed in this new role.\n\n[Cloud Strategy](https://www.cloudstrategybook.com)\n\n Make your cloud migration a success by translating high-level goals into conscious decisions with well-understood trade-offs.\n\n[Platform Strategy](https://www.platformstrategybook.info)\n\n Platforms can boost innovation through harmonization, but they aren't easy to build. Learn from over a decade of designing and rolling out IT platforms.", "znaku_textu": 6687, "slov": 571, "odkazu": 108, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/MessageEndpoint.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 06:02:00", "sha256": "2c9380b85e3fdaaac9b47e713e209aab5795c47d05fb319ca0bc80eb59efbf3c", "hloubka": 1, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://creativecommons.org/licenses/by/4.0/", "https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "https://www.architectelevator.com/book", "https://www.cloudstrategybook.com/", "https://www.platformstrategybook.info/"]} {"url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/MessageExpiration.html", "titulek": "Message Expiration - Enterprise Integration Patterns", "h1": "", "popis": "How can a sender indicate when a message should be considered stale and thus shouldn’t be processed?", "klicova_slova": "Message Expiration,integration, messaging, events, patterns, event-driven, coupling, eai, middleware, application integration, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns", "og:title": "Message Expiration - Enterprise Integration Patterns", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/MessageExpiration.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/MessageExpirationSolution.gif"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Example: Azure Service BusNEW"}, {"uroven": 2, "text": "Example: Amazon EventBridgeNEW"}, {"uroven": 2, "text": "Example: Google Cloud PubSubNEW"}, {"uroven": 2, "text": "Integration Pattern Language"}], "markdown": "| | Message Expiration[Messaging Patterns](index.html) » [Message Construction](MessageConstructionIntro.html) | [Contents](toc.html)[⇐ Prev](MessageSequence.html)[Next ⇒](FormatIndicator.html) |\n| --- | --- | --- |\n\nMy application is using [*Messaging*](Messaging.html). If a [*Message*](Message.html)’s data or request is not received by a certain time, it is useless and should be ignored.\n\nHow can a sender indicate when a message should be considered stale and thus shouldn’t be processed?\n\nSet the *Message Expiration* to specify a time limit how long the message is viable.\n\nOnce the time for which a message is viable passes, and the message still has not been consumed, then the message will expire. The messaging system’s consumers will ignore an expired message; they treat the message as if it where never sent in the first place. Most messaging system implementations reroute expired messages to the [*Dead Letter Channel*](DeadLetterChannel.html), while others simply discard expired messages; this may be configurable.\n\nA *Message Expiration* is like the expiration date on a carton of milk—after that date, you’re not supposed to drink the milk. If the expiration date passes while the milk is on the grocery store shelf, the grocer is supposed to pull the milk off the shelf and not sell it. If you end up with a carton on milk that expires, you’re supposed to pour it out. Likewise, when a message expires, the messaging system should no longer deliver it. If a receiver nevertheless receives a message but cannot process it before the expiration, the receiver should throw away the message.\n\n...\nRead the entire pattern in the book [Enterprise Integration Patterns](/books1.html)\n\n## Example: Azure Service Bus[NEW](/ramblings/eip1_examples_updated.html)\n\n[Azure Service Bus](https://azure.microsoft.com/en-au/products/service-bus/) implements *Message Expiration* [both at the entity and the message level](https://learn.microsoft.com/en-us/azure/service-bus-messaging/message-expiration). Messages expire at the earliest of the *Message Expiration* set in the message or the entity, e.g. the queue or topic. Expired messages are sent to a [*Dead Letter Channel*](DeadLetterChannel.html) if one is specified. Messages that are locked for delivery (see [*Transactional Client*](TransactionalClient.html)) won't expire as long as they are locked.\n\n## Example: Amazon EventBridge[NEW](/ramblings/eip1_examples_updated.html)\n\n[Amazon EventBridge](https://aws.amazon.com/eventbridge/) uses a built-in *Message Expiration* that can [trigger on elapsed time or the number of failed delivery attempts](https://docs.aws.amazon.com/eventbridge/latest/userguide/eb-rule-dlq.html), whichever comes first. The default values are 24 hours and 185 retries, but can be customized in the console or via the command-line by using the RetryPolicy setting of the EventBridge target:\n\n```\n\"RetryPolicy\": {\n \"MaximumRetryAttempts\": integer,\n \"MaximumEventAgeInSeconds\": integer\n }\n```\n\nAsynchronous targets like SQS, SNS, or CloudWatch logs rarely trigger the *Message Expiration* because they can consume messages at the same rate as they arrive on the event bus. However, *Message Expiration* is an important setting when using rate-limited targets like [API Destinations](https://docs.aws.amazon.com/eventbridge/latest/userguide/eb-api-destinations.html) (HTTP calls).\n\n## Example: Google Cloud PubSub[NEW](/ramblings/eip1_examples_updated.html)\n\n[*Publish-Subscribe Channel*](PublishSubscribeChannel.html)s generally have longer *Message Expiration* as a new subscriber might be interested in messages that have already been consumed by existing subscribers. [Google Cloud PubSub](https://cloud.google.com/pubsub/) includes a message_retention_duration setting for both topics and subscriptions (see [*Publish-Subscribe Channel*](PublishSubscribeChannel.html) for an explanation of topics and subscriptions) that allows subscriptions to [replay messages that predate the subscription](https://cloud.google.com/pubsub/docs/replay-overview), allowing subscriptions to act as [*Durable Subscriber*](DurableSubscription.html)s. The maximum setting is a generous 31 days, but you pay for storage.\n\n**Related patterns:**\n\n[*Dead Letter Channel*](DeadLetterChannel.html), [*Durable Subscriber*](DurableSubscription.html), [*Guaranteed Delivery*](GuaranteedMessaging.html), [*Invalid Message Channel*](InvalidMessageChannel.html), [*Message*](Message.html), [*Messaging*](Messaging.html), [*Publish-Subscribe Channel*](PublishSubscribeChannel.html), [*Request-Reply*](RequestReply.html), [*Transactional Client*](TransactionalClient.html)\n\n---\n\n## Integration Pattern Language\n\n[Message Construct.](MessageConstructionIntro.html)\n\n[Message](Message.html)\n\n[Command Message](CommandMessage.html)\n\n[Document Message](DocumentMessage.html)\n\n[Event Message](EventMessage.html)\n\n[Request-Reply](RequestReply.html)\n\n[Return Address](ReturnAddress.html)\n\n[Correlation Identifier](CorrelationIdentifier.html)\n\n[Message Sequence](MessageSequence.html)\n\n[Message Expiration](MessageExpiration.html)\n\n[Format Indicator](FormatIndicator.html)\n\n[Message Routing](MessageRoutingIntro.html)\n\n[Pipes-and-Filters](PipesAndFilters.html)\n\n[Message Router](MessageRouter.html)\n\n[Content-based Router](ContentBasedRouter.html)\n\n[Message Filter](Filter.html)\n\n[Dynamic Router](DynamicRouter.html)\n\n[Recipient List](RecipientList.html)\n\n[Splitter](Sequencer.html)\n\n[Aggregator](Aggregator.html)\n\n[Resequencer](Resequencer.html)\n\n[Composed Msg. Processor](DistributionAggregate.html)\n\n[Scatter-Gather](BroadcastAggregate.html)\n\n[Routing Slip](RoutingTable.html)\n\n[Process Manager](ProcessManager.html)\n\n[Message Broker](MessageBroker.html)\n\n[Message\nTransformation](MessageTransformationIntro.html)\n\n[Message Translator](MessageTranslator.html)\n\n[Envelope Wrapper](EnvelopeWrapper.html)\n\n[Content Enricher](DataEnricher.html)\n\n[Content Filter](ContentFilter.html)\n\n[Claim Check](StoreInLibrary.html)\n\n[Normalizer](Normalizer.html)\n\n[Canonical Data Model](CanonicalDataModel.html)\n\n[Messaging Endpoints](MessagingEndpointsIntro.html)\n\n[Message Endpoint](MessageEndpoint.html)\n\n[Messaging Gateway](MessagingGateway.html)\n\n[Messaging Mapper](MessagingMapper.html)\n\n[Transactional Client](TransactionalClient.html)\n\n[Polling Consumer](PollingConsumer.html)\n\n[Event-driven Consumer](EventDrivenConsumer.html)\n\n[Competing Consumers](CompetingConsumers.html)\n\n[Message Dispatcher](MessageDispatcher.html)\n\n[Selective Consumer](MessageSelector.html)\n\n[Durable Subscriber](DurableSubscription.html)\n\n[Idempotent Receiver](IdempotentReceiver.html)\n\n[Service Activator](MessagingAdapter.html)\n\n[Messaging Channels](MessagingChannelsIntro.html)\n\n[Message Channel](MessageChannel.html)\n\n[Point-to-Point Channel](PointToPointChannel.html)\n\n[Publish-Subscr. Channel](PublishSubscribeChannel.html)\n\n[Datatype Channel](DatatypeChannel.html)\n\n[Invalid Message Channel](InvalidMessageChannel.html)\n\n[Dead Letter Channel](DeadLetterChannel.html)\n\n[Guaranteed Delivery](GuaranteedMessaging.html)\n\n[Channel Adapter](ChannelAdapter.html)\n\n[Messaging Bridge](MessagingBridge.html)\n\n[Message Bus](MessageBus.html)\n\n[Systems Mgmt.](SystemManagementIntro.html)\n\n[Control Bus](ControlBus.html)\n\n[Detour](Detour.html)\n\n[Wire Tap](WireTap.html)\n\n[Message History](MessageHistory.html)\n\n[Message Store](MessageStore.html)\n\n[Smart Proxy](SmartProxy.html)\n\n[Test Message](TestMessage.html)\n\n[Channel Purger](ChannelPurger.html)", "znaku_textu": 7322, "slov": 715, "odkazu": 116, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/MessageExpiration.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 06:02:19", "sha256": "9522e7c0d36b461b363796225d7fc9cef2609467e252c9ac17edc1d2354a98ee", "hloubka": 1, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://azure.microsoft.com/en-au/products/service-bus/", "https://learn.microsoft.com/en-us/azure/service-bus-messaging/message-expiration", "https://aws.amazon.com/eventbridge/", "https://docs.aws.amazon.com/eventbridge/latest/userguide/eb-rule-dlq.html", "https://docs.aws.amazon.com/eventbridge/latest/userguide/eb-api-destinations.html", "https://cloud.google.com/pubsub/", "https://cloud.google.com/pubsub/docs/replay-overview", "http://creativecommons.org/licenses/by/4.0/", "https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "https://www.architectelevator.com/book", "https://www.cloudstrategybook.com/", "https://www.platformstrategybook.info/"]} {"url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/MessageHistory.html", "titulek": "Message History - Enterprise Integration Patterns", "h1": "", "popis": "How can we effectively analyze and debug the flow of messages in a loosely coupled system?", "klicova_slova": "Message History,integration, messaging, events, patterns, event-driven, coupling, eai, middleware, application integration, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns", "og:title": "Message History - Enterprise Integration Patterns", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/MessageHistory.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/MessageHistory.gif"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Integration Pattern Language"}], "markdown": "| | Message History[Messaging Patterns](index.html) » [System Management](SystemManagementIntro.html) | [Contents](toc.html)[⇐ Prev](WireTap.html)[Next ⇒](MessageStore.html) |\n| --- | --- | --- |\n\nOne of key benefits of a message-based systems is the loose coupling between participants; the message sender and recipient make no (or few) assumptions about each other's identity. If a message recipient retrieves a message from a message channel, it generally does not know nor care which application put the message on the channel. The message is by definition self-contained and is not associated with a specific sender. This is one of the architectural strengths of message-based systems.\n\nHowever, the same property can make debugging and analyzing dependencies very difficult. If we are not sure where a message goes, how can we assess the impact of a change in the message format? Likewise, if we don't know which application published a message it is difficult to correct a problem with the message.\n\nHow can we effectively analyze and debug the flow of messages in a loosely coupled system?\n\nTherefore, attach a *Message History* to the message. The *Message History* is a list of all applications that the message passed through since its origination.\n\nThe *Message History* maintains a list of all components that the message passed through. Every component that processes the message (including the originator) adds one entry to the list. The *Message History* should be part of the message header because it contains system-specific control information. Keeping this information in the header separates it from the message body that contains application specific data.\n\nNot every message that a component publishes is the result of a single message. For example,an [*Aggregator*](Aggregator.html) publishes a single message that carries information collected from multiple messages, each of which could have its own history. If we want to represent this scenario in the *Message History*, we have two choices. If we want to track the complete history we can enhance the *Message History* to be stored as a hierarchical tree structure. Because of the recursive nature of a tree structure we can store multiple message histories under a single 'node'. Alternatively, we can keep a simple list and only keep the history of one incoming message. This can work well if one incoming message is more important to the result than other, auxiliary messages.\n\n...\nRead the entire pattern in the book [Enterprise Integration Patterns](/books1.html)\n\n**Related patterns:**\n\n[*Aggregator*](Aggregator.html), [*Control Bus*](ControlBus.html), [*Message Router*](MessageRouter.html), [*Message Store*](MessageStore.html), [*Process Manager*](ProcessManager.html), [*Publish-Subscribe Channel*](PublishSubscribeChannel.html), [*Recipient List*](RecipientList.html)\n\n---\n\n## Integration Pattern Language\n\n[Message Construct.](MessageConstructionIntro.html)\n\n[Message](Message.html)\n\n[Command Message](CommandMessage.html)\n\n[Document Message](DocumentMessage.html)\n\n[Event Message](EventMessage.html)\n\n[Request-Reply](RequestReply.html)\n\n[Return Address](ReturnAddress.html)\n\n[Correlation Identifier](CorrelationIdentifier.html)\n\n[Message Sequence](MessageSequence.html)\n\n[Message Expiration](MessageExpiration.html)\n\n[Format Indicator](FormatIndicator.html)\n\n[Message Routing](MessageRoutingIntro.html)\n\n[Pipes-and-Filters](PipesAndFilters.html)\n\n[Message Router](MessageRouter.html)\n\n[Content-based Router](ContentBasedRouter.html)\n\n[Message Filter](Filter.html)\n\n[Dynamic Router](DynamicRouter.html)\n\n[Recipient List](RecipientList.html)\n\n[Splitter](Sequencer.html)\n\n[Aggregator](Aggregator.html)\n\n[Resequencer](Resequencer.html)\n\n[Composed Msg. Processor](DistributionAggregate.html)\n\n[Scatter-Gather](BroadcastAggregate.html)\n\n[Routing Slip](RoutingTable.html)\n\n[Process Manager](ProcessManager.html)\n\n[Message Broker](MessageBroker.html)\n\n[Message\nTransformation](MessageTransformationIntro.html)\n\n[Message Translator](MessageTranslator.html)\n\n[Envelope Wrapper](EnvelopeWrapper.html)\n\n[Content Enricher](DataEnricher.html)\n\n[Content Filter](ContentFilter.html)\n\n[Claim Check](StoreInLibrary.html)\n\n[Normalizer](Normalizer.html)\n\n[Canonical Data Model](CanonicalDataModel.html)\n\n[Messaging Endpoints](MessagingEndpointsIntro.html)\n\n[Message Endpoint](MessageEndpoint.html)\n\n[Messaging Gateway](MessagingGateway.html)\n\n[Messaging Mapper](MessagingMapper.html)\n\n[Transactional Client](TransactionalClient.html)\n\n[Polling Consumer](PollingConsumer.html)\n\n[Event-driven Consumer](EventDrivenConsumer.html)\n\n[Competing Consumers](CompetingConsumers.html)\n\n[Message Dispatcher](MessageDispatcher.html)\n\n[Selective Consumer](MessageSelector.html)\n\n[Durable Subscriber](DurableSubscription.html)\n\n[Idempotent Receiver](IdempotentReceiver.html)\n\n[Service Activator](MessagingAdapter.html)\n\n[Messaging Channels](MessagingChannelsIntro.html)\n\n[Message Channel](MessageChannel.html)\n\n[Point-to-Point Channel](PointToPointChannel.html)\n\n[Publish-Subscr. Channel](PublishSubscribeChannel.html)\n\n[Datatype Channel](DatatypeChannel.html)\n\n[Invalid Message Channel](InvalidMessageChannel.html)\n\n[Dead Letter Channel](DeadLetterChannel.html)\n\n[Guaranteed Delivery](GuaranteedMessaging.html)\n\n[Channel Adapter](ChannelAdapter.html)\n\n[Messaging Bridge](MessagingBridge.html)\n\n[Message Bus](MessageBus.html)\n\n[Systems Mgmt.](SystemManagementIntro.html)\n\n[Control Bus](ControlBus.html)\n\n[Detour](Detour.html)\n\n[Wire Tap](WireTap.html)\n\n[Message History](MessageHistory.html)\n\n[Message Store](MessageStore.html)\n\n[Smart Proxy](SmartProxy.html)\n\n[Test Message](TestMessage.html)\n\n[Channel Purger](ChannelPurger.html)", "znaku_textu": 5571, "slov": 559, "odkazu": 108, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/MessageHistory.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 06:03:06", "sha256": "d5aefe0d1353167cdd7be8f1ddc822d5ad13c4c39bb36f6aeb6d1fa11f5c865d", "hloubka": 1, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://creativecommons.org/licenses/by/4.0/", "https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "https://www.architectelevator.com/book", "https://www.cloudstrategybook.com/", "https://www.platformstrategybook.info/"]} {"url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/MessageRouter.html", "titulek": "Message Router - Enterprise Integration Patterns", "h1": "", "popis": "How can you decouple individual processing steps so that messages can be passed to different filters depending on a set of conditions?", "klicova_slova": "Message Router,integration, messaging, events, patterns, event-driven, coupling, eai, middleware, application integration, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns", "og:title": "Message Router - Enterprise Integration Patterns", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/MessageRouter.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/MessageRouter.gif"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Integration Pattern Language"}], "markdown": "Messaging Patterns\n\n[Messaging Patterns](index.html)\n\n- [Integration Styles](IntegrationStylesIntro.html)\n- [Messaging Systems](MessagingComponentsIntro.html)\n- [Messaging Channels](MessagingChannelsIntro.html)\n- [Message Construction](MessageConstructionIntro.html)\n- [Interlude: Simple Messaging](SimpleMessagingIntro.html)\n- [Message Routing](MessageRoutingIntro.html)\n- [Message Transformation](MessageTransformationIntro.html)\n- [Interlude: Composed Messaging](ComposedMessagingExample.html)\n- [Messaging Endpoints](MessagingEndpointsIntro.html)\n- [System Management](SystemManagementIntro.html)\n- Interlude: Systems Management Example\n- Integration Patterns in Practice\n- Concluding Remarks\n- Appendices\n\n| | Message Router[Messaging Patterns](index.html) » [Messaging Systems](MessagingComponentsIntro.html) | [Contents](toc.html)[⇐ Prev](PipesAndFilters.html)[Next ⇒](MessageTranslator.html) |\n| --- | --- | --- |\n\nMultiple processing steps in a [*Pipes and Filters*](PipesAndFilters.html) chain are connected by [*Message Channel*](MessageChannel.html)s.\n\nHow can you decouple individual processing steps so that messages can be passed to different filters depending on a set of conditions?\n\nInsert a special filter, a *Message Router*, which consumes a [*Message*](Message.html) from one [*Message Channel*](MessageChannel.html) and republishes it to a different [*Message Channel*](MessageChannel.html) channel depending on a set of conditions.\n\nThe *Message Router* differs from the most basic notion of [*Pipes and Filters*](PipesAndFilters.html) in that it connects to multiple output channels. Thanks to the [*Pipes and Filters*](PipesAndFilters.html) architecture the components surrounding the *Message Router* are completely unaware of the existence of a *Message Router*. A key property of the *Message Router* is that it does not modify the message contents. It only concerns itself with the destination of the message.\n\nThe key benefit of using a *Message Router* is that the decision criteria for the destination of a message are maintained in a single location. If new message types are defined, new processing components are added, or the routing rules change, we need to change only the *Message Router* logic and all other components remain unaffected. Also, since all messages pass through a single *Message Router*, incoming messages are guaranteed to be processed one-by-one in the correct order.\n\n...\nRead the entire pattern in the book [Enterprise Integration Patterns](/books1.html)\n\n**Related patterns:**\n\n[*Channel Adapter*](ChannelAdapter.html), [*Content-Based Router*](ContentBasedRouter.html), [*Control Bus*](ControlBus.html), [*Datatype Channel*](DatatypeChannel.html), [*Dynamic Router*](DynamicRouter.html), [*Message Filter*](Filter.html), [*Message*](Message.html), [*Message Channel*](MessageChannel.html), [*Message History*](MessageHistory.html), [*Introduction to Message Routing*](MessageRoutingIntro.html), [*Message Translator*](MessageTranslator.html), [*Pipes and Filters*](PipesAndFilters.html), [*Publish-Subscribe Channel*](PublishSubscribeChannel.html), [*Transactional Client*](TransactionalClient.html)\n\n---\n\n## Integration Pattern Language\n\n[Message Construct.](MessageConstructionIntro.html)\n\n[Message](Message.html)\n\n[Command Message](CommandMessage.html)\n\n[Document Message](DocumentMessage.html)\n\n[Event Message](EventMessage.html)\n\n[Request-Reply](RequestReply.html)\n\n[Return Address](ReturnAddress.html)\n\n[Correlation Identifier](CorrelationIdentifier.html)\n\n[Message Sequence](MessageSequence.html)\n\n[Message Expiration](MessageExpiration.html)\n\n[Format Indicator](FormatIndicator.html)\n\n[Message Routing](MessageRoutingIntro.html)\n\n[Pipes-and-Filters](PipesAndFilters.html)\n\n[Message Router](MessageRouter.html)\n\n[Content-based Router](ContentBasedRouter.html)\n\n[Message Filter](Filter.html)\n\n[Dynamic Router](DynamicRouter.html)\n\n[Recipient List](RecipientList.html)\n\n[Splitter](Sequencer.html)\n\n[Aggregator](Aggregator.html)\n\n[Resequencer](Resequencer.html)\n\n[Composed Msg. Processor](DistributionAggregate.html)\n\n[Scatter-Gather](BroadcastAggregate.html)\n\n[Routing Slip](RoutingTable.html)\n\n[Process Manager](ProcessManager.html)\n\n[Message Broker](MessageBroker.html)\n\n[Message\nTransformation](MessageTransformationIntro.html)\n\n[Message Translator](MessageTranslator.html)\n\n[Envelope Wrapper](EnvelopeWrapper.html)\n\n[Content Enricher](DataEnricher.html)\n\n[Content Filter](ContentFilter.html)\n\n[Claim Check](StoreInLibrary.html)\n\n[Normalizer](Normalizer.html)\n\n[Canonical Data Model](CanonicalDataModel.html)\n\n[Messaging Endpoints](MessagingEndpointsIntro.html)\n\n[Message Endpoint](MessageEndpoint.html)\n\n[Messaging Gateway](MessagingGateway.html)\n\n[Messaging Mapper](MessagingMapper.html)\n\n[Transactional Client](TransactionalClient.html)\n\n[Polling Consumer](PollingConsumer.html)\n\n[Event-driven Consumer](EventDrivenConsumer.html)\n\n[Competing Consumers](CompetingConsumers.html)\n\n[Message Dispatcher](MessageDispatcher.html)\n\n[Selective Consumer](MessageSelector.html)\n\n[Durable Subscriber](DurableSubscription.html)\n\n[Idempotent Receiver](IdempotentReceiver.html)\n\n[Service Activator](MessagingAdapter.html)\n\n[Messaging Channels](MessagingChannelsIntro.html)\n\n[Message Channel](MessageChannel.html)\n\n[Point-to-Point Channel](PointToPointChannel.html)\n\n[Publish-Subscr. Channel](PublishSubscribeChannel.html)\n\n[Datatype Channel](DatatypeChannel.html)\n\n[Invalid Message Channel](InvalidMessageChannel.html)\n\n[Dead Letter Channel](DeadLetterChannel.html)\n\n[Guaranteed Delivery](GuaranteedMessaging.html)\n\n[Channel Adapter](ChannelAdapter.html)\n\n[Messaging Bridge](MessagingBridge.html)\n\n[Message Bus](MessageBus.html)\n\n[Systems Mgmt.](SystemManagementIntro.html)\n\n[Control Bus](ControlBus.html)\n\n[Detour](Detour.html)\n\n[Wire Tap](WireTap.html)\n\n[Message History](MessageHistory.html)\n\n[Message Store](MessageStore.html)\n\n[Smart Proxy](SmartProxy.html)\n\n[Test Message](TestMessage.html)\n\n[Channel Purger](ChannelPurger.html)\n\n- » [Read the latest in My Blog](/ramblings)\n- » [Get more insights from My Articles](/articles.html)\n- » [See me live in my Upcoming Talks](/talks)\n\nYou can reuse the following elements under the [Creative Commons Attribution](http://creativecommons.org/licenses/by/4.0/) license: pattern icon, pattern name, problem and solution statements (in bold), and the sketch. Other portions are protected by copyright.\n\n[Enterprise Integration Patterns](https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20)\nThe de-facto language for designing asynchronous, distributed systems. Over 100,000 copies sold.\n\n[The Software Architect Elevator](https://www.architectelevator.com/book)\n\n Rethink the role of architects as a connecting element across organizational layers. Acquire the technical, communication, and organizational skills to succeed in this new role.\n\n[Cloud Strategy](https://www.cloudstrategybook.com)\n\n Make your cloud migration a success by translating high-level goals into conscious decisions with well-understood trade-offs.\n\n[Platform Strategy](https://www.platformstrategybook.info)\n\n Platforms can boost innovation through harmonization, but they aren't easy to build. Learn from over a decade of designing and rolling out IT platforms.", "znaku_textu": 7105, "slov": 639, "odkazu": 108, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/MessageRouter.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 06:01:58", "sha256": "a4f1bda42d7ab7edf2340d2b661d36fc39b9bb0b52fb0bb3dae2b844ae10e3c6", "hloubka": 1, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://creativecommons.org/licenses/by/4.0/", "https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "https://www.architectelevator.com/book", "https://www.cloudstrategybook.com/", "https://www.platformstrategybook.info/"]} {"url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/MessageRoutingIntro.html", "titulek": "Introduction to Message Routing - Enterprise Integration Patterns", "h1": "", "popis": "In Chapter 2, we discussed how a Message Router can be used to decouple a message source from the ultimate destination of the message. This chapter elaborates on specific types of Message Routers to explain how to provide routing and brokering ability to an integration solution. Most patterns are refinements of the Message Router pattern while others combine multiple Message Routers to solve more complex problems. Therefore, we can categorize the Message Routing patterns into the following groups:", "klicova_slova": "Introduction to Message Routing,integration, messaging, events, patterns, event-driven, coupling, eai, middleware, application integration, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns", "og:title": "Introduction to Message Routing - Enterprise Integration Patterns", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/MessageRoutingIntro.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/eip1_patterns_wide.png"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Simple Routers"}, {"uroven": 2, "text": "Composed Routers"}, {"uroven": 2, "text": "Architectural Patterns"}, {"uroven": 2, "text": "The Right Router for the Right Purpose"}, {"uroven": 2, "text": "Integration Pattern Language"}], "markdown": "| | Introduction to Message Routing[Messaging Patterns](index.html) » [Message Routing](MessageRoutingIntro.html) | [Contents](toc.html)[⇐ Prev](ObserverJmsExample.html)[Next ⇒](ContentBasedRouter.html) |\n| --- | --- | --- |\n\nIn Chapter 2, we discussed how a [*Message Router*](MessageRouter.html) can be used to decouple a message source from the ultimate destination of the message. This chapter elaborates on specific types of [*Message Router*](MessageRouter.html)s to explain how to provide routing and brokering ability to an integration solution. Most patterns are refinements of the [*Message Router*](MessageRouter.html) pattern while others combine multiple [*Message Router*](MessageRouter.html)s to solve more complex problems. Therefore, we can categorize the Message Routing patterns into the following groups:\n\n- **Simple Routers** are variants of the [*Message Router*](MessageRouter.html) and route messages from one inbound channel to one or more outbound channels.\n- **Composed Routers** combine multiple simple routers to create more complex message flows.\n- **Architectural Patterns** describe architectural styles based on [*Message Router*](MessageRouter.html) s.\n\n## Simple Routers\n\nThe [*Content-Based Router*](ContentBasedRouter.html) inspects the content of a message and routes it to another channel based on the content of the message. Using such a router enables the message producer to send messages to a single channel and leave it to the [*Content-Based Router*](ContentBasedRouter.html) to inspect messages and route them to the proper destination. This alleviates the sending application from this task and avoids coupling the message producer to specific destination channels.\n\nA [*Message Filter*](Filter.html) is a special form of a [*Content-Based Router*](ContentBasedRouter.html). It examines the message content and passes the message to another channel if the message content matches certain criteria. Otherwise, it discards the message. [*Message Filter*](Filter.html)s can be used with [*Publish-Subscribe Channel*](PublishSubscribeChannel.html) to route a message to all possible recipients and allow the recipients to filter out irrelevant messages. A [*Message Filter*](Filter.html) performs a function that is very similar to that of a [*Selective Consumer*](MessageSelector.html) with the key difference being that a [*Message Filter*](Filter.html) is part of the messaging system, routing qualifying messages to another channel, whereas a [*Selective Consumer*](MessageSelector.html) is built into a [*Message Endpoint*](MessageEndpoint.html).\n\nA [*Content-Based Router*](ContentBasedRouter.html) and a [*Message Filter*](Filter.html) can actually solve a similar problem. A [*Content-Based Router*](ContentBasedRouter.html) routes a message to the correct destination based on the criteria encoded in the [*Content-Based Router*](ContentBasedRouter.html). Equivalent behavior can be achieved by using a [*Publish-Subscribe Channel*](PublishSubscribeChannel.html) and an array of [*Message Filter*](Filter.html)s, one for each potential recipient. Each [*Message Filter*](Filter.html) eliminates the messages that to not match the criteria for the specific destination. The [*Content-Based Router*](ContentBasedRouter.html) routes predictively to a single channel and therefore has total control, but is also dependent on the list of all possible destination channels. The [*Message Filter*](Filter.html) array filters reactively, spreading the routing logic across many [*Message Filter*](Filter.html)s but avoiding a single component that is dependent on all possible destinations. The trade-off between these solutions is described in more detail in the [*Message Filter*](Filter.html) pattern.\n\nA basic [*Message Router*](MessageRouter.html) uses fixed rules to determine the destination of an incoming message. Where we need more flexibility, a [*Dynamic Router*](DynamicRouter.html) can be very useful. This router allows the routing logic to be modified by sending control messages to a designated control port. The dynamic nature of the [*Dynamic Router*](DynamicRouter.html) can be combined with most forms of the [*Message Router*](MessageRouter.html).\n\nChapter 3 introduced the concept of a [*Point-to-Point Channel*](PointToPointChannel.html) and a [*Publish-Subscribe Channel*](PublishSubscribeChannel.html). Sometimes, you need to send a message to more than one recipient, but want to maintain control over the recipients. The [*Recipient List*](RecipientList.html) allows you do just that. In essence, a [*Recipient List*](RecipientList.html) is a [*Content-Based Router*](ContentBasedRouter.html) that can route a single message to more than one destination channel.\n\nSome messages contain lists of individual items. How do you process these items individually? Use a [*Splitter*](Sequencer.html) to split the large message into individual messages. Each message can then be routed further and processed individually.\n\nHowever, you may need to recombine the messages that the [*Splitter*](Sequencer.html) created back into a single message. This is one of the functions an [*Aggregator*](Aggregator.html) performs. An [*Aggregator*](Aggregator.html) can receive a stream of messages, identify related messages and combine them into a single message. Unlike the other routing patterns, the [*Aggregator*](Aggregator.html) is a stateful [*Message Router*](MessageRouter.html) because it has to store messages internally until specific conditions are fulfilled. This mean that an [*Aggregator*](Aggregator.html) can consume a number of messages before it publishes a message.\n\nBecause we use messaging to connect applications or components running on multiple computers, multiple messages can be processed in parallel. For example, more than one process may consume messages off a single channel. One of these processes may execute faster than another, causing messages to be processed out of order. However, some components depend on the correct sequence of individual messages, for example ledger-based systems. The [*Resequencer*](Resequencer.html) puts out-of-sequence messages back into sequence. The [*Resequencer*](Resequencer.html) is also a stateful [*Message Router*](MessageRouter.html) because it may need to store a number of messages internally until the message arrives that completes the sequence. Unlike the [*Aggregator*](Aggregator.html), though, the [*Resequencer*](Resequencer.html) ultimately publishes the same number of messages it consumed.\n\nThe following table summarizes the properties of the [*Message Router*](MessageRouter.html) variants (we did not include the [*Dynamic Router*](DynamicRouter.html) as a separate alternative because any router can be implemented as a dynamic variant):\n\n| **Pattern** | **Number of Msgs Consumed** | **Number of Msgs Published** | **Stateful?** | **Comment** |\n| --- | --- | --- | --- | --- |\n| [*Content-Based Router*](ContentBasedRouter.html) | 1 | 1 | No (mostly) | |\n| [*Message Filter*](Filter.html) | 1 | 0 or 1 | No (mostly) | |\n| [*Recipient List*](RecipientList.html) | 1 | multiple (incl. 0) | No | |\n| [*Splitter*](Sequencer.html) | 1 | multiple | No | |\n| [*Aggregator*](Aggregator.html) | multiple | 1 | Yes | |\n| [*Resequencer*](Resequencer.html) | multiple | multiple | Yes | Publishes same number it consumes. |\n\n## Composed Routers\n\nA key advantage of the [*Pipes and Filters*](PipesAndFilters.html) architecture is the fact that we can compose multiple filters into a larger solution. [*Composed Message Processor*](DistributionAggregate.html) or an [*Scatter-Gather*](BroadcastAggregate.html) combine multiple [*Message Router*](MessageRouter.html) variants to create more comprehensive solutions. Both patterns allow us to retrieve information from multiple sources and recombine it into a single message. While the [*Composed Message Processor*](DistributionAggregate.html) maintains control over the possible sources the [*Scatter-Gather*](BroadcastAggregate.html) uses a [*Publish-Subscribe Channel*](PublishSubscribeChannel.html) so that any interested component can participate in the process.\n\nBoth the [*Composed Message Processor*](DistributionAggregate.html) and the [*Scatter-Gather*](BroadcastAggregate.html) route a single message to a number of participants concurrently and reassemble the replies into a single message. We can say that these patterns manage the *parallel routing* of a message. Two more patterns manage the *sequential routing* of a message, i.e. routing a message through a sequence of individual steps. If we want to control the path of a message from a central point we can use a [*Routing Slip*](RoutingTable.html) to specify the path the message should take. This pattern works just like the routing slip attached to office documents to pass them sequentially by a number of recipients. Alternatively, we can use a [*Process Manager*](ProcessManager.html) which gives us more flexibility but requires the message to return to a central component after each function.\n\n## Architectural Patterns\n\n[*Message Router*](MessageRouter.html)s enable us to architect an integration solution using a central [*Message Broker*](MessageBroker.html). As opposed to the different message routing design patterns, this pattern describes a *hub-and-spoke* architectural style.\n\n## The Right Router for the Right Purpose\n\nThis chapter contains 10 patterns. How can we make it easy to find the right pattern for the right purpose? The following decision chart helps you find the right pattern for the right purpose by matter of simple yes/no decisions. For example, if you are looking for a simple routing pattern that consumes one message at a time but publishes multiple messages in sequential order, you should use a [*Splitter*](Sequencer.html). The diagram also helps illustrate how closely the individual patterns are related. For example, a [*Routing Slip*](RoutingTable.html) and a [*Process Manager*](ProcessManager.html) solve similar problems while a [*Message Filter*](Filter.html) does something rather different.\n\n## Integration Pattern Language\n\n[Message Construct.](MessageConstructionIntro.html)\n\n[Message](Message.html)\n\n[Command Message](CommandMessage.html)\n\n[Document Message](DocumentMessage.html)\n\n[Event Message](EventMessage.html)\n\n[Request-Reply](RequestReply.html)\n\n[Return Address](ReturnAddress.html)\n\n[Correlation Identifier](CorrelationIdentifier.html)\n\n[Message Sequence](MessageSequence.html)\n\n[Message Expiration](MessageExpiration.html)\n\n[Format Indicator](FormatIndicator.html)\n\n[Message Routing](MessageRoutingIntro.html)\n\n[Pipes-and-Filters](PipesAndFilters.html)\n\n[Message Router](MessageRouter.html)\n\n[Content-based Router](ContentBasedRouter.html)\n\n[Message Filter](Filter.html)\n\n[Dynamic Router](DynamicRouter.html)\n\n[Recipient List](RecipientList.html)\n\n[Splitter](Sequencer.html)\n\n[Aggregator](Aggregator.html)\n\n[Resequencer](Resequencer.html)\n\n[Composed Msg. Processor](DistributionAggregate.html)\n\n[Scatter-Gather](BroadcastAggregate.html)\n\n[Routing Slip](RoutingTable.html)\n\n[Process Manager](ProcessManager.html)\n\n[Message Broker](MessageBroker.html)\n\n[Message\nTransformation](MessageTransformationIntro.html)\n\n[Message Translator](MessageTranslator.html)\n\n[Envelope Wrapper](EnvelopeWrapper.html)\n\n[Content Enricher](DataEnricher.html)\n\n[Content Filter](ContentFilter.html)\n\n[Claim Check](StoreInLibrary.html)\n\n[Normalizer](Normalizer.html)\n\n[Canonical Data Model](CanonicalDataModel.html)\n\n[Messaging Endpoints](MessagingEndpointsIntro.html)\n\n[Message Endpoint](MessageEndpoint.html)\n\n[Messaging Gateway](MessagingGateway.html)\n\n[Messaging Mapper](MessagingMapper.html)\n\n[Transactional Client](TransactionalClient.html)\n\n[Polling Consumer](PollingConsumer.html)\n\n[Event-driven Consumer](EventDrivenConsumer.html)\n\n[Competing Consumers](CompetingConsumers.html)\n\n[Message Dispatcher](MessageDispatcher.html)\n\n[Selective Consumer](MessageSelector.html)\n\n[Durable Subscriber](DurableSubscription.html)\n\n[Idempotent Receiver](IdempotentReceiver.html)\n\n[Service Activator](MessagingAdapter.html)\n\n[Messaging Channels](MessagingChannelsIntro.html)\n\n[Message Channel](MessageChannel.html)\n\n[Point-to-Point Channel](PointToPointChannel.html)\n\n[Publish-Subscr. Channel](PublishSubscribeChannel.html)\n\n[Datatype Channel](DatatypeChannel.html)\n\n[Invalid Message Channel](InvalidMessageChannel.html)\n\n[Dead Letter Channel](DeadLetterChannel.html)\n\n[Guaranteed Delivery](GuaranteedMessaging.html)\n\n[Channel Adapter](ChannelAdapter.html)\n\n[Messaging Bridge](MessagingBridge.html)\n\n[Message Bus](MessageBus.html)\n\n[Systems Mgmt.](SystemManagementIntro.html)\n\n[Control Bus](ControlBus.html)\n\n[Detour](Detour.html)\n\n[Wire Tap](WireTap.html)\n\n[Message History](MessageHistory.html)\n\n[Message Store](MessageStore.html)\n\n[Smart Proxy](SmartProxy.html)\n\n[Test Message](TestMessage.html)\n\n[Channel Purger](ChannelPurger.html)", "znaku_textu": 12657, "slov": 1559, "odkazu": 107, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/MessageRoutingIntro.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 06:02:25", "sha256": "17ec81524f67e57023db779842ba8018132255c63006c9b3ea7301a90cf5dd6d", "hloubka": 1, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "https://www.architectelevator.com/book", "https://www.cloudstrategybook.com/", "https://www.platformstrategybook.info/"]} {"url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/MessageSelector.html", "titulek": "Selective Consumer - Enterprise Integration Patterns", "h1": "", "popis": "How can a message consumer select which messages it wishes to receive?", "klicova_slova": "Selective Consumer,integration, messaging, events, patterns, event-driven, coupling, eai, middleware, application integration, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns", "og:title": "Selective Consumer - Enterprise Integration Patterns", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/MessageSelector.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/MessageSelectorSolution.gif"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Integration Pattern Language"}], "markdown": "| | Selective Consumer[Messaging Patterns](index.html) » [Messaging Endpoints](MessagingEndpointsIntro.html) | [Contents](toc.html)[⇐ Prev](MessageDispatcher.html)[Next ⇒](DurableSubscription.html) |\n| --- | --- | --- |\n\nAn application is using [*Messaging*](Messaging.html). It consumes [*Message*](Message.html)s from a [*Message Channel*](MessageChannel.html), but it does not necessarily want to consume all of the messages on that channel, just some of them.\n\nHow can a message consumer select which messages it wishes to receive?\n\nMake the consumer a *Selective Consumer*, one that filteres the messages delivered by its channel so that it only receives the ones that match its criteria.\n\nThere are three parts to this filtering process:\n\n1. **Specifying Producer** — Specifies the message’s selection value before sending it.\n2. **Selection Value** — One or more values specified in the message that allow a consumer to decide whether to select the message.\n3. **Selective Consumer** — Only receives messages that meet its selection criteria.\n\nWhen multiple *Selective Consumer*s are used with a [*Point-to-Point Channel*](PointToPointChannel.html), they effectively become [*Competing Consumers*](CompetingConsumers.html) that are also selective. If two consumer’s criteria overlap, and a message’s selection value meets both of their criteria, either consumer can consume the message. Consumers should be designed to ensure that at least one of them is eligable to consume every valid selection value. Otherwise, a message with an unmatched selection value will never be consumed and will clutter the channel forever (or at least until [*Message Expiration*](MessageExpiration.html) occurrs).\n\nWhen multiple *Selective Consumer*s are used with a [*Publish-Subscribe Channel*](PublishSubscribeChannel.html), each message will be delivered to each subscriber, but a subscriber will simply ignore its copy of a message that does not fit its criteria. Once a consumer decides to ignore a message, the messaging system can discard the message since it has been successfully delivered and will never be consumed. A messaging system can optimize this process by not even delivering a message it knows the consumer will ignore, thereby decreasing the number of copies of a message that must be produced and transmitted. This behavior of discarding ignored messages is independent of whatever [*Guaranteed Delivery*](GuaranteedMessaging.html), [*Durable Subscriber*](DurableSubscription.html), and/or [*Message Expiration*](MessageExpiration.html) settings are used.\n\n*Selective Consumer*s make a single channel act like multiple [*Datatype Channel*](DatatypeChannel.html)s. If different message types have distinct selection values, each consumer that is specialized for a particular type will only receive messages of that type. This approach facilitates sending many message types using a small number of channels, which can be beneficial in an enterprise that requires more channels than their messaging system can support.\n\n*Competing, Selective Consumers*\n\n...\nRead the entire pattern in the book [Enterprise Integration Patterns](/books1.html)\n\n**Related patterns:**\n\n[*Competing Consumers*](CompetingConsumers.html), [*Content-Based Router*](ContentBasedRouter.html), [*Correlation Identifier*](CorrelationIdentifier.html), [*Datatype Channel*](DatatypeChannel.html), [*Durable Subscriber*](DurableSubscription.html), [*Event-Driven Consumer*](EventDrivenConsumer.html), [*Message Filter*](Filter.html), [*Guaranteed Delivery*](GuaranteedMessaging.html), [*Invalid Message Channel*](InvalidMessageChannel.html), [*Message*](Message.html), [*Message Channel*](MessageChannel.html), [*Message Dispatcher*](MessageDispatcher.html), [*Message Expiration*](MessageExpiration.html), [*Messaging*](Messaging.html), [*Point-to-Point Channel*](PointToPointChannel.html), [*Polling Consumer*](PollingConsumer.html), [*Publish-Subscribe Channel*](PublishSubscribeChannel.html), [*Request-Reply*](RequestReply.html), [*Transactional Client*](TransactionalClient.html)\n\n---\n\n## Integration Pattern Language\n\n[Message Construct.](MessageConstructionIntro.html)\n\n[Message](Message.html)\n\n[Command Message](CommandMessage.html)\n\n[Document Message](DocumentMessage.html)\n\n[Event Message](EventMessage.html)\n\n[Request-Reply](RequestReply.html)\n\n[Return Address](ReturnAddress.html)\n\n[Correlation Identifier](CorrelationIdentifier.html)\n\n[Message Sequence](MessageSequence.html)\n\n[Message Expiration](MessageExpiration.html)\n\n[Format Indicator](FormatIndicator.html)\n\n[Message Routing](MessageRoutingIntro.html)\n\n[Pipes-and-Filters](PipesAndFilters.html)\n\n[Message Router](MessageRouter.html)\n\n[Content-based Router](ContentBasedRouter.html)\n\n[Message Filter](Filter.html)\n\n[Dynamic Router](DynamicRouter.html)\n\n[Recipient List](RecipientList.html)\n\n[Splitter](Sequencer.html)\n\n[Aggregator](Aggregator.html)\n\n[Resequencer](Resequencer.html)\n\n[Composed Msg. Processor](DistributionAggregate.html)\n\n[Scatter-Gather](BroadcastAggregate.html)\n\n[Routing Slip](RoutingTable.html)\n\n[Process Manager](ProcessManager.html)\n\n[Message Broker](MessageBroker.html)\n\n[Message\nTransformation](MessageTransformationIntro.html)\n\n[Message Translator](MessageTranslator.html)\n\n[Envelope Wrapper](EnvelopeWrapper.html)\n\n[Content Enricher](DataEnricher.html)\n\n[Content Filter](ContentFilter.html)\n\n[Claim Check](StoreInLibrary.html)\n\n[Normalizer](Normalizer.html)\n\n[Canonical Data Model](CanonicalDataModel.html)\n\n[Messaging Endpoints](MessagingEndpointsIntro.html)\n\n[Message Endpoint](MessageEndpoint.html)\n\n[Messaging Gateway](MessagingGateway.html)\n\n[Messaging Mapper](MessagingMapper.html)\n\n[Transactional Client](TransactionalClient.html)\n\n[Polling Consumer](PollingConsumer.html)\n\n[Event-driven Consumer](EventDrivenConsumer.html)\n\n[Competing Consumers](CompetingConsumers.html)\n\n[Message Dispatcher](MessageDispatcher.html)\n\n[Selective Consumer](MessageSelector.html)\n\n[Durable Subscriber](DurableSubscription.html)\n\n[Idempotent Receiver](IdempotentReceiver.html)\n\n[Service Activator](MessagingAdapter.html)\n\n[Messaging Channels](MessagingChannelsIntro.html)\n\n[Message Channel](MessageChannel.html)\n\n[Point-to-Point Channel](PointToPointChannel.html)\n\n[Publish-Subscr. Channel](PublishSubscribeChannel.html)\n\n[Datatype Channel](DatatypeChannel.html)\n\n[Invalid Message Channel](InvalidMessageChannel.html)\n\n[Dead Letter Channel](DeadLetterChannel.html)\n\n[Guaranteed Delivery](GuaranteedMessaging.html)\n\n[Channel Adapter](ChannelAdapter.html)\n\n[Messaging Bridge](MessagingBridge.html)\n\n[Message Bus](MessageBus.html)\n\n[Systems Mgmt.](SystemManagementIntro.html)\n\n[Control Bus](ControlBus.html)\n\n[Detour](Detour.html)\n\n[Wire Tap](WireTap.html)\n\n[Message History](MessageHistory.html)\n\n[Message Store](MessageStore.html)\n\n[Smart Proxy](SmartProxy.html)\n\n[Test Message](TestMessage.html)\n\n[Channel Purger](ChannelPurger.html)", "znaku_textu": 6768, "slov": 664, "odkazu": 108, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/MessageSelector.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 06:02:58", "sha256": "200eeab56af2adb679a5a81c4edc0e97a1e0a1f24a65902cc2a8d6f2c90d17d1", "hloubka": 1, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://creativecommons.org/licenses/by/4.0/", "https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "https://www.architectelevator.com/book", "https://www.cloudstrategybook.com/", "https://www.platformstrategybook.info/"]} {"url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/MessageSequence.html", "titulek": "Message Sequence - Enterprise Integration Patterns", "h1": "", "popis": "How can messaging transmit an arbitrarily large amount of data?", "klicova_slova": "Message Sequence,integration, messaging, events, patterns, event-driven, coupling, eai, middleware, application integration, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns", "og:title": "Message Sequence - Enterprise Integration Patterns", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/MessageSequence.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/MessageSequenceSize.gif"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Integration Pattern Language"}], "markdown": "Messaging Patterns\n\n[Messaging Patterns](index.html)\n\n- [Integration Styles](IntegrationStylesIntro.html)\n- [Messaging Systems](MessagingComponentsIntro.html)\n- [Messaging Channels](MessagingChannelsIntro.html)\n- [Message Construction](MessageConstructionIntro.html)\n- [Interlude: Simple Messaging](SimpleMessagingIntro.html)\n- [Message Routing](MessageRoutingIntro.html)\n- [Message Transformation](MessageTransformationIntro.html)\n- [Interlude: Composed Messaging](ComposedMessagingExample.html)\n- [Messaging Endpoints](MessagingEndpointsIntro.html)\n- [System Management](SystemManagementIntro.html)\n- Interlude: Systems Management Example\n- Integration Patterns in Practice\n- Concluding Remarks\n- Appendices\n\n| | Message Sequence[Messaging Patterns](index.html) » [Message Construction](MessageConstructionIntro.html) | [Contents](toc.html)[⇐ Prev](CorrelationIdentifier.html)[Next ⇒](MessageExpiration.html) |\n| --- | --- | --- |\n\nMy application needs to send a huge amount of data to another process, more than may fit in a single message. Or my application has made a request whose reply contains too much data for a single message.\n\nHow can messaging transmit an arbitrarily large amount of data?\n\nWhenever a large set of data may need to be broken into message-size chunks, send the data as a *Message Sequence* and mark each message with sequence identification fields.\n\nThe three *Message Sequence* identification fields are:\n\n1. **Sequence identifier** – Distinguishes this cluster of messages from others.\n2. **Position identifier** – Uniquely identifies and sequentially orders each message in a sequence.\n3. **Size** or **End indicator** – Specifies the number of messages in the cluster, or marks the last message in the cluster (whose position identifier then specifies the size of the cluster).\n\n...\nRead the entire pattern in the book [Enterprise Integration Patterns](/books1.html)\n\n**Related patterns:**\n\n[*Competing Consumers*](CompetingConsumers.html), [*Correlation Identifier*](CorrelationIdentifier.html), [*Invalid Message Channel*](InvalidMessageChannel.html), [*Message Channel*](MessageChannel.html), [*Message Dispatcher*](MessageDispatcher.html), [*Request-Reply*](RequestReply.html), [*Claim Check*](StoreInLibrary.html), [*Transactional Client*](TransactionalClient.html)\n\n---\n\n## Integration Pattern Language\n\n[Message Construct.](MessageConstructionIntro.html)\n\n[Message](Message.html)\n\n[Command Message](CommandMessage.html)\n\n[Document Message](DocumentMessage.html)\n\n[Event Message](EventMessage.html)\n\n[Request-Reply](RequestReply.html)\n\n[Return Address](ReturnAddress.html)\n\n[Correlation Identifier](CorrelationIdentifier.html)\n\n[Message Sequence](MessageSequence.html)\n\n[Message Expiration](MessageExpiration.html)\n\n[Format Indicator](FormatIndicator.html)\n\n[Message Routing](MessageRoutingIntro.html)\n\n[Pipes-and-Filters](PipesAndFilters.html)\n\n[Message Router](MessageRouter.html)\n\n[Content-based Router](ContentBasedRouter.html)\n\n[Message Filter](Filter.html)\n\n[Dynamic Router](DynamicRouter.html)\n\n[Recipient List](RecipientList.html)\n\n[Splitter](Sequencer.html)\n\n[Aggregator](Aggregator.html)\n\n[Resequencer](Resequencer.html)\n\n[Composed Msg. Processor](DistributionAggregate.html)\n\n[Scatter-Gather](BroadcastAggregate.html)\n\n[Routing Slip](RoutingTable.html)\n\n[Process Manager](ProcessManager.html)\n\n[Message Broker](MessageBroker.html)\n\n[Message\nTransformation](MessageTransformationIntro.html)\n\n[Message Translator](MessageTranslator.html)\n\n[Envelope Wrapper](EnvelopeWrapper.html)\n\n[Content Enricher](DataEnricher.html)\n\n[Content Filter](ContentFilter.html)\n\n[Claim Check](StoreInLibrary.html)\n\n[Normalizer](Normalizer.html)\n\n[Canonical Data Model](CanonicalDataModel.html)\n\n[Messaging Endpoints](MessagingEndpointsIntro.html)\n\n[Message Endpoint](MessageEndpoint.html)\n\n[Messaging Gateway](MessagingGateway.html)\n\n[Messaging Mapper](MessagingMapper.html)\n\n[Transactional Client](TransactionalClient.html)\n\n[Polling Consumer](PollingConsumer.html)\n\n[Event-driven Consumer](EventDrivenConsumer.html)\n\n[Competing Consumers](CompetingConsumers.html)\n\n[Message Dispatcher](MessageDispatcher.html)\n\n[Selective Consumer](MessageSelector.html)\n\n[Durable Subscriber](DurableSubscription.html)\n\n[Idempotent Receiver](IdempotentReceiver.html)\n\n[Service Activator](MessagingAdapter.html)\n\n[Messaging Channels](MessagingChannelsIntro.html)\n\n[Message Channel](MessageChannel.html)\n\n[Point-to-Point Channel](PointToPointChannel.html)\n\n[Publish-Subscr. Channel](PublishSubscribeChannel.html)\n\n[Datatype Channel](DatatypeChannel.html)\n\n[Invalid Message Channel](InvalidMessageChannel.html)\n\n[Dead Letter Channel](DeadLetterChannel.html)\n\n[Guaranteed Delivery](GuaranteedMessaging.html)\n\n[Channel Adapter](ChannelAdapter.html)\n\n[Messaging Bridge](MessagingBridge.html)\n\n[Message Bus](MessageBus.html)\n\n[Systems Mgmt.](SystemManagementIntro.html)\n\n[Control Bus](ControlBus.html)\n\n[Detour](Detour.html)\n\n[Wire Tap](WireTap.html)\n\n[Message History](MessageHistory.html)\n\n[Message Store](MessageStore.html)\n\n[Smart Proxy](SmartProxy.html)\n\n[Test Message](TestMessage.html)\n\n[Channel Purger](ChannelPurger.html)\n\n- » [Read the latest in My Blog](/ramblings)\n- » [Get more insights from My Articles](/articles.html)\n- » [See me live in my Upcoming Talks](/talks)\n\nYou can reuse the following elements under the [Creative Commons Attribution](http://creativecommons.org/licenses/by/4.0/) license: pattern icon, pattern name, problem and solution statements (in bold), and the sketch. Other portions are protected by copyright.\n\n[Enterprise Integration Patterns](https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20)\nThe de-facto language for designing asynchronous, distributed systems. Over 100,000 copies sold.\n\n[The Software Architect Elevator](https://www.architectelevator.com/book)\n\n Rethink the role of architects as a connecting element across organizational layers. Acquire the technical, communication, and organizational skills to succeed in this new role.\n\n[Cloud Strategy](https://www.cloudstrategybook.com)\n\n Make your cloud migration a success by translating high-level goals into conscious decisions with well-understood trade-offs.\n\n[Platform Strategy](https://www.platformstrategybook.info)\n\n Platforms can boost innovation through harmonization, but they aren't easy to build. Learn from over a decade of designing and rolling out IT platforms.", "znaku_textu": 6240, "slov": 521, "odkazu": 108, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/MessageSequence.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 06:02:18", "sha256": "0b96b30456ccbc3f7528528047151d34c4625e6c90e9f00e18eeb2997203db24", "hloubka": 1, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://creativecommons.org/licenses/by/4.0/", "https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "https://www.architectelevator.com/book", "https://www.cloudstrategybook.com/", "https://www.platformstrategybook.info/"]} {"url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/MessageStore.html", "titulek": "Message Store - Enterprise Integration Patterns", "h1": "", "popis": "How can we report against message information without disturbing the loosely coupled and transient nature of a messaging system?", "klicova_slova": "Message Store,integration, messaging, events, patterns, event-driven, coupling, eai, middleware, application integration, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns", "og:title": "Message Store - Enterprise Integration Patterns", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/MessageStore.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/MessageStore.gif"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Integration Pattern Language"}], "markdown": "Messaging Patterns\n\n[Messaging Patterns](index.html)\n\n- [Integration Styles](IntegrationStylesIntro.html)\n- [Messaging Systems](MessagingComponentsIntro.html)\n- [Messaging Channels](MessagingChannelsIntro.html)\n- [Message Construction](MessageConstructionIntro.html)\n- [Interlude: Simple Messaging](SimpleMessagingIntro.html)\n- [Message Routing](MessageRoutingIntro.html)\n- [Message Transformation](MessageTransformationIntro.html)\n- [Interlude: Composed Messaging](ComposedMessagingExample.html)\n- [Messaging Endpoints](MessagingEndpointsIntro.html)\n- [System Management](SystemManagementIntro.html)\n- Interlude: Systems Management Example\n- Integration Patterns in Practice\n- Concluding Remarks\n- Appendices\n\n| | Message Store[Messaging Patterns](index.html) » [System Management](SystemManagementIntro.html) | [Contents](toc.html)[⇐ Prev](MessageHistory.html)[Next ⇒](SmartProxy.html) |\n| --- | --- | --- |\n\nAs the [*Message History*](MessageHistory.html) describes, the architectural principle of loose coupling allows for flexibility in the solution, but can make it difficult to gain insight into the dynamic behavior of the integration solution.\n\nHow can we report against message information without disturbing the loosely coupled and transient nature of a messaging system?\n\nUse a *Message Store* to capture information about each message in a central location.\n\nWhen using a *Message Store*, we can take advantage of the asynchronous nature of a messaging infrastructure. When we send a message to a channel, we send a duplicate of the message to a special channel to be collected by the *Message Store*. This can be performed by the component itself or we can insert a [*Wire Tap*](WireTap.html) into the channel. We can consider the secondary channel that carries a copy of the message as part of the [*Control Bus*](ControlBus.html). Sending a second message in a 'fire-and-forget' mode will not slow down the flow of the main application messages. It does, however, increase network traffic. That's why we may not store the complete message, but just a few key fields that are required for later analysis, such as a message ID, or the channel on which the message was sent and a timestamp.\n\n...\nRead the entire pattern in the book [Enterprise Integration Patterns](/books1.html)\n\n**Related patterns:**\n\n[*Control Bus*](ControlBus.html), [*Message History*](MessageHistory.html), [*Wire Tap*](WireTap.html)\n\n---\n\n## Integration Pattern Language\n\n[Message Construct.](MessageConstructionIntro.html)\n\n[Message](Message.html)\n\n[Command Message](CommandMessage.html)\n\n[Document Message](DocumentMessage.html)\n\n[Event Message](EventMessage.html)\n\n[Request-Reply](RequestReply.html)\n\n[Return Address](ReturnAddress.html)\n\n[Correlation Identifier](CorrelationIdentifier.html)\n\n[Message Sequence](MessageSequence.html)\n\n[Message Expiration](MessageExpiration.html)\n\n[Format Indicator](FormatIndicator.html)\n\n[Message Routing](MessageRoutingIntro.html)\n\n[Pipes-and-Filters](PipesAndFilters.html)\n\n[Message Router](MessageRouter.html)\n\n[Content-based Router](ContentBasedRouter.html)\n\n[Message Filter](Filter.html)\n\n[Dynamic Router](DynamicRouter.html)\n\n[Recipient List](RecipientList.html)\n\n[Splitter](Sequencer.html)\n\n[Aggregator](Aggregator.html)\n\n[Resequencer](Resequencer.html)\n\n[Composed Msg. Processor](DistributionAggregate.html)\n\n[Scatter-Gather](BroadcastAggregate.html)\n\n[Routing Slip](RoutingTable.html)\n\n[Process Manager](ProcessManager.html)\n\n[Message Broker](MessageBroker.html)\n\n[Message\nTransformation](MessageTransformationIntro.html)\n\n[Message Translator](MessageTranslator.html)\n\n[Envelope Wrapper](EnvelopeWrapper.html)\n\n[Content Enricher](DataEnricher.html)\n\n[Content Filter](ContentFilter.html)\n\n[Claim Check](StoreInLibrary.html)\n\n[Normalizer](Normalizer.html)\n\n[Canonical Data Model](CanonicalDataModel.html)\n\n[Messaging Endpoints](MessagingEndpointsIntro.html)\n\n[Message Endpoint](MessageEndpoint.html)\n\n[Messaging Gateway](MessagingGateway.html)\n\n[Messaging Mapper](MessagingMapper.html)\n\n[Transactional Client](TransactionalClient.html)\n\n[Polling Consumer](PollingConsumer.html)\n\n[Event-driven Consumer](EventDrivenConsumer.html)\n\n[Competing Consumers](CompetingConsumers.html)\n\n[Message Dispatcher](MessageDispatcher.html)\n\n[Selective Consumer](MessageSelector.html)\n\n[Durable Subscriber](DurableSubscription.html)\n\n[Idempotent Receiver](IdempotentReceiver.html)\n\n[Service Activator](MessagingAdapter.html)\n\n[Messaging Channels](MessagingChannelsIntro.html)\n\n[Message Channel](MessageChannel.html)\n\n[Point-to-Point Channel](PointToPointChannel.html)\n\n[Publish-Subscr. Channel](PublishSubscribeChannel.html)\n\n[Datatype Channel](DatatypeChannel.html)\n\n[Invalid Message Channel](InvalidMessageChannel.html)\n\n[Dead Letter Channel](DeadLetterChannel.html)\n\n[Guaranteed Delivery](GuaranteedMessaging.html)\n\n[Channel Adapter](ChannelAdapter.html)\n\n[Messaging Bridge](MessagingBridge.html)\n\n[Message Bus](MessageBus.html)\n\n[Systems Mgmt.](SystemManagementIntro.html)\n\n[Control Bus](ControlBus.html)\n\n[Detour](Detour.html)\n\n[Wire Tap](WireTap.html)\n\n[Message History](MessageHistory.html)\n\n[Message Store](MessageStore.html)\n\n[Smart Proxy](SmartProxy.html)\n\n[Test Message](TestMessage.html)\n\n[Channel Purger](ChannelPurger.html)\n\n- » [Read the latest in My Blog](/ramblings)\n- » [Get more insights from My Articles](/articles.html)\n- » [See me live in my Upcoming Talks](/talks)\n\nYou can reuse the following elements under the [Creative Commons Attribution](http://creativecommons.org/licenses/by/4.0/) license: pattern icon, pattern name, problem and solution statements (in bold), and the sketch. Other portions are protected by copyright.\n\n[Enterprise Integration Patterns](https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20)\nThe de-facto language for designing asynchronous, distributed systems. Over 100,000 copies sold.\n\n[The Software Architect Elevator](https://www.architectelevator.com/book)\n\n Rethink the role of architects as a connecting element across organizational layers. Acquire the technical, communication, and organizational skills to succeed in this new role.\n\n[Cloud Strategy](https://www.cloudstrategybook.com)\n\n Make your cloud migration a success by translating high-level goals into conscious decisions with well-understood trade-offs.\n\n[Platform Strategy](https://www.platformstrategybook.info)\n\n Platforms can boost innovation through harmonization, but they aren't easy to build. Learn from over a decade of designing and rolling out IT platforms.", "znaku_textu": 6373, "slov": 577, "odkazu": 108, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/MessageStore.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 06:03:07", "sha256": "c9c9d42c8cb0d107905b903d5b25b4c71e7b77c6c6308ed73ece722086f6e15e", "hloubka": 1, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://creativecommons.org/licenses/by/4.0/", "https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "https://www.architectelevator.com/book", "https://www.cloudstrategybook.com/", "https://www.platformstrategybook.info/"]} {"url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/MessageTransformationIntro.html", "titulek": "Introduction to Message Transformation - Enterprise Integration Patterns", "h1": "", "popis": "As described in the Message Translator, applications that need to be integrated by a messaging system rarely agree on a common data format. For example, an accounting system is going to have a different notion of a Customer object than a customer relationship management system. On top of that, one system may persist data in a relational model, while another application uses flat files or XML documents. Integrating existing applications often times means that we do not have the liberty of modifying the applications to work more easily with other systems. Rather, the integration solution has to accommodate and resolve the differences between the varying systems. The Message Translator pattern offers a general solution to such differences in data formats. This chapter explores specific variants of the Message Translator.", "klicova_slova": "Introduction to Message Transformation,integration, messaging, events, patterns, event-driven, coupling, eai, middleware, application integration, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns", "og:title": "Introduction to Message Transformation - Enterprise Integration Patterns", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/MessageTransformationIntro.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/eip1_patterns_wide.png"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Integration Pattern Language"}], "markdown": "| | Introduction to Message Transformation[Messaging Patterns](index.html) » [Message Transformation](MessageTransformationIntro.html) | [Contents](toc.html)[⇐ Prev](MessageBroker.html)[Next ⇒](EnvelopeWrapper.html) |\n| --- | --- | --- |\n\nAs described in the [*Message Translator*](MessageTranslator.html), applications that need to be integrated by a messaging system rarely agree on a common data format. For example, an accounting system is going to have a different notion of a Customer object than a customer relationship management system. On top of that, one system may persist data in a relational model, while another application uses flat files or XML documents. Integrating existing applications often times means that we do not have the liberty of modifying the applications to work more easily with other systems. Rather, the integration solution has to accommodate and resolve the differences between the varying systems. The [*Message Translator*](MessageTranslator.html) pattern offers a general solution to such differences in data formats. This chapter explores specific variants of the [*Message Translator*](MessageTranslator.html).\n\nMost messaging systems place specific requirements on the format and contents of a message header. We wrap message payload data into an [*Envelope Wrapper*](EnvelopeWrapper.html) that is compliant with the requirements of the messaging infrastructure. Multiple [*Envelope Wrapper*](EnvelopeWrapper.html)s can be combined if a message is passed through across different messaging infrastructures.\n\nA [*Content Enricher*](DataEnricher.html) is needed if the target system requires data fields that the originating system cannot supply. It has the ability to look up missing information or compute it from the available data. The [*Content Filter*](ContentFilter.html) does the opposite -- it removes unwanted data from a message. The [*Claim Check*](StoreInLibrary.html) also removes data from a message but stores it for later retrieval. The [*Normalizer*](Normalizer.html) translates messages arriving in many different formats into a common format.\n\nMessage transformation is a deep topic in integration. [*Message Channel*](MessageChannel.html)s and [*Message Router*](MessageRouter.html)s can remove basic dependencies between applications by eliminating the need for one application to be aware of the other's location. One application can send a message to a [*Message Channel*](MessageChannel.html) and worry about what application will consume it. However, message formats impose another set of dependency. If one application has to format messages in another application's data format, the decoupling in form of the [*Message Channel*](MessageChannel.html) is somewhat of an illusion. Any change to the receiving application or the switch from one receiving application to another still requires a change to the sending application. [*Message Translator*](MessageTranslator.html)s help remove this dependency. Due to the importance of message formats and the transformation between them, we can view any integration solution as two parallel systems. One deals with actual message data, the other one with metadata, the data that describes message data. Many of the patterns used in creation of the message flow can also be used to manage metadata. For example, a [*Channel Adapter*](ChannelAdapter.html) can not only move messages in an out of a system, but it can also extract metadata from external applications and load it into a central metadata repository. Using this repository the integration developers can define transformations between the application metadata and the [*Canonical Data Model*](CanonicalDataModel.html).\n\n*Metadata Integration*\n\nFor example, the picture above depicts the integration between two applications that need to exchange customer information. Each system has a slightly different definition of customer data. Application A stores first and last name in two separate fields whereas Application B stores it in one field. Likewise, Application A stores the customer's ZIP code and not the state while Application B stores only the state code. Messages flowing from Application A to Application B have to undergo a transformation so that Application B can receive data in the required format. Creating the transformation is much simplified if the [*Channel Adapter*](ChannelAdapter.html)s can also extract metadata, e.g. data describing the message format. This metadata can then be loaded into a repository, greatly simplifying the configuration and validation of the [*Message Translator*](MessageTranslator.html). The metadata can be stored in a variety of formats. A common format used for XML messages are XSD's -- XML Schema Definitions. Other EAI tools implement proprietary metadata formats, but allow administrators to import and export of metadata into different formats.\n\nMany of the principles incorporated in these patterns are applicable outside of messaging integration. For example, [*File Transfer*](FileTransferIntegration.html) has to perform transformation functions between systems. Likewise, [*Remote Procedure Invocation*](EncapsulatedSynchronousIntegration.html) has to make requests in the data format specified by the service that is to be called even if the application's internal format is different.\n\nThis chapter describes variations of data transformation tasks. It does not go into the details of structural transformations between entities (e.g., how to you transform between two data models if one model supports many-to-many relationships between customer and address but the other model includes address fields on the customer record). One of the oldest and still most relevant books on the topic of data representation and relationships is [[Kent](http://www.amazon.com/exec/obidos/ASIN/1585009709/enterpriseint-20)].\n\n## Integration Pattern Language\n\n[Message Construct.](MessageConstructionIntro.html)\n\n[Message](Message.html)\n\n[Command Message](CommandMessage.html)\n\n[Document Message](DocumentMessage.html)\n\n[Event Message](EventMessage.html)\n\n[Request-Reply](RequestReply.html)\n\n[Return Address](ReturnAddress.html)\n\n[Correlation Identifier](CorrelationIdentifier.html)\n\n[Message Sequence](MessageSequence.html)\n\n[Message Expiration](MessageExpiration.html)\n\n[Format Indicator](FormatIndicator.html)\n\n[Message Routing](MessageRoutingIntro.html)\n\n[Pipes-and-Filters](PipesAndFilters.html)\n\n[Message Router](MessageRouter.html)\n\n[Content-based Router](ContentBasedRouter.html)\n\n[Message Filter](Filter.html)\n\n[Dynamic Router](DynamicRouter.html)\n\n[Recipient List](RecipientList.html)\n\n[Splitter](Sequencer.html)\n\n[Aggregator](Aggregator.html)\n\n[Resequencer](Resequencer.html)\n\n[Composed Msg. Processor](DistributionAggregate.html)\n\n[Scatter-Gather](BroadcastAggregate.html)\n\n[Routing Slip](RoutingTable.html)\n\n[Process Manager](ProcessManager.html)\n\n[Message Broker](MessageBroker.html)\n\n[Message\nTransformation](MessageTransformationIntro.html)\n\n[Message Translator](MessageTranslator.html)\n\n[Envelope Wrapper](EnvelopeWrapper.html)\n\n[Content Enricher](DataEnricher.html)\n\n[Content Filter](ContentFilter.html)\n\n[Claim Check](StoreInLibrary.html)\n\n[Normalizer](Normalizer.html)\n\n[Canonical Data Model](CanonicalDataModel.html)\n\n[Messaging Endpoints](MessagingEndpointsIntro.html)\n\n[Message Endpoint](MessageEndpoint.html)\n\n[Messaging Gateway](MessagingGateway.html)\n\n[Messaging Mapper](MessagingMapper.html)\n\n[Transactional Client](TransactionalClient.html)\n\n[Polling Consumer](PollingConsumer.html)\n\n[Event-driven Consumer](EventDrivenConsumer.html)\n\n[Competing Consumers](CompetingConsumers.html)\n\n[Message Dispatcher](MessageDispatcher.html)\n\n[Selective Consumer](MessageSelector.html)\n\n[Durable Subscriber](DurableSubscription.html)\n\n[Idempotent Receiver](IdempotentReceiver.html)\n\n[Service Activator](MessagingAdapter.html)\n\n[Messaging Channels](MessagingChannelsIntro.html)\n\n[Message Channel](MessageChannel.html)\n\n[Point-to-Point Channel](PointToPointChannel.html)\n\n[Publish-Subscr. Channel](PublishSubscribeChannel.html)\n\n[Datatype Channel](DatatypeChannel.html)\n\n[Invalid Message Channel](InvalidMessageChannel.html)\n\n[Dead Letter Channel](DeadLetterChannel.html)\n\n[Guaranteed Delivery](GuaranteedMessaging.html)\n\n[Channel Adapter](ChannelAdapter.html)\n\n[Messaging Bridge](MessagingBridge.html)\n\n[Message Bus](MessageBus.html)\n\n[Systems Mgmt.](SystemManagementIntro.html)\n\n[Control Bus](ControlBus.html)\n\n[Detour](Detour.html)\n\n[Wire Tap](WireTap.html)\n\n[Message History](MessageHistory.html)\n\n[Message Store](MessageStore.html)\n\n[Smart Proxy](SmartProxy.html)\n\n[Test Message](TestMessage.html)\n\n[Channel Purger](ChannelPurger.html)", "znaku_textu": 8566, "slov": 965, "odkazu": 108, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/MessageTransformationIntro.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 06:02:38", "sha256": "f1b3821d4514d6393531201e0f15c3d0a2c860aa9c42cff0a9fe980b796eca8c", "hloubka": 1, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://www.amazon.com/exec/obidos/ASIN/1585009709/enterpriseint-20", "https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "https://www.architectelevator.com/book", "https://www.cloudstrategybook.com/", "https://www.platformstrategybook.info/"]} {"url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/MessageTranslator.html", "titulek": "Message Translator - Enterprise Integration Patterns", "h1": "", "popis": "How can systems using different data formats communicate with each other using messaging?", "klicova_slova": "Message Translator,integration, messaging, events, patterns, event-driven, coupling, eai, middleware, application integration, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns", "og:title": "Message Translator - Enterprise Integration Patterns", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/MessageTranslator.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/MessageTranslator.gif"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Integration Pattern Language"}], "markdown": "| | Message Translator[Messaging Patterns](index.html) » [Messaging Systems](MessagingComponentsIntro.html) | [Contents](toc.html)[⇐ Prev](MessageRouter.html)[Next ⇒](MessageEndpoint.html) |\n| --- | --- | --- |\n\nThe previous patterns describe how to construct messages and how to route them to the correct destination. In many cases, enterprise integration solutions route messages between existing applications such as legacy systems, packaged applications, homegrown custom applications, or applications operated by external partners. Each of these applications is usually built around a proprietary data model. Each application may have a slightly different notion of the *Customer* entity , the attributes that define a *Customer* and which other entities a *Customer* is related to. For example, the accounting system may be more interested in the customer's tax payer ID numbers while the customer-relationship management (CRM) system stores phone numbers and addresses. The application’s underlying data model usually drives the design of the physical database schema, an interface file format or a programming interface (API) -- those entities that an integration solution has to interface with. As a result, the applications expect to receive messages that mimic the application's internal data format.\n\nIn addition to the proprietary data models and data formats incorporated in the various applications, integration solutions often times interact with standardized data formats that seek to be independent from specific applications. There are a number of consortia and standards bodies that define these protocols, such as RosettaNet, ebXML, OAGIS and many other, industry specific consortia. In many cases, the integration solution needs to be able to communicate with external parties using the ‘official’ data formats while the internal systems are based on proprietary formats.\n\nHow can systems using different data formats communicate with each other using messaging?\n\nUse a special filter, a *Message Translator*, between other filters or applications to translate one data format into another.\n\nThe *Message Translator* is the messaging equivalent of the *Adapter* pattern described in [[GoF](http://www.amazon.com/exec/obidos/ASIN/0201633612/enterpriseint-20)]. An adapter converts the interface of a component into a another interface so it can be used in a different context.\n\n...\nRead the entire pattern in the book [Enterprise Integration Patterns](/books1.html)\n\n**Related patterns:**\n\n[*Canonical Data Model*](CanonicalDataModel.html), [*Channel Adapter*](ChannelAdapter.html), [*Content Filter*](ContentFilter.html), [*Content Enricher*](DataEnricher.html), [*Message Channel*](MessageChannel.html), [*Message Endpoint*](MessageEndpoint.html), [*Message Router*](MessageRouter.html), [*Message Translator*](MessageTranslator.html), [*Messaging Bridge*](MessagingBridge.html), [*Normalizer*](Normalizer.html), [*Pipes and Filters*](PipesAndFilters.html), [*Shared Database*](SharedDataBaseIntegration.html), [*Claim Check*](StoreInLibrary.html)\n\n---\n\n## Integration Pattern Language\n\n[Message Construct.](MessageConstructionIntro.html)\n\n[Message](Message.html)\n\n[Command Message](CommandMessage.html)\n\n[Document Message](DocumentMessage.html)\n\n[Event Message](EventMessage.html)\n\n[Request-Reply](RequestReply.html)\n\n[Return Address](ReturnAddress.html)\n\n[Correlation Identifier](CorrelationIdentifier.html)\n\n[Message Sequence](MessageSequence.html)\n\n[Message Expiration](MessageExpiration.html)\n\n[Format Indicator](FormatIndicator.html)\n\n[Message Routing](MessageRoutingIntro.html)\n\n[Pipes-and-Filters](PipesAndFilters.html)\n\n[Message Router](MessageRouter.html)\n\n[Content-based Router](ContentBasedRouter.html)\n\n[Message Filter](Filter.html)\n\n[Dynamic Router](DynamicRouter.html)\n\n[Recipient List](RecipientList.html)\n\n[Splitter](Sequencer.html)\n\n[Aggregator](Aggregator.html)\n\n[Resequencer](Resequencer.html)\n\n[Composed Msg. Processor](DistributionAggregate.html)\n\n[Scatter-Gather](BroadcastAggregate.html)\n\n[Routing Slip](RoutingTable.html)\n\n[Process Manager](ProcessManager.html)\n\n[Message Broker](MessageBroker.html)\n\n[Message\nTransformation](MessageTransformationIntro.html)\n\n[Message Translator](MessageTranslator.html)\n\n[Envelope Wrapper](EnvelopeWrapper.html)\n\n[Content Enricher](DataEnricher.html)\n\n[Content Filter](ContentFilter.html)\n\n[Claim Check](StoreInLibrary.html)\n\n[Normalizer](Normalizer.html)\n\n[Canonical Data Model](CanonicalDataModel.html)\n\n[Messaging Endpoints](MessagingEndpointsIntro.html)\n\n[Message Endpoint](MessageEndpoint.html)\n\n[Messaging Gateway](MessagingGateway.html)\n\n[Messaging Mapper](MessagingMapper.html)\n\n[Transactional Client](TransactionalClient.html)\n\n[Polling Consumer](PollingConsumer.html)\n\n[Event-driven Consumer](EventDrivenConsumer.html)\n\n[Competing Consumers](CompetingConsumers.html)\n\n[Message Dispatcher](MessageDispatcher.html)\n\n[Selective Consumer](MessageSelector.html)\n\n[Durable Subscriber](DurableSubscription.html)\n\n[Idempotent Receiver](IdempotentReceiver.html)\n\n[Service Activator](MessagingAdapter.html)\n\n[Messaging Channels](MessagingChannelsIntro.html)\n\n[Message Channel](MessageChannel.html)\n\n[Point-to-Point Channel](PointToPointChannel.html)\n\n[Publish-Subscr. Channel](PublishSubscribeChannel.html)\n\n[Datatype Channel](DatatypeChannel.html)\n\n[Invalid Message Channel](InvalidMessageChannel.html)\n\n[Dead Letter Channel](DeadLetterChannel.html)\n\n[Guaranteed Delivery](GuaranteedMessaging.html)\n\n[Channel Adapter](ChannelAdapter.html)\n\n[Messaging Bridge](MessagingBridge.html)\n\n[Message Bus](MessageBus.html)\n\n[Systems Mgmt.](SystemManagementIntro.html)\n\n[Control Bus](ControlBus.html)\n\n[Detour](Detour.html)\n\n[Wire Tap](WireTap.html)\n\n[Message History](MessageHistory.html)\n\n[Message Store](MessageStore.html)\n\n[Smart Proxy](SmartProxy.html)\n\n[Test Message](TestMessage.html)\n\n[Channel Purger](ChannelPurger.html)", "znaku_textu": 5780, "slov": 530, "odkazu": 109, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/MessageTranslator.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 06:01:59", "sha256": "b009179437399ba4b8107ba944487e08c3788cc8b5afeba6ac3a81c5d7d0da0b", "hloubka": 1, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://www.amazon.com/exec/obidos/ASIN/0201633612/enterpriseint-20", "http://creativecommons.org/licenses/by/4.0/", "https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "https://www.architectelevator.com/book", "https://www.cloudstrategybook.com/", "https://www.platformstrategybook.info/"]} {"url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/Messaging.html", "titulek": "Messaging - Enterprise Integration Patterns", "h1": "", "popis": "How can I integrate multiple applications so that they work together and can exchange information?", "klicova_slova": "Messaging,integration, messaging, events, patterns, event-driven, coupling, eai, middleware, application integration, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns", "og:title": "Messaging - Enterprise Integration Patterns", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/Messaging.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/Messaging.gif"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Integration Pattern Language"}], "markdown": "| | Messaging[Messaging Patterns](index.html) » [Integration Styles](IntegrationStylesIntro.html) | [Contents](toc.html)[⇐ Prev](EncapsulatedSynchronousIntegration.html)[Next ⇒](MessagingComponentsIntro.html) |\n| --- | --- | --- |\n\nAn enterprise has multiple applications that are being built independently, with different languages and platforms. The enterprise needs to share data and processes in a responsive way.\n\nHow can I integrate multiple applications so that they work together and can exchange information?\n\nUse *Messaging* to transfer packets of data frequently, immediately, reliably, and asynchronously, using customizable formats.\n\nAsynchronous messaging is fundamentally a pragmatic reaction to the\nproblems of distributed systems. Sending a message does not require\nboth systems to be up and ready at the same time. Furthermore, thinking\nabout the communication in an asynchronous manner forces developers to\nrecognize that working with a remote application is slower, which encourages\ndesign of components with high cohesion (lots of work locally) and low adhesion\n(selective work remotely).\n\nMessaging systems also allow much of the decoupling you get when\nusing [*File Transfer*](FileTransferIntegration.html). Messages can be\ntransformed in transit without either the sender or receiver knowing\nabout the transformation. Indeed the decoupling allows integrators to\nbroadcast messages to multiple receivers, support choosing one of many\npotential receivers, and other topologies that allow integration to be\nseparated from the development of the applications. Since human issues\ntend to separate application development from application integration,\nthis approach works with human nature rather than against it.\n\n...\nRead the entire pattern in the book [Enterprise Integration Patterns](/books1.html)\n\n**Related patterns:**\n\n[*Remote Procedure Invocation*](EncapsulatedSynchronousIntegration.html), [*File Transfer*](FileTransferIntegration.html), [*Message*](Message.html), [*Message Channel*](MessageChannel.html), [*Message Endpoint*](MessageEndpoint.html), [*Message Router*](MessageRouter.html), [*Message Translator*](MessageTranslator.html), [*Shared Database*](SharedDataBaseIntegration.html)\n\n**Further reading:**\n\n- [What Does It Mean to Use Messaging?](/ramblings/74_messaging.html)\n- [Integration Styles](/ramblings/08_integrationstyles.html)\n\n---\n\n## Integration Pattern Language\n\n[Message Construct.](MessageConstructionIntro.html)\n\n[Message](Message.html)\n\n[Command Message](CommandMessage.html)\n\n[Document Message](DocumentMessage.html)\n\n[Event Message](EventMessage.html)\n\n[Request-Reply](RequestReply.html)\n\n[Return Address](ReturnAddress.html)\n\n[Correlation Identifier](CorrelationIdentifier.html)\n\n[Message Sequence](MessageSequence.html)\n\n[Message Expiration](MessageExpiration.html)\n\n[Format Indicator](FormatIndicator.html)\n\n[Message Routing](MessageRoutingIntro.html)\n\n[Pipes-and-Filters](PipesAndFilters.html)\n\n[Message Router](MessageRouter.html)\n\n[Content-based Router](ContentBasedRouter.html)\n\n[Message Filter](Filter.html)\n\n[Dynamic Router](DynamicRouter.html)\n\n[Recipient List](RecipientList.html)\n\n[Splitter](Sequencer.html)\n\n[Aggregator](Aggregator.html)\n\n[Resequencer](Resequencer.html)\n\n[Composed Msg. Processor](DistributionAggregate.html)\n\n[Scatter-Gather](BroadcastAggregate.html)\n\n[Routing Slip](RoutingTable.html)\n\n[Process Manager](ProcessManager.html)\n\n[Message Broker](MessageBroker.html)\n\n[Message\nTransformation](MessageTransformationIntro.html)\n\n[Message Translator](MessageTranslator.html)\n\n[Envelope Wrapper](EnvelopeWrapper.html)\n\n[Content Enricher](DataEnricher.html)\n\n[Content Filter](ContentFilter.html)\n\n[Claim Check](StoreInLibrary.html)\n\n[Normalizer](Normalizer.html)\n\n[Canonical Data Model](CanonicalDataModel.html)\n\n[Messaging Endpoints](MessagingEndpointsIntro.html)\n\n[Message Endpoint](MessageEndpoint.html)\n\n[Messaging Gateway](MessagingGateway.html)\n\n[Messaging Mapper](MessagingMapper.html)\n\n[Transactional Client](TransactionalClient.html)\n\n[Polling Consumer](PollingConsumer.html)\n\n[Event-driven Consumer](EventDrivenConsumer.html)\n\n[Competing Consumers](CompetingConsumers.html)\n\n[Message Dispatcher](MessageDispatcher.html)\n\n[Selective Consumer](MessageSelector.html)\n\n[Durable Subscriber](DurableSubscription.html)\n\n[Idempotent Receiver](IdempotentReceiver.html)\n\n[Service Activator](MessagingAdapter.html)\n\n[Messaging Channels](MessagingChannelsIntro.html)\n\n[Message Channel](MessageChannel.html)\n\n[Point-to-Point Channel](PointToPointChannel.html)\n\n[Publish-Subscr. Channel](PublishSubscribeChannel.html)\n\n[Datatype Channel](DatatypeChannel.html)\n\n[Invalid Message Channel](InvalidMessageChannel.html)\n\n[Dead Letter Channel](DeadLetterChannel.html)\n\n[Guaranteed Delivery](GuaranteedMessaging.html)\n\n[Channel Adapter](ChannelAdapter.html)\n\n[Messaging Bridge](MessagingBridge.html)\n\n[Message Bus](MessageBus.html)\n\n[Systems Mgmt.](SystemManagementIntro.html)\n\n[Control Bus](ControlBus.html)\n\n[Detour](Detour.html)\n\n[Wire Tap](WireTap.html)\n\n[Message History](MessageHistory.html)\n\n[Message Store](MessageStore.html)\n\n[Smart Proxy](SmartProxy.html)\n\n[Test Message](TestMessage.html)\n\n[Channel Purger](ChannelPurger.html)", "znaku_textu": 5090, "slov": 417, "odkazu": 110, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/Messaging.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 06:01:53", "sha256": "d868aeb114e06193cb59708e0ef8c492f273fe9cb0ddfadbfba533f101b6c3dd", "hloubka": 1, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://creativecommons.org/licenses/by/4.0/", "https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "https://www.architectelevator.com/book", "https://www.cloudstrategybook.com/", "https://www.platformstrategybook.info/"]} {"url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/MessagingAdapter.html", "titulek": "Service Activator - Enterprise Integration Patterns", "h1": "", "popis": "How can an application design a service to be invoked both via various messaging technologies and via non-messaging techniques?", "klicova_slova": "Service Activator,integration, messaging, events, patterns, event-driven, coupling, eai, middleware, application integration, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns", "og:title": "Service Activator - Enterprise Integration Patterns", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/MessagingAdapter.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/MessagingAdapterSolution.gif"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Integration Pattern Language"}], "markdown": "Messaging Patterns\n\n[Messaging Patterns](index.html)\n\n- [Integration Styles](IntegrationStylesIntro.html)\n- [Messaging Systems](MessagingComponentsIntro.html)\n- [Messaging Channels](MessagingChannelsIntro.html)\n- [Message Construction](MessageConstructionIntro.html)\n- [Interlude: Simple Messaging](SimpleMessagingIntro.html)\n- [Message Routing](MessageRoutingIntro.html)\n- [Message Transformation](MessageTransformationIntro.html)\n- [Interlude: Composed Messaging](ComposedMessagingExample.html)\n- [Messaging Endpoints](MessagingEndpointsIntro.html)\n- [System Management](SystemManagementIntro.html)\n- Interlude: Systems Management Example\n- Integration Patterns in Practice\n- Concluding Remarks\n- Appendices\n\n| | Service Activator[Messaging Patterns](index.html) » [Messaging Endpoints](MessagingEndpointsIntro.html) | [Contents](toc.html)[⇐ Prev](IdempotentReceiver.html)[Next ⇒](SystemManagementIntro.html) |\n| --- | --- | --- |\n\nAn application has a service that it would like to make available to other applications.\n\nHow can an application design a service to be invoked both via various messaging technologies and via non-messaging techniques?\n\nDesign a *Service Activator* that connects the messages on the channel to the service being accessed.\n\nA *Service Activator* can be one-way (request only) or two-way ([*Request-Reply*](RequestReply.html)). The service can be as simple as a method call—synchronous and non-remote—perhaps part of a Service Layer [[EAA](http://www.amazon.com/exec/obidos/ASIN/0321127420/enterpriseint-20)]. The activator can be hard-coded to always invoke the same service, or can use reflection to invoke the service indicated by the message. The activator handles all of the messaging details and invokes the service like any other client, such that the service doesn’t even know it’s being invoked through messaging.\n\n...\nRead the entire pattern in the book [Enterprise Integration Patterns](/books1.html)\n\n**Related patterns:**\n\n[*Command Message*](CommandMessage.html), [*Competing Consumers*](CompetingConsumers.html), [*Event-Driven Consumer*](EventDrivenConsumer.html), [*Invalid Message Channel*](InvalidMessageChannel.html), [*Message Dispatcher*](MessageDispatcher.html), [*Message Endpoint*](MessageEndpoint.html), [*Messaging Gateway*](MessagingGateway.html), [*Polling Consumer*](PollingConsumer.html), [*Request-Reply*](RequestReply.html), [*Transactional Client*](TransactionalClient.html)\n\n---\n\n## Integration Pattern Language\n\n[Message Construct.](MessageConstructionIntro.html)\n\n[Message](Message.html)\n\n[Command Message](CommandMessage.html)\n\n[Document Message](DocumentMessage.html)\n\n[Event Message](EventMessage.html)\n\n[Request-Reply](RequestReply.html)\n\n[Return Address](ReturnAddress.html)\n\n[Correlation Identifier](CorrelationIdentifier.html)\n\n[Message Sequence](MessageSequence.html)\n\n[Message Expiration](MessageExpiration.html)\n\n[Format Indicator](FormatIndicator.html)\n\n[Message Routing](MessageRoutingIntro.html)\n\n[Pipes-and-Filters](PipesAndFilters.html)\n\n[Message Router](MessageRouter.html)\n\n[Content-based Router](ContentBasedRouter.html)\n\n[Message Filter](Filter.html)\n\n[Dynamic Router](DynamicRouter.html)\n\n[Recipient List](RecipientList.html)\n\n[Splitter](Sequencer.html)\n\n[Aggregator](Aggregator.html)\n\n[Resequencer](Resequencer.html)\n\n[Composed Msg. Processor](DistributionAggregate.html)\n\n[Scatter-Gather](BroadcastAggregate.html)\n\n[Routing Slip](RoutingTable.html)\n\n[Process Manager](ProcessManager.html)\n\n[Message Broker](MessageBroker.html)\n\n[Message\nTransformation](MessageTransformationIntro.html)\n\n[Message Translator](MessageTranslator.html)\n\n[Envelope Wrapper](EnvelopeWrapper.html)\n\n[Content Enricher](DataEnricher.html)\n\n[Content Filter](ContentFilter.html)\n\n[Claim Check](StoreInLibrary.html)\n\n[Normalizer](Normalizer.html)\n\n[Canonical Data Model](CanonicalDataModel.html)\n\n[Messaging Endpoints](MessagingEndpointsIntro.html)\n\n[Message Endpoint](MessageEndpoint.html)\n\n[Messaging Gateway](MessagingGateway.html)\n\n[Messaging Mapper](MessagingMapper.html)\n\n[Transactional Client](TransactionalClient.html)\n\n[Polling Consumer](PollingConsumer.html)\n\n[Event-driven Consumer](EventDrivenConsumer.html)\n\n[Competing Consumers](CompetingConsumers.html)\n\n[Message Dispatcher](MessageDispatcher.html)\n\n[Selective Consumer](MessageSelector.html)\n\n[Durable Subscriber](DurableSubscription.html)\n\n[Idempotent Receiver](IdempotentReceiver.html)\n\n[Service Activator](MessagingAdapter.html)\n\n[Messaging Channels](MessagingChannelsIntro.html)\n\n[Message Channel](MessageChannel.html)\n\n[Point-to-Point Channel](PointToPointChannel.html)\n\n[Publish-Subscr. Channel](PublishSubscribeChannel.html)\n\n[Datatype Channel](DatatypeChannel.html)\n\n[Invalid Message Channel](InvalidMessageChannel.html)\n\n[Dead Letter Channel](DeadLetterChannel.html)\n\n[Guaranteed Delivery](GuaranteedMessaging.html)\n\n[Channel Adapter](ChannelAdapter.html)\n\n[Messaging Bridge](MessagingBridge.html)\n\n[Message Bus](MessageBus.html)\n\n[Systems Mgmt.](SystemManagementIntro.html)\n\n[Control Bus](ControlBus.html)\n\n[Detour](Detour.html)\n\n[Wire Tap](WireTap.html)\n\n[Message History](MessageHistory.html)\n\n[Message Store](MessageStore.html)\n\n[Smart Proxy](SmartProxy.html)\n\n[Test Message](TestMessage.html)\n\n[Channel Purger](ChannelPurger.html)\n\n- » [Read the latest in My Blog](/ramblings)\n- » [Get more insights from My Articles](/articles.html)\n- » [See me live in my Upcoming Talks](/talks)\n\nYou can reuse the following elements under the [Creative Commons Attribution](http://creativecommons.org/licenses/by/4.0/) license: pattern icon, pattern name, problem and solution statements (in bold), and the sketch. Other portions are protected by copyright.\n\n[Enterprise Integration Patterns](https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20)\nThe de-facto language for designing asynchronous, distributed systems. Over 100,000 copies sold.\n\n[The Software Architect Elevator](https://www.architectelevator.com/book)\n\n Rethink the role of architects as a connecting element across organizational layers. Acquire the technical, communication, and organizational skills to succeed in this new role.\n\n[Cloud Strategy](https://www.cloudstrategybook.com)\n\n Make your cloud migration a success by translating high-level goals into conscious decisions with well-understood trade-offs.\n\n[Platform Strategy](https://www.platformstrategybook.info)\n\n Platforms can boost innovation through harmonization, but they aren't easy to build. Learn from over a decade of designing and rolling out IT platforms.", "znaku_textu": 6393, "slov": 527, "odkazu": 109, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/MessagingAdapter.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 06:03:01", "sha256": "1743682be5bf9efa2141801b7c1e8bc6a02b32c12583e31fd79dd1e106fc29aa", "hloubka": 1, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://www.amazon.com/exec/obidos/ASIN/0321127420/enterpriseint-20", "http://creativecommons.org/licenses/by/4.0/", "https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "https://www.architectelevator.com/book", "https://www.cloudstrategybook.com/", "https://www.platformstrategybook.info/"]} {"url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/MessagingBridge.html", "titulek": "Messaging Bridge - Enterprise Integration Patterns", "h1": "", "popis": "How can multiple messaging systems be connected so that messages available on one are also available on the others?", "klicova_slova": "Messaging Bridge,integration, messaging, events, patterns, event-driven, coupling, eai, middleware, application integration, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns", "og:title": "Messaging Bridge - Enterprise Integration Patterns", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/MessagingBridge.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/MessagingBridge.gif"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Integration Pattern Language"}], "markdown": "Messaging Patterns\n\n[Messaging Patterns](index.html)\n\n- [Integration Styles](IntegrationStylesIntro.html)\n- [Messaging Systems](MessagingComponentsIntro.html)\n- [Messaging Channels](MessagingChannelsIntro.html)\n- [Message Construction](MessageConstructionIntro.html)\n- [Interlude: Simple Messaging](SimpleMessagingIntro.html)\n- [Message Routing](MessageRoutingIntro.html)\n- [Message Transformation](MessageTransformationIntro.html)\n- [Interlude: Composed Messaging](ComposedMessagingExample.html)\n- [Messaging Endpoints](MessagingEndpointsIntro.html)\n- [System Management](SystemManagementIntro.html)\n- Interlude: Systems Management Example\n- Integration Patterns in Practice\n- Concluding Remarks\n- Appendices\n\n| | Messaging Bridge[Messaging Patterns](index.html) » [Messaging Channels](MessagingChannelsIntro.html) | [Contents](toc.html)[⇐ Prev](ChannelAdapter.html)[Next ⇒](MessageBus.html) |\n| --- | --- | --- |\n\nAn enterprise is using [*Messaging*](Messaging.html) to enable applications to communicate. However, the enterprise uses more than one messaging system, which confuses the issue of which messaging system an application should connect to.\n\nHow can multiple messaging systems be connected so that messages available on one are also available on the others?\n\nUse a *Messaging Bridge*, a connection between messaging systems, to replicate messages between systems.\n\nTypically, there is no practical way to connect two complete messaging systems, so instead we connect individual, corresponding channels between the messaging systems. The *Messaging Bridge* is a set of [*Channel Adapter*](ChannelAdapter.html)s, where the non-messaging client is a actually another messaging system, and where each pair of adapters connects a pair of corresponding channels. The bridge acts as map from one set of channels to the other, and also transforms the message format of one system to the other. The connected channels may be used to transmit messages between traditional clients of the messaging system, or strictly for messages intended for other messaging systems.\n\n...\nRead the entire pattern in the book [Enterprise Integration Patterns](/books1.html)\n\n**Related patterns:**\n\n[*Channel Adapter*](ChannelAdapter.html), [*Emerging Standards and Futures in Enterprise Integration*](Future.html), [*Message Channel*](MessageChannel.html), [*Message Endpoint*](MessageEndpoint.html), [*Messaging*](Messaging.html)\n\n---\n\n## Integration Pattern Language\n\n[Message Construct.](MessageConstructionIntro.html)\n\n[Message](Message.html)\n\n[Command Message](CommandMessage.html)\n\n[Document Message](DocumentMessage.html)\n\n[Event Message](EventMessage.html)\n\n[Request-Reply](RequestReply.html)\n\n[Return Address](ReturnAddress.html)\n\n[Correlation Identifier](CorrelationIdentifier.html)\n\n[Message Sequence](MessageSequence.html)\n\n[Message Expiration](MessageExpiration.html)\n\n[Format Indicator](FormatIndicator.html)\n\n[Message Routing](MessageRoutingIntro.html)\n\n[Pipes-and-Filters](PipesAndFilters.html)\n\n[Message Router](MessageRouter.html)\n\n[Content-based Router](ContentBasedRouter.html)\n\n[Message Filter](Filter.html)\n\n[Dynamic Router](DynamicRouter.html)\n\n[Recipient List](RecipientList.html)\n\n[Splitter](Sequencer.html)\n\n[Aggregator](Aggregator.html)\n\n[Resequencer](Resequencer.html)\n\n[Composed Msg. Processor](DistributionAggregate.html)\n\n[Scatter-Gather](BroadcastAggregate.html)\n\n[Routing Slip](RoutingTable.html)\n\n[Process Manager](ProcessManager.html)\n\n[Message Broker](MessageBroker.html)\n\n[Message\nTransformation](MessageTransformationIntro.html)\n\n[Message Translator](MessageTranslator.html)\n\n[Envelope Wrapper](EnvelopeWrapper.html)\n\n[Content Enricher](DataEnricher.html)\n\n[Content Filter](ContentFilter.html)\n\n[Claim Check](StoreInLibrary.html)\n\n[Normalizer](Normalizer.html)\n\n[Canonical Data Model](CanonicalDataModel.html)\n\n[Messaging Endpoints](MessagingEndpointsIntro.html)\n\n[Message Endpoint](MessageEndpoint.html)\n\n[Messaging Gateway](MessagingGateway.html)\n\n[Messaging Mapper](MessagingMapper.html)\n\n[Transactional Client](TransactionalClient.html)\n\n[Polling Consumer](PollingConsumer.html)\n\n[Event-driven Consumer](EventDrivenConsumer.html)\n\n[Competing Consumers](CompetingConsumers.html)\n\n[Message Dispatcher](MessageDispatcher.html)\n\n[Selective Consumer](MessageSelector.html)\n\n[Durable Subscriber](DurableSubscription.html)\n\n[Idempotent Receiver](IdempotentReceiver.html)\n\n[Service Activator](MessagingAdapter.html)\n\n[Messaging Channels](MessagingChannelsIntro.html)\n\n[Message Channel](MessageChannel.html)\n\n[Point-to-Point Channel](PointToPointChannel.html)\n\n[Publish-Subscr. Channel](PublishSubscribeChannel.html)\n\n[Datatype Channel](DatatypeChannel.html)\n\n[Invalid Message Channel](InvalidMessageChannel.html)\n\n[Dead Letter Channel](DeadLetterChannel.html)\n\n[Guaranteed Delivery](GuaranteedMessaging.html)\n\n[Channel Adapter](ChannelAdapter.html)\n\n[Messaging Bridge](MessagingBridge.html)\n\n[Message Bus](MessageBus.html)\n\n[Systems Mgmt.](SystemManagementIntro.html)\n\n[Control Bus](ControlBus.html)\n\n[Detour](Detour.html)\n\n[Wire Tap](WireTap.html)\n\n[Message History](MessageHistory.html)\n\n[Message Store](MessageStore.html)\n\n[Smart Proxy](SmartProxy.html)\n\n[Test Message](TestMessage.html)\n\n[Channel Purger](ChannelPurger.html)\n\n- » [Read the latest in My Blog](/ramblings)\n- » [Get more insights from My Articles](/articles.html)\n- » [See me live in my Upcoming Talks](/talks)\n\nYou can reuse the following elements under the [Creative Commons Attribution](http://creativecommons.org/licenses/by/4.0/) license: pattern icon, pattern name, problem and solution statements (in bold), and the sketch. Other portions are protected by copyright.\n\n[Enterprise Integration Patterns](https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20)\nThe de-facto language for designing asynchronous, distributed systems. Over 100,000 copies sold.\n\n[The Software Architect Elevator](https://www.architectelevator.com/book)\n\n Rethink the role of architects as a connecting element across organizational layers. Acquire the technical, communication, and organizational skills to succeed in this new role.\n\n[Cloud Strategy](https://www.cloudstrategybook.com)\n\n Make your cloud migration a success by translating high-level goals into conscious decisions with well-understood trade-offs.\n\n[Platform Strategy](https://www.platformstrategybook.info)\n\n Platforms can boost innovation through harmonization, but they aren't easy to build. Learn from over a decade of designing and rolling out IT platforms.", "znaku_textu": 6371, "slov": 545, "odkazu": 108, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/MessagingBridge.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 06:02:09", "sha256": "e4f028e0c11196cdf7e66884a37e9d60fa340caa027f0c05c7b22f43822a301b", "hloubka": 1, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://creativecommons.org/licenses/by/4.0/", "https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "https://www.architectelevator.com/book", "https://www.cloudstrategybook.com/", "https://www.platformstrategybook.info/"]} {"url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/MessagingChannelsIntro.html", "titulek": "Introduction to Messaging Channels - Enterprise Integration Patterns", "h1": "", "popis": "In Introduction to Messaging Systems, we discussed Message Channel. When two applications wish to exchange data, they do so by sending the data through a channel that connects the two. The application sending the data may not know which application will receive the data, but by selecting a particular channel to send the data on, the sender knows that the receiver will be one that is looking for that sort of data by looking for it on that channel. In this way, the applications that produce shared data have a way to communicate with those that wish to consume it.", "klicova_slova": "Introduction to Messaging Channels,integration, messaging, events, patterns, event-driven, coupling, eai, middleware, application integration, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns", "og:title": "Introduction to Messaging Channels - Enterprise Integration Patterns", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/MessagingChannelsIntro.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/eip1_patterns_wide.png"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Message Channel Themes"}, {"uroven": 2, "text": "Message Channel Decisions"}, {"uroven": 2, "text": "Integration Pattern Language"}], "markdown": "| | Introduction to Messaging Channels[Messaging Patterns](index.html) » [Messaging Channels](MessagingChannelsIntro.html) | [Contents](toc.html)[⇐ Prev](MessageEndpoint.html)[Next ⇒](PointToPointChannel.html) |\n| --- | --- | --- |\n\nIn [*Introduction to Messaging Systems*](MessagingComponentsIntro.html), we discussed [*Message Channel*](MessageChannel.html). When two applications wish to exchange data, they do so by sending the data through a channel that connects the two. The application sending the data may not know which application will receive the data, but by selecting a particular channel to send the data on, the sender knows that the receiver will be one that is looking for that sort of data by looking for it on that channel. In this way, the applications that produce shared data have a way to communicate with those that wish to consume it.\n\n## Message Channel Themes\n\nDeciding to use a [*Message Channel*](MessageChannel.html) is the simple part; if an application has data to transmit or data it wishes to receive, it will have to use a channel. The challenge is knowing what channels your applications will need and what to use them for.\n\n**Fixed set of channels** — One theme in this chapter is that the set of [*Message Channel*](MessageChannel.html)s available to an application tends to be static. When designing an application, a developer has to know where to put what types of data to share that data with other applications, and likewise where to look for what types of data coming from other applications. These paths of communication cannot be dynamically created and discovered at runtime; they need to be agreed upon at design time so that the application knows where its data is coming from and where the data is going to. \n (While it is true that most channels must be staticly defined, there are exceptions to this theme, cases where dynamic channels are practical and useful. One exception is the reply channel in [*Request-Reply*](RequestReply.html). The requestor can create or obtain a new channel the replier knows nothing about, specify it as the [*Return Address*](ReturnAddress.html) of a request message, and then the replier can make use of it. Another exception is messaging system implementations that support hierarchical channels. A receiver can subscribe to a parent in the hierarchy, then a sender can publish to a new child channel the receiver knows nothing about, and the subscriber will still receive the message. These relatively unusual cases notwithstanding, channels are usually defined at deployment-time and applications are designed around a known set of channels.)\n\n**Determining the set of channels** — A related issue is: Who decides what [*Message Channel*](MessageChannel.html)s are available, the messaging system or the applications? That is to say: Does the messaging system define certain channels and require the applications to make due with those? Or do the applications determine what channels they need and require the messaging system to provide them? There is no simple answer; designing the needed set of channels is iterative. First the applications determine the channels the messaging system will need to provide. Subsequent applications will try to design their communication around the channels that are available, but when this is not practical, they will require that additional channels be added. When a set of applications already use a certain set of channels, and new applications wish to join in, they too will use the existing set of channels. When existing applications add new functionality, they may require new channels.\n\n**Unidirectional channels** — Another common source of confusion is whether a [*Message Channel*](MessageChannel.html) is unidirectional or bidirectional. Technically, it’s neither; a channel is more like a bucket that some applications add data to and other applications take data from (albeit a bucket that is distributed across multiple computers in some coordinated fashion). But because the data is in messages that travel from one application to another, that gives the channel direction, making it unidirectional. If a channel were bidirectional, that would mean that an application would both send messages to and receive messages from the same channel, which—while technically possible—makes little sense because the application would tend to keep consuming its own messages, the messages it’s supposed to be sending to other applications. So for all practical purposes, channels are unidirectional. As a consequence, for two applications to have a two-way conversation, they will need two channels, one in each direction (see [*Request-Reply*](RequestReply.html) in the next chapter).\n\n## Message Channel Decisions\n\nNow that we understand what [*Message Channel*](MessageChannel.html)s are, let’s consider the decisions involved in using them:\n\n**One-to-one or one-to-many** — When your application shares a piece of data, do you want to share it with just one other application or with any other application that is interested? To send the data to a single application, use a [*Point-to-Point Channel*](PointToPointChannel.html). This does not guarantee that every piece of data sent on that channel will necessarily go to the same receiver, because the channel might have multiple receivers; but it does ensure that any one piece of data will only be received by one of the applications. If you want all of the receiver applications to be able to receive the data, use a [*Publish-Subscribe Channel*](PublishSubscribeChannel.html). When you send a piece of data this way, the channel effectively copies the data for each of the receivers.\n\n**What type of data** — Any data in any computer memory has to conform to some sort of *type*: a known format or expected structure with an agreed upon meaning. Otherwise, all data would just be a bunch of bytes and there would be no way to make any sense of it. Messaging systems work much the same way; the message contents must conform to some type so that the receiver understands the data’s structure. [*Datatype Channel*](DatatypeChannel.html) is the principle that all of the data on a channel has to be of the same type. This is the main reason why messaging systems need lots of channels; if the data could be of any type, the messaging system would only need one channel (in each direction) between any two applications.\n\n**Invalid and dead messages** — The message system can ensure that a message is delivered properly, but it cannot guarantee that the receiver will know what to do with it. The receiver has expectations about the data’s type and meaning; when it receives a message that doesn’t meet these expectations, there’s not much it can do. What it can do, though, is put the strange message on a specially designated [*Invalid Message Channel*](InvalidMessageChannel.html), in hopes that some utility monitoring the channel will pick up the message and figure out what to do with it. Many messaging systems have a similar built-in feature, a [*Dead Letter Channel*](DeadLetterChannel.html) for messages which are successfully sent but ultimately cannot be successfully delivered. Again, hopefully some utility monitoring the channel will know what to do with the messages that could not be delivered.\n\n**Crash proof** — If the messaging system crashes or is shut down for maintence, what happens to its messages? When it is back up and running, will its messages still be in its channels? By default, no; channels store their messages in memory. However, [*Guaranteed Delivery*](GuaranteedMessaging.html) makes channels persistent so that their messages are stored on disk. This hurts performance but makes messaging more reliable, even when the messaging system isn’t.\n\n**Non-messaging clients** — What if an application cannot connect to a messaging system but still wants to participate in messaging? Normally it would be out of luck; but if the messaging system can connect to the application somehow—through its user interface, its business services API, its database, or through a network connection such as TCP/IP or HTTP—then a [*Channel Adapter*](ChannelAdapter.html) on the messaging system can be used to connect a channel (or set of channels) to the application without having to modify the application and perhaps without having to have a messaging client running on the same machine as the application. Sometimes the \"non-messaging client\" really is a messaging client, just for a different messaging system. In that case, an application that is a client on both messaging systems can build a [*Messaging Bridge*](MessagingBridge.html) between the two, effectively connecting them into one composite messaging system.\n\n**Communications backbone** — As more and more of an enterprise’s applications connect to the messaging system and make their functionality available through messaging, the messaging system becomes a centeralized point of one-stop-shopping for functionality in the enterprise. A new application simply needs to know which channels to use to request functionality and which others to listen on for the results. The messaging system itself essentially becomes a [*Message Bus*](MessageBus.html), a backbone providing access to all of the enterprise’s various and ever-changing applications and functionality. You can achieve this integration nirvana more quickly and easily by specifically designing for it from the beginning.\n\nSo as you can see, getting applications set up for [*Messaging*](Messaging.html) involves more than just connecting them to the messaging system so that they can send messages. The messages must have [*Message Channel*](MessageChannel.html)s to transmit on. Slapping in some channels doesn’t get the job done either. They have to be designed with a purpose, based on the data type being shared, the sort of application making the data available, and the sort of application receiving the data. This chapter will explain the decisions that go into designing these channels.\n\nTo help illustrate the patterns, each one has an example from a ficticious, simplified \"stock trading\" domain. While none of these examples should be used as the basis for implementing a real trading system, they do serve as quick and specific examples of how the patterns can be used.\n\n## Integration Pattern Language\n\n[Message Construct.](MessageConstructionIntro.html)\n\n[Message](Message.html)\n\n[Command Message](CommandMessage.html)\n\n[Document Message](DocumentMessage.html)\n\n[Event Message](EventMessage.html)\n\n[Request-Reply](RequestReply.html)\n\n[Return Address](ReturnAddress.html)\n\n[Correlation Identifier](CorrelationIdentifier.html)\n\n[Message Sequence](MessageSequence.html)\n\n[Message Expiration](MessageExpiration.html)\n\n[Format Indicator](FormatIndicator.html)\n\n[Message Routing](MessageRoutingIntro.html)\n\n[Pipes-and-Filters](PipesAndFilters.html)\n\n[Message Router](MessageRouter.html)\n\n[Content-based Router](ContentBasedRouter.html)\n\n[Message Filter](Filter.html)\n\n[Dynamic Router](DynamicRouter.html)\n\n[Recipient List](RecipientList.html)\n\n[Splitter](Sequencer.html)\n\n[Aggregator](Aggregator.html)\n\n[Resequencer](Resequencer.html)\n\n[Composed Msg. Processor](DistributionAggregate.html)\n\n[Scatter-Gather](BroadcastAggregate.html)\n\n[Routing Slip](RoutingTable.html)\n\n[Process Manager](ProcessManager.html)\n\n[Message Broker](MessageBroker.html)\n\n[Message\nTransformation](MessageTransformationIntro.html)\n\n[Message Translator](MessageTranslator.html)\n\n[Envelope Wrapper](EnvelopeWrapper.html)\n\n[Content Enricher](DataEnricher.html)\n\n[Content Filter](ContentFilter.html)\n\n[Claim Check](StoreInLibrary.html)\n\n[Normalizer](Normalizer.html)\n\n[Canonical Data Model](CanonicalDataModel.html)\n\n[Messaging Endpoints](MessagingEndpointsIntro.html)\n\n[Message Endpoint](MessageEndpoint.html)\n\n[Messaging Gateway](MessagingGateway.html)\n\n[Messaging Mapper](MessagingMapper.html)\n\n[Transactional Client](TransactionalClient.html)\n\n[Polling Consumer](PollingConsumer.html)\n\n[Event-driven Consumer](EventDrivenConsumer.html)\n\n[Competing Consumers](CompetingConsumers.html)\n\n[Message Dispatcher](MessageDispatcher.html)\n\n[Selective Consumer](MessageSelector.html)\n\n[Durable Subscriber](DurableSubscription.html)\n\n[Idempotent Receiver](IdempotentReceiver.html)\n\n[Service Activator](MessagingAdapter.html)\n\n[Messaging Channels](MessagingChannelsIntro.html)\n\n[Message Channel](MessageChannel.html)\n\n[Point-to-Point Channel](PointToPointChannel.html)\n\n[Publish-Subscr. Channel](PublishSubscribeChannel.html)\n\n[Datatype Channel](DatatypeChannel.html)\n\n[Invalid Message Channel](InvalidMessageChannel.html)\n\n[Dead Letter Channel](DeadLetterChannel.html)\n\n[Guaranteed Delivery](GuaranteedMessaging.html)\n\n[Channel Adapter](ChannelAdapter.html)\n\n[Messaging Bridge](MessagingBridge.html)\n\n[Message Bus](MessageBus.html)\n\n[Systems Mgmt.](SystemManagementIntro.html)\n\n[Control Bus](ControlBus.html)\n\n[Detour](Detour.html)\n\n[Wire Tap](WireTap.html)\n\n[Message History](MessageHistory.html)\n\n[Message Store](MessageStore.html)\n\n[Smart Proxy](SmartProxy.html)\n\n[Test Message](TestMessage.html)\n\n[Channel Purger](ChannelPurger.html)", "znaku_textu": 12997, "slov": 1773, "odkazu": 107, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/MessagingChannelsIntro.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 06:02:01", "sha256": "12542489ee77139f16c4fcf6b8445e9efb36571e09db8e1c431333d49a0f3ee8", "hloubka": 1, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "https://www.architectelevator.com/book", "https://www.cloudstrategybook.com/", "https://www.platformstrategybook.info/"]} {"url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/MessagingComponentsIntro.html", "titulek": "Introduction to Messaging Systems - Enterprise Integration Patterns", "h1": "", "popis": "Messaging makes applications loosely coupled by communicating asynchronously, which also makes the communication more reliable because the two applications do not have to be running at the same time. Messaging makes the messaging system responsible for transferring data from one application to another, so the applications can focus on what data they need to share but not worry so much about how to share it.", "klicova_slova": "Introduction to Messaging Systems,integration, messaging, events, patterns, event-driven, coupling, eai, middleware, application integration, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns", "og:title": "Introduction to Messaging Systems - Enterprise Integration Patterns", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/MessagingComponentsIntro.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/eip1_patterns_wide.png"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Basic Messaging Concepts"}, {"uroven": 2, "text": "Book Organization"}, {"uroven": 2, "text": "Integration Pattern Language"}], "markdown": "| | Introduction to Messaging Systems[Messaging Patterns](index.html) » [Messaging Systems](MessagingComponentsIntro.html) | [Contents](toc.html)[⇐ Prev](Messaging.html)[Next ⇒](MessageChannel.html) |\n| --- | --- | --- |\n\nMessaging makes applications loosely coupled by communicating asynchronously, which also makes the communication more reliable because the two applications do not have to be running at the same time. Messaging makes the messaging system responsible for transferring data from one application to another, so the applications can focus on what data they need to share but not worry so much about how to share it.\n\n## Basic Messaging Concepts\n\nLike most technologies, [*Messaging*](Messaging.html) involves certain basic concepts. Once you understand these concepts, you can make sense of the technology even before you understand all of the details about how to use it. These basic messaging concepts are:\n\n**Channels** — Messaging applications transmit data through a [*Message Channel*](MessageChannel.html), a virtual pipe that connects a sender to a receiver. A newly installed messaging system doesn’t contain any channels; you must determine how your applications need to communicate and then create the channels to facilitate it.\n\n**Messages** — A [*Message*](Message.html) is an atomic packet of data that can be transmitted on a channel. Thus to transmit data, an application must break the data into one or more packets, wrap each packet as a message, and then send the message on a channel. Likewise, a receiver application receives a message and must extract the data from the message to process it. The message system will try repeatedly to deliver the message (e.g., transmit it from the sender to the receiver) until it succeeds.\n\n**Multi-step delivery** — In the simplest case, the message system delivers a message directly from the sender’s computer to the receiver’s computer. However, actions often need to be performed on the message after it is sent by its original sender but before it is received by its final receiver. For example, the message may have to be validated or transformed because the receiver expects a different message format than the sender. A [*Pipes and Filters*](PipesAndFilters.html) architecture describes how multiple processing steps can be chained together using channels.\n\n**Routing** — In a large enterprise with numerous applications and channels to connect them, a message may have to go through several channels to reach its final destination. The route a message must follow may be so complex that the original sender does not know what channel will get the message to the final receiver. Instead, the original sender sends the message to a [*Message Router*](MessageRouter.html), an application component and filter in the pipes-and-filters architecture, which will determine how to navigate the channel topology and direct the message to the final receiver, or at least to the next router.\n\n**Transformation** — Various applications may not agree on the format for the same conceptual data; the sender formats the message one way, yet the receiver expects it to be formatted another way. To reconcile this, the message must go through an intermediate filter, a [*Message Translator*](MessageTranslator.html), that converts the message from one format to another.\n\n**Endpoints** — An application does not have some built-in capability to interface with a messaging system. Rather, it must contain a layer of code that knows both how the application works and how the messaging system works, bridging the two so that they work together. This bridge code is a set of coordinated [*Message Endpoint*](MessageEndpoint.html)s that enable the application to send and receive messages.\n\n## Book Organization\n\nThe patterns in this chapter provide you with the basic vocabulary and understanding of how to achieve enterprise integration using [*Messaging*](Messaging.html). All subsequent chapters build upon the base patterns in this chapter.\n\n*Relationship of Root Patterns and Chapters*\n\nThis chapter provides a broad overview of [*Messaging*](Messaging.html) by introducing the main messaging topics. For more details about one of these topics, skip ahead to the chapter that contains more patterns which cover that topic in greater depth.\n\n## Integration Pattern Language\n\n[Message Construct.](MessageConstructionIntro.html)\n\n[Message](Message.html)\n\n[Command Message](CommandMessage.html)\n\n[Document Message](DocumentMessage.html)\n\n[Event Message](EventMessage.html)\n\n[Request-Reply](RequestReply.html)\n\n[Return Address](ReturnAddress.html)\n\n[Correlation Identifier](CorrelationIdentifier.html)\n\n[Message Sequence](MessageSequence.html)\n\n[Message Expiration](MessageExpiration.html)\n\n[Format Indicator](FormatIndicator.html)\n\n[Message Routing](MessageRoutingIntro.html)\n\n[Pipes-and-Filters](PipesAndFilters.html)\n\n[Message Router](MessageRouter.html)\n\n[Content-based Router](ContentBasedRouter.html)\n\n[Message Filter](Filter.html)\n\n[Dynamic Router](DynamicRouter.html)\n\n[Recipient List](RecipientList.html)\n\n[Splitter](Sequencer.html)\n\n[Aggregator](Aggregator.html)\n\n[Resequencer](Resequencer.html)\n\n[Composed Msg. Processor](DistributionAggregate.html)\n\n[Scatter-Gather](BroadcastAggregate.html)\n\n[Routing Slip](RoutingTable.html)\n\n[Process Manager](ProcessManager.html)\n\n[Message Broker](MessageBroker.html)\n\n[Message\nTransformation](MessageTransformationIntro.html)\n\n[Message Translator](MessageTranslator.html)\n\n[Envelope Wrapper](EnvelopeWrapper.html)\n\n[Content Enricher](DataEnricher.html)\n\n[Content Filter](ContentFilter.html)\n\n[Claim Check](StoreInLibrary.html)\n\n[Normalizer](Normalizer.html)\n\n[Canonical Data Model](CanonicalDataModel.html)\n\n[Messaging Endpoints](MessagingEndpointsIntro.html)\n\n[Message Endpoint](MessageEndpoint.html)\n\n[Messaging Gateway](MessagingGateway.html)\n\n[Messaging Mapper](MessagingMapper.html)\n\n[Transactional Client](TransactionalClient.html)\n\n[Polling Consumer](PollingConsumer.html)\n\n[Event-driven Consumer](EventDrivenConsumer.html)\n\n[Competing Consumers](CompetingConsumers.html)\n\n[Message Dispatcher](MessageDispatcher.html)\n\n[Selective Consumer](MessageSelector.html)\n\n[Durable Subscriber](DurableSubscription.html)\n\n[Idempotent Receiver](IdempotentReceiver.html)\n\n[Service Activator](MessagingAdapter.html)\n\n[Messaging Channels](MessagingChannelsIntro.html)\n\n[Message Channel](MessageChannel.html)\n\n[Point-to-Point Channel](PointToPointChannel.html)\n\n[Publish-Subscr. Channel](PublishSubscribeChannel.html)\n\n[Datatype Channel](DatatypeChannel.html)\n\n[Invalid Message Channel](InvalidMessageChannel.html)\n\n[Dead Letter Channel](DeadLetterChannel.html)\n\n[Guaranteed Delivery](GuaranteedMessaging.html)\n\n[Channel Adapter](ChannelAdapter.html)\n\n[Messaging Bridge](MessagingBridge.html)\n\n[Message Bus](MessageBus.html)\n\n[Systems Mgmt.](SystemManagementIntro.html)\n\n[Control Bus](ControlBus.html)\n\n[Detour](Detour.html)\n\n[Wire Tap](WireTap.html)\n\n[Message History](MessageHistory.html)\n\n[Message Store](MessageStore.html)\n\n[Smart Proxy](SmartProxy.html)\n\n[Test Message](TestMessage.html)\n\n[Channel Purger](ChannelPurger.html)", "znaku_textu": 7006, "slov": 795, "odkazu": 107, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/patterns/messaging/MessagingComponentsIntro.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 06:01:54", "sha256": "f25add9d112c26eaae12ab98d21128540222461d2c52e32c7e5a45800ca5fa74", "hloubka": 1, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "https://www.architectelevator.com/book", "https://www.cloudstrategybook.com/", "https://www.platformstrategybook.info/"]} {"url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/MessagingEndpointsIntro.html", "titulek": "Introduction to Messaging Endpoints - Enterprise Integration Patterns", "h1": "", "popis": "In Introduction to Messaging Systems, we discussed Message Endpoint. This is how an application connects to a messaging system so that it can send and receive messages. As an application programmer, when you program to a messaging API such as JMS or the System.Messaging namespace, you’re developing endpoint code. If you are using a commercial middleware package, most of this coding is already done for you using the libraries and tools provided by the vendor.", "klicova_slova": "Introduction to Messaging Endpoints,integration, messaging, events, patterns, event-driven, coupling, eai, middleware, application integration, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns", "og:title": "Introduction to Messaging Endpoints - Enterprise Integration Patterns", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/MessagingEndpointsIntro.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/eip1_patterns_wide.png"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Send and Receive Patterns"}, {"uroven": 2, "text": "Message Consumer Patterns"}, {"uroven": 2, "text": "Message Endpoint Themes"}, {"uroven": 2, "text": "Integration Pattern Language"}], "markdown": "| | Introduction to Messaging Endpoints[Messaging Patterns](index.html) » [Messaging Endpoints](MessagingEndpointsIntro.html) | [Contents](toc.html)[⇐ Prev](ComposedMessagingTIBCO.html)[Next ⇒](MessagingGateway.html) |\n| --- | --- | --- |\n\nIn [*Introduction to Messaging Systems*](MessagingComponentsIntro.html), we discussed [*Message Endpoint*](MessageEndpoint.html). This is how an application connects to a messaging system so that it can send and receive messages. As an application programmer, when you program to a messaging API such as JMS or the System.Messaging namespace, you’re developing endpoint code. If you are using a commercial middleware package, most of this coding is already done for you using the libraries and tools provided by the vendor.\n\n## Send and Receive Patterns\n\nSome endpoint patterns apply to both senders and receivers. They concern how the application relates to the messaging system in general.\n\n**Encapsulate the messaging code** — In general, an application should not be aware that it is using [*Messaging*](Messaging.html) to integrate with other applications. Most of the application’s code should be written without messaging in mind. At the points where the application integrate with others, there should be a thin layer of code that performs the application’s part of the integration. When the integration is implemented with messaging, that thin layer of code that attches the application to the messaging system is a [*Messaging Gateway*](MessagingGateway.html).\n\n**Data translation** — It’s great when the internal data representation the sender and receiver applications use are the same, and when the message format uses that same representation as well. However, this is often not the case. Either the sender and receiver disagree on data format, or the messages use a different format (usually to support other senders and receivers). In this situation, use a [*Messaging Mapper*](MessagingMapper.html) to convert data between the application’s format and the message’s format.\n\n**Externally-controlled transactions** — Messaging systems use transactions internally; externally, by default, each send or receive method call runs in its own transaction. However, message producers and consumers have the option of using a [*Transactional Client*](TransactionalClient.html) to control these transactions externally, which is useful when you need to batch together multiple messages or to coordinate messaging with other transactional services.\n\n## Message Consumer Patterns\n\nOther endpoint patterns only apply to message receivers. Sending messages is easy. There are issues involved in deciding when a message should be sent, what it should contain, and how to communicate its intent to the receiver—that’s why we have the Message Construction patterns (see [*Introduction to Message Construction*](MessageConstructionIntro.html))—but once the message is built, sending it is easy. Receiving messages, on the other hand—that’s tricky. So many of these patterns are about receiving messages.\n\nAn overriding theme in message consumption is *throttling*, which means the application controlling the rate at which it consumes messages. As discussed in the [*Introduction*](Introduction.html), a potential problem any server faces is that a high volume of client requests could overload the server. With [*Remote Procedure Invocation*](EncapsulatedSynchronousIntegration.html), the server is pretty much at the mercy of the rate that clients make calls. Likewise, with [*Messaging*](Messaging.html), the server cannot control the rate at which clients send requests—but the server can control the rate at which it processes those requests. The application does not have to receive and process the messages as rapidly as they’re delivered by the messaging system; it can process them at a sustainable pace and let the extras queue up to be processed in some sort of first come, first serve basis. On the other hand, if the messages are piling up too much and the server has the resources to process more messages faster, the server can increase its message consumption throughput using concurrent message consumers. So use these patterns to let your application control the rate at which it consumes messages.\n\nMany of these patterns come in pairs that represent alternatives. You can design an endpoint one way or the other. A single application may design some endpoints one way and some endpoints the other way, but a single endpoint can only implement one alternative. Alternatives from each pair can be combined, leading to a great number of choices for how to implement a particular endpoint.\n\n**Synchronous or asynchronous consumer** — One alternative is whether to use a [*Polling Consumer*](PollingConsumer.html) or an [*Event-Driven Consumer*](EventDrivenConsumer.html). [[JMS11, pp.68-69](http://java.sun.com/products/jms/docs.html)], [[Hapner, p.13](http://www.amazon.com/exec/obidos/ASIN/0201784726/enterpriseint-20)], [[Dickman, p.29](http://www.amazon.com/exec/obidos/ASIN/0201325810/enterpriseint-20)] Polling provides the best throttling because if the server is busy, it won’t run the code to receive more messages, so the messages will queue up. Consumers that are event-driven tend to process messages as fast as they arrive, which could overload the server; but each consumer can only process one message at a time, so limiting the number of consumers effectively throttles the consumption rate.\n\n**Message assignment vs. message grab** — Another alternative concerns how a handful of consumers process a handful of messages. If each consumer gets a message, they can process the messages concurrently. The simplest approach is [*Competing Consumers*](CompetingConsumers.html), where one [*Point-to-Point Channel*](PointToPointChannel.html) has multiple consumers. Each one could potentially grab any message; the messaging system’s implementation decides which consumer gets a message. If you want to control this message-to-consumer matching process, use a [*Message Dispatcher*](MessageDispatcher.html). This is a single consumer that receives a message but delegates it to a performer for processing. An application can throttle message load by limiting the number of consumers/performers. Also, the dispatcher in a [*Message Dispatcher*](MessageDispatcher.html) can implement explicit throttling behavior.\n\n**Accept all messages or filter** — By default, any message delivered on a [*Message Channel*](MessageChannel.html) becomes available to any [*Message Endpoint*](MessageEndpoint.html) listening on that channel for messages to consume. However, some consumers may not want to consume just any message on that channel, but only wish to consume messages of a certain type or description. Such a discriminating consumer can use a [*Selective Consumer*](MessageSelector.html) to describe what sort of message it’s willing to receive. Then the messaging system will only make messages matching that description available to that receiver.\n\n**Subscribe while disconnected** — An issue that comes up with [*Publish-Subscribe Channel*](PublishSubscribeChannel.html)s: What if a subscriber was interested in the data being published on a particular channel and will be again, but is currently disconnected from the network or shut down for maintenance? Will a disconnected application miss messages published while it is disconnected, even though it has subscribed? By default, yes, a subscription is only valid while the subscriber is connected. To keep the application from missing messages published inbetween connections, make it a [*Durable Subscriber*](DurableSubscription.html).\n\n**Idempotency** — Sometimes the same message gets delivered more than once, either because the messaging system is not certain the message has been successfully delivered yet, or because the [*Message Channel*](MessageChannel.html)’s quality-of-service has been lowered to improve performance. Message receivers, on the other hand, tend to assume that each message will be delivered exactly once, and tend to cause problems when they repeat processing because of repeat messages. A receiver designed as an [*Idempotent Receiver*](IdempotentReceiver.html) handles duplicate messages and prevents them from causing problems in the receiver application.\n\n**Synchronous or asynchronous service** — Another tough choice is whether an application should expose its services to be invoked synchronously (via [*Remote Procedure Invocation*](EncapsulatedSynchronousIntegration.html)) or asynchronously (via [*Messaging*](Messaging.html)). Different clients may prefer different approaches; different circumstances may require different approaches. Since it’s often hard to choose just one approach or the other, let’s have both. A [*Service Activator*](MessagingAdapter.html) connects a [*Message Channel*](MessageChannel.html) to a synchronous service in an application so that when a message is received, the service is invoked. Synchronous clients can simply invoke the service directly; asynchronous clients can invoke the service by sending a message.\n\n## Message Endpoint Themes\n\nAnother significant theme in this chapter is difficulty using [*Transactional Client*](TransactionalClient.html) with other patterns. [*Event-Driven Consumer*](EventDrivenConsumer.html) usually cannot externally control transactions properly, [*Message Dispatcher*](MessageDispatcher.html) must be carefully designed to do so, and [*Competing Consumers*](CompetingConsumers.html) that externally manage transactions can run into significant problems. The safest bet for using [*Transactional Client*](TransactionalClient.html) is with a single [*Polling Consumer*](PollingConsumer.html), but that may not be a very satisfactory solution.\n\nSpecial mention should be made of JMS-style message-driven beans, one type of Enterprise JavaBeans (EJB). [[EJB20, pp.311-326](http://java.sun.com/products/ejb/docs.html)], [[Hapner, pp.69-74](http://www.amazon.com/exec/obidos/ASIN/0201784726/enterpriseint-20)] An MDB is a message consumer that is an [*Event-Driven Consumer*](EventDrivenConsumer.html), a [*Transactional Client*](TransactionalClient.html) that supports J2EE distributed (e.g., XAResource) transactions, and can be dynamically pooled as [*Competing Consumers*](CompetingConsumers.html), even for a [*Publish-Subscribe Channel*](PublishSubscribeChannel.html). This is a difficult and tedious combination to implement in one’s own application code, but this functionality is provided as a ready-built feature of compatible EJB containers (such as BEA’s WebLogic and IBM’s WebSphere). (How is the MDB framework implemented? Essentially, the container implements a [*Message Dispatcher*](MessageDispatcher.html) with a dynamicly-sized pool of reusable performers, where each performer consumes the message itself using its own session and transaction.)\n\nFinally, keep in mind that a single [*Message Endpoint*](MessageEndpoint.html) may well combine several different patterns from this chapter. A group of [*Competing Consumers*](CompetingConsumers.html) may be implemented as [*Polling Consumer*](PollingConsumer.html)s that are also [*Selective Consumer*](MessageSelector.html)s and act as a [*Service Activator*](MessagingAdapter.html) on a service in the application. A [*Message Dispatcher*](MessageDispatcher.html) may be an [*Event-Driven Consumer*](EventDrivenConsumer.html) and a [*Durable Subscriber*](DurableSubscription.html) that uses a [*Messaging Mapper*](MessagingMapper.html). Whatever other patterns an endpoint implements, it should also be a [*Messaging Gateway*](MessagingGateway.html). So don’t think of what one pattern to use, think of the combinations. That’s the beauty of solving the problems with patterns.\n\nSo there are a lot of options for making an application into a [*Message Endpoint*](MessageEndpoint.html). This chapter will explain what those options are and how to make the best use of them.\n\n## Integration Pattern Language\n\n[Message Construct.](MessageConstructionIntro.html)\n\n[Message](Message.html)\n\n[Command Message](CommandMessage.html)\n\n[Document Message](DocumentMessage.html)\n\n[Event Message](EventMessage.html)\n\n[Request-Reply](RequestReply.html)\n\n[Return Address](ReturnAddress.html)\n\n[Correlation Identifier](CorrelationIdentifier.html)\n\n[Message Sequence](MessageSequence.html)\n\n[Message Expiration](MessageExpiration.html)\n\n[Format Indicator](FormatIndicator.html)\n\n[Message Routing](MessageRoutingIntro.html)\n\n[Pipes-and-Filters](PipesAndFilters.html)\n\n[Message Router](MessageRouter.html)\n\n[Content-based Router](ContentBasedRouter.html)\n\n[Message Filter](Filter.html)\n\n[Dynamic Router](DynamicRouter.html)\n\n[Recipient List](RecipientList.html)\n\n[Splitter](Sequencer.html)\n\n[Aggregator](Aggregator.html)\n\n[Resequencer](Resequencer.html)\n\n[Composed Msg. Processor](DistributionAggregate.html)\n\n[Scatter-Gather](BroadcastAggregate.html)\n\n[Routing Slip](RoutingTable.html)\n\n[Process Manager](ProcessManager.html)\n\n[Message Broker](MessageBroker.html)\n\n[Message\nTransformation](MessageTransformationIntro.html)\n\n[Message Translator](MessageTranslator.html)\n\n[Envelope Wrapper](EnvelopeWrapper.html)\n\n[Content Enricher](DataEnricher.html)\n\n[Content Filter](ContentFilter.html)\n\n[Claim Check](StoreInLibrary.html)\n\n[Normalizer](Normalizer.html)\n\n[Canonical Data Model](CanonicalDataModel.html)\n\n[Messaging Endpoints](MessagingEndpointsIntro.html)\n\n[Message Endpoint](MessageEndpoint.html)\n\n[Messaging Gateway](MessagingGateway.html)\n\n[Messaging Mapper](MessagingMapper.html)\n\n[Transactional Client](TransactionalClient.html)\n\n[Polling Consumer](PollingConsumer.html)\n\n[Event-driven Consumer](EventDrivenConsumer.html)\n\n[Competing Consumers](CompetingConsumers.html)\n\n[Message Dispatcher](MessageDispatcher.html)\n\n[Selective Consumer](MessageSelector.html)\n\n[Durable Subscriber](DurableSubscription.html)\n\n[Idempotent Receiver](IdempotentReceiver.html)\n\n[Service Activator](MessagingAdapter.html)\n\n[Messaging Channels](MessagingChannelsIntro.html)\n\n[Message Channel](MessageChannel.html)\n\n[Point-to-Point Channel](PointToPointChannel.html)\n\n[Publish-Subscr. Channel](PublishSubscribeChannel.html)\n\n[Datatype Channel](DatatypeChannel.html)\n\n[Invalid Message Channel](InvalidMessageChannel.html)\n\n[Dead Letter Channel](DeadLetterChannel.html)\n\n[Guaranteed Delivery](GuaranteedMessaging.html)\n\n[Channel Adapter](ChannelAdapter.html)\n\n[Messaging Bridge](MessagingBridge.html)\n\n[Message Bus](MessageBus.html)\n\n[Systems Mgmt.](SystemManagementIntro.html)\n\n[Control Bus](ControlBus.html)\n\n[Detour](Detour.html)\n\n[Wire Tap](WireTap.html)\n\n[Message History](MessageHistory.html)\n\n[Message Store](MessageStore.html)\n\n[Smart Proxy](SmartProxy.html)\n\n[Test Message](TestMessage.html)\n\n[Channel Purger](ChannelPurger.html)", "znaku_textu": 14643, "slov": 1808, "odkazu": 111, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/MessagingEndpointsIntro.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 06:02:50", "sha256": "9b9ca9fe0ce05e757b6eb7ac08708b86ab2895184cf3dced0050f0275f0a84fd", "hloubka": 1, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://java.sun.com/products/jms/docs.html", "http://www.amazon.com/exec/obidos/ASIN/0201784726/enterpriseint-20", "http://www.amazon.com/exec/obidos/ASIN/0201325810/enterpriseint-20", "http://java.sun.com/products/ejb/docs.html", "https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "https://www.architectelevator.com/book", "https://www.cloudstrategybook.com/", "https://www.platformstrategybook.info/"]} {"url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/MessagingGateway.html", "titulek": "Messaging Gateway - Enterprise Integration Patterns", "h1": "", "popis": "How do you encapsulate access to the messaging system from the rest of the application?", "klicova_slova": "Messaging Gateway,integration, messaging, events, patterns, event-driven, coupling, eai, middleware, application integration, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns", "og:title": "Messaging Gateway - Enterprise Integration Patterns", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/MessagingGateway.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/MessagingGatewaySolution.gif"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Integration Pattern Language"}], "markdown": "Messaging Patterns\n\n[Messaging Patterns](index.html)\n\n- [Integration Styles](IntegrationStylesIntro.html)\n- [Messaging Systems](MessagingComponentsIntro.html)\n- [Messaging Channels](MessagingChannelsIntro.html)\n- [Message Construction](MessageConstructionIntro.html)\n- [Interlude: Simple Messaging](SimpleMessagingIntro.html)\n- [Message Routing](MessageRoutingIntro.html)\n- [Message Transformation](MessageTransformationIntro.html)\n- [Interlude: Composed Messaging](ComposedMessagingExample.html)\n- [Messaging Endpoints](MessagingEndpointsIntro.html)\n- [System Management](SystemManagementIntro.html)\n- Interlude: Systems Management Example\n- Integration Patterns in Practice\n- Concluding Remarks\n- Appendices\n\n| | Messaging Gateway[Messaging Patterns](index.html) » [Messaging Endpoints](MessagingEndpointsIntro.html) | [Contents](toc.html)[⇐ Prev](MessagingEndpointsIntro.html)[Next ⇒](MessagingMapper.html) |\n| --- | --- | --- |\n\nAn application accesses another system via [*Messaging*](Messaging.html).\n\nHow do you encapsulate access to the messaging system from the rest of the application?\n\nUse a *Messaging Gateway*, a class than wraps messaging-specific method calls and exposes domain-specific methods to the application.\n\nThe *Messaging Gateway* encapsulates messaging-specific code (e.g., the code required to send or receive a message) and separates it from the rest of the application code. This way, only the *Messaging Gateway* code knows about the messaging system; the rest of the application code does not. The *Messaging Gateway* exposes a business function to the rest of the application so that instead of requiring the application to set properties like Message.MessageReadPropertyFilter.AppSpecific, a *Messaging Gateway* exposes methods such as GetCreditScore that accept strongly typed parameters just like any other method. A *Messaging Gateway* is a messaging-specific version of the more general *Gateway* pattern [[EAA](http://www.amazon.com/exec/obidos/ASIN/0321127420/enterpriseint-20)].\n\n...\nRead the entire pattern in the book [Enterprise Integration Patterns](/books1.html)\n\n**Related patterns:**\n\n[*Scatter-Gather*](BroadcastAggregate.html), [*Asynchronous Implementation with MSMQ*](ComposedMessagingMSMQ.html), [*Correlation Identifier*](CorrelationIdentifier.html), [*Messaging*](Messaging.html), [*Request-Reply*](RequestReply.html)\n\n---\n\n## Integration Pattern Language\n\n[Message Construct.](MessageConstructionIntro.html)\n\n[Message](Message.html)\n\n[Command Message](CommandMessage.html)\n\n[Document Message](DocumentMessage.html)\n\n[Event Message](EventMessage.html)\n\n[Request-Reply](RequestReply.html)\n\n[Return Address](ReturnAddress.html)\n\n[Correlation Identifier](CorrelationIdentifier.html)\n\n[Message Sequence](MessageSequence.html)\n\n[Message Expiration](MessageExpiration.html)\n\n[Format Indicator](FormatIndicator.html)\n\n[Message Routing](MessageRoutingIntro.html)\n\n[Pipes-and-Filters](PipesAndFilters.html)\n\n[Message Router](MessageRouter.html)\n\n[Content-based Router](ContentBasedRouter.html)\n\n[Message Filter](Filter.html)\n\n[Dynamic Router](DynamicRouter.html)\n\n[Recipient List](RecipientList.html)\n\n[Splitter](Sequencer.html)\n\n[Aggregator](Aggregator.html)\n\n[Resequencer](Resequencer.html)\n\n[Composed Msg. Processor](DistributionAggregate.html)\n\n[Scatter-Gather](BroadcastAggregate.html)\n\n[Routing Slip](RoutingTable.html)\n\n[Process Manager](ProcessManager.html)\n\n[Message Broker](MessageBroker.html)\n\n[Message\nTransformation](MessageTransformationIntro.html)\n\n[Message Translator](MessageTranslator.html)\n\n[Envelope Wrapper](EnvelopeWrapper.html)\n\n[Content Enricher](DataEnricher.html)\n\n[Content Filter](ContentFilter.html)\n\n[Claim Check](StoreInLibrary.html)\n\n[Normalizer](Normalizer.html)\n\n[Canonical Data Model](CanonicalDataModel.html)\n\n[Messaging Endpoints](MessagingEndpointsIntro.html)\n\n[Message Endpoint](MessageEndpoint.html)\n\n[Messaging Gateway](MessagingGateway.html)\n\n[Messaging Mapper](MessagingMapper.html)\n\n[Transactional Client](TransactionalClient.html)\n\n[Polling Consumer](PollingConsumer.html)\n\n[Event-driven Consumer](EventDrivenConsumer.html)\n\n[Competing Consumers](CompetingConsumers.html)\n\n[Message Dispatcher](MessageDispatcher.html)\n\n[Selective Consumer](MessageSelector.html)\n\n[Durable Subscriber](DurableSubscription.html)\n\n[Idempotent Receiver](IdempotentReceiver.html)\n\n[Service Activator](MessagingAdapter.html)\n\n[Messaging Channels](MessagingChannelsIntro.html)\n\n[Message Channel](MessageChannel.html)\n\n[Point-to-Point Channel](PointToPointChannel.html)\n\n[Publish-Subscr. Channel](PublishSubscribeChannel.html)\n\n[Datatype Channel](DatatypeChannel.html)\n\n[Invalid Message Channel](InvalidMessageChannel.html)\n\n[Dead Letter Channel](DeadLetterChannel.html)\n\n[Guaranteed Delivery](GuaranteedMessaging.html)\n\n[Channel Adapter](ChannelAdapter.html)\n\n[Messaging Bridge](MessagingBridge.html)\n\n[Message Bus](MessageBus.html)\n\n[Systems Mgmt.](SystemManagementIntro.html)\n\n[Control Bus](ControlBus.html)\n\n[Detour](Detour.html)\n\n[Wire Tap](WireTap.html)\n\n[Message History](MessageHistory.html)\n\n[Message Store](MessageStore.html)\n\n[Smart Proxy](SmartProxy.html)\n\n[Test Message](TestMessage.html)\n\n[Channel Purger](ChannelPurger.html)\n\n- » [Read the latest in My Blog](/ramblings)\n- » [Get more insights from My Articles](/articles.html)\n- » [See me live in my Upcoming Talks](/talks)\n\nYou can reuse the following elements under the [Creative Commons Attribution](http://creativecommons.org/licenses/by/4.0/) license: pattern icon, pattern name, problem and solution statements (in bold), and the sketch. Other portions are protected by copyright.\n\n[Enterprise Integration Patterns](https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20)\nThe de-facto language for designing asynchronous, distributed systems. Over 100,000 copies sold.\n\n[The Software Architect Elevator](https://www.architectelevator.com/book)\n\n Rethink the role of architects as a connecting element across organizational layers. Acquire the technical, communication, and organizational skills to succeed in this new role.\n\n[Cloud Strategy](https://www.cloudstrategybook.com)\n\n Make your cloud migration a success by translating high-level goals into conscious decisions with well-understood trade-offs.\n\n[Platform Strategy](https://www.platformstrategybook.info)\n\n Platforms can boost innovation through harmonization, but they aren't easy to build. Learn from over a decade of designing and rolling out IT platforms.", "znaku_textu": 6316, "slov": 518, "odkazu": 109, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/MessagingGateway.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 06:02:51", "sha256": "80529c5186ba05ef9282ebe046bd45ab777f928b10c669ac07283c8f970f2066", "hloubka": 1, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://www.amazon.com/exec/obidos/ASIN/0321127420/enterpriseint-20", "http://creativecommons.org/licenses/by/4.0/", "https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "https://www.architectelevator.com/book", "https://www.cloudstrategybook.com/", "https://www.platformstrategybook.info/"]} {"url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/MessagingMapper.html", "titulek": "Messaging Mapper - Enterprise Integration Patterns", "h1": "", "popis": "How do you move data between domain objects and the messaging infrastructure while keeping the two independent of each other?", "klicova_slova": "Messaging Mapper,integration, messaging, events, patterns, event-driven, coupling, eai, middleware, application integration, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns", "og:title": "Messaging Mapper - Enterprise Integration Patterns", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/MessagingMapper.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/MessagingMapperClassDiagram.gif"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Integration Pattern Language"}], "markdown": "| | Messaging Mapper[Messaging Patterns](index.html) » [Messaging Endpoints](MessagingEndpointsIntro.html) | [Contents](toc.html)[⇐ Prev](MessagingGateway.html)[Next ⇒](TransactionalClient.html) |\n| --- | --- | --- |\n\nWhen integrating applications using messaging, the data inside a message is often derived from domain objects inside the integrated applications. If we use a [*Document Message*](DocumentMessage.html), the message itself may directly represent one or domain objects. If we use a [*Command Message*](CommandMessage.html), some of the data fields associated with the command are likely to be extracted from domain objects as well. There are some distinct differences between messages and objects. For example, most objects rely on associations in the form of object references and inheritance relationships. Many messaging infrastructures do not support these concepts because they have to be able to communicate with a range of applications, some of which may not be object-oriented at all.\n\nHow do you move data between domain objects and the messaging infrastructure while keeping the two independent of each other?\n\nCreate a separate *Messaging Mapper* that contains the mapping logic between the messaging infrastructure and the domain objects. Neither the objects nor the infrastructure have knowledge of the *Messaging Mapper*'s existence.\n\nThe *Messaging Mapper* accesses one or more domain objects and converts them into a message as required by the messaging channel. It also performs the opposite function, creating or updating domain objects based on incoming messages. Since the *Messaging Mapper* is implemented as a separate class that references the domain object(s) and the messaging layer, neither layer is aware of the other. The layers don't even know about the *Messaging Mapper*.\n\nThe *Messaging Mapper* is a specialization of the *Mapper* pattern defined in [[EAA](http://www.amazon.com/exec/obidos/ASIN/0321127420/enterpriseint-20)]. It shares some analogies with the *Data Mapper* defined in the same book. Anyone who has worked on O-R (Object-Relational) Mapping strategies will understand the complexities of mapping data between layers that use different paradigms. The issues inherent in the *Messaging Mapper* are similarly complex and a detailed discussion of all possible aspects is beyond the scope of this book. Many of the Data Source Architectural Patterns in [[EAA](http://www.amazon.com/exec/obidos/ASIN/0321127420/enterpriseint-20)] make a good read for anyone concerned with creating a *Messaging Mapper* layer.\n\n...\nRead the entire pattern in the book [Enterprise Integration Patterns](/books1.html)\n\n**Related patterns:**\n\n[*Aggregator*](Aggregator.html), [*Canonical Data Model*](CanonicalDataModel.html), [*Command Message*](CommandMessage.html), [*Document Message*](DocumentMessage.html), [*Message Router*](MessageRouter.html), [*Message Translator*](MessageTranslator.html)\n\n---\n\n## Integration Pattern Language\n\n[Message Construct.](MessageConstructionIntro.html)\n\n[Message](Message.html)\n\n[Command Message](CommandMessage.html)\n\n[Document Message](DocumentMessage.html)\n\n[Event Message](EventMessage.html)\n\n[Request-Reply](RequestReply.html)\n\n[Return Address](ReturnAddress.html)\n\n[Correlation Identifier](CorrelationIdentifier.html)\n\n[Message Sequence](MessageSequence.html)\n\n[Message Expiration](MessageExpiration.html)\n\n[Format Indicator](FormatIndicator.html)\n\n[Message Routing](MessageRoutingIntro.html)\n\n[Pipes-and-Filters](PipesAndFilters.html)\n\n[Message Router](MessageRouter.html)\n\n[Content-based Router](ContentBasedRouter.html)\n\n[Message Filter](Filter.html)\n\n[Dynamic Router](DynamicRouter.html)\n\n[Recipient List](RecipientList.html)\n\n[Splitter](Sequencer.html)\n\n[Aggregator](Aggregator.html)\n\n[Resequencer](Resequencer.html)\n\n[Composed Msg. Processor](DistributionAggregate.html)\n\n[Scatter-Gather](BroadcastAggregate.html)\n\n[Routing Slip](RoutingTable.html)\n\n[Process Manager](ProcessManager.html)\n\n[Message Broker](MessageBroker.html)\n\n[Message\nTransformation](MessageTransformationIntro.html)\n\n[Message Translator](MessageTranslator.html)\n\n[Envelope Wrapper](EnvelopeWrapper.html)\n\n[Content Enricher](DataEnricher.html)\n\n[Content Filter](ContentFilter.html)\n\n[Claim Check](StoreInLibrary.html)\n\n[Normalizer](Normalizer.html)\n\n[Canonical Data Model](CanonicalDataModel.html)\n\n[Messaging Endpoints](MessagingEndpointsIntro.html)\n\n[Message Endpoint](MessageEndpoint.html)\n\n[Messaging Gateway](MessagingGateway.html)\n\n[Messaging Mapper](MessagingMapper.html)\n\n[Transactional Client](TransactionalClient.html)\n\n[Polling Consumer](PollingConsumer.html)\n\n[Event-driven Consumer](EventDrivenConsumer.html)\n\n[Competing Consumers](CompetingConsumers.html)\n\n[Message Dispatcher](MessageDispatcher.html)\n\n[Selective Consumer](MessageSelector.html)\n\n[Durable Subscriber](DurableSubscription.html)\n\n[Idempotent Receiver](IdempotentReceiver.html)\n\n[Service Activator](MessagingAdapter.html)\n\n[Messaging Channels](MessagingChannelsIntro.html)\n\n[Message Channel](MessageChannel.html)\n\n[Point-to-Point Channel](PointToPointChannel.html)\n\n[Publish-Subscr. Channel](PublishSubscribeChannel.html)\n\n[Datatype Channel](DatatypeChannel.html)\n\n[Invalid Message Channel](InvalidMessageChannel.html)\n\n[Dead Letter Channel](DeadLetterChannel.html)\n\n[Guaranteed Delivery](GuaranteedMessaging.html)\n\n[Channel Adapter](ChannelAdapter.html)\n\n[Messaging Bridge](MessagingBridge.html)\n\n[Message Bus](MessageBus.html)\n\n[Systems Mgmt.](SystemManagementIntro.html)\n\n[Control Bus](ControlBus.html)\n\n[Detour](Detour.html)\n\n[Wire Tap](WireTap.html)\n\n[Message History](MessageHistory.html)\n\n[Message Store](MessageStore.html)\n\n[Smart Proxy](SmartProxy.html)\n\n[Test Message](TestMessage.html)\n\n[Channel Purger](ChannelPurger.html)", "znaku_textu": 5643, "slov": 531, "odkazu": 109, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/MessagingMapper.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 06:02:52", "sha256": "fdd610e2031601d9960698815ed18685d6d54450db5d4a858038258fe3e71a21", "hloubka": 1, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://www.amazon.com/exec/obidos/ASIN/0321127420/enterpriseint-20", "http://creativecommons.org/licenses/by/4.0/", "https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "https://www.architectelevator.com/book", "https://www.cloudstrategybook.com/", "https://www.platformstrategybook.info/"]} {"url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/Normalizer.html", "titulek": "Normalizer - Enterprise Integration Patterns", "h1": "", "popis": "How do you process messages that are semantically equivalent, but arrive in a different format?", "klicova_slova": "Normalizer,integration, messaging, events, patterns, event-driven, coupling, eai, middleware, application integration, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns", "og:title": "Normalizer - Enterprise Integration Patterns", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/Normalizer.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/NormalizerDetail.gif"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Integration Pattern Language"}], "markdown": "| | Normalizer[Messaging Patterns](index.html) » [Message Transformation](MessageTransformationIntro.html) | [Contents](toc.html)[⇐ Prev](StoreInLibrary.html)[Next ⇒](CanonicalDataModel.html) |\n| --- | --- | --- |\n\nIn a business-to-business (B2B) integration scenario it is quite common for an enterprise to receive messages from different business partners. These message may have the same meaning, but follow different formats, depending on the partners' internal systems and preferences. For example, we built a solution for a pay-per-view provider that has to accept and process viewership information from over 1700 (!) affiliates, most of which did not conform to a standard format.\n\nHow do you process messages that are semantically equivalent, but arrive in a different format?\n\nUse a *Normalizer* to route each message type through a custom [*Message Translator*](MessageTranslator.html) so that the resulting messages match a common format.\n\nThe *Normalizer* uses a [*Message Router*](MessageRouter.html) to route the incoming message to the correct [*Message Translator*](MessageTranslator.html). This requires the [*Message Router*](MessageRouter.html) to detect the type of the incoming message. Many messaging systems equip each message with a type specifier field in the Message Header to make this type of task simple. However, in many B2B scenarios messages do not arrive as messages compliant with the enterprise's internal messaging system, but in diverse formats such as comma separated files or XML document without associated schema. While it is certainly best practice to equip any incoming data format with a type specifier we know all to well that the world is far from perfect. As a result, we need to think of more general ways to identify the format of the incoming message. One common way for schema-less XML documents is to use the name of the root element to assume the correct type. If multiple data formats use the same root element, you can use XPATH expressions to determine the existence of specific sub-nodes. Comma-separated files can require a little more creativity. Sometimes you can determine the type based on the number of fields and the type of the data (e.g. numeric vs. string). If the data arrives as files, the easiest way may be to use the file name or the file folder structure as a surrogate [*Datatype Channel*](DatatypeChannel.html). Each business partner can name the file with a unique naming convention. The [*Message Router*](MessageRouter.html) can then use the file name to route the message to the appropriate [*Message Translator*](MessageTranslator.html).\n\n...\nRead the entire pattern in the book [Enterprise Integration Patterns](/books1.html)\n\n**Related patterns:**\n\n[*Datatype Channel*](DatatypeChannel.html), [*Message Router*](MessageRouter.html), [*Message Translator*](MessageTranslator.html)\n\n---\n\n## Integration Pattern Language\n\n[Message Construct.](MessageConstructionIntro.html)\n\n[Message](Message.html)\n\n[Command Message](CommandMessage.html)\n\n[Document Message](DocumentMessage.html)\n\n[Event Message](EventMessage.html)\n\n[Request-Reply](RequestReply.html)\n\n[Return Address](ReturnAddress.html)\n\n[Correlation Identifier](CorrelationIdentifier.html)\n\n[Message Sequence](MessageSequence.html)\n\n[Message Expiration](MessageExpiration.html)\n\n[Format Indicator](FormatIndicator.html)\n\n[Message Routing](MessageRoutingIntro.html)\n\n[Pipes-and-Filters](PipesAndFilters.html)\n\n[Message Router](MessageRouter.html)\n\n[Content-based Router](ContentBasedRouter.html)\n\n[Message Filter](Filter.html)\n\n[Dynamic Router](DynamicRouter.html)\n\n[Recipient List](RecipientList.html)\n\n[Splitter](Sequencer.html)\n\n[Aggregator](Aggregator.html)\n\n[Resequencer](Resequencer.html)\n\n[Composed Msg. Processor](DistributionAggregate.html)\n\n[Scatter-Gather](BroadcastAggregate.html)\n\n[Routing Slip](RoutingTable.html)\n\n[Process Manager](ProcessManager.html)\n\n[Message Broker](MessageBroker.html)\n\n[Message\nTransformation](MessageTransformationIntro.html)\n\n[Message Translator](MessageTranslator.html)\n\n[Envelope Wrapper](EnvelopeWrapper.html)\n\n[Content Enricher](DataEnricher.html)\n\n[Content Filter](ContentFilter.html)\n\n[Claim Check](StoreInLibrary.html)\n\n[Normalizer](Normalizer.html)\n\n[Canonical Data Model](CanonicalDataModel.html)\n\n[Messaging Endpoints](MessagingEndpointsIntro.html)\n\n[Message Endpoint](MessageEndpoint.html)\n\n[Messaging Gateway](MessagingGateway.html)\n\n[Messaging Mapper](MessagingMapper.html)\n\n[Transactional Client](TransactionalClient.html)\n\n[Polling Consumer](PollingConsumer.html)\n\n[Event-driven Consumer](EventDrivenConsumer.html)\n\n[Competing Consumers](CompetingConsumers.html)\n\n[Message Dispatcher](MessageDispatcher.html)\n\n[Selective Consumer](MessageSelector.html)\n\n[Durable Subscriber](DurableSubscription.html)\n\n[Idempotent Receiver](IdempotentReceiver.html)\n\n[Service Activator](MessagingAdapter.html)\n\n[Messaging Channels](MessagingChannelsIntro.html)\n\n[Message Channel](MessageChannel.html)\n\n[Point-to-Point Channel](PointToPointChannel.html)\n\n[Publish-Subscr. Channel](PublishSubscribeChannel.html)\n\n[Datatype Channel](DatatypeChannel.html)\n\n[Invalid Message Channel](InvalidMessageChannel.html)\n\n[Dead Letter Channel](DeadLetterChannel.html)\n\n[Guaranteed Delivery](GuaranteedMessaging.html)\n\n[Channel Adapter](ChannelAdapter.html)\n\n[Messaging Bridge](MessagingBridge.html)\n\n[Message Bus](MessageBus.html)\n\n[Systems Mgmt.](SystemManagementIntro.html)\n\n[Control Bus](ControlBus.html)\n\n[Detour](Detour.html)\n\n[Wire Tap](WireTap.html)\n\n[Message History](MessageHistory.html)\n\n[Message Store](MessageStore.html)\n\n[Smart Proxy](SmartProxy.html)\n\n[Test Message](TestMessage.html)\n\n[Channel Purger](ChannelPurger.html)", "znaku_textu": 5583, "slov": 563, "odkazu": 108, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/Normalizer.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 06:02:44", "sha256": "b7c0a62e8ab41ab534fda9fa15d4b4e0f4c4118a31b58e9d87a0ad89a2eb7b20", "hloubka": 1, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://creativecommons.org/licenses/by/4.0/", "https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "https://www.architectelevator.com/book", "https://www.cloudstrategybook.com/", "https://www.platformstrategybook.info/"]} {"url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/ObserverJmsExample.html", "titulek": "JMS Publish/Subscribe Example - Enterprise Integration Patterns", "h1": "", "popis": "This is a simple example that shows the power of publish/subscribe messaging, and explores the alternative designs available. It shows how multiple subscriber applications can all be informed of a single event by publishing the event just once, and considers alternative stratagies for how to communicate details of that event to the subscribers.", "klicova_slova": "JMS Publish/Subscribe Example,integration, messaging, events, patterns, event-driven, coupling, eai, middleware, application integration, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns", "og:title": "JMS Publish/Subscribe Example - Enterprise Integration Patterns", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/ObserverJmsExample.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/eip1_patterns_wide.png"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "The Observer Pattern"}, {"uroven": 2, "text": "Distributed Observer"}, {"uroven": 2, "text": "Publish-Subscribe"}, {"uroven": 2, "text": "Comparisons"}, {"uroven": 2, "text": "Push and Pull Models"}, {"uroven": 2, "text": "Channel Design"}, {"uroven": 2, "text": "Conclusions"}, {"uroven": 2, "text": "Integration Pattern Language"}], "markdown": "| | JMS Publish/Subscribe Example[Messaging Patterns](index.html) » [Interlude: Simple Messaging](SimpleMessagingIntro.html) | [Contents](toc.html)[⇐ Prev](RequestReplyNetExample.html)[Next ⇒](MessageRoutingIntro.html) |\n| --- | --- | --- |\n\nThis is a simple example that shows the power of publish/subscribe messaging, and explores the alternative designs available. It shows how multiple subscriber applications can all be informed of a single event by publishing the event just once, and considers alternative stratagies for how to communicate details of that event to the subscribers.\n\n*Publish/Subscribe using a JMS Topic*\n\nTo understand how helpful a simple [*Publish-Subscribe Channel*](PublishSubscribeChannel.html) really is, we first need to consider what it is like to implement the Observer pattern in a distributed fashion, amongst multiple applications. Before we get to that, let's review the basics of Observer.\n\n## The Observer Pattern\n\nThe Observer pattern [[GoF](http://www.amazon.com/exec/obidos/ASIN/0201633612/enterpriseint-20)] documents a design through which an object can notify its dependents of a change, while keeping that object decoupled from its dependents so that the object works just fine no matter how many dependents it has, even none at all. Its participants are a Subject—the object announcing changes in its state—and Observers—objects interested in receiving notification of changes in the Subject. When a subject's state changes, it sends itself Notify(), whose implementation knows the list of observers and sends Update() to each of them. Some observers may not be interested in this state change, but those who are can find out what the new state is by sending GetState() to the subject. The subject must also implement Attach(Observer) and Detach(Observer) methods that the observers use to register interest.\n\nObserver provides two ways to get the new state from the subject to the observer: the push model and the pull model. With the *push model*, the Update call to each observer contains the new state as a parameter. Thus interested observers can avoid having to call GetState(), but effort is wasted passing data to uninterested observers. The opposite approach is the *pull model*, where the subject sends basic notification and each observer requests the new state from the subject. Thus each observer can request the exact details it wants, even none at all, but the subject often has to serve multiple requests for the same data. The push model requires a single, one-way communication—the Subject pushes the data to an Observer as part of the update. The pull model requires three one-way communications—the Subject notifies an Observer, the Observer requests the current state from the Subject, and the Subject sends the current state to the Observer. As we'll see, the number of one-way communications affects both the design-time complexity and the runtime performance of the notification.\n\nThe easiest way to implement a Subject's Notify() method is with a single thread, but that can have undesirable performance implications. A single thread will update each observer one-at-a-time, in sequence; so those at the end of a long list of observers may need to wait a long time for updates. And a subject spending a long time updating all of its observers isn't accomplishing anything else. Even worse, an observer may well use its update thread to recact to the update, querying the subject for state and processing the new data; such observer work in the update thread makes the update process take even longer.\n\nThus the more sophisticated way to implement a Subject's Notify() method is to run each Update() call in its own thread. Then all observers can be updated concurrently, and whatever work each may do in its update thread does not delay the other observers or the subject. The downside is that implementing multithreading and handling thread-management issues is more complex.\n\n## Distributed Observer\n\nThe Observer pattern tends to assume that the Subject and its Observers all run in the same application. The pattern's design supports distribution, where the Observers run in a seperate memory space from the Subject and perhaps from each other, but the distribution takes work. The Update() and GetState() methods, as well as the Attach and Detach methods, must be made remotely accessible (see [*Remote Procedure Invocation*](EncapsulatedSynchronousIntegration.html)). Because the Subject must be able to call each Observer and vise versa, each object must be running in some type of ORB environment that allows the objects it contains to be invoked remotely. And because the update details and state data will be passed between memory spaces, the applications must be able to serialize (e.g., marshall) the objects they are passing.\n\nThus implementing Observer in a distributed environment can get rather complex. Not only is a multi-threaded Observer somewhat difficult to implement, but then making methods remotely accessible—and invoking them remotely—adds more difficulty. The can be a lot of work just to notify some dependents of state changes.\n\nAnother problem is that a [*Remote Procedure Invocation*](EncapsulatedSynchronousIntegration.html) only works when the source of the call, the target, and the network connecting them are all working properly. If a Subject announces a change and a remote Observer is not ready to process the notification or is disconnected from the network, the Observer looses the notification. While the Observer may work fine without the notification in some cases, in other cases the lost notification may cause the Observer to become out of sync with the Subject—the whole problem the Observer pattern is designed to prevent.\n\nDistribution also favors the push model over the pull model. As discussed earlier, push requires a single one-way communication whereas pull requires three. When the distribution is implemented via RPC's (remote procedure calls), push requires one call (Update()) whereas pull requires at least two calls (Update() and GetState()). RPC's have more overhead than non-distributed method invocations, so the extra calls required by the push approach can quickly hurt performance.\n\n## Publish-Subscribe\n\nA [*Publish-Subscribe Channel*](PublishSubscribeChannel.html) implements the Observer pattern, making the pattern much easier to use amongst distributed applications. The pattern is implemented in three steps:\n\n1. The messaging system administrator creates a [*Publish-Subscribe Channel*](PublishSubscribeChannel.html) . (This will be represented in Java applications as a JMS Topic .)\n2. The application acting as the Subject creates a TopicPublisher (a type of MessageProducer ) to send messages on the channel.\n3. Each of the applications acting as an Observer (e.g., a dependent) creates a TopicSubscriber (a type of MessageConsumer ) to receive messages on the channel. (This is analogous to calling the Attach(Observer) method in the Observer pattern.)\n\nThis establishes a connection between the subject and the observers through the channel. Now, whenever the subject has a change to announce, it does so by sending a message. The channel will ensure that each of the observers receives a copy of this message.\n\nHere is a simple example of the code needed to announce the change:\n\n```\nimport javax.jms.Connection;\nimport javax.jms.ConnectionFactory;\nimport javax.jms.Destination;\nimport javax.jms.JMSException;\nimport javax.jms.MessageProducer;\nimport javax.jms.Session;\nimport javax.jms.TextMessage;\nimport javax.naming.NamingException;\n\npublic class SubjectGateway {\n\n\tpublic static final String UPDATE_TOPIC_NAME = \"jms/Update\";\n\tprivate Connection connection;\n\tprivate Session session;\n\tprivate MessageProducer updateProducer;\n\n\tprotected SubjectGateway() {\n\t\tsuper();\n\t}\n\n\tpublic static SubjectGateway newGateway() throws JMSException, NamingException {\n\t\tSubjectGateway gateway = new SubjectGateway();\n\t\tgateway.initialize();\n\t\treturn gateway;\n\t}\n\n\tprotected void initialize() throws JMSException, NamingException {\n\t\tConnectionFactory connectionFactory = JndiUtil.getQueueConnectionFactory();\n\t\tconnection = connectionFactory.createConnection();\n\t\tsession = connection.createSession(false, Session.AUTO_ACKNOWLEDGE);\n\t\tDestination updateTopic = JndiUtil.getDestination(UPDATE_TOPIC_NAME);\n\t\tupdateProducer = session.createProducer(updateTopic);\n\n\t\tconnection.start();\n\t}\n\n\tpublic void notify(String state) throws JMSException {\n\t\tTextMessage message = session.createTextMessage(state);\n\t\tupdateProducer.send(message);\n\t}\n\n\tpublic void release() throws JMSException {\n\t\tif (connection != null) {\n\t\t\tconnection.stop();\n\t\t\tconnection.close();\n\t\t}\n\t}\n}\n```\n\nSubjectGateway is a [*Messaging Gateway*](MessagingGateway.html) between the Subject (not shown) and the messaging system. The subject creates the gateway and then uses it to broadcast notifications. Essentially, the subject's Notify() method is implemented to call SubjectGateway.notify(String). The gateway then announces the change by sending a message on the update channel.\n\nAnd here is an example of the code needed to receive the change notification:\n\n```\nimport javax.jms.Connection;\nimport javax.jms.ConnectionFactory;\nimport javax.jms.Destination;\nimport javax.jms.JMSException;\nimport javax.jms.Message;\nimport javax.jms.MessageConsumer;\nimport javax.jms.MessageListener;\nimport javax.jms.Session;\nimport javax.jms.TextMessage;\nimport javax.naming.NamingException;\n\npublic class ObserverGateway implements MessageListener {\n\n\tpublic static final String UPDATE_TOPIC_NAME = \"jms/Update\";\n\tprivate Observer observer;\n\tprivate Connection connection;\n\tprivate MessageConsumer updateConsumer;\n\n\tprotected ObserverGateway() {\n\t\tsuper();\n\t}\n\n\tpublic static ObserverGateway newGateway(Observer observer)\n\t\tthrows JMSException, NamingException {\n\t\tObserverGateway gateway = new ObserverGateway();\n\t\tgateway.initialize(observer);\n\t\treturn gateway;\n\t}\n\n\tprotected void initialize(Observer observer) throws JMSException, NamingException {\n\t\tthis.observer = observer;\n\n\t\tConnectionFactory connectionFactory = JndiUtil.getQueueConnectionFactory();\n\t\tconnection = connectionFactory.createConnection();\n\t\tSession session = connection.createSession(false, Session.AUTO_ACKNOWLEDGE);\n\t\tDestination updateTopic = JndiUtil.getDestination(UPDATE_TOPIC_NAME);\n\t\tupdateConsumer = session.createConsumer(updateTopic);\n\t\tupdateConsumer.setMessageListener(this);\n\t}\n\n\tpublic void onMessage(Message message) {\n\t\ttry {\n\t\t\tTextMessage textMsg = (TextMessage) message; // assume cast always works\n\t\t\tString newState = textMsg.getText();\n\t\t\tupdate(newState);\n\t\t} catch (JMSException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}\n\n\tpublic void attach() throws JMSException {\n\t\tconnection.start();\n\t}\n\n\tpublic void detach() throws JMSException {\n\t\tif (connection != null) {\n\t\t\tconnection.stop();\n\t\t\tconnection.close();\n\t\t}\n\t}\n\n\tprivate void update(String newState) throws JMSException {\n\t\tobserver.update(newState);\n\t}\n}\n```\n\nObserverGateway is another [*Messaging Gateway*](MessagingGateway.html), this time between the Observer (not shown) and the messaging system. The observer creates the gateway, then uses attach() to start the Connection (which is analogous to calling the Attach(Observer) method in the Observer pattern). The gateway is an [*Event-Driven Consumer*](EventDrivenConsumer.html), so it implements the MessageListener interface, which requires the onMessage method. In this way, when an update is received, the gateway processes the message to get the new state, and calls is own update(String) method which calls the corresponding message in the observer.\n\nThese two classes implement the push model version of Observer. With the notification message sent by SubjectGateway.notify(String), the existance of the message tells the Observer that a change has occurred, but it is the contents of the message that tell the Observer what the Subject's new state is. The new state is being pushed from the Subject to the Observer. As we'll see later, there's another way to implement all this using the pull model.\n\n## Comparisons\n\nFor distributed notification between applications, the Publish-Subscribe (e.g., messaging) approach has several advantages over the traditional, synchronous (e.g., RPC) approach of implementing Observer:\n\n- **Simplifies Notification** — The Subject's implementation of Notify() becomes incredibly simple; the code just has to send a message on a channel. Likewise, Observer.Update() just has to receive a message.\n- **Simplifies Attach/Detach** — Rather than attach to and detach from the Subject, an Observer needs to subscribe to and unsubscribe from the channel. The Subject does not need to implement Attach(Observer) or Detach(Observer) (although the Observer may implement these methods to encapsulate the subscribe and unsubscribe behavior).\n- **Simplifies Concurrent Threading** — The Subject only needs one thread to update all Observers concurrently—the channel delivers the notification message to the Observers concurrently—and each Observer handles the update in its own thread. This simplifies the Subject's implementation, and because each Observer uses its own thread, what one does in its update thread does not affect the others.\n- **Simplifies Remote Access** — Niether the Subject nor the Observers have to implement any remote methods, nor do they need to run in an ORB. They just need to access the messaging system and it handles the distribution.\n- **Increases Reliability** — Because the channel uses messaging, notifications will be queued until the Observer can process them, which also enables the Observer to throttle the notifications. If an Observer wants to receive notifications that are sent while that Observer is disconnected, it should make itself a [*Durable Subscriber*](DurableSubscription.html) .\n\nOne issue that the Publish-Subscribe approach does not change is **serialization**. Whether Observer is implemented through RPC or messaging, state data is being distributed from the Subject's memory space to each Observer's memory space, so the data has to be serialized (e.g., marshalled). This behavior has to be implemented for either approach.\n\nIf the Publish-Subscribe approach has a downside, it's that the approach requires **messaging**, which means that the Subject and Observer applications must have access to a shared messaging system and must be implemented as clients of that messaging system. Still, making applications into messaging clients is no more difficult, and probably easier, than using the RPC approach.\n\n## Push and Pull Models\n\nAnother potential downside of the Publish-Subscribe approach is that the pull model is more complex than the push model. As discussed earlier, the pull model requires more discussion back and forth than the push model. When the discussion is amongst distributed applications, the extra communication can significantly hurt performance.\n\nThe communication is more complex with messaging than with RPC. In both cases, Update() is a one-way communication, either an RPC that returns void or a single [*Event Message*](EventMessage.html) from the Subject to the Observer. The tricker part is when an Observer needs to query the Subject's state; GetState() is a two-way communication, either a single RPC that requests the state and returns it, or a [*Request-Reply*](RequestReply.html)—a pair of messages where a [*Command Message*](CommandMessage.html) requests the state and a separate [*Document Message*](DocumentMessage.html) returns it.\n\nWhat makes [*Request-Reply*](RequestReply.html) more difficult is not just that it requires a pair of messages, but that it requires a pair of channels to transmit those messages. One channel, the get-state-request channel, goes from an Observer to the Subject; an Observer sends the state request on that channel. The other channel, the get-state-reply channel, goes from the Subject back to the Observer; the Subject sends the state reply on that channel. All of the Observers can share the same request channel, but they will probably each need their own reply channel. Each Observer needs to receive not just any response, but the particular response for its specific request, and the easiest way to ensure this is for each Observer to have its own reply channel. (An alternative is to use a single reply channel and use [*Correlation Identifier*](CorrelationIdentifier.html)s to figure out which reply goes to which observer, but a separate channel per observer is a lot easier to implement.)\n\n*Publish/Subscribe using the Pull Model*\n\nA reply channel for each Observer can lead to an explosion of channels. Such a large number of channels may be managable, but the messaging system administrator does not know how many static channels to create when the number of Observers needing to use these channels changes dynamicly at runtime. Even if there are enough channels for all of the Observers, how does each Observer know which channel to use?\n\nJMS has a feature, TemporaryQueue, specifically for this purpose. [[Hapner, p.60](http://www.amazon.com/exec/obidos/ASIN/0201784726/enterpriseint-20)] (Also see the discussion in [*Request-Reply*](RequestReply.html).) An Observer can create a temporary queue, just for its own use, specify that as the [*Return Address*](ReturnAddress.html) in its request, and wait for the reply on that queue. Creating new queues frequently can be inefficient, depending on your messaging system's implementation, and temporary queues cannot be persistent (for use with [*Guaranteed Delivery*](GuaranteedMessaging.html)). However, if you don't want to use the push model, you can implement the pull model using temporary queues.\n\nThese two classes show how to implement the gateways using the pull model.\n\n```\nimport javax.jms.Connection;\nimport javax.jms.ConnectionFactory;\nimport javax.jms.Destination;\nimport javax.jms.JMSException;\nimport javax.jms.Message;\nimport javax.jms.MessageConsumer;\nimport javax.jms.MessageListener;\nimport javax.jms.MessageProducer;\nimport javax.jms.Session;\nimport javax.jms.TextMessage;\nimport javax.naming.NamingException;\n\npublic class PullSubjectGateway {\n\n\tpublic static final String UPDATE_TOPIC_NAME = \"jms/Update\";\n\tprivate PullSubject subject;\n\tprivate Connection connection;\n\tprivate Session session;\n\tprivate MessageProducer updateProducer;\n\n\tprotected PullSubjectGateway() {\n\t\tsuper();\n\t}\n\n\tpublic static PullSubjectGateway newGateway(PullSubject subject)\n\t\tthrows JMSException, NamingException {\n\t\tPullSubjectGateway gateway = new PullSubjectGateway();\n\t\tgateway.initialize(subject);\n\t\treturn gateway;\n\t}\n\n\tprotected void initialize(PullSubject subject) throws JMSException, NamingException {\n\t\tthis.subject = subject;\n\n\t\tConnectionFactory connectionFactory = JndiUtil.getQueueConnectionFactory();\n\t\tconnection = connectionFactory.createConnection();\n\t\tsession = connection.createSession(false, Session.AUTO_ACKNOWLEDGE);\n\t\tDestination updateTopic = JndiUtil.getDestination(UPDATE_TOPIC_NAME);\n\t\tupdateProducer = session.createProducer(updateTopic);\n\n\t\tnew Thread(new GetStateReplier()).start();\n\n\t\tconnection.start();\n\t}\n\n\tpublic void notifyNoState() throws JMSException {\n\t\tTextMessage message = session.createTextMessage();\n\t\tupdateProducer.send(message);\n\t}\n\n\tpublic void release() throws JMSException {\n\t\tif (connection != null) {\n\t\t\tconnection.stop();\n\t\t\tconnection.close();\n\t\t}\n\t}\n\n\tprivate class GetStateReplier implements Runnable, MessageListener {\n\n\t\tpublic static final String GET_STATE_QUEUE_NAME = \"jms/GetState\";\n\t\tprivate Session session;\n\t\tprivate MessageConsumer requestConsumer;\n\n\t\tpublic void run() {\n\t\t\ttry {\n\t\t\t\tsession = connection.createSession(false, Session.AUTO_ACKNOWLEDGE);\n\t\t\t\tDestination getStateQueue = JndiUtil.getDestination(GET_STATE_QUEUE_NAME);\n\t\t\t\trequestConsumer = session.createConsumer(getStateQueue);\n\t\t\t\trequestConsumer.setMessageListener(this);\n\t\t\t} catch (Exception e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\n\t\tpublic void onMessage(Message message) {\n\t\t\ttry {\n\t\t\t\tDestination replyQueue = message.getJMSReplyTo();\n\t\t\t\tMessageProducer replyProducer = session.createProducer(replyQueue);\n\n\t\t\t\tMessage replyMessage = session.createTextMessage(subject.getState());\n\t\t\t\treplyProducer.send(replyMessage);\n\t\t\t} catch (JMSException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t}\n}\n```\n\nPullSubjectGateway is very similar to SubjectGateway. The pull version now has a reference to its subject so that the gateway can query the subject for its state when requested by an observer. notify(String) has now become notifyNoState(), because the pull model simply sends out notification without including any state (and because Java already uses the method name notify()).\n\nThe big addition for the pull model is GetStateReplier, an inner class that implements Runnable so that it can run in its own thread. It is also a MessageListener, which makes it an [*Event-Driven Consumer*](EventDrivenConsumer.html). Its onMessage method reads requests from the GetState queue and sends replies containing the subject's state to the queue specified by the request. In this way, when an observer makes a GetState() request, the gateway sends a reply (see [*Request-Reply*](RequestReply.html)).\n\n```\nimport javax.jms.Destination;\nimport javax.jms.JMSException;\nimport javax.jms.Message;\nimport javax.jms.MessageConsumer;\nimport javax.jms.MessageListener;\nimport javax.jms.Queue;\nimport javax.jms.QueueConnection;\nimport javax.jms.QueueConnectionFactory;\nimport javax.jms.QueueRequestor;\nimport javax.jms.QueueSession;\nimport javax.jms.Session;\nimport javax.jms.TextMessage;\nimport javax.naming.NamingException;\n\npublic class PullObserverGateway implements MessageListener {\n\n\tpublic static final String UPDATE_TOPIC_NAME = \"jms/Update\";\n\tpublic static final String GET_STATE_QUEUE_NAME = \"jms/GetState\";\n\tprivate PullObserver observer;\n\tprivate QueueConnection connection;\n\tprivate QueueSession session;\n\tprivate MessageConsumer updateConsumer;\n\tprivate QueueRequestor getStateRequestor;\n\n\tprotected PullObserverGateway() {\n\t\tsuper();\n\t}\n\n\tpublic static PullObserverGateway newGateway(PullObserver observer)\n\t\tthrows JMSException, NamingException {\n\t\tPullObserverGateway gateway = new PullObserverGateway();\n\t\tgateway.initialize(observer);\n\t\treturn gateway;\n\t}\n\n\tprotected void initialize(PullObserver observer) throws JMSException, NamingException {\n\t\tthis.observer = observer;\n\n\t\tQueueConnectionFactory connectionFactory = JndiUtil.getQueueConnectionFactory();\n\t\tconnection = connectionFactory.createQueueConnection();\n\t\tsession = connection.createQueueSession(false, Session.AUTO_ACKNOWLEDGE);\n\t\tDestination updateTopic = JndiUtil.getDestination(UPDATE_TOPIC_NAME);\n\t\tupdateConsumer = session.createConsumer(updateTopic);\n\t\tupdateConsumer.setMessageListener(this);\n\n\t\tQueue getStateQueue = (Queue) JndiUtil.getDestination(GET_STATE_QUEUE_NAME);\n\t\tgetStateRequestor = new QueueRequestor(session, getStateQueue);\n\t\t\n\t}\n\n\tpublic void onMessage(Message message) {\n\t\ttry {\n\t\t\t// message's contents are empty\n\t\t\tupdateNoState();\n\t\t} catch (JMSException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}\n\n\tpublic void attach() throws JMSException {\n\t\tconnection.start();\n\t}\n\n\tpublic void detach() throws JMSException {\n\t\tif (connection != null) {\n\t\t\tconnection.stop();\n\t\t\tconnection.close();\n\t\t}\n\t}\n\n\tprivate void updateNoState() throws JMSException {\n\t\tTextMessage getStateRequestMessage = session.createTextMessage();\n\t\tMessage getStateReplyMessage = getStateRequestor.request(getStateRequestMessage);\n\t\tTextMessage textMsg = (TextMessage) getStateReplyMessage; // assume cast always works\n\t\tString newState = textMsg.getText();\n\t\tobserver.update(newState);\n\t}\n}\n```\n\nAgain, PullObserverGateway is similar to ObserverGateway, but with some more code to implement the pull model. In initialize, it not only sets up updateConsumer to listen for updates, but also sets up getStateRequestor to send GetState() requests. (getStateRequestor is a QueueRequestor; see [*Request-Reply*](RequestReply.html).) In the pull version, the gateway's onMessage code ignores the message's contents because the message is empty. The message's existance tells the observer that the subject has changed, but does not tell the observer what the subject's new state is. So all there is to do is call updateNoState() (named similarly to notifyNoState()).\n\nThe difference for the Observer between the push and pull models becomes apparent in the implementation of updateNoState() vs. update(String). Whereas the push version gets the new state as a parameter and just has to update the observer, the pull version must go get the new state before it can update the observer. To get the new state, it uses the getStateRequestor to send a request and get the reply. The reply contains the subject's new state, which the gateway uses to update the observer. (Note that in this simple implementation, the gateway is single-threaded, so while it is sending the get-state request and waiting for the reply, it is not processing any more updates. Thus if the request or reply messages take a really long time to transmit, the gateway will be stuck waiting and any more updates that occur will simply queue up.)\n\nSo as you can see, the pull model is more complex than the push model. It requires more channels (including a temporary one for every observer), it requires more messages (three messages per update per interested observer instead of one message for all observers), the subject and observer classes require more code to manage the additional messaging, and the objects at runtime require more threads to execute the additional messaging. If all of this is acceptable in your application, then the pull model is a viable approach. However, if in doubt, you should probably start with the push model because it is simpler.\n\n## Channel Design\n\nSo far, we've considered one Subject with one piece of state notifying its Observers. Using the push model, this requires one [*Publish-Subscribe Channel*](PublishSubscribeChannel.html) for communicating changes in the Subject's state to the Observers.\n\nReal enterprise applications are much more complex. An application can contain lots of Subjects that need to announce changes. Each Subject often contains several different pieces of state, called *aspects*, that can change independently. A single Observer might be interested in several different aspects in several different Subjects, where the Subjects are not only multiple instances of the same class, but may well be instances of different classes.\n\nSo update semantics in sophsticated applications can quickly become complex. The Observer pattern address this as implementation issues like \"Observing more than one subject\" and \"Specifying modifications of interest explicitly.\" Also, the SASE (Self-Addresses Stamped Envelope) pattern describes a combination of the Observer and Command patterns whereby an observer specifies the command a subject should send it when a certain change occurs. [[Alpert, pp.312-314](http://www.amazon.com/exec/obidos/ASIN/0201184621/enterpriseint-20)]\n\nWithout getting too deep into the issues of making sure observers only receive the updates they need, let's consider the implications for messaging, namely: How many channels will we need?\n\nLet's first consider a simple case. An enterprise may have several different applications responsible for storing a customer's contact information, such as a mailing address. When a customer's address is updated in one of these applications, the application should notify other applications that may need this new information as well. Meanwhile, there may be several applications that need to know when an address changes, so they would like to register to receive notification.\n\nThis is a simple problem to solve. All that is needed is a single [*Publish-Subscribe Channel*](PublishSubscribeChannel.html) for announcing address changes. Each application that can change an address then also has the responsibility to announce that change by publishing a message on the channel. Each application that wishes to receive notification subscribes to the channel. A particular change message might look like this:\n\n```\n\n\t\n\t\t123 Wall Street\n\t\tNew York\n\t\tNY\n\t\t10005\n\t\n\t\n\t\t321 Sunset Blvd\n\t\tLos Angeles\n\t\tCA\n\t\t90012\n\t\n\n```\n\nNow let's consider another problem. The enterprise may also have applications that need to announce when they are out of a product, and others that need to receive these notifications so that they can reorder the product. This is just a different example of the last problem, and is solved the same way by using a [*Publish-Subscribe Channel*](PublishSubscribeChannel.html) to make out-of-product announcements. One of these messages might look like this:\n\n```\n\n\t12345\n\t67890\n\t100\n\n```\n\nBut this leads us to wonder: Can we use the same channel for customer address changes and for out-of-product announcements? Probably not. First, [*Datatype Channel*](DatatypeChannel.html) tells us that all of the messages on a channel must be of the same type, which in this case means that they must all conform to the same XML schema. is obviously a very different element type from , so they should not be sent on the same channel. Perhaps the data formats could be reworked so that both message types fit the same schema and receivers could tell which messages were for addresses and which were for products. But then the problem is that the applications interested in address changes are probablty not the same ones interested in product updates, so if the messages use the same channel, an application will frequently receive notifications it's not interested in. Thus is makes sense to have two separate address change and product update channels.\n\nNow consider a third case where a customer's credit rating could change. The message might look like this:\n\n```\n\n\tAAA\n\tBBB\n\n```\n\nLike the case with product notifications, it might be tempting to solve the problem with a new credit-rating-changed channel (in addition to the address-changed and out-of-product channels). This would keep the credit rating changes separate from the address changes, and would allow dependents to only register for the type of changes they're interested in.\n\nThe problem with this approach is that it can lead to a channel explosion. Consider all the pieces of data that may be known about a customer: name; contacts (address, phone number, e-mail) for mailing, shipping, and billing; credit rating; service level; standard discount; etc. Each time any one of these aspects changes, other applications may need to know about it. Creating a channel for each can lead to lots of channels.\n\nLarge numbers of channels may tax the messaging system. Numerous channels with little traffic on each can waste resources and make load difficult to distribute. Or, numerous channels with lots of little messages can add to messaging overhead. Dependents can become confused as to which of a large number of channels to subscribe to. Multiple channels require multiple senders and receivers, perhaps leading to lots of threads checking lots of channels that are usually empty. So creating yet more channels may not be such a good idea.\n\nWhat may work better is to send both the address-changed and credit-rating-changed messages on the same channel, since they both concern changes to the customer and an application interested in one kind of change may be interested in the others as well. Yet a separate out-of-product channel is still a good idea since applications interested in customers may not be interested in products and vise versa.\n\nThe address-changed and credit-rating-changed messages have different formats, yet [*Datatype Channel*](DatatypeChannel.html) tells us that to be on the same channel, the messages must have the same format. With XML, this means that all of the messages must have the same root element type, but perhaps can have different optional nested elements. So unified customer-changed messages might look like this:\n\n```\n\n\t\n\t\t\n\t\t\t123 Wall Street\n\t\t\tNew York\n\t\t\tNY\n\t\t\t10005\n\t\t\n\t\t\n\t\t\t321 Sunset Blvd\n\t\t\tLos Angeles\n\t\t\tCA\n\t\t\t90012\n\t\t\n\t\n\n```\n\n```\n\n\t\n\t\tAAA\n\t\tBBB\n\t\n\n```\n\nThere may still be the problem that shipping applications interested in address changes are not interested in credit rating changes, and billing applications are interested in the opposite. These applications can use [*Selective Consumer*](MessageSelector.html)s to get only the messages of interest. If selective consumers prove to be complicated and a messaging system can easily support more channels, then perhaps separate channels would be better after all.\n\nAs with may issues in enterprise architecture and design, there are no simple answers and lots of tradeoffs. With [*Publish-Subscribe Channel*](PublishSubscribeChannel.html) (as with any message channel), the goal is to help ensure that the observers only receive the notifications they need, without an explosion of separate channels and without taxing the typical observer with lots of threads running lots of consumers monitoring lots of channels.\n\n## Conclusions\n\nThis chapter shows that [*Publish-Subscribe Channel*](PublishSubscribeChannel.html)s are an implementation of the Observer pattern that make the pattern much easier to use in distributed environments. When a channel is used, Subject.Notify() and Observer.Update() become much simpler because all they have to do is send and receive messages. The messaging system takes care of distribution and concurrency while making the remote notification more reliable. The push model is simpler and often more efficient than the pull model, especially for distributed notification, especially with messaging; yet the pull model can also be implemented using messaging. In complex applications where lots of data can change, it may be tempting to create a channel for every different thing that can change, but it's often more practical to use the same channel to trasmit similar notifications going to the same observers. Even if your applications don't need messaging for anything else, if they need to notify each other of changes, it may well be worth using [*Messaging*](Messaging.html) just so you can take advantage of [*Publish-Subscribe Channel*](PublishSubscribeChannel.html)s.\n\n## Integration Pattern Language\n\n[Message Construct.](MessageConstructionIntro.html)\n\n[Message](Message.html)\n\n[Command Message](CommandMessage.html)\n\n[Document Message](DocumentMessage.html)\n\n[Event Message](EventMessage.html)\n\n[Request-Reply](RequestReply.html)\n\n[Return Address](ReturnAddress.html)\n\n[Correlation Identifier](CorrelationIdentifier.html)\n\n[Message Sequence](MessageSequence.html)\n\n[Message Expiration](MessageExpiration.html)\n\n[Format Indicator](FormatIndicator.html)\n\n[Message Routing](MessageRoutingIntro.html)\n\n[Pipes-and-Filters](PipesAndFilters.html)\n\n[Message Router](MessageRouter.html)\n\n[Content-based Router](ContentBasedRouter.html)\n\n[Message Filter](Filter.html)\n\n[Dynamic Router](DynamicRouter.html)\n\n[Recipient List](RecipientList.html)\n\n[Splitter](Sequencer.html)\n\n[Aggregator](Aggregator.html)\n\n[Resequencer](Resequencer.html)\n\n[Composed Msg. Processor](DistributionAggregate.html)\n\n[Scatter-Gather](BroadcastAggregate.html)\n\n[Routing Slip](RoutingTable.html)\n\n[Process Manager](ProcessManager.html)\n\n[Message Broker](MessageBroker.html)\n\n[Message\nTransformation](MessageTransformationIntro.html)\n\n[Message Translator](MessageTranslator.html)\n\n[Envelope Wrapper](EnvelopeWrapper.html)\n\n[Content Enricher](DataEnricher.html)\n\n[Content Filter](ContentFilter.html)\n\n[Claim Check](StoreInLibrary.html)\n\n[Normalizer](Normalizer.html)\n\n[Canonical Data Model](CanonicalDataModel.html)\n\n[Messaging Endpoints](MessagingEndpointsIntro.html)\n\n[Message Endpoint](MessageEndpoint.html)\n\n[Messaging Gateway](MessagingGateway.html)\n\n[Messaging Mapper](MessagingMapper.html)\n\n[Transactional Client](TransactionalClient.html)\n\n[Polling Consumer](PollingConsumer.html)\n\n[Event-driven Consumer](EventDrivenConsumer.html)\n\n[Competing Consumers](CompetingConsumers.html)\n\n[Message Dispatcher](MessageDispatcher.html)\n\n[Selective Consumer](MessageSelector.html)\n\n[Durable Subscriber](DurableSubscription.html)\n\n[Idempotent Receiver](IdempotentReceiver.html)\n\n[Service Activator](MessagingAdapter.html)\n\n[Messaging Channels](MessagingChannelsIntro.html)\n\n[Message Channel](MessageChannel.html)\n\n[Point-to-Point Channel](PointToPointChannel.html)\n\n[Publish-Subscr. Channel](PublishSubscribeChannel.html)\n\n[Datatype Channel](DatatypeChannel.html)\n\n[Invalid Message Channel](InvalidMessageChannel.html)\n\n[Dead Letter Channel](DeadLetterChannel.html)\n\n[Guaranteed Delivery](GuaranteedMessaging.html)\n\n[Channel Adapter](ChannelAdapter.html)\n\n[Messaging Bridge](MessagingBridge.html)\n\n[Message Bus](MessageBus.html)\n\n[Systems Mgmt.](SystemManagementIntro.html)\n\n[Control Bus](ControlBus.html)\n\n[Detour](Detour.html)\n\n[Wire Tap](WireTap.html)\n\n[Message History](MessageHistory.html)\n\n[Message Store](MessageStore.html)\n\n[Smart Proxy](SmartProxy.html)\n\n[Test Message](TestMessage.html)\n\n[Channel Purger](ChannelPurger.html)", "znaku_textu": 37477, "slov": 4883, "odkazu": 110, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/patterns/messaging/ObserverJmsExample.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 06:02:24", "sha256": "7e29b1696ebe42055cf41bf8fa9e7dc59d6a999c407a7b3efd9804ca5bdc578e", "hloubka": 1, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://www.amazon.com/exec/obidos/ASIN/0201633612/enterpriseint-20", "http://www.amazon.com/exec/obidos/ASIN/0201784726/enterpriseint-20", "http://www.amazon.com/exec/obidos/ASIN/0201184621/enterpriseint-20", "https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "https://www.architectelevator.com/book", "https://www.cloudstrategybook.com/", "https://www.platformstrategybook.info/"]} {"url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/PipesAndFilters.html", "titulek": "Pipes and Filters - Enterprise Integration Patterns", "h1": "", "popis": "How can we perform complex processing on a message while maintaining independence and flexibility?", "klicova_slova": "Pipes and Filters,integration, messaging, events, patterns, event-driven, coupling, eai, middleware, application integration, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns", "og:title": "Pipes and Filters - Enterprise Integration Patterns", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/PipesAndFilters.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/PipesAndFilters.gif"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Integration Pattern Language"}], "markdown": "| | Pipes and Filters[Messaging Patterns](index.html) » [Messaging Systems](MessagingComponentsIntro.html) | [Contents](toc.html)[⇐ Prev](Message.html)[Next ⇒](MessageRouter.html) |\n| --- | --- | --- |\n\nIn many enterprise integration scenarios, a single event triggers a sequence of processing steps, each performing a specific function. For example, let's assume a new order arrives in our enterprise in the form of a message. One requirement may be that the message is encrypted to prevent eavesdroppers from spying on a customer's order. A second requirement is that the messages contain authentication information in the form of a digital certificate to ensure that orders are placed only by trusted customers. In addition, duplicate messages could be sent from external parties (remember all the warnings on the popular shopping sites to click the 'Order Now' button only once?). To avoid duplicate shipments and unhappy customers, we need to eliminate duplicate messages before subsequent order processing steps are initiated. To meet these requirements, we need to transform a stream of possibly duplicated, encrypted messages containing extra authentication data into a stream of unique, simple plain-text order messages without the extraneous data fields.\n\nHow can we perform complex processing on a message while maintaining independence and flexibility?\n\nUse the *Pipes and Filters* architectural style to divide a larger processing task into a sequence of smaller, independent processing steps (Filters) that are connected by channels (Pipes).\n\nEach filter exposes a very simple interface: it receives messages on the inbound pipe, processes the message, and publishes the results to the outbound pipe. The pipe connects one filter to the next, sending output messages from one filter to the next. Because all component use the same external interface they can be *composed* into different solutions by connecting the components to different pipes. We can add new filters, omit existing ones or rearrange them into a new sequence -- all without having to change the filters themselves. The connection between filter and pipe is sometimes called *port*. In the basic form, each filter component has one input port and one output port.\n\n...\nRead the entire pattern in the book [Enterprise Integration Patterns](/books1.html)\n\n**Related patterns:**\n\n[*Competing Consumers*](CompetingConsumers.html), [*Content Filter*](ContentFilter.html), [*Event-Driven Consumer*](EventDrivenConsumer.html), [*Message Filter*](Filter.html), [*Message Channel*](MessageChannel.html), [*Message Router*](MessageRouter.html), [*Messaging*](Messaging.html), [*Messaging Gateway*](MessagingGateway.html), [*Point-to-Point Channel*](PointToPointChannel.html), [*Resequencer*](Resequencer.html), [*Test Message*](TestMessage.html), [*Transactional Client*](TransactionalClient.html)\n\n---\n\n## Integration Pattern Language\n\n[Message Construct.](MessageConstructionIntro.html)\n\n[Message](Message.html)\n\n[Command Message](CommandMessage.html)\n\n[Document Message](DocumentMessage.html)\n\n[Event Message](EventMessage.html)\n\n[Request-Reply](RequestReply.html)\n\n[Return Address](ReturnAddress.html)\n\n[Correlation Identifier](CorrelationIdentifier.html)\n\n[Message Sequence](MessageSequence.html)\n\n[Message Expiration](MessageExpiration.html)\n\n[Format Indicator](FormatIndicator.html)\n\n[Message Routing](MessageRoutingIntro.html)\n\n[Pipes-and-Filters](PipesAndFilters.html)\n\n[Message Router](MessageRouter.html)\n\n[Content-based Router](ContentBasedRouter.html)\n\n[Message Filter](Filter.html)\n\n[Dynamic Router](DynamicRouter.html)\n\n[Recipient List](RecipientList.html)\n\n[Splitter](Sequencer.html)\n\n[Aggregator](Aggregator.html)\n\n[Resequencer](Resequencer.html)\n\n[Composed Msg. Processor](DistributionAggregate.html)\n\n[Scatter-Gather](BroadcastAggregate.html)\n\n[Routing Slip](RoutingTable.html)\n\n[Process Manager](ProcessManager.html)\n\n[Message Broker](MessageBroker.html)\n\n[Message\nTransformation](MessageTransformationIntro.html)\n\n[Message Translator](MessageTranslator.html)\n\n[Envelope Wrapper](EnvelopeWrapper.html)\n\n[Content Enricher](DataEnricher.html)\n\n[Content Filter](ContentFilter.html)\n\n[Claim Check](StoreInLibrary.html)\n\n[Normalizer](Normalizer.html)\n\n[Canonical Data Model](CanonicalDataModel.html)\n\n[Messaging Endpoints](MessagingEndpointsIntro.html)\n\n[Message Endpoint](MessageEndpoint.html)\n\n[Messaging Gateway](MessagingGateway.html)\n\n[Messaging Mapper](MessagingMapper.html)\n\n[Transactional Client](TransactionalClient.html)\n\n[Polling Consumer](PollingConsumer.html)\n\n[Event-driven Consumer](EventDrivenConsumer.html)\n\n[Competing Consumers](CompetingConsumers.html)\n\n[Message Dispatcher](MessageDispatcher.html)\n\n[Selective Consumer](MessageSelector.html)\n\n[Durable Subscriber](DurableSubscription.html)\n\n[Idempotent Receiver](IdempotentReceiver.html)\n\n[Service Activator](MessagingAdapter.html)\n\n[Messaging Channels](MessagingChannelsIntro.html)\n\n[Message Channel](MessageChannel.html)\n\n[Point-to-Point Channel](PointToPointChannel.html)\n\n[Publish-Subscr. Channel](PublishSubscribeChannel.html)\n\n[Datatype Channel](DatatypeChannel.html)\n\n[Invalid Message Channel](InvalidMessageChannel.html)\n\n[Dead Letter Channel](DeadLetterChannel.html)\n\n[Guaranteed Delivery](GuaranteedMessaging.html)\n\n[Channel Adapter](ChannelAdapter.html)\n\n[Messaging Bridge](MessagingBridge.html)\n\n[Message Bus](MessageBus.html)\n\n[Systems Mgmt.](SystemManagementIntro.html)\n\n[Control Bus](ControlBus.html)\n\n[Detour](Detour.html)\n\n[Wire Tap](WireTap.html)\n\n[Message History](MessageHistory.html)\n\n[Message Store](MessageStore.html)\n\n[Smart Proxy](SmartProxy.html)\n\n[Test Message](TestMessage.html)\n\n[Channel Purger](ChannelPurger.html)", "znaku_textu": 5586, "slov": 530, "odkazu": 108, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/PipesAndFilters.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 06:01:57", "sha256": "850988a7f88fc170ad5d90f5791040fff4bc4b42643ce851466db4b4f6fb1d90", "hloubka": 1, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://creativecommons.org/licenses/by/4.0/", "https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "https://www.architectelevator.com/book", "https://www.cloudstrategybook.com/", "https://www.platformstrategybook.info/"]} {"url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/PointToPointChannel.html", "titulek": "Point-to-Point Channel - Enterprise Integration Patterns", "h1": "", "popis": "How can the caller be sure that exactly one receiver will receive the document or perform the call?", "klicova_slova": "Point-to-Point Channel,integration, messaging, events, patterns, event-driven, coupling, eai, middleware, application integration, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns", "og:title": "Point-to-Point Channel - Enterprise Integration Patterns", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/PointToPointChannel.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/PointToPointSolution.gif"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Integration Pattern Language"}], "markdown": "Messaging Patterns\n\n[Messaging Patterns](index.html)\n\n- [Integration Styles](IntegrationStylesIntro.html)\n- [Messaging Systems](MessagingComponentsIntro.html)\n- [Messaging Channels](MessagingChannelsIntro.html)\n- [Message Construction](MessageConstructionIntro.html)\n- [Interlude: Simple Messaging](SimpleMessagingIntro.html)\n- [Message Routing](MessageRoutingIntro.html)\n- [Message Transformation](MessageTransformationIntro.html)\n- [Interlude: Composed Messaging](ComposedMessagingExample.html)\n- [Messaging Endpoints](MessagingEndpointsIntro.html)\n- [System Management](SystemManagementIntro.html)\n- Interlude: Systems Management Example\n- Integration Patterns in Practice\n- Concluding Remarks\n- Appendices\n\n| | Point-to-Point Channel[Messaging Patterns](index.html) » [Messaging Channels](MessagingChannelsIntro.html) | [Contents](toc.html)[⇐ Prev](MessagingChannelsIntro.html)[Next ⇒](PublishSubscribeChannel.html) |\n| --- | --- | --- |\n\nAn application is using [*Messaging*](Messaging.html) to make remote procedure calls (RPC’s) or transfer documents.\n\nHow can the caller be sure that exactly one receiver will receive the document or perform the call?\n\nSend the message on a *Point-to-Point Channel*, which ensures that only one receiver will receive a particular message.\n\nA *Point-to-Point Channel* ensures that only one receiver consumes any given message. If the channel has multiple receivers, only one of them can successfully consume a particular message. If multiple receivers try to consume a single message, the channel ensures that only one of them succeeds, so the receivers do not have to coordinate with each other. The channel can still have multiple receivers to consume multiple messages concurrently, but only a single receiver consumes any one message.\n\n...\nRead the entire pattern in the book [Enterprise Integration Patterns](/books1.html)\n\n**Related patterns:**\n\n[*Command Message*](CommandMessage.html), [*Competing Consumers*](CompetingConsumers.html), [*Document Message*](DocumentMessage.html), [*Message*](Message.html), [*Message Channel*](MessageChannel.html), [*Messaging*](Messaging.html), [*Publish-Subscribe Channel*](PublishSubscribeChannel.html), [*Request-Reply*](RequestReply.html)\n\n---\n\n## Integration Pattern Language\n\n[Message Construct.](MessageConstructionIntro.html)\n\n[Message](Message.html)\n\n[Command Message](CommandMessage.html)\n\n[Document Message](DocumentMessage.html)\n\n[Event Message](EventMessage.html)\n\n[Request-Reply](RequestReply.html)\n\n[Return Address](ReturnAddress.html)\n\n[Correlation Identifier](CorrelationIdentifier.html)\n\n[Message Sequence](MessageSequence.html)\n\n[Message Expiration](MessageExpiration.html)\n\n[Format Indicator](FormatIndicator.html)\n\n[Message Routing](MessageRoutingIntro.html)\n\n[Pipes-and-Filters](PipesAndFilters.html)\n\n[Message Router](MessageRouter.html)\n\n[Content-based Router](ContentBasedRouter.html)\n\n[Message Filter](Filter.html)\n\n[Dynamic Router](DynamicRouter.html)\n\n[Recipient List](RecipientList.html)\n\n[Splitter](Sequencer.html)\n\n[Aggregator](Aggregator.html)\n\n[Resequencer](Resequencer.html)\n\n[Composed Msg. Processor](DistributionAggregate.html)\n\n[Scatter-Gather](BroadcastAggregate.html)\n\n[Routing Slip](RoutingTable.html)\n\n[Process Manager](ProcessManager.html)\n\n[Message Broker](MessageBroker.html)\n\n[Message\nTransformation](MessageTransformationIntro.html)\n\n[Message Translator](MessageTranslator.html)\n\n[Envelope Wrapper](EnvelopeWrapper.html)\n\n[Content Enricher](DataEnricher.html)\n\n[Content Filter](ContentFilter.html)\n\n[Claim Check](StoreInLibrary.html)\n\n[Normalizer](Normalizer.html)\n\n[Canonical Data Model](CanonicalDataModel.html)\n\n[Messaging Endpoints](MessagingEndpointsIntro.html)\n\n[Message Endpoint](MessageEndpoint.html)\n\n[Messaging Gateway](MessagingGateway.html)\n\n[Messaging Mapper](MessagingMapper.html)\n\n[Transactional Client](TransactionalClient.html)\n\n[Polling Consumer](PollingConsumer.html)\n\n[Event-driven Consumer](EventDrivenConsumer.html)\n\n[Competing Consumers](CompetingConsumers.html)\n\n[Message Dispatcher](MessageDispatcher.html)\n\n[Selective Consumer](MessageSelector.html)\n\n[Durable Subscriber](DurableSubscription.html)\n\n[Idempotent Receiver](IdempotentReceiver.html)\n\n[Service Activator](MessagingAdapter.html)\n\n[Messaging Channels](MessagingChannelsIntro.html)\n\n[Message Channel](MessageChannel.html)\n\n[Point-to-Point Channel](PointToPointChannel.html)\n\n[Publish-Subscr. Channel](PublishSubscribeChannel.html)\n\n[Datatype Channel](DatatypeChannel.html)\n\n[Invalid Message Channel](InvalidMessageChannel.html)\n\n[Dead Letter Channel](DeadLetterChannel.html)\n\n[Guaranteed Delivery](GuaranteedMessaging.html)\n\n[Channel Adapter](ChannelAdapter.html)\n\n[Messaging Bridge](MessagingBridge.html)\n\n[Message Bus](MessageBus.html)\n\n[Systems Mgmt.](SystemManagementIntro.html)\n\n[Control Bus](ControlBus.html)\n\n[Detour](Detour.html)\n\n[Wire Tap](WireTap.html)\n\n[Message History](MessageHistory.html)\n\n[Message Store](MessageStore.html)\n\n[Smart Proxy](SmartProxy.html)\n\n[Test Message](TestMessage.html)\n\n[Channel Purger](ChannelPurger.html)\n\n- » [Read the latest in My Blog](/ramblings)\n- » [Get more insights from My Articles](/articles.html)\n- » [See me live in my Upcoming Talks](/talks)\n\nYou can reuse the following elements under the [Creative Commons Attribution](http://creativecommons.org/licenses/by/4.0/) license: pattern icon, pattern name, problem and solution statements (in bold), and the sketch. Other portions are protected by copyright.\n\n[Enterprise Integration Patterns](https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20)\nThe de-facto language for designing asynchronous, distributed systems. Over 100,000 copies sold.\n\n[The Software Architect Elevator](https://www.architectelevator.com/book)\n\n Rethink the role of architects as a connecting element across organizational layers. Acquire the technical, communication, and organizational skills to succeed in this new role.\n\n[Cloud Strategy](https://www.cloudstrategybook.com)\n\n Make your cloud migration a success by translating high-level goals into conscious decisions with well-understood trade-offs.\n\n[Platform Strategy](https://www.platformstrategybook.info)\n\n Platforms can boost innovation through harmonization, but they aren't easy to build. Learn from over a decade of designing and rolling out IT platforms.", "znaku_textu": 6181, "slov": 514, "odkazu": 108, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/PointToPointChannel.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 06:02:02", "sha256": "d49b1e29621d358d9132f88cf051f320778547c1136a5e97c5a9467dd9631291", "hloubka": 1, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://creativecommons.org/licenses/by/4.0/", "https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "https://www.architectelevator.com/book", "https://www.cloudstrategybook.com/", "https://www.platformstrategybook.info/"]} {"url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/PollingConsumer.html", "titulek": "Polling Consumer - Enterprise Integration Patterns", "h1": "", "popis": "How can an application consume a message when the application is ready?", "klicova_slova": "Polling Consumer,integration, messaging, events, patterns, event-driven, coupling, eai, middleware, application integration, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns", "og:title": "Polling Consumer - Enterprise Integration Patterns", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/PollingConsumer.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/PollingConsumerSolution.gif"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Integration Pattern Language"}], "markdown": "Messaging Patterns\n\n[Messaging Patterns](index.html)\n\n- [Integration Styles](IntegrationStylesIntro.html)\n- [Messaging Systems](MessagingComponentsIntro.html)\n- [Messaging Channels](MessagingChannelsIntro.html)\n- [Message Construction](MessageConstructionIntro.html)\n- [Interlude: Simple Messaging](SimpleMessagingIntro.html)\n- [Message Routing](MessageRoutingIntro.html)\n- [Message Transformation](MessageTransformationIntro.html)\n- [Interlude: Composed Messaging](ComposedMessagingExample.html)\n- [Messaging Endpoints](MessagingEndpointsIntro.html)\n- [System Management](SystemManagementIntro.html)\n- Interlude: Systems Management Example\n- Integration Patterns in Practice\n- Concluding Remarks\n- Appendices\n\n| | Polling Consumer[Messaging Patterns](index.html) » [Messaging Endpoints](MessagingEndpointsIntro.html) | [Contents](toc.html)[⇐ Prev](TransactionalClient.html)[Next ⇒](EventDrivenConsumer.html) |\n| --- | --- | --- |\n\nAn application needs to consume [*Message*](Message.html)s, but it wants to control when it consumes each message.\n\nHow can an application consume a message when the application is ready?\n\nThe application should use a *Polling Consumer*, one that explicitly makes a call when it wants to receive a message.\n\nThis is also known as a synchronous receiver, because the receiver thread blocks until a message is received. We call it a *Polling Consumer* because the receiver polls for a message, processes it, then polls for another. As a convenience, messaging API’s usually provide a receive method that blocks until a message is delivered, in addition to methods like receiveNoWait() and Receive(0) that return immediately if no message is available. This difference is only apparent when the receiver is polling faster than messages are arriving.\n\nA *Polling Consumer* is an object that an application uses to receive messages by explicitly requesting them. When the application is ready for another message, it polls the consumer, which in turn gets a message from the messaging system and returns it. (How the consumer gets the message from the messaging system is implementation-specific and may or may not involve polling. All the application knows is that it doesn’t get the message until it explicitly asks for one.)\n\n...\nRead the entire pattern in the book [Enterprise Integration Patterns](/books1.html)\n\n**Related patterns:**\n\n[*Competing Consumers*](CompetingConsumers.html), [*Durable Subscriber*](DurableSubscription.html), [*Event-Driven Consumer*](EventDrivenConsumer.html), [*Message*](Message.html), [*Message Dispatcher*](MessageDispatcher.html), [*Selective Consumer*](MessageSelector.html), [*Transactional Client*](TransactionalClient.html)\n\n---\n\n## Integration Pattern Language\n\n[Message Construct.](MessageConstructionIntro.html)\n\n[Message](Message.html)\n\n[Command Message](CommandMessage.html)\n\n[Document Message](DocumentMessage.html)\n\n[Event Message](EventMessage.html)\n\n[Request-Reply](RequestReply.html)\n\n[Return Address](ReturnAddress.html)\n\n[Correlation Identifier](CorrelationIdentifier.html)\n\n[Message Sequence](MessageSequence.html)\n\n[Message Expiration](MessageExpiration.html)\n\n[Format Indicator](FormatIndicator.html)\n\n[Message Routing](MessageRoutingIntro.html)\n\n[Pipes-and-Filters](PipesAndFilters.html)\n\n[Message Router](MessageRouter.html)\n\n[Content-based Router](ContentBasedRouter.html)\n\n[Message Filter](Filter.html)\n\n[Dynamic Router](DynamicRouter.html)\n\n[Recipient List](RecipientList.html)\n\n[Splitter](Sequencer.html)\n\n[Aggregator](Aggregator.html)\n\n[Resequencer](Resequencer.html)\n\n[Composed Msg. Processor](DistributionAggregate.html)\n\n[Scatter-Gather](BroadcastAggregate.html)\n\n[Routing Slip](RoutingTable.html)\n\n[Process Manager](ProcessManager.html)\n\n[Message Broker](MessageBroker.html)\n\n[Message\nTransformation](MessageTransformationIntro.html)\n\n[Message Translator](MessageTranslator.html)\n\n[Envelope Wrapper](EnvelopeWrapper.html)\n\n[Content Enricher](DataEnricher.html)\n\n[Content Filter](ContentFilter.html)\n\n[Claim Check](StoreInLibrary.html)\n\n[Normalizer](Normalizer.html)\n\n[Canonical Data Model](CanonicalDataModel.html)\n\n[Messaging Endpoints](MessagingEndpointsIntro.html)\n\n[Message Endpoint](MessageEndpoint.html)\n\n[Messaging Gateway](MessagingGateway.html)\n\n[Messaging Mapper](MessagingMapper.html)\n\n[Transactional Client](TransactionalClient.html)\n\n[Polling Consumer](PollingConsumer.html)\n\n[Event-driven Consumer](EventDrivenConsumer.html)\n\n[Competing Consumers](CompetingConsumers.html)\n\n[Message Dispatcher](MessageDispatcher.html)\n\n[Selective Consumer](MessageSelector.html)\n\n[Durable Subscriber](DurableSubscription.html)\n\n[Idempotent Receiver](IdempotentReceiver.html)\n\n[Service Activator](MessagingAdapter.html)\n\n[Messaging Channels](MessagingChannelsIntro.html)\n\n[Message Channel](MessageChannel.html)\n\n[Point-to-Point Channel](PointToPointChannel.html)\n\n[Publish-Subscr. Channel](PublishSubscribeChannel.html)\n\n[Datatype Channel](DatatypeChannel.html)\n\n[Invalid Message Channel](InvalidMessageChannel.html)\n\n[Dead Letter Channel](DeadLetterChannel.html)\n\n[Guaranteed Delivery](GuaranteedMessaging.html)\n\n[Channel Adapter](ChannelAdapter.html)\n\n[Messaging Bridge](MessagingBridge.html)\n\n[Message Bus](MessageBus.html)\n\n[Systems Mgmt.](SystemManagementIntro.html)\n\n[Control Bus](ControlBus.html)\n\n[Detour](Detour.html)\n\n[Wire Tap](WireTap.html)\n\n[Message History](MessageHistory.html)\n\n[Message Store](MessageStore.html)\n\n[Smart Proxy](SmartProxy.html)\n\n[Test Message](TestMessage.html)\n\n[Channel Purger](ChannelPurger.html)\n\n- » [Read the latest in My Blog](/ramblings)\n- » [Get more insights from My Articles](/articles.html)\n- » [See me live in my Upcoming Talks](/talks)\n\nYou can reuse the following elements under the [Creative Commons Attribution](http://creativecommons.org/licenses/by/4.0/) license: pattern icon, pattern name, problem and solution statements (in bold), and the sketch. Other portions are protected by copyright.\n\n[Enterprise Integration Patterns](https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20)\nThe de-facto language for designing asynchronous, distributed systems. Over 100,000 copies sold.\n\n[The Software Architect Elevator](https://www.architectelevator.com/book)\n\n Rethink the role of architects as a connecting element across organizational layers. Acquire the technical, communication, and organizational skills to succeed in this new role.\n\n[Cloud Strategy](https://www.cloudstrategybook.com)\n\n Make your cloud migration a success by translating high-level goals into conscious decisions with well-understood trade-offs.\n\n[Platform Strategy](https://www.platformstrategybook.info)\n\n Platforms can boost innovation through harmonization, but they aren't easy to build. Learn from over a decade of designing and rolling out IT platforms.", "znaku_textu": 6644, "slov": 589, "odkazu": 108, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/PollingConsumer.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 06:02:54", "sha256": "b984d2d43aec030f6c035d9abe848cd7cd7f7970c3b35a74fdbfbfd38d59f391", "hloubka": 1, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://creativecommons.org/licenses/by/4.0/", "https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "https://www.architectelevator.com/book", "https://www.cloudstrategybook.com/", "https://www.platformstrategybook.info/"]} {"url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/Preface.html", "titulek": "Preface - Enterprise Integration Patterns", "h1": "", "popis": "This is a book about enterprise integration using messaging. It does not document any particular technology or product. Rather, it is designed for developers and integrators using a variety of messaging products and technologies, such as:", "klicova_slova": "Preface,integration, messaging, events, patterns, event-driven, coupling, eai, middleware, application integration, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns", "og:title": "Preface - Enterprise Integration Patterns", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/Preface.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/eip1_patterns_wide.png"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Who Should Read This Book"}, {"uroven": 2, "text": "What You Will Learn"}, {"uroven": 2, "text": "What This Book Does Not Cover"}, {"uroven": 2, "text": "How This Book Is Organized"}, {"uroven": 2, "text": "Acknowledgements"}, {"uroven": 2, "text": "About the Cover Picture"}, {"uroven": 2, "text": "Integration Pattern Language"}], "markdown": "| | Preface[Messaging Patterns](index.html) | [Contents](toc.html)[⇐ Prev](toc.html)[Next ⇒](Introduction.html) |\n| --- | --- | --- |\n\nThis is a book about enterprise integration using messaging. It does not document any particular technology or product. Rather, it is designed for developers and integrators using a variety of messaging products and technologies, such as:\n\n- Message-oriented middleware (MOM) and integration suites offered by vendors such as the IBM (WebSphere MQ Family), Microsoft (BizTalk), TIBCO, WebMethods, SeeBeyond, Vitria, and others\n- Java Message Service (JMS) implementations incorporated into commercial and open-source J2EE application servers as well as standalone products\n- Microsoft’s Message Queuing (MSMQ), accessible through several API’s, including the System.Messaging libraries in Microsoft .NET\n- Emerging Web services standards that support asynchronous Web services (for example, WS-ReliableMessaging) and the associated API’s such as Sun’s Java API for XML Messaging (JAXM) or Microsoft’s Web Services Extensions (WSE).\n\nEnterprise integration goes beyond creating a single application with a distributed n-tier architecture, which enables a single application to be distributed across several computers. Whereas one tier in a distributed application cannot run by itself, integrated applications are independent programs that can each run by itself, yet that function by coordinating with each other in a loosely coupled way. Messaging enables data or commands to be sent across the network using a “send and forget” approach where the caller sends the information and then goes on to other work while the information is transmitted by the messaging system. Optionally, the caller can later be notified of the result through a callback. Asynchronous calls and callbacks can make a design more complex than a synchronous approach, but an asynchronous call can be retried until it succeeds, which makes the communication much more reliable. Asynchronous messaging also enables several other advantages such as throttling of requests and load balancing.\n\n## Who Should Read This Book\n\nThis book is designed to help application developers and system integrators connect applications using message-oriented middleware products:\n\n- **Application architects and developers** who design and build complex enterprise applications that need to integrate with other applications. We assume that you’re developing your applications using a modern enterprise application platform such as the Java 2 Platform, Enterprise Edition (J2EE) or the Microsoft .NET framework. This book will help you connect the application to a messaging layer and exchange information with other applications. This book focuses on the integration of applications, not on building applications; for that, we refer you to *Patterns of Enterprise Application Architecture* by Martin Fowler.\n- **Integration architects and developers** who design and build integration solutions connecting packaged or custom applications. Most readers in this group will have experience with one of the many commercial integration tools like IBM WebSphere MQ, TIBCO, WebMethods, SeeBeyond, Vitria, etc. Many of these tools incorporate the patterns presented in this book. This book helps readers understand the underlying concepts and make confident design decisions using a vendor-independent vocabulary.\n- **Enterprise Architects** have to maintain the \"big picture\" view of the software and hardware assets in an enterprise. This book presents a consistent language to describe large-scale integration solutions that may span across many technologies or point solutions. This language is also a key enabler for efficient communication between the enterprise architect and the integration and application architects and developers.\n\n## What You Will Learn\n\nThis book does not attempt to make a business case for enterprise application integration; the focus is on how to make it work. Readers of this book will learn how to integrate enterprise applications by understanding:\n\n- The advantages and limitations of messaging as compared to other integration techniques\n- How to determine the message channels your applications will need, how to control whether multiple consumers can receive the same message, and how to handle invalid messages\n- When to send a message, what it should contain, and how to use special message properties\n- How to route a message to its ultimate destination even when the sender does not know where that is\n- How to convert messages when the sender and receiver do not agree on a common format\n- How to design the code that connects an application to the messaging system\n- How to manage and monitor a messaging system once it’s in use as part of the enterprise\n\nEven readers who are familiar with these practices will benefit from having them documented and being able to use them to facilitate communication with their colleagues.\n\n## What This Book Does Not Cover\n\nWe believe that any book sporting the word \"enterprise\" in the title is likely to fall into one of three categories. Either it attempts to cover the whole breadth of the subject matter and will be forced to stop short of detailed guidance on how to implement actual solutions. Or, the book will provide specific hands-on guidance on the development of actual solutions but is forced to constrain the scope of the subject area it addresses. Lastly, books that attempt to do both are likely to never get finished or are published so late as to be irrelevant. We opted for the second choice and hopefully created a book that helps people create better integration solutions even though we had to limit the scope of the book. Topics that we would have loved to discuss but had to exclude in order not to fall into the category three trap include security, complex data mapping, workflow, rule engines, scalability and robustness, and distributed transaction processing (XA, Tuxedo and the like). We chose asynchronous messaging as the emphasis for this book because it is full of interesting design issues and trade-offs and provides a clean abstraction from the many implementation provided by various integration vendors.\n\nThis book is also not a tutorial on a specific messaging or middleware technology. You will find examples based on a number of different technologies in this book, such as JMS, MSMQ, TIBCO, Microsoft BizTalk, XSL etc. We included these examples for illustrative purposes to show readers how the pattern could be translated into an actual implementation. If you are interested in learning more about any of these specific technologies, please refer to one of the books referenced in the bibliography or one of the many on-line resources.\n\n## How This Book Is Organized\n\nThe core of the book contains 65 patterns that form a pattern language. Books such as *Design Patterns*, *Pattern Oriented Software Architecture*, *Core J2EE Patterns*, and *Patterns of Enterprise Application Architecture* have popularized the notion of using patterns to document computer-programming techniques. The concept of patterns and pattern languages was originally applied to city and building architecture by Christopher Alexander in his seminal works *A Pattern Language* and *A Timeless Way of Building*. To help the reader design an integration solution, each pattern represents a decision that the reader must make, explains the considerations that affect the decision, and presents a well regarded solution to guide the decision. A pattern language is a web of related patterns where each pattern leads to others, guiding the reader through the decision making process. This approach is a powerful technique for documenting an expert’s knowledge so that it can be readily understood and applied by non-experts.\n\nA pattern language teaches the reader how to solve a limitless variety of problems within a bounded problem space. Because the overall problem that is being solved is different every time, the path through the patterns and how they’re applied is also unique. In this way, this book was written for anyone using any messaging or integration tools for any purpose, but can be applied specifically for you and the specific application of messaging that you are facing.\n\nPatterns describe commonly accepted solutions to recurring problems, so if you’re an experienced developer of message-oriented integration solutions, many of these patterns will seem familiar to you. Yet even if you already recognize most of these patterns, there is still value in reviewing this book. This book should validate your hard-earned understanding of how to use messaging. It gives you a consolidated reference to help you pass your knowledge effectively to less-experienced colleagues. It also documents details of the solutions and relationships between them that you may not have been aware of. Finally, the pattern names give you a common vocabulary to efficiently discuss integration design alternatives with your peers.\n\n## Acknowledgements\n\nLike most books, *Enterprise Integration Patterns* has been a long time in the making. The idea of writing about message-based integration patterns dates back to the summer of 2001 when Martin was working on *Patterns of Enterprise Application Architecture*. At that time, it struck Kyle that while *P of EAA* talked a lot about how to create applications, it touches only briefly on how to integrate them. This idea was the starting point for a series of meetings between Martin and Kyle that also included Rachel Reinitz and John Crupi. Bobby joined these discussions in the fall of 2001, followed by Gregor in early 2002. The following summer the group submitted two papers for review at the Pattern Languages of Programs (PLoP) conference, one authored jointly by Bobby and Kyle and the other by Gregor. After the conference, Kyle and Martin refocused on their own book projects while Gregor and Bobby merged their papers to form the basis for the book. At the same time, the [www.enterpriseintegrationpatterns.com](http://www.enterpriseintegrationpatterns.com) site went live to allow integration architects and developers around the world to participate in the rapid evolution of the content. As they worked on the book, Gregor and Bobby invited contributors to help round out the book’s content. About two years after Kyle's original idea, the final manuscript arrived at the publisher.\n\nThis book would not have been possible without the help from a long list of contributors. *Names here...*\n\n## About the Cover Picture\n\nThe common theme for books in the *Martin Fowler Signature Series* is a picture of a bridge. In some sense we lucked out, because what theme would make a better match for a book on integration? For Thousands of years, bridges have helped connect people from different shores, mountains or sides of the road.\n\nWe selected a picture of the Taiko-bashi Bridge at the Sumiyoshi-taisha Shrine in Osaka, Japan for its simple elegance and beauty. As a Shinto shrine dedicated to the guardian deity for sailors, it was originally erected next to the water. Interestingly, land reclamation has pushed the water away so that the shrine today stands almost three miles inland. Some 3 million people visit this shrine at the beginning of a new year.\n\n## Integration Pattern Language\n\n[Message Construct.](MessageConstructionIntro.html)\n\n[Message](Message.html)\n\n[Command Message](CommandMessage.html)\n\n[Document Message](DocumentMessage.html)\n\n[Event Message](EventMessage.html)\n\n[Request-Reply](RequestReply.html)\n\n[Return Address](ReturnAddress.html)\n\n[Correlation Identifier](CorrelationIdentifier.html)\n\n[Message Sequence](MessageSequence.html)\n\n[Message Expiration](MessageExpiration.html)\n\n[Format Indicator](FormatIndicator.html)\n\n[Message Routing](MessageRoutingIntro.html)\n\n[Pipes-and-Filters](PipesAndFilters.html)\n\n[Message Router](MessageRouter.html)\n\n[Content-based Router](ContentBasedRouter.html)\n\n[Message Filter](Filter.html)\n\n[Dynamic Router](DynamicRouter.html)\n\n[Recipient List](RecipientList.html)\n\n[Splitter](Sequencer.html)\n\n[Aggregator](Aggregator.html)\n\n[Resequencer](Resequencer.html)\n\n[Composed Msg. Processor](DistributionAggregate.html)\n\n[Scatter-Gather](BroadcastAggregate.html)\n\n[Routing Slip](RoutingTable.html)\n\n[Process Manager](ProcessManager.html)\n\n[Message Broker](MessageBroker.html)\n\n[Message\nTransformation](MessageTransformationIntro.html)\n\n[Message Translator](MessageTranslator.html)\n\n[Envelope Wrapper](EnvelopeWrapper.html)\n\n[Content Enricher](DataEnricher.html)\n\n[Content Filter](ContentFilter.html)\n\n[Claim Check](StoreInLibrary.html)\n\n[Normalizer](Normalizer.html)\n\n[Canonical Data Model](CanonicalDataModel.html)\n\n[Messaging Endpoints](MessagingEndpointsIntro.html)\n\n[Message Endpoint](MessageEndpoint.html)\n\n[Messaging Gateway](MessagingGateway.html)\n\n[Messaging Mapper](MessagingMapper.html)\n\n[Transactional Client](TransactionalClient.html)\n\n[Polling Consumer](PollingConsumer.html)\n\n[Event-driven Consumer](EventDrivenConsumer.html)\n\n[Competing Consumers](CompetingConsumers.html)\n\n[Message Dispatcher](MessageDispatcher.html)\n\n[Selective Consumer](MessageSelector.html)\n\n[Durable Subscriber](DurableSubscription.html)\n\n[Idempotent Receiver](IdempotentReceiver.html)\n\n[Service Activator](MessagingAdapter.html)\n\n[Messaging Channels](MessagingChannelsIntro.html)\n\n[Message Channel](MessageChannel.html)\n\n[Point-to-Point Channel](PointToPointChannel.html)\n\n[Publish-Subscr. Channel](PublishSubscribeChannel.html)\n\n[Datatype Channel](DatatypeChannel.html)\n\n[Invalid Message Channel](InvalidMessageChannel.html)\n\n[Dead Letter Channel](DeadLetterChannel.html)\n\n[Guaranteed Delivery](GuaranteedMessaging.html)\n\n[Channel Adapter](ChannelAdapter.html)\n\n[Messaging Bridge](MessagingBridge.html)\n\n[Message Bus](MessageBus.html)\n\n[Systems Mgmt.](SystemManagementIntro.html)\n\n[Control Bus](ControlBus.html)\n\n[Detour](Detour.html)\n\n[Wire Tap](WireTap.html)\n\n[Message History](MessageHistory.html)\n\n[Message Store](MessageStore.html)\n\n[Smart Proxy](SmartProxy.html)\n\n[Test Message](TestMessage.html)\n\n[Channel Purger](ChannelPurger.html)", "znaku_textu": 13957, "slov": 1887, "odkazu": 108, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/Preface.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 06:01:46", "sha256": "857cfd138de6e7cf9f307a38ee9d904624b3bc279bbdc42df6ec7237b8125d77", "hloubka": 1, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "https://www.architectelevator.com/book", "https://www.cloudstrategybook.com/", "https://www.platformstrategybook.info/"]} {"url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/ProcessManager.html", "titulek": "Process Manager - Enterprise Integration Patterns", "h1": "", "popis": "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?", "klicova_slova": "Process Manager,integration, messaging, events, patterns, event-driven, coupling, eai, middleware, application integration, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns", "og:title": "Process Manager - Enterprise Integration Patterns", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/ProcessManager.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/ProcessManager.gif"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Example: Serverless Loan Broker with AWS Step FunctionsNEW"}, {"uroven": 2, "text": "Example: Serverless Loan Broker with GCP WorkflowsNEW"}, {"uroven": 2, "text": "Integration Pattern Language"}], "markdown": "| | Process Manager[Messaging Patterns](index.html) » [Message Routing](MessageRoutingIntro.html) | [Contents](toc.html)[⇐ Prev](RoutingTable.html)[Next ⇒](MessageBroker.html) |\n| --- | --- | --- |\n\nThe [*Routing Slip*](RoutingTable.html) demonstrates how a message can be routed through a dynamic series of processing steps. The solution of the [*Routing Slip*](RoutingTable.html) is based on two key assumptions: the sequence of processing steps has to be determined up-front and the sequence is linear. In many cases, these assumptions may not be fulfilled. For example, routing decisions might have to be made based on intermediate results. Or, the processing steps may not be sequential, but multiple steps might be executed in parallel.\n\nHow 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?\n\nUse a central processing unit, a *Process Manager*, to maintain the state of the sequence and determine the next processing step based on intermediate results.\n\nFirst of all, let me clarify that the design and configuration of a *Process Manager* is a pretty extensive topic. We could probably fill a whole book (Volume 2, maybe?) with patterns related to the design of workflow or business process management. Therefore, this pattern is intended primarily to \"round off\" the topic of routing patterns and to provide a pointer into the direction of workflow and process modeling. By no means is it a comprehensive treatment of business process design.\n\nUsing a *Process Manager* results in a so-called hub-and-spoke pattern of message flow (see diagram). An incoming message initializes the *Process Manager*. We call this message the *trigger message*. Based on the rules inside the *Process Manager*, it sends a message (1) to the first processing step, implemented by Processing Unit A. After unit A completes its task it sends a reply message back to the *Process Manager*. Next, the *Process Manager* determines the next step to be executed and sends message (2) to the next processing unit. As a result, all message traffic runs through this central 'hub', hence the term hub-and-spoke. The downside of this central control element is the danger of turning the *Process Manager* into a performance bottleneck.\n\nThe versatility of a *Process Manager* is at the same time its biggest strength and weakness. A *Process Manager* can execute any sequence of steps, sequential or in parallel. Therefore, almost any integration problem can be solved with a *Process Manager*. Likewise, most of the patterns introduced in this chapter could be implemented using a *Process Manager*. In fact, many EAI vendors make you believe that every integration problem is a process problem. We think that using a *Process Manager* for every situation may be overkill. It can distract from the core design issue and also cause significant performance overhead.\n\n...\nRead the entire pattern in the book [Enterprise Integration Patterns](/books1.html)\n\n## Example: Serverless Loan Broker with AWS Step Functions[NEW](/ramblings/eip1_examples_updated.html)\n\nThe [implementation of the Loan Broker example with AWS serverless services](/ramblings/loanbroker_stepfunctions.html) employs [AWS Step Functions](https://aws.amazon.com/step-functions) as *Process Manager*. Step Functions orchestrates a series of tasks and maintains state across tasks in a JSON document, which covers the characteristics of a *Process Manager* quote well.\n\n## Example: Serverless Loan Broker with GCP Workflows[NEW](/ramblings/eip1_examples_updated.html)\n\nThe [implementation of the Loan Broker example with GCP](/ramblings/loanbroker_gcp_workflows.html) employs [GCP Workflows](https://cloud.google.com/blog/products/application-development/get-to-know-google-cloud-workflows) as *Process Manager*.\n\n**Related patterns:**\n\n[*Aggregator*](Aggregator.html), [*Asynchronous Implementation with MSMQ*](ComposedMessagingMSMQ.html), [*Asynchronous Implementation with TIBCO ActiveEnterprise*](ComposedMessagingTIBCO.html), [*Content-Based Router*](ContentBasedRouter.html), [*Correlation Identifier*](CorrelationIdentifier.html), [*Emerging Standards and Futures in Enterprise Integration*](Future.html), [*Message Channel*](MessageChannel.html), [*Message History*](MessageHistory.html), [*Message Store*](MessageStore.html), [*Message Translator*](MessageTranslator.html), [*Pipes and Filters*](PipesAndFilters.html), [*Publish-Subscribe Channel*](PublishSubscribeChannel.html), [*Routing Slip*](RoutingTable.html), [*Claim Check*](StoreInLibrary.html)\n\n---\n\n## Integration Pattern Language\n\n[Message Construct.](MessageConstructionIntro.html)\n\n[Message](Message.html)\n\n[Command Message](CommandMessage.html)\n\n[Document Message](DocumentMessage.html)\n\n[Event Message](EventMessage.html)\n\n[Request-Reply](RequestReply.html)\n\n[Return Address](ReturnAddress.html)\n\n[Correlation Identifier](CorrelationIdentifier.html)\n\n[Message Sequence](MessageSequence.html)\n\n[Message Expiration](MessageExpiration.html)\n\n[Format Indicator](FormatIndicator.html)\n\n[Message Routing](MessageRoutingIntro.html)\n\n[Pipes-and-Filters](PipesAndFilters.html)\n\n[Message Router](MessageRouter.html)\n\n[Content-based Router](ContentBasedRouter.html)\n\n[Message Filter](Filter.html)\n\n[Dynamic Router](DynamicRouter.html)\n\n[Recipient List](RecipientList.html)\n\n[Splitter](Sequencer.html)\n\n[Aggregator](Aggregator.html)\n\n[Resequencer](Resequencer.html)\n\n[Composed Msg. Processor](DistributionAggregate.html)\n\n[Scatter-Gather](BroadcastAggregate.html)\n\n[Routing Slip](RoutingTable.html)\n\n[Process Manager](ProcessManager.html)\n\n[Message Broker](MessageBroker.html)\n\n[Message\nTransformation](MessageTransformationIntro.html)\n\n[Message Translator](MessageTranslator.html)\n\n[Envelope Wrapper](EnvelopeWrapper.html)\n\n[Content Enricher](DataEnricher.html)\n\n[Content Filter](ContentFilter.html)\n\n[Claim Check](StoreInLibrary.html)\n\n[Normalizer](Normalizer.html)\n\n[Canonical Data Model](CanonicalDataModel.html)\n\n[Messaging Endpoints](MessagingEndpointsIntro.html)\n\n[Message Endpoint](MessageEndpoint.html)\n\n[Messaging Gateway](MessagingGateway.html)\n\n[Messaging Mapper](MessagingMapper.html)\n\n[Transactional Client](TransactionalClient.html)\n\n[Polling Consumer](PollingConsumer.html)\n\n[Event-driven Consumer](EventDrivenConsumer.html)\n\n[Competing Consumers](CompetingConsumers.html)\n\n[Message Dispatcher](MessageDispatcher.html)\n\n[Selective Consumer](MessageSelector.html)\n\n[Durable Subscriber](DurableSubscription.html)\n\n[Idempotent Receiver](IdempotentReceiver.html)\n\n[Service Activator](MessagingAdapter.html)\n\n[Messaging Channels](MessagingChannelsIntro.html)\n\n[Message Channel](MessageChannel.html)\n\n[Point-to-Point Channel](PointToPointChannel.html)\n\n[Publish-Subscr. Channel](PublishSubscribeChannel.html)\n\n[Datatype Channel](DatatypeChannel.html)\n\n[Invalid Message Channel](InvalidMessageChannel.html)\n\n[Dead Letter Channel](DeadLetterChannel.html)\n\n[Guaranteed Delivery](GuaranteedMessaging.html)\n\n[Channel Adapter](ChannelAdapter.html)\n\n[Messaging Bridge](MessagingBridge.html)\n\n[Message Bus](MessageBus.html)\n\n[Systems Mgmt.](SystemManagementIntro.html)\n\n[Control Bus](ControlBus.html)\n\n[Detour](Detour.html)\n\n[Wire Tap](WireTap.html)\n\n[Message History](MessageHistory.html)\n\n[Message Store](MessageStore.html)\n\n[Smart Proxy](SmartProxy.html)\n\n[Test Message](TestMessage.html)\n\n[Channel Purger](ChannelPurger.html)", "znaku_textu": 7287, "slov": 767, "odkazu": 113, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/ProcessManager.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 06:02:37", "sha256": "ac6e6180c5ee20833a84ff28fc856851828832cdbefd1fc3db2807007d4cbbd1", "hloubka": 1, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://aws.amazon.com/step-functions", "https://cloud.google.com/blog/products/application-development/get-to-know-google-cloud-workflows", "http://creativecommons.org/licenses/by/4.0/", "https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "https://www.architectelevator.com/book", "https://www.cloudstrategybook.com/", "https://www.platformstrategybook.info/"]} {"url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/PublishSubscribeChannel.html", "titulek": "Publish-Subscribe Channel - Enterprise Integration Patterns", "h1": "", "popis": "How can the sender broadcast an event to all interested receivers?", "klicova_slova": "Publish-Subscribe Channel,integration, messaging, events, patterns, event-driven, coupling, eai, middleware, application integration, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns", "og:title": "Publish-Subscribe Channel - Enterprise Integration Patterns", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/PublishSubscribeChannel.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/PublishSubscribeSolution.gif"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Example: Google Cloud Pub/SubNEW"}, {"uroven": 2, "text": "Integration Pattern Language"}], "markdown": "| | Publish-Subscribe Channel[Messaging Patterns](index.html) » [Messaging Channels](MessagingChannelsIntro.html) | [Contents](toc.html)[⇐ Prev](PointToPointChannel.html)[Next ⇒](DatatypeChannel.html) |\n| --- | --- | --- |\n\nAn application is using [*Messaging*](Messaging.html) to announce events.\n\nHow can the sender broadcast an event to all interested receivers?\n\nSend the event on a *Publish-Subscribe Channel*, which delivers a copy of a particular event to each receiver.\n\nA *Publish-Subscribe Channel* works like this: It has one input channel that splits into multiple output channels, one for each subscriber. When an event is published into the channel, the *Publish-Subscribe Channel* delivers a copy of the message to each of the output channels. Each output channel has only one subscriber, which is only allowed to consume a message once. In this way, each subscriber only gets the message once and consumed copies disappear from their channels.\n\nA *Publish-Subscribe Channel* can be a useful debugging tool. Even though a message is destined to only a single receiver, using a *Publish-Subscribe Channel* allows you to eavesdrop on a message channel without disturbing the existing message flow. Monitoring all traffic on a channel can be tremendously helpful when debugging messaging applications. It can also save you from inserting a ton of print statements into each application that participates in the messaging solution. Creating a program that listens for messages on all active channels and logs them to a file can realize many of the same benefits that a [*Message Store*](MessageStore.html) brings.\n\n...\nRead the entire pattern in the book [Enterprise Integration Patterns](/books1.html)\n\n## Example: Google Cloud Pub/Sub[NEW](/ramblings/eip1_examples_updated.html)\n\n[Google Cloud Pub/Sub](https://cloud.google.com/pubsub/overview) offers both [*Competing Consumers*](CompetingConsumers.html) and *Publish-Subscribe Channel* semantics, managed through *topics* (Publish-Subcribe) and *subscriptions* (Competing Consumers) as illustrated in this diagram:\n\n*Google Cloud Pub-Sub Concept Overview*\n\nIn this example, both *Subscriber Y* and *Subscriber Z* each receive a copy of *Message 3* as they are subscribing to the same *Topic C*, but through separate subscriptions. Google Cloud Pub/Sub does not support wildcard subscriptions.\n\nGoogle provides client API libraries that make coding against the cloud service relatively simple. The client code has to authenticate first and create topics before messages can be published. Subscriptions are created on the fly.\n\nA stand-alone application can authenticate using private keys:\n\n```\nPubsub pubsub;\n \nvoid createClient(String private_key_file, String email) throws IOException, GeneralSecurityException {\n HttpTransport transport = GoogleNetHttpTransport.newTrustedTransport();\n GoogleCredential credential = new GoogleCredential.Builder()\n .setTransport(transport)\n .setJsonFactory(JSON_FACTORY)\n .setServiceAccountScopes(PubsubScopes.all())\n .setServiceAccountId(email)\n .setServiceAccountPrivateKeyFromP12File(new File(private_key_file))\n .build();\n pubsub = new Pubsub.Builder(transport, JSON_FACTORY, credential)\n .setApplicationName(\"eaipubsub\")\n .build();\n}\n```\n\nusing the PubSub instance, you can create a new topic if it doesn't already exist:\n\n```\nTopic createTopic(String topicName) throws IOException {\n String topic = getTopic(topicName); // adds project name and resource type\n Pubsub.Projects.Topics topics = pubsub.projects().topics();\n ListTopicsResponse list = topics.list(project).execute();\n if (list.getTopics() == null || !list.getTopics().contains(new Topic().setName(topic))) {\n return topics.create(topic, new Topic()).execute();\n } else {\n return new Topic().setName(topic);\n }\n}\n```\n\nNow the code is ready to publish a message to the topic, returning the published message IDs:\n\n```\nList publishMessage(String topicName, String data) throws IOException {\n List messages = Lists.newArrayList();\n messages.add(new PubsubMessage().encodeData(data.getBytes(\"UTF-8\")));\n PublishRequest publishRequest = new PublishRequest().setMessages(messages);\n PublishResponse publishResponse = pubsub.projects().topics()\n .publish(getTopic(topicName), publishRequest)\n .execute();\n return publishResponse.getMessageIds();\n}\n```\n\nSubscriptions are identified by a name and a topic so multiple subscribers can compete for messages off the same subscription or create individual subscriptions for the same topic. If a subscription already exists, the underlying REST API throws an exception, which we can simply ignore.\n\n```\nSubscription subscribeTopic(String subscriptionName, String topicName) throws IOException {\n String sub = getSubscription(subscriptionName); // adds project name and resource type\n Subscription subscription = new Subscription()\n .setName(sub)\n .setAckDeadlineSeconds(15)\n .setTopic(getTopic(topicName));\n try {\n return pubsub.projects().subscriptions().create(sub, subscription).execute();\n } catch (GoogleJsonResponseException e) {\n if (e.getStatusCode() == HttpURLConnection.HTTP_CONFLICT) {\n return subscription;\n } else {\n throw e;\n }\n }\n}\n```\n\nNow everything is in place to pull messages off the subscription. The code is a bit verbose because it has to navigate collections that allow receiving multiple messages at once. It also has to convert the payload back into a *String* for this simple demo implementation:\n\n```\nList pullMessage(Subscription subscription, int maxMessages, boolean doAck) throws IOException {\n PullRequest pullRequest = new PullRequest()\n .setReturnImmediately(true)\n .setMaxMessages(maxMessages);\n PullResponse response = pubsub.projects().subscriptions().pull(subscription.getName(), pullRequest).execute();\n List messages = response.getReceivedMessages();\n List ackIds = Lists.newArrayList();\n List data = Lists.newArrayList();\n if (messages != null) {\n for (ReceivedMessage receivedMessage : messages) {\n PubsubMessage message = receivedMessage.getMessage();\n if (message != null) {\n byte[] bytes = message.decodeData();\n if (bytes != null) {\n data.add(new String(bytes, \"UTF-8\"));\n }\n }\n ackIds.add(receivedMessage.getAckId());\n }\n if (doAck) {\n AcknowledgeRequest ackRequest = new AcknowledgeRequest().setAckIds(ackIds);\n pubsub.projects().subscriptions().acknowledge(subscription.getName(), ackRequest).execute();\n }\n }\n return data;\n}\n```\n\nFind the source for this code snippet on [Github](https://github.com/spac3lord/eip/tree/master/GoogleCloudPubSub).\n\n**Related patterns:**\n\n[*Competing Consumers*](CompetingConsumers.html), [*Durable Subscriber*](DurableSubscription.html), [*Event Message*](EventMessage.html), [*Message*](Message.html), [*Message Channel*](MessageChannel.html), [*Message Store*](MessageStore.html), [*Messaging*](Messaging.html), [*JMS Publish/Subscribe Example*](ObserverJmsExample.html), [*Point-to-Point Channel*](PointToPointChannel.html), [*Request-Reply*](RequestReply.html)\n\n**Further reading:**\n\n- [Free Gift with Subscription (Pattern)](/ramblings/83_subscribing.html)\n- [Pub-Sub and Related Topics](/ramblings/17_acmconference.html)\n\n---\n\n## Integration Pattern Language\n\n[Message Construct.](MessageConstructionIntro.html)\n\n[Message](Message.html)\n\n[Command Message](CommandMessage.html)\n\n[Document Message](DocumentMessage.html)\n\n[Event Message](EventMessage.html)\n\n[Request-Reply](RequestReply.html)\n\n[Return Address](ReturnAddress.html)\n\n[Correlation Identifier](CorrelationIdentifier.html)\n\n[Message Sequence](MessageSequence.html)\n\n[Message Expiration](MessageExpiration.html)\n\n[Format Indicator](FormatIndicator.html)\n\n[Message Routing](MessageRoutingIntro.html)\n\n[Pipes-and-Filters](PipesAndFilters.html)\n\n[Message Router](MessageRouter.html)\n\n[Content-based Router](ContentBasedRouter.html)\n\n[Message Filter](Filter.html)\n\n[Dynamic Router](DynamicRouter.html)\n\n[Recipient List](RecipientList.html)\n\n[Splitter](Sequencer.html)\n\n[Aggregator](Aggregator.html)\n\n[Resequencer](Resequencer.html)\n\n[Composed Msg. Processor](DistributionAggregate.html)\n\n[Scatter-Gather](BroadcastAggregate.html)\n\n[Routing Slip](RoutingTable.html)\n\n[Process Manager](ProcessManager.html)\n\n[Message Broker](MessageBroker.html)\n\n[Message\nTransformation](MessageTransformationIntro.html)\n\n[Message Translator](MessageTranslator.html)\n\n[Envelope Wrapper](EnvelopeWrapper.html)\n\n[Content Enricher](DataEnricher.html)\n\n[Content Filter](ContentFilter.html)\n\n[Claim Check](StoreInLibrary.html)\n\n[Normalizer](Normalizer.html)\n\n[Canonical Data Model](CanonicalDataModel.html)\n\n[Messaging Endpoints](MessagingEndpointsIntro.html)\n\n[Message Endpoint](MessageEndpoint.html)\n\n[Messaging Gateway](MessagingGateway.html)\n\n[Messaging Mapper](MessagingMapper.html)\n\n[Transactional Client](TransactionalClient.html)\n\n[Polling Consumer](PollingConsumer.html)\n\n[Event-driven Consumer](EventDrivenConsumer.html)\n\n[Competing Consumers](CompetingConsumers.html)\n\n[Message Dispatcher](MessageDispatcher.html)\n\n[Selective Consumer](MessageSelector.html)\n\n[Durable Subscriber](DurableSubscription.html)\n\n[Idempotent Receiver](IdempotentReceiver.html)\n\n[Service Activator](MessagingAdapter.html)\n\n[Messaging Channels](MessagingChannelsIntro.html)\n\n[Message Channel](MessageChannel.html)\n\n[Point-to-Point Channel](PointToPointChannel.html)\n\n[Publish-Subscr. Channel](PublishSubscribeChannel.html)\n\n[Datatype Channel](DatatypeChannel.html)\n\n[Invalid Message Channel](InvalidMessageChannel.html)\n\n[Dead Letter Channel](DeadLetterChannel.html)\n\n[Guaranteed Delivery](GuaranteedMessaging.html)\n\n[Channel Adapter](ChannelAdapter.html)\n\n[Messaging Bridge](MessagingBridge.html)\n\n[Message Bus](MessageBus.html)\n\n[Systems Mgmt.](SystemManagementIntro.html)\n\n[Control Bus](ControlBus.html)\n\n[Detour](Detour.html)\n\n[Wire Tap](WireTap.html)\n\n[Message History](MessageHistory.html)\n\n[Message Store](MessageStore.html)\n\n[Smart Proxy](SmartProxy.html)\n\n[Test Message](TestMessage.html)\n\n[Channel Purger](ChannelPurger.html)", "znaku_textu": 9823, "slov": 943, "odkazu": 113, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/PublishSubscribeChannel.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 06:02:03", "sha256": "ecc6aeec40253b2dba2f326af9fce678bb110a0d26902339f2184db7129196b4", "hloubka": 1, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://cloud.google.com/pubsub/overview", "https://github.com/spac3lord/eip/tree/master/GoogleCloudPubSub", "http://creativecommons.org/licenses/by/4.0/", "https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "https://www.architectelevator.com/book", "https://www.cloudstrategybook.com/", "https://www.platformstrategybook.info/"]} {"url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/RecipientList.html", "titulek": "Recipient List - Enterprise Integration Patterns", "h1": "", "popis": "How do we route a message to a list of dynamically specified recipients?", "klicova_slova": "Recipient List,integration, messaging, events, patterns, event-driven, coupling, eai, middleware, application integration, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns", "og:title": "Recipient List - Enterprise Integration Patterns", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/RecipientList.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/RecipientList.gif"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Integration Pattern Language"}], "markdown": "| | Recipient List[Messaging Patterns](index.html) » [Message Routing](MessageRoutingIntro.html) | [Contents](toc.html)[⇐ Prev](DynamicRouter.html)[Next ⇒](Sequencer.html) |\n| --- | --- | --- |\n\nA [*Content-Based Router*](ContentBasedRouter.html) allows us to route a message to the correct system based on message content. This process is transparent to the original sender in the sense that the originator simply sends the message to a channel, where the router picks it up and takes care of everything.\n\nIn some cases, though, we may want to specify one or more recipients for the message. A common analogy are the recipient lists implemented in most e-mail systems. For each e-mail message, the sender can specify a list of recipients. The mail system then ensures transport of the message content to each recipient. An example from the domain of enterprise integration would be a situation where a function can be performed by one or more providers. For example, we may have a contract with multiple credit agencies to assess the credit worthiness of our customers. When a small order comes in we may simply route the credit request message to one credit agency. If a customer places a large order, we may want to route the credit request message to multiple agencies and compare the results before making a decision. In this case, the list of recipients depends on the dollar value of the order.\n\nIn another situation, we may want to route an order message to a select list of suppliers to obtain a quote for the requested item. Rather than sending the request to all vendors, we may want to control which vendors receive the request, possibly based on user preferences\n\nHow do we route a message to a list of dynamically specified recipients?\n\nDefine a channel for each recipient. Then use a *Recipient List* to inspect an incoming message, determine the list of desired recipients, and forward the message to all channels associated with the recipients in the list.\n\nThe logic embedded in a *Recipient List* can be pictured as two separate parts even though the implementation is often coupled together. The first part computes a list of recipients. The second part simply traverses the list and sends a copy of the received message to each recipient. Just like a [*Content-Based Router*](ContentBasedRouter.html), the *Recipient List* usually does not modify the message contents.\n\n...\nRead the entire pattern in the book [Enterprise Integration Patterns](/books1.html)\n\n**Related patterns:**\n\n[*Aggregator*](Aggregator.html), [*Scatter-Gather*](BroadcastAggregate.html), [*Introduction to Composed Messaging Examples*](ComposedMessagingExample.html), [*Content-Based Router*](ContentBasedRouter.html), [*Dynamic Router*](DynamicRouter.html), [*Message Filter*](Filter.html), [*Idempotent Receiver*](IdempotentReceiver.html), [*Message Router*](MessageRouter.html), [*Selective Consumer*](MessageSelector.html), [*Point-to-Point Channel*](PointToPointChannel.html), [*Publish-Subscribe Channel*](PublishSubscribeChannel.html)\n\n---\n\n## Integration Pattern Language\n\n[Message Construct.](MessageConstructionIntro.html)\n\n[Message](Message.html)\n\n[Command Message](CommandMessage.html)\n\n[Document Message](DocumentMessage.html)\n\n[Event Message](EventMessage.html)\n\n[Request-Reply](RequestReply.html)\n\n[Return Address](ReturnAddress.html)\n\n[Correlation Identifier](CorrelationIdentifier.html)\n\n[Message Sequence](MessageSequence.html)\n\n[Message Expiration](MessageExpiration.html)\n\n[Format Indicator](FormatIndicator.html)\n\n[Message Routing](MessageRoutingIntro.html)\n\n[Pipes-and-Filters](PipesAndFilters.html)\n\n[Message Router](MessageRouter.html)\n\n[Content-based Router](ContentBasedRouter.html)\n\n[Message Filter](Filter.html)\n\n[Dynamic Router](DynamicRouter.html)\n\n[Recipient List](RecipientList.html)\n\n[Splitter](Sequencer.html)\n\n[Aggregator](Aggregator.html)\n\n[Resequencer](Resequencer.html)\n\n[Composed Msg. Processor](DistributionAggregate.html)\n\n[Scatter-Gather](BroadcastAggregate.html)\n\n[Routing Slip](RoutingTable.html)\n\n[Process Manager](ProcessManager.html)\n\n[Message Broker](MessageBroker.html)\n\n[Message\nTransformation](MessageTransformationIntro.html)\n\n[Message Translator](MessageTranslator.html)\n\n[Envelope Wrapper](EnvelopeWrapper.html)\n\n[Content Enricher](DataEnricher.html)\n\n[Content Filter](ContentFilter.html)\n\n[Claim Check](StoreInLibrary.html)\n\n[Normalizer](Normalizer.html)\n\n[Canonical Data Model](CanonicalDataModel.html)\n\n[Messaging Endpoints](MessagingEndpointsIntro.html)\n\n[Message Endpoint](MessageEndpoint.html)\n\n[Messaging Gateway](MessagingGateway.html)\n\n[Messaging Mapper](MessagingMapper.html)\n\n[Transactional Client](TransactionalClient.html)\n\n[Polling Consumer](PollingConsumer.html)\n\n[Event-driven Consumer](EventDrivenConsumer.html)\n\n[Competing Consumers](CompetingConsumers.html)\n\n[Message Dispatcher](MessageDispatcher.html)\n\n[Selective Consumer](MessageSelector.html)\n\n[Durable Subscriber](DurableSubscription.html)\n\n[Idempotent Receiver](IdempotentReceiver.html)\n\n[Service Activator](MessagingAdapter.html)\n\n[Messaging Channels](MessagingChannelsIntro.html)\n\n[Message Channel](MessageChannel.html)\n\n[Point-to-Point Channel](PointToPointChannel.html)\n\n[Publish-Subscr. Channel](PublishSubscribeChannel.html)\n\n[Datatype Channel](DatatypeChannel.html)\n\n[Invalid Message Channel](InvalidMessageChannel.html)\n\n[Dead Letter Channel](DeadLetterChannel.html)\n\n[Guaranteed Delivery](GuaranteedMessaging.html)\n\n[Channel Adapter](ChannelAdapter.html)\n\n[Messaging Bridge](MessagingBridge.html)\n\n[Message Bus](MessageBus.html)\n\n[Systems Mgmt.](SystemManagementIntro.html)\n\n[Control Bus](ControlBus.html)\n\n[Detour](Detour.html)\n\n[Wire Tap](WireTap.html)\n\n[Message History](MessageHistory.html)\n\n[Message Store](MessageStore.html)\n\n[Smart Proxy](SmartProxy.html)\n\n[Test Message](TestMessage.html)\n\n[Channel Purger](ChannelPurger.html)", "znaku_textu": 5751, "slov": 585, "odkazu": 108, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/RecipientList.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 06:02:29", "sha256": "42c235550196a7d27adb2b0a36e15e83c330ab5d225478bb229c34eb6e869ece", "hloubka": 1, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://creativecommons.org/licenses/by/4.0/", "https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "https://www.architectelevator.com/book", "https://www.cloudstrategybook.com/", "https://www.platformstrategybook.info/"]} {"url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/RequestReply.html", "titulek": "Request-Reply - Enterprise Integration Patterns", "h1": "", "popis": "When an application sends a message, how can it get a response from the receiver?", "klicova_slova": "Request-Reply,integration, messaging, events, patterns, event-driven, coupling, eai, middleware, application integration, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns", "og:title": "Request-Reply - Enterprise Integration Patterns", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/RequestReply.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/RequestReply.gif"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Integration Pattern Language"}], "markdown": "| | Request-Reply[Messaging Patterns](index.html) » [Message Construction](MessageConstructionIntro.html) | [Contents](toc.html)[⇐ Prev](EventMessage.html)[Next ⇒](ReturnAddress.html) |\n| --- | --- | --- |\n\nWhen two applications communicate via [*Messaging*](Messaging.html), the communication is one-way. The applications may want a two-way conversation.\n\nWhen an application sends a message, how can it get a response from the receiver?\n\nSend a pair of *Request-Reply* messages, each on its own channel.\n\n*Request-Reply* has two participants:\n\n1. **Requestor** – Sends a request message and waits for a reply message.\n2. **Replier** – Receives the request message and responds with a reply message.\n\nThe request channel can be a [*Point-to-Point Channel*](PointToPointChannel.html) or a [*Publish-Subscribe Channel*](PublishSubscribeChannel.html). The difference is whether the request should be broadcast to all interested parties or should only be processed by a single consumer. The reply channel, on the other hand, is almost always point-to-point, because it usually makes no sense to broadcast replies–they should only be returned to the requestor.\n\nWhen a caller performs a [*Remote Procedure Invocation*](EncapsulatedSynchronousIntegration.html), the caller's thread must block while it waits for the response. With *Request-Reply*, the requestor has two approaches for receiving the reply:\n\n1. **Synchronous Block** – A single thread in the caller sends the request message, blocks (as a [*Polling Consumer*](PollingConsumer.html) ) to wait for the reply message, then processes the reply. This is simple to implement, but if the requestor crashes, it will have difficulty re-establishing the blocked thread. The request thread awaiting the response implies that there is only one outstanding request, or that the reply channel for this request is private for this thread.\n2. **Asynchronous Callback** – One thread in the caller sends the request message and sets up a callback for the reply. A separate thread listens for reply messages. When a reply message arrives, the reply thread invokes the appropriate callback, which re-establishes the caller's context and processes the reply. This approach enables multiple outstanding requests to share a single reply channel, and a single reply thread to process replies for multiple request threads. If the requestor crashes, it can recover by simply restarting the reply thread. An added complexity, however, is the callback mechanism that must re-establish the caller's context.\n\n...\nRead the entire pattern in the book [Enterprise Integration Patterns](/books1.html)\n\n**Related patterns:**\n\n[*Command Message*](CommandMessage.html), [*Correlation Identifier*](CorrelationIdentifier.html), [*Document Message*](DocumentMessage.html), [*Remote Procedure Invocation*](EncapsulatedSynchronousIntegration.html), [*Event Message*](EventMessage.html), [*Guaranteed Delivery*](GuaranteedMessaging.html), [*Message*](Message.html), [*Message Channel*](MessageChannel.html), [*Message Sequence*](MessageSequence.html), [*Messaging*](Messaging.html), [*Point-to-Point Channel*](PointToPointChannel.html), [*Polling Consumer*](PollingConsumer.html), [*Publish-Subscribe Channel*](PublishSubscribeChannel.html), [*Return Address*](ReturnAddress.html)\n\n**Further reading:**\n\n- [Will the real asynchrony please stand up?](/ramblings/28_asynchrony.html)\n- [Can You Say \"Synchronous Asymmetry or Asynchronous Symmetry\"?](/ramblings/26_symmetry.html)\n- [Correlation and Conversations](/ramblings/09_correlation.html)\n\n---\n\n## Integration Pattern Language\n\n[Message Construct.](MessageConstructionIntro.html)\n\n[Message](Message.html)\n\n[Command Message](CommandMessage.html)\n\n[Document Message](DocumentMessage.html)\n\n[Event Message](EventMessage.html)\n\n[Request-Reply](RequestReply.html)\n\n[Return Address](ReturnAddress.html)\n\n[Correlation Identifier](CorrelationIdentifier.html)\n\n[Message Sequence](MessageSequence.html)\n\n[Message Expiration](MessageExpiration.html)\n\n[Format Indicator](FormatIndicator.html)\n\n[Message Routing](MessageRoutingIntro.html)\n\n[Pipes-and-Filters](PipesAndFilters.html)\n\n[Message Router](MessageRouter.html)\n\n[Content-based Router](ContentBasedRouter.html)\n\n[Message Filter](Filter.html)\n\n[Dynamic Router](DynamicRouter.html)\n\n[Recipient List](RecipientList.html)\n\n[Splitter](Sequencer.html)\n\n[Aggregator](Aggregator.html)\n\n[Resequencer](Resequencer.html)\n\n[Composed Msg. Processor](DistributionAggregate.html)\n\n[Scatter-Gather](BroadcastAggregate.html)\n\n[Routing Slip](RoutingTable.html)\n\n[Process Manager](ProcessManager.html)\n\n[Message Broker](MessageBroker.html)\n\n[Message\nTransformation](MessageTransformationIntro.html)\n\n[Message Translator](MessageTranslator.html)\n\n[Envelope Wrapper](EnvelopeWrapper.html)\n\n[Content Enricher](DataEnricher.html)\n\n[Content Filter](ContentFilter.html)\n\n[Claim Check](StoreInLibrary.html)\n\n[Normalizer](Normalizer.html)\n\n[Canonical Data Model](CanonicalDataModel.html)\n\n[Messaging Endpoints](MessagingEndpointsIntro.html)\n\n[Message Endpoint](MessageEndpoint.html)\n\n[Messaging Gateway](MessagingGateway.html)\n\n[Messaging Mapper](MessagingMapper.html)\n\n[Transactional Client](TransactionalClient.html)\n\n[Polling Consumer](PollingConsumer.html)\n\n[Event-driven Consumer](EventDrivenConsumer.html)\n\n[Competing Consumers](CompetingConsumers.html)\n\n[Message Dispatcher](MessageDispatcher.html)\n\n[Selective Consumer](MessageSelector.html)\n\n[Durable Subscriber](DurableSubscription.html)\n\n[Idempotent Receiver](IdempotentReceiver.html)\n\n[Service Activator](MessagingAdapter.html)\n\n[Messaging Channels](MessagingChannelsIntro.html)\n\n[Message Channel](MessageChannel.html)\n\n[Point-to-Point Channel](PointToPointChannel.html)\n\n[Publish-Subscr. Channel](PublishSubscribeChannel.html)\n\n[Datatype Channel](DatatypeChannel.html)\n\n[Invalid Message Channel](InvalidMessageChannel.html)\n\n[Dead Letter Channel](DeadLetterChannel.html)\n\n[Guaranteed Delivery](GuaranteedMessaging.html)\n\n[Channel Adapter](ChannelAdapter.html)\n\n[Messaging Bridge](MessagingBridge.html)\n\n[Message Bus](MessageBus.html)\n\n[Systems Mgmt.](SystemManagementIntro.html)\n\n[Control Bus](ControlBus.html)\n\n[Detour](Detour.html)\n\n[Wire Tap](WireTap.html)\n\n[Message History](MessageHistory.html)\n\n[Message Store](MessageStore.html)\n\n[Smart Proxy](SmartProxy.html)\n\n[Test Message](TestMessage.html)\n\n[Channel Purger](ChannelPurger.html)", "znaku_textu": 6253, "slov": 604, "odkazu": 111, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/RequestReply.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 06:02:15", "sha256": "6d79d9ec15c68a7547682feb84c4adaea407795c64a69c98b6fed273eb2cea5f", "hloubka": 1, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://creativecommons.org/licenses/by/4.0/", "https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "https://www.architectelevator.com/book", "https://www.cloudstrategybook.com/", "https://www.platformstrategybook.info/"]} {"url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/RequestReplyJmsExample.html", "titulek": "JMS Request/Reply Example - Enterprise Integration Patterns", "h1": "", "popis": "This is a simple example of how to use messaging, implemented in JMS [JMS]. It shows how to implement Request-Reply, where a requestor application sends a request, a replier application receives the request and returns a reply, and the requestor receives the reply. It also shows how an invalid message will be rerouted to a special channel.", "klicova_slova": "JMS Request/Reply Example,integration, messaging, events, patterns, event-driven, coupling, eai, middleware, application integration, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns", "og:title": "JMS Request/Reply Example - Enterprise Integration Patterns", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/RequestReplyJmsExample.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/eip1_patterns_wide.png"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Request/Reply Example"}, {"uroven": 2, "text": "Request/Reply Code"}, {"uroven": 2, "text": "Invalid Message Example"}, {"uroven": 2, "text": "Conclusions"}, {"uroven": 2, "text": "Integration Pattern Language"}], "markdown": "| | JMS Request/Reply Example[Messaging Patterns](index.html) » [Interlude: Simple Messaging](SimpleMessagingIntro.html) | [Contents](toc.html)[⇐ Prev](SimpleMessagingIntro.html)[Next ⇒](RequestReplyNetExample.html) |\n| --- | --- | --- |\n\nThis is a simple example of how to use messaging, implemented in JMS [[JMS](http://java.sun.com/products/jms/)]. It shows how to implement [*Request-Reply*](RequestReply.html), where a requestor application sends a request, a replier application receives the request and returns a reply, and the requestor receives the reply. It also shows how an invalid message will be rerouted to a special channel.\n\n*Components of the Request/Reply Example*\n\nThis example was developed using JMS 1.1 and run using the J2EE 1.4 reference implementation.\n\n## Request/Reply Example\n\nThis example consists of two main classes:\n\n1. **Requestor** — A [*Message Endpoint*](MessageEndpoint.html) that sends a request message and waits to receive a reply message as a response.\n2. **Replier** — A [*Message Endpoint*](MessageEndpoint.html) that waits to receive the request message; when it does, it responds by sending the reply message.\n\nThe Requestor and the Replier will each run in a separate Java virtual machine (JVM), which is what makes the communication distributed.\n\nThis example assumes that the messaging system has these three queues defined:\n\n1. **jms/RequestQueue** — The Queue the Requestor uses to send the request message to the Replier.\n2. **jms/ReplyQueue** — The Queue the Replier uses to send the reply message to the Requestor.\n3. **jms/InvalidMessages** — The Queue that the Requestor and Replier move a message to when they receive a message that they cannot interpret.\n\nHere's how the example works. When the Requestor is started in a command-line window, it starts and prints output like this:\n\n```\nSent request\n Time: 1048261736520 ms\n Message ID: ID:_XYZ123_1048261766139_6.2.1.1\n Correl. ID: null\n Reply to: com.sun.jms.Queue: jms/ReplyQueue\n Contents: Hello world.\n```\n\nWhat this shows is that the Requestor has sent a request message. Notice that this works even though the Replier isn't even running and therefore cannot receive the request.\n\nWhen the Replier is started in another command-line window, it starts and prints output like this:\n\n```\nReceived request\n Time: 1048261766790 ms\n Message ID: ID:_XYZ123_1048261766139_6.2.1.1\n Correl. ID: null\n Reply to: com.sun.jms.Queue: jms/ReplyQueue\n Contents: Hello world.\nSent reply\n Time: 1048261766850 ms\n Message ID: ID:_XYZ123_1048261758148_5.2.1.1\n Correl. ID: ID:_XYZ123_1048261766139_6.2.1.1\n Reply to: null\n Contents: Hello world.\n```\n\nThis shows that the Replier received the request message and sent a reply message.\n\nThere are several items in this output that are interesting to notice. First, notice the request send and received timestamps; the request was received after it was sent (30270 ms later). Second, notice that the message ID is the same in both cases, because it's the same message. Third, notice that the contents, \"Hello world,\" are the same, which is very good because this is the data being transmitted and it has got to be the same on both sides. (The request in this example is pretty lame. It is basically a [*Document Message*](DocumentMessage.html); a real request would usually be a [*Command Message*](CommandMessage.html).) Forth, the queue named \"jms/ReplyQueue\" has been specified in the request message as the destination for the reply message (an example of the [*Return Address*](ReturnAddress.html) pattern).\n\nNext, let's compare the output from receiving the request to that for sending the reply. First, notice the reply was not sent until after the request was received (60 ms after). Second, the message ID for the reply is different from that for the request; this is because the request and reply messages are different, separate messages. Third, the contents of the request have been extracted and added to the reply. Forth, the reply-to destination is unspecified because no reply is expected (the reply does not use the [*Return Address*](ReturnAddress.html) pattern). Fifth, the reply's correlation ID is the same as the request's message ID (the reply does use the [*Correlation Identifier*](CorrelationIdentifier.html) pattern).\n\nFinally, back in the first window, the requester received the reply:\n\n```\nReceived reply\n Time: 1048261797060 ms\n Message ID: ID:_XYZ123_1048261758148_5.2.1.1\n Correl. ID: ID:_XYZ123_1048261766139_6.2.1.1\n Reply to: null\n Contents: Hello world.\n```\n\nThis output contains several items of interest. The reply was received after it was sent (30210 ms). The message ID of the reply was the same when it was received as it was when it was sent, which proves that it is indeed the same message. The message contents received are the same as those sent. And the correlation ID tells the requestor which request this reply is for (the [*Correlation Identifier*](CorrelationIdentifier.html) pattern).\n\nNotice too that the requestor is designed to simply send a request, receive a reply, and exit. So having received the reply, the requestor is no longer running. The replier, on the other hand, doesn't know when it might receive a request, so it never stops running. To stop it, we go to its command shell window and press the return key, which causes the replier program to exit.\n\nSo this is the request/reply example. A request was prepared and sent by the requestor. The replier received the request and sent a reply. Then the requestor received the reply to its original request.\n\n## Request/Reply Code\n\nFirst, let's take a look at how the Requestor is implemented:\n\n```\nimport javax.jms.Connection;\nimport javax.jms.Destination;\nimport javax.jms.JMSException;\nimport javax.jms.Message;\nimport javax.jms.MessageConsumer;\nimport javax.jms.MessageProducer;\nimport javax.jms.Session;\nimport javax.jms.TextMessage;\nimport javax.naming.NamingException;\n\npublic class Requestor {\n\n\tprivate Session session;\n\tprivate Destination replyQueue;\n\tprivate MessageProducer requestProducer;\n\tprivate MessageConsumer replyConsumer;\n\tprivate MessageProducer invalidProducer;\n\n\tprotected Requestor() {\n\t\tsuper();\n\t}\n\n\tpublic static Requestor newRequestor(Connection connection, String requestQueueName,\n\t\tString replyQueueName, String invalidQueueName)\n\t\tthrows JMSException, NamingException {\n\t\t\t\n\t\tRequestor requestor = new Requestor();\n\t\trequestor.initialize(connection, requestQueueName, replyQueueName, invalidQueueName);\n\t\treturn requestor;\n\t}\n\n\tprotected void initialize(Connection connection, String requestQueueName,\n\t\tString replyQueueName, String invalidQueueName)\n\t\tthrows NamingException, JMSException {\n\t\t\t\n\t\tsession = connection.createSession(false, Session.AUTO_ACKNOWLEDGE);\n\t\t\n\t\tDestination requestQueue = JndiUtil.getDestination(requestQueueName);\n\t\treplyQueue = JndiUtil.getDestination(replyQueueName);\n\t\tDestination invalidQueue = JndiUtil.getDestination(invalidQueueName);\n\t\t\n\t\trequestProducer = session.createProducer(requestQueue);\n\t\treplyConsumer = session.createConsumer(replyQueue);\n\t\tinvalidProducer = session.createProducer(invalidQueue);\n\t}\n\n\tpublic void send() throws JMSException {\n\t\tTextMessage requestMessage = session.createTextMessage();\n\t\trequestMessage.setText(\"Hello world.\");\n\t\trequestMessage.setJMSReplyTo(replyQueue);\n\t\trequestProducer.send(requestMessage);\n\t\tSystem.out.println(\"Sent request\");\n\t\tSystem.out.println(\"\\tTime: \" + System.currentTimeMillis() + \" ms\");\n\t\tSystem.out.println(\"\\tMessage ID: \" + requestMessage.getJMSMessageID());\n\t\tSystem.out.println(\"\\tCorrel. ID: \" + requestMessage.getJMSCorrelationID());\n\t\tSystem.out.println(\"\\tReply to: \" + requestMessage.getJMSReplyTo());\n\t\tSystem.out.println(\"\\tContents: \" + requestMessage.getText());\n\t}\n\n\tpublic void receiveSync() throws JMSException {\n\t\tMessage msg = replyConsumer.receive();\n\t\tif (msg instanceof TextMessage) {\n\t\t\tTextMessage replyMessage = (TextMessage) msg;\n\t\t\tSystem.out.println(\"Received reply \");\n\t\t\tSystem.out.println(\"\\tTime: \" + System.currentTimeMillis() + \" ms\");\n\t\t\tSystem.out.println(\"\\tMessage ID: \" + replyMessage.getJMSMessageID());\n\t\t\tSystem.out.println(\"\\tCorrel. ID: \" + replyMessage.getJMSCorrelationID());\n\t\t\tSystem.out.println(\"\\tReply to: \" + replyMessage.getJMSReplyTo());\n\t\t\tSystem.out.println(\"\\tContents: \" + replyMessage.getText());\n\t\t} else {\n\t\t\tSystem.out.println(\"Invalid message detected\");\n\t\t\tSystem.out.println(\"\\tType: \" + msg.getClass().getName());\n\t\t\tSystem.out.println(\"\\tTime: \" + System.currentTimeMillis() + \" ms\");\n\t\t\tSystem.out.println(\"\\tMessage ID: \" + msg.getJMSMessageID());\n\t\t\tSystem.out.println(\"\\tCorrel. ID: \" + msg.getJMSCorrelationID());\n\t\t\tSystem.out.println(\"\\tReply to: \" + msg.getJMSReplyTo());\n\n\t\t\tmsg.setJMSCorrelationID(msg.getJMSMessageID());\n\t\t\tinvalidProducer.send(msg);\n\n\t\t\tSystem.out.println(\"Sent to invalid message queue\");\n\t\t\tSystem.out.println(\"\\tType: \" + msg.getClass().getName());\n\t\t\tSystem.out.println(\"\\tTime: \" + System.currentTimeMillis() + \" ms\");\n\t\t\tSystem.out.println(\"\\tMessage ID: \" + msg.getJMSMessageID());\n\t\t\tSystem.out.println(\"\\tCorrel. ID: \" + msg.getJMSCorrelationID());\n\t\t\tSystem.out.println(\"\\tReply to: \" + msg.getJMSReplyTo());\n\t\t}\n\t}\n}\n```\n\nAn application that wants to send requests and recieve replies could use a requestor to do so. The application provides its requestor a Connection to the messaging system. It also specifies the JNDI names of three queues: the request queue, the reply queue, and the invalid message queue. This is the information the requestor needs to initialize itself.\n\nIn initialize, the requestor uses the Connection and queue names to connect to the messaging system.\n\n- It uses the Connection to create a Session . An application only needs one connection to a messaging system, but each component in the application that wishes to be able to send and receive messages independently needs its own session. Two threads cannot share a single session; they should each use a different session so that the sessions will work properly.\n- It uses the queue names to look up the queues, which are Destination s. The names are JNDI identifiers; JndiUtil performs the JNDI lookups.\n- It creates a MessageProducer for sending messages on the request queue, a MessageConsumer for receiving messages from the reply queue, and another producer for moving messages to the invalid message queue.\n\nOne thing that the requestor needs to be able to do is send request messages. For that, it implements the send() method.\n\n- It creates a TextMessage and sets its contents to \"Hello world.\"\n- It sets the message's reply-to property to be the reply queue. This is a [*Return Address*](ReturnAddress.html) that will tell the replier how to send back the reply.\n- It uses the requestProducer to send the message. The producer is connected to the request queue, so that's the queue the message is sent on.\n- It then prints out the details of the message it just sent. This is done after the message is sent because the message ID is set by the messaging system and is not set until the message is actually sent.\n\nThe other thing the requestor needs to be able to do is receive reply messages. It implements the receiveSync() method for this purpose.\n\n- It uses its replyConsumer to receive the reply. The consumer is connected to the reply queue, so it will receive messages from there. It uses the receive() method to get the message, which synchronously blocks until a message is delivered to the queue and is read from the queue, so the requestor is a [*Polling Consumer*](PollingConsumer.html) . Because this receive is synchronous, the requestor's method is called receiveSync() .\n- The message should be a TextMessage . If so, the requestor gets the message's contents and prints out the message's details.\n- If the message is not a TextMessage , then the message cannot be processed. Rather than just discarding the message, the requestor resends it to the invalid message queue. Resending the message will change its message ID, so before resending it, the requestor stores its original message ID in its correlation ID (see [*Correlation Identifier*](CorrelationIdentifier.html) ).\n\nIn this way, a requestor does everything necessary to send a request, receive a reply, and route the reply to a special queue if the message does not make any sense.\n\nNext, let's take a look at how the Replier is implemented:\n\n```\nimport javax.jms.Connection;\nimport javax.jms.Destination;\nimport javax.jms.JMSException;\nimport javax.jms.Message;\nimport javax.jms.MessageConsumer;\nimport javax.jms.MessageListener;\nimport javax.jms.MessageProducer;\nimport javax.jms.Session;\nimport javax.jms.TextMessage;\nimport javax.naming.NamingException;\n\npublic class Replier implements MessageListener {\n\n\tprivate Session session;\n\tprivate MessageProducer invalidProducer;\n\n\tprotected Replier() {\n\t\tsuper();\n\t}\n\n\tpublic static Replier newReplier(Connection connection, String requestQueueName, String invalidQueueName)\n\t\tthrows JMSException, NamingException {\n\n\t\tReplier replier = new Replier();\n\t\treplier.initialize(connection, requestQueueName, invalidQueueName);\n\t\treturn replier;\n\t}\n\n\tprotected void initialize(Connection connection, String requestQueueName, String invalidQueueName)\n\t\tthrows NamingException, JMSException {\n\n\t\tsession = connection.createSession(false, Session.AUTO_ACKNOWLEDGE);\n\t\tDestination requestQueue = JndiUtil.getDestination(requestQueueName);\n\t\tDestination invalidQueue = JndiUtil.getDestination(invalidQueueName);\n\n\t\tMessageConsumer requestConsumer = session.createConsumer(requestQueue);\n\t\tMessageListener listener = this;\n\t\trequestConsumer.setMessageListener(listener);\n\n\t\tinvalidProducer = session.createProducer(invalidQueue);\n\t}\n\n\tpublic void onMessage(Message message) {\n\t\ttry {\n\t\t\tif ((message instanceof TextMessage) && (message.getJMSReplyTo() != null)) {\n\t\t\t\tTextMessage requestMessage = (TextMessage) message;\n\n\t\t\t\tSystem.out.println(\"Received request\");\n\t\t\t\tSystem.out.println(\"\\tTime: \" + System.currentTimeMillis() + \" ms\");\n\t\t\t\tSystem.out.println(\"\\tMessage ID: \" + requestMessage.getJMSMessageID());\n\t\t\t\tSystem.out.println(\"\\tCorrel. ID: \" + requestMessage.getJMSCorrelationID());\n\t\t\t\tSystem.out.println(\"\\tReply to: \" + requestMessage.getJMSReplyTo());\n\t\t\t\tSystem.out.println(\"\\tContents: \" + requestMessage.getText());\n\n\t\t\t\tString contents = requestMessage.getText();\n\t\t\t\tDestination replyDestination = message.getJMSReplyTo();\n\t\t\t\tMessageProducer replyProducer = session.createProducer(replyDestination);\n\n\t\t\t\tTextMessage replyMessage = session.createTextMessage();\n\t\t\t\treplyMessage.setText(contents);\n\t\t\t\treplyMessage.setJMSCorrelationID(requestMessage.getJMSMessageID());\n\t\t\t\treplyProducer.send(replyMessage);\n\n\t\t\t\tSystem.out.println(\"Sent reply\");\n\t\t\t\tSystem.out.println(\"\\tTime: \" + System.currentTimeMillis() + \" ms\");\n\t\t\t\tSystem.out.println(\"\\tMessage ID: \" + replyMessage.getJMSMessageID());\n\t\t\t\tSystem.out.println(\"\\tCorrel. ID: \" + replyMessage.getJMSCorrelationID());\n\t\t\t\tSystem.out.println(\"\\tReply to: \" + replyMessage.getJMSReplyTo());\n\t\t\t\tSystem.out.println(\"\\tContents: \" + replyMessage.getText());\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"Invalid message detected\");\n\t\t\t\tSystem.out.println(\"\\tType: \" + message.getClass().getName());\n\t\t\t\tSystem.out.println(\"\\tTime: \" + System.currentTimeMillis() + \" ms\");\n\t\t\t\tSystem.out.println(\"\\tMessage ID: \" + message.getJMSMessageID());\n\t\t\t\tSystem.out.println(\"\\tCorrel. ID: \" + message.getJMSCorrelationID());\n\t\t\t\tSystem.out.println(\"\\tReply to: \" + message.getJMSReplyTo());\n\n\t\t\t\tmessage.setJMSCorrelationID(message.getJMSMessageID());\n\t\t\t\tinvalidProducer.send(message);\n\n\t\t\t\tSystem.out.println(\"Sent to invalid message queue\");\n\t\t\t\tSystem.out.println(\"\\tType: \" + message.getClass().getName());\n\t\t\t\tSystem.out.println(\"\\tTime: \" + System.currentTimeMillis() + \" ms\");\n\t\t\t\tSystem.out.println(\"\\tMessage ID: \" + message.getJMSMessageID());\n\t\t\t\tSystem.out.println(\"\\tCorrel. ID: \" + message.getJMSCorrelationID());\n\t\t\t\tSystem.out.println(\"\\tReply to: \" + message.getJMSReplyTo());\n\t\t\t}\n\t\t} catch (JMSException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}\n}\n```\n\nReplier is what an application might use to receive a request and send a reply. The application provides its requestor a Connection to the messaging system, as well as the JNDI names of the request and invalid message queues. (It does not need to specify the name of the reply queue because, as we'll see, that will be provided by the message's [*Return Address*](ReturnAddress.html).) This is the information the requestor needs to initialize itself.\n\nThe replier's initialize code is pretty similar to the requestor's, but there are a couple of differences:\n\n- One difference is that the replier does not look up the reply queue and create a producer for it. This is because the replier does not assume it will always send replies on that queue; rather, as we'll see it will let the request message tell it what queue to send the reply message on.\n- Another difference is that replier is an [*Event-Driven Consumer*](EventDrivenConsumer.html) , so it implements MessageListener . When a message is delivered to the request queue, the messaging system will automatically call the replier's onMessage method.\n\nOnce the replier has initialized itself to be a listener on the request queue, there's not much for it to do but wait for messages. Unlike the requestor, which has to explicitedly poll the reply queue for messages, the replier is event-driven and so does nothing until the messaging system calls its onMessage method with a new message. The message will be from the request queue because initialize created the consumer on the request queue. Once onMessage receives a new message, it processes the message like this:\n\n- Like with the requestor processing a reply message, the request message is supposed to be a TextMessage . It is also supposed to specify the queue to send the reply on. If the message does not meet these requirements, the replier will move the message to the invalid message queue (same as the requestor).\n- If the message meets the requirements: Here is where the replier implements its part of the [*Return Address*](ReturnAddress.html) pattern. Remember that the requestor set the request message's reply-to property to specify the reply queue. The replier now gets that property's value and uses it to create a MessageProducer on the proper queue. The important part here is that the replier is not hard-coded to use a particular reply queue; it uses whatever reply queue each particular request message specifies.\n- The replier then creates the reply message. In doing so, it implements the [*Correlation Identifier*](CorrelationIdentifier.html) pattern by setting the relpy message's correlation-id property to the same value as the request message's message-id property.\n- The replier then sends out the reply message and displays its details.\n\nThus a replier does everything necessary to receive a message (presumably a request) and send a reply.\n\n## Invalid Message Example\n\nWhile we're at it, let's look at an example of the [*Invalid Message Channel*](InvalidMessageChannel.html) pattern. Remember, one of the queues we need is one named \"jms/InvalidMessages.\" This exists so that if a JMS client (a [*Message Endpoint*](MessageEndpoint.html)) receives a message it cannot process, it can move the strange message to a special channel.\n\nTo demonstrate invalid message handling, we have designed an InvalidMessenger class. This object is specifically designed to send a message on the request channel whose format is incorrect. Like any channel, the request channel is a [*Datatype Channel*](DatatypeChannel.html), in that the request receivers expect the requests to be of a certain format. The invalid messenger simply sends a message of a different format; when the replier receives the message, it does not recognize the message's format, and so moves the message to the invalid message queue.\n\nWe'll run the Replier in one window and the Invalid Messenger in another window. When the invalid messenger sends its message, it displays output like this:\n\n```\nSent invalid message\n Type: com.sun.jms.ObjectMessageImpl\n Time: 1048288516959 ms\n Message ID: ID:_XYZ123_1048288516639_7.2.1.1\n Correl. ID: null\n Reply to: com.sun.jms.Queue: jms/ReplyQueue\n```\n\nThis shows that the message is an instance of ObjectMessage (whereas the replier is expecting a TextMessage). The Replier recieves the invalid message and resends it to the invalid message queue:\n\n```\nInvalid message detected\n Type: com.sun.jms.ObjectMessageImpl\n Time: 1048288517049 ms\n Message ID: ID:_XYZ123_1048288516639_7.2.1.1\n Correl. ID: null\n Reply to: com.sun.jms.Queue: jms/ReplyQueue\nSent to invalid message queue\n Type: com.sun.jms.ObjectMessageImpl\n Time: 1048288517140 ms\n Message ID: ID:_XYZ123_1048287020267_6.2.1.2\n Correl. ID: ID:_XYZ123_1048288516639_7.2.1.1\n Reply to: com.sun.jms.Queue: jms/ReplyQueue\n```\n\nOne insight worth noting is that when the message is moved to the invalid message queue, it is actually being resent, so it gets a new message ID. Because of this, we apply the [*Correlation Identifier*](CorrelationIdentifier.html) pattern; once the replier determines the message to be invalid, it copies the message's main ID to its correlation ID so as to preserve a record of the message's original ID.\n\nThe code that handles this invalid-message processing is in the Replier class shown earlier, in the onMessage method. Requestor.receiveSync() contains similar invalid-message processing code.\n\n## Conclusions\n\nWe've seen how to implement two classes, Requestor and Replier ([*Message Endpoint*](MessageEndpoint.html)s), that exchange a request and reply [*Message*](Message.html)s using [*Request-Reply*](RequestReply.html). The request message uses a [*Return Address*](ReturnAddress.html) to specify what queue to send the reply on. The reply messages uses a [*Correlation Identifier*](CorrelationIdentifier.html) to specify which request this is a reply for. The Requestor implements a [*Polling Consumer*](PollingConsumer.html) to receive replies, whereas the Replier implements an [*Event-Driven Consumer*](EventDrivenConsumer.html) to receive requests. The request and reply queues are [*Datatype Channel*](DatatypeChannel.html)s; when a consumer receives a message that is not of the right type, it reroutes the message to the [*Invalid Message Channel*](InvalidMessageChannel.html).\n\n## Integration Pattern Language\n\n[Message Construct.](MessageConstructionIntro.html)\n\n[Message](Message.html)\n\n[Command Message](CommandMessage.html)\n\n[Document Message](DocumentMessage.html)\n\n[Event Message](EventMessage.html)\n\n[Request-Reply](RequestReply.html)\n\n[Return Address](ReturnAddress.html)\n\n[Correlation Identifier](CorrelationIdentifier.html)\n\n[Message Sequence](MessageSequence.html)\n\n[Message Expiration](MessageExpiration.html)\n\n[Format Indicator](FormatIndicator.html)\n\n[Message Routing](MessageRoutingIntro.html)\n\n[Pipes-and-Filters](PipesAndFilters.html)\n\n[Message Router](MessageRouter.html)\n\n[Content-based Router](ContentBasedRouter.html)\n\n[Message Filter](Filter.html)\n\n[Dynamic Router](DynamicRouter.html)\n\n[Recipient List](RecipientList.html)\n\n[Splitter](Sequencer.html)\n\n[Aggregator](Aggregator.html)\n\n[Resequencer](Resequencer.html)\n\n[Composed Msg. Processor](DistributionAggregate.html)\n\n[Scatter-Gather](BroadcastAggregate.html)\n\n[Routing Slip](RoutingTable.html)\n\n[Process Manager](ProcessManager.html)\n\n[Message Broker](MessageBroker.html)\n\n[Message\nTransformation](MessageTransformationIntro.html)\n\n[Message Translator](MessageTranslator.html)\n\n[Envelope Wrapper](EnvelopeWrapper.html)\n\n[Content Enricher](DataEnricher.html)\n\n[Content Filter](ContentFilter.html)\n\n[Claim Check](StoreInLibrary.html)\n\n[Normalizer](Normalizer.html)\n\n[Canonical Data Model](CanonicalDataModel.html)\n\n[Messaging Endpoints](MessagingEndpointsIntro.html)\n\n[Message Endpoint](MessageEndpoint.html)\n\n[Messaging Gateway](MessagingGateway.html)\n\n[Messaging Mapper](MessagingMapper.html)\n\n[Transactional Client](TransactionalClient.html)\n\n[Polling Consumer](PollingConsumer.html)\n\n[Event-driven Consumer](EventDrivenConsumer.html)\n\n[Competing Consumers](CompetingConsumers.html)\n\n[Message Dispatcher](MessageDispatcher.html)\n\n[Selective Consumer](MessageSelector.html)\n\n[Durable Subscriber](DurableSubscription.html)\n\n[Idempotent Receiver](IdempotentReceiver.html)\n\n[Service Activator](MessagingAdapter.html)\n\n[Messaging Channels](MessagingChannelsIntro.html)\n\n[Message Channel](MessageChannel.html)\n\n[Point-to-Point Channel](PointToPointChannel.html)\n\n[Publish-Subscr. Channel](PublishSubscribeChannel.html)\n\n[Datatype Channel](DatatypeChannel.html)\n\n[Invalid Message Channel](InvalidMessageChannel.html)\n\n[Dead Letter Channel](DeadLetterChannel.html)\n\n[Guaranteed Delivery](GuaranteedMessaging.html)\n\n[Channel Adapter](ChannelAdapter.html)\n\n[Messaging Bridge](MessagingBridge.html)\n\n[Message Bus](MessageBus.html)\n\n[Systems Mgmt.](SystemManagementIntro.html)\n\n[Control Bus](ControlBus.html)\n\n[Detour](Detour.html)\n\n[Wire Tap](WireTap.html)\n\n[Message History](MessageHistory.html)\n\n[Message Store](MessageStore.html)\n\n[Smart Proxy](SmartProxy.html)\n\n[Test Message](TestMessage.html)\n\n[Channel Purger](ChannelPurger.html)", "znaku_textu": 24821, "slov": 3009, "odkazu": 108, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/patterns/messaging/RequestReplyJmsExample.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 06:02:22", "sha256": "713e6f66ba661d91f9ddc35740753a1380522e51c5bbd5e44e498c27d105e639", "hloubka": 1, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://java.sun.com/products/jms/", "https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "https://www.architectelevator.com/book", "https://www.cloudstrategybook.com/", "https://www.platformstrategybook.info/"]} {"url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/RequestReplyNetExample.html", "titulek": ".NET Request/Reply Example - Enterprise Integration Patterns", "h1": "", "popis": "This is a simple example of how to use messaging, implemented in .NET [SysMsg] and C#. It shows how to implement Request-Reply, where a requestor application sends a request, a replier application receives the request and returns a reply, and the requestor receives the reply. It also shows how an invalid message will be rerouted to a special channel.", "klicova_slova": ".NET Request/Reply Example,integration, messaging, events, patterns, event-driven, coupling, eai, middleware, application integration, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns", "og:title": ".NET Request/Reply Example - Enterprise Integration Patterns", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/RequestReplyNetExample.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/eip1_patterns_wide.png"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Request/Reply Example"}, {"uroven": 2, "text": "Request/Reply Code"}, {"uroven": 2, "text": "Invalid Message Example"}, {"uroven": 2, "text": "Conclusions"}, {"uroven": 2, "text": "Integration Pattern Language"}], "markdown": "| | .NET Request/Reply Example[Messaging Patterns](index.html) » [Interlude: Simple Messaging](SimpleMessagingIntro.html) | [Contents](toc.html)[⇐ Prev](RequestReplyJmsExample.html)[Next ⇒](ObserverJmsExample.html) |\n| --- | --- | --- |\n\nThis is a simple example of how to use messaging, implemented in .NET [[SysMsg](http://msdn.microsoft.com/library/)] and C#. It shows how to implement [*Request-Reply*](RequestReply.html), where a requestor application sends a request, a replier application receives the request and returns a reply, and the requestor receives the reply. It also shows how an invalid message will be rerouted to a special channel.\n\n*Components of the Request/Reply Example*\n\nThis example was developed using the Microsoft .NET Framework SDK and run on a Windows XP computer with MSMQ [[MSMQ01](http://www.microsoft.com/msmq)] installed.\n\n## Request/Reply Example\n\nThis example consists of two main classes:\n\n1. **Requestor** — A [*Message Endpoint*](MessageEndpoint.html) that sends a request message and waits to receive a reply message as a response.\n2. **Replier** — A [*Message Endpoint*](MessageEndpoint.html) that waits to receive the request message; when it does, it responds by sending the reply message.\n\nThe Requestor and the Replier will each run as a separate .NET program, which is what makes the communication distributed.\n\nThis example assumes that the messaging system has these three queues defined:\n\n1. **.\\private$\\RequestQueue** — The MessageQueue the Requestor uses to send the request message to the Replier.\n2. **.\\private$\\ReplyQueue** — The MessageQueue the Replier uses to send the reply message to the Requestor.\n3. **.\\private$\\InvalidQueue** — The MessageQueue that the Requestor and Replier move a message to when they receive a message that they cannot interpret.\n\nHere's how the example works. When the Requestor is started in a command-line window, it starts and prints output like this:\n\n```\nSent request\n Time: 09:11:09.165342\n Message ID: 8b0fc389-f21f-423b-9eaa-c3a881a34808\\149\n Correl. ID:\n Reply to: .\\private$\\ReplyQueue\n Contents: Hello world.\n```\n\nWhat this shows is that the Requestor has sent a request message. Notice that this works even though the Replier isn't even running and therefore cannot receive the request.\n\nWhen the Replier is started in another command-line window, it starts and prints output like this:\n\n```\nReceived request\n Time: 09:11:09.375644\n Message ID: 8b0fc389-f21f-423b-9eaa-c3a881a34808\\149\n Correl. ID: \n Reply to: FORMATNAME:DIRECT=OS:XYZ123\\private$\\ReplyQueue\n Contents: Hello world.\nSent reply\n Time: 09:11:09.956480\n Message ID: 8b0fc389-f21f-423b-9eaa-c3a881a34808\\150\n Correl. ID: 8b0fc389-f21f-423b-9eaa-c3a881a34808\\149\n Reply to: \n Contents: Hello world.\n```\n\nThis shows that the Replier received the request message and sent a reply message.\n\nThere are several items in this output that are interesting to notice. First, notice the request send and received timestamps; the request was received after it was sent (210302 ms later). Second, notice that the message ID is the same in both cases, because it's the same message. Third, notice that the contents, \"Hello world,\" are the same, which is very good because this is the data being transmitted and it has got to be the same on both sides. (The request in this example is pretty lame. It is basically a [*Document Message*](DocumentMessage.html); a real request would usually be a [*Command Message*](CommandMessage.html).) Forth, the queue named \"jms/ReplyQueue\" has been specified in the request message as the destination for the reply message (an example of the [*Return Address*](ReturnAddress.html) pattern).\n\nNext, let's compare the output from receiving the request to that for sending the reply. First, notice the reply was not sent until after the request was received (580836 ms after). Second, the message ID for the reply is different from that for the request; this is because the request and reply messages are different, separate messages. Third, the contents of the request have been extracted and added to the reply. Forth, the reply-to destination is unspecified because no reply is expected (the reply does not use the [*Return Address*](ReturnAddress.html) pattern). Fifth, the reply's correlation ID is the same as the request's message ID (the reply does use the [*Correlation Identifier*](CorrelationIdentifier.html) pattern).\n\nFinally, back in the first window, the requester received the reply:\n\n```\nReceived reply\n Time: 09:11:10.156467\n Message ID: 8b0fc389-f21f-423b-9eaa-c3a881a34808\\150\n Correl. ID: 8b0fc389-f21f-423b-9eaa-c3a881a34808\\149\n Reply to: \n Contents: Hello world.\n```\n\nThis output contains several items of interest. The reply was received after it was sent (199987 ms). The message ID of the reply was the same when it was received as it was when it was sent, which proves that it is indeed the same message. The message contents received are the same as those sent. And the correlation ID tells the requestor which request this reply is for (the [*Correlation Identifier*](CorrelationIdentifier.html) pattern).\n\nNotice too that the requestor is designed to simply send a request, receive a reply, and exit. So having received the reply, the requestor is no longer running. The replier, on the other hand, doesn't know when it might receive a request, so it never stops running. To stop it, we go to its command shell window and press the return key, which causes the replier program to exit.\n\nSo this is the request/reply example. A request was prepared and sent by the requestor. The replier received the request and sent a reply. Then the requestor received the reply to its original request.\n\n## Request/Reply Code\n\nFirst, let's take a look at how the Requestor is implemented:\n\n```\nusing System;\nusing System.Messaging;\n\npublic class Requestor\n{\n\tprivate MessageQueue requestQueue;\n\tprivate MessageQueue replyQueue;\n\t\n\tpublic Requestor(String requestQueueName, String replyQueueName)\n\t{\n\t\trequestQueue = new MessageQueue(requestQueueName);\n\t\treplyQueue = new MessageQueue(replyQueueName);\n\n\t\treplyQueue.MessageReadPropertyFilter.SetAll();\n\t\t((XmlMessageFormatter)replyQueue.Formatter).TargetTypeNames = new string[]{\"System.String,mscorlib\"};\n\t}\n\t\n\tpublic void Send()\n\t{\n\t\tMessage requestMessage = new Message();\n\t\trequestMessage.Body = \"Hello world.\";\n\t\trequestMessage.ResponseQueue = replyQueue;\n\t\trequestQueue.Send(requestMessage);\n\t\t\n\t\tConsole.WriteLine(\"Sent request\");\n\t\tConsole.WriteLine(\"\\tTime: {0}\", DateTime.Now.ToString(\"HH:mm:ss.ffffff\"));\n\t\tConsole.WriteLine(\"\\tMessage ID: {0}\", requestMessage.Id);\n\t\tConsole.WriteLine(\"\\tCorrel. ID: {0}\", requestMessage.CorrelationId);\n\t\tConsole.WriteLine(\"\\tReply to: {0}\", requestMessage.ResponseQueue.Path);\n\t\tConsole.WriteLine(\"\\tContents: {0}\", requestMessage.Body.ToString());\n\t}\n \n\tpublic void ReceiveSync()\n\t{\n\t\tMessage replyMessage = replyQueue.Receive();\n\n\t\tConsole.WriteLine(\"Received reply\");\n\t\tConsole.WriteLine(\"\\tTime: {0}\", DateTime.Now.ToString(\"HH:mm:ss.ffffff\"));\n\t\tConsole.WriteLine(\"\\tMessage ID: {0}\", replyMessage.Id);\n\t\tConsole.WriteLine(\"\\tCorrel. ID: {0}\", replyMessage.CorrelationId);\n\t\tConsole.WriteLine(\"\\tReply to: {0}\", \"\");\n\t\tConsole.WriteLine(\"\\tContents: {0}\", replyMessage.Body.ToString());\n\t}\n}\n```\n\nAn application that wants to send requests and recieve replies could use a requestor to do so. The application specifies the pathnames of two queues: the request queue and the reply queue. This is the information the requestor needs to initialize itself.\n\nIn the Requestor constructor, the requestor uses the queue names to connect to the messaging system.\n\n- It uses the queue names to look up the queues, which are MessageQueue s. The names are pathnames to MSMQ resources.\n- It sets the reply queue's property filter so that when a message is read from the queue, all of the message's properties will be read as well. It also sets the queue's formatter to be an XmlMessageFormatter so that the message contents will be interpreted as strings.\n\nOne thing that the requestor needs to be able to do is send request messages. For that, it implements the Send() method.\n\n- It creates a Message and sets its contents to \"Hello world.\"\n- It sets the message's ResponseQueue property to be the reply queue. This is a [*Return Address*](ReturnAddress.html) that will tell the replier how to send back the reply.\n- It then sends the message to the queue.\n- It then prints out the details of the message it just sent. This is done after the message is sent because the message ID is set by the messaging system and is not set until the message is actually sent.\n\nThe other thing the requestor needs to be able to do is receive reply messages. It implements the ReceiveSync() method for this purpose.\n\n- It runs the queue's Receive() method to get the message, which synchronously blocks until a message is delivered to the queue and is read from the queue, so the requestor is a [*Polling Consumer*](PollingConsumer.html) . Because this receive is synchronous, the requestor's method is called ReceiveSync() .\n- The requestor gets the message's contents and prints out the message's details.\n\nIn this way, a requestor does everything necessary to send a request and receive a reply.\n\nNext, let's take a look at how the Replier is implemented:\n\n```\nusing System;\nusing System.Messaging;\n\nclass Replier {\n\t\n\tprivate MessageQueue invalidQueue;\n\t\n\tpublic Replier(String requestQueueName, String invalidQueueName)\n\t{\n\t\tMessageQueue requestQueue = new MessageQueue(requestQueueName);\n\t\tinvalidQueue = new MessageQueue(invalidQueueName);\n\t\t\n\t\trequestQueue.MessageReadPropertyFilter.SetAll();\n\t\t((XmlMessageFormatter)requestQueue.Formatter).TargetTypeNames = new string[]{\"System.String,mscorlib\"};\n\n\t\trequestQueue.ReceiveCompleted += new ReceiveCompletedEventHandler(OnReceiveCompleted);\n\t\trequestQueue.BeginReceive();\n\t}\n\t\n\tpublic void OnReceiveCompleted(Object source, ReceiveCompletedEventArgs asyncResult)\n\t{\n\t\tMessageQueue requestQueue = (MessageQueue)source;\n\t\tMessage requestMessage = requestQueue.EndReceive(asyncResult.AsyncResult);\n\n\t\ttry\n\t\t{\n\t\t\tConsole.WriteLine(\"Received request\");\n\t\t\tConsole.WriteLine(\"\\tTime: {0}\", DateTime.Now.ToString(\"HH:mm:ss.ffffff\"));\n\t\t\tConsole.WriteLine(\"\\tMessage ID: {0}\", requestMessage.Id);\n\t\t\tConsole.WriteLine(\"\\tCorrel. ID: {0}\", \"\");\n\t\t\tConsole.WriteLine(\"\\tReply to: {0}\", requestMessage.ResponseQueue.Path);\n\t\t\tConsole.WriteLine(\"\\tContents: {0}\", requestMessage.Body.ToString());\n\t\n\t\t\tstring contents = requestMessage.Body.ToString();\n\t\t\tMessageQueue replyQueue = requestMessage.ResponseQueue;\n\t\t\tMessage replyMessage = new Message();\n\t\t\treplyMessage.Body = contents;\n\t\t\treplyMessage.CorrelationId = requestMessage.Id;\n\t\t\treplyQueue.Send(replyMessage);\n\t\n\t\t\tConsole.WriteLine(\"Sent reply\");\n\t\t\tConsole.WriteLine(\"\\tTime: {0}\", DateTime.Now.ToString(\"HH:mm:ss.ffffff\"));\n\t\t\tConsole.WriteLine(\"\\tMessage ID: {0}\", replyMessage.Id);\n\t\t\tConsole.WriteLine(\"\\tCorrel. ID: {0}\", replyMessage.CorrelationId);\n\t\t\tConsole.WriteLine(\"\\tReply to: {0}\", \"\");\n\t\t\tConsole.WriteLine(\"\\tContents: {0}\", replyMessage.Body.ToString());\n\t\t}\n\t\tcatch ( Exception ) {\n\t\t\tConsole.WriteLine(\"Invalid message detected\");\n\t\t\tConsole.WriteLine(\"\\tType: {0}\", requestMessage.BodyType);\n\t\t\tConsole.WriteLine(\"\\tTime: {0}\", DateTime.Now.ToString(\"HH:mm:ss.ffffff\"));\n\t\t\tConsole.WriteLine(\"\\tMessage ID: {0}\", requestMessage.Id);\n\t\t\tConsole.WriteLine(\"\\tCorrel. ID: {0}\", \"\");\n\t\t\tConsole.WriteLine(\"\\tReply to: {0}\", \"\");\n\t\t\t\n\t\t\trequestMessage.CorrelationId = requestMessage.Id;\n\t\t\t\n\t\t\tinvalidQueue.Send(requestMessage);\n\t\t\t\n\t\t\tConsole.WriteLine(\"Sent to invalid message queue\");\n\t\t\tConsole.WriteLine(\"\\tType: {0}\", requestMessage.BodyType);\n\t\t\tConsole.WriteLine(\"\\tTime: {0}\", DateTime.Now.ToString(\"HH:mm:ss.ffffff\"));\n\t\t\tConsole.WriteLine(\"\\tMessage ID: {0}\", requestMessage.Id);\n\t\t\tConsole.WriteLine(\"\\tCorrel. ID: {0}\", requestMessage.CorrelationId);\n\t\t\tConsole.WriteLine(\"\\tReply to: {0}\", requestMessage.ResponseQueue.Path);\n\t\t}\n\t\t\n\t\trequestQueue.BeginReceive();\n\t}\n}\n```\n\nReplier is what an application might use to receive a request and send a reply. The application specifies the pathnames of the request and invalid message queues. (It does not need to specify the name of the reply queue because, as we'll see, that will be provided by the message's [*Return Address*](ReturnAddress.html).) This is the information the requestor needs to initialize itself.\n\nThe Replier constructor is pretty similar to the requestor's, but there are a couple of differences:\n\n- One difference is that the replier does not look up the reply queue. This is because the replier does not assume it will always send replies on that queue; rather, as we'll see it will let the request message tell it what queue to send the reply message on.\n- Another difference is that replier is an [*Event-Driven Consumer*](EventDrivenConsumer.html) , so it sets up a ReceiveCompletedEventHandler . When a message is delivered to the request queue, the messaging system will automatically call the specified method, OnReceiveCompleted .\n\nOnce the replier has initialized itself to be a listener on the request queue, there's not much for it to do but wait for messages. Unlike the requestor, which has to explicitedly poll the reply queue for messages, the replier is event-driven and so does nothing until the messaging system calls its OnReceiveCompleted method with a new message. The message will be from the request queue because the constructor created the event handler on the request queue. Once OnReceiveCompleted is called, this is what it does to get the new message and processes it:\n\n- The source is a MessageQueue , the request queue.\n- The message itself is obtained by running the queue's EndReceive method. The replier then prints out the details about the message.\n- Then the replier implements its part of the [*Return Address*](ReturnAddress.html) pattern. Remember that the requestor set the request message's response-queue property to specify the reply queue. The replier now gets that property's value and uses it reference the proper MessageQueue . The important part here is that the replier is not hard-coded to use a particular reply queue; it uses whatever reply queue each particular request message specifies.\n- The replier then creates the reply message. In doing so, it implements the [*Correlation Identifier*](CorrelationIdentifier.html) pattern by setting the relpy message's correlation-id property to the same value as the request message's message-id property.\n- The replier then sends out the reply message and displays its details.\n- If the message can be received but not successfully processed, and an Exception is thrown, the replier resends the message to the invalid message queue. In the process, it sets the new message's correlation id to the original message's message id.\n- Once the replier has finished processing the message, it runs BeginReceive to start listening for the next message.\n\nThus a replier does everything necessary to receive a message (presumably a request) and send a reply. If it cannot reply to a message, it routes the message to the invalid message queue.\n\n## Invalid Message Example\n\nWhile we're at it, let's look at an example of the [*Invalid Message Channel*](InvalidMessageChannel.html) pattern. Remember, one of the queues we need is one named \"private$\\InvalidMessages.\" This exists so that if an MSMQ client (a [*Message Endpoint*](MessageEndpoint.html)) receives a message it cannot process, it can move the strange message to a special channel.\n\nTo demonstrate invalid message handling, we have designed an InvalidMessenger class. This object is specifically designed to send a message on the request channel whose format is incorrect. Like any channel, the request channel is a [*Datatype Channel*](DatatypeChannel.html), in that the request receivers expect the requests to be of a certain format. The invalid messenger simply sends a message of a different format; when the replier receives the message, it does not recognize the message's format, and so moves the message to the invalid message queue.\n\nWe'll run the Replier in one window and the Invalid Messenger in another window. When the invalid messenger sends its message, it displays output like this:\n\n```\nSent request\n Type: 768\n Time: 09:39:44.223729\n Message ID: 8b0fc389-f21f-423b-9eaa-c3a881a34808\\168\n Correl. ID: 00000000-0000-0000-0000-000000000000\\0\n Reply to: .\\private$\\ReplyQueue\n```\n\nType 768 means that the format of the message contents is binary (whereas the replier is expecting the contents to be text/XML). The Replier recieves the invalid message and resends it to the invalid message queue:\n\n```\nInvalid message detected\n Type: 768\n Time: 09:39:44.233744\n Message ID: 8b0fc389-f21f-423b-9eaa-c3a881a34808\\168\n Correl. ID: \n Reply to: \nSent to invalid message queue\n Type: 768\n Time: 09:39:44.233744\n Message ID: 8b0fc389-f21f-423b-9eaa-c3a881a34808\\169\n Correl. ID: 8b0fc389-f21f-423b-9eaa-c3a881a34808\\168\n Reply to: FORMATNAME:DIRECT=OS:XYZ123\\private$\\ReplyQueue\n```\n\nOne insight worth noting is that when the message is moved to the invalid message queue, it is actually being resent, so it gets a new message ID. Because of this, we apply the [*Correlation Identifier*](CorrelationIdentifier.html) pattern; once the replier determines the message to be invalid, it copies the message's main ID to its correlation ID so as to preserve a record of the message's original ID.\n\nThe code that handles this invalid-message processing is in the Replier class shown earlier, in the OnReceiveCompleted method.\n\n## Conclusions\n\nWe've seen how to implement two classes, Requestor and Replier ([*Message Endpoint*](MessageEndpoint.html)s), that exchange a request and reply [*Message*](Message.html)s using [*Request-Reply*](RequestReply.html). The request message uses a [*Return Address*](ReturnAddress.html) to specify what queue to send the reply on. The reply messages uses a [*Correlation Identifier*](CorrelationIdentifier.html) to specify which request this is a reply for. The Requestor implements a [*Polling Consumer*](PollingConsumer.html) to receive replies, whereas the Replier implements an [*Event-Driven Consumer*](EventDrivenConsumer.html) to receive requests. The request and reply queues are [*Datatype Channel*](DatatypeChannel.html)s; when a consumer receives a message that is not of the right type, it reroutes the message to the [*Invalid Message Channel*](InvalidMessageChannel.html).\n\n## Integration Pattern Language\n\n[Message Construct.](MessageConstructionIntro.html)\n\n[Message](Message.html)\n\n[Command Message](CommandMessage.html)\n\n[Document Message](DocumentMessage.html)\n\n[Event Message](EventMessage.html)\n\n[Request-Reply](RequestReply.html)\n\n[Return Address](ReturnAddress.html)\n\n[Correlation Identifier](CorrelationIdentifier.html)\n\n[Message Sequence](MessageSequence.html)\n\n[Message Expiration](MessageExpiration.html)\n\n[Format Indicator](FormatIndicator.html)\n\n[Message Routing](MessageRoutingIntro.html)\n\n[Pipes-and-Filters](PipesAndFilters.html)\n\n[Message Router](MessageRouter.html)\n\n[Content-based Router](ContentBasedRouter.html)\n\n[Message Filter](Filter.html)\n\n[Dynamic Router](DynamicRouter.html)\n\n[Recipient List](RecipientList.html)\n\n[Splitter](Sequencer.html)\n\n[Aggregator](Aggregator.html)\n\n[Resequencer](Resequencer.html)\n\n[Composed Msg. Processor](DistributionAggregate.html)\n\n[Scatter-Gather](BroadcastAggregate.html)\n\n[Routing Slip](RoutingTable.html)\n\n[Process Manager](ProcessManager.html)\n\n[Message Broker](MessageBroker.html)\n\n[Message\nTransformation](MessageTransformationIntro.html)\n\n[Message Translator](MessageTranslator.html)\n\n[Envelope Wrapper](EnvelopeWrapper.html)\n\n[Content Enricher](DataEnricher.html)\n\n[Content Filter](ContentFilter.html)\n\n[Claim Check](StoreInLibrary.html)\n\n[Normalizer](Normalizer.html)\n\n[Canonical Data Model](CanonicalDataModel.html)\n\n[Messaging Endpoints](MessagingEndpointsIntro.html)\n\n[Message Endpoint](MessageEndpoint.html)\n\n[Messaging Gateway](MessagingGateway.html)\n\n[Messaging Mapper](MessagingMapper.html)\n\n[Transactional Client](TransactionalClient.html)\n\n[Polling Consumer](PollingConsumer.html)\n\n[Event-driven Consumer](EventDrivenConsumer.html)\n\n[Competing Consumers](CompetingConsumers.html)\n\n[Message Dispatcher](MessageDispatcher.html)\n\n[Selective Consumer](MessageSelector.html)\n\n[Durable Subscriber](DurableSubscription.html)\n\n[Idempotent Receiver](IdempotentReceiver.html)\n\n[Service Activator](MessagingAdapter.html)\n\n[Messaging Channels](MessagingChannelsIntro.html)\n\n[Message Channel](MessageChannel.html)\n\n[Point-to-Point Channel](PointToPointChannel.html)\n\n[Publish-Subscr. Channel](PublishSubscribeChannel.html)\n\n[Datatype Channel](DatatypeChannel.html)\n\n[Invalid Message Channel](InvalidMessageChannel.html)\n\n[Dead Letter Channel](DeadLetterChannel.html)\n\n[Guaranteed Delivery](GuaranteedMessaging.html)\n\n[Channel Adapter](ChannelAdapter.html)\n\n[Messaging Bridge](MessagingBridge.html)\n\n[Message Bus](MessageBus.html)\n\n[Systems Mgmt.](SystemManagementIntro.html)\n\n[Control Bus](ControlBus.html)\n\n[Detour](Detour.html)\n\n[Wire Tap](WireTap.html)\n\n[Message History](MessageHistory.html)\n\n[Message Store](MessageStore.html)\n\n[Smart Proxy](SmartProxy.html)\n\n[Test Message](TestMessage.html)\n\n[Channel Purger](ChannelPurger.html)", "znaku_textu": 21093, "slov": 2630, "odkazu": 109, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/patterns/messaging/RequestReplyNetExample.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 06:02:23", "sha256": "026c8e4f5bfd09fd0ebe386d47aa00b2d53ab0b5fd5526846e5e86f5e71ed497", "hloubka": 1, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://msdn.microsoft.com/library/", "http://www.microsoft.com/msmq", "https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "https://www.architectelevator.com/book", "https://www.cloudstrategybook.com/", "https://www.platformstrategybook.info/"]} {"url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/Resequencer.html", "titulek": "Resequencer - Enterprise Integration Patterns", "h1": "", "popis": "How can we get a stream of related but out-of-sequence messages back into the correct order?", "klicova_slova": "Resequencer,integration, messaging, events, patterns, event-driven, coupling, eai, middleware, application integration, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns", "og:title": "Resequencer - Enterprise Integration Patterns", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/Resequencer.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/Resequencer.gif"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Integration Pattern Language"}], "markdown": "Messaging Patterns\n\n[Messaging Patterns](index.html)\n\n- [Integration Styles](IntegrationStylesIntro.html)\n- [Messaging Systems](MessagingComponentsIntro.html)\n- [Messaging Channels](MessagingChannelsIntro.html)\n- [Message Construction](MessageConstructionIntro.html)\n- [Interlude: Simple Messaging](SimpleMessagingIntro.html)\n- [Message Routing](MessageRoutingIntro.html)\n- [Message Transformation](MessageTransformationIntro.html)\n- [Interlude: Composed Messaging](ComposedMessagingExample.html)\n- [Messaging Endpoints](MessagingEndpointsIntro.html)\n- [System Management](SystemManagementIntro.html)\n- Interlude: Systems Management Example\n- Integration Patterns in Practice\n- Concluding Remarks\n- Appendices\n\n| | Resequencer[Messaging Patterns](index.html) » [Message Routing](MessageRoutingIntro.html) | [Contents](toc.html)[⇐ Prev](Aggregator.html)[Next ⇒](DistributionAggregate.html) |\n| --- | --- | --- |\n\nA [*Message Router*](MessageRouter.html) can route messages from one channel to different channels based on message content or other criteria. Because individual messages may follow different routes, some messages are likely to pass through the processing steps sooner than others, resulting in the messages getting out of order. However, some subsequent processing steps do require in-sequence processing of messages, for example to maintain referential integrity.\n\nHow can we get a stream of related but out-of-sequence messages back into the correct order?\n\nUse a stateful filter, a *Resequencer*, to collect and re-order messages so that they can be published to the output channel in a specified order.\n\nThe *Resequencer* can receive a stream of messages that may not arrive in order. The *Resequencer* contains in internal buffer to store out-of-sequence messages until a complete sequence is obtained. The in-sequence messages are then published to the output channel. It is important that the output channel is order-preserving so messages are guaranteed to arrive in order at the next component. Like most other routers, a *Resequencer* usually does not modify the message contents.\n\n...\nRead the entire pattern in the book [Enterprise Integration Patterns](/books1.html)\n\n**Related patterns:**\n\n[*Aggregator*](Aggregator.html), [*Competing Consumers*](CompetingConsumers.html), [*Message Router*](MessageRouter.html), [*Message Sequence*](MessageSequence.html), [*Pipes and Filters*](PipesAndFilters.html), [*Splitter*](Sequencer.html), [*Test Message*](TestMessage.html)\n\n---\n\n## Integration Pattern Language\n\n[Message Construct.](MessageConstructionIntro.html)\n\n[Message](Message.html)\n\n[Command Message](CommandMessage.html)\n\n[Document Message](DocumentMessage.html)\n\n[Event Message](EventMessage.html)\n\n[Request-Reply](RequestReply.html)\n\n[Return Address](ReturnAddress.html)\n\n[Correlation Identifier](CorrelationIdentifier.html)\n\n[Message Sequence](MessageSequence.html)\n\n[Message Expiration](MessageExpiration.html)\n\n[Format Indicator](FormatIndicator.html)\n\n[Message Routing](MessageRoutingIntro.html)\n\n[Pipes-and-Filters](PipesAndFilters.html)\n\n[Message Router](MessageRouter.html)\n\n[Content-based Router](ContentBasedRouter.html)\n\n[Message Filter](Filter.html)\n\n[Dynamic Router](DynamicRouter.html)\n\n[Recipient List](RecipientList.html)\n\n[Splitter](Sequencer.html)\n\n[Aggregator](Aggregator.html)\n\n[Resequencer](Resequencer.html)\n\n[Composed Msg. Processor](DistributionAggregate.html)\n\n[Scatter-Gather](BroadcastAggregate.html)\n\n[Routing Slip](RoutingTable.html)\n\n[Process Manager](ProcessManager.html)\n\n[Message Broker](MessageBroker.html)\n\n[Message\nTransformation](MessageTransformationIntro.html)\n\n[Message Translator](MessageTranslator.html)\n\n[Envelope Wrapper](EnvelopeWrapper.html)\n\n[Content Enricher](DataEnricher.html)\n\n[Content Filter](ContentFilter.html)\n\n[Claim Check](StoreInLibrary.html)\n\n[Normalizer](Normalizer.html)\n\n[Canonical Data Model](CanonicalDataModel.html)\n\n[Messaging Endpoints](MessagingEndpointsIntro.html)\n\n[Message Endpoint](MessageEndpoint.html)\n\n[Messaging Gateway](MessagingGateway.html)\n\n[Messaging Mapper](MessagingMapper.html)\n\n[Transactional Client](TransactionalClient.html)\n\n[Polling Consumer](PollingConsumer.html)\n\n[Event-driven Consumer](EventDrivenConsumer.html)\n\n[Competing Consumers](CompetingConsumers.html)\n\n[Message Dispatcher](MessageDispatcher.html)\n\n[Selective Consumer](MessageSelector.html)\n\n[Durable Subscriber](DurableSubscription.html)\n\n[Idempotent Receiver](IdempotentReceiver.html)\n\n[Service Activator](MessagingAdapter.html)\n\n[Messaging Channels](MessagingChannelsIntro.html)\n\n[Message Channel](MessageChannel.html)\n\n[Point-to-Point Channel](PointToPointChannel.html)\n\n[Publish-Subscr. Channel](PublishSubscribeChannel.html)\n\n[Datatype Channel](DatatypeChannel.html)\n\n[Invalid Message Channel](InvalidMessageChannel.html)\n\n[Dead Letter Channel](DeadLetterChannel.html)\n\n[Guaranteed Delivery](GuaranteedMessaging.html)\n\n[Channel Adapter](ChannelAdapter.html)\n\n[Messaging Bridge](MessagingBridge.html)\n\n[Message Bus](MessageBus.html)\n\n[Systems Mgmt.](SystemManagementIntro.html)\n\n[Control Bus](ControlBus.html)\n\n[Detour](Detour.html)\n\n[Wire Tap](WireTap.html)\n\n[Message History](MessageHistory.html)\n\n[Message Store](MessageStore.html)\n\n[Smart Proxy](SmartProxy.html)\n\n[Test Message](TestMessage.html)\n\n[Channel Purger](ChannelPurger.html)\n\n- » [Read the latest in My Blog](/ramblings)\n- » [Get more insights from My Articles](/articles.html)\n- » [See me live in my Upcoming Talks](/talks)\n\nYou can reuse the following elements under the [Creative Commons Attribution](http://creativecommons.org/licenses/by/4.0/) license: pattern icon, pattern name, problem and solution statements (in bold), and the sketch. Other portions are protected by copyright.\n\n[Enterprise Integration Patterns](https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20)\nThe de-facto language for designing asynchronous, distributed systems. Over 100,000 copies sold.\n\n[The Software Architect Elevator](https://www.architectelevator.com/book)\n\n Rethink the role of architects as a connecting element across organizational layers. Acquire the technical, communication, and organizational skills to succeed in this new role.\n\n[Cloud Strategy](https://www.cloudstrategybook.com)\n\n Make your cloud migration a success by translating high-level goals into conscious decisions with well-understood trade-offs.\n\n[Platform Strategy](https://www.platformstrategybook.info)\n\n Platforms can boost innovation through harmonization, but they aren't easy to build. Learn from over a decade of designing and rolling out IT platforms.", "znaku_textu": 6444, "slov": 562, "odkazu": 108, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/Resequencer.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 06:02:32", "sha256": "cafe3058fa70fe3bda25f83941e1ac604875e172d2388f6a334c7ff84327f42f", "hloubka": 1, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://creativecommons.org/licenses/by/4.0/", "https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "https://www.architectelevator.com/book", "https://www.cloudstrategybook.com/", "https://www.platformstrategybook.info/"]} {"url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/ReturnAddress.html", "titulek": "Return Address - Enterprise Integration Patterns", "h1": "", "popis": "How does a replier know where to send the reply?", "klicova_slova": "Return Address,integration, messaging, events, patterns, event-driven, coupling, eai, middleware, application integration, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns", "og:title": "Return Address - Enterprise Integration Patterns", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/ReturnAddress.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/ReturnAddressSolution.gif"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Example: Golang ChannelsNEW"}, {"uroven": 2, "text": "Integration Pattern Language"}], "markdown": "| | Return Address[Messaging Patterns](index.html) » [Message Construction](MessageConstructionIntro.html) | [Contents](toc.html)[⇐ Prev](RequestReply.html)[Next ⇒](CorrelationIdentifier.html) |\n| --- | --- | --- |\n\nMy application is using [*Messaging*](Messaging.html) to perform a [*Request-Reply*](RequestReply.html).\n\nHow does a replier know where to send the reply?\n\nThe request message should contain a *Return Address* that indicates where to send the reply message.\n\nThis way, the replier does not need to know where to send the reply, it can just ask the request. If different messages to the same replier require replies to different places, the replier knows where to send the reply for each request. This encapsulates the knowledge of what channels to use for requests and replies within the requestor so those decisions do not have to be hard coded within the replier. A *Return Address* is put in the header of a message because it’s not part of the data being transmitted.\n\n...\nRead the entire pattern in the book [Enterprise Integration Patterns](/books1.html)\n\n## Example: Golang Channels[NEW](/ramblings/eip1_examples_updated.html)\n\nIn Go, channels are first-class language constructs, making it easy to specify a channel as return address by including a field of type chan in the structure to be passed as the request:\n\n```\ntype Request struct {\n data []int\n resultChan chan int\n}\n```\n\nA function handling requests can now publish responses to the channel provided in the Request structure:\n\n```\nfunc handle(queue chan *Request) {\n for req := range queue {\n req.resultChan <- sum(req.data)\n }\n}\n```\n\nRequestors can now specify the desired return channel with the request as in the following example:\n\n```\nreqChannel := make(chan *Request, 10)\ngo handle(reqChannel)\n// Make two requests with separate return channels\nrequest1 := &Request{[]int{3, 4, 5}, make(chan int)}\nrequest2 := &Request{[]int{1, 2, 3}, make(chan int)}\nreqChannel <- request1\nreqChannel <- request2\n \n// Receive results on respective channels\nfmt.Printf(\"answer: %d %d\\n\", <-request1.resultChan, <-request2.resultChan)\n```\n\nFind the source for this code snippet on [Github](https://github.com/spac3lord/eip/tree/master/ReturnAddress)\n\n**Related patterns:**\n\n[*Correlation Identifier*](CorrelationIdentifier.html), [*Emerging Standards and Futures in Enterprise Integration*](Future.html), [*Message Channel*](MessageChannel.html), [*Messaging*](Messaging.html), [*Request-Reply*](RequestReply.html)\n\n---\n\n## Integration Pattern Language\n\n[Message Construct.](MessageConstructionIntro.html)\n\n[Message](Message.html)\n\n[Command Message](CommandMessage.html)\n\n[Document Message](DocumentMessage.html)\n\n[Event Message](EventMessage.html)\n\n[Request-Reply](RequestReply.html)\n\n[Return Address](ReturnAddress.html)\n\n[Correlation Identifier](CorrelationIdentifier.html)\n\n[Message Sequence](MessageSequence.html)\n\n[Message Expiration](MessageExpiration.html)\n\n[Format Indicator](FormatIndicator.html)\n\n[Message Routing](MessageRoutingIntro.html)\n\n[Pipes-and-Filters](PipesAndFilters.html)\n\n[Message Router](MessageRouter.html)\n\n[Content-based Router](ContentBasedRouter.html)\n\n[Message Filter](Filter.html)\n\n[Dynamic Router](DynamicRouter.html)\n\n[Recipient List](RecipientList.html)\n\n[Splitter](Sequencer.html)\n\n[Aggregator](Aggregator.html)\n\n[Resequencer](Resequencer.html)\n\n[Composed Msg. Processor](DistributionAggregate.html)\n\n[Scatter-Gather](BroadcastAggregate.html)\n\n[Routing Slip](RoutingTable.html)\n\n[Process Manager](ProcessManager.html)\n\n[Message Broker](MessageBroker.html)\n\n[Message\nTransformation](MessageTransformationIntro.html)\n\n[Message Translator](MessageTranslator.html)\n\n[Envelope Wrapper](EnvelopeWrapper.html)\n\n[Content Enricher](DataEnricher.html)\n\n[Content Filter](ContentFilter.html)\n\n[Claim Check](StoreInLibrary.html)\n\n[Normalizer](Normalizer.html)\n\n[Canonical Data Model](CanonicalDataModel.html)\n\n[Messaging Endpoints](MessagingEndpointsIntro.html)\n\n[Message Endpoint](MessageEndpoint.html)\n\n[Messaging Gateway](MessagingGateway.html)\n\n[Messaging Mapper](MessagingMapper.html)\n\n[Transactional Client](TransactionalClient.html)\n\n[Polling Consumer](PollingConsumer.html)\n\n[Event-driven Consumer](EventDrivenConsumer.html)\n\n[Competing Consumers](CompetingConsumers.html)\n\n[Message Dispatcher](MessageDispatcher.html)\n\n[Selective Consumer](MessageSelector.html)\n\n[Durable Subscriber](DurableSubscription.html)\n\n[Idempotent Receiver](IdempotentReceiver.html)\n\n[Service Activator](MessagingAdapter.html)\n\n[Messaging Channels](MessagingChannelsIntro.html)\n\n[Message Channel](MessageChannel.html)\n\n[Point-to-Point Channel](PointToPointChannel.html)\n\n[Publish-Subscr. Channel](PublishSubscribeChannel.html)\n\n[Datatype Channel](DatatypeChannel.html)\n\n[Invalid Message Channel](InvalidMessageChannel.html)\n\n[Dead Letter Channel](DeadLetterChannel.html)\n\n[Guaranteed Delivery](GuaranteedMessaging.html)\n\n[Channel Adapter](ChannelAdapter.html)\n\n[Messaging Bridge](MessagingBridge.html)\n\n[Message Bus](MessageBus.html)\n\n[Systems Mgmt.](SystemManagementIntro.html)\n\n[Control Bus](ControlBus.html)\n\n[Detour](Detour.html)\n\n[Wire Tap](WireTap.html)\n\n[Message History](MessageHistory.html)\n\n[Message Store](MessageStore.html)\n\n[Smart Proxy](SmartProxy.html)\n\n[Test Message](TestMessage.html)\n\n[Channel Purger](ChannelPurger.html)", "znaku_textu": 5180, "slov": 471, "odkazu": 110, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/ReturnAddress.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 06:02:15", "sha256": "207c823f2b8eec56be3e43e1882cd155542a5c3dccd6a3843fa1d35aeaab948a", "hloubka": 1, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/spac3lord/eip/tree/master/ReturnAddress", "http://creativecommons.org/licenses/by/4.0/", "https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "https://www.architectelevator.com/book", "https://www.cloudstrategybook.com/", "https://www.platformstrategybook.info/"]} {"url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/RoutingTable.html", "titulek": "Routing Slip - Enterprise Integration Patterns", "h1": "", "popis": "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?", "klicova_slova": "Routing Slip,integration, messaging, events, patterns, event-driven, coupling, eai, middleware, application integration, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns", "og:title": "Routing Slip - Enterprise Integration Patterns", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/RoutingTable.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/RoutingTableSimple.gif"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Integration Pattern Language"}], "markdown": "| | Routing Slip[Messaging Patterns](index.html) » [Message Routing](MessageRoutingIntro.html) | [Contents](toc.html)[⇐ Prev](BroadcastAggregate.html)[Next ⇒](ProcessManager.html) |\n| --- | --- | --- |\n\nMost of the routing patterns presented in this section route incoming messages to one or more destinations based on a set of rules. Sometimes, though, we need to route a message not just to a single component, but through a whole series of components. Let's assume, for example, that we use a [*Pipes and Filters*](PipesAndFilters.html) architecture to process incoming messages that have to undergo a sequence of processing steps and business rule validations. Since the nature of the validations varies widely and may depend on external systems (e.g., credit card validations), we implement each type of step as a separate filter. Each filter inspects the incoming message, and applies the business rule(s) to the message. If the message does not fulfill the conditions specified by the rules it is routed to an exception channel. The channels between the filters determine the sequence of validations that the message needs to undergo.\n\nNow let's assume, though, that the set of validations to perform against each message depends on the message type (for example, purchase order request do not need credit card validation or customers who send orders over a VPN may not require decryption and authentication). To accommodate this requirement we need to find a configuration that can route the message through a different sequence of filters depending on the type of the message.\n\nHow 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?\n\nAttach 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.\n\nWe insert a special component into the beginning of the process that computes the list of required steps for each message. It then attaches the list as a *Routing Slip* to the message and starts the process by routing the message to the first processing step. After successful processing, each processing step looks at the *Routing Slip* and passes the message to the next processing step specified in the routing table.\n\n...\nRead the entire pattern in the book [Enterprise Integration Patterns](/books1.html)\n\n**Related patterns:**\n\n[*Content-Based Router*](ContentBasedRouter.html), [*Message Filter*](Filter.html), [*Message Router*](MessageRouter.html), [*Pipes and Filters*](PipesAndFilters.html), [*Process Manager*](ProcessManager.html), [*Publish-Subscribe Channel*](PublishSubscribeChannel.html), [*Return Address*](ReturnAddress.html)\n\n---\n\n## Integration Pattern Language\n\n[Message Construct.](MessageConstructionIntro.html)\n\n[Message](Message.html)\n\n[Command Message](CommandMessage.html)\n\n[Document Message](DocumentMessage.html)\n\n[Event Message](EventMessage.html)\n\n[Request-Reply](RequestReply.html)\n\n[Return Address](ReturnAddress.html)\n\n[Correlation Identifier](CorrelationIdentifier.html)\n\n[Message Sequence](MessageSequence.html)\n\n[Message Expiration](MessageExpiration.html)\n\n[Format Indicator](FormatIndicator.html)\n\n[Message Routing](MessageRoutingIntro.html)\n\n[Pipes-and-Filters](PipesAndFilters.html)\n\n[Message Router](MessageRouter.html)\n\n[Content-based Router](ContentBasedRouter.html)\n\n[Message Filter](Filter.html)\n\n[Dynamic Router](DynamicRouter.html)\n\n[Recipient List](RecipientList.html)\n\n[Splitter](Sequencer.html)\n\n[Aggregator](Aggregator.html)\n\n[Resequencer](Resequencer.html)\n\n[Composed Msg. Processor](DistributionAggregate.html)\n\n[Scatter-Gather](BroadcastAggregate.html)\n\n[Routing Slip](RoutingTable.html)\n\n[Process Manager](ProcessManager.html)\n\n[Message Broker](MessageBroker.html)\n\n[Message\nTransformation](MessageTransformationIntro.html)\n\n[Message Translator](MessageTranslator.html)\n\n[Envelope Wrapper](EnvelopeWrapper.html)\n\n[Content Enricher](DataEnricher.html)\n\n[Content Filter](ContentFilter.html)\n\n[Claim Check](StoreInLibrary.html)\n\n[Normalizer](Normalizer.html)\n\n[Canonical Data Model](CanonicalDataModel.html)\n\n[Messaging Endpoints](MessagingEndpointsIntro.html)\n\n[Message Endpoint](MessageEndpoint.html)\n\n[Messaging Gateway](MessagingGateway.html)\n\n[Messaging Mapper](MessagingMapper.html)\n\n[Transactional Client](TransactionalClient.html)\n\n[Polling Consumer](PollingConsumer.html)\n\n[Event-driven Consumer](EventDrivenConsumer.html)\n\n[Competing Consumers](CompetingConsumers.html)\n\n[Message Dispatcher](MessageDispatcher.html)\n\n[Selective Consumer](MessageSelector.html)\n\n[Durable Subscriber](DurableSubscription.html)\n\n[Idempotent Receiver](IdempotentReceiver.html)\n\n[Service Activator](MessagingAdapter.html)\n\n[Messaging Channels](MessagingChannelsIntro.html)\n\n[Message Channel](MessageChannel.html)\n\n[Point-to-Point Channel](PointToPointChannel.html)\n\n[Publish-Subscr. Channel](PublishSubscribeChannel.html)\n\n[Datatype Channel](DatatypeChannel.html)\n\n[Invalid Message Channel](InvalidMessageChannel.html)\n\n[Dead Letter Channel](DeadLetterChannel.html)\n\n[Guaranteed Delivery](GuaranteedMessaging.html)\n\n[Channel Adapter](ChannelAdapter.html)\n\n[Messaging Bridge](MessagingBridge.html)\n\n[Message Bus](MessageBus.html)\n\n[Systems Mgmt.](SystemManagementIntro.html)\n\n[Control Bus](ControlBus.html)\n\n[Detour](Detour.html)\n\n[Wire Tap](WireTap.html)\n\n[Message History](MessageHistory.html)\n\n[Message Store](MessageStore.html)\n\n[Smart Proxy](SmartProxy.html)\n\n[Test Message](TestMessage.html)\n\n[Channel Purger](ChannelPurger.html)", "znaku_textu": 5536, "slov": 556, "odkazu": 108, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/RoutingTable.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 06:02:35", "sha256": "5e46ed0bbff9cbd9b7d56986a778230fcbffd4de408735b71e34b93b428844cd", "hloubka": 1, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://creativecommons.org/licenses/by/4.0/", "https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "https://www.architectelevator.com/book", "https://www.cloudstrategybook.com/", "https://www.platformstrategybook.info/"]} {"url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/Sequencer.html", "titulek": "Splitter - Enterprise Integration Patterns", "h1": "", "popis": "How can we process a message if it contains multiple elements, each of which may have to be processed in a different way?", "klicova_slova": "Splitter,integration, messaging, events, patterns, event-driven, coupling, eai, middleware, application integration, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns", "og:title": "Splitter - Enterprise Integration Patterns", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/Sequencer.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/Sequencer.gif"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Integration Pattern Language"}], "markdown": "Messaging Patterns\n\n[Messaging Patterns](index.html)\n\n- [Integration Styles](IntegrationStylesIntro.html)\n- [Messaging Systems](MessagingComponentsIntro.html)\n- [Messaging Channels](MessagingChannelsIntro.html)\n- [Message Construction](MessageConstructionIntro.html)\n- [Interlude: Simple Messaging](SimpleMessagingIntro.html)\n- [Message Routing](MessageRoutingIntro.html)\n- [Message Transformation](MessageTransformationIntro.html)\n- [Interlude: Composed Messaging](ComposedMessagingExample.html)\n- [Messaging Endpoints](MessagingEndpointsIntro.html)\n- [System Management](SystemManagementIntro.html)\n- Interlude: Systems Management Example\n- Integration Patterns in Practice\n- Concluding Remarks\n- Appendices\n\n| | Splitter[Messaging Patterns](index.html) » [Message Routing](MessageRoutingIntro.html) | [Contents](toc.html)[⇐ Prev](RecipientList.html)[Next ⇒](Aggregator.html) |\n| --- | --- | --- |\n\nMany messages passing through an integration solution consist of multiple elements. For example, an order placed by a customer consists of more than just a single line item. As outlined in the description of the [*Content-Based Router*](ContentBasedRouter.html), each line item may need to be handled by a different inventory system. Thus, we need to find an approach to process a complete order, but treat each order item contained in the order individually.\n\nHow can we process a message if it contains multiple elements, each of which may have to be processed in a different way?\n\nUse a *Splitter* to break out the composite message into a series of individual messages, each containing data related to one item.\n\nuse a *Splitter* that consumes one message containing a list of repeating elements, each of which can be processed individually. The *Splitter* publishes a one message for each single element (or a subset of elements) from the original message.\n\n...\nRead the entire pattern in the book [Enterprise Integration Patterns](/books1.html)\n\n**Related patterns:**\n\n[*Aggregator*](Aggregator.html), [*Content-Based Router*](ContentBasedRouter.html), [*Content Filter*](ContentFilter.html), [*Correlation Identifier*](CorrelationIdentifier.html), [*Envelope Wrapper*](EnvelopeWrapper.html), [*Event-Driven Consumer*](EventDrivenConsumer.html), [*Pipes and Filters*](PipesAndFilters.html), [*Publish-Subscribe Channel*](PublishSubscribeChannel.html)\n\n---\n\n## Integration Pattern Language\n\n[Message Construct.](MessageConstructionIntro.html)\n\n[Message](Message.html)\n\n[Command Message](CommandMessage.html)\n\n[Document Message](DocumentMessage.html)\n\n[Event Message](EventMessage.html)\n\n[Request-Reply](RequestReply.html)\n\n[Return Address](ReturnAddress.html)\n\n[Correlation Identifier](CorrelationIdentifier.html)\n\n[Message Sequence](MessageSequence.html)\n\n[Message Expiration](MessageExpiration.html)\n\n[Format Indicator](FormatIndicator.html)\n\n[Message Routing](MessageRoutingIntro.html)\n\n[Pipes-and-Filters](PipesAndFilters.html)\n\n[Message Router](MessageRouter.html)\n\n[Content-based Router](ContentBasedRouter.html)\n\n[Message Filter](Filter.html)\n\n[Dynamic Router](DynamicRouter.html)\n\n[Recipient List](RecipientList.html)\n\n[Splitter](Sequencer.html)\n\n[Aggregator](Aggregator.html)\n\n[Resequencer](Resequencer.html)\n\n[Composed Msg. Processor](DistributionAggregate.html)\n\n[Scatter-Gather](BroadcastAggregate.html)\n\n[Routing Slip](RoutingTable.html)\n\n[Process Manager](ProcessManager.html)\n\n[Message Broker](MessageBroker.html)\n\n[Message\nTransformation](MessageTransformationIntro.html)\n\n[Message Translator](MessageTranslator.html)\n\n[Envelope Wrapper](EnvelopeWrapper.html)\n\n[Content Enricher](DataEnricher.html)\n\n[Content Filter](ContentFilter.html)\n\n[Claim Check](StoreInLibrary.html)\n\n[Normalizer](Normalizer.html)\n\n[Canonical Data Model](CanonicalDataModel.html)\n\n[Messaging Endpoints](MessagingEndpointsIntro.html)\n\n[Message Endpoint](MessageEndpoint.html)\n\n[Messaging Gateway](MessagingGateway.html)\n\n[Messaging Mapper](MessagingMapper.html)\n\n[Transactional Client](TransactionalClient.html)\n\n[Polling Consumer](PollingConsumer.html)\n\n[Event-driven Consumer](EventDrivenConsumer.html)\n\n[Competing Consumers](CompetingConsumers.html)\n\n[Message Dispatcher](MessageDispatcher.html)\n\n[Selective Consumer](MessageSelector.html)\n\n[Durable Subscriber](DurableSubscription.html)\n\n[Idempotent Receiver](IdempotentReceiver.html)\n\n[Service Activator](MessagingAdapter.html)\n\n[Messaging Channels](MessagingChannelsIntro.html)\n\n[Message Channel](MessageChannel.html)\n\n[Point-to-Point Channel](PointToPointChannel.html)\n\n[Publish-Subscr. Channel](PublishSubscribeChannel.html)\n\n[Datatype Channel](DatatypeChannel.html)\n\n[Invalid Message Channel](InvalidMessageChannel.html)\n\n[Dead Letter Channel](DeadLetterChannel.html)\n\n[Guaranteed Delivery](GuaranteedMessaging.html)\n\n[Channel Adapter](ChannelAdapter.html)\n\n[Messaging Bridge](MessagingBridge.html)\n\n[Message Bus](MessageBus.html)\n\n[Systems Mgmt.](SystemManagementIntro.html)\n\n[Control Bus](ControlBus.html)\n\n[Detour](Detour.html)\n\n[Wire Tap](WireTap.html)\n\n[Message History](MessageHistory.html)\n\n[Message Store](MessageStore.html)\n\n[Smart Proxy](SmartProxy.html)\n\n[Test Message](TestMessage.html)\n\n[Channel Purger](ChannelPurger.html)\n\n- » [Read the latest in My Blog](/ramblings)\n- » [Get more insights from My Articles](/articles.html)\n- » [See me live in my Upcoming Talks](/talks)\n\nYou can reuse the following elements under the [Creative Commons Attribution](http://creativecommons.org/licenses/by/4.0/) license: pattern icon, pattern name, problem and solution statements (in bold), and the sketch. Other portions are protected by copyright.\n\n[Enterprise Integration Patterns](https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20)\nThe de-facto language for designing asynchronous, distributed systems. Over 100,000 copies sold.\n\n[The Software Architect Elevator](https://www.architectelevator.com/book)\n\n Rethink the role of architects as a connecting element across organizational layers. Acquire the technical, communication, and organizational skills to succeed in this new role.\n\n[Cloud Strategy](https://www.cloudstrategybook.com)\n\n Make your cloud migration a success by translating high-level goals into conscious decisions with well-understood trade-offs.\n\n[Platform Strategy](https://www.platformstrategybook.info)\n\n Platforms can boost innovation through harmonization, but they aren't easy to build. Learn from over a decade of designing and rolling out IT platforms.", "znaku_textu": 6309, "slov": 539, "odkazu": 108, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/Sequencer.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 06:02:30", "sha256": "98c9d9340b6d8266d1f65a5d26adc075380da9261bb1d3b3d06ea5f9079cd9ef", "hloubka": 1, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://creativecommons.org/licenses/by/4.0/", "https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "https://www.architectelevator.com/book", "https://www.cloudstrategybook.com/", "https://www.platformstrategybook.info/"]} {"url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/SharedDataBaseIntegration.html", "titulek": "Shared Database - Enterprise Integration Patterns", "h1": "", "popis": "How can I integrate multiple applications so that they work together and can exchange information?", "klicova_slova": "Shared Database,integration, messaging, events, patterns, event-driven, coupling, eai, middleware, application integration, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns", "og:title": "Shared Database - Enterprise Integration Patterns", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/SharedDataBaseIntegration.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/SharedDatabaseIntegration.gif"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Integration Pattern Language"}], "markdown": "| | Shared Database[Messaging Patterns](index.html) » [Integration Styles](IntegrationStylesIntro.html) | [Contents](toc.html)[⇐ Prev](FileTransferIntegration.html)[Next ⇒](EncapsulatedSynchronousIntegration.html) |\n| --- | --- | --- |\n\nAn enterprise has multiple applications that are being built independently, with different languages and platforms. The enterprise needs information to be shared rapidly and consistently.\n\nHow can I integrate multiple applications so that they work together and can exchange information?\n\nIntegrate applications by having them store their data in a single *Shared Database*.\n\nIf a family of integrated applications all rely on the same\ndatabase, then you can be pretty sure that they are always consistent\nall of the time. If you do get simultaneous updates to a single piece\nof data from different sources, then you have transaction management\nsystems that handle that about as gracefully as it ever can be\nmanaged. Since the time between updates is so small, any errors are\nmuch easier to find and fix.\n\nOne of the biggest difficulties with *Shared Database* is coming up with a\nsuitable design for the shared database. Coming up with a unified\nschema that can meet the needs of multiple applications is a very difficult\nexercise, often resulting in a schema that application programmers\nfind difficult to work with.\n\nIf the technical difficulties of designing a unified schema\naren't enough, there are also severe political difficulties. If a\ncritical application is likely to suffer delays in order to work with\na unified schema, then often there is irresistable pressure to\nseparate. Human conflicts between departments often exacerbate this\nproblem.\n\n...\nRead the entire pattern in the book [Enterprise Integration Patterns](/books1.html)\n\n**Related patterns:**\n\n[*Remote Procedure Invocation*](EncapsulatedSynchronousIntegration.html), [*File Transfer*](FileTransferIntegration.html), [*Messaging*](Messaging.html)\n\n---\n\n## Integration Pattern Language\n\n[Message Construct.](MessageConstructionIntro.html)\n\n[Message](Message.html)\n\n[Command Message](CommandMessage.html)\n\n[Document Message](DocumentMessage.html)\n\n[Event Message](EventMessage.html)\n\n[Request-Reply](RequestReply.html)\n\n[Return Address](ReturnAddress.html)\n\n[Correlation Identifier](CorrelationIdentifier.html)\n\n[Message Sequence](MessageSequence.html)\n\n[Message Expiration](MessageExpiration.html)\n\n[Format Indicator](FormatIndicator.html)\n\n[Message Routing](MessageRoutingIntro.html)\n\n[Pipes-and-Filters](PipesAndFilters.html)\n\n[Message Router](MessageRouter.html)\n\n[Content-based Router](ContentBasedRouter.html)\n\n[Message Filter](Filter.html)\n\n[Dynamic Router](DynamicRouter.html)\n\n[Recipient List](RecipientList.html)\n\n[Splitter](Sequencer.html)\n\n[Aggregator](Aggregator.html)\n\n[Resequencer](Resequencer.html)\n\n[Composed Msg. Processor](DistributionAggregate.html)\n\n[Scatter-Gather](BroadcastAggregate.html)\n\n[Routing Slip](RoutingTable.html)\n\n[Process Manager](ProcessManager.html)\n\n[Message Broker](MessageBroker.html)\n\n[Message\nTransformation](MessageTransformationIntro.html)\n\n[Message Translator](MessageTranslator.html)\n\n[Envelope Wrapper](EnvelopeWrapper.html)\n\n[Content Enricher](DataEnricher.html)\n\n[Content Filter](ContentFilter.html)\n\n[Claim Check](StoreInLibrary.html)\n\n[Normalizer](Normalizer.html)\n\n[Canonical Data Model](CanonicalDataModel.html)\n\n[Messaging Endpoints](MessagingEndpointsIntro.html)\n\n[Message Endpoint](MessageEndpoint.html)\n\n[Messaging Gateway](MessagingGateway.html)\n\n[Messaging Mapper](MessagingMapper.html)\n\n[Transactional Client](TransactionalClient.html)\n\n[Polling Consumer](PollingConsumer.html)\n\n[Event-driven Consumer](EventDrivenConsumer.html)\n\n[Competing Consumers](CompetingConsumers.html)\n\n[Message Dispatcher](MessageDispatcher.html)\n\n[Selective Consumer](MessageSelector.html)\n\n[Durable Subscriber](DurableSubscription.html)\n\n[Idempotent Receiver](IdempotentReceiver.html)\n\n[Service Activator](MessagingAdapter.html)\n\n[Messaging Channels](MessagingChannelsIntro.html)\n\n[Message Channel](MessageChannel.html)\n\n[Point-to-Point Channel](PointToPointChannel.html)\n\n[Publish-Subscr. Channel](PublishSubscribeChannel.html)\n\n[Datatype Channel](DatatypeChannel.html)\n\n[Invalid Message Channel](InvalidMessageChannel.html)\n\n[Dead Letter Channel](DeadLetterChannel.html)\n\n[Guaranteed Delivery](GuaranteedMessaging.html)\n\n[Channel Adapter](ChannelAdapter.html)\n\n[Messaging Bridge](MessagingBridge.html)\n\n[Message Bus](MessageBus.html)\n\n[Systems Mgmt.](SystemManagementIntro.html)\n\n[Control Bus](ControlBus.html)\n\n[Detour](Detour.html)\n\n[Wire Tap](WireTap.html)\n\n[Message History](MessageHistory.html)\n\n[Message Store](MessageStore.html)\n\n[Smart Proxy](SmartProxy.html)\n\n[Test Message](TestMessage.html)\n\n[Channel Purger](ChannelPurger.html)", "znaku_textu": 4678, "slov": 407, "odkazu": 108, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/patterns/messaging/SharedDataBaseIntegration.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 06:01:51", "sha256": "8b224e20dd68b00555c7184d9b4d12ea46f5f941d50bc43628f4ba2bbd16d240", "hloubka": 1, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://creativecommons.org/licenses/by/4.0/", "https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "https://www.architectelevator.com/book", "https://www.cloudstrategybook.com/", "https://www.platformstrategybook.info/"]} {"url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/SimpleMessagingIntro.html", "titulek": "Introduction to Simple Messaging Examples - Enterprise Integration Patterns", "h1": "", "popis": "So far, we’ve introduced a lot of patterns. We’ve seen the basic Messaging Components, such as Message Channel, Message, and Message Endpoint. We’ve also seen detailed patterns for Messaging Channels and for Message Construction.", "klicova_slova": "Introduction to Simple Messaging Examples,integration, messaging, events, patterns, event-driven, coupling, eai, middleware, application integration, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns", "og:title": "Introduction to Simple Messaging Examples - Enterprise Integration Patterns", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/SimpleMessagingIntro.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/eip1_patterns_wide.png"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Request/Reply Example"}, {"uroven": 2, "text": "Publish/Subscribe Example"}, {"uroven": 2, "text": "Integration Pattern Language"}], "markdown": "| | Introduction to Simple Messaging Examples[Messaging Patterns](index.html) » [Interlude: Simple Messaging](SimpleMessagingIntro.html) | [Contents](toc.html)[⇐ Prev](FormatIndicator.html)[Next ⇒](RequestReplyJmsExample.html) |\n| --- | --- | --- |\n\nSo far, we’ve introduced a lot of patterns. We’ve seen the basic Messaging Components, such as [*Message Channel*](MessageChannel.html), [*Message*](Message.html), and [*Message Endpoint*](MessageEndpoint.html). We’ve also seen detailed patterns for Messaging Channels and for Message Construction.\n\nSo how do all of these patterns fit together? How does a developer integrate applications using these patterns? What does the code look like, and how does it work?\n\nThis is the chapter where we really get to see the code. We have two examples:\n\n- **Request/Reply** — Demonstrates (in Java and .NET/C#) how to use messaging to send a request message and respond with a reply message.\n- **Publish/Subscribe** — Explores how to use a JMS Topic to implement the Observer pattern.\n\nThese two simple examples should get you started on how add messaging to your own applications.\n\n## Request/Reply Example\n\nThis is a simple but powerful example, transmitting a request and transmitting back a reply. It consists of two main classes:\n\n- **Requestor** — The object that sends the request message and expects to receive the reply message.\n- **Replier** — The object that receives the request message and sends a reply message in response.\n\nThese two simple classes sending simple messages illustrate a number of the patterns:\n\n- **[*Message Channel*](MessageChannel.html)** and **[*Point-to-Point Channel*](PointToPointChannel.html)** — One channel for transmitting the requests, another for transmitting the replies.\n- **[*Document Message*](DocumentMessage.html)** — The default type of message, used as both the request and the reply.\n- **[*Request-Reply*](RequestReply.html)** — A pair of messages sent over a pair of channels, allowing the two applications to have a two-way conversation.\n- **[*Return Address*](ReturnAddress.html)** — The channel to send the response on.\n- **[*Correlation Identifier*](CorrelationIdentifier.html)** — The ID of the request that caused this response.\n- **[*Datatype Channel*](DatatypeChannel.html)** — All of the messages on each channel should be of the same type.\n- **[*Invalid Message Channel*](InvalidMessageChannel.html)** — What happens to messages that aren’t of the right type.\n\nThe example code also demostrates a couple of patterns from the Messaging Endpoints chapter later in the book:\n\n- **[*Polling Consumer*](PollingConsumer.html)** — How the requestor consumes reply messages.\n- **[*Event-Driven Consumer*](EventDrivenConsumer.html)** — How the replier consumes request messages.\n\nWhile this book is technology-, product-, and language-neutral, code cannot be. So we’ve choosen two messaging programming platforms to implement this example:\n\n- The JMS API in Java J2EE\n- The MSMQ API in Microsoft .NET using C#\n\nThe same request/reply example is implemented in both platforms. So choose your favorite platform as an example of how messaging works. If you’d like to see how messaging works on the other platform, even if you don’t know how to write code for that platform, you should be able to figure out how that code works by comparing it to the code in the language you already know.\n\n## Publish/Subscribe Example\n\nThis example explores how to implement the Observer pattern using a [*Publish-Subscribe Channel*](PublishSubscribeChannel.html). It considers distribution and threading issues and discusses how messaging greatly simplifies these issues. The example shows how to implement both the push and pull models of notification and compares the consequences of each. It also explores how to design an adaquate set of channels needed for a complex enterprise with numerous subjects notifing numerous observers.\n\nThe discussion and sample code will illustrate several patterns:\n\n- **[*Publish-Subscribe Channel*](PublishSubscribeChannel.html)** — The channel that provides publish/subscribe notification.\n- **[*Event Message*](EventMessage.html)** — The message type used to send notifications.\n- **[*Request-Reply*](RequestReply.html)** — The technique used as part of the pull model for an observer to request state from the subject.\n- **[*Command Message*](CommandMessage.html)** — The message type used by an observer to request state from the subject.\n- **[*Document Message*](DocumentMessage.html)** — The message type used by a subject to send its state to an observer.\n- **[*Return Address*](ReturnAddress.html)** — Tells the subject how to send the state to the observer.\n- **[*Datatype Channel*](DatatypeChannel.html)** — The main guideline for whether two unrelated subjects can use the same channel to update the same group of observers.\n\nThe example code also demostrates a couple of patterns from the Messaging Endpoints chapter later in the book:\n\n- **[*Messaging Gateway*](MessagingGateway.html)** — How the subject and observer encapsulate the messaging code so that they are not messaging-specific.\n- **[*Event-Driven Consumer*](EventDrivenConsumer.html)** — How the observers consume notification messages.\n- **[*Durable Subscriber*](DurableSubscription.html)** — An observer that does not want to miss notifications, even if the observer is temporarily disconnected when the notification is sent.\n\nThis example is implemented in Java using JMS because JMS supports [*Publish-Subscribe Channel*](PublishSubscribeChannel.html) as an explicit feature of the API through its Topic interface. .NET does not provide a similar level of support for using the publish/subscribe semantics in MSMQ; when it does, the techniques in the JMS example should be readily applicable to .NET programs as well.\n\n## Integration Pattern Language\n\n[Message Construct.](MessageConstructionIntro.html)\n\n[Message](Message.html)\n\n[Command Message](CommandMessage.html)\n\n[Document Message](DocumentMessage.html)\n\n[Event Message](EventMessage.html)\n\n[Request-Reply](RequestReply.html)\n\n[Return Address](ReturnAddress.html)\n\n[Correlation Identifier](CorrelationIdentifier.html)\n\n[Message Sequence](MessageSequence.html)\n\n[Message Expiration](MessageExpiration.html)\n\n[Format Indicator](FormatIndicator.html)\n\n[Message Routing](MessageRoutingIntro.html)\n\n[Pipes-and-Filters](PipesAndFilters.html)\n\n[Message Router](MessageRouter.html)\n\n[Content-based Router](ContentBasedRouter.html)\n\n[Message Filter](Filter.html)\n\n[Dynamic Router](DynamicRouter.html)\n\n[Recipient List](RecipientList.html)\n\n[Splitter](Sequencer.html)\n\n[Aggregator](Aggregator.html)\n\n[Resequencer](Resequencer.html)\n\n[Composed Msg. Processor](DistributionAggregate.html)\n\n[Scatter-Gather](BroadcastAggregate.html)\n\n[Routing Slip](RoutingTable.html)\n\n[Process Manager](ProcessManager.html)\n\n[Message Broker](MessageBroker.html)\n\n[Message\nTransformation](MessageTransformationIntro.html)\n\n[Message Translator](MessageTranslator.html)\n\n[Envelope Wrapper](EnvelopeWrapper.html)\n\n[Content Enricher](DataEnricher.html)\n\n[Content Filter](ContentFilter.html)\n\n[Claim Check](StoreInLibrary.html)\n\n[Normalizer](Normalizer.html)\n\n[Canonical Data Model](CanonicalDataModel.html)\n\n[Messaging Endpoints](MessagingEndpointsIntro.html)\n\n[Message Endpoint](MessageEndpoint.html)\n\n[Messaging Gateway](MessagingGateway.html)\n\n[Messaging Mapper](MessagingMapper.html)\n\n[Transactional Client](TransactionalClient.html)\n\n[Polling Consumer](PollingConsumer.html)\n\n[Event-driven Consumer](EventDrivenConsumer.html)\n\n[Competing Consumers](CompetingConsumers.html)\n\n[Message Dispatcher](MessageDispatcher.html)\n\n[Selective Consumer](MessageSelector.html)\n\n[Durable Subscriber](DurableSubscription.html)\n\n[Idempotent Receiver](IdempotentReceiver.html)\n\n[Service Activator](MessagingAdapter.html)\n\n[Messaging Channels](MessagingChannelsIntro.html)\n\n[Message Channel](MessageChannel.html)\n\n[Point-to-Point Channel](PointToPointChannel.html)\n\n[Publish-Subscr. Channel](PublishSubscribeChannel.html)\n\n[Datatype Channel](DatatypeChannel.html)\n\n[Invalid Message Channel](InvalidMessageChannel.html)\n\n[Dead Letter Channel](DeadLetterChannel.html)\n\n[Guaranteed Delivery](GuaranteedMessaging.html)\n\n[Channel Adapter](ChannelAdapter.html)\n\n[Messaging Bridge](MessagingBridge.html)\n\n[Message Bus](MessageBus.html)\n\n[Systems Mgmt.](SystemManagementIntro.html)\n\n[Control Bus](ControlBus.html)\n\n[Detour](Detour.html)\n\n[Wire Tap](WireTap.html)\n\n[Message History](MessageHistory.html)\n\n[Message Store](MessageStore.html)\n\n[Smart Proxy](SmartProxy.html)\n\n[Test Message](TestMessage.html)\n\n[Channel Purger](ChannelPurger.html)", "znaku_textu": 8396, "slov": 980, "odkazu": 107, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/patterns/messaging/SimpleMessagingIntro.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 06:02:21", "sha256": "ee206e8247163263a8a8e9c5a6c8b53c8f94d712fb1ab15b62e1463ff6c1a7ea", "hloubka": 1, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "https://www.architectelevator.com/book", "https://www.cloudstrategybook.com/", "https://www.platformstrategybook.info/"]} {"url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/SmartProxy.html", "titulek": "Smart Proxy - Enterprise Integration Patterns", "h1": "", "popis": "How can you track messages on a service that publishes reply messages to the Return Address specified by the requestor?", "klicova_slova": "Smart Proxy,integration, messaging, events, patterns, event-driven, coupling, eai, middleware, application integration, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns", "og:title": "Smart Proxy - Enterprise Integration Patterns", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/SmartProxy.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/SmartProxy.gif"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Integration Pattern Language"}], "markdown": "Messaging Patterns\n\n[Messaging Patterns](index.html)\n\n- [Integration Styles](IntegrationStylesIntro.html)\n- [Messaging Systems](MessagingComponentsIntro.html)\n- [Messaging Channels](MessagingChannelsIntro.html)\n- [Message Construction](MessageConstructionIntro.html)\n- [Interlude: Simple Messaging](SimpleMessagingIntro.html)\n- [Message Routing](MessageRoutingIntro.html)\n- [Message Transformation](MessageTransformationIntro.html)\n- [Interlude: Composed Messaging](ComposedMessagingExample.html)\n- [Messaging Endpoints](MessagingEndpointsIntro.html)\n- [System Management](SystemManagementIntro.html)\n- Interlude: Systems Management Example\n- Integration Patterns in Practice\n- Concluding Remarks\n- Appendices\n\n| | Smart Proxy[Messaging Patterns](index.html) » [System Management](SystemManagementIntro.html) | [Contents](toc.html)[⇐ Prev](MessageStore.html)[Next ⇒](TestMessage.html) |\n| --- | --- | --- |\n\nA pair of [*Wire Tap*](WireTap.html)s can be used to track messages that flow through a component. However, this approach assumes that the component publishes messages to a fixed output channel. However, many service-style components publish reply messages to the channel specified by the [*Return Address*](ReturnAddress.html) included in the request message.\n\nHow can you track messages on a service that publishes reply messages to the Return Address specified by the requestor?\n\nUse a *Smart Proxy* to store the Return Address supplied by the original requestor and replace it with the address of the *Smart Proxy*. When the service sends the reply message route it to the original Return Address.\n\nThe *Smart Proxy* intercepts messages sent on the request channel to the [*Request-Reply*](RequestReply.html) service. For each incoming message, the *Smart Proxy* stores the [*Return Address*](ReturnAddress.html) specified by the original sender. It then replaces the [*Return Address*](ReturnAddress.html) in the message with the channel the reply channel that the *Smart Proxy* is listening on. When a reply message comes in on that channel, the *Smart Proxy* retrieves the stored [*Return Address*](ReturnAddress.html) and uses a [*Message Router*](MessageRouter.html) to forward the unmodified reply address to that channel.\n\n...\nRead the entire pattern in the book [Enterprise Integration Patterns](/books1.html)\n\n**Related patterns:**\n\n[*Correlation Identifier*](CorrelationIdentifier.html), [*Message Router*](MessageRouter.html), [*Request-Reply*](RequestReply.html), [*Return Address*](ReturnAddress.html), [*Wire Tap*](WireTap.html)\n\n---\n\n## Integration Pattern Language\n\n[Message Construct.](MessageConstructionIntro.html)\n\n[Message](Message.html)\n\n[Command Message](CommandMessage.html)\n\n[Document Message](DocumentMessage.html)\n\n[Event Message](EventMessage.html)\n\n[Request-Reply](RequestReply.html)\n\n[Return Address](ReturnAddress.html)\n\n[Correlation Identifier](CorrelationIdentifier.html)\n\n[Message Sequence](MessageSequence.html)\n\n[Message Expiration](MessageExpiration.html)\n\n[Format Indicator](FormatIndicator.html)\n\n[Message Routing](MessageRoutingIntro.html)\n\n[Pipes-and-Filters](PipesAndFilters.html)\n\n[Message Router](MessageRouter.html)\n\n[Content-based Router](ContentBasedRouter.html)\n\n[Message Filter](Filter.html)\n\n[Dynamic Router](DynamicRouter.html)\n\n[Recipient List](RecipientList.html)\n\n[Splitter](Sequencer.html)\n\n[Aggregator](Aggregator.html)\n\n[Resequencer](Resequencer.html)\n\n[Composed Msg. Processor](DistributionAggregate.html)\n\n[Scatter-Gather](BroadcastAggregate.html)\n\n[Routing Slip](RoutingTable.html)\n\n[Process Manager](ProcessManager.html)\n\n[Message Broker](MessageBroker.html)\n\n[Message\nTransformation](MessageTransformationIntro.html)\n\n[Message Translator](MessageTranslator.html)\n\n[Envelope Wrapper](EnvelopeWrapper.html)\n\n[Content Enricher](DataEnricher.html)\n\n[Content Filter](ContentFilter.html)\n\n[Claim Check](StoreInLibrary.html)\n\n[Normalizer](Normalizer.html)\n\n[Canonical Data Model](CanonicalDataModel.html)\n\n[Messaging Endpoints](MessagingEndpointsIntro.html)\n\n[Message Endpoint](MessageEndpoint.html)\n\n[Messaging Gateway](MessagingGateway.html)\n\n[Messaging Mapper](MessagingMapper.html)\n\n[Transactional Client](TransactionalClient.html)\n\n[Polling Consumer](PollingConsumer.html)\n\n[Event-driven Consumer](EventDrivenConsumer.html)\n\n[Competing Consumers](CompetingConsumers.html)\n\n[Message Dispatcher](MessageDispatcher.html)\n\n[Selective Consumer](MessageSelector.html)\n\n[Durable Subscriber](DurableSubscription.html)\n\n[Idempotent Receiver](IdempotentReceiver.html)\n\n[Service Activator](MessagingAdapter.html)\n\n[Messaging Channels](MessagingChannelsIntro.html)\n\n[Message Channel](MessageChannel.html)\n\n[Point-to-Point Channel](PointToPointChannel.html)\n\n[Publish-Subscr. Channel](PublishSubscribeChannel.html)\n\n[Datatype Channel](DatatypeChannel.html)\n\n[Invalid Message Channel](InvalidMessageChannel.html)\n\n[Dead Letter Channel](DeadLetterChannel.html)\n\n[Guaranteed Delivery](GuaranteedMessaging.html)\n\n[Channel Adapter](ChannelAdapter.html)\n\n[Messaging Bridge](MessagingBridge.html)\n\n[Message Bus](MessageBus.html)\n\n[Systems Mgmt.](SystemManagementIntro.html)\n\n[Control Bus](ControlBus.html)\n\n[Detour](Detour.html)\n\n[Wire Tap](WireTap.html)\n\n[Message History](MessageHistory.html)\n\n[Message Store](MessageStore.html)\n\n[Smart Proxy](SmartProxy.html)\n\n[Test Message](TestMessage.html)\n\n[Channel Purger](ChannelPurger.html)\n\n- » [Read the latest in My Blog](/ramblings)\n- » [Get more insights from My Articles](/articles.html)\n- » [See me live in my Upcoming Talks](/talks)\n\nYou can reuse the following elements under the [Creative Commons Attribution](http://creativecommons.org/licenses/by/4.0/) license: pattern icon, pattern name, problem and solution statements (in bold), and the sketch. Other portions are protected by copyright.\n\n[Enterprise Integration Patterns](https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20)\nThe de-facto language for designing asynchronous, distributed systems. Over 100,000 copies sold.\n\n[The Software Architect Elevator](https://www.architectelevator.com/book)\n\n Rethink the role of architects as a connecting element across organizational layers. Acquire the technical, communication, and organizational skills to succeed in this new role.\n\n[Cloud Strategy](https://www.cloudstrategybook.com)\n\n Make your cloud migration a success by translating high-level goals into conscious decisions with well-understood trade-offs.\n\n[Platform Strategy](https://www.platformstrategybook.info)\n\n Platforms can boost innovation through harmonization, but they aren't easy to build. Learn from over a decade of designing and rolling out IT platforms.", "znaku_textu": 6501, "slov": 574, "odkazu": 108, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/SmartProxy.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 06:03:08", "sha256": "e2d10e7a0172ac86724152a738d8c952e5984f306aac27aef52096be7048b1e3", "hloubka": 1, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://creativecommons.org/licenses/by/4.0/", "https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "https://www.architectelevator.com/book", "https://www.cloudstrategybook.com/", "https://www.platformstrategybook.info/"]} {"url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/StoreInLibrary.html", "titulek": "Claim Check - Enterprise Integration Patterns", "h1": "", "popis": "How can we reduce the data volume of message sent across the system without sacrificing information content?", "klicova_slova": "Claim Check,integration, messaging, events, patterns, event-driven, coupling, eai, middleware, application integration, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns", "og:title": "Claim Check - Enterprise Integration Patterns", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/StoreInLibrary.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/StoreInLibrary.gif"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Integration Pattern Language"}], "markdown": "| | Claim Check[Messaging Patterns](index.html) » [Message Transformation](MessageTransformationIntro.html) | [Contents](toc.html)[⇐ Prev](ContentFilter.html)[Next ⇒](Normalizer.html) |\n| --- | --- | --- |\n\nThe [*Content Enricher*](DataEnricher.html) tells us how we can deal with situations where our message is missing required data items. The [*Content Filter*](ContentFilter.html) lets us remove uninteresting data items from a message. Sometimes, we want to remove fields only temporarily. For example, a message may contain a set of data items that may be needed later in the message flow, but that are not necessary for all intermediate processing steps. We may not want to carry all this information through each processing step because it may cause performance degradation and makes debugging harder because we carry so much extra data.\n\nHow can we reduce the data volume of message sent across the system without sacrificing information content?\n\nStore message data in a persistent store and pass a *Claim Check* to subsequent components. These components can use the *Claim Check* to retrieve the stored information.\n\nThe *Claim Check* pattern consists of the following steps:\n\n1. A message with data arrives.\n2. The \"Check Luggage\" component generates a unique key for the information. This key will be used later as the *Claim Check*\n3. The Check Luggage component extracts the data from the message and stores it in a persistent store, e.g. a file or a database. It associates the stored data with the key .\n4. It removes the persisted data from the message and adds the *Claim Check* .\n5. Another component can use a [*Content Enricher*](DataEnricher.html) to retrieve the data based on the *Claim Check* .\n\nThis process is analogous to a luggage check at the airport. If you do not want to carry all your luggage with you, you simply check it with the airline counter. In return you receive a sticker on your ticket that has a reference number that uniquely identifies each piece of luggage you checked. Once you reach your final destination, you can retrieve your luggage.\n\n...\nRead the entire pattern in the book [Enterprise Integration Patterns](/books1.html)\n\n**Related patterns:**\n\n[*Content Filter*](ContentFilter.html), [*Content Enricher*](DataEnricher.html), [*Process Manager*](ProcessManager.html)\n\n---\n\n## Integration Pattern Language\n\n[Message Construct.](MessageConstructionIntro.html)\n\n[Message](Message.html)\n\n[Command Message](CommandMessage.html)\n\n[Document Message](DocumentMessage.html)\n\n[Event Message](EventMessage.html)\n\n[Request-Reply](RequestReply.html)\n\n[Return Address](ReturnAddress.html)\n\n[Correlation Identifier](CorrelationIdentifier.html)\n\n[Message Sequence](MessageSequence.html)\n\n[Message Expiration](MessageExpiration.html)\n\n[Format Indicator](FormatIndicator.html)\n\n[Message Routing](MessageRoutingIntro.html)\n\n[Pipes-and-Filters](PipesAndFilters.html)\n\n[Message Router](MessageRouter.html)\n\n[Content-based Router](ContentBasedRouter.html)\n\n[Message Filter](Filter.html)\n\n[Dynamic Router](DynamicRouter.html)\n\n[Recipient List](RecipientList.html)\n\n[Splitter](Sequencer.html)\n\n[Aggregator](Aggregator.html)\n\n[Resequencer](Resequencer.html)\n\n[Composed Msg. Processor](DistributionAggregate.html)\n\n[Scatter-Gather](BroadcastAggregate.html)\n\n[Routing Slip](RoutingTable.html)\n\n[Process Manager](ProcessManager.html)\n\n[Message Broker](MessageBroker.html)\n\n[Message\nTransformation](MessageTransformationIntro.html)\n\n[Message Translator](MessageTranslator.html)\n\n[Envelope Wrapper](EnvelopeWrapper.html)\n\n[Content Enricher](DataEnricher.html)\n\n[Content Filter](ContentFilter.html)\n\n[Claim Check](StoreInLibrary.html)\n\n[Normalizer](Normalizer.html)\n\n[Canonical Data Model](CanonicalDataModel.html)\n\n[Messaging Endpoints](MessagingEndpointsIntro.html)\n\n[Message Endpoint](MessageEndpoint.html)\n\n[Messaging Gateway](MessagingGateway.html)\n\n[Messaging Mapper](MessagingMapper.html)\n\n[Transactional Client](TransactionalClient.html)\n\n[Polling Consumer](PollingConsumer.html)\n\n[Event-driven Consumer](EventDrivenConsumer.html)\n\n[Competing Consumers](CompetingConsumers.html)\n\n[Message Dispatcher](MessageDispatcher.html)\n\n[Selective Consumer](MessageSelector.html)\n\n[Durable Subscriber](DurableSubscription.html)\n\n[Idempotent Receiver](IdempotentReceiver.html)\n\n[Service Activator](MessagingAdapter.html)\n\n[Messaging Channels](MessagingChannelsIntro.html)\n\n[Message Channel](MessageChannel.html)\n\n[Point-to-Point Channel](PointToPointChannel.html)\n\n[Publish-Subscr. Channel](PublishSubscribeChannel.html)\n\n[Datatype Channel](DatatypeChannel.html)\n\n[Invalid Message Channel](InvalidMessageChannel.html)\n\n[Dead Letter Channel](DeadLetterChannel.html)\n\n[Guaranteed Delivery](GuaranteedMessaging.html)\n\n[Channel Adapter](ChannelAdapter.html)\n\n[Messaging Bridge](MessagingBridge.html)\n\n[Message Bus](MessageBus.html)\n\n[Systems Mgmt.](SystemManagementIntro.html)\n\n[Control Bus](ControlBus.html)\n\n[Detour](Detour.html)\n\n[Wire Tap](WireTap.html)\n\n[Message History](MessageHistory.html)\n\n[Message Store](MessageStore.html)\n\n[Smart Proxy](SmartProxy.html)\n\n[Test Message](TestMessage.html)\n\n[Channel Purger](ChannelPurger.html)", "znaku_textu": 5036, "slov": 492, "odkazu": 108, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/StoreInLibrary.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 06:02:43", "sha256": "96395638cbc1165642bdff681ec21a2862359e68f88f59cb7a2b5b2ad4753fb5", "hloubka": 1, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://creativecommons.org/licenses/by/4.0/", "https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "https://www.architectelevator.com/book", "https://www.cloudstrategybook.com/", "https://www.platformstrategybook.info/"]} {"url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/SystemManagementExample.html", "titulek": "Loan Broker System Management - Enterprise Integration Patterns", "h1": "", "popis": "This section uses a more elaborate example to demonstrate how the system management patterns introduced in this section can be used to monitor and control a messaging solution. The example builds upon the C# and MSMQ implementation of the Loan Broker example from Chapter ?? (see Asynchronous Implementation with MSMQ). We augment rather than modify the original example solution so it is not critical that you reviewed all the code of the original example. As with the original example implementation, the intent of this section is not to explain the use of MSMQ-specific API's but rather to illustrate the implementation of the patterns in this book using a queue-oriented messaging system. The structure of the solution would look very similar when implemented in Java using JMS queues or IBM WebSphere MQ. Because we focus mostly on the design decisions and trade-offs, this section should be valuable to you even if you are not a C# or MSMQ developer.", "klicova_slova": "Loan Broker System Management,integration, messaging, events, patterns, event-driven, coupling, eai, middleware, application integration, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns", "og:title": "Loan Broker System Management - Enterprise Integration Patterns", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/SystemManagementExample.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/eip1_patterns_wide.png"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Instrumenting the Loan Broker"}, {"uroven": 2, "text": "Management Console"}, {"uroven": 2, "text": "Loan Broker Quality of Service"}, {"uroven": 2, "text": "Verify the Credit Bureau Operation"}, {"uroven": 2, "text": "Credit Bureau Failover"}, {"uroven": 2, "text": "Enhancing the Management Console"}, {"uroven": 2, "text": "Limitations of This Example"}, {"uroven": 2, "text": "Integration Pattern Language"}], "markdown": "| | Loan Broker System Management[Messaging Patterns](index.html) » Interlude: Systems Management Example | [Contents](toc.html)[⇐ Prev](ChannelPurger.html)[Next ⇒](BondTradingCaseStudy.html) |\n| --- | --- | --- |\n\nThis section uses a more elaborate example to demonstrate how the system management patterns introduced in this section can be used to monitor and control a messaging solution. The example builds upon the C# and MSMQ implementation of the Loan Broker example from Chapter ?? (see [*Asynchronous Implementation with MSMQ*](ComposedMessagingMSMQ.html)). We augment rather than modify the original example solution so it is not critical that you reviewed all the code of the original example. As with the original example implementation, the intent of this section is not to explain the use of MSMQ-specific API's but rather to illustrate the implementation of the patterns in this book using a queue-oriented messaging system. The structure of the solution would look very similar when implemented in Java using JMS queues or IBM WebSphere MQ. Because we focus mostly on the design decisions and trade-offs, this section should be valuable to you even if you are not a C# or MSMQ developer.\n\n## Instrumenting the Loan Broker\n\nThe loan broker implementation consists of the following four key components (see picture):\n\n- The *Test Client* makes requests for loan quotes.\n- The *Loan Broker* acts as the central process manager and coordinates the communication between the credit bureau and the banks.\n- The *Credit Bureau* provides a service to the Loan Broker, computing customer's credit scores.\n- Each *Bank* receives a quote request from the Loan Broker and submits an interest rate quote according to the loan parameters.\n\nIn most integration scenarios we do not have access to the application internals but are limited to monitoring and managing components from the outside. To make this example as realistic as possible, we decide to treat each of the components as a black box. Keeping this constraint in mind, we want the management solution to meet the following requirements:\n\n- **Management Console** : We want a single front-end that displays the health of all components and allows us to take compensating actions if something goes wrong.\n- **Loan Broker Quality of Service** : In the original solution we developed a test client that monitors the loan broker's response times between quote request and response. In a real production scenario clients will not perform this function for us (they may, however, complain that the system is too slow). Therefore, we want the management solution to capture this information and relay it to the management console.\n- **Verify the Credit Bureau Operation** : The Credit Bureau is an external service provided by a third party. We want to ensure the correct operation of this service by periodically sending test messages.\n- **Credit Bureau Failover** : If the Credit Bureau malfunctions we want to temporarily redirect the credit request messages to another service provider.\n\n## Management Console\n\nWe want to be able to collect metrics from multiple components in a single point so we can assess the health of the overall solution from a central spot. The management console also has to be able to control message flow and component parameters so that we can address outages by rerouting messages or changing component behavior.\n\nThe management console communicates with the individual components via messaging. It uses a separate [*Control Bus*](ControlBus.html) that only contains messages related to system management and not application data.\n\nBecause this is a book on enterprise integration and not on user interface design, we keep the management console very, very simple. Many vendors offer real-time data displays or you can even achieve visual miracles with Visual Basic and Microsoft Office components such as Excel. Also, many operating system or programming platforms offer their own instrumentation frameworks, e.g. Java/JMX (Java Management Extensions) or Microsoft's WMI (Windows Management Instrumentation). We decide to hand-roll our solution to make it less dependent on a specific vendor's API and to demonstrate the inner workings of a monitoring solution.\n\n## Loan Broker Quality of Service\n\nThe first requirement for the management solution is to measure the quality of service that the loan broker provides to its clients. For this type of monitoring we are not interested in the business content of the individual messages, i.e. the interest rate offered to the client, but only in the time elapsed between the request message and the reply message. The tricky part in tracking the time between these two messages is the fact that the client can specify the channel for the reply message via a [*Return Address*](ReturnAddress.html). So we cannot listen on a fixed channel for the reply. Luckily, the [*Smart Proxy*](SmartProxy.html) pattern solves this dilemma for us. A [*Smart Proxy*](SmartProxy.html) intercepts request messages, stores the [*Return Address*](ReturnAddress.html) supplied by the client and replaces it with a fixed channel address. As a result, the service (the Loan Broker in our case) sends all reply messages to one channel. The [*Smart Proxy*](SmartProxy.html) listens to this channel and correlates incoming reply messages to stored request messages. It then forwards the reply message to the original [*Return Address*](ReturnAddress.html) specified by the client (see picture).\n\n*Instrumenting the Loan Broker with a Smart Proxy*\n\nIn order to take advantage of the [*Smart Proxy*](SmartProxy.html) functionality, we \"insert\" the [*Smart Proxy*](SmartProxy.html) between the client and the Loan Broker (see picture). This insertion is transparent to the client because the [*Smart Proxy*](SmartProxy.html) listens on the same channel that the Loan Broker originally listened on (loanrequestQueue). We now start the Loan Broker with new parameters so that it listens on the brokerRequestQueue channel instead of the loanrequestQueue. The [*Smart Proxy*](SmartProxy.html) instructs the Loan Broker to send all reply messages to the brokerReplyQueue channel from where it forwards the messages back to the correct [*Return Address*](ReturnAddress.html) originally specified by the client.\n\nWe want to use the [*Smart Proxy*](SmartProxy.html) to measure both the response time for loan requests and the number of requests being processed by the loan broker at any one time. The [*Smart Proxy*](SmartProxy.html) can measure the time elapsed between request and reply messages by capturing the time that the request message was received. When it receives the associated reply message, the [*Smart Proxy*](SmartProxy.html) subtracts the request time from current time to compute the time elapsed between request and reply. The [*Smart Proxy*](SmartProxy.html) can estimate how many active requests the Loan Broker is managing at one time by counting how many outstanding request messages there are (i.e. request messages that have not yet received reply messages). The [*Smart Proxy*](SmartProxy.html) cannot distinguish between messages queued up on the brokerRequestQueue from messages that the Loan Broker started processing, so this metric equals the sum of both. We can update the number of outstanding request messages whenever we receive a request message or a reply message.\n\nThe [*Smart Proxy*](SmartProxy.html) passes the metrics information to the management console for monitoring and analysis. We could send the statistics for every single message but that would clutter our network if we deal with high message volumes. Inserting a [*Smart Proxy*](SmartProxy.html) into the message flow already doubles the number of message sent (two request and reply messages instead of one each) so we want to avoid sending another control message for each request message. Instead we use a timer so that the [*Smart Proxy*](SmartProxy.html) sends a metrics message to the [*Control Bus*](ControlBus.html) in predefined intervals, e.g. every 5 seconds. The metrics message can either contain summary metrics (e.g. the maximum, minimum and average response time) or the detailed info for all messages that passed through during the interval. In order to keep the metrics messages small and the management console simple we decide to just pass the summary metrics to the console.\n\nFor the implementation of the Loan Broker smart proxy, we reuse the SmartProxy base classes introduced in the [*Smart Proxy*](SmartProxy.html) pattern. We subclass the SmartProxyBase, SmartProxyRequestConsumer, and SmartProxyReplyConsumer classes (see class diagram). Please see the [*Smart Proxy*](SmartProxy.html) pattern for the source code for these classes.\n\n*Loan Broker Smart Proxy Class Diagram*\n\nJust like the original SmartProxy, the new LoanBrokerProxy contains two separate message consumers, one for incoming request message from the client (LoanBrokerProxyRequestConsumer) and one for incoming reply messages from the Loan Broker (LoanBrokerProxyReplyConsumer). Both consumer classes inherit from their respective base classes and add a new implementation of the AnalyzeMessage method.\n\nLet's have a look at the implementation of the LoanBrokerProxy class. The class maintains two ArrayLists with metrics, performanceStats and queueStats ArrayLists. performanceStats collects data points of response-reply time intervals in seconds while queueStats collects data points of the number of outstanding request messages (those either queued up in the brokerRequestQueue or in process by the Loan Broker). When the pre-programmed timer triggers, the method OnTimerEvent moves the data from both collections and stores them temporary snapshot. We have to perform any further analysis of the data with this snapshot copy because the message consumers continue to add new data points as messages are received.\n\n**LoanBrokerProxy Class**\n\n```\npublic class LoanBrokerProxy : SmartProxyBase\n{\n protected MessageQueue controlBus;\n\n protected ArrayList performanceStats;\n protected ArrayList queueStats;\n\n protected int interval;\n protected Timer timer;\n \n public LoanBrokerProxy(MessageQueue inputQueue, MessageQueue serviceRequestQueue, MessageQueue serviceReplyQueue, MessageQueue controlBus, int interval) : \n base (inputQueue, serviceRequestQueue, serviceReplyQueue)\n {\n messageData = Hashtable.Synchronized(new Hashtable());\n queueStats = ArrayList.Synchronized(new ArrayList());\n performanceStats = ArrayList.Synchronized(new ArrayList());\n\n this.controlBus = controlBus;\n this.interval = interval;\n\n requestConsumer = new LoanBrokerProxyRequestConsumer(inputQueue, serviceRequestQueue, serviceReplyQueue, messageData, queueStats);\n replyConsumer = new LoanBrokerProxyReplyConsumer(serviceReplyQueue, messageData, queueStats, performanceStats);\n }\n\n public override void Process()\n {\n base.Process();\n\n TimerCallback timerDelegate = new TimerCallback(OnTimerEvent);\n timer = new Timer(timerDelegate, null, interval*1000, interval*1000);\n }\n\n protected void OnTimerEvent(Object state)\n {\n ArrayList currentQueueStats;\n ArrayList currentPerformanceStats;\n\n lock (queueStats)\n {\n currentQueueStats = (ArrayList)(queueStats.Clone());\n queueStats.Clear();\n }\n\n lock (performanceStats)\n {\n currentPerformanceStats = (ArrayList)(performanceStats.Clone());\n performanceStats.Clear();\n }\n\n SummaryStats summary = new SummaryStats(currentQueueStats, currentPerformanceStats);\n if (controlBus != null)\n controlBus.Send(summary);\n }\n}\n```\n\nThe LoanBrokerProxy uses the SummaryStats structure to condense the individual data points into maximum, minimum and average values and then sends the summary data to the [*Control Bus*](ControlBus.html). We could make the evaluation more efficient by updating the summary statistics with each incoming message so that we have to store only the summary data and not each datapoint. On the other hand, deferring the computation allows us to change the amount of detail we want to publish to the [*Control Bus*](ControlBus.html).\n\nThe LoanBrokerProxyRequestConsumer class is rather simple. The base class SmartProxyRequestConsumer takes care of storing relevant message data in the messageData Hashtable so that we can derive the current number of outstanding request messages from the size of the Hashtable. The LoanBrokerProxyRequestConsumer maintains a reference to the queueStats collection inside the LoanBrokerProxy so that it can add the new data point to this collection.\n\n**LoanBrokerProxyRequestConsumer Class**\n\n```\npublic class LoanBrokerProxyRequestConsumer : SmartProxyRequestConsumer\n{\n ArrayList queueStats;\n\n public LoanBrokerProxyRequestConsumer(MessageQueue requestQueue, MessageQueue serviceRequestQueue, MessageQueue serviceReplyQueue, Hashtable messageData, ArrayList queueStats) : \n base(requestQueue, serviceRequestQueue, serviceReplyQueue, messageData)\n {\n this.queueStats = queueStats;\n }\n\n protected override void ProcessMessage(Message requestMsg)\n {\n base.ProcessMessage(requestMsg);\n queueStats.Add(messageData.Count);\n }\n}\n```\n\nThe LoanBrokerProxyReplyConsumer collects two metrics when a reply message arrives. First, it computes the time it took between sending the request message and receiving the reply message and adds that metric to the performanceStats collection. Second, it captures the remaining number of outstanding requests and adds that number to the queueStats collection.\n\n**LoanBrokerProxyReplyConsumer Class**\n\n```\npublic class LoanBrokerProxyReplyConsumer : SmartProxyReplyConsumer\n{\n ArrayList queueStats;\n ArrayList performanceStats;\n\n public LoanBrokerProxyReplyConsumer(MessageQueue replyQueue, Hashtable messageData, ArrayList queueStats, ArrayList performanceStats) :\n base(replyQueue, messageData)\n {\n this.queueStats = queueStats;\n this.performanceStats = performanceStats;\n }\n\n protected override void AnalyzeMessage(MessageData data, Message replyMessage)\n {\n TimeSpan duration = DateTime.Now - data.SentTime;\n performanceStats.Add(duration.TotalSeconds);\n\n queueStats.Add(messageData.Count);\n }\n}\n```\n\nThe SummaryStats structure computes maxima, minima and averages based on the captured data. It can derive the number of request messages processed by subtracting the number of performance data points (collected only for reply messages) from the number of queue data points (collected for request and reply messages). The implementation of this structure is quite trivial so that we decided not to fill a whole page with the code.\n\nOnce we insert the new Loan Broker proxy into the message stream we can start collecting performance metrics. To collect some example data, we configured two test clients to make 50 loan quote requests each. The proxy collected the following results (we used a simple XSL transform to render an HTML table off the metric data published in XML format to the controlBusQueue):\n\n| Date | #Requests | #Replies | min Processing Time | avg Processing Time | max Processing Time | min Queue Size | avg Queue Size | max Queue Size |\n| --- | --- | --- | --- | --- | --- | --- | --- | --- |\n| 14:11:02.9644 | 0 | 0 | 0.00 | 0.00 | 0.00 | 0 | 0 | 0 |\n| 14:11:07.9718 | 89 | 7 | 0.78 | 2.54 | 3.93 | 1 | 42 | 82 |\n| 14:11:12.9792 | 11 | 9 | 4.31 | 6.43 | 8.69 | 83 | 87 | 91 |\n| 14:11:17.9866 | 0 | 8 | 9.39 | 10.83 | 12.82 | 77 | 80 | 84 |\n| 14:11:22.9940 | 0 | 8 | 13.80 | 15.75 | 17.48 | 69 | 72 | 76 |\n| 14:11:28.0014 | 0 | 7 | 18.37 | 20.19 | 22.18 | 62 | 65 | 68 |\n| 14:11:33.0088 | 0 | 6 | 22.90 | 24.83 | 26.94 | 56 | 58 | 61 |\n| 14:11:38.0162 | 0 | 10 | 27.74 | 29.53 | 31.62 | 46 | 50 | 55 |\n| 14:11:43.0236 | 0 | 9 | 31.87 | 34.47 | 36.30 | 37 | 41 | 45 |\n| 14:11:48.0310 | 0 | 7 | 36.87 | 39.06 | 40.98 | 30 | 33 | 36 |\n| 14:11:53.0384 | 0 | 9 | 41.75 | 43.82 | 45.14 | 21 | 25 | 29 |\n| 14:11:58.0458 | 0 | 8 | 45.92 | 47.67 | 49.67 | 13 | 16 | 20 |\n| 14:12:03.0532 | 0 | 8 | 50.86 | 52.58 | 54.59 | 5 | 8 | 12 |\n| 14:12:08.0606 | 0 | 4 | 55.41 | 55.96 | 56.69 | 1 | 2 | 4 |\n| 14:12:13.0680 | 0 | 0 | 0.00 | 0.00 | 0.00 | 0 | 0 | 0 |\n\nLoaded into an Excel chart, the queue size data looks like this:\n\n*Loan Broker Smart Proxy Statistics*\n\nWe can see that he two test clients pretty much flooded the Loan Broker, peaking at about 90 pending requests. The Loan Broker then processes the requests at a stable rate of about 2 requests per second. Due to the large number of queued up requests, the the response times are pretty poor, peaking at almost 1 minute. The good news is that the Loan Broker handles a large number of sudden requests gracefully, while the bad news is that the response times are very long. In order to improve response times we could decide to execute multiple Loan Broker instances or multiple Credit Bureau instances (the Credit Bureau service turned out to be a bottleneck before).\n\n## Verify the Credit Bureau Operation\n\nThe second requirement for the management solution is to monitor the correct operation of the external Credit Bureau service. The Loan Broker accesses this service to obtain credit scores for customers requesting a loan quote. The banks require this information to provide an accurate quote.\n\nIn order to verify the correct operation of the external Credit Bureau service we send periodic [*Test Message*](TestMessage.html)s to the service. Because the Credit Bureau service supports a [*Return Address*](ReturnAddress.html) it is easy to inject a [*Test Message*](TestMessage.html) without disturbing the existing message flow. We simply provide a dedicated reply channel for test messages and avoid the need for a separate test message separator.\n\n*Monitoring the Credit Bureau Service*\n\nIn order to verify the correct operation of the Credit Bureau service we need a *Test Data Generator* and a *Test Data Verifier*. The test data generator creates test data to be sent to the service under test. A Credit Bureau test message is very simple; the only field that is required is a social security number (SSN). For our tests we use a special, fixed SSN that identifies a fictitious person. This allows us to verify the result data with preestablished results. This way we can not only check whether we receive a reply message but also verify the content of the message. In our simple example, the Credit Bureau is programmed to return random results regardless of the incoming SSN. As a result, our test data verifier does not check for specific result values but instead verifies whether the results are within the allowed range (e.g. 300 - 900 for a credit score). If the results fall outside the allowed range (for example because a computational error score set the score to zero), the test data verifier notifies the management console with a message.\n\nThe test data verifier also checks the response time of the external service. If we do not receive a reply message within a preset time interval we alert the management console. To minimize network bandwidth, the test data verifier notifies the console only if the response is delayed or malformed, not when the service is operating correctly. The only exception to this rule occurs when the monitor receives a correct reply message from the service subsequent to detecting an error. In that case, the monitor sends a \"service OK\" message to the management console to indicate that the credit bureau is working correctly again. Lastly, during start-up the monitor sends a message to the console to announce its existence. This message allows the console to \"discover\" all active monitors so it can display the status for each.\n\nThe monitor implementation uses two separate timers. The Send Timer determines the time interval between the last received message or the last timeout event and sending the next [*Test Message*](TestMessage.html). The Timeout Timer is started whenever the monitor sends a request message. If a reply message arrives within the specified timeout interval, the Timeout Timer is reset and restarted with the next request message. If the monitor does not receive a reply message within the specified interval, the Timeout timer triggers and sends the monitor sends an error message to the control bus. It then starts a new Send Timer to initiate a new request message after the send interval (see diagram). A real-life scenario is likely to use a relatively short timeout (a few seconds) and a larger send interval (e.g., one minute).\n\n*Monitoring the Credit Bureau Service*\n\nThe implementation of the monitor is relatively simple and only requires a single class. The Monitor class inherits from the MessageConsumer introduced in the [*Smart Proxy*](SmartProxy.html) pattern. This class configures and inbound channel and starts an [*Event-Driven Consumer*](EventDrivenConsumer.html) to receive messages. For each incoming message it invokes the virtual ProcessMessage method. An inheriting class can simply override this method to add its own processing.\n\nThe Process method instructs a MessageConsumer to start consuming messages. The Monitor class augments the base implementation of this method by starting the Send Timer. When this timer triggers, it invokes the OnSendTimerEvent method. The Process message also sends a message to the [*Control Bus*](ControlBus.html)to announce its existence.\n\n**Monitor Class - Sending Messages**\n\n```\npublic override void Process()\n{\n base.Process();\n sendTimer = new Timer(new TimerCallback(OnSendTimerEvent), null, interval*1000, Timeout.Infinite);\n\n MonitorStatus status = new MonitorStatus(MonitorStatus.STATUS_ANNOUNCE, \"Monitor On-Line\", null, MonitorID);\n Console.WriteLine(status.Description);\n controlQueue.Send(status);\n lastStatus = status.Status;\n}\n\nprotected void OnSendTimerEvent(Object state)\n{\n CreditBureauRequest request = new CreditBureauRequest();\n request.SSN = SSN;\n\n Message requestMessage = new Message(request);\n requestMessage.Priority = MessagePriority.AboveNormal;\n requestMessage.ResponseQueue = inputQueue;\n\n Console.WriteLine(DateTime.Now.ToString() + \" Sending request message\");\n requestQueue.Send(requestMessage);\n\n correlationID = requestMessage.Id;\n\n timeoutTimer = new Timer(new TimerCallback(OnTimeoutEvent), null, timeout*1000, Timeout.Infinite);\n}\n```\n\nThe OnSendTimerEvent method creates a new request message. The only parameter in the request message is the customer's social security number (SSN). The method specifies a fixed SSN. The method also saves the message ID to verify the [*Correlation Identifier*](CorrelationIdentifier.html) of any incoming reply messages. Lastly, it starts the timeoutTimer so that the monitor is being notified after a set time interval if no reply message is received.\n\nThe method sets the test message's Priority property to AboveNormal to make sure that queued up application messages do not let the service appear as if it was not available. Using a higher priority for [*Test Message*](TestMessage.html)s causes the message queue to deliver these messages ahead of queued up application messages. Setting a higher message priority is safe in this case because test data generator injects a very small volume of [*Test Message*](TestMessage.html)s. If we injected a large volume of high priority messages into the request channel we could interrupt the flow of application messages. This would definitely violate the intention of a management solution to be as minimally intrusive as possible.\n\nThe ProcessMessage is the heart of the Monitor class. It implements the test message verifier, evaluating incoming reply messages. After stopping the timeout timer the method checks the incoming message for the correct [*Correlation Identifier*](CorrelationIdentifier.html), correct data type of the message body and reasonable values inside the message body. If any of these tests fail, the method sets up a MonitorStatus structure and sends it to the [*Control Bus*](ControlBus.html) channel. The monitor also tracks the previous status is in the lastStatus variable. If the status changes from \"error\" to \"OK\", the ProcessMessage method also sends a notification to the [*Control Bus*](ControlBus.html).\n\n**Monitor Class - Receiving Messages**\n\n```\nprotected override void ProcessMessage(Message msg)\n{\n Console.WriteLine(DateTime.Now.ToString() + \" Received reply message\");\n\n if (timeoutTimer != null)\n timeoutTimer.Dispose();\n\n msg.Formatter = new XmlMessageFormatter(new Type[] {typeof(CreditBureauReply)});\n CreditBureauReply replyStruct;\n MonitorStatus status = new MonitorStatus();\n\n status.Status = MonitorStatus.STATUS_OK;\n status.Description = \"No Error\";\n status.ID = MonitorID;\n\n try \n {\n if (msg.Body is CreditBureauReply) \n {\n replyStruct = (CreditBureauReply)msg.Body;\n if (msg.CorrelationId != correlationID) \n {\n status.Status = MonitorStatus.STATUS_FAILED_CORRELATION;\n status.Description = \"Incoming message correlation ID does not match outgoing message ID\";\n }\n else \n {\n if (replyStruct.CreditScore < 300 || replyStruct.CreditScore > 900 ||\n replyStruct.HistoryLength < 1 || replyStruct.HistoryLength > 24)\n {\n status.Status = MonitorStatus.STATUS_INVALID_DATA;\n status.Description = \"Credit score values out of range\";\n }\n }\n\n }\n else\n { \n status.Status = MonitorStatus.STATUS_INVALID_FORMAT;\n status.Description = \"Invalid message format\";\n }\n }\n catch (Exception e) \n {\n Console.WriteLine(\"Exception: {0}\", e.ToString()); \n status.Status = MonitorStatus.STATUS_INVALID_FORMAT;\n status.Description = \"Could not deserialize message body\";\n }\n\n StreamReader reader = new StreamReader (msg.BodyStream);\n status.MessageBody = reader.ReadToEnd();\n\n Console.WriteLine(status.Description);\n\n if (status.Status != MonitorStatus.STATUS_OK || \n (status.Status == MonitorStatus.STATUS_OK && lastStatus != MonitorStatus.STATUS_OK)) \n {\n controlQueue.Send(status);\n }\n\n lastStatus = status.Status;\n sendTimer.Dispose();\n sendTimer = new Timer(new TimerCallback(OnSendTimerEvent), null, interval*1000, Timeout.Infinite);\n}\n```\n\nIf no message arrives in the specified interval, the timeoutTimer will invoke the OnTimeoutEvent method. This method sends a MonitorStatus message to the [*Control Bus*](ControlBus.html) and starts a new Send timer so that a new request message is sent after the interval.\n\n**Monitor Class - Timeout**\n\n```\nprotected void OnTimeoutEvent(Object state)\n{\n MonitorStatus status = new MonitorStatus(MonitorStatus.STATUS_TIMEOUT, \"Timeout\", null, MonitorID);\n Console.WriteLine(status.Description);\n controlQueue.Send(status);\n lastStatus = status.Status;\n\n timeoutTimer.Dispose();\n sendTimer = new Timer(new TimerCallback(OnSendTimerEvent), null, interval*1000, Timeout.Infinite);\n}\n```\n\n## Credit Bureau Failover\n\nNow that we can monitor the status of the external Credit Bureau service we want to use this data to implement a failover scheme so that the Loan Broker can continue operating even when the Credit Bureau service fails. It is worthwhile noting that [*Point-to-Point Channel*](PointToPointChannel.html)s already provide a basic form of failover. When we use multiple [*Competing Consumers*](CompetingConsumers.html) on a single [*Point-to-Point Channel*](PointToPointChannel.html), the failure of one consumer will not interrupt processing as long as the other consumer(s) still operate. When multiple consumers are active, they split the load, effectively implementing a simple load balancing mechanism. Why would we need to implement an explicit fail-over mechanism? When using external services, we may be limited to simple channels that do not support [*Competing Consumers*](CompetingConsumers.html), e.g. SOAP over HTTP. Also, we may not want multiple services to load balance. For example, we may have a volume agreement with the primary service provider that gives us substantial discounts if we meet certain usage quotas. Splitting the traffic across two providers will likely cost us more. Alternatively, we may be using a low-cost provider as out primary service provider and only want to switch over to a premium provider when the low-cost provider fails. \n (For an excellent discussion of architectural decisions driven by licensing issues see [[Hohmann](http://www.amazon.com/exec/obidos/ASIN/0201775948/enterpriseint-20)])\n.\n\nIn order to implement explicit failover, we insert a [*Message Router*](MessageRouter.html) into the credit bureau request channel (see picture). This router routes the request either to the primary credit bureau service (green arrows) or the secondary credit bureau service (red arrows). Because the secondary service may use a different message format than the first service, we wrap the secondary service with a pair of [*Message Translator*](MessageTranslator.html)s. The [*Message Router*](MessageRouter.html) is a *Context-Based Router*, controlled by the management console over the [*Control Bus*](ControlBus.html). The management console gets monitoring data from the Credit Bureau Monitor we designed in the previous section. If the monitor indicates a failure, the management console instructs the [*Message Router*](MessageRouter.html) to reroute the traffic to the secondary service provider (see picture).\n\n*Explicit Failover with a Context-Based Router*\n\nEven while the request message traffic is re-routed to the secondary service provider, the monitor keeps on sending test messages to the primary provider. When the monitor confirms the correct operation of the service, the console instructs the [*Message Router*](MessageRouter.html) to return to routing request messages to the primary provider. The solution diagram does not show a monitor for the secondary service provider even though it would be very easy use a second instance of the credit bureau monitor to monitor the backup Credit Bureau service.\n\nLet's look at the implementation of the Context-Based Router. ContextBasedRouter inherits from our trusty MessageConsumer base class to process incoming messages. The ProcessMessage method checks the value of the variable control and routes incoming messages to either the primary or secondary output channel.\n\n**ContextBasedRouter Class**\n\n```\ndelegate void ControlEvent(int control);\n\nclass ContextBasedRouter : MessageConsumer\n{\n...\n protected override void ProcessMessage(Message msg)\n {\n if (control == 0) \n {\n primaryOutputQueue.Send(msg);\n }\n else \n {\n secondaryOutputQueue.Send(msg);\n }\n }\n\n protected void OnControlEvent(int control)\n {\n this.control = control;\n Console.WriteLine(\"Control = \" + control);\n }\n}\n```\n\nThe variable control can be set by invoking the OnControlEvent method. This is the purpose of the ControlReceiver class. This class also inherits from MessageConsumer as it listens for messages from the control channel. The ContextBasedRouter class supplies the ControlReceiver with a delegate of type ControlEvent to invoke when it receives a control event with a numeric value. If you have not come across delegates, they are a really neat, type-safe way to implement callbacks without having to implement another interface or relegating to function pointers ([[Box](http://www.amazon.com/exec/obidos/ASIN/0201734117/enterpriseint-20)] goes into all the gory details).\n\n**ControlReceiver Class**\n\n```\nclass ControlReceiver : MessageConsumer\n{\n protected ControlEvent controlEvent;\n\n public ControlReceiver(MessageQueue inputQueue, ControlEvent controlEvent) : base (inputQueue) \n {\n this.controlEvent = controlEvent;\n }\n\n protected override void ProcessMessage(Message msg)\n {\n String text = (string)msg.Body;\n Double resNum;\n\n if (Double.TryParse( text, NumberStyles.Integer, NumberFormatInfo.InvariantInfo, out resNum)) \n {\n int control = int.Parse(text);\n controlEvent(control);\n }\n }\n}\n```\n\n## Enhancing the Management Console\n\nThe first version of the management console was so simple that we did not even bother showing the code. All it could do was receive a message and write the message content to a file for later analysis (such as rendering performance graphs from Excel). Now we want to inject some more intelligence into the management console. First, when the primary Credit Bureau Monitor indicates a failure, the management console needs to instruct the Context-Based Router to reroute messages to the secondary service provider. We opted to implement this functionality inside the management console so that we can decouple the monitor and the Context-Based Router (effectively, the management console acts as a *Mediator* as defined in [[GoF](http://www.amazon.com/exec/obidos/ASIN/0201633612/enterpriseint-20)]). Also, implementing the failover logic in a central location gives us a single point of maintenance for the system management rules. Commercial management consoles typically include configurable rules engines to determine appropriate corrective actions based on events on the [*Control Bus*](ControlBus.html).\n\nSecond, we want to build a simple user interface for the management console that displays the current state of the system. Obtaining a \"big picture\" view of a messaging system can be quite difficult, especially if message paths change dynamically. It does not take a lot of components to make it difficult to reconcile where messages flow. Our user interface is simple but nevertheless quite useful. We use the iconic language defined in this book to represent the interaction between components. For now, the user interface only displays the Credit Bureau failover portion of the system, consisting of two services and one Context-Based Router (see picture).\n\n*The Management Console Indicates That Both Credit Bureau Services Are Active*\n\nWhen the Monitor detects a failure and instructs the router to re-route the traffic, we want to update the user interface to reflect the new status (see picture). The router shows the new route for the request messages and the primary Credit Bureau component changes colors to indicate the failure.\n\n*The Management Console Indicates That The Primary Credit Bureau Failed and Traffic is Being Re-Routed*\n\nLet's have a brief look at the code behind this console. We will focus on the system management part of the code and not dive into the details of the code that renders the pretty user interface pictures. First, the management console needs to be able to retrieve status messages from the monitor component. To make the console as robust as possible, we access the message content in a loosely coupled fashion, reading individual fields from the XML payload. This approach helps keep the management console operational even if the individual components decide to add some fields to the message.\n\nNot surprisingly, the console class also inherits from our good friend MessageConsumer, so we only show the ProcessMessage method here. The component simply reads the message's BodyStream into a string variable and passes it to the different components for analysis.\n\n**ManagementConsole - ProcessMessage**\n\n```\npublic delegate void ControlMessageReceived(String body);\n\npublic class ManagementConsole : MessageConsumer\n{\n protected Logger logger;\n public MonitorStatusHandler monitorStatusHandler;\n \n public ControlMessageReceived updateEvent;\n\n public ManagementConsole(MessageQueue inputQueue, string pathName) : base(inputQueue) \n {\n logger = new Logger(pathName);\n monitorStatusHandler = new MonitorStatusHandler();\n\n updateEvent += new ControlMessageReceived(logger.Log);\n updateEvent += new ControlMessageReceived(monitorStatusHandler.OnControlMessage);\n }\n\n protected override void ProcessMessage(Message m)\n {\n Stream stm = m.BodyStream;\n StreamReader reader = new StreamReader (stm);\n String body = reader.ReadToEnd();\n\n updateEvent(body);\n }\n ...\n}\n```\n\nThe ManagementConsole class uses a delegate to notify the logger and the MonitorStatusHandler. Using a delegate allows us to easily add other classes that also listen on incoming control messages without having to change the code inside the ProcessMessage method.\n\nOne of the components analyzing incoming control message data is the MonitorStatusHandler class. First, this class checks whether the incoming message is a MonitorStatus message. If so it loads the message body into an XML document to extract the relevant fields contained inside the and the elements. It then invokes the delegate updateEvent which is of type MonitorStatusUpdate. Any interested class inside the management console application can add a callback method to this delegate and be notified any time a MonitorStatus message arrives. All the component has to do is provide an implementation of a method with a signature equal to MonitorStatusUpdate.\n\n**MonitorStatusHandler**\n\n```\npublic delegate void MonitorStatusUpdate(String ID, int Status);\n\npublic class MonitorStatusHandler\n{\n public MonitorStatusUpdate updateEvent;\n\n public void OnControlMessage(String body)\n {\n XmlDocument doc = new XmlDocument();\n doc.LoadXml(body);\n\n XmlElement root = doc.DocumentElement;\n if (root.Name == \"MonitorStatus\") \n {\n XmlNode statusNode = root.SelectSingleNode(\"Status\");\n XmlNode idNode = root.SelectSingleNode(\"ID\");\n\n if (idNode!= null && statusNode != null) \n {\n String msgID = idNode.InnerText;\n String msgStatus = statusNode.InnerText;\n Double resNum;\n int status = 99;\n\n if (Double.TryParse( msgStatus, NumberStyles.Integer, NumberFormatInfo.InvariantInfo, out resNum)) \n {\n status = (int)resNum;\n }\n updateEvent(msgID, status);\n }\n }\n } \n}\n```\n\nIn our example, the first two components listening to the MonitorStatusUpdate event triggered by the MonitorStatusHandler are two user interface controls representing the primary and secondary Credit Bureau service in the user interface form. Each user interface control filters the events for the identifier that is unique to the respective component that is being monitored. When the status of the monitored component changes, the user interface control changes the color of the component. The following routine that is executed during the initialization of the display form ties the two Credit Bureau display controls to the monitorStatusHandler of the management console:\n\n**Console Form Initialization**\n\n```\nconsole = new ManagementConsole(controlBusQueue, logFileName);\n\nprimaryCreditBureauControl = new ComponentStatusControl(\"Primary Credit Bureau\", \"PrimaryCreditService\");\nprimaryCreditBureauControl.Bounds = new Rectangle(300, 30, COMPONENT_WIDTH, COMPONENT_HEIGHT);\n\nsecondaryCreditBureauControl = new ComponentStatusControl(\"Secondary Credit Bureau\", \"SecondaryCreditService\");\nsecondaryCreditBureauControl.Bounds = new Rectangle(300, 130, COMPONENT_WIDTH, COMPONENT_HEIGHT);\n\nconsole.monitorStatusHandler.updateEvent += new MonitorStatusUpdate(primaryCreditBureauControl.OnMonitorStatusUpdate);\nconsole.monitorStatusHandler.updateEvent += new MonitorStatusUpdate(secondaryCreditBureauControl.OnMonitorStatusUpdate);\n```\n\nAnother component listening to the MonitorStatusUpdate events is the FailOverHandler. This component is a non-visual component that analyzes status messages to determine whether a failover switch should be set. If the status of the monitor has changed (we use a logical XOR denoted by the '^' operator) the FailOverHandler sends a command message to the designated command channel. In our case, this command channel is connected to the Context-Based Router who will start re-routing credit score request messages.\n\n**FailOverHandler Class**\n\n```\npublic delegate void FailOverStatusUpdate(String ID, string Command);\n\npublic class FailOverHandler\n{\n ...\n public void OnMonitorStatusUpdate(String ID, int status)\n {\n if (componentID == ID) \n {\n if (IsOK(status) ^ IsOK(currentStatus)) \n {\n String command = IsOK(status) ? \"0\" : \"1\";\n commandQueue.Send(command);\n currentStatus = status;\n updateEvent(ID, command);\n }\n }\n }\n\n protected bool IsOK(int status)\n {\n return (status == 0 || status >= 99);\n }\n}\n```\n\nThe FailOverHandler also invokes the updateEvent, which is a delegate of type FailOverStatusUpdate. Similar to the MonitorStatusHandler we can register any component that implements a method of this type to receive update notifications whenever the FailOverHandler changes status. In our example, we register the visual FailOverControl to receive these events so that it can redraw whenever the failover status changes. The console user interface initialization routine establishes the connection between these components:\n\n**Console Form Initialization**\n\n```\nfailOverControl = new FailOverControl(\"Credit Bureau Failover\", \"PrimaryCreditService\");\nfailOverControl.Bounds = new Rectangle(100, 80, ROUTER_WIDTH, COMPONENT_HEIGHT);\n\nFailOverHandler failOverHandler = new FailOverHandler(commandQueue, \"PrimaryCreditService\");\nconsole.monitorStatusHandler.updateEvent += new MonitorStatusUpdate(failOverHandler.OnMonitorStatusUpdate);\n\nfailOverHandler.updateEvent += new FailOverStatusUpdate(failOverControl.OnMonitorStatusUpdate);\n```\n\nConnecting the individual components inside the management console through delegates and events results in a loosely coupled architecture. This architecture allows us to reuse the individual components and re-compose them into different constellations similar to the [*Pipes and Filters*](PipesAndFilters.html) architectural style introduced at the beginning of the book. Essentially, passing messages arriving on the [*Control Bus*](ControlBus.html) by using delegates resembles creating an application-internal [*Publish-Subscribe Channel*](PublishSubscribeChannel.html). Because the control bus events arrive on a [*Point-to-Point Channel*](PointToPointChannel.html), we have to use a single consumer who then publishes the event to any interested \"subscriber\" inside the application.\n\nThe following collaboration diagram illustrates the propagation of events between the individual components.\n\n*Propagation of Events Inside the Management Console*\n\nUsing a user-interface console to visualize the message flow between individual components is a powerful system management tool. Some vendors include development suites that allow designers to visually arrange components and connect their input and outputs ports to create distributed message-flow application. For example, Fiorano's Tifosi product ([www.fiorano.com](http://www.fiorano.com)) includes the *Distributed Applications Composer* that allows the design of a distributed solution from a single graphical user interface even though each component may execute on a different machine or platform. This tool uses a [*Control Bus*](ControlBus.html) to connect all distributed components to a central management and monitoring console.\n\nOur simple example requires the management console hard-code the visual connection between the individual components, e.g. to draw a line between the failover router and the Credit Bureau components. Many integration tools such as Tifosi allow the user to design the solution from the beginning using a graphical user interface. This approach makes it easy to use the graphical design to display the status of the solution.\n\nIn some cases we may analyze the message flow in an existing messaging solution to create a graphical representation of the system. There are two fundamental approaches to perform this type of analysis. A *Static Analysis* analyses the channels that each component publishes and subscribes to. If one component publishes to the same channel another component subscribes to, the tool can draw a connecting line between the two components. Storing this information in a central repository (as supported by many EAI tool suites, for example TIBCO ActiveEnterprise) is a huge benefit for this type of analysis. In the absence of such a repository, we can inspect individual messages and reverse-engineer connections between components based on the origin of messages arriving at a particular component. This task is greatly simplified if the participating components support the creation of a [*Message History*](MessageHistory.html). Without the help of a [*Message History*](MessageHistory.html), we can still reconstruct the flow of messages if each message contains a field specifying the sender of the message (many systems include such a field for authentication purposes).\n\n## Limitations of This Example\n\nUnfortunately, in order to fit this example into the scope of a single chapter, we had to make some simplifying assumptions. For example, our failover mechanism does not deal with the messages that are already queued up when the primary Credit Bureau service fails -- these messages remain queued up until the service is reinstated. The Loan Broker is able to continue functioning because it correlates incoming response message to reply messages, but the loan quote requests associated with the 'stuck' message will not be processed until the primary Credit Bureau comes back on-line. In order to improve response times in a fail-over scenario we should implement a re-send function that allows the Loan Broker to re-issue request messages for those messages that are queued up indefinitely in front of a failed service. Alternatively, the fail-over router could store all request messages that have arrived since the correct function of the service was last confirmed. If a service failure is detected, the router could re-send all these messages because some of them might not have been processed correctly. This approach can lead to duplicate request messages (and associated reply messages), but since both the Credit Bureau service and the Loan Broker messages are [*Idempotent Receiver*](IdempotentReceiver.html)s this does not cause any problems -- duplicate reply messages are simply ignored.\n\nThis example demonstrated only a small subset of the system management functions that can be implemented with the patterns in this section. For example, we could monitor message traffic across all components, set performance thresholds, have each component send \"heartbeat\" messages and more, In fact, adding robust system management to a distributed messaging solution can require as much (or more) design and implementation effort as the original solution.\n\n## Integration Pattern Language\n\n[Message Construct.](MessageConstructionIntro.html)\n\n[Message](Message.html)\n\n[Command Message](CommandMessage.html)\n\n[Document Message](DocumentMessage.html)\n\n[Event Message](EventMessage.html)\n\n[Request-Reply](RequestReply.html)\n\n[Return Address](ReturnAddress.html)\n\n[Correlation Identifier](CorrelationIdentifier.html)\n\n[Message Sequence](MessageSequence.html)\n\n[Message Expiration](MessageExpiration.html)\n\n[Format Indicator](FormatIndicator.html)\n\n[Message Routing](MessageRoutingIntro.html)\n\n[Pipes-and-Filters](PipesAndFilters.html)\n\n[Message Router](MessageRouter.html)\n\n[Content-based Router](ContentBasedRouter.html)\n\n[Message Filter](Filter.html)\n\n[Dynamic Router](DynamicRouter.html)\n\n[Recipient List](RecipientList.html)\n\n[Splitter](Sequencer.html)\n\n[Aggregator](Aggregator.html)\n\n[Resequencer](Resequencer.html)\n\n[Composed Msg. Processor](DistributionAggregate.html)\n\n[Scatter-Gather](BroadcastAggregate.html)\n\n[Routing Slip](RoutingTable.html)\n\n[Process Manager](ProcessManager.html)\n\n[Message Broker](MessageBroker.html)\n\n[Message\nTransformation](MessageTransformationIntro.html)\n\n[Message Translator](MessageTranslator.html)\n\n[Envelope Wrapper](EnvelopeWrapper.html)\n\n[Content Enricher](DataEnricher.html)\n\n[Content Filter](ContentFilter.html)\n\n[Claim Check](StoreInLibrary.html)\n\n[Normalizer](Normalizer.html)\n\n[Canonical Data Model](CanonicalDataModel.html)\n\n[Messaging Endpoints](MessagingEndpointsIntro.html)\n\n[Message Endpoint](MessageEndpoint.html)\n\n[Messaging Gateway](MessagingGateway.html)\n\n[Messaging Mapper](MessagingMapper.html)\n\n[Transactional Client](TransactionalClient.html)\n\n[Polling Consumer](PollingConsumer.html)\n\n[Event-driven Consumer](EventDrivenConsumer.html)\n\n[Competing Consumers](CompetingConsumers.html)\n\n[Message Dispatcher](MessageDispatcher.html)\n\n[Selective Consumer](MessageSelector.html)\n\n[Durable Subscriber](DurableSubscription.html)\n\n[Idempotent Receiver](IdempotentReceiver.html)\n\n[Service Activator](MessagingAdapter.html)\n\n[Messaging Channels](MessagingChannelsIntro.html)\n\n[Message Channel](MessageChannel.html)\n\n[Point-to-Point Channel](PointToPointChannel.html)\n\n[Publish-Subscr. Channel](PublishSubscribeChannel.html)\n\n[Datatype Channel](DatatypeChannel.html)\n\n[Invalid Message Channel](InvalidMessageChannel.html)\n\n[Dead Letter Channel](DeadLetterChannel.html)\n\n[Guaranteed Delivery](GuaranteedMessaging.html)\n\n[Channel Adapter](ChannelAdapter.html)\n\n[Messaging Bridge](MessagingBridge.html)\n\n[Message Bus](MessageBus.html)\n\n[Systems Mgmt.](SystemManagementIntro.html)\n\n[Control Bus](ControlBus.html)\n\n[Detour](Detour.html)\n\n[Wire Tap](WireTap.html)\n\n[Message History](MessageHistory.html)\n\n[Message Store](MessageStore.html)\n\n[Smart Proxy](SmartProxy.html)\n\n[Test Message](TestMessage.html)\n\n[Channel Purger](ChannelPurger.html)", "znaku_textu": 48035, "slov": 6484, "odkazu": 111, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/patterns/messaging/SystemManagementExample.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 06:03:11", "sha256": "1890dc902647c280fe37efd685f9ddc152e0adce8861f58e52dee8fe17f50d56", "hloubka": 1, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://www.amazon.com/exec/obidos/ASIN/0201775948/enterpriseint-20", "http://www.amazon.com/exec/obidos/ASIN/0201734117/enterpriseint-20", "http://www.amazon.com/exec/obidos/ASIN/0201633612/enterpriseint-20", "http://www.fiorano.com/", "https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "https://www.architectelevator.com/book", "https://www.cloudstrategybook.com/", "https://www.platformstrategybook.info/"]} {"url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/SystemManagementIntro.html", "titulek": "Introduction to System Management - Enterprise Integration Patterns", "h1": "", "popis": "While developing a messaging solution is no easy task, operating such a solution in production is equally challenging: A message-based integration solution may produce, route and transform thousands or even millions of messages in a day. We have to deal with exceptions, performance bottlenecks and changes in the participating systems. To make things ever more challenging, components are distributed across many platforms and machines that can reside at multiple locations.", "klicova_slova": "Introduction to System Management,integration, messaging, events, patterns, event-driven, coupling, eai, middleware, application integration, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns", "og:title": "Introduction to System Management - Enterprise Integration Patterns", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/SystemManagementIntro.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/eip1_patterns_wide.png"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Monitoring and Controlling"}, {"uroven": 2, "text": "Observing and Analyzing Message Traffic"}, {"uroven": 2, "text": "Testing and Debugging"}, {"uroven": 2, "text": "Integration Pattern Language"}], "markdown": "| | Introduction to System Management[Messaging Patterns](index.html) » [System Management](SystemManagementIntro.html) | [Contents](toc.html)[⇐ Prev](MessagingAdapter.html)[Next ⇒](ControlBus.html) |\n| --- | --- | --- |\n\nWhile developing a messaging solution is no easy task, operating such a solution in production is equally challenging: A message-based integration solution may produce, route and transform thousands or even millions of messages in a day. We have to deal with exceptions, performance bottlenecks and changes in the participating systems. To make things ever more challenging, components are distributed across many platforms and machines that can reside at multiple locations.\n\nBesides the inherent complexities and scale of integrating distributed packaged and custom applications, the architectural benefits of loose coupling actually make testing and debugging a system harder. Martin Fowler refers to this as the \"Architect's dream, Developer's nightmare\" symptom: architectural principles of loose coupling and indirection reduce the assumptions systems make about each other and therefore provide flexibility. However, testing a system where a message producer is not aware of who the consumers of this message are, can be challenging. Add to that the asynchronous and temporal aspects of messaging and things get even more complicated. For example, the messaging solution may not even be designed for the message producer to receive a reply message from the recipient(s). Likewise, the messaging infrastructure typically guarantees the delivery of the message but not the delivery time. This makes it hard to develop test cases that rely on the results of the message delivery.\n\nWhen monitoring a message solution, we can track message at two different levels of abstraction. A typical **System Management** solution monitors how many messages are being sent or how long it took a message to be processed. These monitoring solutions do not inspect the message data except maybe for some fields in the message header such as the message identifier or the [*Message History*](MessageHistory.html). In contrast, **Business Activity Monitoring** (BAM) solutions focus on the payload data contained in the message, for example the Dollar value of all orders placed in the last hour. Many of the patterns presented in this section are general enough that they can be used for either purpose. However, because business activity monitoring is a whole new field in itself and shares many complexities with data warehousing (something we have not touched on at all), we decided to discuss the patterns in the context of system management.\n\nSystem Management patterns are designed to address these requirements and provide the tools to keep a complex message-based system running. We divided this chapter into three sections:\n\n## Monitoring and Controlling\n\nA [*Control Bus*](ControlBus.html) provides a single point of control to manage and monitor a distributed solution. It connects multiple components to a central management console that can display the status of each component and monitor message traffic through the components. The console can also be used to send control commands to components, e.g. to change the message flow.\n\nWe may want to route messages through additional steps, such as validation or logging. Because these steps can introduce performance overheads, we may want to be able to switch them on and off via the control bus. A [*Detour*](Detour.html) gives us this ability.\n\n## Observing and Analyzing Message Traffic\n\nSometimes we need to want to inspect the contents of a message without affecting the primary message flow. A [*Wire Tap*](WireTap.html) allows us to tap into message traffic.\n\nWhen we debug a message-based system, is is a great aid to know where a specific message has been. The [*Message History*](MessageHistory.html) provides this capability without introducing dependencies between components.\n\nWhile the [*Message History*](MessageHistory.html) is tied to an individual message, a central [*Message Store*](MessageStore.html) can provide a complete account of every message that traveled through the system. Combined with the [*Message History*](MessageHistory.html) the [*Message Store*](MessageStore.html) can analyze all possible paths messages can take through the system.\n\nThe [*Wire Tap*](WireTap.html), [*Message History*](MessageHistory.html), and [*Message Store*](MessageStore.html) help us analyze the asynchronous flow of a message. In order to track messages sent to request-reply services, we need to insert a [*Smart Proxy*](SmartProxy.html) into the message stream.\n\n## Testing and Debugging\n\nTesting a messaging system before deploying it into production is a good idea. But testing should not stop there. You should be actively verifying that the running messaging system is functioning properly. You can do this by periodically injecting a [*Test Message*](TestMessage.html) into the system and verifying the results.\n\nWhen a component fails or misbehaves, it is easy to end up with unwanted messages on a channel. During testing it is very useful to remove all remaining messages from a channel so that the components under test do not receive 'leftover' messages. A [*Channel Purger*](ChannelPurger.html) does that for us.\n\n## Integration Pattern Language\n\n[Message Construct.](MessageConstructionIntro.html)\n\n[Message](Message.html)\n\n[Command Message](CommandMessage.html)\n\n[Document Message](DocumentMessage.html)\n\n[Event Message](EventMessage.html)\n\n[Request-Reply](RequestReply.html)\n\n[Return Address](ReturnAddress.html)\n\n[Correlation Identifier](CorrelationIdentifier.html)\n\n[Message Sequence](MessageSequence.html)\n\n[Message Expiration](MessageExpiration.html)\n\n[Format Indicator](FormatIndicator.html)\n\n[Message Routing](MessageRoutingIntro.html)\n\n[Pipes-and-Filters](PipesAndFilters.html)\n\n[Message Router](MessageRouter.html)\n\n[Content-based Router](ContentBasedRouter.html)\n\n[Message Filter](Filter.html)\n\n[Dynamic Router](DynamicRouter.html)\n\n[Recipient List](RecipientList.html)\n\n[Splitter](Sequencer.html)\n\n[Aggregator](Aggregator.html)\n\n[Resequencer](Resequencer.html)\n\n[Composed Msg. Processor](DistributionAggregate.html)\n\n[Scatter-Gather](BroadcastAggregate.html)\n\n[Routing Slip](RoutingTable.html)\n\n[Process Manager](ProcessManager.html)\n\n[Message Broker](MessageBroker.html)\n\n[Message\nTransformation](MessageTransformationIntro.html)\n\n[Message Translator](MessageTranslator.html)\n\n[Envelope Wrapper](EnvelopeWrapper.html)\n\n[Content Enricher](DataEnricher.html)\n\n[Content Filter](ContentFilter.html)\n\n[Claim Check](StoreInLibrary.html)\n\n[Normalizer](Normalizer.html)\n\n[Canonical Data Model](CanonicalDataModel.html)\n\n[Messaging Endpoints](MessagingEndpointsIntro.html)\n\n[Message Endpoint](MessageEndpoint.html)\n\n[Messaging Gateway](MessagingGateway.html)\n\n[Messaging Mapper](MessagingMapper.html)\n\n[Transactional Client](TransactionalClient.html)\n\n[Polling Consumer](PollingConsumer.html)\n\n[Event-driven Consumer](EventDrivenConsumer.html)\n\n[Competing Consumers](CompetingConsumers.html)\n\n[Message Dispatcher](MessageDispatcher.html)\n\n[Selective Consumer](MessageSelector.html)\n\n[Durable Subscriber](DurableSubscription.html)\n\n[Idempotent Receiver](IdempotentReceiver.html)\n\n[Service Activator](MessagingAdapter.html)\n\n[Messaging Channels](MessagingChannelsIntro.html)\n\n[Message Channel](MessageChannel.html)\n\n[Point-to-Point Channel](PointToPointChannel.html)\n\n[Publish-Subscr. Channel](PublishSubscribeChannel.html)\n\n[Datatype Channel](DatatypeChannel.html)\n\n[Invalid Message Channel](InvalidMessageChannel.html)\n\n[Dead Letter Channel](DeadLetterChannel.html)\n\n[Guaranteed Delivery](GuaranteedMessaging.html)\n\n[Channel Adapter](ChannelAdapter.html)\n\n[Messaging Bridge](MessagingBridge.html)\n\n[Message Bus](MessageBus.html)\n\n[Systems Mgmt.](SystemManagementIntro.html)\n\n[Control Bus](ControlBus.html)\n\n[Detour](Detour.html)\n\n[Wire Tap](WireTap.html)\n\n[Message History](MessageHistory.html)\n\n[Message Store](MessageStore.html)\n\n[Smart Proxy](SmartProxy.html)\n\n[Test Message](TestMessage.html)\n\n[Channel Purger](ChannelPurger.html)", "znaku_textu": 8015, "slov": 937, "odkazu": 107, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/SystemManagementIntro.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 06:03:02", "sha256": "bc252357abc1e7b4c3aafb7fa9fae9c97bc7b4821f1b766b0da30c1d8dcf5c91", "hloubka": 1, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "https://www.architectelevator.com/book", "https://www.cloudstrategybook.com/", "https://www.platformstrategybook.info/"]} {"url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/TestMessage.html", "titulek": "Test Message - Enterprise Integration Patterns", "h1": "", "popis": "What happens, though, if a component is actively processing messages, but garbles outgoing messages due to an internal fault?", "klicova_slova": "Test Message,integration, messaging, events, patterns, event-driven, coupling, eai, middleware, application integration, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns", "og:title": "Test Message - Enterprise Integration Patterns", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/TestMessage.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/TestMessage.gif"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Integration Pattern Language"}], "markdown": "| | Test Message[Messaging Patterns](index.html) » [System Management](SystemManagementIntro.html) | [Contents](toc.html)[⇐ Prev](SmartProxy.html)[Next ⇒](ChannelPurger.html) |\n| --- | --- | --- |\n\nThe [*Control Bus*](ControlBus.html) describes a number of approaches to monitor the health of the message processing system. Each component in the system can publish periodic \"heartbeat\" messages to the control bus in order to keep the monitoring mechanism informed that the component is still active. The heartbeat messages can contain vital stats of the component as well, such as the number of messages processed, the average time required to process a message or the percentage of CPU utilization on the machine.\n\nWhat happens, though, if a component is actively processing messages, but garbles outgoing messages due to an internal fault?\n\nTherefore, use *Test Message* to assure the health of message processing components (see Figure).\n\nThe *Test Message* pattern relies on the following components:\n\n- The **Test Data Generator** creates messages to be sent to the component for testing. Test data may be constant, driven by a test data file or generated randomly.\n- The **Test Message Injector** inserts test data into the regular stream of data messages sent to the component. The main role of the injector is to tag messages in order to differentiate 'real' application messages from test messages. This can be accomplished by inserting a special header field. If we have no control over the message structure, we can try to use special values to indicate test messages (e.g. OrderID = 999999). This changes the semantics of application data by using the same field to represent application data (the actual order number) and control information (this is a test message). Therefore, this approach should be used only as a last resort.\n- The **Test Message Separator** extracts the results of test messages from the output stream. This can usually be accomplished by using a [*Content-Based Router*](ContentBasedRouter.html) .\n- The **Test Data Verifier** compares actual results with expected results and flags an exception if a discrepancy is discovered. Depending on the nature of the test data, the verifier may need access to the original test data.\n\n...\nRead the entire pattern in the book [Enterprise Integration Patterns](/books1.html)\n\n**Related patterns:**\n\n[*Content-Based Router*](ContentBasedRouter.html), [*Control Bus*](ControlBus.html), [*Return Address*](ReturnAddress.html), [*Loan Broker System Management*](SystemManagementExample.html)\n\n---\n\n## Integration Pattern Language\n\n[Message Construct.](MessageConstructionIntro.html)\n\n[Message](Message.html)\n\n[Command Message](CommandMessage.html)\n\n[Document Message](DocumentMessage.html)\n\n[Event Message](EventMessage.html)\n\n[Request-Reply](RequestReply.html)\n\n[Return Address](ReturnAddress.html)\n\n[Correlation Identifier](CorrelationIdentifier.html)\n\n[Message Sequence](MessageSequence.html)\n\n[Message Expiration](MessageExpiration.html)\n\n[Format Indicator](FormatIndicator.html)\n\n[Message Routing](MessageRoutingIntro.html)\n\n[Pipes-and-Filters](PipesAndFilters.html)\n\n[Message Router](MessageRouter.html)\n\n[Content-based Router](ContentBasedRouter.html)\n\n[Message Filter](Filter.html)\n\n[Dynamic Router](DynamicRouter.html)\n\n[Recipient List](RecipientList.html)\n\n[Splitter](Sequencer.html)\n\n[Aggregator](Aggregator.html)\n\n[Resequencer](Resequencer.html)\n\n[Composed Msg. Processor](DistributionAggregate.html)\n\n[Scatter-Gather](BroadcastAggregate.html)\n\n[Routing Slip](RoutingTable.html)\n\n[Process Manager](ProcessManager.html)\n\n[Message Broker](MessageBroker.html)\n\n[Message\nTransformation](MessageTransformationIntro.html)\n\n[Message Translator](MessageTranslator.html)\n\n[Envelope Wrapper](EnvelopeWrapper.html)\n\n[Content Enricher](DataEnricher.html)\n\n[Content Filter](ContentFilter.html)\n\n[Claim Check](StoreInLibrary.html)\n\n[Normalizer](Normalizer.html)\n\n[Canonical Data Model](CanonicalDataModel.html)\n\n[Messaging Endpoints](MessagingEndpointsIntro.html)\n\n[Message Endpoint](MessageEndpoint.html)\n\n[Messaging Gateway](MessagingGateway.html)\n\n[Messaging Mapper](MessagingMapper.html)\n\n[Transactional Client](TransactionalClient.html)\n\n[Polling Consumer](PollingConsumer.html)\n\n[Event-driven Consumer](EventDrivenConsumer.html)\n\n[Competing Consumers](CompetingConsumers.html)\n\n[Message Dispatcher](MessageDispatcher.html)\n\n[Selective Consumer](MessageSelector.html)\n\n[Durable Subscriber](DurableSubscription.html)\n\n[Idempotent Receiver](IdempotentReceiver.html)\n\n[Service Activator](MessagingAdapter.html)\n\n[Messaging Channels](MessagingChannelsIntro.html)\n\n[Message Channel](MessageChannel.html)\n\n[Point-to-Point Channel](PointToPointChannel.html)\n\n[Publish-Subscr. Channel](PublishSubscribeChannel.html)\n\n[Datatype Channel](DatatypeChannel.html)\n\n[Invalid Message Channel](InvalidMessageChannel.html)\n\n[Dead Letter Channel](DeadLetterChannel.html)\n\n[Guaranteed Delivery](GuaranteedMessaging.html)\n\n[Channel Adapter](ChannelAdapter.html)\n\n[Messaging Bridge](MessagingBridge.html)\n\n[Message Bus](MessageBus.html)\n\n[Systems Mgmt.](SystemManagementIntro.html)\n\n[Control Bus](ControlBus.html)\n\n[Detour](Detour.html)\n\n[Wire Tap](WireTap.html)\n\n[Message History](MessageHistory.html)\n\n[Message Store](MessageStore.html)\n\n[Smart Proxy](SmartProxy.html)\n\n[Test Message](TestMessage.html)\n\n[Channel Purger](ChannelPurger.html)", "znaku_textu": 5265, "slov": 511, "odkazu": 108, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/TestMessage.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 06:03:09", "sha256": "62abc89458cea9392893132bafeba284c7609931f5259275a0bb2ac69a851e96", "hloubka": 1, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://creativecommons.org/licenses/by/4.0/", "https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "https://www.architectelevator.com/book", "https://www.cloudstrategybook.com/", "https://www.platformstrategybook.info/"]} {"url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/TransactionalClient.html", "titulek": "Transactional Client - Enterprise Integration Patterns", "h1": "", "popis": "How can a client control its transactions with the messaging system?", "klicova_slova": "Transactional Client,integration, messaging, events, patterns, event-driven, coupling, eai, middleware, application integration, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns", "og:title": "Transactional Client - Enterprise Integration Patterns", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/TransactionalClient.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/TransactionalClientSolution.gif"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Example: (Not quite) Transactional Client in Amazon SQSNEW"}, {"uroven": 2, "text": "Integration Pattern Language"}], "markdown": "| | Transactional Client[Messaging Patterns](index.html) » [Messaging Endpoints](MessagingEndpointsIntro.html) | [Contents](toc.html)[⇐ Prev](MessagingMapper.html)[Next ⇒](PollingConsumer.html) |\n| --- | --- | --- |\n\nA messaging system, by necessity, uses transactional behavior internally. It may be useful for an external client to be able to control the scope of the transactions that impact its behavior.\n\nHow can a client control its transactions with the messaging system?\n\nUse a *Transactional Client*—make the client’s session with the messaging system transactional so that the client can specify transaction boundaries.\n\nBoth a sender and a receiver can be transactional. With a sender, the message isn’t “really” added to the channel until the sender commits the transaction. With a receiver, the message isn’t “really” removed from the channel until the receiver commits the transaction. A sender that uses explicit transactions can be used with a receiver that uses implicit transactions, and vise versa. A single channel might have a combination of implicitly and explicitly transactional senders; it could also have a combination of receivers.\n\n...\nRead the entire pattern in the book [Enterprise Integration Patterns](/books1.html)\n\n## Example: (Not quite) Transactional Client in Amazon SQS[NEW](/ramblings/eip1_examples_updated.html)\n\n*Transactional Client* semantics can cause serious performance degradation in widely distributed systems. Many cloud-based messaging systems therefore don't implement *Transactional Client*s. However, these systems still aim to provide protection against client s crashing after they consume but before they process a message. The [Amazon Simple Queuing Service (SQS)](https://aws.amazon.com/sqs) provides this protection via so-called *Visibility Timeout*. In this configuration, message consumers don't actually remove messages from the queue - the message simply becomes invisible to other consumers. After successfully processing the message, a message consumer must explicitly delete the message from the queue. If a message is not deleted, it becomes visible again to other consumers after the set timeout interval expires.\n\nThe book *Cloud Computing Patterns* documents this behavior as a distinct pattern called [Time-out Based Delivery](http://www.cloudcomputingpatterns.org/timeout_based_delivery/).\n\n**Related patterns:**\n\n[*Channel Adapter*](ChannelAdapter.html), [*Competing Consumers*](CompetingConsumers.html), [*Document Message*](DocumentMessage.html), [*Event-Driven Consumer*](EventDrivenConsumer.html), [*Event Message*](EventMessage.html), [*Guaranteed Delivery*](GuaranteedMessaging.html), [*Message*](Message.html), [*Message Channel*](MessageChannel.html), [*Message Dispatcher*](MessageDispatcher.html), [*Message Endpoint*](MessageEndpoint.html), [*Message Router*](MessageRouter.html), [*Message Sequence*](MessageSequence.html), [*Message Translator*](MessageTranslator.html), [*Messaging Bridge*](MessagingBridge.html), [*Pipes and Filters*](PipesAndFilters.html), [*Point-to-Point Channel*](PointToPointChannel.html), [*Polling Consumer*](PollingConsumer.html), [*Publish-Subscribe Channel*](PublishSubscribeChannel.html), [*Request-Reply*](RequestReply.html), [*Resequencer*](Resequencer.html)\n\n---\n\n## Integration Pattern Language\n\n[Message Construct.](MessageConstructionIntro.html)\n\n[Message](Message.html)\n\n[Command Message](CommandMessage.html)\n\n[Document Message](DocumentMessage.html)\n\n[Event Message](EventMessage.html)\n\n[Request-Reply](RequestReply.html)\n\n[Return Address](ReturnAddress.html)\n\n[Correlation Identifier](CorrelationIdentifier.html)\n\n[Message Sequence](MessageSequence.html)\n\n[Message Expiration](MessageExpiration.html)\n\n[Format Indicator](FormatIndicator.html)\n\n[Message Routing](MessageRoutingIntro.html)\n\n[Pipes-and-Filters](PipesAndFilters.html)\n\n[Message Router](MessageRouter.html)\n\n[Content-based Router](ContentBasedRouter.html)\n\n[Message Filter](Filter.html)\n\n[Dynamic Router](DynamicRouter.html)\n\n[Recipient List](RecipientList.html)\n\n[Splitter](Sequencer.html)\n\n[Aggregator](Aggregator.html)\n\n[Resequencer](Resequencer.html)\n\n[Composed Msg. Processor](DistributionAggregate.html)\n\n[Scatter-Gather](BroadcastAggregate.html)\n\n[Routing Slip](RoutingTable.html)\n\n[Process Manager](ProcessManager.html)\n\n[Message Broker](MessageBroker.html)\n\n[Message\nTransformation](MessageTransformationIntro.html)\n\n[Message Translator](MessageTranslator.html)\n\n[Envelope Wrapper](EnvelopeWrapper.html)\n\n[Content Enricher](DataEnricher.html)\n\n[Content Filter](ContentFilter.html)\n\n[Claim Check](StoreInLibrary.html)\n\n[Normalizer](Normalizer.html)\n\n[Canonical Data Model](CanonicalDataModel.html)\n\n[Messaging Endpoints](MessagingEndpointsIntro.html)\n\n[Message Endpoint](MessageEndpoint.html)\n\n[Messaging Gateway](MessagingGateway.html)\n\n[Messaging Mapper](MessagingMapper.html)\n\n[Transactional Client](TransactionalClient.html)\n\n[Polling Consumer](PollingConsumer.html)\n\n[Event-driven Consumer](EventDrivenConsumer.html)\n\n[Competing Consumers](CompetingConsumers.html)\n\n[Message Dispatcher](MessageDispatcher.html)\n\n[Selective Consumer](MessageSelector.html)\n\n[Durable Subscriber](DurableSubscription.html)\n\n[Idempotent Receiver](IdempotentReceiver.html)\n\n[Service Activator](MessagingAdapter.html)\n\n[Messaging Channels](MessagingChannelsIntro.html)\n\n[Message Channel](MessageChannel.html)\n\n[Point-to-Point Channel](PointToPointChannel.html)\n\n[Publish-Subscr. Channel](PublishSubscribeChannel.html)\n\n[Datatype Channel](DatatypeChannel.html)\n\n[Invalid Message Channel](InvalidMessageChannel.html)\n\n[Dead Letter Channel](DeadLetterChannel.html)\n\n[Guaranteed Delivery](GuaranteedMessaging.html)\n\n[Channel Adapter](ChannelAdapter.html)\n\n[Messaging Bridge](MessagingBridge.html)\n\n[Message Bus](MessageBus.html)\n\n[Systems Mgmt.](SystemManagementIntro.html)\n\n[Control Bus](ControlBus.html)\n\n[Detour](Detour.html)\n\n[Wire Tap](WireTap.html)\n\n[Message History](MessageHistory.html)\n\n[Message Store](MessageStore.html)\n\n[Smart Proxy](SmartProxy.html)\n\n[Test Message](TestMessage.html)\n\n[Channel Purger](ChannelPurger.html)", "znaku_textu": 5989, "slov": 531, "odkazu": 111, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/TransactionalClient.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 06:02:53", "sha256": "4c68a9d914e3aef5c2d003ee0b823a0954189713cf3e1b949d533234a65a93c9", "hloubka": 1, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://aws.amazon.com/sqs", "http://www.cloudcomputingpatterns.org/timeout_based_delivery/", "http://creativecommons.org/licenses/by/4.0/", "https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "https://www.architectelevator.com/book", "https://www.cloudstrategybook.com/", "https://www.platformstrategybook.info/"]} {"url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/WireTap.html", "titulek": "Wire Tap - Enterprise Integration Patterns", "h1": "", "popis": "How do you inspect messages that travel on a point-to-point channel?", "klicova_slova": "Wire Tap,integration, messaging, events, patterns, event-driven, coupling, eai, middleware, application integration, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns", "og:title": "Wire Tap - Enterprise Integration Patterns", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/WireTap.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/WireTap.gif"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Integration Pattern Language"}], "markdown": "Messaging Patterns\n\n[Messaging Patterns](index.html)\n\n- [Integration Styles](IntegrationStylesIntro.html)\n- [Messaging Systems](MessagingComponentsIntro.html)\n- [Messaging Channels](MessagingChannelsIntro.html)\n- [Message Construction](MessageConstructionIntro.html)\n- [Interlude: Simple Messaging](SimpleMessagingIntro.html)\n- [Message Routing](MessageRoutingIntro.html)\n- [Message Transformation](MessageTransformationIntro.html)\n- [Interlude: Composed Messaging](ComposedMessagingExample.html)\n- [Messaging Endpoints](MessagingEndpointsIntro.html)\n- [System Management](SystemManagementIntro.html)\n- Interlude: Systems Management Example\n- Integration Patterns in Practice\n- Concluding Remarks\n- Appendices\n\n| | Wire Tap[Messaging Patterns](index.html) » [System Management](SystemManagementIntro.html) | [Contents](toc.html)[⇐ Prev](Detour.html)[Next ⇒](MessageHistory.html) |\n| --- | --- | --- |\n\n[*Point-to-Point Channel*](PointToPointChannel.html)s are often used for [*Document Message*](DocumentMessage.html)s because they ensure that exactly one consumer will consume each message. However, for testing, monitoring or troubleshooting, it may be useful to be able to inspect all messages that travel across the channel.\n\nHow do you inspect messages that travel on a point-to-point channel?\n\nInsert a simple Recipient List into the channel that publishes each incoming message to the main channel and a secondary channel.\n\nThe *Wire Tap* is a fixed [*Recipient List*](RecipientList.html) with two output channels. It consumes messages off the input channel and publishes the unmodified message to both output channels. To insert the *Wire Tap* into a channel, you need to create an additional channel and change the destination receiver to consume of the second channel. Because the analysis logic is located inside a second component, we can insert a generic *Wire Tap* into any channel without any danger of modifying the primary channel behavior. This improves reuse and reduces the risk of instrumenting an existing solution.\n\n...\nRead the entire pattern in the book [Enterprise Integration Patterns](/books1.html)\n\n**Related patterns:**\n\n[*Competing Consumers*](CompetingConsumers.html), [*Control Bus*](ControlBus.html), [*Detour*](Detour.html), [*Document Message*](DocumentMessage.html), [*Message Broker*](MessageBroker.html), [*Message Store*](MessageStore.html), [*Point-to-Point Channel*](PointToPointChannel.html), [*Publish-Subscribe Channel*](PublishSubscribeChannel.html), [*Recipient List*](RecipientList.html), [*Loan Broker System Management*](SystemManagementExample.html)\n\n---\n\n## Integration Pattern Language\n\n[Message Construct.](MessageConstructionIntro.html)\n\n[Message](Message.html)\n\n[Command Message](CommandMessage.html)\n\n[Document Message](DocumentMessage.html)\n\n[Event Message](EventMessage.html)\n\n[Request-Reply](RequestReply.html)\n\n[Return Address](ReturnAddress.html)\n\n[Correlation Identifier](CorrelationIdentifier.html)\n\n[Message Sequence](MessageSequence.html)\n\n[Message Expiration](MessageExpiration.html)\n\n[Format Indicator](FormatIndicator.html)\n\n[Message Routing](MessageRoutingIntro.html)\n\n[Pipes-and-Filters](PipesAndFilters.html)\n\n[Message Router](MessageRouter.html)\n\n[Content-based Router](ContentBasedRouter.html)\n\n[Message Filter](Filter.html)\n\n[Dynamic Router](DynamicRouter.html)\n\n[Recipient List](RecipientList.html)\n\n[Splitter](Sequencer.html)\n\n[Aggregator](Aggregator.html)\n\n[Resequencer](Resequencer.html)\n\n[Composed Msg. Processor](DistributionAggregate.html)\n\n[Scatter-Gather](BroadcastAggregate.html)\n\n[Routing Slip](RoutingTable.html)\n\n[Process Manager](ProcessManager.html)\n\n[Message Broker](MessageBroker.html)\n\n[Message\nTransformation](MessageTransformationIntro.html)\n\n[Message Translator](MessageTranslator.html)\n\n[Envelope Wrapper](EnvelopeWrapper.html)\n\n[Content Enricher](DataEnricher.html)\n\n[Content Filter](ContentFilter.html)\n\n[Claim Check](StoreInLibrary.html)\n\n[Normalizer](Normalizer.html)\n\n[Canonical Data Model](CanonicalDataModel.html)\n\n[Messaging Endpoints](MessagingEndpointsIntro.html)\n\n[Message Endpoint](MessageEndpoint.html)\n\n[Messaging Gateway](MessagingGateway.html)\n\n[Messaging Mapper](MessagingMapper.html)\n\n[Transactional Client](TransactionalClient.html)\n\n[Polling Consumer](PollingConsumer.html)\n\n[Event-driven Consumer](EventDrivenConsumer.html)\n\n[Competing Consumers](CompetingConsumers.html)\n\n[Message Dispatcher](MessageDispatcher.html)\n\n[Selective Consumer](MessageSelector.html)\n\n[Durable Subscriber](DurableSubscription.html)\n\n[Idempotent Receiver](IdempotentReceiver.html)\n\n[Service Activator](MessagingAdapter.html)\n\n[Messaging Channels](MessagingChannelsIntro.html)\n\n[Message Channel](MessageChannel.html)\n\n[Point-to-Point Channel](PointToPointChannel.html)\n\n[Publish-Subscr. Channel](PublishSubscribeChannel.html)\n\n[Datatype Channel](DatatypeChannel.html)\n\n[Invalid Message Channel](InvalidMessageChannel.html)\n\n[Dead Letter Channel](DeadLetterChannel.html)\n\n[Guaranteed Delivery](GuaranteedMessaging.html)\n\n[Channel Adapter](ChannelAdapter.html)\n\n[Messaging Bridge](MessagingBridge.html)\n\n[Message Bus](MessageBus.html)\n\n[Systems Mgmt.](SystemManagementIntro.html)\n\n[Control Bus](ControlBus.html)\n\n[Detour](Detour.html)\n\n[Wire Tap](WireTap.html)\n\n[Message History](MessageHistory.html)\n\n[Message Store](MessageStore.html)\n\n[Smart Proxy](SmartProxy.html)\n\n[Test Message](TestMessage.html)\n\n[Channel Purger](ChannelPurger.html)\n\n- » [Read the latest in My Blog](/ramblings)\n- » [Get more insights from My Articles](/articles.html)\n- » [See me live in my Upcoming Talks](/talks)\n\nYou can reuse the following elements under the [Creative Commons Attribution](http://creativecommons.org/licenses/by/4.0/) license: pattern icon, pattern name, problem and solution statements (in bold), and the sketch. Other portions are protected by copyright.\n\n[Enterprise Integration Patterns](https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20)\nThe de-facto language for designing asynchronous, distributed systems. Over 100,000 copies sold.\n\n[The Software Architect Elevator](https://www.architectelevator.com/book)\n\n Rethink the role of architects as a connecting element across organizational layers. Acquire the technical, communication, and organizational skills to succeed in this new role.\n\n[Cloud Strategy](https://www.cloudstrategybook.com)\n\n Make your cloud migration a success by translating high-level goals into conscious decisions with well-understood trade-offs.\n\n[Platform Strategy](https://www.platformstrategybook.info)\n\n Platforms can boost innovation through harmonization, but they aren't easy to build. Learn from over a decade of designing and rolling out IT platforms.", "znaku_textu": 6552, "slov": 568, "odkazu": 108, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/WireTap.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 06:03:05", "sha256": "b275e1b1f27150cd5c5078d83113648b86702c8f2140380c8142cf9c5b6502cb", "hloubka": 1, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://creativecommons.org/licenses/by/4.0/", "https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "https://www.architectelevator.com/book", "https://www.cloudstrategybook.com/", "https://www.platformstrategybook.info/"]} {"url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/bib.html", "titulek": "Bibliography - Enterprise Integration Patterns", "h1": "", "popis": "Bibliography - Enterprise Integration Patterns", "klicova_slova": "Bibliography,integration, messaging, events, patterns, event-driven, coupling, eai, middleware, application integration, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns", "og:title": "Bibliography - Enterprise Integration Patterns", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/bib.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/eip1_patterns_wide.png"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Integration Pattern Language"}], "markdown": "| | Bibliography[Messaging Patterns](index.html) » Appendices | [Contents](toc.html)[⇐ Prev](Future.html)[Next ⇒](history.html) |\n| --- | --- | --- |\n\n**Alexander**\nC. Alexander, S. Ishikawa, M Silverstein,\n *A Pattern Language - Towns Buildings Construction,*Oxford University Press, 1977, \n ISBN: [0195019199](http://www.amazon.com/exec/obidos/ASIN/0195019199/enterpriseint-20)\nProbably the most quoted book in any work related to patterns. I actually used a number of Alexander's patterns to design a beach house for an interior architecture class. It is interesting to note that Alexander's desire to dissect architecture and design into a set of composable constructs may stem from his study of mathematics. His thesis published as \"Notes on the synthesis of form\" references a set of programs that he developed in IBM 7090 assembly code. So the tremendous success of Alexander's patterns in the software community is not quite coincidental.\n\n**Alpert**\nS. Alpert, K. Brown, B. Woolf,\n *The Design Patterns Smalltalk Companion,*Addison-Wesley, 1998, \n ISBN: [0201184621](http://www.amazon.com/exec/obidos/ASIN/0201184621/enterpriseint-20)\n\n**Box**\nDon Box,\n *Essential .NET, Volume 1: the Common Language Runtime,*Addison-Wesley, 2002, \n ISBN: [0201734117](http://www.amazon.com/exec/obidos/ASIN/0201734117/enterpriseint-20)\nMore than you ever wanted to know about the inner workings of the CLR...\n\n**BPEL4WS**\n*Business Process Execution Language for Web Services, Version 1.0,*[http://www.ibm.com/developerworks/webservices/library/ws-bpel](http://www.ibm.com/developerworks/webservices/library/ws-bpel)\n\n**CSP**\nC. A. R. Hoare,\n *Communicating Sequential Processes,*Communications of the ACM , 1978, [http://doi.acm.org/10.1145/359576.359585](http://doi.acm.org/10.1145/359576.359585)\nACM on-line library access is required to see the full-text version of this article.\n\n**CoreJ2EE**\nAlur, Crupi, Malks,\n *Core J2EE Patterns: Best Practices and Design Strategies (2nd Edition),*Prentice Hall PTR, 2003, \n ISBN: [0131422464](http://www.amazon.com/exec/obidos/ASIN/0131422464/enterpriseint-20)\n\n**Dickman**\nAlan Dickman,\n *Designing Applications with MSMQ,*Addison-Wesley, 1998, \n ISBN: [0201325810](http://www.amazon.com/exec/obidos/ASIN/0201325810/enterpriseint-20)\n\n**Douglass**\nBruce Powel Douglass,\n *Real-Time Design Patterns,*Addison-Wesley, 2003, \n ISBN: [0201699567](http://www.amazon.com/exec/obidos/ASIN/0201699567/enterpriseint-20)\nThis book proves the transportability of patterns across domains. Some of Douglass' reliability patterns prove very useful in the context of enterprise messaging.\n\n**EAA**\nMartin Fowler,\n *Patterns of Enterprise Application Architecture,*Addison-Wesley, 2003, \n ISBN: [0321127420](http://www.amazon.com/exec/obidos/ASIN/0321127420/enterpriseint-20)\nThe most comprehensive book yet on application architecture patterns. Even though it covers 51 patterns, it is an easy and interesting read while never sacrificing technical accuracy. OK, just buy the dang book :-)\n\n**EJB20**\n*Enterprise JavaBeans Specification, Version 2.0,*[http://java.sun.com/products/ejb/docs.html](http://java.sun.com/products/ejb/docs.html)\n\n**Garlan**\nMary Shaw, Garlan David,\n *Software Architecture: Perspectives on an Emerging Discipline,*Prentice Hall, 1996, \n ISBN: [0131829572](http://www.amazon.com/exec/obidos/ASIN/0131829572/enterpriseint-20)\n\n**GoF**\nErich Gamma, Richard Helm, Ralph Johnson, John Vlissides,\n *Design Patterns: Elements of Reusable Object-Oriented Software,*Addison-Wesley, 1995, \n ISBN: [0201633612](http://www.amazon.com/exec/obidos/ASIN/0201633612/enterpriseint-20)\nSurely the second most quoted book in any work on patterns.\n\n**Graham02**\nSteve Graham, Simon Simeonov, Toufic Boubez, Glen Daniels, Doug Davis, Yuichi Nakamura, Ryo Nyeama,\n *Building Web Services with Java: Making Sense of XML, SOAP and UDDI,*SAMS Publishing, 2002, \n ISBN: [0672321815](http://www.amazon.com/exec/obidos/ASIN/0672321815/enterpriseint-20)\n\n**Hohmann**\nLuke Hohmann,\n *Beyond Software Architecture: Creating and Sustaining Winning Solutions,*Addison-Wesley, 2003, \n ISBN: [0201775948](http://www.amazon.com/exec/obidos/ASIN/0201775948/enterpriseint-20)\n\n**Hapner**\nMark Hapner, Rich Burridge, Rahul Sharma, Joseph Fialli, Kim Haase,\n *Java Messaging Service API Tutorial and Reference,*Addison-Wesley, 2002, \n ISBN: [0201784726](http://www.amazon.com/exec/obidos/ASIN/0201784726/enterpriseint-20)\n\n**JMS**\n*Java Message Service (JMS),*Sun Microsystems, [http://java.sun.com/products/jms/](http://java.sun.com/products/jms/)\n\n**JMS11**\n*Java Message Service (the Sun Java Message Service (JMS) 1.1 Specification),*Sun Microsystems, [http://java.sun.com/products/jms/docs.html](http://java.sun.com/products/jms/docs.html)\n\n**JTA**\n*Transactions and Java Technology,*[http://java.sun.com/j2ee/transactions.html](http://java.sun.com/j2ee/transactions.html)\n\n**Kahn**\nG. Kahn,\n *The Semantics of a Simple Language for Parallel Programming, Information Processing 74: Proc. IFIP Congress 74,*North-Holland Publishing Co., 1974,\n\n**Kaye**\nDoug Kaye,\n *Loosely Coupled: The Missing Pieces of Web Services,*RDS Press, 2003, \n ISBN: [1881378241](http://www.amazon.com/exec/obidos/ASIN/1881378241/enterpriseint-20)\nA refreshing look at Web services. Instead of wading through APIs we get to read about the core principles at work in Service-Oriented Architectures in a technology-neutral jargon-free way. This book is likely too high-level for developers itching to make that SOAP call but it is ideal for technical managers and architects who have to explain these concepts to non-techies.\n\n**Kent**\nWilliam Kent,\n *Data and Reality,*1stBooks, 2000, \n ISBN: [1585009709](http://www.amazon.com/exec/obidos/ASIN/1585009709/enterpriseint-20)\nA classic book (the original edition is from 1978) that tells us why modeling reality inside a computer system is so hard. You can hardcover at Amazon for $45, but 1stBooks offers an electronic version for $8.95 or a $30 paperback version at http://www.1stbooks.com.\n\n**Lewis**\nRhys Lewis,\n *Advanced Messaging Applications with MSMQ and MQSeries,*Que, 2000, \n ISBN: [078972023X](http://www.amazon.com/exec/obidos/ASIN/078972023X/enterpriseint-20)\n\n**Leyman**\nFrank Leyman, et al.,\n *Production Workflow: Concepts and Techniques,*Prentice-Hall PTR, 1999, \n ISBN: [0130217530](http://www.amazon.com/exec/obidos/ASIN/0130217530/enterpriseint-20)\n\n**MDMSG**\n*Multiple-Destination Messaging,*[http://msdn.microsoft.com/library/](http://msdn.microsoft.com/library/)\n\n**Monson-Haefel**\nRichard Monson-Haefel and David A. Chappell,\n *Java Message Service,*O’Reilly, 2001, \n ISBN: [0596000685](http://www.amazon.com/exec/obidos/ASIN/0596000685/enterpriseint-20)\n\n**MicroWorkflow**\nDragos Manolescu,\n *Micro-Workflow: A Workflow Architecture Supporting Compositional Object-Oriented Software Development,*[http://micro-workflow.com/PhDThesis/phdthesis.pdf](http://micro-workflow.com/PhDThesis/phdthesis.pdf)\n\n**Monroe**\nRobert T. Monroe, Drew Kompanek, Ralph Melton, David Garlan,\n *Stylized Architecture, Design Patterns, and Objects,*1996, [http://www-2.cs.cmu.edu/afs/cs/project/compose/ftp/pdf/ObjPatternsArch-ieee97.pdf](http://www-2.cs.cmu.edu/afs/cs/project/compose/ftp/pdf/ObjPatternsArch-ieee97.pdf)\n\n**MQSeries**\n*MQSeries from IBM,*[http://www.ibm.com/software/mqseries](http://www.ibm.com/software/mqseries)\n\n**MSMQ01**\n*Microsoft Message Queuing (MSMQ),*[http://www.microsoft.com/msmq](http://www.microsoft.com/msmq)\n\n**POSA**\nBuschmann et al,\n *Pattern-Oriented Software Architecture,*Wiley, 1996, \n ISBN: [0471958697](http://www.amazon.com/exec/obidos/ASIN/0471958697/enterpriseint-20)\nA great book on architecture and design patterns.\n\n**POSA2**\nSchmidt et al,\n *Pattern-Oriented Software Architecture Vol.2,*Wiley, 2000, \n ISBN: [0471606952](http://www.amazon.com/exec/obidos/ASIN/0471606952/enterpriseint-20)\nMore patterns focused on distributed systems and concurrency issues.\n\n**PatternForms**\n*Pattern Forms, Wiki-Wiki-Web,*[http://c2.com/cgi-bin/wiki?PatternForms](http://c2.com/cgi-bin/wiki?PatternForms)\nA list of commonly used pattern forms and their differences.\n\n**PLOPD1**\nJames Coplien, Douglas Schmidt (Editor),\n *Pattern Languages of Program Design,*Addision-Wesley, 1995, \n ISBN: [0201607344](http://www.amazon.com/exec/obidos/ASIN/0201607344/enterpriseint-20)\nThe proceedings from the first PLoP conference. These proceedings contain a lot of papers that formed the basis for later books, such as POSA. This volume contain's Frank Buschmann's and Regine Meunier's \"A System of Patterns\", Regine Meunier's \"The Pipes and Filters Architecture\", and Diane Mularz' \"Pattern-Based Integration Architectures\".\n\n**Sharp**\nAlec Sharp, Patrick McDermott ,\n *Workflow Modeling: Tools for Process Improvement and Application Development,*Artech House, 2001, \n ISBN: [1580530214](http://www.amazon.com/exec/obidos/ASIN/1580530214/enterpriseint-20)\nThis book focuses on the modeling aspect of workflow -- an interesting read for analysts and business architects alike.\n\n**SOAP 1.1**\n*W3C Simple Object Access Protocol (SOAP) 1.1 Specification,*[http://www.w3.org/TR/SOAP/](http://www.w3.org/TR/SOAP/)\n\n**SOAP 1.2 Part 2**\n*SOAP Version 1.2 Part 2: Adjuncts,*[http://www.w3.org/TR/soap12-part2/](http://www.w3.org/TR/soap12-part2/)\n\n**Stevens**\nW. Richard Stevens,\n *TCP/IP Illustrated, Volume 1: The Protocols,*Addison-Wesley, 1994, \n ISBN: [0201633469](http://www.amazon.com/exec/obidos/ASIN/0201633469/enterpriseint-20)\n\n**SysMsg**\n*System.Messaging Namespace in the .NET Framework SDK,*Microsoft, [http://msdn.microsoft.com/library/](http://msdn.microsoft.com/library/)\n\n**Tennison**\nJeni Tennison,\n *XSLT and XPath On The Edge,*John Wiley & Sons, 2001, \n ISBN: [0764547763](http://www.amazon.com/exec/obidos/ASIN/0764547763/enterpriseint-20)\n\n**UML**\n*UML Distilled: A Brief Guide to the Standard Object Modeling Language, Third Edition,*Addison-Wesley, 2003, \n ISBN: [0321193687](http://www.amazon.com/exec/obidos/ASIN/0321193687/enterpriseint-20)\n\n**UMLEAI**\n*UML Profile for Enterprise Application Integration,*Object Management Group , 2002, [http://cgi.omg.org/cgi-bin/doc?ptc/02-02-02](http://cgi.omg.org/cgi-bin/doc?ptc/02-02-02)\n\n**Wright**\nGary R. Wright, W. Richard Stevens,\n *TCP/IP Illustrated, Volume 2: The Implementation,*Addison-Wesley, 1995, \n ISBN: [020163354X](http://www.amazon.com/exec/obidos/ASIN/020163354X/enterpriseint-20)\n\n**WSAUS**\n*Web Services Architecture Usage Scenarios,*W3C, [http://www.w3.org/TR/ws-arch-scenarios/](http://www.w3.org/TR/ws-arch-scenarios/)\n\n**WSDL 1.1**\n*Web Services Description Language (WSDL) 1.1,*[http://www.w3.org/TR/wsdl](http://www.w3.org/TR/wsdl)\n\n**WSFL**\n*Web Services Flow Language,*IBM, [http://www-3.ibm.com/software/solutions/webservices/pdf/WSFL.pdf](http://www-3.ibm.com/software/solutions/webservices/pdf/WSFL.pdf)\n\n**WSMQ**\n*WebSphere MQ Using Java,*IBM, [http://publibfp.boulder.ibm.com/epubs/pdf/csqzaw11.pdf](http://publibfp.boulder.ibm.com/epubs/pdf/csqzaw11.pdf)\n\n**XML 1.0**\n*Extensible Markup Language (XML) 1.0 (Second Edition),*[http://www.w3.org/TR/REC-xml](http://www.w3.org/TR/REC-xml)\n\n**XSLT 1.0**\n*XSL Transformations (XSLT) Version 1.0 -- W3C Recommendation,*[http://www.w3.org/TR/xslt](http://www.w3.org/TR/xslt)\n\n**Waldo**\nWaldo, J., Wyant, G., Wollrath, A., and Kendall, S.,\n *A Note on Distributed Computing, Technical Report SMLI TR-94-29,*Sun Microsystems Laboratories, November 1994, [http://citeseer.nj.nec.com/waldo94note.html](http://citeseer.nj.nec.com/waldo94note.html)\n\n**Zahavi**\nRon Zahavi,\n *Enterprise Application Integration with CORBA ,*John Wiley & Sons, 1999, \n ISBN: [0471327204](http://www.amazon.com/exec/obidos/ASIN/0471327204/enterpriseint-20)\n\n## Integration Pattern Language\n\n[Message Construct.](MessageConstructionIntro.html)\n\n[Message](Message.html)\n\n[Command Message](CommandMessage.html)\n\n[Document Message](DocumentMessage.html)\n\n[Event Message](EventMessage.html)\n\n[Request-Reply](RequestReply.html)\n\n[Return Address](ReturnAddress.html)\n\n[Correlation Identifier](CorrelationIdentifier.html)\n\n[Message Sequence](MessageSequence.html)\n\n[Message Expiration](MessageExpiration.html)\n\n[Format Indicator](FormatIndicator.html)\n\n[Message Routing](MessageRoutingIntro.html)\n\n[Pipes-and-Filters](PipesAndFilters.html)\n\n[Message Router](MessageRouter.html)\n\n[Content-based Router](ContentBasedRouter.html)\n\n[Message Filter](Filter.html)\n\n[Dynamic Router](DynamicRouter.html)\n\n[Recipient List](RecipientList.html)\n\n[Splitter](Sequencer.html)\n\n[Aggregator](Aggregator.html)\n\n[Resequencer](Resequencer.html)\n\n[Composed Msg. Processor](DistributionAggregate.html)\n\n[Scatter-Gather](BroadcastAggregate.html)\n\n[Routing Slip](RoutingTable.html)\n\n[Process Manager](ProcessManager.html)\n\n[Message Broker](MessageBroker.html)\n\n[Message\nTransformation](MessageTransformationIntro.html)\n\n[Message Translator](MessageTranslator.html)\n\n[Envelope Wrapper](EnvelopeWrapper.html)\n\n[Content Enricher](DataEnricher.html)\n\n[Content Filter](ContentFilter.html)\n\n[Claim Check](StoreInLibrary.html)\n\n[Normalizer](Normalizer.html)\n\n[Canonical Data Model](CanonicalDataModel.html)\n\n[Messaging Endpoints](MessagingEndpointsIntro.html)\n\n[Message Endpoint](MessageEndpoint.html)\n\n[Messaging Gateway](MessagingGateway.html)\n\n[Messaging Mapper](MessagingMapper.html)\n\n[Transactional Client](TransactionalClient.html)\n\n[Polling Consumer](PollingConsumer.html)\n\n[Event-driven Consumer](EventDrivenConsumer.html)\n\n[Competing Consumers](CompetingConsumers.html)\n\n[Message Dispatcher](MessageDispatcher.html)\n\n[Selective Consumer](MessageSelector.html)\n\n[Durable Subscriber](DurableSubscription.html)\n\n[Idempotent Receiver](IdempotentReceiver.html)\n\n[Service Activator](MessagingAdapter.html)\n\n[Messaging Channels](MessagingChannelsIntro.html)\n\n[Message Channel](MessageChannel.html)\n\n[Point-to-Point Channel](PointToPointChannel.html)\n\n[Publish-Subscr. Channel](PublishSubscribeChannel.html)\n\n[Datatype Channel](DatatypeChannel.html)\n\n[Invalid Message Channel](InvalidMessageChannel.html)\n\n[Dead Letter Channel](DeadLetterChannel.html)\n\n[Guaranteed Delivery](GuaranteedMessaging.html)\n\n[Channel Adapter](ChannelAdapter.html)\n\n[Messaging Bridge](MessagingBridge.html)\n\n[Message Bus](MessageBus.html)\n\n[Systems Mgmt.](SystemManagementIntro.html)\n\n[Control Bus](ControlBus.html)\n\n[Detour](Detour.html)\n\n[Wire Tap](WireTap.html)\n\n[Message History](MessageHistory.html)\n\n[Message Store](MessageStore.html)\n\n[Smart Proxy](SmartProxy.html)\n\n[Test Message](TestMessage.html)\n\n[Channel Purger](ChannelPurger.html)", "znaku_textu": 14280, "slov": 1298, "odkazu": 156, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/patterns/messaging/bib.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 06:03:14", "sha256": "297e25e189654747651c2461356ed47a597c271dac0219e2ebffbd970d22a886", "hloubka": 1, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://www.amazon.com/exec/obidos/ASIN/0195019199/enterpriseint-20", "http://www.amazon.com/exec/obidos/ASIN/0201184621/enterpriseint-20", "http://www.amazon.com/exec/obidos/ASIN/0201734117/enterpriseint-20", "http://www.ibm.com/developerworks/webservices/library/ws-bpel", "http://doi.acm.org/10.1145/359576.359585", "http://www.amazon.com/exec/obidos/ASIN/0131422464/enterpriseint-20", "http://www.amazon.com/exec/obidos/ASIN/0201325810/enterpriseint-20", "http://www.amazon.com/exec/obidos/ASIN/0201699567/enterpriseint-20", "http://www.amazon.com/exec/obidos/ASIN/0321127420/enterpriseint-20", "http://java.sun.com/products/ejb/docs.html", "http://www.amazon.com/exec/obidos/ASIN/0131829572/enterpriseint-20", "http://www.amazon.com/exec/obidos/ASIN/0201633612/enterpriseint-20", "http://www.amazon.com/exec/obidos/ASIN/0672321815/enterpriseint-20", "http://www.amazon.com/exec/obidos/ASIN/0201775948/enterpriseint-20", "http://www.amazon.com/exec/obidos/ASIN/0201784726/enterpriseint-20", "http://java.sun.com/products/jms/", "http://java.sun.com/products/jms/docs.html", "http://java.sun.com/j2ee/transactions.html", "http://www.amazon.com/exec/obidos/ASIN/1881378241/enterpriseint-20", "http://www.amazon.com/exec/obidos/ASIN/1585009709/enterpriseint-20", "http://www.amazon.com/exec/obidos/ASIN/078972023X/enterpriseint-20", "http://www.amazon.com/exec/obidos/ASIN/0130217530/enterpriseint-20", "http://msdn.microsoft.com/library/", "http://www.amazon.com/exec/obidos/ASIN/0596000685/enterpriseint-20", "http://micro-workflow.com/PhDThesis/phdthesis.pdf", "http://www-2.cs.cmu.edu/afs/cs/project/compose/ftp/pdf/ObjPatternsArch-ieee97.pdf", "http://www.ibm.com/software/mqseries", "http://www.microsoft.com/msmq", "http://www.amazon.com/exec/obidos/ASIN/0471958697/enterpriseint-20", "http://www.amazon.com/exec/obidos/ASIN/0471606952/enterpriseint-20", "http://c2.com/cgi-bin/wiki?PatternForms=", "http://www.amazon.com/exec/obidos/ASIN/0201607344/enterpriseint-20", "http://www.amazon.com/exec/obidos/ASIN/1580530214/enterpriseint-20", "http://www.w3.org/TR/SOAP/", "http://www.w3.org/TR/soap12-part2/", "http://www.amazon.com/exec/obidos/ASIN/0201633469/enterpriseint-20", "http://www.amazon.com/exec/obidos/ASIN/0764547763/enterpriseint-20", "http://www.amazon.com/exec/obidos/ASIN/0321193687/enterpriseint-20", "http://cgi.omg.org/cgi-bin/doc?ptc%2F02-02-02=", "http://www.amazon.com/exec/obidos/ASIN/020163354X/enterpriseint-20", "http://www.w3.org/TR/ws-arch-scenarios/", "http://www.w3.org/TR/wsdl", "http://www-3.ibm.com/software/solutions/webservices/pdf/WSFL.pdf", "http://publibfp.boulder.ibm.com/epubs/pdf/csqzaw11.pdf", "http://www.w3.org/TR/REC-xml", "http://www.w3.org/TR/xslt", "http://citeseer.nj.nec.com/waldo94note.html", "http://www.amazon.com/exec/obidos/ASIN/0471327204/enterpriseint-20", "https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "https://www.architectelevator.com/book", "https://www.cloudstrategybook.com/", "https://www.platformstrategybook.info/", "https://www.amazon.com/exec/obidos/redirect-home/enterpriseint-20"]} {"url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/history.html", "titulek": "Revision History - Enterprise Integration Patterns", "h1": "", "popis": "The book is out in the stores now, so I have to take the full pattern content off the site. I will keep the catalog of all patterns, but each pattern will be shortened, essentially to context, problem, solution and the picture. This way we can continue to use the site as a reference for the pattern language without getting into trouble with the publisher.Lots of edits and additions. I added a new introductory chapter with a longer design example (Solving Integration Problems using Patterns). We also have a TIBCO implementation for the Loan Broker example (Asynchronous Implementation with TIBCO ActiveEnterprise) and show how to instrument the MSMQ version of the example (Loan Broker System Management). Plus tons of edits, more examples, more pictures.Lots of activity. Bobby added Request-Reply to the Message Construction section and I added Wire Tap, Detour and Smart Proxy to the System Management section. Also major updates to the Channel Adapter.Major edits over the routing patterns: Message Router. Renamed Routing Table to Routing Slip -- the old named clashed with common usage in the networking world. Also, I added the Dynamic Router.I rewrote the Message History so that the primary motivation is debugging and analyzing the system. Avoiding circular references is a side benefit of the solution.I added the Channel Purger pattern.I added Martin's 'Integration Style' patterns. Still missing pictures, but coming soon... This brings the total to 61 patterns.I keep on finding new patterns. I just added the Messaging Mapper. Accordingly, I renamed the BidHelper class in the Aggregator code sample into BidMapper.I created a new section at the bottom of each pattern page listing all related patterns . The section contains links to all patterns that are mentioned anywhere in the pattern description. If a pattern name displays here without a link it indicates that the pattern has not been developed yet. I wanted to save everybody the 'under construction' pages...I Modified my stylesheet to make the text more readable on Netscape's browser. Sorry for the inconvenience.I added the Message Translator and moved most of the material from the intro into structural transformations into this pattern.The site goes life. I convert my original Word document into XML files and create XSL transformations to render the HTML page.", "klicova_slova": "Revision History,integration, messaging, events, patterns, event-driven, coupling, eai, middleware, application integration, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns", "og:title": "Revision History - Enterprise Integration Patterns", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/history.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/eip1_patterns_wide.png"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "October 2003"}, {"uroven": 2, "text": "July 2003"}, {"uroven": 2, "text": "June 2003"}, {"uroven": 2, "text": "May 2003"}, {"uroven": 2, "text": "Apr 2003"}, {"uroven": 2, "text": "Mar 2003"}, {"uroven": 2, "text": "Feb 2003"}, {"uroven": 2, "text": "Jan 2003"}, {"uroven": 2, "text": "Dec 2002"}, {"uroven": 2, "text": "Oct 2002"}, {"uroven": 2, "text": "Sept 2002"}, {"uroven": 2, "text": "Aug 2002"}, {"uroven": 2, "text": "Integration Pattern Language"}], "markdown": "| | Revision History[Messaging Patterns](index.html) » Appendices | [Contents](toc.html)[⇐ Prev](bib.html) |\n| --- | --- | --- |\n\n## October 2003\n\nThe book is out in the stores now, so I have to take the full pattern content off the site. I will keep the catalog of all patterns, but each pattern will be shortened, essentially to context, problem, solution and the picture. This way we can continue to use the site as a reference for the pattern language without getting into trouble with the publisher.\n\n## July 2003\n\nLots of edits and additions. I added a new introductory chapter with a longer design example ([*Solving Integration Problems using Patterns*](Chapter1.html)). We also have a TIBCO implementation for the Loan Broker example ([*Asynchronous Implementation with TIBCO ActiveEnterprise*](ComposedMessagingTIBCO.html)) and show how to instrument the MSMQ version of the example ([*Loan Broker System Management*](SystemManagementExample.html)). Plus tons of edits, more examples, more pictures.\n\n## June 2003\n\nLots of activity. Bobby added [*Request-Reply*](RequestReply.html) to the Message Construction section and I added [*Wire Tap*](WireTap.html), [*Detour*](Detour.html) and [*Smart Proxy*](SmartProxy.html) to the System Management section. Also major updates to the [*Channel Adapter*](ChannelAdapter.html).\n\nI added the [*Message Broker*](MessageBroker.html) pattern as an architectural pattern for message routing.\n\n## May 2003\n\nMajor edits over the routing patterns: [*Message Router*](MessageRouter.html). Renamed *Routing Table* to [*Routing Slip*](RoutingTable.html) -- the old named clashed with common usage in the networking world. Also, I added the [*Dynamic Router*](DynamicRouter.html).\n\nBobby made a pass over the endpoint patterns and rewrote the introduction into this chapter ([*Introduction to Messaging Endpoints*](MessagingEndpointsIntro.html)).\n\nI am in the process of incorporating feedback into the Message Routing chapter. I added a better comparison between the patterns to the [*Introduction to Message Routing*](MessageRoutingIntro.html). I also renamed the \"Distribution with Aggregate Response\" into [*Composed Message Processor*](DistributionAggregate.html) -- the name was way too long.\n\nI added a MSMQ implementation in C# for the composed messaging example ([*Asynchronous Implementation with MSMQ*](ComposedMessagingMSMQ.html)) It's fairly comprehensive and demonstrates the implementation of a number of patterns in a real application.\n\nBobby added the [*Messaging Bridge*](MessagingBridge.html) and reworked some of the channel patterns.\n\nI added a MSMQ example in C# to the [*Resequencer*](Resequencer.html). Most of the routing and transformation patterns now have real code examples.\n\nI also added the [*Introduction to Composed Messaging Examples*](ComposedMessagingExample.html) to be followed by three comprehensive code examples: Java / Apache AXIS, MSMQ and TIBCO pub-sub.\n\n## Apr 2003\n\nI rewrote the [*Message History*](MessageHistory.html) so that the primary motivation is debugging and analyzing the system. Avoiding circular references is a side benefit of the solution.\n\nI felt that the section on message Transformation could use a few more patterns. I added the [*Normalizer*](Normalizer.html). I also added some more detail to the [*Channel Purger*](ChannelPurger.html). I also made an editing pass over the [*Introduction to System Management*](SystemManagementIntro.html) patterns, including renaming the *EnvelopeWrapper* to [*Envelope Wrapper*](EnvelopeWrapper.html).\n\nI finally finished the [*Process Manager*](ProcessManager.html). Sean Neville contributed a nice section on [*Emerging Standards and Futures in Enterprise Integration*](Future.html).\n\nWe added intro sections to the individual chapters to introduce the patterns and to explain how they relate to each other.\n\nBobby merged the *Messaging Integration* and [*Messaging*](Messaging.html) patterns. We also added additional Web Services references to underline the relevance of these patterns to Web Services solutions.\n\n## Mar 2003\n\nI added the [*Channel Purger*](ChannelPurger.html) pattern.\n\nI added pictures to the Integration Styles patterns. Bobby added a JMS and a .Net example for basic messaging: [*JMS Request/Reply Example*](RequestReplyJmsExample.html) and [*.NET Request/Reply Example*](RequestReplyNetExample.html). Also, we now have pictures in all patterns.\n\nWe rearranged the patterns in the site to make it easier to read them from front to back. Now all the 'root patterns', mostly the first pattern of each chapter are collected in a new section labeled 'Messaging Systems'.\n\nI made a pass through the Transformation Patterns, adding an XSL example to the [*Message Translator*](MessageTranslator.html). I also added a reference to WS-Routing to the [*Routing Slip*](RoutingTable.html) pattern.\n\nI added the [*Idempotent Receiver*](IdempotentReceiver.html). Bobby made a number of edits to the Channel Patterns. I am currently making edits to the transformation patterns. I removed the dandling section on Structural Transformation patterns. I have a number of good ideas in this area, but it simply out of scope for now.\n\n## Feb 2003\n\nI added Martin's 'Integration Style' patterns. Still missing pictures, but coming soon... This brings the total to 61 patterns.\n\nWe integrated Bobby's Channel Patterns, Message Patterns and Endpoint Patterns. We have over 55 patterns now! We will slow down our search for new patterns and focus on adding more pictures, more detail and examples to the patterns we have.\n\n## Jan 2003\n\nI keep on finding new patterns. I just added the [*Messaging Mapper*](MessagingMapper.html). Accordingly, I renamed the BidHelper class in the [*Aggregator*](Aggregator.html) code sample into BidMapper.\n\n## Dec 2002\n\nI created a new section at the bottom of each pattern page listing all related patterns . The section contains links to all patterns that are mentioned anywhere in the pattern description. If a pattern name displays here without a link it indicates that the pattern has not been developed yet. I wanted to save everybody the 'under construction' pages...\n\nI made a complete editing pass over all of the routing patterns. [*Recipient List*](RecipientList.html) received a new icon and was moved up closer to [*Message Filter*](Filter.html) and [*Content-Based Router*](ContentBasedRouter.html). I added a placeholder for the [*Process Manager*](ProcessManager.html) pattern.\n\nI added the [*Resequencer*](Resequencer.html) pattern.\n\nI updated the [*Aggregator*](Aggregator.html) code sample to implement the MessageListener interface. I also added class and sequence diagrams.\n\nMy site was cross-linked from [TheServerSide](http://www.theserverside.com). 770 unique visitors in a day! The site has received over 12000 unique visitors so far.\n\nI think I finally got a handle on the font sizes on the site. They now display consistently on both IE 5.x and NS 4.x and are resizable. I hope this will resolve any readability problems. I guess I really am an enterprise architect and not a Web designer...\n\n## Oct 2002\n\nI Modified my stylesheet to make the text more readable on Netscape's browser. Sorry for the inconvenience.\n\nAdded a JMS example to [*Aggregator*](Aggregator.html).\n\nReversed [*Content Filter*](ContentFilter.html) and [*Claim Check*](StoreInLibrary.html) to improve flow. Rename *Store in Library* to [*Claim Check*](StoreInLibrary.html). Changed icon and expanded description of [*Claim Check*](StoreInLibrary.html).\n\nAdded the [*Message Filter*](Filter.html). Renamed Sequencer to [*Splitter*](Sequencer.html) since the sequence is not relevant. The Sequencer is simply a special case of the [*Splitter*](Sequencer.html). Also, changed the icons for [*Splitter*](Sequencer.html) and [*Aggregator*](Aggregator.html). Renamed *Broadcast with Aggregate Response* to (much shorter) [*Scatter-Gather*](BroadcastAggregate.html).\n\nI added a reference to CSP (Communicating Sequential Processes) to [*Pipes and Filters*](PipesAndFilters.html). Reworded the problem statement.\n\nI added [*Message Router*](MessageRouter.html) as the root to all routing patterns.\n\nI finally incorporated most of the feedback from PLoP 2002. Thanks again to all my reviewers.\n\n## Sept 2002\n\nI added the [*Message Translator*](MessageTranslator.html) and moved most of the material from the intro into structural transformations into this pattern.\n\nI regrouped the patterns and added placeholders for Kyle's and Bobby's patterns.\n\nI presented the paper at the [PLoP 2002 Conference](http://jerry.cs.uiuc.edu/~plop/plop2002/). I got a number of excellent comments that I will incorporate over the next weeks.\n\nStarted working on structural transformation patterns.\n\nI am getting about 100 visits a day. I add a fancier table of contents and a 'Quick Reference'\n\n## Aug 2002\n\nThe site goes life. I convert my original Word document into XML files and create XSL transformations to render the HTML page.\n\n## Integration Pattern Language\n\n[Message Construct.](MessageConstructionIntro.html)\n\n[Message](Message.html)\n\n[Command Message](CommandMessage.html)\n\n[Document Message](DocumentMessage.html)\n\n[Event Message](EventMessage.html)\n\n[Request-Reply](RequestReply.html)\n\n[Return Address](ReturnAddress.html)\n\n[Correlation Identifier](CorrelationIdentifier.html)\n\n[Message Sequence](MessageSequence.html)\n\n[Message Expiration](MessageExpiration.html)\n\n[Format Indicator](FormatIndicator.html)\n\n[Message Routing](MessageRoutingIntro.html)\n\n[Pipes-and-Filters](PipesAndFilters.html)\n\n[Message Router](MessageRouter.html)\n\n[Content-based Router](ContentBasedRouter.html)\n\n[Message Filter](Filter.html)\n\n[Dynamic Router](DynamicRouter.html)\n\n[Recipient List](RecipientList.html)\n\n[Splitter](Sequencer.html)\n\n[Aggregator](Aggregator.html)\n\n[Resequencer](Resequencer.html)\n\n[Composed Msg. Processor](DistributionAggregate.html)\n\n[Scatter-Gather](BroadcastAggregate.html)\n\n[Routing Slip](RoutingTable.html)\n\n[Process Manager](ProcessManager.html)\n\n[Message Broker](MessageBroker.html)\n\n[Message\nTransformation](MessageTransformationIntro.html)\n\n[Message Translator](MessageTranslator.html)\n\n[Envelope Wrapper](EnvelopeWrapper.html)\n\n[Content Enricher](DataEnricher.html)\n\n[Content Filter](ContentFilter.html)\n\n[Claim Check](StoreInLibrary.html)\n\n[Normalizer](Normalizer.html)\n\n[Canonical Data Model](CanonicalDataModel.html)\n\n[Messaging Endpoints](MessagingEndpointsIntro.html)\n\n[Message Endpoint](MessageEndpoint.html)\n\n[Messaging Gateway](MessagingGateway.html)\n\n[Messaging Mapper](MessagingMapper.html)\n\n[Transactional Client](TransactionalClient.html)\n\n[Polling Consumer](PollingConsumer.html)\n\n[Event-driven Consumer](EventDrivenConsumer.html)\n\n[Competing Consumers](CompetingConsumers.html)\n\n[Message Dispatcher](MessageDispatcher.html)\n\n[Selective Consumer](MessageSelector.html)\n\n[Durable Subscriber](DurableSubscription.html)\n\n[Idempotent Receiver](IdempotentReceiver.html)\n\n[Service Activator](MessagingAdapter.html)\n\n[Messaging Channels](MessagingChannelsIntro.html)\n\n[Message Channel](MessageChannel.html)\n\n[Point-to-Point Channel](PointToPointChannel.html)\n\n[Publish-Subscr. Channel](PublishSubscribeChannel.html)\n\n[Datatype Channel](DatatypeChannel.html)\n\n[Invalid Message Channel](InvalidMessageChannel.html)\n\n[Dead Letter Channel](DeadLetterChannel.html)\n\n[Guaranteed Delivery](GuaranteedMessaging.html)\n\n[Channel Adapter](ChannelAdapter.html)\n\n[Messaging Bridge](MessagingBridge.html)\n\n[Message Bus](MessageBus.html)\n\n[Systems Mgmt.](SystemManagementIntro.html)\n\n[Control Bus](ControlBus.html)\n\n[Detour](Detour.html)\n\n[Wire Tap](WireTap.html)\n\n[Message History](MessageHistory.html)\n\n[Message Store](MessageStore.html)\n\n[Smart Proxy](SmartProxy.html)\n\n[Test Message](TestMessage.html)\n\n[Channel Purger](ChannelPurger.html)", "znaku_textu": 11620, "slov": 1454, "odkazu": 109, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/patterns/messaging/history.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 06:03:15", "sha256": "ebd0d6f1b2dfa71fa472031848da7d315ff9ee94bc2be626264675b8017a43eb", "hloubka": 1, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://www.theserverside.com/", "http://jerry.cs.uiuc.edu/~plop/plop2002/", "https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "https://www.architectelevator.com/book", "https://www.cloudstrategybook.com/", "https://www.platformstrategybook.info/"]} {"url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/index.html", "titulek": "Messaging Patterns Overview - Enterprise Integration Patterns", "h1": "", "popis": "This pattern catalog includes 65 integration patterns that we collected from integration projects and updated over two decades. They provide technology-independent design guidance for developers and architects to develop and document robust integration solutions. The 65 messaging patterns are organized as follows (click on the image or view the Table of Contents):", "klicova_slova": "Messaging Patterns Overview,integration, messaging, events, patterns, event-driven, coupling, eai, middleware, application integration, enterprise integration", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns", "og:title": "Messaging Patterns Overview - Enterprise Integration Patterns", "og:url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/index.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/eip1_patterns_wide.png"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Integration Pattern Language"}, {"uroven": 2, "text": "Why Enterprise Integration Patterns?"}, {"uroven": 2, "text": "What products implement or use Enterprise Integration Patterns?"}, {"uroven": 2, "text": "How can you use the Patterns?"}, {"uroven": 2, "text": "What about REST / SOA / Serverless / EDA Patterns?"}, {"uroven": 2, "text": "Be Part of the Community"}, {"uroven": 2, "text": "Contributors"}], "markdown": "| | Messaging Patterns Overview[Messaging Patterns](index.html) | [Contents](toc.html)[Next ⇒](toc.html) |\n| --- | --- | --- |\n\nThis pattern catalog includes 65 integration patterns that we collected from integration projects and updated over two decades. They provide technology-independent design guidance for developers and architects to develop and document robust integration solutions. The [65 messaging patterns](toc.html) are organized as follows (click on the image or view the [Table of Contents](toc.html)):\n\n## Integration Pattern Language\n\n[Message Construct.](MessageConstructionIntro.html)\n\n[Message](Message.html)\n\n[Command Message](CommandMessage.html)\n\n[Document Message](DocumentMessage.html)\n\n[Event Message](EventMessage.html)\n\n[Request-Reply](RequestReply.html)\n\n[Return Address](ReturnAddress.html)\n\n[Correlation Identifier](CorrelationIdentifier.html)\n\n[Message Sequence](MessageSequence.html)\n\n[Message Expiration](MessageExpiration.html)\n\n[Format Indicator](FormatIndicator.html)\n\n[Message Routing](MessageRoutingIntro.html)\n\n[Pipes-and-Filters](PipesAndFilters.html)\n\n[Message Router](MessageRouter.html)\n\n[Content-based Router](ContentBasedRouter.html)\n\n[Message Filter](Filter.html)\n\n[Dynamic Router](DynamicRouter.html)\n\n[Recipient List](RecipientList.html)\n\n[Splitter](Sequencer.html)\n\n[Aggregator](Aggregator.html)\n\n[Resequencer](Resequencer.html)\n\n[Composed Msg. Processor](DistributionAggregate.html)\n\n[Scatter-Gather](BroadcastAggregate.html)\n\n[Routing Slip](RoutingTable.html)\n\n[Process Manager](ProcessManager.html)\n\n[Message Broker](MessageBroker.html)\n\n[Message\nTransformation](MessageTransformationIntro.html)\n\n[Message Translator](MessageTranslator.html)\n\n[Envelope Wrapper](EnvelopeWrapper.html)\n\n[Content Enricher](DataEnricher.html)\n\n[Content Filter](ContentFilter.html)\n\n[Claim Check](StoreInLibrary.html)\n\n[Normalizer](Normalizer.html)\n\n[Canonical Data Model](CanonicalDataModel.html)\n\n[Messaging Endpoints](MessagingEndpointsIntro.html)\n\n[Message Endpoint](MessageEndpoint.html)\n\n[Messaging Gateway](MessagingGateway.html)\n\n[Messaging Mapper](MessagingMapper.html)\n\n[Transactional Client](TransactionalClient.html)\n\n[Polling Consumer](PollingConsumer.html)\n\n[Event-driven Consumer](EventDrivenConsumer.html)\n\n[Competing Consumers](CompetingConsumers.html)\n\n[Message Dispatcher](MessageDispatcher.html)\n\n[Selective Consumer](MessageSelector.html)\n\n[Durable Subscriber](DurableSubscription.html)\n\n[Idempotent Receiver](IdempotentReceiver.html)\n\n[Service Activator](MessagingAdapter.html)\n\n[Messaging Channels](MessagingChannelsIntro.html)\n\n[Message Channel](MessageChannel.html)\n\n[Point-to-Point Channel](PointToPointChannel.html)\n\n[Publish-Subscr. Channel](PublishSubscribeChannel.html)\n\n[Datatype Channel](DatatypeChannel.html)\n\n[Invalid Message Channel](InvalidMessageChannel.html)\n\n[Dead Letter Channel](DeadLetterChannel.html)\n\n[Guaranteed Delivery](GuaranteedMessaging.html)\n\n[Channel Adapter](ChannelAdapter.html)\n\n[Messaging Bridge](MessagingBridge.html)\n\n[Message Bus](MessageBus.html)\n\n[Systems Mgmt.](SystemManagementIntro.html)\n\n[Control Bus](ControlBus.html)\n\n[Detour](Detour.html)\n\n[Wire Tap](WireTap.html)\n\n[Message History](MessageHistory.html)\n\n[Message Store](MessageStore.html)\n\n[Smart Proxy](SmartProxy.html)\n\n[Test Message](TestMessage.html)\n\n[Channel Purger](ChannelPurger.html)\n\n- [**Integration Styles**](IntegrationStylesIntro.html) document different ways applications can be integrated, providing a historical account of integration technologies. All subsequent patterns follow the [*Messaging*](Messaging.html) style.\n- [**Channel Patterns**](MessagingChannelsIntro.html) describe how messages are transported across a [*Message Channel*](MessageChannel.html) . Most messaging systems implement these patterns.\n- [**Message Construction Patterns**](MessageConstructionIntro.html) describe the intent, form and content of the messages that travel across the messaging system. The [*Message*](Message.html) pattern is the base pattern for this section.\n- [**Routing Patterns**](MessageRoutingIntro.html) discuss how messages are directed from a sender to the correct receiver(s). The patterns presented in this section are specializations of the [*Message Router*](MessageRouter.html) pattern.\n- [**Transformation Patterns**](MessageTransformationIntro.html) change the content of a message, for example to accommodate different data formats used by the sending and the receiving system. Data may have to be added, taken away or existing data may have to be rearranged. The base pattern for this section is the [*Message Translator*](MessageTranslator.html) .\n- [**Endpoint Patterns**](MessagingEndpointsIntro.html) describe how applications produce or consume messages.\n- [**System Management Patterns**](SystemManagementIntro.html) describe what's needed to keep a complex message-based system running smoothly.\n\n## Why Enterprise Integration Patterns?\n\nIntegration is a long-running topic in all aspects of software and IT, and it's too multi-faceted to be tackled with a simple 'cookbook' approach. Patterns, in contrast, document knowledge and experience that usually lives only in architects' heads. As accepted solutions to recurring problems, patterns are abstract enough to apply across integration technologies, but specific enough to provide hands-on guidance. They also provide a vocabulary to accurately describe solutions.\n\nPatterns are not 'invented'; they are harvested from repeated use in practice. If you have built integration solutions, you likely have used some of these patterns, maybe in slight variations and perhaps calling them by a different name. This site condenses that experience into a coherent collection of proven patterns that form an integration pattern language. Patterns live in a specific context. This first set of patterns focus on [*Messaging*](Messaging.html). We also started to [harvest Conversation patterns](/patterns/conversation).\n\n## What products implement or use Enterprise Integration Patterns?\n\nThe patterns are independent of a specific implementation and help you design better solutions with any of the following platforms:\n\n- **Open source ESB's** like [Mule ESB](http://www.mulesoft.org/) , [JBoss Fuse](http://www.jboss.org/products/fuse/overview/) , [Open ESB](http://www.open-esb.net/) , [WSo2](http://wso2.com/) , [Spring Integration](http://projects.spring.io/spring-integration/) , or [Talend ESB](http://www.talend.com/)\n- **Message Brokers** like [ActiveMQ](http://activemq.apache.org) , [Apache Kafka](https://kafka.apache.org/) , or [RabbitMQ](https://www.rabbitmq.com)\n- **EAI and SOA platforms** , such as [IBM WebSphere MQ](http://www.ibm.com/software/mqseries) , [TIBCO](http://www.tibco.com) , [Vitria](http://www.vitria.com) , [Oracle Service Bus](http://www.oracle.com/technetwork/middleware/service-bus) , [WebMethods](http://www.softwareag.com/corporate/products/webmethods_integration/integration/overview/default.asp) (now Software AG), [Microsoft BizTalk](http://www.microsoft.com/biztalk) , or [Fiorano](http://www.fiorano.com) .\n- **Cloud-based integration** , including [Amazon Simple Queue Service (SQS)](http://aws.amazon.com/sqs/) , [Amazon EventBridge](https://aws.amazon.com/eventbridge/) , [Google Cloud Pub/Sub](https://cloud.google.com/pubsub/) , or [Azure Service Bus](https://azure.microsoft.com/en-us/products/service-bus) .\n- **JMS-based messaging systems**\n- **Microsoft technologies** like [MSMQ](https://msdn.microsoft.com/en-us/library/ms711472) or [Windows Communication Foundation (WCF)](https://msdn.microsoft.com/library/vstudio/ms735119)\n\n## How can you use the Patterns?\n\nTo encourage widespread use of the integration pattern language, many parts are available under open source licensing. You are free to use the pattern name, icon, problem and solution statements, and the sketches (the diagram below the solution statement) under the [Creative Commons Attribution](http://creativecommons.org/licenses/by/4.0/) license.\n\n> The [CC-BY](https://creativecommons.org/licenses/by/4.0/) license allows you share, use and modify these elements as long as you give proper attribution, such as a link to this site or a citation of the book. See the [license for more detail](https://creativecommons.org/licenses/by/4.0/)\n> \n> .\n\nYou can do a lot more with the patterns:\n\n- **Build** . Many open-source frameworks, such as [Mule](http://mule.codehaus.org/display/MULE/Architecture+Guide) , [Apache Camel](http://activemq.apache.org/camel/) , or [Spring Integration](http://projects.spring.io/spring-integration/) incorporate our patterns. You can not only think in integration patterns, but also to code in them!\n- **Document** . You can create design documents using our icon language by downloading the [Visio stencil](downloads.html) or using the [OmniGraffle stencil](http://www.graffletopia.com/stencils/137) created by one of our readers.\n- **Read** . The book [*Enterprise Integration Patterns*](http://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20) (Addison-Wesley, ISBN 0321200683) contains the full description of each pattern with plenty of examples -- over 700 pages worth of material. You can also read the full text [on-line on Safari](http://safari.informit.com/0321200683) (with membership).\n- **Teach** . A number of professors use our material in lectures. If you are interested in getting access to material for academic purposes, please [contact us](gregor.html) .\n\n## What about REST / SOA / Serverless / EDA Patterns?\n\nThe integration problems we solve today remain [frustratingly similar](/ramblings/81_restconversation.html) to 20 years ago. The design knowledhe encapsulated in the patterns does not age like specific technologies. A list of [modern examples](/ramblings/eip1_examples_updated.html) shows how the patterns apply to integration technologies like Kafka, Google Cloud Pub/Sub, Amazon SQS or [REST](/ramblings/81_restconversation.html). I've also re-implemented the Loan Broker example application in [AWS Lambda, EventBridge, and Step Functions](/ramblings/loanbroker_stepfunctions.html) and [GCP PubSub and Workflows](/ramblings/loanbroker_gcp_workflows.html).\n\n## Be Part of the Community\n\nFeel free to connect on [LinkedIn](https://www.linkedin.com/in/ghohpe). We welcome your feedback!\n\n## Contributors\n\nThe patterns on this site are the result of discussions involving numerous individuals. Kyle Brown (co-author of \"Enterprise Java Programming for IBM WebSphere\" and \"The Design Patterns Smalltalk Companion\"), John Crupi (co-author of \"Core J2EE Patterns\"), Martin Fowler (author of too many books to mention here), Rachel Reinitz, Mark Weitzel were part of the original discussions. Conrad D'Cruz, Sean Neville, Mike Rettig, Jonathan Simon ended up authoring examples, case studies, and a chapter on the future of integration.", "znaku_textu": 10651, "slov": 1085, "odkazu": 124, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/eaipatterns.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 06:01:44", "sha256": "dc85b74166b38c3432f7ef43820ecbd22e4e2ef0d7177fb1748db04b01f2bb90", "hloubka": 1, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://www.mulesoft.org/", "http://www.jboss.org/products/fuse/overview/", "http://www.open-esb.net/", "http://wso2.com/", "http://projects.spring.io/spring-integration/", "http://www.talend.com/", "http://activemq.apache.org/", "https://kafka.apache.org/", "https://www.rabbitmq.com/", "http://www.ibm.com/software/mqseries", "http://www.tibco.com/", "http://www.vitria.com/", "http://www.oracle.com/technetwork/middleware/service-bus", "http://www.softwareag.com/corporate/products/webmethods_integration/integration/overview/default.asp", "http://www.microsoft.com/biztalk", "http://www.fiorano.com/", "http://aws.amazon.com/sqs/", "https://aws.amazon.com/eventbridge/", "https://cloud.google.com/pubsub/", "https://azure.microsoft.com/en-us/products/service-bus", "https://msdn.microsoft.com/en-us/library/ms711472", "https://msdn.microsoft.com/library/vstudio/ms735119", "http://creativecommons.org/licenses/by/4.0/", "https://creativecommons.org/licenses/by/4.0/", "http://mule.codehaus.org/display/MULE/Architecture+Guide", "http://activemq.apache.org/camel/", "http://www.graffletopia.com/stencils/137", "http://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "http://safari.informit.com/0321200683", "https://www.linkedin.com/in/ghohpe", "https://amazon.com/o/asin/0321200683/ref=nosim/enterpriseint-20", "https://www.architectelevator.com/book", "https://www.cloudstrategybook.com/", "https://www.platformstrategybook.info/"]} {"url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/toc.html", "titulek": "Table of Contents - Enterprise Integration Patterns", "h1": "", "popis": "Table of Contents - Enterprise Integration Patterns", "klicova_slova": "Table of Contents,integration, messaging, events, patterns, event-driven, coupling, eai, middleware, application integration, enterprise integration", "kanonicka": "", "jazyk": "", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns", "og:title": "Table of Contents - Enterprise Integration Patterns", "og:url": "https://www.enterpriseintegrationpatterns.com", "og:image": "https://www.enterpriseintegrationpatterns.com/img/eip1_patterns_wide.png"}, "jsonld": [], "drobecky": [], "osnova": [], "markdown": "Messaging Patterns\n\n| | Table of Contents[Messaging Patterns](index.html) | [Contents](toc.html)[⇐ Prev](index.html)[Next ⇒](Preface.html) |\n| --- | --- | --- |\n\n| | [Messaging Patterns Overview](index.html) | |\n| --- | --- | --- |\n| | [Table of Contents](toc.html) | Detailed table of contents. |\n| | [Preface](Preface.html) | |\n| | [Introduction](Introduction.html) | |\n| | [Solving Integration Problems using Patterns](Chapter1.html) | |\n| Integration Styles | | |\n| | [Introduction to Integration Styles](IntegrationStylesIntro.html) | |\n| | [File Transfer](FileTransferIntegration.html) | How can I integrate multiple applications so that they work together and can exchange information? |\n| | [Shared Database](SharedDataBaseIntegration.html) | How can I integrate multiple applications so that they work together and can exchange information? |\n| | [Remote Procedure Invocation](EncapsulatedSynchronousIntegration.html) | How can I integrate multiple applications so that they work together and can exchange information? |\n| | [Messaging](Messaging.html) | How can I integrate multiple applications so that they work together and can exchange information? |\n| Messaging Systems | | |\n| | [Introduction to Messaging Systems](MessagingComponentsIntro.html) | |\n| | [Message Channel](MessageChannel.html) | How does one application communicate with another using messaging? |\n| | [Message](Message.html) | How can two applications connected by a message channel exchange a piece of information? |\n| | [Pipes and Filters](PipesAndFilters.html) | How can we perform complex processing on a message while maintaining independence and flexibility? |\n| | [Message Router](MessageRouter.html) | How can you decouple individual processing steps so that messages can be passed to different filters depending on a set of conditions? |\n| | [Message Translator](MessageTranslator.html) | How can systems using different data formats communicate with each other using messaging? |\n| | [Message Endpoint](MessageEndpoint.html) | How does an application connect to a messaging channel to send and receive messages? |\n| Messaging Channels | | |\n| | [Introduction to Messaging Channels](MessagingChannelsIntro.html) | |\n| | [Point-to-Point Channel](PointToPointChannel.html) | How can the caller be sure that exactly one receiver will receive the document or perform the call? |\n| | [Publish-Subscribe Channel](PublishSubscribeChannel.html) | How can the sender broadcast an event to all interested receivers? |\n| | [Datatype Channel](DatatypeChannel.html) | How can the application send a data item such that the receiver will know how to process it? |\n| | [Invalid Message Channel](InvalidMessageChannel.html) | How can a messaging receiver gracefully handle receiving a message that makes no sense? |\n| | [Dead Letter Channel](DeadLetterChannel.html) | What will the messaging system do with a message it cannot deliver? |\n| | [Guaranteed Delivery](GuaranteedMessaging.html) | How can the sender make sure that a message will be delivered, even if the messaging system fails? |\n| | [Channel Adapter](ChannelAdapter.html) | How can you connect an application to the messaging system so that it can send and receive messages? |\n| | [Messaging Bridge](MessagingBridge.html) | How can multiple messaging systems be connected so that messages available on one are also available on the others? |\n| | [Message Bus](MessageBus.html) | 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? |\n| Message Construction | | |\n| | [Introduction to Message Construction](MessageConstructionIntro.html) | |\n| | [Command Message](CommandMessage.html) | How can messaging be used to invoke a procedure in another application? |\n| | [Document Message](DocumentMessage.html) | How can messaging be used to transfer data between applications? |\n| | [Event Message](EventMessage.html) | How can messaging be used to transmit events from one application to another? |\n| | [Request-Reply](RequestReply.html) | When an application sends a message, how can it get a response from the receiver? |\n| | [Return Address](ReturnAddress.html) | How does a replier know where to send the reply? |\n| | [Correlation Identifier](CorrelationIdentifier.html) | How does a requestor that has received a reply know which request this is the reply for? |\n| | [Message Sequence](MessageSequence.html) | How can messaging transmit an arbitrarily large amount of data? |\n| | [Message Expiration](MessageExpiration.html) | How can a sender indicate when a message should be considered stale and thus shouldn’t be processed? |\n| | [Format Indicator](FormatIndicator.html) | How can a message’s data format be designed to allow for possible future changes? |\n| Interlude: Simple Messaging | | |\n| | [Introduction to Simple Messaging Examples](SimpleMessagingIntro.html) | |\n| | [JMS Request/Reply Example](RequestReplyJmsExample.html) | |\n| | [.NET Request/Reply Example](RequestReplyNetExample.html) | |\n| | [JMS Publish/Subscribe Example](ObserverJmsExample.html) | |\n| Message Routing | | |\n| | [Introduction to Message Routing](MessageRoutingIntro.html) | |\n| | [Content-Based Router](ContentBasedRouter.html) | How do we handle a situation where the implementation of a single logical function (e.g., inventory check) is spread across multiple physical systems? |\n| | [Message Filter](Filter.html) | How can a component avoid receiving uninteresting messages? |\n| | [Dynamic Router](DynamicRouter.html) | How can you avoid the dependency of the router on all possible destinations while maintaining its efficiency? |\n| | [Recipient List](RecipientList.html) | How do we route a message to a list of dynamically specified recipients? |\n| | [Splitter](Sequencer.html) | How can we process a message if it contains multiple elements, each of which may have to be processed in a different way? |\n| | [Aggregator](Aggregator.html) | How do we combine the results of individual, but related messages so that they can be processed as a whole? |\n| | [Resequencer](Resequencer.html) | How can we get a stream of related but out-of-sequence messages back into the correct order? |\n| | [Composed Message Processor](DistributionAggregate.html) | How can you maintain the overall message flow when processing a message consisting of multiple elements, each of which may require different processing? |\n| | [Scatter-Gather](BroadcastAggregate.html) | 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? |\n| | [Routing Slip](RoutingTable.html) | 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? |\n| | [Process Manager](ProcessManager.html) | 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? |\n| | [Message Broker](MessageBroker.html) | How can you decouple the destination of a message from the sender and maintain central control over the flow of messages? |\n| Message Transformation | | |\n| | [Introduction to Message Transformation](MessageTransformationIntro.html) | |\n| | [Envelope Wrapper](EnvelopeWrapper.html) | How can existing systems participate in a messaging exchange that places specific requirements on the message format, such as message header fields or encryption? |\n| | [Content Enricher](DataEnricher.html) | How do we communicate with another system if the message originator does not have all the required data items available? |\n| | [Content Filter](ContentFilter.html) | How do you simplify dealing with a large message, when you are interested only in a few data items? |\n| | [Claim Check](StoreInLibrary.html) | How can we reduce the data volume of message sent across the system without sacrificing information content? |\n| | [Normalizer](Normalizer.html) | How do you process messages that are semantically equivalent, but arrive in a different format? |\n| | [Canonical Data Model](CanonicalDataModel.html) | How can you minimize dependencies when integrating applications that use different data formats? |\n| Interlude: Composed Messaging | | |\n| | [Introduction to Composed Messaging Examples](ComposedMessagingExample.html) | |\n| | [Synchronous Implementation using Web Services](ComposedMessagingWS.html) | |\n| | [Asynchronous Implementation with MSMQ](ComposedMessagingMSMQ.html) | |\n| | [Asynchronous Implementation with TIBCO ActiveEnterprise](ComposedMessagingTIBCO.html) | |\n| Messaging Endpoints | | |\n| | [Introduction to Messaging Endpoints](MessagingEndpointsIntro.html) | |\n| | [Messaging Gateway](MessagingGateway.html) | How do you encapsulate access to the messaging system from the rest of the application? |\n| | [Messaging Mapper](MessagingMapper.html) | How do you move data between domain objects and the messaging infrastructure while keeping the two independent of each other? |\n| | [Transactional Client](TransactionalClient.html) | How can a client control its transactions with the messaging system? |\n| | [Polling Consumer](PollingConsumer.html) | How can an application consume a message when the application is ready? |\n| | [Event-Driven Consumer](EventDrivenConsumer.html) | How can an application automatically consume messages as they become available? |\n| | [Competing Consumers](CompetingConsumers.html) | How can a messaging client process multiple messages concurrently? |\n| | [Message Dispatcher](MessageDispatcher.html) | How can multiple consumers on a single channel coordinate their message processing? |\n| | [Selective Consumer](MessageSelector.html) | How can a message consumer select which messages it wishes to receive? |\n| | [Durable Subscriber](DurableSubscription.html) | How can a subscriber avoid missing messages while it’s not listening for them? |\n| | [Idempotent Receiver](IdempotentReceiver.html) | How can a message receiver deal with duplicate messages? |\n| | [Service Activator](MessagingAdapter.html) | How can an application design a service to be invoked both via various messaging technologies and via non-messaging techniques? |\n| System Management | | |\n| | [Introduction to System Management](SystemManagementIntro.html) | |\n| | [Control Bus](ControlBus.html) | How can we effectively administer a messaging system that is distributed across multiple platforms and a wide geographic area? |\n| | [Detour](Detour.html) | How can you route a message through intermediate steps to perform validation, testing or debugging functions? |\n| | [Wire Tap](WireTap.html) | How do you inspect messages that travel on a point-to-point channel? |\n| | [Message History](MessageHistory.html) | How can we effectively analyze and debug the flow of messages in a loosely coupled system? |\n| | [Message Store](MessageStore.html) | How can we report against message information without disturbing the loosely coupled and transient nature of a messaging system? |\n| | [Smart Proxy](SmartProxy.html) | How can you track messages on a service that publishes reply messages to the Return Address specified by the requestor? |\n| | [Test Message](TestMessage.html) | What happens, though, if a component is actively processing messages, but garbles outgoing messages due to an internal fault? |\n| | [Channel Purger](ChannelPurger.html) | How can you keep 'left-over' messages on a channel from disturbing tests or running systems? |\n| Interlude: Systems Management Example | | |\n| | [Loan Broker System Management](SystemManagementExample.html) | |\n| Integration Patterns in Practice | | |\n| | [Case Study: Bond Trading System](BondTradingCaseStudy.html) | |\n| Concluding Remarks | | |\n| | [Emerging Standards and Futures in Enterprise Integration](Future.html) | |\n| Appendices | | |\n| | [Bibliography](bib.html) | Annotated list of references and recommended reading. |\n| | [Revision History](history.html) | Chronological list of changes. |", "znaku_textu": 11393, "slov": 1346, "odkazu": 101, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/patterns/messaging/toc.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 06:01:45", "sha256": "929a06e03217289455d1f68f02f0f1db497ee39e27d46c18aab3388b8665c0ad", "hloubka": 1, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": []} {"url": "https://www.enterpriseintegrationpatterns.com/praise.html", "titulek": "Books - Enterprise Integration Patterns", "h1": "", "popis": "", "klicova_slova": "", "kanonicka": "", "jazyk": "", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [], "markdown": "| | Books |\n| --- | --- |\n| | |\n\n---\n\n| |\n| --- |\n\n| **[Enterprise \n Integration Patterns : Designing, Building, and Deploying Messaging \n Solutions](http://www.amazon.com/exec/obidos/redirect?tag=enterpriseint-20&path=tg/detail/-/0321200683/qid=1064833216/sr=8-2)** \n\n Gregor Hohpe, Bobby Woolf\n\n 650 pages, $49.99\n\n ISBN 0321200683 \n\n Addison-Wesley, 2004 This highly anticipated \n book includes all 65 patterns from this site plus more examples and \n lots of edits. We are now going into the third printing! . [[Sample \n Chapter](docs/EnterpriseIntegrationPatterns_HohpeWoolf_ch03.pdf)] | | |\n| --- | --- | --- |\n| | **[Enterprise \n Integration Patterns : Designing, Building, and Deploying Messaging \n Solutions](http://www.amazon.com/exec/obidos/redirect?tag=enterpriseint-20&path=tg/detail/-/0321200683/qid=1064833216/sr=8-2)** \n\n Gregor Hohpe, Bobby Woolf\n\n 650 pages, $49.99\n\n ISBN 0321200683 \n\n Addison-Wesley, 2004 | |\n| This highly anticipated \n book includes all 65 patterns from this site plus more examples and \n lots of edits. We are now going into the third printing! . [[Sample \n Chapter](docs/EnterpriseIntegrationPatterns_HohpeWoolf_ch03.pdf)] | | |\n\nPraise for Enterprise Integration Patterns:\n\n*\"This book not only provides valuable recipes for approaching \n integration problems with messaging, it shows tremendous insight into why each \n approach is useful. The authors have captured and articulated the most common \n uses of messaging in integration and shown clear ways of approaching complex \n problems using messaging channels.\"*\n\nDave Chappell, \n\n Vice President and Chief Technology Evangelist, Sonic Software\n\n Author of \"Enterprise Service Bus\", \"Java Web Services\", \n and \"Java Message Service\"\n\n---\n\n\"Enterprise Integration Patterns *details an emerging \n trend that will affect all Software & Business Process' Architects in Financial \n Services, and supports our efforts to be innovative and competitive while still \n leveraging our customer's legacy system investments. This topic is timely, and \n the Messaging & Workflow patterns are described in a concise and execution-driven \n fashion -- highly relevant & immediately applicable in today's event-driven \n and information-intensive environments. \"*\n\nGlenn Cameron\n\n Director of Middleware Solutions Architecture, Thomson Financial\n\n---\n\n*\"If you are involved with the operation or development \n of an enterprise application, there will doubtless come a time when you will \n need to integrate your application with another using the emerging preferred \n approach of messaging. When that time comes, this book will be your most valuable \n reference. Bobby and Gregor have done a masterful job of collecting the hard-won \n wisdom of the software development profession on the topic of application integration \n using messaging, and neatly organizing it into a set of patterns - the preferred \n form for communication of design knowledge between software professionals. The \n result is a vocabulary and set of proven solutions that software professionals \n can use to design and discuss enterprise application integrations.*\"\n \n Randy Stafford\n\n Chief Architect, IQNavigator, Inc.\n\n---\n\n*\"In addition to covering basics like pub-sub and guaranteed \n delivery,*Enterprise Integration Patterns*provides an architect's sourcebook \n of higher-level patterns that describe how messaging is actually *used*. The \n book is as much about describing and building messaging-based applications as \n it is about integration, and the patterns -- like Routing Slip, Aggregator, \n or Resequencer -- will serve developers well in both integration and in ground-up \n application development projects.\"*\n\nPaul Brown\n\n CEO, FiveSight Technologies, Inc.\n\n---\n\n\"Enterprise Integration*Patterns is a landmark achievement. \n The integration world has been plagued by a veritable lack of consistency in \n even the language used to talk about integration, never mind the software or \n protocol standards. This book finally provides the opportunity to change all \n that so that everyone: vendors, consultants, developers, and end-users, can \n all start communicating via a common lexicon. If there is any one development \n that will move integration best practices out of the middle-ages and launch \n a renaissance movement towards creating a formal discipline for integration \n world-wide, this is it! A must have for the bookshelf of every IT architect, \n developer and integrator.*\"\n \n\n John Schmidt \n\n Board Member, EAI Industry Consortium\n\n---\n\nEnterprise Integration Patterns*provides a timeless foundation \n to understand the present and future of integration. The authors use patterns \n to effectively capture and share their tremendous wisdom and experience. I learned \n a great deal in reviewing and reading this book, and I look forward to relying \n on its advice in the years to come.*\n \n Luke Hohmann\n\n Author of Beyond Software Architecture\n\n---\n\n---", "znaku_textu": 4782, "slov": 640, "odkazu": 14, "kodovani": "iso-8859-1", "kodovani_deklarovane": "iso-8859-1", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/praise.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 06:03:17", "sha256": "526664be55ebda1a253f7745d4d994c54fbfb8d1a5a3ec3c2b209b14cb589190", "hloubka": 1, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://www.amazon.com/exec/obidos/redirect?path=tg%2Fdetail%2F-%2F0321200683%2Fqid%3D1064833216%2Fsr%3D8-2&tag=enterpriseint-20", "http://www.amazon.com/exec/obidos/ASIN/0321200683/enterpriseint-20", "http://www.thoughtworks.com/"]} {"url": "https://www.enterpriseintegrationpatterns.com/ramblings", "titulek": "Enterprise Integration Patterns: Gregor's Ramblings", "h1": "", "popis": "Thoughts on distributed system design collected over two decades.", "klicova_slova": "", "kanonicka": "", "jazyk": "", "robots_meta": "", "og": {"og:type": "website", "og:site_name": "Enterprise Integration Patterns", "og:title": "Blog - Enterprise Integration Patterns", "og:description": "Thoughts on distributed system design collected over two decades.", "og:url": "https://www.enterpriseintegrationpatterns.com/ramblings", "og:image": "https://www.enterpriseintegrationpatterns.com/img/eip1_patterns.png"}, "jsonld": [], "drobecky": [], "osnova": [], "markdown": "Gregor's Ramblings on Enterprise Integration\n\n---\n\n| My latest thoughts on integration architecture: |\n| --- |\n| [Queues invert control flow but require flow control](/ramblings/queues_flow_control.html) |\n| [Control Flow—The Other Half of Integration Patterns](/ramblings/queues_control_flow.html) |\n| [Event-driven = Loosely coupled? Not so fast!](/ramblings/eventdriven_coupling.html) |\n\n| [A Decade of Enterprise Integration Patterns](/articles.html)\n\r\n (IEEE Software) |\n| --- |\n| [20 Years of Patterns' Impact](/articles.html) \n\r\n (IEEE Software) |\n| [Conversations Between Loosely Coupled Services](http://www.infoq.com/presentations/hohpe-soa-conversations) \n\r\n (Video on [InfoQ](http://www.infoq.com)) |\n| [Developing in a Service-oriented World](http://www.infoq.com/presentations/hohpe-soa-development) \n\r\n (Video on [InfoQ](http://www.infoq.com)) |\n| [SOA Patterns - New Insights or Recycled Knowledge?](/docs/SoaPatterns.pdf)\n\r\n (Whitepaper) |\n| [Let's Have a Conversation](/docs/IEEE_IC_Conversations.pdf)\n(IEEE Internet Computing) |\n| [Programming Without a Call Stack - Event-driven Architectures](/docs/EDA.pdf)\n(ObjektSpektrum, 2006) |\n| [Your Coffee Shop Does Not Use Two-Phase Commit](/docs/IEEE_Software_Design_2PC.pdf)\n\r\n (IEEE Software) |\n| [Developing in a Service-Oriented World](/docs/SOA_World.pdf)\n(ThoughtWorks Whitepaper) |\n| [An Asynchronous World](http://www.drdobbs.com/an-asynchronous-world/184415001)\n\r\n (Software Development) |\n\n| [Nearfield Communication (NFC) in Japan](/docs/NfcOopHohpe.pdf)\n(OOP 2012) |\n| --- |\n| [Embedded OSS](/docs/EmbeddedOop.pdf)\n(OOP 2012) |\n| [Programming the Cloud](https://sites.google.com/site/gcodejp/slides/ProgrammingCloud_QCon.pdf)\n(QCOn Tokyo 2010) |\n| [Distributed Programming the Google Way](/docs/DistributedProgrammingGoogle.pdf)\n(Devoxx 2009) |\n| [Developing in a Service-Oriented World](/docs/hohpe_developing_in_soa_world.pdf)\n(SOACon 2007) |\n| [Programming without a Call Stack: Event-driven Architectures](/docs/hohpe_event_driven_architectures.pdf)\n(SOACon 2007) |\n| [Software Visualization and Model Extraction](/docs/TSS_software_visualization.pdf)\n(TheServerSide) |\n| [Where did all my beatiful code go?](/docs/SpringOneKeynotePub.pdf)\n(SpringOne, 2006) |\n| [Conversations Between Loosely Coupled Systems](/docs/Conversations_loosely_coupled.pdf)\n(SD West, 2006) |\n| [Enterprise Integration Patterns](/docs/jaoo_hohpeg_enterpriseintegrationpatterns.pdf)\n(JAOO, 2003) |\n\nThis blog chronicles my journey with asynchronous and distributed system design over\n two decades, covering [integration](/ramblings_integration.html), [messaging](/ramblings_messaging.html), and [conversation patterns](/ramblings_conversations.html), and [patterns](/ramblings_patterns.html).\n\nFind my posts on IT strategy, enterprise architecture, and digital transformation\n at [ArchitectElevator.com](https://architectelevator.com/blog).\n\n[RSS Feed](/ramblings.rss) [Twitter](https://www.twitter.com/ghohpe) [LinkedIn](https://www.linkedin.com/today/author/ghohpe)\n\n---\n\n[Queues invert control flow but require flow control](/ramblings/queues_flow_control.html) July 27, 2024 [integration](/ramblings_integration.html) [cloud](/ramblings_cloud.html) [events](/ramblings_events.html)\n\nQueues are key elements of any asynchronous system because they can invert control\n flow. Their ability to re-shape traffic enables high-throughput systems that behave\n gracefully under heavy load. But all that magic doesn't come for free: to function\n well, queues require flow control [Read more Âť](/ramblings/queues_flow_control.html)\n\n[Control Flow—The Other Half of Integration Patterns](/ramblings/queues_control_flow.html) July 30, 2024 [integration](/ramblings_integration.html) [cloud](/ramblings_cloud.html) [messaging](/ramblings_messaging.html)\n\nWhen describing messaging systems, it's natural to focus on data flow. However, control\n flow is what gives those systems their critical runtime properties like resilience\n or low latency. It's time to make control flow a first-class consideration. [Read more Âť](/ramblings/queues_control_flow.html)\n\n[Event-driven = Loosely coupled? Not so fast!](/ramblings/eventdriven_coupling.html) June 20, 2024 [integration](/ramblings_integration.html) [cloud](/ramblings_cloud.html) [events](/ramblings_events.html)\n\nEvent-driven architectures (EDAs) are frequently pitched as loosely coupled, when\n compared to other forms of integration. Coupling is a multi-faceted and nuanced property,\n so as architects we should have a closer look. [Read more Âť](/ramblings/eventdriven_coupling.html)\n\n[The Many Facets of Coupling](/ramblings/coupling_facets.html) June 10, 2024 [integration](/ramblings_integration.html) [cloud](/ramblings_cloud.html) [events](/ramblings_events.html)\n\nCoupling is integration's magic word. Despite entire books being written on the subject,\n it's still widely recited as a \"loose coupling is good\" mantra. Coupling deserves\n better, so let's clarify the dimensions and nuances of coupling. [Read more Âť](/ramblings/coupling_facets.html)\n\n[Serverless Loan Broker @ GCP](/ramblings/loanbroker_gcp_workflows.html) May 20, 2022 [integration](/ramblings_integration.html) [cloud](/ramblings_cloud.html)\n\nDo serverless solutions lock you in? Let's find out by porting / rebuilding the Serverless\n Loan Broker on top of Google's Cloud Platform (GCP). [Read more Âť](/ramblings/loanbroker_gcp_workflows.html)\n\n[Serverless Loan Broker @ AWS, Part 5: Integration Patterns with CDK](/ramblings/loanbroker_cdk.html) Jan 25, 2022 [integration](/ramblings_integration.html) [cloud](/ramblings_cloud.html)\n\nInfrastructure as Code (IaC) brings repeatability into the provisioning and deployment\n of cloud applications. However, the vocabulary used by most automation tools describes\n cloud platform resources as compared to the application's intent. As serverless applications\n take us further away from the infrastructure, we should also find better abstractions\n to express our automation. Perhaps, Enterprise Integration Patterns give us a head\n start? [Read more Âť](/ramblings/loanbroker_cdk.html)\n\n[Serverless Loan Broker @ AWS, Part 4: Automation](/ramblings/loanbroker_automation.html) November 30, 2021 [integration](/ramblings_integration.html) [cloud](/ramblings_cloud.html)\n\nInfrastructure as Code (IaC) has a whole new meaning for serverless applications.\n Rather than provision resources (the serverless frameworks do that for us), automation\n determines the system composition and configuration. As expected, quite a few options\n are available from simple command line to programming frameworks. Time to have a look. [Read more Âť](/ramblings/loanbroker_automation.html)\n\n[Serverless Loan Broker @AWS, Part 3: Publish-Subscribe with SNS](/ramblings/loanbroker_stepfunctions_pubsub.html) July 20, 2021 [integration](/ramblings_integration.html) [cloud](/ramblings_cloud.html)\n\nPart 3 of the mini-series on implementing the EIP Loan Broker as a serverless solution\n with AWS Step Functions uses a Publish-Subscribe Channel and a stand-alone Aggregator\n to request and process loan quotes. [Read more Âť](/ramblings/loanbroker_stepfunctions_pubsub.html)\n\n[Loan Broker @AWS, Part 2: Recipient List](/ramblings/loanbroker_stepfunctions_recipient_list.html) July 20, 2021 [integration](/ramblings_integration.html) [cloud](/ramblings_cloud.html)\n\nIn part 2 of this blog series I implement the Loan Broker Example using a Recipient\n List pattern, implemented in DynamoDB, Step Functions, and Lambda. [Read more Âť](/ramblings/loanbroker_stepfunctions_recipient_list.html)\n\n[Loan Broker Implementation with AWS Step Functions](/ramblings/loanbroker_stepfunctions.html) July 20, 2021 [integration](/ramblings_integration.html) [cloud](/ramblings_cloud.html)\n\nA lot has happened since we implemented the Loan Broker Example in EIP: we have the\n cloud, serverless computing, machine learning, service meshes and all sorts of other\n bells and whistles. Nevertheless, the integration patterns have passed the test of\n time as we shall see by implementing the original loan broker example with AWS Lambda\n and AWS Step Functions. [Read more Âť](/ramblings/loanbroker_stepfunctions.html)\n\n[Serverless Integration Patterns on Google Cloud Functions](/ramblings/google_cloud_functions.html) April 20, 2017 [messaging](/ramblings_messaging.html) [cloud](/ramblings_cloud.html)\n\nAfter examining which patterns are embedded in Google Cloud Pub/Sub in an earlier\n post, I implemented a few common patterns on top of Google Cloud Functions, Google's\n serverless implementation. It's amazing how easy it has become to get messaging patterns\n running in the cloud with only a minimum of wrapper code. [Read more Âť](/ramblings/google_cloud_functions.html)\n\n[Modern Examples for Enterprise Integration Patterns](/ramblings/eip1_examples_updated.html) February 5, 2017 [patterns](/ramblings_patterns.html)\n\nEnterprise Integration Patterns are timeless. That's why our book keeps selling well\n 20 years after its publication in 2003. However, the code examples haven't aged quite\n as well. I therefore updated several code examples to use modern tech like GoLang,\n Kafka, RabbitMQ, AWS, Azure Cloud Functions, and Google Cloud Pub/Sub. [Read more Âť](/ramblings/eip1_examples_updated.html)\n\n[37 Things or \"Where have all my ramblings gone?\"](/ramblings/94_37things.html) July 5, 2016 [writing](/ramblings_writing.html)\n\nAbout two years ago, I revived the ramblings from a four-year hibernation. Upon resurrection,\n the ramblings started to take a broader scope, including not only messaging, conversations,\n and patterns, but also communication and IT architecture topics. The new topics were\n a natural reflection of my new role as Chief Architect in a massive IT transformation\n and after a little while I decided that they deserve their own channel, so I wrote\n a book about it. [Read more Âť](/ramblings/94_37things.html)\n\n[25 Years of OOP](/ramblings/93_oop2016.html) February 5, 2016 [events](/ramblings_events.html)\n\nOOP is one of the conferences that originated in the \"OO\" era of the early to mid-nineties.\n While most of these events have shed the double \"O\" -- OOPSLA has become SPLASH and\n JAOO has become GOTO, OOP stayed true to its name and remains one of the premier German\n developer conferences. This year OOP celebrated its 25th anniversary. Here are my\n impressions. [Read more Âť](/ramblings/93_oop2016.html)\n\n[How to Scale an Organization? The same way you scale a system!](/ramblings/92_scaling.html) January 12, 2016 [architecture](/ramblings_architecture.html)\n\nThe digital world is all about scalability: millions of web sites, billions of hits\n per month, more data, more tweets, more images uploaded. To make this work, architects\n have learned a ton about scaling systems. With everything around us scaling to never-before-seen\n throughput, the limiting element in all this is bound to be us, the human users. And\n the organizations we work in. One may wonder, then, why scaling and optimizing throughput\n in organizations is considered a very different field usually completely ignored by\n the IT architects. I feel that many of the scalability and performance enhancement\n approaches experienced IT architects know can be just as well used to scale organizations.\n If a coffee shop can teach us about maximizing a system’s throughput, maybe our knowledge\n of IT systems design can help improve the performance of organizations! [Read more Âť](/ramblings/92_scaling.html)\n\n[The Architect’s Penthouse Bookshelf](/ramblings/91_bookshelfpenthouse.html) Dec 28, 2015 [architecture](/ramblings_architecture.html)\n\nWhen you hitchhike through the galaxy, a towel will generally do. To ride the you\n need to be a bit better equipped. Riding the elevator up and down is exciting and\n provides tremendous value to the organization. But it is also demanding as you need\n to adjust to different audiences, backgrounds and dynamics, becoming a technology\n shapeshifter of sorts. To help with this transformation, I recommended a few books\n for each major section of the corporate high-rise. [Read more Âť](/ramblings/91_bookshelfpenthouse.html)\n\n[If software eats the world, you better use version control!](/ramblings/90_softwareeatstheworld.html) Dec 6, 2015 [architecture](/ramblings_architecture.html)\n\nAs I recently observed, Corporate IT tends to be afraid of code: code is where all\n the pesky bugs come from, which have to be fixed by quirky, expensive, and unreliable\n developers or external consultants. This attitude plays to the favor of vendors who\n peddle products that \"only\" require configuration, as opposed to coding. Sadly, most\n configuration is really just programming in a poorly designed, rather constrained\n language without decent tooling or useful documentation. Being afraid of code and\n being unfamiliar with the modern development lifecycle is a dangerous proposition\n in a world where everything is becoming software-defined. [Read more Âť](/ramblings/90_softwareeatstheworld.html)\n\n[If you never kill anything, you will live among zombies. And they will eat your brain.](/ramblings/89_zombies.html) Sept 27, 2015 [architecture](/ramblings_architecture.html)\n\nCorporate IT lives among zombies: old systems that are half alive and have everyone\n in fear of going anywhere near them. They are also tough to kill completely. Worse\n yet, they eat IT staff's brains. It's like Shaun of the Dead minus the funny parts. [Read more Âť](/ramblings/89_zombies.html)\n\n[Movie Star Architects](/ramblings/88_moviestararchitects.html) Aug 1, 2015 [architecture](/ramblings_architecture.html)\n\nI recently wrote about architects and the role they play in large organizations. Still,\n the question often remains what an architect should be doing besides \"riding the elevator\".\n Let's try another analogy: movie characters. [Read more Âť](/ramblings/88_moviestararchitects.html)\n\n[Virtualization Matryoshka](/ramblings/87_matryoshka.html) July 15, 2015 [architecture](/ramblings_architecture.html) [cloud](/ramblings_cloud.html)\n\nIT loves virtualizing stuff, following the old rule that in computer science every\n problem can be solved by just one more level of indirection. Cloud computing is based\n on virtualization of compute resources - you don't need to know which machine your\n application is actually running on and you can get new ones with the click of a button.\n Before cloud was a buzzword, though, VMware and others have virtualized machines at\n the operating system levels. Recently (in terms of buzz, not technology), containers\n bring another level of light-weight virtualization of resources. And let's not forget\n the Java Virtual Machine, which also claims a level of virtualization. What are we\n supposed to do with all these levels of virtualization? [Read more Âť](/ramblings/87_matryoshka.html)\n\n[Is This Architecture? Look for Decisions!](/ramblings/86_isthisarchitecture.html) June 15, 2015 [architecture](/ramblings_architecture.html)\n\nPart of my job is to review system architectures. So I frequently ask teams to show\n me \"their architecture\", but almost as frequently I don't consider what I receive\n an architecture document. The inevitable question \"what do you expect?\" is also not\n so easy for me to answer: despite many formal definitions it's not immediately clear\n what architecture is or whether a document really depicts an architecture. One important\n test I apply is whether the document or the description contains any non-trivial decisions\n and the rationale behind them. [Read more Âť](/ramblings/86_isthisarchitecture.html)\n\n[Same Old Architecture - Best of Ramblings](/ramblings/85_sameoldarchitecture.html) May 15, 2015 [integration](/ramblings_integration.html) [writing](/ramblings_writing.html)\n\nArchitects can often be found commenting or complaining that many things in IT are\n the same old stuff in new packaging, created by marketing departments who were in\n need of a new buzzword. For example, aren't microservices really just SOA done right\n while SOA itself stands for \"Same Old Architecture\"? And the whole reactive movement\n seems to have re-discovered callbacks. Maybe there is some truth in this as at the\n recent SATURN conferences I found myself saying more often than I had expected \"I\n blogged about this\". So let's see which of my past ramblings are still relevant these\n days. [Read more Âť](/ramblings/85_sameoldarchitecture.html)\n\n[SATURN Conference 2015](/ramblings/84_saturn.html) May 1, 2015 [events](/ramblings_events.html) [architecture](/ramblings_architecture.html)\n\nI have not blogged about events in a while, but SATURN 2015 has been an amazing event\n that's well worth rambling about. [Read more Âť](/ramblings/84_saturn.html)\n\n[Free Gift with Subscription (Pattern)](/ramblings/83_subscribing.html) APR 26, 2015 [conversations](/ramblings_conversations.html) [integration](/ramblings_integration.html)\n\nDiscussing the Google cloud Pub/Sub system in the last rambling reminded me that the\n Publish-subscribe Channel pattern makes for a good example of the subtle but important\n difference between Messaging Patterns and Conversation Patterns. This comparison is\n timely as I picked up documenting Conversation Patterns again. [Read more Âť](/ramblings/83_subscribing.html)\n\n[Google Cloud Pub/Sub](/ramblings/82_googlepubsub.html) APR 8, 2015 [messaging](/ramblings_messaging.html) [integration](/ramblings_integration.html) [cloud](/ramblings_cloud.html)\n\nGoogle released the beta version of their publish-subscribe API just a few weeks ago.\n I show how to build a very simple demo app using the Java API and map the functionality\n to integration patterns to illustrate the design choices the team made. [Read more Âť](/ramblings/82_googlepubsub.html)\n\n[RESTful Conversations](/ramblings/81_restconversation.html) MAR 15, 2015 [conversations](/ramblings_conversations.html) [webservices](/ramblings_webServices.html) [integration](/ramblings_integration.html)\n\nAs indicated a good while ago I spent some time thinking about patterns that instead\n of following a message through multiple systems, looks at the message exchange over\n time between a (mostly) fixed set of systems. I call these message exchanges \"conversations\".\n Sadly my writing efforts on Conversation Patterns fell very much asleep around 2008,\n partly due to my fear that with the rise of REST, stateful conversations between systems\n would step into the background as most integration problems are now solved with a\n simple POST or GET. A presentation and conversation at Frank Leymann's IaaS PhD Seminar\n enlightened me that this is not at all true: systems following the REST architectural\n style very much engage in conversations. [Read more Âť](/ramblings/81_restconversation.html)\n\n[Sync or Swim](/ramblings/80_syncorswim.html) FEB 15, 2015 [patterns](/ramblings_patterns.html) [messaging](/ramblings_messaging.html) [modeling](/ramblings_modeling.html)\n\nWe were tempted multiple times to extend the EIP icon language, but always felt that\n simplicity should win over precision. However, seeing the visual vocabulary that my\n former Google colleague Ivan Gevirtz created, I am convinced that combining the two\n is useful. [Read more Âť](/ramblings/80_syncorswim.html)\n\n[The Architect Elevator](/ramblings/79_elevator.html) JAN 15, 2015 [architecture](/ramblings_architecture.html)\n\nArchitects frequently play a critical role as connecting and communicating element\n between multiple parties. Especially in large organizations such communication is\n an important factor: too many parties speak different languages to convey different,\n and often conflicting, objectives. Many layers of management only exacerbate the problem\n as communicating to corporate leadership resembles the \"telephone game\" where a circle\n of kids relays a message one-by-one just to realize at the end that the message has\n completely changed along the way. [Read more Âť](/ramblings/79_elevator.html)\n\n[The 3 Legs of an Architect](/ramblings/78_threelegs.html) DEC 28, 2014 [architecture](/ramblings_architecture.html)\n\nDefining what a software or IT architect is or does is no less challenging than defining\n software architecture itself. The SEI maintains a list of software architecture definitions,\n yet I have not seen a corresponding list for software architects. One could try to\n skirt the issue by declaring that software architects are the people who make software\n architecture. However, I think that this approach would be missing some important\n aspects of being an architect. [Read more Âť](/ramblings/78_threelegs.html)\n\n[Writing for Busy People](/ramblings/77_writing.html) SEP 21, 2014 [writing](/ramblings_writing.html)\n\nOne advantage of working for a relatively large organization is that I get to do a\n little more writing again. Not because I have spare time, but because in times of\n rapid change, communication across a large audience is critically important. It turns\n out, short papers are a good way to achieve that and my brief, but accurate technical\n position / decision papers have become a trademark of my architecture group (don't\n worry, we architects produce more than just paper).\n Correspondingly, one of my daily struggles is to convince others to write as well\n and to coach them to become better writers. In a sense, this forces me to transport\n what I know about writing from purely procedural knowledge, i.e. I know how to do\n it, to declarative knowledge, i.e. being able to understand why it is done and to\n describe to others how to do it.\n While this rambling's title is a pun on the popular books \"Japanese for busy People\",\n it intentionally implies an ambiguity that we are both writing for a busy audience,\n but are busy authors as well. [Read more Âť](/ramblings/77_writing.html)\n\n[Explaining Stuff](/ramblings/76_explaining.html) AUG 30, 2014 [writing](/ramblings_writing.html)\n\nAt a recent presentation, Martin Fowler introduced himself as a guy \"who is good at\n explaining things\". While this certainly has a touch of British Understatement™, it\n also highlights a critically important but rare skill in IT. As technology invades\n all parts of personal and professional lives, causing companies to absolutely depend\n on software and systems, decision makers often can no longer keep track of technical\n details. Because architects live at the intersection of technology and business, it\n is their responsibility to explain complex topics and highlight the ramifications\n of technical decisions. [Read more Âť](/ramblings/76_explaining.html)\n\n[DDD - Diagram Driven Design](/ramblings/75_ddd.html) MAR 22, 2010 [design](/ramblings_design.html) [modeling](/ramblings_modeling.html) [writing](/ramblings_writing.html)\n\nDrawing a picture turns out to be a useful system design technique. [Read more Âť](/ramblings/75_ddd.html)\n\n[What Does It Mean to Use Messaging?](/ramblings/74_messaging.html) FEB 17, 2010 [messaging](/ramblings_messaging.html)\n\nI was recently asked to help a team decide whether they should use messaging. Of course,\n I have not forgotten what I learned during many years in consulting: the consultant\n always answers \"it depends.\" A good consultant can tell you what the answer depends\n on. And a truly great consultant can convince you that you are asking the wrong question\n in the first place. [Read more Âť](/ramblings/74_messaging.html)\n\n[A Chapter a Day...](/ramblings/73_writing.html) FEB 1, 2010 [writing](/ramblings_writing.html)\n\nMy New Year's resolution was to write more, so here my thoughts on how to actually\n make that happen. In a sense it's a plan for myself to be more productive, but hopefully\n the ideas also work for other folks. Ironically, my work on EIP II has been stalled\n for a good while, so you're getting advice on how to be a prolific writer from someone\n who has not written much in 2 years. Read on at your own risk. [Read more Âť](/ramblings/73_writing.html)\n\n[EIP Visions](/ramblings/72_eipvolumes.html) JAN 22, 2010 [writing](/ramblings_writing.html) [conversations](/ramblings_conversations.html)\n\nThe beginning of a New Year is the time to reflect on the past and make resolutions\n for the future. It's become my tradition to kick off the year with some reflection\n on EIP, so here we go. [Read more Âť](/ramblings/72_eipvolumes.html)\n\n[Clouds and Integration Patterns at JavaOne](/ramblings/71_javaone.html) OCT 1, 2009 [events](/ramblings_events.html) [cloud](/ramblings_cloud.html)\n\nI joined JavaOne this year as a panelist on Cloud Computing. Here my belated impressions\n on this year's JavaOne. [Read more Âť](/ramblings/71_javaone.html)\n\n[My First Google Wave Robot](/ramblings/70_wave.html) August 1, 2009\n\nBy now everyone must have heard about Google Wave, the communication and collaboration\n platform announced at Google I/O. Google just announced that they are ramping up towards\n 20,000 developers on the current sandbox and will extend to 100,000 users by end of\n September. This will give many more people to opportunity to experiment with Wave.\n [Read more Âť](/ramblings/70_wave.html)\n\n[Google I/O](/ramblings/69_googleio.html) June 5, 2009 [events](/ramblings_events.html)\n\nI guess I am the last person to blog about Google I/O. By now, everyone should have\n read about Wave and the free Android phone (with 30 day SIM!). I am just now getting\n to write this up on my flight back to Japan, so I’ll give you my personal impressions\n and viewpoints, if you are still interested. [Read more Âť](/ramblings/69_googleio.html)\n\n[Into the Clouds on New Acid](/ramblings/68_acid.html) Mar 20, 2009 [design](/ramblings_design.html)\n\nI have been speaking more frequently about cloud computing in recent days. As SOA\n is becoming a daily reality, I needed to advance to new, still slightly nebulous topic.\n What could be a better fit than cloud computing? All jokes aside, cloud computing\n provides for some interesting discussions and one should safely assume that Google\n has a word or two to say about it. [Read more Âť](/ramblings/68_acid.html)\n\n[Design Patterns: More than meets the eye](/ramblings/67_patterns.html) Jan 13, 2009 [patterns](/ramblings_patterns.html)\n\nBlogging about design patterns seems about as original as blogging about the Java\n (TM) Programming Language, except for the missing (TM). However, as I just attended\n a workshop on software service engineering, I realized once again that people from\n different fields have very different notions about the concept and usage of patterns.\n Many workshop attendees raised questions about formalizing patterns, tooling, etc.\n I touched on this subject a tiny bit in a post from long time ago, but I figured that\n the topic really deserves more attention, especially since to me a pattern is so much\n more than the \"proven solution to a recurring problem within a specific context.\"\n [Read more Âť](/ramblings/67_patterns.html)\n\n[Reflecting on Enterprise Integration Patterns](/ramblings/66_fouryears.html) January 1, 2008 [writing](/ramblings_writing.html) [gregor](/ramblings_gregor.html)\n\nThe end of the year is always the time to reflect on the past happenings. My friends\n in Japan often send a New Year's card with 12 pictures, each showing the significant\n event during the month. I am not sure something significant related to Enterprise\n Integration Patterns happened each month, but I think it's still nice to reflect a\n little bit on the history and current state of the patterns. After all, the patterns\n have matured from a draft paper to being adopted as the lingua franca for a number\n of open source messaging projects.\n [Read more Âť](/ramblings/66_fouryears.html)\n\n[Google Gears Live From Japan](/ramblings/65_gears.html) December 26, 2007 [events](/ramblings_events.html)\n\nSince Google's Developer Day, I have been promising to speak more regularly about\n Google products. This is a bit of a balancing act for me, as I want to avoid the slippery\n slope of becoming a corporate sock puppet. I also don't want to neglect my interest\n in connected systems, SOA, and asynchronous messaging. With the Internet turning into\n the largest connected system, the gap between Web-based technologies and connected\n systems design has become significantly smaller, allowing me to combine interests\n and Google developer products more naturally. Of course, the fact that Google is rolling\n out new developer products and APIs around the clock, does not hurt either. [Read more Âť](/ramblings/65_gears.html)\n\n[Double-Dipping: OOPSLA and Colorado Software Summit](/ramblings/64_oopslacss.html) October 27, 2007 [events](/ramblings_events.html) [conversations](/ramblings_conversations.html)\n\nI am just returning from a trip to Montreal and Keystone, CO for the OOPSLA and Colorado\n Software Summit conferences. I spoke on SOA Patterns, workshopped my conversation\n pattern paper, and gave six talks on event-driven architectures and building mashups\n using Yahoo! Pipes and Google Mashup Editor. Phew! [Read more Âť](/ramblings/64_oopslacss.html)\n\n[Bubble 2.0](/ramblings/63_bubble20.html) October 15, 2007 [events](/ramblings_events.html)\n\nWhat’s wrong with this picture? I crash a stylish party at a pricey venue (SF Moma).\n I have no business being there, nor do I have the required invitation. I nonchalantly\n talk my way in, and hit the crowd with two fellow geeks. Within a few seconds an attractive\n blonde with a low cut dress approaches us and engages us in a conversation. We grab\n a few free drinks, indulge on the tirelessly circulating horse d’oeuvres, and talk\n to the blonde. [Read more Âť](/ramblings/63_bubble20.html)\n\n[Enterprise Mashup Summit](/ramblings/62_mashupsummit.html) October 1, 2007 [events](/ramblings_events.html)\n\nI attended the Enterprise Mashup Summit last Friday. It was a small-ish event, with\n about 50 people attending. We saw about 10 presentations, mostly by vendors plus an\n open forum. None of the presentations were too sales-ey, which gave the event a nice\n workshop feel. Given the limited size, it would have been nice to have more time for\n interaction. Here is a quick rundown of my impressions. [Read more Âť](/ramblings/62_mashupsummit.html)\n\n[Facebook Developer Garage](/ramblings/61_facebookgarage.html) September 25, 2007 [events](/ramblings_events.html)\n\nThe Internet is cruel. So you finally made the leap from EAI stone age to become a\n hip mashup developer. Now it turns out you are once again behind the curve, Unless\n you've written your won Facebook app and scored a million or so installs you are just\n a worm in the dust of the global data superhighway. Join the club. [Read more Âť](/ramblings/61_facebookgarage.html)\n\n[Mashups Tools Market](/ramblings/60_mashupmarket.html) August 18, 2007 [integration](/ramblings_integration.html)\n\nAs I reported from Mashup Camp, an increasing number of vendors play in the mashup\n space. I am obviously not the only one who noticed. Dion Hincliffe recently discussed\n 17 different mashup tools. Maybe I have an MBA hidden inside me (or 10 years of consulting\n left some marks), but I was temped to conduct my own market segmentation. Gartner\n would be proud of me. Just be aware that my analysis is not meant to be comprehensive\n and all statements carry a 0.5 probability of being right :-) [Read more Âť](/ramblings/60_mashupmarket.html)\n\n[Mashups == EAI 2.0?](/ramblings/59_mashupeai.html) July 27, 2007 [integration](/ramblings_integration.html)\n\nMashups pull data from different sources, aggregate and transform the data to be used\n in different contexts. EAI solutions pull data from different sources, aggregate and\n transform the data to be used in different contexts. Huh? [Read more Âť](/ramblings/59_mashupeai.html)\n\n[Mashup Camp](/ramblings/58_mashupcamp.html) July 18, 2007 [events](/ramblings_events.html)\n\nI attended the first day of Mashup Camp today. The event took place at the Computer\n History Museum, which is actually walking distance from my office. Ironically, the\n only day in the year when something actually happens within walking distance in Silicon\n Valley it had to rain. Oh well. [Read more Âť](/ramblings/58_mashupcamp.html)\n\n[I Want My Events](/ramblings/57_pipes.html) July 15, 2007 [writing](/ramblings_writing.html) [integration](/ramblings_integration.html)\n\nLast time I claimed that users like events. This time I want to show how I fulfilled\n my personal desire for events off the Web. I built two solutions to alert me to new\n book reviews on Amazon, one using a Python script, the other using Yahoo! Pipes. [Read more Âť](/ramblings/57_pipes.html)\n\n[Users Like Events](/ramblings/56_events.html) July 12, 2007 [events](/ramblings_events.html) [messaging](/ramblings_messaging.html)\n\nTwo weeks ago I presented a keynote at the DEBS (Distributed Event-based Systems)\n conference. The emphasis of the conference was on academic work in the field but event-based\n systems are rapidly gaining traction in commercial applications as CEP (Complex Event\n Processing) is becoming a household name like SOA (equally difficult to pin down).\n All this talk about events reminded me that applications on the Web are becoming increasingly\n event driven. [Read more Âť](/ramblings/56_events.html)\n\n[API's are for Humans, too](/ramblings/55_api.html) June 19, 2007 [design](/ramblings_design.html)\n\nWhen graphical user interfaces became popular thrifty people had the idea that they\n could generate them automatically. Well, that bubble burst pretty quickly. When people\n say nothing is new with Web services, they are right in this case. Once again people\n want to generate the interface automatically. [Read more Âť](/ramblings/55_api.html)\n\n[Google Developer Day](/ramblings/54_gdd.html) May 31, 2007 [events](/ramblings_events.html)\n\nLast week Google held a developer day in 10 cities around the world. Here are my take-aways. [Read more Âť](/ramblings/54_gdd.html)\n\n[Eric Newcomer is on to me](/ramblings/53_eric.html) May 26, 2007 [design](/ramblings_design.html)\n\nYou can only get away with joking about transactions for so long before the gods of\n transactions bring you to justice. So is was only a matter of time before Eric Newcomer\n would catch me waxing about coffee and transactional integrity... [Read more Âť](/ramblings/53_eric.html)\n\n[My Loss, Your Gain - SOA Patterns Article](/ramblings/52_soapatterns.html) May 21, 2007 [writing](/ramblings_writing.html) [webservices](/ramblings_webServices.html)\n\nBeginning of this year I submitted an article to a renowned software publication who\n is running a special issue on software patterns. Sadly, my article did not make it\n into the magazine but I decided to publish an expanded version on my site. Hey, I\n got to make it worth your time following my ramblings! Am I bitter that my article\n was rejected? Not at all, but if I ever get a hold of these #^%#$& -bleep- of a -bleep-\n I'll... [Read more Âť](/ramblings/52_soapatterns.html)\n\n[JavaOne 2007](/ramblings/51_javaone.html) May 11, 2007 [events](/ramblings_events.html)\n\nJavaOne is one of the few geek conferences that take place in San Francisco. The content\n can be hit or miss but the proximity and the good parties always make it worth stopping\n by. I also had to fulfil my duty to recruit the last smart software engineer in the\n Bay Area to Google. [Read more Âť](/ramblings/51_javaone.html)\n\n[I May Be a Flake, But At Least I Am Published!](/ramblings/50_publications.html) May 2, 2007 [gregor](/ramblings_gregor.html) [writing](/ramblings_writing.html)\n\nI have been pretty quiet recently, but I finally have some results to show. The current\n issue of IEEE Internet Computing (May/June 2007) contains my guest column for \"Toward\n Integration\". Also, I authored one chapter in the upcoming book \"SOA Expertenwissen\"\n (in German).\n [Read more Âť](/ramblings/50_publications.html)\n\n[Microsoft MVP Summit](/ramblings/49_mvpsummit.html) March 25, 2007 [events](/ramblings_events.html)\n\nEven though I have been working for the (self-declared) non-evil empire for a while\n now, I still have a lot of ties to the Microsoft community, even beyond drinking Weissbier\n with Christian Weyer. I am particularly proud that I have been able to maintain my\n MVP status, Microsoft's Most Valuable Professional award. Here my (brief) report from\n the MVP Summit in Seattle & Redmond.\n [Read more Âť](/ramblings/49_mvpsummit.html)\n\n[Validating Dynamic Systems](/ramblings/48_validation.html) Feb 1, 2007 [visualization](/ramblings_visualization.html) [modeling](/ramblings_modeling.html)\n\nErik Doernenburg and I have been presenting our talk on Software Validation a few\n times now and have received very positive feedback. In the talk we mention that beyond\n visualization you can use similar techniques to perform checks and validations against\n a system. However, none of our demos actually included an example. So I went out to\n correct that and added validations to my messaging visualizer. [Read more Âť](/ramblings/48_validation.html)\n\n[JAOO 2006](/ramblings/47_jaoo.html) Oct 6, 2006 [events](/ramblings_events.html) [modeling](/ramblings_modeling.html)\n\nI am just riding the train back from Aarhus (the second largest city in Denmark in\n case your geography skills are as weak as mine were before my first trip here) to\n Copenhagen. Many speakers consistently rave about JAOO. The speaker roster, the logistics,\n the attendees - everything just seems to be very high quality and run very smoothly.\n This year I was nominated to be track host for the SOA track entitled \"SOA - What's\n Left to Say?\" [Read more Âť](/ramblings/47_jaoo.html)\n\n[fooCamp](/ramblings/46_foo.html) Aug 28, 2006 [events](/ramblings_events.html)\n\nThis year I got to go to fooCamp! What is fooCamp? It is sort of like Burning Man\n for techno geeks. But just as Burning Man has gone pretty high tech fooCampers started\n to have more fun by burning things. It's difficult to put the experience into words... [Read more Âť](/ramblings/46_foo.html)\n\n[Web 2.0 Patterns](/ramblings/45_web20.html) Aug 24, 2006 [patterns](/ramblings_patterns.html)\n\nI confess. I am a groupie. When Tim O'Reilly invited me to be part of a workshop\n on Web 2.0 patterns I was quite excited. First, because I was going to meet the exalted\n one in person. Second, because I would have a chance to learn a lot about Web 2.0\n as I am pretty much starting from zero. [Read more Âť](/ramblings/45_web20.html)\n\n[Dagstuhl Seminar](/ramblings/44_dagstuhl.html) Aug 20, 2006 [events](/ramblings_events.html) [webservices](/ramblings_webServices.html) [conversations](/ramblings_conversations.html)\n\nI just returned from a trip to Germany to attend a workshop on The Role of Business\n Processes in Service Oriented Architecture. Besides a guaranteed top score in buzzword\n bingo the workshop provided a unique opportunity to connect thought leaders from academia\n and industry over the course of a week. The attendee roster sported the usual industry\n heavyweights, i.e., Microsoft, IBM, SAP, making me proud to add Google to the list.\n [Read more Âť](/ramblings/44_dagstuhl.html)\n\n[Integration Patterns in the Wild](/ramblings/43_wildpatterns.html) July 20, 2006 [writing](/ramblings_writing.html) [patterns](/ramblings_patterns.html) [integration](/ramblings_integration.html)\n\nHanging out with my intellectual drinking buddies reminded me that our integration\n patterns have been embraced by a fair number of commercial as well as open source\n projects. In my eyes this is really the best indicator of success for a pattern language.\n Latin, a dead language used mostly by doctors to sound more knowledgeable, is not\n a good model for a pattern language. You want a language that is alive and actually\n used by people. Talking to a few folks who did embrace our language motivated me to\n take a quick survey of the places where our patterns pop up. [Read more Âť](/ramblings/43_wildpatterns.html)\n\n[EAI DSLs](/ramblings/42_eaidsl.html) May 23, 2006 [design](/ramblings_design.html) [modeling](/ramblings_modeling.html)\n\nI am so clever. In my very first professional project in the US over 10 years ago\n I used a DSL to solve an EAI problem. If those buzzwords had been around at the time\n I would have been pretty cool, too. I guess you can’t have everything. [Read more Âť](/ramblings/42_eaidsl.html)\n\n[The Metrics Maid](/ramblings/41_metrics.html) April 28, 2006 [design](/ramblings_design.html)\n\nSome of the most hated people in San Francisco must be the meter maids, the DPT people\n who drive around in golf carts and hand out tickets to anyone who overslept street\n cleaning or did not have enough quarters for the meter. On some projects, the most\n hated people are the metric maids, the people who go around and try to sum up a developer’s\n hard work and intellectual genius in a number between 1 and 10. [Read more Âť](/ramblings/41_metrics.html)\n\n[March is Not a Number](/ramblings/40_marchnan.html) April 16, 2006 [design](/ramblings_design.html)\n\nA lot of discussion these days relates to DSL's (Domain Specific Languages) that allow\n business models and rules to expressed in a more readable fashion in the source code.\n Ultimately one might be able to share the executable source of the system with the\n business users to validate that this is what they wanted. While Java is not necessarily\n the greatest language to \"host\" a DSL we can go a lot further than developers generally\n believe or care for. [Read more Âť](/ramblings/40_marchnan.html)\n\n[What is in a Name?](/ramblings/39_namingchannels.html) Mar 5, 2006 [design](/ramblings_design.html) [messaging](/ramblings_messaging.html)\n\nComputer science is known as the field where every problem can be solved by just one\n more level of indirection. Well, a message channel berween two components is such\n a level of indirection. As it turns out naming this additional element can have a\n more profound influence on the system design than might appear at first. [Read more Âť](/ramblings/39_namingchannels.html)\n\n[Of Boxes and Lines](/ramblings/38_interaction.html) Feb 25, 2006 [design](/ramblings_design.html)\n\nAfter joining the big G I put particular emphasis on staying in touch with the .Net\n community. For one thing, a fair number of my intellectual drinking buddies tend to\n congregate around the large software company in the Pacific Northwest. Second, as\n a believer in cross-platform integration, technology-neutral design patterns and peace\n on earth I want to make sure I switch the koolaid flavor every so often. One opportunity\n to do that presented itself at OOP in Munich where Ralf Westphal invited me to speak\n on distributed system architectures as part of the .Net track. During the proverbial\n hallway discussions we started talking about boxes and lines, but in a profound way...\n [Read more Âť](/ramblings/38_interaction.html)\n\n[Revenge of the Nerds - OOPSLA 2005](/ramblings/37_oopsla.html) October 23, 2005 [events](/ramblings_events.html)\n\nRemember the people from high school who had strange hobbies and could never get a\n date? Well, they all grew up and they are running a conference now, the Object-Oriented\n Programming, Systems, Languages, and Applications conference, OOPSLA in short. While\n the conference logistics can be quirky at times, the content is top notch. And it\n seems like most of them have managed to get a date after all. [Read more Âť](/ramblings/37_oopsla.html)\n\n[Ramblings Now In Audio](/ramblings/36_podcast.html) October 12, 2005 [gregor](/ramblings_gregor.html)\n\nTwo years ago you were not cool if you did not have a blog. Today you are not cool\n if you have not done a podcast. Of course I cannot allow myself to fall behind, so\n here is my podcast on layered applications: [Read more Âť](/ramblings/36_podcast.html)\n\n[Googlesoft](/ramblings/35_pdc.html) September 18 2005 [events](/ramblings_events.html)\n\n(Professional) life can be a little ironic sometimes. Now that I work for Google I\n was able to go to Microsoft's Professional Developer Conference aka PDC for the first\n time. It was actually very nice to be able to stay in touch with the \"other side\". [Read more Âť](/ramblings/35_pdc.html)\n\n[What Color Are My Shoes?](/ramblings/34_cb.html) September 1, 2005 [events](/ramblings_events.html) [design](/ramblings_design.html) [visualization](/ramblings_visualization.html)\n\nTwo weeks ago I attended a very small, but special conference on enterprise software\n development. Here is what I came away with.. [Read more Âť](/ramblings/34_cb.html)\n\n[Interface User](/ramblings/33_interface.html) August 5, 2005 [design](/ramblings_design.html)\n\nOne of the biggest perceived fears of authors is that someone publishes a book or\n an article on the same topic just ever so slightly ahead of you that you have done\n all the work but look like a copy cat if you still publish your work. In reality this\n actually does not happen very often (at least not for books) as each author has his\n or her unique style and view even on the same topic. This time, though, Ken Arnold\n stole a little bit of my show by publishing an excellent article in called \"Programmers\n are People, too\". [Read more Âť](/ramblings/33_interface.html)\n\n[New Packaging, Same Good Content](/ramblings/32_google.html) August 1, 2005 [gregor](/ramblings_gregor.html)\n\nAs many people have already heard, I changed employers. Before the rumor mill completes\n its work entirely, here a few comments from my end. [Read more Âť](/ramblings/32_google.html)\n\n[TechEd 2005 Europe: Event-Driven Architectures](/ramblings/31_techededa.html) July 11, 2005 [events](/ramblings_events.html)\n\nI just returned from Microsoft TechEd Europe in Amsterdam. I was lucky enough to present\n on event-driven architectures in front of almost 600 people. Since multiple people\n asked me for the source files, I figured I'd post a quick summary of the talk, including\n the source files. [Read more Âť](/ramblings/31_techededa.html)\n\n[Configure This!](/ramblings/30_configure.html) July 5, 2005 [design](/ramblings_design.html)\n\nHaving been to a number of conferences and their attached expo floors recently it\n was not surprising that I was not able to escape the line \"this tool does not require\n programming, everything is done through configuration\". Hearing this tag line for\n the third or fourth time got me wondering, \"what really is the difference between\n coding and configuring?\" [Read more Âť](/ramblings/30_configure.html)\n\n[Microsoft TechEd 2005 Digest](/ramblings/29_teched.html) June 7, 2005 [events](/ramblings_events.html)\n\nThis year I actually missed putting in a proposal for TechEd. However, that has not\n kept me from actually presenting :-) So I am here fighting the Orlando Summer humidity\n together with 11000 other geeks and am actually having a good time. [Read more Âť](/ramblings/29_teched.html)\n\n[Will the Real Asynchrony Please Stand Up?](/ramblings/28_asynchrony.html) May 15, 2005 [design](/ramblings_design.html) [messaging](/ramblings_messaging.html) [conversations](/ramblings_conversations.html) [webservices](/ramblings_webServices.html) [patterns](/ramblings_patterns.html)\n\nOn a recent project we developed a Web services framework that supports asynchronous\n callbacks and asynchronous invocation with polling. The difficulties we had describing\n what we were trying to do to my fellow ThoughtWorkers on other projects prompted me\n to discuss the different forms of asynchrony in a little more detail. [Read more Âť](/ramblings/28_asynchrony.html)\n\n[Are You Driving a DeLorean or a Toyota?](/ramblings/27_latency.html) March 30, 2005 [design](/ramblings_design.html) [messaging](/ramblings_messaging.html)\n\nWhen you build a distributed system you have to choose between latency and reliability.\n Sticking your head in the sand will not help (and you get sand in your ears...). [Read more Âť](/ramblings/27_latency.html)\n\n[Can You Say \"Synchronous Asymmetry or Asynchronous Symmetry\"?](/ramblings/26_symmetry.html) March 25, 2005 [messaging](/ramblings_messaging.html) [design](/ramblings_design.html)\n\nIn my perennial battle to free distributed system developers' minds from the perils\n of the call stack mentality I came across another reason why a call stack is not appropriate\n for distributed applications: the call stack is inherently asymmetric. However, when\n building distributed applications, that asymmetry really has no place. [Read more Âť](/ramblings/26_symmetry.html)\n\n[Patterns and Practices Summit](/ramblings/25_pnpSummit.html) March 15, 2005 [events](/ramblings_events.html)\n\nIt seems like I spend all my time at conferences. I am speaking at the Patterns and\n Practices Summit and SD West this week. This one is setup by Keith Pleas in close\n collaboration with the Patterns and Practices group at Microsoft. So yes, I am still\n promiscuous when it comes to platforms. But it makes me feel better that Ted Neward\n seems to beat me in that category, though. [Read more Âť](/ramblings/25_pnpSummit.html)\n\n[TSS Symposium Redux](/ramblings/24_tss2005.html) March 14, 2005 [events](/ramblings_events.html)\n\nA number of people have already about the TSSS but that can't stop me from occupying\n my fair share of the cyberspace with my impressions. [Read more Âť](/ramblings/24_tss2005.html)\n\n[BTW Conference](/ramblings/23_btw2005.html) March 6, 2005 [events](/ramblings_events.html)\n\nOK, so I am officially the slowest blogger on the 'Net... last week I attended two\n conferences, the BTW in Karlsruhe, Germany and TheServerSide Symposium in Las Vegas.\n Too bad they are over 6000 miles apart :-( [Read more Âť](/ramblings/23_btw2005.html)\n\n[Extensibility Points](/ramblings/22_extensibility.html) February 1, 2005 [design](/ramblings_design.html)\n\nToday's rambling takes a look at the application side of application integration.\n We recently looked at a packaged application under development and looked at criteria\n and options for how this application can live in an evolutionary and connected environment. [Read more Âť](/ramblings/22_extensibility.html)\n\n[SOA's and Drunk Driving](/ramblings/21_drunkdriving.html) January 17, 2005 [design](/ramblings_design.html) [architecture](/ramblings_architecture.html)\n\nHappy New Year everybody! Over the holidays I tried to sort out some of my thoughts\n on Web services, SOA, architectural styles, coupling and all the other good stuff.\n I started to think about service-oriented architectures as an architectural style\n and how it compares to prior styles, such as distributed component architectures.\n Maybe it was the New Year's mood but I started to think that the evolution of architectural\n styles is a little bit like drunk driving... [Read more Âť](/ramblings/21_drunkdriving.html)\n\n[Enemy of the State](/ramblings/20_statelessness.html) December 19, 2004 [design](/ramblings_design.html)\n\nOne of my favorite pastimes is to argue with people whether a solution is stateless,\n whether it should be stateless and what it means to be stateless in the first place.\n Ideally, the debate would involve alcoholic beverages and the other person would pick\n up the check. After \"loosely coupled\", \"stateless\" must be a close runner-up as the\n ultimate nirvana in buzzword-compliant architectures. It is also equally hotly debated.\n Today, I 'd like to share my view on state and lessness. If you disagree you are welcome\n to argue with me, but you are buying! :-) [Read more Âť](/ramblings/20_statelessness.html)\n\n[Good Composers are Few and Far in Between](/ramblings/19_composing.html) November 30, 2004 [design](/ramblings_design.html)\n\nLoosely coupled architectures are often portrayed as the holy grail of architecture.\n But all too often these architectures turn into what Martin Fowler coined the \"Architect's\n dream but the developer's nightmare\". This time I want to share some of the challenges\n we have found working with loosely coupled architectures and how we addressed them. [Read more Âť](/ramblings/19_composing.html)\n\n[Starbucks Does Not Use Two-Phase Commit](/ramblings/18_starbucks.html) November 19, 2004 [design](/ramblings_design.html) [conversations](/ramblings_conversations.html)\n\nPeople often criticize asynchronous messaging solutions as too complicated and cumbersome.\n Or, they believe distributed solutions cannot be successful unless they include a\n distributed transaction model. There is little doubt that asynchronous solutions require\n us to think in new ways as we have to deal with concurrency, out-of-sequence issues,\n correlation and other. However, the real world is full of examples of asynchronous\n processes that deal successfully with exactly the same issues. We don't have to go\n further than the local coffee shop... [Read more Âť](/ramblings/18_starbucks.html)\n\n[ACM Middleware Conference: Pub-Sub and Related Topics](/ramblings/17_acmconference.html) October 25, 2004 [events](/ramblings_events.html)\n\nI just attended the conference in Toronto (I thought a 1/2 day tutorial in integration\n patterns). This conference is more of an academic events when compared to some of\n the purely commercial conferences like JavaOne. It was interesting to see what academia\n are working on these days in the areas of middleware and SOA. [Read more Âť](/ramblings/17_acmconference.html)\n\n[Are \"Pattern\" and \"Component\" Antonyms?](/ramblings/16_patternscomponents.html) October 15, 2004 [patterns](/ramblings_patterns.html)\n\nLast year's OOPSLA tutorial on Enterprise Integration Patterns was quite well received.\n The most frequent constructive criticism was that the whole tutorial was PowerPoint\n as opposed to running code. I took that feedback to heart and set out to develop a\n toolkit that demonstrates the routing and transformation patterns in our book. After\n a lot of deja-vu in Windows GDI programming I created a toolkit that contains each\n pattern as a small executable. The toolkit is a lot of fun and makes for great demos,\n but it also triggered a bigger question. Are patterns meant to be codified as components? [Read more Âť](/ramblings/16_patternscomponents.html)\n\n[Indigo Design Preview](/ramblings/15_indigo.html) October 8, 2004\n\nI just attended the Indigo Strategic Design Review in Redmond. This means we got to\n interact with the product team and play with some pre-beta bits. Naturally, a lot\n of details are under NDA and are likely to evolve before the beta release. So here\n some rather general impressions -- I heard Internet connectivity in jail is really\n bad :-). [Read more Âť](/ramblings/15_indigo.html)\n\n[Look Ma -- No Middleware! Using Event-Driven Architectures inside a JVM.](/ramblings/14_edainjvm.html) October 1, 2004 [design](/ramblings_design.html) [messaging](/ramblings_messaging.html)\n\nOur most recent project was to replace a batch-oriented stored procedure with a more\n flexible, maintainable and scaleable Java-based architecture. We chose an event-driven\n architectural style that processes events as they occur. For the initial roll-out\n we did not even have to distribute the solution so it all runs in single JVM (if you\n ignore clustering for the moment). Read on to learn more about the implementation\n and our experiences with intra-JVM EDA. [Read more Âť](/ramblings/14_edainjvm.html)\n\n[Dependency Injection in Messaging Architectures](/ramblings/13_ioc.html) September 3, 2004 [messaging](/ramblings_messaging.html) [design](/ramblings_design.html)\n\nThe notion of Dependency Injection or Inversion of Control has generated quite a bit\n of interest lately. To a large extend, the move towards this architectural style is\n driven by developer's dissatisfaction with strong dependencies of individual components\n on their run-time container (for example, J2EE). These dependencies make it difficult\n or impossible to test components outside of their container, throwing a major monkey\n wrench into test-driven development of these types of applications. Dependency Injection\n avoids these dependencies and therefore improves testability. On a recent project\n we developed an event-driven architecture (intra-JVM, not distributed) and found that\n we could realize many of the same benefits. [Read more Âť](/ramblings/13_ioc.html)\n\n[Web Services Jeopardy](/ramblings/12_jeopardy.html) August 18, 2004 [webservices](/ramblings_webServices.html)\n\nIt is nearly impossible to keep track of all the Web Services (WS-*) specifications\n or proposed \"standards\". The matter is only worsened by the many competing proposals.\n Should you be using WS-Eventing or WS-Notification? How about WS-Reliability vs. WS-ReliableMessaging?\n Even if you choose the \"right\" specification, it still is likely to evolve over time.\n So are these standards useful at all for Web Services development today? I contend\n that they are, albeit in a somewhat unconventional way.... [Read more Âť](/ramblings/12_jeopardy.html)\n\n[Visualizing Dependencies](/ramblings/11_dependencies.html) July 12, 2004 [design](/ramblings_design.html) [visualization](/ramblings_visualization.html)\n\nMany of you have seen my rants on doodleware and top-down modeling. At the same time,\n anyone who has seen my book must believe me when I say that I am a very visual person.\n Is Gregor going schizophrenic (or becoming a hypocrite)? Not at all! I am a big fan\n of visual representations that are harvested from an actual running system and present\n the user with an accurate, big picture view of a working system. I felt it was time\n to put some money (time) where my mouth is and try to build such a solution and see\n what actually happens... [Read more Âť](/ramblings/11_dependencies.html)\n\n[JavaOne Redux](/ramblings/10_javaone.html) July 2, 2004 [events](/ramblings_events.html)\n\nFor a change I spoke at a conference without traveling halfway around the world. At\n over 15,000 attendees, JavaOne is one of the largest developer conferences. Unfortunately,\n the signal-to-noise ratio is not always all that great, but it is still a good place\n to meet old and new friends. This year's conference was littered with talk and demos\n on SOA, ESB, Web Services, orchestration etc. Here my impressions... [Read more Âť](/ramblings/10_javaone.html)\n\n[Correlation and Conversations](/ramblings/09_correlation.html) May 21, 2004 [messaging](/ramblings_messaging.html) [patterns](/ramblings_patterns.html) [conversations](/ramblings_conversations.html)\n\nWhen using asynchronous messaging, we can no longer rely on the linear, in-sequence\n execution of events. Therefore, the notion of correlating multiple messages is fundamental\n to designing robust messaging solutions. While correlation seems to be a simple concept\n at first glance, there are quite a few interesting nuances. [Read more Âť](/ramblings/09_correlation.html)\n\n[Integration Styles](/ramblings/08_integrationstyles.html) May 5, 2004 [integration](/ramblings_integration.html)\n\nA number of integration books classify integration into styles such as database integration,\n functional integration and so on. However, on closer examination it turns out that\n there is a fair amount of confusion about what these styles really mean. Let me give\n my view. [Read more Âť](/ramblings/08_integrationstyles.html)\n\n[No Escape From Integration](/ramblings/07_noescape.html) January 5, 2004 [design](/ramblings_design.html)\n\nI had never thought about having guest appearances on my ramblings, but this e-mail\n response from my friend Hyon made me laugh hard enough that I think it would be a\n waste not to share it with the community. [Read more Âť](/ramblings/07_noescape.html)\n\n[Hysteresis of Design Decisions](/ramblings/06_hysteresis.html) December 31, 2003 [design](/ramblings_design.html)\n\nDesign decisions can be influenced by many factors. In order to make matters more\n predictable, many architects look for clear-cut borderlines. How complex does my screen\n navigation have to be in order to justify a Front Controller as opposed to a Page\n Controller? How complex does my integration problem have to be to justify use of an\n EAI suite instead of hand wiring the solution? Invariably, the answer is \"it depends\".\n Let's have a closer look at why that is so. [Read more Âť](/ramblings/06_hysteresis.html)\n\n[The Dark Side of Encapsulation?](/ramblings/05_encapsulation.html) December 12, 2003 [architecture](/ramblings_architecture.html)\n\nEncapsulation and abstraction are the holy grail of today's software development.\n One of the great successes of hiding the implementation details under a common, abstracted\n interface are TCP/IP stacks. But as so often, overwhelming success can also have a\n flip side. [Read more Âť](/ramblings/05_encapsulation.html)\n\n[What Makes a Good Integration Developer?](/ramblings/04_skills.html) November 25, 2003 [integration](/ramblings_integration.html)\n\nWhen we assess the quality of a software engineer we don't look as much how long he\n has worked with a specific language but rather whether he or she has a good grasp\n of the underlying models and techniques, such as OO design, systems architecture.\n Still most EAI job offers sound like a software catalog: \"x years TIBCO IntegrationManager\",\n \"y years Vitria Businessware\" etc. etc. Some thoughts on what we should be really\n looking for... [Read more Âť](/ramblings/04_skills.html)\n\n[Hub and Spoke [or] Zen and the Art of Message Broker Maintenance](/ramblings/03_hubandspoke.html) November 12, 2003 [integration](/ramblings_integration.html)\n\nThe Hub-and-Spoke concept manifests itself in many ways in integration solution. Like\n any popular concept, it can sometimes cause as much confusion as it provides help. [Read more Âť](/ramblings/03_hubandspoke.html)\n\n[Doodleware](/ramblings/02_doodleware.html) November 1, 2003 [design](/ramblings_design.html) [integration](/ramblings_integration.html)\n\nMany integration tools offer graphical development tools. Do they really make integration\n easier? [Read more Âť](/ramblings/02_doodleware.html)\n\n[Integration Appliances](/ramblings/01_appliances.html) October 1, 2003 [integration](/ramblings_integration.html)\n\nIntegration appliances aim to make integration cheaper faster and more reliable. Is\n this technology ready for prime time? [Read more Âť](/ramblings/01_appliances.html)\n\n---", "znaku_textu": 61692, "slov": 8124, "odkazu": 152, "kodovani": "iso-8859-2", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/ramblings", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 06:03:19", "sha256": "84bcc8ef16869706f1403312a22996184a0d6139c99f7152022614f0ea265d3e", "hloubka": 1, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://www.infoq.com/presentations/hohpe-soa-conversations", "http://www.infoq.com/", "http://www.infoq.com/presentations/hohpe-soa-development", "http://www.drdobbs.com/an-asynchronous-world/184415001", "https://sites.google.com/site/gcodejp/slides/ProgrammingCloud_QCon.pdf", "https://architectelevator.com/blog", "https://www.twitter.com/ghohpe", "https://www.linkedin.com/today/author/ghohpe"]} {"url": "https://www.enterpriseintegrationpatterns.com/ramblings.html", "titulek": "Enterprise Integration Patterns: Gregor's Ramblings", "h1": "", "popis": "Thoughts on distributed system design collected over two decades.", "klicova_slova": "", "kanonicka": "", "jazyk": "", "robots_meta": "", "og": {"og:type": "website", "og:site_name": "Enterprise Integration Patterns", "og:title": "Blog - Enterprise Integration Patterns", "og:description": "Thoughts on distributed system design collected over two decades.", "og:url": "https://www.enterpriseintegrationpatterns.com/ramblings", "og:image": "https://www.enterpriseintegrationpatterns.com/img/eip1_patterns.png"}, "jsonld": [], "drobecky": [], "osnova": [], "markdown": "Gregor's Ramblings on Enterprise Integration\n\n---\n\n| My latest thoughts on integration architecture: |\n| --- |\n| [Queues invert control flow but require flow control](/ramblings/queues_flow_control.html) |\n| [Control Flow—The Other Half of Integration Patterns](/ramblings/queues_control_flow.html) |\n| [Event-driven = Loosely coupled? Not so fast!](/ramblings/eventdriven_coupling.html) |\n\n| [A Decade of Enterprise Integration Patterns](/articles.html)\n\r\n (IEEE Software) |\n| --- |\n| [20 Years of Patterns' Impact](/articles.html) \n\r\n (IEEE Software) |\n| [Conversations Between Loosely Coupled Services](http://www.infoq.com/presentations/hohpe-soa-conversations) \n\r\n (Video on [InfoQ](http://www.infoq.com)) |\n| [Developing in a Service-oriented World](http://www.infoq.com/presentations/hohpe-soa-development) \n\r\n (Video on [InfoQ](http://www.infoq.com)) |\n| [SOA Patterns - New Insights or Recycled Knowledge?](/docs/SoaPatterns.pdf)\n\r\n (Whitepaper) |\n| [Let's Have a Conversation](/docs/IEEE_IC_Conversations.pdf)\n(IEEE Internet Computing) |\n| [Programming Without a Call Stack - Event-driven Architectures](/docs/EDA.pdf)\n(ObjektSpektrum, 2006) |\n| [Your Coffee Shop Does Not Use Two-Phase Commit](/docs/IEEE_Software_Design_2PC.pdf)\n\r\n (IEEE Software) |\n| [Developing in a Service-Oriented World](/docs/SOA_World.pdf)\n(ThoughtWorks Whitepaper) |\n| [An Asynchronous World](http://www.drdobbs.com/an-asynchronous-world/184415001)\n\r\n (Software Development) |\n\n| [Nearfield Communication (NFC) in Japan](/docs/NfcOopHohpe.pdf)\n(OOP 2012) |\n| --- |\n| [Embedded OSS](/docs/EmbeddedOop.pdf)\n(OOP 2012) |\n| [Programming the Cloud](https://sites.google.com/site/gcodejp/slides/ProgrammingCloud_QCon.pdf)\n(QCOn Tokyo 2010) |\n| [Distributed Programming the Google Way](/docs/DistributedProgrammingGoogle.pdf)\n(Devoxx 2009) |\n| [Developing in a Service-Oriented World](/docs/hohpe_developing_in_soa_world.pdf)\n(SOACon 2007) |\n| [Programming without a Call Stack: Event-driven Architectures](/docs/hohpe_event_driven_architectures.pdf)\n(SOACon 2007) |\n| [Software Visualization and Model Extraction](/docs/TSS_software_visualization.pdf)\n(TheServerSide) |\n| [Where did all my beatiful code go?](/docs/SpringOneKeynotePub.pdf)\n(SpringOne, 2006) |\n| [Conversations Between Loosely Coupled Systems](/docs/Conversations_loosely_coupled.pdf)\n(SD West, 2006) |\n| [Enterprise Integration Patterns](/docs/jaoo_hohpeg_enterpriseintegrationpatterns.pdf)\n(JAOO, 2003) |\n\nThis blog chronicles my journey with asynchronous and distributed system design over\n two decades, covering [integration](/ramblings_integration.html), [messaging](/ramblings_messaging.html), and [conversation patterns](/ramblings_conversations.html), and [patterns](/ramblings_patterns.html).\n\nFind my posts on IT strategy, enterprise architecture, and digital transformation\n at [ArchitectElevator.com](https://architectelevator.com/blog).\n\n[RSS Feed](/ramblings.rss) [Twitter](https://www.twitter.com/ghohpe) [LinkedIn](https://www.linkedin.com/today/author/ghohpe)\n\n---\n\n[Queues invert control flow but require flow control](/ramblings/queues_flow_control.html) July 27, 2024 [integration](/ramblings_integration.html) [cloud](/ramblings_cloud.html) [events](/ramblings_events.html)\n\nQueues are key elements of any asynchronous system because they can invert control\n flow. Their ability to re-shape traffic enables high-throughput systems that behave\n gracefully under heavy load. But all that magic doesn't come for free: to function\n well, queues require flow control [Read more Âť](/ramblings/queues_flow_control.html)\n\n[Control Flow—The Other Half of Integration Patterns](/ramblings/queues_control_flow.html) July 30, 2024 [integration](/ramblings_integration.html) [cloud](/ramblings_cloud.html) [messaging](/ramblings_messaging.html)\n\nWhen describing messaging systems, it's natural to focus on data flow. However, control\n flow is what gives those systems their critical runtime properties like resilience\n or low latency. It's time to make control flow a first-class consideration. [Read more Âť](/ramblings/queues_control_flow.html)\n\n[Event-driven = Loosely coupled? Not so fast!](/ramblings/eventdriven_coupling.html) June 20, 2024 [integration](/ramblings_integration.html) [cloud](/ramblings_cloud.html) [events](/ramblings_events.html)\n\nEvent-driven architectures (EDAs) are frequently pitched as loosely coupled, when\n compared to other forms of integration. Coupling is a multi-faceted and nuanced property,\n so as architects we should have a closer look. [Read more Âť](/ramblings/eventdriven_coupling.html)\n\n[The Many Facets of Coupling](/ramblings/coupling_facets.html) June 10, 2024 [integration](/ramblings_integration.html) [cloud](/ramblings_cloud.html) [events](/ramblings_events.html)\n\nCoupling is integration's magic word. Despite entire books being written on the subject,\n it's still widely recited as a \"loose coupling is good\" mantra. Coupling deserves\n better, so let's clarify the dimensions and nuances of coupling. [Read more Âť](/ramblings/coupling_facets.html)\n\n[Serverless Loan Broker @ GCP](/ramblings/loanbroker_gcp_workflows.html) May 20, 2022 [integration](/ramblings_integration.html) [cloud](/ramblings_cloud.html)\n\nDo serverless solutions lock you in? Let's find out by porting / rebuilding the Serverless\n Loan Broker on top of Google's Cloud Platform (GCP). [Read more Âť](/ramblings/loanbroker_gcp_workflows.html)\n\n[Serverless Loan Broker @ AWS, Part 5: Integration Patterns with CDK](/ramblings/loanbroker_cdk.html) Jan 25, 2022 [integration](/ramblings_integration.html) [cloud](/ramblings_cloud.html)\n\nInfrastructure as Code (IaC) brings repeatability into the provisioning and deployment\n of cloud applications. However, the vocabulary used by most automation tools describes\n cloud platform resources as compared to the application's intent. As serverless applications\n take us further away from the infrastructure, we should also find better abstractions\n to express our automation. Perhaps, Enterprise Integration Patterns give us a head\n start? [Read more Âť](/ramblings/loanbroker_cdk.html)\n\n[Serverless Loan Broker @ AWS, Part 4: Automation](/ramblings/loanbroker_automation.html) November 30, 2021 [integration](/ramblings_integration.html) [cloud](/ramblings_cloud.html)\n\nInfrastructure as Code (IaC) has a whole new meaning for serverless applications.\n Rather than provision resources (the serverless frameworks do that for us), automation\n determines the system composition and configuration. As expected, quite a few options\n are available from simple command line to programming frameworks. Time to have a look. [Read more Âť](/ramblings/loanbroker_automation.html)\n\n[Serverless Loan Broker @AWS, Part 3: Publish-Subscribe with SNS](/ramblings/loanbroker_stepfunctions_pubsub.html) July 20, 2021 [integration](/ramblings_integration.html) [cloud](/ramblings_cloud.html)\n\nPart 3 of the mini-series on implementing the EIP Loan Broker as a serverless solution\n with AWS Step Functions uses a Publish-Subscribe Channel and a stand-alone Aggregator\n to request and process loan quotes. [Read more Âť](/ramblings/loanbroker_stepfunctions_pubsub.html)\n\n[Loan Broker @AWS, Part 2: Recipient List](/ramblings/loanbroker_stepfunctions_recipient_list.html) July 20, 2021 [integration](/ramblings_integration.html) [cloud](/ramblings_cloud.html)\n\nIn part 2 of this blog series I implement the Loan Broker Example using a Recipient\n List pattern, implemented in DynamoDB, Step Functions, and Lambda. [Read more Âť](/ramblings/loanbroker_stepfunctions_recipient_list.html)\n\n[Loan Broker Implementation with AWS Step Functions](/ramblings/loanbroker_stepfunctions.html) July 20, 2021 [integration](/ramblings_integration.html) [cloud](/ramblings_cloud.html)\n\nA lot has happened since we implemented the Loan Broker Example in EIP: we have the\n cloud, serverless computing, machine learning, service meshes and all sorts of other\n bells and whistles. Nevertheless, the integration patterns have passed the test of\n time as we shall see by implementing the original loan broker example with AWS Lambda\n and AWS Step Functions. [Read more Âť](/ramblings/loanbroker_stepfunctions.html)\n\n[Serverless Integration Patterns on Google Cloud Functions](/ramblings/google_cloud_functions.html) April 20, 2017 [messaging](/ramblings_messaging.html) [cloud](/ramblings_cloud.html)\n\nAfter examining which patterns are embedded in Google Cloud Pub/Sub in an earlier\n post, I implemented a few common patterns on top of Google Cloud Functions, Google's\n serverless implementation. It's amazing how easy it has become to get messaging patterns\n running in the cloud with only a minimum of wrapper code. [Read more Âť](/ramblings/google_cloud_functions.html)\n\n[Modern Examples for Enterprise Integration Patterns](/ramblings/eip1_examples_updated.html) February 5, 2017 [patterns](/ramblings_patterns.html)\n\nEnterprise Integration Patterns are timeless. That's why our book keeps selling well\n 20 years after its publication in 2003. However, the code examples haven't aged quite\n as well. I therefore updated several code examples to use modern tech like GoLang,\n Kafka, RabbitMQ, AWS, Azure Cloud Functions, and Google Cloud Pub/Sub. [Read more Âť](/ramblings/eip1_examples_updated.html)\n\n[37 Things or \"Where have all my ramblings gone?\"](/ramblings/94_37things.html) July 5, 2016 [writing](/ramblings_writing.html)\n\nAbout two years ago, I revived the ramblings from a four-year hibernation. Upon resurrection,\n the ramblings started to take a broader scope, including not only messaging, conversations,\n and patterns, but also communication and IT architecture topics. The new topics were\n a natural reflection of my new role as Chief Architect in a massive IT transformation\n and after a little while I decided that they deserve their own channel, so I wrote\n a book about it. [Read more Âť](/ramblings/94_37things.html)\n\n[25 Years of OOP](/ramblings/93_oop2016.html) February 5, 2016 [events](/ramblings_events.html)\n\nOOP is one of the conferences that originated in the \"OO\" era of the early to mid-nineties.\n While most of these events have shed the double \"O\" -- OOPSLA has become SPLASH and\n JAOO has become GOTO, OOP stayed true to its name and remains one of the premier German\n developer conferences. This year OOP celebrated its 25th anniversary. Here are my\n impressions. [Read more Âť](/ramblings/93_oop2016.html)\n\n[How to Scale an Organization? The same way you scale a system!](/ramblings/92_scaling.html) January 12, 2016 [architecture](/ramblings_architecture.html)\n\nThe digital world is all about scalability: millions of web sites, billions of hits\n per month, more data, more tweets, more images uploaded. To make this work, architects\n have learned a ton about scaling systems. With everything around us scaling to never-before-seen\n throughput, the limiting element in all this is bound to be us, the human users. And\n the organizations we work in. One may wonder, then, why scaling and optimizing throughput\n in organizations is considered a very different field usually completely ignored by\n the IT architects. I feel that many of the scalability and performance enhancement\n approaches experienced IT architects know can be just as well used to scale organizations.\n If a coffee shop can teach us about maximizing a system’s throughput, maybe our knowledge\n of IT systems design can help improve the performance of organizations! [Read more Âť](/ramblings/92_scaling.html)\n\n[The Architect’s Penthouse Bookshelf](/ramblings/91_bookshelfpenthouse.html) Dec 28, 2015 [architecture](/ramblings_architecture.html)\n\nWhen you hitchhike through the galaxy, a towel will generally do. To ride the you\n need to be a bit better equipped. Riding the elevator up and down is exciting and\n provides tremendous value to the organization. But it is also demanding as you need\n to adjust to different audiences, backgrounds and dynamics, becoming a technology\n shapeshifter of sorts. To help with this transformation, I recommended a few books\n for each major section of the corporate high-rise. [Read more Âť](/ramblings/91_bookshelfpenthouse.html)\n\n[If software eats the world, you better use version control!](/ramblings/90_softwareeatstheworld.html) Dec 6, 2015 [architecture](/ramblings_architecture.html)\n\nAs I recently observed, Corporate IT tends to be afraid of code: code is where all\n the pesky bugs come from, which have to be fixed by quirky, expensive, and unreliable\n developers or external consultants. This attitude plays to the favor of vendors who\n peddle products that \"only\" require configuration, as opposed to coding. Sadly, most\n configuration is really just programming in a poorly designed, rather constrained\n language without decent tooling or useful documentation. Being afraid of code and\n being unfamiliar with the modern development lifecycle is a dangerous proposition\n in a world where everything is becoming software-defined. [Read more Âť](/ramblings/90_softwareeatstheworld.html)\n\n[If you never kill anything, you will live among zombies. And they will eat your brain.](/ramblings/89_zombies.html) Sept 27, 2015 [architecture](/ramblings_architecture.html)\n\nCorporate IT lives among zombies: old systems that are half alive and have everyone\n in fear of going anywhere near them. They are also tough to kill completely. Worse\n yet, they eat IT staff's brains. It's like Shaun of the Dead minus the funny parts. [Read more Âť](/ramblings/89_zombies.html)\n\n[Movie Star Architects](/ramblings/88_moviestararchitects.html) Aug 1, 2015 [architecture](/ramblings_architecture.html)\n\nI recently wrote about architects and the role they play in large organizations. Still,\n the question often remains what an architect should be doing besides \"riding the elevator\".\n Let's try another analogy: movie characters. [Read more Âť](/ramblings/88_moviestararchitects.html)\n\n[Virtualization Matryoshka](/ramblings/87_matryoshka.html) July 15, 2015 [architecture](/ramblings_architecture.html) [cloud](/ramblings_cloud.html)\n\nIT loves virtualizing stuff, following the old rule that in computer science every\n problem can be solved by just one more level of indirection. Cloud computing is based\n on virtualization of compute resources - you don't need to know which machine your\n application is actually running on and you can get new ones with the click of a button.\n Before cloud was a buzzword, though, VMware and others have virtualized machines at\n the operating system levels. Recently (in terms of buzz, not technology), containers\n bring another level of light-weight virtualization of resources. And let's not forget\n the Java Virtual Machine, which also claims a level of virtualization. What are we\n supposed to do with all these levels of virtualization? [Read more Âť](/ramblings/87_matryoshka.html)\n\n[Is This Architecture? Look for Decisions!](/ramblings/86_isthisarchitecture.html) June 15, 2015 [architecture](/ramblings_architecture.html)\n\nPart of my job is to review system architectures. So I frequently ask teams to show\n me \"their architecture\", but almost as frequently I don't consider what I receive\n an architecture document. The inevitable question \"what do you expect?\" is also not\n so easy for me to answer: despite many formal definitions it's not immediately clear\n what architecture is or whether a document really depicts an architecture. One important\n test I apply is whether the document or the description contains any non-trivial decisions\n and the rationale behind them. [Read more Âť](/ramblings/86_isthisarchitecture.html)\n\n[Same Old Architecture - Best of Ramblings](/ramblings/85_sameoldarchitecture.html) May 15, 2015 [integration](/ramblings_integration.html) [writing](/ramblings_writing.html)\n\nArchitects can often be found commenting or complaining that many things in IT are\n the same old stuff in new packaging, created by marketing departments who were in\n need of a new buzzword. For example, aren't microservices really just SOA done right\n while SOA itself stands for \"Same Old Architecture\"? And the whole reactive movement\n seems to have re-discovered callbacks. Maybe there is some truth in this as at the\n recent SATURN conferences I found myself saying more often than I had expected \"I\n blogged about this\". So let's see which of my past ramblings are still relevant these\n days. [Read more Âť](/ramblings/85_sameoldarchitecture.html)\n\n[SATURN Conference 2015](/ramblings/84_saturn.html) May 1, 2015 [events](/ramblings_events.html) [architecture](/ramblings_architecture.html)\n\nI have not blogged about events in a while, but SATURN 2015 has been an amazing event\n that's well worth rambling about. [Read more Âť](/ramblings/84_saturn.html)\n\n[Free Gift with Subscription (Pattern)](/ramblings/83_subscribing.html) APR 26, 2015 [conversations](/ramblings_conversations.html) [integration](/ramblings_integration.html)\n\nDiscussing the Google cloud Pub/Sub system in the last rambling reminded me that the\n Publish-subscribe Channel pattern makes for a good example of the subtle but important\n difference between Messaging Patterns and Conversation Patterns. This comparison is\n timely as I picked up documenting Conversation Patterns again. [Read more Âť](/ramblings/83_subscribing.html)\n\n[Google Cloud Pub/Sub](/ramblings/82_googlepubsub.html) APR 8, 2015 [messaging](/ramblings_messaging.html) [integration](/ramblings_integration.html) [cloud](/ramblings_cloud.html)\n\nGoogle released the beta version of their publish-subscribe API just a few weeks ago.\n I show how to build a very simple demo app using the Java API and map the functionality\n to integration patterns to illustrate the design choices the team made. [Read more Âť](/ramblings/82_googlepubsub.html)\n\n[RESTful Conversations](/ramblings/81_restconversation.html) MAR 15, 2015 [conversations](/ramblings_conversations.html) [webservices](/ramblings_webServices.html) [integration](/ramblings_integration.html)\n\nAs indicated a good while ago I spent some time thinking about patterns that instead\n of following a message through multiple systems, looks at the message exchange over\n time between a (mostly) fixed set of systems. I call these message exchanges \"conversations\".\n Sadly my writing efforts on Conversation Patterns fell very much asleep around 2008,\n partly due to my fear that with the rise of REST, stateful conversations between systems\n would step into the background as most integration problems are now solved with a\n simple POST or GET. A presentation and conversation at Frank Leymann's IaaS PhD Seminar\n enlightened me that this is not at all true: systems following the REST architectural\n style very much engage in conversations. [Read more Âť](/ramblings/81_restconversation.html)\n\n[Sync or Swim](/ramblings/80_syncorswim.html) FEB 15, 2015 [patterns](/ramblings_patterns.html) [messaging](/ramblings_messaging.html) [modeling](/ramblings_modeling.html)\n\nWe were tempted multiple times to extend the EIP icon language, but always felt that\n simplicity should win over precision. However, seeing the visual vocabulary that my\n former Google colleague Ivan Gevirtz created, I am convinced that combining the two\n is useful. [Read more Âť](/ramblings/80_syncorswim.html)\n\n[The Architect Elevator](/ramblings/79_elevator.html) JAN 15, 2015 [architecture](/ramblings_architecture.html)\n\nArchitects frequently play a critical role as connecting and communicating element\n between multiple parties. Especially in large organizations such communication is\n an important factor: too many parties speak different languages to convey different,\n and often conflicting, objectives. Many layers of management only exacerbate the problem\n as communicating to corporate leadership resembles the \"telephone game\" where a circle\n of kids relays a message one-by-one just to realize at the end that the message has\n completely changed along the way. [Read more Âť](/ramblings/79_elevator.html)\n\n[The 3 Legs of an Architect](/ramblings/78_threelegs.html) DEC 28, 2014 [architecture](/ramblings_architecture.html)\n\nDefining what a software or IT architect is or does is no less challenging than defining\n software architecture itself. The SEI maintains a list of software architecture definitions,\n yet I have not seen a corresponding list for software architects. One could try to\n skirt the issue by declaring that software architects are the people who make software\n architecture. However, I think that this approach would be missing some important\n aspects of being an architect. [Read more Âť](/ramblings/78_threelegs.html)\n\n[Writing for Busy People](/ramblings/77_writing.html) SEP 21, 2014 [writing](/ramblings_writing.html)\n\nOne advantage of working for a relatively large organization is that I get to do a\n little more writing again. Not because I have spare time, but because in times of\n rapid change, communication across a large audience is critically important. It turns\n out, short papers are a good way to achieve that and my brief, but accurate technical\n position / decision papers have become a trademark of my architecture group (don't\n worry, we architects produce more than just paper).\n Correspondingly, one of my daily struggles is to convince others to write as well\n and to coach them to become better writers. In a sense, this forces me to transport\n what I know about writing from purely procedural knowledge, i.e. I know how to do\n it, to declarative knowledge, i.e. being able to understand why it is done and to\n describe to others how to do it.\n While this rambling's title is a pun on the popular books \"Japanese for busy People\",\n it intentionally implies an ambiguity that we are both writing for a busy audience,\n but are busy authors as well. [Read more Âť](/ramblings/77_writing.html)\n\n[Explaining Stuff](/ramblings/76_explaining.html) AUG 30, 2014 [writing](/ramblings_writing.html)\n\nAt a recent presentation, Martin Fowler introduced himself as a guy \"who is good at\n explaining things\". While this certainly has a touch of British Understatement™, it\n also highlights a critically important but rare skill in IT. As technology invades\n all parts of personal and professional lives, causing companies to absolutely depend\n on software and systems, decision makers often can no longer keep track of technical\n details. Because architects live at the intersection of technology and business, it\n is their responsibility to explain complex topics and highlight the ramifications\n of technical decisions. [Read more Âť](/ramblings/76_explaining.html)\n\n[DDD - Diagram Driven Design](/ramblings/75_ddd.html) MAR 22, 2010 [design](/ramblings_design.html) [modeling](/ramblings_modeling.html) [writing](/ramblings_writing.html)\n\nDrawing a picture turns out to be a useful system design technique. [Read more Âť](/ramblings/75_ddd.html)\n\n[What Does It Mean to Use Messaging?](/ramblings/74_messaging.html) FEB 17, 2010 [messaging](/ramblings_messaging.html)\n\nI was recently asked to help a team decide whether they should use messaging. Of course,\n I have not forgotten what I learned during many years in consulting: the consultant\n always answers \"it depends.\" A good consultant can tell you what the answer depends\n on. And a truly great consultant can convince you that you are asking the wrong question\n in the first place. [Read more Âť](/ramblings/74_messaging.html)\n\n[A Chapter a Day...](/ramblings/73_writing.html) FEB 1, 2010 [writing](/ramblings_writing.html)\n\nMy New Year's resolution was to write more, so here my thoughts on how to actually\n make that happen. In a sense it's a plan for myself to be more productive, but hopefully\n the ideas also work for other folks. Ironically, my work on EIP II has been stalled\n for a good while, so you're getting advice on how to be a prolific writer from someone\n who has not written much in 2 years. Read on at your own risk. [Read more Âť](/ramblings/73_writing.html)\n\n[EIP Visions](/ramblings/72_eipvolumes.html) JAN 22, 2010 [writing](/ramblings_writing.html) [conversations](/ramblings_conversations.html)\n\nThe beginning of a New Year is the time to reflect on the past and make resolutions\n for the future. It's become my tradition to kick off the year with some reflection\n on EIP, so here we go. [Read more Âť](/ramblings/72_eipvolumes.html)\n\n[Clouds and Integration Patterns at JavaOne](/ramblings/71_javaone.html) OCT 1, 2009 [events](/ramblings_events.html) [cloud](/ramblings_cloud.html)\n\nI joined JavaOne this year as a panelist on Cloud Computing. Here my belated impressions\n on this year's JavaOne. [Read more Âť](/ramblings/71_javaone.html)\n\n[My First Google Wave Robot](/ramblings/70_wave.html) August 1, 2009\n\nBy now everyone must have heard about Google Wave, the communication and collaboration\n platform announced at Google I/O. Google just announced that they are ramping up towards\n 20,000 developers on the current sandbox and will extend to 100,000 users by end of\n September. This will give many more people to opportunity to experiment with Wave.\n [Read more Âť](/ramblings/70_wave.html)\n\n[Google I/O](/ramblings/69_googleio.html) June 5, 2009 [events](/ramblings_events.html)\n\nI guess I am the last person to blog about Google I/O. By now, everyone should have\n read about Wave and the free Android phone (with 30 day SIM!). I am just now getting\n to write this up on my flight back to Japan, so I’ll give you my personal impressions\n and viewpoints, if you are still interested. [Read more Âť](/ramblings/69_googleio.html)\n\n[Into the Clouds on New Acid](/ramblings/68_acid.html) Mar 20, 2009 [design](/ramblings_design.html)\n\nI have been speaking more frequently about cloud computing in recent days. As SOA\n is becoming a daily reality, I needed to advance to new, still slightly nebulous topic.\n What could be a better fit than cloud computing? All jokes aside, cloud computing\n provides for some interesting discussions and one should safely assume that Google\n has a word or two to say about it. [Read more Âť](/ramblings/68_acid.html)\n\n[Design Patterns: More than meets the eye](/ramblings/67_patterns.html) Jan 13, 2009 [patterns](/ramblings_patterns.html)\n\nBlogging about design patterns seems about as original as blogging about the Java\n (TM) Programming Language, except for the missing (TM). However, as I just attended\n a workshop on software service engineering, I realized once again that people from\n different fields have very different notions about the concept and usage of patterns.\n Many workshop attendees raised questions about formalizing patterns, tooling, etc.\n I touched on this subject a tiny bit in a post from long time ago, but I figured that\n the topic really deserves more attention, especially since to me a pattern is so much\n more than the \"proven solution to a recurring problem within a specific context.\"\n [Read more Âť](/ramblings/67_patterns.html)\n\n[Reflecting on Enterprise Integration Patterns](/ramblings/66_fouryears.html) January 1, 2008 [writing](/ramblings_writing.html) [gregor](/ramblings_gregor.html)\n\nThe end of the year is always the time to reflect on the past happenings. My friends\n in Japan often send a New Year's card with 12 pictures, each showing the significant\n event during the month. I am not sure something significant related to Enterprise\n Integration Patterns happened each month, but I think it's still nice to reflect a\n little bit on the history and current state of the patterns. After all, the patterns\n have matured from a draft paper to being adopted as the lingua franca for a number\n of open source messaging projects.\n [Read more Âť](/ramblings/66_fouryears.html)\n\n[Google Gears Live From Japan](/ramblings/65_gears.html) December 26, 2007 [events](/ramblings_events.html)\n\nSince Google's Developer Day, I have been promising to speak more regularly about\n Google products. This is a bit of a balancing act for me, as I want to avoid the slippery\n slope of becoming a corporate sock puppet. I also don't want to neglect my interest\n in connected systems, SOA, and asynchronous messaging. With the Internet turning into\n the largest connected system, the gap between Web-based technologies and connected\n systems design has become significantly smaller, allowing me to combine interests\n and Google developer products more naturally. Of course, the fact that Google is rolling\n out new developer products and APIs around the clock, does not hurt either. [Read more Âť](/ramblings/65_gears.html)\n\n[Double-Dipping: OOPSLA and Colorado Software Summit](/ramblings/64_oopslacss.html) October 27, 2007 [events](/ramblings_events.html) [conversations](/ramblings_conversations.html)\n\nI am just returning from a trip to Montreal and Keystone, CO for the OOPSLA and Colorado\n Software Summit conferences. I spoke on SOA Patterns, workshopped my conversation\n pattern paper, and gave six talks on event-driven architectures and building mashups\n using Yahoo! Pipes and Google Mashup Editor. Phew! [Read more Âť](/ramblings/64_oopslacss.html)\n\n[Bubble 2.0](/ramblings/63_bubble20.html) October 15, 2007 [events](/ramblings_events.html)\n\nWhat’s wrong with this picture? I crash a stylish party at a pricey venue (SF Moma).\n I have no business being there, nor do I have the required invitation. I nonchalantly\n talk my way in, and hit the crowd with two fellow geeks. Within a few seconds an attractive\n blonde with a low cut dress approaches us and engages us in a conversation. We grab\n a few free drinks, indulge on the tirelessly circulating horse d’oeuvres, and talk\n to the blonde. [Read more Âť](/ramblings/63_bubble20.html)\n\n[Enterprise Mashup Summit](/ramblings/62_mashupsummit.html) October 1, 2007 [events](/ramblings_events.html)\n\nI attended the Enterprise Mashup Summit last Friday. It was a small-ish event, with\n about 50 people attending. We saw about 10 presentations, mostly by vendors plus an\n open forum. None of the presentations were too sales-ey, which gave the event a nice\n workshop feel. Given the limited size, it would have been nice to have more time for\n interaction. Here is a quick rundown of my impressions. [Read more Âť](/ramblings/62_mashupsummit.html)\n\n[Facebook Developer Garage](/ramblings/61_facebookgarage.html) September 25, 2007 [events](/ramblings_events.html)\n\nThe Internet is cruel. So you finally made the leap from EAI stone age to become a\n hip mashup developer. Now it turns out you are once again behind the curve, Unless\n you've written your won Facebook app and scored a million or so installs you are just\n a worm in the dust of the global data superhighway. Join the club. [Read more Âť](/ramblings/61_facebookgarage.html)\n\n[Mashups Tools Market](/ramblings/60_mashupmarket.html) August 18, 2007 [integration](/ramblings_integration.html)\n\nAs I reported from Mashup Camp, an increasing number of vendors play in the mashup\n space. I am obviously not the only one who noticed. Dion Hincliffe recently discussed\n 17 different mashup tools. Maybe I have an MBA hidden inside me (or 10 years of consulting\n left some marks), but I was temped to conduct my own market segmentation. Gartner\n would be proud of me. Just be aware that my analysis is not meant to be comprehensive\n and all statements carry a 0.5 probability of being right :-) [Read more Âť](/ramblings/60_mashupmarket.html)\n\n[Mashups == EAI 2.0?](/ramblings/59_mashupeai.html) July 27, 2007 [integration](/ramblings_integration.html)\n\nMashups pull data from different sources, aggregate and transform the data to be used\n in different contexts. EAI solutions pull data from different sources, aggregate and\n transform the data to be used in different contexts. Huh? [Read more Âť](/ramblings/59_mashupeai.html)\n\n[Mashup Camp](/ramblings/58_mashupcamp.html) July 18, 2007 [events](/ramblings_events.html)\n\nI attended the first day of Mashup Camp today. The event took place at the Computer\n History Museum, which is actually walking distance from my office. Ironically, the\n only day in the year when something actually happens within walking distance in Silicon\n Valley it had to rain. Oh well. [Read more Âť](/ramblings/58_mashupcamp.html)\n\n[I Want My Events](/ramblings/57_pipes.html) July 15, 2007 [writing](/ramblings_writing.html) [integration](/ramblings_integration.html)\n\nLast time I claimed that users like events. This time I want to show how I fulfilled\n my personal desire for events off the Web. I built two solutions to alert me to new\n book reviews on Amazon, one using a Python script, the other using Yahoo! Pipes. [Read more Âť](/ramblings/57_pipes.html)\n\n[Users Like Events](/ramblings/56_events.html) July 12, 2007 [events](/ramblings_events.html) [messaging](/ramblings_messaging.html)\n\nTwo weeks ago I presented a keynote at the DEBS (Distributed Event-based Systems)\n conference. The emphasis of the conference was on academic work in the field but event-based\n systems are rapidly gaining traction in commercial applications as CEP (Complex Event\n Processing) is becoming a household name like SOA (equally difficult to pin down).\n All this talk about events reminded me that applications on the Web are becoming increasingly\n event driven. [Read more Âť](/ramblings/56_events.html)\n\n[API's are for Humans, too](/ramblings/55_api.html) June 19, 2007 [design](/ramblings_design.html)\n\nWhen graphical user interfaces became popular thrifty people had the idea that they\n could generate them automatically. Well, that bubble burst pretty quickly. When people\n say nothing is new with Web services, they are right in this case. Once again people\n want to generate the interface automatically. [Read more Âť](/ramblings/55_api.html)\n\n[Google Developer Day](/ramblings/54_gdd.html) May 31, 2007 [events](/ramblings_events.html)\n\nLast week Google held a developer day in 10 cities around the world. Here are my take-aways. [Read more Âť](/ramblings/54_gdd.html)\n\n[Eric Newcomer is on to me](/ramblings/53_eric.html) May 26, 2007 [design](/ramblings_design.html)\n\nYou can only get away with joking about transactions for so long before the gods of\n transactions bring you to justice. So is was only a matter of time before Eric Newcomer\n would catch me waxing about coffee and transactional integrity... [Read more Âť](/ramblings/53_eric.html)\n\n[My Loss, Your Gain - SOA Patterns Article](/ramblings/52_soapatterns.html) May 21, 2007 [writing](/ramblings_writing.html) [webservices](/ramblings_webServices.html)\n\nBeginning of this year I submitted an article to a renowned software publication who\n is running a special issue on software patterns. Sadly, my article did not make it\n into the magazine but I decided to publish an expanded version on my site. Hey, I\n got to make it worth your time following my ramblings! Am I bitter that my article\n was rejected? Not at all, but if I ever get a hold of these #^%#$& -bleep- of a -bleep-\n I'll... [Read more Âť](/ramblings/52_soapatterns.html)\n\n[JavaOne 2007](/ramblings/51_javaone.html) May 11, 2007 [events](/ramblings_events.html)\n\nJavaOne is one of the few geek conferences that take place in San Francisco. The content\n can be hit or miss but the proximity and the good parties always make it worth stopping\n by. I also had to fulfil my duty to recruit the last smart software engineer in the\n Bay Area to Google. [Read more Âť](/ramblings/51_javaone.html)\n\n[I May Be a Flake, But At Least I Am Published!](/ramblings/50_publications.html) May 2, 2007 [gregor](/ramblings_gregor.html) [writing](/ramblings_writing.html)\n\nI have been pretty quiet recently, but I finally have some results to show. The current\n issue of IEEE Internet Computing (May/June 2007) contains my guest column for \"Toward\n Integration\". Also, I authored one chapter in the upcoming book \"SOA Expertenwissen\"\n (in German).\n [Read more Âť](/ramblings/50_publications.html)\n\n[Microsoft MVP Summit](/ramblings/49_mvpsummit.html) March 25, 2007 [events](/ramblings_events.html)\n\nEven though I have been working for the (self-declared) non-evil empire for a while\n now, I still have a lot of ties to the Microsoft community, even beyond drinking Weissbier\n with Christian Weyer. I am particularly proud that I have been able to maintain my\n MVP status, Microsoft's Most Valuable Professional award. Here my (brief) report from\n the MVP Summit in Seattle & Redmond.\n [Read more Âť](/ramblings/49_mvpsummit.html)\n\n[Validating Dynamic Systems](/ramblings/48_validation.html) Feb 1, 2007 [visualization](/ramblings_visualization.html) [modeling](/ramblings_modeling.html)\n\nErik Doernenburg and I have been presenting our talk on Software Validation a few\n times now and have received very positive feedback. In the talk we mention that beyond\n visualization you can use similar techniques to perform checks and validations against\n a system. However, none of our demos actually included an example. So I went out to\n correct that and added validations to my messaging visualizer. [Read more Âť](/ramblings/48_validation.html)\n\n[JAOO 2006](/ramblings/47_jaoo.html) Oct 6, 2006 [events](/ramblings_events.html) [modeling](/ramblings_modeling.html)\n\nI am just riding the train back from Aarhus (the second largest city in Denmark in\n case your geography skills are as weak as mine were before my first trip here) to\n Copenhagen. Many speakers consistently rave about JAOO. The speaker roster, the logistics,\n the attendees - everything just seems to be very high quality and run very smoothly.\n This year I was nominated to be track host for the SOA track entitled \"SOA - What's\n Left to Say?\" [Read more Âť](/ramblings/47_jaoo.html)\n\n[fooCamp](/ramblings/46_foo.html) Aug 28, 2006 [events](/ramblings_events.html)\n\nThis year I got to go to fooCamp! What is fooCamp? It is sort of like Burning Man\n for techno geeks. But just as Burning Man has gone pretty high tech fooCampers started\n to have more fun by burning things. It's difficult to put the experience into words... [Read more Âť](/ramblings/46_foo.html)\n\n[Web 2.0 Patterns](/ramblings/45_web20.html) Aug 24, 2006 [patterns](/ramblings_patterns.html)\n\nI confess. I am a groupie. When Tim O'Reilly invited me to be part of a workshop\n on Web 2.0 patterns I was quite excited. First, because I was going to meet the exalted\n one in person. Second, because I would have a chance to learn a lot about Web 2.0\n as I am pretty much starting from zero. [Read more Âť](/ramblings/45_web20.html)\n\n[Dagstuhl Seminar](/ramblings/44_dagstuhl.html) Aug 20, 2006 [events](/ramblings_events.html) [webservices](/ramblings_webServices.html) [conversations](/ramblings_conversations.html)\n\nI just returned from a trip to Germany to attend a workshop on The Role of Business\n Processes in Service Oriented Architecture. Besides a guaranteed top score in buzzword\n bingo the workshop provided a unique opportunity to connect thought leaders from academia\n and industry over the course of a week. The attendee roster sported the usual industry\n heavyweights, i.e., Microsoft, IBM, SAP, making me proud to add Google to the list.\n [Read more Âť](/ramblings/44_dagstuhl.html)\n\n[Integration Patterns in the Wild](/ramblings/43_wildpatterns.html) July 20, 2006 [writing](/ramblings_writing.html) [patterns](/ramblings_patterns.html) [integration](/ramblings_integration.html)\n\nHanging out with my intellectual drinking buddies reminded me that our integration\n patterns have been embraced by a fair number of commercial as well as open source\n projects. In my eyes this is really the best indicator of success for a pattern language.\n Latin, a dead language used mostly by doctors to sound more knowledgeable, is not\n a good model for a pattern language. You want a language that is alive and actually\n used by people. Talking to a few folks who did embrace our language motivated me to\n take a quick survey of the places where our patterns pop up. [Read more Âť](/ramblings/43_wildpatterns.html)\n\n[EAI DSLs](/ramblings/42_eaidsl.html) May 23, 2006 [design](/ramblings_design.html) [modeling](/ramblings_modeling.html)\n\nI am so clever. In my very first professional project in the US over 10 years ago\n I used a DSL to solve an EAI problem. If those buzzwords had been around at the time\n I would have been pretty cool, too. I guess you can’t have everything. [Read more Âť](/ramblings/42_eaidsl.html)\n\n[The Metrics Maid](/ramblings/41_metrics.html) April 28, 2006 [design](/ramblings_design.html)\n\nSome of the most hated people in San Francisco must be the meter maids, the DPT people\n who drive around in golf carts and hand out tickets to anyone who overslept street\n cleaning or did not have enough quarters for the meter. On some projects, the most\n hated people are the metric maids, the people who go around and try to sum up a developer’s\n hard work and intellectual genius in a number between 1 and 10. [Read more Âť](/ramblings/41_metrics.html)\n\n[March is Not a Number](/ramblings/40_marchnan.html) April 16, 2006 [design](/ramblings_design.html)\n\nA lot of discussion these days relates to DSL's (Domain Specific Languages) that allow\n business models and rules to expressed in a more readable fashion in the source code.\n Ultimately one might be able to share the executable source of the system with the\n business users to validate that this is what they wanted. While Java is not necessarily\n the greatest language to \"host\" a DSL we can go a lot further than developers generally\n believe or care for. [Read more Âť](/ramblings/40_marchnan.html)\n\n[What is in a Name?](/ramblings/39_namingchannels.html) Mar 5, 2006 [design](/ramblings_design.html) [messaging](/ramblings_messaging.html)\n\nComputer science is known as the field where every problem can be solved by just one\n more level of indirection. Well, a message channel berween two components is such\n a level of indirection. As it turns out naming this additional element can have a\n more profound influence on the system design than might appear at first. [Read more Âť](/ramblings/39_namingchannels.html)\n\n[Of Boxes and Lines](/ramblings/38_interaction.html) Feb 25, 2006 [design](/ramblings_design.html)\n\nAfter joining the big G I put particular emphasis on staying in touch with the .Net\n community. For one thing, a fair number of my intellectual drinking buddies tend to\n congregate around the large software company in the Pacific Northwest. Second, as\n a believer in cross-platform integration, technology-neutral design patterns and peace\n on earth I want to make sure I switch the koolaid flavor every so often. One opportunity\n to do that presented itself at OOP in Munich where Ralf Westphal invited me to speak\n on distributed system architectures as part of the .Net track. During the proverbial\n hallway discussions we started talking about boxes and lines, but in a profound way...\n [Read more Âť](/ramblings/38_interaction.html)\n\n[Revenge of the Nerds - OOPSLA 2005](/ramblings/37_oopsla.html) October 23, 2005 [events](/ramblings_events.html)\n\nRemember the people from high school who had strange hobbies and could never get a\n date? Well, they all grew up and they are running a conference now, the Object-Oriented\n Programming, Systems, Languages, and Applications conference, OOPSLA in short. While\n the conference logistics can be quirky at times, the content is top notch. And it\n seems like most of them have managed to get a date after all. [Read more Âť](/ramblings/37_oopsla.html)\n\n[Ramblings Now In Audio](/ramblings/36_podcast.html) October 12, 2005 [gregor](/ramblings_gregor.html)\n\nTwo years ago you were not cool if you did not have a blog. Today you are not cool\n if you have not done a podcast. Of course I cannot allow myself to fall behind, so\n here is my podcast on layered applications: [Read more Âť](/ramblings/36_podcast.html)\n\n[Googlesoft](/ramblings/35_pdc.html) September 18 2005 [events](/ramblings_events.html)\n\n(Professional) life can be a little ironic sometimes. Now that I work for Google I\n was able to go to Microsoft's Professional Developer Conference aka PDC for the first\n time. It was actually very nice to be able to stay in touch with the \"other side\". [Read more Âť](/ramblings/35_pdc.html)\n\n[What Color Are My Shoes?](/ramblings/34_cb.html) September 1, 2005 [events](/ramblings_events.html) [design](/ramblings_design.html) [visualization](/ramblings_visualization.html)\n\nTwo weeks ago I attended a very small, but special conference on enterprise software\n development. Here is what I came away with.. [Read more Âť](/ramblings/34_cb.html)\n\n[Interface User](/ramblings/33_interface.html) August 5, 2005 [design](/ramblings_design.html)\n\nOne of the biggest perceived fears of authors is that someone publishes a book or\n an article on the same topic just ever so slightly ahead of you that you have done\n all the work but look like a copy cat if you still publish your work. In reality this\n actually does not happen very often (at least not for books) as each author has his\n or her unique style and view even on the same topic. This time, though, Ken Arnold\n stole a little bit of my show by publishing an excellent article in called \"Programmers\n are People, too\". [Read more Âť](/ramblings/33_interface.html)\n\n[New Packaging, Same Good Content](/ramblings/32_google.html) August 1, 2005 [gregor](/ramblings_gregor.html)\n\nAs many people have already heard, I changed employers. Before the rumor mill completes\n its work entirely, here a few comments from my end. [Read more Âť](/ramblings/32_google.html)\n\n[TechEd 2005 Europe: Event-Driven Architectures](/ramblings/31_techededa.html) July 11, 2005 [events](/ramblings_events.html)\n\nI just returned from Microsoft TechEd Europe in Amsterdam. I was lucky enough to present\n on event-driven architectures in front of almost 600 people. Since multiple people\n asked me for the source files, I figured I'd post a quick summary of the talk, including\n the source files. [Read more Âť](/ramblings/31_techededa.html)\n\n[Configure This!](/ramblings/30_configure.html) July 5, 2005 [design](/ramblings_design.html)\n\nHaving been to a number of conferences and their attached expo floors recently it\n was not surprising that I was not able to escape the line \"this tool does not require\n programming, everything is done through configuration\". Hearing this tag line for\n the third or fourth time got me wondering, \"what really is the difference between\n coding and configuring?\" [Read more Âť](/ramblings/30_configure.html)\n\n[Microsoft TechEd 2005 Digest](/ramblings/29_teched.html) June 7, 2005 [events](/ramblings_events.html)\n\nThis year I actually missed putting in a proposal for TechEd. However, that has not\n kept me from actually presenting :-) So I am here fighting the Orlando Summer humidity\n together with 11000 other geeks and am actually having a good time. [Read more Âť](/ramblings/29_teched.html)\n\n[Will the Real Asynchrony Please Stand Up?](/ramblings/28_asynchrony.html) May 15, 2005 [design](/ramblings_design.html) [messaging](/ramblings_messaging.html) [conversations](/ramblings_conversations.html) [webservices](/ramblings_webServices.html) [patterns](/ramblings_patterns.html)\n\nOn a recent project we developed a Web services framework that supports asynchronous\n callbacks and asynchronous invocation with polling. The difficulties we had describing\n what we were trying to do to my fellow ThoughtWorkers on other projects prompted me\n to discuss the different forms of asynchrony in a little more detail. [Read more Âť](/ramblings/28_asynchrony.html)\n\n[Are You Driving a DeLorean or a Toyota?](/ramblings/27_latency.html) March 30, 2005 [design](/ramblings_design.html) [messaging](/ramblings_messaging.html)\n\nWhen you build a distributed system you have to choose between latency and reliability.\n Sticking your head in the sand will not help (and you get sand in your ears...). [Read more Âť](/ramblings/27_latency.html)\n\n[Can You Say \"Synchronous Asymmetry or Asynchronous Symmetry\"?](/ramblings/26_symmetry.html) March 25, 2005 [messaging](/ramblings_messaging.html) [design](/ramblings_design.html)\n\nIn my perennial battle to free distributed system developers' minds from the perils\n of the call stack mentality I came across another reason why a call stack is not appropriate\n for distributed applications: the call stack is inherently asymmetric. However, when\n building distributed applications, that asymmetry really has no place. [Read more Âť](/ramblings/26_symmetry.html)\n\n[Patterns and Practices Summit](/ramblings/25_pnpSummit.html) March 15, 2005 [events](/ramblings_events.html)\n\nIt seems like I spend all my time at conferences. I am speaking at the Patterns and\n Practices Summit and SD West this week. This one is setup by Keith Pleas in close\n collaboration with the Patterns and Practices group at Microsoft. So yes, I am still\n promiscuous when it comes to platforms. But it makes me feel better that Ted Neward\n seems to beat me in that category, though. [Read more Âť](/ramblings/25_pnpSummit.html)\n\n[TSS Symposium Redux](/ramblings/24_tss2005.html) March 14, 2005 [events](/ramblings_events.html)\n\nA number of people have already about the TSSS but that can't stop me from occupying\n my fair share of the cyberspace with my impressions. [Read more Âť](/ramblings/24_tss2005.html)\n\n[BTW Conference](/ramblings/23_btw2005.html) March 6, 2005 [events](/ramblings_events.html)\n\nOK, so I am officially the slowest blogger on the 'Net... last week I attended two\n conferences, the BTW in Karlsruhe, Germany and TheServerSide Symposium in Las Vegas.\n Too bad they are over 6000 miles apart :-( [Read more Âť](/ramblings/23_btw2005.html)\n\n[Extensibility Points](/ramblings/22_extensibility.html) February 1, 2005 [design](/ramblings_design.html)\n\nToday's rambling takes a look at the application side of application integration.\n We recently looked at a packaged application under development and looked at criteria\n and options for how this application can live in an evolutionary and connected environment. [Read more Âť](/ramblings/22_extensibility.html)\n\n[SOA's and Drunk Driving](/ramblings/21_drunkdriving.html) January 17, 2005 [design](/ramblings_design.html) [architecture](/ramblings_architecture.html)\n\nHappy New Year everybody! Over the holidays I tried to sort out some of my thoughts\n on Web services, SOA, architectural styles, coupling and all the other good stuff.\n I started to think about service-oriented architectures as an architectural style\n and how it compares to prior styles, such as distributed component architectures.\n Maybe it was the New Year's mood but I started to think that the evolution of architectural\n styles is a little bit like drunk driving... [Read more Âť](/ramblings/21_drunkdriving.html)\n\n[Enemy of the State](/ramblings/20_statelessness.html) December 19, 2004 [design](/ramblings_design.html)\n\nOne of my favorite pastimes is to argue with people whether a solution is stateless,\n whether it should be stateless and what it means to be stateless in the first place.\n Ideally, the debate would involve alcoholic beverages and the other person would pick\n up the check. After \"loosely coupled\", \"stateless\" must be a close runner-up as the\n ultimate nirvana in buzzword-compliant architectures. It is also equally hotly debated.\n Today, I 'd like to share my view on state and lessness. If you disagree you are welcome\n to argue with me, but you are buying! :-) [Read more Âť](/ramblings/20_statelessness.html)\n\n[Good Composers are Few and Far in Between](/ramblings/19_composing.html) November 30, 2004 [design](/ramblings_design.html)\n\nLoosely coupled architectures are often portrayed as the holy grail of architecture.\n But all too often these architectures turn into what Martin Fowler coined the \"Architect's\n dream but the developer's nightmare\". This time I want to share some of the challenges\n we have found working with loosely coupled architectures and how we addressed them. [Read more Âť](/ramblings/19_composing.html)\n\n[Starbucks Does Not Use Two-Phase Commit](/ramblings/18_starbucks.html) November 19, 2004 [design](/ramblings_design.html) [conversations](/ramblings_conversations.html)\n\nPeople often criticize asynchronous messaging solutions as too complicated and cumbersome.\n Or, they believe distributed solutions cannot be successful unless they include a\n distributed transaction model. There is little doubt that asynchronous solutions require\n us to think in new ways as we have to deal with concurrency, out-of-sequence issues,\n correlation and other. However, the real world is full of examples of asynchronous\n processes that deal successfully with exactly the same issues. We don't have to go\n further than the local coffee shop... [Read more Âť](/ramblings/18_starbucks.html)\n\n[ACM Middleware Conference: Pub-Sub and Related Topics](/ramblings/17_acmconference.html) October 25, 2004 [events](/ramblings_events.html)\n\nI just attended the conference in Toronto (I thought a 1/2 day tutorial in integration\n patterns). This conference is more of an academic events when compared to some of\n the purely commercial conferences like JavaOne. It was interesting to see what academia\n are working on these days in the areas of middleware and SOA. [Read more Âť](/ramblings/17_acmconference.html)\n\n[Are \"Pattern\" and \"Component\" Antonyms?](/ramblings/16_patternscomponents.html) October 15, 2004 [patterns](/ramblings_patterns.html)\n\nLast year's OOPSLA tutorial on Enterprise Integration Patterns was quite well received.\n The most frequent constructive criticism was that the whole tutorial was PowerPoint\n as opposed to running code. I took that feedback to heart and set out to develop a\n toolkit that demonstrates the routing and transformation patterns in our book. After\n a lot of deja-vu in Windows GDI programming I created a toolkit that contains each\n pattern as a small executable. The toolkit is a lot of fun and makes for great demos,\n but it also triggered a bigger question. Are patterns meant to be codified as components? [Read more Âť](/ramblings/16_patternscomponents.html)\n\n[Indigo Design Preview](/ramblings/15_indigo.html) October 8, 2004\n\nI just attended the Indigo Strategic Design Review in Redmond. This means we got to\n interact with the product team and play with some pre-beta bits. Naturally, a lot\n of details are under NDA and are likely to evolve before the beta release. So here\n some rather general impressions -- I heard Internet connectivity in jail is really\n bad :-). [Read more Âť](/ramblings/15_indigo.html)\n\n[Look Ma -- No Middleware! Using Event-Driven Architectures inside a JVM.](/ramblings/14_edainjvm.html) October 1, 2004 [design](/ramblings_design.html) [messaging](/ramblings_messaging.html)\n\nOur most recent project was to replace a batch-oriented stored procedure with a more\n flexible, maintainable and scaleable Java-based architecture. We chose an event-driven\n architectural style that processes events as they occur. For the initial roll-out\n we did not even have to distribute the solution so it all runs in single JVM (if you\n ignore clustering for the moment). Read on to learn more about the implementation\n and our experiences with intra-JVM EDA. [Read more Âť](/ramblings/14_edainjvm.html)\n\n[Dependency Injection in Messaging Architectures](/ramblings/13_ioc.html) September 3, 2004 [messaging](/ramblings_messaging.html) [design](/ramblings_design.html)\n\nThe notion of Dependency Injection or Inversion of Control has generated quite a bit\n of interest lately. To a large extend, the move towards this architectural style is\n driven by developer's dissatisfaction with strong dependencies of individual components\n on their run-time container (for example, J2EE). These dependencies make it difficult\n or impossible to test components outside of their container, throwing a major monkey\n wrench into test-driven development of these types of applications. Dependency Injection\n avoids these dependencies and therefore improves testability. On a recent project\n we developed an event-driven architecture (intra-JVM, not distributed) and found that\n we could realize many of the same benefits. [Read more Âť](/ramblings/13_ioc.html)\n\n[Web Services Jeopardy](/ramblings/12_jeopardy.html) August 18, 2004 [webservices](/ramblings_webServices.html)\n\nIt is nearly impossible to keep track of all the Web Services (WS-*) specifications\n or proposed \"standards\". The matter is only worsened by the many competing proposals.\n Should you be using WS-Eventing or WS-Notification? How about WS-Reliability vs. WS-ReliableMessaging?\n Even if you choose the \"right\" specification, it still is likely to evolve over time.\n So are these standards useful at all for Web Services development today? I contend\n that they are, albeit in a somewhat unconventional way.... [Read more Âť](/ramblings/12_jeopardy.html)\n\n[Visualizing Dependencies](/ramblings/11_dependencies.html) July 12, 2004 [design](/ramblings_design.html) [visualization](/ramblings_visualization.html)\n\nMany of you have seen my rants on doodleware and top-down modeling. At the same time,\n anyone who has seen my book must believe me when I say that I am a very visual person.\n Is Gregor going schizophrenic (or becoming a hypocrite)? Not at all! I am a big fan\n of visual representations that are harvested from an actual running system and present\n the user with an accurate, big picture view of a working system. I felt it was time\n to put some money (time) where my mouth is and try to build such a solution and see\n what actually happens... [Read more Âť](/ramblings/11_dependencies.html)\n\n[JavaOne Redux](/ramblings/10_javaone.html) July 2, 2004 [events](/ramblings_events.html)\n\nFor a change I spoke at a conference without traveling halfway around the world. At\n over 15,000 attendees, JavaOne is one of the largest developer conferences. Unfortunately,\n the signal-to-noise ratio is not always all that great, but it is still a good place\n to meet old and new friends. This year's conference was littered with talk and demos\n on SOA, ESB, Web Services, orchestration etc. Here my impressions... [Read more Âť](/ramblings/10_javaone.html)\n\n[Correlation and Conversations](/ramblings/09_correlation.html) May 21, 2004 [messaging](/ramblings_messaging.html) [patterns](/ramblings_patterns.html) [conversations](/ramblings_conversations.html)\n\nWhen using asynchronous messaging, we can no longer rely on the linear, in-sequence\n execution of events. Therefore, the notion of correlating multiple messages is fundamental\n to designing robust messaging solutions. While correlation seems to be a simple concept\n at first glance, there are quite a few interesting nuances. [Read more Âť](/ramblings/09_correlation.html)\n\n[Integration Styles](/ramblings/08_integrationstyles.html) May 5, 2004 [integration](/ramblings_integration.html)\n\nA number of integration books classify integration into styles such as database integration,\n functional integration and so on. However, on closer examination it turns out that\n there is a fair amount of confusion about what these styles really mean. Let me give\n my view. [Read more Âť](/ramblings/08_integrationstyles.html)\n\n[No Escape From Integration](/ramblings/07_noescape.html) January 5, 2004 [design](/ramblings_design.html)\n\nI had never thought about having guest appearances on my ramblings, but this e-mail\n response from my friend Hyon made me laugh hard enough that I think it would be a\n waste not to share it with the community. [Read more Âť](/ramblings/07_noescape.html)\n\n[Hysteresis of Design Decisions](/ramblings/06_hysteresis.html) December 31, 2003 [design](/ramblings_design.html)\n\nDesign decisions can be influenced by many factors. In order to make matters more\n predictable, many architects look for clear-cut borderlines. How complex does my screen\n navigation have to be in order to justify a Front Controller as opposed to a Page\n Controller? How complex does my integration problem have to be to justify use of an\n EAI suite instead of hand wiring the solution? Invariably, the answer is \"it depends\".\n Let's have a closer look at why that is so. [Read more Âť](/ramblings/06_hysteresis.html)\n\n[The Dark Side of Encapsulation?](/ramblings/05_encapsulation.html) December 12, 2003 [architecture](/ramblings_architecture.html)\n\nEncapsulation and abstraction are the holy grail of today's software development.\n One of the great successes of hiding the implementation details under a common, abstracted\n interface are TCP/IP stacks. But as so often, overwhelming success can also have a\n flip side. [Read more Âť](/ramblings/05_encapsulation.html)\n\n[What Makes a Good Integration Developer?](/ramblings/04_skills.html) November 25, 2003 [integration](/ramblings_integration.html)\n\nWhen we assess the quality of a software engineer we don't look as much how long he\n has worked with a specific language but rather whether he or she has a good grasp\n of the underlying models and techniques, such as OO design, systems architecture.\n Still most EAI job offers sound like a software catalog: \"x years TIBCO IntegrationManager\",\n \"y years Vitria Businessware\" etc. etc. Some thoughts on what we should be really\n looking for... [Read more Âť](/ramblings/04_skills.html)\n\n[Hub and Spoke [or] Zen and the Art of Message Broker Maintenance](/ramblings/03_hubandspoke.html) November 12, 2003 [integration](/ramblings_integration.html)\n\nThe Hub-and-Spoke concept manifests itself in many ways in integration solution. Like\n any popular concept, it can sometimes cause as much confusion as it provides help. [Read more Âť](/ramblings/03_hubandspoke.html)\n\n[Doodleware](/ramblings/02_doodleware.html) November 1, 2003 [design](/ramblings_design.html) [integration](/ramblings_integration.html)\n\nMany integration tools offer graphical development tools. Do they really make integration\n easier? [Read more Âť](/ramblings/02_doodleware.html)\n\n[Integration Appliances](/ramblings/01_appliances.html) October 1, 2003 [integration](/ramblings_integration.html)\n\nIntegration appliances aim to make integration cheaper faster and more reliable. Is\n this technology ready for prime time? [Read more Âť](/ramblings/01_appliances.html)\n\n---", "znaku_textu": 61692, "slov": 8124, "odkazu": 152, "kodovani": "iso-8859-2", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/ramblings", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 06:01:22", "sha256": "84bcc8ef16869706f1403312a22996184a0d6139c99f7152022614f0ea265d3e", "hloubka": 1, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://www.infoq.com/presentations/hohpe-soa-conversations", "http://www.infoq.com/", "http://www.infoq.com/presentations/hohpe-soa-development", "http://www.drdobbs.com/an-asynchronous-world/184415001", "https://sites.google.com/site/gcodejp/slides/ProgrammingCloud_QCon.pdf", "https://architectelevator.com/blog", "https://www.twitter.com/ghohpe", "https://www.linkedin.com/today/author/ghohpe"]} {"url": "https://www.enterpriseintegrationpatterns.com/ramblings/01_appliances.html", "titulek": "Integration Appliances - Enterprise Integration Patterns", "h1": "Integration Appliances", "popis": "Integration appliances aim to make integration cheaper faster and more reliable", "klicova_slova": "", "kanonicka": "", "jazyk": "en_US", "robots_meta": "", "og": {"og:type": "article", "og:locale": "en_US", "og:site_name": "Enterprise Integration Patterns", "og:title": "Integration Appliances", "og:description": "Integration appliances aim to make integration cheaper faster and more reliable", "og:url": "https://www.enterpriseintegrationpatterns.com/ramblings/01_appliances.html"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Integration Appliances"}], "markdown": "Gregor's Ramblings\n\n---\n\n# Integration Appliances\n\nOctober 1, 2003\n\nFind my posts on IT strategy, enterprise architecture, and digital transformation\n at [ArchitectElevator.com](https://architectelevator.com/blog).\n\nIntegration is an odd animal. It's typically a lot more network centric than \n standard business applications because it deals with routing messages between \n different applications and locations. But integration is also different from \n typical IP-type networking because it is much more dependent on application \n specifics, such as message data formats or business logic. This fact has frustrated\n \n users for quite some time -- it seems like integration solutions are more difficult\n \n to build than stand-alone applications and at the same time are more difficult \n to operate than typical networking equipment, such as routers and switches.\n\nOne of the ideas that has been floating around the integration community is \n Why can't integration be more like networking? If we can route IP-based traffic \n using hardware routers, gateways and switches, can't we extend that model to \n application data. In fact, there are a number of striking similarities between \n the two technologies. For example, a number of our patterns use examples from \n the domain of TCP/IP. So if we could make networking smart enough to deal with \n application level data (sometimes called application-aware routing), we could \n hope to achieve the same reliability and low cost of operation that we accomplish\n \n with IP-based networking equipment today.\n\nThe Market\n\nThere are a few vendors on the market today that are exploring this approach. \n We can roughly split this market into two segments:\n\n- Hardware XML Processors\n- Integration Appliances\n\nThe first category includes devices that specialize in XML transformations \n using XSLT and XPATH. These devices can be configured to accept XML data in \n form of SOAP messages or as plain XML over HTTP, transform the data and route \n it to a new destination. That destination can be fixed or it can be determined \n on the fly based on the content of the message (effectively implementing a [Content-Based \n Router](../ContentBasedRouter.html)). Alternatively, these devices can be used as XSL co-processors from \n inside applications. Two vendors playing in this arena are [DataPower](http://www.datapower.com) \n and [Sarvega](http://www.sarvega.com) (please note \n that I do not endorse any specific vendor, I am simply listing the ones I have \n come across).\n\nThe second segment includes devices that provide additional integration functions,\n \n such as application adapters, transformation, routing, and orchestration, making \n them essentially [Message Brokers](../MessageBroker.html) in a box. \n Orchestration can be configured via custom UI tools or BPEL4WS files. Two vendors\n \n specializing in this segment are [Infotone](http://www.infotone.com) \n and [Cast Iron Systems](http://www.castironsys.com). \n The line between the two categories can blur a little bit as the XML processors \n start to include more powerful routing functions as well.\n\n[Wintergreen \n Research](http://wintergreenresearch.com/reports/XML_Final.htm) estimates that this market will be $2 billion in size in 2008. \n The fact that the forecast reaches out this far into the future might give us \n a hint that this market is still early in the life cycle. It also means that \n it's hard to prove the researchers wrong...who knows what we'll be doing in \n 2008? :-)\n\nThe Benefits\n\nThese appliances appear to promise three key benefits when compared to tradition \n EAI solutions:\n\n- Speed\n- Reliability\n- Manageability\n\nIn general, dedicated appliances can offer better performance than general-purpose\n \n PCs or servers because they can employ custom hardware and software combinations \n and because they do not have to carry with them the overhead of graphical user \n interfaces, user management, Web browsers and other non-core services. However, \n a potential drawback of using custom processing hardware is the increased cost \n and the reduced flexibility due to longer development cycles. Therefore, it \n makes sense for the vendors to use as much off-the-shelf hardware as possible. \n As a result, in some cases the appliances look suspiciously like a rack-mounted \n PC loaded with special software. Big performance gains can still be achieved \n by writing specific software modules in assembler or in another language that \n is closer to the actual hardware because portability is not a concern. As a \n result XML appliances can outperform many popular XML parsers and XSLT processors\n \n by a factor of 10 to 1. This is one of the key selling points for the Hardware \n XML Processor vendors.\n\nFewer moving parts also means fewer things that can go wrong. If you are running \n a small real-time OS and a purpose-built XSLT engine you do not have to worry \n about Blaster worms and applying the latest service pack. Some appliances also \n use backplanes with redundant power supplies to make the hardware itself more \n reliable, even though you can find the same things in most PC servers as well. \n Overall, the message is \"plug in and forget\".\n\nThe manageability aspect targets the high cost of ownership of existing EAI \n solutions. Compared to networking solutions, traditional EAI middleware solutions\n \n are very complex and unstable so that most projects have a very hard time to \n hand the solution over to the operations and sysadmin staff once it is in production.\n \n This tends to drive the total cost of ownership (TCO) through the roof because \n full-time developers are required to keep the solution running.\n\nNo Free Lunch\n\nSo where's the catch? The obvious trick is to find the correct balance between \n simplicity and flexibility. If the integration appliance is based on a PC architecture\n \n and contains all the functions that a typical EAI suite contains we might not \n have gained over a traditional EAI suite. Instead, we might have introduced \n new dependencies and a new form of vendor lock-in. The key is to find the correct\n \n levels of abstraction for the solution and isolate variability points. Done \n right, this will leave us with recurring functions efficiently implemented in \n hardware that require relatively little configuration and customization. For \n example, for a [Content-Based Router](../ContentBasedRouter.html) the \n only variability point might be a simple XPATH expression that determines where \n the message should be routed. Unfortunately, in real life things are rarely \n that easy and quickly the \"configuration\" turns into a full blown \n software development effort with all the required testing and debugging cycles. \n This is no different from many previous EAI vendors who told us that \"real\" \n development is no longer needed and all EAI solutions are just a matter of simple\n \n drag-drop configuration -- yeah right! The integration appliances are in danger \n of falling into the same trap or at least they have to deal with customers who \n just got burned by projects that turned from the promised 3 weeks of \"configuration\"\n \n into 12 months of heavy-duty development. I also think the appliances have to \n offer an additional premium in realized benefits to justify introducing another \n development platform to support.\n\nLuckily, some of the Web services standards reduce vendor lock-in through the \n promotion of common languages such as XSLT and BPEL4WS for transformation and \n orchestration. This would allow us to use our regular development suite, test \n out \"code\" on a regular development box and then deploy it to a dedicated \n device for maximum stability and performance. At this moment, there are still \n a number of hurdles like evolving standards and a variety of vendor-proprietary \n extensions. But at least we are moving the right direction.\n\nWhat Role do Patterns Play?\n\nWhy am I interested in this stuff? Developing a successful integration appliance \n requires vendors to identify commonly used constructs and distill them into \n reusable components that can be implemented inside the appliance. This effort \n shares some similarities with the search for patterns -- good solutions for \n recurring problems. There is, however, a small but important difference between \n the two. Patterns are by nature \"fuzzy\", they are not spec'd out components \n that are configured via an XML file. Patterns are solution concepts that can \n be translated or \"realized\" into an actual code solution. In my opinion, \n EAI is ripe with patterns but I think the jury is still out on whether EAI can \n be decomposed into reusable constructs. It will be interesting to see what the \n appliance vendors find. I will keep watching...\n\n*Share:*\n\n*Follow:* [Follow @ghohpe](https://twitter.com/ghohpe) [SUBSCRIBE TO FEED](../ramblings.rss)\n\n*More On:* [INTEGRATION](/ramblings_integration.html) [ALL RAMBLINGS](../ramblings.html)\n\nGregor is a cloud architect and author. He is a frequent speaker on asynchronous messaging,\n IT strategy, and cloud.", "znaku_textu": 8992, "slov": 1356, "odkazu": 50, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/ramblings/01_appliances.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 06:55:00", "sha256": "c1e062dd8039314915258cbdfe8f0b28fbe4b6cfa8ae4c69573fc9748e026bd1", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://architectelevator.com/blog", "http://www.datapower.com/", "http://www.sarvega.com/", "http://www.infotone.com/", "http://www.castironsys.com/", "http://wintergreenresearch.com/reports/XML_Final.htm", "https://twitter.com/share", "https://twitter.com/ghohpe", "https://leanpub.com/37things"]} {"url": "https://www.enterpriseintegrationpatterns.com/ramblings/02_doodleware.html", "titulek": "Doodleware - Enterprise Integration Patterns", "h1": "Doodleware", "popis": "Many integration tools offer graphical development tools", "klicova_slova": "", "kanonicka": "", "jazyk": "en_US", "robots_meta": "", "og": {"og:type": "article", "og:locale": "en_US", "og:site_name": "Enterprise Integration Patterns", "og:title": "Doodleware", "og:description": "Many integration tools offer graphical development tools", "og:url": "https://www.enterpriseintegrationpatterns.com/ramblings/02_doodleware.html"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Doodleware"}, {"uroven": 2, "text": "Fun with Doodleware"}, {"uroven": 2, "text": "Credits"}], "markdown": "Gregor's Ramblings\n\n---\n\n# Doodleware\n\nNovember 1, 2003\n\nFind my posts on IT strategy, enterprise architecture, and digital transformation\n at [ArchitectElevator.com](https://architectelevator.com/blog).\n\nI am a very visual person. I enjoy sketching and holding facilitated workshops where\n I draw system diagrams on a whiteboards based on user feedback. My interest in this\n type of work actually inspired me to create the visual language that accompanies the\n pattern language in *[Enterprise Integration Patterns](../books1.html)*. So you can figure that I am a strong supporter of diagrams and visual notations.\n However, I see many of the visual editors embedded in integration suites (and increasingly\n in IDE's) as a double-edged sword. Let me explain...\n\nOne of the big benefits heralded by most EAI vendors (and Web services vendors) is\n the ease of use of the visual development environment (disparagingly called \"doodleware\"\n by hard-core developers) and the resulting increase in productivity. These suites\n typically include visual transformation editors, workflow or orchestration editors,\n schema editors, component assembly tools and the like.\n\nI believe that graphical representations are a great way to visualize the system architecture\n and dependency of a complex system. Particularly in loosely coupled, asynchronous\n systems it can be very difficult for the developers to maintain a \"big picture\" view\n of what is going on in the system. A handful of components communicating via publish-subscribe\n channels or message queues is usually sufficient to cause confusion and make testing\n and debugging difficult. In these situations, a visual representation of the data\n or control flow can be invaluable. Since manually created documentation is bound to\n be outdated and therefore inaccurate, automatic creation of visual documentation can\n be enormously useful. This realization was one of the main motivations for me to create\n the *[TibDoc](http://www.hohpe.com/Gregor/Work/portfolio.html#TibDoc)* tool that analyzes the TIBCO middleware repository and automatically renders the\n system data flow as a diagram.\n\nHowever, I am skeptical whenever visual representations are positioned as programming\n tools, essentially replacing our trusted code editors. These presentations are usually\n accompanied by claims of increased productivity, a reduced learning curve, or independence\n from expensive integration developers. I believe that the difficulty of developing\n a solution is primarily tied to the complexity of the underlying programming model.\n For example, transformations from one document format to another are usually based\n on a functional programming model, for example XSLT. In order to build such solutions,\n developers have to understand concepts like templates, regular expressions, or complex\n functions. Putting a visual veneer over such a programming model is unlikely to suddenly\n enable business analysts to create complex transformations without any technical help.\n In some cases, the visual tools even can make developing and debugging more difficult\n because the user is yet another step further removed from what is actually happening\n inside the system.\n\nAll too often such a visual veneer is used in management demos to demonstrate the\n apparent ease of use. Instead of being lured by pretty pictures, I advise clients\n to evaluate the ease of use by asking the vendor to show the realization of common\n *design patterns* using the tool. For example, a frequent design pattern for data transformation is\n a *[Content Enricher](../DataEnricher.html)* or a structural transformation from a system with a many-to-many relationship to\n a system with a single entity. A great pattern to assess the capabilities of an orchestration\n or process modeling tool is the *[Aggregator](../Aggregator.html)* because it occurs frequently in real life and is inherently event-driven and stateful.\n\nIn some cases, visual notations are very natural and make developing solutions more\n intuitive. For example, UML activity diagrams are a great way to depict multiple parallel\n activities with fork and synchronization (join) points. This is something that is\n much harder to express with line of code which are naturally linear. Therefore, an\n activity modeling tool can be a very worthwhile addition to a development suite. However,\n it is important that the model is seen as an *addition*, not a replacement for actual code. Too often I have seen very pretty visual editors,\n but dare you have to write a line of code! Coders get a multi-line edit box with proportional\n fonts and no syntax highlighting. An effective development tool must support the creation\n of components or activities using state-of-the-art code editors, combined with visual\n tools for component assembly or orchestration development. This includes syntax coloring,\n version control, good print features, visual diff tools, automatic code completion,\n refactoring and other features that we have come to love from successful IDE's such\n as IntelliJ, Eclipse and Visual Studio. In my opinion, code-free integration is a\n vision and not a reality. So until we get there, please give us developer-friendly\n code editors!\n\nSometimes I actually think that it would benefit developers and vendors alike if EAI\n vendors stopped attempting to create their own IDE's and instead developed Eclipse\n plug-ins. This way, the vendor can leverage an existing open-source infrastructure\n for code editing and can augment it with proprietary plug-in for transformations,\n orchestrations or metadata editing. If you have seen the beta version of the upcoming\n Microsoft BizTalk Server 2004 release you can see that Microsoft is heading a similar,\n if a bit more proprietary route. While integration with Eclipse may be an unlikely\n step, the new BizTalk editors plug into the Visual Studio .NET IDE, so that designing\n an orchestration or transformation is done in the same environment as writing C# code.\n\n## Fun with Doodleware\n\nOrjan Lundberg reminded me that I forgot to mention a very important aspect of doodleware:\n using it to doodle when the system is down or the clients can't make up their minds.\n Here is a great collection of [EAI doodle-art](http://www.geocities.com/im_art_competition/IM_ART.html) .\n\n## Credits\n\nAfter some poking around I found that the term \"Doodleware\" was indeed coined by ThoughtWorks'\n own [Jason Borro](http://www.drewnoakes.com/gallery/viewPhoto.jsp?photoId=2460&selectionId=3591).\n\n*Share:*\n\n*Follow:* [Follow @ghohpe](https://twitter.com/ghohpe) [SUBSCRIBE TO FEED](../ramblings.rss)\n\n*More On:* [DESIGN](/ramblings_design.html) [INTEGRATION](/ramblings_integration.html) [ALL RAMBLINGS](../ramblings.html)\n\nGregor is a cloud architect and author. He is a frequent speaker on asynchronous messaging,\n IT strategy, and cloud.", "znaku_textu": 6814, "slov": 995, "odkazu": 49, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/ramblings/02_doodleware.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 06:54:59", "sha256": "6af703ac423489263bb2a10f0b0b3fbba3bbd4ba89d46bcce93c8b0e0e1c641a", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://architectelevator.com/blog", "http://www.hohpe.com/Gregor/Work/portfolio.html", "http://www.geocities.com/im_art_competition/IM_ART.html", "http://www.drewnoakes.com/gallery/viewPhoto.jsp?photoId=2460&selectionId=3591", "https://twitter.com/share", "https://twitter.com/ghohpe", "https://leanpub.com/37things"]} {"url": "https://www.enterpriseintegrationpatterns.com/ramblings/03_hubandspoke.html", "titulek": "Hub and Spoke [or] Zen and the Art of Message Broker Maintenance - Enterprise Integration Patterns", "h1": "Hub and Spoke [or] Zen and the Art of Message Broker Maintenance", "popis": "The Hub-and-Spoke concept manifests itself in many ways in integration solution", "klicova_slova": "", "kanonicka": "", "jazyk": "en_US", "robots_meta": "", "og": {"og:type": "article", "og:locale": "en_US", "og:site_name": "Enterprise Integration Patterns", "og:title": "Hub and Spoke [or] Zen and the Art of Message Broker Maintenance", "og:description": "The Hub-and-Spoke concept manifests itself in many ways in integration solution", "og:url": "https://www.enterpriseintegrationpatterns.com/ramblings/03_hubandspoke.html"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Hub and Spoke [or] Zen and the Art of Message Broker Maintenance"}, {"uroven": 2, "text": "Integration Spaghetti"}, {"uroven": 2, "text": "Hub and Spoke to the Rescue"}, {"uroven": 2, "text": "Integration Hubs"}, {"uroven": 2, "text": "Data Format Considerations"}, {"uroven": 2, "text": "The Metadata Hub"}, {"uroven": 2, "text": "No Free Lunch"}, {"uroven": 2, "text": "Your Mileage May Vary"}, {"uroven": 2, "text": "Addendum"}], "markdown": "Gregor's Ramblings\n\n---\n\n# Hub and Spoke [or] Zen and the Art of Message Broker Maintenance\n\nNovember 12, 2003\n\nFind my posts on IT strategy, enterprise architecture, and digital transformation\n at [ArchitectElevator.com](https://architectelevator.com/blog).\n\n## Integration Spaghetti\n\nAnyone who sat through an EAI vendor presentation or has spent more than a few days\n on an integration project surely has come across the idea of a *Hub-and-Spoke* architecture. The basic idea of Hub-and-Spoke is pretty simple. It stems from the\n realization that a completely connected graph of *n* nodes requires *n* / 2 * (*n* -1) edges. If the graph is directed (more closely modeling typical integration systems\n with unidirectional channels) the number climbs to *n* * (*n* - 1). The scary part about this formula is the fact that the number of edges grows\n with the square of the number of nodes. For example, while 4 nodes require only 6\n connections, 8 nodes already require 28 edges. The picture often associated with the\n dilemma looks like this:\n\n## Hub and Spoke to the Rescue\n\nThe general idea is that we can avoid the combinatorial explosion of the number of\n edges if we can replace the \"web\" with something that resembles a wheel with a central\n hub and spokes going out to all the nodes. In such a topology, the number of edges\n is equal to the number of nodes, which means it grows linearly.\n\nThe airlines (and FedEx) have been implementing this idea for quite some time. It\n is much too expensive to fly airplanes directly from everywhere from anywhere. Instead,\n each carrier maintains a small number of central hubs and tries to route as many flights\n as possible through these hubs.\n\n## Integration Hubs\n\nSo far, so good. Hub-and-Spoke seems to be a great idea, so what else is there to\n say about it? When translating the concept of hub and spoke to the world of integration\n it is useful to have a closer look at what a *connection* between two systems really entails, i.e. what does the line between two boxes really\n represent? In some cases, the line might be a message queue, in other cases it might\n be a publish-subscribe topic or in yet other cases it might be the URI. So depending\n on the system, having a lot of lines might now immediately a problem. While it sure\n would be a pain to setup a lot of message queues, publish-subscribe topics and URI's\n are largely logical concepts and having a lot of them night mean a bit more maintenance\n but is unlikely to be the end of the world.\n\nBut the Hub-and-Spoke architecture also provides another significant benefit -- it\n decouples sender and receiver by inserting an active mediator in the middle - the\n hub. For example, this hub can perform the important function of routing incoming\n messages to the correct destination. As such, it decouples the sender of the message\n from having to know the location of the receiver. Having all messages travel though\n a central component is also great for logging messages or to control message flow.\n The Hub-and-Spoke style applied in this manner is commonly referred to as [Message Broker](../MessageBroker.html) because the hub brokers messages between the participants.\n\n## Data Format Considerations\n\nA [Message Broker](../MessageBroker.html) should also include a protocol translation and data transformation function. For\n example, a message may arrive via a message queue, but has to be passed on via HTTP.\n Also, location transparency is only an illusion unless data format translation is\n also provided. Otherwise, a change in the destination (i.e. a request in form of a\n message is now being serviced by another component) is very likely to require a change\n in the message data format. Without a [Message Translator](../MessageTranslator.html) in between, the message originator would also have to be changed. Therefore, the\n implementation of this type of Hub-and-Spoke architecture typically includes data\n format translation capabilities.\n\n## The Metadata Hub\n\nThe issue of data format translation raises a new point. Let's consider a scenario\n where each participant uses a different data format. If the [Message Broker](../MessageBroker.html) has to be able to forward any message to any other participant (possibly depending\n on a set of conditions), the broker now has to be able to convert between any data\n format and any other data format. While we solved the n-square problem at the physical\n level by inserting a central hub it seems that we are now facing the same problem\n at the data format level because creating a [Message Translator](../MessageTranslator.html) between all possible combinations of *n* participants requires *n* / 2 * (*n* -1) translators. This notion is illustrated by the following diagram where every\n green dot indicates a required message format translation.\n\nWhat gives? Are we always going to be haunted by the n-square problem? Not necessarily.\n We can apply the same hub-and-spoke concept to the issue of message formats, that\n is at the metadata level (metadata is the data that describes the format of messages).\n By introducing a \"metadata hub\" we can reduce the problem from n-square to a linear\n problem the same way as with the n-square physical connections. But what does a \"metadata\n hub\" look like? This time it is not a physical component, but a [Canonical Domain Model](../CanonicalDataModel.html) that is common between all participants. When a message flows from participant A\n to participant B, the message format is first translated from A into the canonical\n format, and then from the canonical format into format B. It is sufficient to have\n a translation between each participant format and the canonical format, i.e. *n* translations for *n* participants (or 2**n* if our transformations are unidirectional). Sometimes this concept is called \"Semantic\n Hub-and-Spoke\" but I generally prefer [Canonical Domain Model](../CanonicalDataModel.html) to avoid confusion.\n\n## No Free Lunch\n\nAre there any downsides to using a Hub-and-Spoke architecture? As always, there is\n no free lunch, so we expect to see some trade-offs. First of all, inserting a hub\n into the lines communication can cause additional overhead. Each message now has to\n make two hops instead of one, with a potential routing decision in between. This is\n likely to increase the latency of a message flowing between participants, just like\n a layover at an airline \"hub\" is going to make for a much longer journey than a direct\n flight. The hub can also become a performance bottle neck since all messages have\n to travel though this hub. In some cases we can mitigate this risk my deploying multiple\n instances of the hub process. In this case the hub is centrally configured at design-time,\n but distributed at run-time.\n\nAnother challenge can be the complexity of the hub. We now have to create a single\n thing that can accommodate each and every participant and data format. This concern\n also applies to the [Canonical Domain Model](../CanonicalDataModel.html). We have to find a common data representation that suits every participant equally\n well -- an effort that is all too rarely blessed with success (this might be worthy\n of a separate rambling).\n\n## Your Mileage May Vary\n\nIs Hub-and-Spoke the answer to every integration scenario? As always, the answer has\n to be a resounding \"it depends!\" If we look back at the original pictures and the\n motivation, you notice that two (somewhat related) assumptions were baked into the\n picture:\n\n- The graph is fully connected\n- The solution is completely symmetric, i.e. there is no layering or such\n\nIn reality this is rarely the case. Typically, we can layer services into infrastructure\n services that have little external dependencies and layer other services on top of\n these services. The resulting picture looks much more like a tree than a fully connected\n graph. In those cases, a [Message Broker](../MessageBroker.html) may still play a useful role as a level of indirection (i.e. acting as a directory\n of available services), but the n-square problem steps into the background.\n\n## Addendum\n\nI just noticed that Russell Levine published an [article](http://www.bijonline.com/Article.asp?ArticleID=800&DepartmentID=7) on this very topic in the November issue of Business Integration Journal (formerly\n EAI Journal). I guess great minds do think alike :-)\n\n*Share:*\n\n*Follow:* [Follow @ghohpe](https://twitter.com/ghohpe) [SUBSCRIBE TO FEED](../ramblings.rss)\n\n*More On:* [INTEGRATION](/ramblings_integration.html) [ALL RAMBLINGS](../ramblings.html)\n\nGregor is a cloud architect and author. He is a frequent speaker on asynchronous messaging,\n IT strategy, and cloud.", "znaku_textu": 8588, "slov": 1385, "odkazu": 47, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/ramblings/03_hubandspoke.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 06:53:23", "sha256": "125db1021b4f11d3df1c0f8c244f77efad57628411441905ab7ab87a4edab15a", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://architectelevator.com/blog", "http://www.bijonline.com/Article.asp?ArticleID=800&DepartmentID=7", "https://twitter.com/share", "https://twitter.com/ghohpe", "https://leanpub.com/37things"]} {"url": "https://www.enterpriseintegrationpatterns.com/ramblings/04_skills.html", "titulek": "What Makes a Good Integration Developer? - Enterprise Integration Patterns", "h1": "What Makes a Good Integration Developer?", "popis": "When we assess the quality of a software engineer we don't look as much how long he has worked with a specific language but rather whether he or she has a good grasp of the underlying models and techniques, such as OO design, systems architecture", "klicova_slova": "", "kanonicka": "", "jazyk": "en_US", "robots_meta": "", "og": {"og:type": "article", "og:locale": "en_US", "og:site_name": "Enterprise Integration Patterns", "og:title": "What Makes a Good Integration Developer?", "og:description": "When we assess the quality of a software engineer we don't look as much how long he has worked with a specific language but rather whether he or she has a good grasp of the underlying models and techniques, such as OO design, systems architecture", "og:url": "https://www.enterpriseintegrationpatterns.com/ramblings/04_skills.html"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "What Makes a Good Integration Developer?"}, {"uroven": 2, "text": "Good Developers are Cheap"}, {"uroven": 2, "text": "Skills Framework"}, {"uroven": 2, "text": "The Integration Octopus"}, {"uroven": 2, "text": "Asynchronous Messaging Architectures"}, {"uroven": 2, "text": "Process Modeling"}, {"uroven": 2, "text": "Rule-based Systems"}, {"uroven": 2, "text": "Network Architectures"}, {"uroven": 2, "text": "Object-Oriented Development"}, {"uroven": 2, "text": "Conclusion"}], "markdown": "Gregor's Ramblings\n\n---\n\n# What Makes a Good Integration Developer?\n\nNovember 25, 2003\n\nFind my posts on IT strategy, enterprise architecture, and digital transformation\n at [ArchitectElevator.com](https://architectelevator.com/blog).\n\n## Good Developers are Cheap\n\nOver time, a number of statistics have shown that the top developers outperform the\n average developers (not even talking about the bad ones) by an order of magnitude\n or so. As it turns out that the top developers do not earn 10 times the average salary,\n these guys (and girls) are a steal. Every company should then aim to get a hold of\n these \"top quartile\" developers, assuming the individuals demonstrate a minimum amount\n of social behavior. There are two main stumbling blocks in this chain of logic that\n I have seen. First, a company may not want hot shot developers out of fear that such\n a person may unsettle the equilibrium of average developers (or because the boss hates\n people who are smarter than he is). The second reason is that many companies do not\n know how to attract and evaluate hot shot developers. When it comes to assessing the\n quality of a developer, counting years of experience is an enticingly simple metric,\n but it is about equally flawed to using lines of code as a metric for productivity.\n\nOver time people have learned that years of experience with a certain technology are\n not a good predictor of a candidate's performance. Yes, applicable technology experience\n is important as a bottom bar, but once a person has 1 or 2 years real experience using\n vendor X's tool or programming language Y, it is unlikely that we can find the great\n developer by asking for 5 years. Instead, we need to focus on how well the person\n understands the underlying concepts and principles, such as object-oriented design\n techniques. In recent years *patterns* have become almost the de facto standard for knowledge of these underlying principles.\n Interestingly, in this context patterns have almost become the victim of their own\n success. Every self-respecting developer can't help but spew out big words like *factory*, *decorator*, or *observer*. It's almost like developers brag about how many patterns they know -- an exercise\n not much more useful than counting lines of code. [oops -- this is starting to sound\n like a whole new topic -- back on track :-) ]\n\n## Skills Framework\n\nSo what can help more fairly assess an individual's skill set or the skills balance\n on a development team? A few years ago I developed a simple skills framework to ensure\n the proper skills balance on an integration project. I started by creating a tiered\n framework that ranges from generic to specific. Here are the categories I came up\n with (The first six items form a hierarchy while the last two stand on their own):\n\n- Computer Science / Algorithms\n- Modeling / Patterns\n- Languages\n- Development Tools\n- Packaged Applications\n- Operating Systems / Platforms\n- Architecture\n- Software Engineering / Best Practices\n\nTo illustrate the framework, a real person might know how to perform tree searches,\n sorts, or linked lists (or at the top of the food chain be familiar with Don Knuth's\n [The Art of Computer Programming](http://www.amazon.com/exec/obidos/ASIN/0321751043/enterpriseint-20)). On top of that the same person might understand object-oriented design principles\n and common design patterns, such as the proverbial *Abstract Factory*. He or she applies those patterns when programming in Java or C#, using the respective\n run-time libraries. A good knowledge of a refactoring IDE such as IntelliJ, Eclipse\n or Visual Studio (well, if you wait for the Whidbey release or use the Refactory add-on)\n certainly helps productivity. Since it is more and more likely that new applications\n interface with existing, packaged applications we cannot ignore those either. So a\n good grasp of SAP iDocs or some other package API is useful. Lastly, being able to\n administer and work with the OS of choice (this should include things like file or\n network services) or the database platform rounds off the skill set of the developer.\n Architecture is a fuzzy and broad enough skill that I will dodge it for now, but most\n of us will agree that a good developer should understand best practices such as test-first\n development and refactoring.\n\nI consider all levels of the framework important, a good balance is certainly a strong\n asset. However, if I had to choose a single level it would have to be the programming\n models and associated patterns level. This is the skill that defines a developer's\n command of the underlying structures, design elements and constraints. In the object-oriented\n world, this would mean knowing how to achieve encapsulation and separation of concerns\n by using interfaces, inheritance, polymorphism, abstract base classes and the like.\n The interesting part is that in general the number of these constructs is relatively\n small, but the does and don'ts (i.e. the common patterns) around these constructs\n are plentiful. These tends to be the areas of higher conceptual complexity where 3\n or 4 years of experience vs. 1 year experience do make a big difference.\n\n## The Integration Octopus\n\nSo how can we can map all this back to integration? Like an application developer,\n an integration developer has to work with [IDEs of sorts](02_doodleware.html), do some coding and understand the packages that need to be integrated. When we examine\n the category \"models and patterns\" as it relates to integration, though, it appears\n to me that it requires a much broader range of knowledge.As a first attempt I tried\n to summarize the underlying models as follows:\n\n- Asynchronous Messaging Architectures\n- Process Modeling\n- Rule-based Systems\n- Network Architectures\n- Object-Oriented Development\n\nTo me this variety of underlying programming models is part of the reason integration\n is (and remains) so difficult (the other reason is the inherently large scale of the\n solutions). Let's look at each of those briefly.\n\n## Asynchronous Messaging Architectures\n\nMany integration solutions are based on message queues and publish-subscribe channels.\n Kilewise, there is also a considerable amount of energy around enabling Web services\n to support reliable, asynchronous messaging. Just like in the world of object-oriented\n systems, the basic constructs of this architecture are very simple: you deal with\n components, connected by message channels, which can buffer messages between sender\n and receiver. However, the correct use of such an architecture is a reasonably extensive\n topic (we managed to write a 700 page book about it!). One of the issues at the core\n of asynchronous messaging is for example the lack of a call stack, so the developer\n is responsible for keeping track what needs to happen next once a method completes.\n For an extensive treatment of design decisions in the world of asynchronous messaging,\n have a close look at the [patterns on this site](../toc.html) or, better yet, get [the book](../books1.html) :-)\n\n## Process Modeling\n\nOnce multiple participants exchange messages, it is likely that each participant executes\n an internal process to track the state of the conversation. Most EAI suites allow\n us to model these processes using specialized modeling tools (which can be [a lot of fun](http://www.geocities.com/im_art_competition/IM_ART.html)). Again the underlying constructs and constraints of process modeling are very different\n from traditional procedural or object-oriented development. Process models focus on\n parallel execution, concurrent tasks and synchronization points. Also, a process definition\n tends to be much more driven by data flow than by the association of data and behavior\n as it is common in the object-oriented world. If you want to find out more about the\n theoretical underpinnings on how these process languages (for example, BPEL) differ\n from traditional programming languages, you might want to have a look at the [π calculus](http://www.amazon.com/exec/obidos/ASIN/0521643201/enterpriseint-20) (hint: most traditional programming languages are based on the λ calculus).\n\n## Rule-based Systems\n\nRule-based systems are yet another animal with its own set of constructs, rules and\n constraints. Rule-based systems appear in integration in two primary spots: business\n rules and transformations. Business rules deserve pretty little explanation -- they\n are commonly embedded in a process definition: \"if the order is larger than $1000,\n it has to be approved by a supervisor first\" type of stuff. As these rules become\n more complex, it makes sense to maintain them in a dedicated rules engine so that\n they are easier to test and maintain. Rules are usually not executed sequentially\n either. There are usually chosen by criteria such as specificity and priority. That\n means that the exact execution path of a rules engine might not be know at design\n time -- a scary thought for application developers that are used to being able to\n step through sequential code line by line. Some rule based systems are based on predicates,\n sort of a relic from the AI days. The key is that predicate logic is *declarative* rather than procedural, which means that its correctness does not depend on the order\n of execution. The second home of rule-based systems are transformations a la XSLT.\n Anyone who has tried to debug an XSL stylesheet can appreciate the pitfalls of declarative\n programming. XSL \"chooses\" the next templates based on pattern matching and specificity.\n Many EAI tools supply visual editors for transformation tasks, but as long as XSLT\n and XPATH live underneath, developing and debugging these components will always feel\n unnatural and difficult to developers who are used to sequential, procedural logic.\n\n## Network Architectures\n\nIf all this computer science babble was not enough, integration architectures also\n have a lot to do with networks. Not only does a good knowledge of IP networking help\n with designing integration solutions (I would count that as a \"platform skill\"), but\n the underlying principles are different yet again. Now we need to concern ourselves\n with graphs, shortest paths, dynamic routing, and algorithms by Ford-Fulkerson, Dijkstra\n and friends.\n\n## Object-Oriented Development\n\nAnd last but not least, most integration solutions have significant code components\n that are best implemented using object-oriented languages and paradigms. So we expect\n the developer of these pieces to be fluent in OOAD, design patterns and related topics.\n\n## Conclusion\n\nSo does every integration developer worthy of a pay check have to be fluent in predicates,\n π calculus, graph theory and asynchronous architectures? Surely not (actually, that\n assumption would surely put a lot of us out of work!). However, this little tour though\n the theoretical underpinnings of integration solution hopefully leaves you with two\n thoughts. First, integration remains a complex field regardless of how many UI layers\n we put on top of it because the underlying programming models are inherently varied\n and complex. Second, the next time we look at a resume or compose a \"wanted\" ad we\n may go beyond the \"X years with tool ABC\" approach and see whether the candidates\n have at least a basic command of the underlying design principles and paradigms.\n\n*Share:*\n\n*Follow:* [Follow @ghohpe](https://twitter.com/ghohpe) [SUBSCRIBE TO FEED](../ramblings.rss)\n\n*More On:* [INTEGRATION](/ramblings_integration.html) [ALL RAMBLINGS](../ramblings.html)\n\nGregor is a cloud architect and author. He is a frequent speaker on asynchronous messaging,\n IT strategy, and cloud.", "znaku_textu": 11577, "slov": 1809, "odkazu": 49, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/ramblings/04_skills.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 06:54:58", "sha256": "ab587010f64e18a74c38075ba6d7876fa1014d4eabdbe615375a101466267a8a", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://architectelevator.com/blog", "http://www.amazon.com/exec/obidos/ASIN/0321751043/enterpriseint-20", "http://www.geocities.com/im_art_competition/IM_ART.html", "http://www.amazon.com/exec/obidos/ASIN/0521643201/enterpriseint-20", "https://twitter.com/share", "https://twitter.com/ghohpe", "https://leanpub.com/37things"]} {"url": "https://www.enterpriseintegrationpatterns.com/ramblings/05_encapsulation.html", "titulek": "The Dark Side of Encapsulation? - Enterprise Integration Patterns", "h1": "The Dark Side of Encapsulation?", "popis": "Encapsulation and abstraction are the holy grail of today's software development", "klicova_slova": "", "kanonicka": "", "jazyk": "en_US", "robots_meta": "", "og": {"og:type": "article", "og:locale": "en_US", "og:site_name": "Enterprise Integration Patterns", "og:title": "The Dark Side of Encapsulation?", "og:description": "Encapsulation and abstraction are the holy grail of today's software development", "og:url": "https://www.enterpriseintegrationpatterns.com/ramblings/05_encapsulation.html"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "The Dark Side of Encapsulation?"}, {"uroven": 2, "text": "Interface vs. Implementation"}, {"uroven": 2, "text": "How Does TCP/IP Really Work?"}, {"uroven": 2, "text": "Reinventing the Wheel?"}, {"uroven": 2, "text": "Hide Complexity, Share Knowledge"}], "markdown": "Gregor's Ramblings\n\n---\n\n# The Dark Side of Encapsulation?\n\nDecember 12, 2003\n\nFind my posts on IT strategy, enterprise architecture, and digital transformation\n at [ArchitectElevator.com](https://architectelevator.com/blog).\n\n## Interface vs. Implementation\n\nIt has been stated many times that computer science is the field where every problem\n can be solved by just one more level of indirection. One instance of such indirection\n is the separation between interface and implementation. This programming construct\n manifests itself in many different technologies, such as object-oriented programming,\n as a language construct of virtually all contemporary programming languages (even\n Visual Basic!), and as a core concept of service-oriented architectures, which feature\n standards-based WSDL interface descriptions.\n\nThe core driver behind the separation of public interface and internal implementation\n is twofold:\n\n- The interface allows the implementation to vary without users of the interface having\n to know about it.\n- The interface can hide complex implementation details.\n\nHiding complex implementation details is likely the more challenging (and more abused)\n aspect of encapsulation. Too many times we see developers who purportedly abstracted\n the internals of their class be wrapping all class variables using getter/setter accessor\n methods. While this approach does provide a level of indirection, it hardly provides\n any abstraction or hiding of implementation internals. If each variable is accessible\n through a setter and getter method, the amount of knowledge that any developer has\n about the class internals is no less than is the class was simply exposing public\n properties. True encapsulation on the other hand happens when a complex implementation\n is wrapped with a much simpler public interface. In some cases, the interface can\n even present a programming model that is quite different from the internal implementation.\n\n## How Does TCP/IP Really Work?\n\nWhen most application developers think about TCP/IP these days, they think about streams\n of data that are about as easy to use as writing data to or reading from a file. The\n abstraction that the TCP/IP stack provides to higher-level application programs is\n that of a connection-oriented data stream model. The internal implementation is in\n fact quite different. TCP/IP is layered on top of the basic IP layer, which provides\n nothing much besides the unreliable routing of individual data packets. In order to\n achieve the illusion of a reliable data stream, TCP/IP has to deal with issues such\n as the retransmission of lost packets, resequencing of out of order packets, and\n elimination of duplicate packets. Much of the design of TCP is concerned with window\n size, the frequency of acknowledgement messages, and issues such as the Silly Window\n Symptom. However, none of these complexities surface in the public interface.\n\nThe Network stack is a great example of a *Layered Architecture*, where each layer encapsulates the implementation details of the layers below. Which\n application designer really needs to know how TCP works, leave alone the \"lower\" layers\n like the physical network layer.\n\n## Reinventing the Wheel?\n\nThe odd thing is that the successful encapsulation of the internal complexities of\n the lower layers can have an undesired side effect: users of the abstracted interface\n tend to forget how the lower layers already solve some of those problems that might\n reoccur at a higher level. This phenomenon has caused more than one integration developer\n to \"invent\" message resequencing and / or retransmission schemes very analogous to\n those already implemented inside any IP stack.\n\nThis results in a number of apparent disadvantages.\n\n- Developing a resequencing or resending algorithm means spending unnecessary design\n effort because the problem has already been solved before.\n- Recreating such a mechanism is likely to be less robust than the implementation incorporated\n in the IP stack. TCP networking has evolved over many years, has been reviewed by\n many experts and is very reliable. The few remaining weaknesses are well understood.\n It is unlikely that a quick-and-dirty solution developed at the application level\n is going to be that reliable.\n- Solving a problem multiple times at different layers in a layered architecture can\n lead to inefficiencies. If a lower layer already resequences packages, do we really\n have to do it again at a higher level? Or can we get away without performing it at\n the lower level? Especially in asynchronous messaging architectures, it seems odd\n that people use a reliable, connection oriented protocol (TCP/IP), layer a connection-less,\n synchronous protocol on top (HTTP), then make it asynchronous (e.g., for asynchronous\n Web Services), just to having to make it reliable again (e.g., using WS-ReliableMessaging).\n Some vendors have recognized these inefficiencies. For example, this realization was\n one of the drivers for TIBCO to create the RendezVous protocol directly on top of\n IP instead of TCP/IP with its associated overhead.\n\nSo should every developer go study IP stack implementations? Well, knowledge never\n hurts, but that may be asking a bit much. One would have to wade through these 1000\n page tomes just to harvest a few design ideas. This is where design patterns come\n in handy. The patterns allow us to pass knowledge from the lower layers up the stack\n in form of design guidance without getting stuck in low-level technical details such\n as the whether the IP address is transmitted in big endian or little endian format.\n In fact, many of the design patterns documented in [*Enterprise Integration Patterns*](../books1.html) make references to TCP/IP implementation considerations. In case you do want to know\n all the dirty details of IP networking I can highly recommend the books by [Stevens](../books1.html) or Tanenbaum.\n\n## Hide Complexity, Share Knowledge\n\nIn summary, encapsulation is a great thing. It dramatically reduces the complexity\n of developing software by allowing us to solve problems at a higher level of abstraction\n without getting bogged down in the details. However, in some cases it may be useful\n to hide the implementation complexities of lower layers but to make a concerted effort\n to share the knowledge embodied in them. I hope patterns can help us do this.\n\n*Share:*\n\n*Follow:* [Follow @ghohpe](https://twitter.com/ghohpe) [SUBSCRIBE TO FEED](../ramblings.rss)\n\n*More On:* [ARCHITECTURE](/ramblings_architecture.html) [ALL RAMBLINGS](../ramblings.html)\n\nGregor is a cloud architect and author. He is a frequent speaker on asynchronous messaging,\n IT strategy, and cloud.", "znaku_textu": 6655, "slov": 1007, "odkazu": 44, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/ramblings/05_encapsulation.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 06:54:57", "sha256": "714cd099c4df0b8672eae7ce9f1f5392198bef3ba4e01dd35933bc3df05a9711", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://architectelevator.com/blog", "https://twitter.com/share", "https://twitter.com/ghohpe", "https://leanpub.com/37things"]} {"url": "https://www.enterpriseintegrationpatterns.com/ramblings/06_hysteresis.html", "titulek": "Hysteresis of Design Decisions - Enterprise Integration Patterns", "h1": "Hysteresis of Design Decisions", "popis": "Design decisions can be influenced by many factors", "klicova_slova": "", "kanonicka": "", "jazyk": "en_US", "robots_meta": "", "og": {"og:type": "article", "og:locale": "en_US", "og:site_name": "Enterprise Integration Patterns", "og:title": "Hysteresis of Design Decisions", "og:description": "Design decisions can be influenced by many factors", "og:url": "https://www.enterpriseintegrationpatterns.com/ramblings/06_hysteresis.html"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Hysteresis of Design Decisions"}, {"uroven": 2, "text": "Defining Boundaries"}, {"uroven": 2, "text": "Hysteresis"}, {"uroven": 2, "text": "Hysteresis of Software Design"}], "markdown": "Gregor's Ramblings\n\n---\n\n# Hysteresis of Design Decisions\n\nDecember 31, 2003\n\nFind my posts on IT strategy, enterprise architecture, and digital transformation\n at [ArchitectElevator.com](https://architectelevator.com/blog).\n\n## Defining Boundaries\n\nFinding more precise and repeatable ways to make design decisions seems to be the\n holy grail of software development productivity. Compilers already perform the tedious\n task of converting high-level instructions into low-level assembly codes or byte codes.\n There is little debate that the transition from coding in assembler to coding in high-level\n programming languages has brought productivity gains. Similar gains are now being\n sought by a number of groups around the Model Driven Architecture (MDA) movement.\n The basic promise of the MDA is that instead of writing solutions in a high-level\n programming language, developers / analysts will define a platform-independent model\n of the problem to be solved and leave the code generation to a model compiler. Of\n course, this compiler will have to make design decisions during the code generation.\n This forces the developers of the model compiler to find precise guidelines on when\n one design is preferred over another one, much like a novice developer expects clear-cut\n answers on questions like \"should I use a factory?\" or \"is it worthwhile to extract\n a common base class?\". Most of the time, the novice developer is frustrated that\n the master developer cannot give him a clear dividing line for such decisions, but\n instead mumbles \"it depends\", while having scratching his or her chin.\n\nNow what does it depend on? is surely the burning question on the novice developer's\n mind. Every electrician can tell me that I need to use gauge 8 wire instead of gauge\n 10 if I have more than X amps of current going through the wire! Why can't I get such\n a book to make my software design decisions? The answer typically includes such things\n as how flexible the solution has to be, how much time is available, how fast it has\n to be etc. These criteria are the *forces* that form an important part of documenting design patterns. One force that is often\n not spelled out explicitly, though is What has been done so far?\n\n## Hysteresis\n\nDesign decisions are hardly ever made in a vacuum. Typically something has been created\n and the next decision builds on what already has been created. The system that is\n being created has an inherent memory of what has been done to it in the past. This\n notion reminded me a physics concept called *hysteresis*. According to Webster's, hysteresis is \"a retardation of an effect when the forces\n acting upon a body are changed\". For non-Physics PhD's the most common textbook example\n is that of magnetism. Once magnetic field is applied to a piece of metal, the metal\n will \"remember\" the orientation of the magnetic particles. When the field is reversed,\n it takes more strength to undo the existing magnetism before the piece changes polarity.\n This is the retardation of effect the definition talks about. This process is typically\n associated with a curve like the following, where the X axis shows the force being\n applied (e.g. the magnetic field) and the Y axis shows the effect (e.g. the magnetic\n orientation of a piece of metal subjected to the field):\n\nMany control systems intentionally build in hysteresis. For example, a refrigerator\n may start the compressor when the temperature is above 45 degrees. If the compressor\n stopped whenever the temperature goes below 45 degrees, the compressor would run for\n a few seconds until the temperature reaches 44.99999 degrees and stop again, just\n to kick in again as soon as the temperate climbs one thousands of a degree. No fridge\n would last very long at that rate. Therefore, thermostats are designed with a built-in\n hysteresis, so that the compressor runs until the temperature reaches 43 degrees.\n\n## Hysteresis of Software Design\n\nThanks for the refresher in physics and home appliances, you might think, but what\n this have to do with software design?. The interesting result of hysteresis is that\n it shows a certain amount of \"it depends\". Should the fridge's compressor run at 44\n degrees? It depends -- on whether the fridge is in a cooling or warning cycle. At\n what temperature should the compressor go on / off? Again, it depends -- it should\n go on at 45 degrees but turn off at 43 degrees. The area in the middle of the picture\n above describes the area where there is no clear cut answer unless you know the history\n of the system you are observing.\n\nThe same could not be more true of software design. Most decisions are not made by\n a certain parameter exceeding a specific threshold, such as \"if you have more than\n X application, you should use a message broker vs. point-to-point connections. These\n decisions depend very much on what you have done so far. Have you used a message broker\n everywhere else? Then it is probably reasonable to use one for only 3 applications.\n have you build a sophisticated framework that lets you build point-to-point connections\n very easily? In that case using point-to-point connections for 4 applications might\n still be fine. You could imagine the graph shown above with the X axis being the number\n of applications and the Y axis indicating broker or point-to-point. Just as with the\n magnetic material, the decision is subject to a retardation effect. So there is no\n precise answer to the question \"how many applications do you need to have to justify\n the use of a message broker?\", even if most external factors such as scalability or\n reliability are held constant.\n\nI hope the little excursion to hysteresis illustrated one aspect why software design\n decisions are not as clear cut as some engineering decisions that typically apply\n to new construction and do not have to deal with the \"memory\" of the existing system.\n I believe this is yet another example that underlines the usefulness of patterns in\n explaining design decisions. Patterns allow us to list the individual forces impacting\n the design decision (often including the history of design decisions) without having\n to present a magic number that forces the decision one way or another. And when someone\n does nag you for that magic decision-making number, just tell them it has something\n to do with hysteresis...\n\n*Share:*\n\n*Follow:* [Follow @ghohpe](https://twitter.com/ghohpe) [SUBSCRIBE TO FEED](../ramblings.rss)\n\n*More On:* [DESIGN](/ramblings_design.html) [ALL RAMBLINGS](../ramblings.html)\n\nGregor is a cloud architect and author. He is a frequent speaker on asynchronous messaging,\n IT strategy, and cloud.", "znaku_textu": 6616, "slov": 1081, "odkazu": 43, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/ramblings/06_hysteresis.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 06:54:56", "sha256": "59bc42fc246c5950027220a87925e923a69d028df9143391ea5bbd5fed23962e", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://architectelevator.com/blog", "https://twitter.com/share", "https://twitter.com/ghohpe", "https://leanpub.com/37things"]} {"url": "https://www.enterpriseintegrationpatterns.com/ramblings/07_noescape.html", "titulek": "No Escape From Integration - Enterprise Integration Patterns", "h1": "No Escape From Integration", "popis": "I had never thought about having guest appearances on my ramblings, but this e-mail response from my friend Hyon made me laugh hard enough that I think it would be a waste not to share it with the community", "klicova_slova": "", "kanonicka": "", "jazyk": "en_US", "robots_meta": "", "og": {"og:type": "article", "og:locale": "en_US", "og:site_name": "Enterprise Integration Patterns", "og:title": "No Escape From Integration", "og:description": "I had never thought about having guest appearances on my ramblings, but this e-mail response from my friend Hyon made me laugh hard enough that I think it would be a waste not to share it with the community", "og:url": "https://www.enterpriseintegrationpatterns.com/ramblings/07_noescape.html"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "No Escape From Integration"}], "markdown": "Gregor's Ramblings\n\n---\n\n# No Escape From Integration\n\nJanuary 5, 2004\n\nFind my posts on IT strategy, enterprise architecture, and digital transformation\n at [ArchitectElevator.com](https://architectelevator.com/blog).\n\nI had never thought about having guest appearances on my ramblings, but this e-mail\n response from my friend Hyon made me laugh hard enough that I think it would be a\n waste not to share it with the community:\n\nOkay, so I\"ve read the first chapter of the book... and sorrowfully and sympathetically\n (and somewhat gleefully by the evil twin\n side of me that needs others to share in my pain and misery) appreciated all the integration\n challenges that the poor Mom-n-Pop's Widgets & Gadgets R Us were faced with.\n\nSo what's the moral of the story? Simplify your life? Go find a deserted\n island somwhere, build a shack for shelter and grow vegetables and go\n fishing for food? That is... until you realize you need fresh water and\n you can only get it from Waters R Us in the mainland... so you build a\n pipe to transfer the water from the Waters R Us in the mainland to your\n island, a basic point-to-point integration... but then realize that you\n have different channels that can request water (kitchen faucets, ice maker,\n bathroom shower, bathroom sink, bathroom toilet, etc, etc) and each channel\n only wants to have to pay for the water it consumes so your point-to-point\n pipe branches out into parallel processing branches to each water requester\n source, turning it into a publish (the Waters R Us) and subscribe (the\n different water requesting channels) model with a control bus connecting to\n a management console so we can monitor how many times water is requested\n (and received) for measuring quality customer satisfaction purposes and in\n what amounts are actually consumed by each water requesting channel. Then\n the water requesting channels decide it requires different water format,\n the kitchen faucet water requesting channel needs clear water format while\n the bathroom toilet decides it needs blue water with bleach format and the\n shower head wants pale creamy peachy water format to match the complexion\n of its end user so you place a water translator at each water requesting\n channels to apply the correct water transformation. And with so many people\n fleeing to their deserted islands and requiring water, the Waters R Us is\n having problems keeping enough inventory of water to fulfill all their\n water requests so you must now query their inventory system to ensure there\n is water in its inventory before allowing the water request order to\n continue... and the bathroom sink has become delinquent in its payments and\n been ignoring the harsh 'Pay NOW or you will be CUT OFF' letters (which is\n handled through a different integration pipe that we won't get into\n here)... so now you must check inventory to make sure there is enough water\n in Waters R Us inventory system to fulfill the water request and make sure\n the water requesting channel has good credit standing so you build a\n publish-subscribe channel to send out parallel async request to the credit\n system and to the inventory system to make sure all's OK with the world,\n build an aggregator to aggregate the responses and a content based router\n to determine whether to send the water request to the Waters R Us for\n fullfillment or to send the water request to the 'water request fallout'\n system for future manual intervention. Then with all this overabundance of\n activity and increase in demand and single source of supply and increase in\n water request fallout, you decide to build a process manager to help with\n management of all your water requests, so the water request messages can be\n stored/persisted and track the progress of your water requests and etc,\n etc. And then finally... realizing that you have no idea what the hell\n you are doing anymore and have perhaps applied the wrong tools to perform\n the required task and life has just gotten a bit too complicated and can't\n afford the high consulting fees charged by Water Consulting... so you leave\n the deserted island and buy a ticket to the Mars Settlement Colony to\n simplify your life...\n\n:)\n\n----------------------------------------\n\n Hyon Kyong Na\n\n*Share:*\n\n*Follow:* [Follow @ghohpe](https://twitter.com/ghohpe) [SUBSCRIBE TO FEED](../ramblings.rss)\n\n*More On:* [DESIGN](/ramblings_design.html) [ALL RAMBLINGS](../ramblings.html)\n\nGregor is a cloud architect and author. He is a frequent speaker on asynchronous messaging,\n IT strategy, and cloud.", "znaku_textu": 4488, "slov": 731, "odkazu": 43, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/ramblings/07_noescape.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 06:54:55", "sha256": "b776c3d0a4109ee34f3a7a570e888a656ab79189027fcf1369fa766316c95954", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://architectelevator.com/blog", "https://twitter.com/share", "https://twitter.com/ghohpe", "https://leanpub.com/37things"]} {"url": "https://www.enterpriseintegrationpatterns.com/ramblings/08_integrationstyles.html", "titulek": "Integration Styles - Enterprise Integration Patterns", "h1": "Integration Styles", "popis": "A number of integration books classify integration into styles such as database integration, functional integration and so on", "klicova_slova": "", "kanonicka": "", "jazyk": "en_US", "robots_meta": "", "og": {"og:type": "article", "og:locale": "en_US", "og:site_name": "Enterprise Integration Patterns", "og:title": "Integration Styles", "og:description": "A number of integration books classify integration into styles such as database integration, functional integration and so on", "og:url": "https://www.enterpriseintegrationpatterns.com/ramblings/08_integrationstyles.html"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Integration Styles"}, {"uroven": 2, "text": "Integration Intent"}, {"uroven": 2, "text": "Connection Mechanism"}, {"uroven": 2, "text": "Interaction Mechanics"}, {"uroven": 2, "text": "Conclusion"}], "markdown": "Gregor's Ramblings\n\n---\n\n# Integration Styles\n\nMay 5, 2004\n\nFind my posts on IT strategy, enterprise architecture, and digital transformation\n at [ArchitectElevator.com](https://architectelevator.com/blog).\n\nFirst of all, my apologies for such a long pause in the ramblings. I can't believe\n it's almost been four months. It seems like I OD'd on writing a little bit while helping\n the Microsoft Patterns and Practices group write a book on integration patterns (see\n the [MSDN Architecture Center)](http://msdn.microsoft.com/architecture/). I am now on my way to Las Vegas to [TheServerSide Symposium](http://www.theserverside.com/symposium), a flight just long enough to ramble a little.\n\nThere are certainly multiple ways to classify integration styles. For example, I have\n definitely come across Database Integration, [Shared Database](../SharedDataBaseIntegration.html), and Data Replication. You are just as likely to find references to Portal Integration,\n Presentation Integration, and User Interface Integration. The names are sufficiently\n similar to cause more confusion than clarification. Even [*Enterprise Integration Patterns*](../eaipatterns.html) gives two different overviews of integration styles, one in [Chapter 1](../Chapter1.html) and another in [Chapter 2](../IntegrationStylesIntro.html). Many other integration books also start with an overview of integration styles.\n So how do we bring some order into the world of integration styles? After some mulling\n around, I identified three different ways to classify integration solutions:\n\n- By the overall intent\n- By the way in which we connect to an application\n- By the mechanics of the interaction between applications\n\n## Integration Intent\n\nI think the intent of integration is a good place to start. By intent I mean a classification\n of the ultimate problem we are trying to solve. Are we trying to give all applications\n access to a consistent set of data? Are we trying to give the users a view into multiple\n systems in one screen? Are we looking to reuse a function or a piece of logic across\n multiple applications? When customers tell me they want to integrate their applications\n this is a good way to start. The important part is that these types of integration\n make no (or very little) assumptions about the technologies or mechanisms that are\n going to be used to accomplish the integration. We might move files, make SOAP calls\n or put messages on a message bus. It does not matter (yet). This type of classification\n is the one I tried to address in [Chapter 1](../Chapter1.html) of [*Enterprise Integration Patterns*](../eaipatterns.html). I wrote Chapter 1 at the very end (a fairly common occurrence when writing books),\n so likely there is a more comprehensive taxonomy, but here are the types of intent\n I came up with (strangely, these integration types did not receive the honor of being\n patterns, a decision I would certainly revisit if I was writing the chapter again):\n\n- Information Portals\n- Data Replication\n- Shared Business Functions\n- Service-Oriented Architectures\n- Distributed Business Processes\n- Business-to-Business Integration\n\nEach of these types has a brief definition, focused on the problem the integration\n is trying to solve rather than how to solve it. For example, Information Portals solve\n the problem of business users having to access more than one system in order to view\n all the information they need to perform a specific task. The solution is to create\n a portal application that shows information from multiple systems in a single screen.\n To that extend the solution is prescriptive, but how the data gets out of the applications\n and to the portal is (intentionally) left unanswered. That type of question is answered\n by another category of \"integration style\".\n\n## Connection Mechanism\n\nOne of the key goals of an integration solution is to extract data out of one existing\n application and move it to another application. In order to do this, you have to connect\n the application to some form of integration backbone so that the application can participate\n in the exchange of information. This is the function that is commonly performed by\n commercial *connectors* or *adapters* that are being offered by many integration vendors. When we try to classify these\n adapters, it becomes apparent that the type of adapter matches the layers of most\n contemporary business applications. Most well architected business applications have\n a presentation layer, a business logic layer and a database layer. We can use each\n of these layers to move data between the application and the integration backbone.\n Correspondingly, we can define the following types in integration (see picture):\n\n- Presentation Integration\n- Functional Integration\n- Data Integration\n\nIn the soon to be published book by [Microsoft's Patterns and Practices group](http://msdn.microsoft.com/architecture), we discuss these integration styles under the heading of *System Connections*. In [*Enterprise Integration Patterns*](../eaipatterns.html), we touch on these styles under the [Channel Adapter](../ChannelAdapter.html) pattern (this Web site does not show that portion of the pattern, but it is in the\n printed book). Two things are noteworthy here. First, how I connect to an application\n is often a fairly local decision. When I receive a message (assuming for the moment\n I use message-based integration), it is largely of secondary importance whether I\n stick this message into the database (*Data Integration*), whether I call the application's API (*Functional Integration*) or whether I emulate a user entering data into a screen (*Presentation Integration*, aka \"Screen Scraping\"). Second, which mechanism I use is largely independent of\n the overall intent of my integration. I can certainly envision building an *Information Portal* using *Data Integration*, *Functional Integration*, or *Presentation Integration*, or a mix of all three! For the more mathematically inclined, if I was going to define\n a matrix across the two axes of integration intent and connection mechanism we will\n find that the matrix is reasonably densely populated. There might be some fringe cases,\n for example, performing *Shared Business Functions* via *Data Integration*, but if you have been building integration solutions for a while you will agree that\n nothing is unheard of! In fact, one of the favorite methods of connecting with one\n of our favorite ERP packages is done by placing files in certain directories to the\n picked up by the ERP application. The intent of placing the file is to invoke a common\n business function.\n\n## Interaction Mechanics\n\nSo far we have identified ways to categorize the overall intent of building an integration\n solution and the mechanics of connecting to a single application. What is left is\n a way to describe the nature of the interaction between the systems. This is what\n we attempted in [Chapter 2](../IntegrationStylesIntro.html) of our book. Admittedly, that categorization is a tad more fuzzy but I am sure you\n will agree that it is again somewhat independent from the other classifications. These\n integration styles are:\n\nEach style defines a way to move information from A to B. Each style is quite distinct\n and comes with its own set of advantages and liabilities. This decision tends to be\n a much more global architectural decision than the decision of how to connect to a\n specific application. We could call this type of classification an *architectural style* that we should chose early on and that will shape the way we go about architecting\n our system.\n\n## Conclusion\n\nI hope that presenting three distinct ways of classifying integration solutions is\n helpful in clarifying some of the terminology that is being used. Because integration\n is such a broad and varied field, there are definitely additional ways to categorize\n solutions, for example by the topology, such as *Message Bus*, or *Hub-and-Spoke*. However, I felt there was the need to start with some of the high-level categorization\n and try to bring a little bit of rigor into the terminology. Maybe I'll talk about\n topologies in my next rambling. And I promise it won't be another four months!\n\n*Share:*\n\n*Follow:* [Follow @ghohpe](https://twitter.com/ghohpe) [SUBSCRIBE TO FEED](../ramblings.rss)\n\n*More On:* [INTEGRATION](/ramblings_integration.html) [ALL RAMBLINGS](../ramblings.html)\n\nGregor is a cloud architect and author. He is a frequent speaker on asynchronous messaging,\n IT strategy, and cloud.", "znaku_textu": 8473, "slov": 1300, "odkazu": 51, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/ramblings/08_integrationstyles.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 06:54:54", "sha256": "88db6d3de0c5e36d93c84c1b4d5e265c112ce3d9e586e3a0688938a1c32c34cb", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://architectelevator.com/blog", "http://msdn.microsoft.com/architecture/", "http://www.theserverside.com/symposium", "http://msdn.microsoft.com/architecture", "https://twitter.com/share", "https://twitter.com/ghohpe", "https://leanpub.com/37things"]} {"url": "https://www.enterpriseintegrationpatterns.com/ramblings/09_correlation.html", "titulek": "Correlation and Conversations - Enterprise Integration Patterns", "h1": "Correlation and Conversations", "popis": "When using asynchronous messaging, we can no longer rely on the linear, in-sequence execution of events", "klicova_slova": "", "kanonicka": "", "jazyk": "en_US", "robots_meta": "", "og": {"og:type": "article", "og:locale": "en_US", "og:site_name": "Enterprise Integration Patterns", "og:title": "Correlation and Conversations", "og:description": "When using asynchronous messaging, we can no longer rely on the linear, in-sequence execution of events", "og:url": "https://www.enterpriseintegrationpatterns.com/ramblings/09_correlation.html"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Correlation and Conversations"}, {"uroven": 2, "text": "Correlation Identifier"}, {"uroven": 2, "text": "Intermediaries"}, {"uroven": 2, "text": "Smart Proxy"}, {"uroven": 2, "text": "Conversation Identifier"}, {"uroven": 2, "text": "Conclusion"}, {"uroven": 2, "text": "What is in a Name?"}], "markdown": "Gregor's Ramblings\n\n---\n\n# Correlation and Conversations\n\nMay 21, 2004\n\nFind my posts on IT strategy, enterprise architecture, and digital transformation\n at [ArchitectElevator.com](https://architectelevator.com/blog).\n\nI just got back from [TheServerSide Symposium](http://www.theserverside.com/symposium) in Las Vegas. It was a great conference in a fun location. The highlight of the event\n was being [bile-blogged](http://www.jroller.com/page/fate/20040506#tsss_event_driven_architecture) and meeting Hani in person. My talk on *Enterprise Integration Patterns* also reminded me that the best way to really understand something is to explain it\n to someone else without resorting to armwaving (thanks, Hani!). After my presentation\n I felt that my explanation of the [*Correlation Identifier*](../CorrelationIdentifier.html) pattern might have included a more than necessary dose of armwaving so I am trying\n to make up for it here by drilling a bit deeper into this topic. Part of the credit\n definitely goes to [Mark Hapner](http://see.sun.com/Apps/DCS/mcp?p=73_rY03_rL0006304e4m32f40003_r50&eventid=e12s2125§ionid=3), Web Services Strategist for Sun, for insightful conversations during the vendor-sponsored\n lunch presentations.\n\n## Correlation Identifier\n\nOne of the key differences between asynchronous messaging architectures and synchronous,\n call-stack based architectures is the fact that we have to work with a thinner safety\n net when building asynchronous solutions. For example, in synchronous applications\n the call stack keeps track of the return address and local variables so that we never\n have to worry about which method to return to and what the local state of that method\n was. Asynchronous architectures do not provide such mechanisms so that we have to\n track state and return addresses ourselves. A key mechanism to regaining local state\n is the notion of *Correlation*. Our [book](../books1.html) discusses correlation primarily within the context of the [*Correlation Identifier*](../CorrelationIdentifier.html). The *Correlation Identifier* is introduced as addressing the following problem:\n\n**How does a requestor that has received a reply know which request this is the reply\n for?**\n\nThe solution is to have the requestor add a Request ID to the request message, have\n the replier copy the Request ID to the Correlation ID field of the response message\n so that the requestor can correlate the reply message to the request message.\n\nAs far as the replier is concerned, the Correlation ID is an opaque data type and\n all it has to do is to copy the Request ID field from the request message to the\n Correlation ID field of the reply message. The key decision for the requestor is how\n to chose the Request ID. The picture seems to indicate that the Message ID is a suitable\n choice. In fact, many messaging systems do not provide a separate request ID field\n but assume that the Message ID field is used for this purpose. At first glance using\n the Message ID field seems convenient because most messaging systems automatically\n populate this field with a unique value for each message that is being sent, alleviating\n the requestor from having to generate a unique number.\n\n## Intermediaries\n\nHowever, using the Message ID as the Request ID has at least one important limitation.\n It assumes that the requestor and the replier communicate directly with the exchange\n of a single message. To illustrate this point, let's see what happens when we insert\n and intermediary, such as a [*Message Router*](../MessageRouter.html), between the requestor and the replier. The ability to insert intermediaries is one\n of the key benefits of the [*Pipes-and-Filters*](../PipesAndFilters.html) architectural style. Therefore, we are generally well advised to allow for the insertion\n of intermediaries without requiring changes to the existing components. In our case,\n inserting an intermediary causes an interesting problem (see picture).\n\nThe intermediary consumes the original request message and sends a new message instance\n to the replier. Even though the message body of the new message created by the intermediary\n may be identical to the original request message, the new message is assigned its\n own unique Message ID by the messaging system. If the replier uses the Message ID\n as the Request ID and blindly copies it to the Correlation ID field of the reply message\n the requestor will not be able to correlate the incoming reply message to the original\n request message. The *Request-Reply* interaction is broken.\n\n## Smart Proxy\n\nLuckily, there is another pattern that helps us solve the dilemma, the [*Smart Proxy*](../SmartProxy.html). As the name suggest, a Smart Proxy proxies an existing service and brings some\n additional smarts into the game. The primary motivation for using a Smart Proxy is\n track message data between request and reply messages while allowing for the service\n consumer (the requestor) to specify a return address. However, as explained on page\n 560 of *EIP* the fact that the Smart Proxy keeps state between request and reply messages can\n be leveraged for other purposes as well. For example, the Smart Proxy can be used\n to reconstruct the [*Correlation Identifier*](../CorrelationIdentifier.html) for the reply message based on the message ID of the original request message (see\n picture below).\n\nThe Smart Proxy captures the message ID of the original request message and stores\n it. The Smart Proxy then uses the Correlation ID of the reply received from the service\n to look up that original message ID. It replaces the Correlation ID field in the reply\n message with the message ID of the request sent by the service consumer. As a result,\n the reply message from the Smart Proxy contains the Correlation ID expected by the\n service consumer.\n\nThis seems to solve out correlation dilemma quite nicely. The only constraint is that\n the Smart Proxy has to intercept both the request and the reply message. So far so\n good. But let's see what happens if the service we access is a composite service,\n i.e. a service that in turn accesses another service. If each service supports a smart\n proxy we get the following picture:\n\nEach Smart Proxy holds the necessary state (for example, the return address and correlation\n ID) until it receives a response from the called sub-service(s). The bottom half of\n the picture illustrates how long each Smart Proxy has to keep this state. If that\n picture looks strangely familiar to you, I am not surprised -- it looks like a call\n stack. Each Smart Proxy keeps the Return Address and additional information while\n all sub-services execute just like a call stack maintains local variables and the\n return address. Instead of a [*Pipes-and-Filters*](../PipesAndFilters.html) message flow style we ended up building an artificial call stack on top of message\n channels. This is generally not a great idea. Keeping state for extended periods of\n time means that we have to persist the state to protect against failure. It also means\n that scalability in terms of message traffic may suffer because a high volume of messages\n may cause a large amount of state to be kept. Additionally, requiring reply messages\n to return the same path that the request messages were sent might mean unnecessary\n message traffic. Essentially, this solution exhibits many of the same limitations\n as a solution based on [*Remote Procedure Invocation*](../EncapsulatedSynchronousIntegration.html). Overcoming these limitations was one of the main drivers for using [*Messaging*](../Messaging.html) so reverting back to the old synchronous paradigm does not sounds like a great idea.\n\n## Conversation Identifier\n\nSo how can we avoid the unlucky \"distributed call stack with messaging\" architecture?\n It looks like using a message ID as a Correlation Identifier works well for a simple\n request-reply interaction but has limitations as soon as the flow of messages goes\n beyond a requestor and a replier. It seems like we need to look beyond just the simple\n request-reply interaction. When we look at message exchanges between systems in a\n broader context we realize that [*Request-Reply*](../RequestReply.html) is just the most basic form of a *Conversation* between multiple systems. A conversation is the coordinated exchange of messages\n between two or more partners. The coordination is distributed as each participant\n in the conversation has a model of the conversation that relates to this participant's\n specific role in the conversation. For example, in a simple request-reply conversation\n the requestor knows to send a request message and expect a reply message while the\n replier (the service provider) knows to expect a request message and send a reply\n message in return. The topic of conversations has found a lot of interest in the Web\n services community. As one would expect, this interest has materialized in form of\n a WS?? four-letter-acronym, in this case the [Web Services Conversation Language (WSCL)](http://xml.coverpages.org/wscl.html) submitted by HP.\n\nBefore we dive deeper into the topic of modeling conversations and the relationship\n between conversations and orchestrations (a likely topic for a future rambling), let's\n get back to the correlation issue. We should have really named the Correlation Identifier,\n \"Conversation Identifier\". This would make it clear that the scope of this identifier\n spans an entire conversation, which may include intermediates or multiple services.\n Each message in the interchange would carry not only a message identifier but also\n a conversation identifier. The entity who initiates the conversation (in the Request-Reply\n example the requestor) picks a conversation ID while all intermediaries and repliers\n pass this ID along so that all messages belonging to the conversation carry a common\n conversation identifier. Separating this identifier from the message identifier nicely\n solves all the problems discussed above. as illustrated in the picture below:\n\nWe can even use the same Correlation ID field as the conversation identifier. The\n only difference is that we have to make the requestor populate the Correlation ID\n field and have the service provider copy the incoming Correlation ID field to the\n reply message Correlation ID field. Depending on the implementation the requestor\n could even use the Message ID value to set the Correlation ID field. Most implementations,\n however, do not allow this as the Message ID field is only populated *after* the message was sent.\n\nEssentially, we now have redefined the roles of the entities. Instead of Requestor\n and Replier we now have two different roles:\n\n- Conversation Originator\n- Conversation Participant\n\nThe Conversation Originator has to populate the Correlation (Conversation) ID and\n all other participants have to pass this field along. The fact that the message ultimately\n is returned to the sender (the requestor) is purely coincidental in this model (see\n figure).\n\n## Conclusion\n\nA [*Request-Reply*](../RequestReply.html) interaction between a service consumer and a service provider is really just a simple\n example of a conversation between multiple participants. Therefore, to make the interaction\n between consumer and provider flexible and extensible the [*Correlation Identifier*](../CorrelationIdentifier.html) really should be used as *Conversation Identifier*. This implies that this identifier should be independent of any specific message\n identifier. Rather, it should be generated independently by the originator and propagated\n by any subsequent participant in the conversation.\n\nThanks to Rick Wise and James Strachan for insightful comments on this topic.\n\n## What is in a Name?\n\nJames Strachan alerted me that in the BPEL and BPMN world the term *Correlation Identifier* is used to identify the conversation, so calling it *Conversation Identifier* here might cause confusion. I readily admit that constraining the [*Correlation Identifier*](../CorrelationIdentifier.html) in our book to only the context of [Request-Reply](../RequestReply.html) is inconsistent with the usage in the world of orchestration. The (narrowly defined)\n pattern in our book should probably have been called \"Request Identifier\". To minimize\n confusion, I am happy to use the term *Correlation Identifier* in both contexts, including conversations. This means we can use it synonymously\n with *Conversation Identifier*.\n\n*Share:*\n\n*Follow:* [Follow @ghohpe](https://twitter.com/ghohpe) [SUBSCRIBE TO FEED](../ramblings.rss)\n\n*More On:* [MESSAGING](/ramblings_messaging.html) [PATTERNS](/ramblings_patterns.html) [CONVERSATIONS](/ramblings_conversations.html) [ALL RAMBLINGS](../ramblings.html)\n\nGregor is a cloud architect and author. He is a frequent speaker on asynchronous messaging,\n IT strategy, and cloud.", "znaku_textu": 12767, "slov": 1930, "odkazu": 55, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/ramblings/09_correlation.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 06:53:25", "sha256": "a96b64bed35b9d0d460f3b410853e62ffb0a56d7475ed86d3d7109cf0d31158d", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://architectelevator.com/blog", "http://www.theserverside.com/symposium", "http://www.jroller.com/page/fate/20040506", "http://see.sun.com/Apps/DCS/mcp?eventid=e12s2125&p=73_rY03_rL0006304e4m32f40003_r50§ionid=3", "http://xml.coverpages.org/wscl.html", "https://twitter.com/share", "https://twitter.com/ghohpe", "https://leanpub.com/37things"]} {"url": "https://www.enterpriseintegrationpatterns.com/ramblings/10_javaone.html", "titulek": "JavaOne Redux - Enterprise Integration Patterns", "h1": "JavaOne Redux", "popis": "For a change I spoke at a conference without traveling halfway around the world", "klicova_slova": "", "kanonicka": "", "jazyk": "en_US", "robots_meta": "", "og": {"og:type": "article", "og:locale": "en_US", "og:site_name": "Enterprise Integration Patterns", "og:title": "JavaOne Redux", "og:description": "For a change I spoke at a conference without traveling halfway around the world", "og:url": "https://www.enterpriseintegrationpatterns.com/ramblings/10_javaone.html"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "JavaOne Redux"}, {"uroven": 2, "text": "SOA is Everywhere"}, {"uroven": 2, "text": "Oracle Acquires Collaxa"}, {"uroven": 2, "text": "Sun Web Services Stories"}, {"uroven": 2, "text": "WS-*"}, {"uroven": 2, "text": "JSR's"}, {"uroven": 2, "text": "Show Floor"}, {"uroven": 2, "text": "JINI"}, {"uroven": 2, "text": "Enterprise Integration Patterns"}], "markdown": "Gregor's Ramblings\n\n---\n\n# JavaOne Redux\n\nJuly 2, 2004\n\nFind my posts on IT strategy, enterprise architecture, and digital transformation\n at [ArchitectElevator.com](https://architectelevator.com/blog).\n\n## SOA is Everywhere\n\nBoth Oracle and BEA used their platinum sponsor keynotes to show their latest SOA\n and orchestration tools. Scott Dietzen from BEA demo'd the latest process designer\n additions to WL WorkShop under the [Liquid Computing](http://www.bea.com/framework.jsp?CNT=pr01301.htm&FP=/content/news_events/press_releases/2004) banner. We also got a brief glimpse at project [Quicksilver](http://www.infoworld.com/article/04/05/25/HNbeaquicksilver_1.html), BEA's answer to the Enterprise Service Bus. QuickSilver is based on an asynchronous\n messaging bus and I was happy to see our familiar patterns [Content-Based Router](../ContentBasedRouter.html) and [Message Translator](../MessageTranslator.html) in the mix. We are supposed to see a beta version of these tools by the end of the\n year. The BEA keynote was pretty good, except that I can't help but cringe when I\n hear the line \"we have a visual tool so it is suitable for business analysts\" (see\n [Doodleware](02_doodleware.html)).\n\nOracle showed their trusty JDeveloper demo, albeit with a new SOA and Web services\n spin. We got to see Ted Farrell build Web-based UI's based on external Web services.\n We then saw a BPEL editor that allowed us to chain Web service calls and the usual\n flow constructs such as decision points, forks and joins. The tools are nice, but\n in my opinion all process modeling tools start to look very similar to one another.\n Oracle's continuous zoom-in-zoom-out feature is neat even though it looks like once\n you have a good overview over the process you can't read the label text and vice versa.\n I agree with [Charles Young](http://geekswithblogs.net/cyoung/archive/2004/04/27/4415.aspx) that all integration developers should be setup with two large monitors side-by-side.\n Seriously, I believe that what we are seeing now is simply the first generation of\n BPEL editors. It's somewhat analogous to Java code editors before IntelliJ -- they\n do the job just fine but once the new generation arrives you realize just how much\n more potential there is. It will take some time for vendors to better understand the\n developer usage patterns and how to make BPEL development more efficient. While this\n year seems to be a \"me too\" year for BPEL editors I expect to see quite some innovation\n in this area next year (maybe I can help?).\n\n## Oracle Acquires Collaxa\n\nOracle revealed that their BPEL tool is essentially based on the freshly acquired\n [Collaxa](http://www.collaxa.com) BPEL engine and editor. Edwin got to be up on stage with Thomas Kurian and demo'd\n the Collaxa tools turned Oracle BPEL Process Manager. I was lucky enough to have dinner\n that night with Edwin and Amlan from Oracle and hear about their future plans. Integration\n and orchestration is high on Oracle's list so stay tuned. The good news is that they\n will continue to support multiple app servers.\n\n## Sun Web Services Stories\n\nI attended a number of Web services talks, mostly hosted by Sun engineers. In general,\n nothing really blew my socks off. A talk comparing Web services architecture and performance\n between J2EE and .NET showed a bunch of meaningless numbers somehow making us believe\n that J2EE is faster. The tests were done with the old WSE 1.0 stack from MS and the\n presenters lamented the fact that Microsoft Web services are script-based (\"like JSP\").\n I guess they had not heard about code behind pages. I am not saying that Microsoft\n Web services implementation is better than Sun's but at least give us a fair comparison\n instead of slides filled with meaningless numbers.\n\nA number of sessions talked about JAX-RPC 2.0. Despite the unlucky name, this API\n covers both sync and async Web services invocations and supercedes JAXM. JAX-RPC 2.0\n will take advantage of generics and futures, making asynchronous Web services invocations\n more comfortable -- very similar to Microsoft's delegates (available now) and generics\n coming in .NET 2.0.\n\nI attended a good session on [Fast Web Services](http://java.sun.com/developer/technicalArticles/WebServices/fastWS/). I agree that sending verbose XML strings across the wire on the off chance that\n a human wants to look at them without using a tool is a rather big waste of network\n bandwidth. A simple binary format can cut the message volume and parsing effort quite\n a bit. Other aspects of Fast Web Services include removing the self-describing nature\n of the documents. I am a bit more on the fence on that aspect; one can't help but\n wonder whether you should be using Web services in the first place if your performance\n requirements force to use a fixed binary format.\n\n## WS-*\n\nThe glut of new WS-* specs seems to be never ending and even I have a hard time keeping\n track. Two months ago, [WS-MessageDelivery](http://www.w3.org/Submission/2004/SUBM-ws-messagedelivery-20040426/) was submitted to the W3C and is likely to compete with WS-Addressing. So we have\n essentially Sun, Arjuna, IONA, Nokia, and SeeBeyond pitted against BEA, IBM and Microsoft.\n The WS-MessageDelivery team sports some very bright individuals like Mark Hapner (Sun),\n David Ingham (Arjuna) and Eric Newcomer (IONA) so I am inclined to keep an eye on\n this spec. Unfortunately, for users of Web services things seem to get more and more\n confusing and the WS-I profile seems to lag more and more behind the reality.\n\n## JSR's\n\nI have to admit that I have not had a lot of time to track the JSR activities in Java\n world. I am always a little skeptic of integration-related efforts that are language\n specific but maybe I am judging prematurely. I am going to check out [JSR 208 - Java Business Integration](http://www.jcp.org/en/jsr/detail?id=208) and [JSR 207 - Process Definition for Java](http://www.jcp.org/en/jsr/detail?id=207). On the other hand, [JSR 181 - Web Services Metadata for the Java Platform](http://www.jcp.org/en/jsr/detail?id=181) seems very reminiscent of the existing ASP.NET Web services attributes.\n\n## Show Floor\n\nThe mandatory \"Pavilion\" was packed with vendors showing their wares and handing out\n tickets to various parties. Once again, BPEL was well represented. I saw BPEL editor\n demos from SAP and Oracle. As I said before the tools are not bad but will take some\n work. Opening a dialog that makes me enter XPATH to assign a single field from one\n message to another is not likely to boost developer productivity. Do we need a reminder\n that developers do not code in dialog boxes? Or is this one for the business user?\n I was happy to hear that Oracle is planning on building a nice documentation function\n that allows me to print the process with all the detailed settings.\n\nSeeBeyond was not demoing anything as per corporate order. I can understand that they\n are afraid of the competition getting free demos (or bloggers ranting about their\n product) but not showing anything does not seem like the right answer to me either.\n If your product is truly worth steeling from you should focus on extending your lead\n not on trying to keep it secret.\n\n## JINI\n\nUnfortunately, I missed the JINI session discussing Orbitz' architecture. Orbitz went\n the JINI route as opposed to the EJB route and is quite happy with the results. I\n think architects building services architectures (including myself) can learn quite\n a bit from JINI. Too bad that I missed the Java Communities in Action event. Next\n time I need to coordinate with Bill Venners to get the whole scoop on JINI-related\n events at JavaOne.\n\n## Enterprise Integration Patterns\n\nLast but not least, my session on Asynchronous Messaging Architectures was well attended,\n somewhere around 300 - 400 people. My slides mentioned the word \"Java\" only once and\n apparently escaped the legal review, which tends to insert \"TM\" after every other\n word. I made a bet with Rupin from DigitalGuru that my book would sell out. I won\n -- it sold out by Wednesday morning but still made it to be the highest-ranked non-Java\n book at the show. Hopefully, Rupin will stock a few more copies next time :-)\n\n*Share:*\n\n*Follow:* [Follow @ghohpe](https://twitter.com/ghohpe) [SUBSCRIBE TO FEED](../ramblings.rss)\n\n*More On:* [EVENTS](/ramblings_events.html) [ALL RAMBLINGS](../ramblings.html)\n\nGregor is a cloud architect and author. He is a frequent speaker on asynchronous messaging,\n IT strategy, and cloud.", "znaku_textu": 8444, "slov": 1326, "odkazu": 55, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/ramblings/10_javaone.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 06:54:53", "sha256": "9c54b21fa7e3c6e548992b9330d874ea796ad4a722a3c45b0adafa95d992faff", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://architectelevator.com/blog", "http://www.bea.com/framework.jsp?CNT=pr01301.htm&FP=%2Fcontent%2Fnews_events%2Fpress_releases%2F2004", "http://www.infoworld.com/article/04/05/25/HNbeaquicksilver_1.html", "http://geekswithblogs.net/cyoung/archive/2004/04/27/4415.aspx", "http://www.collaxa.com/", "http://java.sun.com/developer/technicalArticles/WebServices/fastWS/", "http://www.w3.org/Submission/2004/SUBM-ws-messagedelivery-20040426/", "http://www.jcp.org/en/jsr/detail?id=208", "http://www.jcp.org/en/jsr/detail?id=207", "http://www.jcp.org/en/jsr/detail?id=181", "https://twitter.com/share", "https://twitter.com/ghohpe", "https://leanpub.com/37things"]} {"url": "https://www.enterpriseintegrationpatterns.com/ramblings/11_dependencies.html", "titulek": "Visualizing Dependencies - Enterprise Integration Patterns", "h1": "Visualizing Dependencies", "popis": "Many of you have seen my rants on doodleware and top-down modeling", "klicova_slova": "", "kanonicka": "", "jazyk": "en_US", "robots_meta": "", "og": {"og:type": "article", "og:locale": "en_US", "og:site_name": "Enterprise Integration Patterns", "og:title": "Visualizing Dependencies", "og:description": "Many of you have seen my rants on doodleware and top-down modeling", "og:url": "https://www.enterpriseintegrationpatterns.com/ramblings/11_dependencies.html"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Visualizing Dependencies"}, {"uroven": 2, "text": "Loosely Coupled Systems"}, {"uroven": 2, "text": "Top-down Modeling"}, {"uroven": 2, "text": "Bottom-Up Visualization"}, {"uroven": 2, "text": "Capturing Dependencies"}, {"uroven": 2, "text": "Visualization"}, {"uroven": 2, "text": "The Loan Broker Example"}, {"uroven": 2, "text": "The Results"}, {"uroven": 2, "text": "What's Next?"}, {"uroven": 2, "text": "Conclusion"}], "markdown": "Gregor's Ramblings\n\n---\n\n# Visualizing Dependencies\n\nJuly 12, 2004\n\nFind my posts on IT strategy, enterprise architecture, and digital transformation\n at [ArchitectElevator.com](https://architectelevator.com/blog).\n\n## Loosely Coupled Systems\n\nEveryone seems to hail the benefits of building loosely coupled systems. I have my\n own opinions on coupling but that'll have to wait until another rambling. For now,\n let's agree that loosely coupled systems are systems that make fewer assumptions about\n each other. A loosely coupled interaction is desirable in those cases where individual\n components should not depend too much on each other, for example because they are\n part of different applications or organizations.\n\nWhile loose coupling can be a desirable architectural principle it also has drawbacks.\n Loosely coupled architectures can quickly turn into what [Martin Fowler](http://www.martinfowler.com) calls *An Architect's Dream - A Developer's Nightmare*, alluding to the fact that loosely coupled systems are inherently difficult to test\n and debug. For example, if a solution uses message-based integration, a component\n may simply write messages to a channel or read messages from a channel without knowing\n which component sits at the other end of that channel. This architecture allows for\n great flexibility in composing these types of solutions from reusable components.\n However, if we face a performance bottleneck or detect invalid messages it would be\n tremendously useful to know where messages actually come from and where they are headed.\n\n## Top-down Modeling\n\nI am a big fan of visual representation of systems. Sometimes you simply need the\n literal \"big picture\" to see what is going on. Unfortunately, most visual representations\n these days are linked to the term modeling as in *model-driven architecture*. This type of modeling suggest that you can design the system visually using some\n form of [Doodleware](02_doodleware.html) and then more or less generate the code for the running system. I am [not the only one](http://www.martinfowler.com/ieeeSoftware/mda-thomas.pdf) to have mixed feelings about this approach, especially in a distributed an loosely\n coupled system that is will evolve over time. Modeling such a system in a single tool\n seems to assume that you have a clear understanding of how the individual pieces are\n going to interact. I feel that in a loosely coupled integration of multiple pieces\n this is typically not the case. In fact, not knowing how the system will evolve is\n one of the key reasons for us to build loosely coupling solutions. In a loosely coupled\n solution, components should be able to subscribe to message feeds without affecting\n the sender of the messages or the integrity of the system. It seems like loosely coupled\n systems encourage some form of controlled \"anarchy\" to allow the overall system to\n evolve in a natural manner. Most model-driven approaches, on the other hand, take\n more of a \"big brother\" stance where we want to design the whole world in one run\n from the top down.\n\n## Bottom-Up Visualization\n\nLikening a loosely coupled system to \"anarchy\" might be a bit strong but the important\n aspect is that uncontrolled variability is supported and to some extend encouraged.\n How then, do we keep tabs on what is going on in the system? A visual representation\n of the system is certainly useful, especially if we deal with a system that is asynchronous\n and concurrent by nature. If we cannot design the whole system from the top down how\n can we get such a visual representation? We should harvest it from the actual system!\n This way we get an accurate depiction of the system without imposing a certain structure\n onto it. I call this technique *bottom-up visualization* to set it apart from top-down modeling approaches a la MDA. For example, we can track\n which message channel each component is publishing or subscribing to. We can then\n use this information to create a message flow graph that depicts how information flows\n from component to component.\n\nThese kinds of visualization tools are receiving quite a bit of attention these days.\n For example, a key component in the next generation of Microsoft's Visual Studio called\n *Whitehorse* can inspect Web references from one project to another and display the resulting\n relationships in a visual editor. In Microsoft's case this editor also allows the\n user to add or remove dependencies, i.e. it is \"roundtrippable\".\n\n## Capturing Dependencies\n\nThe first step to visualizing dependencies between systems is to determine the dependencies\n in the first place. This can be accomplished in a number of ways, such as:\n\n- Metadata Repository\n- Message Store\n- Subscription Tracker\n\nA number of packaged EAI tools, such as TIBCO, feature a **Metadata Repository**. This repository is the source for configuration information for all components.\n Whenever a component is supposed to subscribe to a specific channel the channel name\n is actually stored inside the repository via a configuration tool. When the component\n starts up, it retrieves the actual channel name from a specified path in the repository.\n Having such a central repository makes it very easy to figure out all communication\n between components, that is, as long as all components use the repository as opposed\n to hard-coded channel names (for example, see my [TibDoc Project](http://www.hohpe.com/Gregor/Work/portfolio.html). However, this approach is limited to detecting static communication between components.\n For example, if a component specifies a [Return Address](../ReturnAddress.html) at run-time, the communication dependency established via the reply message would\n not be contained in the metadata repository and would therefore not be displayed.\n\nIn the absence of a metadata repository we can capture all messages that flow through\n the system in a central [Message Store](../MessageStore.html). This approach is dynamic in nature, that is, it observers a running system. In contrast,\n inspecting the Metadata Repository is considered *static analysis* because the analysis only involves design-time artifacts. Based on the message header\n we can then figure out which component sends message to which other component. Since\n we inspect a running system we can also get data on the message volume. The main drawback\n of using a message store is the high volume of message data sent to the message store.\n If all we want to do is visualize publication and subscriptions this approach can\n be overkill because it is likely that a component sends many message instances to\n the same channel.\n\nTo be more efficient we should only track subscription and publication requests. Whenever\n a component obtains a channel reference for publication or subscription we can send\n a message to the [Control Bus](../ControlBus.html) (see figure). We can even make the individual components smart enough to track all\n channels it has already used to avoid duplicate control messages. This approach seems\n to be a fair compromise between the other two approaches. We can track dynamic communication\n between components, such as usage of [Return Addresses](../ReturnAddress.html) but avoid having to intercept every single message.\n\n## Visualization\n\nThe second part of the bottom-up modeling approach is to visualize the data we captured.\n The dependency capture is likely to yield a list of components, each with a list of\n message channels that the component publishes or subscribes to. If *Component A* publishes to *Channel X* and *Component B* subscribes to the same *Channel X* we can essentially assume that *Component A* communicates with *Component B*. In a message flow diagram we would visualize this as an arrow pointing from *Component A* to *Component B* (see figure). Effective visual representation can be the key to understanding critical\n properties about a system that might otherwise go unnoticed (for some great example\n have a look at some of [Ed Tufte's](http://www.edwardtufte.com) books). So far our approach has captured a directed graph as a data structure of\n nodes (components) and edges (communication dependencies). Transforming this data\n structure into a visually appealing and useful diagram is not a trivial task. Luckily,\n ATT Research has created a great open tool for graph visualization, [GraphViz](http://www.research.att.com/sw/tools/graphviz/). GraphViz can render a multitude of graphs and has tunable layout algorithms. The\n only downsides of GraphViz are that it is file-based and that the file format pre-dates\n XML. Luckily, [WingraphViz](http://home.so-net.net.tw/oodtsen/wingraphviz/index_en.htm) implements a COM wrapper so that we can avoid generating DOT files to feed GraphViz.\n Conveniently, COM components are easily invoked from .NET programs.\n\n## The Loan Broker Example\n\nThis all sounds good in theory but let's put all the pieces together and try this\n on a real implementation. A natural test candidate is the [Loan Broker](../ComposedMessagingMSMQ.html) example in Chapter 9 of my [book](../eaipatterns.html). The scenario is implemented using three different technologies and messaging paradigms.\n For our purposes, we chose the MSMQ / C# version because it is asynchronous and it\n does not depend on any third party software (for those of us who succumbed to the\n dominating force from the Pacific Northwest). Furthermore, the simplicity of the MSMQ\n API makes it well suited for examples like this one. The following figure shows the\n base architecture of the Loan Broker:\n\nBut let's realize that not everyone working with our system is going to have access\n to this pretty high-level picture or that the picture may be inaccurate because the\n solution changed over time. Therefore, we want to enhance the existing solution to\n support visualization of the message flow. First, we have to send a message to a control\n queue whenever a component accesses a message queue to receive or send messages. In\n order to minimize code changes to the existing loan broker solution, we need to make\n this tracing of publication or subscription as transparent as possible. Luckily, we\n had some apparent foresight when we developed the loan broker solution. We abstracted\n the components' interaction with the MSMQ *MessageQueue* objects behind the *IMessageSender* and *IMessageReceiver* interfaces. Defining these interfaces allows us to supplement different implementations\n for them without having to change the code for the messaging component. When we instantiate\n a component, the component constructor accepts references to these interfaces instead\n of actual *MessageQueue* objects. By passing references to the component, the outside components can control\n which implementation to use for each interfaces (see figure). This is very useful\n for testing or when you need to extend the default implementation (like we are doing\n now). We refer to this configuration as [Dependency Injection](http://www.martinfowler.com/articles/injection.html) .\n\nHowever, not all queues a component interacts with are known up front. For example,\n a service that supports a [Return Address](../ReturnAddress.html) has to publish messages to queues that are not known at component start-up time.\n In order to accurately track dependencies between components we have to capture the\n fact that a component publishes messages to these queues. How can we intercept the\n instantiation of the *MessageSenderGateway* object by the component? Rather than letting the component instantiate the object\n directly using *new* we pass a factory to the messaging component. The messaging component uses the factory\n object to obtain references to the *IMessageSender* interface to send reply messages. Because the factory is invoked for each message\n queue reference it is the ideal spot to trace queue publication for visualization\n purposes.\n\nFor example the factory method to access a queue to send messages is implemented as\n follows:\n\n```\npublic MessageSenderGateway GetSenderInstance(String q){\n SendPublishTrace(q);\n return new MessageSenderGateway(q);\n}\n\nprotected void SendPublishTrace(string QueueName)\n{\n if (!SendQueues.Contains(QueueName)) \n {\n PubSubTrace trace = new PubSubTrace(ComponentName, QueueName, QueueInteractionEnum.QUEUE_PUBLISH);\n controlBusQueue.Send(trace);\n SendQueues.Add(QueueName, null);\n }\n}\n```\n\nWe notice one optimization in this code. Because a request-reply service component\n has to gain access to a queue for every reply message the default approach would send\n a publication message to the visualizer for every message. In reality, though, the\n reply queue is going to be the same for many messages. Therefore we make the factory\n smart enough to keep a list of queue names that have already been sent to the visualizer.\n This way we avoid sending duplicate messages onto the control bus.\n\nNow that we can send a message to the control bus whenever a component publishes or\n subscribes to a message queue we have to write a console that reads the messages off\n the control bus and generates the dependency graph. The component then calls GraphViz\n to layout and render the corresponding graph as a GIF image. To see how the graph\n builds up over time I created a simple HTML page with a *meta refresh* tag to automatically reload the picture every few seconds.\n\n## The Results\n\nSo what does the visualization look like? It takes a few seconds for the complete\n graph to be generated because many dependencies are established by messages send to\n dynamic [Return Addresses](../ReturnAddress.html). The following picture shows the image produced by GraphViz:\n\nWhile the picture is not quite as pretty as our design diagram with the patterns icons,\n this generated image gives us some immediate information: The system we created uses\n one central component (the loan broker) to interact will all other components in a\n request-reply fashion. We can also see that the test configuration used two instances\n of the Credit Bureau component. Looking at the image it is immediately obvious which\n component faces the highest message traffic and could present a potential bottleneck.\n Visualization the message exchanges can help us identify the architectural style of\n our solution, in this case a central [Process Manager](../ProcessManager.html) with request-reply interaction (represented as circles in the graph) with all other\n components.\n\n## What's Next?\n\nGenerating diagrams from a running system can give us quick information about the\n type of system we created without having to model the complete system up front. I\n could imagine different types of diagrams for different purposes. For example if we\n are interested only in dependencies and not the complete message flow we might only\n track request messages and not reply messages in a request-reply interaction because\n the service provider does not actually depend on the service consumer. Or, rather\n than drawing lines directly between components we could depict the channel itself\n as a node. This way it would be easier to see that all Bank components in the Loan\n Broker example publish their replies to the same channel.\n\nTaking things one step further, it would be interesting to investigate whether the\n resulting graphs can tell us more about the nature and quality of the solution. For\n example, we could count how many circles the graph has and what the average size of\n a circle is. Small circles imply more request-reply interaction, which could mean\n poorer scalability of the solution. It would be interesting to see whether we could\n identify certain patterns (or anti-patterns) from the graph data. This would be neat\n because the patterns now really look like (visual) patterns. What I created so far\n is a very simple but it could ultimately take on the shape of something like [SALSA](http://www.eweek.com/article2/0,1759,1611792,00.asp). One could even imagine some sort of query language against the graph to efficiently\n extract information from larger graphs. We could also augment the current system with\n message traffic data and depict the amount of message traffic by using different line\n weights in the graph.\n\n## Conclusion\n\nVisualizing the dependencies between loosely coupled systems can be very useful and\n can be implemented with moderate effort. This way, the system can evolve organically\n without us having to pre-impose a predefined structure. At any point in time we can\n visualize what shape the system has taken on. This type of bottom-up visualization\n can be a viable and more agile alternative to top-down modeling\n\n*Share:*\n\n*Follow:* [Follow @ghohpe](https://twitter.com/ghohpe) [SUBSCRIBE TO FEED](../ramblings.rss)\n\n*More On:* [DESIGN](/ramblings_design.html) [VISUALIZATION](/ramblings_visualization.html) [ALL RAMBLINGS](../ramblings.html)\n\nGregor is a cloud architect and author. He is a frequent speaker on asynchronous messaging,\n IT strategy, and cloud.", "znaku_textu": 16838, "slov": 2561, "odkazu": 58, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/ramblings/11_dependencies.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 06:54:51", "sha256": "c5d3872ab4ac40b59690ecadc9f3a1cfb7deadb1d01b3f87b21d81a4c15f5775", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://architectelevator.com/blog", "http://www.martinfowler.com/", "http://www.martinfowler.com/ieeeSoftware/mda-thomas.pdf", "http://www.hohpe.com/Gregor/Work/portfolio.html", "http://www.edwardtufte.com/", "http://www.research.att.com/sw/tools/graphviz/", "http://home.so-net.net.tw/oodtsen/wingraphviz/index_en.htm", "http://www.martinfowler.com/articles/injection.html", "http://www.eweek.com/article2/0,1759,1611792,00.asp", "https://twitter.com/share", "https://twitter.com/ghohpe", "https://leanpub.com/37things"]} {"url": "https://www.enterpriseintegrationpatterns.com/ramblings/12_jeopardy.html", "titulek": "Web Services Jeopardy - Enterprise Integration Patterns", "h1": "Web Services Jeopardy", "popis": "It is nearly impossible to keep track of all the Web Services (WS-*) specifications or proposed \"standards\"", "klicova_slova": "", "kanonicka": "", "jazyk": "en_US", "robots_meta": "", "og": {"og:type": "article", "og:locale": "en_US", "og:site_name": "Enterprise Integration Patterns", "og:title": "Web Services Jeopardy", "og:description": "It is nearly impossible to keep track of all the Web Services (WS-*) specifications or proposed \"standards\"", "og:url": "https://www.enterpriseintegrationpatterns.com/ramblings/12_jeopardy.html"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Web Services Jeopardy"}, {"uroven": 2, "text": "WS-Alphabetsoup"}, {"uroven": 2, "text": "WS-Jeopardy"}], "markdown": "Gregor's Ramblings\n\n---\n\n# Web Services Jeopardy\n\nAugust 18, 2004\n\nFind my posts on IT strategy, enterprise architecture, and digital transformation\n at [ArchitectElevator.com](https://architectelevator.com/blog).\n\n## WS-Alphabetsoup\n\nThe fact that we now refer to the Web Services standardization efforts as \"WS-*\" (*\n being the wildcard character) is a pretty good indication that most people have lost\n track of the countless individual standardization efforts. There is no doubt that\n most of these proposed standards pursue a worthwhile goal. Typically, these proposals\n advocate to add a set of agreed upon fields to the SOAP message header. Each proposed\n standard defines the name, type, and meaning of fields and how they are supposed to\n be used. For example, WS-Addressing recommends to add header elements > and\n that identify the sender and ultimate recipient of stream of SOAP messages. These\n fields are very useful if a SOAP message is routed through intermediaries on its way\n to the ultimate destination. Other proposed standards add fields for security, reliable\n message resend in case a message gets lost, and much more. The details of the standard\n implementation are generally of little interest to the users and developer as the\n intend is for every vendor to agree to the standard and to incorporate support in\n their Web services toolkit.\n\nUnfortunately, this is where things get complicated. Most of these specifications\n are no standards at all but rather proposals drafted by a specific group of vendors.\n The vendor list is typically composed of the usual suspects: Microsoft, IBM, BEA,\n Sun and smaller middleware and Web services vendors such as TIBCO, IONA, Arjuna and\n others. Many drafts are even hosted on the vendor's site. Others are submitted to\n organizations such as OASIS, which decouples them a little bit from the vendor itself.\n We need to keep in mind, though, that requirements for submission to OASIS are fairly\n loose. The fact that a specification is hosted on OASIS is no guarantee that it is\n a widely adopted and supported standard. It is also no guarantee that vendors can\n freely implement the standard without having to obtain permission or pay license fees.\n\nAs a result, for many WS-* drafts the list of vendors at the top might be the most\n interesting part for the Web Services developers and architects because it gives an\n indication which vendors are likely to implement the proposed standard. However, recently\n this is no longer a guarantee either. For example, Microsoft has received some flak\n for their less-than-expected support for BPEL in BizTalk Server 2004 despite their\n active involvement in the definition of the specification. The same is true for other\n vendors as well -- I am just using Microsoft as an example.\n\n## WS-Jeopardy\n\nNow that I have drawn such a grim picture about the WS-* efforts, why should we even\n pay attention at all? First of all because a lot of very smart people are contributing\n to these proposals. Most of the proposal contributors are experienced architects and\n developer with many years of experience developing distributed solutions. With that\n experience it is often that these architects identify an important aspect of distributed\n computing that is missing from the current Web services specifications. For example,\n the ability to send one-way message reliably. Or the ability to route a message through\n a number of recipients before it reaches its final destination. These architects then\n go on to form a vendor-sponsored committee to find a way to fill the gap.\n\nThis is all good. But once the multi-vendor politics come into play, things get much\n more difficult. Who is supposed to contribute how much, who gets to implement when,\n who makes the first step, who endorses, who is left out etc. etc? That's why I propose\n that architects and developers of service-oriented architectures should look at these\n standards as a form of Jeopardy. Instead of focusing on the answer (the details of\n the standard), have a look at what problem the standard is trying to solve. More\n likely than not, it is a problem that you are going to have when you go to implement\n your architectural vision. For example, not knowing where SOAP messages come from\n and where they are going makes debugging and diagnostics very hard. Not being able\n to reliably send asynchronous messaging is likely to result in a brittle and not very\n scaleable \"RPC-over-the-network\" model.\n\nTherefore, I propose to many of my clients to use the WS-* standards as a checklist\n for their designs. I generally do not recommend they use WS-Addressing or WS-ReliableMessaging\n (or at least not right out of the gate). I do, however, challenge them by asking,\n \"What is your strategy to track messages in case of error?\" or \"How do you intend\n to support asynchronous messaging?\" The answer has sometimes little to do with Web\n Services. For example, the answer to reliable asynchronous messaging might be to use\n JMS or MQ or another middleware that ensures guaranteed delivery of asynchronous messages.\n And that's OK. \n ...\n\n*Share:*\n\n*Follow:* [Follow @ghohpe](https://twitter.com/ghohpe) [SUBSCRIBE TO FEED](../ramblings.rss)\n\n*More On:* [WEBSERVICES](/ramblings_webServices.html) [ALL RAMBLINGS](../ramblings.html)\n\nGregor is a cloud architect and author. He is a frequent speaker on asynchronous messaging,\n IT strategy, and cloud.", "znaku_textu": 5388, "slov": 864, "odkazu": 43, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/ramblings/12_jeopardy.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 06:54:51", "sha256": "7bc2def5345429c0727d29894120cfd24f4db86f6c9bb6b6baecbed1da68ae52", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://architectelevator.com/blog", "https://twitter.com/share", "https://twitter.com/ghohpe", "https://leanpub.com/37things"]} {"url": "https://www.enterpriseintegrationpatterns.com/ramblings/13_ioc.html", "titulek": "Dependency Injection in Messaging Architectures - Enterprise Integration Patterns", "h1": "Dependency Injection in Messaging Architectures", "popis": "The notion of Dependency Injection or Inversion of Control has generated quite a bit of interest lately", "klicova_slova": "", "kanonicka": "", "jazyk": "en_US", "robots_meta": "", "og": {"og:type": "article", "og:locale": "en_US", "og:site_name": "Enterprise Integration Patterns", "og:title": "Dependency Injection in Messaging Architectures", "og:description": "The notion of Dependency Injection or Inversion of Control has generated quite a bit of interest lately", "og:url": "https://www.enterpriseintegrationpatterns.com/ramblings/13_ioc.html"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Dependency Injection in Messaging Architectures"}, {"uroven": 2, "text": "Dependency Injection"}, {"uroven": 2, "text": "Message Injection"}, {"uroven": 2, "text": "Data vs. Objects"}, {"uroven": 2, "text": "Look Ma, No Middleware!"}], "markdown": "Gregor's Ramblings\n\n---\n\n# Dependency Injection in Messaging Architectures\n\nSeptember 3, 2004\n\nFind my posts on IT strategy, enterprise architecture, and digital transformation\n at [ArchitectElevator.com](https://architectelevator.com/blog).\n\n## Dependency Injection\n\nA lot of developers are talking about inversion of control (IoC) and dependency injection\n these days. I don't want to reiterate what others have already described in much detail.\n If you are interested in the detailed story behind dependency injection please refer\n to this [article](http://www.martinfowler.com/articles/injection.html#FormsOfDependencyInjection) by [Martin Fowler](http://www.martinfowler.com) or this [post](http://docs.codehaus.org/display/PICO/Inversion+of+Control) by Aslak Hellesoy and Paul Hammant (fellow ThoughtWorkers in the UK). To save you\n some reading, here is the gist of it (or at least my interpretation). Assume an object\n A requires a reference to object B because it wants to make use of B's services. The\n usual approach is for A to instantiate an instance of B using the 'new' command. A\n now holds a reference to B and can invoke its methods. So far, this could well be\n a lesson from OO 101 and is not terribly interesting. What, however, if in different\n situations A needs different versions of B? For example, assume B provides persistence\n services. During testing you might want to simply write data into a file but during\n production you might want to use an industrial-strength database. Or, if B provides\n messaging services, you might want to use a synchronous implementation for unit testing\n and an asynchronous one for integration testing and production. Or, you might want\n to use a mock-messaging layer that is not a messaging layer at all but verifies that\n A sends the correct data to the layer.\n\nObject-oriented constructs like interfaces, inheritance and polymorphism give us well\n known mechanisms to hide different implementations behind a common interface. This\n allows A to access B's services via a common interface B, which may be implemented\n by different implementations B* and B'. The question that now remains is, how does\n A instantiate the right implementation of B? Ideally A should not be aware that there\n is a testing and production mode and that there are two different implementation of\n B. This implies that A should no longer instantiate B' or B* directly. There are multiple\n ways to resolve this dependency. One options is to allow A to use a B-factory. This\n way A can ask the factory for an instance of B. The factory could be smart enough\n to figure out which implementation of B to create behind the interface. Alternatively,\n A could simply advertise that it requires a reference to B and the external environment\n (e.g. the run-time container) would pass in the appropriate implementation of B. For\n example, in [Pico Container](http://docs.codehaus.org/display/PICO/Inversion+of+Control) objects use the class constructor to advertise their needs for other objects. The\n container inspects the constructor, instantiates the appropriate implementations of\n the specified types and passes them to the component.\n\n## Message Injection\n\nSo what does this have to do with messaging? Let's assume a component A is processing\n data. In a common procedural approach, A would either call the data source for data\n or the data producer would invoke A with the data. In either scenario there is a direct\n linkage between A and the source of the data. Let's now assume that there is a chain\n of these types of data processing components. If each component expects to be called\n with data it is easy for us to pass in test data: we simply instantiate the component\n and invoke it with our desired test data. However, the component will in turn call\n other components. This is often not desirable for a unit test because we prefer to\n test only one component at a time. Likewise, if each component asks it source for\n data we need to be able swap out the source for a test data source to feed test data\n into the component.\n\n[Pipes-and-Filters](../PipesAndFilters.html) messaging architectures help break these dependencies between components. Component\n A no longer requests data from a specific component nor does it send data to a specific\n component. Instead, the component consumes messages of a channel and writes messages\n to another channel. This makes it ideal to replace a component's ecosystem during\n testing. This way we can feed test data into the component's input channels and monitor\n the component's output channels for correct result data. Essentially, component A\n has no direct dependencies on any other component. However, just as with the Inversion\n of Control containers *somewhere* the dependencies must be resolved. In the world of messaging this can happen in one\n of two ways:\n\n- The component can subscribe and publish to one or more channels of its choosing. Because\n channels are decoupled from the sender and receiver we can still use these channels\n to feed test data from a test data source. The composition of the individual components\n into a larger system happens by virtue of two components publishing or subscribing\n to the same channel. This configuration is very flexible but sometimes it can be difficult\n to understand what component communicates with what other component.\n- Alternatively, we can pass the required channels to each component. Composition of\n a pipes-and-filters message flow would then happen by virtue of the composer choosing\n to pass the same channel to multiple components for publication or subscription. This\n option allows the composer to reuse the same component with different channels. The\n main drawback is that it does require an external composer to establish connections\n between components.\n\nIn either scenario the component itself does not acquire references to other component\n but 'advertises' its needs by subscribing to one or more specific message channels.\n This property gives us many of the same advantages that drives dependency injection,\n for example improved testability or the ability to execute a component without having\n to instantiate all other components.\n\n## Data vs. Objects\n\nEven though [Pipes-and-Filters](../PipesAndFilters.html) architectures exhibit some of the same properties as dependency injection models\n there is one important difference. Dependency injection schemes are generally used\n to provide object references to a component. Often these references provide useful\n services to the component, such as persistence, transactional support etc. In the\n world of message message data might arrive in the form of an object but the message\n does not provide any services to the component -- it is simply a holder of data.\n\n## Look Ma, No Middleware!\n\nOne of the nice properties of [Pipes-and-Filters](../PipesAndFilters.html) architectures is that they can be realized in many different technologies. For example,\n an implementation could use third party middleware a la JMS, TIBCO, MQ etc. Or it\n could all just be implemented inside a single JVM using a custom EventChannel class\n (our most recent project used this approach -- I'll share more about our experiences\n soon). In either case, this type of architecture enables dynamic composability, extensibility\n and great testability of individual components.\n\n*Share:*\n\n*Follow:* [Follow @ghohpe](https://twitter.com/ghohpe) [SUBSCRIBE TO FEED](../ramblings.rss)\n\n*More On:* [MESSAGING](/ramblings_messaging.html) [DESIGN](/ramblings_design.html) [ALL RAMBLINGS](../ramblings.html)\n\nGregor is a cloud architect and author. He is a frequent speaker on asynchronous messaging,\n IT strategy, and cloud.", "znaku_textu": 7657, "slov": 1162, "odkazu": 47, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/ramblings/13_ioc.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 06:54:49", "sha256": "8d0a8e6698a2ab8f8cb2673cb37a64e9b62e89ba1592a263bcafd62a97a8d16e", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://architectelevator.com/blog", "http://www.martinfowler.com/articles/injection.html", "http://www.martinfowler.com/", "http://docs.codehaus.org/display/PICO/Inversion+of+Control", "https://twitter.com/share", "https://twitter.com/ghohpe", "https://leanpub.com/37things"]} {"url": "https://www.enterpriseintegrationpatterns.com/ramblings/14_edainjvm.html", "titulek": "Look Ma -- No Middleware! Using Event-Driven Architectures inside a JVM. - Enterprise Integration Patterns", "h1": "Look Ma -- No Middleware! Using Event-Driven Architectures inside a JVM.", "popis": "Our most recent project was to replace a batch-oriented stored procedure with a more flexible, maintainable and scaleable Java-based architecture", "klicova_slova": "", "kanonicka": "", "jazyk": "en_US", "robots_meta": "", "og": {"og:type": "article", "og:locale": "en_US", "og:site_name": "Enterprise Integration Patterns", "og:title": "Look Ma -- No Middleware! Using Event-Driven Architectures inside a JVM.", "og:description": "Our most recent project was to replace a batch-oriented stored procedure with a more flexible, maintainable and scaleable Java-based architecture", "og:url": "https://www.enterpriseintegrationpatterns.com/ramblings/14_edainjvm.html"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Look Ma -- No Middleware! Using Event-Driven Architectures inside a JVM."}, {"uroven": 2, "text": "From SP to EDA in 6 weeks"}, {"uroven": 2, "text": "Event Channels in Java"}, {"uroven": 2, "text": "Topic Hierarchy"}, {"uroven": 2, "text": "Emerging Patterns"}, {"uroven": 2, "text": "Granularity"}, {"uroven": 2, "text": "Instant Replay"}, {"uroven": 2, "text": "Other Lessons Learned"}, {"uroven": 2, "text": "Look Ahead"}], "markdown": "Gregor's Ramblings\n\n---\n\n# Look Ma -- No Middleware! Using Event-Driven Architectures inside a JVM.\n\nOctober 1, 2004\n\nFind my posts on IT strategy, enterprise architecture, and digital transformation\n at [ArchitectElevator.com](https://architectelevator.com/blog).\n\n## From SP to EDA in 6 weeks\n\nOur client had a rather lengthy stored procedure to aggregate values across a series\n of data records and compute \"scores\" from these aggregates using various look-up tables.\n The records in the database represent essentially a collection of user input over\n time. Our client was facing two main issues: first, the stored procedure was becoming\n unwieldy due to new requirements for the support of new types of products and scores.\n Second, the batch-orientation of the stored procedure caused response times to be\n uncomfortably slow. While the data access part of the procedure was naturally efficient,\n more and more business logic inside the procedure started to bog down the database\n server.\n\nWe addressed the first problem by converting from PL/SQL to Java code, which allowed\n us to structure the solution using object-oriented constructs. We targeted the second\n problem by processing user events as they occur instead of waiting for all events\n to be collected first before starting to compute aggregated values. In order to allow\n for future flexibility we developed a set of self-contained components, called \"calculators\",\n that we could connect to one another via event channels. Each calculator would subscribe\n to a set of relevant event types and in response publish events of other types. This\n this loosely coupled architecture enabled us to compose new solutions from existing\n calculators quite easily, sorta like Lego.\n\n## Event Channels in Java\n\nIn order to realize this architecture we had to build an event channel and a way for\n calculators to publish events or subscribe to them. We chose to build the solution\n from scratch because our requirements were in fact quite simple. For example, we wanted\n our architecture to be amenable to distribution and asynchrony but for our initial\n channel a synchronous single-JVM implementation was sufficient. On a second look,\n we could have benefited from something like [ActiveMQ](http://activemq.codehaus.org), a messaging framework that supports intra-VM channels. Also, some of the J2SE5 features\n in the [java.util.concurrent package](http://java.sun.com/j2se/1.5.0/docs/api/java/util/concurrent/package-summary.html) as well as generics could have come in handy, but the GA release was just a few months\n too late for us. BTW, I just saw there the is a [Back-port to 1.4](http://altair.cs.oswego.edu/pipermail/concurrency-interest/2004-September/001035.html) for the concurrency package, which is great.\n\nAnyway, we set out to build the event channel from scratch and it turned out not to\n be very much code. The channel interface is in fact very trivial:\n\npublic interface Channel {\n public void send(Event event);\n public void subscribe(EventRecipient recipient, Class eventClass);\n}\n\nThis interface sure seems simple enough to be implemented in a variety of messaging\n frameworks. Subscriptions are based on the type (class) of the event (more about\n this soon). One important property, however, is not apparent in the interface: our\n channels are [Publish-Subscribe Channels](../PublishSubscribeChannel.html). This implies that many subscribers can subscribe to the same channel and each receive\n a copy of the same message.\n\nOne important part is still missing in this messaging layer: subscribers need to be\n notified when an event occurs. We wanted all our subscribers to be strictly event-driven,\n i.e. subscribers do not have to poll for events but instead are actively invoked whenever\n an event occurred. With our solution, receiving messages became as simple as implementing\n a method of name onEvent with a parameter of type Event, or a subtype thereof. Whenever an event of the subscribed type is published to the\n channel, the channel will directly invoke the onEvent method of all appropriate subscribers. In our simple implementation, this invocation\n occurs via reflection.\n\nWith all this in mind, to build a very simple subscriber here is all you have to do:\n\npublic class DebugCalculator {\n public DebugCalculator (Channel channel) {\n channel.subscribe(this, Event.class);\n }\n\n public void onEvent(Event event) {\n System.out.println(\"event = \" + event);\n }\n}\n\n## Topic Hierarchy\n\nIt might be impractical to have to create a new channel for each type of event so\n we allow subscribers to subscribe to specific types of events. A subscriber will only\n receive events of the type it subscribed to or subtypes thereof. Essentially, we created\n a publish-subscribe topic hierarchy based on Java classes. Most publish-subscribe\n messaging systems specify topic hierarchies in a specific textual notation, such as\n topic.subtopic.subsubtopic. A subscriber can then choose to subscribe to topic.* to receive all messages for this topic or any subtopic. As a side note, JMS does\n not specify this behavior for its publish-subscribe topics, but essentially all JMS\n providers support it with slightly varying syntax.\n\nIn our world, such a topic hierarchy would be represented as a class hierarchy like\n the following:\n\nA subscriber who subscribes to the type Event would receive all events while a subscriber who subscribes to SubtestEvent would only receive events of type SubtestEvent, SubtestStartedEvent and SubtestEndedEvent. This feature makes it very convenient for calculators to subscribe to multiple\n topics at once. For example, the DebugCalculator shown above simply subscribes to all events by invoking subscribe with Event.class. Even if new event types are added, the DebugCalculator will receive the new types just as well. At the same time the publish-subscribe property\n of the channel ensures that this debug calculator does not affect any of the existing\n message flow. We could say that [Publish-Subscribe Channels](../PublishSubscribeChannel.html) are side-effect free in regards to adding new subscribers. Programming this way has\n a very aspect-like flavor as you can easily apply processing to whole classes (pun\n intended) of events.\n\nOur event channel deals with a second type of hierarchy though, which is somewhat\n unique to the way we invoke event recipients. We wanted to avoid the typical if (... instanceof ...) goo that often plagues message-driven systems that deal with multiple event types.\n Therefore, we made our channel smart enough to invoke the most specific (i.e. deepest\n subclass) implementation of the onEvent method in the recipient. The channel performs that evaluation for each event. This\n behavior becomes clear with a simple example:\n\nclass SubEvent1 extends Event {}\nclass SubEvent2 extends Event {}\n\nclass SubScribeToAll {\n public SubScribeToAll {\n channel.subscribe(Event.class);\n }\n public void onEvent (Event e) {}\n public void onEvent (SubEvent1 se) {}\n}\n\nThis class subscribes to the base type Event. As a result, it will receive events of type Event, SubEvent1, and SubEvent2. According to our implementation, for each event of type Event (excluding subclasses), the method onEvent(Event) is invoked. For events of type SubEvent1, the method onEvent(SubEvent1) is invoked because this is the most specific onEvent methods. On the other hand, for events of type SubEvent2, onEvent(Event) is called because that is the most specific method that matches type SubEvent2.\n\nThis feature makes event dispatching inside event receivers almost trivially simple\n as demonstrated by the DebugCalculator.\n\n## Emerging Patterns\n\nOriginally I was going to dive into the implementation details of the channel but\n I think I'll postpone that into a separate posting. If you are of the impatient type,\n [Binkley's Blog](http://binkley.blogspot.com/2004_08_01_binkley_archive.html#109193832630412000) gives you a good idea. He also converted the channel to J2SE5.0 using generics.\n\ni was particularly interesting to see what kind of common patterns would emerge given\n our basic architectural style. I intentionally held back on giving everybody a copy\n of [my book](../eaipatterns.html) and say \"Hey, use these patterns!\". In the end I was even more pleasantly surprised\n that the calculators essentially fell into a handful of pattern categories in my book\n (see figure).\n\nThe first \"bank\" of calculators acts as [Enrichers](../DataEnricher.html). These calculators access the database to retrieve context data that is required\n to compute the scores. The Enrichers publish the context data to the event channel.\n The next stage is a set of [Message Translators](../MessageTranslator.html) that use both the context data and the event data to compute basic scores. These\n basic scores are then republished as events, which are consumed by a bank of [Aggregators](../Aggregator.html). The Aggregators republish aggregated data to be transformed by another set of transformers.\n It was interesting to observe that this staged architecture was not clear at the beginning\n but evolved over time.\n\n## Granularity\n\nOne important design decision was how small or how big to make the calculators. Smaller\n calculators would improve composability and testability but could also cause unnecessary\n overhead and complexity. It turned out that the message channel overhead was quite\n insignificant. Therefore, we decided to make the calculators as small and as generic\n as we could. This drastically improved testability. For example, a score calculator\n would not retrieve its own context data from the database but instead subscribe to\n an event from a separate Enricher. This allowed us to feed mock context data to the\n calculator during unit tests and kept these tests database independent. This realization\n prompted my earlier posting on [Inversion of Control](13_ioc.html).\n\nHowever, having many calculators also caused some pain. The number of event types\n exploded as the event type was our only routing mechanism. This was partly due to\n the fact that we sent all events on a single channel. Using different channels for\n different stages would have made life a little simpler. Also, having multiple inheritance\n could have been helpful. We briefly considered routing events based on multiple marker\n interfaces attached to events but the production deadline kept us from exploring\n this option further.\n\n## Instant Replay\n\nOne of the coolest features this architecture enabled was the ability to replay events.\n None of the intermediate calculators persist any state. We do, however, persist each\n original user event in the database (the exiting application already did this for\n us). This allowed us to largely ignore transactions, which can be painful in event-driven\n environments. Also, in the event of failure we could simple re-instantiate all calculators\n and replay all events in the user event log. All calculators would then rebuild their\n state based on the original message stream. This feature came in very handy.\n\n## Other Lessons Learned\n\n- **Make calculators small** -- see above.\n- **Keep event classes simple** -- As events are veritable Java objects it is tempting to load them up with neat\n helper functions. Before you know it they are full-fledged business objects. This\n turned out to be a bad idea. The event classes are the primary coupling points between\n calculators. Having complex events made it much more likely that changes in one calculator\n cascaded down the chain and forced us to change other calculators as well.\n- **Unit testing is a breeze** -- The loosely coupled nature of the calculators made it trivial to provide mocks\n and feed mock data to a unit under test. Since our channels are synchronous we did\n not have to worry about timing conditions during testing. If we used asynchronous\n channels I would recommend to replace the channel implementation with a synchronous\n one during unit testing.\n- **Add rather than replace** -- The publish-subscribe nature makes it very easy to add a parallel branch to existing\n code. So major refactorings are more easily completed by adding a parallel set of\n calculators to the existing event infrastructure. Then you can compare results side\n by side and ultimately shut off the original message path. This is essentially the\n strategy Martin Fowler describes as [Strangler Application](http://www.martinfowler.com/bliki/StranglerApplication.html) .\n- **Don't underestimate integration testing** -- Loosely coupled systems allow individual components to be unit tested very thoroughly\n because most external dependencies can be injected via events. However, loosely coupled\n architectures tend to suffer from more integration testing issues as components can\n make fewer assumptions about each other. Fewer assumptions and less compile-time validation\n mean more problems at integration time. Make sure to write some automated end-to-end\n tests. Otherwise you run the risk of having a collection of bug-free calculators,\n which in aggregate do nothing particularly useful.\n- **Build tools** -- Loosely coupled solutions allow (one might say even encourage) independent variability.\n This is a great feature but also means that before long you are not sure anymore what\n you actually built. Automated tools to analyze and visualize the active configuration\n can be very, very useful and are often not very difficult to build (see [Visualizing Dependencies](11_dependencies.html) ).\n- **Careful with sequencing assumptions** -- Our channels had a specific depth-first sequencing property. We had to be careful\n not to rely on this as a port to asynchronous events would no longer preserve this\n property. Therefore, calculators should make the minimum amount of assumptions about\n event order. For example, lazy initialization is often better than relying on another\n event to trigger initialization. Binkley also posted an interesting entry on the breadth-first\n vs. depth-first event processing: [Turning 90 degrees](http://binkley.blogspot.com/2004_08_01_binkley_archive.html#109313937627982681) .\n\n## Look Ahead\n\nWhat else would we like to do if time permits? I would definitely recommend a Visualization\n engine like [this one](11_dependencies.html). Generating HTML like my good old [TibDoc](http://www.hohpe.com/Gregor/Work/portfolio.html) would also be a great troubleshooting tool (on of these days I should post sample\n output of that tool...)\n\nThe next logical step would be to replace the synchronous intra-jvm channel implementation\n with \"real\" JMS channels. This would carry more messaging overhead but allows us to\n scale out enormously. It would be interesting to see whether it is better to cluster\n certain types of calculators on one set of machines (SEDA style) or run a whole calculator\n chain on each machine and load balance (with session stickiness) across them. My intuition\n tells me SEDA but since out calculators are small the messaging overhead might be\n prohibitive. As with any performance tuning only a real experiment will tell.\n\nNext time: the channel implementation in Java.\n\n*Share:*\n\n*Follow:* [Follow @ghohpe](https://twitter.com/ghohpe) [SUBSCRIBE TO FEED](../ramblings.rss)\n\n*More On:* [DESIGN](/ramblings_design.html) [MESSAGING](/ramblings_messaging.html) [ALL RAMBLINGS](../ramblings.html)\n\nGregor is a cloud architect and author. He is a frequent speaker on asynchronous messaging,\n IT strategy, and cloud.", "znaku_textu": 15333, "slov": 2290, "odkazu": 57, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/ramblings/14_edainjvm.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 06:54:48", "sha256": "1d42ac3f2e29e1acadc3dc267bb561a925d3670225e05d7db9ad050056480e7c", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://architectelevator.com/blog", "http://activemq.codehaus.org/", "http://java.sun.com/j2se/1.5.0/docs/api/java/util/concurrent/package-summary.html", "http://altair.cs.oswego.edu/pipermail/concurrency-interest/2004-September/001035.html", "http://binkley.blogspot.com/2004_08_01_binkley_archive.html", "http://www.martinfowler.com/bliki/StranglerApplication.html", "http://www.hohpe.com/Gregor/Work/portfolio.html", "https://twitter.com/share", "https://twitter.com/ghohpe", "https://leanpub.com/37things"]} {"url": "https://www.enterpriseintegrationpatterns.com/ramblings/15_indigo.html", "titulek": "Indigo Design Preview - Enterprise Integration Patterns", "h1": "Indigo Design Preview", "popis": "I just attended the Indigo Strategic Design Review in Redmond", "klicova_slova": "", "kanonicka": "", "jazyk": "en_US", "robots_meta": "", "og": {"og:type": "article", "og:locale": "en_US", "og:site_name": "Enterprise Integration Patterns", "og:title": "Indigo Design Preview", "og:description": "I just attended the Indigo Strategic Design Review in Redmond", "og:url": "https://www.enterpriseintegrationpatterns.com/ramblings/15_indigo.html"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Indigo Design Preview"}], "markdown": "Gregor's Ramblings\n\n---\n\n# Indigo Design Preview\n\nOctober 8, 2004\n\nFind my posts on IT strategy, enterprise architecture, and digital transformation\n at [ArchitectElevator.com](https://architectelevator.com/blog).\n\nIt appears that I did ramble a bit too much in detail about the design review. As\n a result, the Indigo product management team has asked me to take the posting down.\n I asked them whether it is OK to leave some portions here, so hopefully we can find\n a happy compromise. Otherwise we'll have to wait for the public beta some time next\n year. :-(\n\nI just saw on [Artima](http://www.artima.com/forums/flat.jsp?forum=152&thread=75185) that Don Box had even linked to this entry but now it seems that his posting got\n pulled off-line as well. And I was just going to celebrate my fame (by virtue of\n being a Don link!).\n\n*Share:*\n\n*Follow:* [Follow @ghohpe](https://twitter.com/ghohpe) [SUBSCRIBE TO FEED](../ramblings.rss)\n\n*More On:* [ALL RAMBLINGS](../ramblings.html)\n\nGregor is a cloud architect and author. He is a frequent speaker on asynchronous messaging,\n IT strategy, and cloud.", "znaku_textu": 1086, "slov": 161, "odkazu": 44, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/ramblings/15_indigo.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 06:54:48", "sha256": "19ff756e1a7004c954819bb8491c3bb300662eec96aea0af743131ad528edbce", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://architectelevator.com/blog", "http://www.artima.com/forums/flat.jsp?forum=152&thread=75185", "https://twitter.com/share", "https://twitter.com/ghohpe", "https://leanpub.com/37things"]} {"url": "https://www.enterpriseintegrationpatterns.com/ramblings/16_patternscomponents.html", "titulek": "Are \"Pattern\" and \"Component\" Antonyms? - Enterprise Integration Patterns", "h1": "Are \"Pattern\" and \"Component\" Antonyms?", "popis": "Last year's OOPSLA tutorial on Enterprise Integration Patterns was quite well received", "klicova_slova": "", "kanonicka": "", "jazyk": "en_US", "robots_meta": "", "og": {"og:type": "article", "og:locale": "en_US", "og:site_name": "Enterprise Integration Patterns", "og:title": "Are \"Pattern\" and \"Component\" Antonyms?", "og:description": "Last year's OOPSLA tutorial on Enterprise Integration Patterns was quite well received", "og:url": "https://www.enterpriseintegrationpatterns.com/ramblings/16_patternscomponents.html"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Are \"Pattern\" and \"Component\" Antonyms?"}, {"uroven": 2, "text": "EAI Patterns Toolkit"}, {"uroven": 2, "text": "Codifying Patterns"}, {"uroven": 2, "text": "Patterns to Components"}, {"uroven": 2, "text": "Example: Splitter"}, {"uroven": 2, "text": "Mixed Success"}, {"uroven": 2, "text": "Next Steps"}], "markdown": "Gregor's Ramblings\n\n---\n\n# Are \"Pattern\" and \"Component\" Antonyms?\n\nOctober 15, 2004\n\nFind my posts on IT strategy, enterprise architecture, and digital transformation\n at [ArchitectElevator.com](https://architectelevator.com/blog).\n\n## EAI Patterns Toolkit\n\nAfter last year's OOPSLA my goal was to develop a messaging toolkit that allows people\n to run the patterns from [our book](../eaipatterns.html) and observe a live messaging system in action. Well, it took a bit longer than originally\n expected but I now have a kit that implements about a dozen key patterns as individual\n executables. These executables can be composed into messaging solutions straight from\n the command line or with simple batch scripts. Most components have a cute little\n GUI as shown in the following figure.\n\nThe example domain for the messaging toolkit is a coffee shop where customers place\n orders that are then fulfilled by baristas. Along the way orders can be enriched,\n split, aggregated, resequenced etc. The diagram shows a simple example of a customer\n placing an order, which is split into individual order items by a [Splitter](../Sequencer.html). Two baristas act as [Competing Consumers](../CompetingConsumers.html) to process orders. A Logger displays messages on the orderCompletedChannel. The scenario can be scripted in a simple batch file:\n\n```\nCustomer orderChannel\nSplitter orderChannel orderItemChannel \"/Order/Item\"\nBarista orderItemChannel orderCompletedChannel\nSecondBarista orderItemChannel orderCompletedChannel\nLogger orderCompletedChannel\n```\n\nThese scripts make up a nice Domain-Specific Language which is based on the vocabulary\n in our book. The free composability makes it interesting in fun to build larger messaging\n solutions from these relatively simple building blocks.\n\n## Codifying Patterns\n\nTypically, when people ask me about \"codifying\" or \"toolifying\" patterns my first\n reaction is one of skepticism. Patterns are meant to be a human-to-human communication\n mechanism, not a human-to-machine mechanism. After all, I have pointed many people\n to the fact that a pattern is not just the piece of code in the example section. It's\n the context-problem-forces-solution combination that makes patterns so useful. A pattern\n applies most of the time, but not always. Patterns can be combined and morphed. Most\n patterns lead to multiple different implementation strategies. And last but not least\n a pattern has to be realized, i.e. mapped into a specific programming environment\n to be used.\n\nThis does not mean that patterns cannot be incorporated into a tool. Many tools and\n libraries embody many successful patterns. Almost every messaging library supports\n [Competing Consumers](../CompetingConsumers.html), [Event-driven Consumers](../EventDrivenConsumer.html) and many more patterns. Of course patterns are meant to be included in all kinds\n of software, including libraries and tools. My skepticism usually arises when someone\n mentions notion of programming in patterns a la \"right click and make a factory\" or\n when someone plans to map patters to a strict metamodel like the [OMG](http://www.omg.org)'s MOF (meta-object facility). The power of patterns lies in the fact that they can\n be a little bit fuzzy around the edges and constraining them into a specific model\n seems to me like sticking a wild animal into a cage. They'll likely survive but they\n will definitely not flourish.\n\nWith all this in the back of my mind, now I sit here with a whole collection of codified\n patterns and am having a ball with it. Did I forget to eat my proverbial dog food\n or did I have pre-established opinions that were not grounded in actual experience?\n\n## Patterns to Components\n\nThere is no doubt that implementing the patterns in my messaging toolkit required\n me to tighten up the \"fuzziness\" of the patterns. Each component has to have a very\n specific (read embedded in code) behavior and has to have well defined input and output\n ports. There is also a specific command line syntax for each component.\n\nSo what is the secret sauce here? I think there are a number of specific reasons that\n the patterns I chose (only about 10 of 65 patterns are implemented) are easily translated\n into components. First, I fixed a lot of the technical environment parameters: the\n components only run on a .NET platform (most likely Windows), require MSMQ, can only\n execute on a single machine, and process only XML messages. As all pattern components\n share these properties a consistent realization of a collection of patterns seems\n a lot more likely.\n\nBut I believe that other forces are at work. One definite contributor to the easy\n conversion of these patterns into components is the [Pipes-and-Filters](../PipesAndFilters.html) architectural style. This style's strongest asset is its simplicity and the easy\n *composability* of individual components. This composability allows us to create larger solutions\n once we have morphed a set of base patterns into components. Object-oriented systems\n expose much more complex (and also more powerful) ways of composing patterns that\n do not necessary make it that easy to combine patterns without overlap between them.\n\nI believe one last reason the conversion from pattern to component worked out well\n in this case is due to the fact that I deliberately choose a family of patterns with\n well-defined variability points. Each pattern exhibits certain givens while other\n elements are up to the specific instantiation of the pattern. We call these elements\n variability points.\n\nMany of the routing patterns are very close descendants of the basic router. They\n look at a message, make a simple decision and republish the message. The variability\n point is how the router makes the decision, for example which field of the incoming\n message it looks at. It turns out that the variability points for most routing patterns\n are relatively simple expressions. Fixing the document format to XML allows us to\n codify the expressions in XPath. This means that the behavior of the pattern can be\n fixed as long as the expressions are variable. This is exactly what happens in case\n of a [Splitter](../Sequencer.html) or [Content-Based Router](../ContentBasedRouter.html). Essentially, we use a general purpose programming language (C# in this example)\n to codify the general behavior of the pattern (and all the fluff like cutesy user\n interfaces). Then we rely on a more domain-specific programming (XPath in this example)\n to codify the variability points. Because the domain-specific language is interpreted\n it is easy to allow it to be specified on the command line. Voila, we have converted\n a pattern into a generic enough component.\n\nLikely, we could have created our own domain-specific language to express the variability\n points or use a popular scripting language like Ruby. However, since our XML documents\n are simple, using XPath to express the variability seemed simple and convenient.\n\n## Example: Splitter\n\nTo demonstrate how this reasoning translated into practice, let's look at the (abbreviated)\n implementation of the [Splitter](../Sequencer.html) component. The core code of the Splitter is quite compact, once again benefiting\n from imposing the proper constraints (XML only, .NET only, using a highly abstracted\n messaging library):\n\n```\npublic class SplitterComponent : SimpleFilter\n{\n protected string nodePath;\n\n public SplitterComponent(IMessageReceiver input, IMessageSender output, string nodePath) : base (input, output)\n {\n this.nodePath = nodePath;\n }\n\n protected override void OnMessage(XmlDocument message)\n {\n XmlNodeList nodeList = message.SelectNodes(nodePath);\n foreach (XmlNode node in nodeList)\n {\n XmlDocument splitDoc = new XmlDocument();\n splitDoc.AppendChild(splitDoc.ImportNode(node, true));\n output.Send(splitDoc);\n }\n }\n}\n```\n\nThe run-time environment provides the Splitter class with an input channel, an output channel and an XPath expression that specifies\n where to slice the incoming document. The remainder of the code is little more than\n a loop over an XML node set.\n\nNow is this the Splitter pattern? Not really. It is one possible implementation of a Splitter in a specific\n run-time environment. Consequently, if I constrain my world to match the specific\n constraints of the run-time environment assumptions baked into this specific implementation\n of a Splitter, I can then view the executable component as my \"Splitter\". This is what happened\n in case of the messaging toolkit.\n\n## Mixed Success\n\nNot all routing patterns were that easily converted into components. For example,\n an [Aggregator](../Aggregator.html) has very well defined variability points (Correlation, Completeness Condition and\n Aggregation Algorithms), but not all of these are as easily expressed in a higher-level\n domain-specific language. Correlation can easily be expressed using XPath if all documents\n are XML, but the completeness condition and the aggregation algorithm pretty much\n have to be expressed in a more general purpose programming language. Because I am\n using a compiled language, I had to hard-code this part of the logic. I still isolated\n it from the core Aggregator logic via a generic interface (any comments abut the I...\n naming convention for interface belong into another forum...).\n\n```\npublic interface IAggregate\n{\n void AddMessage(XmlDocument message);\n bool IsComplete();\n XmlDocument GetResultMessage();\n}\n```\n\nIt is easy to see that the interface represents the remaining variability points of\n an [Aggregator](../Aggregator.html) (Correlation is taken care of by an XPath command line parameter). However, the\n relationship between Aggregator and Completeness Condition is now made at compile-time\n as opposed to composition time.\n\n## Next Steps\n\nI hope this example sheds some light on the sometimes controversial topic of codifying\n patterns. Given the right constraints and a limited scope (a the messaging toolkit\n is only for educational purposes and contains only a subset of patterns) turning patterns\n into composable components can be a great learning tool. However, using them as a\n generic programming construct is more dangerous. There is a reason these elements\n are patterns and not a coding library. Granted, as patterns mature, they ultimately\n tend to be incorporated into libraries. This usually happens to specific patterns\n in a narrow domain. For example, many UI frameworks are based on the Model-View Controller\n pattern. However, using patterns as a high-level generic programming construct a\n la MDA is in my opinion still fraught with many problems and unanswered questions.\n Alas, I have received a request from the [Integration Consortium](http://www.eaiic.org) to map the patterns in out book to the MOF. My general attitude is that skepticism\n is healthy but you never know until you try. Now I just need to find someone who understands\n the meta-meta model to do the work. That sounds like a meta-meta-meta problem :-)\n\n*Share:*\n\n*Follow:* [Follow @ghohpe](https://twitter.com/ghohpe) [SUBSCRIBE TO FEED](../ramblings.rss)\n\n*More On:* [PATTERNS](/ramblings_patterns.html) [ALL RAMBLINGS](../ramblings.html)\n\nGregor is a cloud architect and author. He is a frequent speaker on asynchronous messaging,\n IT strategy, and cloud.", "znaku_textu": 11221, "slov": 1683, "odkazu": 52, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/ramblings/16_patternscomponents.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 06:54:46", "sha256": "8fcd6119369f7ba272c358f5f3f1c7ebbbc087bfb623cdfbb4677447e0591a65", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://architectelevator.com/blog", "http://www.omg.org/", "http://www.eaiic.org/", "https://twitter.com/share", "https://twitter.com/ghohpe", "https://leanpub.com/37things"]} {"url": "https://www.enterpriseintegrationpatterns.com/ramblings/17_acmconference.html", "titulek": "ACM Middleware Conference: Pub-Sub and Related Topics - Enterprise Integration Patterns", "h1": "ACM Middleware Conference: Pub-Sub and Related Topics", "popis": "I just attended the ACM Middleware conference in Toronto (I thought a 1/2 day tutorial in integration patterns)", "klicova_slova": "", "kanonicka": "", "jazyk": "en_US", "robots_meta": "", "og": {"og:type": "article", "og:locale": "en_US", "og:site_name": "Enterprise Integration Patterns", "og:title": "ACM Middleware Conference: Pub-Sub and Related Topics", "og:description": "I just attended the ACM Middleware conference in Toronto (I thought a 1/2 day tutorial in integration patterns)", "og:url": "https://www.enterpriseintegrationpatterns.com/ramblings/17_acmconference.html"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "ACM Middleware Conference: Pub-Sub and Related Topics"}, {"uroven": 2, "text": "Patterns vs. Research Papers"}, {"uroven": 2, "text": "Publish-Subscribe"}, {"uroven": 2, "text": "Languages"}, {"uroven": 2, "text": "Conclusion"}], "markdown": "Gregor's Ramblings\n\n---\n\n# ACM Middleware Conference: Pub-Sub and Related Topics\n\nOctober 25, 2004\n\nFind my posts on IT strategy, enterprise architecture, and digital transformation\n at [ArchitectElevator.com](https://architectelevator.com/blog).\n\n## Patterns vs. Research Papers\n\nAfter I finished teaching my tutorial someone came up an essentially said that the\n patterns are not that useful for their work because they are mostly old stuff. For\n example, topic-based publish-subscribe is soo 1999 and not really interesting anymore.\n This discussion reminded of me of one important difference between patterns authors\n and research paper / thesis authors. The goal of pattern authors is to find common\n themes in existing usage and to make them easily understood. The goal of research\n paper authors is curiously opposite. They need to find something that no one has done\n yet and make it appear very different from everything else. So I guess you can expect\n s little bit of natural friction between the two groups. Cynics might say that patterns\n book only contain stuff you already knew while research papers are never interested\n in something that is actually useful in practice.\n\nStill, I like to attend more academic conferences from time to time. First, JavaOne\n et al often degrade into a series of advertorials so it is refreshing to see less\n snazzy but more information rich presentations. It is also interesting to see what\n the researchers are working on because in a year or two some of that work might find\n its way into commercial products. So it's a little bit like looking into the future.\n So what were some of the current research topics that were discussed?\n\n## Publish-Subscribe\n\nOne interesting track focused on publish-subscribe messaging. Most of the talks focused\n on efficient implementations of content-based publish-subscribe. A [Publish-Subscribe Channel](../PublishSubscribeChannel.html) sends a copy of a message to multiple recipients, based on the subscription preferences\n of the subscribers. It can be useful to distinguish levels of sophistication for subscribers\n to express their subscription preferences:\n\n- **Simple Topics** . The simplest way to subscribe to messages is to specify a topic. Any message published\n to this specific topic will be sent to the subscriber. The topic is often expressed\n as a simple string. Within the context of our book we would actually consider each\n topic a logical [Channel](../MessageChannel.html) .\n- **Topics with Wildcards** . Wildcards are a simple enhancement to simple topics. Most of these systems use the\n topic string to represent a hierarchy of individual \"topic nodes\". For example, a\n message might be sent to the topic \"prod.customer.new\" to indicate that the message\n is part of a production system, relates to customer data, and indicates that this\n message is the result of a new customer being added. Subscribers can subscribe to\n \"prod.customer.*\" to receive all messages published to topics that start with \"prod.customer\",\n such as \"prod.customer.new\" or \"prod.customer.delete\". This type of publish-subscribe\n messaging is quite common, for example in TIBCO Rendezvous. Interestingly, the JMS\n specification does not define such a topic hierarchy but virtually all JMS implementations\n support it with slightly varying syntax notations.\n- **Content-based Subscription** . Not all ontologies are easily represented in a hierarchy tree as the \"Topics with\n Wildcards\" approach requires. A topic tree forces all messages to be attached to a\n hierarchy. If a message is identified by a number of independent fields and values,\n this mapping can be unnatural. For example, if messages are meant to be routed by\n business divisions (operations, finance, HR, etc) and environment (production, testing,\n etc), should business division sit above environment in the tree or below? They are\n really two independent dimensions of the messaging space. Content-based subscriptions\n support this model by allowing subscribers to express their subscription preferences\n by boolean expressions on fields rather than a topic hierarchy. For example, a subscriber\n could subscribe to \" Division='HR' and Environment='Production' \". Any message whose\n fields match this expression will be routed to the subscriber. The JMS API supports\n this concept via [Message Selectors](http://java.sun.com/j2ee/sdk_1.3/techdocs/api/javax/jms/Message.html) (the expressions are limited to header and property fields). Message Selectors allow\n subscribers to specify an expression to apply against incoming messages. Applying\n Message Selectors against a publish-subscribe channel (a JMS topic) results in the\n same semantics as content-based publish-subscribe. However, most implementations implement\n this functionality in the receiver using a reactive filtering approach as opposed\n to in the messaging infrastructure. This implementation is naturally inefficient because\n a message has to be delivered to the end point just to find out that the message does\n not match the expression. Most of the talks at ACM Middleware were concerned with\n how to make this implementation more efficient.\n- **Content-based Subscription with Aggregation** . When using content-based subscriptions it is likely that a message fulfills part\n of a condition but does not contain the fields related to another part of the condition.\n Advanced experimental middleware can store this partial message and then wait for\n another message that might fulfil another part of the expression. For example, an\n endpoint can subscribe to \" A='X' and B='Y' \", with both A and B being optional fields.\n Of one message contains A='X' and another B='Y', the messaging infrastructure can\n wait for both messages and merge their content. Essentially, the messaging infrastructure\n implements an [Aggregator](../Aggregator.html) . The completeness condition of the Aggregator is to fulfill all pieces of the expression.\n Naturally, there are a number of issues to be resolved. For example, what if a message\n fulfils one part of the expression but violates another? How should we merge messages\n if each message could have a different value for the same field? What to do if we\n receive multiple messages that fulfill the same partial expression while waiting for\n another part of the expression? Should we keep all messages or just the first or the\n last? These are exactly the issues the research papers deal with.\n\n## Languages\n\nAnother discussion we had at the conference was one of languages. Academics often\n like to create languages and new language formalisms. New languages can be powerful\n as they can cleanly represent a new concept. However, new language syntax is often\n a big deterrent to commercial developers. Language syntax is an inconvenience in the\n first place (who needs semicolons??) and learning a new one makes it only more frustrating.\n Also, development tools for mainstream all-purpose languages like Java or C# have\n become so powerful (Refactoring, syntax highlighting, auto-correct, auto-format) that\n shifting back to vi or Notepad is only worth it if the new language offers a huge\n improvement in productivity. As a result I think that the bar to adoption of new languages\n in commercial environments is quite high. Another big factor is skill set portability.\n [SeeBeyond](http://www.seebeyond.com) got so much crap from the analysts for its Monk language. Not because Monk is bad\n but because of the cost and risk of training developers in a new language.\n\n## Conclusion\n\nit was fun to attend a more academic conference for a change. I am OOPSLA this week,\n which manages to maintain a good balance between academics (published papers) and\n practitioners (tutorials, practitioner reports, panels etc).\n\n*Share:*\n\n*Follow:* [Follow @ghohpe](https://twitter.com/ghohpe) [SUBSCRIBE TO FEED](../ramblings.rss)\n\n*More On:* [EVENTS](/ramblings_events.html) [ALL RAMBLINGS](../ramblings.html)\n\nGregor is a cloud architect and author. He is a frequent speaker on asynchronous messaging,\n IT strategy, and cloud.", "znaku_textu": 8018, "slov": 1209, "odkazu": 48, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/ramblings/17_acmconference.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 06:54:46", "sha256": "66f2dc3dc1ee5b6c452238c614b91128535f6bced71765680873995c89595693", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://architectelevator.com/blog", "http://java.sun.com/j2ee/sdk_1.3/techdocs/api/javax/jms/Message.html", "http://www.seebeyond.com/", "https://twitter.com/share", "https://twitter.com/ghohpe", "https://leanpub.com/37things"]} {"url": "https://www.enterpriseintegrationpatterns.com/ramblings/18_starbucks.html", "titulek": "Starbucks Does Not Use Two-Phase Commit - Enterprise Integration Patterns", "h1": "Starbucks Does Not Use Two-Phase Commit", "popis": "People often criticize asynchronous messaging solutions as too complicated and cumbersome", "klicova_slova": "", "kanonicka": "", "jazyk": "en_US", "robots_meta": "", "og": {"og:type": "article", "og:locale": "en_US", "og:site_name": "Enterprise Integration Patterns", "og:title": "Starbucks Does Not Use Two-Phase Commit", "og:description": "People often criticize asynchronous messaging solutions as too complicated and cumbersome", "og:url": "https://www.enterpriseintegrationpatterns.com/ramblings/18_starbucks.html"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Starbucks Does Not Use Two-Phase Commit"}, {"uroven": 2, "text": "Hotto Cocoa o Kudasai"}, {"uroven": 2, "text": "Correlation"}, {"uroven": 2, "text": "Exception Handling"}, {"uroven": 2, "text": "Conversations"}, {"uroven": 2, "text": "The Software Architect Elevator"}], "markdown": "Gregor's Ramblings\n\n---\n\n# Starbucks Does Not Use Two-Phase Commit\n\nNovember 19, 2004\n\nFind my posts on IT strategy, enterprise architecture, and digital transformation\n at [ArchitectElevator.com](https://architectelevator.com/blog).\n\n## Hotto Cocoa o Kudasai\n\nI just returned from a 2 week trip to Japan. One of the more familiar sights was the\n ridiculous number of Starbucks (スターバックス) coffee shops, especially around Shinjuku\n and Roppongi. While waiting for my \"Hotto Cocoa\" I started to think about how Starbucks\n processes drink orders. Starbucks, like most other businesses is primarily interested\n in maximizing throughput of orders. More orders equals more revenue. As a result they\n use asynchronous processing. When you place your order the cashier marks a coffee\n cup with your order and places it into the queue. The queue is quite literally a queue\n of coffee cups lined up on top of the espresso machine. This queue decouples cashier\n and barista and allows the cashier to keep taking orders even if the barista is backed\n up for a moment. It allows them to deploy multiple baristas in a [Competing Consumer](../CompetingConsumers.html) scenario if the store gets busy.\n\n## Correlation\n\nBy taking advantage of an asynchronous approach Starbucks also has to deal with the\n same challenges that asynchrony inherently brings. Take for example, correlation.\n Drink orders are not necessarily completed in the order they were placed. This can\n happen for two reasons. First, multiple baristas may be processing orders using different\n equipment. Blended drinks may take longer than a drip coffee. Second, baristas may\n make multiple drinks in one batch to optimize processing time. As a result, Starbucks\n has a correlation problem. Drinks are delivered out of sequence and need to be matched\n up to the correct customer. Starbucks solves the problem with the same \"pattern\" we\n use in messaging architectures -- they use a [Correlation Identifier](../CorrelationIdentifier.html). In the US, most Starbucks use an explicit correlation identifier by writing your\n name on the cup and calling it out when the drink is complete. In other countries,\n you have to correlate by the type of drink.\n\n## Exception Handling\n\nException handling in asynchronous messaging scenarios can be difficult. If the real\n world writes the best stories maybe we can learn something by watching how Starbucks\n deals with exceptions. What do they do if you can't pay? They will toss the drink\n if it has already been made or otherwise pull your cup from the \"queue\". If they deliver\n you a drink that is incorrect or nonsatisfactory they will remake it. If the machine\n breaks down and they cannot make your drink they will refund your money. Each of these\n scenarios describes a different, but common error handling strategy:\n\n- **Write-off** - This error handling strategy is the simplest of all: do nothing. Or discard what\n you have done. This might seem like a bad plan but in the reality of business this\n option might be acceptable. If the loss is small it might be more expensive to build\n an error correction solution than to just let things be. For example, I worked for\n a number of ISP providers who would chose this approach when there was an error in\n the billing / provisioning cycle. As a result, a customer might end up with active\n service but would not get billed. The revenue loss was small enough to allow the business\n to operate in this way. Periodically, they would run reconciliation reports to detect\n the \"free\" accounts and close them.\n- **Retry** - When some operations of a larger group (i.e. \"transaction\") fail, we have essentially\n two choices: undo the ones that are already done or retry the ones that failed. Retry\n is a plausible option if there is a realistic chance that the retry will actually\n succeed. For example, if a business rule is violated it is unlikely a retry will succeed.\n However, if an external system is not available a retry might well be successful.\n A special case is a retry with [Idempotent Receiver](../IdempotentReceiver.html) . In this case we can simply retry all operations since the successful receivers will\n ignore duplicate messages.\n- **Compensating Action** - The last option is to undo operations that were already completed to put the system\n back into a consistent state. Such \"compensating actions\" work well for example if\n we deal with monetary systems where we can recredit money that has been debited.\n\nAll of these strategies are different than a two-phase commit that relies on separate\n prepare and execute steps. In the Starbucks example, a two-phase commit would equate\n to waiting at the cashier with the receipt and the money on the table until the drink\n is finished. Then, the drink would be added to the mix. Finally the money, receipt\n and drink would change hands in one swoop. Neither the cashier nor the customer would\n be able to leave until the \"transaction\" is completed. Using such a two-phase-commit\n approach would certainly kill Starbucks' business because the number of customers\n they can serve within a certain time interval would decrease dramatically. This is\n a good reminder that a two-phase-commit can make life a lot simpler but it can also\n hurt the free flow of messages (and therefore the scalability) because it has to maintain\n stateful transaction resources across the flow of multiple, asynchronous actions.\n\n## Conversations\n\nThe coffee shop interaction is also a good example of a simple, but common [Conversation](09_correlation.html) pattern. The interaction between two parties (customer and coffee shop) consists\n of a short synchronous interaction (ordering and paying) and a longer, asynchronous\n interaction (making and receiving the drink). This type of conversation is quite common\n in purchasing scenarios. For example, when placing an order on Amazon the short synchronous\n interaction assigns an order number and all subsequent steps (charging credit card,\n packaging, shipping) are done asynchronously. You are notified via e-mail (asynchronous)\n when the additional steps complete. If anything goes wrong, Amazon usually compensates\n (refund to credit card) or retries (resend lost goods).\n\nIn summary we can see that the real world is often asynchronous. Our daily lives consists\n of many coordinated, but asynchronous interactions (reading and replying to e-mail,\n buying coffee etc). This means that an asynchronous messaging architecture can often\n be a natural way to model these types of interactions. It also means that often we\n can look at daily life to help design successful messaging solutions. Domo arigato\n gozaimasu!\n\n## The Software Architect Elevator\n\nAn edited version of this article and 40 other insights into redefining the role of\n the architect for the digital world are part of my new book [The Software Architect Elevator](https://amzn.to/3egsIr5). Become a better architect by moving beyond UML and architectural styles to effect\n lasting change onto organizations.\n\n*Share:*\n\n*Follow:* [Follow @ghohpe](https://twitter.com/ghohpe) [SUBSCRIBE TO FEED](../ramblings.rss)\n\n*More On:* [DESIGN](/ramblings_design.html) [CONVERSATIONS](/ramblings_conversations.html) [ALL RAMBLINGS](../ramblings.html)\n\nGregor is a cloud architect and author. He is a frequent speaker on asynchronous messaging,\n IT strategy, and cloud.", "znaku_textu": 7299, "slov": 1134, "odkazu": 48, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/ramblings/18_starbucks.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 06:53:22", "sha256": "ef5d87c1e1f66a25431a3ef0b6d790cc2e149eec6f379ef320732f66f3ce235b", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://architectelevator.com/blog", "https://amzn.to/3egsIr5", "https://twitter.com/share", "https://twitter.com/ghohpe", "https://leanpub.com/37things"]} {"url": "https://www.enterpriseintegrationpatterns.com/ramblings/19_composing.html", "titulek": "Good Composers are Few and Far in Between - Enterprise Integration Patterns", "h1": "Good Composers are Few and Far in Between", "popis": "Loosely coupled architectures are often portrayed as the holy grail of architecture", "klicova_slova": "", "kanonicka": "", "jazyk": "en_US", "robots_meta": "", "og": {"og:type": "article", "og:locale": "en_US", "og:site_name": "Enterprise Integration Patterns", "og:title": "Good Composers are Few and Far in Between", "og:description": "Loosely coupled architectures are often portrayed as the holy grail of architecture", "og:url": "https://www.enterpriseintegrationpatterns.com/ramblings/19_composing.html"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Good Composers are Few and Far in Between"}, {"uroven": 2, "text": "To Couple or Not to Couple"}, {"uroven": 2, "text": "Composability"}, {"uroven": 2, "text": "Integration Testing"}, {"uroven": 2, "text": "New Programming Model"}, {"uroven": 2, "text": "Validation Rules"}, {"uroven": 2, "text": "Conclusion"}], "markdown": "Gregor's Ramblings\n\n---\n\n# Good Composers are Few and Far in Between\n\nNovember 30, 2004\n\nFind my posts on IT strategy, enterprise architecture, and digital transformation\n at [ArchitectElevator.com](https://architectelevator.com/blog).\n\n## To Couple or Not to Couple\n\nThere is a lot of debate about coupling these days. In fact, there is enough to be\n said about this topic that I'll leave most of it for a separate posting. Let it suffice\n to say that in my opinion coupling is a measure of dependency between systems. [David Orchard](http://www.pacificspirit.com/blog/) has given us a nice definition of the ultimate loosely coupled solution by stating:\n \"How do you make two systems loosely coupled? Don't connect them!\" I believe one\n of the reasons we are having so many debates about coupling is due to the fact that\n we more commonly connect systems that were not necessarily designed to be connected\n in the first place. Naturally, the resulting debate is how much dependency and hence\n how much coupling to introduce between the systems.\n\nAlas, there is rarely one right answer in software architecture and coupling is no\n exception. More coupling gives us efficiency and simplicity but can also introduce\n rigidity and brittleness. One example of generally more loosely coupled architectures\n are event-driven systems. These systems consist of a collection of individual processing\n elements that respond to incoming events. When a processing element receives an event\n message it perform its designated function and publishes one or more resulting events.\n These events can then be picked up by other processing nodes. A complete solution\n is created by composing the individual processing elements into a larger interconnected\n system (see figure).\n\n## Composability\n\nOne of the advantages of composability is that the processing elements can be reused\n in various constellations because the elements do not make any direct assumptions\n about each other. This helps with reuse and provides flexibility to support future\n requirements. For example, it is quite easy to interject a new processing node between\n two existing nodes. But this flexibility also has a dark side ([hear Darth Vader breathe](../img/vader.wav)). We built flexibility into the system by loosening the constraints on the system\n composition. This gives us the ability to recompose the system according to future\n needs. But this also means that the system has fewer means of detecting our mistakes.\n For example, we might have composed something that is perfectly valid according to\n the loosely coupled architecture but that does not actually do anything useful. For\n example, a processing element may listen for events that are never published. Or,\n the type of message on a channel might not match what the element expects.\n\n## Integration Testing\n\nAs a result, integration testing is more critical than ever with loosely coupled,\n composable systems. We learned that lesson ourselves on a number of projects. The\n story goes kinda like this: Each component is thoroughly unit tested (for more on\n messaging and unit testing see [Dependency Injection in Messaging Architectures](13_ioc.html)) and produces the coveted green bar. However, the actual system exhibits fatal flaws,\n a popular one being a system that does plain nothing. Most of the time this happens\n because the individual components were improperly composed. We need to remind ourselves\n that in most systems 95% of all compositions don't actually do anything useful. However,\n as far as the flexible architecture is concerned, they are perfectly valid.\n\nThis implies that we need to think carefully about validating the composability as\n well as the actual composition of the individual processing elements. Neither one\n is a trivial task. Composability implies that individual processing elements do not\n make any undue assumptions about the actual composition. Often this cannot be validated\n by traditional testing because composability implies being able to use the component\n in unforeseen scenarios. Naturally, it is difficult to test explicitly for unforeseen\n scenarios. Instead, we often have to use code analysis or inspection to make any statements\n about composability. One of the biggest hindrances to composability are hidden assumptions.\n Hidden assumptions are often unavoidable but can also introduce a glut of problems.\n For example, if one component stores data in a central database that is read by another\n component, we introduced an \"out of band\" dependency between the two components. The\n main issue is that this dependency is not explicitly represented anywhere in the system\n and is often not detected until run-time.\n\n## New Programming Model\n\nTesting the actual composition of the individual elements is another important part\n of validating the system. This type of testing can be categorized as integration testing\n and sits in between unit testing and true functional (i.e. user) testing. This type\n of testing is important to validate that the chosen composition of the individual\n elements performs the desired functions. It typically does so by channeling test data\n into the system and comparing actual with expected results. Luckily, loosely coupled\n systems generally make it quite easy to inject test data so the mechanics of these\n test are quite simple. However, achieving proper test coverage can be challenging.\n\nWhen creating these integration tests we need to be aware that with the introduction\n of composability we also introduced a new programming model into the application.\n The compositions follow the rules of a [Pipes-and-Filters](../PipesAndFilters.html) architecture, not an object-oriented architecture. This means that we deal with different\n constructs and rules. This requires us to rethink our approach to testing slightly.\n\n## Validation Rules\n\nTesting in the traditional sense will only perform part of the necessary validation.\n The reason for this is that in traditional programming models (for example, object-oriented\n programming) the compiler already validates a lot of the rules inherent in the programming\n model. For example, syntax errors, referencing an object before creating it etc. Because\n the composition layer follows our own rules, we often need to create our own validations.\n For example, is it valid to have loops? Is it valid to subscribe to an event that\n is never published? Is it valid to publish an event that no one subscribes to? Is\n it valid to have multiple subsystems that communicate amongst themselves but not between\n each other?\n\nIt is very useful to have means of inspecting the composition to execute these validation\n rules automatically. Because we can typically represent pipes-and-filters systems\n as a directed graph we can often draw on simple graph algorithms to perform these\n validations. The key is to consolidate information about event publishing and event\n subscription into a simple, central repository of sorts. That can preferably occur\n at design time or alternatively at run-time (for example, through a [Control Bus](../ControlBus.html)). The importance of such validations is underlined by the fact that many architects\n consider the ability to perform automated analysis a key characteristic of an architectural\n style (for example, see [Stylized Architecture, Design Patterns, and Objects](http://www-2.cs.cmu.edu/afs/cs/project/compose/ftp/pdf/ObjPatternsArch-ieee97.pdf)\n ). Once the architectural style is expressed more formally, one can envision actual\n languages that can help express the desired constraints. This might in fact be useful\n in larger systems. Alternatively, we can translate the system structure into a more\n familiar syntax (for example, XML) and the use languages such as XPATH to execute\n the desired validations.\n\nA less formal form of analysis is a visualization of the resulting system, for example\n as described in an [earlier blog entry](11_dependencies.html). In this case, the validation is only half automated because we use human beings\n to assess whether the composition is a good one or not. However, the system automatically\n preprocesses the information such that it is easily understood by human beings. This\n approach often turns out to be a quite reasonable compromise.\n\n## Conclusion\n\nBuilding loosely coupled and composable systems have definite advantages. However,\n we have to keep in mind that such architectures introduce an additional layer, the\n composition layer, into the system. This layer has to be understood and tested separately\n as it often follows different architectural styles and design principles than the\n other layers.\n\n*Share:*\n\n*Follow:* [Follow @ghohpe](https://twitter.com/ghohpe) [SUBSCRIBE TO FEED](../ramblings.rss)\n\n*More On:* [DESIGN](/ramblings_design.html) [ALL RAMBLINGS](../ramblings.html)\n\nGregor is a cloud architect and author. He is a frequent speaker on asynchronous messaging,\n IT strategy, and cloud.", "znaku_textu": 8915, "slov": 1335, "odkazu": 50, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/ramblings/19_composing.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 06:54:45", "sha256": "03a7ab88ae1f190903316e0c7c388a961c26d4d22d844e0cf75e8ee5a6ad4981", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://architectelevator.com/blog", "http://www.pacificspirit.com/blog/", "http://www-2.cs.cmu.edu/afs/cs/project/compose/ftp/pdf/ObjPatternsArch-ieee97.pdf", "https://twitter.com/share", "https://twitter.com/ghohpe", "https://leanpub.com/37things"]} {"url": "https://www.enterpriseintegrationpatterns.com/ramblings/20_statelessness.html", "titulek": "Enemy of the State - Enterprise Integration Patterns", "h1": "Enemy of the State", "popis": "One of my favorite pastimes is to argue with people whether a solution is stateless, whether it should be stateless and what it means to be stateless in the first place", "klicova_slova": "", "kanonicka": "", "jazyk": "en_US", "robots_meta": "", "og": {"og:type": "article", "og:locale": "en_US", "og:site_name": "Enterprise Integration Patterns", "og:title": "Enemy of the State", "og:description": "One of my favorite pastimes is to argue with people whether a solution is stateless, whether it should be stateless and what it means to be stateless in the first place", "og:url": "https://www.enterpriseintegrationpatterns.com/ramblings/20_statelessness.html"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Enemy of the State"}, {"uroven": 2, "text": "State is Like the Matrix"}, {"uroven": 2, "text": "Visible and Invisible State"}, {"uroven": 2, "text": "Recoverable State"}, {"uroven": 2, "text": "Conversation State"}], "markdown": "Gregor's Ramblings\n\n---\n\n# Enemy of the State\n\nDecember 19, 2004\n\nFind my posts on IT strategy, enterprise architecture, and digital transformation\n at [ArchitectElevator.com](https://architectelevator.com/blog).\n\nOne of my favorite pastimes is to argue with people whether a solution is stateless,\n whether it should be stateless and what it means to be stateless in the first place.\n Ideally, the debate would involve alcoholic beverages and the other person would pick\n up the check. After \"loosely coupled\", \"stateless\" must be a close runner-up as the\n ultimate nirvana in buzzword-compliant architectures. It is also equally hotly debated.\n Today, I 'd like to share my view on state and lessness. If you disagree you are welcome\n to argue with me, but you are buying! :-)\n\n## State is Like the Matrix\n\nState is like the Matrix. It is everywhere around us but most of the time you don't\n notice it. Every modern computer is stateful. A Turing machine is stateful, in particular\n the band holds state and the head is at a certain position, which is also state. Every\n modern computer has an instruction counter that points to the next instruction to\n be executed. That is state. Almost every modern machine has a call stack that remembers\n which methods you executed last. That is state, too. I think the last truly \"stateless\"\n computer I can think of are analog computers, wired together from transistors and\n resistors. But even those have a stateful element, the capacitor. So, chances you\n are whatever you build outside of an op-amp, it is stateful. Get over it.\n\nOnce we get this part out of our system, the debate of statelessness becomes a lot\n more productive. So the question is not whether a system has state, but rather:\n\n- Does the state matter?\n- For the state that matters, where is it held?\n\n## Visible and Invisible State\n\nSo I hope we all agree that every modern computer system is stateful. So how can we\n talk about stateless systems? The key is whether the statefulness matters at our level\n of abstraction. If I look at a system from the perspective of service consumers communicating\n with service providers state such as the instruction pointer does not matter. It is\n not relevant to the discussion at the chosen level of abstraction. If I talk about\n designing the thread management part of the operating system in the very same environment,\n then the instruction pointer is a very important piece of state that needs to be stored\n and restored during a task switch. So any debate of statelessness is futile unless\n a clear level of abstraction is set and agreed upon first.\n\n## Recoverable State\n\nOne reason state might be irrelevant is because it is below the agreed upon level\n of abstraction. Another reason state might be irrelevant is because it is easily recoverable.\n Loading a static routing table into a messaging component would fall into such a category.\n If the table is completely static or quasi-static, a component can easily load or\n re-load that table from disk or a database. Holding the table in memory technically\n speaking makes the component stateful, but it does not really matter as the state\n is not impacted by the messages traveling through the component and can be recovered\n at will. If the component shuts down and restarts this extra state has no impact.\n Likewise, if a bank of processing nodes processes incoming messages it does not matter\n which node processes a message because they all loaded the same configuration and\n the configuration is not impacted by past messages consumed by a particular component.\n\n## Conversation State\n\nOne type of state that is likely to be relevant to a messaging system is the conversational\n state. A [Conversation](09_correlation.html) is a sequence of coordinated message exchanges. The conversational state defines\n where in that sequence of message exchanges a conversation is. For example, a conversational\n state could be that component A has made a request and is now waiting for the reply.\n Or, that component A has subscribed to events from component B with the subscription\n due to expire in 10 minutes.\n\nThis state information is quite relevant and typically has to be shared between the\n participants. There are also a number of different places where this state can be\n kept and a discussion of where that should be is in fact quite relevant to designing\n a successful integration or messaging solution. So where could part of this conversational\n state be kept?\n\n**TCP Stack**\n\nOne equally popular and inefficient way to represent the state of the conversation\n is the TCP stack. How so, you might ask. This happens when the architecture (ab)uses\n HTTP-based Web services calls as RPC's: one component invokes a service, holding an\n open HTTP (read TCP) connection. In a service-oriented environment it is likely that\n the service in turn accesses another service. As a result, yet another TCP connection\n is established and held for the duration of this request-reply interaction. Essentially,\n we built some form of distributed call stack via a set of open TCP connections (see\n figure). The TCP stack is chartered with correlating incoming response data packets\n to the right process waiting for a response. The advantage is that the application\n process does not have to worry about [correlation](09_correlation.html). The downside is that we use the TCP stack as a surrogate call stack for a distributed\n system with long-running interactions. This can quickly lead to a huge number of open\n connections, something a TCP stack is usually not designed to handle. Also, we can\n easily imagine that a dropped connection can quickly bring the house of cards down\n because the connections make up the conversation state.\n\n**Message Queues**\n\nIn order to remove the dependency on the TCP stack for state management we can use\n asynchronous message channels to communicate between parties. Message passing is asynchronous,\n so there is no need to keep state in the network connection itself. If the messages\n contain all information necessary for a component to complete a processing step, the\n resulting architecture is a true [Pipes-and-Filters](../PipesAndFilters.html) architecture because no state is shared between the components (\"filters\") outside\n of message passing. This approach makes for a highly scaleable message flow architecture,\n however, real life constraints often often force a compromise on this pure architectural\n style. For example, complex conversations almost always require some state to be kept\n in the endpoints or an explicit conversation coordinator. Also, this approach often\n makes it inefficient to monitor the state of a conversation. Because the state of\n the conversation is represented by a message sitting in a specific message queue,\n each message queue might have to be inspected.\n\n**Shared Blackboard**\n\nA more generic version of a message queue is a shared blackboard or scratchpad. This\n blackboard acts as a shared memory space to allow distributed components to communicate\n with each other. They do so by placing entries in form of tuples into the blackboard.\n The blackboard does not impose an order for entries in the way that a message queue\n does for messages (i.e. FIFO). Recipients simply look for tuples that match their\n specified criteria (typically the type of the object plus and specified public property\n fields). The blackboard will return a reference to any entry that matches the request.\n This architecture is most prominently implemented in [JavaSpaces](http://java.sun.com/docs/books/jini/javaspaces/). The advantage is that the state of the conversation can be more easily obtained\n by inspecting the blackboard. The downside is that a shared blackboard can become\n a bottleneck in a large distributed system.\n\n**In the Endpoints**\n\nIn order to track more complex conversations a portion of the conversation state is\n typically kept in the communication end points. In an asynchronous conversation, each\n conversation partner has to \"remember\" what to do next once a message comes in. This\n implies that the endpoint has to have some concept of how far the conversation is.\n For example, if a component sent a request message it typically knows that it is waiting\n for a reply message. Also, it might keep internal state data to be carried over to\n the processing of the reply message. When the reply message arrives, the component\n uses the [Conversation Identifier](09_correlation.html) to retrieve this state context.\n\n**Conversation Coordinator**\n\nIn more complicated multi-party conversations, a conversation coordinator might be\n added into the mix. The sole role of this coordinator is to track the conversation\n across the multiple parties. In a multi-party conversation each individual participant\n may only have a partial view of the conversation. A conversation coordinator may be\n required to make decisions that require knowledge of the whole conversation. This\n model is commonly used to implement 2-phase commit protocols using a transaction coordinator.\n\nI hope that this brief overview illustrates the fact that there is often more to statefulness\n and statelessness than initially meets the eye. Distinguishing what kind of state\n is kept where and whether this state is relevant is an important first step to having\n a debate related to this topic.\n\nThanks to Michael Qvortrup for an enlightening discussion on this topic at OOPSLA.\n It motivated me to finally write this rambling up (with a 6 week delay...).\n\n*Share:*\n\n*Follow:* [Follow @ghohpe](https://twitter.com/ghohpe) [SUBSCRIBE TO FEED](../ramblings.rss)\n\n*More On:* [DESIGN](/ramblings_design.html) [ALL RAMBLINGS](../ramblings.html)\n\nGregor is a cloud architect and author. He is a frequent speaker on asynchronous messaging,\n IT strategy, and cloud.", "znaku_textu": 9756, "slov": 1549, "odkazu": 46, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/ramblings/20_statelessness.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 06:54:43", "sha256": "85c1f36f4c9d1966c43b87c5deab01b5eb4eba0c1ad99abe57c6a1fd31e36007", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://architectelevator.com/blog", "http://java.sun.com/docs/books/jini/javaspaces/", "https://twitter.com/share", "https://twitter.com/ghohpe", "https://leanpub.com/37things"]} {"url": "https://www.enterpriseintegrationpatterns.com/ramblings/21_drunkdriving.html", "titulek": "SOA's and Drunk Driving - Enterprise Integration Patterns", "h1": "SOA's and Drunk Driving", "popis": "Happy New Year everybody! Over the holidays I tried to sort out some of my thoughts on Web services, SOA, architectural styles, coupling and all the other good stuff", "klicova_slova": "", "kanonicka": "", "jazyk": "en_US", "robots_meta": "", "og": {"og:type": "article", "og:locale": "en_US", "og:site_name": "Enterprise Integration Patterns", "og:title": "SOA's and Drunk Driving", "og:description": "Happy New Year everybody! Over the holidays I tried to sort out some of my thoughts on Web services, SOA, architectural styles, coupling and all the other good stuff", "og:url": "https://www.enterpriseintegrationpatterns.com/ramblings/21_drunkdriving.html"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "SOA's and Drunk Driving"}, {"uroven": 2, "text": "Web Services vs. Service-oriented Architectures"}, {"uroven": 2, "text": "Architectural Styles"}, {"uroven": 2, "text": "Service-Oriented Architectural Style"}, {"uroven": 2, "text": "Evolution"}, {"uroven": 2, "text": "Don't hit the Curb"}, {"uroven": 2, "text": "Almost Home?"}], "markdown": "Gregor's Ramblings\n\n---\n\n# SOA's and Drunk Driving\n\nJanuary 17, 2005\n\nFind my posts on IT strategy, enterprise architecture, and digital transformation\n at [ArchitectElevator.com](https://architectelevator.com/blog).\n\n## Web Services vs. Service-oriented Architectures\n\nIf you have a Web browser and are interested in Web services you probably have not\n escaped the discussion around SOA, REST, Web services etc. I am going to let the REST\n argument rest for for the time being (pun intended), but want to share a few thoughts\n on Service-oriented architectures. By now most people agree that a service-oriented\n architecture is not a specific technology, but rather a design philosophy or *architectural style*. Web services technologies make implementing this architectural style convenient\n but are by no means the only technology choice. For example, one can build fine SOAs\n using CORBA, even though the nagging question might be \"why would you?\" (Steve V.,\n please forgive me!).\n\n## Architectural Styles\n\nSo what is an architectural style? Roy Fielding defined it in his [oft cited thesis](http://www1.ics.uci.edu/~fielding/pubs/dissertation/top) as follows:\n\n*\"An architectural style is a coordinated set of architectural constraints that restricts\n the roles/features of architectural elements and the allowed relationships among those\n elements within any architecture that conforms to that style.\"*\n\nEssentially, an architectural style describes what elements we can work with (for\n example, filters in a [Pipes-and-Filters](../PipesAndFilters.html) architectural style or objects, interfaces and classes in an object-oriented architectural\n style. The style also defines the rules and constraints on how the elements can be\n composed. For example, in a [Pipes-and-Filters](../PipesAndFilters.html) style, filters have input and output ports that can be connected to pipes whose purpose\n it is to transport messages from one filter's output port to another filter's input\n port. One constraint is prescribes that you are not allowed to connect one filter\n directly to another filter.\n\nThere are more formal definitions of architectural styles, which enable the formal\n expression of the constraints in architectural design languages (ADLs). I touched\n on them briefly in [a prior posting](19_composing.html), so I won't repeat them here.\n\n## Service-Oriented Architectural Style\n\nSo what are the design elements and constraints that make up a service-oriented architecture?\n The elements of an SOA are services, self-contained modules that are universally accessible\n and advertise their interface contracts via some form of registry. [Hao He](http://webservices.xml.com/pub/a/ws/2003/09/30/soa.html) has defined the following architectural constraints for SOAs:\n\n1. A small set of simple and ubiquitous interfaces to all participating software agents.\n Only generic semantics are encoded at the interfaces. The interfaces should be universally\n available for all providers and consumers.\n2. Descriptive messages constrained by an extensible schema delivered through the interfaces.\n No, or only minimal, system behavior is prescribed by messages. A schema limits the\n vocabulary and structure of messages. An extensible schema allows new versions of\n services to be introduced without breaking existing services.\n\nThese principles are some of the main ingredients into making SOA's *loosely coupled*. Interfaces hide implementation details and services communicate by exchanging documents\n rather than by invoking methods directly on another service.\n\n## Evolution\n\nWe often underline the advantages of loosely coupled, service-oriented architectures\n by comparing them to the prior architectural style, namely *distributed component* (DC) architectures. This is only natural. It is hard to define the optimum architectural\n style for a given category of applications. Instead, it is much easier to learn from\n the shortcomings of the last attempt and to correct them based on incremental evolution.\n In the case of distributed component architectures, the shortcomings we set out to\n fix include the following:\n\n- **Vendor lock-in.** Many DC architectures were based on proprietary protocols and implementations. In\n contrast, standards-based protocols support (at least in theory) free interoperability\n between multiple vendor products.\n- **Tight coupling.** DC architectures typically link components directly to one another, making the solutions\n brittle. An asynchronous, document-oriented style of interaction allows more independent\n variability between components [3].\n- **The Transparency Illusion** . Distributed components promised to hide remote communication from the developer\n by making the remoteness \"transparent\". While the basic syntactic interaction between\n remote components can be wrapped inside a proxy object, it turned out that dealing\n with partial failures, latency, and remote exceptions could not be hidden from the\n developer. It turned out that 90% transparency was actually worse than no transparency\n because it gave developers a false sense of comfort.\n- **Complexity.** DC architectures extend the rich, but complex interaction between objects across\n the wire. One object can control the lifetime of remote objects, pass references,\n and rely on polymorphism and inheritance. This model turned out to be quite complex\n given the inherent complexity that distributed architectures add into the mix.\n- **Call Stack.** While a call stack is an enormous convenience for monolithic applications it can\n quickly turn into a liability for loosely coupled, distributed applications. Waiting\n for a remote component to complete a task before continuing execution at the source\n tends to make distributed architectures unresponsive and brittle.\n- **Connectivity.** Most DC architectures require reliable, permanent connectivity between components.\n They do not work well over wide-area, intermittent networks such as the Internet or\n mobile networks.\n\nNote that some of these problems are inherent in the architectural style (e.g., tight\n coupling) while others are merely byproducts of popular implementations of the style\n (e.g., vendor lock-in). For practical applications, though, both kinds of problems\n are relevant factors in the adoption of Service-oriented architectures.\n\nWe can easily see how service-oriented architectures based on the Web-services standards\n and specs resolve these issues. They are (somewhat) vendor neutral, have a simplified,\n loosely coupled interaction model, and are based on an asynchronous document-passing\n model that allows for communication over partially connected networks.\n\nSo it seems that SOAs solve all our problems. Well, at least the ones we had with\n the distributed component architectures. But there remain two nagging thoughts. First,\n if SOAs are largely driven by the desire to cure problems in the prior style how can\n we be sure that SOAs are in fact the best approach or are they maybe a sub-optimization\n of the problem? And, more importantly, what other problems do they introduce?\n\n## Don't hit the Curb\n\nCollective learning and vendor adoption cycles in our seemingly fast-moving field\n are often surprisingly slow. Object-oriented development took about a decade from\n early adoption (SmallTalk, early C++) to the preferred mainstream style of development.\n Given the long cycle times and the reactive nature of defining a new style via the\n weaknesses of the old style, we start to wonder whether we are really converging on\n a good style or whether we are swaying back and forth like a drunk driver who is swaying\n back and forth across the street trying to avoid hitting the curb. Every time the\n curb comes near the driver yanks the steering wheel in the opposite direction, causing\n the car to sway in the other direction until it is about to hit the other curb.\n\nSo are Web services and SOAs over-compensating the perceived issues with distributed\n component architectures? Are we heading for the curb on the opposite side? Sometimes\n I feel like that's what's going on. For example, distributed component architectures\n are too tightly coupled and brittle. A few levels of indirection can help resolve\n that but I think UDDI was aiming hard for the other curb by trying to make service\n discovery so generic that it became difficult to use. Likewise, we discovered that\n the object-oriented interaction model of instantiation and method invocation is too\n complex and chatty for network-based communication. So we fixed that with the document-oriented\n model. But is passing a document to a totally stateless service really sufficient\n for many real-life scenarios? What if I need a reply back? What if I don't have all\n required information available to assemble a single document? How about more complex\n conversations, transactions etc? Many of the WS-* specifications like WS-Addressing\n etc are trying to address these shortcomings. But then if I look at the dozens of\n WS-* specifications, where is the simplicity that we were aiming for?\n\n## Almost Home?\n\nIt will be interesting to see where the Web service evolution balances out or whether\n we'll hit another curb. It will also be interesting to see what the next best thing\n will be. One can't blame the business users for asking \"How can you be sure you got\n it right this time? First you tell me terminals and mainframe hosts are all the rage,\n then it is client-server, then 3-tier, then distributed components and now SOAs. What's\n next?\" I kind of have to agree with the end users but at the same time I have no idea\n what will be next. But we can be assured that once SOAs reach wide adoption all marketing\n departments are itching to define the next major trend...\n\n*Share:*\n\n*Follow:* [Follow @ghohpe](https://twitter.com/ghohpe) [SUBSCRIBE TO FEED](../ramblings.rss)\n\n*More On:* [DESIGN](/ramblings_design.html) [ARCHITECTURE](/ramblings_architecture.html) [ALL RAMBLINGS](../ramblings.html)\n\nGregor is a cloud architect and author. He is a frequent speaker on asynchronous messaging,\n IT strategy, and cloud.", "znaku_textu": 10002, "slov": 1494, "odkazu": 47, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/ramblings/21_drunkdriving.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 06:54:42", "sha256": "ad064fbd50a5da06855a79912b89c388685b020d6d371e08f9c608e099b21b4c", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://architectelevator.com/blog", "http://www1.ics.uci.edu/~fielding/pubs/dissertation/top", "http://webservices.xml.com/pub/a/ws/2003/09/30/soa.html", "https://twitter.com/share", "https://twitter.com/ghohpe", "https://leanpub.com/37things"]} {"url": "https://www.enterpriseintegrationpatterns.com/ramblings/22_extensibility.html", "titulek": "Extensibility Points - Enterprise Integration Patterns", "h1": "Extensibility Points", "popis": "Today's rambling takes a look at the application side of application integration", "klicova_slova": "", "kanonicka": "", "jazyk": "en_US", "robots_meta": "", "og": {"og:type": "article", "og:locale": "en_US", "og:site_name": "Enterprise Integration Patterns", "og:title": "Extensibility Points", "og:description": "Today's rambling takes a look at the application side of application integration", "og:url": "https://www.enterpriseintegrationpatterns.com/ramblings/22_extensibility.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/extension_options.gif"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Extensibility Points"}, {"uroven": 2, "text": "Anticipating Change"}, {"uroven": 2, "text": "Domain Model Extensibility (elements)"}, {"uroven": 3, "text": "All Purpose Fields"}, {"uroven": 3, "text": "Extension Tables (A)"}, {"uroven": 3, "text": "Portal Extension (B)"}, {"uroven": 3, "text": "Composite Application (C)"}, {"uroven": 3, "text": "Presentation Layer Integration (D)"}, {"uroven": 2, "text": "Domain Model Extensibility (structure)"}, {"uroven": 2, "text": "Domain Logic Extensibility"}, {"uroven": 2, "text": "Ability to Publish Business Events"}, {"uroven": 2, "text": "Ability for External Applications to Invoke Actions"}, {"uroven": 2, "text": "Conclusion"}], "markdown": "Gregor's Ramblings\n\n---\n\n# Extensibility Points\n\nFebruary 1, 2005\n\nFind my posts on IT strategy, enterprise architecture, and digital transformation\n at [ArchitectElevator.com](https://architectelevator.com/blog).\n\n## Anticipating Change\n\nDeveloping an architecture is a bit like a guessing game. You are anticipating future\n changes to the system and try to devise a system architecture that can (most likely)\n accommodate these changes. This is admittedly not the only purpose of architecture\n but certainly a major component of it. Well, are architects then essentially a bunch\n of fairground charlatans who suck money out of people's pockets for some form of \"clairvoyant\"\n trick performance just to have moved on to the next village by the time their scam\n is being revealed? (Rob Zombie's [Living Dead Girl](http://boss.4.streamos.com/real/4/interscope/robzombie/hellbillydeluxe/video/livingdeadgirl/00_livingdeadgirl.ram) video comes to mind) I am sure [Hani](http://www.jroller.com/page/fate) would concur after inserting the words \"wanker\", \"bastard\" and \"$%^%@#\". And some\n of you might feel that \"finally we have a definition of architects that is based on\n real life!\". OK, but you'll have to admit that some people are better guessers than\n others. For example, experience can make you a better guesser, ahem, architect and\n so can the ability to abstract problems, for example by using patterns.\n\nOne person was recently willing to watch me rub the crystal ball and proclaim what\n kind of variability and extensibility points their application, which is currently\n under development, should have. A lot of the themes we came up with relate to integrating\n with other applications, but this time we view them from the perspective of an application.\n Here is a brief list of items I came up with.\n\n- Domain Model Extensibility (elements)\n- Domain Model Extensibility (structure)\n- Domain Logic Extensibility\n- Ability to Publish Business Events\n- Ability for External Applications to invoke Actions\n\nI am sure there are many more, but one of the well-known secrets of consulting is\n the \"lingerie principle\" -- never bare everything right away!\n\n## Domain Model Extensibility (elements)\n\nIf your application models a portion of an overall business domain it is likely that\n the domain objects that you use are also represented by other applications, albeit\n with a slightly different emphasis. Since businesses without customers are rare (hey,\n it's not 1999 anymore!), the customer entity is a good candidate for an example. An\n order entry system might be most interested in the customer's preferences, while the\n shipping system is most interested in their shipping address, and the financial system\n might be interested in the customer's billing address and tax exemption code. This\n is all well as some of these additional fields are likely to live in related entities\n anyway (e.g., the address entity) and each application is allowed to have their version\n of customer and address . However, the users of your application are likely to want\n to see some of the extra data. The fact that the additional data fields reside in\n a different \"application\" will seem terribly irrelevant to the users if they have\n a customer on the line asking for just that information. The extra data itself can\n come from different sources: it can be entered by the user or it can be replicated\n from another application via [Data Replication](http://patternshare.org/default.aspx/Home.PP.DataReplication).\n\nHow can an application anticipate the need for these additional data elements? Let's\n look at a few options (see figure).\n\n### All Purpose Fields\n\nThis option must be a close contender to \"screen scraping\" in the categories of wide-spread\n use and disdain. These are the kind of techniques that none of us use but that are\n to be found everywhere. All purpose fields are these \"data1\" varchar(255) fields that\n linger at the end of tables in case someone needs to stuff data in there that was\n not anticipated. This option certainly does not align well with the relational model\n but is unbeatable for convenience. Hey, I need to store the customer's pet's name,\n so there I go -- I have a varchar column to spare. Most systems will allow the display\n of this field on the UI screens, likely even with a custom label. Unfortunately, convenience\n often leads us down dangerous paths. In fact, the popularity of this option with\n early (\"legacy\") systems has shown us all too well where the path is likely to lead:\n before long you'll end up with a system where the first 3 characters of field \"foo\"\n contain some cryptic code. If that code is \"bar\" the next 5 characters are the person's\n birth date in hexadecimal except if they are born on a Tuesday...\n\n### Extension Tables (A)\n\nExtension tables provide a little better separation between core application data\n and ancillary data. This approach suggests the existence of a CUSTOMER table and a\n CUSTOMER_Z (or whatever naming scheme you prefer), which is keyed to the customer\n table but is under the control of the administrator. This allows the addition of properly\n named and typed fields to be associated with a customer. The business logic layer\n would loop through this extra data to the UI so that it can be rendered. This approach\n can work reasonably well of you choose to (or have to) integrate with other applications\n by [Maintaining Data Copies](http://patternshare.org/default.aspx/Home.PP.MaintainDataCopies). As with the previous solution, the business logic layer typically provides a means\n of pulling the data through to the user interface without having to know much about\n the detailed composition of the data. The pros and cons of this approach are pretty\n well understood:\n\n- You have all the data in one place (i.e. one database)\n- Thus, you can avoid a lot of synchronization issues\n- You can make transactional updates across core data and extension data\n- The separation between core data and extension data can be well hidden from the outside\n- The application can start to bloat as it has to store data not relevant to its core\n purpose\n- When you upgrade the packaged application you need to careful not to destroy the relationships\n with the extension data\n- You might need dedicated tools to manage the extension tables so users do not have\n to manipulate the database directly\n\n### Portal Extension (B)\n\nThis option is a simple form of [Portal Integration](http://patternshare.org/default.aspx/Home.PP.PortalIntegration). Rather than extending the data model of the existing application, you create the\n user interface in such a way that additional application front-ends can be plugged\n in. Several portal standards, e.g. [WSRP](http://www.oasis-open.org/committees/tc_home.php?wg_abbrev=wsrp), simplify this task. One advantage of this approach is that the core application\n does not have to be modified internally. However, if close interactivity between the\n existing and the new data elements is required, the portal might provide a less than\n ideal user interface experience. Also, updates to both core application data and extension\n data are no longer under the scope of a single database transaction.\n\n### Composite Application (C)\n\nA more sophisticated approach along the same lines is a composite application. In\n this case, we assume that the user has to interact with a number of applications simultaneously\n and we provide a separate layer whose role it is to render a coherent user interface\n on top of a number of disparate back-end applications or service. While in Option\n (B) one application plays the primary role of the user interface and allows a few\n other items to the \"plugged in\", this approach separates the user interface completely\n from the different back-end systems. A composite application is often viewed as a\n key part of a service-oriented architecture where new applications are composed of\n existing services. This requires, however a solid services infrastructure and a good\n handle on how to expose your application's business functions as services (see below).\n\n### Presentation Layer Integration (D)\n\nSometimes you can achieve very simple integration and extension of the UI by using\n the ability of browsers to link to another application. This is essentially option\n (B) but without the ability to incorporate the new data into the existing screen.\n Instead, the front-end simply links to another user interface. This makes the user\n still work with two applications (i.e., there is no integration) but it makes it easier\n for the user to switch from one application to another. In a sense, this options is\n a more efficient version of \"swivel chair integration\". It also carries the same disadvantages,\n for example, the user might have to re-key information from one application to the\n next.\n\n## Domain Model Extensibility (structure)\n\nWhile there are already a lot of options for just adding simple fields to an existing\n domain object, sometimes an application requires the addition of entirely new domain\n objects or the interjection of new relationships or indirections into existing objects\n graphs. When dealing with a packaged application, these kind of changes are pretty\n hard to introduce without touching core application code and data. Some applications\n try to protect against this kind of scenario by employing a very generic domain model.\n This can work well to some extend, but you need to be careful that the application\n does not start to resemble \"Microsoft Access\", i.e. a generic database with a generic\n user interface builder. Yes, this kind of tool provides ultimate flexibility but does\n not bring much value out of the box. Once again, finding the correct compromise between\n specificity and extensibility is the secret.\n\nThe implementation choices essentially mimic the choices for the simple domain model\n extensibility. Either you need to be able to modify or extend the application core\n itself or you need to have a user interface that is flexible enough to have the separate\n applications appear as one.\n\n## Domain Logic Extensibility\n\nSo far, we only considered extending the data side of the model. More likely than\n not, some business logic will also depend on the new fields or entities. The need\n for new logic makes approaches such as *All Purpose Fields* or *Extension Tables* tougher because now you need to be able to add code to the application that deals\n with the new, generic fields. This no longer makes it possible to simply pull through\n generic data to the UI, but we need the ability to add new code modules that can process\n data values entered by the user for these new fields. IF a lot of logic crosses existing\n and new elements, a *Composite Application* approach starts to appear more likely.\n\n## Ability to Publish Business Events\n\nA less intrusive way to extend an application is to allow other applications to receive\n relevant business events from your application. In the currently preferred style of\n service-oriented architecture or event-driven architecture, this ability is expected\n from any \"enterprise class\" application. For example, other applications should be\n able to find out about major activities happening in your application, for example,\n updates to entities such as the customer, new orders etc. The main implementation\n decisions for this feature are as follows:\n\n- **How to subscribe.** How do other applications express their interest in an event? Is this handled through\n some messaging infrastructure, a config file, or code? Are subscriptions static or\n do they take the form of \"leases\" where subscription interest has to be renewed periodically?\n- **Communication infrastructure.** How closely do you want to tie outgoing events to a specific messaging infrastructure?\n DO you publish to a JMS channel but allow the enterprise to chose the JMS provider?\n Do you provide support for middleware packages such as TIBCO, SeeBeyond or WebMethods?\n DO you intend to support emerging Web services specs, such as WS-Eventing and/or WS-Notification?\n- **Metadata.** What kind of metadata do you want to provide for the event data? If you publish XML\n documents you should at a minimum make XML schemas available.\n- **Push or Pull.** A Push model publishes all data pertaining to an event with the event message. In\n contrast, a pull model simply publishes the event message with minimal data and requires\n each subscriber to retrieve all desired data elements. The pros and cons of each approach\n are described quite well in the original *Observer* pattern or [here](../ObserverJmsExample.html) .\n\n## Ability for External Applications to Invoke Actions\n\nIn addition to publishing relevant business events, your application should also allow\n other applications to invoke relevant business functions provided by your application.\n This is the essence of a services layer that is accessible via a *service bus* or a similar communications backbone. Design decisions for this interface are similar\n to the ones above. For example, once again, you want to make sure your application\n provides metadata for the available functions.\n\n## Conclusion\n\nAdmittedly, this was a superfast sweep across extensibility requirements for an \"enterprise\n class\" application. One thing is for sure, though. Developing an enterprise application\n is as much about extensibility and integratability as it is about core application\n functionality. Not paying enough attention to these requirements can turn today's\n new application into tomorrow's silo. It is therefore critically important that you\n document specific extension scenarios (for example, \"need to show an additional field\n in the user interface\") and outline what kind of effort it takes to fulfill this use\n case. Will code changes be required? Will the vendor or the original developers have\n to get involved? Will such a change impact future upgrades? The only thing worse than\n not having an answer is to never ask the question!\n\n*Share:*\n\n*Follow:* [Follow @ghohpe](https://twitter.com/ghohpe) [SUBSCRIBE TO FEED](../ramblings.rss)\n\n*More On:* [DESIGN](/ramblings_design.html) [ALL RAMBLINGS](../ramblings.html)\n\nGregor is a cloud architect and author. He is a frequent speaker on asynchronous messaging,\n IT strategy, and cloud.", "znaku_textu": 14173, "slov": 2201, "odkazu": 50, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/ramblings/22_extensibility.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 06:54:42", "sha256": "5d564b6c81df3b4bfa19e4c9b51cf8e1302ba27baa743994a8bface5ea2cb9a3", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://architectelevator.com/blog", "http://boss.4.streamos.com/real/4/interscope/robzombie/hellbillydeluxe/video/livingdeadgirl/00_livingdeadgirl.ram", "http://www.jroller.com/page/fate", "http://patternshare.org/default.aspx/Home.PP.DataReplication", "http://patternshare.org/default.aspx/Home.PP.MaintainDataCopies", "http://patternshare.org/default.aspx/Home.PP.PortalIntegration", "http://www.oasis-open.org/committees/tc_home.php?wg_abbrev=wsrp", "https://twitter.com/share", "https://twitter.com/ghohpe", "https://leanpub.com/37things"]} {"url": "https://www.enterpriseintegrationpatterns.com/ramblings/23_btw2005.html", "titulek": "BTW Conference - Enterprise Integration Patterns", "h1": "BTW Conference", "popis": "OK, so I am officially the slowest blogger on the 'Net", "klicova_slova": "", "kanonicka": "", "jazyk": "en_US", "robots_meta": "", "og": {"og:type": "article", "og:locale": "en_US", "og:site_name": "Enterprise Integration Patterns", "og:title": "BTW Conference", "og:description": "OK, so I am officially the slowest blogger on the 'Net", "og:url": "https://www.enterpriseintegrationpatterns.com/ramblings/23_btw2005.html"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "BTW Conference"}, {"uroven": 2, "text": "BTW - GI Fachtagung für Datenbanksysteme in Business, Technologie und Web"}, {"uroven": 2, "text": "XML in BPM Workshop"}, {"uroven": 2, "text": "Web Services"}, {"uroven": 2, "text": "Takeaways"}], "markdown": "Gregor's Ramblings\n\n---\n\n# BTW Conference\n\nMarch 6, 2005\n\nFind my posts on IT strategy, enterprise architecture, and digital transformation\n at [ArchitectElevator.com](https://architectelevator.com/blog).\n\n## BTW - GI Fachtagung für Datenbanksysteme in Business, Technologie und Web\n\nThe German language is (in)famous for its ability to concatenate words together into\n single ueberwords with a gazillion letters. We get to hear about \"Wirtschaftlichkeitsberechnungsmethoden\",\n i.e methods to compute economics or \"Schnittstellenankopplung\", which translates into\n something like interface attachment. Anyway, the [BTW conference](http://www.btw2005.de/) is held every other year. As the name suggests, the conference originated in the\n database world but has not escaped the influence of services and service-oriented\n architectures. Frank Leymann, one of the co-creators of [BPEL](ftp://www6.software.ibm.com/software/developer/library/ws-bpel.pdf), invited me to speak on SOA from a developer perspective. Satish Thatte from Microsoft,\n the other mastermind behind BPEL, presented as well, so it was a great opportunity\n to get a behind the scenes look at BPEL. By now vendor support for BPEL is increasing\n (the \"big guys\" IBM, Microsoft and Oracle each have an offering) and the spec has\n been submitted to OASIS. I think it is time for me to start blogging a bit more about\n BPEL, so stay tuned.\n\n## XML in BPM Workshop\n\nI managed to sneak into an interesting [workshop on \"XML4BPM\"](http://wi.wu-wien.ac.at/%7Emendling/XML4BPM2005/). There was a lot of discussion on two new acronyms I had not heard: [EPC - Event-Driven Process Chain](http://xml.coverpages.org/ni2003-11-21-a.html) and CBP - Cross-organizational Business Process. Maybe I am simple a little behind\n the times as someone already created a [Visio template for EPC](http://office.microsoft.com/en-us/assistance/HP010575031033.aspx). To my rescue I just saw a site stating that it is particularly popular in Germany,\n which is not surprising because SAP uses it. I'll try to check it out in a little\n more detail as it seems to relate closely to the whole [Orchestration vs. Choreography](http://blog.whatfettle.com/archives/000250.html) debate.\n\nI particularly liked the separation into multiple process modeling layers, i.e. business\n process, technical process and executable process. I love BPEL as an execution language\n but too often I see some vendor making a pitch that business analysts will use a BPEL-centric\n tool to model business processes. I see these as pretty different use cases. Acknowledging\n that there are different levels and that explicit (partially automated) mapping is\n required between them is a definite step forward.\n\nAnother talk focused on comparing the semantics od EPC and Petri nets and the like.\n Sounds like a pretty arcane topic but I am kind of growing fond of the Petri notation\n for processes. Unfortunately, there aren't really any execution environments for them\n outside of the academic world. The talk focused on showing how to implement [Wil's Workflow Patterns](http://tmitwww.tm.tue.nl/research/patterns/patterns.htm) (BTW, his site has really cool [Flash animations](http://tmitwww.tm.tue.nl/research/patterns/download/swf/pat_18.swf) of these patterns). The [Milestone](http://tmitwww.tm.tue.nl/research/patterns/milestone.htm) pattern caught my particular interest (even though I would consider renaming it to\n \"Window of opportunity\"): A task has to happen after another task completes but before\n that task moves into it next phase (i.e. reaches the milestone). The following figure\n uses an extended EPC notation to represent this interaction pattern:\n\nIn this pattern, Task D can execute once the Milestone is reached but before the milestone\n expires (i.e. function B is executed).\n\nI have seen an interesting variation of this pattern quite frequently in real life.\n For example, a foreground task might have to perform some computation. It also starts\n a background task. Once the foreground task is completed, the foreground task checks\n whether the background task is done or not. If the background task is completed, the\n foreground task uses the result, otherwise it just moves on. This is different than\n the milestone because the milestone pattern does wait until task C is done if it was\n in fact started. I don;t have a name for this pattern yet, for now I call it \"Giving\n it a Shot\" or \"Impatient Master\".\n\n## Web Services\n\nFrank Leymann gave a very nice tutorial that demonstrated the significance and interrelationships\n between all the WS-* specifications, especially WS-Policy. I also learned about the\n new [WS-MetadataExchange](http://www-128.ibm.com/developerworks/library/specification/ws-mex/) spec.\n\n## Takeaways\n\nOne should always walk away from a conference with a new quote that makes you look\n smarter. In case of BTW, it was this one related to the vendor race in the SOA space:\n *We don't know where we are going but we want to get there first!*\n\n*Share:*\n\n*Follow:* [Follow @ghohpe](https://twitter.com/ghohpe) [SUBSCRIBE TO FEED](../ramblings.rss)\n\n*More On:* [EVENTS](/ramblings_events.html) [ALL RAMBLINGS](../ramblings.html)\n\nGregor is a cloud architect and author. He is a frequent speaker on asynchronous messaging,\n IT strategy, and cloud.", "znaku_textu": 5260, "slov": 749, "odkazu": 53, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/ramblings/23_btw2005.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 06:54:40", "sha256": "79ea9c5c67031b41e94f7035ea94f0b5bda2c7817f51716a7a0e0b791812cab8", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://architectelevator.com/blog", "http://www.btw2005.de/", "http://wi.wu-wien.ac.at/~mendling/XML4BPM2005/", "http://xml.coverpages.org/ni2003-11-21-a.html", "http://office.microsoft.com/en-us/assistance/HP010575031033.aspx", "http://blog.whatfettle.com/archives/000250.html", "http://tmitwww.tm.tue.nl/research/patterns/patterns.htm", "http://tmitwww.tm.tue.nl/research/patterns/download/swf/pat_18.swf", "http://tmitwww.tm.tue.nl/research/patterns/milestone.htm", "http://www-128.ibm.com/developerworks/library/specification/ws-mex/", "https://twitter.com/share", "https://twitter.com/ghohpe", "https://leanpub.com/37things"]} {"url": "https://www.enterpriseintegrationpatterns.com/ramblings/24_tss2005.html", "titulek": "TSS Symposium Redux - Enterprise Integration Patterns", "h1": "TSS Symposium Redux", "popis": "A number of people have already blogged, er ranted, in detail about the TSSS but that can't stop me from occupying my fair share of the cyberspace with my impressions", "klicova_slova": "", "kanonicka": "", "jazyk": "en_US", "robots_meta": "", "og": {"og:type": "article", "og:locale": "en_US", "og:site_name": "Enterprise Integration Patterns", "og:title": "TSS Symposium Redux", "og:description": "A number of people have already blogged, er ranted, in detail about the TSSS but that can't stop me from occupying my fair share of the cyberspace with my impressions", "og:url": "https://www.enterpriseintegrationpatterns.com/ramblings/24_tss2005.html"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "TSS Symposium Redux"}, {"uroven": 2, "text": "John Crupi on SOA"}, {"uroven": 2, "text": "Future of Enterprise Java Panel"}, {"uroven": 2, "text": "TestNG"}, {"uroven": 2, "text": "AspectJ"}, {"uroven": 2, "text": "XQuery"}, {"uroven": 2, "text": "SOA = Same Old Architecture?"}, {"uroven": 2, "text": "Social Events"}], "markdown": "Gregor's Ramblings\n\n---\n\n# TSS Symposium Redux\n\nMarch 14, 2005\n\nFind my posts on IT strategy, enterprise architecture, and digital transformation\n at [ArchitectElevator.com](https://architectelevator.com/blog).\n\nStraight from Karlsruhe I joined the annual geek pilgrimage to Las Vegas for TheServerSide\n Symposium. The quality of content at this conference is quite impressive, which is\n easily evidenced by the fact that the sessions are actually very well attended despite\n the apparent surplus of distractions and the lack of sleep. And as always, it was\n great fun to catch up with people like Mike Cannon-Brooks, Rod Johnson, Ted Neward,\n Mark Hapner, John Crupi and many others.\n\nI also got a chance to observer real-time ranting in action. This is great, the speakers\n can essentially observe as their talk is being trashed on-line :-)\n\n## John Crupi on SOA\n\nJohn Crupi also realized that application patterns are so 2001 :-) So he jumped on\n the SOA train and shared his Big Rules for Web Services, which I liked quite a bit:\n\n- Coarse grained business services\n- XML document based\n- Mostly asynchronous\n- Conversational\n- Reliable\n- Secure Identity\n- Policy driven\n- Registered & Retrieved\n- WSDL described\n- BPEL orchestrated\n- JBI based\n- ACDC - AsynC Doc Centric\n\nI guess the list really describes \"Web Services developed in Java (TM)\" because otherwise\n it would be hard to explain that JBI item on the list ;-) Not that I dislike JBI,\n but it starts with J after all...\n\nIt is an open secret that the most important things at any conference go on in the\n hallway (well, the casino in this case, I guess). Anyway, it was good to run into\n Mark Hapner again. He informed me that a new public review draft of the BJI spec is\n [now available](http://jcp.org/aboutJava/communityprocess/pr/jsr208/index.html). I have not read the whole spec but it has some interesting sections on Message Exchange\n in it, so it'll be worth a look to harvest more design patterns.\n\n## Future of Enterprise Java Panel\n\nI also got to be on a 9am (!) panel on the future of Enterprise Java. I was a little\n worried that it would be a boring rerun of last year's panel but it turned out to\n be pretty interesting even though Rod Johnson was unusually kind to the Sun employees\n on the panel. Here are the main topics that came up:\n\n**State of Java**\n\nMost of us agreed that the J2EE platform is maturing. This makes for fewer sexy topics\n on a panel like this but it is actually a very good thing for developers. Rod summed\n it up nicely as \"It's all about execution now\". But he did not miss an opportunity\n to voice his opinion about EJB's: \"J2EE had the choice between becoming even more\n bloated and be rendered insignificant or slimming down and enjoying a long life. Luckily,\n J2EE chose life\". I believe that the focus on SOA will drive us to smaller components,\n exposed as services, in lighter weight containers, often referred to as Service containers.\n These service containers have slightly different needs from app servers and should\n be cheaper, have a small footprint and should be easy to manage, given that there\n will be many of them. I think most of the necessary pieces are part of most J2EE containers,\n it will be mostly a matter of slimming down and making the development and management\n of services more user friendly.\n\n**.Net vs. J2EE**\n\nThe inevitable question on .Net vs. J2EE came up fairly early. A gentleman stated\n his observation that in his company all new projects are .Net. To me this alone does\n not spell the demise of J2EE as 90% of all development effort is typically spent maintaining\n existing applications as opposed to starting new projects. Nevertheless this is a\n fun topic to discuss on a panel.\n\nOf course, Sun is quick to highlight their \"open\" community model. Some people (like\n [Jason Hunter](http://servlets.com/blog/)) have mixed views on the JCP and I am mostly in the skeptical camp as well. Hey,\n Microsoft listens very actively to developers, the ideas are just owned by MS in the\n end. Oh, and who \"owns\" the Java language and spec? Hmmm.... And, if you present a\n really good idea to MS, their \"community process\" is to hire you. Something to think\n about... after the likes of Ward Cunningham and Blake Stone now work there.\n\nAll panelists agreed to credit Microsoft with a good sense of pragmatism and making\n it easy for developers to get started. I think in this category, the much derided\n VBX/ActiveX/COM technology deserves a huge credit. It is one of the most successful\n commercial component models that I can remember. The ability for a VB developer to\n get a few components for 99 bucks and to show one cool app to his or her boss is largely\n unparalleled in the Java world. Of course, half the VB code often did not work, but\n hey, it looks cool :-)\n\nMicrosoft also runs one great developer community. Maybe I am a little biased (I had\n my hands in 2 of the Patterns and Practices books) but Microsoft has gained a lot\n of credibility in the patterns and enterprise developer community for contributing\n guidance that is not marketing material in disguise. Also, Microsofties now regularly\n attend and speak at high-end developer events like OOPSLA (even though the keynote\n there apparently went to the marketing department).\n\n**EJB 3.0 vs. JDOM 2.0**\n\nThis one was funny because we got Rod to come out of the box after Linda proclaimed\n this a big success. She was really asking for it to the extend that one wondered whether\n it was a setup.\n\n**What is SOA?**\n\nThis question was a great segue into my talk [SOA = Same Old Architecture?](http://www.theserverside.com/symposium/abstracts.html#same_old) Apparently my plug helped as they had to bring more chairs into the room for my talk.\n Essential agreement on that there is more hype and confusion than real solutions being\n built. The good old teen sex joke (\"everybody talks about it, noone does it\") was\n good enough for a few laughs -- maybe people were just being polite. On the other\n hand, a little more dynamic never hurts any panel. Jerry Springer gets high ratings\n after all.\n\n## TestNG\n\n[Cedric Beust](http://www.beust.com/weblog/) gave a talk on TestNG. I thought it was interesting but feel that all the jUnit bashing\n was unnecessary. Of course, [Hani liked it](http://www.jroller.com/page/fate/20050304#tsss_day_2_testng) because the first 20 minutes were essentially a bitching contest on the shortcomings\n of jUnit. Apparently jUnit does not use annotations and so won't you unless you are\n on J2SE5. The biggest gripe about jUnit is likely the instantiation model (each test\n case runs in its own instance of the class containing the test). I think most smart\n people have been bitten by that at least once (the dumb ones many more times), so\n it would be good to make this property a bit more apparent.\n\n## AspectJ\n\n[Adrian Coyler](http://www.aspectprogrammer.org/blogs/adrian/) gave a great talk on the new Eclipse tools for AspectJ (not the usual \"Apache logging\"\n talk) . So far I liked aspects from a conceptual point of view but was always afraid\n that it gives developers an automatic rifle instead of a shot gun to shoot themselves\n in the foot. It is nice to see that we are now getting tool support to let people\n work with aspects effectively. I particularly liked the visualization tool that shows\n where an aspect is applied, allowing you to navigate straight to the affected code.\n\nAdrian also picked up on my [EDA talk from a day earlier](http://www.theserverside.com/symposium/abstracts.html#event_driven_arch). When we built the channel implementation in JDK 1.4 we had to go through a bunch\n of hoops with reflection etc. It was nicely encapsulated behind a generic channel\n interface but it was still ugly and hard to test. After the project, Binkley mocked\n up a version with J2SE5 using annotations. Adrian [took it a step further](http://www.aspectprogrammer.org/blogs/adrian/2005/03/event_driven_ar.html) to show how aspects can make publishing and consuming events trivially simple. He\n managed to mock up most of it before his talk the next day!\n\n## XQuery\n\nA nice talk by Jason Hunter. I particularly like the examples, e.g. [Executive Paycheck](http://paycheck.demo.marklogic.com/). It uses XQuery to parse through the SEC filings to extract the executive compensation\n figures.\n\n## SOA = Same Old Architecture?\n\nMy talk went well, I did not get biled, noone threw things at me, and I got some [press coverage](http://searchwebservices.techtarget.com/originalContent/0,289142,sid26_gci1065615,00.html). Strangely they quote me as saying \"forget about SOAP and design patterns\". Now\n I know how rumors start. Let me set this straight: *Design patterns are your friend!!*\n\nThe highlight of the talk was certainly [Alef Arendsen of Spring fame](http://www.arendsen.net) confirming that SOA in Dutch means as much as STD.\n\n## Social Events\n\nWhat would a conference in Vegas be without all the dirty stories?? Well, I saw one\n of the speakers at 3am at the bar with a different kind of \"professional\"... oh wait,\n what happens in Vegas, stays in Vegas!\n\nUnfortunately, I missed the pool party but made sure to hit the Strip on Friday night.\n Some noble donor (reliable sources state that it was funded by [OpenSymphony's](http://www.opensymphony.com) GoogleAds Dollars -- give them a click!) threw an open bar at the Bellagio, followed\n by a migration to Mix and the Hard Rock. Thanks to the BEA guys for letting me leech\n of them for most of the night. Nothing like coming home with money left in your pocket.\n Of course, having a 9am panel the next day did suck.\n\nSaturday, Adrian and I paid a visit to the Hofbraeuhaus \"branch office\" in Las Vegas.\n With German guys in short pants giving each other piggyback rides and dancing, I felt\n like I was back in SF there for a while. The food was marginal (hey, German \"cuisine\")\n but the beer and the atmosphere were great. Once we migrated to the Hard Rock we got\n in fact spotted (well, how hard is it to spot two uebergeeks in Vegas??) and were\n able to scam a few free drinks. Around 4am I made 3 attempts to go to bed but the\n constant stream of slightly intoxicated and confused geeks in the Caesar's lobby was\n too entertaining to pass on. Too bad the flight home was only one hour -- I had a\n lot more sleep to catch on.\n\n*Share:*\n\n*Follow:* [Follow @ghohpe](https://twitter.com/ghohpe) [SUBSCRIBE TO FEED](../ramblings.rss)\n\n*More On:* [EVENTS](/ramblings_events.html) [ALL RAMBLINGS](../ramblings.html)\n\nGregor is a cloud architect and author. He is a frequent speaker on asynchronous messaging,\n IT strategy, and cloud.", "znaku_textu": 10540, "slov": 1732, "odkazu": 55, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/ramblings/24_tss2005.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 06:54:39", "sha256": "6a9f4eed9e866c2f449f122e3e2d7afe54a6837220e4f4e99149a57a31225d47", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://architectelevator.com/blog", "http://jcp.org/aboutJava/communityprocess/pr/jsr208/index.html", "http://servlets.com/blog/", "http://www.theserverside.com/symposium/abstracts.html", "http://www.beust.com/weblog/", "http://www.jroller.com/page/fate/20050304", "http://www.aspectprogrammer.org/blogs/adrian/", "http://www.aspectprogrammer.org/blogs/adrian/2005/03/event_driven_ar.html", "http://paycheck.demo.marklogic.com/", "http://searchwebservices.techtarget.com/originalContent/0,289142,sid26_gci1065615,00.html", "http://www.arendsen.net/", "http://www.opensymphony.com/", "https://twitter.com/share", "https://twitter.com/ghohpe", "https://leanpub.com/37things"]} {"url": "https://www.enterpriseintegrationpatterns.com/ramblings/25_pnpSummit.html", "titulek": "Patterns and Practices Summit - Enterprise Integration Patterns", "h1": "Patterns and Practices Summit", "popis": "It seems like I spend all my time at conferences", "klicova_slova": "", "kanonicka": "", "jazyk": "en_US", "robots_meta": "", "og": {"og:type": "article", "og:locale": "en_US", "og:site_name": "Enterprise Integration Patterns", "og:title": "Patterns and Practices Summit", "og:description": "It seems like I spend all my time at conferences", "og:url": "https://www.enterpriseintegrationpatterns.com/ramblings/25_pnpSummit.html"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Patterns and Practices Summit"}, {"uroven": 2, "text": "Alan Cooper: Death March"}, {"uroven": 2, "text": "Billy Hollis on Declarative UI Development"}, {"uroven": 2, "text": "Ward Cunningham on Patterns"}, {"uroven": 2, "text": "Ted Neward on Design Patterns"}, {"uroven": 2, "text": "PAG Update"}], "markdown": "Gregor's Ramblings\n\n---\n\n# Patterns and Practices Summit\n\nMarch 15, 2005\n\nFind my posts on IT strategy, enterprise architecture, and digital transformation\n at [ArchitectElevator.com](https://architectelevator.com/blog).\n\nTechnical conferences are great. You get to network with your buddies and during the\n sessions you finally have time to get some actual work done! No interruptions like\n phone calls, e-mail etc. Some of my conference weeks are actually the most productive.\n\nThis is my first time at the [Patterns and Practices Summit](http://www.pnpsummit.com/) and I like it quite a bit. The show sports some celebrities like Alan Cooper, Blake\n Stone (ex Borland, now Microsoft), and Ward Cunningham and a nice line-up of people\n who have a lot to say about Microsoft technology: Jim Newkirk, David Trowbridge, Rocky,\n Ron Jacobs, Ted Neward. The event is not huge, so attendees get to hang out with speakers\n quite a bit. I think with a little more marketing this show could become the equivalent\n of TheServerSide Symposium for the .Net world. Unfortunately, there is much less going\n on in the open source world for .Net but that is changing as well. Maybe it would\n be worthwhile to invite [Erik](http://erik.doernenburg.com/projects.html) to talk about Neo or Rod to talk about [Spring.Net](http://sourceforge.net/projects/springnet/).\n\nMy favorite feature of the conference is that each attendee receives a USB Flash drive\n with all the presentation material on it.\n\n## Alan Cooper: Death March\n\nAlan Cooper gave one of his equally insightful and controversial talks on how to end\n the dreaded Death March. He reminds us to focus on user-centric design and to remember\n that in the software world \"Users do not equal customers\". For example, many of us\n use MS Office but very few actually purchased an individual copy at the store. Alan\n also distinguishes very clearly between Design Engineers, who want to do it right,\n and Programmers, who want to ship. Death March often ensues because management puts\n the technical people under pressure to solve problems that are really management problems.\n Subsequently, the team falls into the \"Efficiency vs. Effectiveness trap\": They try\n to build as many features as possible forgetting that features really don't matter.\n What matters is satisfaction.\n\nMy favorite quote: \"It takes technical and management people time to find the right\n level of communication where they can understand each other. Sort of like two modems\n going \"beeeeep, beep, beep\" until they found a compatible bit rate\".\n\n## Billy Hollis on Declarative UI Development\n\nBilly gave a nice talk on smart client development and how to use a more declarative\n programming style to deal with items such as validation. .Net and Visual Studio allow\n the creation of [Extender Providers](http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnadvnet/html/vbnet04082003.asp), controls that can extend properties of other controls. Once the extender control\n is placed on a form, other controls on the same form show a new property in the property\n window. Some of the VB case statements look a little scary but using these controls\n has a nice aspect-like feel to it.\n\n## Ward Cunningham on Patterns\n\nOne might wonder whether there is much more left to be said on patterns. If there\n is one to prove that wrong, it is Ward. Ward has been very active in creating [PatternShare](http://www.patternshare.org), a forum for patterns. It is a little more structured than a Wiki but allows third\n party contributions. Microsoft preloaded the forum with content from the GoF, [Martin's book](http://www.martinfowler.com/books.html), the [Microsoft PnP books](http://msdn.microsoft.com/patterns), [Eric's book](http://domaindrivendesign.org/book/) and [our book](../eaipatterns.html). A big bonus: all the content is available under the [Creative Commons license](http://creativecommons.org/licenses/by/2.0/), pioneered by [Larry Lessig](http://www.lessig.org), not some obscure Microsoft EULA.\n\n## Ted Neward on Design Patterns\n\nTed hosted a very interactive session on design patterns. About half the audience\n declared themselves as regular pattern users so it was interesting to get feedback\n on the accessibility (or lack thereof) of design patterns.\n\nAn interesting question came up regarding the [Service Activator](../MessagingAdapter.html). Isn't a Service Activator just a special form of an [Adapter](http://patternshare.org/default.aspx/Home.GOF.Adapter)? I would be inclined to say that the overall intent shares some similarities (e.g.\n \"make A look like B\") but the context and the scope of the problem are quite different.\n The GoF Adapter only translates from one interface of a class to a different one.\n A Service Activator in contrast has to deal with object-document mapping, asynchrony,\n remote protocols etc. If you define an Adapter broadly enough to cover all these scenarios\n you don't have much left to say about the solution. Therefore in my opinion it helps\n to draw a little more context around the pattern so we can provide more concrete guidance\n with the solution and the resulting context.\n\nThe next interesting question centered on patterns becoming part of the language,\n for example a DataSet being the incarnation of a [Data Transfer Object](http://patternshare.org/default.aspx/Home.PP.DataTransferObject). I pointed out that the DataSet is not actually a language construct but part of\n the .Net library and that it is fairly common for a library to implement very common\n patterns. This initiated another comment from the audience that delegates are in fact\n a language construct and implement for example the [Publish-Subscribe Pattern](../PublishSubscribeChannel.html). That question triggered another thought, namely whether patterns depend on the programming\n language. The consensus was that a pattern should not depend too much on the programming\n language, and if it did it would more likely be called an idiom. Patterns do, however,\n depend on the underlying programming model. That's why patterns for object-oriented\n applications are different from patterns for asynchronous messaging. Delegates are\n an interesting case because they are part of the C# language but they have little\n to do with object-orientation. They are much more aligned with the pipes-and-filters\n style that underlies most of the patterns in our book. So it is interesting to see\n that even within one language different programming models and therefore different\n patterns can emerge.\n\n## PAG Update\n\nMike Kropp, who is running the PAG group, pointed at the apparent lack of higher level\n patterns that let us start with business requirements and trace them through to an\n implementation. Tomorrow, David Trowbridge will demonstrate some of that with the\n [Global Bank example](http://workspaces.gotdotnet.com/gbi) the PAG group has been creating (with some help from ThoughtWorks). I particularly\n like the notion of a \"narrator application\" that visualizes how all the pieces work\n together. Now if that image was only [generated dynamically](11_dependencies.html) :-)\n\nAnother cool quote from Ted Neward: *If you publish an interface you can change it as long as you don't violate the \"2\n cubicle rule\". If the users of your interface are no more than 2 cubes away you can\n simple yell \"foo changed\"*. This underlines the fact that the rules in distributed systems development are very\n dependent on the organizational structure of the development team: if I have control\n over all pieces (e.g. because one team is building all pieces of the application),\n I don't need a whole lot of loose coupling.\n\nNow I am off to SD West. Attendee numbers at SD have been growing nicely with SD West\n 2005 clocking in at over 1100 attendees. Next week it's back to real client work,\n messing around with .asmx Web services, Soap Extension Reflectors, WS-Addressing,\n WSDL and friends.\n\n*Share:*\n\n*Follow:* [Follow @ghohpe](https://twitter.com/ghohpe) [SUBSCRIBE TO FEED](../ramblings.rss)\n\n*More On:* [EVENTS](/ramblings_events.html) [ALL RAMBLINGS](../ramblings.html)\n\nGregor is a cloud architect and author. He is a frequent speaker on asynchronous messaging,\n IT strategy, and cloud.", "znaku_textu": 8186, "slov": 1218, "odkazu": 60, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/ramblings/25_pnpSummit.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 06:54:39", "sha256": "15f7739f8eb096813888ef09842b450b0a80326f2061b42acac141117b1be50d", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://architectelevator.com/blog", "http://www.pnpsummit.com/", "http://erik.doernenburg.com/projects.html", "http://sourceforge.net/projects/springnet/", "http://msdn.microsoft.com/library/default.asp?url=%2Flibrary%2Fen-us%2Fdnadvnet%2Fhtml%2Fvbnet04082003.asp", "http://www.patternshare.org/", "http://www.martinfowler.com/books.html", "http://msdn.microsoft.com/patterns", "http://domaindrivendesign.org/book/", "http://creativecommons.org/licenses/by/2.0/", "http://www.lessig.org/", "http://patternshare.org/default.aspx/Home.GOF.Adapter", "http://patternshare.org/default.aspx/Home.PP.DataTransferObject", "http://workspaces.gotdotnet.com/gbi", "https://twitter.com/share", "https://twitter.com/ghohpe", "https://leanpub.com/37things"]} {"url": "https://www.enterpriseintegrationpatterns.com/ramblings/26_symmetry.html", "titulek": "Can You Say \"Synchronous Asymmetry or Asynchronous Symmetry\"? - Enterprise Integration Patterns", "h1": "Can You Say \"Synchronous Asymmetry or Asynchronous Symmetry\"?", "popis": "In my perennial battle to free distributed system developers' minds from the perils of the call stack mentality I came across another reason why a call stack is not appropriate for distributed applications: the call stack is inherently asymmetric", "klicova_slova": "", "kanonicka": "", "jazyk": "en_US", "robots_meta": "", "og": {"og:type": "article", "og:locale": "en_US", "og:site_name": "Enterprise Integration Patterns", "og:title": "Can You Say \"Synchronous Asymmetry or Asynchronous Symmetry\"?", "og:description": "In my perennial battle to free distributed system developers' minds from the perils of the call stack mentality I came across another reason why a call stack is not appropriate for distributed applications: the call stack is inherently asymmetric", "og:url": "https://www.enterpriseintegrationpatterns.com/ramblings/26_symmetry.html"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Can You Say \"Synchronous Asymmetry or Asynchronous Symmetry\"?"}, {"uroven": 2, "text": "Synchronous Asymmetry"}, {"uroven": 2, "text": "Asynchronous Symmetry"}, {"uroven": 2, "text": "One Step Further"}, {"uroven": 2, "text": "Examples"}, {"uroven": 2, "text": "Conclusion"}], "markdown": "Gregor's Ramblings\n\n---\n\n# Can You Say \"Synchronous Asymmetry or Asynchronous Symmetry\"?\n\nMarch 25, 2005\n\nFind my posts on IT strategy, enterprise architecture, and digital transformation\n at [ArchitectElevator.com](https://architectelevator.com/blog).\n\n## Synchronous Asymmetry\n\nA call stack is inherently asymmetric: one method, the \"caller\", calls another method,\n the \"callee\". While the callee is working the caller is stalled. When the callee is\n done doing the work, control returns back to the caller. The call stack makes sure\n work continues within the caller exactly where it had left off. The asymmetry between\n caller and callee is even represented in the UML notation:\n\nMethod invocations are depicted as a solid line. Return values are optional and if\n included are represented as a dashed line. Within the virtual machine or the processor\n level the asymmetry takes the form of the push/pop and call/ret pairs. Inherently,\n invoking a method or calling a subroutine is different than returning from a method\n or subroutine.\n\n## Asynchronous Symmetry\n\nIn the world of distributed systems, the situation is slightly different. Distributed\n systems can ultimately only communicate through unidirectional data streams (often\n represented as \"sockets\" to the application). If you want to dive deeper down the\n stack, you could also make the claim that they can only communicate via packets or\n voltage sequences on some sort of wire. Either way, this means that both invoking\n a method and returning a result have to be performed in a way that it can be done\n over a data stream. Therefore, each component participating in remote communications\n needs to have sender and receiver modules that can turn objects into data streams\n and vice versa.\n\nThe interesting part is that this causes the solution to look a lot more symmetric.\n For example, in the following picture, which component invokes which one?\n\nYou might assume that the picture is drawn from left to right or from top to bottom\n but any cultural hints aside (they tend to vary across continents anyway) you'll quickly\n see that the picture is essentially symmetric. Both a caller and a callee have to\n send a message and receive a message. The only difference is in the order because\n the caller typically sends a message first and receives a message later, while the\n callee receives a message first and sends a message afterwards. Otherwise there is\n little difference between caller and callee.\n\nThe fact that one message is the method call (i.e., the \"request\" message) and the\n other one is the return (i.e., the \"response\" message) often manifests itself only\n in naming conventions or the presence of a element in the reply message\n that acts as a [Correlation Identifier.](../CorrelationIdentifier.html) Some people who equate service-oriented architectures with Web services and Web services\n with SOAP over HTTP might feel that the request-response model is nicely represented\n in the HTTP protocol: everything that \"goes out\" is a request and everything that\n \"comes back\" is a response. That works as long as you look it from the perspective\n of a client , i.e. a consumer of services. For the service provider everything that\n \"comes in\" is a request and everything that \"goes out\" is a response. Sounds pretty\n symmetric doesn't it? OK, the \"client\" gets to open and close the connection but once\n that is done we are back to \"data stream out, data steam in\". Besides, once you move\n to a call-back model for long-running services, the \"server\" now opens a connection\n to the \"client\" to deliver the \"result\" message. Who is now the caller and who is\n the callee? Sounds confusing? Well, yeah, because this is not the right way to think\n about these kinds of systems.\n\n## One Step Further\n\nThe symmetry becomes even more apparent if you zoom in on the parts that convert from\n the synchronous object-oriented world of the application to the asynchronous data\n stream world of the network (see figure).\n\nWhat does it take to get an object on the wire? You typically have to add any system-specific\n header elements, for example SOAP headers such as [WS-Addressing](http://www.w3.org/Submission/ws-addressing). You then might have to attach any necessary security certificates and finally serialize\n everything into a data stream. You might also want to encrypt parts of the stream.\n The receiving end looks pretty much like the mirror image: you first have to deserialize,\n check any applicable certificates and parse out the header elements to be used by\n the infrastructure. Whether the data you deal with is a \"request\" or a \"response\"\n is totally secondary. Sending a response message still requires you to attach headers,\n to serialize, and to deal with security. These functions are typically implemented\n as a chain of [Intercepting Filters](http://patternshare.org/default.aspx/Home.PP.InterceptingFilter), a pattern that is ultimately based on the [Pipes-and-Filters](../PipesAndFilters.html) principle that forms the basis of most messaging systems.\n\nTherefore, it makes a lot more sense to think about the interaction between the systems\n as an exchange of messages. The systems are primarily message senders and message\n receivers. Only a few higher level indicators (such as header fields) indicate which\n system is the \"client\" or \"caller\" and which system is the \"server\" or \"callee\". Thinking\n about the messages first allows for better code reuse and ultimately a simpler system\n model.\n\n## Examples\n\nIt is nice to see that a number of vendors have come to the same conclusion and are\n steering their Web services products into the direction of messaging. Microsoft makes\n for a good example. While the original ASP.NET Web Services framework was all about\n \"how can I call my method over SOAP?\", the more recent [Web Services Enhancements](http://msdn.microsoft.com/webservices/building/wse/) (WSE) are completely based on a `SoapSender` and `SoapReceiver` model. Yes, they also include `SoapClient` and `SoapServer` classes but these are actually inherited from the `SoapSender` and `SoapReceiver` classes. Both \"clients\" and \"servers\" use the same input filter and output filter\n chain to provide support for WS-Addressing and WS-Security for inbound and outbound\n messages.\n\nIf you look a little bit further down the (time)line you'll easily notice that Microsoft's\n distributed systems strategy has \"messaging\" written all over it. [Indigo](http://msdn.microsoft.com/Longhorn/understanding/pillars/Indigo/default.aspx) is all about messaging.\n\n## Conclusion\n\nA call stack mentality is very useful for synchronous, object-oriented applications\n that live in a single address space. However, when it comes to building distributed\n systems, the call stack mentality haunts us and makes us not realize the real structure\n of the system: sending and receiving messages. With message-based asynchrony we achieve\n symmetry that can save us a lot of duplication and grief.\n\n*Share:*\n\n*Follow:* [Follow @ghohpe](https://twitter.com/ghohpe) [SUBSCRIBE TO FEED](../ramblings.rss)\n\n*More On:* [MESSAGING](/ramblings_messaging.html) [DESIGN](/ramblings_design.html) [ALL RAMBLINGS](../ramblings.html)\n\nGregor is a cloud architect and author. He is a frequent speaker on asynchronous messaging,\n IT strategy, and cloud.", "znaku_textu": 7273, "slov": 1107, "odkazu": 49, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/ramblings/26_symmetry.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 06:54:37", "sha256": "6b73697d3736b57a31b264bb3e5a0cc5b501dfca340e34f55acc7983981060c2", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://architectelevator.com/blog", "http://www.w3.org/Submission/ws-addressing", "http://patternshare.org/default.aspx/Home.PP.InterceptingFilter", "http://msdn.microsoft.com/webservices/building/wse/", "http://msdn.microsoft.com/Longhorn/understanding/pillars/Indigo/default.aspx", "https://twitter.com/share", "https://twitter.com/ghohpe", "https://leanpub.com/37things"]} {"url": "https://www.enterpriseintegrationpatterns.com/ramblings/27_latency.html", "titulek": "Are You Driving a DeLorean or a Toyota? - Enterprise Integration Patterns", "h1": "Are You Driving a DeLorean or a Toyota?", "popis": "When you build a distributed system you have to choose between latency and reliability", "klicova_slova": "", "kanonicka": "", "jazyk": "en_US", "robots_meta": "", "og": {"og:type": "article", "og:locale": "en_US", "og:site_name": "Enterprise Integration Patterns", "og:title": "Are You Driving a DeLorean or a Toyota?", "og:description": "When you build a distributed system you have to choose between latency and reliability", "og:url": "https://www.enterpriseintegrationpatterns.com/ramblings/27_latency.html"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Are You Driving a DeLorean or a Toyota?"}, {"uroven": 2, "text": "Indigo SDR"}, {"uroven": 2, "text": "The Toyota"}, {"uroven": 2, "text": "The DeLorean"}, {"uroven": 2, "text": "No Cheating"}], "markdown": "Gregor's Ramblings\n\n---\n\n# Are You Driving a DeLorean or a Toyota?\n\nMarch 30, 2005\n\nFind my posts on IT strategy, enterprise architecture, and digital transformation\n at [ArchitectElevator.com](https://architectelevator.com/blog).\n\n## Indigo SDR\n\nI am in Seattle at Microsoft's Indigo SDR (Strategic Design Review). Oops -- now Ari\n will send me to jail again for blogging about this. Oh wait, this time the bits are\n available as a CTP (Community Technology Preview), so I guess I am legit. Actually,\n this post is not really about Indigo but the result of a great discussion we had at\n the birds of a feather roundtables. I'll save the Indigo ramblings for another posting\n - I need to get that stuff setup on my machine first.\n\n## The Toyota\n\nIndigo implements [WS-ReliableMessaging](http://schemas.xmlsoap.org/ws/2005/02/rm/), a protocol overlaid over SOAP that makes message transmission reliable even if the\n underlying transport is not (e.g., HTTP) or if the communication contains unreliable\n intermediaries. The way it accomplishes this is by incorporating a retry and acknowledgment\n protocol that resubmits failed messages. The receiver is [idempotent](../IdempotentReceiver.html) so it can filter out potential duplicate resends. Combined with a persistent send\n buffer this makes the message transmission reliable even if the underlying network\n or protocol is not (if you use SOAP over a reliable transport like JMS you generally\n won't need WS-ReliableMessaging). The apparent trade-off is that the retransmission\n takes time. The less reliable the network is the longer it will take to successfully\n transmit a series of messages. So you make a conscious decision to trade off speed\n (latency) for more reliability, sort of like buying a Toyota (since they stopped making\n the Supra). This approach is definitely desirable for many business applications where\n a message can mean \"Order over $1 million\". Waiting a few seconds is definitely better\n than losing the message.\n\n## The DeLorean\n\nSome other systems have very different requirements. A great example is the [networked version of Halo 2](http://stuffo.howstuffworks.com/halo-network.htm). A fast paced first-person shooter game like Halo cannot afford to allow significant\n of latency between machines. If I am fighting an opponent I need to see where the\n other player is so I can aim accurately. Likewise if I am shot at I want to be able\n to see the fire so I can duck or run. A latency of even a few hundred milliseconds\n would make the game unplayable. Therefore, the developers of Halo 2 decided to minimize\n latency between machines. This meant, though, that they had to give up reliability.\n Sort of like having a DeLorean with Flux Capacitor but a spotty reliability record.\n They need to be prepared for the fact that a transmission might get lost. They also\n need to acknowledge the fact that there is inherent uncertainty about the state of\n the other machine. Because there is a delay between the actions on one machine and\n the transmission of the information, one user might see a slightly different world\n than another user. They use predictive algorithms to try to minimize surprises. For\n example, if the screen shows another player running from left to right, the local\n display will show the person continuing to run in the same direction if it has not\n received any updates. Continuing in the same direction is the best guess the local\n machine can make in the absence of more accurate information.\n\n## No Cheating\n\nAn RPC-based system model is based on the basic assumption that latency and unreliability\n do not exist. Unfortunately, for a distributed system these are bad assumptions. You\n can often trade off one aspect for the other but it is a definite trade-off. The more\n reliable you want your system to be the more latency you need to be able to accommodate.\n In such a system you need to be prepared for the fact that information does not travel\n instantaneously. This means you should be prepared to deal with long-running interactions,\n out-of-sequence messages, correlation, orchestration and so on. If you want to reduce\n latency you usually have to give up some reliability (or make your system not distributed).\n Once again there is no free lunch...\n\n*Share:*\n\n*Follow:* [Follow @ghohpe](https://twitter.com/ghohpe) [SUBSCRIBE TO FEED](../ramblings.rss)\n\n*More On:* [DESIGN](/ramblings_design.html) [MESSAGING](/ramblings_messaging.html) [ALL RAMBLINGS](../ramblings.html)\n\nGregor is a cloud architect and author. He is a frequent speaker on asynchronous messaging,\n IT strategy, and cloud.", "znaku_textu": 4570, "slov": 712, "odkazu": 46, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/ramblings/27_latency.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 06:54:36", "sha256": "bc401900baa72dbdc39622af0923b59c9eebff7817978b2fcd2046cdda1c6279", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://architectelevator.com/blog", "http://schemas.xmlsoap.org/ws/2005/02/rm/", "http://stuffo.howstuffworks.com/halo-network.htm", "https://twitter.com/share", "https://twitter.com/ghohpe", "https://leanpub.com/37things"]} {"url": "https://www.enterpriseintegrationpatterns.com/ramblings/28_asynchrony.html", "titulek": "Will the Real Asynchrony Please Stand Up? - Enterprise Integration Patterns", "h1": "Will the Real Asynchrony Please Stand Up?", "popis": "On a recent project we developed a Web services framework that supports asynchronous callbacks and asynchronous invocation with polling", "klicova_slova": "", "kanonicka": "", "jazyk": "en_US", "robots_meta": "", "og": {"og:type": "article", "og:locale": "en_US", "og:site_name": "Enterprise Integration Patterns", "og:title": "Will the Real Asynchrony Please Stand Up?", "og:description": "On a recent project we developed a Web services framework that supports asynchronous callbacks and asynchronous invocation with polling", "og:url": "https://www.enterpriseintegrationpatterns.com/ramblings/28_asynchrony.html"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Will the Real Asynchrony Please Stand Up?"}, {"uroven": 2, "text": "Asynchronous Invocation Patterns"}, {"uroven": 2, "text": "Patterns Everywhere"}, {"uroven": 2, "text": "Asynchronous Client Library"}, {"uroven": 2, "text": "Asynchronous Service Handler"}, {"uroven": 2, "text": "Asynchronous Conversation"}, {"uroven": 2, "text": "Conclusion"}], "markdown": "Gregor's Ramblings\n\n---\n\n# Will the Real Asynchrony Please Stand Up?\n\nMay 15, 2005\n\nFind my posts on IT strategy, enterprise architecture, and digital transformation\n at [ArchitectElevator.com](https://architectelevator.com/blog).\n\n## Asynchronous Invocation Patterns\n\nWe all know by now that synchronous, object-oriented applications are a thing of the\n past. If you want to be cool these days you have to be asynchronous. Hey, even [Starbucks](18_starbucks.html) figured that out! Anyway, our last project had \"asynchronous service invocation\"\n already in the list of the requirements so very little convincing was necessary. Being\n a huge fan of asynchrony and patterns, I quickly started to recite asynchronous invocation\n patterns. Having learned that quoting other people's books reduces the amount of\n eye rolling and sighing, I described the patterns in Chapter 8 of [Remoting Patterns](http://www.amazon.com/exec/obidos/ASIN/0470856629/enterpriseint-20). This chapter has a nice side-by-side comparison of asynchronous interactions between\n systems, such as *Fire-and-Forget*, *Callback*, *Polling*.\n\n## Patterns Everywhere\n\nThe great thing about patterns is that they often apply to different contexts and\n levels of abstraction. As such they allow us to transfer knowledge and experience\n gained in one area to another area or another level of abstraction. This holds particularly\n true in areas such as message flows or workflow processing that can span domains as\n diverse as fluid dynamics, EAI messaging, manufacturing optimization, coffee shops,\n or composite services.\n\nInteraction patterns enjoy a wide range of applicability as well, particularly in\n the world of event-driven applications and message-based integration. Unfortunately,\n this wide applicability can increase the chance of misunderstandings, especially if\n we deal with remote communication. When I tell a coworker that I use \"Asynchronous\n Callback\" for my Web service he or she might think that I use an asynchronous client\n API. Another colleague who is developing a service provider might think that I want\n to invoke his service code through threads or delegates. Another person yet might\n think to use message-oriented middleware between components as supposed to HTTP. These\n examples portray (at least) three different views that exist when we look at communicating\n systems:\n\n- The client (consumer) view\n- The service (provider) view\n- The conversation (observer> view\n\nLet's look at asynchrony from all three viewpoints: (Depending on the nature of the\n conversation the roles may be more manifold than simply consumer and provider but\n let's stick with those two for now to exemplify an entity that sends a message and\n expects a response, and an entity that accepts requests and returns response, respectively.)\n\n## Asynchronous Client Library\n\nIt is very common for Web services frameworks to offer asynchronous client libraries.\n This functionality is often already baked into the client stub that the toolkit generates\n from the provider's WSDL. For example, on the .Net platform the client proxy generates\n three methods for every operation listed in the WSDL document. For example, if the\n provider exposes an operation `GetLoanQuote`, the client proxy exposes the methods:\n\n```\npublic LoanQuoteReply GetLoanQuote(LoanQuoteRequest LoanQuoteRequest) {...}\npublic IAsyncResult BeginGetLoanQuote(LoanQuoteRequest LoanQuoteRequest, AsyncCallback callback, object asyncState) {...}\npublic LoanQuoteReply EndGetLoanQuote(IAsyncResult asyncResult) {...}\n```\n\nThe `BeginGetLoanQuote` and `EndGetLoanQuote` methods allow the consumer to invoke the service asynchronously. Or do they? Well,\n it depends on your point of view. These methods are wrappers around the `BeginInvoke` and `EndInvoke` methods in the `SoapHttpClientProtocol` base class and provide for an asynchronous (i.e. non-blocking) programming model\n for the client application. This type of asynchrony is quite useful to keep the client\n application from sitting in a loop waiting for a response from a remote service. In\n fact, it is highly recommended to use the BeginXXX and EndXXX methods (and in .Net\n 2.0 we get a nicer version of these methods based on event handlers). However, this\n type of asynchrony has very little to do with the interaction between consumer and\n provider. Whether the client application calls `GetLoanQuote` or `BeginGetLoanQuote` / `EndGetLoanQuote` is completely invisible to the service provider. The client proxy will still open\n an HTTP connection, send the request, and keep the connection open until the response\n is received. From an observer point of view, this interaction looks rather RPC-like,\n i.e. synchronous.\n\n## Asynchronous Service Handler\n\nOn the provider side things naturally look a bit more synchronous: you need to accept\n a request and process it. The service can't really buck out before the response is\n computed. However, many service providers maintain a thread pool so that individual\n requests can be handled by a pool of worker threads. From the request handler's point\n of view the invocation of a worker thread is asynchronous -- the handler does not\n block and wait until the handler completes processing the request. Instead, the handler\n managers many workers at the same time. This type of processing is commonly implemented\n in most [Service Activators](../MessagingAdapter.html) because it provides efficient use of resources and good throughput. But again, this\n asynchrony is related to the local programming model inside the server process. It\n has no impact on the client programming model or the conversation protocol between\n consumer and provider.\n\n## Asynchronous Conversation\n\nIf we want to achieve an asynchronous interaction model between client and server\n (for example to avoid holding connection resources for the entire duration of a long-running\n interaction) we need to look outside of the consumer and provider programming models.\n We can, for example, choose a message-oriented communications layer such as JMS or\n MSMQ. Or we can use two separate HTTP connections -- one for the request message and\n one for the response message. In either case we can use the familiar asynchronous\n messaging patterns such as [Correlation Identifier](../CorrelationIdentifier.html) and [Return Address](../ReturnAddress.html) to manage the relationship between the two messages. Using HTTP is still not asynchronous\n from the viewpoint of a single message, i.e. the sender of a message still has to\n wait for the receiver to respond to the request to establish a connection and until\n the data is transmitted. However, it does provide asynchrony from the viewpoint of\n the overall conversation. No conversation state (see [Enemy of the State](20_statelessness.html)) is held in the connection between consumer and provider. Instead, the state travels\n with the message that is sent by the consumer to the provider and back.\n\n## Conclusion\n\nAsynchrony is a broad concept and not surprisingly there are many incarnations. All\n types of asynchrony have their place but are very different. Therefore, it is important\n to avoid confusion by specifying the context when we use the asynchronous pattern\n names.\n\nInterestingly the same viewpoints apply to the notion of transactions. A lot of messaging\n layers provide client-side transactions or provider-side transactions but no conversation\n transactions. This is a very interesting topic, but it'll have to wait for another\n rambling...\n\n*Share:*\n\n*Follow:* [Follow @ghohpe](https://twitter.com/ghohpe) [SUBSCRIBE TO FEED](../ramblings.rss)\n\n*More On:* [DESIGN](/ramblings_design.html) [MESSAGING](/ramblings_messaging.html) [CONVERSATIONS](/ramblings_conversations.html) [WEBSERVICES](/ramblings_webServices.html) [PATTERNS](/ramblings_patterns.html) [ALL RAMBLINGS](../ramblings.html)\n\nGregor is a cloud architect and author. He is a frequent speaker on asynchronous messaging,\n IT strategy, and cloud.", "znaku_textu": 7904, "slov": 1131, "odkazu": 49, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/ramblings/28_asynchrony.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 06:54:35", "sha256": "a504b20be47359c276427abbcede315e356f1f6d46be8cc3808c207d8be7eee9", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://architectelevator.com/blog", "http://www.amazon.com/exec/obidos/ASIN/0470856629/enterpriseint-20", "https://twitter.com/share", "https://twitter.com/ghohpe", "https://leanpub.com/37things"]} {"url": "https://www.enterpriseintegrationpatterns.com/ramblings/29_teched.html", "titulek": "Microsoft TechEd 2005 Digest - Enterprise Integration Patterns", "h1": "Microsoft TechEd 2005 Digest", "popis": "This year I actually missed putting in a proposal for TechEd", "klicova_slova": "", "kanonicka": "", "jazyk": "en_US", "robots_meta": "", "og": {"og:type": "article", "og:locale": "en_US", "og:site_name": "Enterprise Integration Patterns", "og:title": "Microsoft TechEd 2005 Digest", "og:description": "This year I actually missed putting in a proposal for TechEd", "og:url": "https://www.enterpriseintegrationpatterns.com/ramblings/29_teched.html"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Microsoft TechEd 2005 Digest"}, {"uroven": 2, "text": "Celebrity Hunting"}, {"uroven": 2, "text": "Best Quotes"}, {"uroven": 2, "text": "Web Services Contract First"}, {"uroven": 2, "text": "Book Ego"}, {"uroven": 2, "text": "New Track - CSI"}, {"uroven": 2, "text": "C# 2.0"}, {"uroven": 2, "text": "Web Services Support in Visual Studio 2005"}, {"uroven": 2, "text": "WSE 3.0"}, {"uroven": 2, "text": "Don Box and DSLs"}], "markdown": "Gregor's Ramblings\n\n---\n\n# Microsoft TechEd 2005 Digest\n\nJune 7, 2005\n\nFind my posts on IT strategy, enterprise architecture, and digital transformation\n at [ArchitectElevator.com](https://architectelevator.com/blog).\n\n## Celebrity Hunting\n\nConferences are a great place to connect or reconnect with other people who like to\n talk about technology but who are notoriously busy. This time I managed to spend a\n few late nights with [Ingo Rammer](http://www.thinktecture.com/staff/ingo/weblog/) and [Christian Weyer](http://weblogs.asp.net/cweyer/) from [Thinktecture](http://www.thinktecture.com) and [Beat Schwegler](http://blogs.msdn.com/beatsch/) from Microsoft EMEA. It was not until this TechEd it became apparent to me for the\n first time how many of the foreign speakers at TechEd are German. It was good to see\n Ingo, Christian, Beat, Clemens, and Jochen speak -- it is nice to hear a familiar\n accent :-)\n\nI also got to hang out with a lot of the Indigo guys like Steve Schwartz, Shy Cohen.\n These guys are always fun to hang out with. Coming in from the West Coast provided\n the distinct advantage that 3am feels more or less like midnight to me. Naturally,\n I have little to report about the 9am keynote talks :-)\n\n## Best Quotes\n\nConferences are a great place to steal sound bites from other speakers. The best part\n is -- we have most of them on tape! Here the best ones I can remember:\n\n\"It all sucks\" - Don Box (summarizing his talk)\n\n\"Integrating = Hooking Shit Together\" - Pat Helland via Don Box\n\n\"People who write XSLT really ought to be killed\" - Clemens Vasters\n\n\"We don't need faster cars but wider bridges\" - Clemens Vasters (talking about throughput of messaging systems)\n\n\"I am glad my alias is scohen and not shyc, which would be pronounced \"Scheisse\" -\n Shy Cohen\n\n\"I think the people who designed the MOF had a bad childhood and were hit by their\n mothers\" - Don Box\n\n\"Why should people be in this session? Because they are confused!\" - Don Box\n\n\"You like to go above the call of duty\" - My hand writing analyst\n\n\"Oh, I did not realize you are *the* Gregor who wrote that patterns book. That guy seemed so... smart\" -- Yumai Chang\n\n\"Gregor, I don't think you are desperate enough.\" - Yumai Chang\n\n\"You want to have fun, you come to my room. You don't want to have fun, you don't\n come.\" - unidentified drunk woman at the hotel bar at 2am.\n\n\"His T-shirt is printed in Braille. You have to touch it to read it\" - Gregor (talking to Beat and attractive lady).\n\n## Web Services Contract First\n\nChristian Weyer is working on a quite interesting tool called [WSCF](http://www.thinktecture.com/Resources/Software/WSContractFirst) - Web Services Contract First. This tool addresses a specific issue with the apsx\n Web services development approach that can be summarized as \"design message schemas\n first, but let ASP.NET generate the WSDL\". This approach is commonly used and is definitely\n preferable to the \"code first\" approach. We actually outline the process in the [Implementing Service-Oriented Integration with ASP.NET](http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnpag/html/implsoiwithnet.asp) pattern in the [Integration Patterns](http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnpag/html/implsoiwithnet.asp) book that I wrote with the Patterns & Practices folks in Redmond. The issue with\n this approach is that the schemas referenced by the WSDL are not the real schemas\n you created at the beginning to define the message formats. Instead, .Net generates\n classes from the schema and then inspects these generated classes to render schemas\n to be included in the WSDL document. This works OK only as long as you trust .NET\n that this round-trip is 100% loss-less. Unfortunately, loss-less bidirectional conversion\n between the world of documents and the world of objects is a tricky proposition --\n anyone who has taken a closer look at the `XmlSerializer` can tell endless stories about this subject. Additionally, if someone modifies the\n classes in the generated service code, your WSDL has magically changed without any\n corresponding changes to the originally design message schemas. WSCF corrects this\n whole round-tripping issue by modifying the WSDL generated from .Net to include the\n original schema files rather than using the schemas generated from the classes by\n the ASP.NET infrastructure.\n\n## Book Ego\n\nI stopped by the conference book store and realized that [Enterprise Integration Patterns](../books1.html) is now in its 5th printing :-) We also had an interesting discussion about the title\n of the book. Why is the book called Enterprise Integration Patterns when 90% of the\n content is about messaging? Well, when we were dciding on a title we put our marketing\n hat on :-). Since it was going to be the first book about patterns in the integration\n space we wanted to put the broadest possible footprint down. If there was one book\n about integration and patterns, we wanted it to be ours. Therefore the name \"Enterprise\n Integration Patterns\". It's analogous to the infamous \"Design Patterns\", which is\n also not called \"Object-oriented design patterns using C++ and SmallTalk.\" The book\n defined a whole new category and underlined that fact with a short and broad title.\n Either way, it seems that our title has not hurt book sales all that much :-)\n\nMy book signing event went surprisingly well, which means that either people liked\n our talk so much that they rushed to get the book or they were more confused than\n before and felt they need to read the book to get anything out of the topic. I hope\n it was the former :-)\n\n## New Track - CSI\n\nThis year's TechEd featured a new track, CSI. No, not the tv show, but the Connected\n Systems Infrastructure. This term is the new umbrella for all things SOA, distributed\n systems and business processes. Most interesting talks related to BizTalk, Indigo\n and Web Services are now hosted under this track. In fact, there is only one Indigo\n talk at the whole show because most of that material is being saved for PDC in Fall.\n Interestingly, Clemens' async talk ran under CSI while Ted and my talk ran under ARC.\n I hope there won't be too much overlap. On a related note, the BizTalk Server2006\n Beta is being handed out at the show.\n\n## C# 2.0\n\nAnders Hejlsberg gave a nice overview over the new C# language features. While I am\n a little worried that the language is becoming bloated, most of the new features seem\n useful. On top of the list are obviously the generics. Generics allow types to be\n used as parameters to define methods and classes. These type parameters are instantiated\n at run-time. However, the type checking is performed at declaration time. The main\n difference between C# generics is that C# generics are a platform feature, i.e. the\n CLR is aware of them. In the Java world they are a pure language features, i.e. they\n are compiled into regular JVM byte code through a process called type erasure. This\n difference can be explained with the longer legacy of the Java platform, which severely\n limits their ability to change the JVM and the libraries. On a more subtle note, Java\n generics are also limited to reference types whereas C# can handle both reference\n and value t\\ypes.\n\nC# 2.0 will also have anonymous methods, something very similar to \"blocks\" found\n in other programming languages. Blocks are very useful when you would like to pass\n a piece of code to a method, something that is difficult to do with the current C#\n syntax. The best example is a method that can iterate over a collection and allows\n you to pass in a piece of code to be executed for each collection element. You can\n accomplish this today with delegates but it requires a fair amount of typing plus\n a \"home\" for the delegate method. With anonymous methods you can pass in a method\n body as a delegate without actually having to declare the method:\n\n```\ndelegate bool Predicate(T item);\npublic List FindAll(Predicate filter) {...}\n...\naccounts.FindAll(delegate(Account a) { return a.Balance < 0; } \n```\n\nNullable types are another feature that should bring some relief to code that has\n to deal with optional XML elements or attributes. We now can declare any variable\n type as nullable:\n\n```\nint? foo = null;\n```\n\nYou can check whether a variable has a value via the `HasValue()` method. This is definitely nicer than having to use `Integer` types and comparing them against `null` all the time. It also does away with the clunky `[XmlIgnore]public bool fooSpecified;` construct that would indicate to the XmlSerializer that the bool should be set to\n `true` if and only if a value for `foo` was specified.\n\n## Web Services Support in Visual Studio 2005\n\nJohn Bristowe gave a great talk on the new features in VS 2005 that make developing\n Web services with ASP.Net 2.0 easier. Some of the highlights:\n\n- IXmlSerializable came out of the shadow and is now officially supported. By implementing\n this interface you can process incoming and outgoing SOAP messages via `XmlReader` and `XmlWriter` without having to hold the complete object model in memory. This is very useful for\n large messages or if you want to have direct access to a small subset of document\n elements. The \"official\" alternative so far was to declare your webmethod with a XmlElement\n parameter but that approach does in fact build a whole DOM tree. Even better news\n is that even if you implement `IXmlSerializable` you can still specify a schema to be used for the WSDL generation. As a result, your\n operation looks to the outside just like a method that takes a strongly typed parameter.\n- The new client libraries support automatic proxy discovery, which should alleviate\n the need to configure app.config with the proxy information.\n- Enhanced network libraries allow you go get a lot more information about the status\n of the network connection. For example, you can find out on which ports your machine\n is listening. You can also register your application to be notified when the network\n connection becomes available or unavailable.\n- A number of folks have already described the new event-based asynchronous client proxies\n that are generated by wsdl.exe or the IDE. Referring back to my previous [rambling](28_asynchrony.html) it is important to realize that this asynchrony is a client-side only asynchrony.\n Still it is a nicer programming model than the old `BeginFoo` and `EndFoo` methods.\n\n## WSE 3.0\n\nI like the Web Service Enhancemets (WSE), commonly referred to as \"wissie\". WSE includes\n a set of SoapExtension filters that provide support for WS-Addressing and WS-Security.\n It also provides a nice programming model that supports both an RPC as well as a message-oriented\n view of the interaction between a service provider and service consumer. Mark Fussel\n gave a great talk on WSE 3.0. Contrary to earlier claims there will be a 3.0 release\n of WSE. The Community Technology Preview (CTP) release has just been made available.\n To me the most notable additions are:\n\n- The WSE team created a set of common security scenarios (e.g., \"Username over Certificate\")\n and has created a wizard that helps configure all the pieces according to the scenario.\n I am sure everyone who has played with certificates and WSE configuration will appreciate\n this new feature.\n- WSE 3.0 will also have a MSMQ transport built-in. A number of people had built this\n function on their own so it is nice to have it as part of the official stack now.\n Obviously I am a big fan of MSMQ because it provides a very nice asynchronous messaging\n infrastructure.\n- WSE 3.0 will also make it easier to host .asmx Services outside of IIS and support\n alternative protocols (such as MSMQ). The independence of IIS and therefore the independence\n from the transport protocol is a great step into the right direction. On our last\n project we had to build quite a bit of code to allow services to be invoked synchronously\n and asynchronously.\n\n## Don Box and DSLs\n\nDon Box wowed a large crowd with his funny yet insightful presentation style. This\n time he mused about metadata, models, and DSL's (Domain Specific Languages). BTW,\n he defined the verb \"to model\" as \"write stuff down\". I share Don's view (I guess\n if I didn't I would not be dumb enough to publicly disagree with him...) that models\n are something extremely useful but that a lot of the current OMG stack of meta-meta-models\n is far too much for most developers [[more on my view on models](11_dependencies.html)]. According to Don, some of these folks \"have simply gone meta\". He suggests that\n there are only two levels: the concrete level and the other level. What we are therefore\n looking for is an easier way to model our systems and use transformations to convert\n these models into something executable. The Visual Studio 2005 DSL tools are definitely\n heading in that direction but I think we are still pretty early in the cycle.\n\nI think that it will become more and more common for systems to be developed in more\n than one language. This multi-language phenomenon has little to do with C# vs. Java\n but with the advent of more Domain Specific Languages. Especially in the area of Web\n Services and integration a lot of new languages have already arrived. We have XSLT\n for document transformations, XPATH and XQuery to extract data from XML documents;\n we use rules engines that are based on new languages and use BPEL for orchestrations.\n Many times, these languages are hidden behind some [visual veneer](02_doodleware.html) to shield the user from the (sometimes cumbersome) syntax. Nevertheless, the general\n adoption of these languages is pretty low (maybe the low number of XSLT programmers\n is a result of [Clemens](http://staff.newtelligence.net/clemensv/) following through on his opinions about XSLT programmers... ). Seriously though,\n the new languages are often powerful and expressive but require the developer to adapt\n to a whole new programming model. Also, since many of these languages are based on\n standards or are embedded in commercial tools they have to be fairly general purpose\n to maximize their applicability.\n\nDomain Specific Languages try to provide the benefits of purpose-built languages but\n aim to make it much easier to define them and to use them. They plan on accomplishing\n this by providing better tools and by making the languages smaller in scope. For example,\n one would not create a language that can transform any XML document but more likely\n a language that can deal with specific XML documents that are used by the application\n at hand.\n\nJochen Seemann gave an early preview to the Domain Specific Language tools in the\n upcoming Visual Studio 2005. This is a bigger topic than fits into this rambling but\n here is my quick summary. VS 2005 focuses solely on visual languages by using a meta-model\n that is based on a directed graph. You can define nodes and connectors and equip them\n with specific attributes, visuals and composition rules. Then you can write code generation\n classes for each type of node and connector you defined. This allows you to programm\n (some might say \"doodle\"...) in a Visio-like environment but with a vocabulary and\n constraints that you define.\n\n**Update**: [Martin Fowler](http://www.martinfowler.com) posted an excellent article on [Language Workbenches](http://www.martinfowler.com/articles/languageWorkbench.html) -- tools to design DSLs.\n\n*Share:*\n\n*Follow:* [Follow @ghohpe](https://twitter.com/ghohpe) [SUBSCRIBE TO FEED](../ramblings.rss)\n\n*More On:* [EVENTS](/ramblings_events.html) [ALL RAMBLINGS](../ramblings.html)\n\nGregor is a cloud architect and author. He is a frequent speaker on asynchronous messaging,\n IT strategy, and cloud.", "znaku_textu": 15566, "slov": 2516, "odkazu": 56, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/ramblings/29_teched.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 06:54:34", "sha256": "748e631d126656f762d5a4bcc5eb792eb2aa5863ab0dd898a8e61e6a1a8b4e3c", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://architectelevator.com/blog", "http://www.thinktecture.com/staff/ingo/weblog/", "http://weblogs.asp.net/cweyer/", "http://www.thinktecture.com/", "http://blogs.msdn.com/beatsch/", "http://www.thinktecture.com/Resources/Software/WSContractFirst", "http://msdn.microsoft.com/library/default.asp?url=%2Flibrary%2Fen-us%2Fdnpag%2Fhtml%2Fimplsoiwithnet.asp", "http://staff.newtelligence.net/clemensv/", "http://www.martinfowler.com/", "http://www.martinfowler.com/articles/languageWorkbench.html", "https://twitter.com/share", "https://twitter.com/ghohpe", "https://leanpub.com/37things"]} {"url": "https://www.enterpriseintegrationpatterns.com/ramblings/30_configure.html", "titulek": "Configure This! - Enterprise Integration Patterns", "h1": "Configure This!", "popis": "Having been to a number of conferences and their attached expo floors recently it was not surprising that I was not able to escape the line \"this tool does not require programming, everything is done through configuration\"", "klicova_slova": "", "kanonicka": "", "jazyk": "en_US", "robots_meta": "", "og": {"og:type": "article", "og:locale": "en_US", "og:site_name": "Enterprise Integration Patterns", "og:title": "Configure This!", "og:description": "Having been to a number of conferences and their attached expo floors recently it was not surprising that I was not able to escape the line \"this tool does not require programming, everything is done through configuration\"", "og:url": "https://www.enterpriseintegrationpatterns.com/ramblings/30_configure.html"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Configure This!"}, {"uroven": 2, "text": "Good Intentions"}, {"uroven": 2, "text": "Levels of Abstraction"}, {"uroven": 2, "text": "Variability Points"}, {"uroven": 2, "text": "Domain-Specific Languages"}, {"uroven": 2, "text": "Configuration or Programming?"}, {"uroven": 2, "text": "Configuration Progamming"}, {"uroven": 2, "text": "Conclusion"}], "markdown": "Gregor's Ramblings\n\n---\n\n# Configure This!\n\nJuly 5, 2005\n\nFind my posts on IT strategy, enterprise architecture, and digital transformation\n at [ArchitectElevator.com](https://architectelevator.com/blog).\n\nHaving been to a number of conferences and their attached expo floors recently it\n was not surprising that I was not able to escape the line \"this tool does not require\n programming, everything is done through configuration\". Hearing this tag line for\n the third or fourth time got me wondering, \"what really is the difference between\n coding and configuring?\"\n\n## Good Intentions\n\nJust to be sure, this is not intended to be vendor bashing (even though it can sure\n be tempting sometimes :-) ). Seriously, buying tools can save a lot of development\n work that we can buy off the shelves. These tools make our lives easier because they\n do a lot of the grunt work for us. Libraries and tools also serve an important community\n function by widening the reach of a specific technology. Yeah, a lot of us guys who\n like to have dinner with the Microsoft Indigo team or the Java OSS crowd for fun sure\n don't mind dabbling with WSDL elements and writing our own XML serializers. However,\n if your main task is to solve business problems and your boss won't let you go to\n TechEd because he (or she) considers it a waste of time, having a tool that lets you\n stay out of the nitty gritty can be a lifesaver.\n\n## Levels of Abstraction\n\nThe primary technique of making developers' lives easier is to raise the level of\n abstraction at which they have to work. Very few of us still write assembly code,\n read individual file blocks from a disk, or put individual packets onto the network.\n This level of detail has been nicely wrapped behind high-level languages, file and\n socket streams. These programming abstractions are very convenient (try doing without\n them!) and dramatically increase productivity. All I have to do is know a file name\n or a URI and bytes come streaming in and out. Of course, if abstractions are this\n useful, the question is whether we can add new abstraction layers to increase productivity\n further. If we are able to provide enough abstraction, we might be able to do away\n with coding and can create a solution simply by configuration. Or can we?\n\n## Variability Points\n\nIn our quest to provide more and more abstraction and to simplify the programming\n model further and further we come up to an interesting challenge: We want to simplify\n our world but we do not want to lose too much flexibility. If I need to store individual\n data records on my hard disk (for example to create a rapid direct-access indexing\n system) a file stream abstraction doesn't do me much good. To make our life actually\n easier, it's not enough to just paint a thin [visual veneer](02_doodleware.html) over the existing programming interface. Instead we have to actively reduce complexity,\n and therefore likely some flexibility. This exercise is quite similar to the [architecture guessing game](22_extensibility.html) I talked about before. If we take away the wrong things, our abstraction is limited\n in its usefulness. If we take away too few things, we didn't accomplish much in terms\n of simplifying our (programming) life.\n\n## Domain-Specific Languages\n\nTwo ways lead us out of the abstraction and variability conundrum. For one, you can\n try to get more people to think along your mental model. This'll make them less likely\n to desire features that you eliminated when you created the abstraction. This is the\n approach of the evangelists and, to some extend, the patterns authors. Alternatively,\n you can avoid limiting yourself to a single general-purpose abstraction, instead providing\n different abstractions for different purposes. This approach is great as long as you\n can make creating these abstractions easy, which is usually not the case. This is\n the very problem the Domain-Specific Language (DSL) folks are trying to solve by providing\n [Language Workbenches](http://www.martinfowler.com/articles/languageWorkbench.html). The workbenches are tools to create new languages that provide specific abstractions.\n DSLs are still in very early stages but promise to become quite useful.\n\n## Configuration or Programming?\n\nBut back to our original question. What kind of abstraction deserves to be called\n \"configuration\" versus \"high-level programming\"? We are often led to believe that\n everything that sits in an XML file can be considered configuration. This can be true\n for very simple scenarios, but XSLT programs are also XML files, and those things\n are definitely programming, and not for the faint of heart at that. A better criterion\n that comes to mind is whether what you create is executable. If the algorithm is predefined\n and I only supply a few key values this is more likely to be considered configuration.\n On the other hand, calling a method with parameters is not really any different and\n is certainly considered programming. Also, a \"configuration\" value can decide between\n different algorithms, so it has some impact on the program execution. Many development\n platforms actually allow us to accomplish the same tasks via configuration or code,\n depending on our preference (Microsoft Indigo is a good example where this is done\n fairly consistently).\n\nSo how about distinguishing by whether the things you enter are executed in a specific\n order. delineating pure data from a set of sequential instructions. This looks like\n a reasonable separation, even though some definite gray areas remain, especially when\n using declarative programming languages, for example to configure rules engines or\n our favorite language XSLT. Declarative languages focus on specifying relationships\n between constructs and do typically not presuppose a specific execution order as procedural\n languages would do. Also, aren't coding instructions just data for the execution engine?\n Apparently, it is still largely a matter of perspective.\n\nWhen you make a system configurable, consider carefully whether you are really just\n configuring or whether you are actually programming at a high level of abstraction.\n Considering your mechanism as programming can remind of the value of proper tool support\n like editors or validation.\n\n> We once built an application from individual components that were composed via channels,\n> with \"configuration\" files telling a component which channel(s) to receives messages\n> from and which ones to send message to. Being a common setup in EAI tools, where adapters\n> and such are configured to talk to each other via specific channel names, we stored\n> the data in local XML files. After a while, though, a lot of errors in the system\n> occurred due to misconfiguration: components would not talk to each other because\n> the channel names were misconfigured or the flow of messages was wrong because we\n> chained together the right components in the wrong order. This started to get us thinking\n> that what we created was not a simple configuration file but really a high-level programming\n> model for the\n> \n> composition layer\n> \n> of our system.\n\nEnding the shadow life of the config files and making them first class citizens caused\n us to check these files into source control like any other source file, and to create\n a set of validation and management tools to perform efficient debugging and troubleshooting\n (see my related [earlier post](19_composing.html)) . It also reminded us that providing this \"configuration\" is useful but it does\n not automatically mean that it is trivial or does not require skilled developers.\n\nSo, I'd summarize my advice on configuration as such:\n\n> If changing settings can break your application, you better consider that coding.\n\n## Configuration Progamming\n\nNow that I am back on-line I can include a link to a [dictionary entry on Configuration Programming](http://foldoc.org/configuration%20programming). Here it states that:\n\n> Configuration Programming\n> \n> : An approach that advocates the use of a separate configuration language to specify\n> the coarse-grain structure of programs. Configuration programming is particularly\n> attractive for concurrent, parallel and distributed systems that have inherently complex\n> program structures.\n\nThis definition highlights that academia have been thinking about the gray area between\n configuration and programming for some time. One example of a language designed specifically\n for the described purpose is [Darwin](http://citeseer.ist.psu.edu/rd/0%2C192436%2C1%2C0.25%2CDownload/http://citeseer.ist.psu.edu/cache/papers/cs/241/http:zSzzSzhypatia.dcs.qmw.ac.ukzSzdatazSzukzSzdse.doc.ic.ac.ukzSzdarwinzSziwcds.pdf/magee93structuring.pdf).\n\n## Conclusion\n\nAbstractions are a good thing, but let's not get carried away thinking that calling\n the abstraction \"configuration\" is suddenly going to eliminate the need for developers.\n Instead, treat configuration as a first-class citizen that requires design, testing,\n version control, and deployment management.\n\n*Share:*\n\n*Follow:* [Follow @ghohpe](https://twitter.com/ghohpe) [SUBSCRIBE TO FEED](../ramblings.rss)\n\n*More On:* [DESIGN](/ramblings_design.html) [ALL RAMBLINGS](../ramblings.html)\n\nGregor is a cloud architect and author. He is a frequent speaker on asynchronous messaging,\n IT strategy, and cloud.", "znaku_textu": 9253, "slov": 1395, "odkazu": 49, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/ramblings/30_configure.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 06:54:33", "sha256": "2c2f2d0e8aa96afc4b113a699b6764e236bc08e56242c348023a173e6944921d", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://architectelevator.com/blog", "http://www.martinfowler.com/articles/languageWorkbench.html", "http://foldoc.org/configuration%20programming", "http://citeseer.ist.psu.edu/rd/0,192436,1,0.25,Download/http://citeseer.ist.psu.edu/cache/papers/cs/241/http:zSzzSzhypatia.dcs.qmw.ac.ukzSzdatazSzukzSzdse.doc.ic.ac.ukzSzdarwinzSziwcds.pdf/magee93structuring.pdf", "https://twitter.com/share", "https://twitter.com/ghohpe", "https://leanpub.com/37things"]} {"url": "https://www.enterpriseintegrationpatterns.com/ramblings/31_techededa.html", "titulek": "TechEd 2005 Europe: Event-Driven Architectures - Enterprise Integration Patterns", "h1": "TechEd 2005 Europe: Event-Driven Architectures", "popis": "I just returned from Microsoft TechEd Europe in Amsterdam", "klicova_slova": "", "kanonicka": "", "jazyk": "en_US", "robots_meta": "", "og": {"og:type": "article", "og:locale": "en_US", "og:site_name": "Enterprise Integration Patterns", "og:title": "TechEd 2005 Europe: Event-Driven Architectures", "og:description": "I just returned from Microsoft TechEd Europe in Amsterdam", "og:url": "https://www.enterpriseintegrationpatterns.com/ramblings/31_techededa.html"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "TechEd 2005 Europe: Event-Driven Architectures"}, {"uroven": 2, "text": "The Call Stack"}, {"uroven": 2, "text": "Composability"}, {"uroven": 2, "text": "Event-Driven Architectures"}, {"uroven": 2, "text": "A Simple Event Channel"}, {"uroven": 2, "text": "Design Decisions"}, {"uroven": 2, "text": "Specifying Behavior"}, {"uroven": 2, "text": "Channel Implementation"}, {"uroven": 2, "text": "Code Download"}, {"uroven": 2, "text": "Conclusion"}], "markdown": "Gregor's Ramblings\n\n---\n\n# TechEd 2005 Europe: Event-Driven Architectures\n\nJuly 11, 2005\n\nFind my posts on IT strategy, enterprise architecture, and digital transformation\n at [ArchitectElevator.com](https://architectelevator.com/blog).\n\nMy second talk at TechEd Europe was a rapid journey through call-stack semantics,\n coupling, composability, and visualizations, with a bit of test-driven development,\n inversion of control, and [Resharper](http://www.jetbrains.com/resharper) mixed in. Since I had a large audience and got decent feedback ratings (aside from\n the comment that I tend to look like I am running for a train...) I figured it might\n be worth sharing some of the talk as a blog post. The talk is obviously inspired by\n some of my earlier postings, namely [Good Composers are Far and Few in Between](19_composing.html), [Look Ma -- No Middleware!](14_edainjvm.html), and [Visualizing Dependencies](11_dependencies.html) so I won't go into a ton of detail on those topics but invite you to (re)read these\n earlier posts. Also, since this talk was part of a Microsoft conference all code examples\n are in C#. However, I won't dwell on C# language features. Everything I show here\n would look very similar in Java (except for the stupid \"I\" in front of the interface\n names).\n\n## The Call Stack\n\nThe call stack is one of these things that we rarely think about (except when we get\n a stack trace) but that actually governs the way we think and write software in a\n fairly significant way. Most high-level programming languages like Java, C#, C++,\n VB are based on a stack model. Even declarative languages like XSLT support a call-stack\n model through elements like call-template (even though this can lead to more pain\n than gain). The call stack actually provides a few critical functions for us:\n\n- **Coordination** - The stack ensures that only one method executes at a time (unless we specifically\n instruct otherwise, e.g. through asynchronous delegate invocations).\n- **Continuation** - The stack also makes sure that once a called method completes, the calling method\n continues where it left off. Obviously this is done by pushing the instruction pointer\n on the call stack and pulling it back off during the RET statement. This is a very\n specific case of *continuation* . Some programming languages allow for a more flexible model, where the caller can\n choose where something should go after it completes a function.\n- **Context** - The call stack also contains your local variables, so that once a method call completes\n you have your local context back as if nothing happened.\n\nOK, so you might feel like you are having back flashs from CompSci 101. Why is this\n interesting to professional developers? It becomes interesting when you use a programming\n model that does *not* have a built-in call stack. Particularly, because all the assumptions that you became\n used to making are no longer given. This can give you quite a headache.\n\nFor example, a messaging model does not support a call stack. When I send a request\n message and receive a response message at a later time, none of the mechanisms mentioned\n above are at work. There is no coordination unless I put in an active wait loop. The\n message does actually not come back to me unless I specifically supply a [Return Address](../ReturnAddress.html). Lastly, I do not have my local state when I receive the response message unless\n I use a [Correlation Identifier](../CorrelationIdentifier.html) or include all necessary state in the message.\n\nSome messaging approaches are trying to put the call stack back into the model but\n this is [generally a bad idea](26_symmetry.html).\n\n## Composability\n\nAnother key ingredient into event-driven architectures is the notion of composability.\n Composability is the ability to build new things from existing pieces. This can occur\n because the individual pieces make fewer assumptions about other components and therefore\n do not presuppose the overall structure of the system. This is one of the key benefits\n of loose coupling: the fewer assumptions I make about the components I interact with\n the easier it is to change the other components. Composability is a great benefit\n because it promotes reuse and adaptability. It is also great during testing -- I might\n want to swap out another component for a test or mock component during testing. If\n my system is composable, that is very easy to do.\n\nA key aspect of composability is that *something* must perform the composition. We can distinguish there between *explicit composition* and *implicit composition*. Explicit composition is one where a special [Assembler](http://patternshare.org/default.aspx/Home.MF.Assembler) wires two (or more) components together. Implicit composition takes place when one\n component decides by itself (or is configure to) publish data to `Channel X` and another component is setup to receive data from `Channel X`. Because both components independently decided to work with the same channel they\n will exchange data without knowing the other party. Because there is no Assembler\n needed, we refer to this approach as implicit composition.\n\n## Event-Driven Architectures\n\nEvent-driven architectures are those that expose a top-layer structure that is not\n dependent on a call stack and is highly composable. The high-level components communicate\n solely through events that are passed through event channels. For example, one component\n might receive orders via a Web site or a Web service. Once the component did some\n basic validation it publishes a message \"Order Received\". It is completely oblivious\n to which other components listen and react to this event. It also does not presuppose\n what actions should happen next. This is very different from a method call where I\n specifically instruct another component to perform a function of my choice.\n\nI mentioned \"top-layer structure\" because each individual component is most likely\n constructed using regular, call-stack oriented techniques. This is just fine because\n the inside of a component benefits from the much richer interaction model that a method\n call gives us. It would be a huge pain to have to correlate and synchronize for every\n method call! Also, the tighter coupling inside a component is a non-issue because\n typically one person or one team develops and controls all pieces of the component.\n\n## A Simple Event Channel\n\nAlright, let's go ahead and build some of the core pieces to build an EDA. The first\n important piece we need are the event channels, i.e. the pieces that allow us to publish\n events and subscribe to them. We'll build those from scratch here. In order to focus\n on architectural trade-offs instead of language features I intentionally keep things\n very simple. This is partly just practicality (call it laziness if you wish) but that\n aside it is still a good idea to keep your channels simple. The channel behavior and\n the events are the key coupling point between components. The more complex these things\n are the more implicit coupling occurs between the components.\n\nWhat does a very simple channel have to do? It has to allow on component to send message\n and another one to receive them. Going back to basics here, the interface can look\n like this:\n\n```\npublic delegate void OnMsgEvent(XmlDocument msg);\n\npublic interface IMessageReceiver\n{\n void Subscribe(OnMsgEvent handler); \n}\n \npublic interface IMessageSender\n{\n void Send(XmlDocument msg);\n}\n\npublic interface IChannel : IMessageSender, IMessageReceiver\n{}\n```\n\nIt is common wisdom that a good design is not the one where nothing can be added but\n rather one where nothing can be taking away. It seems like we are pretty close to\n that design goal here :-) We have a method to send an event in form of an XML document\n and a method to signify our interest in receiving all events coming in on this channel.\n This is done through delegates, making for a [Event-driven Consumer](../EventDrivenConsumer.html) (note that an Event-driven consumer itself has little to do with Event-driven architectures\n -- one is a microscoping implementation decision inside an endpoint and the other\n is an architectural style).\n\nSo far so good, all we need to do now is implement this interface. That should not\n be too hard given that all we have is two methods. But not so fast, there are a few\n more things we need to decide on...\n\n## Design Decisions\n\nThe `IChannel` interface merely specifies the syntax of our channel interface. The name and parameters\n of our methods suggest some semantics, i.e. a it is fairly likely that a method named\n `send` that takes an `XmlDocument` does in fact send a message. But this assumption leaves quite a bit to be desired\n in terms of precision. Let's look at a few more details that I would like to know\n about a channel:\n\n- Is the channel a [Point-to-Point Channel](../PointToPointChannel.html) or a [Publish-subscribe Channel](../PublishSubscribeChannel.html) ? That means, if there are multiple subscribers to a channel will only one subscriber\n receive the message or will each subscriber receive a copy of the message.\n- Is the channel distributed or distributable, i.e. can communicating components reside\n on different machines? Not that distributable means something different than local.\n For example, a distributable channel is a local channel that behaves very much like\n a remote channel, i.e. it delivers a *copy* of a message to the recipients instead of a reference to the original message. Details\n like this are critical because these are exactly the things that tend to trip us up\n when we transition from a local to a remote system.\n- Is the channel asynchronous or simply one-way but synchronous? Even though the `Send` method does not return anything we might still be interested to know whether the\n call blocks until the receiving end has executed the function or not. This is critical\n when multiple messages are sent and we are tempted to make timing assumptions across\n messages.\n\nIn some of these cases you might be inclined to argue that a component should not\n have to know how the channel behaves in detail. This is true as long as the component\n does not make any implicit assumptions that might be fulfilled by some channels and\n not others. For example, if a component that receives a message modifies that message\n it makes an implicit assumption that it received its own copy of the message. This\n will work for distibuted systems but may not work for a simple local channel that\n simply sends a copy of the same message.\n\n## Specifying Behavior\n\nBecause the interface itself does not say much about the expected behavior of the\n channel we need to find a better way to express what we decided. The best way to do\n that is code -- test code. So let's whoop up some [nUnit](http://www.nunit.org) test cases to specify the behavior we discussed. First, we want to make sure that\n basic composition works. We also want to verify that our channel is a [Publish-subscribe Channel](../PublishSubscribeChannel.html) and that it sends copies of the inbound messages. This makes for three test cases:\n\n- SequentialComposition\n- ChannelSendsMessageToAllSubscribers\n- ChannelMakesCopyOfMessage\n\nThe code for the first test looks like this:\n\n```\n[Test]\npublic void SequentialComposition()\n{\n\tDebugChannel inChannel = new DebugChannel(new StraightThroughChannel());\n\tDebugChannel connChannel = new DebugChannel(new StraightThroughChannel());\n\tDebugChannel outChannel = new DebugChannel(new StraightThroughChannel());\n\n\tnew TraceFilter(inChannel, connChannel, \"filter1\");\n\tnew TraceFilter(connChannel, outChannel, \"filter2\");\n\n\tinChannel.Send(doc);\n\n\tAssert.AreEqual(\"filter1\", outChannel.LastMessage.DocumentElement.ChildNodes[0].Name);\n\tAssert.AreEqual(\"filter2\", outChannel.LastMessage.DocumentElement.ChildNodes[1].Name);\n}\n```\n\nThis code uses two helper classes. One is the `DebugChannel`. This channel is a [Decorator](http://en.wikipedia.org/wiki/Decorator_pattern) around our simple channel that allows us to inspect the last message that was sent.\n The other one is the `TraceFilter`, a filter that appends its name to any message that passes through. The filter takes\n an input and an output channel in its constructor along with the name of the channel.\n The test explicitly composes two filters to that the message passes through them sequentially\n (see figure). At the end it verifies that the message passed through `filter1` first and through `filter2` last. By the way, the `doc` variable has been initialized by the `[SetUp]` method that nUnit calls before every test case.\n\nIn order to verify that we have a [Pub-Sub Channel](../PublishSubscribeChannel.html) we need to hook two subscribers to the same channel. We do this again with two `TraceFilter`s. This time we verify that each output event has passed through exactly on filter\n and has been tagged by that filter:\n\n```\n[Test]\npublic void ChannelSendsMessageToAllSubscribers()\n{\n DebugChannel inChannel = new DebugChannel(new StraightThroughChannel());\n DebugChannel out1Channel = new DebugChannel(new StraightThroughChannel());\n DebugChannel out2Channel = new DebugChannel(new StraightThroughChannel());\n\n new TraceFilter(inChannel, out1Channel, \"filter1\");\n new TraceFilter(inChannel, out2Channel, \"filter2\");\n\n inChannel.Send(doc);\n\n Assert.AreEqual(1, out1Channel.LastMessage.DocumentElement.ChildNodes.Count);\n Assert.AreEqual(\"filter1\", out1Channel.LastMessage.DocumentElement.ChildNodes[0].Name);\n Assert.AreEqual(1, out2Channel.LastMessage.DocumentElement.ChildNodes.Count);\n Assert.AreEqual(\"filter2\", out2Channel.LastMessage.DocumentElement.ChildNodes[0].Name);\n}\n```\n\nLastly, we want to make sure the channel delivers copies of the original message instead\n of references to the same in-memory instance. We can do this by creating another filter,\n the `ManglingFilter`. A `ManglingFilter` modifies the message it receives from the channel. Our test makes sure that we can\n send a message to a `ManglingFilter` without our message object being harmed:\n\n```\n[Test]\npublic void ChannelMakesCopyOfMessage()\n{\n StraightThroughChannel inChannel = new StraightThroughChannel();\n StraightThroughChannel outChannel = new StraightThroughChannel();\n\n new ManglingFilter(inChannel, outChannel);\n\n inChannel.Send(doc);\n Assert.AreEqual(0, doc.DocumentElement.ChildNodes.Count);\n}\n```\n\n## Channel Implementation\n\nNow we are ready to implement a channel that supports all these test cases. The code\n is surprisingly simple because we use a local, i.e. distributable, channel:\n\n```\npublic class StraightThroughChannel : IChannel\n{\n OnMsgEvent subscriber;\n\n public StraightThroughChannel()\n {\n subscriber = new OnMsgEvent(NullEvent);\n }\n\n public void Subscribe (OnMsgEvent handler)\n {\n subscriber += handler;\n }\n\n public virtual void Send (XmlDocument msg)\n {\n subscriber((XmlDocument)msg.Clone());\n }\n\n private void NullEvent(XmlDocument doc)\n {}\n}\n```\n\nNote the call to `Clone` that ensures we deliver a copy of the message that passed to the `Send` method. Actually, this implementation has a minor flaw. If multiple subscribers subscribe\n to the `StraightThroughChannel`, they each receive a copy of the original message. However, they receive the *same* copy. So if one subscriber mangles the message, other subscribers will see the change.\n If this is undesired, we have to replace the elegant one-liner delegate invocation\n with a `foreach` statement.\n\n## Code Download\n\nThe complete solution does not contain a lot of code but still a little more that\n I showed here. There is a `SimpleFilter` base class that does nothing but simply forward a message, I created an asynchronous\n channel and a Null Channel that acts like `/dev/null` for messages. You can [download the Visual Studio solution here](../download/SimpleMessaging.zip). Note that this solution requires [nUnit 2.2](http://www.nunit.org).\n\n## Conclusion\n\nComposability is a major ingredient into making system adaptable and promoting reuse.\n As simple as introducing a channel between two components may look, the devil is often\n in the detailed behavior. Defining a simple channel interface and specifying its behavior\n using coded unit tests is an important starting point to creating a composable architecture.\n\nOur simple example used explicit conposition using code. One could easily imagine\n using a configuration file ([more on configuration](30_configure.html)) or the new [Visual Studio 2005 Software Factories](http://lab.msdn.microsoft.com/teamsystem/workshop/sf/default.aspx).\n\n*Share:*\n\n*Follow:* [Follow @ghohpe](https://twitter.com/ghohpe) [SUBSCRIBE TO FEED](../ramblings.rss)\n\n*More On:* [EVENTS](/ramblings_events.html) [ALL RAMBLINGS](../ramblings.html)\n\nGregor is a cloud architect and author. He is a frequent speaker on asynchronous messaging,\n IT strategy, and cloud.", "znaku_textu": 16651, "slov": 2458, "odkazu": 59, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/ramblings/31_techededa.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 06:54:32", "sha256": "465b467f6094b71c458678a81a67c5f70c5b78e917d75c76f01fe367815047d8", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://architectelevator.com/blog", "http://www.jetbrains.com/resharper", "http://patternshare.org/default.aspx/Home.MF.Assembler", "http://www.nunit.org/", "http://en.wikipedia.org/wiki/Decorator_pattern", "http://lab.msdn.microsoft.com/teamsystem/workshop/sf/default.aspx", "https://twitter.com/share", "https://twitter.com/ghohpe", "https://leanpub.com/37things"]} {"url": "https://www.enterpriseintegrationpatterns.com/ramblings/32_google.html", "titulek": "New Packaging, Same Good Content - Enterprise Integration Patterns", "h1": "New Packaging, Same Good Content", "popis": "As many people have already heard, I changed employers", "klicova_slova": "", "kanonicka": "", "jazyk": "en_US", "robots_meta": "", "og": {"og:type": "article", "og:locale": "en_US", "og:site_name": "Enterprise Integration Patterns", "og:title": "New Packaging, Same Good Content", "og:description": "As many people have already heard, I changed employers", "og:url": "https://www.enterpriseintegrationpatterns.com/ramblings/32_google.html"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "New Packaging, Same Good Content"}], "markdown": "Gregor's Ramblings\n\n---\n\n# New Packaging, Same Good Content\n\nAugust 1, 2005\n\nFind my posts on IT strategy, enterprise architecture, and digital transformation\n at [ArchitectElevator.com](https://architectelevator.com/blog).\n\nSo it's true... even I have not been immune to the major center of gravity for software\n professionals in the Bay Area. So I followed the footsteps of [Adam Bosworth](http://www.adambosworth.net), [Josh Bloch](http://www.theserverside.com/news/thread.tss?thread_id=27163), [Cedric Beust](http://www.beust.com/weblog/archives/000172.html), [Crazybob](http://crazybob.org/) and other notable influencers in the Java and enterprise software world and joined\n Google. Luckily I am not important enough for anyone to [sue Google](http://www.theregister.co.uk/2005/07/19/microsoft_google/) over my move. It also looks like I am going to keep my blog as long as I don't post\n tomorrow's stock price. And at my option strike price it does not look like I will\n retire too soon (I am hoping for it to hit $500!), so expect more work on EAI Patterns\n for a while to come.\n\nSo is there integration work at Google? Keep in mind that Google runs one of the largest\n (civilian) distributed computing infrastructures in the world. Do they care about\n reliability and fail over? You betcha! Do they write lots of software? Well, yeah!\n\nNow Google is a bit on the secretive side about its projects, technologies, how many\n servers there are (I swear I don't know!). And it is understandable when you realize\n how much IP is floating around there and how many billions of Dollars hinge on that.\n Somehow we need to protect our $80B market cap...\n\nBTW, it is true that Google provides free gourmet lunch, breakfast and dinner (attendance\n is not required). Working for a company that pulled $1.4B last quarter with 4000 or\n so employees sure has its benefits.\n\nJoining Google does not mean I will retire from conferences and public events. I will\n present a [tutorial at OOPSLA](http://www.oopsla.org/2005/ShowEvent.do?id=128)and will likely be speaking at [Microsoft PDC](http://msdn.microsoft.com/events/pdc/) and [OOP](http://www.sigs-datacom.de/sd/kongresse/oop_2005/) in Germany so my German does not get rusty.\n\nWhy did I leave [ThoughtWorks](http://www.thoughtworks.com)? Mostly to reduce the travel burden on my aging body. Somehow living in one of the\n nicest (and most expensive) cities in the US and hardly ever being there makes little\n sense (apparently, this took me only 10 years or so to figure out). As far as consulting\n companies go, ThoughtWorks is still on the top of my list. In consulting you get to\n work on an unparalleled variety of projects, which proves to be an invaluable source\n of ideas and design patterns. Over time, though, the temptation of less travel and\n more stock options grew stronger :-)\n\nOh, and by the way, I did not take the last spot at Google, they are [looking for many more smart people](http://www.google.com/jobs/)\n\n*Share:*\n\n*Follow:* [Follow @ghohpe](https://twitter.com/ghohpe) [SUBSCRIBE TO FEED](../ramblings.rss)\n\n*More On:* [GREGOR](/ramblings_gregor.html) [ALL RAMBLINGS](../ramblings.html)\n\nGregor is a cloud architect and author. He is a frequent speaker on asynchronous messaging,\n IT strategy, and cloud.", "znaku_textu": 3254, "slov": 470, "odkazu": 53, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/ramblings/32_google.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 06:54:31", "sha256": "b0d8b988d501ef4f503e440de5fabc27405a14a0ed56f23ca4f6797d939c4985", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://architectelevator.com/blog", "http://www.adambosworth.net/", "http://www.theserverside.com/news/thread.tss?thread_id=27163", "http://www.beust.com/weblog/archives/000172.html", "http://crazybob.org/", "http://www.theregister.co.uk/2005/07/19/microsoft_google/", "http://www.oopsla.org/2005/ShowEvent.do?id=128", "http://msdn.microsoft.com/events/pdc/", "http://www.sigs-datacom.de/sd/kongresse/oop_2005/", "http://www.thoughtworks.com/", "http://www.google.com/jobs/", "https://twitter.com/share", "https://twitter.com/ghohpe", "https://leanpub.com/37things"]} {"url": "https://www.enterpriseintegrationpatterns.com/ramblings/33_interface.html", "titulek": "Interface User - Enterprise Integration Patterns", "h1": "Interface User", "popis": "One of the biggest perceived fears of authors is that someone publishes a book or an article on the same topic just ever so slightly ahead of you that you have done all the work but look like a copy cat if you still publish your work", "klicova_slova": "", "kanonicka": "", "jazyk": "en_US", "robots_meta": "", "og": {"og:type": "article", "og:locale": "en_US", "og:site_name": "Enterprise Integration Patterns", "og:title": "Interface User", "og:description": "One of the biggest perceived fears of authors is that someone publishes a book or an article on the same topic just ever so slightly ahead of you that you have done all the work but look like a copy cat if you still publish your work", "og:url": "https://www.enterpriseintegrationpatterns.com/ramblings/33_interface.html"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Interface User"}, {"uroven": 2, "text": "What Makes an Interface Usable?"}], "markdown": "Gregor's Ramblings\n\n---\n\n# Interface User\n\nAugust 5, 2005\n\nFind my posts on IT strategy, enterprise architecture, and digital transformation\n at [ArchitectElevator.com](https://architectelevator.com/blog).\n\nWe often consider user interface design to be related to graphical or text-based interfaces\n where users enter data, select from menu items and drop-down lists, or click hyperlinks.\n There are many good books on user interface design, both in terms of the aesthetic\n aspects as well the process of usability studies and task analysis.\n\nOne user group that is all too often forgotten from the usability effort, however,\n are other programmers. Programmers are clearly users of code: they code against your\n classes or interfaces or might access your Web services remotely. And all too often\n they struggle with the same issues end user do: which function to execute first, confusion\n over unclear error messages, uncertainty over the meaning of a specific field, mismatches\n between the users mental model and the (user) interface model just to name a few.\n\nJust as I was thinking of rambling on this topic of programming interface usability\n I discovered Ken Arnold's excellent article [Programmer's are people, Too](http://doi.acm.org/10.1145/1071713.1071731) in [ACM Queue Magazine](http://www.acmqueue.com) (unfortunately, the full version requires ACM on-line library access). Alas, it turns\n out that his interest in this topic is by no means recent -- I just never happened\n to stumble on his work. He actually shared a number of the same thoughts in an [Interview on Artima](http://today.java.net/pub/a/today/2003/06/10/design.html) quite a while ago. So I won't plagiarize his work here but just give some of the\n highlights and add my personal views on the topic.\n\nWhy is this topic worth highlighting on a blog about enterprise integration? Programming\n interface usability issues are often minor as long as the \"programmer user\" is on\n the same team (or even the same person) as the creator of the code and the number\n of potential users is small. However, if you are developing a code library or a published\n service, your users might be far away or might want to access functions even after\n the original developer might have left the company. With the increasing popularity\n of Web services a lot more programming interfaces of sorts are being exposed to an\n ever-increasing number of developers. This naturally increases the concerns of usability.\n\n## What Makes an Interface Usable?\n\nA number of usability considerations match good common design guidelines for interfaces:\n\n- Good, descriptive field and operation names.\n- Consistent naming in both word choice and sequence. For example, one can easily think\n of least the following names for a simple operation: `StartOperation` , `BeginOperation` , `OperationBegin` , `OperationStart` , `OpStart` , and so on. If you want to make your interface users happy, choose one style and\n use it consistently.\n\nOther design aspects are more subtle and more directly related to usability:\n\n- Progressive Disclosure - when you look at successful end-user software such as MS\n Office or Star Office, the key feature that tends to stand out is that of progressive\n disclosure. My mom uses Word even though she is familiar with maybe 5% of the features.\n I use Word as well but probably use 50% of the features. Magically the software adapts\n to either usage scenario because advanced features are available but do not stand\n in the way of simple usage. Unfortunately, this approach is rarely used in the design\n of programming interfaces. You usually get a list of umpteen functions, most likely\n in alphabetical order. This gives a user very little guidance as to where to get started.\n- Common Patterns - following a common design pattern increases the chances that the\n reader can quickly grasp how the interface functions. Every so often, readers lament\n that books on design patterns contain material that they already knew. Nevertheless,\n having a catalog of named patterns allows many developers to talk about the same concept\n by the same name. I have experienced this many times where after hours of discussion\n one developer shouts out \"oh, what you mean is an xxx'. This benefit extends to the\n design of programming interfaces. I hope that my work on conversation and interaction\n patterns will be particularly helpful in this area.\n- Executable Test Cases - one of the most useful aids in helping someone how to use\n an interface is to provide a suite of executable test cases that can both serve as\n example code as well as a precise description of the observable behavior of the component\n at hand. If your interface is available across platforms, this can be a little harder\n to do because test cases provided in one programming language might not be useful\n to all developers. However, the behavior of a Web service could be described by a\n set of matching input and output documents (assuming the service follows a request-response\n interaction model).\n- Forcing Functions - the best usability guides are devices that keep users from making\n simple mistakes by prescribing a logical sequence and enforcing it. For example, you\n won't get you money out of the ATM until you remove the card -- making it nearly impossible\n to forget your card (unless you do not care about picking up your cash!). This function\n became particularly clear to me when I walked up to an ATM and the machine put someone\n else's card right into my hands. The person had *deposited* money and the machine does not have a similar forcing function for deposits. In the\n world of programming interfaces, strong typing can help in this regard. If one operation\n requires a type that can only be obtained by one (or a few) other operations, the\n expected sequence of operations is implicitly enforced. if all parameters are `string` s and `int` s then it is hard to guess what should happen in what order.\n- Affordances - similar, but different are affordances. Affordances are cues as to the\n usage of an object. A round door know suggests to turn it, a handle suggests pulling,\n and a bar suggests pushing. We can use similar approaches with methods and operations.\n\nThere is a lot to be said about the usability of programming interfaces. For an entertaining\n and enlightening insight into the world of usability I highly recommend Don Norman's\n [Design of Everyday Things](http://amazon.com/o/asin/0465067107/ref=nosim/enterpriseint-20). And thanks again to Ken Arnold for inspiring me to finally write this up.\n\n*Share:*\n\n*Follow:* [Follow @ghohpe](https://twitter.com/ghohpe) [SUBSCRIBE TO FEED](../ramblings.rss)\n\n*More On:* [DESIGN](/ramblings_design.html) [ALL RAMBLINGS](../ramblings.html)\n\nGregor is a cloud architect and author. He is a frequent speaker on asynchronous messaging,\n IT strategy, and cloud.", "znaku_textu": 6803, "slov": 1071, "odkazu": 47, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/ramblings/33_interface.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 06:54:30", "sha256": "b3156a4e2a450ec03c6524188d25f915543732f0288ef17c32e90edc73fe637a", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://architectelevator.com/blog", "http://doi.acm.org/10.1145/1071713.1071731", "http://www.acmqueue.com/", "http://today.java.net/pub/a/today/2003/06/10/design.html", "http://amazon.com/o/asin/0465067107/ref=nosim/enterpriseint-20", "https://twitter.com/share", "https://twitter.com/ghohpe", "https://leanpub.com/37things"]} {"url": "https://www.enterpriseintegrationpatterns.com/ramblings/34_cb.html", "titulek": "What Color Are My Shoes? - Enterprise Integration Patterns", "h1": "What Color Are My Shoes?", "popis": "Two weeks ago I attended a very small, but special conference on enterprise software development", "klicova_slova": "", "kanonicka": "", "jazyk": "en_US", "robots_meta": "", "og": {"og:type": "article", "og:locale": "en_US", "og:site_name": "Enterprise Integration Patterns", "og:title": "What Color Are My Shoes?", "og:description": "Two weeks ago I attended a very small, but special conference on enterprise software development", "og:url": "https://www.enterpriseintegrationpatterns.com/ramblings/34_cb.html"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "What Color Are My Shoes?"}, {"uroven": 2, "text": "Attributes / Annotations"}, {"uroven": 2, "text": "Model Extraction / Visualization"}, {"uroven": 2, "text": "Mixing Architectural Styles"}, {"uroven": 2, "text": "Domain Specific Languages (DSL's)"}, {"uroven": 2, "text": "Goal-based Design"}], "markdown": "Gregor's Ramblings\n\n---\n\n# What Color Are My Shoes?\n\nSeptember 1, 2005\n\nFind my posts on IT strategy, enterprise architecture, and digital transformation\n at [ArchitectElevator.com](https://architectelevator.com/blog).\n\n[Martin Fowler](http://www.martinfowler.com) once said that you can tell a social geek by the fact that he looks at the *other* person’s shoes. While this makes for a good joke I have actually found that there\n is a distinct group of software developers who are quite social and well connected.\n When someone asked me recently how I keep up on all the happenings in the software\n world I realized that I do a good portion of it by hanging out around the people who\n know a lot more than I do. This can mean a pub crawl in London, late nights at the\n TechEd speaker hotel, or the Tangosol party at JavaOne.\n\nOver time I have actually become used to attending conferences not so much for the\n session content but for the networking and hallway or bar discussions. Apparently\n I am not alone because Bruce Eckel created a “conference” just for people like me.\n This “conference” includes only people who are usually speakers at other conferences\n (or easily could be) and it features a very loosely structured format that is reminiscent\n of a dinner or beer discussion. Because of the selective audience the noise level\n at the event is very low and marketing is completely absent because we have nothing\n to sell to each other. For the past 3 years I have always left a little smarter and\n quite inspired. \n Since the audience for such an event is naturally limited this year I want to share\n some of the topics we discussed. Each of the topics is probably worth its own blog\n entry so I will expand the ones I find particularly interesting. But here a few sound\n bytes to wet your appetite. Note that these notes were derived from discussion groups\n rather than prepared talks so that the \"conclusions\" take a smaller role than the\n exchange of experiences and opinions.\n\n## Attributes / Annotations\n\nMetadata in the code (aka Attributes / Annotations) is the shiny new toy in both the\n C# and Java world. Having worked with C# for a while I can’t help myself but to be\n amused and irritated by the fact that Sun used to tell Java developers that all this\n “syntactic sugar” is superfluous, just to completely change their mind once the competition\n moved in. So either they were lying all along or they have no spine. But anyway, before\n I start to sound like [Hani](http://www.jroller.com/page/fate/), let me share some of our discussions around metadata annotations.\n\nOne of the problems with every new tool is that it is hard to determine what the boundaries\n of its best usage are unless you actually cross those boundaries. I think many people\n went through that experience with attributes not too long ago. In order to shorten\n the learning cycle we exchanged some experiences and opinions on proper use of attributes.\n\n- Attributes (I’ll avoid the \"attributes / annotations\" going forward – I don’t get\n paid by the word…) are usually a good replacement for naming conventions. For example,\n nUnit replaced the old testXYZ naming convention with a [TestCase] attribute. However,\n be careful to consider subtle differences. For example, if you use `SetUp` as the naming convention for a setup method, only one method in each class can have\n this name (assuming an empty list of parameters). If you use an attribute, you need\n to decide whether you want to allow multiple methods to be marked this way and, if\n so, what the desired behavior is. Moreover, if you allow inheritance do you want to\n automatically “inherit” the attribute to the child class? You might end up building\n some of the compiler infrastructure yourself in order to get the behavior. So be careful\n if the behavior associated with the attribute is more complex than “for every method\n with the attribute do X”.\n- Another common usage of attributes is to replace a marker interface, i.e. an interface\n that does not contain any methods. These interfaces are often used to categorize classes\n or specify inherent properties (e.g. is the class reentrant, serializable etc). This\n seems to be the sweet spot for attributes because it keeps us from abusing a language\n construct such as interfaces. However, we have to keep in mind that with attributes\n we cannot declare a method that takes only a `ISerializable` . Instead, we would have to perform the equivalent check explicitly and at run-time,\n reducing the amount of validation the compiler can do for us.\n- The general sentiment was that using attributes to specify external configuration\n is a slippery slope. For example, I have been often frustrated by the attribute-happy\n .asmx Web service configuration. What if I want to change the `SoapAction` name at deployment time? Attributes are part of the source code after all and require\n access to the source code. Microsoft Indigo is fixing this aspect by allowing all\n configuration to be specified either as attributes, as code, or in a config file.\n Another example of external configuration is provided by the EJB 3.0 configuration\n of schema and table name of an entity: `@Entity @Table(name=”…” schema=”…”)` . This is information that is typically intended to be changed at deployment time\n and it will be cumbersome (at the least) to have to edit source code and rebuild the\n application. On the other hand though, for very simple apps this usage can be more\n explicit (and hence more readable) than an external configuration file. So as in most\n cases, the world is not exactly black and white.\n- A less obvious but very effective use of attributes is to assist external tools in\n the creation of documentation or diagrams. This can go far beyond the usual JavaDoc\n approach of using comment blocks with specific notations. For example, I could come\n up with a set of attributes to designate “critical classes” that should be shown in\n a high-level dependency diagram. Classes that do not carry this attribute might only\n be included in a more detailed diagram. Or I could assign colors to my classes so\n the software can create color coded diagrams. In either scenario, the attribute is\n used by an external program, but it denotes a property of the class itself, e.g. whether\n the class is “important”.\n\nIn summary people appreciated attributes because they can make properties of a class\n (or the application of a cross-cutting concern) a lot more visible in the class source.\n However, caution should be exercised that the attributed truly denotes a property\n of the class itself and not a property or relationship external to the class (e.g.\n the table or Web service configuration described above).\n\n## Model Extraction / Visualization\n\nI have previously declared my [love for visualizations](11_dependencies.html). I am quite convinced that many people do not have enough of a “big picture” of\n what their system looks like. Visualizations are very powerful tools, especially considering\n humans’ ability to quickly recognize patterns in complex diagrams. The gist of model\n extraction is to use modeling not to generate source code but to use source code (or\n a running system) to extract a model. Essentially you define a metamodel (yeah, big\n word, I know) and then apply the actual system against this metamodel. For example,\n a directed graph is a very popular metamodel and can be used very well to depict dependencies,\n message flows and the like. Once you have this model you can use it for validations,\n visualizations etc.\n\nOne of the shortcomings of most visualizations is that they tend not to scale very\n well, exemplified by the proverbial 3’ by 4’ database schema poster that is entirely\n useless. I think that assisted model generation using attributes can help in this\n category. You can actively decorate your source code with metadata to distinguish\n “important” from “unimportant” elements etc. This type of decoration (using attributes\n in the source) are particularly useful because they convey intent (i.e. the “why”)\n as opposed to the “how”. The latter is (well, should be) quite obvious in the source\n code itself and does not require any further explanation (reminding me of my favorite\n source comment `// sets variable x to zero`).\n\nAnother way to convey relevant information without running our of paper is to use\n *polymetric diagrams*, i.e., diagrams that convey more than one metric in a single picture. The most famous\n example of a polymetric chart is likely the [map of napoleon’s Russia campaign](http://www.edwardtufte.com/tufte/posters). [Erik](http://www.doernenburg.com/) showed us Code Crawler which provides a host of visualizations that use position, size, shading and shape\n to convey multiple aspects of your source code. Unfortunately, is runs only on SmallTalk\n but an Eclipse plug-in allows for conversion from Java code. Erik showed some very\n cool visualizations that show class lines of code, the number of methods and the number\n of fields in a single diagram.\n\n## Mixing Architectural Styles\n\nI hosted the topic of mixing multiple architectural styles in a single application.\n This topic is close to my heart since I spend a lot of time with workflow engines,\n messaging, rules engines, document transformations and other non-OO stuff. Each of\n these tools and engines is based on a different architectural style and often uses\n a different programming languages (e.g., BPEL, XSLT, etc). Some of the topics we discussed\n included when an application layer becomes complex enough to warrant a new style and\n whether this style should be based on the core language (e.g. Java or X#) or whether\n a whole new language should be created. When creating a new language, you have further\n choices, such as whether to use a \"standard\" language or create your own domain language.\n As this post is already getting lengthy (and slow in coming along) I’ll postpone a\n more detailed discussion to a separate post. Plus, this topic makes a great segue\n to the next item.\n\n## Domain Specific Languages (DSL's)\n\nMany of us believe that DSLs are the “next big thing” on the horizon for enterprise\n software development. Some very early tools are starting to appear, such as [JetBrains' MPS](http://www.jetbrains.com/mps/) or [Microsoft's Visual Studio 2005 DSL Tools](http://lab.msdn.microsoft.com/teamsystem/workshop/dsltools/default.aspx). Other tools, like the [Intentional Programming](http://intentsoft.com/) work continue to be shrouded in mystery.\n\n## Goal-based Design\n\nEinar hosted a great session on goal-based design used primarily in the context of\n agent systems. Agent-based systems consists of a collection of collaborating agents,\n which in unison accomplish an overall goal. The individual agents' behavior is based\n on their belief (aka state), their goal (a completeness condition) and their plan\n (an algorithm of sorts). Agent-based systems can be very effective at breaking down\n complex goals into small, manageable tasks. Agent-based systems are generally associated\n more with the academic fringe, with many [commercial tools](http://www.agent-software.com) being quite expensive and mostly limited to military applications. However, some\n [open source alternatives](http://jade.tilab.com) seem to be appearing.\n\nTo me two discussion items stood out particularly:\n\n- Agent-based design tends to focus on the interaction between components over (or in\n addition to) the internal structure of them. Modeling the interaction between agents\n is quite analogous to the interaction between loosely coupled services, which is one\n of my current areas of interest. During this discussion I learned that the much cursed [UML 2.0](http://www.uml.org/#UML2.0) spec added semantics to the [sequence diagram](http://www-128.ibm.com/developerworks/rational/library/3101.html) so that it can now express interaction rules as opposed to just a single instance\n of many possible possible interactions. The notation might take some getting used\n to but then [Petri Nets](http://www.informatik.uni-hamburg.de/TGI/PetriNets/) are not everybody's favorite either.\n- I like the idea that goal-based design represents overall goals in the system design.\n Einar's book showed an example of a book store with the overall goal of \"ensure books\n are in stock\". I feel that these kind of goals are too often stated somewhere in a\n project charter but too rarely make it into actual designs. In this example, the overall\n goal broke down into the sub-goals \"reorder books\", \"track outgoing books\" and \"track\n incoming books\". I have to admit I have not thought this 100% through but the approach\n seems appealing.\n\nI guess I have to buy the bullet and get the (pricey) [book](http://www.cs.rmit.edu.au/agents/prometheus/) that Einar was reading. The book does not as much talk about what agents are but\n focuses instead on a methodology to design agent-based systems.\n\n*Share:*\n\n*Follow:* [Follow @ghohpe](https://twitter.com/ghohpe) [SUBSCRIBE TO FEED](../ramblings.rss)\n\n*More On:* [EVENTS](/ramblings_events.html) [DESIGN](/ramblings_design.html) [VISUALIZATION](/ramblings_visualization.html) [ALL RAMBLINGS](../ramblings.html)\n\nGregor is a cloud architect and author. He is a frequent speaker on asynchronous messaging,\n IT strategy, and cloud.", "znaku_textu": 13323, "slov": 2087, "odkazu": 57, "kodovani": "windows-1250", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/ramblings/34_cb.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 06:54:29", "sha256": "16e7ffc419d6d5994c0c831af4b6fb8ac96c3f81514c1c5fc59f18fd2e9b1590", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://architectelevator.com/blog", "http://www.martinfowler.com/", "http://www.jroller.com/page/fate/", "http://www.edwardtufte.com/tufte/posters", "http://www.doernenburg.com/", "http://www.jetbrains.com/mps/", "http://lab.msdn.microsoft.com/teamsystem/workshop/dsltools/default.aspx", "http://intentsoft.com/", "http://www.agent-software.com/", "http://jade.tilab.com/", "http://www.uml.org/", "http://www-128.ibm.com/developerworks/rational/library/3101.html", "http://www.informatik.uni-hamburg.de/TGI/PetriNets/", "http://www.cs.rmit.edu.au/agents/prometheus/", "https://twitter.com/share", "https://twitter.com/ghohpe", "https://leanpub.com/37things"]} {"url": "https://www.enterpriseintegrationpatterns.com/ramblings/35_pdc.html", "titulek": "Googlesoft - Enterprise Integration Patterns", "h1": "Googlesoft", "popis": "(Professional) life can be a little ironic sometimes", "klicova_slova": "", "kanonicka": "", "jazyk": "en_US", "robots_meta": "", "og": {"og:type": "article", "og:locale": "en_US", "og:site_name": "Enterprise Integration Patterns", "og:title": "Googlesoft", "og:description": "(Professional) life can be a little ironic sometimes", "og:url": "https://www.enterpriseintegrationpatterns.com/ramblings/35_pdc.html"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Googlesoft"}, {"uroven": 2, "text": "Google Meets Microsoft"}, {"uroven": 2, "text": "Connected Systems Panel"}, {"uroven": 2, "text": "ARC Symposium"}, {"uroven": 2, "text": "Day 3 Keynote"}, {"uroven": 2, "text": "C# 3.0"}, {"uroven": 2, "text": "Don on WWF & Indigo"}, {"uroven": 2, "text": "Other Stuff"}], "markdown": "Gregor's Ramblings\n\n---\n\n# Googlesoft\n\nSeptember 18 2005\n\nFind my posts on IT strategy, enterprise architecture, and digital transformation\n at [ArchitectElevator.com](https://architectelevator.com/blog).\n\n## Google Meets Microsoft\n\nMy biggest fear of joining Google was that I would be living somewhat on \"borrowed\n time\" as far as my participation in Microsoft events is concerned. I have a lot of\n good friends at Microsoft and I am a still an MVP so I am not yet ready to give up\n my connections into that universe for quite some time to come. However, being on\n stage at a Microsoft event with a Google badge (and with a straight face) is a bit\n harder. Therefore, I was particularly happy to be invited to this year’s PDC, [Microsoft’s Professional Developer Conference](http://msdn.microsoft.com/events/pdc/). It is ironic that in my years working as a consultant with a lot of Microsoft technologies\n I never got to go to PDC. Now that I work for Google I am here as a speaker :-) The\n part I like the best: I work for Google, speak at a Microsoft event, have an IBM laptop\n and just e-mailed a friend at Sun. Peace on earth :-)\n\nOne of the equally exciting and frustrating things at PDC is that when you get there\n people shower you with a whole set of new acronyms that get you excited about all\n the new stuff and disappointed when you find out that most it are new names for the\n same old stuff. We already knew that Longhorn is now Vista but I had missed the baptizing\n of Indigo into WCF – The Windows Communication Foundation. According to Don, the acronym\n WTF was considered but was reserved for the Windows Transaction Foundation...\n\nConferences are all about getting free stuff and talking to interesting people. I\n had a good start with Jim Newkirk taking me to the Addison-Wesley author dinner, which\n I crashed. Hey, my book has enough C# code to deserve a free dinner :-) Plus it was\n nice to hang out with Don Box, Anders Hejlsberg, David Chappell, Jim Newkirk and many\n others again. Speaking of publishers, [The Best Software Writing](http://amazon.com/o/asin/1590595009/ref=nosim/enterpriseint-20) was [slashdotted](http://books.slashdot.org/article.pl?sid=05/09/15/1640233) on Thursday. I am particularly proud that my [Starbucks article](18_starbucks.html) was pointed out specifically with a link to Google search. Now how appropriate is\n that? And I still think Starbucks really should buy me free drinks! After all Google\n buys me free lunches :-) While I am digression already let me put one more item on\n the stack. The conference Starbucks happened to use the (sequential) invoice number\n for correlation instead of the name. First of all I could not help but notice and\n secondly it demonstrated how much out of sequence the drinks really come when people\n order hot and cold drinks or multiples of the same kind. And who says going to Starbucks\n is not inspiring?\n\nThe free dinner was followed by free rides at the usual Universal Studios party. Actually,\n I can no longer imagine an amusement park without free food and 10,000 geeks. I am\n not sure whether that is a good thing or a bad thing :-)\n\nBy the way, PDC 2005 is the “other year” PDC, i.e. many of the previewed technologies\n more or less were talked about already at PDC 2 years ago. However, I did not mind\n at all because I did not attend last time and it seems that this time hand waving\n was largely replaced with actual demos. Regardless, many products are still a year\n or two away from GA. So while many things we got to see are very cool, patience is\n the order of the day.\n\n## Connected Systems Panel\n\nPDC has very few external speakers because most presentations are previews of upcoming\n products, delivered by the responsible product managers or lead architects. I was\n lucky enough to participate in a panel on [The Art and Practice of Connected Systems](http://commnet.microsoftpdc.com/content/sessionview.aspx?TopicID=0400a210-d20e-47c4-a250-0752ee17b3d6), part of the architecture symposium organized by Devhawk Harry Pierson. Connected\n Systems are a big item in Microsoft’s developer strategy, ranging from the Indigo\n (WCF) to the Windows Workflow Services.\n\nThe panel was the last agenda item on Friday so attendance was a bit lower than most\n of the sessions. I hope the people who did come got something out of it and also found\n it entertaining. Steve Swartz makes for a great anchor on panels and did not disappoint\n this time. I also enjoyed meeting and interacting with David Ing from Meridian Software.\n He even gave me upfront kudos in his [blog](http://www.from9till2.com/default.aspx?date=2005-08-12)! Sadly, a quick (Google) search did not reveal too much blog coverage of the panel.\n I personally like panels (both as panelist and attendee) because it provides real-time\n interaction and ad-hoc opportunity for disagreement and discussion. I see them as\n a nice contrast to scripted and polished presentations.\n\n## ARC Symposium\n\nThe symposium itself was based on a skid that covered topics ranging from SOA to Agile\n to process and domain modeling. We got to see Harry Pierson, Brenton Webster, Arvindra\n Sehmi, Beat Schwegler, Simon Guest and a few other usual suspects on stage. It seems\n that you can only be an architect if you have a funny accent... Skids are always a\n bit tricky but this one worked out pretty well. Here some of my take-aways. The symposium\n lasted 3 hours so obviously my list is a little condensed...\n\n- Creating business processes that cross organizational boundaries is difficult. But\n pretending these boundaries do not exist makes it only worse!\n- How to factor services? First, create a service model. This is what the CSI (Connected\n Systems Initiative) really is. It gives you a consistent way to build loosely coupled\n systems, consisting of base capabilities and a process on top. The process should\n be able to change without having to change the capabilities.\n- Contract first development: A contract is not just a WSDL document, but an abstract\n domain model. Don’t try to model the whole enterprise but start in an area that is\n small but useful. XML documents are based on composition. Conceptual contract first\n over schema first. Decoupling the service implementation from the public interface\n by using an adapter allows different transports to be configured for the core service\n functionality.\n- The symposium included the demo of a tool to allocate logical services to the physical\n infrastructure. During the mapping constraints are verified, such as requiring SSL/Port\n 443. Quite pretty, but the obvious question is again: how will this approach scale?\n What if I have 100 modules and 300 servers? Would I rather have a command language\n than a 5’ x 6’ diagram that I am trying to fit onto a 19” screen?\n- One of the key themes was modeling. One slide highlighted the relationships between\n many different kinds of models, such as process models, interaction models, operational\n models etc. I need to get a hold of that slide.\n\n## Day 3 Keynote\n\nSince I did not arrive until Wednesday night I missed the major keynotes on Tuesday\n and Wednesday. I made it to Thursday's key note about 15 minutes late. It was mostly\n a sequence of brief feature intros. For example, they showed a pretty nice programming\n model to manage clusters / grids. Also, Microsoft is \n making shell scripting a first class citizen with the new OO command line language\n [Monad](http://www.microsoft.com/downloads/details.aspx?FamilyID=2ac59b30-5a44-4782-b0b7-79fe2efd1280&DisplayLang=en). Furthermore, some time in the not too distant future we will see a transactional\n file system that allows multiple file creation and writes in a single commit. The\n overhead is supposed to be in the single digit %. Sweet.\n\nIIS 7 was also demo'd. In short, IIS has been dislodged from the OS and is now modular\n and can be run and configured much more like a service. Whoohoo! Here my take-aways:\n\n- Activation Services -- equally anticipated and overdue.\n- Configurable with XML, no restart, no metabase!\n- Modularized: for example AnonymousAuthenticationModule, DefaultDocumentModule, StaticFileModule,\n DirectoryListingModule. You can remove these if not needed or replace them with your\n own modules. Very cool.\n\n## C# 3.0\n\nOne of the most popular sessions was Anders' intro into C# 3.0 During the *rerun* of the session the overflow room overflowed! A good way to describe the difference\n between TechEd and PDS is that at TechEd US Anders talked about the new C# 2.0 features\n whereas at PDC he talked about C# 3.0 features. Now keep in mind that C# 2.0 has not\n even be released as part of the official platform...\n\nMaybe I got suckered in by the Universal party and the free food but my impression\n is that in terms of language and platform design Microsoft is the big innovator these\n days. You might not immediately fall in love with all the proposed C# 3.0 features\n (language bloat is a definite concern) but the amount of innovation going into the\n C# language design is very impressive. 3.0 will provide lambda expressions, extension\n methods (I just wished for those in Java the other day), local variable type inference,\n object initializers, anonymous types, query expressions, and expression trees. Whew!\n\nTo me two parts of C# 3.0 are truly outstanding:\n\n- The CLR 2.0 already supports all the necessary features (generics, anonymous methods),\n so C# 3.0 does not require any CLR changes. Essentially, Linq is the “Cherry” that\n Don and Anders put on top of C# 2.0.\n- The language features that are being added to the language appear to play very well\n together and form a consistent set. It would be hard to imagine taking any of the\n features away. For example, type inference seems like syntactic sugar until you realize\n that it is essential when using anonymous types. How else would you declare a typed\n variable of a type that is anonymous? Of course anonymous types really help the readability\n of select statements. So it all makes sense.\n\n**Lambda Expressions**\n\nLambda expressions are a way to pass code to a function similar to delegates or anonymous\n methods. In that sense they are a logical evolution of delegates. Having type inference\n helps tremendously because the types can be inferred from context instead of having\n to be specified in the language. The operator “ => “ is read as “for which”.\n\n**Linq**\n\nThe killer app for all the new features is certainly [Linq](http://msdn.microsoft.com/netframework/future/linq/). Linq allows queries against a variety of data sources to be performed without having\n to embed nasty SQL or XPATH expressions into string variables. Instead it uses the\n native language syntax to express the queries and result sets. Very cool.\n\n## Don on WWF & Indigo\n\nSad but true... not many smart people are funny and not many funny people are exceptionally\n smart. Don Box is the definite exception to this rule, so it is always great to hear\n him talk. This time he showed off a major \"Frankenbuild\" of WWF (the workflow foundation,\n formerly known as WinOE), Indigo and what not to show how process models and services\n can interact to create more transparent distributed systems. According to him \"this\n stuff does not run anywhere except in Dharma’s bedroom\" but it was still quite interesting\n and entertaining. As such, Don reminded us to take this all with a grain of salt and\n emphasized that “There are no tenets of workflow enabled services”. :-) Instead of\n a complete transcript of the talk (I am sure you can find that somewhere) I captured\n a few highlights and noteworthy quotes, especially the ones that are funny and insightful.\n\n- “Exchanging messages gives you deniability: I did not know he is such a FORTRAN hack”.\n This is a rarely mentioned benefit of abstraction.\n- \"The Web services union rules required us to make a calculator service.\"\n- \"Our world is not constrained by stack frames.\"\n- \"Go ahead, live the dream. Put a DLL out there.\"\n\nThe core message (no pun intended) of the talk can be summarized as follows:\n\n- Workflow-enabled services are (potentially long-running) transparent processes.\n - Long-running = longer than one (ACID) transaction\n - Transparent = not an opaque DLL, I have visibility into the definition and the running\n state\n- Transparency is necessary but not sufficient to enable post-deployment modification\n of process definitions.\n\nThe big picture looks like this: messages come into an endpoint (according to Don\n \"You now know Indigo\" ). The message starts a XAML-based workflow that uses the WWF\n execution engine. The workflow simplifies asynchronous and concurrent execution, as\n opposed to having to deal with threads and all that. \n The main activities of the workflow are send and receive. Keep in mind that the service\n provider can be both sender and receiver. Do not mix up sender and receiver with client\n and server. (of course anyone who reads my ramblings has [known this for a long time](26_symmetry.html)). The basic MEP of request-reply has made this distinction so confusing.\n\nCool feature: As part of the transparency goal state transitions inside the work flow\n are published as an RSS feed. You can also inspect the XAML for the service by appending\n `?rawContent` to the URL. You can then open this process definition in the workflow designer and\n edit the XAML post-deployment.\n\n## Other Stuff\n\nJochen Seemann gave another demo of the DSL tools in VS 2005. Early stage still but\n very interesting. I'll save this for another post.\n\nLuckily we had Friday afternoon off and got to see a little bit of LA. Every time\n I roam around \"downtown\" LA I feel like there is no way Blade Runner could have taken\n place in any other city. Fittingly enough the last part of the movie was filmed in\n the [Bradbury Building](http://www.brmovie.com/Locations/Bradbury_Building.htm) in Downtown LA. [Pip](http://mikeroberts.thoughtworks.net/blog/) and I then braved the LA traffic and crawled to the Getty and Santa Monica. All in\n all a nice way to finish up the conference.\n\n*Share:*\n\n*Follow:* [Follow @ghohpe](https://twitter.com/ghohpe) [SUBSCRIBE TO FEED](../ramblings.rss)\n\n*More On:* [EVENTS](/ramblings_events.html) [ALL RAMBLINGS](../ramblings.html)\n\nGregor is a cloud architect and author. He is a frequent speaker on asynchronous messaging,\n IT strategy, and cloud.", "znaku_textu": 14240, "slov": 2319, "odkazu": 54, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/ramblings/35_pdc.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 06:54:28", "sha256": "b94a46dc34cd63aeaf5302b61e796f3b99eaf9a1f90dea352254b38aeaa2eb01", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://architectelevator.com/blog", "http://msdn.microsoft.com/events/pdc/", "http://amazon.com/o/asin/1590595009/ref=nosim/enterpriseint-20", "http://books.slashdot.org/article.pl", "http://commnet.microsoftpdc.com/content/sessionview.aspx?TopicID=0400a210-d20e-47c4-a250-0752ee17b3d6", "http://www.from9till2.com/default.aspx?date=2005-08-12", "http://www.microsoft.com/downloads/details.aspx?DisplayLang=en&FamilyID=2ac59b30-5a44-4782-b0b7-79fe2efd1280", "http://msdn.microsoft.com/netframework/future/linq/", "http://www.brmovie.com/Locations/Bradbury_Building.htm", "http://mikeroberts.thoughtworks.net/blog/", "https://twitter.com/share", "https://twitter.com/ghohpe", "https://leanpub.com/37things"]} {"url": "https://www.enterpriseintegrationpatterns.com/ramblings/36_podcast.html", "titulek": "Ramblings Now In Audio - Enterprise Integration Patterns", "h1": "Ramblings Now In Audio", "popis": "Two years ago you were not cool if you did not have a blog", "klicova_slova": "", "kanonicka": "", "jazyk": "en_US", "robots_meta": "", "og": {"og:type": "article", "og:locale": "en_US", "og:site_name": "Enterprise Integration Patterns", "og:title": "Ramblings Now In Audio", "og:description": "Two years ago you were not cool if you did not have a blog", "og:url": "https://www.enterpriseintegrationpatterns.com/ramblings/36_podcast.html"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Ramblings Now In Audio"}], "markdown": "Gregor's Ramblings\n\n---\n\n# Ramblings Now In Audio\n\nOctober 12, 2005\n\nFind my posts on IT strategy, enterprise architecture, and digital transformation\n at [ArchitectElevator.com](https://architectelevator.com/blog).\n\nWhen Mario asked me at the Microsoft MVP Summit to do a PodCast on the layering pattern\n I at first thought that this would be slightly boring. However, once we started talking\n we realized that there are a lot of nuances and related topics to layering that are\n quite worthwhile discussing. While thinking out loud what we would talk about I told\n Mario to better start recording because good ideas were popping out left and right.\n In the end this talk about \"layering\" included snippets on model generation, interaction\n models, architectural styles, process engines, SOA, state transfer, and (gasp!) Microsoft\n Access. [Check it out.](http://www.mariocardinal.com/podcast/Show/0007.html)\n\nThink that listening to layering is old news and everybody should know anyway? Well,\n look through some large business apps and see how well layered they are. Oops... so\n what happened? Who wrote all that crappy code that drags SQL data types into the UI\n layer? No one, of course. Maybe the janitor came in at night and did that... Right!\n (remember the Dilbert where the garbage man finds a mistake in Dilbert's math? When\n Dilbert asks him how come that he is a garbage man his response is that the real question\n is how come that Dilbert gets to be an engineer...). The fact is: bad code is not\n actually written but rather happens. Therefore, I think it rarely hurts to reinforce\n some of the well-known ideas and remind people of the nuances and motivations. So\n have a peek -- it is shorter than your typical soap opera episode. And no commercials...\n\n*Share:*\n\n*Follow:* [Follow @ghohpe](https://twitter.com/ghohpe) [SUBSCRIBE TO FEED](../ramblings.rss)\n\n*More On:* [GREGOR](/ramblings_gregor.html) [ALL RAMBLINGS](../ramblings.html)\n\nGregor is a cloud architect and author. He is a frequent speaker on asynchronous messaging,\n IT strategy, and cloud.", "znaku_textu": 2051, "slov": 310, "odkazu": 44, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/ramblings/36_podcast.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 06:54:27", "sha256": "bcdd18a66130b201a99706c1e316722a647782f0cb8d673f6fcea501d0c347a2", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://architectelevator.com/blog", "http://www.mariocardinal.com/podcast/Show/0007.html", "https://twitter.com/share", "https://twitter.com/ghohpe", "https://leanpub.com/37things"]} {"url": "https://www.enterpriseintegrationpatterns.com/ramblings/37_oopsla.html", "titulek": "Revenge of the Nerds - OOPSLA 2005 - Enterprise Integration Patterns", "h1": "Revenge of the Nerds - OOPSLA 2005", "popis": "Remember the people from high school who had strange hobbies and could never get a date? Well, they all grew up and they are running a conference now, the Object-Oriented Programming, Systems, Languages, and Applications conference, OOPSLA in short", "klicova_slova": "", "kanonicka": "", "jazyk": "en_US", "robots_meta": "", "og": {"og:type": "article", "og:locale": "en_US", "og:site_name": "Enterprise Integration Patterns", "og:title": "Revenge of the Nerds - OOPSLA 2005", "og:description": "Remember the people from high school who had strange hobbies and could never get a date? Well, they all grew up and they are running a conference now, the Object-Oriented Programming, Systems, Languages, and Applications conference, OOPSLA in short", "og:url": "https://www.enterpriseintegrationpatterns.com/ramblings/37_oopsla.html"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Revenge of the Nerds - OOPSLA 2005"}, {"uroven": 2, "text": "Revenge of the Nerds"}, {"uroven": 2, "text": "Do Acronyms With \"O\" Have Bad Karma?"}, {"uroven": 2, "text": "Echoes: Structured Design and Modern Software Practices"}, {"uroven": 2, "text": "Brian Foote: I have Nothing to Declare but my Genius"}, {"uroven": 2, "text": "Grady Booch"}, {"uroven": 2, "text": "Kevlin Henney"}, {"uroven": 2, "text": "Jerry Sussman"}], "markdown": "Gregor's Ramblings\n\n---\n\n# Revenge of the Nerds - OOPSLA 2005\n\nOctober 23, 2005\n\nFind my posts on IT strategy, enterprise architecture, and digital transformation\n at [ArchitectElevator.com](https://architectelevator.com/blog).\n\n## Revenge of the Nerds\n\nOOPSLA is not your typical developer conference. At first sight it can appear utterly\n disorganized and a little clique-ish. Dick Gabriel even created an unofficial schedule\n because the official one was nearly impossible to figure out. And the venue was\n a 60ies relic of a \"resort\" that would be more suitable as a backdrop for a teenage\n slasher movie than a professional conference. Alas, attendees came from pretty far\n away and for good reasons.\n\nIf I was marketing OOPSLA my slogan would be \"If you are too smart to go to JavaOne\n or TechEd, you should come to OOPSLA!\" OOPSLA offers an eclectic mix of tutorials,\n often taught by leading authors and thought leaders in their respective fields, and\n presentations from academia that can appear a bit on the intellectual fringe. In combination,\n though, it makes for an inspiring mix of pragmatic information and intellectual stimulation.\n Care to learn more about new programming languages and models, such as programming\n by example? Learn more about dynamic languages? It's all right here, including GoF\n fellow Ralph Johnson getting box lunches for the panelists (as seen on the right).\n\n## Do Acronyms With \"O\" Have Bad Karma?\n\nOne observation I could not help but make is the fact that the letter \"O\" fares particularly\n poorly when it comes to acronyms in our industry. First, we had to give up the \"O\"\n in SOAP because SOAP has nothing to do with objects -- more likely the opposite. Subsequently,\n Microsoft killed the \"O\" in all of its workflow related products: XOML became XAML,\n WinOE became WWF. Somehow \"O\"rchestration must have fallen out of favor with the marketing\n department. OOPSLA is in even bigger trouble as it has two O's. It seems that there\n is simply not much left to say about objects these days. Everybody is using it, the\n common patterns are well understood, and language support is fairly abundant. One\n could say that OOPSLA has become the victim of its own success because only a small\n portion of OOPLSA still has something to do with object-oriented design.\n\nThe most interesting discussions on objects seemed to center on two themes. First,\n not everything is an object and object modeling is not the best choice for all problem\n domains. This become more apparent as the SOA buzzword engine actually does draw attention\n to some useful non-OO programming styles such as process modeling, document-based\n interactions, and service composition. In the end it is the same old \"hammer and nail\"\n effect but the object success may have caused a significant amount of inertia that\n makes for a bigger hammer.\n\nInterestingly, though, some talks also focused on areas where objects would be very\n useful but are not utilized. Brian Foote's talk in the Dynamic Language Symposium\n rightly challenged that the whole programming and execution environment should be\n available as objects: \"Why is my source code not an object?\" \"I should be able to\n get the process object and invoke the kill() method\". In fact, SmallTalk let you do\n this.\n\n## Echoes: Structured Design and Modern Software Practices\n\nWhile the title of this panel did not necessarily catch my attention, the all-star\n cast did: Having Ed Yourdon, Larry Constantine, Grady Booch, and Kent Beck amongst\n the panelists suggested an entertaining and insightful debate. And we were not disappointed.\n After all, panels live and die with the wit of the panelists and this one definitely\n lived. Kent Beck's opening remark stating that he reread [Structured Design](http://www.amazon.com/exec/obidos/ASIN/0138544719/enterpriseint-20) to prepare for the panel was a reliable indicator of more good things to come.\n\nMost of the discussion centered on the role of design techniques and modeling languages\n and the way we design software. Structured design, introduced by Constantine and Yourdon\n some 25 years ago was one of the early \"methodologies\" and also included a design\n notation. An interesting theme during the panel focused on how much a methodology\n and notation can help developers come up with good designs. There was also general\n consensus that using any structured design technique is more important than picking\n a specific approach. Structured design had many of the right ingredients to guide\n developers to think about the way they map the problem domain to the solution domain\n even though it did not provide the expressiveness of an object-oriented design. In\n a nice acknowledgment to Constantine and Yourdon 's work , Kent Beck remarked appropriately\n that *\"People who could not do a decent job with structured design went to objects so noone\n would notice.\"*\n\nThe panel was dotted with memorable quotes from some of the more memorable names in\n the history of software engineering:\n\n- \" *Software design is rarely the subject of a lawsuit. Probably because the average juror\n is a chicken farmer with a 6th grade education* \" -- Ed Yourdon\n- *\"The UML is not a modeling language. It is a mess of bits and pieces with no unifying\n consistency.\"* -- Larry Constantine\n- *\"I cannot be held responsible for all the stupid uses of the UML\"* -- Grady Booch\n- *\"Yes, I created one of the first 'waterfall' approaches but I did not create analysis\n paralysis\"* -- Larry Constantine\n- *\"You should aim to produce a system that the users wish they had asked for.\"* -- Kent Beck\n- *\"I blog because I can't get published.\"* -- Grady Booch\n- *\"I have always used intentional programming. I always intended my program to do something\n else.\"* -- Grady Booch\n\n## Brian Foote: I have Nothing to Declare but my Genius\n\nAs the title might suggest, Brian gave a funny and insightful talk as part of the\n Dynamic Language Symposium. My key take-away was Brian's statement that the notion\n of a dynamic language that interacts transparently with the development and run-time\n environment seems to have been ignored in the last decade of language design. Brian\n showed a list of items spanning two slides that should be accessible as objects. This\n includes the run-time environment, such as running processes or the source code. Why\n would you want the source code of your program available as objects from your program?\n This may sound like an idea that only hard core geeks with too much time on their\n hands could find useful, but think again. Refactoring tools have very quickly matured\n from academic ideas to must-have tools (I will not code anything without ReSharper\n or IntelliJ). The key to these tools is the insight that the source window does not\n simply contain a sequence of characters but an abstract syntax tree. Parsing and manipulating\n this tree allows for the real-time underlining and refactoring that we have come to\n love so dearly. Now why couldn't this be part of the language run-time already rather\n than proprietary vendor technology?\n\nMost interestingly, there are a few programming environments that are closer to the\n notion of everything being an object. Oddly these environments tend to use very clunky,\n XML-based languages. We are talking about the tools and languages that live in the\n Web-services / SOA space, such as BPEL and XSL. XSL must be one of the most hated\n languages of recent times, but the fact that XSL source code is an XML document means\n that you can easily modify an XSL \"program\" using XSL. This is something not so easily\n accomplished in Java or C#. Process modeling and execution tools based on BPEL (or\n comparable languages) also do pretty good in terms of making the run-time environment\n available programmatically. For example, most process engines let us enumerate the\n running process instances and interact with them. Once again the programming language\n syntax itself is debatable (and has been debated) but that should not make us ignore\n some of the good ideas that are part of the run-time environment. I think Dragos'\n [Orchestration Patterns](http://www.orchestrationpatterns.com/) might give us some better appreciation for these types of features.\n\n## Grady Booch\n\nGrady gave an update on his work on the [Handbook of Software Architecture](http://www.booch.com/architecture/index.jsp). After helping create a unified modeling language (despite all the bickering about\n UML, most people will agree that the creation of a unified modeling and diagramming\n language was a good thing) Grady is taking things up one level and wants to document\n what makes good architecture. I was excited to see that he views patterns as a key\n element in this endeavor. Of course I was ecstatic when Grady showed the list of his\n favorite patterns books and it included our book!!\n\n## Kevlin Henney\n\nKevlin gave a nice tutorial on the design of programming interfaces. Unfortunately,\n my paper notes are in the office so I'll have to write about it in more detail later.\n I wish the Google book scanning project, which always draws grief from publishers,\n included my notes :-) The good news is that some time next year Kevlin's and Frank\n Buschmann's new book on patterns languages will come out.\n\n## Jerry Sussman\n\nYou cannot complete your OOPSLA experience without attending one talk that is completely\n over your head. For me, this was Jerry Sussman's talk with the illustrious title [Why Programming is a Good Medium for Expressing Poorly Understood and Sloppily Formulated\n Ideas](https://www.oopsla.org/2005/ShowEvent87cf.html). I was very interested in the abstract of the talk, which promised to focus on the\n expressiveness of computer programs and how the program can help us better understand\n and express our ideas. Sadly, the talk used overhead foils that were projected via\n a camera, which made it harder to read the slides. The AV setup aside, the talk still\n went pretty clearly over my head. Luckily there's a [video available](https://dl.acm.org/doi/abs/10.1145/1094855.1094860) (also with difficult to read slides).\n\n*Share:*\n\n*Follow:* [Follow @ghohpe](https://twitter.com/ghohpe) [SUBSCRIBE TO FEED](../ramblings.rss)\n\n*More On:* [EVENTS](/ramblings_events.html) [ALL RAMBLINGS](../ramblings.html)\n\nGregor is a cloud architect and author. He is a frequent speaker on asynchronous messaging,\n IT strategy, and cloud.", "znaku_textu": 10300, "slov": 1647, "odkazu": 48, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/ramblings/37_oopsla.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 06:54:26", "sha256": "daf3a108d53ac402b238f15eb4d4c6b66523d1140c55ebb6ec5c78e5bac1e8c8", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://architectelevator.com/blog", "http://www.amazon.com/exec/obidos/ASIN/0138544719/enterpriseint-20", "http://www.orchestrationpatterns.com/", "http://www.booch.com/architecture/index.jsp", "https://www.oopsla.org/2005/ShowEvent87cf.html", "https://dl.acm.org/doi/abs/10.1145/1094855.1094860", "https://twitter.com/share", "https://twitter.com/ghohpe", "https://leanpub.com/37things"]} {"url": "https://www.enterpriseintegrationpatterns.com/ramblings/38_interaction.html", "titulek": "Of Boxes and Lines - Enterprise Integration Patterns", "h1": "Of Boxes and Lines", "popis": "After joining the big G I put particular emphasis on staying in touch with the ", "klicova_slova": "", "kanonicka": "", "jazyk": "en_US", "robots_meta": "", "og": {"og:type": "article", "og:locale": "en_US", "og:site_name": "Enterprise Integration Patterns", "og:title": "Of Boxes and Lines", "og:description": "After joining the big G I put particular emphasis on staying in touch with the ", "og:url": "https://www.enterpriseintegrationpatterns.com/ramblings/38_interaction.html"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Of Boxes and Lines"}, {"uroven": 2, "text": "Raising a Structure"}, {"uroven": 2, "text": "Interaction gets Attention"}, {"uroven": 2, "text": "Of Boxes and Lines"}, {"uroven": 2, "text": "Even the OMG took Notice"}, {"uroven": 2, "text": "Patterns"}], "markdown": "Gregor's Ramblings\n\n---\n\n# Of Boxes and Lines\n\nFeb 25, 2006\n\nFind my posts on IT strategy, enterprise architecture, and digital transformation\n at [ArchitectElevator.com](https://architectelevator.com/blog).\n\nWow, it's been a while since my last post... I guess typing on an airplane is more\n productive than on a shuttle bus bouncing up and down 101. Winter also tends to be\n busy because slide material for the developer conferences in Spring are due. I am\n going to be teaching 2 sessions at [SD West](http:/www.sdexpo.com) and 3 at [TheServerSide Java Symposium](http://javasymposium.techtarget.com) in March. And I was able to squeeze in an article for [ObjektSpektrum](http://www.sigs-datacom.de/sd/publications/os/2006/02/index.htm) in Germany. But let's talk about messaging...\n\n## Raising a Structure\n\nTraditional application design using object-oriented methods tends to focus on the\n structural aspects of the solution over the modes of interaction. This is no surprise\n considering that object-orientation provides for rich compositional constructs such\n as inheritance and aggregation. Classes tend to be rather fine-grained so that the\n structure composed of the individual elements is often the key design artifact. Lifecycle\n control is a close second, manifesting itself in creational patterns such as Factories\n and Singletons and structural concepts such as aggregation vs composition (which one\n was the solid diamond again?). The specific type of interaction between two individual\n components appears to be less interesting than the nature of the relationship between\n them. This observation also explains why UML Class Diagrams tend to be more popular\n then Collaboration Diagrams. Because I tend to rant about people who portray their\n own opinions as facts, let me substantiate my claim with some hard, scientific evidence!\n In the second edition of [UML Distilled](http://www.martinfowler.com/books.html#uml) (yeah, I still live in the \"UML<2\" world) Martin Fowler dedicates two chapters with\n a combined 46 pages to Class Diagrams while he speeds through Interaction Diagrams\n (combining Sequence and Collaboration Diagrams) in a mere 12 pages. Now who would\n want to argue with Martin Fowler? His opinions *are* facts :-)\n\n## Interaction gets Attention\n\nThe focus on structure over interaction is generally quite appropriate for most systems\n that exist in a single memory space and are under the control of a single development\n team. Method calls are pretty cheap and any issues related to the interaction of two\n objects are easily resolved. Still, traditional object-oriented design does not ignore\n interaction altogether. Some of the classic design patterns presented in GOF do concern\n themselves with the way objects interact. For example, the Mediator \"encapsulates\n how a set of objects interact\" while the Observer \"notifies all dependent objects\n of a state change\". Both patterns elevate the interaction between objects from their\n shadow life to become first class players in the object model. These patterns give\n us a hint that looking at the way components interact can be more interesting than\n might at first appear.\n\nIn distributed systems the significance of interaction increases dramatically:\n\n- Most obviously, the cost of interaction between components goes up significantly as\n data has to be serialized, sent over the wire, and put back together at the other\n end. Add a little routing, some transformation into the mix and soon the cost of a\n method call increased by a few orders of magnitude. Suddenly it matters a lot whether\n one component sends a single message or a series of small messages...\n- Distributed systems also introduce uncertainty into the mix. For example, if one component\n does not receive acknowledgment for a message it sent, more than one possible scenarios\n might have occurred. The request message might have been lost, the other component\n might have failed, or the response message might have been lost. Suddenly, even simple\n interactions have to deal with these eventualities. For example, is the sender allowed\n (or expected) to resend the request? How many times? How long does the sender have\n to wait? What happens if the resending is also unsuccessful? These questions rarely\n come up in the world of synchronous, object-oriented applications.\n- Additionally, loose coupling brings variability and lack of control. When dealing\n with a remote entity (assume for example a B2B scenario) the two communicating entities\n are typically developed by separate parties. Therefore, nailing down the rules of\n the interaction is important to make sure (potentially high value) transactions can\n be executed predictably and reliably.\n\nAt the same time structural aspects can move into the background as distributed\n systems often do not provide for rich structural mechanisms such as inheritance, polymorphism\n and the like. For example, this shift of attention from structure to interaction is\n at the heart of many of the debates on service-oriented computing. Service-oriented\n architectures have rather simple composition rules but pay close attention to loosely\n coupled interaction between systems.\n\n## Of Boxes and Lines\n\nRalf Westphal summarized this shift nicely when he concluded that we \"turn the lines\n into boxes\". He was referring to the usual diagram that depicts each component as\n a box and each interaction as a line between two boxes. Now that we are more interested\n in the interaction we turn the line (i.e. the interaction) into a first class citizen,\n i.e. a box. This metaphor works especially well in the world of messaging where we\n have a message *object* that represents a portion of the interaction. So even an OO class diagram would depict\n that message class (or object) as a box.\n\n## Even the OMG took Notice\n\nIt is a popular hobby to poke fun at the OMG. A friend of mine, who was involved in\n the CORBA spec work, once claimed that the \"OMG takes over good work and ruins it\".\n Hmmm... that sounds a little like the acquisition strategy used by Sun, so maybe misery\n loves company. Oh well, this is not the bile blog so let's focus on the bright side\n of life.\n\nThe weakness of sequence diagrams have long been the number one target in the UML\n specification. Sequence diagrams only depict *one possible* way for components to interact. This leaves a lot to be desired from the standpoint\n of a precise specification (\"execute that, my friend!\"). I am not sure whether it\n was this oft cited weakness or the realization that interaction is stepping in the\n foreground, but UML 2.0 introduces a series of additions to the good old sequence\n diagram. These extensions allow us to specify the actual rules of the interaction.For\n example, we now have interaction operators such as *option*, *parallel*, *weak sequencing* and so on. Sadly, the notation is rather hideous. Could this be the reason that \"UML\n 2.0 in a Nutshell\" banishes interaction diagrams to Chapter 10?\n\n## Patterns\n\nOf course, where there is something new, there are always a pattern or two to be found\n :-) While the p word has been abused pretty badly (apparently it helps sell stuff\n -- hey this would make good geek trivia \"what do patterns and sex have in common?\")\n focus on a new part of the application design does warrant a new set of patterns.\n Commonly occurring problems when designing interactions are inherently different from\n the problems you encounter when designing structures. If this is true, we should be\n seeing some new pattern languages around interaction and conversations. And I can\n back up my claim once again. Marlon Dumas and Arthur ter Hofstede (with the help\n of SAP) maintain a very nice collection of interaction patterns at [www.serviceinteraction.com](http://www.serviceinteraction.com). And reliable sources also tell me that we might be seeing integration patterns focused\n on conversations soon. To give you a hint, my talk at SD West is titled \"Conversations\n between Loosely Coupled Services\".\n\n*Share:*\n\n*Follow:* [Follow @ghohpe](https://twitter.com/ghohpe) [SUBSCRIBE TO FEED](../ramblings.rss)\n\n*More On:* [DESIGN](/ramblings_design.html) [ALL RAMBLINGS](../ramblings.html)\n\nGregor is a cloud architect and author. He is a frequent speaker on asynchronous messaging,\n IT strategy, and cloud.", "znaku_textu": 8263, "slov": 1279, "odkazu": 48, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/ramblings/38_interaction.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 06:54:25", "sha256": "a0cb3c2a6bf6078236fccbfc91dadd1bc969af9afa24a2d84878466964063dc6", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://architectelevator.com/blog", "http://javasymposium.techtarget.com/", "http://www.sigs-datacom.de/sd/publications/os/2006/02/index.htm", "http://www.martinfowler.com/books.html", "http://www.serviceinteraction.com/", "https://twitter.com/share", "https://twitter.com/ghohpe", "https://leanpub.com/37things"]} {"url": "https://www.enterpriseintegrationpatterns.com/ramblings/39_namingchannels.html", "titulek": "What is in a Name? - Enterprise Integration Patterns", "h1": "What is in a Name?", "popis": "Computer science is known as the field where every problem can be solved by just one more level of indirection", "klicova_slova": "", "kanonicka": "", "jazyk": "en_US", "robots_meta": "", "og": {"og:type": "article", "og:locale": "en_US", "og:site_name": "Enterprise Integration Patterns", "og:title": "What is in a Name?", "og:description": "Computer science is known as the field where every problem can be solved by just one more level of indirection", "og:url": "https://www.enterpriseintegrationpatterns.com/ramblings/39_namingchannels.html"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "What is in a Name?"}, {"uroven": 2, "text": "A New Element"}, {"uroven": 2, "text": "More Than Just a Name"}, {"uroven": 2, "text": "Shifting Responsibilities"}, {"uroven": 2, "text": "The Catch"}], "markdown": "Gregor's Ramblings\n\n---\n\n# What is in a Name?\n\nMar 5, 2006\n\nFind my posts on IT strategy, enterprise architecture, and digital transformation\n at [ArchitectElevator.com](https://architectelevator.com/blog).\n\n## A New Element\n\nMessaging-based interaction introduces two new elements, a channel and a message.\n Despite their simplicity these new elements open up options and force new decisions.\n A deceivingly simple question is “how should the channel be named?” When one method\n called another directly there was no intermediate element and therefore no decision\n to make. Now that we afforded ourselves the new level of indirection we have to name\n it appropriately. Choices, choices...\n\n## More Than Just a Name\n\nIn order to find an appropriate name for a channel we need to first determine what\n the channel should represent. Even though a channel can be a purely logical construct,\n it is the key mechanism that couples sender and receiver. Both sender and receiver\n of messages have to agree on a common channel name in order to exchange messages.\n\nLet's look at a few obvious choices:\n\n- A very simple approach assigns each component its own channel. For example, a component\n that deals with credit card validations could be called the `CreditService` and react to messages sent on a channel also named `CreditService` . If any component needs something related to credit it would send a message to that\n channel. This simple approach does give us a level of indirection at the implementation\n level -- we could replace one credit service implementation with another without anyone\n noticing since the channel name would not change. The semantics of the interaction,\n however, are not much decoupled. The caller still has to know which component provides\n the functionality it requires, much like it does in a direct one-to-one interaction\n between components.\n- To reduce the dependency on a specific service we could name the channel analogous\n to a method name, i.e. according to the operation that is to be performed. For example,\n if the service provided an operation that can verify a credit card supplied by a customer\n we might simply name the channel `VerifyCreditCard` . It is important to keep in mind that these channel operations are not tied to a\n specific class as is the case in object-oriented approaches. As a result, the caller\n no longer has to know which component is able to service this type of request, increasing\n the level of abstraction somewhat. Service-oriented computing generally follows this\n approach with the only caveat that the operation is typically tied to a specific service\n (interface).\n- Despite the introduction of the channel the semantics of the interaction between the\n two components still smells a little like a call stack-based system: One component\n sends a specific request (“check this credit card”) and expects a response (“card\n good” or “card bad”). But don't despair, we have not yet exhausted the creative possibilities\n of the channel semantics. Both examples above assume that the requesting component\n knows that a credit card has to be verified. Could we lift this burden from the “caller”\n altogether so that the components are truly decoupled? We can take the decoupling\n one step further by changing the channel name (and the associated semantics) to `OrderReceived` . This simple change in name signifies a fairly significant shift in responsibility.\n The message on the channel no longer represents an instruction but rather an event,\n a notification that something happened. How a receiver responds to this event is completely\n hidden to the sender. We also no longer assume that there is a single recipient for\n the event -- the event might be processed by more than one subscriber. For example,\n a new order not only has to go through credit checking but inventory might also have\n to be verified. Again, the assumptions between the communicating parties have been\n reduced. As a result, EDA is often considered to be more loosely coupled than SOA.\n\n## Shifting Responsibilities\n\nCommunicating through events as opposed to commands indicates a subtle but important\n shift of responsibility. It allows components to be decoupled to the extent that the\n “caller” is no longer aware of what function is executed next nor which component\n is executing it. Another equally important shift of responsibility between caller\n and callee is that of keeping state.\n\nIn a system that is based on queries and commands state is usually kept in one application\n that is considered the “master” for the data. When another application needs to reference\n that data it sends a query to the owning application and waits for the response before\n it continues processing. For example, when an order management system needs to fulfill\n an order it queries the customer management systems for the customer’s address so\n it can instruct the shipping application to send the shipment to that address.\n\nEvent-driven systems work differently, almost to the inverse. Systems do not query\n other systems for information but instead keep their own copy of the required data\n and listen to updates as they occur. In our example this would mean that the shipping\n system keeps its own copy of the customer’s address so when an order arrives it can\n use that address to label the shipment without having to query the customer management\n system. While replicating data this way might seem dangerous it also has advantages.\n The customer management system simply broadcasts changes to the data without having\n to know who all keeps a copy. Because the customer management is never queried for\n address data it never becomes a bottleneck even as the system grows and the demands\n for address data multiply.\n\nThe principle behind the shift in responsibility is once again tied to the concept\n of coupling. In a loosely coupled interaction a source of data should not be required\n to keep state at the convenience of its communication partners. By shifting the burden\n of keeping state to the consumer the component is can be completely oblivious to the\n needs of the data consumers – the key ingredient into loose coupling. The shift away\n from the query-response pattern of interaction means that many components have to\n act as event [Aggregators](../Aggregator.html): they listen to events from multiple sources, keep the relevant state and combine\n information from multiple events into new events. For example, the shipping system\n effectively combines address change events and order events into request for shipment\n to a specific address.\n\n## The Catch\n\nIt sounds like event-based systems surpass command-and-control systems across the\n architectural \"score card\". They are more loosely coupled and allow free composition\n of individual components into a larger system, thus aiding reuse and flexibility.\n Additionally, they can provide a natural mapping of a problem space into the system\n model. After all, many interactions in the real world are based on events. So are\n non-event-based systems for losers? Not quite -- as always, there is not free lunch,\n at least outside Google. Dynamic, loosely coupled systems are inherently difficult\n to design and debug (see [Good Composers are Far and Few in Between](19_composing.html)). So we need to make sure to have the right tools at hand (for example, see [Visualizing Dependencies](11_dependencies.html)) and to gain experience by making mistakes early in a small scale.\n\n*Share:*\n\n*Follow:* [Follow @ghohpe](https://twitter.com/ghohpe) [SUBSCRIBE TO FEED](../ramblings.rss)\n\n*More On:* [DESIGN](/ramblings_design.html) [MESSAGING](/ramblings_messaging.html) [ALL RAMBLINGS](../ramblings.html)\n\nGregor is a cloud architect and author. He is a frequent speaker on asynchronous messaging,\n IT strategy, and cloud.", "znaku_textu": 7760, "slov": 1221, "odkazu": 46, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/ramblings/39_namingchannels.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 06:54:24", "sha256": "3028dde92ddc4c45dfe483527483e3e876386384164a76ff16a45d1d1c4095a9", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://architectelevator.com/blog", "https://twitter.com/share", "https://twitter.com/ghohpe", "https://leanpub.com/37things"]} {"url": "https://www.enterpriseintegrationpatterns.com/ramblings/40_marchnan.html", "titulek": "March is Not a Number - Enterprise Integration Patterns", "h1": "March is Not a Number", "popis": "A lot of discussion these days relates to DSL's (Domain Specific Languages) that allow business models and rules to expressed in a more readable fashion in the source code", "klicova_slova": "", "kanonicka": "", "jazyk": "en_US", "robots_meta": "", "og": {"og:type": "article", "og:locale": "en_US", "og:site_name": "Enterprise Integration Patterns", "og:title": "March is Not a Number", "og:description": "A lot of discussion these days relates to DSL's (Domain Specific Languages) that allow business models and rules to expressed in a more readable fashion in the source code", "og:url": "https://www.enterpriseintegrationpatterns.com/ramblings/40_marchnan.html"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "March is Not a Number"}, {"uroven": 2, "text": "Domain Languages"}, {"uroven": 2, "text": "Domain-driven Design"}, {"uroven": 2, "text": "Easy to Write vs. Easy to Read"}, {"uroven": 2, "text": "Time and Money"}, {"uroven": 2, "text": "Explicit and Implicit Concepts"}, {"uroven": 2, "text": "Make Your Code Worth Reading"}], "markdown": "Gregor's Ramblings\n\n---\n\n# March is Not a Number\n\nApril 16, 2006\n\nFind my posts on IT strategy, enterprise architecture, and digital transformation\n at [ArchitectElevator.com](https://architectelevator.com/blog).\n\n## Domain Languages\n\nDomain specific languages promise to be the next big step in software development\n productivity, significantly reducing the gap between the business domain and the implementation\n domain. As with most things in our field, the idea of domain languages is not exactly\n new. Many of the unix tools such as tcl, lex, yacc can justly be called domain specific\n languages (for text processing, scanner generation, etc). Unfortunately, in the past\n creating a new language was generally quite difficult and working with them also mostly\n meant giving up modern IDE amenities such as syntax-highlighting, interactive debugging,\n and auto-complete. Now many people are now working on making creating and working\n with these languages easier so that it becomes a viable option to create a (or multiple)\n new languages for each project.\n\nOne major distinction in DSLs are *embedded* DSLs vs. *external* DSLs. In short, external DSLs define a new language from ground up. For example XSLT\n is an external language for XML document transformation. Embedded DSLs are built inside\n a \"host\" language such as Java or Ruby. There are quite a few discussions about what\n makes a programming language a good host language. For now I'll simply refer to a\n [higher authority](http://martinfowler.com/articles/languageWorkbench.html).\n\n## Domain-driven Design\n\nOnce we talk about things that start with *domain* [Eric Evans](http://domainlanguage.com/ddd/index.html) (the author, not the porn star) is never far away, at least conceptually. Eric has\n written an excellent [book](http://domaindrivendesign.org/book/) on domain-driven design. Once again, I defer to the higher authority for all the\n gory details (Eric's site features an excellent [summary of the patterns](http://domaindrivendesign.org/book/PatternSummariesUnderCreativeCommons.doc) in his book). For my purposes let it suffice to say that the goal is to develop an\n expressive model of the problem domain that can be closely reflected in the resulting\n source code. Coding against this model results in code that uses essentially the same\n language the domain experts use (albeit with some inevitable syntax clutter).\n\n## Easy to Write vs. Easy to Read\n\nOne of the main motivations behind these techniques and approaches is to write code\n that is more expressive as to the problem it is trying to solve. Ever wondered what\n a piece of code is actually doing? Or, worse yet, can you tell a business person where\n in the code base a specific piece of business logic is \"buried\"? A lot has been said\n about \"code that is worth reading\" to quote Ward Cunningham. Along the same lines\n my recent [keynote](../docs/TSS_Keynote_Hohpe.pdf) at [TheServerSide Java Symposium](http://javasymposium.techtarget.com/) (re-)emphasized the notion of \"coding for humans instead of the machine\".\n\nOne of my key realizations in this topic area is that you do not have to go out and\n write a whole new domain language to make headway in achieving this goal. Just thinking\n a bit harder and putting special emphasis on the way your code reads often gets you\n leaps and bounds ahead of hard-to-understand everyday code. And while Java is not\n the best language to host a domain language you can get a whole lot further than you\n would by not trying.\n\nThe essence is a mental shift away from code that is easy to write to code that is\n easy to read. Once you realize that most code is read a lot more often than it is\n written (insert your favorite statistic stating that X% of total software cost results\n from maintenance here) it makes sense to put a bit more effort into code that is nice\n to read. I am not talking about indentation and comments here but about code that\n is actually a pleasure to read because it represents an accurate and elegant representation\n of the problem that is being solved. Source code is such an expressive medium that\n it would be a shame not take more advantage of its capabilities. Let me give you a\n simple example.\n\n## Time and Money\n\nEric Evans developed an open source [Time and Money](http://sourceforge.net/projects/timeandmoney) library that he uses in projects and also in his training classes. I was lucky enough\n to attend one of his workshops and write some code against the library. While it is\n easy to come up with something significantly better than `java.util.Calendar` (e.g. see [JodaTime](http://joda-time.sourceforge.net/)) Eric's library has some nice properties that get to the heart of expressive software.\n\nOne exercise in Eric's tutorial asks us to implement the following business rule:\n payments are due 30 days after the end of the month in which the work was completed.\n Using `java.util.Calendar` one can easily imagine the ugly code that has to wrestle with months that start with\n 0 and years that start with 1900, all of which has rather little to do with the problem\n at hand. Implemented on top of Eric's [Time and Money](http://sourceforge.net/projects/timeandmoney) the code looks like this:\n\n```\nCalendarDate dueDate(CalendarDate workEndDate, int allowableDays) {\n return workEndDate.month().end().plusDays(allowableDays);\n}\n```\n\nThe first observation is surely that the code reads very much like the requirement\n in English: \"from the work's month end add *n* days\". To me, the most noteworthy piece of this nice line of code is the `month()` method. One might find it curious that this method actually returns a `CalendarInterval` instead of a number like `java.util.Calendar` would. But come to think about it, the month of March is not a number, so any expression\n like `3 == date.getMonth()` should seem silly. Instead the month of March is a range of days from March 1st to\n March 31st.\n\n## Explicit and Implicit Concepts\n\nAnother critical observation is that `CalendarDate` actually denotes a date and not a specific point in time like `java.util.Calendar`. Dates do not have hours and minutes and also do not have time zones. The 20th of\n March is simply that, a day in the year, regardless of where on earth you are. In\n contrast, were you using Java `Calendar` you would have to bake in some assumptions to have it represent a date instead of\n a specific point in time. Most implementations do this by fixing the time to 0:00:00\n and selecting a default time zone such as GMT. It gets tricky when these assumptions\n are not explicitly stated. For example, is a method allowed to look at the hours\n or minutes of a `Calendar` that is passed in? Can it assume that they would also be zero? If it sets a different\n value will that be persisted to the database? Code is better off not having to ask\n such questions.\n\nThe Time and Money library does not hide these concepts but instead makes them explicit.\n That means that if you want to convert from a `CalendarDate` to a `java.util.Calendar` you have to specify all assumptions that are made implicitly by `Calendar`, such as the time zone. The code to accomplish this conversion looks like this:\n\n```\nCalendar convertToCalendar(CalendarDate date) {\n return date.asTimeInterval(TimeZone.getDefault()).start().asJavaCalendar();\n}\n```\n\nYou might think: wow, why so much code? But come to think about it, `CalendarDate` is a date, not a point in time. So first you have to convert the day into a time\n interval, e.g. the span of time from midnight on the beginning of the date until midnight\n of the next day. Since we are talking times now we need to introduce the concept of\n time zones. While March 20th is always March 20th when we talk about dates, as soon\n as we start talking about times and time intervals we need to realize that March 20th\n starts a lot earlier in Japan than it does in California. Note that because the concept\n of time zone is critical for this conversion there is no default constructor. You\n have to make it explicit which time zone you want to use, even if you choose the default\n time zone. Lastly, if your convention is to default the time portion of `Calendar` to 0:00:00 you express that by specifying the `start()` of that time interval to be used for the conversion to `Calendar`. Having to re-inject the assumptions might mean more typing but it answers all the\n nagging questions posed above. You can shorten the expression a little:\n\n`return date.startAsTimePoint(TimeZone.getDefault()).asJavaCalendar();`\n\nHere the notion of taking the starting point and converting it to a time point is\n accomplished in a single step. I almost prefer the former option as it makes it more\n explicit what the step-by-step conversion is.\n\n## Make Your Code Worth Reading\n\nI hope this simple example illustrates how a simple piece of business logic can be\n implemented in code such that it truly expresses what the business is asking for.\n No compiler generators, byte code injection, or other magic were needed. All that\n it took was to take the time to really understand the problem domain and to write\n code that reflects this understanding. Now that's what I call code that is worth reading.\n\n*Share:*\n\n*Follow:* [Follow @ghohpe](https://twitter.com/ghohpe) [SUBSCRIBE TO FEED](../ramblings.rss)\n\n*More On:* [DESIGN](/ramblings_design.html) [ALL RAMBLINGS](../ramblings.html)\n\nGregor is a cloud architect and author. He is a frequent speaker on asynchronous messaging,\n IT strategy, and cloud.", "znaku_textu": 9411, "slov": 1511, "odkazu": 51, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/ramblings/40_marchnan.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 06:54:23", "sha256": "6010ab4727a09c5efd36ad0cd0f525308895f262e774ca28e972ed5414e2222d", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://architectelevator.com/blog", "http://martinfowler.com/articles/languageWorkbench.html", "http://domainlanguage.com/ddd/index.html", "http://domaindrivendesign.org/book/", "http://domaindrivendesign.org/book/PatternSummariesUnderCreativeCommons.doc", "http://javasymposium.techtarget.com/", "http://sourceforge.net/projects/timeandmoney", "http://joda-time.sourceforge.net/", "https://twitter.com/share", "https://twitter.com/ghohpe", "https://leanpub.com/37things"]} {"url": "https://www.enterpriseintegrationpatterns.com/ramblings/41_metrics.html", "titulek": "The Metrics Maid - Enterprise Integration Patterns", "h1": "The Metrics Maid", "popis": "Some of the most hated people in San Francisco must be the meter maids, the DPT people who drive around in golf carts and hand out tickets to anyone who overslept street cleaning or did not have enough quarters for the meter", "klicova_slova": "", "kanonicka": "", "jazyk": "en_US", "robots_meta": "", "og": {"og:type": "article", "og:locale": "en_US", "og:site_name": "Enterprise Integration Patterns", "og:title": "The Metrics Maid", "og:description": "Some of the most hated people in San Francisco must be the meter maids, the DPT people who drive around in golf carts and hand out tickets to anyone who overslept street cleaning or did not have enough quarters for the meter", "og:url": "https://www.enterpriseintegrationpatterns.com/ramblings/41_metrics.html"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "The Metrics Maid"}, {"uroven": 2, "text": "I Got You Covered"}, {"uroven": 2, "text": "May the Source Be With You"}, {"uroven": 2, "text": "Metric Magic"}, {"uroven": 2, "text": "Dangling the Carrot"}, {"uroven": 2, "text": "Recommended Use"}], "markdown": "Gregor's Ramblings\n\n---\n\n# The Metrics Maid\n\nApril 28, 2006\n\nFind my posts on IT strategy, enterprise architecture, and digital transformation\n at [ArchitectElevator.com](https://architectelevator.com/blog).\n\nSome of the most hated people in San Francisco must be the meter maids, the DPT people\n who drive around in golf carts and hand out tickets to anyone who overslept street\n cleaning or did not have enough quarters for the meter. On some projects, the most\n hated people are the metric maids, the people who go around and try to sum up a developer’s\n hard work and intellectual genius in a number between 1 and 10.\n\nMany managers love metrics: “You can’t manage it if you can’t measure it”. I am actually\n a big proponent of extracting and visualizing information from large code bases or\n running systems (see [Visualizing Dependencies](11_dependencies.html)). But when one tries to boil the spectrum between good and evil down to a single\n number we have to be careful as to what this number actually expresses.\n\n## I Got You Covered\n\nA frequently used metric for the quality of code is test coverage, typically expressed\n as a percentage computed by the (executable) lines of code that are hit by test cases\n over the total number of (executable) lines of code. If I have 80% test coverage this\n means that 80 out of 100 lines are being hit by my tests. It is a fairly safe statement\n to claim that a code module with 80% test coverage is better than one with 20% coverage.\n However, is one that has 90% really better than one that has 80%? Are two modules\n with 80% coverage equally “good”?\n We quickly find that a single number cannot do justice to all that is going on in\n a few thousand lines of source code. Still, finding an abstraction is nice so let’s\n see how far we can get with this metric.\n\n## May the Source Be With You\n\nFirst we need to qualify the metric with how it is obtained. 80% coverage obtained\n via fine-grained, automated unit tests probably counts more than 80% coverage obtained\n via coarse regression tests. We need to keep in mind that code coverage counts every\n line that was hit by a test, intentionally or unintentionally. Also, the metric does\n not make any statement whether any test actually verified that the specific line actually\n works correctly. It is a little scary to realize that test cases with no `assert` statements achieve the same coverage as tests with `assert`s. I have seen a few proposals to remedy this problem:\n\nYou might only count lines executed in the class specifically targeted by the unit\n test. For example, if `fooTest` exercises 60 out of 100 lines in `Foo` but also hits 50 lines in `Bar`, the lines in `Bar` do not count towards `Bar`'s test coverage because this test was not intended to test `Bar`. In fact, `Bar` being hit at all might have been the result of insufficient mocking or stubbing of\n the test for `Foo`. Such behavior should not be rewarded.\n\nA particularly interesting technique is *mutation testing*. This class of tools modify the source code (or byte code) in the class under test\n to see whether the change breaks any tests. If no tests break as a result of the random\n change the mutated line does not count as thoroughly unit tested. Ivan Moore wrote\n [Jester](http://jester.sourceforge.net), which performs Java mutation testing. It can produce [nice reports](http://jester.sourceforge.net/jester/acceptancetests/Untested.html) that show what was actually changed and whether the change resulted in a failed test.\n\n## Metric Magic\n\nA while ago we refactored a pretty miserable chunk of code. It took us more than a\n day to extract the meaningful concepts, refactor the code and add meaningful unit\n tests. Being proud of our work we ran a test coverage tool against the class to give\n ourselves a pad on the back about how much better our test coverage was. Sadly, the\n pad on the back was more like a kick in the pants. For one class the test coverage\n crept up by a mere 2 percentage points and for the other one it actually decreased!\n It turned out that the portion of the code that we refactored had actually decent\n test \"coverage\" (as determined by the tool), even though it was very poorly written.\n Rewriting it (and simplifying the logic) reduced the number of lines in this code\n segment, causing the overall percentage of tested code in the class actually to decrease\n because the remaining (still) poorly tested code did not shrink.\n\n## Dangling the Carrot\n\nYou should also be cautious about which metric carrot you want to dangle in front\n of the developers. In [Managing Software Maniacs](http://www.amazon.com/gp/product/0471009970) Ken Whittaker already warned that you should \"reward, never incent\". The biggest\n danger of incentives is that you might just get what you asked for, but not what you\n had in mind. If achieving a certain test coverage goal brings a bonus you have to\n expect developers to have high morals not to come up with a quick scheme to get coverage\n (such as tests without `assert`s). If your developers are really that sophisticated and honest maybe they need no\n incentive at all to do the right thing. A lot can be said about the dangers of incentives\n for developers but it seems that incentives based on metrics are particularly dangerous\n because a simple number can rarely represent the real intent.\n\n## Recommended Use\n\nEven with all these caveats metrics can be quite useful. I frequently use metrics\n in the following situations:\n\n- **Hotspotting** - If I measure [cyclomatic complexity](http://en.wikipedia.org/wiki/Cyclomatic_complexity) across a large code base and most methods come out with a value of 5-10 but a dozen\n or so methods have a value of 20 I should probably have a closer look at the outliers.\n- **Trending** - If I observe the unit test coverage in my system to be around 70% that by itself\n does not mean much -- some people might consider it quite high, others will frown\n upon this number. However, if my coverage used to be 70% a few months ago and it is\n 65% now, that is probably a bad sign. New code that is being checked into the system\n apparently has lower coverage than existing code. There might be a variety of reasons\n for this (maybe the system design calls for the addition of a large number of dumb\n data transfer objects that are not deemed complex enough to warrant tests) but unless\n there is a good explanation you should be concerned.\n- **Verifying assumptions** - I actually run coverage tools most frequently to see whether my coverage matches\n my expectations. Coverage tools such as [Emma](http://emma.sourceforge.net/) create [excellent reports](http://emma.sourceforge.net/coverage_sample_b/_files/2.html) that color code ines that were executed as part of a test vs. those that weren't.\n Again, I do not strive for a certain magic number but a I quickly scan the red lines\n (the ones that were not covered) to see whether I thought they were covered by a test.\n If there is a mismatch between my expectations and the actual line coverage it might\n indicate my misunderstanding of the logic or a test that succeeds without actually\n hitting the functionality I had in mind.\n\nOh, and I forgot one useful application of metrics: during performance review times\n they can be a handy weapon. Who can argue with \"my code has 95% test coverage\"? Just\n make sure your boss does not read this blog...\n\n*Share:*\n\n*Follow:* [Follow @ghohpe](https://twitter.com/ghohpe) [SUBSCRIBE TO FEED](../ramblings.rss)\n\n*More On:* [DESIGN](/ramblings_design.html) [ALL RAMBLINGS](../ramblings.html)\n\nGregor is a cloud architect and author. He is a frequent speaker on asynchronous messaging,\n IT strategy, and cloud.", "znaku_textu": 7610, "slov": 1266, "odkazu": 50, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/ramblings/41_metrics.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 06:54:22", "sha256": "f3f5e43fe6f3ecf932e0524e368a0ba897ce960fdd450b22f627426a1d8769df", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://architectelevator.com/blog", "http://jester.sourceforge.net/", "http://jester.sourceforge.net/jester/acceptancetests/Untested.html", "http://www.amazon.com/gp/product/0471009970", "http://en.wikipedia.org/wiki/Cyclomatic_complexity", "http://emma.sourceforge.net/", "http://emma.sourceforge.net/coverage_sample_b/_files/2.html", "https://twitter.com/share", "https://twitter.com/ghohpe", "https://leanpub.com/37things"]} {"url": "https://www.enterpriseintegrationpatterns.com/ramblings/42_eaidsl.html", "titulek": "EAI DSLs - Enterprise Integration Patterns", "h1": "EAI DSLs", "popis": " I am so clever", "klicova_slova": "", "kanonicka": "", "jazyk": "en_US", "robots_meta": "", "og": {"og:type": "article", "og:locale": "en_US", "og:site_name": "Enterprise Integration Patterns", "og:title": "EAI DSLs", "og:description": " I am so clever", "og:url": "https://www.enterpriseintegrationpatterns.com/ramblings/42_eaidsl.html"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "EAI DSLs"}, {"uroven": 2, "text": "Cool Projects"}, {"uroven": 2, "text": "Nostalgia"}, {"uroven": 2, "text": "A Domain Language"}, {"uroven": 2, "text": "Limitations"}, {"uroven": 2, "text": "EAI DSLs"}], "markdown": "Gregor's Ramblings\n\n---\n\n# EAI DSLs\n\nMay 23, 2006\n\nFind my posts on IT strategy, enterprise architecture, and digital transformation\n at [ArchitectElevator.com](https://architectelevator.com/blog).\n\n## Cool Projects\n\nDSLs (Domain Specific Languages) are a hot topics these days. Integration is also\n hot, despite the acronym du jour having evolved from EAI to SOA to EDA to SOA 2.0.\n When pondering the value of buzzword compliant architectures it struck me that a decade\n ago I created an EAI DSL! And I had almost forgotten.\n\nWhen I worked for AMS, my very first programming assignment was to connect from one\n state agency to another one to retrieve data. Classic integration! Now these were\n the days of C and PowerBuilder, and I used a magic tool called [EHLLAPI](http://www.inventu.com/ehllapi.html). This tool allows a program to simulate a user accessing another other system via\n a 3270 terminal. EHLLAPI actually stands for Extended High Level Language Application\n Programming Interface, which is a bit of a euphemism. Essentially, the API provides\n a single method called `hllc`. By passing variations of the ominous parameters to this method one can instruct\n the interface to perform various functions, such as emulating the user hitting a key\n or extracting characters from the 80 by 25 screen.\n\nEHLLAPI is the classic incarnation of [Presentation Integration](http://msdn.microsoft.com/practices/topics/appint/default.aspx?pull=/library/en-us/dnpag/html/archpresentationintegration.asp), more commonly referred to as \"[screen scraping](http://en.wikipedia.org/wiki/Screen_scraping)\". Screen scraping is widely considered the most “uncool” of all integration technologies\n since it is clunky and lacks cool buzzwords -- that is, until HTML became mainstream,\n at which point screen scraping was suddenly elevated to an art form and involved the\n much needed buzz to be taken seriously. Even I could not resist at the time and created\n [InfoGate](http://www.hohpe.com/Gregor/Work/portfolio.html#InfoGate). Of course, now that we live in a 2.0 world, [mashups](http://en.wikipedia.org/wiki/Mashup_(web_application_hybrid)) have surpassed Web screen scraping.\n\nAnyway, I think every project is only as cool as you make it and I thought this was\n a pretty cool one. The undeniable strength of screen scraping is that you can obtain\n automated access to external systems without requiring any changes to that system.\n Often, you can even accomplish it without the owner of the other system knowing about\n it. In our example, all we needed was a simple user ID and password. Of course, it\n would have been easier to just get a data feed from the other agency but that would\n have required a lot of coordination and a pile of paperwork. The going joke was always\n whether the other agency would notice that they had a very productive user who would\n log in and 6 am sharp and would never take a break.\n\n## Nostalgia\n\nLooking back at my old code nostalgia struck me. What kind of code did I write in\n 1994?\n\n```\n /*---------------------------------------------------------------------\n *\tPROGRAM:\tscript.c \n *\n *\tAUTHOR(s):\tGregor Hohpe\n *\n *\tDATE:\t\t11/08/94 \n *\n *\tDESCRIPTION:\n * \n *\tThe external agency interface script compiler.\n *---------------------------------------------------------------------*/ \n```\n\nWell, it doesn't have any unit tests, but at least it is well documented. Maybe the\n writing was on the wall that I wanted to write about integration some day!\n\n## A Domain Language\n\nI recall that in the beginning writing this software was no fun. The API provides\n a single method\n\n[void hllc (int *func, char *data, int *len, int *rc)](http://www.dataconnection.com/sna/sxdocs/hllpg.htm?./hllpg0f.htm)\n\nAaaah... the long gone days of APIs with an `int *function` parameter. Isn't it great to have an interface that never has to change? Hey, why\n not just pass a `void *`? someone passes in the wrong data structure, too bad. That's what protection faults\n are for. Interestingly, [TheServerSide](http://www.theserverside.com) just posted the video for my [Where did All My Beautiful Code Go?](http://www.theserverside.com/news/thread.tss?thread_id=40372) keynote at the TheServerSide Java Symposium. Well, I can attest that it did not go\n here!\n\nTo make matters worse, the biggest weakness of screen scraping is that it is inherently\n brittle. As soon as the user interface changes, chances are that the integration is\n broken. Soon I figured out that if I did not want to spend the rest of my passing\n parameters to `hllc` I better come up with an alternative.\n\nThis alternative came in form of a domain language. I did not so much have the creation\n of a real language on my mind, but having left school recently the Dragon Book left\n me with a certain fascinated for compilers. So I set out to implement the core screen\n scraping functions once in a generic engine and then drive the application through\n a series of scripts, one for each screen to be scraped. Each script would specify\n where on the screen the information could be found and would specify the name of database\n column that should receive this data element. If the screen layout ever changed, all\n I would have to do was edit the script.\n\nArmed with a general idea on how to build a tokenizer, parser, and interpreter I set\n out to define a scripting language that would suit my needs. As I hand rolled the\n all parts of the system, I kept the syntax very simple.\n\n```\n ;---- scrape XYZ screen ----\n LABEL SCREEN_ABC\n \n FIND \"ADDRESS\"\n EXTRACT \"Street\"\n POSITION 653\n EXTRACT \"City\"\n EXTRACT \"State\"\n EXTRACT \"ZIP\"\n \n FIND \"INACT DT\"\n EXTRACT \"InactiveDate\"\n NEXT \n EXTRACT \"Inactive\" \n \n```\n\nThis script could be invoked from the code by its label `SCREEN_ABC`. It would look at the current screen and find the label `ADDRESS`. It would then extract the next field (3270 screens are organized by input fields),\n write it into the database column `Street`, and advance to the next field on the screen. Other commands could skip a field (`NEXT`), or go to an absolute position on the screen (`POSITION`) if necessary. The syntax is trivial: each script line starts with a command or a\n comment indicator. Data types are limited to strings and integers. One might laugh\n at such a simple language syntax but it definitely did the trick and it only took\n less than a day to code up the parser.\n\n## Limitations\n\nSo how does this language stack up? It has a very simple syntax, but encompasses all\n required commands to extract data from a 3270 screen and stick it into a database.\n One thing the script language cannot do is navigate from screen to screen. It turned\n out that logging on and navigating through menus required quite a bit of logic that\n would require control constructs and expressions -- definitely outside of what my\n little parser could handle. So the system used \"C\" for navigation and the domain language\n for scraping. Here are my little lessons I remember (given that I did this 12 years\n ago):\n\n- *Find a consistent set of functionality* . Think about the problem space the language is intended solve. Make sure the boundaries\n are clear and somewhat consistent. In my case the language can extract data from a\n screen. That's it. It has all functions that are needed to scrape (find, position,\n extract etc) but not much else. There are no control constructs, expressions etc.\n- *Keep the syntax simple* . Some people might claim that having a line-based syntax is bad and that not having\n scopes and `if` statements makes the language less useful. Bogus. If you can define the syntax in\n a few sentences or, better yet, by showing a few example lines, you are in good shape.\n- *Language-level error messages* . If the slightest problem results in someone having to understand the source code\n behind the interpreter, the abstraction is not very good. It means that you can live\n in the world of the domain language as long as nothing goes wrong. Experience shows\n that this time tends to be a lot shorter than anticipated. This holds true for both\n compile errors and run-time errors. At a minimum, the user should see a line number\n and a descriptive message for syntax errors.\n- *Angle brackets do not make a language* . Noticed something? My little script was strangely easy to read. I believe the main\n reason is that it predates XML. XML can be convenient because it is easy to parse\n and schema-aware editors can help with IntelliSense-like editing. However, the price\n is often readability. XML is not bad in and by itself but think carefully how much\n those brackets really get you or hurt you (see [XML Abuse](http://www.ddj.com/dept/architect/184414926) ).\n\n## EAI DSLs\n\nI think integration is a great area for the creation of domain languages. For once,\n integration deals with different programming models, and we already find (for better\n or worse) a number of domain languages, such as for transformations (XSL) or orchestrations\n (BPEL). But these languages are still pretty generic and often difficult to deal with.\n Creating simpler, more purpose-built languages could help make integrations a little\n easier.\n\n**Ads by Giggle**\n\nInterface21 - the honest consultants. If we make a mess, we clean it up. Promised!\n\n*Share:*\n\n*Follow:* [Follow @ghohpe](https://twitter.com/ghohpe) [SUBSCRIBE TO FEED](../ramblings.rss)\n\n*More On:* [DESIGN](/ramblings_design.html) [MODELING](/ramblings_modeling.html) [ALL RAMBLINGS](../ramblings.html)\n\nGregor is a cloud architect and author. He is a frequent speaker on asynchronous messaging,\n IT strategy, and cloud.", "znaku_textu": 9322, "slov": 1484, "odkazu": 52, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/ramblings/42_eaidsl.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 06:54:21", "sha256": "8579ef506309485e0fcf935e2664bb8e098e42ebed30f1bf1141d973457d032e", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://architectelevator.com/blog", "http://www.inventu.com/ehllapi.html", "http://msdn.microsoft.com/practices/topics/appint/default.aspx?pull=%2Flibrary%2Fen-us%2Fdnpag%2Fhtml%2Farchpresentationintegration.asp", "http://en.wikipedia.org/wiki/Screen_scraping", "http://www.hohpe.com/Gregor/Work/portfolio.html", "http://en.wikipedia.org/wiki/Mashup_(web_application_hybrid)", "http://www.dataconnection.com/sna/sxdocs/hllpg.htm?.%2Fhllpg0f.htm=", "http://www.theserverside.com/", "http://www.theserverside.com/news/thread.tss?thread_id=40372", "http://www.ddj.com/dept/architect/184414926", "https://twitter.com/share", "https://twitter.com/ghohpe", "https://leanpub.com/37things"]} {"url": "https://www.enterpriseintegrationpatterns.com/ramblings/43_wildpatterns.html", "titulek": "Integration Patterns in the Wild - Enterprise Integration Patterns", "h1": "Integration Patterns in the Wild", "popis": "Hanging out with my intellectual drinking buddies reminded me that our integration patterns have been embraced by a fair number of commercial as well as open source projects", "klicova_slova": "", "kanonicka": "", "jazyk": "en_US", "robots_meta": "", "og": {"og:type": "article", "og:locale": "en_US", "og:site_name": "Enterprise Integration Patterns", "og:title": "Integration Patterns in the Wild", "og:description": "Hanging out with my intellectual drinking buddies reminded me that our integration patterns have been embraced by a fair number of commercial as well as open source projects", "og:url": "https://www.enterpriseintegrationpatterns.com/ramblings/43_wildpatterns.html"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Integration Patterns in the Wild"}, {"uroven": 2, "text": "Service Mix"}, {"uroven": 2, "text": "Mule"}, {"uroven": 2, "text": "Dave Chappell's Enterprise Service Bus Book"}, {"uroven": 2, "text": "Sonic MQ Sample Application"}, {"uroven": 2, "text": "BizTalk Paper"}, {"uroven": 2, "text": "Visio Stencils"}, {"uroven": 2, "text": "Handbook on Architecture"}, {"uroven": 2, "text": "Patternshare.org"}, {"uroven": 2, "text": "Integration Patters on the Run"}], "markdown": "Gregor's Ramblings\n\n---\n\n# Integration Patterns in the Wild\n\nJuly 20, 2006\n\nFind my posts on IT strategy, enterprise architecture, and digital transformation\n at [ArchitectElevator.com](https://architectelevator.com/blog).\n\nI just returned from an exciting speaking tour with talks in San Francisco (Burton\n Catalyst), Antwerpen (SpringOne), and Barcelona (TheServerSide Java Symposium Europe).\n After 5 talks in 3 cities, stays in 6 cities, and segments by car, train, and 4 different\n airlines it feels good to be back home.\n\nSpeaking at conferences is a great opportunity to catch up with what is going on in\n the community, usually over a pint of beer. Hanging out with Bruce Snyder, James Strachan,\n [Ross Mason](http://static.flickr.com/73/201239832_7f13a81dd1.jpg), [John Davies](http://static.flickr.com/67/201239798_c84cca7bbf.jpg), and others reminded me that our [integration patterns](../toc.html) have been embraced by a fair number of commercial as well as open source projects.\n In my eyes this is really the best indicator of success for a pattern language (and\n the best indicator of happiness for the author). Latin – a dead language used mostly\n by doctors to sound more knowledgeable – is not a good model for a pattern language.\n You want a language that is alive and actually used by a broad group of people. Talking\n to a few folks who did embrace our language motivated me to take a quick survey of\n the places where our patterns pop up.\n\n## Service Mix\n\nQuite a while ago I blogged about my experiments [implementing the patterns in our book as executable components](16_patternscomponents.html). At the time I concluded that it was interesting (and fun) to be able to quickly\n compose a running messaging system using the vocabulary defined in the book: I wired\n a Splitter to a Router, followed by an Aggregator, and used a Wire Tap to log the\n results. While patterns themselves are not executable components, there is nothing\n wrong with developing components whose essence is a pattern, rendered onto a specific\n platform.\n\nWhile my toolkit is largely of educational value, the guys from LogicBlaze took things\n a step further. Apache [ServiceMix](http://servicemix.org) is *an Enterprise Service Bus (ESB) that combines the functionality of a Service Oriented\n Architecture (SOA) and an Event Driven Architecture (EDA) to create an agile, enterprise\n ESB*. The framework supplies a few sets of [preconfigured JBI components](http://servicemix.org/site/components.html). One of them implements a [set of patterns from our book](http://servicemix.org/site/servicemix-eip.html). You'll find a Content-based Router, a Wire Tap, a Splitter, and many more. The components\n are configured via XML files. For example, a [Content-based Router](../ContentBasedRouter.html)can be configured using the following configuration:\n\n```\n\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n```\n\nThe configuration specifies multiple potential routing destinations and an XPath expression\n that determines when to use this destination. The last destination has an optional\n XPath predicate. If it is not specified, the destination becomes the default destination.\n In the above example messages that have a single item are routed to a specific endpoint\n while all other messages are routed to a service. We should try and implement the\n coffee shop example that I built from my toolkit using these components.\n\n## Mule\n\nAnother popular open source ESB is [Mule](http://mule.codehaus.org). Mule champion Ross Mason (as seen on the right) realized early on that using a standard\n vocabulary to explain the [Mule Architecture](http://mule.codehaus.org/Architecture+Guide) makes a lot of sense, especially for an open source product. The spirit of open source\n is to share experience in an open and accessible way very much like patterns do. So\n he chose to highlight Mule's architectural properties through our pattern language:\n you'll find Channels, Transactional Endpoints, Transformers, Routers and so on. Of\n course it helps that this vocabulary is shared with the common definition of an Enterprise\n Service Bus (ESB). As it turns out that this is not complete coincidence either...\n\n## Dave Chappell's Enterprise Service Bus Book\n\nWhen Dave set out to write a book that finally explains what an ESB really is (well,\n let's say it is the most serious attempt up to that point) he knew that patterns are\n a great tool to explain architectural principles in a technology neutral way. This\n is particularly relevant for an ESB, which uses largely existing technologies, but\n composes those technologies into a cohesive architectural style. Soon it became clear\n that [ESB – the book](http://amazon.com/o/asin/0596006756/ref=nosim/enterpriseint-20) should list patterns to highlight the main architectural features. The book not only\n defines a verbal pattern language on top of our language but also adopted the notion\n of a visual language, analogous to our icons. One of the nicest features of the book\n is the tear-out card at the back of the book that describes the visual pattern language.\n Maybe we should add something like that to our book.\n\n## Sonic MQ Sample Application\n\nBut the connection between our book and [Sonic](http://www.sonicsoftware.com) does not stop there. Rumor has it that the new service pack release 7.0.1 will include\n our [Loan Broker](../ComposedMessagingExample.html) example. The [ThinkTecture](http://www.thinktecture.com) guys used the same example for the Microsoft [Indigo](http://msdn.microsoft.com/webservices/indigo) (now WCF) design reviews. A typo in one of my e-mails motivated Ross to consider\n writing a Lone broker example that implements a dating service.\n\n## BizTalk Paper\n\nA little closer to home we have the whitepaper [Integration Patterns with BizTalk 2004](http://www.eaipatterns.com/docs/integrationpatterns_biztalk.pdf) that explains how to implement some of the key patterns on top of the BizTalk platform.\n Once again, the ever popular Loan Broker serves as the example application.\n\n## Visio Stencils\n\nI believe the earliest adopter of our pattern language was Matthew Oskowis, who developed\n a [Visio](..\\downloads.html) stencil for our icons. Each stencil also contains the pattern text and the page number.\n Quite fancy!\n\n## Handbook on Architecture\n\nAs described in my [rambling about Oopsla 2005](37_oopsla.html) Grady Booch is planning to use patterns in his work on the architecture handbook\n and included our book in his list of defining patterns books. I am very proud :-)\n\n## Patternshare.org\n\nDuring his time with the [Microsoft Patterns and Practices Group](http://msdn.microsoft.com/patterns) Ward Cunningham created [patternshare.org](http://www.patternshare.org), a site that compiles patterns from multiple authors. The purpose is to make it easier\n to find a pattern and also to provide stable URLs to reference patterns. The site\n currently hosts pattern summaries by Martin Fowler, Eric Evans, our integration patterns\n and others. All content is available under the [Creative Commons](http://creativecommons.org/) license, which in essence allows free reuse as long a the source is referenced.\n\n## Integration Patters on the Run\n\nUnfortunately, the collaboration is not always as friendly and collaborative as the\n aforementioned examples. It is my goal to own (and read or at least peruse) every\n pertinent book in the field of EAI, messaging, SOA, etc. Sometimes I am surprised\n to come across work that \"borrows\" significantly from our work without us ever having\n been contacted by the \"authors\". I don't want to mention the specific books here (my\n motto is \"buy from the source!\") but there are two books in particular that contain\n a chapter each about integration patterns, adopting our icons and pattern descriptions.\n I think these works are largely a result of some authors still not embracing the spirit\n of the pattern community. Pattern authors have a sincere motivation to share knowledge\n and promote the community as a whole. We talk about new book projects, share review\n drafts and bounce ideas back and forth. This benefits the works, the community, and\n the authors. It always feels odd to see a book that touches on our patterns without\n the authors having taken advantage of this pattern author community. Sadly, it is\n also often reflected in the quality of the respective publication.\n\nLuckily the friendly collaboration far outweighs the pattern poaching so I can only\n encourage people to share their work openly. You'll meet great people, not to mention\n the satisfaction you receive that your work actually has an impact and makes developers'\n lives at least a little easier and more enjoyable.\n\n*Share:*\n\n*Follow:* [Follow @ghohpe](https://twitter.com/ghohpe) [SUBSCRIBE TO FEED](../ramblings.rss)\n\n*More On:* [WRITING](/ramblings_writing.html) [PATTERNS](/ramblings_patterns.html) [INTEGRATION](/ramblings_integration.html) [ALL RAMBLINGS](../ramblings.html)\n\nGregor is a cloud architect and author. He is a frequent speaker on asynchronous messaging,\n IT strategy, and cloud.", "znaku_textu": 9434, "slov": 1351, "odkazu": 64, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/ramblings/43_wildpatterns.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 06:54:20", "sha256": "9878df9e4d24080b4af20e6b04f8fdefa3eb052758d3723599395cb203a8d6c9", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://architectelevator.com/blog", "http://static.flickr.com/73/201239832_7f13a81dd1.jpg", "http://static.flickr.com/67/201239798_c84cca7bbf.jpg", "http://servicemix.org/", "http://servicemix.org/site/components.html", "http://servicemix.org/site/servicemix-eip.html", "http://mule.codehaus.org/", "http://mule.codehaus.org/Architecture+Guide", "http://amazon.com/o/asin/0596006756/ref=nosim/enterpriseint-20", "http://www.sonicsoftware.com/", "http://www.thinktecture.com/", "http://msdn.microsoft.com/webservices/indigo", "http://www.eaipatterns.com/docs/integrationpatterns_biztalk.pdf", "http://msdn.microsoft.com/patterns", "http://www.patternshare.org/", "http://creativecommons.org/", "https://twitter.com/share", "https://twitter.com/ghohpe", "https://leanpub.com/37things"]} {"url": "https://www.enterpriseintegrationpatterns.com/ramblings/44_dagstuhl.html", "titulek": "Dagstuhl Seminar - Enterprise Integration Patterns", "h1": "Dagstuhl Seminar", "popis": " I just returned from a trip to Germany to attend a workshop on The Role of Business Processes in Service Oriented Architecture", "klicova_slova": "", "kanonicka": "", "jazyk": "en_US", "robots_meta": "", "og": {"og:type": "article", "og:locale": "en_US", "og:site_name": "Enterprise Integration Patterns", "og:title": "Dagstuhl Seminar", "og:description": " I just returned from a trip to Germany to attend a workshop on The Role of Business Processes in Service Oriented Architecture", "og:url": "https://www.enterpriseintegrationpatterns.com/ramblings/44_dagstuhl.html"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Dagstuhl Seminar"}, {"uroven": 2, "text": "SCA"}, {"uroven": 2, "text": "BPEL Engines"}, {"uroven": 2, "text": "BPEL4PPEL"}, {"uroven": 2, "text": "Open Workflow Nets"}, {"uroven": 2, "text": "Conversation Patterns"}, {"uroven": 2, "text": "Heading Home"}], "markdown": "Gregor's Ramblings\n\n---\n\n# Dagstuhl Seminar\n\nAug 20, 2006\n\nFind my posts on IT strategy, enterprise architecture, and digital transformation\n at [ArchitectElevator.com](https://architectelevator.com/blog).\n\nI just returned from a trip to Germany to attend a workshop on [The Role of Business Processes in Service Oriented Architectures](http://www.dagstuhl.de/programm/kalender/semhp/?semid=28468). Besides a guaranteed top score in [buzzword bingo](http://en.wikipedia.org/wiki/Buzzword_bingo) the workshop provided a unique opportunity to connect thought leaders from academia\n and industry over the course of a week. The attendee roster sported the usual industry\n heavyweights, i.e., Microsoft, IBM, SAP, making me proud to add Google to the list.\n The workshop format gave participants a chance to present their current work, followed\n by numerous ad-hoc workshops and discussions in larger and smaller groups.\n\nArriving at the event Sunday evening, I quickly realized that this would become an\n interesting week. How could it not if I already had a few beers with Satish Thatte\n (the \"father\" of XLANG and a co-creator of WS-BPEL), Sanjiva Weerawarana (co-author\n of WSDL and WS-BPEL), Frank Leymann (\"father\" of WSFL and co-creator of BPEL), and\n many other SOA and BPM authorities before the workshop even formally started. Want\n to know why \"port type\" is called just that? Well, I can simply put Sanjiva on the\n spot. Is BPEL too low level? I am sure Satish has an opinion. Choreography vs. Orchestration?\n Just ring the bell and let Frank and Kohei battled this one out.\n\nIt is also nice to be back in Germany. The conference venue is a veritable castle,\n of course equipped with wireless Internet access and a well stocked library that operates\n on the honor system 24 hours a day. They also \"rent\" bikes (they are actually available\n for free) without one having to sign a 3 page release form containing only sentences\n starting with \"whereas\". Beer is freely (OK, readily) available on location -- you\n simply grab a bottle and mark it down on your weekly consumption sheet. At the end\n of the week you get to compare scores with your intellectual drinking buddies. Oh,\n and the best part: beer is 1 Euro per bottle.\n\nThe workshop is not a conference in your traditional sense where hundreds of people\n pay a thousand Dollars or so to listen to a stream of more or less interesting monologues\n by more or less well known people. The workshop had a series of short presentations,\n followed by many ad-hoc discussions, a panel or two, and a lot of dinner table conversations.\n The density of information being passed around was truly mind boggling. I am trying\n here to summarize some of my take-aways.\n\n## SCA\n\nDieter Koenig gave an update on the role of BPEL in [SCA (Service Component Architecture)](http://www-128.ibm.com/developerworks/library/specification/ws-sca/). SCA focuses on the assembly of individual services into larger applications. It\n defines (amongst other things) a common format that allows the configuration of a\n module for deployment, by specifying properties and resolving references. Components\n that are composed into modules can be custom programs, BPEL processes or anything\n else that conforms to the interface specification. One interesting question came up,\n question the necessity of yet another level of indirection when BPEL already has the\n notion of partner links and roles, which allow processes to be hooked into other services\n at deployment time. The conclusion was that in case of a BPEL component being deployed\n in the context of SCA the tools should generate the SCA spec from the BPEL process\n template so that the double level of indirection is transparent to the component developer\n and the (human) assembler.\n\n## BPEL Engines\n\nSanjiva alerted me to the fact that FiveSight's PXE BPEL Engine, which was open sourced by Intalio is now part of the [Apache ODE](http://incubator.apache.org/projects/ode.html) project. The goal is to merge the multiple BPEL implementations that live under the\n Apache umbrella into a single one. The good news is that we are converging towards\n a single \"standard\" open source BPEL implementation. The question how long the transition\n will take. [According to Intalio](http://www.intalio.com/news/intalio-pxe-moved-into-apache-ode-trunk/) major progress has been made.\n\n## BPEL4PPEL\n\nGerhard Pfau and Matthias Kloppmann presented on [BPEL for People](http://www-128.ibm.com/developerworks/webservices/library/specification/ws-bpel4people). The highlight to me was the list of Interaction Patterns (see [Slide 4](http://kathrin.dagstuhl.de/files/Materials/06/06291/06291.PfauGerhard.Slides.pdf)). It catalogs different roles humans play in an automated process and describes the\n interactions the humans have as part of each role. For example, humans participate\n in a task, they usually query for a list of available tasks, claim a task and later\n complete the task (or return it into the pool). My suggestion was to make the acronym\n cooler by calling it BPEL4PPL or BPEL4PPEL. This would also have the nice side-effect\n to convert the last hard core Microsofties who insist on pronouncing BPEL as \"beppel\"\n instead of \"bee-pel\" (unless they want to go the route of \"beppel for peppel\"…)\n\n## Open Workflow Nets\n\nKarsten Wolf and Peter Massuthe (working with [Wolfgang Reisig](https://www2.informatik.hu-berlin.de/top/www/mitarbeiter/wolfgang_reisig)) applied the notion of Open Workflow Nets to analyzing the observable behavior of\n a service. The context to this work is to identify formal models of workflow services.\n A simple example of a vending machine illustrated the depth of this problem. The process\n modeling the vending machine supports four external \"operations\": *Insert Coin*, *Select Tea*, *Select Coffee* and *Deliver Beverage*. The first three are inbound and the last one is outbound messages. The question\n is, which client processes are valid in a sense that they actually complete the process\n without getting stuck somewhere (such a client is called a *Strategy*)? For example, a customer inserting a coin, selecting coffee and accepting the beverage\n is a strategy while a customer who inserts a coin and waits for a beverage without\n making a selection is not (the vending machine ends up in a deadlock state). The set\n of all strategies for a service is called an *Operating Guideline*. it provides an interesting artifact for a published workflow-driven service because\n it allows the service composition layer to assess whether service consumer and provider\n are \"compatible\". Wolfgang Reisig posted a [nice overview presentation](http://www2.informatik.hu-berlin.de/top/lehre/WS05-06/taskforce/05-11-17_Ohrid_Operating_Guidelines.pdf#search=%22most%20permissive%20strategy%20owfn%22) on this topic. [Tools4BPEL](http://www2.informatik.hu-berlin.de/top/tools4bpel/tools.html) contains associated tools that can convert BPEL processes into open workflow nets.\n\n## Conversation Patterns\n\nI gave both a [presentation](http://kathrin.dagstuhl.de/files/Materials/06/06291/06291.HohpeGregor.Slides.pdf) and held a [workshop](http://kathrin.dagstuhl.de/files/Materials/06/06291/06291.SWM1.Paper.pdf) on Conversation Patterns. It was great (and a little daunting) to have such an experienced\n audience for my presentation. Immediately, good discussions and suggestions erupted.\n Sanjiva is cataloging more [MEPs](http://www.w3.org/TR/2004/WD-wsdl20-patterns-20040326/) (Message Exchange Patterns) as part of [WSDL 2.0](http://www.w3.org/TR/wsdl20/#property-InterfaceOperation.messageexchangepattern). Uwe Zdun, who is working with Shahram Duster on describing process models using\n patterns, suggested arranging a pattern language where larger patterns can be composed\n from smaller \"pattern primitives\". Egon Börger authored a paper with Alistair Barros\n on and suggested a decomposition of the patterns into send and receive primitives. The\n level of interest and discussion left me inspired and motivated to continue my work\n on Conversation Patterns.\n\n## Heading Home\n\nAfter so much intellectual stimulation I stopped by the Nürburgring's infamous *Nordschleife* on the way home. This treacherous race track of 20km has more corners than I could\n count and is full of blind turns, hill tops, and changing road conditions. At multiple\n points in its history the track was deemed too dangerous for racing but interestingly\n it was deemed safe enough to let the general public go wild on it. That is if you\n consider Evo, STi, RS4, M5, and 911 GT3 drivers the general public. Sadly, the combination\n of lack of horsepower, lack of familiarity with the track and lack of racing experience\n turned me and my BMW 116 into a 170 km/h obstacle.\n\n*Share:*\n\n*Follow:* [Follow @ghohpe](https://twitter.com/ghohpe) [SUBSCRIBE TO FEED](../ramblings.rss)\n\n*More On:* [EVENTS](/ramblings_events.html) [WEBSERVICES](/ramblings_webServices.html) [CONVERSATIONS](/ramblings_conversations.html) [ALL RAMBLINGS](../ramblings.html)\n\nGregor is a cloud architect and author. He is a frequent speaker on asynchronous messaging,\n IT strategy, and cloud.", "znaku_textu": 9093, "slov": 1306, "odkazu": 58, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/ramblings/44_dagstuhl.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 06:54:19", "sha256": "46710b289586ba53e496cff4b0fe4dd03ea54e994cee63b63d01ee587f64977b", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://architectelevator.com/blog", "http://www.dagstuhl.de/programm/kalender/semhp/?semid=28468", "http://en.wikipedia.org/wiki/Buzzword_bingo", "http://www-128.ibm.com/developerworks/library/specification/ws-sca/", "http://incubator.apache.org/projects/ode.html", "http://www.intalio.com/news/intalio-pxe-moved-into-apache-ode-trunk/", "http://www-128.ibm.com/developerworks/webservices/library/specification/ws-bpel4people", "http://kathrin.dagstuhl.de/files/Materials/06/06291/06291.PfauGerhard.Slides.pdf", "https://www2.informatik.hu-berlin.de/top/www/mitarbeiter/wolfgang_reisig", "http://www2.informatik.hu-berlin.de/top/lehre/WS05-06/taskforce/05-11-17_Ohrid_Operating_Guidelines.pdf", "http://www2.informatik.hu-berlin.de/top/tools4bpel/tools.html", "http://kathrin.dagstuhl.de/files/Materials/06/06291/06291.HohpeGregor.Slides.pdf", "http://kathrin.dagstuhl.de/files/Materials/06/06291/06291.SWM1.Paper.pdf", "http://www.w3.org/TR/2004/WD-wsdl20-patterns-20040326/", "http://www.w3.org/TR/wsdl20/", "http://sky.fit.qut.edu.au/~dumas/ServiceInteractionPatterns/InteractionPatternsFormalisation.pdf", "https://twitter.com/share", "https://twitter.com/ghohpe", "https://leanpub.com/37things"]} {"url": "https://www.enterpriseintegrationpatterns.com/ramblings/45_web20.html", "titulek": "Web 2.0 Patterns - Enterprise Integration Patterns", "h1": "Web 2.0 Patterns", "popis": "I confess", "klicova_slova": "", "kanonicka": "", "jazyk": "en_US", "robots_meta": "", "og": {"og:type": "article", "og:locale": "en_US", "og:site_name": "Enterprise Integration Patterns", "og:title": "Web 2.0 Patterns", "og:description": "I confess", "og:url": "https://www.enterpriseintegrationpatterns.com/ramblings/45_web20.html"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Web 2.0 Patterns"}, {"uroven": 2, "text": "Attributes of Web 2.0"}, {"uroven": 2, "text": "Values"}, {"uroven": 2, "text": "Other Cool Stuff"}], "markdown": "Gregor's Ramblings\n\n---\n\n# Web 2.0 Patterns\n\nAug 24, 2006\n\nFind my posts on IT strategy, enterprise architecture, and digital transformation\n at [ArchitectElevator.com](https://architectelevator.com/blog).\n\nI confess. I am a groupie. When Tim O'Reilly invited me to be part of on a workshop\n on Web 2.0 patterns I was quite excited. First, because I was going to meet the exalted\n one in person. Second, because I would have a chance to learn a lot about Web 2.0\n as I am pretty much starting from zero (working for Google does not automatically\n mean working on super-secret next generation massive computing projects). Lucky for\n me, the other participants are quite entrenched in the Web 2.0 phenomeon. Amongst\n others we had Bill Scott from Yahoo!, Jennifer Tidwell, Cal Henderson from Flickr,\n John Musser who runs ProgrammableWeb, Martin Fowler, and Sandy from Meebo.\n\nThe goal of the workshop was to build on Tim's paper [What is Web 2.0](http://www.oreillynet.com/pub/a/oreilly/tim/news/2005/09/30/what-is-web-20.html). The paper cites a few examples that demonstrate the shift in thinking from Web 1.0\n to Web 2.0:\n\n- DoubleClick --> AdSense\n- OFoto --> Flickr\n- Britannica Online --> Wikipedia\n\nThese examples alone show a clear shift from publishing towards sharing and participation,\n a richer user interaction, and a stronger focus on sharing data. Our day-long workshop\n aimed to distill *values*, *principles*, and *patterns* of Web 2.0 (Martin recommended that we \"borrow\" this structure from Kent Beck's XP\n book).\n\n## Attributes of Web 2.0\n\nWe started by brainstorming what Web 2.0 means to us. As expected we ended up with\n a wide spectrum of ideas, which we then sorted into categories. One of the most interesting\n parts for me were the many examples that I had not yet heard about, such as:\n\n- **Do one thing well** : [meebo.com](http://www.meebo.com) - an on-line chat client? Sounds not that exciting? Unless you do it well and make\n it fun, give people the ability to embed a chat client into their Web app, and get\n your fans to translate the Web site for you.\n- **Work across devices** : [frucall.com](http://www.frucall.com) - allows you to check prices over your phone and then look up your history over the\n web site.\n- **Work across devices** : [http://www.backpackit.com](http://www.backpackit.com) sends a meeting reminder to your cell phone (actually [Google Calendar](http://www.google.com/calendar) does that, too).\n- **Encourage participation** : An experiment on Yahoo personals revealed that prefilling fields with slightly incorrect\n data motivates people to enter personal data. This also relates to the common joke\n that \"80% of all usenet posts start with \"Actually\" – it is hard to get a question\n answered, but if you make an incorrect statement people are compelled to correct you.\n Along the same lines it turned out that the rather [unappealing default buddy icon](http://www.flickr.com/images/buddyicon.jpg?66541867@N00) on [Flikr](http://www.flickr.com) results in a higher percentage of personalized icons.\n- **Make public data public** The well-known examples here are [Zillow](http://www.zillow.com) , [TheyWorkForYou](http://www.theyworkforyou.com) and [FundRace](http://www.fundrace.org) (lots of John Kerry donations in my neighborhood)\n- **Narcistic Search** - what do people say about my work? Type your own name into Google.\n\n## Values\n\nWe tried to compile a set of values, along the lines of the [Agile Manifesto](http://agilemanifesto.org/). The key with the agile values is that is used a \"X over Y\" format where Y by itself\n is a fairly reasonable goal. For example, the value is not \"Working Software over\n Broken Software\" (duh!) but \"Working Software over Comprehensive Documentation\". Here\n are some of our candidates:\n\n- Simplicity over Completeness\n- Long tail over Mass Audience\n- Share over Protect\n- Advertise over Subscribe\n- Syndication over Stickiness\n- Early Availability over Correctness\n- Select by Crowd over Editor\n- Honest voice over Corporate Speak\n- Participation over Publishing\n- Community over Product\n\n## Other Cool Stuff\n\nJohn from [ProgrammableWeb](http://www.programmableweb.com/) shared a beer over visualizing complex integration systems. His team actually won\n an award once for a system that could visualize a complex integration solution consisting\n of messaging, file transfer, and many other technologies. His side links to a fun\n game [GuessTheGoogle](http://grant.robinson.name/projects/guess-the-google/).\n\nMartin taught me a new acronym: [POX](http://en.wikipedia.org/wiki/POX) = Plain Old XML (as opposed to SOAP + WS-*)\n\n[hadoop.com](http://www.hadoop.com) is an open source map/reduce implementation.\n\nSomeone pointed me to [BlueOrganizer](http://www.adaptiveblue.com) - a Firefox plugin that allows the creation of semantically rich bookmarks that can\n be shared. For example, if you mark one of the supported sites (e.g. Amazon) the tool\n will bookmark the specific product (as opposed to simply the URL) and file it under\n the proper category (e.g., books, electronics).\n\n*Share:*\n\n*Follow:* [Follow @ghohpe](https://twitter.com/ghohpe) [SUBSCRIBE TO FEED](../ramblings.rss)\n\n*More On:* [PATTERNS](/ramblings_patterns.html) [ALL RAMBLINGS](../ramblings.html)\n\nGregor is a cloud architect and author. He is a frequent speaker on asynchronous messaging,\n IT strategy, and cloud.", "znaku_textu": 5281, "slov": 757, "odkazu": 61, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/ramblings/45_web20.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 06:54:18", "sha256": "26336d0fa69d7168f88bf93cea97d9b874ff1cdd5136186218b4bd7146a1bcb1", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://architectelevator.com/blog", "http://www.flickr.com/photos/skylinegtr/224611742/", "http://www.oreillynet.com/pub/a/oreilly/tim/news/2005/09/30/what-is-web-20.html", "http://www.meebo.com/", "http://www.frucall.com/", "http://www.backpackit.com/", "http://www.google.com/calendar", "http://www.flickr.com/images/buddyicon.jpg?66541867%40N00=", "http://www.flickr.com/", "http://www.zillow.com/", "http://www.theyworkforyou.com/", "http://www.fundrace.org/", "http://www.flickr.com/photos/skylinegtr/224612230", "http://agilemanifesto.org/", "http://www.programmableweb.com/", "http://grant.robinson.name/projects/guess-the-google/", "http://en.wikipedia.org/wiki/POX", "http://www.hadoop.com/", "http://www.adaptiveblue.com/", "https://twitter.com/share", "https://twitter.com/ghohpe", "https://leanpub.com/37things"]} {"url": "https://www.enterpriseintegrationpatterns.com/ramblings/46_foo.html", "titulek": "fooCamp - Enterprise Integration Patterns", "h1": "fooCamp", "popis": " This year I got to go to fooCamp! What is fooCamp? It is sort of like Burning Man for techno geeks", "klicova_slova": "", "kanonicka": "", "jazyk": "en_US", "robots_meta": "", "og": {"og:type": "article", "og:locale": "en_US", "og:site_name": "Enterprise Integration Patterns", "og:title": "fooCamp", "og:description": " This year I got to go to fooCamp! What is fooCamp? It is sort of like Burning Man for techno geeks", "og:url": "https://www.enterpriseintegrationpatterns.com/ramblings/46_foo.html"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "fooCamp"}, {"uroven": 2, "text": "Highlights and Lowlights"}, {"uroven": 2, "text": "Friday"}, {"uroven": 2, "text": "Saturday"}, {"uroven": 2, "text": "Sunday"}], "markdown": "Gregor's Ramblings\n\n---\n\n# fooCamp\n\nAug 28, 2006\n\nFind my posts on IT strategy, enterprise architecture, and digital transformation\n at [ArchitectElevator.com](https://architectelevator.com/blog).\n\nThis year I got to go to fooCamp! What is fooCamp? It is sort of like [Burning Man](http://www.burningman.com) for techno geeks. But just as Burning Man has gone pretty high tech fooCampers started\n to have more fun by burning things. It's difficult to put the experience into words...\n\n## Highlights and Lowlights\n\n**Most embarrassing moment**: At a session about stealth I asked Jay Adelson, [Digg.com](http://www.digg.com)'s CEO) which company he is with. Oops. On the bright side he told me that once he\n arrived for a talk, entering as Larry Page was leaving the stage. Jay went on to introduce\n himself and finished with \"and you work for…\" Doesn't misery love company!\n\n**Made**: fooCamp is about making stuff. I did not make anything particularly extraordinary\n but managed to solder together a [miniPov](http://www.ladyada.net/make/minipov3/) kit, consisting essentially of an Atmel microcontroller and 8 bright LEDs. Afterwards\n I realized that Thinkpads actually do not have serial ports (they do have, out of\n all things, a parallel port). So I had to wait until I got home to actually download\n the firmware. The source is in \"C\" so maybe I will do a bit C programming, I was actually\n amazed at the easy availability of an open source compiler (based on GCC and the winAVR\n programming tools. No external hardware is needed to burn this microcontroller. Tinkering\n with hardware and microcontrollers was like a flashback to my teenage years and college\n when I used to do a lot of hardware, mostly around TTL chips and a NEC microcontroller.\n\n**Coolest Device**: Naturally, people were showing off all sorts of cool stuff, including a flame thrower,\n a (non Google) map projection installation, a cell phone that looks like a regular\n rotary phone (without cable) and lots more. I think my favorite is still Mitch's [TV B Gone](http://www.tvbgone.com). It is a tiny remote control that sends the \"power off\" code for all popular tv\n models. Hold it for a minute towards any tv you encounter and it will turn off. Very\n cool. Good that I don't have one – I am sure I would take it to the first sports bar\n and get beaten up by jockstraps when I nuke the tv in the middle of some game.\n\n**Coolest People**: This category is difficult as fooCamp was packed with cool people. I think the guys\n from [Graffiti Research Lab](http://graffitiresearchlab.com/) deserve a special mention for their projection projects, their effort to make public\n spaces in NYC more usable by building chairs out of priority mail boxes, and decorating\n buildings with [LED throwies](http://www.instructables.com/id/E9D2ZJ3FG0EP286JEJ/). You can now buy [bulk kits](http://www.hebeiltd.com.cn/?p=throwies) to make making throwies more economical.\n\n**Funniest Moment**: Crazybob and Geir staged a session titled \"Java still matters\". No one showed up.\n\n**Silliest Moment**: Formed the idea to create a map that visualizes my trip to Hakone in Japan that\n makes use of Shinkansen, regular trains, tram, funicular, ropeway, boat, and bus (the\n paddleboats were not running in the fall season). Plotting mode of transportation\n in color coding across time, elevation, and level of excitement I would use this map\n to triumph over Ed Tufte's favorite [map of Napoleon's Russia campaign](http://www.edwardtufte.com/tufte/posters).\n\n**Proudest Moment**: Rode a Segway hands free.\n\n## Friday\n\nFriday evening started with introductions. It was one impressive list of 250 people,\n including the other celebrity Mitch Kapor, Ray Ozzie, and Jeff Bezos. Google showed\n a strong presence, but each of the attendees was invited for work they did outside\n or before they joined Google, which is good because foo is about individuals and not\n about corporations. But it also worried me a little as I started to wonder whether\n people will do cool enough things at Google (that they can talk about) that gets them\n invited to foo.\n\nI headed onto the Make area, run by the folks behind [Makezine](http://www.makezine.com). These guys not only make cool stuff they also make great mojitos! [Bre Pettis](http://www.brepettis.com/) showed us some of his new projects. We could not stop laughing when we saw [Pink Bunny](http://www.pinkbunny.org) and [Magic Monkey Bob](http://magicmonkeybob.com). After seeing the remix of the double decker bus video I won't be able to go to London\n without thinking \"downstairs, down, down, downstairs.\"\n\nFriday evening I was able to score a [Chumby](http://www.chumby.com), a small, cushy device with a reasonable CPU, a nice color LCD, WiFi, and Linux.\n It runs Flash widgets like a Flickr photo viewer or stock quotes. Later, Bunnie and\n his cohorts showed us how to turn a Teletubby into a [Telechumby](http://www.flickr.com/photos/skylinegtr/226652035/). Very cool.\n\n## Saturday\n\nSaturday was [filled with interesting sessions](http://www.flickr.com/photos/skylinegtr/226654025/). The folks from Spark Fun Electronics revealed the innards of their cellular rotary\n phone. They also built a very simple device consisting of a GPS antenna, a microcontroller\n and an SD card. It samples your position every second or so and loads it onto the\n SD card. Since it has no display and other gimmicks it can last a week or so on battery,\n When you are done you insert the SD card into your PC and plot the data on Google\n Earth or whatever. Great for vacations, especially in countries where it is difficult\n to read street signs and remember where you went.\n\n**Geo Hacking**\n\nOne hot topic was anything related to geotagging, mach-ups on top of maps or Earth\n etc. In Japan 2D bar-codes are now the hit. You can take a picture with your cell\n phone camera, which translates it into a URL. It is mostly used for advertising. Since\n the URLs are mapped directly to the bar code no server round trip is required for\n decoding. I believe a similar system is used by Emery-Go-Around to check the expected\n arrival time of the next bus. However, that one requires a server roundtrip.\n\nAnother question that came up is that of a geopedia, i.e. a place where a large community\n charts out the planet and gives information about buildings and locations. This would\n be a big step towards the \"tell me what this is\" device that one could carry around\n and point at buildings or points of interest.\n\n**Domain Specific Languages**\n\n[Martin](http://www.martinfowler) held a session on DSLs, asking people for their experiences. One interesting project\n that was mentioned uses the C# [Linq](http://msdn.microsoft.com/data/ref/linq/) project to work against data sources such as Amazon. I am sure Martin is going to\n post a nice summary of his session notes.\n\n**Out of Control**\n\nI hosted a session titled \"out of control\" (sexy titles always help improve attendance)\n to discuss management and visualization of large Web sites. It was quite well attended\n and it was great to get input from folks who run mlb.com, livejournal.com, puzzlepirates\n etc. The session was adequately followed by \"F*cking big Websites\". I felt that too\n many sessions had great discussions but little tangible take-away so I decided to\n take notes during my session. I posted them on the [fooCamp wiki](http://wiki.oreillynet.com/foocamp06/index.cgi?OutOfControl).\n\n**Visualizations**\n\nAfter dinner I attended a great session around visualization. The session was split\n into two parts. The first part dealt largely with maps addressing the problem that\n a consistent level of detail is not useful if you are traveling 50 miles on the freeway\n followed by having to navigate a maze of local streets. Some of the works out of [Berkeley](http://vis.berkeley.edu) solve this problem through iterative optimization, creating a map that is much closer\n to what a person would sketch up.\n\nThe second part used visualization techniques to track changes on Wikipedia topics.\n The same code can be used against source code repositories. It is available on IBM\n Alphaworks under \"HistoryFlow\" (great work by fviegas at media.mit.edu).\n\n**Laptop Tattoo**\n\nThe guys from the Graffiti Research Project brought a $15k laser engraver that quickly\n turned a bunch of laptops into works of art. Our very own Chris deserves big kudos\n for working past midnight to fulfill various fooCampers' wishes for unique designs.\n Rumor has it one person ended up with Hello Kitty angel on the laptop. Definitely\n unique.\n\n## Sunday\n\n**Chumby Hacks**\n\nWe learned how to connect a serial port to a chumby to get a linux shell. The main\n board has rx and tx pins and ground is easy to find. Main caveat: the rx amd tx pins\n run directly into the microcontroller, which operates on 3.3 volts. Any attempt to\n connect these wires into a \"real\" RS232 (with +/- 9 volts) will quickly transport\n your chumby into the eternal chumbing grounds. Otherwise, set your serial port to\n 115kbs, 8N1 and no flow control. You can start an sshd daemon from the shell or mount\n a USB still with content.\n\n**Technology Underground**\n\nEver wondered how to make a potato cannon or pumpkin cannon? How about a flame throwing\n robot? Just in time for burning man... A [rail gun](http://www.powerlabs.org/railgun2.htm) could be a lot of fun as well.\n\n**Global Geek Culture**\n\nDanny O'Brien gave one of the most entertaining talks about cultural differences.\n The surprising cultural differences between the UK and the US motivated him to dig\n up some research by [Geert HofStede](http://www.geert-hofstede.com), who defined five cultural dimensions. Very interesting.\n\nI am sure I missed a lot of interesting sessions. For example, I only caught the last\n minutes of Pipes and Filters on the Web. I need to check out [Dabble DB](http://www.dabbledb.com). Is there anything bad about fooCamp? Not really, the worst part is having to come\n home to the daily grind…\n\n*Share:*\n\n*Follow:* [Follow @ghohpe](https://twitter.com/ghohpe) [SUBSCRIBE TO FEED](../ramblings.rss)\n\n*More On:* [EVENTS](/ramblings_events.html) [ALL RAMBLINGS](../ramblings.html)\n\nGregor is a cloud architect and author. He is a frequent speaker on asynchronous messaging,\n IT strategy, and cloud.", "znaku_textu": 10181, "slov": 1605, "odkazu": 68, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/ramblings/46_foo.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 06:54:17", "sha256": "8c6e9ea49526762d7e0dc390282bdfdf35449102bae38adc7c4112facbf5783b", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://architectelevator.com/blog", "http://www.burningman.com/", "http://www.digg.com/", "http://www.flickr.com/photos/skylinegtr/225714718", "http://www.ladyada.net/make/minipov3/", "http://www.tvbgone.com/", "http://graffitiresearchlab.com/", "http://www.instructables.com/id/E9D2ZJ3FG0EP286JEJ/", "http://www.hebeiltd.com.cn/?p=throwies", "http://www.edwardtufte.com/tufte/posters", "http://www.flickr.com/photos/skylinegtr/230716288", "http://www.makezine.com/", "http://www.brepettis.com/", "http://www.pinkbunny.org/", "http://magicmonkeybob.com/", "http://www.chumby.com/", "http://www.flickr.com/photos/skylinegtr/226652035/", "http://www.flickr.com/photos/skylinegtr/226654025/", "http://www.martinfowler/", "http://msdn.microsoft.com/data/ref/linq/", "http://wiki.oreillynet.com/foocamp06/index.cgi?OutOfControl=", "http://vis.berkeley.edu/", "http://www.flickr.com/photos/skylinegtr/226652710", "http://www.powerlabs.org/railgun2.htm", "http://www.geert-hofstede.com/", "http://www.dabbledb.com/", "https://twitter.com/share", "https://twitter.com/ghohpe", "https://leanpub.com/37things"]} {"url": "https://www.enterpriseintegrationpatterns.com/ramblings/47_jaoo.html", "titulek": "JAOO 2006 - Enterprise Integration Patterns", "h1": "JAOO 2006", "popis": " I am just riding the train back from Aarhus (the second largest city in Denmark in case your geography skills are as weak as mine were before my first trip here) to Copenhagen", "klicova_slova": "", "kanonicka": "", "jazyk": "en_US", "robots_meta": "", "og": {"og:type": "article", "og:locale": "en_US", "og:site_name": "Enterprise Integration Patterns", "og:title": "JAOO 2006", "og:description": " I am just riding the train back from Aarhus (the second largest city in Denmark in case your geography skills are as weak as mine were before my first trip here) to Copenhagen", "og:url": "https://www.enterpriseintegrationpatterns.com/ramblings/47_jaoo.html"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "JAOO 2006"}, {"uroven": 2, "text": "The Beers vs. The Waters"}, {"uroven": 2, "text": "Werner Vogels Keynote"}, {"uroven": 2, "text": "Domain Annotations"}, {"uroven": 2, "text": "DSL Tutorial"}, {"uroven": 2, "text": "Resources, Events, Agents"}, {"uroven": 2, "text": "So Much More"}], "markdown": "Gregor's Ramblings\n\n---\n\n# JAOO 2006\n\nOct 6, 2006\n\nFind my posts on IT strategy, enterprise architecture, and digital transformation\n at [ArchitectElevator.com](https://architectelevator.com/blog).\n\nI am just riding the train back from Aarhus (the second largest city in Denmark in\n case your geography skills are as weak as mine were before my first trip here) to\n Copenhagen. Many speakers consistently rave about JAOO. The speaker roster, the logistics,\n the attendees – everything just seems to be very high quality and run very smoothly.\n This year I was nominated to be track host for the SOA track, entitled \"SOA – What's\n Left to Say?\" (if you pronounce SOA *Ass Oh Ay*, it actually rhymes).\n\nThe overarching scheme at JAOO this year was certainly languages, which is not all\n too surprising if you look at the concentration of language heavyweights in the speakers\n list. I got to meet Guy Steele (Scheme), Erik Meijer (self-declared \"Language Pimper\"),\n Betrand Meyer (Eiffel), and Ole Lehrmann Madsen (Simula). A whole track focused on\n DSLs and a separate track on abstractions for concurrency. With so much gray hair\n at the event, Dave Thomas moderated a track on \"Back to the Future\". In various sessions\n words like OCCAM, CSP, SIMULA, BETA, SCOOP, fortress, Scheme, Lisp, Visual Basic,\n C# and (almost forgot) Java were part of the vocabulary. Time to dust of those language\n books! It seems that the advent of multi-core chips (and to some extend the increasing\n pervasiveness of SOA) have really brought into the foreground of developers' minds\n that we are always working with concurrent systems. It also causes a lingering feeling\n that our current popular languages are not terribly well suited for such an environment.\n\nNot surprisingly a lot more happened at JAOO than I can capture in a single blog entry.\n What follows are merely the highlights. A number of the talks would surely warrant\n a whole post on their own.\n\n## The Beers vs. The Waters\n\nOne highlight of the conference must have been he closing panel moderated by Dave\n Thomas. He pitched The Beers (Erik Meijer, Kevlin Henney, and Steve Vinoski) against\n The Waters (Guy Steele and Ole Lehrmann Madsen) to talk about Programming in 2016.\n\nBefore taking questions from the audience, Dave asked each participant for their opening\n statement. I think the viewpoints reflected the sentiment of the audience quite well.\n Guy's observation is that multi-core chips make parallelism more visible at the language\n level. Just writing a single-threaded app and hoping for the best will no longer cut\n it. Guy also expects a more diverse programming language environment. However, this\n could be a self-fulfilling prophecy as he is actively contributing to said diversity\n with [Fortress](http://research.sun.com/projects/plrg/faq/index.html). Guy also anticipates that the pervasiveness of Unicode might mean that languages\n are will no longer be tied to the ASCII character set. APL here we come…\n\nOle is looking for languages that provide for better abstractions and support for\n common patterns. Most of us would agree with him that many of today's popular languages\n hide useful patterns behind way too much syntax clutter.\n Steve expects IDEs to better support dynamic languages so that Ruby users no longer\n have to code in NotePad. Interestingly, he also expects us to be closer to where we\n were with SmallTalk 10 years ago. Maybe this will be the day the SmallTalkers will\n finally stop complaining that everything was so much better back when (Gartner purportedly\n has a 0.01 probability attached to that part of the prediction).\n\nKevlin, who has once described his favorite activity as talking picked right up on\n Steve's point on IDE's. \"These EMACS users. Their heads are so full of key combinations\n there is no room for anything else\". His biggest fear is that the future of programming\n looks like XML. He had only three words for that scenario: \"That just sucks\"\n\nFor the rest of the panel Dave collected questions from the audience. He asked participants\n to write their questions up \"so he could spice them up a little if they are not mean\n enough\". Here some of the more interesting questions and more entertaining answers.\n Keep in mind that these are not always my views, but those of the panel (with a little\n literary license).\n\n**Will Ruby succeed where Smalltalk failed? Or will it be like Java in 2006?**\n\n- One of the reasons SmallTalk failed is because it was fairly bound up. One could not\n just use NotePad and code something up. Not even an `if` statements looked like an if statement. Erik: I hope Ruby will get closures right.\n- According to Dave, SmallTalk failed because the market shifted and it was very difficult\n to make dynamic language like SmallTalk run efficiently on a virtual machine like\n the JVM. So it was not a developer preference that killed SmallTalk, but a shift in\n the market. Sadly, the arrogance and close-mindedness of SmallTalkers sealed the lid.\n\n**Will Mapping (O-R, XML) Become Easier or Go Away?**\n\n- Steve: JAX-WS allows you to work without mapping by allowing you to work directly\n with the XML documents .The problem is, though, that Java is not all that great at\n working with XML. He prefers languages like E4X (ECMA for XML) that are much more\n terse.\n- Erik: Mapping is always doomed. You need to pick your model(s) carefully because you\n cannot expect any system to just magically go from one model to another.\n- Dave thinks that a lot of the OO stuff will simply go away and simplify the mapping\n problem. A lot of OO code is written for things that are not inherently OO. Some day\n people will use objects properly to build the domain model but not for application\n infrastructure.\n\n**What role will AI play?**\n\n- AI is by definition the thing that is not yet commercially applied. Once AI technologies\n are successful (e.g. camera autofocus) people stop calling it AI.\n\n**Will CSP or OCCAM come back?**\n\n- It would be useful to define CSP style programming in other languages\n- Guy stated that CSP inspired some of the ways parallelism is expressed in Fortress.\n (unfortunately I missed Guy's Fortress talk because it was scheduled for a cruel 9am\n start)\n- Erik: Co-routines should come back. He points out that iterators in C# are not real\n co-routines. Kevlin also feels that Co-routines are one of the great lost paradigms.\n- Everybody agreed that CSP could help make concurrent systems easier to understand\n and safer to program. We really need to find a simpler model for distributed systems\n to stay clear of deadlocks, race conditions and poor performance.\n\n**What Do You Think of Formal Views in Programming Languages?**\n\n- Ole thinks that pre and post conditions are a good way to express more about the intent\n of your program. For example, one of Bertrand Meyer's student has created a tool\n that can create unit tests from a contract (he demo'd this tool at the [Google Testing Automation Conference in London](http://googleresearch.blogspot.com/2006/04/our-conference-on-automated-testing.html) )\n- Kevlin struck back by observing that pre and post conditions are Structured Programming\n in disguise because they assume top-down control.\n\n**Will DSL's Cause Language Proliferation?**\n\n- Steve likes to tell the episode from the Blues Brothers movie where the woman at the\n bar proudly states that \"We have both kinds of music: country and western\". Too many\n programmers today think \"We have both languages, C# and Java\". In Steve's view, more\n languages mean more choices, not necessarily having to learn many languages.\n- Kevlin is also worried about 4GL Soup as the result of DSL movement. Most people are\n simply not good language designers because it is very difficult. Another worry of\n his is that creating too many languages will cause a new class of problems: What if\n my domain changes, which causes me to change my domain specific language? Now we have\n to deal with schema drift inside a programming language.\n\n**Will AOP Make It to the Mainstream?**\n\n- Too bad Rod Johnson was not on the panel for this one as Kevlin dealt a blow against\n AOP. Kevlin reminded us that FORTRAN had the infamous assign-to operation, which is\n an incarnation of the [comeFrom](http://en.wikipedia.org/wiki/COMEFROM) concept. Assign-to was considered too dangerous to be used in production code and\n recommended only for debugging. According to Kevlin, AOP is very similar to assign-to.\n The main problem is that one has no clue about what is actually going on by looking\n at the source code. He thinks that it is unlikely that AOP will become a general purpose\n programming thing. However, the thinks that AOSD (Aspect Oriented Software Development)\n might have better luck.\n- Guy took a more balanced stance, pointing out that too many AOP papers and talks recycle\n the same old examples. We would really like to see more use cases before we can decide\n which way it is going to go.\n- Ole felt that aspects would benefit from a better theoretical foundation. I'll let\n him elaborate on that. My brain is just the size of a peanut. Oh wait, this is Erik\n Meijer's line!\n\n**Is This Programming Thing Ever Going to Get Easier?**\n\nThere seemed to be a general sentiment in the audience that programming is getting\n harder and harder as opposed to simpler. Besides all the excitement about better programming\n models and more efficient environments it seemed that the panel shares some of the\n same concerns.\n\n- Ole's main worry was that we are having a difficult time keeping the tools up with\n the complexity of new languages and platforms (in Java land it took almost a decade\n for a decent IDE to arrive). He could not help but point out that some people (all\n hands pointing at Steve) still use EMACS!\n- Dave believes that a lot of the problem lies in the fact that the platform vendors\n essentially ensure that the automated tools will always behind the complexity of the\n platform.\n\n**Best Quotes (Kevlin is the clear winner in this category):**\n\n- *I don’t use emacs. My embedded systems background taught me not to run multiple operating\n systems on the same hardware.*\n- *Concurrency will bring new bugs. So in 2016 our bugs will run faster.*\n- *The biggest problem with SmallTalk are the SmallTalkers.*\n\n## Werner Vogels Keynote\n\nWerner gave a keynote summarizing the history of Amazon's infrastructure. It quickly\n became apparent that having a bunch of app servers access a single database would\n not scale. So Amazon decided to avoid direct database access from the application\n and instead wraps all core business logic behind a ser of services. Services consists\n of both foundation services and aggregators. Aggregators combine data from multiple\n application services to build up a page. Amazon assigns one team to build each service.\n On occasion they have multiple teams competing for the construction of a service.\n I coined this the Reverse [Conway's Law](http://en.wikipedia.org/wiki/Conway's_Law): you design your organizational structure so that the resulting system, which according\n to the law will resemble this structure, comes out the way you like it.\n\nAmazon is continuing to battle the CAP theorem – the balance between Consistency,\n Availability, and Partionability. The theorem states that one can achieve only two\n of the three desirable properties when designing a system. For example, high availability\n is generally achieved through redundancy, which tends to compromise consistency. Werner's\n current thinking is that the application should be involved in data partinioning in\n order to maximize scalability.\n\n## Domain Annotations\n\n[Erik Doernenburg](http://www.doernenburg.com) and Mike Royle gave their great [Talk on Domain Annotations](http://erik.doernenburg.com/talks/older/#domain-annotations) (they chose the word \"annotations\", but their guidance applies equally to Java annotations\n and .Net attributes). They reminded us of four ways that we commonly express metadata\n in source code:\n\n- Keywords, such as `override`\n- Naming conventions, such as `testNewCollectionIsEmpty`\n- Marker interfaces, such as `serializable`\n- Formatted comments, such as JavaDocs\n\nProgrammers use annotations for a variety of things. They make great markers for pointcuts\n (as opposed to naming or types). They can also be used to represent (and enforce)\n structural rules. For example, specific classes in the system could be tagged as [Layer(\"domain\")].\n The build system could validate dependencies between these layers, so that for example\n the domain layer cannot depend on the UI layer or the persistence layer.\n\nOne important guideline for annotations that is often overlooked (and was already\n discussed at [Crested Butte](34_cb.html)) is the fact that they should describe a property that is intrinsic to the item being\n annotated. The annotation should change when the code of the annotated items change,\n not when the environment changes. This observation became apparent in the design of\n [nUnit](http://www.nunit.org). While the use of annotations in nUnit is definitely a step forward over the jUnit\n naming conventions, the annotations do suffer from some violation of this useful guideline.\n For example, the [TestFixture] annotation is redundant. If a class contains a method\n annotated with [Test], it should be considered a fixture automatically. The [SetUp]\n annotation indicates which method should be called before any test invocation. As\n such it describes the role of this method in a larger context, i.e. the test invocation.\n This forces the nUnit framework to deal with issues like inheritance, which more or\n less led to a reimplementation of method dispatch.\n\nErik and Mike continued to show some interesting uses of annotations in the context\n of a domain model, i.e. a set of classes that describe a business domain. For example,\n they annotated string fields with a maxLength attribute. While this sounds trivial\n it is actually quite useful as different layers of the application could interpret\n this attribute in different ways. For the example, the UI layer could generate JavaScript\n that limits input length to the specified number of characters while the domain layer\n throws an exception of the string exceed the limit. Even though the field is used\n in different contexts, the meaning of the annotation is directly related to the annotated\n field and will only change if the nature of the field changes.\n\nOther uses of annotations in domain models include classifying classes as (static)\n reference data or transactional data. For example, changes to reference data might\n need to be audited. Such annotations can also be used to color visualizations generated\n from the code base.\n\nErik and Mike showed a more involved example that uses annotations to navigate the\n object graph. The annotations describe the relationships between classes and which\n fields form this relationship. At runtime they can inspect these relationships without\n actually having to instantiate any objects as the annotations sit on the classes themselves.\n Some of the actual code to manage the navigation was a bit hairy but luckily it was\n well hidden inside utility classes. All the application developer has to do is place\n the annotations.\n\n## DSL Tutorial\n\nThursday and Friday are tutorials days at JAOO. I attended [Markus Voelter](http://www.voelter.de)’s hands-on tutorial on building a DSL with Eclipse and [openArchitectureWare](http://www.openarchitectureware.org). Markus was clever enough to omit the dreaded MDA acronym from the title of his tutorial\n – the night before we discussed the trend towards MDC –Model-driven Crap. Markus is\n one of the more pragmatic members of the MDSD (Model-driven Software Development)\n community and it showed in this tutorial. After 15 minutes of PowerPoint slides he\n fired up Eclipse and started building a domain language using his modeling framework.\n Our goal was to define a language that uses Eric Evan’s vocabulary of entities and\n value objects. In order to make such a language we would have to create a metamodel,\n a code generator, and design a textual language. In order to express the metamodel\n we need to define a metametamodel. While that sounds a little scary it actually isn’t\n – we used the [EMF](http://www.eclipse.org/emf/) metametamodel. From there we create the notion of a ValueObject, which we define\n as having a name and a set of attributes. In the end the template-based code generator\n turns each ValueObject in an immutable class with the appropriate constructor and\n getters.\n\nThe best part about this tutorial was that 90% of the time was spent coding as opposed\n to handwaving. Also, the focus on development tools for DSLs makes a lot of sense.\n For example, the framework supplies an editor for our newly made textual language,\n complete with autocomplete and syntax underlining.\n\n## Resources, Events, Agents\n\n[Pavel Hruby](http://www.phruby.com/) gave a tutorial on modeling using REA(Resources, Events, Agents). By the way. Pavel\n is the guy who created by far the best [UML stencils for Visio](http://www.softwarestencils.com/uml/index.html). Pavel just completed a [book](http://www.phruby.com/book/index.html) on Model-driven Design using Business Patterns.\n\nThe REA approach starts from the assumption that almost all business software applications\n deal with a few common concepts, such as economic resources, events, agents. Pavel\n uses a pizzeria example to illustrate how these concepts can be used to model the\n pizzeria. For example, the sale of pizza involves economic agents Customer and Pizzeria\n and involves the events Sale and Payment Receipt, which affect the economic resources\n Pizza and Cash. Pavel then demonstrated how to create similar models for all business\n processes that make up the pizzeria’s business, such as making pizza, ordering raw\n materials, or acquiring labor.\n\nThe strength of REA is that it allows for validations of a domain model based on axioms\n (e.g., every increment economic event must be related to a decrement economic event\n via exchange duality). These validations allow the early discovery of imbalances\n or omissions in domain models.\n\nPavel illustrated how to extend the model to include concepts like time etc., but\n I think it is fair to say that the REA approach has a certain sweet spot and I had\n a more difficult time with the extensions.\n\n## So Much More\n\nOK, I got to stop writing. I attended so many more interesting sessions that I can\n only mention in passing here:\n\n- Charles Simonyi on Intentional Programming (finally we got to see a demo)\n- Erik Meijer waxing about the greatness of higher order functions in Haskell.\n- Alistair’s keynote on the analogies between swimsuits and methodologies.\n- Dan North and Niclas on behavior-driven development\n- Oh, and my SOA track!\n- And so on and so on\n\n*Share:*\n\n*Follow:* [Follow @ghohpe](https://twitter.com/ghohpe) [SUBSCRIBE TO FEED](../ramblings.rss)\n\n*More On:* [EVENTS](/ramblings_events.html) [MODELING](/ramblings_modeling.html) [ALL RAMBLINGS](../ramblings.html)\n\nGregor is a cloud architect and author. He is a frequent speaker on asynchronous messaging,\n IT strategy, and cloud.", "znaku_textu": 19052, "slov": 3022, "odkazu": 61, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/ramblings/47_jaoo.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 06:54:16", "sha256": "6b56db319831502663c90ac9be4ca1aa8b1b0fd9ec04c82a8a5a430b3e392f96", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://architectelevator.com/blog", "http://www.flickr.com/photos/skylinegtr/260685034/", "http://www.flickr.com/photos/skylinegtr/260680842/", "http://research.sun.com/projects/plrg/faq/index.html", "http://googleresearch.blogspot.com/2006/04/our-conference-on-automated-testing.html", "http://en.wikipedia.org/wiki/COMEFROM", "http://www.flickr.com/photos/skylinegtr/259610046/", "http://en.wikipedia.org/wiki/Conway's_Law", "http://www.flickr.com/photos/skylinegtr/260707794/", "http://www.doernenburg.com/", "http://erik.doernenburg.com/talks/older/", "http://www.nunit.org/", "http://www.voelter.de/", "http://www.openarchitectureware.org/", "http://www.eclipse.org/emf/", "http://www.phruby.com/", "http://www.softwarestencils.com/uml/index.html", "http://www.phruby.com/book/index.html", "https://twitter.com/share", "https://twitter.com/ghohpe", "https://leanpub.com/37things"]} {"url": "https://www.enterpriseintegrationpatterns.com/ramblings/48_validation.html", "titulek": "Validating Dynamic Systems - Enterprise Integration Patterns", "h1": "Validating Dynamic Systems", "popis": "Erik Doernenburg and I have been presenting our talk on Software Validation a few times now and have received very positive feedback", "klicova_slova": "", "kanonicka": "", "jazyk": "en_US", "robots_meta": "", "og": {"og:type": "article", "og:locale": "en_US", "og:site_name": "Enterprise Integration Patterns", "og:title": "Validating Dynamic Systems", "og:description": "Erik Doernenburg and I have been presenting our talk on Software Validation a few times now and have received very positive feedback", "og:url": "https://www.enterpriseintegrationpatterns.com/ramblings/48_validation.html"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Validating Dynamic Systems"}, {"uroven": 2, "text": "Sharing is Caring"}, {"uroven": 2, "text": "Show Me the Money"}, {"uroven": 2, "text": "The Model is the Key"}, {"uroven": 2, "text": "A Graph Model"}, {"uroven": 2, "text": "Implementation Details"}, {"uroven": 2, "text": "Connectedness"}, {"uroven": 2, "text": "Did Google Make a Hiring Mistake?"}, {"uroven": 2, "text": "Tying up Loose Ends"}, {"uroven": 2, "text": "Hooking it all Together"}, {"uroven": 2, "text": "Output – Keep it Simple"}, {"uroven": 2, "text": "Future Plans"}, {"uroven": 2, "text": "Try for Yourself"}], "markdown": "Gregor's Ramblings\n\n---\n\n# Validating Dynamic Systems\n\nFeb 1, 2007\n\nFind my posts on IT strategy, enterprise architecture, and digital transformation\n at [ArchitectElevator.com](https://architectelevator.com/blog).\n\nAt the [2005 Crested Butte workshop](34_cb.html) Erik Doernenburg and gave each other demos of our visualization work. After we managed\n to peek each other's interest we decided to create a [Talk on Software Validation](http://www.eaipatterns.com/docs/TSS_software_visualization.pdf). We have delivered the talk a few times and have received great feedback. The talk\n is especially fun because it includes five live demos (and they usually work).\n\n## Sharing is Caring\n\nThese demos also provided a reminder how useful it is to share your code with the\n community. At JavaZone in Oslo my hard drive crashed shortly before our talk and I\n was not able to run the demos off my machine. Luckily, my messaging toolkit is [available for download](../downloads.html), so I was able to quickly install the demo on Erik's machine. Setting up under time\n pressure also provided an excellent data point regarding the \"out of box experience\"\n with the toolkit.\n\n## Show Me the Money\n\nMy section of the talk is based on my earlier work with [Visualizing Dependencies](11_dependencies.html). I instrumented a simple messaging library so that all publication and subscription\n information is sent to a [Control Bus](../ControlBus.html) channel. A visualizer component listens on the control bus channel and converts the\n publication and subscription information into a graph, which it subsequently renders\n into a GIF image.\n\nDuring our talk we mention an \"advanced\" technique that would not just render an\n image of the system model, but also examines the model and alerts the user about potential\n problems. It does so by applying known rules for \"do's\" and \"don'ts\" to the model.\n These rules could be as simple as \"circles in your dependency graph are bad\" or one\n of those sophisticated self-learning AI algorithms that we never quite understand.\n The only catch is that we actually never demo such a validation tool. Finally the\n time came for me to put my money where my mouth is and enhance the messaging toolkit\n to perform validations of the messaging system.\n\n## The Model is the Key\n\nOne of the key messages we are trying to highlight during our talk is the importance\n of mapping the captured data to a model that is suited to answering the questions\n you are interested in. This model can be a graph, a process or any other abstract\n representation of your system. Making a model is important for a number of reasons:\n\n- It is just plain old separation of concerns: extracting data from your system (from\n design artifacts or the running system) should be separated from analyzing the data.\n A model defines the connection between these two steps\n- Your system typically limits what kind of data you can extract from it. For example,\n if all you have to work with is a log file then, well, your input data is going to\n be in the format of the log file. Not much choice there. Even if the system gives\n you access to more data it is often a good strategy to work with the data that is\n easy to get to. Good visualizations very much depend on the context in which they\n are used, so being pragmatic when extracting data is a good strategy. However, that\n usually means that the data you get is not ideal for visualizing or validating. That's\n why transforming it into a model is useful.\n- Even if the data that you pull from the system is represented in a way that is close\n to what you need, a small dose of abstraction and stratification almost always helps.\n The model can eliminate idiosyncrasies in the input data, make navigating the data\n easier, or create a nice OO representation of poorly structured input data.\n- A model also allows you to more easily reuse known algorithms. Mapping your input\n data into a graph gives you instant access to a wealth of algorithms. Finding circles,\n longest paths, etc becomes (almost) trivial.\n- Once you harvested data from your system you want to be able to create different visualizations\n and validations rapidly. Again, having a nice representation of your data supports\n experimenting.\n\n## A Graph Model\n\nAfter I convinced myself that a model is a useful thing I set out to make one. My\n [simple messaging toolkit](../downloads.html) allows users to compose solutions by connecting system components through message\n channels. The resulting system very much resembles a graph, where nodes represent\n the components and edges represent the message channels. This is the model I want\n to extract from a running messaging system.\n\nI developed the model generation as an add-on to the [existing visualizer](11_dependencies.html). The visualizer listens on the [Control Bus](../ControlBus.html) for messages announcing components sending messages to and receiving messages from\n certain channels. Instead of rendering a picture, the validator's role is to create\n a graph model and to analyze it.\n\nMaybe I am biased but the first high-level architecture that came to mind for this\n task was a processing pipeline:\n\nIf Conway's law holds true in the reverse I must be 4-way schizophrenic. In all earnest\n I think this is one of the many cases where a \"non-OO\" top-level architecture works\n very well and can be nicely implemented using an OO language. The pipeline consists\n of 4 parts:\n\n| **Component** | **Purpose** | **Input** | **Output** |\n| --- | --- | --- | --- |\n| Parser | Parse XML messages from the control bus into a strongly typed format | XML | Events |\n| Graph Generator | Construct a graph from the control bus data | Events | Graph Nodes & Edges |\n| Validation | Run algorithms over the graph | Graph Nodes & Edges | List of error and informational messages |\n| Renderer | Display results to the user | List of messages | HMTL page |\n\nThe most interesting parts of the chain are the Graph and the Validation. The Parser\n and Renderer are nothing more than adapters from the core algorithms into the outside\n world. The primary contribution of these components is to keep the core algorithm\n free of XML and HTML cruft.\n\n## Implementation Details\n\nLet's take a closer look at the second step in the pipeline – the graph generator.\n The generator receives events from the Control Bus, informing us of components publishing\n or subscribing to channels. Constructing a graph based on these events consists primarily\n of matching publishers and subscribers using the same channel. I have to apologize\n for not migrating the messaging toolkit to .Net 2.0, so this code does not use generics.\n I am still in shock, though, to discover that .Net collections do not provide a Set\n class! Luckily, I am not the first one noticing this oversight, so I pulled one off\n [Code Project](http://www.codeproject.com/csharp/sets.asp) (since then I discovered [C5](http://www.itu.dk/research/c5) and [PowerCollections](http://www.wintellect.com/powercollections)). Overlooking these little handicaps, the solution is fairly straightforward. The\n component converts a set of subscriptions and publications into a set of nodes and\n edges. The method works off `publications` and `subscriptions` dictionaries that map from a channel name to a list of publishing and subscribing\n components, respectively. The good news is that this is a demo application and not\n a Google job interview so we don't have to come up with a *O(1)* algorithm but simple nested loops will do. The real trick here is to define Node\n and Edge as value objects. This makes it easy to just new up nodes and edges at will\n and add them to a set. The value-based equality of these objects ensures that the\n sets hold at most one instance of each node or edge object.\n\n```\nvoid BuildEdges(IDictionary publications, IDictionary subscriptions)\n {\n foreach (string channel in publications.Keys)\n {\n if (subscriptions.Contains(channel))\n {\n foreach (string pub in (IList) publications[channel])\n {\n foreach (string sub in (IList) subscriptions[channel])\n {\n AddEdge(channel, new Node(pub), new Node(sub));\n }\n }\n } \n }\n }\n```\n\nBecause not all nodes are actually connected to other nodes we need to make sure\n that all nodes are represented in the graph, even if they are isolated.\n\n```\nvoid BuildNodes(IDictionary publications, IDictionary subscriptions)\n{\n foreach (string channel in subscriptions.Keys)\n {\n foreach (string subscriber in (ArrayList) subscriptions[channel])\n {\n nodes.Add(new Node(subscriber));\n }\n }\n foreach (string channel in publications.Keys)\n {\n foreach (string publisher in (ArrayList) publications[channel])\n {\n nodes.Add(new Node(publisher));\n }\n }\n}\n```\n\nThis approach is a bit brute force but plenty good for a demo application. Again,\n the set collection ensures that each node and edge is only stored once in the graph.\n\n## Connectedness\n\nNice separation of concerns enables us to generate a graph that has very little to\n do with message channels or publications. This makes it easy to run standard graph\n algorithms against our system model. For example, we can easily determine whether\n the graph is fully connected, i.e. whether all nodes are connected through edges.\n Depending on the messaging solution a disconnected graph is not necessarily an error\n condition, but it provides a useful status check. For example, if we are building\n a single message pipeline and we find that the graph is not connected, something must\n have gone wrong, maybe because a component shut down or a channel was misnamed.\n\nTo assess the connectedness of a graph, the direction of the edges is not relevant.\n Therefore, for each existing edge we add a reverse edge between the same nodes (see\n figure). Now can just pick any node and from there recursively traverse all neighboring\n nodes. Once we are done, we can check whether we visited all nodes in the graph. If\n so, the graph is connected, otherwise it consists of multiple \"islands\".\n\n## Did Google Make a Hiring Mistake?\n\nAnother useful property of the directed message graph is the presence of circles.\n Again, circles are not a show stopper but they can be an indicator of a solution that\n is request-reply heavy as opposed to a pipes-and-filters message flow.\n\nA simple depth-first-search (DFS) can easily find circles in a graph. If you hit a\n node you already visited, the graph contains a circle. Finding circles in a directed\n graph is not quite so trivial. When the search hits a node that was already visited,\n the algorithm has to distinguish between upward edges and sideways edges. This ensures\n that a \"diamond pattern\" is not reported as a circle. For example, DFS over the following\n graph hits node D twice, but the graph does not contain a circle.\n\nThis took me a bit of work to get it to work correctly. Maybe this is a sign that\n Google should not have hired me—they love to ask these kinds of algorithm questions\n in job interviews ;-P Once again mapping the messaging into a generic graph paid off\n because it made creating unit test cases very easy:\n\n```\npublic void GraphWithDiamondButNoCircles()\n{\n graph.AddEdge(\"AB\")\n .AddEdge(\"AC\")\n .AddEdge(\"BD\")\n .AddEdge(\"CD\");\n \n Assert.IsFalse(new CircleFinder(graph).HasCircles());\n}\n```\n\nThey to making these tests so simple is a little helper class that makes string assumptions\n (e.g. nodes have only single letter names) and allows method chaining by returning\n `this`.\n\n```\nclass SimpleGraph : DirectedGraph\n{\n internal SimpleGraph AddEdge(String edgeString)\n {\n if (edgeString.Length != 2)\n {\n throw new ArgumentException(\"test edge string has to have two characters\");\n }\n Node source = new Node(edgeString.Substring(0, 1));\n Node dest = new Node(edgeString.Substring(1, 1));\n AddEdge(edgeString, source, dest);\n return this;\n }\n}\n```\n\n## Tying up Loose Ends\n\nYou can do cool things with graphs, but there is another interesting validation you\n can perform before you build the graph. The graph model assumes senders and receivers\n are connected via channel. But what if a component sends messages to a channel that\n no one listens to? Such a \"loose end\" would certainly seem suspicious.\n\nOnce again I access the `publications` and `subscriptions` dictionaries that map from a channel name to a list of publishing and subscribing\n components. Finding publishers that have no one to talk to is as simple as this:\n\n```\nIList PublishersWithoutSubscribers()\n{\n IList result = new ArrayList();\n foreach (string queue in tracker.Publications.Keys)\n {\n if (!tracker.Subscriptions.Contains(queue) || ((ICollection)tracker.Subscriptions[queue]).Count == 0)\n {\n foreach (string component in (ICollection)tracker.Publications[queue])\n result.Add(new EndPoint(component, queue));\n }\n }\n return result;\n}\n```\n\nThis code finds channels that have no subscribers and adds all publishers to such\n a channel to the list. Note that we left the formatting of the error message to the\n output component.\n\n## Hooking it all Together\n\nThe existing Visualizer component already tracked messages for the purpose of graph\n rendering. We can now hook the Validator into the same infrastructure.\n\nThis is where delegates make it very easy to hook in additional algorithms to the\n original parser.\n\n## Output – Keep it Simple\n\nNow that we encapsulated all the business logic rendering the messages is trivial.\n First, we need to decide which messages are warnings and which ones are just informational.\n Lastly, we need to render into a suitable output format. Once again creating an HTML\n file with a META-REFRESH tag in the header proved to be more than sufficient. This\n causes the browser to reload the file every few seconds or so, giving us \"real-time\"\n display of warning messages:\n\n## Future Plans\n\nYou could think of many more validations. For example, one could check whether all\n competing consumers on a single queue are of the same type. Different kinds of consumers\n competing for the same type of message is probably suspicious.\n\n## Try for Yourself\n\nThe updated messaging kit is [available for download](../downloads.html). Starting the Visualizer (see instructions) by default generates two HTML files:\n `graph.html` and `validation.html`. `graph.html` shows the rendered GIF image of the message graph while `validation.html` displays warnings and informational messages. To test the system, simply start the\n `Visualizer` and a logger to an unused channel: `logger someChannel`. The `validation.html` contains a message:\n\n```\nWARNING: Component Logger\\nsomeChannel subscribes to somechannel, which has no publishers.\n```\n\n*Share:*\n\n*Follow:* [Follow @ghohpe](https://twitter.com/ghohpe) [SUBSCRIBE TO FEED](../ramblings.rss)\n\n*More On:* [VISUALIZATION](/ramblings_visualization.html) [MODELING](/ramblings_modeling.html) [ALL RAMBLINGS](../ramblings.html)\n\nGregor is a cloud architect and author. He is a frequent speaker on asynchronous messaging,\n IT strategy, and cloud.", "znaku_textu": 14713, "slov": 2281, "odkazu": 51, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/ramblings/48_validation.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 06:54:15", "sha256": "cbfd8e4f7813cd41c75c6b3ecf1132b495ab4af9a4de0de362bee0c4bde8f5f9", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://architectelevator.com/blog", "http://www.eaipatterns.com/docs/TSS_software_visualization.pdf", "http://www.codeproject.com/csharp/sets.asp", "http://www.itu.dk/research/c5", "http://www.wintellect.com/powercollections", "https://twitter.com/share", "https://twitter.com/ghohpe", "https://leanpub.com/37things"]} {"url": "https://www.enterpriseintegrationpatterns.com/ramblings/49_mvpsummit.html", "titulek": "Microsoft MVP Summit - Enterprise Integration Patterns", "h1": "Microsoft MVP Summit", "popis": "Even though I have been working for the (self-declared) non-evil empire for a while now, I still have a lot of ties to the Microsoft community, even beyond drinking Weissbier with Christian Weyer", "klicova_slova": "", "kanonicka": "", "jazyk": "en_US", "robots_meta": "", "og": {"og:type": "article", "og:locale": "en_US", "og:site_name": "Enterprise Integration Patterns", "og:title": "Microsoft MVP Summit", "og:description": "Even though I have been working for the (self-declared) non-evil empire for a while now, I still have a lot of ties to the Microsoft community, even beyond drinking Weissbier with Christian Weyer", "og:url": "https://www.enterpriseintegrationpatterns.com/ramblings/49_mvpsummit.html"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Microsoft MVP Summit"}, {"uroven": 2, "text": "Billg Unplugged"}, {"uroven": 2, "text": "Tightlipped"}, {"uroven": 2, "text": "Social"}, {"uroven": 2, "text": "Messaging Toolkit Update"}], "markdown": "Gregor's Ramblings\n\n---\n\n# Microsoft MVP Summit\n\nMarch 25, 2007\n\nFind my posts on IT strategy, enterprise architecture, and digital transformation\n at [ArchitectElevator.com](https://architectelevator.com/blog).\n\nEven though I have been working for the (self-declared) non-evil empire for a while\n now, I still have a lot of ties to the Microsoft community, even beyond drinking Weissbier\n with [Christian Weyer](http://www.thinktecture.com/staff/christian). I am particularly proud that I have been able to maintain my MVP status, Microsoft's\n Most Valuable Professional award. Having \"Google\" on my badge certainly gave some\n softies the chills at this NDA-only event. But I think having me there is a great\n testimony to the MVP program being focused on community, not corporate rivalry (and\n chair throwing). Furthermore, this event focuses on languages, frameworks, and tools\n for the Microsoft developer community, whereas very few of Google's offerings (e.g.,\n [GWT](http://code.google.com/webtoolkit/)) are targeted directly at developers. In any case, the event was a great opportunity\n to spend some time with fellow MVPs and to get access to Microsoft product groups\n in a more intimate setting than the usual TechEd mayhem.\n\n## Billg Unplugged\n\nThe MVP summit also provided a chance to see Bill Gates in a smaller setting, where\n smaller means about 1500 people as compared to the 25,000 or so attendees at the average\n TechEd event. Despite the various opinions about Microsoft I count billg as one of\n the more popular and personable leaders in the IT space. Admittedly this crowd was\n pretty much as friendly as it gets, but it was still nice to see standing ovations\n and the several GB of digital images being produced within seconds of Bill's appearance\n on stage. The format of the talk was excellent: about 20 minutes of PowerPoint-less\n presentation followed by extensive Q&A (I wish more of the sessions would have followed\n this format). The topics Bill touched on were not entirely surprising, but they provided\n some nice reassurance that Redmond is thinking about many of the same things the developer\n community is thinking about:\n\n- Challenges in programming for multi-core chips. How can we enable the average developer\n to write programs that take advantage of today's (and tomorrow's) multi-core chips?\n- Ubiquitous wireless / broadband access change the way people interact with the Internet.\n Bill mentioned cities being covered with mesh-like wireless networks. He did not point\n out Mountain View in particular…\n- Transition from 32 bit to 64 bit computing. According to Bill we are not going to\n see another address bus width change for quite some time, so this one is exciting.\n- Video as the \"final frontier\" of the Internet. According to Bill, YouTube is just\n the very beginning. For example, Bill is interested to see how businesses and consumer\n manage their video data, such as classroom lectures, company meetings etc. Content\n will be more targeted to viewer's interests and so will be the ads.\n- Programs no longer run on a single computer but on a vast, dynamic infrastructure.\n A developer won't even know which machine the program runs on – a machine is selected\n based on criteria. This also raises questions of how to deal with problems. For example,\n which exceptions are meant for the hosting operator (e.g., disk full, network failure)\n and which ones are meant for the developer (e.g. application exceptions). Having divided\n roles requires a much better separation.\n- Expect more Web-based services like data storage and back-up. Also, expect more services\n related to identity (passport?), payment, reputation. The BizTalk team has made a [Security Token Service](http://sts.labs.live.com/) and a [Relay Service](http://relay.labs.live.com/) available already:\n\nFun quote: Bill started off one of his topics talking about \"Microsoft and others\n who do search…\" Who might he be referring to? The whole [transcript of his talk is available](http://www.microsoft.com/presspass/exec/billg/speeches/2007/03-13MVPSummit.mspx).\n\n## Tightlipped\n\nMost remaining sessions of the summit fall under our individual non-disclosure agreements\n with Microsoft. I wish the product teams had used that as an opportunity to give us\n some insights beyond the (not so secret) [Orcas CTP](http://www.microsoft.com/downloads/details.aspx?familyid=281FCB3D-5E79-4126-B4C0-8DB6332DE26E&displaylang=en) (while on that topic, it seems that you want to install the 7-part version, not the\n 9-part version). Anders talked about Linq (no surprise here), the Connected Systems\n Divisions showed Workflow enabled Services (interesting, and also in the CTP). I was\n excited to see that the CTPs now come as Virtual PC images so I no longer have to\n install OS, .Net, Studio etc etc. You \"just\" downloaded the 5 GB or so and let it\n run. Excellent idea. I attended mostly the CSD (Connected Systems Division) track.\n This group unites both the old \"Indigo\" team and BizTalk. Accordingly, they fielded\n a number of questions on how they will collaborate etc. According to Clemens \"we now\n love each other.\"\n\nDon Box gave a great session on his current work (super-secret). Luckily, his jokes\n should be non-confidential. My favorite quote: \"I like Ruby for its directness but\n I always feel a little dirty afterwards\"\n\n## Social\n\nWith the rather strict NDA most that is left to report is of social nature. [Scott Bellware](http://geekswithblogs.net/sbellware/) was on his best behavior, the Canadians were loud and wore goofy Maple leaf shirts,\n the bus driver pointed out Bill's house on 76th Ave, the [line to the Microsoft Company store](http://farm1.static.flickr.com/164/427742606_3870a7129f.jpg) was infinitely long (I sacrificed one session to go early), Software in the Store\n was cheap ($45 for Vista Ultimate), and it only rained a little. It was great to also\n great to see my friends from far-away places like Japan. As expected, the Japanese\n team [aced the Karaoke contest](http://www.flickr.com/photos/skylinegtr/427742244/), and the vegetarian food at the [Museum of Flight party](http://www.flickr.com/photos/skylinegtr/427742140) was excellent.\n\n## Messaging Toolkit Update\n\nWhile I have your attention I want to point out that I ported the [Simple Messaging Toolkit](../downloads.html) to .Net 2.0 and fixed a few bugs. You can now also pass your own item strings to\n the Customer component if you rather order Hot Dogs, Fries, and Burgers as opposed\n to Coffee, Latte, and Frappucino. And some people claim creating domain-specific languages\n is difficult :-)\n\n*Share:*\n\n*Follow:* [Follow @ghohpe](https://twitter.com/ghohpe) [SUBSCRIBE TO FEED](../ramblings.rss)\n\n*More On:* [EVENTS](/ramblings_events.html) [ALL RAMBLINGS](../ramblings.html)\n\nGregor is a cloud architect and author. He is a frequent speaker on asynchronous messaging,\n IT strategy, and cloud.", "znaku_textu": 6864, "slov": 1031, "odkazu": 56, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/ramblings/49_mvpsummit.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 06:54:14", "sha256": "6823b76f8ff021efa048c80fbd21bdee4fcfd789250dfb24f0979b10b59fa484", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://architectelevator.com/blog", "http://www.thinktecture.com/staff/christian", "http://code.google.com/webtoolkit/", "http://www.flickr.com/photos/skylinegtr/427741304/", "http://sts.labs.live.com/", "http://relay.labs.live.com/", "http://www.microsoft.com/presspass/exec/billg/speeches/2007/03-13MVPSummit.mspx", "http://www.flickr.com/photos/skylinegtr/427741372", "http://www.microsoft.com/downloads/details.aspx?displaylang=en&familyid=281FCB3D-5E79-4126-B4C0-8DB6332DE26E", "http://geekswithblogs.net/sbellware/", "http://farm1.static.flickr.com/164/427742606_3870a7129f.jpg", "http://www.flickr.com/photos/skylinegtr/427742244/", "http://www.flickr.com/photos/skylinegtr/427742140", "https://twitter.com/share", "https://twitter.com/ghohpe", "https://leanpub.com/37things"]} {"url": "https://www.enterpriseintegrationpatterns.com/ramblings/50_publications.html", "titulek": "I May Be a Flake, But At Least I Am Published! - Enterprise Integration Patterns", "h1": "I May Be a Flake, But At Least I Am Published!", "popis": "I have been pretty quiet recently, but I finally have some results to show", "klicova_slova": "", "kanonicka": "", "jazyk": "en_US", "robots_meta": "", "og": {"og:type": "article", "og:locale": "en_US", "og:site_name": "Enterprise Integration Patterns", "og:title": "I May Be a Flake, But At Least I Am Published!", "og:description": "I have been pretty quiet recently, but I finally have some results to show", "og:url": "https://www.enterpriseintegrationpatterns.com/ramblings/50_publications.html"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "I May Be a Flake, But At Least I Am Published!"}], "markdown": "Gregor's Ramblings\n\n---\n\n# I May Be a Flake, But At Least I Am Published!\n\nMay 2, 2007\n\nFind my posts on IT strategy, enterprise architecture, and digital transformation\n at [ArchitectElevator.com](https://architectelevator.com/blog).\n\nSorry for the somewhat unsubstantive post but I wanted to point you to some of my\n recent works to tie you over until my next \"real\" post.\n\nSteve Vinoski has been running the [IEEE Internet Computing](http://www.computer.org/internet) column [Toward Integration](http://dsonline.computer.org/portal/site/dsonline/menuitem.bc6cc7000140e2ec2587e0606bcd45f3/index.jsp?&pName=dso_level1_article_list&TheCat=1030) for some 30 issues now. I have the honor to be their first guest author with [\"Let's have a Conversation\"](/docs/IEEE_IC_Conversations.pdf).\n\nGernot Starke and Stefan Tilkov assembled a whole book full of articles by SOA experts.\n The \"edited by\"-style books can be hit or miss but it looks like Gernot and Stefan\n have done a great job ensuring consistently high quality. The book [SOA Expertenwissen](http://www.dpunkt.de/buecher/3-89864-437-5.html) is scheduled to be published in June. Only catch -- it is in German.\n\nLast but not least Floyd Marinescu recorded my [Developing in a Service-oriented World](http://www.infoq.com/presentations/hohpe-soa-development) talk at [JavaZone](http://www.javazone.no) in Oslo. The [video is now available on InfoQ](http://www.infoq.com/presentations/hohpe-soa-development). Be careful to turn the volume down. And Markus is right -- I do say \"sort of\" too\n much. I guess this is the trick you learn being a consultant: \"I never said to do\n it this way. I said 'do it **sort of** this way'.\"\n\nIf you like the sound but can't bear the visuals, have a look (or listen) at my [podcast on messaging systems](http://www.se-radio.net/index.php?post_id=160206) on [SE Radio](http://www.se-radio.net).\n\nAlso, if you have not seen it, go and check out Ian Robinson's [article on consumer-driven contracts](http://www.martinfowler.com/articles/consumerDrivenContracts.html). I found it very interesting.\n\nThanks for listening! BTW, I used the line in the title once for an autograph to a\n friend of mine after I (inadvertently) stood her up. I hope it helped...\n\n*Share:*\n\n*Follow:* [Follow @ghohpe](https://twitter.com/ghohpe) [SUBSCRIBE TO FEED](../ramblings.rss)\n\n*More On:* [GREGOR](/ramblings_gregor.html) [WRITING](/ramblings_writing.html) [ALL RAMBLINGS](../ramblings.html)\n\nGregor is a cloud architect and author. He is a frequent speaker on asynchronous messaging,\n IT strategy, and cloud.", "znaku_textu": 2545, "slov": 335, "odkazu": 52, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/ramblings/50_publications.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 06:54:12", "sha256": "e76c5422d60507a6c729cd6c52fc1111cfc41808c584ab92aebacca1d8bd809f", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://architectelevator.com/blog", "http://www.computer.org/internet", "http://dsonline.computer.org/portal/site/dsonline/menuitem.bc6cc7000140e2ec2587e0606bcd45f3/index.jsp?TheCat=1030&pName=dso_level1_article_list", "http://www.dpunkt.de/buecher/3-89864-437-5.html", "http://www.infoq.com/presentations/hohpe-soa-development", "http://www.javazone.no/", "http://www.se-radio.net/index.php?post_id=160206", "http://www.se-radio.net/", "http://www.martinfowler.com/articles/consumerDrivenContracts.html", "https://twitter.com/share", "https://twitter.com/ghohpe", "https://leanpub.com/37things"]} {"url": "https://www.enterpriseintegrationpatterns.com/ramblings/51_javaone.html", "titulek": "JavaOne 2007 - Enterprise Integration Patterns", "h1": "JavaOne 2007", "popis": "JavaOne is one of the few geek conferences that take place in San Francisco", "klicova_slova": "", "kanonicka": "", "jazyk": "en_US", "robots_meta": "", "og": {"og:type": "article", "og:locale": "en_US", "og:site_name": "Enterprise Integration Patterns", "og:title": "JavaOne 2007", "og:description": "JavaOne is one of the few geek conferences that take place in San Francisco", "og:url": "https://www.enterpriseintegrationpatterns.com/ramblings/51_javaone.html"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "JavaOne 2007"}, {"uroven": 2, "text": "Gregor = Booth Babe"}, {"uroven": 2, "text": "Real Lessons Learned"}, {"uroven": 2, "text": "Mashup Blueprints"}, {"uroven": 2, "text": "Designing Service Collaborations"}, {"uroven": 2, "text": "SCA != SOA"}, {"uroven": 2, "text": "Highlights and Lowlights"}, {"uroven": 2, "text": "Networking Activities"}], "markdown": "Gregor's Ramblings\n\n---\n\n# JavaOne 2007\n\nMay 11, 2007\n\nFind my posts on IT strategy, enterprise architecture, and digital transformation\n at [ArchitectElevator.com](https://architectelevator.com/blog).\n\n## Gregor = Booth Babe\n\nAs last year, Google had a booth at the JavaOne Pavillion, i.e. show floor. This year,\n though, the focus extended beyond just recruiting and giving out swag to include demoing\n some of our developer-focused products. Most of the [GWT](http://code.google.com/webtoolkit/) team were here to give demos and answer questions and Patrick (also a presenter at\n JavaOne) showed off [Google Checkout](http://checkout.google.com). Google is also holding a developer day later this month, underlining the increased\n focus on the developer community (aka the people we have not hired yet).\n\n## Real Lessons Learned\n\nBeing a booth babe equipped me with a mere \"Pavillion Only\" pass. So I decided to\n put my fame to test and request a press pass. Sure enough, I was allowed into the\n super-secret (and super not exciting) press lounge and into the actual sessions. Going\n to a large conference is always a good chance to catch up on all the technologies\n that you may have heard off but never had the time to have a closer look at. JavaOne\n always presents me with a particular challenge, though (besides having to get up in\n the morning after the late night socials): I typically attend sessions based on the\n speaker more than the topic. At JavaOne, however, many of the speakers are Sun engineers\n or product managers, so my usual filter function did not work very well. Accordingly,\n my biggest learnings were what to do and not to do in conference presentations. Because\n I surely committed one or more of these offenses during my talks, I have the more\n reasons to remind everyone here:\n\n- **Do not spend half of your talk \"motivating\" your topic.** If you can't interest people in your topic within the first 2 minutes, you should\n pick a different topic (or profession). [Hani](http://www.bileblog.org) captured how we [endured a never ending introduction](http://www.bileblog.org/?p=332) that began with the economics of development ( *Benefit > Cost = Good* ) and \"progressed\" to a *Rename Method* refactoring after some 30 minutes (out of 60!). I give this particular talk an extra\n minus point for promising \"Advanced Refactoring Techniques\". What could be easier\n to demo than an IDE? But I guess if you don't have much to show you'll make up for\n it with a length intro.\n- **Kick off with a demo (or example)** . Building up to your topic allows you to introduce your line of reasoning and vocabulary\n to the audience. But it also leaves the audience dangling for a long time. Basically,\n this kind of intro is really for you (making it easier to make your point later) as\n opposed to the audience. Because the audience is the one who shells out the money\n (and time) here, you should make sure the presentation is for them, not you. Starting\n with a demo is certainly more difficult because it does not give you a chance to establish\n a lot of vocabulary or context. However, that's why it's you who is presenting and\n not some random sociophobic engineer.\n- **Have a rhythm.** Let's be honest: the average conference attendee arrives from a different time zone,\n is slightly jet-lagged, and often has to make do with 5 hours of sleep. That is 5\n hours at night. They usually get the other 2 or 3 hours during the day, i.e. in your\n talk. Nothing makes people nod off faster than a soothing and constant lullaby of\n arcane technical data -- no matter how relevant it is. To fight the audience's urge\n to sleep make sure you have some fast parts, and some slow parts, some loud parts\n and some quiet parts. Tell an anecdote, get people to laugh, or, better yet, to applaud:\n whenever dozers hear applause their subconscious triggers the \"end of session\" signal\n causing them to wake up immediately. Now you have another chance to engage them.\n- **Tell a story.** The old \"My name is Dilbert and I am here to tell you about\" technique only goes\n so far. Make sure you have an easy to follow story for your talk. Not the kind of\n story a 2-year-old tells ( *and then we used Java (TM) technology. And then we used this cool new API. And then\n everything was good* ). But one with turning points, road blocks, desperation, solutions, euphoria, betrayal,\n love, hate etc. This comes back to the \"rhythm\" point. Also, having a good story allows\n the dozers to catch up more easily once they re-enter the *awake* state.\n- **Make sure you solve an actual problem.** This must sound like motherhood and apple pie, but I guess not everybody has gotten\n it. I still see a lot of presenters selling solutions that seem intellectually useful\n without ever applying them to an actual problem. At academic conferences you can usually\n spot these kinds of talks by the work *toward* in the title, but professional presenters tend to put snazzy titles on purely conceptual\n talks, making the more difficult to spot. I certainly have given my share of conceptual\n talks, but at least let's be honest and state this fact in the title.\n- **Not everything you say has to be brand new.** Hani and I once joked that the highest rated talks are the ones that tell developers\n what they already know. Granted, there is a difference between *highest rated* and *best* but there is still a lesson to be learned here. Many developers are not looking for\n the sneak preview of the pre-beta-alpha API but could use some confirmation of what\n they are currently doing. Helping them conceptualize and better understand their current\n work leaves them reconfirmed and they can go back and tell their boss that they were\n right all along.\n- **Never let anyone touch your slides after you have last seen them.** JavaOne is infamous for muddling with presenters' slides. Of course there is the\n mandatory `:s/Java/Java(TM) Technology` act, but it gets worse. More than one presenter lamented the fact that the final\n edit (for style presumably) introduced factual errors or rendered graphics useless.\n You have to stand up in front of 500 people -- you should get the last word.\n\n## Mashup Blueprints\n\nMy first session I attended was \"Blueprints for Mashups\". For a Googler I am embarrassingly\n ignorant on the whole RIA (Rich Internet Application) topic space, so this seemed\n to be a good way to catch up, reconfirmed by the incredibly long line (see picture).\n The content wasn't even that bad -- the presenters offered solution recipes for issues\n developers tend to encounter when building mashups. For example, accessing external\n servers from a client-side mash-up is often restricted through cross-site scripting\n constraints. To solve this problem you can proxy through your server, which in turn\n accesses the external resource. This \"pattern\" allows you to keep control of any developer\n keys you need to access the external site and also allows you to cache data. The main\n drawback is that you have to deal with two HTTP hops (unless you get a cache hit).\n They also showed a variety of approaches to deal with developer authentication for\n your APIs. A lot of the examples used [jMaki](https://ajax.dev.java.net/) but I did not pay enough attention to really form an opinion on it. I also took note\n of the recently established [JSR 311 (JAX-RS: The JavaTM API for RESTful Web Services)](http://www.jcp.org/en/jsr/detail?id=311). Sounds interesting but I gave up trying to follow every proposed Java API years\n ago. Again, the overall content was a little high-level but not bad. However, somehow\n this ended up being one of the presentations that just seemed to trickle along in\n a steady stream, putting people to sleep one by one (see advice above). So I decided\n to wander down the hall and stumbled upon...\n\n## Designing Service Collaborations\n\nWalking down the hall I realized that a talk on conversations was going on at the\n same time. Naturally, I wanted to catch as much of it as I could. Getting to this\n talk 15 minutes before the end, I was warned by the people scanning badges that everybody\n left the talk saying it was boring. I snuck into the room to find Mark Hapner presenting\n to a hard core of 100 or so people. I love Mark, but it would not be unfair to say\n that his IQ outweighs his charisma as a speaker by about 10 : 1. Of course this topic\n is close to my heart, so I tried to make the best our of the short time. In brief,\n Mark is urging developers to focus on what's going on the wire (as opposed to inside\n your apps). You'll be thinking about conversations, correlation, Message Exchange\n Patterns, etc. He left us with a pointer to [Open ESB](http://open-esb.org), which I am going to check out.\n\n## SCA != SOA\n\nThe Panel \"SCA/SDO and Java Technology: Complementary Technologies That Drive Open\n SOA Environments\" was well attended and featured a promising line-up of panelists\n from BEA, IBM, Oracle, SAP, Sun, and TIBCO, who are all implementing the [SCA Specification](http://www.osoa.org/display/Main/Service+Component+Architecture+Home). [David Chappell (the one)](http://www.davidchappell.com/) moderated while David Chappell (the other) spoke for Oracle. You can easily tell\n them apart by their attire: David Chappell (the other) is dutifully wearing his company\n logo shirt as not to be mistaken for the (late) David Chappell who worked for Sonic,\n while David Chappell (the one) will not be caught without European designer fashion.\n David (the one) has been focusing on writing lately so it was fun to see him live\n again. He made an excellent moderator, quickly pinpointing two key issues around SCA:\n\n- Are the vendors supporting both SCA's programming model and the assembly model?\n- Is SCA really suitable for SOA as it requires that a single composite is running within\n a single vendor environment?\n\nThe programming model, much like Microsoft's WCF, provides a unified API for all kinds of distributed systems communication. In the\n Microsoft world this is a big deal, and rightly so. So it was a little surprising\n that the vendor support for SCA's programming model is at best luke warm. Even a lot\n of the \"official\" documents seem to downplay this aspect of the spec. Only IBM and\n BEA are really supporting both aspects while the others openly stated that the programming\n model is not their focus. A poll to the audience (\"who would like to see a new programming\n model\") seemed to confirm this attitude (no hands went up) but I think this might\n be misleading. I agree that learning a new model is always a liability, unless it\n replaces multiple outdated programming models and makes developers more productive\n and code easier to understand. I don't think this aspect came out in the question\n to the audience.\n\n[When I looked at SCA before](44_dagstuhl.html) it totally escaped me that the spec assumes that a composite has to run in a single\n vendor environment. This limitation means to me that SCA has relatively little to\n do with SOA, which has to deal with an environment that is heterogeneous and not controlled\n by a single vendor. This does not mean that SCA is useless, but it means that it targets\n \"programming in the middle\" (wiring components in a single vendor environment) as\n opposed to \"programming in the large\" (wiring services in an enterprise setting).\n This makes all sense because the \"programming in the large\" is the realm of the WS-*\n specs but it was still surprising to me that I missed this critical part.\n\nDavid has [summarized his take-away](http://www.davidchappell.com/blog/2007/05/supporting-scas-java-component-model.html) in more detail and, as expected, more eloquently.\n\n## Highlights and Lowlights\n\nBrian Goetz and Bill Pugh gave a nice talk on testing concurrent systems. The definite\n low-light for me was *Advanced Java Programming Language Refactoring: Pushing the Envelope*. The only pushing I observed were the people being pushed out of the room by the\n never ending introduction into the topic material. We all agree that having benefit\n outweigh cost is a good thing, so no need to reiterate that. If you spend half your\n talk leading into your topic you run the danger of boring and/or insulting your audience\n to death, not to mention [being biled](http://www.bileblog.org/?p=332). How about \"Who here does not want to be more productive?\" as an opening, followed\n by an impressive demo? Sadly, this talk reconfirmed my impression that NetBeans is\n not really worth looking at. Go IntelliJ!\n\nI only attended two BoF's due to the intense social schedule. I caught the tail end\n of \"Debugging BPEL Processes\" because it somehow took us 20 minutes to settle the\n dinner bill (software engineers and Dollar bills do not seem to mix). I followed up\n by Alex Ruiz presenting an open-source GUI testing framework. It was nice to see that\n a fair number of the presented projects are hosted on [code.google.com](http://code.google.com).\n\nAnother low-light must have been the wireless network. Full signal, but no IP or no\n gateway :-( No wonder Sun dropped *The Network is the Computer* from their corporate vocabulary. At JavaOne the network was a piece of crap...\n\n## Networking Activities\n\nWhat would JavaOne be without the social events? The Tangosol party was attended by\n the usual suspects, which made for an entertaining evening. Sadly we missed the moment\n where the bouncer denied Cameron admission to the party as he was lacking an invite.\n As usual, we were booted at 1am or so, aimlessly wandering the streets. Carlos reported\n back from a taxi that they are heading for *The Stud*. A few minutes later reported that they are coming back from Studs. And I thought\n Carlos is not even that bad looking...\n\nWeds night sported a host of company receptions and the exclusive-yet-not-so-exclusive\n reception Google reception at the (trying to appear exclusive) W Hotel. First i stumbled\n through Jillian's, hitting TerraCotta, Eclipse, Amazon, and IBM. The blogger event\n at Thirsty Bear was kinda lame, so we headed off to the Google party. They actually\n had poor Bob check for tickets at the door so I had to pull people in continually\n (somehow the people we really liked to be there were beaten by the swag hunters in\n the race for a ticket). The party was good fun but somehow ended a little early. A\n hort trip to House of Shields provided one more drink. Somehow the whole gang felt\n a little old and tired when compared to last year. Maybe we are actually getting old\n and tired. The only thing open after 2am appeared to be Denny's. Eating there was\n the penalty we morons paid for not knowing that there is a 24 hour Naan 'n Curry just\n a few blocks away. But then our stomachs may have thanked us.\n\nThe guiding theme for Thursday was provided by James observing that he \"has not gotten\n properly drunk yet\". After dinner and two BoF's (\"Debugging BPEL Processes\" and \"Simplifying\n GUI Testing\") it was time to hit the bar. We walked all the way to the Starlight room\n to join forces with James, Hani etc (who skipped the BoF's in favor of AsiaSF). In\n usual fashion we were booted at 1:30 or so. After the crowd thinned a little, six\n of us hopped into cabs to see how long the 15 beers in my fridge would last us. About\n 6am...\n\nSee you all next year!\n\n*Share:*\n\n*Follow:* [Follow @ghohpe](https://twitter.com/ghohpe) [SUBSCRIBE TO FEED](../ramblings.rss)\n\n*More On:* [EVENTS](/ramblings_events.html) [ALL RAMBLINGS](../ramblings.html)\n\nGregor is a cloud architect and author. He is a frequent speaker on asynchronous messaging,\n IT strategy, and cloud.", "znaku_textu": 15465, "slov": 2598, "odkazu": 60, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/ramblings/51_javaone.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 06:54:11", "sha256": "a87020c68169def13f65de8d978a5bc8b78e71936b22977d5b4489e628135c8e", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://architectelevator.com/blog", "http://code.google.com/webtoolkit/", "http://checkout.google.com/", "http://www.flickr.com/photos/skylinegtr/497014744", "http://www.bileblog.org/", "http://www.bileblog.org/?p=332", "http://www.flickr.com/photos/skylinegtr/497044305", "https://ajax.dev.java.net/", "http://www.jcp.org/en/jsr/detail?id=311", "http://open-esb.org/", "http://www.flickr.com/photos/skylinegtr/497044619/", "http://www.osoa.org/display/Main/Service+Component+Architecture+Home", "http://www.davidchappell.com/", "http://www.davidchappell.com/blog/2007/05/supporting-scas-java-component-model.html", "http://www.flickr.com/photos/skylinegtr/497015570/", "http://code.google.com/", "http://www.flickr.com/photos/skylinegtr/497014490", "https://twitter.com/share", "https://twitter.com/ghohpe", "https://leanpub.com/37things"]} {"url": "https://www.enterpriseintegrationpatterns.com/ramblings/52_soapatterns.html", "titulek": "My Loss, Your Gain - SOA Patterns Article - Enterprise Integration Patterns", "h1": "My Loss, Your Gain - SOA Patterns Article", "popis": "Beginning of this year I submitted an article to a renowned software publication who is running a special issue on software patterns", "klicova_slova": "", "kanonicka": "", "jazyk": "en_US", "robots_meta": "", "og": {"og:type": "article", "og:locale": "en_US", "og:site_name": "Enterprise Integration Patterns", "og:title": "My Loss, Your Gain - SOA Patterns Article", "og:description": "Beginning of this year I submitted an article to a renowned software publication who is running a special issue on software patterns", "og:url": "https://www.enterpriseintegrationpatterns.com/ramblings/52_soapatterns.html"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "My Loss, Your Gain - SOA Patterns Article"}, {"uroven": 2, "text": "Abstract"}], "markdown": "Gregor's Ramblings\n\n---\n\n# My Loss, Your Gain - SOA Patterns Article\n\nMay 21, 2007\n\nFind my posts on IT strategy, enterprise architecture, and digital transformation\n at [ArchitectElevator.com](https://architectelevator.com/blog).\n\nI just added a new article to my site. There is a lot going on in the area of SOA\n patterns but not everything that shines is gold. It thought it's time I'd share my\n thoughts on the intersection between patterns and SOA.\n\n## Abstract\n\nDesign Patterns have enjoyed enormous popularity in the software community and have\n become somewhat of a fad. This can make it challenging to distinguish patterns that\n convey new knowledge from recipes or tutorials that have been cast into patterns form.\n This article examines the role patterns play in the adoption of new technologies and\n architectural styles. In particular it describes why the shift to service-oriented\n architectures requires us to discover, document, and share new patterns.\n\n[Read the full article.](../docs/SoaPatterns.pdf)\n\n*Share:*\n\n*Follow:* [Follow @ghohpe](https://twitter.com/ghohpe) [SUBSCRIBE TO FEED](../ramblings.rss)\n\n*More On:* [WRITING](/ramblings_writing.html) [WEBSERVICES](/ramblings_webServices.html) [ALL RAMBLINGS](../ramblings.html)\n\nGregor is a cloud architect and author. He is a frequent speaker on asynchronous messaging,\n IT strategy, and cloud.", "znaku_textu": 1345, "slov": 181, "odkazu": 44, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/ramblings/52_soapatterns.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 06:54:11", "sha256": "3bd04845436a54860497faf255fcb9a38445cbfbd0e31416fc919f2b87fb6419", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://architectelevator.com/blog", "https://twitter.com/share", "https://twitter.com/ghohpe", "https://leanpub.com/37things"]} {"url": "https://www.enterpriseintegrationpatterns.com/ramblings/53_eric.html", "titulek": "Eric Newcomer is on to me - Enterprise Integration Patterns", "h1": "Eric Newcomer is on to me", "popis": "You can only get away with joking about transactions for so long before the gods of transactions bring you to justice", "klicova_slova": "", "kanonicka": "", "jazyk": "en_US", "robots_meta": "", "og": {"og:type": "article", "og:locale": "en_US", "og:site_name": "Enterprise Integration Patterns", "og:title": "Eric Newcomer is on to me", "og:description": "You can only get away with joking about transactions for so long before the gods of transactions bring you to justice", "og:url": "https://www.enterpriseintegrationpatterns.com/ramblings/53_eric.html"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Eric Newcomer is on to me"}], "markdown": "Gregor's Ramblings\n\n---\n\n# Eric Newcomer is on to me\n\nMay 26, 2007\n\nFind my posts on IT strategy, enterprise architecture, and digital transformation\n at [ArchitectElevator.com](https://architectelevator.com/blog).\n\nMy most popular rambling [Starbucks Does Not Use Two-phase Commit](18_starbucks.html) has been around for a good two years now and was even featured in Joel Spolsky's\n \"Best Software Writing\". So I should consider myself lucky that I escaped [Eric Newcomer](http://www.iona.com/info/aboutus/management/eric_newcomer.htm)'s scrutiny for so long. Eric is the long-time CTO of [IONA](http://www.iona.com), a company most of us value for being a bunch of really smart and nice people. In\n fact, they just gobbled up [James Strachan](http://macstrac.blogspot.com/) with LogicBlaze and John Davies with C24. I wonder how I was able to could miss starting\n a company and have it be acquired. Oh well. At least Google hired me :-)\n\nEric is well known and respected for co-authoring the highly recommended [Principles of Transaction Processing](http://amazon.com/o/asin/1558604154/ref=nosim/enterpriseint-20) amongst many other things. So you want to tread lightly with statements about transactions\n and two-phase-commit when you are around Eric because chances are he knows more about\n the topic than you do. So it was simply a matter of time until [my tongue-in-cheek statements about the relationship between coffee and distributed\n transactions](18_starbucks.html) [caught Eric's attention](http://blogs.iona.com/newcomer/archives/000495.html). I am a little embarrassed that so many people (including Eric) watched my [Developing in a Service-oriented World](http://www.infoq.com/presentations/hohpe-soa-development) talk on [InfoQ](http://www.infoq.com). But I guess eyeballs still count. Come on, click on one of those Google ads, help\n me pay for new gadgets^H^H^H^Hmaintaining this site! ;-)\n\nBut back to Eric. Interestingly Eric and I share a lot of the common interests but\n I don't think we ever formally met. I was back at the MVP meeting this year but somehow\n failed to run into him. Hopefully I get a chance to chat with him next time. Anyway,\n Eric pointed out that Starbucks does in fact use transactions for some parts of its\n business operations, such as recording the payment, if simply by virtue of using a\n (transactional) relational database. I think Eric and I both agree that distributed\n transactions have their pros and cons and we have to think about when to use them\n and when we can come up with alternate solutions. The Starbucks story was primarily\n aimed at those folks who claim that nothing can be done unless we have distributed\n transactions. So I wanted to highlight that real life can well happen without 2PC,\n while taking some literary license and with my tongue firmly planted in my cheek.\n Naturally, real life also uses 2PC. For example, the whole point of an escrow company\n during the purchase of a home is to ensure transactional integrity. I think living\n with uncertainty is a key theme of SOA (as well as asynchronous messaging) and we\n developers who love the command-and-control predictability of call stacks and ACID\n transactions better get used to it.\n\nI think Eric and I also have a very similar view on WS-CDL. CDL has conceptual appeal,\n but it has not seen very much uptake. I think the reason is partly political (for\n example, the big guns have lots of $$$ invested in BPEL) and partly because CDL is\n a conceptually heavyweight topic. I talked about this a little bit in [my article in IEEE Internet Computing](/docs/IEEE_IC_Conversations.pdf)\n\nI think transactions in large and distributed systems are likely to remain an active\n topic for some time to come. For example, Martin Fowler just recently wrote about\n being [transactionless](http://www.martinfowler.com/bliki/Transactionless.html). Also, [Pat Helland's post on SOA and relativity](http://blogs.msdn.com/pathelland/archive/2007/05/20/soa-and-newton-s-universe.aspx) relates very much to transactions and transactional scope in distributed systems.\n\nIn any case I hope to get a chance to chat more with Eric about SOA and transactions.\n And I'll be happy to buy him a coffee and observe whether the coffee shop does use\n transactions or not :-)\n\n*Share:*\n\n*Follow:* [Follow @ghohpe](https://twitter.com/ghohpe) [SUBSCRIBE TO FEED](../ramblings.rss)\n\n*More On:* [DESIGN](/ramblings_design.html) [ALL RAMBLINGS](../ramblings.html)\n\nGregor is a cloud architect and author. He is a frequent speaker on asynchronous messaging,\n IT strategy, and cloud.", "znaku_textu": 4559, "slov": 680, "odkazu": 54, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/ramblings/53_eric.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 06:54:10", "sha256": "4279c17c966f80019dd65ee8daff66e8417b9be21e415c8f380eebd5896ae118", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://architectelevator.com/blog", "http://www.iona.com/info/aboutus/management/eric_newcomer.htm", "http://www.iona.com/", "http://macstrac.blogspot.com/", "http://amazon.com/o/asin/1558604154/ref=nosim/enterpriseint-20", "http://blogs.iona.com/newcomer/archives/000495.html", "http://www.infoq.com/presentations/hohpe-soa-development", "http://www.infoq.com/", "http://www.martinfowler.com/bliki/Transactionless.html", "http://blogs.msdn.com/pathelland/archive/2007/05/20/soa-and-newton-s-universe.aspx", "https://twitter.com/share", "https://twitter.com/ghohpe", "https://leanpub.com/37things"]} {"url": "https://www.enterpriseintegrationpatterns.com/ramblings/54_gdd.html", "titulek": "Google Developer Day - Enterprise Integration Patterns", "h1": "Google Developer Day", "popis": "Last week Google held a developer day in 10 cities around the world", "klicova_slova": "", "kanonicka": "", "jazyk": "en_US", "robots_meta": "", "og": {"og:type": "article", "og:locale": "en_US", "og:site_name": "Enterprise Integration Patterns", "og:title": "Google Developer Day", "og:description": "Last week Google held a developer day in 10 cities around the world", "og:url": "https://www.enterpriseintegrationpatterns.com/ramblings/54_gdd.html"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Google Developer Day"}, {"uroven": 2, "text": "Jeff Huber Keynote"}, {"uroven": 2, "text": "Jeff Dean"}, {"uroven": 2, "text": "GData APIs"}, {"uroven": 2, "text": "Networking"}], "markdown": "Gregor's Ramblings\n\n---\n\n# Google Developer Day\n\nMay 31, 2007\n\nFind my posts on IT strategy, enterprise architecture, and digital transformation\n at [ArchitectElevator.com](https://architectelevator.com/blog).\n\nMost of you have probably noticed that I rarely blog about anything related to Google.\n That's partly because a lot of the information is confidential and partly because\n a lot of it is frankly not that interesting (yes, even Google has boring projects).\n Luckily, an increasing number of Google products feature public APIs, and these are,\n well, public, so I can talk about them freely without risking being fired. In fact,\n the Google developer-focused products have reached enough critical mass to convert\n last year's geo developer event into a full fledged [Developer Day](http://code.google.com/events/developerday). Sort of like Microsoft's PDC or Sun's JavaOne but Googley. [This funny article](http://www.apcmag.com/6250/developer_wars_google_skinnies_versus_microsoft_fatties) highlights the major differences between a Google developer event and a Microsoft\n developer event so I don't have to.\n\nDeveloper Day took place in 10 cities around the world. Somehow I found out about\n the whole gig way to late and failed to put myself in for a speaking gig in Tokyo\n or Sao Paulo. Hopefully next year. This time I made do with attending the local event\n in San Jose, together with about 1500 attendees who came to find out more about the\n latest Google products, see cool demos, interact with the product teams and grab a\n free snack or two. Oh, btw, part of being Googley means being free so attending the\n event was free of charge.\n The first impression was quite positive. First off, the wireless did not suck (unlike\n JavaOne), there were free snacks, Lego tables, bean bags, and gigantic lava lamps.\n The wireless was in fact good enough to post a bunch of pictures to [Flickr](http://www.flickr.com) (hey, being interoperable is Googley). The images are tagged with \"GDD07\", so give\n it a try.\n\n## Jeff Huber Keynote\n\nJeff Huber kicked off with the keynote. Apparently Google has become the biggest independent\n network with over ½ billion unique visitors in a month. So we better listen up. Jeff\n gave a brief overview over the history of Google APIs: the Search API had its debut\n in 2002 and things got really interesting in 2005 when developers started to reverse\n engineer the Maps API. Today over 50,000 Web sites use the Google Maps API. The biggest\n deal in Google's API basket these days is [GData](http://code.google.com/apis/gdata/index.html). GData is the foundation for many product APIs such as Calendar, Spreadsheets, Base.\n Of course, it is in Beta, but that just makes it more exciting.\n\n**Google Mashup Editor**\n\nOf course Google wouldn't go through all this effort and expense if it didn't have\n any new products to announce. These days you are totally not cool if you haven't built\n a mash-up. Come on, do you still live in World 1.0? To make being cool a bit easier\n Google announced the [Mashup editor](http://editor.googlemashups.com/), an editing environment that pull different feeds together and outputs HTML pages,\n which include lists, maps, and other elements ([Yahoo Pipes](http://pipes.yahoo.com) more or less targets the same niche). While this is a cool tool I was hoping that\n the guy on stage would have actually hand-coded something, no matter how small or\n insignificant. I understand that keynotes are always rushed for time and you don't\n want to take any chances. But when it comes to developer tools, actually developing\n something is unbeatable. And after all we hire only the smartest and brightest, so\n I should not be asking too much.\n\n**Google Gears**\n\nThe other big news is Google Gears. We all love Google tools and applications, but\n they have one big limitation: you have to be connected to the Internet to use them.\n If you live outside of Mountain View (which Google blanketed with free WiFi access)\n that might not always be the case. That's where [Google Gears](http://gears.google.com/) comes in. Gears caches Web pages (or data) locally and also gives browser applications\n access to a local database. The ability to run off-line makes any RIA (Rich Internet\n Application) even richer. But before you convert all your apps, keep in mind that\n Gears is an experimental release, i.e. not recommended for production environments.\n\n**Maplets**\n\nThe Maps team did not want to be left behind and announced [Maplets](http://maps.google.com/preview). These mini applications allow you to plot data from different maplets onto the same\n map. For example, you can plot hotel prices (from Orbitz) and weather data (from weatherbug)\n onto the same map to find the best deal on a hotel outside San Francisco's fog belt.\n\n**Gadgets**\n\nThe keynote also reminded us how much traffic some of the Google Gadgets get. Not\n surprisingly, a game is near the top: PacMan got 6.7 million views a months while\n Notes is a strong contender with 4.7 million views. Think about the exposure (i.e.\n fame) and the potential AdSense Dollars (i.e. money). The keynote demo'd a cool gadget:\n the Expedia fare calendar. Given a source and destination it plots the lowest fares\n on a calendar-like widget. Maybe we are really entering the age of the widget economy.\n\n**Sergey**\n\nSergey Brin made a \"surprise\" appearance. Sergey mused how the Internet can help create\n developers by supplying dating services, which can lead to human offspring, who then\n can help develop more apps. A Matrix-like vision of a self-hosted Internet I guess.\n\n## Jeff Dean\n\nJeff Dean, a Google fellow, shared details about Google's core infrastructure. While\n some of the key components have been described in public papers (e.g. GFS, MapReduce,\n BigTable) this talk promised to give us a bit more insight into what is really going\n on in the Google data centers. Amazingly, Jeff shared quite a bit of detail, e.g.\n real pictures of Google server racks (I have not been able to find one for my public\n talks) and hard numbers.\n\nJeff reminded everyone that increasing amounts of data (his back of the napkin computation\n suggested we are dealing with 5 Exabytes or so per year) and smarter (i.e. computationally\n more intensive) algorithms cause a constant need for more computing power. Google's\n strategy is to optimize the price/performance ratio of its computing resources. As\n a result, Google data centers are not equipped with the latest high-end servers but\n rather with lots and lots of PC-class machines. Making the machines themselves more\n resilient, for example by equipping them with redundant power supplies typically does\n not pay off. The large number of machines make failures a question of when rather\n than if, so your software infrastructure has to be prepared to deal with it in any\n case. Once you have that infrastructure, the price increment to bring an individual\n machine from four 9's to five 9's availability is not warranted. You rather put the\n extra money into more machines, which are available most of the time.\n\nJeff ran through a quick history of Google data centers, starting with the infamous\n \"cork board\" machines, named after the cork board that separated the motherboard from\n the metallic tray. However primitive, this setup allowed 4 motherboards to be fitted\n on a single tray (and a single power supply). Subsequent generations of server racks\n have more computing power, cleaner cabling, but maintain the spirit of high-density,\n low-cost machines.\n\nBut this massive computing infrastructure comes to life only in combination with an\n appropriate software stack. Running programs on this many machines requires dealing\n with failing machines, huge amounts of data storage, back-ups, restart points etc.\n To make developing highly parallelized applications easier Google developed three\n pieces of core infrastructure:\n\n- GFS is Google's own file system. Why write another one? Google's data bandwidth requirements\n are fairly unique and since we have full control over all applications having them\n use a different file system is not difficult to do. GFS replicates data across chunk\n servers so that each 64 MB chunk of data is replicated across three physical disks.\n Some of the larger clusters have 50,000 chunk servers. A client writes to multiple\n servers at the same time so it does not have to wait for the data to be propagated,\n- If you need more structure than a flat file, BigTable comes to the rescue. Big table\n implements a very simple data base without all the gimmick's of a modern relational\n database. In return your data can be big: some of the larger cell hold 3,000 TB.\n- MapReduce is the key abstraction for parallel computing on Google's infrastructure.\n As the name suggests, it is a two-stage abstraction. The first stage computes a key\n for each input item whereas the second step aggregates all items with the same key.\n It is astonishing how many problems can be mapped into this abstraction. The MapReduce\n engine makes running these jobs fast, robust, scalable, and manageable. Mapreduce\n is so popular that 172,000 jobs run in a single month, processing some 52 PetaByte\n of data. These reduces experience an average of 5 deaths, that is process deaths,\n not programmer deaths. Interestingly, the MapReduce usage spikes clearly when new\n interns arrive in the summer. After all, what is more fun than running a job across\n thousands or tens of thousands of machines?\n\nAll these technologies are described in public papers: [http://labs.google.com/papers](http://labs.google.com/papers).\n\n## GData APIs\n\nI attended two sessions on [GData](http://code.google.com/apis/gdata/index.html). GData forms the basis for a number of new product APIs, such as Base, Blogger, Calendar,\n Notebook, Spreadsheets, and Picasa Web. GData follows a relative simple data model.\n Requests are made REST style with descriptive URL's and query strings (plus HTTP headers\n and/or session cookies for authentication). Response data is in Atom format, with\n Google specific extensions (for example `gd:when` and `gd:where` for calendar events). GData provides a consistent query mechanism, authentication,\n and off-line concurrency management. Concurrency is optimistic, i.e resources are\n not locked, making concurrent updates possible. Conflicts (e.g., updates to stale\n data) can be detected and result in a 409 error because resource links contain unique\n version identifiers.\n\nUsing these APIs someone developed a cool [ambient clock](http://ambientclock.com/) gadget that shows busy and free times on an analog dial. Amazingly, the developer\n was right in the audience. The presenter left ample time for Q&A, which was very much\n appreciated by the audience. Fielding audience questions as a Google engineer is always\n a tricky situation because topics can be controversial or touch on confidential issues.\n Jeff did a good job answering questions without having to resort to the \"I am not\n privileged to comment on such matter\" too often.\n\nNaturally the SOAP Search API question (no new developer keys are being issued) came\n up. How committed is Google to keep the new API's around, especially given that they\n are free (and free of ads)? Jeff reminded us that he is not in charge of these decisions.\n According to him, Google is committed to continued support for the GData APIs because\n they give the user access to their own data, i.e. their appointments or photos. One\n of Google's maxims it to not lock users in, i.e. to allow them to grab their data\n at any time and take it somewhere else. The APIs play a key part in that statement\n and are here to stay. Google also derives value because they can observe what the\n developer community builds on top of their platform.\n\nJeff clarified that there are currently no SLA's in place for GData API's. On the\n upside Google is pretty good at running high-availability, low-latency services. \n Product comparisons can be treacherous territory but it is clear that Google's Mash-up\n editor and Yahoo Pipes are playing in similar territory. In fact, you can combine\n the two by using Pipes against GData feeds because they both use popular Arom and\n RSS formats.\n\nThere was some unhappiness about the way the [AdWords API](http://www.google.com/apis/adwords/) is being evolved. AdWords supports four concurrent versions of the API, causing an\n API to be decommissioned 4 months after a new version is announced. The new set of\n Google APIs seem more amenable to evolution so hopefully they will provide a smoother\n transition for developers, even though they will continue to evolve.\n\n## Networking\n\nIn between the sessions, attendees networked over lunch or in the blogger lounge.\n The day concluded with a social event on Google campus. Sadly one could not obtain\n an alcoholic beverage without a wristband, which was being issued on the other side\n of campus. There are some things even Google can't touch.\n\n*Share:*\n\n*Follow:* [Follow @ghohpe](https://twitter.com/ghohpe) [SUBSCRIBE TO FEED](../ramblings.rss)\n\n*More On:* [EVENTS](/ramblings_events.html) [ALL RAMBLINGS](../ramblings.html)\n\nGregor is a cloud architect and author. He is a frequent speaker on asynchronous messaging,\n IT strategy, and cloud.", "znaku_textu": 13178, "slov": 2085, "odkazu": 58, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/ramblings/54_gdd.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 06:54:08", "sha256": "01618ecb336415b9ce2c6345a431310056ee0bdc79b44ddcdbe41bd8483100ec", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://architectelevator.com/blog", "http://www.flickr.com/photos/skylinegtr/523510493/", "http://code.google.com/events/developerday", "http://www.apcmag.com/6250/developer_wars_google_skinnies_versus_microsoft_fatties", "http://www.flickr.com/", "http://www.flickr.com/photos/skylinegtr/523510717/", "http://code.google.com/apis/gdata/index.html", "http://editor.googlemashups.com/", "http://pipes.yahoo.com/", "http://gears.google.com/", "http://maps.google.com/preview", "http://www.flickr.com/photos/skylinegtr/525952661/", "http://labs.google.com/papers", "http://www.flickr.com/photos/skylinegtr/525951651/", "http://ambientclock.com/", "http://www.google.com/apis/adwords/", "https://twitter.com/share", "https://twitter.com/ghohpe", "https://leanpub.com/37things"]} {"url": "https://www.enterpriseintegrationpatterns.com/ramblings/55_api.html", "titulek": "API's are for Humans, too - Enterprise Integration Patterns", "h1": "API's are for Humans, too", "popis": "When graphical user interfaces became popular thrifty people had the idea that they could generate them automatically", "klicova_slova": "", "kanonicka": "", "jazyk": "en_US", "robots_meta": "", "og": {"og:type": "article", "og:locale": "en_US", "og:site_name": "Enterprise Integration Patterns", "og:title": "API's are for Humans, too", "og:description": "When graphical user interfaces became popular thrifty people had the idea that they could generate them automatically", "og:url": "https://www.enterpriseintegrationpatterns.com/ramblings/55_api.html"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "API's are for Humans, too"}], "markdown": "Gregor's Ramblings\n\n---\n\n# API's are for Humans, too\n\nJune 19, 2007\n\nFind my posts on IT strategy, enterprise architecture, and digital transformation\n at [ArchitectElevator.com](https://architectelevator.com/blog).\n\nWhen graphical user interfaces became popular developers loved it because GUI's are\n cool and fun, and make the software easier to use. But creating good GUI's is not\n easy and often requires user interface designers, developers writing abstraction layers\n etc. From the view of a development manager this equates to Dollars (well, at the\n current exchange rate US Dollars don’t matter that much, lets assume it equates to\n a real currency like Euros or British Pounds). Naturally, it was not long before vendors\n decided to capitalize on that market opportunity. Why don’t you create the GUI from\n your business objects or your database tables? If a customer has 10 fields we can\n simply render a screen with text boxes and labels for people to enter that data. If\n an order form has multiple line items we can create a grid multi-row input element.\n As expected, to a drowning man any straw seems good enough so people jumped on the\n bandwagon. When the buzz wore off they realized that the silver bullets were in fact\n made from lead (and failed to kill any werewolves). Data structures (objects nor tables)\n do not make good user interface elements unless you build a simple data entry application\n (despite all the jokes Microsoft Access can claim some success in that category).\n I like to remind people that in the real world people do not set their address, their\n last name, or their bank account balance. Instead, they move, get married (or divorced)\n or transfer money into their account. User interfaces are all about intuition, guiding\n the user, having the user build a mental model, not about setting fields on business\n objects.\n\nSoon people shuddered at the mere thought of generating user interfaces from the\n code (who would ever do that?!) and went on to hire interaction designers, information\n architects and the like to build nicely usable applications. Of course then the Web\n came around and GUI's started to look worse than the stuff generated from the code.\n But I digress. This is supposed to be about API's after all.\n\nHalf a decade later we discovered that we can not only have users browse over the\n Internet but we can make machines talk to each other as well. Web services and SOA\n became the latest buzzwords and it is all about API's now. Once again we need to create\n a new type of interface, but this time it is one for machines. Instead of drop-down\n controls and drag-drop interactions we deal with Schemas, WSDL, XML parsers and the\n like. Once again, this requires new skill and new Dollars (or British Pounds or Euros).\n Invariably the thought of just generating this interface from your objects springs\n to mind. If we could only generate this stuff, we won't have to hire people specializing\n in all the Web services hoopla. This time it is even more appealing. Generating stuff\n that is meant for actual users seems kinda hard. But generating a programming interface?\n That must be much easier. With predictable certainty dozens of vendor offerings and\n open source frameworks generate WSDL and what not from Java classes and about anything\n else that looks like an application code.\n\nLet's not forget, though, that API's are also consumed by humans. Some developer (yes,\n developers are humans!) does read that documentation or sample code and builds an\n application that interacts with yours. What's most important, this developer forms\n a mental model very much in the way a GUI user does. Anyone interacting with your\n system sees it as a big black box with a few knobs and levers, i.e. API methods or\n buttons. Based on the observed behavior (and the invariably terse documentation) they\n form a mental model of what goes on inside the box. They use that model to predict\n what will happen and are surprised (or frustrated, or aggravated) when the actual\n result does not match the expected result.\n\nI was reminded of how difficult it is to build a good model when Aaron Geman came\n to Google to show his [TinkerThink Puzzle](http://www.makerfaire.com/pub/e/381). His puzzle is not even in a black box but a transparent one. And the controls are\n limited to one crank and two or three handles. Based on these controls pinballs are\n routed through the maze, the goal being to channel one ball into each of the three\n output lanes. According to Aaron it takes many people an hour to resolve this puzzle\n (I managed to get 2 balls in within 10 minutes and decided to quit while I am ahead).\n Now compare this to an API to a complex system. The inner working consisting of hundreds\n of classes are reduced to a few dozen levers and cranks, leaving the user wondering\n which lever they have to pull to get the desired effect. And they can't even look\n inside.\n\nNow I am not the first person to advocate contract-first design of public interfaces.\n Yet there is still surprisingly little work telling us how to build intuitive programming\n interfaces. Kevlin Henney as well as Josh Bloch have shared some of their experience.\n For example Josh popularized the notion of the [conceptual weight](http://www.scribd.com/doc/33655/How-to-Design-a-Good-API-and-Why-it-Matters) of an interface. I would like to see more concrete guidance for good design of Web\n services interfaces that allow developers to build consistent and accurate mental\n models, which make using the API intuitive. But first we have to get people of the\n \"auto-generate the interface\" koolaid.\n\nps: If you are wondering what [Big G](http://www.google.com) is doing in API's, [have a look](http://code.google.com/apis/). More on that later...\n\n*Share:*\n\n*Follow:* [Follow @ghohpe](https://twitter.com/ghohpe) [SUBSCRIBE TO FEED](../ramblings.rss)\n\n*More On:* [DESIGN](/ramblings_design.html) [ALL RAMBLINGS](../ramblings.html)\n\nGregor is a cloud architect and author. He is a frequent speaker on asynchronous messaging,\n IT strategy, and cloud.", "znaku_textu": 6051, "slov": 988, "odkazu": 47, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/ramblings/55_api.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 06:54:08", "sha256": "568a92309782485072bbe2368678bc35408d3aa3d55cf2e6192242cd1db9be2d", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://architectelevator.com/blog", "http://www.makerfaire.com/pub/e/381", "http://www.scribd.com/doc/33655/How-to-Design-a-Good-API-and-Why-it-Matters", "http://www.google.com/", "http://code.google.com/apis/", "https://twitter.com/share", "https://twitter.com/ghohpe", "https://leanpub.com/37things"]} {"url": "https://www.enterpriseintegrationpatterns.com/ramblings/56_events.html", "titulek": "Users Like Events - Enterprise Integration Patterns", "h1": "Users Like Events", "popis": "Two weeks ago I presented a keynote at the DEBS (Distributed Event-based Systems) conference", "klicova_slova": "", "kanonicka": "", "jazyk": "en_US", "robots_meta": "", "og": {"og:type": "article", "og:locale": "en_US", "og:site_name": "Enterprise Integration Patterns", "og:title": "Users Like Events", "og:description": "Two weeks ago I presented a keynote at the DEBS (Distributed Event-based Systems) conference", "og:url": "https://www.enterpriseintegrationpatterns.com/ramblings/56_events.html"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Users Like Events"}, {"uroven": 2, "text": "Distributed Event-based Systems"}, {"uroven": 2, "text": "The Human Protocol: Polling"}, {"uroven": 2, "text": "Events to the Rescue"}, {"uroven": 2, "text": "Feed Reader = Event-based System?"}, {"uroven": 2, "text": "Once Again, No Free Lunch"}, {"uroven": 2, "text": "Got Code?"}], "markdown": "Gregor's Ramblings\n\n---\n\n# Users Like Events\n\nJuly 12, 2007\n\nFind my posts on IT strategy, enterprise architecture, and digital transformation\n at [ArchitectElevator.com](https://architectelevator.com/blog).\n\n## Distributed Event-based Systems\n\nTwo weeks ago I presented a keynote at the [DEBS (Distributed Event-based Systems)](http://www.debs.msrg.utoronto.ca/) conference. The emphasis of the conference was on academic work in the field but\n event-based systems are rapidly gaining traction in commercial applications as CEP\n (Complex Event Processing) is becoming a household name like SOA (and equally difficult\n to pin down). All this talk about events reminded me that applications on the Web\n are becoming increasingly event driven.\n\n## The Human Protocol: Polling\n\nHow many times have you visited a website just to check the status of a resource and\n to make a decision based on it? Do I have enough money left in my checking account?\n Has that check cleared yet? Did this camera I am looking to buy go on sale? Is anyone\n selling the used car I am looking for? While an HTML and HTTP-based Internet is inherently\n tied to a synchronous request-response interaction, the user model often more closely\n resembles an ECA (Event-Condition-Action) interaction. A specific event (e.g., the\n price of the digital camera drops below $300) is applied to one or more conditions\n (bank account balance is > $1000 and significant other approves) and results in an\n action (buy camera). Sadly, most Web page users have to implement the event-driven\n aspect of this interaction through polling, i.e. by repeatedly opening a Web page,\n retrieving the data, and comparing it to the conditions. This is obviously tedious\n and cries for a more efficient solution.\n\n## Events to the Rescue\n\nMany years ago, the availability of information was the biggest challenge. With the\n advent of the Internet finding the right information was the challenge. Now that this\n problem has been mostly solved (my employer had a certain hand in that) accessing\n and processing information has become the biggest challenge. Having an event-based\n system to perform preprocessing for us and alert us only when certain conditions match\n allows us to process more information in a more efficient manner.\n\nThe late 90ies saw the rapid rise of a push-based Internet but things have gotten\n fairly quiet in that segment (a [search for \"Marimba\"](http://www.google.com/search?hl=en&q=Marimba) nowadays seems to yield more musical sites than Internet-related topics). I believe\n that the most established event model for the Web today takes the form of feed readers.\n Feed readers retrieve feed data, checking periodically for new items in the feed.\n Originally meant for syndication of news items and blogs, these readers have one important\n property: they perform the polling in the background and alert the user to new items.\n This works especially well in reader sidebars, as supplied for example by [Google Desktop](http://desktop.google.com) or other pluggable gadget frameworks. Such sidebars display feed entries in a floating\n bar on the desktop so that the user can easily track the arrival of new items while\n working on other applications.\n\n## Feed Reader = Event-based System?\n\nFor these types of alerts to be useful, the user has to have the ability to specify\n alert criteria or rules. Increasingly, feeds accept query parameters to perform such\n functions. For example, Craigslist allows me to receive new entries (i.e. alerts),\n when someone posts the type of item I am looking for, based on price and keywords.\n For example, I can be alerted to any Audi S4 Avant for sale in my area with a subscription\n to [http://www.craigslist.com/cgi-bin/search?areaID=1&subAreaID=0&query=s4+avant&catAbbreviation=car&minAsk=min&maxAsk=max&format=rss](http://www.craigslist.com/cgi-bin/search?areaID=1&subAreaID=0&query=s4+avant&catAbbreviation=car&minAsk=min&maxAsk=max&format=rss). Displaying the resulting feed in Google sidebar puts the burden of implementing\n an event-based system onto the RSS client, not me.\n\nOne can also compare these types of subscriptions to long-running database queries\n that update the result set whenever new data arrives. Such analogies remind us that\n we can often view the same system from a different perspective. Is an RSS feed more\n like a database query or more like an event stream? I believe it is both, it depends\n on how you use it.\n\n## Once Again, No Free Lunch\n\nAs always, many useful applications on the Internet are somewhat complicated by security\n issues. While a feed into my checking account or credit card activity would be surely\n convenient, serious security concerns are likely to make this a wish rather than reality.\n But many banks have recognized user's desire for events and provide one-off event\n notification mechanisms in lieu of RSS. For example, my bank alerts me via e-mail\n or SMS when a deposit is made (yeah!) or a check cashed (boo!). Once again it turns\n out that asynchronous messaging is a great way to deliver events. So the idea of using\n e-mail and SMS as a transport seems natural. As ubiquitous as these protocols are,\n though, the integration opportunities are more limited than with HTTP and RSS.\n\nInterestingly, users receiving these event streams have to deal with some of the same\n issues that can make building event-based systems challenging. For example, events\n can arrive out of order. Or event correlation may be difficult. For example, I may\n receive an event telling me that my credit card payment posted. Another event alerts\n me to the debit to my checking account. Without sufficient context it is not obvious\n that these events are related because they originate from different sources. Maybe\n banks should allow me to specify a correlation identifier to make this easier so I\n can do some CEP on my financial transactions? Lastly, event-driven applications have\n to deal with events as they come in, often requiring the recipient to regain enough\n context to deal with the event. For example, when I process my e-mail stream I often\n have to remind myself what we were talking about by looking at the history of the\n conversation or a related Web site.\n\n## Got Code?\n\nThis rambling has been all work and no play, and experience shows that this makes\n us a dull boy (and makes us want to kill our family with an axe). To stay clear of\n that scenario I prepared a few running examples that show how to build event streams\n on the Web. Stay tuned.\n\nIn the meantime, if you want some event-based notification of content changes on my\n site, I have two feeds for you, one [feed for my conference talks](http://www.enterpriseintegrationpatterns.com/talks.rss) and one [feed for my ramblings](http://www.enterpriseintegrationpatterns.com/ramblings.rss).\n\n*Share:*\n\n*Follow:* [Follow @ghohpe](https://twitter.com/ghohpe) [SUBSCRIBE TO FEED](../ramblings.rss)\n\n*More On:* [EVENTS](/ramblings_events.html) [MESSAGING](/ramblings_messaging.html) [ALL RAMBLINGS](../ramblings.html)\n\nGregor is a cloud architect and author. He is a frequent speaker on asynchronous messaging,\n IT strategy, and cloud.", "znaku_textu": 7112, "slov": 1092, "odkazu": 49, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/ramblings/56_events.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 06:54:06", "sha256": "db4014a7d4db88a51f227d49fe02fe8f4281ee5336003597e5e923c37f4e29b0", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://architectelevator.com/blog", "http://www.debs.msrg.utoronto.ca/", "http://www.google.com/search?hl=en&q=Marimba", "http://desktop.google.com/", "http://www.craigslist.com/cgi-bin/search?areaID=1&catAbbreviation=car&format=rss&maxAsk=max&minAsk=min&query=s4+avant&subAreaID=0", "https://twitter.com/share", "https://twitter.com/ghohpe", "https://leanpub.com/37things"]} {"url": "https://www.enterpriseintegrationpatterns.com/ramblings/57_pipes.html", "titulek": "I Want My Events - Enterprise Integration Patterns", "h1": "I Want My Events", "popis": "Last time I claimed that users like events", "klicova_slova": "", "kanonicka": "", "jazyk": "en_US", "robots_meta": "", "og": {"og:type": "article", "og:locale": "en_US", "og:site_name": "Enterprise Integration Patterns", "og:title": "I Want My Events", "og:description": "Last time I claimed that users like events", "og:url": "https://www.enterpriseintegrationpatterns.com/ramblings/57_pipes.html"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "I Want My Events"}, {"uroven": 2, "text": "Web 0.0: Person-to-Person"}, {"uroven": 2, "text": "Web 1.0: HTML"}, {"uroven": 2, "text": "Web 1.5: Web Services"}, {"uroven": 2, "text": "Web 2.0: Pipes and Mash-Ups"}, {"uroven": 2, "text": "Web 2.5: Structured Search (?)"}, {"uroven": 2, "text": "Appendix Y: Making it Happen with Yahoo! Pipes"}, {"uroven": 2, "text": "Appendix P: Making it happen with Python"}], "markdown": "Gregor's Ramblings\n\n---\n\n# I Want My Events\n\nJuly 15, 2007\n\nFind my posts on IT strategy, enterprise architecture, and digital transformation\n at [ArchitectElevator.com](https://architectelevator.com/blog).\n\n[Last time](56_events.html) I claimed that users like events. This time I want to show how I fulfilled my personal\n desire for events off the Web. A large portion of my \"spare time\" is occupied with\n writing. The scariest moment in a book author's life is the day the book goes on the\n shelf. Martin calls this the \"will they like my baby??\" moment, even though he has\n had little to worry about (but having set his own bar so high, so I am sure he is\n still nervous). Because technical authors really don't make much money off the books\n (unless you wrote Harry Potter and the Aggregator Pattern), reader reviews are often\n the primary source of bragging rights and Amazon stars carry a cachet close to the\n coveted Michelin stars.\n\nLong story short, I like to know what people think about my book and like to be notified\n when a new opinion surfaces. Since this is a not a new desire I have built various\n solutions to this problem over the years. Join me in my chronology of being alerted\n over the Internet.\n\n## Web 0.0: Person-to-Person\n\nFirst there was the Web. Well, not quite. First there was the World without the Web.\n Before the Internet came around, getting actual feedback on your book involved physical\n or inter personal activity, which are both equally daunting to most technical authors.\n You could try to hang out a book store (preferably a busy venue like a conference\n book store) and prompt people along the lines of \"A good friend of mine wrote this.\n Don't you think it is great?\" Ah, the good old days. Fun but not very efficient.\n\n## Web 1.0: HTML\n\nAmazon started selling books over the Internet in 1995. Soon they realized that just\n selling individual items is merely a Web-enabled version of a traditional store. So\n Amazon started to transform their site from a mere store to a community, providing\n customers with recommendations, rankings and user reviews. Nowadays, user contributed\n content is counted as one of the key requirements to deserve that cool \"Web 2.0\" label,\n so Amazon was definitely a trend setter.\n\nI could visit [my book's page](http://www.amazon.com/Enterprise-Integration-Patterns-Designing-Addison-Wesley/dp/0321200683) on Amazon and look at the customer reviews, implementing the polling protocol I [described last time](56_events.html), i.e. I'd go there periodically to see whether anything changed.\n\nIf I was looking for automation I could access the page programmatically and \"screen\n scrape\" the information off the HTML source. Experience shows that screen scraping\n is cumbersome and brittle because changes in the page layout tend to break the \"integration\".\n Nevertheless screen scraping HTML was and is popular (for example, my Infogate tool\n relied on screen scraping to send relevant information to my cell phone) and one could\n even posit that Web crawling and indexing is a fancy version of screen scraping.\n\n## Web 1.5: Web Services\n\nIn 2002 Amazon launched their [Amazon Web services](http://aws.amazon.com), allowing users to access Amazon's data programmatically. Amazon provides both a\n REST-inspired interface and a SOAP interface, making it easy to access the store's\n information from about any programming language (and easy to get into lengthy REST\n vs. SOAP debates). Apply for a developer token, form an HTTP request, parse the resulting\n XML, and you have built an integration across the Internet. Very neat.\n\nNaturally Web services allow for much more robust integration than screen scraping\n because the data format is more stable and free of formatting elements. To move closer\n to my original goal of receiving an alert for new book reviews, I created a variety\n of programs, the latest incarnation of which is written in Python (statically typed\n languages are so 2003).\n\nThe program runs on a daily cycle (e.g., via a cron job) and performs the following\n steps:\n\n- Retrieve the book information in XML format from Amazon.\n- Parse the XML and extract the reviews.\n- Compare the number of reviews to the last seen number of reviews.\n- If the new number is higher, retrieve the latest reviews, update the history, and\n e-mail the reviews.\n\nA shell script sends the mail message using UNIX `mail`. The review history is stored in a simple text file. The whole setup works quite\n well, but does require a bit of manual coding. I describe the program in more detail\n below.\n\n## Web 2.0: Pipes and Mash-Ups\n\nHand-coding integration solutions is about as uncool as saying EAI in an SOA world.\n In preparation of next week's [Mashup Camp](http://www.mashupcamp.com) I started to spend some time with various mashup tools, including [Google Mashup Editor](http://code.google.com/gme) ([see my GME tutorial on code.google.com](http://code.google.com/support/bin/answer.py?answer=71042&topic=12044)) and [Yahoo! Pipes](http://pipes.yahoo.com). It occurred to me that combining these tools with [my insights regarding events on the Web](56_events.html) would make for a very elegant and simple solution:\n\nYahoo! Pipes can access an arbitrary XML data stream, manipulate it and re-publish\n it as an RSS feed, hosted by Yahoo. Using the widespread RSS format affords this solution\n a critical integration point that the previous solution was missing: I can use any\n RSS Feed reader to perform change tracking and alert me of new reviews, i.e. new items\n in the feed (see below). Or I could create another pipe that combines the RSS feed\n with data from another provider. This solution reduces the effort form some 100 lines\n of Python code to configuring a few elements in a drag-drop editor (see below for\n a detailed discussion of this implementation).\n\nThe solution is general enough to work with any ASIN, the Amazon Standard Identification\n Number used to reference items in Amazon's store.\n\n## Web 2.5: Structured Search (?)\n\nWhat's next? Mashing up existing data into a feed is convenient but requires you to\n know the location and structure of the data source. If you imagine search technologies\n becoming more context aware and better at parsing structured information it might\n not be long until you can find any Web page that voices an opinion about my book.\n I occasionally do this by hand by searching for \"Enterprise Integration Patterns\"\n or doing a link search ([search link:eaipatterns.com](http://www.google.com/search?hl=en&q=link%3Aeaipatterns.com)). However, the evaluation of the results is entirely manual and subjective. Maybe\n stronger search technologies will obsolete my Pipes-based solution within a year or\n two...\n\n## Appendix Y: Making it Happen with Yahoo! Pipes\n\nTo prove that I am not in the \"I used to be a coder\" camp, here the actual solution\n in detail. Yahoo! Pipes follows a data flow model, represented as a pipeline of connected\n modules. Pipes provides a dozen or two predefined modules that provide for data retrieval,\n enrichment, and transformation. My Amazon Yahoo! Pipe looks as follows:\n\nFirst, the pipe has to construct a URL to the Amazon Web service. The URL to the REST\n service is pretty straightforward and contains 2 parameters: the ASIN of the product\n to be retrieved and the Amazon developer token. The token is needed to perform throttling\n and enforce quota limits (you are allowed one request per second per IP). So while\n you are free to use my pipe I'll ask that you use your own developer token. You can\n get one at [aws.amazon.com](http://aws.amazon.com).\n\nThe final URL to access the Amazon Web service looks like this:\n\n```\nhttp://ecs.amazonaws.com/onca/xml?Service=AWSECommerceService&ResponseGroup=Reviews%2CItemAttributes&Operation=ItemLookup&ItemId=0321200683&AWSAccessKeyId=???\n```\n\n(replace ??? with your Amazon developer token).\n\nThe Fetch Data module hits this URL and extracts the specified node from the XML result.\n In our case the reviews are under Items.Item.CustomerReviews.Review (Pipes uses the\n dot notation as opposed to XPath). The Rename module copies the interesting fields\n for each review into the standard RSS elements (title and description). Lastly, we\n manipulate the title string field to also include the number of stars the reviewer\n awarded. The output is an RSS feed of reviews for the given ASIN:\n\n```\n \n \n AmazonReviews Gregor\n Pipes Output\n http://pipes.yahoo.com/pipes/pipe.info?_id=mmTwRpgw3BGOKomHyjUFzw\n Sat, 14 Jul 2007 00:53:32 PDT\n http://pipes.yahoo.com/pipes/\n \n The Bible for Enterprise Application Integration (5 Stars)\n As a developer working on application integration for...\n \n ...\n \n \n Required for any architect (5 Stars)\n Whether you are new to integration architecture... \n \n ...\n \n \n \n```\n\nThe exciting news is that a running Yahoo pipe is available from a public URL, allowing\n you to subscribe to the following URL from any RSS reader: http://pipes.yahoo.com/pipes/pipe.run?ASIN=0321200683&AccessKey=???&_id=lHe4hDAw3BGKdk3SdLq02Q&_render=rss&_run=1.\n Simply replace the AccessKey with your Amazon key, replace the ASIN with a product\n of your choice (e.g., the ISBN of a book) and you have an RSS feed for reviews!\n\nIf you like to see the pipe source or clone it for your experiments search for AmazonReviews\n on [pipes.yahoo.com](http://pipes.yahoo.com).\n\n## Appendix P: Making it happen with Python\n\nIf you still live in the Web 1.5 world I am happy to share my Python program with\n you. The general flow is similar to the Yahoo Pipe, except the program has to do its\n own change tracking. The main method looks like this:\n\n```\ndef main(args):\n # process command line args\n if len(args) > 1:\n asin = args[1]\n if asin == \"help\" or asin == \"--help\":\n help(args[0])\n sys.exit(0)\n else:\n asin = \"0321200683\"\n\n if len(args) > 2:\n tld = args[2]\n else:\n tld = \"com\"\n \n print(\"Reviews for ISBN %s\" % asin)\n try:\n dom = GetAmazonData(\"???\", asin, tld)\n except Exception:\n print(\"Unable to connect to Amazon\")\n sys.exit(0)\n print(getTitle(dom))\n num = GetNumReviews(dom)\n oldnum = ReadNumReviews(asin)\n if (num != oldnum):\n PrintReviews(dom)\n WriteNumReviews(asin, num)\n sys.exit(1)\n else:\n print(\"no new reviews\")\n sys.exit(0)\n```\n\nFirst, the program parses some command line arguments, such as the ASIN. By default\n it gets the reviews for my book. As with the Pipes implementation you need to provide\n an Amazon developer token, which you can request at [aws.amazon.com](http://aws.amazon.com). The method then forms the query URL and parses the results into an XML DOM. I use\n the built-in minidom library, which is somewhat limited but it allows this Python\n program to run without any external libraries. From the dom, the function gets the\n number of reviews and compares it to the last seen number of reviews (stored in a\n file). If there are new reviews, it writes the last 5 reviews (as reported in the\n XML document) to a file, which can be picked up by a shell script, for example to\n send an e-mail. The return value of the program indicates whether new reviews were\n found or not. Most of the code is straightforward enough. You can [download the full source](../download/amazon.py).\n\nLet me point out the few gotcha's and surprises I hit:\n\n- Amazon does have country-specific items. For example, to get the reviews for our book [SOA Expertenwissen](http://www.amazon.de/SOA-Expertenwissen-Gernot-Starke/dp/3898644375) you have to hit the German Amazon Web Service at ecs.amazonaws.de. That's why we\n allow the top-level domain as a parameter.\n- As always, text inside XML elements can be split across multiple text nodes. A helper\n method `getText()` iterates over all text sub-nodes of a given node and concatenates them.\n- Not surprisingly, character encoding issues also came up. The XML uses UTF-8 encoding,\n but we want our file output to use an 8-bit character set. Therefore, I encode the\n output sting into latin-1, which includes Umlauts and other special characters.\n- Storing the number of reviews is fairly low-tech. I create a file for every ASIN,\n which contains the number of reviews. The files are stored in the `/tmp` folder so if your OS does not have this path, you have to either create it or change\n the method `FileName()`\n\nThat's it. [Download the source](../download/amazon.py), install [Python](http://www.python.org), and have fun!\n\n*Share:*\n\n*Follow:* [Follow @ghohpe](https://twitter.com/ghohpe) [SUBSCRIBE TO FEED](../ramblings.rss)\n\n*More On:* [WRITING](/ramblings_writing.html) [INTEGRATION](/ramblings_integration.html) [ALL RAMBLINGS](../ramblings.html)\n\nGregor is a cloud architect and author. He is a frequent speaker on asynchronous messaging,\n IT strategy, and cloud.", "znaku_textu": 13091, "slov": 1968, "odkazu": 54, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/ramblings/57_pipes.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 06:54:06", "sha256": "9577bd0081f944e74564afc8aa8b8109cfd8233ecb51a30b202f6eba6b75f24c", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://architectelevator.com/blog", "http://www.amazon.com/Enterprise-Integration-Patterns-Designing-Addison-Wesley/dp/0321200683", "http://aws.amazon.com/", "http://www.mashupcamp.com/", "http://code.google.com/gme", "http://code.google.com/support/bin/answer.py?answer=71042&topic=12044", "http://pipes.yahoo.com/", "http://www.google.com/search?hl=en&q=link%3Aeaipatterns.com", "http://www.amazon.de/SOA-Expertenwissen-Gernot-Starke/dp/3898644375", "http://www.python.org/", "https://twitter.com/share", "https://twitter.com/ghohpe", "https://leanpub.com/37things"]} {"url": "https://www.enterpriseintegrationpatterns.com/ramblings/58_mashupcamp.html", "titulek": "Mashup Camp - Enterprise Integration Patterns", "h1": "Mashup Camp", "popis": "I attended the first day of Mashup Camp today", "klicova_slova": "", "kanonicka": "", "jazyk": "en_US", "robots_meta": "", "og": {"og:type": "article", "og:locale": "en_US", "og:site_name": "Enterprise Integration Patterns", "og:title": "Mashup Camp", "og:description": "I attended the first day of Mashup Camp today", "og:url": "https://www.enterpriseintegrationpatterns.com/ramblings/58_mashupcamp.html"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Mashup Camp"}, {"uroven": 2, "text": "Vendor Presence"}, {"uroven": 2, "text": "Voice Integration"}, {"uroven": 2, "text": "End User License Agreements"}, {"uroven": 2, "text": "Integration Tools"}, {"uroven": 2, "text": "Enterprise Mashups"}, {"uroven": 2, "text": "Mashup Patterns"}, {"uroven": 2, "text": "More Later"}], "markdown": "Gregor's Ramblings\n\n---\n\n# Mashup Camp\n\nJuly 18, 2007\n\nFind my posts on IT strategy, enterprise architecture, and digital transformation\n at [ArchitectElevator.com](https://architectelevator.com/blog).\n\nI attended the first day of [Mashup Camp](http://www.mashupcamp.com) today. The event took place at the [Computer History Museum](http://www.computerhistory.org), which is actually walking distance from my office. Ironically, the only day in the\n year when something actually happens within walking distance in Silicon Valley it\n had to rain. Oh well. On the upside, my walk took me past the temporary Kwiki Mart.\n\nThis was my first mashup camp so I mostly came to listen and get plugged into this\n community. It's part of my master plan to bring integration ideas to a whole new user\n group. To not embarrass myself completely I authored some [tutorials on Google Mashup Editor and Yahoo! Pipes](http://code.google.com/support/bin/topic.py?topic=12044) to code.google.com.\n\nThe camp drew a good 100 – 150 people, which is a good size for an openspaces unconference.\n Apparently the Mashup University held during the past 2 days drew only about two dozen\n people, which is disappointing. Maybe people are intimidated by the hipster mashups\n crowd or it's impossible to time off from work to learn how to plot your favorite\n bars onto a Google map? Or maybe building mashups has become so easy that there is\n no need for a university? I guess we can only speculate or do a better job advertising\n the event next year.\n\nHere my impressions of day one:\n\n## Vendor Presence\n\nI was impressed and a bit surprised by the number of vendors at the conference. About\n 7 or 8 vendors had setup a table, including the usual heavyweights like IBM, Sun,\n Google (I was hoping for some Yahoo! Pipes folks) as well as mashup pureplays like\n Dapper. The overall feel I got was that the mashup community is a bit confused whether\n they want to be baggy pants wearing renegades scraping data off big corporate sites\n for the greater good of mankind or whether they want to be the next generation of\n VC funded Internet startups. I honestly expected more discussion and sharing as opposed\n to vendor demos, but some of the demos were actually interesting.\n\nI was a little put off by the openkapow guy who claimed that they solved all issues\n of brittleness in HTML screen scraping without being able to say exactly how. The\n demo seemed to use a fully qualified XPath into the DOM node of interest, the slashes\n cleverly replaced with dots. Not so robust. I am sure the tool can do much better\n than that but I did not expect to see that much hand waving and corporate attitude\n at camp. They one-upped this only when someone asked for their competitors to be told\n \"I don't know. Can you name some?\" Come on, dude, this is not MBA Camp but is supposed\n to be a community event. Plus, if you don’t know your competitors you should not be\n running a business in the first place. Well, at least they are making money, which\n after some prompting turned out to be revenue money as opposed to profit money. I\n think the last time we brushed off the difference as a minor detail was in 2000. Besides\n the attitude, though, the tool looked pretty powerful.\n\n## Voice Integration\n\nI noticed a surprising variety of voice integration, possibly spurred by the attendance\n of folks from [Lignup](http://www.lignup.com/). The ability to have your computer call you is intriguing because the system includes\n an IVR voice prompt ability. Hmmm, now I can create my own customer service menus?\n Press \"1\" if you are aggravated, \"2\" if you want to kill the service rep. I think\n voice also has liabilities because it is a synchronous medium (at least if you want\n the interactivity). Also, getting 50 alert e-mails are easier to deal with than 50\n alert calls. Still I like to have the option of integrating voice into my applications.\n Google local voice for example is great and the voice recognition is amazingly good.\n\n## End User License Agreements\n\nMashup Camp partly felt like a graffiti artist convention. The performers know that\n what they do is not quite legal but it is cool. Until they try to make a living off\n it. The issue of Web site end user agreements became most apparent when one of the\n guys decided to use his \"Clipper\" tool to take the Google search page and replace\n the Google logo with the Yahoo! Logo and clip the ads off the results page. To his\n shock, Google had asked him to take down some of these hosted \"services\". While it\n may seem so corporate and anal for people to not allow you to scrape their screens\n we need to remember that some of them pay for the data, so there rarely is a free\n lunch. Even in the dot-com run-up someone paid for all those free services and parties.\n Some of my friends are still writing their $3000 per year capital losses. It'll be\n interesting to see how the issue of data ownership will evolve. Ads in RSS? Micropayments?\n As mashups become more popular (especially the HTML scraping ones) I am certain the\n issue will come up. HTML screen scraping is always going to be controversial because\n sites who like to share their data already provide feeds (e.g., most of the Web 2.0\n crowd or marketplaces like craiglist). The ones who don't, probably don't like you\n to scrape their data off their (probably ad-funded) site. Luckily, inside the enterprise\n this is less of an issue.\n\n## Integration Tools\n\nThe guys from IBM and [SnapLogic](http://www.snaplogic.com/) showed mashup data processing tools that share some similarities with early EAI tools\n (TIBCO MessageBroker comes to mind). Similar to Yahoo! Pipes they allow users to users\n to compose data pipelines that extract, transform, and combine data. The data stream\n is then available in a variety of formats, for example RSS and Atom. The demo combined\n data from SalesForce and Quickbooks.\n\n## Enterprise Mashups\n\nI joined a good discussion on enterprise mashups. This was not a demo but more of\n a brainstorm. We concluded that it is not so simple to distinguish between mashups\n and composite applications. We did compile the following list to help contrast them:\n\n- Mashups: REST/XML, ad-hoc, bottom-up, easy to change, low expectations, built by user\n- Composite Apps: SOA/WS-*, planned, top-down, more static, (too) high expectations,\n built by IT\n\nI think part of the big shift here is that in the past ad-hoc solutions were not integratable\n and integratable solutions were cumbersome to build. Mashups are often built ad-hoc\n but simple protocols like RSS or Atoms allow them to be integrated very easily. One\n person rightly pointed out that enterprise mashups are the Visual Basic macro of the\n Internet age.\n\n## Mashup Patterns\n\nI really enjoyed talking to the guy who build a mashup across Amazon and public library\n Web sites. He keeps a wish list on Amazon and checks the public library to see whether\n they have the book. It was refreshing to hear about some of the actuall issues and\n hurdles he had to overcome (unlike most of the vendors, who make you believe it is\n a piece of cake once you use their tool). For example, Amazon data for books works\n by ASIN, which for books equals the ISBN. As such, it cannot recognize the relationship\n between the same works published in different editions or as book on tape.\n\nAnother interesting hurdle was the fact that you cannot search Amazon by UPC for non-book\n products. However, you can get the UPS once you have the ASIN. To go from UPC to ASIN\n the solution uses Google search. The wide syndication of Amazon data enables a search\n for the UPC and the word \"ASIN\" to include the ASIN in the search results. To minimize\n errors the solution uses the discovered ASIN and retrieves the UPC from Amazon to\n make sure the match is correct.\n\nI think these techniques could make for some more widely applicable mashup patterns:\n\n**Key Translation with Search**\n\nProblem: You have a key but require a different key for a database lookup.\n\nForces: Popular keys are likely to be stored on Web pages in proximity. Getting a\n key translation database will be difficult or impossible\n\nSolution: Search for the key you have and the name of the desired key.\n\nI tried this approach to do perform geocoding. A [simple search for \"San Francisco geo:long\"](http://www.google.com/search?q=san+francisco+geo%3along) yields the following text in the first result **geo:lat=37.759665 geo:long=-122.421509**. A quick check in Google Earth confirms that the coordinates do in fact point to\n San Francisco. Maybe this is a trivial example but it makes we want to try this with\n more types of keys.\n\n**Lookup Confirmation**\n\nProblem: You can find key B from key A but nor the other way around. You have a unreliable\n method to lookup A from B.\n\nSolution: Perform the unreliable lookup from B to A. Then use the precise lookup from\n A to B to make sure you got the right A.\n\nThese patterns could benefit from some more elaboration but I think documenting some\n of the approaches will be useful for mashup developers\n\n## More Later\n\nTime to go to bed to be fresh for another day at camp.\n\n*Share:*\n\n*Follow:* [Follow @ghohpe](https://twitter.com/ghohpe) [SUBSCRIBE TO FEED](../ramblings.rss)\n\n*More On:* [EVENTS](/ramblings_events.html) [ALL RAMBLINGS](../ramblings.html)\n\nGregor is a cloud architect and author. He is a frequent speaker on asynchronous messaging,\n IT strategy, and cloud.", "znaku_textu": 9354, "slov": 1574, "odkazu": 52, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/ramblings/58_mashupcamp.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 06:54:05", "sha256": "ffb7dfcf309f03938aee703abdaf666e279714f00f8179e5ab1f707fb96e18b6", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://architectelevator.com/blog", "http://www.flickr.com/photos/skylinegtr/849893114", "http://www.mashupcamp.com/", "http://www.computerhistory.org/", "http://code.google.com/support/bin/topic.py?topic=12044", "http://www.lignup.com/", "http://www.flickr.com/photos/skylinegtr/847950819/", "http://www.snaplogic.com/", "http://www.flickr.com/photos/skylinegtr/848721152", "http://www.google.com/search?q=san+francisco+geo%3Along", "https://twitter.com/share", "https://twitter.com/ghohpe", "https://leanpub.com/37things"]} {"url": "https://www.enterpriseintegrationpatterns.com/ramblings/59_mashupeai.html", "titulek": "Mashups == EAI 2.0? - Enterprise Integration Patterns", "h1": "Mashups == EAI 2.0?", "popis": "Mashups pull data from different sources, aggregate and transform the data to be used in different contexts", "klicova_slova": "", "kanonicka": "", "jazyk": "en_US", "robots_meta": "", "og": {"og:type": "article", "og:locale": "en_US", "og:site_name": "Enterprise Integration Patterns", "og:title": "Mashups == EAI 2.0?", "og:description": "Mashups pull data from different sources, aggregate and transform the data to be used in different contexts", "og:url": "https://www.enterpriseintegrationpatterns.com/ramblings/59_mashupeai.html"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Mashups == EAI 2.0?"}, {"uroven": 2, "text": "Web 2.0"}, {"uroven": 2, "text": "Google Mashup Editor"}, {"uroven": 2, "text": "Integration. Again. Or Still?"}, {"uroven": 2, "text": "(Yahoo!) Pipes and Filters"}, {"uroven": 2, "text": "VETO and Friends"}, {"uroven": 2, "text": "Something Old, Something New"}, {"uroven": 2, "text": "Down to Earth"}], "markdown": "Gregor's Ramblings\n\n---\n\n# Mashups == EAI 2.0?\n\nJuly 27, 2007\n\nFind my posts on IT strategy, enterprise architecture, and digital transformation\n at [ArchitectElevator.com](https://architectelevator.com/blog).\n\nMashups pull data from different sources, aggregate and transform the data to be used\n in different contexts. EAI solutions pull data from different sources, aggregate and\n transform the data to be used in different contexts. Huh?\n\n## Web 2.0\n\nThe Internet has come a long way, from static HTML pages to online shopping pages\n and photo albums to community-driven sites like MySpace, Digg, del.icio.us, Flickr,\n Twitter and so on. The newer sites fall into the so-called Web 2.0 category, a term\n coined by Tim O'Reilly back in 2003 (time flies!). While it is difficult to define\n Web 2.0 in precise terms, this class of applications usually lives off a network effect\n created by user participation, for example users tagging photos or sharing their bookmarks.\n They also use the Web as a platform to retrieve and share data, often from multiple\n sites. These mashups use lightweight programming models such as JavaScript to pull\n data together and present them to the user in a meaningful way. For example, one such\n mashup pulls a feed of suitable apartments from a listing site and plots them on Google\n Maps. Don't be left behind in Web 1.0!\n\n## Google Mashup Editor\n\n[In a previous post](54_gdd.html) I promised to talk a bit more on Google products, especially now that Google has\n a variety of offerings in the Web 2.0 space. As great as maps are, the Maps API is\n now one of 34 (!) public Google API's and developer tools. Since I've been playing\n with Mashups recently, what would be a better fit than [Google Mashup Editor (GME)](http://code.google.com/gme/)? GME provides a browser based development environment that allows developers to create\n HTML pages, which incorporate data from external sources. My [GME tutorial](http://code.google.com/support/bin/answer.py?answer=71042&topic=12044) on Google Code describes how to build a simple GME application, which uses data from\n my [public Google speaking calendar](http://www.google.com/calendar/embed?src=k6bnejmmglue0r1tsg6bfhnku8%40group.calendar.google.com) (the calendar is a little sparse right now as I am planning my next round of conference\n appearances). Google calendar data is available as an Atom Feed, which can be read\n by GME. My GME application calls the [Google Maps API](http://www.google.com/apis/maps/) to enrich the feed with longitude and latitude data based on the conference location.\n Finally, it [plots the results on a map](http://confmap.googlemashups.com). Not earth shattering, but trying to build this type of application 5 years ago before\n the advent of geocoding, RSS, Atom, and Google maps would been very time consuming\n at best. The presence of standard protocols and powerful tools make this type of integration\n relatively easy.\n\n## Integration. Again. Or Still?\n\nDid I say \"integration\"? Yes, you heard correctly. Nowadays the term \"EAI\" is certainly\n more uncool than anything Web 1.0 but the problems of integration have not gone away.\n Let's look at the GME application I just described from a higher level of abstraction,\n let's say at the level of integration patterns:\n\nLooking at the application from this angle, the solution is made up from a data source\n (the calendar feed), a [Content Enricher](../DataEnricher.html), which access a resource (Google's geocoding database), and a message consumer (the\n GME application). The tutorial uses the Google Maps JavaScript API to perform the\n geo lookup: every time the user selects an entry from the list of conferences, GME\n invokes a short JavaScript to perform the geo lookup. This implementation ties the\n Content Enricher aspect of the solution rather tightly to the display module. Obviously,\n tight coupling is frowned upon in integration land. So let's change it.\n\n## (Yahoo!) Pipes and Filters\n\nThe [integration patterns](../eaipatterns.html) help us decompose the behavior of our solution into individual patterns. Using the\n [Pipes-and-Filters](../PipesAndFilters.html) style, we can implement each pattern as its own component and compose the solution\n from the individual pieces. The composability of the pipes-and-filters approach is\n one of its biggest strengths and hinges on the availability of a universal message\n channel. As we all know, the Internet is not message-oriented (although I [argued before](56_events.html) that it can be considered event-driven), but not all is lost. The most common integration\n point on the Web is XML over HTTP, especially when using standard formats like RSS.\n So could we use RSS as our message channel and compose the solution from independent\n components? [Last time](57_pipes.html) I showed how to use [Yahoo! Pipes](http://pipes.yahoo.com) to extract XML data from Amazon's e-Commerce Service and convert it into an RSS feed.\n Pipes can do a lot more, including geocoding of an incoming RSS feed. In this role\n Pipes enriches the data stream with geo data, i.e. longitude and latitude, and makes\n the enriched stream available as an RSS feed, our universal integration point. Naturally,\n GME applications read geo-enriched RSS feeds and display the data on a map without\n even a single line of code. The new solution looks as follows (sorry for the 90 degree\n rotation):\n\nMy new [tutorial on Google Mashup Editor and Yahoo! Pipes](http://code.google.com/support/bin/answer.py?answer=72765&topic=12044) describes how to build this solution step-by-step.\n\n## VETO and Friends\n\nUsing Pipes in this role reminds me of the [VETO pattern](http://www.google.com/search?hl=en&q=veto+pattern): Validate, Extract, Transform Operate, which is commonly used in EAI and ESB solutions\n (e.g., see [Dave Chappell's description of the pattern](http://webservices.sys-con.com/read/46170.htm)). It sounds like a number of our friends from the EAI world are still useful in the\n world of Web 2.0 and mashups.\n\n## Something Old, Something New\n\nIn my [post about Mashup Camp](58_mashupcamp.html) I speculated that the difference between mashups and composite applications is more\n about the approach than the technology, so it is not surprising that some of the same\n patterns and techniques seem familiar. This fact appears to be confirmed by vendors\n with extensive integration and ETL experience now dabbling in the mashup space (more\n about that next time). While we do not want to sound like the CORBA people in an SOA\n world (\"we built all that 10 years ago!\"), it does mean that some of the old challenges\n are likely to still haunt us. For example, token and ID management can already become\n a challenge for mashups. Semantic mismatches and incompatible data formats are a staple\n of data integration and are not likely to vanish.\n\n## Down to Earth\n\nHowever, I think we learned a few things in the meantime. Because integration is difficult,\n mashups set the expectations lower and are generally less ambitious. They provide\n small, high-value point solutions as opposed to trying to achieve enterprise-wide\n integration nirvana. Moreover, after realizing that syntactic schema definitions à\n la WSDL solve only a very small portion of the semantic mismatch issues, mashups\n put the whole notion if schema aside and just look at an example message. Yahoo! Pipes\n makes this very clear when you use the \"Rename\" module. This module is the equivalent\n of the omnipresent EAI transformation editor. Rather than requiring a schema, the\n module samples the incoming stream and gives you a selection of all fields it saw.\n Is the field required or optional, a string or a number? Pipes does not care much\n because it does not have to. Does this mean schemas and data formats are a dumb idea?\n No, if you are building a B2B integration with your business partners a rigid definition\n of all message formats and protocols (beyond schema) is an excellent idea (hello,\n RosettaNet). Tools like Pipes highlight that the schema approach is a pretty big hammer\n and you can get pretty far with a much smaller hammer, that is also easier to carry\n around.\n\nThe IT world is known for its short memory (and attention span). So let's remember\n what we learned in EAI and not reinvent everything from scratch. Repackaging some\n of the old stuff can be fun and gets attention. In the EAI world I would have never\n written a tutorial explaining how to add two data fields to a message stream...\n\n*Share:*\n\n*Follow:* [Follow @ghohpe](https://twitter.com/ghohpe) [SUBSCRIBE TO FEED](../ramblings.rss)\n\n*More On:* [INTEGRATION](/ramblings_integration.html) [ALL RAMBLINGS](../ramblings.html)\n\nGregor is a cloud architect and author. He is a frequent speaker on asynchronous messaging,\n IT strategy, and cloud.", "znaku_textu": 8757, "slov": 1342, "odkazu": 59, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/ramblings/59_mashupeai.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 06:54:04", "sha256": "e10c1a0ae405fdc04f886225d6d4eadbdf9d66e30efbe5af88b88edb7696015e", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://architectelevator.com/blog", "http://code.google.com/gme/", "http://code.google.com/support/bin/answer.py?answer=71042&topic=12044", "http://www.google.com/calendar/embed?src=k6bnejmmglue0r1tsg6bfhnku8%40group.calendar.google.com", "http://www.google.com/apis/maps/", "http://confmap.googlemashups.com/", "http://pipes.yahoo.com/", "http://code.google.com/support/bin/answer.py?answer=72765&topic=12044", "http://www.google.com/search?hl=en&q=veto+pattern", "http://webservices.sys-con.com/read/46170.htm", "https://twitter.com/share", "https://twitter.com/ghohpe", "https://leanpub.com/37things"]} {"url": "https://www.enterpriseintegrationpatterns.com/ramblings/60_mashupmarket.html", "titulek": "Mashups Tools Market - Enterprise Integration Patterns", "h1": "Mashups Tools Market", "popis": "As I reported from Mashup Camp, an increasing number of vendors play in the mashup space", "klicova_slova": "", "kanonicka": "", "jazyk": "en_US", "robots_meta": "", "og": {"og:type": "article", "og:locale": "en_US", "og:site_name": "Enterprise Integration Patterns", "og:title": "Mashups Tools Market", "og:description": "As I reported from Mashup Camp, an increasing number of vendors play in the mashup space", "og:url": "https://www.enterpriseintegrationpatterns.com/ramblings/60_mashupmarket.html"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Mashups Tools Market"}, {"uroven": 2, "text": "Back-to-Front"}, {"uroven": 2, "text": "Operational"}, {"uroven": 2, "text": "It slices, it dices"}, {"uroven": 2, "text": "Mashup in a box?"}, {"uroven": 2, "text": "More tools"}, {"uroven": 2, "text": "New Mashup Podcast"}], "markdown": "Gregor's Ramblings\n\n---\n\n# Mashups Tools Market\n\nAugust 18, 2007\n\nFind my posts on IT strategy, enterprise architecture, and digital transformation\n at [ArchitectElevator.com](https://architectelevator.com/blog).\n\nAs I [reported from Mashup Camp](58_mashupcamp.html), an increasing number of vendors play in the mashup space. I am obviously not the\n only one who noticed. Dion Hincliffe recently [discussed 17 different mashup tools](http://blogs.zdnet.com/Hinchcliffe/?p=111). Maybe I have an MBA hidden inside me (or 10 years of consulting left some marks),\n but I was temped to conduct my own market segmentation. Gartner would be proud of\n me. Just be aware that my analysis is not meant to be comprehensive and all statements\n carry a 0.5 probability of being right :-)\n\n## Back-to-Front\n\nBeing an old EAI type, one classification that immediately sprung to my mind is the\n separation between adapters, transformation, and presentation. These terms might be\n a little dated but each segment still offers a critical piece of behavior. My \"picture\"\n of the market would look something like this:\n\nMashups are all about data. So let's start with the data sources, i.e. the right hand\n side. Mashups like simple XML data sources, ideally RSS or Atom feeds. These are not\n yet too common in the enterprise, so making data sources available is step one. These\n tools might scrape information off HTML pages (e.g. [Dapper](http://www.dapper.net) or [OpenKapow](http://www.openkapow.com)), or enable more traditional data sources like data bases or enterprise applications.\n In the mashup world these \"adapters\" either produce feeds or allow REST-like requests\n against their data entities.\n\nMashups are also about combining data in interesting ways, for example plotting meeting\n locations on a map, correlating neighborhoods with crimes, and the like. This is the\n domain of transformation and aggregation tools. These tools can enrich incoming data\n streams, extract data from XML documents, or perform more advanced functions such\n as geocoding. [Yahoo! Pipes](http://pipes.yahoo.com) is probably the most prototypical implementation of the transformation layer.\n\nLastly, mashups are about rich user experiences on the client side. Another crop of\n tools makes this feasible without requiring you to know the ins and outs of JavaScript.\n This is where [Google Mashup Editor](http://code.google.com/gme/) and [IBM's QEDWiki](http://services.alphaworks.ibm.com/qedwiki/) play. This segment blurs a little bit with \"generic\" AJAX tools, such as TIBCO's\n General Interface.\n\nOf course the real world is not all black and white. A number of tools span more than\n a single layer. For example, Microsoft's Popfly seems to combine presentation and\n transformation (I don’t have an account yet). Pipes has a default presentation layer,\n which for example plots locations on a map. [Snaplogic](http://www.snaplogic.com) does both data sourcing and transformation.\n\nYou might have noticed that my picture does not include any service providers. These\n are the folks who provide data feeds or services and enable to Web to become a true\n platform. I omitted them because I wanted to focus on tools. Highlights in the provider\n / API space are Amazon, eBay, Google, Yahoo, AOL, and many more. [Programmable Web](http://www.programmableweb.com/apis) listed 498 of them at last count...\n\n## Operational\n\nWith things running in the cloud, functionality is only one half of the equation.\n The (possibly even bigger) half is considered with operational aspects. Is it going\n to scale? Is it secure? Can it survive DDOS attacks? How do I manage a large set\n of these mashups? Such concerns run orthogonal to the division of functionality. The\n only company I have come across in this space is [mashery](http://www.mashery.com/). I am sure there are others (or at least there are going to be).\n\n## It slices, it dices\n\nOf course there are many other ways to segment this market. For example, we see open\n source, free (closed source) software, and commercial vendors. We also see small players\n and the usual heavyweights (Microsoft, IBM, Yahoo, Google etc). We can also distinguish\n newcomers from \"converts\", i.e. companies that shifted their attention from EAI or\n ETL into mashups.\n\n## Mashup in a box?\n\nIn the Web services / SOA world, some of the operational considerations have led to\n the advent of integration and XML appliances (see [my first rambling ever!](01_appliances.html)). Should we expect to see mashup appliances? I think it would be great if I could\n run and manage Pipes on an appliance in my enterprise. The pitch would be analogous\n to the [Google Search Appliance](http://www.google.com/enterprise/gsa): run the service you love from the external cloud inside your enterprise, where you\n have full control, have access to your private data, and make sure your data never\n leaves your network. Anyone willing to fund me?\n\n## More tools\n\nI have a day job, so I have limited time to play with mashup tools (my 20% project,\n perhaps?) High on my list is [IBM's DAMIA](http://services.alphaworks.ibm.com/damia/). I heard the code name used to be \"Mafia\" (Mashup Fabric for Intranet Applications).\n No wonder that didn't make it past the corporate approval. Also, my Core J2EE Patterns\n friends now work at [JackBe](http://www.jackbe.com). I'll need to check out what they are up to -- they have mashup written all over\n them.\n\n## New Mashup Podcast\n\nLastly, my ramblings are a lot more fun if done with the proper accent, ja! My [podcast on mashups in the enterprise](http://google-code-updates.blogspot.com/2007/08/google-developer-podcast-episode-seven.html) is now live on the [Google Code Blog](http://google-code-updates.blogspot.com/). Enjoy!\n\n*Share:*\n\n*Follow:* [Follow @ghohpe](https://twitter.com/ghohpe) [SUBSCRIBE TO FEED](../ramblings.rss)\n\n*More On:* [INTEGRATION](/ramblings_integration.html) [ALL RAMBLINGS](../ramblings.html)\n\nGregor is a cloud architect and author. He is a frequent speaker on asynchronous messaging,\n IT strategy, and cloud.", "znaku_textu": 6015, "slov": 892, "odkazu": 59, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/ramblings/60_mashupmarket.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 06:54:03", "sha256": "0d4ec2b29e6c5e549d4ebfb6d20813067a88b0b22e73d43c2d4e7dfb4c06c594", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://architectelevator.com/blog", "http://blogs.zdnet.com/Hinchcliffe/?p=111", "http://www.dapper.net/", "http://www.openkapow.com/", "http://pipes.yahoo.com/", "http://code.google.com/gme/", "http://services.alphaworks.ibm.com/qedwiki/", "http://www.snaplogic.com/", "http://www.programmableweb.com/apis", "http://www.mashery.com/", "http://www.google.com/enterprise/gsa", "http://services.alphaworks.ibm.com/damia/", "http://www.jackbe.com/", "http://google-code-updates.blogspot.com/2007/08/google-developer-podcast-episode-seven.html", "http://google-code-updates.blogspot.com/", "https://twitter.com/share", "https://twitter.com/ghohpe", "https://leanpub.com/37things"]} {"url": "https://www.enterpriseintegrationpatterns.com/ramblings/61_facebookgarage.html", "titulek": "Facebook Developer Garage - Enterprise Integration Patterns", "h1": "Facebook Developer Garage", "popis": "The Internet is cruel", "klicova_slova": "", "kanonicka": "", "jazyk": "en_US", "robots_meta": "", "og": {"og:type": "article", "og:locale": "en_US", "og:site_name": "Enterprise Integration Patterns", "og:title": "Facebook Developer Garage", "og:description": "The Internet is cruel", "og:url": "https://www.enterpriseintegrationpatterns.com/ramblings/61_facebookgarage.html"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Facebook Developer Garage"}, {"uroven": 2, "text": "Old Dog, New Tricks"}, {"uroven": 2, "text": "Boozemail"}, {"uroven": 2, "text": "Facebook vs. dot-com"}, {"uroven": 2, "text": "Meet a Facebook developer"}, {"uroven": 2, "text": "Not a level playing field"}, {"uroven": 2, "text": "Analytics"}, {"uroven": 2, "text": "Advertiser's Paradise"}, {"uroven": 2, "text": "Ventures"}, {"uroven": 2, "text": "Googlers to Facebookers"}], "markdown": "Gregor's Ramblings\n\n---\n\n# Facebook Developer Garage\n\nSeptember 25, 2007\n\nFind my posts on IT strategy, enterprise architecture, and digital transformation\n at [ArchitectElevator.com](https://architectelevator.com/blog).\n\n## Old Dog, New Tricks\n\nThe Internet is cruel. So you finally made the leap from EAI stone age to become a\n hip mashup developer. Now it turns out you are once again behind the curve. Unless\n you've written your own Facebook app and scored a million or so installs, you are\n just a worm in the dust of the global data superhighway. Join the club.\n\nI decided to make an attempt at running with the cool kids and attended the [Facebook Developer Garage in Palo Alto](http://wiki.developers.facebook.com/index.php/Garage_Calendar#Palo_Alto_August_25.2C_2007_-_Saturday), taking place at Facebooks headquarters, which comes close to being the center of\n the Internet these days. As I walked in (late), Mark Zuckerberg walked off the stage\n after giving his keynote. At least I can give myself another check mark in my \"famous\n people who were closer than 3 feet to me\" list. After a social networking break, the\n next segment included lightning talks by about 8 companies that developed successful\n Facebook applications. Sadly, I was ill prepared (i.e. no pen and paper) and I have\n to replay this from memory.\n\n## Boozemail\n\nA (sober) lady from Renkoo, creators of the Facebook Booze Mail application, explained\n how she runs her app on the [Amazon EC2](http://www.amazon.com/gp/browse.html?node=201590011), the elastic compute cloud. For about $100 / day they get enough resources to support\n a million or so Facebook users. According to her, the machines are not the latest\n models (i.e. on the slow side) but the convenience of having hardware on tap is appealing\n nevertheless. On a side note, it also seems that a good portion of Facebook apps is\n developed in Ruby on Rails.\n\n## Facebook vs. dot-com\n\nAli, [ilike](http://www.ilike.com/)'s CEO explained how their switch to Facebook resulted in more users and hits within\n a matter of weeks. Currently, their original ilike.com Web site dwarfs in comparison\n to their Facebook traffic (total user count is 10,000,000!). A natural concern is\n whether relying on Facebook for you core business (iLike is a money-generating business)\n is a big risk. Ali's take is that you can’t ignore the opportunity, but you can try\n to make your application as independent as possible to reduce risk. It's also important\n to embed yourself in an ecosystem so you do not solely rely on Facebook. For example\n iLike has its own API, partners with Ticketmaster (who, according to Ali, are becoming\n less evil over time) and has other relationships in mind.\n\n## Meet a Facebook developer\n\nJoe and Eric from Quizzes probably scored in the Facebook developer stereotype category\n \"We work from 3 to 3, no boss can tell us otherwise\". They also mentioned that their\n apps target younger females than the ones in the audience. Apparently they have an\n open position for a PR spokesperson...\n\n## Not a level playing field\n\nPart of the public perception of Facebook is that some developer writes a small but\n useful app in his bedroom and becomes famous (and rich) over night, sort of like the\n Internet in 1999. YouRock reminded us that it's not quite like that anymore. During\n their launch they cross-marketed YouRock through their other Facebook applications,\n which include such heavy hitters as Super Wall with 5,000,000+ users. This cross marketing\n boosted their user base to 100k almost overnight, growing quickly to 700k. For new\n players who do not have a Super Wall app to launch of off, this presents a bit of\n a chicken and egg problem. Apparently Rock You now offers other developer cross marketing\n -- for a price.\n\n## Analytics\n\nThe guys who developed Courses highlighted the importance of analytics. You always\n want to know who did what on your app, how they came to you etc. This is one of the\n most fun (and lucrative parts) of running apps on the Internet. You can gather a lot\n of data about your users' behavior and you can use that data to refine your app, increase\n revenue, or gain more users. I run Google Analytics on my site. So far I have only\n determined that I have a lot more traffic Monday through Friday (some of you seem\n to have been leaving work early on Fridays it seems), and that you guys don't click\n on my AdSense ads as often as I'd like you to. The analytics data, did help me, though,\n to cross link parts of my site more effectively (hence the \"recent ramblings' box\n on the right).\n\n## Advertiser's Paradise\n\nSpeaking of advertising. Advertising is all about targeting. The better the target,\n the higher the chances of \"conversion\", meaning the targeted user performs a desired\n action such as buying something, watching a video etc. Facebook users routinely specify\n their sex, date of birth, and city in their profile. Knowing age, sex, and location\n is any advertisers dream. Accordingly, advertising on Facebook can be very lucrative,\n for both the advertisers and Facebook.\n\nOne slide explained the Facebook user base as follows: 1/3 college, 1/3 high school\n and 1/3 old people. I guess I fall into the last category.\n\n## Ventures\n\nOf course the venture capital community would not want to miss this congregation\n of Silicon Valley billionaires in the making. One of them was easily identified by\n wearing the proverbial blue shirt and khakis. I don't think he closed a deal that\n day. Salil was better camouflaged.\n\n## Googlers to Facebookers\n\nLastly, it is a bit of an open secret that a fair number of Googlers now work for\n Facebook. Their office is not far, the food is free as well, and Googlers know the\n importance of joining before the IPO all too well. So it's funny when I can into a\n number of coworkers and had to ask them whether they switched sides or are simply\n attending. For now I am simply attending :-)\n\n*Share:*\n\n*Follow:* [Follow @ghohpe](https://twitter.com/ghohpe) [SUBSCRIBE TO FEED](../ramblings.rss)\n\n*More On:* [EVENTS](/ramblings_events.html) [ALL RAMBLINGS](../ramblings.html)\n\nGregor is a cloud architect and author. He is a frequent speaker on asynchronous messaging,\n IT strategy, and cloud.", "znaku_textu": 6176, "slov": 1005, "odkazu": 46, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/ramblings/61_facebookgarage.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 06:54:02", "sha256": "7115eace640eb041f4889715188b9cbad997a538cb32359e158acb025c018cdb", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://architectelevator.com/blog", "http://wiki.developers.facebook.com/index.php/Garage_Calendar", "http://www.amazon.com/gp/browse.html?node=201590011", "http://www.ilike.com/", "https://twitter.com/share", "https://twitter.com/ghohpe", "https://leanpub.com/37things"]} {"url": "https://www.enterpriseintegrationpatterns.com/ramblings/62_mashupsummit.html", "titulek": "Enterprise Mashup Summit - Enterprise Integration Patterns", "h1": "Enterprise Mashup Summit", "popis": "I attended the Enterprise Mashup Summit last Friday", "klicova_slova": "", "kanonicka": "", "jazyk": "en_US", "robots_meta": "", "og": {"og:type": "article", "og:locale": "en_US", "og:site_name": "Enterprise Integration Patterns", "og:title": "Enterprise Mashup Summit", "og:description": "I attended the Enterprise Mashup Summit last Friday", "og:url": "https://www.enterpriseintegrationpatterns.com/ramblings/62_mashupsummit.html"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Enterprise Mashup Summit"}, {"uroven": 2, "text": "Buzz"}, {"uroven": 2, "text": "Dave Nielsen, StrikeIron"}, {"uroven": 2, "text": "Stefan Andreasen, Kapow"}, {"uroven": 2, "text": "Patrick Chanezon, Google"}, {"uroven": 2, "text": "Oren Michels, Mashery"}, {"uroven": 2, "text": "Sriram Padmanabhan, Lauren Cooney, IBM"}, {"uroven": 2, "text": "Deepak Alur, JackBe"}, {"uroven": 2, "text": "Panel"}], "markdown": "Gregor's Ramblings\n\n---\n\n# Enterprise Mashup Summit\n\nOctober 1, 2007\n\nFind my posts on IT strategy, enterprise architecture, and digital transformation\n at [ArchitectElevator.com](https://architectelevator.com/blog).\n\nI attended the Enterprise Mashup Summit last Friday. It was a small-ish event, with\n about 50 people attending. We saw about 10 presentations, mostly by vendors plus an\n open forum. None of the presentations were too sales-ey, which gave the event a nice\n workshop feel. Given the limited size, it would have been nice to have more time for\n interaction. Here is a quick rundown of my impressions.\n\n## Buzz\n\n**Situational Applications**\n\nThe word of the event was certainly [situational application](http://en.wikipedia.org/wiki/Situational_application). I like the word and it even has a Wikipedia entry already: *A situational application is software created for a small group of users with specific\n needs. The application typically has a short life span, and is often created within\n the group where it is used, sometimes by the users themselves.* The best part about it is that you no longer have to say that you hacked something\n together quickly. Rather, you built a situation application.\n\n**Copy-paste Developer**\n\nThe \"copy-paste developers\" are coming out into the open. After a first copy-paste\n generation built fancy JavaScript-enable web sites, the new generation can manage\n to built actual Web applications. Copy-paste development is a key ingredient into\n making the trend more viral – everyone can participate.\n\n**Creativity with Control**\n\nThis IBM slogan highlights the dilemma corporate IT faces. Enabling end users to build\n situational applications takes a lot of load off IT. On the other hand, without any\n kind of governance a growing repertoire of these applications can become unmanageable.\n\n## Dave Nielsen, StrikeIron\n\nStrikeiron acts as a marketplace for high-value web services, i.e. the ones a business\n would want to pay for, such as sales tax computation, address correction, etc. StrikeIron\n acts as a middleman between service provider and consumer, providing security, metering,\n monetization, reporting, etc.\n\nDave summarized his view of Web 2.0 in three bullet points: more users, more savvy,\n more willing. When the bubble burst, the valuable users did not go away, they just\n became more savvy, meaning they wanted more sophisticated applications than a lot\n of the dot-coms offered. As we have all seen, users are also much more willing to\n contribute personal information etc. This underlines the view that mashups are more\n of a social phenomenon, as opposed SOA being technical phenomenon. Dave illustrated\n his point by comparing pre-bust matchmaker.com, which provided simple multiple-choice\n profiles to match.com, which allowed freeform text and image sharing, to [YouTube](http://www.youtube.com), which hosts more embarrassing videos than we'd like to imagine.\n\nWhen asked about governance, Dave mentioned that he does not see many issues. Mashups\n based on StrikeIron tend to be in departmental, not business critical applications.\n In his view, the full fledged SaaS applications (SalesForce and friends) are leading\n the way there by providing SLA etc. StrikeIron alleviates privacy concerns by assuring\n customers that they do not store data. In general, they try to see to the business\n directly as the IT sales cycle can be 6 months or longer.\n\n## Stefan Andreasen, Kapow\n\nStefan talked to his product suite, which can help scrape data off Web sites and make\n it available as a feed or service. In this realm he distinguishes between *horizontal data*, which is easily available to everyone and *vertical data*, which is more personalized and more difficult to get at. He compared housingmaps.com\n (horizontal) to a more targeted application that might provide school rating for families\n with kids or bars for single people.\n\nTo Stefan, Mashups do not have to use JavaScript, Excel can be a great mashup platform.\n The key ingredients to him are: RIA + Do-it-yourself + Scripting + Content. He compared\n Mashups with traditional applications in a similar way as we did at [Mashup Camp](58_mashupcamp.html):\n\n- Mashups are: opportunistic, data centric, collaborative, web based\n- IT projects are: company wide, controlled, task centric, scalable, high volume\n\nKapow currently sells their software into the enterprise as investment towards future\n mashups. Sample applications include reputation management (e.g., checking blogs for\n mentions of your company) or competitive intelligence (e.g., check competitors' prices\n or monitor retailers' \"out of stock\" situations to estimate how well an item is selling).\n The obvious questions for Stefan were the robustness of the scraping approach and\n the quality of the data. In his view, the business value of data is higher than the\n cost of having to rewrite your application every once in a while, making it viable\n to work with a solution that is a little brittle. Inside the enterprise application\n changes can be managed more easily, making the scraping approach more viable.\n\nThe second major question relates to legality and end user agreements. In my view,\n sites who like to share their data typically provide web services and / or feeds already,\n while sites who do not share their data as a feed typically issue end user agreements\n that prohibit users from scraping and repurposing the data. Stefan has obviously heard\n this question before. One response is the \"guns don't kill people\" attitude, even\n though we learned from the Digital Millennium Act that in the eyes of the government\n \"Software, not people, cracks code.\" Taking another point of view, these tools simply\n automate tasks that companies already execute manually, e.g. by having someone copy\n and paste competitor's prices off their sites. The most convincing scenario is probably\n company internal use, where such concerns do not arise.\n\n## Patrick Chanezon, Google\n\nPatrick gave a nice overview of [Google's offerings for the enterprise market](http://code.google.com/enterprise). Google is becoming an increasingly important platform player, [Google Apps](http://code.google.com/apis/apps/) being the most visible offering. Apps is complemented by a set of APIs, some of which\n are available specifically to enterprise customers, such as [Google Maps for Enterprise](http://www.google.com/enterprise/maps/). Patrick also pointed out it's easier to use effectively more recent products, such\n as Google Gears, inside an enterprise, where a consistent software image can be deployed\n to all users. In true Web 2.0 spirit, Patrick shared his slides and demo material\n on [del.icio.us](http://del.icio.us/chanezon/enterprisemashup2007).\n\n## Oren Michels, Mashery\n\nOren spoke from a vendor who actually makes money in the mashup space. Mashery markets\n primarily to companies who own high value data but have relatively little traffic\n to their Web site. Mashery proposition is to make it fast and safe to expose offerings\n as public web services. For example, [domaintools.com](http://www.domaintools.com)'s API traffic is a multiple of the site traffic. Oren mentioned a photo web site\n that does not currently offer an API and apparently receives 100 requests a day (!)\n to provide one. Mashery runs its servers on Amazon's [EC2](http://aws.amazon.com/ec2).\n\n## Sriram Padmanabhan, Lauren Cooney, IBM\n\nSriram and Lauren shared IBM's Info 2.0 vision: discover, transform, feeds, mashup.\n They underlined the fact that enterprise applications and situational applications\n complement each other. IBM play in the space consists of three elements: Mashup Hub\n for discovery, DAMIA for data processing, and QED Wiki to assemble mashups. More at\n [Lauren's blog](http://jroller.com/cooney).\n\n## Deepak Alur, JackBe\n\nDeepak demo'd the JackBe mashup platform. The [Presto Wires](http://www.jackbe.com/products/index.php) mashup composer offers a composition model similar to [Yahoo! Pipes](http://pipes.yahoo.com) or IBM's DAMIA. Alur sees mahsups as a new layer in the layered software model, resulting\n in Presentation, Mashup, Business, and Integration layers. As co-author of the well-know\n \"Core J2EE Patterns\", Deepak is interested in documenting common mashup patterns.\n He listed the following patterns: invoke service, filter, sort, join, merge data,\n transformation, annotation, for-each, web clipping, scripting.\n\nAt the core of JackBe's mashup server is an XML scripting language, which allows developers\n to define \"services\". These services can be composed into larger services through\n micro-orchestrations.\n\n## Panel\n\nThe event completed with a panel, which was more of an open discussion. This part\n was very interesting -- I wish we had more time for this type of interaction. I wish\n I had taken better notes. For now I have only the questions:\n\n- What tools are available, especially to feed data back into the system (i.e. not read-only)?\n- Application lifecycle management?\n- What implementation tools are available?\n- How do solutions move from the situational/mashup to controlled/enterprise?\n- Do fat client applications have a place or is it all in the cloud?\n- Data security?\n- How to get flexibility while ensuring data quality?\n- Who will be the first CTO who recognizes that opening API's is a good thing?\n- What is driving the need?\n- How do you make money with this?\n\nThe buzz around Web 2.0 can be heard quite clearly in the Bay Area. This weekend we\n have the [Community Next](http://www.communitynext.com/) event, followed next week by the [The Business of APIs](http://www.apiconference.com) event and the [Web 2.0 Summit](http://www.web2summit.com/). It's become difficult to keep track of all the events in the area. Luckily, Web\n 2.0 application like [Upcoming](http://upcoming.yahoo.com/) or [Facebook](http://www.facebook.com) help us manage.\n\n*Share:*\n\n*Follow:* [Follow @ghohpe](https://twitter.com/ghohpe) [SUBSCRIBE TO FEED](../ramblings.rss)\n\n*More On:* [EVENTS](/ramblings_events.html) [ALL RAMBLINGS](../ramblings.html)\n\nGregor is a cloud architect and author. He is a frequent speaker on asynchronous messaging,\n IT strategy, and cloud.", "znaku_textu": 10096, "slov": 1495, "odkazu": 60, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/ramblings/62_mashupsummit.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 06:54:01", "sha256": "7b3772c9144183aa0635f7132b004b349b706cb21634cb25fd3d3c820b4f1654", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://architectelevator.com/blog", "http://en.wikipedia.org/wiki/Situational_application", "http://www.youtube.com/", "http://code.google.com/enterprise", "http://code.google.com/apis/apps/", "http://www.google.com/enterprise/maps/", "http://del.icio.us/chanezon/enterprisemashup2007", "http://www.domaintools.com/", "http://aws.amazon.com/ec2", "http://jroller.com/cooney", "http://www.jackbe.com/products/index.php", "http://pipes.yahoo.com/", "http://www.communitynext.com/", "http://www.apiconference.com/", "http://www.web2summit.com/", "http://upcoming.yahoo.com/", "http://www.facebook.com/", "https://twitter.com/share", "https://twitter.com/ghohpe", "https://leanpub.com/37things"]} {"url": "https://www.enterpriseintegrationpatterns.com/ramblings/63_bubble20.html", "titulek": "Bubble 2.0 - Enterprise Integration Patterns", "h1": "Bubble 2.0", "popis": "What’s wrong with this picture? I crash a stylish party at a pricey venue (SF Moma)", "klicova_slova": "", "kanonicka": "", "jazyk": "en_US", "robots_meta": "", "og": {"og:type": "article", "og:locale": "en_US", "og:site_name": "Enterprise Integration Patterns", "og:title": "Bubble 2.0", "og:description": "What’s wrong with this picture? I crash a stylish party at a pricey venue (SF Moma)", "og:url": "https://www.enterpriseintegrationpatterns.com/ramblings/63_bubble20.html"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Bubble 2.0"}, {"uroven": 2, "text": "MySpace Party Socializing"}, {"uroven": 2, "text": "Web 2.0 Summit"}, {"uroven": 2, "text": "Another Bubble?"}], "markdown": "Gregor's Ramblings\n\n---\n\n# Bubble 2.0\n\nOctober 15, 2007\n\nFind my posts on IT strategy, enterprise architecture, and digital transformation\n at [ArchitectElevator.com](https://architectelevator.com/blog).\n\nWhat’s wrong with this picture? I crash a stylish party at a pricey venue (SF Moma).\n I have no business being there, nor do I have the required invitation. I nonchalantly\n talk my way in, and hit the crowd with two fellow geeks. Within a few seconds an attractive\n blonde with a low cut dress approaches us and engages us in a conversation. We grab\n a few free drinks, indulge on the tirelessly circulating horse d’oeuvres, and talk\n to the blonde.\n\nWhat’s wrong with this picture? That we are a bunch of geeks with no social skills\n and nothing to talk about the last mashup we built. This kind of stuff happens only\n in my dreams or in the 1999 dot-com bubble years. Strangely, though, it also happened\n last night at the MySpace Party. Accompanied by fellow geeks [John Musser](http://www.programmableweb.com) and [Richard MacManus](http://www.readwriteweb.com), I crashed the party and (not very successfully) tried to blend into the mass of\n beautiful people.\n\n## MySpace Party Socializing\n\nIn my frantic attempts to socialize, I did meet [Jyri Engeström](http://jyri.jaiku.com/), [Jaiku](http://www.jaiku.com) co-founder and now fellow Googler. According to his [micro-blog](http://jyri.jaiku.com/), he just found a house in the Mission and is turning 30. Congrats!\n\nWe also exchanged a few words with Oren from [Mashery](http://www.mashery.com), who staged the [Business of APIs](http://www.apiconference.com/) conference earlier in the week.\n\nPeople were expecting MySpace to make a big announcement, but it ended up just being\n a see-and-be-seen event. Earlier that evening, Chris DeWolfe announced that MySpace\n is going to come out with some platform play some time in the future. As if we could\n not have guessed.\n\n## Web 2.0 Summit\n\nI did not attend the actual [Web 2.0 (TM) Summit](http://www.web2summit.com/), partly because I did not want to pay $3000, partly because I missed the registration\n (apparently it sold out in a week), and partly because it’s meant for people who are\n more important than I am. [Programmable John](http://blog.programmableweb.com/) (who got a press pass) lamented that the hallway discussions were not all that interesting,\n most likely because attendees are looking for investment opportunities and do not\n like to share their insights.\n\n## Another Bubble?\n\nGregor’s will-they-let-a-geek-like-me-into-a-hip-party meter indicates that Silicon\n Valley is pumping once again at full pace. A lot of my friends recently received funding\n or are starting new companies. The parties are more extravagant and easier to get\n into. Rent is up. Waiters are getting cockier. Will it be another bubble? I think\n there is a lot of opportunity in Web 2.0 (or whatever we want to call it), but things\n are a bit more sane this time than last. For example, I don’t think my grandma is\n going to invest her life savings again in some fly-by-night dot com.\n\nI also feel better about how these companies are using the Web. It seems that the\n new breed of applications consists of true Web applications, the ones that would not\n be possible without Internet technology. Last time around, people seemed most interested\n in teleporting traditional revenue models onto the Internet (I got my [sock puppet](http://en.wikipedia.org/wiki/Pets.com)). This generation of Internet applications exploits the inherent network effect of\n the Internet, combined with user’s ability to contribute information to the network.\n By now, it’s also proven that advertising-funded revenue models are working.\n\n*Share:*\n\n*Follow:* [Follow @ghohpe](https://twitter.com/ghohpe) [SUBSCRIBE TO FEED](../ramblings.rss)\n\n*More On:* [EVENTS](/ramblings_events.html) [ALL RAMBLINGS](../ramblings.html)\n\nGregor is a cloud architect and author. He is a frequent speaker on asynchronous messaging,\n IT strategy, and cloud.", "znaku_textu": 3991, "slov": 607, "odkazu": 52, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/ramblings/63_bubble20.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 06:54:00", "sha256": "91c81983df8c50b375c755a0bc5240119f095b3eac0b7e8f8efee5228888d281", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://architectelevator.com/blog", "http://www.programmableweb.com/", "http://www.readwriteweb.com/", "http://jyri.jaiku.com/", "http://www.jaiku.com/", "http://www.mashery.com/", "http://www.apiconference.com/", "http://www.web2summit.com/", "http://blog.programmableweb.com/", "http://en.wikipedia.org/wiki/Pets.com", "https://twitter.com/share", "https://twitter.com/ghohpe", "https://leanpub.com/37things"]} {"url": "https://www.enterpriseintegrationpatterns.com/ramblings/64_oopslacss.html", "titulek": "Double-Dipping: OOPSLA and Colorado Software Summit - Enterprise Integration Patterns", "h1": "Double-Dipping: OOPSLA and Colorado Software Summit", "popis": "I am just returning from a trip to Montreal and Keystone, CO for the OOPSLA and Colorado Software Summit conferences", "klicova_slova": "", "kanonicka": "", "jazyk": "en_US", "robots_meta": "", "og": {"og:type": "article", "og:locale": "en_US", "og:site_name": "Enterprise Integration Patterns", "og:title": "Double-Dipping: OOPSLA and Colorado Software Summit", "og:description": "I am just returning from a trip to Montreal and Keystone, CO for the OOPSLA and Colorado Software Summit conferences", "og:url": "https://www.enterpriseintegrationpatterns.com/ramblings/64_oopslacss.html"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Double-Dipping: OOPSLA and Colorado Software Summit"}, {"uroven": 2, "text": "OOPSLA"}, {"uroven": 2, "text": "Kagemusha"}, {"uroven": 2, "text": "Web Service Workshop"}, {"uroven": 2, "text": "Mini PLoP"}, {"uroven": 2, "text": "Colorado Software Summit"}, {"uroven": 2, "text": "Dan Pritchett on eBay Architecture"}, {"uroven": 2, "text": "Adventurous Drive Home"}], "markdown": "Gregor's Ramblings\n\n---\n\n# Double-Dipping: OOPSLA and Colorado Software Summit\n\nOctober 27, 2007\n\nFind my posts on IT strategy, enterprise architecture, and digital transformation\n at [ArchitectElevator.com](https://architectelevator.com/blog).\n\nI am just returning from a trip to Montreal and Keystone, CO for the [OOPSLA](http://www.oopsla.org) and [Colorado Software Summit](http://www.softwaresummit.com) conferences. I spoke on SOA Patterns, workshopped my conversation pattern paper,\n and gave six talks on event-driven architectures and building mashups using Yahoo!\n Pipes and Google Mashup Editor.\n\n## OOPSLA\n\nI only attended the workshop and the Mini-PLoP portion of OOPSLA. In some sense, these\n are often the most interesting portion of the conference. I once joked that if you\n want to guarantee something will fail, you have academics make a plan and have volunteers\n execute it. This is pretty similar to how OOPSLA is run. But strangely, it does work.\n\nThe most interesting part for me was to hang out with some of the more interesting\n people in the industry. Holding the conference in downtown Montreal provided for many\n opportunities to exchange thoughts over a glass of wine in the evenings. A chat on\n functional programming with Erik Meijer was almost worth the trip by itself. Erik\n gave a live demo of Volta, Microsoft's entry into programming Rich Internet Applications.\n Volta allows Internet applications to be developed in C#, generating any necessary\n JavaScript to make it run smoothly in the browser. A key feature is that the programming\n model appears to the developer as if he or she is writing a rich client application.\n During code generation, one can choose whether individual functions execute inside\n the browser or on the server-side. The client invokes server-side functions via XML-HTTP\n calls. Erik also demo'd how to render a rotating 3D tea pot using 30,000
tags.\n I also got to catch up with Martin Fowler, who is feverishly working on another book.\n Stay tuned. It was also good to see [Dave Thomas](http://www.davethomas.net) (the OTI one) again.\n\n## Kagemusha\n\n[Kagemusha](http://en.wikipedia.org/wiki/Kagemusha) is a beautiful movie by Akira Kurosawa. One of the most memorable scenes is at the\n end, when the petty thief, who served as doppelganger for an assassinated feudal lord,\n picks up a flag and runs into the battlefield to his certain demise. This is the image\n that came to my mind when [Max](http://blog.maximilien.com/) started to argue with Erik Meijer about programming languages, trying to convince\n Erik that Ruby is just so much better than anything else. What a bloodshed. Too bad\n I missed Max's next suicide mission when he told Dave Thomas to his face that Erich\n Gamma conceived Eclipse. Ouch!\n\n## Web Service Workshop\n\nI gave a talk on SOA Patterns at the Web services workshop, co-organized by Olaf Zimmermann.\n Olaf is doing his PhD on using patterns to describe architectural decisions and offer\n alternatives (he has a much fancier title, but that's how I understand it). I am usually\n a little skeptical when someone uses patterns in some tool or framework, but Olaf\n brings 10 years of IBM Web services consulting into the mix, so I am curious to see\n the results.\n\n## Mini PLoP\n\nIn the ranking of technical conferences with dorky names, PLoP must rank right behind\n OOPSLA (if you speak German, by far the worst conference name must be [WICSA](http://www.wicsa.net)!). PLoP is the Pattern Languages of Programming \"conference\". It's really a series\n of writer's workshops, which discuss pattern papers. A writer's workshop is a moderated\n session where one author shares a paper to be critiqued by other workshop members\n (typically also authors). The author is not allowed to speak or defend the paper,\n simulating the fact that the paper will have to stand on its own when someone reads\n it outside of the workshop. I workshopped my original [Integration Patterns paper](../docs/Enterprise%20Integration%20Patterns%20-%20PLoP%20Final%20Draft%203.pdf) at PLoP 2002 and received a lot of great feedback from Martin Fowler, John Crupi,\n Brian Marick, and many others.\n\nOf course, a writer's workshop is only as good as the people attending. This time\n I was able to recruit Ralph Johnson and Olaf Zimmermann into my session. I workshopped\n my paper on conversation patterns. It's a little long (45 pages), but I got a lot\n of great feedback, which I will start to incorporate. Hopefully I will have enough\n substance to post the patterns to my site by end of this year.\n\n## Colorado Software Summit\n\nI had to leave OOPSLA Tuesday morning to catch an early flight to Denver. The Colorado\n Software Summit (CSS) is held every Fall in the Keystone Resort, near Breckenridge.\n Apparently, it snowed heavily on the weekend, making for beautiful vistas (and happy\n ski resorts). CSS started as a mailing list of OS/2 users, who helped each other out\n in face of poor documentation. It's now in its 11th year, and the first year I am\n attending as a speaker. I presented on Event-driven Architectures and gave a talk\n on mashups, featuring a live demo using Google Calendar, Yahoo! Pipes, and Google\n Mashup Editor. This talk was result of my observation / complaint after a Google developer\n that no presenter built a solution from scratch. So I put my money where my mouth\n is and prepared a talk that builds a mashup application from scratch. Luckily, the\n connectivity held up and the talk was a big success.\n\nThe Colorado Software Summit has a peculiar format: every speaker gives each talk\n 3 times (meaning 6 sessions for me in total!), giving attendees multiple options to\n see all their favorite talks without running into conflicts. It's a bit tiring for\n speakers, but a great idea. And, towards the end of the conference the talks tend\n to go very smoothly.\n\nThe event was a little smaller than in past years, counting around 250-300 attendees.\n Being in a mountain resort gives the event a very cozy feel, with lots of interactions\n between speakers and attendees. I had the pleasure of meeting Dan, who is famous for\n being the chief implementation officer for the [Dating Design Patterns](http://www.datingdesignpatterns.com/) book. He is married now, so the patterns seem to work.\n\n## Dan Pritchett on eBay Architecture\n\nDan is a technical fellow and shared a ton of detail on [eBay's architecture](http://www.addsimplicity.com/downloads/eBaySDForum2006-11-29.pdf) in a special evening session. Seeing how a site with 248 Million users works is certainly\n interesting. Dan was very open and answered many detailed questions. Here some interesting\n facts (some of them are from a few months ago and likely higher today):\n\n- 1 Billion photos\n- > 1 Billion page views / day\n- 26 Billion SQL queries / day\n- 100 Million items for sale\n- 99.94% availability\n\nHow do they make this happen? Some of the key architectural decisions include a functional\n decomposition of the site across application servers, abstaining from using database\n transactions and foreign key constraints. Asynchronous messaging and even-driven approaches\n contribute to decoupling key systems (billing /search / fraud) and increasing throughput.\n Dan actually attended my EDA talk and was able to provide convincing arguments for\n the use of event-driven architectures. It's nice to see that some people understand\n (and realize) the potential for higher throughput in these architectures when compared\n to synchronous interaction or the dreaded shared database integration. Interestingly,\n Dan also mentioned that changing the architecture to be message-oriented required\n a long series of argument against the incumbent \"architects\". Maybe misery does love\n company, because it made me feel about my many attempts to convince fellow architects\n of the benefits of a message-oriented approach. Maybe there is hope...\n\n## Adventurous Drive Home\n\nOn the way back I collected some [hard data](../img/gpslog.png) towards the suitability of a Mustang for crossing an 11,500 ft mountain pass a few\n days after heavy snow fall (notice the 90 minutes of speed 0 at 11,00 feet). After\n a lot wheel spinning, digging, jacking, and towing, I ultimately managed to reach\n Highway 285, which is famous for leading through [South Park](http://en.wikipedia.org/wiki/South_Park_%28Colorado_basin%29).\n\n*Share:*\n\n*Follow:* [Follow @ghohpe](https://twitter.com/ghohpe) [SUBSCRIBE TO FEED](../ramblings.rss)\n\n*More On:* [EVENTS](/ramblings_events.html) [CONVERSATIONS](/ramblings_conversations.html) [ALL RAMBLINGS](../ramblings.html)\n\nGregor is a cloud architect and author. He is a frequent speaker on asynchronous messaging,\n IT strategy, and cloud.", "znaku_textu": 8644, "slov": 1337, "odkazu": 54, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/ramblings/64_oopslacss.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 06:53:59", "sha256": "2468d39dcc02adf765037850c68db84a9876600cacd0494f3f8f639d08aeb7a5", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://architectelevator.com/blog", "http://www.oopsla.org/", "http://www.softwaresummit.com/", "http://www.davethomas.net/", "http://en.wikipedia.org/wiki/Kagemusha", "http://blog.maximilien.com/", "http://www.wicsa.net/", "http://www.datingdesignpatterns.com/", "http://www.addsimplicity.com/downloads/eBaySDForum2006-11-29.pdf", "http://en.wikipedia.org/wiki/South_Park_(Colorado_basin)", "https://twitter.com/share", "https://twitter.com/ghohpe", "https://leanpub.com/37things"]} {"url": "https://www.enterpriseintegrationpatterns.com/ramblings/65_gears.html", "titulek": "Google Gears Live From Japan - Enterprise Integration Patterns", "h1": "Google Gears Live From Japan", "popis": "Since Google's Developer Day, I have been promising to speak more regularly about Google products", "klicova_slova": "", "kanonicka": "", "jazyk": "en_US", "robots_meta": "", "og": {"og:type": "article", "og:locale": "en_US", "og:site_name": "Enterprise Integration Patterns", "og:title": "Google Gears Live From Japan", "og:description": "Since Google's Developer Day, I have been promising to speak more regularly about Google products", "og:url": "https://www.enterpriseintegrationpatterns.com/ramblings/65_gears.html"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Google Gears Live From Japan"}, {"uroven": 2, "text": "Google Gears – More than offline"}, {"uroven": 2, "text": "It's Open Source, and it's Google"}, {"uroven": 2, "text": "Google Developer Roundtable"}, {"uroven": 2, "text": "A Presentation on Gears in Gears"}, {"uroven": 2, "text": "Questions"}], "markdown": "Gregor's Ramblings\n\n---\n\n# Google Gears Live From Japan\n\nDecember 26, 2007\n\nFind my posts on IT strategy, enterprise architecture, and digital transformation\n at [ArchitectElevator.com](https://architectelevator.com/blog).\n\nSince Google's [Developer Day](54_gdd.html), I have been promising to speak more regularly about Google products. This is a bit\n of a balancing act for me as I want to avoid the slippery slope of becoming a [corporate sock puppet](http://en.wikipedia.org/wiki/Pets.com#The_Pets.com_sock_puppet). I also don't want to neglect my real interest in connected systems, SOA, and asynchronous\n messaging. With the Internet turning into the largest connected system (see my [The Cloud as the New Middleware Platforms](http://qcon.infoq.com/london/tracks/show_track.jsp?trackOID=95) track on at [QCon](http://qcon.infoq.com/london/conference/)), the gap between Web-based technologies and connected systems design has become\n significantly smaller, allowing me to combine interests and Google developer products\n more naturally. Of course, the fact that Google is rolling out new developer products\n and API's around the clock, does not hurt either. What's funny, though, is that my\n first official external Google appearance was staged in the land of the rising sun,\n far far away from Mountain View.\n\n## Google Gears – More than offline\n\nSo it was just a matter of time until I took a closer look at [Google Gears](http://gears.google.com/). While I have no aspiration (or hope) to become [Mr. Gears](http://almaer.com/blog/category/gears), I find Gears to be quite fascinating. Like many new technologies, Gears was a bit\n misunderstood at the beginning. Many people (myself included) equated Gears with offline\n browsing. I think to some extend this image was reinforced through many of the early\n demos, which focused on making all sorts of Web sites (Wikipedia, Google Maps, what\n not) available offline. While this is very tempting (I could not resist but build\n my own offline calendar app in Gears), looking only at offline is a very narrow view\n on Gears.\n\nGears is primarily about enhancing browser capabilities across multiple browser platforms.\n While browsers are very powerful platforms, developers still have to deal with a number\n of deficiencies. It's in Google's best interest to enhance this platform because the\n vast majority of our applications are delivered through the browser. The initial set\n of API's includes the following features:\n\n- caching of resources, such as HTML pages, images, CSS, etc.\n- a local SQLite database\n- a worker pool for background task processing\n\nThese functions are available to JavaScript running inside FireFox, IE, or Safari\n (soon). The function set is well suited to data synchronization for offline applications,\n but storing data and resources in a local database can make even connected applications\n much more responsive. Plus, the resource manager, local database, and worker pool\n are just the initial set of functions. The [Google Gears Wiki](http://code.google.com/p/google-gears/w/list) shows a variety of proposed API's for subsequent versions of Google Gears.\n\n## It's Open Source, and it's Google\n\nThis seems like a good time to point out that [code.google.com](http:// code.google.com) is a little schizophrenic. It's an open source code repository as well as Google's\n developer support site. You could say it is [MSDN](http://msdn.microsoft.com) and [Sourceforge](http://www.sourceforge.net) in one. Likewise, the content related to Gears is split into two distinct parts:\n the [open source project repository](http://code.google.com/p/google-gears/) and the [Google Developer site](http://code.google.com/apis/gears/design.html). It kind of makes sense when you consider that Gears is an open source project (which\n happens to be hosted at code.google.com), but is still considered one of Google's\n supported developer products (so tutorials and documentation are available just like\n for other APIs).\n\n## Google Developer Roundtable\n\nGoogle Japan has been hosting a series of \"developer round tables\" to share information\n about Google API's and developer products with the local community. I like the format\n – it typically consists of a presentation followed by a panel discussion. I stated\n many times that I am a big fan of panels – they provide the kind of interactivity\n that you can't get from a blog. [Roundtable #4](http://googlejapan.blogspot.com/2007/12/4.html) focused on Gears, and I had a chance to take on the presentation slot, which will\n be made available on video. The panel was held in Japanese, so that was off-limits\n for me because people wanted to hear more than \"eki wa doko desuka\", i.e. \"where is\n the train station\". The panel consisted of two Google developers and four invited\n guests, moderated by Naoki-san, a product manager and developer relations manager\n in Japan. Most of the panelists demo'd applications they built in Gears and described\n their experiences building these applications. I really enjoyed this focus on real\n developer experience -- this was definitely not a marketing event! Ichikawa-san, one\n of the Google developers on the panel, showed a demo application that can suggest\n keywords as the user types into an input field, similar to [Google Suggest](http://www.google.com/webhp?complete=1&hl=en). The application is extremely responsive because the application uses a local SQL\n database with a 'LIKE' query clause.\n\n## A Presentation on Gears in Gears\n\nWhen giving a presentation about Google Gears, what would be better than actually\n making a Gears application that renders the presentation? That's what the sample application,\n that comes with Google Gears, does. It reads a text file into the local SQLite database\n and renders the presentation from the database records. On slide 10 of my updated\n [presentation](http://gearspreso.googlecode.com/svn/trunk/p10n.html) you can cache all application resources (e.g., images, JavaScript files, CSS files,\n etc) in the resource manager and run the presentation offline (naturally, following\n this link requires Gears). I demonstrated that feature during the talk by pulling\n the network cable right after synchronizing. Thank god it worked. I hope it shows\n on the video! I uploaded the presentation application with all supporting files to\n the [code.google.com subversion repository](http://gearspreso.googlecode.com).\n\nIn a lucky stroke of genius, a Japanese publisher managed to publish a [book on Gears](http://www.amazon.co.jp/Google-Gears%E3%82%B9%E3%82%BF%E3%83%BC%E3%83%88%E3%82%AC%E3%82%A4%E3%83%89-%E7%99%BD%E7%9F%B3-%E4%BF%8A%E5%B9%B3/dp/477413287X/ref=pd_bbs_sr_1?ie=UTF8&s=books&qid=1198679161&sr=8-1) the very day of the roundtable. Naturally, the book got a bunch of free PR during\n the event. Ito-san from [WebOS Goodies](http://webos-goodies.jp) pointed out that more powerful API's in the browser will lead to less dependence\n on server resources, reducing server cost. This may enable more people to implement\n their dreams to create web applications.\n\n## Questions\n\nThe event also included a Q&A session, giving the audience a chance to pose questions\n directly to the developers or the invited panelists. Of course, it's also useful feedback\n for us to hear what concerns developers. Questions included Google's future plans\n (naturally, the answer is a little vague), especially the relationship to the [offline support coming in FireFox 3.0](http://developer.mozilla.org/en/docs/Firefox_3_for_developers). Google and Mozilla are actually working quite closely, so I don't see much of a\n conflict. Also, Gears is a cross-browser platform API, so it's inherently broader\n in scope than a FireFox only feature. Lastly the FireFox off-line capability does\n not include an actual database that can store and search structured data.\n\nNaturally, attendees were curious about Gears support for mobile applications. It's\n easy to see that Gears' features are particularly interesting in a mobile environment\n where high latency and spotty connections can plague browser applications. With [Android](http://code.google.com/android/) around the corner, I am sure we are bound to hear more about this topic.\n\nDevelopers also pointed out that the Gears API's are relatively low level building\n blocks, making more guidance and advice from Google essential. A recent [article on the Gears Architecture](http://code.google.com/apis/gears/architecture.html) clearly points this direction. This is a topic close to my heart. I want to make\n sure that developing rich and responsive browser apps is not reserved for hard core\n hackers and JavaScript junkies. While the \"competition\" (a good friend of mine, actually)\n has been getting a lot of air time regarding [Democratizing the Cloud](http://channel9.msdn.com/Showpost.aspx?postid=223865), it's equally important for Google to bring Web development to the masses. A little\n voice in my head tells me that there may be some interesting design patterns for these\n types of applications waiting to be documented. [AJAX Design Patterns](http://amazon.com/o/asin/0596101805/ref=nosim/enterpriseint-20) is a good step into that direction, but Gears has fundamentally changed the landscape\n for AJAX development.\n\n*Share:*\n\n*Follow:* [Follow @ghohpe](https://twitter.com/ghohpe) [SUBSCRIBE TO FEED](../ramblings.rss)\n\n*More On:* [EVENTS](/ramblings_events.html) [ALL RAMBLINGS](../ramblings.html)\n\nGregor is a cloud architect and author. He is a frequent speaker on asynchronous messaging,\n IT strategy, and cloud.", "znaku_textu": 9518, "slov": 1332, "odkazu": 66, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/ramblings/65_gears.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 06:53:58", "sha256": "4b85d5a63aba82966c8eace8f7da47a13622677936c13188c15e42f752dcd908", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://architectelevator.com/blog", "http://en.wikipedia.org/wiki/Pets.com", "http://qcon.infoq.com/london/tracks/show_track.jsp?trackOID=95", "http://qcon.infoq.com/london/conference/", "http://gears.google.com/", "http://almaer.com/blog/category/gears", "http://code.google.com/p/google-gears/w/list", "http:// code.google.com/", "http://msdn.microsoft.com/", "http://www.sourceforge.net/", "http://code.google.com/p/google-gears/", "http://code.google.com/apis/gears/design.html", "http://googlejapan.blogspot.com/2007/12/4.html", "http://www.google.com/webhp?complete=1&hl=en", "http://gearspreso.googlecode.com/svn/trunk/p10n.html", "http://gearspreso.googlecode.com/", "http://www.amazon.co.jp/Google-Gears%E3%82%B9%E3%82%BF%E3%83%BC%E3%83%88%E3%82%AC%E3%82%A4%E3%83%89-%E7%99%BD%E7%9F%B3-%E4%BF%8A%E5%B9%B3/dp/477413287X/ref=pd_bbs_sr_1?ie=UTF8&qid=1198679161&s=books&sr=8-1", "http://webos-goodies.jp/", "http://developer.mozilla.org/en/docs/Firefox_3_for_developers", "http://code.google.com/android/", "http://code.google.com/apis/gears/architecture.html", "http://channel9.msdn.com/Showpost.aspx?postid=223865", "http://amazon.com/o/asin/0596101805/ref=nosim/enterpriseint-20", "https://twitter.com/share", "https://twitter.com/ghohpe", "https://leanpub.com/37things"]} {"url": "https://www.enterpriseintegrationpatterns.com/ramblings/66_fouryears.html", "titulek": "Reflecting on Enterprise Integration Patterns - Enterprise Integration Patterns", "h1": "Reflecting on Enterprise Integration Patterns", "popis": "The end of the year is always the time to reflect on the past happenings", "klicova_slova": "", "kanonicka": "", "jazyk": "en_US", "robots_meta": "", "og": {"og:type": "article", "og:locale": "en_US", "og:site_name": "Enterprise Integration Patterns", "og:title": "Reflecting on Enterprise Integration Patterns", "og:description": "The end of the year is always the time to reflect on the past happenings", "og:url": "https://www.enterpriseintegrationpatterns.com/ramblings/66_fouryears.html"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Reflecting on Enterprise Integration Patterns"}, {"uroven": 2, "text": "Pre-Dawn"}, {"uroven": 2, "text": "EIP Shotgun Wedding"}, {"uroven": 2, "text": "PLoP 2002"}, {"uroven": 2, "text": "EnterpriseIntegrationPatterns.com is Born"}, {"uroven": 2, "text": "Lots of Editing"}, {"uroven": 2, "text": "The Book!"}, {"uroven": 2, "text": "Too Much to Say"}, {"uroven": 2, "text": "The World Wild Web"}, {"uroven": 2, "text": "Family"}, {"uroven": 2, "text": "Proud Moments"}, {"uroven": 2, "text": "Integration Patterns in Open Source"}, {"uroven": 2, "text": "Universal Language"}, {"uroven": 2, "text": "What's Next?"}], "markdown": "Gregor's Ramblings\n\n---\n\n# Reflecting on Enterprise Integration Patterns\n\nJanuary 1, 2008\n\nFind my posts on IT strategy, enterprise architecture, and digital transformation\n at [ArchitectElevator.com](https://architectelevator.com/blog).\n\nThe end of the year is always the time to reflect on the past happenings. My friends\n in Japan often send a New Year's card with 12 pictures, each showing the significant\n event during the month. I am not sure something significant related to Enterprise\n Integration Patterns happened each month, but I think it's still nice to reflect a\n little bit on the history and current state of the patterns. After all, the patterns\n have matured from a draft paper to being adopted as the lingua franca for a number\n of open source messaging projects.\n\n## Pre-Dawn\n\nI have been working in integration since the ancient days, when \"EAI\" was still a\n cool term. Even my [very first client project](42_eaidsl.html) was an integration project! I had also used Design Patterns extensively when building\n large applications (I remember it took me a few attempts to understand the [Visitor](http://en.wikipedia.org/wiki/Visitor_pattern) pattern).\n\nWorking with EAI tools of the day, it did not take long for me to figure out that\n [integration is difficult](04_skills.html). Besides building solutions with the tools, I started to focus on best practices\n to help clients better understand the development process and architectural trade-offs.\n When I started working with multiple integration technologies (my company figured\n that someone who knows Vitria should also understand TIBCO), it occurred to me that\n deep beneath the surface (and a pile marketing material) these tools do share similarities.\n There are message queues, transformations, process editors and engines, message metadata,\n routing, and so on. But it had not dawned on me to document some of these insights\n as patterns.\n\n## EIP Shotgun Wedding\n\nThe meeting between integration and patterns happened when Martin Fowler was putting\n the finishing touches on [PofEAA](http://martinfowler.com/books.html#eaa). Kyle Brown from IBM pointed out that enterprise applications often rely on messaging\n (and IBM happens to sell a J2EE container including JMS), and suggested Martin should\n include messaging patterns in his book. Martin, knowing a thing or two about publishing\n books, quickly sensed the dangers of scope creep and decided to stick to patterns\n inside the application (with a few cliff hangers like [Gateway](http://martinfowler.com/eaaCatalog/gateway.html).\n\nWith everyone agreeing on messaging being a relevant, but under served topic, in early\n 2002 Kyle started a series of meetings in [RTP](http://www.rtp.org) to talk about messaging patterns. I remember that on one of our first meetings, North\n Carolina was blessed with very rare snow fall, pretty much crippling all forms of\n transportation. RTP is also the place of the \"shotgun wedding\" (Martin's choice of\n words) between Bobby and myself to take on the task of documenting patterns related\n to asynchronous messaging and enterprise integration.\n\n## PLoP 2002\n\nThe first milestone was the [Pattern Languages of Programming conference](http://www.hillside.net/plop/plop2002/) in summer of 2002. Bobby and Kyle submitted one large paper titled [Patterns of System Integration with Enterprise Messaging](http://www.hillside.net/plop/plop2002/final/woolfbrown2.pdf), while I submitted a paper on [Enterprise Integration Patterns](http://www.eaipatterns.com/docs/Enterprise%20Integration%20Patterns%20-%20PLoP%20Final%20Draft%203.pdf) (it looks like the title ultimately stuck). Together this already accounted for\n some 100 pages of material and 27 + 17 = 44 patterns (with a small amount of overlap).\n Both papers are still available in the [PLoP 2002 Proceedings](http://www.hillside.net/plop/plop2002/proceedings.html). We were lucky enough to have a great set of workshop participants, including Martin\n Fowler, John Crupi, Brian Marick, Ali Arsanjani, and many more.\n\n## EnterpriseIntegrationPatterns.com is Born\n\nAfter we looked at the volume of work contained in the submitted papers, we decided\n (with a lot of nudging from Martin) that the patterns deserve a more permanent home\n on the Internet. Hence, the domain with the long name [www.enterpriseintegrationpatterns.com](http://www.enterpriseintegrationpatterns.com) was born. Because I am a poor typist (and the name is too long), I also registered\n [www.eaipatterns.com](http://www.eaipatterns.com), and Kyle got [www.messagingpatterns.com](http://www.messagingpatterns.com) (we actually \"lost\" that domain to squatters for some time, but it is back in good\n hands now). All domains point to the same content. We now receive a steady stream\n of about a thousand visitors a day.\n\n## Lots of Editing\n\nThe next few months were characterized by a lot of feedback, revisions, and editing.\n Our [revision history](http://www.eaipatterns.com/history.html) captures some of this activity. A lot of discussion also occurred on our [Yahoo! mailing list](http://tech.groups.yahoo.com/group/eipatterns/). The list has been overrun by spammers, but we'll try to clean it up so we can preserve\n this historical record.\n After the \"open\" review, we submitted the manuscript to select reviewers, which included\n Luke Hohmann, David Rice, Richard Helm, and the Silicon Valley Patterns Group. Based\n on the detailed feedback (and to our shock), the manuscript grew from some 400 pages\n to 700.\n\nIncorporating the technical feedback was followed by tedious months of proof reading,\n image editing, and copy editing. That's when Martin Fowler's voice appeared to us\n like Obiwan reminding us that every time you think you are done with the book, there's\n more work left than you did up to that point. Even the force can't help there.\n\n## The Book!\n\nOur lives returned somewhat to normal in summer of 2003 when the final manuscript\n when to the printer. Finally, at OOPSLA 2003 in Anaheim, [Enterprise Integration Patterns](http://www.amazon.com/exec/obidos/ASIN/0321200683/enterpriseint-20) hit the shelves. At the show, we were outsold by Eric Evans' Domain Driven Design,\n but we were still mighty proud to see people actually buy the book. We even got to\n autograph a good handful, much to Martin's astonishment.\n\nOf course, the book has come a long way since then. We have well over 35,000 copies\n in print by now, not counting the international versions. We still look at our [Amazon Sales Rank](http://www.amazon.com/exec/obidos/ASIN/0321200683/enterpriseint-20) every once in a while. We are also most pleased to report that 25 out of 29 reviews\n give us 5 stars. Since feedback is important to us, I even created an [RSS feed for our book reviews](57_pipes.html) using [Yahoo! Pipes](http://www.pipes.yahoo.com). Interestingly, EIP also put on some weight over the years. No, we did not add anything\n (I am busy posting ramblings and Bobby runs a [blog at Developerworks](http://www.ibm.com/developerworks/blogs/page/woolf)), but it's simply the magic of paper weight.\n\n## Too Much to Say\n\nNaturally, as soon as a book goes to the printer, the authors can't think of anything\n else but all the things they would have liked to include in the book. There is always\n more to say than fits in a single book. Thus, in October of 2003, these [Ramblings](../ramblings.html) started. Instead of having a traditional blog, my intention was to have start a collection\n of small \"articles\", which cover relevant topics in the integration space. I was envisioning\n something like my own monthly column. It turns out that I have not even managed to\n post once a month on average, but I think I managed to cover some interesting topics.\n The ramblings is also where we first learned about the [relationship between making coffee and transactions](18_starbucks.html), the rambling that still gets the most hits and was featured in Joel Spolsky's [Best Software Writing](http://www.joelonsoftware.com/articles/BestSoftwareWriting.html).\n\n## The World Wild Web\n\nUnlike most blogs, mine does not allow readers to post of comments. It's not really\n by intention, it's mainly because my blog system is hand-rolled in XSLT (argh!) and\n it was too much work to implement a comment-feature with spam detection and such.\n A full-text RSS feed is also still missing. At least I made my feeds recognizable\n by FireFox.\n\nSpeaking of spam, it's the thing that killed the Enterprise Integration Pattern Wiki.\n As we often point out, patterns are not invented, but harvested from practice. Therefore,\n it seemed great to have a Wiki with a page for each pattern that allows readers to\n add their own experience using the pattern, or even add new patterns. This was quite\n successful for a while – it was great to see people's input on our patterns. For example,\n some readers added implementation tips or words of caution when applying certain patterns.\n Sadly, spam wiped out all topics on the Wiki because I used a standard wiki with no\n spam protection. I think I still have a backup. I hope to be able to find time to\n reinstate at least some of the content.\n\n## Family\n\nOne of the greatest things about writing the book is the group of truly great people\n I met through the work. All of these people are extremely bright, great communicators,\n and simply fun to hang out with. The list of people I met is simply too long to be\n fair to everyone, but I want to rattle a few folks off. Even in the early stages I\n got to meet the folks from the [Silicon Valley Patterns Group](http://c2.com/cgi-bin/wiki/wiki?SiliconValleyPatternsGroup). You'll see their names in the \"Acknowledgment\" section of many, many good books.\n Then of course, I got in close touch with many other popular pattern authors, including\n Ralph Johnson, Martin Fowler, the John Crupi, Danny Malks, Deepak Alur triumvirate,\n the Siemens Gang (Frank Buschmann, Michael Kircher, and many more), and words-do-not-suffice\n folks like Kevlin Henney. The Hillside folks are a group of really neat people, including\n Linda Rising, Joe Yoder, and Brian Foote (the last two of [Big Ball of Mud](http://www.laputan.org/mud/) fame). Of course, patterns are also a popular teaching tool, so I like to connect\n with folks like Uwe Zdun and Schahram Dustdar from the TU Vienna, Wil van der Aalst\n in Eindhoven, folks from the [Enterprise Architecture Center at the TU Berlin](http://www.sysedv.tu-berlin.de/Homepage/SYSEDV.nsf?Open&ID=E9E5D067784BB8DDC1256E0100499F8C&Key=59ZF92&Sel=59ZF92&Lang=de), Gustavo Alonso at the ETH Zurich, and of course [Frank Leymann in Stuttgart](http://www.iaas.uni-stuttgart.de/institut/mitarbeiter/leymann/indexE.php). Frank is a convert from another great group of people, the often underappreciated\n folks who work on standards. Even I have dished out the occasional joke at the standards\n bodies, but they include a long list of very bright folks who truly try to make solution\n development less painful. I certainly can't list everyone, but Frank Leymann (WSFL\n -> BPEL), Satish Thatte (XLANG -> BPEL), [Sanjiva who-can-tell-me-how-many-vowels-his-last-name-has-wins-a-price](http://wso2.com/about/leadership/sanjiva_weerawarana/) (WSDL and many more), John Evdemon (BPEL), [Jean Jacques Dubrai](http://www.ebpml.org/about.htm) (ebXML, WS-CDL) spring immediately to mind. Open source is a major driver of innovation\n these days, so I am very happy to have met many of the great minds behind the most\n significant software movement of the last decade. Again, many omissions, but of course\n the [LogicBlaze / Iona](http://www.logicblaze) folks (James, Bruce), the [Mule team](http://www.mulesource.com/) (Ross, Dan), and the [Interface 21 gang](http://www.interface21.com) (Rod, Rob, Alef, Arjen, Adrian, and many more) have to be near the top of the list\n (it's particularly fun, because on one hand they are fierce competitors, but they\n are also all great guys). Then there are the illustrious personalities like Hani and\n Crazybob, plus the [Fowlbots](http://www.bileblog.org/?p=200), including Paul Hammant, Alsak, Erik, Jon Tirsen, and many more. Oh, I am tired of\n typing (I can’t touch type), so please fill in all the missing folks. I am also too\n lazy to create links to everyone, but I can recommend a decent search engine to do\n the job for you ;-)\n\n## Proud Moments\n\nNew Year is certainly not the time to brag, but I think mentioning proud moments is\n OK. I mean the graduation day type of proud moment. Without a doubt, this must include\n OOPSLA 2005 when [Grady Booch included our book in the list of most significant software patterns books](37_oopsla.html).\n\n## Integration Patterns in Open Source\n\nI often find myself explaining that patterns are more than a solution (the canonical\n example are GOF's *State* and *Strategy* patterns, which have exactly the same solution structure, but very different intents).\n Still, it is quite normal for frequently used patterns to make their way into common\n libraries and platforms. Naturally, a number of our patterns were already implemented\n in messaging middleware before we even documented them. Still, I am very happy that\n a number of (commercial) open source projects have adopted our patterns. The most\n relevant ones (in no particular order are):\n\n- [Mule ESB](http://mule.mulesource.org/display/MULE/Architecture+Guide) , an enterprise service bus running over reliable asynchronous messaging, particularly\n JMS.\n- [Apache Camel](http://activemq.apache.org/camel/enterprise-integration-patterns.html) , a routing engine that can be configured using XML or an embedded DSL. It runs on\n top of various transports, including ActiveMQ.\n- [Spring Integration](http://blog.interface21.com/main/2007/12/14/spring-integration-a-new-addition-to-the-spring-portfolio) , a new component of the popular Spring framework.\n\nIf you know of other open source frameworks that use our patterns, [let me know](../gregor.html).\n\n## Universal Language\n\nEnterprise Integration Patterns is also no longer restricted to English. We already\n have a Russian and Chinese copy out, with a Korean one in the works, and a Japanese\n version under negotiation. If all goes according to plan, EIP will soon be available\n in five languages for you to enjoy.\n\n## What's Next?\n\nPeople sometimes ask whether we'll do a second edition since many of the code examples\n are now also four years old. My prediction is that the chances for a second edition\n are slim. Almost all code examples use languages that are still in very popular use\n (mainly Java and C#) and should compile with the latest versions of the respective\n languages and frameworks. Yes, we are missing out on some neat language features (annotations\n / attributes, generics, etc), but for our small code examples those would not really\n add a whole lot to the pattern. We would be happy to make all code examples available\n in open source, which also allows readers to help maintain or update them. If I ever\n have a spare minute, I'll set that up.\n\nOf course, there are many more integration patterns to be harvested and documented.\n Sadly, my progress on this front is extremely slow (it turns out you can't use [20% time](http://www.google.com/support/jobs/bin/static.py?page=about.html&about=eng) to work on personal book projects). Last year, I held a [workshop in Dagstuhl](http://drops.dagstuhl.de/opus/frontdoor.php?source_opus=828) on conversation patterns, and just last month I workshopped a like titled paper at\n OOPSLA, which documents over a dozen new patterns. With a little luck, we'll be seeing\n some of the new patterns on this site soon.\n\n*Share:*\n\n*Follow:* [Follow @ghohpe](https://twitter.com/ghohpe) [SUBSCRIBE TO FEED](../ramblings.rss)\n\n*More On:* [WRITING](/ramblings_writing.html) [GREGOR](/ramblings_gregor.html) [ALL RAMBLINGS](../ramblings.html)\n\nGregor is a cloud architect and author. He is a frequent speaker on asynchronous messaging,\n IT strategy, and cloud.", "znaku_textu": 15882, "slov": 2348, "odkazu": 81, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/ramblings/66_fouryears.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 06:53:57", "sha256": "6f1e618d3b7ed815c4191cc85ebfbd05fc40076417229d7a2201fe5f5eb7747e", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://architectelevator.com/blog", "http://en.wikipedia.org/wiki/Visitor_pattern", "http://martinfowler.com/books.html", "http://martinfowler.com/eaaCatalog/gateway.html", "http://www.rtp.org/", "http://www.hillside.net/plop/plop2002/", "http://www.hillside.net/plop/plop2002/final/woolfbrown2.pdf", "http://www.eaipatterns.com/docs/Enterprise%20Integration%20Patterns%20-%20PLoP%20Final%20Draft%203.pdf", "http://www.hillside.net/plop/plop2002/proceedings.html", "http://www.eaipatterns.com/", "http://www.messagingpatterns.com/", "http://www.eaipatterns.com/history.html", "http://tech.groups.yahoo.com/group/eipatterns/", "http://www.amazon.com/exec/obidos/ASIN/0321200683/enterpriseint-20", "http://www.pipes.yahoo.com/", "http://www.ibm.com/developerworks/blogs/page/woolf", "http://www.joelonsoftware.com/articles/BestSoftwareWriting.html", "http://c2.com/cgi-bin/wiki/wiki?SiliconValleyPatternsGroup=", "http://www.laputan.org/mud/", "http://www.sysedv.tu-berlin.de/Homepage/SYSEDV.nsf?ID=E9E5D067784BB8DDC1256E0100499F8C&Key=59ZF92&Lang=de&Open=&Sel=59ZF92", "http://www.iaas.uni-stuttgart.de/institut/mitarbeiter/leymann/indexE.php", "http://wso2.com/about/leadership/sanjiva_weerawarana/", "http://www.ebpml.org/about.htm", "http://www.logicblaze/", "http://www.mulesource.com/", "http://www.interface21.com/", "http://www.bileblog.org/?p=200", "http://mule.mulesource.org/display/MULE/Architecture+Guide", "http://activemq.apache.org/camel/enterprise-integration-patterns.html", "http://blog.interface21.com/main/2007/12/14/spring-integration-a-new-addition-to-the-spring-portfolio", "http://www.google.com/support/jobs/bin/static.py?about=eng&page=about.html", "http://drops.dagstuhl.de/opus/frontdoor.php?source_opus=828", "https://twitter.com/share", "https://twitter.com/ghohpe", "https://leanpub.com/37things"]} {"url": "https://www.enterpriseintegrationpatterns.com/ramblings/67_patterns.html", "titulek": "Design Patterns: More than meets the eye - Enterprise Integration Patterns", "h1": "Design Patterns: More than meets the eye", "popis": "Blogging about design patterns seems about as original as blogging about the Java (TM) Programming Language, except for the missing (TM)", "klicova_slova": "", "kanonicka": "", "jazyk": "en_US", "robots_meta": "", "og": {"og:type": "article", "og:locale": "en_US", "og:site_name": "Enterprise Integration Patterns", "og:title": "Design Patterns: More than meets the eye", "og:description": "Blogging about design patterns seems about as original as blogging about the Java (TM) Programming Language, except for the missing (TM)", "og:url": "https://www.enterpriseintegrationpatterns.com/ramblings/67_patterns.html"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Design Patterns: More than meets the eye"}, {"uroven": 2, "text": "An Example: Bed Alcove"}, {"uroven": 2, "text": "Pattern Tooling"}, {"uroven": 2, "text": "Variability Points"}, {"uroven": 2, "text": "Componentization"}, {"uroven": 2, "text": "Patterns are for Humans"}], "markdown": "Gregor's Ramblings\n\n---\n\n# Design Patterns: More than meets the eye\n\nJan 13, 2009\n\nFind my posts on IT strategy, enterprise architecture, and digital transformation\n at [ArchitectElevator.com](https://architectelevator.com/blog).\n\nBlogging about design patterns seems about as original as blogging about the Java\n (TM) Programming Language, except for the missing (TM). However, as I just attended\n a workshop on software service engineering, I realized once again that people from\n different fields have very different notions about the concept and usage of patterns.\n Many workshop attendees raised questions about formalizing patterns, tooling, etc.\n I touched on this subject a tiny bit in a [post from long time ago](16_patternscomponents.html), but I figured that the topic really deserves more attention, especially since to\n me a pattern is so much more than the \"proven solution to a recurring problem within\n a specific context.\"\n\nObviously, there is already a lot of good work out there on this topic. My favorite\n books on the topic of patterns (as opposed to patterns on some topic) are the late\n John Vlissides' [Pattern Hatching](http://www.amazon.com/exec/obidos/ASIN/0201432935/enterpriseint-20) and [Pattern-oriented Software Architecture 5](http://www.amazon.com/exec/obidos/ASIN/0471486485/enterpriseint-20) (aka POSA5) by Frank Buschmann and Kevlin Henney. Martin Fowler has also written\n a [nice article](http://www.martinfowler.com/articles/writingPatterns.html) on what patterns are and aren't. My intent is to give you an abridged version and\n also inject my personal opinion :-)\n\n## An Example: Bed Alcove\n\nEspecially in the academic world, it's easy to get stuck on definitional issues. So\n rather than try to define \"what is a pattern\" I just want to show one and proclaim\n \"This is a pattern.\" Where else to start than with Christopher Alexander? Let's look\n at one of his patterns in detail. I abbreviated it from the original works, but I\n believe all the salient points remain. I also omitted the much discussed diamonds\n and other formatting details as they are not relevant to the point I am trying to\n make.\n\n`-----------------------`\n\n*Patterns for the Smallest Rooms*\n\n**BED ALCOVE**\n\n**Design problem**\n\nBedrooms make no sense.\n\n**Forces**\n\nFirst, the bed in a bedroom creates awkward spaces around it: dressing, working, watching\n television, sitting, are all rather foreign to the side spaces left over around a\n bed. Second, the bed itself seems more comfortable in a space that is adjusted to\n it.\n\n**Solution**\n\nDon't put single beds in empty rooms called bedrooms, but instead put individual bed\n alcoves off rooms with other nonsleeping functions, so the bed itself becomes a tiny\n private haven.\n\n**Related Patterns**\n\nCommunal Sleeping, Marriage Bed\n\nCeiling Height Variety, Half-open Room, Thick Walls\n\n`-----------------------`\n\nThis pattern is taken from Alexander's extensive catalog of patterns, published as\n the book [A Pattern Language](http://www.amazon.com/exec/obidos/ASIN/0195019199/enterpriseint-20) and discusses the placement of a bed in a house. First off, the pattern has a descriptive\n name. The name is important because it allows us to use the pattern easily in a spoken\n or written sentence: \"should we add a bed alcove to our house?\" Since patterns are\n primarily meant for human consumption, enabling humans to embed patterns in their\n natural language is important.\n\nThe pattern is also part of a larger pattern language. It is part of the section *Patterns for the Smallest Rooms*. Patterns do not live in isolation, but are part of a pattern ecosystem or \"pattern\n language.\" Alexander's language is organized from the macro level, discussing cities\n and neighborhoods, down to the micro level, describing where to put your bed or how\n high to make a room's ceiling. The bottom section of the pattern description, Related\n Patterns, links to other patterns in the language. Some patterns are \"earlier\" in\n the language, i.e. apply to a broader scope and are applied before one comes to the\n topic of bed alcoves. Communal Sleeping falls into this category. The second set\n of related patterns, such as Ceiling Height Variety, comes \"later\" in the language.\n If I decide to put a Bed Alcove into my house, I should consider the ceiling height\n next.\n\nTrue to the oft-cited definition \"a pattern is a proven solution to a recurring problem\",\n the pattern starts with a problem statement. Note that the problem isn't \"Where should\n I put my bed?\" which feels more like a design step or decision to be made than an\n actual problem to be addressed. Instead, the problem is that traditional bedrooms\n make no sense. Why not? The forces tell us why. The forces are often described as\n the \"heart\" or the \"meat\" of the pattern. They elaborate the problem and tell us why\n it's difficult to solve. The forces often also explore alternatives and tell us what's\n good or bad about these alternatives. In our case, the forces talk about the notion\n of \"negative space\" and how a bed stuck into a rectangular room results in awkward\n negative space. While that makes sense, it's also somewhat non-obvious. Experienced\n interior designers are very familiar with the notion of \"negative space\", but to many\n people placing beds this may not be the case. Similarly, the notion of coupling and\n cohesion is quite familiar to many experienced (software) engineers and architects,\n but not to everyone hooking software components together.\n\nNext, the pattern presents a solution. First you notice the sketch, which gives us\n a quick impression of the solution. Note that the sketch is not a design specification\n or precise architectural drawing. It's meant for people using the patterns to quickly\n grasp the essence of the solution. It's not something you throw over the wall to a\n builder to be built, but rather something you can use to help the builder understand\n your ideas and preferences.\n\nIn the software world, the discussion often arises whether the solution is a piece\n of code. While the solution is specific enough that someone can implement it based\n on the pattern, it's not meant to be cookie cutter code. A pattern is not a recipe\n or a code repository. Source code can be very useful as an example to illustrate one\n implementation of the pattern in a specific language or platform. But the solution\n itself is usually described with text, in combination with the sketch.\n\nAt this point, it's useful to repeat that the pattern is a lot more than the solution.\n The solution covers the \"what\" and some of the \"how\", but is lacking the \"why\", or\n the motivation for choosing this solution. The solution is specific enough to solve\n the problem and resolve the forces, but generic enough to be applied in a wide variety\n of contexts.\n\nThe solution is usually accompanied by a resulting context, which describes how this\n solution addresses the various forces, the strengths and weaknesses of the solution,\n related patterns, etc. It may also give tips for the actual implementation. I abbreviated\n this section from the above example.\n\n## Pattern Tooling\n\nWhen I speak about patterns to vendors or the academic community, one of the first\n questions is usually about tooling. Tools are (usually rightly so) a key ingredient\n into making software engineering better and more efficient. It's also something people\n pay for, which is not to be neglected. The idea of a patterns tool is typically along\n the lines of an IDE that allows you to create a solution by picking a pattern plus\n maybe some fine-tuning. Such a tool would raise the level of abstraction and improve\n productivity. In the case of the Bed Alcove, such a tool could be a CAD tool that\n allows you to draw the floor plan of the house. Rather than just placing individual\n lines representing walls, the tool would give you ready-made \"pattern\" building blocks,\n such as a Bed Alcove. In principle that's a good idea, and one of the reasons we supply\n a [Visio Stencil for our Enterprise Integration Patterns](../downloads.html).\n\nThere are a few things to watch out for, though. In the case of the EAI Patterns Visio\n stencil, the target environment is a drawing to help humans understand the solution.\n It's not an executable language or specification, or a component framework ([more about patterns and components](16_patternscomponents.html)). A drawing stencil is relatively natural extension of the pattern, but still not\n without problems. First off, the pattern sketch is meant to be just that – something\n that conveys the essence of the pattern, not a precise specification. These sketches\n typically also do not follow a common underlying metamodel. Bed Alcove uses black\n lines to represent walls, other patterns in the same language may use black lines\n to represent roads, studs, or electrical wiring. Another challenge is that clean composition\n of the patterns is not addressed by the sketch. It's fairly natural to \"add\" a Bed\n Alcove to a room, but how to you add Communal Sleeping or Varying Ceiling Height?\n It becomes difficult to claim that this piece of wood and drywall maps back directly\n to a single pattern. Yes, the patterns are in there somewhere, but it's not clear\n which part comes from which pattern, which is usually important for tools, especially\n if we think about round-tripping, a common requirement for software tools. As explained\n in my [earlier blog post](16_patternscomponents.html) the fact that this works relatively well with the EAI Patterns is thanks to the fact\n that the composition is based on the very simple (and strict) pipes and filters architectural\n style.\n\nSo I'd say some tooling for patterns comes fairly natural while other tooling requires\n more thought and effort. The distinguishing factor is often whether the tooling requires\n the pattern to be formalized, a topic that is often also raised when I talk about\n patterns to the academic community.\n\n## Variability Points\n\nWhen talking about pattern tooling, and how patterns can be formalized, the word variability\n point frequently comes up. The idea behind variability points is to distill the common\n elements of a design construct, and separate the elements that still have to be decided\n later during the design process, for example because they depend on the specific platform\n or implementation. A quick stab at identifying some variability points for Bed Alcove\n could be:\n\n- Dimensions: width, depth, height from floor, ceiling height\n- Materials: type of wood, dry wall, brick\n- Colors / finish: paint, wallpaper, decorative elements\n\nThe relevance of variability points lies in the notion that pattern + specific values\n for the variability points yield an (executable) specification. So if I provide all\n the values for the points above, I could in fact hand this over to a builder, come\n back in a week and find my Bed Alcove constructed exactly like I envisioned it. Or\n at least that's the idea.\n\nI generally like the notion of variability points as they help me find abstractions,\n but like to highlight two important limitations. First, a list of variability points\n and the associated tools are less about describing the pattern, but about projecting\n the pattern solution to a specific platform. Nothing wrong with that, but I always\n like to remind people that the pattern is much more then than just the implementation.\n The canonical example in this context are Strategy and State, patterns from GoF, which\n have identical solutions, but obviously quite different intents. I'd say that distilling\n variability points is one thing you can do with (and also without) the pattern, but\n the pattern has enormous value as a design tool without any mention of them.\n\nThe second challenge is whether the variability points can really describe the whole\n solution, or are simply an attempt at shrinking the gap between the pattern and the\n implementation. The Bed Alcove dimensions fare reasonably well here. If I want my\n alcove to be 200 x 120 x 150cm made from wooden stubs covered with drywall and painted\n with paint foo from vendor bar, I am pretty likely to get one that meets these specifications.\n It gets tougher on the decorative elements. Can I specify a \"rustic\" vs. a \"contemporary\"\n look with variability points? If possible, does it make sense to do so or would I\n end up creating more paperwork than it takes to actually build the alcove? Do we have\n a precise enough language to express these implementation details? Imagine trying\n to define variability points for the design of a chair. Some books show hundreds of\n successful chair designs, which have very little in common besides the fact that a\n person can sit on them.\n\nFinding a formal specification that allows the injection of platform-dependent parameters\n is much closer to the domain of [generative programming](http://www.amazon.com/exec/obidos/ASIN/0201309777/enterpriseint-20) than patterns. Patterns can provide some inspiration, kind of like Las Vegas casinos\n are \"inspired\" by Paris or Venice. For a more elaborate description of the gap between\n patterns and formalisms, see Chapter 2 of [POSA 5](http://www.amazon.com/exec/obidos/ASIN/0471486485/enterpriseint-20).\n\n## Componentization\n\nAn immediate follow-up to variability points is usually the notion of componentization.\n The hope is that if I can drive out all the variability points, I can develop a generic\n component, and inject the actual values for the variability points via configuration.\n Voila, I have a (semi-) automated pattern tool. This tool raises the level of abstraction\n from Java or C# source code to patterns and supplied variability points. This can\n work in some circumstances, as demonstrated for example by the [Simple Messaging Toolkit](../downloads.html).\n\nThe closest analogy to componentizing the Bed Alcove is heading to IKEA and picking\n up the \"Sloep\" bed from the shelf, making sure the dimensions match the requirements.\n This can certainly speed up construction, but again we have to remind ourselves that\n Sloep the bed is only loosely related to the pattern. Bed Alcove discusses trade-offs\n of where to place a sleeping location, focusing primarily on human well-being and\n comfort. Sloep is all about inexpensive manufacturing and quick assembly, which certainly\n has value, but in a different context. Bridging the gap between the pattern and the\n component two is valuable, but my fear is that the gap is so big that one is tempted\n to fudge the pattern a bit to make the gap smaller and thus be able to find better\n a tie-in. For example, instead of Bed Alcove, someone who focuses on components may\n be tempted to define the pattern as Bed, the problem as \"Where should people sleep?\"\n ,the forces as \"People like to sleep horizontally\", and the solution as \"Buy Sloep\n the Bed\". Now pattern and parameterized component solution are unified, but in the\n process the pattern has lost most of its value. Where people should sleep is not a\n very interesting design challenge and buying a bed, while recurring, is really not\n a surprising solution. The pattern also no longer forms a vocabulary for design decisions.\n \"Bed\" is a piece of furniture, not a design problem. We don't really need a pattern\n for this.\n\nAgain, I am not saying it can't be done, but too many times I have seen people fall\n into these pitfalls that I am tempted to put more energy into making a good pattern\n and pattern language than to try to componentize the patterns.\n\n## Patterns are for Humans\n\nThe primary purpose of patterns is to help humans understand design problems. Solving\n design problems is generally much more difficult than typing in some code, so patterns\n have enormous value in themselves. Patterns owe their popularity to this value. A\n better hammer can help speed up the construction of a bed, but a pattern helps us\n place the bed in a way that makes us feel comfortable.\n\n*Share:*\n\n*Follow:* [Follow @ghohpe](https://twitter.com/ghohpe) [SUBSCRIBE TO FEED](../ramblings.rss)\n\n*More On:* [PATTERNS](/ramblings_patterns.html) [ALL RAMBLINGS](../ramblings.html)\n\nGregor is a cloud architect and author. He is a frequent speaker on asynchronous messaging,\n IT strategy, and cloud.", "znaku_textu": 16096, "slov": 2575, "odkazu": 50, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/ramblings/67_patterns.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 06:53:56", "sha256": "7c4b379bc649521c72d98c7660876f73f8cc72d044aa178f11c0dc20bdf1a034", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://architectelevator.com/blog", "http://www.amazon.com/exec/obidos/ASIN/0201432935/enterpriseint-20", "http://www.amazon.com/exec/obidos/ASIN/0471486485/enterpriseint-20", "http://www.martinfowler.com/articles/writingPatterns.html", "http://www.amazon.com/exec/obidos/ASIN/0195019199/enterpriseint-20", "http://www.amazon.com/exec/obidos/ASIN/0201309777/enterpriseint-20", "https://twitter.com/share", "https://twitter.com/ghohpe", "https://leanpub.com/37things"]} {"url": "https://www.enterpriseintegrationpatterns.com/ramblings/68_acid.html", "titulek": "Into the Clouds on New Acid - Enterprise Integration Patterns", "h1": "Into the Clouds on New Acid", "popis": "I have been speaking more frequently about cloud computing in recent days", "klicova_slova": "", "kanonicka": "", "jazyk": "en_US", "robots_meta": "", "og": {"og:type": "article", "og:locale": "en_US", "og:site_name": "Enterprise Integration Patterns", "og:title": "Into the Clouds on New Acid", "og:description": "I have been speaking more frequently about cloud computing in recent days", "og:url": "https://www.enterpriseintegrationpatterns.com/ramblings/68_acid.html"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Into the Clouds on New Acid"}, {"uroven": 2, "text": "Google Cloud (or Clout)"}, {"uroven": 2, "text": "AAF – Acronyms Are Fun or Alien Ant Farm?"}, {"uroven": 2, "text": "A New Kind of Drug"}, {"uroven": 2, "text": "Google App Engine: Old or New ACID?"}, {"uroven": 2, "text": "More on Clouds"}], "markdown": "Gregor's Ramblings\n\n---\n\n# Into the Clouds on New Acid\n\nMar 20, 2009\n\nFind my posts on IT strategy, enterprise architecture, and digital transformation\n at [ArchitectElevator.com](https://architectelevator.com/blog).\n\nI have been speaking more frequently about cloud computing in recent days. As SOA\n is becoming a daily reality, I needed to advance to new, still slightly nebulous topic.\n What could be a better fit than cloud computing?\n\nSeriously, cloud computing is an exciting topic. Many of the underlying technologies\n and principles have been around, mostly in distributed systems and systems integration.\n But as so often, it took some time for things to reach a tipping point where cheap\n hardware and storage is just cheap enough and abundant bandwidth is just abundant\n enough to make this a reality for a wide range of developers. Many people (including\n my cynic self) often criticize our industry for being too much driven by fads. Strangely,\n I am finding myself increasingly convinced that it’s the only way the industry can\n really advance. We have so many different technologies on our hands that it’s almost\n impossible to focus, turning us into a collective scatterbrain. In the days of Gigahertz\n processor in every other refrigerator, technically almost anything is possible. But\n it really takes a number of people pulling the same direction for disruptive change\n to happen. The best way for these people to find each other is to collectively jump\n on the latest fad bandwagon. Objects were a big fad: \"created by the people who could\n not grasp structured analysis\" ([Kent Beck](37_oopsla.html)), complete with the usual dose of hype, useless tools, and confusion. Still, we should\n be quite happy objects became mainstream. With this in mind, I decided to jump on\n the cloud computing wagon.\n\n## Google Cloud (or Clout)\n\nGoogle is no newbie (or Noogler, as we like to say) to building large-scale distributed\n systems, so we should have something to say in this topic space. Some of it may not\n even be top-secret. All conspiracy jokes aside (I work on Tokyo, not on the moon base),\n Google has been publishing a wide range of papers on our [research pages](http://research.google.com/pubs/papers.htm). There you can learn about some of the technologies that form the foundation of Google\n computing infrastructure, such as the [Google File System](http://labs.google.com/papers/gfs.html), [Bigtable](http://labs.google.com/papers/bigtable.html), [MapReduce](http://labs.google.com/papers/mapreduce.html), or the [Sawzall](http://labs.google.com/papers/sawzall.htm) log analysis language. And of course we also have a public product in this space,\n namely [Google App Engine](http://code.google.com/appengine). I have spoken about App Engine a few times, as I consider it a very interesting\n and very demo-able product. Alas, giving product demos always carries the danger of\n turning you into the proverbial [corporate sock puppet](http://en.wikipedia.org/wiki/Pets.com#The_Pets.com_sock_puppet). At last year’s JAOO conference Dan North cautioned me after my talk that the hand\n seemed to be inside the sock puppet already, even if it wasn’t quite moving yet. A\n painful image indeed, and a scenario I’d like to avoid. So I prefer to talk about\n App Engine in the proper context of cloud computing, explaining what’s different when\n programming the cloud and how Google builds systems that are almost infinitely scalable.\n\n## AAF – Acronyms Are Fun or Alien Ant Farm?\n\nI always cringe when every self-respecting self-help methodology is based on a dorky\n acronym – from KISS (Keep It Simple, Stupid) to the [ADDIE model of instructional design](http://en.wikipedia.org/wiki/ADDIE_Model) (Analysis - Design - Development - Implementation - Evaluation) or SMART goals (Specific,\n Measurable, Achievable, Realistic, Timed). Of course our industry is equally littered\n with (maybe less cute, but equally dorky) acronyms. And let’s face it; people tend\n to remember only a handful of things from a 45 minute talk, so making things catchy\n can be useful.\n\n## A New Kind of Drug\n\nOne of the most inescapable acronyms in software must be ACID – the Atomic, Consistent,\n Isolated, and Durable property of (database) transactions. These properties form the\n backbone of many a computer system, ensuring a precise, predictable outcome for database\n (and other) operations, having promoted ACID to a sort of axiom of modern computing.\n\nAs I illustrated [quite a while ago](18_starbucks.html), your local coffee shop and many other distributed, high throughput systems have\n chosen to trade off some of these properties in favor of scalability and throughput.\n Instead of coming up with a new acronym to describe the architecture of these systems,\n a very clever person has managed to rebrand the old one with new meaning. ACID now\n stands for:\n\n- A – Associative\n- C – Commutative\n- I – Idempotent\n- D - Distributed\n\nI learned about this catchy “new acid” acronym from Pat Helland’s when we discussed\n his excellent paper on (the demise of) [distributed transactions](http://www-db.cs.wisc.edu/cidr/cidr2007/papers/cidr07p15.pdf). Pat told me he picked it up from Shel Finkelstein from SAP, but we are not sure\n where exactly it originated. The software industry has been chasing reuse so much,\n now here we have a good example of it.\n\nWhile the original ACID properties are all about correctness and precision, the new\n ones are about flexibility and robustness. Being *associative* means that a chain of operations can be performed in any order, the classical example\n being (A + B) + C = A + (B + C) for the associative operator ‘+’. Likewise, we remember\n *commutative* from junior high math as A + B = B + A, meaning an operator can be applied to a pair\n of operands in either direction. Finally, a function is *idempotent* if its repeated application does not change the result, i.e. f(x) = f(f(x)).\n\nWhat does high-school math have to do with cloud computing and distributed systems?\n The new ACID properties give cloud-based systems the necessary flexibility to distribute\n and parallelize operations. As I lectured many times before, distributed computing\n is to a large extent about reducing assumptions. Too many assumptions make systems\n tightly coupled and rigid. Ordering assumptions in particular restrain parallel processing,\n which typically does not respect a global order. Put another way, ordering is the\n prototypical example of state-fulness, but we know that state-lessness is a key property\n of high-throughput systems.\n\nBack to the new ACID, let’s assume I need to process a large set of records to compute\n the sum of a certain elements across all records. I can distribute this operation\n by dividing the input record set into multiple chunks, process each chunk on a separate\n machine, and then aggregate the intermediate results into the final sum. This approach\n works because the sum operator is associative and commutative: I can sum up intermediate\n results for each chunk as they come along. I can then sum up intermediate results\n into the final result. Luckily, many aggregation operations have these properties.\n Computing averages (if you remember how many elements are in each sub-result), computing\n percentiles, statistical samples, etc shares the same properties.\n\nIn the world of distributed systems, idempotency translates to the fact that an operation\n can be invoked repeatedly without changing the result. Some operations, such as reading\n a value or setting a field, are inherently idempotent, while others can be made idempotent\n by using concepts such as [Correlation Identifiers](../CorrelationIdentifier.html). Idempotency is critical in distributed computing to deal with the inherent uncertainty\n between communicating systems. If System A communicates with System B, A is inherently\n uncertain about B’s actual state – it merely makes assumptions about B’s state based\n on the communication it receives. If anything goes wrong, such as no response from\n B, A usually left with two choices: retry the operation or give up. Giving up being\n the appealing of the two, A will be inclined to retry. If the original action was\n in fact processed by B, B now receives a second request for the same operation. Idempotency\n resolves this conundrum by ensuring the repeated request does not have any effect\n beyond the original request.\n\nThe last property, being *distributed* is kind of a truism in cloud computing. Unlike the army, a cloud of one is not that\n interesting. I guess the original author had to find something to make the ACID acronym\n work. After my talk on this topic at [DevSummit in Tokyo](http://www.seshop.com/event/dev/2009/timetable/), Tadayoshi Sato from OGIS challenged me to find a better “D”. I am thinking about\n it…\n\n## Google App Engine: Old or New ACID?\n\nSo where does Google App Engine fit in regards to distributed transactions? App Engine\n uses Bigtable storage under the covers. Bigtable does not support traditional (“old\n ACID”) transactions because transactional guarantees can put a heavy burden on a highly\n distributed data storage model. In case of Bigtable, shedding transactional guarantees\n is not such a big deal because Bigtable also does not support foreign keys or joins.\n After all it’s Big-table, not Big-database.\n\nGoogle App Engine aims to present a programming model that’s familiar to engineers,\n but scales up to enormous scale: \"easy to start, easy to scale\". In order to get\n the latter, we have to make compromises on transactional guarantees. In order to get\n the former, we need to offer developers a convenient storage model that does not simply\n drop the burden of consisting data into the application developer’s lap. The answer\n lies in allowing developers to declare [entity groups](http://code.google.com/appengine/docs/python/datastore/transactions.html) (). Google App Engine supports a richer storage model than out-of-box Bigtable by\n offering object-storage mapping (skipping the relational part). Python entities can\n be persisted into the storage layer based on a primary key. By default, only single\n entity updates are atomic. However, developers can place multiple entities in a single\n entity group, which provides atomic updates along the lines of old-style ACID. The\n trade-off is largely convenience and consistency vs. throughput. Entity groups incur\n a definite cost in a highly distributed environment, so we ask developers to choose\n wisely. Brett Slatkin ’s Google I/O talk on [App Engine performance](http://sites.google.com/site/io/building-scalable-web-applications-with-google-app-engine) does a nice job of explaining the trade-offs.\n\n## More on Clouds\n\nIf you'd like to hear more from me about Cloud Computing, I'll be speaking at [QCon Tokyo](http://qcontokyo.com/) and participating [in a panel](http://www28.cplan.com/cc230/sessions_catalog.jsp?ilc=230-1&ilg=english&isort=&isort_type=&is=yes&icriteria3=hohpe) at [JavaOne](http://java.sun.com/javaone/) in June. As always, you can track my public appearances on my [Talks Page](../talks.html).\n\n*Share:*\n\n*Follow:* [Follow @ghohpe](https://twitter.com/ghohpe) [SUBSCRIBE TO FEED](../ramblings.rss)\n\n*More On:* [DESIGN](/ramblings_design.html) [ALL RAMBLINGS](../ramblings.html)\n\nGregor is a cloud architect and author. He is a frequent speaker on asynchronous messaging,\n IT strategy, and cloud.", "znaku_textu": 11337, "slov": 1704, "odkazu": 62, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/ramblings/68_acid.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 06:53:55", "sha256": "6ed0bb1ff11b0a1cc006c251599939d03c613dea92bb0324da075216bb49366c", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://architectelevator.com/blog", "http://research.google.com/pubs/papers.htm", "http://labs.google.com/papers/gfs.html", "http://labs.google.com/papers/bigtable.html", "http://labs.google.com/papers/mapreduce.html", "http://labs.google.com/papers/sawzall.htm", "http://code.google.com/appengine", "http://en.wikipedia.org/wiki/Pets.com", "http://en.wikipedia.org/wiki/ADDIE_Model", "http://www-db.cs.wisc.edu/cidr/cidr2007/papers/cidr07p15.pdf", "http://www.seshop.com/event/dev/2009/timetable/", "http://code.google.com/appengine/docs/python/datastore/transactions.html", "http://sites.google.com/site/io/building-scalable-web-applications-with-google-app-engine", "http://qcontokyo.com/", "http://www28.cplan.com/cc230/sessions_catalog.jsp?icriteria3=hohpe&ilc=230-1&ilg=english&is=yes&isort=&isort_type=", "http://java.sun.com/javaone/", "https://twitter.com/share", "https://twitter.com/ghohpe", "https://leanpub.com/37things"]} {"url": "https://www.enterpriseintegrationpatterns.com/ramblings/69_googleio.html", "titulek": "Google I/O - Enterprise Integration Patterns", "h1": "Google I/O", "popis": "I guess I am the last person to blog about Google I/O", "klicova_slova": "", "kanonicka": "", "jazyk": "en_US", "robots_meta": "", "og": {"og:type": "article", "og:locale": "en_US", "og:site_name": "Enterprise Integration Patterns", "og:title": "Google I/O", "og:description": "I guess I am the last person to blog about Google I/O", "og:url": "https://www.enterpriseintegrationpatterns.com/ramblings/69_googleio.html"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Google I/O"}, {"uroven": 2, "text": "Eric Schmidt Opening Keynote"}, {"uroven": 2, "text": "Day 1 Keynote"}, {"uroven": 2, "text": "Google Wave"}, {"uroven": 2, "text": "AppEngine From Sparkplug to Drivetrain"}, {"uroven": 2, "text": "Martin Fowler and Rebecca Parsons on App Engine"}, {"uroven": 2, "text": "Bespin"}], "markdown": "Gregor's Ramblings\n\n---\n\n# Google I/O\n\nJune 5, 2009\n\nFind my posts on IT strategy, enterprise architecture, and digital transformation\n at [ArchitectElevator.com](https://architectelevator.com/blog).\n\nI guess I am the last person to blog about Google I/O. I am sure everyone already\n read about Wave and the free Android phone (with 30 day SIM!). I am just now getting\n to write this up on my flight back to Japan, so I’ll give you my personal impressions\n and viewpoints, if you are still interested.\n\n## Eric Schmidt Opening Keynote\n\nGoogle I/O was a huge success, running smoothly with some 4000 attendees (and Android\n phones given out). Eric is hands down one of Google’s most accomplished speaker.\n His speeches tend to be inspiring and thoughtful, even though we tend to wonder afterwards\n what exactly he told us. He chose “It’s time” as his key theme. It’s time that bandwidth,\n available compute power, and simple programming models come together to make Internet\n programming available to a everyone. He spoke on the importance of embracing the Internet\n Programming Model, which is of course close to my heart.\n\nEric also reminded us that innovation is always elsewhere. And he did not bring this\n across as a “your job will go to Usbekishangalore” kind of way, but to remind us of\n the importance of platforms that support this type of innovation by giving global\n and easy access to internet computing platforms.\n\nPeople are tired of complexity. Eric feels that we are just at the beginning of getting\n this (as in the Internet Programming Model) right. You no longer have to pick up a\n book on operating systems and programming interfaces (well, we do have 35-some API’s\n on [code.google.com](http://code.google.com/more)). Instead, you pick and choose, mashing up what you need. You do this in the cloud,\n which takes care of deployment, scaling, and management. I think Eric was spot on\n to remind us how powerful easy access to an amazing set of capability out in the cloud\n really is. People build cool mashups every day, such as telling the user the history\n of a building as you walk down the street.\n\n## Day 1 Keynote\n\nIt’s a tough act to follow Eric. Luckily, Eric and Vic Gotundra have quite different\n personalities, making a diect comparison unlikely. Clearly, Eric gave us the grand\n vision while Vic shows us all the cool products Google has been building. I actually\n wish we had a few sessions explaining how Google views the space (of cloud and Internet\n computing), as well as the role it intends to play in it. As expected, most sessions\n were product focused. But hey, a free phone lets us forgive a lot.\n\nIt took Vic only 30 seconds to make the first snipe at Microsoft: “We underestimated\n the Web” That’s certainly true, but the MS bashing reminds me of JavaOne a few years\n back, where instead of showing innovation in his own backyard, Scott McNealy would\n just ridicule Microsoft. I don’t really come to company A’s event to hear how dumb\n company B is. Maybe I am overly sensitive, but I guess honest feedback counts. And\n we saw where it got Sun.\n\nThe keynote focused on two areas this year:\n\n- HTML5: making the browser a viable platform for killer internet applications.\n- Google Services: giving you access to amazing functionality in the cloud.\n\nVic introduced the increased power of the browser with another Microsoft snipe: Back\n at Microsoft, they could not get adoption for XmlHttpRequest. Then Google Maps came\n along and presented the killer app. I wonder whose job it was to drive adoption back\n then :-) Actually, I think the killer feature of Maps was the panning of pre-rendered\n map tiles, which I don’t think use XmlHttpRequest, but modify the DOM and have the\n browser load the tiles. But I may be wrong. The most interesting comment in this context\n came from Erik Meijer from Meijcrosoft. He revealed that XmlHttpRequest was actually\n snuck into IE as a hack to make Outlook Web Access more responsive. Basically, like\n Gmail! At its day, Outlook Web Access was actually pretty neat. I feel a bit weird\n saying this, but it’s true – Outlook Web Access looked strikingly similar to the desktop\n app. However, Microsoft marketed this only to the Outlook enterprise crowd instead\n of exploiting the feature for broader applications. Maybe they were ashamed of the\n “hack”. So if there is a lesson to be learned: don’t be afraid to exploit hacks to\n the fullest extend if it gives you a killer feature.\n\nBespin got a quick mention as one of the killer HTML 5 apps – a full-blown, responsive\n IDE in a browser (well, at least Firefox). I attended Dion’s session on Bespin later.\n Sign-ups for Google App Engine for Jave (GAE/J) are now wide open – no more wait lists.\n We actually saw some live coding for the App Engine demo. In my opinion, live coding\n in a keynote takes some guts, and makes for a great dynamic. Interestingly, in a conversation\n with Martin Fowler, Martin expressed that to him the value of a live demo is pretty\n small. I think he said that before the Wave demo :-) Maybe it’s the switch from PowerPoint\n (or Presently), which makes live coding appealing to me. I also like seeing something\n built from scratch to appreciate what it really takes, as opposed to having pre-made\n demos that may obscure the core of what the product does behind a lot of CSS and other\n machinery. Martin’s valid counter point is that it’s quite possible to explain cause\n (as in developer effort) and effect (as in product feature) without a live demo.\n\nBack to the keynote, the next announcement belonged to Google WebElements. These elements\n allow you to easily embed Google gadgets, such as calendars, discussions, or presentations\n into any web page. Kind of like iGoogle without the “i”. Copy-Paste development for\n the Internet. We did notice, though, that despite the apparent copying and pasting,\n the presenter was taking some shortcuts in the “live” demo. I can’t blame him too\n much – if you are given a 3 minute slot in a keynote, maybe you do not want to wait\n for your app to deploy with every change.\n\nThe demos went very smoothly and were well rehearsed, but it felt a bit like JavaOne\n in 2000 – “look, we can have things move inside the browser.” In a funny coincidence,\n during the JavaOne keynote the Sun folks re-ran one of the original “rotating molecules”\n Applet demos. I think we are all happy that this is now possible using HTML 5 instead\n of Java applets.\n\n## Google Wave\n\nThe second day keynote was all about [Google Wave](http://wave.google.com), Google’s amazing new collaboration / document platform. This project was kept secret\n inside Google for some year-and-a-half (ticking off many people), so it’s cool to\n see the audience’s reaction. After an hour and a half of live demo, Lars and his team\n received a standing ovation. Wave is equally innovative and ambitious. As already\n described my many, it’s a combination of communication, collaboration, and document\n management. It’s a very interesting concept to see a conversation embedded in a document.\n You can play back this conversation over time later. The playback even applies to\n gadgets like a chess game. I am guessing that the internal model is that of an [event-sourced application](http://martinfowler.com/eaaDev/EventSourcing.html), which can recover the state at any point in time by replaying the sequence of events.\n\nI believe making time a first class citizen has a number of powerful applications.\n For example, we have seen how being able to dynamically rewind time on a source code\n repository gives you valuable insights into the code evolution. One of the most difficult\n things in software is to unearth the intention and motivation. From the code we can\n easily see what was done, but it’s much harder to ascertain why it was done. That’s\n why comments such as “Loops over all values and adds them up” are so meaningless.\n\nLars admitted that the near real-time concurrent editing was the hardest feature.\n It’s certainly great for meeting notes. The spell checker was impressive. It’s context\n aware, so it can turn “icland is an icland” into “Iceland is an island.” Wave is\n an open platform, with a published waveprotocol.org. Alas, according to Lars the external\n API’s are *almost* same as the internal ones. Kinda like Microsoft Windows .\n\nOne of the many neat features of Wave is that you can create robots, who can participate\n in a wave much like humans do. These robots can be built using Google App Engine,\n by virtue of an [AbstractRobotServlet](http://wave-robot-java-client.googlecode.com/svn/trunk/doc/com/google/wave/api/AbstractRobotServlet.html) class. The honors for the first third-party robot must go to uebersmart ThoughtWorks\n developer Ola Bini, who demo’d his [iokebot](http://github.com/olabini/iokebot) in an [afternoon session](http://code.google.com/events/io/sessions/JrubyAppEngineJava.html), only a few hours after Wave was announced. My plan was to demo App engine at JavaOne\n by writing a JavaLawyer robot, which replaces every occurrence of “Java” with “Java(TM)-based\n Technology” Unfortunately (or luckily for my relationship with Sun), I was not able\n to get a Wave account in time.\n\n## AppEngine From Sparkplug to Drivetrain\n\nGoogle engineer Alon Levi shared some of the internal App Engine architecture in his\n talk, [AppEngine From Sparkplug to Drivetrain](http://code.google.com/events/io/sessions/FromSparkPlugToDriveTrain.html). A good portion is what you’d expect from high-performance Web app: separate database\n servers and app servers. Then scale out to multiple app servers and load balance across\n them. DNS round-robin as a load balancing mechanism is slow, so use a reverse proxy.\n Serve static content separately because it’s stateless and does not require an app\n server\n\nOn the database end, master-slave replication is a common technique. This scales\n reads, but not writes. As a next step, you can partition, or “shard” the data by spreading\n it across multiple database instances. But this requires a good amount of management\n on the side of the application. If data spans multiple partitions, the application\n has to deal with being able to perform joins, manage transactions, etc. across shardss.\n The next step is to move to a non-relational, but highly scalable and distributed\n storage infrastructure, aka Bigtable. On the front-end, external traffic hits the\n nearest Google data center and is then routed on the internal Google network. Google\n App Engine currently handles some 140M pageviews per day on this configuration, and\n I am sure it can go a lot higher.\n\n## Martin Fowler and Rebecca Parsons on App Engine\n\nMartin Fowler was one of the invited third-party speakers. I am expecting that as\n Google I/O and Google’s developer community grow, we’ll see more third party talks\n at Google events. Martin gave a balanced view of the pros and cons of App Engine.\n Of course, deploying Java servlet apps into the cloud with the push of a button is\n unbelievably powerful. But there are also some limitations: the App Engine JVM is\n not 100% complete and has some holes, for example you cannot start new threads. Martin\n agrees that this is the right decision, but in the near term it means that you can’t\n use libraries that use threads unless they are open source and you (or someone else)\n rewrites them. Actually, at JavaOne someone commented that the Spring framework does\n not run on App Engine, but when I pinged Rod Johnson, he thought otherwise (and he\n would know). Spring is a fairly substantial framework, so it may be that some portions\n don’t run on App Engine. The good news is that as App Engine becomes increasingly\n popular, we can expect most Java-based open source projects to be modified to run\n on it.\n\nMartin also highlighted that the local App Engine server, which is part of the SDK,\n is not an exact clone of server-side framework. For example, it’s missing the implementation\n of Google services, such as mail. Lastly, Martin is suspicious about the mapping of\n the non-relational Bigtable data store to an object model via JDO / JPA. This is no\n surprise given the many different object-relational mapping frameworks, each of which\n has its own quirks and limitations. In Martin’s opinion, the underlying model tends\n to leak, especially if your application is performance sensitive. I guess the presence\n of explicit index tables in the App Engine config file is an example of such leakage.\n But I think that such mappings can make your life much easier, as long as you understand\n the limitations and assumptions baked into the mapping layer.\n\n## Bespin\n\nEx-Googler and now Mozilla tools hacker Dion Almaer and Ben Galbraith [showed off Bespin](http://code.google.com/events/io/sessions/BespinOpenWeb.html), a browser based code editor that pushes the envelope of what’s possible in today's\n (or tomorrow's) browsers. These guys hit a home run by exploiting my weakness for\n live coding on stage. They set out to build a minimal text editor using JavaScript\n and an HTML 5 canvas element. From scratch. They feel that the Ajax libraries, e.g.\n Dojo etc, are donem so it’s time to move on to the next sexy thing, HTML5. They are\n not shy about exploiting the fact that Web developers tend to use a smaller set of\n browsers, so they don’t need to support Internet Explorer. Apparently, it is possible\n to get HTML 5 Canvas behavior into IE with a bridge or ActiveX. Yahoo Pipes apparently\n uses this for its smooth UI. In the same vein of making time a first class citizen,\n Bespin also allows you (or will allow you) to play back changes made to the code base\n over time. This way you can replay how other developers work. It could be quite exciting\n to see how rockstar developers create their open source code.\n\nSadly, I was too sick to attend many sessions on Day 2. But it's fair to say that\n this was the biggest and most successful Google I/O so far. Judging from the mood\n at JavaOne this year, Google I/O may indeed become a more relevant conference than\n JavaOne. I think the key points will be to branch out beyond Google speakers and to\n attract enterprise developers in addition to the Internet wiz kids. And it'll be tough\n to satisfy the crowd next year after giving out a free phone to every attendee this\n year.\n\n*Share:*\n\n*Follow:* [Follow @ghohpe](https://twitter.com/ghohpe) [SUBSCRIBE TO FEED](../ramblings.rss)\n\n*More On:* [EVENTS](/ramblings_events.html) [ALL RAMBLINGS](../ramblings.html)\n\nGregor is a cloud architect and author. He is a frequent speaker on asynchronous messaging,\n IT strategy, and cloud.", "znaku_textu": 14690, "slov": 2404, "odkazu": 51, "kodovani": "windows-1250", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/ramblings/69_googleio.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 06:53:54", "sha256": "dc621f8a9940aca7d58c825d58b4f38ad54bb5dc269c86d8ed94f43ef2b2009c", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://architectelevator.com/blog", "http://code.google.com/more", "http://wave.google.com/", "http://martinfowler.com/eaaDev/EventSourcing.html", "http://wave-robot-java-client.googlecode.com/svn/trunk/doc/com/google/wave/api/AbstractRobotServlet.html", "http://github.com/olabini/iokebot", "http://code.google.com/events/io/sessions/JrubyAppEngineJava.html", "http://code.google.com/events/io/sessions/FromSparkPlugToDriveTrain.html", "http://code.google.com/events/io/sessions/BespinOpenWeb.html", "https://twitter.com/share", "https://twitter.com/ghohpe", "https://leanpub.com/37things"]} {"url": "https://www.enterpriseintegrationpatterns.com/ramblings/70_wave.html", "titulek": "My First Google Wave Robot - Enterprise Integration Patterns", "h1": "My First Google Wave Robot", "popis": "By now everyone must have heard about Google Wave, the communication and collaboration platform announced at Google I/O", "klicova_slova": "", "kanonicka": "", "jazyk": "en_US", "robots_meta": "", "og": {"og:type": "article", "og:locale": "en_US", "og:site_name": "Enterprise Integration Patterns", "og:title": "My First Google Wave Robot", "og:description": "By now everyone must have heard about Google Wave, the communication and collaboration platform announced at Google I/O", "og:url": "https://www.enterpriseintegrationpatterns.com/ramblings/70_wave.html"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "My First Google Wave Robot"}, {"uroven": 2, "text": "Wave Robots"}, {"uroven": 2, "text": "A Text Replacement Robot"}, {"uroven": 2, "text": "DLL Hell has Many Faces"}, {"uroven": 2, "text": "The Shortcuts Robot"}, {"uroven": 2, "text": "Robot Gotchas"}, {"uroven": 2, "text": "Robot Profile"}], "markdown": "Gregor's Ramblings\n\n---\n\n# My First Google Wave Robot\n\nAugust 1, 2009\n\nFind my posts on IT strategy, enterprise architecture, and digital transformation\n at [ArchitectElevator.com](https://architectelevator.com/blog).\n\nBy now everyone must have heard about [Google Wave](http://wave.google.com), the communication and collaboration platform announced at Google I/O. Google [just announced](http://googlewavedev.blogspot.com/2009/07/google-wave-updates-from-todays.html) that they are ramping up towards 20,000 developers on the current sandbox and will\n extend to 100,000 users by end of September. This will give many more people to opportunity\n to experiment with Wave.\n\nOne of the key features of Wave is its extensibility. For example, you can create\n robots, which can participate in waves just like humans do (that is once they are\n invited in). As I hinted [last time](69_googleio.html), I intended to build a \"make the Sun lawyers happy\" robot, which would replace any\n mention of \"Java\" with the preferred version of \"Java(TM)-based technology\". Alas,\n I was not able to get it working in time for JavaOne. So I took advantage of the [Tokyo Wave Hackathon](http://atnd.org/events/1091) organized by the [Tokyo Google Technology User group](http://groups.google.com/group/tokyo-gtug/) to receive some debugging aid and get my robot working.\n\n## Wave Robots\n\nWave has two primary extension mechanisms, gadgets and robots. Gadgets are embedded\n inside a wave and run inside the browser client. Robots are automated wave participants,\n which can edit text, add new blips, etc. Time for a super-quick Wave vocabulary lesson:\n interaction between participants happens through waves (think \"discussion thread++\"),\n which contain wavelets made up of blips. In a traditional e-mail thread, a blip would\n correspond to a single e-mail post.\n Unlike gadgets, robots are hosted externally and can be invited to a wave just like\n a human user. Currently, all robots are hosted via Google App Engine at [appspot.com](http://www.appspot.com), but I hear that restriction is going to be lifted in the future. Since I am a back-end\n kind of guy (and my JavaScript skills are very crude), I decided to write a robot.\n\nWriting robots is relatively simple thanks to the [Wave Robot API](http://wave-robot-java-client.googlecode.com/svn/trunk/doc/index.html), which was just [open sourced](http://code.google.com/p/wave-robot-java-client/source/browse/). App Engine (for Java) works with servlets, so it's natural that the API provides\n a servlet base class, [AbstractRobotServlet](http://wave-robot-java-client.googlecode.com/svn/trunk/doc/com/google/wave/api/AbstractRobotServlet.html). Your own servlet inherits from this base class and gains access to methods that\n check for different event types and read or modify the wave's blips. Of course, the\n App Engine servlet as access to all the other App Engine API's, such as persistence\n through JPA or JDO.\n\nA robot cannot simply call Wave or read a wave. It has to be explicitly invited by\n a user first. The robot name is currently derived from the App Engine name, meaning\n your servlet at `xyz.appspot.com` will be known to the wave sandbox as `xyz@appspot.com`. Once invited into a wave conversation, the robot reacts to events issued by wave,\n such as the addition of a new participant or the submission of a new blip. Each robot\n exposes a `capabilities.xml` file, which describes the events that the robot would like to listen to.\n\n## A Text Replacement Robot\n\nMy robot's task is to replace text, particularly occurrences of \"Java\" with \"Java(TM)-based\n technology. Playing an existing wave back through the cool Playback feature shows\n what the robot did to the sentence containing Java (it also played with the number\n of \"o\"s in \"Google\"):\n\nSince I like building software in small iterations, I started with a simple, hard-coded\n replacement. Whenever a blip with the word \"Java\" is submitted to a wave, which the\n robot listens to, the robot will replace this particular text. Any robot needs a `capabilities.xml` file, so I start there. The [Wave Robot Overview](http://code.google.com/apis/wave/extensions/robots/index.html) shows an example file, but forgets to list all allowable capabilities. I assume they\n match the names of the constants in [EventType.java](http://wave-robot-java-client.googlecode.com/svn/trunk/doc/com/google/wave/api/EventType.html). I did not see a statement as to whether casing matters, so I'll stick with the lowercase\n from the sample. Details, details – what do I expect from living on the bleeding edge?\n (note: it seems that in fact casing does not matter) Our robot only needs to subscribe\n to a single event, `blip_submitted`, which is triggered whenever a blip is submitted (duh!). Many robots are more eager\n and subscribe to `document_changed`, which is invoked as a user types. For now, I am happy to wait for the robot to kick\n in once the blip is \"done\". The `capabilities.xml` file, deployed under the relative path `/_wave` looks as follows:\n\n```\n\n\n \n \n \n 0.33\n\n```\n\nThe servlet itself is relatively simple. It inherits from the `AbstractRobotServlet` base class and overrides the `processEvents` method:\n\n```\npublic class WaveServlet extends AbstractRobotServlet {\n\n@Override\npublic void processEvents(RobotMessageBundle events) {\n if (events.wasSelfAdded()) {\n Wavelet wavelet = events.getWavelet();\n Blip blip = wavelet.appendBlip();\n TextView textView = blip.getDocument();\n textView.append(\"Trademark Bot listening...\");\n return;\n }\n\n List submittedEvents = events.getBlipSubmittedEvents();\n for (Event e : submittedEvents ) {\n Blip blip = e.getBlip();\n if (!blip.getCreator().equals(\"your robot\")) {\n TextView textView = blip.getDocument();\n replaceWords(dictionary, textView);\n }\n }\n}\n```\n\nThe method responds to two types of events: WAVELET_SELF_ADDED and BLIP_SUBMITTED.\n We did not actually subscribe to the former, but it arrives by default whenever the\n robot is added to a wave. In response, the robot appends a new blip and populates\n the blip text with a simple greeting. The \"meat\" of the robot is in the remainder\n of the method, which loops over each submitted blip. If the blip is not submitted\n by this robot (trying to stay out of infinite loops), it replaces occurrences of words\n based on a dictionary. I hacked this together really quickly, so the algorithm replaces\n only the first occurrence of each word, so don't repeat yourself too much. I guess\n should have written a test first.\n\n```\nfinal static Map dictionary = new HashMap();\n\nstatic {\n dictionary.put(\"Java\", \"Java(TM) based technology\");\n dictionary.put(\"Microsoft\", \"Micro$oft\");\n}\n \nboolean isSeparator(char c) {\n return Character.isWhitespace(c) || \",.;!\\\"\".indexOf(c) >= 0; \t\n}\n \nvoid replaceWords(Map dictionary, TextView textView) {\n String text = textView.getText();\n for (String word : dictionary.keySet()) {\n int pos = text.indexOf(word);\n if (pos >= 0) {\n // make sure this is a word\n if (pos > 0 && !isSeparator(text.charAt(pos-1))) {\n break;\n }\n if (pos < text.length()-1 && !isSeparator(text.charAt(pos + word.length()))) {\n break;\n }\n textView.replace(new Range(pos, pos + word.length()), dictionary.get(word));\n text = textView.getText();\n }\n }\n}\n```\n\nA couple of items to note: the BLIP_SUBMITTED event appears to be triggered when a\n new blip is submitted or when an existing one is edited. Unfortunately the [JavaDoc for the event constants](http://wave-robot-java-client.googlecode.com/svn/trunk/doc/index.html) is still empty, so it's better to run a quick check to make sure your robot gets\n the events you were expecting. Also, my robot does not work on the Wave title. I would\n have to subscribe to WAVELET_TITLE_CHANGED to catch this event.\n\nThe rest of the robot is standard servlet fare. You need a web.xml file, which maps\n relative URL's to servlets. The robot servlet has to live under the relative path\n `/_wave/robot/jsonrpc`. The name of the robot as a wave participant is derived from your App Engine application\n name, meaning a robot at xyz.appspot.com will be known to the wave sandbox as xyz@appspot.com.\n Somehow, it became a quick fashion to name all robots ending in a \"\"y\", giving it\n a cute-y name like \"spelly\" or \"groupy\". Following this rule I should have named mine\n \"replacey\", but I felt it sounds too dorky.\n\n## DLL Hell has Many Faces\n\nThis robot is very simple, but it still took me some time to get it working. In the\n end it turned out I had some nasty version mismatches between the Wave Robot SDK,\n the App Engine run-time and the Eclipse plug-in. When your robot does not seem to\n receive the desired event or does not respond at all, things can be pretty frustrating.\n Once you have a basic robot working, debug and test cycles are relatively swift thanks\n to the easy deployment of App Engine applications. So I'd always recommend to start\n with a \"Hello World\" robot and go from there. The bottom of the [Wave Robot Api Overview](http://code.google.com/apis/wave/extensions/robots/index.html) has some useful troubleshooting tips. If your robot is not well, it's best is to\n check out the App Engine application logs, which are available from the App Engine\n console. For example, my logs alerted me to missing object ID's on my JDO classes.\n\n## The Shortcuts Robot\n\nTo make our robot a bit more useful (and interesting), I decided to give it a dictionary\n data store, meaning you can define your own terms and chose their replacements. Replacing\n Java with Java(TM) will be just one of many useful replacements. For example, you\n could replace the phrase \"Moron!\" with \"Thank you very much for your suggestion. I\n will be sure to bring up your feedback at our next internal meeting.\" This way you\n get all the satisfaction without losing political capital.\n\nApp Engine for Java supports JPA and JDO for persistence. Having successfully escaped\n from both throughout my career, I decided to see what it would take to get JDO-based\n persistence working for someone who has no clue. The good news is that this part was\n pretty pain free. The App Engine Eclipse plug-in deploys the right jar files (assuming\n you have matching versions of the plug-in and SDK) and sets up a `jdoconfig.xml` file for you.\n\nI setup a simple immutable value object for each dictionary entry, equipped it with\n a primary key, and made it persistable:\n\n```\n@PersistenceCapable(identityType = IdentityType.APPLICATION)\npublic class DictEntry {\n\n @PrimaryKey\n @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)\n private Long id;\n\n @Persistent\n private String key;\n\n @Persistent\n private String value;\n\n public DictEntry(String key, String value) {\n super();\n this.key = key;\n this.value = value;\n }\n\n public String getKey() { return key; }\n public String getValue() { return value; }\n}\n```\n\nNow I can load my dictionary from the persistent data store:\n\n```\nMap loadDictionary() {\n Map dict = new HashMap();\n PersistenceManager pm = PMF.get().getPersistenceManager();\n Query query = pm.newQuery(DictEntry.class);\n try {\n List results = (List) query.execute();\n if (results.iterator().hasNext()) {\n for (DictEntry e : results) {\n dict.put(e.getKey(), e.getValue()); \n }\n } \n } finally {\n query.closeAll();\n pm.close();\n }\n return dict;\n}\n```\n\n`PMF` is a singleton `PersistenceManagerFactory` . The rest of the code is pretty self-explanatory: it inserts one entry into the\n map for each row in the data store.\n\nLoading the dictionary from the database is only useful if you can also insert data:\n\n```\nboolean addToDict(String key, String value) {\n deleteFromDict(key);\n DictEntry entry = new DictEntry(key, value);\n PersistenceManager pm = PMF.get().getPersistenceManager();\t \n try {\n pm.makePersistent(entry);\n return true;\n } catch (Exception e) {\n return false;\n } finally {\n pm.close();\n }\n}\n```\n\n`deleteDict` iterates over all entries matching the key and deletes them one by one. In order\n to enable management of the persistent dictionary, I made the robot understand and\n respond to a simple set of commands, `#help, #replace, #showdict`. If a blip starts with such a command, the robot responds with a child blip by calling\n `createChild` on the blip. I had some struggles getting the output formatted in any reasonable\n way. The docs state that some HTML is allowed, but did not indulge us in which tags\n are part of that elite club. I got tired of trying pretty quickly, so the output looks\n pretty raw. What really tripped me up was that `TextView.append` does simply nothing if the string contains a \"greater than\" sign. You'll have to\n use `>` instead, so it does not think you are trying to do some invalid HTML. It would have\n been nice to mention that in the docs. Ironically, the supplied JavaDoc for `appendMarkup` makes a similar mistake by also forgetting to escape special characters, causing\n the generated JavaDoc HTML page to interpret the tags instead of displaying them as\n text. When I was trying to figure out why my test is now appended to the `TextView`, I figured I'd simply check out the source code, but most of the methods of the robot\n API simply translate the Java call into an instance of `Operation`, which is then serialized and returned to the Wave server. This means looking at\n the robot API source does not really help you answer detailed questions like these.\n\n## Robot Gotchas\n\nBecause you can invite more than one robot into a wave, you can inadvertently end\n up building a new version of Robot Wars. For example, one robot could reply to another\n one's changes and vice versa. The current solution is to give robots limited quota,\n so infinite loops will ultimaltely run out of steam.\n\n## Robot Profile\n\nNow that everything is working, you can put the icing on the cake and give our robot\n a profile servlet. This servlet equips the robot with a proper name and an avatar\n by overriding the respective methods of the `ProfileServlet` base class. Map this servlet to `/_wave/robot/profile` in `web.xml` and you are good to go. I chose a picture I took of the [live size Gundam](http://mdn.mainichi.jp/photospecials/graph/gundam/index.html), which is currently on display in Odaiba, Tokyo. Robots don't get much cooler than\n that.\n\n*Share:*\n\n*Follow:* [Follow @ghohpe](https://twitter.com/ghohpe) [SUBSCRIBE TO FEED](../ramblings.rss)\n\n*More On:* [ALL RAMBLINGS](../ramblings.html)\n\nGregor is a cloud architect and author. He is a frequent speaker on asynchronous messaging,\n IT strategy, and cloud.", "znaku_textu": 14659, "slov": 2209, "odkazu": 55, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/ramblings/70_wave.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 06:53:53", "sha256": "d021f10c4b946eaf768a5b0996e90934a466a1f5c0328dcc8f98cadffa073ac6", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://architectelevator.com/blog", "http://wave.google.com/", "http://googlewavedev.blogspot.com/2009/07/google-wave-updates-from-todays.html", "http://atnd.org/events/1091", "http://groups.google.com/group/tokyo-gtug/", "http://www.appspot.com/", "http://wave-robot-java-client.googlecode.com/svn/trunk/doc/index.html", "http://code.google.com/p/wave-robot-java-client/source/browse/", "http://wave-robot-java-client.googlecode.com/svn/trunk/doc/com/google/wave/api/AbstractRobotServlet.html", "http://code.google.com/apis/wave/extensions/robots/index.html", "http://wave-robot-java-client.googlecode.com/svn/trunk/doc/com/google/wave/api/EventType.html", "http://mdn.mainichi.jp/photospecials/graph/gundam/index.html", "https://twitter.com/share", "https://twitter.com/ghohpe", "https://leanpub.com/37things"]} {"url": "https://www.enterpriseintegrationpatterns.com/ramblings/71_javaone.html", "titulek": "Clouds and Integration Patterns at JavaOne - Enterprise Integration Patterns", "h1": "Clouds and Integration Patterns at JavaOne", "popis": "I joined JavaOne this year as a panelist on Cloud Computing", "klicova_slova": "", "kanonicka": "", "jazyk": "en_US", "robots_meta": "", "og": {"og:type": "article", "og:locale": "en_US", "og:site_name": "Enterprise Integration Patterns", "og:title": "Clouds and Integration Patterns at JavaOne", "og:description": "I joined JavaOne this year as a panelist on Cloud Computing", "og:url": "https://www.enterpriseintegrationpatterns.com/ramblings/71_javaone.html"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Clouds and Integration Patterns at JavaOne"}, {"uroven": 2, "text": "Cloud Computing: Show me the money (or demo)"}, {"uroven": 2, "text": "Socializing: To demo or not to demo"}, {"uroven": 2, "text": "Relating to Non-Relational Data"}, {"uroven": 2, "text": "Integration Patterns all over JavaOne"}, {"uroven": 2, "text": "Till Next Year?"}], "markdown": "Gregor's Ramblings\n\n---\n\n# Clouds and Integration Patterns at JavaOne\n\nOCT 1, 2009\n\nFind my posts on IT strategy, enterprise architecture, and digital transformation\n at [ArchitectElevator.com](https://architectelevator.com/blog).\n\nI joined JavaOne this year as a panelist on Cloud Computing. As always, you’ll have\n to run `s/Java/Java (TM) Technology Based` over this article to satisfy Sun’s legal requirements.\n\nWe all expected the mood at JavaOne to be a bit more somber than during the fat years,\n but I’ll have to say it was out right depressing. I walked into the keynote fashionably\n late, just as James Gosling was introducing the Java application store. I have a lot\n of respect for James, but Jonathan Schwarz and James were simply stumbling over their\n own words. I would assume these guys are used to being on stage, so I am not sure\n what was going on. Apparently, other snafoos occurred earlier with one of the Sunsters\n referring to app store half an hour before it was actually announced. To add to the\n drama, Scott McNealy came back on stage, all sentimental, followed by Larry E. himself\n engaged in a somewhat staged (well, can we blame them?) dialog. While Scott was able\n to strike a chord with some in the melancholy department, the overall performance\n really lacked in energy and coherence. It felt like a bunch of grumpy old men reminiscing\n about better times. Even the T-shirt cannon felt a bit like playing silly games at\n the kid’s birthday party after you’ve grown too old just to make grandma happy.\n\nThe distinct lack of entertaining (non-Sun-sponsored) parties and the associated party\n regulars only added to the somber mood. No Zebulon party, no Hani, James Strachan,\n or Cameron Purdy. Patrick Linsky was apparently sighted somewhere, but I did not manage\n to grab a pint with him.\n\nThe most striking feature on the expo floor (“pavilion”) was the complete absence\n of Oracle, and hence BEA. Rumor has it that this was due to legal restrictions during\n the planned acquisition, but it still left a noticeable hole. One vendor managed to\n drive a Lincoln Continental out of the show floor before the booth breakdown even\n started. The most allegorical moment must have been when I described Sebastian Meyen,\n who runs the JAX conferences in Germany, that JavaOne seems to be falling apart, just\n as the vendors started tearing off the decoration from the pavilion entrance.\n\n## Cloud Computing: Show me the money (or demo)\n\nI had the honor to be teamed up on a cloud computing panel with representatives from\n Amazon, SalesForce, Intuit, Microsoft, and Sun. I love panels because they are interactive\n and require little preparation, but I was a bit nervous about having a panel with\n so many participants, each of which would give a demo. However, it actually went quite\n well at least from my perspective (the audience will be the ultimate judge via the\n feedback forms). Jeff Bar from Amazon showed an application that scrapes Seattle traffic\n data (like the weather, usually bad) and stores it on S3. Simon Guest from Microsoft\n deserves the bonus point for inviting everyone to hit his live Azure app, which queues\n up requests to validate prime numbers. Unfortunately, the app bogged down under the\n traffic, but came back up towards the end. I guess a perfect live demo without hiccups\n runs the risk of looking fake.\n\nNaturally, I represented Google App Engine for Java (GAE/J). Since I expected most\n of my (friendly) competitors to come with ready-made demos, I joked that I forgot\n to make a demo and fired up Eclipse to throw together world’s simplest “Hello World”\n servlet. A simple button push deployed it out into the cloud, and there was really\n nothing more to tell. I was only half joking when I declared that it’s difficult to\n demo GAE because it’s so seamless that there’s really not much to show. The strategy\n seemed to have worked out as one attendee came to me afterwards to let me know that\n he appreciated the simplicity of my demo.\n\nAfter my 2 minutes of demo chest chumping (and a round of applause for two lines of\n Java code), the audience posed a number of interesting questions to the panel:\n\n- One of the most common concerns relates to storage location and ownership of the data.\n This question touches both on privacy as well as regulatory concerns. Especially in\n the EU, legal requirements can restrict on which continent data can be stored. One\n of the recent Google products, the Secure Data Connector, brings some relief in this\n aspect, as cloud-based applications, such as App Engine programs can selectively access\n data residing inside the corporate firewall. I am sure there are other products in\n the market to address this need as well. Data access latency will likely be the biggest\n hurdle as fetching data from a cloud application across a secure channel will be an\n order of magnitude slower than running a direct query against Bigtable or SimpleDB.\n- Another question was the direct reaction to me hitting the “App Engine” button in\n Eclipse to deploy my application. The gentleman spoke from the operations perspective,\n to who “someone hitting a button in Eclipse to deploy an app is our worst nightmare.”\n He was curious to find out about staging procedures and check points. I was able to\n answer from the Google App Engine perspective, where we ask the user to authenticate\n to a Google account in order to deploy an application. For staging procedures, users\n typically setup separate instances of their application in the cloud, similar to what\n you would do internally.\n- Another listener was curious as to when using a cloud provider such as Amazon or Google\n is no longer economical compared to running your own datacenter, measured in storage\n and traffic size. It’s difficult to give general advice here. Usually there are additional\n aspects beyond size that motivate companies to run proprietary datacenter, such as\n the aforementioned privacy or regulatory concerns. The answer will also depend on\n the usage patterns. If usage fluctuates significantly, for example in seasonal patterns,\n the elasticity of the cloud solutions can become a major economical benefit (assuming\n not everyone customer is subject to the same seasonal pattern). An oft cited case\n study is that of the New York Times, which used Amazon’s EC2 to convert a mass of\n scanned newspaper images. It deployed a batch-style data processing job to EC2 and\n paid a few hundred Dollars for the whole event. For such one-time computing jobs,\n the cloud model is certainly economically appealing.\n\nThe last point relates to a discussion I had with [David Chappell](http://www.davidchappell.com) (not the Oracle one) over lunch at the Four Seasons. In a recent [keynote presentation](http://www.davidchappell.com/CloudPlatformsToday--APerspective--Chappell.pdf), he compared popular cloud computing platforms. Rather than ticking off feature checklists\n for each platform, he chose a scenario-based approach, comparing how suitable today’s\n cloud vendor platforms are to a set of five specific scenarios:\n\n1. Running an on-premises app unchanged in the cloud\n2. Creating a moderately scalable Web app\n3. Creating a very scalable Web application\n4. Creating a parallel processing application (as in the New York Times example above)\n5. Creating a very scalable Web application with background processing\n\nHe applied these scenarios against Amazon EC2, Mosso Cloud Servers, Azure, Google\n App Engine, and Salesforce.com. Check out his presentation to view his findings.\n\n## Socializing: To demo or not to demo\n\nJavaOne nevertheless drew a number of good friends, who I don't get to see often enough.\n I had a good conversation with Martin Fowler, Erik Meijer, and Yuji over dinner at\n Ame, the fancy Japanese fusion restaurant at the St Regis hotel. The highlight of\n the dinner was that OGIS (Osaka Gas Information Systems division) covered the bill\n (arigatō!) The strong Yen may be helping. The fact that we just walked into the restaurant\n without any reservation during a major conference event is a certain indicator of\n the poor state of the US expense accounts. Martin shared his view that live demos\n do not add much value to a talk. I generally like (good) demos because they keep the\n audience engaged and demonstrate cause and effect of actions. If I write a certain\n piece of code, the demo shows what comes out the other hand. Unfortunately, this is\n where many (not useful) demos fail. Often too much “magic” is already prepared, making\n it difficult for the audience to build a suitable mental model of the system. Or pieces\n of code are added in various places without am obvious connection between them. Martin\n agreed that linking cause and effect is an important aspect for the audience, but\n he feels that one can accomplish the same effect with diagrams or explanation, which\n is certainly true. So doing a live demo is mostly a matter of style, with a tiny bit\n of geek chest chumping added into the mix.\n\n## Relating to Non-Relational Data\n\nAnother topic that came up in a few discussions is the recent rise of non-relational\n datastores, amongst them SimpleDB, Bigtable, and Azure Data Services. At Google IO,\n Martin voiced his concerns that developers are likely to get tangled up in the impedance\n mismatch between persistence frameworks and the underlying non-relational storage.\n David Chappell voiced a similar concern. Microsoft must have faced pressure a lot\n of pressure as they quickly put the SQL back into the Azure SQL Data Services. A recent\n discussion on the [cloud computing mailing list](http://groups.google.com/group/cloud-computing) offered additional insights into this topic.\n\nI believe that a non-relational model can work reasonably well for “typical” Web applications,\n which are usually not based on a complex domain model. Data storage such as Bigtable\n makes up for the lack of relationships by providing a richer storage model inside\n a single table (I always like to highlight the fact that it’s called Bigtable and\n not Bigdatabase): Bigtable can store an arbitrary number of columns for a single row\n and is not tied to a fixed schema across rows – it’s essentially a persistent map.\n Because column names are not fixed, applications use them as data items as well, in\n addition to the date cells. Furthermore, each Bigtable cell can store multiple versions\n of data, providing a third dimension of data access beyond key and column name. Combined\n with an utter disregard for normal forms (compression is very effective for duplicated\n data), a single Bigtable can often provide the same storage model as a handful of\n tables in a relational database. The Bigtable storage model for AppEngine gives a\n nice example how clever use of row keys and prefix scans allows a variety of queries\n to be performed against a single Bigtable.\n\nThe biggest challenge I see is that it’s difficult for developers to understand the\n performance consequences of their application design when the details of the underlying\n storage model are not well publicized. For Google App Engine storage, I highly recommend\n Ryan Barrett's talk [Under the Covers of the Google App Engine Datastore](http://sites.google.com/site/io/under-the-covers-of-the-google-app-engine-datastore).\n\n## Integration Patterns all over JavaOne\n\nWith all that somber mood at JavaOne, I was most excited to see a surprisingly strong\n presence of Enterprise Integration Patterns -- and even more excitingly neither Bobby\n nor I had anything to do with it.\n\n- First off, we were most pleased to see that our book made it onto the Top 10 Bestseller\n List from the conference bookstore!\n- This may have been largely a byproduct of [Project Fuji](https://fuji.dev.java.net/) Open Source ESB being part of the Tuesday morning general session / keynote. Their\n demo and tutorials make heavy use of our patterns. Sadly, I just walked in after the\n demo finished. This could have easily ranked as my second proudest conference moment\n after [Grady Booch mentioning our book as one of the most influential pattern books](37_oopsla.html) .\n- Andreas Egloff and Bruce Snyder gave a [Enterprise Integration Patterns in Practice](http://www.slideshare.net/aegloff/ts-4839-enterprise-integration-patterns-in-practice) talk, which demonstrates how our patterns are implemented in Apache Camel and Fuji\n / OpenESB.\n- The show floor aka Pavillion provided another nice EIP surprise: LogicBlaze-turned-Iona-turned-Progress\n Software created very nice [Dzone RefCardz](http://refcardz.dzone.com/refcardz/enterprise-integration) for [Fuse](http://fusesource.com/) aka Apache Camel, which implements many of our patterns. They adopted the [icon language and diagrams from our book](../toc.html) (which are available under the creative commons license) and mapped them to the corresponding\n implementation in Fuse.\n\n## Till Next Year?\n\nWhat's going to be hot at JavaOne next year? I think many of us don't know what to\n expect. I feel that the transition of Java from the cool, exciting to bread-and-butter\n is sombering, but ultimately a good thing. In many ways, the transition had started\n quite a few years ago, and the transition to Oracle really just puts the icing on\n the cake. On the upshot, Oracle knows how to throw a good party. See you all there\n next year!\n\n*Share:*\n\n*Follow:* [Follow @ghohpe](https://twitter.com/ghohpe) [SUBSCRIBE TO FEED](../ramblings.rss)\n\n*More On:* [EVENTS](/ramblings_events.html) [CLOUD](/ramblings_cloud.html) [ALL RAMBLINGS](../ramblings.html)\n\nGregor is a cloud architect and author. He is a frequent speaker on asynchronous messaging,\n IT strategy, and cloud.", "znaku_textu": 13600, "slov": 2178, "odkazu": 53, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/ramblings/71_javaone.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 06:53:52", "sha256": "06da06d13cb6a4185524163a5e4dec54caf3506335aa4fc21ccddd4af51a3343", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://architectelevator.com/blog", "http://www.davidchappell.com/", "http://www.davidchappell.com/CloudPlatformsToday--APerspective--Chappell.pdf", "http://groups.google.com/group/cloud-computing", "http://sites.google.com/site/io/under-the-covers-of-the-google-app-engine-datastore", "https://fuji.dev.java.net/", "http://www.slideshare.net/aegloff/ts-4839-enterprise-integration-patterns-in-practice", "http://refcardz.dzone.com/refcardz/enterprise-integration", "http://fusesource.com/", "https://twitter.com/share", "https://twitter.com/ghohpe", "https://leanpub.com/37things"]} {"url": "https://www.enterpriseintegrationpatterns.com/ramblings/72_eipvolumes.html", "titulek": "EIP Visions - Enterprise Integration Patterns", "h1": "EIP Visions", "popis": "The beginning of a New Year is the time to reflect on the past and make resolutions for the future", "klicova_slova": "", "kanonicka": "", "jazyk": "en_US", "robots_meta": "", "og": {"og:type": "article", "og:locale": "en_US", "og:site_name": "Enterprise Integration Patterns", "og:title": "EIP Visions", "og:description": "The beginning of a New Year is the time to reflect on the past and make resolutions for the future", "og:url": "https://www.enterpriseintegrationpatterns.com/ramblings/72_eipvolumes.html"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "EIP Visions"}, {"uroven": 2, "text": "Bestseller!?"}, {"uroven": 2, "text": "Having a Conversation"}, {"uroven": 2, "text": "Life Work: 4 Volumes of EIP"}, {"uroven": 2, "text": "Harsh Reality"}], "markdown": "Gregor's Ramblings\n\n---\n\n# EIP Visions\n\nJAN 22, 2010\n\nFind my posts on IT strategy, enterprise architecture, and digital transformation\n at [ArchitectElevator.com](https://architectelevator.com/blog).\n\nThe beginning of the New Year is the time to reflect on the past and make resolutions\n for the future. As long as you make it a resolution to reflect more on the past, you\n can check off items with one stone. One of my resolutions was to write more regularly,\n so I am trying to start the year on the right foot by writing this rambling. Another\n resolution was to get myself a new laptop (the company issued model is all but unusable),\n so I am writing this on a Panasonic Let’s Note N8 running Japanese Windows 7. I am pouring water into the keyboard as we speak. Just\n kidding. The battery meter shows 8時10分 at 88%, so it looks like I can type along for\n quite some time.\n\n## Bestseller!?\n\nIt's been over 6 years now since *Enterprise Integration Patterns* first hit the shelves. The book continues to quite popular, so I am contemplating\n whether we could call it a “bestseller” soon. Actually, I have no idea what that label\n really means: I have always been equally amused and disturbed by the notion of a\n “bestselling author” or “bestsellers” in general. The exact criteria to call one's\n work a bestseller appear to be even less well understood than the Amazon Sales Rank\n algorithm. To my relief, [Wikipedia states](http://en.wikipedia.org/wiki/Bestseller) that \"Bestsellers tend not to be books considered of superior academic value or literary\n quality.\" So maybe it’s a label we don’t actually want.\n\nTechnical book sales are certainly not what they used to be, and are by no means comparable\n to fiction titles. The Harry Potter series apparently topped 400 million copies and\n The Lord of the Rings (my teenage year favorite) logged 150 million copies. These\n days a technical book that sells more than 10,000 copies is probably considered a\n solid seller, whereas 50,000 copies constitute quite a success. At a minimum, the\n publisher is going to encourage you to write another one. With a little luck, *EIP* may hit the 50,000 mark this year, which would be a happy cause for celebration.\n It's not that we make that much money from it, but once you put this much effort into\n a book, you really do want people to read it. Write one and you'll know the feeling.\n Martin Fowler has aptly described the scary \"will they like my baby\" moment when a\n book hits the shelves. It's not like you can go back and fix it afterwards. It feels\n good if they like your baby.\n\nWhat excites us the most is that the book has remained relevant over so many years.\n Sure, there are some \"antique\" TIBCO Integration Manager screen shots (maybe Mike\n Rettig will show these to his children some time, who will never understand why integration\n was difficult), and our code samples are refreshingly \"generics free\", but nevertheless\n quite generic. Of course the problems (and solutions) of asynchronous messaging have\n not changed terribly much in six years, making EIP as relevant as ever.\n It’s nice to see that EIP also still receives favorable reviews. What caught my attention\n in [Mike Hadlow's blog post](http://mikehadlow.blogspot.com/2009/12/book-review-enterprise-integration.html) is that he originally got the book in 2004, but now actually applies it as he is\n working on messaging products. It's certainly nice to read statements about EIP like\n \"I don’t think anyone can have an intelligent discussion about integration architecture\n without referencing it.\" Mike also understands well that one does not have to read\n the book cover to cover, but that it doubles up as a reference book. [Jan Van Ryswyck agrees with him](http://elegantcode.com/2009/08/18/book-review-enterprise-integration-patterns/) here, and points out that reading the 600+ pages back-to-back is quite an undertaking.\n Jan is aptly pointing out that the almost 50 page introduction contains many (hidden)\n gems about what messaging is, and why it works so well. In hindsight, we probably\n should have made it Chapter 1. This follows the advice from a smart fellow author\n (whose name escapes me), who solves the problem that people don't read introductions\n by renaming the introduction to \"Chapter 1\". Our introduction actually runs past page\n \"li\", i.e. lowercase roman 51, which is likely an indication that it would have made\n a good chapter.\n\nI mentioned quite a few times before that we owe a lot of the success of EIP to the\n ESB community and particularly the open source implementations. Virtually all of them,\n including [Mule](http://mule.mulesource.org/display/MULE/Architecture+Guide), [Apache Camel](http://activemq.apache.org/camel/enterprise-integration-patterns.html), [Spring Integration](http://blog.interface21.com/main/2007/12/14/spring-integration-a-new-addition-to-the-spring-portfolio), and OpenESB aka [Project Fuji](https://fuji.dev.java.net/) support our patterns out of the box and use our vocabulary to describe their products'\n capabilities. I even found a (short) [paper comparing the implementation of EIP patterns in different open source ESB's](http://www.schatten.info/pub/cee_set/cee_set2008.pdf). Lastly, seeing our patterns at the JavaOne keynote certainly ranks as one of my\n proud moments (as #2 behind Grady Booch listing EIP as one of his favorite pattern\n books at OOPSLA).\n\n## Having a Conversation\n\nIn his blog post, Jan also echoed the most common criticism about the book: the fact\n that it's not about the entirety of enterprise integration, but just about messaging.\n So the title is in fact a little misleading. The snip reply is to read the subtitle\n more carefully, which clearly hints at messaging. The real reason, though, is that\n when I was writing EIP with Bobby, I had something bigger in mind than a single volume.\n\nMessaging is the foundation for many connected systems, but as many people have pointed\n out, it's only one part of a comprehensive integration solution. Messaging is great\n because it makes for an elegant interaction model which favors asynchronous, stateless\n solutions, and allows high throughput. As much as all those buzzwords make you think\n it's the best thing since sliced bread, messaging also has limitations. For example,\n the absence of state (beyond the position of the message) makes it difficult to discuss\n topics like error handling or conversations. Many readers probably noticed the \"cliff\n hanger\" pattern in our book, the [Process Manager](../ProcessManager.html). We could not really hide the fact that this pattern is really a window into a different\n world, with design trade-offs rules, vocabulary, and patterns.\n\nProcess managers are often employed to track the exchange of multiple messages over\n time, i.e. a *conversation*. If you followed some of my (somewhat) recent publications in [IEEE Internet Computing](/docs/IEEE_IC_Conversations.pdf), [SOA Expertenswissen](http://www.amazon.de/SOA-Expertenwissen-Gernot-Starke/dp/3898644375), or [EuroPLoP](http://hillside.net/europlop/europlop2008/submission/shepherd.cgi?token=ddb3e5acccc162303656b24adea5a0f8bd0cc350&action=download&label=1203322025_15), or my [Dagstuhl workshop report](http://drops.dagstuhl.de/opus/frontdoor.php?source_opus=828), you realize that conversation patterns have been the center of my attention for\n some time. Conversations are interesting to me because they are commonplace, both\n in connected systems as well as the real world. As [Pat Helland discussed](http://www-db.cs.wisc.edu/cidr/cidr2007/papers/cidr07p15.pdf), multiple interacting systems engage in mini activities aka conversations to compensate\n for the absence of 2-phase-commit transactional guarantees. Since the real world also\n does not provide such guarantees, humans are very used to holding conversations, i.e.\n to exchange messages over time, to achieve an ultimate goal. For example, planning\n a dinner with your friends may involve a series of e-mail exchanges to pick a suitable\n time and location, and to inform everyone of the decision. Because these days e-mail\n is the asynchronous messaging infrastructure of choice for humans, many conversations\n are \"hidden\" behind threads of e-mail discussions. Not quite coincidentally, [Google Wave](http://www.google.com/wave) is aiming to put the conversational aspect of e-mail exchanges into the center by\n choosing a document-oriented model of interaction. In some ideological universe we\n could call Google Wave is the [blackboard architecture](http://books.google.com/books?id=WVQF2PK2tlgC&pg=PA205&dq=buschmann+pattern+blackboard&cd=1#v=onepage&q=&f=false) of asynchronous human interaction.\n\nThere is a lot more to say about conversations, but it becomes apparent fairly soon\n that [designing and describing them is not an easy task](/docs/IEEE_IC_Conversations.pdf). I am hoping that once again design patterns can help us tackle these design challenges\n by defining a consistent vocabulary and building a collection of design trade-offs\n and pitfalls. Enter *EIP 2: Conversations between Loosely Coupled Systems*. I [concluded 4 years ago](38_interaction.html) that interaction gets (and deserves) a lot of attention, so I think it's time we\n collect some guidance on how to do it right.\n\n## Life Work: 4 Volumes of EIP\n\nConversation Patterns make a very natural extension to EIP I:Messaging, but the series\n does not have to stop there. Conversation participants almost invariably hold state,\n to track which messages were sent and received already, to count the number of retries,\n and so on. Osten, this state is held in a process engine of sorts, which expresses\n the conversation in form of orchestrations and process models. This is yet again\n a whole new world and probably deserves its own volume. You could consider it the\n dualistic (but different) view of conversation patterns.\n\nBut that's not it. CEP (Complex Event Processing) is getting more and more attention\n and I had a chance to connect with [some very smart folks](http://www.biotec.tu-dresden.de/~adrianp/europlop08_cep/) from the \"CEP tribe\" at EuroPLoP 2008 (man, why does everything seem ages ago?).\n CEP takes a bottom-up approach in the sense that instead of prescribing rules of conversations,\n the event processor observes a stream of events travelling the \"event cloud\" and interprets\n them to gain a higher-level understanding. A fascinating topic, which has been garnering\n vendor support, including an attractive open source engine, [Esper](http://esper.codehaus.org/).\n\nAm I in all honesty proposing 4 volumes of *Enterprise Integration Patterns*? I guess so:\n\n- EIP I: Messaging\n- EIP II: Conversations\n- EIP III: Process\n- EIP IV: Event Processing\n\nI think it'd be a valuable body of work, if I can only ever get around to writing\n it! The volumes would be in somewhat logical order from the bottom up with messaging\n being the foundation. One could also say the volumes follow the trend of basic EAI\n (messaging) to SOA (orchestration) and then SOA 2.0 (event processing). I feel a little\n dirty after typing SOA 2.0, so I won't get into the debate about \"2.0\" technologies.\n\n## Harsh Reality\n\nWith all these grand dreams, where does reality settle in? The EIP world domination\n plan stands about here:\n\n- Volume I - Messaging. 650 pages, 187000 words. All done.\n- Volume II - Conversations. 50 page paper, [workshopped at EuroPLoP 2008](http://hillside.net/europlop/europlop2008/submission/shepherd.cgi?token=ddb3e5acccc162303656b24adea5a0f8bd0cc350&action=download&label=1203322025_15) . It's obviously missing a lot, but the first paper of Integration Patterns at OOPSLA\n 2002 was not a whole lot further along.\n- Volume III - Process: Not much more than a thought bubble and some notes of conversations\n I had with smart people.\n- Volume IV – Inspired by talking with folks like Adrian Paschke, but far from even\n starting to think about concrete patterns.\n\nSo obviously I have some work ahead of me. Sadly, progress has been grinding to a\n halt for almost two years now, but I have not given up yet. Wish me luck!\n\n*Share:*\n\n*Follow:* [Follow @ghohpe](https://twitter.com/ghohpe) [SUBSCRIBE TO FEED](../ramblings.rss)\n\n*More On:* [WRITING](/ramblings_writing.html) [CONVERSATIONS](/ramblings_conversations.html) [ALL RAMBLINGS](../ramblings.html)\n\nGregor is a cloud architect and author. He is a frequent speaker on asynchronous messaging,\n IT strategy, and cloud.", "znaku_textu": 12388, "slov": 1833, "odkazu": 62, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/ramblings/72_eipvolumes.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 06:53:51", "sha256": "71492b28f662bde64dacb096552ff710b774cd179efaa7c438ee55cb11765fb3", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://architectelevator.com/blog", "http://en.wikipedia.org/wiki/Bestseller", "http://mikehadlow.blogspot.com/2009/12/book-review-enterprise-integration.html", "http://elegantcode.com/2009/08/18/book-review-enterprise-integration-patterns/", "http://mule.mulesource.org/display/MULE/Architecture+Guide", "http://activemq.apache.org/camel/enterprise-integration-patterns.html", "http://blog.interface21.com/main/2007/12/14/spring-integration-a-new-addition-to-the-spring-portfolio", "https://fuji.dev.java.net/", "http://www.schatten.info/pub/cee_set/cee_set2008.pdf", "http://www.amazon.de/SOA-Expertenwissen-Gernot-Starke/dp/3898644375", "http://hillside.net/europlop/europlop2008/submission/shepherd.cgi?action=download&label=1203322025_15&token=ddb3e5acccc162303656b24adea5a0f8bd0cc350", "http://drops.dagstuhl.de/opus/frontdoor.php?source_opus=828", "http://www-db.cs.wisc.edu/cidr/cidr2007/papers/cidr07p15.pdf", "http://www.google.com/wave", "http://books.google.com/books?cd=1&dq=buschmann+pattern+blackboard&id=WVQF2PK2tlgC&pg=PA205", "http://www.biotec.tu-dresden.de/~adrianp/europlop08_cep/", "http://esper.codehaus.org/", "https://twitter.com/share", "https://twitter.com/ghohpe", "https://leanpub.com/37things"]} {"url": "https://www.enterpriseintegrationpatterns.com/ramblings/73_writing.html", "titulek": "A Chapter a Day... - Enterprise Integration Patterns", "h1": "A Chapter a Day...", "popis": "My New Year's resolution was to write more, so here my thoughts on how to actually make that happen", "klicova_slova": "", "kanonicka": "", "jazyk": "en_US", "robots_meta": "", "og": {"og:type": "article", "og:locale": "en_US", "og:site_name": "Enterprise Integration Patterns", "og:title": "A Chapter a Day...", "og:description": "My New Year's resolution was to write more, so here my thoughts on how to actually make that happen", "og:url": "https://www.enterpriseintegrationpatterns.com/ramblings/73_writing.html"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "A Chapter a Day..."}, {"uroven": 2, "text": "Harness the Power of Procrastination"}, {"uroven": 2, "text": "Write *Something* Every Day"}, {"uroven": 2, "text": "Use Your Best Hours – Mornings"}, {"uroven": 2, "text": "Reward Yourself"}, {"uroven": 2, "text": "Read More"}, {"uroven": 2, "text": "Capture Ideas Anytime Anywhere"}, {"uroven": 2, "text": "Start from Different Angles"}, {"uroven": 2, "text": "Recycle"}, {"uroven": 2, "text": "Announce Your Progress Publicly"}, {"uroven": 2, "text": "Share"}, {"uroven": 2, "text": "Co-Author"}, {"uroven": 2, "text": "No Silver Bullet Here Either"}], "markdown": "Gregor's Ramblings\n\n---\n\n# A Chapter a Day...\n\nFEB 1, 2010\n\nFind my posts on IT strategy, enterprise architecture, and digital transformation\n at [ArchitectElevator.com](https://architectelevator.com/blog).\n\n...keeps the writer's block away. My New Year's resolution was to write more, so here\n my thoughts on how to actually make that happen. In a sense it's a plan for myself\n to be more productive, but hopefully the ideas also work for other folks. Ironically,\n my work on EIP II has been stalled for a good while, so you're getting advice on how\n to be a prolific writer from someone who has not written much in 2 years. Read on\n at your own risk.\n\n## Harness the Power of Procrastination\n\nYou can easily tell when I am “writing”: the house is 105% dust-free, no dirty dishes\n are to be found anywhere in the kitchen, and all laundry clean and neatly folded.\n Twice. That's the power of procrastination (it's certainly not the normal state).\n It's hard to avoid procrastination, but you can try to make it work for you. For example,\n if your goal is to write a whole book, you can easily procrastinate by writing blog\n entries or chapters for books. For example, that's how my chapters in EAI Expertenwissen and [97 Things every Architect Should Know](http://amazon.com/o/asin/059652269X/ref=nosim/enterpriseint-20), or this rambling came about. I still did not work on my book much, but at least\n I got some work published.\n\n## Write *Something* Every Day\n\nEven you feel like you are in no condition to write anything useful, write something.\n Or at least copy edit some text or draw a new diagram. One of the biggest dangers\n is for your mind to go stale, i.e. you forget the \"story\" or \"spirit\" of the book.\n Writing is a slow activity, so it's natural to have many open \"threads\" in your mind\n at one time. But you can't keep these threads idling forever. I call it the \"cliff\n of freshness\": if you don't write for a few days, no problem. After one week, I slowly\n start to forget some of the open threads. After 2 weeks, they are mostly gone and\n I end up having to re-read what I wrote and slowly reconstruct where I wanted to go.\n Keep your mind in the fresh zone by doing something related to your writing every\n day. When I wrote EIP my co-workers refused to eat lunch with me unless I promised\n not to talk about \"the book\" – because that was the only thing on my mind.\n\n## Use Your Best Hours – Mornings\n\nI got this advice from Martin Fowler, who has the luxury of living on the East Coast\n in a company that has many projects further westwards. This allows him to write in\n the morning before his regular work day starts. As most developers, I tended to do\n most of my work late at night, but I recently followed Martin's approach. Not because\n I have a time zone advantage, but because many developers only get into the office\n at around 11am (to avoid the train rush). So I try to write from 8am to 11am 3 days\n a week, as long as I can fend off meetings with California, which tend to be in the\n mornings. Nothing feels better than showing up for the daily grind with 3 hours of\n fun work under your belt.\n\n## Reward Yourself\n\nA good state of mind is important for writing. Some new gear can be very helpful to\n put yourself into a positive state of mind. I love my new laptop after I had been\n so frustrated with my company Thinkpad for a long time. Thinkpads are not actually\n bad machines, but the combination of an encrypted hard drive, overly zealous virus\n checking, too little drive capacity, and memory hungry Chrome meant that the machine\n swapped itself to death. It often took 30 seconds for a Chrome tab to refresh or even\n open. I ultimately realized that my time is more valuable than that, so I got myself\n a shiny new laptop, one of those funny looking Panasonic Let's Note. It's very Japanese\n including the ridiculously cute name, but it offers an outstanding combination of\n power (2.53GHz dual core), light weight (just over 1kg), battery life (I get 10h+),\n and sturdiness (supposedly survives 70 drop with no issue). Now that I spent all this\n money, I better use it to write!\n\n## Read More\n\nNobody writes in isolation. Part of writing is also to read more to get inspired,\n and see what other folks are working on. And when you are totally out of ideas on\n what to write, you can simply write about the great thing you read. I am considering\n getting the small Kindle to be able to read and review comfortably anywhere. Except\n PDF's don't show terribly well, largely because PDF is meant for page layout, not\n for reading on a 6\" screen. But I hear you can easily convert to the Kindle format\n and solve this problem. Plus getting a Kindle also falls into the previous point of\n making an investment / commitment.\n\n## Capture Ideas Anytime Anywhere\n\nGood ideas don't arrive on schedule. They also tend to disappear quickly, so it's\n useful to have something to jot down ideas with you any time. It can be as low tech\n as a tiny notebook or as high tech as an iPhone. Many good ideas come from talking\n to other folks, so maybe it should not be considered rude to take notes during beer\n chats. Maybe that's what the coasters are for? How about the proverbial idea in the\n shower? Don't get the fog free mirror.\n\n## Start from Different Angles\n\nWhen you flip through EIP, you may notice that the amount of code increases towards\n the end of the book. That's mainly because we got so tired of writing that it seemed\n easier to code (see also \"procrastination\"). So try different tacks instead of just\n typing words. Make up a picture, sketch something out, code up a solution.\n\n## Recycle\n\nI am not talking about scribbling on the back side of your printer paper here, but\n about recycling ideas. I found that I have good ideas of how to explain things when\n I prepare a talk. But too often I don't actually write about them or, worse yet, I\n forget about them. So turning a talk into a short article or a blog post into a book\n chapter can be quite productive and keeps your mind fresh.\n\n## Announce Your Progress Publicly\n\nI saw many tweets from Martin on his DSL book. Announcing your progress is a good\n way to make a commitment and share your success.\n\n## Share\n\nThe notion of someone locking themselves up for 3 months in a dark chamber to write\n a book is in fact quite rare, at least for technical books. These days, a chamber\n with WiFi may do the trick, but the reality is that the majority of good technical\n books are the result of a community effort based on formal and informal reviewers.\n So don't be afraid to share your work. Nothing is a better motivator than receiving\n useful feedback.\n\n## Co-Author\n\nMany authors state that the chances of success for a book co-authorship is lower than\n that of marriage. While that may be the case, having a co-author is great to get you\n over lows or busy periods. If you write by yourself, it is just too easy to drop things.\n If you have a co-author, you can balance between the two (or three) of you and make\n steady progress. I think one of the reasons we actually finished EIP was because we\n were a team of two.\n\n## No Silver Bullet Here Either\n\nLet me conclude with my insight that writing books is infinitely more difficult than\n writing code. I can happy crank code 10 hours a day without breaking a sweat (even\n though I rarely do these days). On the other hand, 5 hours of intense writing wipes\n my brain out completely.\n\nWill my advice work for me? Ask me in 6 months. My plan for this year is to speak\n at fewer events and dedicate more time to writing. Of course, meeting fellow authors\n and \"intellectual drinking buddies\" at events is still an important part of staying\n ahead of the curve and getting ideas and inspiration. So it's unlikely that I'll go\n into complete isolation. My [talks RSS feed](../talks.rss) should keep you up-to-date.\n\n*Share:*\n\n*Follow:* [Follow @ghohpe](https://twitter.com/ghohpe) [SUBSCRIBE TO FEED](../ramblings.rss)\n\n*More On:* [WRITING](/ramblings_writing.html) [ALL RAMBLINGS](../ramblings.html)\n\nGregor is a cloud architect and author. He is a frequent speaker on asynchronous messaging,\n IT strategy, and cloud.", "znaku_textu": 8096, "slov": 1436, "odkazu": 45, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/ramblings/73_writing.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 06:53:50", "sha256": "d09b90d6d458c9688a6563c77cb6819c0a0e3db98087711b383c87d12871eb90", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://architectelevator.com/blog", "http://amazon.com/o/asin/059652269X/ref=nosim/enterpriseint-20", "https://twitter.com/share", "https://twitter.com/ghohpe", "https://leanpub.com/37things"]} {"url": "https://www.enterpriseintegrationpatterns.com/ramblings/74_messaging.html", "titulek": "What Does It Mean to Use Messaging? - Enterprise Integration Patterns", "h1": "What Does It Mean to Use Messaging?", "popis": "I was recently asked to help a team decide whether they should use messaging", "klicova_slova": "", "kanonicka": "", "jazyk": "en_US", "robots_meta": "", "og": {"og:type": "article", "og:locale": "en_US", "og:site_name": "Enterprise Integration Patterns", "og:title": "What Does It Mean to Use Messaging?", "og:description": "I was recently asked to help a team decide whether they should use messaging", "og:url": "https://www.enterpriseintegrationpatterns.com/ramblings/74_messaging.html"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "What Does It Mean to Use Messaging?"}, {"uroven": 2, "text": "Transport Mechanism"}, {"uroven": 2, "text": "Programming Model"}, {"uroven": 2, "text": "Event-sourced Applications"}], "markdown": "Gregor's Ramblings\n\n---\n\n# What Does It Mean to Use Messaging?\n\nFEB 17, 2010\n\nFind my posts on IT strategy, enterprise architecture, and digital transformation\n at [ArchitectElevator.com](https://architectelevator.com/blog).\n\nI was recently asked to help a team decide whether they should use messaging. Of course,\n I have not forgotten what I learned during many years in consulting: the consultant\n always answers \"it depends.\" A good consultant can tell you what the answer depends\n on. And a truly great consultant can convince you that you are asking the wrong question\n in the first place.\n\nWithout hesitation, I told the team that they are asking the wrong question. Messaging\n is not an all/or nothing decision, but one that happens at many different levels.\n With the limited time I had, I concluded that messaging has a place in at least three\n levels. There may well be more.\n\n- Transport Mechanism\n- Programming Model\n- Event-sourced Applications\n\n## Transport Mechanism\n\nThe first usage of messaging is as a transport mechanism in distributed systems. This\n is the messaging as we described it *EIP*. Using messaging in this context has many advantages as we outlined in our introduction:\n\n- *Remote Communication* . Messaging enables separate applications to communicate and transfer data.\n- *Platform/Language Integration* . A messaging system can be a universal translator between the applications that works\n with different languages and platforms.\n- *Asynchronous Communication* . Messaging enables a send and forget approach to communication. The sender does not\n have to wait for the receiver to receive and process the message; it does not even\n have to wait for the messaging system to deliver the message.\n- *Variable Timing* . Asynchronous communication allows the sender fire off requests to the receiver\n at its pace, and for the receiver to consume the requests at its own different pace.\n This allows both applications to run at maximum throughput and not waste time waiting\n on each other.\n- *Throttling* . A problem with remote procedure calls is that too many of them on a single receiver\n at the same time can overload the receiver. This can cause performance degradation\n and even cause the receiver to crash. Asynchronous communication enables the receiver\n to control the rate at which it consumes requests, so as not to become overloaded\n by too many simultaneous requests. The adverse effect on callers caused by this throttling\n is minimized because the communication is asynchronous, so the callers are not blocked\n waiting on the receiver.\n- *Reliable Communication* . Messaging provides reliable delivery because it can use a store and forward approach\n to transmitting messages with automatic retry.\n- *Disconnected Operation* . Some applications are specifically designed to run disconnected from the network,\n yet to synchronize with servers when a network connection is available. Messaging\n is ideal for these applications.\n- *Mediation* . A messaging system acts as a mediator, as in the Mediator pattern [GoF]. For example,\n if an application becomes disconnected from the others, it need only reconnect to\n the messaging system, not to all of the other messaging applications.\n\n## Programming Model\n\nMessaging is not limited to physically distributed systems. It can be just as useful\n as a programming model to define the interaction between different parts of an application.\n Naturally, applications that include concurrent processing benefit the most from messaging.\n This fact is reflected by programming languages that are aimed at concurrent programming,\n such as [Erlang](http://ftp.sunet.se/pub/lang/erlang/) (see a also the [Functions + Messages + Concurrency = Erlang](http://www.slideshare.net/siouxhotornot/presentatie-joe-armstrong) presentation by Joe Armstrong) or more recently [Go](http://golang.org/). Go includes [channels](http://golang.org/doc/effective_go.html#sharing), which can be buffered (allowing for asynchronous communication) or unbuffered (allowing\n for sync points). I am hopelessly behind on checking out Go, but I hope to get to\n play with it one of these days.\n\nEven though latency or unreliable communication are typically less of a concern in\n a non-distributed system, these systems share some of the benefits of a distributed\n message-based system. On top of the list is likely the simplified interaction model.\n Sending (one-way) messages to other components makes for a clear separation and often\n provides a more convenient programming model than threads. Message-oriented API's\n steer towards a data flow architecture as opposed to threads, where the control flow\n tends to stand in the foreground. What better suits your application depends, but\n it's good to consider both options.\n\n## Event-sourced Applications\n\nSo far we looked at messaging at the infrastructure (plumbing) and API layers. But\n a quite different use of messaging can be found the application domain layer. If all\n interactions with your domain layer occur through messages (or events – let's postpone\n the discussion about the difference), you can gain some unique features that would\n be otherwise difficult to obtain. The best description I have seen is Martin Fowler's\n [event-sourced application](http://martinfowler.com/eaaDev/EventSourcing.html).\n\nThe short version is that by representing all system updates as a stream of messages\n over time, you are able to go back in time and play back a modified stream of events,\n thus allowing you to perform \"what if\" calculations. A prime example is payroll computation.\n Let's assume an error was made during data entry, causing a worker to report an incorrect\n number of hours worked. The system recorded 39 hours worked, but the person actually\n worked 41 hours. By the time the error is detected, the pay period has already been\n closed and (incorrect) wages have been paid. The system is now tasked with computing\n how much the employee should have been paid. This may not be as simple as computing\n 2 hours' wage and adding it to the next payroll because a number of business rules\n may impact the amount to be paid. For example, by working 41 hours the employee may\n be eligible to be paid overtime, or to receive additional vacation or comp-time. Computing\n the differential can therefore be quite complicated. However, resetting the system\n to a \"snapshot\" to the previous pay period and replaying the correct series of events\n (including the actual hours worked) can compute the correct system state, taking into\n account all business rules. Resolving the error is now reduced to checking the difference\n between the system state based on the correct message stream versus the system state\n based on the actual, but incorrect message stream.\n\nFinancial systems are often based on a similar concept: instead of simply setting\n the account value to $100, each change (aka message) is logged in the system. This\n way one can review what transactions (credits and debits) led to the current system\n state (the account balance).\n\nAs we can see, using messaging is not an all-or-nothing proposition. It can span different\n layers, such as transport, API, or the business domain layer. But even within one\n layer, it's not binary either. For an interesting discussion, see Udi Dahan's [blog post on CQRS](http://www.udidahan.com/2009/12/09/clarified-cqrs/), aka Command-Query Responsibility Segregation. In this architectural model, updates\n are performed via [command messages](../CommandMessage.html), whereas reads are performed synchronously.\n\n*Share:*\n\n*Follow:* [Follow @ghohpe](https://twitter.com/ghohpe) [SUBSCRIBE TO FEED](../ramblings.rss)\n\n*More On:* [MESSAGING](/ramblings_messaging.html) [ALL RAMBLINGS](../ramblings.html)\n\nGregor is a cloud architect and author. He is a frequent speaker on asynchronous messaging,\n IT strategy, and cloud.", "znaku_textu": 7811, "slov": 1173, "odkazu": 50, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/ramblings/74_messaging.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 06:53:49", "sha256": "0c9f77ceac0eebdbfa1b4e4e429b8ae10ab695f31149292214a177ae8d17b551", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://architectelevator.com/blog", "http://ftp.sunet.se/pub/lang/erlang/", "http://www.slideshare.net/siouxhotornot/presentatie-joe-armstrong", "http://golang.org/", "http://golang.org/doc/effective_go.html", "http://martinfowler.com/eaaDev/EventSourcing.html", "http://www.udidahan.com/2009/12/09/clarified-cqrs/", "https://twitter.com/share", "https://twitter.com/ghohpe", "https://leanpub.com/37things"]} {"url": "https://www.enterpriseintegrationpatterns.com/ramblings/75_ddd.html", "titulek": "DDD - Diagram Driven Design - Enterprise Integration Patterns", "h1": "DDD - Diagram Driven Design", "popis": "Drawing a picture turns out to be a useful system design technique", "klicova_slova": "", "kanonicka": "", "jazyk": "en_US", "robots_meta": "", "og": {"og:type": "article", "og:locale": "en_US", "og:site_name": "Enterprise Integration Patterns", "og:title": "DDD - Diagram Driven Design", "og:description": "Drawing a picture turns out to be a useful system design technique", "og:url": "https://www.enterpriseintegrationpatterns.com/ramblings/75_ddd.html"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "DDD - Diagram Driven Design"}, {"uroven": 2, "text": "Presentation Skills – More than a Wide Stance"}, {"uroven": 2, "text": "Diagramming as Design Technique"}, {"uroven": 2, "text": "No Silver Bullet(point)"}], "markdown": "Gregor's Ramblings\n\n---\n\n# DDD - Diagram Driven Design\n\nMAR 22, 2010\n\nFind my posts on IT strategy, enterprise architecture, and digital transformation\n at [ArchitectElevator.com](https://architectelevator.com/blog).\n\nA few years ago, the [Enterprise Architecture Summit](34_cb.html) in Crested Butte once again proved that sticking a bunch of geeks into a remote town\n and injecting alcohol into the mix can lead to very impressive results. In our case,\n it was an A-Z list of 26 new development strategies, starting with ADD – Activity\n Driven Development and ending on ZDD- Zero Defect Development. DDD was allocated in\n honor of Eric Evans as \"Domain Driven Design\". However, I have become convinced that\n another DDD could compete with this choice: Diagram Driven Design.\n\nWhen I talk about Diagram Driven Design, I don’t mean generating code from UML diagrams.\n As I declared before, I am pretty firmly rooted in the [UML as Sketch](http://martinfowler.com/bliki/UmlAsSketch.html) camp. And if people don't give too much about my opinion, I simply quote Grady Booch,\n who remarked that \"The UML was never intended to be a programming language.\" Instead,\n I am talking about a picture that conveys one or more important concepts -- the proverbial\n big picture instead that does not get caught up in details. So you could also call\n what I am about to propose Sketch Driven Development and knock off two letters of\n the development alphabet.\n\n## Presentation Skills – More than a Wide Stance\n\nI recently created and taught a class on presentation skills for engineers. The presentation\n starts with the usual ideas of using strong, impactful visuals, inspired for example\n by books like [Presentation Zen](http://www.amazon.com/exec/obidos/ASIN/0321525655/enterpriseint-20). [iStockPhoto](http://www.istockphoto.com), referenced in that book, turned out to be a good place to invest fifty bucks (beware\n of the free offer – the selection of free images is very limited. Also keep in mind\n that your pre-paid credits expire after one year). I now have high-resolution graphics\n of confident managers, fuel gages indicating that your mileage may indeed vary, shoes\n that apparently do not fit all, and so on. Still, however impactful fancy graphics\n may be, for most technical presentations a wide stance, deep voice, and Steve Jobs-like\n hand gestures (turtleneck optional) are unlikely to cut it. Instead, you need meat:\n what design alternatives did the team have? How do they differ? What are the main\n building blocks of the systems and how do they interact? How did you track down that\n performance bottleneck and what can we learn from it? When Garr Reynolds came to Google\n to give a talk, he acknowledged that technical discussions often require detailed\n diagrams or even snippets of source code. He suggested to provide such detailed information\n in form of a hand-out instead of including it in visual aids. While that’s sound advice,\n your technical presentation will likely be composed of one or more of the following:\n\n- Bullet points\n- Source code\n- Diagrams\n\nTufte already [put bullet points through the grinder](http://www.wired.com/wired/archive/11.09/ppt2.html). According to a recent Tweet, every time you use a bullet point, Ed Tufte kills a\n kitten. Let's hope not. Finally, Death by PowerPoint was immortalized by none less\n than [Dilbert](http://dilbert.com/strips/comic/2000-08-16/) as early as 2000. You also can't fit a lot of source code on a slide, especially\n if you are using a verbose language with checked exceptions. That leaves you with\n diagrams. I believe that diagrams are by far the most useful out of the three, both\n in a technical presentation or a hand-out.\n\nHowever, it's reasonably safe to say that the visual damage caused by Visio's default\n 10 point font size and skimpy line width coupled with poor user judgment is not far\n behind that of endless bullet points. Once again, it's not the tool that is the main\n issue here, but how it's being used. Visio's default settings make for fine engineering\n schematics, but are not suitable to project the proverbial big picture on the wall.\n\nThis insight prompted me to create a sequel to my presentation skills class, which\n explains how to create good technical diagrams. The module covers basics like legibility\n (sans serif fonts of decent size), good color contrast, and alignment, before explaining\n how to maintain visual balance, use a consistent visual vocabulary, or omit unnecessary\n details to emphasize the essentials. While I was putting this presentation together,\n I recognized that many of the techniques that make a good diagram also contribute\n to good system design in general. Diagram-Driven Design can in fact improve your application\n architecture! Let's see how.\n\n## Diagramming as Design Technique\n\n**Visual Vocabulary and Viewpoints**\n\nGood diagrams use a consistent visual language. A box means something (for example,\n a component, a class, a process), a solid line something else (maybe a build dependency,\n data flow, or an HTTP request), and a dashed line something else yet. No, you don’t\n need a [MOF](http://www.omg.org/mof/) and rock-solid semantics, but you need to have an idea what you are depicting how.\n Picking this visual vocabulary is important to define the aspect or architectural\n viewpoint of the system you are going to concern yourself with. Are you going to talk\n (or draw) about source code dependencies, run-time dependencies, call trees, or allocation\n of processes to machines? Good design is often tied to the ability to think in abstractions.\n Diagrams are personified abstractions and can be instrumental in this process.\n\n**Limit Levels of Abstraction**\n\nWhen reading technical documents, one of the most frequent problems I encounter is\n a wild mix of different levels of abstraction (the same problem can be found in source\n code). For example, someone may explain the way configuration data affects a system’s\n behavior like this:\n\n> The system configuration is stored on an XML file. The “timetravel” entry can be set\n> to either true or false. The file is read from the local file system or alternatively\n> from the network. If it’s read from the network, you need to have NFS access. The\n> parser is a SAX parser because it’s more memory efficient than a DOM parser. Application\n> code accesses these settings from the “Config” class. This class is a singleton because...\n\nIn these few sentences we learn about the file format, project design decisions, implementation\n detail, performance optimizations and what not. It’s rather unlikely that a single\n reader is actually interested in this smörgåsbord of facts. Drawing a picture forces\n us to clean up our thinking, lest we run out of paper. Do we depict the data flow,\n the class structure, or implementation detail? While a picture does not automagically\n make this problem go away, it puts it in your face much more than a meandering chain\n of prose, which from afar may not look all that bad. A well-known German proverb proclaims\n that “Papier ist geduldig” (paper is patient), meaning paper is unlikely to object\n to what garbage you scribble on it. Diagrams tend to be a little less patient, and\n expose a wild mix of metaphors and abstractions more easily.\n\nWith any diagram or description, it's good to remember that it's simply a model of\n the system, not the actual system. So it's OK to use a bit of artistic license. The\n opening paragraph of \"Data and Reality\" aptly reminds us that \"rivers do not have\n dotted lines in them and freeways are not painted red\".\n\n**Reducing to the Essence**\n\nLimiting the levels of abstraction is only one form of mental scope control. You may\n have seen the billboard-size database schema posters, which include every single table\n and are impressive, but fairly useless, especially when shrunk down to fit on a single\n presentation slide. Omitting unimportant detail to concentrate on what's relevant\n to your message can make a huge difference here.\n\n**Balance and Harmony**\n\nLimiting the levels of abstraction and scope does not yet guarantee a useful diagram.\n Good diagrams lay out important entities such that they are logically grouped, relationships\n become naturally clear, and an overall balance and harmony emerges. If such a balance\n does not emerge, it may just be that your system does not have one. I once sat down\n to review a relative small module of code that consisted of a rather entangled mess\n of classes and relationships. When we tried to document this module, we just could\n not come up with a half-decent way to sketch up what's going on. After a lot of sketching\n and erasing we came up with a picture that resembled a data processing pipeline.\n We subsequently refactored the entangled code to match this new system metaphor.\n\n**Degrees of Uncertainty**\n\nWhen we look at a piece of code, we can always figure out *what* was done, but it's much harder to understand *why* it was done. It can be even more difficult to understand which decisions were made\n consciously and which ones simply happened. When creating diagrams, we have more tools\n at hand to express these nuances: for example, you can use a hand-drawn sketch instead\n of an engineering drawing to convey that the picture is the basis for discussion as\n opposed to the ultimate truth. Many books use this technique effectively, including\n Eric Evans' Domain-driven Design.\n\n**Diagrams are Art**\n\nDiagrams can (and should) be beautiful – little works of art, even. Writing can certainly\n also be artistic, but looking for that beautiful prose in a technical document is\n bound to be a rather disappointing exercise. I am a firm believer that system design\n and architecture has a close relationship to art and (non-technical) design. I do\n have a copy of [Machine Beauty](http://www.amazon.com/exec/obidos/ASIN/046504316X/enterpriseint-20) firmly planted on my bed side table, but learning purely by osmosis has so far not\n been successful, so I'll have to come back to that topic in the future.\n\nBoth visual and technical design start with a blank slate and virtually unlimited\n possibilities. Decisions are often influenced by multiple, usually conflicting forces.\n Good design resolves these forces to create a functional solution, which attains a\n good balance and some degree of beauty. This may explain why many of my friends who\n are great (software) designers and architects have an artistic vein or at least interest.\n\n## No Silver Bullet(point)\n\nAs always, bad diagrams outnumber good diagrams by some margin. Bad diagrams are not\n a useful design technique. They may not even be useful, period. Drawing a lame picture\n will not make your poor design any better. Likewise, beautiful [marchitecture](http://en.wikipedia.org/wiki/Marchitecture) diagrams usually have little do with the actual system being built, and are also\n of limited value (drawing up the real system and placing it side-by-side with the\n marchitecture probably does have some value).\n\nIn technical discussions I have observed many occasions where drawing a diagram has\n greatly improved a conversation and the resulting design decisions. If you are unable\n to draw a good diagram (and it isn't due to lack of skill), it may just be because\n your actual system structure is nothing worth showing to anyone.\n\n*Share:*\n\n*Follow:* [Follow @ghohpe](https://twitter.com/ghohpe) [SUBSCRIBE TO FEED](../ramblings.rss)\n\n*More On:* [DESIGN](/ramblings_design.html) [MODELING](/ramblings_modeling.html) [WRITING](/ramblings_writing.html) [ALL RAMBLINGS](../ramblings.html)\n\nGregor is a cloud architect and author. He is a frequent speaker on asynchronous messaging,\n IT strategy, and cloud.", "znaku_textu": 11629, "slov": 1839, "odkazu": 52, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/ramblings/75_ddd.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 06:53:26", "sha256": "d72edb07a5b8a47ae3a9c29c5de63dfb446641976250d05882985db41d81c7c6", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://architectelevator.com/blog", "http://martinfowler.com/bliki/UmlAsSketch.html", "http://www.amazon.com/exec/obidos/ASIN/0321525655/enterpriseint-20", "http://www.istockphoto.com/", "http://www.wired.com/wired/archive/11.09/ppt2.html", "http://dilbert.com/strips/comic/2000-08-16/", "http://www.omg.org/mof/", "http://www.amazon.com/exec/obidos/ASIN/046504316X/enterpriseint-20", "http://en.wikipedia.org/wiki/Marchitecture", "https://twitter.com/share", "https://twitter.com/ghohpe", "https://leanpub.com/37things"]} {"url": "https://www.enterpriseintegrationpatterns.com/ramblings/76_explaining.html", "titulek": "Explaining Stuff - Enterprise Integration Patterns", "h1": "Explaining Stuff", "popis": "At a recent presentation, Martin Fowler introduced himself as a guy \"who is good at explaining things\"", "klicova_slova": "", "kanonicka": "", "jazyk": "en_US", "robots_meta": "", "og": {"og:type": "article", "og:locale": "en_US", "og:site_name": "Enterprise Integration Patterns", "og:title": "Explaining Stuff", "og:description": "At a recent presentation, Martin Fowler introduced himself as a guy \"who is good at explaining things\"", "og:url": "https://www.enterpriseintegrationpatterns.com/ramblings/76_explaining.html"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Explaining Stuff"}, {"uroven": 2, "text": "High-performance Computing Architectures for Executives"}, {"uroven": 2, "text": "Build a ramp, not a cliff"}, {"uroven": 2, "text": "First, create a language"}, {"uroven": 2, "text": "Consistent level of detail"}, {"uroven": 2, "text": "To want I would have liked, but to be allowed I didn't dare"}], "markdown": "Gregor's Ramblings\n\n---\n\n# Explaining Stuff\n\nAUG 30, 2014\n\nFind my posts on IT strategy, enterprise architecture, and digital transformation\n at [ArchitectElevator.com](https://architectelevator.com/blog).\n\nAt a recent presentation, Martin Fowler introduced himself as a guy \"who is good at\n explaining things\". While this certainly has a touch of British Understatement™, it\n also highlights a critically important but rare skill in IT. As technology invades\n all parts of personal and professional lives, causing companies to absolutely depend\n on software and systems, decision makers often can no longer keep track of technical\n details. While no business executive is expected to code a solution, complete ignorance\n of technological evolution and capabilities undoubtedly leads to missed business opportunities\n or unpleasant surprises of IT systems not being able to deliver what the business\n needs or want.\n\nBecause architects live at the intersection of technology and business, it is their\n responsibility to highlight the ramifications of technical decisions to the extent\n they influence development and operational cost, flexibility, agility, or other factors\n that have a direct impact on the business. As the speed of technology evolution continues\n to increase and technology plays an increasingly critical role in new product innovation,\n the group of \"non-technical\" people who have to concern themselves with the ramifications\n of technological decisions will keep on growing.\n\nBut it's not only \"business types\" who face this challenge. Even architects and developers\n cannot possibly keep up with all aspects of complex solutions, forcing them to rely\n on easy-to-understand, but technically accurate descriptions of architectural decisions\n and their implications.\n\n## High-performance Computing Architectures for Executives\n\nA team of architects was recently asked to define a new hardware and software stack\n for high-performance computing, ranging from workload management to storage, for review\n and approval by a management steering committee. Such a recommendation has to consider\n complete stacks like Hadoop, which includes a file system as well as a workload distribution\n mechanism, as well as stand-alone workload management solutions like LSF that run\n on top of a high performance file system. When looking through the slides, I noticed\n \"POSIX compliance\" as criterion for the selection. While this may be completely appropriate,\n how do you explain to someone who knows little about file systems what this means,\n why it is important, and what the ramifications are?\n\n## Build a ramp, not a cliff\n\nWe like to talk about learning curves as \"steep\", meaning it is tough for newcomers\n to become familiar, or \"ramp up\", with a system or tool. I tend to assume my executive\n audience is quite intelligent (you don't get that high up simply by brown-nosing and\n playing politics), so they can in fact climb up a petty steep learning ramp. What\n they cannot do is climb up a vertical cliff.\n\nBuilding a logical sequence and drawing conclusions in an unfamiliar domain is \"steep\",\n but doable. Being bombarded with out-of-context acronyms or technical jargon constitutes\n a \"cliff\". \"Posix compliance\" is a cliff for most people. Explaining that POSIX is\n an API standard widely adhered to by most Unix distributions, and thus avoids lock-in,\n builds a ramp. More importantly, executives could quickly reason that because they\n standardized on a specific Linux distribution, POSIX compliance may not actually be\n quite as relevant as long as the file system is compatible with that distribution.\n Now you involved someone who is not deeply technical in the decision making without\n using much more than a few words. That is a steep, but passable ramp. The ramp may\n not take the audience into the depths of POSIX versions and Linux flavors, but it\n is sufficient within the scope of the discussion at hand. A steep ramp quickly becomes\n too tiresome if you are trying to have your audience climb up to the peak of Mt. Everest,\n so think about how high (or deep) you need your audience to go. Details about POSIX\n history and LSB are not material to the decision at hand, so you should omit them.\n\n## First, create a language\n\nWhen preparing such conversations I tend to use a two-step approach: first I set out\n to establish a basic mental model combined with some vocabulary. Once equipped with\n this, the audience is able to reason in the problem space and to discern the relevance\n of parameters onto the decision. The mental model does not have to be anything formal,\n it merely has to give the audience a way to make a connection between the different\n elements that are being described.\n\nIn the file system example above I would first describe how file access is composed\n of a stack ranging from hardware (i.e. disk), basic block storage (like a SAN) to\n file systems and ultimately the operating system and the applications on top. This\n does not even have to occupy half a slide. Then I can use this vocabulary to explain\n that Hadoop is integrated from the application layer down to the local file system\n and disks without any SAN, NAS or the like. This has specific advantages, such as\n low cost, data locality management etc, but requires you to build applications on\n top of this complete stack. In contrast, stand-alone file systems for high-performance\n computing, for example GPFS or pNFS, either build on top of standard file systems\n or provide \"adapters\" that make the proprietary file system available through standard\n API's. Now this is where the argument of POSIX compliance adds some value, as the\n audience can now understand why it is important and that Hadoop HDFS does not provide\n this feature.\n\n## Consistent level of detail\n\nWhen creating such a line of reasoning determining the appropriate level of detail\n is difficult. For example, we pretended \"POSIX\" is a single thing when in reality\n there are many different version and components, the Linux Standard Base etc. The\n ability to draw the line at roughly the right level of detail is an important skill\n of an architect. Many developers or IT specialists will consider all this detail terribly\n obvious and have a difficult time refraining from inundating their audience with irrelevant\n jargon.\n\nAs with any document or presentation, drawing the line at the right level of detail\n requires you to know your audience. If your audience is mixed, building a good ramp\n is ever more important as it allows you to catch up folks less familiar with the details\n without boring the ones who are. The highest form of creating the ramp is such that\n audience members already familiar with the subject matter appreciate your way of explaining\n it despite not having learned new facts. This is tough to achieve, but a noble goal\n to aim for.\n\nGetting the level of detail \"just right\" is usually a crapshoot, even if you do know\n the audience. At least as important, though, is to have a consistent level of detail.\n If you describe high-level file systems on slide one and then dive into bit encoding\n on magnetic disks in slide two, you are almost guaranteed to either bore or lose your\n audience. Therefore, strive to find a line that provides some amount of cohesion for\n the reasoning required to discern the architectural decision at hand.\n\n## To want I would have liked, but to be allowed I didn't dare\n\nThis is my poor translation of Karl Valentin's famous quote \"Mögen hatt ich schon\n wollen, aber dürfen habe ich mich nicht getraut\", which remind me of the biggest challenge\n in explaining technical matter: too many architects believe their audience will never\n \"get\" their explanations anyway or will consider them a gearhead unfit for management\n for trying to do so. Others go a step further and actually prefer to confuse management\n with disconnected jargon so that their \"decisions\" (in fact, often simply preferences\n or vendor recommendations) are not unnecessarily put into question.\n\nI have a very critical view of such behavior. Your role as an architect is to get\n a broad audience to understand the ramifications of decisions and assumptions that\n were made. After all, this is where most of the biggest problems pop up. For example,\n if a few years later an IT system can no longer serve the business needs, it is often\n due to a constraint or an invalid assumption that was made but never clearly communicated.\n Therefore, communicating decisions and trade-offs clearly protects both you and the\n business.\n\n*Share:*\n\n*Follow:* [Follow @ghohpe](https://twitter.com/ghohpe) [SUBSCRIBE TO FEED](../ramblings.rss)\n\n*More On:* [WRITING](/ramblings_writing.html) [ALL RAMBLINGS](../ramblings.html)\n\nGregor is a cloud architect and author. He is a frequent speaker on asynchronous messaging,\n IT strategy, and cloud.", "znaku_textu": 8803, "slov": 1415, "odkazu": 43, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/ramblings/76_explaining.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 06:53:48", "sha256": "84ee6bcf4a365be4f5f97f5654eae658d7348e9b4a41b254d3d3426e2090f308", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://architectelevator.com/blog", "https://twitter.com/share", "https://twitter.com/ghohpe", "https://leanpub.com/37things"]} {"url": "https://www.enterpriseintegrationpatterns.com/ramblings/77_writing.html", "titulek": "Writing for Busy People - Enterprise Integration Patterns", "h1": "Writing for Busy People", "popis": "One advantage of working for a relatively large organization is that I get to do a little more writing again", "klicova_slova": "", "kanonicka": "", "jazyk": "en_US", "robots_meta": "", "og": {"og:type": "article", "og:locale": "en_US", "og:site_name": "Enterprise Integration Patterns", "og:title": "Writing for Busy People", "og:description": "One advantage of working for a relatively large organization is that I get to do a little more writing again", "og:url": "https://www.enterpriseintegrationpatterns.com/ramblings/77_writing.html"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Writing for Busy People"}, {"uroven": 2, "text": "Quality vs. Impact"}, {"uroven": 2, "text": "\"In the hand\" - First Impressions Count"}, {"uroven": 2, "text": "A good paper is like \"Shrek\""}, {"uroven": 2, "text": "Making it easy for the Reader"}, {"uroven": 2, "text": "How do you spell \"hierarchy\"?"}, {"uroven": 2, "text": "In der Kuerze liegt die Wuerze"}, {"uroven": 2, "text": "Writer's workshop"}, {"uroven": 2, "text": "Producing Paper"}, {"uroven": 2, "text": "Acknowledgment"}], "markdown": "Gregor's Ramblings\n\n---\n\n# Writing for Busy People\n\nSEP 21, 2014\n\nFind my posts on IT strategy, enterprise architecture, and digital transformation\n at [ArchitectElevator.com](https://architectelevator.com/blog).\n\nOne advantage of working for a relatively large organization is that I get to do a\n little more writing again. Not because I have spare time, but because in times of\n rapid change, communication across a large audience is critically important. It turns\n out, short papers are a good way to achieve that and my brief, but accurate technical\n position / decision papers have become a trademark of my architecture group (don't\n worry, we architects produce more than just paper).\n\nCorrespondingly, one of my daily struggles is to convince others to write as well\n and to coach them to become better writers. In a sense, this forces me to transport\n what I know about writing from purely procedural knowledge, i.e. I know how to do\n it, to declarative knowledge, i.e. being able to understand why it is done and to\n describe to others how to do it.\n\nWhile this rambling's title is a pun on the popular books \"Japanese for busy People\",\n it intentionally implies an ambiguity that we are both writing for a busy audience,\n but are busy authors as well.\n\n## Quality vs. Impact\n\nWriting is a tough business because writing takes so much more effort than reading,\n but the written word has distinct advantages over the spoken word:\n\n1. it scales: you can address a large audience without gathering them all in one room\n (podcasts admittedly can also accomplish that)\n2. it's fast: people read 2-3 times faster than they can listen\n3. it can be easily searched or versioned.\n\nConsequently, writing pays off once you have a large (or important) enough audience.\n The catch is that while you can to some extent force people to (at least pretend to)\n listen to you, it's much harder to force anyone to read your stuff. I always remind\n writers that \"the reader is by no means required to turn the page. He or she decides\n based on what they read so far.\" Hey, I am writing this only in the hope that people\n will read it because they find it useful.\n Assuming the topic and focus of the paper are correct, i.e. the readership has a fundamental\n interest in reading the paper, I have repeatedly observed a classic non-linear relationship\n between the quality of writing / editing and the actual readership, which is a good\n proxy metric for the impact, or the \"pay-off\" of writing a technical paper. If the\n paper does not meet a minimum quality bar, e.g. it is verbose, poorly structured,\n full of typos, or displayed in some ridiculous, difficult to read font, people won't\n read it at all, meaning impact is near zero. I call this the \"trash bin\" zone to make\n the outcome blatantly obvious. You may euphemize it to \"shelfware zone\", but the impact\n remains the same: zero. Once the paper reaches a certain quality threshold, people\n will in fact read at least part of the paper and impact starts building. As so often,\n additional quality initially brings rapid improvement, but then quickly tapers off\n as it approaches the infamous \"gold plating\" zone.\n\nThe biggest debate I tend have with my colleagues is where the sweet spot or \"tipping\n point\" is. It will certainly depend on what you are writing and for whom, but in corporate\n communications I posit that it is further to the right than most authors believe.\n Key influencers are very busy people and tend to shy away from anything that is more\n than 5 pages long, unless it is from a high-paid consultancy, in which case they make\n someone else read it. For this impatient readership, clarity of wording and brevity\n are not nice-to-haves: their lack will quickly put your paper quite literally into\n the \"trash bin\" zone. Unsubstantiated claims will do the same: I recently saw an internal\n presentation where the first slide stated \"only technology ABCD has proven to be a\n viable solution\". My immediate response: \"great, show me the proof!\" Sadly, no proof\n existed due to lack of time and funding. These are not wording issues, but fatal flaws.\n I no longer want to see page 2 if I cannot trust page 1.\n\n## \"In the hand\" - First Impressions Count\n\nWhen Bobby and I wrote \"Enterprise Integration Patterns\", the publisher told us about\n the importance of the \"in the hand\" moment, which occurs just when a potential buyer\n picks the book from the shelf and gives a quick glimpse to front and back cover, maybe\n the table of contents, or leaves through the book (back in 2003 people still bought\n books in physical book stores). The reader makes the purchasing decision at this moment,\n not when he or she stumbles on your ingenious conclusion on page 326. This is one\n (but not the only) reason why we included a lot of graphics in our book. About 80%\n of all facing pages contain a piece of graphic: an icon (aka \"Gregorgram\"), a pattern\n sketch, a screen shot, or even a UML diagram. This sends an important message to the\n potential reader that the book is not academic, but pragmatic and approachable.\n\nThe same is true for technical papers to be read not by academics, but by a corporate\n audience. Use a clean layout, insert a handful of expressive diagrams, and, above\n all, keep it short! We limit our internal papers to 5 pages (at 11pt sans serif font\n this equates to 2000-2500 words, about the length of this rambling), with the inevitable\n occasional exception.\n\nTo assess what a short paper will \"feel\" like to the reader without wasting printer\n paper, I zoom out my wysiwyg editor far enough that all pages appear on the screen.\n I can't read the text anymore, but can see the headings, diagrams, and overall flow,\n e.g. the length of paragraphs and sections. This is exactly what a reader will see\n when flipping through your document and deciding whether to start reading. If they\n see and endless parade of bullet points, bulky paragraphs or a giant mess, the paper\n will leave \"the hand\" quite quickly as gravity teleports it into the trash bin.\n\nThis example paper has a lot of diagrams, which is good. However, their visual style\n is somewhat inconsistent. Also, some diagrams are wrapped by text while others are\n isolated. All in all the paper looks interesting, but probably a little too \"busy\".\n\n## A good paper is like \"Shrek\"\n\nMost animated movies have to entertain multiple audiences: the kids who love the characters\n and humor plus the adults who had to shell out thirty bucks to take the family to\n the movies. Great animated movies like \"Shrek\" manage to address both audiences without\n boring the other. They will laugh at different scenes without being distracted by\n each other. Many technical paper also have to address a broad and diverse audience:\n some readers will look for technical detail while others are more interested in key\n decisions and recommendations. While challenging, a few mechanisms can help make everyone\n happy:\n\n- An *executive summary* prefaces the actual paper with the highlights and key decisions. For short papers\n I avoid summaries as I fear they entice readers to not read the rest. If everything\n important can fit into the summary, then why write a whole paper?\n- *Story-telling headings* are a great way to engage readers with very little time while still taking them through\n the whole paper. Imagine your readers only read the headings. Will they get the gist\n of the paper? This implies that headings like \"introduction\" or \"conclusion\" have\n no place in a short paper. Instead, simply state what the context or conclusion are.\n- *Diagrams* can provide a visual anchor for important parts of the paper. Readers who flip through\n may pause at a diagram, so it's good to position them strategically to guide the reader\n to critical sections. Diagrams also help readers who better reason visually than from\n words alone.\n- *Callouts* , i.e. short sections that are offset in a different font or color, indicate to the\n reader that additional detail is provided, but that it can be safely skipped without\n losing the thread of thought. Bobby and I used them in EIP when we could not agree\n whether to include or remove a section which provided \"color commentary\".\n\n## Making it easy for the Reader\n\nAfter a good first impression, your readers will start reading your paper. Because\n trying to condense all good advice on technical writing into a blog entry would be\n preposterous, I like to refer my colleagues, who are mostly non-native speakers, to\n the book [Technical Writing and Professional Communication for Non-Native Speakers](http://www.amazon.com/exec/obidos/ASIN/007030825X/enterpriseint-20) (it appears out of print, but you can fetch a used copy for a few Dollars - I only\n have the second edition from 1991, so I can't comment on how similar it is to the\n first edition). It covers a lot of ground from the very basics, but I like the sections\n on parallelism and paragraph structure best because the fast reader benefits significantly\n from these simple tricks.\n\nParallelism in lists demands that all list entries follow a similar grammatical structure,\n e.g. all start with a verb or an adjective. A counter example would be:\n\n*System A is preferred because:*\n\n- *It is faster*\n- *Cost is also important*\n- *Flexibility*\n- *Stable*\n- *Don't forget to look at long-term evolution*\n\nYou are simply using too many of your reader's brain cells just to parse the text\n instead of focusing on your message. Parallelism is not only useful in lists but also\n in sentences, e.g. when drawing analogies or contrasting. [Technical Writing and Professional Communication for Non-Native Speakers](http://www.amazon.com/exec/obidos/ASIN/007030825X/enterpriseint-20) includes many good examples of this.\n\nParagraphs should focus on a single topic and introduce that topic right at the beginning,\n like this very paragraph: readers can glean that this paragraph is about paragraphs\n even if they only read the first word. They can also rest assured that I don't start\n talking about lists or grammar halfway through, so if they feel they already know\n how to write a good paragraph, they can safely skip this one. This also implies that\n \"It is further important to note that...\" makes for a very poor paragraph opening.\n\n## How do you spell \"hierarchy\"?\n\nFor solid document structure I tend to point colleagues to [The Pyramid Principle](http://www.amazon.com/exec/obidos/ASIN/0273710516/enterpriseint-20), even though I jest that the author must have been unsure how to spell \"hierarchy\"\n and safely opted for \"pyramid\" instead -- to me the logic inside the books is clearly\n about hierarchy of content. Pyramids stand in Egypt. This book tackles another enormous\n challenge in technical writing: your subject is very unlikely to be single-dimensional,\n but your text has to be 100% linear: one word after the other.\n\nWhile somewhat over-hyped and over-priced, I do appreciate the book's sections on\n order. The author highlights that every list or grouping should have an order, which\n is either by time (chronological), structure (relationships), or ranking (importance).\n \"How is this ordered?\" has become a standard question when I review documents including\n a list or grouping.\n\nAnother pet peeve of mine is the usage of the word \"this\" as a stand-alone reference.\n As programmers we understand the dangers of dangling pointers and NPE's, but many\n seem not to apply the same rigor to writing. Too many sentences simply state that\n \"this is a problem\" without being clear what \"this\" actually refers to.\n\n## In der Kuerze liegt die Wuerze\n\nIn technical writing, your readers are not out to appreciate your literary creativity,\n but to understand what you are saying. This implies that less is more when it comes\n to word count. While Walker Royce's book [Eureka!: Discover and Enjoy the Hidden Power of the English Language](http://www.amazon.com/exec/obidos/ASIN/1600379443/enterpriseint-20) spends a good part of the book musing about English words, the advice on brevity\n and editing is sound and the citation from [Zinsser](http://www.amazon.com/exec/obidos/ASIN/0060891548/enterpriseint-20) on the usage of \"I might add,\" \"It should be pointed out,\" and \"It is interesting\n to note.\" fitting: If you might add, add it. If it should be pointed out, point it\n out. If it is interesting to note, make it interesting. The book gives many concrete\n suggestions on how to replace long-winded expressions with single words.\n\nIn our team's internal editing cycles we routinely cut word count by 20-30% despite\n including additional material or previously missing detail. To the first-time author\n this may be shocking, but Saint-Exupéry's adage that \"perfection is achieved not when\n there is nothing more to add, but when nothing is left to take away\" is especially\n true for technical papers. When this type of cruel editing was first bestowed upon\n me by a professional copy editor I felt that the document no longer sounded \"like\n me\". Over the years I have come to appreciate that being crisp and accurate is a great\n way to have a document sound like me.\n\n## Writer's workshop\n\nThe most effective vehicle for improving technical papers is to hold a writer's workshop,\n see this [short description](http://www.cs.wustl.edu/~schmidt/writersworkshop.html) or this [long description](http://www.dreamsongs.com/Files/WritersWorkshop.pdf) for more detail. Writer's workshops have people read and discuss the paper while\n allowing the author to listen, but not intervene. This simulates what happens with\n a paper in real life. Too often I have to remind authors that we cannot distribute\n them personally with every copy of their paper so that they can explain to the reader\n what was really meant. Because writer's workshops are time-intensive we tend to restrict\n them to papers that have gone through an initial review for comprehensibility, but\n are expected to have a large and diverse audience, justifying the extra effort.\n\n## Producing Paper\n\nProducing high-quality position papers can lead to an unexpected amount of organizational\n head-wind. The word \"perfection\" quickly comes up with an invariably negative connotation.\n Other teams claim that their \"agility\" spares them from any need to produce documentation,\n notwithstanding the fact that those teams have no running code to show either. Agile\n software development places the emphasis on producing working code that is worth reading,\n but multi-year IT strategy plans are unlikely to manifest themselves in code alone.\n This is where a document that is worth reading will provide the most value. Alas,\n such documents seem to be even more difficult to find than good code.\n\n## Acknowledgment\n\nI would like to thank [Olaf Zimmermann](http://www.ifs.hsr.ch/Olaf-Zimmermann.11623.0.html?&L=4) for the fruitful discussion at [ECSA 2014](http://ecsa2014.cs.univie.ac.at/) that inspired me to write down my thoughts on writing for busy people.\n\n*Share:*\n\n*Follow:* [Follow @ghohpe](https://twitter.com/ghohpe) [SUBSCRIBE TO FEED](../ramblings.rss)\n\n*More On:* [WRITING](/ramblings_writing.html) [ALL RAMBLINGS](../ramblings.html)\n\nGregor is a cloud architect and author. He is a frequent speaker on asynchronous messaging,\n IT strategy, and cloud.", "znaku_textu": 15155, "slov": 2458, "odkazu": 51, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/ramblings/77_writing.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 06:53:47", "sha256": "9ebf9d1cea1087460a5d3f7c19bf0ce0c45071613cd524c283ae4679f83ab661", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://architectelevator.com/blog", "http://www.amazon.com/exec/obidos/ASIN/007030825X/enterpriseint-20", "http://www.amazon.com/exec/obidos/ASIN/0273710516/enterpriseint-20", "http://www.amazon.com/exec/obidos/ASIN/1600379443/enterpriseint-20", "http://www.amazon.com/exec/obidos/ASIN/0060891548/enterpriseint-20", "http://www.cs.wustl.edu/~schmidt/writersworkshop.html", "http://www.dreamsongs.com/Files/WritersWorkshop.pdf", "http://www.ifs.hsr.ch/Olaf-Zimmermann.11623.0.html?L=4", "http://ecsa2014.cs.univie.ac.at/", "https://twitter.com/share", "https://twitter.com/ghohpe", "https://leanpub.com/37things"]} {"url": "https://www.enterpriseintegrationpatterns.com/ramblings/78_threelegs.html", "titulek": "The 3 Legs of an Architect - Enterprise Integration Patterns", "h1": "The 3 Legs of an Architect", "popis": "Defining what a software or IT architect is or does is no less challenging than defining software architecture itself", "klicova_slova": "", "kanonicka": "", "jazyk": "en_US", "robots_meta": "", "og": {"og:type": "article", "og:locale": "en_US", "og:site_name": "Enterprise Integration Patterns", "og:title": "The 3 Legs of an Architect", "og:description": "Defining what a software or IT architect is or does is no less challenging than defining software architecture itself", "og:url": "https://www.enterpriseintegrationpatterns.com/ramblings/78_threelegs.html"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "The 3 Legs of an Architect"}, {"uroven": 2, "text": "Skill, Impact, Leadership"}, {"uroven": 2, "text": "The Virtuous Cycle"}, {"uroven": 2, "text": "You spin me right round…"}], "markdown": "Gregor's Ramblings\n\n---\n\n# The 3 Legs of an Architect\n\nDEC 28, 2014\n\nFind my posts on IT strategy, enterprise architecture, and digital transformation\n at [ArchitectElevator.com](https://architectelevator.com/blog).\n\nDefining what a software or IT architect is or does is no less challenging than defining\n software architecture itself. The SEI maintains a [list of software architecture definitions](http://www.sei.cmu.edu/architecture/start/glossary/bibliographicdefs.cfm), yet I have not seen a corresponding list for software architects. One could try\n to skirt the issue by declaring that software architects are the people who make software\n architecture. However, I think that this approach would be missing some important\n aspects of being an architect.\n\n## Skill, Impact, Leadership\n\nWhen I am asked to characterize the seniority of an architect, I resort to a simple\n framework that I believe applies to most high-end professions. A successful architect\n has to stand on 3 \"legs\":\n\n1. Skill is the foundation for practicing architects. Depending on the specialization\n this may include specific technologies or architectures such as Service-oriented Architectures.\n This aspect of being an architect can usually be acquired by taking a course, reading\n a book, or perusing on-line material. Most (but not all) certifications focus on verifying\n skill, partly because verifying skill is more easily mapped to multiple choice questions.\n2. Impact measures how the skill is applied in projects to the benefit of a project or\n a company. Impact can take on many forms from financial gain to cost avoidance to\n reduced time-to-market to the ability to incorporate unforeseen requirements late\n in the product cycle without having to start over.\n3. Lastly, leadership acknowledges that experienced architects should mentor junior architects\n to pass on their knowledge and experience. Thought leadership also furthers the state\n of the field as a whole. This can happen for example through publications, speaking\n engagement, research or blogging.\n\nThis classification maps well to other professional fields such as medicine: after\n studying and acquiring skill, doctors practice and treat patients before they go to\n publish in medical journals and pass their learnings to the next generation of doctors.\n\n## The Virtuous Cycle\n\nWhile the model is rather simple, just as a stool cannot stand on two legs it's important\n to appreciate the balance between all three aspects. Skill without impact is where\n new architects start out as students or apprentices. But soon it is time to get out\n into the world and make an impact. Architects that do not make an impact do not have\n a place in a for-profit business.\n\nImpact without leadership is a great place for a solution architect who is engrained\n in projects. However, without leadership this architect will hit a glass ceiling and\n won't become a thought leader in the field. Many companies don't put enough emphasis\n on nurturing or pushing their architects to this level as they fear any distraction\n from the projects reduces impact and thus will cost them money. As a result, architects\n in these companies plateau at an intermediate level and typically won't lead the company\n to innovative or transformative solutions, which can be a much higher cost. Some companies\n like IBM formalize this aspect of leadership under the category \"give back\": distinguished\n engineers and fellows are expected to \"give back\" to the community inside and outside\n the company.\n\nLikewise, leadership without (prior) impact lacks foundation and may be a warning\n signal for so-called ivory tower architects, which lack any relation to reality. This\n undesirable effect can also happen when the impact stage of an architect lies many\n years or even decades back: the architect may preach methods or insights that are\n no longer applicable to current technologies. While some insights are timeless, others\n age with technology: putting as much logic as possible into the database as stored\n procedures because it speeds up processing is no longer a wise approach as the database\n turns out to be the bottleneck in most modern web-scale architectures. Even more dramatic\n is the misalignment of nightly batch cycles with modern 24/7 real-time processing\n requirements.\n\nThe circle closes when a senior architect mentors junior architects. Because feedback\n cycles in (software) architecture are inherently slow, this process can save new architects\n many years of learning by doing and making mistakes. In the end 10 well-mentored\n junior architects can have much more impact than one senior architect, so this aspect\n is critical to scale the architect skill. As I am continuously trying to recruit architects\n and sense that many other large enterprises are in a similar need of architects, scaling\n the skill set is as important as ever.\n\nMentoring not only benefits the mentee, but also the mentor. The old saying that to\n really understand something you need to teach it to someone else is most true for\n architecture. Likewise, giving a talk or writing a paper requires you to sharpen your\n thoughts, which often leads to renewed insight.\n\n## You spin me right round…\n\nExperienced architects will correctly interpret the 80ies reference to mean that an\n architect does not complete the virtuous cycle just once. This is partly driven by\n ever changing technologies and architectural styles. While a person may be a thought\n leader in relational databases, the same person may acquire skill in NoSQL databases.\n The second time around building skill is likely significantly faster because we can\n build on what we already learned. After a sufficient number of cycles we may in fact\n experience what the curmudgeons always knew: that there is really not much new in\n software architecture and we've seen it all before.\n\nAnother reason to repeat the cycle is that the second time around our understanding\n may be at a much deeper level. The first time around we may have learned how to do\n things, but the second time we may understand why. For example, it is likely no misrepresentation\n that writing [Enterprise Integration Patterns](../eaipatterns.html) is a form of thought leadership. Still, some of the elements such as the pattern\n icons or the decision trees and tables in the [chapter introductions](../MessageRoutingIntro.html) were more accidental than based on deep insight. Only now in hindsight we can we\n understand them as instances of a visual pattern language or pattern-aided decision\n approaches. Thus it's often worth to make another cycle.\n\n*Share:*\n\n*Follow:* [Follow @ghohpe](https://twitter.com/ghohpe) [SUBSCRIBE TO FEED](../ramblings.rss)\n\n*More On:* [ARCHITECTURE](/ramblings_architecture.html) [ALL RAMBLINGS](../ramblings.html)\n\nGregor is a cloud architect and author. He is a frequent speaker on asynchronous messaging,\n IT strategy, and cloud.", "znaku_textu": 6884, "slov": 1059, "odkazu": 46, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/ramblings/78_threelegs.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 06:53:46", "sha256": "dc91c4cde21d4da7061ce20d654802a70fe6e99bfdec9505d2c31fd8b926d411", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://architectelevator.com/blog", "http://www.sei.cmu.edu/architecture/start/glossary/bibliographicdefs.cfm", "https://twitter.com/share", "https://twitter.com/ghohpe", "https://leanpub.com/37things"]} {"url": "https://www.enterpriseintegrationpatterns.com/ramblings/79_elevator.html", "titulek": "The Architect Elevator - Enterprise Integration Patterns", "h1": "The Architect Elevator", "popis": "Architects frequently play a critical role as connecting and communicating element between multiple parties", "klicova_slova": "", "kanonicka": "", "jazyk": "en_US", "robots_meta": "", "og": {"og:type": "article", "og:locale": "en_US", "og:site_name": "Enterprise Integration Patterns", "og:title": "The Architect Elevator", "og:description": "Architects frequently play a critical role as connecting and communicating element between multiple parties", "og:url": "https://www.enterpriseintegrationpatterns.com/ramblings/79_elevator.html"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "The Architect Elevator"}, {"uroven": 2, "text": "A Missing Link"}, {"uroven": 2, "text": "The Architect Elevator"}, {"uroven": 2, "text": "Not a One Way Street"}, {"uroven": 2, "text": "High-Speed Elevators"}, {"uroven": 2, "text": "Other Passengers"}, {"uroven": 2, "text": "Update: The Lift Boy"}, {"uroven": 2, "text": "Commercial Break: Ride the Elevator with Us!"}, {"uroven": 2, "text": "Colophon"}], "markdown": "Gregor's Ramblings\n\n---\n\n# The Architect Elevator\n\nJAN 15, 2015\n\nFind my posts on IT strategy, enterprise architecture, and digital transformation\n at [ArchitectElevator.com](https://architectelevator.com/blog).\n\n## A Missing Link\n\nArchitects frequently play a critical role as connecting and communicating element\n between multiple parties. Especially in large organizations such communication is\n an important factor: too many parties speak different languages to convey different,\n and often conflicting, objectives. Many layers of management only exacerbate the problem\n as communicating to corporate leadership resembles the \"telephone game\" where a circle\n of kids relays a message one-by-one just to realize at the end that the message has\n completely changed along the way. In the enterprise IT world, the worst case scenario\n happens when people holding relevant information are not allowed to make decisions\n and the decision makers lack relevant information. Not a good state to be in, especially\n in the days where IT has become a driving factor for most types of business.\n\n## The Architect Elevator\n\nArchitects can fill an important void: they work and communicate closely with technical\n staff on projects, but are able to convey technical topics to upper management [without losing the essence of the message](76_explaining.html). Conversely, they understand the company strategy and can translate it into technical\n decisions that support it.\n\nThis is what I call the architect elevator: architects ride the elevator up and down\n to move between the board room and the engine room of a large enterprise. Such a direct\n linkage has become more important than ever: if the board room (or the bridge) believes\n the engines are in reverse and the rudder is turned in hard, but in reality the engines\n are running ahead, major disasters are preprogrammed. This is one reason why (good)\n architects are such a critical asset in the enterprise today.\n\nThe number of floors an architect has to ride in the elevator depends on the organization.\n Flat organizations may not need the elevator at all -- a few flights of stairs are\n sufficient. This may also mean that the up-and-down role of an architect is much less\n critical: if management is keenly aware of the technical reality at the necessary\n level of detail, fewer \"enterprise\" architects are needed. However, classic IT shops\n in large organizations tend to have many, many floors. So many in fact, that a single\n architect elevator may not be able to span all levels. In this case it's OK if a technical\n architect and an enterprise architect meet in the middle and cover their \"half\" of\n the building. The value of the architects in this scenario should not be measured\n by how \"high\" they travel, but by how many floors they span. This is a common mistake\n in large organizations where the folks in the penthouse tend to see only the architects\n in the upper half and assume that they have more value. Conversely, many developers\n or technical architects consider \"enterprise\" architects less useful because they\n don't code. This can be true in some cases -- these architects enjoy life in the\n upper floors so much that they are not keen to take the elevator ever down again.\n But an \"enterprise\" architect who travels half way down the building to meet up with\n technical architects can have a significant value.\n\n## Not a One Way Street\n\nInvariably you will meet folks who ride the elevator, but only once to the top and\n never back down. They enjoy the good view too much and feel that they did not work\n so hard to be still visiting the grimy basement or engine room. Frequently you will\n hear the following comment from these folks: \"I used to be technical\". I often can't\n help but retort: \"I used to be a manager\" (it's true) or \"Why did you stop? Were you\n no good at it\"? If you want to be more diplomatic (and philosophical) about it, cite\n [Metropolis](http://en.wikipedia.org/wiki/Metropolis_%281927_film%29) with the slogan \"the head and the hands need a mediator\". In any case: the elevator\n is meant to be ridden up and down. Eating caviar in the penthouse while the basement\n is flooded is not the way to transform corporate IT.\n\nRiding the elevator up-and-down is also an important mechanism for the architect to\n obtain feedback on decisions. As [before](78_threelegs.html), obtaining feedback on decisions is a general challenge for architects. If by the\n time the architectural decision actually had an impact, the architect is only enjoying\n the view from high up, the dreaded [authority without responsibility](http://c2.com/cgi/wiki?AuthorityWithoutResponsibility) anti-pattern has been reached and all hope for feedback cycles is lost.\n\n## High-Speed Elevators\n\nIn the past IT decisions were fairly far removed from the business strategy: IT was\n pretty \"vanilla\" and the main parameter (or KPI = Key performance Indicator) was cost.\n Nowadays the linkage between business goals and technology choices has become much\n more direct, even for \"traditional\" businesses. For example, the need for faster time\n to market to meet competitive pressures translates into an elastic cloud approach\n to computing which in turn requires applications that scale horizontally and thus\n should be designed to be stateless. Targeted content on customer channels necessitates\n analytical models which are tuned by churning through large amounts of data via a\n Hadoop cluster, which favors local hard drive storage over network storage. The fact\n that in one or two sentences a business need has turned into application design or\n the choice of storage attachment highlights the need for architects to ride the elevator.\n Increasingly they have to take the express elevator, though, to keep up with the pace\n at which business and IT are intertwined.\n\n## Other Passengers\n\nIf you are riding the elevator up and down as a successful architect you may encounter\n other folks riding the elevator with you. You may for example meet business or non-technical\n folks who learned that a deeper understanding of IT is critical to the business. Be\n kind to those folks, take them with you and show them around. Engage them in a dialog\n -- it will allow you to better understand business goals and needs and maybe they\n will take you to some higher floors you have not been to.\n\nYou may also encounter folks who ride the elevator down, look around to pick up ideas\n and buzzwords and take them up, selling them as their own suggestions. We don't call\n these people architects. We call them *corporate opportunists*, who have learned that much ignorance in the penthouse supports a solid \"technical\"\n career without going too deep. More colorful names taken from the animal kingdom,\n inspired mostly by things sucking blood or biting ankles, exist. You may be able to\n convert some of these folks and get them more genuinely interested in what is going\n on in the engine room. You may not succeed, though, and then it's best to maintain\n the prototypical elevator silence, avoiding eye contact by examining every ceiling\n tile in detail. Keep your \"elevator pitch\" for those moments when you have a senior\n exec with you, not a mere messenger.\n\n## Update: The Lift Boy\n\nMe friend [Stefan Tai](https://www.ise.tu-berlin.de/menue/team/stefan_tai_prof_dr-ing/) expanded the elevator analogy by another common pattern: people who ride the elevator\n down, but never really get out of the elevator to interact with people in the engine\n room. Instead they may catch some ideas or vocabulary to take back up. People who\n ride the elevator but don't get out are not called architects. They are called \"lift\n boys\".\n\n## Commercial Break: Ride the Elevator with Us!\n\nAre you frequently riding the architect elevator in a large organization, enjoying\n hands-on work in the \"engine room\" as much as connecting technology evolution to business\n strategy? Do you converse equally well in *DI/IOC* and *TDD* or *PaaS* and *HPC* as you do in *IT Transformation*, *2-Speed Architecture*, and *Business Case*? Then you should consider [joining in my team](https://www.linkedin.com/jobs2/view/136775174)! I am looking for a handful of seasoned IT architects in cloud infrastructure, but\n also in middleware and data architecture, to augment my current team at [Allianz](https://www.allianz.com/en/products_solutions/global_lines/amos/amos.html) in Munich, Germany. The team is just 6 months old, rapidly growing, and has direct\n visibility to the Group and Business unit CIO's as well as all Chief Architects. And\n most importantly, we are a bunch of passionate, smart, and fun folks who are challenging\n and transforming \"big\" IT! Sounds interesting? Here is the [job listing](https://jobs.allianz.com/sap/bc/bsp/sap/zhcmx_erc_ui_ex/?jobId=5581793D097E0700E10080000A670216).\n\n## Colophon\n\nI took the elevator photo inside the [Taipei 101](http://en.wikipedia.org/wiki/Taipei_101) tower elevator, which claims to be world's fastest. The elevator to the exclusive\n and somewhat elusive *Summit 101* club is clearly visible.\n\n*Share:*\n\n*Follow:* [Follow @ghohpe](https://twitter.com/ghohpe) [SUBSCRIBE TO FEED](../ramblings.rss)\n\n*More On:* [ARCHITECTURE](/ramblings_architecture.html) [ALL RAMBLINGS](../ramblings.html)\n\nGregor is a cloud architect and author. He is a frequent speaker on asynchronous messaging,\n IT strategy, and cloud.", "znaku_textu": 9312, "slov": 1448, "odkazu": 52, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/ramblings/79_elevator.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 06:53:45", "sha256": "e0cb11189372d24d4302134015505886f51cf9c4cb2f3d28c2f46a810528236c", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://architectelevator.com/blog", "http://en.wikipedia.org/wiki/Metropolis_(1927_film)", "http://c2.com/cgi/wiki?AuthorityWithoutResponsibility=", "https://www.ise.tu-berlin.de/menue/team/stefan_tai_prof_dr-ing/", "https://www.linkedin.com/jobs2/view/136775174", "https://www.allianz.com/en/products_solutions/global_lines/amos/amos.html", "https://jobs.allianz.com/sap/bc/bsp/sap/zhcmx_erc_ui_ex/?jobId=5581793D097E0700E10080000A670216", "http://en.wikipedia.org/wiki/Taipei_101", "https://twitter.com/share", "https://twitter.com/ghohpe", "https://leanpub.com/37things"]} {"url": "https://www.enterpriseintegrationpatterns.com/ramblings/80_syncorswim.html", "titulek": "Sync or Swim - Enterprise Integration Patterns", "h1": "Sync or Swim", "popis": "We were tempted multiple times to extend the EIP icon language, but always felt that simplicity should win over precision", "klicova_slova": "", "kanonicka": "", "jazyk": "en_US", "robots_meta": "", "og": {"og:type": "article", "og:locale": "en_US", "og:site_name": "Enterprise Integration Patterns", "og:title": "Sync or Swim", "og:description": "We were tempted multiple times to extend the EIP icon language, but always felt that simplicity should win over precision", "og:url": "https://www.enterpriseintegrationpatterns.com/ramblings/80_syncorswim.html"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Sync or Swim"}, {"uroven": 2, "text": "Polling vs. Event-driven Consumers"}, {"uroven": 2, "text": "Sink or Swim"}, {"uroven": 2, "text": "Augmenting EIP Icons"}], "markdown": "Gregor's Ramblings\n\n---\n\n# Sync or Swim\n\nFEB 15, 2015\n\nFind my posts on IT strategy, enterprise architecture, and digital transformation\n at [ArchitectElevator.com](https://architectelevator.com/blog).\n\nOur [visual pattern language](../toc.html) has turned out to be a major feature of EIP: what started as an attempt to provide\n an Alexandrian \"sketch\" for each pattern ended up becoming a useful design and communication\n tool. The pattern icons have since been implemented in [Visio and Omnigraffle stencils](../downloads.html), and, thanks to the great folks at [FuseSource](http://fusesource.com) (now Red Hat), compiled into a deck of cards (see right). Also, subsequent pattern\n authors have adopted the idea of defining an iconic language for their patterns, for\n example the [Cloud Computing Patterns](http://www.cloudcomputingpatterns.org/). Lastly, the patterns have also been incorporated into a variety of tools, for example\n the [Fusesource IDE](https://access.redhat.com/documentation/en-US/Fuse_IDE/7.1/html/Introduction_to_Fuse_IDE/files/RiderGSEclipseEditor.html).\n\nWhen talking about tooling, the question often comes up whether it's useful to extend\n or formalize the visual language in a way that facilitates code generation or immediate\n execution. Because we have seen the idea of [visual programming languages go wrong too many times](http://www.jot.fm/issues/issue_2003_01/column1/) we tended to shy away from turning the patterns into a programming language, with\n the notable exception of representing the [patterns as components](16_patternscomponents.html). However, the problems with visual programming may be rooted in the attempt to make\n a *generic* visual language. With messaging being a fairly specific and well defined domain and\n relatively constrained domain, we may just get away with it.\n\n## Polling vs. Event-driven Consumers\n\nEIP defines two patterns that describe how a component consumes and processes events.\n A [Polling Consumer](../PollingConsumer.html) consumes messages at the preferred rate of the application by having the application\n explicitly request the next message. The [Event-driven Consumer](../EventDrivenConsumer.html) on the other hand processes messages as soon as they arrive on the channel. The pattern\n description also mentions the alternative names *synchronous receiver* for the [Polling Consumer](../PollingConsumer.html) and *asynchronous receiver* for the [Event-driven Consumer](../EventDrivenConsumer.html). For example, message processing in the [Polling Consumer](../PollingConsumer.html) happens synchronously with the program execution. We did not detail the synchronous\n or asynchronous aspect for message producers as we assume they are always synchronous,\n meaning they fire messages off at the convenience of the executing program. After\n all, this is one of the benefits of asynchronous messaging: the producer can fire\n off messages at will and the consumer can process them when it feels like doing so.\n If you put the asynchronous channel aside for a moment (and accept somewhat tighter\n coupling), you could connect a synchronous sender directly, i.e. without a queuing\n channel, to an asynchronous receiver: a message created in the context of the producing\n code is processed by the consumer whenever it is received. If both producer and consumer\n are synchronous you do need a buffer or a queue in between as both sides want to produce\n and consume messages at their leisure.\n\n## Sink or Swim\n\nMy former co-worker Ivan Gevirtz described exactly these concepts in his (now somewhat\n dated, but still very relevant) blog post [Sink or swim](http://www.ivanism.com/Articles/SinkorSwim.html), which was inspired by his work in media processing pipelines: \"A side which gets\n told when to act is considered to be asynchronous. It is waiting for the appropriate\n trigger or event to activate it. Otherwise, it is dormant. The side which tells\n another side to act will be called the synchronous side. The synchronous side is\n what determines the timing of the interaction.\"\n\nIvan also defines a visual notation that expresses whether a consumer is synchronous,\n i.e. polling, or asynchronous, i.e. even-driven: the synchronous consumer has a \"nose\"\n and the asynchronous consumer a matching indentation. This visual style makes it clear\n that an asynchronous consumer can only be directly connected to a synchronous producer\n and vice versa. At the very start, I thought assigning the \"nose\" to the synchronous\n consumer is somewhat arbitrary, but if we remind ourselves that a synchronous consumer\n is actively looking for messages from a channel (or another component), the \"nose\"\n is a fitting visual representation: the control flow of this consumer extends \"into\"\n the other component. As long as we assume messages flow left to right, the notation\n feels very natural.\n\n## Augmenting EIP Icons\n\nOne nice property of Ivan's notation is that it overlays nicely with the EIP icons.\n For example, the [endpoint patterns](../MessagingEndpointsIntro.html) are essentially orthogonal to the [routing patterns](../MessageRoutingIntro.html) or [transformation patterns](../MessageTransformationIntro.html), so a single icon could express both aspects: the main function of the pattern and\n the synchronicity of message consumption and generation. We could even think to extend\n the notation to include properties such as whether the endpoint is [transactional](../TransactionalClient.html) or not. One would have to be careful, though that the language remains intuitive\n and avoids getting messy. So let's stick with sync/async for now.\n\nConsidering that most routing and transformation patterns both consume and publish\n messages, we can use the four combinations as defined by Ivan. The diagrams on the\n right shows what the augmented pattern icons would look like (reading the message\n flow from left to right):\n\n- A *Puller* consumes messages synchronously, meaning it \"pulls\" messages when it is ready to\n do so. It publishes messages asynchronously, i.e. when asked for a new message. The\n Puller is driven by the subsequent message consumer asking for messages, which caus\n eit to go and fetch a new source message. The \"noses\" appropriately indicate the control\n flow from right to left.\n- A *Pusher* consumes messages asynchronously, i.e. a channel \"pushes\" messages to it to be processed.\n Each resulting message that is produced is published synchronously at the time it\n is available. Control flow matches data flow in this scenario: from left to right.\n- A *Pool* can connect two synchronous elements, i.e. it needs to provide a buffer to decouple\n the timing between the neighboring elements. [Message Channels](../MessageChannel.html) are classic Pools.\n- A *Driver* can connect two synchronous elements, meaning it has to provide a trigger for these\n elements to take action.\n\nTypical messaging systems as discussed in EIP mostly consist of Pushers, Drivers,\n and Pools (channels) as the control flow follows the messages. Synchronous consumers\n cannot request generation of messages through a [Message Channels](../MessageChannel.html) as the channel decouples the sender from the receiver. However, as our patterns are\n used inside systems that allow control flow in both directions, all forms of interaction\n models are relevant.\n\n*Share:*\n\n*Follow:* [Follow @ghohpe](https://twitter.com/ghohpe) [SUBSCRIBE TO FEED](../ramblings.rss)\n\n*More On:* [PATTERNS](/ramblings_patterns.html) [MESSAGING](/ramblings_messaging.html) [MODELING](/ramblings_modeling.html) [ALL RAMBLINGS](../ramblings.html)\n\nGregor is a cloud architect and author. He is a frequent speaker on asynchronous messaging,\n IT strategy, and cloud.", "znaku_textu": 7665, "slov": 1072, "odkazu": 58, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/ramblings/80_syncorswim.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 06:53:44", "sha256": "8b3eefc1b651e9292938eef37bbdedfc13311c3121f5cf79440704a4d1953dd9", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://architectelevator.com/blog", "http://fusesource.com/", "http://www.cloudcomputingpatterns.org/", "https://access.redhat.com/documentation/en-US/Fuse_IDE/7.1/html/Introduction_to_Fuse_IDE/files/RiderGSEclipseEditor.html", "http://www.jot.fm/issues/issue_2003_01/column1/", "http://www.ivanism.com/Articles/SinkorSwim.html", "https://twitter.com/share", "https://twitter.com/ghohpe", "https://leanpub.com/37things"]} {"url": "https://www.enterpriseintegrationpatterns.com/ramblings/81_restconversation.html", "titulek": "RESTful Conversations - Enterprise Integration Patterns", "h1": "RESTful Conversations", "popis": "As indicated a good while ago I spent some time thinking about patterns that instead of following a message through multiple systems, looks at the message exchange over time between a (mostly) fixed set of systems", "klicova_slova": "", "kanonicka": "", "jazyk": "en_US", "robots_meta": "", "og": {"og:type": "article", "og:locale": "en_US", "og:site_name": "Enterprise Integration Patterns", "og:title": "RESTful Conversations", "og:description": "As indicated a good while ago I spent some time thinking about patterns that instead of following a message through multiple systems, looks at the message exchange over time between a (mostly) fixed set of systems", "og:url": "https://www.enterpriseintegrationpatterns.com/ramblings/81_restconversation.html"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "RESTful Conversations"}, {"uroven": 2, "text": "To REST or not to REST"}, {"uroven": 2, "text": "Application State"}, {"uroven": 2, "text": "Conversation State"}, {"uroven": 2, "text": "Conversation Patterns for REST Services"}, {"uroven": 2, "text": "Conversation Patterns Quo Vadis?"}, {"uroven": 2, "text": "Join my Team"}], "markdown": "Gregor's Ramblings\n\n---\n\n# RESTful Conversations\n\nMAR 15, 2015\n\nFind my posts on IT strategy, enterprise architecture, and digital transformation\n at [ArchitectElevator.com](https://architectelevator.com/blog).\n\nAs indicated a [good while ago](72_eipvolumes.html) I spent some time thinking about patterns that instead of following a message through\n multiple systems, looks at the message exchange over time between a (mostly) fixed\n set of systems. I call these message exchanges \"conversations\", partly because it\n avoids collision with terms like \"orchestration\" or \"choreography\" and partly because\n it makes for a nice bridge between communicating systems and communicating humans.\n \"interactions\" would have been another good name, but I found it a tad too generic,\n even though I did register [interactionpatterns.com](http://www.interactionpatterns.com).\n\nVocabulary aside, my writing efforts on EIP Vol 2 fell very much asleep around 2008,\n first due to lack of time, but then also to my fear that with the rise of REST, stateful\n conversations between systems would step into the background as most integration problems\n are now solved with a simple POST or GET. A presentation and conversation at Stuttgart\n University's [IAAS](http://www.iaas.uni-stuttgart.de/indexE.php) (not IaaS!) PhD Seminar setup by [Frank Leymann](http://www.iaas.uni-stuttgart.de/institut/mitarbeiter/leymann/indexE.php) enlightened me that this is not at all true: systems following the REST architectural\n style very much engage in conversations.\n\n## To REST or not to REST\n\nI am probably the last person to admonish everyone that neither using XML or JSON\n nor HTTP verbs alone makes an interface \"ReSTful\" in the intended sense. First up,\n REST is an architecture style, not a specific technology or encoding. [Mary Shaw and Dave Garlan](/books5.html) defined an architectural style as \"defining a vocabulary of components and connector\n types, and a set of constraints on how they can be combined\". [side note: in my ranking\n of proudest moments, being listed as a [SATURN 2015 keynote speaker](http://www.sei.cmu.edu/saturn/2015/keynotes-and-speakers) alongside Mary Shaw vies for 1st place with [Grady Booch's mention of our book at OOPSLA 2005](37_oopsla.html)]. Second, ReSTfulness is not a binary property. [Leonard Richardson's REST Maturity Model](http://www.crummy.com/writing/speaking/2008-QCon/act3.html) describes multiple levels of maturity that make an API actually ReSTful. Martin Fowler\n wrote a [nice explanation of this model](http://martinfowler.com/articles/richardsonMaturityModel.html), including a halo to be achieved in the REST Nirvana, the mismatching religious metaphors\n being my contribution. Not quite coincidentally, simply sending POX over HTTP gets\n you only maturity level 0, the lowest possible one.\n\n## Application State\n\nThe connection between REST and conversations starts at level 3 of the model, where\n we encounter what must be one of the worse acronyms in recent IT history: [HATEOAS](http://en.wikipedia.org/wiki/HATEOAS), which is supposed to stand for \"Hypertext as the Engine of Application State\". I\n could not actually make out who blessed us with this acronymial masterpiece -- it\n does not appear in [Roy Fielding's thesis](http://www.ics.uci.edu/~fielding/pubs/dissertation/top.htm) or [blog](http://roy.gbiv.com/untangled/2008/rest-apis-must-be-hypertext-driven). If it was up to me, I would change its meaning to *Hideous Acronym That Elaborates On Application State*.\n\nThe unlucky name aside, the idea behind level 3 of the maturity model is that application\n state is expressed through hypermedia (read URI's). In reality this means that a service\n response describes possible follow-on on resources to acted upon by the client in\n form of embedded URI's, aka \"links\". Essentially, this set of URI's defines the legal\n state transitions of the application (and thus the allowed states) to the client as\n Roy Fielding explained in a [somewhat emotional post from 2008](http://roy.gbiv.com/untangled/2008/REST-apis-must-be-hypertext-driven): \"*From that point on, all application state transitions must be driven by client selection\n of server-provided choices that are present in the received representations or implied\n by the user's manipulation of those representations*\". As the application state transitions drive the conversation a client can engage\n in, this representation of application state translates fairly directly into a description\n of allowed conversations. Compared to other ways of describing conversations, such\n as choreography or orchestration, describing conversations with links embedded in\n response messages is a dynamic and relatively loosely coupled mechanism. Speaking\n of loose coupling, my favorite quote from Roy's post is \"*There is so much coupling on display that it should be given an X rating*\" -- I'll make sure to borrow that some time.\n\nPutting the idea of embedding application state transitions in URI's to practice,\n let's draw on [Jim Webber's, Savas Parastatidis' and Ian Robinson's RestBucks example](http://www.infoq.com/articles/webber-rest-workflow), which was in turn inspired by a [popular rambling of mine](18_starbucks.html) -- it's a small world! In their example, once you placed a drink order to RestBucks\n via an HTTP POST, the service will supply you with a response similar to this:\n\n```\n201 Created\nLocation: http://starbucks.example.org/order/1234\nContent-Type: application/xml\n\n\n latte\n 3.0\n \n\n```\n\nAfter the customer has just ordered a drink the next action he or she can take is\n to submit a payment. Correspondingly, a URI for the payment resource is included in\n the response message under the \"next\" element. The semantics of \"next\" URI's are indicated\n by the \"rel\" attribute `http://starbucks.example.org/payment`, meaning client and server have to share a common vocabulary and semantics of resources\n such as \"payment\". The set of the resources and associated actions is also the vocabulary\n for the conversation to be had: you can place an order, make a payment etc. The links\n do not show, though, that you can also potentially update your order -- this is handled\n by the HTTP protocol via the `OPTIONS` verb or the `expect` header.\n\n## Conversation State\n\nThe inclusion of \"next\" links in responses defines the set of valid conversations\n from the perspective of the service provider. Unlike [choreography and orchestration approaches](../docs/IEEE_IC_Conversations.pdf), the conversations are dynamically defined at the time of interaction as opposed\n to an a priori definition. This approach reduces coupling (and thus avoids an X rating),\n however, it does not allow the upfront creation of client workflows that model allowed\n conversations. Instead, the client has to start interacting with the service and see\n what it is being offered to do next. For example, constraints that define valid conversations,\n such as whether a customer can pick up a drink before payment is made or whether the\n drink is started to be made before a payment is received, are represented as a set\n of links embedded in multiple response messages and not known upfront. This means\n that clients cannot make strong assumptions on message order -- the service is in\n the driver's seat. [Once again](19_composing.html), reduced coupling means fewer assumptions, but you (or your code) have to be more\n flexible, which can bring complexity or at least a different way of thinking about\n process flow. If (slightly) stronger coupling is allowed, a REST service could describe\n legal transitions upfront through a special media type. The transitions are then mapped\n to concrete resources via the URI's embedded in `next` elements.\n\nThis relatively simple example also makes it nice and clear that REST services are\n indeed engaged in conversations just like traditional web services, and maybe even\n more so because the individual interactions tend to be simpler, causing services and\n clients to engage in longer conversations to accomplish their ultimate goal.\n\n## Conversation Patterns for REST Services\n\nHaving learned that REST services engage in conversations we should hope that some\n of the [Conversation Patterns I started to document a while ago](../docs/ConversationsEuroPlopFinal.pdf) still have relevance. In fact, one can assume that many new patterns are waiting\n to be \"mined\" from the magnitude of REST services out there, from OpenStack to the\n Amazon API's. This should motivate me to pick the topic of conversation patterns\n back up and make a push towards [EIP 2](72_eipvolumes.html).\n\n[Florian Haupt](http://www.iaas.uni-stuttgart.de/institut/mitarbeiter/haupt/indexE.php), a PhD student at [IAAS Stuttgart](http://www.iaas.uni-stuttgart.de/indexE.php) presented conversation pattern candidates at the PhD Seminar and documented them\n in his upcoming paper [A conversation based approach for modeling REST APIs](http://www.iaas.uni-stuttgart.de/institut/mitarbeiter/haupt/indexE.php#publications), which he is presenting at [WICSA 2015](http://wicsa2015.org/) in May. His interest in conversations stems from his work in model-driven development\n for REST services. Modeling languages are particularly useful if they include higher-level\n constructs for frequently recurring solutions. Such solutions are not patterns *per se*, but could be an indicator that there are related patterns to be harvested. His conversational\n constructs originated from analyzing REST services, but, like all good patterns, are\n not limited to REST services alone.\n\nFlorian shared the example of a *long-running tasks*, which in the REST world defines three resources: a *manager*, a *task*, and a *result* for the client to interact with. This could well be an implementation strategy to\n a *polling* or *callback* conversational pattern. A second example, a [Try-Confirm-Cancel](http://www.atomikos.com/Publications/TryCancelConfirm) sequence, is indeed a common conversation pattern that is as useful with REST services\n as with any distributed system that lacks global transactions. In my [paper on Conversation Patterns](/docs/ConversationsEuroPlopFinal.pdf) I deal with these conversations under the chapter \"Reaching Agreement\", which is\n still incomplete.\n\n## Conversation Patterns Quo Vadis?\n\nThe realization that conversation patterns are as relevant as ever begs the questions\n where I am with [EIP 2: Conversation Patterns](72_eipvolumes.html). I did post the [paper I workshopped at EuroPLoP 2008](/docs/ConversationsEuroPlopFinal.pdf) on-line, but I think I really need two things: a good vehicle to share work in progress\n and a community to provide input and feedback to give me energy. For the former, you\n may have noticed small changes to the Web site's navigation and the renaming of the\n pattern catalog to \"Messaging Patterns\" in preparation of making room for another,\n work-in-progress, catalog. Alas, the site is still being built by Ant 1.7 and XSLT,\n which may soon find a place in the [Computer History Museum](http://www.computerhistory.org/), but is not a great tool for content management or collaboration. For EIP we used\n a simple mailing list and archives for discussion because our Wiki was flooded by\n spam. Maybe mailing lists are becoming \"retro\" and actually work? There is no writing\n on conversation patterns without engaging in conversations!\n\n## Join my Team\n\nOur team is still growing! I am looking for one more senior [Cloud Infrastructure Architect](https://www.linkedin.com/jobs2/view/136775174) to join my team at [Allianz](https://www.allianz.com/en/products_solutions/global_lines/amos/amos.html) in Munich.\n\n*Share:*\n\n*Follow:* [Follow @ghohpe](https://twitter.com/ghohpe) [SUBSCRIBE TO FEED](../ramblings.rss)\n\n*More On:* [CONVERSATIONS](/ramblings_conversations.html) [WEBSERVICES](/ramblings_webServices.html) [INTEGRATION](/ramblings_integration.html) [ALL RAMBLINGS](../ramblings.html)\n\nGregor is a cloud architect and author. He is a frequent speaker on asynchronous messaging,\n IT strategy, and cloud.", "znaku_textu": 12228, "slov": 1696, "odkazu": 69, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/ramblings/81_restconversation.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 06:53:07", "sha256": "675a4fae174ec93c88ffaa47509fd33d5baa5c13a9036e2c54adba56743e766d", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://architectelevator.com/blog", "http://www.interactionpatterns.com/", "http://www.iaas.uni-stuttgart.de/indexE.php", "http://www.iaas.uni-stuttgart.de/institut/mitarbeiter/leymann/indexE.php", "http://www.sei.cmu.edu/saturn/2015/keynotes-and-speakers", "http://www.crummy.com/writing/speaking/2008-QCon/act3.html", "http://martinfowler.com/articles/richardsonMaturityModel.html", "http://en.wikipedia.org/wiki/HATEOAS", "http://www.ics.uci.edu/~fielding/pubs/dissertation/top.htm", "http://roy.gbiv.com/untangled/2008/rest-apis-must-be-hypertext-driven", "http://roy.gbiv.com/untangled/2008/REST-apis-must-be-hypertext-driven", "http://www.infoq.com/articles/webber-rest-workflow", "http://www.iaas.uni-stuttgart.de/institut/mitarbeiter/haupt/indexE.php", "http://wicsa2015.org/", "http://www.atomikos.com/Publications/TryCancelConfirm", "http://www.computerhistory.org/", "https://www.linkedin.com/jobs2/view/136775174", "https://www.allianz.com/en/products_solutions/global_lines/amos/amos.html", "https://twitter.com/share", "https://twitter.com/ghohpe", "https://leanpub.com/37things"]} {"url": "https://www.enterpriseintegrationpatterns.com/ramblings/82_googlepubsub.html", "titulek": "Google Cloud Pub/Sub - Enterprise Integration Patterns", "h1": "Google Cloud Pub/Sub", "popis": "Google released the beta version of their publish-subscribe API just a few weeks ago", "klicova_slova": "", "kanonicka": "", "jazyk": "en_US", "robots_meta": "", "og": {"og:type": "article", "og:locale": "en_US", "og:site_name": "Enterprise Integration Patterns", "og:title": "Google Cloud Pub/Sub ", "og:description": "Google released the beta version of their publish-subscribe API just a few weeks ago", "og:url": "https://www.enterpriseintegrationpatterns.com/ramblings/82_googlepubsub.html"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Google Cloud Pub/Sub"}, {"uroven": 2, "text": "Cloud Pub/Sub = Publish-Subscribe Channel and Competing Consumers"}, {"uroven": 2, "text": "Topics and Subscriptions"}, {"uroven": 2, "text": "REST API"}, {"uroven": 2, "text": "Java Client API"}, {"uroven": 3, "text": "Authenticating"}, {"uroven": 3, "text": "Creating Topics"}, {"uroven": 3, "text": "Publishing Messages"}, {"uroven": 3, "text": "Creating Subscriptions"}, {"uroven": 3, "text": "Consuming Messages"}, {"uroven": 3, "text": "A Tiny Demo App"}, {"uroven": 2, "text": "Integration Patterns"}, {"uroven": 3, "text": "Publish-Subscribe Channel"}, {"uroven": 3, "text": "Competing Consumers"}, {"uroven": 3, "text": "Polling Consumer, Event-driven Consumer"}, {"uroven": 3, "text": "Durable Subscriber"}, {"uroven": 3, "text": "Message Expiration"}, {"uroven": 3, "text": "Transactional Client"}, {"uroven": 3, "text": "Idempotent Receiver"}, {"uroven": 2, "text": "Google Cloud Pub/Sub and Integration Patterns"}, {"uroven": 2, "text": "Join my Team!"}], "markdown": "Gregor's Ramblings\n\n---\n\n# Google Cloud Pub/Sub\n\nAPR 8, 2015\n\nFind my posts on IT strategy, enterprise architecture, and digital transformation\n at [ArchitectElevator.com](https://architectelevator.com/blog).\n\nGoogle [released](http://googlecloudplatform.blogspot.de/2015/03/using-Google-Cloud-pubsub-to-Connect-applications-and-data-streams.html) the beta version of their [Google Cloud Pub/Sub API](https://cloud.google.com/pubsub/overview) in early March. For a beta version, it comes with pretty generous quota: 10,000 messages\n per second across up to 10,000 topics. I built a very simple demo app to and describe\n the implementation choices using [Integration Patterns](/eaipatterns.html).\n\n## Cloud Pub/Sub = Publish-Subscribe Channel and Competing Consumers\n\nAt the heart of the Cloud Pub/Sub is a classic [Publish-Subscribe Channel](/PublishSubscribeChannel.html), which delivers a single message published to it to multiple subscribers. One advantage\n of this pattern is that adding subscribers is side-effect free, which is one reason\n a [Publish-Subscribe Channel](/PublishSubscribeChannel.html) is sometimes considered more loosely coupled than a [Point-to-Point Channel](/PointToPointChannel.html), which delivers a message to exactly one subscriber. Adding consumers to a [Point-to-Point Channel](/PointToPointChannel.html) results in [Competing Consumers](/CompetingConsumers.html) and thus has a strong side effect.\n\nUpon closer inspection, we realize that the Google Cloud Pub/Sub API actually implements\n both the [Publish-Subscribe Channel](/PublishSubscribeChannel.html) **and** the [Competing Consumers](/CompetingConsumers.html) patterns. This is the reason Google can cite a variety of use cases in the [Overview Document](https://cloud.google.com/pubsub/overview):\n\n- Balancing workload\n- Distributing event notifications\n- Logging to multiple systems\n- Data streaming\n- ...\n\n## Topics and Subscriptions\n\nInterestingly, the [Competing Consumers](/CompetingConsumers.html) aspect is not (yet) shown in the [Overview Diagram.](https://cloud.google.com/pubsub/images/many-to-many.png) The diagram makes clear, though, that the Pub/Sub implementation separates the concepts\n of *topic* and *subscription*:\n\n- **Topics** represent the pub-sub aspect of the system: if multiple subscribers subscribe to\n the same topic, each of them will receive a copy of the message published to the topic.\n- **Subscriptions** represent the competing consumers aspect of the system: if multiple subscribers pull\n messages from the same subscription, only one of them will receive the message.\n\nI depicted this behavior in a modified version of Google's image:\n\nIn this example *Message 2* is only received by *Subscriber B1* as both *Subscriber B1* and *Subscriber B2* compete for the message from the same subscription. In contrast, both *Subscriber Y* and *Subscriber Z* each receive a copy of *Message 3* as they are subscribing to the same *Topic C*, but through separate subscriptions.\n\nSeparating topics and subscriptions is an elegant way to provide both [Publish-Subscribe Channel](/PublishSubscribeChannel.html) and [Point-to-Point Channel](/PointToPointChannel.html) semantics through a single API. It also clarifies why Google separated the two concepts:\n each subscription represents a message queue that is fed by the pub-sub topics. If\n multiple subscriptions are attached to one topic, each of them receives a copy of\n each message.\n\n## REST API\n\nCloud Pub/Sub is accessed through a set of REST API's, which, once you are familiar\n with the concept, are fairly natural. A small, but important detail are the resource\n names for topics and subscriptions, which must follow the following format: `projects/*project-identifier/collection/resource-name*` where `*collection*` can be `topics` or `subscriptions`. Following this scheme, listing defined subscriptions can be as simple as making\n the following REST call, assuming you have authenticated via OAuth and your app is\n called `eaipubsub`:\n\n`GET https://pubsub.googleapis.com/v1beta2/projects/eaipubsub/subscriptions`\n\nThe response is a simple JSON structure:\n\n```\n{\n \"subscriptions\": [\n {\n \"name\": \"projects/eaipubsub/subscriptions/mysubscription\",\n \"topic\": \"projects/eaipubsub/topics/sometopic\",\n \"pushConfig\": { },\n \"ackDeadlineSeconds\": 60\n }\n ]\n}\n```\n\n## Java Client API\n\nAs with most Cloud API's, Cloud Pub/Sub comes with a variety of client libraries.\n I tend to have mixed feelings with generated client libraries for REST API's as I\n fear they negate some of the dynamic aspects and simplicity of the REST style. For\n building little sample applications, though, they do provide a nice starting point.\n I set out to build simple console applications that setup topics and subscriptions\n and then publish and consume messages. Wrapping all this into a little helper class\n resulted in a little less than 100 lines of code, which is not too bad. However, since\n Google recently open sourced Stubby aka [gRPC](https://github.com/grpc), which also includes client stub generators, one wonders whether these could also\n be used for the Cloud API's.\n\nIf you setup your project from scratch, you'll need to import about 10 libraries as\n described in the `readme.html` file in the download.\n\n### Authenticating\n\nWorking with a stand-alone application requires you to authenticate using private\n keys:\n\n```\n private void createClient(String private_key_file, String email) throws IOException, GeneralSecurityException {\n HttpTransport transport = GoogleNetHttpTransport.newTrustedTransport();\n GoogleCredential credential = new GoogleCredential.Builder()\n .setTransport(transport)\n .setJsonFactory(JSON_FACTORY)\n .setServiceAccountScopes(PubsubScopes.all())\n .setServiceAccountId(email)\n .setServiceAccountPrivateKeyFromP12File(new File(private_key_file))\n .build();\n pubsub = new Pubsub.Builder(transport, JSON_FACTORY, credential)\n .setApplicationName(\"eaipubsub\")\n .build();\n }\n```\n\nYou would want to use a custom `HttpRequestInitializer` to enable automatic retry upon failures for anything but trivial demos.\n\n### Creating Topics\n\nMost of the methods throw exceptions based on error HTTP responses, such as creating\n objects that already exist. You can swallow the exceptions or check for existence\n first like I did for topic creation:\n\n```\n Topic createTopic(String topicName) throws IOException {\n String topic = getTopic(topicName);\n Pubsub.Projects.Topics topics = pubsub.projects().topics();\n ListTopicsResponse list = topics.list(project).execute();\n if (list.getTopics() == null || !list.getTopics().contains(new Topic().setName(topic))) {\n Topic newTopic = topics.create(topic, new Topic()).execute();\n return newTopic;\n } else {\n return new Topic().setName(topic);\n }\n }\n```\n\nAs a topic only contains the name, I simply instantiate a new one if the chosen topic\n already exists. `getTopic` does the magic translation from `sometopic` to `/projects/eaipubsub/topics/sometopic`. Many methods are available only through the `projects()` collection, which is likely the result of the translation from the REST URI's.\n\n### Publishing Messages\n\nPublishing a message is similarly straightforward:\n\n```\n List publishMessage(String topicName, String data) throws IOException {\n List messages = Lists.newArrayList();\n messages.add(new PubsubMessage().encodeData(data.getBytes(\"UTF-8\")));\n PublishRequest publishRequest = new PublishRequest().setMessages(messages);\n PublishResponse publishResponse = pubsub.projects().topics()\n .publish(getTopic(topicName), publishRequest)\n .execute();\n return publishResponse.getMessageIds();\n }\n```\n\nYou can publish more than one message at a time and you will receive a list of published\n message ID's in return. Messages carry base64 encoded data, which makes publishing\n them from the [API Explorer](https://developers.google.com/apis-explorer/#p/pubsub/v1beta2/) a little less convenient. You can also add name-value attributes to the message,\n e.g. to carry metadata.\n\n### Creating Subscriptions\n\nCreating subscriptions is also easy if you keep in mind the naming convention and\n the object hierarchy:\n\n```\n Subscription subscribeTopic(String subscriptionName, String topicName) throws IOException {\n String sub = getSubscription(subscriptionName);\n Subscription subscription = new Subscription()\n .setName(sub)\n .setAckDeadlineSeconds(15)\n .setTopic(getTopic(topicName));\n try {\n return pubsub.projects().subscriptions().create(sub, subscription).execute();\n } catch (GoogleJsonResponseException e) {\n if (e.getStatusCode() == HttpURLConnection.HTTP_CONFLICT) {\n return subscription;\n } else {\n throw e;\n }\n }\n}\n```\n\nHere I opted to swallow the exception associated with the 409 \"Conflict\" return code\n if the subscription already exists. As explained above, it's important to distinguish\n the naming (and thus the identity) of topics and subscriptions to make sure you achieve\n the desired channel semantics -- my first attempt did not.\n\n### Consuming Messages\n\nLast, but not least, consuming, or \"pulling\", messages mostly involves navigating\n collections and decoding data while avoid NPE's. Messages have to be explicitly acknowledged\n -- more on that below. I am passing a flag to my method to auto-acknowledge messages\n right after they were received. If you desire (local) transactional semantics, you\n postpone acknowledgment until after successfully processing the message.\n\n```\n List pullMessage(Subscription subscription, int maxMessages, boolean doAck) throws IOException {\n PullRequest pullRequest = new PullRequest()\n .setReturnImmediately(true)\n .setMaxMessages(maxMessages);\n PullResponse response = pubsub.projects().subscriptions().pull(subscription.getName(), pullRequest).execute();\n List messages = response.getReceivedMessages();\n List ackIds = Lists.newArrayList();\n List data = Lists.newArrayList();\n if (messages != null) {\n for (ReceivedMessage receivedMessage : messages) {\n PubsubMessage message = receivedMessage.getMessage();\n if (message != null) {\n byte[] bytes = message.decodeData();\n if (bytes != null) {\n data.add(new String(bytes, \"UTF-8\"));\n }\n }\n ackIds.add(receivedMessage.getAckId());\n }\n if (doAck) {\n AcknowledgeRequest ackRequest = new AcknowledgeRequest().setAckIds(ackIds);\n pubsub.projects().subscriptions().acknowledge(subscription.getName(), ackRequest).execute();\n }\n }\n return data;\n }\n```\n\nYou can pull one or multiple messages per pull request and also chose whether to block\n until a message arrives or whether to return immediately by means of the `setReturnImmediately` property.\n\n### A Tiny Demo App\n\nPackaging all of this along with some fields and a constructor into a wrapper class\n allows you to send messages like this:\n\n```\n static final String PROJECT = \"eaipubsub\";\n static final String TOPIC = \"sometopic\";\n\n public static void main(String[] args) throws IOException, GeneralSecurityException {\n PubSubWrapper pubsub = PubSubWrapper.getInstance(\n System.getProperty(\"PRIVATE_KEY_FILE_PATH\"),\n System.getProperty(\"SERVICE_ACCOUNT_EMAIL\"),\n PROJECT);\n\n String data = (args.length > 0) ? args[0] : \"hello pub/sub api\";\n pubsub.createTopic(TOPIC);\n List messageIds = pubsub.publishMessage(TOPIC, data);\n if (messageIds != null) {\n for (String messageId : messageIds) {\n System.out.println(\"Published with a message id: \" + messageId);\n }\n }\n }\n```\n\n## Integration Patterns\n\nLet's look at how different [Integration Patterns](http://www.eaipatterns.com/toc.html) find themselves in the Cloud Pub/Sub implementation. This will also be a nice test\n of time for the patterns to see whether the vocabulary established through the patterns\n is still relevant with cloud API's, something we did not even dream off when we wrote\n the book in 2003!\n\n### Publish-Subscribe Channel\n\nCloud Pub/Sub has classic [Publish-Subscribe Channel](/PublishSubscribeChannel.html) semantics. Not part of the pattern, but of the related discussion is the notion of\n a *topic hierarchy*, as for example described in the (somewhat dated) [OASIS WS-Topics](http://docs.oasis-open.org/wsn/wsn-ws_topics-1.3-spec-os.pdf) specification. A topic hierarchy organizes the topic as a hierarchy or tree and is\n often coupled with wildcard subscriptions that allow subscribing to \"higher-up\" nodes,\n which equates to subscribing to all topics underneath that node. Cloud Pub/Sub does\n not implement a topic hierarchy -- topics must be simple names. Topic names can contain\n a period to create topics such as `mytopic.subtopic`, albeit without any related semantics.\n\n### Competing Consumers\n\nAs illustrated above, Cloud Pub/Sub supports [Competing Consumers](/CompetingConsumers.html) by having multiple consumers pull messages from the same subscription. This feature\n allows for example for the distribution of workload across multiple consumers while\n guaranteeing that each message is consumer by only one consumer.\n\n### Polling Consumer, Event-driven Consumer\n\nMy simple code example implements a rather old-school [Polling Consumer](/PollingConsumer.html) and therefore does not include a `pushConfig` in the subscription. If you are building cloud applications, you are much more likely\n to implement an [Event-Driven consumer](/EventDrivenConsumer.html), which can act as a WebHook receiver. Cloud Pub/Sub is happy to [support both](https://cloud.google.com/pubsub/subscriber#receive).\n\n### Durable Subscriber\n\nCloud Pub/Sub subscribers are [Durable Subscriber](/DurableSubscription.html)s: messages published to a topic with an active subscription are received even while\n the application is not running and are stored until the application pulls the message.\n This also leads to the \"Poison Message\" syndrome (indeed a missing pattern in our\n [book](http://www.eaipatterns.com/books1.html)): if a particular message causes the consuming application to crash, that same message\n will be pulled again on application restart, causing the application to crash again.\n This happened to me while building the simple Cloud Pub/Sub demo when I sent a non-base64-encoded\n message from the API Explorer that caused `decodeData` to return `null`. A [Channel Purger](/ChannelPurger.html) may be helpful in such situations\n\n### Message Expiration\n\nCloud Pub/Sub does implement a general [Message Expiration](/MessageExpiration.html) of 7 days as explained in the [Quota Policy](https://cloud.google.com/pubsub/quotas). However, this property is not settable on a per-message basis, so the messaging\n system cannot automatically discard messages whose value decreases rapidly with increasing\n age. There also is no [Dead Letter Channel](/DeadLetterChannel.html). On the upside 7 days at 10,000 messages a second adds up to a nice chunk of storage.\n\n### Transactional Client\n\nCloud Pub/Sub supports [Transactional Client](/TransactionalClient.html)s via an explicit message acknowledgment: messages consumers have to acknowledge message\n consumption within a configurable time interval of 15 -600 seconds. Messages that\n were not acknowledged are returned to the subscription to be pulled again.\n\nI tested this behavior with a client that pulls, but never acknowledges messages.\n As expected, a message published to the associated topic is repeatedly redelivered\n after the specified acknowledgment deadline. After starting another subscriber that\n does acknowledge messages on the same subscription (thus operating in the [Competing Consumers](/CompetingConsumers.html) model), the \"bad\" subscriber kept on receiving the message for some time until eventually\n the \"good\" receiver got it and acknowledged it. Fairness across multiple competing\n subscribers to a single subscription is not explicitly defined in the spec, but it\n seems that in case of a wrecked consumer other consumers will eventually have a chance\n to pull the messages that were not acknowledged by the \"bad\" consumer. It's probably\n best to assume the distribution of messages across multiple consumers on a single\n subscription is random.\n\n### Idempotent Receiver\n\nCloud Pub/Sub usually delivers messages exactly once and in order. However, it does\n [not guarantee](https://cloud.google.com/pubsub/subscriber#receive) this behavior. Therefore, the application layer has to ensure subscribers are [Idempotent Receiver](/IdempotentReceiver.html)s. This is not an omission, but surely results in a significant simplification of\n the implementation. Applications that require idempotency at the application level\n can use additional mechanisms, such as a list of received message ID's, to implement\n this behavior.\n\nSadly we did not design an icon for [Idempotent Receiver](/IdempotentReceiver.html) when we wrote the book. I just made this one up. Maybe it'll make it into the 2nd\n edition...\n\n## Google Cloud Pub/Sub and Integration Patterns\n\nIt's satisfying to see that we can discuss much of what Google Cloud Pub/Sub does\n using the pattern language described in [Enterprise Integration Patterns](/eaipatterns.html) 12 years ago. It's also nice to see that messaging semantics blend well with REST\n API's and cloud services, something that seemed very far away in 2003 -- even Web\n Services were described as an [Emerging Standard](/Future.html) back then!\n\nIn case of the Google Cloud Pub/Sub system, I am particularly happy to see it become\n available as I was lucky enough to observe some of the humble beginnings in my days\n at Google CorpEng\n\n## Join my Team!\n\nAre you a top-notch cloud infrastructure or application architect that wants to help\n establish a private cloud infrastructure for one of the largest insurance companies\n in the world? And re-architect critical core applications to efficiently run on it?\n Then consider [joining my team](https://jobs.allianz.com/sap/bc/bsp/sap/zhcmx_erc_ui_ex/?jobId=55C128F4F6E92260E10080000A670216) at Allianz in Munich! I currently have two listings on LinkedIn: [Cloud Infrastructure Architect](https://www.linkedin.com/jobs2/view/136775174) and [Principal Software Architect](https://www.linkedin.com/jobs2/view/136775174), but am also looking for other highly qualified individuals in the areas of IoT,\n Data Architecture, High Performance Computing, etc. Apply directly on [Allianz Careers](https://jobs.allianz.com/sap/bc/bsp/sap/zhcmx_erc_ui_ex/?jobId=55C128F4F6E92260E10080000A670216)!\n\n*Share:*\n\n*Follow:* [Follow @ghohpe](https://twitter.com/ghohpe) [SUBSCRIBE TO FEED](../ramblings.rss)\n\n*More On:* [MESSAGING](/ramblings_messaging.html) [INTEGRATION](/ramblings_integration.html) [CLOUD](/ramblings_cloud.html) [ALL RAMBLINGS](../ramblings.html)\n\nGregor is a cloud architect and author. He is a frequent speaker on asynchronous messaging,\n IT strategy, and cloud.", "znaku_textu": 18458, "slov": 2335, "odkazu": 67, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/ramblings/82_googlepubsub.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 06:53:43", "sha256": "6299f3187093ccef68c4b6dd0e7b53378b54815233071b61a0b718ac609c4d14", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://architectelevator.com/blog", "http://googlecloudplatform.blogspot.de/2015/03/using-Google-Cloud-pubsub-to-Connect-applications-and-data-streams.html", "https://cloud.google.com/pubsub/overview", "https://cloud.google.com/pubsub/images/many-to-many.png", "https://github.com/grpc", "https://developers.google.com/apis-explorer/", "http://www.eaipatterns.com/toc.html", "http://docs.oasis-open.org/wsn/wsn-ws_topics-1.3-spec-os.pdf", "https://cloud.google.com/pubsub/subscriber", "http://www.eaipatterns.com/books1.html", "https://cloud.google.com/pubsub/quotas", "https://jobs.allianz.com/sap/bc/bsp/sap/zhcmx_erc_ui_ex/?jobId=55C128F4F6E92260E10080000A670216", "https://www.linkedin.com/jobs2/view/136775174", "https://twitter.com/share", "https://twitter.com/ghohpe", "https://leanpub.com/37things"]} {"url": "https://www.enterpriseintegrationpatterns.com/ramblings/83_subscribing.html", "titulek": "Free Gift with Subscription (Pattern) - Enterprise Integration Patterns", "h1": "Free Gift with Subscription (Pattern)", "popis": "Discussing the Google cloud Pub/Sub system in the last rambling reminded me that the Publish-subscribe Channel pattern makes for a good example of the subtle but important difference between Messaging Patterns and Conversation Patterns", "klicova_slova": "", "kanonicka": "", "jazyk": "en_US", "robots_meta": "", "og": {"og:type": "article", "og:locale": "en_US", "og:site_name": "Enterprise Integration Patterns", "og:title": "Free Gift with Subscription (Pattern)", "og:description": "Discussing the Google cloud Pub/Sub system in the last rambling reminded me that the Publish-subscribe Channel pattern makes for a good example of the subtle but important difference between Messaging Patterns and Conversation Patterns", "og:url": "https://www.enterpriseintegrationpatterns.com/ramblings/83_subscribing.html"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Free Gift with Subscription (Pattern)"}, {"uroven": 2, "text": "Publish-Subscribe"}, {"uroven": 2, "text": "Subscribe-Notify"}, {"uroven": 2, "text": "Conversation Patterns vs. Messaging Patterns"}, {"uroven": 2, "text": "What is in a name?"}, {"uroven": 2, "text": "More Conversation Patterns"}], "markdown": "Gregor's Ramblings\n\n---\n\n# Free Gift with Subscription (Pattern)\n\nAPR 26, 2015\n\nFind my posts on IT strategy, enterprise architecture, and digital transformation\n at [ArchitectElevator.com](https://architectelevator.com/blog).\n\nDiscussing the Google cloud Pub/Sub system in the [last rambling](/ramblings/82_googlepubsub.html) reminded me that the [Publish-Subscribe Channel](/PublishSubscribeChannel.html) pattern makes for a good example of the subtle but important difference between [Messaging Patterns](/Introduction.html) and [Conversation Patterns](/ramblings/72_eipvolumes.html). This comparison is timely as I picked up documenting Conversation Patterns again.\n It is even more timely as I am flying to Baltimore (via Newark) to [speak](/talks.html) at SATURN 2015, and also to participate in a workshop on microservices.\n\n## Publish-Subscribe\n\n[Publish-Subscribe Channel](/PublishSubscribeChannel.html) is a messaging pattern that explains how multiple subscribers each receive a copy\n of all messages published into this channel. The pattern concerns itself with message\n delivery and takes the viewpoint of a message traveling through the system via channels:\n\n## Subscribe-Notify\n\nIn contrast, *Subscribe-Notify* is a conversation pattern, which focuses on the flow of messages over time between\n a set of participants.\n\nI use the same pattern form to document Conversation Patterns:\n\n- **Context** : the situation in which the pattern applies\n- **Problem** : what design problem the pattern addresses\n- **Forces** : the \"heart\" of the pattern -- why is the problem really a problem?\n- **Sketch** : an overview picture (not a specification) that expresses the \"spirit\" of the pattern\n solution\n- **Solution** : the resolution of the forces\n- **Resulting Context** : Implementation details and ramifications of applying the pattern solution\n\nOne of the best treatments of the role of the individual sections and how to combine\n them into a useful pattern can be found in [Pattern-oriented Software Architecture Vol. 5: On Patterns and Pattern Languages](http://www.amazon.com/exec/obidos/ASIN/0471486485/enterpriseint-20). As always, there is an element of personal preferences in pattern formats. For example,\n Bobby and I prefer to keep the solution statement short, deferring much of the discussion\n into the resulting context. Other pattern authors may set a different emphasis\n\nI show an abbreviated version of the *Subscribe-Notify* conversation pattern here -- the expanded versions will appear on this site some\n time this summer.\n\n---\n\nA participant wants to retrieve information from another participant.\n\n**How can one participant receive information from another participant if that information\n cannot easily be packaged into a single message?**\n\n- A participant could try to aggregate as many individual messages into a larger message\n as possible, but most messaging systems have size limits for messages.\n- Large messages can overburden the receiver who has to parse the message -- an operation\n typically performed in memory. Especially parsing large XML messages, which are still\n in widespread use, tax the receiving system's memory and CPU resources.\n- The individual data to be transmitted may be time sensitive. Storing and aggregating\n it into a single message would reduce the data's value for the recipient.\n- The response data may not be a finite set of data but a continuous stream of data,\n which would make it impossible to know when to bundle up messages.\n\n**The interested participant, or Subscriber, initiates a *Subscribe-Notify* conversation by sending a message to the Provider that expresses its interest in\n data the Provider can supply. The Provider subsequently keeps sending messages to\n the Subscriber until a stop condition is reached.**\n\nThe *Subscribe-Notify* conversation involves the following participants:\n\n- The *Subscriber* initiates the conversation by sending a *Subscribe* message that expresses interest in receiving notification messages. The interest\n may be defined solely by the provider's address (and thus identity) or the *Subscribe* message can contain information as to what messages the *Subscriber* would like to receive, e.g. through a list of *Topics* .\n- The *Provider* waits for incoming *Subscribe* messages and subsequently delivers a stream of *Notify* messages to each *Subscriber* at the pace in which data becomes available or events occur.\n\nThe *Subscribe-Notify* conversation does not have a natural stopping point -- notification messages could\n continue indefinitely. Therefore, a stopping condition is needed. Typical stopping\n conditions include:\n\n- The subscriber sends a stop request in form of an *Unsubscribe* message.\n- The conversation uses a *Lease* (another conversation pattern), causing the conversation to stop after a deadline\n is reached without the subscriber renewing interest.\n- If the channel is connection-oriented (such as an HTTP connection), the provider stops\n sending messages after the subscriber stops accepting connections.\n- The provider notifies the subscriber of the end of the transmission.\n- The provider may simply stop sending messages, leaving the subscriber to realize this\n via a time-out condition.\n\n---\n\n## Conversation Patterns vs. Messaging Patterns\n\nThe conversation pattern discusses the solution from the viewpoint of the participants,\n which are named and exchange messages over time. The conversation sketch includes\n a time dimension, in our case running from top to bottom, whereas the sketch for the\n [Publish-subscribe Channel](/PublishSubscribeChannel.html) only shows the flow of messages from left to right. In the abstract, the difference\n in the pattern languages can be exemplified by the difference in the sketches:\n\nThe *Subscribe-Notify* conversation pattern includes considerations related to unsubscribing or terminating\n the conversation. For example, a *Lease* automatically terminates a conversation if it is not renewed by the *Lessor* in a specified amount of time. The [Publish-Subscribe Channel](/PublishSubscribeChannel.html) on the other hand simply assumes that subscribing and unsubscribing is a lower-level\n function of the messaging system and does not go into much detail on it as the message\n delivery is in the center of the discussion. Conversely, *Subscribe-Notify* does not show multiple *Subscribers* because each of them is engaged in a separate conversation.\n\n## What is in a name?\n\nDiscussing the differences between the patterns got me thinking whether *Subscribe-Notify* is really a good name for the pattern. Synonym names I came across are *Multi-responses* or *Streamed Responses*. Picking the right name is not easy and can often help refine the pattern itself.\n *Subscribe-Notify* and *Streamed Responses* very much emphasize the aspect that messages are sent as data becomes available or\n events occur, implying that the solution of sending a single large messages is not\n practical at all. *Multi-responses* points towards a broader problem, which could include simply breaking a message down\n into smaller parts, e.g. to meet size restrictions. This could be done by a [Splitter](/Sequencer.html) for example. I may consider splitting (pun intended) the two scenarios into separate\n patterns. For example, splitting one message in multiple parts has simpler and deterministic\n termination conditions than subscribing to a stream of events. Such subtle differences\n often help refine and harden the patterns.\n\nThinking of names, \"Publish-Subscribe\" is not the greatest name either. For one, participants\n have to subscribe first before they can receive published messages, so \"Subscribe-Publish\"\n may be more appropriate. Also, \"Publish\" is a per-message action, meaning the message\n source publishes every message while \"Subscribe\" is a meta-action that registers a\n subscriber once to receive published messages. From this view point, \"Subscribe-Unsubscribe\"\n is a more logical pair of terms. [Pattern-oriented Software Architecture](http://www.amazon.com/exec/obidos/ASIN/0471958697/enterpriseint-20) names the pattern *Publisher-Subscriber*, deriving from the roles of the participants, being more consistent. I am guessing\n \"Pub-Sub\" just made such a catchy name, that splitting hairs over the message semantics\n became a secondary consideration.\n\n## More Conversation Patterns\n\nI am in the process of preparing the Conversation Pattern language for publication\n on this site. In the meantime you can get an overview in the [Conversation Patterns Paper](/docs/ConversationsEuroPlopFinal.pdf) I workshopped at EuroPLoP 2008. Good that (good) patterns are timeless...\n\n*Share:*\n\n*Follow:* [Follow @ghohpe](https://twitter.com/ghohpe) [SUBSCRIBE TO FEED](../ramblings.rss)\n\n*More On:* [CONVERSATIONS](/ramblings_conversations.html) [INTEGRATION](/ramblings_integration.html) [ALL RAMBLINGS](../ramblings.html)\n\nGregor is a cloud architect and author. He is a frequent speaker on asynchronous messaging,\n IT strategy, and cloud.", "znaku_textu": 8849, "slov": 1262, "odkazu": 51, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/ramblings/83_subscribing.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 06:53:42", "sha256": "c9a5f842961f5c7e15e2ba194f125e93b63c502a0346edd6fc75a6fb91560969", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://architectelevator.com/blog", "http://www.amazon.com/exec/obidos/ASIN/0471486485/enterpriseint-20", "http://www.amazon.com/exec/obidos/ASIN/0471958697/enterpriseint-20", "https://twitter.com/share", "https://twitter.com/ghohpe", "https://leanpub.com/37things"]} {"url": "https://www.enterpriseintegrationpatterns.com/ramblings/84_saturn.html", "titulek": "SATURN Conference 2015 - Enterprise Integration Patterns", "h1": "SATURN Conference 2015", "popis": "I have not blogged about events in a while, but SATURN 2015 has been an amazing event that's well worth rambling about", "klicova_slova": "", "kanonicka": "", "jazyk": "en_US", "robots_meta": "", "og": {"og:type": "article", "og:locale": "en_US", "og:site_name": "Enterprise Integration Patterns", "og:title": "SATURN Conference 2015", "og:description": "I have not blogged about events in a while, but SATURN 2015 has been an amazing event that's well worth rambling about", "og:url": "https://www.enterpriseintegrationpatterns.com/ramblings/84_saturn.html"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "SATURN Conference 2015"}, {"uroven": 2, "text": "The perfect blend"}, {"uroven": 2, "text": "Celebrity Spotting"}, {"uroven": 2, "text": "Microservices Workshop"}, {"uroven": 2, "text": "Mary Shaw Keynote"}, {"uroven": 2, "text": "Sam Newman on Microservices"}, {"uroven": 2, "text": "Software Architecture as Code"}, {"uroven": 2, "text": "80 Years of Patterns Impact"}], "markdown": "Gregor's Ramblings\n\n---\n\n# SATURN Conference 2015\n\nMay 1, 2015\n\nFind my posts on IT strategy, enterprise architecture, and digital transformation\n at [ArchitectElevator.com](https://architectelevator.com/blog).\n\nI have not blogged about events in a while (my [Rambling category](/ramblings_events.html) tells me almost 6 years!), but [SATURN 2015](http://www.sei.cmu.edu/saturn/2015/) in Baltimore has been an amazing event that's well worth rambling about.\n\n## The perfect blend\n\nOne interesting aspect of [SATURN](http://www.sei.cmu.edu/saturn/2015/) is that academics call it an industry conference whereas folks from industry tend\n to call it an academic conference. While this can lead to minor annoyances (yes, it\n is an industry conference), I feel it highlights why the event is so unique and useful:\n it is a perfect blend of structured thinking from the academic edge combined with\n valuable industry experience that would otherwise not make it to an academic conference\n due to lack of analysis and validation. The blend worked extremely well for me. It\n also implies that there is no product or vendor pitching at this event, aside from\n the occasional book pitch by the author (which should be acceptable - you would do\n the same after going through all the effort) and brief mentions of the sponsors, including\n [Allianz](http://www.allianz.com/careers).\n\n## Celebrity Spotting\n\nIf OOPSLA used to be the spot to hang out with the \"big boys\" (and some girls), SATURN\n has likely taken its place. If you were going to bring all books you could get signed\n from the folks attending the event, you'd need to check an extra piece of luggage:\n [Mary Shaw](http://www.amazon.com/exec/obidos/ASIN/0131829572/enterpriseint-20), [Rebecca Wirfs-Brock](http://www.amazon.com/exec/obidos/ASIN/0201379430/enterpriseint-20), [Len Bass](http://www.amazon.com/exec/obidos/ASIN/0134049845/enterpriseint-20) (his books alone would have you pay an overweight charge), [Simon Brown](https://leanpub.com/software-architecture-for-developers), [George Fairbanks](http://www.amazon.com/exec/obidos/ASIN/0984618104/enterpriseint-20), [Cesare Pautasso](http://www.amazon.com/exec/obidos/ASIN/146149298X/enterpriseint-20), [Doug Schmidt](http://www.amazon.com/exec/obidos/ASIN/0471486485/enterpriseint-20), [Joe Yoder](http://www.joeyoder.com/), [Olaf Zimmermann](http://www.amazon.com/exec/obidos/ASIN/3642624685/enterpriseint-20). And I am sure to have forgotten some folks.\n\n## Microservices Workshop\n\nMonday was an all-day [microservices workshop](https://github.com/michaelkeeling/SATURN2015-Microservices-Workshop) setup by George Fairbanks and Michael Keeling. One may feel that there is not much\n left to say about microservices with [Sam's Book](http://www.amazon.com/exec/obidos/ASIN/1491950358/enterpriseint-20) out and [Martin bliki-ing](http://martinfowler.com/articles/microservices.html) about it. Still, thanks to the superb moderation and the caliber of attendants I\n found the workshop to be very useful. We split into subgroups, of which I attended\n the one on \"API Design\", always a topic of interest. We discussed way too many things\n to even fit into a rambling, so here just some sound bites:\n\n- *Interaction Models* : API design focusses too much on data representation and too little on interaction\n models. I am trying to help solve this.\n- *Domain-driven Service Design* : For the data representation aspect and the \"slicing\" of micro services we should\n have a fresh look at Eric Evans' [Domain-driven Design](http://www.amazon.com/exec/obidos/ASIN/0321125215/enterpriseint-20) . Much of his guidance should apply to service design as well. For example, domain\n boundaries might make good service boundaries.\n- *Versioning* : Service API's should be immutable, relegating evolution to new versions. Another\n option is to do what Google did with Stubby and ProtoBufs's: they push the versioning\n problem into the application layer by extending existing data formats with optional\n fields and designing services such that they can accept calls from \"old\" callers who\n do not yet supply the new fields. In the easiest case this is done with defaults,\n but it can require the service to check which fields are present and to execute the\n corresponding version of the service. It's clever, but from my experience it depends\n on thorough documentation of the behavior inside the proto definition files.\n- *It's all connected* : While this sounds like the dream of a person enamored with integration, at the logical\n level things are indeed also interconnected: the current complex systems and rapid\n cycles have too many moving parts and too many client versions to rely on complete\n testing upfront. Therefore you can only test in production, e.g. with canaries (deploying\n new versions to a limited number of servers to see how things go). This raises the\n question whether users are happy if they experience different versions of a service\n or web site, sometimes even ahead of announcement. If your changes are small and incremental,\n it works relatively well. You can have small changes only if you have short release\n cycles -- otherwise you are making no progress. This implies that out of the Micro-services\n / Agile / DevOps mix you cannot arbitrarily pick a subset - its \"all in or nothing\".\n Martin makes a similar argument in his [You must be this tall to use microservices](http://martinfowler.com/bliki/MicroservicePrerequisites.html) article.\n- *Governance* : Do you let 1000 flowers bloom or do you exercise central control? To me this sounds\n like a classic [decision analysis](http://www.amazon.com/exec/obidos/ASIN/0132336243/enterpriseint-20) question: If you decide upfront and exercise governance you have lower cost -- as\n long as you guess right. If you guess wrong you face high rework costs. Letting things\n evolve over time has a higher inherent cost, but also a higher chance of leading to\n the \"right\" answer. Governance also takes many more forms than a fat book and a big hammer. For example\n Netflix (all good exampels these days seem to come from Netflix) provides a client\n library that include circuit-breaker functionality. Of course not everyone uses that\n library. So they run little disturbances in production that causes your service to\n get hung -- this helps adoption!\n- *Dynamic properties* : Mary Shaw reasoned that systems using micro services architectures are emergent,\n meaning you cannot reason about their behavior until they are assembled and running.\n She would place them in the \"implicit invocation\" block of architectural styles because\n the invocation of one method by another is not explicit like in OO systems, but implicit\n like in pub-sub systems.\n- *Monitoring* : In such a dynamic system, monitoring is paramount. Len mentioned that Netflix collects\n 90 metrics for their canaries.\n\n## Mary Shaw Keynote\n\nIn case you did not know, Mary Shaw co-authored the first and seminal book on [Software Architecture](http://www.amazon.com/exec/obidos/ASIN/0131829572/enterpriseint-20) with Davie Garlan. A key aspect of the book is the categorization into \"architectural\n styles\". For example, we cite the [Pipes-and-filters](/PipesAndFilters.html) style in EIP. She described that the concept emerged when she collected a large number\n of technical documents which tended to include roughly 6 column-inches on \"the architecture\n of my system\" supplemented by about 2 column-inches of diagrams. Looking at a large\n number of these sections, certain categories emerged, which after a while solidified\n into architectural styles. Harvesting design patterns is actually a quite similar\n process of looking for common approaches, although the nuances are somewhat different:\n patterns dig deeper into the forces and intents of the recurring solutions.\n\nMary (unsurprisingly) talked about software engineering, with the core thesis whether\n software engineering does in fact deserve to be called engineering. She drew on civil\n engineering, specifically bridges (Cindy would be happy). It's actually quite amazing\n that the methods devised by the Roman's without any theory and very little mathematics\n lasted into the 19th century. A key element to their success was empirical progress:\n they learned from failure and kept refining their concepts. So real-life buildings\n can be agile, at least if you have enough time and cheap labor. If you want to add\n a true classic to your bookshelf, get Vitruvius' [De Architectura](http://www.amazon.com/exec/obidos/ASIN/0486206459/enterpriseint-20) from 25 BC. The science of bridge engineering came much later, e.g in the form of\n tabulation of iron properties in the mid 1750's. A hundred years later engineers were\n able to do a full analysis of a bridge, at least minus [resonance](http://en.wikipedia.org/wiki/Tacoma_Narrows_Bridge_(1940)).\n\nSo how does software engineering compare? In oder to start from the right mental model\n we have to remember that software is design intensive with negligible manufacturing\n cost: coding is design. Manufacturing used to consist of printing CD's but now consists\n mostly of uploading binaries to a distribution site. People often feel that there\n is no science software development or software engineering. Mary showed that there\n is quite some science in software; it just takes 15-20 years from basic research to\n popularization, at which point it is no longer called \"science\". In our world much\n basic research happened in the mid-80ies, e.g. the notion that connectors are as important\n as components. I guess it's time I finish my interaction patterns... The early 90ies\n saw concept formation followed by much development, exemplified in many conference\n tracks on software architecture and engineering. Internal exploration brought focus\n on formal analysis, quality attributes, and methods such as [ATAM](http://en.wikipedia.org/wiki/Architecture_tradeoff_analysis_method). External exploration brought us processes such as RUP and component-based software\n engineering. Popularization was reached in the last 15 years with many standard interfaces\n and frameworks, many of them driven by the evolution of the Web.\n\nBut software engineering still falls short in many aspects. \"I am trying as hard as\n I can\" is not engineering, Mary reminded us. We fall extremely short in making reference\n materials available. Every chemical engineer can reach for his copy of Perry's Handbook\n -- we have no such thing. Even Grady's effort on the grand Handbook of Architecture\n seem to have stalled. One key difference is that Perry's Handbook has a 15 year update\n cycle, something that would not do us much good (side note: it looks like EIP is heading\n for a similar update cycle). Search has become our method of sharing knowledge. While\n this is a fact of life we should consider whether crawling discussion groups is really\n the path to more mature and reliable software engineering.\n\n## Sam Newman on Microservices\n\nIt was great to see Sam again and reminisce about old stories including pasta tongues\n imported from Japan. He gace a great overview of what it means to use microservices.\n Rather than rehash it here I recommend you read his [new book](http://www.amazon.com/exec/obidos/ASIN/1491950358/enterpriseint-20).\n\nLater Simon and Len put Sam on the \"Microservices trial\", which yielded a ton of great\n sound bites and pearls of wisdom, including:\n\n- Box-box-cylinder as architectural style (Simon)\n- Monolith vs. microservices style is like America vs. Europe (Les)\n- Using the network enforces discipline in setting boundaries (Sam)\n- How would you use a [chaos monkey](http://techblog.netflix.com/2012/07/chaos-monkey-released-into-wild.html) with a monolith? You'd have to take the whole system down! (Sam)\n- We should be cautious with standards. UDDI was a \"lets solve a problem we have not\n solved yet\" type of standard (Sam)\n- Tool progress has allowed us to go smaller, e.g. automation, containers (Sam)\n- If you have a brand-new product, first build a monolith, because you won't know where\n the seams are. Then go to microservices later. (Sam)\n\n## Software Architecture as Code\n\nSimon Brown and I bonded on software visualization, especially aided by annotations.\n I should visit Jersey and he should talk with Erik Doernenburg.\n\n## 80 Years of Patterns Impact\n\nSATURN was also a great moment to bring together the 4 authors of our [20 years of patterns' impact paper](/articles.html): Rebecca, Joe, Olaf and myself. I am still entertained by the thought what the odds\n are that you can author a paper with 3 co-authors whose names start with W (Wirfs-Brock),\n Y (Yoder), and Z (Zimmermann). Bobby should talk to some of these guys :-) The 80\n years are maybe a slight exaggeration as for example I was not part of PLoP until\n 2002 when we [workshopped EIP](/ramblings/66_fouryears.html). The picture shows us in correct alphabetical order.\n\nThanks to all for a great event. There were many more great talks and conversations\n (and some Belgian style brews) that I did not manage to write up. And we stayed safe\n despite the ongoing protests in Baltimore. In the end we only saw a single and very\n peaceful protester on the way home.\n\nLast, but certainly not least, I should thank [my muse](http://www.ifs.hsr.ch/Olaf-Zimmermann.11623.0.html?&L=4) for inviting me to SATURN!\n\n*Share:*\n\n*Follow:* [Follow @ghohpe](https://twitter.com/ghohpe) [SUBSCRIBE TO FEED](../ramblings.rss)\n\n*More On:* [EVENTS](/ramblings_events.html) [ARCHITECTURE](/ramblings_architecture.html) [ALL RAMBLINGS](../ramblings.html)\n\nGregor is a cloud architect and author. He is a frequent speaker on asynchronous messaging,\n IT strategy, and cloud.", "znaku_textu": 13591, "slov": 1968, "odkazu": 67, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/ramblings/84_saturn.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 06:53:41", "sha256": "41b3b7e6c380cdba47dcfe2568c441536e4aa54248020929d2fc9ca800eaf81d", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://architectelevator.com/blog", "http://www.sei.cmu.edu/saturn/2015/", "http://www.allianz.com/careers", "http://www.amazon.com/exec/obidos/ASIN/0131829572/enterpriseint-20", "http://www.amazon.com/exec/obidos/ASIN/0201379430/enterpriseint-20", "http://www.amazon.com/exec/obidos/ASIN/0134049845/enterpriseint-20", "https://leanpub.com/software-architecture-for-developers", "http://www.amazon.com/exec/obidos/ASIN/0984618104/enterpriseint-20", "http://www.amazon.com/exec/obidos/ASIN/146149298X/enterpriseint-20", "http://www.amazon.com/exec/obidos/ASIN/0471486485/enterpriseint-20", "http://www.joeyoder.com/", "http://www.amazon.com/exec/obidos/ASIN/3642624685/enterpriseint-20", "https://github.com/michaelkeeling/SATURN2015-Microservices-Workshop", "http://www.amazon.com/exec/obidos/ASIN/1491950358/enterpriseint-20", "http://martinfowler.com/articles/microservices.html", "http://www.amazon.com/exec/obidos/ASIN/0321125215/enterpriseint-20", "http://martinfowler.com/bliki/MicroservicePrerequisites.html", "http://www.amazon.com/exec/obidos/ASIN/0132336243/enterpriseint-20", "http://www.amazon.com/exec/obidos/ASIN/0486206459/enterpriseint-20", "http://en.wikipedia.org/wiki/Tacoma_Narrows_Bridge_(1940)", "http://en.wikipedia.org/wiki/Architecture_tradeoff_analysis_method", "http://techblog.netflix.com/2012/07/chaos-monkey-released-into-wild.html", "http://www.ifs.hsr.ch/Olaf-Zimmermann.11623.0.html?L=4", "https://twitter.com/share", "https://twitter.com/ghohpe", "https://leanpub.com/37things"]} {"url": "https://www.enterpriseintegrationpatterns.com/ramblings/85_sameoldarchitecture.html", "titulek": "Same Old Architecture - Best of Ramblings - Enterprise Integration Patterns", "h1": "Same Old Architecture - Best of Ramblings", "popis": "Architects can often be found commenting or complaining that many things in IT are the same old stuff in new packaging, created by marketing departments who were in need of a new buzzword", "klicova_slova": "", "kanonicka": "", "jazyk": "en_US", "robots_meta": "", "og": {"og:type": "article", "og:locale": "en_US", "og:site_name": "Enterprise Integration Patterns", "og:title": "Same Old Architecture - Best of Ramblings", "og:description": "Architects can often be found commenting or complaining that many things in IT are the same old stuff in new packaging, created by marketing departments who were in need of a new buzzword", "og:url": "https://www.enterpriseintegrationpatterns.com/ramblings/85_sameoldarchitecture.html"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Same Old Architecture - Best of Ramblings"}, {"uroven": 2, "text": "12 Years of Ramblings"}, {"uroven": 2, "text": "Composition"}, {"uroven": 2, "text": "Boxes and Lines"}, {"uroven": 2, "text": "Configuration over Coding"}, {"uroven": 2, "text": "Statelessness"}, {"uroven": 2, "text": "Domain Modeling"}, {"uroven": 2, "text": "Drunk Driving"}, {"uroven": 2, "text": "Extracting Architecture from Code"}, {"uroven": 2, "text": "Diagram-driven Design"}, {"uroven": 2, "text": "Conversation Patterns"}, {"uroven": 2, "text": "Writing History"}, {"uroven": 2, "text": "It's Good to be Architect at Allianz!"}], "markdown": "Gregor's Ramblings\n\n---\n\n# Same Old Architecture - Best of Ramblings\n\nMay 15, 2015\n\nFind my posts on IT strategy, enterprise architecture, and digital transformation\n at [ArchitectElevator.com](https://architectelevator.com/blog).\n\nArchitects can often be found commenting or complaining that many things in IT are\n the same old stuff in new packaging, created by marketing departments who were in\n need of a new buzzword. For example, aren't microservices really just SOA done right\n while SOA itself stands for \"Same Old Architecture\"? And the whole reactive movement\n seems to have re-discovered callbacks. Maybe there is some truth in this as at the\n recent [SATURN](84_saturn.html) conferences I found myself saying more often than I had expected \"I blogged about\n this\". So let's see which of my past ramblings are still relevant these days.\n\n## 12 Years of Ramblings\n\nThe [first rambling](01_appliances.html) appeared October 2003, almost 12 years ago. The ramblings were intended the be a\n blog format consisting of short articles, but allowing for the occasional rant or\n personal opinion. They were also a vehicle to keep publishing ideas that arose after\n the book was sent to the printer. The ramblings now count around 127,000 words, which\n is approaching the 185,000 words in the book. The ramblings initially came in pretty\n regularly at a rate of about 2 a month, then slowed a little and took a notable interruption\n of almost 4.5 years from 2010 to 2014. In the first 6.5 years 75 ramblings accumulated,\n which comes out to about one rambling per month. The length of the ramblings is fairly\n uniformly distributed with just a few outliers at the bottom (one being [censored](15_indigo.html) and the other one simply [pointing to an article](52_soapatterns.html)) and one at the top (so much going on at [JAOO 2006](47_jaoo.html)):\n\nIn the old days we would have called all this useless statistics, now it is data science!\n\nThe funny naming scheme of the rambling HTML files actually derives from using rather\n primitive shell scripts for HTML page generation, which needed something simple to\n sort on. As I am approaching 100 ramblings soon I should consider an alternative -\n it looks like I created my own Y2K problem! I am sure the odd naming does not help\n the search rank either.\n\n## Composition\n\nMany discussions on microservices highlight again that separating systems into independent\n components or services enables reuse through re-composition. It also brings new complexities,\n e.g. by having to manage the composition layer at design and run-time. The available\n tools at the run-time composition level often are not up to the level we have come\n to rely on at the coding level, making [Good Composers Few and Far in Between](19_composing.html) (2004).\n\n## Boxes and Lines\n\nDiscussing the architecture of large applications broken down into recomposable services\n places the emphasis on how the individual components interact. Therefore, it is still\n the case that when we speak [Of Boxes and Lines](38_interaction.html) (2006) we should pay a lot more attention to the lines than we usually do: the lines\n define the coupling between components and determine run-time overhead. Poorly sliced\n microservices architectures are bound to be poor performers and provide little benefit.\n\n## Configuration over Coding\n\nAnother recurring theme, especially in vendor presentations and corporate IT departments,\n is the \"no coding required\" pitch. It amazes me how afraid corporate IT can be of\n code, especially since we know that pretty much all value generated by IT comes from\n software, which consists of code. Nevertheless, code is seen as a source of problems\n and bugs created by pesky overpaid programmers who hold the business hostage. Therefore,\n the lure of \"it's just configuration, not coding\" is as strong as ever. While raising\n the level of abstraction is generally beneficial, I don't see the magic line between\n coding and configuring. And often, configuration lacks all the great tools and discipline\n coding benefits from, making it cumbersome and dangerous to \"just\" [Configure this](30_configure.html) (2005).\n\n## Statelessness\n\nIf there is one universally desired property in system design, it's statelessness.\n Especially in cloud-ready systems, statelessness brings horizontal scalability and\n resilience. At the same time, a (probably wise) person also once noted a completely\n stateless system never earned a Dollar. I may even go further and claim that pretty\n much all systems are stateful, so claiming statelessness without specifying at which\n abstraction level can make you an [Enemy of the State](20_statelessness.html) (2004).\n\n## Domain Modeling\n\nA good friend of mine recently showed me a slide titled \"The most widely used domain\n concepts\". In giant letters the slide contained the two words \"int\" and \"string\".\n This reminded me that [March is Not a Number](40_marchnan.html) (2006). I guess [Eric Evans](http://domainlanguage.com/) does not have to worry about job security. His search rank now also easily outdoes\n the one of his \"[actor](http://en.wikipedia.org/wiki/Eric_Evans_%28actor%29)\" namesake.\n\n## Drunk Driving\n\nOK, what does this have to do with software? It's pretty easy: slow feedback loops\n cause systems to overswing. This is what happens during [Drunk driving](21_drunkdriving.html) and in much of IT innovation. We tend to oversteer from one extreme to the other\n before we realize we are too close to the curb. For example, some of our microservices\n will end up being too \"micro\" causing performance degradation and management complexity.\n\n## Extracting Architecture from Code\n\nI really enjoyed [Simon Brown's talk at SATURN 2015](http://www.codingthearchitecture.com/presentations/saturn2015-software-architecture-as-code). He highlighted the fact that architecture is not something abstract and decoupled\n from the code - architecture lives in the code. Therefore it is best to extract the\n architecture from the source code, aided by annotations or similar mechanisms as needed.\n This has the advantage that the architecture diagrams are accurate and always up-to-date.\n Simon's talk reminded me of my work [Visualizing Dependencies](11_dependencies.html) (2004), which showed that my beautiful messaging system was really just a bunch of\n synchronous calls managed by a central instance (and bottleneck). Generated architecture\n diagrams don't lie.\n\n## Diagram-driven Design\n\nSpeaking of pictures, drawing a good picture can be useful design tool, leading to\n [Diagram-driven Design](75_ddd.html) (2010). Digrams are concrete and can accommodate limited levels of abstraction, forcing\n architects to focus on the essentials. If it becomes very difficult to draw a picture\n of a system it may be an indication that the system structure is problematic.\n\n## Conversation Patterns\n\nOne topic high on my mind these days are conversation patterns, which I am currently\n documenting and preparing for publication on this site. Conversation patterns look\n ate stateful exchanges between participants over time, which is a nice complement\n to the message-centric view of [Messaging Patterns](/toc.html). The original trigger for a \"conversation view\" on messaging systems came in 2004\n when I compared [Correlation and Conversations](09_correlation.html).\n\n## Writing History\n\nNot all ramblings are treasures of deep historic relevance. While the concept is still\n relevant, the collection of EAI Art drawn in TIBCO Integration Manager hosted at GeoCities\n and linked from my rambling on [Doodleware](02_doodleware.html) (2003) is long gone. The [Wayback machine](http://web.archive.org/web/20090215191139/http://geocities.com/im_art_competition/IM_ART.html) captured the page but not the images. Luckily I preserved one of them for posteriority\n (see right). Who says integration can't be fun?\n\nAlas, no one talks much about [Mashups](58_mashupcamp.html) (2007) anymore. Facebook has long moved out of their [Developer Garage](61_facebookgarage.html) (2007) and [Google Wave](70_wave.html) (2009) has transcended into Internet Nirvana many moons ago. [Google Developer Day](54_gdd.html) (2007) has long become a [massive conference](69_googleio.html) (2009) with a lottery to buy tickets. Many good developer events like [Colorado Software Summit](64_oopslacss.html) (where you would give each talk 3 times) and SD folded. I am no longer a [Microsoft MVP](49_mvpsummit.html) (2007) and I never installed the copy of Vista I bought at the company store. My\n good intentions to write a [Chapter a Day](73_writing.html) (2010) were good for just two more ramblings before a 4.5 year hiatus.\n\nOn the upshot, ramblings are now categorized via tags as I found myself talking about\n more than just integration and messaging. And the layout got cleaned up a tiny bit.\n In the end the ramblings provide a time capsule with some items as relevant as ever\n and some making you go \"oh my\". Thanks for reading through all these years.\n\n## It's Good to be Architect at Allianz!\n\nI am looking for a top-notch [Cloud Infrastructure Architect](https://www.linkedin.com/jobs2/view/136775174) and a [Principal Software Architect](https://www.linkedin.com/jobs2/view/136775174) to help establish a private cloud infrastructure for one of the largest insurance\n companies in the world and nd re-architect critical core applications to efficiently\n run on it. You'll be working in a highly motivated team of technical experts with\n your hands deep in technology but immediate visibility to board-level management.\n\n*Share:*\n\n*Follow:* [Follow @ghohpe](https://twitter.com/ghohpe) [SUBSCRIBE TO FEED](../ramblings.rss)\n\n*More On:* [INTEGRATION](/ramblings_integration.html) [WRITING](/ramblings_writing.html) [ALL RAMBLINGS](../ramblings.html)\n\nGregor is a cloud architect and author. He is a frequent speaker on asynchronous messaging,\n IT strategy, and cloud.", "znaku_textu": 9848, "slov": 1438, "odkazu": 74, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/ramblings/85_sameoldarchitecture.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 06:53:39", "sha256": "b4a7bc0ce564b83e675a39d58c61d39ab13a6f624cd5a0069ccb56d9f1ee0508", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://architectelevator.com/blog", "http://domainlanguage.com/", "http://en.wikipedia.org/wiki/Eric_Evans_(actor)", "http://www.codingthearchitecture.com/presentations/saturn2015-software-architecture-as-code", "http://geocities.com/im_art_competition/IM_ART.html", "https://jobs.allianz.com/sap/bc/bsp/sap/zhcmx_erc_ui_ex/?jobId=55C128F4F6E92260E10080000A670216", "https://www.linkedin.com/jobs2/view/136775174", "https://twitter.com/share", "https://twitter.com/ghohpe", "https://leanpub.com/37things"]} {"url": "https://www.enterpriseintegrationpatterns.com/ramblings/86_isthisarchitecture.html", "titulek": "Is This Architecture? Look for Decisions! - Enterprise Integration Patterns", "h1": "Is This Architecture? Look for Decisions!", "popis": "Part of my job is to review system architectures", "klicova_slova": "", "kanonicka": "", "jazyk": "en_US", "robots_meta": "", "og": {"og:type": "article", "og:locale": "en_US", "og:site_name": "Enterprise Integration Patterns", "og:title": "Is This Architecture? Look for Decisions!", "og:description": "Part of my job is to review system architectures", "og:url": "https://www.enterpriseintegrationpatterns.com/ramblings/86_isthisarchitecture.html"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Is This Architecture? Look for Decisions!"}, {"uroven": 2, "text": "Defining Software Architecture"}, {"uroven": 2, "text": "(Building) Architectural Decisions"}, {"uroven": 2, "text": "Fit for Purpose"}, {"uroven": 2, "text": "Passing the Test"}, {"uroven": 2, "text": "Know how to tell Architecture? Do it with us at Allianz!"}], "markdown": "Gregor's Ramblings\n\n---\n\n# Is This Architecture? Look for Decisions!\n\nJune 15, 2015\n\nFind my posts on IT strategy, enterprise architecture, and digital transformation\n at [ArchitectElevator.com](https://architectelevator.com/blog).\n\nPart of my job is to review system architectures. So I frequently ask teams to show\n me \"their architecture\", but almost as frequently I don't consider what I receive\n an architecture document. The inevitable question \"what do you expect?\" is also not\n so easy for me to answer: despite many formal definitions it's not immediately clear\n what architecture is or whether a document really depicts an architecture. Too often\n we have to fall back to the \"I know it when I see it\" test famously applied to obscene\n material by the Supreme Court. We'd hope that identifying architecture is a more noble\n task than identifying obscene material, so let's try a little harder. I am not a big\n believer in all-encompassing definitions, but tend to use lists of defining characteristics\n or tests that can be applied. One of my favorite tests for architecture documentation\n is whether it contains any non-trivial decisions and the rationale behind them.\n\n## Defining Software Architecture\n\nEnough attempts at defining software architecture have been made that the [Software Engineering Institute](http://www.sei.cmu.edu/) maintains a [reference page of architecture definitions.](http://www.sei.cmu.edu/architecture/start/glossary/classicdefs.cfm)\n\nThe most widely used definitions are likely the one from Garlan and Perry from 1995:\n\nThe structure of the components of a system, their interrelationships, and principles\n and guidelines governing their design and evolution over time\n\nthe ANSI/IEEE Std 1471 version from 2000 (adopted as ISO/IEC 42010 in 2007):\n\nThe fundamental organization of a system, embodied in its components, their relationships\n to each other and the environment, and the principles governing its design and evolution\n\nand the [TOGAF variation](http://www.opengroup.org/public/arch/p1/togaf_faq.htm) thereof:\n\nThe structure of the components, their interrelationships, and principles and guidelines\n governing their design and evolution over time\n\nOne of my personal favorites is from Desmond D'Souza's and Alan Cameron Wills' book\n [Objects, Components, and Frameworks with UML: The Catalysis(SM) Approach](http://www.amazon.com/exec/obidos/ASIN/0201310120/enterpriseint-20) (1998):\n\nDesign decisions about any system that keep implementors and maintainers from exercising\n needless creativity\n\nThe key point here is not that architecture should dampen all creativity, but *needless* creativity, of which I witness ample amounts. I also like the mention of *decisions*. Decision-making is a big part of what an architect does and that's why I like books\n like Ron Howard's [Foundations of Decision Analysis](http://www.amazon.com/exec/obidos/ASIN/0132336243/enterpriseint-20) and Coursera courses like Scott Page's [Model Thinking](https://www.coursera.org/course/modelthinking).\n\n## (Building) Architectural Decisions\n\nDespite these well-thought-out definitions, it's not easy to apply them when someone\n walks up with a PowerPoint slide showing boxes and lines and claims \"this is the architecture\n of my system\". The first test I tend to apply is whether the documentation contains\n meaningful decisions. After all, if no decisions need to be made, why do we need an\n architect and architectural documentation?\n\nI am a big fan of [Martin Fowler's](http://www.martinfowler.com/) knack for explaining the essence of things using extremely simple examples. This\n motivated me to illustrate the \"architectural decision test\" with the simplest example\n I could think of, drawing from the (admittedly limping) analogy to building architecture.\n I even took it upon myself to supply the artwork to make sure things end up about\n as basic as one could wish for and to pay homage to [Alexander's Pattern Sketches](67_patterns.html):\n\nLet's look at the drawing of a house on the left. It has many of the elements that\n we desire in the popular definitions of systems architecture: we see the main *components of the system* (door, windows, roof) and their *interrelationships* (door and windows in the wall, roof on the top). We might be a tad thin, though,\n on *principles governing its design*, but we do notice that we have a single door that reaches the ground and multiple\n windows, which follows common building principles.\n\nYet, to build such a house I would not want to pay an architect. To me this house\n is \"cookie-cutter\", meaning I don't see any non-obvious decisions that an architect\n would have made. Consequently, I would not consider this architecture.\n\nLet's compare this to the sketch on the right-hand side. The sketch is equally simple\n and poorly drawn and the house is almost the same, except for the roof. This house\n has a steep roof and for a good reason: the house is designed for a cold climate where\n winters bring extensive snowfall. Snow is quite heavy and can easily overload the\n roof of the house. A steep roof allows the snow to [slide off](https://www.youtube.com/watch?v=KU58pO74ELg) or be [easily removed](https://www.youtube.com/watch?v=_Po-qpUZ6pE) thanks to gravity, a pretty cheap and widely available resource. Additionally, an\n overhang prevents the sliding snow from piling up right in front of the windows.\n\nTo me, this is architecture: non-trivial decisions have been made and documented.\n The decisions are driven by the system context, in this case the climate. The documentation\n highlights the decisions and omits unnecessary noise.\n\nIf you believe these architectural decisions were all too obvious, let's look at a\n very different house:\n\nThis house looks very different because it was designed for a very different climate:\n a hot and sunny one. This allows the walls to be made out of glass as insulation against\n low temperatures is less of a concern. However, walls of glass have the problem that\n the sun heats up the building making it feel more like a greenhouse. A flat roof is\n no problem in this climate, so extending the roof well beyond the glass walls provides\n shade in the hot summer when the sun is high in the sky. In the winter, when the sun\n is low on the horizon, the sun reaches through the windows and helps warm the building\n interior. Again, we see a fairly simple, but fundamental architectural decision documented\n in an easy-to-understand format that highlights the essence of the decision and the\n rationale behind it.\n\nIf you think the idea of building an overhanging roof is not all that original or\n significant, try buying one of the first homes to feature such a design, e.g. the\n [Case Study House No 22](http://www.stahlhouse.com/) in Los Angeles by architect Pierre Koenig. It's easily in the league for the most\n recognized residential building in Los Angeles or beyond (aided by [Julius Shulman's iconic photograph](http://www.stahlhouse.com/index.php?option=com_content&view=article&id=2&Itemid=113)) and is obviously not for sale. No one is perfect, though: UCLA PhD students have\n measured that the overhang [works better on the south-facing facade](http://www.cpp.edu/~pmlaroche/rdocs/LA_ROCHE_PLEA2002.pdf) than west or east.\n\n## Fit for Purpose\n\nThe simple house example also highlights another important property of architectures:\n rarely is an architecture simply \"good\" or \"bad\". Rather, architecture tends to be\n fit or unfit for purpose. A house with glass walls and a flat roof may be regarded\n as great architecture, but probably not in the Swiss Alps where it'll collapse after\n a few winters or get a leaking roof. Even the dreaded [Big Ball of Mud](http://www.laputan.org/mud/) has its place in \"fit for purpose\" architectures, e.g. when you need to make a deadline\n at all cost and can't care much about what happens afterwards. This may not be the\n context you wish for, but just like houses in some regions have to be earthquake proof,\n some architectures have to be management-proof.\n\n## Passing the Test\n\nHaving stretched the overused building architecture analogy one more time, how do\n we translate this back to software systems architecture? Systems architecture does\n not have to be something terribly complicated. It must include, however, significant\n decisions that are documented and are based on a clear rationale. The word \"significant\"\n may be open to some interpretation and depend on the level of sophistication of the\n organization, but \"we separate front-end from back-end code\", \"we use monitoring\",\n or \"migrating systems is risky\" surely have the ring of \"my door reaches the ground\n so people can walk in\" or \"I put windows in the walls so light can enter\". Instead,\n when discussing architectures let's talk about what is not obvious or something that\n involved heavy trade-offs. For example, \"do you use a service layer and why?\" (some\n people may find even this obvious) or \"why do you use a session-oriented conversation\n protocol?\"\n\nIt's quite amazing how many \"architecture documents\" do not pass this relatively simple\n test. I hope using the building analogy provides a simple and non-threatening way\n to provide feedback and to motivate architects to better document their designs and\n decisions.\n\n## Know how to tell Architecture? Do it with us at Allianz!\n\nI am looking for top-notch [Cloud Infrastructure Architects](https://www.linkedin.com/jobs2/view/136775174) and [Principal Software Architects](https://www.linkedin.com/jobs2/view/136775174) for my team. We are building a private cloud infrastructure for one of the largest\n insurance companies in the world and re-architect critical core applications to efficiently\n run on it. You'll be working in a highly motivated team of technical experts who understand\n what architecture is.\n\n*Share:*\n\n*Follow:* [Follow @ghohpe](https://twitter.com/ghohpe) [SUBSCRIBE TO FEED](../ramblings.rss)\n\n*More On:* [ARCHITECTURE](/ramblings_architecture.html) [ALL RAMBLINGS](../ramblings.html)\n\nGregor is a cloud architect and author. He is a frequent speaker on asynchronous messaging,\n IT strategy, and cloud.", "znaku_textu": 10080, "slov": 1503, "odkazu": 59, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/ramblings/86_isthisarchitecture.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 06:53:23", "sha256": "ee1319defa76e2c27e5cade20780e4391a2d54141f92498ed861cade8a81bf41", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://architectelevator.com/blog", "http://www.sei.cmu.edu/", "http://www.sei.cmu.edu/architecture/start/glossary/classicdefs.cfm", "http://www.opengroup.org/public/arch/p1/togaf_faq.htm", "http://www.amazon.com/exec/obidos/ASIN/0201310120/enterpriseint-20", "http://www.amazon.com/exec/obidos/ASIN/0132336243/enterpriseint-20", "https://www.coursera.org/course/modelthinking", "http://www.martinfowler.com/", "https://www.youtube.com/watch?v=KU58pO74ELg", "https://www.youtube.com/watch?v=_Po-qpUZ6pE", "http://www.stahlhouse.com/", "http://www.stahlhouse.com/index.php?Itemid=113&id=2&option=com_content&view=article", "http://www.cpp.edu/~pmlaroche/rdocs/LA_ROCHE_PLEA2002.pdf", "http://www.laputan.org/mud/", "https://jobs.allianz.com/sap/bc/bsp/sap/zhcmx_erc_ui_ex/?jobId=55C128F4F6E92260E10080000A670216", "https://www.linkedin.com/jobs2/view/136775174", "https://twitter.com/share", "https://twitter.com/ghohpe", "https://leanpub.com/37things"]} {"url": "https://www.enterpriseintegrationpatterns.com/ramblings/87_matryoshka.html", "titulek": "Virtualization Matryoshka - Enterprise Integration Patterns", "h1": "Virtualization Matryoshka", "popis": "IT loves virtualizing stuff, following the old rule that in computer science every problem can be solved by just one more level of indirection", "klicova_slova": "", "kanonicka": "", "jazyk": "en_US", "robots_meta": "", "og": {"og:type": "article", "og:locale": "en_US", "og:site_name": "Enterprise Integration Patterns", "og:title": "Virtualization Matryoshka", "og:description": "IT loves virtualizing stuff, following the old rule that in computer science every problem can be solved by just one more level of indirection", "og:url": "https://www.enterpriseintegrationpatterns.com/ramblings/87_matryoshka.html"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Virtualization Matryoshka"}, {"uroven": 2, "text": "What is Virtualization?"}, {"uroven": 2, "text": "Levels of Virtualization"}, {"uroven": 2, "text": "Why Do We Want to Virtualize Everything?"}, {"uroven": 2, "text": "The Virtualization Matryoshka"}, {"uroven": 2, "text": "Slimming Down"}], "markdown": "Gregor's Ramblings\n\n---\n\n# Virtualization Matryoshka\n\nJuly 15, 2015\n\nFind my posts on IT strategy, enterprise architecture, and digital transformation\n at [ArchitectElevator.com](https://architectelevator.com/blog).\n\nIT loves virtualizing stuff, following the old rule that in computer science every\n problem can be solved by just one more level of indirection. Cloud computing is based\n on virtualization of compute resources - you don't need to know which physical machine\n your application is actually running on and you can get new ones with the click of\n a button. Before cloud was a buzzword, though, VMware and others have virtualized\n machines at the operating system levels. Recently (in terms of buzz, not technology),\n containers bring another level of light-weight virtualization of computing resources.\n And let's not forget the Java Virtual Machine, which also claims a level of virtualization.\n What are we supposed to do with all these levels of virtualization?\n\n## What is Virtualization?\n\nVirtualization turns physical resources into logical resources, which are more flexible\n and often available on demand. Think of it as a rental car as opposed to owning a\n car: you can rent a convertible in nice weather, a four-wheel-drive in the winter\n and a wagon (estate) for hauling stuff. And you pay for them only when you need them.\n Buying all these cars would be highly inefficient, especially when you rarely use\n them (I actually own a wagon and a convertible, so I know). Making things virtual\n allows you to create new instances of something from existing resources - like renting\n a car from a large pool. In the software world we have some added flexibilities: we\n can instantiate different operating systems, such as Windows or Linux, on the same\n hardware and a hypervisor or can turn one large physical machine into multiple small\n virtual machines. This is where the rental car analogy runs out of steam: turning\n wagons into convertibles is a lot harder and one car can hardly be segmented into\n two motorcycles.\n\n## Levels of Virtualization\n\nOS-level virtualization has been around for a long time. A hypervisor manages and\n abstracts machine hardware, so you can create new operating system instances of varying\n flavors and sizes on a fixed set of physical hardware. This is old news in the mainframe\n world and the likes of VMware have been offering this for quite some time on x86 platforms,\n reducing machine deployment times and costs while increasing resource utilization.\n\nMost internet giants don't use hypervisors internally, though, because they carry\n a certain overhead in the 5-15% range and cost a good bit of licensing money if you\n use a commercial product. If you have 100 machines this is likely not a big deal,\n but if you have 100,000 machines, you are going to want something different. Most\n public clouds do use hypervisors, e.g. KVM for Google Compute Engine or Xen for [Amazon EC2](http://aws.amazon.com/de/ec2/), because they have to support multiple operating system vendors and versions.\n\nToday's large computing infrastructures often use containers, typically based on [Linux LXC](http://en.wikipedia.org/wiki/LXC) technology: multiple containers run on a single operating system instance and thus\n carry less overhead than separate OS instances. They usually also provide less isolation\n between instances -- something to consider if your business requires PCI compliance\n or the like. Big infrastructures typically use cluster management software like [Mesos](http://mesos.apache.org/) or [Kubernetes](http://kubernetes.io/) to allocate workload across a large number of containers. We did this at Google many\n years ago at grand scale.\n\nThe Java virtual Machine was also popularized as the virtualization layer of choice\n - \"write once - run anywhere\". In addition to byte code abstraction, J2EE containers\n also provided run-time abstraction by managing multiple applications running on a\n single server by means of thread pools and the like. Multiple Java applications can\n be hot-deployed to such (Java) containers through WAR files.\n\nMany of today's modern software stacks also provide a level of virtualization by operating\n independently from the number and identity of the compute nodes underneath. MapReduce\n and its cousins are built on this principle: they manage workload distribution, process\n restarts and all the other nasty stuff inside their framework. On one hand, this allows\n the application to not have to worry about it and and on the other hand it reduces\n the need for infrastructure management features.\n\n## Why Do We Want to Virtualize Everything?\n\nVirtualization has a clear user benefit: computing resources become available on demand\n without setting up and wiring new physical hardware. Better yet, the virtualization\n layer makes this (largely) transparent to the application layer by abstracting implementation\n details. The ability to divide physical resources into many logical units also improves\n utilization and therefore cost efficiency: you can buy larger servers and use them\n in small increments without changing the way the software is written.\n\nVendors love to provide a virtualization layer for another reason: it positions them\n right in the middle of the computing ecosystem, holding a central role that is difficult\n to replace. For example, VMware ESX is widely used and central to many IT infrastructures.\n While the hardware virtualization is largely transparent to the application, provisioning\n and management tools are not and result in a certain amount of vendor lock-in. [OpenStack](https://www.openstack.org/) will bring some relief in this area, but implementation maturity still varies.\n\n## The Virtualization Matryoshka\n\nHow many virtualization layers does one need, though? Running a Java App in a Java\n Container in a Linux container on top of a virtual machine starts to look like a [Matryoshka Doll](http://en.wikipedia.org/wiki/Matryoshka_doll): little dolls stacked one inside the other. I call this **Virtualization Matryoshka**: many layers of virtualization stacked inside each other. While matryoshka dolls\n are entertaining, you probably have a feeling that this is not the most efficient\n setup for a run-time infrastructure.\n\n## Slimming Down\n\nToo many layers not only bring complexity and overhead, but also don't add much benefit.\n The natural question then is what layer(s) we should eliminate. For Java applications,\n we probably do want to keep the JVM, but there is a clear trend towards lighter-weight,\n embedded containers whose job is not to run many applications, but a single application\n with as little abstraction as possible. This does away with one virtualization layer\n at the application server level.\n\nPaaS (Platform-as-a-service) platforms, which tend to leverage containers, are starting\n to eliminate the operating system VM layer by deploying on physical machines in a\n so-called \"bare metal PaaS\" approach. You will need a component that manages these\n physical machines, but much of that can be hidden underneath the PaaS model, making\n it largely transparent to the application deployer. OpenStack is also looking at a\n bare-metal implementation of Nova, which runs under the name [Ironic](http://docs.openstack.org/developer/ironic/deploy/user-guide.html). All we need is an implementation for [open compute](http://www.opencompute.org/) and we are set to go.\n\nRemoving layers will provide an up-tick in performance and reduced license cost for\n the virtualization layer. This may be most pronounced in I/O heavy and low-latency\n or high-performance compute applications. I believe eliminating a few layers of virtualization\n is a healthy trend. Layering is fine - [Matryoshka Dolls](http://en.wikipedia.org/wiki/Matryoshka_doll) are amusing but not efficient.\n\n*Share:*\n\n*Follow:* [Follow @ghohpe](https://twitter.com/ghohpe) [SUBSCRIBE TO FEED](../ramblings.rss)\n\n*More On:* [ARCHITECTURE](/ramblings_architecture.html) [CLOUD](/ramblings_cloud.html) [ALL RAMBLINGS](../ramblings.html)\n\nGregor is a cloud architect and author. He is a frequent speaker on asynchronous messaging,\n IT strategy, and cloud.", "znaku_textu": 8107, "slov": 1203, "odkazu": 51, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/ramblings/87_matryoshka.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 06:53:39", "sha256": "ec9bd3cf51b37dca26ed1db6638bdef28fc4e186d32f50c7280b3dc3b98d4512", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://architectelevator.com/blog", "http://aws.amazon.com/de/ec2/", "http://en.wikipedia.org/wiki/LXC", "http://mesos.apache.org/", "http://kubernetes.io/", "https://www.openstack.org/", "http://en.wikipedia.org/wiki/Matryoshka_doll", "http://docs.openstack.org/developer/ironic/deploy/user-guide.html", "http://www.opencompute.org/", "https://twitter.com/share", "https://twitter.com/ghohpe", "https://leanpub.com/37things"]} {"url": "https://www.enterpriseintegrationpatterns.com/ramblings/88_moviestararchitects.html", "titulek": "Movie Star Architects - Enterprise Integration Patterns", "h1": "Movie Star Architects", "popis": "I recently wrote about architects and the role they play in large organizations", "klicova_slova": "", "kanonicka": "", "jazyk": "en_US", "robots_meta": "", "og": {"og:type": "article", "og:locale": "en_US", "og:site_name": "Enterprise Integration Patterns", "og:title": "Movie Star Architects", "og:description": "I recently wrote about architects and the role they play in large organizations", "og:url": "https://www.enterpriseintegrationpatterns.com/ramblings/88_moviestararchitects.html"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Movie Star Architects"}, {"uroven": 2, "text": "The Matrix - The Master Planner"}, {"uroven": 2, "text": "Edward Scissorhands - The Gardener"}, {"uroven": 2, "text": "Name the Movie (Vanishing Point?) - Guide"}, {"uroven": 2, "text": "The Wizard of Oz"}, {"uroven": 2, "text": "Superhero? Superglue!"}, {"uroven": 2, "text": "Making the Call"}, {"uroven": 2, "text": "Looking for (Movie) Star Architects"}], "markdown": "Gregor's Ramblings\n\n---\n\n# Movie Star Architects\n\nAug 1, 2015\n\nFind my posts on IT strategy, enterprise architecture, and digital transformation\n at [ArchitectElevator.com](https://architectelevator.com/blog).\n\nI [recently](/ramblings_architecture.html) wrote about architects and the role they play in large organizations. Still, the\n question often remains what an architect should be doing besides [riding the elevator](79_elevator.html). Let's try another analogy: movie characters.\n\nBefore the movie starts, we'll watch some previews or commercials, in our case the\n origin of the work \"architect\". It derives from the Greek [ἀρχιτέκτων](https://en.wiktionary.org/wiki/%E1%BC%80%CF%81%CF%87%CE%B9%CF%84%CE%AD%CE%BA%CF%84%CF%89%CE%BD) (\"architekton\"), which roughly translates into \"chief builder\". We have to keep in\n mind that this word was meant for people who built houses and structures, not IT systems.\n We should also note that the word implies \"builder\", not \"designer\" - an architect\n should be someone who builds, not someone who draws pretty pictures. But now to the\n main feature...\n\n## The Matrix - The Master Planner\n\nIf you ask (tech) folk to name a prototypical architect in the movies you are likely\n to hear [The Matrix](http://www.imdb.com/title/tt0133093) trilogy. The architect of the Matrix is a \"cold, humorless, white-haired man in a\n light gray suit\" ([Wikipedia](http://en.wikipedia.org/wiki/Architect_%28The_Matrix%29)), which he largely owes to the fact that he is a computer program himself. Wikipedia\n also describes that the architect \"speaks in long logical chains of reasoning\", something\n that many IT architects are known to do. So perhaps the analogy holds?\n\nThe Matrix architect is also the ultimate authority: he designed the Matrix (a computer\n program to simulate reality to humans being farmed by machines as an energy source)\n and knows and controls everything. Enterprise architects are sometimes seen as such\n a person - the all-knowing decision maker. Some even wish themselves into such a role,\n partly because it is neat to be all-knowing and partly because it gets you a lot of\n respect. Naturally, this role model has some issues: all-knowingness is a little\n (too) challenging for humans, meaning we should expect a fair amount of bad decision\n making and all sorts of other problems. Even if the architect is a super smart person,\n he or she can base decisions only on those facts that are known to them. In large\n companies, this inevitably means relying on PowerPoint slides or statements from middle\n management as it is impossible to be in touch with all technology that is in place.\n Such an information channel to the supreme decision maker tends to be heavily guarded\n by people who understand its value as an influencing vehicle, which results in the\n architect being fed indirect, often biased information, as opposed to reality. Making\n decisions based on such a model is dangerous. The antidote would be to [ride the elevator](79_elevator.html) more often, but that won't be feasible on a broad scale in complex environments.\n\nIn summary: Corporate IT is no movie and its role isn't to provide an illusion for\n humans being farmed as power sources. We should be cautious with this role model.\n\nFun fact: [Vint Cerf](https://en.wikipedia.org/wiki/Vint_Cerf) looks awfully similar to the Matrix architect. Considering he designed much of the\n Matrix we live in this may not be a coincidence.\n\n## Edward Scissorhands - The Gardener\n\nA slightly more fitting analogy is that of a gardener. I tend to depict this metaphor\n with a character from one of my favorite movies, [Edward Scissorhands](http://www.imdb.com/title/tt0099487/). Large-scale IT is much like a garden: things evolve and grow on their own. Weeds\n tend to grow the fastest. The role of the gardener is to trim and prune what does\n not fit and to establish an overall balance and harmony in the garden, keeping in\n mind plants' needs, for example by planting shade-loving plants near large trees or\n bushes. A good gardener is no dictatorial master planner and certainly does not make\n all the detailed decisions about which direction a strain of grass should grow --\n Japanese gardens being a possible exception. Rather, the gardener sees him or herself\n as the care taker of a living ecosystem. Some gardeners, like Edward, are true artists!\n\nI like this analogy as it has a \"soft\" touch to it. Complex enterprise IT does feel\n organic and good architecture has a sense of balance, which can also often be found\n in a garden. Top-down governance with weed killer is unlikely to have a lasting effect\n and usually does more harm than good, as does planting flowers in winter to mimic\n a beautiful garden. Whether this thinking leads to a new application for [The Nature of Order](http://www.amazon.com/exec/obidos/ASIN/0972652914/enterpriseint-20) I am not sure yet. I should go read it.\n\n## Name the Movie (Vanishing Point?) - Guide\n\n[Erik Doernenburg](http://erik.doernenburg.com/), ThoughtWorks' Head of Technology Europe, introduced me to another very apt metaphor.\n Erik closely works with many software projects, which tend to loathe the ostensibly\n all-knowing, all-decision-making architect who is disconnected from reality. Erik\n even coined the term [architecture without architects](http://erik.doernenburg.com/2014/12/new-recording-of-architecture-without-architects/), which might make some of us architects worry about our career.\n\nErik likens an architect to a tour guide, someone who has been to a place before many\n times and can gently guide you to pay attention to special aspects or also warn you\n about certain risks. This is a guiding role: tour guides cannot force their guests\n to follow their advice, except maybe those who drop a bus load of tourists off at\n a tourist trap restaurant in the middle of nowhere.\n\nThis type of architect has to \"lead by influence\" and has to be hands-on enough to\n earn the respect of those he or she is leading. The tour guide also stays along for\n the ride and does not just hand a map to the tourists like some consultant architects\n are known to do. An architect who acts as a guide often depends on strong management\n support because evidence that good things happened due to his or her guidance may\n be subtle. In purely \"business case-driven\" environments this could be limiting the\n \"tour guide\" architect's impact or career.\n\nA great movie analogy for the tour guide has not yet come to my mind. [Charlie](http://www.imdb.com/title/tt0367594/) tours the kids around the Chocolate Factory, but he certainly has a stronger and\n slightly more devious agenda than the tour guide we are thinking about.\n\nUpdate: A unconventional guide out of another one of my favorite movies is the blind [DJ SuperSoul](https://www.google.com/search?q=super+soul+cleavon+little+vanishing+point&safe=off&source=lnms&tbm=isch&sa=X/) from the 1971 road movie [Vanishing Point](http://www.imdb.com/title/tt0067927/). Like so may IT projects the movie's protagonist, Kowalski, is on a kind of death\n march with an impossible deadline to meet and numerous obstacles along the way. He\n is not delivering code, but a 1970 Dodge Challenger R/T 440 Magnum from Denver to\n San Francisco - in 15 hours. Kowalski is being guided by the blind DJ SuperSoul who\n has tapped the police network - just as with architects being plugged into the management\n network is crucial. The guide tracks progress and keeps the hero clear of all sorts\n of traps police / management has setup. After Super Soul is compromised by \"management\",\n the \"project\" gets adrift and ends like too many IT projects: in a fiery crash.\n\n## The Wizard of Oz\n\nArchitects can sometimes be seen as wizards that can solve just about any technical\n challenge. While that can be a short-term ego boost, it's not a good job description\n and expectation to live up to. Hence by the \"wizard\" architect analogy I don't mean\n an actual wizard waving the magic wand, but the \"Mighty Oz\" - a video projection that\n appears large and powerful, but is in fact controlled by a mere human \"wizard\", who\n turns out to be an ordinary man who uses the big machinery to garner respect.\n\nA gentle dose of such engineered deception can be of use in large organizations where\n \"normal\" developers are rarely involved in management discussions or major decisions.\n This is where the \"architect\" title can be used to make oneself a bit more \"great\n and mighty\": the projection can garner the respect of the general (more easily fooled)\n population and can even be a precondition to be able to [take the elevator to the top floors](79_elevator.html). Is this cheating? I would say \"no\" as long as you don't get enamored in so much\n wizardry that you forget about your technical roots.\n\n## Superhero? Superglue!\n\nSimilar to the wizard, another expectation of the architect is that of the superhero:\n if you believe some job postings, enterprise architects can single-handedly catapult\n companies into the digital age, solve about any technical problem, and are always\n up-to-date on the latest technology. These are tough expectations to live up to, so\n I'd caution any architect against taking advantage of this common misconception.\n\nAmir Shenhav from Intel therefore pointed out that instead of the super hero we need\n \"super glue\" architects - the guys who hold architecture, technical details, business\n needs, and people together across a large organization or complex projects. I like\n this metaphor as it resembles the analogy of an architect being a catalyst. We just\n have to be a little careful: being the glue (or catalyst) means understanding a good\n bit about the things you glue together. We don't talk about the architect as pure\n match maker.\n\n## Making the Call\n\nWhich type of architect should one be? First, there are likely many more types and\n movie analogies. You could play \"Inception\" and create architectural dream worlds\n with a (dangerous) twist. Or be one of the two impostors debating Chilean architecture\n in \"There's Something about Mary\" or (more creepily) Anthony Royal in the upcoming\n \"High-rise\" - the opportunities are manifold.\n\nIn the end, most architects exhibit a combination of these prototypical stereotypes.\n Periodic gluing, gardening, guiding, impressing and a little bit of all-knowing every\n now-and-then can make for a pretty good architect.\n\n## Looking for (Movie) Star Architects\n\nOur team is still growing! I am looking for one more senior [Cloud Infrastructure Architect](https://www.linkedin.com/jobs2/view/136775174) to join my team at [Allianz](https://www.allianz.com/en/products_solutions/global_lines/amos/amos.html) in Munich.\n\n*Share:*\n\n*Follow:* [Follow @ghohpe](https://twitter.com/ghohpe) [SUBSCRIBE TO FEED](../ramblings.rss)\n\n*More On:* [ARCHITECTURE](/ramblings_architecture.html) [ALL RAMBLINGS](../ramblings.html)\n\nGregor is a cloud architect and author. He is a frequent speaker on asynchronous messaging,\n IT strategy, and cloud.", "znaku_textu": 10924, "slov": 1674, "odkazu": 57, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/ramblings/88_moviestararchitects.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 06:53:38", "sha256": "11ffeb683646db9102c6be1a80214d272f3baa10b4c1363b981d65fbb293239c", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://architectelevator.com/blog", "https://en.wiktionary.org/wiki/%E1%BC%80%CF%81%CF%87%CE%B9%CF%84%CE%AD%CE%BA%CF%84%CF%89%CE%BD", "http://www.imdb.com/title/tt0133093", "http://en.wikipedia.org/wiki/Architect_(The_Matrix)", "https://en.wikipedia.org/wiki/Vint_Cerf", "http://www.imdb.com/title/tt0099487/", "http://www.amazon.com/exec/obidos/ASIN/0972652914/enterpriseint-20", "http://erik.doernenburg.com/", "http://erik.doernenburg.com/2014/12/new-recording-of-architecture-without-architects/", "http://www.imdb.com/title/tt0367594/", "https://www.google.com/search?q=super+soul+cleavon+little+vanishing+point&sa=X%2F&safe=off&source=lnms&tbm=isch", "http://www.imdb.com/title/tt0067927/", "https://www.linkedin.com/jobs2/view/136775174", "https://www.allianz.com/en/products_solutions/global_lines/amos/amos.html", "https://twitter.com/share", "https://twitter.com/ghohpe", "https://leanpub.com/37things"]} {"url": "https://www.enterpriseintegrationpatterns.com/ramblings/89_zombies.html", "titulek": "If you never kill anything, you will live among zombies. And they will eat your brain. - Enterprise Integration Patterns", "h1": "If you never kill anything, you will live among zombies. And they will eat your brain.", "popis": "Corporate IT lives among zombies: old systems that are half alive and have everyone in fear of going anywhere near them", "klicova_slova": "", "kanonicka": "", "jazyk": "en_US", "robots_meta": "", "og": {"og:type": "article", "og:locale": "en_US", "og:site_name": "Enterprise Integration Patterns", "og:title": "If you never kill anything, you will live among zombies. And they will eat your brain.", "og:description": "Corporate IT lives among zombies: old systems that are half alive and have everyone in fear of going anywhere near them", "og:url": "https://www.enterpriseintegrationpatterns.com/ramblings/89_zombies.html"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "If you never kill anything, you will live among zombies. And they will eat your brain."}, {"uroven": 2, "text": "Legacy"}, {"uroven": 2, "text": "Fear of Change"}, {"uroven": 2, "text": "Fear of Code"}, {"uroven": 2, "text": "Lack of Feedback"}, {"uroven": 2, "text": "Version Upgrades"}, {"uroven": 2, "text": "Run vs. Change"}, {"uroven": 2, "text": "Planned Obsolescence"}, {"uroven": 2, "text": "If it hurts, do it more often"}, {"uroven": 2, "text": "Culture of Change"}, {"uroven": 2, "text": "Brave enough to kill some zombies?"}], "markdown": "Gregor's Ramblings\n\n---\n\n# If you never kill anything, you will live among zombies. And they will eat your brain.\n\nSept 27, 2015\n\nFind my posts on IT strategy, enterprise architecture, and digital transformation\n at [ArchitectElevator.com](https://architectelevator.com/blog).\n\nCorporate IT lives among zombies: old systems that are half alive and have everyone\n in fear of going anywhere near them. They are also tough to kill completely. Worse\n yet, they eat IT staff's brains. It's like [Shaun of the Dead](http://www.imdb.com/title/tt0365748) minus the funny parts.\n\n## Legacy\n\nLegacy systems are systems that are built on outdated technology, are often poorly\n documented, but (ostensibly) still perform important business functions -- in many\n cases, the exact scope of the function they perform is not completely known. Systems\n often fall into the state of legacy because technology moves faster than the business:\n life insurance systems often must maintain data and functionality for many decades,\n rendering much of the technology used to build the system obsolete. With a bit of\n luck, the systems don't have to be updated anymore, so IT may be inclined to \"simply\n let it run\", following the popular advice to \"never touch a running system\". However,\n changing regulations or security vulnerabilities in old versions of the application\n or the underlying software stack make this a pretty poor approach.\n\nWhen confronted with the problem traditional IT often cites the need to support the\n business. They also often claim that digital companies don't have such problems because\n they have no legacy. Interestingly, when Mike Feathers came to Google to give a talk\n about [Working Effectively with Legacy Code](http://www.amazon.com/exec/obidos/ASIN/0131177052/enterpriseint-20), almost 150 developers attended, making this a questionable assumption. Because Google's\n systems evolve rapidly they also accumulate legacy more quickly. So it's not that\n they have been blessed with not having legacy, but they simply found a way to deal\n with it.\n\n## Fear of Change\n\nSystems become legacy zombies by not evolving with the technology. This happens in\n classic IT largely because change is seen as a risk. Once again: \"never touch a running\n system\". System releases are based on extensive test cycles that can last months,\n making updates or changes a costly endeavor. Worse yet, there is no \"business case\"\n for updating the system. This widespread logic is about as sound as considering changing\n the oil in your car a waste of money – after all the car still runs if you don't.\n And it even makes your quarterly P&L look a little better.\n\nA team from Credit Suisse described how to counterbalance this trap in their aptly\n titled book [Managed Evolution](http://www.amazon.com/exec/obidos/ASIN/3642016324/enterpriseint-20). The key driver for managed evolution is to maintain agility in a system. A system\n that no one wants to touch has no agility at all – it can't be changed. In a very\n static business and technology environment, this may not be all that terrible. Today's\n environment is everything but stable, though, turning the inability to change a system\n into a major liability for It and the business.\n\n## Fear of Code\n\nThe fear of change in corporate IT is closely related to the fear of code. Corporate\n IT is largely driven by operational considerations. Code is considered the stuff that\n contains all the bugs and performance problems, often written by expensive external\n consultants who are difficult to hold liable as they'll have long moved to another\n project by the time the problems surface. Hence corporate IT is a sucker for configuration\n over coding (see [Configure this](/ramblings/30_configure.html) for my view on this), much to the delight of enterprise software vendors. The most\n grotesque example of fear of code I have seen has corporate IT providing application\n servers that carry no operational support once you put code on it. It's like voiding\n a car's warranty after you start the engine – after all the manufacturer has no idea\n what you will do to it!\n\nThere are two ironies in the fear of code: first, business value comes only from code,\n not from the network, hardware or operating system. Second, the fear of code leads\n enterprises to buy into large frameworks, which in turn make version upgrades tough\n and increase the chance of growing zombies. Anyone who has done an SAP upgrade can\n relate.\n\n## Lack of Feedback\n\nMost things are the way they are for a reason. This is also true for the fear of change\n in corporate IT. These organizations typically lack the tools, processes, and skills\n to closely observe production metrics and to rapidly deploy fixes in case something\n goes awry. Hence they focus on trying to test for all scenarios before deploying and\n then running the application more or less \"blind\", hoping that nothing breaks. Jess\n Sussna describes the necessity to break out of this conundrum very nicely in his great\n book [Designing Delivery](http://www.amazon.com/exec/obidos/ASIN/1491949880/enterpriseint-20).\n\n## Version Upgrades\n\nThe zombie problem is not limited to systems written in PL/1 running on an IBM/360,\n though. Often updating basic runtime infrastructures like application servers, JDK\n versions, browsers, or operating systems scare the living daylights out of IT, causing\n version updates to be deferred until the vendor ceases support. The natural reaction\n then is to pay the vendor to extend support because anything is less painful than\n having to migrate your software to a new version of the software stack.\n\nOften the inability to migrate cascades across multiple layers of the software stack:\n one cannot upgrade to a newer JDK because it doesn't run on the current app server\n version, which can't be updated because the new version requires a new version of\n the operating system which lacks some library or feature the software depends on.\n I have seen IT shops that are stuck on Internet Explorer 6 because their software\n utilizes some proprietary feature not present in later versions. Looking at the user\n interfaces of most corporate applications one finds it difficult to imagine that they\n eked out every little bit of browser capability. They surely would have been better\n off not depending on such a peculiar feature and instead being able to benefit from\n browser evolution. Such a line of thought does require a \"change is good\" mindset\n to begin with, though.\n\n## Run vs. Change\n\nThe fear of change is even encoded in many IT organizations that separate \"run\" (operating)\n from \"change\" (development), making it clear that running software does not imply\n change. Rather, it is the opposite of change, which is done by application development\n – those guys who produce the flaky code IT is afraid of. Structuring IT teams this\n way will guarantee that systems will age and become legacy because no change could\n be applied to them.\n\nOne may think that by not changing running system, IT can keep the operational cost\n low. Ironically, the opposite is true: many IT departments spend more than half %\n of their IT budget on \"run\" and \"maintenance\", leaving only a fraction of the budget\n for \"change\" that can support the evolving demands of the business. That's because\n running and supporting legacy applications is expensive: operational processes are\n often manual; the software may not be stable, necessitating constant attention; the\n software may not scale well, requiring the procurement of expensive hardware; lack\n of documentation means time-consuming trial-and-error troubleshooting in case of problems.\n These reasons legacy systems tie up valuable IT resources and skills, effectively\n devouring the brains of IT that could be applied to more useful tasks, for example\n delivering features to the business.\n\n## Planned Obsolescence\n\nWhen selecting a product or conducting an RfP , classic IT tends to compile a list\n containing dozens or hundreds of features or capabilities that a candidate product\n has to offer. Often, these lists are compiled by external consultants who don't even\n know the real business need or the company's IT strategy. However, they tend to come\n up with longer lists and longer appears better to the classic IT staff. To stick with\n the car analogy, this is a bit like evaluating a car by having an endless list of\n more or less (ir)relevant features like \"must have a 12V lighter outlet\", \"speedometer\n goes above 200 km/h\", \"can turn the front wheels\" and then scoring a BMW vs. a Mercedes\n for these. How likely this is to steer (pun intended) you towards the car you will\n enjoy the most is questionable.\n\nWorse, one item routinely missing from such \"features\" lists is planned obsolescence:\n how easy is it to replace the system? Can the data be exported in a well defined format?\n Can business logic be extracted and re-used in a replacement system? How to avoid\n vendor lock-in? To the folks in the new product selection honeymoon this may seem\n like discussing a pre-nup before the wedding – who likes to think about it parting\n when you are just about to embark on a lifelong journey? In case of an IT system you\n better hope the journey isn't lifelong – systems are meant to come and go. So better\n have a pre-nup in place than being held hostage by the system (or vendor) you are\n trying to part with.\n\n## If it hurts, do it more often\n\nHow to break out of the \"change is bad\" cycle? As mentioned before, without proper\n instrumentation and automation, making changes is not only scary but indeed risky.\n The reluctance to upgrade or migrate software is similar to the reluctance to build\n and test software often. [Martin Fowler](http://martinfowler.com/bliki/FrequencyReducesDifficulty.html) issued the best advice to break this cycle: \"if it hurts, do it more often\". No,\n this is not meant to appeal to masochistic IT staff, but it highlights that deferring\n a painful task generally makes it disproportionally more painful: if you have not\n built your source code in months, it's guaranteed not to go smoothly. Likewise, if\n you are 3 versions of an application server behind, you'll have the migration from\n hell.\n\nPerforming such tasks more frequently provides a forcing function to automate some\n of the processes, e.g. with automated builds or test suites. Dealing with migration\n problems will also become routine. This is the reason emergency workers train regularly\n – otherwise they'll freak out in case of an actual emergency and won't be effective.\n Of course, training takes time and energy. But what's the alternative?\n\n## Culture of Change\n\nDigital companies also have to deal with change and obsolescence. The going joke at\n Google was that every API had two versions: the obsolete one and the not-yet-quite-ready\n one. Actually, it wasn't a joke, but pretty close to reality. Dealing with this was\n often painful – every piece of code you wrote could break at any time because of changes\n in the dependencies. But living this culture of change allows Google to keep the pace\n up – the most important of today's IT capabilities that sadly is rarely listed as\n a KPI for classic IT. Even Shaun knows that zombies can't run fast.\n\n## Brave enough to kill some zombies?\n\nOur team is still growing! I am looking for one more senior [Cloud Infrastructure Architect](https://www.linkedin.com/jobs2/view/136775174) to join my team at [Allianz](https://www.allianz.com/en/products_solutions/global_lines/amos/amos.html) in Munich.\n\n*Share:*\n\n*Follow:* [Follow @ghohpe](https://twitter.com/ghohpe) [SUBSCRIBE TO FEED](../ramblings.rss)\n\n*More On:* [ARCHITECTURE](/ramblings_architecture.html) [ALL RAMBLINGS](../ramblings.html)\n\nGregor is a cloud architect and author. He is a frequent speaker on asynchronous messaging,\n IT strategy, and cloud.", "znaku_textu": 11766, "slov": 1862, "odkazu": 51, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/ramblings/89_zombies.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 06:53:37", "sha256": "319ca907a428818e2720c23c5849cc729f76995228b0b56220943ad756aed384", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://architectelevator.com/blog", "http://www.imdb.com/title/tt0365748", "http://www.amazon.com/exec/obidos/ASIN/0131177052/enterpriseint-20", "http://www.amazon.com/exec/obidos/ASIN/3642016324/enterpriseint-20", "http://www.amazon.com/exec/obidos/ASIN/1491949880/enterpriseint-20", "http://martinfowler.com/bliki/FrequencyReducesDifficulty.html", "https://www.linkedin.com/jobs2/view/136775174", "https://www.allianz.com/en/products_solutions/global_lines/amos/amos.html", "https://twitter.com/share", "https://twitter.com/ghohpe", "https://leanpub.com/37things"]} {"url": "https://www.enterpriseintegrationpatterns.com/ramblings/90_softwareeatstheworld.html", "titulek": "If software eats the world, you better use version control! - Enterprise Integration Patterns", "h1": "If software eats the world, you better use version control!", "popis": "As I recently observed, Corporate IT tends to be afraid of code: code is where all the pesky bugs come from, which have to be fixed by quirky, expensive, and unreliable developers or external consultants", "klicova_slova": "", "kanonicka": "", "jazyk": "en_US", "robots_meta": "", "og": {"og:type": "article", "og:locale": "en_US", "og:site_name": "Enterprise Integration Patterns", "og:title": "If software eats the world, you better use version control!", "og:description": "As I recently observed, Corporate IT tends to be afraid of code: code is where all the pesky bugs come from, which have to be fixed by quirky, expensive, and unreliable developers or external consultants", "og:url": "https://www.enterpriseintegrationpatterns.com/ramblings/90_softwareeatstheworld.html"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "If software eats the world, you better use version control!"}, {"uroven": 2, "text": "SDX – Software-defined Anything"}, {"uroven": 2, "text": "Automate Everything!"}, {"uroven": 2, "text": "The Loomers’ Riot?"}, {"uroven": 2, "text": "Undoing by Redoing"}, {"uroven": 2, "text": "Think like a Software Developer!"}, {"uroven": 2, "text": "Use a Build Pipeline"}, {"uroven": 2, "text": "Automated Quality Checks"}, {"uroven": 2, "text": "Proper Language"}, {"uroven": 2, "text": "Software eats the world, one revision at a time"}], "markdown": "Gregor's Ramblings\n\n---\n\n# If software eats the world, you better use version control!\n\nDec 6, 2015\n\nFind my posts on IT strategy, enterprise architecture, and digital transformation\n at [ArchitectElevator.com](https://architectelevator.com/blog).\n\nAs I [recently observed](89_zombies.html), Corporate IT tends to be afraid of code: code is where all those pesky bugs come\n from that have to be fixed by quirky and unreliable software developers or , expensive\n external consultants. This attitude plays to the favor of vendors who peddle products\n that \"only\" require configuration, as opposed to coding. Sadly, as we know since at\n least 2005, most configuration is really just [programming in a poorly designed, rather constrained language without decent tooling\n or useful documentation](30_configure.html). Being afraid of code and being unfamiliar with the modern development lifecycle\n is a dangerous proposition in a world where everything is becoming defined by software.\n\n## SDX – Software-defined Anything\n\nMuch of traditional IT infrastructure is either hard-wired or semi-manually configured:\n servers are racked and cabled, network switches are configured manually with tools\n or config files. Operations staff is often quite happy with this state of affairs\n because it keeps the programmer types away from the critical infrastructure where\n the last thing we need is bugs and stuff like \"agile\" development, which is still\n widely (mis-)interpreted as just doing something random and hoping for the best.\n\nThis is rapidly changing, though, and that's a good thing. The continuing virtualization\n of infrastructure makes resources that were once shipped by truck or wired by hand\n available via a call to an OpenStack API. It's like going from haggling in a car dealership\n and waiting 4 months for delivery just to find out that you should have gotten the\n better seats after all to locating a Zipcar / DriveNow from your mobile phone and\n driving off 3 minutes later. Virtualized infrastructure is an essential element to\n keeping up with the scalability and evolution demands of digital applications. You\n can't build an agile business model when it takes you 4 weeks to get a server and\n 4 months to get it on the right network segment.\n\nOperating-system level virtualization is by no means a new invention, but the \"software-defined\"\n trend has extended to SDN, *Software-defined Networks*, and full-blown SDDC, Software Defined Data Centers. If that isn't enough, you can\n opt for [SDx](https://www.sdxcentral.com/articles/editorial/sdx-series-software-defined-everything-introduction/2015/05/) – Software Defined *Anything*, which includes virtualization of compute, storage, network and whatever else can\n be found in a data center, hopefully in some coordinated manner.\n\nAs so often, it's easy to look into the future of IT by reading those Google research\n papers that describe their systems of 5+ years ago (side note: finally there is an\n official paper on [Borg](http://static.googleusercontent.com/media/research.google.com/en//pubs/archive/43438.pdf), Google's cluster manager). To get a glimpse of where SDN is headed, look at what\n Google has done with the so-called [Jupiter Network Architecture](http://googleresearch.blogspot.de/2015/08/pulling-back-curtain-on-googles-network.html) (or jump straight to the [SIGCOMM Paper](http://conferences.sigcomm.org/sigcomm/2015/pdf/papers/p183.pdf)). If you are too busy to read the whole thing, this three-liner will do to get you\n excited: \"Our latest-generation Jupiter network […] delivering more than 1 petabit/sec\n of total bisection bandwidth. This means that each of 100,000 servers can communicate\n with one another in an arbitrary pattern at 10Gb/s.\" This can only be achieved by\n having a network infrastructure that can be configured based on the applications'\n needs and is considered as an integral part of the overall infrastructure virtualization.\n\n## Automate Everything!\n\nI once shocked a large portion of our IT staff by defining my strategy as: \"automate\n everything and make those parts that can't be automated a self-service\"\". The reaction\n ranged from confusion and disbelief to anger. Still, this is exactly what Amazon &\n Co have done. And they have revolutionized how people access IT infrastructure. If\n corporate IT infrastructure wants to remain competitive, this is the way corporate\n IT got to be thinking!\n\nIn a recent meeting one of our vendors' architect stated that automation should not\n be implemented for infrequently performed tasks because it isn't economically viable.\n Basically they calculated that writing the automation would take more hours than would\n ever be spent completing the task manually (they also appear to be on a fixed-price\n contract). I challenged this reasoning with the argument of repeatability and traceability:\n wherever humans are involved, mistakes are bound to happen and work will get performed\n ad-hoc without proper documentation. The error rate is likely the highest for infrequently\n performed tasks as the operators are lacking the routine. Of course, the whole argument\n collapses when you think about disaster recovery scenarios: one hopes that they occur\n infrequently, but when they happen you better be fully automated. Otherwise you may\n argue that the fire brigade should use a bucket chain as all those fire trucks and\n pumps are not economically viable given how few fires we have.\n\nComputers are much better at executing repetitive tasks while we humans are better\n at coming up with new ideas, designing things or automating stuff. We should stick\n to this separation of duty and let the machines do the repeatable tasks without fearing\n that Skynet will take over the world any moment.\n\n## The Loomers’ Riot?\n\nNew tools necessitate a new way of thinking, though, to be useful. It's the old \"a\n fool with a tool is still a fool\". I actually don't like this saying because you don't\n have to be a fool to be unfamiliar with a new tool and a new way of thinking. For\n example, many folks in infrastructure and operations are far detached from the way\n contemporary software development is done. This doesn't make them fools in any way,\n but it prevents them from migrating into the \"software-defined\" world. They may have\n never heard of unit tests or build pipelines and may have been led to believe that\n \"agile\" is a synonym for \"haphazard\". They have not had enough time to conclude that\n immutability is an essential property and that rebuilding / regenerating something\n from scratch beats making incremental changes.\n\nAs a result, despite often being the bottleneck in an IT ecosystem that demands ever\n faster changes and innovation cycles, operations teams are often not ready to hand\n over their domain to the \"application folk\" who can script the heck out of the software-defined\n anything. One could posit that such behavior is akin to the [Loomer Riots](https://en.wikipedia.org/wiki/Power-loom_riots) because the economic benefits of a software-defined infrastructure are too strong\n for anyone to put a stop to it. At the same time, it's important to get those folks\n on board that keep the lights on and understand the existing systems the best, so\n we can't ignore this dilemma.\n\nExplaining to everyone [What is Code?](http://www.bloomberg.com/graphics/2015-paul-ford-what-is-code/) is certainly a step in the right direction. As I often say: \"if software eats the\n world, there will be only 2 kinds of people: those who tell the machines what to do\n and those where it's the opposite.\" Having more senior management role models who\n can code would be another good step. However, living successfully in a software-defined\n world is not a simple matter of learning programming or scripting.\n\n## Undoing by Redoing\n\nA great example how people have to start thinking differently was provided by the\n same vendor of ours when brought the argument of reversibility: if a configuration\n is not working, we need to quickly revert to the last known stable state to minimize\n the recovery time. If you have made manual updates, this is very difficult at best.\n In a software-defined, automated world this becomes much easier. The vendor countered\n that this would require an explicit \"undo\" script for each possible action, which\n would make it even more expensive or cumbersome to develop the automation.\n\n## Think like a Software Developer!\n\nThis response highlights that many infrastructure teams don't yet think like software\n developers. Software developers who have been using software tools and processes for\n quite some time know that if they can build an artifact such as a binary or a piece\n of configuration from scratch using an automated build system, they can easily revert\n to a previous version by resetting version control to the last know good state, rebuilding\n from scratch and republishing this \"undone\" configuration. Software build processes\n don't know \"undo\", they simply \"redo\".\n\nIn complex software projects this is a quite normal procedure, often instigated by\n the so-called \"build cop\" after the build goes \"red\" because of failing tests. The\n build cop will try to get the developer who checked in the offending code to fix it\n quickly or simply reverts that code submission. Modern configuration automation tools\n have a similar ability to regain a known stable, so one can apply the same process\n of reverting and automatically re-configuring.\n\n## Use a Build Pipeline\n\nThe concept of \"no snowflake\" or \"no pet\" servers underline the spirit that in the\n software-defined world a server (or network) configuration can be recreated automatically\n with ease, similar to re-creating a build artefact such as a jar file: when infrastructure\n is software-defined, you can provision or configure it in the same manner you would\n create a software artifact. You no longer have to be afraid to mess up a specific\n instance of a server because you can easily recreate that specific configuration via\n software in minutes.\n\nJust like continuous integration can rebuild a software system frequently and predictably,\n software defined infrastructure is not just about replacing hardware configuration\n with software but primarily about adopting a rigorous development lifecycle based\n around disciplined development, automated testing, and continuous integration.\n\n## Automated Quality Checks\n\nIn another Google example from 8 years ago, one of the most critical pieces of request\n routing infrastructure was configured via a file consisting of hundreds of regular\n expressions. Of course, this file was under version control as it should be. Even\n though proposed changes had to be reviewed by an owner of this specific code branch,\n invariably someday someone checked in a misconfiguration, which brought down most\n of Google's services because the relative URL path of Google's site was no longer\n routed to the corresponding service instance. But the answer was not to disallow changes\n to this file as that would have slowed things down. Instead, the problem was quickly\n undone as the file was under version control and the previous version was available.\n Second, additional automatic checks were implemented in the code submit pipeline to\n make sure that syntax errors or conflicting regular expressions are detected before\n the file is checked into the code repository, not when it is pushed to production.\n When working with software-defined infrastructure you need to work like you would\n in professional software development.\n\n## Proper Language\n\nOne curiosity about Google is that no one working there ever used buzzwords like \"Big\n data\", \"Cloud\", or \"Software-defined data center\" because Google had all these things\n well before the buzzwords were created by industry analysts: much of Google's infrastructure\n was software-defined 10 years ago. One aspect of deploying large numbers of tasks\n onto a data center infrastructure is the configuration of the individual process\n instances: each instance is likely to require small variations in configuration.\n For example, front-ends 1 through 4 may connect to back-end *A* while front-ends 5-7 connect to back-end *B*. Maintaining individual config files for each instance would be cumbersome and error-prone,\n especially as you scale up and down. Instead, each [configuration is generated](http://static.googleusercontent.com/media/research.google.com/en//pubs/archive/43438.pdf) and passed to the process via the command line. Google avoided the trap of configuration\n files and decided to use a well-defined functional language called BCL, which supports\n templates and value inheritance. It also provides built-on functions like map() that\n are convenient for manipulating lists of values for such configurations.\n\nLearning a custom functional language to describe deployment descriptors for jobs\n may not everyone's cup of tea but it highlights what a real software-defined system\n looks like. As the language BCL was widely used and configuration programs got bigger\n and more complex, debugging became an issue. As a result, folks started to write an\n [expression evaluator](http://alexandria.tue.nl/extra1/afstversl/wsk-i/bokharouss2008.pdf) and unit testing tools around the configuration language. That's what software people\n would do to solve the problem: solve software problems with software!\n\n## Software eats the world, one revision at a time\n\nThere's much more to being software-defined than a few scripts and config files. Rather,\n it's about making infrastructure part of your software development lifecycle (SDLC).\n First, make sure your SDLC is fast but disciplined and automated but quality-oriented.\n Second, apply the same thinking to your software-defined infrastructure. Or else you\n may end up with *SDA*, Software-Defined Armageddon.\n\n*Share:*\n\n*Follow:* [Follow @ghohpe](https://twitter.com/ghohpe) [SUBSCRIBE TO FEED](../ramblings.rss)\n\n*More On:* [ARCHITECTURE](/ramblings_architecture.html) [ALL RAMBLINGS](../ramblings.html)\n\nGregor is a cloud architect and author. He is a frequent speaker on asynchronous messaging,\n IT strategy, and cloud.", "znaku_textu": 14061, "slov": 2149, "odkazu": 52, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/ramblings/90_softwareeatstheworld.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 06:53:36", "sha256": "67e104eac0f6537b6457330212960089036d1c6508d5fcf4b90021232435475b", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://architectelevator.com/blog", "https://www.sdxcentral.com/articles/editorial/sdx-series-software-defined-everything-introduction/2015/05/", "http://static.googleusercontent.com/media/research.google.com/en//pubs/archive/43438.pdf", "http://googleresearch.blogspot.de/2015/08/pulling-back-curtain-on-googles-network.html", "http://conferences.sigcomm.org/sigcomm/2015/pdf/papers/p183.pdf", "https://en.wikipedia.org/wiki/Power-loom_riots", "http://www.bloomberg.com/graphics/2015-paul-ford-what-is-code/", "http://alexandria.tue.nl/extra1/afstversl/wsk-i/bokharouss2008.pdf", "https://twitter.com/share", "https://twitter.com/ghohpe", "https://leanpub.com/37things"]} {"url": "https://www.enterpriseintegrationpatterns.com/ramblings/91_bookshelfpenthouse.html", "titulek": "The Architect’s Penthouse Bookshelf - Enterprise Integration Patterns", "h1": "The Architect’s Penthouse Bookshelf", "popis": "When you hitchhike through the galaxy, a towel will generally do", "klicova_slova": "", "kanonicka": "", "jazyk": "en_US", "robots_meta": "", "og": {"og:type": "article", "og:locale": "en_US", "og:site_name": "Enterprise Integration Patterns", "og:title": "The Architect’s Penthouse Bookshelf", "og:description": "When you hitchhike through the galaxy, a towel will generally do", "og:url": "https://www.enterpriseintegrationpatterns.com/ramblings/91_bookshelfpenthouse.html"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "The Architect’s Penthouse Bookshelf"}, {"uroven": 2, "text": "37 Things One Architect Knows"}, {"uroven": 2, "text": "Navigating the Penthouse"}, {"uroven": 2, "text": "Knowing What’s Going On"}, {"uroven": 2, "text": "Making Your Point"}, {"uroven": 2, "text": "Gathering Support"}], "markdown": "Gregor's Ramblings\n\n---\n\n# The Architect’s Penthouse Bookshelf\n\nDec 28, 2015\n\nFind my posts on IT strategy, enterprise architecture, and digital transformation\n at [ArchitectElevator.com](https://architectelevator.com/blog).\n\nWhen you hitchhike through the galaxy, [a towel](https://en.wikipedia.org/wiki/The_Hitchhiker%27s_Guide_to_the_Galaxy) will generally do. To ride the [Architect Elevator](79_elevator.html) you need to be a bit better equipped. Riding the elevator up and down is exciting\n and provides tremendous value to the organization. But it is also demanding as the\n architect needs to adjust to different audiences, backgrounds and dynamics, becoming\n a technology [shapeshifter](http://futurama.wikia.com/wiki/Alcazar) of sorts. To help with this transformation (and to avoid getting your rear kicked\n by Leela), I recommended a few books for each major section of the corporate high-rise.\n\nI should clarify that in this context I interpret “Enterprise Architect\" as any IT\n architect who works in a large enterprises, covering a broad scope of responsibilities.\n This can be a strategic architect, but also an infrastructure or data architect. Specifically,\n I don't limit it to prototypical “Enterprise Architects\" that manage application inventories,\n conduct gap analyses, and devise transformational roadmaps. I could have called the\n role \"Architect in the Enterprise\" to make the distinction clear, but that's not as\n catchy.\n\nYou won’t find any computer technology books on this list. I assume architects looking\n to play a technical leadership role already have the technical foundation to do their\n job and the inclination and drive to keep learning new technologies. This bookshelf\n is about becoming a better thinker and decision maker and about engaging with upper\n management in meaningful ways.\n\n## 37 Things One Architect Knows\n\nThis list originated from audience requests for the slides from my talk [The Enterprise Architect - Ivory Tower Resident or Corporate Savior?](/talks.html). It does not aim for completeness and is subject to the serendipity of me discovering\n some great books while completely missing other equally great books. As mentioned\n in my [disclosure](/gregor.html), I earn a referral fee through the Amazon Associates program for any books you purchase\n through the links in this blog post. It’s certainly not enough, though, to make me\n recommend books just to earn a fee. I have purchased all the books I list, except\n where explicitly mentioned (my reading bandwidth is limited).\n\nI would also not want to miss the opportunity to test interest in my book side-project\n [37 Things One Architect Knows](http://leanpub.com/37things) on LeanPub. Right now it’s just a skeleton, but please give me feedback to your level\n of interest in acquiring the content as a DRM-free lean pub (or print) book. The content\n is an organized, edited, and expanded version of some of my [Ramblings](/ramblings).\n\n## Navigating the Penthouse\n\nLet’s start riding the architect elevator from the top floor – the penthouse. Successful\n interaction in the penthouse depends on a combination of factors:\n\n- You need to have a solid read on the company strategy and major industry trends.\n- You must be able to get your point across to a largely non-technical audience.\n- You have to be able to get support for your ideas and projects.\n\n## Knowing What’s Going On\n\nFeeding my inclination to include popular culture analogies, this section header reminds\n me of the epic movie [Metropolis by Fritz Lang](http://www.imdb.com/title/tt0017136/). The city of Metropolis is likely the ultimate example of an organization that maintains\n a strict separation between the ruling class in the penthouse (enjoying themselves\n in the “eternal gardens\") and the workers toiling deep underground in the engine room.\n The ruler’s son Freder is not an architect, but he does end up saving the whole place\n from self-destruction by riding the elevator up and down after trading places with\n a worker in the machine room. In the end he becomes the much needed mediator between\n the “head\" and the “hands\" in something you might call an enterprise transformation.\n To top off the metaphor, the 1984 version of the movie by [Giorgio Moroder](http://www.giorgiomoroder.com/) contains a song titled “What’s going on?\" by Adam Ant. Knowing what’s going on is\n critical if you want to engage in the penthouse.\n\nI often tell people that you will encounter much fewer surprises in your professional\n life if you can think like your boss’s boss. In corporate IT, this typically translates\n into tracking Gartner, Forrester, IDC and other analyst firms. Hard-core technologists\n may despise some of this material because analysts have a tendency to invent buzzwords\n for already existing trends that plant dangerous ideas into pointy-haired management’s\n heads. If that’s how you feel, consider following the analysts like listening to\n enemy radio: you may not agree with what is being said, but you are better informed\n and prepared.\n\nA successful architect also needs to understand what drives the business. After all,\n the architect's job is to build IT platforms and systems that support the business.\n For example, if you work in insurance you need to understand the impact a low-interest\n environment has on the life insurance business. You also need to understand the critical\n use cases for major technological advances like the Internet of Things (IoT) in your\n industry. Which publications or books to read for this aspect will depend on the business\n you or rather your employer is in. Try having coffee with business people more often!\n\nThe first two book recommendations cover major trends that upper management should\n pay attention to, so these are not only books you should read but also books you should\n recommend to your management to read. I have been handing out many copies of these\n in our organization.\n\n| | The classic “novel\" behind DevOps and already fairly widely known (over 1000 reviews\n on Amazon) is [The Phoenix Project](http://www.amazon.com/exec/obidos/ASIN/0988262509/enterpriseint-20), a healthy mix of getting IT operations out of being the perceived bottleneck who\n gets kicked by application development and the business, “system of constraints\" thinking\n a la [The Goal](http://www.amazon.com/exec/obidos/ASIN/0884271951/enterpriseint-20) and IT-enabled business transformation, all wrapped into a highly readable storyline\n with actual characters, including the IT ops whiz-kid who can do everything but explain\n nothing, the security officer who is bringing everything to a grinding halt, and the\n change manager who is mired in bureaucratic processes. The storyline including the\n dramatic low-point (our hero quits) and the happy ending (not telling) reminds us\n of the recipes described in some of the books on storytelling below.\n\n While a “must-read\" for everyone involved in corporate IT, I don't find the text terribly\n actionable. You may hand it out as an awareness builder and to collect some brownie\n points for seeing the changing role of IT in large organizations. I have not yet read\n the [The Visible Ops Handbook](http://www.amazon.com/exec/obidos/ASIN/0975568612/enterpriseint-20) by the same authors, which promises to be more concrete and actionable. |\n| --- | --- |\n| | A great follow-on read to *The Phoenix Project* is Jeff Sussna’s recent book [Designing Delivery](http://www.amazon.com/exec/obidos/ASIN/1491949880/enterpriseint-20). While the title may mislead (physical) book stores into shelving the book under\n “expecting mothers\", I found this book to do the best job so far at explaining how\n traditional IT has to change in order to survive in the digital world when the business\n is ready to replace the slow and unreliable IT with Amazon cloud solutions. Jeff explains\n well that DevOps is not (just) about sitting developers and operations staff together,\n but that it is based on a fundamentally different model, which derives from cybernetic\n systems, complex systems, and design thinking. It is noticeable that the book is composed\n of three distinct trains of thought, but I don’t see that as an issue – just read\n the parts that are most useful for your situation. After having had the chance to\n meet Jeff in person, I handed a copy of the book to all our business unit chief architects. |\n| | While the first two books focus on operational aspects of IT, i.e. building a bridge\n to the “engine room\", I’d also throw in one book on traditional enterprise architecture.\n Probably not the best overall book on the topic, but a definite classic is [Enterprise Architecture as Strategy](http://www.amazon.com/exec/obidos/ASIN/1591398398/enterpriseint-20) by MIT’s Center for Information Systems Research master minds Jeanne Ross and Peter\n Weill. This is a book about IT, not an IT book. It’s also a bit dated (anno 2006),\n but some of the graphics have become classic (most of them are visible on the [CISR Enterprise Architecture Site](http://cisr.mit.edu/research/research-overview/classic-topics/enterprise-architecture/)). Here you can learn how company leadership thinks about the role and the state of\n their IT. Good to know if you are part of said IT. |\n| | No list about understanding the changing role of corporate IT would be complete without\n Eric Riese's [The Lean Startup](http://www.amazon.com/exec/obidos/ASIN/0307887898/enterpriseint-20), which has made \"Minimum Viable Product\" and the \"Build - Measure - Learn loop\" \n household terms alongside \"Agile\" and \"DevOps\". The core idea to maximize the amount\n of learning by validating assumptions by placing actual products in front of your\n customer is as simple as it is profound. As with most simple ideas, though, implementing\n them can be harder than it may seem: you need to be fast, smart, and close to the\n customer. Large corporations that \"test\" their ideas on the white board and hire armies\n of external consultants to build solutions have a long way to go towards this vision.\n Getting the idea in front of as many people as possible is still the best way to start\n changing the way the organization works. |\n\n## Making Your Point\n\nUnderstanding industry trends and getting attention are great, but only if you have\n a point to make and are able to get it across. This requires more than just pretty\n slides and a wide stance - you also need to have a compelling storyline and stir your\n audience's emotions. Architects and engineers too often believe that because they\n have analyzed the situation and found the best path of action that everyone with a\n reasonable IQ would have no choice but agree with them. Sadly, this is one of the\n biggest fallacies of technically-minded presenters -- over 2000 years ago Aristotle\n already knew that you can argue based on logic (*logos*), but also on the character and credentials of the presenter (*ethos*), or based on emotion (*pathos*). That fact that he ordered them as ethos, pathos, and logos should make rational\n thinkers think again.\n\nWhen you are using *logos*, i.e. logic to reason about technical matters, never forget to [build a ramp](76_explaining.html) for your audience - otherwise they can't even appreciate your *logos*. Tons of books describe how to make expressive slides and give convincing talks,\n so I’ll just highlight lesser known titles specifically aimed at technical writers\n and presenters.\n\n| | [Stories that Move Mountains](http://www.amazon.com/exec/obidos/ASIN/1118423992/enterpriseint-20) is not your usual book -- it feels more like a collage of ideas and anecdotes from\n three [Microsofties](https://en.wiktionary.org/wiki/Microsoftie). So you better have a look inside before buying it to see whether the format suits\n you. I found the \"noisy\" visual style a bit distracting -- it's certainly no book\n you can read back-to-back. But the techniques are very useful when crafting engaging\n storylines to multiple levels of audiences. We learn about how to setup a plot (yes,\n something else to learn from Aristotle) and behind all the colors and fonts we learn\n a fairly structured process consisting of Content (Why, What, How, What If), Audience,\n Story (Structure, Character, Sense of Urgency, Plan), and Tell, the last one being\n related to delivering the story, but named to generate the [backronym](https://en.wikipedia.org/wiki/Backronym) CAST. If you are worried that following such a simple \"recipe\" will appear repetitive,\n just look at all the Hollywood movies that rake in hundreds of millions of Dollars\n with seemingly even simpler recipes. People like to be entertained. Even at work. |\n| --- | --- |\n| | When it comes to making pretty slides and impressive stage performances, it's one\n of the rare times when you can trust the consultants. In this book, \"the consultants\"\n have taken a fresh approach of teaching presentation design and delivery by using\n [Presentation Patterns](http://www.amazon.com/exec/obidos/ASIN/0321820800/enterpriseint-20), which has the advantage of giving you a “menu\" of presentation techniques as opposed\n to the “one right way\" of a wide stance and deep breath. The patterns also have catchy\n names like \"Carnegie Hall\" (practice, practice, practice) or \"Crucible\" (the best\n way to improve your presentation is to give it). The content covers coming up with\n a storyline (\"Narrative Arc\"), creating the slide material (the authors may be a bit\n heavy on using animations), and delivering the presentation. Patterns related to visual\n effects include detailed instructions on how to implement them in popular tools like\n Keynote and PowerPoint. Coincidentally, I contributed the somewhat obscure PowerPoint\n menu option to get the *Charred Trail* pattern to work properly. |\n| | Richard Guindon pointed out that writing is nature's way of telling us how sloppy\n our thinking is. That alone makes writing a worthwhile exercise as it requires us\n to sort out our thoughts so we can put them into a somewhat cohesive storyline. Unlike\n most slide decks well-written documents are also self-contained, so they can be widely\n distributed. The curse of writing is, though, that interesting topics are hardly ever\n linear, but writing is: word after word, paragraph after paragraph. [I described before](77_writing.html) how you can help the reader break out of this linearity, but this doesn’t put away\n with the need to string together words and sentences into a single, meaningful sequence.\n \n To computer scientists writing could hence be portrayed as a graph traversal problem:\n how do you walk the topic graph or mind map so that the resulting path is easiest\n for the reader to follow? The book [The Pyramid Principle](http://www.amazon.com/exec/obidos/ASIN/0273710516/enterpriseint-20) presents such an algorithm of traversing a topic hierarchy (called “pyramid\" in the\n book).\n\n The McKinsey staple \"Situation - Complication - Solution\" that is also covered in\n the book (the author is a former \"Mackie\") makes for a very simple, but effective\n storyline. That is, unless you turn these concepts into actual chapter headings, which\n one of our McK consultants insisted on doing. \n\n Oddly, the title seems out of print in some markets and appears in many different\n editions and versions at occasionally mind-boggling prices. The author is now [selling an expanded textbook](http://www.barbaraminto.com/textbook.html) for a whopping US$ 135! I recommend you look for a good used copy on [Amazon](http://www.amazon.com/exec/obidos/ASIN/0273710516/enterpriseint-20) - they start at US$ 40. |\n| | Some 95% of the world's population are non-native speakers of English (some British\n fellows may even petition to exclude the 4% across the pond from that set). Hence,\n in my rambling on [Writing for Busy People](77_writing.html) I introduced the book [Technical Writing and Professional Communication for Non-native Speakers](http://www.amazon.com/exec/obidos/ASIN/007030825X/enterpriseint-20). Sadly, it's also out of print, which is especially surprising in light of its 92%\n \"5 star\" reviews (plus a single 4-star review).\n\n The chapters on \"General Strategies for the Writing Process\" are a great intro (just\n skip the chapter on \"Using the Computer\" - the original title dates back to 1983),\n but the real asset are the chapters under \"Readability\". They contain the best guidance\n on how to cover complex technical topics that I have seen: not only do we learn how\n to structure lists (\"parallelism\") and paragraphs (\"chronological\", \"cause-effect\",\n \"comparison\", etc.), but also how to maintain focus through \"optimal ordering of noun\n phrases.\" I'd posit that many a native speaker / writer could benefit significantly\n from this guidance.\n\n This book is all about *logos*: examples from arcane technical domains like financial derivatives or chemical processing\n plants highlight how proper transitions between sentences can help the reader follow\n the technical logic. This book convinced me that English grammar is very suitable\n for describing complex technical relationships in simple words and clear structures.\n Take advantage of that!\n\n Despite its age I still recommend it to anyone doing technical writing on complex\n subjects. I often say that we must minimize the percentage of brain cells the readers\n must use to parse the sentences and paragraphs, so that they have more brain cells\n left for your content! |\n\n## Gathering Support\n\nNow you understand the business strategy and the role architecture plays in it and\n you have attracted management’s attention with a killer presentation. Now you need\n to get support for your ideas! And the support doesn’t necessarily come from the person\n highest in the org chart. Better yet, you have done your homework before and aligned\n with key stakeholders and influencers. To understand how organizations work and how\n to navigate them, a few more books are helpful:\n\n| | The book [The Ape in the Corner Office](http://www.amazon.com/exec/obidos/ASIN/140005219X/enterpriseint-20) was recommended to me by Erik Meijer. Even though I have not had a chance to read\n it, I blindly trust Erik’s advice and his verbal summary. The long story short is\n that despite all noble thoughts and thousands of years of evolution, when you put\n a bunch of humans into a social structure, the dynamics are awfully similar to putting\n a few primates into a cage: individuals fights for position, split into groups, take\n up habits (or corporate culture). The somewhat cynic, but quite accurate revelation\n is that in large organizations only two motivators dominate decisions making and behavior:\n fear and greed. Bringing your message to this level might make you feel a tiny bit\n dirty, but it’s bound to get your point across. |\n| --- | --- |\n| | If you want to get support from your audience, you first need to understand how people\n think, or rather how our brain works. The most popular and quite arguably the best\n title on that subject is Danny Kahneman's [Thinking, Fast and Slow](http://www.amazon.com/exec/obidos/ASIN/0374533555/enterpriseint-20). As so often, the premise is simple: we have two types of modes in our brains, one\n that works fast and automatic, but can play tricks on us, and another one that is\n much better, but that requires conscious effort to gear up. This insight isn't completely\n new, but Kahneman focuses on the interplay between the systems and provides great\n examples and stories on how to use this insight when presenting or receiving data.\n On top of all that it's an entertaining read and a great source of anecdotes: I have\n used the \"Kidney Cancer\" example in my talks because it illustrates so easily how\n our mind plays tricks on us. |\n| | I have to admit that the first time I heard about Dale Carnegie's [How to Win Friends and Influence People](http://www.amazon.com/exec/obidos/ASIN/0671027034/enterpriseint-20) I was a little put off by the title as it sounded pretty insincere to me. Having\n found out much later that Carnegie actually changed the spelling of his name (originally\n \"Carnagey\")to coincide with Andrew Carnegie, who built the aforementioned hall, to\n gather more attention all but underlines my initial impression. The book is of course\n coming from an American cultural point-of-view, which will make some Europeans, who\n still struggle to internalize that \"how are you doing today?\" is actually not a question,\n scratch their heads.\n \n On the other hand, the book that pretty much started the market for self-help books\n in the US and has sold over 15 million copies is certainly worth a read. And some\n of the advice like \"be genuinely interested in other people\" does sound a bit more\n sincere than the title. If you are impatient, the [Wikipedia page](https://en.wikipedia.org/wiki/How_to_Win_Friends_and_Influence_People#Major_sections_and_points) summarizes the key points. |\n\nIf you feel like reading these books will make you a better shrink but not a better\n IT architect, recall that you are preparing for visits to the penthouse. Enjoy the\n read and the ride.\n\n*Share:*\n\n*Follow:* [Follow @ghohpe](https://twitter.com/ghohpe) [SUBSCRIBE TO FEED](../ramblings.rss)\n\n*More On:* [ARCHITECTURE](/ramblings_architecture.html) [ALL RAMBLINGS](../ramblings.html)\n\nGregor is a cloud architect and author. He is a frequent speaker on asynchronous messaging,\n IT strategy, and cloud.", "znaku_textu": 21214, "slov": 3242, "odkazu": 71, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/ramblings/91_bookshelfpenthouse.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 06:53:35", "sha256": "241e73063b5edb5c22c2972deecb564e6d0dc7f740aaa0607a87b4ddd22a3c40", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://architectelevator.com/blog", "https://en.wikipedia.org/wiki/The_Hitchhiker's_Guide_to_the_Galaxy", "http://futurama.wikia.com/wiki/Alcazar", "http://leanpub.com/37things", "http://www.imdb.com/title/tt0017136/", "http://www.giorgiomoroder.com/", "http://www.amazon.com/exec/obidos/ASIN/0988262592/enterpriseint-20", "http://www.amazon.com/exec/obidos/ASIN/0988262509/enterpriseint-20", "http://www.amazon.com/exec/obidos/ASIN/0884271951/enterpriseint-20", "http://www.amazon.com/exec/obidos/ASIN/0975568612/enterpriseint-20", "http://www.amazon.com/exec/obidos/ASIN/1491949880/enterpriseint-20", "http://www.amazon.com/exec/obidos/ASIN/1591398398/enterpriseint-20", "http://cisr.mit.edu/research/research-overview/classic-topics/enterprise-architecture/", "http://www.amazon.com/exec/obidos/ASIN/0307887898/enterpriseint-20", "http://www.amazon.com/exec/obidos/ASIN/1118423992/enterpriseint-20", "https://en.wiktionary.org/wiki/Microsoftie", "https://en.wikipedia.org/wiki/Backronym", "http://www.amazon.com/exec/obidos/ASIN/0321820800/enterpriseint-20", "http://www.amazon.com/exec/obidos/ASIN/0273710516/enterpriseint-20", "http://www.barbaraminto.com/textbook.html", "http://www.amazon.com/exec/obidos/ASIN/007030825X/enterpriseint-20", "http://www.amazon.com/exec/obidos/ASIN/140005219X/enterpriseint-20", "http://www.amazon.com/exec/obidos/ASIN/0374533555/enterpriseint-20", "http://www.amazon.com/exec/obidos/ASIN/0671027034/enterpriseint-20", "https://en.wikipedia.org/wiki/How_to_Win_Friends_and_Influence_People", "https://twitter.com/share", "https://twitter.com/ghohpe", "https://leanpub.com/37things"]} {"url": "https://www.enterpriseintegrationpatterns.com/ramblings/92_scaling.html", "titulek": "How to Scale an Organization? The same way you scale a system! - Enterprise Integration Patterns", "h1": "How to Scale an Organization? The same way you scale a system!", "popis": "The digital world is all about scalability: millions of web sites, billions of hits per month, more data, more tweets, more images uploaded", "klicova_slova": "", "kanonicka": "", "jazyk": "en_US", "robots_meta": "", "og": {"og:type": "article", "og:locale": "en_US", "og:site_name": "Enterprise Integration Patterns", "og:title": "How to Scale an Organization? The same way you scale a system!", "og:description": "The digital world is all about scalability: millions of web sites, billions of hits per month, more data, more tweets, more images uploaded", "og:url": "https://www.enterpriseintegrationpatterns.com/ramblings/92_scaling.html"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "How to Scale an Organization? The same way you scale a system!"}, {"uroven": 2, "text": "Component Design - Personal Productivity"}, {"uroven": 2, "text": "Avoid Sync Points - Meetings Don’t Scale"}, {"uroven": 2, "text": "Interrupts Interrupt - Phone Calls"}, {"uroven": 2, "text": "Piling on instead of backing off"}, {"uroven": 2, "text": "Asynchronous Communication – Email, Chat, and More"}, {"uroven": 2, "text": "Asking Doesn’t Scale – Build a Cache!"}, {"uroven": 2, "text": "Poorly Set Domain Boundaries - Excessive Alignment"}, {"uroven": 2, "text": "Self-Service is Better Service"}, {"uroven": 2, "text": "Scaling for Size or for Speed"}, {"uroven": 2, "text": "Staying Human"}], "markdown": "Gregor's Ramblings\n\n---\n\n# How to Scale an Organization? The same way you scale a system!\n\nJanuary 12, 2016\n\nFind my posts on IT strategy, enterprise architecture, and digital transformation\n at [ArchitectElevator.com](https://architectelevator.com/blog).\n\nThe digital world is all about scalability: millions of web sites, billions of hits\n per month, more data, more tweets, more images uploaded. To make this work, architects\n have learned a ton about scaling systems: make services stateless for horizontal scalability,\n avoid synchronization points to maximize throughput, keep transactions local, reduce\n synchronous remote communication, use clever caching strategies, shorten your variable\n names (just kidding!).\n\nWith everything around us scaling to never-before-seen throughput, the limiting element\n in all this is bound to be us, the human users. And the organizations we work in.\n One may wonder, then, why scaling and optimizing throughput in organizations is considered\n a very different field usually completely ignored by the IT architects who know so\n much about scalability. I may have become an [Architect Astronaut](http://www.joelonsoftware.com/articles/fog0000000018.html) suffering from Oxygen deprivation due to exceedingly high levels of abstraction,\n but I nevertheless feel that many of the scalability and performance enhancement approaches\n experienced IT architects know can be just as well used to scale organizations. If\n a [Coffee Shop](/ramblings/ 18_starbucks.html) can teach us about maximizing a system’s throughput, maybe our knowledge of IT systems\n design can help improve the performance of organizations!\n\n## Component Design - Personal Productivity\n\nIncreasing throughput starts with the individual. Some folks are simply ten times\n more productive than others. For me it’s hit or miss: I can be incredibly productive\n if I am “in the zone\", or can lose track when I am annoyed by something or being frequently\n interrupted. So I won’t bestow you with any great advice, but refer you to the many\n resources like [GTD – Getting Things Done](https://en.wikipedia.org/wiki/Getting_Things_Done). The key point of these techniques tends to be to minimize inventory of open tasks\n (making the “lean\" folks happy) and by breaking larger tasks down into small tasks\n that are actionable. For example, “I really need to replace that old clunker\" turns\n into “visit 3 dealerships this weekend\". Incoming “stuff\" is categorized and parked\n if needed until it is actionable to reduce the number of concurrent threads. The suggestions\n are very sound but as always it takes a bit of trust and lots of discipline to succeed\n at implementing them.\n\n## Avoid Sync Points - Meetings Don’t Scale\n\nLet’s assume people do their best individually to be productive and have high throughput,\n meaning we have efficient and effective system components. Now we need to look at\n the integration architecture, which includes interaction between the components, er\n people. One of the most common interaction points (short of e-mail, more on that later)\n surely is the *meeting*. The name alone gives some of us goose bumps because it suggests that people get\n together to “meet\" each other, but does not define any specific objective or outcome.\n\nFrom a system design perspective meetings have another troublesome property: Meetings\n require multiple humans to be (mostly) in the same place at the same time. In software\n architecture we call this a \"synchronization\" point, known as one of the biggest throughput\n killers. A synchronization point almost invariably means that some parties or components\n wait for others (that’s how they get “synchronized\"), which kills throughput.\n\nIn many traditional organizations, setting up a meeting can take a month or longer,\n depending on whose attendance is required, which leads to significantly slowed down\n decision-making and project progress. Meetings also lead to resource contention: people’s\n time. When I look at my calendar I all too often see 3 or 4 meetings stacked in the\n same time slot despite the significant effort put into managing the calendar. The\n fact that most managers in large organizations have someone manage their calendar\n underlines the overhead involved in employing meetings as the primary interaction\n strategy. To top things off, full schedules trigger a positive feedback loop consisting\n of planning further ahead and blocking time \"just in case\", which subsequently makes\n it even more difficult to find a slot. In system design we would call this *pessimistic resource allocation*, which is also known to be placing a burden on the system.\n\nWhile meetings can be useful for critical discussions and decisions (see below), the\n worst kind of meetings must be status meetings. If I want to know where a project\n “stands\" I need to wait for the next status meeting in a week or two. Worse yet, many\n status meetings I attended consisted of someone reading off slides, which were unavailable\n to be distributed ahead of the meeting lest someone could read them by themselves\n and skip the meeting.\n\n## Interrupts Interrupt - Phone Calls\n\nWhen you can’t wait for the next meeting, you tend to call the person. I know well\n as I log half a dozen incoming calls a day, which I routinely don’t answer (they typically\n lead to an e-mail starting with the phrase “I was unable to reach you by phone\", whose\n purpose I never quite understood). Phone calls are also synchronous, but don’t require\n wait time, so they should be better than setting up a meeting?\n\nYes, phone calls are low-latency because the requestor doesn’t wait, but they also\n require two or more resources to be available at the same time. How many times have\n you played “phone tag\", i.e. you were busy or on the phone when someone called just\n to experience the reverse when you call them back? I am not sure there’s an analog\n to this in system communication (I should know; after all I am documenting [conversation patterns](/ramblings/83_subscribing.html)…), but it’s difficult to imagine this as effective communication.\n\nPhone calls are “interrupts\" (they are blockable as long as you mute your ringer),\n and in open environment they not only interrupt you, but also your coworkers. That's\n one reason that the Google Japan desks were by default not equipped with phones -\n you had to specifically request one, which was looked upon as a little old-fashioned.\n The damage ringing phones can do in open office spaces was already illustrated in\n Tom DeMarco and Tim Lister's classic [Peopleware](http://www.amazon.com/exec/obidos/ASIN/0321934113/enterpriseint-20). The \"tissue trick\" won't work anymore with digital phones, but luckily almost all\n of them have a volume setting. My pet peeve related to phones is that people bust\n into my office while I am on the speaker phone (conference calls), so I'd like to\n build a pet project to illuminate an \"on air\" sign when I am on the phone. IP telephony\n should make this fairly easy, barring any self-inflicted access restrictions.\n\nPhone calls also also tend to lead to very uneven resource usage. It seems that suddenly\n everyone calls you, but other times it’s awfully quiet. This is a classic utilization\n problem that queuing solves by performing “traffic shaping\" – spikes are absorbed\n by the queue to allow the service to process requests at the optimal rate without\n becoming overloaded.\n\n## Piling on instead of backing off\n\nRetrying an unsuccessful operation is a typical remote [conversation pattern](/patterns/conversation/RequestResponseRetry.html). It is also a dangerous operation because it can escalate a small disturbance in\n a system into an onslaught of retries which bring everything to a grinding halt. That's\n why [Exponential Backoff](https://en.wikipedia.org/wiki/Exponential_backoff) is a well-known pattern and forms the basis of many low-level networking protocols,\n such as the CSMA/CD (Carrier Sense, Multiple Access with Collision Detection), which\n is a core element of the Ethernet protocol.\n\nIronically, humans tend to not back off if a phone call fails, but have a tendency\n to \"pile on\": if you don't pick up they tend to call you at ever shorter intervals\n to signal you that \"it's urgent\". Ultimately, they will back off, but only after burdening\n the system with overly aggressive retries.\n\n## Asynchronous Communication – Email, Chat, and More\n\nIn corporate environments E-Mail tends to draw almost as much hatred as meetings.\n It has one big advantage, though: it is asynchronous. Instead of being interrupted,\n you can process your e-mail whenever you have a few minutes to spare. Getting a response\n may take slightly longer, but it’s a classic “throughput over latency\" architecture,\n best described by Clemens Vaster’s analogy of needing [wider bridges not faster cars](/ramblings/29_teched.html) (referring to the perennially congested highway 520 bridge that connects Seattle\n to Redmond).\n\nOf course e-mail has significant draw-backs, the main one being is that people tend\n to flood everyone with it as it is perceived as having no cost. You must have a good\n inbox filter if you want to survive – those of us who use Outlook without working\n search (not the product’s fault, but a \"feature\" of our setup) are doomed. Also,\n Mail isn't collectively searchable – each person has their own record of history.\n I guess you could call that an *eventually-consistent* architecture of sorts and just live with it, but it still seems horribly inefficient.\n I wonder how many copies of that same 10 MB PowerPoint presentation plus all it's\n prior versions are stored on our Exchange server.\n\nOne of the best ways I have seen to overcome the limitations of e-mail is to integrate\n chat with mail: if you don’t get a reply or the reply indicates that a real-time discussion\n is needed, you select the “reply by chat\" button, which turns the conversation into\n a quasi-synchronous mode: it still allows the receiver to answer at will (so it’s\n asynchronous), but allows for much quicker iterations than mail. The other effective\n way to conduct asynchronous communication without e-Mail is to use products like [Slack](https://slack.com), which favor a chat / channel paradigm (I have not had a chance to use it irl). In\n systems architecture you could liken this to [Tuple spaces](https://en.wikipedia.org/wiki/Tuple_space), which employ a *blackboard* architectural style. Such a style is well suited for scalable, distributed systems\n as it is loosely coupled and avoids duplication.\n\nSpeaking of blackboard, the most transformative change in corporate collaboration\n I have seen was the advent of Google Docs and it’s not due to my 7 years of drinking\n Google Koolaid. In fact, when Docs first became available internally at Google I complained\n a lot because it had a level of feature maturity below that of Microsoft Word 5.0.\n However, being able to collaborate in real-time on a document completely changed the\n way people work together towards a shared outcome. Having had to go back to mailing\n Word documents back-and-forth has been an extremely frustrating experience.\n\n## Asking Doesn’t Scale – Build a Cache!\n\nMuch of corporate communication consists of asking questions, often using synchronous\n communication. This does not scale because the same questions get asked again and\n again. Architects would surely introduce a cache into their system to offload the\n source component.\n\nI was reminded of this when I received repeated requests for simple information, such\n as a photo of our new team member. I simply typed his name into Google, and replied\n with the link to the picture: I asked Google, not another person. Search scales, but\n only if the answers are available in a globally (as in across your organization) searchable\n medium. So if you receive a question, answer so that everyone can see (and search\n it), e.g. on an internal forum. That’s how you load the cache. Taking the time to\n explain something in a short document or forum post scales: 1000 people can search\n for and read what you have to share. 1000 1:1 meetings to explain the same story would\n take half or your annual work time.\n\n## Poorly Set Domain Boundaries - Excessive Alignment\n\nWhen I joined corporate IT I had to learn a whole new language. Not just because I\n moved to Bavaria ([ja mei!](http://www.muenchen.de/veranstaltungen/oktoberfest/schmankerl/bayerisch-kurs.html)), but because corporate IT in large organizations has a distinct vocabulary. My\n coworkers can attest that my most unwelcome word at work is “to align\". I often jest\n that that “aligning\" is what I do when my car doesn’t run straight or wears the tires\n unevenly. Why I need to do it at work all the time puzzled me. Especially as “alignment\"\n invariably triggered a meeting with no clear objective (see above).\n\nIn corp speak, “to align\" means to coordinate on an issue and come to some sort of\n common understanding or agreement. A common understanding is an integral part of productive\n team work, but what worries me is that the act of “aligning\" takes on a life of its\n own. My explanation is that it’s a sign of mis-alignment (pun intended) between the\n project and organizational structure: the people that are critical to a project’s\n success or are vital decision makers are not part of the project, requiring frequent\n “steering\" and “alignment\" meetings.\n\nThe system design analog for this problem are poorly set domain boundaries, drawing\n on Eric Evan’s [Domain-driven Design](https://domainlanguage.com/) concept of a [Bounded Context](http://martinfowler.com/bliki/BoundedContext.html). As a side note, Eric’s website layout will quickly reveal that his book was published\n at the same time as ours.\n\n## Self-Service is Better Service\n\nSelf-service generally has poor connotations – would you rather eat at McDonald’s\n or in a white table-cloth restaurant with waiter service if the price was the same?\n However, if you are a food chain looking to optimize throughput would you rather be\n McDonald’s or the quaint Italian place with 5 tables? Self-service scales. Like a\n large supermarket. Requesting a service or ordering a product by making a phone call\n or e-mailing spreadsheets attachments for someone to manually enter data does not\n scale, even if you lower the labor cost with near- or offshoring. In order to scale,\n [automate everything](/ramblings/90_softwareeatstheworld.html): make all functions and processes available on-line on the intranet, ideally both\n as Web UI’s and as (access protected) service API’s so users can layer services or\n custom user interfaces on top, e.g. to combine popular functions.\n\n## Scaling for Size or for Speed\n\nSo far we discussed scaling organizations for speed and throughput. Typically, “Economies\n of scale\" are associated with scale in terms of size, though. Our organization often\n prides itself in “economies of skill, scale, and scope\". Since we are a large organization,\n this should be a good thing, but I often don’t see the economies of scale in software.\n A software vendor once visited us and stated that “obviously the license cost per\n unit goes down if we buy more licenses\". To me this is not obvious at all as there\n is no distribution cost per unit of software, aside from the sales person sitting\n across the table from me. Whether 10000 customers download one license or 1 customer\n buys 10000 licenses should be the same, assuming the software vendor automated everything.\n I guess enterprise software sales still has some transformations to make.\n\nSize is often seen as an advantage, but it also brings disadvantages as many large\n organizations that wish to compete with start-ups and digital native companies can\n attest. Large organizations tend to be slower as they are bogged down in internal\n processes and control structures that are required or perceived to be required to\n keep a large organization in check. The same holds true for cities: density and scale\n have definite advantages (e.g. short transportation and communication paths, diverse\n labor supply), but also brings pollution and congestion problems, which ultimately\n limit the size of cities. For organizations one big factor is speed of change – in\n times of little change being big is almost always an advantage. In times of change\n economies of speed are likely to outweigh economies of scale.\n\n## Staying Human\n\nDoes scaling organizations like computer systems mean that the digital world shuns\n personal interaction, turning us into faceless e-mail and workflow drones that must\n maximize throughput? I don't think so. I very much value personal interaction for\n brainstorming, negotiation, solution finding, bonding, or just having a good time.\n That's what we should maximize face-to-face time for. Having someone read slides aloud\n or calling me the third time to ask the same question could be achieved many times\n faster by optimizing communication patterns. Am I being impatient? Possibly, but in\n a world where everything moves faster and faster, patience may not be the best strategy.\n High-throughput systems do not reward patience.\n\n*Share:*\n\n*Follow:* [Follow @ghohpe](https://twitter.com/ghohpe) [SUBSCRIBE TO FEED](../ramblings.rss)\n\n*More On:* [ARCHITECTURE](/ramblings_architecture.html) [ALL RAMBLINGS](../ramblings.html)\n\nGregor is a cloud architect and author. He is a frequent speaker on asynchronous messaging,\n IT strategy, and cloud.", "znaku_textu": 17356, "slov": 2732, "odkazu": 57, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/ramblings/92_scaling.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 06:53:34", "sha256": "b799409fdd7d2ebf2f4639f72547b30d4c3636c59829d0e77673a4c7e25f7195", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://architectelevator.com/blog", "http://www.joelonsoftware.com/articles/fog0000000018.html", "https://en.wikipedia.org/wiki/Getting_Things_Done", "http://www.amazon.com/exec/obidos/ASIN/0321934113/enterpriseint-20", "https://en.wikipedia.org/wiki/Exponential_backoff", "https://slack.com/", "https://en.wikipedia.org/wiki/Tuple_space", "http://www.muenchen.de/veranstaltungen/oktoberfest/schmankerl/bayerisch-kurs.html", "https://domainlanguage.com/", "http://martinfowler.com/bliki/BoundedContext.html", "https://twitter.com/share", "https://twitter.com/ghohpe", "https://leanpub.com/37things"]} {"url": "https://www.enterpriseintegrationpatterns.com/ramblings/93_oop2016.html", "titulek": "25 Years of OOP - Enterprise Integration Patterns", "h1": "25 Years of OOP", "popis": "OOP is one of the conferences that originated in the \"OO\" era of the early to mid-nineties", "klicova_slova": "", "kanonicka": "", "jazyk": "en_US", "robots_meta": "", "og": {"og:type": "article", "og:locale": "en_US", "og:site_name": "Enterprise Integration Patterns", "og:title": "25 Years of OOP", "og:description": "OOP is one of the conferences that originated in the \"OO\" era of the early to mid-nineties", "og:url": "https://www.enterpriseintegrationpatterns.com/ramblings/93_oop2016.html"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "25 Years of OOP"}, {"uroven": 2, "text": "Ralph Johnson: Modeling vs. Coding"}, {"uroven": 2, "text": "James Grenning on Agile"}, {"uroven": 2, "text": "Linda Rising: Patterns: My Journey"}, {"uroven": 2, "text": "When will I, will I be famous?"}, {"uroven": 2, "text": "Frank and Kevlin on Objects"}, {"uroven": 2, "text": "Kresten Krab Thorub on Messaging with Erlang"}], "markdown": "Gregor's Ramblings\n\n---\n\n# 25 Years of OOP\n\nFebruary 5, 2016\n\nFind my posts on IT strategy, enterprise architecture, and digital transformation\n at [ArchitectElevator.com](https://architectelevator.com/blog).\n\nOOP is one of the conferences that originated in the \"OO\" era of the early to mid-nineties.\n While most of these events have shed the double \"O\" -- OOPSLA has become SPLASH and\n JAOO has become GOTO, OOP stayed true to its name and remains one of the premier German\n developer conferences. This year OOP celebrated its 25th anniversary. Here are my\n impressions.\n\nFor the 25 year anniversary, Frank Buschmann of [POSA](http://www.amazon.com/exec/obidos/ASIN/0471958697/enterpriseint-20) fame setup a special jubilee track with famous folks who have been around the block\n once or twice. First up was Eoin Woods (pronounced \"Owen\"), co-author of [Software Systems Architecture](http://www.amazon.com/exec/obidos/ASIN/032171833X/enterpriseint-20). Eoin spoke on dissolving systems, meaning instead of a giant monolithic chunk these\n systems consist of an almost organic structure of distributed components. He observed\n that this not only changes the architecture, but also the role of architects.\n\nTrue to the spirit of the track, Eoin gave a history of preferred software architectures\n from monoliths in the 80ies to distributed monoliths (consisting of large pieces)\n in the 90ies, Internet connected systems in the 2000s and Internet distributed systems\n in the 2010s. He predicts that systems in the 2020s will be *intelligent connected*. Along this evolution, the role of architects also changed: with monolithic systems,\n the vendor pretty much gave us the architecture, leaving us to focus on writing programs.\n In the 1990s software architecture emerged as a serious topic, for example with the\n WICSA conference (German speakers can never say this with a straight face). Also,\n Mary Shaw's and Dave Garlan's seminal title [Software Architecture](http://www.amazon.com/exec/obidos/ASIN/0131829572/enterpriseint-20) dates back to just 1996 -- not actually that long ago.\n\nAs systems become distributed, being dissolved into microservices and connected via\n API's, architecture takes a stronger role. Maybe this explains my observation of new\n software architecture conferences popping up in recent years, e.g. the [Software Architect Summit](http://software-architecture-summit.de/) and O'Reilly's [Software Architecture](http://conferences.oreilly.com/software-architecture/) conference. Eoin observed that just in the 2010s the discipline of software architecture\n matured with a focus on decision-making, sustainability, managed evolution.\n\nReflecting on the current state of software architecture, Eoin observes that software\n architects have become pretty good at structure, relationships, certainty, but not\n so good at dynamic structures, data and algorithms and operational aspects.\n\n## Ralph Johnson: Modeling vs. Coding\n\nRalph is now officially retired, but appears as active as ever: he is working for\n [Metaficient](http://metaficient.com/), which builds end-user programming tools for the financial industry. No quite coincidentally,\n his talk reflected on the different ways we are looking for models, abstractions,\n or patterns to make programming easier and more expressive. He consciously excluded\n visual modeling as he wanted to focus on the essence of the model, not the notation\n (this is also why he did not mention our EIP patterns).\n\nRalph was not the only speaker who reminded us of the “Scandinavian School of OO”,\n which pursued an object model that maps objects to real world items and a vocabulary\n that is meaningful to users, allowing users to participate in the design process.\n This actually worked well in business domains, but not so well in things like physics\n simulations. In contrast the \"American School of OO\" was driven by pursuit of efficiency\n through reuse, i.e. economics.\n\nRalph also reminded us of two famous and very insightful quotes from George Box:\n\n- All models are wrong, but some are useful.\n- Simple but evocative models are the signature of the great scientist, but over-elaboration\n and over-parameterization is often the mark of mediocrity.\n\nThe most enjoyable part of Ralph's talk was to have the opportunity to chat with him\n for a good 10 minutes afterwards. I was surprised not more attendees would line up\n to talk to *the* Ralph Johnson of GoF fame. I guess German attendees are a bit shy. Ralph reminded\n me to have another look at [Data Model Patterns](http://www.amazon.com/exec/obidos/ASIN/0932633293/enterpriseint-20), which shares many parallels with Martin Fowler's [Analysis Patterns](http://www.amazon.com/exec/obidos/ASIN/0201895420/enterpriseint-20), although the books are based on different meta-models: relational vs. object-oriented.\n\n## James Grenning on Agile\n\nBeing one of the original authors of the [Agile Manifesto](http://www.agilemanifesto.org/), James reflected on what went right and what went wrong with \"agile\". Much of what\n went wrong relates to [Scrum](https://en.wikipedia.org/wiki/Scrum_(software_development)). The most noteworthy sound bites were:\n\n- \"There are 6 times more certified Scrum masters than certified Scrum developers. It\n seems 6 Scrum Masters are needed to manage one Scrum developer.\"\n- \"If there always is a Scrum master, who are the poor Scrum slaves?\"\n- \"Why do we have to sprint all the time? Sprinting over long distances makes no sense.\"\n\nI fear my employer actively supports James' first point: we recently sent around 100\n project managers through Scrum certification. They'll be looking for developers to\n chase through sprints now.\n\n## Linda Rising: Patterns: My Journey\n\nIt was great to see Linda again. I attended her talk mostly to see her speak as I\n was part of a good portion of the patterns journey from [workshopping](66_fouryears.html) *Enterprise Integration Patterns* at PLoP 2002, *Conversation Patterns* at EuroPLoP 2008, and attending various PLoPs and ChiliPLoPs. Linda has a knack for\n making connections between seemingly disconnected domains and a great way of highlighting\n subtleties that may otherwise go unnoticed. For example, I really enjoyed Linda's\n description of the difference between a patterns conference and a usual (academic)\n conference: in a normal conference, a person submits a paper, which is either accepted\n or rejected, based on the state it is in at the time of submission. Authors of accepted\n papers are allowed to present their paper, but leave pretty much with the same state\n of knowledge they came with, aside from interesting Q&A perhaps. Pattern conferences\n work differently: papers are actively \"shepherded\" to improve them and to get them\n into prime time for the conference. During the conference the author does not speak\n at all -- the paper must speak for itself. Instead, fellow participants and other\n authors comment on the paper in a so-called *writers' workshop*. The author leaves with fantastic feedback on his or her paper. While giving feedback\n on a paper sounds trivial, you have to have experienced a well-moderated writers'\n workshop to really understand its power. Dick Gabriel's thoughtful book [Writers' Workshops](http://www.amazon.com/exec/obidos/ASIN/020172183X/enterpriseint-20) appears out of print, but he made the [PDF available on-line](https://www.dreamsongs.com/Files/WritersWorkshopTypeset.pdf).\n\nSpeaking of making things available, Linda pointed out that she makes all her material\n available freely and encourages us to give her talk ourselves. Her main motivation\n is to share the message with as many people as possible.\n\n## When will I, will I be famous?\n\nRegular readers already know that most of my references originate from cheesy 80s\n songs or the movie *The Matrix*. Staying in tune with Bros' 1987 hit, I felt a big step closer to stardom when I\n was invited to join a panel on *Software Engineering 10 years from Now* with none less than (OTI) Dave Thomas, Ward Cunningham, and Richard Soley, Chairman\n of OMG. These guys have seen the last 30 years of software engineering from up-close\n and certainly left their mark, so I was a bit nervous about being able to add much\n at all. Hence, this was the first time I was inclined to actually prepare for a panel.\n\nLuckily, at a dinner at Frank Buschmann's earlier in the week, Kevlin Henney and I\n recalled that exactly 10 years earlier, at [JAOO 2006](47_jaoo.html) we had a similar panel, that time with Dave as moderator and Kevlin as one of the\n panelist. So I felt it'd be a good start to recap some of the items that occupied\n us back then and see what they feel like 10 years later:\n\n- In 2006 folks were concerned about AOP (Aspect-Oriented Programming). It seems we\n are no longer that concerned because it has gotten pretty quiet on that topic. Dave\n clearly expressed his view on AOP with a strong thumbs-down vote.\n- In 2006, there was still some quite some activity on mapping, e.g. O/R or Objects-XML.\n Kevlin already commented back then that mapping sucks. Today it seems we found peace\n with solutions that don't totally suck and stopped trying.\n- Another topic 10 years ago were CSP - Communicating Sequential Processes. This one\n actually got traction with Erlang being popular and Go being based on CSP.\n- DSLs are still a topic, but somewhat of a niche. It turns out that building good DSLs\n with great tool support is possible, but requires some smart folks like [Markus Völter and Bernd Kolb](http://www.oop-konferenz.de/oop2016/konferenz/konferenzprogramm/sessiondetails/action/detail/session/di-53/title/wir-sind-aber-keine-programmierer-oder-doch.html) .\n\nAlas, Ward was even better prepared and had a whole opening speech drafted up, which\n included visions of Starbucks Hacker Spaces. Being part of such a star-studded panel,\n I actually managed to take some notes myself. I hope the audience didn't think I was\n replying to e-mails during the panel. Here some of the key messages I was able to\n capture:\n\n- Ward: We have already seen all the things that will be important in 10 years.\n- Ward: the \"Internet of Things\" will be just \"Things\". The Internet weill be taken\n for granted.\n- Richard: The most widespread languages are still same old Fortran and COBOL.\n- Richard: Security is and will be a key consideration.\n- Dave: Tooling and affordances are still very weak. The accidental complexity can kill\n us.\n- Dave: Cheap hardware has been saving us: we did not achieve isolation because we are\n smart enough to understand Erlang, but because processors are so cheap that we can\n use a micro-services architecture.\n- Dave: The future belongs to people with domain knowledge. You better understand some\n domains.\n- Dave: With 10TB local storage on your laptop you won't need to reach out to a server\n for every little thing. Peer-to-peer communication will see a revival.\n- Dave: we will see quantum computing, but you and I won't be using it.\n- Dave: People need to understand *software physics* , for example threading does not make things magically faster.\n\nI wasn't able to take notes on my own comments, but recall touching on the following\n topics:\n\n- It seems that after preoccupying ourselves with things like type systems and languages,\n we now focus on truly important aspects of software development: security and resilience.\n- Some part of having to deal with these is self-inflicted as we moved to more dynamic,\n but also more complex run-time architectures.\n\n## Frank and Kevlin on Objects\n\nFrank and Kevlin gave a another great review of object-oriented programming, highlighting\n how much we owe to Simula-67. Simula has some distinct features like the ability to\n \"park\" procedures, which are referred to as \"classes\". The story goes that Bjarne\n Stroustrup wasn't allowed to use Simula at AT&T and hence extended C to become C++.\n\nTheir talk was lined with fantastic sound bites, like the observation that the opposite\n of *set*set is *unset*, not *get*. Likewise, *get* doesn't even have an opposite. *get* and *set* just happen to rhyme.\n\nWe also often forget that the terms \"class\" and \"instance\" were already part of [Structured Programming](http://www.amazon.com/exec/obidos/ASIN/0122005503/enterpriseint-20) (looking at Amazon, it seems that by now all good Computer Science books are out\n of print -- or I am simply getting old).\n\n## Kresten Krab Thorub on Messaging with Erlang\n\nKresten gave a really nice talk on Erlang, making the case that Erlang will not be\n a mainstream language, but will have a big influence on future languages, much like\n Smalltalk influenced Java. Hos talk struck the perfect balance between being contemplative\n and easy to follow. Erlang originated from building reliable, distributed systems\n -- something that has become increasingly relevant.\n\nThe key to Erlang's robustness is isolation: components execute independently and\n communicate via messages sent across in-memory message queues. Kresten explained that\n the big relief when moving from C++ to Java is not have to worry about deallocation.\n When moving from Java to Erlang you gain \"state containment\".\n\nKresten's talk reminded me how lazy I am when it comes to learning new languages.\n I think the last language I learned is Python. So I downloaded Go-lang to get of my\n butt and learn a new language. I was also wondering whether Erlang could make for\n a suitable language to program some [Conversation Patterns](/patterns/conversation).\n\n*Share:*\n\n*Follow:* [Follow @ghohpe](https://twitter.com/ghohpe) [SUBSCRIBE TO FEED](../ramblings.rss)\n\n*More On:* [EVENTS](/ramblings_events.html) [ALL RAMBLINGS](../ramblings.html)\n\nGregor is a cloud architect and author. He is a frequent speaker on asynchronous messaging,\n IT strategy, and cloud.", "znaku_textu": 13655, "slov": 2083, "odkazu": 60, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/ramblings/93_oop2016.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 06:53:33", "sha256": "b07ed4b595fda06fd64a50e5ac878c05c0123c845c0ca2afdf8757d0383058b5", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://architectelevator.com/blog", "http://www.amazon.com/exec/obidos/ASIN/0471958697/enterpriseint-20", "http://www.amazon.com/exec/obidos/ASIN/032171833X/enterpriseint-20", "http://www.amazon.com/exec/obidos/ASIN/0131829572/enterpriseint-20", "http://software-architecture-summit.de/", "http://conferences.oreilly.com/software-architecture/", "http://metaficient.com/", "http://www.amazon.com/exec/obidos/ASIN/0932633293/enterpriseint-20", "http://www.amazon.com/exec/obidos/ASIN/0201895420/enterpriseint-20", "http://www.agilemanifesto.org/", "https://en.wikipedia.org/wiki/Scrum_(software_development)", "http://www.amazon.com/exec/obidos/ASIN/020172183X/enterpriseint-20", "https://www.dreamsongs.com/Files/WritersWorkshopTypeset.pdf", "http://www.oop-konferenz.de/oop2016/konferenz/konferenzprogramm/sessiondetails/action/detail/session/di-53/title/wir-sind-aber-keine-programmierer-oder-doch.html", "http://www.amazon.com/exec/obidos/ASIN/0122005503/enterpriseint-20", "https://twitter.com/share", "https://twitter.com/ghohpe", "https://leanpub.com/37things"]} {"url": "https://www.enterpriseintegrationpatterns.com/ramblings/94_37things.html", "titulek": "37 Things or \"Where have all my ramblings gone?\" - Enterprise Integration Patterns", "h1": "37 Things or \"Where have all my ramblings gone?\"", "popis": "About two years ago, I revived the ramblings from a four-year hibernation", "klicova_slova": "", "kanonicka": "", "jazyk": "en_US", "robots_meta": "", "og": {"og:type": "article", "og:locale": "en_US", "og:site_name": "Enterprise Integration Patterns", "og:title": "37 Things or \"Where have all my ramblings gone?\"", "og:description": "About two years ago, I revived the ramblings from a four-year hibernation", "og:url": "https://www.enterpriseintegrationpatterns.com/ramblings/94_37things.html"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "37 Things or \"Where have all my ramblings gone?\""}, {"uroven": 2, "text": "IT Transformation"}, {"uroven": 2, "text": "37 Things One Architect Knows about IT Transformation"}, {"uroven": 2, "text": "Buy the Book"}, {"uroven": 2, "text": "Follow along: ArchitectElevator.com"}, {"uroven": 2, "text": "See 37 Things Live"}, {"uroven": 2, "text": "What's Next?"}], "markdown": "Gregor's Ramblings\n\n---\n\n# 37 Things or \"Where have all my ramblings gone?\"\n\nJuly 5, 2016\n\nFind my posts on IT strategy, enterprise architecture, and digital transformation\n at [ArchitectElevator.com](https://architectelevator.com/blog).\n\nAbout two years ago, I revived the ramblings from a four-year hibernation. Upon resurrection,\n the ramblings started to take a broader scope, including not only messaging, conversations,\n and patterns, but also communication and IT architecture topics. The new topics were\n a natural reflection of my new role as Chief Architect in a massive IT transformation\n and after a little while I decided that they deserve their own channel, so I wrote\n a book about it.\n\n## IT Transformation\n\nIT transformation has become quite a popular word as traditional enterprises are coming\n under pressure from \"digital disruptors\" who innovate faster, at lower cost, and\n don't have to deal with legacy. Such transformations often focus on IT organizations\n and systems architecture as enterprises understand that IT is no longer a necessary\n evil, but a critical business enabler. Sadly, an IT department that has been run as\n a cost center for years or decades while valuing stability over change, is not well\n prepared to provide business agility and flexibility to the business.\n\nIT architects can and must play a critical role in such transformations because they\n combine the technical, communication, and organizational skill to organize and apply\n information technology for measurable business benefit. They understand what \"being\n agile\" and \"DevOps\" really mean and what cultural, organizational, and technical changes\n are needed to implement them. They know that shoving random monoliths into a Docker\n container doesn't make them cloud-native. And they can weigh the risk of new technology\n against the need to transform. It's no surprise then that software and IT architects\n have become some of the most sought-after IT professionals around the globe.\n\nThe architects' job is not an easy one, though: they must maneuver a rigid organization\n where IT is still seen as a cost center, where operations means \"run\" as opposed to\n \"change\", and where middle-management has become cozy neither understanding the business\n strategy nor the underlying technology. On top of all this, the affected organizations\n are often still quite profitable, reducing their appetite for change: non-IT-savvy\n management may be quite content with the status quo and actively resist change as\n that will expose their ignorance. Vendors like to introduce new technology, but are\n also generally happy having their clients not too IT savvy lest they no longer require\n services.\n\n## 37 Things One Architect Knows about IT Transformation\n\nTo assist architects who are involved in an IT transformation or are contemplating\n taking a bigger role, I decided to write down my experiences into a collection of\n short essays of about 1500 - 2500 words, slightly longer than the [average rambling](/ramblings/85_sameoldarchitecture.html). I absorbed a handful of ramblings into the book, including the classic [Starbucks rambling](/ramblings/18_starbucks.html), but edited and expanded all of them to make them fit for print publication.\n\nI structured the topics into 5 sections:\n\n1. What does it mean to be an architect?\n2. How architecture influences digital transformation.\n3. How to communicate to a broad range of stakeholders.\n4. How to understand organizational structures and systems.\n5. How to achieve change and transformation.\n\nTo set myself a concrete target, I decided that I would write 37 essays on the topic\n and named the book [37 Things One Architect Knows](https://leanpub.com/37things). Why 37 things and not 36 or 38? 37 is a nice prime number with a mellow sound to\n it. The title is also a spoof on O'Reillys [97 Things](/gregor.html) books, to which I contributed.\n\nBorrowing from the ramblings, I gave the essays catchy titles like:\n\n- Never Send a Human to Do a Machine’s Job\n- If Software Eats the World, Better Use Version Control!\n- Show the Kids the Pirate Ship!\n- Sketching Bank Robbers\n- Control is an Illusion\n- Governance Through Inception\n- No Pain, no Change!\n- Economies of Speed\n- The Infinite Loop\n- Money can’t buy Love.\n\nThe writing process was fairly fast just over 72,000 words written from February until\n end of June, in just 5 months. That's almost 500 words a day, or about 2 \"things\"\n a week. Not quite on par with the popular [750 Words](http://750words.com/) thing, but also without the motivating metrics. I guess the somewhat annoying Island\n Paradise Blogger dude (link intentionally omitted) would have written 70,000 words\n in just a week... ah well. I'll try it next time I am in Phuket. Actually, I did write\n 2 chapters while in Mai Khao so maybe there is something very inspiring about Thailand.\n\n## Buy the Book\n\nYou can buy the e-book DRM-free in epub, mobi, and pdf formats at [leanpub.com/37things](https://leanpub.com/37things). There's also a [free preview](https://leanpub.com/37things/read).\n\nWhen writing a book about the digital, fast moving world, publishing an e-book seems\n most appropriate. Leanpub is a nifty little platform that allows you to write your\n book in markdown with a local GIT workflow and Dropbox synchronization. They also\n allow readers to chose the price they want to pay, making them an interesting mix\n of a publishing platform and Kickstarter.\n\nYou can also buy printed copies at [Lulu](http://www.lulu.com/spotlight/37things)(Europe) or [Amazon](http://amazon.com/o/asin/1537082981/ref=nosim/enterpriseint-20)(Worldwide). Feel free to contact me for volume discounts, e.g. for a lecture or workshop.\n I also provide copies to [workshop participants](/talks).\n\n## Follow along: ArchitectElevator.com\n\nWhile both Enterprise Integration and Enterprise Transformation are important enterprise-level\n topics, I figured that the audiences will be somewhat distinct. I have therefore\n given my thoughts on digital transformation and IT strategy its own home, [ArchitectElevator.com](https://architectelevator.com). Go and have a look.\n\n## See 37 Things Live\n\nCommunication and organizational transformation skills are difficult to learn from\n books, so I offer [2-day workshops](https://architectelevator.com/workshops) , which include many exercises.\n\n## What's Next?\n\nWhat will happen to the ramblings now? 37 Things started out as the procrastination\n project for [EIP 2](/ramblings/81_restconversation.html). Now that I have the 37 things out of my system, I will start rambling and writing\n about conversation patterns again.\n\n*Share:*\n\n*Follow:* [Follow @ghohpe](https://twitter.com/ghohpe) [SUBSCRIBE TO FEED](../ramblings.rss)\n\n*More On:* [WRITING](/ramblings_writing.html) [ALL RAMBLINGS](../ramblings.html)\n\nGregor is a cloud architect and author. He is a frequent speaker on asynchronous messaging,\n IT strategy, and cloud.", "znaku_textu": 6869, "slov": 1017, "odkazu": 52, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/ramblings/94_37things.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 06:53:32", "sha256": "0ca606b6de0a64effb865e995ba8ca0a604830bc647642c50223103e4e586dbe", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://architectelevator.com/blog", "https://leanpub.com/37things", "http://750words.com/", "http://www.lulu.com/shop/gregor-hohpe/37-things-one-architect-knows-about-it-transformation/paperback/product-22825591.html", "https://leanpub.com/37things/read", "http://www.lulu.com/spotlight/37things", "http://amazon.com/o/asin/1537082981/ref=nosim/enterpriseint-20", "https://architectelevator.com/", "https://architectelevator.com/workshops", "https://twitter.com/share", "https://twitter.com/ghohpe"]} {"url": "https://www.enterpriseintegrationpatterns.com/ramblings/coupling_facets.html", "titulek": "The Many Facets of Coupling - Enterprise Integration Patterns", "h1": "The Many Facets of Coupling", "popis": "Coupling is integration's magic word", "klicova_slova": "", "kanonicka": "", "jazyk": "en_US", "robots_meta": "", "og": {"og:type": "article", "og:locale": "en_US", "og:site_name": "Enterprise Integration Patterns", "og:title": "The Many Facets of Coupling", "og:description": "Coupling is integration's magic word", "og:url": "https://www.enterpriseintegrationpatterns.com/ramblings/coupling_facets.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/coupling_dimensions_all.png"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "The Many Facets of Coupling"}, {"uroven": 2, "text": "Coupling is a Measure of Variability"}, {"uroven": 2, "text": "Coupling Isn't Binary"}, {"uroven": 2, "text": "Coupling is Multi-Dimensional"}, {"uroven": 2, "text": "Dimensions of Coupling"}, {"uroven": 3, "text": "Technology Dependency"}, {"uroven": 3, "text": "Location Dependency"}, {"uroven": 3, "text": "Topology Dependency"}, {"uroven": 3, "text": "Data Format & Type Dependency"}, {"uroven": 3, "text": "Semantic Dependency"}, {"uroven": 3, "text": "Conversation Dependency"}, {"uroven": 3, "text": "Order Dependency"}, {"uroven": 3, "text": "Temporal Dependency"}, {"uroven": 2, "text": "What's Next?"}, {"uroven": 3, "text": "Nuanced discussion of coupling"}, {"uroven": 3, "text": "Hidden Coupling"}], "markdown": "Gregor's Ramblings\n\n---\n\n# The Many Facets of Coupling\n\nJune 10, 2024\n\nFind my posts on IT strategy, enterprise architecture, and digital transformation\n at [ArchitectElevator.com](https://architectelevator.com/blog).\n\nCoupling is integration's magic word. Loose coupling affords the participants desirable\n properties like independent variability or operational resilience. However, as pointed\n out in a [recent blog post](https://architectelevator.com/cloud/cloud-decoupling-cost/), coupling isn't binary nor is it a single dimension. So it's time to apply our favorite\n architect maneuvres—seeing more dimensions and seeing shades of gray—to coupling.\n\n## Coupling is a Measure of Variability\n\nLike most architecture concepts (and the concept of architecture itself), finding\n a universally agreed-upon definition of coupling isn't easy. I fall back to my description\n from many years ago:\n\n> Coupling describes the independent variability of connected systems, i.e., whether\n> a change in System A affects System B. If it does, A and B are coupled.\n\nThis definition places coupling at the center of *change propagation*, meaning if one component changes, does that change affect other components? Change\n comes in many forms, for example, a change in requirements, a change in scale, or\n a change in component latency or availability. Systems that are (more) tightly coupled\n tend to be brittle: local changes trickle through the system. Those changes can be\n functional, meaning the system is difficult (and risky) to change. They can also be\n operational changes like the outage of one component. If other components are temporally\n coupled to this component, a local issue can drag the entire system down. We call\n such a system brittle, meaning it isn't *resilient* because it doesn't absorb disturbance.\n\n## Coupling Isn't Binary\n\nI have long resented the idea of coupling being regarded as some form of bit that's\n either set or not, meaning something is coupled or magically decoupled. As computer\n folks, we like binary things, but unfortunately coupling (like most architecture considerations)\n isn't one of them. My oldest and still favorite quote aptly takes the notion of coupling\n being an on/off switch to the extreme by providing this clever advice for setting\n the coupling bit to \"false\":\n\n> How do you make two systems loosely coupled? Don't connect them. (David Orchard)\n\nSo, the objective can't be to make everything loosely coupled but rather to understand\n the nuance of coupling and the design trade-offs that are involved. For example, for\n functional changes, if you have full control over all system components, good test\n coverage, and high levels of automation, coupling may not be a big issue. For example,\n method names are tightly coupled, but most modern IDEs support a *rename method* refactoring, which allows us to overcome the change propagation with a single (right)\n button click.\n\nThe insight that an acceptable amount of coupling is connected to the level of control\n leads us to my *basic theorem of coupling*:\n\n> The appropriate level of coupling depends on the level of control that you have over\n> the endpoints.\n\n## Coupling is Multi-Dimensional\n\nNot only is coupling non-binary, it's also not one-dimensional. Whether a change propagates\n through the system depends on the type of change. So, we amend our definition:\n\n> Coupling describes the independent variability of connected systems, i.e., whether\n> a change in System A affects System B. If it does, A and B are coupled\n> \n> with respect to this change\n> \n> .\n\nFor example, a location-dependent solution requires an update to each sender when\n a recipient changes location (such as a new URL or IP address). In other words, sender\n and receiver are coupled with respect to location, or *location coupled* in short. It's easy to see that even this single dimension has many nuances. For\n example, using URLs or hostnames instead of IP addresses gives the sender and receiver\n more variability, but it's a sliding scale. A hostname doesn't cover a server failure\n as the new server likely has a different name. Also, the solution might use a load\n balancer that can decouple single server outages but not the loss of an entire availability\n zone.\n\nI first captured the notion of breaking coupling down into multiple dimensions in\n the [introduction for Conversation Patterns](/patterns/conversation/Introduction.html), which indicates the last update to be from January 2017. A quick check into the\n git repo revealed that this text is at least from 2015\n\nThe same idea found its way into a slide deck on resilience at Yow! 2016:\n\nSome good ideas apparently take time to fully bake, so I evolved it for my [GOTO EDA Day Keynote](https://www.youtube.com/watch?v=w9a7eI6BlVc&list=PLEx5khR4g7PKxJBkaGmSDRywZ3aAZcwpK&index=1&t=1497s) and my [re:Invent talk on distributed systems](https://youtu.be/Zrj7RD7G24Q?t=882) in 2022 (the number of facets increased from 5 to 8 over the course of nine years):\n\nAvid readers will recognize the following slide from a [blog post on my Architect Elevator site](https://architectelevator.com/cloud/cloud-decoupling-cost/#its-always-about-coupling).\n\n## Dimensions of Coupling\n\nIt's time to give each dimension a closer look:\n\n### Technology Dependency\n\nThis dependency exists when communicating systems depend on each other's implementation\n technology. Such dependencies are reflected in the protocol, naming schemes, or data\n types. For example, data encoding can be impacted by the underlying operating system\n or processor architecture, such as a big-endian or small-endian encoding of integer\n numbers. Accordingly, if one component changes the processor architecture, other components\n would have to be updated unless this aspect is decoupled.\n\nProtocols built into frameworks or libraries, such as JMS, [DCOM](https://en.wikipedia.org/wiki/Distributed_Component_Object_Model), Java RMI, Jini, etc. tend to trade off technology dependency for efficiency, which—as\n we learned above— is a reasonable choice if you control the technology of all participating\n systems. Still, it's not that they are tightly coupled in all regards. For example,\n DCOM works across different languages like C++ or C#.\n\n### Location Dependency\n\nTo allow systems to communicate with one another, they must agree on some common addressing\n scheme. A local method call does so by the method name or the memory address for compiled\n languages under the assumption that the target resides in the same virtual machine\n as the sender. RPC-based distributed systems tend to use IP addresses, host names,\n or URLs. Message-oriented systems specify a destination via the name of a [Message Channel](/patterns/messaging/MessageChannel.html), topic hierarchies, or a shared [blackboard tuple](https://en.wikipedia.org/wiki/Tuple_space). Each of these choices can absorb certain degrees of change without propagating it\n to other participants, meaning they are loosely coupled with to that change. A simplified\n heuristic implies that logical addressing is more change-tolerant than physical addressing.\n Although that is true in principle, \"logical\" and \"physical\" are relative to the respective\n layer in the communications stack. For example, IP addresses are logical when compared\n to MAC addresses with the mapping managed by a DHCP server, which plays the role of\n the [Consult Directory](/patterns/conversation/ConsultDirectory.html) conversation pattern.\n\nOnce again going back a decade-and-a-half, a slide from a [presentation about Event-Driven Architectures from 2007](/docs/hohpe_event_driven_architectures.pdf) elaborates on different naming schemes and their levels of coupling:\n\nNote how the slide cleverly avoids suggesting a single dimension of coupling, but\n rather presents the location dependency on a spectrum of more or less structured.\n Using channel names is structured, because sender and receiver must agree on a common\n name in order to connect to one another. Topics, which are frequently used with [Publish-Subscribe Channels](/patterns/messaging/PublishSubscribeChannel.html), provide subscribers with the ability to subscribe to different nodes in a hierarchy.\n This way, they have more control over the messages they receive. Some systems have\n prefix matching for string fields, which can be used to emulate a topic hiararchy\n (by matching for \"A.B.*\" for example). The least structured form allows recipients\n to filter messages by data fields. In this case, the sender doesn't need to specify\n any particular data for matching with recipients but. Instead, this responsiblity\n is pushed entirely to the recipient.\n\nThe need for sender and receiver to agree on a common address can also be eliminated\n by using [explicit composition via an \"Assembler\" component](https://www.enterpriseintegrationpatterns.com/ramblings/loanbroker_stepfunctions_pubsub.html#composition). Sender and receiver have no knowledge of each other because they are connected by\n a third party.\n\nAs expected, there is no free lunch. In the pursuit of total location decoupling,\n you are shifting the change dependency to a special kind of \"god class\", which can\n become a maintenance bottleneck.\n\nAlthough this single dimension of coupling isn't linear, we can roughly depict the\n progression of location coupling from tight to loose as follows:\n\n> Hard-coded addresses → Host Names / URLs → Logical Names → Topics → Content → Explicit\n> Composition\n\nThe [Reactive principles](https://www.reactiveprinciples.org/principles/) highlight the importance of location decoupling for operational resilience. The\n principle of [Decoupling Space](https://www.reactiveprinciples.org/principles/decouple-space.html) states:\n\n> Spatial decoupling enables replication, which ultimately increases the resilience\n> of the system and availability. By running multiple instances of a component, these\n> instances can share the load. Thanks to location transparency, the rest of the system\n> does not need to know where these instances are located.\n\nA common challenge of location decoupling is that logical abstractions cannot hide\n physical properties. For example, if the system is location decoupled, but the new\n component is further away and carries more latency, then there is physical coupling,\n which might affect run-time characteristics.\n\nAs highlighted in the presentation from 2016, location independence affords [composability](/ramblings/19_composing.html): if one component doesn't make location assumptions about the components it is interacting\n with, another component such as an intermediary can take its place without any changes\n to the sender. This special case leads us to the next dimension:\n\n### Topology Dependency\n\nTopology in this context indicates the arrangement of the application components,\n akin to a [Network Tolopogy](https://en.wikipedia.org/wiki/Network_topology). Swapping out one element for another or moving it to a different location (without\n changing the interconnections) does not alter the topology because the graph of connections\n didn't change. However, adding an intermediary or an additional recipient does alter\n the topology because a node was added and connections changed.\n\nWhen component A regularly communicates with component B, inserting an intermediary\n C between A and B implies a topology change. Likewise, if A sends messages to B and\n C, adding a new recipient D is a topology change:\n\nInserting an intermediary is a popular way to reduce other forms of coupling. If A\n sends messages to B, but B changes the expected message format (for example, renames\n a field), you would have to change A as well (because they are coupled with respect\n to data format). However, in some cases you may not have control over A, for example,\n because it is a third-party application. In those cases, you can insert a [Message Translator](/patterns/messaging/MessageTranslator.html) between A and B that takes care of the difference in data format. This new element\n now decouples A and B, at the cost of an additional element. However, for this to\n work, A and B must be *topology decoupled*, meaning that inserting the intermediary doesn't require any change to A. That could\n be because A emits events or sends messages to a logical channel instead of to B directly.\n We notice that the dimensions of coupling aren't entirely independent, but that you\n can use one form of decoupling (topology) to overcome another form of coupling (data\n format).\n\n### Data Format & Type Dependency\n\nMost integration data formats, such as CSV files, XML, or JSON are designed to reduce\n or eliminate technology dependency, such as big or small endian or terminating strings\n with a zero or not. However, data encoding also carries many nuances that in turn\n imply coupling. An integer number may consist of 32 bits on one system and 64 bits\n on another. Character strings might consist of 8-bit ASCII characters, EBCDIC values,\n or UNICODE characters. Therefore, both systems have to agree on a common data representation\n scheme. Some encodings, like fixed format EDI records, rely on a particular order\n of parameters, which breaks when adding or removing data items. \"Tagged\" formats such\n as name-value pairs, XML, or JSON documents loosen up such constraints and reduce\n coupling.\n\nThe two levels that I lumped into one category have slightly different \"change triggers\":\n a data format change refers to a new, renamed, or repositioned field. For example,\n JSON will tolerate a position change or a field addition whereas EDI records will\n not. Data type dependency relates to the encoding of fields, which can include aspects\n such as optional fields or whether missing fields are interpreted the same as a present,\n but empty field. Such seeming nuances have broken numerous integrations in subtle\n ways!\n\nMost integration tools have provisions to lower this form of coupling by providing\n common transport and encodings plus [Message Translators](/patterns/messaging/MessageTranslator.html) to absorb differences in field names or document structure.\n\nData format coupling can depend on the endpoint implementation. If a message consumer\n iterates over the nodes of an XML document, expecting a specific order (perhaps a\n poor idea, but I am sure it happens), it will not be tolerant of order changes. In\n contrast, a consumer that uses XPath expressions to extract fields will be. As a result,\n it's not a sufficient contract to just state the data format; you also need to document\n assumptions or levels of change that must be tolerated by the endpoints.\n\n> At Google we used Protocol Buffers to describe the contract between services. Protocol\n> Buffers specify the data format using an IDL (Interface Definition Language), from\n> which endpoints can be generated for various languages. To make data formats backward\n> compatible, new fields were routinely tagged as\n> \n> optional\n> \n> even though they were required by the receiver. The result was that coupling shifted\n> from the IDL to the endpoint implementation.\n\nData format coupling has a nasty habit of getting in the way of other forms of decoupling.\n For example, components may be topology decoupled, but changing the topology may impact\n the data format, essentially voiding the decoupling.\n\n### Semantic Dependency\n\nSemantic coupling is the \"next level up\" from data formats and types, both from a\n layer communications model as well as from a complexity point-of-view. Having a UTF-8\n encoded string with a well-defined field name doesn't mean two systems have the same\n interpretation of its content. The same can happen for systems that break down data\n into geographic regions: one may use ZIP codes, another one area codes, and a third\n one segments like *Midwest*. One system reports data weekly, another monthly, and a third one by 30-day intervals.\n\nSemantic dependencies and mismatches are notoriously difficult to overcome with format-oriented\n integration tools. For example, area code boundaries don't line up with ZIP code boundaries,\n leaving you very little for a conversion from one to the other. In many other cases,\n the real meaning of fields may be buried in a legacy system or long forgotten.\n\n### Conversation Dependency\n\nSystem interaction isn't done by sending one message or invoking a simple API. Many\n business interactions involve acknowledgment, confirmation, retries, timeouts, cancellations,\n and compensating actions—in the real world as much as in system integration (I could\n add Sagas here just to tick off [Udi](https://udidahan.com/) ;-) ). Assumptions about the order of messages and changes thereof constitute a major\n dimension of dependency and coupling.\n\nFor example, if your [favorite coffee shop](/ramblings/18_starbucks.html) asks you for payment before delivering the drink, is that specified in the protocol\n or just coincidence? If the consumer assumes this order, then the two parties are\n coupled with regard to a change in message order.\n\nThe relationship between conversations and coupling is a key force behind [Conversation Patterns](/patterns/conversation/toc.html). One could write an entire book about it ;-) Understanding conversation coupling\n is often hindered by the fact that the conversation can span different systems and\n isn't documented in a central place.\n\nIf you feel that your interaction is simple and there isn't much conversation going\n on, be aware that a retry is also a conversation and is bound by its rules and assumptions:\n are retries allowed? is the number of retries unbounded? Is the recipient idempotent?\n how should the requestor handle duplicate responses resulting from overeager retries?\n\n### Order Dependency\n\nSystems may make assumptions about message order. If those assumptions change, or\n a message producer changes the order of messages, subsequent systems may have to change—another\n form of coupling! Messages that contain unique time stamps or unique keys for insertion\n into a data store tend to be tolerant towards out-of-order delivery, caused by the\n sender, the [Message Channel](/patterns/messaging/MessageChannel.html), or intermediaries. In-order delivery makes building systems easier but can hurt\n throughput. As I often state:\n\n> Message endpoints usually prefer in-order delivery, but messages don't! Drawing an\n> analogy with a supermarket check-out line, imagine a person who is extremely slow\n> to check out and holds up everyone else in the queue. Everyone wishes for out-of-order\n> processing!\n\nOrder generally has to be defined relative to a scope. A [Messaging System](/patterns/messaging/MessagingComponentsIntro.html) may preserve order, but a set of [Competing Consumers](/patterns/messaging/CompetingConsumers.html) process messages out of order nevertheless.\n\n> One of my favorite ordering stories is from my Silicon Valley days where one of our\n> best developers built a message-based integration between multiple systems to replace\n> a brittle\n> \n> Database Integration\n> \n> . He initially felt that this task was somewhat beneath him until he discovered a\n> \n> race condition\n> \n> in the original system. Asking the users for the desired behavior yielded no results\n> as no one was aware of this bug. Oh, the joys of integration!\n\n### Temporal Dependency\n\nIf systems communicate synchronously, i.e., the requestor waits for the provider's\n response, the requestor is temporally dependent on the provider: a slow provider causes\n the requestor to also become slow. Worse yet, if the provider is unavailable or unreachable,\n the requesting system is also rendered unavailable. Asynchronous messaging solutions\n cannot magically make an unavailable system available, but they can temporally decouple\n systems by having the requestor not expect an immediate response. Alternatively, the\n requestor could implement *graceful degradation*, so that it remains operational, although perhaps with limited features.\n\n## What's Next?\n\nA popular saying of mine is that the purpose of a model is to answer a question or\n help you make a better decision. So, the proposed model of coupling dimensions should\n pass this test, right? Interestingly, I extracted this post from another one that\n got too long. That means, this model came to be so that It helps me have a better\n discussion about the following topics:\n\n### Nuanced discussion of coupling\n\nThe first one is to put more meaning behind blanket statements like [event-driven architectures are loosely coupled](/ramblings/eventdriven_coupling.html). Architects should as, loosely coupled in which regard? Compared to what? Why does\n it matter? Having this model and vocabulary allows us to debunk such oversimplified\n statements. My learning while writing this up was the following:\n\n> Once you describe the real architecture forces behind blanket pseudo-architecture\n> statements, you may run out of space.\n\nThat's why I split that post into two parts, this being part one.\n\n### Hidden Coupling\n\nThe model also helps us discover a dangerous form of coupling: things look decoupled\n at one level, but are actually coupled due to another type of coupling. I observed\n this in cloud-based serverless applications:\n\n> Serverless integration services appear to be topology decoupled thanks to logical\n> resource identifiers like ARNs on AWS. But it turns out that message formats are dependent\n> on the source. Therefore, inserting a message queue or changing the data source in\n> a serverless, event-driven application changes the message and forces downstream\n> consumers to change—topology coupling!\n\nSuch applications look recomposable at the surface but are topology-coupled via the\n data format. That's worth a blog post as well!\n\n*Share:*\n\n*Follow:* [Follow @ghohpe](https://twitter.com/ghohpe) [SUBSCRIBE TO FEED](../ramblings.rss)\n\n*More On:* [INTEGRATION](/ramblings_integration.html) [CLOUD](/ramblings_cloud.html) [EVENTS](/ramblings_events.html) [ALL RAMBLINGS](../ramblings.html)\n\nGregor is a cloud architect and author. He is a frequent speaker on asynchronous messaging,\n IT strategy, and cloud.", "znaku_textu": 21899, "slov": 3254, "odkazu": 68, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/ramblings/coupling_facets.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 06:53:27", "sha256": "ba9d43f16e89e517086df278d330ad87415c43b5dcaf9c00409b4d90a09d9687", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://architectelevator.com/blog", "https://architectelevator.com/cloud/cloud-decoupling-cost/", "https://www.youtube.com/watch?index=1&list=PLEx5khR4g7PKxJBkaGmSDRywZ3aAZcwpK&t=1497s&v=w9a7eI6BlVc", "https://youtu.be/Zrj7RD7G24Q?t=882", "https://en.wikipedia.org/wiki/Distributed_Component_Object_Model", "https://en.wikipedia.org/wiki/Tuple_space", "https://www.reactiveprinciples.org/principles/", "https://www.reactiveprinciples.org/principles/decouple-space.html", "https://en.wikipedia.org/wiki/Network_topology", "https://udidahan.com/", "https://en.wikipedia.org/wiki/Race_condition", "https://twitter.com/share", "https://twitter.com/ghohpe", "https://leanpub.com/37things"]} {"url": "https://www.enterpriseintegrationpatterns.com/ramblings/eip1_examples_updated.html", "titulek": "Modern Examples for Enterprise Integration Patterns - Enterprise Integration Patterns", "h1": "Modern Examples for Enterprise Integration Patterns", "popis": "Enterprise Integration Patterns are timeless", "klicova_slova": "", "kanonicka": "", "jazyk": "en_US", "robots_meta": "", "og": {"og:type": "article", "og:locale": "en_US", "og:site_name": "Enterprise Integration Patterns", "og:title": "Modern Examples for Enterprise Integration Patterns", "og:description": "Enterprise Integration Patterns are timeless", "og:url": "https://www.enterpriseintegrationpatterns.com/ramblings/eip1_examples_updated.html"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Modern Examples for Enterprise Integration Patterns"}], "markdown": "Gregor's Ramblings\n\n---\n\n# Modern Examples for Enterprise Integration Patterns\n\nFebruary 5, 2017\n\nFind my posts on IT strategy, enterprise architecture, and digital transformation\n at [ArchitectElevator.com](https://architectelevator.com/blog).\n\nEnterprise Integration Patterns are timeless. That our book keeps selling well two\n decades after its publication in 2003 underlines this fact. However, the code examples\n haven't aged quite as well. While for example the JMS API remained somewhat stable,\n the examples were built with JDK 1.4 without any modern constructs such as generics,\n streams, etc. The EAI tool landscape has also dramatically changed, with the advent\n of open source ESBs (which were fueled by the publication of EIP) and later IPaas\n and serverless solutions. It's hard to imagine that back in 2003 you had to get a\n server and manually install all software on it just to try a few simple concepts.\n\nThe [Messaging Pattern](/patterns/messaging) catalog on this web site remained static, but the patterns could benefit from code\n examples that use modern tech like GoLang, Kafka, RabbitMQ, Amazon SQS, Amazon EventBridge,\n or Google Cloud Pub/Sub. Many of these recent languages and tools embrace the original\n integration patterns or make it easy to implement them.\n\nThe following patterns contain modern examples:\n\n| | [Publish-Subscribe Channel](/patterns/messaging/PublishSubscribeChannel.html) | Google Cloud Pub/sub |\n| --- | --- | --- |\n| | [Dead Letter Channel](/patterns/messaging/DeadLetterChannel.html) | Amazon SQS\nKafka Connect |\n| | [Return Address](/patterns/messaging/ReturnAddress.html) | GoLang |\n| | [Message Expiration](/patterns/messaging/MessageExpiration.html) | Azure Service Bus\nAmazon EventBridge\nGoogle Cloud PubSub |\n| | [Content-based Router](/patterns/messaging/ContentBasedRouter.html) | Apache Camel |\n| | [Scatter-Gather](/patterns/messaging/BroadcastAggregate.html) | Serverless Loan Broker on AWS\nMulesoft ESB\nAzure Durable Functions: Fan out/fan in |\n| | [Message Filter](/patterns/messaging/Filter.html) | RabbitMQ |\n| | [Aggregator](/patterns/messaging/Aggregator.html) | Serverless Loan Broker on AWS (Lambda, DynamoDB)\nServerless Loan Broker on GCP (Cloud Function, Datastore) |\n| | [Process Manager](/patterns/messaging/ProcessManager.html) | Serverless Loan Broker with AWS Step Functions\nServerless Loan Broker with GCP Workflows |\n| | [Content Enricher](/patterns/messaging/DataEnricher.html) | Amazon EventBridge Pipes |\n| | [Transactional Client](/patterns/messaging/TransactionalClient.html) | Amazon SQS |\n| | [Event-driven Consumer](/patterns/messaging/EventDrivenConsumer.html) | RabbitMQ |\n| | [Competing Consumers](/patterns/messaging/CompetingConsumers.html) | Apache Kafka |\n| | [Channel Purger](/patterns/messaging/ChannelPurger.html) | Amazon SQS |\n\nBack in 2003, hosting code on open source repositories was less common. Lucky we used\n version control for the text as well as the code samples, but sadly both lived on\n a local hard drive in a Visual Source Safe repository. We converted them to git since\n and I now upload all new code samples to a public [Github Repository](https://github.com/spac3lord/eip). Most projects don't include complete build files - I run these simple apps from\n IntelliJ IDEA. This is both a bug (due to laziness) and a feature: as the examples\n are of educational value only and not intended for production there's a certain safety\n net in users not being able to build and run them immediately with the push of a button.\n\n*Share:*\n\n*Follow:* [Follow @ghohpe](https://twitter.com/ghohpe) [SUBSCRIBE TO FEED](../ramblings.rss)\n\n*More On:* [PATTERNS](/ramblings_patterns.html) [ALL RAMBLINGS](../ramblings.html)\n\nGregor is a cloud architect and author. He is a frequent speaker on asynchronous messaging,\n IT strategy, and cloud.", "znaku_textu": 3715, "slov": 448, "odkazu": 59, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/ramblings/eip1_examples_updated.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 06:03:21", "sha256": "39daf573be5689e308dbd15c98c4e1b82596356bb66b9e8f9f210a41f7648cfe", "hloubka": 1, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://architectelevator.com/blog", "https://github.com/spac3lord/eip", "https://twitter.com/share", "https://twitter.com/ghohpe", "https://leanpub.com/37things"]} {"url": "https://www.enterpriseintegrationpatterns.com/ramblings/eventdriven_coupling.html", "titulek": "Event-driven = Loosely coupled? Not so fast! - Enterprise Integration Patterns", "h1": "Event-driven = Loosely coupled? Not so fast!", "popis": "Event-driven architectures (EDAs) are frequently pitched as loosely coupled, when compared to other forms of integration", "klicova_slova": "", "kanonicka": "", "jazyk": "en_US", "robots_meta": "", "og": {"og:type": "article", "og:locale": "en_US", "og:site_name": "Enterprise Integration Patterns", "og:title": "Event-driven = Loosely coupled? Not so fast!", "og:description": "Event-driven architectures (EDAs) are frequently pitched as loosely coupled, when compared to other forms of integration", "og:url": "https://www.enterpriseintegrationpatterns.com/ramblings/eventdriven_coupling.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/eda_coupling_table.png"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Event-driven = Loosely coupled? Not so fast!"}, {"uroven": 2, "text": "Messages vs. Events"}, {"uroven": 2, "text": "Messages vs. Channels"}, {"uroven": 2, "text": "Events and Coupling"}, {"uroven": 2, "text": "Easy Adding Can Make Modifying Harder"}, {"uroven": 2, "text": "Inversion of (Coupling) Control"}], "markdown": "Gregor's Ramblings\n\n---\n\n# Event-driven = Loosely coupled? Not so fast!\n\nJune 20, 2024\n\nFind my posts on IT strategy, enterprise architecture, and digital transformation\n at [ArchitectElevator.com](https://architectelevator.com/blog).\n\nEvent-driven architectures (EDA) are seeing a marked renaissance, especially in the\n context of serverless applications. That's great, but it's also not a new topic by\n any means. Besides my [EDA presentation at Distributed Event-Based Systems (DEBS) from 2007](https://2007.debs.org/hohpe.pdf), you might recall my ambitious plans to write an [EIP volume on Event Patterns](/ramblings/72_eipvolumes.html) about a decade ago, right after [Conversation Patterns](/patterns/conversation), ahem.\n\nAs EDA isn't a new topic, it behooves us to not be caught celebrating our new discovery\n without acknowledging past challenges and understanding architecture trade-offs. One\n such trade-off is coupling. \"Decoupled\" is a frequently cited benefit of EDAs, routinely\n showing up in [many definitions of EDA](https://aws.amazon.com/event-driven-architecture/): \"Decoupled systems that run in response to events\". The assumption behind such statements\n is that \"decoupled\" is a simple and universally positive thing. But architects know\n that life isn't that simple. [Coupling is a sliding scale and has many dimensions](/ramblings/coupling_facets.html), so perhaps there's more behind events and coupling!\n\n## Messages vs. Events\n\nBefore we can discuss the magical properties of events, we first want to gain clarity\n on whether events are something entirely unique, or whether the benefits commonly\n associated with events exist more broadly. \"My chicken laid an egg\" is mighty interesting\n for a person who's only ever seen a chicken but less so for people who know about\n birds in general (apologies for my poor attempt at making a non-car analogy).\n\nEvents are commonly described as a notification of a change in state, or something\n that took place. Such notifications must be conveyed to other systems, and the natural\n way to do so is via a message. Whereas some narratives contrast events with messages,\n *EIP* takes a clear stance on the relationship between events and messages (Akka and the\n [reactive manifesto appear to agree](https://doc.akka.io/guide/concepts/message-driven-event-driven.html#_events_are_messages)):\n\n> Events are Messages\n\nDenoted in a UML Class Diagram, the relationship looks as follows:\n\nEIP underlines this *is-a* relationship by calling events [Event Message](/patterns/messaging/EventMessage.html). In hindsight, this naming sets an appropriate context. As Eric Evans of DDD fame\n [pointed out in a recent conversation](https://thenewstack.io/celebrating-20-years-of-domain-driven-design-ddd-and-eip/), an event could be something different depending on the domain. In the domain of\n integration, it denotes a message. The [Message Construction Introduction](/patterns/messaging/MessageConstructionIntro.html) clarifies the distinction between the interaction style and message semantics (there\n are actually quite a few hidden gems in these introductions):\n\n> Messaging is an\n> \n> interaction style\n> \n> whereas \"Event\" describes the\n> \n> semantics\n> \n> of a message.\n\nTherefore:\n\n> When assessing the properties of event-based solutions, the discussion splits into\n> two parts: 1) properties of messaging in general and 2) those of events in particular\n> (contrasted with commands, for example).\n\nTo stretch our poor analogy, events are chickens and messages are birds. They both\n lay eggs but the chickens may lay the most tasty ones.\n\n## Messages vs. Channels\n\nEvent-based architectures are associated with [Publish-Subscribe Channels](/patterns/messaging/PublishSubscribeChannel.html) because multiple recipients might be interested in the occurrence of an event. This\n stands in contrast to the [Point-to-Point Channels](/patterns/messaging/PointToPointChannel.html) commonly used for commands or document messages.\n\nAgain, we must delineate which characteristics of an event-driven system derive from\n the properties of the channel rather than the message intent (such as being an Event).\n For example, if I place a *Command Message* on a [Publish-Subscribe Channel](/patterns/messaging/PublishSubscribeChannel.html), would I gain the same benefits?\n\nNow some people might think that placing a command message on a [Publish-Subscribe Channel](/patterns/messaging/PublishSubscribeChannel.html) is non-sensical, but life isn't that simple (crocodiles also lay eggs--I promise\n I'll stop pushing the analogy). Consider the following example:\n\nDoes naming a message `OrderPlaced` (indicating an event has occurred) or `ProcessOrder` (instructing recipients to process the order) make a system more or less coupled?\n If an e-mail should be sent to a customer as part of processing an order, a recipient\n could be added to perform this function regardless of the event semantics. We commonly\n think that the schema of a command is defined by the recipient of the command, e.g.\n the e-mail sender has an interface for sending e-mails, but to me that is just common\n usage and not an inherent characteristic. So, it may be less about the semantics of\n the message than which entity defines the message schema. Hold that thought--we will\n come back to it later.\n\nIf events on a queue still seem odd to you, consider that [Publish-Subscribe Channels](/patterns/messaging/PublishSubscribeChannel.html) are commonly coupled with [Point-to-Point Channels](/patterns/messaging/PointToPointChannel.html) to scale out event consumption via a [Competing Consumers](/patterns/messaging/CompetingConsumers.html) approach. This combination is so common that GCP's Pub/Sub [bundles it into a single service](/patterns/messaging/PublishSubscribeChannel.html#example4):\n\n> Frequently Publish-Subscribe Channels define the application message flow, whereas\n> Point-to-Point Channels are used for operational aspects.\n\nSo, you'll find events being transported via a Point-to-Point Channel more frequently\n than you might expect. And if you use an event-router like AWS EventBridge, you are\n already sending Events via a Point-to-Point Channel because the service uses several\n internally.\n\n## Events and Coupling\n\nNow that we better understand what events are and how they're related to channels,\n we can have a much richer conversation about coupling. My [previous blog post laid useful groundwork](/ramblings/coupling_facets.html) by enumerating the facets of coupling:\n\nAlong these dimensions, we can now compare the coupling of event-based communication\n with other types of integration. Based on the discussion above, we don't separate\n by message semantics but by interaction style:\n\n- [RPC (Remote Procedure Calls)](/patterns/messaging/EncapsulatedSynchronousIntegration.html) , which use a synchronous request-response style interaction.\n- Point-to-Point [Messaging](https://www.enterpriseintegrationpatterns.com/patterns/messaging/Messaging.html) as a one-way, asynchronous interaction style.\n- [Publish-Subscribe](/patterns/messaging/PublishSubscribeChannel.html) messaging, commonly used for [Event Messages](/patterns/messaging/EventMessage.html) .\n\nRecalling that coupling indicates change propagation, the table includes typical changes\n that are relevant for each dimension of coupling. A quick scan reveals that the level\n of coupling for general message-oriented solutions, which may send [Command Messages](/patterns/messaging/CommandMessage.html), is identical for most dimensions.\n\n- *Temporal Coupling* propagates changes in latency or availability. Synchronous communication styles are\n inherently coupled this way (if a provider is slow, the consumer will also be until\n it times out), whereas one-way, asynchronous ones (Point-to-Point and Pub-Sub alike)\n are not.\n- *Location Coupling* propagates a recipient moving to a different location or scaling out to more instances.\n Message channels decouple location changes because they are (mostly) logical constructs:\n adding more consumers to a channel (or relocating them) doesn't affect the sender.\n Some channel names include physical locations (such as cloud availability zones),\n so they can decouple location changes within a zone but not across. RPC specify a\n recipient address but can achieve some decoupling through [lookups](/patterns/conversation/ConsultDirectory.html) (like DNS or logical names like [BNS](https://sre.google/sre-book/production-environment/#managing-machines-XQsKIBTq) ) or inserting a load balancer.\n- *Space Coupling* - for this discussion I separate *Location* from *Space* and *Topology* decoupling, with Space decoupling denoting the ability to insert an intermediary\n without changes to the sender. Message channels also provide this form of decoupling:\n the sender continues sending messages to the same channel, unaware that it is no longer\n talking directly to the recipient.\n- *Topology Coupling* - is used more narrowly here to specifically call out adding a recipient. Publish-Subscribe\n channels do this free of side-effects, unlike any of the other options.\n- Regardless of the interaction style, sender and receiver have to agree on a *data format and associated semantics* , e.g. a person's age is stored in an integer field called \"age\", the unit is years,\n and it counts the years passed since birth, unlike the [traditional Korean system](https://www.bbc.com/news/world-asia-66028606) . Most changes (except perhaps adding optional fields) will propagate, meaning sender\n and receiver are coupled.\n\nThanks to breaking down the problem and the solution space into multiple dimensions,\n we come to our main insights. First, while there is a big difference between synchronous\n and asynchronous interaction styles, the difference between messaging in general and\n event-driven communication appears relatively minor:\n\n> Event-Driven Architectures are loosely coupled, but very similar to any asynchronous,\n> message-oriented interactions.\n\nSecond, the additional topology decoupling for adding recipients is due to the use\n of a [Publish-Subscribe](/patterns/messaging/PublishSubscribeChannel.html), not from using event semantics.\n\n> Most of the decoupling properties of EDAs derive from the use of Publish-Subscribe\n> Channels, not event semantics.\n\nThe key difference in coupling lies in being able to add recipients without affecting\n existing recipients nor the sender. Two main scenarios make this ability appealing:\n\n- During the construction or growth phase of the system.\n- If you don't have control over the sender.\n\nLet's look at each one.\n\n## Easy Adding Can Make Modifying Harder\n\nBeing able to add message recipients without side effects is great for a system that\n is growing, for example, because it is still under construction or because adding\n recipients is a natural occurrence over the life of the system. But that convenience\n comes at a price:\n\n- First, you may not be aware of the evolving system structure (I hinted at this almost\n 20 years ago in my chapter in [97 Things Every Software Architect Should Know](http://www.amazon.com/exec/obidos/ASIN/059652269X/enterpriseint-20) : [Don't Control, but Observe](https://learning.oreilly.com/library/view/97-things-every/9780596800611/ch48.html) ).\n- Second, the more you take advantage of your ability to add recipients, the harder\n it will become to make a change. Thus, taking advantage of one dimension of decoupling\n exposes you more to another dimension of coupling.\n\nThe risk is that EDAs demo very well, but become messy as they grow over time. The\n second risk is related:\n\n> Folks pitching EDA as decoupled may be the ones early in the lifecycle (like vendors)\n> and won't have to live with the consequences of their (coupling) decisions.\n\nHaving event hierarchies and distinguishing between internal and external events can\n help place some sanity back into the event cloud, and some cohesion back into the\n application.\n\n> Having dependencies between components all over the system is likely a poor design\n> choice and should not be considered \"loose coupling\".\n\n## Inversion of (Coupling) Control\n\nArchitects are known to [zoom in](https://architectelevator.com/architecture/architects-zoom/), so if we look yet more closely at coupling, we find that it not only has dimensions\n but also a direction. Coupling can be asymmetric, meaning change propagation has a\n direction. Here we find the real magic of Publish-Subscribe channels: adding subscribers\n doesn't affect the sender:\n\nIn contrast, a [Recipient List](/patterns/messaging/RecipientList.html), which also sends messages to multiple recipients, requires a change to the source\n to add a recipient. This makes the source subject to change propagation.\n\nIn both cases, sending a message (and likewise changing its format or semantics) travels\n from left to right, meaning a change in the source very much impacts the recipients\n (sender to recipient coupling). For stable sources (like system services) that's less\n of a concern, but it can put a major monkey wrench into your \"loosely coupled\" applications.\n In short, a Recipient List propagates changes both ways, whereas a Publish-Subscribe\n Channel does so only in one direction (from sender to receiver).\n\nWe do encounter [Recipient Lists](/patterns/messaging/RecipientList.html) rather frequently in EDAs. For example, AWS EventBridge rules and targets act as\n recipient list. So, in a way, using an event broker like EventBridge negates some\n of the \"right-to-left\" decoupling benefits of Publish-Subscribe channels. You won't\n have to modify the sender, but you have to modify a central element nonetheless.\n\nWe conclude that:\n\n> If you don't have control over the source, Publish-Subscribe channels are ideal.\n\nThis property also explains the origin of services like AWS EventBridge. EventBridge\n evolved from CloudWatch Events, which made system events available for rule-based\n alerting. Naturally, the sources being AWS services, adding listeners had to free\n of side effects to the producers.\n\n> In your own application (where you have control over sender and receiver), adding\n> recipients free of side effects is a less-pronounced benefit.\n\nOne last observation before we wrap up: decisions about topology and interaction styles\n are closely related to an application's architecture. Message formats and semantics\n are associated with application and domain-driven design. So could it be that we're\n back at [Architect's Dream, Developer's Nightmare??](https://2007.debs.org/hohpe.pdf)\n\n*Share:*\n\n*Follow:* [Follow @ghohpe](https://twitter.com/ghohpe) [SUBSCRIBE TO FEED](../ramblings.rss)\n\n*More On:* [INTEGRATION](/ramblings_integration.html) [CLOUD](/ramblings_cloud.html) [EVENTS](/ramblings_events.html) [ALL RAMBLINGS](../ramblings.html)\n\nGregor is a cloud architect and author. He is a frequent speaker on asynchronous messaging,\n IT strategy, and cloud.", "znaku_textu": 14792, "slov": 2055, "odkazu": 67, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/ramblings/eventdriven_coupling.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 06:01:29", "sha256": "9615e3424d34b8853e53594e52e89be9537a5737771161e56b97dbe85ccf65e7", "hloubka": 1, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://architectelevator.com/blog", "https://2007.debs.org/hohpe.pdf", "https://aws.amazon.com/event-driven-architecture/", "https://doc.akka.io/guide/concepts/message-driven-event-driven.html", "https://thenewstack.io/celebrating-20-years-of-domain-driven-design-ddd-and-eip/", "https://sre.google/sre-book/production-environment/", "https://www.bbc.com/news/world-asia-66028606", "http://www.amazon.com/exec/obidos/ASIN/059652269X/enterpriseint-20", "https://learning.oreilly.com/library/view/97-things-every/9780596800611/ch48.html", "https://architectelevator.com/architecture/architects-zoom/", "https://twitter.com/share", "https://twitter.com/ghohpe", "https://leanpub.com/37things"]} {"url": "https://www.enterpriseintegrationpatterns.com/ramblings/google_cloud_functions.html", "titulek": "Serverless Integration Patterns on Google Cloud Functions - Enterprise Integration Patterns", "h1": "Serverless Integration Patterns on Google Cloud Functions", "popis": "After examining which patterns are embedded in Google Cloud Pub/Sub in an earlier post, I implemented a few common patterns on top of Google Cloud Functions, Google's serverless implementation", "klicova_slova": "", "kanonicka": "", "jazyk": "en_US", "robots_meta": "", "og": {"og:type": "article", "og:locale": "en_US", "og:site_name": "Enterprise Integration Patterns", "og:title": "Serverless Integration Patterns on Google Cloud Functions", "og:description": "After examining which patterns are embedded in Google Cloud Pub/Sub in an earlier post, I implemented a few common patterns on top of Google Cloud Functions, Google's serverless implementation", "og:url": "https://www.enterpriseintegrationpatterns.com/ramblings/google_cloud_functions.html"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Serverless Integration Patterns on Google Cloud Functions"}, {"uroven": 2, "text": "Serverless"}, {"uroven": 2, "text": "Google Cloud Functions"}, {"uroven": 2, "text": "Implementing a Content-based Router"}, {"uroven": 2, "text": "Deploying & Running the patterns"}, {"uroven": 2, "text": "Stateful Patterns"}], "markdown": "Gregor's Ramblings\n\n---\n\n# Serverless Integration Patterns on Google Cloud Functions\n\nApril 20, 2017\n\nFind my posts on IT strategy, enterprise architecture, and digital transformation\n at [ArchitectElevator.com](https://architectelevator.com/blog).\n\n## Serverless\n\nAfter examining which patterns are embedded in [Google Cloud Pub/Sub](https://cloud.google.com/pubsub/) in an [earlier post](/ramblings/82_googlepubsub.html), I set out to implement a few common messaging patterns on top of [Google Cloud Functions](https://cloud.google.com/functions/), Google's *serverless* implementation.\n\n*Serverless* is one of the latest buzzwords in the cloud world and a name that's easily mis-understood.\n Of course, serverless applications still run on servers. The key point that the application\n owner doesn't have to worry about which server their application runs on. Technically,\n that has been true for most PaaS (Platform-as-a-Service), but *serverless* takes the concepts of deployment automation to a new level. Mike Roberts wrote an\n [excellent article](https://martinfowler.com/articles/serverless.html) explaining serverless in detail. I generally summarize the evolution towards serverless\n as follows:\n\n- **Physical servers** : There was a time when to run software you had to order a physical server. This would\n take months, involved a fair bit of manual effort and usually you'd end up with a\n server that's hopelessly oversized because having to order another one would take\n another three months. And your application wouldn't scale out across both, anyway,\n so you'd have to toss the first one you ordered. The easy way out was to run the software\n on the PC under your desk.\n- **Virtualization** : Server virtualization was a major step ahead: instead of ordering and mounting an\n actual physical machine, existing machines would be partitioned into multiple virtual\n machines, drastically reducing provisioning times, increasing hardware utilization,\n and making server sizing more flexible. However, deploying applications onto these\n servers remained a separate, often manual task. Also, many applications did not utilize\n the virtual resources very well.\n- **Containers & PaaS** : Docker-style containerization addresses two issues: it packages applications in\n self-contained images that can be automatically deployed and it allows multiple application\n instances to share a single server securely and with sufficient isolation. Combined,\n containers vastly improve application deployment and resource utilization. Platform-as-a-Service\n and Container Orchestration tools deal with managing container instances, such as\n automated restarts, and inter-container communication.\n- **Serverless** : While PaaS and containers are a huge step forward from manual deployment on physical\n servers, they still work based on the concept of applications that are deployed once\n or in a fixed number of instances. As demands on the application increases, new instances\n would have to be deployed. The serverless approach improves both aspects: instead\n of complete applications, serverless deploys individual functions, which are dynamically\n instantiated as requests come in and thus scale automatically based on current demand.\n\nThe dramatic progress can be summarized in a table as follows. The figures are meant\n to be qualitative in nature and can vary depending on many factors:\n\n| Stage | Deployment unit | Deployment method | Deployment time |\n| --- | --- | --- | --- |\n| Physical server | Server | Manual | Months |\n| Virtual server | Operating System | OS automated, application usually manual | Days or weeks |\n| Container / PaaS | Application | Automated | Minutes |\n| Serverless | Function | Automated | \"Real-time\" |\n\n## Google Cloud Functions\n\n[Google Cloud Functions](https://cloud.google.com/functions/) is Google Cloud Platform's implementation of a serverless architecture. Cloud functions\n can be written in JavaScript in a Node.js run-time environment. As the run-time environment\n manages the execution of the function, a function has to be bound to an endpoint or\n an event in order to be invokable. Google functions come in two flavors of binding:\n\n- *HTTP functions* are triggered via an HTTP request, e.g. from a browser application.\n- *Background functions* are triggered by a Google Pub/Sub message or storage bucket change.\n\nAs we are interested in asynchronous messaging, we implement a background function\n that is triggered by a message event on a pub/sub channel. Writing and deploying cloud\n functions is quite easy - you can deploy them from the command line if you have the\n [Google Cloud SDK](https://cloud.google.com/sdk/) installed. You manage the function bindings via command line arguments. Once deployed,\n functions are invoked directly by the run-time - that's the power of serverless!\n\nThe big advantage of using cloud functions is that the amount of wrapper code needed\n to bind and invoke code is dramatically reduced. This makes writing messaging pattern\n examples actually easier, as so much is already taken care of.\n\n## Implementing a Content-based Router\n\nDisclaimer: I am not a JavaScript developer, so some of this code is likely non-idiomatic\n and not production quality. My intention was to focus on the direct translation of\n the pattern into an expressive implementation. Feel free to send me a pull request\n with suggestions for improvement.\n\nLet's start with a very simple pattern implementation, a [Content-based Router](/patterns/messaging/ContentBasedRouter.html). This pattern inspects an incoming message and routes it to different destination\n channels based on its content. To avoid exercising unneeded creativity, we stick with\n the [Widgets and Gadgets](/patterns/messaging/Chapter1.html) example from the book, which routes incoming orders to a widget or gadget channel\n depending on the order type.\n\nSetting up a basic cloud function is quite easy. The function is called with an `event` parameter that holds all needed data and optionally a callback parameter that the\n function must call when it is done. Alternatively, the function can return a promise.\n So pretty much all we need to do is unpack the incoming data, look at the order type,\n determine the correct channel, and forward the message to that channel. All this can\n be done with a few lines of JavaScript:\n\n```\nconst Pubsub = require('@google-cloud/pubsub');\nconst pubsub = Pubsub({projectId: \"eaipubsub\"})\n\nexports.contentBasedRouter = function contentBasedRouter(event) {\n const pubsubMessage = event.data;\n const payload = Buffer.from(pubsubMessage.data, 'base64').toString();\n console.log(\"Payload: \" + payload);\n order = JSON.parse(payload)\n\n outChannel = getOutChannel(order.type);\n console.log(\"Publishing to: \" + outChannel)\n\n return pubsub.topic(outChannel).get({autoCreate: true}).then(function(data) {\n var topic = data[0];\n return topic.publish(order);\n })\n};\n\nfunction getOutChannel(type) {\n switch(type) {\n case \"widget\":\n return \"widgets\";\n case \"gadget\":\n return \"gadgets\";\n default:\n return \"unknown\";\n }\n}\n```\n\nMost code examples in the book are extracts that rely on quite a bit or wrapper code\n in order to function. In this case, the code above is all the code there is! There's\n a fairly good JavaScript library for Google Cloud Platform, which we `require` to publish messages. Luckily I found a function to automatically create a topic if\n it doesn't yet exist, which eliminates a lot of conditional code that plagued my first\n version. The pub/sub message comes in in the `data` field of the `event` parameter. JSON data is base64 encoded, so we unpack it first and do some unnecessary\n logging for our own entertainment. After we parse the data into JSON, we look at the\n `type` field to determine the channel to relay the message to. That's almost it - we still\n have to get a reference to the topic and off we go. The `get` and `publish` methods return JavaScript promises. In case of `get`, we process the result synchronously so we can return the promise returned by the\n `publish` method to Google Cloud Functions.\n\nAll that's missing is the dependency on Google Cloud Pub/sub in the `package.json` file:\n\n```\n{\n \"dependencies\": {\n \"@google-cloud/pubsub\": \"~0.10.0\"\n }\n}\n```\n\n## Deploying & Running the patterns\n\nDeploying a function from the Cloud SDK is quite straightforward:\n\n`gcloud beta functions deploy contentBasedRouter --stage-bucket eaipubsub-functions\n --trigger-topic orders`\n\nThis command deploys the function and binds it to the topic `orders` within our project, resulting in the full topic name `projects/eaipubsub/topics/orders`. We are now ready to feed some messages in this topic and see our pattern function\n in action:\n\n```\ngcloud beta functions logs read contentBasedRouter\nD contentBasedRouter 118580632422832 2017-04-23 17:53:34.912 Function execution started\nI contentBasedRouter 118580632422832 2017-04-23 17:53:38.788 Payload: { \"type\":\"widget\", \"quantity\":3, \"ID\":123 }\nI contentBasedRouter 118580632422832 2017-04-23 17:53:38.799 Publishing to: widgets\nD contentBasedRouter 118580632422832 2017-04-23 17:53:38.843 Function execution took 3933 ms, finished with status: 'ok'\nD contentBasedRouter 118580674297419 2017-04-23 17:54:13.921 Function execution started\nI contentBasedRouter 118580674297419 2017-04-23 17:54:15.873 Payload: { \"type\":\"widget\", \"quantity\":3, \"ID\":123 }\nI contentBasedRouter 118580674297419 2017-04-23 17:54:15.879 Publishing to: widgets\nD contentBasedRouter 118580674297419 2017-04-23 17:54:15.914 Function execution took 1994 ms, finished with status: 'ok'\nD contentBasedRouter 118580598336288 2017-04-23 17:54:15.921 Function execution started\nI contentBasedRouter 118580598336288 2017-04-23 17:54:15.936 Payload: { \"type\":\"widget\", \"quantity\":3, \"ID\":123 }\nI contentBasedRouter 118580598336288 2017-04-23 17:54:15.937 Publishing to: widgets\nD contentBasedRouter 118580598336288 2017-04-23 17:54:15.999 Function execution took 78 ms, finished with status: 'ok'\n```\n\nWe can see that execution times vary quite a bit, which hints at some cache loading\n / warm-up being at work. After I converted the function to return a promise instead\n of explicitly calling back, the times appeared to get a bit more consistent. I didn't\n do any performance tests, though, and we have to keep in mind that a setup using pub/sub\n channels is not intended to minimize latency but to maximize throughput.\n\n## Stateful Patterns\n\nCloud functions are stateless - that's how they can be instantiated and discarded\n by the framework at will. Stateful patterns like an [Aggregator](/patterns/messaging/Aggregator.html) therefore require use of a database. I'll tackle those next.\n\nThe source code is available on [github.com](https://github.com/spac3lord/eip/tree/master/GoogleCloudPubSub/functions).\n\n*Share:*\n\n*Follow:* [Follow @ghohpe](https://twitter.com/ghohpe) [SUBSCRIBE TO FEED](../ramblings.rss)\n\n*More On:* [MESSAGING](/ramblings_messaging.html) [CLOUD](/ramblings_cloud.html) [ALL RAMBLINGS](../ramblings.html)\n\nGregor is a cloud architect and author. He is a frequent speaker on asynchronous messaging,\n IT strategy, and cloud.", "znaku_textu": 10946, "slov": 1540, "odkazu": 52, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/ramblings/google_cloud_functions.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 06:03:23", "sha256": "b4f459489bcec1fc9427a086e370f4e9e077915df09405597733c8483bf2d8c0", "hloubka": 1, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://architectelevator.com/blog", "https://cloud.google.com/pubsub/", "https://cloud.google.com/functions/", "https://martinfowler.com/articles/serverless.html", "https://cloud.google.com/sdk/", "https://github.com/spac3lord/eip/tree/master/GoogleCloudPubSub/functions", "https://twitter.com/share", "https://twitter.com/ghohpe", "https://leanpub.com/37things"]} {"url": "https://www.enterpriseintegrationpatterns.com/ramblings/loanbroker_automation.html", "titulek": "Serverless Loan Broker @ AWS, Part 4: Automation - Enterprise Integration Patterns", "h1": "Serverless Loan Broker @ AWS, Part 4: Automation", "popis": "Infrastructure as Code (IaC) has a whole new meaning for serverless applications", "klicova_slova": "", "kanonicka": "", "jazyk": "en_US", "robots_meta": "", "og": {"og:type": "article", "og:locale": "en_US", "og:site_name": "Enterprise Integration Patterns", "og:title": "Serverless Loan Broker @ AWS, Part 4: Automation", "og:description": "Infrastructure as Code (IaC) has a whole new meaning for serverless applications", "og:url": "https://www.enterpriseintegrationpatterns.com/ramblings/loanbroker_automation.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/step-function-recipient-list.png"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Serverless Loan Broker @ AWS, Part 4: Automation"}, {"uroven": 2, "text": "CLI - The Command Line"}, {"uroven": 2, "text": "AWS CloudFormation"}, {"uroven": 3, "text": "Creating a Bank in YAML"}, {"uroven": 3, "text": "Creating a Stack"}, {"uroven": 3, "text": "Composing Multiple Banks"}, {"uroven": 2, "text": "Polyglot Low-Code"}, {"uroven": 2, "text": "Looking for Abstraction: SAM"}, {"uroven": 2, "text": "Serverless Automation: A Reflection"}, {"uroven": 3, "text": "Separation of Concerns"}, {"uroven": 3, "text": "Syntax and Tooling"}, {"uroven": 3, "text": "Abstraction"}, {"uroven": 3, "text": "Composability and Orthogonality"}, {"uroven": 2, "text": "IaaC - Infrastructure as actual Code"}, {"uroven": 3, "text": "Related Posts in This Series"}], "markdown": "Gregor's Ramblings\n\n---\n\n# Serverless Loan Broker @ AWS, Part 4: Automation\n\nNovember 30, 2021\n\nFind my posts on IT strategy, enterprise architecture, and digital transformation\n at [ArchitectElevator.com](https://architectelevator.com/blog).\n\nIt's hard to imagine cloud without automation. Cloud computing has transformed the\n way we provision infrastructure and deploy applications because it makes functions\n that used to require lengthy manual processes available as an API call. Not taking\n advantage of this capability would seem outright silly. So, let's automate our [Loan Broker application](/ramblings/loanbroker_stepfunctions_pubsub.html).\n\nThis is the Part 4 of the Serverless Loan Broker mini-series. If you landed on this\n page first, here's a quick recap:\n\n- **Part 1** : [Loan Broker Implementation with AWS Step Functions](/ramblings/loanbroker_stepfunctions.html)\n- **Part 2** : [Recipient List](/ramblings/loanbroker_stepfunctions_recipient_list.html)\n- **Part 3** : [Publish-Subscribe with SNS](/ramblings/loanbroker_stepfunctions_pubsub.html)\n\n## CLI - The Command Line\n\nAutomation is hardly a new idea—sysadmins have been replacing manual tasks with shell\n scripts for decades. Shell scripts make automation straightforward because they use\n the same commands that you'd issue by hand. For that very reason, my initial implementation\n uses the following shell script with calls to the AWS CLI (command-line interface)\n to create the bank functions ([on Github](https://github.com/spac3lord/eip/blob/master/LoanBroker/AwsStepFunctions/PubSub/makeBanks)):\n\n```\naccount=`aws sts get-caller-identity --query Account --output text`\n\n# TODO: edit to reflect your role to be used\nrole=arn:aws:iam::$account:role/service-role/CreditBureau-role-abcdefg\n\nzip BankSns.zip BankSns.js\n\naws lambda delete-function --function-name=BankSnsPawnshop\naws lambda delete-function --function-name=BankSnsUniversal\naws lambda delete-function --function-name=BankSnsPremium\n\naws lambda create-function --function-name=BankSnsPawnshop \\\n --runtime=nodejs12.x --handler=BankSns.handler --role=$role \\\n --environment=\"Variables={BANK_ID=PawnShop,BASE_RATE=5,MAX_LOAN_AMOUNT=500000,MIN_CREDIT_SCORE=400}\" \\\n --zip-file=fileb://BankSns.zip\n\naws lambda create-function --function-name=BankSnsUniversal \\\n --runtime=nodejs12.x --handler=BankSns.handler --role=$role \\\n --environment=\"Variables={BANK_ID=Universal,BASE_RATE=4,MAX_LOAN_AMOUNT=700000,MIN_CREDIT_SCORE=500}\" \\\n --zip-file=fileb://BankSns.zip\n\naws lambda create-function --function-name=BankSnsPremium \\\n --runtime=nodejs12.x --handler=BankSns.handler --role=$role \\\n --environment=\"Variables={BANK_ID=Premium,BASE_RATE=3,MAX_LOAN_AMOUNT=900000,MIN_CREDIT_SCORE=600}\" \\\n --zip-file=fileb://BankSns.zip\n```\n\nThe script packages the Bank source code, deletes any potentially already existing\n functions and deploys three Bank lambda functions, passing the respective configuration\n parameters.\n\nAlthough convenient, this method has a major (and well-known) drawback: it isn't designed\n to deal with change. How would you deploy one additional bank? If you make a separate\n script for just that bank, you'd end up with a large collection of scripts that depend\n on each other. Deleting and re-creating all Bank functions, like this script does,\n unnecessarily interrupts the existing service. A smarter script could determine which\n banks already exist and update only the ones that need changing, but it'll become\n excessively complex as it has to cover an ever larger variety of cases. That's why\n modern cloud automation doesn't use shell scripts.\n\n## AWS CloudFormation\n\nDating back to 2011, 5 years after the birth of AWS, [AWS CloudFormation](https://aws.amazon.com/cloudformation/) is one of the earliest cloud automation tools (Terraform came about in 2014 with\n Terraform 1.0.0 being released in 2021). CloudFormation looks more like a data structure\n than a script, using hierarchical YAML (or equivalent JSON) syntax to describe the\n resources that should be deployed. It follows a *declarative* approach by specifying a desired target state, e.g., three banks. By letting the\n tool figure out what resources to (de-)provision to reach that state from the current\n setup, it solves the script explosion problem from above.\n\nCloudFormation is a new language, but you can get a small head start from the CLI\n by describing existing resources in a YAML format via the `output` parameter:\n\n```\n$ aws lambda list-functions --output=yaml --query='Functions[?starts_with(FunctionName, `BankSns`) == `true`]'\n```\n\nAlthough the result won't fit the CloudFormation script 100%, for example because\n CloudFormation requires additional settings like the source file, it's a reasonable\n start for simple resources.\n\n### Creating a Bank in YAML\n\nI like to start simple, so my first CloudFormation template creates just a single\n bank function:\n\n```\nAWSTemplateFormatVersion: '2010-09-09'\nParameters:\n BankRole:\n Type: String\nResources:\n BankSnsPawnShop:\n Type: AWS::Lambda::Function\n DeletionPolicy: Delete\n Properties:\n Runtime: nodejs12.x\n Code:\n S3Bucket: loanbroker-source\n S3Key: BankSns\n Handler: BankSns.handler\n Role:\n Ref: BankRole\n FunctionName: 'BankSnsPawnShop2'\n Description: 'Pawn Shop'\n Environment:\n Variables:\n BANK_ID: PawnShop\n BASE_RATE: '5'\n MAX_LOAN_AMOUNT: '500000'\n MIN_CREDIT_SCORE: '400'\n```\n\nAfter specifying a version header and requiring the security role as a parameter,\n my template defines a single resource of type `Lambda::Function`. All parameters that we'd pass on the command line before are now represented as\n nested YAML elements. For example, the environment settings of the name of the handler\n code can be found under `Properties/Environment/Variables`.\n\nCloudFormation pulls the ZIP'd source code from an S3 bucket, so before we can execute\n the CloudFormation template, we upload (copy) it there (yes, via command line):\n\n```\n$ aws s3 cp BankSns.zip s3://loanbroker-source/BankSns\n```\n\n### Creating a Stack\n\nCloudFormation is based on the concepts of a *template* and a *stack*. The template is the file above - a description of the resources that should be provisioned.\n A stack is an actual deployment of the template that tracks the deployed state. You\n could think of it as classes and objects instantiated from a class, with the key difference\n that your instances are running systems, which also incur costs. Deleting a stack\n equates to deprovisioning all resources associated with it.\n\nWe create a stack `LoanBrokerPubSub` based on the template above to deploy a single bank function, specifying the required\n security role parameter (as always, replace it with your role).\n\n```\n$ aws cloudformation create-stack --stack-name LoanBrokerPubSub \\\n --template-body file://LoanBrokerPubSub.yml \\\n --parameters ParameterKey=BankRole,ParameterValue=arn:aws:iam::1234567890:role/service-role/CreditBureau-role-abcdef\n{\n \"StackId\": \"arn:aws:cloudformation:us-east-2:1234567890:stack/LoanBrokerPubSub/abcdef\"\n}\n```\n\nThe CLI returns a `StackId` so we can refer to it later. Just having an ID doesn't mean the whole stack was created\n flawlessly, though, so it's a good idea to check the detailed event log:\n\n```\n$ aws cloudformation describe-stack-events --stack-name LoanBrokerPubSub \n```\n\nThis command will show the time and status for each resource that is created by the\n template (you'll fondly remember the JMESPath syntax for the `query` parameter from [Part 2](/ramblings/loanbroker_stepfunctions_recipient_list.html)).\n\n### Composing Multiple Banks\n\nSo far, so good, but we want to do a bit more than just deploy a single bank. Being\n largely a data structure, CloudFormation doesn't support loops or expansions as you\n would find them in regular programming languages.\n\nProvisioning multiple banks therefore follows the proven CTRL+C / CTRL+V method. A\n thorough read of the [CloudFormation Resource Reference](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-template-resource-type-ref.html) and good dosage of grit enabled me to also create the `QuoteRequestChannel` as an SNS topic, the `QuoteResponseChannel` as an SQS queue, and the message filter as an EventBridge rule. The script wires\n everything together by subscribing the Bank functions to the SNS channel and sending\n responses to the SQS queue via EventBridge. Those links are accomplished with resource\n references, e.g. to the subscribe banks to the Topic (some unrelated settings are\n omitted):\n\n```\nBankUniversalSubscription:\n Type: AWS::SNS::Subscription\n Properties:\n TopicArn: !Ref QuoteRequestChannel\n Protocol: lambda\n Endpoint: !GetAtt BankSnsUniversal.Arn\n```\n\nand to send responses to the EventBridge bus:\n\n```\nSendQuoteUniversal:\n Type: AWS::Lambda::EventInvokeConfig\n Properties:\n FunctionName: !Ref BankSnsUniversal\n DestinationConfig:\n OnSuccess:\n Destination: !GetAtt FilterMortgageQuotesBus.Arn\n```\n\nEven for our simple example, the code grows quickly, so you'll find the 200+ lines\n on [Github](https://github.com/spac3lord/eip/blob/master/LoanBroker/AwsStepFunctions/PubSub/LoanBrokerPubSub.yml).\n\nSecurity constructs such as queue and event bus policies are also represented as CloudFormation\n resources. For example, allowing our banks to receive quote requests and to publish\n responses requires the following policies:\n\n```\nBankPawnShopInvokePermission:\n Type: 'AWS::Lambda::Permission'\n DeletionPolicy: Delete\n Properties:\n Action: 'lambda:InvokeFunction'\n FunctionName: !Ref BankSnsPawnShop\n Principal: sns.amazonaws.com\n SourceArn: !Ref QuoteRequestChannel\n\nAllowMessagesToResponseChannel: \n Type: AWS::SQS::QueuePolicy\n DeletionPolicy: Delete\n Properties:\n Queues:\n - !Ref QuoteResponseChannel\n PolicyDocument:\n Statement:\n - Action:\n - \"SQS:SendMessage\"\n - \"SQS:ReceiveMessage\"\n - \"SQS:DeleteMessage\"\n - \"SQS:ChangeMessageVisibility\"\n Effect: \"Allow\"\n Resource: !GetAtt QuoteResponseChannel.Arn\n Principal:\n AWS: !Ref AWS::AccountId\n - Action:\n - \"SQS:SendMessage\"\n Effect: \"Allow\"\n Resource: !GetAtt QuoteResponseChannel.Arn\n Principal:\n Service: events.amazonaws.com\n```\n\nOnce defined, we can deploy the banks and queues (the Step Functions broker and aggregator\n aren't yet included) with a single command:\n\n```\n$ aws cloudformation update-stack --stack-name LoanBrokerPubSub --template-body file://LoanBrokerPubSub.yml \\\n --parameters ParameterKey=BankRole,ParameterValue=arn:aws:iam::1234567890:role/service-role/CreditBureau-role-abcdef\n```\n\nProud of our creation, we can test the setup by sending a quote request to the SNS\n channel and looking for responses on the response queue:\n\n```\n$ aws sns publish --topic-arn arn:aws:sns:us-east-2:1234567890:MortgageQuoteRequest2 \\\n --message '{ \"SSN\": \"123-45-6666\", \"Amount\": 500000, \"Term\": 30, \"Credit\": { \"Score\": 803, \"History\": 22 } }' \\\n --message-attributes '{ \"RequestId\": { \"DataType\": \"String\", \"StringValue\": \"ABC12345\" } }'\n```\n\nThe great news is that with a single command we can deploy a serverless solution that\n combines [Publish-subscribe Channels](/patterns/messaging/PublishSubscribeChannel.html), [Message Queues](/patterns/messaging/MessageChannel.html), [Message Filters](/patterns/messaging/Filter.html), and Lambda Functions. However, composing such an automation script blends resource\n provisioning, application composition, component configuration, and security settings.\n Not only does this mix separate concerns, it also makes writing and debugging these\n scripts a non-trivial exercise.\n\n## Polyglot Low-Code\n\nAutomating with CloudFormation is a huge step ahead from CLI scripts. However, getting\n the syntax right can be challenging at times (at least for me). The following snippet\n that configures the event bus to filter out empty mortgage quote responses might not\n look too complicated but took me an extraordinary amount of time to get right:\n\n```\nRouteMortgageQuotes:\n Type: AWS::Events::Rule\n DeletionPolicy: Retain\n Properties:\n Name: RouteMortgageQuotes2\n Description: \"Filter out empty quotes\"\n EventBusName: !GetAtt FilterMortgageQuotesBus.Name\n EventPattern:\n detail:\n requestContext:\n functionArn: [{ prefix: !Sub 'arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:BankSns2' }]\n responsePayload:\n bankId: [{ exists: true }]\n Targets:\n - Arn: !GetAtt QuoteResponseChannel.Arn\n InputPath: $.detail.responsePayload\n Id: MortgageQuotes\n```\n\nAfter trying to assemble an expression using the `Fn::Join` function, the [Burning Monk](https://theburningmonk.com/2019/05/cloudformation-protip-use-fnsub-instead-of-fnjoin/) saved me by recommending `Fn::Sub` instead. Nevertheless, I found the cognitive load to be high as this single line\n combines syntax from multiple languages:\n\n```\nfunctionArn: [{ prefix: !Sub 'arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:BankSns2' }]\n```\n\nThis line filters incoming events to only process those originating from our banks,\n identified by the name prefix `BankSns2`. Because EventBridge only supports prefix matching, the code constructs a full arn\n ([AWS Resource Name](https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html)) prefix.\n\n1. `!Sub` is syntactic sugar for `Fn::Sub` , a [CloudFormation intrinsic function](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/intrinsic-function-reference-sub.html) that substitutes placeholders in a string.\n2. In this case, the values to be substituted are pre-defined [CloudFormation pseudo parameters](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/pseudo-parameter-reference.html) . The resulting string looks like `arn:aws:lambda:us-east-2:1234567890:function:BankSns2` .\n3. This string is used inside the EventBridge pattern syntax to perform [prefix matching](https://docs.aws.amazon.com/eventbridge/latest/userguide/eb-event-patterns-content-based-filtering.html) , following the syntax `[{ prefix: \"string\"}]` .\n4. `functionArn` is the field name used in the envelope ( `requestContext` ) added by the Lambda destination to form the [invocation record](https://docs.aws.amazon.com/lambda/latest/dg/invocation-async.html) .\n\nThis single line pulls from several topic domains, including CloudFormation syntax,\n functions, and pseudo parameters, EventBridge filter patterns, and Lambda Destination\n event formats, so it's low-code but in a polyglot flavor. Luckily, my simple use case\n didn't need to [supply integer values](https://github.com/aws-cloudformation/cloudformation-coverage-roadmap/issues/251).\n\nDefining the event bus target utilizes another syntax. This EventBridge SQS Target\n filters down the message content to the actual quote, removing the event envelope\n (a classic [Content Filter](/patterns/messaging/ContentFilter.html)):\n\n```\nTargets:\n - Arn: !GetAtt QuoteResponseChannel.Arn\n InputPath: $.detail.responsePayload\n Id: MortgageQuotes\n```\n\nThese harmless-looking lines also combine syntax from multiple sources:\n\n1. `InputPath` is an EventBridge attribute to pass filtered content to the target. Alternatively,\n you can use the `Input` (JSON literal) or `InputTransformer` attributes (a map of JSONPath expressions plus a template in form of a JSON literal\n with placeholders for the fields calculated in the map).\n2. The value `$.detail.responsePayload` references a specific field from the event using JSONPath syntax. Nested fields are\n represented with dot notation here, as opposed to nested elements in the `EventPattern` attribute.\n3. `Arn` references the `MortgageQuotes` SQS channel that non-empty mortgage quotes are sent to, using the [intrinsic function](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/intrinsic-function-reference-sub.html) `GetAtt` , which accepts the name of an attribute in dot notation, however without a `$` .\n\n## Looking for Abstraction: SAM\n\nAlthough automation scripts are a great help, they can be verbose at times with too\n much boilerplate text. Oddly enough, they also contain very dense lines that combine\n syntax from multiple languages. Knowing that architecture is defined by meaningful\n decisions, I'd like to find a way to amplify the meaningful text while reducing the\n noise. In short, I am looking for useful abstractions. In AWS-land the next stop is\n SAM - The Serverless Application Model.\n\nThe [Serverless Application Model](https://aws.amazon.com/serverless/sam) comprises several elements, including the ability to build and run Lambda functions\n locally and to speed up (non-production) deployments with [SAM Accelerate](https://docs.aws.amazon.com/serverless-application-model/latest/developerguide/accelerate.html). At the heart of it are [additional resource types](https://docs.aws.amazon.com/serverless-application-model/latest/developerguide/sam-specification-resources-and-properties.html) that promise to make CloudFormation templates less verbose.\n\nIn our automation template above, defining a Lambda function that consumes messages\n from an SNS Topic and sends responses to EventBridge via Lambda Destination required\n three resources (`AWS::Lambda::Function`, `AWS::SNS::Subscription`, `AWS::Lambda::EventInvokeConfig`) plus IAM permissions (`AWS::Lambda::Permission`, `AWS::Events::EventBusPolicy`). SAM condenses this to a single Lambda resource with `Event` and `EventInvokeConfig` properties (I omitted the environment parameters below):\n\n```\nBankSnsPawnShop:\n Type: AWS::Serverless::Function\n Properties:\n PackageType: Zip\n Runtime: nodejs12.x\n CodeUri: src\n Handler: BankSns.handler\n FunctionName: 'BankSns3PawnShop'\n Description: 'Pawn Shop'\n Events:\n MortgageQuoteRequest:\n Type: SNS\n Properties:\n Topic: !Ref QuoteRequestChannel\n EventInvokeConfig:\n DestinationConfig:\n OnSuccess:\n Type: EventBridge\n Destination: !GetAtt FilterMortgageQuotesBus.Arn\n```\n\nYou notice the new resource type `AWS::Serverless::Function`. Instead of specifying the ZIP package, this resource type accepts the source code\n because SAM will actually build and package the function (for my trivial example it's\n really just ZIP-ing up the source file). Also, this resource no longer specifies a\n `Role` attribute as SAM will generate one for us, including the required permissions. The\n reduction from five resources to one is surely welcome. The resulting template (on\n [GitHub](https://github.com/spac3lord/eip/blob/master/LoanBroker/AwsStepFunctions/PubSub/template.yml)) is now 129 non-empty lines, a 35% reduction.\n\nYou build and run SAM applications from the command line (CloudShell has SAM pre-installed):\n\n```\n$ sam build\n$ sam deploy --guide\n```\n\nThe `guide` option allows you to enter required settings (like the CloudFormation stack name)\n on the command line and stores them in a local file so you don't have to repeat the\n process. SAM expands the serverless resources into actual resources:\n\n```\nCloudFormation stack changeset\n----------------------------------------------------------------------------------------------\nOperation LogicalResourceId ResourceType \n----------------------------------------------------------------------------------------------\n+ Add BankSnsPawnShopEventInvokeConfig AWS::Lambda::EventInvokeConfig \n+ Add BankSnsPawnShopMortgageQuoteRequestPermission AWS::Lambda::Permission \n+ Add BankSnsPawnShopMortgageQuoteRequest AWS::SNS::Subscription \n+ Add BankSnsPawnShopRole AWS::IAM::Role \n+ Add BankSnsPawnShop AWS::Lambda::Function \n+ Add BankSnsPremiumEventInvokeConfig AWS::Lambda::EventInvokeConfig \n+ Add BankSnsPremiumMortgageQuoteRequestPermission AWS::Lambda::Permission \n+ Add BankSnsPremiumMortgageQuoteRequest AWS::SNS::Subscription \n+ Add BankSnsPremiumRole AWS::IAM::Role \n+ Add BankSnsPremium AWS::Lambda::Function \n+ Add BankSnsUniversalEventInvokeConfig AWS::Lambda::EventInvokeConfig \n+ Add BankSnsUniversalMortgageQuoteRequestPermission AWS::Lambda::Permission \n+ Add BankSnsUniversalMortgageQuoteRequest AWS::SNS::Subscription \n+ Add BankSnsUniversalRole AWS::IAM::Role \n+ Add BankSnsUniversal AWS::Lambda::Function \n+ Add FilterMortgageQuotesBus AWS::Events::EventBus \n+ Add QuoteRequestChannel AWS::SNS::Topic \n+ Add QuoteResponseChannel AWS::SQS::Queue \n+ Add RouteMortgageQuotes AWS::Events::Rule \n```\n\nHere you can see roles created for each function, e.g. `BankSnsPawnShopRole` plus the required permissions. The cool part is that with just two command lines,\n you're ready to send quote requests and fetch the results from the `MortgageQuotes3` channel (that `query` parameter is really coming in handy):\n\n```\n$ aws sns publish --topic-arn arn:aws:sns:us-east-2:1234567890:MortgageQuoteRequest3 \\\n --message '{ \"SSN\": \"123-45-6666\", \"Amount\": 500000, \"Term\": 30, \"Credit\": { \"Score\": 803, \"History\": 22 } }' \\\n --message-attributes '{ \"RequestId\": { \"DataType\": \"String\", \"StringValue\": \"ABCD1234\" } }'\n\n$ aws sqs receive-message --queue-url https://sqs.us-east-2.amazonaws.com/1234567890/MortgageQuotes3 \\\n --query='Messages[].Body' --max-number-of-messages=5 --wait-time-seconds=5\n\n[\n \"{\\\"rate\\\":6.134508050538122,\\\"bankId\\\":\\\"PawnShop\\\",\\\"id\\\":\\\"ABCD1234\\\"}\"\n \"{\\\"rate\\\":5.692421843390756,\\\"bankId\\\":\\\"Universal\\\",\\\"id\\\":\\\"ABCD1234\\\"}\"\n]\n\n$ aws sqs purge-queue --queue-url https://sqs.us-east-2.amazonaws.com/1234567890/MortgageQuotes3\n```\n\n`sqs receive-message` doesn't delete messages from the queue, so for testing it's handy to purge the queue\n after receiving messages (it's great that SQS includes a [Channel Purger](/patterns/messaging/ChannelPurger.html)). Also, be aware that a single call to `sqs receive-message` might not return all messages at once.\n\nWhat initially tripped me up is that specifying an EventBridge Target to an SQS channel\n doesn't automatically give the event bus permission to send messages. If you consider\n that the EventBridge resource type is still `AWS::Events::Rule`, this makes sense as all the SAM magic is reserved for resources of the `AWS::Serverless` types. So, the SAM template still needs a `AWS::SQS::QueuePolicy` to allow our event bus to send messages.\n\nSAM certainly makes automation template development easier, especially for complex\n resources like API gateways. But did it really provide us with a new model, i.e. abstraction,\n as the name suggests?\n\n## Serverless Automation: A Reflection\n\nCloud without automation is just going to be a better data center, which isn't really\n what anyone wants. Especially with serverless applications, automation takes on a\n whole new meaning as it's less concerned with provisioning (the platform takes care\n of that) but much more with composition (which resource sends messages where) and\n application settings (like our bank parameters). However, these expanded responsibilities\n also stretch what automation languages like CloudFormation were originally designed\n to do. Time for us architects to [zoom out](https://architectelevator.com/architecture/architects-zoom).\n\n### Separation of Concerns\n\nEven for our simple demo application, the automation script handles multiple levels\n of application management:\n\n- **Code deployment** of the Lambda functions\n- **Composition** , e.g., by setting Lambda Destinations and EventBridge Targets\n- **Application settings** , e.g. the loan and credit score limits of the banks\n- **Security settings** , e.g. by granting permissions or assigning roles\n\nHaving all these capabilities coded and version controlled is a definite asset. However,\n you can expect these respective settings to be made by different parties at different\n times and perhaps subject to different authorization rules. Parameters allow separation\n for very simple cases (like the role identifierin my simple example), so you might\n need to resort to YAML / JSON manipulation (they're easily parsed!), or built-in mechanisms\n like [nested stacks](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-nested-stacks.html). The danger here is that you are building layers over layers (your templating system\n - SAM - CloudFormation - AWS API), which will make debugging cumbersome.\n\n### Syntax and Tooling\n\nAs shown above, using YAML (or JSON is you prefer) syntax is convenient for expressing\n resource definitions. However, most automation languages like CloudFormation combine\n elements from multiple technical domains into the same file and often the same line.\n For example, the following snippet nests CloudFormation-defined elements (`Properties`, `EventPattern`) with event node names that are defined by AWS resources (`detail`, `requestContext`) and event node names defined by your application (`bankId`):\n\n```\nProperties:\n EventPattern:\n detail:\n requestContext:\n functionArn: [{ prefix: !Sub 'arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:BankSns2' }]\n responsePayload:\n bankId: [{ exists: true }]\n```\n\nOn top of this, expression combines syntax from CloudFormation functions (e.g., `!Sub` or `${AWS:Region}`) and that used by the respective service (e.g., `prefix` in this case).\n\nThe basic syntax also makes the scripts verbose: a script that implements only a subset\n of the Loan Broker (the most complex elements, i.e., the Step Functions orchestrator\n and the Aggregator are missing) already contains over 200 lines.\n\n### Abstraction\n\nThe automation scripts we created provide a huge convenience and in fact a new way\n of working. For example, I had made a mistake by not specifying the correct bank IDs\n and all I had to do was update the SAM template, `build` and `deploy` and SAM figured out to re-provision just those functions (SAM accelerate might have\n been able to do it on the fly, even). However, the automation languages don't really\n provide abstractions over the cloud resources: we are still dealing with Functions\n and EventBridges and Step Functions. You might guess that I have [some ideas](/patterns/messaging) on how to describe asynchronous, distributed systems at a higher level of abstraction.\n Using such abstractions isn't syntactic sugar or shortcuts but a different vocabulary\n that emphases the key design decisions. For example, I'd want to be able to express\n that my EventBridge Rule acts as a [Message Filter](/patterns/messaging/Filter.html) and a [Content Filter](/patterns/messaging/ContentFilter.html), highlighting the key parameters, which are the filter predicate and the content\n selection.\n\n### Composability and Orthogonality\n\nDistributed solutions should be loosely coupled, meaning that a change in one component\n doesn't propagate to other components. Not specific to automation tools but rather\n the platform itself, I spotted several instances where the current implementation\n would struggle to meet this test. For example, the EventBridge pattern filters on\n the specific event header added by the Lambda Destination (`detail.requestContext.functionArn`). If I was to change the implementation to use a different composition mechanism\n (e.g. sending messages directly from the function code), this logic in the EventBridge\n pattern would fail.\n\nLikewise, when a Lambda Destination calls calls EventBridge, the data is inside the\n `Detail` element (we referenced that above). However, for Lambda-to-Lambda calls you have\n the option of sending the response only by specifying `responseOnly` in the [CDK Configuration](https://docs.aws.amazon.com/cdk/api/v1/docs/aws-lambda-destinations-readme.html#auto-extract-response-payload-with-lambda-destination). That option isn't available for other destination targets. Making the availability\n of options independent from other settings, makes a system *orthogonal* and therefore more freely composable. A great example are Unix pipes, which are freely\n composable due to all components reading and writing to standard streams.\n\n## IaaC - Infrastructure as actual Code\n\nLuckily, I am not the first person to encounter these limitations. A new generation\n of automation tools like [AWS CDK](https://aws.amazon.com/cdk), [Pulumi](https://www.pulumi.com/), or [CDK for Terraform](https://www.terraform.io/cdktf) provide programming libraries for cloud automation. We might appropriately call this\n IaaC - *Infrastructure as actual Code* (which, not coincidentally, is also a chapter in my book [Cloud Strategy](https://architectelevator.com/book/cloudstrategy/)).\n\nThat automation code gives us an ideal starting point for abstraction and tooling.\n That'll be the [perfect topic for the next post](/ramblings/loanbroker_cdk.html)!\n\n### Related Posts in This Series\n\n- **Part 1** : [Loan Broker Implementation with AWS Step Functions](/ramblings/loanbroker_stepfunctions.html)\n- **Part 2** : [Recipient List](/ramblings/loanbroker_stepfunctions_recipient_list.html)\n- **Part 3** : [Publish-Subscribe with SNS](/ramblings/loanbroker_stepfunctions_pubsub.html)\n- **Part 4** : [Automation](/ramblings/loanbroker_automation.html)\n- **Part 5** : [Integration Patterns with CDK](/ramblings/loanbroker_cdk.html)\n\n*Share:*\n\n*Follow:* [Follow @ghohpe](https://twitter.com/ghohpe) [SUBSCRIBE TO FEED](../ramblings.rss)\n\n*More On:* [INTEGRATION](/ramblings_integration.html) [CLOUD](/ramblings_cloud.html) [ALL RAMBLINGS](../ramblings.html)\n\nGregor is a cloud architect and author. He is a frequent speaker on asynchronous messaging,\n IT strategy, and cloud.", "znaku_textu": 28404, "slov": 3504, "odkazu": 76, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/ramblings/loanbroker_automation.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 06:53:29", "sha256": "13669c35fdfbc29ec0447fb9dd5dbb29b32b89fdfa7a1bd3e6589a77d107b005", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://architectelevator.com/blog", "https://github.com/spac3lord/eip/blob/master/LoanBroker/AwsStepFunctions/PubSub/makeBanks", "https://aws.amazon.com/cloudformation/", "https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-template-resource-type-ref.html", "https://github.com/spac3lord/eip/blob/master/LoanBroker/AwsStepFunctions/PubSub/LoanBrokerPubSub.yml", "https://theburningmonk.com/2019/05/cloudformation-protip-use-fnsub-instead-of-fnjoin/", "https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html", "https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/intrinsic-function-reference-sub.html", "https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/pseudo-parameter-reference.html", "https://docs.aws.amazon.com/eventbridge/latest/userguide/eb-event-patterns-content-based-filtering.html", "https://docs.aws.amazon.com/lambda/latest/dg/invocation-async.html", "https://github.com/aws-cloudformation/cloudformation-coverage-roadmap/issues/251", "https://aws.amazon.com/serverless/sam", "https://docs.aws.amazon.com/serverless-application-model/latest/developerguide/accelerate.html", "https://docs.aws.amazon.com/serverless-application-model/latest/developerguide/sam-specification-resources-and-properties.html", "https://github.com/spac3lord/eip/blob/master/LoanBroker/AwsStepFunctions/PubSub/template.yml", "https://architectelevator.com/architecture/architects-zoom", "https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-nested-stacks.html", "https://docs.aws.amazon.com/cdk/api/v1/docs/aws-lambda-destinations-readme.html", "https://aws.amazon.com/cdk", "https://www.pulumi.com/", "https://www.terraform.io/cdktf", "https://architectelevator.com/book/cloudstrategy/", "https://twitter.com/share", "https://twitter.com/ghohpe", "https://leanpub.com/37things"]} {"url": "https://www.enterpriseintegrationpatterns.com/ramblings/loanbroker_cdk.html", "titulek": "Serverless Loan Broker @ AWS, Part 5: Integration Patterns with CDK - Enterprise Integration Patterns", "h1": "Serverless Loan Broker @ AWS, Part 5: Integration Patterns with CDK", "popis": "Infrastructure as Code (IaC) brings repeatability into the provisioning and deployment of cloud applications", "klicova_slova": "", "kanonicka": "", "jazyk": "en_US", "robots_meta": "", "og": {"og:type": "article", "og:locale": "en_US", "og:site_name": "Enterprise Integration Patterns", "og:title": "Serverless Loan Broker @ AWS, Part 5: Integration Patterns with CDK", "og:description": "Infrastructure as Code (IaC) brings repeatability into the provisioning and deployment of cloud applications", "og:url": "https://www.enterpriseintegrationpatterns.com/ramblings/loanbroker_cdk.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/cdk-layers.png"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Serverless Loan Broker @ AWS, Part 5: Integration Patterns with CDK"}, {"uroven": 2, "text": "CDK - IaC for Grown-Ups"}, {"uroven": 2, "text": "CDK Constructs"}, {"uroven": 2, "text": "Design Pattern: Circuit Breaker"}, {"uroven": 2, "text": "Expressing Intent - Integration Patterns"}, {"uroven": 3, "text": "Layers, but different"}, {"uroven": 2, "text": "Integration Patterns in CDK"}, {"uroven": 2, "text": "Serverless Automation Patterns"}, {"uroven": 3, "text": "Mapping Integration Patterns to AWS Serverless"}, {"uroven": 3, "text": "Coding Integration Patterns with CDK"}, {"uroven": 2, "text": "What about leaky abstractions?"}, {"uroven": 2, "text": "What's Next?"}, {"uroven": 3, "text": "Related Posts in This Series"}], "markdown": "Gregor's Ramblings\n\n---\n\n# Serverless Loan Broker @ AWS, Part 5: Integration Patterns with CDK\n\nJan 25, 2022\n\nFind my posts on IT strategy, enterprise architecture, and digital transformation\n at [ArchitectElevator.com](https://architectelevator.com/blog).\n\nIn Part 4 of this mini-series we [automated the serverless Loan Broker](/ramblings/loanbroker_automation.html) using the CLI (just for kicks), AWS CloudFormation, and the Serverless Application\n Model (SAM). Although that was a solid step forward, by using an object-oriented language\n and CDK, the Cloud Development Kit we can build abstractions to express the intent\n of our distributed composition. If that reminds you of patterns, especially asynchronous\n messaging patterns, you are spot on!\n\nThis is the fifth installment of the Serverless Loan Broker mini-series. If you landed\n on this page first, here's a quick recap:\n\n- [Part 1](/ramblings/loanbroker_stepfunctions.html) implemented the Loan Broker using AWS Step Functions orchestration to enrich incoming\n requests with the credit bureau data.\n- [Part 2](/ramblings/loanbroker_stepfunctions_recipient_list.html) integrated the Loan Broker with the banks via a [Recipient List](/patterns/messaging/RecipientList.html) .\n- [Part 3](/ramblings/loanbroker_stepfunctions_pubsub.html) upped the ante by invoking the banks asynchronously via a [Publish-Subscribe Channel](/patterns/messaging/PublishSubscribeChannel.html) and combining the results in a stand-alone [Aggregator](/patterns/messaging/Aggregator.html) .\n- [Part 4](/ramblings/loanbroker_automation.html) automated our proud creation (sans Step Functions and Aggregator) using AWS CloudFormation\n and the Serverless Application Model.\n\n## CDK - IaC for Grown-Ups\n\nAs we saw in [Part 4](/ramblings/loanbroker_automation.html), traditional automation tools favor document-oriented languages, represented in YAML\n or JSON syntax, occasionally augmented by simple functions to reduce repetition by\n means of loops or templates. Still, as your application grows, the resulting structures\n are likely to grow unwieldy. That's why recent automation tools like [Pulumi](https://www.pulumi.com/), [AWS CDK](https://aws.amazon.com/cdk), or [CDK for Terraform](https://github.com/hashicorp/terraform-cdk) encode cloud automation as libraries for popular object-oriented languages like Java,\n Python, or TypeScript.\n\nBecause these libraries correspond to the same base constructs as document-oriented\n languages (which in turn map to the underlying cloud APIs), the transition to tools\n like CDK is relatively smooth. For example, creating an EventBridge target to invoke\n a Lambda function looks as follows in CDK for TypeScript (when checking [the CDK reference docs](https://docs.aws.amazon.com/cdk/api/v2//docs/aws-cdk-lib.aws_events_targets-readme.html), make sure you're viewing the up-to-date v2):\n\n```\nconst fn = new lambda.Function(this, ...);\nconst rule = new events.Rule(this, 'rule', { eventPattern: { detail: { \"field\": \"value\" } } } );\nrule.addTarget(new targets.LambdaFunction(fn));\n```\n\nThe first line creates a Lambda Function, followed by an event rule that triggers\n when incoming messages contain a certain field value. The last line connects the rule\n to the function, instructing EventBridge to invoke the function for any message that\n matches the rule. The rule itself has to be associated with an `[EventBus](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_events.EventBus.html)`, which is set to the `default` bus if none is specified (as is the case here).\n\n`lambda.Function` is part of the `[aws_lambda](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_lambda.Function.html)` package whereas `targets.LambdaFunction` is specific to defining an EventBridge target that happens to be a Lambda function\n and is appropriately part of the `[aws_events](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_events_targets.LambdaFunction.html)` package. I am wondering whether a factory method and some overloading would have\n saved us from having to use a separate class for each type of event target, but then\n different targets have different options, which might break our polymorphism or leave\n us with a generic and untyped `props` collection, which isn't any better.\n\n## CDK Constructs\n\nBeing able to use a proper IDE, auto-complete and all the OO language features that\n have grown so dear to our heart is a definite step forward. However, wouldn't suit\n us to actually use those freshly rediscovered language features to provide some abstractions,\n like what we do when writing applications?\n\nSure enough, CDK defines three levels of [constructs](https://docs.aws.amazon.com/cdk/v2/guide/constructs.html):\n\n- **Level 1** constructs match existing CloudFormation resources, the same elements that we referenced\n in the YAML script in [Part 4](/ramblings/loanbroker_automation.html) . These classes receive the same properties, often via a `props` helper.\n- **Level 2** constructs also represent existing resources, but with an \"intent-based\" API, which\n in most cases translates into smart defaults or additional convenient methods like\n the `[grantPutEventsTo](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_events.EventBus.html#grantwbrputwbreventswbrtograntee)` method on the `EventBus` construct, which takes care of the needed IAM settings. One of the most convenient\n Level 2 constructs might be the [VPC Construct](https://docs.aws.amazon.com/cdk/api/v2//docs/aws-cdk-lib.aws_ec2.Vpc.html) , which can [save you several hundred lines of CloudFormation template code](https://bobbyhadz.com/blog/cdk-constructs-tutorial#level-2-constructs) .\n- **Level 3** constructs are referred to as *patterns* . The standard CDK only\n includes two categories for patterns (ECS and Route53) with all others being shared\n less formally as \"solutions\", like this [API Gateway connected to a Lambda function](https://docs.aws.amazon.com/solutions/latest/constructs/aws-apigateway-lambda.html) .\n\nAlthough the higher-level CDK constructs provide a welcome mechanism for reducing\n the amount of code and options that need to be set, they don't really provide much\n abstraction: the new constructs either correspond to a single resource or to a combination\n of multiple (usually two) resources. The former means that we still code automation\n at the cloud resource level, with the additional constructs largely providing convenience\n functions. The latter significantly reduces the amount of code to be written as it\n can pre-wire multiple resources, but it falls short of establishing a new vocabulary\n for us to describe the solution architecture. It also quickly ends up with a n-squared\n effort.\n\nGiven that it's an object-oriented library, I feel that CDK could go further towards\n implementing actual design patterns and establishing a [pattern language](/ramblings/67_patterns.html) that's distinct from the AWS resources.\n\n> CDK constructs use the language of the atomic resources. Although that's what chemists\n> do by naming molecules \"(h)aitch-two-oh\", the rest of us prefer to call it \"water\".\n> That kind of vocabulary would be a huge addition to CDK constructs.\n\nSo, let's see if we can \"raise the bar\" a bit.\n\n## Design Pattern: Circuit Breaker\n\nA commonly used design pattern in distributed systems is the [Circuit Breaker](https://martinfowler.com/bliki/CircuitBreaker.html). A Circuit Breaker prevents a slow or partially failing component from compromising\n the whole system be detects such a situation and \"tripping\", causing it to immediately\n return an error code instead of consuming components sending repeated requests and\n timing out, unnecessarily consume resources, While in the open state, the Circuit\n Breaker probes the failing component at a reasonable interval to detect the component\n recovery and return into a normal state (users of [asynchronous messaging](/patterns/messaging/) might find this mechanism strangely unnecessary).\n\nThere's an implementation of a\n [EventBridge Circuit Breaker](https://github.com/cdk-patterns/serverless/tree/main/the-eventbridge-circuit-breaker) in CDK by [AWS Hero Matt Coulter](https://github.com/nideveloper) (the example of Google being down is rather humorous). The implementation uses DynamoDB\n as a simple time-series database to track the number of errors that occurred in the\n last 60 seconds (using [Timestream](https://aws.amazon.com/timestream/features/) might be overkill but would be an interesting exercise). If the error count exceeds\n a given threshold, the Circuit Breaker (a Lambda function in this case) trips and\n returns instant errors instead of calling the external service over and over again.\n The message flow is as follows:\n\nThe pattern code ([GitHub](https://github.com/cdk-patterns/serverless/blob/main/the-eventbridge-circuit-breaker/python/the_eventbridge_circuit_breaker/the_eventbridge_circuit_breaker_stack.py)) combines Python (or TypeScript) CDK code and Lambda functions written in TypeScript.\n The [Context-Based Router](https://www.enterpriseintegrationpatterns.com/patterns/messaging/MessageRouter.html) pattern (the web page only shows an abridged version of the pattern; full-text in\n the book) that routes messages based on external state is implemented in a custom\n Lambda function. It'd be interesting to see if it also be implemented in EventBridge.\n\nI noticed is that this pattern implementation doesn't actively probe the service to\n see if it's still brokenbut rather relies on the sliding time window that \"expires\"\n past errors. On a service that receives consistent traffic this might lead to the\n faulty service receiving a burst of `ERROR_THRESHOLD` requests about every 60 seconds. It could also be a nice enhancement to map out the\n parameters and variability points, e.g. thresholds, external service ARN etc, as parameters.\n The code is open source, so I guess I am invited to submit a pull request :-) .\n\n## Expressing Intent - Integration Patterns\n\nIn our quest to find suitable abstractions for distributed serverless applications\n let's close the loop and recall our very own integration patterns. It turns out, they\n actually make for a very good combo.\n\n### Layers, but different\n\nDuring the Loan Broker implementation, we found that many integration patterns are\n already built into the platform. For example AWS SNS (or GCP Pub/Sub) are great implementations\n of a [Publish-Subscribe Channel](/patterns/messaging/PublishSubscribeChannel.html). We also used a [Content Filter](/patterns/messaging/ContentFilter.html) and a [Message Filter](/patterns/messaging/Filter.html) to eliminate empty bank quotes and to only pass the useful message payload. The pattern\n icons are nicely included in this [Overview Diagram](/ramblings/loanbroker_stepfunctions_pubsub.html#conclusion):\n\nNow, wouldn't it be awesome to describe the solution with those patterns instead of\n YAML expressions? The filter expressions would then be neatly in our code as opposed\n to [being buried deep down in a YAML document](/ramblings/loanbroker_automation.html#polyglot). Well, it looks like CDK might be exactly our ticket for that!\n\n## Integration Patterns in CDK\n\nBeing able to write automation code in an object-oriented language gives us the ability\n to form clean layers that each use a different vocabulary. Those layers are quite\n different from the existing CDK layers (extra points for noticing the non-arbitrary\n color scheme):\n\nThe bottom layer of our approach consists of the usual CDK constructs, such as the\n EventBridge event bus, Lambda functions, and SQS queues. Moving up the stack, our\n goal is to describe applications using Enterprise Integration Patterns instead of\n cloud resources. We achieve that with a (icon-green) middle layer that implements\n common integration patterns on top of the AWS serverless ecosystem. The top layer\n finally uses the language of our example domain, meaning banks and loan brokers, credit\n bureaus, etc.\n\nThe three layers each use the language of their respective domain:\n\n- The application domain, using the vocabulary of the business and translating it into\n an application.\n- The domain of fine-grained distributed systems, using the vocabulary from Enterprise\n Integration Patterns (at least initially; I'd be happy to discover new patterns).\n- The cloud provider domain, i.e. AWS resource names.\n\nThe second layer is the critical one as it allows separates the application from the\n product / service / resource names.\n\n## Serverless Automation Patterns\n\nApplication automation code in the top layer now looks like this snippet (see\n [CDK Integration Patterns Github Repo](https://github.com/aws-samples/aws-cdk-loan-broker/blob/main/cdk/LoanBroker-PubSub-stack.ts)).\n\n```\nvar nonEmptyQuoteMessageFilter = MessageFilter.fromDetail(this, \"nonEmptyQuoteMessageFilter\",\n { responsePayload: { bankId: [{ exists: true }] } }\n);\nvar payloadContentFilter = ContentFilter.createPayloadFilter(this, \"PayloadContentFilter\");\n\nnew MessageContentFilter(this, \"FilterMortgageQuotes\", {\n sourceEventBus: mortgageQuotesEventBus,\n targetQueue: mortgageQuotesQueue,\n messageFilter: nonEmptyQuoteMessageFilter,\n contentFilter: payloadContentFilter,\n});\n```\n\nThis automation code looks oddly like... application code. It uses a language that's\n abstracted from the cloud resources and instead uses a vocabulary that's suitable\n to describing message-oriented solutions.\n\nThe `nonEmptyQuoteMessageFilter` is a [Message Filter](/patterns/messaging/Filter.html). As you'd expect, this Message Filter accepts a predicate, an expression that evaluates\n to `true` or `false`. In our case, that predicate is described in [EventBridge event pattern](https://docs.aws.amazon.com/eventbridge/latest/userguide/eb-event-patterns.html) syntax. We happily accept this leak from the underlying platform because it vastly\n simplifies the implementation. The expression `{ responsePayload: { bankId: [{ exists: true }] } }` specifies that the message has to have a `bankId` field inside the `responsePayload`, just as it did when it [was embedded in YAML in Part 4](/ramblings/loanbroker_automation.html).\n\nSecond, we create a special kind of Content Filter, a Payload Filter, that reduces\n incoming messages to just the payload, stripping off the metadata that might have\n been added by Lambda Destinations. This class doesn't require any additional parameters.\n\nLast, the code combines both patterns into a `MessageContentFilter`, which additionally accepts a source and a target. The `MessageContentFilter` is a somewhat contrived combination of a Message Filter and a Content Filter that\n matches the EventBridge implementation under the covers. You'd be right to point out\n another small amount of leakage from the lower layers. I'll discuss our options on\n this below.\n\n> Automation code isn't limited to dealing with platform resources. Instead, it should\n> be using abstractions that express the intent of your application.\n\n### Mapping Integration Patterns to AWS Serverless\n\nThe magic question now is: what does the middle layer look like? That layer exposes\n the Integration Pattern language and maps that to the AWS Serverless ecosystem. We\n are starting very simple here with just two patterns, a [Message Filter](/patterns/messaging/Filter.html) and a [Content Filter](/patterns/messaging/ContentFilter.html). Both patterns are conveniently implemented inside EventBridge, although with some\n nuances.\n\nThe official functional diagram of [Amazon EventBridge](https://aws.amazon.com/eventbridge/) provides a starting point:\n\nBeing a universal event bus, the diagram focuses on the variety of supported sources\n and targets. It also highlights the ability to work with Event Schemas, which we aren't\n using for the Loan Broker. The \"Rules\" description gives us a hint by highlighting\n that it can be used \"to filter and send events\". That's going to be our [Message Filter](/patterns/messaging/Filter.html). The [Content Filter](/patterns/messaging/ContentFilter.html) isn't really visible in this diagram, though. As we found out in [Part 3](/ramblings/loanbroker_stepfunctions_pubsub.html#replies), content filtering is part of the EventBridge target. The setting looked like this\n in CloudFormation (see [Part 4](/ramblings/loanbroker_automation.html#polyglot)):\n\n```\nTargets:\n - Arn: !GetAtt QuoteResponseChannel.Arn\n InputPath: $.detail.responsePayload\n Id: MortgageQuotes\n```\n\n`InputPath` is one of the options for selecting data to be sent to the target, in this case,\n a subset of the event.\n\n### Coding Integration Patterns with CDK\n\nArmed with the mapping from pattern to AWS resource, we can implement the Integration\n Patterns on top of CDK. The green middle layer contains two core classes `MessageFilter` and `ContentFilter` (see [Source on GitHub](https://github.com/aws-samples/aws-cdk-loan-broker/blob/main/cdk/LoanBroker-PubSub-stack.ts)). Let's tackle the Message Filter first:\n\n```\ninterface MessageFilterProps extends EventPattern {}\ninterface MessageFilterDetailProps { [key: string]: any; }\n\nclass MessageFilter extends Construct {\n public readonly eventPattern: EventPattern;\n\n constructor(scope: Construct, id: string, props: MessageFilterProps) {\n super(scope, id);\n this.eventPattern = props;\n }\n\n static fromDetail(scope: Construct, id: string, detailProps: MessageFilterDetailProps): MessageFilter {\n return new MessageFilter(scope, id, {\n detail: detailProps,\n });\n }\n}\n```\n\nThe `MessageFilter` is really just a wrapper for a CDK `[EventPattern](https://docs.aws.amazon.com/cdk/api/v2//docs/aws-cdk-lib.aws_events.EventPattern.html)`. One of the `EventPattern`'s properties is the `detail`parameter, which according to the documentation is \"A JSON object, whose content is\n at the discretion of the service originating the event.\" Er, ah, OK... not really.\n What we need to understand here is the structure of the incoming events, passed along\n by the Lambda Destination (I omit numerous fields—this is the reason use a Content\n Filter!):\n\n```\n{\n \"version\": \"0\",\n \"id\": \"12345678-0054-2c61-4c9f-c3c77a599782\",\n \"detail-type\": \"Lambda Function Invocation Result - Success\",\n \"source\": \"lambda\",\n \"account\": \"1234567890\",\n \"time\": \"2022-01-18T08:02:39Z\",\n \"region\": \"us-east-2\",\n \"resources\": [\n \"arn:aws:events:us-east-2:1234567890:event-bus/LoanBroker3\",\n \"arn:aws:lambda:us-east-2:1234567890:function:BankSns3Premium:$LATEST\"\n ],\n \"detail\": {\n \"version\": \"1.0\",\n \"timestamp\": \"2022-01-18T08:02:39.190Z\",\n \"requestContext\": {\n \"requestId\": \"12345678-6eed-46f3-8725-6e62466588ae\",\n \"functionArn\": \"arn:aws:lambda:us-east-2:1234567890:function:BankSns3Premium:$LATEST\",\n \"condition\": \"Success\",\n \"approximateInvokeCount\": 1\n },\n \"requestPayload\": {\n \"Records\": [ ] ## Removed\n },\n \"responseContext\": {\n \"statusCode\": 200,\n },\n \"responsePayload\": {\n \"rate\": 4.225740338234942,\n \"bankId\": \"Premium\",\n \"id\": \"AAAA12345\"\n }\n }\n}\n```\n\nThe `detail` property of the CDK `[EventPattern](https://docs.aws.amazon.com/cdk/api/v2//docs/aws-cdk-lib.aws_events.EventPattern.html)` corresponds to the event's `detail` element (you'll find other properties for `account`, `detail-type` (`detailType` in TypeScript CDK), etc). Now it makes sense that we accept `MessageFilterDetailProps`, which really can represent any JSON construct. Passing `{ responsePayload: { bankId: [{ exists: true }] } }` specifies that a `bankId` element must exist under the `responsePayload` within the `detail` section of the event.\n\nThe Content Filter we are using is a very common one: we only want to retain the `responsePayload`. Hence we create a static method `createPayloadFilter`, which conveniently contains the correct JSONPath expression to the `responsePayload` (you'll see `detail` here again, albeit this time as part of the expression string—those little variations\n are one reason the pattern layer is so helpful):\n\n```\ninterface ContentFilterProps { readonly jsonPath: string; }\n\nclass ContentFilter extends Construct {\n public readonly ruleTargetInput: RuleTargetInput;\n\n constructor(scope: Construct, id: string, props: ContentFilterProps) {\n super(scope, id);\n this.ruleTargetInput = RuleTargetInput.fromEventPath(props.jsonPath);\n }\n\n static createPayloadFilter(scope: Construct, id: string): ContentFilter {\n return new ContentFilter(scope, id, {\n jsonPath: \"$.detail.responsePayload\",\n });\n }\n}\n```\n\nThe arguments to the `MessageFilter` and the `ContentFilter` are different (JSON Object vs. JSONPath expression) because EventBridge rules support\n complex expressions, including \"logical AND\" (within limits), whereas the target's\n `InputPath` extracts a single subset of the event. At the same time, both objects are really\n just data holders - neither one invokes the lower-level CDK constructs directly.\n\nFinally, the `MessageContentFilter` defines an event bus rule and target based on the settings from the two objects,\n plus an event source and a destination (our SQS Queue):\n\n```\ninterface MessageContentFilterProps {\n sourceEventBus: EventBus;\n targetQueue: IQueue;\n messageFilter: MessageFilter;\n contentFilter: ContentFilter;\n}\n\nclass MessageContentFilter extends Construct {\n constructor(scope: Construct, id: string, props: MessageContentFilterProps) {\n super(scope, id);\n\n const messageFilterRule = new Rule(scope, id + \"Rule\", {\n eventBus: props.sourceEventBus,\n ruleName: id + \"Rule\",\n eventPattern: props.messageFilter.eventPattern,\n });\n\n var queueMessageProps = props.contentFilter.ruleTargetInput ? {\n message: props.contentFilter.ruleTargetInput,\n } : {};\n messageFilterRule.addTarget(new targets.SqsQueue(props.targetQueue, queueMessageProps));\n }\n}\n```\n\nThe abstraction implements *explicit composition*, as [described in Part 3](/ramblings/loanbroker_stepfunctions_pubsub.html#composition):\n\nMaking the composition explicit in a central component might be considered more tightly\n coupled. However, being able to describe the composition in automation code that can\n freely recompose the application's anatomy, allows for rapid and reliable changes.\n The key requirement is that you have control over all application elements, making\n this technique more useful for distributed applications than application integration.\n\n> Describing an application's composition in automation code allows us to freely recompose\n> the application's anatomy.\n\n## What about leaky abstractions?\n\nWhile discussing the pattern layer, we noticed multiple leaks from the CDK layer,\n such as the expression syntax or the existence of a MessageContentFilter. You would\n rightly conclude that such leakages would make it difficult to use the same abstraction\n with an implemnentation on another cloud. There are several pragmatic reason that\n I am fine with those leaks, at least at this point:\n\n- Building a full wrapper is a massive effort.\n- A full wrapper would require users to learn a new syntax, adding to the learning ramp.\n- Building an abstraction based on a simple instance is a slippery slope. I would have\n to at least implement the Loan Broker in two more clouds to find suitable commonality.\n\nThe bigger consideration is main objective:\n\n> The primary objective is expressive automation code, not portability. Portability\n> might be a welcome bonus.\n\nPortability is a valuable benefit. However, it's also a future, potential benefit—it's\n an [Option](https://architectelevator.com/architecture/architecture-options/). In comparison, more expressive automation code and a smoother on-ramp are immediate\n benefits.\n\n## What's Next?\n\nI firmly believe that we are just starting to realize the true potential of cloud\n automation. Modern cloud automation isn't just about reducing toil. It also isn't\n about converting CLI scripts into something slightly more elegant. Instead, it can\n help us blur the line between application and automation code. You surely could have\n implemented a Content Filter in application code. However, you can also map it to\n a platform service, without leaving the comfort of your programming language and without\n having to switch to another technical domain (that of platform services). That, in\n my opinion, is huge. Watch this space!\n\n### Related Posts in This Series\n\n- **Part 1** : [Loan Broker Implementation with AWS Step Functions](/ramblings/loanbroker_stepfunctions.html)\n- **Part 2** : [Recipient List](/ramblings/loanbroker_stepfunctions_recipient_list.html)\n- **Part 3** : [Publish-Subscribe with SNS](/ramblings/loanbroker_stepfunctions_pubsub.html)\n- **Part 4** : [Automation](/ramblings/loanbroker_automation.html)\n- **Part 5** : [Integration Patterns with CDK](/ramblings/loanbroker_cdk.html)\n\n*Share:*\n\n*Follow:* [Follow @ghohpe](https://twitter.com/ghohpe) [SUBSCRIBE TO FEED](../ramblings.rss)\n\n*More On:* [INTEGRATION](/ramblings_integration.html) [CLOUD](/ramblings_cloud.html) [ALL RAMBLINGS](../ramblings.html)\n\nGregor is a cloud architect and author. He is a frequent speaker on asynchronous messaging,\n IT strategy, and cloud.", "znaku_textu": 24668, "slov": 3197, "odkazu": 82, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/ramblings/loanbroker_cdk.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 06:53:28", "sha256": "fb26864db70945f6de7fdd4565858e71002691682df6ff886f2df21b9b8dfe38", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://architectelevator.com/blog", "https://www.pulumi.com/", "https://aws.amazon.com/cdk", "https://github.com/hashicorp/terraform-cdk", "https://docs.aws.amazon.com/cdk/api/v2//docs/aws-cdk-lib.aws_events_targets-readme.html", "https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_events.EventBus.html", "https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_lambda.Function.html", "https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_events_targets.LambdaFunction.html", "https://docs.aws.amazon.com/cdk/v2/guide/constructs.html", "https://docs.aws.amazon.com/cdk/api/v2//docs/aws-cdk-lib.aws_ec2.Vpc.html", "https://bobbyhadz.com/blog/cdk-constructs-tutorial", "https://docs.aws.amazon.com/solutions/latest/constructs/aws-apigateway-lambda.html", "https://martinfowler.com/bliki/CircuitBreaker.html", "https://github.com/cdk-patterns/serverless/tree/main/the-eventbridge-circuit-breaker", "https://github.com/nideveloper", "https://aws.amazon.com/timestream/features/", "https://github.com/cdk-patterns/serverless/blob/main/the-eventbridge-circuit-breaker/python/the_eventbridge_circuit_breaker/the_eventbridge_circuit_breaker_stack.py", "https://github.com/aws-samples/aws-cdk-loan-broker/blob/main/cdk/LoanBroker-PubSub-stack.ts", "https://docs.aws.amazon.com/eventbridge/latest/userguide/eb-event-patterns.html", "https://aws.amazon.com/eventbridge/", "https://docs.aws.amazon.com/cdk/api/v2//docs/aws-cdk-lib.aws_events.EventPattern.html", "https://architectelevator.com/architecture/architecture-options/", "https://twitter.com/share", "https://twitter.com/ghohpe", "https://leanpub.com/37things"]} {"url": "https://www.enterpriseintegrationpatterns.com/ramblings/loanbroker_gcp_workflows.html", "titulek": "Serverless Loan Broker @ GCP - Enterprise Integration Patterns", "h1": "Serverless Loan Broker @ GCP", "popis": "Do serverless solutions lock you in? Let's find out by porting / rebuilding the Serverless Loan Broker on top of Google's Cloud Platform (GCP)", "klicova_slova": "", "kanonicka": "", "jazyk": "en_US", "robots_meta": "", "og": {"og:type": "article", "og:locale": "en_US", "og:site_name": "Enterprise Integration Patterns", "og:title": "Serverless Loan Broker @ GCP", "og:description": "Do serverless solutions lock you in? Let's find out by porting / rebuilding the Serverless Loan Broker on top of Google's Cloud Platform (GCP)", "og:url": "https://www.enterpriseintegrationpatterns.com/ramblings/loanbroker_gcp_workflows.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/loanbroker_serverless.png"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Serverless Loan Broker @ GCP"}, {"uroven": 2, "text": "Interchangeability is an -ility"}, {"uroven": 2, "text": "The Proof is in the Pudding: Porting Loan Broker to GCP"}, {"uroven": 2, "text": "The Starting Point: A Cloud-Native Serverless Application"}, {"uroven": 2, "text": "Deploying Credit Bureau and Bank Functions"}, {"uroven": 3, "text": "Credit Bureau (HTTP Trigger)"}, {"uroven": 3, "text": "Banks (PubSub Trigger)"}, {"uroven": 2, "text": "Quick Recap"}, {"uroven": 2, "text": "Basic Orchestration, CGP-style"}, {"uroven": 3, "text": "Calling the Credit Bureau"}, {"uroven": 3, "text": "Sending Quote Requests"}, {"uroven": 2, "text": "Workflow Recap"}, {"uroven": 2, "text": "Aggregator"}, {"uroven": 3, "text": "Collating Quotes"}, {"uroven": 3, "text": "Handling Contention"}, {"uroven": 3, "text": "The Message Filter"}, {"uroven": 2, "text": "Async Workflow Completion"}, {"uroven": 3, "text": "Waiting for Callback"}, {"uroven": 3, "text": "Invoking the Callback"}, {"uroven": 2, "text": "End-to-end Test"}, {"uroven": 2, "text": "Evaluating the Solution"}, {"uroven": 2, "text": "Patterns, Serverless, and Cloud Platforms"}, {"uroven": 3, "text": "Pattern-based design"}, {"uroven": 3, "text": "Platform differences: tools, quirks, features, docs"}, {"uroven": 3, "text": "Service Mapping"}, {"uroven": 3, "text": "Performance and stability"}, {"uroven": 3, "text": "Lock-in and portability"}], "markdown": "Gregor's Ramblings\n\n---\n\n# Serverless Loan Broker @ GCP\n\nMay 20, 2022\n\nFind my posts on IT strategy, enterprise architecture, and digital transformation\n at [ArchitectElevator.com](https://architectelevator.com/blog).\n\nWhile implementing the [EIP Loan Broker Example](/patterns/messaging/ComposedMessagingExample.html) on AWS, we realized that integration patterns are a [useful design tool for serverless applications](/ramblings/loanbroker_stepfunctions_pubsub.html) and can help us find [meaningful abstractions for automation code](/ramblings/loanbroker_cdk.html#cdkpatterns). One argument that is routinely held against building serverless solutions, which\n I consider the canonical way of building cloud-native applications, is that they lock\n you into one vendor, meaning it's difficult to move them from one cloud platform to\n the next. Architects shun slogans and prefer to dig deeper, so let's do that by taking\n a well-designed serverless application and porting it to another cloud platform.\n\n## Interchangeability is an -ility\n\nInterchangeability has long been a critical consideration of good software design:\n we choose abstractions so we can replace the implementations without the changes trickling\n through the rest of our system. So it'd seem natural to also want to maintain this\n ability when we aren't speaking of individual components but about a platform that\n we operate on. The counterpoint to this argument is that portability is a future concern\n whereas building a successful product is an immediate concern—without the latter you\n won't need the former.\n\nAs architects we look for balance in our designs, and we learned that the extrema\n of a spectrum are rarely the optima. That's why I warned a while ago to [not get locked up into avoiding lock-in](https://martinfowler.com/articles/oss-lockin.html) and to [develop a holistic view on switching costs](https://architectelevator.com/cloud/multi-cloud-decision-model/#switching-costs-vs-option-cost). And although I am a big fan of modern cloud architectures, I am critical of attempts\n to redefine \"cloud native\" to mean avoiding native cloud platform features. It's also\n outright silly naming as it contradicts what we mean when we have been saying \"native\n app\" for decades (see [TechTarget](https://www.techtarget.com/searchsoftwarequality/definition/native-application-native-app#) ):\n\n> A native application is a software program that is developed for use on a particular\n> platform or device.\n\n## The Proof is in the Pudding: Porting Loan Broker to GCP\n\nArchitects improve their decisions with models, but also regularly [dive into the engine room](https://architectelevator.com/architecture/engine-room/) to validate their assumptions. So, when debating the immediate merits of serverless\n architectures against a potential increase in future switching cost, it behooves us\n to inject some real-life data points into the discussion. The [AWS serverless Loan Broker](/ramblings/loanbroker_stepfunctions.html), which was built as a prototypical serverless application and has sufficient run-time\n complexity, makes a great data point. Let's port it to GCP!\n\nJust like the prior posts, my write-up will be part experience journal, part architectural\n pondering. As an architect, it's less about the code I write but more about what insights\n I bring back with me from the engine room:\n\n> My goal isn't to develop a hardened production application but rather to reflect on\n> the product architecture, available services, and design trade-offs.\n\nI consider myself a good test subject because I have a clear idea of what I want to\n build, understand the technical domain (asynchronous, distributed apps) very well,\n but have near-zero expertise in the specifics of the platform, aside from having [toyed with PubSub and Cloud Functions](/ramblings/google_cloud_functions.html) five years ago:\n\n> I understand the technical domain very well but am likely to make the same silly mistakes\n> as other folks who are new to the platform.\n\nAs before, i will try to avoid installing any software locally by working in Cloud\n Shell and the console as much as possible. I am sure, it'll be possible to build the\n Loan Broker on GCP, so this isn't a test of the platform's capabilities as much as\n the platforms approachability:\n\n> My metric for the perceived cognitive load is the number of browser tabs that I need\n> to open to accomplish a specific task.\n\nAs before all source code is available in the [EIP GitHub repo](https://github.com/spac3lord/eip). Keep in mind that this code is for educational purposed only and is not intended\n for production use.\n\n## The Starting Point: A Cloud-Native Serverless Application\n\nLet's recap our starting point: a serverless cloud application that maximizes the\n use of managed services and follows serverless best practices of loosely coupled components,\n externalized state, and event-flow. Portability was a secondary concern when this\n app was built.\n\nThe Loan Broker implementation consists of the following key components, following\n a fine-grained, asynchronous design philosophy:\n\n1. The *Loan Broker* orchestrates the interaction between a consumer, the credit bureau, and mortgage\n banks.\n2. The broker first [enriches](/patterns/messaging/DataEnricher.html) requests for loan quotes with the customer's credit score retrieved from the *Credit Bureau* , before sending them to multiple *Banks* via a [Publish-Subscribe Channel](/patterns/messaging/PublishSubscribeChannel.html) .\n3. The *Banks* reply with a loan offer if they are willing to service the loan. A [Message Filter](/messaging/Filter.html) eliminates messages that don't contain quotes.\n4. All valid response messages containing a quote are sent to a common [Message Channel](/patterns/messaging/MessageChannel.html) .\n5. An [Aggregator](/patterns/messaging/Aggregator.html) collects the responses from the channel and signals the Loan Broker when sufficient\n responses, as defined by the Aggregator's *completeness condition* have been received.\n6. The *Loan Broker* returns the result(s) to the *Customer* .\n\nLet's quickly recap several key design decisions:\n\n- The number of *Banks* isn't known to the *Loan Broker* and should be variable.\n- The interaction with the *Credit Bureau* is synchronous whereas the *Banks* work asynchronously.\n- The *Aggregator* , although it is a stateful component, is implemented outside the orchestration because\n the orchestrator doesn't support a [Correlation Identifier](/patterns/messaging/CorrelationIdentifier.html) that routes incoming quotes to a matching workflow instance (most workflow engines\n would be able to do that).\n\n## Deploying Credit Bureau and Bank Functions\n\nArmed with the source code of the AWS implementation, it *shouldn't* be too difficult to deploy the Lambda functions, which are now called Cloud Functions.\n A major [overhaul of Google Cloud Functions is underway](https://cloud.google.com/functions/docs/2nd-gen/overview), which builds on top of Cloud Run. However those capabilities are still in preview\n and not available in Southeast Asia regions, close to where I am writing this. For\n our Loan Broker, 1st gen Cloud Functions should therefore easily suffice.\n\n### Credit Bureau (HTTP Trigger)\n\nWe can make relatively minor adjustments to the Credit Bureau source in the excellent\n GCP Cloud Shell editor:\n\n```\nconst functions = require('@google-cloud/functions-framework');\n\nfunction getRandomInt(min, max) {\n return min + Math.floor(Math.random() * (max-min));\n}\n\n// Expects a SSN to return a random credit score. Passes back RequestId.\nfunctions.http('CreditBureau', (req, res) => {\n const min_score = 300\n const max_score = 900\n\n var ssn_regex = new RegExp(\"^\\\\d{3}-\\\\d{2}-\\\\d{4}$\");\n if (ssn_regex.test(req.query.SSN)) {\n res.status(200).send(JSON.stringify(\n {\n request_id: req.query.RequestId,\n body: {\n SSN: req.query.SSN,\n score: getRandomInt(min_score, max_score),\n history: getRandomInt(1,30)\n }\n }\n ));\n } else {\n res.status(400).send(JSON.stringify(\n {\n request_id: req.query.RequestId,\n body: {\n SSN: req.query.SSN\n }\n }\n ));\n }\n};\n```\n\nOur Credit Bureau works synchronously, which in GCP parlance translates into an HTTP\n function. That's why the function code accesses the incoming data via HTTP `req` and `res` parameters. This change caused the majority of code changes.\n\nStarting out with basic automation (there's no CDK equivalent for GCP to my knowledge—most\n folks I know use Terraform), we deploy the Loan Broker function from the Cloud Shell\n Command Line (CLI):\n\n```\n$ gcloud functions deploy CreditBureau --region=asia-southeast1 \\\n --source=CreditBureau --runtime=nodejs14 --entry-point=creditBureau \\\n --trigger-http --allow-unauthenticated\n```\n\nAlthough the parameters appear intuitive enough, my initial attempt is punished with\n an elaborate but not very insightful error message:\n\n```\nERROR: (gcloud.functions.deploy) OperationError: code=3, message=Function failed on loading user code. This is likely due to a bug in the user code.\nError message: Error: please examine your function logs to see the error cause: https://cloud.google.com/functions/docs/monitoring/logging#viewing_logs.\nAdditional troubleshooting documentation can be found at https://cloud.google.com/functions/docs/troubleshooting#logging.\nPlease visit https://cloud.google.com/functions/docs/troubleshooting for in-depth troubleshooting documentation.\n```\n\nThat makes for two additional tabs open and public embarrassment for omitting the\n `package.json` file to declare the dependency on `google-cloud/functions-framework`. Correcting that mistake is rewarded with a deployed credit bureau (shortened for\n readability):\n\n```\n$ gcloud functions describe CreditBureau --region=asia-southeast1\navailableMemoryMb: 256\nentryPoint: creditBureau\nhttpsTrigger:\n securityLevel: SECURE_OPTIONAL\n url: https://asia-southeast1-eaipubsub.cloudfunctions.net/CreditBureau\nname: projects/eaipubsub/locations/asia-southeast1/functions/CreditBureau\nruntime: nodejs14\nstatus: ACTIVE\ntimeout: 60s\nversionId: '3'\n```\n\nInvoking the credit bureau is equally easy from Cloud Shell via `curl` (don't forget the double quotes as your shell won't like the ampersand in the query\n string otherwise):\n\n```\n$ curl \"https://asia-southeast1-eaipubsub.cloudfunctions.net/CreditBureau?RequestId=ABCDEFG&SSN=123-45-6789\"\n{\"request_id\":\"ABCDEFG\",\"body\":{\"SSN\":\"123-45-6789\",\"score\":470,\"history\":4}}\n```\n\nWe note that in GCP, the application trigger is set right on deployment. That's convenient,\n but it also propagates code changes into the function should you decide to change\n the trigger. We learn that:\n\n> Separating function invocation and data passing logic, such as request data parsing,\n> return codes, etc., from application logics is good practice because it simplifies\n> both changing triggers and porting functions to another platform.\n\n### Banks (PubSub Trigger)\n\nUnlike the Credit Bureau, our Banks will receive requests for mortgage quotes via\n GCP Pub/Sub, which conveniently supports both Point-to-Point channels and Publish-Subscribe\n Channels. Interestingly, there's no \"integration\" service category for GCP, so we\n find Pub/Sub under \"Data Analytics\":\n\nBesides small differences in the way data is based (a base64-encoded string), the\n code can remain largely unchanged. GCP Cloud Functions do not have destinations, so\n the function has to send the response message explicitly. We therefore need to pass\n the topic name as an environment variable. Also, the message accepts a `Buffer` as opposed to a regular string, so don't forget that conversion. To keep our function\n code clean, we extract that logic into a wrapper method. A base class might be an\n even more elegant solution.\n\n```\nconst {PubSub} = require('@google-cloud/pubsub');\nconst pubSub = new PubSub();\n\nfunction calcRate(amount, term, score, history) {\n if (amount <= process.env.MAX_LOAN_AMOUNT && score >= process.env.MIN_CREDIT_SCORE) {\n return parseFloat(process.env.BASE_RATE) + Math.random() * ((1000 - score) / 100.0);\n }\n}\n\nexports.bank = async (message, context) => {\n const request = message.data ? Buffer.from(message.data, 'base64').toString() : '{}';\n const quoteRequest = JSON.parse(request);\n const requestId = message.attributes[\"RequestId\"];\n const bankId = process.env.BANK_ID;\n const responseTopic = process.env.QUOTE_RESP_TOPIC;\n\n response = bankQuote(quoteRequest, bankId);\n\n const dataBuffer = Buffer.from(JSON.stringify(response));\n const customAttributes = { id: requestId };\n const messageId = await pubSub.topic(responseTopic).publish(dataBuffer, customAttributes);\n}\n\nbankQuote = (quoteRequest, bankId) => {\n const rate = calcRate(quoteRequest.Amount, quoteRequest.Term, quoteRequest.Credit.Score, quoteRequest.Credit.History);\n\n if (rate) {\n console.log('%s offering Loan at %f', bankId, rate);\n return { \"rate\": rate, \"bankId\": bankId };\n } else {\n console.log('%s rejecting Loan', bankId);\n return {};\n }\n}\n```\n\nSubscribing a Cloud Function to a PubSub topic is surprisingly easy and can be done\n straight from the deployment command. Under the covers, it creates a `subscription`, a key construct of PubSub that determines whether you're running in [Publish-Subscribe](/patterns/messaging/PublishSubscribeChannel.html) or [Point-to-Point](/patterns/messaging/PointToPointChannel.html) mode with [Competing Consumers](/patterns/messaging/CompetingConsumers.html). See my [post on Google Cloud Pub/Sub from 2015](/ramblings/82_googlepubsub.html) for more details.\n\n```\n$ gcloud pubsub topics create QuoteRequest\n$ gcloud pubsub topics create QuoteResponse\n$ gcloud functions deploy BankPawnShop --entry-point=bank --region=asia-southeast1 \\\n --source=Bank --runtime=nodejs14 --trigger-topic QuoteRequest \\\n --set-env-vars MAX_LOAN_AMOUNT=500000,MIN_CREDIT_SCORE=300,BASE_RATE=3,BANK_ID=PawnShop,QUOTE_RESP_TOPIC=QuoteResponse\n```\n\nIt's time for a simple test (after we deploy two more banks). We monitor the responses\n on the `QuoteResponse` topic via an additional subscription, which is side-effect free in the Publish-Subscribe\n model. To test, we send a message to the `QuoteRequest` channel and observe the bank's response on the `QuoteResponse` topic:\n\n```\n$ gcloud pubsub subscriptions create responses --topic=QuoteResponse\n\n$ gcloud pubsub topics publish QuoteRequest \\\n --message='{ \"Amount\": 300000, \"Term\": 30, \"Credit\": { \"Score\":700, \"History\": 15 } }' \\\n --attribute=RequestId=ABCDEFG\n\n$ gcloud pubsub subscriptions pull responses --auto-ack --limit=5\nDATA: {\"rate\":4.655600086643112,\"bankId\":\"BankPremium\"}\nMESSAGE_ID: 4856059258002262\nATTRIBUTES: id=ABCDEFG\n\nDATA: {\"rate\":5.8170958335644,\"bankId\":\"BankUniversal\"}\nMESSAGE_ID: 4856047506661721\nATTRIBUTES: id=ABCDEFG\n\nDATA: {\"rate\":7.206690977561289,\"bankId\":\"BankPawnshop\"}\nMESSAGE_ID: 4856047534743250\nATTRIBUTES: id=ABCDEFG\n```\n\nYup, this works. Time for a quick pause and some initial observations.\n\n## Quick Recap\n\nOverall, re-implementing the serverless functions on GCP is relatively pain-free.\n Most of the design constructs translate 1:1 into the new platform. Of course, there\n are also some surprises - positive and negative, which may partly be due to my unfamiliarity\n with the new platform. Again, I consider that a plus because when I stumble, it's\n likely because something in the platform isn't as intuitive as it could be.\n\n- **Function code** : The Bank function code got longer due to the lack of [Lambda Destinations](https://aws.amazon.com/blogs/compute/introducing-aws-lambda-destinations/) . Sending messages explicitly also requires the PubSub client library, increasing\n the code size.\n- **Building and deploying** : Deploying functions takes significantly longer, close to one minute for my trivial\n functions. There might be a faster way of doing this (local testing, perhaps), but\n for the moment fixing cycles (I am now to the platform, after all) are very slow.\n In fact, I am writing up these points as I am waiting for my banks to re-deploy after\n a code change.\n- **Composition** : Linking functions to PubSub is surprisingly easy. No need to deal with `EventSourceMapping` etc. Also, a single service implements both [Publish-Subscribe](/patterns/messaging/PublishSubscribeChannel.html) and [Point-to-Point](/patterns/messaging/PointToPointChannel.html) semantics.\n- **IAM** : Amazingly, I have not had to deal with IAM at all. That might be due to my ignorance\n and just clicking 'accept' in the console, but for demo apps like this one it's a\n major relief.\n- **Code Editing** : The Cloud Shell source code editor is quite handy, including syntax highlighting,\n refactorings, quick fixes, git integration, and more. For small projects like mine\n it's entirely sufficient.\n- **Cognitive load** : starting with a new platform will always carry a moderate to high load, as shown\n via my \"tab-open\" metric below (I count 26 and that's after closing many along the\n way). I need to get used to new CLI syntax, PubSub client library APIs, logging, message\n formats, etc\n\nIn summary, I am inclined to claim:\n\n> A clean and evocative design that highlights design decision makes migrating a serverless\n> application to a new platform significantly easier.\n\nLet's try to back this up as we proceed to implement the orchestration and the [Aggregator](/patterns/messaging/Aggregator.html).\n\n## Basic Orchestration, CGP-style\n\nOrchestrations are implemented using GCP's [Workflows](https://cloud.google.com/blog/products/application-development/get-to-know-google-cloud-workflows). Just like AWS Step Functions, GCP Workflows follow a state machine model that allows\n for sequences, loops, branching, and error states. GCP Workflows are also coded in\n a custom language that uses YAML or JSON syntax - pick your poison. I wasn't able\n to find a formal language specification analog to the [Amazon States Language](https://states-language.net/), but there's a useful [Syntax Overview](https://cloud.google.com/workflows/docs/reference/syntax).\n\nI couldn't help but detect some irony in the fact that AWS *Step* Functions calls its elements *States* whereas Google Workflows calls them *Steps*.\n\nGCP Workflows don't have a visual editor, so we're finding ourselves counting indents\n to get our YAML file to parse. Syntax checking in the console editor and a quasi-real\n time (read only) visualization provide some support as we type along.\n\n### Calling the Credit Bureau\n\nThe first step in our workflow [Enriches](/patterns/messaging/DataEnricher.html) the incoming request with the requestor's credit worthiness. Most interactions between\n the workflow and the outside world are handled via a `[Call](https://cloud.google.com/workflows/docs/reference/syntax/calls)` step, which can utilize a variety of [Connectors](https://cloud.google.com/workflows/docs/reference/googleapis).\n\nJust as with Step Functions, we can pass arguments into the workflow and prepare the\n request data format. We then invoke the Credit Bureau with a synchronous HTTP call.\n In GCP Workflows YAML, this looks as follows (as always, the source code is available\n in the [public EIP repo](https://github.com/spac3lord/eip/tree/master/LoanBroker/GcpWorkflows)):\n\n```\nmain:\n params: [input]\n steps:\n - init:\n assign:\n - project: ${sys.get_env(\"GOOGLE_CLOUD_PROJECT_ID\")}\n - location: \"asia-southeast1\"\n - topic: \"QuoteRequest\"\n - get_function:\n call: googleapis.cloudfunctions.v1.projects.locations.functions.get\n args:\n name: ${\"projects/\" + project + \"/locations/\" + location + \"/functions/CreditBureau\"}\n result: creditBureau\n - getCreditScore:\n call: http.get\n args:\n url: ${creditBureau.httpsTrigger.url}\n query:\n RequestId: ${sys.get_env(\"GOOGLE_CLOUD_WORKFLOW_EXECUTION_ID\")}\n SSN: ${input.SSN}\n result: creditBureauResponse\n```\n\nUnlike Step Functions, Workflows assumes an implicit sequence of the steps, so that\n a `next` element isn't required for simple sequential workflows. Just as before, we can access\n a select set of [predefined variables](https://cloud.google.com/workflows/docs/reference/stdlib/sys/get_env), including project names and workflow execution ID, with the latter being a convenient\n source for a unique [Correlation Identifier](/patterns/messaging/CorrelationIdentifier.html). Custom arguments can be passed in from the command line or the workflow trigger\n and accessed via the variable specified as `params`. All this feels quite intuitive.\n\nInvoking a cloud function via HTTP requires the function URL. Following one of the\n examples, the flow fetches the URL via an API call. You could also retrieve it from\n the command line via `functions describe` and pass it as a parameter to the workflow. If specifying the function name in the\n workflow smells like tight coupling, I'd agree with you. We would want to separate\n composition from logic.\n\n### Sending Quote Requests\n\nArmed with a richer data set, our workflow is ready to send a request for quote to\n any participating banks via a PubSub topic:\n\n```\n - setQuoteRequest:\n assign:\n - creditScore:\n ${json.decode(creditBureauResponse.body).body}\n - quoteRequest:\n SSN: ${input.SSN}\n Amount: ${input.Amount}\n Term: ${input.Term}\n Credit:\n Score: ${creditScore.score}\n History: ${creditScore.history}\n - base64Msg: ${base64.encode(json.encode(quoteRequest))}\n - sendQuoteRequest:\n call: googleapis.pubsub.v1.projects.topics.publish\n args:\n topic: ${\"projects/\" + project + \"/topics/\" + topic}\n body:\n messages:\n - data: ${base64Msg}\n attributes:\n RequestId: ${sys.get_env(\"GOOGLE_CLOUD_WORKFLOW_EXECUTION_ID\")}\n```\n\nAs we [experienced before](/ramblings/loanbroker_automation.html#polyglot), some of the lines implied more hurdles than one might guess from the result. For\n example, understanding what data is passed as a string vs. JSON vs. stringified JSON\n vs. a base64-encoded string took a good bit of finessing. Likewise, expressions like\n `${json.decode(creditBureauResponse.body).body}` didn't come easily (at least to me), as the first `body` derives from the `http.get` return format and contains a stringified JSON. The second `body` is the field name chosen by our Credit Bureau implementation, which is contained\n in the JSON, which is stringified in the first `body`. Of course, in hindsight that all seems obvious, but without types nor auto-complete,\n and somewhat tedious logging, it took longer to get working than I'd like to admit.\n To make things ever more fun, PubSub messages ought to be base64 encoded, unlike the\n attributes, which, however, have to be in form of a `map`, not a `list`. Misplacing the `-` cost me nerves and the better part of one hour.\n\nI could not have managed to get this to work without inserting additional logging\n steps into the workflow. It appears that cloud workflow tools tend to focus on the\n control flow over data handling, even though the latter is at least as important.\n The basic flow so far already looks a bit longer than intended, as shown on the right.\n\n## Workflow Recap\n\nLet's take a pause for a quick recap and first impressions.\n\n- Switching from AWS Step Functions to GCP Workflows made me realize just how useful\n a visual editor is, at least to get an initial flow going (even if that's against\n my \"no changes in GUI\" mantra). GCP's text editor is nice, but it's a big step back\n to not be able to position and add steps in the visual editor. It seems like a few\n folks started to [build a visual editor](https://medium.com/google-cloud/gcp-workflows-visual-editor-9876fb1c823f) , but you'd really want it seamlessly integrated into the console.\n- I ended up using more states than expected - this very simple flow (one sync call\n and publishing a message) ended up using 8 states, which makes visualization challenging.\n The reasons are twofold: first, I ended up adding logging states as I had a hard time\n debugging. Second, `call` steps do not include result data transformations as they do in Step Functions, leading\n to the addition of two `assign` steps. It might be possible to squeeze the creation of the `quoteRequest` message into the `call` step, but I am quite happy to have separated creation of the JSON structure, stringification,\n and base64 encoding. Two additional steps are `init` and `return` , which currently don't do much, but that's how we got from two essential states to\n eight in total.\n- When hand-coding workflows, having the default order of steps implied by the order\n of the `step` elements in the YAML document is handy. Step Functions wants you to provide an explicit `next` element with each step (task), which makes inserting logging or assignment steps\n slightly more tedious (although the Workflow Studio takes care of that mostly).\n- GCP Workflows has connectors to most any Cloud API through connectors, a feature that\n Step Functions [just recently added](https://aws.amazon.com/about-aws/whats-new/2021/09/aws-step-functions-200-aws-sdk-integration/) . On the flip side, the integration between AWS Step Functions and core services like\n SQS, SNS, EventBridge, DynamoDB, etc. felt much smoother in the visual editor as each\n service has a dedicated menu for relevant options.\n- As a newbie, I was in dire need of documentation, which occasionally felt like a run-around.\n Sending a PubSub message defers to the [standard PubSub docs](https://cloud.google.com/pubsub/docs/reference/rest/v1/PubsubMessage) , which state that the `attributes` field takes a map of values. Translating that into the Workflows YAML took a fair\n bit of creativity and guesswork (my deliberate lack of YAML experience might have\n exacerbated the situation).\n- I found debugging to be noticeably more difficult with GCP Workflows. I ended up filtering\n logs all over the place but still had a hard time finding what I was looking for.\n Step Functions' execution view lets you inspect the data at any state just by clicking\n on it—a feature that has been available since 2016, That is pure gold in comparison.\n- I did not need it for this flow, but it appears that Workflows is lacking a parallel\n execution construct, something that you'd expect to be a fundamental to any workflow\n engine—why would you want things to be sequential in an asynchronous world?. There's\n an [experimental step that can achieve this](https://cloud.google.com/workflows/docs/reference/stdlib/experimental.executions/map) , albeit with some limitations. It makes one wonder whether there's an inherent limitation\n in the underlying execution engine.\n\nOverall, you can tell that this service hasn't had as much time to mature the developer\n experience as its AWS counterpart (Dec 2016 vs. Jan 2021). At the same time, the concepts\n feel quite familiar to someone coming from AWS and it's likely that most orchestrations\n port over fairly well, although you'd have to recode it in the new syntax. The absence\n of a `map` construct might be the only major hurdle.\n\n## Aggregator\n\nSending quote requests is fine, but aggregating quote responses from an unknown number\n of banks is where the messaging rubber meets the cloud platform road. The AWS implementation\n used a [lambda function written in Python with DynamoDB as the backing data store](https://github.com/spac3lord/eip/blob/master/LoanBroker/AwsStepFunctions/PubSub/QuoteAggregator.py). In GCP land, that'll translate into Cloud Functions with Datastore, or rather [Firestore in Datastore mode](https://cloud.google.com/datastore/docs). When it comes to naming, all cloud providers apparently have their weak spots.\n\nFirst, we'll need to create a data store. That should be easy enough, but for some\n reason, Firestore data stores are tied to App Engine, which is tied to a region, which\n you can't change. Off we go, create a new project, a new app (which we don't actually\n need) and a new `datastore` (someone grant me the serenity …):\n\n```\n$ gcloud app create --region=asia-southeast1\n$ gcloud datastore databases create --region=asia-southeast1\nSuccess! Confirmed selection of a Google Cloud Firestore in Datastore Mode database for eiploanbroker\n```\n\n### Collating Quotes\n\nGCP Datastore stores `Entities`, which equate to rows in a relational database. You can fetch them with a `key` and add new ones by instantiating one with a key and `put`ing it into the data store. As Datastore appears to lack an *append* operation, we must wrap reading and writing into a transaction to avoid conflicting\n operations and data loss. As before, just for fun, we write the [Aggregator](/patterns/messaging/Aggregator.html) in Python ([source code in EIP repo](https://github.com/spac3lord/eip/blob/master/LoanBroker/GcpWorkflows/Aggregator/main.py)):\n\n```\ndef store_quote(correlationId, quote):\n key = db.key(\"MortgageQuotes\", correlationId)\n with db.transaction():\n item = db.get(key)\n if not item:\n item = datastore.Entity(key)\n item['Quotes'] = []\n item['Quotes'].append({ 'bankId': quote['bankId'], 'rate': quote['rate'] })\n db.put(item)\n logging.info(item)\n return item\n```\n\nAlthough method names change, the code remains quite similar to the AWS version. Again,\n wrapping the logic in a helper method localizes such changes. We might even be able\n to avoid the `if` statement by using `get_multi`, but I didn't want to push my luck.\n\nTime to wire this together and give it a shot. We test by publishing messages to the\n `QuoteRequest` topic directly, bypassing the workflow.\n\n```\n$ gcloud functions deploy Aggregator --source=Aggregator --entry-point=handle_quote \\\n --region=asia-southeast1 --runtime=python39 --trigger-topic=QuoteResponse\n\n$ gcloud pubsub topics publish QuoteRequest \\\n --message='{ \"Amount\": 300000, \"Term\": 30, \"Credit\": { \"Score\":700, \"History\": 15 } }' \\\n --attribute=RequestId=ABDD\n```\n\nOff we go! Our Aggregator doesn't yet signal back to the workflow, so we check the\n results in the log:\n\n```\ngoogle.api_core.exceptions.Aborted: 409 Aborted due to cross-transaction contention.\nThis occurs when multiple transactions attempt to access the same data,\nrequiring Firestore to abort at least one in order to enforce serializability.\n```\n\nOops. That didn't work. So we took care to use transactions but Datastore doesn't\n seem to like conflicting transactions.\n\n### Handling Contention\n\nThe [docs](https://cloud.google.com/firestore/docs/troubleshooting) didn't help me much, aside from proposing to reduce updates on individual documents\n to one per second, which doesn't exactly sound like an infinitely scalable serverless\n data store. My initial fix is to limit the `Aggregator` cloud function to a single instance by adding a `--max-instances` option:\n\n```\n$ gcloud functions deploy Aggregator --source=Aggregator --entry-point=handle_quote \\\n --region=asia-southeast1 --runtime=python39 --trigger-topic=QuoteResponse --max-instances 1\n```\n\nThis solves the concurrency issue but appears overly restrictive as contention only\n occurs for responses on one individual loan request to the Loan Broker. A quick scan\n of the logs suggests execution times for the `Aggregator` function of about 140ms, which would process only 7 quotes per second if we limit\n to a single instance:\n\nThat isn't great and something we should fix. On the upside, we got exactly what we\n were looking for:\n\n> Despite its apparent simplicity, the EIP Loan Broker quickly reveals many nuances\n> and challenges in asynchronous, distributed applications.\n\nA better solution than throttling updates is to retry on failure. This will work well\n because the transaction failures are transient, meaning they are likely to succeed\n just a short time later. Luckily, GCP has a built-in option to retry message delivery\n on error per the `--retry` command line option on function deployment.\n\n```\n$ gcloud functions deploy Aggregator --source=Aggregator --entry-point=handle_quote \\\n --region=asia-southeast1 --runtime=python39 --trigger-topic=QuoteResponse --retry\n```\n\nAny failures stemming from transaction contention now cause the message to be re-delivered\n and the `Aggregator` function to be re-executed. This way we don't have to compromise the happy path to\n accommodate a relatively rare error condition. The [retry documentation](https://cloud.google.com/functions/docs/bestpractices/retries) advises to make retried functions [idempotent](/patterns/messaging/IdempotentReceiver.html). Strictly speaking, ours isn't as it'll append the same quote twice. However, if\n the error resulted from a data store `insert` in the first place, that won't be a problem. We could relatively easily make the\n function idempotent by replacing the `Quotes` list with a map indexed by `BankId`. The docs also warn of potentially infinite retries caused by application errors,\n which I can confirm (deleting the topic seems to get you out of it at the price of\n total data loss). You'd therefore want to catch any errors that shouldn't trigger\n a retry, ignore old messages (essentially implementing your own TTL), and use the\n `--retry` flag only after thorough testing.\n\n> Run-time considerations like contention, re-try logic, back pressure, infinite loops\n> make up a large portion of designing and building distributed, asynchronous applications.\n\n### The Message Filter\n\nOne part from the original design that we didn't yet implement is the [Message Filter](/patterns/messaging/Filter.html) that eliminates empty responses from banks that aren't interested in the loan application.\n AWS handled this nicely with EventBridge rules. GCP [EventArc](https://cloud.google.com/eventarc/docs) might be a usable option, but I'll have to check into that later. For now, I add\n a simple condition into the aggregator code:\n\n```\nif not 'bankId' in quote:\n logging.warning(\"incomplete quote received\")\n return 0\n```\n\nThis of course works, but it blurs the role of the Aggregator with that of the Message\n Filter. It's up to you if you consider that acceptable. Another feature lacking from\n our implementation is purging of aggregate data from the database. Right now, our\n entities just keep accumulating, but for this simple experiment that's alright.\n\n## Async Workflow Completion\n\nAs a last step, the Aggregator needs to signal to the workflow that an aggregate is\n complete, meaning a sufficient number of quotes have been received. Workflows supports\n [Callback endpoints](https://cloud.google.com/workflows/docs/creating-callback-endpoints), which is a perfect match for this use case. A special library call creates a unique\n callback URL, which you can pass to an external task. You can then pause the workflow\n until that URL is invoked or you reach a time-out. Similar to AWS Step Functions,\n GCP Workflows allow the caller to pass data back with the callback by performing a\n POST.\n\n### Waiting for Callback\n\nThe easiest way to pass the callback URL to the Aggregator is via the `id` message attribute that's already in place and propagated by the banks. Because the\n callback URL is unique to each workflow instance, this field can act both as a [Correlation Identifier](/patterns/messaging/CorrelationIdentifier.html) and as callback address.\n\nWe add the following steps to the workflow (see [source](https://github.com/spac3lord/eip/blob/master/LoanBroker/GcpWorkflows/LoanBrokerFlowCallback.yml)):\n\n```\n- create_callback:\n call: events.create_callback_endpoint\n args:\n http_callback_method: \"POST\"\n result: callback_details\n\n[send request message as before]\n\n- await_callback:\n try:\n call: events.await_callback\n args:\n callback: ${callback_details}\n timeout: 30.0\n result: aggregate_quotes\n except:\n as: e\n steps:\n - log_error:\n call: sys.log\n args:\n severity: \"WARNING\"\n text: ${\"Error \" + e.message}\n next: end\n- print_callback_data:\n call: sys.log\n args:\n severity: \"INFO\"\n text: ${aggregate_quotes}\n- returnOutput:\n return: ${aggregate_quotes.http_request.body}\n```\n\nThe callback result comes back as a JSON element embedded in the `http_request.body` of the request object (this might once again seem apparent after some mandatory logging\n and debugging content types and encodings).\n\n### Invoking the Callback\n\nThe following code in the Aggregator sends the required callback signal with attached\n aggregate data:\n\n```\ndef completion_callback(correlationId, aggregate):\n logging.info(\"Aggregate complete: %s\", correlationId)\n url = correlationId\n\n auth_req = google.auth.transport.requests.Request()\n creds.refresh(auth_req)\n status = requests.post(url, json=aggregate, headers={\"Authorization\": f\"Bearer {creds.token}\"})\n logging.info(\"Sent Callback: %i\", status.status_code)\n```\n\nWhile I escaped IAM so far, these callbacks do require an authentication token. Luckily,\n you can fetch one from `google.auth.transport.requests` as both the workflow and the function operate under the same service account. This\n code once again looks simple but took a good amount of digging through [the docs](https://cloud.google.com/functions/docs/samples/functions-bearer-token) and [Stack Overflow](https://stackoverflow.com/questions/53472429/how-to-get-a-gcp-bearer-token-programmatically-with-python). The python `requests` library allows us to conveniently pass a JSON object back to the workflow. Overall,\n the cognitive load of this async callback, measured in open browser tabs, was rather\n high at about 8 tabs, more than the lines of code.\n\n> The number of open browser tabs to check documentation and examples exceeded the lines\n> of code.\n\nArchitects should have a lot of appreciation for life in the engine room.\n\n## End-to-end Test\n\nLet's give the whole setup a run-through:\n\n- Trigger a new workflow instance from the command line, passing a loan application.\n- The workflow enriches the request with the credit data fetched from the Credit Bureau.\n- The workflow sets up an asynchronous callback and publishes a quote request message\n to the PubSub topic `QuoteRequest` .\n- Bank functions subscribe to this topic and reply with a `QuoteResponse` if they are willing to service the loan. Otherwise, they send an empty message.\n- The Aggregator listens to messages on `QuoteResponse` and stores them into Firestore, indexed by the correlation identifier.\n- When sufficiently many responses are received (arbitrarily set to 2 in our case),\n the Aggregator signals completion back to the workflow, using the correlation identifier\n as URL.\n- The workflow returns the list of quotes.\n\nFrom the gcloud command line, this looks somewhat less exciting, but that's likely\n a good thing (minor formatting done by the operator):\n\n```\n$ gcloud workflows deploy LoanBrokerCallback --source=LoanBrokerFlowCallback.yml \\\n --location=asia-southeast1\n\n$ gcloud workflows execute LoanBrokerCallback --location=asia-southeast1 \\\n --data='{ \"Amount\": 300000, \"SSN\": \"123-45-1113\", \"Term\": 10 }'\nCreated [284be31c-f5dd-4978-9538-123456789]\n\n$ gcloud workflows executions describe 284be31c-f5dd-4978-9538-123456789 \\\n --workflow=LoanBrokerCallback --location=asia-southeast1\nargument: '{\"Amount\":300000,\"SSN\":\"123-45-2211\",\"Term\":10}'\nendTime: '2022-06-12T11:38:00.248691113Z'\nstartTime: '2022-06-12T11:37:50.357602769Z'\nstate: SUCCEEDED\nresult: '{\"Quotes\":[\n {\"bankId\":\"BankPawnshop\",\"rate\":6.415049525230497},\n {\"bankId\":\"BankPremium\",\"rate\":4.537483020303889}\n ]}'\n```\n\nDue to our Aggregator's simplistic *completion condition*, the Aggregator function may invoke the workflow callback more than once, e.g. when\n all three banks respond with a quote. That actually works OK as the second invocation\n of the callback URL simply returns a 404 HTTP code - these URLs are for one-time use\n only. This also means that we should invoke the callback near the end of our function.\n Otherwise function errors occurring after the callback would trigger a message delivery\n retry, which would not be able to invoke the callback again.\n\n## Evaluating the Solution\n\nThis solution works, but it's by no means production ready. For example, the following\n aspects would still need to be addressed:\n\n- The Aggregator will need much better error handling to avoid unintended (and potentially\n infinite) retries.\n- We likely want a better completion condition. For example, if a third quote comes\n in just milliseconds after the second, it is currently ignored. In real-life, we'd\n likely use an absolute or incremental time-out.\n- I completely ignored IAM, which is equally impressive and dangerous. I was surprised\n that I was able to get the solution to work this way, but I have no insight into the\n kind of permissions I set or the roles I created.\n- I did not build a client for the workflow, choosing instead to start and poll it from\n the command line.\n- The workflow itself includes no error handling aside from a simple time-out.\n\nAs our professor would say, we leave those enhancements as an exercise to the reader.\n\n## Patterns, Serverless, and Cloud Platforms\n\nDespite leaving several \"to do's\", the EIP Loan Broker application mapped quite well\n onto GCP's serverless platform. It also revealed several important nuances for serverless\n application development:\n\n### Pattern-based design\n\nExpressing our solution with the Integration Patterns vocabulary provided a significant\n head start for the implementation because they highlight the solution structure and\n critical design decisions in platform-independent terms. In each platform, those design\n decisions map into different implementation details, sometimes spanning multiple services.\n For example, on GCP the details of Datastore transactions for the Aggregator implementation\n influence PubSub subscription settings (`--retry`). The design patterns pull these aspects together and allow us to build a correct\n and reusable implementation.\n\n### Platform differences: tools, quirks, features, docs\n\nBoth platforms support the integration patterns well and the resulting solution architecture\n is comparable. However, I noticed significant differences in developer tooling. For\n example, although I occasionally deride [Doodleware](/ramblings/02_doodleware.html), AWS Workflow Studio is a godsend for designing an initial workflow structure. Also,\n data manipulation feels more like a first class concern on AWS Step Functions, although\n each workflow instance is limited to a single JSON document.\n\nOn the flip side, I really enjoyed the GCP Cloud Shell editor: you almost forget that\n you are working in a browser. Also, switching between editor and shell in a single\n tab feels natural. Git integration is trivial.\n\nAWS clearly has had more time to mature the serverless ecosystem, not only with tooling,\n but also with concepts like Destinations, which nicely separate composition from application\n logic. Also, EventBridge is a very good match for Message Transformation and Message Routing patterns. [GCP EventArc](https://cloud.google.com/eventarc/docs/overview) is still in preview, so we'll need to see how close it can come. For now it seems\n that its event filters are less expressive than EventBridge Rules. GCP Workflows are\n lacking parallel execution (an experimental option is available). And GCP lacks a\n built-in automation tool like CloudFormation or AWS CDK. None of these are show stoppers,\n but you don't want to end up playing [Takeshi's Castle](https://architectelevator.com/strategy/takeshi-castle/).\n\nBoth platforms have their quirks, things that appear obvious once you know them, but\n until then seem insurmountable. AWS IAM tends to nib you in the rear whenever it can\n and also has a curious structure of IAM roles and resource-based policies (as I said\n they make total sense once you get your head around it). GCP Datastore requiring you\n to setup an AppEngine project and being bound to that projects region seems equally\n arbitrary. The light at the end of the tunnel is that you're likely to face those\n learning cliffs only once.\n\nLast, modern cloud platforms are vast and powerful, so finding all docs to be approachable,\n meaningful, precise, and easy to discover might be asking for a lot. Still, I found\n myself opening more tabs across product docs, tutorial, quick starts, and Stack Overflow\n for GCP than I had to for AWS (and my starting point was equally ignorant).\n\n### Service Mapping\n\nThe old joke that you need at least 10 AWS services on to write \"Hello World\" basically\n held true during the initial Loan Broker implementation. Mathematically speaking,\n GCP used fewer services. However, aside from Pub/Sub being a single service whereas\n it's split into SQS and SNS on AWS, the difference is largely due to the absence of\n some services that we would have liked to use. Here is the current service mapping\n for our solution:\n\n```\nFunction AWS GCP Comment\n-------- --- --- -------\nServerless Function Lambda Cloud Functions\nOrchestration Step Functions Workflows\n1:many messaging SNS PubSub\n1:1 messaging SQS PubSub\nKey Value Store DynamoDB Datastore\nLogging CloudWatch Logging\nDevelopment Cloud Shell Cloud Shell\nAutomation CloudFormation/CDK (none) 3rd party, often Terraform\nEvent Router EventBridge (EventArc) In preview, fewer filter capabilities\nAccess Management IAM (IAM) Didn't explicitly use, but should have\n```\n\nOnce you factor in 3rd party services or services in preview, the number of services\n involved is comparable. Both platforms allowed me to fully build the Loan Broker without\n any local installation, which is impressive.\n\n### Performance and stability\n\nOur test did not address how the solution behaves under heavy load and error conditions.\n This is where scaling policies, quotas, message deliver guarantees, etc. will come\n into play.\n\n### Lock-in and portability\n\nThe key question we posed at the beginning was related to \"lock-in\" or rather switching\n costs from one platform top another. A common argument building using serverless solutions,\n despite the apparent advantages, is the perceived difficulty of porting code from\n one platform to another if the need arises. I have already [discussed the value and cost of options](https://architectelevator.com/cloud/multi-cloud-decision-model/#switching-costs-vs-option-cost) and the danger of forgoing today's feature delivery velocity for a reduction in tomorrow's\n potential switching cost. For serverless solutions the lost opportunity cost appears\n particularly high.\n\nBuilding the Loan Broker on GCP wasn't a mechanical port. However, having expressed\n the solution in form of Integration Patterns gave me a significant head start because\n the key design decisions were expressed independent of the platform. If I had structured\n the original solution code with cleaner abstractions between pattern and platform,\n I likely would have been able to re-use most actual application logic without minimal\n changes. Based on the data point gathered from the Loan Broker, I venture to state:\n\n> A clean design based on integration patterns improves code structure such that moving\n> the solution to a different platform is much simplified.\n\nPattern-based design therefore helps you build a better solution now, and also makes\n it easier to move it, if you should ever have the need. This insight is profound enough\n that it'll deserve its own post. Stay tuned.\n\n*Share:*\n\n*Follow:* [Follow @ghohpe](https://twitter.com/ghohpe) [SUBSCRIBE TO FEED](../ramblings.rss)\n\n*More On:* [INTEGRATION](/ramblings_integration.html) [CLOUD](/ramblings_cloud.html) [ALL RAMBLINGS](../ramblings.html)\n\nGregor is a cloud architect and author. He is a frequent speaker on asynchronous messaging,\n IT strategy, and cloud.", "znaku_textu": 46582, "slov": 6493, "odkazu": 91, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/ramblings/loanbroker_gcp_workflows.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 06:03:22", "sha256": "ee990c934ddde99a0ddd7978907ec9ee86c6205d203867f2d58015a640e07114", "hloubka": 1, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://architectelevator.com/blog", "https://martinfowler.com/articles/oss-lockin.html", "https://architectelevator.com/cloud/multi-cloud-decision-model/", "https://www.techtarget.com/searchsoftwarequality/definition/native-application-native-app", "https://architectelevator.com/architecture/engine-room/", "https://github.com/spac3lord/eip", "https://cloud.google.com/functions/docs/2nd-gen/overview", "https://aws.amazon.com/blogs/compute/introducing-aws-lambda-destinations/", "https://cloud.google.com/blog/products/application-development/get-to-know-google-cloud-workflows", "https://states-language.net/", "https://cloud.google.com/workflows/docs/reference/syntax", "https://cloud.google.com/workflows/docs/reference/syntax/calls", "https://cloud.google.com/workflows/docs/reference/googleapis", "https://github.com/spac3lord/eip/tree/master/LoanBroker/GcpWorkflows", "https://cloud.google.com/workflows/docs/reference/stdlib/sys/get_env", "https://medium.com/google-cloud/gcp-workflows-visual-editor-9876fb1c823f", "https://aws.amazon.com/about-aws/whats-new/2021/09/aws-step-functions-200-aws-sdk-integration/", "https://cloud.google.com/pubsub/docs/reference/rest/v1/PubsubMessage", "https://cloud.google.com/workflows/docs/reference/stdlib/experimental.executions/map", "https://github.com/spac3lord/eip/blob/master/LoanBroker/AwsStepFunctions/PubSub/QuoteAggregator.py", "https://cloud.google.com/datastore/docs", "https://github.com/spac3lord/eip/blob/master/LoanBroker/GcpWorkflows/Aggregator/main.py", "https://cloud.google.com/firestore/docs/troubleshooting", "https://cloud.google.com/functions/docs/bestpractices/retries", "https://cloud.google.com/eventarc/docs", "https://cloud.google.com/workflows/docs/creating-callback-endpoints", "https://github.com/spac3lord/eip/blob/master/LoanBroker/GcpWorkflows/LoanBrokerFlowCallback.yml", "https://cloud.google.com/functions/docs/samples/functions-bearer-token", "https://stackoverflow.com/questions/53472429/how-to-get-a-gcp-bearer-token-programmatically-with-python", "https://cloud.google.com/eventarc/docs/overview", "https://architectelevator.com/strategy/takeshi-castle/", "https://twitter.com/share", "https://twitter.com/ghohpe", "https://leanpub.com/37things"]} {"url": "https://www.enterpriseintegrationpatterns.com/ramblings/loanbroker_stepfunctions.html", "titulek": "Loan Broker Implementation with AWS Step Functions - Enterprise Integration Patterns", "h1": "Loan Broker Implementation with AWS Step Functions", "popis": "A lot has happened since we implemented the Loan Broker Example in EIP: we have the cloud, serverless computing, machine learning, service meshes and all sorts of other bells and whistles", "klicova_slova": "", "kanonicka": "", "jazyk": "en_US", "robots_meta": "", "og": {"og:type": "article", "og:locale": "en_US", "og:site_name": "Enterprise Integration Patterns", "og:title": "Loan Broker Implementation with AWS Step Functions", "og:description": "A lot has happened since we implemented the Loan Broker Example in EIP: we have the cloud, serverless computing, machine learning, service meshes and all sorts of other bells and whistles", "og:url": "https://www.enterpriseintegrationpatterns.com/ramblings/loanbroker_stepfunctions.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/step-function-recipient-list.png"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Loan Broker Implementation with AWS Step Functions"}, {"uroven": 2, "text": "A Hint of Nostalgia"}, {"uroven": 2, "text": "AWS Step Functions: An Integration Architect's View"}, {"uroven": 3, "text": "Low-code, Visual, Orchestrate, Sequence, Serverless, Business Critical"}, {"uroven": 2, "text": "AWS Step Functions Design Decisions"}, {"uroven": 3, "text": "States vs. Activities"}, {"uroven": 3, "text": "Document management"}, {"uroven": 3, "text": "Instance Management and Correlation"}, {"uroven": 3, "text": "Error handling"}, {"uroven": 3, "text": "Integrations"}, {"uroven": 3, "text": "Development and Debug cycles"}, {"uroven": 2, "text": "Creating a Loan Broker State Machine"}, {"uroven": 3, "text": "TTSO: Time to Stack Overflow"}, {"uroven": 3, "text": "Making the Big Decisions"}, {"uroven": 2, "text": "Building the Credit Bureau: AWS Lambda"}, {"uroven": 2, "text": "Building the Loan Broker: Step Functions"}, {"uroven": 3, "text": "Lambda:Invoke"}, {"uroven": 3, "text": "Data Mapping"}, {"uroven": 3, "text": "Error handling"}, {"uroven": 2, "text": "First Test Run"}, {"uroven": 2, "text": "Getting Loan Quotes: Design Decisions"}, {"uroven": 3, "text": "Recipient List"}, {"uroven": 3, "text": "Publish Subscribe"}], "markdown": "Gregor's Ramblings\n\n---\n\n# Loan Broker Implementation with AWS Step Functions\n\nJuly 20, 2021\n\nFind my posts on IT strategy, enterprise architecture, and digital transformation\n at [ArchitectElevator.com](https://architectelevator.com/blog).\n\nMy last rambling from, ahem, 2017 transported the integration patterns into the era\n of serverless compute. After implementing a [Content-based Router](/patterns/messaging/ContentBasedRouter.html) as a Google Cloud Function, I want to be a bit more ambitious this time and implement\n the book's venerable [Loan Broker Example](/patterns/messaging/ComposedMessagingExample.html) using AWS Lambda and AWS Step Functions.\n\nSo, it's time for the hands-off architect(TM) to get the hands dirty! I expect it\n to be the first in a series where I share my first-time experience with popular tools.\n Having a lot of expertise in the technical domain but absolutely no clue about the\n product likely makes me a tough customer. So, be prepared for deep architecture insight\n coupled with UI hiccups and occasional ignorance.\n\n## A Hint of Nostalgia\n\nI can't help but feel a sense of nostalgia while I am writing about AWS Step Functions\n in an XML document (hello,

, good bye, `##`!) that's being rendered by an [Ant](https://ant.apache.org/) script, which kicks off a chain of XSLT transformations. Ant 1.10.10 just having\n been released a few months ago makes me feel like the setup isn't as retro as one\n might think. For my part, I was happily surprised that the decade-old Ant script executes\n flawlessly from my Windows GIT bash console. And nothing beats running `ant clean` to blow away all your output because you know you'll get a fresh build in just a\n few seconds thanks to the lack of any external dependencies. It almost feels like\n you're using GitHub pages :-) .\n\nThe use case I will implement is the [original Loan Broker example from our book](/patterns/messaging/ComposedMessagingExample.html) that served as the \"Composed Messaging\" example:\n\nIt's a relatively basic integration scenario that describes a simplified loan broker\n business:\n\n1. A *Customer* submits a loan application with personal data and desired terms, such as loan amount\n and duration.\n2. The *Loan Broker* enriches the request with the customer's credit score retrieved from the *Credit Bureau* .\n3. The *Loan Broker* submits the application to multiple *Banks* .\n4. The *Banks* reply with a loan offer if they are willing to service the loan.\n5. The *Loan Broker* aggregates the results, for example by selecting the best offer.\n6. The *Loan Broker* returns the result(s) to the *Customer* .\n\nDespite its simplicity, this scenario highlights many design options and trade-offs\n involved in building asynchronous distributed solutions, including state management,\n correlation, coupling, error handling, and many more. The book included implementations\n with Web Services (a novelty at the time!), [MSMQ](https://en.wikipedia.org/wiki/Microsoft_Message_Queuing) (still going in Windows 10 - try `More Windows features`!), and [TIBCO](/patterns/messaging/ComposedMessagingTIBCO.html) (the days of ActiveEnterprise are long gone but it's still one of the most robust\n messaging systems). A little later we described a [detailed implementation in BizTalk Server 2004](/docs/integrationpatterns_biztalk.pdf). So, it's time for some cloud and serverless action!\n\n## AWS Step Functions: An Integration Architect's View\n\nWhen architects look at integration products like AWS Step Functions they don't just\n walk through the tutorials and \"Get Started\" instructions. Rather, they are interested\n in the product team's [critical decisions](/ramblings/86_isthisarchitecture.html) and associated trade-offs. This makes us quite demanding customers in a way but perhaps\n also more interesting ones.\n\n### Low-code, Visual, Orchestrate, Sequence, Serverless, Business Critical\n\n[AWS Step Functions](https://aws.amazon.com/step-functions/) describes itself as \"a low-code visual workflow service used to orchestrate AWS services,\n automate business processes, and build serverless applications\". In plain English\n that means it's a [Process Manager](/patterns/messaging/ProcessManager.html) with the recent and welcome addition of a visual [Doodleware](https://www.urbandictionary.com/define.php?term=doodleware) editor. \"Low-code\" means that any logic that can't be represented visually will be\n painstakingly typed (or more likely pasted) in as JSON fragment, a [JsonPath](https://github.com/json-path/JsonPath) expression, or a [JMESPath query](https://jmespath.org/).\n\nThe AWS console page details AWS Step Functions as \"a serverless function orchestrator\n that makes it easy to sequence AWS Lambda functions and multiple AWS services into\n business-critical applications\". That's a bit more concrete. I hope it'll forgive\n me for not building anything business critical this time around.\n\nBehind the buzzword soup lies a lightweight orchestrator that executes state machine\n definitions as long as they don't contain complex loops and/or logic. Its main strength\n lies in the seamless integration with many AWS services, making it simple to invoke\n orchestrations via a call to the API Gateway, then storing or fetching data from a\n database, calling a Lambda function, and sending messages to SNS or SQS. The visual\n editor makes building such service orchestrations relatively straightforward.\n\n## AWS Step Functions Design Decisions\n\nSo, what design decisions and trade-offs does Step Functions include? Let's start\n simple, acknowledging that we are working with a state machine, not a full-blown workflow\n / business process engine:\n\n### States vs. Activities\n\nWorkflow tools either model states (which makes it easy to track the current state)\n or activities (often more natural as the purpose of these flows is to coordinate activities).\n As the name \"state machine\" would suggest, Step Functions models states using the\n [Amazon States Language](https://docs.aws.amazon.com/step-functions/latest/dg/concepts-amazon-states-language.html). That's different from BPMN, which is based on activities. Interestingly, Step Functions\n includes \"Task\" states, which are called \"Actions\" in the GUI, and also \"Activities\".\n So, there appears to be a notion of orchestrating activities of sorts. We'll see how\n this plays out later on.\n\n### Document management\n\nIn addition to the current execution state, most workflow engines manage a current\n data set (document likely isn't the greatest name for it but it avoids confusion with\n the state of execution). They accumulate data into that document / data set and transport\n across the individual steps.\n\nStep Functions does this by keeping an active JSON document, which is manipulated\n by task executions. Oddly, it doesn't seem to have a name but rather it shows up via\n the `Input` settings for a task. In addition to filtering and transforming, you can also [merge the task output with the input](https://docs.aws.amazon.com/step-functions/latest/dg/concepts-input-output-filtering.html), effectively accumulating state. I wish this data management aspect was a bit more\n visible in the Workflow Studio.\n\n### Instance Management and Correlation\n\nPowerful workflow engines allow an instance to be triggered by different incoming\n events and can correlate events to existing workflow instances to enable flows like\n the [discriminator pattern](http://www.workflowpatterns.com/patterns/control/advanced_branching/wcp9.php).\n\nStep Functions takes it a bit simpler with a single starting point, triggered for\n example via a call to an API Gateway. That's totally fine for an orchestrator - we\n aren't looking to build a business process modeling tool. Step Functions does have\n a callback mechanism, meaning asynchronous operations can call back into a running\n process via API by providing the correct [Correlation Identifier](/patterns/messaging/CorrelationIdentifier.html) that's derived from the task ID.\n\n### Error handling\n\nLong-running processes need to deal with local error conditions like time-outs as\n well as achieving some sort of consistency across long-running processes, e.g. through\n compensating transactions in a [Saga pattern](https://www.cs.cornell.edu/andru/cs711/2002fa/reading/sagas.pdf).\n\nStep Functions handles local errors via time-outs and retries with exponential back-off.\n Per the (marketing) home page it supports Sagas but it doesn't appear to be a built-in\n feature (an older [blog post](https://theburningmonk.com/2017/07/applying-the-saga-pattern-with-aws-lambda-and-step-functions/) shows one implementation). Because you can define error states and route to them\n if a state encounters a specified error class you can likely implement common error\n handling mechanisms but it might make the resulting flows more complex.\n\n### Integrations\n\nWorkflow engines never live in isolation but coordinate activities across other systems\n or functions. This is where Step Functions shines: you have anything from a Lambda\n function invocation to a SNS notification or a DynamoDB update at your fingertips.\n On top of that you can create EKS clusters. EMR (MapReduce) clusters and Sagemaker\n models. The long list of AWS services highlights Step Functions' role as an automation\n hub for AWS services.\n\n### Development and Debug cycles\n\nIterative development and debugging is the Achilles heel of many integration and workflow\n tools. They assume that you know everything upfront, enter it once and 100% correct\n into the tool, and live happily ever after while promotions and pay raises keep rolling\n in. If you know any developer who works like that, please send them my way.\n\nStep Functions doesn't seem to have the ability to pause or restart a partially executed\n flow for inspection. But it does have a nifty event history that allows you to dig\n into what went wrong. I used it mostly to see what the current document set looks\n like and this would have liked to be able to stored intermediate data so I can test\n a subsequent state I am working on. It'd be similar to saved data sets for Lambda\n functions. Running state machines from the command line (CLI) or inserting a `Pass` state with hard-coded data is a reasonable work-around for simple cases. Still, I\n spent 90% of my development time switching between an execution log, a [JSONPath evaluator](https://jsonpath.com/), and a task definition.\n\nOverall, Step Functions looks well-rounded as a state engine for service and function\n orchestration with many built-in integrations. Also, it can't be mistaken for a full-blown\n process management tool like [Camunda](https://camunda.com/) and friends.\n\n## Creating a Loan Broker State Machine\n\nNow it's time to bring those concepts into action by building out the Loan Broker\n example. As I am all fired up to enter the world of serverless orchestration, I'll\n start by building a Step Functions state machine for the Loan Broker.\n\n### TTSO: Time to Stack Overflow\n\nAlas... embarrassingly I can't quite figure out how to create a process definition:\n\n\"`Get Started`\" wants to create a pre-made sample, which while surely well-intended, makes me wonder\n if we hadn't relegated copy-paste programming to Stack Overflow instead of baking\n it right into the tool. The rest of the screen seems to have been leased to the marketing\n department--a bit late for someone who already opened the console and is looking for\n the `Create` button?\n\nGetting ready to revert back to the command line, the low-code label encourages me\n to give it an extra round of mouse hunting, and voilà, the Hamburger menu on the left\n includes a \"State machines\" entry, which I assume is local lingo for a process template.\n Sure enough, clicking on it yields a big orange button to create a new one, pushing\n back the time to visit Stack Overflow by a good bit.\n\n### Making the Big Decisions\n\nStep Functions must know that I am an architect: it's asking me to make the big decisions\n that are difficult to change later (TM):\n\nNaturally, I'll prefer nearly unlimited state transitions. Alas, I might want call-backs,\n which are only available in the \"Standard\" type. But at $25 per million state transitions\n it looks several orders of magnitude more expensive than paying $1 for a million complete\n executions (and $0.000004 to $0.00001 per GB-second, which I have no idea how many\n I'll incur). It would have been nice to be told if this decision is a [one-way or a two-way door](https://fortune.com/2017/05/11/jeff-bezos-shareholder-letter/) :-) (sources confirm it's indeed a one-way decision). For my trivial example, it's\n a toss-up. I'll go for \"Standard\".\n\nThe first thing my flow needs to do is call the Credit Bureau, which I'll implement\n as a AWS Lambda function (let's leave the async stuff for later). Encouraged by the\n drag-and-drop UI, I easily inserted a `Lambda:Invoke` action into my flow. Not having created any Lambda function, however, meant that\n I wasn't able to select one in the Workflow Studio. Step Functions punished my haste\n by not saving my flow. Oops. This is a classic case of the tool assuming a specific\n work sequence, which might not match reality. Luckily I only lost a state machine\n with a single task.\n\n## Building the Credit Bureau: AWS Lambda\n\nSlightly smarter, I created the Lambda function first. The integrated editor makes\n creating and testing simple functions very easy. As our focus will be on the integration,\n my function is very simple: it validates the supplied SSN and returns random numbers\n for Credit *score* and *history*. To anticipate an asynchronous setup, my function also returns a caller-supplied\n request ID. In JavaScript, the function looks like this:\n\n```\nfunction getRandomInt(min, max) {\n return min + Math.floor(Math.random() * (max-min));\n}\n\nexports.handler = async (event) => {\n // TODO implement\n const min_score = 300\n const max_score = 900\n\n var ssn_regex = new RegExp(\"^\\\\d{3}-\\\\d{2}-\\\\d{4}$\");\n if (ssn_regex.test(event.SSN)) {\n return {\n statusCode: 200,\n request_id: event.RequestId,\n body: {\n SSN: event.SSN,\n score: getRandomInt(min_score, max_score),\n history: getRandomInt(1,30)\n }\n };\n } else {\n return {\n statusCode: 400,\n request_id: event.RequestId,\n body: {\n SSN: event.SSN\n }\n };\n }\n};\n```\n\nThis is where I should likely be ZIP-ing up the function and storing it in an S3 bucket\n for deployment via CloudFormation, but... the giant `DEPLOY` button is right in front of me. How do I often say: transformations that prescribe\n one behavior and reward another are bound to fail. So I am not weak, I am simply the\n victim of a misaligned incentive system!\n\n## Building the Loan Broker: Step Functions\n\n### Lambda:Invoke\n\nNow we're ready to invoke the Loan Broker function with a `Lambda:Invoke` action, implementing a [Content Enricher](/patterns/messaging/DataEnricher.html).\n\nNow that was easy! However, data mapping turned out to be quite a bit trickier.\n\n### Data Mapping\n\nStep Functions allows you to transform data passed to an external entity as well as\n the results that are returned. As described in the [original Loan Broker Example](/patterns/messaging/ComposedMessagingExample.html), you can't expect other services to comply with your data format, so this is a very\n useful feature. What's less useful is that those transformations are somewhat hidden\n inside the `Input` and `Output` tabs of the editor. There you have to choose from a `Payload` expression, `ResultSelector`, `ResultPath`, `Context` object and a few other bits and pieces of magic that can be summoned through various\n special character sequences. A Data Flow Simulator tool helps develop the needed JSonPath\n expressions, but seems to require you to paste the JSON docs back and forth.\n\nThe `Lambda:Invoke` references a fixed parameter `Payload` that accepts JSON documents decorated with special expressions, for example to access\n the [Context Object](https://docs.aws.amazon.com/step-functions/latest/dg/input-output-contextobject.html) via `$$`. We use the `Context` object's unique ID to provide a [Correlation Identifier](/patterns/messaging/CorrelationIdentifier.html). An appended `.$` indicates that an element is defined based on a JsonPath expression. But you likely\n knew that...\n\nIt's easy implemented but you'll be hard pressed to explain to anyone why those two\n lines took you 20 minutes to write. This is a common challenge I see with low-code\n tools, which defer the specification of \"logic\" to another language, [JsonPath](https://github.com/json-path/JsonPath) in this case, with limited editor support like auto-complete or syntax check. You\n end up writing less code, but it's not necessarily faster than using a regular IDE.\n\nProcessing the data returned by the Credit Bureau gets a bit more complicated. To\n Step Functions' defense I likely should have read the section [Input and Output Processing](https://docs.aws.amazon.com/step-functions/latest/dg/concepts-input-output-filtering.html) under \"How Step Functions works\":\n\nDrawn with EIP icons makes the intent a bit clearer ( reducing the blank space in\n favor of a larger font might have also helped):\n\nThe document state is sent to the external process after filtering and transforming.\n Returned data is also filtered and transformed before being enriched into the document\n state.\n\nSadly, the Workflow Studio UI gives little hint as to this underlying execution model.\n Also, I have to enter JsonPath expressions for document structures that I cannot easily\n see. I assume folks run the state machine partway, capture an example JSON document,\n then use the Data Flow Simulator to define the expressions and then paste them into\n the Workflow Studio.\n\nWe invoke the Credit Bureau synchronously, so we filter and transform the incoming\n response via a `ResultSelector` expression and a `ResultPath` node.\n\nOne issue I ran into is that if one of the expected fields wasn't present, I'd be\n served a runtime error that I wasn't able to catch with the error \"Catcher\".\n\n### Error handling\n\nA \"Retrier\" setting allows Step Functions to automatically retry failed calls with\n an exponential back-off rate. I skipped this one for now as it's unlikely that a failed\n Credit Bureau invocation will success on a repeated attempt.\n\n## First Test Run\n\nWe're still missing the banks but it's a good time for a test run. No better place\n for that than [CloudShell](https://aws.amazon.com/cloudshell/). Via the command line you can easily fetch the ID for the Step Functions state machine\n you defined (`123456789` will be replaced by your account ID):\n\n```\n$ aws stepfunctions list-state-machines\n{\n \"stateMachines\": [\n {\n \"stateMachineArn\": \"arn:aws:states:us-east-2:123456789:stateMachine:LoanBroker\",\n \"name\": \"LoanBroker\",\n \"type\": \"STANDARD\",\n \"creationDate\": \"2021-07-11T06:39:34.552000+00:00\"\n }\n ]\n}\n```\n\nExecuting the state machine is also simple enough by supplying the state machine's\n `arn` (arn's are like URLs for AWS resources; you can see they follow a [quite logical format](https://docs.aws.amazon.com/quicksight/latest/APIReference/qs-arn-format.html)) and any input data. Make sure to supply a unique run name as that becomes part of\n the execution's arn.\n\n```\n$ aws stepfunctions start-execution --name=myrun \\\n --state-machine-arn=arn:aws:states:us-east-2:1234567890:stateMachine:LoanBroker \\\n --input=\"{\\\"SSN\\\": \\\"123-45-6789\\\", \\\"Amount\\\": 500000, \\\"Term\\\": 30 }\"\n{\n \"executionArn\": \"arn:aws:states:us-east-2:1234567890:execution:LoanBroker:myrun\",\n \"startDate\": \"2021-07-11T08:10:40.033000+00:00\"\n}\n```\n\nLooks good. Let's see how it did:\n\n```\naws stepfunctions describe-execution \\\n --execution-arn=arn:aws:states:us-east-2:1234567890:execution:LoanBroker:myrun\n{\n \"executionArn\": \"arn:aws:states:us-east-2:1234567890:execution:LoanBroker:myrun\",\n \"stateMachineArn\": \"arn:aws:states:us-east-2:1234567890:stateMachine:LoanBroker\",\n \"name\": \"myrun\",\n \"status\": \"SUCCEEDED\",\n \"startDate\": \"2021-07-11T08:10:40.033000+00:00\",\n \"stopDate\": \"2021-07-11T08:10:40.453000+00:00\",\n \"input\": \"{}\",\n \"inputDetails\": {\n \"included\": true\n },\n \"output\": \"{\\\"SSN\\\":\\\"123-45-6789\\\",\\\"Amount\\\":500000,\\\"Term\\\":30,\\\"Credit\\\":{\\\"Score\\\":524,\\\"History\\\":13}}\",\n \"outputDetails\": {\n \"included\": true\n }\n}\n```\n\nIf you don't fancy all the extras but just the data, you can append `--query=\"output\"` to that command and pipe it into `jq -r '. | fromjson'`. That's a tiny portion of the magic that the AWS CLI can do for you. Voila:\n\n```\n{\n \"SSN\": \"123-45-6789\",\n \"Amount\": 500000,\n \"Term\": 30,\n \"Credit\": {\n \"Score\": 524,\n \"History\": 13\n }\n}\n```\n\nThat's a nice JSON doc! After invoking the Credit Bureau our state machine contains\n the above data as the current document to be used in subsequent steps. You can also\n see this data in the pretty nice \"Graph Inspector\" (\"graph\" appears to be the prior\n name for the state machine) after the run. I quite like the structure of the AWS command\n line syntax - it's yet another handy feature that'll keep you off the noble path of\n Infrastructure-as-Declarative-Data-Structure-Config.\n\n## Getting Loan Quotes: Design Decisions\n\nGetting the credit score is a great first step but what we're really here for is to\n get some loan quotes for our customers. We'll implement the banks as Lambda functions\n because the ease of deployment is simply unbeatable. The interaction with the banks\n is more complex than the Credit Bureau, though. We are looking to decouple the bank\n invocations from the loan broker so it's easy to add or remove banks. Also, we'll\n be using a [Scatter-Gather](/patterns/messaging/BroadcastAggregate.html) pattern, so we need to aggregate the responses from multiple banks.\n\nJust as in previous implementations, the major decision is whether to use a [Recipient List](/patterns/messaging/RecipientList.html), meaning the list of recipients is known to the Loan Broker or whether to use a [Publish-Subscribe Channel](/patterns/messaging/PublishSubscribeChannel.html). The latter pushes the message routing into the channel, which is generally preferred\n because it reduces coupling and better separates message routing from the endpoints.\n However, it also makes the [Aggregator](/patterns/messaging/Aggregator.html) more complex as it won't lnow how many responses to expect.\n\nGiven the capabilities of Step Functions as an orchestrator, I'll build two separate\n implementations:\n\n### Recipient List\n\nThis version uses a [Recipient List](/patterns/messaging/RecipientList.html), meaning the Loan Broker first retrieves a list of banks to request quotes from (I\n took the liberty to place semantics ahead of product choice and thus intentionally\n departed from the all-icons-must-look-the-same template standard):\n\nWe'll retrieve the list of banks to be called from a DynamoDB item (perhaps a bit\n overkill but it's easy to fetch DynamoDB data from Step Functions) and subsequently\n sends those requests via direct Lambda invocations wrapped in a [Map](https://docs.aws.amazon.com/step-functions/latest/dg/amazon-states-language-map-state.html) state. We'll simply aggregate the responses by concatenating them.\n\n### Publish Subscribe\n\nThis version uses a [Publish-Subscribe Channel](/patterns/messaging/PublishSubscribeChannel.html), implemented via Amazon SNS, the Simple Notification Service.\n\nIn this implementation we'll need a stand-alone [Aggregator](/patterns/messaging/Aggregator.html) that can handle unknown numbers of incoming loan quote messages. I might be able\n to do it with a loop inside Step Functions as long as we are able to build a condition\n that terminates the loop. We'll cross that bridge (or rather the river) when we get\n there.\n\nI'll implement and describe each option in [upcoming posts](/ramblings/loanbroker_stepfunctions_recipient_list.html).\n\n*Share:*\n\n*Follow:* [Follow @ghohpe](https://twitter.com/ghohpe) [SUBSCRIBE TO FEED](../ramblings.rss)\n\n*More On:* [INTEGRATION](/ramblings_integration.html) [CLOUD](/ramblings_cloud.html) [ALL RAMBLINGS](../ramblings.html)\n\nGregor is a cloud architect and author. He is a frequent speaker on asynchronous messaging,\n IT strategy, and cloud.", "znaku_textu": 23824, "slov": 3485, "odkazu": 73, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/ramblings/loanbroker_stepfunctions.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 06:03:20", "sha256": "94266c5e0e64771b44b0e84aa060b195d127bf8a04be4c6396f89893997abc18", "hloubka": 1, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://architectelevator.com/blog", "https://ant.apache.org/", "https://en.wikipedia.org/wiki/Microsoft_Message_Queuing", "https://aws.amazon.com/step-functions/", "https://www.urbandictionary.com/define.php?term=doodleware", "https://github.com/json-path/JsonPath", "https://jmespath.org/", "https://docs.aws.amazon.com/step-functions/latest/dg/concepts-amazon-states-language.html", "https://docs.aws.amazon.com/step-functions/latest/dg/concepts-input-output-filtering.html", "http://www.workflowpatterns.com/patterns/control/advanced_branching/wcp9.php", "https://www.cs.cornell.edu/andru/cs711/2002fa/reading/sagas.pdf", "https://theburningmonk.com/2017/07/applying-the-saga-pattern-with-aws-lambda-and-step-functions/", "https://jsonpath.com/", "https://camunda.com/", "https://fortune.com/2017/05/11/jeff-bezos-shareholder-letter/", "https://docs.aws.amazon.com/step-functions/latest/dg/input-output-contextobject.html", "https://aws.amazon.com/cloudshell/", "https://docs.aws.amazon.com/quicksight/latest/APIReference/qs-arn-format.html", "https://docs.aws.amazon.com/step-functions/latest/dg/amazon-states-language-map-state.html", "https://twitter.com/share", "https://twitter.com/ghohpe", "https://leanpub.com/37things"]} {"url": "https://www.enterpriseintegrationpatterns.com/ramblings/loanbroker_stepfunctions_pubsub.html", "titulek": "Serverless Loan Broker @AWS, Part 3: Publish-Subscribe with SNS - Enterprise Integration Patterns", "h1": "Serverless Loan Broker @AWS, Part 3: Publish-Subscribe with SNS", "popis": "Part 3 of the mini-series on implementing the EIP Loan Broker as a serverless solution with AWS Step Functions uses a Publish-Subscribe Channel and a stand-alone Aggregator to request and process loan quotes", "klicova_slova": "", "kanonicka": "", "jazyk": "en_US", "robots_meta": "", "og": {"og:type": "article", "og:locale": "en_US", "og:site_name": "Enterprise Integration Patterns", "og:title": "Serverless Loan Broker @AWS, Part 3: Publish-Subscribe with SNS", "og:description": "Part 3 of the mini-series on implementing the EIP Loan Broker as a serverless solution with AWS Step Functions uses a Publish-Subscribe Channel and a stand-alone Aggregator to request and process loan quotes", "og:url": "https://www.enterpriseintegrationpatterns.com/ramblings/loanbroker_stepfunctions_pubsub.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/step-function-pub-sub-summary.png"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Serverless Loan Broker @AWS, Part 3: Publish-Subscribe with SNS"}, {"uroven": 2, "text": "Product Mapping"}, {"uroven": 2, "text": "Architecture Decisions"}, {"uroven": 3, "text": "Composition"}, {"uroven": 3, "text": "Message and Control Flow"}, {"uroven": 3, "text": "Decisions"}, {"uroven": 2, "text": "Implementing the Solution"}, {"uroven": 2, "text": "1. Create the Mortgage Quote Request SNS Topic"}, {"uroven": 2, "text": "2. Create Bank Instances and Subscribe them to the SNS Topic"}, {"uroven": 2, "text": "3. Collect Mortgage Quotes"}, {"uroven": 2, "text": "Test: Sending a Mortgage Quote Request"}, {"uroven": 2, "text": "4. Publish Quote Requests Messages from the Loan Broker Workflow"}, {"uroven": 2, "text": "5. Aggregate Loan Quote Responses"}, {"uroven": 2, "text": "6. Continue the Workflow Upon Aggregation"}, {"uroven": 2, "text": "Bonus: Handle Timeouts"}, {"uroven": 2, "text": "Conclusion and Next Steps"}, {"uroven": 2, "text": "Documenting Distributed Solutions"}], "markdown": "Gregor's Ramblings\n\n---\n\n# Serverless Loan Broker @AWS, Part 3: Publish-Subscribe with SNS\n\nJuly 20, 2021\n\nFind my posts on IT strategy, enterprise architecture, and digital transformation\n at [ArchitectElevator.com](https://architectelevator.com/blog).\n\nThis is Part 3 of a mini-series on implementing the venerable [EIP Loan Broker example](/patterns/messaging/ComposedMessagingExample.html) With AWS Step Functions. [Part 1](/ramblings/loanbroker_stepfunctions.html) provides the tool and an overview of the basic design. It also implements the synchronous\n interface to the Credit Bureau. The [previous implementation in Part 2](/ramblings/loanbroker_stepfunctions_recipient_list.html) distributes quote requests to the banks via a [Recipient List](/patterns/messaging/RecipientList.html). In Part 3 we make this part more dynamic by using a [Publish-Subscribe Channel](/patterns/messaging/PublishSubscribeChannel.html) and a stand-alone [Aggregator](/patterns/messaging/Aggregator.html), making up the [Scatter-Gather](/patterns/messaging/BroadcastAggregate.html) pattern in combination. It's a slightly more complex implementation but it frees\n to Loan Broker from knowing how many banks there are or how they are implemented.\n\nI almost forgot to mention that this is the 99th post in this blog, stretched over\n 18 years! That makes about one post every other month, reminding us how meaningless\n averages really are.\n\nI often jest that Publish-Subscribe is one of the worst-named concepts because a)\n You subscribe before you publish (so the order is off) and b) You subscribe to a [Message Channel](/patterns/messaging/MessageChannel.html) but publish a [Message](/patterns/messaging/Message.html) (so it's mixing different concepts). I guess it just sound cute. I'll get off my\n tiny soap box and start implementing...\n\n## Product Mapping\n\nHaving stated many times that architecture is about much more than product selection\n (\"architects are the chef, not the person picking produce at the market\"), let me\n contradict myself by doing a quick mapping of the constructs to AWS services. That\n way you can get a read which vicinity of the [giant service tapestry](https://aws.amazon.com/products/) we'll be dabbling in. Unsurprising we are mostly under \"Application Integration\":\n\nWe'll use the following services to implement the Loan Broker:\n\n- **Step Functions** , a serverless orchestrator, controls the sequence of activities (the Credit Bureau\n call isn't shown here) and transfers data between components, thus acting as the central\n element of the Loan Broker.\n- **SNS** , the Simple Notification Service, AWS' implementation of a [Publish-Subscribe Channel](/patterns/messaging/PublishSubscribeChannel.html) , broadcasts loan quote requests to any subscribing banks.\n- **Lambda** is our preferred serverless runtime for banks and the [Aggregator](/patterns/messaging/Aggregator.html) .\n- **SQS** , the Simple Queuing Service (one of the oldest AWS services who entered beta in late\n 2004 when [services were deployed and configured via XML and SOAP](https://www.xml.com/pub/a/2005/01/05/sqs.html) ), will ferry loan quotes from the banks to the Aggregator.\n- **DynamoDB** will hold the Aggregator's state.\n\nYou might wonder whether [Amazon EventBridge](https://aws.amazon.com/eventbridge/) might be a good fit here because it provides a serverless event bus. We'll get to\n that part later.\n\nJust like before, I prefer diagrams that highlight a component's purpose (\"semantics\"\n if you prefer a bigger word) over the product choice, so the diagram shows the product\n logo as a decorator on the pattern icon. If you squint slightly, you can see that\n the SNS icon suggests multiple receivers whereas the SQS one has a single one. You\n might wonder why SQS sends messages in the form of a square whereas SNS seems to send\n funnels - that's because SNS includes [Message Filters](/patterns/messaging/Filter.html). The Step Functions logo is nicely expressive with the \"Express\" version even featuring\n cartoon-style slanted tasks!\n\nWith the product picks out of the way, let's get to [what architects do best: make decisions](/ramblings/86_isthisarchitecture.html).\n\n## Architecture Decisions\n\nWhat constitutes critical architecture decisions continues to be a hotly debated topic.\n Being a pragmatist, I have just two points of view on this:\n\n- Ensure that you [make your decisions consciously](https://architectelevator.com/architecture/important-decisions/) , whether they are critical or not.\n- Focus on the decisions that might raise questions in the mind of a person who's looking\n at the project from the outside (this person might well be your future self).\n\nBased on this conveniently fuzzy definition, I'd like to focus on two primary decisions\n that affect many distributed and especially event-driven systems.\n\n### Composition\n\nThe great benefit of loosely coupled systems is that they can be re-composed without\n requiring code changes or re-deployments. However, we not only learned that [good composers are few and far in between](/ramblings/19_composing.html), we can also decide whether we want our composition to be [explicit or implicit](/ramblings/31_techededa.html) (I was happily surprised that my post from 2005 also highlights design decisions):\n\n- *Implicit composition* takes place when publisher and subscriber each pick a channel based on a local configuration.\n Naturally, if the chose the same channel, they are thus connected. The advantage is\n loose coupling thanks to local configuration, however, getting the complete system\n image can be a challenge (this is a [typical attribute of loosely coupled systems](https://www.enterpriseintegrationpatterns.com/ramblings/19_composing.html) ).\n- *Explicit composition* has a central element, referred to as composer or assembler, explicitly connect the\n respective components, e.g. by passing them a channel name or reference. This approach\n requires an additional component, which is aware of all other ones and hence might\n make the system appear more coupled. However, having all relationships handled by\n a central component makes it easier to see the system *gestalt* and to make changes in a central location.\n- *Direct invocation* configures one component to directly call another one. This approach is generally\n considered to be more tightly coupled as one component know has direct knowledge of\n another. However, if this is a 1:1 communication, having one component send messages\n to another (configurable) component isn't really much worse than sending it to a channel.\n The main downside is that it becomes more difficult to insert intermediaries.\n\nComposition can also take place by one component passing a [Return Address](/patterns/messaging/ReturnAddress.html) to another component, freeing the receiving component from needing to configure the\n message channel for sent messages. However, the sending component needs to know the\n address to pass, either through implicit or explicit configuration or because it created\n the (usually temporary) channel. It's therefore similar to *Direct Invocation*, just in the reverse direction.\n\n### Message and Control Flow\n\nAs described in a blog post on [Correlation and Conversations](/ramblings/09_correlation.html) from 2004 (apparently a productive year on my blog), messaging or event-based architectures\n differ substantially from call-stack-based applications. Because we're more used to\n call-stack based applications, developers often fall back into this model even when\n they're building event-driven applications. This also happened to the Loan Broker\n implementation in the book, as evidenced by the [Visualization I subsequently generated](/ramblings/11_dependencies.html), which looks awfully close to a call stack, as depicted on the left:\n\nEvent-driven applications, just like any message-oriented application, focus on the\n message flow and avoid request-response patterns. For our implementation, the key\n difference between the two approaches rests with the Aggregator. We might consider\n the Aggregator as part of the Loan Broker state machine that processes response messages,\n inching closer to a [Request-Reply](/patterns/messaging/RequestReply.html) model. Another train of thought is to consider the Aggregator simply the next processing\n step after a Bank produced a quote, resembling a free flow of events.\n\n### Decisions\n\nThe two decisions aren't completely independent. A call-stack-oriented architecture\n requires less composition. Essentially just the process manager needs to know channels\n for other components.\n\nFor this implementation we decide as follows:\n\n- We start with *implicit composition* , configuring the channels to be used in each component. It turns out that infrastructure\n automation gives us elegant ways to compose explicitly, so we'll explore that further\n in a subsequent post. We do use [AWS Lambda Destinations](https://event-driven-architecture.workshop.aws/3-lambda/1-destinations/destinations.html) for some composition, which most closely resembles direct invocation.\n- We are aiming for a *Message Flow* model (aka Event-driven). The Loan Broker itself will be a long-running but essentially\n synchronous component (acting as a [Process Manager](/patterns/messaging/ProcessManager.html) ), invoking the credit bureau synchronously as before. However, we'll implement banks\n and Aggregator in an event-driven fashion.\n\n## Implementing the Solution\n\nHaving satisfied our inner architect, it's time to crack open the Cloud Shell and\n start implementing. We will need to perform the following steps:\n\n1. Create an SNS topic , `MortgageQuoteRequest` .\n2. Create bank instances and subscribe them to the SNS topic.\n3. Collect quotes from the banks to an SQS queue, `MortgageQuotes` , via Lambda and EventBridge.\n4. Wire up the Loan Broker to call the Credit Bureau and publish a message to the SNS topic.\n5. Aggregate the mortgage quotes via an Aggregator that reads messages from the queue.\n6. Signal the Aggregate completion back to the Step Functions workflow to complete the flow and consider time-outs .\n\nYou notice that we aren't building the system linearly, as many tutorials pretend\n it to be. Rather we are building around the banks, as that's the component we already\n have at hand and because it makes for meaningful tests along the way.\n\n## 1. Create the Mortgage Quote Request SNS Topic\n\nWe implement the Publish-Subscribe Channel with [Amazon SNS](https://aws.amazon.com/sns), the simple notification service. We create the channel from the command line and\n give our step function permission to publish to it, vie the role associated with it:\n\n```\n$ aws sns create-topic --name MortgageQuoteRequest\n{\n \"TopicArn\": \"arn:aws:sns:us-east-2:1234567890:MortgageQuoteRequest\"\n}\n\n$ aws sns add-permission --topic-arn=arn:aws:sns:us-east-2:1234567890:MortgageQuoteRequest \\\n --action-name=Publish --label=Mortgage \\\n --aws-account-id=arn:aws:iam::1234567890:role/service-role/StepFunctions-LoanBroker-role-abcdef\n```\n\n## 2. Create Bank Instances and Subscribe them to the SNS Topic\n\nThe bank implementation is almost the same as for our prior implementation with a\n recipient list, thanks to the ability to subscribe Lambda functions to an SNS topic\n via the API/CLI and being able to use Lambda Destinations to send response messages.\n The bank code looks as follows:\n\n```\nfunction calcRate(amount, term, score, history) {\n if (amount <= process.env.MAX_LOAN_AMOUNT && score >= process.env.MIN_CREDIT_SCORE) {\n return parseFloat(process.env.BASE_RATE) + Math.random() * ((1000 - score) / 100.0);\n }\n}\n\nexports.handler = async (event, context) => {\n console.log(event.Records[0].Sns);\n const message = event.Records[0].Sns.Message;\n const requestId = event.Records[0].Sns.MessageAttributes.RequestId.Value;\n const bankId = process.env.BANK_ID;\n const data = JSON.parse(message);\n \n console.log('Loan Request over %d at credit score %d', data.Amount, data.Credit.Score);\n const rate = calcRate(data.Amount, data.Term, data.Credit.Score, data.Credit.History);\n\n if (rate) {\n const quote = { \"rate\": rate, \"bankId\": bankId, \"id\": requestId};\n console.log('Offering Loan', quote);\n return quote;\n } else {\n console.log('Rejecting Loan');\n }\n};\n```\n\nThis is one of my favorite parts of serverless deployment: our code is all but 20\n lines with a minimal amount of noise (all code is available in the [EIP Git Repository](https://github.com/spac3lord/eip) under `LoanBroker/AwsStepFunctions/PubSub`). As before, we parametrize the bank with the type of loan requests it publishes.\n The bank loops through the request ID attribute, which acts as [Correlation Identifier](/patterns/messaging/CorrelationIdentifier.html). You might be surprised that the function simply returns the quote as if it was invoked\n synchronously. This is where a little but of Lambda magic will come into play. First\n let's create bank instances based on this template. We ZIP up the JS file and create\n three instances with respective parameters as before (`$role` is set to our Lambda role):\n\n```\n$ aws lambda create-function --function-name=BankSnsPawnshop \\\n --runtime=nodejs12.x --handler=BankSns.handler --role=$role \\\n --environment=\"Variables={BANK_ID=PawnShop,BASE_RATE=5,MAX_LOAN_AMOUNT=500000,MIN_CREDIT_SCORE=400}\" \\\n --zip-file=fileb://BankSns.zip\n$ aws lambda create-function --function-name=BankSnsUniversal \\\n --runtime=nodejs12.x --handler=BankSns.handler --role=$role \\\n --environment=\"Variables={BANK_ID=Universal,BASE_RATE=4,MAX_LOAN_AMOUNT=700000,MIN_CREDIT_SCORE=500}\" \\\n --zip-file=fileb://BankSns.zip\n$ aws lambda create-function --function-name=BankSnsPremium \\\n --runtime=nodejs12.x --handler=BankSns.handler --role=$role \\\n --environment=\"Variables={BANK_ID=Premium,BASE_RATE=3,MAX_LOAN_AMOUNT=900000,MIN_CREDIT_SCORE=600}\" \\\n --zip-file=fileb://BankSns.zip\n```\n\nNow we need to subscribe the banks to the `MortgageQuoteRequest` SNS topic. Following our \"no actions from the GUI\" mantra, we do this from the CloudShell\n command line (repeat for each bank):\n\n```\n$ aws sns subscribe --protocol=lambda \\\n --topic-arn=arn:aws:sns:us-east-2:1234567890:MortgageQuoteRequest \\\n --notification-endpoint=arn:aws:lambda:us-east-2:1234567890:function:BankSnsPawnshop \n```\n\nAs you'd expect nothing happens if our friend IAM doesn't play along, so we need to\n give the banks permission to receive messages from the SNS topic. In the console this\n will be shown as a \"Trigger\" (thank you, [Stack Overflow](https://stackoverflow.com/questions/39190442/how-do-i-add-trigger-to-an-aws-lambda-function-using-aws-cli/39190596)):\n\n```\naws lambda add-permission --function-name BankSnsPawnshop \\\n --statement-id SnsInvokeLambda \\\n --action \"lambda:InvokeFunction\" \\\n --principal sns.amazonaws.com \\\n --source-arn arn:aws:sns:us-east-2:1234567890:MortgageQuoteRequest\n```\n\nYou can now send a mortgage quote request message to the SNS topic and confirm the\n Banks being invoked with the CloudWatch logs (the SNS Console UI also has a nice Event\n Generator). This request has to include the data that the workflow will retrieve from\n the Credit Bureau:\n\n```\n$ aws sns publish --topic-arn arn:aws:sns:us-east-2:1234567890:MortgageQuoteRequest \\\n --message \"{ \\\"SSN\\\": \\\"123-45-6666\\\", \\\"Amount\\\": 500000, \\\"Term\\\": 30, \\\"Credit\\\": { \\\"Score\\\": 803, \\\"History\\\": 22 } }\" \\\n --message-attributes '{ \"RequestId\": { \"DataType\": \"String\", \"StringValue\": \"ABC12345\" } }'\n```\n\nWhat keeps tripping me up is that when sending the message the value has to be specified\n in an element called `StringValue`, however, when the message is delivered, the field name is `Value` as you can see in the function's CloudWatch logs:\n\n```\nINFO\t{\n Type: 'Notification',\n TopicArn: 'arn:aws:sns:us-east-2:1234567890:MortgageQuoteRequest',\n Subject: null,\n Message: '{ \"SSN\": \"123-45-6666\", \"Amount\": 500000, \"Term\": 30, \"Credit\": { \"Score\": 803, \"History\": 22 } }',\n MessageAttributes: { RequestId: { Type: 'String', Value: 'ABC12345' } }\n [...]\n}\n```\n\n## 3. Collect Mortgage Quotes\n\nNow that we can send mortgage quote requests to multiple banks, we need to build a\n mechanism for the banks to deliver their quotes to a single Aggregator. We'll do that\n via an [SQS queue](https://aws.amazon.com/sns), which we setup with very basic parameters (we don't need to hang onto old responses,\n so we set a retention period of 5 minutes):\n\n```\n$ aws sqs create-queue --queue-name MortgageQuotes --attributes='{\"MessageRetentionPeriod\": \"300\"}'\n{\n \"QueueUrl\": \"https://sqs.us-east-2.amazonaws.com/1234567890/MortgageQuotes\"\n}\n```\n\nNext, we allow all entities in the account to send and receive messages to this queue:\n\n```\n$ aws sqs add-permission --queue-url=https://sqs.us-east-2.amazonaws.com/1234567890/MortgageQuotes \\\n --aws-account-ids=1234567890 \\\n --actions SendMessage ReceiveMessage DeleteMessage ChangeMessageVisibility \\\n --label BanksSendQuotes\n```\n\nThe Bank function code could publish to this queue, but I feel it's cleaner to let\n Lambda handle that without coding this dependency into the function. Lambda supports\n [Destinations](https://docs.aws.amazon.com/lambda/latest/dg/invocation-async.html#invocation-async-destinations). Destinations allow you to chain asynchronous Lambda function invocations based on\n success or failure of the invocation, meaning you can send the results of one Lambda\n function to another function or (hear, hear!) an SQS queue. This is an elegant way\n to do a direct composition of our event chain, but it does come with a slight challenge:\n the SQS message will contain the whole event with a lot of extra detail that isn't\n relevant to the Aggregator. We hence use a EventBridge rule to filter all the extra stuff and then send the clean message to the SQS queue.\n As a side node, Destinations appear to [have some limitations](https://medium.com/@iamarkadyt/3-valuable-lessons-learned-about-aws-lambda-destinations-bc1004c94329) related to duplicate invocations and long wait times. Luckily neither affects us\n for this example.\n\nWith this insight, we will create an EventBridge rule and configure the Bank's Lambda\n function to send the function's results to this event bus. We'll handle the EventBridge\n config in the GUI (I know, I know - the challenge here is that getting the event pattern\n right is only really possible with an example event and a \"test\" button). EventBridge\n is managed via so-called \"Event Buses\" - you'd normally create one bus per application.\n We create a new \"LoanBroker\" event bus and ensure that all components are able to\n publish events to this bus by using one of the permission templates provided by the\n console UI:\n\n```\n{\n \"Version\": \"2012-10-17\",\n \"Statement\": [{\n \"Sid\": \"PutForAll\",\n \"Effect\": \"Allow\",\n \"Principal\": {\n \"AWS\": \"arn:aws:iam::1234567890:root\"\n },\n \"Action\": \"events:PutEvents\",\n \"Resource\": \"arn:aws:events:us-east-2:1234567890:event-bus/LoanBroker\"\n }]\n}\n```\n\nWe now define a rule that accepts events from Lambda, strips unnecessary content,\n and publishes to SQS. This can be relatively easily done via the EventBridge UI. We\n define a custom event pattern to make sure we only handle loan quotes:\n\n```\n{\n \"detail\": {\n \"requestContext\": {\n \"functionArn\": [{ \"prefix\": \"arn:aws:lambda:us-east-2:1234567890:function:BankSns\" }]\n },\n \"responsePayload\": {\n \"bankId\": [{ \"exists\": true }]\n }\n }\n}\n```\n\nPatterns match by example, so replicating the structure of the event that you are\n expecting is enough, augmented by a few [special expressions](https://docs.aws.amazon.com/eventbridge/latest/userguide/eb-event-patterns-content-based-filtering.html) like `exists`. Our rule only processes events that originate from a bank function and have a `bankId` in the response (as always, you need to use your account ID).\n\nEventBridge implements a [Content Filter](/patterns/messaging/ContentFilter.html) as part of the target settings. After selecting the SQS queue `MortgageQuotes` as the target, we configure the input to be a part of the event, in our case the\n JsonPath expression `$.detail.responsePayload`. It can also be handy to specify a second target that logs the whole event message\n to cloudwatch so that you can capture an event for testing. The setting looks like\n this in the Console:\n\nArmed with a functioning EventBridge event bus and rule (EventBridge has many more\n cool features like schema detection, btw), we now instruct Lambda to send an event\n to it whenever a Bank invocation succeeds.\n\n```\n$ aws lambda get-function-event-invoke-config --function-name=BankSns\n\n$ aws lambda put-function-event-invoke-config --function-name=BankSnsPawnshop \\\n --destination-config='{ \"OnSuccess\": { \"Destination\": \"arn:aws:events:us-east-2:1234567890:event-bus/LoanBroker\" } }'\n```\n\nWe're almost done - there's always IAM! Our Lambda role has to be given permission\n to push events to EventBridge:\n\n```\naws events put-permission --event-bus-name=default --principal=1234567890 --action=events:PutEvents --statement-id=PutForAll\n\naws iam put-role-policy --role-name CreditBureau-role-abcdefg --policy-name AllowPutEvents --policy-document '{ \"Version\": \"2012-10-17\", \"Statement\": [ { \"Effect\": \"Allow\", \"Action\": [ \"events:PutEvents\" ], \"Resource\": \"*\" } ] }'\n```\n\n## Test: Sending a Mortgage Quote Request\n\nWe are now ready to send Mortgage Quote Requests to the SNS topic from our Step Functions\n workflow. Our setup so far looks as follows:\n\n```\n$ aws sns publish --topic-arn arn:aws:sns:us-east-2:1234567890:MortgageQuoteRequest \\\n --message '{ \"SSN\": \"123-45-6666\", \"Amount\": 500000, \"Term\": 30, \"Credit\": { \"Score\": 803, \"History\": 22 } }' \\\n --message-attributes '{ \"RequestId\": { \"DataType\": \"String\", \"StringValue\": \"ABC123456789\" } }'\n```\n\nYou can easily poll the queue from the SQS console and will find that 3 banks responded\n with a loan quote:\n\nThe message format is nice and clean:\n\n```\n{\n \"rate\": 5.1605995685644075,\n \"bankId\": \"PawnShop\",\n \"id\": \"ABC123456789\"\n}\n```\n\n## 4. Publish Quote Requests Messages from the Loan Broker Workflow\n\nInstead of calling Lambda functions directly in a loop, our state machine only has\n to send a message to an SNS topic, making the flow very simple (aggregating results\n comes next):\n\nThe only challenging part is setting the message attribute. It appears that message\n attributes aren't supported in Workflow Studio yet, so we enter those in the state\n machine JSON directly. We use the state machine's execution ID as [Correlation Identifier](/patterns/messaging/CorrelationIdentifier.html):\n\n```\n\"SNS Publish\": {\n \"Type\": \"Task\",\n \"Resource\": \"arn:aws:states:::sns:publish\",\n \"Parameters\": {\n \"Message.$\": \"$\",\n \"TopicArn\": \"arn:aws:sns:us-east-2:1234567890:MortgageQuoteRequest\",\n \"MessageAttributes\": {\n \"RequestId\": {\n \"DataType\": \"String\",\n \"StringValue.$\": \"$$.Execution.Id\"\n }\n }\n },\n \"End\": true,\n \"ResultPath\": \"$.SNSResponse\"\n}\n```\n\nWe can now invoke a workflow execution and observe loan quote messages arriving on\n the SQS queue from the console, just as we did when we sent the SNS message directly\n from the command line:\n\n```\n$ aws stepfunctions start-execution --name=mysnsrun \\\n --state-machine-arn=arn:aws:states:us-east-2:1234567890:stateMachine:LoanBroker-PubSub \\\n --input=\"{\\\"SSN\\\": \\\"123-45-6789\\\", \\\"Amount\\\": 500000, \\\"Term\\\": 30 }\"\n```\n\nThe messages arriving on the queue contain the execution ID composed of the workflow's\n arn and the `name` we provided:\n\n```\n{\n \"rate\": 4.592265542250188,\n \"bankId\": \"Universal\",\n \"id\": \"arn:aws:states:us-east-2:1234567890:execution:LoanBroker-PubSub:mysnsrun\"\n}\n```\n\n## 5. Aggregate Loan Quote Responses\n\nThe more complex part of [Scatter-Gather](/patterns/messaging/BroadcastAggregate.html) is the message aggregation. There are two general approaches (yes, another design\n decision):\n\n- Provide a separate channel for each request, meaning that only messages related to\n one request are present on a channel. This simplifies the Aggregator design because\n no message correlation is needed. However, it requires a separate response channel\n and a separate Aggregator instance for each request to the Scatter-Gather.\n- Route all messages to a single channel and have the Aggregator correlate the messages\n based on a [Correlation Identifier](/patterns/messaging/CorrelationIdentifier.html) .\n\nOption 1 only works if message channels and Aggregator instances are very lightweight.\n With a serverless environment like Lambda that's the case but it turns out that correlating\n responses is quite simple in our case and we can easily store many aggregates in DynamoDB.\n So we'll go with option 2, although our Aggregator Lambda function is ephemeral, meaning\n its lifespan is only as long as a single message invocation. The way we make this\n work is by keeping state in DynamoDB.\n\nFor a change we implement the new Lambda Function `QuoteAggregator` in Python:\n\n```\nimport boto3\nimport json\nimport logging\nimport decimal\n\nlogger = logging.getLogger()\nlogger.setLevel(logging.INFO)\ndynamo = boto3.resource('dynamodb')\n\ndef lambda_handler(event, context):\n for record in event['Records']:\n quote = json.loads(record['body'])\n logger.info(quote)\n table = dynamo.Table('MortgageQuotes')\n record = table.get_item(Key={'Id': quote['id'] }, ConsistentRead=True)\n item = record.get('Item', { 'Id': quote['id'], 'Quotes': [] } )\n item['Quotes'].append( { 'bankId': quote['bankId'], 'rate':\"%.2f\" % quote['rate'] }) \n logger.info(item)\n table.put_item(Item = item)\n return 0\n```\n\nWe clock in again at just about 20 lines! Alas, some of them require additional comments:\n\n- The Aggregator uses the `id` field in an incoming quote message to check if any related quotes are present. If\n not, it initializes an empty quote list under this id. In either case it appends the\n received quote to the quote list and persists the result in the DynamoDB. This can\n be achieved without conditionals as `get_item` returns an empty `dict` if no item is found in the database. The Python method `get` allows a default if the key isn't found in the `dict` . So, in any case, out item ends up with an `Id` and a (perhaps empty) `Quotes` list.\n- The DynamoDB Python client does not accept `float` data types. It does accept `Decimal` but that does with two problems: a) converting a `float` into a `Decimal` marks the `Decimal` as \"inexact\" and b) Python doesn't like to convert `Decimal` s into JSON. So we store the rates as strings.\n- The quote list is a list of dicts, each of which contains a `bankId` and a `rate` . You just have to make sure to get all the [], {}, and '' right. I often open up\n Python in interactive mode to get the data structures right.\n\nBy now you have learned that not much happens in the cloud without permission, so\n we need to allow the `QuoteAggregator` to consume messages from the SQS queue and read/write (aka `GetItem`, `PutItem`) into the DynamoDB. We created a second Table, again with a On-Demand provisioning\n model.\n\n```\n$ aws iam put-role-policy --role-name CreditBureau-role-abcdefg --policy-name AllowSqs --policy-document '{ \"Version\": \"2012-10-17\", \"Statement\": [ { \"Effect\": \"Allow\", \"Action\": [ \"sqs:*\" ], \"Resource\": \"arn:aws:sqs:*:1234567890:MortgageQuotes\" } ] }' \n\n$ aws iam put-role-policy --role-name CreditBureau-role-abcdefg \\\n --policy-name AllowDynamo \\\n --policy-document '{ \"Version\": \"2012-10-17\", \"Statement\": [ { \"Effect\": \"Allow\", \"Action\": [ \"dynamodb:GetItem\", \"dynamodb:PutItem\"], \"Resource\": \"arn:aws:dynamodb:*:1234567890:table/MortgageQuotes\" } ] }'\n```\n\nFinally, we configure the `QuoteAggregator` function to receive messages (it's worth having a look at the [Documentation](https://docs.aws.amazon.com/lambda/latest/dg/with-sqs.html#services-dynamodb-api)):\n\n```\n$ aws lambda create-event-source-mapping \\\n --function-name QuoteAggregator --batch-size 5 \\\n --event-source-arn arn:aws:sqs:us-east-2:1234567890:MortgageQuotes\n```\n\nWith the proper permissions in place, you can now kick off the LoanBroker workflow\n as before:\n\n```\n$ aws stepfunctions start-execution --name=snsrun --state-machine-arn=arn:aws:states:us-east-2:1234567890:stateMachine:LoanBroker-PubSub --input=\"{\\\"SSN\\\": \\\"123-45-6789\\\", \\\"Amount\\\": 500000, \\\"Term\\\": 30 }\"\n{\n \"executionArn\": \"arn:aws:states:us-east-2:1234567890:execution:LoanBroker-PubSub:snsrun\",\n \"startDate\": \"2021-08-15T10:28:23.653000+00:00\"\n}\n```\n\nThe DynamoDB table should contain the quotes it received from the banks, keyed by\n the `id` that corresponds to the arn of the StepFunctions workflow execution:\n\n```\n$ aws dynamodb get-item --table-name=MortgageQuotes \\\n --key='{\"Id\": {\"S\": \"arn:aws:states:us-east-2:1234567890:execution:LoanBroker-PubSub:snsrun\"}}'\n{\n \"Item\": {\n \"Id\": {\n \"S\": \"arn:aws:states:us-east-2:1234567890:execution:LoanBroker-PubSub:snsrun\"\n },\n \"Quotes\": {\n \"L\": [ { \"M\": { \"rate\": { \"N\": \"6.61\" }, \"bankId\": { \"S\": \"PawnShop\" } } },\n { \"M\": { \"rate\": { \"N\": \"6.24\" }, \"bankId\": { \"S\": \"Universal\" } } },\n { \"M\": { \"rate\": { \"N\": \"4.34\" }, \"bankId\": { \"S\": \"Premium\" } } }\n ]\n }\n }\n}\n```\n\nThe creative structure aside (`L` denotes a list, `M` a map, and so on), we now have collected and persisted mortgage quotes in a convenient\n place.\n\n## 6. Continue the Workflow Upon Aggregation\n\nThere's one part missing: we need to pause the workflow until the Aggregator reaches\n a completeness condition or times out. We could have the LoanBroker workflow poll\n the DynamoDB table until a sufficient number of quotes arrives. However, that approach\n is not only inefficient, it also couples the workflow back to the Aggregator implementation.\n It'd be much nicer if the Aggregator can notify the workflow that the Aggegrate is\n complete. It turns out we can achieve that by using [Task Tokens](https://docs.aws.amazon.com/step-functions/latest/dg/connect-to-resource.html#connect-wait-token).\n\nWe achieve this by marking the SNS Publish task as `Wait for callback` and supplying the magic variable `$$.Task.Token` as the Id message attribute (this has to be done in the workflow code editor). We\n then add the following code to the QuoteAggregator Lambda function:\n\n```\nfrom botocore.exceptions import ClientError\nsfn = boto3.client('stepfunctions')\n\ndef complete(item):\n return len(item['Quotes']) >= 2\n \ndef lambda_handler(event, context):\n [...]\n if complete(item):\n logger.info('Aggregate complete')\n try:\n sfn.send_task_success(taskToken=item['Id'], output=json.dumps(item['Quotes'])) \n except ClientError as ce:\n logger.info('Could not complete workflow %s' % item['Id'])\n logger.info(ce)\n```\n\nSo, sending an asynchronous task completion is actually quite simple! You just have\n to remember to convert the Python dict back into JSON - `send_task_success` won't accept Python's string representation. We define the Aggregator's completeness\n condition as having at least 2 quotes available. Recall that the Aggregator is unaware\n of how many banks there are as well as that a bank isn't require to produce a quote.\n For the Aggregation Function, we choose simple concatenation as before, meaning the\n Loan Broker will see all quotes and the bank who provided it.\n\nNaturally, we need to give the aggregator permission to send task success. Unlike\n many other policies, this one does not allow us to specify the resource, presumably\n as the token is resource-agnostic (\"opaque\"):\n\n```\n$ aws iam put-role-policy --role-name CreditBureau-role-abcdefg \\\n --policy-document '{ \"Version\": \"2012-10-17\", \"Statement\": [ { \"Effect\": \"Allow\", \"Action\": [ \"states:SendTaskSuccess\" ], \"Resource\": \"*\" } ] }'\n --policy-name AllowSuccess \\\n```\n\nIf you inspect the Aggregator's logs, you'll find that quote messages received by\n the Aggregator after the completeness condition is reached lead to a `TaskTimeOut` error because the workflow has already been completed on a prior message. We simply\n ignore this error.\n\nThe workflow ends up with the following data set:\n\n```\n{\n \"SSN\": \"123-45-6789\",\n \"Amount\": 500000,\n \"Term\": 30,\n \"Credit\": {\n \"Score\": 863,\n \"History\": 4\n }, \n \"Quotes\": [\n { \"bankId\": \"Premium\", \"rate\": \"4.95\" },\n { \"bankId\": \"Universal\", \"rate\": \"5.98\" }\n ]\n}\n```\n\n## Bonus: Handle Timeouts\n\nWe set a [Task timeout](https://docs.aws.amazon.com/step-functions/latest/dg/sfn-stuck-execution.html) on the SNS Publish task so our workflow doesn't get stuck if the Aggregator doesn't\n receive the required number of quotes. If this happens, though, we might have received\n quotes, although not sufficiently many to satisfy the Aggregator. At this point we\n might return the quotes that we have as opposed to returning empty-handed. Our Aggregator\n isn't aware of the timeout condition, so it isn't able to handle this case. The workflow\n should fetch the existing results from the DynamoDB, although that'd couple the workflow\n to the database format, which isn't desired. So, we'd wrap the database access in\n another Lambda to encapsulate the data format.\n\nAlas, we are running into a more serious problem: the task token, referenced by `$$.Task.Token`isn't accessible from the error path, leaving us without a key into the `MortgageQuotes` table. I can imagine two solutions:\n\n- Pass the execution ID to the banks and the Aggregator along with the task token and\n modify the Aggregator to use the execution ID as the key and store the Task Token\n in a field to be used when calling `send_task_success` .\n- Create a lambda function that retrieves the Task Token via a call to [GetExecutionHistory](https://docs.aws.amazon.com/step-functions/latest/apireference/API_GetExecutionHistory.html) . This ID can then be passed to a function to retrieve the loan quotes. This solution\n does leak the decision to use the Task Token as primary key into the Step Functions\n workflow or at least into the associated Lambda function. Also, the Lambda function\n could end up being brittle if there are multiple tasks that reference Task Tokens.\n\nThe second option seems a bit too clever (aka kludgy), so I prefer option 1. We'll\n start by replacing the expression to define the `RequestId` with the following expression that concatenates execution ID and Task Token (`States.Format` is a handy function that was added [in August 2020](https://aws.amazon.com/blogs/aws/aws-step-functions-adds-updates-to-choice-state-global-access-to-context-object-dynamic-timeouts-result-selection-and-intrinsic-functions-to-amazon-states-languages/):\n\n```\n\"States.Format('{}::{}', $$.Execution.Id, $$.Task.Token)\"\n```\n\nWe don't need to modify the banks because they see the ID as an opaque value. We do\n need to modify the Aggregator, though, to split the Id into the Execution Id (to be\n used as database key) and the task Token (to be used when calling `send_task_success` (notice the shared knowledge, aka \"coupling\", of the id format consisting of the\n execution id and the task token separated by \"::\"):\n\n```\n try:\n (key, token) = quote['id'].split(\"::\")\n except ValueError: \n logger.error(\"Invalid quote id %s\" % quote['id'])\n return 0\n```\n\nPython can assign arrays to tuples, throwing a `ValueError` if the array doesn't contain sufficiently many elements. In our case this would happen\n if the `Id` field lacks the `::` separator, in which case `split` simply returns the whole string as a single element.\n\nNow we slightly adjust the rest of the function to use the variables `key` and `token`:\n\n```\n record = table.get_item(Key={'Id': key }, ConsistentRead=True)\n item = record.get('Item', { 'Id': key, 'Quotes': [], 'Token': token } )\n item['Quotes'].append( { 'bankId': quote['bankId'], 'rate': \"%.2f\" % quote['rate'] }) \n table.put_item(Item = item)\n \n if complete(item):\n logger.info('Aggregate complete: %s' % token)\n try:\n sfn.send_task_success(taskToken=token, output=json.dumps(item['Quotes'])) \n except ClientError as ce:\n logger.info('Could not complete workflow %s' % item['Id'])\n```\n\nThe last part we now need is a simple lambda function that returns any values stored\n in the database for a given key:\n\n```\nimport boto3\nimport json\n\ndynamo = boto3.resource('dynamodb')\n\ndef lambda_handler(event, context):\n key = event['Id']\n table = dynamo.Table('MortgageQuotes')\n record = table.get_item(Key={'Id': key }, ConsistentRead=True)\n if 'Item' in record:\n return {'Quotes' : record['Item']['Quotes'] }\n else:\n return {'Quotes' : [] }\n```\n\nConfiguring the workflow to call this function in case of a timeout is relatively\n simple with a timeout setting and a catcher. In the [Amazon States Language](https://docs.aws.amazon.com/step-functions/latest/dg/concepts-amazon-states-language.html) that looks as follows:\n\n```\n \"SNS Publish\": {\n [...]\n \"TimeoutSeconds\": 5,\n \"Catch\": [ {\n \"ErrorEquals\": [ \"States.Timeout\" ],\n \"Next\": \"GetAggregate\",\n \"ResultPath\": \"$.Error\",\n \"Comment\": \"Timeout\"\n } ]\n },\n```\n\nThere's one slight snag, though with the data formats. Naturally, we want the final\n result to have the same format whether we completed the SNS task and got the results\n from the `QuoteAggregator` or whether we timed out and got the results from `GetAggregate`. Both Lambda functions return a list of quotes, however, the result processing of\n the Lambda Invocation doesn't handle lists directly. Rather, it insists on wrapping\n the list in another elements. Merging those results back into the execution document\n requires another node (you cannot merge results under the root node), leaving us with\n an unavoidable double nesting:\n\n```\n \"output\": {\n [...]\n \"result\": {\n \"Quotes\": [ \n { \"rate\": \"4.45\",\"bankId\": \"Universal\" },\n { \"rate\": \"4.00\", \"bankId\": \"Premium\" }\n ]\n }\n```\n\nWe rectify this with a `Pass` that that can lift the `Quotes` up. The final workflow looks as follows (it belies a bit the complexity underneath):\n\nIf the Aggregator receives sufficiently many quotes, it completes the SNS:Publish\n task via the Task Token and the workflow ends. If the Aggregator doesn't complete\n the task, it times out and calls the Lambda Function `GetAggregate` to fetch whichever quotes were received up to that point.\n\n## Conclusion and Next Steps\n\nPhew! Let's quickly recap:\n\n- We updated the Loan Broker workflow to decouple it from the banks (the CreditBureau\n isn't shown above). Rather than calling banks directly, the workflow publishes a message\n to an SNS [Publish-Subscribe Channel](/patterns/messaging/PublishSubscribeChannel.html) `MortgageQuoteRequest` . Any bank can subscribe to receive mortgage quote requests.\n- The banks optionally reply with a quote, which is sent to an EventBridge via a Lambda\n Destination mechanism. Therefore, banks don't need to be aware of the subsequent processing.\n The EventBridge runs the message through a [Content Filter](/patterns/messaging/ContentFilter.html) to remove the extra data from the event and publishes the Quotes to the `MortgageQuotes` queue.\n- The Lambda Function `QuoteAggregator` aggregates quotes and keeps state in DynamoDB. When a specified number of quotes\n is received for one request, the aggregator notifies the workflow via task token.\n Otherwise, the workflow task times out and retrieves the quotes that were received\n so far from the DynamoDB via the Lambda function `GetAggregate` .\n\nThis being an example implementation and the blog post being already over 4000 words,\n we simplified some parts that would need further work if this were to be used in a\n real-life scenario:\n\n- We went relatively lightweight on IAM, letting all Lambda functions run under the\n same IAM role (it has a funny name because it was auto-generated with the first function).\n We'd probably want to separate the roles for banks and the aggregator if this was\n more than a book chapter.\n- We run everything in a single account and a single availability zone. We also didn't\n configure retry logic and error handling.\n- The solution suffers from some minor inconsistencies in naming, e.g. mixing singular\n and plural for message channel names.\n- We don't clean up the `MortgageQuotes` DynamoDB table. We'd probably want to purge old aggregates periodically.\n\n## Documenting Distributed Solutions\n\nAs commented at the end of [Part 2](/ramblings/loanbroker_stepfunctions_recipient_list.html), visualizing dependencies and communication paths in fine-grained distributed solutions\n is important, but not easy. The diagram above is an attempt at combining several solution\n layers without causing clutter:\n\n- The message processing semantics, i.e. if an element acts as Content Filter, Aggregator.\n We use the [EIP Icons](/patterns/messaging/toc.html) for that.\n- The AWS services used, by decorating components with the product icons.\n- The AWS constructs used in italics, e.g. Lambda *Destinations* .\n- The component names, shown in fixed-pitch font.\n- IAM roles as light-gray outlines.\n\nAlas, there are many additional dependencies buried beneath. For example, the workflow\n is configured to publish to a specific SNS topic. Likewise, the banks are subscribed\n to this topic (*implicit composition*). The Lambda Destination is configured with the name of an EventBridge event bus\n (*direct invocation*, although handled by the framework). Also, two Lambda functions share a database\n and assume a specific data schema. On top of this, the workflow is aware of the data\n format of the ID field used by the `QuoteAggregator` Lambda function.\n\nMaking these dependencies explicit will become easier (although not trivial) if we\n use automation (which is recommended in any case). Therefore, automation is about\n much more than just efficiency - it also serves an important documentation function.\n We'll dive into this in [Part 4: Automation](/ramblings/loanbroker_automation.html).\n\n- **Part 4** : [Automation](/ramblings/loanbroker_automation.html)\n- **Part 5** : [Integration Patterns with CDK](/ramblings/loanbroker_cdk.html)\n\n*Share:*\n\n*Follow:* [Follow @ghohpe](https://twitter.com/ghohpe) [SUBSCRIBE TO FEED](../ramblings.rss)\n\n*More On:* [INTEGRATION](/ramblings_integration.html) [CLOUD](/ramblings_cloud.html) [ALL RAMBLINGS](../ramblings.html)\n\nGregor is a cloud architect and author. He is a frequent speaker on asynchronous messaging,\n IT strategy, and cloud.", "znaku_textu": 41323, "slov": 5841, "odkazu": 89, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/ramblings/loanbroker_stepfunctions_pubsub.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 06:53:30", "sha256": "114df16548032626da2780f7e1c0de981a2c89289c2f927b40c1795808c119d3", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://architectelevator.com/blog", "https://aws.amazon.com/products/", "https://www.xml.com/pub/a/2005/01/05/sqs.html", "https://aws.amazon.com/eventbridge/", "https://architectelevator.com/architecture/important-decisions/", "https://event-driven-architecture.workshop.aws/3-lambda/1-destinations/destinations.html", "https://aws.amazon.com/sns", "https://github.com/spac3lord/eip", "https://stackoverflow.com/questions/39190442/how-do-i-add-trigger-to-an-aws-lambda-function-using-aws-cli/39190596", "https://docs.aws.amazon.com/lambda/latest/dg/invocation-async.html", "https://medium.com/@iamarkadyt/3-valuable-lessons-learned-about-aws-lambda-destinations-bc1004c94329", "https://docs.aws.amazon.com/eventbridge/latest/userguide/eb-event-patterns-content-based-filtering.html", "https://docs.aws.amazon.com/lambda/latest/dg/with-sqs.html", "https://docs.aws.amazon.com/step-functions/latest/dg/connect-to-resource.html", "https://docs.aws.amazon.com/step-functions/latest/dg/sfn-stuck-execution.html", "https://docs.aws.amazon.com/step-functions/latest/apireference/API_GetExecutionHistory.html", "https://aws.amazon.com/blogs/aws/aws-step-functions-adds-updates-to-choice-state-global-access-to-context-object-dynamic-timeouts-result-selection-and-intrinsic-functions-to-amazon-states-languages/", "https://docs.aws.amazon.com/step-functions/latest/dg/concepts-amazon-states-language.html", "https://twitter.com/share", "https://twitter.com/ghohpe", "https://leanpub.com/37things"]} {"url": "https://www.enterpriseintegrationpatterns.com/ramblings/loanbroker_stepfunctions_recipient_list.html", "titulek": "Loan Broker @AWS, Part 2: Recipient List - Enterprise Integration Patterns", "h1": "Loan Broker @AWS, Part 2: Recipient List", "popis": "In part 2 of this blog series I implement the Loan Broker Example using a Recipient List pattern, implemented in DynamoDB, Step Functions, and Lambda", "klicova_slova": "", "kanonicka": "", "jazyk": "en_US", "robots_meta": "", "og": {"og:type": "article", "og:locale": "en_US", "og:site_name": "Enterprise Integration Patterns", "og:title": "Loan Broker @AWS, Part 2: Recipient List", "og:description": "In part 2 of this blog series I implement the Loan Broker Example using a Recipient List pattern, implemented in DynamoDB, Step Functions, and Lambda", "og:url": "https://www.enterpriseintegrationpatterns.com/ramblings/loanbroker_stepfunctions_recipient_list.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/step-function-recipient-list.png"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Loan Broker @AWS, Part 2: Recipient List"}, {"uroven": 2, "text": "Loan Broker with Recipient List"}, {"uroven": 2, "text": "Fetching the Recipient List"}, {"uroven": 2, "text": "I need banks; lots of banks!"}, {"uroven": 2, "text": "Intermission: Setting Permissions"}, {"uroven": 2, "text": "Finishing the Loan Broker"}, {"uroven": 3, "text": "Control Flow"}, {"uroven": 3, "text": "Data Flow"}, {"uroven": 3, "text": "Configuring the Map Task"}, {"uroven": 2, "text": "Running the Loan Broker"}, {"uroven": 2, "text": "Catching a Breath: Some Reflections."}, {"uroven": 3, "text": "It's a low-code, high-complexity, polyglot world"}, {"uroven": 3, "text": "Abstractions are hard"}, {"uroven": 3, "text": "Data flow is harder than control flow"}, {"uroven": 3, "text": "You can't escape IAM"}, {"uroven": 3, "text": "Transition from GUI to Automation early"}, {"uroven": 3, "text": "Document your dependencies and assumptions"}, {"uroven": 2, "text": "Next up: Publish-subcribe"}], "markdown": "Gregor's Ramblings\n\n---\n\n# Loan Broker @AWS, Part 2: Recipient List\n\nJuly 20, 2021\n\nFind my posts on IT strategy, enterprise architecture, and digital transformation\n at [ArchitectElevator.com](https://architectelevator.com/blog).\n\n## Loan Broker with Recipient List\n\nPart 2 of this blog series shows the implementation of the [Loan Broker example using AWS Step Functions](/ramblings/loanbroker_stepfunctions.html) with a [Recipient List](/patterns/messaging/RecipientList.html). We built the interaction with the Credit Bureau in [Part 1](/ramblings/loanbroker_stepfunctions.html) already, so here we focus on the interaction with the banks. Using a Recipient List\n means that the Loan Broker retrieves a list of banks to request quotes from before\n making the requests one-by-one. Implemented in Step Functions it looks as follows:\n\nFor this implementation, the enricher fetches the list of banks retrieves the data\n from a DynamoDB item because it's very easy to do so via a Step Functions `GetItem` task. We'll then use a `Map` task to call the banks. Let's go ahead and build this. The code is available in the\n [public EIP repo](https://github.com/spac3lord/eip) under `LoanBroker/AwsStepFunctions/RecipientList`.\n\n## Fetching the Recipient List\n\nFor our test implementation, we simply create a [DynamoDB](https://aws.amazon.com/dynamodb/) table and add the item from the AWS Console UI. Choosing the on-demand billing model\n and turning off all options (hopefully) assures that we don't incur any running cost\n due to provisioned capacity. Reading a single item from DynamoDB, a cloud database\n that delivers single-digit millisecond performance at *any* scale, might remind you of [Marvin the depressed robot](https://en.wikipedia.org/wiki/Marvin_the_Paranoid_Android) who routinely bemoans having to perform trivial tasks despite having a brain the\n size of a planet. So far, DynamoDB hasn't complained and *any* scale does go both directions...\n\nAs a NOSQL key-value store, DynamoDB doesn't require a fixed schema but it does require\n a key, more precisely a unique [primary partition key](https://aws.amazon.com/blogs/database/choosing-the-right-dynamodb-partition-key/). You define this key's name and data type when you create the table the first time.\n Yes, this one is a one-way door :-) Not being overly creative we define a key `Type` for our single row so we could envision defining different sets of banks for different\n types of loans, such as home loans or car loans.\n\nOnce equipped with a key, we can create a single item and enter the ARN's of our banks'\n lambda functions into an attribute list under that item. The AWS Console provides\n a \"tree\" UI , which is useful for the very first element, after which it's easier\n to copy-paste the JSON syntax, which takes some getting used to. If you already know\n about `\"L\"` and `\"S\"`, you can also proceed directly to the console:\n\n```\n$ aws dynamodb list-tables\n{\n \"TableNames\": [\n \"LoanBrokerBanks\"\n ]\n}\n\n$ aws dynamodb put-item --table-name=LoanBrokerBanks \\\n --item='{ \"Type\": { \"S\": \"Home\" }, \"BankAddress\": {\"L\": [ { \"S\": \"BankRecipientPremium\" }, { \"S\": \"BankRecipientUniversal\" }, { \"S\": \"BankRecipientPawnshop\" } ] } }'\n\n$ aws dynamodb get-item --table-name=LoanBrokerBanks --key='{\"Type\": {\"S\": \"Home\"}}'\n{\n \"Item\": {\n \"Type\": {\n \"S\": \"Home\"\n },\n \"BankAddress\": {\n \"L\": [\n { \"S\": \"BankRecipientPremium\" },\n { \"S\": \"BankRecipientUniversal\" },\n { \"S\": \"BankRecipientPawnshop\" }\n ]\n }\n }\n}\n```\n\nNeeding 3 tries to correctly type the `key` parameter was my just punishment for leaving the comfort of the Console UI. The [CLI examples](https://docs.aws.amazon.com/cli/latest/reference/dynamodb/get-item.html) using a key file might give you a hint that your \"{\" key plays a major role in this\n endeavor.\n\nNow we need to make those Lambda ARNs real by deploying the banks.\n\n## I need banks; lots of banks!\n\nWhat would a blog post be without a Matrix reference? Certainly not one of mine! So,\n if we want lots of banks, we better parametrize them. As our banks are just mock-ups,\n we do this simply via environment variables that we can specify on the command line.\n My love for simple solutions might shine through here—Borg also passed instance data\n via the command line and it scaled to houndreds of thousands of machines.\n\nA simple bank that can be invoked from Step Functions can look like this in JavaScript:\n\n```\nfunction calcRate(amount, term, score, history) {\n if (amount <= process.env.MAX_LOAN_AMOUNT && score >= process.env.MIN_CREDIT_SCORE) {\n return parseFloat(process.env.BASE_RATE) + Math.random() * ((1000 - score) / 100.0);\n }\n}\n\nexports.handler = async (event) => {\n const amount = event.Amount;\n const term = event.Term;\n const score = event.Credit.Score;\n const history = event.Credit.History;\n\n const bankId = process.env.BANK_ID;\n\n console.log('Loan Request over %d at credit score %d', amount, score);\n const rate = calcRate(amount, term, score, history);\n if (rate) {\n const response = { \"rate\": rate, \"bankId\": bankId};\n console.log(response);\n return response;\n }\n};\n```\n\nEach bank will vary its behavior by the following parameters:\n\n- `MIN_CREDIT_SCORE` - the customer's minimum credit score required to receive a quote from this bank.\n- `MAX_LOAN_AMOUNT` - the maximum amount the bank is willing to lend to a customer.\n- `BASE_RATE` - the minimum rate the bank might give. The actual rate increases for a lower credit\n score and some randomness.\n- `BANK_ID` - as the loan broker processes multiple responses, knowing which bank supplied the\n quote will be handy.\n\nWe can easily create and test this function from the Console UI. However, because\n we want multiple instances, we better do so from the command line. Such deployments\n require a ZIP file of the lambda function, which you can obtain by exporting the functions\n via the \"Actions\" button in the console UI. You can then upload the file into your\n cloud shell (alternatively just copy the function into a file and use the `zip` command from Cloud Shell). Equipped with the function's ZIP file, you can now instantiate\n multiple bank instances by providing parameters on the command line (the repo contains\n a simple script `makeBanks` that will do this for you after you edit the role to be used):\n\n```\n$ aws lambda create-function --function-name=BankRecipientPawnshop \\\n --runtime=nodejs12.x --handler=RecipientBank.handler --role=arn:aws:iam::1234567890:role/service-role/CreditBureau-role-1gbub1sd \\\n --environment=\"Variables={BANK_ID=PawnShop,BASE_RATE=5,MAX_LOAN_AMOUNT=500000,MIN_CREDIT_SCORE=400}\" \\\n --zip-file=fileb://RecipientBank.zip\n\n$ aws lambda create-function --function-name=BankRecipientUniversal \\\n --runtime=nodejs12.x --handler=RecipientBank.handler --role=arn:aws:iam::1234567890:role/service-role/CreditBureau-role-1gbub1sd \\\n --environment=\"Variables={BANK_ID=Universal,BASE_RATE=4,MAX_LOAN_AMOUNT=700000,MIN_CREDIT_SCORE=500}\" \\\n --zip-file=fileb://RecipientBank.zip\n\n$ aws lambda create-function --function-name=BankRecipientPremium \\\n --runtime=nodejs12.x --handler=RecipientBank.handler --role=arn:aws:iam::1234567890:role/service-role/CreditBureau-role-1gbub1sd \\\n --environment=\"Variables={BANK_ID=Premium,BASE_RATE=3,MAX_LOAN_AMOUNT=900000,MIN_CREDIT_SCORE=600}\" \\\n --zip-file=fileb://RecipientBank.zip\n```\n\nWe cleverly use the same IAM role as the Credit Bureau Lambda function, which saves\n us from having to create a new IAM role. The magic number in the role ARN will be\n your account ID as with all other ARNs. You can get it from Cloud Shell with the following\n command:\n\n```\n$ aws sts get-caller-identity --query Account --output text\n```\n\nTo show off our CLI prowess, we'll use the `query` parameter to show the created functions and their parameters (it took me indeed only\n two tries to get this working):\n\n```\n$ aws lambda list-functions --query=\"Functions[].{Name:FunctionName, Parms:Environment}\"\n\n[\n {\n \"Name\": \"BankRecipientUniversal\",\n \"Parms\": {\n \"Variables\": {\n \"MAX_LOAN_AMOUNT\": \"700000\",\n \"MIN_CREDIT_SCORE\": \"500\",\n \"BANK_ID\": \"Universal\",\n \"BASE_RATE\": \"4\"\n }\n }\n },\n {\n \"Name\": \"BankRecipientPawnshop\",\n \"Parms\": {\n \"Variables\": {\n \"MAX_LOAN_AMOUNT\": \"500000\",\n \"MIN_CREDIT_SCORE\": \"400\",\n \"BANK_ID\": \"PawnShop\",\n \"BASE_RATE\": \"5\"\n }\n }\n },{\n \"Name\": \"BankRecipientPremium\",\n \"Parms\": {\n \"Variables\": {\n \"MAX_LOAN_AMOUNT\": \"900000\",\n \"MIN_CREDIT_SCORE\": \"600\",\n \"BANK_ID\": \"Premium\",\n \"BASE_RATE\": \"3\"\n }\n }\n },\n]\n```\n\nThese Banks are ready to dish out loan quotes (yes, the magic `cli-binary-format` argument is needed unless you want to convert your JSON payload into base64 yourself):\n\n```\n$ aws lambda invoke --function-name=BankRecipientPawnshop \\\n --cli-binary-format raw-in-base64-out \\\n --payload '{ \"Credit\": { \"Score\": 740, \"History\": 28 }, \"Amount\": 500000, \"Term\": 30, \"SSN\": \"123-45-6789\"}' \\\n loanquote.json\n\n$ cat loanquote.json\n{\"rate\":7.442039050089985,\"bankId\":\"PawnShop\"}\n```\n\n## Intermission: Setting Permissions\n\nWe've avoided digging into AWS IAM so far as the console UI generated the required\n roles for us (that's how we got to reuse the `CreditBureau-role` role). However, because we're planning to call Lambda functions dynamically, we'll\n need to explicitly set some additional permissions. To make things easy, we give the\n Step Function workflow (via its Role) permission to call all Lambda functions associated\n with the account. We do so by defining a policy doc. It's a bit long for the command\n line, so create a file `invoke-lambdas` with the following contents (the version has to be set to this specific date):\n\n```\n{\n \"Version\": \"2012-10-17\",\n \"Statement\": [\n {\n \"Effect\": \"Allow\",\n \"Action\": \"lambda:InvokeFunction\",\n \"Resource\": \"arn:aws:lambda:*:1234567890:function:*\"\n }\n ]\n}\n```\n\nLook up the role that your State Machine is associated with in the Console and use\n that on the command line to the policy to that role:\n\n```\n$ aws iam put-role-policy \\\n --role-name=StepFunctions-LoanBroker-role-1234567\\\n --policy-name=CallAllLambdas \\\n --policy-document file://invoke-lambdas\n```\n\nIf we have any doubt, we can check that the policy is in place:\n\n```\n$ aws iam list-role-policies --role-name=StepFunctions-LoanBroker-role-1234567\n\n{\n \"PolicyNames\": [\n \"CallAllLambdas\"\n ]\n}\n```\n\nIt looks much easier once you figured it out. It honestly took me a dozen attempts\n to get this one right (more on IAM further down).\n\n## Finishing the Loan Broker\n\n### Control Flow\n\nWith both our data source and our lambda functions ready, we can build the state machine\n flow. Using the Workflow Studio, setting up the control flow is quite straightforward:\n\n- A `DynamoDB:GetItem` task fetches the list of Lambda function ARN's.\n- A `Map state` loops over the list of bank addresses.\n- A `Lambda:Invoke` task calls the bank and concatenates the results\n\n### Data Flow\n\nThat part was simple enough. Managing the document state turned out to require a lot\n more patience and many more tries. Fetching data from the DynamoDB table isn't too\n difficult. We specify the same JSON fragment that we used for the command line as\n the `API Parameter` (the command line arguments become part of the JSON here just as if you'd be making\n an API call):\n\n```\n{\n \"TableName\": \"LoanBrokerBanks\",\n \"Key\": {\n \"Type\": {\n \"S\": \"Home\"\n }\n }\n}\n```\n\nDynamoDB delivers back quite a bit of data but we want to extract only the Lambda\n function addresses (ARN's) to make it easy to iterate over them. Our output from the\n command line above helps us design the right expression to do this. Note that each\n element in the result set is prefixed by a field name that denotes its type with \"L\"\n indicating a list and \"S\" a string. This makes it a bit tricker to get the expression\n right (I highly recommend an interactive JsonPath editor). The final expression iterates\n over all items in the list (`L[*]`) and retrieves the `\"S\"` element, which contains the function address. This is what we enter into the `ResultSelector` (the magic `.$` appendix indicates that this field is set based on a JsonPath expression).\n\n```\n{\n \"BankAddress.$\": \"$.Item.BankAddress.L[*].S\"\n}\n```\n\nThe result from this expression is a simple list of bank addresses, which we'll have\n to merge into the current document. The `ResultPath` settings tells where (have a look at the data flow diagram in [Part 1](/ramblings/loanbroker_stepfunctions.html). We choose `$.Banks`, giving us the following document state at this point:\n\n```\n\"SSN\": \"123-45-6789\",\n\"Amount\": 500000,\n\"Term\": 30,\n\"Credit\": {\n \"Score\": 890,\n \"History\": 28\n},\n\"Banks\": {\n \"BankAddress\": [\n \"BankRecipientUniversal\",\n \"BankRecipientPawnshop\",\n \"BankRecipientPremium\"\n ]\n}\n```\n\n### Configuring the Map Task\n\nThe Map task iterates over an array, which in our case will be `$.Banks.BankAddress`. Now we need to give the banks the data in the format they expect, which is a dictionary\n of name-value pairs. We will also need the name of the Lambda function to invoke,\n which we can retrieve via a magic incantation. This took a good bit of digging - what's\n confusing here is that the `Map.Item.Value` is listed as an input for the map state but it's actually the input for the task\n that `Map` iterates over . We end up with the following expression for the `Transform array items` setting:\n\n```\n{\n \"function.$\": \"$$.Map.Item.Value\",\n \"SSN.$\": \"$.SSN\",\n \"Amount.$\": \"$.Amount\",\n \"Term.$\": \"$.Term\",\n \"Credit.$\": \"$.Credit\"\n}\n```\n\nWe are mostly copying values to make them available to the Lambda invocation. In hindsight\n I might have collated the data supplied by the customer in a single element to save\n typing. `$$.Map.Item.Value` is the magic incantation for the current value in the array that the Map task iterates\n over, i.e. the bank Lambda ARN in our case.\n\nWe can now use this data to set the payload for the Lambda invocation. We could have\n made things easier by selecting \"use state input as payload\", which would pass the\n lambda ARN along with the other fields. Because the banks likely know their address\n that wouldn't be too big a deal but I nevertheless decided to just filter our the\n relevant fields, resulting in the following payload definition:\n\n```\n{\n \"SSN.$\": \"$.SSN\",\n \"Amount.$\": \"$.Amount\",\n \"Term.$\": \"$.Term\",\n \"Credit.$\": \"$.Credit\"\n}\n```\n\nBoth the Lambda invocation and the Map task contain output processing, which we need\n to configure carefully. Our banks return a `rate` and a `bankId` as we saw from the command line invocation above (or an empty string if it doesn't\n provide a quote for the given parameters). The `Lambda:Invoke` task also returns a bunch of HTTP metadata, which interests us less. We'll merge\n the actual bank result fields with the task input data via the following `ResultSelector` that'll store the results under the current document root node specified by `$` (trying to reference individual elements results in a non-catchable `States.Runtime` error if the bank returns an empty string):\n\n```\n{\n \"Quote.$\": \"$.Payload\"\n}\n```\n\nThe output of one Lambda invocation now looks like this (specifying `$` as the `ResultPath` replaces the existing document; that's OK because we still have the output from the\n Map task):\n\n```\n{\n \"Quote\": {\n \"rate\": 6.571025629484854,\n \"bankId\": \"Universal\"\n }\n}\n```\n\nLast, these individual results have to be aggregated. We'll simply let the Map task\n merge the results. That setting is back under the `Output` processing of the Map task, which we set to `$.Quotes`. Our document state after the completion of the Map task is:\n\n```\n{\n \"SSN\": \"123-45-6789\",\n \"Amount\": 500000,\n \"Term\": 30,\n \"Credit\": { \"Score\": 890, \"History\": 28 },\n \"Banks\": {\n \"BankAddress\": [\n \"BankRecipientUniversal\",\n \"BankRecipientPawnshop\",\n \"BankRecipientPremium\"\n ]\n },\n \"Quotes\": [\n { \"Quote\": { \"Rate\": 4.718271541264695, \"BankID\": \"Universal\" } },\n { \"Quote\": { \"Rate\": 5.146337522656502, \"BankID\": \"PawnShop\" } },\n { \"Quote\": { \"Rate\": 3.9008046685055904, \"BankID\": \"Premium\" } }\n ]\n}\n```\n\nIf you want to clean up the document state to remove the bank addresses, the easiest\n way appears to insert a \"Pass\" task with an expression to transform its input into\n a cleaner result. Just as before it's best to test such expressions in a JsonPath\n tool or the Step Functions \"Data Flow Simulator\" (I'll explain the last expression\n below):\n\n```\n{\n \"SSN.$\": \"$.SSN\",\n \"Amount.$\": \"$.Amount\",\n \"Term.$\": \"$.Term\",\n \"Credit.$\": \"$.Credit\",\n \"Quotes.$\": \"$.Quotes[?(@.Quote)].Quote\"\n}\n```\n\n## Running the Loan Broker\n\nIt's time to run the Loan Broker state machine! We do so from the Cloud Shell (invocation\n is always asynchronous so we need to fetch the results separately):\n\n```\n$ aws stepfunctions start-execution\\\n --name=mynicerun \\\n --state-machine-arn=arn:aws:states:us-east-2:1234567890:stateMachine:LoanBroker-RecipientList\\\n --input=\"{\\\"SSN\\\": \\\"123-45-6789\\\", \\\"Amount\\\": 500000, \\\"Term\\\": 30 }\"\n{\n \"executionArn\": \"arn:aws:states:us-east-2:1234567890:execution:LoanBroker-RecipientList:mynicerun\",\n \"startDate\": \"2021-07-23T17:07:49.134000+00:00\"\n}\n\n$ aws stepfunctions describe-execution \\\n --execution-arn=arn:aws:states:us-east-2:1234567890:execution:LoanBroker-RecipientList:mynicerun \\\n --query=\"output\" | jq -r '. | fromjson'\n\n{\n \"Credit\": { \"Score\": 885, \"History\": 10 },\n \"Amount\": 500000,\n \"Quotes\": [\n { \"Rate\": 5.0826106695797915, \"BankID\": \"Universal\" },\n { \"Rate\": 5.4599342311437, \"BankID\": \"PawnShop\" },\n { \"Rate\": 3.00415534899031, \"BankID\": \"Premium\" }\n ],\n \"Term\": 30,\n \"SSN\": \"123-45-6789\"\n }\n```\n\nTaadaa! If you want to test a scenario where not all banks return a quote, you can\n run the state machine again with a higher loan amount that the PawnShow won't process:\n\n```\n$ aws stepfunctions start-execution\\\n --name=mysecondrun \\\n --state-machine-arn=arn:aws:states:us-east-2:1234567890:stateMachine:LoanBroker-RecipientList\\\n --input=\"{\\\"SSN\\\": \\\"123-45-6789\\\", \\\"Amount\\\": 600000, \\\"Term\\\": 30 }\"\n{\n \"executionArn\": \"arn:aws:states:us-east-2:1234567890:execution:LoanBroker-RecipientList:mysecondrun\",\n \"startDate\": \"2021-07-23T17:07:49.134000+00:00\"\n}\n\n$ aws stepfunctions describe-execution \\\n --execution-arn=arn:aws:states:us-east-2:1234567890:execution:LoanBroker-RecipientList:mysecondrun \\\n --query=\"output\" | jq -r '. | fromjson'\n\n{\n \"Credit\": { \"Score\": 693, \"History\": 24 },\n \"Amount\": 600000,\n \"Quotes\": [\n { \"rate\": 5.271301238502866, \"bankId\": \"Universal\" },\n { \"rate\": 3.8970175730277457, \"bankId\": \"Premium\" }\n ],\n \"Term\": 30,\n \"SSN\": \"123-45-6789\"\n }\n```\n\nGetting this output took a bit of extra tinkering because a bank not issuing a quote\n results in `\"Payload\": null` for the task's output, which the `Map` task dutifully appends to the `Quotes` list as follows:\n\n```\n \"Quotes\": [\n { \"Quote\": { \"Rate\": 4.718271541264695, \"BankID\": \"Universal\" } },\n { \"Quote\" : null },\n { \"Quote\": { \"Rate\": 3.9008046685055904, \"BankID\": \"Premium\" } }\n ]\n```\n\nTo eliminate the empty response in the final output we use the following filter expression\n in the final task: `\"Quotes.$\": \"$.Quotes[?(@.Quote)].Quote\"`. The `?()` operator evaluates the expression in parentheses, in our case the non-null existence\n of a sub-node named `Quote`, and only returns array elements where the expression is true. This gives us the\n cleaned-up list of quotes above.\n\nOddly, the same approach didn't work in the bank invocation's ResultSelector, perhaps\n because the subscript operator with filter expression only works on JSON arrays and\n not on objects (a quick check on [jsonpath.herokuapp.com](http://jsonpath.herokuapp.com/) hinted that the Jayway evaluator accepts `[?()]` on objects whereas the Goessner implementation does not). The joys of \"low code\"...\n :-)\n\n## Catching a Breath: Some Reflections.\n\nPhew! Our state machine is working. We could surely add some bells and whistles like\n selecting the best quote from the list and returning it to the customer. You can invoke\n a Step Functions state machine from the API Gateway, although only asynchronously\n (via POST and GET results). Although I am naturally a fan of asynchronous interactions,\n I would have thought that for service orchestrations (which likely use express workflows)\n across synchronous APIs, a synchronous invocation would make a convenient choice.\n It'd allow you to make a orchestration look the same as any other lambda service,\n which would be neat. So, for the time being, our Loan Broker remains headless :-)\n\nLooking at the final solution, it's actually quite simple: we ended up with two Lambda\n functions of a dozen lines each and a state machine with 5 states. The amazing part\n is that we didn't need any deployment or runtime infrastructure whatsoever, not even\n an IDE or a terminal shell!\n\nStill, especially for me as a first-time user, building the solution took a fair amount\n of experimenting, fudging, and occasional face palming. I surely looks a lot easier\n in the demos. Here some of my initial thoughts:\n\n### It's a low-code, high-complexity, polyglot world\n\nThe world of declarative low-code tools almost invariably relies on other languages\n to fill in the blanks. I can't throw too many rocks because I did exactly the same\n in my [Messaging toolkit](https://www.enterpriseintegrationpatterns.com/ramblings/16_patternscomponents.html) (back then we didn't have the \"low code\" slogan). So, to be productive with modern\n low-code tools, you need to be familiar with JSON, YAML, [JsonPath](https://github.com/json-path/JsonPath), [JMESPath](https://jmespath.org/) queries, CLI syntax, [HCL](https://www.terraform.io/docs/configuration-0-11/syntax.html) and a few others. The amount of code you'll write will indeed be much less but the\n complexity didn't necessarily decrease: Step Function workflows and IAM roles are\n highly complex constructs that you need to understand regardless.\n\n### Abstractions are hard\n\nJust because something is molded into JSON syntax doesn't mean the cognitive load\n goes away. OK, people might know where to put the curly brace and the comma (and innumerable\n double quotes), but that's about it. My little demo has JSON for state machine definitions\n and executions, document payload, filter and transformation expressions, Lambda function\n invocations, HTTP metadata, IAM policies, and I am sure I forgot a few.\n\nProviding things as JSON alone doesn't achieve a meaningful abstraction. Actually,\n it often detaches the code from the execution environment by asking us to provide\n three magic settings that are wired together by a complex machine, which isn't visible\n from the settings at all. In this context I really like Nial Daly's conclusion (see\n [his blog](https://www.nialdaly.com/writing/the-best-kind-of-code)):\n\n> The best kind of code is the code you don’t have to write but that you actually understand.\n> --Nial Daly\n\nGood abstractions are those that are \"even\", meaning they allow you to reason about\n the system behavior despite hiding details. They don't have [stuff from the underground popping up](https://architectelevator.com/architecture/failure-doesnt-respect-abstraction/) all of a sudden.\n\n### Data flow is harder than control flow\n\nBuilding the Step Function control flow was quite simple, especially with the new\n Workflow Studio. However, managing the document state, hidden behind `input` and `output` settings, took 80% of the effort. Perhaps I am too old for dynamic, no-schema, Json\n everything, but the only way I could get it to work is by running the flow part-way,\n capturing the current document state, building the expression in a JsonPath tool,\n and pasting it into the configuration. Also, throwing a `States.Runtime` error for a missing field in a service response seems pretty harsh. The best option\n I found was to always return a parent element, even if nothing is inside, and to just\n reference that element.\n\nI am well aware of the limitations of drag-and-drop transformation tools (spiderweb!),\n but I think the current tooling could provide better support than a text field. I'll\n have a chat with the product team—I know where they work :-)\n\n### You can't escape IAM\n\nIf you meet a cloud developer who hasn't complained about IAM, Identity and Access\n Management, they likely haven't done any real work or they live in a world of stars,\n meaning they grant broad access to everything. IAM is a parallel universe to your\n system architecture—it defines dependencies between components by means of access\n control. AWS IAM defines accounts, users, roles, policies, principals, and a few more\n concepts, so you have to have at least a basic understanding to not run into frustrating\n \"permission denied\" error messages. The console helps by auto-defining policies. Alas,\n it can also leave you with scattered and poorly name roles.\n\nWhen trying to allow the Step Functions state machine to invoke Lambda functions,\n I first attempted to grant state machines the right to invoke the function via `aws lambda add-permission`. That seemed logical enough and worked for SNS subscriptions but not for Step Functions.\n In the end I solved it by adding the ability to invoke Lambda functions to the role\n used by the Step Function via `aws iam put-role-policy`. However, I got to this only after reverse-engineering via CloudTrails what function\n the Console GUI invokes. I don't have a clear idea why I need to use one over the\n other, or perhaps both are needed? I surely should invest more time but tbh, the diagram\n on the [How IAM Works](https://docs.aws.amazon.com/IAM/latest/UserGuide/intro-structure.html) page didn't exactly encourage me.\n\n### Transition from GUI to Automation early\n\nWhen you're tinkering to get things working, especially IAM setups, you are bound\n to end up in a state that you can't recreate. Perhaps one of your failed attempts\n didn't do what you intended but enabled a policy that was needed for a subsequent\n command to succeed. You'll never know until you rebuild an environment from scratch.\n So, as appealing as the Console UI is, make sure you capture your steps in an executable\n format. Doing it via CLI as I did is admittedly the poorest form but still eons better\n than clicking around in the UI (I simply had no brain cells left to also learn CloudFormation\n / Terraform / CDK).\n\nSo, my old rule is as relevant as ever:\n\n> Never perform any operational settings in a UI. UIs are meant for dashboards and visualizations,\n> not for \"clicking around until it works\".\n\n### Document your dependencies and assumptions\n\nCloud solutions are by definition distributed systems, which implies that how things\n are wired together is as important as what's inside the pieces. The catch is that\n the latter is much more easily seen than the former. So document your system structure\n and your assumptions independently from your solution code, either by hand or, better\n yet, programmatically with a tool like [Structurizr](https://structurizr.com/). It wouldn't be too hard to auto-generate a Structurizr DSL like the following, which\n is sufficient to render a basic call graph (try it out at the [Structurizr Demo Page](https://structurizr.com/dsl); this might be a great topic for a follow-on post):\n\n```\nworkspace {\n\n model {\n loanBroker = softwareSystem \"Loan Broker Demo\" {\n all = container \"Components\" {\n stateMachine = component \"Step Functions\"\n premiumBank = component BankRecipientPremium\"\n universalBank = component \"BankRecipientUniversal\"\n pawnShop = component \"BankRecipientPawnshop\"\n\n stateMachine -> premiumBank \"Get Quote\"\n stateMachine -> universalBank \"Get Quote\"\n stateMachine -> pawnShop \"Get Quote\"\n }\n }\n }\n\n views {\n component all {\n include *\n autolayout\n }\n\n theme default\n }\n}\n```\n\n## Next up: Publish-subcribe\n\nNow that we have a good handle on Step Functions, let's crank it up a notch and implement\n the [Scatter-Gather](/patterns/messaging/BroadcastAggregate.html) via a [Publish-Subscribe Channel](/patterns/messaging/PublishSubscribeChannel.html). I'll show how to [in the next post](/ramblings/loanbroker_stepfunctions_pubsub.html).\n\n*Share:*\n\n*Follow:* [Follow @ghohpe](https://twitter.com/ghohpe) [SUBSCRIBE TO FEED](../ramblings.rss)\n\n*More On:* [INTEGRATION](/ramblings_integration.html) [CLOUD](/ramblings_cloud.html) [ALL RAMBLINGS](../ramblings.html)\n\nGregor is a cloud architect and author. He is a frequent speaker on asynchronous messaging,\n IT strategy, and cloud.", "znaku_textu": 27776, "slov": 4115, "odkazu": 63, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/ramblings/loanbroker_stepfunctions_recipient_list.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 06:53:31", "sha256": "c5adbf75573a7b4d8c3762b723188378536726b14d2085e783da5dd06817d325", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://architectelevator.com/blog", "https://github.com/spac3lord/eip", "https://aws.amazon.com/dynamodb/", "https://en.wikipedia.org/wiki/Marvin_the_Paranoid_Android", "https://aws.amazon.com/blogs/database/choosing-the-right-dynamodb-partition-key/", "https://docs.aws.amazon.com/cli/latest/reference/dynamodb/get-item.html", "http://jsonpath.herokuapp.com/", "https://github.com/json-path/JsonPath", "https://jmespath.org/", "https://www.terraform.io/docs/configuration-0-11/syntax.html", "https://www.nialdaly.com/writing/the-best-kind-of-code", "https://architectelevator.com/architecture/failure-doesnt-respect-abstraction/", "https://docs.aws.amazon.com/IAM/latest/UserGuide/intro-structure.html", "https://structurizr.com/", "https://structurizr.com/dsl", "https://twitter.com/share", "https://twitter.com/ghohpe", "https://leanpub.com/37things"]} {"url": "https://www.enterpriseintegrationpatterns.com/ramblings/queues_control_flow.html", "titulek": "Control Flow—The Other Half of Integration Patterns - Enterprise Integration Patterns", "h1": "Control Flow—The Other Half of Integration Patterns", "popis": "When describing messaging systems, it's natural to focus on data flow", "klicova_slova": "", "kanonicka": "", "jazyk": "en_US", "robots_meta": "", "og": {"og:type": "article", "og:locale": "en_US", "og:site_name": "Enterprise Integration Patterns", "og:title": "Control Flow—The Other Half of Integration Patterns", "og:description": "When describing messaging systems, it's natural to focus on data flow", "og:url": "https://www.enterpriseintegrationpatterns.com/ramblings/queues_control_flow.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/ControlFlow_queue_cardimage.png"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Control Flow—The Other Half of Integration Patterns"}, {"uroven": 2, "text": "Data Flow is only half the story"}, {"uroven": 2, "text": "Once Again: Drawing the Line"}, {"uroven": 2, "text": "Control Flow: Push and Pull"}, {"uroven": 2, "text": "Affordances"}, {"uroven": 2, "text": "Pushing and Pulling in the Cloud"}, {"uroven": 2, "text": "Queues Are Hidden in Plain Sight"}, {"uroven": 2, "text": "Drivers in the wild"}, {"uroven": 2, "text": "Simple Pictures Deepen Our Understanding"}], "markdown": "Gregor's Ramblings\n\n---\n\n# Control Flow—The Other Half of Integration Patterns\n\nJuly 30, 2024\n\nFind my posts on IT strategy, enterprise architecture, and digital transformation\n at [ArchitectElevator.com](https://architectelevator.com/blog).\n\nIt's hard to imagine an asynchronous system without queues aka [Message Channels](/patterns/messaging/MessageChannel.html). Queues are the core element that provides [location and temporal decoupling](/ramblings/coupling_facets.html) between sender and receiver. But there is quite a bit more behind the little barrel\n icons: control flow, traffic shaping, back pressure, and [dead letters](/patterns/messaging/DeadLetterChannel.html).\n\n## Data Flow is only half the story\n\nWhen Bobby and I wrote *Enterprise Integration Patterns*, we naturally spent most of the time on the *data flow* of messaging systems: how messages are generated, transformed, and routed. Some patterns,\n especially [Endpoint Patterns](/patterns/messaging/MessagingEndpointsIntro.html) such as [Polling Consumer](/patterns/messaging/PollingConsumer.html) or [Event-Driven Consumer](/patterns/messaging/EventDrivenConsumer.html) clearly have a ring of control flow to it, but we never actually mention the term\n in the entire book (funnily there is one occurrence in [Recipient List](/patterns/messaging/RecipientList.html), but it's actually a verb and object: \"In order for the Recipient List to control\n flow of information\"). The term gets a few mentions in the blog, although [we conclude](/ramblings/74_messaging.html) that \"Message-oriented API's steer towards a data flow architecture\". So, it's time\n to make control flow a first-class citizen.\n\nLike so many terms, *Control Flow* is also an overloaded term. In most imperative programming languages, control flow\n relates to branching and loop statements. That control flow also exists in distributed\n systems, where multiple entities execute local control flows. For example, a recipient\n may be in a loop waiting for data whereas a sender may send a message whenever a user\n clicks a button. Those control flows assume linearity, meaning one thing happens after\n another: an `if` statement determines which branch will be executed, but it's only one or the other\n (let's ignore [speculative execution](https://en.wikipedia.org/wiki/Speculative_execution) at the CPU level).\n\nWhen designing asynchronous systems, we are interested in how these local control\n flows relate to each other. For example, when the user pushes a button and the sender\n sends a message, where does that message stay until the receiver's loop gets around\n to asking for a message? So, we are looking at the coordination across these local\n entities that determines the flow of messages:\n\n> In distributed systems, control flow indicates which element actively drives the interaction,\n> for example by sending a message or calling a function.\n\n[Claude](https://claude.ai/) describes the differences between data flow and control flow as the \"the what vs.\n the how\": data describes what is being exchanged (and perhaps transformed along the\n way) whereas control describes how it gets there. A [paper by old friend Schahram Dustdar](https://dsg.tuwien.ac.at/team/sd/papers/Zeitschriftenartikel_2021_SD_Control.pdf) makes the case for emphasizing data flow, ending up with a visual notation where\n \"control flow decisions are encapsulated within the brick implementations\", similar\n to *Enterprise Integration Patterns* (I forgive Schahram for not citing our book as he already cites Cesare, Olaf, Marlon,\n and James Lewis).\n\n> Control flow defines operational characteristics of a distributed system like scalability,\n> robustness, or latency.\n\nAlthough making the control flow implicit (as the above paper suggests) provides clean\n modeling and evocative diagrams, the run-time characteristics of such systems like\n scalability, robustness, or latency very much depend on control flow. So, when we\n build serverless IoT systems, for example, it behooves architects to make control\n flow a first-class consideration.\n\n## Once Again: Drawing the Line\n\nI often introduce distributed system ideas by starting with \"2 boxes and a line\".\n What starts so simple, turns out to be quite a bit more interesting once we zoom into\n the details. That casually drawn line could mean multiple things. Most diagrams show\n the flow of data from sender to receiver (almost all EIP diagrams do this without\n explicitly stating it). But the line could also indicate control flow, for example\n an RPC call. The following diagram illustrates common combinations of data and control\n flow:\n\nThings get interesting with polling: the control flow is from right to left as the\n receiver actively calls the sender to fetch data.\n\n> Data and control flow may well point in opposite directions. When drawing an arrow,\n> you should specify which flow it indicates.\n\nThe picture above is actually somewhat simplified for Messaging, as it doesn't account\n for [Polling Consumers](/patterns/messaging/PollingConsumer.html) or [Event-Driven Consumers](/patterns/messaging/EventDrivenConsumer.html). Once you place a queue in between sender and received (as most messaging systems\n do), the control flow becomes yet more interesting:\n\nThe sender can push messages at its preferred rate into the queue, meaning the control\n flow runs from the sender to the queue. Likewise, most queues support (or require)\n [Polling Consumers](/patterns/messaging/PollingConsumer.html), meaning the receiver's control flow points from right to left. Thus, we can express\n the magical property of queues by means of control flow:\n\n> A queue inverts control flow.\n\n## Control Flow: Push and Pull\n\nThe absence of control flow from *Enterprise Integration Patterns* didn't escape some very smart people. Back in 2015 I wrote a blog post titled [Sync or Swim](/ramblings/80_syncorswim.html), which was inspired by the work from old Google colleague, Ivan Gewirtz. Ivan worked\n in media processing, meaning high volume data processing pipelines. As compute capacities\n back then weren't what they are today, throughput and efficiency were important considerations.\n That's why his designs had to consider control flow along with data flow. Being a\n fan of the integration pattern icons, he realized that they don't express this aspect\n of system design:\n\n> Enterprise Integration Patterns\n> \n> only shows one half of distributed system design: the data flow.\n\nFortunately, it's relatively easy to extend the pattern icons to also show control\n flow by adjusting their shape. If each interaction can be actively pushing or polling\n data, or passively waiting to be called, we end up with four variations.\n\n- An element can actively push data to a recipient, meaning data and control flow align.\n We call this element a *Sender* .\n- An element can passively receive data, e.g. from a *Sender* . We call this element a *Sink* .\n- An element can passively provide data, meaning other elements can fetch data from\n it. We call this a *Source.*\n- A *Fetcher* actively requests (fetches) data from a *Source* . Data and control flow face in opposite directions in this scenario.\n\nAlthough pushing and pulling are complementary to each other, they aren't the only\n control flow styles. Many cloud tools also support batch operations, adding cardinality\n in the mix (you could push or pull single elements or batches). Google Cloud additionally\n defines an [Export Subscription](https://cloud.google.com/pubsub/docs/subscriber) for Pub/Sub in addition to push and pull. We'll come to these special cases later.\n\nWe can now combine the little noses and notches into four common combinations for\n elements in a [Pipes and Filters](/patterns/messaging/PipesAndFilters.html) architecture:\n\n- A *Puller* consumes messages actively, as indicated by the little nose pointing left. It \"pulls\"\n messages whenever it is ready to do so. However, it doesn't publish messages that\n it processed until a subsequent message consumer requests a message. The control flow\n runs from right to left, as indicated by the noses: when a subsequent element requests\n an element, the Puller in turn fetches a new source message. This makes a *Puller* synchronous in the sense that message requests that it receives and sends are time-correlated.\n- A *Pusher* receives messages from an active sender and pushes messages that it processed to\n the next element. The *Pusher* is also synchronous in a sense that each message sent coincides with a message received.\n Control flow (the direction of the noses) matches data flow: from left to right.\n- As we saw, a *Queue* connects two active elements, one that sends messages to the queue and another one\n that fetches them from the queue. Our notation makes this role as a control-flow inverter\n rather obvious. It is also apparent that a *Queue* behaves asynchronously: the arrival and departure rate are independent. That's why\n we often equate asynchronous messaging with the use of queues.\n- A *Driver* is active on both ends, meaning it actively fetches messages and actively sends them\n to the recipient. Like a queue, it also inverts control flow (the noses are pointing\n in both directions), but unlike the queue it has full control over the cadence of\n message fetching and sending. A Driver is therefore helpful as a rate limiter, which\n we will discuss in more detail later.\n\nThe element's role also determines what parameters a user has to specify to define\n the element's behavior. *Pushers* and *Pullers* typically don't take parameters related to control flow as they follow the control\n flow of the related *Sender* or *Fetcher*. *Queues* are passive, so they also don't take control flow parameters (they do take parameters\n related to flow control, such as retry counts or Time-to-Live / TTL; more on that\n in a subsequent post). A *Driver* is active, so it's usually configured via a polling interval (the maximum time between\n two subsequent message fetches) or batch sizes if batching is supported, as is the\n case in most high-throughput systems. Batching allows one fetch operation to retrieve\n multiple messages to reduce the polling overhead. However, large batches may exceed\n maximum payload sizes and cause inefficient error handling (if processing one message\n of the batch fails, either the entire batch or a subset have to be returned for retry).\n As we will soon see, the presence of such parameters often gives a hint at how cloud\n services are constructed.\n\n## Affordances\n\nThe visual language of the little nooks and noses provides an [affordance](https://en.wikipedia.org/wiki/The_Design_of_Everyday_Things#Contents), an element that tells you how you can interact with an object. A toggle button on\n a light switch is an affordance, and much of Dan Norman's brilliant [The Design Of Everyday Things](http://www.amazon.com/exec/obidos/ASIN/0465050654/enterpriseint-20) discusses how poor affordances make us feel dumb, e.g. a door with a handle that\n screams \"pull\" combined with a small sign saying \"push\".\n\nThe *Push* and *Pull* affordances help us understand the control flow in asynchronous systems in an almost\n playful manner. If you want to connect a *Sender* to a *Fetcher*, you are faced with two noses pointing at each other. The only matching element to\n connect them is a *Queue*. Once connected, you can insert an arbitrary number of *Pushers* left of the *Queue* and *Pullers* to the right of it.\n\nLikewise, it's easy to see that you need a *Driver* to connect a *Source* with a *Sink*. And once again, you can insert *Pushers* and *Pullers* al gusto.\n\nUsing the icons, finding the matching component and having a suitable name for it\n becomes so simple that we might feel it's not even worth discussing. In fact, that's\n exactly the point: finally, distributed system design feels as easy as assembling\n Lego bricks. Unsurprisingly, most cloud services include these concepts, but often\n without making them explicit.\n\n## Pushing and Pulling in the Cloud\n\nServerless integration services offered by cloud providers have to be scalable and\n robust, so it comes as no surprise that they are particular about push vs. pull control\n flow and batching of requests. Let's have a look at popular messaging services across\n the three major cloud providers.\n\nGoogle Cloud leads the pack for supporting and clearly documenting [Push and Pull subscriptions](https://cloud.google.com/pubsub/docs/subscriber) for their Pub/Sub service. And for each kind of access, they document how [flow control](ramblings/queues_flow_control.html) is implemented:\n\nGCP's Export subscriptions deliver data directly to another service like BigQuery\n or block storage, where the user does not have to specify a push or pull model.\n\nAzure Event Grid also supports [push](https://learn.microsoft.com/en-us/azure/event-grid/namespace-delivery-retry) and [pull](https://learn.microsoft.com/en-us/azure/event-grid/pull-delivery-overview) delivery.\n\nAWS is less explicit about push or pull, implying the model based on type of service\n as opposed to giving you a choice. SQS (queue) uses a pull model as we would expect\n whereas SNS (Pub-Sub) uses a push model. EventBridge Buses also use a push model whereas\n EventBridge Pipes pulls messages and pushes them, acting as a *Driver*.\n\n## Queues Are Hidden in Plain Sight\n\nCloud services that support push subscriptions aren't a direct pass through. Instead,\n the services buffer events (usually after filtering) before passing them to downstream\n services via active *Drivers*. The drivers work in parallel, arranged in worker pools, to achieve sufficient throughput\n (diagram on the left):\n\nThe parallel processing explains why these services don't maintain delivery order.\n All major providers make a disclaimer similar to Azure:\n\n> Event Grid doesn't guarantee order for event delivery, so subscribers may receive\n> them out of order.\n\nSo, even services that look like a *Pusher* from the outside (because you feed messages in, and they in turn push messages out),\n have queues inside. Most documents don't state this explicitly, but once you read\n the documents (and have a good language to describe control flow), it becomes apparent.\n\nThese queues bring much needed stability, but also increase latency. Amazon EventBridge\n (which I happen to be most familiar with) reduced latency in 2023, but [P90 latencies still hover around 250ms](https://lucvandonkersgoed.com/2022/09/06/serverless-messaging-latency-compared/) according to one heavy user. The [docs even state \"about half a second\"](https://aws.amazon.com/eventbridge/faqs/#Limits_and_performance), which may render the service not a great fit for latency-sensitive operations. Also\n in 2023, [Azure published (experimental) stats for Event Grid](https://techcommunity.microsoft.com/t5/messaging-on-azure-blog/azure-event-grid-s-pull-delivery-performance/ba-p/4003820) (which focus more on high throughput than latency) that results in an *average* latency of 11ms in *Pull* mode. It would be interesting to see P90/P95 values, as the graphs show some pronounced\n spikes. Overall, the service design is in line with the fundamentals of asynchronous\n system design:\n\n> Many serverless event routers optimize for high throughput and operational stability,\n> not low latency.\n\nAsynchronous, message-oriented services perform well under heavy load (more on that\n in a subsequent post) at the expense of latency. For a cloud provider, it's easy to\n see that the former trumps the latter as a design goal.\n\nIf you're looking to reduce latency, pull delivery can be the better option. Although\n polling is generally inefficient, both Azure and AWS users reported that pull delivery\n can yield lower latency than push, largely because the recipient controls the polling\n rate and batch size. The low latency may come at the expense of higher overhead (and\n perhaps hitting quota limits) when you use smaller batch sizes for polling, so it's\n worthwhile considering whether your application can live with the higher latency.\n\n## Drivers in the wild\n\nSome serverless event services get away without queues because they act as a *Driver*, meaning they have control over the rate at which they fetch messages. [Amazon EventBridge Pipes](https://docs.aws.amazon.com/eventbridge/latest/userguide/pipes-concepts.html) fetches data from sources such as SQS queues or DynamoDB streams (as expected, the\n diagram on that page shows data flow, not control flow). If you look carefully at\n the [supported sources](https://docs.aws.amazon.com/eventbridge/latest/userguide/eb-pipes-event-source.html) (and you've read the AWS documentation carefully), you'll notice that all sources\n are *Sources* in our language, meaning they need an active *Fetcher* to retrieve data. This explains, why EventBridge Pipes cannot process events from\n SNS or S3 because they are active *Senders*. Two noses don't connect, however, you could connect them by inserting a Queue, as\n we saw above.\n\nEventBridge Pipes having its own driver gives it some advantages. For one, it doesn't\n require a queue. Queues tend to be expensive and require flow control, as we will\n see in a future post. When Pipes sends message to a rate-limited target, it can simply\n slow down the fetch rate of its driver without having to buffer messages. The last\n advantage is likely the most desirable, in-order delivery:\n\n> If a source enforces order to the events sent to pipes, that order is maintained\n> throughout the entire process to the target.\n\nWe quickly notice that the language could be more precise: The events aren't really\n *sent*, Pipes *fetches* them. Also, they don't need to be events but can be any form of message. Still, the\n result is laudable. As we saw, most event routers based on a queue and competing consumers\n do nor preserve order. Understanding the internal architecture of such services makes\n the design trade-offs apparent and easier to follow.\n\n## Simple Pictures Deepen Our Understanding\n\nAssembling the icons with little noses and notches may seem playful, but also trivial\n in a way. I remember quite some time ago when I shared my messaging toolkit with a\n customer who for a course in integration patterns. When they looked at the icons and\n the simple domain language, their feedback was that this is beneath their audience.\n They somehow wanted things to feel more complicated.\n\nThe role of the pattern icons (for data flow and control flow) is to take the noise\n out and let you focus on the critical design decisions for your asynchronous systems.\n Once you do that, aspects like rate limiting or out-of-order delivery become apparent\n and no longer require you to read reams of documentation. That's the power of simple\n models:\n\n> If your decision seems trivial, you are using the right model.\n\n*Share:*\n\n*Follow:* [Follow @ghohpe](https://twitter.com/ghohpe) [SUBSCRIBE TO FEED](../ramblings.rss)\n\n*More On:* [INTEGRATION](/ramblings_integration.html) [CLOUD](/ramblings_cloud.html) [MESSAGING](/ramblings_messaging.html) [ALL RAMBLINGS](../ramblings.html)\n\nGregor is a cloud architect and author. He is a frequent speaker on asynchronous messaging,\n IT strategy, and cloud.", "znaku_textu": 18994, "slov": 2840, "odkazu": 67, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/ramblings/queues_control_flow.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 06:01:28", "sha256": "c4daac428a13ad2cf225f71266f7334f977ddf6a086c4f05cdc1ef44bcf8d6a6", "hloubka": 1, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://architectelevator.com/blog", "https://en.wikipedia.org/wiki/Speculative_execution", "https://claude.ai/", "https://dsg.tuwien.ac.at/team/sd/papers/Zeitschriftenartikel_2021_SD_Control.pdf", "https://cloud.google.com/pubsub/docs/subscriber", "https://en.wikipedia.org/wiki/The_Design_of_Everyday_Things", "http://www.amazon.com/exec/obidos/ASIN/0465050654/enterpriseint-20", "https://learn.microsoft.com/en-us/azure/event-grid/namespace-delivery-retry", "https://learn.microsoft.com/en-us/azure/event-grid/pull-delivery-overview", "https://lucvandonkersgoed.com/2022/09/06/serverless-messaging-latency-compared/", "https://aws.amazon.com/eventbridge/faqs/", "https://techcommunity.microsoft.com/t5/messaging-on-azure-blog/azure-event-grid-s-pull-delivery-performance/ba-p/4003820", "https://docs.aws.amazon.com/eventbridge/latest/userguide/pipes-concepts.html", "https://docs.aws.amazon.com/eventbridge/latest/userguide/eb-pipes-event-source.html", "https://twitter.com/share", "https://twitter.com/ghohpe", "https://leanpub.com/37things"]} {"url": "https://www.enterpriseintegrationpatterns.com/ramblings/queues_flow_control.html", "titulek": "Queues invert control flow but require flow control - Enterprise Integration Patterns", "h1": "Queues invert control flow but require flow control", "popis": "Queues are key elements of any asynchronous system because they can invert control flow", "klicova_slova": "", "kanonicka": "", "jazyk": "en_US", "robots_meta": "", "og": {"og:type": "article", "og:locale": "en_US", "og:site_name": "Enterprise Integration Patterns", "og:title": "Queues invert control flow but require flow control", "og:description": "Queues are key elements of any asynchronous system because they can invert control flow", "og:url": "https://www.enterpriseintegrationpatterns.com/ramblings/queues_flow_control.html", "og:image": "https://www.enterpriseintegrationpatterns.com/img/ControlFlow_flowcontrol.png"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Queues invert control flow but require flow control"}, {"uroven": 2, "text": "Traffic Shaping"}, {"uroven": 2, "text": "Something's gotta give"}, {"uroven": 2, "text": "Flow Control"}, {"uroven": 2, "text": "Rate Limiting: Proactive Traffic Shaping"}, {"uroven": 2, "text": "Queues require flow control"}, {"uroven": 2, "text": "Related posts"}], "markdown": "Gregor's Ramblings\n\n---\n\n# Queues invert control flow but require flow control\n\nJuly 27, 2024\n\nFind my posts on IT strategy, enterprise architecture, and digital transformation\n at [ArchitectElevator.com](https://architectelevator.com/blog).\n\nQueues are key elements of any asynchronous system because they can [invert control flow](/ramblings/queues_control_flow.html). Because they can re-shape traffic, they enable us to build high-throughput systems\n that behave gracefully under heavy load. But all that magic doesn't come for free:\n to function well, queues require flow control. Time for another look at the venerable\n message queue.\n\n## Traffic Shaping\n\nAfter developing [a notation and vocabulary to express control flow](/ramblings/queues_control_flow.html), we can describe queues from a new dimension: time. We mentioned arrival and departure\n rates in the previous post: rates represent the first derivative of a variable over\n time. Hence, a message arrival rate describes how many messages arrive in a specified\n interval, e.g., per second. That arrival rate, in turn, varies over time and helps\n describe the dynamic behavior of any system. For example, peaks in the arrival rate\n are the typical cause of system overload. Also, the rate at which the arrival rate\n increases (the second derivative) defines how quickly a system has to scale up to\n respond to sudden load spikes (to underline its relevance, [AWS Lambda just improved that metric by up to 12x](https://aws.amazon.com/about-aws/whats-new/2023/12/aws-lambda-functions-scale-up/)).\n\nPlotting arrival rates over time provides a great way to depict the power of queues.\n Queues can flatten that message rate curve, also known as [Traffic Shaping](https://en.wikipedia.org/wiki/Traffic_shaping) in networking circles:\n\nWe see an uneven arrival rate of messages on the left, which turns into a nice and\n steady processing rate at the right. Naturally, when the arrival drops below the processing\n rate, the queue shrinks and once it is empty, the processing rate tracks the arrival\n rate as long as the latter is lower than the former. If the arrival exceeds the processing\n rate, the queue springs back into action. Many real-life queues allow receivers to\n process messages in batches instead of one-by-one, but we'll park that aspect for\n later.\n\nThe great advantage of traffic shaping is that it's much easier to build and tune\n a system that handles the traffic pattern on the right than one that handles the traffic\n on the left. Specifically, systems that queue requests and process them using a [worker pool](/patterns/messaging/CompetingConsumers.html) behave more gracefully under heavy load: response times will increase, but the system\n is less likely to collapse under its own weight thanks to constant processing rates.\n In contrast, synchronous systems can get so busy accepting new requests that they\n no longer have resources available to process existing requests. The sad result is\n that as load increases beyond a certain threshold, system throughput actually decreases,\n as shown in the diagram. It's easy to see that this isn't a good thing.\n\nThat's why queues are widely revered as a \"buffer\" to protect a system from the noisy\n and spiky world of flash sales, marketing campaigns, or denial of service attacks.\n Jamming messages into a queue at a high arrival rate is unlikely to overload the system.\n Meanwhile, the workers are chugging along at the optimal processing rate.\n\n## Something's gotta give\n\nNow, as architects we know that there are no miracles in system architecture, and\n the same is true for queues. As any element, a queue has finite capacity. Usually\n that capacity is high in comparison to processing capacity (like worker nodes) because\n storing messages is cheaper than running threads. Nevertheless, it is finite. Interestingly,\n both [Amazon SQS](https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/quotas-queues.html) and [GCP Pub/Sub](https://cloud.google.com/pubsub/quotas) state that there is no limit on the number of messages. \"Unlimited\" is a word that\n providers rarely use, but if we read carefully, \"unlimited\" just means that no explicit\n limit is set, so it doesn't equate to \"infinite\". We get a hint of that nuance when\n reading up on [Lambda function limits](https://docs.aws.amazon.com/lambda/latest/dg/gettingstarted-limits.html):\n\n> Each instance of your execution environment can serve an unlimited number of requests.\n> In other words, the total invocation limit is based only on concurrency available\n> to your function.\n\nSimilarly, GCP's Pub/Sub doesn't limit the number of messages that are retained, but\n it does limit the duration:\n\n> By default, a Subscription unacknowledged messages in persistent storage for 7 days\n> from the time of publication. There is no limit on the number of retained messages.\n\nEven in the absence of a hard limit, letting a queue grow arbitrarily may not be a\n good idea. [Little's Result](https://en.wikipedia.org/wiki/Little%27s_law), one of the fundamental equations of queuing theory, reminds us that the average\n wait time equals the number of customers in the system divided by the arrival rate.\n So, wait times goes up with queue length (Little's result assumes a stable system,\n one where the arrival rate doesn't consistently exceed the processing rate).\n\nLong wait times will impact the user experience. Messages, such as product orders,\n may no longer be relevant if it takes a year until they are processed. So, your system\n may technically function, but it no longer addresses your users' expectations, a great\n case of \"all lights are green, the system is down\".\n\n## Flow Control\n\nFor a queued system to perform adequately under consistently high load, it requires\n some form of [Flow Control](https://en.wikipedia.org/wiki/Flow_control_(data)).\n\nWikipedia describes the role of flow control as:\n\n> Managing the rate of data transmission between two nodes to prevent a fast sender\n> from overwhelming a slow receiver.\n\nAs we saw above, a queue provides flow control by decoupling the control flow between\n sender and receiver. But to do so effectively, it ultimately requires additional flow\n control.\n\nThree main mechanisms provide flow control to avoid filling a queue beyond its manageable\n or useful size and to keep the system stable:\n\n- *Time-to-live (TTL)* : A limited time to live drops old messages from the queue to make room for new messages.\n This approach works well for messages whose value decreases over time, such as data\n streams (the CPU utilization from 2 weeks ago may no longer be relevant for an alert)\n or customer orders (customers may be surprised to have an order processed that they\n placed weeks ago).\n- A *Tail drop* (see [Wikipedia](https://en.wikipedia.org/wiki/Tail_drop) ) does the opposite by dropping new messages that arrive. This may be appropriate\n if old messages are too valuable to be dropped or if senders have a feedback mechanism\n that allows them to realize that messages are being dropped, allowing them to retry\n later.\n- *Backpressure* informs upstream systems that the queue isn't able to handle incoming messages so\n that those systems can reduce the arrival rate, for example by showing an error message\n to the user.\n\nAlthough neither option appears particularly appealing, implementing explicit flow\n control is much better than letting excess traffic take its course. For example, when\n the AWS Serverless DA team built their [Serverlesspresso app](https://workshop.serverlesscoffee.com/), they found that their backend consisting of two baristas is easily overloaded by\n demand spikes for free coffee. They could queue requests, but learned that folks would\n not wait longer than a minute or two for their order to be completed. This led to\n wasted coffee plus a poor user experience as subsequent users would wait for the baristas\n to prepare coffees that were never picked up. So, the team resorted to back pressure\n to not allow new orders when the queue reached a specified size.\n\nDropping newly arriving messages may seem like a poor business choice—what if one\n of those messages includes a large order? In reality, though, insufficient flow control\n will lead to exactly the same effect: if an ecommerce website becomes overloaded,\n it will try to process orders already in the queue. Meanwhile, new customers can't\n place an order because the see an error message. Depending on the usefulness of the\n error message and the UI flow, such an error message could equate to backpressure,\n e.g., if the shopping basket is maintained for later order placement. Throwing a 500\n error when users try to place the order is the very definition of tail dropping.\n\nI am firm believer in [learning about architecture from real life situations](/ramblings/18_starbucks.html), so you will find all forms of flow control in many lines, e.g., those outside a\n popular club (we once waited over an hour to get into the then-famous Ghost bar on\n top of the Palms Casino in Las vegas). Customers will likely institute their own Time-to-live\n policy by eventually giving up. The bouncers may straight out-turn away arrivals in\n a tail-drop fashion. Or they may set up a secondary queue or holding place of sorts\n as a form of backpressure.\n\nYou'd expect the folks at the large cloud providers to know a thing or two about handling\n heavy load. Unsurprisingly, we can learn how AWS uses these mechanisms from an [article authored by one of their senior principal engineers](https://aws.amazon.com/builders-library/using-load-shedding-to-avoid-overload/), even though they don't use the common names:\n\n- \" *We've found it's extremely important to place an upper bound on the amount of time\n that an incoming request sits on a queue, and we throw it out if it's too old* .\" ≅ **Time-to-Live**\n- \" *The Application Load Balancer rejects excess traffic* \" ≅ **Tail Drop**\n\nPopular message queue systems like [RabbitMQ have built-in flow control](https://www.rabbitmq.com/docs/flow-control) to protect their queues:\n\n> A back pressure mechanism is applied by RabbitMQ nodes to publishing connections in\n> order to avoid runaway memory usage growth. RabbitMQ will reduce the speed of connections\n> which are publishing too quickly for queues to keep up.\n\n## Rate Limiting: Proactive Traffic Shaping\n\nBackpressure, TTL, and Tail Drop are the equivalent of a pressure relieve valve in\n that they engage once things are about to boil over. When you are designing a system\n that receives messages, you may know its limits upfront and avoid having to back off.\n That's why many cloud systems have explicit options to limit the delivery rate for\n push delivery. In a way, you are exerting constant back pressure to limit the rate\n of message arrival.\n\nEventBridge Pipes has an explicit (fixed) rate limit for external APIs (HTTP calls),\n through the [Invocation Rate Setting](https://docs.aws.amazon.com/eventbridge/latest/userguide/eb-api-destinations.html#eb-api-destination-create) for API Destinations. It invokes Lambda functions directly through an asynchronous\n invocation without any explicit limit (we assume the built-in drivers have an algorithm\n similar to GCP). Other event sources like SNS use so-called [Event Source Mapping](https://docs.aws.amazon.com/lambda/latest/dg/invocation-eventsourcemapping.html), which uses its own poller (i.e. *Driver*), configured via maximum batch size (counted in messages) and maximum time (counted\n in seconds).\n\nGCP Pub/Sub doesn't have an explicit setting, but relies on a [Slow Start Algorithm](https://cloud.google.com/pubsub/docs/push#delivery_rate) that increases delivery speed as long as the downstream system handles the load (indicated\n by a 99% acknowledgment rate and less than one second push request latency). If the\n receiver starts to struggle, the sender eases off.\n\nI found a quota of 5000 messages / second for Azure Event Grid push delivery, but\n I wasn't able to find how it backs off in case that it overloads downstream services.\n An article published on the [Messaging on Azure Blog](https://techcommunity.microsoft.com/t5/messaging-on-azure-blog/azure-event-grid-s-pull-delivery-performance/ba-p/4003820) shows dynamic traffic ramp-up, but it's for pull delivery:\n\n## Queues require flow control\n\nUnderstanding flow control allows us to build robust systems that include queues.\n We can summarize our key learning as:\n\n> Queues invert control flow but require flow control.\n\nA vocabulary to describe the dynamic behavior of asynchronous messaging systems allows\n us to build reliable systems and makes a useful addition to the existing [messaging patterns](/patterns/messaging) that mainly describe the data flow of messages.\n\n## Related posts\n\nYou may enjoy the other posts in this series:\n\n- [The Many Facets of Coupling](/ramblings/coupling_facets.html)\n- [Event-driven = Loosely coupled? Not so fast!](/ramblings/eventdriven_coupling.html)\n- [Control Flow—The Other Half of Integration Patterns](/ramblings/queues_control_flow.html)\n- [Starbucks Does not Use Two-Phase Commit](/ramblings/18_starbucks.html)\n\n*Share:*\n\n*Follow:* [Follow @ghohpe](https://twitter.com/ghohpe) [SUBSCRIBE TO FEED](../ramblings.rss)\n\n*More On:* [INTEGRATION](/ramblings_integration.html) [CLOUD](/ramblings_cloud.html) [EVENTS](/ramblings_events.html) [ALL RAMBLINGS](../ramblings.html)\n\nGregor is a cloud architect and author. He is a frequent speaker on asynchronous messaging,\n IT strategy, and cloud.", "znaku_textu": 13401, "slov": 1995, "odkazu": 63, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/ramblings/queues_flow_control.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 06:01:27", "sha256": "ba3b539ffec6b6bac5565f12aa17bea56db30de542e5b914ee094fb735cd0629", "hloubka": 1, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://architectelevator.com/blog", "https://aws.amazon.com/about-aws/whats-new/2023/12/aws-lambda-functions-scale-up/", "https://en.wikipedia.org/wiki/Traffic_shaping", "https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/quotas-queues.html", "https://cloud.google.com/pubsub/quotas", "https://docs.aws.amazon.com/lambda/latest/dg/gettingstarted-limits.html", "https://en.wikipedia.org/wiki/Little's_law", "https://en.wikipedia.org/wiki/Flow_control_(data)", "https://en.wikipedia.org/wiki/Tail_drop", "https://workshop.serverlesscoffee.com/", "https://aws.amazon.com/builders-library/using-load-shedding-to-avoid-overload/", "https://www.rabbitmq.com/docs/flow-control", "https://docs.aws.amazon.com/eventbridge/latest/userguide/eb-api-destinations.html", "https://docs.aws.amazon.com/lambda/latest/dg/invocation-eventsourcemapping.html", "https://cloud.google.com/pubsub/docs/push", "https://techcommunity.microsoft.com/t5/messaging-on-azure-blog/azure-event-grid-s-pull-delivery-performance/ba-p/4003820", "https://twitter.com/share", "https://twitter.com/ghohpe", "https://leanpub.com/37things"]} {"url": "https://www.enterpriseintegrationpatterns.com/ramblings_architecture.html", "titulek": "Gregor’s Ramblings on Architecture - Enterprise Integration Patterns", "h1": "", "popis": "", "klicova_slova": "", "kanonicka": "", "jazyk": "", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [], "markdown": "Gregor’s Ramblings on Architecture\n\n---\n\n| My latest thoughts on integration architecture: |\n| --- |\n| [Queues invert control flow but require flow control](/ramblings/queues_flow_control.html) |\n| [Control Flow—The Other Half of Integration Patterns](/ramblings/queues_control_flow.html) |\n| [Event-driven = Loosely coupled? Not so fast!](/ramblings/eventdriven_coupling.html) |\n\n| [A Decade of Enterprise Integration Patterns](/articles.html)\n\r\n (IEEE Software) |\n| --- |\n| [20 Years of Patterns' Impact](/articles.html) \n\r\n (IEEE Software) |\n| [Conversations Between Loosely Coupled Services](http://www.infoq.com/presentations/hohpe-soa-conversations) \n\r\n (Video on [InfoQ](http://www.infoq.com)) |\n| [Developing in a Service-oriented World](http://www.infoq.com/presentations/hohpe-soa-development) \n\r\n (Video on [InfoQ](http://www.infoq.com)) |\n| [SOA Patterns - New Insights or Recycled Knowledge?](/docs/SoaPatterns.pdf)\n\r\n (Whitepaper) |\n| [Let's Have a Conversation](/docs/IEEE_IC_Conversations.pdf)\n(IEEE Internet Computing) |\n| [Programming Without a Call Stack - Event-driven Architectures](/docs/EDA.pdf)\n(ObjektSpektrum, 2006) |\n| [Your Coffee Shop Does Not Use Two-Phase Commit](/docs/IEEE_Software_Design_2PC.pdf)\n\r\n (IEEE Software) |\n| [Developing in a Service-Oriented World](/docs/SOA_World.pdf)\n(ThoughtWorks Whitepaper) |\n| [An Asynchronous World](http://www.drdobbs.com/an-asynchronous-world/184415001)\n\r\n (Software Development) |\n\n| [Nearfield Communication (NFC) in Japan](/docs/NfcOopHohpe.pdf)\n(OOP 2012) |\n| --- |\n| [Embedded OSS](/docs/EmbeddedOop.pdf)\n(OOP 2012) |\n| [Programming the Cloud](https://sites.google.com/site/gcodejp/slides/ProgrammingCloud_QCon.pdf)\n(QCOn Tokyo 2010) |\n| [Distributed Programming the Google Way](/docs/DistributedProgrammingGoogle.pdf)\n(Devoxx 2009) |\n| [Developing in a Service-Oriented World](/docs/hohpe_developing_in_soa_world.pdf)\n(SOACon 2007) |\n| [Programming without a Call Stack: Event-driven Architectures](/docs/hohpe_event_driven_architectures.pdf)\n(SOACon 2007) |\n| [Software Visualization and Model Extraction](/docs/TSS_software_visualization.pdf)\n(TheServerSide) |\n| [Where did all my beatiful code go?](/docs/SpringOneKeynotePub.pdf)\n(SpringOne, 2006) |\n| [Conversations Between Loosely Coupled Systems](/docs/Conversations_loosely_coupled.pdf)\n(SD West, 2006) |\n| [Enterprise Integration Patterns](/docs/jaoo_hohpeg_enterpriseintegrationpatterns.pdf)\n(JAOO, 2003) |\n\nThis blog chronicles my journey with asynchronous and distributed system design over\n two decades.\n \n These are my Ramblings related to **Architecture** [See [all Ramblings](/ramblings.html)]. \n Subscribe to my ramblings via [RSS](ramblings.rss).\n\nFind my posts on IT strategy, enterprise architecture, and digital transformation\n at [ArchitectElevator.com](https://architectelevator.com/blog).\n\n---\n\n[How to Scale an Organization? The same way you scale a system!](ramblings/92_scaling.html) January 12, 2016\n\nThe digital world is all about scalability: millions of web sites, billions of hits\n per month, more data, more tweets, more images uploaded. To make this work, architects\n have learned a ton about scaling systems. With everything around us scaling to never-before-seen\n throughput, the limiting element in all this is bound to be us, the human users. And\n the organizations we work in. One may wonder, then, why scaling and optimizing throughput\n in organizations is considered a very different field usually completely ignored by\n the IT architects. I feel that many of the scalability and performance enhancement\n approaches experienced IT architects know can be just as well used to scale organizations.\n If a coffee shop can teach us about maximizing a system’s throughput, maybe our knowledge\n of IT systems design can help improve the performance of organizations! [Read more Âť](/ramblings/92_scaling.html)\n\n[The Architect’s Penthouse Bookshelf](ramblings/91_bookshelfpenthouse.html) Dec 28, 2015\n\nWhen you hitchhike through the galaxy, a towel will generally do. To ride the you\n need to be a bit better equipped. Riding the elevator up and down is exciting and\n provides tremendous value to the organization. But it is also demanding as you need\n to adjust to different audiences, backgrounds and dynamics, becoming a technology\n shapeshifter of sorts. To help with this transformation, I recommended a few books\n for each major section of the corporate high-rise. [Read more Âť](/ramblings/91_bookshelfpenthouse.html)\n\n[If software eats the world, you better use version control!](ramblings/90_softwareeatstheworld.html) Dec 6, 2015\n\nAs I recently observed, Corporate IT tends to be afraid of code: code is where all\n the pesky bugs come from, which have to be fixed by quirky, expensive, and unreliable\n developers or external consultants. This attitude plays to the favor of vendors who\n peddle products that \"only\" require configuration, as opposed to coding. Sadly, most\n configuration is really just programming in a poorly designed, rather constrained\n language without decent tooling or useful documentation. Being afraid of code and\n being unfamiliar with the modern development lifecycle is a dangerous proposition\n in a world where everything is becoming software-defined. [Read more Âť](/ramblings/90_softwareeatstheworld.html)\n\n[If you never kill anything, you will live among zombies. And they will eat your brain.](ramblings/89_zombies.html) Sept 27, 2015\n\nCorporate IT lives among zombies: old systems that are half alive and have everyone\n in fear of going anywhere near them. They are also tough to kill completely. Worse\n yet, they eat IT staff's brains. It's like Shaun of the Dead minus the funny parts. [Read more Âť](/ramblings/89_zombies.html)\n\n[Movie Star Architects](ramblings/88_moviestararchitects.html) Aug 1, 2015\n\nI recently wrote about architects and the role they play in large organizations. Still,\n the question often remains what an architect should be doing besides \"riding the elevator\".\n Let's try another analogy: movie characters. [Read more Âť](/ramblings/88_moviestararchitects.html)\n\n[Virtualization Matryoshka](ramblings/87_matryoshka.html) July 15, 2015\n\nIT loves virtualizing stuff, following the old rule that in computer science every\n problem can be solved by just one more level of indirection. Cloud computing is based\n on virtualization of compute resources - you don't need to know which machine your\n application is actually running on and you can get new ones with the click of a button.\n Before cloud was a buzzword, though, VMware and others have virtualized machines at\n the operating system levels. Recently (in terms of buzz, not technology), containers\n bring another level of light-weight virtualization of resources. And let's not forget\n the Java Virtual Machine, which also claims a level of virtualization. What are we\n supposed to do with all these levels of virtualization? [Read more Âť](/ramblings/87_matryoshka.html)\n\n[Is This Architecture? Look for Decisions!](ramblings/86_isthisarchitecture.html) June 15, 2015\n\nPart of my job is to review system architectures. So I frequently ask teams to show\n me \"their architecture\", but almost as frequently I don't consider what I receive\n an architecture document. The inevitable question \"what do you expect?\" is also not\n so easy for me to answer: despite many formal definitions it's not immediately clear\n what architecture is or whether a document really depicts an architecture. One important\n test I apply is whether the document or the description contains any non-trivial decisions\n and the rationale behind them. [Read more Âť](/ramblings/86_isthisarchitecture.html)\n\n[SATURN Conference 2015](ramblings/84_saturn.html) May 1, 2015\n\nI have not blogged about events in a while, but SATURN 2015 has been an amazing event\n that's well worth rambling about. [Read more Âť](/ramblings/84_saturn.html)\n\n[The Architect Elevator](ramblings/79_elevator.html) JAN 15, 2015\n\nArchitects frequently play a critical role as connecting and communicating element\n between multiple parties. Especially in large organizations such communication is\n an important factor: too many parties speak different languages to convey different,\n and often conflicting, objectives. Many layers of management only exacerbate the problem\n as communicating to corporate leadership resembles the \"telephone game\" where a circle\n of kids relays a message one-by-one just to realize at the end that the message has\n completely changed along the way. [Read more Âť](/ramblings/79_elevator.html)\n\n[The 3 Legs of an Architect](ramblings/78_threelegs.html) DEC 28, 2014\n\nDefining what a software or IT architect is or does is no less challenging than defining\n software architecture itself. The SEI maintains a list of software architecture definitions,\n yet I have not seen a corresponding list for software architects. One could try to\n skirt the issue by declaring that software architects are the people who make software\n architecture. However, I think that this approach would be missing some important\n aspects of being an architect. [Read more Âť](/ramblings/78_threelegs.html)\n\n[SOA's and Drunk Driving](ramblings/21_drunkdriving.html) January 17, 2005\n\nHappy New Year everybody! Over the holidays I tried to sort out some of my thoughts\n on Web services, SOA, architectural styles, coupling and all the other good stuff.\n I started to think about service-oriented architectures as an architectural style\n and how it compares to prior styles, such as distributed component architectures.\n Maybe it was the New Year's mood but I started to think that the evolution of architectural\n styles is a little bit like drunk driving... [Read more Âť](/ramblings/21_drunkdriving.html)\n\n[The Dark Side of Encapsulation?](ramblings/05_encapsulation.html) December 12, 2003\n\nEncapsulation and abstraction are the holy grail of today's software development.\n One of the great successes of hiding the implementation details under a common, abstracted\n interface are TCP/IP stacks. But as so often, overwhelming success can also have a\n flip side. [Read more Âť](/ramblings/05_encapsulation.html)\n\n---", "znaku_textu": 10035, "slov": 1277, "odkazu": 77, "kodovani": "iso-8859-2", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/ramblings_architecture.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 06:53:09", "sha256": "8ffabfe8fab22aab7dbb095e6cc61f740d46145fe2f341f6ebc37042e5999564", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://www.infoq.com/presentations/hohpe-soa-conversations", "http://www.infoq.com/", "http://www.infoq.com/presentations/hohpe-soa-development", "http://www.drdobbs.com/an-asynchronous-world/184415001", "https://sites.google.com/site/gcodejp/slides/ProgrammingCloud_QCon.pdf", "https://architectelevator.com/blog"]} {"url": "https://www.enterpriseintegrationpatterns.com/ramblings_cloud.html", "titulek": "Gregor’s Ramblings on Cloud - Enterprise Integration Patterns", "h1": "", "popis": "", "klicova_slova": "", "kanonicka": "", "jazyk": "", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [], "markdown": "Gregor’s Ramblings on Cloud\n\n---\n\n| My latest thoughts on integration architecture: |\n| --- |\n| [Queues invert control flow but require flow control](/ramblings/queues_flow_control.html) |\n| [Control Flow—The Other Half of Integration Patterns](/ramblings/queues_control_flow.html) |\n| [Event-driven = Loosely coupled? Not so fast!](/ramblings/eventdriven_coupling.html) |\n\n| [A Decade of Enterprise Integration Patterns](/articles.html)\n\r\n (IEEE Software) |\n| --- |\n| [20 Years of Patterns' Impact](/articles.html) \n\r\n (IEEE Software) |\n| [Conversations Between Loosely Coupled Services](http://www.infoq.com/presentations/hohpe-soa-conversations) \n\r\n (Video on [InfoQ](http://www.infoq.com)) |\n| [Developing in a Service-oriented World](http://www.infoq.com/presentations/hohpe-soa-development) \n\r\n (Video on [InfoQ](http://www.infoq.com)) |\n| [SOA Patterns - New Insights or Recycled Knowledge?](/docs/SoaPatterns.pdf)\n\r\n (Whitepaper) |\n| [Let's Have a Conversation](/docs/IEEE_IC_Conversations.pdf)\n(IEEE Internet Computing) |\n| [Programming Without a Call Stack - Event-driven Architectures](/docs/EDA.pdf)\n(ObjektSpektrum, 2006) |\n| [Your Coffee Shop Does Not Use Two-Phase Commit](/docs/IEEE_Software_Design_2PC.pdf)\n\r\n (IEEE Software) |\n| [Developing in a Service-Oriented World](/docs/SOA_World.pdf)\n(ThoughtWorks Whitepaper) |\n| [An Asynchronous World](http://www.drdobbs.com/an-asynchronous-world/184415001)\n\r\n (Software Development) |\n\n| [Nearfield Communication (NFC) in Japan](/docs/NfcOopHohpe.pdf)\n(OOP 2012) |\n| --- |\n| [Embedded OSS](/docs/EmbeddedOop.pdf)\n(OOP 2012) |\n| [Programming the Cloud](https://sites.google.com/site/gcodejp/slides/ProgrammingCloud_QCon.pdf)\n(QCOn Tokyo 2010) |\n| [Distributed Programming the Google Way](/docs/DistributedProgrammingGoogle.pdf)\n(Devoxx 2009) |\n| [Developing in a Service-Oriented World](/docs/hohpe_developing_in_soa_world.pdf)\n(SOACon 2007) |\n| [Programming without a Call Stack: Event-driven Architectures](/docs/hohpe_event_driven_architectures.pdf)\n(SOACon 2007) |\n| [Software Visualization and Model Extraction](/docs/TSS_software_visualization.pdf)\n(TheServerSide) |\n| [Where did all my beatiful code go?](/docs/SpringOneKeynotePub.pdf)\n(SpringOne, 2006) |\n| [Conversations Between Loosely Coupled Systems](/docs/Conversations_loosely_coupled.pdf)\n(SD West, 2006) |\n| [Enterprise Integration Patterns](/docs/jaoo_hohpeg_enterpriseintegrationpatterns.pdf)\n(JAOO, 2003) |\n\nThis blog chronicles my journey with asynchronous and distributed system design over\n two decades.\n \n These are my Ramblings related to **Cloud** [See [all Ramblings](/ramblings.html)]. \n Subscribe to my ramblings via [RSS](ramblings.rss).\n\nFind my posts on IT strategy, enterprise architecture, and digital transformation\n at [ArchitectElevator.com](https://architectelevator.com/blog).\n\n---\n\n[Queues invert control flow but require flow control](ramblings/queues_flow_control.html) July 27, 2024\n\nQueues are key elements of any asynchronous system because they can invert control\n flow. Their ability to re-shape traffic enables high-throughput systems that behave\n gracefully under heavy load. But all that magic doesn't come for free: to function\n well, queues require flow control [Read more Âť](/ramblings/queues_flow_control.html)\n\n[Control Flow—The Other Half of Integration Patterns](ramblings/queues_control_flow.html) July 30, 2024\n\nWhen describing messaging systems, it's natural to focus on data flow. However, control\n flow is what gives those systems their critical runtime properties like resilience\n or low latency. It's time to make control flow a first-class consideration. [Read more Âť](/ramblings/queues_control_flow.html)\n\n[Event-driven = Loosely coupled? Not so fast!](ramblings/eventdriven_coupling.html) June 20, 2024\n\nEvent-driven architectures (EDAs) are frequently pitched as loosely coupled, when\n compared to other forms of integration. Coupling is a multi-faceted and nuanced property,\n so as architects we should have a closer look. [Read more Âť](/ramblings/eventdriven_coupling.html)\n\n[The Many Facets of Coupling](ramblings/coupling_facets.html) June 10, 2024\n\nCoupling is integration's magic word. Despite entire books being written on the subject,\n it's still widely recited as a \"loose coupling is good\" mantra. Coupling deserves\n better, so let's clarify the dimensions and nuances of coupling. [Read more Âť](/ramblings/coupling_facets.html)\n\n[Serverless Loan Broker @ GCP](ramblings/loanbroker_gcp_workflows.html) May 20, 2022\n\nDo serverless solutions lock you in? Let's find out by porting / rebuilding the Serverless\n Loan Broker on top of Google's Cloud Platform (GCP). [Read more Âť](/ramblings/loanbroker_gcp_workflows.html)\n\n[Serverless Loan Broker @ AWS, Part 5: Integration Patterns with CDK](ramblings/loanbroker_cdk.html) Jan 25, 2022\n\nInfrastructure as Code (IaC) brings repeatability into the provisioning and deployment\n of cloud applications. However, the vocabulary used by most automation tools describes\n cloud platform resources as compared to the application's intent. As serverless applications\n take us further away from the infrastructure, we should also find better abstractions\n to express our automation. Perhaps, Enterprise Integration Patterns give us a head\n start? [Read more Âť](/ramblings/loanbroker_cdk.html)\n\n[Serverless Loan Broker @ AWS, Part 4: Automation](ramblings/loanbroker_automation.html) November 30, 2021\n\nInfrastructure as Code (IaC) has a whole new meaning for serverless applications.\n Rather than provision resources (the serverless frameworks do that for us), automation\n determines the system composition and configuration. As expected, quite a few options\n are available from simple command line to programming frameworks. Time to have a look. [Read more Âť](/ramblings/loanbroker_automation.html)\n\n[Serverless Loan Broker @AWS, Part 3: Publish-Subscribe with SNS](ramblings/loanbroker_stepfunctions_pubsub.html) July 20, 2021\n\nPart 3 of the mini-series on implementing the EIP Loan Broker as a serverless solution\n with AWS Step Functions uses a Publish-Subscribe Channel and a stand-alone Aggregator\n to request and process loan quotes. [Read more Âť](/ramblings/loanbroker_stepfunctions_pubsub.html)\n\n[Loan Broker @AWS, Part 2: Recipient List](ramblings/loanbroker_stepfunctions_recipient_list.html) July 20, 2021\n\nIn part 2 of this blog series I implement the Loan Broker Example using a Recipient\n List pattern, implemented in DynamoDB, Step Functions, and Lambda. [Read more Âť](/ramblings/loanbroker_stepfunctions_recipient_list.html)\n\n[Loan Broker Implementation with AWS Step Functions](ramblings/loanbroker_stepfunctions.html) July 20, 2021\n\nA lot has happened since we implemented the Loan Broker Example in EIP: we have the\n cloud, serverless computing, machine learning, service meshes and all sorts of other\n bells and whistles. Nevertheless, the integration patterns have passed the test of\n time as we shall see by implementing the original loan broker example with AWS Lambda\n and AWS Step Functions. [Read more Âť](/ramblings/loanbroker_stepfunctions.html)\n\n[Serverless Integration Patterns on Google Cloud Functions](ramblings/google_cloud_functions.html) April 20, 2017\n\nAfter examining which patterns are embedded in Google Cloud Pub/Sub in an earlier\n post, I implemented a few common patterns on top of Google Cloud Functions, Google's\n serverless implementation. It's amazing how easy it has become to get messaging patterns\n running in the cloud with only a minimum of wrapper code. [Read more Âť](/ramblings/google_cloud_functions.html)\n\n[Virtualization Matryoshka](ramblings/87_matryoshka.html) July 15, 2015\n\nIT loves virtualizing stuff, following the old rule that in computer science every\n problem can be solved by just one more level of indirection. Cloud computing is based\n on virtualization of compute resources - you don't need to know which machine your\n application is actually running on and you can get new ones with the click of a button.\n Before cloud was a buzzword, though, VMware and others have virtualized machines at\n the operating system levels. Recently (in terms of buzz, not technology), containers\n bring another level of light-weight virtualization of resources. And let's not forget\n the Java Virtual Machine, which also claims a level of virtualization. What are we\n supposed to do with all these levels of virtualization? [Read more Âť](/ramblings/87_matryoshka.html)\n\n[Google Cloud Pub/Sub](ramblings/82_googlepubsub.html) APR 8, 2015\n\nGoogle released the beta version of their publish-subscribe API just a few weeks ago.\n I show how to build a very simple demo app using the Java API and map the functionality\n to integration patterns to illustrate the design choices the team made. [Read more Âť](/ramblings/82_googlepubsub.html)\n\n[Clouds and Integration Patterns at JavaOne](ramblings/71_javaone.html) OCT 1, 2009\n\nI joined JavaOne this year as a panelist on Cloud Computing. Here my belated impressions\n on this year's JavaOne. [Read more Âť](/ramblings/71_javaone.html)\n\n---", "znaku_textu": 8952, "slov": 1052, "odkazu": 79, "kodovani": "iso-8859-2", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/ramblings_cloud.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 06:53:10", "sha256": "35c4c3517d2e372c73a6999bc1197bbcc5728a3b9b089fc8290f6efb431816fc", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://www.infoq.com/presentations/hohpe-soa-conversations", "http://www.infoq.com/", "http://www.infoq.com/presentations/hohpe-soa-development", "http://www.drdobbs.com/an-asynchronous-world/184415001", "https://sites.google.com/site/gcodejp/slides/ProgrammingCloud_QCon.pdf", "https://architectelevator.com/blog"]} {"url": "https://www.enterpriseintegrationpatterns.com/ramblings_conversations.html", "titulek": "Gregor’s Ramblings on Conversations - Enterprise Integration Patterns", "h1": "", "popis": "", "klicova_slova": "", "kanonicka": "", "jazyk": "", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [], "markdown": "Gregor’s Ramblings on Conversations\n\n---\n\n| My latest thoughts on integration architecture: |\n| --- |\n| [Queues invert control flow but require flow control](/ramblings/queues_flow_control.html) |\n| [Control Flow—The Other Half of Integration Patterns](/ramblings/queues_control_flow.html) |\n| [Event-driven = Loosely coupled? Not so fast!](/ramblings/eventdriven_coupling.html) |\n\n| [A Decade of Enterprise Integration Patterns](/articles.html)\n\r\n (IEEE Software) |\n| --- |\n| [20 Years of Patterns' Impact](/articles.html) \n\r\n (IEEE Software) |\n| [Conversations Between Loosely Coupled Services](http://www.infoq.com/presentations/hohpe-soa-conversations) \n\r\n (Video on [InfoQ](http://www.infoq.com)) |\n| [Developing in a Service-oriented World](http://www.infoq.com/presentations/hohpe-soa-development) \n\r\n (Video on [InfoQ](http://www.infoq.com)) |\n| [SOA Patterns - New Insights or Recycled Knowledge?](/docs/SoaPatterns.pdf)\n\r\n (Whitepaper) |\n| [Let's Have a Conversation](/docs/IEEE_IC_Conversations.pdf)\n(IEEE Internet Computing) |\n| [Programming Without a Call Stack - Event-driven Architectures](/docs/EDA.pdf)\n(ObjektSpektrum, 2006) |\n| [Your Coffee Shop Does Not Use Two-Phase Commit](/docs/IEEE_Software_Design_2PC.pdf)\n\r\n (IEEE Software) |\n| [Developing in a Service-Oriented World](/docs/SOA_World.pdf)\n(ThoughtWorks Whitepaper) |\n| [An Asynchronous World](http://www.drdobbs.com/an-asynchronous-world/184415001)\n\r\n (Software Development) |\n\n| [Nearfield Communication (NFC) in Japan](/docs/NfcOopHohpe.pdf)\n(OOP 2012) |\n| --- |\n| [Embedded OSS](/docs/EmbeddedOop.pdf)\n(OOP 2012) |\n| [Programming the Cloud](https://sites.google.com/site/gcodejp/slides/ProgrammingCloud_QCon.pdf)\n(QCOn Tokyo 2010) |\n| [Distributed Programming the Google Way](/docs/DistributedProgrammingGoogle.pdf)\n(Devoxx 2009) |\n| [Developing in a Service-Oriented World](/docs/hohpe_developing_in_soa_world.pdf)\n(SOACon 2007) |\n| [Programming without a Call Stack: Event-driven Architectures](/docs/hohpe_event_driven_architectures.pdf)\n(SOACon 2007) |\n| [Software Visualization and Model Extraction](/docs/TSS_software_visualization.pdf)\n(TheServerSide) |\n| [Where did all my beatiful code go?](/docs/SpringOneKeynotePub.pdf)\n(SpringOne, 2006) |\n| [Conversations Between Loosely Coupled Systems](/docs/Conversations_loosely_coupled.pdf)\n(SD West, 2006) |\n| [Enterprise Integration Patterns](/docs/jaoo_hohpeg_enterpriseintegrationpatterns.pdf)\n(JAOO, 2003) |\n\nThis blog chronicles my journey with asynchronous and distributed system design over\n two decades.\n \n These are my Ramblings related to **Conversations** [See [all Ramblings](/ramblings.html)]. \n Subscribe to my ramblings via [RSS](ramblings.rss).\n\nFind my posts on IT strategy, enterprise architecture, and digital transformation\n at [ArchitectElevator.com](https://architectelevator.com/blog).\n\n---\n\n[Free Gift with Subscription (Pattern)](ramblings/83_subscribing.html) APR 26, 2015\n\nDiscussing the Google cloud Pub/Sub system in the last rambling reminded me that the\n Publish-subscribe Channel pattern makes for a good example of the subtle but important\n difference between Messaging Patterns and Conversation Patterns. This comparison is\n timely as I picked up documenting Conversation Patterns again. [Read more »](/ramblings/83_subscribing.html)\n\n[RESTful Conversations](ramblings/81_restconversation.html) MAR 15, 2015\n\nAs indicated a good while ago I spent some time thinking about patterns that instead\n of following a message through multiple systems, looks at the message exchange over\n time between a (mostly) fixed set of systems. I call these message exchanges \"conversations\".\n Sadly my writing efforts on Conversation Patterns fell very much asleep around 2008,\n partly due to my fear that with the rise of REST, stateful conversations between systems\n would step into the background as most integration problems are now solved with a\n simple POST or GET. A presentation and conversation at Frank Leymann's IaaS PhD Seminar\n enlightened me that this is not at all true: systems following the REST architectural\n style very much engage in conversations. [Read more »](/ramblings/81_restconversation.html)\n\n[EIP Visions](ramblings/72_eipvolumes.html) JAN 22, 2010\n\nThe beginning of a New Year is the time to reflect on the past and make resolutions\n for the future. It's become my tradition to kick off the year with some reflection\n on EIP, so here we go. [Read more »](/ramblings/72_eipvolumes.html)\n\n[Double-Dipping: OOPSLA and Colorado Software Summit](ramblings/64_oopslacss.html) October 27, 2007\n\nI am just returning from a trip to Montreal and Keystone, CO for the OOPSLA and Colorado\n Software Summit conferences. I spoke on SOA Patterns, workshopped my conversation\n pattern paper, and gave six talks on event-driven architectures and building mashups\n using Yahoo! Pipes and Google Mashup Editor. Phew! [Read more »](/ramblings/64_oopslacss.html)\n\n[Dagstuhl Seminar](ramblings/44_dagstuhl.html) Aug 20, 2006\n\nI just returned from a trip to Germany to attend a workshop on The Role of Business\n Processes in Service Oriented Architecture. Besides a guaranteed top score in buzzword\n bingo the workshop provided a unique opportunity to connect thought leaders from academia\n and industry over the course of a week. The attendee roster sported the usual industry\n heavyweights, i.e., Microsoft, IBM, SAP, making me proud to add Google to the list.\n [Read more »](/ramblings/44_dagstuhl.html)\n\n[Will the Real Asynchrony Please Stand Up?](ramblings/28_asynchrony.html) May 15, 2005\n\nOn a recent project we developed a Web services framework that supports asynchronous\n callbacks and asynchronous invocation with polling. The difficulties we had describing\n what we were trying to do to my fellow ThoughtWorkers on other projects prompted me\n to discuss the different forms of asynchrony in a little more detail. [Read more »](/ramblings/28_asynchrony.html)\n\n[Starbucks Does Not Use Two-Phase Commit](ramblings/18_starbucks.html) November 19, 2004\n\nPeople often criticize asynchronous messaging solutions as too complicated and cumbersome.\n Or, they believe distributed solutions cannot be successful unless they include a\n distributed transaction model. There is little doubt that asynchronous solutions require\n us to think in new ways as we have to deal with concurrency, out-of-sequence issues,\n correlation and other. However, the real world is full of examples of asynchronous\n processes that deal successfully with exactly the same issues. We don't have to go\n further than the local coffee shop... [Read more »](/ramblings/18_starbucks.html)\n\n[Correlation and Conversations](ramblings/09_correlation.html) May 21, 2004\n\nWhen using asynchronous messaging, we can no longer rely on the linear, in-sequence\n execution of events. Therefore, the notion of correlating multiple messages is fundamental\n to designing robust messaging solutions. While correlation seems to be a simple concept\n at first glance, there are quite a few interesting nuances. [Read more »](/ramblings/09_correlation.html)\n\n---", "znaku_textu": 6966, "slov": 823, "odkazu": 67, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/ramblings_conversations.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 06:53:11", "sha256": "8b26f10c4b0a0c2c1757804a81842e808d3dd2615b834179d525e243063dc9ff", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://www.infoq.com/presentations/hohpe-soa-conversations", "http://www.infoq.com/", "http://www.infoq.com/presentations/hohpe-soa-development", "http://www.drdobbs.com/an-asynchronous-world/184415001", "https://sites.google.com/site/gcodejp/slides/ProgrammingCloud_QCon.pdf", "https://architectelevator.com/blog"]} {"url": "https://www.enterpriseintegrationpatterns.com/ramblings_design.html", "titulek": "Gregor’s Ramblings on Design - Enterprise Integration Patterns", "h1": "", "popis": "", "klicova_slova": "", "kanonicka": "", "jazyk": "", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [], "markdown": "Gregor’s Ramblings on Design\n\n---\n\n| My latest thoughts on integration architecture: |\n| --- |\n| [Queues invert control flow but require flow control](/ramblings/queues_flow_control.html) |\n| [Control Flow—The Other Half of Integration Patterns](/ramblings/queues_control_flow.html) |\n| [Event-driven = Loosely coupled? Not so fast!](/ramblings/eventdriven_coupling.html) |\n\n| [A Decade of Enterprise Integration Patterns](/articles.html)\n\r\n (IEEE Software) |\n| --- |\n| [20 Years of Patterns' Impact](/articles.html) \n\r\n (IEEE Software) |\n| [Conversations Between Loosely Coupled Services](http://www.infoq.com/presentations/hohpe-soa-conversations) \n\r\n (Video on [InfoQ](http://www.infoq.com)) |\n| [Developing in a Service-oriented World](http://www.infoq.com/presentations/hohpe-soa-development) \n\r\n (Video on [InfoQ](http://www.infoq.com)) |\n| [SOA Patterns - New Insights or Recycled Knowledge?](/docs/SoaPatterns.pdf)\n\r\n (Whitepaper) |\n| [Let's Have a Conversation](/docs/IEEE_IC_Conversations.pdf)\n(IEEE Internet Computing) |\n| [Programming Without a Call Stack - Event-driven Architectures](/docs/EDA.pdf)\n(ObjektSpektrum, 2006) |\n| [Your Coffee Shop Does Not Use Two-Phase Commit](/docs/IEEE_Software_Design_2PC.pdf)\n\r\n (IEEE Software) |\n| [Developing in a Service-Oriented World](/docs/SOA_World.pdf)\n(ThoughtWorks Whitepaper) |\n| [An Asynchronous World](http://www.drdobbs.com/an-asynchronous-world/184415001)\n\r\n (Software Development) |\n\n| [Nearfield Communication (NFC) in Japan](/docs/NfcOopHohpe.pdf)\n(OOP 2012) |\n| --- |\n| [Embedded OSS](/docs/EmbeddedOop.pdf)\n(OOP 2012) |\n| [Programming the Cloud](https://sites.google.com/site/gcodejp/slides/ProgrammingCloud_QCon.pdf)\n(QCOn Tokyo 2010) |\n| [Distributed Programming the Google Way](/docs/DistributedProgrammingGoogle.pdf)\n(Devoxx 2009) |\n| [Developing in a Service-Oriented World](/docs/hohpe_developing_in_soa_world.pdf)\n(SOACon 2007) |\n| [Programming without a Call Stack: Event-driven Architectures](/docs/hohpe_event_driven_architectures.pdf)\n(SOACon 2007) |\n| [Software Visualization and Model Extraction](/docs/TSS_software_visualization.pdf)\n(TheServerSide) |\n| [Where did all my beatiful code go?](/docs/SpringOneKeynotePub.pdf)\n(SpringOne, 2006) |\n| [Conversations Between Loosely Coupled Systems](/docs/Conversations_loosely_coupled.pdf)\n(SD West, 2006) |\n| [Enterprise Integration Patterns](/docs/jaoo_hohpeg_enterpriseintegrationpatterns.pdf)\n(JAOO, 2003) |\n\nThis blog chronicles my journey with asynchronous and distributed system design over\n two decades.\n \n These are my Ramblings related to **Design** [See [all Ramblings](/ramblings.html)]. \n Subscribe to my ramblings via [RSS](ramblings.rss).\n\nFind my posts on IT strategy, enterprise architecture, and digital transformation\n at [ArchitectElevator.com](https://architectelevator.com/blog).\n\n---\n\n[DDD - Diagram Driven Design](ramblings/75_ddd.html) MAR 22, 2010\n\nDrawing a picture turns out to be a useful system design technique. [Read more Âť](/ramblings/75_ddd.html)\n\n[Into the Clouds on New Acid](ramblings/68_acid.html) Mar 20, 2009\n\nI have been speaking more frequently about cloud computing in recent days. As SOA\n is becoming a daily reality, I needed to advance to new, still slightly nebulous topic.\n What could be a better fit than cloud computing? All jokes aside, cloud computing\n provides for some interesting discussions and one should safely assume that Google\n has a word or two to say about it. [Read more Âť](/ramblings/68_acid.html)\n\n[API's are for Humans, too](ramblings/55_api.html) June 19, 2007\n\nWhen graphical user interfaces became popular thrifty people had the idea that they\n could generate them automatically. Well, that bubble burst pretty quickly. When people\n say nothing is new with Web services, they are right in this case. Once again people\n want to generate the interface automatically. [Read more Âť](/ramblings/55_api.html)\n\n[Eric Newcomer is on to me](ramblings/53_eric.html) May 26, 2007\n\nYou can only get away with joking about transactions for so long before the gods of\n transactions bring you to justice. So is was only a matter of time before Eric Newcomer\n would catch me waxing about coffee and transactional integrity... [Read more Âť](/ramblings/53_eric.html)\n\n[EAI DSLs](ramblings/42_eaidsl.html) May 23, 2006\n\nI am so clever. In my very first professional project in the US over 10 years ago\n I used a DSL to solve an EAI problem. If those buzzwords had been around at the time\n I would have been pretty cool, too. I guess you can’t have everything. [Read more Âť](/ramblings/42_eaidsl.html)\n\n[The Metrics Maid](ramblings/41_metrics.html) April 28, 2006\n\nSome of the most hated people in San Francisco must be the meter maids, the DPT people\n who drive around in golf carts and hand out tickets to anyone who overslept street\n cleaning or did not have enough quarters for the meter. On some projects, the most\n hated people are the metric maids, the people who go around and try to sum up a developer’s\n hard work and intellectual genius in a number between 1 and 10. [Read more Âť](/ramblings/41_metrics.html)\n\n[March is Not a Number](ramblings/40_marchnan.html) April 16, 2006\n\nA lot of discussion these days relates to DSL's (Domain Specific Languages) that allow\n business models and rules to expressed in a more readable fashion in the source code.\n Ultimately one might be able to share the executable source of the system with the\n business users to validate that this is what they wanted. While Java is not necessarily\n the greatest language to \"host\" a DSL we can go a lot further than developers generally\n believe or care for. [Read more Âť](/ramblings/40_marchnan.html)\n\n[What is in a Name?](ramblings/39_namingchannels.html) Mar 5, 2006\n\nComputer science is known as the field where every problem can be solved by just one\n more level of indirection. Well, a message channel berween two components is such\n a level of indirection. As it turns out naming this additional element can have a\n more profound influence on the system design than might appear at first. [Read more Âť](/ramblings/39_namingchannels.html)\n\n[Of Boxes and Lines](ramblings/38_interaction.html) Feb 25, 2006\n\nAfter joining the big G I put particular emphasis on staying in touch with the .Net\n community. For one thing, a fair number of my intellectual drinking buddies tend to\n congregate around the large software company in the Pacific Northwest. Second, as\n a believer in cross-platform integration, technology-neutral design patterns and peace\n on earth I want to make sure I switch the koolaid flavor every so often. One opportunity\n to do that presented itself at OOP in Munich where Ralf Westphal invited me to speak\n on distributed system architectures as part of the .Net track. During the proverbial\n hallway discussions we started talking about boxes and lines, but in a profound way...\n [Read more Âť](/ramblings/38_interaction.html)\n\n[What Color Are My Shoes?](ramblings/34_cb.html) September 1, 2005\n\nTwo weeks ago I attended a very small, but special conference on enterprise software\n development. Here is what I came away with.. [Read more Âť](/ramblings/34_cb.html)\n\n[Interface User](ramblings/33_interface.html) August 5, 2005\n\nOne of the biggest perceived fears of authors is that someone publishes a book or\n an article on the same topic just ever so slightly ahead of you that you have done\n all the work but look like a copy cat if you still publish your work. In reality this\n actually does not happen very often (at least not for books) as each author has his\n or her unique style and view even on the same topic. This time, though, Ken Arnold\n stole a little bit of my show by publishing an excellent article in called \"Programmers\n are People, too\". [Read more Âť](/ramblings/33_interface.html)\n\n[Configure This!](ramblings/30_configure.html) July 5, 2005\n\nHaving been to a number of conferences and their attached expo floors recently it\n was not surprising that I was not able to escape the line \"this tool does not require\n programming, everything is done through configuration\". Hearing this tag line for\n the third or fourth time got me wondering, \"what really is the difference between\n coding and configuring?\" [Read more Âť](/ramblings/30_configure.html)\n\n[Will the Real Asynchrony Please Stand Up?](ramblings/28_asynchrony.html) May 15, 2005\n\nOn a recent project we developed a Web services framework that supports asynchronous\n callbacks and asynchronous invocation with polling. The difficulties we had describing\n what we were trying to do to my fellow ThoughtWorkers on other projects prompted me\n to discuss the different forms of asynchrony in a little more detail. [Read more Âť](/ramblings/28_asynchrony.html)\n\n[Are You Driving a DeLorean or a Toyota?](ramblings/27_latency.html) March 30, 2005\n\nWhen you build a distributed system you have to choose between latency and reliability.\n Sticking your head in the sand will not help (and you get sand in your ears...). [Read more Âť](/ramblings/27_latency.html)\n\n[Can You Say \"Synchronous Asymmetry or Asynchronous Symmetry\"?](ramblings/26_symmetry.html) March 25, 2005\n\nIn my perennial battle to free distributed system developers' minds from the perils\n of the call stack mentality I came across another reason why a call stack is not appropriate\n for distributed applications: the call stack is inherently asymmetric. However, when\n building distributed applications, that asymmetry really has no place. [Read more Âť](/ramblings/26_symmetry.html)\n\n[Extensibility Points](ramblings/22_extensibility.html) February 1, 2005\n\nToday's rambling takes a look at the application side of application integration.\n We recently looked at a packaged application under development and looked at criteria\n and options for how this application can live in an evolutionary and connected environment. [Read more Âť](/ramblings/22_extensibility.html)\n\n[SOA's and Drunk Driving](ramblings/21_drunkdriving.html) January 17, 2005\n\nHappy New Year everybody! Over the holidays I tried to sort out some of my thoughts\n on Web services, SOA, architectural styles, coupling and all the other good stuff.\n I started to think about service-oriented architectures as an architectural style\n and how it compares to prior styles, such as distributed component architectures.\n Maybe it was the New Year's mood but I started to think that the evolution of architectural\n styles is a little bit like drunk driving... [Read more Âť](/ramblings/21_drunkdriving.html)\n\n[Enemy of the State](ramblings/20_statelessness.html) December 19, 2004\n\nOne of my favorite pastimes is to argue with people whether a solution is stateless,\n whether it should be stateless and what it means to be stateless in the first place.\n Ideally, the debate would involve alcoholic beverages and the other person would pick\n up the check. After \"loosely coupled\", \"stateless\" must be a close runner-up as the\n ultimate nirvana in buzzword-compliant architectures. It is also equally hotly debated.\n Today, I 'd like to share my view on state and lessness. If you disagree you are welcome\n to argue with me, but you are buying! :-) [Read more Âť](/ramblings/20_statelessness.html)\n\n[Good Composers are Few and Far in Between](ramblings/19_composing.html) November 30, 2004\n\nLoosely coupled architectures are often portrayed as the holy grail of architecture.\n But all too often these architectures turn into what Martin Fowler coined the \"Architect's\n dream but the developer's nightmare\". This time I want to share some of the challenges\n we have found working with loosely coupled architectures and how we addressed them. [Read more Âť](/ramblings/19_composing.html)\n\n[Starbucks Does Not Use Two-Phase Commit](ramblings/18_starbucks.html) November 19, 2004\n\nPeople often criticize asynchronous messaging solutions as too complicated and cumbersome.\n Or, they believe distributed solutions cannot be successful unless they include a\n distributed transaction model. There is little doubt that asynchronous solutions require\n us to think in new ways as we have to deal with concurrency, out-of-sequence issues,\n correlation and other. However, the real world is full of examples of asynchronous\n processes that deal successfully with exactly the same issues. We don't have to go\n further than the local coffee shop... [Read more Âť](/ramblings/18_starbucks.html)\n\n[Look Ma -- No Middleware! Using Event-Driven Architectures inside a JVM.](ramblings/14_edainjvm.html) October 1, 2004\n\nOur most recent project was to replace a batch-oriented stored procedure with a more\n flexible, maintainable and scaleable Java-based architecture. We chose an event-driven\n architectural style that processes events as they occur. For the initial roll-out\n we did not even have to distribute the solution so it all runs in single JVM (if you\n ignore clustering for the moment). Read on to learn more about the implementation\n and our experiences with intra-JVM EDA. [Read more Âť](/ramblings/14_edainjvm.html)\n\n[Dependency Injection in Messaging Architectures](ramblings/13_ioc.html) September 3, 2004\n\nThe notion of Dependency Injection or Inversion of Control has generated quite a bit\n of interest lately. To a large extend, the move towards this architectural style is\n driven by developer's dissatisfaction with strong dependencies of individual components\n on their run-time container (for example, J2EE). These dependencies make it difficult\n or impossible to test components outside of their container, throwing a major monkey\n wrench into test-driven development of these types of applications. Dependency Injection\n avoids these dependencies and therefore improves testability. On a recent project\n we developed an event-driven architecture (intra-JVM, not distributed) and found that\n we could realize many of the same benefits. [Read more Âť](/ramblings/13_ioc.html)\n\n[Visualizing Dependencies](ramblings/11_dependencies.html) July 12, 2004\n\nMany of you have seen my rants on doodleware and top-down modeling. At the same time,\n anyone who has seen my book must believe me when I say that I am a very visual person.\n Is Gregor going schizophrenic (or becoming a hypocrite)? Not at all! I am a big fan\n of visual representations that are harvested from an actual running system and present\n the user with an accurate, big picture view of a working system. I felt it was time\n to put some money (time) where my mouth is and try to build such a solution and see\n what actually happens... [Read more Âť](/ramblings/11_dependencies.html)\n\n[No Escape From Integration](ramblings/07_noescape.html) January 5, 2004\n\nI had never thought about having guest appearances on my ramblings, but this e-mail\n response from my friend Hyon made me laugh hard enough that I think it would be a\n waste not to share it with the community. [Read more Âť](/ramblings/07_noescape.html)\n\n[Hysteresis of Design Decisions](ramblings/06_hysteresis.html) December 31, 2003\n\nDesign decisions can be influenced by many factors. In order to make matters more\n predictable, many architects look for clear-cut borderlines. How complex does my screen\n navigation have to be in order to justify a Front Controller as opposed to a Page\n Controller? How complex does my integration problem have to be to justify use of an\n EAI suite instead of hand wiring the solution? Invariably, the answer is \"it depends\".\n Let's have a closer look at why that is so. [Read more Âť](/ramblings/06_hysteresis.html)\n\n[Doodleware](ramblings/02_doodleware.html) November 1, 2003\n\nMany integration tools offer graphical development tools. Do they really make integration\n easier? [Read more Âť](/ramblings/02_doodleware.html)\n\n---", "znaku_textu": 15537, "slov": 2141, "odkazu": 104, "kodovani": "iso-8859-2", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/ramblings_design.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 06:53:12", "sha256": "a1a4232f28615855d75225ef21a897d3ef32ace84218b9803a0eb345e499db89", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://www.infoq.com/presentations/hohpe-soa-conversations", "http://www.infoq.com/", "http://www.infoq.com/presentations/hohpe-soa-development", "http://www.drdobbs.com/an-asynchronous-world/184415001", "https://sites.google.com/site/gcodejp/slides/ProgrammingCloud_QCon.pdf", "https://architectelevator.com/blog"]} {"url": "https://www.enterpriseintegrationpatterns.com/ramblings_events.html", "titulek": "Gregor’s Ramblings on Events - Enterprise Integration Patterns", "h1": "", "popis": "", "klicova_slova": "", "kanonicka": "", "jazyk": "", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [], "markdown": "Gregor’s Ramblings on Events\n\n---\n\n| My latest thoughts on integration architecture: |\n| --- |\n| [Queues invert control flow but require flow control](/ramblings/queues_flow_control.html) |\n| [Control Flow—The Other Half of Integration Patterns](/ramblings/queues_control_flow.html) |\n| [Event-driven = Loosely coupled? Not so fast!](/ramblings/eventdriven_coupling.html) |\n\n| [A Decade of Enterprise Integration Patterns](/articles.html)\n\r\n (IEEE Software) |\n| --- |\n| [20 Years of Patterns' Impact](/articles.html) \n\r\n (IEEE Software) |\n| [Conversations Between Loosely Coupled Services](http://www.infoq.com/presentations/hohpe-soa-conversations) \n\r\n (Video on [InfoQ](http://www.infoq.com)) |\n| [Developing in a Service-oriented World](http://www.infoq.com/presentations/hohpe-soa-development) \n\r\n (Video on [InfoQ](http://www.infoq.com)) |\n| [SOA Patterns - New Insights or Recycled Knowledge?](/docs/SoaPatterns.pdf)\n\r\n (Whitepaper) |\n| [Let's Have a Conversation](/docs/IEEE_IC_Conversations.pdf)\n(IEEE Internet Computing) |\n| [Programming Without a Call Stack - Event-driven Architectures](/docs/EDA.pdf)\n(ObjektSpektrum, 2006) |\n| [Your Coffee Shop Does Not Use Two-Phase Commit](/docs/IEEE_Software_Design_2PC.pdf)\n\r\n (IEEE Software) |\n| [Developing in a Service-Oriented World](/docs/SOA_World.pdf)\n(ThoughtWorks Whitepaper) |\n| [An Asynchronous World](http://www.drdobbs.com/an-asynchronous-world/184415001)\n\r\n (Software Development) |\n\n| [Nearfield Communication (NFC) in Japan](/docs/NfcOopHohpe.pdf)\n(OOP 2012) |\n| --- |\n| [Embedded OSS](/docs/EmbeddedOop.pdf)\n(OOP 2012) |\n| [Programming the Cloud](https://sites.google.com/site/gcodejp/slides/ProgrammingCloud_QCon.pdf)\n(QCOn Tokyo 2010) |\n| [Distributed Programming the Google Way](/docs/DistributedProgrammingGoogle.pdf)\n(Devoxx 2009) |\n| [Developing in a Service-Oriented World](/docs/hohpe_developing_in_soa_world.pdf)\n(SOACon 2007) |\n| [Programming without a Call Stack: Event-driven Architectures](/docs/hohpe_event_driven_architectures.pdf)\n(SOACon 2007) |\n| [Software Visualization and Model Extraction](/docs/TSS_software_visualization.pdf)\n(TheServerSide) |\n| [Where did all my beatiful code go?](/docs/SpringOneKeynotePub.pdf)\n(SpringOne, 2006) |\n| [Conversations Between Loosely Coupled Systems](/docs/Conversations_loosely_coupled.pdf)\n(SD West, 2006) |\n| [Enterprise Integration Patterns](/docs/jaoo_hohpeg_enterpriseintegrationpatterns.pdf)\n(JAOO, 2003) |\n\nThis blog chronicles my journey with asynchronous and distributed system design over\n two decades.\n \n These are my Ramblings related to **Events** [See [all Ramblings](/ramblings.html)]. \n Subscribe to my ramblings via [RSS](ramblings.rss).\n\nFind my posts on IT strategy, enterprise architecture, and digital transformation\n at [ArchitectElevator.com](https://architectelevator.com/blog).\n\n---\n\n[Queues invert control flow but require flow control](ramblings/queues_flow_control.html) July 27, 2024\n\nQueues are key elements of any asynchronous system because they can invert control\n flow. Their ability to re-shape traffic enables high-throughput systems that behave\n gracefully under heavy load. But all that magic doesn't come for free: to function\n well, queues require flow control [Read more Âť](/ramblings/queues_flow_control.html)\n\n[Event-driven = Loosely coupled? Not so fast!](ramblings/eventdriven_coupling.html) June 20, 2024\n\nEvent-driven architectures (EDAs) are frequently pitched as loosely coupled, when\n compared to other forms of integration. Coupling is a multi-faceted and nuanced property,\n so as architects we should have a closer look. [Read more Âť](/ramblings/eventdriven_coupling.html)\n\n[The Many Facets of Coupling](ramblings/coupling_facets.html) June 10, 2024\n\nCoupling is integration's magic word. Despite entire books being written on the subject,\n it's still widely recited as a \"loose coupling is good\" mantra. Coupling deserves\n better, so let's clarify the dimensions and nuances of coupling. [Read more Âť](/ramblings/coupling_facets.html)\n\n[25 Years of OOP](ramblings/93_oop2016.html) February 5, 2016\n\nOOP is one of the conferences that originated in the \"OO\" era of the early to mid-nineties.\n While most of these events have shed the double \"O\" -- OOPSLA has become SPLASH and\n JAOO has become GOTO, OOP stayed true to its name and remains one of the premier German\n developer conferences. This year OOP celebrated its 25th anniversary. Here are my\n impressions. [Read more Âť](/ramblings/93_oop2016.html)\n\n[SATURN Conference 2015](ramblings/84_saturn.html) May 1, 2015\n\nI have not blogged about events in a while, but SATURN 2015 has been an amazing event\n that's well worth rambling about. [Read more Âť](/ramblings/84_saturn.html)\n\n[Clouds and Integration Patterns at JavaOne](ramblings/71_javaone.html) OCT 1, 2009\n\nI joined JavaOne this year as a panelist on Cloud Computing. Here my belated impressions\n on this year's JavaOne. [Read more Âť](/ramblings/71_javaone.html)\n\n[Google I/O](ramblings/69_googleio.html) June 5, 2009\n\nI guess I am the last person to blog about Google I/O. By now, everyone should have\n read about Wave and the free Android phone (with 30 day SIM!). I am just now getting\n to write this up on my flight back to Japan, so I’ll give you my personal impressions\n and viewpoints, if you are still interested. [Read more Âť](/ramblings/69_googleio.html)\n\n[Google Gears Live From Japan](ramblings/65_gears.html) December 26, 2007\n\nSince Google's Developer Day, I have been promising to speak more regularly about\n Google products. This is a bit of a balancing act for me, as I want to avoid the slippery\n slope of becoming a corporate sock puppet. I also don't want to neglect my interest\n in connected systems, SOA, and asynchronous messaging. With the Internet turning into\n the largest connected system, the gap between Web-based technologies and connected\n systems design has become significantly smaller, allowing me to combine interests\n and Google developer products more naturally. Of course, the fact that Google is rolling\n out new developer products and APIs around the clock, does not hurt either. [Read more Âť](/ramblings/65_gears.html)\n\n[Double-Dipping: OOPSLA and Colorado Software Summit](ramblings/64_oopslacss.html) October 27, 2007\n\nI am just returning from a trip to Montreal and Keystone, CO for the OOPSLA and Colorado\n Software Summit conferences. I spoke on SOA Patterns, workshopped my conversation\n pattern paper, and gave six talks on event-driven architectures and building mashups\n using Yahoo! Pipes and Google Mashup Editor. Phew! [Read more Âť](/ramblings/64_oopslacss.html)\n\n[Bubble 2.0](ramblings/63_bubble20.html) October 15, 2007\n\nWhat’s wrong with this picture? I crash a stylish party at a pricey venue (SF Moma).\n I have no business being there, nor do I have the required invitation. I nonchalantly\n talk my way in, and hit the crowd with two fellow geeks. Within a few seconds an attractive\n blonde with a low cut dress approaches us and engages us in a conversation. We grab\n a few free drinks, indulge on the tirelessly circulating horse d’oeuvres, and talk\n to the blonde. [Read more Âť](/ramblings/63_bubble20.html)\n\n[Enterprise Mashup Summit](ramblings/62_mashupsummit.html) October 1, 2007\n\nI attended the Enterprise Mashup Summit last Friday. It was a small-ish event, with\n about 50 people attending. We saw about 10 presentations, mostly by vendors plus an\n open forum. None of the presentations were too sales-ey, which gave the event a nice\n workshop feel. Given the limited size, it would have been nice to have more time for\n interaction. Here is a quick rundown of my impressions. [Read more Âť](/ramblings/62_mashupsummit.html)\n\n[Facebook Developer Garage](ramblings/61_facebookgarage.html) September 25, 2007\n\nThe Internet is cruel. So you finally made the leap from EAI stone age to become a\n hip mashup developer. Now it turns out you are once again behind the curve, Unless\n you've written your won Facebook app and scored a million or so installs you are just\n a worm in the dust of the global data superhighway. Join the club. [Read more Âť](/ramblings/61_facebookgarage.html)\n\n[Mashup Camp](ramblings/58_mashupcamp.html) July 18, 2007\n\nI attended the first day of Mashup Camp today. The event took place at the Computer\n History Museum, which is actually walking distance from my office. Ironically, the\n only day in the year when something actually happens within walking distance in Silicon\n Valley it had to rain. Oh well. [Read more Âť](/ramblings/58_mashupcamp.html)\n\n[Users Like Events](ramblings/56_events.html) July 12, 2007\n\nTwo weeks ago I presented a keynote at the DEBS (Distributed Event-based Systems)\n conference. The emphasis of the conference was on academic work in the field but event-based\n systems are rapidly gaining traction in commercial applications as CEP (Complex Event\n Processing) is becoming a household name like SOA (equally difficult to pin down).\n All this talk about events reminded me that applications on the Web are becoming increasingly\n event driven. [Read more Âť](/ramblings/56_events.html)\n\n[Google Developer Day](ramblings/54_gdd.html) May 31, 2007\n\nLast week Google held a developer day in 10 cities around the world. Here are my take-aways. [Read more Âť](/ramblings/54_gdd.html)\n\n[JavaOne 2007](ramblings/51_javaone.html) May 11, 2007\n\nJavaOne is one of the few geek conferences that take place in San Francisco. The content\n can be hit or miss but the proximity and the good parties always make it worth stopping\n by. I also had to fulfil my duty to recruit the last smart software engineer in the\n Bay Area to Google. [Read more Âť](/ramblings/51_javaone.html)\n\n[Microsoft MVP Summit](ramblings/49_mvpsummit.html) March 25, 2007\n\nEven though I have been working for the (self-declared) non-evil empire for a while\n now, I still have a lot of ties to the Microsoft community, even beyond drinking Weissbier\n with Christian Weyer. I am particularly proud that I have been able to maintain my\n MVP status, Microsoft's Most Valuable Professional award. Here my (brief) report from\n the MVP Summit in Seattle & Redmond.\n [Read more Âť](/ramblings/49_mvpsummit.html)\n\n[JAOO 2006](ramblings/47_jaoo.html) Oct 6, 2006\n\nI am just riding the train back from Aarhus (the second largest city in Denmark in\n case your geography skills are as weak as mine were before my first trip here) to\n Copenhagen. Many speakers consistently rave about JAOO. The speaker roster, the logistics,\n the attendees - everything just seems to be very high quality and run very smoothly.\n This year I was nominated to be track host for the SOA track entitled \"SOA - What's\n Left to Say?\" [Read more Âť](/ramblings/47_jaoo.html)\n\n[fooCamp](ramblings/46_foo.html) Aug 28, 2006\n\nThis year I got to go to fooCamp! What is fooCamp? It is sort of like Burning Man\n for techno geeks. But just as Burning Man has gone pretty high tech fooCampers started\n to have more fun by burning things. It's difficult to put the experience into words... [Read more Âť](/ramblings/46_foo.html)\n\n[Dagstuhl Seminar](ramblings/44_dagstuhl.html) Aug 20, 2006\n\nI just returned from a trip to Germany to attend a workshop on The Role of Business\n Processes in Service Oriented Architecture. Besides a guaranteed top score in buzzword\n bingo the workshop provided a unique opportunity to connect thought leaders from academia\n and industry over the course of a week. The attendee roster sported the usual industry\n heavyweights, i.e., Microsoft, IBM, SAP, making me proud to add Google to the list.\n [Read more Âť](/ramblings/44_dagstuhl.html)\n\n[Revenge of the Nerds - OOPSLA 2005](ramblings/37_oopsla.html) October 23, 2005\n\nRemember the people from high school who had strange hobbies and could never get a\n date? Well, they all grew up and they are running a conference now, the Object-Oriented\n Programming, Systems, Languages, and Applications conference, OOPSLA in short. While\n the conference logistics can be quirky at times, the content is top notch. And it\n seems like most of them have managed to get a date after all. [Read more Âť](/ramblings/37_oopsla.html)\n\n[Googlesoft](ramblings/35_pdc.html) September 18 2005\n\n(Professional) life can be a little ironic sometimes. Now that I work for Google I\n was able to go to Microsoft's Professional Developer Conference aka PDC for the first\n time. It was actually very nice to be able to stay in touch with the \"other side\". [Read more Âť](/ramblings/35_pdc.html)\n\n[What Color Are My Shoes?](ramblings/34_cb.html) September 1, 2005\n\nTwo weeks ago I attended a very small, but special conference on enterprise software\n development. Here is what I came away with.. [Read more Âť](/ramblings/34_cb.html)\n\n[TechEd 2005 Europe: Event-Driven Architectures](ramblings/31_techededa.html) July 11, 2005\n\nI just returned from Microsoft TechEd Europe in Amsterdam. I was lucky enough to present\n on event-driven architectures in front of almost 600 people. Since multiple people\n asked me for the source files, I figured I'd post a quick summary of the talk, including\n the source files. [Read more Âť](/ramblings/31_techededa.html)\n\n[Microsoft TechEd 2005 Digest](ramblings/29_teched.html) June 7, 2005\n\nThis year I actually missed putting in a proposal for TechEd. However, that has not\n kept me from actually presenting :-) So I am here fighting the Orlando Summer humidity\n together with 11000 other geeks and am actually having a good time. [Read more Âť](/ramblings/29_teched.html)\n\n[Patterns and Practices Summit](ramblings/25_pnpSummit.html) March 15, 2005\n\nIt seems like I spend all my time at conferences. I am speaking at the Patterns and\n Practices Summit and SD West this week. This one is setup by Keith Pleas in close\n collaboration with the Patterns and Practices group at Microsoft. So yes, I am still\n promiscuous when it comes to platforms. But it makes me feel better that Ted Neward\n seems to beat me in that category, though. [Read more Âť](/ramblings/25_pnpSummit.html)\n\n[TSS Symposium Redux](ramblings/24_tss2005.html) March 14, 2005\n\nA number of people have already about the TSSS but that can't stop me from occupying\n my fair share of the cyberspace with my impressions. [Read more Âť](/ramblings/24_tss2005.html)\n\n[BTW Conference](ramblings/23_btw2005.html) March 6, 2005\n\nOK, so I am officially the slowest blogger on the 'Net... last week I attended two\n conferences, the BTW in Karlsruhe, Germany and TheServerSide Symposium in Las Vegas.\n Too bad they are over 6000 miles apart :-( [Read more Âť](/ramblings/23_btw2005.html)\n\n[ACM Middleware Conference: Pub-Sub and Related Topics](ramblings/17_acmconference.html) October 25, 2004\n\nI just attended the conference in Toronto (I thought a 1/2 day tutorial in integration\n patterns). This conference is more of an academic events when compared to some of\n the purely commercial conferences like JavaOne. It was interesting to see what academia\n are working on these days in the areas of middleware and SOA. [Read more Âť](/ramblings/17_acmconference.html)\n\n[JavaOne Redux](ramblings/10_javaone.html) July 2, 2004\n\nFor a change I spoke at a conference without traveling halfway around the world. At\n over 15,000 attendees, JavaOne is one of the largest developer conferences. Unfortunately,\n the signal-to-noise ratio is not always all that great, but it is still a good place\n to meet old and new friends. This year's conference was littered with talk and demos\n on SOA, ESB, Web Services, orchestration etc. Here my impressions... [Read more Âť](/ramblings/10_javaone.html)\n\n---", "znaku_textu": 15412, "slov": 2115, "odkazu": 112, "kodovani": "iso-8859-2", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/ramblings_events.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 06:53:13", "sha256": "13dfc3e5a9ddcb8d3d106711c946dbdf5b3c57f35586fb70b612016a5811152d", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://www.infoq.com/presentations/hohpe-soa-conversations", "http://www.infoq.com/", "http://www.infoq.com/presentations/hohpe-soa-development", "http://www.drdobbs.com/an-asynchronous-world/184415001", "https://sites.google.com/site/gcodejp/slides/ProgrammingCloud_QCon.pdf", "https://architectelevator.com/blog"]} {"url": "https://www.enterpriseintegrationpatterns.com/ramblings_gregor.html", "titulek": "Gregor’s Ramblings on Gregor - Enterprise Integration Patterns", "h1": "", "popis": "", "klicova_slova": "", "kanonicka": "", "jazyk": "", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [], "markdown": "Gregor’s Ramblings on Gregor\n\n---\n\n| My latest thoughts on integration architecture: |\n| --- |\n| [Queues invert control flow but require flow control](/ramblings/queues_flow_control.html) |\n| [Control Flow—The Other Half of Integration Patterns](/ramblings/queues_control_flow.html) |\n| [Event-driven = Loosely coupled? Not so fast!](/ramblings/eventdriven_coupling.html) |\n\n| [A Decade of Enterprise Integration Patterns](/articles.html)\n\r\n (IEEE Software) |\n| --- |\n| [20 Years of Patterns' Impact](/articles.html) \n\r\n (IEEE Software) |\n| [Conversations Between Loosely Coupled Services](http://www.infoq.com/presentations/hohpe-soa-conversations) \n\r\n (Video on [InfoQ](http://www.infoq.com)) |\n| [Developing in a Service-oriented World](http://www.infoq.com/presentations/hohpe-soa-development) \n\r\n (Video on [InfoQ](http://www.infoq.com)) |\n| [SOA Patterns - New Insights or Recycled Knowledge?](/docs/SoaPatterns.pdf)\n\r\n (Whitepaper) |\n| [Let's Have a Conversation](/docs/IEEE_IC_Conversations.pdf)\n(IEEE Internet Computing) |\n| [Programming Without a Call Stack - Event-driven Architectures](/docs/EDA.pdf)\n(ObjektSpektrum, 2006) |\n| [Your Coffee Shop Does Not Use Two-Phase Commit](/docs/IEEE_Software_Design_2PC.pdf)\n\r\n (IEEE Software) |\n| [Developing in a Service-Oriented World](/docs/SOA_World.pdf)\n(ThoughtWorks Whitepaper) |\n| [An Asynchronous World](http://www.drdobbs.com/an-asynchronous-world/184415001)\n\r\n (Software Development) |\n\n| [Nearfield Communication (NFC) in Japan](/docs/NfcOopHohpe.pdf)\n(OOP 2012) |\n| --- |\n| [Embedded OSS](/docs/EmbeddedOop.pdf)\n(OOP 2012) |\n| [Programming the Cloud](https://sites.google.com/site/gcodejp/slides/ProgrammingCloud_QCon.pdf)\n(QCOn Tokyo 2010) |\n| [Distributed Programming the Google Way](/docs/DistributedProgrammingGoogle.pdf)\n(Devoxx 2009) |\n| [Developing in a Service-Oriented World](/docs/hohpe_developing_in_soa_world.pdf)\n(SOACon 2007) |\n| [Programming without a Call Stack: Event-driven Architectures](/docs/hohpe_event_driven_architectures.pdf)\n(SOACon 2007) |\n| [Software Visualization and Model Extraction](/docs/TSS_software_visualization.pdf)\n(TheServerSide) |\n| [Where did all my beatiful code go?](/docs/SpringOneKeynotePub.pdf)\n(SpringOne, 2006) |\n| [Conversations Between Loosely Coupled Systems](/docs/Conversations_loosely_coupled.pdf)\n(SD West, 2006) |\n| [Enterprise Integration Patterns](/docs/jaoo_hohpeg_enterpriseintegrationpatterns.pdf)\n(JAOO, 2003) |\n\nThis blog chronicles my journey with asynchronous and distributed system design over\n two decades.\n \n These are my Ramblings related to **Gregor** [See [all Ramblings](/ramblings.html)]. \n Subscribe to my ramblings via [RSS](ramblings.rss).\n\nFind my posts on IT strategy, enterprise architecture, and digital transformation\n at [ArchitectElevator.com](https://architectelevator.com/blog).\n\n---\n\n[Reflecting on Enterprise Integration Patterns](ramblings/66_fouryears.html) January 1, 2008\n\nThe end of the year is always the time to reflect on the past happenings. My friends\n in Japan often send a New Year's card with 12 pictures, each showing the significant\n event during the month. I am not sure something significant related to Enterprise\n Integration Patterns happened each month, but I think it's still nice to reflect a\n little bit on the history and current state of the patterns. After all, the patterns\n have matured from a draft paper to being adopted as the lingua franca for a number\n of open source messaging projects.\n [Read more »](/ramblings/66_fouryears.html)\n\n[I May Be a Flake, But At Least I Am Published!](ramblings/50_publications.html) May 2, 2007\n\nI have been pretty quiet recently, but I finally have some results to show. The current\n issue of IEEE Internet Computing (May/June 2007) contains my guest column for \"Toward\n Integration\". Also, I authored one chapter in the upcoming book \"SOA Expertenwissen\"\n (in German).\n [Read more »](/ramblings/50_publications.html)\n\n[Ramblings Now In Audio](ramblings/36_podcast.html) October 12, 2005\n\nTwo years ago you were not cool if you did not have a blog. Today you are not cool\n if you have not done a podcast. Of course I cannot allow myself to fall behind, so\n here is my podcast on layered applications: [Read more »](/ramblings/36_podcast.html)\n\n[New Packaging, Same Good Content](ramblings/32_google.html) August 1, 2005\n\nAs many people have already heard, I changed employers. Before the rumor mill completes\n its work entirely, here a few comments from my end. [Read more »](/ramblings/32_google.html)\n\n---", "znaku_textu": 4426, "slov": 487, "odkazu": 62, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/ramblings_gregor.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 06:53:14", "sha256": "32193ec544d5618a9f7127d510c0f715b01690579b5d90c24a777010a7a3ec5d", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://www.infoq.com/presentations/hohpe-soa-conversations", "http://www.infoq.com/", "http://www.infoq.com/presentations/hohpe-soa-development", "http://www.drdobbs.com/an-asynchronous-world/184415001", "https://sites.google.com/site/gcodejp/slides/ProgrammingCloud_QCon.pdf", "https://architectelevator.com/blog"]} {"url": "https://www.enterpriseintegrationpatterns.com/ramblings_integration.html", "titulek": "Gregor’s Ramblings on Integration - Enterprise Integration Patterns", "h1": "", "popis": "", "klicova_slova": "", "kanonicka": "", "jazyk": "", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [], "markdown": "Gregor’s Ramblings on Integration\n\n---\n\n| My latest thoughts on integration architecture: |\n| --- |\n| [Queues invert control flow but require flow control](/ramblings/queues_flow_control.html) |\n| [Control Flow—The Other Half of Integration Patterns](/ramblings/queues_control_flow.html) |\n| [Event-driven = Loosely coupled? Not so fast!](/ramblings/eventdriven_coupling.html) |\n\n| [A Decade of Enterprise Integration Patterns](/articles.html)\n\r\n (IEEE Software) |\n| --- |\n| [20 Years of Patterns' Impact](/articles.html) \n\r\n (IEEE Software) |\n| [Conversations Between Loosely Coupled Services](http://www.infoq.com/presentations/hohpe-soa-conversations) \n\r\n (Video on [InfoQ](http://www.infoq.com)) |\n| [Developing in a Service-oriented World](http://www.infoq.com/presentations/hohpe-soa-development) \n\r\n (Video on [InfoQ](http://www.infoq.com)) |\n| [SOA Patterns - New Insights or Recycled Knowledge?](/docs/SoaPatterns.pdf)\n\r\n (Whitepaper) |\n| [Let's Have a Conversation](/docs/IEEE_IC_Conversations.pdf)\n(IEEE Internet Computing) |\n| [Programming Without a Call Stack - Event-driven Architectures](/docs/EDA.pdf)\n(ObjektSpektrum, 2006) |\n| [Your Coffee Shop Does Not Use Two-Phase Commit](/docs/IEEE_Software_Design_2PC.pdf)\n\r\n (IEEE Software) |\n| [Developing in a Service-Oriented World](/docs/SOA_World.pdf)\n(ThoughtWorks Whitepaper) |\n| [An Asynchronous World](http://www.drdobbs.com/an-asynchronous-world/184415001)\n\r\n (Software Development) |\n\n| [Nearfield Communication (NFC) in Japan](/docs/NfcOopHohpe.pdf)\n(OOP 2012) |\n| --- |\n| [Embedded OSS](/docs/EmbeddedOop.pdf)\n(OOP 2012) |\n| [Programming the Cloud](https://sites.google.com/site/gcodejp/slides/ProgrammingCloud_QCon.pdf)\n(QCOn Tokyo 2010) |\n| [Distributed Programming the Google Way](/docs/DistributedProgrammingGoogle.pdf)\n(Devoxx 2009) |\n| [Developing in a Service-Oriented World](/docs/hohpe_developing_in_soa_world.pdf)\n(SOACon 2007) |\n| [Programming without a Call Stack: Event-driven Architectures](/docs/hohpe_event_driven_architectures.pdf)\n(SOACon 2007) |\n| [Software Visualization and Model Extraction](/docs/TSS_software_visualization.pdf)\n(TheServerSide) |\n| [Where did all my beatiful code go?](/docs/SpringOneKeynotePub.pdf)\n(SpringOne, 2006) |\n| [Conversations Between Loosely Coupled Systems](/docs/Conversations_loosely_coupled.pdf)\n(SD West, 2006) |\n| [Enterprise Integration Patterns](/docs/jaoo_hohpeg_enterpriseintegrationpatterns.pdf)\n(JAOO, 2003) |\n\nThis blog chronicles my journey with asynchronous and distributed system design over\n two decades.\n \n These are my Ramblings related to **Integration** [See [all Ramblings](/ramblings.html)]. \n Subscribe to my ramblings via [RSS](ramblings.rss).\n\nFind my posts on IT strategy, enterprise architecture, and digital transformation\n at [ArchitectElevator.com](https://architectelevator.com/blog).\n\n---\n\n[Queues invert control flow but require flow control](ramblings/queues_flow_control.html) July 27, 2024\n\nQueues are key elements of any asynchronous system because they can invert control\n flow. Their ability to re-shape traffic enables high-throughput systems that behave\n gracefully under heavy load. But all that magic doesn't come for free: to function\n well, queues require flow control [Read more Âť](/ramblings/queues_flow_control.html)\n\n[Control Flow—The Other Half of Integration Patterns](ramblings/queues_control_flow.html) July 30, 2024\n\nWhen describing messaging systems, it's natural to focus on data flow. However, control\n flow is what gives those systems their critical runtime properties like resilience\n or low latency. It's time to make control flow a first-class consideration. [Read more Âť](/ramblings/queues_control_flow.html)\n\n[Event-driven = Loosely coupled? Not so fast!](ramblings/eventdriven_coupling.html) June 20, 2024\n\nEvent-driven architectures (EDAs) are frequently pitched as loosely coupled, when\n compared to other forms of integration. Coupling is a multi-faceted and nuanced property,\n so as architects we should have a closer look. [Read more Âť](/ramblings/eventdriven_coupling.html)\n\n[The Many Facets of Coupling](ramblings/coupling_facets.html) June 10, 2024\n\nCoupling is integration's magic word. Despite entire books being written on the subject,\n it's still widely recited as a \"loose coupling is good\" mantra. Coupling deserves\n better, so let's clarify the dimensions and nuances of coupling. [Read more Âť](/ramblings/coupling_facets.html)\n\n[Serverless Loan Broker @ GCP](ramblings/loanbroker_gcp_workflows.html) May 20, 2022\n\nDo serverless solutions lock you in? Let's find out by porting / rebuilding the Serverless\n Loan Broker on top of Google's Cloud Platform (GCP). [Read more Âť](/ramblings/loanbroker_gcp_workflows.html)\n\n[Serverless Loan Broker @ AWS, Part 5: Integration Patterns with CDK](ramblings/loanbroker_cdk.html) Jan 25, 2022\n\nInfrastructure as Code (IaC) brings repeatability into the provisioning and deployment\n of cloud applications. However, the vocabulary used by most automation tools describes\n cloud platform resources as compared to the application's intent. As serverless applications\n take us further away from the infrastructure, we should also find better abstractions\n to express our automation. Perhaps, Enterprise Integration Patterns give us a head\n start? [Read more Âť](/ramblings/loanbroker_cdk.html)\n\n[Serverless Loan Broker @ AWS, Part 4: Automation](ramblings/loanbroker_automation.html) November 30, 2021\n\nInfrastructure as Code (IaC) has a whole new meaning for serverless applications.\n Rather than provision resources (the serverless frameworks do that for us), automation\n determines the system composition and configuration. As expected, quite a few options\n are available from simple command line to programming frameworks. Time to have a look. [Read more Âť](/ramblings/loanbroker_automation.html)\n\n[Serverless Loan Broker @AWS, Part 3: Publish-Subscribe with SNS](ramblings/loanbroker_stepfunctions_pubsub.html) July 20, 2021\n\nPart 3 of the mini-series on implementing the EIP Loan Broker as a serverless solution\n with AWS Step Functions uses a Publish-Subscribe Channel and a stand-alone Aggregator\n to request and process loan quotes. [Read more Âť](/ramblings/loanbroker_stepfunctions_pubsub.html)\n\n[Loan Broker @AWS, Part 2: Recipient List](ramblings/loanbroker_stepfunctions_recipient_list.html) July 20, 2021\n\nIn part 2 of this blog series I implement the Loan Broker Example using a Recipient\n List pattern, implemented in DynamoDB, Step Functions, and Lambda. [Read more Âť](/ramblings/loanbroker_stepfunctions_recipient_list.html)\n\n[Loan Broker Implementation with AWS Step Functions](ramblings/loanbroker_stepfunctions.html) July 20, 2021\n\nA lot has happened since we implemented the Loan Broker Example in EIP: we have the\n cloud, serverless computing, machine learning, service meshes and all sorts of other\n bells and whistles. Nevertheless, the integration patterns have passed the test of\n time as we shall see by implementing the original loan broker example with AWS Lambda\n and AWS Step Functions. [Read more Âť](/ramblings/loanbroker_stepfunctions.html)\n\n[Same Old Architecture - Best of Ramblings](ramblings/85_sameoldarchitecture.html) May 15, 2015\n\nArchitects can often be found commenting or complaining that many things in IT are\n the same old stuff in new packaging, created by marketing departments who were in\n need of a new buzzword. For example, aren't microservices really just SOA done right\n while SOA itself stands for \"Same Old Architecture\"? And the whole reactive movement\n seems to have re-discovered callbacks. Maybe there is some truth in this as at the\n recent SATURN conferences I found myself saying more often than I had expected \"I\n blogged about this\". So let's see which of my past ramblings are still relevant these\n days. [Read more Âť](/ramblings/85_sameoldarchitecture.html)\n\n[Free Gift with Subscription (Pattern)](ramblings/83_subscribing.html) APR 26, 2015\n\nDiscussing the Google cloud Pub/Sub system in the last rambling reminded me that the\n Publish-subscribe Channel pattern makes for a good example of the subtle but important\n difference between Messaging Patterns and Conversation Patterns. This comparison is\n timely as I picked up documenting Conversation Patterns again. [Read more Âť](/ramblings/83_subscribing.html)\n\n[Google Cloud Pub/Sub](ramblings/82_googlepubsub.html) APR 8, 2015\n\nGoogle released the beta version of their publish-subscribe API just a few weeks ago.\n I show how to build a very simple demo app using the Java API and map the functionality\n to integration patterns to illustrate the design choices the team made. [Read more Âť](/ramblings/82_googlepubsub.html)\n\n[RESTful Conversations](ramblings/81_restconversation.html) MAR 15, 2015\n\nAs indicated a good while ago I spent some time thinking about patterns that instead\n of following a message through multiple systems, looks at the message exchange over\n time between a (mostly) fixed set of systems. I call these message exchanges \"conversations\".\n Sadly my writing efforts on Conversation Patterns fell very much asleep around 2008,\n partly due to my fear that with the rise of REST, stateful conversations between systems\n would step into the background as most integration problems are now solved with a\n simple POST or GET. A presentation and conversation at Frank Leymann's IaaS PhD Seminar\n enlightened me that this is not at all true: systems following the REST architectural\n style very much engage in conversations. [Read more Âť](/ramblings/81_restconversation.html)\n\n[Mashups Tools Market](ramblings/60_mashupmarket.html) August 18, 2007\n\nAs I reported from Mashup Camp, an increasing number of vendors play in the mashup\n space. I am obviously not the only one who noticed. Dion Hincliffe recently discussed\n 17 different mashup tools. Maybe I have an MBA hidden inside me (or 10 years of consulting\n left some marks), but I was temped to conduct my own market segmentation. Gartner\n would be proud of me. Just be aware that my analysis is not meant to be comprehensive\n and all statements carry a 0.5 probability of being right :-) [Read more Âť](/ramblings/60_mashupmarket.html)\n\n[Mashups == EAI 2.0?](ramblings/59_mashupeai.html) July 27, 2007\n\nMashups pull data from different sources, aggregate and transform the data to be used\n in different contexts. EAI solutions pull data from different sources, aggregate and\n transform the data to be used in different contexts. Huh? [Read more Âť](/ramblings/59_mashupeai.html)\n\n[I Want My Events](ramblings/57_pipes.html) July 15, 2007\n\nLast time I claimed that users like events. This time I want to show how I fulfilled\n my personal desire for events off the Web. I built two solutions to alert me to new\n book reviews on Amazon, one using a Python script, the other using Yahoo! Pipes. [Read more Âť](/ramblings/57_pipes.html)\n\n[Integration Patterns in the Wild](ramblings/43_wildpatterns.html) July 20, 2006\n\nHanging out with my intellectual drinking buddies reminded me that our integration\n patterns have been embraced by a fair number of commercial as well as open source\n projects. In my eyes this is really the best indicator of success for a pattern language.\n Latin, a dead language used mostly by doctors to sound more knowledgeable, is not\n a good model for a pattern language. You want a language that is alive and actually\n used by people. Talking to a few folks who did embrace our language motivated me to\n take a quick survey of the places where our patterns pop up. [Read more Âť](/ramblings/43_wildpatterns.html)\n\n[Integration Styles](ramblings/08_integrationstyles.html) May 5, 2004\n\nA number of integration books classify integration into styles such as database integration,\n functional integration and so on. However, on closer examination it turns out that\n there is a fair amount of confusion about what these styles really mean. Let me give\n my view. [Read more Âť](/ramblings/08_integrationstyles.html)\n\n[What Makes a Good Integration Developer?](ramblings/04_skills.html) November 25, 2003\n\nWhen we assess the quality of a software engineer we don't look as much how long he\n has worked with a specific language but rather whether he or she has a good grasp\n of the underlying models and techniques, such as OO design, systems architecture.\n Still most EAI job offers sound like a software catalog: \"x years TIBCO IntegrationManager\",\n \"y years Vitria Businessware\" etc. etc. Some thoughts on what we should be really\n looking for... [Read more Âť](/ramblings/04_skills.html)\n\n[Hub and Spoke [or] Zen and the Art of Message Broker Maintenance](ramblings/03_hubandspoke.html) November 12, 2003\n\nThe Hub-and-Spoke concept manifests itself in many ways in integration solution. Like\n any popular concept, it can sometimes cause as much confusion as it provides help. [Read more Âť](/ramblings/03_hubandspoke.html)\n\n[Doodleware](ramblings/02_doodleware.html) November 1, 2003\n\nMany integration tools offer graphical development tools. Do they really make integration\n easier? [Read more Âť](/ramblings/02_doodleware.html)\n\n[Integration Appliances](ramblings/01_appliances.html) October 1, 2003\n\nIntegration appliances aim to make integration cheaper faster and more reliable. Is\n this technology ready for prime time? [Read more Âť](/ramblings/01_appliances.html)\n\n---", "znaku_textu": 13200, "slov": 1672, "odkazu": 95, "kodovani": "iso-8859-2", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/ramblings_integration.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 06:53:15", "sha256": "433086565fcd5fc2de108f532dce55e58957323278d22cd6e6cd40ce6c8d75bc", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://www.infoq.com/presentations/hohpe-soa-conversations", "http://www.infoq.com/", "http://www.infoq.com/presentations/hohpe-soa-development", "http://www.drdobbs.com/an-asynchronous-world/184415001", "https://sites.google.com/site/gcodejp/slides/ProgrammingCloud_QCon.pdf", "https://architectelevator.com/blog"]} {"url": "https://www.enterpriseintegrationpatterns.com/ramblings_messaging.html", "titulek": "Gregor’s Ramblings on Messaging - Enterprise Integration Patterns", "h1": "", "popis": "", "klicova_slova": "", "kanonicka": "", "jazyk": "", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [], "markdown": "Gregor’s Ramblings on Messaging\n\n---\n\n| My latest thoughts on integration architecture: |\n| --- |\n| [Queues invert control flow but require flow control](/ramblings/queues_flow_control.html) |\n| [Control Flow—The Other Half of Integration Patterns](/ramblings/queues_control_flow.html) |\n| [Event-driven = Loosely coupled? Not so fast!](/ramblings/eventdriven_coupling.html) |\n\n| [A Decade of Enterprise Integration Patterns](/articles.html)\n\r\n (IEEE Software) |\n| --- |\n| [20 Years of Patterns' Impact](/articles.html) \n\r\n (IEEE Software) |\n| [Conversations Between Loosely Coupled Services](http://www.infoq.com/presentations/hohpe-soa-conversations) \n\r\n (Video on [InfoQ](http://www.infoq.com)) |\n| [Developing in a Service-oriented World](http://www.infoq.com/presentations/hohpe-soa-development) \n\r\n (Video on [InfoQ](http://www.infoq.com)) |\n| [SOA Patterns - New Insights or Recycled Knowledge?](/docs/SoaPatterns.pdf)\n\r\n (Whitepaper) |\n| [Let's Have a Conversation](/docs/IEEE_IC_Conversations.pdf)\n(IEEE Internet Computing) |\n| [Programming Without a Call Stack - Event-driven Architectures](/docs/EDA.pdf)\n(ObjektSpektrum, 2006) |\n| [Your Coffee Shop Does Not Use Two-Phase Commit](/docs/IEEE_Software_Design_2PC.pdf)\n\r\n (IEEE Software) |\n| [Developing in a Service-Oriented World](/docs/SOA_World.pdf)\n(ThoughtWorks Whitepaper) |\n| [An Asynchronous World](http://www.drdobbs.com/an-asynchronous-world/184415001)\n\r\n (Software Development) |\n\n| [Nearfield Communication (NFC) in Japan](/docs/NfcOopHohpe.pdf)\n(OOP 2012) |\n| --- |\n| [Embedded OSS](/docs/EmbeddedOop.pdf)\n(OOP 2012) |\n| [Programming the Cloud](https://sites.google.com/site/gcodejp/slides/ProgrammingCloud_QCon.pdf)\n(QCOn Tokyo 2010) |\n| [Distributed Programming the Google Way](/docs/DistributedProgrammingGoogle.pdf)\n(Devoxx 2009) |\n| [Developing in a Service-Oriented World](/docs/hohpe_developing_in_soa_world.pdf)\n(SOACon 2007) |\n| [Programming without a Call Stack: Event-driven Architectures](/docs/hohpe_event_driven_architectures.pdf)\n(SOACon 2007) |\n| [Software Visualization and Model Extraction](/docs/TSS_software_visualization.pdf)\n(TheServerSide) |\n| [Where did all my beatiful code go?](/docs/SpringOneKeynotePub.pdf)\n(SpringOne, 2006) |\n| [Conversations Between Loosely Coupled Systems](/docs/Conversations_loosely_coupled.pdf)\n(SD West, 2006) |\n| [Enterprise Integration Patterns](/docs/jaoo_hohpeg_enterpriseintegrationpatterns.pdf)\n(JAOO, 2003) |\n\nThis blog chronicles my journey with asynchronous and distributed system design over\n two decades.\n \n These are my Ramblings related to **Messaging** [See [all Ramblings](/ramblings.html)]. \n Subscribe to my ramblings via [RSS](ramblings.rss).\n\nFind my posts on IT strategy, enterprise architecture, and digital transformation\n at [ArchitectElevator.com](https://architectelevator.com/blog).\n\n---\n\n[Control Flow—The Other Half of Integration Patterns](ramblings/queues_control_flow.html) July 30, 2024\n\nWhen describing messaging systems, it's natural to focus on data flow. However, control\n flow is what gives those systems their critical runtime properties like resilience\n or low latency. It's time to make control flow a first-class consideration. [Read more Âť](/ramblings/queues_control_flow.html)\n\n[Serverless Integration Patterns on Google Cloud Functions](ramblings/google_cloud_functions.html) April 20, 2017\n\nAfter examining which patterns are embedded in Google Cloud Pub/Sub in an earlier\n post, I implemented a few common patterns on top of Google Cloud Functions, Google's\n serverless implementation. It's amazing how easy it has become to get messaging patterns\n running in the cloud with only a minimum of wrapper code. [Read more Âť](/ramblings/google_cloud_functions.html)\n\n[Google Cloud Pub/Sub](ramblings/82_googlepubsub.html) APR 8, 2015\n\nGoogle released the beta version of their publish-subscribe API just a few weeks ago.\n I show how to build a very simple demo app using the Java API and map the functionality\n to integration patterns to illustrate the design choices the team made. [Read more Âť](/ramblings/82_googlepubsub.html)\n\n[Sync or Swim](ramblings/80_syncorswim.html) FEB 15, 2015\n\nWe were tempted multiple times to extend the EIP icon language, but always felt that\n simplicity should win over precision. However, seeing the visual vocabulary that my\n former Google colleague Ivan Gevirtz created, I am convinced that combining the two\n is useful. [Read more Âť](/ramblings/80_syncorswim.html)\n\n[What Does It Mean to Use Messaging?](ramblings/74_messaging.html) FEB 17, 2010\n\nI was recently asked to help a team decide whether they should use messaging. Of course,\n I have not forgotten what I learned during many years in consulting: the consultant\n always answers \"it depends.\" A good consultant can tell you what the answer depends\n on. And a truly great consultant can convince you that you are asking the wrong question\n in the first place. [Read more Âť](/ramblings/74_messaging.html)\n\n[Users Like Events](ramblings/56_events.html) July 12, 2007\n\nTwo weeks ago I presented a keynote at the DEBS (Distributed Event-based Systems)\n conference. The emphasis of the conference was on academic work in the field but event-based\n systems are rapidly gaining traction in commercial applications as CEP (Complex Event\n Processing) is becoming a household name like SOA (equally difficult to pin down).\n All this talk about events reminded me that applications on the Web are becoming increasingly\n event driven. [Read more Âť](/ramblings/56_events.html)\n\n[What is in a Name?](ramblings/39_namingchannels.html) Mar 5, 2006\n\nComputer science is known as the field where every problem can be solved by just one\n more level of indirection. Well, a message channel berween two components is such\n a level of indirection. As it turns out naming this additional element can have a\n more profound influence on the system design than might appear at first. [Read more Âť](/ramblings/39_namingchannels.html)\n\n[Will the Real Asynchrony Please Stand Up?](ramblings/28_asynchrony.html) May 15, 2005\n\nOn a recent project we developed a Web services framework that supports asynchronous\n callbacks and asynchronous invocation with polling. The difficulties we had describing\n what we were trying to do to my fellow ThoughtWorkers on other projects prompted me\n to discuss the different forms of asynchrony in a little more detail. [Read more Âť](/ramblings/28_asynchrony.html)\n\n[Are You Driving a DeLorean or a Toyota?](ramblings/27_latency.html) March 30, 2005\n\nWhen you build a distributed system you have to choose between latency and reliability.\n Sticking your head in the sand will not help (and you get sand in your ears...). [Read more Âť](/ramblings/27_latency.html)\n\n[Can You Say \"Synchronous Asymmetry or Asynchronous Symmetry\"?](ramblings/26_symmetry.html) March 25, 2005\n\nIn my perennial battle to free distributed system developers' minds from the perils\n of the call stack mentality I came across another reason why a call stack is not appropriate\n for distributed applications: the call stack is inherently asymmetric. However, when\n building distributed applications, that asymmetry really has no place. [Read more Âť](/ramblings/26_symmetry.html)\n\n[Look Ma -- No Middleware! Using Event-Driven Architectures inside a JVM.](ramblings/14_edainjvm.html) October 1, 2004\n\nOur most recent project was to replace a batch-oriented stored procedure with a more\n flexible, maintainable and scaleable Java-based architecture. We chose an event-driven\n architectural style that processes events as they occur. For the initial roll-out\n we did not even have to distribute the solution so it all runs in single JVM (if you\n ignore clustering for the moment). Read on to learn more about the implementation\n and our experiences with intra-JVM EDA. [Read more Âť](/ramblings/14_edainjvm.html)\n\n[Dependency Injection in Messaging Architectures](ramblings/13_ioc.html) September 3, 2004\n\nThe notion of Dependency Injection or Inversion of Control has generated quite a bit\n of interest lately. To a large extend, the move towards this architectural style is\n driven by developer's dissatisfaction with strong dependencies of individual components\n on their run-time container (for example, J2EE). These dependencies make it difficult\n or impossible to test components outside of their container, throwing a major monkey\n wrench into test-driven development of these types of applications. Dependency Injection\n avoids these dependencies and therefore improves testability. On a recent project\n we developed an event-driven architecture (intra-JVM, not distributed) and found that\n we could realize many of the same benefits. [Read more Âť](/ramblings/13_ioc.html)\n\n[Correlation and Conversations](ramblings/09_correlation.html) May 21, 2004\n\nWhen using asynchronous messaging, we can no longer rely on the linear, in-sequence\n execution of events. Therefore, the notion of correlating multiple messages is fundamental\n to designing robust messaging solutions. While correlation seems to be a simple concept\n at first glance, there are quite a few interesting nuances. [Read more Âť](/ramblings/09_correlation.html)\n\n---", "znaku_textu": 9066, "slov": 1121, "odkazu": 78, "kodovani": "iso-8859-2", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/ramblings_messaging.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 06:53:16", "sha256": "b801ca43bf4d32aa4e89787108466a3924823c65daa53dadcbbe12c13d5e9ffe", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://www.infoq.com/presentations/hohpe-soa-conversations", "http://www.infoq.com/", "http://www.infoq.com/presentations/hohpe-soa-development", "http://www.drdobbs.com/an-asynchronous-world/184415001", "https://sites.google.com/site/gcodejp/slides/ProgrammingCloud_QCon.pdf", "https://architectelevator.com/blog"]} {"url": "https://www.enterpriseintegrationpatterns.com/ramblings_modeling.html", "titulek": "Gregor’s Ramblings on Modeling - Enterprise Integration Patterns", "h1": "", "popis": "", "klicova_slova": "", "kanonicka": "", "jazyk": "", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [], "markdown": "Gregor’s Ramblings on Modeling\n\n---\n\n| My latest thoughts on integration architecture: |\n| --- |\n| [Queues invert control flow but require flow control](/ramblings/queues_flow_control.html) |\n| [Control Flow—The Other Half of Integration Patterns](/ramblings/queues_control_flow.html) |\n| [Event-driven = Loosely coupled? Not so fast!](/ramblings/eventdriven_coupling.html) |\n\n| [A Decade of Enterprise Integration Patterns](/articles.html)\n\r\n (IEEE Software) |\n| --- |\n| [20 Years of Patterns' Impact](/articles.html) \n\r\n (IEEE Software) |\n| [Conversations Between Loosely Coupled Services](http://www.infoq.com/presentations/hohpe-soa-conversations) \n\r\n (Video on [InfoQ](http://www.infoq.com)) |\n| [Developing in a Service-oriented World](http://www.infoq.com/presentations/hohpe-soa-development) \n\r\n (Video on [InfoQ](http://www.infoq.com)) |\n| [SOA Patterns - New Insights or Recycled Knowledge?](/docs/SoaPatterns.pdf)\n\r\n (Whitepaper) |\n| [Let's Have a Conversation](/docs/IEEE_IC_Conversations.pdf)\n(IEEE Internet Computing) |\n| [Programming Without a Call Stack - Event-driven Architectures](/docs/EDA.pdf)\n(ObjektSpektrum, 2006) |\n| [Your Coffee Shop Does Not Use Two-Phase Commit](/docs/IEEE_Software_Design_2PC.pdf)\n\r\n (IEEE Software) |\n| [Developing in a Service-Oriented World](/docs/SOA_World.pdf)\n(ThoughtWorks Whitepaper) |\n| [An Asynchronous World](http://www.drdobbs.com/an-asynchronous-world/184415001)\n\r\n (Software Development) |\n\n| [Nearfield Communication (NFC) in Japan](/docs/NfcOopHohpe.pdf)\n(OOP 2012) |\n| --- |\n| [Embedded OSS](/docs/EmbeddedOop.pdf)\n(OOP 2012) |\n| [Programming the Cloud](https://sites.google.com/site/gcodejp/slides/ProgrammingCloud_QCon.pdf)\n(QCOn Tokyo 2010) |\n| [Distributed Programming the Google Way](/docs/DistributedProgrammingGoogle.pdf)\n(Devoxx 2009) |\n| [Developing in a Service-Oriented World](/docs/hohpe_developing_in_soa_world.pdf)\n(SOACon 2007) |\n| [Programming without a Call Stack: Event-driven Architectures](/docs/hohpe_event_driven_architectures.pdf)\n(SOACon 2007) |\n| [Software Visualization and Model Extraction](/docs/TSS_software_visualization.pdf)\n(TheServerSide) |\n| [Where did all my beatiful code go?](/docs/SpringOneKeynotePub.pdf)\n(SpringOne, 2006) |\n| [Conversations Between Loosely Coupled Systems](/docs/Conversations_loosely_coupled.pdf)\n(SD West, 2006) |\n| [Enterprise Integration Patterns](/docs/jaoo_hohpeg_enterpriseintegrationpatterns.pdf)\n(JAOO, 2003) |\n\nThis blog chronicles my journey with asynchronous and distributed system design over\n two decades.\n \n These are my Ramblings related to **Modeling** [See [all Ramblings](/ramblings.html)]. \n Subscribe to my ramblings via [RSS](ramblings.rss).\n\nFind my posts on IT strategy, enterprise architecture, and digital transformation\n at [ArchitectElevator.com](https://architectelevator.com/blog).\n\n---\n\n[Sync or Swim](ramblings/80_syncorswim.html) FEB 15, 2015\n\nWe were tempted multiple times to extend the EIP icon language, but always felt that\n simplicity should win over precision. However, seeing the visual vocabulary that my\n former Google colleague Ivan Gevirtz created, I am convinced that combining the two\n is useful. [Read more »](/ramblings/80_syncorswim.html)\n\n[DDD - Diagram Driven Design](ramblings/75_ddd.html) MAR 22, 2010\n\nDrawing a picture turns out to be a useful system design technique. [Read more »](/ramblings/75_ddd.html)\n\n[Validating Dynamic Systems](ramblings/48_validation.html) Feb 1, 2007\n\nErik Doernenburg and I have been presenting our talk on Software Validation a few\n times now and have received very positive feedback. In the talk we mention that beyond\n visualization you can use similar techniques to perform checks and validations against\n a system. However, none of our demos actually included an example. So I went out to\n correct that and added validations to my messaging visualizer. [Read more »](/ramblings/48_validation.html)\n\n[JAOO 2006](ramblings/47_jaoo.html) Oct 6, 2006\n\nI am just riding the train back from Aarhus (the second largest city in Denmark in\n case your geography skills are as weak as mine were before my first trip here) to\n Copenhagen. Many speakers consistently rave about JAOO. The speaker roster, the logistics,\n the attendees - everything just seems to be very high quality and run very smoothly.\n This year I was nominated to be track host for the SOA track entitled \"SOA - What's\n Left to Say?\" [Read more »](/ramblings/47_jaoo.html)\n\n[EAI DSLs](ramblings/42_eaidsl.html) May 23, 2006\n\nI am so clever. In my very first professional project in the US over 10 years ago\n I used a DSL to solve an EAI problem. If those buzzwords had been around at the time\n I would have been pretty cool, too. I guess you can’t have everything. [Read more »](/ramblings/42_eaidsl.html)\n\n---", "znaku_textu": 4672, "slov": 522, "odkazu": 63, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/ramblings_modeling.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 06:53:17", "sha256": "4b15b10553b23306acd012001ab785e3f237533ad6d768d392c1d771dc3b1227", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://www.infoq.com/presentations/hohpe-soa-conversations", "http://www.infoq.com/", "http://www.infoq.com/presentations/hohpe-soa-development", "http://www.drdobbs.com/an-asynchronous-world/184415001", "https://sites.google.com/site/gcodejp/slides/ProgrammingCloud_QCon.pdf", "https://architectelevator.com/blog"]} {"url": "https://www.enterpriseintegrationpatterns.com/ramblings_patterns.html", "titulek": "Gregor’s Ramblings on Patterns - Enterprise Integration Patterns", "h1": "", "popis": "", "klicova_slova": "", "kanonicka": "", "jazyk": "", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [], "markdown": "Gregor’s Ramblings on Patterns\n\n---\n\n| My latest thoughts on integration architecture: |\n| --- |\n| [Queues invert control flow but require flow control](/ramblings/queues_flow_control.html) |\n| [Control Flow—The Other Half of Integration Patterns](/ramblings/queues_control_flow.html) |\n| [Event-driven = Loosely coupled? Not so fast!](/ramblings/eventdriven_coupling.html) |\n\n| [A Decade of Enterprise Integration Patterns](/articles.html)\n\r\n (IEEE Software) |\n| --- |\n| [20 Years of Patterns' Impact](/articles.html) \n\r\n (IEEE Software) |\n| [Conversations Between Loosely Coupled Services](http://www.infoq.com/presentations/hohpe-soa-conversations) \n\r\n (Video on [InfoQ](http://www.infoq.com)) |\n| [Developing in a Service-oriented World](http://www.infoq.com/presentations/hohpe-soa-development) \n\r\n (Video on [InfoQ](http://www.infoq.com)) |\n| [SOA Patterns - New Insights or Recycled Knowledge?](/docs/SoaPatterns.pdf)\n\r\n (Whitepaper) |\n| [Let's Have a Conversation](/docs/IEEE_IC_Conversations.pdf)\n(IEEE Internet Computing) |\n| [Programming Without a Call Stack - Event-driven Architectures](/docs/EDA.pdf)\n(ObjektSpektrum, 2006) |\n| [Your Coffee Shop Does Not Use Two-Phase Commit](/docs/IEEE_Software_Design_2PC.pdf)\n\r\n (IEEE Software) |\n| [Developing in a Service-Oriented World](/docs/SOA_World.pdf)\n(ThoughtWorks Whitepaper) |\n| [An Asynchronous World](http://www.drdobbs.com/an-asynchronous-world/184415001)\n\r\n (Software Development) |\n\n| [Nearfield Communication (NFC) in Japan](/docs/NfcOopHohpe.pdf)\n(OOP 2012) |\n| --- |\n| [Embedded OSS](/docs/EmbeddedOop.pdf)\n(OOP 2012) |\n| [Programming the Cloud](https://sites.google.com/site/gcodejp/slides/ProgrammingCloud_QCon.pdf)\n(QCOn Tokyo 2010) |\n| [Distributed Programming the Google Way](/docs/DistributedProgrammingGoogle.pdf)\n(Devoxx 2009) |\n| [Developing in a Service-Oriented World](/docs/hohpe_developing_in_soa_world.pdf)\n(SOACon 2007) |\n| [Programming without a Call Stack: Event-driven Architectures](/docs/hohpe_event_driven_architectures.pdf)\n(SOACon 2007) |\n| [Software Visualization and Model Extraction](/docs/TSS_software_visualization.pdf)\n(TheServerSide) |\n| [Where did all my beatiful code go?](/docs/SpringOneKeynotePub.pdf)\n(SpringOne, 2006) |\n| [Conversations Between Loosely Coupled Systems](/docs/Conversations_loosely_coupled.pdf)\n(SD West, 2006) |\n| [Enterprise Integration Patterns](/docs/jaoo_hohpeg_enterpriseintegrationpatterns.pdf)\n(JAOO, 2003) |\n\nThis blog chronicles my journey with asynchronous and distributed system design over\n two decades.\n \n These are my Ramblings related to **Patterns** [See [all Ramblings](/ramblings.html)]. \n Subscribe to my ramblings via [RSS](ramblings.rss).\n\nFind my posts on IT strategy, enterprise architecture, and digital transformation\n at [ArchitectElevator.com](https://architectelevator.com/blog).\n\n---\n\n[Modern Examples for Enterprise Integration Patterns](ramblings/eip1_examples_updated.html) February 5, 2017\n\nEnterprise Integration Patterns are timeless. That's why our book keeps selling well\n 20 years after its publication in 2003. However, the code examples haven't aged quite\n as well. I therefore updated several code examples to use modern tech like GoLang,\n Kafka, RabbitMQ, AWS, Azure Cloud Functions, and Google Cloud Pub/Sub. [Read more »](/ramblings/eip1_examples_updated.html)\n\n[Sync or Swim](ramblings/80_syncorswim.html) FEB 15, 2015\n\nWe were tempted multiple times to extend the EIP icon language, but always felt that\n simplicity should win over precision. However, seeing the visual vocabulary that my\n former Google colleague Ivan Gevirtz created, I am convinced that combining the two\n is useful. [Read more »](/ramblings/80_syncorswim.html)\n\n[Design Patterns: More than meets the eye](ramblings/67_patterns.html) Jan 13, 2009\n\nBlogging about design patterns seems about as original as blogging about the Java\n (TM) Programming Language, except for the missing (TM). However, as I just attended\n a workshop on software service engineering, I realized once again that people from\n different fields have very different notions about the concept and usage of patterns.\n Many workshop attendees raised questions about formalizing patterns, tooling, etc.\n I touched on this subject a tiny bit in a post from long time ago, but I figured that\n the topic really deserves more attention, especially since to me a pattern is so much\n more than the \"proven solution to a recurring problem within a specific context.\"\n [Read more »](/ramblings/67_patterns.html)\n\n[Web 2.0 Patterns](ramblings/45_web20.html) Aug 24, 2006\n\nI confess. I am a groupie. When Tim O'Reilly invited me to be part of a workshop\n on Web 2.0 patterns I was quite excited. First, because I was going to meet the exalted\n one in person. Second, because I would have a chance to learn a lot about Web 2.0\n as I am pretty much starting from zero. [Read more »](/ramblings/45_web20.html)\n\n[Integration Patterns in the Wild](ramblings/43_wildpatterns.html) July 20, 2006\n\nHanging out with my intellectual drinking buddies reminded me that our integration\n patterns have been embraced by a fair number of commercial as well as open source\n projects. In my eyes this is really the best indicator of success for a pattern language.\n Latin, a dead language used mostly by doctors to sound more knowledgeable, is not\n a good model for a pattern language. You want a language that is alive and actually\n used by people. Talking to a few folks who did embrace our language motivated me to\n take a quick survey of the places where our patterns pop up. [Read more »](/ramblings/43_wildpatterns.html)\n\n[Will the Real Asynchrony Please Stand Up?](ramblings/28_asynchrony.html) May 15, 2005\n\nOn a recent project we developed a Web services framework that supports asynchronous\n callbacks and asynchronous invocation with polling. The difficulties we had describing\n what we were trying to do to my fellow ThoughtWorkers on other projects prompted me\n to discuss the different forms of asynchrony in a little more detail. [Read more »](/ramblings/28_asynchrony.html)\n\n[Are \"Pattern\" and \"Component\" Antonyms?](ramblings/16_patternscomponents.html) October 15, 2004\n\nLast year's OOPSLA tutorial on Enterprise Integration Patterns was quite well received.\n The most frequent constructive criticism was that the whole tutorial was PowerPoint\n as opposed to running code. I took that feedback to heart and set out to develop a\n toolkit that demonstrates the routing and transformation patterns in our book. After\n a lot of deja-vu in Windows GDI programming I created a toolkit that contains each\n pattern as a small executable. The toolkit is a lot of fun and makes for great demos,\n but it also triggered a bigger question. Are patterns meant to be codified as components? [Read more »](/ramblings/16_patternscomponents.html)\n\n[Correlation and Conversations](ramblings/09_correlation.html) May 21, 2004\n\nWhen using asynchronous messaging, we can no longer rely on the linear, in-sequence\n execution of events. Therefore, the notion of correlating multiple messages is fundamental\n to designing robust messaging solutions. While correlation seems to be a simple concept\n at first glance, there are quite a few interesting nuances. [Read more »](/ramblings/09_correlation.html)\n\n---", "znaku_textu": 7173, "slov": 882, "odkazu": 69, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/ramblings_patterns.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 06:53:18", "sha256": "2bc12d279e9ab73dd22e86136896162907dc5100c6fc61ff0ac8b3fa8932ad23", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://www.infoq.com/presentations/hohpe-soa-conversations", "http://www.infoq.com/", "http://www.infoq.com/presentations/hohpe-soa-development", "http://www.drdobbs.com/an-asynchronous-world/184415001", "https://sites.google.com/site/gcodejp/slides/ProgrammingCloud_QCon.pdf", "https://architectelevator.com/blog"]} {"url": "https://www.enterpriseintegrationpatterns.com/ramblings_visualization.html", "titulek": "Gregor’s Ramblings on Visualization - Enterprise Integration Patterns", "h1": "", "popis": "", "klicova_slova": "", "kanonicka": "", "jazyk": "", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [], "markdown": "Gregor’s Ramblings on Visualization\n\n---\n\n| My latest thoughts on integration architecture: |\n| --- |\n| [Queues invert control flow but require flow control](/ramblings/queues_flow_control.html) |\n| [Control Flow—The Other Half of Integration Patterns](/ramblings/queues_control_flow.html) |\n| [Event-driven = Loosely coupled? Not so fast!](/ramblings/eventdriven_coupling.html) |\n\n| [A Decade of Enterprise Integration Patterns](/articles.html)\n\r\n (IEEE Software) |\n| --- |\n| [20 Years of Patterns' Impact](/articles.html) \n\r\n (IEEE Software) |\n| [Conversations Between Loosely Coupled Services](http://www.infoq.com/presentations/hohpe-soa-conversations) \n\r\n (Video on [InfoQ](http://www.infoq.com)) |\n| [Developing in a Service-oriented World](http://www.infoq.com/presentations/hohpe-soa-development) \n\r\n (Video on [InfoQ](http://www.infoq.com)) |\n| [SOA Patterns - New Insights or Recycled Knowledge?](/docs/SoaPatterns.pdf)\n\r\n (Whitepaper) |\n| [Let's Have a Conversation](/docs/IEEE_IC_Conversations.pdf)\n(IEEE Internet Computing) |\n| [Programming Without a Call Stack - Event-driven Architectures](/docs/EDA.pdf)\n(ObjektSpektrum, 2006) |\n| [Your Coffee Shop Does Not Use Two-Phase Commit](/docs/IEEE_Software_Design_2PC.pdf)\n\r\n (IEEE Software) |\n| [Developing in a Service-Oriented World](/docs/SOA_World.pdf)\n(ThoughtWorks Whitepaper) |\n| [An Asynchronous World](http://www.drdobbs.com/an-asynchronous-world/184415001)\n\r\n (Software Development) |\n\n| [Nearfield Communication (NFC) in Japan](/docs/NfcOopHohpe.pdf)\n(OOP 2012) |\n| --- |\n| [Embedded OSS](/docs/EmbeddedOop.pdf)\n(OOP 2012) |\n| [Programming the Cloud](https://sites.google.com/site/gcodejp/slides/ProgrammingCloud_QCon.pdf)\n(QCOn Tokyo 2010) |\n| [Distributed Programming the Google Way](/docs/DistributedProgrammingGoogle.pdf)\n(Devoxx 2009) |\n| [Developing in a Service-Oriented World](/docs/hohpe_developing_in_soa_world.pdf)\n(SOACon 2007) |\n| [Programming without a Call Stack: Event-driven Architectures](/docs/hohpe_event_driven_architectures.pdf)\n(SOACon 2007) |\n| [Software Visualization and Model Extraction](/docs/TSS_software_visualization.pdf)\n(TheServerSide) |\n| [Where did all my beatiful code go?](/docs/SpringOneKeynotePub.pdf)\n(SpringOne, 2006) |\n| [Conversations Between Loosely Coupled Systems](/docs/Conversations_loosely_coupled.pdf)\n(SD West, 2006) |\n| [Enterprise Integration Patterns](/docs/jaoo_hohpeg_enterpriseintegrationpatterns.pdf)\n(JAOO, 2003) |\n\nThis blog chronicles my journey with asynchronous and distributed system design over\n two decades.\n \n These are my Ramblings related to **Visualization** [See [all Ramblings](/ramblings.html)]. \n Subscribe to my ramblings via [RSS](ramblings.rss).\n\nFind my posts on IT strategy, enterprise architecture, and digital transformation\n at [ArchitectElevator.com](https://architectelevator.com/blog).\n\n---\n\n[Validating Dynamic Systems](ramblings/48_validation.html) Feb 1, 2007\n\nErik Doernenburg and I have been presenting our talk on Software Validation a few\n times now and have received very positive feedback. In the talk we mention that beyond\n visualization you can use similar techniques to perform checks and validations against\n a system. However, none of our demos actually included an example. So I went out to\n correct that and added validations to my messaging visualizer. [Read more »](/ramblings/48_validation.html)\n\n[What Color Are My Shoes?](ramblings/34_cb.html) September 1, 2005\n\nTwo weeks ago I attended a very small, but special conference on enterprise software\n development. Here is what I came away with.. [Read more »](/ramblings/34_cb.html)\n\n[Visualizing Dependencies](ramblings/11_dependencies.html) July 12, 2004\n\nMany of you have seen my rants on doodleware and top-down modeling. At the same time,\n anyone who has seen my book must believe me when I say that I am a very visual person.\n Is Gregor going schizophrenic (or becoming a hypocrite)? Not at all! I am a big fan\n of visual representations that are harvested from an actual running system and present\n the user with an accurate, big picture view of a working system. I felt it was time\n to put some money (time) where my mouth is and try to build such a solution and see\n what actually happens... [Read more »](/ramblings/11_dependencies.html)\n\n---", "znaku_textu": 4182, "slov": 452, "odkazu": 60, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/ramblings_visualization.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 06:53:19", "sha256": "e1cdf2f1010337fd516a9ded205413a6aa34ba61fda8f677fbf326a32e744fd7", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://www.infoq.com/presentations/hohpe-soa-conversations", "http://www.infoq.com/", "http://www.infoq.com/presentations/hohpe-soa-development", "http://www.drdobbs.com/an-asynchronous-world/184415001", "https://sites.google.com/site/gcodejp/slides/ProgrammingCloud_QCon.pdf", "https://architectelevator.com/blog"]} {"url": "https://www.enterpriseintegrationpatterns.com/ramblings_webServices.html", "titulek": "Gregor’s Ramblings on WebServices - Enterprise Integration Patterns", "h1": "", "popis": "", "klicova_slova": "", "kanonicka": "", "jazyk": "", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [], "markdown": "Gregor’s Ramblings on WebServices\n\n---\n\n| My latest thoughts on integration architecture: |\n| --- |\n| [Queues invert control flow but require flow control](/ramblings/queues_flow_control.html) |\n| [Control Flow—The Other Half of Integration Patterns](/ramblings/queues_control_flow.html) |\n| [Event-driven = Loosely coupled? Not so fast!](/ramblings/eventdriven_coupling.html) |\n\n| [A Decade of Enterprise Integration Patterns](/articles.html)\n\r\n (IEEE Software) |\n| --- |\n| [20 Years of Patterns' Impact](/articles.html) \n\r\n (IEEE Software) |\n| [Conversations Between Loosely Coupled Services](http://www.infoq.com/presentations/hohpe-soa-conversations) \n\r\n (Video on [InfoQ](http://www.infoq.com)) |\n| [Developing in a Service-oriented World](http://www.infoq.com/presentations/hohpe-soa-development) \n\r\n (Video on [InfoQ](http://www.infoq.com)) |\n| [SOA Patterns - New Insights or Recycled Knowledge?](/docs/SoaPatterns.pdf)\n\r\n (Whitepaper) |\n| [Let's Have a Conversation](/docs/IEEE_IC_Conversations.pdf)\n(IEEE Internet Computing) |\n| [Programming Without a Call Stack - Event-driven Architectures](/docs/EDA.pdf)\n(ObjektSpektrum, 2006) |\n| [Your Coffee Shop Does Not Use Two-Phase Commit](/docs/IEEE_Software_Design_2PC.pdf)\n\r\n (IEEE Software) |\n| [Developing in a Service-Oriented World](/docs/SOA_World.pdf)\n(ThoughtWorks Whitepaper) |\n| [An Asynchronous World](http://www.drdobbs.com/an-asynchronous-world/184415001)\n\r\n (Software Development) |\n\n| [Nearfield Communication (NFC) in Japan](/docs/NfcOopHohpe.pdf)\n(OOP 2012) |\n| --- |\n| [Embedded OSS](/docs/EmbeddedOop.pdf)\n(OOP 2012) |\n| [Programming the Cloud](https://sites.google.com/site/gcodejp/slides/ProgrammingCloud_QCon.pdf)\n(QCOn Tokyo 2010) |\n| [Distributed Programming the Google Way](/docs/DistributedProgrammingGoogle.pdf)\n(Devoxx 2009) |\n| [Developing in a Service-Oriented World](/docs/hohpe_developing_in_soa_world.pdf)\n(SOACon 2007) |\n| [Programming without a Call Stack: Event-driven Architectures](/docs/hohpe_event_driven_architectures.pdf)\n(SOACon 2007) |\n| [Software Visualization and Model Extraction](/docs/TSS_software_visualization.pdf)\n(TheServerSide) |\n| [Where did all my beatiful code go?](/docs/SpringOneKeynotePub.pdf)\n(SpringOne, 2006) |\n| [Conversations Between Loosely Coupled Systems](/docs/Conversations_loosely_coupled.pdf)\n(SD West, 2006) |\n| [Enterprise Integration Patterns](/docs/jaoo_hohpeg_enterpriseintegrationpatterns.pdf)\n(JAOO, 2003) |\n\nThis blog chronicles my journey with asynchronous and distributed system design over\n two decades.\n \n These are my Ramblings related to **WebServices** [See [all Ramblings](/ramblings.html)]. \n Subscribe to my ramblings via [RSS](ramblings.rss).\n\nFind my posts on IT strategy, enterprise architecture, and digital transformation\n at [ArchitectElevator.com](https://architectelevator.com/blog).\n\n---\n\n[RESTful Conversations](ramblings/81_restconversation.html) MAR 15, 2015\n\nAs indicated a good while ago I spent some time thinking about patterns that instead\n of following a message through multiple systems, looks at the message exchange over\n time between a (mostly) fixed set of systems. I call these message exchanges \"conversations\".\n Sadly my writing efforts on Conversation Patterns fell very much asleep around 2008,\n partly due to my fear that with the rise of REST, stateful conversations between systems\n would step into the background as most integration problems are now solved with a\n simple POST or GET. A presentation and conversation at Frank Leymann's IaaS PhD Seminar\n enlightened me that this is not at all true: systems following the REST architectural\n style very much engage in conversations. [Read more »](/ramblings/81_restconversation.html)\n\n[My Loss, Your Gain - SOA Patterns Article](ramblings/52_soapatterns.html) May 21, 2007\n\nBeginning of this year I submitted an article to a renowned software publication who\n is running a special issue on software patterns. Sadly, my article did not make it\n into the magazine but I decided to publish an expanded version on my site. Hey, I\n got to make it worth your time following my ramblings! Am I bitter that my article\n was rejected? Not at all, but if I ever get a hold of these #^%#$& -bleep- of a -bleep-\n I'll... [Read more »](/ramblings/52_soapatterns.html)\n\n[Dagstuhl Seminar](ramblings/44_dagstuhl.html) Aug 20, 2006\n\nI just returned from a trip to Germany to attend a workshop on The Role of Business\n Processes in Service Oriented Architecture. Besides a guaranteed top score in buzzword\n bingo the workshop provided a unique opportunity to connect thought leaders from academia\n and industry over the course of a week. The attendee roster sported the usual industry\n heavyweights, i.e., Microsoft, IBM, SAP, making me proud to add Google to the list.\n [Read more »](/ramblings/44_dagstuhl.html)\n\n[Will the Real Asynchrony Please Stand Up?](ramblings/28_asynchrony.html) May 15, 2005\n\nOn a recent project we developed a Web services framework that supports asynchronous\n callbacks and asynchronous invocation with polling. The difficulties we had describing\n what we were trying to do to my fellow ThoughtWorkers on other projects prompted me\n to discuss the different forms of asynchrony in a little more detail. [Read more »](/ramblings/28_asynchrony.html)\n\n[Web Services Jeopardy](ramblings/12_jeopardy.html) August 18, 2004\n\nIt is nearly impossible to keep track of all the Web Services (WS-*) specifications\n or proposed \"standards\". The matter is only worsened by the many competing proposals.\n Should you be using WS-Eventing or WS-Notification? How about WS-Reliability vs. WS-ReliableMessaging?\n Even if you choose the \"right\" specification, it still is likely to evolve over time.\n So are these standards useful at all for Web Services development today? I contend\n that they are, albeit in a somewhat unconventional way.... [Read more »](/ramblings/12_jeopardy.html)\n\n---", "znaku_textu": 5802, "slov": 688, "odkazu": 63, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/ramblings_webServices.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 06:53:20", "sha256": "2a8b417d981339d886536cd0b2067f2cac5141292fa5605649942b06a9e1a9d4", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://www.infoq.com/presentations/hohpe-soa-conversations", "http://www.infoq.com/", "http://www.infoq.com/presentations/hohpe-soa-development", "http://www.drdobbs.com/an-asynchronous-world/184415001", "https://sites.google.com/site/gcodejp/slides/ProgrammingCloud_QCon.pdf", "https://architectelevator.com/blog"]} {"url": "https://www.enterpriseintegrationpatterns.com/ramblings_writing.html", "titulek": "Gregor’s Ramblings on Writing - Enterprise Integration Patterns", "h1": "", "popis": "", "klicova_slova": "", "kanonicka": "", "jazyk": "", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [], "markdown": "Gregor’s Ramblings on Writing\n\n---\n\n| My latest thoughts on integration architecture: |\n| --- |\n| [Queues invert control flow but require flow control](/ramblings/queues_flow_control.html) |\n| [Control Flow—The Other Half of Integration Patterns](/ramblings/queues_control_flow.html) |\n| [Event-driven = Loosely coupled? Not so fast!](/ramblings/eventdriven_coupling.html) |\n\n| [A Decade of Enterprise Integration Patterns](/articles.html)\n\r\n (IEEE Software) |\n| --- |\n| [20 Years of Patterns' Impact](/articles.html) \n\r\n (IEEE Software) |\n| [Conversations Between Loosely Coupled Services](http://www.infoq.com/presentations/hohpe-soa-conversations) \n\r\n (Video on [InfoQ](http://www.infoq.com)) |\n| [Developing in a Service-oriented World](http://www.infoq.com/presentations/hohpe-soa-development) \n\r\n (Video on [InfoQ](http://www.infoq.com)) |\n| [SOA Patterns - New Insights or Recycled Knowledge?](/docs/SoaPatterns.pdf)\n\r\n (Whitepaper) |\n| [Let's Have a Conversation](/docs/IEEE_IC_Conversations.pdf)\n(IEEE Internet Computing) |\n| [Programming Without a Call Stack - Event-driven Architectures](/docs/EDA.pdf)\n(ObjektSpektrum, 2006) |\n| [Your Coffee Shop Does Not Use Two-Phase Commit](/docs/IEEE_Software_Design_2PC.pdf)\n\r\n (IEEE Software) |\n| [Developing in a Service-Oriented World](/docs/SOA_World.pdf)\n(ThoughtWorks Whitepaper) |\n| [An Asynchronous World](http://www.drdobbs.com/an-asynchronous-world/184415001)\n\r\n (Software Development) |\n\n| [Nearfield Communication (NFC) in Japan](/docs/NfcOopHohpe.pdf)\n(OOP 2012) |\n| --- |\n| [Embedded OSS](/docs/EmbeddedOop.pdf)\n(OOP 2012) |\n| [Programming the Cloud](https://sites.google.com/site/gcodejp/slides/ProgrammingCloud_QCon.pdf)\n(QCOn Tokyo 2010) |\n| [Distributed Programming the Google Way](/docs/DistributedProgrammingGoogle.pdf)\n(Devoxx 2009) |\n| [Developing in a Service-Oriented World](/docs/hohpe_developing_in_soa_world.pdf)\n(SOACon 2007) |\n| [Programming without a Call Stack: Event-driven Architectures](/docs/hohpe_event_driven_architectures.pdf)\n(SOACon 2007) |\n| [Software Visualization and Model Extraction](/docs/TSS_software_visualization.pdf)\n(TheServerSide) |\n| [Where did all my beatiful code go?](/docs/SpringOneKeynotePub.pdf)\n(SpringOne, 2006) |\n| [Conversations Between Loosely Coupled Systems](/docs/Conversations_loosely_coupled.pdf)\n(SD West, 2006) |\n| [Enterprise Integration Patterns](/docs/jaoo_hohpeg_enterpriseintegrationpatterns.pdf)\n(JAOO, 2003) |\n\nThis blog chronicles my journey with asynchronous and distributed system design over\n two decades.\n \n These are my Ramblings related to **Writing** [See [all Ramblings](/ramblings.html)]. \n Subscribe to my ramblings via [RSS](ramblings.rss).\n\nFind my posts on IT strategy, enterprise architecture, and digital transformation\n at [ArchitectElevator.com](https://architectelevator.com/blog).\n\n---\n\n[37 Things or \"Where have all my ramblings gone?\"](ramblings/94_37things.html) July 5, 2016\n\nAbout two years ago, I revived the ramblings from a four-year hibernation. Upon resurrection,\n the ramblings started to take a broader scope, including not only messaging, conversations,\n and patterns, but also communication and IT architecture topics. The new topics were\n a natural reflection of my new role as Chief Architect in a massive IT transformation\n and after a little while I decided that they deserve their own channel, so I wrote\n a book about it. [Read more Âť](/ramblings/94_37things.html)\n\n[Same Old Architecture - Best of Ramblings](ramblings/85_sameoldarchitecture.html) May 15, 2015\n\nArchitects can often be found commenting or complaining that many things in IT are\n the same old stuff in new packaging, created by marketing departments who were in\n need of a new buzzword. For example, aren't microservices really just SOA done right\n while SOA itself stands for \"Same Old Architecture\"? And the whole reactive movement\n seems to have re-discovered callbacks. Maybe there is some truth in this as at the\n recent SATURN conferences I found myself saying more often than I had expected \"I\n blogged about this\". So let's see which of my past ramblings are still relevant these\n days. [Read more Âť](/ramblings/85_sameoldarchitecture.html)\n\n[Writing for Busy People](ramblings/77_writing.html) SEP 21, 2014\n\nOne advantage of working for a relatively large organization is that I get to do a\n little more writing again. Not because I have spare time, but because in times of\n rapid change, communication across a large audience is critically important. It turns\n out, short papers are a good way to achieve that and my brief, but accurate technical\n position / decision papers have become a trademark of my architecture group (don't\n worry, we architects produce more than just paper).\n Correspondingly, one of my daily struggles is to convince others to write as well\n and to coach them to become better writers. In a sense, this forces me to transport\n what I know about writing from purely procedural knowledge, i.e. I know how to do\n it, to declarative knowledge, i.e. being able to understand why it is done and to\n describe to others how to do it.\n While this rambling's title is a pun on the popular books \"Japanese for busy People\",\n it intentionally implies an ambiguity that we are both writing for a busy audience,\n but are busy authors as well. [Read more Âť](/ramblings/77_writing.html)\n\n[Explaining Stuff](ramblings/76_explaining.html) AUG 30, 2014\n\nAt a recent presentation, Martin Fowler introduced himself as a guy \"who is good at\n explaining things\". While this certainly has a touch of British Understatement™, it\n also highlights a critically important but rare skill in IT. As technology invades\n all parts of personal and professional lives, causing companies to absolutely depend\n on software and systems, decision makers often can no longer keep track of technical\n details. Because architects live at the intersection of technology and business, it\n is their responsibility to explain complex topics and highlight the ramifications\n of technical decisions. [Read more Âť](/ramblings/76_explaining.html)\n\n[DDD - Diagram Driven Design](ramblings/75_ddd.html) MAR 22, 2010\n\nDrawing a picture turns out to be a useful system design technique. [Read more Âť](/ramblings/75_ddd.html)\n\n[A Chapter a Day...](ramblings/73_writing.html) FEB 1, 2010\n\nMy New Year's resolution was to write more, so here my thoughts on how to actually\n make that happen. In a sense it's a plan for myself to be more productive, but hopefully\n the ideas also work for other folks. Ironically, my work on EIP II has been stalled\n for a good while, so you're getting advice on how to be a prolific writer from someone\n who has not written much in 2 years. Read on at your own risk. [Read more Âť](/ramblings/73_writing.html)\n\n[EIP Visions](ramblings/72_eipvolumes.html) JAN 22, 2010\n\nThe beginning of a New Year is the time to reflect on the past and make resolutions\n for the future. It's become my tradition to kick off the year with some reflection\n on EIP, so here we go. [Read more Âť](/ramblings/72_eipvolumes.html)\n\n[Reflecting on Enterprise Integration Patterns](ramblings/66_fouryears.html) January 1, 2008\n\nThe end of the year is always the time to reflect on the past happenings. My friends\n in Japan often send a New Year's card with 12 pictures, each showing the significant\n event during the month. I am not sure something significant related to Enterprise\n Integration Patterns happened each month, but I think it's still nice to reflect a\n little bit on the history and current state of the patterns. After all, the patterns\n have matured from a draft paper to being adopted as the lingua franca for a number\n of open source messaging projects.\n [Read more Âť](/ramblings/66_fouryears.html)\n\n[I Want My Events](ramblings/57_pipes.html) July 15, 2007\n\nLast time I claimed that users like events. This time I want to show how I fulfilled\n my personal desire for events off the Web. I built two solutions to alert me to new\n book reviews on Amazon, one using a Python script, the other using Yahoo! Pipes. [Read more Âť](/ramblings/57_pipes.html)\n\n[My Loss, Your Gain - SOA Patterns Article](ramblings/52_soapatterns.html) May 21, 2007\n\nBeginning of this year I submitted an article to a renowned software publication who\n is running a special issue on software patterns. Sadly, my article did not make it\n into the magazine but I decided to publish an expanded version on my site. Hey, I\n got to make it worth your time following my ramblings! Am I bitter that my article\n was rejected? Not at all, but if I ever get a hold of these #^%#$& -bleep- of a -bleep-\n I'll... [Read more Âť](/ramblings/52_soapatterns.html)\n\n[I May Be a Flake, But At Least I Am Published!](ramblings/50_publications.html) May 2, 2007\n\nI have been pretty quiet recently, but I finally have some results to show. The current\n issue of IEEE Internet Computing (May/June 2007) contains my guest column for \"Toward\n Integration\". Also, I authored one chapter in the upcoming book \"SOA Expertenwissen\"\n (in German).\n [Read more Âť](/ramblings/50_publications.html)\n\n[Integration Patterns in the Wild](ramblings/43_wildpatterns.html) July 20, 2006\n\nHanging out with my intellectual drinking buddies reminded me that our integration\n patterns have been embraced by a fair number of commercial as well as open source\n projects. In my eyes this is really the best indicator of success for a pattern language.\n Latin, a dead language used mostly by doctors to sound more knowledgeable, is not\n a good model for a pattern language. You want a language that is alive and actually\n used by people. Talking to a few folks who did embrace our language motivated me to\n take a quick survey of the places where our patterns pop up. [Read more Âť](/ramblings/43_wildpatterns.html)\n\n---", "znaku_textu": 9676, "slov": 1318, "odkazu": 77, "kodovani": "iso-8859-2", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/ramblings_writing.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 06:53:21", "sha256": "8ca3bd704fb53bbb7c0e14cc2c71897b4dee46400c8bbb8465c2c26cf2c360ff", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://www.infoq.com/presentations/hohpe-soa-conversations", "http://www.infoq.com/", "http://www.infoq.com/presentations/hohpe-soa-development", "http://www.drdobbs.com/an-asynchronous-world/184415001", "https://sites.google.com/site/gcodejp/slides/ProgrammingCloud_QCon.pdf", "https://architectelevator.com/blog"]} {"url": "https://www.enterpriseintegrationpatterns.com/talks", "titulek": "Talks - Enterprise Integration Patterns", "h1": "", "popis": "", "klicova_slova": "", "kanonicka": "", "jazyk": "", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Multi-day Workshops"}, {"uroven": 3, "text": "Enterprise Integration Patterns (2 days), Contact me for dates"}, {"uroven": 3, "text": "Architecting Enterprise Transformation (2 days)"}, {"uroven": 2, "text": "Upcoming Talks & Tutorials"}, {"uroven": 2, "text": "Past Talks & Events"}, {"uroven": 3, "text": "Software Architecture Gathering, Online, Nov 14, 2022"}, {"uroven": 3, "text": "Software Architecture Alliance, Munich, Oct 11, 2022"}, {"uroven": 3, "text": "YOW! Perth Developer Conference 2022, On-line, Sept 19, 2022"}, {"uroven": 3, "text": "Software Architect Summit, Berlin, Sept 12, 2022"}, {"uroven": 3, "text": "GOTO EDA Day 2022, London, Sept 1, 2022"}, {"uroven": 3, "text": "PlatformCon Keynote, On-line, June 9-10, 2022"}, {"uroven": 3, "text": "Software Architecture Summit, On-line, March 14-16, 2022"}, {"uroven": 3, "text": "Software Architecture Conference, New York City, Feb 23-26, 2020"}, {"uroven": 3, "text": "Software Architecture Conference, Berlin, Nov 4-7, 2019"}, {"uroven": 3, "text": "Yow! Singapore, Singapore, Sep 13, 2019"}, {"uroven": 3, "text": "Yow! Perth, Perth, Sep 6, 2019"}, {"uroven": 3, "text": "AWS Meetup Singapore, Singapore, July 16, 2019"}, {"uroven": 3, "text": "SummerSOC, Hersonissos, Greece, June 17-23, 2019"}, {"uroven": 3, "text": "TNG Big Tech Day 12, Munich, June 7, 2019"}, {"uroven": 3, "text": "Singapore GovTech Stack-X, Singapore, May 28, 2019"}, {"uroven": 3, "text": "Software Architecture Conference, New York, Feb 3-6, 2019"}, {"uroven": 3, "text": "Yow!, Perth, Australia, Sep 3-6, 2018"}, {"uroven": 3, "text": "Yow!, Hong Kong, Sep 13-15, 2018"}, {"uroven": 3, "text": "Agile India, Bangalore, Mar 6-8, 2018"}, {"uroven": 3, "text": "YOW!, Melbourne, Brisbane, Sydney, Nov 30 - Dec 8, 2017"}, {"uroven": 3, "text": "DevOpsCon, Munich, Nov 20-23, 2017"}, {"uroven": 3, "text": "Goto Berlin, Berlin, Nov 15-17, 2017"}, {"uroven": 3, "text": "YOW! Hong Kong, Hong Kong, Sep 7-8, 2017"}, {"uroven": 3, "text": "YOW! Singapore, Singapore, Sep 11-12, 2017"}, {"uroven": 3, "text": "IT-Architekten: Angelpunkt der Digitalen Transformation im Unternehmen, Bern, CH, Aug 25, 2017"}, {"uroven": 3, "text": "IT-Architekten: Angelpunkt der Digitalen Transformation im Unternehmen, Cologne, June 20-21, 2017"}, {"uroven": 3, "text": "Software Architecture Summit, Munich, March 15, 2017"}, {"uroven": 3, "text": "OOP, Munich, Jan 30- Feb 3, 2017"}, {"uroven": 3, "text": "YOW!, Sydney, Melbourne, Brisbane, Dec 1-9, 2016"}, {"uroven": 3, "text": "IT-Architekten: Angelpunkt der Digitalen Transformation im Unternehmen, Hamburg, Oct 19-20, 2016"}, {"uroven": 3, "text": "Software Architecture Summit, Berlin, Sept 26, 2016"}, {"uroven": 3, "text": "GOTO Chicago, Chicago. IL, May 23-26, 2016"}, {"uroven": 3, "text": "IT-Architekten: Angelpunkt der Digitalen Transformation im Unternehmen, Munich, April 25-26, 2016"}, {"uroven": 3, "text": "Software Architect Summit, Munich, March 16-18, 2016"}, {"uroven": 3, "text": "OOP, Munich, February 1-5, 2016"}, {"uroven": 3, "text": "W-JAX, Munich, November 2-6, 2015"}, {"uroven": 3, "text": "Software Architect Summit, Berlin, September 16-18, 2015"}, {"uroven": 3, "text": "SATURN 2015, Baltimore, MD, Apr 27-30, 2015"}, {"uroven": 3, "text": "OOP 2015, Munich, Germany, Jan 26-30, 2015"}, {"uroven": 3, "text": "GOTO Berlin, Berlin, Germany, Nov 6-7, 2014"}, {"uroven": 3, "text": "W-Jax 2014, Munich, Germany, Nov 4-6, 2014"}, {"uroven": 3, "text": "ECSA (European Conference on Software Architecture) 2014, Vienna, Austria, Aug 25-29, 2014"}, {"uroven": 3, "text": "TM Forum Live! 2014, Nice, France, June 2-5, 2014"}, {"uroven": 3, "text": "MobileTech Conference 2013, Munich, Germany, Mar 12-13, 2013"}, {"uroven": 3, "text": "W-JAX 2012, Munich, Germany, Nov 5-9, 2012"}, {"uroven": 3, "text": "OOP 2012, Munich, Germany, Jan 23-27, 2012"}, {"uroven": 3, "text": "WSO2Con, Colombo, Sri Lanka, Sep 13-15, 2011"}, {"uroven": 3, "text": "CamelOne, Arlington, VA, May 24, 2011"}, {"uroven": 3, "text": "Goto Conference, Aarhus, Denmark, Oct 4-8, 2010"}, {"uroven": 3, "text": "QCon, Tokyo, Japan, Apr 19-20, 2010"}, {"uroven": 3, "text": "Developer Summit, Tokyo, Japan, Feb 18-19, 2010"}, {"uroven": 3, "text": "OOP, Munich, Germany, Jan 25-29, 2010"}, {"uroven": 3, "text": "Devoxx, Antwerp, Belgium, Nov 16-19, 2009"}, {"uroven": 3, "text": "Karlsruhe Trend Kongress, Karlsruhe, Germany, Nov 20, 2009"}, {"uroven": 3, "text": "JAOO, Aarhus,Denmark, Oct 4-9, 2009"}, {"uroven": 3, "text": "JavaOne 2009, San Francisco, June 2-5, 2009"}, {"uroven": 3, "text": "QCon Tokyo, Tokyo, Japan, April 9 - 10, 2009"}, {"uroven": 3, "text": "Developer Summit Tokyo, Tokyo, Japan, Feb 12-13, 2009"}, {"uroven": 3, "text": "QCon San Francisco, San Francisco, CA, November 19 - 21, 2008"}, {"uroven": 3, "text": "JAOO Denmark, Aarhus, Denmark, September 28 - October 3, 2008"}, {"uroven": 3, "text": "IDG JavaWorld Day, Shinagawa, Japan, August 20, 2008"}, {"uroven": 3, "text": "Tokyo 2.0, SuperDeluxe, Tokyo, August 11, 2008"}, {"uroven": 3, "text": "JAOO Australia, Sydney & Brisbane, Australia, May 28 - June 1, 2008"}, {"uroven": 3, "text": "QCon, London, UK, March 10-14, 2008"}, {"uroven": 3, "text": "W-Jax, Munich, Germany, November 5-9, 2007"}, {"uroven": 3, "text": "Fifth International Workshop on SOA and Web Services Best Practices (at OOPSLA), Montreal, Canada, October 21, 2007"}, {"uroven": 3, "text": "Colorado Software Summit, Keystone, Colorado, October 21-26, 2007"}, {"uroven": 3, "text": "ICSOC: International Conference on Service-oriented Computing, Vienna, Austria, September 17-20, 2007"}, {"uroven": 3, "text": "TheServerSide Java Symposium Europe, Barcelona, June 27-29, 2007"}, {"uroven": 3, "text": "DEBS: Distributed Event-based Systems, Toronto, Canada, June 20-22, 2007"}, {"uroven": 3, "text": "SD West, Santa Clara, CA, March 19-23, 2007"}, {"uroven": 3, "text": "OOP, Munich, Germany, Jan 22-26, 2007"}, {"uroven": 3, "text": "JAOO, Aarhus, Denmark, October 1-6"}, {"uroven": 3, "text": "SOA Days Technology Conference, Bonn, Germany, Sept 20 -21"}, {"uroven": 3, "text": "JavaZone, Oslo, Norway, September 12-15"}, {"uroven": 3, "text": "TheServerSide Java Symposium Europe, Barcelona, Spain, June 21-23"}, {"uroven": 3, "text": "SpringOne, Antwerp, Belgium, June 15-16"}, {"uroven": 3, "text": "Burton Group Catalyst, San Francisco, June 14-16"}, {"uroven": 3, "text": "Forrester's IT Forum 2006: GigaWorld, Las Vegas, April 6"}, {"uroven": 3, "text": "TheServerSide Symposium, Las Vegas, March 23 - 25"}, {"uroven": 3, "text": "Software Development, Santa Clara, March 13 - 17"}, {"uroven": 3, "text": "OOP 2006, Munich, January 16 - 20"}, {"uroven": 3, "text": "OOPSLA 2005, San Diego, October 16- 20"}, {"uroven": 3, "text": "Microsoft PDC , Los Angeles, September 11-16"}, {"uroven": 3, "text": "Microsoft TechEd Europe, Amsterdam, July 5-8"}, {"uroven": 3, "text": "SD Forum, eBay Conference Center, San Jose, June 28"}, {"uroven": 3, "text": "Microsoft TechEd, Orlando, June 5-10"}, {"uroven": 3, "text": "EAI Forum, Karlsruhe, Germany, April 18-21"}, {"uroven": 3, "text": "TIBCO Software Conference: From Real-Time to Predictive Enterprise, Dubai, UAE, April 10"}, {"uroven": 3, "text": "Software Development Conference & Expo, Santa Clara, March 14-18"}, {"uroven": 3, "text": "Patterns and Practices Summit, Mountain View, March 14-16"}, {"uroven": 3, "text": "Canadian Strategic Architect Forum, Seattle, March 9-10"}, {"uroven": 3, "text": "TheServerSide Java Symposium, Las Vegas, March 3-5"}, {"uroven": 3, "text": "GI Fachtagung fuer Datenbanksysteme in Business, Technologie und Web,, Karlsruhe, Germany, March 2-4"}, {"uroven": 3, "text": "VSLive! Software Architect Summit, , San Francisco, February 6-10"}, {"uroven": 3, "text": "JavaPolis 2004, Antwerp, Belgium, Dec 13-17"}, {"uroven": 3, "text": "EAI Expertentag, Technische Universitaet Berlin, Nov 25-26"}, {"uroven": 3, "text": "Sun JavaOne, San Francisco, June 28-July 1, 2004"}, {"uroven": 3, "text": "OOPSLA 2004, Vancouver, Canada, Oct 24-28"}, {"uroven": 3, "text": "ACM Middleware 2004, Toronto, Canada, Oct 18-22"}, {"uroven": 3, "text": "Microsoft TechEd, San Diego, May 24-28, 2004"}, {"uroven": 3, "text": "EAI Industry Consortium Global Summit, Banff, Canada, May 24-28, 2004"}, {"uroven": 3, "text": "TheServerSide Java Symposium, Las Vegas, May 6-8, 2004"}, {"uroven": 3, "text": "Information Processing Society of Japan - Patterns Working Group, Tokyo, Japan, April 20"}, {"uroven": 3, "text": "JavaPolis, Antwerp, Belgium, December 3-4"}, {"uroven": 3, "text": "Nexus Computer Books, Calgary, Canada, Nov 27"}, {"uroven": 3, "text": "OOPSLA 2003, Anaheim, Oct 26-30"}, {"uroven": 3, "text": "JAOO 2003, Aarhus, Denmark, Sept 22-26"}, {"uroven": 3, "text": "SD Best Practices Conference, Boston, Sept 15-18, 2003"}, {"uroven": 3, "text": "TechEd 2003, Dallas, June 1-6"}, {"uroven": 3, "text": "SD West 2003 Conference, Santa Clara, March 24-28, 2003"}, {"uroven": 3, "text": "2002 LOMA Systems Forum"}], "markdown": "Talks\n\n---\n\nThe more than 100 keynotes, talks, and seminars that I have given at conferences, universities, user groups, or to corporate audiences draw from my experience in the following areas:\n\n- [IT transformation](/ramblings/94_37things.html)\n- [Enterprise architecture](/ramblings_architecture.html)\n- [Enterprise integration](/ramblings_integration.html)\n- [Asynchronous messaging architectures](/patterns/messaging)\n\nThe lively and interactive style assures that talks are consistently highly rated for making complex topics accessible without sacrificing technical accuracy. All talks and workshops can be delivered in English or German, also on site. If you are interested in having me speak at your event or company, feel free to [contact me](/gregor.html).\n\nI like to travel and have spoken in: Aarhus, Amsterdam, Antwerp, Baltimore, Banff, Bangkok, Barcelona, Beijing, Berlin, Bonn, Boston, Calgary, Chicago, Colombo, Dallas, Dubai, Frankfurt, Hamburg, Karlsruhe, Las Vegas, London, Los Angeles, Melbourne, Montreal, Munich, Nice, Orlando, Oslo, San Diego, San Francisco, Seattle, Shanghai, Sydney, Tokyo, Toronto, Vancouver, Vienna. Stay up-to-date via my [feed](/talks.rss). If you'd like to have a workshop conducted on your premises, please [Contact me](/gregor.html).\n\n## Multi-day Workshops\n\n| | Enterprise Integration Patterns (2 days), Contact me for dates Designing loosely coupled systems with asynchronous messaging and conversations\r\n \n Interesting applications rarely live in isolation, but are integrated into an ecosystem of internal applications, external interfaces and cloud services. Asynchronous messaging offers distinct advantages for system integration, such as loose coupling, but designing such systems is not trivial. This seminar aids architects and developers in the design of distributed and integrated systems with a design vocabulary of almost 100 design patterns, including patterns for asynchronous messaging (channels, messages, routing, transformation, endpoints, systems management) and patterns for stateful conversations (discovery, initiation, intermediaries, resource management, reaching agreement). |\n| --- | --- |\n| | [Architecting Enterprise Transformation (2 days)](https://architectelevator.com/workshops/) \r\n As the digital economy changes the rules of the game for enterprises, the role of architects also fundamentally changes. They must connect the penthouse, where the business strategy is defined, with the engine room, where the enabling technologies are implemented. Making this connection by walking from floor to floor won’t work. Instead, modern architects bypass existing structures by taking the Architect Elevator. In this [highly interactive workshop](https://architectelevator.com/workshops/) architects learn how to transcend organizational levels to better link business strategy, IT strategy, and implementation. |\n\n## Upcoming Talks & Tutorials\n\n## Past Talks & Events\n\n| | [Software Architecture Gathering, Online, Nov 14, 2022](https://conferences.isaqb.org/software-architecture-gathering/) [The Architect Elevator: Connecting IT and Boardroom](https://conferences.isaqb.org/software-architecture-gathering/speaker/#the-architect-elevator-connecting-it-and-boardroom) |\n| --- | --- |\n| | [Software Architecture Alliance, Munich, Oct 11, 2022](https://www.software-architecture-alliance.de/software-architecture-alliance-2022) [Der Architekten Aufzug: Vom Maschinenraum in das Penthouse und zurück](https://www.software-architecture-alliance.de/software-architecture-alliance-2022/programm/programm/#:~:text=Architekten%20Aufzug) |\n| | [YOW! Perth Developer Conference 2022, On-line, Sept 19, 2022](https://skillsmatter.com/conferences/13836-yow-perth-2022-online) [Infrastructure as actual Code](https://skillsmatter.com/legacy_profile/gregor-hohpe) \n Cloud automation is much more than just eliminating manual steps - it should be an integral part of your software delivery lifecycle and actively influence your architecture choices. |\n| | [Software Architect Summit, Berlin, Sept 12, 2022](https://software-architecture-summit.de/berlin/) [The Architect Elevator](https://software-architecture-summit.de/softwarearchitektur/keynote/) \n We upgrade our technology all the time - shouldn’t we also update our role as architects? |\n| | [GOTO EDA Day 2022, London, Sept 1, 2022](https://gotoldn.com/) [Keynote: I made everything loosely coupled. What holds my app together?](https://gotoldn.com/2022-eda-aws-day/sessions/2116/i-made-everything-loosely-coupled-does-my-app-fall-apart) |\n| | [PlatformCon Keynote, On-line, June 9-10, 2022](https://platformcon.com/) [Keynote: The Magic of Platforms](https://platformcon.com/talk/you-dont-have-to-be-a-giant-to-carry-teams-on-your-shoulders) |\n| | [Software Architecture Summit, On-line, March 14-16, 2022](https://software-architecture-summit.de/muenchen/) [Keynote: Die Magie der Plattformen](https://software-architecture-summit.de/domain-driven-design/die-magie-der-plattformen/) |\n| | [Software Architecture Conference, New York City, Feb 23-26, 2020](https://conferences.oreilly.com/software-architecture/sa-ny) [2-day Training: The Architect Elevator](https://conferences.oreilly.com/software-architecture/sa-ny/public/schedule/detail/80209) |\n| | [Software Architecture Conference, Berlin, Nov 4-7, 2019](https://conferences.oreilly.com/software-architecture/sa-eu) [2-day Training: The Architect Elevator](https://conferences.oreilly.com/software-architecture/sa-eu/public/schedule/detail/79316) \n [Living in the first derivative](https://conferences.oreilly.com/software-architecture/sa-eu/public/schedule/detail/79166) \n [Enterprise Architecture = Architecting the Enterprise?](https://conferences.oreilly.com/software-architecture/sa-eu/public/schedule/detail/79165) |\n| | [Yow! Singapore, Singapore, Sep 13, 2019](https://yowconference.com/singapore/) Architects live in the first derivative |\n| | [Yow! Perth, Perth, Sep 6, 2019](https://yowconference.com/perth/) Architects live in the first derivative |\n| | [AWS Meetup Singapore, Singapore, July 16, 2019](https://www.meetup.com/AWS-SG/events/262215316/) Being a Cloud Architect |\n| | [SummerSOC, Hersonissos, Greece, June 17-23, 2019](https://www.summersoc.eu/) [The Architect Elevator](https://www.summersoc.eu/program/) |\n| | [TNG Big Tech Day 12, Munich, June 7, 2019](https://www.tngtech.com/big-techday.html) [The Architect Elevator: Connecting Penthouse and Engine Room](https://www.tngtech.com/big-techday/abstracts.html#c22112) |\n| | [Singapore GovTech Stack-X, Singapore, May 28, 2019](https://www.govtechstack.sg/past-events) Keynote: Being a Cloud Architect |\n| | [Software Architecture Conference, New York, Feb 3-6, 2019](https://conferences.oreilly.com/software-architecture/sa-ny) [2-day Training: The Architect Elevator](https://conferences.oreilly.com/software-architecture/sa-ny/public/schedule/detail/72070) \n [Keynote: Architecting IT Transformation](https://conferences.oreilly.com/software-architecture/sa-ny/public/schedule/detail/74391) \n [Enterprise Architecture = Architecting the Enterprise?](https://conferences.oreilly.com/software-architecture/sa-ny/public/schedule/detail/71599) |\n| | [Yow!, Perth, Australia, Sep 3-6, 2018](http://west.yowconference.com.au/profile/?id=gregor-hohpe) [Keynote: Enterprise Architecture = Architecting the Enterprise?](https://west.yowconference.com.au/proposal?id=6062) |\n| | [Yow!, Hong Kong, Sep 13-15, 2018](http://www.yowconference.hk/profile/?id=gregor-hohpe) |\n| | [Agile India, Bangalore, Mar 6-8, 2018](https://2018.agileindia.org/speaker/gregor-hohpe/) [Full Day Workshop: Architecting Enterprise Transformation](https://confengine.com/agile-india-2018/register/selection#workshop-187-info) \n [Adopting Devops - You are aiming at the wrong target!](https://2018.agileindia.org/speaker/gregor-hohpe/) \n [Enterprise Architecture = Architecting the Enterprise?](https://2018.agileindia.org/speaker/gregor-hohpe/) |\n| | [YOW!, Melbourne, Brisbane, Sydney, Nov 30 - Dec 8, 2017](http://melbourne.yowconference.com.au/speakers/gregor-hohpe-2/) [Full Day Workshop: Architecting Enterprise Transformation](http://sydney.yowconference.com.au/proposal/?id=5182) \n [CTO Summit: Life of a Chief Architect](http://sydneyctosummit.yowconference.com.au/profile/?id=gregor-hohpe) \n [Enterprise Architecture = Architecting the Enterprise?](http://melbourne.yowconference.com.au/profile/?id=gregor-hohpe) \n A three-city circuit through Australia. |\n| | [DevOpsCon, Munich, Nov 20-23, 2017](https://devopsconference.de/) [Adopting DevOps? You are aiming at the wrong target!](https://devopsconference.de/business-company-culture/adopting-devops-you-are-aiming-at-the-wrong-target/) |\n| | [Goto Berlin, Berlin, Nov 15-17, 2017](https://gotober.com/2017/speakers/318) [Enterprise Architecture = Architecting the Enterprise?](https://gotober.com/2017/sessions/282) \n [Adopting Devops - You are aiming at the wrong target!](https://gotober.com/2017/sessions/283) \n [Full Day Workshop: Architecting Enterprise Transformation](https://gotober.com/2017/workshops/69) \n The highly interactive full-day workshop shows architects how to ride the \"architect elevator\" to the upper floors where they can align IT with business strategy. This is the first time this workshop is held in Germany in English - don't miss it! |\n| | [YOW! Hong Kong, Hong Kong, Sep 7-8, 2017](http://hongkong.yowconference.com.au/) [Enterprise Integration Patterns 2: The Making of a Pattern Language](http://hongkong.yowconference.com.au/speakers/gregor-hophe/) |\n| | [YOW! Singapore, Singapore, Sep 11-12, 2017](http://www.yowconference.sg/) [Enterprise Integration Patterns 2: The Making of a Pattern Language](http://singapore.yowconference.com.au/speakers/gregor-hophe/) \n [Full Day Workshop: Architecting Enterprise Transformation (Sept 13)](http://singapore.yowconference.com.au/workshops/architecting-enterprise-transformation-37-things-one-architect-knows/) \n This highly interactive full-day workshop teaches architects how to ride the \"architect elevator\" to the upper floors to align IT with business strategy and to instill lasting change into their organization. First time in Singapore! |\n| | [IT-Architekten: Angelpunkt der Digitalen Transformation im Unternehmen, Bern, CH, Aug 25, 2017](https://www.innoq.com/en/trainings/digitale-transformation-it-architektur/) Zum ersten mal live in der Schweiz mit einem Praxis-Training zum Schnittpunkt zwischen IT Architektur und Transformation. Super Angebot fuer CHF 200! |\n| | [IT-Architekten: Angelpunkt der Digitalen Transformation im Unternehmen, Cologne, June 20-21, 2017](https://www.innoq.com/de/trainings/digitale-transformation-it-architektur/) 2-day Workshop in German\r\n \n IT-Architekten spielen eine Schlüsselrolle bei der digitalen Transformation traditioneller Unternehmen, weil sie wissen, wie man Cloud Computing, Big Data, Mobile Apps, IoT, Microservices & Co gewinnbringend im Unternehmen einsetzt. Dazu bedarf es der Fähigkeit, sich auf allen Ebenen der Organisation zu bewegen, um die Firmenstrategie zu verstehen, zu beeinflussen, und durch Softwareentwicklung und IT-Infrastruktur voranzutreiben. |\n| | [Software Architecture Summit, Munich, March 15, 2017](http://software-architecture-summit.de/programm/) [Keynote: Denken wie ein(e) Architekt(in)](https://software-architecture-summit.de/session/keynote-denken-wie-eine-architektin/) |\n| | [OOP, Munich, Jan 30- Feb 3, 2017](http://www.oop-konferenz.de/) [Architekturentscheidungen: Den Wald vor lauter Bäumen sehen](http://www.oop-konferenz.de/oop2017/konferenz/konferenzprogramm/sessiondetails/action/detail/session/mi-21/title/architekturentscheidungen-wie-man-vor-lauter-wald-noch-die-baeume-sehen-kann.html) \n [Architektur einer IT-Transformation](http://www.oop-konferenz.de/oop2017/konferenz/konferenzprogramm/sessiondetails/action/detail/session/do-81/title/architektur-einer-it-transformation-37-dinge-die-ein-chefarchitekt-gelernt-hat.html) |\n| | [YOW!, Sydney, Melbourne, Brisbane, Dec 1-9, 2016](http://yowconference.com.au/) [If you are synchronous you are not resilient](https://a.confui.com/-fenNhxkI) \n [Full Day Workshop: Architecting IT Transformation](https://a.confui.com/-i9NHGW5K) \n My full-day workshop is loosely based on my new book \"37 Things One Architect Knows\" to teach architects how to ride the elevator higher up towards the company leadership to provide more value with IT and to instill lasting change into the organization. |\n| | [IT-Architekten: Angelpunkt der Digitalen Transformation im Unternehmen, Hamburg, Oct 19-20, 2016](https://www.innoq.com/de/trainings/digitale-transformation-it-architektur/) 2-day Seminar in German\r\n \n IT-Architekten spielen eine Schlüsselrolle bei der digitalen Transformation traditioneller Unternehmen, weil sie wissen, wie man Cloud Computing, Big Data, Mobile Apps, IoT, Microservices & Co gewinnbringend im Unternehmen einsetzt. Dazu bedarf es der Fähigkeit, sich auf allen Ebenen der Organisation zu bewegen, um die Firmenstrategie zu verstehen, zu beeinflussen, und durch Softwareentwicklung und IT-Infrastruktur voranzutreiben. |\n| | [Software Architecture Summit, Berlin, Sept 26, 2016](http://software-architecture-summit.de/programm/) [Architektur einer IT Transformation: 37 Dinge, die ein Chefarchitekt wissen muss](http://software-architecture-summit.de/session/architektur-einer-it-transformation-37-dinge-die-ein-chefarchitekt-wissen-muss/) \n [Keynote: Denken wie ein(e) Architekt(in)](http://software-architecture-summit.de/session/keynote/) |\n| | [GOTO Chicago, Chicago. IL, May 23-26, 2016](http://gotocon.com/chicago-2016) [If you are synchronous, you are not resilient](http://gotocon.com/chicago-2016/presentation/If%20you%20are%20synchronous%20you%20are%20not%20resilient) \n [Workshop: Architecting Enterprise Transformation](http://gotocon.com/chicago-2016/presentation/Architecting%20Enterprise%20Transformation) \n I will hold a full-day workshop based on by book-in-progress \"37 Things One Architect Knows\". |\n| | [IT-Architekten: Angelpunkt der Digitalen Transformation im Unternehmen, Munich, April 25-26, 2016](https://www.innoq.com/de/trainings/digitale-transformation-it-architektur/) 2-day Seminar in German |\n| | [Software Architect Summit, Munich, March 16-18, 2016](http://software-architecture-summit.de/) [Keynote: Enterprise Architekten - Raus aus dem Elfenbeinturm, rein in die digitale Welt](http://software-architecture-summit.de/session/keynote-enterprise-architekten-raus-aus-dem-elfenbeinturm-rein-in-die-digitale-welt/) \n [Tutorial: Enterprise Integration Patterns - Messaging und Konversationen](http://software-architecture-summit.de/session/enterprise-integration-patterns-messaging-und-conversations/) [[Download](/docs/EnterpriseIntegrationPatternsHalfDay.pdf)] |\n| | [OOP, Munich, February 1-5, 2016](http://www.oop-konferenz.de/) [Software-Architekturen im Zeitalter der Dinge](http://www.oop-konferenz.de/oop2016/konferenz/konferenzprogramm/sessiondetails/action/detail/session/nmi-2/title/software-architekturen-im-zeitalter-der-dinge.html) (with Frank Buschmann) \n [Tutorial: Enterprise Architekten - Raus aus dem Elfenbeinturm, rein in die digitale Welt](http://www.oop-konferenz.de/oop2016/konferenz/konferenzprogramm/sessiondetails/action/detail/session/mo-5/title/enterprise-architekten-raus-aus-dem-elfenbeinturm-rein-in-die-digitale-welt.html) |\n| | [W-JAX, Munich, November 2-6, 2015](http://jax.de/wjax2015) [Enterprise Architekten - Raus aus dem Elfenbeinturm, rein in die digitale Welt](http://jax.de/wjax2015/sessions/enterprise-architekten-raus-aus-dem-elfenbeinturm-rein-die-digitale-welt) |\n| | [Software Architect Summit, Berlin, September 16-18, 2015](http://software-architecture-summit.de/2015/en/node/844/) Keynote: Enterprise Architekten - Raus aus dem Elfenbeinturm, rein in die digitale Welt\r\n \n Tutorial: Enterprise Integration Patterns - Messaging und Konversationen |\n| | [SATURN 2015, Baltimore, MD, Apr 27-30, 2015](http://www.sei.cmu.edu/saturn/2015/) It's Good to be Architect |\n| | [OOP 2015, Munich, Germany, Jan 26-30, 2015](http://www.oop-konferenz.de/) [Architekten – Halluzinationen aus dem Elfenbeinturm oder IT Heilsbringer?](http://www.oop-konferenz.de/nc/oop2015/konferenz/konferenzprogramm/conference-detail/architekten-halluzinationen-aus-dem-elfenbeinturm-oder-it-heilsbringer.html) (with Frank Buschmann) |\n| | [GOTO Berlin, Berlin, Germany, Nov 6-7, 2014](http://gotocon.com/berlin-2014) [Enterprise Architect - Ivory Tower Resident or Corporate Savior?](http://gotocon.com/berlin-2014/speaker/Gregor+Hohpe) |\n| | [W-Jax 2014, Munich, Germany, Nov 4-6, 2014](http://jax.de/wjax2014) [The Enterprise Architect - Ivory Tower Resident or Corporate Savior?](http://jax.de/wjax2014/sessions/enterprise-architect-ivory-tower-resident-or-corporate-savior) |\n| | [ECSA (European Conference on Software Architecture) 2014, Vienna, Austria, Aug 25-29, 2014](http://ecsa2014.cs.univie.ac.at/) [The Age of Architecture](http://ecsa2014.cs.univie.ac.at/program/keynote-speakers/) |\n| | [TM Forum Live! 2014, Nice, France, June 2-5, 2014](http://www.tmforumlive.org/) [Transforming Global IT Infrastructure](http://www.tmforumlive.org/speakers/?speaker=26367) |\n| | [MobileTech Conference 2013, Munich, Germany, Mar 12-13, 2013](http://mobiletechcon.de/2013/) Near Field communication (NFC) in Japan |\n| | [W-JAX 2012, Munich, Germany, Nov 5-9, 2012](http://jax.de/konferenzen/wjax12) Enterprise Integration Patterns: Past, Present and Future |\n| | [OOP 2012, Munich, Germany, Jan 23-27, 2012](http://www.sigs-datacom.de/oop2012/oop2012.html) NFC - Near Field Communication in Japan [[Download](/docs/NfcOopHohpe.pdf)] \n Embedded Software Development: Spottbillige Hardware + OSS = Zum Spielen zu Schade! [[Download](/docs/EmbeddedOop.pdf)] |\n| | [WSO2Con, Colombo, Sri Lanka, Sep 13-15, 2011](http://wso2.com/events/wso2con-2011-colombo/) Keynote: Enterprise Integration Patterns: Past, Present and Future |\n| | [CamelOne, Arlington, VA, May 24, 2011](http://fusesource.com/camelone2011/) [Keynote: Enterprise Integration Patterns: Past, Present and Future](http://fusesource.com/camelone2011/speakers/#gregor) |\n| | [Goto Conference, Aarhus, Denmark, Oct 4-8, 2010](http://gotocon.com/aarhus-2010) [Data Storage and Analysis in the Cloud](http://gotocon.com/aarhus-2010/speaker/Gregor+Hohpe) [[Download](http://gotocon.com/dl/jaoo-aarhus-2010/slides/GregorHohpe_DataStorageAndAnalysisInTheCloud.pdf)] \n [NFC - Not For Children?](http://gotocon.com/aarhus-2010/speaker/Gregor+Hohpe) [[Download](http://gotocon.com/dl/jaoo-aarhus-2010/slides/GregorHohpe_NFCNotForChildren.pdf)] \n My NFC talk was the 2nd highest ranked at the conference. |\n| | [QCon, Tokyo, Japan, Apr 19-20, 2010](http://qcontokyo.com/tokyo-2010) [Programming the Cloud](http://qcontokyo.com/tokyo-2010/speaker_GregorHohpe.html) |\n| | [Developer Summit, Tokyo, Japan, Feb 18-19, 2010](http://codezine.jp/devsumi/2010) [Distributed Programming the Google Way](http://www.seshop.com/event/dev/2010/timetable/Default.asp?mode=detail&eid=145&tr=01_Cloud+Development#831) |\n| | [OOP, Munich, Germany, Jan 25-29, 2010](http://www.oop2010.com) [Distributed Programming the Google Way](http://www.sigs-datacom.de/konferenz/sessiondetails.html?tx_mwconferences_pi1[showUid]=95) \n [Hooking Stuff Together - Coupling, Messaging, and Conversations](http://www.sigs-datacom.de/konferenz/sessiondetails.html?tx_mwconferences_pi1[showUid]=126) |\n| | [Devoxx, Antwerp, Belgium, Nov 16-19, 2009](http://www.devoxx.com) [Distributed Programming the Google Way](http://www.devoxx.com/display/DV09/Gregor+Hohpe) [[Download](/docs/DistributedProgrammingGoogle.pdf)] \n I collected a set of design considerations for building widely distributed systems and show how they are used in some of Google's core systems, such as Bigtable, GFS, or MapReduce. |\n| | [Karlsruhe Trend Kongress, Karlsruhe, Germany, Nov 20, 2009](http://www.trendkongress.com/) Programming the Cloud for Mere Mortals [[Download](/docs/HohpeProgrammingCloudKeynote.pdf)] \n I was invited to give a 30 minute keynote at this event, which was organized by the CyberForum. I chose to give a high-level overview of some of the challenges inherent in programming distributed systems. |\n| | [JAOO, Aarhus,Denmark, Oct 4-9, 2009](http://jaoo.dk/aarhus-2009/tracks/show_track.jsp?trackOID=266) [Distributed Programming the Google Way](http://jaoo.dk/aarhus-2009/presentation/Distributed+Computing+the+Google+Way) \n I am again running the cloud computing track at JAOO. My talk tries to extract common design patterns or themes from a variety of Google core systems, such as GFS, Bigtable, MapReduce, Sawzall. |\n| | JavaOne 2009, San Francisco, June 2-5, 2009 [Cloud Computing: Show Me the Money](http://www28.cplan.com/cc230/sessions_catalog.jsp?ilc=230-1&ilg=english&isort=&isort_type=&is=yes&icriteria3=hohpe) |\n| | [QCon Tokyo, Tokyo, Japan, April 9 - 10, 2009](http://qcontokyo.com/) [Programming the Cloud](http://qcontokyo.com/tokyo-2009/speaker_52.html) [[Download](https://sites.google.com/site/gcodejp/slides/ProgrammingCloud_QCon.pdf)] \n I was finally able to speak about Google App Engine for Java. |\n| | [Developer Summit Tokyo, Tokyo, Japan, Feb 12-13, 2009](http://codezine.jp/devsumi/2009) [Programming the Cloud](http://www.seshop.com/event/dev/2009/timetable/Default.asp?mode=detail&eid=124&sid=749) |\n| | [QCon San Francisco, San Francisco, CA, November 19 - 21, 2008](http://qcon.infoq.com/sanfrancisco-2008/tracks/show_track.jsp?trackOID=159) Track: The Cloud as the New Middleware Platform\r\n \n I am track hosting the Cloud Computing track. We'll have speakers from Google, Yahoo, Salesforce, and John \"ProgrammableWeb\" Musser. |\n| | [JAOO Denmark, Aarhus, Denmark, September 28 - October 3, 2008](http://www.jaoo.dk/conference/) GData: Google, the Cloud, and You |\n| | [IDG JavaWorld Day, Shinagawa, Japan, August 20, 2008](http://www.idg.co.jp/expo/jwday/2008/session/#K-1) Programming the Cloud -- the Internet as a Platform |\n| | [Tokyo 2.0, SuperDeluxe, Tokyo, August 11, 2008](http://www.tokyo2point0.net/events/event/show?id=765451:Event:6342) Programm the Cloud |\n| | [JAOO Australia, Sydney & Brisbane, Australia, May 28 - June 1, 2008](http://jaoo.com.au/sydney/conference/) GData: Google, the Cloud, and You\r\n \n \"Hooking Stuff Together\" – Coupling, Messaging, and Conversations\r\n \n Software Visualization and Model Generation (with Erik Doernenburg) |\n| | [QCon, London, UK, March 10-14, 2008](http://qcon.infoq.com/london/tracks/show_track.jsp?trackOID=95) Track: The Cloud as the New Middleware Platform\r\n \n I'll be organizing the coud computing track for QCon. Hope to see you there! |\n| | [W-Jax, Munich, Germany, November 5-9, 2007](http://jax.de/konferenzen/wjax07) [Developing in an SOA World](http://jax.de/konferenzen/wjax07/sessions.php?tid=596#session-11) \n [Programming Without a Call Stack - Event-driven Architectures in Action](http://jax.de/konferenzen/wjax07/sessions.php?tid=596#session-5) [[Download](/docs/hohpe_event_driven_architectures.pdf)] |\n| | [Fifth International Workshop on SOA and Web Services Best Practices (at OOPSLA), Montreal, Canada, October 21, 2007](http://boss.bekk.no/oopsla2007/) Keynote -- SOA Patterns: New Insights or Recycled Knowledge? [[Download](/docs/HohpeSOAPatterns.pdf)] |\n| | [Colorado Software Summit, Keystone, Colorado, October 21-26, 2007](http://www.softwaresummit.com/) Mashing Up with Google Mashup Editor and Yahoo! Pipes\r\n \n Programming without a Call Stack – Event-driven Architectures\r\n \n My first live talk about Google products. Just to maintain the balance in the universe I work with both Yahoo! Pipes and Google Mashup Editor. |\n| | [ICSOC: International Conference on Service-oriented Computing, Vienna, Austria, September 17-20, 2007](http://icsoc2007.servtech.info/) Panel on SOA Governance\r\n \n Panel on Service API's and Mashups\r\n \n Panel on SOA Run-time |\n| | [TheServerSide Java Symposium Europe, Barcelona, June 27-29, 2007](http://javasymposium.techtarget.com/europe/) [Software Visualization and Model Generation](http://javasymposium.techtarget.com/europe/sessions.html#GHohpeSoftware) (with Erik Doernenburg) \n [Programming without a Call Stack - Event-driven Architectures](http://javasymposium.techtarget.com/europe/sessions.html#GHohpeProgramming) |\n| | [DEBS: Distributed Event-based Systems, Toronto, Canada, June 20-22, 2007](http://www.debs.msrg.utoronto.ca/) [Architect's Dream or Developer's Nightmare](http://www.debs.msrg.utoronto.ca/program.shtml#hohpe) |\n| | [SD West, Santa Clara, CA, March 19-23, 2007](http://www.sdexpo.com/) [Developing in a Service-Oriented World](http://www.cmpevents.com/SDw7/a.asp?option=G&V=3&id=196544) \n [Software Visualization and Model Generation](http://www.cmpevents.com/SDw7/a.asp?option=G&V=3&id=196544) \n [Conversations between Loosely Coupled Services](http://www.cmpevents.com/SDw7/a.asp?option=G&V=3&id=196544) |\n| | [OOP, Munich, Germany, Jan 22-26, 2007](http://www.oopconference.com) [Conversations between Loosely Coupled Services](http://www.sigs-datacom.de/sd/kongresse/oop_2007/program.php?cat=session&ID=89) \n [Software Visualization and Model Generation](http://www.sigs-datacom.de/sd/kongresse/oop_2007/program.php?cat=session&ID=113) (with Erik Doernenburg) |\n| | [JAOO, Aarhus, Denmark, October 1-6](http://www.jaoo.dk/) [Conversations between loosely coupled services](http://www.infoq.com/presentations/hohpe-soa-conversations) \n I will be leading the SOA track at JAOO this year. Is there anything left to say about SOA? I think so! I am looking to compile a series of insightful talks that are based on real experiences. |\n| | [SOA Days Technology Conference, Bonn, Germany, Sept 20 -21](http://domains.euroforum.com/soa/) Patterns in Service-oriented Architectures |\n| | [JavaZone, Oslo, Norway, September 12-15](http://www.javazone.no/) Software Visualization and Model Generation (with Erik Doernenburg) \n [Developing in a Service-oriented World](http://www.infoq.com/presentations/hohpe-soa-development) \n I have heard great things about JavaZone from many other speakers. This time I get to be part of it. |\n| | [TheServerSide Java Symposium Europe, Barcelona, Spain, June 21-23](http://javasymposium-europe.techtarget.com/) Software Visualization and Model Generation (with Erik Doernenburg) \n Developing in a Service-oriented World |\n| | [SpringOne, Antwerp, Belgium, June 15-16](http://www.springone.com/) [Patterns in Service-oriented Architectures](http://www.springone.com/display/SpringOne06/Patterns+in+Service-oriented+Architectures) \n Keynote: Where did all my beautiful code go? [[Download](/docs/SpringOneKeynotePub.pdf)] \n This one should be fun -- I get to hang out with my intellectual drinking buddies in Antwerp. |\n| | [Burton Group Catalyst, San Francisco, June 14-16](http://catalyst.burtongroup.com/) [Agile SOA - The SDLC, SOA, and YOU](http://catalyst.burtongroup.com/attendees/abstract.php?sessionID=319) \n Agile development methods enjoy increasing popularity when it comes to building business applications. They promise flexibility, immediate customer feedback, and a high-quality solution. However, some of the basic mechanisms of service-oriented architectures can be perceived as a counterforce to agile development. For example, published interface contracts can bog down rapid iteration. Also, development tools that support an agile development style are not always available for Web-services based interactions. Can you have the best of both worlds? |\n| | [Forrester's IT Forum 2006: GigaWorld, Las Vegas, April 6](http://www.forrester.com/Events/Overview/1,5158,1173,00.html) [Panel: The Death of Programming](https://www.forresterevents.com/ITF2006/scheduler//profile.do?SESSION_ID=1111&ts=1143615885398) |\n| | [TheServerSide Symposium, Las Vegas, March 23 - 25](http://javasymposium.techtarget.com/) Keynote: Where did all my beautiful code go? [[Download](/docs/TSS_Keynote_Hohpe.pdf)] \n [Software Visualization and Model Generation](http://javasymposium.techtarget.com/html/det_descriptions.htm#GHohpeSoftware) [[Download](/docs/TSS_software_visualization.pdf)] (with Erik Doernenburg) \n [Patterns in Service-Oriented Architectures](http://javasymposium.techtarget.com/html/det_descriptions.htm#GHohpePatterns) |\n| | [Software Development, Santa Clara, March 13 - 17](http://www.cmpevents.com/SDw6/a.asp?option=C) [Developing in a Service-Oriented World](http://www.cmpevents.com/SDw6/a.asp?option=C&V=11&SessID=1764) \n [Conversations Between Loosely Coupled Services](http://www.cmpevents.com/SDw6/a.asp?option=C&V=11&SessID=1680) [[Download](/docs/Conversations_loosely_coupled.pdf)] |\n| | [OOP 2006, Munich, January 16 - 20](http://www.sigs-datacom.de/sd/kongresse/oop_2006/) [Developing in a Service-Oriented World](http://www.sigs-datacom.de/sd/kongresse/oop_2006/program.php?cat=session&ID=46) \n [Distributed Systems Architectures based on Asynchronous Messaging](http://www.sigs-datacom.de/sd/kongresse/oop_2006/program.php?cat=session&ID=21) \n [Enterprise Integration Patterns](http://www.sigs-datacom.de/sd/kongresse/oop_2006/program.php?cat=session&ID=66) \n \r\nI heard good things about this German conference from a number of people. This time I'll have an opportunity to speak. It'll be great to be in Munich during the winter but they make me work pretty hard for it: three talks in a row... I hope there will be some time left to party with Christian! |\n| | [OOPSLA 2005, San Diego, October 16- 20](http://www.oopsla.org/2005) Tutorial - Programming without a Call Stack - Event-driven Architectures in Action\r\n \n This 3 hour tutorial will allow me to expand on my popular talk on composable, event-driven systems. |\n| | [Microsoft PDC , Los Angeles, September 11-16](http://msdn.microsoft.com/events/pdc/) Panel: The Art and Practice of Connected Systems \r\n \n A panel with Steve Swartz should be fun, especially on connected systems. |\n| | [Microsoft TechEd Europe, Amsterdam, July 5-8](http://www.mseventseurope.com/teched/05/pre/content/default.aspx) Messaging Patterns with Indigo\r\n \n This talk is still in the planning phase. TechEd Europe will have quite a few Indigo talks\r\n because not everybody is going to be able to make it to PDC. I myself\r\n need to find a way to weazle a ticket to PDC out of someone ;-) |\n| | [SD Forum, eBay Conference Center, San Jose, June 28](http://www.sdforum.org/SDForum/Templates/CalendarEvent.aspx?CID=1675&mo=6&yr=2005) Developing in a Service-Oriented World \r\n \n The SD Forum organizes local events in the Bay Area. This talk concludes an all day Web Services\r\n Conference organized by SD Forum. Admission is free to SD Members or $15 for others. This might be the\r\n cheapest way yet to see me speak :-) |\n| | [Microsoft TechEd, Orlando, June 5-10](http://www.microsoft.com/events/teched2005) Introduction to Messaging (with Ted Neward) \n I will be co-presenting with Ted Neward, which promises to be quite entertaining :-) |\n| | [EAI Forum, Karlsruhe, Germany, April 18-21](http://www.eai-forum.de/) Enterprise Integration Patterns\r\n \n EAI Forum is the largest integration related event in the German speaking area. Luckily, I started\r\n to translate some of my material into German... |\n| | TIBCO Software Conference: From Real-Time to Predictive Enterprise, Dubai, UAE, April 10 SOA = Same Old Architecture?\r\n \n Enterprise Integration Patterns |\n| | [Software Development Conference & Expo, Santa Clara, March 14-18](http://www.sdexpo.com) Programming Without a Call Stack: Event-Driven Architectures in Java\r\n \n After missing the SD conference this year, I will explain how to leverage event-driven architectures\r\n inside a single virtual machine. |\n| | [Patterns and Practices Summit, Mountain View, March 14-16](http://www.pnpsummit.com/west2005.aspx) Developing in a Service-Oriented World \r\n \n Keith Pleas organizes these summits in close collaboration with Microsoft. These events are\r\n smaller in scale but give attendees ample access to the speakers. Ward\r\n is coming as well, so this one should be good. |\n| | [Canadian Strategic Architect Forum, Seattle, March 9-10](http://www.dynamicevents.com/CSAF05/) Integration Patterns\r\n \n Well, Martin gets to go to the Gold Coast and I have to make do with rainy Seattle. Oh well,\r\n gotta write a few more books :-) |\n| | [TheServerSide Java Symposium, Las Vegas, March 3-5](http://www.theserverside.com/symposium/) Event-Driven Architectures in Action\r\n \n SOA = Same Old Architecture?\r\n \n I am sure next year's TheServerSide Symposium will be as much fun and as content-rich as last\r\n year's. I look forward to more panels moderated by Ted Neward |\n| | [GI Fachtagung fuer Datenbanksysteme in Business, Technologie und Web,, Karlsruhe, Germany, March 2-4](http://www.btw2005.de/) Developing in a Service-Oriented World\r\n \n Despite the apparent database focus in the title of\r\n this event, there is a definite emphasis on SOA and Web services. Frank\r\n Leymann and Satish Thatte (the two brainfathers of BPEL) will speak there\r\n as well so I am honored to have my name appear among all the BPEL celebrities.\r\n My talk will focus on what SOA means for developers,\r\n what kind of tools and skill sets we need etc. I think this is a topic\r\n that is too often ignored as we all love to dwell in the architectural\r\n benefits of SOA. |\n| | [VSLive! Software Architect Summit, , San Francisco, February 6-10](http://www.vslive.com/sf) Developing in a Service-Oriented World\r\n \n I jumped into this one at the last minute. Interesting line-up with lots of talks on SOA etc. |\n| | [JavaPolis 2004, Antwerp, Belgium, Dec 13-17](http://wiki.javapolis.com) [Enterprise Integration Patterns: Asynchronous Messaging Architectures in Practice](http://www.javapolis.com/confluence/display/JP04/Gregor%2BHohpe) \n My ACM tutorials use C# examples, so for JavaPolis I am going to port these to JAX-RPC or JMS.\r\n The way I constructed the example components switching from one transport to the other should be\r\n very easy. Maybe BEA's new QuickSilver will be available by then. It would be cool to do the examples in that.\r\n Anyone from BEA feel free to e-mail me :-) |\n| | [EAI Expertentag, Technische Universitaet Berlin, Nov 25-26](http://www.sysedv.tu-berlin.de/eai/eaitag2004.html) Keynote: Buchstabensuppe: Was steckt eigentlich hinter ESB, SOA, SOAP, WSDL & Co?\r\n \n Workshop: Enterprise Integration Patterns: Asynchrone Messaging Architekturen in der Praxis\r\n \n EAI Patterns for the first time in German! Jawohl... |\n| | [Sun JavaOne, San Francisco, June 28-July 1, 2004](http://servlet.java.sun.com/javaone/) Enterprise Integration Patterns: Asynchronous Messaging Architectures in Practice\r\n \n At least one show close to home :-) |\n| | [OOPSLA 2004, Vancouver, Canada, Oct 24-28](http://www.oopsla.org/2004) [Enterprise Integration Patterns: Asynchronous Messaging Architectures in Practice](http://www.oopsla.org/2004/ShowEvent.do?id=133) \n The most popular tutorial so far at OOPSLA 2004! Join us! This year we split the tutorial in two halves. Bobby\r\n does a half-day intro into the terminology and request-reply examples.\r\n My tutorial focuses on coupling, service-orientation, message flow architectures\r\n and conversations. I will use real running examples to show how to construct\r\n message flow architectures. |\n| | [ACM Middleware 2004, Toronto, Canada, Oct 18-22](http://www.eecg.toronto.edu/middleware2004/) [1/2 Day Tutorial: Enterprise Integration Patterns: Asynchronous Messaging Architectures in Practice](http://www.eecg.toronto.edu/middleware2004/tp04.htm) \n No reruns! This tutorial will feature more real, running\r\n examples. I am currently assembling a set of reusable components that\r\n implement the core patterns (Splitter, Router, Translator). During the\r\n tutorial I will use these components to show running versions of the examples\r\n discussed in the slides. I am also planning to post these components on\r\n this site once they are done. |\n| | [Microsoft TechEd, San Diego, May 24-28, 2004](http://www.microsoft.com/seminar/teched2004) Patterns in the Enterprise\r\n \n A walk through application and integration patterns\r\n targeted at enterprise developers. By the time TechEd is held our new\r\n Microsoft PAG book on integration patterns should be available. |\n| | [EAI Industry Consortium Global Summit, Banff, Canada, May 24-28, 2004](http://www.eaiindustry.org) Half-day tutorial on Enterprise Integration Patterns\r\n \n Finally a conference focused on EAI. I am very excited to present at an event dedicated to integration issues. |\n| | [TheServerSide Java Symposium, Las Vegas, May 6-8, 2004](http://www.theserverside.com/symposium/) Enterprise Integration Patterns\r\n \n Event-Driven Architectures |\n| | [Information Processing Society of Japan - Patterns Working Group, Tokyo, Japan, April 20](http://patterns-wg.fuka.info.waseda.ac.jp/ps2004.html) \n Hironori Washizaki and his team invited me to give a talk at the Tokyo Patterns\r\n Working Group. I had a great time and learned how to write my name in\r\n Katakana. |\n| | [JavaPolis, Antwerp, Belgium, December 3-4](http://www.bejug.org) \n One of the biggest Java events in Europe, organized by the Belgian Java User's group - BeJUG. |\n| | [Nexus Computer Books, Calgary, Canada, Nov 27](http://www.nexuscomputerbooks.com) \n Nexus is a neat computer bookstore and somewhat of a local institution. Sadly, I think they have gone out of business since. |\n| | [OOPSLA 2003, Anaheim, Oct 26-30](http://oopsla.acm.org/oopsla2003/) Tutorial on Enterprise Integration Patterns (with Bobby Woolf) \n A half-day tutorial showing how to use integration\r\n patterns to design integration solutions. Plus: Book Launch!! |\n| | [JAOO 2003, Aarhus, Denmark, Sept 22-26](http://www.jaoo.dk) Enterprise Integration Patterns [[Download](/docs/jaoo_hohpeg_enterpriseintegrationpatterns.pdf)] \n Test-Driven Enterprise Integration \r\n \n This big conference in a small country continues to attract top-notch software development talent.\r\n JAOO really one of the best-run shows I know of. The speaker roster is first class and the general\r\n level is very high. |\n| | [SD Best Practices Conference, Boston, Sept 15-18, 2003](http://www.sdexpo.com) Enterprise Integration Patterns - Asynchronous Messaging Architectures in Practice [[Download](/docs/hohpeg_enterpriseintegrationpatterns_sdbp.pdf)] \n A quick (25 slide) introduction into EAI patterns. |\n| | [TechEd 2003, Dallas, June 1-6](http://www.microsoft.com/usa/teched) |\n| | [SD West 2003 Conference, Santa Clara, March 24-28, 2003](http://www.sdexpo.com/2003/west) Enterprise Integration Patterns [[Download](/docs/hohpeg_enterpriseintegrationpatterns.pdf)] \n A\r\n 90 minute journey through the world of EAI patterns. |\n| | [2002 LOMA Systems Forum](http://www.loma.org/sf.htm) [Shedding New Light on Enterprise Integration](ftp://www.loma.org/2002SFFowler.ppt) (with Martin Fowler) |\n\n---", "znaku_textu": 38328, "slov": 4103, "odkazu": 216, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/talks", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 06:53:08", "sha256": "87fcdce2d59c9b6e36a856e4e3fab1e22ebe94fdf92b0af24550575a02f90a9d", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://architectelevator.com/workshops/", "https://conferences.isaqb.org/software-architecture-gathering/", "https://conferences.isaqb.org/software-architecture-gathering/speaker/", "https://www.software-architecture-alliance.de/software-architecture-alliance-2022", "https://www.software-architecture-alliance.de/software-architecture-alliance-2022/programm/programm/", "https://skillsmatter.com/conferences/13836-yow-perth-2022-online", "https://skillsmatter.com/legacy_profile/gregor-hohpe", "https://software-architecture-summit.de/berlin/", "https://software-architecture-summit.de/softwarearchitektur/keynote/", "https://gotoldn.com/", "https://gotoldn.com/2022-eda-aws-day/sessions/2116/i-made-everything-loosely-coupled-does-my-app-fall-apart", "https://platformcon.com/", "https://platformcon.com/talk/you-dont-have-to-be-a-giant-to-carry-teams-on-your-shoulders", "https://software-architecture-summit.de/muenchen/", "https://software-architecture-summit.de/domain-driven-design/die-magie-der-plattformen/", "https://conferences.oreilly.com/software-architecture/sa-ny", "https://conferences.oreilly.com/software-architecture/sa-ny/public/schedule/detail/80209", "https://conferences.oreilly.com/software-architecture/sa-eu", "https://conferences.oreilly.com/software-architecture/sa-eu/public/schedule/detail/79316", "https://conferences.oreilly.com/software-architecture/sa-eu/public/schedule/detail/79166", "https://conferences.oreilly.com/software-architecture/sa-eu/public/schedule/detail/79165", "https://yowconference.com/singapore/", "https://yowconference.com/perth/", "https://www.meetup.com/AWS-SG/events/262215316/", "https://www.summersoc.eu/", "https://www.summersoc.eu/program/", "https://www.tngtech.com/big-techday.html", "https://www.tngtech.com/big-techday/abstracts.html", "https://www.govtechstack.sg/past-events", "https://conferences.oreilly.com/software-architecture/sa-ny/public/schedule/detail/72070", "https://conferences.oreilly.com/software-architecture/sa-ny/public/schedule/detail/74391", "https://conferences.oreilly.com/software-architecture/sa-ny/public/schedule/detail/71599", "http://west.yowconference.com.au/profile/?id=gregor-hohpe", "https://west.yowconference.com.au/proposal?id=6062", "http://www.yowconference.hk/profile/?id=gregor-hohpe", "https://2018.agileindia.org/speaker/gregor-hohpe/", "https://confengine.com/agile-india-2018/register/selection", "http://melbourne.yowconference.com.au/speakers/gregor-hohpe-2/", "http://sydney.yowconference.com.au/proposal/?id=5182", "http://sydneyctosummit.yowconference.com.au/profile/?id=gregor-hohpe", "http://melbourne.yowconference.com.au/profile/?id=gregor-hohpe", "https://devopsconference.de/", "https://devopsconference.de/business-company-culture/adopting-devops-you-are-aiming-at-the-wrong-target/", "https://gotober.com/2017/speakers/318", "https://gotober.com/2017/sessions/282", "https://gotober.com/2017/sessions/283", "https://gotober.com/2017/workshops/69", "http://hongkong.yowconference.com.au/", "http://hongkong.yowconference.com.au/speakers/gregor-hophe/", "http://www.yowconference.sg/", "http://singapore.yowconference.com.au/speakers/gregor-hophe/", "http://singapore.yowconference.com.au/workshops/architecting-enterprise-transformation-37-things-one-architect-knows/", "https://www.innoq.com/en/trainings/digitale-transformation-it-architektur/", "https://www.innoq.com/de/trainings/digitale-transformation-it-architektur/", "http://software-architecture-summit.de/programm/", "https://software-architecture-summit.de/session/keynote-denken-wie-eine-architektin/", "http://www.oop-konferenz.de/", "http://www.oop-konferenz.de/oop2017/konferenz/konferenzprogramm/sessiondetails/action/detail/session/mi-21/title/architekturentscheidungen-wie-man-vor-lauter-wald-noch-die-baeume-sehen-kann.html", "http://www.oop-konferenz.de/oop2017/konferenz/konferenzprogramm/sessiondetails/action/detail/session/do-81/title/architektur-einer-it-transformation-37-dinge-die-ein-chefarchitekt-gelernt-hat.html", "http://yowconference.com.au/", "https://a.confui.com/-fenNhxkI", "https://a.confui.com/-i9NHGW5K", "http://software-architecture-summit.de/session/architektur-einer-it-transformation-37-dinge-die-ein-chefarchitekt-wissen-muss/", "http://software-architecture-summit.de/session/keynote/", "http://gotocon.com/chicago-2016", "http://gotocon.com/chicago-2016/presentation/If%20you%20are%20synchronous%20you%20are%20not%20resilient", "http://gotocon.com/chicago-2016/presentation/Architecting%20Enterprise%20Transformation", "http://software-architecture-summit.de/", "http://software-architecture-summit.de/session/keynote-enterprise-architekten-raus-aus-dem-elfenbeinturm-rein-in-die-digitale-welt/", "http://software-architecture-summit.de/session/enterprise-integration-patterns-messaging-und-conversations/", "http://www.oop-konferenz.de/oop2016/konferenz/konferenzprogramm/sessiondetails/action/detail/session/nmi-2/title/software-architekturen-im-zeitalter-der-dinge.html", "http://www.oop-konferenz.de/oop2016/konferenz/konferenzprogramm/sessiondetails/action/detail/session/mo-5/title/enterprise-architekten-raus-aus-dem-elfenbeinturm-rein-in-die-digitale-welt.html", "http://jax.de/wjax2015", "http://jax.de/wjax2015/sessions/enterprise-architekten-raus-aus-dem-elfenbeinturm-rein-die-digitale-welt", "http://software-architecture-summit.de/2015/en/node/844/", "http://www.sei.cmu.edu/saturn/2015/", "http://www.oop-konferenz.de/nc/oop2015/konferenz/konferenzprogramm/conference-detail/architekten-halluzinationen-aus-dem-elfenbeinturm-oder-it-heilsbringer.html", "http://gotocon.com/berlin-2014", "http://gotocon.com/berlin-2014/speaker/Gregor+Hohpe", "http://jax.de/wjax2014", "http://jax.de/wjax2014/sessions/enterprise-architect-ivory-tower-resident-or-corporate-savior", "http://ecsa2014.cs.univie.ac.at/", "http://ecsa2014.cs.univie.ac.at/program/keynote-speakers/", "http://www.tmforumlive.org/", "http://www.tmforumlive.org/speakers/?speaker=26367", "http://mobiletechcon.de/2013/", "http://jax.de/konferenzen/wjax12", "http://www.sigs-datacom.de/oop2012/oop2012.html", "http://wso2.com/events/wso2con-2011-colombo/", "http://fusesource.com/camelone2011/", "http://fusesource.com/camelone2011/speakers/", "http://gotocon.com/aarhus-2010", "http://gotocon.com/aarhus-2010/speaker/Gregor+Hohpe", "http://gotocon.com/dl/jaoo-aarhus-2010/slides/GregorHohpe_DataStorageAndAnalysisInTheCloud.pdf", "http://gotocon.com/dl/jaoo-aarhus-2010/slides/GregorHohpe_NFCNotForChildren.pdf", "http://qcontokyo.com/tokyo-2010", "http://qcontokyo.com/tokyo-2010/speaker_GregorHohpe.html", "http://codezine.jp/devsumi/2010", "http://www.seshop.com/event/dev/2010/timetable/Default.asp?eid=145&mode=detail&tr=01_Cloud+Development", "http://www.oop2010.com/"]} {"url": "https://www.enterpriseintegrationpatterns.com/talks.html", "titulek": "Talks - Enterprise Integration Patterns", "h1": "", "popis": "", "klicova_slova": "", "kanonicka": "", "jazyk": "", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Multi-day Workshops"}, {"uroven": 3, "text": "Enterprise Integration Patterns (2 days), Contact me for dates"}, {"uroven": 3, "text": "Architecting Enterprise Transformation (2 days)"}, {"uroven": 2, "text": "Upcoming Talks & Tutorials"}, {"uroven": 2, "text": "Past Talks & Events"}, {"uroven": 3, "text": "Software Architecture Gathering, Online, Nov 14, 2022"}, {"uroven": 3, "text": "Software Architecture Alliance, Munich, Oct 11, 2022"}, {"uroven": 3, "text": "YOW! Perth Developer Conference 2022, On-line, Sept 19, 2022"}, {"uroven": 3, "text": "Software Architect Summit, Berlin, Sept 12, 2022"}, {"uroven": 3, "text": "GOTO EDA Day 2022, London, Sept 1, 2022"}, {"uroven": 3, "text": "PlatformCon Keynote, On-line, June 9-10, 2022"}, {"uroven": 3, "text": "Software Architecture Summit, On-line, March 14-16, 2022"}, {"uroven": 3, "text": "Software Architecture Conference, New York City, Feb 23-26, 2020"}, {"uroven": 3, "text": "Software Architecture Conference, Berlin, Nov 4-7, 2019"}, {"uroven": 3, "text": "Yow! Singapore, Singapore, Sep 13, 2019"}, {"uroven": 3, "text": "Yow! Perth, Perth, Sep 6, 2019"}, {"uroven": 3, "text": "AWS Meetup Singapore, Singapore, July 16, 2019"}, {"uroven": 3, "text": "SummerSOC, Hersonissos, Greece, June 17-23, 2019"}, {"uroven": 3, "text": "TNG Big Tech Day 12, Munich, June 7, 2019"}, {"uroven": 3, "text": "Singapore GovTech Stack-X, Singapore, May 28, 2019"}, {"uroven": 3, "text": "Software Architecture Conference, New York, Feb 3-6, 2019"}, {"uroven": 3, "text": "Yow!, Perth, Australia, Sep 3-6, 2018"}, {"uroven": 3, "text": "Yow!, Hong Kong, Sep 13-15, 2018"}, {"uroven": 3, "text": "Agile India, Bangalore, Mar 6-8, 2018"}, {"uroven": 3, "text": "YOW!, Melbourne, Brisbane, Sydney, Nov 30 - Dec 8, 2017"}, {"uroven": 3, "text": "DevOpsCon, Munich, Nov 20-23, 2017"}, {"uroven": 3, "text": "Goto Berlin, Berlin, Nov 15-17, 2017"}, {"uroven": 3, "text": "YOW! Hong Kong, Hong Kong, Sep 7-8, 2017"}, {"uroven": 3, "text": "YOW! Singapore, Singapore, Sep 11-12, 2017"}, {"uroven": 3, "text": "IT-Architekten: Angelpunkt der Digitalen Transformation im Unternehmen, Bern, CH, Aug 25, 2017"}, {"uroven": 3, "text": "IT-Architekten: Angelpunkt der Digitalen Transformation im Unternehmen, Cologne, June 20-21, 2017"}, {"uroven": 3, "text": "Software Architecture Summit, Munich, March 15, 2017"}, {"uroven": 3, "text": "OOP, Munich, Jan 30- Feb 3, 2017"}, {"uroven": 3, "text": "YOW!, Sydney, Melbourne, Brisbane, Dec 1-9, 2016"}, {"uroven": 3, "text": "IT-Architekten: Angelpunkt der Digitalen Transformation im Unternehmen, Hamburg, Oct 19-20, 2016"}, {"uroven": 3, "text": "Software Architecture Summit, Berlin, Sept 26, 2016"}, {"uroven": 3, "text": "GOTO Chicago, Chicago. IL, May 23-26, 2016"}, {"uroven": 3, "text": "IT-Architekten: Angelpunkt der Digitalen Transformation im Unternehmen, Munich, April 25-26, 2016"}, {"uroven": 3, "text": "Software Architect Summit, Munich, March 16-18, 2016"}, {"uroven": 3, "text": "OOP, Munich, February 1-5, 2016"}, {"uroven": 3, "text": "W-JAX, Munich, November 2-6, 2015"}, {"uroven": 3, "text": "Software Architect Summit, Berlin, September 16-18, 2015"}, {"uroven": 3, "text": "SATURN 2015, Baltimore, MD, Apr 27-30, 2015"}, {"uroven": 3, "text": "OOP 2015, Munich, Germany, Jan 26-30, 2015"}, {"uroven": 3, "text": "GOTO Berlin, Berlin, Germany, Nov 6-7, 2014"}, {"uroven": 3, "text": "W-Jax 2014, Munich, Germany, Nov 4-6, 2014"}, {"uroven": 3, "text": "ECSA (European Conference on Software Architecture) 2014, Vienna, Austria, Aug 25-29, 2014"}, {"uroven": 3, "text": "TM Forum Live! 2014, Nice, France, June 2-5, 2014"}, {"uroven": 3, "text": "MobileTech Conference 2013, Munich, Germany, Mar 12-13, 2013"}, {"uroven": 3, "text": "W-JAX 2012, Munich, Germany, Nov 5-9, 2012"}, {"uroven": 3, "text": "OOP 2012, Munich, Germany, Jan 23-27, 2012"}, {"uroven": 3, "text": "WSO2Con, Colombo, Sri Lanka, Sep 13-15, 2011"}, {"uroven": 3, "text": "CamelOne, Arlington, VA, May 24, 2011"}, {"uroven": 3, "text": "Goto Conference, Aarhus, Denmark, Oct 4-8, 2010"}, {"uroven": 3, "text": "QCon, Tokyo, Japan, Apr 19-20, 2010"}, {"uroven": 3, "text": "Developer Summit, Tokyo, Japan, Feb 18-19, 2010"}, {"uroven": 3, "text": "OOP, Munich, Germany, Jan 25-29, 2010"}, {"uroven": 3, "text": "Devoxx, Antwerp, Belgium, Nov 16-19, 2009"}, {"uroven": 3, "text": "Karlsruhe Trend Kongress, Karlsruhe, Germany, Nov 20, 2009"}, {"uroven": 3, "text": "JAOO, Aarhus,Denmark, Oct 4-9, 2009"}, {"uroven": 3, "text": "JavaOne 2009, San Francisco, June 2-5, 2009"}, {"uroven": 3, "text": "QCon Tokyo, Tokyo, Japan, April 9 - 10, 2009"}, {"uroven": 3, "text": "Developer Summit Tokyo, Tokyo, Japan, Feb 12-13, 2009"}, {"uroven": 3, "text": "QCon San Francisco, San Francisco, CA, November 19 - 21, 2008"}, {"uroven": 3, "text": "JAOO Denmark, Aarhus, Denmark, September 28 - October 3, 2008"}, {"uroven": 3, "text": "IDG JavaWorld Day, Shinagawa, Japan, August 20, 2008"}, {"uroven": 3, "text": "Tokyo 2.0, SuperDeluxe, Tokyo, August 11, 2008"}, {"uroven": 3, "text": "JAOO Australia, Sydney & Brisbane, Australia, May 28 - June 1, 2008"}, {"uroven": 3, "text": "QCon, London, UK, March 10-14, 2008"}, {"uroven": 3, "text": "W-Jax, Munich, Germany, November 5-9, 2007"}, {"uroven": 3, "text": "Fifth International Workshop on SOA and Web Services Best Practices (at OOPSLA), Montreal, Canada, October 21, 2007"}, {"uroven": 3, "text": "Colorado Software Summit, Keystone, Colorado, October 21-26, 2007"}, {"uroven": 3, "text": "ICSOC: International Conference on Service-oriented Computing, Vienna, Austria, September 17-20, 2007"}, {"uroven": 3, "text": "TheServerSide Java Symposium Europe, Barcelona, June 27-29, 2007"}, {"uroven": 3, "text": "DEBS: Distributed Event-based Systems, Toronto, Canada, June 20-22, 2007"}, {"uroven": 3, "text": "SD West, Santa Clara, CA, March 19-23, 2007"}, {"uroven": 3, "text": "OOP, Munich, Germany, Jan 22-26, 2007"}, {"uroven": 3, "text": "JAOO, Aarhus, Denmark, October 1-6"}, {"uroven": 3, "text": "SOA Days Technology Conference, Bonn, Germany, Sept 20 -21"}, {"uroven": 3, "text": "JavaZone, Oslo, Norway, September 12-15"}, {"uroven": 3, "text": "TheServerSide Java Symposium Europe, Barcelona, Spain, June 21-23"}, {"uroven": 3, "text": "SpringOne, Antwerp, Belgium, June 15-16"}, {"uroven": 3, "text": "Burton Group Catalyst, San Francisco, June 14-16"}, {"uroven": 3, "text": "Forrester's IT Forum 2006: GigaWorld, Las Vegas, April 6"}, {"uroven": 3, "text": "TheServerSide Symposium, Las Vegas, March 23 - 25"}, {"uroven": 3, "text": "Software Development, Santa Clara, March 13 - 17"}, {"uroven": 3, "text": "OOP 2006, Munich, January 16 - 20"}, {"uroven": 3, "text": "OOPSLA 2005, San Diego, October 16- 20"}, {"uroven": 3, "text": "Microsoft PDC , Los Angeles, September 11-16"}, {"uroven": 3, "text": "Microsoft TechEd Europe, Amsterdam, July 5-8"}, {"uroven": 3, "text": "SD Forum, eBay Conference Center, San Jose, June 28"}, {"uroven": 3, "text": "Microsoft TechEd, Orlando, June 5-10"}, {"uroven": 3, "text": "EAI Forum, Karlsruhe, Germany, April 18-21"}, {"uroven": 3, "text": "TIBCO Software Conference: From Real-Time to Predictive Enterprise, Dubai, UAE, April 10"}, {"uroven": 3, "text": "Software Development Conference & Expo, Santa Clara, March 14-18"}, {"uroven": 3, "text": "Patterns and Practices Summit, Mountain View, March 14-16"}, {"uroven": 3, "text": "Canadian Strategic Architect Forum, Seattle, March 9-10"}, {"uroven": 3, "text": "TheServerSide Java Symposium, Las Vegas, March 3-5"}, {"uroven": 3, "text": "GI Fachtagung fuer Datenbanksysteme in Business, Technologie und Web,, Karlsruhe, Germany, March 2-4"}, {"uroven": 3, "text": "VSLive! Software Architect Summit, , San Francisco, February 6-10"}, {"uroven": 3, "text": "JavaPolis 2004, Antwerp, Belgium, Dec 13-17"}, {"uroven": 3, "text": "EAI Expertentag, Technische Universitaet Berlin, Nov 25-26"}, {"uroven": 3, "text": "Sun JavaOne, San Francisco, June 28-July 1, 2004"}, {"uroven": 3, "text": "OOPSLA 2004, Vancouver, Canada, Oct 24-28"}, {"uroven": 3, "text": "ACM Middleware 2004, Toronto, Canada, Oct 18-22"}, {"uroven": 3, "text": "Microsoft TechEd, San Diego, May 24-28, 2004"}, {"uroven": 3, "text": "EAI Industry Consortium Global Summit, Banff, Canada, May 24-28, 2004"}, {"uroven": 3, "text": "TheServerSide Java Symposium, Las Vegas, May 6-8, 2004"}, {"uroven": 3, "text": "Information Processing Society of Japan - Patterns Working Group, Tokyo, Japan, April 20"}, {"uroven": 3, "text": "JavaPolis, Antwerp, Belgium, December 3-4"}, {"uroven": 3, "text": "Nexus Computer Books, Calgary, Canada, Nov 27"}, {"uroven": 3, "text": "OOPSLA 2003, Anaheim, Oct 26-30"}, {"uroven": 3, "text": "JAOO 2003, Aarhus, Denmark, Sept 22-26"}, {"uroven": 3, "text": "SD Best Practices Conference, Boston, Sept 15-18, 2003"}, {"uroven": 3, "text": "TechEd 2003, Dallas, June 1-6"}, {"uroven": 3, "text": "SD West 2003 Conference, Santa Clara, March 24-28, 2003"}, {"uroven": 3, "text": "2002 LOMA Systems Forum"}], "markdown": "Talks\n\n---\n\nThe more than 100 keynotes, talks, and seminars that I have given at conferences, universities, user groups, or to corporate audiences draw from my experience in the following areas:\n\n- [IT transformation](/ramblings/94_37things.html)\n- [Enterprise architecture](/ramblings_architecture.html)\n- [Enterprise integration](/ramblings_integration.html)\n- [Asynchronous messaging architectures](/patterns/messaging)\n\nThe lively and interactive style assures that talks are consistently highly rated for making complex topics accessible without sacrificing technical accuracy. All talks and workshops can be delivered in English or German, also on site. If you are interested in having me speak at your event or company, feel free to [contact me](/gregor.html).\n\nI like to travel and have spoken in: Aarhus, Amsterdam, Antwerp, Baltimore, Banff, Bangkok, Barcelona, Beijing, Berlin, Bonn, Boston, Calgary, Chicago, Colombo, Dallas, Dubai, Frankfurt, Hamburg, Karlsruhe, Las Vegas, London, Los Angeles, Melbourne, Montreal, Munich, Nice, Orlando, Oslo, San Diego, San Francisco, Seattle, Shanghai, Sydney, Tokyo, Toronto, Vancouver, Vienna. Stay up-to-date via my [feed](/talks.rss). If you'd like to have a workshop conducted on your premises, please [Contact me](/gregor.html).\n\n## Multi-day Workshops\n\n| | Enterprise Integration Patterns (2 days), Contact me for dates Designing loosely coupled systems with asynchronous messaging and conversations\r\n \n Interesting applications rarely live in isolation, but are integrated into an ecosystem of internal applications, external interfaces and cloud services. Asynchronous messaging offers distinct advantages for system integration, such as loose coupling, but designing such systems is not trivial. This seminar aids architects and developers in the design of distributed and integrated systems with a design vocabulary of almost 100 design patterns, including patterns for asynchronous messaging (channels, messages, routing, transformation, endpoints, systems management) and patterns for stateful conversations (discovery, initiation, intermediaries, resource management, reaching agreement). |\n| --- | --- |\n| | [Architecting Enterprise Transformation (2 days)](https://architectelevator.com/workshops/) \r\n As the digital economy changes the rules of the game for enterprises, the role of architects also fundamentally changes. They must connect the penthouse, where the business strategy is defined, with the engine room, where the enabling technologies are implemented. Making this connection by walking from floor to floor won’t work. Instead, modern architects bypass existing structures by taking the Architect Elevator. In this [highly interactive workshop](https://architectelevator.com/workshops/) architects learn how to transcend organizational levels to better link business strategy, IT strategy, and implementation. |\n\n## Upcoming Talks & Tutorials\n\n## Past Talks & Events\n\n| | [Software Architecture Gathering, Online, Nov 14, 2022](https://conferences.isaqb.org/software-architecture-gathering/) [The Architect Elevator: Connecting IT and Boardroom](https://conferences.isaqb.org/software-architecture-gathering/speaker/#the-architect-elevator-connecting-it-and-boardroom) |\n| --- | --- |\n| | [Software Architecture Alliance, Munich, Oct 11, 2022](https://www.software-architecture-alliance.de/software-architecture-alliance-2022) [Der Architekten Aufzug: Vom Maschinenraum in das Penthouse und zurück](https://www.software-architecture-alliance.de/software-architecture-alliance-2022/programm/programm/#:~:text=Architekten%20Aufzug) |\n| | [YOW! Perth Developer Conference 2022, On-line, Sept 19, 2022](https://skillsmatter.com/conferences/13836-yow-perth-2022-online) [Infrastructure as actual Code](https://skillsmatter.com/legacy_profile/gregor-hohpe) \n Cloud automation is much more than just eliminating manual steps - it should be an integral part of your software delivery lifecycle and actively influence your architecture choices. |\n| | [Software Architect Summit, Berlin, Sept 12, 2022](https://software-architecture-summit.de/berlin/) [The Architect Elevator](https://software-architecture-summit.de/softwarearchitektur/keynote/) \n We upgrade our technology all the time - shouldn’t we also update our role as architects? |\n| | [GOTO EDA Day 2022, London, Sept 1, 2022](https://gotoldn.com/) [Keynote: I made everything loosely coupled. What holds my app together?](https://gotoldn.com/2022-eda-aws-day/sessions/2116/i-made-everything-loosely-coupled-does-my-app-fall-apart) |\n| | [PlatformCon Keynote, On-line, June 9-10, 2022](https://platformcon.com/) [Keynote: The Magic of Platforms](https://platformcon.com/talk/you-dont-have-to-be-a-giant-to-carry-teams-on-your-shoulders) |\n| | [Software Architecture Summit, On-line, March 14-16, 2022](https://software-architecture-summit.de/muenchen/) [Keynote: Die Magie der Plattformen](https://software-architecture-summit.de/domain-driven-design/die-magie-der-plattformen/) |\n| | [Software Architecture Conference, New York City, Feb 23-26, 2020](https://conferences.oreilly.com/software-architecture/sa-ny) [2-day Training: The Architect Elevator](https://conferences.oreilly.com/software-architecture/sa-ny/public/schedule/detail/80209) |\n| | [Software Architecture Conference, Berlin, Nov 4-7, 2019](https://conferences.oreilly.com/software-architecture/sa-eu) [2-day Training: The Architect Elevator](https://conferences.oreilly.com/software-architecture/sa-eu/public/schedule/detail/79316) \n [Living in the first derivative](https://conferences.oreilly.com/software-architecture/sa-eu/public/schedule/detail/79166) \n [Enterprise Architecture = Architecting the Enterprise?](https://conferences.oreilly.com/software-architecture/sa-eu/public/schedule/detail/79165) |\n| | [Yow! Singapore, Singapore, Sep 13, 2019](https://yowconference.com/singapore/) Architects live in the first derivative |\n| | [Yow! Perth, Perth, Sep 6, 2019](https://yowconference.com/perth/) Architects live in the first derivative |\n| | [AWS Meetup Singapore, Singapore, July 16, 2019](https://www.meetup.com/AWS-SG/events/262215316/) Being a Cloud Architect |\n| | [SummerSOC, Hersonissos, Greece, June 17-23, 2019](https://www.summersoc.eu/) [The Architect Elevator](https://www.summersoc.eu/program/) |\n| | [TNG Big Tech Day 12, Munich, June 7, 2019](https://www.tngtech.com/big-techday.html) [The Architect Elevator: Connecting Penthouse and Engine Room](https://www.tngtech.com/big-techday/abstracts.html#c22112) |\n| | [Singapore GovTech Stack-X, Singapore, May 28, 2019](https://www.govtechstack.sg/past-events) Keynote: Being a Cloud Architect |\n| | [Software Architecture Conference, New York, Feb 3-6, 2019](https://conferences.oreilly.com/software-architecture/sa-ny) [2-day Training: The Architect Elevator](https://conferences.oreilly.com/software-architecture/sa-ny/public/schedule/detail/72070) \n [Keynote: Architecting IT Transformation](https://conferences.oreilly.com/software-architecture/sa-ny/public/schedule/detail/74391) \n [Enterprise Architecture = Architecting the Enterprise?](https://conferences.oreilly.com/software-architecture/sa-ny/public/schedule/detail/71599) |\n| | [Yow!, Perth, Australia, Sep 3-6, 2018](http://west.yowconference.com.au/profile/?id=gregor-hohpe) [Keynote: Enterprise Architecture = Architecting the Enterprise?](https://west.yowconference.com.au/proposal?id=6062) |\n| | [Yow!, Hong Kong, Sep 13-15, 2018](http://www.yowconference.hk/profile/?id=gregor-hohpe) |\n| | [Agile India, Bangalore, Mar 6-8, 2018](https://2018.agileindia.org/speaker/gregor-hohpe/) [Full Day Workshop: Architecting Enterprise Transformation](https://confengine.com/agile-india-2018/register/selection#workshop-187-info) \n [Adopting Devops - You are aiming at the wrong target!](https://2018.agileindia.org/speaker/gregor-hohpe/) \n [Enterprise Architecture = Architecting the Enterprise?](https://2018.agileindia.org/speaker/gregor-hohpe/) |\n| | [YOW!, Melbourne, Brisbane, Sydney, Nov 30 - Dec 8, 2017](http://melbourne.yowconference.com.au/speakers/gregor-hohpe-2/) [Full Day Workshop: Architecting Enterprise Transformation](http://sydney.yowconference.com.au/proposal/?id=5182) \n [CTO Summit: Life of a Chief Architect](http://sydneyctosummit.yowconference.com.au/profile/?id=gregor-hohpe) \n [Enterprise Architecture = Architecting the Enterprise?](http://melbourne.yowconference.com.au/profile/?id=gregor-hohpe) \n A three-city circuit through Australia. |\n| | [DevOpsCon, Munich, Nov 20-23, 2017](https://devopsconference.de/) [Adopting DevOps? You are aiming at the wrong target!](https://devopsconference.de/business-company-culture/adopting-devops-you-are-aiming-at-the-wrong-target/) |\n| | [Goto Berlin, Berlin, Nov 15-17, 2017](https://gotober.com/2017/speakers/318) [Enterprise Architecture = Architecting the Enterprise?](https://gotober.com/2017/sessions/282) \n [Adopting Devops - You are aiming at the wrong target!](https://gotober.com/2017/sessions/283) \n [Full Day Workshop: Architecting Enterprise Transformation](https://gotober.com/2017/workshops/69) \n The highly interactive full-day workshop shows architects how to ride the \"architect elevator\" to the upper floors where they can align IT with business strategy. This is the first time this workshop is held in Germany in English - don't miss it! |\n| | [YOW! Hong Kong, Hong Kong, Sep 7-8, 2017](http://hongkong.yowconference.com.au/) [Enterprise Integration Patterns 2: The Making of a Pattern Language](http://hongkong.yowconference.com.au/speakers/gregor-hophe/) |\n| | [YOW! Singapore, Singapore, Sep 11-12, 2017](http://www.yowconference.sg/) [Enterprise Integration Patterns 2: The Making of a Pattern Language](http://singapore.yowconference.com.au/speakers/gregor-hophe/) \n [Full Day Workshop: Architecting Enterprise Transformation (Sept 13)](http://singapore.yowconference.com.au/workshops/architecting-enterprise-transformation-37-things-one-architect-knows/) \n This highly interactive full-day workshop teaches architects how to ride the \"architect elevator\" to the upper floors to align IT with business strategy and to instill lasting change into their organization. First time in Singapore! |\n| | [IT-Architekten: Angelpunkt der Digitalen Transformation im Unternehmen, Bern, CH, Aug 25, 2017](https://www.innoq.com/en/trainings/digitale-transformation-it-architektur/) Zum ersten mal live in der Schweiz mit einem Praxis-Training zum Schnittpunkt zwischen IT Architektur und Transformation. Super Angebot fuer CHF 200! |\n| | [IT-Architekten: Angelpunkt der Digitalen Transformation im Unternehmen, Cologne, June 20-21, 2017](https://www.innoq.com/de/trainings/digitale-transformation-it-architektur/) 2-day Workshop in German\r\n \n IT-Architekten spielen eine Schlüsselrolle bei der digitalen Transformation traditioneller Unternehmen, weil sie wissen, wie man Cloud Computing, Big Data, Mobile Apps, IoT, Microservices & Co gewinnbringend im Unternehmen einsetzt. Dazu bedarf es der Fähigkeit, sich auf allen Ebenen der Organisation zu bewegen, um die Firmenstrategie zu verstehen, zu beeinflussen, und durch Softwareentwicklung und IT-Infrastruktur voranzutreiben. |\n| | [Software Architecture Summit, Munich, March 15, 2017](http://software-architecture-summit.de/programm/) [Keynote: Denken wie ein(e) Architekt(in)](https://software-architecture-summit.de/session/keynote-denken-wie-eine-architektin/) |\n| | [OOP, Munich, Jan 30- Feb 3, 2017](http://www.oop-konferenz.de/) [Architekturentscheidungen: Den Wald vor lauter Bäumen sehen](http://www.oop-konferenz.de/oop2017/konferenz/konferenzprogramm/sessiondetails/action/detail/session/mi-21/title/architekturentscheidungen-wie-man-vor-lauter-wald-noch-die-baeume-sehen-kann.html) \n [Architektur einer IT-Transformation](http://www.oop-konferenz.de/oop2017/konferenz/konferenzprogramm/sessiondetails/action/detail/session/do-81/title/architektur-einer-it-transformation-37-dinge-die-ein-chefarchitekt-gelernt-hat.html) |\n| | [YOW!, Sydney, Melbourne, Brisbane, Dec 1-9, 2016](http://yowconference.com.au/) [If you are synchronous you are not resilient](https://a.confui.com/-fenNhxkI) \n [Full Day Workshop: Architecting IT Transformation](https://a.confui.com/-i9NHGW5K) \n My full-day workshop is loosely based on my new book \"37 Things One Architect Knows\" to teach architects how to ride the elevator higher up towards the company leadership to provide more value with IT and to instill lasting change into the organization. |\n| | [IT-Architekten: Angelpunkt der Digitalen Transformation im Unternehmen, Hamburg, Oct 19-20, 2016](https://www.innoq.com/de/trainings/digitale-transformation-it-architektur/) 2-day Seminar in German\r\n \n IT-Architekten spielen eine Schlüsselrolle bei der digitalen Transformation traditioneller Unternehmen, weil sie wissen, wie man Cloud Computing, Big Data, Mobile Apps, IoT, Microservices & Co gewinnbringend im Unternehmen einsetzt. Dazu bedarf es der Fähigkeit, sich auf allen Ebenen der Organisation zu bewegen, um die Firmenstrategie zu verstehen, zu beeinflussen, und durch Softwareentwicklung und IT-Infrastruktur voranzutreiben. |\n| | [Software Architecture Summit, Berlin, Sept 26, 2016](http://software-architecture-summit.de/programm/) [Architektur einer IT Transformation: 37 Dinge, die ein Chefarchitekt wissen muss](http://software-architecture-summit.de/session/architektur-einer-it-transformation-37-dinge-die-ein-chefarchitekt-wissen-muss/) \n [Keynote: Denken wie ein(e) Architekt(in)](http://software-architecture-summit.de/session/keynote/) |\n| | [GOTO Chicago, Chicago. IL, May 23-26, 2016](http://gotocon.com/chicago-2016) [If you are synchronous, you are not resilient](http://gotocon.com/chicago-2016/presentation/If%20you%20are%20synchronous%20you%20are%20not%20resilient) \n [Workshop: Architecting Enterprise Transformation](http://gotocon.com/chicago-2016/presentation/Architecting%20Enterprise%20Transformation) \n I will hold a full-day workshop based on by book-in-progress \"37 Things One Architect Knows\". |\n| | [IT-Architekten: Angelpunkt der Digitalen Transformation im Unternehmen, Munich, April 25-26, 2016](https://www.innoq.com/de/trainings/digitale-transformation-it-architektur/) 2-day Seminar in German |\n| | [Software Architect Summit, Munich, March 16-18, 2016](http://software-architecture-summit.de/) [Keynote: Enterprise Architekten - Raus aus dem Elfenbeinturm, rein in die digitale Welt](http://software-architecture-summit.de/session/keynote-enterprise-architekten-raus-aus-dem-elfenbeinturm-rein-in-die-digitale-welt/) \n [Tutorial: Enterprise Integration Patterns - Messaging und Konversationen](http://software-architecture-summit.de/session/enterprise-integration-patterns-messaging-und-conversations/) [[Download](/docs/EnterpriseIntegrationPatternsHalfDay.pdf)] |\n| | [OOP, Munich, February 1-5, 2016](http://www.oop-konferenz.de/) [Software-Architekturen im Zeitalter der Dinge](http://www.oop-konferenz.de/oop2016/konferenz/konferenzprogramm/sessiondetails/action/detail/session/nmi-2/title/software-architekturen-im-zeitalter-der-dinge.html) (with Frank Buschmann) \n [Tutorial: Enterprise Architekten - Raus aus dem Elfenbeinturm, rein in die digitale Welt](http://www.oop-konferenz.de/oop2016/konferenz/konferenzprogramm/sessiondetails/action/detail/session/mo-5/title/enterprise-architekten-raus-aus-dem-elfenbeinturm-rein-in-die-digitale-welt.html) |\n| | [W-JAX, Munich, November 2-6, 2015](http://jax.de/wjax2015) [Enterprise Architekten - Raus aus dem Elfenbeinturm, rein in die digitale Welt](http://jax.de/wjax2015/sessions/enterprise-architekten-raus-aus-dem-elfenbeinturm-rein-die-digitale-welt) |\n| | [Software Architect Summit, Berlin, September 16-18, 2015](http://software-architecture-summit.de/2015/en/node/844/) Keynote: Enterprise Architekten - Raus aus dem Elfenbeinturm, rein in die digitale Welt\r\n \n Tutorial: Enterprise Integration Patterns - Messaging und Konversationen |\n| | [SATURN 2015, Baltimore, MD, Apr 27-30, 2015](http://www.sei.cmu.edu/saturn/2015/) It's Good to be Architect |\n| | [OOP 2015, Munich, Germany, Jan 26-30, 2015](http://www.oop-konferenz.de/) [Architekten – Halluzinationen aus dem Elfenbeinturm oder IT Heilsbringer?](http://www.oop-konferenz.de/nc/oop2015/konferenz/konferenzprogramm/conference-detail/architekten-halluzinationen-aus-dem-elfenbeinturm-oder-it-heilsbringer.html) (with Frank Buschmann) |\n| | [GOTO Berlin, Berlin, Germany, Nov 6-7, 2014](http://gotocon.com/berlin-2014) [Enterprise Architect - Ivory Tower Resident or Corporate Savior?](http://gotocon.com/berlin-2014/speaker/Gregor+Hohpe) |\n| | [W-Jax 2014, Munich, Germany, Nov 4-6, 2014](http://jax.de/wjax2014) [The Enterprise Architect - Ivory Tower Resident or Corporate Savior?](http://jax.de/wjax2014/sessions/enterprise-architect-ivory-tower-resident-or-corporate-savior) |\n| | [ECSA (European Conference on Software Architecture) 2014, Vienna, Austria, Aug 25-29, 2014](http://ecsa2014.cs.univie.ac.at/) [The Age of Architecture](http://ecsa2014.cs.univie.ac.at/program/keynote-speakers/) |\n| | [TM Forum Live! 2014, Nice, France, June 2-5, 2014](http://www.tmforumlive.org/) [Transforming Global IT Infrastructure](http://www.tmforumlive.org/speakers/?speaker=26367) |\n| | [MobileTech Conference 2013, Munich, Germany, Mar 12-13, 2013](http://mobiletechcon.de/2013/) Near Field communication (NFC) in Japan |\n| | [W-JAX 2012, Munich, Germany, Nov 5-9, 2012](http://jax.de/konferenzen/wjax12) Enterprise Integration Patterns: Past, Present and Future |\n| | [OOP 2012, Munich, Germany, Jan 23-27, 2012](http://www.sigs-datacom.de/oop2012/oop2012.html) NFC - Near Field Communication in Japan [[Download](/docs/NfcOopHohpe.pdf)] \n Embedded Software Development: Spottbillige Hardware + OSS = Zum Spielen zu Schade! [[Download](/docs/EmbeddedOop.pdf)] |\n| | [WSO2Con, Colombo, Sri Lanka, Sep 13-15, 2011](http://wso2.com/events/wso2con-2011-colombo/) Keynote: Enterprise Integration Patterns: Past, Present and Future |\n| | [CamelOne, Arlington, VA, May 24, 2011](http://fusesource.com/camelone2011/) [Keynote: Enterprise Integration Patterns: Past, Present and Future](http://fusesource.com/camelone2011/speakers/#gregor) |\n| | [Goto Conference, Aarhus, Denmark, Oct 4-8, 2010](http://gotocon.com/aarhus-2010) [Data Storage and Analysis in the Cloud](http://gotocon.com/aarhus-2010/speaker/Gregor+Hohpe) [[Download](http://gotocon.com/dl/jaoo-aarhus-2010/slides/GregorHohpe_DataStorageAndAnalysisInTheCloud.pdf)] \n [NFC - Not For Children?](http://gotocon.com/aarhus-2010/speaker/Gregor+Hohpe) [[Download](http://gotocon.com/dl/jaoo-aarhus-2010/slides/GregorHohpe_NFCNotForChildren.pdf)] \n My NFC talk was the 2nd highest ranked at the conference. |\n| | [QCon, Tokyo, Japan, Apr 19-20, 2010](http://qcontokyo.com/tokyo-2010) [Programming the Cloud](http://qcontokyo.com/tokyo-2010/speaker_GregorHohpe.html) |\n| | [Developer Summit, Tokyo, Japan, Feb 18-19, 2010](http://codezine.jp/devsumi/2010) [Distributed Programming the Google Way](http://www.seshop.com/event/dev/2010/timetable/Default.asp?mode=detail&eid=145&tr=01_Cloud+Development#831) |\n| | [OOP, Munich, Germany, Jan 25-29, 2010](http://www.oop2010.com) [Distributed Programming the Google Way](http://www.sigs-datacom.de/konferenz/sessiondetails.html?tx_mwconferences_pi1[showUid]=95) \n [Hooking Stuff Together - Coupling, Messaging, and Conversations](http://www.sigs-datacom.de/konferenz/sessiondetails.html?tx_mwconferences_pi1[showUid]=126) |\n| | [Devoxx, Antwerp, Belgium, Nov 16-19, 2009](http://www.devoxx.com) [Distributed Programming the Google Way](http://www.devoxx.com/display/DV09/Gregor+Hohpe) [[Download](/docs/DistributedProgrammingGoogle.pdf)] \n I collected a set of design considerations for building widely distributed systems and show how they are used in some of Google's core systems, such as Bigtable, GFS, or MapReduce. |\n| | [Karlsruhe Trend Kongress, Karlsruhe, Germany, Nov 20, 2009](http://www.trendkongress.com/) Programming the Cloud for Mere Mortals [[Download](/docs/HohpeProgrammingCloudKeynote.pdf)] \n I was invited to give a 30 minute keynote at this event, which was organized by the CyberForum. I chose to give a high-level overview of some of the challenges inherent in programming distributed systems. |\n| | [JAOO, Aarhus,Denmark, Oct 4-9, 2009](http://jaoo.dk/aarhus-2009/tracks/show_track.jsp?trackOID=266) [Distributed Programming the Google Way](http://jaoo.dk/aarhus-2009/presentation/Distributed+Computing+the+Google+Way) \n I am again running the cloud computing track at JAOO. My talk tries to extract common design patterns or themes from a variety of Google core systems, such as GFS, Bigtable, MapReduce, Sawzall. |\n| | JavaOne 2009, San Francisco, June 2-5, 2009 [Cloud Computing: Show Me the Money](http://www28.cplan.com/cc230/sessions_catalog.jsp?ilc=230-1&ilg=english&isort=&isort_type=&is=yes&icriteria3=hohpe) |\n| | [QCon Tokyo, Tokyo, Japan, April 9 - 10, 2009](http://qcontokyo.com/) [Programming the Cloud](http://qcontokyo.com/tokyo-2009/speaker_52.html) [[Download](https://sites.google.com/site/gcodejp/slides/ProgrammingCloud_QCon.pdf)] \n I was finally able to speak about Google App Engine for Java. |\n| | [Developer Summit Tokyo, Tokyo, Japan, Feb 12-13, 2009](http://codezine.jp/devsumi/2009) [Programming the Cloud](http://www.seshop.com/event/dev/2009/timetable/Default.asp?mode=detail&eid=124&sid=749) |\n| | [QCon San Francisco, San Francisco, CA, November 19 - 21, 2008](http://qcon.infoq.com/sanfrancisco-2008/tracks/show_track.jsp?trackOID=159) Track: The Cloud as the New Middleware Platform\r\n \n I am track hosting the Cloud Computing track. We'll have speakers from Google, Yahoo, Salesforce, and John \"ProgrammableWeb\" Musser. |\n| | [JAOO Denmark, Aarhus, Denmark, September 28 - October 3, 2008](http://www.jaoo.dk/conference/) GData: Google, the Cloud, and You |\n| | [IDG JavaWorld Day, Shinagawa, Japan, August 20, 2008](http://www.idg.co.jp/expo/jwday/2008/session/#K-1) Programming the Cloud -- the Internet as a Platform |\n| | [Tokyo 2.0, SuperDeluxe, Tokyo, August 11, 2008](http://www.tokyo2point0.net/events/event/show?id=765451:Event:6342) Programm the Cloud |\n| | [JAOO Australia, Sydney & Brisbane, Australia, May 28 - June 1, 2008](http://jaoo.com.au/sydney/conference/) GData: Google, the Cloud, and You\r\n \n \"Hooking Stuff Together\" – Coupling, Messaging, and Conversations\r\n \n Software Visualization and Model Generation (with Erik Doernenburg) |\n| | [QCon, London, UK, March 10-14, 2008](http://qcon.infoq.com/london/tracks/show_track.jsp?trackOID=95) Track: The Cloud as the New Middleware Platform\r\n \n I'll be organizing the coud computing track for QCon. Hope to see you there! |\n| | [W-Jax, Munich, Germany, November 5-9, 2007](http://jax.de/konferenzen/wjax07) [Developing in an SOA World](http://jax.de/konferenzen/wjax07/sessions.php?tid=596#session-11) \n [Programming Without a Call Stack - Event-driven Architectures in Action](http://jax.de/konferenzen/wjax07/sessions.php?tid=596#session-5) [[Download](/docs/hohpe_event_driven_architectures.pdf)] |\n| | [Fifth International Workshop on SOA and Web Services Best Practices (at OOPSLA), Montreal, Canada, October 21, 2007](http://boss.bekk.no/oopsla2007/) Keynote -- SOA Patterns: New Insights or Recycled Knowledge? [[Download](/docs/HohpeSOAPatterns.pdf)] |\n| | [Colorado Software Summit, Keystone, Colorado, October 21-26, 2007](http://www.softwaresummit.com/) Mashing Up with Google Mashup Editor and Yahoo! Pipes\r\n \n Programming without a Call Stack – Event-driven Architectures\r\n \n My first live talk about Google products. Just to maintain the balance in the universe I work with both Yahoo! Pipes and Google Mashup Editor. |\n| | [ICSOC: International Conference on Service-oriented Computing, Vienna, Austria, September 17-20, 2007](http://icsoc2007.servtech.info/) Panel on SOA Governance\r\n \n Panel on Service API's and Mashups\r\n \n Panel on SOA Run-time |\n| | [TheServerSide Java Symposium Europe, Barcelona, June 27-29, 2007](http://javasymposium.techtarget.com/europe/) [Software Visualization and Model Generation](http://javasymposium.techtarget.com/europe/sessions.html#GHohpeSoftware) (with Erik Doernenburg) \n [Programming without a Call Stack - Event-driven Architectures](http://javasymposium.techtarget.com/europe/sessions.html#GHohpeProgramming) |\n| | [DEBS: Distributed Event-based Systems, Toronto, Canada, June 20-22, 2007](http://www.debs.msrg.utoronto.ca/) [Architect's Dream or Developer's Nightmare](http://www.debs.msrg.utoronto.ca/program.shtml#hohpe) |\n| | [SD West, Santa Clara, CA, March 19-23, 2007](http://www.sdexpo.com/) [Developing in a Service-Oriented World](http://www.cmpevents.com/SDw7/a.asp?option=G&V=3&id=196544) \n [Software Visualization and Model Generation](http://www.cmpevents.com/SDw7/a.asp?option=G&V=3&id=196544) \n [Conversations between Loosely Coupled Services](http://www.cmpevents.com/SDw7/a.asp?option=G&V=3&id=196544) |\n| | [OOP, Munich, Germany, Jan 22-26, 2007](http://www.oopconference.com) [Conversations between Loosely Coupled Services](http://www.sigs-datacom.de/sd/kongresse/oop_2007/program.php?cat=session&ID=89) \n [Software Visualization and Model Generation](http://www.sigs-datacom.de/sd/kongresse/oop_2007/program.php?cat=session&ID=113) (with Erik Doernenburg) |\n| | [JAOO, Aarhus, Denmark, October 1-6](http://www.jaoo.dk/) [Conversations between loosely coupled services](http://www.infoq.com/presentations/hohpe-soa-conversations) \n I will be leading the SOA track at JAOO this year. Is there anything left to say about SOA? I think so! I am looking to compile a series of insightful talks that are based on real experiences. |\n| | [SOA Days Technology Conference, Bonn, Germany, Sept 20 -21](http://domains.euroforum.com/soa/) Patterns in Service-oriented Architectures |\n| | [JavaZone, Oslo, Norway, September 12-15](http://www.javazone.no/) Software Visualization and Model Generation (with Erik Doernenburg) \n [Developing in a Service-oriented World](http://www.infoq.com/presentations/hohpe-soa-development) \n I have heard great things about JavaZone from many other speakers. This time I get to be part of it. |\n| | [TheServerSide Java Symposium Europe, Barcelona, Spain, June 21-23](http://javasymposium-europe.techtarget.com/) Software Visualization and Model Generation (with Erik Doernenburg) \n Developing in a Service-oriented World |\n| | [SpringOne, Antwerp, Belgium, June 15-16](http://www.springone.com/) [Patterns in Service-oriented Architectures](http://www.springone.com/display/SpringOne06/Patterns+in+Service-oriented+Architectures) \n Keynote: Where did all my beautiful code go? [[Download](/docs/SpringOneKeynotePub.pdf)] \n This one should be fun -- I get to hang out with my intellectual drinking buddies in Antwerp. |\n| | [Burton Group Catalyst, San Francisco, June 14-16](http://catalyst.burtongroup.com/) [Agile SOA - The SDLC, SOA, and YOU](http://catalyst.burtongroup.com/attendees/abstract.php?sessionID=319) \n Agile development methods enjoy increasing popularity when it comes to building business applications. They promise flexibility, immediate customer feedback, and a high-quality solution. However, some of the basic mechanisms of service-oriented architectures can be perceived as a counterforce to agile development. For example, published interface contracts can bog down rapid iteration. Also, development tools that support an agile development style are not always available for Web-services based interactions. Can you have the best of both worlds? |\n| | [Forrester's IT Forum 2006: GigaWorld, Las Vegas, April 6](http://www.forrester.com/Events/Overview/1,5158,1173,00.html) [Panel: The Death of Programming](https://www.forresterevents.com/ITF2006/scheduler//profile.do?SESSION_ID=1111&ts=1143615885398) |\n| | [TheServerSide Symposium, Las Vegas, March 23 - 25](http://javasymposium.techtarget.com/) Keynote: Where did all my beautiful code go? [[Download](/docs/TSS_Keynote_Hohpe.pdf)] \n [Software Visualization and Model Generation](http://javasymposium.techtarget.com/html/det_descriptions.htm#GHohpeSoftware) [[Download](/docs/TSS_software_visualization.pdf)] (with Erik Doernenburg) \n [Patterns in Service-Oriented Architectures](http://javasymposium.techtarget.com/html/det_descriptions.htm#GHohpePatterns) |\n| | [Software Development, Santa Clara, March 13 - 17](http://www.cmpevents.com/SDw6/a.asp?option=C) [Developing in a Service-Oriented World](http://www.cmpevents.com/SDw6/a.asp?option=C&V=11&SessID=1764) \n [Conversations Between Loosely Coupled Services](http://www.cmpevents.com/SDw6/a.asp?option=C&V=11&SessID=1680) [[Download](/docs/Conversations_loosely_coupled.pdf)] |\n| | [OOP 2006, Munich, January 16 - 20](http://www.sigs-datacom.de/sd/kongresse/oop_2006/) [Developing in a Service-Oriented World](http://www.sigs-datacom.de/sd/kongresse/oop_2006/program.php?cat=session&ID=46) \n [Distributed Systems Architectures based on Asynchronous Messaging](http://www.sigs-datacom.de/sd/kongresse/oop_2006/program.php?cat=session&ID=21) \n [Enterprise Integration Patterns](http://www.sigs-datacom.de/sd/kongresse/oop_2006/program.php?cat=session&ID=66) \n \r\nI heard good things about this German conference from a number of people. This time I'll have an opportunity to speak. It'll be great to be in Munich during the winter but they make me work pretty hard for it: three talks in a row... I hope there will be some time left to party with Christian! |\n| | [OOPSLA 2005, San Diego, October 16- 20](http://www.oopsla.org/2005) Tutorial - Programming without a Call Stack - Event-driven Architectures in Action\r\n \n This 3 hour tutorial will allow me to expand on my popular talk on composable, event-driven systems. |\n| | [Microsoft PDC , Los Angeles, September 11-16](http://msdn.microsoft.com/events/pdc/) Panel: The Art and Practice of Connected Systems \r\n \n A panel with Steve Swartz should be fun, especially on connected systems. |\n| | [Microsoft TechEd Europe, Amsterdam, July 5-8](http://www.mseventseurope.com/teched/05/pre/content/default.aspx) Messaging Patterns with Indigo\r\n \n This talk is still in the planning phase. TechEd Europe will have quite a few Indigo talks\r\n because not everybody is going to be able to make it to PDC. I myself\r\n need to find a way to weazle a ticket to PDC out of someone ;-) |\n| | [SD Forum, eBay Conference Center, San Jose, June 28](http://www.sdforum.org/SDForum/Templates/CalendarEvent.aspx?CID=1675&mo=6&yr=2005) Developing in a Service-Oriented World \r\n \n The SD Forum organizes local events in the Bay Area. This talk concludes an all day Web Services\r\n Conference organized by SD Forum. Admission is free to SD Members or $15 for others. This might be the\r\n cheapest way yet to see me speak :-) |\n| | [Microsoft TechEd, Orlando, June 5-10](http://www.microsoft.com/events/teched2005) Introduction to Messaging (with Ted Neward) \n I will be co-presenting with Ted Neward, which promises to be quite entertaining :-) |\n| | [EAI Forum, Karlsruhe, Germany, April 18-21](http://www.eai-forum.de/) Enterprise Integration Patterns\r\n \n EAI Forum is the largest integration related event in the German speaking area. Luckily, I started\r\n to translate some of my material into German... |\n| | TIBCO Software Conference: From Real-Time to Predictive Enterprise, Dubai, UAE, April 10 SOA = Same Old Architecture?\r\n \n Enterprise Integration Patterns |\n| | [Software Development Conference & Expo, Santa Clara, March 14-18](http://www.sdexpo.com) Programming Without a Call Stack: Event-Driven Architectures in Java\r\n \n After missing the SD conference this year, I will explain how to leverage event-driven architectures\r\n inside a single virtual machine. |\n| | [Patterns and Practices Summit, Mountain View, March 14-16](http://www.pnpsummit.com/west2005.aspx) Developing in a Service-Oriented World \r\n \n Keith Pleas organizes these summits in close collaboration with Microsoft. These events are\r\n smaller in scale but give attendees ample access to the speakers. Ward\r\n is coming as well, so this one should be good. |\n| | [Canadian Strategic Architect Forum, Seattle, March 9-10](http://www.dynamicevents.com/CSAF05/) Integration Patterns\r\n \n Well, Martin gets to go to the Gold Coast and I have to make do with rainy Seattle. Oh well,\r\n gotta write a few more books :-) |\n| | [TheServerSide Java Symposium, Las Vegas, March 3-5](http://www.theserverside.com/symposium/) Event-Driven Architectures in Action\r\n \n SOA = Same Old Architecture?\r\n \n I am sure next year's TheServerSide Symposium will be as much fun and as content-rich as last\r\n year's. I look forward to more panels moderated by Ted Neward |\n| | [GI Fachtagung fuer Datenbanksysteme in Business, Technologie und Web,, Karlsruhe, Germany, March 2-4](http://www.btw2005.de/) Developing in a Service-Oriented World\r\n \n Despite the apparent database focus in the title of\r\n this event, there is a definite emphasis on SOA and Web services. Frank\r\n Leymann and Satish Thatte (the two brainfathers of BPEL) will speak there\r\n as well so I am honored to have my name appear among all the BPEL celebrities.\r\n My talk will focus on what SOA means for developers,\r\n what kind of tools and skill sets we need etc. I think this is a topic\r\n that is too often ignored as we all love to dwell in the architectural\r\n benefits of SOA. |\n| | [VSLive! Software Architect Summit, , San Francisco, February 6-10](http://www.vslive.com/sf) Developing in a Service-Oriented World\r\n \n I jumped into this one at the last minute. Interesting line-up with lots of talks on SOA etc. |\n| | [JavaPolis 2004, Antwerp, Belgium, Dec 13-17](http://wiki.javapolis.com) [Enterprise Integration Patterns: Asynchronous Messaging Architectures in Practice](http://www.javapolis.com/confluence/display/JP04/Gregor%2BHohpe) \n My ACM tutorials use C# examples, so for JavaPolis I am going to port these to JAX-RPC or JMS.\r\n The way I constructed the example components switching from one transport to the other should be\r\n very easy. Maybe BEA's new QuickSilver will be available by then. It would be cool to do the examples in that.\r\n Anyone from BEA feel free to e-mail me :-) |\n| | [EAI Expertentag, Technische Universitaet Berlin, Nov 25-26](http://www.sysedv.tu-berlin.de/eai/eaitag2004.html) Keynote: Buchstabensuppe: Was steckt eigentlich hinter ESB, SOA, SOAP, WSDL & Co?\r\n \n Workshop: Enterprise Integration Patterns: Asynchrone Messaging Architekturen in der Praxis\r\n \n EAI Patterns for the first time in German! Jawohl... |\n| | [Sun JavaOne, San Francisco, June 28-July 1, 2004](http://servlet.java.sun.com/javaone/) Enterprise Integration Patterns: Asynchronous Messaging Architectures in Practice\r\n \n At least one show close to home :-) |\n| | [OOPSLA 2004, Vancouver, Canada, Oct 24-28](http://www.oopsla.org/2004) [Enterprise Integration Patterns: Asynchronous Messaging Architectures in Practice](http://www.oopsla.org/2004/ShowEvent.do?id=133) \n The most popular tutorial so far at OOPSLA 2004! Join us! This year we split the tutorial in two halves. Bobby\r\n does a half-day intro into the terminology and request-reply examples.\r\n My tutorial focuses on coupling, service-orientation, message flow architectures\r\n and conversations. I will use real running examples to show how to construct\r\n message flow architectures. |\n| | [ACM Middleware 2004, Toronto, Canada, Oct 18-22](http://www.eecg.toronto.edu/middleware2004/) [1/2 Day Tutorial: Enterprise Integration Patterns: Asynchronous Messaging Architectures in Practice](http://www.eecg.toronto.edu/middleware2004/tp04.htm) \n No reruns! This tutorial will feature more real, running\r\n examples. I am currently assembling a set of reusable components that\r\n implement the core patterns (Splitter, Router, Translator). During the\r\n tutorial I will use these components to show running versions of the examples\r\n discussed in the slides. I am also planning to post these components on\r\n this site once they are done. |\n| | [Microsoft TechEd, San Diego, May 24-28, 2004](http://www.microsoft.com/seminar/teched2004) Patterns in the Enterprise\r\n \n A walk through application and integration patterns\r\n targeted at enterprise developers. By the time TechEd is held our new\r\n Microsoft PAG book on integration patterns should be available. |\n| | [EAI Industry Consortium Global Summit, Banff, Canada, May 24-28, 2004](http://www.eaiindustry.org) Half-day tutorial on Enterprise Integration Patterns\r\n \n Finally a conference focused on EAI. I am very excited to present at an event dedicated to integration issues. |\n| | [TheServerSide Java Symposium, Las Vegas, May 6-8, 2004](http://www.theserverside.com/symposium/) Enterprise Integration Patterns\r\n \n Event-Driven Architectures |\n| | [Information Processing Society of Japan - Patterns Working Group, Tokyo, Japan, April 20](http://patterns-wg.fuka.info.waseda.ac.jp/ps2004.html) \n Hironori Washizaki and his team invited me to give a talk at the Tokyo Patterns\r\n Working Group. I had a great time and learned how to write my name in\r\n Katakana. |\n| | [JavaPolis, Antwerp, Belgium, December 3-4](http://www.bejug.org) \n One of the biggest Java events in Europe, organized by the Belgian Java User's group - BeJUG. |\n| | [Nexus Computer Books, Calgary, Canada, Nov 27](http://www.nexuscomputerbooks.com) \n Nexus is a neat computer bookstore and somewhat of a local institution. Sadly, I think they have gone out of business since. |\n| | [OOPSLA 2003, Anaheim, Oct 26-30](http://oopsla.acm.org/oopsla2003/) Tutorial on Enterprise Integration Patterns (with Bobby Woolf) \n A half-day tutorial showing how to use integration\r\n patterns to design integration solutions. Plus: Book Launch!! |\n| | [JAOO 2003, Aarhus, Denmark, Sept 22-26](http://www.jaoo.dk) Enterprise Integration Patterns [[Download](/docs/jaoo_hohpeg_enterpriseintegrationpatterns.pdf)] \n Test-Driven Enterprise Integration \r\n \n This big conference in a small country continues to attract top-notch software development talent.\r\n JAOO really one of the best-run shows I know of. The speaker roster is first class and the general\r\n level is very high. |\n| | [SD Best Practices Conference, Boston, Sept 15-18, 2003](http://www.sdexpo.com) Enterprise Integration Patterns - Asynchronous Messaging Architectures in Practice [[Download](/docs/hohpeg_enterpriseintegrationpatterns_sdbp.pdf)] \n A quick (25 slide) introduction into EAI patterns. |\n| | [TechEd 2003, Dallas, June 1-6](http://www.microsoft.com/usa/teched) |\n| | [SD West 2003 Conference, Santa Clara, March 24-28, 2003](http://www.sdexpo.com/2003/west) Enterprise Integration Patterns [[Download](/docs/hohpeg_enterpriseintegrationpatterns.pdf)] \n A\r\n 90 minute journey through the world of EAI patterns. |\n| | [2002 LOMA Systems Forum](http://www.loma.org/sf.htm) [Shedding New Light on Enterprise Integration](ftp://www.loma.org/2002SFFowler.ppt) (with Martin Fowler) |\n\n---", "znaku_textu": 38328, "slov": 4103, "odkazu": 216, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/talks", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 06:01:23", "sha256": "87fcdce2d59c9b6e36a856e4e3fab1e22ebe94fdf92b0af24550575a02f90a9d", "hloubka": 1, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://architectelevator.com/workshops/", "https://conferences.isaqb.org/software-architecture-gathering/", "https://conferences.isaqb.org/software-architecture-gathering/speaker/", "https://www.software-architecture-alliance.de/software-architecture-alliance-2022", "https://www.software-architecture-alliance.de/software-architecture-alliance-2022/programm/programm/", "https://skillsmatter.com/conferences/13836-yow-perth-2022-online", "https://skillsmatter.com/legacy_profile/gregor-hohpe", "https://software-architecture-summit.de/berlin/", "https://software-architecture-summit.de/softwarearchitektur/keynote/", "https://gotoldn.com/", "https://gotoldn.com/2022-eda-aws-day/sessions/2116/i-made-everything-loosely-coupled-does-my-app-fall-apart", "https://platformcon.com/", "https://platformcon.com/talk/you-dont-have-to-be-a-giant-to-carry-teams-on-your-shoulders", "https://software-architecture-summit.de/muenchen/", "https://software-architecture-summit.de/domain-driven-design/die-magie-der-plattformen/", "https://conferences.oreilly.com/software-architecture/sa-ny", "https://conferences.oreilly.com/software-architecture/sa-ny/public/schedule/detail/80209", "https://conferences.oreilly.com/software-architecture/sa-eu", "https://conferences.oreilly.com/software-architecture/sa-eu/public/schedule/detail/79316", "https://conferences.oreilly.com/software-architecture/sa-eu/public/schedule/detail/79166", "https://conferences.oreilly.com/software-architecture/sa-eu/public/schedule/detail/79165", "https://yowconference.com/singapore/", "https://yowconference.com/perth/", "https://www.meetup.com/AWS-SG/events/262215316/", "https://www.summersoc.eu/", "https://www.summersoc.eu/program/", "https://www.tngtech.com/big-techday.html", "https://www.tngtech.com/big-techday/abstracts.html", "https://www.govtechstack.sg/past-events", "https://conferences.oreilly.com/software-architecture/sa-ny/public/schedule/detail/72070", "https://conferences.oreilly.com/software-architecture/sa-ny/public/schedule/detail/74391", "https://conferences.oreilly.com/software-architecture/sa-ny/public/schedule/detail/71599", "http://west.yowconference.com.au/profile/?id=gregor-hohpe", "https://west.yowconference.com.au/proposal?id=6062", "http://www.yowconference.hk/profile/?id=gregor-hohpe", "https://2018.agileindia.org/speaker/gregor-hohpe/", "https://confengine.com/agile-india-2018/register/selection", "http://melbourne.yowconference.com.au/speakers/gregor-hohpe-2/", "http://sydney.yowconference.com.au/proposal/?id=5182", "http://sydneyctosummit.yowconference.com.au/profile/?id=gregor-hohpe", "http://melbourne.yowconference.com.au/profile/?id=gregor-hohpe", "https://devopsconference.de/", "https://devopsconference.de/business-company-culture/adopting-devops-you-are-aiming-at-the-wrong-target/", "https://gotober.com/2017/speakers/318", "https://gotober.com/2017/sessions/282", "https://gotober.com/2017/sessions/283", "https://gotober.com/2017/workshops/69", "http://hongkong.yowconference.com.au/", "http://hongkong.yowconference.com.au/speakers/gregor-hophe/", "http://www.yowconference.sg/", "http://singapore.yowconference.com.au/speakers/gregor-hophe/", "http://singapore.yowconference.com.au/workshops/architecting-enterprise-transformation-37-things-one-architect-knows/", "https://www.innoq.com/en/trainings/digitale-transformation-it-architektur/", "https://www.innoq.com/de/trainings/digitale-transformation-it-architektur/", "http://software-architecture-summit.de/programm/", "https://software-architecture-summit.de/session/keynote-denken-wie-eine-architektin/", "http://www.oop-konferenz.de/", "http://www.oop-konferenz.de/oop2017/konferenz/konferenzprogramm/sessiondetails/action/detail/session/mi-21/title/architekturentscheidungen-wie-man-vor-lauter-wald-noch-die-baeume-sehen-kann.html", "http://www.oop-konferenz.de/oop2017/konferenz/konferenzprogramm/sessiondetails/action/detail/session/do-81/title/architektur-einer-it-transformation-37-dinge-die-ein-chefarchitekt-gelernt-hat.html", "http://yowconference.com.au/", "https://a.confui.com/-fenNhxkI", "https://a.confui.com/-i9NHGW5K", "http://software-architecture-summit.de/session/architektur-einer-it-transformation-37-dinge-die-ein-chefarchitekt-wissen-muss/", "http://software-architecture-summit.de/session/keynote/", "http://gotocon.com/chicago-2016", "http://gotocon.com/chicago-2016/presentation/If%20you%20are%20synchronous%20you%20are%20not%20resilient", "http://gotocon.com/chicago-2016/presentation/Architecting%20Enterprise%20Transformation", "http://software-architecture-summit.de/", "http://software-architecture-summit.de/session/keynote-enterprise-architekten-raus-aus-dem-elfenbeinturm-rein-in-die-digitale-welt/", "http://software-architecture-summit.de/session/enterprise-integration-patterns-messaging-und-conversations/", "http://www.oop-konferenz.de/oop2016/konferenz/konferenzprogramm/sessiondetails/action/detail/session/nmi-2/title/software-architekturen-im-zeitalter-der-dinge.html", "http://www.oop-konferenz.de/oop2016/konferenz/konferenzprogramm/sessiondetails/action/detail/session/mo-5/title/enterprise-architekten-raus-aus-dem-elfenbeinturm-rein-in-die-digitale-welt.html", "http://jax.de/wjax2015", "http://jax.de/wjax2015/sessions/enterprise-architekten-raus-aus-dem-elfenbeinturm-rein-die-digitale-welt", "http://software-architecture-summit.de/2015/en/node/844/", "http://www.sei.cmu.edu/saturn/2015/", "http://www.oop-konferenz.de/nc/oop2015/konferenz/konferenzprogramm/conference-detail/architekten-halluzinationen-aus-dem-elfenbeinturm-oder-it-heilsbringer.html", "http://gotocon.com/berlin-2014", "http://gotocon.com/berlin-2014/speaker/Gregor+Hohpe", "http://jax.de/wjax2014", "http://jax.de/wjax2014/sessions/enterprise-architect-ivory-tower-resident-or-corporate-savior", "http://ecsa2014.cs.univie.ac.at/", "http://ecsa2014.cs.univie.ac.at/program/keynote-speakers/", "http://www.tmforumlive.org/", "http://www.tmforumlive.org/speakers/?speaker=26367", "http://mobiletechcon.de/2013/", "http://jax.de/konferenzen/wjax12", "http://www.sigs-datacom.de/oop2012/oop2012.html", "http://wso2.com/events/wso2con-2011-colombo/", "http://fusesource.com/camelone2011/", "http://fusesource.com/camelone2011/speakers/", "http://gotocon.com/aarhus-2010", "http://gotocon.com/aarhus-2010/speaker/Gregor+Hohpe", "http://gotocon.com/dl/jaoo-aarhus-2010/slides/GregorHohpe_DataStorageAndAnalysisInTheCloud.pdf", "http://gotocon.com/dl/jaoo-aarhus-2010/slides/GregorHohpe_NFCNotForChildren.pdf", "http://qcontokyo.com/tokyo-2010", "http://qcontokyo.com/tokyo-2010/speaker_GregorHohpe.html", "http://codezine.jp/devsumi/2010", "http://www.seshop.com/event/dev/2010/timetable/Default.asp?eid=145&mode=detail&tr=01_Cloud+Development", "http://www.oop2010.com/"]} {"url": "https://www.enterpriseintegrationpatterns.com/toc.html", "titulek": "Table of Contents - Enterprise Integration Patterns", "h1": "", "popis": "Table of Contents - Enterprise Integration Patterns", "klicova_slova": "Table of Contents,integration, messaging, events, patterns, event-driven, coupling, eai, middleware, application integration, enterprise integration", "kanonicka": "", "jazyk": "", "robots_meta": "", "og": {"og:type": "article", "og:site_name": "Enterprise Integration Patterns", "og:title": "Table of Contents - Enterprise Integration Patterns", "og:url": "https://www.enterpriseintegrationpatterns.com", "og:image": "https://www.enterpriseintegrationpatterns.com/img/eip1_patterns_wide.png"}, "jsonld": [], "drobecky": [], "osnova": [], "markdown": "Messaging Patterns\n\n| | Table of Contents[Messaging Patterns](index.html) | [Contents](toc.html)[⇐ Prev](index.html)[Next ⇒](Preface.html) |\n| --- | --- | --- |\n\n| | [Messaging Patterns Overview](index.html) | |\n| --- | --- | --- |\n| | [Table of Contents](toc.html) | Detailed table of contents. |\n| | [Preface](Preface.html) | |\n| | [Introduction](Introduction.html) | |\n| | [Solving Integration Problems using Patterns](Chapter1.html) | |\n| Integration Styles | | |\n| | [Introduction to Integration Styles](IntegrationStylesIntro.html) | |\n| | [File Transfer](FileTransferIntegration.html) | How can I integrate multiple applications so that they work together and can exchange information? |\n| | [Shared Database](SharedDataBaseIntegration.html) | How can I integrate multiple applications so that they work together and can exchange information? |\n| | [Remote Procedure Invocation](EncapsulatedSynchronousIntegration.html) | How can I integrate multiple applications so that they work together and can exchange information? |\n| | [Messaging](Messaging.html) | How can I integrate multiple applications so that they work together and can exchange information? |\n| Messaging Systems | | |\n| | [Introduction to Messaging Systems](MessagingComponentsIntro.html) | |\n| | [Message Channel](MessageChannel.html) | How does one application communicate with another using messaging? |\n| | [Message](Message.html) | How can two applications connected by a message channel exchange a piece of information? |\n| | [Pipes and Filters](PipesAndFilters.html) | How can we perform complex processing on a message while maintaining independence and flexibility? |\n| | [Message Router](MessageRouter.html) | How can you decouple individual processing steps so that messages can be passed to different filters depending on a set of conditions? |\n| | [Message Translator](MessageTranslator.html) | How can systems using different data formats communicate with each other using messaging? |\n| | [Message Endpoint](MessageEndpoint.html) | How does an application connect to a messaging channel to send and receive messages? |\n| Messaging Channels | | |\n| | [Introduction to Messaging Channels](MessagingChannelsIntro.html) | |\n| | [Point-to-Point Channel](PointToPointChannel.html) | How can the caller be sure that exactly one receiver will receive the document or perform the call? |\n| | [Publish-Subscribe Channel](PublishSubscribeChannel.html) | How can the sender broadcast an event to all interested receivers? |\n| | [Datatype Channel](DatatypeChannel.html) | How can the application send a data item such that the receiver will know how to process it? |\n| | [Invalid Message Channel](InvalidMessageChannel.html) | How can a messaging receiver gracefully handle receiving a message that makes no sense? |\n| | [Dead Letter Channel](DeadLetterChannel.html) | What will the messaging system do with a message it cannot deliver? |\n| | [Guaranteed Delivery](GuaranteedMessaging.html) | How can the sender make sure that a message will be delivered, even if the messaging system fails? |\n| | [Channel Adapter](ChannelAdapter.html) | How can you connect an application to the messaging system so that it can send and receive messages? |\n| | [Messaging Bridge](MessagingBridge.html) | How can multiple messaging systems be connected so that messages available on one are also available on the others? |\n| | [Message Bus](MessageBus.html) | 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? |\n| Message Construction | | |\n| | [Introduction to Message Construction](MessageConstructionIntro.html) | |\n| | [Command Message](CommandMessage.html) | How can messaging be used to invoke a procedure in another application? |\n| | [Document Message](DocumentMessage.html) | How can messaging be used to transfer data between applications? |\n| | [Event Message](EventMessage.html) | How can messaging be used to transmit events from one application to another? |\n| | [Request-Reply](RequestReply.html) | When an application sends a message, how can it get a response from the receiver? |\n| | [Return Address](ReturnAddress.html) | How does a replier know where to send the reply? |\n| | [Correlation Identifier](CorrelationIdentifier.html) | How does a requestor that has received a reply know which request this is the reply for? |\n| | [Message Sequence](MessageSequence.html) | How can messaging transmit an arbitrarily large amount of data? |\n| | [Message Expiration](MessageExpiration.html) | How can a sender indicate when a message should be considered stale and thus shouldn’t be processed? |\n| | [Format Indicator](FormatIndicator.html) | How can a message’s data format be designed to allow for possible future changes? |\n| Interlude: Simple Messaging | | |\n| | [Introduction to Simple Messaging Examples](SimpleMessagingIntro.html) | |\n| | [JMS Request/Reply Example](RequestReplyJmsExample.html) | |\n| | [.NET Request/Reply Example](RequestReplyNetExample.html) | |\n| | [JMS Publish/Subscribe Example](ObserverJmsExample.html) | |\n| Message Routing | | |\n| | [Introduction to Message Routing](MessageRoutingIntro.html) | |\n| | [Content-Based Router](ContentBasedRouter.html) | How do we handle a situation where the implementation of a single logical function (e.g., inventory check) is spread across multiple physical systems? |\n| | [Message Filter](Filter.html) | How can a component avoid receiving uninteresting messages? |\n| | [Dynamic Router](DynamicRouter.html) | How can you avoid the dependency of the router on all possible destinations while maintaining its efficiency? |\n| | [Recipient List](RecipientList.html) | How do we route a message to a list of dynamically specified recipients? |\n| | [Splitter](Sequencer.html) | How can we process a message if it contains multiple elements, each of which may have to be processed in a different way? |\n| | [Aggregator](Aggregator.html) | How do we combine the results of individual, but related messages so that they can be processed as a whole? |\n| | [Resequencer](Resequencer.html) | How can we get a stream of related but out-of-sequence messages back into the correct order? |\n| | [Composed Message Processor](DistributionAggregate.html) | How can you maintain the overall message flow when processing a message consisting of multiple elements, each of which may require different processing? |\n| | [Scatter-Gather](BroadcastAggregate.html) | 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? |\n| | [Routing Slip](RoutingTable.html) | 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? |\n| | [Process Manager](ProcessManager.html) | 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? |\n| | [Message Broker](MessageBroker.html) | How can you decouple the destination of a message from the sender and maintain central control over the flow of messages? |\n| Message Transformation | | |\n| | [Introduction to Message Transformation](MessageTransformationIntro.html) | |\n| | [Envelope Wrapper](EnvelopeWrapper.html) | How can existing systems participate in a messaging exchange that places specific requirements on the message format, such as message header fields or encryption? |\n| | [Content Enricher](DataEnricher.html) | How do we communicate with another system if the message originator does not have all the required data items available? |\n| | [Content Filter](ContentFilter.html) | How do you simplify dealing with a large message, when you are interested only in a few data items? |\n| | [Claim Check](StoreInLibrary.html) | How can we reduce the data volume of message sent across the system without sacrificing information content? |\n| | [Normalizer](Normalizer.html) | How do you process messages that are semantically equivalent, but arrive in a different format? |\n| | [Canonical Data Model](CanonicalDataModel.html) | How can you minimize dependencies when integrating applications that use different data formats? |\n| Interlude: Composed Messaging | | |\n| | [Introduction to Composed Messaging Examples](ComposedMessagingExample.html) | |\n| | [Synchronous Implementation using Web Services](ComposedMessagingWS.html) | |\n| | [Asynchronous Implementation with MSMQ](ComposedMessagingMSMQ.html) | |\n| | [Asynchronous Implementation with TIBCO ActiveEnterprise](ComposedMessagingTIBCO.html) | |\n| Messaging Endpoints | | |\n| | [Introduction to Messaging Endpoints](MessagingEndpointsIntro.html) | |\n| | [Messaging Gateway](MessagingGateway.html) | How do you encapsulate access to the messaging system from the rest of the application? |\n| | [Messaging Mapper](MessagingMapper.html) | How do you move data between domain objects and the messaging infrastructure while keeping the two independent of each other? |\n| | [Transactional Client](TransactionalClient.html) | How can a client control its transactions with the messaging system? |\n| | [Polling Consumer](PollingConsumer.html) | How can an application consume a message when the application is ready? |\n| | [Event-Driven Consumer](EventDrivenConsumer.html) | How can an application automatically consume messages as they become available? |\n| | [Competing Consumers](CompetingConsumers.html) | How can a messaging client process multiple messages concurrently? |\n| | [Message Dispatcher](MessageDispatcher.html) | How can multiple consumers on a single channel coordinate their message processing? |\n| | [Selective Consumer](MessageSelector.html) | How can a message consumer select which messages it wishes to receive? |\n| | [Durable Subscriber](DurableSubscription.html) | How can a subscriber avoid missing messages while it’s not listening for them? |\n| | [Idempotent Receiver](IdempotentReceiver.html) | How can a message receiver deal with duplicate messages? |\n| | [Service Activator](MessagingAdapter.html) | How can an application design a service to be invoked both via various messaging technologies and via non-messaging techniques? |\n| System Management | | |\n| | [Introduction to System Management](SystemManagementIntro.html) | |\n| | [Control Bus](ControlBus.html) | How can we effectively administer a messaging system that is distributed across multiple platforms and a wide geographic area? |\n| | [Detour](Detour.html) | How can you route a message through intermediate steps to perform validation, testing or debugging functions? |\n| | [Wire Tap](WireTap.html) | How do you inspect messages that travel on a point-to-point channel? |\n| | [Message History](MessageHistory.html) | How can we effectively analyze and debug the flow of messages in a loosely coupled system? |\n| | [Message Store](MessageStore.html) | How can we report against message information without disturbing the loosely coupled and transient nature of a messaging system? |\n| | [Smart Proxy](SmartProxy.html) | How can you track messages on a service that publishes reply messages to the Return Address specified by the requestor? |\n| | [Test Message](TestMessage.html) | What happens, though, if a component is actively processing messages, but garbles outgoing messages due to an internal fault? |\n| | [Channel Purger](ChannelPurger.html) | How can you keep 'left-over' messages on a channel from disturbing tests or running systems? |\n| Interlude: Systems Management Example | | |\n| | [Loan Broker System Management](SystemManagementExample.html) | |\n| Integration Patterns in Practice | | |\n| | [Case Study: Bond Trading System](BondTradingCaseStudy.html) | |\n| Concluding Remarks | | |\n| | [Emerging Standards and Futures in Enterprise Integration](Future.html) | |\n| Appendices | | |\n| | [Bibliography](bib.html) | Annotated list of references and recommended reading. |\n| | [Revision History](history.html) | Chronological list of changes. |", "znaku_textu": 11393, "slov": 1346, "odkazu": 101, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "http://www.enterpriseintegrationpatterns.com/patterns/messaging/toc.html", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 06:03:25", "sha256": "929a06e03217289455d1f68f02f0f1db497ee39e27d46c18aab3388b8665c0ad", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": []}